code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package circumflex import core._ package object mail { val MAIL_LOG = new Logger("circumflex.mail") }
inca/circumflex
mail/src/main/scala/package.scala
Scala
bsd-2-clause
107
package se.ramn.bottfarmen.simulation import collection.immutable.Iterable import se.ramn.bottfarmen.api import se.ramn.bottfarmen.simulation.entity.Bot import se.ramn.bottfarmen.simulation.entity.Base import se.ramn.bottfarmen.simulation.entity.BotCommander import se.ramn.bottfarmen.simulation.entity.Position import...
ramn/bottfarmen
common/src/main/scala/simulation/Simulation.scala
Scala
gpl-3.0
1,582
package com.enkidu.lignum.parsers.ast.statement.declarator case class VariableDeclarator(name: String) extends Declarator
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/statement/declarator/VariableDeclarator.scala
Scala
mit
122
import sbt._ import sbt.Keys._ import sbtbuildinfo._ import BuildInfoKeys._ import sbtrelease.Version object SbtBuildInfo { val shortVersion = SettingKey[String]( "short-version" ) def buildSettings( objectName: String, targetPackage: String = "fr.thomasdufour.autodiff" ) = BuildInfoPlugin.projectSettings ++ ...
chwthewke/auto-diff
project/SbtBuildInfo.scala
Scala
apache-2.0
820
/* * Copyright 2011-2022 GatlingCorp (https://gatling.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 appli...
gatling/gatling
gatling-http/src/main/scala/io/gatling/http/protocol/ProxyBuilder.scala
Scala
apache-2.0
1,558
/* * Copyright (c) 2013 Elmar Athmer * * This file is part of SolarSystemGrandTour. * * SolarSystemGrandTour 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 License, or * (at yo...
zauberpony/solarsystem-grand-tour
src/test/scala/net/aerospaceresearch/test/jplparser/data/TripletData.scala
Scala
gpl-3.0
1,262
/* * Copyright (C) 2010 Peter Lewerin <[email protected]> * * The contents of this file are subject to the GNU General Public License * Version 3 (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.gnu.org/copyleft/gpl.html ...
vnkmr7620/kojo
KojoEnv/src/net/kogics/kojo/util/Math.scala
Scala
gpl-3.0
1,128
/* Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
bpn1/ingestion
src/main/scala/de/hpi/ingestion/framework/pipeline/ImplisensePipeline.scala
Scala
apache-2.0
915
/********************************************************************************************************************** * * * Copyright (c) 2013, Reactific Software LLC. All Rights Reserved. ...
reactific/slickery
src/main/scala/com/reactific/slickery/WithSchema.scala
Scala
apache-2.0
2,713
package org.powlab.jeye.tests import org.powlab.jeye.tests.usages._ import org.powlab.jeye.decompile._ import scala.collection.mutable.ArrayBuffer package usages { class UsageTest1Test extends DecompileTestClass(classOf[UsageTest1], false, ArrayBuffer(("s=", "return"), ("returns;", ""))) {} class UsageTest2Test...
powlab/jeye
src/test/scala/org/powlab/jeye/tests/UsagesTests.scala
Scala
apache-2.0
541
/* * (c) Copyright 2014 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
linkedin/RookBoom
services/src/main/scala/com/linkedin/rookboom/extension/AbstractServiceFactory.scala
Scala
apache-2.0
851
/**********************************************************************************************\\ * Rapture JSON Library * * Version 1.1.0 * * ...
joescii/rapture-json-lift
src/serializers.scala
Scala
apache-2.0
2,207
/** * @author Joshua Powers <[email protected]>. */ package edu.gatech.cse8803.main import edu.gatech.cse8803.query.{Group300, Group400} import org.apache.spark.sql.SQLContext import org.apache.spark.{SparkConf, SparkContext} object Main { def main(args: Array[String]) { val conf = new SparkConf() ....
powersj/spark4achilles
src/main/scala/edu/gatech/cse8803/main/Main.scala
Scala
apache-2.0
569
/* * 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...
yiheng/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/tf/loaders/GreaterEqual.scala
Scala
apache-2.0
1,216
/* 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 law or agreed to in writing, software...
rangadi/summingbird
summingbird-scalding/src/main/scala/com/twitter/summingbird/scalding/service/BatchedDeltaService.scala
Scala
apache-2.0
2,309
/*********************************************************************** * 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...
ccri/geomesa
geomesa-fs/geomesa-fs-storage/geomesa-fs-storage-common/src/main/scala/org/locationtech/geomesa/fs/storage/common/metadata/FileBasedMetadata.scala
Scala
apache-2.0
13,572
package yamldict import fileIO._ /** * 名詞項構造データより辞書を構築 */ class NounDict { def createDict(lines: Iterator[String]): NounDict = { lines.next val dict = this.createNounDict(lines) return dict } private def createNounDict(lines: Iterator[String]): NounDict = { val dict = new NounDict lines.foreach { line...
Takeuchi-Lab-LM/scala_asa3
ASA/src/main/scala/yamldict/NounDict.scala
Scala
mit
2,708
package com.imaginea.activegrid.core.models import com.imaginea.activegrid.core.models.SoftwareProcess.{JavaProcess, PythonProcess} import com.typesafe.scalalogging.Logger import org.slf4j.LoggerFactory /** * Created by ranjithrajd on 3/11/16. */ case class SSHBasedStrategy(topology: Topology, ...
eklavya/activeGrid
src/main/scala/com/imaginea/activegrid/core/models/SSHBasedStrategy.scala
Scala
apache-2.0
11,916
package example.travel package model import net.liftweb.common.{Full,Box,Empty,Failure} import net.liftweb.sitemap.Loc._ import scala.xml.NodeSeq import net.liftweb.mapper._ import net.liftweb.util.Helpers._ object Auction extends Auction with LongKeyedMetaMapper[Auction] with CRUDify[Long,Auction]{ overr...
timperrett/lift-in-action
chapter-4/src/main/scala/example/travel/model/Auction.scala
Scala
apache-2.0
3,993
package com.github.cmanou.scrimage.utils.dithering.filters import com.github.cmanou.scrimage.utils.dithering.Utils.ErrorDiffusionValue import com.github.cmanou.scrimage.utils.dithering.algorithms.GenericErrorDiffusion import com.sksamuel.scrimage.filter.MarvinFilter class TwoRowSierraFilter(threshold: Int) extends Ma...
cmanou/scrimage-utils
src/main/scala/com/github/cmanou/scrimage/utils/dithering/filters/TwoRowSierraFilter.scala
Scala
mit
827
package scalaandroid import android.view.{ MenuItem => AMenuItem } object MenuItem { def unapply(i: AMenuItem) = Some(i.getItemId) }
sdb/cloudr
sdroid/src/MenuItem.scala
Scala
gpl-3.0
135
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
tejasapatil/spark
external/avro/src/main/scala/org/apache/spark/sql/avro/package.scala
Scala
apache-2.0
1,651
/* * 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 ...
f7753/ignite
modules/spark/src/main/scala/org/apache/ignite/spark/IgniteContext.scala
Scala
apache-2.0
6,541
package scutil.security import java.security._ import java.text.Normalizer import java.nio.charset.Charset import scutil.core.implicits._ import scutil.lang._ import scutil.codec.Base64 /* object HashSalt { def main(args:Array[String]) { import default._ args match { case Array(password) => val cooked =...
ritschwumm/scutil
modules/jdk/src/main/scala/scutil/security/HashSalt.scala
Scala
bsd-2-clause
2,543
package org.http4s.circe import cats.effect.Sync import org.http4s._ import io.circe._ /** * F-algebra for separating the Sync required for extracting * the Json from the body. As such if F is Sync at some layer, * then this can be used to extract without the lower layer * needing to be aware of the strong co...
ChristopherDavenport/http4s
circe/src/main/scala/org/http4s/circe/JsonDecoder.scala
Scala
apache-2.0
741
package opentrack.jp.station.repository import anorm.SqlParser.str import opentrack.jp.station.{CRS, Location} import play.api.db.Database import anorm._ import concurrent.duration._ import scalacache._ import memoization._ case class StationRepository(db: Database) { def getRelevantStations(station: Location): L...
open-track/journey-planner-scala
app/opentrack/jp/station/repository/StationRepository.scala
Scala
gpl-3.0
779
trait Base[B] { def data: AnyRef; } class M[@specialized(Int) A] class Sub3[@specialized(Int) B](override val data: M[B]) extends Base[B] { assert(data != null) } object Test { def main(args: Array[String]): Unit = { new Sub3[Int](new M[Int]) } }
yusuke2255/dotty
tests/run/t4013b.scala
Scala
bsd-3-clause
267
package reductions import common._ import org.scalameter._ object LineOfSightRunner { val standardConfig = config( Key.exec.minWarmupRuns -> 40, Key.exec.maxWarmupRuns -> 80, Key.exec.benchRuns -> 100, Key.verbose -> true ) withWarmer new Warmer.Default def main(args: Array[String]) { val ...
yurii-khomenko/fpScalaSpec
c3w2reductions/src/main/scala/reductions/LineOfSight.scala
Scala
gpl-3.0
3,849
package com.dwolla.cloudflare.domain.dto.accounts import io.circe.Codec import io.circe.generic.semiauto.deriveCodec case class UserDTO ( id: String, first_name: Option[String], last_name: Option[String], email: String, two_factor_authentication_enabled: Boolean ) object UserDTO { implicit val userDTOCod...
Dwolla/scala-cloudflare
dto/src/main/scala/com/dwolla/cloudflare/domain/dto/accounts/UserDTO.scala
Scala
mit
355
/** * Copyright 2015 Thomson Reuters * * 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...
thomsonreuters/CM-Well
server/cmwell-zstore/src/test/scala/cmwell/zstore/ZStoreSpec.scala
Scala
apache-2.0
5,368
package dotty.tools.dotc package typer import core._ import Phases._ import Contexts._ import parsing.Parsers.Parser import config.Printers._ import util.Stats._ class FrontEnd extends Phase { def name = "frontend" def monitor(doing: String)(body: => Unit)(implicit ctx: Context) = try body catch { ...
DarkDimius/dotty
src/dotty/tools/dotc/typer/FrontEnd.scala
Scala
bsd-3-clause
1,607
/* * Copyright 2017-2020 Aleksey Fomkin * * 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...
fomkin/korolev
modules/korolev/src/main/scala/korolev/state/StateSerializer.scala
Scala
apache-2.0
695
package models.lshw import util.ByteStorageUnit import play.api.libs.json._ import Json.toJson object Disk { type Type = Type.Value object Type extends Enumeration { val Ide = Value("IDE") val Scsi = Value("SCSI") val Flash = Value("PCIe") val CdRom = Value("CD-ROM") } implicit object DiskFo...
Shopify/collins
app/models/lshw/Disk.scala
Scala
apache-2.0
1,399
/* * 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 ...
dubeejw/openwhisk-package-kafka
tests/src/test/scala/system/packages/actionHelper.scala
Scala
apache-2.0
1,434
object Foo { val x = new Object class A(var y: x.type) val a = new A(x) val y: a.y.type = x // 1 |val y: a.y.type = x // | ^ // | Object(x)(a.y) is not a legal path // | since it refers to nonfinal variable y }
som-snytt/dotty
tests/pos/realizable-mut.scala
Scala
apache-2.0
252
/************************************************************************** * * Copyright (c) 2019 Jorge Nunes * **************************************************************************/ package com.varmateo.jeedemos.swing.demo04 object Demo04Main { def main(args: Array[String]): Unit = { val app...
jorgefranconunes/jeedemos
swing/swing-scala-HelloWorld/demos/src/main/scala/com/varmateo/jeedemos/swing/demo04/Demo04Main.scala
Scala
gpl-3.0
374
/* *\\ ** Squants ** ** ** ** Scala Quantities and Units of Measure Library and DSL ** ** (c) 2013-2015, G...
underscorenico/squants
shared/src/main/scala/squants/electro/ElectricPotential.scala
Scala
apache-2.0
3,508
import scala.collection.mutable.MultiMap.* class A
dotty-staging/dotty
tests/untried/neg/noMember1.scala
Scala
apache-2.0
52
/* * 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 ...
yelshater/hadoop-2.3.0
spark-core_2.10-1.0.0-cdh5.1.0/src/main/scala/org/apache/spark/ui/JettyUtils.scala
Scala
apache-2.0
8,875
/* * 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...
http4s/blaze
core/src/test/scala/org/http4s/blaze/pipeline/stages/QuietTimeoutStageSuite.scala
Scala
apache-2.0
2,202
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/cypher/cypher-compiler-2.3/src/test/scala/org/neo4j/cypher/internal/compiler/v2_3/planner/LogicalPlanningConfiguration.scala
Scala
apache-2.0
3,644
package io.youi.stream sealed trait Selector { def lookup(streamable: StreamableHTML): Set[Tag.Open] } object Selector { case class ById(id: String) extends Selector { override def lookup(streamable: StreamableHTML): Set[Tag.Open] = streamable.byId.get(id).toSet } case class ByClass(className: String) ex...
outr/youi
stream/src/main/scala/io/youi/stream/Selector.scala
Scala
mit
1,223
package notebook.front import scala.util.Random import scala.xml.{NodeSeq, UnprefixedAttribute, Null} import play.api.libs.json._ import play.api.libs.json.Json.JsValueWrapper import play.api.libs.json.Json.JsValueWrapper import notebook._ import notebook.JsonCodec._ import notebook.front.widgets.magic._ import notebo...
ranjithamca/spark-notebook
modules/common/src/main/scala/notebook/front/widgets/package.scala
Scala
apache-2.0
19,281
package com.ee.dynamicmongoquery import org.specs2.mutable.Specification import com.mongodb.BasicDBObject import org.junit.runner.RunWith import org.specs2.runner.JUnitRunner @RunWith(classOf[JUnitRunner]) class PlaceholderLookupTest extends Specification { "should traverse Object to find placeholders" in { va...
EqualExperts/mongo-shell-like-query
src/test/scala/com/ee/dynamicmongoquery/PlaceholderLookupTest.scala
Scala
apache-2.0
2,637
package app.components.listtopics import app.components._ import app.{JsGlobalScope, Utils} import japgolly.scalajs.react._ import japgolly.scalajs.react.component.Scala.Unmounted import japgolly.scalajs.react.vdom.html_<^._ import org.scalajs.dom import org.scalajs.dom.raw.ClipboardEvent import shared.SharedConstants...
Igorocky/readtext
client/src/main/scala/app/components/listtopics/ListTopicsPage.scala
Scala
mit
4,974
package com.twitter.finagle.scribe import com.twitter.finagle.stats.{NullStatsReceiver, StatsReceiver} import com.twitter.finagle.thrift.scribe.thriftscala.ResultCode import com.twitter.util.{Return, Throw, Throwables, Try} object ScribeStats { private val Label = "scribe" private[finagle] val Empty = new ScribeS...
twitter/finagle
finagle-scribe/src/main/scala/com/twitter/finagle/scribe/ScribeStats.scala
Scala
apache-2.0
1,588
package org.sapia.mediafire.core import java.io.InputStream import scala.collection.Map import scala.xml.Elem import java.io.File /** * Abstracts access to the Mediafire API. * * @author yduchesne */ trait MfClient { /** * @param credentials the credentials to use. * @return a new MfSession. */ def ...
sapia-oss/mediafire_maven_plugin
core/src/main/scala/org/sapia/mediafire/core/MfClient.scala
Scala
apache-2.0
1,020
package org.katis.capnproto.runtime import implicits._ object TextList extends TextList sealed class TextList private() extends List[Text#Builder, Text#Reader](ElementSize.POINTER) { type Builder = BuilderImpl type Reader = ReaderImpl class ReaderImpl(segment: SegmentReader, ptr: Int, ...
katis/capnp-scala
runtime/shared/src/main/scala-2.11/org/katis/capnproto/runtime/TextList.scala
Scala
mit
1,258
/* * 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 writing, software * distribute...
wvlet/wvlet
wvlet-server/src/main/scala/wvlet/dataflow/server/coordinator/TaskStateListener.scala
Scala
apache-2.0
1,276
package truerss.db case class PluginSource(id: Option[Long], url: String)
truerss/truerss
src/main/scala/truerss/db/PluginSource.scala
Scala
mit
75
/* * Copyright 2012-2013 Stephane Godbillon (@sgodbillon) and Zenexity * * 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 req...
cchantep/ReactiveMongo
driver/src/main/scala/api/collections/GenericCollectionWithQueryBuilder.scala
Scala
apache-2.0
2,635
/* * 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 agreed to in writ...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/ListShouldContainInOrderOnlyLogicalAndSpec.scala
Scala
apache-2.0
55,180
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the Funding entity. */ class FundingGatlingTest extends ...
sandor-balazs/nosql-java
oracle/src/test/gatling/simulations/FundingGatlingTest.scala
Scala
bsd-2-clause
3,286
/* Copyright 2011 Ben Biddington 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 writing, software d...
ben-biddington/Coriander.OAuth
src/org/coriander/Query.scala
Scala
apache-2.0
3,402
package org.jetbrains.plugins.scala package lang package psi package api package base import com.intellij.psi.PsiModifierList import org.jetbrains.plugins.scala.lang.lexer.ScalaModifier import org.jetbrains.plugins.scala.util.EnumSet._ /** * @author Alexander Podkhalyuzin * Date: 22.02.2008 */ trait ScM...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/api/base/ScModifierList.scala
Scala
apache-2.0
1,383
/* * Copyright 2020 Precog Data * * 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 ...
quasar-analytics/quasar
api/src/test/scala/quasar/api/datasource/MockDatasources.scala
Scala
apache-2.0
6,322
package scala.tools.partest.nest object TrapExit { private class TrapExitThrowable(val status: Int) extends Throwable { override def getMessage: String = throw this override def getCause: Throwable = throw this } def apply[A](action: () => A): Either[(Int, Throwable), A] = { val saved = System.getS...
scala/scala-partest
src/main/scala/scala/tools/partest/nest/TrapExit.scala
Scala
apache-2.0
676
package com.datascience.education.tutorialCommon.lecture4 import java.util.UUID /* With duplicate definitions of Email, Employee, and the object that contains the exercises - Employees, all three of these must be abstractly referenced in these test definitions. Employee and Employees both necessitate their own ...
DS12/scala-class
tutorialCommon/src/main/scala/com/datascience/education/tutorialCommon/lecture4/EmployeesTypeclass.scala
Scala
cc0-1.0
632
package org.json4s import text.Document package object native { def parseJson(in: JsonInput, useBigDecimalForDouble: Boolean = false): JValue = JsonMethods.parse(in, useBigDecimalForDouble) def parseJsonOpt(in: JsonInput, useBigDecimalForDouble: Boolean = false): Option[JValue] = JsonMethods.parseOpt(in, ...
nornagon/json4s
native/src/main/scala/org/json4s/native/package.scala
Scala
apache-2.0
545
package com.monovore.example.coast import com.monovore.coast import coast.flow import com.monovore.coast.flow.{Flow, Topic} import scala.collection.immutable.SortedSet /** * A sketch of a denormalization flow -- normalized models come in at the top, * and denormalized versions appear at the bottom. * * This is n...
milinda/coast
core/src/main/scala/com/monovore/example/coast/Denormalize.scala
Scala
apache-2.0
2,726
package diesel import scala.language.higherKinds /** * Lite version of FunctionK (Cats) or NaturalTransformation (Scalaz). * * Conversions from either of those exist in diesel-cats or diesel-scalaz, * */ trait FunK[F[_], G[_]] { def apply[A](fa: F[A]): G[A] }
lloydmeta/diesel
core/src/main/scala/diesel/FunK.scala
Scala
mit
275
/* * Copyright 2014 IBM Corp. * * 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...
bpburns/spark-kernel
kernel/src/main/scala/com/ibm/spark/kernel/protocol/v5/socket/ServerSocketFactory.scala
Scala
apache-2.0
2,637
/* * Copyright © 2015 Reactific Software LLC. All Rights Reserved. * * 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 limitation the rights * to us...
reactific/RxMongo
driver/src/main/scala/rxmongo/driver/ReadPreference.scala
Scala
mit
2,222
package edu.colorado.hopper.state import com.ibm.wala.analysis.pointers.HeapGraph import com.ibm.wala.classLoader.{IClass, IMethod} import com.ibm.wala.ipa.callgraph.propagation.{HeapModel, InstanceKey} import com.ibm.wala.ipa.callgraph.{CGNode, CallGraph} import com.ibm.wala.ipa.cha.IClassHierarchy import com.ibm.wal...
cuplv/hopper
src/main/scala/edu/colorado/hopper/state/Path.scala
Scala
apache-2.0
22,837
package sectery.producers import sectery.BuildInfo import sectery.Producer import sectery.Rx import sectery.Tx import zio.ZIO object Version extends Producer: override def help(): Iterable[Info] = Some(Info("@version", "@version")) override def apply(m: Rx): ZIO[Any, Nothing, Iterable[Tx]] = m match ...
earldouglas/sectery
modules/producers/src/main/scala/sectery/producers/Version.scala
Scala
mit
484
package spec import com.outr.arango._ import com.outr.arango.query._ import com.outr.arango.upgrade.DatabaseUpgrade import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AsyncWordSpec import profig.Profig import scala.collection.mutable.ListBuffer import scala.concurrent.Future import scala.io.S...
outr/arangodb-scala
driver/src/test/scala/spec/GraphSpec.scala
Scala
mit
8,143
package helpers import play.api.data.validation.ValidationError import play.api.libs.json._ import scala.language.implicitConversions /** * @author [email protected] */ object ExtLang { object Lang implicit def wrappedLang(lang: Lang.type): play.api.i18n.Lang.type = play.api.i18n.Lang type Lang = play.a...
lizepeng/app.io
modules/models/app/helpers/ExtLang.scala
Scala
apache-2.0
775
/* * Copyright 2017 PayPal * * 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 writin...
az-qbradley/squbs
squbs-httpclient/src/test/scala/org/squbs/httpclient/ClientConfigurationSpec.scala
Scala
apache-2.0
7,061
package com.github.swagger.akka import java.io.IOException import com.fasterxml.jackson.core.JsonParser import com.fasterxml.jackson.databind.module.SimpleModule import com.fasterxml.jackson.databind.{DeserializationContext, JsonDeserializer, JsonNode} import io.swagger.models._ import io.swagger.models.auth.Security...
helloscala/helloscala
hs-swagger-akka-http/src/main/scala/com/github/swagger/akka/DeserializationModule.scala
Scala
apache-2.0
1,909
package com.twitter.finagle.http.codec import com.twitter.finagle.http.{Request, Response} import com.twitter.finagle.netty4.http.Netty4HttpCodec /** * Utilities for encoding/decoding [[Request]]s and [[Response]]s to/from Strings * and byte arrays. */ object HttpCodec { /** Encode a [[Request]] to a String. */...
luciferous/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/codec/HttpCodec.scala
Scala
apache-2.0
1,325
// Copyright: 2010 - 2016 https://github.com/ensime/ensime-server/graphs // Licence: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.intg import akka.event.slf4j.SLF4JLogging import org.ensime.api._ import org.ensime.fixture._ import org.scalatest.{ Matchers, WordSpec } import org.ensime.util.file._ //...
j-mckitrick/ensime-sbt
src/sbt-test/ensime-sbt/ensime-server/core/src/it/scala/org/ensime/intg/JavaWorkflow.scala
Scala
apache-2.0
1,368
package org.scalawiki.bots.stat import org.scalawiki.dto.{Page, Revision} import org.specs2.mutable.Specification class AnnotationSpec extends Specification { def fromRevs(revs: Revision*) = new Annotation(Page(1).copy(revisions = revs)) "annotation" should { "not fail with no revisions" in { val...
intracer/scalawiki
scalawiki-bots/src/test/scala/org/scalawiki/bots/stat/AnnotationSpec.scala
Scala
apache-2.0
2,448
/* * Copyright (c) 2015, Nightfall Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
Nightfall/Instrumentality
core/src/main/scala/moe/nightfall/instrumentality/editor/control/LabelElement.scala
Scala
bsd-2-clause
1,663
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/types/DataTypeSuite.scala
Scala
apache-2.0
20,851
package com.twitter.finagle.netty4.ssl import io.netty.channel.Channel import io.netty.channel.embedded.EmbeddedChannel import io.netty.handler.ssl.SslHandler import io.netty.util.concurrent.DefaultPromise import org.junit.runner.RunWith import org.scalatest.{FunSuite, OneInstancePerTest} import org.scalatest.junit.JU...
spockz/finagle
finagle-netty4/src/test/scala/com/twitter/finagle/netty4/ssl/SslConnectHandlerTest.scala
Scala
apache-2.0
2,839
package slick.jdbc import java.sql.{PreparedStatement, ResultSet} import slick.ast.BaseTypedType import slick.profile.RelationalProfile /** A JdbcType object represents a Scala type that can be * used as a column type in the database. Implicit JdbcTypes * for the standard types of a profile are provided by the dr...
jkutner/slick
slick/src/main/scala/slick/jdbc/JdbcType.scala
Scala
bsd-2-clause
2,322
package scalastudy.concurrent.wordstat import akka.actor.{Actor, ActorRef} import akka.event.Logging import scala.collection.immutable.List import scalastudy.concurrent.ActorTerminationMsg /** * Created by lovesqcc on 16-4-2. */ case class WordListWrapper(wordlist: List[String]) { def getWordlist = wordlist } c...
shuqin/ALLIN
src/main/java/scalastudy/concurrent/wordstat/AnalysisWordActor.scala
Scala
gpl-3.0
1,136
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/zen
ml/src/main/scala/com/github/cloudml/zen/ml/recommendation/MVMModel.scala
Scala
apache-2.0
6,009
package io.github.meln1k.vkApi.models.users case class UserId(value: String)
meln1k/vk-scala-api
src/main/scala/io/github/meln1k/vkApi/models/users/UserId.scala
Scala
apache-2.0
79
package model.linkedin import akka.japi.Option.Some import com.byteslounge.slickrepo.meta.Entity case class LinkedinAuth(id: Option[String], displayName: String, userId: Int) extends Entity[LinkedinAuth, String] { override def withId(id: String): LinkedinAuth = this.copy(id = Some(id)) }
sysgears/apollo-universal-starter-kit
modules/authentication/server-scala/src/main/scala/model/linkedin/LinkedinAuth.scala
Scala
mit
294
/* * 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
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/Statistics.scala
Scala
apache-2.0
12,139
/* 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 to in writing, software distr...
twitter/iago
src/test/scala/com/twitter/parrot/server/RequestQueueSpec.scala
Scala
apache-2.0
2,020
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/iht-frontend
test/iht/views/registration/RegistrationSummaryViewTest.scala
Scala
apache-2.0
17,643
package org.buttercoin.common import models.money._ import messages.CreditTrade import com.typesafe.config._ import scalaz._ import Scalaz._ package object fees { trait FeeStrategyIDTag type FeeStrategyID = String @@ FeeStrategyIDTag def FeeStrategyID(uuid: String): FeeStrategyID = Tag[String, FeeStrategyIDTag...
buttercoin/engine
common/src/main/scala/engine/FeeStrategy.scala
Scala
mit
694
package com.faacets.qalg package indup package optional import scala.{specialized => sp} import spire.algebra._ import spire.syntax.cfor._ import algebra._ trait Index1Order[T, A] extends Order[T] { implicit def I: Index1[T, _, A] implicit def orderA: Order[A] def compare(u: T, v: T): Int = { assert(I.si...
denisrosset/qalg
indup/src/main/scala/qalg/indup/optional/Index1Order.scala
Scala
mit
525
import org.scalatest._ import js.hw4.ast._ import HW4._ class HW4Spec extends FlatSpec { "compressRec/compressFold" should "compress List(1, 2, 2, 3, 3, 3)" in { val l1 = List(1, 2, 2, 3, 3, 3) val gold1 = List(1, 2, 3) assertResult(gold1) { compressRec(l1) } assertResult(gold1) { compressFold(l1) }...
mpgarate/ProgLang-Assignments
HW4/HW4/src/test/scala/HW4Spec.scala
Scala
mit
3,405
/* * Copyright (c) 2010-2015 SAP SE. * 2016-2018 The University of Sheffield. * * All rights reserved. This program and the accompanying materials * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://ww...
DASPA/DASCA
com.logicalhacking.dasca.crosslanguage/src/main/scala/com/logicalhacking/dasca/crosslanguage/builder/EmptyCallGraph.scala
Scala
epl-1.0
2,706
object Main extends App { os.copy( os.pwd/"osLibTest"/"src"/"test"/"resources"/"foofoo.txt", os.pwd/"tmp"/"foofoo_copy.txt" ) }
grscheller/scheller-linux-archive
grok/Scala2/osLib/osLibTest/src/main/scala/Main.scala
Scala
bsd-3-clause
140
package sabre.system import akka.actor.{ Actor, ActorRef, ActorSystem, Props } import akka.remote.RemoteClientLifeCycleEvent import com.typesafe.config.ConfigFactory import java.net.InetAddress import sabre.algorithm._ import sabre.system.Master._ import sabre.system.Reaper._ import scala.Console.err object Sabre { ...
adelbertc/sabre
src/main/scala/sabre/system/Sabre.scala
Scala
bsd-3-clause
2,014
package scrape.model import scala.collection.GenIterable case class Train( name: String, number: String, typ: String, stops: GenIterable[Stop], url: String, special: Boolean )
ponkotuy/train-stamp-rally
app/scrape/model/Train.scala
Scala
apache-2.0
190
/* * 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 ...
zuotingbing/spark
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala
Scala
apache-2.0
42,339
package metaconfig.cli import metaconfig.generic.Setting case class TabCompletionContext( format: Option[String], current: Option[Int], arguments: List[String], last: String, secondLast: Option[String], setting: Option[Setting], allSettings: Map[String, Setting], app: CliApp )
olafurpg/metaconfig
metaconfig-core/shared/src/main/scala/metaconfig/cli/TabCompletionContext.scala
Scala
apache-2.0
312
package com.themillhousegroup.l7.commands import org.apache.commons.lang3.StringUtils trait CommandProcessor { val knownCommands: Seq[Command] val optionPrefix = "--" val typoThreshold = 3 def displayCommands = { println("Usage: Provide a command and optional args") println("Available commands are:\\...
themillhousegroup/l7-merge
src/main/scala/com/themillhousegroup/l7/commands/CommandProcessor.scala
Scala
mit
1,475
package chat.tox.antox.wrapper import java.util import java.util.{Collections, Locale} import scala.collection.JavaConversions._ class AntoxFriendList { private var friends: util.List[Friend] = Collections.synchronizedList(new util.ArrayList[Friend]()) def this(friends: util.ArrayList[Friend]) { this() ...
gale320/Antox
app/src/main/scala/chat/tox/antox/wrapper/AntoxFriendList.scala
Scala
gpl-3.0
2,579
/* * Copyright (C) 2005, The OpenURP Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This...
openurp/api
edu/src/main/scala/org/openurp/edu/clazz/model/ClazzGroup.scala
Scala
lgpl-3.0
1,337
import spire.algebra.Eq package object ndimrtree { def eqInstance[T] = new Eq[T] { def eqv(x: T, y: T) = x == y } }
drostron/ndim-rtree
src/main/scala/ndimrtree/package.scala
Scala
mit
121
/* * Copyright 2009-2010 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...
wsaccaco/lift
framework/lift-modules/lift-jta/src/main/scala/net/liftweb/transaction/hibernate/LiftTransactionManagerLookup.scala
Scala
apache-2.0
1,215
package lila.socket import ornicar.scalalib.Zero import play.api.libs.iteratee.{ Iteratee, Enumerator } import play.api.libs.json._ trait WithSocket { type JsChannel = play.api.libs.iteratee.Concurrent.Channel[JsValue] type JsEnumerator = Enumerator[JsValue] type JsIteratee = Iteratee[JsValue, _] type JsSoc...
bjhaid/lila
modules/socket/src/main/WithSocket.scala
Scala
mit
362
package microtools.logging /** * A generic logging context. * A logging context contains all information that should appear in every log entry. E.g. * - application version * - uri of the request * - flow/correlation-id of the request * * Additionally a logging context enables/disables business deb...
21re/play-micro-tools
src/main/scala/microtools/logging/LoggingContext.scala
Scala
mit
1,072
package com.twitter.finagle.memcached.unit.protocol import org.jboss.netty.buffer.{ChannelBuffers, ChannelBuffer} import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import com.twitter.finagle.memcached.protocol.KeyValidation import com.twitter.io.Buf @RunWith(classOf...
spockz/finagle
finagle-memcached/src/test/scala/com/twitter/finagle/memcached/unit/protocol/KeyValidationTest.scala
Scala
apache-2.0
1,255