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) 2009-2015 Typesafe Inc. <http://www.typesafe.com> */ package akka.routing import scala.collection.immutable import akka.ConfigurationException import akka.actor.Actor import akka.actor.ActorContext import akka.actor.ActorPath import akka.actor.AutoReceivedMessage import akka.actor.OneForOneStrate...
jmnarloch/akka.js
akka-js-actor/jvm/src/main/scala/akka/routing/RouterConfig.scala
Scala
bsd-3-clause
14,111
package com.airbnb.common.ml.xgboost import org.junit.Test import com.airbnb.common.ml.util.ScalaLogging class XGBoostPipelineTest extends ScalaLogging { @Test def testParams(): Unit = { val params: Array[Double] = Array(0.1, 0.2, 10.0, 2.0, 0.3, 0.4, 5.0, 0.6, 0.7) val map = XGBoostPipeline.getParamMa...
airbnb/aerosolve
airlearner/airlearner-xgboost/src/test/scala/com/airbnb/common/ml/xgboost/XGBoostPipelineTest.scala
Scala
apache-2.0
368
package org.scalaide.ui.internal.editor.outline import org.eclipse.jface.text.reconciler.IReconcilingStrategy import org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension import org.scalaide.logging.HasLogger import org.eclipse.jface.text._ import org.eclipse.core.runtime.IProgressMonitor import org.eclipse....
dragos/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/ui/internal/editor/outline/ScalaOutlineReconcilingStrategy.scala
Scala
bsd-3-clause
1,578
package com.softdevgang.types.ikusalic import scala.language.higherKinds import scala.collection.generic.CanBuildFrom import scala.concurrent.{Promise, ExecutionContext, Future} import scala.util.{Failure, Success, Try} object FutureUtils { implicit class AugmentedFuture[+A](private val future: Future[A]) exten...
SoftDevGang/jvm-types
src/main/scala/com/softdevgang/types/ikusalic/FutureUtils.scala
Scala
mit
2,058
package com.decaf.langz sealed trait Expression sealed trait SymbolExp extends Expression case class NumberSym(value: Int) extends SymbolExp case class StringSym(value: String) extends SymbolExp sealed trait Operation extends Expression { def left: Expression def right: Expression } case class Add(left: Express...
adamdecaf/some-lang
src/main/scala/ast/models.scala
Scala
mit
436
package org.scaladebugger.api.lowlevel.classes import org.scalamock.scalatest.MockFactory import org.scalatest.{FunSpec, Matchers, ParallelTestExecution} import org.scaladebugger.api.lowlevel.DummyOperationException import org.scaladebugger.test.helpers.ParallelMockFunSpec class DummyClassPrepareManagerSpec extends P...
chipsenkbeil/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/lowlevel/classes/DummyClassPrepareManagerSpec.scala
Scala
apache-2.0
2,065
package com.greencatsoft.d3.common import scala.language.implicitConversions import scala.math.{ max, min } import scala.scalajs.js.annotation.JSExportAll import org.scalajs.dom.ClientRect import org.scalajs.dom.svg.{ Matrix, Rect, SVG } @JSExportAll case class Bounds(x: Double, y: Double, width: Double, height: Dou...
dsugden/scalajs-d3
src/main/scala/com/greencatsoft/d3/common/Bounds.scala
Scala
apache-2.0
2,850
package com.bot4s.telegram.methods import com.bot4s.telegram.models.InputFile /** * Base type for multipart API requests (for file uploads) * * @tparam R Expected result type. * * Request will be serialized as multipart/form-data */ trait MultipartRequest[R] extends Request[R] { def getFiles: List[(String, In...
mukel/telegrambot4s
core/src/com/bot4s/telegram/methods/MultipartRequest.scala
Scala
apache-2.0
332
package roc package postgresql package object server { type Field = (Char, String) type Fields = List[Field] }
penland365/roc
core/src/main/scala/roc/postgresql/server/package.scala
Scala
bsd-3-clause
117
package scoobie.doobie import scoobie.ast.ansi._ /** * Created by jacob.barber on 5/25/16. */ trait DoobieSupport { implicit def toQuerySelectExtensions(expr: QuerySelect[ScoobieFragmentProducer])(implicit sqlInterpreter: DoobieSqlInterpreter): QuerySelectExtensions = new QuerySelectExtensions(expr) implicit ...
Jacoby6000/Scala-SQL-AST
doobie/support/src/main/scala/scoobie/doobie/DoobieSupport.scala
Scala
mit
701
package cbb.gmtrainner case class MarkovMatCaculator(genes: List[Gene], korder: Int) { val frameMatrices = FrameMatrices(korder) val unframeMatrices = UnframeMatrices(korder) def caculate() = { unframeMatrices.process( genes.flatMap(_.introns) ) frameMatrices.process( genes.map((x) => { val s = x...
XingjianXu/gmtrainer
src/main/scala/cbb/gmtrainner/MarkovMatCaculator.scala
Scala
lgpl-3.0
378
package io.ddf.flink.content import io.ddf.DDF import io.ddf.content.AMetaDataHandler import io.ddf.flink.FlinkDDF import org.apache.flink.api.scala.DataSet class MetaDataHandler(ddf: DDF) extends AMetaDataHandler(ddf) { override protected def getNumRowsImpl: Long = { val dataset: DataSet[Array[Object]] = ddf.g...
milliondreams/ddf-with-flink
flink/src/main/scala/io/ddf/flink/content/MetaDataHandler.scala
Scala
apache-2.0
455
package epic.features import breeze.linalg._ import epic.features.SurfaceFeaturizer.{MarkedWordFeaturizer, MarkerPos} import epic.framework.Feature import scala.collection.mutable.ArrayBuffer import scala.collection.immutable /** * * @author dlwh */ trait WordFeaturizer[W] { def anchor(words: IndexedSeq[W]):Word...
jovilius/epic
src/main/scala/epic/features/WordFeaturizer.scala
Scala
apache-2.0
6,476
package controllers import play.api._ import play.api.mvc._ import play.api.data._ import play.api.data.Forms._ import models._ object Application extends Controller { val hostForm = Form(tuple( "hostname" -> nonEmptyText, "attribute_keys" -> list(text), "attribute_values" -> list(text), "monitor...
byxorna/frosting
app/controllers/Application.scala
Scala
apache-2.0
2,154
package fs2.async.immutable import scala.concurrent.ExecutionContext import cats.Functor import cats.effect.Effect import fs2.Stream /** Data type of a single value of type `A` that can be read in the effect `F`. */ abstract class Signal[F[_], A] { self => /** * Returns the discrete version of this signal, u...
zaneli/fs2
core/shared/src/main/scala/fs2/async/immutable/Signal.scala
Scala
mit
1,710
package im.actor.server.persist.voximplant import slick.driver.PostgresDriver.api._ import im.actor.server.models class VoxUserTable(tag: Tag) extends Table[models.voximplant.VoxUser](tag, "vox_users") { def userId = column[Int]("user_id", O.PrimaryKey) def voxUserId = column[Long]("vox_user_id") def userName ...
boneyao/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/voximplant/VoxUser.scala
Scala
mit
878
/* * Copyright (c) 2018. Fengguo Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 * which accompanies this distribution, and is available at * https://www.apache.org/licenses/LICENSE-2.0 * * Detailed contributors ar...
arguslab/Argus-SAF
amandroid/src/main/scala/org/argus/amandroid/serialization/DecompileLayoutSerializer.scala
Scala
apache-2.0
3,198
/* * Copyright (C) 2014 - 2019 Dennis Vriend <https://github.com/dnvriend> * Copyright (C) 2019 - 2021 Lightbend Inc. <https://www.lightbend.com> */ package akka.persistence.jdbc.query.javadsl import akka.NotUsed import akka.persistence.jdbc.query.scaladsl.{ JdbcReadJournal => ScalaJdbcReadJournal } import akka.pe...
dnvriend/akka-persistence-jdbc
core/src/main/scala/akka/persistence/jdbc/query/javadsl/JdbcReadJournal.scala
Scala
apache-2.0
6,005
// Copyright (c) 2013-2020 Rob Norris and Contributors // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT package doobie.free import cats.~> import cats.effect.kernel.{ CancelScope, Poll, Sync } import cats.free.{ Free => FF } // alias ...
tpolecat/doobie
modules/free/src/main/scala/doobie/free/sqldata.scala
Scala
mit
8,052
package io.straight.ete.web.util import java.io._ import java.util.zip.{ZipEntry, ZipOutputStream} /** * @author rbuckland */ object ZipFileUtil { def zipDirectory(dir: File, zipFile: File) = { val fout = new FileOutputStream(zipFile) val zout = new ZipOutputStream(fout) zipSubDirectory("", dir, zou...
rbuckland/ete
ete-tools-backend/src/main/scala/io/straight/ete/web/util/CommonUtils.scala
Scala
apache-2.0
1,306
package notebook.front import java.util.UUID import notebook.util.ClassUtils import scala.xml.{Node, NodeSeq} import scalaz._ trait Widget extends Iterable[Node] { def toHtml: NodeSeq def iterator = toHtml.iterator def ++(other: Widget): Widget = toHtml ++ other override def toString() = "<" + ClassUtils...
fnouama/spark-notebook
modules/common/src/main/scala/notebook/front/Widget.scala
Scala
apache-2.0
1,451
/* * 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 ...
akopich/spark
external/flume/src/main/scala/org/apache/spark/examples/FlumePollingEventCount.scala
Scala
apache-2.0
2,388
package com.criteo.dev.cluster import com.criteo.dev.cluster.NodeType.NodeType import com.criteo.dev.cluster.docker.{DockerConstants, DockerMeta, DockerUtilities} import com.criteo.dev.cluster.aws.{AwsConstants, AwsNodeMeta, AwsUtilities} import com.criteo.dev.cluster.config.{AWSConfig, LocalConfig, SourceConfig, Targ...
criteo/berilia
src/main/scala/com/criteo/dev/cluster/Node.scala
Scala
apache-2.0
1,780
/* * The MIT License * * Copyright (c) 2022 Fulcrum Genomics LLC * * 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 us...
fulcrumgenomics/fgbio
src/test/scala/com/fulcrumgenomics/coord/LocatableOrderingTest.scala
Scala
mit
4,275
/* * Copyright 2014–2018 SlamData 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 agr...
slamdata/slamengine
impl/src/test/scala/quasar/impl/datasource/PureDatasourceSpec.scala
Scala
apache-2.0
2,324
package poly.collection.impl import poly.collection._ import poly.collection.typeclass._ /** * Adapted from the public-domain code from * [[https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp]]. * @author Austin Appleby * @author Tongfei Chen */ object MurmurHash3 { @inline final def mix(hash...
ctongfei/poly-collection
core/src/main/scala/poly/collection/impl/MurmurHash3.scala
Scala
mit
1,470
package cromwell.engine.workflow import java.nio.file.Path import akka.actor.FSM.{CurrentState, Transition} import akka.actor._ import better.files._ import cromwell.core.{CallOutput, WorkflowId} import cromwell.engine import cromwell.engine._ import cromwell.engine.workflow.SingleWorkflowRunnerActor._ import cromwel...
cowmoo/cromwell
engine/src/main/scala/cromwell/engine/workflow/SingleWorkflowRunnerActor.scala
Scala
bsd-3-clause
6,129
package io.skysail.core.akka import akka.actor.SupervisorStrategy.{Restart, Stop} import akka.actor.{Actor, ActorInitializationException, ActorKilledException, ActorLogging, ActorRef, DeathPactException, OneForOneStrategy} import akka.event.LoggingReceive import akka.http.scaladsl.marshalling.Marshal import akka.http....
evandor/skysail-core
skysail.core/src/io/skysail/core/server/actors/ControllerActor.scala
Scala
apache-2.0
7,884
/** * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package actorbintree import akka.actor._ import scala.collection.immutable.Queue object BinaryTreeSet { trait Operation { def requester: ActorRef def id: Int def elem: Int } trait OperationReply { def id: Int } val...
alex-learn/principles-reactive-programming
actorbintree/src/main/scala/actorbintree/BinaryTreeSet.scala
Scala
apache-2.0
5,708
import definiti.native._ import java.time.LocalDateTime import play.api.libs.json._ import definiti.native.JsonPlaySupport._ package object my { case class MyFirstType(myAttribute: String) object MyFirstType { val verification: Verification[MyFirstType] = Verification.none[MyFirstType] val rawFormat: OForm...
definiti/definiti-scala-model
src/test/resources/samples/json/play/withValidation/output.scala
Scala
mit
2,253
/* * Copyright University of Basel, Graphics and Vision Research Group * * 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 ...
unibas-gravis/scalismo-faces
src/main/scala/scalismo/faces/gui/MappedSlider.scala
Scala
apache-2.0
2,224
/* * Copyright 2014 Commonwealth Computer Research, 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 applicabl...
kevinwheeler/geomesa
geomesa-core/src/main/scala/org/locationtech/geomesa/core/util/ExplainingConnectorCreator.scala
Scala
apache-2.0
1,976
/************************************************************************* * * * This file is part of the 20n/act project. * * 20n/act enables DNA prediction for synthetic biology/bioengineering. * * Copyright (C) 201...
20n/act
reachables/src/main/scala/com/act/workflow/tool_manager/workflow/workflow_mixins/mongo/MongoWorkflowUtilities.scala
Scala
gpl-3.0
17,394
/* * 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 ...
jongwook/incubator-s2graph
s2core/src/main/scala/org/apache/s2graph/core/mysqls/Service.scala
Scala
apache-2.0
4,733
/* * Copyright (C) 2013 The Mango 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 agre...
feijoas/mango
src/test/scala/org/feijoas/mango/common/cache/CacheLoaderWrapperTest.scala
Scala
apache-2.0
5,710
package ru.pavkin.todoist.api.suite import ru.pavkin.todoist.api.core.tags trait CommandAPISuite extends tags.Syntax { type CommandResult type TempIdCommandResult }
vpavkin/scalist
core/src/main/scala/ru/pavkin/todoist/api/suite/CommandAPISuite.scala
Scala
mit
171
package play.api.data.validation /** * A validation error. * * @param message the error message * @param args the error message arguments */ case class ValidationError(message: String, args: Any*)
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play-datacommons/src/main/scala/play/api/data/validation/ValidationError.scala
Scala
mit
204
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.filters.https import javax.inject.{ Inject, Provider, Singleton } import play.api.http.HeaderNames._ import play.api.http.Status._ import play.api.inject.{ SimpleModule, bind } import play.api.mvc._ import play.api.{ Configurati...
Shruti9520/playframework
framework/src/play-filters-helpers/src/main/scala/play/filters/https/RedirectHttpsFilter.scala
Scala
apache-2.0
4,276
/* * Copyright 2010 Michael Fortin <mike@brzy.org> * * 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 la...
m410/brzy
src/test/scala/org/brzy/webapp/BrzyServletSpec.scala
Scala
apache-2.0
2,276
package sangria.macros import sangria.ast.Document import sangria.parser.{SyntaxError, QueryParser} import scala.language.experimental.macros import scala.reflect.macros.blackbox object literal { implicit class LiteralGraphQLStringContext(val sc: StringContext) extends AnyVal { def graphql(): Document = macro...
narahari92/sangria
src/main/scala/sangria/macros/literal.scala
Scala
apache-2.0
1,058
package ucesoft.cbm.peripheral.rs232 import ucesoft.cbm.peripheral.cia.CIA import RS232._ import ucesoft.cbm.{Clock, ClockEvent, Log} abstract class AbstractRS232 extends RS232 with ModemCommandListener { protected var cia1,cia2 : CIA = _ private[this] var txd,others = 0 private[this] var stop,parity,bits,lengt...
abbruzze/kernal64
Kernal64/src/ucesoft/cbm/peripheral/rs232/AbstractRS232.scala
Scala
mit
8,497
package org.raisercostin.jedi import java.io.InputStream import java.time.Clock import java.time.LocalDate abstract case class CacheEntry(cache: NavigableFileInOutLocation) { def cacheIt: Unit } trait CacheConfig { def cacheFor(src: InputLocation): CacheEntry } object DefaultCacheConfig extends TimeSensitiveEtagC...
raisercostin/jedi-io
src/main/scala/org/raisercostin/jedi/CachedLocation.scala
Scala
apache-2.0
2,887
package io.github.mandar2812.dynaml.graph.utils import com.tinkerpop.frames.{EdgeFrame, InVertex, OutVertex, Property} /** * Defines the [[EdgeFrame]] for the * edges going out from the input data * node. */ trait CausalEdge extends EdgeFrame { @OutVertex def getPoint(): Point @InVertex def getLabel(): L...
transcendent-ai-labs/DynaML
dynaml-core/src/main/scala/io/github/mandar2812/dynaml/graph/utils/CausalEdge.scala
Scala
apache-2.0
444
// Project: sdocx // Module: // Description: // Copyright (c) 2015 Johannes Kastner <jokade@karchedon.de> // Distributed under the MIT license. package biz.enef.sdocx.opc import java.io.Writer case class Relationship(id: String, tpe: String, target: String) extends XMLSerializable { f...
jokade/sdocx
src/main/scala/biz/enef/sdocx/opc/relationships.scala
Scala
mit
803
package scala package collection.immutable import org.scalacheck._ class RangeProperties extends Properties("immutable.Range") { import Prop._ import RangeProperties._ property("indexOf") = forAll { (r: Range, i: Int) => r.indexOf(i) == r.toVector.indexOf(i) } property("indexOf with start") = forAll {...
lrytz/scala
test/scalacheck/scala/collection/immutable/RangeProperties.scala
Scala
apache-2.0
2,208
/** * Copyright 2009 Jorge Ortiz * * 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 i...
tkawachi/nscala-time
src/main/scala/com/github/nscala_time/time/RichReadablePeriod.scala
Scala
apache-2.0
865
/* * SufficientStatisticsSemiring.scala * Sum and product operations defined for sufficient statistics according to a semiring algebraic structure. * * Created By: Michael Howard (mhoward@cra.com) * Creation Date: Jun 6, 2013 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See h...
bruttenberg/figaro
Figaro/src/main/scala/com/cra/figaro/algorithm/factored/SufficientStatisticsSemiring.scala
Scala
bsd-3-clause
4,415
/** * Copyright 2015 Peter Nerg * * 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...
pnerg/akka-persistence-mock
src/test/scala/org/dmonix/akka/persistence/ExampleSuite.scala
Scala
apache-2.0
2,212
package es.uvigo.ei.sing.sds package searcher import scala.concurrent.Future import play.api.libs.concurrent.Execution.Implicits.defaultContext import entity._ import service.ABNERService final class ABNERSearcher extends SearcherAdapter { lazy val abner = new ABNERService override def search(query: String): ...
agjacome/smart-drug-search
src/main/scala/searcher/ABNERSearcher.scala
Scala
mit
551
/* * The MIT License (MIT) * * Copyright (c) 2015 Enterprise Data Management Council * * 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...
edmcouncil/rdf-serializer
src/test/scala/org/edmcouncil/rdf_toolkit/owlapi_serializer/XmlSorterSpec.scala
Scala
mit
2,883
/* * Copyright 2014–2018 SlamData 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 agr...
slamdata/slamengine
foundation/src/test/scala/quasar/fp/ArbitraryKMaterializer.scala
Scala
apache-2.0
2,380
package play import sbt.{ Project => SbtProject, Settings => SbtSettings, _ } import sbt.Keys._ import play.console.Colors import Keys._ import java.lang.{ ProcessBuilder => JProcessBuilder } import sbt.complete.Parsers._ trait PlayCommands extends PlayAssetsCompiler with PlayEclipse with PlayInternalKeys { this:...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/sbt-plugin/src/main/scala/PlayCommands.scala
Scala
mit
20,226
package scorex.unit import java.nio.ByteBuffer import org.scalatest.FunSuite import scorex.network.message._ class MessageSpecification extends FunSuite { test("PingMessage roundtrip") { val msg = PingMessage val parsedTry = Message.parse(ByteBuffer.wrap(msg.bytes)) assert(parsedTry.isSuccess) } ...
pozharko/Scorex-Lagonaki
src/test/scala/scorex/unit/MessageSpecification.scala
Scala
cc0-1.0
2,076
package chapter.seven object ExerciseEight extends App { }
deekim/impatient-scala
src/main/scala/chapter/seven/ExerciseEight.scala
Scala
apache-2.0
62
/* * 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...
wzhongyuan/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/tf/DecodePngSpec.scala
Scala
apache-2.0
1,945
/** * 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/test/scala/unit/kafka/integration/FetcherTest.scala
Scala
apache-2.0
3,719
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * @ @ * * # # # # (c) 2016 CAB * * # # # # # # ...
AlexCAB/ProbabilisticPlaying
mathact/src/main/scala/mathact/parts/plumbing/fitting/Plug.scala
Scala
mit
1,754
/* * 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/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilterSuite.scala
Scala
apache-2.0
63,146
/* * Copyright 2021 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/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs102/retriever/Frs102AccountsBoxRetriever.scala
Scala
apache-2.0
4,700
/** * 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 ...
laserson/adam
adam-core/src/test/scala/org/bdgenomics/adam/rdd/SortedGenomicRDDSuite.scala
Scala
apache-2.0
11,699
package com.nhlreplay.converter.xhtml import xml.{Node, NodeSeq, XML} import org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl import xml.transform.{RuleTransformer, RewriteRule} import com.typesafe.scalalogging.slf4j.Logging import scala.io.Source object XhtmlConverter extends Logging { def convertHtml(htmlContent: Strin...
peruukki/NHLReplay
app/com/nhlreplay/converter/xhtml/XhtmlConverter.scala
Scala
mit
1,036
package com.mthaler.keywords import java.awt.{Dimension, BorderLayout} import javax.swing.JFrame class MainWindow extends JFrame { setLayout(new BorderLayout()) setTitle("Keywords") setPreferredSize(new Dimension(640, 480)) }
mthaler/keywords
src/main/scala/com/mthaler/keywords/MainWindow.scala
Scala
apache-2.0
235
// Copyright 2010, Brian T. Howard (bhoward@depauw.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 appli...
bhoward/Escalator
src/main/scala/edu/depauw/escalator/Downalate.scala
Scala
apache-2.0
8,494
/* * 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 package tools pa...
martijnhoekstra/scala
src/compiler/scala/tools/util/PathResolver.scala
Scala
apache-2.0
13,210
/* * Copyright 2001-2013 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...
travisbrown/scalatest
src/test/scala/org/scalatest/fixture/FeatureSpecSpec.scala
Scala
apache-2.0
64,090
package java.lang class StringBuilder(private var content: String) extends CharSequence with Appendable with java.io.Serializable { def this() = this("") def this(initialCapacity: Int) = this("") def this(csq:...
lrytz/scala-js
javalanglib/src/main/scala/java/lang/StringBuilder.scala
Scala
bsd-3-clause
6,629
package org.jetbrains.plugins.scala.util.teamcity import org.jetbrains.annotations.ApiStatus @ApiStatus.Experimental object TeamcityUtils { sealed trait Status { import Status._ def value: String = this match { case Normal => "NORMAL" case Warning => "WARNING" case Failure => "FAILURE" ...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/util/teamcity/TeamcityUtils.scala
Scala
apache-2.0
1,401
/* * Copyright 2015 LG CNS. * * 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 ...
jahnaviancha/scouter
scouter.server/src/scouter/server/db/XLogProfileWR.scala
Scala
apache-2.0
4,013
/* * 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 ...
zzcclp/carbondata
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/allqueries/InsertIntoCarbonTableSpark2TestCase.scala
Scala
apache-2.0
2,390
/* * 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 agr...
datamountaineer/kafka-connect-common
src/main/scala/com/datamountaineer/streamreactor/connect/converters/sink/Converter.scala
Scala
apache-2.0
1,015
package de.choffmeister.microserviceutils.http import akka.actor.ActorSystem import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.{Directive1, Route} class HttpServer()(implicit val system: ActorSystem) extends HttpServerBase { override def routes: Route = reject override val rateLimite...
choffmeister/microservice-utils
microservice-utils/src/main/scala/de/choffmeister/microserviceutils/http/HttpServer.scala
Scala
mit
474
package com.arcusys.valamis.lesson.scorm.model.manifest /** A navigation control which may be included in the to-hide list*/ object NavigationControlType extends Enumeration { type NavigationControlType = Value val Previous = Value("previous") val Continue = Value("continue") val Exit = Value("exit") val Exi...
ViLPy/Valamis
valamis-scorm-lesson/src/main/scala/com/arcusys/valamis/lesson/scorm/model/manifest/NavigationControlType.scala
Scala
lgpl-3.0
456
/*********************************************************************** * Copyright (c) 2013-2018 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...
ddseapy/geomesa
geomesa-features/geomesa-feature-avro/src/main/scala/org/locationtech/geomesa/features/avro/AvroSimpleFeatureUtils.scala
Scala
apache-2.0
16,382
package com.julianpeeters.avro.runtime.provider import com.julianpeeters.caseclass.generator._ import org.apache.avro.Schema import scala.collection.JavaConversions._ import scala.reflect.runtime.universe._ object AvroTypeMatcher { def parseField(store: SchemaToClassStore, namespace: ClassNamespace, field: Schema...
julianpeeters/avro-scala-runtime-type-provider
src/main/scala/AvroTypeMatcher.scala
Scala
apache-2.0
2,436
package im.mange.flakeless import im.mange.flakeless.innards.{Command, WaitForElements} import org.openqa.selenium.{By, SearchContext} object AssertElementListTextContains { def apply(flakeless: Flakeless, by: By, expected: String): Unit = { apply(flakeless.rawWebDriver, by, expected, Some(flakeless)) } //...
alltonp/flakeless
src/main/scala/im/mange/flakeless/AssertElementListTextContains.scala
Scala
mit
770
// // Scaled - a scalable editor extensible via JVM languages // http://github.com/scaled/scaled/blob/master/LICENSE package scaled.impl import reactual.{Future, Signal, Value} import scala.collection.mutable.ArrayBuffer import scaled._ // TODO: should the point be automatically adjusted when text is inserted into t...
swhgoon/scaled
editor/src/main/scala/scaled/impl/BufferViewImpl.scala
Scala
bsd-3-clause
2,404
package blended.testsupport.pojosr import java.io.File import java.util.Properties import blended.container.context.api.ContainerContext import com.typesafe.config.{Config, ConfigFactory, ConfigParseOptions} import com.typesafe.config.ConfigObject import com.typesafe.config.impl.Parseable class MockContainerContext(...
lefou/blended
blended.testsupport.pojosr/src/main/scala/blended/testsupport/pojosr/MockContainerContext.scala
Scala
apache-2.0
1,765
/* 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/algebird
algebird-core/src/main/scala/com/twitter/algebird/BloomFilter.scala
Scala
apache-2.0
21,178
import leon.annotation._ import leon.lang._ import leon.lang.synthesis._ object BinaryTree { sealed abstract class Tree case class Node(left : Tree, value : Int, right : Tree) extends Tree case object Leaf extends Tree def content(t : Tree): Set[Int] = t match { case Leaf => Set() case Node(l, v, r) =...
ericpony/scala-examples
testcases/synthesis/oopsla2013/BinaryTree/Union.scala
Scala
mit
1,492
/* * 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 * distribute...
wvlet/airframe
airframe-codec/.jvm/src/main/scala-2/wvlet/airframe/codec/CompatBase.scala
Scala
apache-2.0
928
import com.edgesysdesign.droidrtty import org.scalatest.matchers.ShouldMatchers import org.scalatest.FunSpec class Specs extends FunSpec with ShouldMatchers { describe("a spec") { it("should do something") { } } }
edge-sys-design/DroidRTTY
src/test/scala/Specs.scala
Scala
mpl-2.0
227
package nlp_serde.apps.d2d import java.io.File import java.text.SimpleDateFormat import java.util.Date import nlp_serde.annotators.StanfordAnnotator import nlp_serde.writers.{PerLineJsonWriter, JsonWriter} import nlp_serde.{FileFilters, Document} import nlp_serde.readers.{PerLineJsonReader, DocPerFile} import java.t...
sameersingh/nlp_serde
src/main/scala/nlp_serde/apps/d2d/D2DReader.scala
Scala
bsd-2-clause
11,023
/* * 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 ...
RSulzmann/openwhisk
core/monitoring/user-events/src/test/scala/org/apache/openwhisk/core/monitoring/metrics/KamonRecorderTests.scala
Scala
apache-2.0
6,701
package japgolly.microlibs.recursion import cats.~> object ScalaVerSpecific { private[recursion] type Coseq[F[_], G[_]] = Lambda[A => F[G[A]]] ~> Lambda[A => G[F[A]]] }
japgolly/microlibs-scala
recursion/shared/src/main/scala-2/japgolly/microlibs/recursion/ScalaVerSpecific.scala
Scala
apache-2.0
172
package optics package excerices.monocle import monocle.Iso import monocle.macros.GenIso import org.specs2.Specification import org.specs2.cats.CatsEqMatcher class IsoSpec extends Specification with CatsEqMatcher { def is = s2""" Entering the Monocle world. For some simple cases Iso can be gen...
theiterators/scalar-2017-optics-workshop
src/test/scala/optics/excerices/monocle/Ex01_iso.scala
Scala
mit
958
/* * Copyright 2016 Dennis Vriend * * 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...
prettynatty/akka-persistence-jdbc
src/test/scala/akka/persistence/jdbc/query/CurrentEventsByTagTest.scala
Scala
apache-2.0
4,761
package org.jetbrains.plugins.scala package testingSupport.scalatest import org.jetbrains.plugins.scala.lang.structureView.element.Test._ import org.jetbrains.plugins.scala.testingSupport.ScalaTestingTestCase import org.jetbrains.plugins.scala.testingSupport.test.{AbstractTestConfigurationProducer, TestConfigurationUt...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/scalatest/ScalaTestTestCase.scala
Scala
apache-2.0
1,055
/* * 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 * distribute...
wvlet/airframe
airframe-metrics/.jvm/src/test/scala/wvlet/airframe/metrics/TimeVectorTest.scala
Scala
apache-2.0
1,657
/* * Copyright 2011-2019 Asakusa Framework Team. * * 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 ...
ueshin/asakusafw-spark
compiler/src/main/scala/com/asakusafw/spark/compiler/graph/CoGroupCompiler.scala
Scala
apache-2.0
1,961
package com.twitter.finagle.kestrelx import com.twitter.concurrent.{Broker, Offer} import com.twitter.conversions.time._ import com.twitter.finagle.{Addr, Group, Name, ServiceFactory} import com.twitter.finagle.builder._ import com.twitter.finagle.kestrelx.protocol.{Response, Command, Kestrel} import com.twitter.finag...
jamescway/finagle
finagle-kestrelx/src/main/scala/com/twitter/finagle/kestrelx/MultiReader.scala
Scala
apache-2.0
19,409
package actor import scala.actors.Actor /** * Created by fqc on 2016/7/16. */ class ActorTask1 extends Actor { override def act(): Unit = { while (true) { receive { //偏函数PartialFunction case "start" => { println("starting.......") println("当前线程:" + Thread.currentT...
fqc/Scala_sidepro
src/actor/ActorMessage.scala
Scala
mit
2,129
/* * Copyright 2014 OSSCube UK. * * 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...
viirya/aerospark
src/main/scala/com/osscube/spark/aerospike/rdd/DefaultSource.scala
Scala
apache-2.0
1,636
/* * Copyright 2001-2012 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...
vivosys/scalatest
src/main/scala/org/scalatest/selenium/WebBrowser.scala
Scala
apache-2.0
133,935
/* * Copyright (c) <2013>, Amanj Sherwany <http://www.amanj.me> * All rights reserved. * */ package ch.usi.inf.l3 import scala.reflect.api.Trees import scala.reflect.api.Types import scala.tools.nsc.Global package object mina { /** * Two identity functions, to tell the plugin to deal with the passed * ex...
amanjpro/mina
src/main/scala/ch/usi/inf/l3/mina/package.scala
Scala
bsd-3-clause
420
package example import scala.annotation._ object Recitation2 { def flip(f: (Int, Double) => Int): (Double, Int) => Int = (x, y) => f(y, x) val id: Int => Int = x => x def compose(f: Int => Int, g: Int => Int): Int => Int = x => f(g(x)) def repeated(f: Int => Int, n: Int): Int => Int = { if (n == 0) x => x...
rusucosmin/courses
fp/recitation/src/main/scala/example/recitation2.scala
Scala
mit
365
/* * 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 ...
dbtsai/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/FilterPushdownBenchmark.scala
Scala
apache-2.0
14,752
package com.whitepages.cloudmanager.action import com.whitepages.cloudmanager.client.{SolrCloudVersion, SolrRequestHelpers} import com.whitepages.cloudmanager.state.{SolrReplica, SolrState, ClusterManager} import org.apache.solr.common.params.ModifiableSolrParams import org.apache.solr.common.params.CollectionParams.C...
randomstatistic/solrcloud_manager
src/main/scala/com/whitepages/cloudmanager/action/DeleteReplica.scala
Scala
apache-2.0
2,891
/* * 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 ...
dbtsai/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLWindowFunctionSuite.scala
Scala
apache-2.0
15,694
/* * 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 t...
prat0318/zipkin
zipkin-cassandra/src/main/scala/com/twitter/zipkin/storage/cassandra/CassandraSpanStore.scala
Scala
apache-2.0
12,693
/* * Copyright 2017-2020 Daniel Urban and contributors listed in AUTHORS * Copyright 2020 Nokia * SPDX-License-Identifier: Apache-2.0 * * 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 *...
durban/seals
tests/src/test/scala/dev/tauri/seals/core/NsUUIDSpec.scala
Scala
apache-2.0
7,210