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 |
|---|---|---|---|---|---|
Ruby | Ruby | remove unused literal introduced in | 0ac549a49a690416865793e48bd7c3d3afe91a94 | <ide><path>actionpack/lib/action_dispatch/http/content_security_policy.rb
<ide> def apply_mapping(source)
<ide> def build_directives(context, nonce)
<ide> @directives.map do |directive, sources|
<ide> if sources.is_a?(Array)
<del> "#{directive} #{build_directive(sources, context).join... | 1 |
Ruby | Ruby | handle `nil` first character | 720a00e68ead46fe9669dc2fce355dbf2d3a0d09 | <ide><path>Library/Homebrew/rubocops/formula_desc.rb
<ide> def autocorrect(node)
<ide> first_word = string_content(node).split.first
<ide> unless VALID_LOWERCASE_WORDS.include?(first_word)
<ide> first_char = first_word.to_s.chars.first
<del> correction.sub!(/^(['"]?)([... | 1 |
Ruby | Ruby | add a default parameter for resolver#initialize | 78ced08338e227f6cc380bb3e0f2ee8cda131d9a | <ide><path>actionpack/lib/action_view/template/resolver.rb
<ide> module ActionView
<ide> # Abstract superclass
<ide> class Resolver
<del> def initialize(options)
<add> def initialize(options = {})
<ide> @cache = options[:cache]
<ide> @cached = {}
<ide> end | 1 |
Python | Python | advertise features in rimuhosting driver | 324983fdf8487ca3ccaaf4af7a2f1edec30d6882 | <ide><path>libcloud/drivers/rimuhosting.py
<ide> # Copyright 2009 RedRata Ltd
<ide>
<ide> from libcloud.types import Provider, NodeState
<del>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node
<add>from libcloud.base import ConnectionKey, Response, NodeAuthPassword, NodeDriver, NodeSize, Nod... | 1 |
Python | Python | show detailed info about active tasks | 233087e5577945c1ed46c75cb8b4e2c0c5a46658 | <ide><path>celery/worker/control/builtins.py
<ide> from celery import conf
<ide> from celery.backends import default_backend
<ide> from celery.registry import tasks
<add>from celery.serialization import pickle
<ide> from celery.utils import timeutils
<ide> from celery.worker import state
<ide> from celery.worker.state ... | 3 |
Go | Go | use separate exec-root for test daemons | 0d9b94c4c5d6b4f03a7a86e731e4110e9f27a51e | <ide><path>integration-cli/daemon.go
<ide> func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
<ide> d.Command,
<ide> "--containerd", "/var/run/docker/libcontainerd/docker-containerd.sock",
<ide> "--graph", d.root,
<add> "--exec-root", filepath.Join(d.folder, "exec-root"),
<ide> "--... | 2 |
Python | Python | remove unused imports | b1e2466272fa0c2ee08701c3d86a03088218b69e | <ide><path>numpy/distutils/tests/test_misc_util.py
<ide> #!/usr/bin/env python
<ide>
<del>import os
<del>import sys
<ide> from numpy.testing import *
<ide> from numpy.distutils.misc_util import appendpath, minrelpath, gpaths, rel_path
<del>from os.path import join, sep
<add>from os.path import join, sep, dirname
<ide>... | 1 |
Javascript | Javascript | patch support for 13.x | d8aa38c539a73018f604767b40a4698af20b02db | <ide><path>deps/npm/lib/utils/unsupported.js
<ide> var supportedNode = [
<ide> {ver: '9', min: '9.0.0'},
<ide> {ver: '10', min: '10.0.0'},
<ide> {ver: '11', min: '11.0.0'},
<del> {ver: '12', min: '12.0.0'}
<add> {ver: '12', min: '12.0.0'},
<add> {ver: '13', min: '13.0.0'}
<ide> ]
<ide> var knownBroken = '<6.0.... | 1 |
Java | Java | incorporate review suggestions | be560b58da1c89e56091cd109f620d7eda3a24fb | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public static <T> Observable<T> concat(Observable<T>... source) {
<ide> * @return an Observable that emits the same objects, then calls the action.
<ide> * @see <a href="http://msdn.microsoft.com/en-us/library/hh212133(v=vs.103).aspx">MSDN: Observa... | 2 |
Javascript | Javascript | fix options.end of fs.readstream() | 82bdf8fba2d3f197522e31ee49f3cc4f5f52bd53 | <ide><path>lib/fs.js
<ide> function ReadStream(path, options) {
<ide> this.flags = options.flags === undefined ? 'r' : options.flags;
<ide> this.mode = options.mode === undefined ? 0o666 : options.mode;
<ide>
<del> this.start = options.start;
<add> this.start = typeof this.fd !== 'number' && options.start === un... | 2 |
PHP | PHP | fix line length | e70d9d51351bded6e90e81d883bad203c3759a9c | <ide><path>src/Illuminate/Routing/Router.php
<ide> protected function substituteImplicitBindings($route)
<ide> foreach ($route->signatureParameters(Model::class) as $parameter) {
<ide> $class = $parameter->getClass();
<ide>
<del> if (array_key_exists($parameter->name, $parameters) && ! $... | 1 |
Javascript | Javascript | fix global leaks in test-buffer.js | fbdff52b447efd21c5a552bc47a113ffbe6e4d95 | <ide><path>test/simple/test-buffer.js
<del>common = require("../common");
<del>assert = common.assert
<del>assert = require("assert");
<add>var common = require("../common");
<add>var assert = require("assert");
<ide>
<ide> var Buffer = require('buffer').Buffer;
<ide>
<ide> assert.deepEqual(f, new Buffer([252, 98, 10... | 1 |
Javascript | Javascript | report results properly to test.py from driver.js | 7cbdc982c51855f6c064a11f67ae0cf4f93c66be | <ide><path>test/driver.js
<ide> function nextTask() {
<ide> }
<ide>
<ide> function isLastPage(task) {
<del> return (!task.pdfDoc || (task.pageNum > task.pdfDoc.numPages));
<add> return (task.pageNum > task.pdfDoc.numPages);
<ide> }
<ide>
<ide> function nextPage(task, loadError) {
<add> var failure = loadError || '... | 1 |
Javascript | Javascript | fix all broken links | a0b35161a6b9143ee89853e5c924d7855a488c25 | <ide><path>src/Injector.js
<ide> * * `self` - "`this`" to be used when invoking the function.
<ide> * * `fn` - the function to be invoked. The function may have the `$inject` property which
<ide> * lists the set of arguments which should be auto injected
<del> * (see {@link guide.di dependency... | 2 |
Text | Text | use american spelling as per style guide | 0b7889582428b3cf1ea0ee48768854a2ca63478c | <ide><path>doc/guides/backporting-to-release-lines.md
<ide> hint: and commit the result with 'git commit'
<ide> 2. Include the backport target in the pull request title in the following
<ide> format — `[v6.x backport] <commit title>`.
<ide> Example: `[v6.x backport] process: improve performance of nextTi... | 1 |
Ruby | Ruby | avoid nil error | 7e31574c3f23fdb2c27ab5d7d552e49792d0bddb | <ide><path>Library/Homebrew/utils/ast.rb
<ide> def include_runtime_cpu_detection?
<ide> return false if install_node.blank?
<ide>
<ide> install_node.each_node.any? do |node|
<del> node.send_type? && node.receiver.const_name == "ENV" && node.method_name == :runtime_cpu_detection
<add> ... | 1 |
Python | Python | add sol3 to project_euler/problem_08 | 52cf66861771cf75d9be52c9a99dcb54737a77cc | <ide><path>project_euler/problem_08/sol3.py
<add># -*- coding: utf-8 -*-
<add>"""
<add>The four adjacent digits in the 1000-digit number that have the greatest
<add>product are 9 × 9 × 8 × 9 = 5832.
<add>
<add>73167176531330624919225119674426574742355349194934
<add>96983520312774506326239578318016984801869478851843
<ad... | 1 |
Text | Text | change "wil" to "will" | d4675c56b5df2d48354ba9e236d9508f29a6648a | <ide><path>docs/basic-features/data-fetching.md
<ide> Using `getInitialProps` will make the page opt-in to on-demand [server-side rend
<ide> // Next.js will execute `getInitialProps`
<ide> // It will wait for the result of `getInitialProps`
<ide> // When the results comes back Next.js will render the page.
<del>// Next... | 1 |
Python | Python | propagate cloud_environment to connection class | 018e09f62d02ba930639e230f08c562229f63eee | <ide><path>libcloud/common/azure_arm.py
<ide> class AzureResourceManagementConnection(ConnectionUserAndKey):
<ide> rawResponseCls = RawResponse
<ide>
<ide> def __init__(self, key, secret, secure=True, tenant_id=None,
<del> subscription_id=None, **kwargs):
<add> subscription_id=N... | 2 |
Ruby | Ruby | remove confusing xquartz annotation | 120ce10730acfeb458801fcc24042ed34c463251 | <ide><path>Library/Homebrew/cmd/--config.rb
<ide> def describe_path path
<ide>
<ide> def describe_x11
<ide> return "N/A" unless MacOS::XQuartz.installed?
<del> return "XQuartz #{MacOS::XQuartz.version} in " + describe_path(MacOS::XQuartz.prefix)
<add> return "#{MacOS::XQuartz.version} in " + describe_path(... | 1 |
Javascript | Javascript | improve docs computed filter | b42569172fc44dc22af93360ab439c9cd226454a | <ide><path>packages/ember-runtime/lib/computed/reduce_computed_macros.js
<ide> export function mapBy(dependentKey, propertyKey) {
<ide> hamster.get('remainingChores'); // [{name: 'write more unit tests', done: false}]
<ide> ```
<ide>
<add> You can also use `@each.property` in your dependent key, the callback will... | 1 |
Text | Text | add info about a502703 to rails 5 release notes | c427033e7a95c7c80d8aec04c8b04f041e5cde4d | <ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][active-record] for detailed changes.
<ide> * Removed support for `activerecord-deprecated_finders` gem.
<ide> ([commit](https://github.com/rails/rails/commit/78dab2a8569408658542e462a957ea5a35aa4679))
<ide>
<add>* Removed `Acti... | 1 |
Ruby | Ruby | use rails 3.1 `change` method in model generator | 9e64dfad0df4ed8a10d2ad2a17cd0848017d652c | <ide><path>activerecord/lib/rails/generators/active_record/model/templates/migration.rb
<ide> class <%= migration_class_name %> < ActiveRecord::Migration
<del> def up
<add> def change
<ide> create_table :<%= table_name %> do |t|
<ide> <% for attribute in attributes -%>
<ide> t.<%= attribute.type %> :<%= att... | 2 |
Javascript | Javascript | add common script | 00e1962495f9d42b7bf403952566e420acdf48d0 | <ide><path>benchmark/common.js
<add>var assert = require('assert');
<add>var path = require('path');
<add>
<add>exports.PORT = process.env.PORT || 12346;
<add>
<add>exports.createBenchmark = function(fn, options) {
<add> return new Benchmark(fn, options);
<add>};
<add>
<add>function Benchmark(fn, options) {
<add> thi... | 1 |
Ruby | Ruby | add docs for having, lock and readonly | e68f63e6048aae61954904125b33e02a6c8934e5 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def where!(opts, *rest)
<ide> self
<ide> end
<ide>
<add> # Allows to specify a HAVING clause. Note that you can't use HAVING
<add> # without also specifying a GROUP clause.
<add> #
<add> # Order.having('SUM(price) > 30').... | 1 |
Text | Text | change webflow link to point to github per request | 1ba1480b4a279e13a680763ee7a26d49691b0ea7 | <ide><path>PATRONS.md
<ide> The work on Redux was [funded by the community](https://www.patreon.com/reactdx).
<ide> Meet some of the outstanding companies and individuals that made it possible:
<ide>
<del>* [Webflow](https://webflow.com/)
<add>* [Webflow](https://github.com/webflow)
<ide> * [Chess iX](http://www.che... | 1 |
Ruby | Ruby | add test for mpi choice cop's autocorrect | 65fbcc86d0c51c1ae04a6224b82d8fcf696632d3 | <ide><path>Library/Homebrew/test/rubocops/lines_spec.rb
<ide> class Foo < Formula
<ide> ^^^^^^^^^^^^^^^^^^ Use 'depends_on "open-mpi"' instead of 'depends_on "mpich"'.
<ide> end
<ide> RUBY
<add>
<add> expect_correction(<<~RUBY)
<add> class Foo < Formula
<add> desc "foo"
<add... | 1 |
PHP | PHP | prefix an option `0` that publishes all | a74c4439a0762722b3173ac5ed58eecb43f49aad | <ide><path>src/Illuminate/Foundation/Console/VendorPublishCommand.php
<ide> protected function providerToPublish()
<ide> return $this->option('provider');
<ide> }
<ide>
<del> return $this->choice(
<add> $choice = $this->choice(
<ide> "Which package's files would you like t... | 1 |
Go | Go | prevent breakout in untar | 1852cc38415c3d63d18c2938af9c112fbc4dfc10 | <ide><path>pkg/archive/archive.go
<ide> import (
<ide> "github.com/docker/docker/pkg/fileutils"
<ide> "github.com/docker/docker/pkg/pools"
<ide> "github.com/docker/docker/pkg/promise"
<add> "github.com/docker/docker/pkg/symlink"
<ide> "github.com/docker/docker/pkg/system"
<ide> )
<ide>
<ide> func createTarFile(pat... | 2 |
Javascript | Javascript | fix tests by ignoring off screen lines | 2bcfd934c0ad2e44a7449d4b45f889fb7c153a34 | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> it('renders lines and line numbers for the visible region', async () => {
<ide> const {component, element, editor} = buildComponent({rowsPerTile: 3, autoHeight: false})
<ide>
<del> expect(element.querySelec... | 2 |
Ruby | Ruby | run periodic cleanup after installing all packages | 71ab2f6e7afee7307471cdd61d828c48b68e4c25 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def initialize(*args, dry_run: false, scrub: false, days: nil, cache: HOMEBREW_C
<ide>
<ide> def self.install_formula_clean!(f, dry_run: false)
<ide> return if Homebrew::EnvConfig.no_install_cleanup?
<add> return unless f.latest_version_installed?
<add> ... | 4 |
Javascript | Javascript | remove needless regexp flags | d174e44c77c6330c98f6d5c3bc24782d0e25f529 | <ide><path>test/parallel/test-http-full-response.js
<ide> function runAb(opts, callback) {
<ide> const command = `ab ${opts} http://127.0.0.1:${server.address().port}/`;
<ide> exec(command, function(err, stdout, stderr) {
<ide> if (err) {
<del> if (/ab|apr/mi.test(stderr)) {
<add> if (/ab|apr/i.test(s... | 7 |
Ruby | Ruby | fix exception translation | 5e5118aa8ba821af6e615cfd2903b848ff8a9177 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def close
<ide>
<ide> protected
<ide>
<del> def translate_exception(e, sql)
<add> def translate_exception_class(e, sql)
<ide> message = "#{e.class.name}: #{e.message}: #{sql}"
<ide> @logger.error me... | 2 |
Go | Go | expose endpoint ids in their public interface | d449658d91011304b1a3520de9fe694c525aeafc | <ide><path>libnetwork/network.go
<ide> type Network interface {
<ide>
<ide> // Endpoint represents a logical connection between a network and a sandbox.
<ide> type Endpoint interface {
<add> // A system generated id for this network.
<add> ID() string
<add>
<ide> // Delete endpoint.
<ide> Delete() error
<ide> }
<ide... | 1 |
PHP | PHP | fix failing xml tests | f4828df777614f53e03ac3d0c3d714cdb149a5aa | <ide><path>tests/TestCase/Utility/XmlTest.php
<ide> public function testFromArray()
<ide> $xmlText = <<<XML
<ide> <?xml version="1.0" encoding="UTF-8"?>
<ide> <tags>
<del> <tag id="1" name="defect"/>
<del> <tag id="2" name="enhancement"/>
<add> <tag id="1" name="defect"/>
<add> <tag id="2" name="enhancement"/... | 1 |
Javascript | Javascript | use localhost test instead of connecting to remote | 520ad586584a2758b5cdb118dc356f1936467838 | <ide><path>test/parallel/test-https-agent-unref-socket.js
<ide> if (!common.hasCrypto)
<ide>
<ide> const https = require('https');
<ide>
<del>const request = https.get('https://example.com');
<add>if (process.argv[2] === 'localhost') {
<add> const request = https.get('https://localhost:' + process.argv[3]);
<ide>
<... | 1 |
Python | Python | fix axis specification in tf | 24b5e80667c8998d7e5e9689085fecc92a9506d3 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def transpose(x):
<ide> # ELEMENT-WISE OPERATIONS
<ide>
<ide> def max(x, axis=None, keepdims=False):
<add> if axis is not None:
<add> axis = axis % len(x.get_shape())
<ide> return tf.reduce_max(x, reduction_indices=axis, keep_dims=keepdims)
<ide>
<ide... | 2 |
Python | Python | fix num_residual_units for w28-10 | 55d7a22cf50a53f735cb1ccbf484d130277ca513 | <ide><path>resnet/resnet_model.py
<ide> def _build_model(self):
<ide> # comparably good performance.
<ide> # https://arxiv.org/pdf/1605.07146v1.pdf
<ide> # filters = [16, 160, 320, 640]
<del> # Update hps.num_residual_units to 9
<add> # Update hps.num_residual_units to 4
<ide>
<ide> wit... | 1 |
Java | Java | reuse qossettings in jmstemplate | 4ffdb50681a9e4c81ccb1d1eb46ace804a3af0ad | <ide><path>spring-jms/src/main/java/org/springframework/jms/core/JmsTemplate.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use th... | 2 |
Text | Text | fix typo in builder.md | afcfa77dd80defa996d7d0e073d809ac03493f05 | <ide><path>docs/reference/builder.md
<ide> user 0m 0.03s
<ide> sys 0m 0.03s
<ide> ```
<ide>
<del>> **Note:** you can over ride the `ENTRYPOINT` setting using `--entrypoint`,
<add>> **Note:** you can override the `ENTRYPOINT` setting using `--entrypoint`,
<ide> > but this can only set the binary to *exec* (no `sh -c` w... | 1 |
Text | Text | adjust readme to mention link | a7fbd308be3030324bd2fc60e91a57e13c7e5163 | <ide><path>packages/next/README.md
<ide> export default Post
<ide> Any route like `/post/1`, `/post/abc`, etc will be matched by `pages/post/[pid].js`.
<ide> The matched path parameter will be sent as a query parameter to the page.
<ide>
<add>> Note: A `<Link>` for a Dynamic Route looks like so:
<add>>
<add>> ```jsx
<... | 1 |
Ruby | Ruby | use class << self | 6a74360f972c75c70b64e3b6f51bb7a64681e2e3 | <ide><path>railties/lib/initializer.rb
<ide> RAILS_ENV = (ENV['RAILS_ENV'] || 'development').dup unless defined?(RAILS_ENV)
<ide>
<ide> module Rails
<del> # The Configuration instance used to configure the Rails environment
<del> def self.configuration
<del> @@configuration
<del> end
<add> class << self
<add> ... | 1 |
Python | Python | move old examples | c36e8676aa2564ad9453603f34c1cdd08da6014a | <ide><path>examples/train_ner.py
<del>from __future__ import unicode_literals, print_function
<del>import json
<del>import pathlib
<del>import random
<del>
<del>import spacy
<del>from spacy.pipeline import EntityRecognizer
<del>from spacy.gold import GoldParse
<del>
<del>
<del>def train_ner(nlp, train_data, entity_type... | 2 |
Text | Text | explain variables in sass | 47ccf0ff8e5357db974a96900e96e60e27cd1df5 | <ide><path>guide/english/sass/index.md
<ide> ---
<ide> title: Sass
<ide> ---
<add>
<ide> Sass is a preprocessor scripting language that compiles CSS. It essentially brings the power of a standard programming language to your stylesheets. Sass files end with the `.scss` file extension.
<ide>
<ide> With Sass, you can m... | 1 |
Text | Text | convert all the links into markdown format | 9873dd800b77105fe17f583f0d036240ef334826 | <ide><path>guides/source/action_controller_overview.md
<ide> What Does a Controller Do?
<ide>
<ide> Action Controller is the C in MVC. After routing has determined which controller to use for a request, your controller is responsible for making sense of the request and producing the appropriate output. Luckily, Action... | 31 |
PHP | PHP | fix regression caused by pr | badc37b11489ce14c7488a33926473b5fdc67fba | <ide><path>src/Core/ObjectRegistry.php
<ide> abstract class ObjectRegistry
<ide> */
<ide> public function load($objectName, $config = [])
<ide> {
<del> if (empty($config) && !isset($this->_loaded[$objectName])) {
<del> list(, $name) = pluginSplit($objectName);
<del> } else {
<add> ... | 2 |
Mixed | Javascript | add bootstrap preset | 5801d6da046fde63bfc2db70a9ea0efb5f91e311 | <ide><path>src/Illuminate/Foundation/Console/PresetCommand.php
<ide> class PresetCommand extends Command
<ide> *
<ide> * @var string
<ide> */
<del> protected $signature = 'preset { type : The preset type (fresh, react) }';
<add> protected $signature = 'preset { type : The preset type (fresh, bootst... | 6 |
Text | Text | update english expressions by review comments | 78f4a9dad4fb92fb2175ff5afe5fb2d7938e9668 | <ide><path>docs/reference/run.md
<ide> driver. For detailed information on working with logging drivers, see
<ide> Fluentd logging driver for Docker. Writes log messages to fluentd (forward input). `docker logs`
<ide> command is not available for this logging driver.
<ide>
<del>Some options are supported by specifyin... | 1 |
Python | Python | add type annotation for get_driver and set_driver | f5a201637f517c86128ef049314996e3bc97e195 | <ide><path>libcloud/compute/providers.py
<ide> from __future__ import absolute_import
<ide>
<ide> from typing import Type
<add>from typing import Union
<ide> from types import ModuleType
<ide>
<ide> from libcloud.compute.types import Provider
<ide>
<ide>
<ide> def get_driver(provider):
<del> # type: (Provider) -... | 1 |
PHP | PHP | remove unused variable | 97ccbfb004e2f7d5c6e338c43f995c7b593a70c6 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function beforeRender(EventInterface $event): void
<ide> public function accepts($type = null)
<ide> {
<ide> $controller = $this->getController();
<del> $request = $controller->getRequest();
<ide> /** @var array ... | 1 |
Javascript | Javascript | remove unused fields from error dialog | e3b7520174fbf7e22c07c1c5107a8dd60f2b23d1 | <ide><path>Libraries/Core/ReactFiberErrorDialog.js
<ide> */
<ide>
<ide> export type CapturedError = {
<del> +componentName: ?string,
<ide> +componentStack: string,
<ide> +error: mixed,
<ide> +errorBoundary: ?{...},
<del> +errorBoundaryFound: boolean,
<del> +errorBoundaryName: string | null,
<del> +willRetry... | 1 |
Text | Text | add documentation for response.flushheaders() | 0d32b9de77891fcb1775f6261cd980e0e9358862 | <ide><path>doc/api/http.md
<ide> request was initiated via [`http.get()`][].
<ide> added: v1.6.0
<ide> -->
<ide>
<del>Flush the request headers.
<add>Flushes the request headers.
<ide>
<ide> For efficiency reasons, Node.js normally buffers the request headers until
<ide> `request.end()` is called or the first chunk o... | 1 |
Javascript | Javascript | flip atomics.notify alias | a7b59d6204656f45abb91158648f19687b7c73b0 | <ide><path>lib/internal/per_context.js
<ide>
<ide> // https://github.com/nodejs/node/issues/21219
<ide> // Adds Atomics.notify and warns on first usage of Atomics.wake
<add> // https://github.com/v8/v8/commit/c79206b363 adds Atomics.notify so
<add> // now we alias Atomics.wake to notify so that we can remove it
... | 1 |
Javascript | Javascript | ignore debughash class | 618960469d91cf8fa7787e5ec1f5a7fbfabd5ccb | <ide><path>lib/util/createHash.js
<ide> class BulkUpdateDecorator extends Hash {
<ide> }
<ide> }
<ide>
<del>/**
<del> * istanbul ignore next
<del> */
<add>/* istanbul ignore next */
<ide> class DebugHash extends Hash {
<ide> constructor() {
<ide> super(); | 1 |
Go | Go | remove use of deprecated client.newclient() | 3a4bb96ab74125c95702b818725ba92a27e3a450 | <ide><path>client/hijack_test.go
<ide> func TestTLSCloseWriter(t *testing.T) {
<ide> serverURL, err := url.Parse(ts.URL)
<ide> assert.NilError(t, err)
<ide>
<del> client, err := NewClient("tcp://"+serverURL.Host, "", ts.Client(), nil)
<add> client, err := NewClientWithOpts(WithHost("tcp://"+serverURL.Host), WithHTTP... | 3 |
Javascript | Javascript | fix pipeline regression | d332ae4799fabc3852a22706b3d3496ebfcbf038 | <ide><path>lib/_http_server.js
<ide> function connectionListener(socket) {
<ide> }
<ide> }
<ide>
<del> if (socket._paused) {
<add> if (socket._paused && socket.parser) {
<ide> // onIncoming paused the socket, we should pause the parser as well
<ide> debug('pause parser');
<ide> socket... | 2 |
Ruby | Ruby | add audit for unversioned urls with checksum | 1064678d3dd8b0acc03a9a71abab09d1d818990c | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_sha256
<ide> return unless cask.sha256
<ide>
<ide> check_sha256_no_check_if_latest
<add> check_sha256_no_check_if_unversioned
<ide> check_sha256_actually_256
<ide> check_sha256_invalid
<ide> end
<ide> def check_sha256_no_check_i... | 1 |
Python | Python | replace deprecated iteritems() for items() | 64161f2a8616771a37994e24444bbb7d74df8f62 | <ide><path>tools/gyp/pylib/gyp/generator/compile_commands_json.py
<ide> def CalculateVariables(default_variables, params):
<ide>
<ide> def AddCommandsForTarget(cwd, target, params, per_config_commands):
<ide> output_dir = params['generator_flags']['output_dir']
<del> for configuration_name, configuration in target[... | 1 |
PHP | PHP | fix backwards compatibility with commandrunner | f74123b40c3d49299f0691cc7f4ab4b6e0b6a74a | <ide><path>src/Console/CommandRunner.php
<ide> use Cake\Event\EventManagerTrait;
<ide> use Cake\Shell\HelpShell;
<ide> use Cake\Shell\VersionShell;
<add>use Cake\Utility\Inflector;
<ide> use RuntimeException;
<ide>
<ide> /**
<ide> protected function getShell(ConsoleIo $io, CommandCollection $commands, $name)
<ide> ... | 2 |
PHP | PHP | add a test for the table option | c7016a3f485fb484c60c0019d20d1e1e45837f9b | <ide><path>tests/TestCase/Console/Command/Task/FixtureTaskTest.php
<ide> public function testImportRecordsNoEscaping() {
<ide> $this->assertContains("'body' => 'Body \"value\"'", $result, 'Data has bad escaping');
<ide> }
<ide>
<add>/**
<add> * Test the table option.
<add> *
<add> * @return void
<add> */
<add> publ... | 1 |
Python | Python | fix coding style | 145ac875399f34e944ff3727742a8e02e41e6410 | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> class ResnetFPN(tf.keras.layers.Layer):
<ide> """Construct Resnet FPN layer."""
<ide>
<del> def __init__(self,
<del> backbone_classifier,
<del> fpn_features_generator,
<del> ... | 1 |
Python | Python | fix broken test | 777cc17de34622a7f8324a3ce42fbc589d86476b | <ide><path>tests/test_helpers.py
<ide> def test_send_file_range_request_xsendfile_invalid(self, app, client):
<ide> # https://github.com/pallets/flask/issues/2526
<ide> app.use_x_sendfile = True
<ide>
<add> @app.route('/')
<add> def index():
<add> return flask.send_file('static... | 1 |
Ruby | Ruby | add missing version tests | 0386f332229d0a6ca28813d84fc0eb480cd36310 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_raises_for_non_string_objects
<ide> assert_raises(TypeError) { Version.new(1) }
<ide> assert_raises(TypeError) { Version.new(:symbol) }
<ide> end
<add>
<add> def test_detected_from_url?
<add> refute Version.new("1.0").detected_from_url?
<add... | 2 |
Text | Text | fix wrong command | cac97b6bd86fb3b741ff3ce75cf422ef378854b9 | <ide><path>docs/sources/userguide/dockerimages.md
<ide> containers will get removed to clean things up.
<ide>
<ide> We can then create a container from our new image.
<ide>
<del> $ sudo docker run -t -i ouruser/sinatra /bin/bash
<add> $ sudo docker run -t -i ouruser/sinatra:v2 /bin/bash
<ide> root@8196968da... | 1 |
Python | Python | make system_info saner | d4ea24a49b077407a991afc1475a61dbd5e19335 | <ide><path>numpy/distutils/ccompiler.py
<ide> def CCompiler_compile(self, sources, output_dir=None, macros=None,
<ide> fcomp = getattr(self,'compiler_'+fc)
<ide> if fcomp is None:
<ide> continue
<del> display.append("%s(%s) options: '%s'" % (os.path.basename(fcomp[0]),... | 4 |
Javascript | Javascript | use gfm code-snippet rather than example tag | 7d1719e21917aaa13c6ae3cf2eb596e3e93082da | <ide><path>src/ngCookies/cookies.js
<ide> angular.module('ngCookies', ['ng']).
<ide> * Requires the {@link ngCookies `ngCookies`} module to be installed.
<ide> *
<ide> * @example
<del> <example>
<del> <file name="index.html">
<del> <script>
<del> function ExampleController($cookies) {
<del>... | 1 |
Ruby | Ruby | remove unnecessary empty block | eec50f0a9a80098665b80c28f2684111480ea5be | <ide><path>Library/Homebrew/test/test_fails_with.rb
<ide> def test_fails_with_build
<ide> end
<ide>
<ide> def test_fails_with_block_without_build
<del> fails_with(:clang) { }
<add> fails_with(:clang)
<ide> cc = build_cc(:clang, 425)
<ide> assert_fails_with cc
<ide> end | 1 |
Javascript | Javascript | provide support for inline variable hinting | 21c70729d9269de85df3434c431c2f18995b0f7b | <ide><path>docs/spec/ngdocSpec.js
<ide> describe('ngdoc', function() {
<ide> toMatch('</pre>\n\n<h1 id="one">One</h1>\n\n<pre');
<ide> });
<ide>
<add> it('should replace inline variable type hints', function() {
<add> expect(new Doc().markdown('{@type string}')).
<add> toMatch(/<a\s+.*?class... | 3 |
Text | Text | use permanent image link for atom logo | be1c1f87190e6b48c2dd025228389658cb71ae10 | <ide><path>README.md
<ide> # Atom — The hackable, ~~collaborative~~ editor of tomorrow!
<ide>
<del>
<add>
<ide>
<ide> Check out our [guides and API documentation](https://www.atom.io/docs/latest/).
<ide... | 1 |
Text | Text | fix upgrade command | a80c404cc61344067ae319ff82f78a22b31d4dbf | <ide><path>docs/installation/linux/ubuntulinux.md
<ide> to start the docker daemon on boot
<ide>
<ide> To install the latest version of Docker with `apt-get`:
<ide>
<del> $ apt-get upgrade docker-engine
<add> $ sudo apt-get upgrade docker-engine
<ide>
<ide> ## Uninstallation
<ide> | 1 |
Javascript | Javascript | use dashes to format invalid times | f515ac02363b490974a052a772632d521ec090a6 | <ide><path>src/js/control-bar/time-display.js
<ide> vjs.DurationDisplay.prototype.createEl = function(){
<ide> };
<ide>
<ide> vjs.DurationDisplay.prototype.updateContent = function(){
<del> if (this.player_.duration()) {
<del> this.content.innerHTML = '<span class="vjs-control-text">Duration Time </span>' + vjs.... | 3 |
PHP | PHP | remove space before object operator | ee4be044fa50efc76690eeb1881f01dfa001c2bb | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> protected function _sync($shift, $dir, $conditions, $mark = false)
<ide> $exp = $query->newExpr();
<ide>
<ide> $movement = clone $exp;
<del> $movement ->add($field)->add("$shift")->tieWith($dir);
<add> $movement->add($fiel... | 1 |
PHP | PHP | use signature format for migrate make command | dbc14072407800b5d3a3ccbc427f721293f9dd10 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php
<ide> namespace Illuminate\Database\Console\Migrations;
<ide>
<ide> use Illuminate\Foundation\Composer;
<del>use Symfony\Component\Console\Input\InputOption;
<del>use Symfony\Component\Console\Input\InputArgument;
<ide> use Illuminate\Databas... | 1 |
Text | Text | add link to w&b to see whole training logs | a0eebdc404b6f84f75719fe6091e18831a974674 | <ide><path>model_cards/mrm8488/gpt2-imdb-neg/README.md
<ide> A few examples of the model response to a query before and after optimisation:
<ide> |I have watched 3 episodes |with this guy and he is such a talented actor...| but the show is just plain awful and there ne...| 2.681171| -4.512792|
<ide> |We know that firef... | 1 |
Text | Text | drop the curl notes. unnecessary | 15ad94c6111735044dd6a38a9b48d23a22b8b18f | <ide><path>docs/api-guide/parsers.md
<ide> If you don't set the content type, most clients will default to using `'applicat
<ide>
<ide> As an example, if you are sending `json` encoded data using jQuery with the [.ajax() method][jquery-ajax], you should make sure to include the `contentType: 'application/json'` settin... | 1 |
Javascript | Javascript | remove stray console.log | 2a9a5e2318821ed24c4c3b44d1949e0cb3ef53f9 | <ide><path>lib/domain.js
<ide> Domain.prototype.bind = function(cb, interceptError) {
<ide> };
<ide>
<ide> Domain.prototype.dispose = function() {
<del> console.error('dispose', this, exports.active, process.domain)
<del>
<ide> if (this._disposed) return;
<ide>
<ide> // if we're the active domain, then get out n... | 1 |
Go | Go | fix typo in error message | 4ace1811b4a0c0a48f1aeeba996b8096a3a4bb2d | <ide><path>cmd/dockerd/service_windows.go
<ide> func (h *handler) Execute(_ []string, r <-chan svc.ChangeRequest, s chan<- svc.S
<ide> // Wait for initialization to complete.
<ide> failed := <-h.tosvc
<ide> if failed {
<del> logrus.Debug("Aborting service start due to failure during initializtion")
<add> logrus.De... | 1 |
Text | Text | improve documentation on runtime configuration | d51245b877598d1cc4e83f002dc2c3a976111cce | <ide><path>readme.md
<ide> Next.js is a minimalistic framework for server-rendered React applications.
<ide> - [Configuring the build ID](#configuring-the-build-id)
<ide> - [Customizing webpack config](#customizing-webpack-config)
<ide> - [Customizing babel config](#customizing-babel-config)
<del> - [Exposin... | 1 |
Javascript | Javascript | docs list.js code style whitespace | f0cace5c2c9d7a22cec30a50ee61125e1de5f551 | <ide><path>docs/list.js
<ide> var list = {
<add>
<ide> "Manual": {
<add>
<ide> "Getting Started": {
<ide> "Creating a scene": "manual/introduction/Creating-a-scene",
<ide> "Detecting WebGL and browser compatibility": "manual/introduction/Detecting-WebGL-and-browser-compatibility",
<i... | 1 |
Javascript | Javascript | move some img tests out of serverless mode | b0d36efb7460ef7cd43ef5f576cfe540fc6a173a | <ide><path>test/integration/image-component/default/test/index.test.js
<ide> function runTests(mode) {
<ide> }
<ide> })
<ide> }
<add>
<add> it('should have blurry placeholder when enabled', async () => {
<add> const html = await renderViaHTTP(appPort, '/blurry-placeholder')
<add> const $html = cheeri... | 1 |
Ruby | Ruby | fix incorrect code example | 6ac56ac93bd9e8a3e003f29eff2816218f0e5db6 | <ide><path>actionpack/lib/action_controller/metal/mime_responds.rb
<ide> def clear_respond_to
<ide> #
<ide> # def index
<ide> # @people = Person.all
<del> # respond_with(@person)
<add> # respond_with(@people)
<ide> # end
<ide> # end
<ide> # | 1 |
Python | Python | fix failing torchscript test for xlnet | d9fa1bad728f7dd78131b316686e18b8a8904196 | <ide><path>tests/test_modeling_common.py
<ide> def _create_and_check_torchscript(self, config, inputs_dict):
<ide> loaded_model.to(torch_device)
<ide> loaded_model.eval()
<ide>
<del> model_params = model.parameters()
<del> loaded_model_params = loaded_model.parameters()
<a... | 1 |
Java | Java | avoid deprecated mockito methods | 7f4904ed22208028e9c47e3ee4802ab94186fbaa | <ide><path>spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java
<ide> public void resolveEmbeddedValue() {
<ide> bf.addEmbeddedValueResolver(r3);
<ide> given(r1.resolveStringValue("A")).willReturn("B");
<ide> given(r2.resolveStringValue("B")).willReturn(null);
<del> g... | 2 |
Javascript | Javascript | hide buildat in examples | 0b566508fb5992d56db544e82765b8cebe1dd1fb | <ide><path>examples/template-common.js
<ide> function lessStrict(regExpStr) {
<ide>
<ide> const runtimeRegexp = /(```\s*(?:js|javascript)\n)?(.*)(\/\*\*\*\*\*\*\/ \(function\(modules\) \{ \/\/ webpackBootstrap\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\)\n\/\**\/\n)/;
<ide> const timeRegexp = /\s*Time: \d+ms/g;
<add>const build... | 1 |
Ruby | Ruby | remove duplicated test | 316665f3e7cdedd33ab7f1cfeff601516e55a598 | <ide><path>activerecord/test/cases/adapters/postgresql/uuid_test.rb
<ide> def self.name
<ide> end
<ide> end
<ide>
<del>class PostgresqlLargeKeysTest < ActiveRecord::TestCase
<del> include PostgresqlUUIDHelper
<del> include SchemaDumpingHelper
<del>
<del> def setup
<del> connection.create_table('big_serials', i... | 1 |
Ruby | Ruby | move ruby methods to fileutils extension | ea15442b9a9d594f8e62923473ff738f921b46bc | <ide><path>Library/Homebrew/extend/fileutils.rb
<ide> def copy_metadata(path)
<ide> end
<ide> end
<ide>
<add> RUBY_BIN = '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin'
<add>
<add> def rake *args
<add> system "#{RUBY_BIN}/rake", *args
<add> end
<add>
<add> def ruby *args
<add> system "... | 2 |
Text | Text | add jabortell to the contributors | 8790fd571c32aa1dd1be90dd4f5ba67843177281 | <ide><path>.github/contributors/jabortell.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
... | 1 |
Python | Python | replace looseversion by _pep440 | df8d1fd3c2077ca785b0948912162e03727ace6c | <ide><path>numpy/compat/__init__.py
<ide>
<ide> """
<ide> from . import _inspect
<add>from . import _pep440
<ide> from . import py3k
<ide> from ._inspect import getargspec, formatargspec
<ide> from .py3k import *
<ide><path>numpy/compat/_pep440.py
<add>"""Utility to compare pep440 compatible version strings.
<add>
<ad... | 9 |
Text | Text | update image docs with missing ios style warning | 954df6d13ebc01e1fa0902adfd443b208930bce8 | <ide><path>docs/Images.md
<ide> return (
<ide> );
<ide> ```
<ide>
<add>## iOS Border Radius Styles
<add>
<add>Please note that the following corner specific, border radius style properties are currently ignored by iOS's image component:
<add>
<add>* `borderTopLeftRadius`
<add>* `borderTopRightRadius`
<add>* `borderBot... | 1 |
Ruby | Ruby | replace _meth with _method to remove ambiguity | 06a19b0166a0856a6effa2d0f82fa0b578c12ef0 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def __update_callbacks(name) #:nodoc:
<ide>
<ide> # Install a callback for the given event.
<ide> #
<del> # set_callback :save, :before, :before_meth
<del> # set_callback :save, :after, :after_meth, if: :condition
<add> # ... | 1 |
PHP | PHP | apply fixes from styleci | 4c80f73c6e6793e7de55eb50009fab034046161d | <ide><path>src/Illuminate/Http/Request.php
<ide> public function __get($key)
<ide> }
<ide>
<ide> /**
<del> * {@inheritDoc}
<add> * {@inheritdoc}
<ide> */
<ide> public function __clone()
<ide> { | 1 |
Javascript | Javascript | start a worker for each cpu | 5ff2ae8389c8e4ea37709d02340f1b60c32f0737 | <ide><path>benchmark/http_simple_cluster.js
<ide> var os = require('os');
<ide>
<ide> if (cluster.isMaster) {
<ide> console.log('master running on pid %d', process.pid);
<del> for (var i = 1, n = os.cpus().length; i < n; ++i) cluster.fork();
<add> for (var i = 0, n = os.cpus().length; i < n; ++i) cluster.fork();
<... | 1 |
Javascript | Javascript | use ternary instead of conditional | 14daa4bdc13ab563fb5c21762db8bea52dd27a76 | <ide><path>src/ripgrep-directory-searcher.js
<ide> function processSubmatch (submatch, lineText, offsetRow) {
<ide> }
<ide>
<ide> function getText (input) {
<del> if (input.text) {
<del> return input.text
<del> }
<del>
<del> return Buffer.from(input.bytes, 'base64').toString()
<add> return input.text ? input.te... | 1 |
PHP | PHP | use cache folder instead of tmp for cache tests | 811000647287600e5ba92602013f79a0f83fd4c2 | <ide><path>tests/TestCase/Cache/CacheTest.php
<ide> protected function _configCache()
<ide> {
<ide> Cache::setConfig('tests', [
<ide> 'engine' => 'File',
<del> 'path' => TMP,
<add> 'path' => CACHE,
<ide> 'prefix' => 'test_'
<ide> ]);
<ide> }
<ide> pr... | 1 |
Python | Python | modernize python 2 code to get ready for python 3 | 4e06949072749f424c10e99f6bebb9fdf95d13db | <ide><path>File_Transfer_Protocol/ftp_send_receive.py
<del> """
<del> File transfer protocol used to send and receive files using FTP server.
<del> Use credentials to provide access to the FTP client
<add>"""
<add> File transfer protocol used to send and receive files using FTP server.
<add> Use credentials to pro... | 95 |
PHP | PHP | update wincache to return default values | 4844597e7131ca426b357b79bf0422765261407e | <ide><path>src/Cache/Engine/WincacheEngine.php
<ide> public function set($key, $value, $ttl = null)
<ide> *
<ide> * @param string $key Identifier for the data
<ide> * @param mixed $default Default value to return if the key does not exist.
<del> * @return mixed The cached data, or false if the data d... | 2 |
Javascript | Javascript | make jslint and igor happier | 9a8dbfef5151e8e92dc010a597b670e7687ebe9b | <ide><path>src/angular-mocks.js
<ide> angular.mock = {};
<ide> * - $browser.defer — enables testing of code that uses
<ide> * {@link angular.module.ng.$defer $defer} for executing functions via the `setTimeout` api.
<ide> */
<del>angular.mock.$BrowserProvider = function(){
<add>angular.mock.$BrowserProvider = func... | 1 |
PHP | PHP | reset global scopes when booted models get cleared | 84bd1731c43a941758e486e68b890d5b6dbde73c | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected static function bootTraits()
<ide> public static function clearBootedModels()
<ide> {
<ide> static::$booted = [];
<add> static::$globalScopes = [];
<ide> }
<ide>
<ide> /** | 1 |
Python | Python | fix mypy errors at kruskal_2 | 256c319ce231eb0a158ec3506e2236d48ca4d6a5 | <ide><path>graphs/minimum_spanning_tree_kruskal2.py
<ide> from __future__ import annotations
<ide>
<add>from typing import Generic, TypeVar
<ide>
<del>class DisjointSetTreeNode:
<add>T = TypeVar("T")
<add>
<add>
<add>class DisjointSetTreeNode(Generic[T]):
<ide> # Disjoint Set Node to store the parent and rank
<de... | 1 |
Python | Python | update lr in learningratescheduler. | 38231e8a434f1841b2e5027cc4a48501ac517d1e | <ide><path>keras/callbacks.py
<ide> def on_epoch_begin(self, epoch, logs=None):
<ide> if not isinstance(lr, (float, np.float32, np.float64)):
<ide> raise ValueError('The output of the "schedule" function '
<ide> 'should be float.')
<add> K.set_value(self.model.opt... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.