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 | more clean up | 6ef2798ee0d91f4e123142be664455fe018c16ef | <ide><path>src/objects/Mesh.js
<ide> Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
<ide> var uvC = new Vector2();
<ide>
<ide> var barycoord = new Vector3();
<add> var triangle = new Triangle();
<ide>
<ide> var intersectionPoint = new Vector3();
<ide> var intersectionPointWorld = new ... | 2 |
Java | Java | remove use of threadlocal | 348ecce42a98fe2dfa087245b22200944b19cbcc | <ide><path>src/main/java/rx/schedulers/TrampolineScheduler.java
<ide> public Worker createWorker() {
<ide> /* package accessible for unit tests */TrampolineScheduler() {
<ide> }
<ide>
<del> private static final ThreadLocal<PriorityQueue<TimedAction>> QUEUE = new ThreadLocal<PriorityQueue<TimedAction>>() {
<... | 1 |
Javascript | Javascript | remove unreachable check in internalconnect | ff566276da239a8d2ecc2ebb93719b2242c2b749 | <ide><path>lib/net.js
<ide> function internalConnect(
<ide> if (addressType === 4) {
<ide> localAddress = localAddress || '0.0.0.0';
<ide> err = self._handle.bind(localAddress, localPort);
<del> } else if (addressType === 6) {
<add> } else { // addressType === 6
<ide> localAddress = localAdd... | 1 |
Ruby | Ruby | integrate upgrade with cask | 210d22e8199f2482b28f550838a33cca47380ce4 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> require "formula_installer"
<ide> require "install"
<ide> require "upgrade"
<add>require "cask/cmd"
<add>require "cask/utils"
<add>require "cask/macos"
<ide>
<ide> module Homebrew
<ide> module_function
<ide> def upgrade_args
<ide> description: "Print inst... | 1 |
Text | Text | fix some typos in the new docs | 94049150b1d5fea6d6fa904db55b68169adc52ba | <ide><path>docs/api/Store.md
<ide> # Store
<ide>
<del>A store holds the whole [state tree](../Glossary.md#state) of your application.
<del>The only way to change the state inside it is to dispatch an [action](../Glossary.md#action) on it.
<add>A store holds the whole [state tree](../Glossary.md#state) of your appl... | 4 |
Python | Python | reorganize exceptions for english and german | 311b30ab357260b4be940cdc0925a6a05e63e962 | <ide><path>spacy/de/__init__.py
<ide> from ..language import Language
<ide> from ..attrs import LANG
<ide> from . import language_data
<add>from ..util import update_exc
<add>
<add>from ..language_data import EMOTICONS
<add>from .language_data import ORTH_ONLY
<add>from .language_data import strings_to_exc
<add>from .l... | 4 |
Ruby | Ruby | remove concurrent map require | e57826234ee49b987dfe7101dca183af3262d5ab | <ide><path>activesupport/lib/active_support/testing/time_helpers.rb
<ide>
<ide> require "active_support/core_ext/module/redefine_method"
<ide> require "active_support/core_ext/time/calculations"
<del>require "concurrent/map"
<ide>
<ide> module ActiveSupport
<ide> module Testing | 1 |
Text | Text | use code markup/markdown in headers | 24f24d909e8c4b5ecd4af1f8a6be83b81c7651bc | <ide><path>doc/api/os.md
<ide> properties. It can be accessed using:
<ide> const os = require('os');
<ide> ```
<ide>
<del>## os.EOL
<add>## `os.EOL`
<ide> <!-- YAML
<ide> added: v0.7.8
<ide> -->
<ide> The operating system-specific end-of-line marker.
<ide> * `\n` on POSIX
<ide> * `\r\n` on Windows
<ide>
<del>## os.ar... | 1 |
Ruby | Ruby | remove old compatibility methods not being used | bc50cb31d6b1064463b371cf428e7eb6fcbf2fd3 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> module ActionController
<ide> #
<ide> # Title: <%= @post.title %>
<ide> #
<del> # You don't have to rely on the automated rendering. For example, actions that could result in the rendering of different templates
<add> # You don't have to rely on the a... | 4 |
Ruby | Ruby | handle dependencies of moved/renamed formulae | 8b30abe0600df5c9d3da5b4c31ca88a71a1c3e03 | <ide><path>Library/Homebrew/keg.rb
<ide> def self.find_some_installed_dependents(kegs)
<ide> end
<ide>
<ide> keg_names = kegs.map(&:name)
<del> kegs_by_source = kegs.group_by { |k| [k.name, Tab.for_keg(k).tap] }
<add> kegs_by_source = kegs.group_by do |keg|
<add> begin
<add> # First, attempt ... | 2 |
Javascript | Javascript | remove invariant hack for jest | 85801ef87491e25323d3d8f9cb387f96776f3ff8 | <ide><path>Libraries/Animated/src/Interpolation.js
<ide> /* eslint no-bitwise: 0 */
<ide> 'use strict';
<ide>
<add>var invariant = require('invariant');
<ide> var normalizeColor = require('normalizeColor');
<ide>
<del>// TODO(#7644673): fix this hack once github jest actually checks invariants
<del>var invariant = fu... | 1 |
Python | Python | fix mypy errors at even_tree algo | a5bcf0f6749a93a44f7a981edc9b0e35fbd066f2 | <ide><path>graphs/even_tree.py
<ide> from collections import defaultdict
<ide>
<ide>
<del>def dfs(start):
<add>def dfs(start: int) -> int:
<ide> """DFS traversal"""
<ide> # pylint: disable=redefined-outer-name
<ide> ret = 1
<ide> visited[start] = True
<del> for v in tree.get(start):
<add> for v ... | 1 |
Ruby | Ruby | add install check for top-level info | 80ae0e6d95aa67be0648af9318fad0d849898dc9 | <ide><path>Library/Homebrew/install.rb
<ide> def install f
<ide> puts 'This can often be fixed by passing "--mandir=#{man}" to configure.'
<ide> end
<ide>
<add> # Check for info pages that aren't in share/info
<add> if (f.prefix+'info').exist?
<add> opoo 'A top-level "info" folder was found.'
<add... | 1 |
Python | Python | add textcat docstring | ebf9a7acbf06a9f9f8aaab9657d82012c569014c | <ide><path>spacy/pipeline/textcat.py
<ide> default_score_weights={"cats_score": 1.0},
<ide> )
<ide> def make_textcat(
<del> nlp: Language, name: str, model: Model, labels: Iterable[str]
<add> nlp: Language, name: str, model: Model[List[Doc], List[Floats2d]], labels: Iterable[str]
<ide> ) -> "TextCategorizer":... | 1 |
Ruby | Ruby | check dependency order in on_system methods | d5f949e60b6d78aa50f0409a2dfb50a63eaa554e | <ide><path>Library/Homebrew/rubocops/components_order.rb
<ide> module FormulaAudit
<ide> class ComponentsOrder < FormulaCop
<ide> extend AutoCorrector
<ide>
<del> def on_system_methods
<del> @on_system_methods ||= [:intel, :arm, :macos, :linux, :system, *MacOSVersions::SYMBOLS.keys].map d... | 3 |
PHP | PHP | update entry points to reflect new directories | 8e1691d6df1eb1f2d4d6761f95f6ca600af7f25a | <ide><path>App/webroot/index.php
<ide> if (php_sapi_name() === 'cli-server') {
<ide> $_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
<ide> }
<del>require dirname(__DIR__) . '/Config/bootstrap.php';
<add>require dirname(__DIR__) . '/App/Config/bootstrap.php';
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Networ... | 2 |
Python | Python | remove dep on python_2_unicode_compatible | 192201d5840f13c8b96f44fdce4645edeb653f0f | <ide><path>rest_framework/tests/test_description.py
<ide>
<ide> from __future__ import unicode_literals
<ide> from django.test import TestCase
<del>from django.utils.encoding import python_2_unicode_compatible
<ide> from rest_framework.compat import apply_markdown, smart_text
<ide> from rest_framework.views import API... | 1 |
PHP | PHP | set the url when in console context | 10010f4ed208b7c46f5f871d54733fd4a4eb12d5 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> protected function createRequest(Request $request = null)
<ide> */
<ide> public function setRequestForConsoleEnvironment()
<ide> {
<del> $url = $this['config']['app.url'];
<add> $url = $this['config']->get('app.url', 'http://localhost');
<ide>
<ide> $t... | 2 |
Ruby | Ruby | return output if json parsing is not desired | e1ce5c852dc68783ab4741173173824b1e79a266 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def api_credentials_error_message(response_headers, needed_scopes)
<ide> end
<ide> end
<ide>
<del> def open_api(url, data: nil, request_method: nil, scopes: [].freeze)
<add> def open_api(url, data: nil, request_method: nil, scopes: [].freeze, parse_json: true)
... | 1 |
Mixed | Javascript | support abortsignal in fork | 73a21e4c06d5781dc37f3552dea93bb6a01e19f5 | <ide><path>doc/api/child_process.md
<ide> controller.abort();
<ide> <!-- YAML
<ide> added: v0.5.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/36603
<add> description: AbortSignal support was added.
<ide> - version:
<ide> - v13.2.0
<ide> - v12.16.0
<id... | 4 |
Python | Python | remove unnecessary cpplint rules | 3058f08e645bca41ee0f281ed83a697be1e3c8c4 | <ide><path>tools/cpplint.py
<ide> def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
<ide>
<ide> line = clean_lines.lines[linenum]
<ide>
<del> # "include" should use the new style "foo/bar.h" instead of just "bar.h"
<del> if _RE_PATTERN_INCLUDE_NEW_STYLE.search(line):
<del> error(filen... | 1 |
Python | Python | add tests for maximum_sctype | 00e50a3a38d1f86e027dd1d77fd5491ade7d248a | <ide><path>numpy/core/tests/test_numerictypes.py
<ide> import sys
<ide> import itertools
<ide>
<add>import pytest
<ide> import numpy as np
<ide> from numpy.testing import assert_, assert_equal, assert_raises
<ide>
<ide> def TestSctypeDict(object):
<ide> def test_longdouble(self):
<ide> assert_(np.sctypeDi... | 1 |
Text | Text | tweak the text a little | d79e597f301fdf42a0f441f35b48504a5b07eb8b | <ide><path>docs/sources/articles/https.md
<ide> name) matches the hostname you will use to connect to Docker:
<ide>
<ide> Next, we're going to sign the public key with our CA:
<ide>
<del>Since tls connections can be made via IP address as well as dns name,
<del>this extension allows for your client to connect via IP ... | 1 |
Java | Java | add appproperty to reactrootview | 57b0039ce1c89423cd3038e411a12df7e572a46b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> private void attachMeasuredRootViewToInstance(
<ide> UIManagerModule uiManagerModule = catalystInstance.getNativeModule(UIManagerModule.class);
<ide> int rootTag = uiManagerModule.addMeasuredRootView(rootView);
<ide> ro... | 2 |
PHP | PHP | remove usage of prefix increment operator | 1cca695360a522deb93bbfd1eef3820c43ff540a | <ide><path>src/Core/PluginCollection.php
<ide> public function get($name)
<ide> */
<ide> public function next()
<ide> {
<del> ++$this->position;
<add> $this->position++;
<ide> }
<ide>
<ide> /**
<ide><path>src/Filesystem/Folder.php
<ide> public function dirsize()
<ide> $direct... | 4 |
Text | Text | fix typos in working_groups.md | a0c70808b306bfd1ec9dbcbe8b633c531b7b224c | <ide><path>WORKING_GROUPS.md
<ide> content.
<ide> ### [HTTP](https://github.com/nodejs/http)
<ide>
<ide> The HTTP working group is chartered for the support and improvement of the
<del>HTTP implementation in Node. It's responsibilities are:
<add>HTTP implementation in Node. Its responsibilities are:
<ide>
<ide> * Add... | 1 |
Ruby | Ruby | prefer regexp#match? over regexp#=== | ee669ab36fe93b8784416c408e84dee5c49d7427 | <ide><path>activesupport/lib/active_support/inflector/inflections.rb
<ide> require "concurrent/map"
<ide> require "active_support/core_ext/array/prepend_and_append"
<add>require "active_support/core_ext/regexp"
<ide> require "active_support/i18n"
<ide>
<ide> module ActiveSupport
<ide> def add(words)
<ide> end
... | 1 |
Ruby | Ruby | use `env` utility instead of `with_env` | 37f3a603cecb24799d3b1087b342c270b78dcc12 | <ide><path>Library/Homebrew/cask/lib/hbc/system_command.rb
<ide> def initialize(executable, args: [], sudo: false, input: [], print_stdout: false
<ide> @must_succeed = must_succeed
<ide> options.extend(HashValidator).assert_valid_keys(:chdir)
<ide> @options = options
<del> @env = { "PATH" => ENV[... | 4 |
Python | Python | skip hiddenfield from schema fields | d0ed482d7094e94b8cbfdc6c0f8335e02d79b765 | <ide><path>rest_framework/schemas.py
<ide> def get_serializer_fields(self, path, method, callback, view):
<ide>
<ide> fields = []
<ide> for field in serializer.fields.values():
<del> if field.read_only:
<add> if field.read_only or isinstance(field, serializers.HiddenField):
<ide> ... | 2 |
Text | Text | fix code of getting-started-ja-jp | 005b65c17bbc06215a2cf94a485382a2dc44cf87 | <ide><path>docs/docs/getting-started.ja-JP.md
<ide> React でのハッキングを始めるにあたり、一番簡単なものと
<ide> </div>
<ide>
<ide> スターターキットのルートディレクトリに `helloworld.html` を作り、次のように書いてみましょう。
<add>
<ide> ```html
<ide> <!DOCTYPE html>
<ide> <html> | 1 |
Text | Text | add v3.21.0 to changelog | 20bc7a6a09fda8ff415fccca01dd61c8fd28b2f1 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.21.0-beta.6 (August 17, 2020)
<del>
<del>- [#19087](https://github.com/emberjs/ember.js/pull/19087) [BUGFIX] Generated initializer tests no longer causes a deprecation warning
<del>- [#19077](https://github.com/emberjs/ember.js/pull/19077) Simplify `get... | 1 |
PHP | PHP | fix phpdoc comment | 12272dd2024795800c69b1643a4d3f0be056e28e | <ide><path>src/Illuminate/Database/Connection.php
<ide> protected function getElapsedTime($start)
<ide> * @param array $bindings
<ide> * @param \Closure $callback
<ide> * @return mixed
<add> * @throws \Exception
<ide> */
<ide> protected function handleQueryException($e, $query, $bindings... | 5 |
Python | Python | skip failing test on 2.5 | 76c2d75b64277acdacb345442fd8421645c4d187 | <ide><path>celery/tests/worker/test_worker.py
<ide> from __future__ import with_statement
<ide>
<ide> import socket
<add>import sys
<ide>
<ide> from collections import deque
<ide> from datetime import datetime, timedelta
<ide> def test_apply_eta_task(self):
<ide> self.assertIs(self.ready_queue.get_nowait(), t... | 1 |
PHP | PHP | add missing cookies property | 52fd65dea65f8ccc43d5a22a781fe81d7f4b7d35 | <ide><path>lib/Cake/Network/Request.php
<ide> class Request implements \ArrayAccess {
<ide> 'plugin' => null,
<ide> 'controller' => null,
<ide> 'action' => null,
<del> 'pass' => array(),
<add> 'pass' => [],
<ide> );
<ide>
<ide> /**
<ide> class Request implements \ArrayAccess {
<ide> *
<ide> * @var array
<id... | 1 |
Python | Python | ignore past_key_values during gpt-neo inference | 68b0baeedcf29fefe42b4bbfec04f309b03e63a6 | <ide><path>src/transformers/models/gpt_neo/configuration_gpt_neo.py
<ide> class GPTNeoConfig(PretrainedConfig):
<ide> >>> configuration = model.config
<ide> """
<ide> model_type = "gpt_neo"
<add> keys_to_ignore_at_inference = ["past_key_values"]
<ide> attribute_map = {"num_attention_heads": "... | 1 |
Mixed | Ruby | delegate some additional methods in querying.rb | 78ea4c598547c46cdfcf71aa484782ac903a3040 | <ide><path>activerecord/CHANGELOG.md
<add>* Delegate `empty?`, `none?` and `one?`. Now they can be invoked as model class methods.
<add>
<add> Example:
<add>
<add> # When no record is found on the table
<add> Topic.empty? # => true
<add> Topic.none? # => true
<add>
<add> # When only on... | 3 |
Go | Go | add sandbox id to `service ls` output | 50ec2d3a50fe84fff8d9132fb72c2f4b0628d065 | <ide><path>libnetwork/client/service.go
<ide> func (cli *NetworkCli) CmdServiceLs(chain string, args ...string) error {
<ide> wr := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
<ide> // unless quiet (-q) is specified, print field titles
<ide> if !*quiet {
<del> fmt.Fprintln(wr, "SERVICE ID\tNAME\tNETWORK\tCONTAIN... | 1 |
Mixed | Javascript | change the defaults maxbuffer size | 652877e3a9eee3f863314382f64f8ac1e5b27186 | <ide><path>doc/api/child_process.md
<ide> changes:
<ide> * `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
<ide> stderr. If exceeded, the child process is terminated and any output is
<ide> truncated. See caveat at [`maxBuffer` and Unicode][].
<del> **Default:** `200 * 1024`.
<add... | 8 |
Mixed | Ruby | fix assignment for frozen value in hwia | 584931d749bfdd8553740bdcc6e4fef2c18ec523 | <ide><path>activesupport/CHANGELOG.md
<add>* Duplicate frozen array when assigning it to a HashWithIndifferentAccess so
<add> that it doesn't raise a `RuntimeError` when calling `map!` on it in `convert_value`.
<add>
<add> Fixes #18550.
<add>
<add> *Aditya Kapoor*
<add>
<ide> * Add missing time zone defini... | 3 |
Ruby | Ruby | freeze rails when required | 9b82fa159a4d1f4f1e4b2932f43d76d9fc74da21 | <ide><path>railties/lib/generator/actions.rb
<ide> def rake(command, options={})
<ide> # capify!
<ide> #
<ide> def capify!
<del> log :capify
<add> log :capify, ""
<ide> in_root { run('capify .', false) }
<ide> end
<ide>
<ide> def capify!
<ide> # freeze!
<ide> ... | 2 |
Javascript | Javascript | remove additional parameters of easings" | d6e99d9b5edd10170af913ae5fb7c71e2e802475 | <ide><path>src/effects/Tween.js
<ide> Tween.prototype = {
<ide> Tween.propHooks._default.get( this );
<ide> },
<ide> run: function( percent ) {
<del> var hooks = Tween.propHooks[ this.prop ];
<add> var eased,
<add> hooks = Tween.propHooks[ this.prop ];
<ide>
<del> this.pos = this.options.duration ?
<del> j... | 2 |
Javascript | Javascript | fix typo in alert.js | beca25083a3a57a9e5d68577cbcb9e63521b1284 | <ide><path>Libraries/Alert/Alert.js
<ide> class Alert {
<ide> ): void {
<ide> if (Platform.OS === 'ios') {
<ide> if (typeof type !== 'undefined') {
<del> console.warn('Alert.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.');
<add> console.w... | 1 |
Ruby | Ruby | fix variable name | d9108abcad66412f9e8604479cdcc7795a3262b1 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> class << self
<ide> def url_options; {}; end
<ide> end
<ide>
<del> route_methods = routes.named_routes.url_helpers_module
<add> url_helpers = routes.named_routes.url_helpers_module
<ide>
<ide> # Make... | 1 |
PHP | PHP | fix typos in limiter builders | dd0f61ca160c1e349517145d0887786f8a6eba3d | <ide><path>src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php
<ide> public function block($timeout)
<ide> }
<ide>
<ide> /**
<del> * Execute the given callback if a lock is obtained, otherise call the failure callback.
<add> * Execute the given callback if a lock is obtained, otherwise call the... | 2 |
Java | Java | delay operator with reactive pull backpressure | 0a229e42bd8ee5aee14f56869e121fe30cdd1d3f | <ide><path>src/main/java/rx/Observable.java
<ide> public final Observable<T> defaultIfEmpty(T defaultValue) {
<ide> public final <U, V> Observable<T> delay(
<ide> Func0<? extends Observable<U>> subscriptionDelay,
<ide> Func1<? super T, ? extends Observable<V>> itemDelay) {
<del> retur... | 7 |
Javascript | Javascript | fix the way of removeing a mesh | 011770a86960e456bd64891f0e55149585181997 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> function removeInstancesWebglObjects( objlist, object ) {
<ide>
<del> delete objlist[object];
<add> delete objlist[object.id];
<ide>
<ide> };
<ide> | 1 |
Python | Python | add celeryd_force_hijack_root_logger option | 6b8377d5b53407f02bab1d164b62d7d6aad704aa | <ide><path>celery/app/defaults.py
<ide> def to_python(self, value):
<ide> "CONCURRENCY": Option(0, type="int"),
<ide> "ETA_SCHEDULER": Option("celery.utils.timer2.Timer"),
<ide> "ETA_SCHEDULER_PRECISION": Option(1.0, type="float"),
<add> "FORCE_HIJACK_ROOT_LOGGER": Option(False, type="boo... | 2 |
Ruby | Ruby | reset the primary key for other tests | 2d211c459d8274f13f7a0f84d48c3d61bff49aee | <ide><path>activerecord/test/cases/finder_test.rb
<ide> def test_find_one_message_with_custom_primary_key
<ide> rescue ActiveRecord::RecordNotFound => e
<ide> assert_equal 'Couldn\'t find Toy with name=Hello World!', e.message
<ide> end
<add> ensure
<add> Toy.reset_primary_key
<ide> end
<ide>
<ide>... | 1 |
Ruby | Ruby | remove dependency on the filesystem | cc88ffed7a2e17ff53eb8796bc1fa2536ebca00d | <ide><path>activerecord/test/cases/migration/logger_test.rb
<ide> module ActiveRecord
<ide> class Migration
<ide> class LoggerTest < ActiveRecord::TestCase
<add> Migration = Struct.new(:version) do
<add> def migrate direction
<add> # do nothing
<add> end
<add> end
<add>
<ide> ... | 1 |
Ruby | Ruby | simulate target tag | bca9eb05d1c0b55176cc3659cadfe894467352fa | <ide><path>Library/Homebrew/dev-cmd/unbottled.rb
<ide> def unbottled
<ide> Utils::Bottles.tag
<ide> end
<ide>
<add> Homebrew::SimulateSystem.os = @bottle_tag.system
<add> Homebrew::SimulateSystem.arch = if Hardware::CPU::INTEL_ARCHS.include?(@bottle_tag.arch)
<add> :intel
<add> elsif Hardware::... | 2 |
Javascript | Javascript | use makeas in calendar too | 93bcae3ebd2e84ef8a6bc83c5eab6edc985a9a4d | <ide><path>moment.js
<ide> calendar : function () {
<ide> // We want to compare the start of today, vs this.
<ide> // Getting start-of-today depends on whether we're zone'd or not.
<del> var sod = (this._isUTC ? moment().zone(this.zone()) : moment()).startOf('day'),
<add> ... | 1 |
Python | Python | use strerror attr as error message | 6ee86a449049c5542a95aca33ef4e2514f17a8ef | <ide><path>libcloud/compute/drivers/vsphere.py
<ide> def connect(self):
<ide> except Exception:
<ide> e = sys.exc_info()[1]
<ide> message = e.message
<add> if hasattr(e, 'strerror'):
<add> message = e.strerror
<ide> fault = getattr(e, 'fault', None)
... | 1 |
Text | Text | buffer documentation improvements | f1dc5cd614b4eaa7a7f1466a317a06f543a58a71 | <ide><path>doc/api/buffer.md
<ide>
<ide> <!-- source_link=lib/buffer.js -->
<ide>
<del>In Node.js, `Buffer` objects are used to represent binary data in the form
<del>of a sequence of bytes. Many Node.js APIs, for example streams and file system
<del>operations, support `Buffer`s, as interactions with the operating s... | 1 |
Javascript | Javascript | add missing file | 9f8cdd28a9d1452894db8355b4f8c0504e0fd593 | <ide><path>examples/scope-hoisting/webpack.config.js
<add>var webpack = require("../../");
<add>
<add>module.exports = {
<add> plugins: [
<add> new webpack.optimize.ModuleConcatenationPlugin()
<add> ]
<add>}; | 1 |
Text | Text | fix punctuation issue in async_hooks.md | 9a70b2725481ef17dc8a07d6e9d3dc9f72ad0907 | <ide><path>doc/api/async_hooks.md
<ide> The `TCPSERVERWRAP` is the server which receives the connections.
<ide> The `TCPWRAP` is the new connection from the client. When a new
<ide> connection is made, the `TCPWrap` instance is immediately constructed. This
<ide> happens outside of any JavaScript stack. (An `executionA... | 1 |
Java | Java | define behavior of null callable or deferredresult | 11cf978394bda237203f223c933d726c4391a84e | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AsyncTaskMethodReturnValueHandler.java
<ide> public void handleReturnValue(Object returnValue,
<ide> NativeWebRequest webRequest) throws Exception {
<ide>
<ide> if (returnValue == null) {
<add> mavContainer.setRequestHa... | 3 |
Javascript | Javascript | move charlengthleft() and charlengthat() | df1879ac20e0d16286bf3039a49e5fbd31286d1f | <ide><path>lib/internal/readline/utils.js
<ide> CSI.kClearToLineEnd = CSI`0K`;
<ide> CSI.kClearLine = CSI`2K`;
<ide> CSI.kClearScreenDown = CSI`0J`;
<ide>
<add>// TODO(BridgeAR): Treat combined characters as single character, i.e,
<add>// 'a\u0301' and '\u0301a' (both have the same visual output).
<add>// Check Canoni... | 2 |
PHP | PHP | apply fixes from styleci | 07a8cddf4e898c0d48ec14c37872047a418cc3e2 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function pushMiddlewareToGroup($group, $middleware)
<ide> $this->middlewareGroups[$group] = [];
<ide> }
<ide>
<del> if ( ! in_array($middleware, $this->middlewareGroups[$group])) {
<add> if (! in_array($middleware, $this->middl... | 1 |
Javascript | Javascript | remove instantiating entry when done | 186a5912288acfff0ee59dae29af83c37c987921 | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad) {
<ide> path.unshift(serviceName);
<ide> cache[serviceName] = INSTANTIATING;
<ide> return cache[serviceName] = factory(serviceName);
<add> } catch (err) {
<add> if (cache[serviceName] === INSTANTIA... | 1 |
Text | Text | update router.md to improve a11y | 4de984ca232d63a59e320428719e13a7161aaf37 | <ide><path>docs/api-reference/next/router.md
<ide> import { useRouter } from 'next/router'
<ide> export default function Page() {
<ide> const router = useRouter()
<ide>
<del> return <span onClick={() => router.push('/post/abc')}>Click me</span>
<add> return <button onClick={() => router.push('/post/abc')}>Click me... | 1 |
Javascript | Javascript | add general purpose $cachefactory service | 497839f583ca3dd75583fb996bb764cbd6d7c4ac | <ide><path>angularFiles.js
<ide> angularFiles = {
<ide> 'src/apis.js',
<ide> 'src/service/autoScroll.js',
<ide> 'src/service/browser.js',
<add> 'src/service/cacheFactory.js',
<ide> 'src/service/compiler.js',
<ide> 'src/service/cookieStore.js',
<ide> 'src/service/cookies.js',
<ide><path>src/An... | 4 |
Python | Python | update example dag for ai platform operators | b2305660f0eb55ebd31fdc7fe4e8aeed8c1f8c00 | <ide><path>airflow/providers/google/cloud/example_dags/example_mlengine.py
<ide> from airflow import models
<ide> from airflow.operators.bash import BashOperator
<ide> from airflow.providers.google.cloud.operators.mlengine import (
<del> MLEngineCreateVersionOperator, MLEngineDeleteModelOperator, MLEngineDeleteVersi... | 1 |
Text | Text | add the "line-31" to article | 53e966c37c2d562b485c755a34696e15a7b7aaa1 | <ide><path>guide/english/blockchain/smart-contracts/index.md
<ide> There are many other blockchain projects offering (or promising) smart contract
<ide> Smart contracts in Ethereum are written using Solidity. Solidity is a contract-oriented, high-level language for implementing Smart Contracts, and targets the Ethereu... | 1 |
Text | Text | fix the no convenient translation of return | f1c13b8b301ca8bd24aefb837406bfab89f9038a | <ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/introducing-else-statements.spanish.md
<ide> localeTitle: Introduciendo otras declaraciones
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Cuando una condición para una sentencia <code>if</code>... | 1 |
Go | Go | use spf13/cobra for docker unpause | 8ea7733a6390a67d6981888b857ab78b11c4c076 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> "stats": cli.CmdStats,
<ide> "tag": cli.CmdTag,
<ide> "top": cli.CmdTop,
<del> "unpause": cli.CmdUnpause,
<ide> "update": cli.CmdUpd... | 5 |
Python | Python | add sqlite hook | 4069c55013975c6b3903ce67dedd80090db9543b | <ide><path>airflow/hooks/__init__.py
<ide> 'postgres_hook': ['PostgresHook'],
<ide> 'presto_hook': ['PrestoHook'],
<ide> 'samba_hook': ['SambaHook'],
<add> 'sqlite_hook': ['SqliteHook'],
<ide> 'S3_hook': ['S3Hook'],
<ide> }
<ide>
<ide><path>airflow/hooks/sqlite_hook.py
<add>import logging
<add>
<add... | 2 |
Java | Java | recognize wildcards in media types with a suffix | 7718936158434e0f658233f74c33ab72bea5d440 | <ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java
<ide> public String getSubtype() {
<ide> }
<ide>
<ide> /**
<del> * Indicates whether the {@linkplain #getSubtype() subtype} is the wildcard character <code>*</code> or not.
<add> * Indicates whether the {@linkplain #getSubtype() subtyp... | 3 |
Java | Java | remove quality parameter from selected media type | 75fd391fc716456bbd2448f60e691b8f588c70de | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/HandlerResultHandlerSupport.java
<ide> else if (mediaType.isPresentIn(ALL_APPLICATION_MEDIA_TYPES)) {
<ide> }
<ide>
<ide> if (selected != null) {
<add> selected = selected.removeQualityValue();
<ide> if (logger.isDebugEnabled()) {... | 2 |
PHP | PHP | remove unused vars and assigments | 936c6c7f711e7099ef2ed5f414622987c15b2765 | <ide><path>src/Cache/CacheRegistry.php
<ide> protected function _throwMissingClassError(string $class, ?string $plugin): void
<ide> */
<ide> protected function _create($class, string $alias, array $config): CacheEngine
<ide> {
<del> $instance = null;
<ide> if (is_object($class)) {
<ide> ... | 15 |
Javascript | Javascript | use promises to track completion of decoding | 683f64d54f7724d75ad919ed00db6306c557d90e | <ide><path>src/evaluator.js
<ide> var PartialEvaluator = (function partialEvaluator() {
<ide> }
<ide>
<ide> fn = 'paintImageXObject';
<del> var imageObj = new PDFImage(xref, resources, image, inline, handler);
<ide>
<del> imageObj.ready((function() {
<del> return function(data) ... | 3 |
Javascript | Javascript | use isfinite in place of redundant isnumeric | 3689963909880ed832ac17eabf7b9260927a68d8 | <ide><path>src/css.js
<ide> jQuery.extend( {
<ide> // Make numeric if forced or a qualifier was provided and val looks numeric
<ide> if ( extra === "" || extra ) {
<ide> num = parseFloat( val );
<del> return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
<add> return extra === true || isFinite( ... | 1 |
Javascript | Javascript | remove console.logs from previous commit again | 6e9306afd2bedec0cb9f4a12c23ff4cb072653b8 | <ide><path>fonts.js
<ide> var FontLoader = {
<ide> waitingStr: [],
<ide>
<ide> bind: function(fonts, callback) {
<del> console.log("requesting fonts", fonts[0].properties.loadedName, fonts[0].name);
<del>
<ide> var rules = [], names = [];
<ide>
<ide> for (var i = 0; i < fonts.length; i++) {
<ide><... | 3 |
Python | Python | add doc to osxbuild script | 1006c2275077597ef9c510ccf8e0bee44ed93d71 | <ide><path>tools/osxbuild/build.py
<ide>
<ide> This is a simple script, most of the heavy lifting is done in bdist_mpkg.
<ide>
<add>To run this script: 'python build.py'
<add>
<ide> Requires a svn version of numpy is installed, svn is used to revert
<ide> file changes made to the docs for the end-user install. Inst... | 1 |
Ruby | Ruby | use a gentler disconnect | 0ae187961c75c44ea418f44ce0c09f78cdf520ff | <ide><path>actioncable/test/client_test.rb
<ide> def test_disappearing_client
<ide> c.send_message command: 'subscribe', identifier: JSON.dump(channel: 'EchoChannel')
<ide> assert_equal({"identifier"=>"{\"channel\":\"EchoChannel\"}", "type"=>"confirm_subscription"}, c.read_message)
<ide> c.send_messag... | 1 |
Mixed | Ruby | log the sql that is actually sent to the database | 6fb5f6f3d69662cc55a086f84f9caaca3eec1515 | <ide><path>activerecord/CHANGELOG.md
<add>* Log the sql that is actually sent to the database.
<add>
<add> If I have a query that produces sql
<add> `WHERE "users"."name" = 'a b'` then in the log all the
<add> whitespace is being squeezed. So the sql that is printed in the
<add> log is `WHERE "use... | 3 |
Javascript | Javascript | put package name in qunit header | 5b6b584068404b8cd230d88bf390d551ae717990 | <ide><path>packages/qunit/lib/qunit-runner.js
<ide> if (!packageName) {
<ide>
<ide> QUnit.config.autostart = false;
<ide> QUnit.onload();
<add> $('h1 > a').text(packageName);
<ide>
<ide> QUnit.jsDump.setParser('object', function(obj) {
<ide> return obj.toString(); | 1 |
Javascript | Javascript | improve test coverage | ebd1f5ddb0da7e3626b56614e2b5723debadd839 | <ide><path>packages/react-events/src/dom/Press.js
<ide> type PressEvent = {|
<ide> shiftKey: boolean,
<ide> |};
<ide>
<add>const hasPointerEvents =
<add> typeof window !== 'undefined' && window.PointerEvent !== undefined;
<add>
<ide> const isMac =
<ide> typeof window !== 'undefined' && window.navigator != null
<i... | 6 |
Go | Go | honor context cancellation when pruning | 0dee69799eb467543dc2ae4cc3bb7b46bc7e21d4 | <ide><path>api/server/router/container/backend.go
<ide> type attachBackend interface {
<ide>
<ide> // systemBackend includes functions to implement to provide system wide containers functionality
<ide> type systemBackend interface {
<del> ContainersPrune(pruneFilters filters.Args) (*types.ContainersPruneReport, error)... | 13 |
Text | Text | add link to airflow website in readme | 51be6ec1c0f430d964c3f32895a9f909d3ff8300 | <ide><path>README.md
<ide> [](https://twitter.com/ApacheAirflow)
<ide> [](https://apache-airflow-slack.herokuapp.com/)
<ide> ... | 1 |
Text | Text | fix links to code of conduct [ci skip] | abc7b88e755b712727e37ba24187bf85404a9b74 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> After reading this guide, you will know:
<ide> Ruby on Rails is not "someone else's framework." Over the years, hundreds of people have contributed to Ruby on Rails ranging from a single character to massive architectural changes or significant documentati... | 1 |
Go | Go | remove bypid from execcommands | 6f3e86e906a8955d3dc3ddc2a6be51b17e7a097f | <ide><path>daemon/exec.go
<ide> func (d *Daemon) registerExecCommand(container *container.Container, config *exe
<ide> d.execCommands.Add(config.ID, config)
<ide> }
<ide>
<del>func (d *Daemon) registerExecPidUnlocked(container *container.Container, config *exec.Config) {
<del> logrus.Debugf("registering pid %v for ex... | 3 |
Ruby | Ruby | cache the klass member of the reflection | 743b67508e2027e1d086142ccbec47a19fc943f6 | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb
<ide> def find_parent_in(other_join_dependency)
<ide>
<ide> def join_to(manager)
<ide> tables = @tables.dup
<add>
<ide> foreign_table = parent_table
<ide> foreign_klass = parent.base_... | 1 |
PHP | PHP | add intersect by keys method to collections | 4fc0ea5389424876bdbd858bbb3df97e9adc0b28 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function intersect($items)
<ide> return new static(array_intersect($this->items, $this->getArrayableItems($items)));
<ide> }
<ide>
<add> /**
<add> * Intersect the collection with the given items by key
<add> *
<add> * @param mix... | 2 |
Java | Java | add marble diagram for single.repeatuntil operator | 97ebd2c0ba3d1505631b844d2ff5000944be2ae6 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Flowable<T> repeatWhen(Function<? super Flowable<Object>, ? extends
<ide>
<ide> /**
<ide> * Re-subscribes to the current Single until the given BooleanSupplier returns true.
<add> * <p>
<add> * <img width="640" height="463" src="http... | 1 |
Javascript | Javascript | add test for deprecation warnings | 23deea0f02818823b6f3ac9bf94a5d051721c671 | <ide><path>src/isomorphic/__tests__/React-test.js
<add>/**
<add> * Copyright 2013-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
<add> * of pate... | 1 |
Python | Python | remove unused outdated file | e00680a33a511f4b99a16bf46a885fa1aa6e33c6 | <ide><path>spacy/lang/entity_rules.py
<del># coding: utf8
<del>from __future__ import unicode_literals
<del>
<del>from ..symbols import ORTH, ENT_TYPE, LOWER
<del>
<del>
<del>ENT_ID = "ent_id"
<del>ENTITY_RULES = []
<del>
<del>
<del>for name, tag, patterns in [
<del> ("Reddit", "PRODUCT", [[{LOWER: "reddit"}]]),
<de... | 1 |
PHP | PHP | apply fixes from styleci | cf9726d1d8f01884962d5d065d6c3b38cb13b29c | <ide><path>src/Illuminate/Queue/DatabaseQueue.php
<ide> protected function getLockForPopping()
<ide> {
<ide> $databaseEngine = $this->database->getPdo()->getAttribute(PDO::ATTR_DRIVER_NAME);
<ide>
<del> $databaseVersion = $this->database->getConfig('version') ??
<add> $databaseVersion = $thi... | 1 |
Go | Go | implement docker attach with standalone client lib | 5e80ac9c8438252ebb16f6c4aef450e2861a2e5d | <ide><path>api/client/attach.go
<ide> package client
<ide>
<ide> import (
<del> "encoding/json"
<ide> "fmt"
<ide> "io"
<del> "net/url"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/api/types"
<ide> func (cli *DockerCli) CmdAttach(args ...string) error {
<ide>
<ide> cmd.ParseFlags(args... | 8 |
Text | Text | add missing api docs for hostconfig.pidmode | 2c9b5addc5022dba33d5d0443b49b2e4c0041ef3 | <ide><path>docs/reference/api/docker_remote_api.md
<ide> This section lists each version from latest to oldest. Each listing includes a
<ide> no longer expects a "Container" field to be present. This property was not used
<ide> and is no longer sent by the docker client.
<ide> * `POST /containers/create/` now vali... | 9 |
Java | Java | add flush method to serverhttpresponse | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf | <ide><path>spring-web/src/main/java/org/springframework/http/server/AsyncServletServerHttpRequest.java
<ide> public void completeAsync() {
<ide> // Implementation of AsyncListener methods
<ide> // ---------------------------------------------------------------------
<ide>
<add> @Override
<ide> public void onStartAs... | 25 |
Go | Go | replace cancelled channel with net/context | f2401a0f6960734093be307a27bba85a3c2ecfcd | <ide><path>api/server/router/build/backend.go
<ide> type Backend interface {
<ide> // by the caller.
<ide> //
<ide> // TODO: make this return a reference instead of string
<del> Build(clientCtx context.Context, config *types.ImageBuildOptions, context builder.Context, stdout io.Writer, stderr io.Writer, out io.Write... | 4 |
Ruby | Ruby | fix style violations | ee93787580752ff9246f052de801d90554754d41 | <ide><path>actionpack/test/controller/parameters/parameters_permit_test.rb
<ide> def walk_permitted(params)
<ide> },
<ide> tabstops: [4, 8, 12, 16],
<ide> suspicious: [true, Object.new, false, /yo!/],
<del> dubious: [{a: :a, b: /wtf!/}, {c: :c}],
<add> dubious: [{ a: :a, b:... | 2 |
Javascript | Javascript | add spec for linking | 99899d008f4a0540e3f5671b1f9c6c522c6105e3 | <ide><path>Libraries/Linking/Linking.js
<ide>
<ide> const InteractionManager = require('../Interaction/InteractionManager');
<ide> const NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');
<del>const NativeModules = require('../BatchedBridge/NativeModules');
<ide> const Platform = require('../Utilities... | 2 |
PHP | PHP | delete | 736716781cc1856ebb12701fc95edebaa894d716 | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function prepend($path, $data)
<ide> {
<ide> if ($this->exists($path))
<ide> {
<del> return $this->put($path, $data.$this->get($path));
<add> return $this->put($path, $data.$this->get($path));
<ide> }
<ide> else
<ide> {
<ide> public func... | 1 |
Mixed | Ruby | add option to skip joins for associations | de6b4efa3e86727f3bd2f2e7982c0902efd19e1a | <ide><path>activerecord/CHANGELOG.md
<add>* Add option to disable joins for associations.
<add>
<add> In a multiple database application, associations can't join across
<add> databases. When set, this option instructs Rails to generate 2 or
<add> more queries rather than generating joins for associations.
<a... | 17 |
Text | Text | remove trailing slashes | acc5c18ba375aa982e5b834a65d95db2f4bee36b | <ide><path>CONTRIBUTING.md
<ide> in the proper package's repository.
<ide> * Follow the [CoffeeScript](#coffeescript-styleguide),
<ide> [JavaScript](https://github.com/styleguide/javascript),
<ide> and [CSS](https://github.com/styleguide/css) styleguides
<del> * Include thoughtfully worded [Jasmine](http://p... | 1 |
Text | Text | correct url to blog post | 2a845a61b747b71adc4df84f9261391d12547733 | <ide><path>examples/with-reasonml/README.md
<ide> Run BuckleScript build system `bsb -w` and `next -w` separately. For the sake
<ide> of simple convention, `npm run dev` run both `bsb` and `next` concurrently.
<ide> However, this doesn't offer the full [colorful and very, very, veeeery nice
<ide> error
<del>output](htt... | 1 |
PHP | PHP | add docs and missing property definition | edcef5b6a5ecc8bdef2a2c2f988823ae4420f092 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListener {
<ide> /**
<ide> * The name of this controller. Controller names are plural, named after the model they manipulate.
<ide> *
<add> * Set automatically using conventions in Controller::__construct().
<add> *
<ide> * @var string
<... | 2 |
Javascript | Javascript | use callback arguments in getconnections test | 7113d999dcb7e93ac1504f3ae622df61a9495a1c | <ide><path>test/parallel/test-child-process-fork-getconnections.js
<ide> if (process.argv[2] === 'child') {
<ide> const child = fork(process.argv[1], ['child']);
<ide>
<ide> child.on('exit', function(code, signal) {
<del> if (!subprocessKilled)
<del> throw new Error('subprocess died unexpectedly!');
<add> ... | 1 |
Ruby | Ruby | add test for basename in `#extract_nestedly` | c6fa3fe8b416a41c698188269c3f587c3ad107d1 | <ide><path>Library/Homebrew/test/unpack_strategy_spec.rb
<ide> expect(Pathname.glob(unpack_dir/"**/*")).to include unpack_dir/directories
<ide> end
<ide> end
<add>
<add> context "when extracting a nested archive" do
<add> let(:basename) { "file.xyz" }
<add> let(:path) {
<add> (mktm... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.