conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Enable full compiler optimizations in JMH benchmarking.\n" }, { "from": "human", "value": "scalaHome := Some(file(\"../../build/pack\"))\nscalaVersion := \"2.11.8\"\nscalacOptions += \"-feature\"\n\nlazy val root = (project in file(\".\")).\n enablePlugins(JmhPlugi...
scala
chosen
[ { "from": "system", "value": "Upgrade to sbt-pgp 0.8.1 release.\n\nThe 0.8 had broken dependencies (on artifacts compiled against Scala 2.9)\nthat caused our dbuild process to fail. The 0.8.1 release is the latest\nstable release and has fixed dependencies.\n" }, { "from": "human", "value": "add...
scala
chosen
[ { "from": "system", "value": "Update sbt-mima-plugin to 1.1.1 in master\n" }, { "from": "human", "value": "addSbtPlugin(\"com.typesafe\" % \"sbt-mima-plugin\" % \"1.1.0\")\naddSbtPlugin(\"com.eed3si9n\" % \"sbt-buildinfo\" % \"0.11.0\")\naddSbtPlugin(\"org.xerial.sbt\" % \"sbt-sonatype\" % \"3.9...
scala
chosen
[ { "from": "system", "value": "Update call to deprecated api in scripted\n" }, { "from": "human", "value": "import java.util.concurrent.atomic.AtomicInteger\nimport sbt._, Keys._\n\nobject A extends AutoPlugin {\n object autoImport {\n lazy val foo = settingKey[String](\"Foo.\")\n }\n impor...
scala
chosen
[ { "from": "system", "value": "Add rev param in the test\n" }, { "from": "human", "value": "package org.http4s.headers\n\nimport org.http4s.MediaRange\n\nclass LinkSpec extends HeaderLaws {\n\n val link = \"\"\"</feed>; rel=\"alternate\"; type=\"text/*\"; title=\"main\"\"\"\"\"\n\n \"parse\" sh...
scala
chosen
[ { "from": "system", "value": "Clean up code a bit\n" }, { "from": "human", "value": "package bootstrap.liftweb\n\nimport net.liftweb.sitemap.{Menu, SiteMap}\nimport net.liftweb.sitemap.Loc._\nimport net.liftweb.widgets.flot._\nimport net.liftweb.common.{Loggable, Full}\nimport net.liftweb.http.{...
scala
chosen
[ { "from": "system", "value": "Implement rule 3.6\n- After the Subscription is cancelled, additional Subscription.request(long n) MUST be NOPs\n" }, { "from": "human", "value": "package com.softwaremill.react.kafka\n\nimport kafka.consumer.KafkaConsumer\nimport org.reactivestreams.{Subscription, ...
scala
chosen
[ { "from": "system", "value": "Update dependency to stable version\n" }, { "from": "human", "value": "name := \"service-manager\"\n\nlibraryDependencies ++= Seq(\n \"ch.qos.logback\" % \"logback-classic\" % \"1.0.7\",\n \"com.jcraft\" % \"jsch\" % \"0.1.49\",\n \"com.typesafe\" % \"config\" % ...
scala
chosen
[ { "from": "system", "value": "Fix a buf for scala 2.9\n" }, { "from": "human", "value": "// code-examples/Rounding/days-enumeration-script.scala\n\nobject WeekDay extends Enumeration {\n type WeekDay = Value\n val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value\n}\nimport WeekDay._\n\ndef isWorkingD...
scala
chosen
[ { "from": "system", "value": "Test Refined.unapply in pattern matching\n" }, { "from": "human", "value": "package eu.timepit.refined\n\nimport eu.timepit.refined.TestUtils.wellTyped\nimport eu.timepit.refined.api.Refined\nimport eu.timepit.refined.collection.NonEmpty\nimport org.scalacheck.Prop....
scala
chosen
[ { "from": "system", "value": "Add render benchmark and use better sample vnode\n" }, { "from": "human", "value": "package benchmarks\n\nimport co.technius.scalajs.mithril._\nimport japgolly.scalajs.benchmark._\nimport japgolly.scalajs.benchmark.gui._\nimport scala.scalajs.js\nimport org.scalajs...
scala
chosen
[ { "from": "system", "value": "Add a couple of Twitter example filters\n" }, { "from": "human", "value": "package eventscale.input.twitter\n\nimport akka.stream.actor.ActorConsumer\nimport akka.stream.actor.ActorConsumer.{ OnNext, MaxInFlightRequestStrategy, RequestStrategy }\nimport akka.actor.A...
scala
chosen
[ { "from": "system", "value": "Work around an IDEA implicit-resolution bug\n" }, { "from": "human", "value": "package com.socrata.http.server\n\nimport java.io.InputStreamReader\nimport java.nio.charset.Charset\nimport javax.activation.MimeType\n\nimport scala.collection.JavaConverters._\nimport ...
scala
chosen
[ { "from": "system", "value": "Add note on ITextModelResolverService getting renamed.\n" }, { "from": "human", "value": "package monaco\n\npackage services {\n\n import scala.scalajs.js\n import scala.scalajs.js.annotation.ScalaJSDefined\n import monaco.common.IReference\n import monaco.edito...
scala
chosen
[ { "from": "system", "value": "Make 3.3 the default source version\n" }, { "from": "human", "value": "package dotty.tools\npackage dotc\npackage config\n\nimport core.Decorators.*\nimport util.Property\n\nenum SourceVersion:\n case `3.0-migration`, `3.0`, `3.1` // Note: do not add `3.1-migration...
scala
chosen
[ { "from": "system", "value": "Update the comment for r += 1\n" }, { "from": "human", "value": "object Solution {\n \n def numOfRLargerThanK(n: Int, k: Long): Int = {\n var c = 1l\n var r = 0\n\n // deal with Long overflow\n while (r <= n / 2 && c / (r + 1) <= k / (n - r)) {\n ...
scala
chosen
[ { "from": "system", "value": "Upgrade to Akka HTTP 1.0-M2 and Akka 2.3.8\n" }, { "from": "human", "value": "import sbt._\n\nobject Version {\n val akka = \"2.3.7\"\n val akkaHttp = \"1.0-M1\"\n val scala = \"2.11.4\"\n val scalaCheck = \"1.11.3\"\n val scalaTest = \"2.2.2\"\n}...
scala
chosen
[ { "from": "system", "value": "Add template markers when replacing\n" }, { "from": "human", "value": "package com.productfoundry.play.hal\n\nimport play.api.mvc.Call\n\ncase class Link private(\n href: String,\n templatedOption: Option[Boolean] = None,\n typeOption: Option[String] = None,\n d...
scala
chosen
[ { "from": "system", "value": "Check Play version and display a warning\n" }, { "from": "human", "value": "package sbt\n\nimport Keys._\nimport jline._\n\nimport play.api._\nimport play.core._\n\nimport play.utils.Colors\n\nobject PlayProject extends Plugin with PlayExceptions with PlayKeys with ...
scala
chosen
[ { "from": "system", "value": "[BP] Remove assembly settings until Jenkins can download plugins - REVERT\n\ngit-svn-id: d9d935340129e626144eb3fe7cfd050cd27cf88a@4255 6bcde575-cb03-8b4d-b1e0-7a084bef6d9c\n" }, { "from": "human", "value": "name := \"csv-validator-core\"\n\nversion := \"1.0\"\n\norg...
scala
chosen
[ { "from": "system", "value": "Add more helpful error message about versioning information not being present in old-school workflows\n" }, { "from": "human", "value": "package ducttape.versioner\n\nimport ducttape.util.Files\nimport java.io.File\n\nclass WorkflowVersionHistory(val history: Seq[Wo...
scala
chosen
[ { "from": "system", "value": "Rename param name to be more meaningful\n" }, { "from": "human", "value": "package ch.usi.inf.l3.sana.ooj.ast.augmenters\n\nimport ch.usi.inf.l3.sana\nimport sana.primj.ast.BlockApi\nimport sana.tiny.symbols.Symbol\n\n\n\ntrait AugmentedBlock {\n\n def tree: BlockA...
scala
chosen
[ { "from": "system", "value": "Update netty-codec-http, netty-handler, ... to 4.1.50.Final\n" }, { "from": "human", "value": "import sbt._, Keys._\n\nobject Dependencies {\n val servletApiDep = \"javax.servlet\" % \"javax.servlet-api\" % \"3.1.0\" % \"provided\"\n\n val specs2Dep = Def.setting ...
scala
chosen
[ { "from": "system", "value": "Add new specs isolating Quote writing to Index\n\nAdded a specification isolating the case of writing a Quote's Document\nto the Index and some slight modifications to the existing controller\nwriting to Index spec\n" }, { "from": "human", "value": "package quotidia...
scala
chosen
[ { "from": "system", "value": "Use DevHttpErrorHandler to check if play.editor link gets rendered\n" }, { "from": "human", "value": "/*\n * Copyright (C) Lightbend Inc. <https://www.lightbend.com>\n */\n\npackage play.it.views\n\nimport play.api.Configuration\nimport play.api.Environment\nimport ...
scala
chosen
[ { "from": "system", "value": "Add some safety margin around a node-connecting line\n" }, { "from": "human", "value": "package edu.agh.mindmap.component\n\nimport android.view.View\nimport android.content.Context\nimport android.graphics.{Paint, Canvas, Color}\n\ncase class Arrow(x0: Int, y0: Int...
scala
chosen
[ { "from": "system", "value": "Fix for CLIENT_MULTI_RESULTS constant value\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Maurício Linhares\n *\n * Maurício Linhares licenses this file to you under the Apache License,\n * version 2.0 (the \"License\"); you may not use this file except i...
scala
chosen
[ { "from": "system", "value": "Remove a Test object; actually run loop()\n" }, { "from": "human", "value": "package edu.agh.mindmap.util\n\nimport java.io.{BufferedReader, InputStreamReader, File}\nimport edu.agh.mindmap.model.{MindNode, MindMap}\nimport java.util.zip.ZipFile\nimport scala.xml.{N...
scala
chosen
[ { "from": "system", "value": "Fix list of working queries\n" }, { "from": "human", "value": "package ingraph.tests\n\nimport org.scalatest.FunSuite\n\nclass BiValidationTest extends FunSuite {\n\n val testCases: Seq[LdbcSnbTestCase] = Seq(2, 4, 6, 7, 9, 12, 15, 17, 23, 24) map (new LdbcSnbTestC...
scala
chosen
[ { "from": "system", "value": "Include V470 in LAR Validity Engine\n" }, { "from": "human", "value": "package hmda.validation.engine.lar.validity\n\nimport hmda.model.fi.lar.LoanApplicationRegister\nimport hmda.validation.api.ValidationApi\nimport hmda.validation.engine.lar.LarCommonEngine\nimpor...
scala
chosen
[ { "from": "system", "value": "Add stub specs for Ingress\n" }, { "from": "human", "value": "package org.mediachain\nimport org.apache.tinkerpop.gremlin.orientdb.OrientGraph\nimport org.mediachain.Types._\nimport org.specs2.Specification\nimport gremlin.scala._\n\nobject IngressSpec extends Speci...
scala
chosen
[ { "from": "system", "value": "Fix a possible uncaught exception when errors occur while attempting to download remote content.\n" }, { "from": "human", "value": "package kantan.xpath\n\nimport java.net.URL\n\nimport org.xml.sax.InputSource\n\n/** [[XmlSource]] implementation anything that can be...
scala
chosen
[ { "from": "system", "value": "Fix jarjar path when referencing project\n" }, { "from": "human", "value": "import sbt._\nimport Keys._\n\nimport java.io.File\n\n/** A helper object for running Jar Jar Links.\n *\n * @author robertf\n */\nclass JarJarRunner(java: File, jarjar: File) {\n\tdef re...
scala
chosen
[ { "from": "system", "value": "Add bind 'CounterResolver' to an implementation\n" }, { "from": "human", "value": "package modules.counter.guice.modules\n\nimport akka.actor.{Actor, ActorSystem}\nimport com.google.inject.Provides\nimport com.google.inject.name.Names\nimport core.guice.injection.Gu...
scala
chosen
[ { "from": "system", "value": "Fix CI: Make test fail\n" }, { "from": "human", "value": "sealed trait P\ncase class PC1(a: String) extends P\ncase class PC2(b: Int) extends P\n\ndef Test = MatchTest.test(PC2(10): P)\n" }, { "from": "gpt", "value": "sealed trait P\ncase class PC1(a: St...
scala
chosen
[ { "from": "system", "value": "Change Item to items in url\n" }, { "from": "human", "value": "package notification.services\n\nimport play.api.Logger\nimport play.api.libs.ws.WSClient\nimport scala.concurrent.duration._\n\nimport scala.concurrent.{ExecutionContext, Future}\n\ntrait FastlyPurge {\...
scala
chosen
[ { "from": "system", "value": "Exclude 'id' field from 'Counter' 'GraphQL' scheme\n" }, { "from": "human", "value": "package modules.counter.graphql.schema\n\nimport akka.stream.ActorMaterializer\nimport core.graphql.GraphQLSchema\nimport javax.inject.Inject\nimport modules.counter.graphql.resolv...
scala
chosen
[ { "from": "system", "value": "Remove an un-needed null comparison.\n" }, { "from": "human", "value": "package tabulate.engine.opencsv\n\nimport java.io.{Reader, Writer}\n\nimport com.opencsv._\nimport tabulate.engine.{ReaderEngine, WriterEngine}\nimport tabulate.{CsvWriter, CsvReader, DecodeResu...
scala
chosen
[ { "from": "system", "value": "Add 'add' prefix to singular method names to reflect their behavior\n" }, { "from": "human", "value": "package com.sksamuel.elastic4s.searches.aggs\n\ntrait AbstractAggregation {\n type T <: AbstractAggregation\n def name: String\n def metadata: Map[String, AnyRe...
scala
chosen
[ { "from": "system", "value": "Load Before BoatCraft. This will enforce the matrix loads everything correctly.\n" }, { "from": "human", "value": "package k2b6s9j.BoatCraft.compatibility.vanilla\n\nimport cpw.mods.fml.common.Mod\nimport cpw.mods.fml.common.event.FMLPreInitializationEvent\nimport c...
scala
chosen
[ { "from": "system", "value": "Switch to new connection pool.\n" }, { "from": "human", "value": "package com.ftchinese.jobs.database\n\nimport java.sql.Connection\n\nimport com.zaxxer.hikari.HikariDataSource\n\n/**\n * Analytic database source\n * Created by GWB on 2014/12/11.\n */\nclass Analyti...
scala
chosen
[ { "from": "system", "value": "Fix the return type of the fixture\n" }, { "from": "human", "value": "package uk.ac.wellcome.platform.ingestor.fixtures\n\nimport com.sksamuel.elastic4s.http.HttpClient\nimport org.scalatest.Suite\nimport uk.ac.wellcome.monitoring.MetricsSender\nimport uk.ac.wellcom...
scala
chosen
[ { "from": "system", "value": "Fix null pointer exception when running --eval\n\nBecause DecreasesProcessor did not initialize its `trees` early enough,\na null pointer exception would be raised when attempting to combine\nthe `SymbolTransformer` it is wrapped in within `TerminationComponent#lowering`\ntoget...
scala
chosen
[ { "from": "system", "value": "Set preferred size for the tabbed pane (which controls the size of the whole frame)\n" }, { "from": "human", "value": "package org.talkingpuffin.ui\n\nimport org.talkingpuffin.Session\nimport swing.TabbedPane\n\nclass TopTabbedPane(val session: Session) extends Tabb...
scala
chosen
[ { "from": "system", "value": "transport: Implement HttpClient using Dispath HTTP library\n\nSigned-off-by: Harri Salokorpi <eefb23b8deb8c30dca252cd0ae751b67337dc69f@reaktor.fi>\nSigned-off-by: Karim Osman <94396faf6cc817be76165477038b3cfa832e89a4@reaktor.fi>\n" }, { "from": "human", "value": "pa...
scala
chosen
[ { "from": "system", "value": "Remove a type parameter that doesn't seem to do anything\n" }, { "from": "human", "value": "package com.twitter.scalding.serialization\n\nimport com.twitter.scalding._\n\nimport scala.language.experimental.{ macros => smacros }\n\n/**\n * RequiredBinaryComparators p...
scala
chosen
[ { "from": "system", "value": "Switch to pattern matching (codacy suggestion\n" }, { "from": "human", "value": "package com.holdenkarau.spark.testing\n\nimport org.apache.spark.SparkContext\nimport org.apache.spark.sql.SQLContext\n\nimport java.util.concurrent.atomic.AtomicReference\n\n/**\n * Ut...
scala
chosen
[ { "from": "system", "value": "Add hashing for User password\n" }, { "from": "human", "value": "package modules.user.graphql.resolvers\n\nimport com.google.inject.Inject\nimport modules.user.model.{RegisterUserInput, User, UserPayload}\nimport modules.user.repositories.UserRepo\n\nimport scala.co...
scala
chosen
[ { "from": "system", "value": "Throw error if SPARQL request did not answer normally\n" }, { "from": "human", "value": "package backend.services\n\nimport java.io.ByteArrayInputStream\nimport java.nio.charset.StandardCharsets\n\nimport org.apache.jena.query.ResultSetFactory\nimport org.apache.jen...
scala
chosen
[ { "from": "system", "value": "Use own error types in ZIO\n" }, { "from": "human", "value": "package zio\n\nimport scalaz.zio.{App, IO, Void}\nimport scalaz.zio.console._\n\nimport java.io.IOException\n\nobject Fibonacci extends App {\n\n sealed trait AppError\n\n case object NoneException exte...
scala
chosen
[ { "from": "system", "value": "Simplify the implementation of the twoColumnsToMap method\n" }, { "from": "human", "value": "package com.github.mrpowers.spark.daria.sql\n\nimport org.apache.spark.sql.DataFrame\n\nimport scala.reflect.runtime.universe._\nimport org.apache.spark.sql.functions._\n\ni...
scala
chosen
[ { "from": "system", "value": "Use ClassTag in place of ClassManifest" }, { "from": "human", "value": "/*\n * Copyright 2012-2016 Steve Chaloner\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You m...
scala
chosen
[ { "from": "system", "value": "Scalapbc: Add --throw to throw on error instead of invoking sys.exit\n\nThis makes ScalaPBC friendlier to tools which run it in the same JVM\nlike mvn.\n\nFor #162.\n" }, { "from": "human", "value": "package com.trueaccord.scalapb\n\nimport protocbridge.ProtocBridge...
scala
chosen
[ { "from": "system", "value": "Split trait into read and write side\n" }, { "from": "human", "value": "package almhirt.eventlog\r\n\r\nimport java.util.{ UUID => JUUID }\r\nimport org.joda.time.DateTime\r\nimport almhirt.core.Event\r\nimport almhirt.common.AlmFuture\r\n\r\ntrait EventLog {\r\n d...
scala
chosen
[ { "from": "system", "value": "Fix bug where actions are not being called\n" }, { "from": "human", "value": "package org.talkingpuffin.ui\n\nimport org.talkingpuffin.Session\nimport twitter4j.User\n\ntrait ActionProcessor {\n val session: Session\n \n def process[T](items: Seq[T], action: ((T)...
scala
chosen
[ { "from": "system", "value": "Fix invalid doc link in generic module [ci skip]\n" }, { "from": "human", "value": "package ciris\n\nimport ciris.generic.readers.GenericConfigReaders\n\n/**\n * Module using [[https://github.com/milessabin/shapeless shapeless]] for generic derivation of [[ConfigRe...
scala
chosen
[ { "from": "system", "value": "Update http4s-blaze-client, http4s-circe to 0.20.18\n" }, { "from": "human", "value": "scalacOptions := Seq(\n \"-deprecation\"\n)\n\n// For MimeLoader plugin. Dogfooding and hoping it doesn't clash with\n// our other sbt plugins.\nlibraryDependencies ++= List(\n ...
scala
chosen
[ { "from": "system", "value": "Update app console to use Database.DEFAULT\n" }, { "from": "human", "value": "name := \"raster-foundry-app\"\n\ninitialCommands in console := \"\"\"\n |import com.azavea.rf.utils.Config\n |import com.azavea.rf._\n |import com.azavea.rf.datamodel._\n |import com....
scala
chosen
[ { "from": "system", "value": "Add deprecated tag, and remind people to use the new propertyName member.\n" }, { "from": "human", "value": "/**\n * Copyright 2013 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli...
scala
chosen
[ { "from": "system", "value": "Stop faffing about with withSources().\n" }, { "from": "human", "value": "import sbt._\n\nclass Metrics(info: ProjectInfo) extends DefaultProject(info)\n with posterous.Publish\n with ma...
scala
chosen
[ { "from": "system", "value": "Add run method to the netty server.\n" }, { "from": "human", "value": "package org.http4s\npackage netty\n\nimport play.api.libs.iteratee.{Enumeratee, Concurrent, Done}\nimport org.http4s._\nimport com.typesafe.scalalogging.slf4j.Logging\nimport org.http4s.util.midd...
scala
chosen
[ { "from": "system", "value": "Fix broken scaladoc reference in tests category\n" }, { "from": "human", "value": "package org.jetbrains.plugins.scala\n\n// tests marked with these categories will be run as a separate step\n\n\ntrait SlowTests\n\ntrait DebuggerTests\n\ntrait ScalacTests\n\ntrait T...
scala
chosen
[ { "from": "system", "value": "Update specs2-core, specs2-html, ... to 4.8.0\n" }, { "from": "human", "value": "lazy val specs2Version = \"4.5.1\"\nlazy val catsVersion = \"1.6.0\"\n\nlibraryDependencies in Global ++=\n cats ++\n specs2\n\nresolvers ++= Seq(\n Resolver.sonatypeRepo(\"relea...
scala
chosen
[ { "from": "system", "value": "Remove explicit types for wrapped in examples\n\nI thought they were needed there, but they are not!\n" }, { "from": "human", "value": "package monocle.function\n\nimport monocle.MonocleSuite\nimport monocle.function.all.{ala, unwrapped, wrapped}\n\nimport scalaz.{@...
scala
chosen
[ { "from": "system", "value": "Use java.nio.file to work with files and paths\n" }, { "from": "human", "value": "package ml.combust.mleap.springboot\n\nimport TypeConverters._\nimport javax.annotation.PostConstruct\nimport org.slf4j.LoggerFactory\nimport ml.combust.mleap.pb\nimport org.springfram...
scala
chosen
[ { "from": "system", "value": "Use release version of scalajs-angular\n" }, { "from": "human", "value": "import org.scalajs.sbtplugin.ScalaJSPlugin.AutoImport._\nimport sbt._\n\nobject Dependencies\n{\n object apache {\n val commonsLang3=\"com.hynnet\" % \"commons-lang3\" % \"3.4\"\n }\n\n ...
scala
chosen
[ { "from": "system", "value": "autocommit: Update configuration to record version 0.0.1\n" }, { "from": "human", "value": "name := \"lib-reference\"\n\norganization := \"io.flow\"\n\nscalaVersion in ThisBuild := \"2.11.8\"\n\nlazy val root = project\n .in(file(\".\"))\n .settings(\n libraryD...
scala
chosen
[ { "from": "system", "value": "autocommit: Update configuration to record version 0.2.19\n" }, { "from": "human", "value": "import play.PlayImport.PlayKeys._\n\nname := \"lib-play\"\n\norganization := \"io.flow\"\n\nscalaVersion in ThisBuild := \"2.11.8\"\n\ncrossScalaVersions := Seq(\"2.11.8\")\...
scala
chosen
[ { "from": "system", "value": "autocommit: Update configuration to record version 0.1.5\n" }, { "from": "human", "value": "import com.github.retronym.SbtOneJar._\n\noneJarSettings\n\nname := \"api-build\"\n\norganization := \"io.flow\"\n\nscalaVersion in ThisBuild := \"2.11.8\"\n\nversion := \"0....
scala
chosen
[ { "from": "system", "value": "autocommit: Update configuration to record version 0.2.83\n" }, { "from": "human", "value": "name := \"lib-reference-scala\"\n\norganization := \"io.flow\"\n\nscalaVersion := \"2.13.5\"\n\nlazy val allScalacOptions = Seq(\n \"-feature\",\n \"-Xfatal-warnings\",\n ...
scala
chosen
[ { "from": "system", "value": "Store infor about ActorRef type in serialized form\n" }, { "from": "human", "value": "package akka.viz.serialization.serializers\n\nimport akka.actor.ActorRef\nimport akka.viz.serialization.AkkaVizSerializer\nimport upickle.Js\n\ncase object ActorRefSerializer exten...
scala
chosen
[ { "from": "system", "value": "Add test for timezone independence of Timestamps\n" }, { "from": "human", "value": "package mesosphere.marathon.state\n\nimport mesosphere.marathon.MarathonSpec\n\nclass TimestampTest extends MarathonSpec {\n\n test(\"Ordering\") {\n val t1 = Timestamp(1024)\n ...
scala
chosen
[ { "from": "system", "value": "Use negative endTimestamp as workaround for non transactional events (count, no duration)\n" }, { "from": "human", "value": "/**\n * Copyright 2011-2016 GatlingCorp (http://gatling.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you...
scala
chosen
[ { "from": "system", "value": "Increase the default number of messages read for all applications\n" }, { "from": "human", "value": "package uk.ac.wellcome.finatra.modules\n\nimport javax.inject.Singleton\n\nimport com.google.inject.Provides\nimport com.twitter.inject.TwitterModule\nimport uk.ac.w...
scala
chosen
[ { "from": "system", "value": "Print value for elements in error chain\n\n" }, { "from": "human", "value": "package rescala.reactives\n\nimport rescala.core.{ReSource}\nimport rescala.extra.simpleprop.invariant.SimpleStruct\n\nclass InvariantViolationException(t: Throwable, reactive: ReSource[Sim...
scala
chosen
[ { "from": "system", "value": "Expand test case to consider local modules\n" }, { "from": "human", "value": "import java.io.{ByteArrayOutputStream, NotSerializableException, ObjectOutputStream}\n\nobject Test {\n def plus(x: Int): Int = x + 1\n def serialize(name: String, fn: Int => Int): Unit ...
scala
chosen
[ { "from": "system", "value": "Update sbt-scalajs, scalajs-compiler, ... to 1.5.1\n" }, { "from": "human", "value": "addSbtPlugin(\"com.typesafe.sbt\" % \"sbt-site\" % \"1.4.1\")\n\naddSbtPlugin(\"com.typesafe.sbt\" % \"sbt-ghpages\" % \"0.6.3\")\n\naddSbtPlugin(\"com.eed3si9n\" % \"sbt-unidoc\" ...
scala
chosen
[ { "from": "system", "value": "Update to play framework v2.1.3\n" }, { "from": "human", "value": "// Comment to get more information during initialization\nlogLevel := Level.Warn\n\n// The Typesafe repository\nresolvers += \"Typesafe repository\" at \"http://repo.typesafe.com/typesafe/releases/\"...
scala
chosen
[ { "from": "system", "value": "Add while-loop condition and invariant to path condition\n" }, { "from": "human", "value": "/* Copyright 2009-2018 EPFL, Lausanne */\n\npackage stainless\npackage extraction\npackage imperative\n\ntrait TransformerWithPC extends innerfuns.TransformerWithPC {\n val ...
scala
chosen
[ { "from": "system", "value": "Print debug log in tests\n" }, { "from": "human", "value": "package almond\n\nimport almond.logger.{Level, LoggerContext}\n\nobject TestLogging {\n val logCtx = LoggerContext.stderr(\n sys.env.get(\"ALMOND_TEST_LOGGING\")\n .orElse(sys.props.get(\"almond.te...
scala
chosen
[ { "from": "system", "value": "Set project version to 0.3.11-BETA\n" }, { "from": "human", "value": "import sbt._\nimport sbt.Keys._\nimport android.Keys._\nimport android.Plugin._\n\nobject Build extends android.AutoBuild\n{\n\tlazy val main = Project( \"toolbelt\", file( \".\" ) )\n\t\t.setting...
scala
chosen
[ { "from": "system", "value": "Upgrade scalafix 0.9.18-1 and fix random RejectedExecutionException\n" }, { "from": "human", "value": "resolvers += Resolver.bintrayIvyRepo(\"gatling\", \"sbt-plugins\")\nresolvers += Resolver.jcenterRepo\n\naddSbtPlugin(\"io.gatling\" % \"gatling-build-plug...
scala
chosen
[ { "from": "system", "value": "Add scalastyle plugin to sbt\n" }, { "from": "human", "value": "// These are needed even before build.scala\n\nresolvers += Resolver.url(\"artifactory\", url(\"http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases\"))(Resolver.ivyStylePatterns)\n\nresol...
scala
chosen
[ { "from": "system", "value": "Add newline at end of file\n" }, { "from": "human", "value": "package cromwell.backend.impl.tes\n\nimport com.azure.identity.DefaultAzureCredentialBuilder\nimport com.azure.security.keyvault.secrets.{SecretClient, SecretClientBuilder}\nimport common.validation.Error...
scala
chosen
[ { "from": "system", "value": "Change token for test bot harness\n" }, { "from": "human", "value": "package info.mukel.telegram.bots.v2.examples\n\nimport info.mukel.telegram.bots.v2.TelegramBot\n\nimport scala.io.Source\n\n/**\n * Created by mukel on 5/9/16.\n */\ntrait TestBot extends Telegra...
scala
chosen
[ { "from": "system", "value": "Improve the quality of these tests\n" }, { "from": "human", "value": "package uk.ac.wellcome.platform.api.works\n\nimport com.twitter.finagle.http.Status\nimport com.twitter.finatra.http.EmbeddedHttpServer\nimport uk.ac.wellcome.display.models.ApiVersions\nimport uk...
scala
chosen
[ { "from": "system", "value": "Use retry library for backoff mechanism\n" }, { "from": "human", "value": "name := \"qdb-spark-connector\"\nversion := \"1.0.0-SNAPSHOT\"\n\nresolvers += Resolver.mavenLocal\nresolvers += \"QuasarDB Maven Repository\" at \"https://maven.quasardb.net/\"\nresolvers +=...
scala
chosen
[ { "from": "system", "value": "Remove Lift-Web dependency, add Validator.nu HTML Parser dep.\n" }, { "from": "human", "value": "name := \"debiki-core\"\n\norganization := \"com.debiki\"\n\nversion := \"0.0.2-SNAPSHOT\"\n\nscalaVersion := \"2.9.1\"\n\nresolvers += \"Scala-Tools Maven2 Repository\"...
scala
chosen
[ { "from": "system", "value": "autocommit: Update configuration to record version 0.2.77\n" }, { "from": "human", "value": "name := \"lib-reference-scala\"\n\norganization := \"io.flow\"\n\nscalaVersion := \"2.13.3\"\n\nlazy val root = project\n .in(file(\".\"))\n .settings(\n libraryDepende...
scala
chosen
[ { "from": "system", "value": "Fix loop counter and style\n" }, { "from": "human", "value": "package com.softwaremill.react.kafka\n\nimport kafka.consumer.KafkaConsumer\nimport org.reactivestreams.{Subscription, Subscriber}\n\nimport scala.util.control.NonFatal\n\nprivate[kafka] class KafkaTopicS...
scala
chosen
[ { "from": "system", "value": "Use JavaConverters instead of JavaConversions\n" }, { "from": "human", "value": "package net.liftmodules.mongoauth\npackage field\n\nimport net.liftweb._\nimport common._\nimport mongodb.record.field.MongoListField\nimport mongodb.record.BsonRecord\n\nimport com.mon...
scala
chosen
[ { "from": "system", "value": "Add JS Validation Engine test\n" }, { "from": "human", "value": "package hmda.validation.engine.ts\n\nimport hmda.parser.fi.ts.TsGenerators\nimport org.scalatest.concurrent.ScalaFutures\nimport org.scalatest.prop.PropertyChecks\nimport org.scalatest.{ MustMatchers, ...
scala
chosen
[ { "from": "system", "value": "Add an execution context for the ID minter\n" }, { "from": "human", "value": "package uk.ac.wellcome.platform.idminter.steps\n\nimport com.google.inject.Inject\nimport com.twitter.inject.Logging\nimport uk.ac.wellcome.metrics.MetricsSender\nimport uk.ac.wellcome.mod...
scala
chosen
[ { "from": "system", "value": "Use the .title method instead of CSS selectors\n" }, { "from": "human", "value": "package com.themillhousegroup.witchhunt\n\nimport org.specs2.mutable.Specification\nimport scala.concurrent.Await\nimport scala.concurrent.duration.Duration\nimport java.net.URL\n\ncla...
scala
chosen
[ { "from": "system", "value": "Add documentation comments for getModifier()\n" }, { "from": "human", "value": "package k2b6s9j.boatcraft.api.registry\n\nimport java.util.{HashMap, List, Map}\n\nimport scala.collection.JavaConversions.asScalaBuffer\n\nimport k2b6s9j.boatcraft.api.traits.Modifier\n...
scala
chosen
[ { "from": "system", "value": "Remove deprecation warning for synchronized collection.\n" }, { "from": "human", "value": "/* ------------------- sse-jmx ------------------- *\\\n * Licensed under the Apache License, Version 2.0. *\n * Author: Spiros Tzavellas *\n\\* -------...
scala
chosen
[ { "from": "system", "value": "Print name of object instead of whole object\n" }, { "from": "human", "value": "package pkg\n\nobject Test {\n def main(args: Array[String]): Unit = {\n val world = Hello(\"World\")\n println(s\"Hello $world\")\n }\n}\n\ncase class Hello(name: String)\n" }...
scala
chosen
[ { "from": "system", "value": "Add missing file header comment\n" }, { "from": "human", "value": "package orc.run\n\nimport orc.OrcRuntime\nimport orc.run.extensions._\n\nclass StandardOrcRuntime extends OrcRuntime\nwith Orc\nwith StandardInvocationBehavior\nwith ActorBasedScheduler\nwith Support...
scala
chosen
[ { "from": "system", "value": "Update sbt-scalajs, scalajs-compiler, ... to 1.9.0\n" }, { "from": "human", "value": "addSbtPlugin(\"io.spray\" % \"sbt-revolver\" % \"0.9.1\")\naddSbtPlugin(\"com.typesafe.sbt\" % \"sbt-twirl\" % \"1.5.1\")\naddSbtPlugin(\"org.irundaia.sbt\" % \"sbt-sassify\" % \"1...
scala
chosen
[ { "from": "system", "value": "Change play version to 2.1.1\n" }, { "from": "human", "value": "// Comment to get more information during initialization\nlogLevel := Level.Warn\n\n// The Typesafe repository \nresolvers += \"Typesafe repository\" at \"http://repo.typesafe.com/typesafe/releases/\"\n...
scala
chosen