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 fos import scala.util.parsing.combinator.syntactical.StandardTokenParsers import scala.util.parsing.input._ import scala.util.parsing.syntax._ /** This object implements a parser and evaluator for the * simply typed lambda calculus found in Chapter 9 of * the TAPL book. */ object SimplyTyped extends Stan...
sana/WorkAtEPFL
TypedLambdaCalculusEvaluator/src/fos/SimplyTyped-partial.scala
Scala
gpl-3.0
12,094
/*********************************************************************** * 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-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/index/RecordIdxStrategyTest.scala
Scala
apache-2.0
8,978
package de.zalando.apifirst.generators import de.zalando.apifirst.Application.{ TypeLookupTable, StrictModel, DiscriminatorLookupTable } import de.zalando.apifirst.Domain import de.zalando.apifirst.Domain._ import de.zalando.apifirst.naming.Reference import de.zalando.apifirst.naming.dsl._ import org.scalatest.{ FunSp...
zalando/play-swagger
play-scala-generator/src/test/scala/de/zalando/apifirst/generators/ScalaGeneratorsTest.scala
Scala
mit
14,772
//package com.equalinformation.poc.akka.scala.track1.future // //import akka.actor.Actor // ///** // * Created by bpupadhyaya on 2/12/16. // */ //class OrderActor extends Actor { // // def receive = { // case userId: Int => // sender ! new Order(userId, 123, 345, 5) // } //}
bpupadhyaya/AkkaPOC
src/main/scala/com/equalinformation/poc/akka/scala/track1/future/OrderActor.scala
Scala
mit
288
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. ...
deeplearning4j/deeplearning4j
scalnet/src/test/scala/org/deeplearning4j/scalnet/examples/dl4j/recurrent/RNNEmbeddingExample.scala
Scala
apache-2.0
2,406
package scala import scala.tools.reflect.ToolBoxError import scala.tools.testkit.AssertUtil._ import scala.tools.testkit.RunTesting import org.junit.Test class StringTest extends RunTesting { @Test def testNoSelf(): Unit = assertThrows[ToolBoxError](runner.run(""" "A".self """)) @Test def testNoUnwrap(): Unit ...
lrytz/scala
test/junit/scala/StringTest.scala
Scala
apache-2.0
383
/* * 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/utils/tf/loaders/TruncateModSpec.scala
Scala
apache-2.0
1,666
package core import com.bryzek.apidoc.spec.v0.models.{Model, Service} import builder.JsonUtil import lib.{PrimitiveMetadata, Primitives, Kind} import java.util.UUID import org.joda.time.format.ISODateTimeFormat import play.api.libs.json._ import com.fasterxml.jackson.core.{ JsonParseException, JsonProcessingException ...
Seanstoppable/apidoc
core/src/main/scala/core/TypeValidator.scala
Scala
mit
9,442
/* ______ ** | ___ \\ ** ___ _ _ _ __ | |_/ /_ _ _ __ _ __ ** / __| | | | '_ \\| ___ \\ | | | '__| '_ \\ ** \\__ \\ |_| | | | | |_/ / |_| | | | | | | ** |___/\\__,_|_| |_\\____/ \\__,_|_| |_| |_| ** ** SunBurn RayTracer ** ...
hsyl20/SunBurn
src/main/scala/core/HitInfo.scala
Scala
gpl-3.0
802
package org.crudible.core.table trait TableRepository[T <: TableRowModel] { def single(id: String): Option[T] def create(): T def list(): List[T] }
rehei/crudible
crudible-core/src/main/scala/org/crudible/core/table/TableRepository.scala
Scala
apache-2.0
157
/* * 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-sql/src/main/scala/com/spotify/scio/sql/Query10.scala
Scala
apache-2.0
9,040
/* Copyright (c) 2009-2012, The Regents of the University of California 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 lis...
cdlib/weari
src/main/scala/org/cdlib/was/weari/SolrFields.scala
Scala
bsd-3-clause
3,847
package me.pages import spray.json._ import spray.json.DefaultJsonProtocol import scalikejdbc._ case class CommentReq(title: String, body: String, author: String) case class PostReq(title: String, body: String) case class Comment(id: Long, title: String, body: String, author: String) case class Blog(name: String, aut...
ysarbaev/blog
src/main/scala/me/pages/Model.scala
Scala
mit
949
package dk.tennis.compare import dk.bayes.math.gaussian.Gaussian import dk.tennis.compare.rating.multiskill.infer.matchprob.givenskills.inferMatchProbGivenSkills object MatchProbGivenSkillsApp extends App { val p1OnServe = Gaussian(8.0, 0) val p1OnReturn = Gaussian(0, 0) val p2OnServe = Gaussian(7.0, 0) val...
danielkorzekwa/tennis-player-compare
model-tester/src/test/scala/dk/tennis/compare/MatchProbGivenSkillsApp.scala
Scala
bsd-2-clause
507
/* * Copyright (c) 2014 Contributor. All rights reserved. */ package org.scalaide.debug.internal.expression.proxies import org.scalaide.debug.internal.expression.context.JdiContext import org.scalaide.debug.internal.expression.proxies.primitives.PrimitiveJdiProxy import org.scalaide.debug.internal.expression.proxies...
Kwestor/scala-ide
org.scala-ide.sdt.debug.expression/src/org/scalaide/debug/internal/expression/proxies/ArrayJdiProxy.scala
Scala
bsd-3-clause
1,774
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala
Scala
apache-2.0
28,976
package com.hackerrank object ListReplication { def main(args: Array[String]): Unit = { print(f(5, List(1, 3, 4))) } def f(num: Int, arr: List[Int]): List[Int] = { def iter(num: Int, x: Int, acc: List[Int]): List[Int] = { if (num == 0) acc else iter(num - 1, x, x :: acc) } arr.flat...
iluu/algs-progfun
src/main/scala/com/hackerrank/ListReplication.scala
Scala
mit
358
package io.eels.component.hive import java.util.concurrent.LinkedBlockingQueue import java.util.concurrent.atomic.AtomicInteger import com.sksamuel.exts.Logging import com.sksamuel.exts.OptionImplicits._ import com.sksamuel.exts.collection.BlockingQueueConcurrentIterator import io.eels.component.hdfs.{AclSpec, HdfsSo...
eel-lib/eel
eel-hive/src/main/scala/io/eels/component/hive/HiveTable.scala
Scala
mit
10,596
package sri.universal.styles package object units { final implicit class InlineStyleUnits(val input: Double) extends AnyVal { @inline def px = input + "px" @inline def mm = input + "mm" @inline def cm = input + "cm" @inline def in = input + "in" @inline def pt = input + "pt" @inline def pc = ...
scalajs-react-interface/universal
src/main/scala/sri/universal/styles/units/units.scala
Scala
apache-2.0
545
/* * Copyright 2014 http4s.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 law or agreed to i...
rossabaker/http4s
client/shared/src/main/scala/org/http4s/client/middleware/Retry.scala
Scala
apache-2.0
7,657
package com.typesafe.slick.testkit.tests import org.junit.Assert._ import scala.slick.ast.Dump import com.typesafe.slick.testkit.util.{TestkitTest, TestDB} class NestingTest(val tdb: TestDB) extends TestkitTest { import tdb.profile.simple._ @deprecated("Using deprecated Query.orderBy feature", "0.10") def test...
zefonseca/slick-1.0.0-scala.2.11.1
slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/NestingTest.scala
Scala
bsd-2-clause
2,751
/* * Copyright 2013 Akiyoshi Sugiki, University of Tsukuba * * 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...
axi-sugiki/kumoi
src/kali/impl/sched/RankScheduler.scala
Scala
apache-2.0
4,377
package com.datastax.sparkstress import java.util.concurrent.TimeUnit import com.datastax.spark.connector.cql.CassandraConnector import com.datastax.spark.connector.streaming._ import com.datastax.sparkstress.RowGenerator.PerfRowGenerator import com.datastax.sparkstress.RowTypes._ import com.datastax.sparkstress.Spar...
datastax/spark-cassandra-stress
src/main/scala/com/datastax/sparkstress/StreamingTask.scala
Scala
apache-2.0
3,989
package com.sk.app.proxmock.application.domain.conditions import com.jayway.restassured.RestAssured._ import com.sk.app.proxmock.BaseIntegrationTest import org.hamcrest.Matchers._ /** * Created by szymo on 25/11/2016. */ class GroovyExpressionConditionTest extends BaseIntegrationTest("/mock/groovy/expression/cond...
szymonkudzia/proxmock
sources/src/test/scala/com/sk/app/proxmock/application/domain/conditions/GroovyExpressionConditionTest.scala
Scala
mit
3,386
package akka.ainterface.remote.handshake import akka.ainterface.test.arbitrary.AinterfaceArbitrary.{arbNodeName, genByteString} import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.{Arbitrary, Gen} import scodec.Codec object HandshakeMessageArbitrary { implicit def arbHandshakeMessage[A: Arbitrary] (...
ainterface/ainterface
ainterface/src/test/scala/akka/ainterface/remote/handshake/HandshakeMessageArbitrary.scala
Scala
apache-2.0
1,517
package lib import io.apibuilder.api.v0.models.{Application, Organization} import io.apibuilder.spec.v0.models.{Import, Service} import play.api.Logger case class TypeLabel( org: Organization, app: Application, version: String, service: Service, typeName: String ) { private[this] val logger: Logger = Log...
gheine/apidoc
app/app/lib/TypeLabel.scala
Scala
mit
4,445
// Copyright 2014 Foursquare Labs Inc. All Rights Reserved. package io.fsq.spindle.runtime.test import io.fsq.spindle.codegen.runtime.strings.test.gen.{KeyStruct, MapsWithNonStringKeys} import io.fsq.spindle.runtime.common.gen.TestStruct import io.fsq.spindle.runtime.structs.gen.InnerStruct import java.nio.ByteBuffer...
foursquare/fsqio
test/jvm/io/fsq/spindle/runtime/test/ToStringTest.scala
Scala
apache-2.0
2,284
package bio4j.data.uniprot.flat import bio4j.data.uniprot._, seqOps._ import java.time.LocalDate /* Example: ``` DT 01-OCT-1996, integrated into UniProtKB/Swiss-Prot. DT 01-OCT-1996, sequence version 1. DT 07-FEB-2006, entry version 49. ``` for TrEMBL ``` DT 01-FEB-1999, integrated into U...
bio4j/data.uniprot
src/main/scala/flat/DT.scala
Scala
agpl-3.0
1,207
/* * Copyright (C) 2016-2017 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.javadsl.server import java.util.function.{ BiFunction, Function => JFunction } import java.util.stream.Collectors import javax.inject.{ Inject, Provider, Singleton } import akka.stream.Materializer import...
edouardKaiser/lagom
service/javadsl/server/src/main/scala/com/lightbend/lagom/internal/javadsl/server/JavadslServerBuilder.scala
Scala
apache-2.0
9,900
package org.smitt trait Endpoint { def asString: String }
sergius/smitt
src/main/scala/org/smitt/Endpoint.scala
Scala
mit
62
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
maropu/spark
examples/src/main/scala/org/apache/spark/examples/ml/UnivariateFeatureSelectorExample.scala
Scala
apache-2.0
2,466
package coursier.cli.search import caseapp.core.RemainingArgs import coursier.cli.CoursierCommand import coursier.cli.Util.ValidatedExitOnError import coursier.install.Channels import coursier.util.Sync object Search extends CoursierCommand[SearchOptions] { override def run(options: SearchOptions, args: RemainingA...
alexarchambault/coursier
modules/cli/src/main/scala/coursier/cli/search/Search.scala
Scala
apache-2.0
1,129
package com.guanghua.kafka.Test import java.util.concurrent.Executors import com.guanghua.Tool.{LoggerHelper, YWThreadPool} import com.guanghua.kafka.input.{YWHBASE_TASK_HIS, YWHBASE_YWGL_TASK_EXECUTE, YWHBASE_YWGL_TASK_INFO, YWHBASE_ZQ_TASK} object Test { def main(args: Array[String]) { //获取日志对象 val logg...
androidbestcoder/hadoop_own_exercise
src/main/scala/com/guanghua/kafka/Test/ThreadTest.scala
Scala
apache-2.0
2,002
/* * 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/spark2/src/test/scala/org/apache/spark/carbondata/restructure/rowreader/AddColumnTestCases.scala
Scala
apache-2.0
11,579
package org.eso.ias.asce.test.transfer import java.util.Properties import org.eso.ias.asce.transfer.{IasIO, IasioInfo, ScalaTransferExecutor} import org.eso.ias.types.OperationalMode import org.eso.ias.types.Alarm /** * A scala TransferExecutor for testing purposes * * @param cEleId: the ID of the ASCE * @param...
IntegratedAlarmSystem-Group/ias
CompElement/src/test/scala/org/eso/ias/asce/test/transfer/TransferExample.scala
Scala
lgpl-3.0
1,662
package io.github.tdhd.akkasamples.eventstreams import language.postfixOps import scala.concurrent.duration._ import akka.actor.Actor import akka.actor.ActorRef import akka.actor.ActorLogging import akka.actor.Props import akka.actor.Terminated import akka.actor.Cancellable class ParentActor extends Actor with ActorL...
tdhd/akka-samples
src/main/scala/io/github/tdhd/akkasamples/eventstreams/ParentActor.scala
Scala
mit
1,017
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.core import org.ensime.api.{ DeclaredAs, EnsimeConfig } import org.ensime.config.richconfig._ import org.ensime.fixture.{ EnsimeConfigFixture, IsolatedRichPresentationComp...
VlachJosef/ensime-server
core/src/it/scala-2.11/org/ensime/core/TypelevelLibrariesSymbolToFqnSpec.scala
Scala
gpl-3.0
2,313
package org.jetbrains.plugins.scala package lang package parser package parsing package expressions import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder /** * @author Alexander Podkhalyuzin * Date: 15.02.2008 */ /* Literal ::= ['...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/parser/parsing/expressions/Literal.scala
Scala
apache-2.0
2,457
package com.dslplatform.api.client import java.util.{ Collections, Properties } import com.dslplatform.api.patterns.PersistableRepository import com.dslplatform.api.patterns.SearchableRepository import com.dslplatform.api.patterns.ServiceLocator import com.dslplatform.api.patterns.Repository import java.io.{ InputSt...
ngs-doo/dsl-client-scala
http/src/main/scala/com/dslplatform/api/client/Bootstrap.scala
Scala
bsd-3-clause
5,753
package com.coiney.akka.pattern import akka.actor.{Actor, ActorSystem, PoisonPill} import akka.testkit._ import org.scalatest.{BeforeAndAfterAll, Matchers, WordSpecLike} import scala.concurrent.duration._ class WatchingObservableAckTestActor extends Actor with WatchingObservable { override def receive: Actor.Rece...
Coiney/akka-patterns
src/test/scala/com/coiney/akka/pattern/ObservableSpec.scala
Scala
bsd-3-clause
2,595
package cpup.lib.util object StringUtil { case class Pre(val pre: String) { def unapply(v: String) = if(v.startsWith(pre)) Some(v.substring(pre.length)) else None } case class Suff(val suff: String) { def unapply(v: String) = if(v.endsWith(suff)) Some(v.substring(0, v.length - suff.length)) else None } }
CoderPuppy/cpup-lib
src/main/scala/cpup/lib/util/StringUtil.scala
Scala
mit
315
package models.db.systemmanage import com.typesafe.slick.driver.oracle.OracleDriver.simple._ import models.systemmanage.GlobalParam /** * Created by hooxin on 15-2-12. */ class GlobalParamTable(tag: Tag) extends Table[GlobalParam](tag, "t_globalpar") { def id = column[String]("globalparcode", O.PrimaryKey) def...
firefoxmmx2/techsupport-extjs4-slick3
app/models/db/systemmanage/GlobalParamTable.scala
Scala
mit
537
package jp trait Transform[I,O] { def apply(in: I, path: List[PathElement]): O } class Path(spec: String) { import Parse.{ Error, Failure, Success } lazy val result = Parse(spec) def apply[I,O](in: I)(implicit trans: Transform[I,O]): Either[String, O] = result match { case Success(path, _) => Right(...
softprops/jp
src/main/scala/path.scala
Scala
mit
493
package org.jetbrains.plugins.scala.lang.psi.api.base.types /** * @author Alexander Podkhalyuzin * Date: 13.03.2008 */ trait ScExistentialTypeElement extends ScTypeElement { override protected val typeName = "ExistentialType" def quantified: ScTypeElement = findChildByClassScala(classOf[ScTypeElement]) def cla...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/psi/api/base/types/ScExistentialTypeElement.scala
Scala
apache-2.0
400
/* * 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 ...
h2oai/sparkling-water
scoring/src/main/scala/ai/h2o/sparkling/ml/params/NullableIntArrayParam.scala
Scala
apache-2.0
2,179
package SANSA.graph /** * Created by priyansh on 10/07/17. */ class Node ( val _label: String) { val label: String = _label }
saist1993/tensor-related-activities
src/main/scala/SANSA/graph/Node.scala
Scala
unlicense
135
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Fri Sep 30 13:37:32 EDT 2011 * @see LICENSE (MIT style license file). *------------------------------------------------------------------------------ * @see http://www.neos-g...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/maxima/ConjGradient.scala
Scala
mit
7,412
package scala.meta package object io extends Api with Aliases
DavidDudson/scalameta
scalameta/io/shared/src/main/scala/scala/meta/io/package.scala
Scala
bsd-3-clause
63
/*********************************************************************** * 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...
boundlessgeo/geomesa
geomesa-fs/geomesa-fs-storage/geomesa-fs-storage-parquet/src/main/scala/org/locationtech/geomesa/parquet/ParquetFileSystemStorageFactory.scala
Scala
apache-2.0
1,583
package org.jetbrains.plugins.scala package spellchecker import com.intellij.spellchecker.tokenizer.{Tokenizer, SpellcheckingStrategy} import com.intellij.psi.PsiElement import lang.psi.api.base.ScLiteral /** * @author Ksenia.Sautina * @since 2/3/13 */ class ScalaSpellcheckingStrategy extends SpellcheckingStrategy...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/spellchecker/ScalaSpellcheckingStrategy.scala
Scala
apache-2.0
650
package sp.itemServiceDummy import akka.actor._ object Launch extends App { implicit val system = ActorSystem("SP") // Add root actors used in node here system.actorOf(ItemServiceDummy.props, ItemServiceDummy.service) val cluster = akka.cluster.Cluster(system) scala.io.StdIn.readLine("Press ENTER to exit ...
kristoferB/SP
spservices/itemServiceDummy/src/main/scala/sp/itemServiceDummy/Launch.scala
Scala
mit
437
/* * Copyright (C) 2005, The OpenURP Software. * * 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 3 of the License, or * (at your option) any later version. * * This...
openurp/api
base/src/main/scala/org/openurp/base/edu/model/Project.scala
Scala
lgpl-3.0
2,608
/* * 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 ...
practice-vishnoi/dev-spark-1
streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala
Scala
apache-2.0
28,407
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/cypher/frontend-2.3/src/main/scala/org/neo4j/cypher/internal/frontend/v2_3/ast/functions/StdDev.scala
Scala
apache-2.0
1,219
/* Title: Tools/Graphview/src/model.scala Author: Markus Kaiser, TU Muenchen Internal graph representation. */ package isabelle.graphview import isabelle._ import isabelle.graphview.Mutators._ import java.awt.Color class Mutator_Container(val available: List[Mutator]) { type Mutator_Markup = (B...
MerelyAPseudonym/isabelle
src/Tools/Graphview/src/model.scala
Scala
bsd-3-clause
2,581
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
rhauch/kafka
core/src/test/scala/unit/kafka/server/ReplicationQuotasTest.scala
Scala
apache-2.0
10,549
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Paul Phillips */ package scala package reflect package io import scala.language.implicitConversions import java.io.{ RandomAccessFile, File => JFile } import java.net.{ URI, URL } import scala.util.Random.alphanumeric import scala.reflect.inte...
felixmulder/scala
src/reflect/scala/reflect/io/Path.scala
Scala
bsd-3-clause
9,722
package leo.modules.agent.rules package control_rules import leo.datastructures.{AnnotatedClause, Clause} import leo.datastructures.blackboard.{DataType, Delta} /** * Created by mwisnie on 5/18/17. */ class EmptyClauseRule(out : DataType[AnnotatedClause], in : DataType[AnnotatedClause]*) extends Rule{ overrid...
lex-lex/Leo-III
oldsrc/main/scala/leo/modules/agent/rules/control_rules/EmptyClauseRule.scala
Scala
bsd-3-clause
874
package net.fwbrasil.activate.storage.relational.async import net.fwbrasil.activate.storage.Storage import net.fwbrasil.activate.storage.StorageFactory import com.twitter.finagle.client.DefaultPool import com.twitter.util.TimeConversions._ import com.twitter.finagle.exp.MysqlClient import net.fwbrasil.activate.Activat...
avramirez/activate
activate-finagle-mysql/src/main/scala/net/fwbrasil/activate/storage/relational/async/FinagleMySQLStorageFactory.scala
Scala
lgpl-2.1
1,676
package assets.mustache.crown import uk.gov.gds.ier.transaction.crown.dateOfBirth.DateOfBirthMustache import uk.gov.gds.ier.test._ class DateOfBirthTemplateTest extends TemplateTestSuite with DateOfBirthMustache { it should "properly render all properties from the model" in { running(FakeApplication()) { ...
alphagov/ier-frontend
test/assets/mustache/crown/DateOfBirthTemplateTest.scala
Scala
mit
4,488
package spire package benchmark import scala.util.Random import spire.algebra._ import spire.math._ import spire.implicits._ import com.google.caliper.Runner import com.google.caliper.SimpleBenchmark import com.google.caliper.Param import java.lang.Math import java.math.BigInteger object AddBenchmarks extends MyR...
tixxit/spire
benchmark/src/main/scala/spire/benchmark/AddBenchmarks.scala
Scala
mit
2,565
package org.jetbrains.plugins.scala package conversion.copy import com.intellij.openapi.util.TextRange import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.conversion.ast.IntermediateNode import org.jetbrains.plugins.scala.lang.dependency.{Dependency, DependencyKind, Path} import org.jetbrains.plugins...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/conversion/copy/Association.scala
Scala
apache-2.0
803
/* 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/framework/pipeline/WikidataPipeline.scala
Scala
apache-2.0
943
package circumflex import core._ package object diff { val DIFF_LOG = new Logger("circumflex.diff") }
inca/circumflex
diff/src/main/scala/package.scala
Scala
bsd-2-clause
105
/*********************************************************************** * 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-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaDataStoreFactory.scala
Scala
apache-2.0
13,270
/* * Copyright 2014 porter <https://github.com/eikek/porter> * * 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...
eikek/porter
api/src/test/scala/porter/model/DefaultPermissionTest.scala
Scala
apache-2.0
2,484
package com.naokia package object groonga4s { type Entity = String type RequestUri = String }
naokia/groonga4s
src/main/scala/com/naokia/groonga4s/package.scala
Scala
apache-2.0
99
package io.citrine.lolo.util /** * Object containing utility functions for supporting interrupts * Created by maxhutch on 4/20/17. */ object Async { /** * Check the thread's interrupted status, because it could stop */ def canStop(): Unit = { if (Thread.interrupted()) throw new InterruptedExcept...
CitrineInformatics/lolo
src/main/scala/io/citrine/lolo/util/Async.scala
Scala
apache-2.0
332
/* * 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-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/AggregateRemoveITCase.scala
Scala
apache-2.0
10,286
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-accumulo/geomesa-accumulo-raster/src/test/scala/org/locationtech/geomesa/raster/data/QueryAndMosaicTest.scala
Scala
apache-2.0
8,000
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Martin Odersky */ package scala package tools.nsc package transform import symtab._ import Flags.{CASE => _, _} import scala.collection.mutable.ListBuffer /** This class ... * * @author Martin Odersky * @version 1.0 */ abstract class Ex...
felixmulder/scala
src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala
Scala
bsd-3-clause
20,400
/* * Copyright 2015-2016 IBM 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 law or agree...
nwspeete-ibm/openwhisk
tests/src/whisk/core/entity/test/SchemaTests.scala
Scala
apache-2.0
28,053
/* * Copyright 2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
pbrant/framework
web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
Scala
apache-2.0
6,892
/** * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com> */ /* THIS FILE DIVERGE */ package akka.actor.dungeon import scala.annotation.tailrec import scala.util.control.NonFatal import scala.collection.immutable import akka.actor._ import akka.util.Helpers private[akka] trait Children { this: Acto...
jmnarloch/akka.js
akka-js-actor/js/src/main/scala/akka/actor/dungeon/Children.scala
Scala
bsd-3-clause
7,799
package sbn.core.data import sbn.core.data.attributes.Attributes /** * The class represents a collection of [[DataInstance]]] objects that represents its data. * * @param name the name of the DataSet. * @param attributes the [[Attributes]] object representing the data instance's columns. * @param data the c...
fernandoj92/sbn
core/src/main/scala/sbn/core/data/ImmutableDataSet.scala
Scala
apache-2.0
482
package scorex.lagonaki import dispatch.{Http, url} import play.api.libs.json.{JsObject, JsValue, Json} import scorex.api.http.ApiKeyNotValid import scorex.lagonaki.TestingCommons._ import scorex.lagonaki.server.LagonakiApplication import scorex.transaction.TransactionSettings import scorex.utils._ import scala.concu...
alexeykiselev/WavesScorex
src/test/scala/scorex/lagonaki/TestingCommons.scala
Scala
cc0-1.0
4,414
package se.gigurra.util import scala.concurrent.duration._ import scala.language.postfixOps class CountDown(val initialTimeLeft: FiniteDuration) { private var tFinished: TimeStamp = null reset() ///////////////////////// def timeLeft: Duration = { val t = TimeStamp() if (t < tFinished) tFinis...
GiGurra/gigurra-game-challenge
ext/gigurra-util/src/main/scala/se/yabs/util/CountDown.scala
Scala
gpl-2.0
469
package com.github.shadowsocks import java.util.Locale import android.app.{KeyguardManager, NotificationManager, PendingIntent} import android.content.{BroadcastReceiver, Context, Intent, IntentFilter} import android.os.PowerManager import android.support.v4.app.NotificationCompat import android.support.v4.app.Notifi...
otoil/shadowsocks-android
src/main/scala/com/github/shadowsocks/ShadowsocksNotification.scala
Scala
gpl-3.0
4,548
package net.machinemuse.powersuits.item import net.minecraft.client.renderer.texture.IIconRegister import cpw.mods.fml.relauncher.Side import cpw.mods.fml.relauncher.SideOnly import net.machinemuse.utils.render.MuseRenderer import net.minecraft.world.World import net.minecraft.entity.player.EntityPlayer import net.min...
QMXTech/MachineMusePowersuits
src/main/scala/net/machinemuse/powersuits/item/ItemPowerArmorChestplate.scala
Scala
bsd-3-clause
895
package models import lldp._ import util.LldpRepresentation object LldpHelper extends CommonHelper[LldpRepresentation] { import AssetMeta.Enum._ val managedTags = Set( LldpInterfaceName, LldpChassisName, LldpChassisIdType, LldpChassisIdValue, LldpChassisDescription, LldpPortIdType, Ll...
Shopify/collins
app/models/LldpHelper.scala
Scala
apache-2.0
4,321
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @builder scalation.linalgebra.bld.BldMatrix * @version 1.3 * @date Sun Sep 16 14:09:25 EDT 2012 * @see LICENSE (MIT style license file). */ package scalation.linalgebra import java.io.PrintWrit...
NBKlepp/fda
scalation_1.3/scalation_mathstat/src/main/scala/scalation/linalgebra/MatrixR.scala
Scala
mit
75,513
package me.zup.simpleEndpoint import akka.actor.{ActorSystem, Props} import akka.io.IO import spray.can.Http import akka.pattern.ask import akka.util.Timeout import scala.concurrent.duration._ object Boot extends App { import me.zup.simpleEndpoint.AppConfig._ implicit val system = ActorSystem("EndpointSystem") ...
r0qs/simple-endpoint
src/main/scala/me/zup/simpleEndpoint/Boot.scala
Scala
gpl-3.0
536
package app.components.listtopics import app.Utils._ import app.components.WindowFunc import app.components.forms.FormCommonParams.SubmitFunction import app.components.forms.{FormCommonParams, FormTextField, SubmitButton} import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import shared.dto.Pa...
Igorocky/readtext
client/src/main/scala/app/components/listtopics/ParagraphForm.scala
Scala
mit
2,411
package controllers.ead object Assets extends controllers.AssetsBuilder
delving/culture-hub
modules/ead/app/controllers/ead/Assets.scala
Scala
apache-2.0
73
package lila.blog import scala.concurrent.duration._ final class LastPostCache(api: BlogApi, ttl: Duration, collection: String) { private val cache = lila.memo.MixedCache.single[List[MiniPost]]( name = "blog.lastPost", f = api.prismicApi flatMap { prismic => api.recent(prismic, none, 3) map { ...
clarkerubber/lila
modules/blog/src/main/LastPostCache.scala
Scala
agpl-3.0
606
import scala.{specialized => spec} class C1[@spec(Int, AnyRef) A, @spec(Int, AnyRef) B](v:A, w:B) class C2[@spec(Unit, Boolean, Byte, Char, Short, Int, Long, Float, Double, AnyRef) A, @spec(Unit, Boolean, Byte, Char, Short, Int, Long, Float, Double, AnyRef) B](v:A, w:B) object Test { def main(args:Array[String]) {...
felixmulder/scala
test/files/run/t5500.scala
Scala
bsd-3-clause
438
package scalaua2017 import java.sql.{Connection, PreparedStatement} import akka.actor.{Actor, ActorLogging, ActorRef, PoisonPill, Props} import akka.routing.RoundRobinPool import scala.util.Random object database { val Config = new Config("com.mysql.cj.jdbc.Driver", "jdbc:mysql://localhost:3306/pv2020?useSSL=fal...
slavaschmidt/akka-antipatterns
src/main/scala/scalaua2017/database/database.scala
Scala
mit
3,711
package jsonpicklers import Picklers._, Result._ import org.scalatest.PropSpec import org.json4s.JsonAST._ class EnumerableTest extends PropSpec { property("string literal / positive") { val field = "a" :: string("b") val json = JObject("a" -> JString("b")) val unpickled = field.unpickle(json).get ...
teigen/jsonpicklers
src/test/scala/jsonpicklers/EnumerableTest.scala
Scala
apache-2.0
1,280
/* * 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/main/scala/com/intel/analytics/bigdl/dllib/feature/dataset/image/Utils.scala
Scala
apache-2.0
3,400
/* * 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
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeInSuite.scala
Scala
apache-2.0
7,616
package model import java.sql.Timestamp /** * POJO with the basic SSH Order information (Used by the SSH Order DAO, Service and Controller) * @author Camilo Sampedro <camilo.sampedro@udea.edu.co> */ case class SSHOrder( id: Long, sentDatetime: Timestamp, ...
ProjectAton/AtonLab
app/model/SSHOrder.scala
Scala
gpl-3.0
903
package akka.rtcweb.protocol /** * Implementation of the WebRTC Data Channel Establishment Protocol (draft-ietf-rtcweb-data-protocol-08.txt) * */ package object dcep { }
danielwegener/akka-rtcweb
src/main/scala/akka/rtcweb/protocol/dcep/package.scala
Scala
apache-2.0
176
/* * Copyright 2016 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
core/src/main/scala/com/github/bruneli/scalaopt/core/variable/VariableFromDouble.scala
Scala
apache-2.0
1,759
/* * 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/vat-registration-frontend
app/common/StringMasking.scala
Scala
apache-2.0
895
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
pncampbell/ct-calculations
src/test/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC35Spec.scala
Scala
apache-2.0
1,161
package org.bitcoins.protocol.script import org.bitcoins.crypto.ECFactory import org.scalatest.{MustMatchers, FlatSpec} /** * Created by chris on 3/8/16. */ class MultiSignatureScriptPubKeyTest extends FlatSpec with MustMatchers { "MultiSignatureScriptPubKey" must "derive the amount of required signatures from a...
Christewart/scalacoin
src/test/scala/org/bitcoins/protocol/script/MultiSignatureScriptPubKeyTest.scala
Scala
mit
3,602
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Mon Jan 5 14:00:12 EST 2015 * @see LICENSE (MIT style license file). */ package scalation.analytics import scalation.math.FunctionS2S import scalation.linalgebra.{MatrixD, Ve...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/analytics/GLM.scala
Scala
mit
10,854
package scala import reflect.ClassTag /** An immutable array. An `IArray[T]` has the same representation as an `Array[T]`, * but it cannot be updated. Unlike regular arrays, immutable arrays are covariant. */ object opaques: opaque type IArray[+T] = Array[_ <: T] private[scala] type Sub[A] >: Array[A] <: IArra...
som-snytt/dotty
library/src/scala/IArray.scala
Scala
apache-2.0
23,168
package io.surfkit.driver import io.surfkit.data.Data.{EmailStats} import scala.Predef._ /** * * Created by Corey Auger */ object EmailMetrics extends App with SparkSetup{ override def main(args: Array[String]) { val p = new java.io.PrintWriter("./output/email.json") sqlContext.load("jdbc", Map( ...
coreyauger/ashley-madison-spark
src/main/scala/io/surfkit/driver/EmailMetrics.scala
Scala
mit
1,487
package demo.components package materialui import chandu0101.macros.tojs.GhPagesMacros import chandu0101.scalajs.react.components.materialui._ import japgolly.scalajs.react.ScalaComponent import japgolly.scalajs.react.vdom.html_<^._ import scala.scalajs.js object MuiAvatarDemo { val code = GhPagesMacros.exampleSou...
chandu0101/scalajs-react-components
demo/src/main/scala/demo/components/materialui/MuiAvatarDemo.scala
Scala
apache-2.0
1,147