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 2010-2012 Alex Jones * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with work for additional information * regarding copyright ownership. The ASF licenses file * to you under the Apache License, Version ...
unclealex72/west-ham-calendar
test/html/GameLocatorSpec.scala
Scala
apache-2.0
2,994
package thangiee.riotapi.summoner case class Summoner( id: Long, name: String, profileIconId: Int, revisionDate: Long, summonerLevel: Int )
Thangiee/Riot-API-Scala
src/main/scala/thangiee/riotapi/summoner/Summoner.scala
Scala
mit
152
package org.wikiwatershed.mmw.geoprocessing import akka.http.scaladsl.unmarshalling.Unmarshaller._ import akka.http.scaladsl.server.{ HttpApp, Route } import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ import spray.json._ import com.typesafe.config.ConfigFactory import com.typesafe.scalalogging.LazyLo...
WikiWatershed/mmw-geoprocessing
api/src/main/scala/WebServer.scala
Scala
apache-2.0
3,312
package org.scalaide.core.internal.builder.zinc import java.io.File import java.util.zip.ZipFile import org.eclipse.core.resources.IContainer import org.eclipse.core.runtime.IPath import org.eclipse.core.runtime.SubMonitor import org.scalaide.core.IScalaInstallation import org.scalaide.core.IScalaProject import org.s...
sschaef/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/internal/builder/zinc/SbtInputs.scala
Scala
bsd-3-clause
7,350
/*********************************************************************** * 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-index-api/src/main/scala/org/locationtech/geomesa/index/metadata/KeyValueStoreMetadata.scala
Scala
apache-2.0
4,093
package com.nthportal.versions package semver /** * A [[http://semver.org/spec/2.0.0.html SemVer 2.0.0]] version possibly * containing build metadata. * * @param extendedVersion the [[v3.ExtendedVersion version with an extension]] * @param buildMetadata the build metadata, if any exists * @tparam E the type of...
NthPortal/versions
src/main/scala/com/nthportal/versions/semver/SemanticVersion.scala
Scala
apache-2.0
1,364
package com.twitter.finagle.mux import com.twitter.finagle.FailureFlags import com.twitter.logging.HasLogLevel import scala.util.control.NoStackTrace /** * Indicates that a client requested that a given request be discarded. * * This implies that the client issued a Tdiscarded message for a given tagged * request...
luciferous/finagle
finagle-mux/src/main/scala/com/twitter/finagle/mux/Exceptions.scala
Scala
apache-2.0
1,486
package org.helianto.ingress.controller import java.util.Locale import org.helianto.ingress.service.ResponseService import org.helianto.user.domain.User import org.springframework.stereotype.Controller import org.springframework.ui.Model import org.springframework.web.bind.annotation.{GetMapping, RequestMapping, Requ...
iservport/helianto-spring
src/main/scala/org/helianto/ingress/controller/LoginController.scala
Scala
apache-2.0
1,515
package org.openmole.plugin.sampling.onefactor import org.openmole.core.highlight.HighLight import org.openmole.core.pluginregistry.PluginRegistry import org.osgi.framework.{ BundleActivator, BundleContext } class Activator extends BundleActivator { override def stop(context: BundleContext): Unit = PluginRegist...
openmole/openmole
openmole/plugins/org.openmole.plugin.sampling.onefactor/src/main/scala/org/openmole/plugin/sampling/onefactor/Activator.scala
Scala
agpl-3.0
658
package com.pygmalios.reactiveinflux import com.pygmalios.reactiveinflux.error.ReactiveInfluxError import play.api.libs.ws.WSRequestHolder class ReactiveInfluxException(message: String, cause: Throwable = null) extends RuntimeException(message, cause) class ReactiveInfluxResultError(val errors: Set[ReactiveInfluxErro...
pygmalios/reactiveinflux
src/main/scala/com/pygmalios/reactiveinflux/ReactiveinfluxException.scala
Scala
apache-2.0
451
package me.jie.ksrdd import java.util.Properties import kafka.common.TopicAndPartition import kafka.message.MessageAndMetadata import kafka.serializer.{Decoder} import org.apache.spark.{Partition, SparkContext, TaskContext} import org.apache.spark.annotation.DeveloperApi import org.apache.spark.rdd.RDD import org.slf...
JensenFeng/KSRdd
src/main/scala/me/jie/ksrdd/ksRDD.scala
Scala
apache-2.0
4,007
/* * 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 ...
zcan/samza
samza-yarn/src/main/scala/org/apache/samza/job/yarn/YarnJob.scala
Scala
apache-2.0
4,585
import java.io.{ByteArrayInputStream, ByteArrayOutputStream, File, FileInputStream} import java.util import java.util.zip.GZIPOutputStream import org.openqa.selenium.{By, Capabilities, JavascriptExecutor, WebDriver, WebElement} import org.openqa.selenium.remote.{DesiredCapabilities, RemoteWebDriver} import org.openqa....
Insubric/box
project/BrowserStackRunner.scala
Scala
apache-2.0
6,658
/* * 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/version/Version.scala
Scala
apache-2.0
675
/** * Copyright (C) 2019 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...
orbeon/orbeon-forms
xforms-web/src/main/scala/org/orbeon/jquery/package.scala
Scala
lgpl-2.1
1,904
package com.cloudray.scalapress.account import javax.persistence._ import org.hibernate.annotations.Index import scala.beans.BeanProperty /** @author Stephen Samuel */ @Entity @Table(name = "accounts_types") class AccountType { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Index(name = "id_index") @Be...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/account/AccountType.scala
Scala
apache-2.0
422
/** * An example MapReduce application using Scala and HBase. * * * The MIT License (MIT) * * Copyright (c) 2014 Jeremy Fisher * * 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 Sof...
rawg/scala-hbase-wordcount
src/main/scala/package.scala
Scala
mit
1,605
package ml.combust.mleap.executor.repository import java.net.URI import java.nio.file.Path import akka.actor.ActorSystem import com.typesafe.config.Config import scala.concurrent.Future import scala.concurrent.duration.TimeUnit object Repository { /** Create a repository from a configuration. * * @param c...
combust/mleap
mleap-executor/src/main/scala/ml/combust/mleap/executor/repository/Repository.scala
Scala
apache-2.0
1,803
import testgen._ import TestSuiteBuilder._ import java.io.File object BeerSongTestGenerator { def main(args: Array[String]): Unit = { val file = new File("src/main/resources/beer-song.json") def toString(expected: CanonicalDataParser.Expected): String = { expected match { case Right(xs: List...
ricemery/xscala
testgen/src/main/scala/BeerSongTestGenerator.scala
Scala
mit
1,066
package achilles import breeze.linalg.SparseVector /** * Created by panda on 3/31/15. */ class TermNode(val identity: String) extends Node { var termTopic: SparseVector[Double] = ??? override def nodeType(): String = "term" override def compute(): Unit = ??? override def timestamp(): Long = ??? }
yinxusen/achilles
src/main/scala/achilles/TermNode.scala
Scala
apache-2.0
312
class Two[A, B] class One[A] extends Two[A, A] object Test { def foo[F[_, _]](x: F[Int, Int]) = x val t: One[Int] = ??? foo(t) }
dotty-staging/dotty
tests/pos/t2712-8.scala
Scala
apache-2.0
137
package info.armado.ausleihe.admin.transport.responses import javax.xml.bind.annotation.{XmlAccessType, XmlAccessorType, XmlRootElement} object VerifyGamesResponseDTO { def apply(alreadyExistingBarcodes: Array[String], duplicateBarcodes: Array[String], emptyTitleBarcodes: Array[String]): VerifyGamesResponseDTO = ...
Spielekreis-Darmstadt/lending
lending-admin-interfaces/src/main/scala/info/armado/ausleihe/admin/transport/responses/VerifyGamesResponseDTO.scala
Scala
apache-2.0
911
package dwaspada.thedaam.domain trait DomainEventListener { def isSubscribedTo(domainEvent: DomainEvent): Boolean def handleEvent(domainEvent: DomainEvent): Unit }
dewey92/commuterline-ddd
src/main/scala/dwaspada/thedaam/domain/DomainEventListener.scala
Scala
mit
169
import java.io.IOException import com.typesafe.scalalogging.Logger import io.circe.generic.auto._ import javafx.fxml.FXMLLoader import loci.communicator.ws.akka.WS import loci.registry.{Binding, Registry} import loci.serializer.circe._ import loci.transmitter.RemoteRef import loci.transmitter.transmittable.IdenticallyT...
guidosalva/REScala
Historical/dividiParoli/src/main/scala/DividiApp.scala
Scala
apache-2.0
6,487
/* * DARWIN Genetic Algorithms Framework Project. * Copyright (c) 2003, 2005, 2007, 2009, 2011, 2016, 2017. Phasmid Software * * Originally, developed in Java by Rubecula Software, LLC and hosted by SourceForge. * Converted to Scala by Phasmid Software and hosted by github at https://github.com/rchillyard/Darwin ...
rchillyard/Darwin
src/main/scala/com/phasmid/darwin/eco/Fitness.scala
Scala
gpl-3.0
11,483
package com.perevillega.sesms import org.scalatest.FunSpec import org.scalatest.matchers.ShouldMatchers import org.scalatest.PrivateMethodTester import play.api.libs.json.{JsArray, Json} import com.perevillega.sesms.support.Country /** * Tests for Fixtures * User: pvillega */ class FixturesTest extends FunSpec wit...
pvillega/S-ESMS
src/test/scala/com/perevillega/sesms/FixturesTest.scala
Scala
lgpl-3.0
2,919
package com.github.zenpie.macrowave.internal.scanner import java.util import java.util.ConcurrentModificationException import com.github.zenpie.macrowave.internal.scanner import scala.collection.mutable.Iterable import scala.util.hashing.MurmurHash3 object DfaState { def apply(values: Int*): DfaState = { val...
zen-pie/macrowave
src/main/scala/com/github/zenpie/macrowave/internal/scanner/DfaState.scala
Scala
mit
2,736
package org.scalamu.testing.junit import org.junit.runner.RunWith import org.scalatest.{FlatSpec, Matchers} import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class RunWithJar extends FlatSpec with Matchers { "RunWithInherited" should "run scalatest test with Junit runner" in { 10 should be >...
sugakandrey/scalamu
testing/junit/src/test/scala/org/scalamu/testing/junit/RunWithJar.scala
Scala
gpl-3.0
329
/** * */ package net.machinemuse.numina.network import java.io._ import java.util import cpw.mods.fml.common.network.NetworkRegistry import cpw.mods.fml.common.network.internal.FMLProxyPacket import io.netty.buffer.ByteBufInputStream import io.netty.channel.ChannelHandler.Sharable import io.netty.channel.ChannelHan...
MachineMuse/Numina
src/main/scala/net/machinemuse/numina/network/MusePacketHandler.scala
Scala
bsd-2-clause
2,163
/* * Copyright 2008-present MongoDB, 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 ag...
rozza/mongo-java-driver
driver-scala/src/test/scala/org/mongodb/scala/MongoDatabaseSpec.scala
Scala
apache-2.0
10,349
/* * Copyright 2014-16 Intelix Pty 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 or agr...
intelix/reactiveservices
platform/core/src/main/scala/au/com/intelix/rs/core/services/internal/DemandProducerContract.scala
Scala
apache-2.0
3,320
package sectery.producers import java.sql.Connection import java.sql.Timestamp import java.util.concurrent.TimeUnit import org.ocpsoft.prettytime.PrettyTime import sectery.Db import sectery.Producer import sectery.Rx import sectery.Tx import zio.Clock import zio.ZIO object Tell extends Producer: private val tell =...
earldouglas/sectery
modules/producers/src/main/scala/sectery/producers/Tell.scala
Scala
mit
3,093
package org.jetbrains.plugins.scala package findUsages package parameters import com.intellij.psi._ import com.intellij.psi.search.searches.ReferencesSearch import com.intellij.psi.search.{PsiSearchHelper, TextOccurenceProcessor, UsageSearchContext} import com.intellij.util.{Processor, QueryExecutor} import org.jetbra...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/findUsages/parameters/NamingParamsSearcher.scala
Scala
apache-2.0
3,110
// Copyright (C) 2015 ENSIME Authors // License: GPL 3.0 package org.ensime.util import Predef.{ any2stringadd => _, _ => _ } package object map { implicit class RichMap[K, V](val map: Map[K, V]) extends AnyVal { /** * Map.mapValues is notoriously inconsistent and returns a View * rather than a solid ...
eddsteel/ensime
util/src/main/scala/org/ensime/util/map.scala
Scala
gpl-3.0
1,208
import scala.reflect.runtime.universe._ import scala.reflect.runtime.{currentMirror => cm} object Test extends App { class A { def foo = ??? } val c = cm.classSymbol(classOf[A]) println(c) println(c.fullName) println(c.info) }
som-snytt/dotty
tests/disabled/reflect/run/t5256b.scala
Scala
apache-2.0
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 may not use this f...
transcendent-ai-labs/DynaML
dynaml-core/src/main/scala/io/github/mandar2812/dynaml/utils/GaussianScaler.scala
Scala
apache-2.0
3,190
package models.customer import play.api.libs.json.Json import models._ import models.AssetSupport._ import org.joda.time.DateTime case class ContactTypeIn(_id: IdType, createdAt: DateTime, lastModifiedAt: DateTime, active: Boolean, ...
tsechov/shoehorn
app/models/customer/contacttype.scala
Scala
apache-2.0
1,510
package info.armado.ausleihe.admin.transport.requests import javax.xml.bind.annotation.{XmlAccessType, XmlAccessorType, XmlRootElement} @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) case class ChangeOwnerRequestDTO(var identityCardBarcodeString: String, var owner: String) { ...
Spielekreis-Darmstadt/lending
lending-admin-interfaces/src/main/scala/info/armado/ausleihe/admin/transport/requests/ChangeOwnerRequestDTO.scala
Scala
apache-2.0
352
package sky.first.actors import akka.actor.{Props, ActorRef, Actor} /** * Created by szekai on 20/08/2014. */ //case class Word(word:String, count:Int) case class Result() case class MapData(dataList: List[(String, Int)]) case class ReduceData(reduceDataMap: Map[String,Int]) class MasterActor extends Actor{ val...
szekai/akka-example
FirstAkkaApplication/src/main/scala/sky/first/actors/MasterActor.scala
Scala
apache-2.0
743
/* * Copyright 2014 Cisco Systems, 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...
foundation-runtime/orchestration
src/main/java/com/cisco/oss/foundation/orchestration/scope/utils/TimeoutScheduler.scala
Scala
apache-2.0
1,748
import scala.reflect.runtime.universe._ object Test extends dotty.runtime.LegacyApp { def fooNoTypeTag[T] = { println(implicitly[WeakTypeTag[T]]) println(implicitly[WeakTypeTag[List[T]]]) } fooNoTypeTag[Int] }
yusuke2255/dotty
tests/pending/run/macro-reify-abstypetag-typeparams-notags/Test.scala
Scala
bsd-3-clause
225
package edu.chop.cbmi.dataExpress.dataModels.sql import java.sql.ResultSet /** * Specialized [[scala.collection.Iterator]] that handles the peculiarities of dealing with a JDBC ResultSet */ abstract class SqlIterator[+T] private[sql](private val sql_query_package: SqlQueryPackage) extends Iterator[T] { protected...
chop-dbhi/dataexpress
src/main/scala/edu/chop/cbmi/dataExpress/dataModels/sql/SqlIterator.scala
Scala
bsd-2-clause
1,384
package ProjectEuler import scala.collection.immutable /** * If dn represents the nth digit of the fractional part, find the value of the following expression. */ object Problem40 { def champernownesConstant(m: Int): Int = { val stringDigits: immutable.IndexedSeq[Int] = (1 until 200000).flatMap(_.toString....
dandxy89/LearningScala
src/main/scala/ProjectEuler/Problem40.scala
Scala
mit
432
/** * 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...
zeph/kafka-manager
app/kafka/manager/utils/logkafka81/LogConfig.scala
Scala
apache-2.0
10,973
// Copyright 2011 Google 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 to in ...
cedricviaccoz/scala-native
benchmarks/src/main/scala/havlak/LoopStructureGraph.scala
Scala
bsd-3-clause
2,212
/* * Sentries * Copyright (c) 2012-2015 Erik van Oosten All rights reserved. * * The primary distribution site is https://github.com/erikvanoosten/sentries * * This software is released under the terms of the BSD 2-Clause License. * There is NO WARRANTY. See the file LICENSE for the full text. */ package nl.gr...
erikvanoosten/sentries
src/main/scala/nl/grons/sentries/support/SentriesRegistryListener.scala
Scala
bsd-2-clause
1,000
/* * 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 ...
icexelloss/spark
core/src/main/scala/org/apache/spark/SparkConf.scala
Scala
apache-2.0
33,711
package $package$ import java.lang.management.ManagementFactory import akka.http.scaladsl.server.{Directives, Route} import scala.concurrent.duration._ trait StatusService extends BaseService { import Directives._ import io.circe.generic.auto._ protected case class Status(uptime: String) override protecte...
silvaren/akka-http.g8
src/main/g8/src/main/scala/$package$/StatusService.scala
Scala
apache-2.0
499
/* * 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 ...
facaiy/spark
core/src/test/scala/org/apache/spark/scheduler/TaskSchedulerImplSuite.scala
Scala
apache-2.0
61,396
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
h2oai/sparkling-water
benchmarks/src/main/scala/ai/h2o/sparkling/benchmarks/TrainAlgorithmFromDataFrameBenchmark.scala
Scala
apache-2.0
1,612
/** * Problem: http://www.codechef.com/problems/ERROR * GitHub: https://github.com/amezhenin/codechef_problems */ object Main { /** * Checkout https://github.com/amezhenin/codechef_scala_template to test your solutions with sbt-doctest * {{{ * >>> Main.alg("11111110") * false * * >>> Main.alg("1...
amezhenin/codechef_problems
easy/error.scala
Scala
mit
656
/* * Copyright (c) 2015 Contributor. All rights reserved. */ package org.scalaide.debug.internal.expression package context.invoker import scala.collection.JavaConverters._ import scala.util.Failure import scala.util.Success import scala.util.Try import org.scalaide.debug.internal.expression.context.JdiContext impo...
scala-ide/scala-ide
org.scala-ide.sdt.debug.expression/src/org/scalaide/debug/internal/expression/context/invoker/MethodInvoker.scala
Scala
bsd-3-clause
6,086
package com.ubirch.avatar.cmd import java.net.URL import java.util.Base64 import com.ubirch.avatar.model.rest.MessageVersion import com.ubirch.avatar.model.rest.device.DeviceDataRaw import com.ubirch.util.crypto.ecc.EccUtil import com.ubirch.util.json.{Json4sUtil, MyJsonProtocol} import org.apache.commons.codec.binar...
ubirch/ubirch-avatar-service
cmdtools/src/main/scala/com/ubirch/avatar/cmd/DeviceUpdateTester.scala
Scala
apache-2.0
3,109
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.core.utils import java.lang.{ StringBuilder => JStringBuilder } import java.util.function.IntConsumer import java.util.{ BitSet => JBitSet } /** * Support for rending HTTP header parameters according to RFC5987. */ private[pl...
Shenker93/playframework
framework/src/play/src/main/scala/play/core/utils/HttpHeaderEncoding.scala
Scala
apache-2.0
6,334
package templemore.onx.version4 /** * @author Chris Turner */ trait GridLines { this: Grid => private[this] val linePositions = List(Position(0, -1), Position(1, -1), Position(2, -1), Position(-1, 0), Position(-1, 1), Position(-1, 2), ...
skipoleschris/OandX
src/main/scala/templemore/onx/version4/GridLines.scala
Scala
apache-2.0
1,920
package controllers import play.api._ import play.api.mvc._ import java.sql.DriverManager import java.sql.ResultSet import scala.collection.mutable.ArrayBuffer import play.api.libs.iteratee.Enumerator import play.api.libs.json._ import java.util.Properties import java.io.FileInputStream object Application extends Co...
phi-grib/eTOX-vault-ws
app/controllers/Application.scala
Scala
gpl-3.0
9,488
/* * La Trobe University - Distributed Deep Learning System * Copyright 2016 Matthias Langer (t3l@threelights.de) * * 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/modules/jvm/ReLU_JVM_Baseline.scala
Scala
apache-2.0
2,376
/* * Copyright 2016-2020 47 Degrees Open Source <https://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 ...
47deg/github4s
github4s/src/test/scala/github4s/integration/UsersSpec.scala
Scala
apache-2.0
3,666
package almhirt.components import scala.language.postfixOps import scala.concurrent.duration._ import scalaz.syntax.validation._ import scalaz.Validation.FlatMap._ import akka.actor._ import akka.pattern._ import almhirt.common._ import almhirt.almvalidation.kit._ import almhirt.almfuture.all._ import almhirt.akkax._ ...
chridou/almhirt
almhirt-core/src/main/scala/almhirt/components/EventLogWriter.scala
Scala
apache-2.0
7,400
package scredis.exceptions /** * Base class of all exceptions thrown by scredis */ abstract class RedisException( message: String = null, cause: Throwable = null ) extends Exception(message, cause)
rileyberton/scredis
src/main/scala/scredis/exceptions/RedisException.scala
Scala
apache-2.0
204
package com.amadornes.modcast.bot.discord.commands import com.amadornes.modcast.bot.database.Permission import com.amadornes.modcast.bot.discord.{AbstractCommand, TCommandOptions} import com.amadornes.modcast.bot.helpers.{MCWhitelistHelper, PermissionsHelper} import sx.blah.discord.handle.obj.IUser /** * Created by...
Modcast/ModcastBot
src/main/scala/com/amadornes/modcast/bot/discord/commands/WhitelistCommand.scala
Scala
mit
2,159
package com.clarifi.reporting.ermine.core import com.clarifi.reporting.ermine._ import java.util.Date import scalaz._ import scalaz.Scalaz._ import Runtime.Thunk class OpenException extends Exception sealed abstract class Core[+A] extends Monadic[Core,A] with Traversable[A] { def flatMap[B](f: A => Core[B]): Core[...
ermine-language/ermine-legacy
src/main/scala/com/clarifi/reporting/ermine/core/Core.scala
Scala
bsd-2-clause
5,324
package fs2 package async package mutable import scala.concurrent.ExecutionContext import scala.concurrent.duration._ import cats.effect.Effect import cats.implicits._ /** * An asynchronous semaphore, useful as a concurrency primitive. */ abstract class Semaphore[F[_]] { /** Returns the number of permits curr...
zaneli/fs2
core/shared/src/main/scala/fs2/async/mutable/Semaphore.scala
Scala
mit
8,544
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Tue Aug 9 16:39:41 EDT 2016 * @see LICENSE (MIT style license file). * * Graph Data Structure Using Mutable Sets */ package scalation.graphalytics.mutable import scala.coll...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/graphalytics/mutable/ExampleMGraphI.scala
Scala
mit
4,503
package fr.neuville.lombok.processor import scalaz._ import Scalaz._ import std.anyVal.booleanInstance.{conjunction, disjunction} import java.util.{List => JList} import java.lang.{Class => JClass} import java.lang.annotation.{Annotation => JAnnotation} import com.intellij.psi._ import de.plushnikov.intellij.lombok....
gneuvill/lombok-intellij-plugin
processor-core/src/main/scala/fr/neuville/lombok/processor/wither.scala
Scala
bsd-2-clause
7,416
package com.joshcough.minecraft import org.bukkit.{ChatColor, Effect, Location, Material, OfflinePlayer, Server, World} import org.bukkit.block.Block import org.bukkit.event.Cancellable import org.bukkit.event.entity.EntityDamageByEntityEvent import org.bukkit.event.weather.WeatherChangeEvent import org.bukkit.invento...
JunctionAt/JunctionAPI
src/main/scala/com/joshcough/minecraft/BukkitEnrichment.scala
Scala
agpl-3.0
15,576
/*********************************************************************** * Copyright (c) 2013-2016 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is ...
mdzimmerman/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/data/stats/usage/GeoMesaUsageStats.scala
Scala
apache-2.0
2,576
package uk.gov.dvla.vehicles.acquire.gatling import io.gatling.core.Predef._ import uk.gov.dvla.vehicles.acquire.gatling.Helper.httpConf import uk.gov.dvla.vehicles.acquire.gatling.Scenarios._ class AcquireSimulation extends Simulation { private val oneUser = atOnceUsers(1) setUp( //verifyAssetsAreAccessibl...
dvla/vehicles-acquire-online
gatling-tests/src/test/scala/uk/gov/dvla/vehicles/acquire/gatling/AcquireSimulation.scala
Scala
mit
771
package mesosphere.marathon.tasks import org.apache.mesos.Protos._ import org.scalatest.{ Assertions, GivenWhenThen, FunSuite } import scala.collection.JavaConverters._ class ResourceUtilTest extends FunSuite with GivenWhenThen with Assertions { test("no base resources") { val leftOvers = ResourceUtil.consumeRe...
sepiroth887/marathon
src/test/scala/mesosphere/marathon/tasks/ResourceUtilTest.scala
Scala
apache-2.0
5,773
/* * Artificial Intelligence for Humans * Volume 2: Nature Inspired Algorithms * Java Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * * Copyright 2014 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
PeterLauris/aifh
vol2/vol2-scala-examples/src/main/scala/com/heatonresearch/aifh/genetic/trees/CrossoverTree.scala
Scala
apache-2.0
2,250
package org.http4s import cats.Applicative import cats.data.{Kleisli, OptionT} import cats.implicits._ import cats.effect.Sync object AuthedRoutes { /** Lifts a function into an [[AuthedRoutes]]. The application of `run` * is suspended in `F` to permit more efficient combination of * routes via `Semigroup...
aeons/http4s
core/src/main/scala/org/http4s/AuthedRoutes.scala
Scala
apache-2.0
1,622
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package kafka.manager import java.util.Properties import java.util.concurrent.atomic.AtomicBoolean import com.typesafe.config.{Config, ConfigFactory} import kafka.manager.features.KMDeleteTopicFeature...
xuwei-k/kafka-manager
test/kafka/manager/TestKafkaManager.scala
Scala
apache-2.0
20,320
/* * This file is part of Apparat. * * Copyright (C) 2010 Joa Ebert * http://www.joa-ebert.com/ * * This library 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 Lice...
joa/apparat
apparat-core/src/main/scala/apparat/bytecode/optimization/InlineMemory.scala
Scala
lgpl-2.1
4,117
package section3 import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration.Duration import scala.concurrent.{Await, Future} object Synchronized { def main(args: Array[String]) { // If two threads access and modify a single and same used object, // we need to synchronize the...
DarkToast/scala-workshop
workshop/src/main/scala/section3/Synchronized.scala
Scala
mit
1,015
package com.gilt.handlebars.scala.context import com.gilt.handlebars.scala.binding.{ Binding, VoidBinding } import com.gilt.handlebars.scala.logging.Loggable import com.gilt.handlebars.scala.parser.IdentifierNode class ChildContext[T](val binding: Binding[T], val parent: Context[T]) extends Context[T] { def isRoot ...
QiaoBuTang/handlebars.scala
src/main/scala/com/gilt/handlebars/scala/context/Context.scala
Scala
apache-2.0
3,505
/* Copyright (C) 2008-2016 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...
Craigacp/factorie
src/main/scala/cc/factorie/util/CircularBuffer.scala
Scala
apache-2.0
1,889
package lila.relay package actorApi import lila.socket.SocketMember private[relay] case class Member( channel: JsChannel, userId: Option[String], troll: Boolean) extends SocketMember private[relay] object Member { def apply(channel: JsChannel, user: Option[lila.user.User]): Member = Member( channel = cha...
Happy0/lila
modules/relay/src/main/actorApi.scala
Scala
mit
785
/** * Copyright (C) 2009 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
brunobuzzi/orbeon-forms
src/main/scala/org/orbeon/oxf/util/ConnectionResult.scala
Scala
lgpl-2.1
6,574
// here we test unpickling a sealed child in another tasty file package dottyi3149 object TestFooMatch { def foo(f: Foo): Unit = f match { case f: Foo.Bar => () } }
lrytz/scala
test/tasty/neg/src-2/TestFooMatch_fail.scala
Scala
apache-2.0
174
package org.bitcoins.crypto class RandomTest extends BitcoinSCryptoTest { it should "generate random bytes" in { val rnd = 1.to(16).map(_ => BCryptoCryptoRuntime.randomBytes(32)) assert(rnd.size == 16) assert(rnd.distinct.size == rnd.size) } }
bitcoin-s/bitcoin-s
crypto-test/.js/src/test/scala/org/bitcoins/crypto/RandomTest.scala
Scala
mit
263
package mesosphere.marathon.state import mesosphere.marathon.MarathonSpec import mesosphere.marathon.Protos import org.scalatest.Matchers import org.apache.mesos.{ Protos => mesos } import scala.collection.immutable.Seq import scala.collection.JavaConverters._ class ContainerTest extends MarathonSpec with Matchers {...
quamilek/marathon
src/test/scala/mesosphere/marathon/state/ContainerTest.scala
Scala
apache-2.0
9,738
// Copyright (c) 2012 Thomas Suckow // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 // which accompanies this distribution, and is available at // http://www.eclipse.org/legal/epl-v10.html package net.codingwell.weave impo...
codingwell/Weave
core/src/main/scala/net/codingwell/weave/LocalExecutor.scala
Scala
epl-1.0
821
package info.armado.ausleihe.admin.util import info.armado.ausleihe.database.barcode.Barcode import info.armado.ausleihe.database.dataobjects.{GameDuration, PlayerCount} import info.armado.ausleihe.database.entities._ import info.armado.ausleihe.admin.transport.dataobjects._ import java.time.Year object DTOExtensions...
Spielekreis-Darmstadt/lending
lending-admin-backend/src/main/scala/info/armado/ausleihe/admin/util/DTOExtensions.scala
Scala
apache-2.0
4,136
package io.continuum.bokeh @model class ImageSource extends Model { object url extends Field[String] object extra_url_vars extends Field[Map[String, String]] }
bokeh/bokeh-scala
bokeh/src/main/scala/models/Images.scala
Scala
mit
169
/** * 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...
kingargyle/turmeric-bot
components/camel-scala/src/main/scala/org/apache/camel/scala/ScalaPredicate.scala
Scala
apache-2.0
1,118
/* * 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 ...
jianran/spark
core/src/test/scala/org/apache/spark/scheduler/TaskContextSuite.scala
Scala
apache-2.0
10,924
package toguru import _root_.play.api.mvc._ import toguru.api.{Activations, ClientInfo, Toggling, ToguruClient} package object play { type PlayToguruClient = ToguruClient[RequestHeader] type PlayClientProvider = ClientInfo.Provider[RequestHeader] final class ToggledRequest[A](val client: ClientInfo, val acti...
AutoScout24/toguru-scala-client
play/src/main/scala/toguru/play/package.scala
Scala
mit
426
/* * Copyright 2015 Commonwealth Computer Research, 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 applicabl...
jnh5y/geomesa
geomesa-jobs/src/test/scala/org/locationtech/geomesa/jobs/scalding/serialization/Kryo2SimpleFeatureSerializerTest.scala
Scala
apache-2.0
1,952
package japgolly.scalajs.react.vdom import scala.scalajs.LinkingInfo.developmentMode /** * Represents a value that can be nested within a [[TagOf]]. This can be * another [[TagMod]], but can also be a CSS style or HTML attribute binding, * which will add itself to the node's attributes but not appear in the final ...
matthughes/scalajs-react
core/src/main/scala/japgolly/scalajs/react/vdom/TagMod.scala
Scala
apache-2.0
2,576
package threesixty.visualizer.util.param import threesixty.data.Data.Timestamp case class AxisParam( val label: String, val labelSize: Int, val labelFontFamily: String, val minPxBetweenGridPoints: Int, val unitLabelSize: Int, val unitLabelFontFamily: String, val showGrid: Boolean, val ...
elordin/threesixty
src/main/scala/threesixty/visualizer/util/param/AxisParam.scala
Scala
mit
3,243
/* * 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 ...
mrchristine/spark-examples-dbc
src/main/scala/org/apache/spark/examples/mllib/ChiSqSelectorExample.scala
Scala
apache-2.0
2,351
package cpup.mc.oldenMagic.content.runes import cpup.mc.oldenMagic.api.oldenLanguage.runeParsing.TVerbRune import cpup.mc.oldenMagic.api.oldenLanguage.runes.TRuneType import cpw.mods.fml.relauncher.{Side, SideOnly} import net.minecraft.util.IIcon import cpup.mc.oldenMagic.OldenMagicMod import net.minecraft.nbt.NBTTagC...
CoderPuppy/oldenmagic-mc
src/main/scala/cpup/mc/oldenMagic/content/runes/SeenRune.scala
Scala
mit
2,341
/* * 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...
chipsenkbeil/incubator-toree
client/src/test/scala/integration/unused.integration.socket/ClientToHeartbeatSpecForIntegration.scala
Scala
apache-2.0
3,496
package com.thisisfranklin.crdt object BooleanLattice { def bottom = BooleanLattice(false) } case class BooleanLattice(value: Boolean) extends Lattice[Boolean, BooleanLattice] { def merge(other: BooleanLattice): BooleanLattice = copy(value = value || other.value) def tryCompareTo(other: BooleanLattice): Option...
franklinhu/crdt
src/main/scala/com/thisisfranklin/crdt/BooleanLattice.scala
Scala
apache-2.0
461
package spotlight.publish import java.io.ByteArrayOutputStream import java.net.{ InetAddress, InetSocketAddress, Socket } import java.util.concurrent.atomic.{ AtomicBoolean, AtomicInteger } import javax.net._ import javax.script.{ Compilable, ScriptEngineManager, SimpleBindings } import akka.actor.{ ActorSystem, Prop...
dmrolfs/lineup
core/src/test/scala/spotlight/publish/GraphitePublisherSpec.scala
Scala
mit
14,055
package ru.zconstz.shortener.service import akka.actor.Actor import scala.slick.driver.PostgresDriver.simple._ import ru.zconstz.shortener.db.{DbHolder, DataBaseSchema} import DataBaseSchema._ import DbHolder._ import ru.zconstz.shortener.http.HttpEntities.{TokenGetResponse, TokenGetRequest} class TokenActor extends ...
konstantin-zlobin/url-shortener
src/main/scala/ru/zconstz/shortener/service/TokenActor.scala
Scala
apache-2.0
573
package pl.writeonly.son2.path.glue import pl.writeonly.son2.funs.glue.CreatorConverterOr class CreatorConverterOrPath extends CreatorConverterOr( new ChainNotationConfigPath().get, new ChainNotationRWTPath() ) class CreatorConverterOrPathMain extends CreatorConverterOr( new ChainNotati...
writeonly/son2
scallions-impl/scallions-path/src/main/scala/pl/writeonly/son2/path/glue/CreatorConverterOrPath.scala
Scala
apache-2.0
383
package org.infinispan.demo import scala.io.Source import org.infinispan.client.hotrod.RemoteCacheManager import org.infinispan.client.hotrod.configuration.ConfigurationBuilder import org.infinispan.client.hotrod.impl.ConfigurationProperties object IspnFileUpload { val ISPN_IP = "127.0.0.1"; def main(args:...
vjuranek/infinispan-snippets
spark/spark-rdd/spark2-text-search/src/main/scala/org/infinispan/demo/IspnFileUpload.scala
Scala
mit
901
/* * 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-reactive/shared/src/main/scala/monix/reactive/internal/consumers/ContraMapConsumer.scala
Scala
apache-2.0
2,315
package dk.bayes.dsl.variable.gaussian.univariate import dk.bayes.dsl.InferEngine import dk.bayes.dsl.factor.DoubleFactor import dk.bayes.math.gaussian.Gaussian import dk.bayes.dsl.epnaivebayes.inferPosterior object inferUnivariateGaussianEPNaiveBayes extends InferEngine[UnivariateGaussian, UnivariateGaussian] { d...
danielkorzekwa/bayes-scala
src/main/scala/dk/bayes/dsl/variable/gaussian/univariate/inferUnivariateGaussianEPNaiveBayes.scala
Scala
bsd-2-clause
846