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
/* * Odessa State environmental University * Copyright (C) 2014 */ package ua.edu.odeku.ceem.mapRadar.tools.radar.airspace.factories import gov.nasa.worldwind.WorldWindow import gov.nasa.worldwind.render.airspaces.SphereAirspace import ua.edu.odeku.ceem.mapRadar.tools.radar.airspace.{CeemRadarAirspace, CeemRadarAi...
aleo72/ww-ceem-radar
src/main/scala/ua/edu/odeku/ceem/mapRadar/tools/radar/airspace/factories/CeemRadarAirspaceFactory.scala
Scala
apache-2.0
1,130
package com.socrata.querycoordinator import com.rojoma.json.v3.ast.JValue import com.rojoma.json.v3.codec.{DecodeError, JsonDecode, JsonEncode} import com.rojoma.json.v3.matcher.{PObject, Variable} import com.socrata.querycoordinator.util.SoQLTypeCodec import com.socrata.soql.types.SoQLType case class Schema(hash: St...
socrata-platform/query-coordinator
query-coordinator/src/main/scala/com/socrata/querycoordinator/Schema.scala
Scala
apache-2.0
1,247
package lila.game case class Crosstable( user1: Crosstable.User, user2: Crosstable.User, results: List[Crosstable.Result], nbGames: Int) { import Crosstable.Result def nonEmpty = results.nonEmpty option this def users = List(user2, user1) def winnerId = if (user1.score > user2.score) So...
Happy0/lila
modules/game/src/main/Crosstable.scala
Scala
mit
2,970
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/process/knn/KNearestNeighborSearchProcessTest.scala
Scala
apache-2.0
9,605
package com.dero.home.items import com.dero.home.AbstractModule import com.dero.home.states.OnOff import scala.languageFeature.implicitConversions import scala.reflect.runtime.universe._ class Switch(module: AbstractModule) extends Item(module) { override def This = typeOf[Switch] type State = OnOff.Type ...
derolf/scala4mqtt
src/main/scala/com/dero/home/items/Switch.scala
Scala
mit
344
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
travisbrown/scalatest
src/main/scala/org/scalatest/exceptions/StackDepth.scala
Scala
apache-2.0
4,691
package com.scalaAsm.x86 package Instructions package General // Description: Interrupt Return // Category: general/breakstack trait IRET extends InstructionDefinition { val mnemonic = "IRET" } object IRET extends ZeroOperands[IRET] with IRETImpl trait IRETImpl extends IRET { implicit object _0 extends NoOp{ ...
bdwashbu/scala-x86-inst
src/main/scala/com/scalaAsm/x86/Instructions/General/IRET.scala
Scala
apache-2.0
404
package io.github.binaryfoo.lagotto class PivotedIteratorTest extends LagoTest { import fieldParser.FieldExpr.expressionFor val rotateOn = fieldParser.DirectExpr.unapply("at").get val count = expressionFor("n") val entries = Seq( SimpleLogEntry("at" -> "15:59", "mti" -> "0200", "n" -> "10"), SimpleLo...
binaryfoo/lagotto
src/test/scala/io/github/binaryfoo/lagotto/PivotedIteratorTest.scala
Scala
mit
2,514
/** * 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 ...
bikash/guacamole
src/main/scala/org/hammerlab/guacamole/filters/PileupElementsFilter.scala
Scala
apache-2.0
2,019
package com.stulsoft.exercises.bit /** Playing with bit operations * * @see [[https://www.tutorialspoint.com/scala/scala_bitwise_operators.htm Scala - Bitwise Operators]] * @author Yuriy Stul. */ object BitOperations extends App { val a = 60 /* 60 = 0011 1100 */ val b = 13 /* 13 = 0000 1101 */ var c ...
ysden123/scala-exercises
src/main/scala/com/stulsoft/exercises/bit/BitOperations.scala
Scala
mit
777
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-execution/jvm/src/test/scala/monix/execution/FeaturesJVMSuite.scala
Scala
apache-2.0
4,617
/* * Copyright (c) 2011 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 agree...
rorygraves/shapeless
core/src/main/scala/shapeless/typeoperators.scala
Scala
apache-2.0
2,245
/* * Copyright 2015 Heiko Seeberger * * 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...
hseeberger/reactive-flows
src/test/scala/de/heikoseeberger/reactiveflows/proto/FlowSerializerSpec.scala
Scala
apache-2.0
2,303
package sifters.odesk.apps.rescrape import sifters.odesk.apps.SimpleSifter import sifters.odesk.db.ODeskSiftersDBProvider /** * Tool which search jobs with no additional data, remove they, and add to rescrape, note: * onenote:///D:\\Progects\\Little%20projects\\!Notes\\Программы.one#%3eFreelance%20analytics&section...
AlexCAB/FreelanceAnalytics
src/sifters/odesk/apps/rescrape/RescrapeJobsWithNoAdditionalData.scala
Scala
mit
941
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
travisbrown/scalatest
src/test/scala/org/scalactic/TraversableConstraintsSpec.scala
Scala
apache-2.0
3,243
/* * Copyright 2014 JHC Systems Limited * * 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...
jhc-systems/sqlest
sqlest/src/test/scala/sqlest/sql/UpdateStatementBuilderSpec.scala
Scala
apache-2.0
1,849
package fpinscala.applicative import org.scalatest.{FlatSpec, Matchers} class ApplicativeSpec extends FlatSpec with Matchers { import Applicative._ // Exercise 1 "An Applicative" should "make a product" in { streamApplicative.product(Stream(1, 2), Stream(3, 4)) shouldBe Stream( (1, 3), (2, 4))...
goboss/fpinscala
exercises/src/test/scala/fpinscala/applicative/ApplicativeSpec.scala
Scala
mit
2,999
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\\ * @ @ * * # # # # (c) 2017 CAB * * # # # # # # ...
AlexCAB/MathAct
mathact_examples/src/main/scala/manual/sketches/MySecondSketch.scala
Scala
mit
1,723
abstract class Foo { def identity[T](x : => T) : (=> T) }
yusuke2255/dotty
tests/untried/neg/t0351.scala
Scala
bsd-3-clause
60
package epic.parser import epic.parser.projections.AnchoredPCFGProjector import breeze.util.SerializableLogging import epic.constraints.ChartConstraints import epic.framework.{EPScorer, EPInference} import epic.trees.TreeInstance import epic.lexicon.Lexicon import epic.parser.models.AnnotatedParserInference /** * TO...
langkilde/epic
src/main/scala/epic/parser/EPChartFactory.scala
Scala
apache-2.0
1,208
package io.buoyant.namerd.storage.consul import com.fasterxml.jackson.annotation.JsonIgnore import com.twitter.finagle.service.Backoff import com.twitter.finagle.tracing.NullTracer import com.twitter.finagle.{Http, Path} import io.buoyant.config.types.Port import io.buoyant.consul.utils.RichConsulClient import io.buoy...
BuoyantIO/linkerd
namerd/storage/consul/src/main/scala/io/buoyant/namerd/storage/consul/ConsulDtabStoreInitializer.scala
Scala
apache-2.0
2,362
/* * 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
core/src/main/scala/org/apache/spark/util/ThreadUtils.scala
Scala
apache-2.0
6,501
import es.weso.reconciliator.CountryReconciliator object Main { def main(args: Array[String]): Unit = { } }
weso/CountryReconciliator
src/main/scala/Main.scala
Scala
apache-2.0
113
/* * Copyright (c) 2014-2021 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
monix/monix
monix-tail/shared/src/main/scala/monix/tail/internal/IterantConcat.scala
Scala
apache-2.0
4,869
package org.kokho.scheduling.rts.multicritical import org.kokho.scheduling.ScheduledJob import org.slf4j.LoggerFactory import scala.collection.mutable /** * Created with IntelliJ IDEA on 6/3/15. * @author: Mikhail Kokho */ final class SwapSchedule(partition: Seq[Seq[MulticriticalTask]]) extends MulticriticalSc...
mkokho/dynoslack
old_sources/main/scala/kokho/scheduling/rts/multicritical/SwapSchedule.scala
Scala
apache-2.0
5,414
package biz.k11i.xgboost.spark.demo import biz.k11i.xgboost.TemporaryFileResource import biz.k11i.xgboost.spark.model.XGBoostRegression import org.apache.spark.SparkConf import org.apache.spark.ml.evaluation.RegressionEvaluator import org.apache.spark.sql.SparkSession object RegressionExample { def main(args: Array...
komiya-atsushi/xgboost-predictor-java
xgboost-predictor-examples/src/main/scala/biz/k11i/xgboost/spark/demo/RegressionExample.scala
Scala
apache-2.0
1,384
/* * Copyright © 2015-2019 the contributors (see Contributors.md). * * This file is part of Knora. * * Knora 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 the License, or *...
musicEnfanthen/Knora
webapi/src/test/scala/org/knora/webapi/e2e/v1/ResourcesV1R2RSpec.scala
Scala
agpl-3.0
114,786
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2018, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
ashawley/scala-xml
shared/src/main/scala/scala/xml/transform/BasicTransformer.scala
Scala
bsd-3-clause
1,909
package nlp_serde.writers import nlp_serde.readers.PerLineJsonReader import nlp_serde.{JsonUtil, FileUtil, Document} import nlp_serde.JsonUtil import java.io.{File, PrintWriter} import play.api.libs.json.Json import scala.collection.mutable /** * Json writer that writes a single json per file * @author sameer * @...
sameersingh/nlp_serde
src/main/scala/nlp_serde/writers/JsonWriter.scala
Scala
bsd-2-clause
2,440
package org.jetbrains.plugins.scala.lang.psi.light import java.util import javax.swing._ import com.intellij.navigation.ItemPresentation import com.intellij.openapi.util.text.StringUtil import com.intellij.openapi.util.{Pair, TextRange} import com.intellij.pom.java.LanguageLevel import com.intellij.psi._ import com.i...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/psi/light/PsiClassWrapper.scala
Scala
apache-2.0
10,811
package com.themillhousegroup.l7 import org.specs2.mutable.Specification class AutomergeSpec extends Specification { "Automerge" should { "Reject file handles that don't exist" in { val result = Automerge("src/test/resources/kjfh", "src/test/resources/one").dryRun result must beAFailedTry } ...
themillhousegroup/l7-merge
src/test/scala/com/themillhousegroup/l7/AutomergeSpec.scala
Scala
mit
975
/* * 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/serving/src/main/scala/com/intel/analytics/bigdl/serving/serialization/ArrowDeserializer.scala
Scala
apache-2.0
3,739
package sample.hello import akka.actor._ import collection.JavaConversions._ import collection.mutable.{HashMap,MultiMap,Map} import scala.collection.mutable /** * Created by root on 3/3/15. */ class FragmentationFeatures extends Actor{ val relevance= context.actorOf(Props[Relevance], name= "relevance_features") ...
SteliosKats/Plagiarism_Detection_System_Using_Akka
src/main/scala/sample/hello/FragmentationFeatures.scala
Scala
cc0-1.0
5,221
// Copyright 2014 Commonwealth Bank of Australia // // 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 ap...
CommBank/maestro
maestro-schema/src/main/scala/au/com/cba/omnia/maestro/schema/schema/ColumnSpec.scala
Scala
apache-2.0
2,352
/** * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package akka.actor.dungeon import scala.collection.immutable import akka.actor.{ InvalidActorNameException, ChildStats, ChildRestartStats, ChildNameReserved, ActorRef } import akka.dispatch.sysmsg.{ EarliestFirstSystemMessageList, SystemMessa...
jmnarloch/akka.js
akka-js-actor/js/src/main/scala/akka/actor/dungeon/ChildrenContainer.scala
Scala
bsd-3-clause
9,077
package com.rbmhtechnology.eventuate.chaos import akka.actor.ActorRef import akka.util.Timeout import com.rbmhtechnology.eventuate.crdt.ORSetService import scala.concurrent.duration._ class ChaosSetInterface(service: ORSetService[Int]) extends ChaosInterface { val setId = "test" implicit val timeout = Timeout(...
RBMHTechnology/eventuate-chaos
src/main/scala/com/rbmhtechnology/eventuate/chaos/ChaosSetInterface.scala
Scala
apache-2.0
752
import dit4c.common.KryoSerializable import dit4c.common.ProtobufSerializable import java.time.Instant import com.google.protobuf.timestamp.Timestamp package object domain { object BaseDomainEvent { import scala.language.implicitConversions implicit def instant2timestamp(instant: Instant): Timestamp = ...
dit4c/dit4c
dit4c-portal/app/domain/package.scala
Scala
mit
946
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
felixmulder/scala
src/library/scala/Product7.scala
Scala
bsd-3-clause
2,404
package com.programmaticallyspeaking.nashornmonads.nashorn import java.io._ import java.nio.file.{FileSystems, StandardCopyOption, Files, Path} import java.util.concurrent.Executors import java.util.{UUID, Scanner} import javax.script.{ScriptContext, ScriptEngine, Bindings} import jdk.nashorn.api.scripting.{JSObject,...
provegard/NashornMonads
src/main/scala/nashorn/Bridge.scala
Scala
mit
4,450
package jp.hotbrain.makecsv import java.nio.charset.StandardCharsets import java.security.MessageDigest import javax.crypto._ import javax.crypto.spec._ /** * Created by hideki takada on 2016/09/10. */ case class AesParam( serial: String, keyStr: String, ...
HidekiTak/make_csv
src/main/scala/jp/hotbrain/makecsv/AesParam.scala
Scala
apache-2.0
1,235
package dotty.tools package dotc package util import scala.collection.mutable.ArrayBuffer import dotty.tools.io._ import annotation.tailrec import java.util.regex.Pattern import java.io.IOException import Chars._ import ScriptSourceFile._ import Positions._ object ScriptSourceFile { private val headerPattern = Patt...
AlexSikia/dotty
src/dotty/tools/dotc/util/SourceFile.scala
Scala
bsd-3-clause
4,082
package com.codacy.client.bitbucket.v2.service import java.net.URLEncoder import com.codacy.client.bitbucket.client.{BitbucketClient, Request, RequestResponse} import com.codacy.client.bitbucket.v2.{PullRequest, PullRequestComment, PullRequestReviewers, SimpleCommit} import play.api.libs.json._ class PullRequestServ...
codacy/bitbucket-scala-client
src/main/scala/com/codacy/client/bitbucket/v2/service/PullRequestServices.scala
Scala
apache-2.0
5,420
package org.json4s import org.json4s.reflect.ScalaType trait RichSerializer[A] { def deserialize(implicit format: Formats): PartialFunction[(ScalaType, JValue), A] def serialize(implicit format: Formats): PartialFunction[Any, JValue] }
json4s/json4s
core/src/main/scala/org/json4s/RichSerializer.scala
Scala
apache-2.0
242
package sk.scalagine.math.transformation import sk.scalagine.math.{Matrix4x4, Vector3} /** * Created with IntelliJ IDEA. * User: zladovan * Date: 13.7.2014 * Time: 12:33 */ object Rotation { def apply(axis: Vector3, angleInRadians: Float): Matrix4x4 = rotation(axis, angleInRadians) def x(angleInRadians: Fl...
zladovan/scalagine
engine/math/src/main/scala/sk/scalagine/math/transformation/Rotation.scala
Scala
mit
2,405
package org.bitcoins.wallet import org.bitcoins.asyncutil.AsyncUtil import org.bitcoins.core.api.wallet.db.SpendingInfoDb import org.bitcoins.core.currency.Satoshis import org.bitcoins.core.protocol.BitcoinAddress import org.bitcoins.core.protocol.blockchain.{Block, RegTestNetChainParams} import org.bitcoins.core.prot...
bitcoin-s/bitcoin-s
wallet-test/src/test/scala/org/bitcoins/wallet/WalletCallbackTest.scala
Scala
mit
6,761
package xiatian.knowledge.models import java.text.SimpleDateFormat import reactivemongo.api.collections.bson.BSONCollection import reactivemongo.bson.{BSONDocument, BSONDocumentReader, BSONDocumentWriter, Macros} import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future /** * 期刊对象 ...
iamxiatian/knowledge
src/main/scala/xiatian/knowledge/models/Journal.scala
Scala
gpl-3.0
2,855
/* * Copyright 2018 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/paac-frontend
test/controllers/action/ReadKeystoreActionSpec.scala
Scala
apache-2.0
3,922
package org.ndc.ndc import scala.io.Source import org.scalatest.matchers.ShouldMatchers import org.scalatest.testng.TestNGSuite import org.testng.Assert._ import org.testng.annotations.Test import org.testng.annotations.DataProvider case class XmlResource(resourcePath: String, expectedContent: String) { def getSour...
NikolajLeischner/near_duplicates
src/test/scala/org/ndc/ndc/ExtractContentTest.scala
Scala
mit
1,425
package play.api.libs.functional import scala.language.higherKinds trait Applicative[M[_]] { def pure[A](a: A): M[A] def map[A, B](m: M[A], f: A => B): M[B] def apply[A, B](mf: M[A => B], ma: M[A]): M[B] } class ApplicativeOps[M[_], A](ma: M[A])(implicit a: Applicative[M]) { def ~>[B](mb: M[B]): M[B] = a(...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play-functional/src/main/scala/play/api/libs/functional/Applicative.scala
Scala
mit
697
package fi.pyppe.ircbot.slave import org.specs2.mutable._ import scala.concurrent.Future class ImgurIntegrationTest extends Specification { val url = "http://imgur.com/gallery/ONusBWD" def await[T](f: Future[T]) = scala.concurrent.Await.result(f, scala.concurrent.duration.Duration("10s")) "Imgur" should { ...
Pyppe/akka-ircbot
slave/src/test/scala/fi/pyppe/ircbot/slave/ImgurIntegrationTest.scala
Scala
mit
596
package com.saikocat.spark.streaming import org.apache.spark.sql.catalyst.InternalRow import org.apache.spark.sql.catalyst.encoders.ExpressionEncoder abstract class AbstractWriteTask[T] { def parameters: Map[String, String] def expressionEncoder: ExpressionEncoder[T] def setup: () => Unit def writeRecordFunc...
saikocat/spark-foreachiterator-sink
core/src/main/scala/com/idyllic/spark/streaming/AbstractWriterTask.scala
Scala
mit
610
/* * Copyright (c) 2012-2022 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
snowplow/schema-ddl
modules/core/src/main/scala/com.snowplowanalytics/iglu.schemaddl/redshift/ColumnAttribute.scala
Scala
apache-2.0
2,659
/* sbt -- Simple Build Tool * Copyright 2009 Mark Harrah */ package sbt.wrap // This file exists for compatibility between Scala 2.7.x and 2.8.0 import java.util.{Map => JMap, Set => JSet} private[sbt] object Wrappers { def javaMap[K,V](pairs: (K,V)*) = { val basic = basicMap[K,V] for( (k,v) <- pairs) ba...
matheshar/simple-build-tool
src/main/scala/sbt/wrap/Wrappers.scala
Scala
bsd-3-clause
3,747
/* * 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 ...
sryza/spark
examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala
Scala
apache-2.0
3,749
package Chapter20 import scala.util.matching.Regex import scala.util.parsing.combinator.lexical.StdLexical import scala.util.{Failure, Success, Try} import scala.util.parsing.combinator.syntactical.{StandardTokenParsers, StdTokenParsers} import scala.util.parsing.combinator.{PackratParsers, RegexParsers} import scala....
vasnake/scala-for-the-impatient
src/main/scala/Chapter20/Parsing.scala
Scala
gpl-3.0
43,962
/* * MUSIT is a museum database to archive natural and cultural history data. * Copyright (C) 2016 MUSIT Norway, part of www.uio.no (University of Oslo) * * 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 Softw...
kpmeen/musit
service_storagefacility/app/repositories/shared/dao/ColumnTypeMappers.scala
Scala
gpl-2.0
3,925
/* * Copyright © 2014 spray-session * * 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...
gnieh/spray-session
src/main/scala/spray/routing/session/Session.scala
Scala
apache-2.0
730
package com.github.havarunner import org.junit.runner.{Description, Runner} import org.junit.runner.notification.RunNotifier import scala.collection.JavaConversions._ import Validations._ import java.lang.reflect.{Field, InvocationTargetException} import org.junit.runner.manipulation.{Filter, Filterable} import com.gi...
havarunner/havarunner
src/main/scala/com/github/havarunner/HavaRunner.scala
Scala
mit
8,209
package com.github.duongdang.wikipedia.io import org.apache.hadoop.io.{DataOutputBuffer, LongWritable, Text} import org.apache.hadoop.io.compress.{CompressionCodecFactory, SplittableCompressionCodec} import org.apache.hadoop.fs.Path import scala.xml.XML import org.apache.hadoop.mapreduce.lib.input.{FileSplit, FileInp...
duongdang/wiki-extraction
src/main/scala/com/github/duongdang/wikipedia/io/WikiInputFormat.scala
Scala
apache-2.0
3,428
/* * Copyright 2009-2010 LinkedIn, 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 ...
linkedin/norbert
cluster/src/main/scala/com/linkedin/norbert/jmx/JMX.scala
Scala
apache-2.0
2,946
package io.skysail.server.app.resources import io.skysail.domain.{AsyncResponseEvent, RequestEvent, ResponseEvent} import io.skysail.domain.resources.EntityResource import io.skysail.server.app.RootApplication import scala.concurrent.ExecutionContext.Implicits.global import scala.util.Success case class RootInfo(tit...
evandor/skysail-server
skysail.server/src/io/skysail/server/app/resources/RootResource.scala
Scala
apache-2.0
1,343
package com.kodekutters.czml import java.io.{IOException, File, PrintWriter} import com.kodekutters.czml.czmlProperties._ import play.api.libs.json.Json /** * basic supporting utilities */ object Util { // constants val COMPLETE = "COMPLETE" val BELOW_ELLIPSOID_HORIZON = "BELOW_ELLIPSOID_HORIZON" val ...
workingDog/scalaczml
src/main/scala/com/kodekutters/czml/Util.scala
Scala
bsd-3-clause
2,336
/* * 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
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
Scala
apache-2.0
26,969
package com.alzindiq.example import com.alzindiq.Plumber import com.alzindiq.cluster.Clusterer import com.alzindiq.indexer.FieldIndexer import com.hp.hpl.plumb.bucketer.SimpleWordBucketer import com.hp.hpl.plumb.indexer.InvertedIndex import com.rockymadden.stringmetric.similarity.JaccardMetric import org.scalatest.{Ma...
alzindiq/plumb
src/test/scala/com/alzindiq/example/CoraTest.scala
Scala
apache-2.0
6,347
/** * Copyright (c) 2016 Intel 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 applicabl...
trustedanalytics/spark-tk
sparktk-core/src/main/scala/org/trustedanalytics/sparktk/models/clustering/lda/LdaTrainArgs.scala
Scala
apache-2.0
5,270
import edu.uta.diql._ import scala.io.Source import scala.collection.parallel.ParIterable object Test { def main ( args: Array[String] ) { println("Number of cores: "+Runtime.getRuntime().availableProcessors()) println("Memory: "+(Runtime.getRuntime.maxMemory / 1024)) var t: Long = System.currentTimeMi...
fegaras/DIQL
tests/parallel/map.scala
Scala
apache-2.0
1,308
package chapter8 object firstclassFunction { var inc: (Int) => Int = { (x: Int) => x + 1 } def main(args: Array[String]): Unit = { println(inc(10)) val someNumbers = List(10, 2, 4, 1, 5, -9) someNumbers.foreach(x => print("\\t" + x)) someNumbers.foreach(println(_)) println("\\n" + someN...
NikhilJose/ScalaPractice
src/main/scala/chapter8/firstclassFunction.scala
Scala
apache-2.0
398
package com.github.probe.backend.message sealed trait ServerToClientMessage
khernyo/freezing-ninja
common/src/main/scala/com/github/probe/backend/message/ServerToClientMessage.scala
Scala
apache-2.0
77
package im.actor.server.persist import java.time.{ ZoneOffset, LocalDateTime } import im.actor.server.db.ActorPostgresDriver.api._ import im.actor.server.models class UserTable(tag: Tag) extends Table[models.User](tag, "users") { import SexColumnType._ import UserStateColumnType._ def id = column[Int]("id", ...
v2tmobile/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/User.scala
Scala
mit
2,878
package registry import com.yetu.oauth2resource.settings.OAuth2ProviderSettings object MyOAuth2ProviderSettings extends OAuth2ProviderSettings { //change this url as you please. val Oauth2providerBaseUrl = "https://auth.yetudev.com" }
yetu/oauth2-resource-server
sampleOAuth2ResourceServer/app/registry/MyOAuth2ProviderSettings.scala
Scala
mit
242
package com.cloudray.scalapress.widgets import javax.persistence.{Table, Entity} import scala.beans.BeanProperty import com.cloudray.scalapress.framework.ScalapressRequest import com.cloudray.scalapress.media.ImageResolver /** @author Stephen Samuel */ @Entity @Table(name = "boxes_custom") class HtmlWidget extends Wi...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/widgets/HtmlWidget.scala
Scala
apache-2.0
578
package org.scalaide.extensions package autoedits import org.eclipse.jdt.ui.text.IJavaPartitions import org.eclipse.jface.text.IDocument import org.scalaide.core.lexical.ScalaPartitions import org.scalaide.core.text.TextChange object CloseCharSetting extends AutoEditSetting( id = ExtensionSetting.fullyQualifiedName...
romanowski/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/extensions/autoedits/CloseChar.scala
Scala
bsd-3-clause
1,412
/* * 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 ...
BryanCutler/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveHints.scala
Scala
apache-2.0
12,458
/* * Artificial Intelligence for Humans * Volume 2: Nature Inspired Algorithms * Java Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * * Copyright 2014 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
PeterLauris/aifh
vol2/vol2-scala-examples/src/main/scala/com/heatonresearch/aifh/evolutionary/sort/AbstractGenomeComparator.scala
Scala
apache-2.0
1,758
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO3 package com.google.protobuf.wrappers /** Wrapper message for `bytes`. * * The JSON representation for `BytesValue` is JSON string. * * @param value * The bytes value. */ @SerialVersionUID(0L...
scalapb/ScalaPB
scalapb-runtime/src/main/js-native/com/google/protobuf/wrappers/BytesValue.scala
Scala
apache-2.0
5,964
package com.twitter.finagle.exp.zookeeper.connection import com.twitter.finagle.Status import com.twitter.finagle.exp.zookeeper.{RepPacket, ReqPacket} import com.twitter.finagle.{Service, ServiceFactory} import com.twitter.util.{Duration, Future, Time} import java.util.concurrent.atomic.AtomicBoolean /** * Connectio...
finagle/finagle-zookeeper
core/src/main/scala/com/twitter/finagle/exp/zookeeper/connection/Connection.scala
Scala
apache-2.0
2,697
package org.jetbrains.plugins.scala.lang.typeInference package generated class TypeInferenceExpectedPlaceholderTest extends TypeInferenceTestBase { //This class was generated by build script, please don't change this override def folderPath: String = super.folderPath + "expected/placeholder/" def testAmbiguousF...
katejim/intellij-scala
test/org/jetbrains/plugins/scala/lang/typeInference/generated/TypeInferenceExpectedPlaceholderTest.scala
Scala
apache-2.0
1,107
package com.blinkbox.books.marvin.magrathea.api import java.net.URL import java.util.UUID import com.blinkbox.books.config.ApiConfig import com.blinkbox.books.marvin.magrathea.message.{DocumentDao, Revision} import com.blinkbox.books.marvin.magrathea.{History, SchemaConfig, TestHelper} import com.blinkbox.books.spray...
blinkboxbooks/magrathea
src/test/scala/com/blinkbox/books/marvin/magrathea/api/RestApiTest.scala
Scala
mit
8,232
// Copyright 2017 Google 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 applicable law or agreed to in ...
google/bottlerocket
src/main/scala/bottlerocket/FrontendBuffer.scala
Scala
apache-2.0
7,514
/* * Copyright (c) 2015 Robert Conrad - All Rights Reserved. * Unauthorized copying of this file, via any medium is strictly prohibited. * This file is proprietary and confidential. * Last modified by rconrad, 1/3/15 6:43 PM */ package base.socket.json import base.socket.message.CommandSerializer import org.json...
robconrad/base-api
project-socket/src/main/scala/base/socket/json/JsonFormats.scala
Scala
mit
631
/* * 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 ...
xieguobin/Spark_2.0.0_cn1
ml/tree/impl/TreePoint.scala
Scala
apache-2.0
5,278
package io.iohk.ethereum.faucet.jsonrpc import akka.actor.ActorSystem import akka.http.scaladsl.model.Uri import io.circe.syntax._ import akka.util.ByteString import io.iohk.ethereum.domain.Address import io.iohk.ethereum.jsonrpc.client.RpcClient import io.iohk.ethereum.jsonrpc.client.RpcClient.RpcError import io.iohk...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/faucet/jsonrpc/WalletRpcClient.scala
Scala
mit
1,125
/* mcmc-stream.scala */ import breeze.linalg._ import breeze.plot._ import breeze.stats.distributions._ import breeze.stats.meanAndVariance import annotation.tailrec object MCMC { def mcmcSummary(dv: DenseVector[Double]): Figure = { val len = dv.length val mav = meanAndVariance(dv) val mean = mav.me...
darrenjw/blog
mcmc-stream/src/main/scala/mcmc-stream/mcmc-stream.scala
Scala
apache-2.0
5,843
package pw.ian.sysadmincraft.tasks import org.bukkit.scheduler.BukkitRunnable import pw.ian.sysadmincraft.SysAdmincraft case class PermaDayTask(plugin: SysAdmincraft) extends BukkitRunnable { override def run(): Unit = { plugin.world.setTime(6000L) } }
simplyianm/sysadmincraft
src/main/scala/pw/ian/sysadmincraft/tasks/PermaDayTask.scala
Scala
isc
265
package edu.mit.csail.sdg.ormolu import edu.mit.csail.sdg.alloy4compiler.ast.Func import scala.collection.JavaConversions._ import edu.mit.csail.sdg.alloy4.translator.AlloyToOrmolu import edu.mit.csail.sdg.ormolu.rel.{Relation, Variable} import edu.mit.csail.sdg.hsqldb.syntax.value.{BoolValueExpr, ValueExpr} im...
dlreeves/ormolu
src/edu/mit/csail/sdg/ormolu/Predicate.scala
Scala
mit
1,490
package com.arcusys.valamis.persistence.impl.slide import com.arcusys.valamis.persistence.common.{DatabaseLayer, SlickProfile} import com.arcusys.valamis.persistence.impl.slide.schema.SlideTableComponent import com.arcusys.valamis.slide.model.Device import com.arcusys.valamis.slide.storage.DeviceRepository import slic...
arcusys/Valamis
valamis-slick-persistence/src/main/scala/com/arcusys/valamis/persistence/impl/slide/DeviceRepositoryImpl.scala
Scala
gpl-3.0
732
package net.mentalarray.doozie.Internal /** * Created by kdivincenzo on 2/6/15. */ trait Server { /** * The port that the server is listening on. * @return The TCP port */ def port: Int /** * The delegate type of the OnClientConnected event callback (handler). */ type OnClientConnected = Ipc...
antagonist112358/tomahawk
workflow-engine/src/net/mentalarray/doozie/Internal/Server.scala
Scala
apache-2.0
822
/* * Copyright 2013 David Savage * * 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...
davemssavage/modula
api/src/main/scala/org/chronologicalthought/modula/ServiceComparator.scala
Scala
apache-2.0
1,672
/* * 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/javaSerialization.scala
Scala
apache-2.0
1,676
package com.fsist.safepickle.joda import com.fsist.safepickle._ import org.joda.time._ /** Picklers for joda-time types which, by default, pickle them as Long values counting milliseconds. */ object JodaTimePicklers { implicit object InstantPickler extends ConvertPickler[Instant, Long] { override def convertFro...
fsist/safepickle
safepickle-joda-time/src/main/scala/com/fsist/safepickle/joda/JodaTimePicklers.scala
Scala
apache-2.0
1,216
/** * The MIT License (MIT) * * Copyright (c) 2018 Israel Freitas(israel.araujo.freitas@gmail.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 with...
ifreitas/AimlToXml
src/main/scala/ifreitas/scalaaiml/elements/PatternSideBotProperty.scala
Scala
mit
1,348
package com.twitter.server.view import com.twitter.finagle.param.Label import com.twitter.finagle.util.StackRegistry import com.twitter.finagle.{Stack, StackBuilder, Stackable} import org.scalatest.funsuite.AnyFunSuite private[server] object StackRegistryViewTest { case class Incr(incrementBy: Int) implicit objec...
twitter/twitter-server
server/src/test/scala/com/twitter/server/view/StackRegistryViewTest.scala
Scala
apache-2.0
2,845
/* * 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 ...
USCDataScience/nutch-analytics
src/main/scala/gov/nasa/jpl/analytics/tools/dump/Dedup.scala
Scala
apache-2.0
5,059
package mesosphere.marathon package raml import mesosphere.marathon.core.condition import mesosphere.marathon.raml.LocalVolumeConversion.localVolumeIdWrites object TaskConversion extends HealthConversion with DefaultConversions { implicit val enrichedTaskRamlWrite: Writes[core.appinfo.EnrichedTask, Task] = Writes {...
guenter/marathon
src/main/scala/mesosphere/marathon/raml/TaskConversion.scala
Scala
apache-2.0
1,514
package com.arcusys.valamis.lesson.service.impl import com.arcusys.valamis.lesson.model.LessonLimit import com.arcusys.valamis.lesson.service.LessonLimitService import com.arcusys.valamis.lesson.storage.LessonTableComponent import com.arcusys.valamis.lesson.storage.query.LessonLimitQueries import com.arcusys.valamis.m...
igor-borisov/valamis
valamis-lesson/src/main/scala/com/arcusys/valamis/lesson/service/impl/LessonLimitServiceImpl.scala
Scala
gpl-3.0
1,404
/** * Intersection Types: http://dotty.epfl.ch/docs/reference/intersection-types.html */ object IntersectionTypes { sealed trait X { def x: Double def tpe: X } sealed trait Y { def y: Double def tpe: Y } type P = Y & X type PP = X & Y final case class Point(x: Double, y: Double) ex...
smarter/dotty-example-project
src/main/scala/IntersectionTypes.scala
Scala
bsd-3-clause
629
import java.util.Date given Conversion[String, Int] = _.length given Conversion[Int, String] = _.toString given Conversion[Int, Date] = new Date(_) def f(x: String): Int = x.convert def g(x: Int): String = x.convert def h(x: Int): Date = x.convert
lampepfl/dotty
tests/pos/convert.scala
Scala
apache-2.0
250
package org.jetbrains.plugins.scala package lang package psi package impl package statements import com.intellij.lang.ASTNode import com.intellij.openapi.progress.ProgressManager import com.intellij.psi._ import com.intellij.psi.scope.PsiScopeProcessor import org.jetbrains.plugins.scala.lang.lexer._ import org.jetbrai...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/statements/ScFunctionImpl.scala
Scala
apache-2.0
3,724
package models.daos import java.util.UUID import javax.inject.Inject import models._ import models.daos.tables._ import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider} import slick.jdbc.JdbcProfile import slick.jdbc.PostgresProfile.api._ import scala.concurrent.ExecutionContext.Implicits.global...
wjglerum/bamboesmanager
app/models/daos/RegistrationDAO.scala
Scala
mit
3,922
/* * Copyright (C) 2015 Romain Reuillon * * This program 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 the License, or * (at your option) any later version. * * This progra...
openmole/openmole
openmole/plugins/org.openmole.plugin.task.tools/src/main/scala/org/openmole/plugin/task/tools/Activator.scala
Scala
agpl-3.0
1,454