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 com.nabijaczleweli.minecrasmer.util import com.nabijaczleweli.minecrasmer.compat.ICompat import com.nabijaczleweli.minecrasmer.reference.{Configuration, Reference} import com.nabijaczleweli.minecrasmer.util.StringUtils._ import net.minecraftforge.fml.common.Loader.isModLoaded object CompatUtil { implicit cla...
nabijaczleweli/ASMifier
src/main/scala/com/nabijaczleweli/minecrasmer/util/CompatUtil.scala
Scala
mit
1,856
package vggames.dbff import javax.servlet.ServletContextListener import javax.servlet.ServletContextEvent import java.util.Enumeration import scala.io.Source import scala.slick.driver.SQLiteDriver.simple._ import scala.slick.jdbc.JdbcBackend.Database import scala.slick.jdbc.JdbcBackend.Database.dynamicSession import j...
vidageek/games
web/src/main/scala/vggames/dbff/Listener.scala
Scala
gpl-3.0
2,653
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package scaps.eclipse.ui.view.handlers import org.eclipse.core.commands.AbstractHandler import org.eclipse.core.c...
flomerz/scala-ide-scaps
scala-ide-scaps-plugin/src/main/scala/scaps/eclipse/ui/view/handlers/ScapsRunIndexerHandler.scala
Scala
mpl-2.0
697
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.testsuite.javalib.util im...
scala-js/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/javalib/util/FormatterJSTest.scala
Scala
apache-2.0
741
/** * A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance * with RFC 2045.<br><br> * On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster * on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1...
ZizhengTai/http4s
parboiled2/src/main/scala/org/http4s/internal/parboiled2/util/Base64.scala
Scala
apache-2.0
13,520
/* * The MIT License (MIT) * * Copyright (c) 2015 Enterprise Data Management Council * * 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...
edmcouncil/rdf-serializer
src/main/scala/org/edmcouncil/rdf_toolkit/owlapi_serializer/ImportResolver.scala
Scala
mit
5,867
package chapter04 // What happens when you zip together two strings, such as "Hello".zip("World")? // Come up with a plausible use case. object Exercise10 extends App { println("Hello".zip("World")) // Keyboard layout. println("qwertyu".zip("йцукенг")) }
vsuharnikov/books-exercises
scala/scala-for-the-impatient/src/main/scala/chapter04/Exercise10.scala
Scala
mit
270
package ammonite.sshd import java.io.{OutputStream, InputStream} import ammonite.sshd.util.Implicits import org.apache.sshd class ShellSession(runner: SshServer.TerminalTask) extends sshd.server.Command { var in: InputStream = _ var out: OutputStream = _ var err: OutputStream = _ var exit: Option[sshd.server...
dant3/ammonite-sshd
src/main/scala/ammonite/sshd/ShellSession.scala
Scala
apache-2.0
1,506
/*********************************************************************** * 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 ...
spandanagrawal/geomesa
geomesa-hbase/geomesa-hbase-datastore/src/main/scala/org/locationtech/geomesa/hbase/index/HBaseZ3Index.scala
Scala
apache-2.0
2,905
package com.typesafe.sbt.packager.archetypes import sbt._ /** * Available settings/tasks for the [[com.typesafe.sbt.packager.archetypes.JavaAppPackaging]] * and all depending archetypes. */ trait JavaAppKeys { // TODO - we should change this key name in future versions; it also specified // the location of...
fsat/sbt-native-packager
src/main/scala/com/typesafe/sbt/packager/archetypes/JavaAppKeys.scala
Scala
bsd-2-clause
1,063
package mechanics import scala.collection.mutable.Buffer class Cell(val terrainType: Terrain.Value) { private val charBuffer = Buffer[Character]() private var buildingOption: Option[Building] = None private var buildingPartOption: Option[(Int, Int)] = None private val itemBuffer = Buffer[Item]() def add(...
Berthur/AgeOfLords
src/mechanics/Cell.scala
Scala
gpl-3.0
851
/* * Copyright 2015 Nicolas Rinaudo * * 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...
nrinaudo/scala-csv
laws/shared/src/main/scala/kantan/csv/laws/discipline/CellEncoderTests.scala
Scala
mit
872
/* * Copyright 2014–2018 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/slamengine
sst/src/main/scala/quasar/sst/ExtractPrimary.scala
Scala
apache-2.0
3,310
/* * sbt * Copyright 2011 - 2018, Lightbend, Inc. * Copyright 2008 - 2010, Mark Harrah * Licensed under Apache License 2.0 (see LICENSE) */ package sbt.internal.util import Classes.Applicative import Types._ /** * An abstraction over a higher-order type constructor `K[x[y]]` with the purpose of abstracting * ...
sbt/sbt
internal/util-collection/src/main/scala/sbt/internal/util/AList.scala
Scala
apache-2.0
15,021
/* * 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 ...
chenc10/Spark-PAF
streaming/src/main/scala/org/apache/spark/streaming/dstream/InputDStream.scala
Scala
apache-2.0
4,593
package com.stulsoft.graphx import org.apache.spark._ import org.apache.spark.graphx._ // To make some of the examples work we will also need RDD import org.apache.spark.rdd.RDD /** * @see [[https://spark.apache.org/docs/latest/graphx-programming-guide.html#getting-started Getting Started]] * @author Yuriy Stul. ...
ysden123/poc
pspark/graphx/src/main/scala/com/stulsoft/graphx/PropertyGraph.scala
Scala
mit
2,263
import sbt._ import sbt.Keys._ import sbtfilter.Plugin.FilterKeys._ import scoverage.ScoverageSbtPlugin._ object Build extends sbt.Build { lazy val avpath = Project("wandou-avpath", file(".")) .settings(basicSettings: _*) .settings(Formatting.settings: _*) .settings(Formatting.buildFileSettings: _*) ...
wandoulabs/avpath
project/Build.scala
Scala
apache-2.0
5,606
package org.labrad.types import scala.collection.mutable object Parsers { import fastparse.noApi._ import org.labrad.util.Parsing._ import org.labrad.util.Parsing.AllowWhitespace._ private def stripComments(tag: String): String = tag.replaceAll("""\\{[^\\{\\}]*\\}""", "") // remove bracketed comments ...
labrad/scalabrad
core/src/main/scala/org/labrad/types/Type.scala
Scala
mit
15,895
package com.bitunified.cb.node class NodeCluster (sizes:Int,starts:Int){ var size:Int=sizes var start:Int=starts var end:Int=(start+(size-1)) }
bitunified/node-platform
np-server/src/main/scala-2.11/com/bitunified/cb/node/NodeCluster.scala
Scala
mit
151
package im.actor.server.cqrs import akka.actor.{ ActorRef, ActorRefFactory, PoisonPill, Props } import akka.pattern.ask import akka.http.scaladsl.util.FastFuture import akka.persistence.SnapshotMetadata import akka.util.Timeout import im.actor.config.ActorConfig import im.actor.serialization.ActorSerializer import sc...
actorapp/actor-platform
actor-server/actor-core/src/main/scala/im/actor/server/cqrs/ResumableProjection.scala
Scala
agpl-3.0
2,663
package org.psolution.altu.admin.api.swagger import org.psolution.altu.admin.api.route.{InfoService, MenuService} import scala.collection.immutable.HashSet object SwaggerApiRegistry { def getRegistredInstances : Set[Class[_]] = { var classes = new HashSet[Class[_]] classes.+=(classOf[InfoService]) cla...
PublicSolution/altu-admin
api/src/main/scala/org/psolution/altu/admin/api/swagger/SwaggerApiRegistry.scala
Scala
apache-2.0
369
package com.airbnb.aerosolve.training import java.io.{StringReader, BufferedWriter, BufferedReader, StringWriter} import java.util import com.airbnb.aerosolve.core.models.SplineModel.WeightSpline import com.airbnb.aerosolve.core.models.{ModelFactory, SplineModel} import com.airbnb.aerosolve.core.{Example, FeatureVect...
zcqqq/aerosolve
training/src/test/scala/com/airbnb/aerosolve/training/SplineTrainerTest.scala
Scala
apache-2.0
8,562
/*********************************************************************** * 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-index-api/src/test/scala/org/locationtech/geomesa/index/stats/StatsBasedEstimatorTest.scala
Scala
apache-2.0
2,443
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.ref class SoftR...
lrytz/scala
src/library/scala/ref/SoftReference.scala
Scala
apache-2.0
1,287
package scalariform.formatter import scalariform.parser._ import scalariform.formatter.preferences._ trait AnnotationFormatter { self: HasFormattingPreferences with TypeFormatter with ExprFormatter ⇒ def format(annotation: Annotation)(implicit formatterState: FormatterState): FormatResult = { val Annotation(_,...
jkinkead/scalariform
scalariform/src/main/scala/scalariform/formatter/AnnotationFormatter.scala
Scala
mit
789
package com.github.ldaniels528.trifecta.modules.kafka import java.io.PrintStream import java.text.SimpleDateFormat import java.util.Date import _root_.kafka.common.TopicAndPartition import com.github.ldaniels528.commons.helpers.OptionHelper._ import com.github.ldaniels528.commons.helpers.ResourceHelper._ import com.g...
ldaniels528/trifecta
app-cli/src/main/scala/com/github/ldaniels528/trifecta/modules/kafka/KafkaModule.scala
Scala
apache-2.0
44,715
/* * Copyright 2001-2008 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
kevinwright/scalatest
src/main/scala/org/scalatest/fixture/FixtureSuite.scala
Scala
apache-2.0
26,330
/* * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package play.core.server import com.google.common.io.Files import com.typesafe.config.ConfigException import java.io.File import java.nio.charset.Charset import java.util.Properties import org.specs2.mutable.Specification import play.api.{ Mode,...
jyotikamboj/container
pf-framework/src/play-server/src/test/scala/play/core/server/ServerStartSpec.scala
Scala
mit
13,739
package model.json /** * Created by camilosampedro on 29/01/17. */ case class SSHOrderJson(superUser: Boolean, interrupt: Boolean, command: String)
camilosampedro/Aton
app/model/json/SSHOrderJson.scala
Scala
gpl-3.0
153
package edu.gemini.osgi.tools.idea import edu.gemini.osgi.tools.FileUtils._ import IdeaModule._ import java.io.{FileFilter, File} import edu.gemini.osgi.tools.{Version, BundleVersion} class IdeaModule( dir: File, // folder the IML file will be in depMods: Seq[String], // modules we need to refer to dep...
arturog8m/ocs
project/src/main/scala/edu/gemini/osgi/tools/idea/IdeaModule.scala
Scala
bsd-3-clause
3,819
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.maven import java.io.File import java.util.Collections import java.util.{ List => JList } import com.lightbend.lagom.dev.PortAssigner.ProjectName import com.lightbend.lagom.dev.Colors import com.lightbend.lagom.dev.Console...
lagom/lagom
dev/maven-plugin/src/main/scala/com/lightbend/lagom/maven/ServiceMojos.scala
Scala
apache-2.0
11,737
package org.jetbrains.plugins.scala.lang.refactoring.move.members import com.intellij.openapi.actionSystem.DataContext import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.{PsiElement, PsiReference} import com.intellij.refactoring.move.MoveHandlerDelegate import...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/refactoring/move/members/ScalaMoveMembersHandler.scala
Scala
apache-2.0
2,254
package com.typesafe.slick.docs //#imports import scala.concurrent.ExecutionContext.Implicits.global import slick.jdbc.H2Profile.api._ import slick.jdbc.H2Profile //#imports object CodeGenerator extends App { val uri = "#slick.db.default" val profile = "slick.jdbc.H2Profile" val jdbcDriver = "org.h2.Driver" v...
Asamsig/slick
doc/code/CodeGenerator.scala
Scala
bsd-2-clause
2,553
/* # Copyright 2016 Georges Lipka # # 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 wr...
glipka/Easy-React-With-ScalaJS
src/main/scala/com/glipka/easyReactJS/reactRouter/Miss.scala
Scala
apache-2.0
757
import org.scalatest._ import scala.collection.immutable._ import alexadewit_on_github.unit_converter._ import argonaut._, Argonaut._, DecodeResult._ import MeasurementSystemCodecs._ class MeasurementSystemSpec extends FlatSpec { val mililitre = UnitOfMeasure("Millilitre", "mL", 1, Volume ) val decilitre = Un...
AlexaDeWit/UnitConverter
src/test/scala/MeasurementSystem.scala
Scala
bsd-3-clause
4,400
package io.reactors package container import io.reactors.algebra._ import scala.collection._ /** Stores elements of a monoid. * * Incrementally computes an aggregation of the stored elements, * using a binary associative operator. The aggregation can be accessed * with the `signal` method. */ class Monoid...
storm-enroute/reactors
reactors-container/shared/src/main/scala/io/reactors/container/MonoidCatamorph.scala
Scala
bsd-3-clause
7,592
/* * 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 ...
publicRoman/spark
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/PodWithDetachedInitContainer.scala
Scala
apache-2.0
1,025
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
laserson/adam
adam-core/src/main/scala/org/bdgenomics/adam/instrumentation/Timers.scala
Scala
apache-2.0
6,713
package io.github.binaryfoo.lagotto.shell import java.io.File import io.github.binaryfoo.lagotto.reader.FileIO import io.github.binaryfoo.lagotto.{AggregateLogEntry, JposEntry, LagoTest} class LogFilterTest extends LagoTest { import io.github.binaryfoo.lagotto.LogFilters.NaiveParser.LogFilter import io.github.b...
binaryfoo/lagotto
src/test/scala/io/github/binaryfoo/lagotto/shell/LogFilterTest.scala
Scala
mit
6,783
package com.twitter.querulous.query import java.sql.{Timestamp, Connection} class DebuggingQueryFactory(queryFactory: QueryFactory, log: String => Unit) extends QueryFactory { def apply(connection: Connection, queryClass: QueryClass, query: String, params: Any*) = { new DebuggingQuery(queryFactory(connection, q...
kievbs/querulous210
src/main/scala/com/twitter/querulous/query/DebuggingQuery.scala
Scala
apache-2.0
1,252
/* * 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 ...
goldmedal/spark
core/src/test/scala/org/apache/spark/shuffle/BlockStoreShuffleReaderSuite.scala
Scala
apache-2.0
6,388
package com.nextcentury.techexchange.todofrp import javax.ws.rs.ext.ExceptionMapper import javax.ws.rs.ext.Provider import javax.ws.rs.core.Response import javax.ws.rs.Produces @Provider @Produces(Array("application/json")) class NoSuchElementExceptionMapper extends ExceptionMapper[NoSuchElementException] { overrid...
rpokorny/techexchange-frp-todolist
backend/src/main/scala/com/nextcentury/techexchange/todofrp/NoSuchElementExceptionMapper.scala
Scala
apache-2.0
447
/* Copyright (c) 2013-2015, David B. Dahl, Brigham Young University 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, this list of conditions and ...
ankurmitujjain/incubator-zeppelin
r/src/main/scala/org/apache/zeppelin/rinterpreter/rscala/RClient.scala
Scala
apache-2.0
20,746
package models import scala.annotation.tailrec /** * Created by einevea on 27/01/15. */ abstract class Item(id:Long, name:String, description:String) { def getPrice():Price } case class Simple(id:Long, name:String, description:String, price:Price) extends Item(id, name, description){ override def getPrice(): ...
einevea/pizzaPlay
app/models/Item.scala
Scala
mit
1,148
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.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://...
virtualirfan/monifu
monifu/shared/src/test/scala/monifu/reactive/internals/builders/TimerSuite.scala
Scala
apache-2.0
1,717
package xitrum.handler import java.net.SocketAddress import scala.collection.mutable.{Map => MMap} import nl.grons.metrics.scala.Histogram import io.netty.handler.codec.http.{HttpRequest, HttpResponse} import xitrum.{Action, Config, Log} import xitrum.scope.request.RequestEnv import xitrum.sockjs.SockJsAction import...
georgeOsdDev/xitrum
src/main/scala/xitrum/handler/AccessLog.scala
Scala
mit
4,274
abstract class A { val x: Nothing = exit() x./* */asInstanceOf[String] x./* */hashCode def anyObject[T](): T anyObject()./* */asInstanceOf[String] }
ilinum/intellij-scala
testdata/resolve2/basic/Nothing.scala
Scala
apache-2.0
159
package neuroflow.nets.gpu import breeze.linalg._ import breeze.stats._ import jcuda.jcublas.{JCublas2, cublasHandle} import neuroflow.core.Activator._ import neuroflow.core.IllusionBreaker.SettingsNotSupportedException import neuroflow.core.Network._ import neuroflow.core.{CanProduce, _} import neuroflow.cuda._ impor...
zenecture/neuroflow
core/src/main/scala/neuroflow/nets/gpu/ConvNetwork.scala
Scala
apache-2.0
25,046
/* * Copyright (c) 2014-15 Miles Sabin * * 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...
isaka/shapeless
core/src/main/scala/shapeless/ops/unions.scala
Scala
apache-2.0
8,857
/* * Copyright 2012-2014 Comcast Cable Communications Management, 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 * * Unl...
Comcast/sirius
src/main/scala/com/comcast/xfinity/sirius/uberstore/seqindex/SeqIndexBinaryFileOps.scala
Scala
apache-2.0
5,354
package com.clemble.query.model /** * Simple abstraction to represent field Projection */ sealed trait Projection case class Include(field: String) extends Projection case class Exclude(field: String) extends Projection
clemble/scala-query-dsl
src/main/scala/com/clemble/query/model/Projection.scala
Scala
apache-2.0
224
package io.getquill.quotation import scala.reflect.ClassTag import io.getquill.ast._ import io.getquill.norm.BetaReduction import io.getquill.util.Messages.RichContext import io.getquill.util.Interleave import io.getquill.dsl.CoreDsl import scala.collection.immutable.StringOps import scala.reflect.macros.TypecheckExce...
jcranky/quill
quill-core/src/main/scala/io/getquill/quotation/Parsing.scala
Scala
apache-2.0
19,357
package org.webant.worker.config import java.io.File import org.apache.commons.io.FileUtils import org.apache.commons.lang3.StringUtils import org.apache.log4j.LogManager import org.webant.commons.entity.SiteConfig import org.webant.commons.entity.SiteConfig.{HttpConfig, LinkProvider, ProcessorConfig, StoreProvider} ...
sutine/webant
webant-worker/src/main/scala/org/webant/worker/config/SiteConfigBuilder.scala
Scala
apache-2.0
5,230
package com.chatwork.sbt.aws.core import java.io.File import com.amazonaws.AmazonWebServiceClient import com.amazonaws.auth.profile.ProfileCredentialsProvider import com.amazonaws.auth.{ AWSCredentialsProviderChain, EnvironmentVariableCredentialsProvider, InstanceProfileCredentialsProvider, SystemPropertiesCredential...
yoshiyoshifujii/sbt-aws
sbt-aws-core/src/main/scala/com/chatwork/sbt/aws/core/SbtAwsCore.scala
Scala
mit
3,170
package com.yannick_cw.elastic_indexer4s.elasticsearch.index_ops import cats.data.EitherT import cats.implicits._ import com.sksamuel.elastic4s.http.ElasticDsl.{addAlias, removeAlias, search, _} import com.sksamuel.elastic4s.http.settings.IndexSettingsResponse import com.sksamuel.elastic4s.http.{ElasticClient, Respons...
yannick-cw/elastic-indexer4s
src/main/scala/com/yannick_cw/elastic_indexer4s/elasticsearch/index_ops/EsOpsClientApi.scala
Scala
mit
3,652
/* * Copyright (C) 2014 Stratio (http://stratio.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 app...
adelapena/cassandra-lucene-index
plugin/src/main/scala/com/stratio/cassandra/lucene/index/FSIndex.scala
Scala
apache-2.0
6,672
/* * Copyright 1998-2015 Linux.org.ru * 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...
ymn/lorsource
src/main/scala/ru/org/linux/user/RemarkDao.scala
Scala
apache-2.0
4,477
// goseumdochi: experiments with incarnation // Copyright 2016 John V. Sichi // // 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 // // Un...
lingeringsocket/goseumdochi
base/src/main/scala/org/goseumdochi/vision/BlobAnalyzer.scala
Scala
apache-2.0
4,966
package macrolog import macrolog.TraceQualifier.DefinedTrace /** * @author Maksim Ochenashko */ trait LoggingContext trait TraceQualifierLoggingContext extends LoggingContext { def traceQualifier: DefinedTrace } object TraceQualifierLoggingContext { def unapply(arg: TraceQualifierLoggingContext): Option[...
iRevive/macrolog
src/main/scala/macrolog/LoggingContext.scala
Scala
mit
562
/* * Copyright (c) 2017. Yuriy Stul */ package com.stulsoft.avro import java.io.File import org.apache.avro.Schema import org.apache.avro.file.{DataFileReader, DataFileWriter} import org.apache.avro.generic.{GenericData, GenericRecord} import org.apache.avro.specific.{SpecificDatumReader, SpecificDatumWriter} imp...
ysden123/poc
avro/src/main/scala/com/stulsoft/avro/Main2.scala
Scala
mit
2,097
/* * 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 ...
manishgupta88/carbondata
streaming/src/main/scala/org/apache/carbondata/streaming/parser/FieldConverter.scala
Scala
apache-2.0
4,528
import Dependencies._ import com.typesafe.sbt.SbtNativePackager._ import com.typesafe.sbt.packager.docker._ import com.typesafe.sbt.packager.linux._ import sbt.Keys._ import sbt._ import scoverage.ScoverageSbtPlugin object BalboaAgent extends DockerKeys with LinuxKeys { lazy val settings: Seq[Setting[_]] = BuildSett...
socrata-platform/balboa
project/BalboaAgent.scala
Scala
apache-2.0
1,333
/* * 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 ...
goldmedal/spark
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala
Scala
apache-2.0
3,619
package doobie.util import doobie.enum.nullability._ import doobie.enum.parametermode._ import doobie.enum.jdbctype._ import doobie.util.meta._ import doobie.util.capture._ import doobie.util.pretty._ import doobie.util.meta._ import scala.Predef._ // TODO: minimize import scala.reflect.runtime.universe.TypeTag impo...
coltfred/doobie
core/src/main/scala/doobie/util/analysis.scala
Scala
mit
11,014
/* * Algorithm.scala * (MutagenTx) * * Copyright (c) 2015 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de */ package de.sciss.mutagentx import java.uti...
Sciss/MutagenTx
src/main/scala/de/sciss/mutagentx/Algorithm.scala
Scala
gpl-3.0
7,856
package mesosphere.marathon.tasks import org.apache.mesos.Protos.{ Value, Resource } import org.slf4j.LoggerFactory import scala.collection.JavaConverters._ object ResourceUtil { private[this] val log = LoggerFactory.getLogger(getClass) /** * The resources in launched tasks, should * be consumed from re...
quamilek/marathon
src/main/scala/mesosphere/marathon/tasks/ResourceUtil.scala
Scala
apache-2.0
5,295
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/nodes/logical/FlinkLogicalSort.scala
Scala
apache-2.0
5,158
/** * Copyright (C) 2016 Verizon. 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 applicable law o...
Verizon/trapezium
framework/src/test/scala/com/verizon/bda/trapezium/framework/handler/TestHttpServlet2.scala
Scala
apache-2.0
2,210
package com.typesafe.slick.testkit.tests import com.typesafe.slick.testkit.util.{RelationalTestDB, AsyncTest} import scala.concurrent.Future class NestingTest extends AsyncTest[RelationalTestDB] { import tdb.profile.api._ def testNestedTuples = { import TupleMethods._ class T(tag: Tag) extends Table[(I...
slick/slick
slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/NestingTest.scala
Scala
bsd-2-clause
10,302
/** * gilbert - Distributed Linear Algebra on Sparse Matrices * Copyright (C) 2013 Sebastian Schelter * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or...
sscdotopen/gilbert
src/main/scala/org/gilbertlang/shell/printPlan.scala
Scala
gpl-3.0
4,315
class Lst[+A] { def map[B, That](f: A => B)(implicit bf: collection.BuildFrom[List[A], B, That]): That = ??? } object Test { def foo(l: Lst[Int]) = l.map[Int, List[String]](x => 1) // error }
dotty-staging/dotty
tests/neg/i4986a.scala
Scala
apache-2.0
197
package systems.opalia.commons package object number { implicit class StringToNumberImprovements(string: String) { import scala.util.control.Exception._ def toByteOpt: Option[Byte] = catching(classOf[NumberFormatException]) opt string.toByte def toShortOpt: Option[Short] = catching(class...
OpaliaSystems/commons
src/main/scala/systems/opalia/commons/number/package.scala
Scala
apache-2.0
2,528
/* * 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 ...
bwsw/cs-vault-server
src/main/scala/com/bwsw/cloudstack/vault/server/vault/entities/Token.scala
Scala
apache-2.0
1,823
/* * Copyright 2011-2014 Chris de Vreeze * * 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...
EBPI/yaidom
src/main/scala/nl/ebpi/yaidom/indexed/package.scala
Scala
apache-2.0
3,142
/** * Copyright (C) 2007 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 progra...
brunobuzzi/orbeon-forms
xforms/jvm/src/main/scala/org/orbeon/oxf/xforms/analysis/controls/AppearanceTrait.scala
Scala
lgpl-2.1
2,421
/* * Copyright 2017 Datamountaineer. * * 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...
CodeSmell/stream-reactor
kafka-connect-jms/src/main/scala/com/datamountaineer/streamreactor/connect/jms/sink/converters/JMSMessageConverterFn.scala
Scala
apache-2.0
1,171
package spire package laws import java.math.BigInteger import spire.math.extras.{FixedPoint, FixedScale} import spire.algebra._ import spire.algebra.free._ import spire.math._ import spire.math.interval.{Bound, Closed, Open, Unbound} import org.scalacheck.Arbitrary object arb { implicit val ubyte: Arbitrary[UByt...
tixxit/spire
laws/src/main/scala/spire/laws/arb.scala
Scala
mit
2,436
package io.cumulus.controllers.payloads import play.api.libs.json.{Json, Reads} case class LoginPayload( login: String, password: String ) object LoginPayload { implicit val reader: Reads[LoginPayload] = Json.reads[LoginPayload] }
Cumulus-Cloud/cumulus
server/cumulus-server/src/main/scala/io/cumulus/controllers/payloads/LoginPayload.scala
Scala
mit
246
package spark.partial import cern.jet.stat.Probability import spark.util.StatCounter /** * An ApproximateEvaluator for means. */ private[spark] class MeanEvaluator(totalOutputs: Int, confidence: Double) extends ApproximateEvaluator[StatCounter, BoundedDouble] { var outputsMerged = 0 var counter = new StatCo...
koeninger/spark
core/src/main/scala/spark/partial/MeanEvaluator.scala
Scala
bsd-3-clause
1,228
/* * Copyright 2015 Priyesh Patel * * 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 t...
ItsPriyesh/Litho
src/me/priyesh/litho/core/Packager.scala
Scala
apache-2.0
2,727
/** * This file is part of agora_elections. * Copyright (C) 2014-2016 Agora Voting SL <agora@agoravoting.com> * agora_elections is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of...
agoravoting/agora_elections
app/utils/JsonFormatters.scala
Scala
agpl-3.0
4,273
package me.frmr.wepay.api { import org.scalatest.FunSpec import net.liftweb.common._ import me.frmr.wepay._ import WePayTestHelpers._ import me.frmr.wepay.api._ class WithdrawalSpec extends FunSpec { implicit val authorizationToken = testAuthorizationToken describe("A Withdrawal") { var ...
farmdawgnation/wepay-scala
src/test/scala/me/frmr/wepay/api/WithdrawalSpec.scala
Scala
apache-2.0
951
class C[T] class D[type T] // error: identifier expected, but `type` found object Test { val x: C[T = Int] = // error: ']' expected, but `=` found // error new C[T = Int] // error: ']' expected, but `=` found // error class E extends C[T = Int] // error: ']' expected, but `=` found // error class F exten...
som-snytt/dotty
tests/neg/namedTypeParams.scala
Scala
apache-2.0
853
package io.vamp.pulse import java.io.{ ByteArrayInputStream, ByteArrayOutputStream, StringReader } import java.security.{ KeyStore, SecureRandom } import org.json4s.ext.EnumNameSerializer import akka.actor.Actor import akka.http.scaladsl.{ ConnectionContext, HttpsConnectionContext } import io.nats.client.{ Nats, Opti...
magneticio/vamp
nats/src/main/scala/io/vamp/pulse/NatsPublisherPulseActor.scala
Scala
apache-2.0
13,144
package com.arcusys.valamis.certificate.storage import com.arcusys.valamis.certificate.model.goal.GoalGroup import com.arcusys.valamis.model.PeriodTypes._ trait CertificateGoalGroupRepository { def get(certificateId: Long): Seq[GoalGroup] def create(count: Int, certificateId: Long, perio...
igor-borisov/valamis
valamis-certificate/src/main/scala/com/arcusys/valamis/certificate/storage/CertificateGoalGroupRepository.scala
Scala
gpl-3.0
548
package im.actor.server.push import akka.util.Timeout import im.actor.server.sequence.SeqState import im.actor.server.{ ActorSpecification, ActorSuite } import org.scalatest.time.{ Span, Seconds } import scala.concurrent.duration._ import akka.pattern.ask import akka.testkit._ import com.typesafe.config._ import im...
chieryw/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/push/SeqUpdatesManagerSpec.scala
Scala
mit
3,398
package BIDMach.datasources import BIDMat.{Mat,SBMat,CMat,CSMat,DMat,FMat,IMat,HMat,GMat,GIMat,GSMat,SMat,SDMat} import BIDMat.MatFunctions._ import BIDMat.SciFunctions._ import scala.concurrent.future //import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.ExecutionContextExecutor im...
uhjish/BIDMach
src/main/scala/BIDMach/datasources/SFilesDS.scala
Scala
bsd-3-clause
10,503
package org.infinispan.spark.suites import org.infinispan.spark.test._ import org.scalatest.DoNotDiscover @DoNotDiscover class DistributedSuite extends RDDRetrievalTest with WordCache with Spark with MultipleServers { override protected def getNumEntries: Int = 100 }
infinispan/infinispan-spark
src/test/scala/org/infinispan/spark/suites/DistributedSuite.scala
Scala
apache-2.0
274
/* * 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 ...
irudyak/ignite
modules/spark/src/main/scala/org/apache/ignite/spark/impl/optimization/AggregateExpressions.scala
Scala
apache-2.0
4,128
package colossus.core import java.net.InetAddress import java.nio.channels.{CancelledKeyException, SelectionKey} sealed trait WriteStatus object WriteStatus { //connection is busted case object Failed extends WriteStatus //data was partially written and the rest is buffered case object Partial extends WriteSt...
tumblr/colossus
colossus/src/main/scala/colossus/core/WriteBuffer.scala
Scala
apache-2.0
4,764
package fp import fp.ComonadSpecification.comonadLaws import fp.Function1Specification.function1Equal import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.{Arbitrary, Cogen, Properties} object StoreSpecification extends Properties("Store") { implicit def storeEqual[S: Equal : Arbitrary, A: Equal]: Equal...
adamgfraser/fp
src/test/scala/fp/StoreSpecification.scala
Scala
apache-2.0
754
/** * Copyright 2011-2017 GatlingCorp (http://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...
MykolaB/gatling
src/sphinx/http/code/Checks.scala
Scala
apache-2.0
4,280
/* * Copyright 2015 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
rspieldenner/atlas
atlas-core/src/test/scala/com/netflix/atlas/core/db/MemoryDatabaseSuite.scala
Scala
apache-2.0
5,702
/* ----------------- sse-breaker ----------------- *\\ * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas * \\* ----------------------------------------------- */ package com.tzavellas.sse.breaker import org.junit.Test import scala.util.{Failure, Success} class Ci...
sptz45/sse-breaker
src/test/scala/com/tzavellas/sse/breaker/CircuitBreakerAsyncTest.scala
Scala
apache-2.0
1,183
package models import scala.collection.mutable /** * * User: mihais * Date: 11/4/16 */ object EpisodeCache { private val episodeCache = new mutable.HashMap[String, List[Episode]]() private val lastCrawlInMinutes = new mutable.HashMap[String, Long]() val MAX_CACHE_TIME_IN_MINUTES = 60 // the max number o...
MihaiSurdeanu/ourshows
app/models/EpisodeCache.scala
Scala
apache-2.0
996
package org.clulab.embeddings import java.io._ import java.nio.{ByteBuffer, ByteOrder} import org.apache.commons.io.{FileUtils, IOUtils} import org.clulab.utils.MathUtils import org.slf4j.{Logger, LoggerFactory} import scala.collection.mutable.ArrayBuffer import scala.io.Source /** * Implements similarity metrics ...
sistanlp/processors
main/src/main/scala/org/clulab/embeddings/SanitizedWordEmbeddingMap.scala
Scala
apache-2.0
19,971
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
chuckchen/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala
Scala
apache-2.0
10,375
class t10999 { /** * I am public method ! */ def publicMethod: Int = 1 /** * I am protected method ! */ protected def protectedMethod: Boolean = true /** * I am private method ! */ private def privateMethod: String = "" }
scala/scala
test/scaladoc/resources/t10999.scala
Scala
apache-2.0
260
package co.blocke.scalajack package yaml import model._ import scala.collection.mutable import org.snakeyaml.engine.v2.nodes._ import org.snakeyaml.engine.v2.api.LoadSettings import org.snakeyaml.engine.v2.common.{FlowStyle, ScalarStyle} import org.snakeyaml.engine.v2.composer.Composer import org.snakeyaml.engine.v2....
gzoller/ScalaJack
core/src/main/scala/co.blocke.scalajack/yaml/YamlWriter.scala
Scala
mit
6,333
/* 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-example/src/main/scala/com/twitter/summingbird/example/ExampleJob.scala
Scala
apache-2.0
1,823