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 |
|---|---|---|---|---|---|
Text | Text | add missing semis after classes | ad27e0e9a187fea925dd0902aa229bc7c4bdb6c0 | <ide><path>doc/guides/cpp-style-guide.md
<ide> For plain C-like structs snake_case can be used.
<ide> ```cpp
<ide> struct foo_bar {
<ide> int name;
<del>}
<add>};
<ide> ```
<ide>
<ide> ### Space after `template`
<ide> struct foo_bar {
<ide> template <typename T>
<ide> class FancyContainer {
<ide> ...
<del>}
<add>};... | 1 |
Ruby | Ruby | add note about test path to create template | 6857e2ed34b35e2a8168f4cd47d3cc3e057a92bd | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def install
<ide> # This test will fail and we won't accept that! It's enough to just replace
<ide> # "false" with the main program this formula installs, but it'd be nice if you
<ide> # were more thorough. Run the test with `brew test #{name}`.
<a... | 1 |
Python | Python | add nodes names to duplicatenodenamewarning | 3626b4c9b82a44fa78d4fbea3e3abc7349ffdbf3 | <ide><path>celery/app/control.py
<ide> __all__ = ['Inspect', 'Control', 'flatten_reply']
<ide>
<ide> W_DUPNODE = """\
<del>Received multiple replies from node name: {0!r}.
<add>Received multiple replies from node {0}: {1}.
<ide> Please make sure you give each node a unique nodename using the `-n` option.\
<ide> """
<i... | 2 |
PHP | PHP | add documentation for schema | 8132247e3d06cb1b3fcf80fa9e288f457812a743 | <ide><path>src/Form/Schema.php
<ide> */
<ide> class Schema {
<ide>
<add>/**
<add> * The fields in this schema.
<add> *
<add> * @var array
<add> */
<ide> protected $_fields = [];
<ide>
<add>/**
<add> * The default values for fields.
<add> *
<add> * @var array
<add> */
<ide> protected $_fieldDefaults = [
<ide> 'ty... | 2 |
Text | Text | fix a typo in /doc/sources/reference/run.md | 64fd944e30c8c045f6d998cc5ca950ea272541b5 | <ide><path>docs/sources/reference/run.md
<ide> the number of containers running on the system.
<ide> For example, consider three containers, one has a cpu-share of 1024 and
<ide> two others have a cpu-share setting of 512. When processes in all three
<ide> containers attempt to use 100% of CPU, the first container woul... | 1 |
Text | Text | add v3.13.0-beta.1 to changelog | 1f5eee0f762a808d38ed1c466b5fa013fe0e6688 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.13.0-beta.1 (August 6, 2019)
<add>
<add>- [#16366](https://github.com/emberjs/ember.js/pull/16366) / [#16903](https://github.com/emberjs/ember.js/pull/16903) / [#17572](https://github.com/emberjs/ember.js/pull/17572) / [#17682](https://github.com/emberj... | 1 |
PHP | PHP | add method to get generated message body as string | 921a1d10510ba7da7430e1f9a6a8d4fdbe7e8839 | <ide><path>src/Mailer/Message.php
<ide> public function getBody(?string $type = null)
<ide> return $this->message;
<ide> }
<ide>
<add> /**
<add> * Get generated body as string.
<add> *
<add> * @param string $eol End of line string for imploding.
<add> * @return string
<add> * @see Me... | 2 |
Javascript | Javascript | add spaces to plugin names | d73ad04c72cf7944aa45b88010119b561e4acf9b | <ide><path>lib/BannerPlugin.js
<ide> class BannerPlugin {
<ide> if(arguments.length > 1)
<ide> throw new Error("BannerPlugin only takes one argument (pass an options object)");
<ide>
<del> validateOptions(bannerPluginSchema, options, "BannerPlugin");
<add> validateOptions(bannerPluginSchema, options, "Banner Pl... | 11 |
Javascript | Javascript | add proptype validation for next/head children | 98568046a328ec4fb050d8770ac1d06f69e509fc | <ide><path>packages/next-server/lib/head.js
<ide> function unique () {
<ide> }
<ide> }
<ide>
<add>if (process.env.NODE_ENV === 'development') {
<add> const exact = require('prop-types-exact')
<add>
<add> Head.propTypes = exact({
<add> children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes... | 1 |
Javascript | Javascript | fix bug in clonewithprops() | 1e980a146f2e500c4beaac2240b0a072eedb70d5 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponent = {
<ide> return instance;
<ide> };
<ide> ConvenienceConstructor.componentConstructor = Constructor;
<add> Constructor.ConvenienceConstructor = ConvenienceConstructor;
<ide> ConvenienceConstructor.originalSpec = spec;
... | 2 |
Text | Text | fix mad libs sample in spanish translation | f7f1b4cbc730cf54b03d64367b5c4c264ac54441 | <ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/word-blanks.spanish.md
<ide> localeTitle: Palabras en blanco
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Ahora usaremos nuestro conocimiento de cuerdas para construir un juego de palabras de ... | 1 |
Text | Text | fix process.stdout fd number | 88daf88bd3f6201095fbc0a70f2b672eee7f199a | <ide><path>doc/api/process.md
<ide> must call `process.stdin.resume()` to read from it. Note also that calling
<ide> * {Stream}
<ide>
<ide> The `process.stdout` property returns a [Writable][] stream connected to
<del>`stdout` (fd `2`).
<add>`stdout` (fd `1`).
<ide>
<ide> For example, to copy process.stdin to process... | 1 |
PHP | PHP | fix return typehints in tests | 30dab5436d3ca943199ece761d6b723f9785ec51 | <ide><path>tests/TestCase/Auth/FormAuthenticateTest.php
<ide> public function testAuthenticateSingleHash(string $username, ?string $password):
<ide> $this->assertSame(1, $passwordHasher->callCount);
<ide> }
<ide>
<del> public function userList()
<add> public function userList(): array
<ide> {
<id... | 111 |
Text | Text | use serve_static_files in guides [skip ci] | 85f7924af1c1af847bf5d6b5661feac057cf1084 | <ide><path>guides/source/configuring.md
<ide> numbers. New applications filter out passwords by adding the following `config.f
<ide>
<ide> * `secrets.secret_key_base` is used for specifying a key which allows sessions for the application to be verified against a known secure key to prevent tampering. Applications get ... | 2 |
Ruby | Ruby | use fetch for downloading bottles | d47cf55f68fb1d381cfbdc9de905dc33c7ce5a83 | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch
<ide> the_tarball, _ = f.fetch
<ide> next unless the_tarball.kind_of? Pathname
<ide>
<del> previous_md5 = f.instance_variable_get(:@md5).to_s.downcase
<add> bottle = install_bottle? f
<add>
<add> previous_md5 = f.instance_variable_get(... | 3 |
Javascript | Javascript | flow type vendor/core/merge.js | 419722bd07e7495a45feadc0ce116a832f880d98 | <ide><path>Libraries/vendor/core/merge.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<add> * @format
<ide> */
<ide>
<del>"use strict";
<add>'use strict';
<ide>
<ide> const mergeInto = require... | 1 |
PHP | PHP | restore old exception message | 94d9824a218098b6e1277bf1b7997fee031d9b27 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithDictionary.php
<ide> protected function getDictionaryKey($attribute)
<ide> return $attribute->value;
<ide> }
<ide>
<del> $msg = 'Model attribute value is an object but does not have a __toString method '.... | 1 |
Javascript | Javascript | remove string.prototype.split polyfill warning | 5c4792038474fe2c8107f925c066c260be09b2a5 | <ide><path>src/renderers/dom/ReactDOM.js
<ide> if (__DEV__) {
<ide> Date.now,
<ide> Function.prototype.bind,
<ide> Object.keys,
<del> String.prototype.split,
<ide> String.prototype.trim,
<ide> ];
<ide> | 1 |
PHP | PHP | update version on master | 62ccd385b89ca125f17d6ce45e3645517c6ce00a | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements HttpKernelInterface, TerminableIn
<ide> *
<ide> * @var string
<ide> */
<del> const VERSION = '4.2-dev';
<add> const VERSION = '4.3-dev';
<ide>
<ide> /**
<ide> * Indicates if the application has "booted". | 1 |
Javascript | Javascript | fix assertion order | 98d1d53b2009b72ef85792977d3cf68e2118b381 | <ide><path>test/parallel/test-utf8-scripts.js
<ide> const assert = require('assert');
<ide>
<ide> console.log('Σὲ γνωρίζω ἀπὸ τὴν κόψη');
<ide>
<del>assert.strictEqual(true, /Hellö Wörld/.test('Hellö Wörld'));
<add>assert.strictEqual(/Hellö Wörld/.test('Hellö Wörld'), true); | 1 |
Javascript | Javascript | use the new uri parser | f65b36eec1e3bf07307e926981b3ec57a0145c1f | <ide><path>lib/http.js
<ide> var STATUS_CODES = exports.STATUS_CODES = {
<ide> 505 : 'HTTP Version not supported'
<ide> };
<ide>
<del>/*
<del> parseUri 1.2.1
<del> (c) 2007 Steven Levithan <stevenlevithan.com>
<del> MIT License
<del>*/
<del>
<del>function decode (s) {
<del> return decodeURIComponent(s.replace(/\... | 1 |
Javascript | Javascript | change assertion to deprecation | 28504216e0cd9b8de8ee4bbb67da6f749addec44 | <ide><path>packages/ember-application/lib/utils/validate-type.js
<ide> export default function validateType(resolvedType, parsedName) {
<ide> return;
<ide> }
<ide>
<add> // 2.0TODO: Remove this deprecation warning
<add> if (parsedName.type === 'service') {
<add> Ember.deprecate(
<add> "In Ember 2.0 ser... | 2 |
Ruby | Ruby | use configure as the heuristic for autotools | 8df33f74467641de025cabbc3ace4433bb15be76 | <ide><path>Library/Homebrew/cmd/diy.rb
<ide> def diy
<ide>
<ide> if File.file? "CMakeLists.txt"
<ide> puts "-DCMAKE_INSTALL_PREFIX=#{prefix}"
<del> elsif File.file? "Makefile.am"
<add> elsif File.file? "configure"
<ide> puts "--prefix=#{prefix}"
<ide> else
<ide> raise "Couldn't determin... | 1 |
Ruby | Ruby | remove useless `gemfile` option | f200a52e164f9fa26bc4d0813c14281674c105d2 | <ide><path>railties/test/isolation/abstract_unit.rb
<ide> def build_app(options = {})
<ide> end
<ide> end
<ide>
<del> gemfile_path = "#{app_path}/Gemfile"
<del> if options[:gemfile].blank? && File.exist?(gemfile_path)
<del> File.delete gemfile_path
<del> end
<del>
<ide> routes... | 1 |
Python | Python | fix typo in project euler sol1.py | e5dd2b1eb74751e6f42cfc100c22792a799beedb | <ide><path>project_euler/problem_31/sol1.py
<ide> def two_pound(x):
<ide>
<ide>
<ide> def solution(n):
<del> """Returns the number of different ways can £n be made using any number of
<add> """Returns the number of different ways can n pence be made using any number of
<ide> coins?
<ide>
<ide> >>> solu... | 1 |
Javascript | Javascript | fix more memory leaks | f01d6f4e23412b868cbf5b65b9bc2128d9680924 | <ide><path>src/js/menu/menu.js
<ide> class Menu extends Component {
<ide> return;
<ide> }
<ide>
<del> component.on('blur', this.boundHandleBlur_);
<del> component.on(['tap', 'click'], this.boundHandleTapClick_);
<add> this.on(component, 'blur', this.boundHandleBlur_);
<add> this.on(component, ['t... | 5 |
Ruby | Ruby | skip the failing tests on rubinius for now | 562b0b23684333be8766dc73c419f7b753933626 | <ide><path>actionpack/test/controller/live_stream_test.rb
<ide> def test_write_to_stream
<ide> end
<ide>
<ide> def test_async_stream
<add> rubinius_skip "https://github.com/rubinius/rubinius/issues/2934"
<add>
<ide> @controller.latch = ActiveSupport::Concurrency::Latch.new
<ide> parts ... | 4 |
Ruby | Ruby | remove the default logger | 23faa711c951b93df7b6ba61239e47395b766fee | <ide><path>actioncable/lib/action_cable/server/configuration.rb
<ide> class Configuration
<ide> attr_accessor :url
<ide>
<ide> def initialize
<del> @logger = Rails.logger
<ide> @log_tags = []
<ide>
<ide> @connection_class = ApplicationCable::Connection | 1 |
Python | Python | remove uneeded code | bd73a15363295658e150754edf6d1073cbdb3975 | <ide><path>numpy/lib/format.py
<ide> def descr_to_dtype(descr):
<ide>
<ide> This function reverses the process, eliminating the empty padding fields.
<ide> '''
<del> if isinstance(descr, (str, dict)):
<add> if isinstance(descr, str):
<ide> # No padding removal needed
<ide> return numpy.dt... | 2 |
Ruby | Ruby | add support for prefetch-src directive | 1007191f31d7ce8486f1f32a5d700bbac66ae242 | <ide><path>actionpack/lib/action_dispatch/http/content_security_policy.rb
<ide> def generate_content_security_policy_nonce
<ide> manifest_src: "manifest-src",
<ide> media_src: "media-src",
<ide> object_src: "object-src",
<add> prefetch_src: "prefetch-src",
<ide> script_src:... | 2 |
Text | Text | fix typo in readme.md | a6c743e2d2df82e87956c24e187940ab3d3afac5 | <ide><path>examples/multi-part-library/README.md
<ide> This example demonstrates how to build a complex library with webpack. The libra
<ide>
<ide> When using this library with script tags it exports itself to the namespace `MyLibrary` and each part to a property in this namespace (`MyLibrary.alpha` and `MyLibrary.bet... | 1 |
Python | Python | get the correct instance | 1a16289edeea73253826916ca230af2bf30ba39f | <ide><path>rest_framework/tests/generics.py
<ide> def test_put_as_create_on_id_based_url(self):
<ide> content_type='application/json')
<ide> response = self.view(request, pk=5).render()
<ide> self.assertEquals(response.status_code, status.HTTP_201_CREATED)
<del> new_... | 1 |
PHP | PHP | fix model binding when cached | af806851931700e8dd8de0ac0333efd853b19f3d | <ide><path>src/Illuminate/Routing/AbstractRouteCollection.php
<ide> public function compile()
<ide> 'fallback' => $route->isFallback,
<ide> 'defaults' => $route->defaults,
<ide> 'wheres' => $route->wheres,
<add> 'bindingFields' => $route->bindingFields(),
<... | 3 |
Ruby | Ruby | make `tests` an internal command | c6f1ccc2157012cdbc7a70fa9cf8595a1fb5ac1a | <add><path>Library/Homebrew/cmd/tests.rb
<del><path>Library/Contributions/cmd/brew-tests.rb
<ide> def tests
<ide> end
<ide> end
<ide> end
<del>
<del>Homebrew.tests | 1 |
Python | Python | fix intention of loop in test_copyto_permut | ee7ca7d14cc073453b00d73102046515ea1b077c | <ide><path>numpy/core/tests/test_api.py
<ide> def test_copyto_permut():
<ide> r = np.zeros(power)
<ide> mask = np.array(l)
<ide> imask = np.array(l).view(np.uint8)
<del> imask[mask != 0] = 0xFF
<add> imask[mask != 0] = c
<ide> np.copyto(r, d, where=m... | 1 |
Python | Python | remove unnecessary import | 4491212da4430181cd4d35cee5d341de87b3ac0d | <ide><path>tests/keras/backend/test_backends.py
<del>import sys
<ide> import pytest
<ide> from numpy.testing import assert_allclose
<ide> import numpy as np | 1 |
Javascript | Javascript | reduce hash lookups for dom properties | 40963e503b4724241a3f738641bd8e4290ce4637 | <ide><path>src/renderers/dom/shared/DOMProperty.js
<ide> var DOMPropertyInjection = {
<ide> * @param {object} domPropertyConfig the config as described above.
<ide> */
<ide> injectDOMPropertyConfig: function(domPropertyConfig) {
<add> var Injection = DOMPropertyInjection;
<ide> var Properties = domProper... | 3 |
Javascript | Javascript | add tests for longitude wrapping | f9f4e265f4389a8ec49efaaa9dea9d72e4ee6d92 | <ide><path>test/geo/path-test.js
<ide> suite.addBatch({
<ide> path({type: "LineString", coordinates: [[0, 88], [180, 89]]});
<ide> assert.isTrue(testContext.buffer().filter(function(d) { return d.type === "lineTo"; }).length > 1);
<ide> }
<add> },
<add> "rotate([0, 0, 0])": {
<add> "lon... | 1 |
Go | Go | fix bad order of iptables filter rules | 6149b1f32f20dc971d4d18ae8e8a32d3d5704c42 | <ide><path>libnetwork/drivers/bridge/setup_ip_tables.go
<ide> func setupIPTablesInternal(bridgeIface string, addr net.Addr, icc, ipmasq, hairp
<ide> hpNatRule = iptRule{table: iptables.Nat, chain: "POSTROUTING", preArgs: []string{"-t", "nat"}, args: []string{"-m", "addrtype", "--src-type", "LOCAL", "-o", bridgeIface,... | 3 |
Ruby | Ruby | fix examples of number_to_percentage | 816b35e781271b0466b3f76a7c3241874331008d | <ide><path>activesupport/lib/active_support/number_helper.rb
<ide> def number_to_currency(number, options = {})
<ide> #
<ide> # ==== Examples
<ide> #
<del> # number_to_percentage(100) # => 100.000%
<del> # number_to_percentage('98') # ... | 1 |
Ruby | Ruby | add math tests | 2beafeddf0378c0b4b0780c0d57c694b79f1f710 | <ide><path>activerecord/test/cases/arel/attributes/math_test.rb
<add># frozen_string_literal: true
<add>
<add>require_relative "../helper"
<add>
<add>module Arel
<add> module Attributes
<add> class MathTest < Arel::Spec
<add> %i[* /].each do |math_operator|
<add> it "average should be compatiable with #... | 2 |
Python | Python | fix flaky order of returned dag runs | 2edab57d4e8ccbd5b8f66c3951615c169fb0543e | <ide><path>airflow/www/utils.py
<ide> def get_mapped_summary(parent_instance, task_instances):
<ide>
<ide>
<ide> def get_task_summaries(task, dag_runs: List[DagRun], session: Session) -> List[Dict[str, Any]]:
<del> tis = session.query(
<del> TaskInstance.dag_id,
<del> TaskInstance.task_id,
<del> ... | 2 |
Go | Go | move types around in native driver | 8db740a38e333158e613bc5b3a7acc2605131581 | <ide><path>execdriver/native/driver.go
<ide> import (
<ide> "errors"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/execdriver"
<del> "github.com/dotcloud/docker/execdriver/lxc"
<ide> "github.com/dotcloud/docker/pkg/cgroups"
<ide> "github.com/dotcloud/docker/pkg/libcontainer"
<ide> "github.com/dotcloud/docker/pkg/... | 3 |
Ruby | Ruby | add bottle stanza by traversing ast | b8aa67be5b0aaac8c027cd57a61213150c12c55a | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def merge(args:)
<ide> odie "--keep-old was passed but there was no existing bottle block!" if args.keep_old?
<ide> puts output
<ide> update_or_add = "add"
<del> pattern = /(
<del> (\ {2}\#[^\n]*\n)* ... | 5 |
Ruby | Ruby | fix rubocop warnings | 56fc1c725a752ef411e8f56aafe2602f2bb47592 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide> end
<ide>
<ide> def rm_pin(rack)
<del> Formulary.from_rack(rack).unpin rescue nil
<add> Formulary.from_rack(rack).unpin
<add> rescue
<add> nil
<ide> end
<ide> end | 1 |
Javascript | Javascript | add some basic tests | 540fafaff2eb33f89e3935d39ff1c93933e3f5a1 | <ide><path>lib/global-deprecation-utils.js
<add>'use strict';
<add>
<ide> const semver = require('semver');
<add>const validSemverRange = require('semver/ranges/valid');
<ide>
<ide> function* walkAddonTree(project, pathToAddon = []) {
<ide> for (let addon of project.addons) {
<ide> function requirementFor(pkg, deps ... | 2 |
Javascript | Javascript | add support for detached canvas element | f90ee8c786c24e44a252964c74970382d9c39016 | <ide><path>src/chart.js
<ide> plugins.push(
<ide>
<ide> Chart.plugins.register(plugins);
<ide>
<add>Chart.platform.initialize();
<add>
<ide> module.exports = Chart;
<ide> if (typeof window !== 'undefined') {
<ide> window.Chart = Chart;
<ide><path>src/core/core.helpers.js
<ide> module.exports = function(Chart) {
<ide... | 6 |
PHP | PHP | use constraints for "unique" on postgres schemas | c002ae63371094b2cf9c731f779128e7a68e9970 | <ide><path>laravel/database/schema/grammars/postgres.php
<ide> public function primary(Table $table, Fluent $command)
<ide> */
<ide> public function unique(Table $table, Fluent $command)
<ide> {
<del> return $this->key($table, $command, true);
<add> $table = $this->wrap($table);
<add>
<add> $columns = $this->col... | 1 |
PHP | PHP | make view factory macroable | 12f3b94c564f174b338c8ed089fc1df89aaa64d8 | <ide><path>src/Illuminate/View/Factory.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use InvalidArgumentException;
<add>use Illuminate\Support\Traits\Macroable;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\View\E... | 2 |
Python | Python | remove exception-throwing from the signal handler | 23ecf2c5a3b8264cfd102b0212984fbffba54ae2 | <ide><path>celery/apps/worker.py
<ide>
<ide> from celery import VERSION_BANNER, platforms, signals
<ide> from celery.app import trace
<del>from celery.exceptions import WorkerShutdown, WorkerTerminate
<ide> from celery.loaders.app import AppLoader
<ide> from celery.platforms import EX_FAILURE, EX_OK, check_privileges,... | 1 |
Python | Python | fix dot_axis api | 18f122e1d98458ec60e7ea6473c440dae93ddf6f | <ide><path>keras/layers/core.py
<ide> def __init__(self, layers, mode='sum', concat_axis=-1, dot_axes=-1):
<ide> raise Exception(mode + " merge takes exactly 2 layers")
<ide> shape1 = layers[0].output_shape
<ide> shape2 = layers[1].output_shape
<add> n1 = len(shape1)
<... | 1 |
Text | Text | fix typo in file name | 826f947ce7078a66e93276c8102dd235bb629911 | <ide><path>guides/source/classic_to_zeitwerk_howto.md
<ide> VAT is an European tax. The file `app/models/vat.rb` defines `VAT` but the autol
<ide>
<ide> This is the most common kind of discrepancy you may find, it has to do with acronyms. Let's understand why do we get that error message.
<ide>
<del>The classic autol... | 1 |
Go | Go | allow partial name match for `service ls --filter` | 1d600ebcb5750c4c93356fae08e562d836ecee45 | <ide><path>daemon/cluster/filters.go
<ide> func newListServicesFilters(filter filters.Args) (*swarmapi.ListServicesRequest_
<ide> return nil, err
<ide> }
<ide> return &swarmapi.ListServicesRequest_Filters{
<del> Names: filter.Get("name"),
<del> IDPrefixes: filter.Get("id"),
<del> Labels: runconfigopts.C... | 2 |
Javascript | Javascript | remove extraneous shebang's from bin/*.js scripts | 8898e795f89255d637138f6d21d6892b050dffaf | <ide><path>bin/build-for-publishing.js
<del>#!/usr/bin/env node
<ide> 'use strict';
<ide> /* eslint-env node, es6 */
<ide>
<ide><path>bin/publish_to_s3.js
<del>#!/usr/bin/env node
<ide>
<ide> // To invoke this from the commandline you need the following to env vars to exist:
<ide> //
<ide><path>bin/run-browserstack-t... | 7 |
Go | Go | fix import path | ce35439015e4d2190bd82a3b6dfec98f7a12ac90 | <ide><path>integration/container/mounts_linux_test.go
<ide> import (
<ide> "github.com/docker/docker/api/types/network"
<ide> "github.com/docker/docker/client"
<ide> "github.com/docker/docker/integration-cli/daemon"
<del> "github.com/docker/docker/integration/util/request"
<add> "github.com/docker/docker/integration... | 1 |
Javascript | Javascript | get curriculum path relative to tools folder | affff68bca9732350745ca3655a4dd4bf969e34c | <ide><path>curriculum/tools/utils.js
<ide> const reorderSteps = () => {
<ide>
<ide> const curriculumPath = process.env.CALLING_DIR
<ide> ? ''
<del> : '../../../../../curriculum';
<add> : path.join(__dirname, '../');
<ide>
<ide> const projectMetaPath = path.resolve(
<ide> curriculumPath, | 1 |
Text | Text | fix links for | fa94eb46041ad309468dbbd29faba2053f402096 | <ide><path>docs/getstarted/step_one.md
<ide> Docker for Mac is our newest offering for the Mac. It runs as a native Mac appli
<ide>
<ide> If you have an earlier Mac that doesn't meet the Docker for Mac prerequisites, <a href="https://www.docker.com/products/docker-toolbox" target="_blank">get Docker Toolbox</a> for th... | 1 |
PHP | PHP | improve empty property check | 094c2a2fe536636310a8e6717029db139ce07619 | <ide><path>src/ORM/Behavior/TranslateBehavior.php
<ide> protected function _unsetEmptyFields(EntityInterface $entity)
<ide> }
<ide> }
<ide>
<del> // Workaround to check the remaining properties
<del> $arrayEntity = $entity->toArray();
<add> $translation = $t... | 1 |
Mixed | Javascript | add filehandle support to read/writestream | 0fd121e00c9d5987c20c27a4ee4295da7735d9de | <ide><path>doc/api/fs.md
<ide> fs.copyFileSync('source.txt', 'destination.txt', COPYFILE_EXCL);
<ide> <!-- YAML
<ide> added: v0.1.31
<ide> changes:
<add> - version:
<add> - REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/35922
<add> description: The `fd` option accepts FileHandle arguments.
<ide>... | 8 |
PHP | PHP | handle dns failure | bdd8b9ca66fd43b9085b633651ddeddc00504e71 | <ide><path>src/Http/Client/Adapter/Curl.php
<ide> use Cake\Http\Client\AdapterInterface;
<ide> use Cake\Http\Client\Request;
<ide> use Cake\Http\Client\Response;
<add>use Cake\Http\Exception\HttpException;
<ide>
<ide> /**
<ide> * Implements sending Cake\Http\Client\Request
<ide> public function send(Request $request,... | 1 |
Python | Python | clarify docstrings for updated dbapihook | a158fbb6bde07cd20003680a4cf5e7811b9eda98 | <ide><path>airflow/providers/common/sql/hooks/sql.py
<ide> def return_single_query_results(sql: str | Iterable[str], return_last: bool, spl
<ide> Determines when results of single query only should be returned.
<ide>
<ide> For compatibility reasons, the behaviour of the DBAPIHook is somewhat confusing.
<del> ... | 1 |
Javascript | Javascript | add test for selection.data | 354765c3092f144cdb9b2b8edf481043d9773969 | <ide><path>test/core/selection-append-test.js
<ide> suite.addBatch({
<ide> }
<ide> });
<ide>
<add>// TODO enter().append()
<add>
<ide> suite.export(module);
<ide><path>test/core/selection-data-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("... | 3 |
Text | Text | fix typo in vocab.md table | afd7a2476d2491af864d0723bff96191ea61b429 | <ide><path>website/docs/api/vocab.md
<ide> Load state from a binary string.
<ide> > assert type(PERSON) == int
<ide> > ```
<ide>
<del>| Name | Description ... | 1 |
Python | Python | enable new theme on rtd | 8f8beec1e2633c413f939e2c30531b88913005da | <ide><path>docs/conf.py
<ide>
<ide> if on_rtd:
<ide> html_theme = 'default'
<add> RTD_NEW_THEME = True
<ide> else:
<ide> html_theme = 'nature'
<ide> | 1 |
Javascript | Javascript | remove error messages in crypto-binary test | 24d72944da402dd17542f3c958d0f033c9e20a3a | <ide><path>test/parallel/test-crypto-binary-default.js
<ide> if (!common.hasFipsCrypto) {
<ide> const a0 = crypto.createHash('md5').update('Test123').digest('latin1');
<ide> assert.strictEqual(
<ide> a0,
<del> 'h\u00ea\u00cb\u0097\u00d8o\fF!\u00fa+\u000e\u0017\u00ca\u00bd\u008c',
<del> 'Test MD5 as latin1... | 1 |
Python | Python | fix grammatical error in variable.get docstring | fe5aba2f1985fe6b546ac28478398a35dbb3ef26 | <ide><path>airflow/models/variable.py
<ide> def get(
<ide> Gets a value for an Airflow Variable Key
<ide>
<ide> :param key: Variable Key
<del> :param default_var: Default value of the Variable if the Variable doesn't exists
<add> :param default_var: Default value of the Variable if the Va... | 1 |
PHP | PHP | show php version in shell welcome message | 75de672e47d43bd51b61879031d2c36e2f3821de | <ide><path>src/Console/Shell.php
<ide> protected function _welcome()
<ide> $this->hr();
<ide> $this->out(sprintf('App : %s', APP_DIR));
<ide> $this->out(sprintf('Path: %s', APP));
<add> $this->out(sprintf('PHP : %s', phpversion()));
<ide> $this->hr();
<ide> }
<ide> | 1 |
Javascript | Javascript | add internal assert.fail() | ce65034e63413c616b0b938e0a537c479cf51c7a | <ide><path>lib/internal/assert.js
<ide> function assert(value, message) {
<ide> }
<ide> }
<ide>
<add>function fail(message) {
<add> require('assert').fail(message);
<add>}
<add>
<add>assert.fail = fail;
<add>
<ide> module.exports = assert;
<ide><path>test/parallel/test-internal-assert.js
<ide> internalAssert(true, ... | 2 |
Mixed | Javascript | add taskgroup tooltip to graph view | 8745fb903069ac6174134d52513584538a2b8657 | <ide><path>airflow/www/static/js/graph.js
<ide> function groupTooltip(node, tis) {
<ide> });
<ide>
<ide> const groupDuration = convertSecsToHumanReadable(moment(maxEnd).diff(minStart, 'second'));
<add> const tooltipText = node.tooltip ? `<p>${node.tooltip}</p>` : '';
<ide>
<del> let tt = `<strong>Duration:</str... | 2 |
Mixed | Ruby | remove deprecated methods at `kernel` | 481e49c64f790e46f4aff3ed539ed227d2eb46cb | <ide><path>activerecord/test/cases/migration/foreign_key_test.rb
<ide> class Astronaut < ActiveRecord::Base
<ide>
<ide> teardown do
<ide> if defined?(@connection)
<del> @connection.drop_table "astronauts" if @connection.table_exists? 'astronauts'
<add> @connection.drop_table "astronaut... | 7 |
Text | Text | add 4.5.0 release to eslint rules changelog | 59bc52a16c5bdec6de5fc87de4d900ebc20389b2 | <ide><path>packages/eslint-plugin-react-hooks/CHANGELOG.md
<add>## 4.5.0
<add>
<add>* Fix false positive error with large number of branches. ([@scyron6](https://github.com/scyron6) in [#24287](https://github.com/facebook/react/pull/24287))
<add>
<ide> ## 4.4.0
<ide>
<ide> * No changes, this was an automated release t... | 1 |
Javascript | Javascript | avoid nexttick when possible | 00d176419c538d51af702a55ce480db9b23860a8 | <ide><path>lib/util/AsyncQueue.js
<ide> class AsyncQueue {
<ide> const entry = this._entries.get(key);
<ide> if (entry !== undefined) {
<ide> if (entry.state === DONE_STATE) {
<del> process.nextTick(() => callback(entry.error, entry.result));
<add> if (inHandleResult++ > 3) {
<add> process.nextTi... | 1 |
Javascript | Javascript | add test for getdisplayname | 20462fe9854525cf4f82ecb9e8a74e5bc4a57e9d | <ide><path>test/utils/getDisplayName.spec.js
<add>import { expect } from 'chai';
<add>import getDisplayName from '../../src/utils/getDisplayName';
<add>
<add>describe('Utils', () => {
<add> describe('getDisplayName', () => {
<add>
<add> it('should ensure a name for the given component', () => {
<add> const nam... | 1 |
Javascript | Javascript | add preference for using tree-sitter parsers | 273d708a487408516f011a6db0a7c8c7ccba21f8 | <ide><path>spec/grammar-registry-spec.js
<ide> const fs = require('fs-plus')
<ide> const temp = require('temp').track()
<ide> const TextBuffer = require('text-buffer')
<ide> const GrammarRegistry = require('../src/grammar-registry')
<add>const TreeSitterGrammar = require('../src/tree-sitter-grammar')
<add>const FirstMa... | 5 |
Python | Python | change tf.to_int32 to tf.cast | 6765b16dce47a23a1da1c7b03782edc4f618e235 | <ide><path>official/mnist/dataset.py
<ide> def decode_image(image):
<ide> def decode_label(label):
<ide> label = tf.decode_raw(label, tf.uint8) # tf.string -> [tf.uint8]
<ide> label = tf.reshape(label, []) # label is a scalar
<del> return tf.to_int32(label)
<add> return tf.cast(label, tf.int32)
<ide> ... | 1 |
Javascript | Javascript | update apollo example for 9.5 | bf9b96bd81d62d8fe62487ef58509dd958d76bcb | <ide><path>examples/with-apollo/pages/index.js
<ide> export async function getStaticProps() {
<ide> props: {
<ide> initialApolloState: apolloClient.cache.extract(),
<ide> },
<del> unstable_revalidate: 1,
<add> revalidate: 1,
<ide> }
<ide> }
<ide> | 1 |
Javascript | Javascript | fix typo in tls_session_attack message | e9e9863ca7ba61ea4e1b5a28c18b29e449f87f00 | <ide><path>lib/internal/errors.js
<ide> E('ERR_TLS_HANDSHAKE_TIMEOUT', 'TLS handshake timeout');
<ide> E('ERR_TLS_RENEGOTIATION_FAILED', 'Failed to renegotiate');
<ide> E('ERR_TLS_REQUIRED_SERVER_NAME',
<ide> '"servername" is required parameter for Server.addContext');
<del>E('ERR_TLS_SESSION_ATTACK', 'TSL session re... | 1 |
Javascript | Javascript | add zipkin trace capturing with output to json. | 5c24670227b36c079e26d6af3e85297dce5e2212 | <ide><path>bench/capture-trace.js
<add>const http = require('http')
<add>const fs = require('fs')
<add>
<add>const PORT = 9411
<add>const HOST = '0.0.0.0'
<add>
<add>const traces = []
<add>
<add>const onReady = () => console.log(`Listening on http://${HOST}:${PORT}`)
<add>const onRequest = async (req, res) => {
<add> ... | 1 |
Javascript | Javascript | fix broken ie8 test | 908ab52b8dced67186e9f2d17a00362b28c13a86 | <ide><path>test/ngAnimate/animateSpec.js
<ide> describe("ngAnimate", function() {
<ide> }));
<ide>
<ide> it("should intelligently cancel former timeouts and close off a series of elements a final timeout", function() {
<del> var currentTimestamp = Date.now();
<del> spyOn(Date,... | 1 |
PHP | PHP | remove an unnecessary checking | 3dc382c5a71b180d3b848b02a71e0d7efc973222 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileComponents(Builder $query)
<ide> $sql = [];
<ide>
<ide> foreach ($this->selectComponents as $component) {
<del> if (isset($query->$component) && ! is_null($query->$component)) {
<add> if ... | 1 |
PHP | PHP | consolidate duplicated code and fix a few issues | a44fb7620176fb99f8031b6dcf2ac3c9a9429564 | <ide><path>src/Controller/Controller.php
<ide> use Cake\Utility\MergeVariablesTrait;
<ide> use Cake\View\ViewVarsTrait;
<ide> use LogicException;
<del>use RuntimeException;
<ide>
<ide> /**
<ide> * Application controller class for organization of business logic.
<ide> public function addComponent($name, array $config ... | 9 |
Javascript | Javascript | fix crash during server render | b305c4e034bbb3b13df2028c0503a84f91e57455 | <ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js
<ide> export function createTextInstance(
<ide> }
<ide>
<ide> export const isPrimaryRenderer = true;
<del>export const scheduleTimeout = setTimeout;
<del>export const cancelTimeout = clearTimeout;
<add>// This initialization code may run even on server env... | 1 |
Javascript | Javascript | use non-symbols in isurlinstance check | 8825eb4d734c78ccdaa06811a5b033e59f7fa978 | <ide><path>lib/internal/url.js
<ide> function pathToFileURL(filepath) {
<ide> }
<ide>
<ide> function isURLInstance(fileURLOrPath) {
<del> return fileURLOrPath != null && fileURLOrPath[searchParams] &&
<del> fileURLOrPath[searchParams][searchParams];
<add> return fileURLOrPath != null && fileURLOrPath.href && file... | 1 |
Ruby | Ruby | move linkagechecker to standalone file | 13730a9dadde8570e41cf5599b4f5c940014f190 | <ide><path>Library/Homebrew/dev-cmd/linkage.rb
<ide> # --reverse - For each dylib the keg references, print the dylib followed by the
<ide> # binaries which link to it.
<ide>
<del>require "set"
<del>require "keg"
<del>require "formula"
<add>require "os/mac/linkage_checker"
<ide>
<ide> module Homebre... | 2 |
PHP | PHP | prefer stricter negative comparisons. | 54b406891d0e6081e2d766ec25bc64ea0f05f4ba | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and'
<ide> // where null clause to the query. So, we will allow a short-cut here to
<ide> // that method for convenience so the developer doesn't have to check.
<ide> ... | 11 |
Python | Python | pass additional runtests.py args to asv | 0a999147c1679e212a2e4d532bae7b49bee15f1e | <ide><path>runtests.py
<ide> def main(argv):
<ide> "COMMIT. Note that you need to commit your "
<ide> "changes first!"))
<ide> parser.add_argument("args", metavar="ARGS", default=[], nargs=REMAINDER,
<del> help="Arguments to pass to ... | 1 |
Javascript | Javascript | use setpaths instead of command line paths | e376096e8fe29c6c568e329f040d6dd7be6ab2e3 | <ide><path>src/main-process/parse-command-line.js
<ide> module.exports = function parseCommandLine (processArgs) {
<ide> let projectSettings = {}
<ide> if (atomProject) {
<ide> const contents = Object.assign({}, readProjectSettingsSync(atomProject, executedFrom))
<del> const paths = contents.paths
<ide> ... | 2 |
Javascript | Javascript | apply coding convention | 9fd81ee7583fff010cf006fa42aa4f72ac714563 | <ide><path>lang/ko.js
<ide> },
<ide> ordinal : '%d일',
<ide> meridiemParse : /(오전|오후)/i,
<del> isPM : function(token){
<del> return token == "오후";
<add> isPM : function (token) {
<add> return token === "오후";
<ide> }
<ide> });
<ide> }));
<ide><path>test/la... | 2 |
Python | Python | migrate the swao plugin to psutil 2.0 | aafa80e0db19d109b8f8095920e6cbecabb64056 | <ide><path>glances/plugins/glances_memswap.py
<ide> def msg_curse(self, args=None):
<ide> msg = "{0}".format(format(self.auto_unit(self.stats['used'], '>6')))
<ide> ret.append(self.curse_add_line(
<ide> msg, self.get_alert_log(self.stats['used'],
<del> ax=self.stats['total'])))
<... | 1 |
Text | Text | add links for fs.createwritestream() | ddbad37ecbf84a2b816e9dfa2d970a19e9fbf836 | <ide><path>doc/api/fs.md
<ide> added: v0.1.93
<ide> -->
<ide>
<ide> The path to the file the stream is writing to as specified in the first
<del>argument to `fs.createWriteStream()`. If `path` is passed as a string, then
<add>argument to [`fs.createWriteStream()`][]. If `path` is passed as a string, then
<ide> `writeS... | 1 |
Text | Text | remove outdated documentation | 48e17630ad6eabeaaeb105b2371de914728796c1 | <ide><path>test/README.md
<ide> GitHub with the `autocrlf` git config flag set to true.
<ide> |testpy | |Test configuration utility used by various test suites.|
<ide> |tick-processor |No |Tests for the V8 tick processor integration. The tests are for the logic in ```lib/intern... | 1 |
Go | Go | replace fmt.fprint* with io.writestring | 6d21b2ba80e274e49d67e8f3d88bf9b3df567ff5 | <ide><path>api/client/stats.go
<ide> func (cli *DockerCli) CmdStats(args ...string) error {
<ide> w = tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
<ide> )
<ide> printHeader := func() {
<del> fmt.Fprint(cli.out, "\033[2J")
<del> fmt.Fprint(cli.out, "\033[H")
<del> fmt.Fprintln(w, "CONTAINER\tCPU %\tMEM USA... | 1 |
Java | Java | use alternative uuid strategy in messageheaders | 70dfec269b2ea249b2abf3cf252774a6fd578b39 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java
<ide> import java.io.ObjectInputStream;
<ide> import java.io.ObjectOutputStream;
<ide> import java.io.Serializable;
<add>import java.math.BigInteger;
<add>import java.security.SecureRandom;
<ide> import java.util.ArrayList;
<ide... | 2 |
Text | Text | remove ambiguous sentence from a11y quiz step 42 | fe045b996b1c40df0d4326824369e7242ad6da49 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f8f8bcd4370f6509078e.md
<ide> California<br />
<ide> USA
<ide> ```
<ide>
<del>You can visit, but you might not find anything...
<del>
<ide> # --hints--
<ide>
<ide> You should add the above text including th... | 1 |
Javascript | Javascript | fix lint errors 1/n | 5403946f098cc72c3d33ea5cee263fb3dd03891d | <ide><path>packager/src/AssetServer/__tests__/AssetServer-test.js
<ide> describe('AssetServer', () => {
<ide> imgs: {
<ide> 'b.png': 'b image',
<ide> 'b@2x.png': 'b2 image',
<del> }
<del> }
<add> },
<add> },
<ide> });
<ide>
<ide> return Prom... | 54 |
Text | Text | fix broken link | b5ecc8da181a40c710684e8c501e8d5bb95e2150 | <ide><path>docs/Navigation.md
<ide> This guide covers the various navigation components available in React Native. I
<ide>
<ide> ## Navigator
<ide>
<del>`Navigator` provides a JavaScript implementation of a navigation stack, so it works on both iOS and Android and is easy to customize. This is the same component you ... | 1 |
Ruby | Ruby | restore check for broken xcode-select path | 1f622843844e5d52d598c2f8be360a13416454c9 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_xcode_prefix
<ide>
<ide> def check_xcode_select_path
<ide> # with the advent of CLT-only support, we don't need xcode-select
<del> return if MacOS::CLT.installed?
<del> unless File.file? "#{MacOS::Xcode.folder}/usr/bin/xcodebuild" and not MacOS::Xcode.bad_x... | 1 |
Go | Go | increase test timeouts for node state changes | 2e5da4434126309f2395cc3d5b2013674155ae5c | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> func (s *DockerSwarmSuite) testAPISwarmManualAcceptance(c *check.C, secret strin
<ide> if info.LocalNodeState == swarm.LocalNodeStateActive {
<ide> break
<ide> }
<del> if i > 10 {
<del> c.Errorf("node did not become active")
<add> if i > 100 {
<add> ... | 1 |
Python | Python | fix breakage on mask addition to batch norm | 2f59b1b7c2a2d352ec2de14fd52ac425959bad79 | <ide><path>keras/layers/normalization/batch_normalization.py
<ide> def _calculate_mean_and_var(
<ide> return self._sync_calculate_mean_and_var(
<ide> inputs, reduction_axes, keep_dims, mask=mask
<ide> )
<add> return self._no_sync_calculate_mean_and_var(
<add> in... | 1 |
Javascript | Javascript | add hmm and hmmss formatting tokens | 0fce088830b264c7137a28179053b8df4a312f30 | <ide><path>src/lib/format/format.js
<ide> import zeroFill from '../utils/zero-fill';
<ide>
<del>export var formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
<add>export var formattingT... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.