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.twitter.cache import com.google.common.cache.{CacheLoader, CacheBuilder} import com.twitter.cache.guava.LoadingFutureCache import com.twitter.util.{Await, Promise, Future} import org.junit.runner.RunWith import org.mockito.Mockito.{verify, never, when} import org.mockito.Matchers._ import org.scalatest.Fun...
folone/util
util-cache/src/test/scala/com/twitter/cache/LazilyEvictingCacheTest.scala
Scala
apache-2.0
4,436
/* * 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...
chipsenkbeil/incubator-toree
kernel/src/test/scala/test/utils/DummyInterpreter.scala
Scala
apache-2.0
4,400
package code.lib import net.liftweb.mapper.{Schemifier} import net.liftweb.util.{Log} import code.util.DBUtil import org.specs.Specification import org.specs.runner.JUnit4 import code.model.{Message} class MessageIndexSpecsAsTest extends JUnit4(MessageIndexSpecs) object MessageIndexSpecs extends Specification{ va...
scsibug/fermata
src/test/scala/code/lib/MessageIndexSpecs.scala
Scala
bsd-3-clause
2,860
// FIXME: https://github.com/scalatest/scalatest/issues/1112 // If a test suite is defined in an empty package (i.e. outside any package declarations), // then it will spuriously fail to compile. // Discussion: https://github.com/scalameta/scalameta/issues/772#issuecomment-362380136 // package scala.meta.tests package...
MasseGuillaume/scalameta
tests/shared/src/test/scala/scala/meta/tests/quasiquotes/ErrorSuite.scala
Scala
bsd-3-clause
22,699
package cwe.scala.library.math.bignumbers import cwe.scala.library.visitor._ import cwe.scala.library.list._ /** * Base abstract class for Real numbers implementation */ abstract class RealImpl private () extends Real { private var negative: Boolean = false private var realOperationsService: RealOperationsService ...
wwwigii-system/research
cwe-scala-library/src/cwe/scala/library/math/bignumbers/RealImpl.scala
Scala
gpl-3.0
3,665
/* * 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 ...
WangTaoTheTonic/flink
flink-libraries/flink-ml/src/main/scala/org/apache/flink/ml/optimization/LossFunction.scala
Scala
apache-2.0
3,500
package dpla.ingestion3.harvesters.file import java.io.{File, FileFilter} class GzFileFilter extends FileFilter { override def accept(pathname: File): Boolean = pathname.getName.endsWith("gz") }
dpla/ingestion3
src/main/scala/dpla/ingestion3/harvesters/file/GzFileFilter.scala
Scala
mit
198
package example object WikiTest extends App { // For instance, given the following array: val array = if (args.length == 0) Array(1, 2, 3, 4) else args.map(_.toInt) // The following for comprehension: for ((item, i) <- array.zipWithIndex; if item % 2 == 0) { println(s"array[$i] = $item") } }
nativelibs4java/scalaxy-streams
Resources/exampleWiki.scala
Scala
bsd-3-clause
303
package info.andreaswolf.roadhopper.simulation import akka.actor.{ActorRef, ActorLogging} import akka.pattern.ask import com.graphhopper.util.shapes.{GHPoint, GHPoint3D} import info.andreaswolf.roadhopper.simulation.signals.{SignalState, Process} import scala.concurrent.{Future, ExecutionContext} import scala.util.Su...
andreaswolf/roadhopper
src/main/scala/info/andreaswolf/roadhopper/simulation/SignalsBasedResultLogger.scala
Scala
mit
1,167
/* * Copyright 2016 The BigDL 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 applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/nn/keras/nn/BidirectionalSpec.scala
Scala
apache-2.0
4,085
package com.lunatic.mlx.cuisines /** * Some basic paths configuration */ case class Configuration(args: Array[String]) { // TODO: Refactor and improve val argsMap = args.map(_.split("=")).map(x => (x(0), x(1))).toMap val inputTrainingData = argsMap.getOrElse("app.input.file.training", "data/cuisines/train...
tupol/sparx-mllib
src/main/scala/com/lunatic/mlx/cuisines/Configuration.scala
Scala
apache-2.0
1,232
package scala.test.plugins import scala.tools.nsc import nsc.Global import nsc.Phase import nsc.plugins.Plugin import nsc.plugins.PluginComponent class ThePlugin(val global: Global) extends Plugin { import global._ val name = "cyclicdependency" val description = "Declares two phases that have a cyclic dependen...
felixmulder/scala
test/files/neg/t7622-cyclic-dependency/ThePlugin.scala
Scala
bsd-3-clause
1,029
package com.seanshubin.web.sync.domain import java.nio.file.Path import com.fasterxml.jackson.core.JsonGenerator import com.fasterxml.jackson.databind.{JsonSerializer, SerializerProvider} class PathSerializer extends JsonSerializer[Path] { def serialize(value: Path, generator: JsonGenerator, provider: SerializerPr...
SeanShubin/web-sync
domain/src/main/scala/com/seanshubin/web/sync/domain/PathSerializer.scala
Scala
unlicense
378
/* * 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 ...
minixalpha/spark
core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala
Scala
apache-2.0
55,374
package io.finch import java.nio.charset.Charset import scala.annotation.implicitNotFound import com.twitter.io.Buf /** * Stream HTTP streamed payload represented as S[F, Buf] into * a S[F, A] of arbitrary type `A`. */ trait DecodeStream[S[_[_], _], F[_], A] { type ContentType <: String def apply(stream...
finagle/finch
core/src/main/scala/io/finch/DecodeStream.scala
Scala
apache-2.0
1,232
package io.udash.rpc class RpcMessagesTest extends RpcMessagesTestScenarios { "RPCMessages default serializers" should tests() "RPCMessages default serializers" should hugeTests() }
UdashFramework/udash-core
rpc/.jvm/src/test/scala/io/udash/rpc/RpcMessagesTest.scala
Scala
apache-2.0
186
package com.github.mdr.mash.input import com.github.mdr.mash.input.InputSequence._ import com.github.mdr.mash.input.Key._ import com.github.mdr.mash.repl.completions.BrowseCompletionActions._ object BrowseCompletionsKeyMap extends KeyMap(NormalKeyMap.map ++ Map( KeyPress(Tab) -> NextCompletion, KeyPress(Tab, shif...
mdr/mash
src/main/scala/com/github/mdr/mash/input/BrowseCompletionsKeyMap.scala
Scala
mit
702
// Copyright (C) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in project root for information. package com.microsoft.ml.spark import com.microsoft.ml.spark.schema.ImageSchema import org.apache.spark.ml._ import org.apache.spark.ml.param._ import org.apache.spark.ml.util.{...
rastala/mmlspark
src/image-featurizer/src/main/scala/ImageSetAugmenter.scala
Scala
mit
2,451
package playground.akka.persistence import akka.actor._ import akka.persistence._ object EventLogger { case object MakeSnapshot final case class Event(message: String) case object PrintState case class EventLoggerState(state: Seq[Event]) { def add(event: Event) = copy(state :+ event) } } class Even...
ataraxer/akka-playground
akka-persistence/src/main/scala/PersistenceApp.scala
Scala
mit
1,163
/* * Copyright (c) 2013. Regents of the University of California * * 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...
fnothaft/adam
adam-core/src/main/scala/edu/berkeley/cs/amplab/adam/projections/ADAMGenotypeField.scala
Scala
apache-2.0
1,707
/* * Copyright 2017 Chen Hua (Harry) * * 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 agree...
chenharryhua/qidong
src/main/scala/qidong/pipeline/Naming.scala
Scala
apache-2.0
1,531
package trivial.rest.controller.finatra import trivial.rest.RestfulApiContract class FinatraApiContractSpec extends RestfulApiContract { override val server = new FinatraApiTestWrapper(docRoot, "/", serialiser, persister, validator) }
agmenc/trivial-rest
src/test/scala/trivial/rest/controller/finatra/FinatraApiContractSpec.scala
Scala
mit
238
package cn.changhong.web.persistent import org.apache.commons.dbcp.BasicDataSource import scala.slick.driver.MySQLDriver.simple._ /** * Created by yangguo on 14-12-10. */ object SlickDBPoolManager { val DBPool={ val ds=new BasicDataSource ds.setDriverClassName("com.mysql.jdbc.Driver") ds.setUsername("...
guoyang2011/myfinagle
WebTemplate/src/main/scala/cn/changhong/web/persistent/SlickDBPoolManager.scala
Scala
apache-2.0
572
/* * 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 ...
map222/spark
sql/core/src/test/scala/org/apache/spark/sql/internal/CatalogSuite.scala
Scala
apache-2.0
22,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 ...
sh-cho/cshSpark
rdd/UnionRDD.scala
Scala
apache-2.0
3,942
package com.twitter.finagle.httpx import com.twitter.finagle.util.LoadService import com.twitter.finagle.{Filter, Service} import com.twitter.util.Future import java.net.URI import java.util.logging.Logger /** * A service that dispatches incoming requests to registered handlers. * In order to choose which handler t...
cogitate/twitter-finagle-uuid
finagle-httpx/src/main/scala/com/twitter/finagle/httpx/HttpMuxer.scala
Scala
apache-2.0
4,087
/* * Copyright 2015 TouchType Ltd * * 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 t...
sameeraxiomine/spark-redshift
src/test/scala/com/databricks/spark/redshift/TestUtils.scala
Scala
apache-2.0
3,650
package model import java.util.Date import com.fasterxml.jackson.annotation.JsonSubTypes.Type import com.fasterxml.jackson.annotation.{JsonSubTypes, JsonTypeInfo} @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = Constants.Type, visible = true ) @JsonSubTypes( Array( ...
gilt/sundial
app/model/ProcessDefinition.scala
Scala
mit
1,537
package org.jetbrains.plugins.scala package debugger.evaluation import com.intellij.debugger.engine.evaluation.EvaluateExceptionUtil /** * Nikolay.Tropin * 2014-09-28 */ object EvaluationException { def apply(message: String) = EvaluateExceptionUtil.createEvaluateException(message) def apply(thr: Throwable) = ...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/debugger/evaluation/EvaluationException.scala
Scala
apache-2.0
480
package org.jmespike.shape.ships import org.jmespike.conf.Conf import org.jmespike.appearance.MaterialConf import java.util.Random import com.jme3.scene.{Geometry, Spatial} import org.jmespike.utils.{XorShiftRandom, MeshBuilder} import com.jme3.bounding.BoundingBox import org.jmespike.shape.ShapeConf /** * Generates...
zzorn/skycastle
src/main/scala/org/jmespike/shape/ships/ShipShapeConf.scala
Scala
gpl-2.0
959
/* * 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 ...
ksimar/incubator-carbondata
integration/spark/src/main/scala/org/apache/spark/sql/CodeGenerateFactory.scala
Scala
apache-2.0
5,682
package com.iz2use.express.transform.toscala import com.iz2use.express.tree import java.io.FileWriter import java.io.PrintWriter import java.io.File import scala.annotation.tailrec import java.io.Closeable import Implicits._ object ScalaTransformer { def using[A <: Closeable, B](resource: A)(f: A => B): ...
math85360/ifc-scala
shared/src/main/scala/com/iz2use/express/transform/toscala/ScalaTransformer.scala
Scala
apache-2.0
1,212
package org.scalafmt.util import scala.annotation.tailrec import scala.meta.tokens.Token import scala.meta.tokens.Tokens class TokenTraverser(tokens: Tokens) { private[this] val tok2idx = { val map = Map.newBuilder[Token, Int] var i = 0 tokens.foreach { tok => map += (tok -> i) i += 1 } ...
Daxten/scalafmt
core/src/main/scala/org/scalafmt/util/TokenTraverser.scala
Scala
apache-2.0
1,487
import org.apache.spark.mllib.tree.GradientBoostedTrees import org.apache.spark.mllib.tree.configuration.BoostingStrategy import org.apache.spark.mllib.tree.model.GradientBoostedTreesModel import org.apache.spark.mllib.util.MLUtils // load csv filter header val rawDatain = sc.textFile("/Users/wy/Desktop/advance_Spark/...
wy36101299/spark-example
Decision-Trees/kaggle-Gradient-Boosted.scala
Scala
mit
1,966
/* Copyright (C) 2016 Mauricio Bustos (m@bustos.org) & 338.oakland creations This program 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.0.0, either version 3 of the License.0, or (at your op...
338oaklandcreations-fabric/machinery
src/main/scala/com/338oaklandcreations/fabric/machinery/ApisPlacement.scala
Scala
gpl-3.0
2,068
/* __ __ *\\ * / /____ ___ ____ ___ ___ _/ / lasius * * / __/ -_) _ `/ _ \\/ _ \\/ _ `/ / contributed by tegonal * * \\__/\\__/\\_, /\\___/_//_/\\_,_/_/ http://tegonal.com/ * ...
tegonal/lasius
app/models/User.scala
Scala
gpl-3.0
2,103
import biformat._ import org.scalatest.FunSuite /** * Created by yuto on 15/12/09. */ class BedTest extends FunSuite{ test("read bed"){ val bedit = BedIterator.fromSource(biformat.bigSource("src/test/resources/biformat/sample.bed")) val xs = List ((70,80), (81, 88), (91, 95), (97, 100), (101, 170), (200,...
izziiyt/biutil
src/test/scala/BedTest.scala
Scala
mit
622
// Copyright 2014,2015,2016,2017,2018,2019,2020 Commonwealth Bank of Australia // // 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...
CommBank/grimlock
grimlock-examples/src/main/scala/commbank/grimlock/scalding/Event.scala
Scala
apache-2.0
8,606
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
zhichao-li/BigDL
dl/src/test/scala/com/intel/analytics/bigdl/torch/ContiguousSpec.scala
Scala
apache-2.0
2,330
/* * Copyright 2013-2015 Websudos, Limited. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of c...
nkijak/phantom
phantom-dsl/src/main/scala/com/websudos/phantom/builder/query/prepared/PreparedUpdateQuery.scala
Scala
bsd-2-clause
10,447
package ee.cone.c4actor import com.typesafe.scalalogging.LazyLogging import ee.cone.c4actor.ConnProtocol.D_Node import ee.cone.c4actor.Types.SrcId import ee.cone.c4assemble.Types.{Each, Values} import ee.cone.c4assemble._ import ee.cone.c4proto.{Id, Protocol, protocol} @protocol object ConnProtocolBase { @Id(0x00...
wregs/c4proto
c4actor-base-examples/src/main/scala/ee/cone/c4actor/AssemblerConnectTest.scala
Scala
apache-2.0
3,184
/* * Copyright 2013 zhongl * * 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 w...
chosen0ne/HouseMD
src/test/scala/com/github/zhongl/housemd/command/MethodFilterSpec.scala
Scala
apache-2.0
1,427
package reflectdoc.tools.nsc.doc package model package diagram import model._ // statistics import html.page.diagram.DiagramStats import scala.collection.immutable.SortedMap /** * This trait takes care of generating the diagram for classes and packages * * @author Damien Obrist * @author Vlad Ureche */ tra...
VladUreche/reflectdoc
components/core/src/reflectdoc/tools/nsc/doc/model/diagram/DiagramFactory.scala
Scala
bsd-3-clause
11,709
package is.hail.io.fs import is.hail.utils._ import org.apache.hadoop import org.apache.hadoop.fs.{FSDataInputStream, FSDataOutputStream} import java.io._ class HadoopFileStatus(fs: hadoop.fs.FileStatus) extends FileStatus { val normalizedPath = fs.getPath def getPath: String = fs.getPath.toString def getMo...
hail-is/hail
hail/src/main/scala/is/hail/io/fs/HadoopFS.scala
Scala
mit
5,341
package SpMVAccel import Chisel._ import TidbitsDMA._ import TidbitsAXI._ import TidbitsStreams._ import TidbitsSimUtils._ import TidbitsProfiler._ import java.nio.file.{Files, Paths} import java.nio.ByteBuffer import java.io.{FileInputStream, DataInputStream} class SpMVAcceleratorNewCache(p: SpMVAccelWrapperParams)...
maltanar/spmv-vector-cache
chisel/SpMVAcceleratorNewCache.scala
Scala
bsd-3-clause
13,771
package lila.user import chess.Speed import org.joda.time.DateTime import lila.common.Heapsort.implicits._ import lila.db.BSON import lila.rating.{ Glicko, Perf, PerfType } case class Perfs( standard: Perf, chess960: Perf, kingOfTheHill: Perf, threeCheck: Perf, antichess: Perf, atomic: Perf, ...
luanlv/lila
modules/user/src/main/Perfs.scala
Scala
mit
10,867
package de.vorb.jgit.ext import org.eclipse.jgit.lib.Repository import scala.language.implicitConversions object JGitConversions { implicit def wrapRepository(repo: Repository): RichRepository = new RichRepository(repo) }
pvorb/jgit-extensions
src/main/scala/de/vorb/jgit/ext/JGitConversions.scala
Scala
mit
231
package com.github.romangrebennikov.columnize.engine import com.github.romangrebennikov.columnize.protocol.cql.query.{Key, Column, Table} /** * Created by shutty on 10/15/15. */ object DDLTransformer { implicit class CreateTableTransformer(val table:Table) { def toColumnar = { val rows = table.keys.ma...
shuttie/columnize
src/main/scala/com/github/romangrebennikov/columnize/engine/DDLTransformer.scala
Scala
bsd-2-clause
575
package net.sf.latexdraw.actions import org.malai.action.Action import net.sf.latexdraw.generators.svg.SVGDocumentGenerator /** * This action updates the templates.<br> * <br> * This file is part of LaTeXDraw.<br> * Copyright (c) 2005-2013 Arnaud BLOUIN<br> * <br> * LaTeXDraw is free software; you can redistri...
arnobl/latexdraw-mutants
GUImutants/original/net.sf.latexdraw/src/main/net/sf/latexdraw/actions/UpdateTemplates.scala
Scala
gpl-2.0
1,372
/* * Copyright 2017 Datamountaineer. * * 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...
datamountaineer/stream-reactor
kafka-connect-elastic7/src/test/scala/com/datamountaineer/streamreactor/connect/elastic7/TestElasticConfig.scala
Scala
apache-2.0
1,631
package com.sasaki.cluster import scala.collection.{Map => sMap} import scala.collection.immutable.{Range, Map => imMap} import org.apache.spark.rdd.RDD import org.apache.spark.mllib.regression.LabeledPoint import org.apache.spark.mllib.clustering._ import com.sasaki.utils._ /** * Use multi-k to cluster and selec...
sasakigao/seq-clustering
pack-dimred/src/main/scala/com/sasaki/cluster/TrainEva.scala
Scala
apache-2.0
3,441
package com.trafficland import scala.language.implicitConversions import com.trafficland.augmentsbt.generators.AppInfoPlugin import com.trafficland.augmentsbt.versionmanagement.{SemanticVersion, VersionManagementPlugin} import sbt.SettingKey package object augmentsbt { @deprecated("VersionManagementPlugin autoImpo...
trafficland/augment-sbt
src/main/scala/com/trafficland/augmentsbt/package.scala
Scala
apache-2.0
878
/* * Copyright 2015 Geeoz Software * * 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 ...
geeoz/pawl
pawl-scalatest/src/main/scala/pawl/web/Context.scala
Scala
apache-2.0
1,190
package org.scalatest.examples // Type-constructor polymorphism import org.scalactic.TypeCheckedTripleEquals import org.scalactic.anyvals.PosZDouble import org.scalatest.examples.Demo._ import org.scalatest.prop.PropertyChecks import org.scalatest.{LogicFunSpec, Matchers} // (Demo 10 - PosInt in the REPL) // DEMO 1...
bvenners/scalaX2016Demos
src/test/scala/org/scalatest/examples/Demo11Spec.scala
Scala
apache-2.0
1,077
package drt.client.services import drt.client.services.JSDateConversions.SDate import drt.shared.dates.{LocalDate, UtcDate} import drt.shared.{MilliDate, SDateLike} import moment.Moment import utest.TestSuite import utest._ import scala.scalajs.js.Date object SDateTests extends TestSuite { override def tests = Te...
UKHomeOffice/drt-scalajs-spa-exploration
client/src/test/scala/drt/client/services/SDateTests.scala
Scala
apache-2.0
6,062
package org.scalatra package object docs { lazy val docsNameSymbol = Symbol("docs.name") lazy val docsDescriptionSymbol = Symbol("docs.description") lazy val docsDocumentSymbol = Symbol("docs.document") lazy val docsOptionalParams = Symbol("doc.optionalParams") lazy val docsRequiredParams = Symbol("doc.requ...
louk/scalatra
docs/src/main/scala/org/scalatra/docs/package.scala
Scala
bsd-2-clause
335
/* Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH 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 applicab...
bpn1/ingestion
src/main/scala/de/hpi/ingestion/dataimport/wikidata/models/WikidataEntity.scala
Scala
apache-2.0
2,468
package edu.gemini.dataman.app import edu.gemini.dataman.app.ObsLogActions.FitsFile import edu.gemini.gsa.query.GsaRecord import edu.gemini.pot.sp.ISPProgram import edu.gemini.spModel.config.ConfigBridge import edu.gemini.spModel.config.map.ConfigValMapInstances import edu.gemini.spModel.config2.ItemKey import edu.ge...
fnussber/ocs
bundle/edu.gemini.dataman.app/src/test/scala/edu/gemini/dataman/app/ObsLogActionsSpec.scala
Scala
bsd-3-clause
4,054
/* * Copyright (c) 2014-2021 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...
monix/monix
monix-reactive/shared/src/main/scala/monix/reactive/internal/consumers/ContraMapConsumer.scala
Scala
apache-2.0
2,351
import sbt.Keys.{crossScalaVersions, scalaVersion} import sbt.settingKey sealed abstract class ScalaVer(val full: String) object ScalaVer { final case object _211 extends ScalaVer("2.11.12") final case object _212 extends ScalaVer("2.12.12") final case object _213 extends ScalaVer("2.13.4") final case obj...
andyglow/scala-xml-diff
project/ScalaVer.scala
Scala
lgpl-3.0
903
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
SeaOfOcean/BigDL
dl/src/test/scala/com/intel/analytics/bigdl/torch/MVSpec.scala
Scala
apache-2.0
5,844
/* Copyright (C) 2015 University of Massachusetts Amherst. This file is part of “author_coref” http://github.com/iesl/author_coref 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 h...
iesl/author_coref
src/main/scala/edu/umass/cs/iesl/author_coref/data_structures/AuthorMentionConvertible.scala
Scala
apache-2.0
988
/** * Copyright 2014 Kevin Browder * * This program 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 of the License, or * (at your option) any later version. * * This program is distri...
kbrowder/sbt-spring-loaded
src/sbt-test/sbt-spring-loaded/simple-config/src/main/scala/MyMain.scala
Scala
gpl-3.0
845
/* * Copyright (c) 2015-2022 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.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.ap...
opencypher/openCypher
tools/tck-api/src/test/scala/org/opencypher/tools/tck/api/ScenarioTest.scala
Scala
apache-2.0
5,459
/* * 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 ...
style95/openwhisk
core/controller/src/main/scala/org/apache/openwhisk/core/entitlement/Entitlement.scala
Scala
apache-2.0
21,473
package com.blackboxsociety.json trait JsReader[A] { def read(value: JsValue): Option[A] } object JsReader { implicit object booleanJsReader extends JsReader[Boolean] { override def read(value: JsValue): Option[Boolean] = value match { case JsBoolean(b) => Some(b) case _ => None } ...
blackboxsociety/blackbox-json
src/main/scala/com/blackboxsociety/json/JsReader.scala
Scala
mit
1,633
package chandu0101.scalajs.react.components package materialui import chandu0101.macros.tojs.JSMacro import japgolly.scalajs.react._ import japgolly.scalajs.react.raw.React import japgolly.scalajs.react.vdom.{TopNode, VdomNode} import org.scalajs.dom import scala.scalajs.js import scala.scalajs.js.`|` /** * This f...
rleibman/scalajs-react-components
core/src/main/scala/chandu0101/scalajs/react/components/materialui/MuiMenu.scala
Scala
apache-2.0
5,938
package com.github.grimcoder.producemarketrestscalatra.dao import java.text.SimpleDateFormat import com.github.grimcoder.producemarketrestscalatra.model.{SaleDetail, PriceChange, Price, Sale} import java.util.Date import com.novus.salat._ import com.novus.salat.global._ object DataAccessMongo extends DataAccess{ ...
grimcoder/ProduceMarketRESTScalatra
src/main/scala/com/github/grimcoder/producemarketrestscalatra/dao/DataAccessMongo.scala
Scala
mit
3,382
package scala.meta package internal package tokenizers import scala.util.Try import LegacyToken._ import Chars._ import scala.meta.inputs._ trait LegacyTokenData { /** the input that is currently being tokenized */ var input: Input = null /** the next token */ var token: LegacyToken = EMPTY /** the offset...
Dveim/scalameta
scalameta/tokenizers/src/main/scala/scala/meta/internal/tokenizers/LegacyTokenData.scala
Scala
bsd-3-clause
3,007
/* * MIT License * * Copyright (c) 2017 Enrique González Rodrigo * 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 without limitation the rights to use,...
enriquegrodrigo/spark-crowd
spark-crowd/src/main/scala/com/enriquegrodrigo/spark/crowd/methods/PMTI.scala
Scala
mit
7,788
/* * Copyright (c) 2014 Paul Bernard * * 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 t...
pmularien/spectrum-old
financial/src/test/scala/org/quantintel/ql/time/calendars/AustraliaTest.scala
Scala
apache-2.0
1,281
/* * 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 ...
pronix/spark
core/src/main/scala/org/apache/spark/util/ThreadUtils.scala
Scala
apache-2.0
6,180
package test import com.ksmpartners.ernie.api._ import com.ksmpartners.ernie.util.Utility._ import ErnieBuilder._ import scala.concurrent.duration._ object Main extends App { /*val ernie = ErnieEngine(ErnieBuilder() .withMemoryReportManager() .withDefaultRetentionDays(7) .withMaxRetentionDays(14) .withWork...
ksmpartners/ernie
samples/ernie-test/src/main/scala/test/ErnieTest.scala
Scala
apache-2.0
1,087
package org.scalamu.core.testapi package junit import org.junit.runner.{JUnitCore, Result} import org.scalamu.common.TryBackCompatibility import org.scalamu.core.api.ClassName class JUnitRunner(override val arguments: String) extends TestRunner[Result] with TryBackCompatibility { override protected def converter: ...
sugakandrey/scalamu
core/src/main/scala/org/scalamu/core/testapi/junit/JUnitRunner.scala
Scala
gpl-3.0
646
/* * Copyright (c) 2014-2021 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...
monix/monix
monix-reactive/shared/src/test/scala/monix/reactive/internal/operators/ScanSuite.scala
Scala
apache-2.0
2,803
// // Copyright 2014-2020 Paytronix Systems, 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 ...
paytronix/utils-open
interchange/base/src/main/scala/com/paytronix/utils/interchange/base/enum.scala
Scala
apache-2.0
1,371
import sbt._ import Keys._ import sbtrelease._ /** * This object includes the publishing mechanism. We publish to [Sonatype](https://oss.sonatype.org/). * The code follows the [Publishing](http://www.scala-sbt.org/release/docs/Detailed-Topics/Publishing) * guide, but uses the full-blown ``.scala`` syntax instead of...
eigengo/monitor
project/Publish.scala
Scala
apache-2.0
3,305
package is.hail.types.physical.stypes.concrete import is.hail.annotations.Region import is.hail.asm4s.{Code, LongInfo, Settable, SettableBuilder, TypeInfo, Value} import is.hail.expr.ir.EmitCodeBuilder import is.hail.types.physical.stypes.interfaces.{SString, SStringValue} import is.hail.types.physical.stypes.{SCode, ...
hail-is/hail
hail/src/main/scala/is/hail/types/physical/stypes/concrete/SStringPointer.scala
Scala
mit
3,092
package com.blackboxsociety.mvc import scala.language.implicitConversions import scala.xml.Elem trait View[T] { def render: T override def toString: String = render.toString() } trait HtmlView extends View[Elem] { def render: Elem } object View { implicit def renderableToString[T](r: View[T]): String ...
blackboxsociety/blackbox-http
src/main/scala/com/blackboxsociety/mvc/View.scala
Scala
mit
335
package com.github.scalatojava import org.scalatest._ class ScalaToJavaSpec extends FlatSpec with Matchers { it should "be able to convert scala to java" in { ScalaToJava("""println("hello world")""") should include("class _") } it should "be able to compile object" in { ScalaToJava( """object A""") sh...
Aivean/scala-to-java
src/test/scala/com/github/scalatojava/ScalaToJavaSpec.scala
Scala
mit
374
package sweet trait SweetReporter { def apply(event: SweetEvent) }
joshcough/Sweet
src/main/scala/sweet/SweetReporter.scala
Scala
lgpl-2.1
70
/* * Copyright 2016 The BigDL 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 applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/keras/optimizers/OptimizersSpec.scala
Scala
apache-2.0
4,531
package java.util import scala.scalajs.js class ArrayDeque[E] private (private var inner: js.Array[E]) extends AbstractCollection[E] with Deque[E] with Cloneable with Serializable { self => private var status = 0 def this(initialCapacity: Int) = { this(new js.Array[E]) if (initialCapacity < 0) ...
mdedetrich/scala-js
javalib/src/main/scala/java/util/ArrayDeque.scala
Scala
bsd-3-clause
3,695
package com.eden.orchid.sbt import sbt._ import sbt.Keys._ import sbt.plugins.JvmPlugin import sbt.Def.Initialize import sbt.complete.DefaultParsers._ import java.io.File import scala.collection._ import scala.util.control.NonFatal // very much inspired by // https://github.com/orchidhq/orchid/blob/fb4db01d7e3dd0...
JavaEden/Orchid-Core
buildSrc/orchidSbtPlugin/src/main/scala/com/eden/orchid/sbt/SbtOrchidPlugin.scala
Scala
mit
6,465
/* * Contributions: * Jean-Francois GUENA: implement "suffixed collection name" feature (issue #39 partially fulfilled) * ... */ package akka.contrib.persistence.mongodb import akka.actor.{ActorSystem, Props, Status} import akka.persistence.PersistentActor import akka.persistence.query.{EventEnvelope, Persistenc...
scullxbones/akka-persistence-mongo
common/src/test/scala/akka/contrib/persistence/mongodb/ReadJournalSpec.scala
Scala
apache-2.0
20,176
package models.base import scalaz._ import Scalaz._ import scalaz.effect.IO import scalaz.Validation import scalaz.Validation.FlatMap._ import scalaz.NonEmptyList._ import scalaz.syntax.SemigroupOps import models.json._ import models.base._ import db._ import cache._ import app.MConfig import models.Constants._ impor...
indykish/vertice_gateway
app/models/base/MarketPlaces.scala
Scala
mit
4,783
/* * 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 ...
hengyicai/OnlineAggregationUCAS
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateTableAsSelect.scala
Scala
apache-2.0
3,138
/* * Copyright 2016 The BigDL 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 applicable law or agr...
qiuxin2012/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/keras/UpSampling2DSpec.scala
Scala
apache-2.0
1,696
package cn.changhong.zipkin import java.net.InetSocketAddress import com.twitter.finagle.builder.ClientBuilder import com.twitter.finagle.http._ import com.twitter.finagle.stats.DefaultStatsReceiver import com.twitter.finagle.tracing._ import com.twitter.finagle.zipkin.thrift.ZipkinTracer import org.jboss.netty.handl...
guoyang2011/myfinagle
ThriftDemo/src/main/scala/cn/changhong/zipkin/Client.scala
Scala
apache-2.0
3,515
/*********************************************************************** * 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-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/io/reader/CachingSimpleFeatureArrowFileReader.scala
Scala
apache-2.0
7,037
package java.time import java.time.chrono.{Chronology, IsoChronology} import java.time.temporal._ /** Created by alonsodomin on 24/12/2015. */ final class Year private (year: Int) extends TemporalAccessor with Temporal with TemporalAdjuster with Comparable[Year] with java.io.Serializable { import Precondit...
sjrd/scala-js-java-time
src/main/scala/java/time/Year.scala
Scala
bsd-3-clause
5,662
package com.tenderowls.match3.client import akka.actor.typed.scaladsl.AskPattern._ import akka.actor.typed.scaladsl.Behaviors import akka.actor.typed.{ActorRef, Behavior, Terminated} import akka.actor.{ActorSystem, Scheduler} import akka.util.Timeout import com.tenderowls.match3.client.State.GameInfo import com.tender...
fomkin/match3
client/src/main/scala/com/tenderowls/match3/client/PlayerProxyExtension.scala
Scala
lgpl-3.0
10,485
/* * Copyright 2013 Stephan Rehfeld * * 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 ...
stephan-rehfeld/scaladelray
src/test/scala/test/scaladelray/math/Point2Spec.scala
Scala
apache-2.0
952
package gitbucket.core.plugin import gitbucket.core.controller.Context import gitbucket.core.service.RepositoryService import gitbucket.core.view.Markdown import gitbucket.core.view.helpers.urlLink import play.twirl.api.Html /** * A render engine to render content to HTML. */ trait Renderer { /** * Render the...
McFoggy/gitbucket
src/main/scala/gitbucket/core/plugin/Renderer.scala
Scala
apache-2.0
1,318
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package imports import api.toplevel.imports.{ScImportExpr, ScImportSelector} import com.intellij.lang.ASTNode import com.intellij.psi.tree.IElementType import com.intellij.psi.util.PsiTreeUtil import lexer.ScalaTokenTypes import...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/imports/ScImportSelectorImpl.scala
Scala
apache-2.0
2,689
/** * Copyright (C) 2012 Typesafe Inc. <http://typesafe.com> */ package com.typesafe.config.impl import org.junit.Assert._ import org.junit._ import com.typesafe.config.ConfigValue import com.typesafe.config.ConfigException import com.typesafe.config.ConfigResolveOptions import com.typesafe.config.Config import co...
chris-martin/hocon-python
test/scala/com/typesafe/config/impl/ConcatenationTest.scala
Scala
apache-2.0
13,175
package de.is24 import java.io.ByteArrayOutputStream import java.nio.file.{Files, StandardOpenOption, Paths} import java.time.ZonedDateTime import java.time.temporal.IsoFields import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.stream.ActorMaterializer import org.apache.pdfbox.util.ImageIOUtil i...
ImmobilienScout24/slack-sodexo
src/main/scala/de/is24/Starter.scala
Scala
apache-2.0
1,521
package io.eels.component.parquet.avro import com.sksamuel.exts.Logging import com.sksamuel.exts.OptionImplicits._ import com.sksamuel.exts.io.Using import io.eels.component.avro.{AvroSchemaFns, AvroSchemaMerge} import io.eels.component.parquet._ import io.eels.datastream.Publisher import io.eels.schema.StructType imp...
eel-lib/eel
eel-core/src/main/scala/io/eels/component/parquet/avro/AvroParquetSource.scala
Scala
mit
3,259
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.client import java.io.File import java.util.concurrent.TimeUnit import akka.Done import akka.actor.{ ActorSystem, CoordinatedShutdown } import akka.stream.{ ActorMaterializer, Materializer } import com.l...
rstento/lagom
service/scaladsl/client/src/main/scala/com/lightbend/lagom/scaladsl/client/ServiceClient.scala
Scala
apache-2.0
15,012
package skuber.rbac import skuber.ResourceSpecification.{Names, Scope} import skuber.{NonCoreResourceSpecification, ObjectMeta, ObjectResource, ResourceDefinition} /** * Created by jordan on 1/12/17. */ case class ClusterRoleBinding( kind: String = "ClusterRoleBinding", apiVersion: String = rbacAPIVersion...
doriordan/skuber
client/src/main/scala/skuber/rbac/ClusterRoleBinding.scala
Scala
apache-2.0
853