code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* * Copyright (C) 2014 - 2017 Contributors as noted in the AUTHORS.md file * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option)...
Tensei-Data/tensei-agent
src/main/scala/com/wegtam/tensei/agent/analyzer/GenericAnalyzer.scala
Scala
agpl-3.0
1,863
/* * 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 ...
witgo/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala
Scala
apache-2.0
47,350
package dotty.tools.dotc.semanticdb import dotty.tools.dotc.semanticdb.internal._ import scala.annotation.internal.sharable object TextDocuments { def parseFrom(in: Array[Byte]): TextDocuments = { parseFrom(SemanticdbInputStream.newInstance(in)) } def parseFrom(in: SemanticdbInputStream): TextDocuments = { ...
som-snytt/dotty
compiler/src/dotty/tools/dotc/semanticdb/TextDocuments.scala
Scala
apache-2.0
1,831
package com.seanshubin.detangler.domain import java.nio.charset.Charset import java.nio.file.{LinkOption, Path} import com.seanshubin.detangler.contract.test.FilesNotImplemented class FilesStub(fileContentByName: Map[String, String], charset: Charset) extends FilesNotImplemented { override def exists(path: Path, o...
SeanShubin/detangler
domain/src/test/scala/com/seanshubin/detangler/domain/FilesStub.scala
Scala
unlicense
587
package example import java.util.NoSuchElementException import org.scalatest.FunSuite import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner /** * This class implements a ScalaTest test suite for the methods in object * `Lists` that need to be implemented as part of this assignment. A test * suite...
avenezia/Functional-Programming-Principles-in-Scala
week1/list_example/src/test/scala/example/ListsSuite.scala
Scala
apache-2.0
4,416
println(/* resolved: false */ String.getClass) println(classOf[/* */ String]) "1.0".asInstanceOf[String]./* */ toFloat
ilinum/intellij-scala
testdata/resolve2/predef/literal/String.scala
Scala
apache-2.0
118
/* * This file is part of Kiama. * * Copyright (C) 2009-2015 Anthony M Sloane, Macquarie University. * * Kiama is free software: you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or ...
adeze/kiama
library/src/org/kiama/example/lambda2/Lambda.scala
Scala
gpl-3.0
5,380
package im.actor.server.models import java.time.LocalDateTime import org.joda.time.DateTime case class GroupUser(groupId: Int, userId: Int, inviterUserId: Int, invitedAt: DateTime, joinedAt: Option[LocalDateTime])
boneyao/actor-platform
actor-server/actor-models/src/main/scala/im/actor/server/models/GroupUser.scala
Scala
mit
217
package builder import play.api.libs.json.{JsArray, JsBoolean, JsLookupResult, JsNumber, JsObject, JsString, JsValue, JsNull} import scala.util.{Failure, Success, Try} /** * Parse numbers and string json values as strings */ object JsonUtil { def validate( json: JsValue, strings: Seq[String] = Nil, ...
apicollective/apibuilder
core/src/main/scala/core/builder/JsonUtil.scala
Scala
mit
8,149
package services.neo4j import javax.inject.{Inject, Named} import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.scaladsl.{Sink, Source} import akka.{Done, NotUsed} import models.twitter.Status import play.api.libs.json.{JsArray, JsValue, Json} import play.api.libs.ws.{StreamedResponse...
Queendimimi/twitter_extractor
app/services/neo4j/TimeLineSink.scala
Scala
apache-2.0
7,954
package au.com.dius.pact.model sealed trait RequestMatch extends Ordered[RequestMatch] { def allMatched = false protected def goodness: Int def compare(that: RequestMatch): Int = goodness.compare(that.goodness) def toOption: Option[Interaction] = this match { case FullRequestMatch(inter) => Some(inte...
caoquendo/pact-jvm
pact-jvm-matchers/src/main/scala/au/com/dius/pact/model/RequestMatch.scala
Scala
apache-2.0
1,826
/* * 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 ...
goldmedal/spark
core/src/test/scala/org/apache/spark/scheduler/CustomShuffledRDD.scala
Scala
apache-2.0
4,296
object Script { // this is the proof script for robot_quantified8.dl // a theorem about the safety of the control algorithm that enforces a // multiple virtual fixtures in 2D, with force feedback val safestr = "(w() /= end() ==> "+ "(qx() - px(w())) * nx(w()) + (qy() - py(w())) * ny(w()) + " + "K() * (fx() ...
keymaerad/KeYmaeraD
examples/medrobot/robot_quantified9.dl.scala
Scala
bsd-3-clause
45,246
/* * Copyright 2011 Twitter, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
twitter/scrooge
scrooge-generator/src/main/scala/com/twitter/scrooge/mustache/HandlebarLoader.scala
Scala
apache-2.0
2,885
/* * 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 ...
tzulitai/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/expressions/ScalarFunctionsTest.scala
Scala
apache-2.0
70,550
import sbt._ import Keys._ object FinagleApns extends Build { object V { val finagle = "6.27.0" } val publishToHopperNexus: Def.Initialize[Option[sbt.Resolver]] = version { (v: String) => val nexus = "http://nexus.lab.mtl/nexus/" if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at ...
hopper/finagle-apns
project/Build.scala
Scala
apache-2.0
919
package smarthouse.restapi.http.routes import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.PathMatchers.IntNumber import de.heikoseeberger.akkahttpcirce.CirceSupport import io.circe.generic.auto._ import io.circe.syntax._ import smarthouse.restapi....
andrewobukhov/smart-house
src/main/scala/smarthouse/restapi/http/routes/UsersServiceRoute.scala
Scala
mit
1,792
package bloomfilter.mutable._128bit import org.openjdk.jmh.annotations.{Benchmark, Param, Scope, State} import scala.util.Random @State(Scope.Benchmark) class ArrayByteItemBenchmark { private val itemsExpected = 1000000L private val falsePositiveRate = 0.01 private val random = new Random() private val bf ...
alexandrnikitin/bloom-filter-scala
benchmarks/src/main/scala/bloomfilter/mutable/_128bit/ArrayByteItemBenchmark.scala
Scala
mit
644
trait Assoc[T] { type U def foo(t: T): U } trait Link[T, A] case class Foo(i: Int) object Foo { println(s"Foo companion") erased implicit val barLink: Link[Foo, FooAssoc.type] = null } implicit object FooAssoc extends Assoc[Foo] { println(s"FooAssoc") type U = Int def foo(t: Foo): Int = t.i } import...
som-snytt/dotty
tests/run-custom-args/companion-loading.scala
Scala
apache-2.0
698
/* * Copyright (C) 2014 Stratio (http://stratio.com) * * 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 app...
adelapena/cassandra-lucene-index
plugin/src/main/scala/com/stratio/cassandra/lucene/partitioning/PartitionerOnToken.scala
Scala
apache-2.0
2,898
package gr.cslab.ece.ntua.musqle.plan.hypergraph import gr.cslab.ece.ntua.musqle.engine.Engine import gr.cslab.ece.ntua.musqle.plan.spark.{MuSQLEJoin, MuSQLEScan} import scala.collection.mutable abstract class DPJoinPlan(val left: DPJoinPlan, val right: DPJoinPlan, val engine: Engine, var c...
gsvic/MuSQLE
src/main/scala/gr/cslab/ece/ntua/musqle/plan/hypergraph/DPJoinPlan.scala
Scala
apache-2.0
4,071
/* * 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 ...
jkbradley/spark
core/src/main/scala/org/apache/spark/resource/TaskResourceRequests.scala
Scala
apache-2.0
2,809
/* * 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 ...
maropu/spark
sql/core/src/test/scala/org/apache/spark/sql/sources/ResolvedDataSourceSuite.scala
Scala
apache-2.0
4,135
package com.crobox.clickhouse.dsl.language import com.crobox.clickhouse.DslIntegrationSpec import com.crobox.clickhouse.dsl._ class CollectionFunctionTest extends DslIntegrationSpec { it should "succeed for IN functions" in { val someCollection = Seq(1, 4, 6, 9) val someTuple = tuple(1, 4, 6, 9) va...
crobox/clickhouse-scala-client
dsl/src/test/scala/com/crobox/clickhouse/dsl/language/CollectionFunctionTest.scala
Scala
lgpl-3.0
597
/* # Copyright 2016 Georges Lipka # # 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 or agreed to in wri...
glipka/Easy-React-With-ScalaJS
src/main/scala/com/glipka/easyReactJS/react/ComponentClass.scala
Scala
apache-2.0
1,206
package gapt.expr.formula.fol import gapt.expr._ import gapt.expr.formula.All import gapt.expr.formula.And import gapt.expr.formula.Atom import gapt.expr.formula.Ex import gapt.expr.formula.Formula import gapt.expr.formula.Imp import gapt.expr.formula.Neg import gapt.expr.formula.Or import gapt.expr.formula.hol.HOLFun...
gapt/gapt
core/src/main/scala/gapt/expr/formula/fol/hol2fol_heuristics.scala
Scala
gpl-3.0
9,322
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
dnatic09/scalate
scalate-util/src/main/scala/org/fusesource/scalate/util/ClassLoaders.scala
Scala
apache-2.0
2,915
package org.squeryl.test.mutablerelations import org.squeryl.test.PrimitiveTypeModeForTests._ import org.squeryl._ import org.squeryl.dsl.CompositeKey2 trait SchoolDb2Object extends KeyedEntity[Long] { val id: Long = 0 } class Professor(val lastName: String) extends SchoolDb2Object { lazy val course...
xuwei-k/Squeryl
src/test/scala/org/squeryl/test/mutablerelations/SchoolDbMutableRelations.scala
Scala
apache-2.0
6,838
package selects import japgolly.scalajs.react.vdom.prefix_<^.{<, _} import japgolly.scalajs.react.{BackendScope, Callback, ReactComponentB, _} import shared._ object EntitySelect { val entityList = List("Item", "Label", "Meta", "Section", "Term", "Actor", "App", "Component", "Domain", "Module", "Product", "Release...
reqT/reqT-webapp
client/src/main/scala/selects/EntitySelect.scala
Scala
apache-2.0
2,098
/** Copyright 2009 Steve Jenson under the Apache 2.0 License */ package com.saladwithsteve.namey import com.twitter.commons.Stats.Counter import com.twitter.commons.Stats.Timing import java.util.concurrent.atomic.AtomicInteger object NameServerStats { val bytesWritten = new Counter val totalSessions = new AtomicI...
stevej/namey
src/main/scala/com/saladwithsteve/namey/NameServerStats.scala
Scala
apache-2.0
442
package org.eso.ias.monitor import java.util.concurrent.{Executors, ScheduledExecutorService, ThreadFactory, TimeUnit} import com.typesafe.scalalogging.Logger import org.eso.ias.heartbeat.HeartbeatProducerType._ import org.eso.ias.heartbeat.consumer.{HbKafkaConsumer, HbListener, HbMsg} import org.eso.ias.logging.IASL...
IntegratedAlarmSystem-Group/ias
Monitor/src/main/scala/org/eso/ias/monitor/HbMonitor.scala
Scala
lgpl-3.0
9,445
/* * Copyright 2017 HM Revenue & Customs * * 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 or a...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs105/boxes/AC436.scala
Scala
apache-2.0
1,305
package games.math import java.nio.FloatBuffer /** * Ported from LWJGL source code */ class Matrix3f extends Matrix { private[math] var m00, m11, m22: Float = 1 private[math] var m01, m02, m10, m12, m20, m21: Float = 0 def this(a00: Float, a01: Float, a02: Float, a10: Float, a11: Float, a12: Float, a20: Floa...
joelross/scalajs-games
demo/shared/src/main/scala/games/math/Matrix3f.scala
Scala
bsd-3-clause
16,144
package controllers import play.api._ import play.api.libs.json._ import play.api.mvc._ import play.api.libs.concurrent.Execution.Implicits._ import play.Logger import utils._ import play.api.libs.iteratee.Enumerator import play.api.cache.Cached import play.api.Play.current import traits.UrlFromConfig import scala.asy...
adlnet/LR-Search
app/controllers/Standards.scala
Scala
apache-2.0
1,053
/* * Copyright 2017 Guy Van den Broeck <guyvdb@cs.ucla.edu> * * 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 ...
UCLA-StarAI/ScalaDD
src/main/scala/edu/ucla/cs/starai/sdd/manager/normalized/SDDManagerImpl.scala
Scala
apache-2.0
1,720
package fs2 import cats.effect.IO import java.security.MessageDigest import org.scalacheck.Gen import hash._ class HashSpec extends Fs2Spec { def digest(algo: String, str: String): List[Byte] = MessageDigest.getInstance(algo).digest(str.getBytes).toList def checkDigest[A](h: Pipe[Pure, Byte, Byte], algo: St...
zaneli/fs2
core/jvm/src/test/scala/fs2/HashSpec.scala
Scala
mit
2,054
/* * 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 ...
bdrillard/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/python/FlatMapCoGroupsInPandasExec.scala
Scala
apache-2.0
4,293
package edu.berkeley.nlp.coref import edu.berkeley.nlp.coref.config.CorefSystemConfiguration import org.jobimtext.coref.berkeley.ThesaurusCollection import edu.berkeley.nlp.coref.lang.CorefLanguagePack /** * TODO convert nulls to options * @param languagePack */ class MentionPropertyComputer(val languagePack: Core...
timfeu/berkeleycoref-thesaurus
src/main/java/edu/berkeley/nlp/coref/MentionPropertyComputer.scala
Scala
gpl-3.0
474
/* * 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 ...
maropu/spark
sql/core/src/test/scala/org/apache/spark/status/api/v1/sql/SqlResourceSuite.scala
Scala
apache-2.0
7,551
package com.sksamuel.elastic4s.searches.queries.funcscorer import org.elasticsearch.index.query.functionscore.{RandomScoreFunctionBuilder, ScoreFunctionBuilders} object RandomScoreFunctionBuilderFn { def apply(random: RandomScoreFunctionDefinition): RandomScoreFunctionBuilder = { val builder = ScoreFunctionBuil...
tyth/elastic4s
elastic4s-tcp/src/main/scala/com/sksamuel/elastic4s/searches/queries/funcscorer/RandomScoreFunctionBuilderFn.scala
Scala
apache-2.0
431
/** * Copyright 2014 Gianluca Amato <gamato@unich.it> * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 o...
francescaScozzari/Jandom
core/src/test/scala/it/unich/jandom/domains/EmptyExistsSuite.scala
Scala
lgpl-3.0
1,169
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * See the LICENCE.txt file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
pcross616/wookiee
wookiee-core/src/main/scala/com/webtrends/harness/health/Health.scala
Scala
apache-2.0
1,008
package com.twitter.finagle.service import com.twitter.conversions.time._ import com.twitter.finagle._ import com.twitter.finagle.client.Transporter import com.twitter.finagle.service.exp.FailureAccrualPolicy import com.twitter.finagle.stats.{NullStatsReceiver, StatsReceiver} import com.twitter.finagle.util.DefaultLog...
a-manumohan/finagle
finagle-core/src/main/scala/com/twitter/finagle/service/FailureAccrualFactory.scala
Scala
apache-2.0
13,325
package fs2 package async import fs2.util.Task import java.util.concurrent.atomic.AtomicLong class SignalSpec extends Fs2Spec { "Signal" - { "get/set/discrete" in { forAll { (vs0: List[Long]) => val vs = vs0 map { n => if (n == 0) 1 else n } val s = async.signalOf[Task,Long](0L).unsafeRun(...
japgolly/scalaz-stream
core/src/test/scala/fs2/async/SignalSpec.scala
Scala
mit
1,413
package de.zalando.model import de.zalando.apifirst.Application._ import de.zalando.apifirst.Domain._ import de.zalando.apifirst.ParameterPlace import de.zalando.apifirst.naming._ import de.zalando.apifirst.Hypermedia._ import de.zalando.apifirst.Http._ import de.zalando.apifirst.Security import java.net.URL import Sec...
zalando/play-swagger
play-scala-generator/src/test/scala/model/resources.options_yaml.scala
Scala
mit
1,733
/* * 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 ...
frankfzw/varys
core/src/main/scala/varys/framework/slave/ui/IndexPage.scala
Scala
apache-2.0
2,439
/* * Copyright 2020 Spotify AB. * * 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 or agreed to ...
spotify/scio
scio-core/src/main/scala/com/spotify/scio/util/ProtobufUtil.scala
Scala
apache-2.0
2,301
package com.infinitemule.hopperhack.foursq.storm import com.infinitemule.hopperhack.foursq._ import FoursquareJsonProtocol._ import com.infinitemule.hopperhack.storm.StormBolt import com.infinitemule.hopperhack.finagle.{FinagleHttpClientService, FinagleHttpRequestBuilder, ...
infinitemule/poursquare-storm
src/main/scala/com/infinitemule/hopperhack/foursq/storm/FoursquareStorm.scala
Scala
mit
6,103
package org.atnos package object eff { type <=[M[_], R] = Member.<=[M, R] type /=[M[_], R] = MemberInOut./=[M, R] type |=[M[_], R] = MemberIn.|=[M, R] object eff extends EffCreation with EffInterpretation object reader extends ReaderCreation with ReaderInterpretation object ...
etorreborre/eff-cats
shared/src/main/scala/org/atnos/eff/package.scala
Scala
mit
1,952
/* * Copyright 2011-2022 GatlingCorp (https://gatling.io) * * 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 appli...
gatling/gatling
gatling-core/src/main/scala/io/gatling/core/assertion/AssertionBuilders.scala
Scala
apache-2.0
4,271
package org.scalawiki import org.scalawiki.dto.Site import org.specs2.mutable.Specification import org.specs2.specification.BeforeAfterAll import scala.language.postfixOps import scala.sys.process._ import scala.util.Properties trait WithDocker extends BeforeAfterAll { val win = Properties.isWin val dockerTest...
intracer/scalawiki
scalawiki-core/src/test/scala/org/scalawiki/DockerSpec.scala
Scala
apache-2.0
1,529
/* * 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 ...
dotunolafunmiloye/spark
graphx/src/test/scala/org/apache/spark/graphx/GraphOpsSuite.scala
Scala
apache-2.0
3,167
/* * 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 ...
tillrohrmann/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/delegation/PlannerBase.scala
Scala
apache-2.0
21,234
package com.realizationtime.btdogg.parsing import java.nio.charset.StandardCharsets import java.nio.file.Path import java.util import com.realizationtime.btdogg.commons.FileEntry.{TorrentDir, TorrentFile} import com.realizationtime.btdogg.commons.{FileEntry, ParsingResult, TKey, TorrentData} import the8472.mldht.cli....
bwrega/btdogg
src/main/scala/com/realizationtime/btdogg/parsing/FileParser.scala
Scala
mit
2,879
package tests import org.scalatest.{FlatSpec, MustMatchers, OptionValues, WordSpecLike} import razie.diesel.dom.{AExprIdent, CExpr, WTypes} import razie.wiki.parser.ExprParser /** A simple parser for expressions */ class SimpleExprParser extends ExprParser { def apply(input: String) = { parseAll(expr, input) ma...
razie/wikireactor
diesel/src/test/scala/tests/TestExprParser.scala
Scala
apache-2.0
1,169
package org.apache.spark.ml import org.apache.spark.ml.classification.{DecisionTreeClassificationModel, LogisticRegressionModel} import org.apache.spark.ml.linalg.Vector import org.apache.spark.ml.regression.GeneralizedLinearRegressionModel import org.apache.spark.ml.regression.DecisionTreeRegressionModel import org.a...
levyx/spark-sql-perf
src/main/scala/org/apache/spark/ml/ModelBuilder.scala
Scala
apache-2.0
8,574
package com.ox.bigdata.util.ftp import java.io._ import com.ox.bigdata.util.log.LogSupport import com.ox.bigdata.util.sftp.SFTPManager import org.apache.commons.net.PrintCommandListener import org.apache.commons.net.ftp.{FTP, FTPClient, FTPFile, FTPReply} trait UploadSupport { def upload(serverinfo: FtpServerInfo, ...
black-ox/simple
src/main/scala/com/ox/bigdata/util/ftp/FtpManager.scala
Scala
apache-2.0
10,177
/* * 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 ...
aosagie/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
Scala
apache-2.0
11,588
package im.actor.server.models.llectro case class LlectroDevice(authId: Long, screenWidth: Int, screenHeight: Int)
boneyao/actor-platform
actor-server/actor-models/src/main/scala/im/actor/server/models/llectro/LlectroDevice.scala
Scala
mit
115
package io.getquill.context.jdbc.h2 import io.getquill.{ H2Dialect, JdbcContext, Literal, TestEntities } import io.getquill.context.jdbc.TestEncoders import io.getquill.context.sql.TestDecoders object testContext extends JdbcContext[H2Dialect, Literal]("testH2DB") with TestEntities with TestEncoders with TestDecoders...
jcranky/quill
quill-jdbc/src/test/scala/io/getquill/context/jdbc/h2/TestContext.scala
Scala
apache-2.0
321
package org.jetbrains.plugins.scala package lang package psi package stubs import api.base.types.ScTypeElement import api.expr.ScExpression import api.statements.ScFunction import com.intellij.psi.stubs.NamedStub /** * User: Alexander Podkhalyuzin * Date: 14.10.2008 */ trait ScFunctionStub extends NamedStub[ScFun...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/ScFunctionStub.scala
Scala
apache-2.0
629
package org.elasticsearch.spark.integration import java.io.File import java.nio.file.Files import java.sql.Timestamp import java.util.concurrent.TimeUnit import java.{lang => jl} import java.{util => ju} import javax.xml.bind.DatatypeConverter import org.apache.spark.SparkConf import org.apache.spark.sql.SparkSession...
takezoe/elasticsearch-hadoop
spark/sql-20/src/itest/scala/org/elasticsearch/spark/integration/AbstractScalaEsSparkStructuredStreaming.scala
Scala
apache-2.0
18,558
package com.nullpointerbay /** * Created by charafau on 11/29/14. */ import org.scalatest._ abstract class UnitSpec extends FlatSpec with Matchers with OptionValues with Inside with Inspectors
charafau/postal-code-parser
src/test/scala/com/nullpointerbay/UnitSpec.scala
Scala
mit
196
/* * 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 ...
WindCanDie/spark
sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
Scala
apache-2.0
34,475
/* * 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 ...
pgandhi999/spark
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/KubernetesClientApplication.scala
Scala
apache-2.0
9,758
/*********************************************************************** * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 which * accompanies this distribution and is ...
giserh/geomesa
geomesa-convert/geomesa-convert-text/src/main/scala/org/locationtech/geomesa/convert/text/DelimitedTextConverter.scala
Scala
apache-2.0
4,156
package test // See: https://github.com/milessabin/si2712fix-demo/issues/3 object Test { trait A[T1, T2] { } trait B[T1, T2] { } class C[T] extends A[T, Long] with B[T, Double] class CB extends A[Boolean, Long] with B[Boolean, Double] trait A2[T] trait B2[T] class C2[T] extends A2[T] with B2[T] class ...
som-snytt/dotty
tests/pos/t2712-2.scala
Scala
apache-2.0
811
package edison.yaml.project import edison.model.domain import edison.yaml.project.DocumentStructure.Project import edison.yaml.project.DocumentStructure.Project.SearchDomain.ParamDef import edison.yaml.project.DocumentStructure.Project.SearchDomain.ParamDef.ParamDomain.ParamDomainEnum.Values import edison.yaml.project...
pawel-wiejacha/edison
service/src/main/scala/edison/yaml/project/ElementParsers.scala
Scala
mit
2,392
/* * 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 ...
brandon-edwards/incubator-spot
spot-ml/src/test/scala/org/apache/spot/netflow/model/FlowSuspiciousConnectsModelTest.scala
Scala
apache-2.0
5,783
package spark import java.io.File import java.net.InetAddress import org.eclipse.jetty.server.Server import org.eclipse.jetty.server.handler.DefaultHandler import org.eclipse.jetty.server.handler.HandlerList import org.eclipse.jetty.server.handler.ResourceHandler import org.eclipse.jetty.util.thread.QueuedThreadPool ...
joeywen/spark_cpp_api
core/src/main/scala/spark/HttpServer.scala
Scala
bsd-3-clause
1,928
def extend[W[_], A, B]: (W[A] => B) => W[A] => W[B]
hmemcpy/milewski-ctfp-pdf
src/content/3.7/code/scala/snippet12.scala
Scala
gpl-3.0
51
package com.github.norwae.ignifera import akka.actor.{Actor, ActorSystem, DeadLetter, Props, UnhandledMessage} import io.prometheus.client.Counter /** * Optional additional statistics describing the status of the actor * system. */ class AkkaStats private extends Actor { context.system.eventStream.subscribe(s...
Norwae/ignifera
src/main/scala/com/github/norwae/ignifera/AkkaStats.scala
Scala
bsd-2-clause
1,238
package com.github.agourlay.cornichon.json import io.circe.{ Json, JsonObject } import com.github.agourlay.cornichon.json.JsonPath._ import munit.FunSuite class CornichonJsonSpec extends FunSuite with CornichonJson { def refParser(input: String): Json = io.circe.parser.parse(input).fold(e => throw e, identity)...
agourlay/cornichon
cornichon-core/src/test/scala/com/github/agourlay/cornichon/json/CornichonJsonSpec.scala
Scala
apache-2.0
11,934
package unfiltered /** Module defining Cookie-related constants * See also [[http://tools.ietf.org/html/rfc2965#page-5]] */ object CookieKeys { val Path = "Path" val Expires = "Expires" val MaxAge = "Max-Age" val Domain = "Domain" val Secure = "Secure" val HTTPOnly = "HTTPOnly" val Comment = "Comment" ...
omarkilani/unfiltered
library/src/main/scala/cookies.scala
Scala
mit
1,213
/** * 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...
tnachen/kafka
core/src/main/scala/kafka/message/MessageAndOffset.scala
Scala
apache-2.0
1,005
/** * 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"); yo...
ollie314/kafka
core/src/test/scala/unit/kafka/server/checkpoints/OffsetCheckpointFileTest.scala
Scala
apache-2.0
3,261
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/util/control/ControlThrowable.scala
Scala
apache-2.0
1,480
/* sbt -- Simple Build Tool * Copyright 2011 Mark Harrah, Eugene Yokota * * Copied from sbt 0.12 source code */ package net.virtualvoid.sbt.graph import sbt.SbtDependencyGraphCompat object Graph { // [info] foo // [info] +-bar // [info] | +-baz // [info] | // [info] +-quux def toAscii[A](top: A, ...
rintcius/sbt-dependency-graph
src/main/scala/net/virtualvoid/sbt/graph/Graph.scala
Scala
apache-2.0
1,631
package lila.simul import chess.variant.Variant import lila.user.User import org.joda.time.{ DateTime, Duration } import ornicar.scalalib.Random case class Simul( _id: Simul.ID, name: String, status: SimulStatus, clock: SimulClock, applicants: List[SimulApplicant], pairings: List[SimulPairing]...
Happy0/lila
modules/simul/src/main/Simul.scala
Scala
mit
3,978
/* * The MIT License (MIT) * * Copyright (C) 2012 47 Degrees, LLC http://47deg.com hello@47deg.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
47deg/mvessel
core/src/main/scala/com/fortysevendeg/mvessel/package.scala
Scala
mit
994
package notebook.front.widgets import notebook.JsonCodec._ import notebook._ import notebook.front._ import org.apache.spark.sql.{DataFrame, SQLContext} import play.api.Logger import play.api.libs.json._ import scala.util._ class Sql(sqlContext: SQLContext, call: String) extends Widget { private[this] val sqlInpu...
pb-pravin/spark-notebook
modules/common/src/main/scala/notebook/front/widgets/Sql.scala
Scala
apache-2.0
6,615
package com.cloudray.scalapress.plugin.sitemap import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.{ResponseBody, RequestMapping} import org.springframework.beans.factory.annotation.Autowired import javax.servlet.http.HttpServletResponse import org.apache.commons.io.IOUtils ...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/plugin/sitemap/SitemapController.scala
Scala
apache-2.0
761
package org.jetbrains.plugins.scala package lang package psi package api package expr package xml /** * @author Alexander Podkhalyuzin * Date: 21.04.2008 */ trait ScXmlCDSect extends ScalaPsiElement { }
katejim/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/xml/ScXmlCDSect.scala
Scala
apache-2.0
205
package com.eigengo.lift.exercise.classifiers.workflows import akka.stream.scaladsl.FlexiMerge /** * Flowgraph merge node that expects a message on each of its inputs. The collection of input messages is then outputted. * This merge node can be thought of as a generalised Zip or ZipWith node. * * @param size number o...
lachatak/lift
server/exercise/src/main/scala/com/eigengo/lift/exercise/classifiers/workflows/ZipNodes.scala
Scala
apache-2.0
1,787
package org.ocular import android.app.Activity import android.content.Context import android.support.annotation.UiThread import android.view.View import org.ocular.ui._ import org.ocular.utils.MainThreadExecutor class UiProcessor(activity: Activity) { private var _currentDef: UiComponent[_] = _ private var _previ...
dant3/ocular
core/src/main/scala/org/ocular/UiProcessor.scala
Scala
apache-2.0
1,295
package org.mentha.tools.archimate.model.view import java.util import scala.util._ package object dsl { import org.mentha.tools.archimate.model._ import org.mentha.tools.archimate.model.edges._ import org.mentha.tools.archimate.model.edges.impl._ implicit class NodeConceptToView[T <: NodeConcept](val conce...
zhuj/mentha-web-archimate
archimate-model/src/main/scala/org/mentha/tools/archimate/model/view/dsl/package.scala
Scala
mit
15,123
/* * Copyright 2022 HM Revenue & Customs * * 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 or a...
hmrc/nisp-frontend
test/uk/gov/hmrc/nisp/helpers/FakeVerifyAuthAction.scala
Scala
apache-2.0
1,422
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * 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 app...
darroyocazorla/crossdata
core/src/test/scala/org/apache/spark/sql/crossdata/catalyst/analysis/XDResolveReferencesIT.scala
Scala
apache-2.0
7,513
/* * The MIT License (MIT) * * Copyright (c) 2015-2019 Helge Holzmann (Internet Archive) <helge@archive.org> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, incl...
helgeho/ArchiveSpark
src/main/scala/org/archive/archivespark/model/EnrichRoot.scala
Scala
mit
2,073
/* * 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 ...
sryza/spark
core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala
Scala
apache-2.0
5,751
package org.jetbrains.plugins.scala.lang.formatter.tests import org.jetbrains.plugins.scala.lang.formatter.AbstractScalaFormatterTestBase import com.intellij.psi.codeStyle.CommonCodeStyleSettings /** * @author Alexander Podkhalyuzin */ class ScalaWrappingAndBracesTest extends AbstractScalaFormatterTestBase { /* ...
consulo/consulo-scala
test/org/jetbrains/plugins/scala/lang/formatter/tests/ScalaWrappingAndBracesTest.scala
Scala
apache-2.0
5,982
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.mvc.akkahttp import akka.http.scaladsl.model.{ HttpRequest, HttpResponse } import play.api.mvc.Handler import play.mvc.Http.RequestHeader import scala.concurrent.Future trait AkkaHttpHandler extends (HttpRequest => Future[...
Shenker93/playframework
framework/src/play-akka-http-server/src/main/scala/play/api/mvc/akkahttp/AkkaHttpHandler.scala
Scala
apache-2.0
556
package cromwell.engine.backend import java.nio.file._ import better.files._ import ch.qos.logback.classic.encoder.PatternLayoutEncoder import ch.qos.logback.classic.spi.ILoggingEvent import ch.qos.logback.classic.{Level, LoggerContext} import ch.qos.logback.core.FileAppender import cromwell.core.{WorkflowId, Workflo...
cowmoo/cromwell
engine/src/main/scala/cromwell/engine/backend/WorkflowDescriptor.scala
Scala
bsd-3-clause
10,255
/* * 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 ...
WindCanDie/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
Scala
apache-2.0
18,327
/*********************************************************************** * Copyright (c) 2013-2020 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
aheyne/geomesa
geomesa-index-api/src/main/scala/org/locationtech/geomesa/index/conf/SchemaProperties.scala
Scala
apache-2.0
816
/******************************************************************************* * Copyright (c) 2014 Łukasz Szpakowski. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MP...
luckboy/Purfuncor
src/main/scala/pl/luckboy/purfuncor/frontend/typer/TypeBuiltinFunctions.scala
Scala
mpl-2.0
9,724
/* * Copyright 2015 MongoDB, 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 applicable law or agreed to ...
hermannhueck/reactive-mongo-access
src/main/scala/shopScala/util/examples/TestSubscriber.scala
Scala
apache-2.0
7,752
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the ClaimCase entity. */ class ClaimCaseGatlingTest exte...
onpointtech/stack-reference
src/test/gatling/simulations/ClaimCaseGatlingTest.scala
Scala
apache-2.0
3,338
package dotty.tools.scaladoc.util /** * This is trivial html renderer using api inspired by ScalaTags * It probably could be more efficient but for now on it should be good enough. */ object HTML: type AttrArg = AppliedAttr | Seq[AppliedAttr] type TagArg = AppliedTag | Seq[AppliedTag] | String | Seq[String] ...
dotty-staging/dotty
scaladoc/src/dotty/tools/scaladoc/util/html.scala
Scala
apache-2.0
3,270
package com.github.pheymann.rrt.util import com.github.pheymann.rrt.TestConfig import com.github.pheymann.rrt.util.ResponseComparator.{ComparisonFailure, FailureWithDiffs, FailureWithValues} import scala.util.Try import scala.util.control.NonFatal object BodyAsStringComparison { def stringComparison(actual: Strin...
pheymann/rest-refactoring-test
core/src/main/scala/com/github/pheymann/rrt/util/BodyAsStringComparison.scala
Scala
mit
2,265