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 |
|---|---|---|---|---|---|
Java | Java | fix linkedcaseinsensitivemap collection methods | 55ac110f7bef6d5f0b782e7d49dd2d6b7ef26f2d | <ide><path>spring-core/src/main/java/org/springframework/util/LinkedCaseInsensitiveMap.java
<ide> /*
<del> * Copyright 2002-2018 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 "License");
<ide> * you may ... | 3 |
PHP | PHP | create forwardscalls trait | 525f780709026979e08ba5cfe0da91a6853075d8 | <ide><path>src/Illuminate/Support/Traits/ForwardsCalls.php
<add><?php
<add>
<add>namespace Illuminate\Support\Traits;
<add>
<add>use Error;
<add>use BadMethodCallException;
<add>
<add>trait ForwardsCalls
<add>{
<add> protected function forwardCallTo($object, $method, $parameters)
<add> {
<add> try {
<add> ... | 2 |
Mixed | Javascript | emit deprecation code only once | 07d39a2262dac233b5f86b06ecc16484ab0f7858 | <ide><path>doc/api/util.md
<ide> environment variable. For example: `NODE_DEBUG=fs,net,tls`.
<ide> ## util.deprecate(fn, msg[, code])
<ide> <!-- YAML
<ide> added: v0.8.0
<add>changes:
<add> - version: REPLACEME
<add> description: Deprecation warnings are only emitted once for each code.
<ide> -->
<ide>
<ide> * `fn... | 3 |
Java | Java | add throttlelatest operator | 5ce21f49465143c48a5bcbd32d73721aded05e78 | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public final Flowable<T> throttleLast(long intervalDuration, TimeUnit unit, Sche
<ide> return sample(intervalDuration, unit, scheduler);
<ide> }
<ide>
<add> /**
<add> * Throttles items from the upstream {@code Flowable} by first emitting the ... | 7 |
Mixed | Javascript | remove unused model properties | e42413f3e81703aae14272198a5b4ec54136bc15 | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`.
<ide> * Made `scale.handleDirectionalChanges` private
<ide> * Made `scale.tickValues` private
<ide>
<add>#### Removal of private APIs
<add>
<add>* `_model.datasetLabel`
<add>* `_model.... | 7 |
Python | Python | use the new implementation of `six.with_metaclass` | a2340ac6d6b7e31c7e97e8fdaf3e1d73e43b24ba | <ide><path>django/db/models/base.py
<ide> class ModelBase(type):
<ide> def __new__(cls, name, bases, attrs):
<ide> super_new = super(ModelBase, cls).__new__
<ide>
<del> # six.with_metaclass() inserts an extra class called 'NewBase' in the
<del> # inheritance tree: Model -> NewBase -> object. ... | 2 |
Python | Python | update version number on trunk | 01900f628194622750d17cc6f65a484c8c2f2f93 | <ide><path>numpy/version.py
<del>version='1.0.3'
<add>version='1.0.4'
<ide> release=False
<ide>
<ide> if not release: | 1 |
Text | Text | remove whitespace typo | 62dcb1f3faad4402251ab1fc461accc4bece1d3b | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.english.md
<ide> Example:
<ide>
<ide> ```js
<ide> var ourStr = "I come first. " + "I come second.";
<del>// ourStr is "I come first. I come second."
<add>// ourStr is "I come... | 1 |
Text | Text | fix some typos in deprecations.md and vm.md | 3d04e6c9a5522b6391a4a914ca16f2337abb35e7 | <ide><path>doc/api/deprecations.md
<ide> accepted by the legacy `url.parse()` API. The mentioned APIs now use the WHATWG
<ide> URL parser that requires strictly valid URLs. Passing an invalid URL is
<ide> deprecated and support will be removed in the future.
<ide>
<del><a id="DEP00XX"></a>
<del>### DEP00XX: vm.Script ... | 2 |
Text | Text | fix minor typo in recurrent.md | af4f889fa694cc5f3e6421f5036dbaf19d431570 | <ide><path>docs/sources/layers/recurrent.md
<ide> Fully connected RNN where the output is to fed back to the input.
<ide> - __activation__: activation function. Can be the name of an existing function (str), or a Theano function (see: [activations](../activations.md)).
<ide> - __weights__: list of numpy arrays ... | 1 |
PHP | PHP | add ipv4 and ipv6 validations | b81cfae9a7090bc02271fa629aa3d2f17715c899 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateIp($attribute, $value)
<ide> return filter_var($value, FILTER_VALIDATE_IP) !== false;
<ide> }
<ide>
<add> /**
<add> * Validate that an attribute is a valid IPv4.
<add> *
<add> * @param string $attribute
<ad... | 2 |
PHP | PHP | fix failing tests | 5aaa5c59401ac2fa2e99c24d779b8db7193201a8 | <ide><path>lib/Cake/Routing/Route/Route.php
<ide> public function match($url, $context = array()) {
<ide> * @return string Composed route string.
<ide> */
<ide> protected function _writeUrl($params, $pass = array(), $query = array()) {
<del> if (isset($params['prefix'], $params['action'])) {
<del> $params['action... | 3 |
Text | Text | fix typos in lights article | 37bf8a822f619ba33793ecc09bbaf62d8a7f0c8f | <ide><path>threejs/lessons/threejs-lights.md
<ide> Description: Setting up Lights
<ide> This article is part of a series of articles about three.js. The
<ide> first article is [three.js fundamentals](threejs-fundamentals.html). If
<ide> you haven't read that yet and you're new to three.js you might want to
<del>conside... | 1 |
PHP | PHP | fix failing test & simplify code | a3ddff4aa7b01a9abebc2b614a19f729d1554be8 | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testCrumbListFirstLink() {
<ide> * @return void
<ide> */
<ide> public function testCrumbListBootstrapStyle() {
<del> $this->Html->addCrumb('Home', '/', array('class'=>'home'));
<add> $this->Html->addCrumb('Home', '/', array('class' ... | 2 |
Text | Text | add docs about `batch()` api to performance faq | 47d7b95e659493eb29420c127761322e764a81e7 | <ide><path>docs/faq/Performance.md
<ide> However, you _do_ need to create a copied and updated object for each level of n
<ide>
<ide> Redux notifies subscribers after each successfully dispatched action (i.e. an action reached the store and was handled by reducers). In some cases, it may be useful to cut down on the n... | 1 |
Python | Python | fix error in throttling when request.user is none | 129890ab1bbbba2deb96b8e30675dfb1060d7615 | <ide><path>rest_framework/throttling.py
<ide> class AnonRateThrottle(SimpleRateThrottle):
<ide> scope = 'anon'
<ide>
<ide> def get_cache_key(self, request, view):
<del> if request.user.is_authenticated:
<add> if request.user and request.user.is_authenticated:
<ide> return None # Only... | 1 |
Java | Java | handle exceptions in annotation searches again | d757f739028c7608b0d870bf0e9f23b91e57298b | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java
<ide> private static <C, R> R processClass(C context, Class<?> source,
<ide> private static <C, R> R processClassInheritedAnnotations(C context, Class<?> source,
<ide> SearchStrategy searchStrategy, AnnotationsProcessor... | 1 |
Python | Python | handle any exception in __repr__ | 0988db799d07b37b318435ee5fe976f4b237e3d7 | <ide><path>celery/utils/saferepr.py
<ide> from __future__ import absolute_import, unicode_literals
<ide>
<ide> import sys
<add>import traceback
<ide>
<ide> from collections import deque, namedtuple
<ide>
<ide> class range_t(object): # noqa
<ide> pass
<ide>
<add>#: Node representing literal text.
<add>#... | 2 |
Javascript | Javascript | remove unused variable. thanks, @fponticelli! | dab913575c2c1d26783cc1f1a5a7989c7a65fa5c | <ide><path>d3.js
<ide> function d3_selection(groups) {
<ide>
<ide> if (join) {
<ide> var nodeByKey = {},
<del> exitData = [],
<ide> keys = [],
<ide> key,
<ide> j = groupData.length;
<ide><path>d3.min.js
<del>(function(){function bU(){return"circle"}function ... | 3 |
Javascript | Javascript | add isarray in devtools utils | 580e2f56d54b6f7868a98d6bd5ce07bfaa3cdbe2 | <ide><path>packages/react-devtools-shared/src/isArray.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<add> */
<add>
<add>const isArr... | 2 |
Javascript | Javascript | release script filters devtools npm pakcages | e8c7ddeef2919560da9ffa7e1043a4c6418c8701 | <ide><path>scripts/release/utils.js
<ide> const createLogger = require('progress-estimator');
<ide> const prompt = require('prompt-promise');
<ide> const theme = require('./theme');
<ide>
<add>// The following packages are published to NPM but not by this script.
<add>// They are released through a separate process.
<... | 1 |
Ruby | Ruby | ignore broken linkage with llvm libc++ | 957c2c983cc7b09221442ef976764c96e3b0ad83 | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> def sort_by_formula_full_name!(arr)
<ide> def harmless_broken_link?(dylib)
<ide> # libgcc_s_* is referenced by programs that use the Java Service Wrapper,
<ide> # and is harmless on x86(_64) machines
<add> # dyld will fall back to Apple libc++ if LLVM's ... | 1 |
Ruby | Ruby | fix interpolation check | 62db042277dbd60d8b6ff74416e84c053a62b781 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_text
<ide> end
<ide>
<ide> # Check for string interpolation of single values.
<del> if text =~ /(system|inreplace|gsub!|change_make_var!) .* ['"]#\{(\w+(\.\w+)?)\}['"]/
<add> if text =~ /(system|inreplace|gsub!|change_make_var!).*[ ,]"#\{([\w.]+)\}... | 1 |
PHP | PHP | fix error in sqlite tests | d73bc6b8674cd318c0af79882c86bb4c54efd79d | <ide><path>lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
<ide> public function testSaveCreate() {
<ide> 'slug' => 'fourth_translated',
<ide> 'title' => 'Leyenda #4',
<ide> 'content' => 'Contenido #4',
<del> 'translated_article_id' => null
<add> 'translated_article_id' => 1,
<ide> );
<ide> ... | 1 |
Ruby | Ruby | fix specs in testball | d07defa7c11449a776ab9f5c63f437c576806195 | <ide><path>Library/Homebrew/test/test_bucket.rb
<ide> def test_brew_h
<ide>
<ide> shutup do
<ide> assert_nothing_raised do
<del> f=TestBallWithRealPath.new
<add> f = Class.new(TestBall) do
<add> def initialize(*)
<add> super
<add> @path = Pathname.new(__FILE__)
<a... | 4 |
Python | Python | consolidate weights files | ca8172a50fd4d6a3e22960d60dae3bf112721dbd | <ide><path>keras/applications/densenet.py
<ide> from .imagenet_utils import _obtain_input_shape
<ide>
<ide>
<del>DENSENET121_WEIGHT_PATH = 'https://github.com/taehoonlee/deep-learning-models/releases/download/densenet/densenet121_weights_tf_dim_ordering_tf_kernels.h5'
<del>DENSENET121_WEIGHT_PATH_NO_TOP = 'https://gi... | 2 |
Javascript | Javascript | use array#includes instead of array#indexof | c8d3a73c8b673792e315759b70cf4822b64b3e45 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(input, options, cb) {
<ide> // https://tools.ietf.org/html/rfc3986#section-3.2.2
<ide> var posColon = hostHeader.indexOf(':');
<ide> if (posColon !== -1 &&
<del> hostHeader.indexOf(':', posColon + 1) !== -1 &&
<add> hostHead... | 9 |
Javascript | Javascript | use matching test command for equivalence tests | b6c423daadaa35da3f34048628df9635505eecb1 | <ide><path>packages/react/src/__tests__/ReactClassEquivalence-test.js
<ide> describe('ReactClassEquivalence', () => {
<ide> function runJest(testFile) {
<ide> const cwd = process.cwd();
<ide> const extension = process.platform === 'win32' ? '.cmd' : '';
<del> const result = spawnSync('yarn' + extension, ['test', t... | 1 |
Text | Text | remove leftover ubuntu 15.04 from install docs | 1ca064cb62a88366bc13af67a112aff8992b6b68 | <ide><path>docs/installation/linux/ubuntulinux.md
<ide> packages from the new repository:
<ide> ### Prerequisites by Ubuntu Version
<ide>
<ide> - Ubuntu Wily 15.10
<del>- Ubuntu Vivid 15.04
<ide> - Ubuntu Trusty 14.04 (LTS)
<ide>
<del>For Ubuntu Trusty, Vivid, and Wily, it's recommended to install the
<add>For Ubuntu... | 1 |
Go | Go | clean some function in docker_utils_test.go | 10e171cd9463ca0bfda4556b3eb04d9f89d1bbbf | <ide><path>integration-cli/docker_api_containers_test.go
<ide> import (
<ide> mounttypes "github.com/docker/docker/api/types/mount"
<ide> networktypes "github.com/docker/docker/api/types/network"
<ide> "github.com/docker/docker/integration-cli/checker"
<add> "github.com/docker/docker/integration-cli/cli"
<ide> "git... | 10 |
Go | Go | fix windows rxreservednames | 502b35c8f6e3312c2f5a90cda4add6cc5f31a0f4 | <ide><path>volume/mounts/windows_parser.go
<ide> const (
<ide> rxName = `[^\\/:*?"<>|\r\n]+`
<ide>
<ide> // RXReservedNames are reserved names not possible on Windows
<del> rxReservedNames = `(con)|(prn)|(nul)|(aux)|(com[1-9])|(lpt[1-9])`
<add> rxReservedNames = `(con|prn|nul|aux|com[1-9]|lpt[1-9])`
<ide>
<ide> //... | 2 |
Ruby | Ruby | check both gcc's | 11e779d917808501cedb62a45a23c33eb068de90 | <ide><path>Library/Homebrew/brew_doctor.rb
<ide> def brew_doctor
<ide>
<ide> check_for_stray_dylibs
<ide>
<del> if gcc_build < HOMEBREW_RECOMMENDED_GCC
<del> puts "Your GCC version is older than the recommended version. It may be advisable"
<add> gcc_42 = gcc_42_build
<add> gcc_40 = gcc_40_b... | 1 |
Go | Go | remove unneeded platform check for ipvlan tests | 1e4bd2623a37b8083a7c5f8a93068be2c63f491c | <ide><path>integration/network/ipvlan/ipvlan_test.go
<ide> import (
<ide>
<ide> func TestDockerNetworkIpvlanPersistance(t *testing.T) {
<ide> // verify the driver automatically provisions the 802.1q link (di-dummy0.70)
<del> skip.If(t, testEnv.DaemonInfo.OSType == "windows")
<ide> skip.If(t, testEnv.IsRemoteDaemon)
... | 1 |
Text | Text | add text "learn more about cs" | 7d3219cb3075085e5e3966fe4e6fd74604693a92 | <ide><path>client/src/pages/guide/english/computer-science/index.md
<ide> Computer science is categorized into several fields. The following are among the
<ide> - Operating Systems
<ide> - Database Systems
<ide>
<del># Want to learn more?
<del>
<add>##More Information
<add>* [Visualization of Data Structures](http... | 1 |
Ruby | Ruby | put the assertion arguments in the right order | 3b1abcc2225426d0b3245bbf8b9777b44716f9f7 | <ide><path>activesupport/test/core_ext/object/deep_dup_test.rb
<ide> def test_object_deep_dup
<ide> def test_deep_dup_with_hash_class_key
<ide> hash = { Fixnum => 1 }
<ide> dup = hash.deep_dup
<del> assert_equal dup.keys.length, 1
<add> assert_equal 1, dup.keys.length
<ide> end
<ide>
<ide> end | 1 |
PHP | PHP | add tests for type() and refactor tests | bfb6b9d82be5d8ae0c1c5b5877a724cacc3eb5cf | <ide><path>src/View/Form/EntityContext.php
<ide> use Cake\Network\Request;
<ide> use Cake\ORM\Entity;
<ide> use Cake\ORM\TableRegistry;
<del>use Cake\Utility\Inflector;
<ide> use Cake\Validation\Validator;
<ide> use Traversable;
<ide>
<ide><path>tests/TestCase/View/Form/EntityContextTest.php
<ide> public function test... | 2 |
Text | Text | remove outdated note from with-jest example | e463c2a1bb9f483ddb3658ca99b386f1ee100014 | <ide><path>examples/with-jest/README.md
<ide> yarn test
<ide> This example features:
<ide>
<ide> * An app with jest tests
<del>
<del>> A very important part of this example is the `.babelrc` file which configures the `test` environment to use `babel-preset-env` and configures it to transpile modules to `commonjs`). [L... | 1 |
Javascript | Javascript | call chai after load in plugin | 551cb987dd9bbd98b51b8c34728fd05f2ee80be3 | <ide><path>client/plugin.js
<ide> function runHidden(code) {
<ide> var dump = null;
<ide> var onoffline = null;
<ide> var ononline = null;
<del>
<del> var expect = chai.expect;
<del> var assert = chai.assert;
<ide> /* eslint-enable */
<ide>
<ide> var error = null;
<ide> function runHidden(code) {
<ide> ... | 1 |
Python | Python | add doctests to networking_flow/minimum_cut.py | dc2b575274ad4920a0e3f2303a80796daafce84f | <ide><path>networking_flow/minimum_cut.py
<ide> # Minimum cut on Ford_Fulkerson algorithm.
<del>
<add>
<add>test_graph = [
<add> [0, 16, 13, 0, 0, 0],
<add> [0, 0, 10, 12, 0, 0],
<add> [0, 4, 0, 0, 14, 0],
<add> [0, 0, 9, 0, 0, 20],
<add> [0, 0, 0, 7, 0, 4],
<add> [0, 0, 0, 0, 0, 0],
<add>]
<add>
... | 1 |
Javascript | Javascript | add tests for buffer.tojson | f3dc6a37f04c50485213ec972edd202585d30525 | <ide><path>test/parallel/test-buffer-alloc.js
<ide> assert.strictEqual(Buffer.from('13.37').length, 5);
<ide> // issue GH-3416
<ide> Buffer.from(Buffer.allocUnsafe(0), 0, 0);
<ide>
<del>// GH-5110
<del>{
<del> const buffer = Buffer.from('test');
<del> const string = JSON.stringify(buffer);
<del>
<del> assert.strict... | 2 |
Javascript | Javascript | fix nvc for rctmap | 4ac209ca1d05beda473362ef183aebc8dce6374a | <ide><path>Libraries/ReactNative/getNativeComponentAttributes.js
<ide> function getDifferForType(
<ide> // Android Types
<ide> case 'Point':
<ide> return pointsDiffer;
<add> case 'EdgeInsets':
<add> return insetsDiffer;
<ide> }
<ide> return null;
<ide> } | 1 |
Text | Text | add addon api wg | 12e51d56c1007d83c4bc1c1450b5f45837c27164 | <ide><path>WORKING_GROUPS.md
<ide> Their responsibilities are:
<ide> * Maintain and improve the images' documentation.
<ide>
<ide>
<add>### Addon API
<add>
<add>The Addon API Working Group is responsible for maintaining the NAN project and
<add>corresponding _nan_ package in npm. The NAN project makes available an
<a... | 1 |
PHP | PHP | add tokenmismatchexception to the dontreport array | 05235ee6bff52926b266ce0a295f3f2fc35451e0 | <ide><path>app/Exceptions/Handler.php
<ide> namespace App\Exceptions;
<ide>
<ide> use Exception;
<add>use Illuminate\Session\TokenMismatchException;
<ide> use Illuminate\Validation\ValidationException;
<ide> use Illuminate\Auth\Access\AuthorizationException;
<ide> use Illuminate\Database\Eloquent\ModelNotFoundExceptio... | 1 |
Javascript | Javascript | make access to sourcecode native extension lazy | c73242938c2b9d45f9da02b201a02f3b5993eaf5 | <ide><path>Libraries/Image/resolveAssetSource.js
<ide> const AssetSourceResolver = require('AssetSourceResolver');
<ide> import type { ResolvedAssetSource } from 'AssetSourceResolver';
<ide>
<ide> let _customSourceTransformer, _serverURL, _scriptURL;
<add>
<ide> let _sourceCodeScriptURL: ?string;
<add>function getSour... | 1 |
Ruby | Ruby | reintroduce cache with tests | f767ac22fa213df754e160c59189d28ed4f95568 | <ide><path>activerecord/lib/active_record/type/hash_lookup_type_map.rb
<ide> module Type
<ide> class HashLookupTypeMap < TypeMap # :nodoc:
<ide> delegate :key?, to: :@mapping
<ide>
<del> def fetch(type, *args, &block)
<del> @mapping.fetch(type, block).call(type, *args)
<del> end
<del>
<ide> ... | 3 |
PHP | PHP | fix docblock cs | 378104e1cdf07ad606482f9b12fddcbd9dadbcda | <ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php
<ide> protected function getEmailSubject()
<ide> *
<ide> * If no token is present, display the link request form.
<ide> *
<del> * @param Request $request
<add> * @param \Illuminate\Http\Request $request
<ide> * @param string|nu... | 1 |
Javascript | Javascript | reverse condition of a ternary for readability | 2e5b047f043b945991520bf74ca04c3fa4f08359 | <ide><path>src/shared/utils/traverseAllChildren.js
<ide> function traverseAllChildrenImpl(
<ide> var child;
<ide> var nextName;
<ide> var subtreeCount = 0; // Count of children found in the current subtree.
<del> var nextNamePrefix = nameSoFar !== '' ? nameSoFar + SUBSEPARATOR : SEPARATOR;
<add> var nextNamePre... | 1 |
Javascript | Javascript | consolidate eslint dependencies | 4c41fea7a76949bce58adc7ce30ad952e2088401 | <ide><path>tools/node_modules/@babel/core/node_modules/caniuse-lite/data/agents.js
<del>module.exports={A:{A:{J:0.0131217,E:0.00621152,F:0.0376392,G:0.0903341,A:0.0225835,B:0.700089,lB:0.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","... | 300 |
Javascript | Javascript | test deep path for profilingplugin | 373d5133bf15c7d69eb5ec18423bf25ce5db8cd5 | <ide><path>test/configCases/plugins/profiling-plugin/index.js
<ide> import "./test.json";
<ide>
<ide> it("should generate a events.json file", () => {
<del> var fs = require("fs"),
<del> path = require("path"),
<del> os = require("os");
<add> var fs = require("fs");
<add> var path = require("path");
<ide>
<del> exp... | 2 |
Text | Text | add license file to each component | 19d771c8f7c9616b58b0feca9824308ddf62b444 | <ide><path>src/Illuminate/Auth/LICENSE.md
<add>The MIT License (MIT)
<add>
<add>Copyright (c) Taylor Otwell
<add>
<add>Permission is hereby granted, free of charge, to any person obtaining a copy
<add>of this software and associated documentation files (the "Software"), to deal
<add>in the Software without restriction,... | 28 |
Go | Go | add newlines to the json stream functions | 060da572d20dfeee4fe02ce6b975a6cb33e50dbe | <ide><path>utils/streamformatter.go
<ide> func NewStreamFormatter(json bool) *StreamFormatter {
<ide> return &StreamFormatter{json, false}
<ide> }
<ide>
<add>const streamNewline = "\r\n"
<add>
<add>var streamNewlineBytes = []byte(streamNewline)
<add>
<ide> func (sf *StreamFormatter) FormatStream(str string) []byte {
... | 1 |
Text | Text | drop readme terms no longer relevant | c622e532fc361ad9072840d1c0ab0091bc43d61a | <ide><path>activestorage/README.md
<ide> Active Storage, with its included JavaScript library, supports uploading directl
<ide> | `direct-upload:end` | `<input>` | `{id, file}` | A direct upload has ended. |
<ide> | `direct-uploads:end` | `<form>` | None | All direct uploads have ended. |
<ide>
<del>## Compatibility &... | 1 |
Text | Text | remove extra comma in cluster docs | 84afdc39d0923246a0d6a9b86e7780912d5b0a02 | <ide><path>doc/api/cluster.md
<ide> $ NODE_DEBUG=cluster node server.js
<ide> 23521,Master Worker 23528 online
<ide> ```
<ide>
<del>Please note that, on Windows, it is not yet possible to set up a named pipe
<add>Please note that on Windows, it is not yet possible to set up a named pipe
<ide> server in a worker.
<ide>... | 1 |
Text | Text | update small note about layer limitation | 2a230729dae91a54cfe617843b1dd7141ad51948 | <ide><path>docs/sources/userguide/dockerimages.md
<ide> instructions have executed we're left with the `324104cde6ad` image
<ide> containers will get removed to clean things up.
<ide>
<ide> > **Note:**
<del>> Due to a AUFS limitation, an image can't have more than 127 layers
<del>> (see [this PR](https://github.com/... | 1 |
Text | Text | add concrete install instructions for fedora linux | 646d8a596646c83291dfa415c6a150cc47ac827b | <ide><path>docs/build-instructions/linux.md
<ide> Ubuntu LTS 12.04 64-bit is the recommended platform.
<ide> * OS with 64-bit architecture
<ide> * [node.js](http://nodejs.org/download/) v0.10.x
<ide> * [npm](http://www.npmjs.org/) v1.4.x
<del> * libgnome-keyring-dev `sudo apt-get install libgnome-keyring-dev` ... | 1 |
Go | Go | fix channel closing race in event tests | 27b060492c483d61b76f18a529c94a71fdfc5312 | <ide><path>integration-cli/docker_cli_build_unix_test.go
<ide> func (s *DockerSuite) TestBuildCancellationKillsSleep(c *check.C) {
<ide> }
<ide>
<ide> matcher := matchEventLine(buildID, "container", testActions)
<del> go observer.Match(matcher)
<add> processor := processEventMatch(testActions)
<add> go observer.Matc... | 3 |
PHP | PHP | add nolock for null cache store | 50c1a43c71d3d0ec51ab2533111df4e227d0a0d0 | <ide><path>src/Illuminate/Cache/NoLock.php
<add><?php
<add>
<add>namespace Illuminate\Cache;
<add>
<add>class NoLock extends Lock
<add>{
<add> /**
<add> * Attempt to acquire the lock.
<add> *
<add> * @return bool
<add> */
<add> public function acquire()
<add> {
<add> return true;
<add> ... | 3 |
Go | Go | create a unified runcommand function with assert() | d7022f2b46589cb9d860219e1d8278351ba147c3 | <ide><path>integration-cli/docker_api_test.go
<ide> import (
<ide> "net/http"
<ide> "net/http/httptest"
<ide> "net/http/httputil"
<del> "os/exec"
<ide> "strconv"
<ide> "strings"
<ide> "time"
<ide>
<ide> "github.com/docker/docker/api"
<ide> "github.com/docker/docker/pkg/integration/checker"
<add> icmd "github.c... | 22 |
PHP | PHP | apply suggestions from code review | 45ce5844492018784220b150f63eb65c177fab93 | <ide><path>src/Http/ServerRequest.php
<ide> public function accepts(?string $type = null)
<ide> * of the accepted content types.
<ide> *
<ide> * @return array An array of `prefValue => [content/types]`
<del> * @deprecated 4.4.0 Use accepts() or ContentTypeNegotiation instead.
<add> * @deprecated ... | 1 |
Ruby | Ruby | add function to detect if .app(s) installed | d8d76da55fbd1d06efaead2f492bd0b70a122683 | <ide><path>Library/Homebrew/keg.rb
<ide> def python_site_packages_installed?
<ide> (self/'lib/python2.7/site-packages').directory?
<ide> end
<ide>
<add> def app_installed?
<add> not Dir.glob("#{self}/{,libexec/}*.app").empty?
<add> end
<add>
<ide> def version
<ide> require 'version'
<ide> Version.... | 1 |
Python | Python | fix regex for version matching | a9e70d7d0b50ed615428e8344d510effb6713f02 | <ide><path>tools/gyp/pylib/gyp/xcode_emulation.py
<ide> def XcodeVersion():
<ide> except:
<ide> version = CLTVersion()
<ide> if version:
<del> version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
<add> version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0]
<ide> else:
<ide> rai... | 1 |
Ruby | Ruby | remove warnings about @variable_for_layout | c3c1ff40fcc4cbc31a5396a8b7737755ad4bc95b | <ide><path>actionpack/test/controller/render_test.rb
<ide> def new
<ide> class TestController < ActionController::Base
<ide> protect_from_forgery
<ide>
<add> before_filter :set_variable_for_layout
<add>
<ide> class LabellingFormBuilder < ActionView::Helpers::FormBuilder
<ide> end
<ide>
<ide> def render_action_... | 1 |
Javascript | Javascript | add check to test-fs-readfile-tostring-fail | 604ac4bc6c294dd8cb8f2e7dd231ccba4a9d9cfd | <ide><path>test/pummel/test-fs-readfile-tostring-fail.js
<ide> stream.on('error', (err) => { throw err; });
<ide>
<ide> const size = kStringMaxLength / 200;
<ide> const a = Buffer.alloc(size, 'a');
<add>let expectedSize = 0;
<ide>
<ide> for (let i = 0; i < 201; i++) {
<del> stream.write(a);
<add> stream.write(a, (e... | 1 |
Ruby | Ruby | fix failing test on several methods on parameter | 3591dd59e0d5b3e99c1f54619dd78aa7dbba374e | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def to_h
<ide> end
<ide> end
<ide>
<add> # Convert all hashes in values into parameters, then yield each pair like
<add> # the same way as <tt>Hash#each_pair</tt>
<add> def each_pair(&block)
<add> super do |key, value|... | 3 |
Go | Go | fix error formatting | a2eacff5c755d3257f453c9555526549bc3753b1 | <ide><path>image/tarexport/load.go
<ide> func (l *tarexporter) setParentID(id, parentID image.ID) error {
<ide> return err
<ide> }
<ide> if !checkValidParent(img, parent) {
<del> return fmt.Errorf("image %v is not a valid parent for %v", parent.ID, img.ID)
<add> return fmt.Errorf("image %v is not a valid parent f... | 1 |
Text | Text | remove jquery version number from tutorial docs | 9f3ef1b6ac2a22ca8be31866a41f9e60f006e9c2 | <ide><path>docs/docs/tutorial.md
<ide> When the component is first created, we want to GET some JSON from the server an
<ide> ]
<ide> ```
<ide>
<del>We will use jQuery 1.5 to help make an asynchronous request to the server.
<add>We will use jQuery to help make an asynchronous request to the server.
<ide>
<ide> Note: ... | 1 |
Python | Python | add nodelocation import to fix location test | d359e3b3c6c52a4a32ab23367232145c893ed77e | <ide><path>test/__init__.py
<ide> from cStringIO import StringIO
<ide> from urllib2 import urlparse
<ide> from cgi import parse_qs
<del>from libcloud.base import Node, NodeImage, NodeSize
<add>from libcloud.base import Node, NodeImage, NodeSize, NodeLocation
<ide> from libcloud.types import NodeState
<ide> import unitt... | 1 |
Ruby | Ruby | use null column for association key types | e8375a662bc47647f4bd39779ada018cc634fe97 | <ide><path>activerecord/lib/active_record/associations/preloader/association.rb
<ide> def key_conversion_required?
<ide> end
<ide>
<ide> def association_key_type
<del> column = @klass.column_types[association_key_name.to_s]
<del> column && column.type
<add> @klass.column_for_... | 2 |
Javascript | Javascript | allow array like objects to be filtered | 1b0d0fd8d00b42dffd798845fe0947d594372613 | <ide><path>src/ng/filter/filter.js
<ide> */
<ide> function filterFilter() {
<ide> return function(array, expression, comparator) {
<del> if (!isArray(array)) {
<add> if (!isArrayLike(array)) {
<ide> if (array == null) {
<ide> return array;
<ide> } else {
<ide> function filterFilter() {
<ide... | 2 |
Text | Text | update node version as specified in package.json | e942e1e988d71b86bade392ef53eeee108e92861 | <ide><path>DEVELOPERS.md
<ide> machine:
<ide> * [Git](http://git-scm.com/): The [Github Guide to
<ide> Installing Git][git-setup] is a good source of information.
<ide>
<del>* [Node.js v6.x (LTS)](http://nodejs.org): We use Node to generate the documentation, run a
<add>* [Node.js v8.x (LTS)](http://nodejs.org): We ... | 1 |
Javascript | Javascript | fix typo in const name | 0d95c7974c2bc44a891c3a8d159f4127ad2e7e92 | <ide><path>src/helpers/helpers.dom.js
<ide> function getContainerSize(canvas, width, height) {
<ide> const rect = container.getBoundingClientRect(); // this is the border box of the container
<ide> const containerStyle = getComputedStyle(container);
<ide> const containerBorder = getPositionedStyle(containerSty... | 1 |
Text | Text | add v3.11.0 to changelog | b9a7e031df1c588453feac1f9b003c95d0ed995b | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.11.0-beta.4 (June 17, 2019)
<del>
<del>- [#17971](https://github.com/emberjs/ember.js/pull/17971) [BUGFIX] Ensure query param only link-to's work in error states.
<del>
<del>### v3.11.0-beta.3 (June 10, 2019)
<del>
<del>- [#18080](https://github.com/emb... | 1 |
Go | Go | adjust waitfordetachment to also accept networkid | ddcc220eb770a032c0ef02b16aac65fb74e784b9 | <ide><path>libnetwork/cluster/provider.go
<ide> type Provider interface {
<ide> AttachNetwork(string, string, []string) (*network.NetworkingConfig, error)
<ide> DetachNetwork(string, string) error
<ide> UpdateAttachment(string, string, *network.NetworkingConfig) error
<del> WaitForDetachment(context.Context, string,... | 2 |
Python | Python | restore the 'jsonl' arg for init vectors | 59294e91aa7b5cade545be4ada36ee0bc400f8bd | <ide><path>spacy/cli/init_pipeline.py
<ide> def init_vectors_cli(
<ide> truncate: int = Opt(0, "--truncate", "-t", help="Optional number of vectors to truncate to when reading in vectors file"),
<ide> name: Optional[str] = Opt(None, "--name", "-n", help="Optional name for the word vectors, e.g. en_core_web_lg.v... | 1 |
PHP | PHP | add deprecation note | bd61959a9b38c59a3381b4326d48c23cfd4a11e2 | <ide><path>src/Controller/Component/FlashComponent.php
<ide> class FlashComponent extends Component
<ide> * The Session object instance
<ide> *
<ide> * @var \Cake\Http\Session
<add> * @deprecated 3.8.0 This property will be removed in 4.0.0 in favor of `getSession()` method.
<ide> */
<ide> p... | 1 |
Ruby | Ruby | update docs on dirty.rb | 4093238d0ab75403d6ec2b1a5300c80032e86c23 | <ide><path>activemodel/lib/active_model/dirty.rb
<ide> def initialize_dup(other) # :nodoc:
<ide> @mutations_from_database = nil
<ide> end
<ide>
<del> # Clears dirty data and moves +changes+ to +previously_changed+ and
<add> # Clears dirty data and moves +changes+ to +previous_changes+ and
<ide> # +... | 1 |
Javascript | Javascript | explain groupedrows option in #each helper | a5ee696e1f8ba277483c2e0ada3799ec880051ed | <ide><path>packages/ember-handlebars/lib/helpers/each.js
<ide> GroupedEach.prototype = {
<ide> Each itemController will receive a reference to the current controller as
<ide> a `parentController` property.
<ide>
<add> ### (Experimental) Grouped Each
<add>
<add> When used in conjunction with the experimental [gro... | 1 |
Ruby | Ruby | add homebrew_prefix/{,s}bin to path | b085da91c37e3002f6c5eea8e97d5ce0eabb97bf | <ide><path>Library/Homebrew/formula.rb
<ide> def run_post_install
<ide> @prefix_returns_versioned_prefix = true
<ide> build = self.build
<ide> self.build = Tab.for_formula(self)
<add> path_with_prefix = PATH.new(ENV["PATH"])
<add> .append(HOMEBREW_PREFIX/"bin")
<add> ... | 1 |
PHP | PHP | fix plugin loaded test | 234bdf0dfbde5d98551b4ab87d917769490252ad | <ide><path>tests/TestCase/Command/PluginLoadedCommandTest.php
<ide> * @since 3.1.9
<ide> * @license https://opensource.org/licenses/mit-license.php MIT License
<ide> */
<del>namespace Cake\Test\TestCase\Shell;
<add>namespace Cake\Test\TestCase\Command;
<ide>
<add>use Cake\Console\Command;
<ide> use Ca... | 1 |
Javascript | Javascript | use prop instead of attr to make git query happy | c9edfccbcf3b172228d3e2ba85c3d2cc3a4ebe7a | <ide><path>packages/ember-handlebars/tests/controls/select_test.js
<ide> test("select element should correctly initialize and update selectedIndex and bo
<ide> equal(selectEl.selectedIndex, 2, "Precond: The DOM reflects the correct selection");
<ide>
<ide> select.$('option:eq(2)').removeAttr('selected');
<del> se... | 1 |
Python | Python | add unit_divisor to downloads | 21468337673f6f93c1761580195e2cfa8d43774e | <ide><path>src/transformers/file_utils.py
<ide> def http_get(url: str, temp_file: BinaryIO, proxies=None, resume_size=0, headers
<ide> progress = tqdm(
<ide> unit="B",
<ide> unit_scale=True,
<add> unit_divisor=1024,
<ide> total=total,
<ide> initial=resume_size,
<ide> d... | 1 |
Ruby | Ruby | add cache to factory | 893474d0374125c832f06e3d4e90c847095e62e7 | <ide><path>Library/Homebrew/formulary.rb
<ide> module Formulary
<ide> extend Cachable
<ide>
<add> def self.enable_factory_cache!
<add> @factory_cache = true
<add> end
<add>
<add> def self.factory_cached?
<add> !@factory_cache.nil?
<add> end
<add>
<ide> def self.formula_class_defined?(path)
<ide> cach... | 1 |
Python | Python | pass sqlalchemy engine options to fab based ui | 91484b938f0b6f943404f1aeb3e63b61b808cfe9 | <ide><path>airflow/settings.py
<ide> def configure_orm(disable_connection_pool=False):
<ide> log.debug("Setting up DB connection pool (PID %s)", os.getpid())
<ide> global engine
<ide> global Session
<del> engine_args = {}
<add> engine_args = prepare_engine_args(disable_connection_pool)
<add>
<add> ... | 3 |
Python | Python | use theme colorful | 6e1e8e8915f991de8629013b6c70c88bb505e35e | <ide><path>docs/conf.py
<ide> }
<ide>
<ide> # The name of the Pygments (syntax highlighting) style to use.
<del>pygments_style = 'tango'
<add>pygments_style = 'colorful'
<ide>
<ide> # Add any paths that contain custom static files (such as style sheets) here,
<ide> # relative to this directory. They are copied after ... | 1 |
Go | Go | move parsedockerdaemonhost to opts/ package | 9b9959105499248ab6cdbfde2277ed1bd83233e3 | <ide><path>opts/hosts.go
<add>package opts
<add>
<add>import (
<add> "fmt"
<add> "net"
<add> "net/url"
<add> "runtime"
<add> "strconv"
<add> "strings"
<add>)
<add>
<add>var (
<add> // DefaultHTTPPort Default HTTP Port used if only the protocol is provided to -H flag e.g. docker daemon -H tcp://
<add> // TODO Windows. D... | 6 |
Javascript | Javascript | add more information to assertionerrors | 97c52ca5dc0b9c4df015dc36ef394ebe06ec00c6 | <ide><path>lib/assert.js
<ide> function expectedException(actual, expected, message, fn) {
<ide> generatedMessage = true;
<ide> message = 'The error is expected to be an instance of ' +
<ide> `"${expected.name}". Received `;
<add> // TODO: Special handle identical names.
<ide> if (isError... | 3 |
Python | Python | change keras to use dtensor public api | 55476a86ed482d2e1f473dc629848d2068225c73 | <ide><path>keras/dtensor/__init__.py
<ide>
<ide> # Conditional import the dtensor API, since it is currently broken in OSS.
<ide> if _DTENSOR_API_ENABLED:
<del> # pylint: disable=g-direct-tensorflow-import, g-import-not-at-top
<del> from tensorflow.dtensor import python as dtensor_api
<add> from tensorflow.compat.v... | 1 |
Javascript | Javascript | remove unused roottag | 30e9c40898a5b7b72cffd6dd214b062c323803f1 | <ide><path>Libraries/Inspector/Inspector.js
<ide> if (window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {
<ide> class Inspector extends React.Component {
<ide> props: {
<ide> inspectedViewTag: ?number,
<del> rootTag: ?number,
<ide> onRequestRerenderApp: (callback: (tag: ?number) => void) => void
<ide> };
<ide>
<id... | 5 |
Javascript | Javascript | use correct hash interface | a41a0fb799ea6a53002215401ecafa0bf74a23c8 | <ide><path>lib/AsyncDependenciesBlock.js
<ide> const DependenciesBlock = require("./DependenciesBlock");
<ide> /** @typedef {import("./ChunkGroup")} ChunkGroup */
<ide> /** @typedef {import("./Module")} Module */
<ide> /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
<del>/** @typedef {imp... | 4 |
Mixed | Ruby | add a truncate method to the connection | 9a4e183fe9f81365f7815c391512b3d46622d8c8 | <ide><path>activerecord/CHANGELOG.md
<add>* Add a truncate method to the connection.
<add>
<ide> * Don't autosave unchanged has_one through records.
<ide>
<ide> *Alan Kennedy*, *Steve Parrington*
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def exec_delete... | 6 |
Go | Go | remove stale files | 5713ca469490b829c190d9be706e25e4f3f0e4d4 | <ide><path>libnetwork/drivers/bridge/resolvconf.go
<del>package bridge
<del>
<del>import (
<del> "bytes"
<del> "io/ioutil"
<del> "regexp"
<del>)
<del>
<del>const (
<del> ipv4NumBlock = `(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`
<del> ipv4Address = `(` + ipv4NumBlock + `\.){3}` + ipv4NumBlock
<del>
<del> // This is not a... | 2 |
Python | Python | add missing closing parens | c76113b8f032b3c46ac88c2601915ea8e155c053 | <ide><path>keras/layers/normalization/batch_normalization.py
<ide> class BatchNormalizationBase(Layer):
<ide> - `beta` is a learned offset factor (initialized as 0), which
<ide> can be disabled by passing `center=False` to the constructor.
<ide>
<del> **During inference** (i.e. when using `evaluate()` or `predict... | 1 |
Text | Text | fix typos in readme | 7f5d6c9701859c56f9d39edcea0543f8f8565740 | <ide><path>README.md
<ide> Instructions:
<ide> 1. Obtain a copy of openssl-fips-x.x.x.tar.gz.
<ide> To comply with the security policy you must ensure the path
<ide> through which you get the file complies with the requirements
<del> for a "secure intallation" as described in section 6.6 in
<add> for a "secur... | 1 |
Python | Python | update ndarray.copy docstring | 36eb76c9ded81c6626a86aa06d137dd800350751 | <ide><path>numpy/core/_add_newdocs.py
<ide> 'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous,
<ide> 'C' otherwise. 'K' means match the layout of `a` as closely
<ide> as possible. (Note that this function and :func:`numpy.copy` are very
<del> similar, but have different defaul... | 1 |
Ruby | Ruby | convert gpg test to spec | 99da779434bda113f50f4a17880d1dfcacd93d24 | <ide><path>Library/Homebrew/test/gpg_spec.rb
<add>require "gpg"
<add>
<add>describe Gpg do
<add> subject { described_class }
<add>
<add> describe "::create_test_key" do
<add> it "creates a test key in the home directory" do
<add> skip "GPG Unavailable" unless subject.available?
<add>
<add> Dir.mktmpdir d... | 2 |
PHP | PHP | throw exception if padding is invalid | bb0967cceba9ed0a0ba05ca92929a96f2cd8d822 | <ide><path>laravel/crypter.php
<ide> protected static function unpad($value)
<ide> {
<ide> $pad = ord($value[($length = Str::length($value)) - 1]);
<ide>
<del> return substr($value, 0, $length - $pad);
<add> if ($pad and $pad < static::$block)
<add> {
<add> // If the correct padding is present on the string, w... | 1 |
Javascript | Javascript | fix logic for updating foldable range cache | c9a4bb4245f1252fb30e1ea1cf646ac5374a26d7 | <ide><path>src/tree-sitter-language-mode.js
<ide> class TreeSitterLanguageMode {
<ide> this.emitRangeUpdate = this.emitRangeUpdate.bind(this)
<ide>
<ide> this.subscription = this.buffer.onDidChangeText(({changes}) => {
<del> for (let i = changes.length - 1; i >= 0; i--) {
<add> for (let i = 0, {lengt... | 1 |
Javascript | Javascript | move string_creation into misc | 2a2942bd7f39f687e61188fc593ab9d23ceff1c8 | <ide><path>benchmark/misc/string_creation.js
<add>
<add>var common = require('../common.js');
<add>var bench = common.createBenchmark(main, {
<add> millions: [100]
<add>})
<add>
<add>function main(conf) {
<add> var n = +conf.millions * 1e6;
<add> bench.start();
<add> var s;
<add> for (var i = 0; i < n; i++) {
<add... | 2 |
Javascript | Javascript | fix persistent caching for container modules | a92189e26d62401ca13d9e124e6af94d252c6005 | <ide><path>lib/container/OverridableModule.js
<ide> const OverridableOriginalDependency = require("./OverridableOriginalDependency")
<ide> /** @typedef {import("../Compilation")} Compilation */
<ide> /** @typedef {import("../Module").CodeGenerationContext} CodeGenerationContext */
<ide> /** @typedef {import("../Module"... | 7 |
Javascript | Javascript | remove reset password endpoint | 5e86b25a690a326b4aad5d0b90d3ce7bd91df9d2 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> var mailOptions = {
<ide> type: 'email',
<ide> to: user.email,
<del> from: 'team@freecodecamp.org',
<add> from: getEmailSender(),
<ide> subject: 'Welcome to freeCodeCamp!',
<ide> protocol: getProtocol(),... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.