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
/* * The MIT License (MIT) * * Copyright (c) 2018 Lars Kroll <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitatio...
Bathtor/common-utils
data-tools/shared/src/test/scala/com/lkroll/common/data/WordMatchTests.scala
Scala
mit
2,359
/** * Copyright (C) 2013 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
ajw625/orbeon-forms
src/main/scala/org/orbeon/oxf/fr/FormRunnerBaseOps.scala
Scala
lgpl-2.1
10,653
package scala.slick.compiler import scala.slick.ast._ import Util._ import TypeUtil._ /** Infer types and compute missing structural views for all nominal table types. */ class InferTypes extends Phase { val name = "inferTypes" def apply(state: CompilerState) = state.map { tree => val tree2 = tree.nodeWithCo...
retronym/slick
src/main/scala/scala/slick/compiler/InferTypes.scala
Scala
bsd-2-clause
972
package models.domain import scala.slick.driver.MySQLDriver.simple._ import play.api.libs.json.Json import scala.slick.lifted.ForeignKeyAction._ case class Recipient( card_id: Int, recipient: String) object Recipient{ implicit val format = Json.format[Recipient] } class Recipients extends Ta...
PureHacks/KudosBoard
app/models/domain/Recipient.scala
Scala
mit
713
package com.shrbank.bigdata.storm import akka.actor.{Actor, ActorLogging} /** * Created by ShaoJie.Wu on 2017/4/11 11:05. * 功能: * * 备注: */ trait IMessageSender{ def send(input:SpoutInputMsg):Unit } /** * 消息转发的actor * 该actor用来接收client发送的消息,并调用IMessageSender.send将该消息发送出去 */ private[storm] class Messag...
shrbank/SyncSpout
core/src/main/scala/com/shrbank/bigdata/storm/MessageActor.scala
Scala
gpl-2.0
904
/* * 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/controllers/declaration/RenewRegistrationControllerSpec.scala
Scala
apache-2.0
5,738
/* * Copyright 2013 Stephane Godbillon (@sgodbillon) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
cchantep/ReactiveMongo
bson/src/main/scala-2.13+/types.scala
Scala
apache-2.0
39,305
/* // Copyright 2012/2013 de Gustavo Steinberg, Flavio Soares, Pierre Andrews, Gustavo Salazar Torres, Thomaz Abramo // // Este arquivo é parte do programa Vigia Político. O projeto Vigia // Político é um software livre; você pode redistribuí-lo e/ou // modificá-lo dentro dos termos da GNU Affero General Public License...
cidadao-automatico/cidadao-server
app/models/UserLawRegion.scala
Scala
agpl-3.0
2,934
package com.oni.udash.views.components import com.oni.udash.config.ExternalUrls import com.oni.udash.styles.{DemoStyles, GlobalStyles} import com.oni.udash.styles.partials.FooterStyles import org.scalajs.dom.raw.Element import scalatags.JsDom.all._ import scalacss.ScalatagsCss._ object Footer { private lazy val tem...
ObjectNirvana/oni-web
frontend/src/main/scala/com/oni/udash/views/components/Footer.scala
Scala
epl-1.0
1,290
package com.datastax.spark.connector.cql import org.apache.spark.SparkConf import org.scalatest.{FlatSpec, Matchers} import com.datastax.spark.connector.testkit._ import com.datastax.spark.connector.embedded._ case class KeyValue(key: Int, group: Long, value: String) case class KeyValueWithConversion(key: String, gro...
brkyvz/spark-cassandra-connector
spark-cassandra-connector/src/it/scala/com/datastax/spark/connector/cql/CassandraConnectorSpec.scala
Scala
apache-2.0
4,949
/*********************************************************************** * Copyright (c) 2013-2022 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...
locationtech/geomesa
geomesa-utils/src/test/scala/org/locationtech/geomesa/utils/text/StringSerializationTest.scala
Scala
apache-2.0
4,439
package com.sksamuel.elastic4s.http.search import cats.syntax.either._ import com.sksamuel.elastic4s.get.HitField import com.sksamuel.elastic4s.http.{Shards, SourceAsContentBuilder} import com.sksamuel.elastic4s.{Hit, HitReader} case class SearchHit(private val _id: String, private val _index: St...
tyth/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/search/responses.scala
Scala
apache-2.0
6,686
/* * 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...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/matchers/BeMatcherSpec.scala
Scala
apache-2.0
1,134
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.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...
Wogan/monix
monix-execution/jvm/src/main/scala/monix/execution/atomic/AtomicDouble.scala
Scala
apache-2.0
6,856
package com.criteo.dev.cluster.utils.ddl import scala.util.parsing.input.Position object DDLParser extends BaseParser with CreateTableParser { /** * Parse a DDL statement * * @param in input string * @return Either a tuple of (error message, error position), or parsed statement */ def apply(i...
criteo/berilia
src/main/scala/com/criteo/dev/cluster/utils/ddl/DDLParser.scala
Scala
apache-2.0
628
package com.sfxcode.sapphire.core import java.util.ResourceBundle import scala.util.Try case class ResourceBundleHolder(underlying: ResourceBundle) extends AnyVal { def message(key: String, params: Any*): String = Try(underlying.getString(key)) .map(f => format(f, params: _*)) .getOrElse(s"!!--$ke...
sfxcode/sapphire-core
src/main/scala/com/sfxcode/sapphire/core/ResourceBundleHolder.scala
Scala
apache-2.0
533
package com.arcusys.valamis.course.service import com.arcusys.learn.liferay.LiferayClasses._ import com.arcusys.learn.liferay.services._ import com.arcusys.valamis.certificate.storage.CertificateRepository import com.arcusys.valamis.course.model.{CourseExtended, CourseInfo} import com.arcusys.valamis.course.{CourseMem...
arcusys/Valamis
valamis-course/src/main/scala/com/arcusys/valamis/course/service/CourseServiceImpl.scala
Scala
gpl-3.0
14,602
package org.bitcoins.core.script.interpreter import org.bitcoins.core.consensus.Consensus import org.bitcoins.core.crypto._ import org.bitcoins.core.currency.{ CurrencyUnit, CurrencyUnits } import org.bitcoins.core.protocol.CompactSizeUInt import org.bitcoins.core.protocol.script._ import org.bitcoins.core.protocol.tr...
Christewart/bitcoin-s-core
src/main/scala/org/bitcoins/core/script/interpreter/ScriptInterpreter.scala
Scala
mit
35,373
package memnets.core import scala.collection.JavaConverters._ import scala.collection.mutable.ArrayBuffer object Library { implicit def libtoOpt(lib: Library): Option[Library] = Option(lib) } class Library { private[memnets] val _builders = ArrayBuffer[BldType]() def builders: Iterable[BldType] = _builders /...
MemoryNetworks/memnets
api/src/main/scala/memnets/core/Library.scala
Scala
apache-2.0
473
package com.wuyuntao.aeneas.migration.example.migrations import com.wuyuntao.aeneas.migration.Migration import com.wuyuntao.aeneas.migration.dsl.DbModifier class CreatePasswordChangedEventTable extends Migration { def version = 20151030184920483L def up(db: DbModifier) = { db.executeSql("""CREATE TA...
wuyuntao/Aeneas
aeneas-migration-example/src/main/scala/com/wuyuntao/aeneas/migration/example/migrations/V20151030184920483_CreatePasswordChangedEventTable.scala
Scala
apache-2.0
583
/** * (c) Copyright 2013 WibiData, Inc. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of...
kijiproject/kiji-schema-shell
src/main/scala/org/kiji/schema/shell/KijiSystem.scala
Scala
apache-2.0
9,159
package io.megam.gradle import scalaz._ import Scalaz._ import scalaz.Validation.FlatMap._ import org.gradle.tooling.BuildLauncher import org.gradle.tooling.GradleConnector import org.gradle.tooling.ProjectConnection import java.io.File class GradleBuildManager(raw: YonpiRaw) extends BuildManager { override def ...
megamsys/sparkbuilder
src/main/scala/io/megam/gradle/GradleBuildManager.scala
Scala
apache-2.0
1,057
package com.giyeok.jparser.nparser import com.giyeok.jparser.Inputs.Input import com.giyeok.jparser.NGrammar._ import com.giyeok.jparser.nparser.AcceptCondition.AcceptCondition import com.giyeok.jparser.nparser.ParseTreeConstructor2.{KernelCore, Kernels} import com.giyeok.jparser.nparser.ParsingContext.{Graph, Kernel}...
Joonsoo/moon-parser
naive/src/main/scala/com/giyeok/jparser/nparser/ParseTreeConstructor2.scala
Scala
mit
6,021
package io.circe package object jawn extends JawnParser
travisbrown/circe
modules/jawn/src/main/scala/io/circe/jawn/package.scala
Scala
apache-2.0
57
package com.gilazaria.subsearch.output import com.gilazaria.subsearch.model.{Record, RecordType} import com.gilazaria.subsearch.utils.File import scala.collection.SortedSet import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global class StandardOutput(private val file: Option[File], pr...
gavia/subsearch
src/main/scala/com/gilazaria/subsearch/output/StandardOutput.scala
Scala
gpl-2.0
2,654
package play.api.libs.json import scala.language.reflectiveCalls /** * Helper functions to handle JsValues. */ object Json { /** * Parse a String representing a json, and return it as a JsValue. * * @param input a String to parse * @return the JsValue representing the string */ def parse(input...
noel-yap/setter-for-catan
play-2.1.1/framework/src/play/src/main/scala/play/api/libs/json/Json.scala
Scala
apache-2.0
7,159
/* * @author Genc Mazlami * * Copyright 2013 University of Zurich * * 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 * * U...
gmazlami/dcop-maxsum
src/main/scala/com/signalcollect/dcop/exceptions/TableEntryNotFoundException.scala
Scala
apache-2.0
771
package org.jetbrains.plugins.scala.findUsages.compilerReferences.bytecode import org.jetbrains.jps.backwardRefs.CompilerRef private trait CompilerRefProvider[From] extends (From => CompilerRef) { def toCompilerRef(from: From): CompilerRef override def apply(from: From): CompilerRef = toCompilerRef(from) }
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/findUsages/compilerReferences/bytecode/CompilerRefProvider.scala
Scala
apache-2.0
314
/* * 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 ...
ing-bank/scruid
src/test/scala/com/ing/wbaa/druid/DruidClientSpec.scala
Scala
apache-2.0
6,125
/* * 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...
psyyz10/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/optim/Adam.scala
Scala
apache-2.0
3,976
/* __ *\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ ** ** /____/\___/_/ |_/...
colinrgodsey/scala-js
test-suite/src/test/scala/org/scalajs/testsuite/jsinterop/AsyncTest.scala
Scala
bsd-3-clause
3,330
/* * 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 ...
mylog00/flink
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/utils/TableTestBase.scala
Scala
apache-2.0
11,910
package slick.codegen import slick.SlickException import slick.ast.ColumnOption import slick.{model => m} import slick.model.ForeignKeyAction import slick.relational.RelationalProfile import slick.sql.SqlProfile /** Base implementation for a Source code String generator */ abstract class AbstractSourceCodeGenerator(m...
marko-asplund/slick
slick-codegen/src/main/scala/slick/codegen/AbstractSourceCodeGenerator.scala
Scala
bsd-2-clause
10,794
/** * 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...
geeag/kafka
core/src/test/scala/unit/kafka/log/LogTest.scala
Scala
apache-2.0
53,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 ...
Intel-bigdata/OAP
oap-cache/oap/src/main/scala/org/apache/spark/sql/hive/orc/ReadOnlyOrcFileFormat.scala
Scala
apache-2.0
1,712
/* * Created on 2010/04/09 * Copyright (c) 2010-2014, Wei-ju Wu. * 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, ...
weiju/zmpp2
zmpp-swing/src/main/scala/org/zmpp/glulx/swing/NativeUI.scala
Scala
bsd-3-clause
15,790
import org.eclipse.jetty.server.nio.SelectChannelConnector import org.eclipse.jetty.server.Server import org.eclipse.jetty.webapp.WebAppContext object JettyEmbedded extends App{ val server = new Server() val connector = new SelectChannelConnector() connector.setPort(args(0).toInt) server.addConnector(c...
joroKr21/spatio-temporal-dynamics
impro3-ws14-frontend/src/main/scala/JettyEmbedded.scala
Scala
apache-2.0
670
/*** * Copyright 2015 Rackspace US, 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 applica...
wdschei/api-checker
core/src/main/scala/com/rackspace/com/papi/components/checker/step/SetHeader.scala
Scala
apache-2.0
1,675
import scala.io.Source /** * Created by sayon on 02.04.2015. */ object Solver extends App { val input = Source.fromFile("input.txt").getLines().map(_.split(" ").map(_.toInt)).toArray println(input.length) println(input(0).length) val verts = for(i <- 0 until 17; j <- 0 until 20) yield {for (k ...
sayon/euler
11/src/solver.scala
Scala
mit
1,021
package com.github.al.roulette.winnings.impl import akka.Done import com.github.al.roulette import com.github.al.roulette.bet.api.{Bet, PlayerBets} import com.github.al.roulette.winnings.api.PlayerWinning import com.lightbend.lagom.scaladsl.persistence.PersistentEntity class WinningsEntity extends PersistentEntity { ...
andrei-l/reactive-roulette
player-winnings-impl/src/main/scala/com/github/al/roulette/winnings/impl/WinningsEntity.scala
Scala
mit
2,955
package org.jmespike.appearance import org.scalaprops.Bean import simplex3d.math.float.functions._ import simplex3d.math.float._ import java.awt.Color import com.jme3.material.Material import org.jmespike.conf.Conf import org.jmespike.{Context} import org.jmespike.utils.VectorConversions._ import org.jmespike.conf.{R...
zzorn/skycastle
src/main/scala/org/jmespike/appearance/MaterialConf.scala
Scala
gpl-2.0
1,837
package nest.sparkle.util object StableGroupBy { implicit class Implicit[T](collection:Traversable[T]) { /** groupBy that preserves the order of the underlying sequences (and so returns a Seq rather than a map) */ def stableGroupBy[U](fn: T => U): Traversable[(U, Seq[T])] = { val groups = collection....
mighdoll/sparkle
util/src/main/scala/nest/sparkle/util/StableGroupBy.scala
Scala
apache-2.0
463
package at.logic.gapt.proofs.resolution import at.logic.gapt.expr._ import at.logic.gapt.expr.hol.{ CNFn, CNFp, univclosure } import at.logic.gapt.proofs._ import at.logic.gapt.proofs.expansionTrees.{ ExpansionSequent, formulaToExpansionTree } import scala.collection.mutable object RobinsonToExpansionProof { def a...
loewenheim/gapt
src/main/scala/at/logic/gapt/proofs/resolution/RobinsonToExpansionProof.scala
Scala
gpl-3.0
3,239
package scala.pickling package runtime import scala.reflect.{runtime => reflectRuntime} import internal._ trait RuntimePicklersUnpicklers { GlobalRegistry.picklerMap += ("scala.Tuple2" -> (tag => new Tuple2RTPickler(tag))) GlobalRegistry.unpicklerMap += ("scala.Tuple2" -> (new Tuple2RTPickler(null))) /* Reg...
phaller/pickling
core/src/main/scala/scala/pickling/runtime/CustomRuntime.scala
Scala
bsd-3-clause
9,892
package com.github.shadowsocks.plugin import android.util.Log import com.github.shadowsocks.utils.Commandline import scala.collection.mutable /** * @author Mygod */ class PluginConfiguration(val pluginsOptions: Map[String, PluginOptions], val selected: String) { private def this(plugins: Array[PluginOptions]) ...
hangox/shadowsocks-android
mobile/src/main/scala/com/github/shadowsocks/plugin/PluginConfiguration.scala
Scala
gpl-3.0
1,899
/* * 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 ...
techaddict/spark
sql/core/src/test/scala/org/apache/spark/sql/CsvFunctionsSuite.scala
Scala
apache-2.0
6,831
package mesosphere.marathon package api.v2.validation import com.wix.accord.scalatest.ResultMatchers import mesosphere.{ UnitTest, ValidationTestLike } import mesosphere.marathon.raml._ import mesosphere.UnitTest class AppValidationTest extends UnitTest with ResultMatchers with ValidationTestLike { import Normaliz...
natemurthy/marathon
src/test/scala/mesosphere/marathon/api/v2/validation/AppValidationTest.scala
Scala
apache-2.0
5,359
object Test { trait Foo class Bar { object baz extends Foo } def frob[P1, P2<:Foo](f:P1 => P2) = () def main(args:Array[String]) : Unit = { frob((p:Bar) => p.baz) } }
folone/dotty
tests/pos/t2444.scala
Scala
bsd-3-clause
192
/* * Copyright 2015 Daniel Spiewak * * 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 ...
djspiewak/sparse
src/test/scala/scalaz/stream/parsers/StreamSpecs.scala
Scala
apache-2.0
1,563
package crawl import akka.actor._ import akka.event.LoggingAdapter import scala.collection.mutable.ArrayBuffer import scala.compat.Platform /** Actor for collecting statistics information about how long lasts each web request. * There should be only one single instance of it. * @author Christoph Knabe * @since...
ChristophKnabe/sprayreactivedemo
src/main/scala/crawl/StatisticsActor.scala
Scala
lgpl-3.0
2,174
/* * Copyright 2007-2012 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 applica...
lzpfmh/framework-2
web/webkit/src/main/scala/net/liftweb/sitemap/FlexMenuBuilder.scala
Scala
apache-2.0
7,925
/* * 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...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/CP274.scala
Scala
apache-2.0
939
/* * Copyright (c) 2013 Christos KK Loverdos * * 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...
loverdos/thrift3r
src/test/scala/com/ckkloverdos/thrift3r/tests/misc/MiscTest.scala
Scala
apache-2.0
1,441
/*********************************************************************** * 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-lambda/geomesa-lambda-tools/src/main/scala/org/locationtech/geomesa/lambda/tools/stats/LambdaStatsTopKCommand.scala
Scala
apache-2.0
1,313
/* * 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/main/scala/org/apache/flink/table/planner/plan/nodes/FlinkRelNode.scala
Scala
apache-2.0
3,530
package se.culvertsoft.mgen.visualdesigner.util import java.awt.Component import java.awt.event.KeyEvent import javax.swing.SwingUtilities object ZwingUtils { def hasAncestor(c: Component, potentialAncestor: Component): Boolean = { SwingUtilities.isDescendingFrom(c, potentialAncestor) } def originatesFro...
culvertsoft/mgen-visualdesigner
src/main/scala/se/culvertsoft/mgen/visualdesigner/util/ZwingUtils.scala
Scala
gpl-2.0
505
/* * 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...
davidzchen/samza
samza-hdfs/src/main/scala/org/apache/samza/system/hdfs/HdfsSystemFactory.scala
Scala
apache-2.0
1,680
/* * Copyright 2017 Secure Decisions, a division of Applied Visions, 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 * * Unles...
secdec/codepulse
codepulse/src/main/scala/com/secdec/codepulse/tracer/snippet/ProjectUpdated.scala
Scala
apache-2.0
1,773
package org.openurp.edu.eams.teach.lesson.task.service.impl import java.text.MessageFormat import java.util.LinkedList import org.beangle.commons.collection.Collections import org.beangle.commons.dao.impl.BaseServiceImpl import org.beangle.data.jpa.dao.OqlBuilder import org.beangle.data.model.Entity import org.beangle...
openurp/edu-eams-webapp
schedule/src/main/scala/org/openurp/edu/eams/teach/lesson/task/service/impl/LessonStatServiceImpl.scala
Scala
gpl-3.0
16,665
// Copyright: 2010 - 2016 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._ import org.ensime.fixture._ import org.ensime.util.EnsimeSpec import scala.reflect.internal.util.{ OffsetPosition, RangePosition } class Impl...
espinhogr/ensime-server
core/src/it/scala/org/ensime/core/ImplicitAnalyzerSpec.scala
Scala
gpl-3.0
3,942
package com.meteorcode.pathway.io import java.io.{ File, InputStream, OutputStream, FileInputStream, FileOutputStream, IOException } import scala.util.{Try, Success, Failure} import scala.util.control.NonFatal /** * A [[FileHandle]] into a regular file. * * DON'T MAKE THESE - if you want to handle a fi...
MeteorCode/Pathway
src/main/scala/com/meteorcode/pathway/io/FilesystemFileHandle.scala
Scala
mit
4,302
import sbt._ import Keys._ import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseCreateSrc import Dependencies._ import de.johoop.findbugs4sbt.FindBugs._ import org.scalafmt.sbt.ScalaFmtPlugin.autoImport._ import de.johoop.findbugs4sbt.ReportType obj...
zalando/nakadi-klients
project/Build.scala
Scala
mit
3,483
/******************************************************************************* * 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://ww...
rreckel/Squeryl
src/main/scala/org/squeryl/dsl/internal/JoinedQueryable.scala
Scala
apache-2.0
1,983
package org.jetbrains.plugins.scala.lang.resolve2 /** * Pavel.Fatin, 02.02.2010 */ class PredefLiteralTest extends ResolveTestBase { override def folderPath: String = { super.folderPath + "predef/literal/" } //TODO answer? // def testBoolean = doTest //TODO answer? // def testByte = doTest //TODO a...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/lang/resolve2/PredefLiteralTest.scala
Scala
apache-2.0
758
/* * Copyright 2013 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 l...
tresata/storehaus
storehaus-hbase/src/test/scala/com/twitter/storehaus/hbase/DefaultHBaseCluster.scala
Scala
apache-2.0
1,381
package org.atnos.eff package addon.scalaz import scalaz._ object validate extends validate trait validate { def runValidationNel[R, U, E, A](r: Eff[R, A])(implicit m: Member.Aux[Validate[E, ?], R, U]): Eff[U, ValidationNel[E, A]] = org.atnos.eff.all.runValidatedNel(r).map(_.fold(ls => Validation.failure(NonE...
etorreborre/eff
scalaz/src/main/scala/org/atnos/eff/addon/scalaz/validate.scala
Scala
mit
852
package com.ing.baker.runtime.akka.actor import akka.actor.{ActorRef, ActorSystem, Address} import akka.cluster.Cluster import akka.cluster.sharding.ShardRegion._ import akka.cluster.sharding.{ClusterSharding, ClusterShardingSettings, ShardRegion} import akka.management.cluster.bootstrap.ClusterBootstrap import akka.m...
ing-bank/baker
core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/ClusterBakerActorProvider.scala
Scala
mit
5,716
package org.tmoerman.plongeur.tda import com.holdenkarau.spark.testing.SharedSparkContext import org.scalatest.{FunSuite, Matchers, FlatSpec} /** * @author Thomas Moerman */ class TDASpec extends FunSuite with SharedSparkContext { }
tmoerman/plongeur
scala/plongeur-spark/src/test/scala/org/tmoerman/plongeur/tda/TDASpec.scala
Scala
mit
239
/** * Copyright (C) 2011 Typesafe Inc. <http://typesafe.com> */ package com.typesafe.config.impl import org.junit.Assert._ import org.junit.Test import com.typesafe.config.ConfigException import language.implicitConversions class TokenizerTest extends TestUtils { // FIXME most of this file should be using th...
zeq9069/config
config/src/test/scala/com/typesafe/config/impl/TokenizerTest.scala
Scala
apache-2.0
11,550
/* sbt -- Simple Build Tool * Copyright 2011 Mark Harrah */ package sbt import java.io.File import java.net.{ URI, URL } import compiler.{ Eval, EvalImports } import classpath.ClasspathUtilities import scala.annotation.tailrec import collection.mutable import Compiler.Compilers import inc.{ FileValueCache, Locate } ...
jaceklaskowski/sbt
main/src/main/scala/sbt/Load.scala
Scala
bsd-3-clause
40,902
package com.github.truerss.plugins import java.net.URL import com.github.truerss.base.ContentTypeParam.{RequestParam, HtmlRequest, UrlRequest} import com.github.truerss.base.{ContentTypeParam, Video, BaseContentPlugin, Errors} import com.typesafe.config.{Config, ConfigFactory} class YoutubePlugin(config: Config = Con...
truerss/plugins
truerss-youtube-plugin/src/main/scala/com/github/truerss/plugins/YoutubePlugin.scala
Scala
mit
1,355
package com.arcusys.valamis.persistence.impl.scorm.storage import java.sql.Connection import com.arcusys.valamis.lesson.scorm.model.ScormUser import com.arcusys.valamis.lesson.scorm.model.manifest._ import com.arcusys.valamis.lesson.scorm.storage.ActivityDataStorage import com.arcusys.valamis.lesson.scorm.storage.seq...
igor-borisov/valamis
valamis-slick-persistence/src/test/scala/com/arcusys/valamis/persistence/impl/scorm/storage/ActivityDataStorageTest.scala
Scala
gpl-3.0
4,841
package lila.socket import chess.Centis import com.github.blemale.scaffeine.Cache import scala.concurrent.duration._ object UserLagCache { private val cache: Cache[String, Centis] = lila.memo.CacheApi.scaffeineNoScheduler .expireAfterWrite(15 minutes) .build[String, Centis]() def put(userId: String, lag...
luanlv/lila
modules/socket/src/main/UserLagCache.scala
Scala
mit
782
package org.jetbrains.plugins.scala.lang.psi.api.base.patterns import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.psi.api.base.types.ScSequenceArg import org.jetbrains.plugins.scala.lang.psi.api.statements.params._ /** * @author Alexander Podkhalyuzin * Date: 28.02.2...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/psi/api/base/patterns/ScPatternArgumentList.scala
Scala
apache-2.0
832
/* * 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/pbik-frontend
test/support/ServiceExclusionSetup.scala
Scala
apache-2.0
1,464
/* * Copyright (C) 2012-2013 Age Mooij (http://scalapenos.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 required by a...
ajantis/riak-scala-client
src/test/scala/com/scalapenos/riak/UnsafeBucketOperationsSpec.scala
Scala
apache-2.0
1,578
/* * 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...
dotty-staging/scalatest
examples/src/test/scala/org/scalatest/examples/wordspec/beforeandafter/ExampleSpec.scala
Scala
apache-2.0
1,327
package ui.geometry import ui.arrayBuffer.ArrayBuffer /* class Box extends Geometry(new VertexAttributes(List[Float]( -1f, -1f, 1f, -1f, 1f, 1f, 1f, 1f, -1f, 1f, -1f, -1f ))) { } object Box { def apply(): Box = new Box } */
gvatn/play-scalajs-webgl-spark
client/src/main/scala/ui/geometry/Box.scala
Scala
mit
292
import org.gnu.glpk.GLPK; import org.gnu.glpk.GLPKConstants; import org.gnu.glpk.GlpkException; import org.gnu.glpk.SWIGTYPE_p_double; import org.gnu.glpk.SWIGTYPE_p_int; import org.gnu.glpk.glp_prob; import org.gnu.glpk.glp_smcp; package Khachiyan { sealed abstract class Bound {} case object NoBounds extends Bound {...
Prosfilaes/Cherizo-graph-splitter
src/main/scala/khachiyan.scala
Scala
gpl-3.0
6,572
/* * Copyright 2016 Johannes Rudolph * * 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...
jrudolph/reify-v2
reify/src/main/scala/net/virtualvoid/reify2/Reifier.scala
Scala
apache-2.0
10,103
import scala.scalajs.js.JSApp import org.scalajs.dom import xyz.ariwaranosai.tidori.dom.DomElements._ import xyz.ariwaranosai.tidori.dom.OperatorContext import scalatags.JsDom.all._ import xyz.ariwaranosai.tidori.dom.DomOperator._ import xyz.ariwaranosai.tidori.dom.BeatOperatorImplicit._ /** * Created by ariwaranos...
ariwaranosai/tidori
examples/src/main/scala/Example.scala
Scala
mit
1,657
package io.udash.web.guide.views object References { val UdashjQueryWrapperRepo = "https://github.com/UdashFramework/scala-js-jquery" val UdashGuideRepo = "https://github.com/UdashFramework/udash-core/tree/master/guide" val UdashG8Repo = "https://github.com/UdashFramework/udash.g8" val UdashFilesDemoRepo = "ht...
UdashFramework/udash-core
guide/guide/.js/src/main/scala/io/udash/web/guide/views/References.scala
Scala
apache-2.0
960
package codebook.runtime.util import org.specs2.mutable.Specification class OptionHelperTest extends Specification { import OptionHelper._ "FailureLogger" should { "~>" in { var count = 0 val a:Option[Int] = None val b:Option[Int] = Some(1) a ~> (count += 1) coun...
RustyRaven/CodebookRuntime
scala/src/test/scala/codebook/runtime/util/OptionHelperTest.scala
Scala
mit
400
package com.acervera.spatialnetworklabs.osm import java.io._ import org.apache.commons.codec.digest.DigestUtils import org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfFieldDecoder import org.scalatest.{WordSpec, FunSpec} import org.openstreetmap.osmosis.osmbinary.{Osmformat, Fileformat} class OsmPbfBlockUtilsSpec extend...
angelcervera/spatial-network-labs
load-osm/src/test/scala/com/acervera/spatialnetworklabs/osm/OsmPbfBlockUtilsSpec.scala
Scala
mit
7,789
import scala.quoted.* object scalatest { transparent inline def assertCompile(inline code: String): Unit = ${ assertImpl('code, '{compiletime.testing.typeChecks(code)}, true) } transparent inline def assertNotCompile(inline code: String): Unit = ${ assertImpl('code, '{compiletime.testing.typeChecks(code)}, false)...
dotty-staging/dotty
tests/run-macros/reflect-typeChecks/assert_1.scala
Scala
apache-2.0
482
/** * Copyright (C) 2013 Stefan Niederhauser ([email protected]) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
nidi3/simple-remote-atlassian
src/main/scala/guru/nidi/atlassian/remote/query/QueryException.scala
Scala
apache-2.0
832
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
felixmulder/scala
src/library/scala/collection/parallel/immutable/ParVector.scala
Scala
bsd-3-clause
3,958
package cb008 /** * Created by liguodong on 2016/7/21. */ object EnsureTraitAddedType extends App{ import test5._ val e = new Enterprise println(e.ejectWarpCore("password")) println("-----------") import test6.{Enterprise=>EnterpriceTest,_} val e2 = new EnterpriceTest println(e2.ejectWarpCore("pas...
liguodongIOT/java-scala-mix-sbt
src/main/scala/scalacookbook/chapter08/EnsureTraitAddedType.scala
Scala
apache-2.0
1,196
package security import be.objectify.deadbolt.scala.cache.HandlerCache import play.api.Configuration import play.api.Environment import play.api.inject.Binding import play.api.inject.Module import scala.collection.Seq import javax.inject.Singleton @Singleton class MyCustomDeadboltHook extends Module { //----------...
bravegag/play-authenticate-usage-scala
app/security/MyCustomDeadboltHook.scala
Scala
apache-2.0
639
package types import scala.language/*=>scala.language.*/.existentials/*=>scala.language.existentials.*/ import scala.language/*=>scala.language.*/.higherKinds/*=>scala.language.higherKinds.*/ class ann/*<=types.ann#*/[T/*<=types.ann#[T]*/](x/*<=types.ann#x.*/: T/*=>types.ann#[T]*/) extends scala.annotation.StaticAnno...
scalameta/scalameta
tests/jvm/src/test/resources/example/Types.scala
Scala
bsd-3-clause
8,359
package io.github.agormindustries.knowledgestand import cpw.mods.fml.common.event.{FMLPostInitializationEvent, FMLInitializationEvent, FMLPreInitializationEvent} import cpw.mods.fml.common.{SidedProxy, Mod} import io.github.agormindustries.knowledgestand.block.BlockKnowledgeStand import io.github.agormindustries.knowl...
AgormIndustries/Knowledge-Stand
src/main/scala/io/github/agormindustries/knowledgestand/KnowledgeStand.scala
Scala
gpl-3.0
1,836
package scalaprops import scalaz.std.stream._ import scalaz.std.anyVal._ import ScalapropsScalaz._ object StreamTest extends Scalaprops { val bindRec = scalazlaws.bindRec.laws[Stream].andThenParam(Param.maxSize(1)) val laws = Properties.list( scalazlaws.monadPlusStrong.all[Stream], scalazlaws.align.all[S...
scalaprops/scalaprops
scalaz/src/test/scala/scalaprops/StreamTest.scala
Scala
mit
473
package net.artsy.atomic /** * Typeclass for objects that provide a string scope identifier that can be * used to categorize them. In the context of AtomicEventStore, the scope * identifier indicates the atomic log to which the event should be submitted, * and atomicity is maintained per scope identifier, meaning ...
acjay/atomic-store
src/main/scala/net/artsy/atomic/Scoped.scala
Scala
mit
731
package uk.gov.gds.ier.transaction.crown.dateOfBirth import uk.gov.gds.ier.validation.{FormKeys, ErrorMessages, ErrorTransformForm} import uk.gov.gds.ier.validation.constraints.DateOfBirthConstraints import play.api.data.Forms._ import uk.gov.gds.ier.model.DateOfBirth import uk.gov.gds.ier.model.noDOB import uk.gov.gd...
michaeldfallen/ier-frontend
app/uk/gov/gds/ier/transaction/crown/dateOfBirth/DateOfBirthForms.scala
Scala
mit
2,560
package io.mattgates.counterservice.config import com.typesafe.config.Config /** * Created by mgates on 3/4/17. */ case class CKiteConfig(address: String, port: Int, bootstrap: Boolean = false) object CKiteConfig { def apply(config: Config): CKiteConfig = { CKiteConfig( config.getString("bind-address...
mattgates5/challenge
src/main/scala/io/mattgates/counterservice/config/CKiteConfig.scala
Scala
mit
450
/* ___ _ ___ _ _ *\ ** / __| |/ (_) | | The SKilL Generator ** ** \__ \ ' <| | | |__ (c) 2013-16 University of Stuttgart ** ** |___/_|\_\_|_|____| see LICENSE ...
skill-lang/skill
src/main/scala/de/ust/skill/generator/c/model/StoragePoolHeaderMaker.scala
Scala
bsd-3-clause
5,733
/* * Copyright 2011 Blackened Systems * * 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...
betrcode/blackened-core
src/main/scala/com/blackenedsystems/core/mongodb/AuthenticatedDataSource.scala
Scala
apache-2.0
1,648
/* * La Trobe University - Distributed Deep Learning System * Copyright 2014 Matthias Langer ([email protected]) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
bashimao/ltudl
blaze/src/main/scala/edu/latrobe/blaze/InstanceState.scala
Scala
apache-2.0
1,050
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package invariant.templateSolvers import purescala.Definitions._ import purescala.Expressions._ import purescala.Extractors._ import purescala.Types._ import invariant.datastructure._ import invariant.util._ import leon.purescala.TypeOps import PredicateUtil._ imp...
epfl-lara/leon
src/main/scala/leon/invariant/templateSolvers/UFADTEliminator.scala
Scala
gpl-3.0
10,513
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ import play.dev.filewatch.FileWatchService import play.sbt.run.toLoggerProxy import sbt._ import javax.net.ssl.{SSLContext, HttpsURLConnection, TrustManager, X509TrustManager} import java.security.cert.X509Certificate import scala.annotation....
Shenker93/playframework
framework/src/sbt-plugin/src/sbt-test/play-sbt-plugin/generated-keystore/project/Build.scala
Scala
apache-2.0
3,102