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 |
|---|---|---|---|---|---|
PHP | PHP | extract credentials retrieval to method | 549bd4aa94c2dddbeb74630ffb5b8ddd4f4d7fbd | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php
<ide> public function postLogin(Request $request)
<ide> 'email' => 'required|email', 'password' => 'required',
<ide> ]);
<ide>
<del> $credentials = $request->only('email', 'password');
<add> $credentials = $this->getCredentials($reques... | 1 |
Text | Text | add section on apm unlink to debugging doc | f9e28af59b860ab01939db68778a2a51bd5f87c8 | <ide><path>docs/debugging.md
<ide> Atom provides several tools to help you understand unexpected behavior and debug problems. This guide describes some of those tools and a few approaches to help you debug and provide more helpful information when [submitting issues]:
<ide>
<ide> * [Update to the latest version](#upda... | 1 |
Java | Java | avoid collection lookups in stompcommand | 899ebd8ee2e7acdc6bc0296d0c0db332cc4b43a5 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompCommand.java
<ide>
<ide> package org.springframework.messaging.simp.stomp;
<ide>
<del>import java.util.Arrays;
<del>import java.util.Collection;
<del>import java.util.HashMap;
<del>import java.util.Map;
<del>
<ide> import org.spri... | 2 |
PHP | PHP | add every2/3/4minutes to scheduler | 5c841b38b6f93345d976c1c756be1d9c2790e955 | <ide><path>src/Illuminate/Console/Scheduling/ManagesFrequencies.php
<ide> public function everyMinute()
<ide> return $this->spliceIntoPosition(1, '*');
<ide> }
<ide>
<add> /**
<add> * Schedule the event to run every two minutes.
<add> *
<add> * @return $this
<add> */
<add> public func... | 2 |
Text | Text | remove extra whitespace | 80bdf73929b4531482631ff3ac766af09873a9ef | <ide><path>errors/invalid-getstaticpaths-value.md
<ide> export async function unstable_getStaticProps() {
<ide> }
<ide> }
<ide> ```
<del> | 1 |
Python | Python | add max fenwick tree | f46ce47274e89ab52581b56fec0aefa0e844dfa7 | <ide><path>data_structures/binary_tree/maximum_fenwick_tree.py
<add>class MaxFenwickTree:
<add> """
<add> Maximum Fenwick Tree
<add>
<add> More info: https://cp-algorithms.com/data_structures/fenwick.html
<add> ---------
<add> >>> ft = MaxFenwickTree(5)
<add> >>> ft.query(0, 5)
<add> 0
<add> >>>... | 1 |
PHP | PHP | clean _original on entity clean() | b3b6859b926fc70a755d3a6d6a3b18be1442215c | <ide><path>src/Datasource/EntityTrait.php
<ide> public function clean()
<ide> $this->_dirty = [];
<ide> $this->_errors = [];
<ide> $this->_invalid = [];
<add> $this->_original = [];
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | restructure ecosystem page | 3e74e002a39217dd40e9b4362eca903779b227f0 | <ide><path>docs/README.md
<ide> * [Core Concepts](/docs/introduction/CoreConcepts.md)
<ide> * [Three Principles](/docs/introduction/ThreePrinciples.md)
<ide> * [Prior Art](/docs/introduction/PriorArt.md)
<add> * [Learning Resources](/docs/introduction/LearningResources.md)
<ide> * [Ecosystem](/docs/introductio... | 3 |
Java | Java | update copyright year of changed file | 5226a67161c99fc47098aa03da69846242819a9d | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide>... | 1 |
Text | Text | add video to explain bootstrap | ee330a7ca7c33fdf831a0db24c8a3824a09b62b1 | <ide><path>guide/english/bootstrap/index.md
<ide> In addition, you can find both <a href='https://bootswatch.com/' target='_blank'
<ide> themes that build on the Bootstrap framework to provide a more customized and stylish look.
<ide>
<ide> #### Bootstrap Resources:
<add>
<ide> - [Bootstrap's official blog](http://bl... | 1 |
Python | Python | fix guardian import | 30bf9df5d0dc983d180000e413ec2254d7946ff8 | <ide><path>rest_framework/compat.py
<ide> def value_from_object(field, obj):
<ide> try:
<ide> if 'guardian' in settings.INSTALLED_APPS:
<ide> import guardian
<del> import guardian.shortcuts # Fixes #1624
<ide> except ImportError:
<ide> pass
<ide>
<ide><path>rest_framework/filters.py
<ide> def _... | 2 |
Javascript | Javascript | ignore properties in $error prototype chain | 76df11657410a8246466ade36361fdf2b81d8570 | <ide><path>src/Angular.js
<ide> function forEach(obj, iterator, context) {
<ide> obj.forEach(iterator, context, obj);
<ide> } else {
<ide> for (key in obj) {
<del> if (hasOwnProperty.call(obj, key)) {
<add> if (obj.hasOwnProperty(key)) {
<ide> iterator.call(context, obj[key], k... | 4 |
Ruby | Ruby | fix activestorage intermittent test | 29bc318e5f04f6d9cee6d6d120b2c52b4c4b8b47 | <ide><path>activestorage/test/models/attached/many_test.rb
<ide> def highlights
<ide> @user.reload
<ide>
<ide> racecar_blob = fixture_file_upload("racecar.jpg")
<add> attachment_id = town_blob.attachments.find_by!(record: @user).id
<ide> @user.update(
<ide> highlights: [racecar_blob],
<d... | 1 |
PHP | PHP | improve exception message | 34cc58b5603e8cd9279b67395c9aac454ad535c0 | <ide><path>src/Utility/Security.php
<ide> public static function constantEquals($original, $compare): bool
<ide> public static function getSalt(): string
<ide> {
<ide> if (static::$_salt === null) {
<del> throw new RuntimeException('Salt not set.');
<add> throw new RuntimeException... | 1 |
Java | Java | improve support for caching encoded resources | b472d192f43c5d827cfc49115c22c83acaebf2f0 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/resource/CachingResourceResolver.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 10 |
Python | Python | fix spancat for empty docs and zero suggestions | c9baf9d196cba07fe1b1c636bcab3c80c6b81b44 | <ide><path>spacy/ml/extract_spans.py
<ide> def forward(
<ide> X, spans = source_spans
<ide> assert spans.dataXd.ndim == 2
<ide> indices = _get_span_indices(ops, spans, X.lengths)
<del> Y = Ragged(X.dataXd[indices], spans.dataXd[:, 1] - spans.dataXd[:, 0]) # type: ignore[arg-type, index]
<add> if len(... | 3 |
Python | Python | use urls functions from django instead of compat | e5441d845e34f1e1bb2b7464d31aa3df7b02d0fe | <ide><path>tests/urls.py
<ide> """
<ide> Blank URLConf just to keep the test suite happy
<ide> """
<del>from rest_framework.compat import patterns
<add>from django.conf.urls import patterns
<ide>
<ide> urlpatterns = patterns('') | 1 |
Javascript | Javascript | reuse path variable | eedefb4183249eaf8c29d8ebb6dce78113bccc52 | <ide><path>packages/ember-routing/lib/location/hash_location.js
<ide> Ember.HashLocation = Ember.Object.extend({
<ide>
<ide> set(self, 'lastSetURL', null);
<ide>
<del> callback(location.hash.substr(1));
<add> callback(path);
<ide> });
<ide> });
<ide> }, | 1 |
PHP | PHP | fix 2 tests | 637d17ce60082009e0740c02fbf1f8964cf1edb8 | <ide><path>tests/Foundation/FoundationAuthorizesRequestsTraitTest.php
<ide> public function update()
<ide> return true;
<ide> }
<ide>
<del> public function test_policy_method_may_be_guessed_passing_model_instance()
<add> public function testPolicyMethodMayBeGuessedPassingModelInstance()
<ide> {
<... | 1 |
Text | Text | add release notes for 1.7.2 | c9a92fcad52477f93ddbee5091e76d8763cde0bd | <ide><path>CHANGELOG.md
<add><a name="1.7.2"></a>
<add># 1.7.2 extreme-compatiplication (2018-06-12)
<add>
<add>In the previous release, we removed a private, undocumented API that was no longer used by
<add>AngularJS. It turned out that several popular UI libraries (such as
<add>[AngularJS Material](https://material.a... | 1 |
Ruby | Ruby | raise when no compatible compiler | 4fdbb2d685d1c20e84d1d31bc50f638aa1a800e1 | <ide><path>Library/Homebrew/build.rb
<ide> def install f
<ide> end
<ide>
<ide> if f.fails_with? ENV.compiler
<del> ENV.send CompilerSelector.new(f, ENV.compiler).compiler
<add> begin
<add> ENV.send CompilerSelector.new(f, ENV.compiler).compiler
<add> rescue CompilerSelectionError => e
<add> rais... | 4 |
Ruby | Ruby | fix tests on 1.9.2 | 8aa86babad2eddb5244ba79b4e3b5702e7e77217 | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def initialize(*)
<ide> @_status = 200
<ide> @_request = nil
<ide> @_response = nil
<add> @_routes = nil
<ide> super
<ide> end
<ide>
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> class << self
<ide> ... | 2 |
Ruby | Ruby | add require and move escape to private method | 4247f02688e20af183f75b943b2444b66979198f | <ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb
<ide> require 'active_support/key_generator'
<ide> require 'active_support/message_verifier'
<ide> require 'active_support/json'
<add>require 'rack/utils'
<ide>
<ide> module ActionDispatch
<ide> class Request
<ide> def update_cookies_from_jar
<ide> ... | 1 |
Python | Python | add dtype to zeros and ones allocations | 64e1320ca006a62f1188377a617bd3347dcfce7a | <ide><path>keras/engine/training.py
<ide> def standardize_weights(y, sample_weight=None, class_weight=None,
<ide> return weights
<ide> else:
<ide> if sample_weight_mode is None:
<del> return np.ones((y.shape[0],))
<add> return np.ones((y.shape[0],), dtype=K.floatx())
<ide> ... | 1 |
Javascript | Javascript | replace flag expose_internals to expose-internals | 7534477786bfaa06be4210e35f07860cb6ac5b1c | <ide><path>test/parallel/test-child-process-bad-stdio.js
<ide> 'use strict';
<del>// Flags: --expose_internals
<add>// Flags: --expose-internals
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const cp = require('child_process');
<ide><path>test/parallel/test-child-process-exec-... | 24 |
Text | Text | add table of contents to contributing doc | 794e5e6098110d675d08058eacd35978b91887e9 | <ide><path>CONTRIBUTING.md
<ide> We'd love for you to contribute to our source code and to make AngularJS even better than it is
<ide> today! Here are the guidelines we'd like you to follow:
<ide>
<del>## Code of Conduct
<add> - [Code of Conduct](#coc)
<add> - [Question or Problem?](#question)
<add> - [Issues and Bugs... | 1 |
PHP | PHP | fix failing tests for cookie encryption | dee7331c630b2bd39f8a3d8f83aea56eb5ff859d | <ide><path>tests/TestCase/TestSuite/CookieEncryptedUsingControllerTest.php
<ide> public function setUp()
<ide>
<ide> Security::setSalt('abcdabcdabcdabcdabcdabcdabcdabcdabcd');
<ide> Router::connect('/:controller/:action/*', [], ['routeClass' => 'InflectedRoute']);
<del> DispatcherFactory::clear(... | 2 |
Ruby | Ruby | fix prerelease audit | 27ffa4e6e02d1108393e50b728712af74cf6b7ef | <ide><path>Library/Homebrew/utils/shared_audits.rb
<ide> def github_release(user, repo, tag, formula: nil, cask: nil)
<ide>
<ide> return "#{tag} is a GitHub pre-release." if release["prerelease"] && [version, "all"].exclude?(exception)
<ide>
<del> return "#{tag} is not a GitHub pre-release but '#{name}' is in ... | 1 |
PHP | PHP | add supporting test | 43b08f8cb378133d9a047fda703ac90e27a66cbc | <ide><path>tests/Validation/ValidationUniqueRuleTest.php
<ide> public function testItCorrectlyFormatsAStringVersionOfTheRule()
<ide> $rule->where('foo', '"bar"');
<ide> $this->assertSame('unique:table,NULL,NULL,id,foo,"""bar"""', (string) $rule);
<ide> }
<add>
<add> public function testItIgnoresS... | 1 |
Go | Go | remove dead code | c957d9c768a3c2e56b31db09399b49b8dc66c3c1 | <ide><path>integration-cli/docker_utils.go
<ide> type Daemon struct {
<ide> userlandProxy bool
<ide> }
<ide>
<del>func enableUserlandProxy() bool {
<del> if env := os.Getenv("DOCKER_USERLANDPROXY"); env != "" {
<del> if val, err := strconv.ParseBool(env); err != nil {
<del> return val
<del> }
<del> }
<del> retur... | 1 |
Javascript | Javascript | add a child domain explicitly | ee2291eb0d6baa9fb82ed0fef623a3895bc1fc0d | <ide><path>test/simple/test-domain-multi.js
<ide> a.on('error', function(er) {
<ide>
<ide> var http = require('http');
<ide> var server = http.createServer(function (req, res) {
<del> // child domain.
<del> // implicitly added to a, because we're in a when
<del> // it is created.
<add> // child domain of a.
<ide> ... | 1 |
Javascript | Javascript | remove unused styles | ffd7195543d883c7447de61ebbd8afb494576f63 | <ide><path>Libraries/Inspector/BoxInspector.js
<ide> const styles = StyleSheet.create({
<ide> textAlign: 'left',
<ide> top: -3,
<ide> },
<del> buffer: {
<del> fontSize: 10,
<del> color: 'yellow',
<del> flex: 1,
<del> textAlign: 'center',
<del> },
<ide> innerText: {
<ide> color: 'yellow',
<... | 18 |
Python | Python | fix doc typo | b8aec1277c3bfd6d8fdcdd637f06ac6958a03871 | <ide><path>rest_framework/response.py
<ide>
<ide> class Response(SimpleTemplateResponse):
<ide> """
<del> An HttpResponse that allows it's data to be rendered into
<add> An HttpResponse that allows its data to be rendered into
<ide> arbitrary media types.
<ide> """
<ide> | 1 |
Javascript | Javascript | remove dead code and fix code style issues | 52ee1ab5eb0f3197453b26c60a70239ac3fffea7 | <ide><path>src/Angular.js
<ide>
<ide> ////////////////////////////////////
<ide>
<del>if (typeof document.getAttribute == $undefined)
<add>if (typeof document.getAttribute == 'undefined')
<ide> document.getAttribute = function() {};
<ide>
<ide> /**
<ide> if ('i' !== 'I'.toLowerCase()) {
<ide> function fromCharCode... | 23 |
Python | Python | add tests for bengali | 696215a3fb8b981a11114e0d276bd57553c3e8dd | <ide><path>spacy/tests/bn/__init__.py
<add># coding: utf-8
<ide><path>spacy/tests/bn/test_tokenizer.py
<add># encoding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>TESTCASES = []
<add>
<add>PUNCTUATION_TESTS = [
<add> (u'আমি বাংলায় গান গাই!', [u'আমি', u'বাংলায়', u'গান', u'... | 4 |
Text | Text | add examples for whatwg url objects | 0932e90e983c238383087d4c8969a7ce1ef00f82 | <ide><path>doc/api/url.md
<ide> const myURL =
<ide> url.parse('https://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash');
<ide> ```
<ide>
<add>### Constructing a URL from component parts and getting the constructed string
<add>
<add>It is possible to construct a WHATWG URL from component parts using either ... | 1 |
Ruby | Ruby | cleanup some unneeded compexity | 9e03c6aab3bda076453a3ed1e9c6abd43a5e7599 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def length
<ide> end
<ide>
<ide> private
<del> def url_helper_name(name, only_path)
<del> if only_path
<del> :"#{name}_path"
<del> else
<del> :"#{name}_url"
<del> end... | 1 |
Python | Python | support env argument in ccompiler.spawn | 3842786bd5b7515c5f86fe4471ffa3fdb7f7c568 | <ide><path>numpy/distutils/ccompiler.py
<ide> class where more documentation can be found.
<ide>
<ide>
<ide> # Using customized CCompiler.spawn.
<del>def CCompiler_spawn(self, cmd, display=None):
<add>def CCompiler_spawn(self, cmd, display=None, env=None):
<ide> """
<ide> Execute a command in a sub-process.
<... | 1 |
Javascript | Javascript | allow auto-bootstraping from inline script | 0694af8fc4c856f5174545450091602e51f02a11 | <ide><path>src/Angular.js
<ide> function getNgAttribute(element, ngAttr) {
<ide> }
<ide>
<ide> function allowAutoBootstrap(document) {
<del> if (!document.currentScript) {
<add> var script = document.currentScript;
<add> var src = script && script.getAttribute('src');
<add>
<add> if (!src) {
<ide> return true;... | 2 |
Javascript | Javascript | simplify vector iterator | 3e13a15af3525e24487f90f5a775ad0667fc79e8 | <ide><path>dist/Immutable.dev.js
<ide> var $VNode = VNode;
<ide> return editable;
<ide> },
<ide> iterate: function(level, offset, max, fn, reverse) {
<add> var ii;
<add> var array = this.array;
<add> var maxII = array.length - 1;
<ide> if (level === 0) {
<del> if (reverse) {
<del> for (... | 3 |
PHP | PHP | fix function definition check | 63cd603fc34ea85de65dfdcdbec53bdcb4ace07d | <ide><path>src/Core/functions.php
<ide> function deprecationWarning($message, $stackFrame = 2)
<ide> }
<ide> }
<ide>
<del>if (!function_exists('getVarType')) {
<add>if (!function_exists('getTypeName')) {
<ide> /**
<ide> * Returns the objects class or var type of it's not an object
<ide> * | 1 |
Text | Text | change node alias from stable to lts | 4ea2ad881b144cf266bf899a09b50e313a8f6b82 | <ide><path>docs/devops.md
<ide> Verify installed packages
<ide> npm ls -g --depth=0
<ide> ```
<ide>
<del>Alias `default` Node.js versions to the current `stable`
<add>Alias the `default` Node.js version to the current LTS
<ide>
<ide> ```console
<del>nvm alias default stable
<add>nvm alias default lts/*
<ide> ```
<ide... | 1 |
Text | Text | update readme and add todo | 3a97fe27d8f5a9bbcf4992cc9efe33880e73f274 | <ide><path>pkg/libcontainer/README.md
<ide> ## libcontainer - reference implementation for containers
<ide>
<del>#### playground
<add>#### background
<ide>
<add>libcontainer specifies configuration options for what a container is. It provides a native Go implementation
<add>for using linux namespaces with no extern... | 2 |
Python | Python | add module extensions to load_library search list | 6c433aa3f089edda07fda4054fc13ddc8a294bad | <ide><path>numpy/ctypeslib.py
<ide> def load_library(libname, loader_path):
<ide> from numpy.distutils.misc_util import get_shared_lib_extension
<ide> so_ext = get_shared_lib_extension()
<ide> libname_ext = [libname + so_ext]
<del> if sys.version[:3] >= '3.2':
<del> ... | 1 |
Ruby | Ruby | require time before monkey-patching it | e3d775f00a9cbe28e1647b39ed0fb41d5168c5e1 | <ide><path>activesupport/lib/active_support/core_ext/object/json.rb
<ide> # Hack to load json gem first so we can overwrite its to_json.
<ide> require 'json'
<ide> require 'bigdecimal'
<add>require 'time'
<ide>
<ide> # The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting
<id... | 2 |
Text | Text | fix typos in 1.8.1/1.8.2 notes | 2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f | <ide><path>CHANGELOG.md
<ide> # 1.8.2 meteoric-mining (2020-10-21)
<ide>
<ide> ## Bug Fixes
<del>- **$sceDelegate:** ensure that `resourceUrlWhitelist()` is identical `trustedResourceUrlList()`
<add>- **$sceDelegate:** ensure that `resourceUrlWhitelist()` is identical to `trustedResourceUrlList()`
<ide> ([e41f01](ht... | 1 |
Java | Java | avoid jmsexception in listener execution | 6560aed1c85eef68faeb0356c34e12035a2826bf | <ide><path>spring-jms/src/main/java/org/springframework/jms/listener/adapter/AbstractAdaptableMessageListener.java
<ide> protected void handleListenerException(Throwable ex) {
<ide> * @param message the JMS {@code Message}
<ide> * @return the content of the message, to be passed into the
<ide> * listener method a... | 6 |
Ruby | Ruby | set correct ldflags for universal binaries | 2e3585872b0e5856cce6c53b178744bc10a91c0b | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def m32
<ide> def universal_binary
<ide> append_to_cflags '-arch i386 -arch x86_64'
<ide> ENV.O3 if self['CFLAGS'].include? '-O4' # O4 seems to cause the build to fail
<add> ENV.append 'LDFLAGS', '-arch i386 -arch x86_64'
<ide> end
<ide>
<ide> def prepen... | 1 |
Ruby | Ruby | allow brewing without an md5 hash | ec65bb48190aca260280ef4ce90225af3e4d2d13 | <ide><path>Library/Homebrew/formula.rb
<ide> def brew
<ide> tgz=Pathname.new(fetch()).realpath
<ide> begin
<ide> md5=`md5 -q "#{tgz}"`.strip
<del> raise "MD5 mismatch: #{md5}" unless @md5 and md5 == @md5.downcase
<add> if @md5 and not @md5.empty?
<add> raise "MD5 mismatch: #{m... | 1 |
PHP | PHP | reset test variable | 804c60cd8ad8de8c9ba32baa48ea51db38e3b295 | <ide><path>tests/Container/ContainerTest.php
<ide> public function testExtendInstancesArePreserved()
<ide>
<ide> public function testExtendIsLazyInitialized()
<ide> {
<add> ContainerLazyExtendStub::$initialized = false;
<add>
<ide> $container = new Container;
<ide> $container->bind('Cont... | 1 |
Python | Python | detect all functions in complex.h | de681b72314d666cb014b2f11358de66a3aaa337 | <ide><path>numpy/core/setup_common.py
<ide> def check_api_version(apiversion, codegen_dir):
<ide> OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"]
<ide>
<ide> # Subset of OPTIONAL_STDFUNCS which may alreay have HAVE_* defined by Python.h
<del>OPTIONAL_STDFUNCS_MAYBE = ["expm1", "log1p", "acosh", "atan... | 1 |
Text | Text | expand the getting started | fd472650c011f6d73ad7570f99a2b793748f6179 | <ide><path>README.md
<ide> See the differences between version 1.x and 2.x in the wiki article [What's diff
<ide>
<ide> ## Getting started
<ide>
<add>### Setting up the dependency
<add>
<ide> The first step is to include RxJava 2 into your project, for example, as a Gradle compile dependency:
<ide>
<ide> ```groovy
<... | 1 |
Python | Python | refactor the network plugin | 9c6c41a4a2b3c6536b7ee162aef2f7c9a3018550 | <ide><path>glances/outputs/glances_curses.py
<ide> def __init__(self, args=None):
<ide>
<ide> # Init args
<ide> self.args = args
<add> # By default, display bitrate instead of cumulative in the network plugin
<add> self.args.network_stats_cumulative = False
<ide>
<ide> # Init win... | 5 |
Javascript | Javascript | fix error in watch mode | 027967903e1f7014be1dbb4e7ff969f0840edd52 | <ide><path>lib/AsyncDependenciesBlock.js
<ide> AsyncDependenciesBlock.prototype.updateHash = function updateHash(hash) {
<ide> };
<ide>
<ide> AsyncDependenciesBlock.prototype.disconnect = function() {
<del> this.chunk = null;
<add> this.chunks = null;
<ide> DependenciesBlock.prototype.disconnect.call(this);
<del>};
<... | 1 |
Javascript | Javascript | make all methods on template static | 16ee68b5f941f44711c9b2a10e75bce6f5a2fd8a | <ide><path>lib/ChunkTemplate.js
<ide>
<ide> const ConcatSource = require("webpack-sources").ConcatSource;
<ide> const Template = require("./Template");
<add>const Tapable = require("tapable").Tapable;
<ide> const SyncWaterfallHook = require("tapable").SyncWaterfallHook;
<ide> const SyncHook = require("tapable").SyncHo... | 12 |
Javascript | Javascript | remove fragment from main component | 758ad9ce84c98470b71698639f8e4e92842a2434 | <ide><path>server/document.js
<ide> export class Main extends Component {
<ide> render () {
<ide> const { html } = this.context._documentProps
<ide> return (
<del> <Fragment>
<del> <div id='__next' dangerouslySetInnerHTML={{ __html: html }} />
<del> </Fragment>
<add> <div id='__next' dan... | 1 |
PHP | PHP | add additional test coverage for optional columns | e0501ddb2732df4a070140d11a5cc1f651ec3f52 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public static function columnSqlProvider()
<ide> ['type' => 'boolean', 'default' => false],
<ide> '`checked` BOOLEAN DEFAULT FALSE'
<ide> ],
<add> [
<add> 'checked',
<add> ... | 2 |
Java | Java | reset java state in jni reset method | d8e77f0c7679b008c61bce6b008521c3fa298d7e | <ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java
<ide> public void reset() {
<ide> mHasSetMargin = false;
<ide> mHasSetBorder = false;
<ide> mHasSetPosition = false;
<add>
<add> mMeasureFunction = null;
<add> mData = null;
<add>
<ide> jni_CSSNodeReset(mNativePointer);
<ide... | 1 |
PHP | PHP | documentif the mapreduce class | 7b161df770ebaedda420574d2708cda7ec0a5031 | <ide><path>lib/Cake/ORM/MapReduce.php
<ide> use \IteratorAggregate;
<ide> use \ArrayIterator;
<ide>
<add>/**
<add> * Implements a simplistic version of the popular Map-Reduce algorithm. Acts
<add> * like an iterator for the original passed data after each result has been
<add> * processed, thus offering a transparent ... | 1 |
Python | Python | set version to v2.2.0 | 2fb05482ddb2515d1f8904572dc5cbabc244ce67 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev17"
<add>__version__ = "2.2.0"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mo... | 1 |
Ruby | Ruby | fix typo in benchmarker usage string | 98068a71dfc8970d68ad8d31053faf387aa67c9d | <ide><path>railties/lib/commands/performance/benchmarker.rb
<ide> if ARGV.empty?
<del> puts "Usage: ./script/perform benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
<add> puts "Usage: ./script/performance/benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
<id... | 1 |
Go | Go | add failing test for odd kernel version | fc30346086a890687d145c33aa8fb3d0ad6a4b7e | <ide><path>utils/utils_test.go
<ide> func TestParseRelease(t *testing.T) {
<ide> assertParseRelease(t, "3.4.54.longterm-1", &KernelVersionInfo{Kernel: 3, Major: 4, Minor: 54}, 0)
<ide> assertParseRelease(t, "3.4.54.longterm-1", &KernelVersionInfo{Kernel: 3, Major: 4, Minor: 54, Flavor: "1"}, 0)
<ide> assertParseRele... | 1 |
Javascript | Javascript | update precompiler for new format | b6c816ed9ca8fe9df5d83d344f1be7d0cf3eab28 | <ide><path>lib/broccoli-ember-inline-template-precompiler.js
<ide> EmberInlineTemplatePrecompiler.prototype.processFile = function (srcDir, destDir
<ide>
<ide> while (nextIndex > -1) {
<ide> var match = inputString.match(self.inlineTemplateRegExp);
<del> var template = "Ember.Handlebars.template(" + com... | 2 |
Go | Go | fix possible panic on killing container | e995670935118ad7ff485aee7fd3d4767e4c3e29 | <ide><path>daemon/execdriver/native/driver.go
<ide> package native
<ide>
<ide> import (
<ide> "encoding/json"
<add> "errors"
<ide> "fmt"
<ide> "io"
<ide> "io/ioutil"
<ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
<ide> }
<ide>
<ide> func (d *driver) Kill(p *execdriver.Comma... | 1 |
Go | Go | make sockrequestraw return reader, not []byte | 8232cc777e329a47e123dbdc42411dae65288a80 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func TestBuildApiDockerfilePath(t *testing.T) {
<ide> t.Fatalf("failed to close tar archive: %v", err)
<ide> }
<ide>
<del> _, out, err := sockRequestRaw("POST", "/build?dockerfile=../Dockerfile", buffer, "application/x-tar")
<add> _, body, err := sockRe... | 2 |
Javascript | Javascript | use es5 for transpile script, too much meta | 257791d05879f5a6434836641874c5b229d98876 | <ide><path>tasks/transpile.js
<ide> module.exports = function (grunt) {
<ide> path.resolve('src/moment'),
<ide> path.resolve('build/tmp/moment')
<ide> ];
<del> bundleOpts.globals = {
<del> [path.resolve('src/moment')]: 'moment',
<del> ... | 1 |
Text | Text | move changelog entry to the top [ci skip] | 4cf805a6d98f372148755b36153d4267889aa67f | <ide><path>railties/CHANGELOG.md
<add>* Changed stylesheet load order in the stylesheet manifest generator.
<add> Fixes #11639.
<add>
<add> *Pawel Janiak*
<add>
<ide> * Added generated unit test for generator generator using new
<ide> `test:generators` rake task.
<ide>
<ide>
<ide> *John Wang*
<ide> ... | 1 |
Ruby | Ruby | move object test files under object | a45d1f6dfdb22a9d3e61397030b98a5d4d0c5114 | <ide><path>activesupport/test/core_ext/object/acts_like_test.rb
<add>require 'abstract_unit'
<add>require 'active_support/core_ext/object'
<add>
<add>class ObjectTests < ActiveSupport::TestCase
<add> class DuckTime
<add> def acts_like_time?
<add> true
<add> end
<add> end
<add>
<add> def test_duck_typing
<... | 3 |
Python | Python | add a get_config implementation | 611abda1083f72a2d9ff07c715a6d762b16d4148 | <ide><path>official/projects/vit/modeling/vit.py
<ide> def call(self, inputs, training=None):
<ide> x = encoder_layer(x, training=training)
<ide> x = self._norm(x)
<ide> return x
<add> def get_config(self):
<add> config = {
<add> 'num_layers': self._num_layers,
<add> 'mlp_dim': self._mlp... | 1 |
Python | Python | add test for script deployment | 750b38d9700eb26d516e53d21661cc9c4fcc11fd | <ide><path>test/compute/test_deployment.py
<ide> import unittest
<ide>
<ide> from libcloud.compute.deployment import MultiStepDeployment, Deployment
<del>from libcloud.compute.deployment import SSHKeyDeployment
<add>from libcloud.compute.deployment import SSHKeyDeployment, ScriptDeployment
<ide> from libcloud.compute.... | 1 |
PHP | PHP | remove comment bloat from route\loader class | c1e2f3cf909edd6070990715d4e9753acddd5e9a | <ide><path>system/route/loader.php
<ide> class Loader {
<ide> */
<ide> public static function load($uri)
<ide> {
<del> // --------------------------------------------------------------
<del> // If a single route file is being used, return it.
<del> // -------------------------------------------------------------... | 1 |
Javascript | Javascript | ignore node_modules when linting | 1eda6eb6377e86b09d4e88c6ce44ba0e3978b89c | <ide><path>tools/lint-js.js
<ide> if (cluster.isMaster) {
<ide> let curPath = 'Starting ...';
<ide> let showProgress = true;
<ide> const globOptions = {
<del> nodir: true
<add> nodir: true,
<add> ignore: '**/node_modules/**/*'
<ide> };
<ide> const workerConfig = {};
<ide> let startTime; | 1 |
Javascript | Javascript | replace "magic" numbers by constants | 2f743261814d428b935136b64b416a2879c29364 | <ide><path>lib/internal/constants.js
<ide> module.exports = {
<ide> CHAR_DOT: 46, /* . */
<ide> CHAR_FORWARD_SLASH: 47, /* / */
<ide> CHAR_BACKWARD_SLASH: 92, /* \ */
<add> CHAR_VERTICAL_LINE: 124, /* | */
<ide> CHAR_COLON: 58, /* : */
<ide> CHAR_QUESTION_MARK: 63, /* ? */
<ide> CHAR_UNDERSCORE: 95, /* _ *... | 2 |
Text | Text | add link to official arraylist documentation | 39fa46348ef33cf842a4f851f57e30d56e26324d | <ide><path>guide/english/java/arraylist/index.md
<ide> Since ArrayList implements *List*, an ArrayList can be created using the followi
<ide> An ArrayList allows us to randomly access elements. ArrayList is similar to *Vector* in a lot of ways. But it is faster than Vectors. The main thing to note is that - Vectors a... | 1 |
Python | Python | add some missing docstring annotations | 66d9e18e80c9d45b10b4893e5c19b606f09df853 | <ide><path>libcloud/common/base.py
<ide> class Response(object):
<ide> parse_zero_length_body = False
<ide>
<ide> def __init__(self, response, connection):
<add> """
<add> :param response: HTTP response object. (optional)
<add> :type response: :class:`httplib.HTTPResponse`
<add>
<add> ... | 1 |
Javascript | Javascript | fix typo in a spec comment | 615841a5d3cb6dae8329411c27fd938e9b413f4c | <ide><path>test/widgetsSpec.js
<ide> describe("widget", function() {
<ide> $location.path('/bar');
<ide> $browser.xhr.expectGET('myUrl2').respond('<div>{{1+1}}</div>');
<ide> rootScope.$digest();
<del> $browser.xhr.flush(); // no that we have to requests pending, flush!
<add> $browser.xhr.fl... | 1 |
Javascript | Javascript | move test helpers inside of closure | 83d1229c87d41954a5446073fbae1c779439f262 | <ide><path>test/ngAria/ariaSpec.js
<ide> describe('$aria', function() {
<ide> dealoc(element);
<ide> });
<ide>
<del> function injectScopeAndCompiler() {
<del> return inject(function(_$compile_, _$rootScope_) {
<del> $compile = _$compile_;
<del> scope = _$rootScope_;
<del> });
<del> }
<del>
<del... | 1 |
Javascript | Javascript | add controlleras example | 726ffdc50ff3133c0cbaf5f3e0e23f77a68180d2 | <ide><path>src/ng/compile.js
<ide> * restrict: 'A',
<ide> * scope: false,
<ide> * controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
<add> * controllerAs: 'stringAlias',
<ide> * require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?opt... | 1 |
Go | Go | reset agentinitdone channel when leaving a cluster | 3eff69860d9258fd0ce0646620ef2d39b299f338 | <ide><path>libnetwork/controller.go
<ide> func (c *controller) clusterAgentInit() {
<ide> }
<ide> }
<ide> } else {
<add> c.agentInitDone = make(chan struct{})
<ide> c.agentClose()
<ide> }
<ide> } | 1 |
Python | Python | add path2str compat function | 311704674da83f50fef0b968062a3481330026f4 | <ide><path>spacy/compat.py
<ide> basestring_ = basestring
<ide> input_ = raw_input
<ide> json_dumps = lambda data: ujson.dumps(data, indent=2).decode('utf8')
<add> path2str = lambda path: str(path).decode('utf8')
<ide>
<ide> elif is_python3:
<ide> bytes_ = bytes
<ide> unicode_ = str
<ide> ba... | 1 |
Ruby | Ruby | add a null node at the top of the stack | 8e014f28ccd380328f49075b62f23322c49033c2 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def nested_options #:nodoc:
<ide> end
<ide>
<ide> def shallow_nesting_depth #:nodoc:
<del> @scope.find_all { |frame|
<del> frame[:scope_level_resource]
<del> }.count { |frame| frame[:scope_level_res... | 1 |
Python | Python | fix flake8 errors | 65b5158a578d93b50c18191e90a7f640ebb4453e | <ide><path>libcloud/compute/drivers/packet.py
<ide> from libcloud.common.base import ConnectionKey, JsonResponse
<ide> from libcloud.compute.types import Provider, NodeState, InvalidCredsError
<ide> from libcloud.compute.base import NodeDriver, Node
<del>from libcloud.compute.providers import get_driver
<ide> from libc... | 1 |
PHP | PHP | use methods from contract | 603aad0f53efcffcc609e8f010fd5f3022e61711 | <ide><path>src/Illuminate/Foundation/Bootstrap/RegisterFacades.php
<ide> public function bootstrap(Application $app)
<ide>
<ide> Facade::setFacadeApplication($app);
<ide>
<del> AliasLoader::getInstance($app['config']['app.aliases'])->register();
<add> AliasLoader::getInstance($app->make('config'... | 2 |
PHP | PHP | fix nested name attributes for submit() | 07462f0bef316983d8a888b6e4243a40fa42fee4 | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testSecurityButtonNestedNamed() {
<ide> $this->assertEquals(array('Address.button'), $result);
<ide> }
<ide>
<add>
<add>/**
<add> * Test that submit inputs created with foo[bar] name attributes are unlocked correctly.
<add> *
<add> *... | 2 |
Ruby | Ruby | remove remnants from editor command helper module | 943fca0de89caf6c9873afc502a12a98bcbde643 | <ide><path>railties/lib/rails/command/base.rb
<ide> def namespaced_commands
<ide>
<ide> no_commands do
<ide> delegate :executable, to: :class
<add> attr_reader :current_subcommand
<add>
<add> def invoke_command(command, *) # :nodoc:
<add> original_subcommand, @current_subcommand = ... | 7 |
Python | Python | remove redundant logging in sftp hook | 81be82bfb73f263ecd3b2d5f664e9c1ea751408a | <ide><path>airflow/providers/sftp/hooks/sftp.py
<ide> def retrieve_file(self, remote_full_path: str, local_full_path: str) -> None:
<ide> :type local_full_path: str
<ide> """
<ide> conn = self.get_conn()
<del> self.log.info('Retrieving file from FTP: %s', remote_full_path)
<ide> c... | 1 |
Python | Python | remove double brackets | b2c863a3196150850d17548f25ee0575bccb8224 | <ide><path>src/transformers/pipelines/audio_classification.py
<ide> class AudioClassificationPipeline(Pipeline):
<ide> [{'score': 0.997, 'label': '_unknown_'}, {'score': 0.002, 'label': 'left'}, {'score': 0.0, 'label': 'yes'}, {'score': 0.0, 'label': 'down'}, {'score': 0.0, 'label': 'stop'}]
<ide> ```
<ide>
<d... | 20 |
Javascript | Javascript | remove references to deletion flag | 11a983fc76192037798d2f93dedf09af97f99884 | <ide><path>packages/react-reconciler/src/ReactChildFiber.new.js
<ide> import type {Fiber} from './ReactInternalTypes';
<ide> import type {Lanes} from './ReactFiberLane.new';
<ide>
<ide> import getComponentName from 'shared/getComponentName';
<del>import {
<del> Deletion,
<del> ChildDeletion,
<del> Placement,
<del> ... | 3 |
Javascript | Javascript | adjust rendering of large numbers | 15cbc61a6e97162b93dadd680f7a2a5c2d7c7be0 | <ide><path>website/assets/js/util.js
<ide> export const convertNumber = (num = 0, separator = ',') =>
<ide> * @param {number|string} num - The number to convert.
<ide> * @param {number} fixed - Number of decimals.
<ide> */
<del>export const abbrNumber = (num = 0, fixed = 2) => {
<add>export const abbrNumber = (num =... | 1 |
Go | Go | remove unused reflink files | 055bfb699bb232c7e490c38d3a71c81870781c74 | <ide><path>reflink_copy_linux.go
<del>// +build amd64
<del>
<del>package docker
<del>
<del>// FIXME: This could be easily rewritten in pure Go
<del>
<del>/*
<del>#include <sys/ioctl.h>
<del>#include <linux/fs.h>
<del>#include <errno.h>
<del>
<del>// See linux.git/fs/btrfs/ioctl.h
<del>#define BTRFS_IOCTL_MAGIC 0x94
<de... | 2 |
Python | Python | add tests for new randint functionality | 5aca879e18541eff3daf506786b07a950a075b37 | <ide><path>numpy/random/tests/test_random.py
<ide> def test_negative_binomial(self):
<ide> # arguments without truncation.
<ide> self.prng.negative_binomial(0.5, 0.5)
<ide>
<add>class TestRandint(TestCase):
<add>
<add> rfunc = np.random.randint
<add>
<add> # valid integer/boolean types
<add> i... | 1 |
PHP | PHP | add tuple comparison integration tests | b2619615509509b6da95dcf00c5212a0a4fb41e2 | <ide><path>tests/TestCase/Database/QueryTests/TupleComparisonQueryTest.php
<ide>
<ide> namespace Cake\Test\TestCase\Database\QueryTests;
<ide>
<add>use Cake\Database\Driver\Mysql;
<add>use Cake\Database\Driver\Postgres;
<ide> use Cake\Database\Driver\Sqlite;
<ide> use Cake\Database\Driver\Sqlserver;
<ide> use Cake\Da... | 2 |
Text | Text | fix typo in docker links chapter of user guide | 932cc230814ba642c493c77d05932f63c0ef3e7f | <ide><path>docs/sources/userguide/dockerlinks.md
<ide> port. Where `<name>` is the alias name specified in the `--link` parameter
<ide> is either `TCP` or `UDP`. The format of the URL will be:
<ide> `<protocol>://<container_ip_address>:<port>`
<ide> (e.g. `tcp://172.17.0.82:8080`). This URL will then be
<del>split in... | 1 |
Javascript | Javascript | fix typo when running an unknown simulator | 145692a94053c8a3f4dda2ff6d337062ad1d9dde | <ide><path>local-cli/runIOS/runIOS.js
<ide> function runOnSimulator(xcodeProject, args, inferredSchemeName, scheme){
<ide>
<ide> const selectedSimulator = findMatchingSimulator(simulators, args.simulator);
<ide> if (!selectedSimulator) {
<del> throw new Error(`Cound't find ${args.simulator} simulator`);
<... | 1 |
Python | Python | fix lint errors | 2fd16716336d4168d52f84ffb0fff7ee5ab2e730 | <ide><path>official/resnet/keras/keras_common.py
<ide> def get_strategy_scope(strategy):
<ide> if strategy:
<ide> strategy_scope = strategy.scope()
<ide> else:
<del> strategy_scope = keras_common.DummyContextManager()
<add> strategy_scope = DummyContextManager()
<ide>
<ide> return strategy_scope
<ide> ... | 1 |
Java | Java | refine uritemplate match pattern | c60313de3f0797f987bc7a392d75aebd17020158 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriTemplate.java
<ide> else if (c == '}') {
<ide> String variable = builder.toString();
<ide> int idx = variable.indexOf(':');
<ide> if (idx == -1) {
<del> pattern.append("(.*)");
<add> pattern.append("([^/]*)");
<ide> ... | 2 |
Javascript | Javascript | add signal check to test-esm-cjs-main | dbdfc5d656dc05d23a48aeb656454040c20217d8 | <ide><path>test/es-module/test-esm-cjs-main.js
<ide> child.stdout.on('data', (data) => {
<ide> assert.strictEqual(data.toString(), 'executed\n');
<ide> validatedExecution = true;
<ide> });
<del>child.on('close', common.mustCall((code, stdout) => {
<add>child.on('close', common.mustCall((code, signal) => {
<ide> a... | 1 |
Java | Java | delete unused imports | 31a93792b27be268255cb4aba3c8ab6e4e4db7ff | <ide><path>spring-test/src/test/java/org/springframework/test/web/client/MockRestServiceServerTests.java
<ide> */
<ide> package org.springframework.test.web.client;
<ide>
<del>import org.hamcrest.Matchers;
<ide> import org.junit.Test;
<ide>
<ide> import org.springframework.test.web.client.MockRestServiceServer.MockR... | 1 |
Javascript | Javascript | ignore code section in generator | 3ade8a0a6fb2e7c6f2a2b1887be91a21c4880b98 | <ide><path>lib/wasm/WebAssemblyGenerator.js
<ide> class WebAssemblyGenerator extends Generator {
<ide> generate(module) {
<ide> const bin = module.originalSource().source();
<ide>
<add> // FIXME(sven): this module is parsed twice, we could preserve the AST
<add> // from wasm/WebAssemblyParser.js
<ide> const ast... | 1 |
Text | Text | improve upgrade instructions for bootsnap | 0d92cb663215cd8f2131cffe59a1d1bc979e5025 | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> For more information on changes made to Rails 5.2 please see the [release notes]
<ide> ### Bootsnap
<ide>
<ide> Rails 5.2 adds bootsnap gem in the [newly generated app's Gemfile](https://github.com/rails/rails/pull/29313).
<del>The `app:update` command sets it ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.