Dataset Viewer
Auto-converted to Parquet Duplicate
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 mesosphere.marathon.tasks import java.io._ import javax.inject.Inject import mesosphere.marathon.Protos._ import mesosphere.marathon.state.{ PathId, StateMetrics, Timestamp } import mesosphere.marathon.{ Main, MarathonConf } import com.codahale.metrics.MetricRegistry import org.apache.log4j.Logger import org....
14Zen/marathon
src/main/scala/mesosphere/marathon/tasks/TaskTracker.scala
Scala
apache-2.0
9,521
package com.sutol.scalgen.proj2 // Created by sutol on 14/04/2016. Part of scalgen. object proj2 { def main(args: Array[String]) { val pop = new Pop2() var num1: Int = 0 var num2: Int = 0 while (pop.step()) { num1 = pop.getBest.genes & 1111 num2 = pop.getBes...
sutolll/scalgen
proj2/proj2.scala
Scala
mit
450
package parser.json.detail import parser.json.GenericJsonParser import play.api.libs.json.JsValue import models.Skimbo import parser.json.providers.FacebookWallParser object FacebookPostDetails extends GenericJsonParser { override def asSkimbo(json: JsValue): Option[Skimbo] = FacebookWallParser.asSkimbo(json) ...
Froggies/Skimbo
app/parser/json/detail/FacebookPostDetails.scala
Scala
agpl-3.0
370
package contege.seqgen import scala.collection.JavaConversions._ import scala.collection.mutable.Set import scala.collection.mutable.Map import java.util.ArrayList import contege.ClassReader import contege.Random import contege.Atom import contege.ConstructorAtom import contege.MethodAtom import contege.Stats import c...
michaelpradel/ConTeGe
src/contege/seqgen/GetParamTask.scala
Scala
gpl-2.0
4,110
/* * Copyright 2007-2010 WorldWide Conferencing, LLC * * 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...
wsaccaco/lift
examples/example/src/main/scala/net/liftweb/example/lib/WebServices.scala
Scala
apache-2.0
3,312
package lore.compiler.feedback import lore.compiler.core.Position import lore.compiler.semantics.NamePath import lore.compiler.types.{TupleType, Type} object CoreFeedback { object Trait { case class NotFound(name: NamePath) extends Feedback.Error(Position.unknown) { override def message: String = s"The co...
marcopennekamp/lore
compiler/src/lore/compiler/feedback/CoreFeedback.scala
Scala
mit
1,525
package com.greencatsoft.d3.selection import scala.scalajs.js import scala.scalajs.js.UndefOr import org.scalajs.dom.Node trait DataDriven[A <: Node, B <: Selection[A, B]] extends js.Object { import DataDriven._ def data[T](): js.Array[T] = js.native def data[T](values: js.Array[T]): BoundSelection[A, B] = ...
sid-kap/scalajs-d3
src/main/scala/com/greencatsoft/d3/selection/DataDriven.scala
Scala
apache-2.0
1,301
package com.twitter.inject.thrift.integration.http_server import com.google.inject.{Provides, Singleton} import com.twitter.finagle.thrift.ClientId import com.twitter.inject.thrift.ThriftClientModule import com.twitter.test.thriftscala.EchoService import com.twitter.util.Future import com.twitter.conversions.time._ o...
tom-chan/finatra
inject/inject-thrift-client/src/test/scala/com/twitter/inject/thrift/integration/http_server/EchoThriftClientModule.scala
Scala
apache-2.0
658
package org.woodyalen202 /** * Created by lichuansun on 14-6-24. */ trait TestTrait { }
woodyalen202/based-scala
src/main/java/org/woodyalen202/TestTrait.scala
Scala
mit
92
/* Copyright 2009-2021 EPFL, Lausanne */ package stainless package extraction package object inlining { object trees extends Trees with inox.ast.SimpleSymbols { case class Symbols( functions: Map[Identifier, FunDef], sorts: Map[Identifier, ADTSort] ) extends SimpleSymbols with StainlessAbstract...
epfl-lara/stainless
core/src/main/scala/stainless/extraction/inlining/package.scala
Scala
apache-2.0
1,567
package de.htwg.zeta.server.model.modelValidator.validator.rules.metaModelIndependent import de.htwg.zeta.common.models.project.instance.elements.NodeInstance import de.htwg.zeta.server.model.modelValidator.validator.rules.SingleNodeRule /** * This file was created by Tobias Droth as part of his master thesis at HTW...
Zeta-Project/zeta
api/server/app/de/htwg/zeta/server/model/modelValidator/validator/rules/metaModelIndependent/NodesAttributesNamesNotEmpty.scala
Scala
bsd-2-clause
748
/* * Copyright (c) 2014-2021 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...
monix/monix
monix-execution/shared/src/test/scala/monix/execution/AsyncQueueSuite.scala
Scala
apache-2.0
10,251
import leon.instrumentation._ import leon.collection._ import leon.lang._ import ListSpecs._ import leon.annotation._ import conctrees.ConcTrees._ object Conqueue { def max(x: BigInt, y: BigInt): BigInt = if (x >= y) x else y def abs(x: BigInt): BigInt = if (x < 0) -x else x sealed abstract class ConQ[T] { ...
epfl-lara/leon
testcases/lazy-datastructures/ManualnOutdated/Conqueue-Manual.scala
Scala
gpl-3.0
9,047
/* * This file is part of Kiama. * * Copyright (C) 2014-2015 Anthony M Sloane, Macquarie University. * * Kiama 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 ...
solomono/kiama
library/src/org/kiama/relation/RelationLike.scala
Scala
gpl-3.0
6,257
package chrome.utils import chrome.app.runtime.Runtime import chrome.app.runtime.bindings.{LaunchData, Request} trait ChromeApp { def main(args: Array[String]): Unit = { Runtime.onLaunched.listen(onLaunched) Runtime.onRestarted.listen((_) => onRestart) Runtime.onEmbedRequested.listen(onEmbedRequested) ...
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/utils/ChromeApp.scala
Scala
mit
463
/* scala-stm - (c) 2009-2011, Stanford University, PPL */ package scala.concurrent.stm package skel import scala.collection.mutable private[stm] object HashTrieTMap { def empty[A, B]: TMap[A, B] = new HashTrieTMap(Ref(TxnHashTrie.emptyMapNode[A, B]).single) def newBuilder[A, B]: mutable.Builder[(A, B), TMap[...
nbronson/scala-stm
src/main/scala/scala/concurrent/stm/skel/HashTrieTMap.scala
Scala
bsd-3-clause
2,913
package im.mange.shoreditch import im.mange.shoreditch.api._ import im.mange.shoreditch.handler.HttpMethodPartialFunctions._ import im.mange.shoreditch.handler.{Request, Route, ShoreditchHandler} case class Shoreditch(base: String = "shoreditch", version: String, longName: ...
alltonp/shoreditch
src/main/scala/im/mange/shoreditch/Shoreditch.scala
Scala
apache-2.0
1,688
package assets.mustache.overseas import uk.gov.gds.ier.transaction.overseas.lastUkAddress.LastUkAddressLookupMustache import uk.gov.gds.ier.test._ class LastUkAddressLookupTemplateTest extends TemplateTestSuite with LastUkAddressLookupMustache { it should "properly render" in { running(FakeApplication()) {...
michaeldfallen/ier-frontend
test/assets/mustache/overseas/LastUkAddressLookupTemplateTest.scala
Scala
mit
1,230
/** * Copyright 2010-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
jedesah/scalatest-website
app/examples/FunSpecExamples.scala
Scala
apache-2.0
14,454
package io.buoyant.namerd.iface import com.twitter.conversions.DurationOps._ import com.twitter.finagle._ import com.twitter.finagle.naming.NameInterpreter import com.twitter.logging.Level import com.twitter.util._ import io.buoyant.namer.{ConfiguredDtabNamer, DelegateTree, Metadata, RichActivity} import io.buoyant.na...
linkerd/linkerd
namerd/iface/control-http/src/test/scala/io/buoyant/namerd/iface/HttpNamerEndToEndTest.scala
Scala
apache-2.0
7,095
/* * The MIT License * * Copyright (c) 2016 Fulcrum Genomics * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
fulcrumgenomics/fgbio
src/test/scala/com/fulcrumgenomics/vcf/HapCutToVcfTest.scala
Scala
mit
16,626
package com.adamsresearch.mbs.fanniemae.monthlyfiles import java.text.SimpleDateFormat import java.util.Date /** * Created by wma on 2/2/15. * * TODO: parse these COBOL PICTURE elements... */ class FixedRateQuartile case class FixedQuartilesHeader(quartileRecordType: String, pool...
waynemadams/mbs-parser
src/main/scala/com/adamsresearch/mbs/fanniemae/monthlyfiles/FixedRateQuartile.scala
Scala
apache-2.0
1,973
package org.adridadou.ethereum.propeller.values import org.adridadou.ethereum.propeller.keystore.AccountProvider import org.ethereum.crypto.ECKey import org.scalacheck.Arbitrary._ import org.scalacheck.Prop._ import org.scalatest.check.Checkers import org.scalatest.{Matchers, _} import scala.util.{Failure, Success, T...
adridadou/eth-propeller-core
src/test/scala/org/adridadou/ethereum/propeller/values/EthAccountTest.scala
Scala
apache-2.0
1,735
package is.hail.methods import is.hail.HailContext import is.hail.annotations._ import is.hail.expr.ir._ import is.hail.expr.ir.functions.MatrixToTableFunction import is.hail.types.physical.{PCanonicalString, PCanonicalStruct, PFloat64, PInt64, PString, PStruct} import is.hail.types.virtual.{TFloat64, TStruct} import ...
danking/hail
hail/src/main/scala/is/hail/methods/IBD.scala
Scala
mit
12,135
/* * 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/main/scala/com/intel/analytics/bigdl/dllib/nn/Pack.scala
Scala
apache-2.0
4,126
package play.api.libs.ws import org.specs2.mutable._ import org.specs2.mock.Mockito import com.ning.http.client.{ Response => AHCResponse, Cookie => AHCCookie } import java.util object WSSpec extends Specification with Mockito { "WS" should { "support several query string values for a parameter" in { ...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play/src/test/scala/play/api/libs/ws/WSSpec.scala
Scala
mit
2,223
/* * 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 ...
brad-kaiser/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FlatMapGroupsWithStateExec.scala
Scala
apache-2.0
13,642
package philosophy.finallytagless import language.higherKinds import scala.scalajs.js.JSApp import org.scalajs.dom._ import cats.{~>, Id, Monad} import cats.syntax.flatMap._ import cats.syntax.functor._ import philosophy.{Graph, wikiapi, RFuture} import philosophy.RFuture._ import philosophy.IO._ import philosophy.cr...
vtoro/getting-to-philosophy
src/main/scala/philosophy/finallytagless/finallytagless.scala
Scala
mit
5,194
package com.avsystem.scex package compiler import com.avsystem.scex.parsing.PositionMapping /** * Created: 14-11-2013 * Author: ghik */ case class ExpressionDef( profile: ExpressionProfile, template: Boolean, setter: Boolean, expression: String, header: String, contextType: String, resultType: Str...
AVSystem/scex
scex-core/src/main/scala/com/avsystem/scex/compiler/ExpressionDef.scala
Scala
mit
476
package justin.db.replica.read import java.util.UUID import justin.db.Data import justin.db.actors.protocol.{StorageNodeFailedRead, StorageNodeFoundRead, StorageNodeNotFoundRead} import justin.db.consistenthashing.NodeId import justin.db.storage.GetStorageProtocol import justin.db.storage.PluggableStorageProtocol.{Da...
speedcom/JustinDB
justin-core/src/test/scala/justin/db/replica/read/ReplicaLocalReaderTest.scala
Scala
apache-2.0
2,273
/* * Copyright 2014-2020 Rik van der Kleij * * 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...
rikvdkleij/intellij-haskell
src/main/scala/intellij/haskell/psi/stubs/index/HaskellAllNameIndex.scala
Scala
apache-2.0
1,186
package com.xah.chat.ui.activities import android.app.Activity import android.os.Bundle import android.support.v7.app.ActionBarActivity import android.view.{View, Window} import com.xah.chat.comms.{XService, XServiceConnection} import android.content.{Context, Intent} import com.xah.chat.framework.TraitActivityContext...
lemonxah/xaHChat
src/main/scala/com/xah/chat/ui/activities/BaseActivity.scala
Scala
mit
1,172
/* * 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 ...
ahnqirage/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/csv/CSVInferSchemaSuite.scala
Scala
apache-2.0
7,719
/* * 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 ...
vadopolski/ignite
modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheScanCommand.scala
Scala
apache-2.0
6,231
/** * 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...
lindong28/kafka
core/src/main/scala/kafka/log/LogCleanerManager.scala
Scala
apache-2.0
27,975
/* * 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/DelayBySelectorSuite.scala
Scala
apache-2.0
2,375
End of preview. Expand in Data Studio

Dataset Card for "github-code-scala"

This contains just the scala data in github-code-clean. There are 817k samples with a total download size of 1.52GB.

Downloads last month
281