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) 2009-2014 Typesafe Inc. <http://www.typesafe.com> * */ package play.api.libs.ws.ssl.debug import java.lang.reflect.Field import java.security.PrivilegedExceptionAction import play.api.libs.ws.ssl.MonkeyPatcher /** * A privileged action that will find relevant classes containing static fin...
jyotikamboj/container
pf-framework/src/play-ws/src/main/scala/play/api/libs/ws/ssl/debug/FixLoggingAction.scala
Scala
mit
914
/* * 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...
jenniew/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/ops/PadSpec.scala
Scala
apache-2.0
2,313
/* * 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 ...
ravipesala/incubator-carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/dblocation/DBLocationCarbonTableTestCase.scala
Scala
apache-2.0
13,619
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO3 package io.scalaland.chimney.examples.pb.order @SerialVersionUID(0L) final case class OrderLine( item: _root_.scala.Option[io.scalaland.chimney.examples.pb.order.Item] = _root_.scala.None, quantit...
scalalandio/chimney
protos/src/test/scala/io.scalaland.chimney.examples.pb.order/OrderLine.scala
Scala
apache-2.0
350
package im.actor.server.session import scala.concurrent.duration._ import scala.concurrent.{ Await, Future, blocking } import scala.util.Random import akka.actor._ import akka.contrib.pattern.DistributedPubSubExtension import akka.stream.ActorMaterializer import akka.testkit.TestProbe import akka.util.Timeout import ...
jamesbond12/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/session/BaseSessionSpec.scala
Scala
mit
8,378
package auth import io.flow.customer.v0.models.Customer import io.flow.customer.v0.{Client => CustomerClient} import lib.ResolvedToken import scala.concurrent.{ExecutionContext, Future} trait CustomerAuthHelper extends LoggingHelper { def customerClient: CustomerClient def requestHeadersUtil: RequestHeadersUtil...
flowvault/proxy
app/auth/CustomerAuthHelper.scala
Scala
mit
2,204
package net.quasardb.spark.rdd import java.sql.Timestamp import scala.collection.JavaConversions._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ import scala.concurrent.{Await, Future} import odelay.Timer import net.quasardb.qdb._ import net.quasardb.qdb.ts.{Table, Writ...
bureau14/qdb-spark-connector
src/main/scala/net/quasardb/spark/rdd/Util.scala
Scala
bsd-2-clause
3,224
/* Copyright 2009-2018 EPFL, Lausanne */ package inox package solvers package unrolling import utils._ import scala.collection.generic.CanBuildFrom trait Templates extends TemplateGenerator with FunctionTemplates with LambdaTemplates with QuantificationTemplates with EqualityTemplates wit...
romac/inox
src/main/scala/inox/solvers/unrolling/Templates.scala
Scala
apache-2.0
34,118
package views.html package user import controllers.routes import lila.api.Context import lila.app.templating.Environment._ import lila.app.ui.ScalatagsTemplate._ import lila.user.User object bots { def apply(users: List[User])(implicit ctx: Context) = { val title = s"${users.size} Online bots" val sorte...
luanlv/lila
app/views/user/bots.scala
Scala
mit
2,947
package services import actors.EventStreamActor import akka.actor.ActorSystem import akka.stream.Materializer import akka.stream.impl.StreamSupervisor.Materialize import com.appliedscala.events.LogRecord import dao.Neo4JReadDao import model.ServerSentMessage import play.api.Configuration /** * QuestionEventConsumer...
getArtemUsername/play-and-events
app/services/QuestionEventConsumer.scala
Scala
mit
1,294
package com.glowingavenger.plan.model.action import org.scalatest.{Matchers, FlatSpec} import org.sat4j.scala.Logic._ import com.glowingavenger.plan.model.state.BeliefState class LogicActionSpec extends FlatSpec with Matchers { behavior of "Logic Action" val state = BeliefState('A & 'B & ~'C) val satState = B...
dreef3/glowing-avenger
src/test/scala/com/glowingavenger/plan/model/action/LogicActionSpec.scala
Scala
mit
2,753
package io.coding.me.m2p2.core.internal.model import org.scalatest.WordSpecLike import org.scalatest.Matchers import java.io.File /** * @author tim@coding-me.com */ class MavenMetadataTest extends WordSpecLike with Matchers { "A valid Maven metadata file" should { "not return a failure when parsing a file" ...
coding-me/maven-p2-view
core/src/test/scala/io/coding/me/m2p2/core/internal/model/MavenMetadataTest.scala
Scala
mit
709
package org.workcraft.plugins.cpog.scala trait View [T] { }
tuura/workcraft-2.2
CpogsPlugin/src/main/scala/org/workcraft/plugins/cpog/scala/View.scala
Scala
gpl-3.0
62
package com.tribbloids.spookystuff import com.tribbloids.spookystuff.execution.NodeKey import org.apache.spark.rdd.RDD import org.apache.spark.sql.catalyst.expressions.GenericRowWithSchema package object row { type Data = Map[Field, Any] //TODO: change to SQL Row implicit val Data: Map.type = Map type Squash...
tribbloid/spookystuff
core/src/main/scala/com/tribbloids/spookystuff/row/package.scala
Scala
apache-2.0
983
package eu.henkelmann.actuarius import collection.immutable.StringOps import collection.mutable.ListBuffer import xml.{Group, Node, Text, NodeSeq, Elem => XmlElem, TopScope, XML} import xml.parsing.XhtmlParser import util.parsing.combinator.{Parsers, RegexParsers} /** * A parser for the markdown language. * Works o...
KimStebel/actuarius
src/main/scala/eu/henkelmann/actuarius/BlockParsers.scala
Scala
bsd-3-clause
17,815
package org.odfi.indesign.core.module.ui.www.layout import java.net.URI import org.odfi.indesign.core.module.ui.www.external.ExternalBuilder import com.idyria.osi.vui.html.HTMLNode import org.w3c.dom.html.HTMLElement trait UILayoutBuilder extends ExternalBuilder { override def externalAdd(targetNode: HTMLNode[HT...
opendesignflow/indesign
indesign-wwwui/src/main/scala/org/odfi/indesign/core/module/ui/www/layout/UILayoutBuilder.scala
Scala
gpl-3.0
544
/** * scala-relaxng * For all details and documentation: * http://github.com/inkling/scala-relaxng * * Copyright 2011 Inkling Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
inkling/scala-relaxng
src/test/scala/CheckSpec.scala
Scala
apache-2.0
1,359
/** * Copyright: Copyright (C) 2016, Jaguar Land Rover * License: MPL-2.0 */ package org.genivi.sota.core import akka.actor.ActorSystem import akka.event.Logging import akka.http.scaladsl.util.FastFuture import cats.Show import eu.timepit.refined.string._ import org.genivi.sota.common.DeviceRegistry import org.geni...
PDXostc/rvi_sota_server
core/src/main/scala/org/genivi/sota/core/UpdateService.scala
Scala
mpl-2.0
7,070
package mesosphere.marathon.metrics import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicInteger import com.codahale.metrics.{Gauge, MetricRegistry} import com.google.inject.Inject import mesosphere.marathon.metrics.Metrics.{ Histogram, Meter, Timer, Counter } import org.aopalliance.intercept...
ss75710541/marathon
src/main/java/mesosphere/marathon/metrics/Metrics.scala
Scala
apache-2.0
3,840
package edu.umass.ciir.strepsi.distribution import edu.umass.ciir.strepsi.{LogTools, SeqTools} /** * User: dietz * Date: 8/30/13 * Time: 12:09 PM */ case class Distribution[Elem](nonzeroDistr: Seq[(Elem, Double)], zeroEntries: Int = 0, zeroEntryNames: PartialFunction[Int, Elem] = Se...
laura-dietz/strepsi-tools
src/main/scala/edu/umass/ciir/strepsi/distribution/Distribution.scala
Scala
apache-2.0
8,709
package com.seanshubin.utility.exec import scala.concurrent.{ExecutionContext, Future} class ExecutionContextFutureRunner(implicit executionContext: ExecutionContext) extends FutureRunner { override def runInFuture[T](block: => T): Future[T] = { Future { block } } }
SeanShubin/utility
exec/src/main/scala/com/seanshubin/utility/exec/ExecutionContextFutureRunner.scala
Scala
unlicense
287
/* * 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 ...
gengliangwang/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Scala
apache-2.0
203,305
/* * @author Philip Stutz * * Copyright 2014 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.apache.org/licenses/LICENSE-2....
jacqueslk/triplerush-filter
src/test/scala/com/signalcollect/triplerush/sparql/OrderByPlusLimitSpec.scala
Scala
apache-2.0
3,920
package rpgboss.editor.uibase import SwingUtils._ import scala.swing._ import rpgboss.model.event.IntParameter import rpgboss.model.event.EventParameterValueType import rpgboss.model.HasName import scala.swing.event.MouseClicked import rpgboss.model.event.EventParameter import rpgboss.lib.Utils import rpgboss.model.ev...
toastythought/rpgboss
editor/src/main/scala/rpgboss/editor/uibase/ParameterFields.scala
Scala
agpl-3.0
4,198
package com.snppts.backend import org.scalatra._ import com.mongodb.casbah.Imports._ import scala.util.control.Exception._ class GroupMongoController(mongoCollection: MongoCollection) extends ScalatraServlet { val groupId = "group_id" /** * Insert a new group into the database. * curl -i -H "Accept: applica...
andreacipriani/snppts-backend
snppts-backend/src/main/scala/com/snppts/backend/mongodb/GroupMongoController.scala
Scala
mit
1,413
package scala.c.engine class ArrayStagingArea extends StandardTest { "An 1d array addressing check" should "print the correct results" in { val code = """ void main() { int x[2]; printf("%d\\n", &x[1] - x); }""" checkResults(code) } "2d array pointer arithmetic" should "pri...
bdwashbu/cEngine
tests/scala/c/engine/arrays.scala
Scala
apache-2.0
8,732
/* * 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 ...
Intel-bigdata/OAP
oap-native-sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
Scala
apache-2.0
121,259
package edu.berkeley.cs.amplab import spark.RDD import scala.collection.immutable.TreeMap /** * The main analysis body is in StoredSampleAnalysisGeneric. * It should be used for all the live analysis, plotting, and speed testing classes. */ package object carat { val CARAT = "Carat" val UUIDString = "uuId" ...
lagerspetz/TimeSeriesSpark
src/edu/berkeley/cs/amplab/carat/package.scala
Scala
bsd-3-clause
1,789
/* * Copyright 2001-2016 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...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/FixtureContextSpec.scala
Scala
apache-2.0
1,635
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller, Robert Davis * @version 1.2 * @date Sun Sep 16 14:09:25 EDT 2012 * @see LICENSE (MIT style license file). * * This file contains classes for Hessenburg reductions, finding Eigenvalues * and comp...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/linalgebra/Eigen.scala
Scala
mit
15,006
package sample.hello import akka.actor.{Props, ActorLogging, Actor} import akka.routing.{Broadcast, RoundRobinRoutingLogic, Router, ActorRefRoutee} import scala.collection.mutable import scala.collection.mutable.HashMap import scala.util.control.Breaks._ /** * Created by root on 3/3/15. */ class FragFeaturesCalc e...
SteliosKats/Plagiarism_Detection_System_Using_Akka
src/main/scala/sample/hello/FragFeaturesCalc.scala
Scala
cc0-1.0
6,645
package poly.collection /** * Represents a sequence whose elements are sorted. * @author Tongfei Chen * @since 0.1.0 */ trait SortedSeq[T] extends Seq[T] with SortedIterable[T] { self => override def filter(f: T => Boolean): SortedSeq[T] = super[Seq].filter(f).asIfSorted(self.elementOrder) override def filte...
ctongfei/poly-collection
core/src/main/scala/poly/collection/SortedSeq.scala
Scala
mit
457
package io.iohk.ethereum.blockchain.sync import akka.util.ByteString import io.iohk.ethereum.blockchain.sync.fast.SyncStateScheduler.SyncResponse import io.iohk.ethereum.domain.{Account, Address, Blockchain, BlockchainImpl} import io.iohk.ethereum.ledger.InMemoryWorldStateProxy import io.iohk.ethereum.mpt.MerklePatric...
input-output-hk/etc-client
src/test/scala/io/iohk/ethereum/blockchain/sync/StateSyncUtils.scala
Scala
mit
4,014
package monocle.function import monocle.MonocleSuite import scalaz.std.string._ import scalaz.{IMap, OneAnd} class IndexExample extends MonocleSuite { test("index creates an Optional from a Map, IMap to a value at the index") { (Map("One" -> 1, "Two" -> 2) applyOptional index("One") getOption) shouldEqual Som...
NightRa/Monocle
example/src/test/scala/monocle/function/IndexExample.scala
Scala
mit
2,273
package models case class Whereabouts(location: String = "", other: Option[String] = None) case class PaymentFrequency(frequency: String = "", other: Option[String] = None) { def stringify = frequency + " " + other.getOrElse("") } case class PensionPaymentFrequency(frequency: String, other: Option[String] = None)...
Department-for-Work-and-Pensions/ClaimCapture
c3/app/models/WithOther.scala
Scala
mit
475
/* sbt -- Simple Build Tool * Copyright 2010 Mark Harrah */ package sbt import Predef.{ Map, Set, implicitly } // excludes *both 2.10.x conforms and 2.11.x $conforms in source compatible manner. import sbt.internal.util.{ Cache, HList, HNil, InputCache, LinePosition, LineRange, NoPosition, RangePosition, SourcePos...
dansanduleac/sbt
main/actions/src/main/scala/sbt/CacheIvy.scala
Scala
bsd-3-clause
15,600
package mesosphere.marathon import mesosphere.chaos.http.HttpConf import org.apache.mesos.Protos.{ FrameworkID, FrameworkInfo, Credential } import org.apache.mesos.{ SchedulerDriver, MesosSchedulerDriver } import com.google.protobuf.ByteString import java.io.{ FileInputStream, IOException } /** * Wrapper class for...
14Zen/marathon
src/main/scala/mesosphere/marathon/MarathonSchedulerDriver.scala
Scala
apache-2.0
2,756
/* * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
iandow/bookfast
app/models/Availabilities.scala
Scala
mit
2,605
package funsets import org.scalatest.FunSuite import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner /** * This class is a test suite for the methods in object FunSets. To run * the test suite, you can either: * - run the "test" command in the SBT console * - right-click the file in eclipse and...
panga/progfun-assignments
funsets/src/test/scala/funsets/FunSetSuite.scala
Scala
mit
4,903
package org.allenai.plugins.archetypes import org.allenai.plugins.NodeJsPlugin import org.allenai.plugins.NodeJsPlugin.autoImport._ import org.allenai.plugins.DeployPlugin import com.typesafe.sbt.packager import com.typesafe.sbt.SbtNativePackager.Universal import com.typesafe.sbt.packager.MappingsHelper import com.ty...
ryanai3/sbt-plugins
src/main/scala/org/allenai/plugins/archetypes/WebappPlugin.scala
Scala
apache-2.0
1,770
/** * 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/main/scala/kafka/server/KafkaRequestHandler.scala
Scala
apache-2.0
15,527
import sbt._ import Keys._ object BuildSettings { val VERSION = "0.1" lazy val basicSettings = seq( version := VERSION, organization := "org.hip", description := "Most Simple Discrete Event Simulation Engine for the JVM", startYear := Some(2014), sc...
MagnusAk78/ms-dese-jvm
project/BuildSettings.scala
Scala
mit
629
/* * Databinder: a simple bridge from Wicket to Hibernate * Copyright (C) 2006 Nathan Hamblen nathan@technically.us * * 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 * vers...
n8han/Databinder-for-Wicket
databinder-dispatch-components/src/main/scala/net/databinder/dispatch/components/ConnectionErrorPage.scala
Scala
lgpl-2.1
2,190
package eu.gruchala.typelevel.full object B_DependentTypes { val desc = """ |A dependent type is a type that depends on a value. |In languages like Java we use types (and define them upfront) |to give us information about values and to put constraints on them. |With Dependent Types we ar...
leszekgruchala/typelevel-programming-scala
src/main/scala/eu/gruchala/typelevel/full/B_DependentTypes.scala
Scala
mit
949
package chk.commons.util import scala.concurrent.Future import scala.language.implicitConversions import scala.reflect.ClassTag trait AnyUtils { implicit class AnyRefOps[T <: AnyRef](underlying: T) { /** * Check if the instance is null * * @return true if null, false otherwise. */ def...
chainkite/chk-commons
core/src/main/scala/chk/commons/util/AnyUtils.scala
Scala
mit
1,823
package io.vamp.operation.sla import java.time.OffsetDateTime import akka.actor._ import io.vamp.common.akka.IoC._ import io.vamp.common.akka._ import io.vamp.model.artifact.DeploymentService.Status.Phase.Initiated import io.vamp.model.artifact._ import io.vamp.model.event.{ Event, EventQuery, TimeRange } import io.v...
magneticio/vamp
operation/src/main/scala/io/vamp/operation/sla/EscalationActor.scala
Scala
apache-2.0
8,170
package io.prediction.examples.experimental.trimapp import io.prediction.controller.PPreparator import io.prediction.data.storage.Event import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.rdd.RDD /* class Preparator extends PPreparator[TrainingData, PreparedData] { ...
ch33hau/PredictionIO
examples/experimental/scala-parallel-trim-app/src/main/scala/Preparator.scala
Scala
apache-2.0
527
/* * 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 ...
andrewor14/iolap
sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
Scala
apache-2.0
46,442
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
hengyicai/OnlineAggregationUCAS
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HivePlanTest.scala
Scala
apache-2.0
1,255
package com.conekta import play.api.libs.json._ import play.api.libs.functional.syntax._ case class Charge( id: String, createdAt: Int, status: String, currency: String, description: String, referenceId: Option[String], failureCode: Option[String], failureMessage: Option[String], amount: Int, paym...
Wirwing/conekta-scala
src/main/scala/com/conekta/Charge.scala
Scala
apache-2.0
1,903
package uk.gov.dvla.vehicles.dispose.gatling import io.gatling.core.Predef._ import scala.language.postfixOps import scala.concurrent.duration._ import Chains._ object Scenarios { val dispose_start_to_finish = scenario("Single vehicle disposal from start to finish") .exec(chain_setup_trader_details) ...
dvla/vehicles-online
gatling-tests/src/test/scala/uk/gov/dvla/vehicles/dispose/gatling/Scenarios.scala
Scala
mit
1,175
object Literals { //unicode escapes don't get expanded in comments def comment = "comment" //\\u000A is the bomb //unicode escapes work in string def inString = "\\u000A" def inTripleQuoted = """\\u000A""" def inRawInterpolation = raw"\\u000A" def inRawTripleQuoted = raw"""\\u000A""" def inChar = '\\u00...
dotty-staging/dotty
tests/run/t3220-3.scala
Scala
apache-2.0
3,285
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-index-api/src/main/scala/org/locationtech/geomesa/index/index/z3/XZ3IndexKeySpace.scala
Scala
apache-2.0
11,885
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.cosmos.spark trait AccountDataResolver { def getAccountDataConfig(configs : Map[String, String]): Map[String, String] }
Azure/azure-sdk-for-java
sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/AccountDataResolver.scala
Scala
mit
240
/* Copyright 2009-2016 EPFL, Lausanne */ object Sequencing6 { def f(x1: Int, x2: Int, x3: Int): Int = { require(x1 == 6 && x2 == 12 && x3 == 11) x3 } def test(): Int = { var x = 5 f( {x = x + 1; x}, {x = x * 2; x}, {x = x - 1; x} ) x } ensuring(res => res == 11) ...
epfl-lara/leon
src/test/resources/regression/verification/xlang/valid/Sequencing6.scala
Scala
gpl-3.0
322
/* * Copyright (c) 2016-2018 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
snowplow/iglu
0-common/schema-ddl/src/main/scala/com.snowplowanalytics/iglu.schemaddl/jsonschema/Linter.scala
Scala
apache-2.0
14,389
package scala package reflect package macros /** * <span class="badge badge-red" style="float: right;">EXPERIMENTAL</span> * * Attachments provide a way to associate custom metadata with symbols and trees. * * Along with `symbol` and `tpe`, which represent core metadata of trees, each tree * carries the `atta...
felixmulder/scala
src/reflect/scala/reflect/macros/Attachments.scala
Scala
bsd-3-clause
3,061
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
tkpanther/ignite
examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
Scala
apache-2.0
2,768
package scutil.gui import java.io._ import java.awt.dnd._ import java.awt.datatransfer._ import javax.swing._ import scutil.lang._ import scutil.jdk.implicits._ import scutil.platform._ import scutil.geom._ import scutil.gui.implicits._ object DndFileExport { // TODO using this is a Using def install(target:JCompo...
ritschwumm/scutil
modules/gui/src/main/scala/scutil/gui/DndFileExport.scala
Scala
bsd-2-clause
2,319
package chana.jpql.nodes import xtc.tree.Node class JPQLParser(rootNode: Node) { private var indentLevel = 0 protected var nodePath = List[Node]() protected var _errors = List[Node]() // root def visitRoot() = { JPQL(rootNode) } protected def enter(node: Node): Unit = { indentLevel += 1 n...
matthewtt/chana
src/main/scala/chana/jpql/nodes/JPQLParser.scala
Scala
apache-2.0
34,816
package de.frosner.broccoli.nomad.models import play.api.libs.functional.syntax._ import play.api.libs.json.{JsPath, Reads} import shapeless.tag import shapeless.tag.@@ /** * A partial model for a single allocations. */ final case class Allocation( id: String @@ Allocation.Id, jobId: String @@ Job.Id, ...
FRosner/cluster-broccoli
server/src/main/scala/de/frosner/broccoli/nomad/models/Allocation.scala
Scala
apache-2.0
1,113
/* * The MIT License (MIT) * * Copyright (c) 2017 Ángel Cervera Claudio * * 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 ...
angelcervera/osm4scala
core/src/main/scala/com/acervera/osm4scala/EntityIterator.scala
Scala
mit
2,452
package com.twitter.finagle.netty4.http.handler import com.twitter.finagle.netty4.http.util.UriUtils import com.twitter.finagle.netty4.http.util.UriUtils.InvalidUriException import io.netty.channel.ChannelHandler.Sharable import io.netty.channel.{ChannelHandlerContext, ChannelInboundHandlerAdapter} import io.netty.han...
luciferous/finagle
finagle-netty4-http/src/main/scala/com/twitter/finagle/netty4/http/handler/UriValidatorHandler.scala
Scala
apache-2.0
1,413
/* * Copyright 2015 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...
yeghishe/spark-kernel
kernel-api/src/main/scala/com/ibm/spark/utils/MultiClassLoader.scala
Scala
apache-2.0
4,895
package crm package sdk package messages import scala.util.control.Exception._ import dispatch._, Defaults._ import java.util.Date; import cats._ import data._ import cats.syntax._ import org.log4s._ import better.files._ import fs2._ import com.lucidchart.open.xtract._ import com.lucidchart.open.xtract.{ XmlReader, _...
aappddeevv/mscrm-soap-auth
src/main/scala/crm/sdk/messages/CrmXmlWriter.scala
Scala
apache-2.0
1,671
package net.liftmodules.fobobs4.snippet.FoBo import scala.xml.{NodeSeq} import net.liftweb.util._ import net.liftweb.common._ import net.liftweb.http._ import Helpers._ import net.liftweb.http.js._ import net.liftweb.http.js.JsCmds._ import net.liftmodules.fobobs4.lib.{BootstrapSH => sch} import net.liftweb.sitemap.{L...
karma4u101/FoBo
Bootstrap/Bootstrap4/TwBs-Bootstrap4-API/src/main/scala/net/liftmodules/fobobs4/snippet/FoBo/Bs4Comp.scala
Scala
apache-2.0
11,338
case class SomeType[A](a: A)
hmemcpy/milewski-ctfp-pdf
src/content/1.6/code/scala/snippet28.scala
Scala
gpl-3.0
28
package edu.gemini.ags.gems import edu.gemini.catalog.api.{MagnitudeConstraints, RadiusConstraint} import edu.gemini.spModel.core._ import edu.gemini.spModel.core.AngleSyntax._ import edu.gemini.spModel.gems.{GemsGuideProbeGroup, GemsGuideStarType} import edu.gemini.shared.util.immutable.ScalaConverters._ import edu.g...
spakzad/ocs
bundle/edu.gemini.ags/src/main/scala/edu/gemini/ags/gems/CatalogSearchCriterion.scala
Scala
bsd-3-clause
3,993
/* * 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/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/CP91.scala
Scala
apache-2.0
2,122
package com.lucidchart.threadflow.play import com.lucidchart.threadflow.FlowStore import _root_.play.api.mvc.RequestHeader class FlowFilter(store: FlowStore) extends ActionSideEffect[({type R[_] = RequestHeader})#R] { protected[this] def headerName = "X-Flow-Id" protected[this] def `do`[A](request: RequestHeade...
lucidsoftware/thread-flow
thread-flow-play/src/main/scala/com/lucidchart/threadflow/play/FlowFilter.scala
Scala
apache-2.0
388
package com.fsist.safepickle import org.scalatest.FunSuite class TreePickleWriterTest extends FunSuite { def writer = WrapperBackend.writer() def testWriting(value: Wrapper): Unit = { val written = writer.write(value).result() assert(value == written, "Survived roundtrip") } test("Write primitive va...
fsist/safepickle
src/test/scala/com/fsist/safepickle/TreePickleWriterTest.scala
Scala
apache-2.0
1,448
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/scala-httpclient-deprecated/generated/src/main/scala/org/openapitools/client/model/Pipeline.scala
Scala
mit
729
/* * 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 ...
andrewor14/iolap
sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcHadoopFsRelationSuite.scala
Scala
apache-2.0
2,178
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.linker /** Kind of module...
nicolasstucki/scala-js
linker/shared/src/main/scala/org/scalajs/linker/ModuleKind.scala
Scala
apache-2.0
1,280
package org.http4s package parser import cats.data.NonEmptyList import java.nio.charset.{Charset, StandardCharsets} import org.http4s._ import org.http4s.headers.Origin import org.http4s.internal.parboiled2._ trait OriginHeader { def ORIGIN(value: String): ParseResult[Origin] = new OriginParser(value).parse ...
aeons/http4s
core/src/main/scala/org/http4s/parser/OriginHeader.scala
Scala
apache-2.0
1,526
package org.photon.protocol package object dofus { implicit class SerializablesExt[T <: StringSerializable](val c: Seq[T]) extends AnyVal { def serialize(out: StringBuilder, sep: String = "", start: String = "", end: String = "") { out ++= start var first: Boolean = true for (s <- c) { if (first) first...
Emudofus/Photon
protocol/main/src/org/photon/protocol/dofus/package.scala
Scala
mit
1,123
/* * 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
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ExtractPythonUDFs.scala
Scala
apache-2.0
9,246
package io.mpjsons.impl.util.reflection import java.lang.reflect.Field import io.mpjsons.impl.JsonInnerException import io.mpjsons.impl.util.TypesUtil import scala.reflect.runtime.universe._ case class FieldWithTypeInfo(field: Field, tpe: Type, nullable: Boolean) /** * ReflectionUtilNoCache wrapper that caches r...
marpiec/mpjsons
src/main/scala/io/mpjsons/impl/util/reflection/ReflectionUtil.scala
Scala
apache-2.0
1,118
/* Copyright 2011 Ben Biddington 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 d...
ben-biddington/Coriander.OAuth
src/org/coriander/oauth/core/cryptography/keys/RsaPrivateKeyReader.scala
Scala
apache-2.0
2,089
package io.sqooba.oss.timeseries.archive import io.sqooba.oss.timeseries.TimeSeries import io.sqooba.oss.timeseries.immutable.TSEntry import org.scalatest.{FlatSpec, Matchers} class GorillaBlockSpec extends FlatSpec with Matchers { val tsDouble = TimeSeries( Seq( TSEntry(1, 200.03, 100), TSEntry(50...
Shastick/tslib
src/test/scala/io/sqooba/oss/timeseries/archive/GorillaBlockSpec.scala
Scala
mit
4,043
package ml.combust.mleap import sbt.Keys._ import sbt._ object MleapProject { lazy val aggregatedProjects: Seq[ProjectReference] = Seq(baseProject, tensor, tensorflow, bundleMl, bundleHdfs, core, runtime, xgboostRuntime, xgboostSpark, avro, sparkBase, sparkTestkit, s...
combust-ml/mleap
project/MleapProject.scala
Scala
apache-2.0
5,207
package com.github.tanacasino.nnp import org.scalatest._ class NNP10Spec extends FunSpec with Matchers with NNP10 { describe("Ninety-Nine Scala Problems") { // P01 (*) Find the last element of a list. describe("P01") { it("Find the last element of a list.") { last(List(1, 1, 2, 3, 5, 8)) sh...
tanacasino/learning-scala
src/test/scala/com/github/tanacasino/nnp/NNP10Spec.scala
Scala
mit
4,037
package filters import akka.stream.Materializer import javax.inject._ import models.Worker import play.api.Logger import play.api.libs.typedmap.{TypedKey, TypedMap} import play.api.mvc._ import services.WorkerStore import scala.concurrent.{ExecutionContext, Future} @Singleton class TokenAuthorizationFilter @Inject()...
kuhnuri/kuhnuri-queue
app/filters/TokenAuthorizationFilter.scala
Scala
apache-2.0
1,636
package com.tuplejump.calliope import org.scalatest.{BeforeAndAfterAll, FunSpec} import org.scalatest.matchers.{MustMatchers, ShouldMatchers} import java.nio.ByteBuffer import com.tuplejump.calliope.utils.RichByteBuffer import RichByteBuffer._ import org.apache.spark.SparkContext import Implicits._ import com.tupleju...
brenttheisen/calliope
src/test/scala/com/tuplejump/calliope/ThriftCassandraRDDSpec.scala
Scala
apache-2.0
2,425
package BIDMat class SparseMat[@specialized(Double,Float) T] (nr: Int, nc: Int, var nnz0:Int, var ir:Array[Int], val jc:Array[Int], val data:Array[T]) (implicit manifest:Manifest[T], numeric:Numeric[T]) extends Mat(nr, nc) { override def nnz = nnz0 /* * Bounds-checked matrix access */ def...
phlip9/BIDMat
src/main/scala/BIDMat/SparseMat.scala
Scala
bsd-3-clause
28,499
package org.jmespike.conf import java.awt.{BorderLayout, Dimension} import java.awt.Window._ import javax.swing._ import java.awt.event.{ActionEvent, ActionListener} import org.scalaprops.{Property, Bean, BeanListener} import org.scalaprops.exporter.JsonBeanExporter import java.io._ import net.miginfocom.swing.MigLayo...
zzorn/skycastle
src/main/scala/org/jmespike/conf/ConfEditor.scala
Scala
gpl-2.0
6,437
import com.trueaccord.proto.e2e.custom_types._ import com.trueaccord.proto.e2e.custom_types.CustomMessage.Weather import com.trueaccord.proto.e2e.CustomTypes.{CustomMessage => CustomMessageJava} import com.trueaccord.proto.e2e.CustomTypes.CustomMessage.{Weather => WeatherJava} import org.scalatest._ import com.trueacco...
eiennohito/ScalaPB
e2e/src/test/scala/CustomTypesSpec.scala
Scala
apache-2.0
4,166
package bifrost.scorexMod /** * Created by cykoz on 4/13/17. */ import bifrost.transaction.Transaction import bifrost.transaction.box.proposition.Proposition import bifrost.transaction.state.MinimalState.VersionTag import bifrost.{NodeViewComponent, NodeViewModifier, PersistentNodeViewModifier} import scala.util...
Topl/Project-Bifrost
src/main/scala/bifrost/scorexMod/GenericMinimalState.scala
Scala
mpl-2.0
1,619
package org.elastic.rest.scala.driver.utils import org.elastic.rest.scala.driver.RestBase.RestRequestException import org.elastic.rest.scala.driver.RestBaseImplicits._ import org.elastic.rest.scala.driver.RestBaseRuntimeTyped.{RuntimeStringToTypedHelper, RuntimeTypedToStringHelper} import scala.reflect.runtime....
Alex-At-Home/rest_client_library
rest_scala_core/jvm/src/main/scala/org/elastic/rest/scala/driver/utils/NoJsonRuntimeHelpers.scala
Scala
apache-2.0
3,537
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
shuliangtao/apache-camel-2.13.0-src
components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SEnrichDefinition.scala
Scala
apache-2.0
1,657
package streams import akka.actor.ActorSystem import akka.stream.scaladsl._ import com.typesafe.config.ConfigFactory import java.awt.{BorderLayout, EventQueue} import javax.swing.{BorderFactory, JFrame, WindowConstants} import javax.swing.UIManager._ import org.jfree.chart.ChartPanel import org.jfree.data.time.{Ti...
objektwerks/akka.streams
src/main/scala/streams/StreamingChartApp.scala
Scala
apache-2.0
2,370
/* * 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 ...
duynguyen/incubator-openwhisk
tests/src/test/scala/system/basic/WskRestUnicodePython2Tests.scala
Scala
apache-2.0
1,254
import sbt._ import com.typesafe.sbt.SbtScalariform import com.typesafe.sbt.SbtScalariform.ScalariformKeys object ScalariformSupport { lazy val formatSettings = SbtScalariform.scalariformSettings ++ Seq( ScalariformKeys.preferences in Compile := formattingPreferences, ScalariformKeys.preferences in Test ...
jrudolph/multi-scaladoc-browser
project/ScalariformSupport.scala
Scala
mit
663
package au.com.dius.pact.consumer.specs2 import java.util.concurrent.TimeUnit.MILLISECONDS import org.junit.Ignore import org.junit.runner.RunWith import org.specs2.mutable.Specification import org.specs2.runner.JUnitRunner import scala.concurrent.Await import scala.concurrent.duration.Duration //@RunWith(classOf[J...
DiUS/pact-jvm
consumer/specs2/src/test/scala/au/com/dius/pact/consumer/specs2/Issue219PactSpec.scala
Scala
apache-2.0
937
package controllers import play.api.mvc._ import play.api.libs.json.{JsObject, JsNull, Json} object Main extends Controller { def index = Action { implicit request => Ok(views.html.home()) } def ip = Action { request => Ok(Json.obj("origin" -> request.remoteAddress)) } def useragent = Action { re...
Rovak/play-httpbin
app/controllers/Main.scala
Scala
mit
2,806
package no.nextgentel.oss.akkatools.example.booking import java.util.UUID import java.util.concurrent.TimeUnit import akka.actor.Status.Failure import akka.actor.{ActorPath, ActorSystem, Props} import no.nextgentel.oss.akkatools.aggregate._ import scala.collection.mutable.ListBuffer import scala.concurrent.duration....
zapodot/akka-tools
examples/aggregates/src/main/scala/no/nextgentel/oss/akkatools/example/booking/Booking.scala
Scala
mit
3,122
/* * Copyright 2015 Heiko Seeberger * * 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...
jasonchaffee/akka-sse
akka-sse/src/main/scala/de/heikoseeberger/akkasse/package.scala
Scala
apache-2.0
823
package com.outr.arango import com.outr.arango.api.{APIIndex, APIIndexIndexHandle, APIIndexfulltext, APIIndexgeo, APIIndexpersistent, APIIndexttl} import com.outr.arango.api.model.{PostAPIIndexFulltext, PostAPIIndexGeo, PostAPIIndexPersistent, PostAPIIndexTtl} import io.youi.client.HttpClient import profig.JsonUtil i...
outr/arangodb-scala
driver/src/main/scala/com/outr/arango/ArangoIndex.scala
Scala
mit
1,639
package lila.shutup case class UserRecord( _id: String, /* pub: Option[List[PublicLine]], intentionally not mapped to DB */ puf: Option[List[Double]], tef: Option[List[Double]], prm: Option[List[Double]], prc: Option[List[Double]], puc: Option[List[Double]] ) { def userId = _id def re...
luanlv/lila
modules/shutup/src/main/model.scala
Scala
mit
1,758
/* * Copyright 2012-2013 Stephane Godbillon (@sgodbillon) and Zenexity * * 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...
maxime-gautre/ReactiveMongo
driver/src/main/scala/util/LazyLogger.scala
Scala
apache-2.0
2,000