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 |
|---|---|---|---|---|---|
Javascript | Javascript | accept numbers for boundaries | f77005cc437376609073c74ec278d5998ab2f351 | <ide><path>curriculum/schema/challengeSchema.js
<ide> const fileJoi = Joi.object().keys({
<ide> head: [Joi.array().items(Joi.string().allow('')), Joi.string().allow('')],
<ide> tail: [Joi.array().items(Joi.string().allow('')), Joi.string().allow('')],
<ide> contents: [Joi.array().items(Joi.string().allow('')), Jo... | 1 |
PHP | PHP | add a missing dot in translations | 21c0aed802a69838ba848d93228e725067a2e205 | <ide><path>resources/lang/en/validation.php
<ide> 'string' => 'The :attribute must be at least :min characters.',
<ide> 'array' => 'The :attribute must have at least :min items.',
<ide> ],
<del> 'multiple_of' => 'The :attribute must be a multiple of :value',
<add> 'multiple_of' => 'The :attrib... | 1 |
Javascript | Javascript | increase timeout in break-on-uncaught | cc899a4c81ae79b63147dae473ba54d6c58da628 | <ide><path>test/debugger/test-debug-break-on-uncaught.js
<ide> function runScenario(scriptName, throwsOnLine, next) {
<ide> client.connect(port);
<ide> }
<ide>
<add> let interval;
<ide> function runTest(client) {
<ide> client.req(
<ide> {
<ide> function runScenario(scriptName, throwsOnLine, next) {
... | 1 |
Javascript | Javascript | delay process.argv[0] and process.argv0 handling | 728c939e57ec471bf0a114b86074829be622f421 | <ide><path>lib/internal/bootstrap/node.js
<ide> if (!config.noBrowserGlobals) {
<ide>
<ide> setupDOMException();
<ide>
<del>Object.defineProperty(process, 'argv0', {
<del> enumerable: true,
<del> configurable: false,
<del> value: process.argv[0]
<del>});
<del>process.argv[0] = process.execPath;
<del>
<ide> // proc... | 3 |
Javascript | Javascript | allow third party hooks before main module load | 496be457b6a2bc5b01ec13644b9c9783976159b2 | <ide><path>src/node.js
<ide> process.argv[0] = path.join(cwd, process.argv[0]);
<ide> }
<ide>
<add> // To allow people to extend Node in different ways, this hook allows
<add> // one to drop a file lib/_third_party_main.js into the build directory
<add> // which will be executed instead of Node's normal loadi... | 1 |
Text | Text | add question about pr to feature request template | 12bde090d92019a037ffcabbd78761943fc3914d | <ide><path>.github/ISSUE_TEMPLATE/feature_request.md
<ide> step back and describe what you are trying to achieve.
<ide>
<ide> -->
<ide>
<add>**Are you willing to submit a PR?**
<add>
<add><!--- We accept contributions! -->
<add>
<ide> **Related Issues**
<ide>
<ide> <!-- Is there currently another issue associated wi... | 1 |
Ruby | Ruby | fix que integration in active job tests | ee5d18bb920215a5bf49c8da702eca1507079b71 | <ide><path>activejob/test/adapters/que.rb
<ide> require "support/que/inline"
<ide>
<ide> ActiveJob::Base.queue_adapter = :que
<del>Que.mode = :sync
<add>Que.run_synchronously = true | 1 |
Javascript | Javascript | fix webpackerror handling in cache | 5e52f429cc3933cf0ebd6c89ef2d8321206f0357 | <ide><path>lib/Cache.js
<ide> "use strict";
<ide>
<ide> const { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } = require("tapable");
<del>const { makeWebpackError } = require("./HookWebpackError");
<add>const {
<add> makeWebpackError,
<add> makeWebpackErrorCallback
<add>} = require("./HookWebpackError");
<ide>
<i... | 2 |
Ruby | Ruby | remove redundant conditional | 8823b85010a217df555b981a453384e24ce7da47 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb
<ide> def normalize_argument_to_redirection(fragment)
<ide> when %r{^\w[\w\d+.-]*:.*}
<ide> fragment
<ide> when String
<del> if fragment =~ %r{^\w[\w\d+.-]*:.*}
<del> fragment
<del> ... | 1 |
Python | Python | close open files to suppress resourcewarning | f25444cb223b1211082ac0b9882f4972db5c1f1c | <ide><path>examples/legacy/seq2seq/run_distributed_eval.py
<ide> def run_generate():
<ide> save_json(preds, save_path)
<ide> return
<ide> tgt_file = Path(args.data_dir).joinpath(args.type_path + ".target")
<del> labels = [x.rstrip() for x in open(tgt_file).readlines()][: len(preds... | 3 |
Python | Python | add displacy visualisers (see ) | c31792aaec68a67ddaac9ef7ea812345eee0a6bf | <ide><path>spacy/displacy/__init__.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>from .render import DependencyRenderer, EntityRenderer
<add>from ..tokens import Doc
<add>from ..util import prints
<add>
<add>
<add>_html = {}
<add>
<add>
<add>def render(docs, style='dep', page=False, min... | 4 |
PHP | PHP | handle duplicates method in eloquent collections | 4b9d3e78e6de2d7439eeecb3f1115e8048e64f90 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide> public function diff($items)
<ide> return $diff;
<ide> }
<ide>
<add> /**
<add> * Get the comparison function to detect duplicates.
<add> *
<add> * @param bool $strict
<add> * @return \Closure
<add> */
<add> protect... | 3 |
Javascript | Javascript | use const instead of var | e0a6c8ef76f8132ed8858989548d075d18c7490d | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> };
<ide> }
<ide>
<del> var LINE_CAP_STYLES = [ "butt", "round", "square" ];
<del> var LINE_JOIN_STYLES = [ "miter", "round", "bevel" ];
<del> var NORMAL_CLIP = {};
<del> var EO_CLIP = {};
<add> const LINE_CAP_STYLES = [ "butt",... | 1 |
Python | Python | simplify container logic | 38636c5a3f14b498aea391a4f2c6b09c5e0395bc | <ide><path>airflow/utils.py
<ide> def __exit__(self, type, value, traceback):
<ide> signal.alarm(0)
<ide>
<ide>
<add>def is_container(obj):
<add> """
<add> Test if an object is a container (iterable) but not a string
<add> """
<add> return hasattr(obj, '__iter__') and not isinstance(obj, basestrin... | 1 |
Java | Java | expose rootviewtag for reactrootview | 7d27f4941cf9fa0782dd9fd345b8e7ae507477e2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerImpl.java
<ide> private void attachMeasuredRootViewToInstance(
<ide>
<ide> UIManagerModule uiManagerModule = catalystInstance.getNativeModule(UIManagerModule.class);
<ide> int rootTag = uiManagerModule.addMeasuredRootView(rootView);
<... | 3 |
Ruby | Ruby | fix typos in test runner's help output | 64eb76ed1688f43955209eedb6373ba86f962659 | <ide><path>railties/lib/rails/test_unit/runner.rb
<ide> def self.parse(args)
<ide>
<ide> opts.separator ""
<ide> opts.on("-e", "--environment [ENV]",
<del> "run tests in the ENV environment") do |env|
<add> "Run tests in the ENV environment") do |env|
<ide> ... | 1 |
Python | Python | add a predict method in tagging task | 9b4be3abfc107e6d38217e5a4793a5ed08fef600 | <ide><path>official/nlp/data/tagging_data_loader.py
<ide> class TaggingDataConfig(cfg.DataConfig):
<ide> """Data config for tagging (tasks/tagging)."""
<ide> is_training: bool = True
<ide> seq_length: int = 128
<add> include_sentence_id: bool = False
<ide>
<ide>
<ide> @data_loader_factory.register_data_loader_... | 3 |
Javascript | Javascript | simplify loaddhparam in tls test | eb68a06a3e66cff0092fc26e79f06a25f8f1ac43 | <ide><path>test/parallel/test-tls-client-getephemeralkeyinfo.js
<ide> const fixtures = require('../common/fixtures');
<ide>
<ide> const assert = require('assert');
<ide> const tls = require('tls');
<del>const fs = require('fs');
<ide>
<ide> const key = fixtures.readKey('agent2-key.pem');
<ide> const cert = fixtures.r... | 2 |
Javascript | Javascript | remove redundant info when starting crash reporter | 0e46298648380dc849c09aa92199fc5a6fa9715f | <ide><path>src/crash-reporter-start.js
<ide> module.exports = function(params) {
<ide> const { crashReporter } = require('electron');
<del> const { uploadToServer, appVersion } = params;
<add> const { uploadToServer } = params;
<ide>
<ide> crashReporter.start({
<ide> productName: 'Atom',
<ide> companyNam... | 3 |
Mixed | Ruby | define the duration#instance_of? method | eb73d7dafa343507a60f765c43c748d6987ec652 | <ide><path>activesupport/CHANGELOG.md
<add>* Add the `Duration#instance_of?` method that was previously delegated to the
<add> internal `value` attribute.
<add>
<add> *Robin Dupret*
<add>
<ide> * Fix rounding errors with #travel_to by resetting the usec on any passed time to zero, so we only travel
<ide> ... | 3 |
Ruby | Ruby | remove nodoc from flashhash #[]= [ci skip] | a39ab3a57d71990af221a462b0076b6f44b18056 | <ide><path>actionpack/lib/action_dispatch/middleware/flash.rb
<ide> def initialize_copy(other)
<ide> super
<ide> end
<ide>
<del> def []=(k, v) #:nodoc:
<add> def []=(k, v)
<ide> @discard.delete k
<ide> @flashes[k] = v
<ide> end | 1 |
Mixed | Ruby | change datetime to datetime-local helper tag | aa6dde37cd46fc56b6bd3197564a8428399aec33 | <ide><path>actionview/CHANGELOG.md
<add>* A change was made in the helper that renders the `datetime`, being now by default `datetime-local` and
<add> creating an alias of `datetime-local` for `datetime`, `datetime` tag and it passes to be an abstract class for all other tags that inherit from him.
<add>
<add> ... | 6 |
PHP | PHP | allow null in boolean types | 0f6c391104162ca29198e958f7b348cb5d1b2a51 | <ide><path>src/Database/Type/BoolType.php
<ide> class BoolType extends Type
<ide> */
<ide> public function toDatabase($value, Driver $driver)
<ide> {
<del> if ($value === true || $value === false) {
<add> if ($value === true || $value === false || $value === null) {
<ide> return $... | 2 |
Javascript | Javascript | add early exit to strict mode | e52fa4c575e92b27d5d453829c7110bc5193f7a0 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> function recursivelyTraverseAndDoubleInvokeEffectsInDEV(
<ide> parentFiber: Fiber,
<ide> isInStrictMode: boolean,
<ide> ) {
<add> if ((parentFiber.subtreeFlags & (PlacementDEV | Visibility)) === NoFlags) {
<add> // Parent's descendants hav... | 2 |
Python | Python | add sep_toekn between question and choice | df52abe3733484bf62069e819680909e349bac72 | <ide><path>examples/single_model_scripts/utils_multiple_choice.py
<ide> def convert_examples_to_features(examples, label_list, max_seq_length,
<ide> if example.question.find("_") != -1:
<ide> tokens_b = tokenizer.tokenize(example.question.replace("_", ending))
<ide> else:
<del> ... | 1 |
Javascript | Javascript | favor arrow functions for anonymous callbacks | d03cff7620f0a62433f36abc252532ab0a79a56c | <ide><path>test/parallel/test-https-agent-additional-options.js
<ide> const options = {
<ide> minVersion: 'TLSv1.1',
<ide> };
<ide>
<del>const server = https.Server(options, function(req, res) {
<add>const server = https.Server(options, (req, res) => {
<ide> res.writeHead(200);
<ide> res.end('hello world\n');
<i... | 1 |
Ruby | Ruby | ensure tap is full clone | bdd26d04468e6bbd3cf5e9841a1f163d33884e67 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide> p ARGV
<ide>
<ide> tap = resolve_test_tap
<del> # Tap repository if required, this is done before everything else
<del> # because Formula parsing and/or git commit hash lookup depends on it.
<del> safe_system "brew", "tap", tap.name ... | 1 |
Java | Java | simplify comparison of primitives | e352e9ddaae1726a95c4ecc5d09cbea5d5bf90ff | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveConstructorResolver.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the... | 2 |
Python | Python | move an mport out of a function | 9117a4af30b87f95f87a5ebdb2a0af965d4bebb6 | <ide><path>django/utils/functional.py
<add>import copy
<ide> import operator
<ide> from functools import wraps, update_wrapper
<ide>
<ide> def __deepcopy__(self, memo):
<ide> memo[id(self)] = result
<ide> return result
<ide> else:
<del> import copy
<ide> return co... | 1 |
Go | Go | remove unused ttyterminal interface | 6ae377ffa0c106749db1bcd6cf158f8b0056dea8 | <ide><path>daemon/execdriver/driver.go
<ide> type Terminal interface {
<ide> Resize(height, width int) error
<ide> }
<ide>
<del>type TtyTerminal interface {
<del> Master() libcontainer.Console
<del>}
<del>
<ide> // ExitStatus provides exit reasons for a container.
<ide> type ExitStatus struct {
<ide> // The exit cod... | 3 |
PHP | PHP | apply fixes from styleci | 5781ad4fc123731eb485c919a1d388faef467da9 | <ide><path>src/Illuminate/Validation/Rules/RequiredIf.php
<ide> public function __construct($condition)
<ide> if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
<ide> $this->condition = $condition;
<ide> } else {
<del> throw new InvalidArgumentExcep... | 1 |
Javascript | Javascript | add jsdoc typings for timers | c4096a35d651399f79948395c233747dcacc83aa | <ide><path>lib/timers.js
<ide> function enroll(item, msecs) {
<ide> }
<ide>
<ide>
<del>/*
<del> * DOM-style timers
<add>/**
<add> * Schedules the execution of a one-time `callback`
<add> * after `after` milliseconds.
<add> * @param {Function} callback
<add> * @param {number} [after]
<add> * @param {any} [arg1]
<add> ... | 1 |
Python | Python | replace import * with explicit import | dc2c4f785a3c552640aba7861f5e1fea849a7cbb | <ide><path>numpy/linalg/lapack_lite/clapack_scrub.py
<ide> import sys, os
<ide> from io import StringIO
<ide> import re
<del>
<del>from Plex import *
<add>from Plex import Scanner, Str, Lexicon, Opt, Bol, State, AnyChar, TEXT, IGNORE
<ide> from Plex.Traditional import re as Re
<ide>
<ide> class MyScanner(Scanner): | 1 |
Javascript | Javascript | simplify check in child_process | 549a11c7b275f4c6495e1cae4f34eac5110e888d | <ide><path>lib/child_process.js
<ide> function fork(modulePath /* , args, options */) {
<ide> args = arguments[pos++];
<ide> }
<ide>
<del> if (pos < arguments.length &&
<del> (arguments[pos] === undefined || arguments[pos] === null)) {
<add> if (pos < arguments.length && arguments[pos] == null) {
<ide> ... | 1 |
PHP | PHP | reset node level when recovering tree | 52853ac5b5a7192970655390772e5fc0973619e8 | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> public function recover()
<ide> *
<ide> * @param int $counter The Last left column value that was assigned
<ide> * @param mixed $parentId the parent id of the level to be recovered
<add> * @param int $level Node level
<ide> * @return int The nex... | 2 |
Javascript | Javascript | remove use of arguments in server constructor | cca8de6709ece5b4791d52a8b834da83bfb782d5 | <ide><path>lib/net.js
<ide> function isPipeName(s) {
<ide> return typeof s === 'string' && toNumber(s) === false;
<ide> }
<ide>
<del>exports.createServer = function() {
<del> return new Server(arguments[0], arguments[1]);
<add>exports.createServer = function(options, connectionListener) {
<add> return new Server(o... | 1 |
Python | Python | fix pip args | b9573e9e2232c3a91e7713f78191a23d4d3e9c77 | <ide><path>spacy/cli/download.py
<ide> def download_model(
<ide> filename: str, user_pip_args: Optional[Sequence[str]] = None
<ide> ) -> None:
<ide> download_url = about.__download_url__ + "/" + filename
<del> pip_args = user_pip_args if user_pip_args is not None else []
<add> pip_args = list(user_pip_arg... | 1 |
Javascript | Javascript | add names to anon functions in node managers | cdc496a0fcc9a7cafc01eca7943b59ab59a42081 | <ide><path>packages/ember-htmlbars/lib/node-managers/component-node-manager.js
<ide> function ComponentNodeManager(component, isAngleBracket, scope, renderNode, attr
<ide>
<ide> export default ComponentNodeManager;
<ide>
<del>ComponentNodeManager.create = function(renderNode, env, options) {
<add>ComponentNodeManager... | 2 |
Javascript | Javascript | make streamwrap work correctly in "drain" callback | e4dea40ce779ae03a77c194074e5aa06a8a28a78 | <ide><path>lib/internal/wrap_js_stream.js
<ide> class JSStreamWrap extends Socket {
<ide> }
<ide>
<ide> doShutdown(req) {
<del> assert.strictEqual(this[kCurrentShutdownRequest], null);
<del> this[kCurrentShutdownRequest] = req;
<del>
<ide> // TODO(addaleax): It might be nice if we could get into a state ... | 2 |
Javascript | Javascript | fix suggestion to "npm start -- --reset-cache" | 06dd08316f449d63ccb67a788f4bc845c1e5c060 | <ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest {
<ide> `To resolve try the following:\n` +
<ide> ` 1. Clear watchman watches: \`watchman watch-del-all\`.\n` +
<ide> ` 2. Delete the \`node_modules\` folder: \`rm -rf node_m... | 1 |
Python | Python | remove use of trackablesaver in keras | af70910ffc1d8a3591bfea76728029e100e92a7b | <ide><path>keras/engine/training.py
<ide> from keras.utils import generic_utils
<ide> from keras.utils import io_utils
<ide> from keras.utils import layer_utils
<del>from keras.utils import object_identity
<ide> from keras.utils import tf_utils
<ide> from keras.utils import traceback_utils
<ide> from keras.utils import... | 3 |
Javascript | Javascript | reduce code size of event modules | 51e66cf9fa3448efdc7c5938405757dbb53c9079 | <ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js
<ide> const eventResponderContext: ReactResponderContext = {
<ide> }
<ide> return false;
<ide> },
<del> isTargetWithinEventComponent(target: Element | Document): boolean {
<del> validateResponderContext();
<del> if (target != null) {
<... | 6 |
Java | Java | delay check if pattern ends with slash | 0634555424a8742bbe95333c49975437af6eacf8 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/PatternsRequestCondition.java
<ide> protected String getToStringInfix() {
<ide> * <li>If neither instance has patterns, use an empty String (i.e. "").
<ide> * </ul>
<ide> */
<add> @Override
<ide> public PatternsRequestCondition... | 1 |
Java | Java | switch equality check in blobmodule.java | 7c5d581d7848206603cf9d80a841afb49759ec1a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java
<ide> public void onMessage(ByteString bytes, WritableMap params) {
<ide> @Override
<ide> public boolean supports(Uri uri, String responseType) {
<ide> String scheme = uri.getScheme();
<del> boolean isRemote... | 1 |
Python | Python | add malformedresponseerror checking for ec2 driver | 3d301d4f80f82568279d792af4710ff7f349aedd | <ide><path>libcloud/drivers/ec2.py
<ide> Amazon EC2 driver
<ide> """
<ide> from libcloud.providers import Provider
<del>from libcloud.types import NodeState, InvalidCredsError
<add>from libcloud.types import NodeState, InvalidCredsError, MalformedResponseError
<ide> from libcloud.base import Node, Response, ConnectionU... | 1 |
Ruby | Ruby | push merge code to the callback itself | 929658c98d48eeba7f65ec4afb0f8cbedadaf270 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def deprecate_per_key_option(options)
<ide> end
<ide> end
<ide>
<del> def initialize_copy(other)
<del> super
<del> @options = {
<del> :if => other.options[:if].dup,
<del> :unless => other.options[:unle... | 1 |
Javascript | Javascript | remove recursive arg from mesh.clone() | 6cc768f0b459a344f3f4464551576fbdb2e0626e | <ide><path>src/objects/Mesh.js
<ide> THREE.Mesh.prototype.raycast = ( function () {
<ide>
<ide> }() );
<ide>
<del>THREE.Mesh.prototype.clone = function ( recursive ) {
<add>THREE.Mesh.prototype.clone = function () {
<ide>
<ide> var mesh = new THREE.Mesh( this.geometry, this.material );
<ide> return this.clonePrope... | 1 |
Javascript | Javascript | add test for merge | 09c5e5157d568cac0850e1ed41da1f7f60c66426 | <ide><path>test/core/merge-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("d3.merge");
<add>
<add>suite.addBatch({
<add> "merge": {
<add> "merges an array of arrays": function() {
<add> v... | 1 |
Mixed | Ruby | log active_job potential matches when asserting | 060a1fb338854da2b99bced7709468f5d53ad368 | <ide><path>activejob/CHANGELOG.md
<add>* Log potential matches in `assert_enqueued_with` and `assert_performed_with`
<add>
<add> *Gareth du Plooy*
<add>
<ide> * Add `at` argument to the `perform_enqueued_jobs` test helper.
<ide>
<ide> *John Crepezzi*, *Eileen Uchitelle*
<ide><path>activejob/lib/active_job/t... | 3 |
Javascript | Javascript | use strict in driver.js | 17e02e3c39b6af3468e0f857adccdb03d98e39a7 | <ide><path>test/driver.js
<ide> * A Test Driver for PDF.js
<ide> */
<ide>
<add>'use strict';
<add>
<ide> var appPath, browser, canvas, currentTaskIdx, manifest, stdout;
<ide>
<ide> function queryParams() {
<ide> function queryParams() {
<ide> function load() {
<ide> var params = queryParams();
<ide> browser... | 1 |
Javascript | Javascript | fix hot test cases | 10517ae3ae5c7335cb146668430aac9a66bdce03 | <ide><path>test/HotTestCases.template.js
<ide> const describeCases = config => {
<ide> _attrs: {},
<ide> setAttribute(name, value) {
<ide> this._attrs[name] = value;
<add> },
<add> parentNode: {
<add> removeChild(node) {
<add> //... | 1 |
Javascript | Javascript | remove extra wkwebview file not used | ea124a044c8eca6c1eecc8f898c80864d0f6b094 | <ide><path>Libraries/Components/WKWebView/WKWebView.ios.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow
<del> * @prov... | 1 |
Java | Java | enhance npe messages | 4f86ee02f525a61ef8331fdd2be5c66be3694846 | <ide><path>src/main/java/io/reactivex/internal/observers/ToNotificationObserver.java
<ide> public void onSubscribe(Disposable s) {
<ide> public void onNext(T t) {
<ide> if (t == null) {
<ide> s.dispose();
<del> onError(new NullPointerException());
<add> onError(new NullPoin... | 24 |
Text | Text | remove bad apostrophe | 16c855931b9a52d131904eb883ab2b0ef6abd4eb | <ide><path>docs/guides/options.md
<ide> or
<ide>
<ide> ### autoplay ###
<ide> If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user).
<del>NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from... | 1 |
Ruby | Ruby | remove unused private method | 04021c4b78abc89045a7d3daf517a5d2dc63e5a7 | <ide><path>railties/lib/rails/rack/logger.rb
<ide> def finish(request)
<ide> instrumenter.finish 'request.action_dispatch', request: request
<ide> end
<ide>
<del> def development?
<del> Rails.env.development?
<del> end
<del>
<ide> def logger
<ide> Rails.logger
<ide> e... | 1 |
Text | Text | add note about scope wildcard | bdf960294ada6f5ecbf9494372922f5f9cfb0a94 | <ide><path>CONTRIBUTING.md
<ide> Must be one of the following:
<ide> The scope could be anything specifying place of the commit change. For example `$location`,
<ide> `$browser`, `$compile`, `$rootScope`, `ngHref`, `ngClick`, `ngView`, etc...
<ide>
<add>You can use `*` when the change affects more than a single scope.... | 1 |
Text | Text | fix contribution docs about gulp-cli | f342299845678819c7629e1a569629a8c87ed01a | <ide><path>docs/developers/contributing.md
<ide> Firstly, we need to ensure development dependencies are installed. With node and
<ide>
<ide> ```bash
<ide> > npm install
<del>> npm install -g gulp
<add>> npm install -g gulp-cli
<ide> ```
<ide>
<ide> This will install the local development dependencies for Chart.js, a... | 1 |
Javascript | Javascript | fix typo in pet mongoose model | 4ba3607dcbb6ad88a9ee6935504f2dadc91dd0de | <ide><path>examples/with-mongodb-mongoose/models/Pet.js
<ide> const PetSchema = new mongoose.Schema({
<ide> type: Boolean,
<ide> },
<ide> diet: {
<del> /* List of dietary needs, if applicale */
<add> /* List of dietary needs, if applicable */
<ide>
<ide> type: Array,
<ide> }, | 1 |
Text | Text | change the explanation of splice function | 335600d91caca00734759aaeda21901fb5168f9a | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-items-using-splice.english.md
<ide> forumTopicId: 301152
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>Remember in the last challenge we mentioned that <code>splice()</code> can take up to... | 1 |
Javascript | Javascript | use `assert` in `fscall` argument checking | 8231cc4d4228da9d62b5362c0aff975cc53d6f05 | <ide><path>lib/internal/fs/promises.js
<ide> const { promisify } = require('internal/util');
<ide> const { EventEmitterMixin } = require('internal/event_target');
<ide> const { watch } = require('internal/fs/watchers');
<ide> const { isIterable } = require('internal/streams/utils');
<add>const assert = require('interna... | 2 |
Javascript | Javascript | use string instead of window.string. close gh-1176 | 31478b90128a60585c087bee57d31148677a99cd | <ide><path>src/ajax.js
<ide> jQuery.extend({
<ide> converters: {
<ide>
<ide> // Convert anything to text
<del> "* text": window.String,
<add> "* text": String,
<ide>
<ide> // Text to html (true = no transformation)
<ide> "text html": true, | 1 |
Mixed | Javascript | add missing err_ prefix on util.callbackify error | 873e2f270fa67c701d59bc99f0f815f1f69b2316 | <ide><path>doc/api/errors.md
<ide> The `ERR_CONSOLE_WRITABLE_STREAM` error code is thrown when `Console` is
<ide> instantiated without `stdout` stream or when `stdout` or `stderr` streams
<ide> are not writable.
<ide>
<add><a id="ERR_FALSY_VALUE_REJECTION"></a>
<add>### ERR_FALSY_VALUE_REJECTION
<add>
<add>The `ERR_FA... | 4 |
PHP | PHP | collapse redundant multi-line conditions | 6b7e767e4b9c19db3e3652a369a9ef7997356f67 | <ide><path>src/Database/Expression/TupleComparison.php
<ide> public function getType(): array
<ide> public function setValue($value): void
<ide> {
<ide> if ($this->isMulti()) {
<del> if (
<del> is_array($value) &&
<del> !is_array(current($value))
<del> ... | 1 |
Text | Text | fix variable scoping bug in server example code | 66d697cb5c32461cf65fe44d797c8648ab2f0fca | <ide><path>doc/api/stream.md
<ide> const server = http.createServer( (req, res) => {
<ide> req.on('end', () => {
<ide> try {
<ide> const data = JSON.parse(body);
<add> // write back something interesting to the user:
<add> res.write(typeof data);
<add> res.end();
<ide> } catch (er) {
<ide... | 1 |
PHP | PHP | pass listener arguments to middleware method | 3ed70e93460c903b1a860d0d0572f2dcfdbfeb43 | <ide><path>src/Illuminate/Events/Dispatcher.php
<ide> protected function createListenerAndJob($class, $method, $arguments)
<ide> * Propagate listener options to the job.
<ide> *
<ide> * @param mixed $listener
<del> * @param mixed $job
<add> * @param \Illuminate\Events\CallQueuedListener $jo... | 2 |
Ruby | Ruby | resolve constant lookup issues | 425a02cecea188f502ad8f137271d1b90b9c7558 | <ide><path>actionpack/test/controller/helper_test.rb
<ide>
<ide> ActionController::Base.helpers_dir = File.dirname(__FILE__) + '/../fixtures/helpers'
<ide>
<del>class TestController < ActionController::Base
<del> attr_accessor :delegate_attr
<del> def delegate_method() end
<del> def rescue_action(e) raise end
<del... | 10 |
Text | Text | add deprecation note for easy_install | 9e9944b81af449e470d3f478f9492052612e94b4 | <ide><path>guide/english/python/using-pip/index.md
<ide> Using `easy_install` is also simple. The syntax is:
<ide>
<ide> easy_install <module_name>
<ide>
<del>However, `pip` is more popular than using `easy_install`.
<add>However, `pip` is more popular than using `easy_install`, and `easy_install` is <a href='htt... | 1 |
Python | Python | fix a small bug in docscrape | 5a0e7560e7206f9c0f049d8176eab0f8c0b951c6 | <ide><path>doc/sphinxext/docscrape_sphinx.py
<ide> def __init__(self, obj, doc=None, config={}):
<ide> FunctionDoc.__init__(self, obj, doc=doc, config=config)
<ide>
<ide> class SphinxClassDoc(SphinxDocString, ClassDoc):
<del> def __init__(self, obj, doc=None, config={}):
<add> def __init__(self, obj, doc... | 1 |
Javascript | Javascript | add tests for process.initgroups | a4cae978fc9a60c31ec443ee72bfc5770a742b92 | <ide><path>test/parallel/test-process-initgroups.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>
<add>if (common.isWindows || !common.isMainThread) {
<add> assert.strictEqual(process.initgroups, undefined);
<add> return;
<add>}
<add>
<add>[undefined, null, ... | 1 |
Ruby | Ruby | use new update_python_resources! signature | 20de58b5ae473939e9a39d4e79c3a6f7601d6bf1 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide> end
<ide>
<ide> unless args.dry_run?
<del> resources_checked = PyPI.update_python_resources! formula, new_formula_version,
<add> resources_checked = PyPI.update_python_resources! formula, version: new_formula_versi... | 1 |
Python | Python | fix typo in documentation | 1d8b64ef0d094287a0ed7934f77aa93574913760 | <ide><path>celery/app/base.py
<ide> def autodiscover_tasks(self, packages=None,
<ide> baz/__init__.py
<ide> models.py
<ide>
<del> Then calling ``app.autodiscover_tasks(['foo', bar', 'baz'])`` will
<add> Then calling ``app.autodiscover_tasks(['foo', 'bar', 'baz'])`` will
<ide> ... | 1 |
Ruby | Ruby | fix typo in activerecord test method name | 4a3f5a68c9972290326481ef859e63c53809715d | <ide><path>activerecord/test/cases/base_test.rb
<ide> def test_switching_between_table_name
<ide> end
<ide> end
<ide>
<del> def test_clear_cash_when_setting_table_name
<add> def test_clear_cache_when_setting_table_name
<ide> original_table_name = Joke.table_name
<ide>
<ide> Joke.table_name = "funny_jo... | 1 |
Text | Text | update index.md input attribute | e13d795cff1772c20b384d93e736c08a42c1bdf9 | <ide><path>guide/english/html/attributes/input-type-attribute/index.md
<ide> title: Input Type Attribute
<ide> The input type attribute specifies the type of the input the user should put in your form.
<ide>
<ide> ### text
<del>One line of a text.
<add>One line of text.
<ide> ```html
<ide> <form>
<ide> <labe... | 1 |
Ruby | Ruby | remove xip support | 8113a9fed9fe6dcd41f6a382cb19e61c0abe2887 | <ide><path>Library/Homebrew/cask/lib/hbc/container.rb
<ide> require "hbc/container/ttf"
<ide> require "hbc/container/rar"
<ide> require "hbc/container/xar"
<del>require "hbc/container/xip"
<ide> require "hbc/container/xz"
<ide> require "hbc/container/zip"
<ide>
<ide> def self.autodetect_containers
<ide> Sit,
<... | 2 |
Mixed | Javascript | simplify common.port code | 3674bee884bd86a7eb778345a410b2d8ab473a84 | <ide><path>test/common/index.js
<ide> const noop = () => {};
<ide> // Using a `.` prefixed name, which is the convention for "hidden" on POSIX,
<ide> // gets tools to ignore it by default or by simple rules, especially eslint.
<ide> let tmpDirName = '.tmp';
<del>// PORT should match the definition in test/testpy/__init... | 2 |
Text | Text | add comment on deep cloning and re-rendering | 4c9cbd15839d153e4aee9f935c11ec9ca4af10b3 | <ide><path>docs/faq/Performance.md
<ide> If you actually are concerned about reducer performance, you can use a utility s
<ide>
<ide> Immutably updating state generally means making shallow copies, not deep copies. Shallow copies are much faster than deep copies, because fewer objects and fields have to be copied, and... | 1 |
PHP | PHP | update builder.php | 87a29a2fa2d7a3df8594d0b45ebe3f6093fb8a09 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and'
<ide> */
<ide> protected function addArrayOfWheres($column, $boolean, $method = 'where')
<ide> {
<del> return $this->whereNested(function ($query) use ($column,... | 1 |
Mixed | Javascript | add support for layout gravity to toastandroid | 12ec213c0d1610ebc6c0bd233818e387aa1ad4b9 | <ide><path>Examples/UIExplorer/js/ToastAndroidExample.android.js
<ide> var ToastExample = React.createClass({
<ide> <TouchableWithoutFeedback
<ide> onPress={() =>
<ide> ToastAndroid.show('This is a toast with long duration', ToastAndroid.LONG)}>
<del> <Text style={styles.t... | 3 |
Text | Text | update readme to use bundle exec * | fdf97f42f747c79dfc7a04d609f06c7c3bd5ab2b | <ide><path>docs/README.md
<ide> Use Jekyll to serve the website locally (by default, at `http://localhost:4000`)
<ide>
<ide> ```sh
<ide> $ cd react/docs
<del>$ rake
<del>$ jekyll serve -w
<add>$ bundle exec rake
<add>$ bundle exec jekyll serve -w
<ide> $ open http://localhost:4000/react/
<ide> ```
<ide>
<ide> If you ... | 1 |
Ruby | Ruby | fix version misdetection from fa582cb9ac65 | 5369199df36a0fbf707e08ef5f3569782fb0cde4 | <ide><path>Library/Homebrew/version.rb
<ide> def self._parse spec
<ide> return m.captures.first unless m.nil?
<ide>
<ide> # e.g. http://www.openssl.org/source/openssl-0.9.8s.tar.gz
<del> m = /-([^-]+)/.match(stem)
<add> m = /-v?([^-]+)/.match(stem)
<ide> return m.captures.first unless m.nil?
<ide>
<... | 1 |
Text | Text | add missing period | f7642a476ddacb537e78c564ec19d7bb72964d16 | <ide><path>docs/build-instructions/windows.md
<ide> To also install the newly built application, use `script\build --create-windows-
<ide> * See the next item.
<ide>
<ide> * `error MSB8020: The build tools for Visual Studio 201? (Platform Toolset = 'v1?0') cannot be found.`
<del> * Try setting the `GYP_MSVS_VERSION... | 1 |
Python | Python | use protocolerror.errcode value to trace errors | 90e1124ec0863c9abb4dd9acfe86152ce147dde0 | <ide><path>glances/core/glances_client.py
<ide> def login(self):
<ide> except socket.error as err:
<ide> # Fallback to SNMP
<ide> self.client_mode = 'snmp'
<del> logger.error("Connection to Glances server failed: {0}".format(err))
<add> logger.er... | 1 |
Javascript | Javascript | remove deregisternotifier feature for $watch | d2f8f25af2c078c971c7223a8894a01e0595cd20 | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> exp: text, //just for compatibility with regular watchers created via $watch
<ide> separators: separators,
<ide> expressions: expressions,
<del> $$watchDelegate: function (scope, listener, objectEqualit... | 4 |
Python | Python | prefer pytest.skip() over skiptest | f531cfd97a99ac8b534fff479e3388888319a606 | <ide><path>numpy/core/tests/_locales.py
<ide> import sys
<ide> import locale
<ide>
<del>from numpy.testing import SkipTest
<add>import pytest
<ide>
<ide> __ALL__ = ['CommaDecimalPointLocale']
<ide>
<ide> class CommaDecimalPointLocale(object):
<ide> tests with locale.LC_NUMERIC set to a locale where commas (',') ... | 9 |
Mixed | Python | add vector training script to bin [ci skip] | 72fb324d954207623030579fcdeda4e3a2e0b8cf | <ide><path>bin/train_word_vectors.py
<add>#!/usr/bin/env python
<add>from __future__ import print_function, unicode_literals, division
<add>
<add>import logging
<add>from pathlib import Path
<add>from collections import defaultdict
<add>from gensim.models import Word2Vec
<add>from preshed.counter import PreshCounter
<a... | 2 |
Javascript | Javascript | move module.id into chunkgraph | bad9d8a271ccd7abe774a48720893e6633b0232b | <ide><path>lib/AmdMainTemplatePlugin.js
<ide> class AmdMainTemplatePlugin {
<ide> );
<ide> const externalsArguments = externals
<ide> .map(
<del> m => `__WEBPACK_EXTERNAL_MODULE_${Template.toIdentifier(`${m.id}`)}__`
<add> m =>
<add> `__WEBPACK_EXTERNAL_MODULE_${Template.toIdentifier(
<add> ... | 28 |
PHP | PHP | add check for all exceptions | 982c730ec935295712bf22a83eec9b940fbbe649 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> public function render($request, Throwable $e)
<ide> return $this->convertValidationExceptionToResponse($e, $request);
<ide> }
<ide>
<del> return $request->expectsJson()
<add> return $this->shouldReturnJson($request, $e... | 1 |
Python | Python | remove adjust_logits_during_generation method | c130e67dce56a092604949a8df6384a17f762189 | <ide><path>src/transformers/configuration_utils.py
<ide> class PretrainedConfig(object):
<ide> logits when used for generation
<ide> - **return_dict_in_generate** (:obj:`bool`, `optional`, defaults to :obj:`False`) -- Whether the model should
<ide> return a :class:`~transformers.file_utils.M... | 29 |
Javascript | Javascript | add missing arguments in code comment | 5e20dcc7248a5cfd31414415ceaf9db61533dea2 | <ide><path>packages/ember-metal/lib/events.js
<ide> function actionsDiff(obj, eventName, otherActions) {
<ide> @param {String} eventName
<ide> @param {Object|Function} targetOrMethod A target object or a function
<ide> @param {Function|String} method A function or the name of a function to be called on `target`
<... | 1 |
Javascript | Javascript | fix symbol lookup for older node.js versions | d51c4277d334497a42a130869b50ced6d2868bcd | <ide><path>test/helpers/createLazyTestEnv.js
<ide> const STATE_SYM = Object.getOwnPropertySymbols(global).find(
<del> s => s.description === "JEST_STATE_SYMBOL"
<add> Symbol("x").description
<add> ? s => s.description === "JEST_STATE_SYMBOL"
<add> : s => s.toString() === "Symbol(JEST_STATE_SYMBOL)"
<ide> );
<add>if (... | 1 |
Ruby | Ruby | remove unused method | 2ad34f46a1c4b8c59f37c2846ed0fcf3b4401e3a | <ide><path>actionpack/test/controller/send_file_test.rb
<ide> def file
<ide> def data
<ide> send_data(file_data, options)
<ide> end
<del>
<del> def multibyte_text_data
<del> send_data("Кирилица\n祝您好運.", options)
<del> end
<ide> end
<ide>
<ide> class SendFileTest < ActionController::TestCase | 1 |
Ruby | Ruby | use pip2 instead of pip | f8d5b20512700c9458c51523bda2da24f4212b0c | <ide><path>Library/Homebrew/missing_formula.rb
<ide> def blacklisted_reason(name)
<ide> #{Formatter.url("https://pip.readthedocs.io/en/stable/installing/")}
<ide> EOS
<ide> when "pil" then <<-EOS.undent
<del> Instead of PIL, consider `pip install pillow`.
<add> Instead of... | 1 |
Javascript | Javascript | implement xhrloader in stlloader.js | 5c07056cdd54d7c52d5eb304c502ab1fb748c52f | <ide><path>examples/js/loaders/STLLoader.js
<ide> * Supports both binary and ASCII encoded files, with automatic detection of type.
<ide> *
<ide> * Limitations:
<del> * Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL).
<del> * There is perhaps some... | 1 |
Javascript | Javascript | add spec for redbox | c44d4f9ef6adbc68ed9baefb6f1df5ea0c8276e9 | <ide><path>Libraries/BugReporting/BugReporting.js
<ide> const RCTDeviceEventEmitter = require('../EventEmitter/RCTDeviceEventEmitter');
<ide> const infoLog = require('../Utilities/infoLog');
<ide>
<ide> import type EmitterSubscription from '../vendor/emitter/EmitterSubscription';
<add>import NativeRedBox from '../Nati... | 3 |
Ruby | Ruby | freeze columns before using them as hash keys | 3aef5ce9b35a4659379201eb6bb1dba355a83ba4 | <ide><path>activerecord/lib/active_record/result.rb
<ide> class Result
<ide> attr_reader :columns, :rows, :column_types
<ide>
<ide> def initialize(columns, rows, column_types = {})
<del> @columns = columns
<add> @columns = columns.map{|c| c.freeze}
<ide> @rows = rows
<ide> ... | 1 |
PHP | PHP | use the instance config trait on dispatch filters | f4d1eb1542c690b691005d0355d22c373152d744 | <ide><path>src/Routing/DispatcherFilter.php
<ide>
<ide> namespace Cake\Routing;
<ide>
<add>use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Event\Event;
<ide> use Cake\Event\EventListener;
<del>use Cake\Utility\Hash;
<ide>
<ide> /**
<ide> * This abstract class represents a filter to be applied to a dispatcher cycl... | 1 |
Ruby | Ruby | add _ for unused last arg | a4eed027411c7db1091d2fdc26135b67c9b985bd | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def test
<ide> ]
<ide>
<ide> def generate_test_dummy(force = false)
<del> opts = (options.dup || {}).keep_if { |k, | PASSTHROUGH_OPTIONS.map(&:to_s).include?(k) }
<add> opts = (options.dup || {}).keep_if { |k, _| PASSTHRO... | 1 |
Javascript | Javascript | update documentation to avoid global view access | 13c807b7e085cd91e5d40263b0ab0f299ee6a078 | <ide><path>packages/ember-handlebars-compiler/lib/main.js
<ide> var EmberHandlebars = Ember.Handlebars = objectCreate(Handlebars);
<ide> Which is functionally equivalent to:
<ide>
<ide> ```handlebars
<del> {{view App.CalendarView}}
<add> {{view 'calendar'}}
<ide> ```
<ide>
<ide> Options in the helper will b... | 7 |
Go | Go | remove use of docker/docker/pkg/homedir | 9fd12a5e3104befcd9a6fead9f28b0346339c75d | <ide><path>libnetwork/client/mflag/flag.go
<ide> import (
<ide> "strings"
<ide> "text/tabwriter"
<ide> "time"
<del>
<del> "github.com/docker/docker/pkg/homedir"
<ide> )
<ide>
<ide> // ErrHelp is the error returned if the flag -help is invoked but no such flag is defined.
<ide> func isZeroValue(value string) bool {
... | 1 |
Javascript | Javascript | fix lint issues | 9fe5a6b5a86adb163b02a200bf7562aca87c53e0 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/input-test.js
<ide> moduleFor(
<ide> }
<ide>
<ide> ['@test GH18211 input checked attribute, without a value, works with the action helper']() {
<del> this.render(`<input type="checkbox" checked {{action "someAction"}}>`, { actions: { someActi... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.