code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* * Copyright (c) 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.raml import com.hypert...
hypertino/hyperfacade
src/test/scala/com/hypertino/facade/raml/RamlConfigurationBuilderCollectionTest.scala
Scala
mpl-2.0
1,109
/* * 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 ...
aokolnychyi/spark
graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
Scala
apache-2.0
2,118
package com.hyenawarrior.OldNorseGrammar.grammar import com.hyenawarrior.OldNorseGrammar.grammar.enums.Case.DATIVE import com.hyenawarrior.OldNorseGrammar.grammar.enums.GNumber.{PLURAL, SINGULAR} import com.hyenawarrior.OldNorseGrammar.grammar.nouns.stemclasses.{StrongStemClassFeminineA2, StrongStemClassMascA, StrongS...
HyenaSoftware/IG-Dictionary
OldNorseGrammarEngine/src/test/scala/com/hyenawarrior/OldNorseGrammar/grammar/NounStemTest.scala
Scala
lgpl-3.0
2,019
/* * Copyright 2017-2020 47 Degrees, LLC. <http://www.47deg.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
47deg/sbt-org-policies
src/main/scala/sbtorgpolicies/settings/enforcement.scala
Scala
apache-2.0
3,166
/* * Copyright 2019 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/emailaddress
src/test/scala/uk/gov/hmrc/emailaddress/EmailAddressGenerators.scala
Scala
apache-2.0
1,548
/** * 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...
gf53520/kafka
core/src/test/scala/unit/kafka/server/BrokerEpochIntegrationTest.scala
Scala
apache-2.0
10,667
/* * Copyright 2014-2021 Netflix, 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...
brharrington/atlas
atlas-core/src/test/scala/com/netflix/atlas/core/stacklang/StandardExamplesSuite.scala
Scala
apache-2.0
762
package frdomain.ch3 package algebra.interpreter import java.util.{ Date, Calendar } import util.{ Try, Success, Failure } import common._ import algebra.AccountService object AccountService extends AccountService[Account, Amount, Balance] { def open(no: String, name: String, openingDate: Option[Date]): Try[Accoun...
debasishg/frdomain
src/main/scala/frdomain/ch3/algebra/interpreter/AccountService.scala
Scala
apache-2.0
1,349
/** * Copyright 2011-2013 StackMob * * 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...
matthewfarwell/stackmob-customcode-dev
src/main/scala/com/stackmob/customcode/dev/server/sdk/logger/LoggerServiceImpl.scala
Scala
apache-2.0
1,421
/* * Copyright (c) 2016, Innoave.com * All rights reserved. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN...
innoave/soda
l10n/src/main/scala/com/innoave/soda/l10n/resource/Utf8PropertiesResourceBundle.scala
Scala
apache-2.0
2,577
package io.getquill.codegen import io.getquill.codegen.integration.CodegenTestCases._ import io.getquill.codegen.util.ConfigPrefix.TestSqlServerDB import io.getquill.codegen.util._ import org.scalatest.matchers.should.Matchers._ class SqlServerCodegenTestCases extends CodegenSpec { import io.getquill.codegen.genera...
getquill/quill
quill-codegen-tests/src/test/scala/io/getquill/codegen/SqlServerCodegenTestCases.scala
Scala
apache-2.0
3,931
/* * Copyright 2017-2022 John Snow Labs * * 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...
JohnSnowLabs/spark-nlp
src/test/scala/com/johnsnowlabs/nlp/annotators/DateMatcherMultiLanguageTestSpec.scala
Scala
apache-2.0
51,228
package mimir.algebra; import java.sql._ import mimir.ctables.CTables class TypeException(found: Type.T, expected: Type.T, context:String) extends Exception( "Type Mismatch ["+context+ "]: found "+found.toString+ ", but expected "+expected.toString ); class RAException(msg: Stri...
Legacy25/mimir
mimircore/src/main/scala/mimir/algebra/Expression.scala
Scala
apache-2.0
12,943
import javax.crypto.Cipher import javax.crypto.SecretKey import javax.crypto.spec.SecretKeySpec import javax.crypto.spec.IvParameterSpec object AesEncryptionExample extends App { val password: Array[Byte] = "0000000000000000".getBytes require(password.length == 16) val ivBytes: Array[Byte] = "0000000000000000"....
ramn/gists-public
src/AesEncryption.scala
Scala
apache-2.0
858
package gitbucket.core.service import fr.brouillard.oss.security.xhub.XHub import fr.brouillard.oss.security.xhub.XHub.{XHubConverter, XHubDigest} import gitbucket.core.api._ import gitbucket.core.model.{ Account, CommitComment, Issue, IssueComment, Label, PullRequest, WebHook, RepositoryWebHook, Rep...
McFoggy/gitbucket
src/main/scala/gitbucket/core/service/WebHookService.scala
Scala
apache-2.0
28,032
/* * 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 ...
dszeto/incubator-predictionio
examples/scala-parallel-ecommercerecommendation/train-with-rate-event/src/main/scala/Serving.scala
Scala
apache-2.0
1,114
package com.citechnical.model.business class Division { }
dlwhitehurst/accounting-model
src/main/java/com/citechnical/model/business/Division.scala
Scala
apache-2.0
59
package models import play.api.test._ import play.api.test.Helpers._ import org.specs2.mutable._ import helpers.{InjectorSupport, TokenGenerator} import play.api.Application import play.api.db.Database import play.api.inject.guice.GuiceApplicationBuilder class FirstSetupSpec extends Specification with InjectorSupport...
ruimo/store2
test/models/FirstSetupSpec.scala
Scala
apache-2.0
936
/* * 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 ...
clarkyzl/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/stream/sql/DeduplicateTest.scala
Scala
apache-2.0
7,634
// Project: Default (Template) Project // Module: rxjs/operator/* // Description: Façades for the RxJS5 oparators // Copyright (c) 2016. Distributed under the MIT License (see included LICENSE file). package rxjs import scala.scalajs.js import scala.scalajs.js.annotation.{JSImport, JSName} object Operators ...
jokade/scalajs-rxjs
src/main/scala/rxjs/Operators.scala
Scala
mit
4,535
package leo.datastructures.blackboard import leo.Configuration import leo.agents.{Agent, Task} import leo.datastructures.blackboard.impl.AuctionBlackboard import leo.datastructures.blackboard.scheduler.{Scheduler, SchedulerImpl} xxxxxxxxxxx object Blackboard { def newBlackboard : (Blackboard, Scheduler) = { val ...
lex-lex/Leo-III
oldsrc/main/scala/leo/datastructures/blackboard/Blackboard.scala
Scala
bsd-3-clause
7,165
package org.deepdive.test.unit import akka.actor._ import akka.testkit._ import org.deepdive.profiling._ import org.scalatest._ class ProfilerSpec(_system: ActorSystem) extends TestKit(_system) with FunSpecLike with ImplicitSender { def this() = this(ActorSystem("ProfilerSpec")) describe("Assembling reports") {...
feiranwang/deepdive
src/test/scala/unit/profiling/ProfilerSpec.scala
Scala
apache-2.0
558
package im.tox.antox.wrapper import java.util import java.util.{Collections, Locale} import im.tox.antox.utils.{IDUtils, Hex} //remove if not needed import scala.collection.JavaConversions._ class GroupList { private var groups: util.List[Group] = new util.ArrayList[Group]() def this(groups: util.List[Group])...
afkgeek/Antox
app/src/main/scala/im/tox/antox/wrapper/GroupList.scala
Scala
gpl-3.0
2,610
package au.id.cxd.math.app.workflow import au.id.cxd.math.app.model.Project /** * Created by cd on 22/1/17. */ class ProjectWorkflow[T <: Project](override val data:T) extends Workflow[T](data) { } object ProjectWorkflow { def id[T<: Project](data:T) = new ProjectWorkflow(data) def apply[T<: Project](data...
cxd/scala-au.id.cxd.math
app/src/main/scala/au/id/cxd/math/app/workflow/ProjectWorkflow.scala
Scala
mit
407
import imperium.engine.core.position.Area import org.newdawn.slick.geom.Point import org.scalatest.{Matchers, FlatSpec} /* * Created by DelavaR on 07.12.2014. */ class AreaSpec extends FlatSpec with Matchers { it should "not accept invalid coordinates/size" in { noException shouldBe thrownBy { Area(new ...
d3lavar/Imperium
src/test/scala/AreaSpec.scala
Scala
mit
1,521
/* * 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 ...
chuckchen/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/orc/OrcPartitionReaderFactory.scala
Scala
apache-2.0
7,615
package dao.util import java.io.File import com.mongodb._ import com.mongodb.casbah.commons.MongoDBObject import com.mongodb.casbah.{MongoCollection, MongoConnection, MongoDB} import com.typesafe.config.{Config, ConfigFactory} import play.api.Logger import scala.collection.JavaConverters._ case class Index(field: S...
grahamar/Giles
app/dao/util/MongoUtil.scala
Scala
apache-2.0
3,146
/* * 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...
ajantis/zipkin
zipkin-query-service/src/main/scala/com/twitter/zipkin/query/Main.scala
Scala
apache-2.0
1,432
package com.obecto.gattakka.genetics import com.obecto.gattakka.genetics.descriptors.{GeneDescriptor, Gene} case class Chromosome(byteArray: Array[Byte], descriptor: GeneDescriptor) { def value: Any = descriptor.apply(byteArray).value def toGene: Gene = descriptor.apply(byteArray) def diversity(chromosome: Ch...
obecto/gattakka
src/main/scala/com/obecto/gattakka/genetics/Chromosome.scala
Scala
mit
1,148
/* * #%L * WSB Webapp * %% * Copyright (C) 2013 - 2017 OpenDesignFlow.org * %% * 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 ...
richnou/wsb-webapp
src/main/scala/com/idyria/osi/wsb/webapp/http/connector/HTTPConnector.scala
Scala
agpl-3.0
16,740
package fr.iscpif.doors.client import scaladget.api.{BootstrapTags => bs} import scaladget.stylesheet.all._ import fr.iscpif.doors.client.stylesheet._ import scaladget.stylesheet.{all => sheet} import scalatags.JsDom.tags import scalatags.JsDom.all._ import Client.panelInBody import org.scalajs.dom.html.Element /* ...
ISCPIF/doors
client/src/main/scala/fr/iscpif/doors/client/MessageDisplay.scala
Scala
agpl-3.0
1,617
/** * Copyright 2015 Gianluca Amato <gamato@unich.it> * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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 o...
francescaScozzari/Jandom
core/src/main/scala/it/unich/jandom/objectmodels/ObjectModelHelper.scala
Scala
lgpl-3.0
6,436
/* * Copyright 2015 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...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/calculations/TotalDeductionsCalculator.scala
Scala
apache-2.0
1,086
package models.qlkh import models.core.{AbstractTable, WithId} import play.api.db.slick.Config.driver.simple._ import play.api.db.slick.DB import play.api.Play.current /** * The Class Station. * * @author Nguyen Duc Dung * @since 4/22/14 9:00 AM * */ case class Station( id: Option[Long] = No...
SunriseSoftVN/sunerp
app/models/qlkh/Station.scala
Scala
apache-2.0
811
package java.lang abstract class Enum[E <: Enum[E]] protected (_name: String, _ordinal: Int) extends Comparable[E] with java.io.Serializable { final def name(): String = _name final def ordinal(): Int = _ordinal override def toString(): String = _name @inline override final def equals(that: Any): sca...
mdedetrich/scala-js
javalanglib/src/main/scala/java/lang/Enum.scala
Scala
bsd-3-clause
813
/* * 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/main/scala/org/apache/flink/table/plan/nodes/logical/FlinkLogicalWindowAggregate.scala
Scala
apache-2.0
4,214
/* * Copyright 2015 ligaDATA * * 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 ...
traytonwhite/Kamanja
trunk/KamanjaManager/src/main/scala/com/ligadata/KamanjaManager/SimpleStats.scala
Scala
apache-2.0
1,611
package com.bob.scala.webapi.sptutorial import javax.annotation.{PostConstruct, PreDestroy} import org.springframework.beans.factory.annotation.Value import org.springframework.stereotype.Component import scala.beans.BeanProperty /** * Created by bob on 16/6/14. */ @Component class HelloWorld { @PostConstruct ...
sevenz/springboot-scala-withswagger
webapi/src/main/scala/com/bob/scala/webapi/sptutorial/HelloWorld.scala
Scala
apache-2.0
836
package de.tototec.sbuild.eclipse.plugin.container import org.eclipse.core.runtime.IProgressMonitor import org.eclipse.core.runtime.Status import org.eclipse.jdt.core.JavaModelException import de.tototec.sbuild.eclipse.plugin.Logger.error import de.tototec.sbuild.eclipse.plugin.SimpleJob class RefreshContainerJob(co...
SBuild-org/sbuild-eclipse-plugin
de.tototec.sbuild.eclipse.plugin/src/main/scala/de/tototec/sbuild/eclipse/plugin/container/RefreshContainerJob.scala
Scala
apache-2.0
749
/******************************************************************************* * Copyright (c) 2019. Carl Minden * * 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 ...
carlminden/anathema-roguelike
src/com/anathema_roguelike/main/display/Outline.scala
Scala
gpl-3.0
2,928
/* * 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
server/jvm/src/main/scala/org/http4s/server/SecureSession.scala
Scala
apache-2.0
1,072
/* * Copyright 2012 Eike Kettner * * 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...
eikek/publet
gitr-web/src/main/scala/org/eknet/publet/gitr/GitRequestUtils.scala
Scala
apache-2.0
1,758
package com.clemble.query.parser import com.clemble.query.model.{Empty, Expression, Query} /** * Created by mavarazy on 9/10/16. */ case class QueryParser( expressionParser: List[PartialFunction[(String, Seq[String]), Expression]], includeProjection: IncludeProjecti...
clemble/scala-query-dsl
src/main/scala/com/clemble/query/parser/QueryParser.scala
Scala
apache-2.0
1,795
package poker.core.handanalyzer import poker.core.{Hand, HandStatus, HandType, Kickers} final class FullHouseAnalyzer extends HandAnalyzer { /** Detect any three cards of the same rank * together with any two cards of the same rank. * * Record the fifth card as the kicker. */ override def doAnalyz...
kyuksel/poker
src/main/scala/poker/core/handanalyzer/FullHouseAnalyzer.scala
Scala
mit
684
/* * 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...
lresende/incubator-toree
kernel-api/src/test/scala/org/apache/toree/magic/MagicManagerSpec.scala
Scala
apache-2.0
10,894
/* * Copyright 2017-2018 47 Degrees, LLC. <http://www.47deg.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
frees-io/freestyle
modules/examples/todolist-lib/src/main/scala/todo/persistence/runtime/queries/AppQueries.scala
Scala
apache-2.0
1,265
package fr.inria.spirals.sigma.ttc14.fixml.xmlmm.impl import fr.inria.spirals.sigma.ttc14.fixml.xmlmm.support.XMLMM import fr.inria.spirals.sigma.ttc14.fixml.xmlmm.XMLAttribute class XMLAttributeImplDelegate extends XMLAttributeImpl with XMLAttributeDelegate trait XMLAttributeDelegate extends XMLAttribute with XMLMM...
fikovnik/ttc14-fixml-sigma
ttc14-fixml-extension-2/src/fr/inria/spirals/sigma/ttc14/fixml/xmlmm/impl/XMLAttributeImplDelegate.scala
Scala
epl-1.0
383
package com.temportalist.morphadditions.server import com.temportalist.morphadditions.common.ProxyCommon import net.minecraft.entity.player.EntityPlayer import net.minecraft.tileentity.TileEntity import net.minecraft.world.World /** * * * @author TheTemportalist */ class ProxyServer extends ProxyCommon() { over...
TheTemportalist/MorphAdditions
src/main/scala/com/temportalist/morphadditions/server/ProxyServer.scala
Scala
apache-2.0
460
package eventstore import akka.testkit.TestProbe import ExpectedVersion._ class WriteEventsITest extends TestConnection { "append to stream" should { "not fail for zero events" in new WriteEventsScope { writeEventsCompleted(Nil, NoStream) } "create stream with NoStream exp ver on first write if d...
pawelkaczor/EventStore.JVM
src/test/scala/eventstore/WriteEventsITest.scala
Scala
bsd-3-clause
3,940
package net.rfc1149.inf355 import scala.language.higherKinds trait OptionSig { type Option[+_] type Some[+A] <: Option[A] type None <: Option[Nothing] } trait Ops[Sig <: OptionSig] { def some[A](x: A): Sig#Some[A] def none: Sig#None def fold[A, B](opt: Sig#Option[A])(ifNone: => B, ifSome: A => B): B } t...
betehess/inf355
src/main/scala/inf355.scala
Scala
apache-2.0
2,464
package component import core._ import akka.actor.{Actor, Props} import java.util.UUID import org.joda.time.DateTime case class GetEntity[T](ids: String*) case class ListWithOffset(t: Any, params: Seq[Any], offset: Int, limit: Int) case class EntityList[T](slice: Iterable[T]) case class AddEntity[T](blog: T, ids: St...
enpassant/james
src/main/scala/component/Model.scala
Scala
apache-2.0
2,717
package controllers import com.mohiva.play.silhouette.api.exceptions.ProviderException import com.mohiva.play.silhouette.api.util.Credentials import com.mohiva.play.silhouette.impl.exceptions.IdentityNotFoundException import com.mohiva.play.silhouette.impl.providers._ import forms.{ SignInForm, TotpForm } import javax...
mohiva/play-silhouette-seed
app/controllers/SignInController.scala
Scala
apache-2.0
2,275
package info.lindblad.prometheus.cloudwatch.proxy.util import org.slf4j.LoggerFactory trait Logging { val logger = LoggerFactory.getLogger(this.getClass) }
nlindblad/prometheus-cloudwatch-proxy
src/main/scala/info/lindblad/prometheus/cloudwatch/proxy/util/Logging.scala
Scala
apache-2.0
159
package scala.collection package immutable import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.Test import org.junit.Assert._ import scala.annotation.unused import scala.collection.mutable.{Builder, ListBuffer} import scala.tools.testkit.AssertUtil import scala.util.Try @RunWith(classOf[...
lrytz/scala
test/junit/scala/collection/immutable/LazyListTest.scala
Scala
apache-2.0
12,237
/** * Copyright (C) 2010-2011 LShift Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
aprescott/diffa
kernel/src/main/scala/net/lshift/diffa/kernel/participants/StringPrefixCategoryFunction.scala
Scala
apache-2.0
1,941
/* * Copyright 2015 ligaDATA * * 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 ...
traytonwhite/Kamanja
trunk/Pmml/PmmlUdfs/src/main/scala/com/ligadata/pmml/udfs/PmmlUdfs.scala
Scala
apache-2.0
304,736
package org.scalatra package servlet import org.scalatra.test.scalatest.ScalatraFunSuite class ServletContextAttributesTest extends ScalatraFunSuite with AttributesTest { addServlet(new AttributesServlet { def attributesMap = servletContext }, "/*") }
lightvector/scalatra
core/src/test/scala/org/scalatra/servlet/ServletContextAttributesTest.scala
Scala
bsd-2-clause
263
/*********************************************************************** * 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-index-api/src/main/scala/org/locationtech/geomesa/index/api/GeoMesaFeatureIndex.scala
Scala
apache-2.0
9,907
package fuel.moves import fuel.util.TRandom import scala.collection.immutable.BitSet /** * Bitstring domain implemented as BitSets * */ class BitSetMoves(numVars: Int)(rng: TRandom) extends AbstractVectorMoves[BitSet] { assert(numVars > 0) override def newSolution = BitSet.empty ++ (for (i <- 0.u...
iwob/fuel
src/main/scala/fuel/moves/BitSetMoves.scala
Scala
mit
1,316
/* * Copyright (c) 2012-2019 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at * http://www.ap...
RetentionGrid/snowplow
3-enrich/spark-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich.spark/EnrichJobConfig.scala
Scala
apache-2.0
6,008
package com.tothferenc.templateFX.base.attribute abstract class SettableFeature[-Holder, -AttrType] extends RemovableFeature[Holder] { def set(target: Holder, value: AttrType): Unit }
tferi/templateFX
base/src/main/scala/com/tothferenc/templateFX/base/attribute/SettableFeature.scala
Scala
gpl-3.0
187
/* Copyright 2017 EPFL, Lausanne */ package inox package parsing trait ExpressionExtractors { self: Extractors => trait ExpressionExtractor { self0: Extractor => import ExprIR._ private type MatchObligation = Option[Match] protected def toIdObl(pair: (inox.Identifier, Identifier)): MatchObligation =...
romac/inox
src/main/scala/inox/parsing/ExpressionExtractor.scala
Scala
apache-2.0
23,746
/** * Copyright (C) 2012-2013 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 vers...
debiki/debiki-server-old
app/controllers/ViewPageController.scala
Scala
agpl-3.0
2,715
/** * 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...
Esquive/kafka
core/src/main/scala/kafka/log/LogSegment.scala
Scala
apache-2.0
28,823
package controllers import java.sql.Timestamp import java.util.Date import api.API import constants.Constants import http.WS import models.{User, DBUtils} import play.api.data.Form import play.api.data.Forms._ import play.api.libs.json._ import play.api.mvc.{Action, Controller} import scala.concurrent.Future import ...
pamu/play-freebusy
app/controllers/Application.scala
Scala
apache-2.0
6,283
/* * 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 ...
manuzhang/incubator-gearpump
integrationtest/core/src/it/scala/org/apache/gearpump/integrationtest/checklist/MessageDeliverySpec.scala
Scala
apache-2.0
5,040
package com.yetu.controlcenter.routes import com.yetu.controlcenter.base.BaseRoutesSpec import play.api.test.FakeRequest import play.api.test.Helpers._ class HealthCheckSpec extends BaseRoutesSpec { val healthUrl = "/health" "health controller" must { "return name and organization " in { val Some(res...
yetu/controlcenter
test/com/yetu/controlcenter/routes/HealthCheckSpec.scala
Scala
mit
577
package name.orhideous.twicher.error import cats.data.Kleisli import cats.data.OptionT import cats.ApplicativeError import org.http4s.HttpRoutes import org.http4s.Request import org.http4s.Response import cats.implicits._ trait RoutesHttpErrorWrapper[F[_], E <: Throwable] { protected type Handler = E => F[Response[...
Orhideous/twicher
src/main/scala/name/orhideous/twicher/error/RoutesHttpErrorWrapper.scala
Scala
gpl-3.0
616
/* * 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 ...
shuangshuangwang/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercionSuite.scala
Scala
apache-2.0
75,478
/* * Copyright 2015 bigobject.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 to...
macrodatalab/spark-bo
spark-1.5.1/bigobject/src/main/scala/com/bigobject/spark/BORelation.scala
Scala
apache-2.0
6,150
/* * Copyright (C) 2016 Christopher Batey and Dogan Narinc * * 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...
mikefero/cpp-driver
gtests/src/integration/scassandra/server/server/src/main/scala/org/scassandra/server/actors/ExecuteHandler.scala
Scala
apache-2.0
3,845
package bootstrap.liftweb import net.liftweb._ import util._ import Helpers._ import common._ import http._ import js.jquery.JQueryArtifacts import net.liftmodules.JQueryModule import net.liftmodules.validate.Validate import net.liftmodules.validate.options.Bs3Options import net.liftweb.sitemap.{ SiteMap, Menu } /** ...
limansky/validation-demo
src/main/scala/bootstrap/liftweb/Boot.scala
Scala
apache-2.0
1,508
package com.sksamuel.elastic4s.requests.searches case class IncludeExclude(include: Seq[String], exclude: Seq[String]) case class IncludePartition(partition: Int, numPartitions: Int)
sksamuel/elastic4s
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/searches/IncludeExclude.scala
Scala
apache-2.0
185
/* * 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 ...
hequn8128/flink
flink-mesos/src/test/scala/org/apache/flink/mesos/scheduler/TasksTest.scala
Scala
apache-2.0
7,205
package gapt.expr.formula.constants import gapt.expr.ty.To object OrC extends MonomorphicLogicalC( "∨", To ->: To ->: To )
gapt/gapt
core/src/main/scala/gapt/expr/formula/constants/OrC.scala
Scala
gpl-3.0
127
package cz.kamenitxan.jakon.core.deploy import cz.kamenitxan.jakon.core.configuration.Settings import cz.kamenitxan.jakon.core.deploy.entity.Server import cz.kamenitxan.jakon.core.template.utils.TemplateUtils class LocalDeploy extends IDeploy { override def deploy(server: Server): Unit = { TemplateUtils.clean(serv...
kamenitxan/Jakon
modules/backend/src/main/scala/cz/kamenitxan/jakon/core/deploy/LocalDeploy.scala
Scala
bsd-3-clause
391
package bowhaus import java.net.URI import java.util.Date import com.twitter.bijection._ import com.twitter.util.{ Await, Future } import com.twitter.storehaus._ import com.twitter.storehaus.redis._ case class Package(name: String, url: String) object Packages { def apply(stores: PackageStores, storePrefix: Strin...
softprops/bowhaus
src/main/scala/packages.scala
Scala
mit
2,202
package com.tribbloids.spookystuff.utils.io.lock import com.tribbloids.spookystuff.utils.BypassingRule import com.tribbloids.spookystuff.utils.io.{URIExecution, URIResolver} import com.tribbloids.spookystuff.utils.lifespan.{Lifespan, LocalCleanable} import java.io.FileNotFoundException import java.nio.file.NoSuchFile...
tribbloid/spookystuff
mldsl/src/main/scala/com/tribbloids/spookystuff/utils/io/lock/Lock.scala
Scala
apache-2.0
2,335
package cats.examples.typeclasses /** * Type classes are a powerful tool used in functional programming to enable * ad-hoc polymorphism, more commonly known as overloading. Where many * object-oriented languages leverage subtyping for polymorphic code, * functional programming tends towards a combination of pa...
carwynellis/cats-examples
src/main/scala/cats/examples/typeclasses/TypeClassExample.scala
Scala
mit
8,088
package org.typedsolutions.aws.kinesis import akka.actor.Actor import akka.actor.ActorRef import akka.actor.Terminated import akka.event.LoggingReceive import org.typedsolutions.aws.kinesis.model._ import akka.pattern.pipe import scala.concurrent.Future class AmazonKinesisActor(owner: ActorRef, wrapper: AmazonKinesi...
mattroberts297/akka-kinesis
src/main/scala/org/typedsolutions/aws/kinesis/AmazonKinesisActor.scala
Scala
mit
1,839
package org.bitcoins.core.protocol.blockchain import org.bitcoins.core.crypto.DoubleSha256Digest import org.bitcoins.core.gen.MerkleGenerator import org.scalacheck.{ Prop, Properties } /** * Created by chris on 8/12/16. */ class MerkleBlockSpec extends Properties("MerkleBlockSpec") { //TODO: This is *extremely* ...
Christewart/bitcoin-s-core
src/test/scala/org/bitcoins/core/protocol/blockchain/MerkleBlockSpec.scala
Scala
mit
1,054
package org.jetbrains.plugins.scala.annotator.createFromUsage import com.intellij.codeInsight.template.{TemplateBuilderImpl, TemplateManager} import com.intellij.codeInsight.{CodeInsightUtilCore, FileModificationService} import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.i...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/annotator/createFromUsage/CreateEntityQuickFix.scala
Scala
apache-2.0
9,817
package howitworks.scalaz class EqualDemo extends wp.Spec { //about scalaz.Equal //inside wp.Spec `===` is taken from org.scalactic.Equalizer.=== instead of scalaz.syntax.EqualOps //here inside spec ≟ and ≠ aliases can be used "simple types" in { //import guide: import scalaz.syntax.all._ //o...
jawp/wicked-playground
modules/server/src/test/scala/howitworks/scalaz/EqualDemo.scala
Scala
mit
1,573
package ch.ninecode.cim /** * Logging level enumeration. */ object LogLevels extends Enumeration { type LogLevels = Value val ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN = Value def toLog4j (level: Value): org.apache.log4j.Level = level match { case ALL => org.apache.log...
derrickoswald/CIMScala
CIMDifference/src/main/scala/ch/ninecode/cim/CIMDifferenceOptions.scala
Scala
mit
2,285
import java.util.regex._ import scala.reflect.internal.SymbolTable import scala.reflect.macros.blackbox._ import language.experimental.macros import java.lang.invoke._ object Macro { def classNameOf(expr: Class[_]): String = macro Impl.classNameOf } class Impl(val c: Context) { def classNameOf(expr: c.Tree): c.T...
scala/scala
test/files/run/indy-via-macro-class-constant-bsa/macro_1.scala
Scala
apache-2.0
1,130
class AbsCell { type T = Node class Node } object Test { def test: Unit = { val cell = new AbsCell new cell.T } } class AbsCell2 { type T = Node val value: T = value def set(x: T): Unit = {} class Node } object init { def main = { val cell = new AbsCell2 { val init = new Node } cell ...
som-snytt/dotty
tests/pos/i1865.scala
Scala
apache-2.0
343
package skate import java.io.File import java.util.concurrent.ConcurrentHashMap import javax.servlet.ServletContext import javax.servlet.http.HttpServlet import javax.servlet.http.HttpServletRequest import javax.servlet.http.HttpServletResponse import scala.collection.JavaConversions._ import scala.collection.mutable ...
sean8223/skate
src/main/scala/skate/ServletSupport.scala
Scala
bsd-2-clause
2,940
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package imports import com.intellij.lang.ASTNode import com.intellij.psi.stubs.StubElement import com.intellij.psi.tree.IElementType import com.intellij.psi.{PsiElement, PsiElementVisitor} import com.intellij.util.IncorrectOpera...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/imports/ScImportExprImpl.scala
Scala
apache-2.0
4,692
/* * 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...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/SeveredStackTracesFailureSpec.scala
Scala
apache-2.0
3,688
package ca.friendlyguacamole.server.providers import ca.friendlyguacamole.server.models.{PollModel, PollRequest} import scalaz.concurrent.Task /** * Created by panagiotis on 04/06/17. */ trait PollsProvider { def getPolls(userId: Option[Int]): Task[Seq[PollModel]] def findByTag(tag: String, userId: Option[In...
proubatsis/friendly-guacamole
server/friendly-guacamole-server/src/main/scala/ca/friendlyguacamole/server/providers/PollsProvider.scala
Scala
mit
686
/** * Copyright 2013 Gianluca Amato <gamato@unich.it> * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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 o...
rubino22/JDBeta
core/src/test/ppl/it/unich/jandom/targets/SootFrameNumericalDomainSuite.scala
Scala
lgpl-3.0
3,746
package hr.fer.ztel.thesis.measure /** * Cosine similarity measure [0, 1], * in case of (0, 0, 0, 1) it returns 0 because Double.NaN during comparing is the biggest */ class CosineSimilarityMeasure extends ItemPairSimilarityMeasure { def compute(a: Int, b: Int, c: Int, d: Int): Double = { if (a == 0 && b ...
fpopic/master_thesis
src/main/scala/hr/fer/ztel/thesis/measure/CosineSimilarityMeasure.scala
Scala
mit
421
package views import db.scalikejdbc.{Round, User} import org.intracer.wmua._ import play.api.test.{Helpers, PlaySpecification} import play.twirl.api.Html class LargeViewControllerSpec extends PlaySpecification { import play.api.i18n._ implicit val lang = Lang("en-US") "large view" should { "have correct r...
intracer/wlxjury
test/views/LargeViewControllerSpec.scala
Scala
apache-2.0
1,213
/*********************************************************************** * 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-fs/geomesa-fs-tools/src/main/scala/org/locationtech/geomesa/fs/tools/ingest/ManageMetadataCommand.scala
Scala
apache-2.0
6,462
package scala.slick.driver import scala.language.{existentials, implicitConversions, higherKinds} import scala.collection.mutable.HashMap import scala.slick.SlickException import scala.slick.ast._ import scala.slick.ast.Util.nodeToNodeOps import scala.slick.ast.TypeUtil._ import scala.slick.ast.ExtraUtil._ import scal...
nuodb/slick
src/main/scala/scala/slick/driver/JdbcStatementBuilderComponent.scala
Scala
bsd-2-clause
34,689
/* * Copyright 2013-2016 the original author or 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 ap...
amuramatsu/Laika
core/src/test/scala/laika/parse/helper/DefaultParserHelpers.scala
Scala
apache-2.0
936
package keystoneml.workflow import org.apache.spark.rdd.RDD /** * A [[TransformerOperator]] that gathers multiple datasets of {@tparam T} into a dataset of Seq[T] * (Or individual datums of T into a single Seq[T]) */ private[workflow] case class GatherTransformerOperator[T]() extends TransformerOperator { overri...
amplab/keystone
src/main/scala/keystoneml/workflow/GatherTransformerOperator.scala
Scala
apache-2.0
668
/* sbt -- Simple Build Tool * Copyright 2010 Mark Harrah */ package sbt.internal.util import collection.mutable trait RMap[K[_], V[_]] { def apply[T](k: K[T]): V[T] def get[T](k: K[T]): Option[V[T]] def contains[T](k: K[T]): Boolean def toSeq: Seq[(K[_], V[_])] def toTypedSeq: Seq[TPair[_]] = toSeq.map {...
Duhemm/sbt
internal/util-collection/src/main/scala/sbt/internal/util/PMap.scala
Scala
bsd-3-clause
3,941
/* * 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 ...
spotify/scio
scio-google-cloud-platform/src/it/scala/com/spotify/scio/bigquery/BigQueryPartitionUtilIT.scala
Scala
apache-2.0
4,655
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.api.libs.functional import scala.language.higherKinds trait Alternative[M[_]] { def app: Applicative[M] def |[A, B >: A](alt1: M[A], alt2: M[B]): M[B] def empty: M[Nothing] //def some[A](m: M[A]): M[List[A]] //def many[A...
jyotikamboj/container
pf-framework/src/play-functional/src/main/scala/play/api/libs/functional/Alternative.scala
Scala
mit
521