Skip to content

Commit

Permalink
Replace http with https in files (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbato authored and johnynek committed Jun 6, 2019
1 parent 428b550 commit 59d9327
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ val sharedSettings = assemblySettings ++ scalariformSettings ++ Seq(
Opts.resolver.mavenLocalFile,
Opts.resolver.sonatypeSnapshots,
Opts.resolver.sonatypeReleases,
"Concurrent Maven Repo" at "http://conjars.org/repo",
"Concurrent Maven Repo" at "https://conjars.org/repo",
"Twitter Maven" at "https://maven.twttr.com",
"Cloudera" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
),
Expand Down Expand Up @@ -194,17 +194,17 @@ val sharedSettings = assemblySettings ++ scalariformSettings ++ Seq(
<developer>
<id>posco</id>
<name>Oscar Boykin</name>
<url>http://twitter.com/posco</url>
<url>https://twitter.com/posco</url>
</developer>
<developer>
<id>avibryant</id>
<name>Avi Bryant</name>
<url>http://twitter.com/avibryant</url>
<url>https://twitter.com/avibryant</url>
</developer>
<developer>
<id>argyris</id>
<name>Argyris Zymnis</name>
<url>http://twitter.com/argyris</url>
<url>https://twitter.com/argyris</url>
</developer>
</developers>)
) ++ mimaDefaultSettings
Expand Down Expand Up @@ -687,7 +687,7 @@ lazy val docSettings = Seq(
micrositeDescription := "Scala API for Cascading.",
micrositeAuthor := "Scalding's contributors",
micrositeHighlightTheme := "atom-one-light",
micrositeHomepage := "http://twitter.github.io/scalding",
micrositeHomepage := "https://twitter.github.io/scalding",
micrositeBaseUrl := "scalding",
micrositeDocumentationUrl := "api",
micrositeGithubOwner := "twitter",
Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
resolvers += Resolver.url("artifactory", url("https://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

resolvers ++= Seq(
"jgit-repo" at "http://download.eclipse.org/jgit/maven",
"jgit-repo" at "https://download.eclipse.org/jgit/maven",
"sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases",
"Twitter Maven" at "https://maven.twttr.com"
)
Expand Down
8 changes: 4 additions & 4 deletions sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ declare -r latest_211="2.11.8"

declare -r buildProps="project/build.properties"

declare -r sbt_launch_ivy_release_repo="http://repo.typesafe.com/typesafe/ivy-releases"
declare -r sbt_launch_ivy_release_repo="https://repo.typesafe.com/typesafe/ivy-releases"
declare -r sbt_launch_ivy_snapshot_repo="https://repo.scala-sbt.org/scalasbt/ivy-snapshots"
declare -r sbt_launch_mvn_release_repo="http://repo.scala-sbt.org/scalasbt/maven-releases"
declare -r sbt_launch_mvn_snapshot_repo="http://repo.scala-sbt.org/scalasbt/maven-snapshots"
declare -r sbt_launch_mvn_release_repo="https://repo.scala-sbt.org/scalasbt/maven-releases"
declare -r sbt_launch_mvn_snapshot_repo="https://repo.scala-sbt.org/scalasbt/maven-snapshots"

declare -r default_jvm_opts_common="-Xms512m -Xmx1536m -Xss2m"
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
Expand Down Expand Up @@ -116,7 +116,7 @@ url_base () {
local version="$1"

case "$version" in
0.7.*) echo "http://simple-build-tool.googlecode.com" ;;
0.7.*) echo "https://simple-build-tool.googlecode.com" ;;
0.10.* ) echo "$sbt_launch_ivy_release_repo" ;;
0.11.[12]) echo "$sbt_launch_ivy_release_repo" ;;
0.*-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]) # ie "*-yyyymmdd-hhMMss"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ object TypedSimilarity extends Serializable {
* key: document,
* value: (word, documentsWithWord)
* return: Edge of similarity between words measured by documents
* See: http://arxiv.org/pdf/1206.2082v2.pdf
* See: https://arxiv.org/pdf/1206.2082v2.pdf
*/
def discoCosineSimilarity[N: Ordering](smallG: Grouped[N, (N, Int)],
bigG: Grouped[N, (N, Int)], oversample: Double): TypedPipe[Edge[N, Double]] = {
Expand Down Expand Up @@ -181,7 +181,7 @@ object TypedSimilarity extends Serializable {
* key: document,
* value: (word, word weight in the document, norm of the word)
* return: Edge of similarity between words measured by documents
* See: http://stanford.edu/~rezab/papers/dimsum.pdf
* See: https://stanford.edu/~rezab/papers/dimsum.pdf
*/
def dimsumCosineSimilarity[N: Ordering](smallG: Grouped[N, (N, Double, Double)],
bigG: Grouped[N, (N, Double, Double)], oversample: Double): TypedPipe[Edge[N, Double]] = {
Expand Down Expand Up @@ -236,7 +236,7 @@ class ExactInCosine[N](reducers: Int = -1)(implicit override val nodeOrdering: O
* minCos: the minimum cosine similarity you care about accuracy for
* delta: the error on the approximated cosine (e.g. 0.05 = 5%)
* boundedProb: the probability we have larger than delta error
* see: http://arxiv.org/pdf/1206.2082v2.pdf for more details
* see: https://arxiv.org/pdf/1206.2082v2.pdf for more details
*/
class DiscoInCosine[N](minCos: Double, delta: Double, boundedProb: Double, reducers: Int = -1)(implicit override val nodeOrdering: Ordering[N]) extends TypedSimilarity[N, InDegree, Double] {

Expand Down
4 changes: 2 additions & 2 deletions scripts/scald.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ def convert_dependencies_to_jars(dependencies = DEPENDENCIES, as_classpath = fal
#Convert a maven dependency to a url for downloading.
#Example:
#Input dependency: org.apache.hadoop/hadoop-core/0.20.2
#Output url: http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.20.2/hadoop-core-0.20.2.jar
#Output url: https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.20.2/hadoop-core-0.20.2.jar
def dependency_to_url(dependency)
#Each dependency is in the form group/artifact/version.
group, artifact, version = dependency.split("/")
jar_filename = dependency_to_jar(dependency)
group_with_slash = group.split(".").join("/")
"http://repo1.maven.org/maven2/#{group_with_slash}/#{artifact}/#{version}/#{jar_filename}"
"https://repo1.maven.org/maven2/#{group_with_slash}/#{artifact}/#{version}/#{jar_filename}"
end

#Convert a maven dependency to the name of its jar file.
Expand Down

0 comments on commit 59d9327

Please sign in to comment.