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 wookie.view import scala.concurrent.Promise /** * @author Andrey Chaschev chaschev@gmail.com */ /** * Eventually now two types of page-done event are used: ok & timeout. */ abstract class PageDoneEvent(val arg: WaitArg) { def ok() : Boolean } case class NokPageDoneEvent(override val arg: WaitArg) exte...
chaschev/wookie-view
src/main/scala/wookie/view/PageDoneEvent.scala
Scala
apache-2.0
742
package scala.meta package internal package prettyprinters import scala.meta.classifiers._ import scala.meta.prettyprinters._ import Show.{ sequence => s, repeat => r, indent => i, newline => n, meta => m, wrap => w, function => fn } import scala.meta.internal.trees.{root => _, branch => _, _} import scala.meta.intern...
DavidDudson/scalameta
scalameta/trees/shared/src/main/scala/scala/meta/internal/prettyprinters/TreeSyntax.scala
Scala
bsd-3-clause
36,101
package zzb.rest package directives class MethodDirectivesSpec extends RoutingSpec { "get | put" should { val getOrPut = (get | put) { completeOk } "block POST requests" in { Post() ~> getOrPut ~> check { handled === false } } "let GET requests pass" in { Get() ~> getOrPut ~> check { res...
stepover/zzb
zzb-rest-tests/src/test/scala/zzb/rest/directives/MethodDirectivesSpec.scala
Scala
mit
2,703
package gmodlab object Menu extends swing.MenuBar with ul.GetTextable { contents ++= List( //tab control menu new swing.Menu( tr("Tab") ) { mnemonic = swing.event.Key.T; contents ++= List( new swing.MenuItem("") { action = new swi...
tardigrade888/gmodlab
repo/src/gmodlab/Menu.scala
Scala
mit
3,216
package org.pico.twiddle.syntax.arrayIndexed import org.pico.twiddle.syntax.anyVal._ import org.scalacheck.Gen import org.specs2.ScalaCheck import org.specs2.mutable.Specification import org.pico.twiddle.instances._ import org.pico.twiddle.syntax.arrayIndexed._ class ByteBitArraySpec extends Specification with ScalaC...
newhoggy/pico-cuckoo-filter
pico-twiddle/src/test/scala/org/pico/twiddle/syntax/arrayIndexed/ByteBitArraySpec.scala
Scala
bsd-3-clause
6,919
/** * 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...
timve/gatling
gatling-app/src/main/scala/io/gatling/app/cli/StatusCode.scala
Scala
apache-2.0
884
/*********************************************************************** * Copyright (c) 2013-2019 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
elahrvivaz/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/uuid/Version4UuidGenerator.scala
Scala
apache-2.0
2,166
object Prob43 { val divs = (Set(1) ++ Prime.set(17)).toList.sorted def withProperty(n: Long): Boolean = { val ns = n.toString.map(_ - '0') ns.sliding(3).zip(divs.toIterator).map { case (xs, div) => val orig = xs.reduce{ (x, y) => x*10 + y } orig % div == 0 }.forall(identity) } lazy va...
ponkotuy/ProjectEular
src/main/scala/Prob43.scala
Scala
mit
604
/* * 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 agree...
hydro2k/zipkin
zipkin-cassandra/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala
Scala
apache-2.0
1,928
/* * 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...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/keras/layers/MaxPooling1D.scala
Scala
apache-2.0
3,450
package lila.api import play.api.libs.json._ import chess.format.Forsyth import lila.common.LightUser import lila.common.paginator.Paginator import lila.common.PimpedJson._ import lila.game.{ Game, PerfPicker } final class UserGameApi( bookmarkApi: lila.bookmark.BookmarkApi, lightUser: LightUser.Getter) { ...
clarkerubber/lila
modules/api/src/main/UserGameApi.scala
Scala
agpl-3.0
1,900
package com.arcusys.learn.models /** * Created by Iliya Tryapitsin on 19.03.14. */ case class OrgResponse(id: Long, name: String)
ViLPy/Valamis
learn-portlet/src/main/scala/com/arcusys/learn/models/OrgResponse.scala
Scala
lgpl-3.0
132
package com.datastax.bdp.spark.search import java.lang.{Integer => JInt} import com.datastax.spark.connector.SparkCassandraITFlatSpecBase import com.datastax.spark.connector.cluster.DseSearchAnalyticsCluster import com.datastax.spark.connector.cql.CassandraConnector import com.datastax.spark.connector.datasource.{Cas...
datastax/spark-cassandra-connector
connector/src/it/scala/com/datastax/bdp/spark/search/SearchAnalyticsIntegrationSpec.scala
Scala
apache-2.0
19,681
// ticket #3502 object Test { object GeneratePrimeFactorsLazy extends (Int => List[Int]) { override def apply(n:Int) = { val s = Stream.range(2, n / 2).filter(n % _ == 0) //val s = for (i <- Stream.range(2, n / 2); if n % i == 0) yield i s.headOption.map(x => x :: apply(n / x)).getOrElse(L...
felixmulder/scala
test/files/run/t3502.scala
Scala
bsd-3-clause
504
package com.redislabs.provider.redis import redis.clients.jedis.{JedisPoolConfig, Jedis, JedisPool} import redis.clients.jedis.exceptions.JedisConnectionException import java.util.concurrent.ConcurrentHashMap import scala.collection.JavaConversions._ object ConnectionPool { @transient private lazy val pools: Con...
RedisLabs/spark-redis
src/main/scala/com/redislabs/provider/redis/ConnectionPool.scala
Scala
bsd-3-clause
1,473
package net.quasardb import scala.language.implicitConversions import java.sql.Timestamp import org.apache.spark.rdd.RDD import org.apache.spark.sql.{DataFrame, SparkSession} import net.quasardb.spark.df._ import net.quasardb.spark.rdd._ import net.quasardb.qdb.Session; import net.quasardb.qdb.ts.{WritableRow, Tim...
bureau14/qdb-spark-connector
src/main/scala/net/quasardb/spark/package.scala
Scala
bsd-2-clause
4,019
package fly.play.s3 import scala.xml.Elem import fly.play.aws.AwsError case class S3Exception(status: Int, code: String, message: String, originalXml: Option[Elem]) extends RuntimeException( s"""|Problem accessing S3. Status $status, code $code, message '$message' |Original xml: |$originalXml""".stripMargi...
Rhinofly/play-s3
src/main/scala/fly/play/s3/S3Exception.scala
Scala
mit
482
package molecule package benchmarks.comparison.molecule.uthreads import platform.{ Platform, Executor, UThreadFactory, UThread } /** * Thread that submits all its tasks sequentially to the underlying executor * like Scala actors. */ object ActorLikeUThread extends UThreadFactory { @inline private[this] final de...
molecule-labs/molecule
molecule-benchmarks/src/main/scala/molecule/benchmarks/comparison/molecule/uthreads/ActorLikeUThread.scala
Scala
apache-2.0
2,014
/* * 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 ...
WindCanDie/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/vectorized/ColumnVectorSuite.scala
Scala
apache-2.0
13,892
package gh2011.models import net.liftweb.json.JsonAST.JValue case class Actor(gravatar_id: String, id: Long, url: String, avatar_url: String, login: String) object Actor { def apply(json: JValue): Option[Actor] = { val n2s = gh3.node2String(json)(_) val n2l = gh3.node2Long(json)(_) val grava...
mgoeminne/github_etl
src/main/scala/gh2011/models/Actor.scala
Scala
mit
679
package scala.scalajs.js.typedarray import scala.scalajs.js /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span> * A [[TypedArray]] of unsigned 8-bit integers whose values are clamped to * their max/min rather than wrapped around if they overflow. */ class Uint8ClampedArray private exten...
jmnarloch/scala-js
library/src/main/scala/scala/scalajs/js/typedarray/Uint8ClampedArray.scala
Scala
bsd-3-clause
1,142
package org.bitcoins.testkit.db import org.bitcoins.commons.config.AppConfig import org.bitcoins.testkit.BitcoinSTestAppConfig.ProjectType import org.bitcoins.testkit.fixtures.BitcoinSFixture import org.bitcoins.testkit.{BitcoinSTestAppConfig, EmbeddedPg} import org.scalatest._ import org.scalatest.flatspec.FixtureAsy...
bitcoin-s/bitcoin-s
testkit/src/main/scala/org/bitcoins/testkit/db/TestDAOFixture.scala
Scala
mit
4,814
package beam.sim import java.util.concurrent._ import java.util.concurrent.atomic.{AtomicBoolean, AtomicInteger} import com.google.common.util.concurrent.ThreadFactoryBuilder import com.typesafe.scalalogging.LazyLogging import javax.inject.Inject import org.matsim.api.core.v01.events.Event import org.matsim.core.api.e...
colinsheppard/beam
src/main/scala/beam/sim/LoggingEventsManager.scala
Scala
gpl-3.0
5,457
package org.sisioh.aws4s.s3.model import java.util.Date import com.amazonaws.services.s3.model.{ Owner, S3VersionSummary } import org.sisioh.aws4s.PimpedType object S3VersionSummaryFactory { def create(): S3VersionSummary = new S3VersionSummary() } class RichS3VersionSummary(val underlying: S3VersionSummary) ...
everpeace/aws4s
aws4s-s3/src/main/scala/org/sisioh/aws4s/s3/model/RichS3VersionSummary.scala
Scala
mit
2,066
/* * Copyright © 2015 - 2019 Lightbend, Inc. <http://www.lightbend.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 requ...
lightbend/paradox
tests/src/test/scala/com/lightbend/paradox/markdown/TocDirectiveSpec.scala
Scala
apache-2.0
6,649
package backend.data.mongodb.service import backend.data.mongodb.dao.StaticPageDaoComponentMongo import backend.data.service.StaticPageDataService /** * The StaticPageDataService using MongoDB * * @author Stefan Bleibinhaus * */ object StaticPageDataServiceMongo extends StaticPageDataService with StaticPage...
ExNexu/scablo
app/backend/data/mongodb/service/StaticPageDataServiceMongo.scala
Scala
bsd-2-clause
360
/* * Copyright 2011-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
vert-x/mod-lang-scala
src/main/scala/org/vertx/scala/core/http/WebSocket.scala
Scala
apache-2.0
1,296
package org.bfn.ninetynineprobs import org.scalatest._ class P70Spec extends UnitSpec { // TODO }
bfontaine/99Scala
src/test/scala/P70Spec.scala
Scala
mit
105
/* * Copyright 2016 agido 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 applicable law or agreed to i...
agido/pageobject
examples/src/test/scala/org/pageobject/examples/angularjs/todo/TodoEntryModule.scala
Scala
apache-2.0
1,156
package nodes.learning import breeze.linalg._ import edu.berkeley.cs.amplab.mlmatrix.{RowPartition, NormalEquations, BlockCoordinateDescent, RowPartitionedMatrix} import nodes.stats.{StandardScalerModel, StandardScaler} import org.apache.spark.rdd.RDD import nodes.util.{VectorSplitter, Identity} import pipelines.{Tran...
etrain/keystone
src/main/scala/nodes/learning/BlockLinearMapper.scala
Scala
apache-2.0
7,413
package controllers import play.api.mvc._ /** * This controller creates an `Action` to handle HTTP requests to the * application's home page. */ class HomeController extends Controller { /** * Create an Action to render an HTML page with a welcome message. * The configuration in the `routes` file means t...
play2-maven-plugin/play2-maven-test-projects
play25/scala/compile-di-example/app/controllers/HomeController.scala
Scala
apache-2.0
522
// scalastyle:off /* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Alexander Spoon */ package org.apache.spark.repl import java.net.URL import org.apache.spark.annotation.DeveloperApi import scala.reflect.io.AbstractFile import scala.tools.nsc._ import scala.tools.nsc.backend.JavaPlatform...
tophua/spark1.52
repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoop.scala
Scala
apache-2.0
44,348
package eu.unicredit import eu.unicredit.swagger.generators.DefaultServerGenerator class Custom2 extends DefaultServerGenerator { override def controllerNameFromFileName(fn: String) = objectNameFromFileName(fn, "CustomTwo") }
unicredit/sbt-swagger-codegen-examples
project/my-extension-plugin/Custom2.scala
Scala
apache-2.0
235
/** * Copyright (c) 2007-2011 Eric Torreborre <etorreborre@yahoo.com> * * 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...
stuhood/specs
src/main/scala/org/specs/form/EntityLineProp.scala
Scala
mit
2,233
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Sun Sep 22 18:45:44 EDT 2013 * @see LICENSE (MIT style license file). */ package scalation.analytics import util.control.Breaks.{breakable, break} import collection.mutable.Se...
mvnural/scalation
src/main/scala/scalation/analytics/KNN_Classifier.scala
Scala
mit
6,540
/** * Original work: SecureSocial (https://github.com/jaliss/securesocial) * Copyright 2013 Jorge Aliss (jaliss at gmail dot com) - twitter: @jaliss * * Derivative work: Silhouette (https://github.com/mohiva/play-silhouette) * Modifications Copyright 2015 Mohiva Organisation (license at mohiva dot com) * * Licen...
cemcatik/play-silhouette
silhouette/app/com/mohiva/play/silhouette/impl/authenticators/CookieAuthenticator.scala
Scala
apache-2.0
16,906
package org.jetbrains.plugins.scala.compiler import org.jetbrains.plugins.scala.compiler.CompilationUnitId.ModuleId case class CompilationUnitId(moduleId: ModuleId, testScope: Boolean) object CompilationUnitId { type ModuleId = String }
JetBrains/intellij-scala
scala/compiler-shared/src/org/jetbrains/plugins/scala/compiler/CompilationUnitId.scala
Scala
apache-2.0
270
import java.io.{StringReader, StringWriter} import com.fasterxml.jackson.core.{JsonFactory, JsonParser} import com.hypertino.binders.json.{JacksonGeneratorAdapter, JacksonParserAdapter, JsonBinders, JsonBindersFactory} import org.scalatest.{FlatSpec, Matchers} case class TestStream(id: Double) class TestStreamSeria...
hypertino/json-binders
jsonBinders/jvm/src/test/scala/TestStreamSerializer.scala
Scala
bsd-3-clause
1,474
package discord.commands import common.api.TwitchChannelInfo import common.api.commands.UptimeCommand import common.ref.MtrConfigRef import common.util.TwitchApiUtil import discord.api.DiscordCommand import discord.event.DiscordCommandExecutionEvent import discord.util.DiscordMessageUtil import javax.inject.Inject im...
Cobbleopolis/MonsterTruckBot
modules/discord/app/discord/commands/DiscordUptimeCommand.scala
Scala
mit
1,415
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
SeaOfOcean/BigDL
dl/src/main/scala/com/intel/analytics/bigdl/nn/L1Cost.scala
Scala
apache-2.0
1,651
import scala.tools.partest._ object Test extends ReplTest with Lambdaless { def code = """ def h()(i: Int) = 1 + i println(h()(5)) val f = h() _ println(f(10)) """ }
scala/scala
test/files/run/t5535.scala
Scala
apache-2.0
171
/* * 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 ...
wwjiang007/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/UnionITCase.scala
Scala
apache-2.0
4,577
/* Title: Pure/PIDE/session.scala Author: Makarius Options: :folding=explicit: PIDE editor session, potentially with running prover process. */ package isabelle import scala.collection.immutable.Queue import scala.util.control.NonFatal import scala.annotation.tailrec object Session { /* out...
larsrh/libisabelle
modules/pide/2019-RC4/src/main/scala/PIDE/session.scala
Scala
apache-2.0
22,340
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - 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...
RBMHTechnology/eventuate
eventuate-core/src/test/scala/com/rbmhtechnology/eventuate/PersistOnEventSpec.scala
Scala
apache-2.0
15,731
/* * This software is licensed under the GNU Affero General Public License, quoted below. * * This file is a part of powerspy.scala. * * Copyright (C) 2011-2014 Inria, University of Lille 1. * * powerspy.scala is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General...
Spirals-Team/powerspy.scala
powerspy-core/src/test/scala/fr/inria/powerspy/core/PowerSpySuite.scala
Scala
agpl-3.0
12,165
package com.ft.membership.http import java.net.URI import akka.actor.ActorSystem import com.ft.membership.http.testsupport.TestRules import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.core.Is.is import org.junit.{Rule, After, Test} import org.junit.Assert.fail import spray.client.pipelining._ import spr...
Financial-Times/scala-commons
src/main/test/scala/com/ft/membership/http/SprayConfiguredSendReceiveTest.scala
Scala
mit
1,507
package spinoco.fs2.kafka.network import spinoco.fs2.kafka.Fs2KafkaRuntimeSpec import shapeless.tag import spinoco.protocol.kafka.TopicName /** * Created by pach on 03/09/16. */ class BrokerConnectionKafkaSpecBase extends Fs2KafkaRuntimeSpec { val testTopic1 = tag[TopicName]("test-topic-1") val testTopic2 = ...
Spinoco/fs2-kafka
src/test/scala/spinoco/fs2/kafka/network/BrokerConnectionKafkaSpecBase.scala
Scala
mit
354
package models.manager.messages /** * Created by rbrowning on 4/26/17. */ case class NodeStatusResponse()
rebrowning/entertainment-cluster-member
src/main/scala/models/manager/messages/NodeStatusResponse.scala
Scala
apache-2.0
112
package com.szadowsz.spark.ml.feature import org.apache.spark.ml.UnaryTransformer import org.apache.spark.ml.param.{Param, ParamMap} import org.apache.spark.ml.util.Identifiable import org.apache.spark.sql.types._ import org.apache.spark.sql.{DataFrame, Dataset} import org.slf4j.{Logger, LoggerFactory} /** * Creat...
zakski/project-cadisainmduit
module/spark/src/main/scala/com/szadowsz/spark/ml/feature/StructToString.scala
Scala
apache-2.0
2,032
import sbt.Keys._ import sbt._ import sbtrelease.ReleasePlugin.autoImport._ object Publishing { lazy val scm = <scm> <url>http://github.com/infinispan/infinispan-spark</url> <connection>scm:git:git@github.com:infinispan/infinispan-spark.git</connection> </scm> lazy val developer =...
galderz/infinispan-spark
project/Publishing.scala
Scala
apache-2.0
2,094
/* * 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 ...
savaki/samza
samza-core/src/test/scala/org/apache/samza/container/grouper/task/TestGroupByContainerCount.scala
Scala
apache-2.0
2,838
// Copyright (c) 2018 Norwegian University of Science and Technology (NTNU) // // BSD v3 License // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must ...
maltanar/fpga-tidbits
src/test/scala/TestHelpers.scala
Scala
bsd-2-clause
4,183
class Comments { // A single line comment val x = 3 /* A plain comment */ def y(c: List[Double]): Int = ??? /** A doc comment * @param t A parameter */ def z[T](t: T): T = t }
harrah/browse
test/Comments.scala
Scala
bsd-3-clause
188
package diameter.ValueContainers import diameter.Converter import diameter.Coder.{DiameterCoder, TypeCoder} /** * Created by edzmbuh on 19/12/2016. */ class OctetString(data:Either[Seq[Byte], String]) extends TypeCoder[String](data){ val encode = DiameterCoder.encodeOctetString _ val decode = DiameterCoder.de...
dbuhryk/DiameterCoder
Diameter/src/main/scala/diameter/ValueContainers/OctetString.scala
Scala
mit
492
package adty.mr.pytag.spark import java.util import java.util.Properties import java.util.regex.Pattern import aiouniya.spark.util.{DateUtil, HBaseUtil, JdbcUtil} import org.apache.hadoop.hbase.client.Put import org.apache.hadoop.hbase.util.Bytes import org.apache.spark.SparkContext import org.apache.spark....
7u/spark-learning
azkaban/azprojects/pytag/src/main/scala/adty/mr/pytag/spark/PytagModel.scala
Scala
apache-2.0
3,884
package edu.gemini.qv.plugin.chart.editor import edu.gemini.qv.plugin.chart.Axis import edu.gemini.qv.plugin.chart.Chart.Calculation import edu.gemini.qv.plugin.chart.ui._ import edu.gemini.qv.plugin.data.DataChanged import edu.gemini.qv.plugin.filter.core.FilterSet import edu.gemini.qv.plugin.filter.ui.MainFilter imp...
spakzad/ocs
bundle/edu.gemini.qv.plugin/src/main/scala/edu/gemini/qv/plugin/chart/editor/Selectors.scala
Scala
bsd-3-clause
4,395
// Databricks notebook source // MAGIC %md // MAGIC // MAGIC # [SDS-2.2, Scalable Data Science](https://lamastex.github.io/scalable-data-science/sds/2/2/) // COMMAND ---------- // MAGIC %md // MAGIC Archived YouTube videos of this live unedited lab-lecture: // MAGIC // MAGIC [![Archived YouTube video of this live u...
lamastex/scalable-data-science
db/2/2/002_loginToDatabricks.scala
Scala
unlicense
2,388
/* * Copyright (c) 2013-2014 Telefónica Investigación y Desarrollo S.A.U. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
telefonicaid/fiware-cosmos-platform
cosmos-admin/src/main/scala/es/tid/cosmos/admin/Main.scala
Scala
apache-2.0
1,956
package com.cterm2.miniflags import cpw.mods.fml.common.network.simpleimpl.{IMessage, IMessageHandler, MessageContext} import io.netty.buffer.ByteBuf import cpw.mods.fml.common.network.ByteBufUtils._ import net.minecraftforge.common.DimensionManager import net.minecraft.entity.player.EntityPlayerMP import org.apache.c...
Pctg-x8/miniflags
src/intercommands.scala
Scala
lgpl-2.1
6,639
package models.command import models.Post import reactivemongo.bson.BSONDocument import reactivemongo.bson.BSONDocumentReader import reactivemongo.bson.BSONDocumentWriter import reactivemongo.bson.DefaultBSONHandlers.BSONLongHandler import reactivemongo.bson.DefaultBSONHandlers.BSONStringHandler import reactivemongo.b...
Froggies/Skimbo
app/models/command/DelayedPost.scala
Scala
agpl-3.0
1,941
/* * 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 ...
yanboliang/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
Scala
apache-2.0
134,138
/** * 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...
ashvina/heron
heron/api/src/scala/org/apache/heron/streamlet/scala/Streamlet.scala
Scala
apache-2.0
11,148
package se.culvertsoft.mgen.cpppack.generator import CppTypeNames.getTypeName import se.culvertsoft.mgen.api.exceptions.GenerationException import se.culvertsoft.mgen.api.model.EnumType import se.culvertsoft.mgen.api.model.Field import se.culvertsoft.mgen.api.model.Module import se.culvertsoft.mgen.api.model.Type impo...
culvertsoft/mgen
mgen-cppgenerator/src/main/scala/se/culvertsoft/mgen/cpppack/generator/CppConstruction.scala
Scala
mit
2,607
package org.scaladebugger.api.lowlevel.breakpoints import org.scalamock.scalatest.MockFactory import org.scalatest.{FunSpec, Matchers, ParallelTestExecution} import org.scaladebugger.api.lowlevel.DummyOperationException import org.scaladebugger.test.helpers.ParallelMockFunSpec import test.JDIMockHelpers class DummyBr...
chipsenkbeil/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/lowlevel/breakpoints/DummyBreakpointManagerSpec.scala
Scala
apache-2.0
3,439
package scalismo import org.scalatest.{FunSpec, Matchers} class ScalismoTestSuite extends FunSpec with Matchers { scalismo.initialize() }
unibas-gravis/scalismo
src/test/scala/scalismo/ScalismoTestSuite.scala
Scala
apache-2.0
142
package pipelines.images.voc import java.io.File import breeze.linalg._ import breeze.stats._ import evaluation.MeanAveragePrecisionEvaluator import loaders.{VOCDataPath, VOCLabelPath, VOCLoader} import nodes.images.external.{FisherVector, SIFTExtractor} import nodes.images.{GrayScaler, MultiLabelExtractor, MultiLabe...
etrain/keystone
src/main/scala/pipelines/images/voc/VOCSIFTFisher.scala
Scala
apache-2.0
6,247
/* * 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 ...
tophua/spark1.52
sql/core/src/test/scala/org/apache/spark/sql/JsonFunctionsSuite.scala
Scala
apache-2.0
1,527
/* NSC -- new Scala compiler * Copyright 2007-2013 LAMP/EPFL * @author Manohar Jonnalagedda */ package scala.tools.nsc package doc package model import scala.collection._ /** A type. Note that types and templates contain the same information only for the simplest types. For example, a type * defines how a temp...
felixmulder/scala
src/scaladoc/scala/tools/nsc/doc/model/TypeEntity.scala
Scala
bsd-3-clause
1,064
package sword.langbook.android.activities object BundleKeys { val acceptationKey = "ack" val alphabetKey = "alk" val bunchKey = "bk" val conceptKey = "ck" val conceptKeys = "cks" val excludedLanguageKey = "elk" val languageKey = "lk" val symbolKey = "sk" val visibilityFlags = "vf" val wordKey = "wk...
carlos-sancho-ramirez/android-scala-langbook
src/main/scala/sword/langbook/android/activities/BundleKeys.scala
Scala
mit
324
/** * 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"...
mihbor/kafka
core/src/test/scala/integration/kafka/server/GssapiAuthenticationTest.scala
Scala
apache-2.0
8,651
/* * 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/command/package.scala
Scala
mit
1,735
package es.upm.oeg.pnk.transformations import java.nio.file.{FileSystems, Files} /** * Created by cbadenes on 08/08/15. */ object Folder { def moveIfExists( folder: String) ={ val source = FileSystems.getDefault().getPath(folder) println("checking folder " + source.toFile.getAbsolutePath) if (Files.e...
cbadenes/pnk
src/main/scala/es/upm/oeg/pnk/transformations/Folder.scala
Scala
gpl-2.0
912
package views.form import javax.inject.{Inject, Singleton} import play.api.data.Form import play.api.data.Forms._ import play.api.i18n.{Lang, MessagesApi} case class PasswordReset(password: String, repeatPassword: String, token: String) @Singleton class PasswordResetForm @Inject() (implicit val messagesApi: Messages...
bravegag/play-authenticate-usage-scala
app/views/form/PasswordResetForm.scala
Scala
apache-2.0
775
/* sbt -- Simple Build Tool * Copyright 2011 Mark Harrah */ package sbt import java.io.File import Keys._ import EvaluateConfigurations.{evaluateConfiguration => evaluate} import Configurations.Compile object Script { final val Name = "script" lazy val command = Command.command(Name) { state => val scr...
kuochaoyi/xsbt
main/Script.scala
Scala
bsd-3-clause
2,422
package com.twitter.finagle.oauth2 import org.scalatest._ import org.scalatest.Matchers._ import com.twitter.util.{Await, Future} class PasswordSpec extends FlatSpec { it should "handle request" in { val password = new Password(new MockClientCredentialFetcher()) val request = AuthorizationRequest(Map(), Ma...
vkostyukov/finagle-oauth2
src/test/scala/com/twitter/finagle/oauth2/PasswordSpec.scala
Scala
apache-2.0
1,364
package lila.socket import chess.format.UciMove import chess.Pos import play.api.libs.functional.syntax._ import play.api.libs.json._ import play.api.libs.json.Reads._ case class Step( ply: Int, move: Option[Step.Move], fen: String, check: Boolean, // None when not computed yet dests: Option[...
TangentialAlan/lila
modules/socket/src/main/Step.scala
Scala
mit
1,876
package at.logic.gapt.grammars import at.logic.gapt.expr.fol._ import at.logic.gapt.expr._ import at.logic.gapt.expr.hol._ import at.logic.gapt.provers.maxsat.{ bestAvailableMaxSatSolver, QMaxSAT, MaxSATSolver } import at.logic.gapt.utils.logging.Logger import scala.collection.mutable case class Rule( lhs: LambdaExp...
loewenheim/gapt
src/main/scala/at/logic/gapt/grammars/recursionSchemes.scala
Scala
gpl-3.0
20,593
/* * Copyright 2015-2016 IBM Corporation * * 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...
CrowdFlower/incubator-openwhisk
tests/src/test/scala/whisk/core/containerpool/docker/test/RuncClientTests.scala
Scala
apache-2.0
3,347
package com.cerner.beadledom.stagemonitor.request import com.cerner.beadledom.stagemonitor.JsonRequestTraceLoggerPlugin import com.fasterxml.jackson.core.JsonProcessingException import com.fasterxml.jackson.databind.ObjectMapper import org.mockito.ArgumentCaptor import org.mockito.ArgumentMatchers.any import org.mocki...
bbaugher/beadledom
stagemonitor/src/test/scala/com/cerner/beadledom/stagemonitor/request/LogJsonRequestTraceReporterSpec.scala
Scala
apache-2.0
5,404
package io.swagger.client.model import org.joda.time.DateTime import java.util.UUID case class CallReport ( PhoneNumber: String, ReportedCallerName: String, ReportedCallerId: String, CallerType: String, Comment: String, UnwantedCall: Boolean, CallTime: DateTime, Reporter: String, IpAddress: String,...
CallControl/CallControlClient
async-scala-client/src/main/scala/io/swagger/client/model/CallReport.scala
Scala
apache-2.0
366
package edu.gemini.util.security.auth import edu.gemini.spModel.core.Site import scalaz._ import Scalaz._ import scalaz.effect._ import java.security.PrivateKey import edu.gemini.util.security.principal._ package object keychain { type Signed[A] = edu.gemini.util.security.auth.Signed[A] val Signed = edu.gemini.u...
fnussber/ocs
bundle/edu.gemini.util.security/src/main/scala/edu/gemini/util/security/auth/keychain/package.scala
Scala
bsd-3-clause
1,964
// // JavaSiteForm.scala -- Scala object JavaSiteForm // Project OrcScala // // Created by jthywiss on May 30, 2010. // // Copyright (c) 2018 The University of Texas at Austin. All rights reserved. // // Use and redistribution of this file is governed by the license terms in // the LICENSE file found in the project's t...
orc-lang/orc
OrcScala/src/orc/values/sites/JavaSiteForm.scala
Scala
bsd-3-clause
970
package ml.combust.mleap.executor.service import akka.pattern.pipe import akka.actor.{Actor, ActorLogging, ActorRef, Props, ReceiveTimeout, Status, Terminated} import akka.stream.Materializer import ml.combust.bundle.dsl.Bundle import ml.combust.mleap.executor._ import ml.combust.mleap.executor.error.{AlreadyExistsExc...
combust-ml/mleap
mleap-executor/src/main/scala/ml/combust/mleap/executor/service/BundleActor.scala
Scala
apache-2.0
8,984
package scala.lms package epfl package test1 import common._ import java.io.PrintWriter trait Arrays extends Base { class ArrayOps[T:Typ](x: Rep[Array[T]]) { def apply(i: Int) = arrayApply(x, i) } implicit def array2arrayOps[T:Typ](x: Rep[Array[T]]) = new ArrayOps(x) def arrayApply[T:Typ](x: Rep[Array...
TiarkRompf/virtualization-lms-core
test-src/epfl/test1-arith/Arrays.scala
Scala
bsd-3-clause
1,305
package doobie.util import shapeless._, shapeless.test._ import doobie.imports._ import org.specs2.mutable.Specification object metaspec extends Specification { case class X(x: Int) case class Y(x: String) extends AnyVal case class P(x: Int) extends AnyVal case class Q(x: String) case class Z(i: Int, s: St...
wedens/doobie
core/src/test/scala/doobie/util/meta.scala
Scala
mit
731
package adaptors import skidbladnir.{Assembly,Base,Compo,Handle,Interface,Mono,Multi}, trm212.{ITRM212Data}, collector.{IData}, java.awt.{Dimension,Color} class AdTRM212 extends Compo { //Vars private var color = Color.BLACK private var name = "" private var value = 0.0 private var p...
AlexCAB/ChartRecorder
adaptors/AdTRM212.scala
Scala
mit
1,635
package org.quil.interpreter.QuantLibObjects /** * Created by d90590 on 07.06.2016. */ class Controller { }
apfadler/quil-src
qlobjects/src/main/scala/org/quil/interpreter/QuantLibObjects/Controller.scala
Scala
apache-2.0
114
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
manuzhang/incubator-gearpump
experiments/rabbitmq/src/main/scala/org/apache/gearpump/experimental/rabbitmq/RMQSink.scala
Scala
apache-2.0
6,243
package doodle package examples object GradientCircle { // This serves to test layout. The circle at three o'clock should be red and // the gradient should progress anticlockwise import cats.instances.all._ import doodle.core._ import doodle.syntax._ import doodle.svg._ val image: Picture[Unit] = (0...
underscoreio/doodle
examples/js/src/main/scala/doodle/examples/GradientCircle.scala
Scala
apache-2.0
507
object Main { sealed trait Decision extends Product with Serializable case object Cooperate extends Decision case object Defect extends Decision type Trial = (Decision, Decision) type History = List[Decision] type Prisoners = List[Prisoner] case class Prisoner(name: String, strateg...
jpfuentes2/iterated-prisoners-dilemma
ipd.scala
Scala
mit
2,044
/* * Copyright 2016 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/reactivemongo-json
src/main/scala/reactivemongo/json/collection/jsoncollection.scala
Scala
apache-2.0
16,978
/* * 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 ...
esi-mineset/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/StringExpressionsSuite.scala
Scala
apache-2.0
38,110
/* * 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 ...
wowmsi/safe
safe-lang/src/main/scala/safe/safelang/Repl.scala
Scala
apache-2.0
6,085
package im.tox.antox.utils import java.sql.Timestamp //remove if not needed class FriendInfo( isOnline: Boolean, friendName: String, userStatus: String, personalNote: String, friendKey: String, val lastMessage: String, val lastMessageTimestamp: Timestamp, val unreadCount: Int, alias: String) extends...
0xPoly/Antox
app/src/main/scala/im/tox/antox/utils/FriendInfo.scala
Scala
gpl-3.0
551
// Copyright (C) 2017 Calin Cruceru <calin.cruceru@stud.acs.upb.ro>. // // See the LICENCE file distributed with this work for additional // information regarding copyright ownership. package org.symnet package models.iptables package extensions.tcp // 3rd-party // -> Symnet import org.change.v2.analysis.expression.c...
calincru/iptables-sefl
src/main/scala/org/symnet/models/iptables/extensions/tcp/TcpFlagsMatch.scala
Scala
mit
2,482
/* * Copyright (C) 2014 Cathal Mc Ginley * * This file is part of TomatoJuice, a Pomodoro timer-tracker for GNOME. * * TomatoJuice 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...
cathalmcginley/tomatojuice
src/main/scala/org/gnostai/tomatojuice/core/CoreMessages.scala
Scala
gpl-3.0
1,746
package com.wavesplatform.code import com.wavesplatform.lang.directives.DirectiveSet import com.wavesplatform.lang.directives.values._ import com.wavesplatform.test._ class DirectiveSetConstructingTest extends PropSpec { property("DirectiveSet should be successfully constructed with (V3, Account, Contract) params")...
wavesplatform/Waves
node/src/test/scala/com/wavesplatform/code/DirectiveSetConstructingTest.scala
Scala
mit
1,107
/* * 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/tabulate
core/shared/src/main/scala/kantan/csv/CellDecoder.scala
Scala
mit
2,586
package core import akka.actor.Actor import core.DBActor._ import core.GeneActor.BatchGeneQuery import core.ProteinActor.BatchProteinQuery import db.{DAL, ProductionDB} import scala.slick.jdbc.JdbcBackend.Database import scala.slick.driver.H2Driver import scala.slick.jdbc.JdbcBackend._ /** * Created by preecha on ...
yumyai/fasta-search
src/main/scala/core/db.scala
Scala
apache-2.0
2,008
package com.plz.scala.traitandtypeconversion.traitdelaybind import java.io.StringWriter /** * @author lover */ class StringWriterDelegate extends Writer { val writer = new StringWriter() def writeMessage(message: String) = writer.write(message) override def toString(): String = writer.toString } object String...
piaolinzhi/fight
scala-learning/src/main/scala/com/plz/scala/traitandtypeconversion/traitdelaybind/StringWriterDelegate.scala
Scala
gpl-2.0
825