repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
ekasitk/spark | mllib/src/main/scala/org/apache/spark/ml/feature/CountVectorizer.scala | <reponame>ekasitk/spark
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (... |
ekasitk/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala | <gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License... |
ekasitk/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/BenchmarkWholeStageCodegen.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
ekasitk/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/HashBenchmark.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
ekasitk/spark | core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackend.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
ekasitk/spark | core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
ekasitk/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala | <reponame>ekasitk/spark
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "... |
ekasitk/spark | sql/core/src/test/scala/org/apache/spark/sql/StreamTest.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
ekasitk/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashJoin.scala | <reponame>ekasitk/spark
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (... |
ekasitk/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala | <filename>sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala<gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The AS... |
ekasitk/spark | sql/hive/src/test/scala/org/apache/spark/sql/hive/SQLBuilderTest.scala | <reponame>ekasitk/spark
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (... |
ekasitk/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/joins/CartesianProduct.scala | <reponame>ekasitk/spark<gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/samplers.scala | package sample
import java.math._
import scala.util._
import org.bytedeco.javacpp._
import org.bytedeco.javacpp.gsl._
object samplers {
def sampleCRT(rng: gsl.gsl_rng, m: Double, gammazero: Double): Double = {
var(sum, bparam) = (0.0, 0.0)
for(i <- 0 to (m.toInt - 1)) {
bparam = gammazero / (gammazero + i)... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/CGPPFmodel.scala | <filename>GPPF/src/main/scala/pfmodel/CGPPFmodel.scala
package cgppf
import scala.io.Source
import data._
import scala.collection.mutable.ListBuffer
import java.io._
import mathutilities._
import org.bytedeco.javacpp._
import org.bytedeco.javacpp.gsl._
import sample._
import scala.collection.mutable.ArrayBuffer
import ... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/printutils.scala | package printutilities
import java.io._
object printutils {
def printVec(vec: Array[Double], outpath: String, K: Int) {
val fout = new PrintWriter(new File(outpath))
for (k <- 0 to (K-1)) {
fout.write(vec(k) + "\n")
}
fout.close
}
def printMat(mat: Array[Array[Double]], outpath: String, K: Int, L: Int) ... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/NGPPFmodel.scala | package ngppf
import scala.io.Source
import data._
import scala.collection.mutable.ListBuffer
import java.io._
import mathutilities._
import org.bytedeco.javacpp._
import org.bytedeco.javacpp.gsl._
import sample._
import scala.collection.mutable.ArrayBuffer
import scala.math.sqrt
import scala.math.pow
import printutili... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/mathutils.scala | <gh_stars>1-10
package mathutilities
import java.math._
object mathutils {
val LOWLIMIT = 1e-15
def logguard(m : Double) : Double = {
// provides guard against log(0)
if (m < LOWLIMIT) {
return math.log(LOWLIMIT)
}
else {
return math.log(m)
}
}
def minguard(m : Double) : Double = {
// prov... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/JGPPFmodel.scala | package jgppf
import scala.io.Source
import data._
import scala.collection.mutable.ListBuffer
import java.io._
import mathutilities._
import org.bytedeco.javacpp._
import org.bytedeco.javacpp.gsl._
import sample._
import scala.collection.mutable.ArrayBuffer
import scala.math.sqrt
import scala.math.pow
import printutili... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/gppf.scala | <gh_stars>1-10
import scala.util.Random._
import data._
import org.bytedeco.javacpp._
import org.bytedeco.javacpp.gsl._
import jgppf._
import ngppf._
import cgppf._
object gppf {
def main(args: Array[String]) {
// start of timer
var t0 = System.currentTimeMillis
var Temp = gsl.gsl_rng_default
var rng = gsl.g... |
ciads-ut/poisson-factorization | GPPF/src/main/scala/pfmodel/GPPFdata.scala | package data
import scala.collection.mutable.ArrayBuffer
import scala.collection.mutable.ListBuffer
import scala.collection.mutable.Map
import scala.io.Source
// base class for the matrix entries of B, Y, and Z
class Input() {
/*
row_ids = list of lists of y indices (author ids for B, word ids for Y, document ids f... |
scleradb/sclera-install-pathgen | src/main/scala/PathGen.scala | /**
* Sclera - Path Generator
* Copyright 2012 - 2020 Sclera, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Chart.scala | package org.phasanix.svggraph
import java.awt.geom.Point2D
/**
*/
object Chart {
import Helper._
def svgPath(points: Seq[(Int, Int)]): String = {
val sb = new StringBuilder()
if (points.length > 1) {
sb.fmt('M').fmt(' ')
.fmt(points.head)
.append('L')
points.tail.foreach(... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Tick.scala | package org.phasanix.svggraph
import java.text.SimpleDateFormat
import java.util.{Calendar, Date}
import org.phasanix.svggraph.Axis.ScaleAxis
/**
* Definitions for ticks and tick boundaries
*/
object Tick {
import Helper._
type Fmt = Double => String
class DateTickFmt(fmt1: String, fmt2: String) extends ... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Helper.scala | package org.phasanix.svggraph
import java.awt.geom.{Rectangle2D, Point2D}
import RichColor.color2richcolor
/**
* helper methods
*/
object Helper {
private def pow10(x: Int): Int = {
x match {
case 1 => 10
case 2 => 100
case 3 => 1000
case 4 => 10000
case _ =>
var count ... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Options.scala | <reponame>richardclose/svggraph
package org.phasanix.svggraph
import java.awt.Color
import java.awt.geom.{Point2D, Rectangle2D}
import RichColor.color2richcolor
/**
* Configuration options.
*
* Measurements are all in px.
*/
case class Options (
layout: Options.Layout,
font: Options.Font,
draw: Options.Draw... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/RichColor.scala | <gh_stars>0
package org.phasanix.svggraph
import java.awt.Color
import scala.language.implicitConversions
/**
* Utility methods for handling Color.
*/
class RichColorOps(val value: Color) extends AnyVal {
def setAlpha(alpha: Double): Color =
new Color(value.getRed, value.getGreen, value.getBlue, (255 * alpha... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/PathBuilder.scala | package org.phasanix.svggraph
import java.awt.geom.Point2D
/**
* Convenience interface for constructing SVG path strings,
* absolute positions only
* TODO: split into absolute and relative path implementations
*/
class PathBuilder(start: Point2D.Float) {
import Helper._
private val points = collection.muta... |
richardclose/svggraph | src/test/scala/RichColorTest.scala | <reponame>richardclose/svggraph
import org.phasanix.svggraph.RichColor
import org.scalatest.{Matchers, FlatSpec}
import org.phasanix.svggraph.RichColor._
import java.awt.Color
/**
* Test suite for RichColor
*/
class RichColorTest extends FlatSpec with Matchers {
def isBetween(color1: Color, color2: Color, mid: ... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Constants.scala | package org.phasanix.svggraph
/**
* Constants for charting
*/
trait Constants {
trait Named {
override def toString: String = this.getClass.getSimpleName.replace("$", "")
}
/**
* Fill styles
*/
sealed trait FillStyle extends Named
object Solid extends FillStyle
object Radial extends FillStyl... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/PointStyle.scala | <filename>src/main/scala/org/phasanix/svggraph/PointStyle.scala
package org.phasanix.svggraph
import java.awt.Color
import java.awt.geom.Point2D
import RichColor.color2richcolor
/**
* Shape of point on graph
*/
sealed abstract class PointStyle(val name: String) {
def render(color: Color, radius: Float, x: Int, y... |
richardclose/svggraph | src/main/scala/org/phasanix/svggraph/Axis.scala | <reponame>richardclose/svggraph<filename>src/main/scala/org/phasanix/svggraph/Axis.scala
package org.phasanix.svggraph
import java.awt.geom.{Rectangle2D, Point2D}
import java.util.{Calendar => Cal, Date, GregorianCalendar}
import Helper._
import RichColor.color2richcolor
import Constants._
abstract class Axis (
val... |
richardclose/svggraph | build.sbt | <reponame>richardclose/svggraph
name := "svggraph"
version := "1.0"
organization := "org.phasanix"
scalaVersion := "2.11.6"
libraryDependencies ++= Seq (
"org.scalatest" %% "scalatest" % "2.1.6" % "test",
"org.scala-lang.modules" %% "scala-xml" % "1.0.3"
)
|
richardclose/svggraph | src/test/scala/OptionsTest.scala | <reponame>richardclose/svggraph
import org.phasanix.svggraph.Options
import org.scalatest.{Matchers, FlatSpec}
/**
*/
class OptionsTest extends FlatSpec with Matchers {
"Options.Layout" should "have correct total dimensions" in {
val layout = Options.Layout.basic(chartWidth = 500, chartHeight = 300, xTickMa... |
richardclose/svggraph | src/test/scala/HelperTest.scala | import org.scalatest.{Matchers, FlatSpec}
import org.phasanix.svggraph.Helper._
/**
*
*/
class HelperTest extends FlatSpec with Matchers {
"Helper formatting" should "correctly encode float" in {
val sb = new StringBuilder()
sb.append("[").fmt(123.45, 3).append("]")
sb.toString shouldEqual "[123.450]... |
antonkw/Edmonds-Karp | src/main/scala/kov/BipartiteMatches.scala | package kov
import kov.graph.FlowGraph
class BipartiteMatches {
def findMatches(graph: FlowGraph, firstClassCount: Int, secondClassCount: Int): Map[Int, Int] = {
val flows = new EdmondsKarp().maxFlowWithGraph(graph)
val edges = flows
._2.edges
.filter(e => e.from != 0 && e.to != firstClassCount ... |
antonkw/Edmonds-Karp | src/main/scala/kov/graph/Edge.scala | <filename>src/main/scala/kov/graph/Edge.scala
package kov.graph
case class Edge(from: Int, to: Int, capacity: Int, flow: Int)
|
antonkw/Edmonds-Karp | src/main/scala/kov/util/GraphConsoleReader.scala | package kov.util
import java.io.{BufferedReader, IOException, InputStreamReader}
import java.util.StringTokenizer
import kov.graph.FlowGraph
class GraphConsoleReader {
val in: BufferedReader = new BufferedReader(new InputStreamReader(System.in))
var tok = new StringTokenizer("")
@throws[IOException]
def nex... |
antonkw/Edmonds-Karp | src/main/scala/kov/graph/FlowGraph.scala | package kov.graph
case class FlowGraph(edges: Vector[Edge], graph: Vector[Vector[Int]]) {
def size: Int = graph.length
def getIds(from: Int): Vector[Int] = graph(from)
def getEdge(id: Int): Edge = edges(id)
def addFlow(id: Int, flow: Int): FlowGraph = {
val edge = edges(id)
val backwardId = if (id %... |
antonkw/Edmonds-Karp | src/main/scala/kov/bfs/BFS.scala | package kov.bfs
import kov.graph.FlowGraph
import kov.util.Logger
import scala.annotation.tailrec
import scala.collection.immutable.{BitSet, Queue}
object BFS {
def bfs(root: Int, target: Int, graph: FlowGraph): Option[List[Int]] = {
@tailrec
def iteration(queue: Queue[Int], visited: BitSet, trace: Map[Int... |
antonkw/Edmonds-Karp | src/main/scala/kov/BipartiteMatchesMain.scala | package kov
import kov.graph.FlowGraph
import kov.util.{FlowBuilder, GraphConsoleReader, Logger}
object BipartiteMatchesMain {
def main(args: Array[String]): Unit = {
val reader = new GraphConsoleReader()
val adjMatrix = read(reader)
val graph = graph(adjMatrix)
val correspondences = new BipartiteMa... |
antonkw/Edmonds-Karp | src/main/scala/kov/util/Logger.scala | <gh_stars>0
package kov.util
object Logger {
def debug(s: => String) = {
println(s)
}
def info(s: String) = println(s)
}
|
antonkw/Edmonds-Karp | src/main/scala/kov/EdmondsKarpMain.scala | <reponame>antonkw/Edmonds-Karp<filename>src/main/scala/kov/EdmondsKarpMain.scala<gh_stars>0
package kov
import kov.util.{GraphConsoleReader, Logger}
object EdmondsKarpMain extends App {
val graph = new GraphConsoleReader().readGraph
val maxFlow = new EdmondsKarp().maxFlow(graph)
Logger.info(s"Max flow is $maxFl... |
antonkw/Edmonds-Karp | build.sbt | <reponame>antonkw/Edmonds-Karp<gh_stars>0
ThisBuild / scalaVersion := "2.11.12"
ThisBuild / organization := "kov"
lazy val hello = (project in file("."))
.settings(
name := "Hello"
) |
antonkw/Edmonds-Karp | src/main/scala/kov/util/FlowBuilder.scala | <reponame>antonkw/Edmonds-Karp
package kov.util
import kov.graph.{Edge, FlowGraph}
import scala.collection.mutable.ArrayBuffer
class FlowBuilder {
private val edges: ArrayBuffer[Edge] = ArrayBuffer();
private var graph: Array[ArrayBuffer[Int]] = _
def this(n: Int) = {
this()
this.graph = (for (_ <- 0 ... |
antonkw/Edmonds-Karp | src/main/scala/kov/EdmondsKarp.scala | <reponame>antonkw/Edmonds-Karp
package kov
import kov.bfs.BFS
import kov.graph.FlowGraph
import kov.util.Logger
import scala.annotation.tailrec
class EdmondsKarp {
def maxFlow(graph: FlowGraph) = {
@tailrec
def maxFlowIteration(graph: FlowGraph, sum: Int = 0, bfsSink: FlowGraph => Option[List[Int]] = BFS.... |
stressGC/Spark_Distributed_Computation | src/main/fights/Spell.scala | /**
* @author <NAME>
*/
package fights
/**
* class used to represent the spell of an entity
* @param name name of the spell
* @param range range of the spell
* @param min min damage dealt by the spell
* @param max max damage fealt by the spell
*/
class Spell(val name: String, val range: Int... |
stressGC/Spark_Distributed_Computation | src/main/fights/Generator.scala | /**
* @author <NAME>
*/
package fights
import org.apache.spark.SparkContext
import org.apache.spark.graphx.{Edge, Graph}
import scala.collection.mutable.ArrayBuffer
/**
* utility class used to generate various objects
*/
class Generator {
// some helpers
val fightGraph = new GraphHelper()
... |
stressGC/Spark_Distributed_Computation | src/main/fights/App.scala | /**
* @author <NAME>
*/
package fights
import org.apache.spark.graphx.{Graph, TripletFields}
import org.apache.spark.{SparkConf, SparkContext}
object App {
// some imports
val generator = new Generator()
val mathHelper = new MathHelper()
val graphHelper = new GraphHelper()
/**
* main... |
stressGC/Spark_Distributed_Computation | src/main/inversedIndex/Computing.scala | <gh_stars>1-10
/**
* @author <NAME>
*/
package formatCrawl
import org.apache.spark.rdd.RDD
object Computing
{
/**
* swaps the indexes and the content of an RDD
* @param RDD
* @return
*/
def SwapIndexesAndContent(RDD: RDD[String]): RDD[(String, String)] = {
return RDD.map(C... |
stressGC/Spark_Distributed_Computation | src/main/fights/MathHelper.scala | <gh_stars>1-10
/**
* @author <NAME>
*/
package fights
import java.util.concurrent.ThreadLocalRandom
import scala.collection.mutable.ArrayBuffer
import scala.math.sqrt
import scala.math.pow
/**
* utility class used as a helper for math computation etc
*/
class MathHelper extends Serializable {
... |
stressGC/Spark_Distributed_Computation | src/main/inversedIndex/FSHelper.scala | <filename>src/main/inversedIndex/FSHelper.scala
/**
* @author <NAME>
*/
package formatCrawl
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.{DataFrame, SparkSession}
import org.apache.spark.sql.functions.explode
object FSHelper
{
// const
val PROJECT_ROOT = System.getProperty("user.dir... |
stressGC/Spark_Distributed_Computation | src/main/inversedIndex/App.scala | <gh_stars>1-10
/**
* @author <NAME>
*/
package formatCrawl
import org.apache.spark.sql.{SparkSession}
object App
{
val spark: SparkSession = SparkSession.builder.master("local").getOrCreate
/**
* entry of our program, does the RDD manipulation for the second part of the first exercice
* ... |
stressGC/Spark_Distributed_Computation | src/main/fights/Entity.scala | /**
* @author <NAME>
*/
package fights
/**
* class representing an entity
* @param name
* @param armor
* @param regen
* @param health
* @param coordX
* @param coordY
* @param speed
* @param spell
*/
class Entity(val name: String, val armor: Int, val regen: Int, var health: Int, ... |
stressGC/Spark_Distributed_Computation | src/main/fights/GraphHelper.scala | <filename>src/main/fights/GraphHelper.scala
/**
* @author <NAME>
*/
package fights
import org.apache.spark.graphx.{Edge, EdgeContext}
import scala.collection.mutable.ArrayBuffer
/**
* utility class used as a helper for graph transformations and actions
*/
class GraphHelper {
val mathHelper = new... |
TradeshiftCN/scala-datapipeline-dsl | src/main/scala/datapipeline/compiler/AwsDataPipelineCompiler.scala | /*
* Copyright 2018 Shazam Entertainment Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
tripl-ai/arc-elasticsearch-pipeline-plugin | src/it/scala/ai/tripl/arc/load/ElasticsearchLoadSuite.scala | package ai.tripl.arc
import java.net.URI
import java.util.UUID
import java.util.Properties
import scala.util.Random
import org.apache.http.client.methods.{HttpDelete, HttpGet}
import org.apache.http.impl.client.HttpClientBuilder
import com.fasterxml.jackson.databind.ObjectMapper
import org.scalatest.FunSuite
import o... |
tripl-ai/arc-elasticsearch-pipeline-plugin | version.sbt | <reponame>tripl-ai/arc-elasticsearch-pipeline-plugin
version := "1.3.0" |
tripl-ai/arc-elasticsearch-pipeline-plugin | src/main/scala/ai/tripl/arc/extract/ElasticsearchExtract.scala | package ai.tripl.arc.extract
import java.io._
import java.net.URI
import java.util.Properties
import scala.annotation.tailrec
import scala.collection.JavaConverters._
import org.apache.spark.sql._
import org.apache.spark.sql.functions._
import org.apache.spark.sql.types._
import org.apache.spark.storage.StorageLevel... |
tripl-ai/arc-elasticsearch-pipeline-plugin | src/it/scala/ai/tripl/arc/extract/ElasticsearchExtractSuite.scala | package ai.tripl.arc
import java.net.URI
import org.scalatest.FunSuite
import org.scalatest.BeforeAndAfter
import collection.JavaConverters._
import org.apache.http.client.methods.HttpDelete
import org.apache.http.impl.client.HttpClientBuilder
import org.apache.commons.io.FileUtils
import org.apache.commons.io.IOU... |
tripl-ai/arc-elasticsearch-pipeline-plugin | src/main/scala/ai/tripl/arc/load/ElasticsearchLoad.scala | package ai.tripl.arc.load
import java.net.URI
import java.util.Properties
import scala.collection.JavaConverters._
import org.apache.spark.sql._
import org.apache.spark.sql.types._
import com.typesafe.config._
import org.elasticsearch.spark.sql._
import ai.tripl.arc.api._
import ai.tripl.arc.api.API._
import ai.t... |
tripl-ai/arc-elasticsearch-pipeline-plugin | project/Dependencies.scala | import sbt._
object Dependencies {
// versions
lazy val sparkVersion = "2.4.5"
// testing
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.7" % "test,it"
// arc
val arc = "ai.tripl" %% "arc" % "2.8.0" % "provided"
val typesafeConfig = "com.typesafe" % "config" % "1.3.1" intransitive()
// spar... |
AlexandraGYG/snowplow | 3-enrich/stream-enrich/integration-tests/src/test/scala/com.snowplowanalytics.snowplow.enrich.stream/BeforeAfterAll.scala | /*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use this file except in compliance with the Apache License
* Version 2.0. You may obtain a copy of the Apache License Version 2.0 at
* http://www.a... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/SchemaEnrichmentTest.scala | <reponame>AlexandraGYG/snowplow
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License... |
AlexandraGYG/snowplow | 3-enrich/beam-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.beam/SpecHelpers.scala | <reponame>AlexandraGYG/snowplow<gh_stars>1-10
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the ... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/OlarkAdapter.scala | /*
* Copyright (c) 2016-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/spark-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.spark/SparkSpec.scala | <reponame>AlexandraGYG/snowplow<gh_stars>1-10
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the ... |
AlexandraGYG/snowplow | 3-enrich/spark-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich.spark/EnrichJobConfig.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/pii/PiiPseudonymizerEnrichment.scala | <reponame>AlexandraGYG/snowplow
/*
* Copyright (c) 2017-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/utils/HttpClient.scala | <filename>3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/utils/HttpClient.scala
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in comp... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/web/ParseCrossDomainSpec.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/RemoteAdapterSpec.scala | /*
* Copyright (c) 2019-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/beam-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.beam/ConfigSpec.scala | <filename>3-enrich/beam-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.beam/ConfigSpec.scala<gh_stars>1-10
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compli... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/RefererParserEnrichment.scala | <gh_stars>1-10
/*
* Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at h... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/HubSpotAdapterSpec.scala | <filename>3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/HubSpotAdapterSpec.scala
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/CloudfrontAccessLogAdapterSpec.scala | <filename>3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/CloudfrontAccessLogAdapterSpec.scala
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may ... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/HubSpotAdapter.scala | <gh_stars>1-10
/*
* Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at h... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/registry/apirequest/ApiRequestEnrichmentSpec.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 2-collectors/scala-stream-collector/core/src/main/scala/com.snowplowanalytics.snowplow.collectors.scalastream/metrics/MetricsRoute.scala | <filename>2-collectors/scala-stream-collector/core/src/main/scala/com.snowplowanalytics.snowplow.collectors.scalastream/metrics/MetricsRoute.scala
/*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use... |
AlexandraGYG/snowplow | 2-collectors/scala-stream-collector/core/src/main/scala/com.snowplowanalytics.snowplow.collectors.scalastream/metrics/MetricsService.scala | /*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use this file except in compliance with the Apache License
* Version 2.0. You may obtain a copy of the Apache License Version 2.0 at
* http://www.a... |
AlexandraGYG/snowplow | 3-enrich/stream-enrich/integration-tests/src/test/scala/com.snowplowanalytics.snowplow.enrich.stream/PiiEmitSpec.scala | /*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use this file except in compliance with the Apache License
* Version 2.0. You may obtain a copy of the Apache License Version 2.0 at
* http://www.a... |
AlexandraGYG/snowplow | 3-enrich/stream-enrich/core/src/main/scala/com.snowplowanalytics.snowplow.enrich.stream/Enrich.scala | <gh_stars>1-10
/*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd.
* All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache
* License Version 2.0.
* You may obtain a copy of the Apache License Version 2.... |
AlexandraGYG/snowplow | 3-enrich/beam-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich.beam/config.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/MiscEnrichments.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/registry/UaParserEnrichmentSpec.scala | <reponame>AlexandraGYG/snowplow
/**Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Ve... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/EventFingerprintEnrichment.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/project/Dependencies.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 2-collectors/scala-stream-collector/core/src/main/scala/com.snowplowanalytics.snowplow.collectors.scalastream/model.scala | <reponame>AlexandraGYG/snowplow
/*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use this file except in compliance with the Apache License
* Version 2.0. You may obtain a copy of the Apache Licens... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/utils/JsonPathSpec.scala | <reponame>AlexandraGYG/snowplow
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License... |
AlexandraGYG/snowplow | 3-enrich/spark-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.spark/good/CljTomcatTp2MegaEventsSpec.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/registry/WeatherEnrichmentSpec.scala | /**Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.o... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/YauaaEnrichment.scala | <reponame>AlexandraGYG/snowplow<gh_stars>1-10
/**
* Copyright (c) 2019-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the... |
AlexandraGYG/snowplow | 3-enrich/spark-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.spark/good/NdjsonUrbanAirshipSpec.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... |
AlexandraGYG/snowplow | 3-enrich/stream-enrich/kafka/src/main/scala/com.snowplowanalytics.snowplow.enrich.stream/sources/KafkaSource.scala | /*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd.
* All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache
* License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/CallrailAdapterSpec.scala | /*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
AlexandraGYG/snowplow | 3-enrich/spark-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.spark/MasterCljTomcatSpec.scala | <reponame>AlexandraGYG/snowplow<gh_stars>1-10
/*
* Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the ... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/RemoteAdapter.scala | <filename>3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/RemoteAdapter.scala
/*
* Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file... |
AlexandraGYG/snowplow | 3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/enrichments/registry/HttpHeaderExtractorEnrichmentSpec.scala | <gh_stars>1-10
/**Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http... |
AlexandraGYG/snowplow | 3-enrich/stream-enrich/core/src/test/scala/com.snowplowanalytics.snowplow.enrich.stream/bad/InvalidEnrichedEventSpec.scala | /*
* Copyright (c) 2013-2019 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0, and
* you may not use this file except in compliance with the Apache License
* Version 2.0. You may obtain a copy of the Apache License Version 2.0 at
* http://www.a... |
kornelrabczak/scalac-simple-profiling | src/main/scala/com/thecookiezen/tools/Profiling.scala | <gh_stars>0
package com.thecookiezen.tools
import java.nio.file.{Files, Path, StandardOpenOption}
import scala.tools.nsc.Global
import scala.reflect.internal.util.StatisticsStatics
import scala.collection.mutable
import com.thecookiezen.ProfilerPlugin.PluginConfig
import com.thecookiezen.tools.Profiling.MacroInfo
imp... |
kornelrabczak/scalac-simple-profiling | src/main/scala/com/thecookiezen/ProfilerPlugin.scala | <filename>src/main/scala/com/thecookiezen/ProfilerPlugin.scala
package com.thecookiezen
import java.nio.file.{Path, Paths}
import com.thecookiezen.ProfilerPlugin.PluginConfig
import com.thecookiezen.tools.{Logger, Profiling}
import scala.tools.nsc.plugins.{Plugin, PluginComponent}
import scala.tools.nsc.{Global, Pha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.