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 org.dbpedia.lookup.inputformat trait InputFormat extends Traversable[(String, String, String)] { }
dbpedia/lookup
src/main/scala/org/dbpedia/lookup/inputformat/InputFormat.scala
Scala
apache-2.0
109
package vultura.factor.inference.gbp import org.specs2.mutable.Specification import vultura.factor.inference.calibration.{LBP, BPResult} import vultura.factor._ import vultura.factor.generators._ import vultura.propagation._ class ParentToChildTest extends Specification with FactorMatchers { val p1: Problem = grid(...
ziggystar/vultura-factor
src/test/scala/vultura/factor/inference/gbp/ParentToChildTest.scala
Scala
mit
730
/* Copyright (C) 2008-2014 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
patverga/factorie
src/test/scala/cc/factorie/util/TestHyperParameterSearcher.scala
Scala
apache-2.0
1,921
/* * 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...
asorianostratio/incubator-toree
kernel/src/main/scala/org/apache/toree/magic/builtin/JavaScript.scala
Scala
apache-2.0
1,741
/* * 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 ...
zouzias/spark-lucenerdd
src/test/scala/org/zouzias/spark/lucenerdd/LuceneRDDRecordLinkageSpec.scala
Scala
apache-2.0
7,598
object Simon { import generated.TestGreetingListType }
sbt/sbt-xjc
src/sbt-test/sbt-xjc/compile-and-test/src/test/scala/Simon.scala
Scala
bsd-3-clause
57
/* * ------------------------------------------------------------------------------------------------- * - Project: Objectify - * - Copyright: ©2014 Matygo Educational Incorporated operating as Learndot - * - Author: ...
learndot/Objectify.scala
src/main/scala/org/objectify/resolvers/QueryParametersResolver.scala
Scala
mit
930
/*********************************************************************** * Copyright (c) 2013-2015 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 ...
vpipkt/geomesa
geomesa-raster/src/test/scala/org/locationtech/geomesa/raster/data/AccumuloRasterQueryPlannerTest.scala
Scala
apache-2.0
2,539
/* * 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 ...
ddna1021/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercionSuite.scala
Scala
apache-2.0
63,281
import scala.quoted.* inline def inspect[A]: String = ${ inspect2[A] } def inspect2[A: Type](using Quotes): Expr[String] = { import quotes.reflect.* val ps = TypeRepr.of[A].typeSymbol.primaryConstructor.tree match case DefDef(_, List(Nil, ps: TermParamClause), _, _) => ps case DefDef(_, List(ps...
dotty-staging/dotty
tests/run-macros/i12021/Macro_1.scala
Scala
apache-2.0
554
package com.github.mnogu.gatling.kafka.test import io.gatling.core.Predef._ import org.apache.kafka.clients.producer.ProducerConfig import scala.concurrent.duration._ import com.github.mnogu.gatling.kafka.Predef._ class ThrottledSimulation extends Simulation { val kafkaConf = kafka // Kafka topic name .top...
mnogu/gatling-kafka
src/test/scala/com/github/mnogu/gatling/kafka/test/ThrottledSimulation.scala
Scala
apache-2.0
1,128
package lang.lightweightjava.ast import lang.lightweightjava.ClassInterface import name.namegraph.{NameGraphExtended, NameGraphModular} import name._ case class ClassDefinition(className: ClassName, superClass: ClassRef, elements: ClassElement*) extends NominalModular[ClassInterface] { private var dependencies = S...
matthisk/hygienic-transformations
scala/src/main/scala/lang/lightweightjava/ast/ClassDefinition.scala
Scala
lgpl-3.0
7,848
package edu.gemini.phase2.skeleton.factory import edu.gemini.model.p1.immutable.{Site, PhoenixBlueprint} import edu.gemini.model.p1.mutable.{PhoenixFilter, PhoenixFocalPlaneUnit} import edu.gemini.spModel.core.MagnitudeBand import edu.gemini.spModel.gemini.phoenix.InstPhoenix import edu.gemini.spModel.obs.SPObservatio...
arturog8m/ocs
bundle/edu.gemini.phase2.skeleton.servlet/src/test/scala/edu/gemini/phase2/skeleton/factory/SpPhoenixTemplateSpec.scala
Scala
bsd-3-clause
2,654
// Copyright 2014 Foursquare Labs Inc. All Rights Reserved. package io.fsq.twofishes.indexer.scalding import com.twitter.scalding._ import com.twitter.scalding.typed.TypedSink import io.fsq.twofishes.gen._ import io.fsq.twofishes.indexer.output.PrefixIndexer import io.fsq.twofishes.indexer.util.SpindleSequenceFileSour...
foursquare/fsqio
src/jvm/io/fsq/twofishes/indexer/scalding/BasePrefixIndexBuildIntermediateJob.scala
Scala
apache-2.0
6,128
/******************************************************************************* * Copyright 2010 Maxime Lévesque * * 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://...
ccap/Squeryl
src/main/scala/org/squeryl/customtypes/CustomTypesMode.scala
Scala
apache-2.0
9,421
package codegeneration import helpers.CodeComparisonSpec class RelationTraitSpec extends CodeComparisonSpec { import contextMock.universe._ "simple trait" >> { generatedContainsCode( q"object A {@Relation trait T}", """trait T[+START <: Node, +END <: Node] extends AbstractRelation[START, END] ;...
renesca/renesca-magic
src/test/scala/codegeneration/RelationTraitSpec.scala
Scala
apache-2.0
1,252
import scala.quoted._ def test(using QuoteContext) = { '{ Option(4) match { case Some(a) => a; case None => 1 }} }
som-snytt/dotty
tests/pos/i4396a.scala
Scala
apache-2.0
117
package scalax.collection.io.json package error trait JsonGraphIssue object JsonGraphError extends Enumeration with JsonGraphIssue { type JsonGraphError = Value val NonObjArrValue, NonArray, ObjectSizeNEQ1, InvalidElemTypeId, EmptyNodeFieldList, InsufficientNodes, Un...
opyate/scala-graph
json/src/main/scala/scalax/collection/io/json/error/Errors.scala
Scala
bsd-3-clause
2,532
/* * Copyright (C) 2016-2017 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.persistence.cassandra import java.io.File import akka.actor.{ ActorSystem, BootstrapSetup } import akka.actor.setup.ActorSystemSetup import akka.cluster.Cluster import akka.persistence.cassandra.testkit.C...
edouardKaiser/lagom
persistence-cassandra/scaladsl/src/test/scala/com/lightbend/lagom/scaladsl/persistence/cassandra/CassandraPersistenceSpec.scala
Scala
apache-2.0
1,877
object Solutionex3_4 extends App { def extract(r: Array[Int]) = r.filter(_ > 0) ++ r.filter(_ <= 0) val r = Array(-1, 3, 4, -8, 0, 3) extract(r) }
koenighotze/scalafortheimpatient
src/main/scala/chapter3/ex3_4.scala
Scala
apache-2.0
155
package dk.tennis.dbn.em import org.junit._ import Assert._ import dk.atp.api.CSVATPMatchesLoader import dk.atp.api.domain.MatchComposite import dk.atp.api.domain.SurfaceEnum._ import scala.util.Random import org.joda.time.DateTime import org.joda.time.Duration import dk.tennis.dbn.MatchOutcome import Tenni...
danielkorzekwa/tennis-rating-dbn-em-scala
src/test/scala/dk/tennis/dbn/em/GenericTennisEMRealResultsTest.scala
Scala
bsd-2-clause
2,659
package org.jetbrains.plugins.scala.lang.completion.weighter import com.intellij.codeInsight.completion.{CompletionLocation, CompletionWeigher} import com.intellij.codeInsight.lookup.LookupElement import org.jetbrains.plugins.scala.lang.completion.lookups.ScalaLookupItem import org.jetbrains.plugins.scala.lang.psi.api...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/completion/weighter/ScalaContainingClassWiegher.scala
Scala
apache-2.0
1,444
package controllers import play.api._ import play.api.mvc._ import play.api.libs.json.Json import anorm._ import spray.json._ import structure.ManufactureFormatter._ import util.time._ /** * Project IntelliJ IDEA * Module controllers * User: Gyuhyeon * Date: 2014. 2. 6. * Time: 오전 2:13 */ object Manufacture e...
wingleess/EZOne-server
app/controllers/Manufacture.scala
Scala
lgpl-3.0
4,504
/* * 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.library import ...
scala-js/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/library/WrappedDictionaryTest.scala
Scala
apache-2.0
4,103
/* * Copyright (C) 2012 The Regents of The University California. * 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/LICENS...
alabid/blinkdb
src/main/scala/shark/memstore2/TablePartitionBuilder.scala
Scala
apache-2.0
2,264
/* * Copyright 2016 Michal Harish, [email protected] * * 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 ...
amient/affinity
examples/example-distributed-graph/src/main/scala/ExampleGraphMain3.scala
Scala
apache-2.0
1,456
package org.jetbrains.plugins.scala.lang.psi.impl.statements import com.intellij.lang.ASTNode import com.intellij.openapi.progress.ProgressManager import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.tree.IElementType import com.intellij.psi.{PsiClass, PsiElement, ResolveState} import org.jetbrains....
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/statements/ScExtensionImpl.scala
Scala
apache-2.0
3,453
package cromwell.database.sql /** * The collection of case classes representing database tables. * * It's possible that we may need to swap out the database layers at some point, because: * - slick upgrades from 3.x to 4.x (see previous 2.x to 3.x migration) * - we want a new relational mapping layer * - w...
ohsu-comp-bio/cromwell
database/sql/src/main/scala/cromwell/database/sql/tables/package.scala
Scala
bsd-3-clause
2,404
/* * 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/amls-frontend
test/generators/bankdetails/BankDetailsGenerator.scala
Scala
apache-2.0
1,724
package de.tuberlin.uebb.sl2.tests.impl import de.tuberlin.uebb.sl2.modules._ import de.tuberlin.uebb.sl2.impl._ import de.tuberlin.uebb.sl2.tests.specs.ModuleResolverSpec class ModuleResolverTest extends ModuleResolverSpec with AbstractFile with ModuleResolverImpl with Syntax with Errors with Configs w...
mzuber/simple-language
src/test/scala/impl/ModuleResolverTest.scala
Scala
bsd-3-clause
408
/** * Copyright (C) 2014 Kaj Magnus Lindberg (born 1979) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. ...
debiki/debiki-server-old
modules/debiki-core/src/main/scala/com/debiki/core/Settings.scala
Scala
agpl-3.0
1,238
/* * 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 ...
GJL/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/utils/TableTestBase.scala
Scala
apache-2.0
15,628
package circlepuzzles.geometry.spherical import circlepuzzles.geometry.{Angle, SphericalGeometry} /** * Disks on the unit sphere. A disk is defined as the set of points whose distance in radians to a given center point * is less than or equal to a given radius. * @param center Center of this disk. * @param ra...
wkretschmer/CirclePuzzles
src/main/scala/circlepuzzles/geometry/spherical/Disk.scala
Scala
mit
1,099
package org.broadinstitute.clio.transfer.model.bam import java.net.URI import org.broadinstitute.clio.transfer.model.{DeliverableMetadata, Metadata} import org.broadinstitute.clio.util.model.DocumentStatus case class BamMetadata( documentStatus: Option[DocumentStatus] = None, bamMd5: Option[Symbol] = None, bam...
broadinstitute/clio
clio-transfer-model/src/main/scala/org/broadinstitute/clio/transfer/model/bam/BamMetadata.scala
Scala
bsd-3-clause
1,647
package synereo.client.css import scala.language.postfixOps import scalacss.Defaults._ /** * Created by a4tech on 6/3/2016. */ object NewMessageCSS { object Style extends StyleSheet.Inline { import dsl._ val textAreaNewMessage = style( width(100.%%), marginTop(16.px), marginBottom(1...
LivelyGig/ProductWebUI
sclient/src/main/scala/synereo/client/css/NewMessageCSS.scala
Scala
apache-2.0
4,285
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
ueshin/apache-spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/randomExpressions.scala
Scala
apache-2.0
6,538
package com.etsy.sahale import cascading.flow.{Flow, FlowStep} import cascading.flow.hadoop.HadoopFlowStep import cascading.stats.{CascadingStats, FlowStepStats} import cascading.stats.hadoop.{HadoopStepStats, HadoopSliceStats} import cascading.tap.Tap import cascading.util.Util import java.util.Properties import s...
etsy/Sahale
flowtracker/src/main/scala/StepStatus.scala
Scala
mit
5,600
/* * 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 ma...
harperjiang/enc-selector
src/main/scala/edu/uchicago/cs/encsel/dataset/schema/SchemaGuesser.scala
Scala
apache-2.0
4,652
package scalax.collection.io.json import scalax.collection._ import scalax.collection.GraphPredef._, scalax.collection.GraphEdge._ import scalax.collection.generic.GraphCoreCompanion import descriptor.predefined._ import org.scalatest._ import org.scalatest.refspec.RefSpec class TDefaultSerializationRootTest ex...
scala-graph/scala-graph
json/src/test/scala/scalax/collection/io/json/TDefaultSerialization.scala
Scala
apache-2.0
1,786
/* * Scala classfile decoder (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 scal...
scala/scala
src/scalap/scala/tools/scalap/ByteArrayReader.scala
Scala
apache-2.0
2,363
package chrome.tabs.bindings import chrome.windows.bindings.Window import scala.scalajs.js object MoveProperties { def apply(windowId: js.UndefOr[Window.Id] = js.undefined, index: Int): MoveProperties = { js.Dynamic .literal( windowId = windowId, index = index ) ...
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/tabs/bindings/MoveProperties.scala
Scala
mit
497
package capitulo09 import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.FunSuite import scala.io.Source @RunWith(classOf[JUnitRunner]) class LendoCaracteresArquivo extends FunSuite{ test("lendo caracteres de um arquivo"){ //para ler caracteres individuais de um arquivo,...
celioeduardo/scala-impatient
src/test/scala/capitulo09/LeituraCaracteresArquivo.scala
Scala
mit
1,493
trait T extends Array { // error // error def t1(as: String*): Array[String] = { varargs1(as: _*) } // error def t2(as: String*): Array[String] = { super.varargs1(as: _*) } // error } class C extends Base_1 { // error def c1(as: String*): Array[String] = { varargs1(as: _*) } // error def c2(as: String*): Array[...
som-snytt/dotty
tests/neg/i1643.scala
Scala
apache-2.0
649
package collins.models import play.api.Logger import collins.util.config.NodeclassifierConfig trait AssetDistanceEval { /** * calculates the distance between two assets, returning a positive integer. * Higher value corresponds with further distance * * The ordering induced by distance should be a preo...
funzoneq/collins
app/collins/models/AssetDistanceSorter.scala
Scala
apache-2.0
3,753
package com.nthportal.euler package maths import scala.annotation.tailrec object NumericFormat { private val big0 = BigInt(0) private val big10 = BigInt(10) def twoDigitStringAsNum(s: String): Int = { require(s.length == 2, "Expected string of length 2 - actual length: " + s.length) twoDigitStringAsNum...
NthPortal/euler-n-scala
src/main/scala/com/nthportal/euler/maths/NumericFormat.scala
Scala
mit
2,025
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc packag...
martijnhoekstra/scala
src/compiler/scala/tools/nsc/transform/InfoTransform.scala
Scala
apache-2.0
2,012
package org.shade.common.parsers import java.time.Instant import org.scalatest.{Matchers, WordSpec} class ParsersSpec extends WordSpec with Matchers { import Parsers._ "ParseDecorator" when { "parsing an Int" should { "return Some(value) if the string contains a valid Int" in { "6".parseIn...
jamesshade/common
src/test/scala/org/shade/common/parsers/ParsersSpec.scala
Scala
apache-2.0
3,125
package edu.msstate.dasi.csb.workload.spark import edu.msstate.dasi.csb.workload.Workload import org.apache.spark.graphx.Graph import scala.reflect.ClassTag /** * Computes the in-degree of each vertex in the graph. * * @note Vertices with no in-edges are ignored. */ class InDegree(engine: SparkEngine) extends Wo...
msstate-dasi/csb
csb/src/main/scala/edu/msstate/dasi/csb/workload/spark/InDegree.scala
Scala
gpl-3.0
591
package model.repositories import java.util.UUID import _root_.anorm.SqlParser._ import _root_.anorm._ import model.dtos._ import model.repositories.anorm.{ArticleParser, ConsultationParser, _} import play.api.Play.current import play.api.db.DB class ConsultationRepository { def getConsultationStats():List[Cons...
scify/DemocracIT-Web
app/model/repositories/ConsultationRepository.scala
Scala
apache-2.0
13,023
package scorex.transaction import play.api.libs.json.{JsObject, Json} import scorex.account.PublicKeyAccount import scorex.crypto.EllipticCurveImpl import scorex.crypto.encode.Base58 import scorex.crypto.hash.FastCryptographicHash trait SignedTransaction extends TypedTransaction { def toSign: Array[Byte] val sig...
B83YPoj/Waves
src/main/scala/scorex/transaction/SignedTransaction.scala
Scala
apache-2.0
1,034
abstract class BTypes { trait BType sealed trait RefBType extends BType { def classOrArrayType: String = this match { case ClassBType(internalName) => internalName case a: ArrayBType => "" } } final class ClassBType(val internalName: String) extends RefBType class ArrayBType e...
som-snytt/dotty
tests/patmat/i2502.scala
Scala
apache-2.0
418
package com.github.libsml.math.function import com.github.libsml.math.linalg import com.github.libsml.math.linalg.Vector import com.github.libsml.math.linalg.BLAS /** * Created by huangyu on 15/7/25. */ class PlusFunction(private val first: Option[Function[Vector]], private var second: Option[Function[Vector]] = No...
libsml/libsml
core/src/main/scala/com/github/libsml/math/function/PlusFunction.scala
Scala
apache-2.0
2,728
/* * 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/connectedComponents.scala
Scala
apache-2.0
2,509
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/iht-frontend
test/iht/config/IhtPropertiesReaderTest.scala
Scala
apache-2.0
2,819
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/iht-frontend
app/iht/controllers/registration/applicant/ProbateLocationController.scala
Scala
apache-2.0
3,526
package controllers import play.api.mvc._ import com.google.inject.Inject import be.studiocredo.auth._ import be.studiocredo.{UserContextSupport, NotificationService, UserService} import play.api.data.Form import play.api.data.Forms._ import models.admin.UserFormData import play.api.data.validation.{Valid, Invalid, Co...
studiocredo/ticket-reservation
app/controllers/Profile.scala
Scala
apache-2.0
3,019
package testfeature import feature.{Block, Minus, Plus, Transcript} import org.scalatest.FunSuite /** * Created by prussell on 11/12/16. */ class TranscriptMiscSuite extends FunSuite { test("Illegal orientation") { intercept[IllegalArgumentException](new Transcript(chr1_1000_2000_both, Some("name"), Some("...
pamelarussell/sgxlib
src/test/scala/testfeature/TranscriptMiscSuite.scala
Scala
mit
336
package com.lightning.walletapp.helper import scodec.bits.{BitVector, ByteVector} import com.lightning.walletapp.ln.Tools.{Bytes, random} import javax.crypto.spec.{IvParameterSpec, SecretKeySpec} import com.lightning.walletapp.ln.wire.LightningMessageCodecs.aesZygoteCodec import com.lightning.walletapp.ln.wire.AESZygo...
btcontract/lnwallet
app/src/main/java/com/lightning/walletapp/helper/AES.scala
Scala
apache-2.0
1,770
package com.thetestpeople.trt.service import com.thetestpeople.trt.model._ import com.thetestpeople.trt.model import org.joda.time._ import java.net.URI /** * Types representing incoming test execution records */ object Incoming { trait AbtractExecution { def logOpt: Option[String] def executionTimeOpt...
thetestpeople/trt
app/com/thetestpeople/trt/service/Incoming.scala
Scala
mit
1,249
package nat.traversal.upnp.igd import akka.actor.ActorSystem import akka.stream.Materializer import java.net.InetSocketAddress import scala.concurrent.ExecutionContext /** * WAN device. */ class WANDevice( override val desc: DeviceDesc, override val localAddress: InetSocketAddress )(implicit system: ActorSystem...
suiryc/nat-traversal
src/main/scala/nat/traversal/upnp/igd/WANDevice.scala
Scala
gpl-3.0
1,015
package inloopio.math.algebra /** * Constructs and returns a new singular value decomposition object; The * decomposed matrices can be retrieved via instance methods of the returned * decomposition object. * @see http://en.wikipedia.org/wiki/Singular_value_decomposition * also @see http://en.wikipedia.org/wiki/Ei...
dcaoyuan/inloopio-libs
inloopio-math/src/main/scala/inloopio/math/algebra/SingularValueDecomposition.scala
Scala
bsd-3-clause
17,819
/* * 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 ...
wangmiao1981/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningAwareFileIndex.scala
Scala
apache-2.0
10,908
package chemistry object Chemistry { var procs = Runtime.getRuntime.availableProcessors }
aturon/ChemistrySet
src/main/scala/core/Chemistry.scala
Scala
bsd-2-clause
93
package org.jetbrains.plugins.scala.lang package refactoring.extractMethod import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScTypeParam import org.jetbrains.plugins.scala.lang.psi.api.toplevel.ScTypeParametersOwner impo...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/refactoring/extractMethod/ScalaExtractMethodSettings.scala
Scala
apache-2.0
1,669
package com.swara.learn.neural import com.swara.learn.{Model, Supervised} /** * An artificial neural network. A neural network is a supervised learning technique inspired by * biological neural networks that are used to approximate functions. Implementation provides a * flexible and extensible way to build arbitra...
ashwin153/swara
swara-learn/src/main/scala/com/swara/learn/neural/Network.scala
Scala
mit
952
/* * Twitter Korean Text - Scala library to process Korean text * * Copyright 2014 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/...
NamHosung/SE
src/test/scala/com/twitter/penguin/korean/v1/tokenizer/KoreanChunkerTest.scala
Scala
apache-2.0
3,171
package orientdb.stream.impl private[stream] object ActorSource { sealed trait State case object Ready extends State case object Completed extends State sealed trait Event final case class Enqueue[A](x: A) extends Event final case class ErrorOccurred(t: Throwable) extends Event case object Complete exte...
KadekM/orientdb-scala-stream
src/main/scala/orientdb/stream/impl/ActorSource.scala
Scala
apache-2.0
411
/* * 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 ...
narahari92/spark
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala
Scala
apache-2.0
45,547
// // Copyright 2016 Commonwealth Bank of Australia // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by ...
CommBank/coppersmith
scalding/src/test/scala/commbank/coppersmith/scalding/TestUtil.scala
Scala
apache-2.0
1,297
package com.outr.arango.api.model import io.circe.Json case class GeneralGraphVertexGetHttpExamplesRc403(error: Boolean, code: Option[Int] = None, errorMessage: Option[String] = None, ...
outr/arangodb-scala
api/src/main/scala/com/outr/arango/api/model/GeneralGraphVertexGetHttpExamplesRc403.scala
Scala
mit
366
package com.sksamuel.elastic4s.handlers.fields import com.sksamuel.elastic4s.fields.VersionField import com.sksamuel.elastic4s.json.{XContentBuilder, XContentFactory} object VersionFieldBuilderFn { def toField(name: String, values: Map[String, Any]): VersionField = VersionField(name) def build(field: VersionFiel...
sksamuel/elastic4s
elastic4s-handlers/src/main/scala/com/sksamuel/elastic4s/handlers/fields/VersionFieldBuilderFn.scala
Scala
apache-2.0
462
package org.openapitools.server.model /** * @param links for example: ''null'' * @param author for example: ''null'' * @param id for example: ''null'' * @param title for example: ''null'' * @param url for example: ''null'' * @param `class` for example: ''null'' */ final case class PipelineBranchesitempull...
cliffano/swaggy-jenkins
clients/scala-akka-http-server/generated/src/main/scala/org/openapitools/server/model/PipelineBranchesitempullRequest.scala
Scala
mit
510
/* * 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/matryoshka
core/shared/src/main/scala/matryoshka/Delay.scala
Scala
apache-2.0
1,323
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/plan/batch/sql/join/LookupJoinTest.scala
Scala
apache-2.0
9,326
/* Copyright 2016 Tunalytics Foundation 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...
tunalytics/loader
transformer/src/main/scala/org/tunalytics/loader/transformer/topology/signals/SignalBolt.scala
Scala
apache-2.0
1,983
package Yosemite.framework.master private[Yosemite] object SlaveState extends Enumeration { type SlaveState = Value val ALIVE, DEAD, DECOMMISSIONED = Value }
zhanghan1990/Yosemite
core/src/main/scala/Yosemite/framework/master/SlaveState.scala
Scala
apache-2.0
164
package cgta.oscala package util import java.io.InputStream ////////////////////////////////////////////////////////////// // Copyright (c) 2015 Ben Jackman // All Rights Reserved // please contact [email protected] // for licensing inquiries // Created by bjackman @ 8/4/15 3:19 PM ////////////////////////////////////...
cgta/open
oscala/jvm/src/main/scala/cgta/oscala/util/DebugInputStream.scala
Scala
mit
676
package com.stefansavev.randomprojections.utils import java.io.File import java.util.Random import scala.reflect.ClassTag case class TimedResult[T](result: T, timeMillisecs: Long) object Utils{ def todo(): Nothing = { throw new RuntimeException("todo") } def internalError(): Nothing = { throw new Run...
codeaudit/random-projections-at-berlinbuzzwords
src/main/scala/com/stefansavev/randomprojections/utils/Utils.scala
Scala
apache-2.0
2,635
object Test { def main(args: Array[String]): Unit = { val f = 0.0 to 1.0 by 1.0 / 3.0 assert(f.size == 4) } }
folone/dotty
tests/run/t4201.scala
Scala
bsd-3-clause
123
package io.vamp.bootstrap import akka.actor.ActorSystem import akka.util.Timeout import com.typesafe.config.ConfigFactory import io.vamp.common.Namespace import io.vamp.http_api.HttpApiBootstrap import scala.concurrent.duration.{ FiniteDuration, MILLISECONDS } trait Vamp extends App { protected implicit val syste...
dragoslav/vamp
bootstrap/src/main/scala/io/vamp/bootstrap/Vamp.scala
Scala
apache-2.0
1,821
trait A[T]: def f: T trait B[T: A]: println(summon[A[T]].f) trait C[T: A] extends B[T] given a1: A[Int] with def f = 1 class D extends C[Int]: given a2: A[Int] with def f = 2 @main def Test = D()
dotty-staging/dotty
tests/run/i11966.scala
Scala
apache-2.0
214
package com.xah.chat.utils import android.content.Context import android.provider.Settings import android.telephony.TelephonyManager /** * Project: xaHChat * Created on 2015-03-02 by * lemonxah - * https://github.com/lemonxah * http://stackoverflow.com/users/2919672/lemon-xah */ object DeviceUtils { def hex2...
lemonxah/xaHChat
src/main/scala/com/xah/chat/utils/DeviceUtils.scala
Scala
mit
1,921
/* * FFTLogicImpl.scala * (FScape) * * Copyright (c) 2001-2022 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Affero General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * [email protected] */ package de.sciss.fscape.stream....
Sciss/FScape-next
core/shared/src/main/scala/de/sciss/fscape/stream/impl/FFTLogicImpl.scala
Scala
agpl-3.0
11,141
package forimpatient.chapter03 import java.awt.datatransfer.{DataFlavor, SystemFlavorMap} import scala.collection.mutable import scala.collection.JavaConversions.asScalaBuffer /** * Created by Iryna Kharaborkina on 7/28/16. * * Solution to the Chapter 03 Exercise 10 'Scala for the Impatient' by Horstmann C.S....
Kiryna/Scala-for-the-Impatient
src/forimpatient/chapter03/Exercise10.scala
Scala
apache-2.0
1,024
def foo[A <% String : Manifest](x: Int = 45) = x foo[Int]()(<caret>) // (x: Int = 45)(implicit ev$1: Int => String, manifest$A: Manifest[Int])
jastice/intellij-scala
scala/scala-impl/testdata/parameterInfo/functionParameterInfo/simple/SyntheticParameter.scala
Scala
apache-2.0
143
package kr.reachlab.scala.data import java.io.{File, PrintWriter} import java.nio.file.{Files, Paths} import scala.io.{Source => sSource} class IrisSource extends Source with Serializable { var dataUrl: String = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" var dataPath: String = "/t...
reachlab-kr-scala/sopark
src/main/scala/kr/reachlab/scala/data/IrisSource.scala
Scala
mit
658
package app import java.awt.Color import javax.swing.JFrame import javax.swing.WindowConstants import data.Cfg import view.Animation object Main extends App { def run() { val anima = Animation(1 / 20d) val frame = new JFrame() frame.getContentPane.add(anima) frame.setBackground(Color.gray) fram...
davips/mucel-scala
src/main/scala/app/Main.scala
Scala
gpl-3.0
539
package org.bitcoins.core.script.crypto import org.bitcoins.core.script.ScriptOperationFactory /** * Created by chris on 3/24/16. */ trait CryptoSignatureEvaluationFactory extends ScriptOperationFactory[CryptoSignatureEvaluation] { /** The current [[CryptoSignatureEvaluation]] operations. */ def operatio...
bitcoin-s/bitcoin-s-core
core/src/main/scala/org/bitcoins/core/script/crypto/CryptoSignatureEvaluationFactory.scala
Scala
mit
516
/** * Copyright 2015, deepsense.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 applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
deeplang/src/main/scala/io/deepsense/deeplang/doperations/spark/wrappers/evaluators/CreateBinaryClassificationEvaluator.scala
Scala
apache-2.0
1,369
package colossus.metrics import org.scalatest._ import MetricAddress.Root import MetricValues._ class MetricValueSpec extends WordSpec with MustMatchers with BeforeAndAfterAll { "WeightedAverageValue" must { "combine two non-zero values" in { val a = WeightedAverageValue(value = 2, weight = 10) v...
zgagnon/colossus
colossus-metrics/src/test/scala/colossus/metrics/MetricValueSpec.scala
Scala
apache-2.0
868
/* * Copyright 2017 TabMo http://tabmo.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 applicable law or ...
tabmo/parquet-avro-shapeless
src/test/scala/io/tabmo/Models.scala
Scala
apache-2.0
1,031
/* * 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/amls-frontend
app/views/ViewHelpers.scala
Scala
apache-2.0
2,995
package pw.ian.sysadmincraft.world object WorldConstants { val START_HEIGHT = 16 val MAX_HEIGHT = 96 - START_HEIGHT val MAX_MEMORY = 2L * 1024 * 1024 // 2GB val PILLAR_WIDTH = 4 val PILLAR_PADDING = 1 val PATHWAY_WIDTH = 4 val PILLAR_DISTANCE = PILLAR_WIDTH + PATHWAY_WIDTH val MOB_HOUSE_HEIGHT ...
simplyianm/sysadmincraft
src/main/scala/pw/ian/sysadmincraft/world/WorldConstants.scala
Scala
isc
354
/* * Copyright 2017 Zhang Di * * 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 ...
statgenetics/seqspark
src/main/scala/org/dizhang/seqspark/numerics/Qelg.scala
Scala
apache-2.0
4,338
/* * Copyright (C) 2020 MapRoulette contributors (see CONTRIBUTORS.md). * Licensed under the Apache License, Version 2.0 (see LICENSE). */ package org.maproulette.provider import play.api.libs.mailer._ import java.io.File import org.apache.commons.mail.EmailAttachment import javax.inject.{Inject, Singleton} import ...
mgcuthbert/maproulette2
app/org/maproulette/provider/EmailProvider.scala
Scala
apache-2.0
4,084
package com.twitter.finagle.http import com.twitter.finagle.{Http => FinagleHttp} import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class Netty3EndToEndTest extends AbstractHttp1EndToEndTest { def implName: String = "netty3" def clientImpl(): FinagleHttp.Client ...
koshelev/finagle
finagle-http/src/test/scala/com/twitter/finagle/http/Netty3EndToEndTest.scala
Scala
apache-2.0
600
/* * Copyright (c) 2006-2007, AIOTrade Computing Co. and Contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyrigh...
wandoulabs/wandou-math
wandou-indicator-basic/src/main/scala/org/aiotrade/lib/indicator/basic/MACDIndicator.scala
Scala
apache-2.0
2,465
/* * 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 ...
aliyun/aliyun-emapreduce-sdk
emr-logservice/src/main/scala/org/apache/spark/streaming/aliyun/logservice/LoghubOffset.scala
Scala
artistic-2.0
1,269
package cromwell.util import akka.actor.{Actor, ActorLogging, ActorRef, ActorSystem, Kill, PoisonPill, Props, SupervisorStrategy} import akka.testkit.TestProbe object AkkaTestUtil { implicit class EnhancedTestProbe(probe: TestProbe) { def props = Props(new Actor with ActorLogging { def receive = { ...
ohsu-comp-bio/cromwell
core/src/test/scala/cromwell/util/AkkaTestUtil.scala
Scala
bsd-3-clause
1,534
/* * Copyright 2001-2008 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...
svn2github/scalatest
src/test/scala/org/scalatest/path/FunSpecSpec.scala
Scala
apache-2.0
36,154