code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package com.ing.baker.runtime.serialization.protomappings import cats.implicits._ import com.google.protobuf.ByteString import com.ing.baker.runtime.akka.actor.protobuf import com.ing.baker.runtime.akka.actor.protobuf.Value.OneofValue._ import com.ing.baker.runtime.serialization.ProtoMap import com.ing.baker.types imp...
ing-bank/baker
core/baker-interface/src/main/scala/com/ing/baker/runtime/serialization/protomappings/BakerValuesMapping.scala
Scala
mit
4,554
/* * 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 ...
ajbozarth/incubator-livy
server/src/main/scala/org/apache/livy/server/LivyServer.scala
Scala
apache-2.0
17,519
/* * @author Philip Stutz * @author Mihaela Verman * * Copyright 2013 University of Zurich * * 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.apa...
jacqueslk/triplerush-filter
src/test/scala/com/signalcollect/triplerush/QueryParticleSpec.scala
Scala
apache-2.0
2,656
package com.fuscus.seien.appli.output import com.fuscus.seien.domain.entity.IssueID import com.fuscus.seien.infra.core.UUID import com.fuscus.seien.infra.vo.URI import org.json4s._ /** * Created by watawuwu on 15/08/09. */ // @todo move to infrastructure layer object CustomSerializer { import JsonDSL._ class U...
watawuwu/seien-backend
modules/appli/app/com/fuscus/seien/appli/output/CustomSerializer.scala
Scala
mit
1,454
/** * Copyright (c) 2014-2016 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...
TimothyKlim/snowplow
4-storage/kafka-elasticsearch-sink/src/test/scala/com.snowplowanalytics.snowplow.storage.kinesis.elasticsearch/SnowplowElasticsearchEmitterSpec.scala
Scala
apache-2.0
1,840
/* * Copyright 2011 Chris de Vreeze * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
dvreeze/spring-jdbc-scala-utils
src/test/scala/eu/cdevreeze/springjdbc/namedparam/NamedParamJdbcTemplateTest.scala
Scala
apache-2.0
10,378
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.libs.openid import org.specs2.mutable.Specification import scala.Predef._ import org.specs2.mock.Mockito import org.mockito._ import play.api.mvc.Request import play.api.http._ import play.api.http.Status._ import play.api....
Shenker93/playframework
framework/src/play-openid/src/test/scala/play/api/libs/openid/OpenIDSpec.scala
Scala
apache-2.0
10,325
package org.jetbrains.plugins.scala.lang.parameterInfo.functionParameterInfo class FunctionParameterInfoSimpleTest extends FunctionParameterInfoTestBase { override def getTestDataPath: String = s"${super.getTestDataPath}simple/" def testAnnotation() = doTest() def testDefaultParameter() = doTest() de...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/lang/parameterInfo/functionParameterInfo/FunctionParameterInfoSimpleTest.scala
Scala
apache-2.0
948
package controllers import java.io.File import javax.inject.{Inject, Singleton} import play.api.{Application, Logger} import services._ import util.{AppSettings, FileUploadAsset} import scala.concurrent.ExecutionContext.Implicits.global /** * Controller for dynamic resourced handled from the applicati...
metaxmx/FridayNightBeer
app/controllers/AppResourceController.scala
Scala
apache-2.0
3,054
/* * Sonar Scoverage Plugin * Copyright (C) 2013 Rado Buransky * dev@sonar.codehaus.org * * 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 3 of the License, or (at...
Sagacify/sonar-scala
src/main/scala/com/buransky/plugins/scoverage/sensor/ScoverageSensor.scala
Scala
lgpl-3.0
10,840
/** * Copyright (C) 2015-2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * 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/license...
vesaakerman/easy-sword2
src/main/scala/nl/knaw/dans/api/sword2/DepositProperties.scala
Scala
apache-2.0
3,324
package mesosphere.marathon.event.http import java.util.UUID import javax.inject.{ Inject, Named } import javax.servlet.http.{ Cookie, HttpServletRequest, HttpServletResponse } import akka.actor.ActorRef import mesosphere.marathon.api.RequestFacade import mesosphere.marathon.event.http.HttpEventStreamActor._ import m...
yp-engineering/marathon
src/main/scala/mesosphere/marathon/event/http/HttpEventStreamServlet.scala
Scala
apache-2.0
3,707
/* * Copyright 2014 IBM Corp. * * 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...
slowenthal/spark-kernel
kernel-api/src/main/scala/com/ibm/spark/magic/dependencies/IncludeSparkContext.scala
Scala
apache-2.0
1,184
package com.pwootage.sasm.test.bitint /* * Copyright (c) 2014 Pwootage * * This file is part of SASM. * * SASM 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...
Pwootage/SASM
src/test/scala/com/pwootage/sasm/test/bitint/BitIntSpec.scala
Scala
gpl-3.0
934
package service import model.Profile._ import profile.simple._ import model.{Repository, Account, Collaborator} import util.JGitUtil trait RepositoryService { self: AccountService => import RepositoryService._ /** * Creates a new repository. * * @param repositoryName the repository name * @param user...
tily/gitbucket2
src/main/scala/service/RepositoryService.scala
Scala
apache-2.0
17,978
package io.github.andrebeat.kadfun import com.github.nscala_time.time.Imports._ import java.net.InetAddress import scala.collection.immutable.SortedSet case class Node(nodeId: Id, address: InetAddress, port: Int) { def distance(that: Node) = this.nodeId.distance(that.nodeId) } case class Contact(node: Node, timesta...
andrebeat/kadfun
src/main/scala/io/github/andrebeat/kadfun/routing.scala
Scala
mit
1,889
package sttp.client3.examples object PostFormSynchronous extends App { import sttp.client3._ val signup = Some("yes") val request = basicRequest // send the body as form data (x-www-form-urlencoded) .body(Map("name" -> "John", "surname" -> "doe")) // use an optional parameter in the URI .post(u...
softwaremill/sttp
examples/src/main/scala/sttp/client3/examples/PostFormSynchronous.scala
Scala
apache-2.0
504
/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/...
felixmulder/scala
src/library/scala/runtime/RichByte.scala
Scala
bsd-3-clause
1,301
/* * 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 ...
bravo-zhang/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/compression/CompressibleColumnBuilder.scala
Scala
apache-2.0
4,127
package im.actor import sbt._ object Dependencies { object V { val actorCommons = "0.0.20" val actorBotkit = "1.0.113" val akka = "2.4.10" val akkaHttpJson = "1.10.0" val cats = "0.7.2" val circe = "0.5.1" val kamon = "0.5.2" val slick = "3.1.1" val slickPg = "0.14.3" val sca...
EaglesoftZJ/actor-platform
actor-server/project/Dependencies.scala
Scala
agpl-3.0
11,373
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/physical/stream/StreamExecWindowJoinRule.scala
Scala
apache-2.0
5,035
package com.eharmony.aloha.models import com.eharmony.aloha.util.Logging import scala.language.existentials import java.{lang => jl} import org.junit.Assert._ import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.BlockJUnit4ClassRunner import com.eharmony.aloha.models.TypeCoercionTest.{mat...
eHarmony/aloha
aloha-core/src/test/scala/com/eharmony/aloha/models/TypeCoercionTest.scala
Scala
mit
68,004
package akka.dispatch import akka.actor.ActorSystem import com.typesafe.config.ConfigFactory import org.scalatest.FunSuite /** * Created by huanwuji * date 2017/2/21. */ class SizeScaleThreadPoolExecutorConfiguratorTest extends FunSuite { test("init") { val config = ConfigFactory.load("instance.conf") ...
huanwuji/teleporter
src/test/scala/akka/dispatch/SizeScaleThreadPoolExecutorConfiguratorTest.scala
Scala
agpl-3.0
469
package com.yetu.oauth2provider.base import com.yetu.oauth2provider.registry.{ IntegrationTestRegistry, TestRegistry } import org.scalatest._ import org.scalatest.prop.GeneratorDrivenPropertyChecks /** * Class to be extended for all Unit tests */ class BaseIntegrationSpec extends WordSpec with MustMatchers with G...
yetu/oauth2-provider
test/com/yetu/oauth2provider/base/BaseIntegrationSpec.scala
Scala
mit
502
/* * 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 ...
Aegeaner/spark
external/kafka-0-10-token-provider/src/test/scala/org/apache/spark/kafka010/KafkaDelegationTokenTest.scala
Scala
apache-2.0
3,098
/* * 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 ...
ueshin/apache-flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/batch/table/CalcTest.scala
Scala
apache-2.0
10,196
package org.template.fpm /* * Copyright KOLIBERO under one or more contributor license agreements. * KOLIBERO licenses this file to You 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 * * ht...
goliasz/pio-template-fpm
src/main/scala/DataSource.scala
Scala
apache-2.0
2,052
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
oeddyo/scalding
scalding-date/src/test/scala/com/twitter/scalding/GlobifierOps.scala
Scala
apache-2.0
3,924
/* Copyright 2010 SpendChart.no * * 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 ...
spendchart/banksync
src/main/scala/no/spendchart/banksync/Banksync.scala
Scala
apache-2.0
11,579
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
hpe-cct/cct-core
src/main/scala/cogx/cogmath/algebra/real/Matrix.scala
Scala
apache-2.0
28,473
package com.bradbrok.filmomatic object Message { trait Request trait Response { def request: Request } }
bradbrok/Film-O-Matic
core/src/main/scala/com/bradbrok/filmomatic/Message.scala
Scala
mit
116
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/physical/batch/BatchExecCorrelate.scala
Scala
apache-2.0
8,571
package lila.app package templating import controllers.routes import mashup._ import play.twirl.api.Html import lila.api.Context import lila.common.LightUser import lila.rating.{ PerfType, Perf } import lila.user.{ User, UserContext, Perfs } trait UserHelper { self: I18nHelper with StringHelper with NumberHelper => ...
JimmyMow/lila
app/templating/UserHelper.scala
Scala
mit
11,345
package ch17_skip_list import scala.util.Random class Node(var data: Int, var forwards: Array[Node], var maxLevel: Int) class SkipList(var head: Node, var skipListLevel: Int) { def this() = this(new Node(-1, new Array[Node](16), 0), 1) val MAX_LEVEL = 16 val random = new Random() def find(value: Int): Opt...
wangzheng0822/algo
scala/src/main/scala/ch17_skip_list/SkipList.scala
Scala
apache-2.0
2,398
import stainless.lang._ object SuperCall2 { sealed abstract class Base { def double(x: BigInt): BigInt = x * 2 } case class Override() extends Base { override def double(x: BigInt): BigInt = { super.double(x + 1) + 42 } } case class NoOverride() extends Base def test1 = { NoOverr...
epfl-lara/stainless
frontends/benchmarks/verification/valid/MicroTests/SuperCall2.scala
Scala
apache-2.0
415
/* * 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...
svn2github/scalatest
src/test/scala/org/scalautils/LegacyTripleEqualsAndShouldMatchersSpec.scala
Scala
apache-2.0
932
package by.pavelverk.hardwrite.core.auth import by.pavelverk.hardwrite.core.InMemoryStorage import by.pavelverk.hardwrite.utils.db.DatabaseConnector import by.pavelverk.hardwrite.core.AuthData import scala.concurrent.{ExecutionContext, Future} sealed trait AuthDataStorage { def findAuthData(login: String): Future...
VerkhovtsovPavel/BSUIR_Labs
Master/back/akka-http-rest-master/src/main/scala/by/pavelverk/hardwrite/core/auth/AuthDataStorage.scala
Scala
mit
1,232
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * ...
adarro/ddo-calc
subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/effect/features/HitChancePercentFeature.scala
Scala
apache-2.0
4,040
import sbt._ class ExcludeScala(info: ProjectInfo) extends DefaultProject(info) { lazy val noScala = task { checkNoScala } def checkNoScala = { val existing = compileClasspath.filter(isScalaLibrary _).get if(existing.isEmpty) None else Some("Scala library was incorrectly retrieved: " + existing) } def isScal...
kuochaoyi/xsbt
sbt/src/sbt-test/dependency-management/exclude-scala/project/build/ExcludeScala.scala
Scala
bsd-3-clause
441
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.api.test import java.util.concurrent.TimeUnit import org.fluentlenium.adapter.FluentAdapter import org.fluentlenium.core.domain.FluentList import org.fluentlenium.core.domain.FluentWebElement import org.openqa.selenium._ import org.openq...
wegtam/playframework
testkit/play-test/src/main/scala/play/api/test/Selenium.scala
Scala
apache-2.0
4,452
package cromwell.engine.workflow.mocks import org.specs2.mock.Mockito import wdl.{Declaration, WdlExpression} import wom.types.WomType object DeclarationMock { type DeclarationMockType = (String, WomType, WdlExpression) } trait DeclarationMock extends Mockito { def mockDeclaration(name: String, ...
ohsu-comp-bio/cromwell
engine/src/test/scala/cromwell/engine/workflow/mocks/DeclarationMock.scala
Scala
bsd-3-clause
597
/* Title: Tools/jEdit/src/bibtex_jedit.scala Author: Makarius BibTeX support in Isabelle/jEdit. */ package isabelle.jedit import isabelle._ import scala.collection.mutable import java.awt.event.{ActionListener, ActionEvent} import javax.swing.text.Segment import javax.swing.tree.DefaultMutableTree...
MerelyAPseudonym/isabelle
src/Tools/jEdit/src/bibtex_jedit.scala
Scala
bsd-3-clause
8,118
// easy and straightforward. nothing to say object Solution { def flipAndInvertImage(xs: Array[Array[Int]]): Array[Array[Int]] = xs.map(_.reverse.map(x => if (x == 0) 1 else 0)) def main(args: Array[String]) = { println( new Array(new Array(1,1,0),new Array(1,0,1),new Array(0,0,0)) ) } }
Javran/leetcode
flipping-an-image/Solution.scala
Scala
mit
315
package vonsim.assembly.parser import scala.util.parsing.combinator.Parsers import scala.util.parsing.input.{NoPosition, Position, Reader} import vonsim.assembly.lexer._ import scala.Left import scala.Right import vonsim.assembly.ParserError import vonsim.assembly.Location import scala.util.parsing.input.Positional i...
facundoq/vonsim
src/main/scala/vonsim/assembly/parser/Parser.scala
Scala
agpl-3.0
8,020
package com.tobe.client import org.apache.hadoop.fs.FileSystem import org.apache.hadoop.io.{BytesWritable, NullWritable} import org.apache.spark.{SparkConf, SparkContext} import org.apache.spark.rdd.RDD import org.tensorflow.example.{Example, Feature, Features, FloatList} object SparkDensePredictClient { def main(...
tobegit3hub/deep_recommend_system
java_predict_client/src/main/scala/com/tobe/client/SparkDensePredictClient.scala
Scala
apache-2.0
2,480
package org.jetbrains.plugins.scala package lang.refactoring.rename import com.intellij.refactoring.rename.RenameHandler import com.intellij.openapi.project.Project import com.intellij.openapi.editor.Editor import com.intellij.psi.{PsiFile, PsiElement} import com.intellij.openapi.actionSystem.{CommonDataKeys, DataCont...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/refactoring/rename/XmlRenameHandler.scala
Scala
apache-2.0
4,959
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TypeUtils.scala
Scala
apache-2.0
4,722
package quotes import scala.quoted.* object Quotes_1 { def printHello(using Quotes): Expr[Unit] = '{ println("Hello") } $printHello // error }
dotty-staging/dotty
tests/neg-macros/quote-spliceNonStaged.scala
Scala
apache-2.0
148
package org.scaladebugger.api.lowlevel.wrappers import com.sun.jdi._ import org.scaladebugger.test.helpers.ParallelMockFunSpec import org.scalamock.scalatest.MockFactory import org.scalatest.{FunSpec, Matchers} import test.JDIMockHelpers import scala.collection.JavaConverters._ class ValueWrapperSpec extends Paralle...
chipsenkbeil/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/lowlevel/wrappers/ValueWrapperSpec.scala
Scala
apache-2.0
12,470
/*^ =========================================================================== Helios - FX =========================================================================== Copyright (C) 2013-2016 Gianluca Costa =========================================================================== Licensed under the Apache...
giancosta86/Helios-fx
src/main/scala/info/gianlucacosta/helios/fx/dialogs/about/AboutBox.scala
Scala
apache-2.0
1,888
package com.github.mgoeminne.sitar.parser.acm import com.github.mgoeminne.sitar.parser.{Paper, Citation, CitationParser} /** * acm style for inproceedings citation */ private[acm] class ACMInProceedingsParser extends CitationParser { def lastName: Parser[String] = """[^,]+""".r ^^ { case l => l.split(" ").last}...
mgoeminne/sitar
src/main/scala/com/github/mgoeminne/sitar/parser/acm/ACMInProceedingsParser.scala
Scala
mit
969
package com.themillhousegroup.play2.mailgun.templating import org.specs2.mutable.Specification class DualFormatEmailSpec extends Specification { "Dual-Format emails" should { "Convert plain text to plain text" in { val dfe = new DualFormatEmail("test text") dfe.toPlainText must beEqualTo("test text") } ...
themillhousegroup/play2-mailgun
templating/src/test/scala/com/themillhousegroup/play2/mailgun/templating/DualFormatEmailSpec.scala
Scala
mit
849
package model import play.api.libs.json._ /** * Represents the Swagger definition for GithubScmlinks. * @param additionalProperties Any additional properties this model may have. */ @javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2022-02-1...
cliffano/swaggy-jenkins
clients/scala-play-server/generated/app/model/GithubScmlinks.scala
Scala
mit
1,418
package com.gravity.hadoop import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.{PathFilter, Path, FileSystem} import org.apache.hadoop.io.{SequenceFile, Writable} import java.io._ import scala.collection.mutable.Buffer /** * Convenience methods for reading and writing files to and from hdfs. */ ...
GravityLabs/HPaste
src/main/scala/com/gravity/hadoop/hdfs.scala
Scala
apache-2.0
4,766
/* * ParParticleFilter.scala * A parallel one-time particle filter. * * Created By: Lee Kellogg (lkellogg@cra.com) * Creation Date: Jun 2, 2015 * * Copyright 2015 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email figaro@cra.com for information. * * See http://www.g...
scottcb/figaro
Figaro/src/main/scala/com/cra/figaro/algorithm/filtering/ParParticleFilter.scala
Scala
bsd-3-clause
7,588
import korolev._ import korolev.server._ import korolev.akka._ import scala.concurrent.ExecutionContext.Implicits.global import korolev.state.javaSerialization._ import scala.concurrent.Future object SimpleExample extends SimpleAkkaHttpKorolevApp { import State.globalContext._ import levsha.dsl._ import html._...
fomkin/korolev
examples/simple/src/main/scala/SimpleExample.scala
Scala
apache-2.0
3,918
/*********************************************************************** * 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-tools/src/test/scala/org/locationtech/geomesa/accumulo/tools/ingest/ShpIngestTest.scala
Scala
apache-2.0
4,310
/* * Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software;Designed and Developed mainly by many Chinese * opensource volunteers. you can redistribute it and/or modify it under the * ...
fengshao0907/Mycat-spider
src/main/scala/turbo/crawler/power/MessageDriven.scala
Scala
apache-2.0
1,755
/** * Copyright (C) 2016 Verizon. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Verizon/trapezium
cache/src/main/scala/com/verizon/bda/trapezium/cache/exception/CacheConfig.scala
Scala
apache-2.0
721
package org.jetbrains.plugins.scala.lang.refactoring.util import com.intellij.openapi.project.Project import com.intellij.psi.search.{GlobalSearchScopesCore, PsiSearchHelper} import com.intellij.psi.{PsiDirectory, PsiElement, PsiFile, PsiNamedElement} import com.intellij.util.Processor import scala.collection.mutable...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/util/ScalaCompositeTypeValidator.scala
Scala
apache-2.0
2,692
package scroll.internal.formal /** Companion object for the formal representation of the constraint model. */ object FormalConstraintModel { def empty[NT >: Null <: AnyRef, RT >: Null <: AnyRef, CT >: Null <: AnyRef, RST >: Null <: AnyRef] : FormalConstraintModel[NT, RT, CT, RST] = FormalConstraintModel[N...
max-leuthaeuser/SCROLL
core/src/main/scala/scroll/internal/formal/FormalConstraintModel.scala
Scala
lgpl-3.0
3,820
package mesosphere.marathon.integration.setup import java.io.File import java.util.concurrent.{ Executors, TimeUnit } import com.google.common.util.concurrent.{ AbstractIdleService, Service } import com.google.inject.Guice import mesosphere.chaos.http.{ HttpConf, HttpModule, HttpService } import mesosphere.chaos.met...
ramitsurana/marathon
src/test/scala/mesosphere/marathon/integration/setup/ProcessKeeper.scala
Scala
apache-2.0
7,865
package config.fixtures import com.samskivert.mustache.Mustache import org.peelframework.core.beans.system.Lifespan import org.peelframework.flink.beans.system.Flink import org.peelframework.hadoop.beans.system.HDFS2 import org.peelframework.spark.beans.system.Spark import org.springframework.context.annotation.{Bean,...
peelframework/peel-wordcount
peel-wordcount-bundle/src/main/resources/config/fixtures/systems.scala
Scala
apache-2.0
1,439
package domain import akka.persistence.PersistentActor import akka.actor.ActorLogging import utils.akka.ActorHelpers import java.security.MessageDigest import akka.util.ByteString object KeyRingAggregate { type KeyBlock = String trait Command extends BaseCommand case class ReceiveKeySubmission(pgpPublicKe...
dit4c/dit4c
dit4c-portal/app/domain/KeyRingAggregate.scala
Scala
mit
3,197
trait tPointState {//5 type p <: tPointState def x: Int def y: Int def of(x:Int,y:Int):p } trait tPointSum extends tPointState {//3*4 def sum(that:p)= this.of(this.x+that.x,this.y+that.y) } trait tPointSub extends tPointState { def sub(that:p)= this.of(this.x-that.x,this.y-that.y) } trait tPo...
ElvisResearchGroup/L42Docs
CaseStudyEcoop2018/src/scalaEP/mainPoints.scala
Scala
lgpl-3.0
3,503
package mesosphere.marathon.api.v2 import javax.inject.{ Inject } import javax.ws.rs._ import javax.ws.rs.core.{ MediaType } import mesosphere.marathon.MarathonConf import com.codahale.metrics.annotation.Timed import mesosphere.marathon.api.{ MarathonMediaType, RestResource } import java.io.InputStream @Path("v2/sche...
spacejam/marathon
src/main/scala/mesosphere/marathon/api/v2/SchemaResource.scala
Scala
apache-2.0
647
package cobase.user import com.mohiva.play.silhouette.api.services.IdentityService import com.mohiva.play.silhouette.impl.providers.CommonSocialProfile import scala.concurrent.Future /** * Handles actions to users. */ trait UserService extends IdentityService[User] { def save(user: User): Future[User] /** ...
Cobase/cobase-pro
app/cobase/user/UserService.scala
Scala
mit
648
package utils import scopt.OParser object CommandLineParser { def apply[C](parser: OParser[Unit, C], args: Array[String], config: C): C = { OParser.parse(parser, args, config) match { case Some(parsedArgs) => parsedArgs.asInstanceOf[C] case _ => throw new IllegalArgumentException("Wrong command line...
lift-project/lift
src/main/utils/CommandLineParser.scala
Scala
mit
352
package model import com.stormpath.sdk.account.Account import com.stormpath.sdk.group.Group import util.MarshallableImplicits._ import scala.collection.JavaConversions._ /** * Created by vasmith on 12/11/16. */ object AccountFields { def toJson(stormAccount: Account) = AccountFields(stormAccount.getHref, stormA...
ValSmith/play-stormpath
app/model/AccountFields.scala
Scala
mit
1,271
package com.github.lookout.serviceartifact import com.twitter.finagle.{Http, Service} import com.twitter.io.Charsets import com.twitter.server.TwitterServer import com.twitter.util.{Await, Future} import org.jboss.netty.buffer.ChannelBuffers.copiedBuffer import org.jboss.netty.handler.codec.http._ object BasicServer ...
lookout/service-artifact-gradle-plugin
examples/scala-service/src/main/scala/com/github/lookout/serviceartifact/HelloWorld.scala
Scala
mit
781
package cz.kamenitxan.jakon.webui.controller.pagelets import java.sql.Connection import java.util.Date import cz.kamenitxan.jakon.core.database.DBHelper import cz.kamenitxan.jakon.core.dynamic.{Get, Pagelet, Post} import cz.kamenitxan.jakon.core.model.JakonUser import cz.kamenitxan.jakon.core.service.UserService impo...
kamenitxan/Jakon
modules/backend/src/main/scala/cz/kamenitxan/jakon/webui/controller/pagelets/ForgetPasswordPagelet.scala
Scala
bsd-3-clause
2,804
/* * Copyright 2016 Lightcopy * * 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...
lightcopy/spark-github-pr
src/test/scala/com/github/lightcopy/testutil/TestBase.scala
Scala
apache-2.0
4,047
/* * 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 ...
GJL/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/utils/TableTestBase.scala
Scala
apache-2.0
44,390
trait Foo[+A] { type Repr[+O] <: Foo[O] { type Repr[+OO] = Foo.this.Repr[OO] } def foo: Repr[A] def bar: Repr[A] = this.foo.foo }
dotty-staging/dotty
tests/pending/pos/i9346.scala
Scala
apache-2.0
144
package chk.commons.config import java.util.Properties import java.util.concurrent.TimeUnit import chk.commons.{SystemError, ChkException} import chk.commons.di.Injection import collection.JavaConverters._ import scala.language.existentials import com.typesafe.config._ import scala.util.control.Exception._ import sca...
chainkite/chk-commons
core/src/main/scala/chk/commons/config/ConfigUtils.scala
Scala
mit
3,273
/* * 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...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/TestNameProp.scala
Scala
apache-2.0
23,877
/* * The MIT License * * Copyright (c) 2017 Fulcrum Genomics * * 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 use, c...
fulcrumgenomics/fgbio
src/test/scala/com/fulcrumgenomics/rnaseq/EstimateRnaSeqInsertSizeTest.scala
Scala
mit
19,543
package uk.gov.dvla.vehicles.presentation.common.filters import com.google.inject.Inject import org.apache.commons.codec.binary.Base64 import play.api.Logger import play.api.http.ContentTypes.HTML import play.api.http.HeaderNames.REFERER import play.api.http.HttpVerbs.{GET, POST} import play.api.libs.Crypto import pla...
dvla/vehicles-presentation-common
app/uk/gov/dvla/vehicles/presentation/common/filters/CsrfPreventionFilter.scala
Scala
mit
7,811
/* * Copyright 2016 Oleg Morozenkov * * 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...
reo7sp/Face3dMatch
src/main/scala/ru/reo7sp/f3m/data/AuthDataStorage.scala
Scala
apache-2.0
2,047
package org.jetbrains.plugins.scala.lang.typeInference import org.jetbrains.plugins.scala.DependencyManagerBase._ import org.jetbrains.plugins.scala.{LatestScalaVersions, ScalaVersion} import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter import org.jetbrains.plugins.scala.base.libraryLoaders...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/typeInference/ScalaTagsImplicitConversionTest.scala
Scala
apache-2.0
903
package chat.tox.antox.activities import java.util.regex.Pattern import android.app.ActivityManager import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.{Build, Bundle} import android.support.v7.app.AppCompatActivity import android.text.Html import android.text.method.LinkMov...
subliun/Antox
app/src/main/scala/chat/tox/antox/activities/ToxMeInfoActivity.scala
Scala
gpl-3.0
1,938
package org.workcraft.pluginmanager import java.util.UUID import java.io.PrintWriter import java.io.BufferedWriter import java.io.OutputStreamWriter import java.io.FileOutputStream import java.io.File import java.io.BufferedReader import java.io.InputStreamReader import java.io.FileInputStream import java.nio...
tuura/workcraft-2.2
PluginManager/src/main/scala/org/workcraft/pluginmanager/PluginManifest.scala
Scala
gpl-3.0
2,095
/* Copyright 2015 Jo Pol This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it ...
jo-pol/GroundForge
src/main/scala/dibl/fte/SvgPricking.scala
Scala
gpl-3.0
3,606
package org.scala_libs.scuartz import java.util.Date import org.quartz.{Job,JobDetail,JobExecutionContext,SimpleTrigger} import org.quartz.impl.StdSchedulerFactory import org.specs._ import org.specs.specification._ import Scuartz._ class ScuartzSpecs extends Specification with DetailedFailures { class TestJob e...
dchenbecker/Scuartz
src/test/scala/org/scala_libs/scuartz/ScuartzSpecs.scala
Scala
apache-2.0
1,714
package model /** * User: mtrupkin * Date: 1/3/14 */ class Weapon(val name: String) { var target: Entity = Entity.None }
mtrupkin/brace-for-impact
game-app/src/main/scala/model/Weapon.scala
Scala
mit
127
trait Is[A] case object IsInt extends Is[Int] case object IsString extends Is[String] case class C[A](is: Is[A], value: A) @main def Test = { val c_string: C[String] = C(IsString, "name") val c_any: C[_] = c_string val any: Any = c_string // Case 1: error, tested in tests/neg/i5077.scala // c_string match {...
lampepfl/dotty
tests/run/i5077.scala
Scala
apache-2.0
1,066
import java.io.{OutputStreamWriter, PrintWriter, StreamTokenizer, BufferedReader, InputStreamReader} object Solution { def main(args: Array[String]) { val reader: BufferedReader = new BufferedReader(new InputStreamReader(System.in)) val tokenizer: StreamTokenizer = new StreamTokenizer(reader) val out: Pr...
FireFry/online-judge-solutions
acm.timus.ru/1982.scala
Scala
gpl-2.0
1,445
package pl.touk.nussknacker.ui.api.helpers import io.circe.{Encoder, Json} import pl.touk.nussknacker.engine.api.deployment.ProcessActionType.{Deploy, ProcessActionType} import pl.touk.nussknacker.engine.api.process.{ProcessId, VersionId} import pl.touk.nussknacker.engine.api.{FragmentSpecificData, RequestResponseMeta...
TouK/nussknacker
ui/server/src/test/scala/pl/touk/nussknacker/ui/api/helpers/TestProcessUtil.scala
Scala
apache-2.0
6,085
package recfun import common._ object Main { def main(args: Array[String]) { println("Pascal's Triangle") for (row <- 0 to 10) { for (col <- 0 to row) print(pascal(col, row) + " ") println() } } /** * Exercise 1 */ def pascal(c: Int, r: Int): Int = if (c == 0 || r == 0 ||...
hsinhuang/codebase
ProgFun-005/recfun/src/main/scala/recfun/Main.scala
Scala
gpl-2.0
1,155
/* * 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 ...
cin/spark
streaming/src/test/scala/org/apache/spark/streaming/ReceivedBlockHandlerSuite.scala
Scala
apache-2.0
17,782
/* * Util.scala * Utility functions for atomic continuous elements. * * Created By: Avi Pfeffer (apfeffer@cra.com) * Creation Date: Feb 25, 2011 * * 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....
jyuhuan/figaro
Figaro/src/main/scala/com/cra/figaro/library/atomic/continuous/Util.scala
Scala
bsd-3-clause
2,363
package com.imageprocessing.core import akka.actor.{ ActorRef, Actor } import akka.actor.SupervisorStrategy.Escalate import com.imageprocessing._ import scala.Some import akka.actor.OneForOneStrategy import com.sksamuel.scrimage import scala.concurrent.Future import dispatch.Defaults.executor import dispatch._ import ...
karthik20522/SprayImageProcessing
src/main/scala/com/imageprocessing/core/ProcessImageActor.scala
Scala
mit
7,157
package com.bio4j.release.generic import com.bio4j.data._ import com.bio4j.model._ import com.bio4j.angulillos._ import scala.compat.java8.OptionConverters._ import bio4j.data.uniprot._ // from keywords-all.tsv case class KeywordRow(val id: String, val description: String, val category: String) case class ImportUniP...
bio4j/bio4j-data-import
src/main/scala/uniprot/uniprot.scala
Scala
agpl-3.0
6,504
/* * 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...
Myllyenko/incubator-toree
kernel-api/src/main/scala/org/apache/toree/utils/MultiOutputStream.scala
Scala
apache-2.0
1,550
/* * 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 ...
bravo-zhang/spark
mllib/src/main/scala/org/apache/spark/ml/clustering/GaussianMixture.scala
Scala
apache-2.0
25,917
package com.sksamuel.elastic4s.http.get object MetaDataFields { val fields = Set( "_id", "_type", "_index", "_uid" ) }
Tecsisa/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/get/MetaDataFields.scala
Scala
apache-2.0
140
package com.mattrjacobs.rxscala import rx.lang.scala.Observable object Producer { def stream(): Observable[String] = { val stringList = (1 to 100).map(x => "a") Observable(stringList: _*) } }
mattrjacobs/RxScalaDemo
src/main/scala/demo/SampleProducer.scala
Scala
apache-2.0
206
package org.jetbrains.plugins.scala package annotator import com.intellij.lang.annotation.AnnotationHolder import com.intellij.psi.{PsiClass, PsiField, PsiMethod} import org.jetbrains.plugins.scala.annotator.AnnotatorUtils.registerTypeMismatchError import org.jetbrains.plugins.scala.codeInspection.varCouldBeValInspect...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/AssignmentAnnotator.scala
Scala
apache-2.0
4,291
package sync import java.io._ import scala.collection.mutable.ArrayBuffer object Constants { val scalaVersion = "2.11" val clientoptjs = "client-opt.js" val clientjsdepsminjs = "client-jsdeps.min.js" val targetname = "chessapp" def scaladir = s"scala-$scalaVersion" } case class MyPath(parts: String*) { i...
serversideapps/silhmojs
sync/src/main/scala/sync.scala
Scala
apache-2.0
9,039
package scala package reflect package api /** * <span class="badge badge-red" style="float: right;">EXPERIMENTAL</span> * * `Universe` provides a complete set of reflection operations which make it possible for one * to reflectively inspect Scala type relations, such as membership or subtyping. * * [[scala.refle...
felixmulder/scala
src/reflect/scala/reflect/api/Universe.scala
Scala
bsd-3-clause
4,567