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) 2013 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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 Fou... | tesendic/Relite | src/generated/scala/IntFloatSupervisedTrainingSet.scala | Scala | agpl-3.0 | 1,108 |
/**
* 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... | TiVo/kafka | core/src/test/scala/integration/kafka/api/ConsumerWithLegacyMessageFormatIntegrationTest.scala | Scala | apache-2.0 | 5,470 |
object test {
// this
class adfa(a: Int) {
def this() {
}
}
new adfa()
val x = new adfa(2)
val y = new /*caret*/adfa()
}
/*
object test {
// this
class NameAfterRename(a: Int) {
def this() {
}
}
new NameAfterRename()
val x = new NameAfterRename(2)
val y = new /*caret*/NameA... | ilinum/intellij-scala | testdata/rename/class/Constructor2.scala | Scala | apache-2.0 | 337 |
package scrabble;
case class Game private (
players: Map[Int, Player],
dictionary: Dictionary,
board: Board,
playersMove: Int, // Index into the list of players
bag: LetterBag,
consecutivePasses: Int,
moves: Int) {
def getPlayer(playerNo: Int) : Option[Player] = players get playerNo
val currentPl... | ornicar/scalascrabble | src/main/scala/Game.scala | Scala | gpl-2.0 | 1,360 |
/**
* Copyright (C) 2010-2012 LShift Ltd.
*
* 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... | 0x6e6562/diffa | kernel/src/main/scala/net/lshift/diffa/kernel/config/ServiceLimitsStore.scala | Scala | apache-2.0 | 4,378 |
/** Implemented the RNG and LCG classes
* for the package fpinscala.state.rand.
*
* Note: Rand is a type alias for
* fpinscala.state.State[RNG, A].
* We define this package-wide in
* the rand package object.
*
*/
package grokScala.grok.rand
/** Base class for the RNG class for
* pseu... | grscheller/scheller-linux-archive | grok/Scala2/learnScala/multiPackage/src/main/scala/multiPackage/rand/RNG.scala | Scala | bsd-3-clause | 4,873 |
package org.fusesource.scalate.filter.less
import org.fusesource.scalate.test.TemplateTestSupport
class LessFilterTest extends TemplateTestSupport {
test("inline") {
assertUriOutputContains("/org/fusesource/scalate/filter/less/inline.scaml", """
<style type="text/css">
p {
text-color: #0000ff;
}
</style>
""".... | janurag/scalate | scalate-less/src/test/scala/org/fusesource/scalate/filter/less/LessFilterTest.scala | Scala | apache-2.0 | 621 |
package mesosphere.marathon.core.appinfo
import mesosphere.marathon.core.readiness.ReadinessCheckResult
import mesosphere.marathon.state.{ AppDefinition, Identifiable, TaskFailure }
import scala.collection.immutable.Seq
/**
* An app definition with optional additional data.
*
* You can specify which data you w... | ss75710541/marathon | src/main/scala/mesosphere/marathon/core/appinfo/AppInfo.scala | Scala | apache-2.0 | 1,024 |
import spray.json._
trait JsonProtocols extends DefaultJsonProtocol {
protected implicit val emailFormat = new JsonFormat[EmailAddress] {
override def write(obj: EmailAddress): JsValue = JsString(obj.address)
override def read(json: JsValue): EmailAddress = json match {
case JsString(value) => EmailAd... | ldrygala/reactive-microservices | auth-password/src/main/scala/JsonProtocols.scala | Scala | mit | 957 |
package tk.monnef.mcmapper.test
import org.scalatest.{FlatSpec, Matchers}
import tk.monnef.mcmapper._
import tk.monnef.mcmapper.ClassMapping
import tk.monnef.mcmapper.FieldMapping
import tk.monnef.mcmapper.RawDataMerger.SubMerge
import scala.collection.immutable.{HashSet, HashMap}
class RawDataMergerTests extends Fla... | mnn/mcMapperLib | src/test/scala/tk/monnef/mcmapper/test/RawDataMergerTests.scala | Scala | apache-2.0 | 6,348 |
/**
* © 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-domain/src/main/scala/cmwell/domain/Infoton.scala | Scala | apache-2.0 | 30,513 |
/*******************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* Created by Basho Technologies for IBM
*
* 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 cop... | basho/spark-riak-connector | connector/src/main/scala/org/apache/spark/sql/riak/RiakRelation.scala | Scala | apache-2.0 | 5,240 |
package dotty.tools.dottydoc
package model
import comment.Comment
import references._
import dotty.tools.dotc.core.Symbols.{ Symbol, NoSymbol }
object internal {
final case class PackageImpl(
var symbol: Symbol,
var annotations: List[String],
var name: String,
var members: List[Entity],
var pat... | som-snytt/dotty | doc-tool/src/dotty/tools/dottydoc/model/internal.scala | Scala | apache-2.0 | 3,621 |
package _docs.tests
class Adoc:
def foo = 123
| dotty-staging/dotty | scaladoc-testcases/src/_docs/tests/Adoc.scala | Scala | apache-2.0 | 49 |
package grammarcomp
package repair
import grammar._
import CFGrammar._
import EBNFGrammar._
import generators._
import parsing._
import equivalence._
import utils._
import scala.collection.mutable.ListBuffer
import scala.annotation.tailrec
import RepairResult._
class ContextBasedSuperSetRepair[T](g: Grammar[T], ungen... | epfl-lara/GrammarComparison | src/main/scala/grammarcomp/repair/ContextBasedSuperSetRepair.scala | Scala | mit | 15,978 |
package browser
import helpers.TestDataPerTest
import org.scalatestplus.play.{HtmlUnitFactory, OneBrowserPerTest, OneServerPerTest, PlaySpec}
class ListPacksPageTests extends PlaySpec with TestDataPerTest with OneServerPerTest with OneBrowserPerTest with HtmlUnitFactory {
"The list packs page" should {
"displ... | notclive/backpack | test/browser/ListPacksPageTests.scala | Scala | mit | 1,249 |
/*
* 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 ... | goldmedal/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/columnar/compression/DictionaryEncodingSuite.scala | Scala | apache-2.0 | 7,165 |
package controllers
/**
* Created by Jörg Amelunxen on 20.11.14.
*/
import javax.inject.Singleton
import org.slf4j.{Logger, LoggerFactory}
import play.api.libs.concurrent.Execution.Implicits.defaultContext
import play.api.libs.json._
import play.api.mvc._
import play.modules.reactivemongo.MongoController
import pl... | HiP-App/HiPBackend | app/controllers/RoleController.scala | Scala | apache-2.0 | 2,575 |
package org.scalatra
import javax.servlet.ServletContext
import javax.servlet.http.{ HttpServletRequest, HttpServletResponse }
import org.scalatra.servlet.ServletApiImplicits
object ScalatraContext {
private class StableValuesContext(
implicit val request: HttpServletRequest,
val response: HttpServletResp... | Alefas/Scalatra | core/src/main/scala/org/scalatra/ScalatraContext.scala | Scala | bsd-2-clause | 1,938 |
/**
* Copyright (C) 2019 Inera AB (http://www.inera.se)
*
* This file is part of statistik (https://github.com/sklintyg/statistik).
*
* statistik 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 v... | sklintyg/statistik | gatling/src/test/scala/se/inera/statistics/gatling/NationellDiagnosavsnitt.scala | Scala | lgpl-3.0 | 1,028 |
/*
* 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 sbt.testing
import scala.scalajs.refl... | gzm0/scala-js | test-interface/src/main/scala/sbt/testing/Framework.scala | Scala | apache-2.0 | 1,931 |
/*
* Copyright 2020 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-jdbc/src/main/scala/com/spotify/scio/jdbc/sharded/JdbcShardedReadOptions.scala | Scala | apache-2.0 | 2,451 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundatio... | HuangLS/neo4j | community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/RemoveAcceptanceTest.scala | Scala | apache-2.0 | 1,162 |
package org.elasticsearch.spark.cfg
import org.elasticsearch.spark.serialization.ReflectionUtils._
import org.junit.Test
import org.junit.Assert._
import org.hamcrest.Matchers._
import org.apache.spark.SparkConf
import org.elasticsearch.hadoop.cfg.PropertiesSettings
class SparkConfigTest {
@Test
def testProperti... | costin/elasticsearch-hadoop | spark/core/test/scala/org/elasticsearch/spark/cfg/SparkConfigTest.scala | Scala | apache-2.0 | 1,141 |
package org.ai4fm.proofprocess.core.analysis
import org.eclipse.emf.ecore.{EObject, EStructuralFeature}
import org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
/**
* A helper for EMF equality matching. Allows using only a subset of EObject features
* for equality.
*
* @author Andrius Velykis
*/
class Featur... | andriusvelykis/proofprocess | org.ai4fm.proofprocess.core/src/org/ai4fm/proofprocess/core/analysis/FeatureEqualityHelper.scala | Scala | epl-1.0 | 883 |
/*
* Copyright (c) 2014-2014 Erik van Oosten 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 req... | erikvanoosten/otagolog | src/main/scala/nl/grons/otagolog/client/OtagologClient.scala | Scala | apache-2.0 | 1,456 |
/**
* Licensed to Big Data Genomics (BDG) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The BDG licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | fnothaft/xASSEMBLEx | xASSEMBLEx-core/src/main/scala/org/bdgenomics/xASSEMBLEx/util/NucleotideSequenceHash.scala | Scala | apache-2.0 | 2,156 |
/*
* Copyright 2015 The SIRIS Project
*
* 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... | simulator-x/core | src/simx/core/helper/Calibration.scala | Scala | apache-2.0 | 5,807 |
import scalaj.http._
import scala.collection.JavaConversions._
import java.io.File
import scala.io.Source
case class HttpException(msg: String) extends Throwable
/*
In order to use this profiling script, you should use install the latest version of scala and sbt(basically sbt will install everything for you).
The foll... | YagoGG/loklak_server | bin/profile.scala | Scala | lgpl-2.1 | 3,786 |
package org.jetbrains.plugins.scala
package debugger.evaluation
import com.intellij.debugger.SourcePosition
import com.intellij.debugger.engine.evaluation.CodeFragmentFactoryContextWrapper
import com.intellij.debugger.engine.evaluation.expression._
import com.intellij.debugger.engine.{JVMName, JVMNameUtil}
import com.... | advancedxy/intellij-scala | src/org/jetbrains/plugins/scala/debugger/evaluation/ScalaEvaluatorBuilderUtil.scala | Scala | apache-2.0 | 75,445 |
package ohnosequences.datasets.illumina
import ohnosequences.datasets._
/*
### Illumina reads
*/
trait AnyReadsData extends AnyData {
type InsertSize <: AnyInsertSize
val insertSize: InsertSize
type EndType <: AnyEndType
val endType: EndType
type Length <: AnyLength
val length: Length
lazy val ... | ohnosequences/datasets.illumina | src/main/scala/reads.scala | Scala | agpl-3.0 | 2,688 |
package wvlet.airframe.codec
import wvlet.airframe.surface.Surface
import wvlet.log.LogSupport
/**
*/
case class MessageCodecFactory(codecFinder: MessageCodecFinder = Compat.messageCodecFinder, mapOutput: Boolean = false)
extends ScalaCompat.MessageCodecFactoryBase
with LogSupport {
private[this] var cach... | wvlet/airframe | airframe-codec/src/main/scala/wvlet/airframe/codec/MessageCodecFactory.scala | Scala | apache-2.0 | 2,904 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | tophua/spark1.52 | sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala | Scala | apache-2.0 | 18,757 |
package io.github.daviddenton.finagle.aws
import io.github.daviddenton.finagle.aws.AwsHmacSha256.{hex, hmacSHA256}
import org.scalatest.{FunSpec, Matchers}
class AwsHmacSha256Test extends FunSpec with Matchers {
describe("AwsHmacSha256") {
it("hash") {
AwsHmacSha256.hash("test string") shouldBe "d5579c4... | daviddenton/finagle-aws | src/test/scala/io/github/daviddenton/finagle/aws/AwsHmacSha256Test.scala | Scala | apache-2.0 | 644 |
package chapter.two
import ExerciseSixThroughNine.product
import ExerciseSixThroughNine.product2
import ExerciseSixThroughNine.product3
import ExerciseSixThroughNine.productRecursive
import org.junit.runner.RunWith
import org.scalatest._
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class Exe... | deekim/impatient-scala | src/test/scala/chapter/two/ExerciseSixThroughNineSpec.scala | Scala | apache-2.0 | 671 |
package pl.touk.nussknacker.ui.db.entity
import slick.jdbc.JdbcProfile
import slick.lifted.{ProvenShape, TableQuery => LTableQuery}
//TODO: Remove it in next release
trait EnvironmentsEntityFactory {
protected val profile: JdbcProfile
import profile.api._
val environmentsTable: LTableQuery[EnvironmentsEntityFa... | TouK/nussknacker | ui/server/src/main/scala/pl/touk/nussknacker/ui/db/entity/EnvironmentsEntityFactory.scala | Scala | apache-2.0 | 728 |
package lila.tournament
import akka.actor._
import akka.pattern.ask
import com.typesafe.config.Config
import lila.common.PimpedConfig._
import lila.hub.actorApi.map.Ask
import lila.hub.{ ActorMap, Sequencer }
import lila.socket.actorApi.GetVersion
import lila.socket.History
import makeTimeout.short
final class Env(
... | Happy0/lila | modules/tournament/src/main/Env.scala | Scala | mit | 5,063 |
package com.mehmetakiftutuncu.classveobject
/**
* Created by akif on 05/01/16.
*/
object ScalaSingleton {
def selam(): Unit = {
println("Scala: Selam!")
}
}
| mehmetakiftutuncu/ScalaBlogOrnekleri | ClassVeObject/src/com/mehmetakiftutuncu/classveobject/ScalaSingleton.scala | Scala | gpl-3.0 | 170 |
/**
* Copyright 2013-2014 Jorge Aliss (jaliss at gmail dot com) - twitter: @jaliss
*
* 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
*... | matthewchartier/securesocial | module-code/app/securesocial/core/authenticator/StoreBackedAuthenticator.scala | Scala | apache-2.0 | 4,892 |
package org.genivi.sota.core.jsonrpc
/**
* Trait including utilities for generating randomr JSON values
* Used by property-based tests
*/
trait JsonGen {
import io.circe.Json
import org.scalacheck.Arbitrary
import org.scalacheck.Gen
val JBooleanGen : Gen[Json] = Gen.oneOf(true, false).map( Json.fromBoolea... | PDXostc/rvi_sota_server | core/src/test/scala/org/genivi/sota/core/jsonrpc/JsonGen.scala | Scala | mpl-2.0 | 696 |
/*--------------------------------------------------------------------------
* Copyright 2013 Taro L. Saito
*
* 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://ww... | xerial/larray | larray-mmap/src/test/scala/xerial/larray/impl/LArrayLoaderTest.scala | Scala | apache-2.0 | 2,693 |
import scala.tools.partest.SessionTest
object Test extends SessionTest {
override def stripMargins = false
def session =
"""
scala> object Y { def f[A](a: => A) = 1 ; def f[A](a: => Either[Exception, A]) = 2 }
<console>:11: error: double definition:
def f[A](a: => A): Int at line 11 and
def f[A](a: => Either[Ex... | shimib/scala | test/files/run/t9170.scala | Scala | bsd-3-clause | 1,706 |
/* __ *\\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL **
** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\\___/_/... | felixmulder/scala | src/library/scala/collection/generic/BitSetFactory.scala | Scala | bsd-3-clause | 1,349 |
/*
* 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 | sql/catalyst/src/main/scala/org/apache/spark/sql/Encoders.scala | Scala | apache-2.0 | 8,998 |
// // This test doesn't do anything. It is to test if the Pi Worker does what is suppose to do.
// package pi
// import akka.actor.{ ActorSystem, Actor, Props, ActorRef }
// import akka.bita.RandomScheduleHelper
// import akka.bita.pattern.Patterns._
// import akka.util.duration._
// import org.scalatest._
// import... | Tjoene/thesis | benchmark/src/test/scala/pi/PiWorkerSpec.scala | Scala | gpl-2.0 | 1,965 |
/*
* 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 ... | darionyaphet/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala | Scala | apache-2.0 | 79,755 |
package com.twitter.finagle.service
import com.twitter.conversions.DurationOps._
import com.twitter.util.Duration
import com.twitter.finagle.benchmark.StdBenchAnnotations
import org.openjdk.jmh.annotations.{Scope, State, Benchmark}
// ./sbt 'project finagle-benchmark' 'jmh:run BackoffBenchmark'
class BackoffBenchmark... | luciferous/finagle | finagle-benchmark/src/main/scala/com/twitter/finagle/service/BackoffBenchmark.scala | Scala | apache-2.0 | 1,823 |
package doodle
package jvm
import doodle.core._
import doodle.core.transform.Transform
import doodle.backend.{BoundingBox, Canvas}
import java.awt.Graphics2D
final class Java2DCanvas(graphics: Graphics2D, center: Point, screenCenter: Point) extends Canvas {
// Convert from canvas coordinates to screen coordinates.... | Angeldude/doodle | jvm/src/main/scala/doodle/jvm/Java2DCanvas.scala | Scala | apache-2.0 | 2,413 |
package com.twitter.finatra.http.internal.routing
import com.twitter.finatra.conversions.pattern._
import java.util.regex.Matcher
import scala.collection.immutable
import scala.util.matching.Regex
object PathPattern {
/*
* The regex matches and captures route param names. Since a ':' character can be used in no... | tom-chan/finatra | http/src/main/scala/com/twitter/finatra/http/internal/routing/PathPattern.scala | Scala | apache-2.0 | 3,297 |
package com.eigengo.lift.common
import java.util.UUID
@SerialVersionUID(1015l) case class UserId(id: UUID) extends AnyVal {
override def toString: String = id.toString
}
@SerialVersionUID(1016l) object UserId {
def randomId(): UserId = UserId(UUID.randomUUID())
def apply(s: String): UserId = UserId(UUID.fromStr... | imace/open-muvr | server/spark/src/main/scala/com/eigengo/lift/spark/serialization/UserId.scala | Scala | apache-2.0 | 329 |
/**
* Copyright (C) 2012 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... | orbeon/orbeon-forms | common/jvm/src/main/scala/org/orbeon/exception/OrbeonFormatter.scala | Scala | lgpl-2.1 | 2,025 |
package main.scala
trait IEchoClientProxy {
def msg(value: String): String;
} | labs2/FLiMSy | ServerFLiMSy/src/main/scala/IEchoClientProxy.scala | Scala | apache-2.0 | 83 |
package org.openmole.plugin.task.gama
import java.io.FileNotFoundException
import monocle.macros._
import org.openmole.core.dsl._
import org.openmole.core.dsl.extension._
import org.openmole.core.exception.{InternalProcessingError, UserBadDataError}
import org.openmole.core.fileservice.FileService
import org.openmole... | openmole/openmole | openmole/plugins/org.openmole.plugin.task.gama/src/main/scala/org/openmole/plugin/task/gama/GAMATask.scala | Scala | agpl-3.0 | 16,475 |
/*
* 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 ... | manishgupta88/incubator-carbondata | integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/mutation/CarbonProjectForUpdateCommand.scala | Scala | apache-2.0 | 11,030 |
package model
import upickle._
case class LoanApplicationRegister(
asOfDate: Int,
respondentId: String,
agencyCode: Int,
loanType: Int,
propertyType: Int,
purpose: Int,
occupancy: Int,
amount: String,
actionType: Int,
msa: String,
state: String,
county: String,
tract: String,
fips: String,... | jmarin/hmdapub | hmdapub/shared/src/main/scala/model/LoanApplicationRegister.scala | Scala | apache-2.0 | 4,826 |
package layer.module
import layer.configuration.Project
/**
* ModuleCompactor.scala
*
* Project: DesignRecovery
* Copyright (c) 2011 Chanjin Park
* License - GNU LESSER GENERAL PUBLIC LICENSE v3.0 (LGPL v3.0)
*
*/
abstract class ModuleCompactor[S <: ModuleStructure, T <: ModuleNode] {
protected def getDire... | chanjin/DesignEvolution | src/main/scala/layer/module/ModuleCompactor.scala | Scala | apache-2.0 | 5,345 |
/*
* 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 ... | jkbradley/spark | core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala | Scala | apache-2.0 | 132,906 |
package im.mange.acceptance.driveby.scalatest.condition
import im.mange.acceptance.driveby.scalatest.WebSpecification
import im.mange.common.ConditionNotMetException
import im.mange.driveby.Id
import im.mange.driveby.conditions._
import org.scalatest.Matchers
class ElementClassesContainsSpec extends WebSpecification ... | alltonp/driveby | src/test/scala/im/mange/acceptance/driveby/scalatest/condition/ElementClassesContainsSpec.scala | Scala | apache-2.0 | 967 |
package com.danielasfregola.twitter4s.entities.v2
// https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/place
final case class Place(full_name: String,
id: String,
contained_within: Seq[String],
country: Option[String],
... | DanielaSfregola/twitter4s | src/main/scala/com/danielasfregola/twitter4s/entities/v2/Place.scala | Scala | apache-2.0 | 568 |
/*
* 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 | core/src/main/scala/org/apache/spark/partial/GroupedSumEvaluator.scala | Scala | apache-2.0 | 3,353 |
package org.beaucatcher.mongo
class MongoException(message: String, cause: Throwable) extends Exception(message, cause) {
def this(message: String) = this(message, null)
}
class DocumentTooLargeMongoException(message: String, cause: Throwable) extends MongoException(message, cause) {
def this(message: String)... | havocp/beaucatcher | base/src/main/scala/org/beaucatcher/mongo/MongoException.scala | Scala | apache-2.0 | 762 |
package com.sksamuel.elastic4s.requests.searches.aggs
import com.sksamuel.elastic4s.requests.script.Script
import com.sksamuel.elastic4s.ext.OptionImplicits._
case class SumAggregation(name: String,
field: Option[String] = None,
missing: Option[AnyRef] = None,
... | sksamuel/elastic4s | elastic4s-core/src/main/scala/com/sksamuel/elastic4s/requests/searches/aggs/SumAggregation.scala | Scala | apache-2.0 | 987 |
/*
* 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/src/test/scala/org/apache/flink/table/runtime/stream/table/GroupWindowTableAggregateITCase.scala | Scala | apache-2.0 | 20,230 |
package fr.hmil.roshttp.exceptions
import java.io.IOException
import fr.hmil.roshttp.response.{HttpResponse, SimpleHttpResponse, StreamHttpResponse}
/** Exception in the HTTP application layer.
*
* In other words, this exception occurs when a bad HTTP status code (>= 400) is received.
*/
case class HttpExcepti... | hmil/RosHTTP | shared/src/main/scala/fr/hmil/roshttp/exceptions/HttpException.scala | Scala | mit | 604 |
package org.smartpony.core.http
import spray.json._
import DefaultJsonProtocol._
import org.apache.http.HttpStatus._
case class Response(statusCode: Int, reason: String, contentType: Option[String],
bodyTextOpt: Option[String], headers: Seq[(String, String)], rawBytes: Array[Byte]) {
def header(... | Dextaa/smartpony | core/src/main/scala/org/smartpony/core/http/Response.scala | Scala | mit | 708 |
package io.scalajs.nodejs
package fs
import io.scalajs.nodejs.buffer.Buffer
import io.scalajs.nodejs.stream.Readable
import io.scalajs.util.PromiseHelper.promiseCallback1
import scala.concurrent.Future
import scala.scalajs.js
import scala.scalajs.js.|
/**
* fs.ReadStream - ReadStream is a Readable Stream.
* @see... | ldaniels528/MEANS.js | app/common/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala | Scala | apache-2.0 | 2,649 |
/*
* 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 ... | aokolnychyi/spark | sql/core/src/test/scala/org/apache/spark/sql/DateFunctionsSuite.scala | Scala | apache-2.0 | 24,346 |
package slinky.core.facade
import slinky.core._
import scala.scalajs.js
import js.|
import scala.annotation.unchecked.uncheckedVariance
import scala.scalajs.js.annotation.{JSImport, JSName}
import scala.scalajs.js.JSConverters._
@js.native
trait ReactElement extends js.Object with ReactElementMod
object ReactElemen... | shadaj/slinky | core/src/main/scala/slinky/core/facade/React.scala | Scala | mit | 11,775 |
/*
* This file is part of Apparat.
*
* Copyright (C) 2010 Joa Ebert
* http://www.joa-ebert.com/
*
* This library 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 Lice... | joa/apparat | apparat-taas/src/main/scala/apparat/taas/optimization/ConstantFolding.scala | Scala | lgpl-2.1 | 2,495 |
/*
* 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/models/deregister/DeRegisterSubscriptionRequest.scala | Scala | apache-2.0 | 1,747 |
/* sxr -- Scala X-Ray
* Copyright 2009, 2010 Mark Harrah, Olivier Michallat
*/
package sxr
import scala.tools.nsc.{ast, plugins, symtab, util, Global}
import ast.parser.Tokens
import plugins.Plugin
import symtab.Flags
import reflect.internal.util.SourceFile
import annotation.tailrec
import java.io.{File, Reader, W... | harrah/browse | src/main/scala/Browse.scala | Scala | bsd-3-clause | 18,063 |
package net.technowizardry
import java.io.{InputStream,OutputStream}
class JavaXMLStreamFactory extends XMLStreamFactory {
def CreateReader(stream : InputStream) = new JavaXMLReader(stream)
def CreateWriter(stream : OutputStream) = new JavaXMLWriter(stream)
} | ajacques/XmppClient | SeniorProject/src/net/technowizardry/JavaXMLStreamFactory.scala | Scala | mit | 270 |
package com.geishatokyo.diffsql
import com.geishatokyo.diffsql.diff.{Aggregator, Normalizer, Differencer}
import com.geishatokyo.diffsql.parser.SQLParser
/**
* Created by takeshita on 14/02/17.
*/
class DiffSQL(sqlParser : SQLParser,
aggregator : Aggregator,
normalizer : Normalizer,
... | geishatokyo/diff-sql-table | parser/src/main/scala/com/geishatokyo/diffsql/DiffSQL.scala | Scala | mit | 1,303 |
package com.twitter.finagle.ssl
import com.twitter.io.{StreamIO, TempDirectory}
import java.io._
import java.security.{KeyStore, SecureRandom}
import javax.net.ssl._
/**
* Take a PEM-encoded cert and key and turn it into a PKCS#12 keystore
* via openssl, which is then loaded into a resulting KeyManager
*
* @param... | mkhq/finagle | finagle-core/src/main/scala/com/twitter/finagle/ssl/PEMEncodedKeyManager.scala | Scala | apache-2.0 | 3,373 |
import doodle.core._
import doodle.turtle.Instruction._
import doodle.turtle._
import doodle.backend.StandardInterpreter._
import doodle.core.Image._
import doodle.core.Point._
import doodle.core._
import doodle.jvm.Java2DCanvas._
import doodle.syntax._
import scala.collection.immutable.Iterable
object Week5 extends... | mbarshay/ScalaClassHelloWorld | src/main/scala/Week5.scala | Scala | apache-2.0 | 2,273 |
/*
* Copyright 2017 Datamountaineer.
*
* 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... | CodeSmell/stream-reactor | kafka-connect-kudu/src/test/scala/com/datamountaineer/streamreactor/connect/kudu/TestKuduWriter.scala | Scala | apache-2.0 | 12,110 |
package org.mozartoz.bootcompiler
package symtab
import scala.collection.mutable.{ ArrayBuffer, Map }
import scala.util.parsing.input.{ Position, NoPosition }
import ast._
import bytecode._
/** Companion object of [[org.mozartoz.bootcompiler.symtab.Abstraction]] */
object Abstraction {
private val nextID = (new ut... | layus/mozart2 | bootcompiler/src/main/scala/org/mozartoz/bootcompiler/symtab/Abstraction.scala | Scala | bsd-2-clause | 2,671 |
package templemore.onx.version3
import Token._
/**
* @author Chris Turner
*/
object OandX {
def main(args: Array[String]) = {
val grid = new Grid
val winScanner = new WinScanner
val moveFinder = new MoveFinder(true)
var token = Token.Nought
while ( !grid.full_? && !winScanner.win_?(grid) ) {... | skipoleschris/OandX | src/test/scala/templemore/onx/version3/OandX.scala | Scala | apache-2.0 | 677 |
package com.dvgodoy.spark.benford.distributions
import breeze.linalg.DenseVector
import breeze.stats.distributions.RandBasis
import com.dvgodoy.spark.benford.constants._
import com.dvgodoy.spark.benford.util._
import org.apache.commons.math3.random.MersenneTwister
import org.apache.spark.SparkContext
import org.apache... | dvgodoy/spark-benford-analysis | src/main/scala/com/dvgodoy/spark/benford/distributions/Bootstrap.scala | Scala | apache-2.0 | 17,829 |
package com.wavesplatform.transaction
import com.google.common.primitives.Bytes
import com.wavesplatform.account.{AddressScheme, Alias, KeyPair, PrivateKey, PublicKey}
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.crypto
import com.wavesplatform.common.utils.EitherExt2
import com.wavesplatform... | wavesplatform/Waves | node/src/main/scala/com/wavesplatform/transaction/CreateAliasTransaction.scala | Scala | mit | 3,301 |
package swiss.sib.analytics.server.logs.utils
object EndPointUtils {
val FIRST_LEVEL_PATH_PATTERN = """(\\/\\w*)(\\/)?(.*)?""".r
def getFirstLevelPath(endpoint: String): String = {
endpoint match {
case FIRST_LEVEL_PATH_PATTERN(firstLevelPath, _, _) => return firstLevelPath;
case _ => return "not... | sib-swiss/server-log-analytics | src/main/scala/swiss/sib/analytics/server/logs/utils/EndPointUtils.scala | Scala | gpl-2.0 | 339 |
package org.antipathy.mvn_scalafmt.model
// $COVERAGE-OFF$
/** Class representing the result of a format on a file
* @param name The name of the file
* @param details a summary of the file
*/
case class FileSummary(name: String, details: String) {
override def toString: String = s"$details: $name"
}
// $COVER... | SimonJPegg/mvn_scalafmt | src/main/scala/org/antipathy/mvn_scalafmt/model/FileSummary.scala | Scala | apache-2.0 | 328 |
package org.jetbrains.plugins.scala.debugger
import com.intellij.debugger.engine.DebugProcess
import com.intellij.debugger.{PositionManager, PositionManagerFactory}
import org.jetbrains.plugins.scala.extensions.invokeLater
import org.jetbrains.plugins.scala.project.ProjectExt
import org.jetbrains.plugins.scala.statist... | JetBrains/intellij-scala | scala/scala-impl/src/org/jetbrains/plugins/scala/debugger/ScalaPositionManagerFactory.scala | Scala | apache-2.0 | 677 |
package com.eevolution.context.dictionary.domain.model
import ai.x.play.json.Jsonx
import com.eevolution.context.dictionary.api.{ActiveEnabled, DomainModel, Identifiable, Traceable}
import org.joda.time.DateTime
/**
* Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com
* This progr... | adempiere/ADReactiveSystem | dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/model/User.scala | Scala | gpl-3.0 | 8,338 |
package impl
import java.nio.file.{Files, StandardOpenOption}
import java.util.Date
import com.lightbend.lagom.scaladsl.api.ServiceLocator.NoServiceLocator
import com.lightbend.lagom.scaladsl.server._
import com.lightbend.lagom.scaladsl.devmode.LagomDevModeComponents
import play.api.libs.ws.ahc.AhcWSComponents
import... | rstento/lagom | dev/sbt-plugin/src/sbt-test/sbt-plugin/run-all-scaladsl/c/src-c/main/scala/impl/BazLoader.scala | Scala | apache-2.0 | 1,113 |
package blended.testsupport.pojosr
import java.io.File
import java.util.Properties
import blended.container.context.impl.internal.AbstractContainerContextImpl
import com.typesafe.config.impl.Parseable
import com.typesafe.config.{Config, ConfigFactory, ConfigObject, ConfigParseOptions}
import scala.beans.BeanProperty... | woq-blended/blended | blended.testsupport.pojosr/src/main/scala/blended/testsupport/pojosr/MockContainerContext.scala | Scala | apache-2.0 | 2,088 |
/*
* The MIT License (MIT)
* <p>
* Copyright (c) 2017-2020
* <p>
* 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,... | amannocci/streamy | core/src/main/scala/io/techcode/streamy/util/parser/ByteStringParser.scala | Scala | mit | 5,416 |
package filodb.akkabootstrapper
import scala.collection.immutable.Seq
import scala.util.{Failure, Success}
import scala.util.control.NonFatal
import akka.actor.{Address, AddressFromURIString}
import akka.cluster.Cluster
import com.typesafe.scalalogging.StrictLogging
import scalaj.http.{Http, HttpResponse}
/** Seed n... | velvia/FiloDB | akka-bootstrapper/src/main/scala/filodb/akkabootstrapper/ClusterSeedDiscovery.scala | Scala | apache-2.0 | 3,407 |
package org.jetbrains.plugins.scala
package annotator
package element
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.psi._
import com.intellij.psi.util.PsiTreeUtil.{findCommonContext, findFirstContext}
import org.jetbrains.plugins.s... | JetBrains/intellij-scala | scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/element/ScReferenceAnnotator.scala | Scala | apache-2.0 | 19,830 |
package com.ibm.watson.developer_cloud.personality_insights.v2.model
import java.util.Date
import com.ibm.watson.developer_cloud.service.GenericModel
/**
* Created by Martin Harvan ([email protected]) on 20/03/16.
*/
case class ContentItem(charset: String, content: String, contentType: String, created: Da... | kane77/watson-scala-wrapper | src/main/scala/com/ibm/watson/developer_cloud/personality_insights/v2/model/ContentItem.scala | Scala | apache-2.0 | 520 |
package test.scala.co.skaphe.add.domain
import main.scala.co.skaphe.add.domain._
import org.scalacheck.Gen
import org.scalacheck.Prop._
import org.scalacheck.Properties
import org.scalacheck.Prop.forAll
object AddNumbersTest extends Properties("AddNumbersTest") {
// Generates numbers from 0 to 100 (both inclusive... | skaphe/math-micro-services | add/src/test/scala/co/skaphe/add/domain/AddNumbersTest.scala | Scala | mit | 1,031 |
package org.jetbrains.plugins.scala
package lang
package psi
package impl
package base
import com.intellij.lang.ASTNode
import com.intellij.psi._
import org.jetbrains.plugins.scala.extensions._
import org.jetbrains.plugins.scala.lang.psi.ScalaPsiUtil.SafeCheckException
import org.jetbrains.plugins.scala.lang.psi.api.S... | triggerNZ/intellij-scala | src/org/jetbrains/plugins/scala/lang/psi/impl/base/ScConstructorImpl.scala | Scala | apache-2.0 | 8,352 |
package org.jetbrains.plugins.scala.codeInspection.collections
import org.jetbrains.plugins.scala.codeInspection.InspectionBundle
/**
* @author Nikolay.Tropin
*/
class RedundantConversionTest extends OperationsOnCollectionInspectionTest{
override val inspectionClass: Class[_ <: OperationOnCollectionInspection] = ... | whorbowicz/intellij-scala | test/org/jetbrains/plugins/scala/codeInspection/collections/RedundantConversionTest.scala | Scala | apache-2.0 | 1,492 |
/*
* 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 ... | chbatey/killrweather | killrweather-app/src/it/scala/com/datastax/killrweather/NodeGuardianSpec.scala | Scala | apache-2.0 | 6,037 |
/*
* Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package com.lightbend.lagom.internal.javadsl.client
import javax.inject.Inject
import javax.inject.Provider
import javax.inject.Singleton
import akka.actor.ActorSystem
import com.lightbend.lagom.internal.client.CircuitBreakerConfig
import co... | ignasi35/lagom | service/javadsl/client/src/main/scala/com/lightbend/lagom/internal/javadsl/client/CircuitBreakerModule.scala | Scala | apache-2.0 | 1,138 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | synsys/spark | spark-streaming-camel_2.10/src/main/scala/com/synsys/org/apache/spark/streaming/camel/CamelUtils.scala | Scala | apache-2.0 | 7,528 |
package reductions
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner
import reductions.ParallelCountChange._
@RunWith(classOf[JUnitRunner])
class ParallelCountChangeSuite extends FunSuite {
test("countChange should return 0 for money < 0") {
def check(money: I... | yurii-khomenko/fpScalaSpec | c3w2reductions/src/test/scala/reductions/ParallelCountChangeSuite.scala | Scala | gpl-3.0 | 1,795 |
/*
* 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... | qiuxin2012/BigDL | spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/SoftPlus.scala | Scala | apache-2.0 | 3,457 |
/*
* 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 ... | dhruve/spark | core/src/test/scala/org/apache/spark/rpc/RpcAddressSuite.scala | Scala | apache-2.0 | 1,863 |
// Copyright (c) 2013 Aleksander Bielawski. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
package com.github.pabzdzdzwiagief.initialization
import scala.tools.nsc.Global
import com.github.pabzdzdzwiagief.initialization.{Trace => JavaTrace... | pabzdzdzwiagief/initialization | src/main/scala/com/github/pabzdzdzwiagief/initialization/Annotations.scala | Scala | bsd-2-clause | 4,729 |
Subsets and Splits
Filtered Scala Code Snippets
The query filters and retrieves a sample of code snippets that meet specific criteria, providing a basic overview of the dataset's content without revealing deeper insights.