code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* * Copyright (C) 2011 Mathias Doenitz * * 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...
rsun07/spray-json
src/test/scala/spray/json/CollectionFormatsSpec.scala
Scala
apache-2.0
2,756
package io.eels.yarn import java.util import javax.servlet.Servlet import io.eels.component.parquet.ParquetSource import org.apache.commons.cli.CommandLine import org.apache.commons.codec.binary.BinaryCodec import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.{FileSystem, Hdfs, Path} import org.apa...
eel-lib/eel
eel-yarn/src/main/scala/io/eels/yarn/YarnSampleApp.scala
Scala
mit
4,314
// Databricks notebook source // MAGIC %md // MAGIC # [SDS-2.2, Scalable Data Science](https://lamastex.github.io/scalable-data-science/sds/2/2/) // COMMAND ---------- // MAGIC %md // MAGIC Archived YouTube video of this live unedited lab-lecture: // MAGIC // MAGIC [![Archived YouTube video of this live unedited lab...
raazesh-sainudiin/scalable-data-science
db/2/2/040a_TDigestInputStream.scala
Scala
unlicense
1,843
package sorm.test.types import org.scalatest.FunSuite import org.scalatest.matchers.ShouldMatchers import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import sorm._ import samples._ import sorm.test.MultiInstanceSuite @RunWith(classOf[JUnitRunner]) class SeqOfIntsSupportSuite extends FunSuite wit...
sorm/sorm
src/test/scala/sorm/test/types/SeqOfIntsSupportSuite.scala
Scala
mit
2,942
/* * Copyright (c) 2012-2014 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...
yeghishe/snowplow
3-enrich/scala-hadoop-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.hadoop/bad/NullNumericFieldsSpec.scala
Scala
apache-2.0
2,930
/* * 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...
jedesah/Quasar
mimir/src/main/scala/quasar/mimir/MimirCake.scala
Scala
apache-2.0
3,887
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs/contributors // License: http://www.gnu.org/licenses/lgpl-3.0.en.html package org.ensime.sexp import java.io.File import java.net.URI import java.nio.file._ import java.util.UUID import scala.collection.generic.CanBuildFrom import simulacrum._...
ensime/ensime-server
s-express/src/main/scala/org/ensime/sexp/SexpReader.scala
Scala
gpl-3.0
4,525
package ru.pavkin.todoist.api.dispatch.impl.circe import cats.Apply import cats.data.Xor import cats.std.FutureInstances import dispatch.Req import io.circe.parser._ import io.circe.{Json, ParsingFailure} import ru.pavkin.todoist.api.dispatch.core.{DispatchRequestExecutor, DispatchStringRequestExecutor} import ru.pavk...
vpavkin/todoist-api-scala
dispatch-circe/src/main/scala/ru/pavkin/todoist/api/dispatch/impl/circe/DispatchJsonRequestExecutor.scala
Scala
mit
1,221
package io.netflow.storage.redis import io.netflow.flows.cflow._ import io.netflow.lib._ private[netflow] object NetFlowV1Packet extends FlowPacketMeta[NetFlowV1Packet] { def persist(fp: NetFlowV1Packet): Unit = () }
ayscb/netflow
netflow1/netflow-master/src/main/scala/io/netflow/storage/redis/NetFlowV1Packet.scala
Scala
apache-2.0
220
package com.avast.cactus.grpc.client trait GrpcClient
avast/cactus
grpc-client/src/main/scala/com/avast/cactus/grpc/client/GrpcClient.scala
Scala
apache-2.0
55
package io.github.rkluszczynski /** * 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, Ve...
rkluszczynski/tutorial-kafka-streaming
flink-project/src/main/scala/io/github/rkluszczynski/Job.scala
Scala
apache-2.0
2,134
package scalan.util import java.math.BigInteger import java.nio.ByteBuffer import scala.language.higherKinds object Extensions { implicit class BooleanOps(val b: Boolean) extends AnyVal { /** Convert true to 1 and false to 0 * @since 2.0 */ def toByte: Byte = if (b) 1 else 0 } /** HOTSPOT:...
ScorexFoundation/sigmastate-interpreter
common/src/main/scala/scalan/util/Extensions.scala
Scala
mit
6,473
/* * 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/test/scala/kantan/csv/EitherCodecTests.scala
Scala
mit
1,062
package org.vaslabs.granger import java.io.{File, FileWriter, PrintWriter} import java.time.{Clock, Instant, ZoneOffset, ZonedDateTime} import akka.actor.typed.ActorRef import akka.util.Timeout import io.circe.{Decoder, Encoder} import org.eclipse.jgit.api.Git import org.eclipse.jgit.storage.file.FileRepositoryBuilde...
vaslabs/granger
src/test/scala-2.12/org/vaslabs/granger/BaseSpec.scala
Scala
lgpl-3.0
4,457
package controllers.sitedata.table import javax.inject._ import play.api._ import play.api.mvc._ import play.api.data.Form import play.api.data.Forms._ import play.api.data._ import models.sitedata.SiteInfo import models.sitedata.SiteInfoDetail import models.sitedata.SubZone import models.sitedata.Zone import models.s...
tnddn/iv-web
portal/rest-portal/app/controllers/sitedata/table/SiteInfoDetailController.scala
Scala
apache-2.0
5,472
/* * 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 ...
steveloughran/spark-timeline-integration
yarn-timeline-history/src/test/scala/org/apache/spark/deploy/history/yarn/integration/YarnProviderUtilsSuite.scala
Scala
apache-2.0
14,161
package com.stovokor.editor.model.repository import com.stovokor.editor.model.Sector import java.util.concurrent.atomic.AtomicLong import com.stovokor.editor.model.Border import com.stovokor.editor.model.Line import com.stovokor.editor.model.Point object BorderRepository { val instance = new BorderRepository() de...
jcfandino/leveleditor
src/main/scala/com/stovokor/editor/model/repository/BorderRepository.scala
Scala
bsd-3-clause
1,656
package com.awsproserv.kafkaandsparkstreaming import kafka.producer.ProducerConfig import java.util.Properties import kafka.producer.Producer import scala.util.Random import kafka.producer.Producer import kafka.producer.Producer import kafka.producer.Producer import kafka.producer.KeyedMessage import java.util.Date o...
IanMeyers/aws-big-data-blog
aws-blog-sparkstreaming-from-kafka/src/main/scala/com/awsproserv/kafkaandsparkstreaming/ClickstreamKafkaProducer.scala
Scala
apache-2.0
1,241
/* * Copyright 2021 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/amls-frontend
app/controllers/msb/FundsTransferController.scala
Scala
apache-2.0
2,726
package scala.meta.eden package object convert { // outer context of an AST sealed trait Loc case object ExprLoc extends Loc case object PatLoc extends Loc case object SuperCallLoc extends Loc case object ParamLoc extends Loc case object ImportLoc extends Loc // mode of current AST sealed trait Mode...
liufengyun/eden
src/main/scala/meta/eden/convert/package.scala
Scala
bsd-3-clause
395
package arena.foundation import org.scalatest._ /** * @author Bhupendra Bhudia <bhupendra.bhudia@quedex.co> * 19/11/2015 09:34 */ class DirectionTestSpec extends FlatSpec with Matchers { val top = TOP val bottom = BOTTOM val left = LEFT val right = RIGHT val enumValues = Direction.values // T...
quedexco/arena-scala
src/test/scala/arena/foundation/DirectionTestSpec.scala
Scala
apache-2.0
1,507
package com.github.mdr.graphospasm.grapheditor.part import com.github.mdr.graphospasm.grapheditor.figure._ import com.github.mdr.graphospasm.grapheditor.model.commands._ import org.eclipse.gef.editpolicies.DirectEditPolicy import org.eclipse.gef.commands.Command import org.eclipse.gef.editpolicies.DirectEditPolicy im...
mdr/graphospasm
com.github.mdr.graphospasm.grapheditor/src/main/scala/com/github/mdr/graphospasm/grapheditor/part/ConnectionDirectEditPolicy.scala
Scala
mit
995
/** * Copyright 2015 Thomson Reuters * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
hochgi/CM-Well
server/cmwell-data-tools/src/main/scala/cmwell/tools/data/utils/ops/package.scala
Scala
apache-2.0
1,138
package blended.streams.dispatcher.internal.builder import akka.NotUsed import akka.stream.scaladsl.Flow import akka.stream.{FlowShape, Graph} import blended.container.context.api.ContainerContext import blended.jms.bridge.{BridgeProviderConfig, BridgeProviderRegistry} import blended.jms.utils.JmsDestination import bl...
woq-blended/blended
blended.streams.dispatcher/src/main/scala/blended/streams/dispatcher/internal/builder/DispatcherOutbound.scala
Scala
apache-2.0
4,663
/* * Copyright 2010-2011 Vilius Normantas <code@norma.lt> * * This file is part of Crossbow library. * * Crossbow is free software: you can redistribute it and/or modify it under the terms of the GNU * General Public License as published by the Free Software Foundation, either version 3 of the * License, or (at ...
ViliusN/Crossbow
crossbow-core/src/lt/norma/crossbow/indicators/Change.scala
Scala
gpl-3.0
1,454
package yuuto.yuutogates.blocks import cpw.mods.fml.common.registry.GameRegistry import net.minecraft.block.Block import yuuto.yuutogates.YuutoGates import yuuto.yuutogates.item.ItemGateBase import yuuto.yuutogates.tile.{TileGateXOR, TileGateOR, TileGateAND} /** * Created by Yuuto on 9/26/2015. */ object BlocksYG {...
AnimeniacYuuto/YuutoGates
src/main/scala/yuuto/yuutogates/blocks/BlocksYG.scala
Scala
lgpl-3.0
791
package com.faacets.qalg.syntax package object core extends core.Instances { object all extends AllSyntax }
denisrosset/qalg
core/src/main/scala/qalg/syntax/core/package.scala
Scala
mit
111
package test.ch.bsisa.hyperbird.util import ch.bsisa.hyperbird.model._ import ch.bsisa.hyperbird.model.format.Implicits._ import ch.bsisa.hyperbird.model.proto._ import ch.bsisa.hyperbird.util.format.JsonXmlConverter import org.specs2.mutable._ import scala.xml.XML import play.api.libs.json.Json import play.api.libs.j...
bsisa/hb-api
test/test/ch/bsisa/hyperbird/util/CfcConvert.scala
Scala
gpl-2.0
2,656
package edu.holycross.shot.ohco2 import edu.holycross.shot.cite._ import scala.scalajs.js import scala.scalajs.js.annotation._ import wvlet.log._ import wvlet.log.LogFormatter.SourceCodeLogFormatter import scala.annotation.tailrec /** The smallest canonically citable unit of a text. * * @param urn URN identifying ...
cite-architecture/ohco2
shared/src/main/scala/edu/holycross/shot/ohco2/CitableNode.scala
Scala
gpl-3.0
7,063
package scaladget.bootstrapnative /* * Copyright (C) 26/08/16 // mathieu.leclaire@openmole.org * * 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 ...
mathieuleclaire/scaladget
bootstrapnative/src/main/scala/scaladget/bootstrapnative/SelectableButtons.scala
Scala
agpl-3.0
2,762
/* * 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 ...
tkpanther/ignite
modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/ack/VisorAckCommand.scala
Scala
apache-2.0
4,121
package com.karasiq.bootstrap4.tooltip import com.karasiq.bootstrap.components.BootstrapComponents import com.karasiq.bootstrap.context.JSRenderingContext import com.karasiq.bootstrap.jquery.BootstrapJQueryContext trait JSTooltips { self: JSRenderingContext with BootstrapComponents with Tooltips with BootstrapJQueryC...
Karasiq/scalajs-bootstrap
library-v4/js/src/main/scala/com/karasiq/bootstrap4/tooltip/JSTooltips.scala
Scala
mit
1,585
package models.services import com.mohiva.play.silhouette.api.services.{ AuthInfo, IdentityService } import com.mohiva.play.silhouette.impl.providers.CommonSocialProfile import models.User import scala.concurrent.Future import java.util.UUID import play.api.i18n.Lang /** * Handles actions to users. */ trait UserSer...
BaptisteMounier/webPLM
app/models/services/UserService.scala
Scala
agpl-3.0
889
/* * 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...
twitter/storehaus
storehaus-algebra/src/main/scala/com/twitter/storehaus/algebra/ConvertedStore.scala
Scala
apache-2.0
2,048
/* ************************************************************** * * * * Copyright (c) 2016-, Kota Mizushima, All rights reserved. * * * * ...
kmizu/onion
src/main/scala/onion/compiler/OnionTypeConversion.scala
Scala
bsd-3-clause
3,420
package com.bigm.bot.engine.interceptors import akka.actor.ActorLogging import akka.contrib.pattern.ReceivePipeline import akka.contrib.pattern.ReceivePipeline.Inner trait LoggingInterceptor extends ActorLogging { this: ReceivePipeline => pipelineOuter { case ev => log.debug("{} received {}", getClass....
bigmlab/bigm-bot
src/main/scala/com/bigm/bot/engine/interceptors/LoggingInterceptor.scala
Scala
apache-2.0
371
import sbt._ import Keys._ object BuildSettings { val paradiseVersion = "2.0.1" val scalaBuildVersion = "2.11.5" val buildSettings = Defaults.defaultSettings ++ Seq( organization := "de.bstudios", scalacOptions ++= Seq("-deprecation"), scalaVersion := scalaBuildVersion, crossScalaVersions :=...
b-studios/laziness
project/Build.scala
Scala
mit
1,515
package com.aaron.kafka.codec.json import kafka.serializer import kafka.utils.VerifiableProperties import org.json4s._ import org.json4s.jackson.JsonMethods._ /** * * @param properties Encoder properties */ class Encoder(properties: VerifiableProperties = null) extends serializer.Encoder[JValue] { private[th...
aglahe/twitter-to-hbase
src/main/scala/com/aaron/kafka/codec/json/Encoder.scala
Scala
apache-2.0
486
/* * Online.scala * Online algorithms. * * Created By: Michael Howard * Creation Date: Mar 13, 2015 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email figaro@cra.com for information. * * See http://www.github.com/p2t2/figaro for a copy of the soft...
jyuhuan/figaro
Figaro/src/main/scala/com/cra/figaro/algorithm/Online.scala
Scala
bsd-3-clause
1,316
package com.scalaAsm.x86 package Instructions package General // Description: Jump short if not below/above or equal/not carry (CF=0) // Category: general/branch/cond trait JNB extends InstructionDefinition { val mnemonic = "JNB" } object JNB extends OneOperand[JNB] with JNBImpl trait JNBImpl extends JNB { impl...
bdwashbu/scala-x86-inst
src/main/scala/com/scalaAsm/x86/Instructions/General/JNB.scala
Scala
apache-2.0
659
package me.reminisce.gameboard.board import akka.actor.{ActorRef, PoisonPill} import me.reminisce.analysis.DataTypes._ import me.reminisce.analysis.model.{ItemSummary, UserSummary} import me.reminisce.analysis.model.Formatters._ import me.reminisce.database.{MongoCollections, findSome, withDb} import me.reminisce.game...
reminisceme/game-creator
src/main/scala/me/reminisce/gameboard/board/DifficultyBoardGenerator.scala
Scala
apache-2.0
15,693
package scala.meta.intellij import java.io._ import java.lang.reflect.InvocationTargetException import java.net.URL import com.intellij.openapi.compiler.{CompilationStatusListener, CompileContext, CompilerManager, CompilerPaths} import com.intellij.openapi.components.AbstractProjectComponent import com.intellij.opena...
triplequote/intellij-scala
scala/scala-impl/src/scala/meta/intellij/MetaExpansionsManager.scala
Scala
apache-2.0
12,190
package codecheck.github.models import org.json4s.JValue import org.json4s.jackson.JsonMethods case class Label(value: JValue) extends AbstractJson(value) { def url = get("url") def name = get("name") def color = get("color") } case class LabelInput(name: String, color: String) extends AbstractInput
code-check/github-api-scala
src/main/scala/codecheck/github/models/Label.scala
Scala
mit
311
package io.iohk.ethereum.blockchain.sync import akka.actor.{ActorRef, ActorSystem} import akka.testkit.TestActor.AutoPilot import akka.testkit.TestProbe import akka.util.ByteString import cats.effect.concurrent.Deferred import io.iohk.ethereum.blockchain.sync.PeerListSupport.PeersMap import io.iohk.ethereum.domain.{Blo...
input-output-hk/etc-client
src/test/scala/io/iohk/ethereum/blockchain/sync/EtcPeerManagerFake.scala
Scala
mit
5,096
package com.github.mdr.mash.ns.collections import com.github.mdr.mash.inference._ import com.github.mdr.mash.ns.core.StringClass import com.github.mdr.mash.runtime.MashString import com.github.mdr.mash.utils.Utils object SelectTypeInferenceStrategy extends TypeInferenceStrategy { import SelectFunction.Params._ ...
mdr/mash
src/main/scala/com/github/mdr/mash/ns/collections/SelectTypeInferenceStrategy.scala
Scala
mit
3,001
/* * 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 ...
shaneknapp/spark
mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/SpearmanCorrelation.scala
Scala
apache-2.0
3,489
package com.eevolution.context.dictionary.infrastructure.repository import com.eevolution.context.dictionary.domain.model.UserDefinedWindow import com.eevolution.context.dictionary.infrastructure.db.DbContext._ /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/repository/UserDefinedWindowMapping.scala
Scala
gpl-3.0
1,958
package com.calabs.dss.dataimport import org.scalatest.{TryValues, FunSpec} import scala.io.Source /** * Created by Jordi Aranda * <jordi.aranda@bsc.es> * 4/12/14 */ class DataResourceUtilsSpec extends FunSpec with TryValues { import Config._ describe("Data Resource Utils") { /************************...
CA-Labs/dss-data-import
src/test/scala/com/calabs/dss/dataimport/DataResourceUtilsSpec.scala
Scala
mit
5,417
package pl.touk.nussknacker.engine.avro.schema object NotValidSchema { val stringSchema: String = """ |{ | "type": "record", | "name": "NotValidSchema", | "fields": [ | { | "name": "street" | }, | { | "name": "city", | "type":...
TouK/nussknacker
engine/flink/avro-components-utils/src/test/scala/pl/touk/nussknacker/engine/avro/schema/NotValidSchema.scala
Scala
apache-2.0
385
/* * Copyright 2014 Cisco Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
foundation-runtime/orchestration
src/main/java/com/cisco/oss/foundation/orchestration/scope/scripting/IPlugin.scala
Scala
apache-2.0
962
/* * 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 ...
hengyicai/OnlineAggregationUCAS
core/src/main/scala/org/apache/spark/SparkHadoopWriter.scala
Scala
apache-2.0
7,574
import scala.quoted._ import Macros._ object Test { def main(args: Array[String]): Unit = { println("Normal function") println(foreach1(0, 5, x => println(x))) println() println("By name function") println(foreach2(0, 5, x => println(x))) println() println("Inline function") println...
som-snytt/dotty
tests/run-macros/quote-inline-function/quoted_2.scala
Scala
apache-2.0
360
package org.qbproject.schema.internal.json import org.qbproject.schema.QBType import org.qbproject.schema.internal.visitor._ import play.api.libs.json._ import scala.reflect.ClassTag /** * A JsValueProcessor that finds all types and paths for which the matcher evaluates to true and modifies them via the map * meth...
edgarmueller/qbproject
qbschema/src/main/scala/org/qbproject/schema/internal/json/JsValueUpdateBuilder.scala
Scala
apache-2.0
4,816
package au.id.cxd.math.probability.discrete import breeze.linalg.{DenseMatrix, Matrix} /** * A table distribution represents * a discrete collection of values which correspond to a discrete distribution. * * The table must have at least two columns. * * The domainColumn contains values of Y that map to th...
cxd/scala-au.id.cxd.math
math/src/main/scala/au/id/cxd/math/probability/discrete/TableDistribution.scala
Scala
mit
1,752
package a4.shard.controller import a4.shard.Configuration import a4.shard.render.RootRenderer import a4.shard.routing.Status._ import a4.shard.routing.{InputStreamResponse, Request, Response} import com.google.common.net.MediaType case class RootController(config: Configuration, rootRenderer: RootRenderer) { def a...
aggregat4/shard
src/main/scala/a4/shard/controller/RootController.scala
Scala
apache-2.0
440
package test_expect_failure.missing_direct_deps.internal_deps object HasCustomJavaProviderDependency { def foo = { C.foo } }
smparkes/rules_scala
test_expect_failure/missing_direct_deps/internal_deps/HasCustomJavaProviderDependency.scala
Scala
apache-2.0
134
package com.adamroughton.concentus.service.spark import com.adamroughton.concentus.ExternalProcessServiceBase import com.adamroughton.concentus.cluster.worker.ServiceContext import com.adamroughton.concentus.data.cluster.kryo.ServiceState import com.adamroughton.concentus.ConcentusHandle import com.adamroughton.concen...
adam-roughton/Concentus
SparkStreamingDriver/src/main/scala/com/adamroughton/concentus/service/spark/SparkSingleServerService.scala
Scala
apache-2.0
3,772
/*********************************************************************** * Copyright (c) 2013-2020 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
aheyne/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/geotools/SftArgResolver.scala
Scala
apache-2.0
6,038
package sparky /** * Created by samklr on 20/08/15. */ object Models { case class SomeData(id : String) }
samklr/spark-template
src/main/scala/sparky/Models.scala
Scala
mit
113
/** * © 2019 Refinitiv. 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 l...
dudi3001/CM-Well
server/cmwell-data-tools/src/main/scala/cmwell/tools/data/utils/ArgsManipulations.scala
Scala
apache-2.0
1,839
package com.twitter.finagle.memcached.partitioning import com.twitter.finagle.Stack.Params import com.twitter.finagle._ import com.twitter.finagle.loadbalancer.LoadBalancerFactory import com.twitter.hashing._ import com.twitter.util._ /** * KetamaPartitioningService implements consistent hashing based partitioning a...
mkhq/finagle
finagle-memcached/src/main/scala/com/twitter/finagle/memcached/partitioning/KetamaPartitioningService.scala
Scala
apache-2.0
3,923
package net.mm.example import net.mm.composer.CompositionProxy import net.mm.composer.relations.Relation.IdExtractor import net.mm.example.services._ trait ServicesRegistry { self: CompositionProxy => val productIdExtractor = IdExtractor.lift { case r: Review => r.productId case p: Product => p.id } ...
mosche/finatra-composition-proxy
example/src/main/scala/net/mm/example/ServicesRegistry.scala
Scala
mit
936
package breeze.collection.mutable import scala.collection.generic.Shrinkable import scala.collection.{IndexedSeq, Iterable, IterableLike, mutable} trait IBeam[T] extends Iterable[T] with IterableLike[T, IBeam[T]] with mutable.Builder[T, IndexedSeq[T]] with Shrinkable[T] with mutable.Cloneable[IBea...
scalanlp/breeze
math/src/main/scala_2.11_2.12/breeze/collection/mutable/IBeam.scala
Scala
apache-2.0
768
package uber.api.yaml import de.zalando.play.controllers._ import org.scalacheck._ import org.scalacheck.Arbitrary._ import org.scalacheck.Prop._ import org.scalacheck.Test._ import org.specs2.mutable._ import play.api.test.Helpers._ import play.api.test._ import play.api.mvc.MultipartFormData.FilePart import play.api...
zalando/play-swagger
play-scala-generator/src/test/resources/expected_results/tests/uber_api_yaml.scala
Scala
mit
29,511
package edu.cmu.lti.nlp.amr import scala.util.matching.Regex import scala.collection.mutable.Map import scala.collection.mutable.Set import scala.collection.mutable.ArrayBuffer /****************************** Align Words *****************************/ object AlignWords { def alignWords(sentence: Array[String], g...
keenon/jamr
src/AlignWords.scala
Scala
bsd-2-clause
6,806
package io.getquill.context.spark import io.getquill.NamingStrategy import io.getquill.ast.Ast import io.getquill.ast.BinaryOperation import io.getquill.ast.Ident import io.getquill.ast.Operation import io.getquill.ast.Property import io.getquill.ast.Query import io.getquill.ast.StringOperator import io.getquill.ast.T...
mentegy/quill
quill-spark/src/main/scala/io/getquill/context/spark/SparkDialect.scala
Scala
apache-2.0
7,381
import java.awt.datatransfer.StringSelection import java.nio.charset.StandardCharsets /** * Created by tiennv on 07/02/2016. */ object Sha256 { /* * Initialize hash values */ val H = List( 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 ) /* * In...
nvxtien/merkle-tree-scala
src/main/scala/Sha256.scala
Scala
apache-2.0
1,398
import cats._ import cats.data._ def stringToInt(x: String): Xor[String, Int] = { try { Xor.right(x.toInt) } catch { case _: NumberFormatException => Xor.left(s"Invalid number $x") } }
larsrh/flatmap2015
1bxor.scala
Scala
cc0-1.0
208
package com.codahale.jerkson.deser import com.fasterxml.jackson.databind.JavaType import com.fasterxml.jackson.databind.{DeserializationContext, JsonDeserializer} import com.fasterxml.jackson.core.{JsonToken, JsonParser} import com.fasterxml.jackson.databind.deser.ResolvableDeserializer class IteratorDeserializer(ele...
rememberthemilk/jerkson
src/main/scala/com/codahale/jerkson/deser/IteratorDeserializer.scala
Scala
mit
1,017
/** * Copyright (C) 2010 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
evlist/orbeon-forms
src/main/scala/org/orbeon/oxf/xforms/function/XFormsFunction.scala
Scala
lgpl-2.1
10,163
package analysis import core.generator.AstPrinter import ir._ import ir.ast._ import lift.arithmetic.{Cst, SizeVar} import opencl.executor._ import opencl.generator._ import opencl.ir._ import opencl.ir.pattern._ import prog_gen.InputGenerator import rewriting.InferNDRange import utils.Printer object BenchmarkUserFun...
lift-project/lift
src/main/analysis/BenchmarkUserFun.scala
Scala
mit
3,767
package org.bitcoins.dlc.statictest import org.bitcoins.core.protocol.tlv.{LnMessage, TLV} import org.bitcoins.crypto.NetworkElement import org.bitcoins.dlc.testgen._ import org.bitcoins.testkitcore.util.BitcoinSUnitTest import org.scalacheck.Gen class DLCParsingTestVectorTest extends BitcoinSUnitTest { implicit o...
bitcoin-s/bitcoin-s
dlc-test/src/test/scala/org/bitcoins/dlc/statictest/DLCParsingTestVectorTest.scala
Scala
mit
1,595
package com.stulsoft.ysps.pclass /** * @author Yuriy Stul. */ object PassClassType extends App { class C1(val name:String) test() test1() def test(): Unit ={ val t = classOf[C1] println(t.getDeclaredFields.map(f => f.getName ).toList) } def test1(): Unit ={ fields(classOf[C1]) } ...
ysden123/ysps
src/main/scala/com/stulsoft/ysps/pclass/PassClassType.scala
Scala
mit
443
/* * 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.jsenv.nodejs import scala...
SebsLittleHelpers/scala-js
nodejs-env/src/main/scala/org/scalajs/jsenv/nodejs/ComSupport.scala
Scala
apache-2.0
9,308
package busymachines /** * * @author Lorand Szakacs, lsz@lorandszakacs.com, lorand.szakacs@busymachines.com * @since 09 Jan 2018 * */ package object duration extends DurationDefinitions
busymachines/busymachines-commons
duration/src/main/scala/busymachines/duration/duration.scala
Scala
apache-2.0
197
import sbt._ object Dependencies { object Version { val specs2 = "3.8.9" val silhouette = "5.0.5" val akka = "2.5.4" } val resolvers = Seq( Resolver.jcenterRepo ) object Library { object Play { val version: String = play.core.PlayVersion.current val ws: ModuleID = "com.type...
akkie/silhouette-play-react-seed
project/Dependencies.scala
Scala
mit
2,277
/*********************************************************************** * 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 ...
nagavallia/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/iterators/IteratorCache.scala
Scala
apache-2.0
3,127
/* * 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 ...
practice-vishnoi/dev-spark-1
streaming/src/test/scala/org/apache/spark/streaming/TestSuiteBase.scala
Scala
apache-2.0
20,100
/** * 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...
sslavic/kafka
core/src/test/scala/unit/kafka/server/ServerShutdownTest.scala
Scala
apache-2.0
10,286
/*********************************************************************** * 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 is ...
MutahirKazmi/geomesa
geomesa-z3/src/test/scala/org/locationtech/geomesa/curve/NormalizedDimensionTest.scala
Scala
apache-2.0
2,545
package com.pongr.fourarms.mailet import org.specs2.mutable._ import scala.collection.JavaConversions._ import org.apache.mailet.MailAddress import javax.mail.internet.InternetAddress import com.pongr.fourarms._ import com.pongr.fourarms.util.FromMethods class MailetSpec extends Specification with Helper with FromMe...
pongr/fourarms
src/test/scala/mailet.scala
Scala
apache-2.0
2,069
/* * Copyright 2009-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
pbrant/framework
core/json/src/test/scala/net/liftweb/json/ParserBugs.scala
Scala
apache-2.0
1,968
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/spark
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala
Scala
apache-2.0
3,848
package com.github.ldaniels528.trifecta.messages.codec.avro import com.github.ldaniels528.trifecta.messages.codec.avro.AvroConversionSpec.{StudentA, StudentB, StudentBean} import com.github.ldaniels528.tabular.Tabular import org.scalatest.Matchers._ import org.scalatest.{FeatureSpec, GivenWhenThen} import scala.beans...
ldaniels528/trifecta
src/test/scala/com/github/ldaniels528/trifecta/messages/codec/avro/AvroConversionSpec.scala
Scala
apache-2.0
2,347
package org.redsimulator import akka.actor._ import org.redsimulator.Node.pseudoRandomPosition import org.redsimulator.NodeActor.{ControlMessage, LocationClaimMessage, NetworkView, Start} import org.redsimulator.MasterActor.Subscription import scala.collection.mutable import scala.util.Random object NodeActor { va...
simonecarriero/red-simulator
src/main/scala/org/redsimulator/NodeActor.scala
Scala
mit
2,902
/* * Copyright 2001-2009 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/test/scala/org/scalatest/BigSuiteSuite.scala
Scala
apache-2.0
5,602
/* * Copyright 2019 Spotify AB. * * 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 ...
spotify/scio
scio-core/src/main/scala/com/spotify/scio/values/WindowedSCollection.scala
Scala
apache-2.0
3,579
/* * Copyright 2022 Typelevel * * 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...
typelevel/sbt-typelevel
github-actions/src/main/scala/org/typelevel/sbt/gha/JobEnvironment.scala
Scala
apache-2.0
717
package models import java.util.UUID import com.mohiva.play.silhouette.api.LoginInfo import reactivemongo.bson._ import silhouette.evesso.EveCharacter object EveCharacterBSON { implicit val PortraitURLsReader: BSONDocumentReader[Map[Int, String]] = new BSONDocumentReader[Map[Int, String]] { override def read(b...
pequalsnp/eve-isk-tracker
app/models/EveCharacterBSON.scala
Scala
mit
1,152
package twine.app.user import javax.inject.Inject import twine.app.db.DbService /** */ trait UserService { def authenticate(name: String, password: String) } class UserServiceImpl @Inject()( db: DbService ) extends UserService { def create(name: String, password: String) = { } def authenticate(name: Str...
ehalpern/sandbox
src/main/scala/twine/app/user/UserService.scala
Scala
mit
356
package com.typesafe.sbt package packager package docker import sbt._ /** * Docker settings */ @deprecated("Internal use only. Please don't extend this trait", "1.3.15") trait DockerKeys { val dockerGenerateConfig = TaskKey[File]("docker-generate-config", "Generates configuration file for Docker.") val docker...
fsat/sbt-native-packager
src/main/scala/com/typesafe/sbt/packager/docker/Keys.scala
Scala
bsd-2-clause
4,063
package io.scalajs.nodejs.path import scala.scalajs.js import scala.scalajs.js.annotation.JSImport /** * This module contains utilities for handling and transforming file paths. The file system is not consulted to * check whether paths are valid. * @see https://nodejs.org/docs/latest/api/path.html * @author l...
scalajs-io/nodejs
app/common/src/main/scala/io/scalajs/nodejs/path/Path.scala
Scala
apache-2.0
5,770
package com.softwaremill.codebrag.eventstream import com.softwaremill.codebrag.common.{Hookable, Clock} import com.softwaremill.codebrag.dao.commitinfo.CommitInfoDAO import com.softwaremill.codebrag.dao.events.NewUserRegistered import com.softwaremill.codebrag.dao.user.UserDAO import com.softwaremill.codebrag.domain._...
softwaremill/codebrag
codebrag-service/src/main/scala/com/softwaremill/codebrag/eventstream/EventHookPropagator.scala
Scala
agpl-3.0
3,379
/* * 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
ambari-service-manager/src/test/scala/es/tid/cosmos/servicemanager/ambari/configuration/ConfiguratorTest.scala
Scala
apache-2.0
4,653
/* * This file is part of pelam-scala-csv * * Copyright © Peter Lamberg 2015 (pelam-scala-csv@pelam.fi) * * 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/...
pelamfi/pelam-scala-csv
src/test/scala/fi/pelam/csv/table/DetectingTableReaderExample.scala
Scala
apache-2.0
2,474
package com.rxbytes.splitpal.ui.main import android.os.Bundle import android.support.v4.app.{FragmentStatePagerAdapter, FragmentManager, Fragment} import android.util.Log import com.rxbytes.splitpal.R import com.rxbytes.splitpal.ui.main.fragments.contacts.{Fragments, ContactsFragment} import com.rxbytes.splitpal.ui.ma...
pamu/split-pal
src/main/scala/com/rxbytes/splitpal/ui/main/SplitPalPageAdapter.scala
Scala
apache-2.0
1,850
package org.apache.mesos.chronos.scheduler.mesos import java.util.logging.Logger import org.apache.mesos.chronos.scheduler.config.SchedulerConfiguration import org.apache.mesos.chronos.scheduler.jobs._ import org.apache.mesos.chronos.utils.JobDeserializer import com.google.inject.Inject import mesosphere.mesos.util.F...
nvoron23/chronos
src/main/scala/org/apache/mesos/chronos/scheduler/mesos/MesosJobFramework.scala
Scala
apache-2.0
12,252
package scala.internal.quoted /** Annotation used inside a quote to give a custom name to a definition. * The `name` argument must be a literal String. * * Usage: * ```scala * def let(name: String)(value: Expr[Int])(in: Expr[Int] => Expr[Int]): Expr[Int] = '{ * @showName(${Expr(name)}) * val x = $valu...
som-snytt/dotty
library/src/scala/internal/quoted/showName.scala
Scala
apache-2.0
589
/** Copyright 2015 TappingStone, 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 ...
ch33hau/PredictionIO
data/src/main/scala/io/prediction/data/storage/jdbc/JDBCAccessKeys.scala
Scala
apache-2.0
3,096
/*********************************************************************** * Copyright (c) 2013-2020 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
aheyne/geomesa
geomesa-process/geomesa-process-vector/src/test/scala/org/locationtech/geomesa/process/transform/ArrowConversionProcessTest.scala
Scala
apache-2.0
4,980