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 tap.interpreter case class InterpreterError(msg: String) extends Exception(msg) case class InterpreterRuntimeError(msg: String) extends RuntimeException(msg) case class InterpreterMatchError(msg: String) extends Exception(msg)
garyb/tap
src/main/scala/tap/interpreter/InterpreterError.scala
Scala
mit
236
/////////////////////////////////////////////////////////////////////////////// // hadoop.scala // // Copyright (C) 2011 Ben Wing, The University of Texas at Austin // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
utcompling/fieldspring
src/main/scala/opennlp/fieldspring/util/hadoop.scala
Scala
apache-2.0
16,868
/* * 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 ...
tejasapatil/spark
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
Scala
apache-2.0
63,187
package poly.io import scala.collection.mutable /** * @author Tongfei Chen */ private[poly] object Util { private[poly] def lcpLength(xs: Array[String], ys: Array[String]) = { var i = 0 var s = 0 while (i < math.min(xs.length, ys.length)) { if (xs(i) == ys(i)) s += 1 i += 1 } s ...
ctongfei/poly-io
core/src/main/scala/poly/io/Util.scala
Scala
mit
1,239
package com.datastax.spark.connector.rdd.partitioner import java.net.InetAddress import com.datastax.spark.connector.rdd.partitioner.dht.{CassandraNode, BigIntToken, TokenFactory} import org.junit.Assert._ import org.junit.Test class RandomPartitionerTokenRangeSplitterTest { type TokenRange = com.datastax.spark....
brkyvz/spark-cassandra-connector
spark-cassandra-connector/src/test/scala/com/datastax/spark/connector/rdd/partitioner/RandomPartitionerTokenRangeSplitterTest.scala
Scala
apache-2.0
2,732
package org.pdfextractor.algorithm.finder.it import java.util.Locale import org.apache.commons.lang3.StringUtils import org.pdfextractor.algorithm.candidate.{CandidateFeatureType, MetaPhraseType} import org.pdfextractor.algorithm.finder._ import org.pdfextractor.algorithm.finder.it.ItalianRegexPatterns._ import org.p...
kveskimae/pdfalg
src/main/scala/org/pdfextractor/algorithm/finder/it/ItalianNameFinder.scala
Scala
mit
1,722
package edu.scalanus.compiler import edu.scalanus.ir.IrTreePrettyPrinter import edu.scalanus.{EngineTest, FileFixtureTest} import org.scalatest.{FunSuite, Matchers} import scala.io.Source class ScalanusCompilerTest extends FunSuite with Matchers with FileFixtureTest with EngineTest { override protected def basePa...
mkaput/scalanus
src/test/scala/edu/scalanus/compiler/ScalanusCompilerTest.scala
Scala
mit
692
/* Copyright 2017-2020 Erik Erlandson 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...
erikerlandson/coulomb
coulomb-accepted-units/src/main/scala/coulomb/accepted/package.scala
Scala
apache-2.0
2,217
/* * Copyright 2016 Alexey Kuzin <[email protected]> * * 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...
leviathan941/choiceroulette
guiapp/src/main/scala/choiceroulette/gui/menubar/AppMenuBar.scala
Scala
apache-2.0
3,834
/* * Copyright 2014–2020 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/quasar
common/src/test/scala/quasar/common/data/DataSpec.scala
Scala
apache-2.0
2,018
package com.github.vitalsoftware.scalaredox.models import com.github.vitalsoftware.macros._ import com.github.vitalsoftware.util.RobustPrimitives /** * Provider responsible for a Document * * @param ID ID of the Provider responsible for the document. This ID is required for Inpatient Visits * @param IDType ID typ...
vital-software/scala-redox
src/main/scala/com/github/vitalsoftware/scalaredox/models/Provider.scala
Scala
mit
2,175
/* * Shadowsocks - A shadowsocks client for Android * Copyright (C) 2014 <[email protected]> * * 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 y...
otoil/shadowsocks-android
src/main/scala/com/github/shadowsocks/utils/Utils.scala
Scala
gpl-3.0
8,879
package obj object Material extends Enumeration { type Material = Value val PLASTIC, GLASS, METAL, PAPER = Value }
dajvido/AI-project
src/obj/Material.scala
Scala
mit
120
package geek.lawsof.physics.lib.equip import java.util import cpw.mods.fml.common.registry.GameRegistry import geek.lawsof.physics.Reference import geek.lawsof.physics.lib.CreativeTabBase import geek.lawsof.physics.lib.equip.types.ArmorTypeBase import net.minecraft.entity.Entity import net.minecraft.entity.player.Ent...
GeckoTheGeek42/TheLawsOfPhysics
src/main/scala/geek/lawsof/physics/lib/equip/ArmorBase.scala
Scala
mit
1,823
/* * Copyright 2014 Renaud Bruneliere * * 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...
bruneli/scalaopt
std-apps/src/test/scala/com.github.bruneli.scalaopt.stdapps.learning.nnet/FFNeuralNetworkSpec.scala
Scala
apache-2.0
7,322
object Test { def main(args: Array[String]): Unit = { mcr() } }
som-snytt/dotty
tests/run-macros/i7048/Test_2.scala
Scala
apache-2.0
72
/* * Copyright (C) 2012 Romain Reuillon * Copyright (C) 2014 Jonathan Passerat-Palmbach * * 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 op...
ISCPIF/PSEExperiments
openmole-src/openmole/plugins/org.openmole.plugin.environment.slurm/src/main/scala/org/openmole/plugin/environment/slurm/SLURMJobService.scala
Scala
agpl-3.0
3,181
/*********************************************************************** * Copyright (c) 2013-2016 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is ...
tkunicki/geomesa
geomesa-convert/geomesa-convert-text/src/main/scala/org/locationtech/geomesa/convert/text/DelimitedTextConverter.scala
Scala
apache-2.0
4,277
package org.jetbrains.plugins.scala.codeInspection.collections import com.intellij.codeInspection.ProblemsHolder import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInspection.{ChangeReferenceNameQuickFix, InspectionBundle} import org.jetbrains.plugins.scala.extensions.ExpressionType import org.j...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/collections/UnitInMapInspection.scala
Scala
apache-2.0
2,157
/* * 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...
netconstructor/zipkin
zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTimelineAnnotation.scala
Scala
apache-2.0
877
/* * Copyright 2011-2022 GatlingCorp (https://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
gatling/gatling
gatling-commons/src/test/scala/io/gatling/commons/validation/SafelySpec.scala
Scala
apache-2.0
1,270
package com.persist.dst import org.apache.spark.sql.Column import scala.reflect.runtime.universe._ object DstColumns { // TODO desc only available for sort // TODO add String column type (with compare ops) // TODO allow ops other than desc on sort??? abstract class DstTransform private def typeTag[T](imp...
nestorpersist/dataset-transform
transforms/src/main/scala/com/persist/dst/DstColumns.scala
Scala
apache-2.0
5,600
/* * Copyright 2019 Spotify AB. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
regadas/scio
scio-extra/src/main/scala/com/spotify/scio/extra/annoy/package.scala
Scala
apache-2.0
9,924
package com.v_standard.vsp.script import com.v_standard.utils.HtmlUtil import java.io.ByteArrayOutputStream import java.text.DecimalFormat import sun.org.mozilla.javascript.internal.NativeArray import sun.org.mozilla.javascript.internal.NativeObject import scala.collection.JavaConverters._ /** * HTML ファンクションクラス。 *...
VanishStandard/vsp
src/main/scala/com/v_standard/vsp/script/HtmlFunction.scala
Scala
bsd-3-clause
6,493
package chapter3 import chapter3.Exercise3_10.foldLeft object Exercise3_11 { /** * */ def product(xs: List[Int]): Int = foldLeft(xs, 1)(_ * _) /** * */ def sum(xs: List[Int]) : Int = foldLeft(xs, 0)(_ + _) /** * */ def length[A](a: List[A]): I...
amolnayak311/functional-programming-in-scala
src/chapter3/Exercise3_11.scala
Scala
unlicense
681
/* * 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 ...
trueyao/spark-lever
mllib/src/main/scala/org/apache/spark/mllib/feature/IDF.scala
Scala
apache-2.0
6,799
package edu.berkeley.nlp.entity.coref import scala.collection.JavaConverters._ import edu.berkeley.nlp.entity.GUtil import scala.collection.mutable.ArrayBuffer import scala.collection.mutable.HashMap import scala.util.Random import edu.berkeley.nlp.entity.sem.SemClass._ import edu.berkeley.nlp.futile.util.Counter impor...
malcolmgreaves/berkeley-entity
src/main/java/edu/berkeley/nlp/entity/coref/DocumentGraph.scala
Scala
gpl-3.0
22,170
package spinoco.protocol.http.header.value import scodec.Codec import scodec.codecs._ import spinoco.protocol.http.codec.helper._ sealed trait HttpEncodingRange { self => import HttpEncodingRange._ def qValue: Option[Float] def updateQValue(qValue:Option[Float]): HttpEncodingRange = self match { case _: ...
Spinoco/protocol
http/src/main/scala/spinoco/protocol/http/header/value/HttpEncodingRange.scala
Scala
mit
1,004
package ingraph.ire.messages import ingraph.ire.datatypes.Tuple trait ForkingForwarder extends Forwarder { val children: Vector[ReteMessage => Unit] if (children.size < 2) throw new IllegalArgumentException("use base class for 1 child node") def forwardHashFunction(n: Tuple): Int def forward(cs: Change...
FTSRG/ingraph
ire/src/main/scala/ingraph/ire/messages/Forwarder.scala
Scala
epl-1.0
1,122
/* * Copyright 2013 Michael Krolikowski * * 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 ag...
mesosphere/dns4s
core/src/main/scala/com/github/mkroli/dns4s/section/resource/CNameResource.scala
Scala
apache-2.0
966
/*start*/(123: Int).toInt/*end*/ //Int
LPTK/intellij-scala
testdata/typeInference/bugs4/SCL2663.scala
Scala
apache-2.0
38
package io.github.facaiy.dag.parallel import scala.concurrent.{Await, ExecutionContext, Future} import scala.concurrent.duration.Duration import io.github.facaiy.dag.core.{DAGNode, InputNode, InternalNode, LazyCell} import io.github.facaiy.dag.Result /** * Created by facai on 6/2/17. */ object Implicits { self => ...
facaiy/DAG-lite
src/main/scala/io/github/facaiy/dag/parallel/Implicits.scala
Scala
mit
1,821
package special.sigma import java.util import org.ergoplatform.SigmaConstants.ScriptCostLimit import org.ergoplatform.dsl.{ContractSpec, SigmaContractSyntax, TestContractSpec} import org.ergoplatform.validation.{SigmaValidationSettings, ValidationRules} import org.ergoplatform._ import org.scalacheck.Arbitrary._ impor...
ScorexFoundation/sigmastate-interpreter
sigmastate/src/test/scala/special/sigma/SigmaDslTesting.scala
Scala
mit
51,257
/* * 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 ...
adrian-ionescu/apache-spark
core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
Scala
apache-2.0
19,904
/* * 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 ...
apache/flink
flink-libraries/flink-gelly-scala/src/main/scala/org/apache/flink/graph/scala/utils/Tuple2ToVertexMap.scala
Scala
apache-2.0
1,141
/* * 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
mllib/src/main/scala/org/apache/spark/mllib/tree/model/treeEnsembleModels.scala
Scala
apache-2.0
17,849
package agni.std import java.util.concurrent.{CompletableFuture, CompletionStage} import agni.util.Par import org.scalatest.flatspec.AnyFlatSpec import scala.concurrent.duration._ import scala.concurrent.{Await, Future} class AsyncSpec extends AnyFlatSpec { import async._ val parF: Par.Aux[CompletionStage, Fut...
tkrs/agni
core/src/test/scala/agni/std/AsyncSpec.scala
Scala
mit
721
package com.github.scalaspring.scalatest import org.scalatest.{FlatSpec, Matchers} import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.ConfigurableApplicationContext import org.springframework.context.annotation.Bean import org.springframework.test.context.ContextConfigurat...
scalaspring/scalatest-spring
src/test/scala/com/github/scalaspring/scalatest/TestContextManagementSpec.scala
Scala
apache-2.0
1,012
package com.github.caiiiycuk.pg2sqlite import scala.annotation.tailrec import com.github.caiiiycuk.pg2sqlite.command._ import com.github.caiiiycuk.pg2sqlite.iterator.Line import com.github.caiiiycuk.pg2sqlite.schema.Schema object DumpInserter { val COMMANDS = List(CreateTable, Copy, CreateIndex) } class DumpInsert...
caiiiycuk/postgresql-to-sqlite
src/main/scala/com/github/caiiiycuk/pg2sqlite/DumpInserter.scala
Scala
mit
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 may...
racker/kafka
core/src/test/scala/unit/kafka/integration/BaseTopicMetadataTest.scala
Scala
apache-2.0
13,458
package io.udash.web.guide.views.rpc.demos import io.udash._ import io.udash.bootstrap.button.UdashButton import io.udash.bootstrap.utils.BootstrapStyles.Color import io.udash.logging.CrossLogging import io.udash.web.commons.views.Component import io.udash.web.guide.Context import io.udash.web.guide.demos.rpc.GenCodec...
UdashFramework/udash-guide
guide/src/main/scala/io/udash/web/guide/views/rpc/demos/GenCodecsDemoComponent.scala
Scala
gpl-3.0
6,294
package com.arcusys.valamis.lesson.model import org.joda.time.DateTime case class UserLessonResult(lessonId: Long, userId: Long, attemptsCount: Int, lastAttemptDate: Option[DateTime], isSuspended: Boolean, ...
igor-borisov/valamis
valamis-lesson/src/main/scala/com/arcusys/valamis/lesson/model/UserLessonResult.scala
Scala
gpl-3.0
426
/* * 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 ...
ahnqirage/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListenerSuite.scala
Scala
apache-2.0
22,423
package com.twitter.finagle.postgres.values import java.nio.charset.Charset import scala.util.parsing.combinator.RegexParsers import org.jboss.netty.buffer.{ChannelBuffer, ChannelBuffers} object HStores { object HStoreStringParser extends RegexParsers { def key:Parser[String] = "\"" ~ """([^"\\]*(\\.[^"\\]*)*...
jeremyrsmith/finagle-postgres
src/main/scala/com/twitter/finagle/postgres/values/HStores.scala
Scala
apache-2.0
2,353
package com.kalmanb.sbt import sbt.Keys._ import sbt.Load.BuildStructure import sbt._ object DependencyBuilderPlugin extends Plugin { val taskKey = TaskKey[Unit]("publishLocalAll", "Will publishLocal the current projects. If during update it can't find a module that exists in the build file it will build it") va...
kalmanb/sbt-dependency-builder
src/main/scala/com/kalmanb/sbt/DependencyBuilderPlugin.scala
Scala
apache-2.0
1,779
package org.nisshiee.toban.controller.api import scalaz._, Scalaz._ import play.api._ import play.api.mvc._ import play.api.db._ import play.api.Play.current import play.api.libs.json._, Json._ import play.api.libs.Jsonp import org.nisshiee.toban.model._ import org.nisshiee.toban.controller.ControllerHelper object ...
nisshiee/to-ban
app/controllers/api/TobanController.scala
Scala
mit
787
/* Copyright 2012-2015 Micronautics Research Corporation. * * 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...
mslinn/awslib_scala
src/test/scala/com/micronautics/aws/SNSTest.scala
Scala
mit
2,377
/* * 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 ...
prateekm/samza
samza-core/src/test/scala/org/apache/samza/metrics/reporter/TestJmxReporter.scala
Scala
apache-2.0
2,384
/* * 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 collecti...
scala/scala
src/library/scala/collection/immutable/Seq.scala
Scala
apache-2.0
5,121
package exercises.ch03 object Ex19 { def filter[A](as: List[A])(f: A => Boolean): List[A] = as match { case Nil => Nil case Cons(x, xs) => if(f(x)) Cons(x, filter(xs)(f)) else filter(xs)(f) } def main(args: Array[String]): Unit = { println(filter(List(1))(x => x % 2 == 0)) println(filter(List(1...
VladMinzatu/fpinscala-exercises
src/main/scala/exercises/ch03/Ex19.scala
Scala
mit
561
package com.github.pheymann.scala.bft.storage import com.github.pheymann.scala.bft.consensus.ConsensusState import com.github.pheymann.scala.bft.messaging._ import com.github.pheymann.scala.bft.replica.ReplicaAction sealed trait StorageAction[A] extends ReplicaAction[A] final case class StorePrePrepare( ...
pheymann/scala.bft
bft-replica/src/main/scala/com/github/pheymann/scala/bft/storage/StorageAction.scala
Scala
mit
655
/* * 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/scalactic/PrettifierSpec.scala
Scala
apache-2.0
14,967
package gh.test.gh2013.event import gh2013.events.{IssueCommentEventParser, IssuesEventParser} import net.liftweb.json._ import org.scalatest.{FlatSpec, Matchers} class IssueCommentEventTest extends FlatSpec with Matchers { "A valid IssueCommentEvent" must "be correctly parsed" in { val json = parse( ...
mgoeminne/github_etl
src/test/scala/gh/test/gh2013/event/IssueCommentEventTest.scala
Scala
mit
2,201
package org.randi3.web.snippet import xml.Elem import scalaz.NonEmptyList import net.liftweb.http.S import org.randi3.web.lib.DependencyFactory import org.randi3.web.util.CurrentLoggedInUser trait GeneralFormSnippet { protected def generateEntry(id: String, failure: Boolean, element: Elem): Elem = { <li id={...
dschrimpf/randi3-web
src/main/scala/org/randi3/web/snippet/GeneralFormSnippet.scala
Scala
gpl-3.0
1,523
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
dnatic09/scalate
scalate-spring-mvc/src/main/scala/org/fusesource/scalate/spring/view/ScalateView.scala
Scala
apache-2.0
4,189
/* * Copyright 2001-2009 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...
hubertp/scalatest
src/test/scala/org/scalatest/fixture/ConfigMapFixtureSpec.scala
Scala
apache-2.0
1,342
package net.sansa_stack.inference.spark.forwardchaining.triples import net.sansa_stack.inference.spark.data.model.RDFGraph import net.sansa_stack.inference.spark.data.model.TripleUtils._ import net.sansa_stack.inference.utils.Profiler import org.apache.jena.graph.{Node, Triple} import org.apache.spark.rdd.RDD import ...
SANSA-Stack/SANSA-RDF
sansa-inference/sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/triples/ForwardRuleReasoner.scala
Scala
apache-2.0
2,736
package org.jetbrains.sbt package annotator import java.io.File import com.intellij.ide.startup.impl.StartupManagerImpl import com.intellij.openapi.externalSystem.util.ExternalSystemConstants import com.intellij.openapi.module.{Module, ModuleManager, ModuleUtilCore} import com.intellij.openapi.projectRoots.Sdk import...
ilinum/intellij-scala
test/org/jetbrains/sbt/annotator/SbtAnnotatorTest.scala
Scala
apache-2.0
6,046
/* * Copyright 2014 - 2015 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 a...
wemrysi/quasar
core/src/main/scala/slamdata/engine/evaluator.scala
Scala
apache-2.0
7,120
package com.twitter.server.handler import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.{DefaultScalaModule, ScalaObjectMapper} import com.twitter.util.registry.{GlobalRegistry, SimpleRegistry} import org.scalatest.funsuite.AnyFunSuite class RegistryHandlerTest extends AnyFunSu...
twitter/twitter-server
server/src/test/scala/com/twitter/server/handler/RegistryHandlerTest.scala
Scala
apache-2.0
3,287
/* sbt -- Simple Build Tool * Copyright 2009 Mark Harrah */ package sbt package classfile import Constants._ import java.io.File private[sbt] trait ClassFile { val majorVersion: Int val minorVersion: Int val fileName: String val className: String val superClassName: String val interfaceNames: Array[String] v...
harrah/xsbt
util/classfile/src/main/scala/sbt/classfile/ClassFile.scala
Scala
bsd-3-clause
2,158
package debop4s.rediscala.serializer import org.xerial.snappy.Snappy object SnappyRedisSerializer { def apply[T](inner: RedisSerializer[T] = new BinaryRedisSerializer[T]()): SnappyRedisSerializer[T] = new SnappyRedisSerializer[T](inner) } /** * Snappy 압축 알고리즘을 이용하여 serialized 된 데이터를 압축합니다. * @author Sunghy...
debop/debop4s
debop4s-rediscala/src/main/scala/debop4s/rediscala/serializer/SnappyRedisSerializer.scala
Scala
apache-2.0
1,272
/* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ package com.krux.hyperion.activity import com.krux.hyperion.adt.HBoolean import com.krux.h...
realstraw/hyperion
core/src/main/scala/com/krux/hyperion/activity/WithS3Input.scala
Scala
bsd-3-clause
764
/* * 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 ...
ueshin/apache-spark
sql/catalyst/src/main/scala/org/apache/spark/sql/util/PartitioningUtils.scala
Scala
apache-2.0
4,279
/* * Copyright 2015 PayPal * * 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 ...
keshin/squbs
squbs-testkit/src/main/scala/org/squbs/testkit/DebugTiming.scala
Scala
apache-2.0
1,274
/* * Copyright (c) 2017 Magomed Abdurakhmanov, Hypertino * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ package com.hypertino.facade.filters.annotated impo...
hypertino/hyperfacade
src/main/scala/com/hypertino/facade/filters/annotated/ForwardRequestFilter.scala
Scala
mpl-2.0
2,084
/* * 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 ...
bwsw/sj-platform
tests/pipeline/sj-input-test/src/main/scala/com/bwsw/sj/test/module/input/Validator.scala
Scala
apache-2.0
979
/* * This file is part of eCobertura. * * Copyright (c) 2009, 2010 Joachim Hofer * All rights reserved. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/le...
jmhofer/eCobertura
ecobertura.ui/src/main/scala/ecobertura/ui/util/Format.scala
Scala
epl-1.0
537
/** * Copyright (C) 2015 Orbeon, Inc. * * This program 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 * 2.1 of the License, or (at your option) any later version. * * This program i...
brunobuzzi/orbeon-forms
xforms/jvm/src/test/scala/org/orbeon/oxf/xforms/xbl/BindingIndexTest.scala
Scala
lgpl-2.1
5,312
package views.vrm_retention import composition.TestHarness import controllers.routes.CookiePolicy import helpers.vrm_retention.CookieFactoryForUISpecs import org.openqa.selenium.By import org.openqa.selenium.WebDriver import org.scalatest.selenium.WebBrowser.{click, currentUrl, go, pageSource, pageTitle} import pages....
dvla/vrm-retention-online
test/views/vrm_retention/BeforeYouStartIntegrationSpec.scala
Scala
mit
4,208
package uk.gov.dvla.vehicles.presentation.common.controllers import com.google.inject.Inject import play.api.mvc.{Action, Controller} import uk.gov.dvla.vehicles.presentation.common.clientsidesession.ClientSideSessionFactory import uk.gov.dvla.vehicles.presentation.common.views class PleaseWaitController @Inject()(im...
dvla/vehicles-presentation-common
common-test/app/uk/gov/dvla/vehicles/presentation/common/controllers/PleaseWaitController.scala
Scala
mit
489
package org.fayalite.gate.server object PageRender { val defaultIndexPage = { import scalatags.Text.all._ // "<!DOCTYPE html>" + // ?Necessary? html( scalatags.Text.all.head( scalatags.Text.tags2.title("fayalite"), link(rel := "icon", href := "img/fay16x16.png"), meta(chars...
ryleg/fayalite
gate/src/main/scala/org/fayalite/gate/server/PageRender.scala
Scala
mit
574
package mesosphere.marathon.core.launcher.impl import mesosphere.marathon.core.launcher.TaskOp import mesosphere.marathon.core.matcher.base.util.OfferOperationFactory import mesosphere.marathon.core.task.{ TaskStateOp, Task } import mesosphere.marathon.state.DiskSource import mesosphere.marathon.core.task.Task.LocalVo...
timcharper/marathon
src/main/scala/mesosphere/marathon/core/launcher/impl/TaskOpFactoryHelper.scala
Scala
apache-2.0
2,041
/* * Copyright 2016 Uncharted Software 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 o...
unchartedsoftware/salt
src/test/scala/software/uncharted/salt/core/generation/request/TileSeqRequestSpec.scala
Scala
apache-2.0
1,378
/* * spark-examples * Copyright (C) 2015 Emmanuelle Raffenne * * 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. *...
eraffenne/spark-streaming-examples
src/main/scala/com/example/spark/streaming/KafkaConsumer.scala
Scala
gpl-3.0
1,684
package uk.co.morleydev.zander.client.test.unit.data.map import uk.co.morleydev.zander.client.data.map.CMakeBuildModeBuildTypeMap import uk.co.morleydev.zander.client.model.arg.BuildMode import uk.co.morleydev.zander.client.model.arg.BuildMode.BuildMode import uk.co.morleydev.zander.client.test.unit.UnitTest class CM...
MorleyDev/zander.client
src/test/scala/uk/co/morleydev/zander/client/test/unit/data/map/CMakeBuildTypeMapTests.scala
Scala
mit
811
package com.twitter.finatra.tests.json.internal.caseclass.validation.domain import com.twitter.finatra.validation.NotEmpty import org.joda.time.DateTime case class Person( @NotEmpty name: String, nickname: String = "unknown", dob: Option[DateTime] = None, address: Option[Address] = None)
tom-chan/finatra
jackson/src/test/scala/com/twitter/finatra/tests/json/internal/caseclass/validation/domain/Person.scala
Scala
apache-2.0
303
package io.ssc.angles.pipeline.explorers import com.google.common.collect.{HashMultimap, SetMultimap} import scala.collection.JavaConverters._ import scala.collection.mutable /** * Helper class for managing a set of clusters. Data is backed by two SetMultimaps. */ class ClusterSet[T] { private val explorerSet: ...
jhendess/angles
src/main/scala/io/ssc/angles/pipeline/explorers/ClusterSet.scala
Scala
gpl-3.0
1,502
/** **\\ ** Copyright (c) 2012 Center for Organic and Medicinal Chemistry ** ** Zurich University of Applied Sciences ** ** Wädenswil, Switzerland ** \\** ...
stefan-hoeck/chemf
src/main/scala/chemf/Bond.scala
Scala
gpl-3.0
927
package io.scalac.seed.route import akka.pattern.ask import akka.util.Timeout import io.scalac.seed.domain.AggregateRoot.Removed import io.scalac.seed.domain.VehicleAggregate import io.scalac.seed.service.{UserAggregateManager, VehicleAggregateManager} import VehicleAggregate.Vehicle import VehicleAggregateManager.{Ge...
vimvim/akka-persistence-event-sourcing
src/test/scala/io/scalac/seed/route/VehicleRouteSpec.scala
Scala
apache-2.0
4,306
/* _____ _ * | ___| __ __ _ _ __ ___ (_) __ _ _ __ * | |_ | '__/ _` | '_ ` _ \\| |/ _` | '_ \\ * | _|| | | (_| | | | | | | | (_| | | | | * |_| |_| \\__,_|_| |_| |_|_|\\__,_|_| |_| * * Copyright 2014 Pellucid Analytics * * Licensed under the Apache License, Version 2.0 (the "License"); *...
tixxit/framian
framian/src/main/scala/framian/column/EvalColumn.scala
Scala
apache-2.0
2,883
package org.flowpaint.raster.image import org.flowpaint.model2.RasterRenderer import org.flowpaint.raster.channel.Channel import org.flowpaint.raster.channel.Raster import org.flowpaint.util.Rectangle import org.flowpaint.raster.channel.{Channel, Raster} import org.flowpaint.util.Rectangle import org.flowpaint.raster....
zzorn/flowpaint
src/main/scala/org/flowpaint/raster/image/RenderOperation.scala
Scala
gpl-2.0
3,407
package fpinscala package monads import parsing._ import testing._ import parallelism._ import state._ import parallelism.Par._ trait Functor[F[_]] { def map[A,B](fa: F[A])(f: A => B): F[B] def distribute[A,B](fab: F[(A, B)]): (F[A], F[B]) = (map(fab)(_._1), map(fab)(_._2)) def codistribute[A,B](e: Either...
feynmanliang/fpinscala
exercises/src/main/scala/fpinscala/monads/Monad.scala
Scala
mit
3,392
package main.scala.org.cc object Ord { val a : Int = 'a'.toInt val f : Int = 'f'.toInt val z : Int = 'z'.toInt val A : Int = 'A'.toInt val F : Int = 'F'.toInt val Z : Int = 'Z'.toInt val Zero : Int = '0'.toInt val Nine : Int = '9'.toInt val plus : Int = '+'.toInt val minus : Int...
christophe-calves/alpha
src/main/scala/org/cc/Ord.scala
Scala
gpl-3.0
1,081
package scalariform.lexer import scalariform._ import scalariform.lexer.Tokens._ import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers import org.scalatest.TestFailedException import org.scalatest.TestPendingException import java.io._ /** * Test full tokeniser, including newline inferencing. */...
gangstead/scalariform
scalariform/src/test/scala/scalariform/lexer/NewlineInferencerTest.scala
Scala
mit
1,879
package onion.tools.option /** * @author Kota Mizushima */ sealed trait CommandLineParam case class ValuedParam(value: String) extends CommandLineParam case object NoValuedParam extends CommandLineParam
onionlang/onion
src/main/scala/onion/tools/option/CommandLineParam.scala
Scala
bsd-3-clause
206
// Copyright 2011-2012 James Michael Callahan // See LICENSE-2.0 file for licensing information. package org.scalagfx.math //-------------------------------------------------------------------------------------------------- // P O S 3 D ...
JimCallahan/Graphics
src/org/scalagfx/math/Pos3d.scala
Scala
apache-2.0
10,079
package com.github import scala.collection.mutable import scala.util.Random import akka.actor.Props import com.github.core.actors.SlaServiceMock import com.github.model.Sla class SlaTokenToUserTest extends ActorTestTemplate("SlaTokenToUserSystem") { "An SlaService" must { val sla = system.actorOf(Props[SlaServ...
Kibaras/Throttling-Service
src/test/scala/com/github/SlaTokenToUserTest.scala
Scala
apache-2.0
942
package io.toolsplus.atlassian.connect.play.ws.jwt import java.net.URI import io.toolsplus.atlassian.connect.play.api.models.AtlassianHost import io.toolsplus.atlassian.connect.play.auth.jwt.symmetric.JwtGenerator import play.api.http.HeaderNames.{AUTHORIZATION, USER_AGENT} import play.api.libs.ws.WSSignatureCalculato...
toolsplus/atlassian-connect-play
modules/core/app/io/toolsplus/atlassian/connect/play/ws/jwt/JwtSignatureCalculator.scala
Scala
apache-2.0
1,325
package de.unihamburg.vsis.sddf.visualisation.model import org.apache.spark.rdd.RDD import de.unihamburg.vsis.sddf.reading.SymPair import de.unihamburg.vsis.sddf.reading.Tuple class GoldstandardModel extends BasicAnalysable { var _goldstandard: Option[RDD[SymPair[Tuple]]] = None def goldstandard = _goldstandard...
numbnut/sddf
src/main/scala/de/unihamburg/vsis/sddf/visualisation/model/GoldstandardModel.scala
Scala
gpl-3.0
593
/* * 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 ...
ArvinDevel/onlineAggregationOnSparkV2
sql/core/src/test/scala/org/apache/spark/sql/sources/PartitionedWriteSuite.scala
Scala
apache-2.0
1,890
/* * 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/help-to-save-frontend
app/uk/gov/hmrc/helptosavefrontend/models/eligibility/EligibilityCheckResultType.scala
Scala
apache-2.0
1,767
package io.youi.drawable trait Drawable extends Modifiable { def draw(context: Context, x: Double, y: Double): Unit } object Drawable { object None extends Drawable { override def draw(context: Context, x: Double, y: Double): Unit = {} } }
outr/youi
ui/js/src/main/scala/io/youi/drawable/Drawable.scala
Scala
mit
251
/* * Copyright 2014 Andrey Kutyrev * * Licensed under the the GNU Public License v3.0; * 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/licenses/gpl.html * * Unless required by applicable law or agreed to in writing, softwar...
squ1b3r/Thingummies
src/main/scala/squ1b3r/thingummies/proxy/CommonProxy.scala
Scala
gpl-3.0
2,283
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package synthesis package rules import purescala.Expressions._ import purescala.ExprOps._ import purescala.Constructors._ import purescala.TypeOps._ case object UnconstrainedOutput extends NormalizingRule("Unconstr.Output") { def instantiateOn(implicit hctx: Se...
regb/leon
src/main/scala/leon/synthesis/rules/UnconstrainedOutput.scala
Scala
gpl-3.0
1,164
package org.jetbrains.plugins.scala package lang package psi package api package expr import com.intellij.lang.ASTNode import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.tree.TokenSet import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.{PsiElement, ResolveState} import org.jetbrains.p...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScBlock.scala
Scala
apache-2.0
10,846
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.testsuite.javalib.net imp...
SebsLittleHelpers/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/net/URITest.scala
Scala
apache-2.0
15,682
/** * * Copyright (C) 2017 University of Bamberg, Software Technologies Research Group * <https://www.uni-bamberg.de/>, <http://www.swt-bamberg.de/> * * This file is part of the Data Structure Investigator (DSI) project, which received financial support by the * German Research Foundation (DFG) under grant no. L...
uniba-swt/DSIsrc
src/event/DsOliLValue.scala
Scala
gpl-3.0
1,541
/* * Copyright 2014-2015 Sphonic Ltd. 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
nkijak/phantom
phantom-connectors/src/main/scala/com/websudos/phantom/connectors/DefaultSessionProvider.scala
Scala
bsd-2-clause
3,084
package com.karasiq.shadowcloud.test.storage import java.nio.file.Files import akka.stream.scaladsl.{Keep, Source} import akka.stream.testkit.scaladsl.{TestSink, TestSource} import akka.util.ByteString import com.karasiq.shadowcloud.model.Path import com.karasiq.shadowcloud.storage._ import com.karasiq.shadowcloud.st...
Karasiq/shadowcloud
core/assembly/src/test/scala/com/karasiq/shadowcloud/test/storage/RepositoryTest.scala
Scala
apache-2.0
2,632