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
package com.sksamuel.elastic4s.validate import com.sksamuel.elastic4s.{IndexesAndTypes, ProxyClients} import com.sksamuel.exts.OptionImplicits._ import org.elasticsearch.action.admin.indices.validate.query.{ValidateQueryAction, ValidateQueryRequestBuilder} import org.elasticsearch.index.query.QueryBuilder case class ...
ulric260/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/validate/ValidateDefinition.scala
Scala
apache-2.0
1,121
/* * Copyright 2012 The SIRIS Project * * 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 applica...
simulator-x/core
src/simx/core/svaractor/SVarActor.scala
Scala
apache-2.0
30,318
/* * Odessa State environmental University * Copyright (C) 2014 */ package ua.edu.odeku.ceem.mapRadar.utils.thread /** * Типаж прендназначен для передачи сообщения о том, что необходимо остановится * Created by Aleo on 23.03.14. */ trait StopProcess { var stopProcess = false }
aleo72/ww-ceem-radar
src/main/java/ua/edu/odeku/ceem/mapRadar/utils/thread/StopProcess.scala
Scala
apache-2.0
353
/* * PipeOperatorSupport.scala * * Copyright (c) 2013 Lonnie Pryor III * * 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 * * Unles...
lpryor/fulcrum-spike
util/src/main/scala/fulcrum/util/PipeOperatorSupport.scala
Scala
apache-2.0
1,902
package org.jetbrains.plugins.scala package console import java.io.{IOException, OutputStream} import com.intellij.openapi.actionSystem.{AnAction, AnActionEvent, CommonDataKeys} import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.editor.ex.EditorEx import com.intellij.openapi.util.TextRange /**...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/console/ScalaConsoleExecuteAction.scala
Scala
apache-2.0
2,560
package io.github.mandar2812.dynaml.models.svm import breeze.linalg.{DenseMatrix, norm, DenseVector} import breeze.numerics.sqrt import org.apache.log4j.Logger import org.apache.spark.mllib.linalg.Vectors import org.apache.spark.mllib.regression.LabeledPoint import org.apache.spark.mllib.stat.Statistics import org.apa...
twitwi/DynaML
src/main/scala/io/github/mandar2812/dynaml/models/svm/KernelSparkModel.scala
Scala
apache-2.0
6,130
/* * Copyright 2017-2020 47 Degrees, LLC. <http://www.47deg.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 require...
frees-io/freestyle-rpc
benchmarks/shared/src/main/scala/higherkindness/mu/rpc/benchmarks/ProtoBenchmark.scala
Scala
apache-2.0
2,430
package views.html import play.templates._ import play.templates.TemplateMagic._ import play.api.templates._ import play.api.templates.PlayMagic._ import models._ import controllers._ import play.api.i18n._ import play.api.mvc._ import play.api.data._ import views.html._ /* adminHome Template File */ object adminHom...
pamu/FooService
FooService2/target/scala-2.10/src_managed/main/views/html/adminHome.template.scala
Scala
apache-2.0
2,546
/* * 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...
danielcsant/sparta
driver/src/main/scala/com/stratio/sparta/driver/cube/CubeWriter.scala
Scala
apache-2.0
5,171
/* * Copyright 2013-2016 the original author or authors. * * 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 ap...
amuramatsu/Laika
core/src/main/scala/laika/render/TextWriter.scala
Scala
apache-2.0
4,362
package com.mesosphere.universe // index.json schema for each package from Universe case class UniverseIndexEntry( name: String, currentVersion: PackageDetailsVersion, versions: Map[PackageDetailsVersion, ReleaseVersion], description: String, framework: Boolean = false, tags: List[String], //TODO: patte...
movicha/cosmos
cosmos-model/src/main/scala/com/mesosphere/universe/UniverseIndexEntry.scala
Scala
apache-2.0
373
trait K trait L object O { type LK = K with L val A: LK = new K with L val B: LK = new K with L } object Test extends App { val scrut: O.LK = O.B scrut match { case O.A => ??? case O.B => // spurious unreachable } }
som-snytt/dotty
tests/run/t8611a.scala
Scala
apache-2.0
238
package org.bigsolr.spark import org.bigsolr.hadoop.SolrInputFormat import org.bigsolr.hadoop.SolrRecord import org.apache.hadoop.io.NullWritable import org.apache.hadoop.mapreduce.Job import org.apache.hadoop.conf.Configuration import scala.collection.JavaConversions._ import scala.language.existentials import org....
mrt/bigsolr
src/main/scala/org/bigsolr/spark/SolrRelation.scala
Scala
apache-2.0
1,617
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed to you 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 cop...
molecule-labs/molecule
molecule-core/src/main/scala/molecule/stream/ochan/immutable/ParserT.scala
Scala
apache-2.0
2,440
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-process/geomesa-process-vector/src/test/scala/org/locationtech/geomesa/process/query/RouteSearchProcessTest.scala
Scala
apache-2.0
4,591
package scaspell.service import scaspell.api.Spellchecker import com.twitter.finagle.Service import com.twitter.finagle.httpx.{Response, Request} case class GetLanguagesService(spellchecker: Spellchecker) extends Service[Request, Response] { import spray.json._ import DefaultJsonProtocol._ override def ...
KimStebel/scalpel
src/main/scala/scaspell/service/GetLanguagesService.scala
Scala
apache-2.0
627
package yuuto.enhancedinventories.block.base import java.util.ArrayList import net.minecraft.block.Block import net.minecraft.block.material.Material import net.minecraft.enchantment.EnchantmentHelper import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.player.EntityPlayer import net.minecraft.item...
AnimeniacYuuto/EnhancedInventories
src/main/scala/yuuto/enhancedinventories/block/base/BlockBaseEI.scala
Scala
gpl-2.0
3,404
/** * Copyright 2009 Google 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...
masterx2/noop
core/src/main/scala/noop/model/BooleanLiteralExpression.scala
Scala
apache-2.0
1,103
package com.wanghuanming.tfidf import scala.io._ object test { def main(args: Array[String]) = { // test get keywords val URLs = Array("http://wanghuanming.com/2014/12/thread-and-process", "http://wanghuanming.com/2014/12/mesos-deploy", "http://www.cnblogs.com/jasonkoo/articles/2834727.html") ...
HelloCodeMing/scala-tfidf
src/test/scala/com/wanghuanming/tfidf/test.scala
Scala
mit
672
package core import org.scalatest.{FunSpec, Matchers} class ImportedResourcePathsSpec extends FunSpec with Matchers { it("generates appropriate path for resources from imported models") { val common = """ { "name": "common", "namespace": "test.common.v0", "models": { "user": { ...
apicollective/apibuilder
core/src/test/scala/core/ImportedResourcePathsSpec.scala
Scala
mit
1,123
package artisanal.pickle.maker import models._ import parser._ import org.specs2._ import mutable._ import specification._ import scala.reflect.internal.pickling.ByteCodecs import scala.tools.scalap.scalax.rules.scalasig._ import com.novus.salat.annotations.util._ import scala.reflect.ScalaSignature class ListIn...
julianpeeters/artisanal-pickle-maker
src/test/scala/singleValueMember/ListSpecs/List[Int]Spec.scala
Scala
apache-2.0
925
package io.eels.component.hive import java.io.File import io.eels.Row import io.eels.datastream.DataStream import io.eels.schema.{Field, StringType, StructType} import org.scalatest.{FunSuite, Matchers} class HiveAlignmentTest extends FunSuite with Matchers { import HiveConfig._ val dbname = HiveTestUtils.crea...
eel-lib/eel
eel-hive/src/test/scala/io/eels/component/hive/HiveAlignmentTest.scala
Scala
mit
1,595
package com.emptyarray.scala.android.util import android.os.AsyncTask import scala.concurrent.ExecutionContext /** * Created by Weasel on 7/7/15. */ object ThreadPoolExecutionContext { implicit val execContext = ExecutionContext.fromExecutor( AsyncTask.THREAD_POOL_EXECUTOR ) }
emptyarray/scala-android-animation
src/main/scala/com/emptyarray/scala/android/util/ThreadPoolExecutionContext.scala
Scala
apache-2.0
285
/* * 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/api/validation/UserDefinedFunctionValidationTest.scala
Scala
apache-2.0
2,364
/* * This file is part of Kiama. * * Copyright (C) 2011-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 ...
joaoraf/kiama
library/src/org/kiama/example/oberon0/L1/source/SourcePrettyPrinter.scala
Scala
gpl-3.0
1,730
// // MessagePack for Java // // 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...
xerial/msgpack-java
msgpack-core/src/test/scala/org/msgpack/core/MessagePackerTest.scala
Scala
apache-2.0
6,669
package org.jetbrains.plugins.scala.lang.psi.types.api import java.util.concurrent.ConcurrentMap import com.intellij.util.containers.ContainerUtil import org.jetbrains.plugins.scala.extensions.TraversableExt import org.jetbrains.plugins.scala.lang.psi.types.api.ParameterizedType.substitutorCache import org.jetbrains....
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/types/api/ParameterizedType.scala
Scala
apache-2.0
2,258
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.cluster import akka.actor.ExtendedActorSystem import akka.serialization.SerializerWithStringManifest import akka.serialization.BaseSerializer import com.lightbend.lagom.internal.cluster.ClusterDistributio...
ignasi35/lagom
cluster/core/src/main/scala/com/lightbend/lagom/internal/cluster/ClusterMessageSerializer.scala
Scala
apache-2.0
1,863
package clustering.metrics.indexes import scala.collection.mutable.ListBuffer import org.apache.spark.ml.linalg.Vectors import org.apache.spark.mllib.stat.Statistics import org.apache.spark.rdd.RDD.doubleRDDToDoubleRDDFunctions import org.apache.spark.sql.DataFrame import clustering.metrics.Spark import clustering.m...
DanielTizon/ClusteringMetrics
src/main/scala/clustering/metrics/indexes/IndexKL.scala
Scala
apache-2.0
7,852
/* * 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 ...
spark0001/spark2.1.1
core/src/test/scala/org/apache/spark/deploy/StandaloneDynamicAllocationSuite.scala
Scala
apache-2.0
22,612
package pl.abankowski.musicbrainz.client.service import scala.concurrent.Future import pl.abankowski.musicbrainz.client.dto.LabelId import pl.abankowski.musicbrainz.client.dto.LabelInfo import pl.abankowski.musicbrainz.client.dto.ResourceResult import pl.abankowski.musicbrainz.client.dto.ResourceResult import pl.abanko...
abankowski/musicbrainz-scala-client
src/main/scala/pl/abankowski/musicbrainz/client/service/LabelService.scala
Scala
mit
487
/* * 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 ...
hhbyyh/spark
core/src/main/scala/org/apache/spark/status/api/v1/api.scala
Scala
apache-2.0
12,731
package mesosphere.marathon.upgrade import akka.actor.{ ActorSystem, Props } import akka.testkit.{ TestActorRef, TestKit } import com.codahale.metrics.MetricRegistry import mesosphere.marathon.{ MarathonConf, SchedulerActions, TaskUpgradeCanceledException } import mesosphere.marathon.event.{ HealthStatusChanged, Mesos...
sttts/marathon
src/test/scala/mesosphere/marathon/upgrade/TaskStartActorTest.scala
Scala
apache-2.0
6,340
package actors.persistent.staffing import actors.persistent.Sizes.oneMegaByte import actors.acking.AckingReceiver.StreamCompleted import actors.persistent.{PersistentDrtActor, RecoveryActorLike} import akka.actor.Scheduler import akka.persistence._ import akka.stream.scaladsl.SourceQueueWithComplete import drt.shared....
UKHomeOffice/drt-scalajs-spa-exploration
server/src/main/scala/actors/persistent/staffing/FixedPointsActorBase.scala
Scala
apache-2.0
5,834
/* * This file is part of Kiama. * * Copyright (C) 2011-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 ...
joaoraf/kiama
library/src/org/kiama/util/Tests.scala
Scala
gpl-3.0
11,473
package streams import common._ /** * This component implements a parser to define terrains from a * graphical ASCII representation. * * When mixing in that component, a level can be defined by * defining the field `level` in the following form: * * val level = * """------ * |--ST-- * |-...
shouya/thinking-dumps
progfun2/week2-bloxorz/src/main/scala/streams/StringParserTerrain.scala
Scala
mit
2,638
package com.tomogle.magnetpattern import org.scalatest.{FlatSpec, Matchers} class PreMagnetPatternTest extends FlatSpec with Matchers { behavior of "PreMagnetPatternTest" it should "concatenate 'xyz' to an input String" in new PreMagnetPattern { val result = preMagnetFunction("initial") result shouldBe ...
tom-ogle/scala-scratch-code
src/test/scala/com/tomogle/magnetpattern/PreMagnetPatternTest.scala
Scala
mit
618
package com.plasmaconduit.trytoobservable import rx.lang.scala.Observable import scala.util.{Failure, Success, Try} object TryToObservable { def apply[A](value: Try[A]): Observable[A] = value match { case Success(success) => Observable.just(success) case Failure(failure) => Observable.error(failure) } ...
plasmaconduit/try-to-observable
src/main/scala/com/plasmaconduit/trytoobservable/TryToObservable.scala
Scala
mit
322
package scala.reflect.internal import scala.tools.nsc.symtab.SymbolTableForUnitTesting class SubstMapTest { object symbolTable extends SymbolTableForUnitTesting import symbolTable._ // compile-test for https://github.com/scala/community-build/pull/1413 new SubstMap[String](Nil, Nil) { protected def toTyp...
scala/scala
test/junit/scala/reflect/internal/SubstMapTest.scala
Scala
apache-2.0
363
/* * 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/ct600a/v3/A35.scala
Scala
apache-2.0
1,418
package ch.uzh.ifi.pdeboer.pplib.process import ch.uzh.ifi.pdeboer.pplib.process.entities.ProcessStub import org.junit.{Assert, Test} /** * Created by pdeboer on 11/11/14. */ class ProcessStubTest { @Test def testEqualsAndHashCode(): Unit = { Assert.assertEquals(new TestProcessStubA(), new TestProcessStubA()) ...
uzh/PPLib
src/test/scala/ch/uzh/ifi/pdeboer/pplib/process/ProcessStubTest.scala
Scala
mit
1,218
package com.twitter.finagle.netty4.http import com.twitter.finagle.http.{Request, Response} import com.twitter.finagle.netty4.http.handler.UnpoolHttpHandler import io.netty.buffer.{ByteBuf, Unpooled} import io.netty.handler.codec.http._ import java.net.InetSocketAddress import io.netty.channel.embedded.EmbeddedChannel...
luciferous/finagle
finagle-netty4-http/src/main/scala/com/twitter/finagle/netty4/http/Netty4HttpCodec.scala
Scala
apache-2.0
3,886
/* * 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/iht-frontend
test/iht/testhelpers/viewSpecshelper/registration/RegistrationChecklistMessages.scala
Scala
apache-2.0
4,577
// create a polyhedron that is sub-divided a set amount of times // create polyhedron, subdivide, and output object CreatePoly{ def main(args: Array[String]){ val arg = args.toList val p = new Polyhedron() val iter = arg.head.toInt for(i<-0 until iter){ p.subdivide } println(p.html()) ...
mckennapsean/code-examples
Scala/CreatePoly/CreatePoly.scala
Scala
mit
325
package pirate.spec import org.specs2._ abstract class Spec extends Specification with ScalaCheck
etorreborre/pirate
src/test/scala/pirate.spec/Spec.scala
Scala
bsd-3-clause
100
package com.szadowsz.gospel.core.data.util import java.{util => ju} import com.szadowsz.gospel.core.Prolog import com.szadowsz.gospel.core.data.Term import com.szadowsz.gospel.core.engine.EngineRunner class TermQueue { private val _queue = new ju.LinkedList[Term] def get(t: Term, engine: Prolog, er: EngineRunne...
zakski/project-soisceal
scala-core/src/main/scala/com/szadowsz/gospel/core/data/util/TermQueue.scala
Scala
lgpl-3.0
1,932
package server.routes import akka.http.scaladsl.model.StatusCodes.{NotFound, OK} import akka.http.scaladsl.server.Route import com.ketilovre.server.handlers.GreetHandler import com.ketilovre.server.routes.GreetRoute import helpers.{BaseSpec, RouteSpec} class GreetRouteSpec extends BaseSpec with RouteSpec { val han...
ketilovre/akka-http-macwire
src/test/scala/server/routes/GreetRouteSpec.scala
Scala
mit
915
import scala.tools.partest._ import java.io.{Console => _, _} object Test extends DirectTest { override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:inline -d " + testOutput.path override def code = """class Foo { | def bar = { | val f =...
yusuke2255/dotty
tests/pending/run/delambdafy_uncurry_inline.scala
Scala
bsd-3-clause
536
package org.eso.ias.asce.test.transfer import java.util.Properties import org.eso.ias.asce.transfer.{IasIO, IasioInfo, ScalaTransferExecutor, TransferFunctionSetting} import org.eso.ias.logging.IASLogger import org.eso.ias.types.{Alarm, IASTypes} /** * A transfer function to test if the component correctly detects...
IntegratedAlarmSystem-Group/ias
CompElement/src/test/scala/org/eso/ias/asce/test/transfer/SimulatedSlowTF.scala
Scala
lgpl-3.0
2,629
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
massie/adam
adam-core/src/main/scala/org/bdgenomics/adam/projections/FragmentField.scala
Scala
apache-2.0
1,102
package demo package components import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import scala.scalajs.js case class Github(login: String = "", html_url: String = "", avatar_url: String = "", time: Double = 0) { override def equals(ob...
rleibman/scalajs-react-components
demo/src/main/scala/demo/components/GithubUser.scala
Scala
apache-2.0
1,472
package com.pommedeterresautee.twoborange3.Common import android.app.Activity import android.support.v4.widget.DrawerLayout import android.support.v4.app.{FragmentActivity, ActionBarDrawerToggle} import android.support.v4.view.GravityCompat import android.content.Intent import android.view.{MenuItem, Gravity, ViewGro...
pommedeterresautee/obackup_scala
src/main/scala/com/pommedeterresautee/twoborange3/Common/SideMenu.scala
Scala
gpl-2.0
4,796
// import akka.http.scaladsl.marshalling.{Marshaller, _} // import akka.http.scaladsl.model.MediaType // import akka.http.scaladsl.model.MediaTypes._ // import play.twirl.api.{Html, Txt, Xml} // package object provingground { // // /** Twirl marshallers for Xml, Html and Txt mediatypes */ // implicit val twirlHtml...
siddhartha-gadgil/ProvingGround
server/src/main/scala/provingground/interface/package.scala
Scala
mit
675
/* Copyright 2012 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
twitter/chill
chill-scala/src/main/scala/com/twitter/chill/RichKryo.scala
Scala
apache-2.0
2,817
package com.ignition.frame import org.junit.runner.RunWith import org.specs2.runner.JUnitRunner import com.ignition.types.{ RichStructType, date, fieldToRichStruct, int, string } @RunWith(classOf[JUnitRunner]) class DebugOutputSpec extends FrameFlowSpecification { private val newid = "39abc670-5386-11e5-b7ab-d614...
uralian/ignition
src/test/scala/com/ignition/frame/DebugOutputSpec.scala
Scala
apache-2.0
3,694
/* * Copyright 2001-2011 Artima, 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 agre...
yyuu/scalatest
src/test/scala/org/scalatest/concurrent/ConductorSuite.scala
Scala
apache-2.0
12,107
/* * 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 ...
rmetzger/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/runtime/stream/sql/TemporalJoinITCase.scala
Scala
apache-2.0
9,875
package rules import models.{APILimit, APILimitTable, Work, WorkType} import org.joda.time.DateTime import play.api.Play import play.api.Play.current object APILimitRules { private lazy val config = Play.configuration def isLimited(work: Work): Boolean = { val defaultWindow = APILimit(-1, "", DateTime.now()...
rtfpessoa/distributed-twitter-crawler
app/rules/APILimitRules.scala
Scala
mit
1,338
/*********************************************************************** * 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-fs/geomesa-fs-tools/src/main/scala/org/locationtech/geomesa/fs/tools/export/FsPlaybackCommand.scala
Scala
apache-2.0
1,631
package org.jetbrains.plugins.scala.lang.scaladoc.psi.api import _root_.org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement import com.intellij.psi.PsiElement import com.intellij.psi.javadoc.PsiDocTag /** * User: Alexander Podkhalyuzin * Date: 22.07.2008 */ trait ScDocTag extends ScalaPsiElement with PsiDocTag {...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/scaladoc/psi/api/ScDocTag.scala
Scala
apache-2.0
482
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/cypher-compiler-2.3/src/main/scala/org/neo4j/cypher/internal/compiler/v2_3/planner/logical/idp/IDPPlanTable.scala
Scala
apache-2.0
1,858
import sbt._ // This plugin is used to load the sbt-jasmine plugin into our project. // This allows us to import the SbtJasminePlugin file // in Build.scala, and then set the settings and configuration for Sbt-Jasmine object Plugins extends Build { lazy val plugins = Project("plugins", file(".")) .dependsOn(ur...
mresposito/gitEvolve
project/project/Plugins.scala
Scala
apache-2.0
383
/* * Copyright 2018 TWO SIGMA OPEN SOURCE, LLC * * 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 appl...
twosigma/beaker-notebook
kernel/sparkex/src/main/scala/com.twosigma.beakerx.scala.spark/TimeSeriesRDDDisplayer.scala
Scala
apache-2.0
2,077
/* * 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 ...
PangZhi/flink
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/rules/FlinkRuleSets.scala
Scala
apache-2.0
7,377
package de.kalass.batchmonads.base.impl // case class, so that we get a good equals implementation for free private[base] case class BaseOperation[I, A](value: I, creator: BatchOperation[I, A]) extends Operation[A] { }
kkalass/BatchMonads
src/de/kalass/batchmonads/base/impl/BaseOperation.scala
Scala
lgpl-3.0
219
/** * Copyright 2013 Alex Jones * * 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, Ver...
unclealex72/west-ham-calendar
app/dates/ChainingDateParser.scala
Scala
apache-2.0
1,611
package fr.eurecom.dsg.treelib.core /** * This class is representative for each value of each feature in the data set * @param index Index of the feature in the whole data set, based zero * @param xValue Value of the current feature * @param yValue Value of the Y feature associated (target, predicted feature) * @...
bigfootproject/treelib
src/main/scala/fr/eurecom/dsg/treelib/core/FeatureValueAggregate.scala
Scala
apache-2.0
1,354
/* * 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 ...
shuangshuangwang/spark
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala
Scala
apache-2.0
74,984
package unit.models.service import models.daos.{ContributionDAO, RepositoryDAO, UserDAO} import models.services.KarmaService import models.{Contribution, Repository, User} import org.junit.runner._ import org.specs2.mock.Mockito import org.specs2.mutable._ import org.specs2.runner._ @RunWith(classOf[JUnitRunner]) c...
gitlinks/gitrank-web
test/unit/models/service/KarmaServiceSpec.scala
Scala
apache-2.0
2,042
/* * Copyright 2012 The SIRIS Project * * 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 applica...
simulator-x/lwjgl-sound
src/simx/components/sound/SoundComponent.scala
Scala
apache-2.0
1,581
/* * 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 ...
ueshin/apache-flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/rules/physical/batch/BatchExecCalcRule.scala
Scala
apache-2.0
1,906
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc packag...
martijnhoekstra/scala
src/compiler/scala/tools/nsc/ast/parser/Scanners.scala
Scala
apache-2.0
53,111
package org.elasticsearch.spark.rdd import scala.collection.JavaConverters.mapAsJavaMapConverter import scala.collection.Map import org.apache.commons.logging.LogFactory import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import org.elasticsearch.hadoop.cfg.ConfigurationOptions.ES_INPUT_JSON import o...
yonglehou/elasticsearch-hadoop
spark/core/main/scala/org/elasticsearch/spark/rdd/EsSpark.scala
Scala
apache-2.0
5,219
package org.openmole.gui.server.core /* * Copyright (C) 22/09/14 // mathieu.leclaire@openmole.org * * 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, ...
ISCPIF/PSEExperiments
openmole-src/openmole/gui/server/org.openmole.gui.server.core/src/main/scala/org/openmole/gui/server/core/GUIServer.scala
Scala
agpl-3.0
1,563
package org.emailscript.dnsbl object SpamHausDnsbl { val SpamHausHost = "dbl.spamhaus.org" def apply() = new SpamHausDnsbl } class SpamHausDnsbl extends DnsblLookup{ override def getDescriptionForResult(result: String): String = { result match { case "127.0.1.1" => "Spam domain (SpamHaus)" cas...
OdysseusLevy/emailscript
src/main/scala/org/emailscript/dnsbl/SpamHausDnsbl.scala
Scala
lgpl-3.0
533
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.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...
ddworak/monix
benchmarks/shared/src/main/scala/monix/benchmarks/TaskMapCallsBenchmark.scala
Scala
apache-2.0
2,084
object Macros { import scala.quoted.* inline def go[T](inline t: T) = ${ impl('t) } def impl[T](expr: Expr[T])(using Quotes) : Expr[Unit] = { import quotes.reflect.* val tree = expr.asTerm val methods = tree.tpe.classSymbol.get.declaredMethods.map { m => val name = m.fullName ...
dotty-staging/dotty
tests/run-macros/inferred-repeated-result/test_1.scala
Scala
apache-2.0
547
/* * Copyright (c) 2014 - 2015 Contributor. All rights reserved. */ package org.scalaide.debug.internal.expression package proxies.primitives import org.scalaide.debug.internal.expression.Names.Java import org.scalaide.debug.internal.expression.Names.Scala import org.scalaide.debug.internal.expression.context.JdiCon...
romanowski/scala-ide
org.scala-ide.sdt.debug.expression/src/org/scalaide/debug/internal/expression/proxies/primitives/LongJdiProxy.scala
Scala
bsd-3-clause
853
/* * Contributions: * Jean-Francois GUENA: implement "suffixed collection name" feature (issue #39 partially fulfilled) * ... */ package akka.contrib.persistence.mongodb import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class CasbahPersistenceSnapshotterTckSpe...
alari/akka-persistence-mongo
casbah/src/test/scala/akka/contrib/persistence/mongodb/CasbahPersistenceSnapshotterTckSpec.scala
Scala
apache-2.0
586
package model.repositories.anorm import anorm.SqlParser._ import anorm._ import com.mohiva.play.silhouette.impl.providers.OAuth2Info import model.dtos._ import model.dtos.{DBPasswordInfo, DBLoginInfo} import model.repositories.anorm._ import play.api.db.DB import scala.collection.mutable import scala.concurrent.Future...
scify/DemocracIT-Web
app/model/repositories/anorm/OAuth2InfoParser.scala
Scala
apache-2.0
912
package com.blinkbox.books.catalogue.searchv1 import com.blinkbox.books.catalogue.searchv1.V1SearchService.{Book => BookResponse, BookSearchResponse} import com.blinkbox.books.catalogue.common.Events.{Book => BookMessage} import com.blinkbox.books.catalogue.common.BookFixtures import org.scalatest.{FlatSpec, Matchers}...
blinkboxbooks/catalogue-v2.scala
catalogue2-search-public/src/test/scala/com/blinkbox/books/catalogue/searchv1/TitleSearchSpecs.scala
Scala
mit
4,575
/* * 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 ...
Panos-Bletsos/spark-cost-model-optimizer
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala
Scala
apache-2.0
17,924
package helloscala.common.util import java.time.{LocalDateTime, ZoneOffset, ZonedDateTime} import org.scalatest.{MustMatchers, WordSpec} /** * Created by yangbajing(yangbajing@gmail.com) on 2017-03-20. */ class TimeUtilsTest extends WordSpec with MustMatchers { "TimeUtilsTest" must { "toLocalDate" in { ...
helloscala/helloscala
hs-test/src/test/scala/helloscala/common/util/TimeUtilsTest.scala
Scala
apache-2.0
4,650
package com.greencatsoft.angularjs.core import com.greencatsoft.angularjs.injectable import scala.scalajs.js /** * Use the \\$locationProvider to configure how the application deep linking paths are stored. * * @see https://docs.angularjs.org/api/ng/provider/\\$locationProvider */ @injectable("$locationProvider"...
rankomat/scalajs-angular
src/main/scala/com/greencatsoft/angularjs/core/Location.scala
Scala
apache-2.0
2,902
package io.github.mandar2812.PlasmaML.omni import breeze.linalg.{DenseMatrix, DenseVector} import io.github.mandar2812.dynaml.DynaMLPipe import io.github.mandar2812.dynaml.evaluation.RegressionMetrics import io.github.mandar2812.dynaml.kernels._ import io.github.mandar2812.dynaml.models.gp.GPRegression import io.githu...
mandar2812/PlasmaML
omni/src/main/scala/io/github/mandar2812/PlasmaML/omni/TestGPOmni.scala
Scala
lgpl-2.1
5,767
package com.stefansavev.core.serialization import java.io.{InputStream, OutputStream} /** * Incomplete extensions if input/output streams used to read/write values */ object StreamExtensions{ implicit class IntSerializerExt(outputStream: OutputStream) { def writeInt(value: Int): Unit = { IntSerializer....
stefansavev/random-projections-at-berlinbuzzwords
src/main/scala/com/stefansavev/core/serialization/StreamExtensions.scala
Scala
apache-2.0
871
package component import javafx.fxml.FXML import javafx.scene.layout.Pane import me.mtrupkin.console.Screen import me.mtrupkin.control.ConsoleFx import me.mtrupkin.core.{Size, Point} import model.EntityViewer import model.space.{Coordinate, Ship, Entity} import scalafx.Includes._ import scalafx.beans.pro...
mtrupkin/flagship
src/main/scala/component/EntityController.scala
Scala
mit
2,675
package converter import text.{StringNone, StringOption, StringSome} import scala.util.matching.Regex /** * <pre> * Created on 7/5/15. * </pre> * @author K.Sakamoto */ object KanjiNumeralParser { private val numeralNotation1Regex: Regex = """([^兆億万]+兆)?([^兆億万]+億)?([^兆億万]+万)?([^兆億万]*)""".r//("cho", "oku", "man...
ktr-skmt/FelisCatusZero
src/main/scala/converter/KanjiNumeralParser.scala
Scala
apache-2.0
5,130
package models.domain case class JSEnabled(jsEnabled: Boolean = false)
Department-for-Work-and-Pensions/ClaimCapture
c3/app/models/domain/JSEnabled.scala
Scala
mit
72
/* * 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 ...
fredji97/samza
samza-core/src/main/scala/org/apache/samza/system/SystemProducers.scala
Scala
apache-2.0
2,962
package org.broadinstitute.dsde.vault.datamanagement.services import org.broadinstitute.dsde.vault.datamanagement.DataManagementDatabaseFreeSpec import org.broadinstitute.dsde.vault.datamanagement.model.UnmappedBAM import org.broadinstitute.dsde.vault.datamanagement.model.Properties._ import org.broadinstitute.dsde.va...
broadinstitute/vault-datamanagement
src/test/scala/org/broadinstitute/dsde/vault/datamanagement/services/UnmappedBAMServiceSpec.scala
Scala
bsd-3-clause
4,488
/* Facsimile: A Discrete-Event Simulation Library Copyright © 2004-2020, Michael J Allen. This file is part of Facsimile. Facsimile 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 ...
MichaelJAllen/facsimile
core/src/main/scala/org/facsim/anim/cell/Point.scala
Scala
lgpl-3.0
3,742
/* * 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/main/scala/org/apache/flink/table/expressions/PlannerExpressionParserImpl.scala
Scala
apache-2.0
28,093
/* * Copyright (C) 2010 Lalit Pant <pant.lalit@gmail.com> * * The contents of this file are subject to the GNU General Public License * Version 3 (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.gnu.org/copyleft/gpl.html * *...
richardfontana/fontana2007-t
KojoEnv/test/unit/src/net/kogics/kojo/turtle/TurtleUndoTest.scala
Scala
gpl-3.0
5,434
package models.annotation import com.scalableminds.util.accesscontext.DBAccessContext import com.scalableminds.util.tools.{Fox, FoxImplicits} import com.scalableminds.webknossos.datastore.rpc.RPC import com.scalableminds.webknossos.schema.Tables._ import com.typesafe.scalalogging.LazyLogging import javax.inject.Inject...
scalableminds/webknossos
app/models/annotation/TracingStore.scala
Scala
agpl-3.0
4,125
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 DataCounter entity. */ class DataCounterGatlingTest ...
chrislovecnm/gpmr
pet-race-ui/src/test/gatling/simulations/DataCounterGatlingTest.scala
Scala
apache-2.0
3,342
//: ---------------------------------------------------------------------------- //: Copyright (C) 2015 Verizon. All Rights Reserved. //: //: 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 Licen...
oncue/quiver
codecs/src/main/scala/GraphCodecs.scala
Scala
apache-2.0
1,632
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.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...
alexandru/monifu
benchmarks/shared/src/main/scala/monix/benchmarks/CoevalShallowBindBenchmark.scala
Scala
apache-2.0
2,246
package lila.chat import chess.Color import lila.db.dsl._ import lila.user.{ User, UserRepo } final class ChatApi( coll: Coll, chatTimeout: ChatTimeout, flood: lila.security.Flood, shutup: akka.actor.ActorSelection, modLog: akka.actor.ActorSelection, lilaBus: lila.common.Bus, maxLinesPerC...
clarkerubber/lila
modules/chat/src/main/ChatApi.scala
Scala
agpl-3.0
6,074
/* * 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 ...
bowenli86/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/calcite/FlinkPlannerImpl.scala
Scala
apache-2.0
7,477