content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Python | Python | adapt scheduler to use dagrun table for triggering | 566da59ecf1fb5be443bab79a9dd6710ac65f3d2 | <ide><path>airflow/jobs.py
<ide> import sys
<ide> from time import sleep
<ide>
<del>from sqlalchemy import Column, Integer, String, DateTime, func, Index
<add>from sqlalchemy import Column, Integer, String, DateTime, func, Index, and_
<ide> from sqlalchemy.orm.session import make_transient
<ide>
<ide> from airflow im... | 3 |
Mixed | Ruby | fix with_routing when testing api only controllers | f28d073a394c0575dac5505e2c1c8cafc66034c4 | <ide><path>actionpack/CHANGELOG.md
<add>* Make `with_routing` test helper work when testing controllers inheriting from `ActionController::API`
<add>
<add> *Julia López*
<add>
<ide> * Use accept header in integration tests with `as: :json`
<ide>
<ide> Instead of appending the `format` to the request path, R... | 3 |
PHP | PHP | apply fixes from styleci | 621ca8a3fd8fe9ea35ed97d80ae7d2a0de79d08a | <ide><path>tests/View/ViewBladeCompilerTest.php
<ide> public function testCompileCompilesFileAndReturnsContents()
<ide> {
<ide> $compiler = new BladeCompiler($files = $this->getFiles(), __DIR__);
<ide> $files->shouldReceive('get')->once()->with('foo')->andReturn('Hello World');
<del> $files->... | 1 |
PHP | PHP | return instance from sethidden | f19151762b38e7386a5d85d4bbc948de6d123cd8 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function getHidden()
<ide> * Set the hidden attributes for the model.
<ide> *
<ide> * @param array $hidden
<del> * @return void
<add> * @return $this
<ide> */
<ide> public function setHidden(array $hidden)
<ide> {
<... | 1 |
Text | Text | fix 'persons' to 'people' and add some whitespace | 204d3afb2ad33dbc8ae1e7a3c94adc41effe7907 | <ide><path>guides/source/action_view_overview.md
<ide> Action View Overview
<ide>
<ide> In this guide you will learn:
<ide>
<del>* What Action View is, and how to use it with Rails
<add>* What Action View is and how to use it with Rails
<ide> * How best to use templates, partials, and layouts
<ide> * What helpers are... | 1 |
Text | Text | use relative urls for intra-guide links [ci-skip] | 9ac01c6a818108e019d15a782fbaeca8ae9cc1bb | <ide><path>guides/source/action_controller_overview.md
<ide> WARNING: Some method names are reserved by Action Controller. Accidentally redef
<ide> NOTE: If you must use a reserved method as an action name, one workaround is to use a custom route to map the reserved method name to your non-reserved action method.
<ide>... | 7 |
Ruby | Ruby | simplify integration tests | 0e080eba97095d0212c605390ec59df2d52d23b0 | <ide><path>Library/Homebrew/test/dev-cmd/extract_spec.rb
<ide> describe "brew extract", :integration_test do
<del> it "retrieves the most recent formula version without version argument" do
<add> it "retrieves the specified version of formula, defaulting to most recent" do
<ide> path = Tap::TAP_DIRECTORY/"homebre... | 1 |
Python | Python | fix big bird gpu test | 7772ddb473a079e10f4635bb00703c8011754120 | <ide><path>tests/test_modeling_big_bird.py
<ide> def test_model_various_attn_type(self):
<ide> config_and_inputs[0].attention_type = type
<ide> self.model_tester.create_and_check_model(*config_and_inputs)
<ide>
<del> @unittest.skipIf(torch_device == "cpu", "Fast integration only compatible o... | 1 |
Javascript | Javascript | fix typo in comments of text-editor-registry.js | 11c06d44b8e6c1ab5992997d1fcee351f62f825d | <ide><path>src/text-editor-registry.js
<ide> export default class TextEditorRegistry {
<ide> }
<ide>
<ide> // Set a {TextEditor}'s grammar based on its path and content, and continue
<del> // to update its grammar as gramamrs are added or updated, or the editor's
<add> // to update its grammar as grammars are ad... | 1 |
Python | Python | fix a bug | d7ea34fcc87159ec7d3b5a802b34629f756dd923 | <ide><path>examples/variational_autoencoder.py
<ide> def plot_results(models,
<ide>
<ide> plt.figure(figsize=(10, 10))
<ide> start_range = digit_size // 2
<del> end_range = n * digit_size + start_range + 1
<add> end_range = (n - 1) * digit_size + start_range + 1
<ide> pixel_range = np.arange(start_ra... | 1 |
Javascript | Javascript | fix csp setup | ea2518fceac22f2ee2a9ce688e9608f776c207f1 | <ide><path>test/ng/parseSpec.js
<ide> describe('parser', function() {
<ide>
<ide> beforeEach(module(function($provide) {
<ide> $provide.decorator('$sniffer', function($delegate) {
<del> $delegate.csp = cspEnabled;
<del> return $delegate;
<add> expect($delegate.csp.noUnsafeEval ... | 1 |
Go | Go | use state as embedded to container | e0339d4b88989a31b72be02582eee72433d2f0ec | <ide><path>builder/internals.go
<ide> func (b *Builder) run(c *daemon.Container) error {
<ide> }
<ide>
<ide> // Wait for it to finish
<del> if ret, _ := c.State.WaitStop(-1 * time.Second); ret != 0 {
<add> if ret, _ := c.WaitStop(-1 * time.Second); ret != 0 {
<ide> err := &utils.JSONError{
<ide> Message: fmt.Sp... | 17 |
Text | Text | update the documentation for fix | c9ca5c4dd3a90332cc40d25175e3b54aca1212a8 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> The `docker exec` command runs a new command in a running container.
<ide> The command started using `docker exec` will only run while the container's primary
<ide> process (`PID 1`) is running, and will not be restarted if the container is restarted.
<ide>
<d... | 1 |
Go | Go | initialize config with platform-specific defaults | b28e66cf4fd2fb7c7f14d889614f57f3457f585e | <ide><path>cmd/dockerd/config.go
<ide> const defaultTrustKeyFile = "key.json"
<ide>
<ide> // installCommonConfigFlags adds flags to the pflag.FlagSet to configure the daemon
<ide> func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
<del> var err error
<del> conf.Pidfile, err = getDefaultPi... | 12 |
Javascript | Javascript | drop module.hot from production bundles | 662dfd42716ae2c2a4043321f2552f0166a7c2be | <ide><path>packages/next/client/page-loader.js
<ide> function supportsPreload (list) {
<ide> }
<ide>
<ide> const hasPreload = supportsPreload(document.createElement('link').relList)
<del>const webpackModule = module
<ide>
<ide> export default class PageLoader {
<ide> constructor (buildId, assetPrefix) {
<ide> expor... | 1 |
Python | Python | remove lines causing a keyerror | adb8c93134f02fd0eac2b52189364af21977004c | <ide><path>examples/run_tf_glue.py
<ide> inputs_1 = tokenizer.encode_plus(sentence_0, sentence_1, add_special_tokens=True, return_tensors="pt")
<ide> inputs_2 = tokenizer.encode_plus(sentence_0, sentence_2, add_special_tokens=True, return_tensors="pt")
<ide>
<del> del inputs_1["special_tokens_mask"]
<del> ... | 1 |
Javascript | Javascript | increase usage of assert.iferror() | 746a46ebddf594370137042b9b3a0af80daff903 | <ide><path>test/disabled/test-dgram-send-error.js
<ide> function onMessage(message, info) {
<ide> }
<ide>
<ide> function afterSend(err) {
<del> if (err) throw err;
<add> assert.ifError(err);
<ide> packetsSent++;
<ide> }
<ide>
<ide><path>test/gc/node_modules/nan/tools/1to2.js
<ide> groups.push([1, ['(', [
<ide> /*... | 39 |
PHP | PHP | remove another unused method | 5cc2aad07b0fee6459139f24c0f2d711433c643c | <ide><path>Cake/Controller/Controller.php
<ide> public function redirect($url, $status = null, $exit = true) {
<ide> }
<ide> }
<ide>
<del>/**
<del> * Parse beforeRedirect Response
<del> *
<del> * @param mixed $response Response from beforeRedirect callback
<del> * @param string|array $url The same value of beforeRe... | 1 |
PHP | PHP | update docblock with correct spacing | 4dd5ff245b9c7ac93816adb1e6e577cb9cac0204 | <ide><path>src/Illuminate/Validation/Concerns/ReplacesAttributes.php
<ide> protected function replaceDimensions($message, $attribute, $rule, $parameters)
<ide> /**
<ide> * Replace all place-holders for the starts_with rule.
<ide> *
<del> * @param string $message
<del> * @param string $attribute
<d... | 1 |
Python | Python | fix exception causes in four .py files | ddf0191ea43d763c784dcb5f7ab937d8ef1ae0b0 | <ide><path>numpy/lib/histograms.py
<ide> def _get_bin_edges(a, bins, range, weights):
<ide> elif np.ndim(bins) == 0:
<ide> try:
<ide> n_equal_bins = operator.index(bins)
<del> except TypeError:
<add> except TypeError as e:
<ide> raise TypeError(
<del> '`b... | 4 |
Ruby | Ruby | change param name to improve documentation | 629bc03bf885f8d1450a28972c5bea630a079e85 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def clear
<ide> end
<ide>
<ide> # Do the error messages include an error with key +error+?
<del> def include?(error)
<del> (v = messages[error]) && v.any?
<add> def include?(attribute)
<add> (v = messages[attribute]) && v.any?
<ide> en... | 1 |
Python | Python | add missing space to error message | 0b1d504ba21cf917a4f42055aba6bdf91fa5e5d6 | <ide><path>keras/engine/input_spec.py
<ide> def assert_input_compatibility(input_spec, inputs, layer_name):
<ide> if value is not None and shape_as_list[int(axis)] not in {value, None}:
<ide> raise ValueError(
<ide> f'Input {input_index} of layer "{layer_name}" is '
<del> f'... | 1 |
Text | Text | add missing periods to elements in roadmap.md | 59aa3b27cad988dc21cafb04504191f94938be58 | <ide><path>ROADMAP.md
<ide> definitive move, we temporarily won't accept more patches to the Dockerfile synt
<ide> reasons:
<ide>
<ide> - Long term impact of syntax changes is a sensitive matter that require an amount of attention
<del>the volume of Engine codebase and activity today doesn't allow us to provide
<add>t... | 1 |
Go | Go | add error checking and error messages | 31b883b07641bfab721a05f0a68629c79b74a058 | <ide><path>devmapper/deviceset_devmapper.go
<ide> package devmapper
<ide>
<ide> import (
<del> "time"
<ide> "encoding/json"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<ide> import (
<ide> "strconv"
<ide> "sync"
<ide> "syscall"
<add> "time"
<ide> )
<ide>
<ide> var (
<ide> func (devices *DeviceSetDM) in... | 3 |
Go | Go | fix api with old version | e43236c78ae8a466a36c323aa679ea581b42cdc5 | <ide><path>api/api.go
<ide> func getImagesJSON(eng *engine.Engine, version float64, w http.ResponseWriter, r
<ide> job.Setenv("filter", r.Form.Get("filter"))
<ide> job.Setenv("all", r.Form.Get("all"))
<ide>
<del> if version > 1.8 {
<add> if version >= 1.7 {
<ide> job.Stdout.Add(w)
<ide> } else if outs, err = job.... | 1 |
Ruby | Ruby | use travis ci environment variables | e39cd2e9b2581924596998d918f6e19fedd74328 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> # --tap=<tap>: Use the git repository of the given tap
<ide> # --dry-run: Just print commands, don't run them.
<ide> # --fail-fast: Immediately exit on a failing step.
<add># --verbose: Print out all logs in realtime
<ide> #
<ide> # --ci-master: ... | 1 |
Python | Python | improve decorator typing | 9b44bf2818d8e3cde422ad7f43fb33dfc6737289 | <ide><path>src/flask/app.py
<ide> from .testing import FlaskClient
<ide> from .testing import FlaskCliRunner
<ide>
<add>T_before_first_request = t.TypeVar(
<add> "T_before_first_request", bound=ft.BeforeFirstRequestCallable
<add>)
<add>T_shell_context_processor = t.TypeVar(
<add> "T_shell_context_process... | 6 |
Go | Go | fix composite literal uses unkeyed fields warnings | 0275b007c6a0d21e33d52af376d7f7d99f8f17b9 | <ide><path>libnetwork/drivers/overlay/ostweaks_linux.go
<ide> import (
<ide> )
<ide>
<ide> var ovConfig = map[string]*kernel.OSValue{
<del> "net.ipv4.neigh.default.gc_thresh1": {"8192", checkHigher},
<del> "net.ipv4.neigh.default.gc_thresh2": {"49152", checkHigher},
<del> "net.ipv4.neigh.default.gc_thresh3": {"65536",... | 2 |
Javascript | Javascript | check result for primitive exports | 0cfaadc63f3a34c6cfac9282236c9433474c02a4 | <ide><path>test/cases/parsing/issue-4940/index.js
<ide> it("should create dependency when require is called with 'new' (object export)",
<ide> it("should create dependency when require is called with 'new' (non-object export)", function() {
<ide> const sideEffect = require("./sideEffect");
<ide> const result = new re... | 1 |
Ruby | Ruby | remove missing default helper warnings | cefea3c677f90b2c095b377f1ba36a3ff157f5b0 | <ide><path>actionpack/lib/action_controller/helpers.rb
<ide> def default_helper_module!
<ide> end
<ide> rescue MissingSourceFile => e
<ide> raise unless e.is_missing? module_path
<del> logger.debug("#{name}: missing default helper path #{module_path}") if logger
<ide> rescue... | 1 |
PHP | PHP | add test case | b862e5f521e77cd47ba120ecd0c6ee62f277fe58 | <ide><path>tests/TestCase/Console/CommandTest.php
<ide> use Cake\ORM\Table;
<ide> use Cake\TestSuite\Stub\ConsoleOutput;
<ide> use Cake\TestSuite\TestCase;
<add>use TestApp\Command\AutoLoadModelCommand;
<ide> use TestApp\Command\DemoCommand;
<ide>
<ide> /**
<ide> public function testConstructorLoadModel()
<ide> ... | 2 |
Javascript | Javascript | rewrite stack layout for flexibility | 3018f873c147bc885b2e999e81ad0a286281e7ec | <ide><path>d3.layout.js
<ide> d3.layout.pie = function() {
<ide> return pie;
<ide> };
<ide> // data is two-dimensional array of x,y; we populate y0
<del>// TODO perhaps make the `x`, `y` and `y0` structure customizable
<ide> d3.layout.stack = function() {
<del> var order = "default",
<del> offset = "zero";
<add... | 3 |
Javascript | Javascript | remove obsolete test | b5406d276d73bcb0319eb451fa1cf2aec1e67946 | <ide><path>test/ng/directive/ngBindSpec.js
<ide> describe('ngBind*', function() {
<ide> $rootScope.$digest();
<ide> expect(element.text()).toEqual('-0false');
<ide> }));
<del>
<del>
<del> it('should render object as JSON ignore $$', inject(function($rootScope, $compile) {
<del> element = $compil... | 1 |
Ruby | Ruby | add saved changes helpers for store accessors | b574d283e57930105d505c2d34f6d4777dc21069 | <ide><path>activerecord/lib/active_record/store.rb
<ide> module ActiveRecord
<ide> # of the model. This is very helpful for easily exposing store keys to a form or elsewhere that's
<ide> # already built around just accessing attributes on the model.
<ide> #
<del> # Every accessor comes with dirty tracking method... | 2 |
Javascript | Javascript | replace fixturesdir with fixtures module | ca12ae6015e6936ecc8cea89222eee42911d1bf1 | <ide><path>test/parallel/test-module-children.js
<ide> // Flags: --no-deprecation
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<ide> const path = require('path');
<ide>
<del>const di... | 1 |
Ruby | Ruby | add flags for printing only formulae or casks | 11fbf9d035033467009ae0252b4496b34923c425 | <ide><path>Library/Homebrew/cmd/--cache.rb
<ide> module Homebrew
<ide> def __cache_args
<ide> Homebrew::CLI::Parser.new do
<ide> usage_banner <<~EOS
<del> `--cache` [<options>] [<formula>]
<add> `--cache` [<options>] [<formula/cask>]
<ide>
<ide> Display Homebrew's download cache. See ... | 1 |
Python | Python | update arraypad to use np.pad in examples | ce1a3b7898484d244806fccc7c52840c11ac98f2 | <ide><path>numpy/lib/arraypad.py
<ide> def pad(array, pad_width, mode, **kwargs):
<ide> Examples
<ide> --------
<ide> >>> a = [1, 2, 3, 4, 5]
<del> >>> np.lib.pad(a, (2,3), 'constant', constant_values=(4, 6))
<add> >>> np.pad(a, (2,3), 'constant', constant_values=(4, 6))
<ide> array([4, 4, 1, 2, 3... | 1 |
Ruby | Ruby | unify version.create usage | 3fb5d70a729472a7d7f2a5d0d7b84248921fb583 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_specs
<ide> case stable && stable.url
<ide> when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i
<ide> version = Version.parse(stable.url)
<del> if version >= Version.new("1.0")
<add> if version >= Version.create("... | 18 |
Mixed | Javascript | support abortsignal in writefile | d9dadacb35d7b2f88b0a89b4828e639e8441fc45 | <ide><path>doc/api/fs.md
<ide> details.
<ide> <!-- YAML
<ide> added: v0.1.29
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/35993
<add> description: The options argument may include an AbortSignal to abort an
<add> ongoing writeFile request.
<ide> - ... | 5 |
PHP | PHP | update hasmany to avoid ambigous columns | 54d8e7683243f62e8ce55c53906e3c9ea4bd6b04 | <ide><path>src/ORM/Association/HasMany.php
<ide> namespace Cake\ORM\Association;
<ide>
<ide> use Cake\Collection\Collection;
<add>use Cake\Database\Expression\FieldInterface;
<add>use Cake\Database\Expression\QueryExpression;
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\ORM\Association;
<ide> use Cake\ORM... | 1 |
PHP | PHP | fix eloquent->delete bug | 75f63847673f241463c00f42134277039b0e38c2 | <ide><path>laravel/database/eloquent/model.php
<ide> public function save()
<ide> return $result;
<ide> }
<ide>
<add> /**
<add> * Delete the model from the database.
<add> *
<add> * @return int
<add> */
<add> public function delete()
<add> {
<add> if ($this->exists)
<add> {
<add> return $this->query()->wher... | 2 |
Ruby | Ruby | use new hash style in doc examples [ci skip] | d9ac2afc8fc49c2d8b0cf2ddbea374ffbb48c0f4 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def rename_column(table_name, column_name, new_column_name)
<ide> #
<ide> # ====== Creating an index with a specific method
<ide> #
<del> # add_index(:developers, :name, :using => 'btree')
<add> ... | 1 |
Ruby | Ruby | rename a variable name for consistency | 22bfd8b09804db28e05e598e062d58fd2ab36485 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> class Relation
<ide>
<ide> attr_reader :relation, :klass
<ide> attr_writer :readonly, :table
<del> attr_accessor :preload_associations, :eager_load_associations, :include_associations
<add> attr_accessor :preload_associations, :eager_load_associ... | 3 |
Mixed | Text | fix spelling of "harmony" | a59672a5e1102f7c1f5774a7336c003510f44b2e | <ide><path>examples/code-splitted-require.context-amd/README.md
<ide> getTemplate("b", function(b) {
<ide> /******/ // expose the module cache
<ide> /******/ __webpack_require__.c = installedModules;
<ide>
<del>/******/ // identity function for calling harmory imports with the correct context
<add>/******/ // iden... | 33 |
Javascript | Javascript | add promises metadata to postmortem test | cf5624c4d8f16397c6d12aaf13bcc3ecfe10b8fe | <ide><path>test/v8-updates/test-postmortem-metadata.js
<ide> function getExpectedSymbols() {
<ide> 'v8dbg_type_JSFunction__JS_FUNCTION_TYPE',
<ide> 'v8dbg_type_JSGlobalObject__JS_GLOBAL_OBJECT_TYPE',
<ide> 'v8dbg_type_JSGlobalProxy__JS_GLOBAL_PROXY_TYPE',
<add> 'v8dbg_type_JSMessageObject__JS_MESSAGE_OBJ... | 1 |
Python | Python | add letter spacing to arrow label | 82154a1861170538e4afe705baa285440ab30476 | <ide><path>spacy/displacy/templates.py
<ide> TPL_DEP_ARCS = """
<ide> <g class="displacy-arrow">
<ide> <path class="displacy-arc" id="arrow-{id}-{i}" stroke-width="{stroke}px" d="{arc}" fill="none" stroke="currentColor"/>
<del> <text dy="1.25em" style="font-size: 0.8em">
<add> <text dy="1.25em" style="font-si... | 1 |
Ruby | Ruby | use media_type instead of content_type internally | 7cf445d3bdc466f26b4a1929822ccd34daac19a7 | <ide><path>actionpack/lib/action_controller/metal/renderers.rb
<ide> def _render_to_body_with_renderer(options)
<ide>
<ide> "/**/#{options[:callback]}(#{json})"
<ide> else
<del> self.content_type ||= Mime[:json]
<add> self.content_type = Mime[:json] if media_type.nil?
<ide> json
<id... | 6 |
Java | Java | fix border-rendering in apis < 18 cont | ca7fe72c31fd7c7cbe4734118019f5808235560e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java
<ide> public void setBorderColor(int position, float rgb, float alpha) {
<ide> }
<ide>
<ide> public void setBorderRadius(float borderRadius) {
<del> getOrCreateReactViewBackground().setRadius(borderRadius);
<add> ReactVie... | 1 |
PHP | PHP | remove duplicated code backup | 990fbcdea01d25c30bde0d8a37c004568a8cbcb4 | <ide><path>lib/Cake/Test/Case/Error/ErrorHandlerTest.php
<ide> public function setUp() {
<ide> $request = new CakeRequest(null, false);
<ide> $request->base = '';
<ide> Router::setRequestInfo($request);
<del> $this->_debug = Configure::read('debug');
<del> $this->_error = Configure::read('Error');
<ide> Confi... | 2 |
PHP | PHP | fix failing tests in 5.3 and 5.4 | d8b1be22968f4929d1b02ab89b07f1762c78c7ff | <ide><path>tests/Queue/RedisQueueIntegrationTest.php
<ide> <?php
<ide>
<add>use Carbon\Carbon;
<ide> use Mockery as m;
<ide> use Illuminate\Redis\Database;
<ide> use Illuminate\Queue\RedisQueue;
<ide> class RedisQueueIntegrationTest extends PHPUnit_Framework_TestCase
<ide>
<ide> public function setUp()
<ide> ... | 1 |
PHP | PHP | move toarrayresponse() method to http\response | f46432f920a37463aa0c51ae45fcf94d19ec835f | <ide><path>src/Http/Response.php
<ide> use Cake\Filesystem\File;
<ide> use Cake\Http\Cookie\Cookie;
<ide> use Cake\Http\Cookie\CookieCollection;
<add>use Cake\Http\Cookie\CookieInterface;
<ide> use Cake\Log\Log;
<ide> use Cake\Network\CorsBuilder;
<ide> use Cake\Network\Exception\NotFoundException;
<ide> public functio... | 1 |
Ruby | Ruby | fix stream tests | df5a32dfbc94723d847aa8d8034041a2bd8751e2 | <ide><path>test/channel/stream_test.rb
<ide> def subscribed
<ide>
<ide> test "streaming start and stop" do
<ide> run_in_eventmachine do
<del> @connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("test_room_1") }
<add> @connection.expects(:pubsub).returns mock().tap { |m| m.e... | 1 |
Ruby | Ruby | fix method names | bf6429c438bcc74e5b1248c4293bcf6bbbce228e | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def apply(code)
<ide>
<ide> private
<ide>
<add> def invert_lambda(l)
<add> lambda { |*args, &blk| !l.call(*args, &blk) }
<add> end
<add>
<add> def make_lambda(filter)
<add> case filter
<add> when Array
<add> ... | 1 |
Python | Python | fix formatting and remove unused imports | b13e7f79b4ceb9dffd0fd1b568c63c2dcfdc5b48 | <ide><path>spacy/__init__.py
<del>import pathlib
<del>
<ide> from .util import set_lang_class, get_lang_class
<del>from .about import __version__
<ide>
<ide> from . import en
<ide> from . import de
<ide> from . import fi
<ide> from . import bn
<ide>
<add>
<ide> try:
<ide> basestring
<ide> except NameError: | 1 |
Python | Python | handle groupresults for non-pickle serializers | 5a7ebe2f998cb93b7988eac479a8bde54e0393f8 | <ide><path>celery/backends/base.py
<ide> from celery.app import current_task
<ide> from celery.datastructures import LRUCache
<ide> from celery.exceptions import TimeoutError, TaskRevokedError
<del>from celery.result import from_serializable
<add>from celery.result import from_serializable, GroupResult
<ide> from celer... | 1 |
Javascript | Javascript | fix broken build due to unstubbed query params | 8c4c8cbfb11f554cd568d7f55c82b6da4732d315 | <ide><path>packages_es6/ember-routing/tests/system/route_test.js
<ide> test("default store utilizes the container to acquire the model factory", functi
<ide> };
<ide>
<ide> route.container = container;
<add> route.set('_qp', null);
<ide>
<ide> equal(route.model({ post_id: 1}), post);
<ide> equal(route.findMo... | 1 |
PHP | PHP | use newfrombuilder instance of newinstance | 3f7ac061c24ba3e81f9492425ebffe003254a99e | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function lists($column, $key = null)
<ide> {
<ide> $fill = array($column => $value);
<ide>
<del> $value = $this->model->newInstance($fill)->$column;
<add> $value = $this->model->newFromBuilder($fill)->$column;
<ide> }
<ide> }
<ide> | 1 |
Java | Java | add jackons decoder tests related list vs flux | 4fd80bbb67d24d1ff26d8fe1583a5dda5e4c178f | <ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/support/JacksonJsonDecoderTests.java
<ide>
<ide> package org.springframework.core.codec.support;
<ide>
<add>import java.lang.reflect.Method;
<add>import java.util.Arrays;
<add>import java.util.List;
<add>
<add>import org.junit.Ignore;
<ide> i... | 1 |
PHP | PHP | improve http\request test coverage | 4dfd0b7a3a82d21abd7d2cd1d7a2eb7ec2ac6d65 | <ide><path>tests/Http/HttpRequestTest.php
<ide> public function tearDown()
<ide> {
<ide> m::close();
<ide> }
<add>
<add>
<add> public function testInstanceMethod()
<add> {
<add> $request = Request::create('', 'GET');
<add> $this->assertTrue($request === $request->instance());
<add> }
<add>
<add>
<add> public ... | 1 |
Go | Go | remove unused "testutils" imports | 427ad30c0545c1fc5e9448b6f9a12ef255e03f8d | <ide><path>cmd/docker-proxy/network_proxy_test.go
<ide> import (
<ide>
<ide> "github.com/ishidawataru/sctp"
<ide> "gotest.tools/v3/skip"
<del>
<del> // this takes care of the incontainer flag
<del> _ "github.com/docker/docker/libnetwork/testutils"
<ide> )
<ide>
<ide> var testBuf = []byte("Buffalo buffalo Buffalo bu... | 33 |
PHP | PHP | expand documentation on placeholder binding | 1d388ea82387ba2500ae8892544d2fd32f82d2b6 | <ide><path>src/Database/Query.php
<ide> public function traverseExpressions(callable $callback)
<ide> *
<ide> * If type is expressed as "atype[]" (note braces) then it will cause the
<ide> * placeholder to be re-written dynamically so if the value is an array, it
<del> * will create as many placehold... | 1 |
Javascript | Javascript | add meta matchers for testing tests | 3bbf6ce1a53358d2a3030050c88901b06e507460 | <ide><path>src/modern/class/__tests__/ReactClassEquivalence-test.js
<add>/**
<add> * Copyright 2015, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
<add>... | 3 |
Javascript | Javascript | use common.mustcall in http test | f81bb7b527bb58ee68ddd26c9eee56a133547c01 | <ide><path>test/parallel/test-http-pipeline-regr-2639.js
<ide> 'use strict';
<del>require('../common');
<del>const assert = require('assert');
<add>const common = require('../common');
<ide> const http = require('http');
<ide> const net = require('net');
<ide>
<ide> const COUNT = 10;
<ide>
<del>let received = 0;
<del... | 1 |
Javascript | Javascript | add better labels to tests, reorder | 6db588073bbe1997480f6740f081b8b81cafbcd0 | <ide><path>packages/ember-runtime/tests/core/compare_test.js
<ide> test('comparables should return values in the range of -1, 0, 1', function() {
<ide> var zero = Comp.create({ val: 0 });
<ide> var one = Comp.create({ val: 1 });
<ide>
<del> equal(compare('a', negOne), 1, 'Second item comparable - Should return va... | 1 |
Javascript | Javascript | change wording for donate buttons | 2e90ba4754152ee3eb57477f37914c02bf045137 | <ide><path>client/src/components/Donation/DonateForm.js
<ide> class DonateForm extends Component {
<ide> id='confirm-donation-btn'
<ide> onClick={this.handleStripeCheckoutRedirect}
<ide> >
<del> <span>Pay with Apple Pay</span>
<add> <span>Donate with Apple Pay</span>
<ide> ... | 1 |
Javascript | Javascript | improve error handling | b38c81cb449a822ab45e6caa210d070b91a59836 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(options, cb) {
<ide> // Explicitly pass through this statement as agent will not be used
<ide> // when createConnection is provided.
<ide> } else if (typeof agent.addRequest !== 'function') {
<del> throw new ERR_INVALID_ARG_TYPE('Agent option',
<d... | 9 |
Javascript | Javascript | use indices instead of indicies | f65a3ef8f5081d24ea826e82ab2b441defc78fc2 | <ide><path>test/configCases/chunk-index/order-multiple-entries/webpack.config.js
<ide> module.exports = {
<ide> asyncIndex: "0: ./async.js",
<ide> asyncIndex2: "0: ./async.js"
<ide> });
<del> const indicies = Array.from(compilation.modules)
<add> const indices = Array.from(compilation.modules)
... | 1 |
Ruby | Ruby | split missing formula help into its own method | 9438dc94e3724bcf2456c1d550e3386ae0bc9d94 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search_names(query, string_or_regex, args)
<ide>
<ide> count = all_formulae.count + all_casks.count
<ide>
<del> if $stdout.tty? && (reason = MissingFormula.reason(query, silent: true)) && local_casks.exclude?(query)
<del> if count.positive?
<del> ... | 1 |
Javascript | Javascript | replace fs.accesssync with fs.existssync | bf26d92c267323feef93b084018e7ab1e1237c01 | <ide><path>test/parallel/test-npm-install.js
<ide> function handleExit(error, stdout, stderr) {
<ide>
<ide> assert.strictEqual(code, 0, `npm install got error code ${code}`);
<ide> assert.strictEqual(signalCode, null, `unexpected signal: ${signalCode}`);
<del> assert.doesNotThrow(function() {
<del> fs.accessSy... | 1 |
Ruby | Ruby | check minimumsystemversion for compatibility | 823dc28c2164c6db8842ebdf0fce51443c83baec | <ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb
<ide> def self.item_from_content(content)
<ide>
<ide> next if os && os != "osx"
<ide>
<add> if OS.mac? && (minimum_system_version = (item > "minimumSystemVersion").first&.text&.strip)
<add> macos_minimum_system_version = beg... | 1 |
Ruby | Ruby | handle invalid names in download strategies | 57560c03e64cb11a33287b3194b0c35cbea6e159 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> require 'open-uri'
<ide> require 'utils/json'
<add>require 'erb'
<ide>
<ide> class AbstractDownloadStrategy
<ide> attr_reader :name, :resource
<ide> def quiet_safe_system *args
<ide> safe_system(*expand_safe_system_args(args))
<ide> end
<ide>
<add> def c... | 2 |
Javascript | Javascript | simplify enabletrace logic | b233d028b3b48bc16d6f9ccbe4e00941e65920e3 | <ide><path>lib/_tls_wrap.js
<ide> function Server(options, listener) {
<ide> }
<ide>
<ide> const enableTrace = options.enableTrace;
<del> if (enableTrace === true)
<del> this[kEnableTrace] = true;
<del> else if (enableTrace === false || enableTrace == null)
<del> ; // Tracing explicitly disabled, or defau... | 1 |
Mixed | Python | fix callbacks doc | 1f224de9b1c23e18995b6e651adde6ca06033cac | <ide><path>docs/sources/callbacks.md
<ide> class LossHistory(keras.callbacks.Callback):
<ide>
<ide> ```python
<ide> class LossHistory(keras.callbacks.Callback):
<del> def on_train_begin(self):
<add> def on_train_begin(self, logs={}):
<ide> self.losses = []
<ide>
<ide> def on_batch_end(self, batch, l... | 2 |
Go | Go | eliminate redundant parameters | 58028a2919f1ee794a058fb3451a5145a6382b4d | <ide><path>container/container.go
<ide> func (container *Container) CheckpointDir() string {
<ide> }
<ide>
<ide> // StartLogger starts a new logger driver for the container.
<del>func (container *Container) StartLogger(cfg containertypes.LogConfig) (logger.Logger, error) {
<add>func (container *Container) StartLogger(... | 3 |
Javascript | Javascript | improve coverage for util.inspect() with classes | 75afb6c7a6a7143d8e9f6f8e914f78a4814b2827 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(util.inspect('"\'${a}'), "'\"\\'${a}'");
<ide> rest[rest.length - 1] = rest[rest.length - 1].slice(0, -1);
<ide> rest.length = 1;
<ide> }
<add> Object.setPrototypeOf(clazz, Map.prototype);
<add> assert.strictEqual(
<add> util.inspect(... | 1 |
Text | Text | add private beta docs | 7ace46d81fba0b0f5523179bedb30e6d2a93498c | <ide><path>docs/private-beta/README.md
<add>## Proposed Timeline
<add>
<add>1. **October 30st** - Internal launch - persuade as many githubers to switch as
<add>possible.
<add>
<add>1. Triage bugs and identify what needs to be fixed before private alpha. Maybe
<add>talk to @chrissiebrodigan about doing a UX study.
<add... | 2 |
Javascript | Javascript | add test for progress plugin | 140cbaad2137da7934f87a2d59ba1e46c2175ed5 | <ide><path>test/configCases/plugins/progress-plugin/data.js
<add>module.exports = [];
<ide><path>test/configCases/plugins/progress-plugin/index.js
<add>it("should contain the custom progres messages", function() {
<add> var data = require(__dirname + "/data");
<add> data.should.containEql("optimizing");
<add> data.shou... | 3 |
Python | Python | expose only process_str | 7b9ac412223fbb7e94511cc338818f3832cf4aea | <ide><path>scipy_distutils/from_template.py
<ide> # Note that all <..> forms in a block must have the same number of
<ide> # comma-separated entries.
<ide>
<add>__all__ = ['process_str']
<ide>
<ide> import string,os,sys
<ide> if sys.version[:3]>='2.3':
<ide> def expand_sub(substr):
<ide>
<ide> """
<ide>
<del>d... | 1 |
Text | Text | fix confusing reference in net.md | 14749f9eaffaa18eb2acfccfaa691329ae7d8ff4 | <ide><path>doc/api/net.md
<ide> Additional options:
<ide> [`socket.setTimeout(timeout)`][] after the socket is created, but before
<ide> it starts the connection.
<ide>
<del>Here is an example of a client of the previously described echo server:
<add>Following is an example of a client of the echo server described... | 1 |
Text | Text | remove extra space in repl example | 81903590948eb69e89b6984bd49efde6147cea3c | <ide><path>doc/api/repl.md
<ide> dropped into the REPL. It has simplistic emacs line-editing.
<ide> ```
<ide> $ node
<ide> Type '.help' for options.
<del>> a = [ 1, 2, 3];
<add>> a = [1, 2, 3];
<ide> [ 1, 2, 3 ]
<ide> > a.forEach((v) => {
<ide> ... console.log(v); | 1 |
Text | Text | add method, solution, and reference. | d50b4970dc41b418a9e3efa2e6c6dcbe28e033df | <ide><path>guide/english/certifications/coding-interview-prep/data-structures/reverse-a-doubly-linked-list/index.md
<ide> ---
<ide> title: Reverse a Doubly Linked List
<ide> ---
<add>
<ide> ## Reverse a Doubly Linked List
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/... | 1 |
Text | Text | specify location for engine-specific commands | 2ffc80ab8afe72e77524e8ed08b253ea388473e1 | <ide><path>guides/source/engines.md
<ide> The engine that this guide covers provides submitting articles and commenting
<ide> functionality and follows a similar thread to the [Getting Started
<ide> Guide](getting_started.html), with some new twists.
<ide>
<add>NOTE: For this section, make sure to run the commands in ... | 1 |
Go | Go | update nsinit to be nicer to work with and test | 1a3d43c23ec7bbb1aa206581acd0497c47e29a2f | <ide><path>pkg/libcontainer/nsinit/exec.go
<add>package main
<add>
<add>import (
<add> "fmt"
<add> "log"
<add> "os"
<add> "os/exec"
<add> "os/signal"
<add>
<add> "github.com/codegangsta/cli"
<add> "github.com/dotcloud/docker/pkg/libcontainer"
<add> "github.com/dotcloud/docker/pkg/libcontainer/namespaces"
<add>)
<add>
<... | 6 |
Text | Text | use "long term support" in technical values doc | 0ba7da6f0f1c5f0f49f10830c890ad67d5ddfd35 | <ide><path>doc/guides/technical-values.md
<ide> Some key elements of this include:
<ide> * Stable releases on a predictable schedule
<ide> * A strong safety net, including testing how changes
<ide> in Node.js affect popular packages
<del>* Careful consideration of what goes into long term support (LTS) releases
<add>... | 1 |
Javascript | Javascript | expose info about selection state in controller | 6fc0f02ad24a6ac8bef517210e6d7e679c3988fd | <ide><path>src/ng/directive/select.js
<ide> function setOptionSelectedStatus(optionEl, value) {
<ide> /**
<ide> * @ngdoc type
<ide> * @name select.SelectController
<add> *
<ide> * @description
<del> * The controller for the `<select>` directive. This provides support for reading
<del> * and writing the selected val... | 3 |
Javascript | Javascript | log all errors to console.error by default | 0853aab74dc8285401e62d1e490551ba3c96fd64 | <ide><path>packages/react-client/src/__tests__/ReactFlight-test.js
<ide> describe('ReactFlight', () => {
<ide> return <div ref={ref} />;
<ide> }
<ide>
<del> const event = ReactNoopFlightServer.render(<EventHandlerProp />);
<del> const fn = ReactNoopFlightServer.render(<FunctionProp />);
<del> const ... | 3 |
Javascript | Javascript | call minification post-processing hook | 5ee4e63abf944e8b0bae34ba69637803bd84f8b0 | <ide><path>packager/src/ModuleGraph/worker/__tests__/optimize-module-test.js
<ide> const optimizeModule = require('../optimize-module');
<ide> const transformModule = require('../transform-module');
<ide> const transformer = require('../../../../transformer.js');
<ide> const {SourceMapConsumer} = require('source-map');... | 2 |
Javascript | Javascript | fix failing tests for non-blocking assertions | 6867a0b14a1bbee72e81b4245628f0a5f78803df | <ide><path>packages/ember-handlebars/lib/main.js
<del>require("ember-handlebars-compiler");
<ide> require("ember-runtime");
<add>require("ember-handlebars-compiler");
<ide> require("ember-views");
<ide> require("ember-handlebars/ext");
<ide> require("ember-handlebars/string");
<ide><path>packages/ember-old-router/tests... | 2 |
Python | Python | fix a bug that ignores max_seq_len in preprocess | 2b8599b2df6a09f83bd8b19086f691a648af74cb | <ide><path>src/transformers/pipelines/question_answering.py
<ide> def _sanitize_parameters(
<ide> preprocess_params["doc_stride"] = doc_stride
<ide> if max_question_len is not None:
<ide> preprocess_params["max_question_len"] = max_question_len
<add> if max_seq_len is not None:
<a... | 1 |
Go | Go | detect defaultnetworkmtu from default route | 4d0a026c98721da874a03f5b6993045bae95842a | <ide><path>config.go
<ide> package docker
<ide>
<ide> import (
<del> "github.com/dotcloud/docker/engine"
<ide> "net"
<add>
<add> "github.com/dotcloud/docker/engine"
<add> "github.com/dotcloud/docker/networkdriver"
<ide> )
<ide>
<ide> const (
<del> DefaultNetworkMtu = 1500
<add> defaultNetworkMtu = 1500
<ide> ... | 3 |
Javascript | Javascript | remove common.port from test-cluster-basic | c05e5bfa7b32ad6e527c6cb801ce96883ce274e3 | <ide><path>test/parallel/test-cluster-basic.js
<ide> function forEach(obj, fn) {
<ide>
<ide>
<ide> if (cluster.isWorker) {
<del> const http = require('http');
<del> http.Server(function() {
<del>
<del> }).listen(common.PORT, '127.0.0.1');
<add> require('http').Server(common.noop).listen(0, '127.0.0.1');
<ide> } e... | 1 |
Python | Python | remove unused import | a89a6000e5b4170d3f7c871088885159c98912ae | <ide><path>spacy/it/__init__.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals, print_function
<ide>
<del>from os import path
<del>
<ide> from ..language import Language
<ide> from ..attrs import LANG
<ide>
<ide><path>spacy/nl/__init__.py
<ide> # encoding: utf8
<ide> from __future__ import unico... | 4 |
Python | Python | fix mypy issues in ``airflow/macros`` | 72eb0d3a5500210a8e2a83121bef6ea686f0af53 | <ide><path>airflow/macros/__init__.py
<ide> from typing import Any, Optional
<ide>
<ide> import dateutil # noqa
<add>from pendulum import DateTime
<ide>
<ide> from airflow.macros import hive # noqa
<ide>
<ide> def ds_format(ds: str, input_format: str, output_format: str) -> str:
<ide> return datetime.strptime(... | 1 |
Javascript | Javascript | improve unicode support | 8fb5fe28a45cc884567cd39e3b2f6b4272917af6 | <ide><path>lib/internal/cli_table.js
<ide> const {
<ide> ObjectPrototypeHasOwnProperty,
<ide> } = primordials;
<ide>
<del>const { getStringWidth } = require('internal/readline/utils');
<add>const { getStringWidth } = require('internal/util/inspect');
<ide>
<ide> // The use of Unicode characters below is the only no... | 11 |
Javascript | Javascript | add currentheight constant to status bar docs | a609d1c2b78fb2493935b065afa52413313ea199 | <ide><path>Examples/UIExplorer/js/StatusBarExample.js
<ide> const examples = [{
<ide> render() {
<ide> return (
<ide> <View>
<del> <Text>Height: {StatusBar.currentHeight} pts</Text>
<add> <Text>Height (Android only): {StatusBar.currentHeight} pts</Text>
<ide> </View>
<ide> );
<ide> ... | 2 |
PHP | PHP | apply fixes from styleci | 6d9a3523f47f7f73553ceee93495f960846cd41a | <ide><path>src/Illuminate/Session/Middleware/StartSession.php
<ide> namespace Illuminate\Session\Middleware;
<ide>
<ide> use Closure;
<del>use Illuminate\Contracts\Cache\Factory as CacheFactory;
<ide> use Illuminate\Contracts\Session\Session;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Session\SessionManag... | 1 |
Javascript | Javascript | prepare test-hash-seed for ci | f2e3a4ed8edf4675e3ec409a8430f6547660960a | <ide><path>test/pummel/test-hash-seed.js
<ide>
<ide> // Check that spawn child doesn't create duplicated entries
<ide> require('../common');
<add>const Countdown = require('../common/countdown');
<ide> const REPETITIONS = 2;
<ide> const assert = require('assert');
<ide> const fixtures = require('../common/fixtures');
... | 1 |
Ruby | Ruby | read formula text in binmode | 62e79c8d09d978f0f9106ebc7694d4fc55fc3241 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def text
<ide>
<ide> class FormulaText
<ide> def initialize path
<del> @text = path.open('r') { |f| f.read }
<add> @text = path.open("rb", &:read)
<ide> end
<ide>
<ide> def without_patch | 1 |
Javascript | Javascript | remove the fundamental internals | 4ecf11977c46966d3deedcdc71f1280a34607d1d | <ide><path>packages/react-art/src/ReactARTHostConfig.js
<ide> export function clearContainer(container) {
<ide> // TODO Implement this
<ide> }
<ide>
<del>export function getFundamentalComponentInstance(fundamentalInstance) {
<del> throw new Error('Not yet implemented.');
<del>}
<del>
<del>export function mountFunda... | 41 |
Text | Text | convert the number component to listitem | 7340fa9d933781747be0c3ac9850e264590fe5cd | <ide><path>docs/docs/lists-and-keys.md
<ide> ReactDOM.render(
<ide> );
<ide> ```
<ide>
<del>[Try it out on Codepen.](https://codepen.io/gaearon/pen/GjPyQr?editors=0011)
<add>[Try it out on CodePen.](https://codepen.io/gaearon/pen/GjPyQr?editors=0011)
<ide>
<ide> This code displays a bullet list of numbers between 1 a... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.