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
object UntilTest{ def main(args: Array[String]){ val s = Array(1,2,3,4,5,6) for (i <- 0 until s.length) printf("s(%d) = %d\\n",i ,s(i)) println("****************************") for(i <- s) println(i) println("******每两个元素一跳*******") for (i <- ...
PengLiangWang/Scala
Array/UntilTest.scala
Scala
gpl-3.0
546
package k8sdnssky import java.util.concurrent.TimeUnit import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper import k8sdnssky.SkyDnsRep...
ferdinandhuebner/k8s-dns-sky
src/main/scala/k8sdnssky/SkyDnsRepository.scala
Scala
apache-2.0
7,423
package org.jetbrains.plugins.scala.tasty import com.intellij.lang.Language import com.intellij.openapi.vfs.VirtualFile import com.intellij.psi.{FileViewProvider, FileViewProviderFactory, PsiManager} import org.jetbrains.plugins.scala.Scala3Language import org.jetbrains.plugins.scala.lang.psi.compiled.ScClassFileDecom...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/tasty/TastyFileViewProviderFactory.scala
Scala
apache-2.0
663
/* Copyright 2017-18, Emmanouil Antonios Platanios. 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 ...
eaplatanios/tensorflow
tensorflow/scala/api/src/main/scala/org/platanios/tensorflow/api/ops/io/data/Data.scala
Scala
apache-2.0
29,307
package io.github.jfrazee.nifi.processors.aws.kinesis import java.util.{ Collections, Arrays } // NiFi import org.apache.nifi.components.PropertyDescriptor import org.apache.nifi.processor.util.StandardValidators import org.apache.nifi.processors.aws.AbstractAWSProcessor trait KinesisProcessorProperties { val ACCE...
jfrazee/nifi-kinesis
src/main/scala/io/github/jfrazee/nifi/processors/aws/kinesis/KinesisProcessorProperties.scala
Scala
apache-2.0
1,199
package com.twitter.finagle.serverset2 import com.twitter.app.GlobalFlag import com.twitter.conversions.time._ import com.twitter.finagle.stats.{Stat, StatsReceiver, DefaultStatsReceiver} import com.twitter.finagle.util.DefaultTimer import com.twitter.finagle.{Addr, InetResolver, Resolver} import com.twitter.io.Buf im...
yancl/finagle-6.22.0
finagle-serversets/src/main/scala/com/twitter/finagle/serverset2/ServerSet2.scala
Scala
apache-2.0
10,667
/* * 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 ...
paulcastro/openwhisk
core/invoker/src/main/scala/whisk/core/containerpool/docker/DockerContainer.scala
Scala
apache-2.0
13,386
package org.apache.spark.ml.bundle /** * Created by hollinwilkins on 5/25/17. */ object BundleHelper { def sampleDataframeMessage(klazz: Class[_]): String = { s""" |***************************************************************************************************** |Must provide a sample data fr...
combust-ml/mleap
mleap-spark-base/src/main/scala/org/apache/spark/ml/bundle/BundleHelper.scala
Scala
apache-2.0
1,165
package com.twitter.util import org.openjdk.jmh.annotations._ // ./sbt 'project util-benchmark' 'jmh:run TryBenchmark' @State(Scope.Benchmark) class TryBenchmark extends StdBenchAnnotations { private[this] val retHello = Return("hello") private[this] val mapFn: String => Int = str => str.length private[t...
BuoyantIO/twitter-util
util-benchmark/src/main/scala/com/twitter/util/TryBenchmark.scala
Scala
apache-2.0
592
package pl.szymonmatejczyk.myerson /** * Created by szymonmatejczyk on 21.04.15. */ trait PowerIndexComputation { def apply(): collection.Map[Int, Double] } trait IterativePowerIndexComputation extends PowerIndexComputation { def apply(sequentialIterations: collection.Seq[Int]): collection.Seq[collection.Map[In...
szymonm/subgraphSampling
src/main/scala/pl/szymonmatejczyk/myerson/PowerIndexComputation.scala
Scala
apache-2.0
334
/* * 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 ...
gioenn/xSpark
mllib/src/test/scala/org/apache/spark/ml/feature/CountVectorizerSuite.scala
Scala
apache-2.0
8,293
package com.gxq.learn.spark.transformation import org.apache.spark.TaskContext object RDDMain { def main(args: Array[String]): Unit = { TaskContext } }
gong1989313/spark-bigdata
gpfDWReconTool/src/test/scala/com/gxq/learn/spark/transformation/RDDMain.scala
Scala
apache-2.0
171
package fpscala.c03 import fpscala.datastructures.{List => FpList, Nil => FpNil} import org.scalatest.{FlatSpec, Matchers} class Exercise11Spec extends FlatSpec with Matchers { "foldLeft versions of sum, product, and length" should "work" in { Exercise11.sum(FpList(1, 2, 3, 4)) should equal (10) Exercise11...
willtaylor/fpscala
src/test/scala/fpscala/c03/Exercise11Spec.scala
Scala
gpl-3.0
561
package s99.p11 // P11 (*) Modified run-length encoding. // Modify the result of problem P10 in such a way that if an element has no // duplicates it is simply copied into the result list. Only elements with // duplicates are transferred as (N, E) terms. // // Example: // scala> encodeModified(Lis...
izmailoff/scala-s-99
src/main/scala/s99/p11/P11Answer.scala
Scala
apache-2.0
797
/* * 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 ...
poffuomo/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/PlanParserSuite.scala
Scala
apache-2.0
24,810
/** * Copyright 2015 Thomson Reuters * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
thomsonreuters/CM-Well
server/cmwell-ws/app/ld/util/package.scala
Scala
apache-2.0
7,807
/* # Copyright 2016 Georges Lipka # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
glipka/Easy-React-With-ScalaJS
src/main/scala/com/glipka/easyReactJS/reactBootstrap/Nav.scala
Scala
apache-2.0
1,468
/* Copyright 2014 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
jzmq/scalding
scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/TreeOrderedBuf.scala
Scala
apache-2.0
13,253
/* * Copyright (c) 2013 Christos KK Loverdos * * 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...
loverdos/scalapipes
src/main/scala/com/ckkloverdos/pipes/collection/immutable/PSet.scala
Scala
apache-2.0
3,108
package com.softwaremill.sandbox import java.util.UUID import akka.actor.Status.Status import akka.actor.{ActorSystem, Props, Status} import akka.cluster.sharding.{ClusterSharding, ClusterShardingSettings} import akka.event.Logging.LogLevel import akka.event.{Logging, LoggingAdapter} import akka.http.scaladsl.Http im...
aludwiko/sandbox
service/src/main/scala/com/softwaremill/sandbox/MainModule.scala
Scala
apache-2.0
3,476
package co.technius.scalajs.mithril.tagsext import co.technius.scalajs.mithril.VNode import scalatags.generic /* * Adapted from Scalatags by Li Haoyi, which is licensed under MIT License. */ trait Tags extends generic.Tags[VNode, VNode, VNode] with TagFactory { // Root Element lazy val html = tag("html") // D...
Technius/scalajs-mithril
scalatags-ext/src/main/scala/co/technius/scalajs/mithril/tagsext/Tags.scala
Scala
mit
2,989
package org.aja.tej.examples.spark.rdd.counterPattern import org.aja.dataset.StackOverFlowDS import org.aja.tej.utils.TejUtils /** * Created by mageswaran on 10/3/16. */ object InAction extends App { val sc = TejUtils.getSparkContext(this.getClass.getSimpleName) //Problem 1: Given a list of user’s comments, co...
Mageswaran1989/aja
src/examples/scala/org/aja/tej/examples/spark/rdd/counterPattern/InAction.scala
Scala
apache-2.0
845
package com.seanshubin.uptodate.integration import java.io.{DataInput, DataInputStream, InputStream} import java.nio.file.{Files, Path} import com.seanshubin.uptodate.logic.DataInputStreamWrapper class DataInputStreamWrapperImpl(path: Path) extends DataInputStreamWrapper { val inputStream: InputStream = Files.newI...
SeanShubin/up-to-date
integration/src/main/scala/com/seanshubin/uptodate/integration/DataInputStreamWrapperImpl.scala
Scala
unlicense
562
import sbt._ class Plugins(info:ProjectInfo) extends PluginDefinition(info) { val sbtIdeaRepo = "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" val sbtIdea = "com.github.mpeltonen" % "sbt-idea-plugin" % "0.4.0" }
caseykramer/clarity
project/plugins/Plugins.scala
Scala
bsd-3-clause
226
package org.jetbrains.plugins.scala package lang package psi package api package expr import org.jetbrains.plugins.scala.lang.psi.api.base.{ScPathElement, ScStableCodeReferenceElement} import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScTemplateDefinition /** * @author Alexander Podkhalyuzin * Date: 0...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScThisReference.scala
Scala
apache-2.0
516
/** * Copyright (C) 2013 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...
martinluther/orbeon-forms
src/main/scala/org/orbeon/oxf/fr/relational/crud/CreateUpdateDelete.scala
Scala
lgpl-2.1
20,514
package controllers import akka.actor._ import play.api.libs.json._ import play.api.libs.functional.syntax._ import scala.concurrent.Future object RegistryActor { case class Register(id: Int) case class Disconnect(id: Int) } class RegistryActor extends Actor { import RegistryActor._ import context.dispatche...
algd/play-online-game
app/controllers/PlayerActor.scala
Scala
apache-2.0
5,083
/*********************************************************************** * 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 ...
MutahirKazmi/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/data/stats/usage/UsageStatReaderTest.scala
Scala
apache-2.0
3,496
import scala.concurrent.duration._ import scala.util.Random import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import java.net.URLDecoder class JatosAppendSimulation extends Simulation { val httpProtocol = http // .baseUrl("https://jatos.mindprobe.eu") // .wsBas...
JATOS/JATOS_examples
study_assets_root/jatos-load-test/gatling-charts-highcharts-bundle-3.2.1/user-files/simulations/JatosAppendSimulation.scala
Scala
apache-2.0
4,728
package test import org.apache.flink.streaming.api.scala._ import org.apache.flink.streaming.connectors.kafka.api.KafkaSource import org.apache.flink.streaming.util.serialization.SimpleStringSchema object streamingConsumer { def main(args: Array[String]) { if (args.length < 2) { System.err.println("Usag...
GenTang/flink_vs_spark
flink_kafka/src/main/scala/flink_kafka.scala
Scala
apache-2.0
826
// scalac: -opt:inline:** -Wopt -Werror package test object A { private var x: Int = 0 @inline def actOnX(f: Int => Int) = { x = f(x) } } object B { private[this] var x: Int = 0 @inline def actOnX(f: Int => Int) = { x = f(x) } }
scala/scala
test/files/pos/inline-access-levels/A_1.scala
Scala
apache-2.0
243
/* * 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
core/src/test/scala/org/apache/spark/util/random/XORShiftRandomSuite.scala
Scala
apache-2.0
3,183
package edu.berkeley.nlp.entity.coref import scala.collection.mutable.ArrayBuffer import java.util.IdentityHashMap import scala.collection.mutable.HashSet import edu.berkeley.nlp.futile.fig.basic.IOUtils import edu.berkeley.nlp.futile.util.Logger import edu.berkeley.nlp.entity.GUtil import scala.collection.mutable.Has...
gregdurrett/berkeley-entity
src/main/java/edu/berkeley/nlp/entity/coref/LexicalInferenceFeaturizer.scala
Scala
gpl-3.0
4,083
package capitulo04 import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.FunSuite @RunWith(classOf[JUnitRunner]) class Zipping extends FunSuite{ test("agrupar valores para serem processados juntos"){ val symbols = Array("<", "-", ">") val counts = Array(2,10,2) v...
celioeduardo/scala-impatient
src/test/scala/capitulo04/Zipping.scala
Scala
mit
808
import java.util.Random /** * Created by Anthony on 6/5/2015. */ class CommandList(args:String) { var commands = Map[String, () => String]( "hello" -> hello, "pick" -> pick ) def hello(): String = { return "Hello" } def pick(): String = { val rand = new Random return args.split(",")(ra...
NotBlizzard/ircscala
src/main/scala/CommandList.scala
Scala
mit
353
package composition.webserviceclients.paymentsolve import com.tzavellas.sse.guice.ScalaModule import webserviceclients.paymentsolve.PaymentSolveWebService import webserviceclients.paymentsolve.PaymentSolveWebServiceImpl final class PaymentWebServiceBinding extends ScalaModule { def configure() = bind[PaymentSolveW...
dvla/vrm-retention-online
app/composition/webserviceclients/paymentsolve/PaymentWebServiceBinding.scala
Scala
mit
382
package com.github.rgafiyatullin.creek_xml.stream_parser.low_level_parser import com.github.rgafiyatullin.creek_xml.common.Position import com.github.rgafiyatullin.creek_xml.stream_parser.tokenizer.{Token, TokenizerError} sealed trait LowLevelParserError extends Exception { def position: Position def description:...
RGafiyatullin/creek-xml
src/main/scala/com/github/rgafiyatullin/creek_xml/stream_parser/low_level_parser/LowLevelParserError.scala
Scala
mit
948
package com.chaos.pingplusplus.exception /** * Created by zcfrank1st on 11/14/14. */ class APIException(message: String = null, cause: Throwable = null) extends PingappException(message, cause){}
zcfrank1st/chaos-pingapp-scala
src/main/scala/com/chaos/pingplusplus/exception/APIException.scala
Scala
mit
199
package quisp.flot import quisp._ import quisp.flot.FlotJson._ import spray.json.DefaultJsonProtocol._ import spray.json._ import scala.xml.Unparsed import javax.jws.WebMethod /** * Top-level Chart and configuration * @author rodneykinney */ class ConfigurableGenericChart( var config: Chart, val display: Cha...
rodneykinney/quisp
src/main/scala/quisp/flot/Chart.scala
Scala
apache-2.0
4,155
/** * Copyright 2015 Vaishaal Shankar * * 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...
akmorrow13/endive
src/main/scala/net/akmorrow13/endive/pipelines/SolverPipeline.scala
Scala
apache-2.0
10,467
/******************************************************************************* * Copyright (c) 2014 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * ...
GuillaumeDD/scala99problems
src/main/scala/arithmetic/P35/P35.scala
Scala
gpl-3.0
1,702
package com.example.spray import scala.util.control.NonFatal import akka.actor.{Actor, ActorLogging, Props} import spray.routing.{ExceptionHandler, HttpService, RejectionHandler, Route, RouteConcatenation, RoutingSettings} import spray.util.LoggingContext import spray.http.StatusCodes.InternalServerError import com.ex...
pjfanning/swagger-spray-sample
src/main/scala/com/example/spray/Api.scala
Scala
apache-2.0
1,840
/******************************************************************************* Copyright (c) 2012-2014, KAIST, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************...
darkrsw/safe
src/main/scala/kr/ac/kaist/jsaf/tests/FileTests.scala
Scala
bsd-3-clause
20,885
/** * Copyright 2014 Dropbox, 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...
jrogers/djinni
src/source/CppGenerator.scala
Scala
apache-2.0
11,704
/* * Copyright ActionML, LLC under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * ActionML licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except...
actionml/harness
rest-server/engines/src/main/scala/com/actionml/engines/ur/UREngine.scala
Scala
apache-2.0
13,639
package net.fwbrasil.bond trait IsNull case object IsNull extends Validator[Any, IsNull] { def isValid(v: Any) = v == null } trait IsNotNull case object IsNotNull extends Validator[Any, IsNotNull] { def isValid(v: Any) = v != null }
fwbrasil/bond
src/main/scala/net/fwbrasil/bond/Objects.scala
Scala
lgpl-2.1
252
/* * 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/test/scala/com/intel/analytics/bigdl/dllib/integration/torch/LookupTableSpec.scala
Scala
apache-2.0
9,208
//Package com.zhangbaitong.com //对象即模块 object ObjectTest { //定义变量 val name = "zhangbaitong" def main(args: Array[String]) { //apply 方法 class Foo {} object FooMaker { def apply() = new Foo } val newFoo = FooMaker() println(newFoo) //apply 方法2 class Bar { def apply() = 0...
zhangbaitong/programming-language-tutorials
scala/src/ObjectTest.scala
Scala
bsd-3-clause
3,387
package com.wavesplatform.lang.v1.repl.node.http.response.model private[node] case class AssetInfoResponse( assetId: ByteString, name: String, description: String, quantity: Long, decimals: Int, issuer: ByteString, ...
wavesplatform/Waves
repl/shared/src/main/scala/com/wavesplatform/lang/v1/repl/node/http/response/model/AssetInfoResponse.scala
Scala
mit
465
package lila.practice import org.joda.time.DateTime import lila.user.User import lila.study.{ Chapter, Study } case class PracticeProgress( _id: PracticeProgress.Id, chapters: PracticeProgress.ChapterNbMoves, createdAt: DateTime, updatedAt: DateTime ) { import PracticeProgress.NbMoves def id = ...
luanlv/lila
modules/practice/src/main/PracticeProgress.scala
Scala
mit
1,586
/** MACHINE-GENERATED FROM AVRO SCHEMA. DO NOT EDIT DIRECTLY */ package test import scala.annotation.switch import model.UnionRecord import model.v2.NestedRecord final case class ComplexExternalDependency(var nestedrecord: NestedRecord) extends org.apache.avro.specific.SpecificRecordBase { def this() = this(new N...
julianpeeters/avrohugger
avrohugger-core/src/test/expected/specific/test/ComplexExternalDependency.scala
Scala
apache-2.0
1,364
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package scaps.nucleus.indexing import org.scalatest.FlatSpec import scaps.nucleus.TestLanguage._ import scaps.nu...
scala-search/scaps
nucleus/src/test/scala/scaps/nucleus/indexing/TypeNormalizationSpecs.scala
Scala
mpl-2.0
2,288
package rere.sasl.scram.messages import rere.sasl.gs2 final case class ClientFirstMessage( header: gs2.Header, bare: ClientFirstMessageBare)
pbaun/rere
modules/sasl/src/main/scala/rere/sasl/scram/messages/ClientFirstMessage.scala
Scala
apache-2.0
147
package HackerRank.Training.BasicProgramming import java.io.{ByteArrayInputStream, IOException, InputStream, PrintWriter} import java.util.InputMismatchException import scala.collection.generic.CanBuildFrom import scala.collection.immutable.BitSet import scala.language.{higherKinds, implicitConversions} import scala....
robertoFischer/hackerrank
src/main/scala/HackerRank/Training/BasicProgramming/AcmIcpcTeam.scala
Scala
mit
8,197
package com.atomist.rug.kind.java import java.io.InputStreamReader import java.util.{List => JList} import com.atomist.source.{ArtifactSourceException, FileArtifact} import com.github.javaparser.ast.CompilationUnit import com.github.javaparser.{JavaParser, ParseException} import com.typesafe.scalalogging.LazyLogging ...
atomist/rug
src/main/scala/com/atomist/rug/kind/java/GitHubJavaParserExtractor.scala
Scala
gpl-3.0
1,268
package org.mbari.smith import java.text.SimpleDateFormat import scala.collection.JavaConverters._ import java.lang.{Double => JDouble} import java.net.URL import scala.util.{Failure, Success, Try} import vars.annotation.{AreaMeasurement, Association} import java.io.{FileWriter, BufferedWriter, File} import org.mbari...
hohonuuli/vars
vars-standalone/src/main/scala/org/mbari/smith/PointsApp.scala
Scala
lgpl-2.1
6,464
package com.enkidu.lignum.parsers.ast.expression.discardable.binary import com.enkidu.lignum.parsers.ast.expression.Expression import com.enkidu.lignum.parsers.ast.expression.discardable.DiscardableExpression import com.enkidu.lignum.parsers.ast.expression.types.templates.TemplateArgument case class QualifiedMethodIn...
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/expression/discardable/binary/QualifiedMethodInvocation.scala
Scala
mit
650
package com.cloudray.scalapress.plugin.listings.controller import com.cloudray.scalapress.payments.Purchase import com.cloudray.scalapress.util.Scalate import org.springframework.validation.Errors /** @author Stephen Samuel */ class VoucherFormRenderer { def render(purchase: Purchase, errors: Errors): String = { ...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/plugin/listings/controller/VoucherFormRenderer.scala
Scala
apache-2.0
574
/** * 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...
Avira/cow-hbase
src/main/scala/com/avira/spark/hbase/HBaseResolvers.scala
Scala
apache-2.0
2,518
package skinny.controller import skinny.controller.feature._ /** * Additional web pages specific features for SkinnyControllers. */ trait AsyncSkinnyWebPageControllerFeatures extends SkinnyControllerCommonBase with FlashFeature with TemplateEngineFeature with ScalateTemplateEngineFeature with ...
skinny-framework/skinny-framework
framework/src/main/scala/skinny/controller/AsyncSkinnyWebPageControllerFeatures.scala
Scala
mit
545
package com.lot.blockAmount.service import scala.concurrent.duration.DurationInt import com.lot.blockAmount.model.BlockAmountJsonProtocol import akka.actor.Actor import akka.util.Timeout import spray.routing.HttpService import com.lot.utils.Configuration import com.lot.StaticService import com.lot.utils.CORSSupport im...
thimmaiah/life_of_a_trade_scala
src/main/scala/com/lot/blockAmount/service/BlockAmountRoutesActor.scala
Scala
apache-2.0
973
package controller.attachment import java.io.File import controller.ApplicationController import domain.attachment.{ AttachmentFileId, AttachmentFileRepository, FileImageType } import scalikejdbc.DB /** * 添付ファイルダウンロード用Controller. */ class DownloadController extends ApplicationController { protectFromForgery() ...
nemuzuka/vss-kanban
src/main/scala/controller/attachment/DownloadController.scala
Scala
mit
1,374
import java.beans.Transient class Test { @SuppressWarnings(Array("hi")) def foo() = ??? // evalutation of annotation on type cannot be deferred as requires implicit resolution(only generic Array$.apply applies here) @SuppressWarnings(Array("hi", "foo")) def foo2() = ??? //can be deferred as there is a non-generi...
AlexSikia/dotty
tests/pos/annot.scala
Scala
bsd-3-clause
525
/** * Copyright 2013 Robert Welin * * 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 ...
nilewapp/NoYt
src/main/scala/se/weln/noyt/config/ServerConfig.scala
Scala
apache-2.0
2,086
/* * 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
core/src/main/scala/org/pageobject/core/tools/OS.scala
Scala
apache-2.0
1,121
package com.softwaremill.codebrag.finders.commits.toreview import org.scalatest.{BeforeAndAfter, FlatSpec} import org.scalatest.matchers.ShouldMatchers import org.scalatest.mock.MockitoSugar import com.softwaremill.codebrag.dao.user.UserDAO import com.softwaremill.codebrag.domain.builder.UserAssembler import com.softw...
cazacugmihai/codebrag
codebrag-service/src/test/scala/com/softwaremill/codebrag/finders/commits/toreview/ToReviewCommitsFinderSpec.scala
Scala
agpl-3.0
3,006
trait RNG { def nextInt: (Int, RNG) } object RNG { case class Simple(seed: Long) extends RNG { def nextInt: (Int, RNG) = { val newSeed = (seed * 0x5DEECE66DL + 0xBL) & 0xFFFFFFFFFFFFL val nextRNG = Simple(newSeed) val n = (newSeed >>> 16).toInt (n, nextRNG) } } def nonNegativeI...
shigemk2/functional_shibuya
chapter06/09.answer.scala
Scala
mit
1,374
package tk.mygod.harmonizer import android.content.SharedPreferences import android.os.Bundle import tk.mygod.preference.{DropDownPreference, PreferenceFragmentPlus} /** * @author Mygod */ final class SettingsFragment extends PreferenceFragmentPlus with SharedPreferences.OnSharedPreferenceChangeListener { def onC...
Mygod/Harmonizer
src/main/scala/tk/mygod/harmonizer/SettingsFragment.scala
Scala
gpl-3.0
809
package team16.euler /** * In the 20×20 grid below, four numbers along a diagonal line have been marked in red. * * 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 * 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 * 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 * 52...
gatesy/euler-scala
src/team16/euler/Problem011.scala
Scala
gpl-2.0
3,422
/** * This file is part of mycollab-services. * * mycollab-services 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 your option) any later version. * * mycolla...
uniteddiversity/mycollab
mycollab-services/src/main/scala/com/esofthead/mycollab/schedule/email/project/ProjectRiskRelayEmailNotificationAction.scala
Scala
agpl-3.0
999
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
pfcoperez/crossdata
crossdata-driver/src/main/scala/com/stratio/crossdata/driver/querybuilder/Clause.scala
Scala
apache-2.0
1,327
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/test/scala/com/intel/analytics/zoo/serving/models/TensorflowModelSpec.scala
Scala
apache-2.0
10,571
/* * 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/test/scala/com/intel/analytics/bigdl/dllib/integration/torch/JoinTableSpec.scala
Scala
apache-2.0
4,060
package com.mesosphere.cosmos import com.mesosphere.cosmos.http.RequestSession import com.mesosphere.cosmos.thirdparty.mesos.master.circe.Decoders._ import com.netaporter.uri.Uri import com.netaporter.uri.dsl._ import com.twitter.finagle.Service import com.twitter.finagle.http.Request import com.twitter.finagle.http.R...
takirala/cosmos
cosmos-server/src/main/scala/com/mesosphere/cosmos/MesosMasterClient.scala
Scala
apache-2.0
1,632
package fpinscala.exercises.gettingstarted import fpinscala.answers.testing.exhaustive.* import fpinscala.answers.testing.exhaustive.Gen.`**` import fpinscala.answers.testing.exhaustive.Prop.* import fpinscala.exercises.common.Common.* import fpinscala.exercises.common.PropSuite import fpinscala.exercises.gettingstart...
fpinscala/fpinscala
src/test/scala/fpinscala/exercises/gettingstarted/GettingStartedSuite.scala
Scala
mit
1,864
package org.jetbrains.plugins.scala.testingSupport.scalatest.scala2_11.scalatest2_1_7 import org.jetbrains.plugins.scala.testingSupport.scalatest.singleTest.ScalaTestSelectedTests /** * @author Roman.Shein * @since 22.01.2015 */ class Scalatest2_11_2_1_7_SelectedTestsTest extends Scalatest2_11_2_1_7_Base with Scal...
LPTK/intellij-scala
test/org/jetbrains/plugins/scala/testingSupport/scalatest/scala2_11/scalatest2_1_7/Scalatest2_11_2_1_7_SelectedTestsTest.scala
Scala
apache-2.0
343
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/pipeline/api/keras2/layers/GlobalAveragePooling1D.scala
Scala
apache-2.0
1,809
/* * Copyright 2020 David Edwards * * 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...
davidledwards/zookeeper
zookeeper-client/src/main/scala/com/loopfor/zookeeper/Node.scala
Scala
apache-2.0
7,537
/* * 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 n...
noslowerdna/kafka
core/src/test/scala/unit/kafka/coordinator/transaction/TransactionStateManagerTest.scala
Scala
apache-2.0
32,132
package org.bitcoins.spvnode.messages.data import org.bitcoins.core.number.UInt64 import org.bitcoins.core.protocol.CompactSizeUInt import org.bitcoins.core.util.Factory import org.bitcoins.spvnode.messages.InventoryMessage import org.bitcoins.spvnode.serializers.messages.data.RawInventoryMessageSerializer /** * Cr...
bitcoin-s/bitcoin-s-spv-node
src/main/scala/org/bitcoins/spvnode/messages/data/InventoryMessage.scala
Scala
mit
1,110
package fr.hsyl20.sme.tutorial import com.jme3.app.SimpleApplication import com.jme3.material.Material import com.jme3.math.{Vector3f,ColorRGBA} import com.jme3.scene.{Geometry,Node} import com.jme3.scene.shape.Box /** Sample 2 - How to use nodes as handles to manipulate objects in the scene. * You can rotate, tran...
hsyl20/SME
src/main/scala/tutorial/HelloNode.scala
Scala
gpl-3.0
1,751
/* * 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 ...
maropu/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/jdbc/JDBCTableCatalog.scala
Scala
apache-2.0
11,868
/* * Copyright 2014 http4s.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
http4s/http4s
blaze-core/src/main/scala/org/http4s/blazecore/BlazeBackendBuilder.scala
Scala
apache-2.0
3,342
package org.jetbrains.plugins.scala package lang package psi package stubs package index import com.intellij.psi.PsiClass import api.toplevel.typedef.ScTypeDefinition import com.intellij.psi.stubs.{StringStubIndexExtension, StubIndexKey} /** * @author ilyas */ class ScShortClassNameIndex extends StringStubIndexExte...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/index/ScShortClassNameIndex.scala
Scala
apache-2.0
949
/*********************************************************************** * Copyright (c) 2013-2018 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...
ddseapy/geomesa
geomesa-kudu/geomesa-kudu-datastore/src/test/scala/org/locationtech/geomesa/kudu/schema/KuduColumnAdapterTest.scala
Scala
apache-2.0
8,311
package com.burness.algorithm.preprocess import com.burness.utils.AbstractParams import org.apache.spark.SparkContext import scopt.OptionParser import org.apache.log4j.{Level, Logger} import org.apache.spark.sql.hive.HiveContext /** * Created by burness on 16-6-21. */ class Join (sc: SparkContext){ object JoinM...
spark-mler/algorithmEngine
src/main/scala/com.burness/algorithm/preprocess/Join.scala
Scala
apache-2.0
4,972
package com.oching.hadoop.adhoc.tools import scala.collection.mutable.Map import org.apache.hadoop.fs.{FileSystem, Path} import org.joda.time.{DateTime, Days} import org.slf4j.{Logger, LoggerFactory} /** * Calculates the latency of the data in HDFS. * * Expected parameters: * - N, where N can be 1 to 12 (to ...
oching/hadoop-adhoc-tools
src/main/scala/com/oching/hadoop/adhoc/tools/HdfsDataLatencyChecker.scala
Scala
apache-2.0
4,805
package im.actor.server.enrich import scala.concurrent.ExecutionContext import slick.dbio._ import im.actor.api.rpc.Implicits._ import im.actor.api.rpc.messaging.{ Message, UpdateMessageContentChanged } import im.actor.server.models.{ Peer, PeerType } import im.actor.server.persist import im.actor.server.push.SeqUpd...
TimurTarasenko/actor-platform
actor-server/actor-enrich/src/main/scala/im/actor/server/enrich/UpdateHandler.scala
Scala
mit
3,026
package breeze.linalg /** * * @author dlwh */ class SliceMatrix[@specialized(Int) K1, @specialized(Int) K2, @specialized(Int, Double, Float) V](val tensor: QuasiTensor[(K1, K2),V], val slice1: IndexedSeq[K1], val slice2: Index...
tjhunter/scalanlp-core
math/src/main/scala/breeze/linalg/SliceMatrix.scala
Scala
apache-2.0
793
package group.matsen.phylohmc import spire.algebra.Order._ import spire.algebra.{Field, NRoot} import spire.std.seq._ import spire.syntax.order._ import spire.syntax.vectorSpace._ trait SurrogateLeapProg[R, N, D <: Int with Singleton] extends NumericalDynamics[R, N, D] { val barrier = Field[R].fromDouble(0.0) v...
armanbilge/phyloHMC
src/main/scala/group/matsen/phylohmc/SurrogateLeapProg.scala
Scala
agpl-3.0
1,989
/** * Copyright 2015 Otto (GmbH & Co KG) * * 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...
christianrichter/schedoscope
schedoscope-core/src/main/scala/org/schedoscope/dsl/transformations/SeqTransformation.scala
Scala
apache-2.0
1,623
package modules.cron import models.db.Quest import play.api.Logger import scalikejdbc._ import util.{Cron, CronExecutor} object DailyQuestEraser extends CronExecutor { override def exec(cron: Cron): Unit = { Logger.info("Delete Daily Quest") Quest.deleteAllBy(sqls"typ = 1") } }
ttdoda/MyFleetGirls
server/app/modules/cron/DailyQuestEraser.scala
Scala
mit
293
package gitbucket.core.util import gitbucket.core.service.RepositoryService import org.eclipse.jgit.api.Git import Directory._ import StringUtil._ import SyntaxSugars._ import scala.annotation.tailrec import scala.collection.JavaConverters._ import org.eclipse.jgit.lib._ import org.eclipse.jgit.revwalk._ import org.e...
nobusugi246/gitbucket
src/main/scala/gitbucket/core/util/JGitUtil.scala
Scala
apache-2.0
39,233
package models case class CreatePrize( countryCode: CountryCode, firstName: String, middleName: String, lastName: String, firstNameKana: String, lastNameKana: String, zip: (String, String, String), prefecture: Prefecture, address1: String, address2: String, address3: String, address4: String, ...
ruimo/store2
app/models/CreatePrize.scala
Scala
apache-2.0
1,688
// 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.virtdev import devices.VirtualDevice /** A 'NetworkModel' aggregates multiple devices alon...
calincru/iptables-sefl
src/main/scala/org/symnet/models/iptables/virtdev/NetworkModel.scala
Scala
mit
823
package io.udash.web.guide.views.ext.demo.charts import java.util.Date import io.udash.wrappers.highcharts.config.HighchartsConfig import io.udash.wrappers.highcharts.config.axis._ import io.udash.wrappers.highcharts.config.credits.Credits import io.udash.wrappers.highcharts.config.plot.PlotOptions import io.udash.wr...
UdashFramework/udash-guide
guide/src/main/scala/io/udash/web/guide/views/ext/demo/charts/SplineWithPlotBands.scala
Scala
gpl-3.0
3,146
/* * Copyright 2015 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 applicab...
arkadius/micro-burn
src/main/scala/org/github/microburn/util/json/IndexedSeqSerializer.scala
Scala
apache-2.0
1,355
package com.felixmilea.processing.core import java.awt.Dimension import processing.core._ /** A Processing sketch */ abstract class ProcessingSketch extends PApplet { val config = new SketchConfig /** * Runs the sketch by creating a SketchFrame (a specialized JFrame) and rendering the sketch in it based on th...
felixmc/Scala-Processing-Libs
src/com/felixmilea/processing/core/ProcessingSketch.scala
Scala
mit
1,449
package ingraph.ire.nodes.unary import akka.actor.{ActorSystem, Props, actorRef2Scala} import akka.testkit.{ImplicitSender, TestActors, TestKit} import ingraph.ire.messages.ChangeSet import ingraph.ire.nodes.unary.aggregation.{AggregationNode, StatefulMax} import ingraph.ire.util.TestUtil._ import org.scalatest.{Befor...
FTSRG/ingraph
ire/src/test/scala/ingraph/ire/nodes/unary/MaxNodeTest.scala
Scala
epl-1.0
1,333
/* * The MIT License * * Copyright (c) 2016 Fulcrum Genomics LLC * * 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...
fulcrumgenomics/dagr
tasks/src/main/scala/dagr/tasks/vc/Strelka.scala
Scala
mit
3,425