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.github.cthulhu314.scalaba.persistance.files class NopFileRepository extends FileRepository { def create(file: Array[Byte]): Option[String] = { None } def delete(name: String): Boolean = { false } }
cthulhu314/scalaba
src/main/scala/com/github/cthulhu314/scalaba/persistance/files/NopFileRepository.scala
Scala
mit
227
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.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://...
sergius/monifu
monifu/shared/src/main/scala/monifu/reactive/Observable.scala
Scala
apache-2.0
103,583
import sbt.File import java.io.ByteArrayOutputStream import java.io.PrintStream import org.scalastyle._ import com.typesafe.config.ConfigFactory object StyleChecker { val maxResult = 100 class CustomTextOutput[T <: FileSpec](stream: PrintStream) extends Output[T] { // Use the parent class loader because sbt r...
giovannidoni/Scala-course-1
week6/project/StyleChecker.scala
Scala
gpl-3.0
2,616
import sbt._ class ShakesEMProject(info: ProjectInfo) extends DefaultProject(info) { override def compileOptions = Unchecked :: super.compileOptions.toList }
jpate/ShakesEM
project/build/Project.scala
Scala
gpl-3.0
164
package org.jetbrains.plugins.scala package lang.refactoring.extractTrait import com.intellij.refactoring.actions.ExtractSuperActionBase import com.intellij.lang.refactoring.RefactoringSupportProvider import org.jetbrains.plugins.scala.lang.refactoring.ScalaRefactoringSupportProvider /** * Nikolay.Tropin * 2014-05-...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/refactoring/extractTrait/ScalaExtractTraitAction.scala
Scala
apache-2.0
586
package price import enumspckg.AddOnType.AddOnType import enumspckg.ChargeType.ChargeType import enumspckg.MediaType.MediaType import enumspckg.OfferStatus.OfferStatus import enumspckg.PriceStatus.PriceStatus import org.joda.time.DateTime import settings.OfferSetting import utils.{UserMetaData, DateMetaData} /** * C...
hardmettle/slick-postgress-samples
tmp/price/GlobalPrice.scala
Scala
apache-2.0
1,161
/* * Copyright 2015 LG CNS. * * 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 t...
jahnaviancha/scouter
scouter.server/src/scouter/server/db/status/StatusWriter.scala
Scala
apache-2.0
1,954
package gsd.linux.stats import java.io.PrintStream import gsd.linux.cnf.{SATBuilder, DimacsReader} import gsd.linux.{Hierarchy, HierarchyAnalysis, KConfigParser} object HierarchyMain { def main(args: Array[String]) { if (args.size < 2) { System.err.println("Parameters: <exconfig file> <dimacs file> <outp...
scas-mdd/linux-variability-analysis-tools.fm-translation
src/main/scala/gsd/linux/stats/HierarchyMain.scala
Scala
gpl-3.0
1,101
package scaffvis.client.components import scaffvis.client.components.common.{GlyphIcon, ReusableCmps} import scaffvis.client.store.model.Model import scaffvis.shared.model.Scaffold import diode.data.{Failed, Pending, Ready} import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.prefix_<^._ object Footer {...
velkoborsky/scaffvis
client/src/main/scala/scaffvis/client/components/Footer.scala
Scala
gpl-3.0
2,132
/* * 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 ...
dbtsai/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
Scala
apache-2.0
16,706
/* * Copyright 2012 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/svaractor/synclayer/Cache.scala
Scala
apache-2.0
8,271
package iot.pood.integration.actors import akka.actor.Actor.Receive import com.typesafe.config.{Config, ConfigFactory} import akka.actor.{Actor, ActorLogging, ActorRef, Props} import iot.pood.base.actors.BaseActor import iot.pood.base.integration.IntegrationConfig.IntegrationConfig /** * Created by rafik on 31.7.20...
rafajpet/iot-pood
iot-pood-integration/src/main/scala/iot/pood/integration/actors/KafkaGuardian.scala
Scala
mit
2,193
package com.owtelse.models import java.io.File import scalaz.StreamT /** * Created by IntelliJ IDEA. * User: robertk */ trait SplatConfig { val propertyDirs:List[File] val templatesDirs:List[File] }
karlroberts/splat2
src/main/scala/com/owtelse/models/SplatConfig.scala
Scala
bsd-3-clause
208
/* * 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 ...
apache/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/physical/batch/BatchPhysicalAggRuleBase.scala
Scala
apache-2.0
9,278
package js.util import java.io.File import java.io.FileNotFoundException abstract class JsApp extends App { def processFile(file: File) def init(): Unit = () case class Config(debug: Boolean = false, eval: Boolean = true, files: List[File] = Nil) val usage = """JakartaScript interpreter...
mpgarate/ProgLang-Assignments
HW6/src/main/scala/js/util/JsApp.scala
Scala
mit
2,049
package com.twitter.finagle import org.jboss.netty.buffer.{ChannelBuffer => CB} private object ThriftMuxUtil { val role = Stack.Role("ProtocolRecorder") def bufferToArray(buf: CB): Array[Byte] = if (buf.hasArray && buf.arrayOffset == 0 && buf.readableBytes == buf.array().length) { buf.array() ...
lysu/finagle
finagle-thriftmux/src/main/scala/com/twitter/finagle/ThriftMuxUtil.scala
Scala
apache-2.0
1,105
package org.graphexecutor import bench.BenchControl import org.scalatest.FunSuite import org.scalatest.matchers.ShouldMatchers class BenchMarkTests extends FunSuite with ShouldMatchers { test("adding and removing nodes from the singleton controller") { BenchControl.clear() BenchControl.listBenchers shoul...
johanprinsloo/GraphExecutor
src/test/scala/org/graphexecutor/BenchMarkTests.scala
Scala
apache-2.0
3,083
package com.twitter.finagle.loadbalancer import com.twitter.finagle._ import com.twitter.finagle.client.{StackClient, StringClient} import com.twitter.finagle.param.Stats import com.twitter.finagle.server.StringServer import com.twitter.finagle.stats.{InMemoryHostStatsReceiver, InMemoryStatsReceiver} import com.twitte...
sveinnfannar/finagle
finagle-core/src/test/scala/com/twitter/finagle/loadbalancer/LoadBalancerFactoryTest.scala
Scala
apache-2.0
5,273
/* * 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
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/HashExpressionsSuite.scala
Scala
apache-2.0
28,182
package spire.laws.shadows import spire.algebra.IsIntegral import spire.laws.InvalidTestException import spire.math.NumberTag object Shadowing { def apply[A, S](f: A => S, g: S => Option[A]): Shadowing[A, S] = new Shadowing[A, S] { def toShadow(a: A): S = f(a) def fromShadow(s: S): Option[A] = g(s) } d...
adampingel/spire
laws/src/main/scala/spire/laws/shadows/Shadowing.scala
Scala
mit
1,093
package mesosphere.marathon package storage.repository import java.util.UUID import akka.Done import mesosphere.AkkaUnitTest import mesosphere.marathon.core.storage.repository.{ Repository, VersionedRepository } import mesosphere.marathon.core.storage.store.impl.cache.{ LazyCachingPersistenceStore, LazyVersionCaching...
natemurthy/marathon
src/test/scala/mesosphere/marathon/storage/repository/RepositoryTest.scala
Scala
apache-2.0
7,764
package com.sksamuel.elastic4s.testkit import com.sksamuel.elastic4s.embedded.LocalNode import com.sksamuel.elastic4s.http.{HttpClient, HttpExecutable} import com.sksamuel.elastic4s.{ElasticsearchClientUri, Executable, JsonFormat, TcpClient} import org.elasticsearch.{ElasticsearchException, ElasticsearchWrapperExcepti...
FabienPennequin/elastic4s
elastic4s-testkit/src/main/scala/com/sksamuel/elastic4s/testkit/DualClient.scala
Scala
apache-2.0
2,330
package java.io class FilterInputStream protected (protected val in: InputStream) extends InputStream { override def read(): Int = in.read() override def read(b: Array[Byte]): Int = read(b, 0, b.length) // this is spec! must not do in.read(b) override def read(b: Array[Byte], off: Int, len: Int): ...
cedricviaccoz/scala-native
javalib/src/main/scala/java/io/FilterInputStream.scala
Scala
bsd-3-clause
677
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * 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 app...
darroyocazorla/crossdata
core/src/main/scala/org/apache/spark/sql/crossdata/execution/auth/AuthDirectivesExtractor.scala
Scala
apache-2.0
8,814
package generators.v24 import generators.Helper._ import org.specs2.mutable.Specification import utils.WithApplication import scala.xml.XML /** * Tests to verify the generation of HTML * * */ class HtmlFunctionalCasesSpec extends Specification { val version = "/0.24" "The HTML generator should generate HT...
Department-for-Work-and-Pensions/RenderingService
test/generators/v24/HtmlFunctionalCasesSpec.scala
Scala
mit
1,396
package com.sfxcode.nosql.mongo.database import com.sfxcode.nosql.mongo.database.MongoPoolOptions._ case class MongoPoolOptions( maxConnectionIdleTime: Int = DefaultMaxConnectionIdleTime, maxSize: Int = DefaultMaxSize, minSize: Int = DefaultMinSize, maintenanceInitialDelay: Int = DefaultMaintenanceIni...
sfxcode/simple-mongo
src/main/scala/com/sfxcode/nosql/mongo/database/MongoPoolOptions.scala
Scala
apache-2.0
530
package nodes.stats import breeze.linalg.{*, DenseMatrix, DenseVector} import breeze.stats.distributions._ import breeze.numerics.cos import breeze.stats.distributions.Rand import org.apache.spark.rdd.RDD import utils.MatrixUtils import org.apache.commons.math3.random.MersenneTwister import workflow.Transformer /** ...
Vaishaal/ckm
keystone_pipeline/src/main/scala/nodes/stats/SeededCosineRandomFeatures.scala
Scala
apache-2.0
2,515
/*-------------------------------------------------------------------------*\\ ** ScalaCheck ** ** Copyright (c) 2007-2018 Rickard Nilsson. All rights reserved. ** ** http://www.scalacheck.org ** ** ...
martijnhoekstra/scala
src/scalacheck/org/scalacheck/util/Buildable.scala
Scala
apache-2.0
1,775
package edu.cmu.dynet class FastLstmBuilder private[dynet](private[dynet] val builder: internal.FastLSTMBuilder) extends RnnBuilder(builder) { def this() { this(new internal.FastLSTMBuilder()) } def this(layers: Long, inputDim: Long, hiddenDim: Long, model: ParameterCollection) { this(new internal.FastLSTM...
xunzhang/dynet
contrib/swig/src/main/scala/edu/cmu/dynet/FastLstmBuilder.scala
Scala
apache-2.0
378
package net.gnmerritt.tetris.parser import net.gnmerritt.tetris.engine.{Position, Piece} import net.gnmerritt.tetris.player.GameState /** * Parses out round-by-round information */ object UpdateParser extends GameParser { def update(curr: GameState, parts: Array[String]): GameState = { parts(2) match { ...
gnmerritt/aig-tetris
src/main/scala/net/gnmerritt/tetris/parser/UpdateParser.scala
Scala
mit
1,216
package mesosphere.marathon package core.deployment.impl import mesosphere.UnitTest import mesosphere.marathon.core.deployment.DeploymentPlan import mesosphere.marathon.state.PathId._ import mesosphere.marathon.state._ import mesosphere.marathon.test.GroupCreation class DeploymentPlanRevertTest extends UnitTest with ...
janisz/marathon
src/test/scala/mesosphere/marathon/core/deployment/impl/DeploymentPlanRevertTest.scala
Scala
apache-2.0
18,908
package backend object Currencies { val all: Array[String] = Array( "AUD/CAD", "AUD/CHF", "AUD/NZD", "AUD/USD", "CAD/CHF", "EUR/GBP", "EUR/CHF", "EUR/USD", "GBP/AUD", "GBP/CAD", "GBP/CHF", "GBP/USD", "USD/CAD", "USD/CHF", "NZD/USD") }
intelix/reactiveservices-examples
reactivefx/legacyservice-api/src/main/scala/backend/Currencies.scala
Scala
apache-2.0
250
package scdbpf import passera.unsigned._ import DbpfUtil.toHex import Tgi._ /** Represents Type, Group, Instance identifiers of `DbpfEntries`. * `Tgi` objects are immutable. * * Instances of this class may be obtained via the companion object's `apply` * method, for example: * * {{{ * val tgi = Tgi(0, 0...
memo33/scdbpf
src/main/scala/scdbpf/tgi.scala
Scala
mit
9,724
package fr.inria.spirals.actress.runtime import org.scalatest.BeforeAndAfterAll import org.scalatest.Matchers import org.scalatest.WordSpecLike import actress.sys.OSInfo import actress.sys.OSInfoBinding import akka.actor.ActorSystem import akka.actor.actorRef2Scala import akka.testkit.ImplicitSender import akka.testki...
fikovnik/actress-mrt
src/test/scala/fr/inria/spirals/actress/runtime/ActressServerSpec.scala
Scala
apache-2.0
2,383
/** * 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...
sujeetv/kafka
src/scala/ly/stealth/mesos/kafka/Cli.scala
Scala
apache-2.0
27,418
/* * 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 ...
oscarceballos/flink-1.3.2
flink-runtime/src/main/scala/org/apache/flink/runtime/messages/TaskControlMessages.scala
Scala
apache-2.0
6,086
object i0 { def i1(i2: Any) = i2 match { case i3: i4 => () => i3 case _ => i2 case _ => throw new Exception( (new _) } }
som-snytt/dotty
tests/fuzzy/4a5fb957ddf1b97d1e06db42848a3bceeb1e4b74.scala
Scala
apache-2.0
120
// Databricks notebook source // MAGIC %md // MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html) // COMMAND ---------- // MAGIC %md // MAGIC # Generate random graphs // MAGIC Here random graphs are generated, first using...
lamastex/scalable-data-science
dbcArchives/2021/000_0-sds-3-x-projects/student-project-21_group-GraphSpectralAnalysis/02_generate_graphs.scala
Scala
unlicense
5,806
/* * 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 ...
sh-cho/cshSpark
TestUtils.scala
Scala
apache-2.0
8,422
package models import java.util._; import javax.persistence._; import javax.validation.constraints._; import com.avaje.ebean.Model; import play.data.format._; import play.data.validation._; import models.user.UserSession import play.api.libs.json.Json import play.api.libs.json._ @Entity class User extends Model { @...
marcin-lawrowski/felicia
app/models/User.scala
Scala
gpl-3.0
1,139
// // Copyright 2013, Martin Pokorny <[email protected]> // // 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 org.truffulatree.scampi3 import scala.co...
mpokorny/scampi
src/main/scala/org/truffulatree/scampi3/GroupComponent.scala
Scala
mpl-2.0
6,088
/** * 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 * distributed ...
KevinLiLu/kafka
core/src/test/scala/integration/kafka/api/ClientIdQuotaTest.scala
Scala
apache-2.0
2,888
package debop4s.core.utils import scala.annotation.varargs /** * Hash 관련 툴 * * @author 배성혁 [email protected] * @since 2013. 12. 12. 오후 4:57 */ object Hashs { /** The constant NULL_VALUE. */ val NULL_VALUE: Int = 0 /** The constant ONE_VALUE. */ val ONE_VALUE: Int = 1 /** The constant FACTOR. ...
debop/debop4s
debop4s-core/src/main/scala/debop4s/core/utils/Hashs.scala
Scala
apache-2.0
989
/* * Copyright 2022 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/vat-registration-frontend
app/services/VatRegistrationService.scala
Scala
apache-2.0
5,341
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.it.libs import java.io.File import java.nio.ByteBuffer import java.nio.charset.{ Charset, StandardCharsets } import java.util import java.util.concurrent.TimeUnit import akka.stream.scaladsl.{ FileIO, Sink, Source } import akka....
ktoso/playframework
framework/src/play-integration-test/src/test/scala/play/it/libs/WSSpec.scala
Scala
apache-2.0
14,505
/** * Skinny framework for rapid web app development in Scala. * * Skinny is a full-stack web app framework, which is built on Scalatra and additional components are integrated. * To put it simply, Skinny framework's concept is Scala on Rails. Skinny is highly inspired by Ruby on Rails and it is optimized for susta...
BlackPrincess/skinny-framework
framework/src/main/scala/skinny/package.scala
Scala
mit
2,257
import scala.quoted.* object Macro { def impl[A : Type](using Quotes) = { import quotes.reflect.* val tpe/*: Type[? <: AnyKind]*/ = TypeRepr.of[A].asType '{ f[$tpe] } // error } def f[T <: AnyKind]: Unit = () }
dotty-staging/dotty
tests/neg-macros/i8871b.scala
Scala
apache-2.0
229
package org.falcon.streaming.filter import twitter4j.FilterQuery import org.falcon.util.Util /** * Project: falcon * Package: org.falcon.streaming.filter * * Author: Sergio Álvarez * Date: 02/2014 */ object FilterFactory { def createFilterQuery: FilterQuery = new FilterQuery().language(Util.language).track(Uti...
sergio-alvarez/falcon
src/main/scala/org/falcon/streaming/filter/FilterFactory.scala
Scala
apache-2.0
335
package com.github.gtache.lsp.requests /** * An object containing the Timeout for the various requests */ object Timeout { import Timeouts._ private var timeouts: Map[Timeouts, Int] = Timeouts.values().map(t => t -> t.getDefaultTimeout).toMap def getTimeoutsJava: java.util.Map[Timeouts, Integer] = { ...
gtache/intellij-lsp
intellij-lsp/src/com/github/gtache/lsp/requests/Timeout.scala
Scala
apache-2.0
1,522
/* * Scala LZW * Copyright (C) 2012, Wilfred Springer * * 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. * * Thi...
jaimeguzman/scala-lzw
src/main/scala/nl/flotsam/lzw/Node.scala
Scala
gpl-3.0
986
package me.axiometry.blocknet.entity import me.axiometry.blocknet._ trait Entity extends WorldLocatable with PreciseLocatable { def id: Int def x: Double def y: Double def z: Double def yaw: Double def pitch: Double def rider: Entity def riding: Entity def x_=(x: Double) def y_=(y: Double) def ...
Axiometry/Blocknet
blocknet-api/src/main/scala/me/axiometry/blocknet/entity/Entity.scala
Scala
bsd-2-clause
691
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-reactive/shared/src/test/scala/monix/reactive/internal/operators/WithLatestFrom3Suite.scala
Scala
apache-2.0
3,460
package slate package app import cats.implicits._ import japgolly.scalajs.react.extra.Reusability import qq.data.JSON import qq.data.JSON.{JSONModification, ModifiedJSON} import slate.app.refresh.BootRefreshPolicy case class SlateProgramConfig(input: JSON, bootRefreshPolicy: BootRefreshPolicy) // SlateProgramConfigM...
edmundnoble/slate
ui/src/main/scala/slate/app/SlateProgramConfig.scala
Scala
mit
2,849
/* * 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...
javadba/mlpoc
src/main/scala/com/blazedb/ml/util/TestingSparkContext.scala
Scala
apache-2.0
1,176
package inloopio.math import java.math.BigDecimal /** * Utilities for comparing numbers. * * Ported by Caoyuan Deng from Java version at org.apache.commons.math3.util */ object Precision { /** * Smallest positive number such that {@code 1 - EPSILON} is not * numerically equal to 1: {@value}. */ val E...
dcaoyuan/inloopio-libs
inloopio-math/src/main/scala/inloopio/math/Precision.scala
Scala
bsd-3-clause
16,908
package org.phillipgreenii.codedependencytracker import org.scalatest.{FeatureSpec, GivenWhenThen} import org.scalatest.concurrent.Timeouts import org.scalatest.time.SpanSugar._ class AppFunSpec extends FeatureSpec with GivenWhenThen with Timeouts { feature("App") { scenario("app should run") { Given("...
phillipgreenii/code-dependency-tracker
src/it/scala/org/phillipgreenii/codedependencytracker/AppFunSpec.scala
Scala
mit
415
import scala.reflect.runtime.universe._ import scala.tools.reflect.Eval object Test extends App { reify { List(1, 2, 3) match { case foo :: bar :: _ => println(foo * bar) case _ => println("this is getting out of hand!") } }.eval }
som-snytt/dotty
tests/disabled/macro/run/t5273_1_oldpatmat.scala
Scala
apache-2.0
257
package verdandi.ui.summary import verdandi.ui.swing.RichGridBagPanel import scala.swing.GridBagPanel._ import verdandi.model.SummaryModel import verdandi.ui.WidthStoringTable import scala.swing.BorderPanel import scala.swing.ScrollPane import verdandi.ui.swing.RichBorderPanel import scala.swing.Reactor import verdandi...
osebelin/verdandi
src/main/scala/verdandi/ui/summary/SummaryPanel.scala
Scala
gpl-3.0
3,139
/** * Em Java um membro de classe que não declarado * como public, protected ou private está visível * na package que contém a classe. Em Scala, você * ter o mesmo efeito com qualificadores. * O método seguinte é visível em usa própria package. */ package capitulo7.com.hortsmaan.impatient.people class Person {...
celioeduardo/scala-impatient
src/test/scala/capitulo07/VisibilidadeDaPackage.scala
Scala
mit
554
// Copyright (c) 2016 pishen // // 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 w...
pishen/annoy4s
src/main/scala/annoy4s/AnnoyLibrary.scala
Scala
apache-2.0
1,535
// goseumdochi: experiments with incarnation // Copyright 2016 John V. Sichi // // 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 // // Un...
lingeringsocket/goseumdochi
watchdog/src/main/scala/org/goseumdochi/android/watchdog/WatchdogErrorActivity.scala
Scala
apache-2.0
1,707
/* * 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, copy, modify, merge, publish, distribute, sublicense, and/or sell...
flyberry-capital/scala-slack
src/main/scala/com/flyberrycapital/slack/Methods/IM.scala
Scala
mit
6,411
package models.database.alias.service import org.squeryl.annotations._ case class NapsterArtist(@Column("id_napster_artist") id:Long, @Column("is_analysed") isAnalysed:Boolean)
haffla/stream-compare
app/models/database/alias/service/NapsterArtist.scala
Scala
gpl-3.0
178
package com.dzegel.DynamockServer.service import com.dzegel.DynamockServer.types.Response import org.scalatest.{BeforeAndAfterEach, FunSuite, Matchers} class ResponseStoreTests extends FunSuite with BeforeAndAfterEach with Matchers { private var responseStore: ResponseStore = _ private val expectationId1 = "1" ...
dzegel/DynamockServer
src/test/scala/com/dzegel/DynamockServer/service/ResponseStoreTests.scala
Scala
apache-2.0
3,310
package julienrf.forms import org.scalacheck.Properties object PresenterTest extends Properties("Presenter") { val p = new Presenter[Int, Option[Seq[String]]] { def render(field: Field[Int]): Option[Seq[String]] = field.value } property("transform") = { def transform[A, B](presenter: Presenter[A, B], ...
julienrf/play-forms
play-forms/src/test/scala/julienrf/forms/PresenterTest.scala
Scala
mit
908
package cpup.poland.parser object TokenMatching { trait Matcher { def check(tok: Lexer.Token): Boolean } object MNone extends Matcher { def check(tok: Lexer.Token) = false } object MAll extends Matcher { def check(tok: Lexer.Token) = true } case class MToken(matchToken: Lexer.Token) extends Matcher { ...
CoderPuppy/poland-scala
src/main/scala/cpup/poland/parser/TokenMatching.scala
Scala
mit
1,487
import org.fusesource.scalate._ class ScalateSample { def layout(): String = { val bindings = Map( "name" -> List("Scala", "Java") ) val engine = new TemplateEngine() engine.layout("sample.jade", bindings) } }
grimrose/shibuya-java-05-5
src/test/scala/ScalateSample.scala
Scala
mit
240
package org.openurp.edu.grade.course.domain.impl import java.util.Date import org.openurp.base.model.Semester import org.openurp.edu.base.model.{ Course, Student } import org.openurp.edu.grade.course.domain.{ CourseGradeProvider, GpaPolicy, GpaStatService, MultiStdGpa } import org.openurp.edu.grade.course.model.{ Cou...
openurp/edu-core
grade/core/src/main/scala/org/openurp/edu/grade/course/domain/impl/DefaultGpaStatService.scala
Scala
gpl-3.0
3,422
package genetic.string import java.util.Random import genetic.genetic.Metric import genetic.util.Util import java.util import genetic.genetic.{Genetic, Metric} class GeneticString(targetString: Array[Char], heuristic: Array[Char] => Double, crossover: (Array[Char], Array[Char...
NightRa/AILab
Genetic/src/main/scala/genetic/string/GeneticString.scala
Scala
apache-2.0
1,200
package tholowka.diz.terms import org.scalatest.FunSpec import tholowka.diz.loader.ResourceLoader import java.io.FileNotFoundException class ResourceLoaderTest extends FunSpec { describe("** A ResourceLoader") { it("can load a file as a Stream") { // note: the root is the root of the project ...
tholowka/diz
src/test/scala/tholowka/diz/ResourceLoaderTest.scala
Scala
mit
710
package scalacookbook.chapter09 /** * Created by liguodong on 2016/7/24. */ object AReadExample { def main(args: Array[String]) { driver } /** * A "driver" function to test Newton's method. * Start with (a) the desired f(x) and f'(x) equations(开始希望f(x) 和 f'(x)相等), * (b) an initial guess(最初的猜测) an...
liguodongIOT/java-scala-mix-sbt
src/main/scala/scalacookbook/chapter09/AReadExample.scala
Scala
apache-2.0
1,815
package me.yingrui.segment.hmm import org.junit.Assert import org.junit.Test import me.yingrui.segment.util.SerializeHandler import java.io.File class TrieNodeTest { var filename = "test_trie.dat" @Test def should_insert_ngram_and_add_count() { val trie = new Trie() trie.insert(List[Int...
yingrui/mahjong
lib-segment/src/test/scala/me/yingrui/segment/hmm/TrieNodeTest.scala
Scala
gpl-3.0
2,402
/* * Copyright 2014–2020 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/sbt-slamdata
core/src/main/scala/slamdata/ManagedVersions.scala
Scala
apache-2.0
2,787
package ddd.support.domain.protocol import ddd.support.domain.event.DomainEvent case class ViewUpdated(event: DomainEvent) extends Receipt
pawelkaczor/ddd-leaven-akka
src/main/scala/ddd/support/domain/protocol/ViewUpdated.scala
Scala
mit
141
/** * This file is part of the TA Buddy project. * Copyright (c) 2014 Alexey Aksenov [email protected] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Global License version 3 * as published by the Free Software Foundation with the addition of t...
digimead/digi-TABuddy-desktop
part-logic/src/main/scala/org/digimead/tabuddy/desktop/logic/payload/marker/serialization/signature/api/XValidator.scala
Scala
agpl-3.0
3,328
package org.dbpedia.lookup.inputformat import org.semanticweb.yars.nx.parser.NxParser import java.io.InputStream import org.dbpedia.lookup.lucene.LuceneConfig import com.typesafe.config.ConfigFactory /** * Class to itereate over DBpedia NTriples dataset and * * * NOTICE: this file has been changed by Paolo Alb...
sisinflab/X-LOD-Lookup
src/main/scala/org/dbpedia/lookup/inputformat/DBpediaNTriplesInputFormat.scala
Scala
apache-2.0
2,353
package temportalist.origin.foundation.common.modTraits import temportalist.origin.foundation.common.registers.OptionRegister /** * * Created by TheTemportalist on 4/9/2016. * * @author TheTemportalist */ trait IHasOptions { def getOptions: OptionRegister }
TheTemportalist/Origin
src/foundation/scala/temportalist/origin/foundation/common/modTraits/IHasOptions.scala
Scala
apache-2.0
273
/* * MilmSearch is a mailing list searching system. * * Copyright (C) 2013 MilmSearch Project. * * 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 any...
mzkrelx/milm-search-core
src/test/scala/org/milmsearch/core/api/MLResourceSpec.scala
Scala
gpl-3.0
6,025
package fla package walks import scalaz._ import Scalaz._ import spire.math.Interval import spire.implicits._ import cilib._ object RandomProgressiveManhattanWalk { def apply(domain: NonEmptyList[Interval[Double]], steps: Int, stepSize: Double) = walk(domain, steps, stepSize) val walk: WalkGenerator = ...
cirg-up/fla
walks/src/main/scala/fla/walks/RandomProgressiveManhattanWalk.scala
Scala
apache-2.0
1,362
package lmxml package template package test import java.io.File import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers class TemplateTest extends FlatSpec with ShouldMatchers { val base = """ html head title [title] body div #content [rest] div #footer p "&copy; Philip Cali" is unes...
philcali/lmxml
template/src/test/scala/template.scala
Scala
mit
2,292
/* * 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 ...
michalsenkyr/spark
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaContinuousReadSupport.scala
Scala
apache-2.0
10,256
package com.cloudray.scalapress.plugin.form.section import javax.persistence.{ManyToOne, Entity, Table, JoinColumn} import com.cloudray.scalapress.plugin.form.{FormDao, Form} import com.cloudray.scalapress.section.Section import scala.beans.BeanProperty import com.cloudray.scalapress.plugin.form.controller.renderer.Fo...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/plugin/form/section/FormSection.scala
Scala
apache-2.0
978
/* * #%L * Core runtime for OOXOO * %% * Copyright (C) 2006 - 2017 Open Design Flow * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
richnou/ooxoo-core
ooxoo-core/src/main/scala/com/idyria/osi/ooxoo/model/writers/FilesWriter.scala
Scala
agpl-3.0
1,992
package com.rasterfoundry.api.project import com.rasterfoundry.akkautil.PaginationDirectives import com.rasterfoundry.akkautil.{Authentication, CommonHandlers} import com.rasterfoundry.api.utils.queryparams.QueryParametersCommon import com.rasterfoundry.common._ import com.rasterfoundry.common.color._ import com.raste...
raster-foundry/raster-foundry
app-backend/api/src/main/scala/project/ProjectLayerRoutes.scala
Scala
apache-2.0
11,298
package mm4s.examples.status import java.util.UUID import akka.actor.{Actor, ActorLogging, ActorRef} import mm4s.api.{Post, Posted} import mm4s.bots.api.{Bot, BotID, Ready} import mm4s.examples.status.StatusBot._ import net.codingwell.scalaguice.ScalaModule import scala.collection.mutable class StatusBot extends A...
jw3/mm4s-examples
statusbot/src/main/scala/mm4s/examples/status/StatusBot.scala
Scala
apache-2.0
2,873
package ru.biocad.ig.alicont.algorithms /** * Created with IntelliJ IDEA. * User: pavel * Date: 27.11.13 * Time: 23:16 */ object AlgorithmType extends Enumeration { type AlgorithmType = Value val GLOBAL, LOCAL, SEMIGLOBAL = Value val AFFINE_GLOBAL, AFFINE_LOCAL, AFFINE_SEMIGLOBAL = Value def affine : Lis...
zmactep/igcat
lib/ig-alicont/src/main/scala/ru/biocad/ig/alicont/algorithms/AlgorithmType.scala
Scala
bsd-2-clause
474
package uk.gov.gds.ier.step import uk.gov.gds.ier.controller.routes._ import play.api.mvc.Call import play.api.mvc.Results.Redirect case class GoTo[T](redirectCall:Call) extends Step[T] { def isStepComplete(currentState: T): Boolean = false def nextStep(currentState: T): Step[T] = this val routing = Routes( ...
michaeldfallen/ier-frontend
app/uk/gov/gds/ier/step/GoTo.scala
Scala
mit
430
/* * 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 ...
starpit/openwhisk
common/scala/src/main/scala/org/apache/openwhisk/core/database/AttachmentSupport.scala
Scala
apache-2.0
7,065
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * 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 app...
fjsc/sparta
sdk/src/main/scala/com/stratio/sparta/sdk/pipeline/filter/Filter.scala
Scala
apache-2.0
4,346
package edu.gemini.too.event.service import edu.gemini.pot.sp._ import edu.gemini.pot.spdb.{ProgramEvent, ProgramEventListener, IDBTriggerAction, IDBDatabaseService} import edu.gemini.spModel.core.Site import edu.gemini.spModel.gemini.obscomp.SPProgram import edu.gemini.spModel.obs.{ObservationStatus, ObsSchedulingRep...
arturog8m/ocs
bundle/edu.gemini.too.event/src/main/scala/edu/gemini/too/event/service/TooService.scala
Scala
bsd-3-clause
4,718
package org.opennetworkinsight import org.opennetworkinsight.netflow.FlowWordCreation import org.scalatest.{FlatSpec, Matchers} class FlowWordCreationTest extends FlatSpec with Matchers { // Replace ports in index 10 and 11 val rowSrcIPLess = Array("2016-05-05 12:59:32", "2016", "5", "5", "12", "59", "32", "0",...
Open-Network-Insight/oni-ml
src/test/scala/org/opennetworkinsight/FlowWordCreationTest.scala
Scala
apache-2.0
10,363
/* * Copyright (C) 2005, The Beangle Software. * * 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 your option) any later version. * * This...
beangle/webmvc
core/src/main/scala/org/beangle/webmvc/view/tag/CoreModels.scala
Scala
lgpl-3.0
2,439
/* * Copyright (C) 2005, The Beangle Software. * * 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 your option) any later version. * * This...
beangle/webmvc
core/src/main/scala/org/beangle/webmvc/view/tag/html.scala
Scala
lgpl-3.0
2,831
package xyz.discretezoo.web.db.v1 import xyz.discretezoo.web.db.ZooPostgresProfile.api._ case class GraphVT(zooid: Int, vtIndex: Option[Int]) class GraphsVT(tag: Tag) extends Table[GraphVT](tag, "graph_cvt") { def zooid: Rep[Int] = column[Int]("zooid", O.PrimaryKey) def vtIndex = column[Option[Int]]("vt_index")...
DiscreteZOO/DiscreteZOO-web
src/main/scala/xyz/discretezoo/web/db/v1/GraphVT.scala
Scala
mit
410
/* * 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/nn/SpatialCrossMapLRNSpec.scala
Scala
apache-2.0
6,137
import annotation.experimental @main @experimental def run(): Unit = f @experimental def f = 2
lampepfl/dotty
tests/pos-custom-args/no-experimental/i13848.scala
Scala
apache-2.0
97
package com.owtelse.parsers import org.specs2.{ScalaCheck, Specification} import org.specs2.matcher.ThrownExpectations import java.lang.String import org.scalacheck.Gen /** * Created by IntelliJ IDEA. * User: robertk */ trait CliParserTest extends Specification with ScalaCheck with ThrownExpectations { def r...
karlroberts/splat2
src/test/scala/com/owtelse/parsers/CliParserTest.scala
Scala
bsd-3-clause
8,604
/* * InputNeuron.scala * textnoise * * Created by Илья Михальцов on 2014-05-13. * Copyright 2014 Илья Михальцов. All rights reserved. */ package com.morphe.noise.backend.neurals import scala.collection._ class InputNeuron (input: Double, connections: GenSeq[Double], currentLayer: Int, index: Int) extends Neu...
morpheby/textnoise
src/main/scala/com/morphe/noise/backend/neurals/InputNeuron.scala
Scala
gpl-2.0
759
package org.thp.cortex.controllers import javax.inject.{ Inject, Singleton } import scala.collection.immutable import scala.concurrent.{ ExecutionContext, Future } import scala.concurrent.duration.{ DurationLong, FiniteDuration } import scala.util.Random import play.api.{ Configuration, Logger } import play.api.http...
CERT-BDF/Cortex
app/org/thp/cortex/controllers/StreamCtrl.scala
Scala
agpl-3.0
4,476
package chandu0101.scalajs.react.components.util object InputTypes { val NUMBER = "number" val TEXT = "text" val SEARCH = "search" val EMAIL = "email" val TEL = "tel" val DATE = "date" }
mproch/scalajs-react-components
core/src/main/scala/chandu0101/scalajs/react/components/util/InputTypes.scala
Scala
apache-2.0
207