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 | remove duplicate "the" | bf82c8a7089f36d740336079a2ec7f7498b902c9 | <ide><path>src/loader.js
<ide> function setupModuleLoader(window) {
<ide> *
<ide> * @param {!string} name The name of the module to create or retrieve.
<ide> * @param {Array.<string>=} requires If specified then new module is being created. If
<del> * unspecified then the the module is being r... | 1 |
PHP | PHP | remove wrong return | 1caf1cac4bbcd5870b9cee200abee0ecf8c43d42 | <ide><path>lib/Cake/Core/Configure.php
<ide> public static function load($key, $config = 'default', $merge = true) {
<ide> }
<ide> }
<ide>
<del> return self::write($values);
<add> self::write($values);
<ide> }
<ide>
<ide> /** | 1 |
Python | Python | remove duplicate code on dbapi hook | f248a215aa341608e2bc7d9083ca9d18ab756ac4 | <ide><path>airflow/hooks/dbapi.py
<ide> def test_connection(self):
<ide> """Tests the connection by executing a select 1 query"""
<ide> status, message = False, ''
<ide> try:
<del> with closing(self.get_conn()) as conn:
<del> with closing(conn.cursor()) as cur:
<del> ... | 1 |
Python | Python | add a test case for it | 0f235de8573d1070401244c1270d8d25e99c573d | <ide><path>libcloud/test/storage/test_s3.py
<ide> def upload_file(self, object_name=None, content_type=None,
<ide> finally:
<ide> self.driver_type._upload_object = old_func
<ide>
<add> def test_upload_object_invalid_hash_kms_encryption(self):
<add> # Hash check should be skipped when AWS ... | 1 |
PHP | PHP | use new style route placeholders | c6b9a2eb1be5760c1800cc48ec478c059b1992ac | <ide><path>src/Routing/Route/Route.php
<ide> class Route
<ide> {
<ide> /**
<ide> * An array of named segments in a Route.
<del> * `/:controller/:action/:id` has 3 key elements
<add> * `/{controller}/{action}/{id}` has 3 key elements
<ide> *
<ide> * @var array
<ide> */ | 1 |
Javascript | Javascript | update showcase for chillin | 4b332ee53fc117ec48b7ae41717b11e27fb4aa15 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://play.google.com/store/apps/details?id=com.cbssports.fantasy.franchisefootball2015',
<ide> author: 'CBS Sports',
<ide> },
<add> {
<add> name: 'Chillin\'',
<add> icon: 'http://www.chillin.io/img/logo175x175.png',
<add... | 1 |
Text | Text | add item to eslint hooks plugin changelog | e936034eecf3d882cb133a11a1b4afd98d0195c5 | <ide><path>packages/eslint-plugin-react-hooks/CHANGELOG.md
<add>## 4.0.1
<add>* Declare support for ESLint 7. ([@MichaelDeBoey](https://github.com/MichaelDeBoey) in [#18878](https://github.com/facebook/react/pull/18878))
<add>
<ide> ## 4.0.0
<ide>
<ide> * **New Violations:** Consider `PascalCase.useFoo()` calls as Hoo... | 1 |
PHP | PHP | allow registration of guesser callback' | 150a63d491c89f73a8153c4548406e776e5f150a | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> class Gate implements GateContract
<ide> */
<ide> protected $stringCallbacks = [];
<ide>
<add> /**
<add> * The callback to be used to guess policy names.
<add> *
<add> * @var callable|null
<add> */
<add> protected $guessPolicyNamesUsin... | 1 |
Text | Text | add deprecation note to blog post and changelog | 085bf8635c40e78b4650e3dc4bffc8f96d3a77a7 | <ide><path>CHANGELOG.md
<ide>
<ide> #### Breaking Changes
<ide>
<add>* Deprecated patterns that warned in 0.12 no longer work: most prominently, calling component classes without using JSX or React.createElement and using non-component functions with JSX or createElement
<ide> * Mutating `props` after an element is c... | 2 |
Javascript | Javascript | use relative paths in entry files | 45381cffe54447d5eb781f49a61ffdc120056307 | <ide><path>src/react-entry.js
<del>export * from 'lib/react';
<add>export * from './lib/react';
<ide><path>src/react-native-entry.js
<del>export * from 'lib/react-native';
<add>export * from './lib/react-native'; | 2 |
Text | Text | add a missing slash | 34830a05c940ec2bbabe3358df50c2d48593ca74 | <ide><path>readme.md
<ide> export default () => (
<ide> // pages/index.js
<ide> import Link from 'next/link'
<ide> export default () => (
<del> <div>Click <Link href='/about'><img src="/static/image.png"></Link></div>
<add> <div>Click <Link href='/about'><img src="/static/image.png" /></Link></div>
<ide> )
<ide> ```
... | 1 |
Text | Text | add initial version of maintaining-http.md | ac3c33c1646bf46104c15ae035982c06364da9b8 | <ide><path>doc/contributing/maintaining-http.md
<add># Maintaining HTTP
<add>
<add>Support for HTTP is a key priority in terms of ensuring the continued success of
<add>Node.js as captured in the project's
<add>[technical priorities](https://github.com/nodejs/node/blob/HEAD/doc/contributing/technical-priorities.md).
<a... | 1 |
Java | Java | update javadoc in defaultresponseerrorhandler | 4978eeff7fe399dff75a800679e50fee4afba130 | <ide><path>spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java
<ide> public void handleError(ClientHttpResponse response) throws IOException {
<ide> }
<ide>
<ide> /**
<del> * Return error message with details from the response body, possibly truncated:
<add> * Return error mess... | 1 |
PHP | PHP | modify mssql driver order | fe290321349916223a800bf2f300d818d94d537a | <ide><path>src/Illuminate/Database/Connectors/SqlServerConnector.php
<ide> protected function getDsn(array $config)
<ide> // First we will create the basic DSN setup as well as the port if it is in
<ide> // in the configuration options. This will give us the basic DSN we will
<ide> // need to es... | 2 |
Javascript | Javascript | update alert style | b7843c6047484412c21803cf4472857a411239b3 | <ide><path>server/middlewares/email-not-verified-notice.js
<ide> export default function emailNotVerifiedNotice() {
<ide> const { user } = req;
<ide> if (user && (!user.email || user.email === '' || !user.emailVerified)) {
<ide> req.flash(
<del> 'danger',
<add> 'info',
<ide> ... | 1 |
Javascript | Javascript | use array.find vs array.filter()[0] | 529b0ffe94da05f93345c8edcde406ea899c7c95 | <ide><path>lib/optimize/ChunkModuleIdRangePlugin.js
<ide> class ChunkModuleIdRangePlugin {
<ide> const options = this.options;
<ide> compiler.plugin("compilation", (compilation) => {
<ide> compilation.plugin("module-ids", (modules) => {
<del> const chunk = this.chunks.filter((chunk) => {
<del> return chun... | 1 |
Ruby | Ruby | prefer each instead of for in | ec1993c33f8b1493cc4f55102d9c4dee178306a2 | <ide><path>activemodel/lib/active_model/observing.rb
<ide> def add_observer(observer)
<ide>
<ide> # Notify list of observers of a change.
<ide> def notify_observers(*arg)
<del> for observer in observer_instances
<del> observer.update(*arg)
<del> end
<add> observer_instances.ea... | 1 |
Python | Python | move source, info, and who to numpy | db349674856abc7b2652546e937c85dbbbebbf9c | <ide><path>numpy/lib/utils.py
<ide> import sys, os
<add>import inspect
<add>import types
<add>import pydoc
<ide> from numpy.core.numerictypes import obj2sctype
<ide> from numpy.core.multiarray import dtype
<add>from numpy.core import product, ndarray
<ide>
<ide> __all__ = ['issubclass_', 'get_numpy_include', 'issubsct... | 5 |
PHP | PHP | shorten behavior methods | 0fa5a8428bbe232dea75f595019f52280c702aa1 | <ide><path>src/ORM/Behavior.php
<ide> public function implementedEvents() {
<ide> * @return array
<ide> */
<ide> public function implementedFinders() {
<del> if (isset($this->_config['implementedFinders'])) {
<del> return $this->_config['implementedFinders'];
<add> $methods = $this->config('implementedFinders');... | 1 |
Javascript | Javascript | remove cache.loglevel in test cases | 6e2d4e0a1664e795359b7a437553e4cebb3761c2 | <ide><path>test/TestCases.template.js
<ide> const describeCases = config => {
<ide> __filename: "mock"
<ide> },
<ide> cache: config.cache && {
<del> loglevel: "warning",
<ide> cacheDirectory,
<ide> ...config.cache
<ide> }, | 1 |
Go | Go | fix error-type for starting a running container | c030885e7afef7ef14ba8709837a4a4e8e2127d8 | <ide><path>libcontainerd/local/local_windows.go
<ide> func (c *client) Start(_ context.Context, id, _ string, withStdin bool, attachSt
<ide> case ctr == nil:
<ide> return -1, errors.WithStack(errdefs.NotFound(errors.New("no such container")))
<ide> case ctr.init != nil:
<del> return -1, errors.WithStack(errdefs.Co... | 1 |
Text | Text | unify place of stability notes | d5882a95449b7970a9c928a3e6076e09c019212a | <ide><path>doc/api/assert.md
<ide> changes:
<ide> deprecated and emits a warning.
<ide> -->
<ide>
<add>> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
<add>> functions instead.
<add>
<ide> * `actual` {any}
<ide> * `expected` {any}
<ide> * `message` {string|Error}
<ide> * `ope... | 6 |
Javascript | Javascript | use common.fixtures module | b5e8ae4ff8f869ac0b38b44049d992fdbfb21331 | <ide><path>test/parallel/test-fs-buffer.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide> assert.throws(() => {
<ide> fs.accessS... | 1 |
Javascript | Javascript | use consistent dates in inspect() | 93d6b5fb68eae8b0912579980e17ebf0723ab2cc | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes) {
<ide> return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
<ide> }
<ide> if (isDate(value)) {
<del> return ctx.stylize(Date.prototype.toString.call(value), 'date');
<add> return ctx.stylize(Date.prototy... | 2 |
PHP | PHP | fix singularization of databases | 13468937cce7869990d017eadfecf6e5a859cc99 | <ide><path>lib/Cake/Test/Case/Utility/InflectorTest.php
<ide> public function testInflectingSingulars() {
<ide> $this->assertEquals(Inflector::singularize('cafes'), 'cafe');
<ide> $this->assertEquals(Inflector::singularize('roofs'), 'roof');
<ide> $this->assertEquals(Inflector::singularize('foes'), 'foe');
<add> ... | 2 |
Javascript | Javascript | flowify some libraries | 18b6d5c20d577888cdd8fbe65eb8e14ddc3547d9 | <ide><path>Libraries/BatchedBridge/BatchedBridgedModules/NativeModules.js
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<ide> * @providesModule NativeModules
<add> * @flow
<ide> */
<ide> 'use strict';
<ide>
<ide><path>Libraries/BatchedBridge/BatchedBridgedModules/RCTAlert... | 7 |
PHP | PHP | remove the div option from submit() | 35e01a131f558af6573e3001b8b5289ead11ecfc | <ide><path>src/View/Helper/FormHelper.php
<ide> class FormHelper extends Helper {
<ide> 'formGroup' => '{{label}}{{input}}',
<ide> 'checkboxFormGroup' => '{{input}}{{label}}',
<ide> 'groupContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>',
<del> 'groupContainerError' => '<div class="input ... | 2 |
Text | Text | translate angular resources to pt-br | 98199763f686e9d92e72d55a731814152690caf3 | <ide><path>guide/portuguese/angular/angular-resources/index.md
<ide> ---
<ide> title: Angular Resources
<del>localeTitle: Recursos angulares
<add>localeTitle: Recursos para Angular
<ide> ---
<del>Uma coleção de recursos angulares úteis
<add>Uma coleção de recursos úteis para Angular
<ide>
<ide> ## Angular 1.x
<ide>
<... | 1 |
Text | Text | remove travis status image | 58159e308b2356265faed168909122c4ef0f61d4 | <ide><path>README.md
<del>Evented I/O for V8 javascript. [](http://travis-ci.org/joyent/node)
<add>Evented I/O for V8 javascript.
<ide> ===
<ide>
<ide> ### To build: | 1 |
Ruby | Ruby | use arg size for parallel iteration | b1051c5dfa0a5d9f7bb672ce9223167d1b5415a9 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def optimize_routes_generation?(t)
<ide>
<ide> def parameterize_args(args)
<ide> params = {}
<del> @required_parts.zip(args.map(&:to_param)) { |k,v| params[k] = v }
<add> @arg_size.times { |i| param... | 1 |
Javascript | Javascript | fix incorrect cast | 9735d25967126e9f4d22a7d90d50ea40169b55a6 | <ide><path>lib/stats/DefaultStatsFactoryPlugin.js
<ide>
<ide> "use strict";
<ide>
<add>const ModuleDependency = require("../dependencies/ModuleDependency");
<ide> const formatLocation = require("../formatLocation");
<ide> const { LogType } = require("../logging/Logger");
<ide> const AggressiveSplittingPlugin = requir... | 2 |
Python | Python | add unittests for the endpoint decorator | 8a73097fe528430eb77ac26c81ba85229a8af553 | <ide><path>tests/flask_tests.py
<ide> def index():
<ide> assert c.get('/foo/').data == 'index'
<ide> assert c.get('/foo/bar').data == 'bar'
<ide>
<add> def test_endpoint_decorator(self):
<add> from werkzeug.routing import Submount, Rule
<add> app = flask.Flask(__name__)
<add> ap... | 1 |
Ruby | Ruby | update collectionproxy#clear documentation | 8281194fee1a049826c50f9e0a095ea1abb91277 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> def <<(*records)
<ide> end
<ide> alias_method :push, :<<
<ide>
<del> # Removes every object from the collection. This does not destroy
<del> # the objects, it sets their foreign keys to +NULL+. Returns +self+
<del> ... | 1 |
Javascript | Javascript | expand test coverage of fs.js | efbda74686e51525517ec2f89b75039d1db57e59 | <ide><path>test/parallel/test-fs-truncate-sync.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const path = require('path');
<add>const fs = require('fs');
<add>const tmp = common.tmpDir;
<add>
<add>common.refreshTmpDir();
<add>
<add>const filename = path.reso... | 2 |
Text | Text | add note about fs.close() about undefined behavior | b376965e503f7cdfc5b2888bd1425f44f79013a9 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> Asynchronous close(2). No arguments other than a possible exception are given
<ide> to the completion callback.
<ide>
<add>Calling `fs.close()` on any file descriptor (`fd`) that is currently in use
<add>through any other `fs` operation may lead to undefined behavior.
<add... | 1 |
Ruby | Ruby | skip casks before extracting | bf46814dddade04338d85aea51d9446830c01e0a | <ide><path>Library/Homebrew/dev-cmd/bump-unversioned-casks.rb
<ide> def self.bump_unversioned_casks
<ide>
<ide> ohai "Checking #{cask.full_name}"
<ide>
<add> unless single_app_cask?(cask) || single_pkg_cask?(cask)
<add> opoo "Skipping, cask #{cask} it not a single-app or PKG cask."
<add> next... | 1 |
Python | Python | add timeout to outdated too | 331f2372a7b28bbaf2c64f9bc9c142122c981910 | <ide><path>glances/outdated.py
<ide> def _update_pypi_version(self):
<ide> self.data[u'refresh_date'] = datetime.now()
<ide>
<ide> try:
<del> res = requests.get(self.PYPI_API_URL)
<add> res = requests.get(self.PYPI_API_URL, timeout=3)
<ide> except Exception as e:
<ide> ... | 1 |
Ruby | Ruby | add some attribute readers to migration module | 25647f70215e38635d16038e71f47730f2717021 | <ide><path>railties/lib/generators/active_record/migration/templates/migration.rb
<del>class <%= @migration_class_name %> < ActiveRecord::Migration
<add>class <%= migration_class_name %> < ActiveRecord::Migration
<ide> def self.up<% attributes.each do |attribute| %>
<ide> <%= migration_action %>_column :<%= table... | 4 |
PHP | PHP | apply parameters to entire localization array | 9e25f7d21721a0c13d04679fa59a68a8c788fdbc | <ide><path>src/Illuminate/Translation/Translator.php
<ide> protected function getLine($namespace, $group, $locale, $item, array $replace)
<ide> if (is_string($line)) {
<ide> return $this->makeReplacements($line, $replace);
<ide> } elseif (is_array($line) && count($line) > 0) {
<add> ... | 1 |
PHP | PHP | fix method name in shouldbestrict method | 1066e3955bfd0a7877707786efbf4fda9d450502 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function shouldBeStrict(bool $shouldBeStrict = true)
<ide>
<ide> static::preventLazyLoading();
<ide> static::preventSilentlyDiscardingAttributes();
<del> static::preventsAccessingMissingAttributes();
<add> static::p... | 1 |
Mixed | Java | implement lazy discovery for viewmanagers | da30b047037a1b4a97159b22abfd5244ecfaee19 | <ide><path>Libraries/ReactNative/UIManager.js
<ide> if (Platform.OS === 'ios') {
<ide> });
<ide> }
<ide> });
<del>} else if (
<del> Platform.OS === 'android' &&
<del> UIManager.AndroidLazyViewManagersEnabled
<del>) {
<add>} else if (Platform.OS === 'android' && UIManager.ViewManagerNames) {
<ide> UIMana... | 24 |
Java | Java | change spel equality operators to use .equals | 2a05e6afa116ab56378521b5e8c834ba92c25b85 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/OpEQ.java
<ide> */
<ide> public class OpEQ extends Operator {
<ide>
<add>
<ide> public OpEQ(int pos, SpelNodeImpl... operands) {
<ide> super("==", pos, operands);
<ide> }
<ide> public BooleanTypedValue getValueInternal(ExpressionSt... | 6 |
Text | Text | fix heading level of logging drivers | f855d5dde70f1f3e4390e53576a3ca9b5a9db8ba | <ide><path>docs/sources/reference/run.md
<ide> familiar with using LXC directly.
<ide>
<ide> You can specify a different logging driver for the container than for the daemon.
<ide>
<del>### Logging driver: none
<add>#### Logging driver: none
<ide>
<ide> Disables any logging for the container. `docker logs` won't be ... | 1 |
Text | Text | add fanduel to the list of users in the wild. | 6788428a8636e7ab15e556f8e48bcd82a1a5470e | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Etsy](https://www.etsy.com) [[@mchalek](https://github.com/mchalek)]
<ide> 1. [Everlane](https://everlane.com) [[@NickBenthem](https://github.com/NickBenthem)]
<ide> 1. [Experity (formerly DocuTAP)](https://www.experityhealth.com/) [[@clon... | 1 |
Python | Python | fix non-float32 efficientnet calls | 68fef62d2788cea69f75101447af2bcb3405186c | <ide><path>keras/applications/efficientnet.py
<ide> def round_repeats(repeats):
<ide> # normalize the input, we need to divide another sqrt(var) to match the
<ide> # original implementation.
<ide> # See https://github.com/tensorflow/tensorflow/issues/49930 for more details
<del> x = x / tf.math.sqrt(IMAG... | 1 |
PHP | PHP | add supported type | 28908d83d9f3b078ae01ed21a42b87edf1fd393d | <ide><path>config/hashing.php
<ide> | passwords for your application. By default, the bcrypt algorithm is
<ide> | used; however, you remain free to modify this option if you wish.
<ide> |
<del> | Supported: "bcrypt", "argon"
<add> | Supported: "bcrypt", "argon", "argon2id"
<ide> |
<ide> */
<id... | 1 |
Python | Python | rephrase the start_from_epoch arg documantation | d568b3071d5a1475596fb2f9eafd6f08a8937371 | <ide><path>keras/callbacks.py
<ide> class EarlyStopping(Callback):
<ide> of the performance relative to the `baseline`. If no epoch
<ide> improves on `baseline`, training will run for `patience`
<ide> epochs and restore weights from the best epoch in that set.
<del> start_from_epoch: ... | 1 |
Ruby | Ruby | fix rails dbconsole for jdbcmysql adapter | dac5399af04c84c6021ee2bc169a3d17944a5fa2 | <ide><path>railties/lib/rails/commands/dbconsole.rb
<ide> def start
<ide> ENV['RAILS_ENV'] = options[:environment] || environment
<ide>
<ide> case config["adapter"]
<del> when /^mysql/
<add> when /^(jdbc)?mysql/
<ide> args = {
<ide> 'host' => '--host',
<ide> 'port... | 1 |
Python | Python | fix documentation for request._authenticate | fe95ab675bef1b185324be4b1b7fc7100c41c823 | <ide><path>rest_framework/request.py
<ide> def _authenticate(self):
<ide> """
<ide> Attempt to authenticate the request using each authentication instance
<ide> in turn.
<del> Returns a three-tuple of (authenticator, user, authtoken).
<ide> """
<ide> for authenticator in s... | 1 |
Python | Python | improve code quality #820 | 89d3cb09d883e552a894ebfcd7a66758ce042d74 | <ide><path>glances/compat.py
<ide> def is_admin():
<ide> else:
<ide> # Check for root on Posix
<ide> return os.getuid() == 0
<add>
<add>
<add>def key_exist_value_not_none(k, d):
<add> # Return True if:
<add> # - key k exists
<add> # - d[k] is not None
<add> return k in d and d[k] is not ... | 2 |
Ruby | Ruby | move misplaced test | df2d96a7f05aebca3e9d2367c2a248125b24dca6 | <add><path>actionmailer/test/adv_attr_test.rb
<del><path>actionpack/test/adv_attr_test.rb
<del>require File.dirname(__FILE__) + '/abstract_unit'
<add>require 'abstract_unit'
<ide> require 'action_mailer/adv_attr_accessor'
<ide>
<ide> class AdvAttrTest < Test::Unit::TestCase
<ide> def test_adv_attr
<ide>
<ide> ass... | 1 |
Ruby | Ruby | add title for key lengths for multiple keys | 5df94c6ffd82a7d42f36e36892281a4b28ce2ebc | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def rename_column(table_name, column_name, new_column_name)
<ide> #
<ide> # CREATE INDEX by_name ON accounts(name(10))
<ide> #
<add> # ====== Creating an index with specific key lengths for multipl... | 1 |
Mixed | Python | update example for compatibility | 2e81b9d8d76a4d41a13f74eb5e0f4a65d8143cab | <ide><path>examples/summarization/bart/README.md
<del>### Get the CNN/Daily Mail Data
<add>### Get the CNN Data
<ide> To be able to reproduce the authors' results on the CNN/Daily Mail dataset you first need to download both CNN and Daily Mail datasets [from Kyunghyun Cho's website](https://cs.nyu.edu/~kcho/DMQA/) (the... | 3 |
Javascript | Javascript | use object assignation for getstate() | 35f68af6e7e92bfb8b082fe3ec645e1c52842be5 | <ide><path>examples/shopping-cart/src/actions/index.js
<ide> export const addToCart = productId => (dispatch, getState) => {
<ide> }
<ide> }
<ide>
<del>export const checkout = (products) => (dispatch, getState) => {
<del> const cart = getState().cart
<add>export const checkout = products => (dispatch, getState) => ... | 1 |
Text | Text | fix documentation for release-checklist | 586e72218ceeb90d31900af198d5c865e4b3e6e4 | <ide><path>hack/RELEASE-CHECKLIST.md
<ide> If you don't have an upstream remote, you can add one easily using something
<ide> like:
<ide>
<ide> ```bash
<add>export GITHUBUSER="YOUR_GITHUB_USER"
<ide> git remote add origin https://github.com/dotcloud/docker.git
<del>git remote add YOURUSER git@github.com:YOURUSER/docke... | 1 |
Python | Python | add test for the default error state | 7129ec3ff04e3e598bc18c2323daec78c5521770 | <ide><path>numpy/core/tests/test_errstate.py
<ide> from numpy.testing import *
<ide>
<ide> class TestErrstate(TestCase):
<add> def test_default(self):
<add> err = geterr()
<add> self.assertEqual(err, dict(
<add> divide='warn',
<add> invalid='warn',
<add> over='warn',
<... | 1 |
Ruby | Ruby | fix rubocop violations | b9bee5e895e218b17a5f4ad72c3cbf6204fa4145 | <ide><path>activerecord/test/schema/postgresql_specific_schema.rb
<ide> t.oid :obj_id
<ide> end
<ide>
<del> drop_table 'postgresql_timestamp_with_zones', if_exists: true
<del> drop_table 'postgresql_partitioned_table', if_exists: true
<del> drop_table 'postgresql_partitioned_table_parent', if_exists: true
<ad... | 1 |
Javascript | Javascript | add component schema for modal | 8e6031cac7a3107e89591060d10883d410acbc07 | <ide><path>Libraries/Modal/ModalSchema.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> * @format
<add> * @flow
<add> */
<add>'use strict';
<a... | 1 |
PHP | PHP | apply fixes from styleci | 1f1540ab92effba1025b2e74b358c3e75ecf2ac6 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> public function if($name, Closure $callback)
<ide> });
<ide>
<ide> $this->directive('end'.$name, function () {
<del> return "<?php endif; ?>";
<add> return '<?php endif; ?>';
<ide> });
<ide> }
<ide> | 1 |
Java | Java | update copyright date | 411539ffef01ab5559cf43db0f8118b7e4d10060 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 1 |
PHP | PHP | remove old code that was never documented or used | ac5c52b2e108d2b2eb4bc84d2d7b08c2237c09b7 | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> abstract class TestCase extends PHPUnit_Framework_TestCase
<ide> {
<ide> use ApplicationTrait, AssertionsTrait, CrawlerTrait;
<ide>
<del> /**
<del> * The Eloquent factory instance.
<del> *
<del> * @var \Illuminate\Database\Eloquent\Fact... | 1 |
Javascript | Javascript | fix outbound link [ci skip] | 86510227749be0c0db156672fc8f0d8f5401505f | <ide><path>website/src/components/link.js
<ide> import React, { Fragment } from 'react'
<ide> import PropTypes from 'prop-types'
<ide> import { Link as GatsbyLink } from 'gatsby'
<del>import { OutboundLink } from 'gatsby-plugin-google-analytics'
<ide> import classNames from 'classnames'
<ide>
<ide> import Icon from '.... | 1 |
Text | Text | update nlp readme to introduce major components | daa1408c6f3fc01865f64438ce148eaca4c67003 | <ide><path>official/nlp/README.md
<del># TensorFlow Natural Language Processing Modelling Toolkit
<add># TensorFlow NLP Modelling Toolkit
<ide>
<del>tensorflow/models/official/nlp provides a [modeling library](modeling) for constructing
<del>NLP model achitectures, as well as TF2 reference implementations for
<del>sta... | 1 |
Javascript | Javascript | fix a bug and speed up graycs_getrgbbuffer | 80304b69761910a43a1281b042a424b237ee7681 | <ide><path>pdf.js
<ide> var DeviceGrayCS = (function() {
<ide> },
<ide> getRgbBuffer: function graycs_getRgbBuffer(input, bits) {
<ide> var scale = 255 / ((1 << bits) - 1);
<del> var length = input.length * 3;
<del> var rgbBuf = new Uint8Array(length);
<del> for (var i = 0, j = 0; i < lengt... | 1 |
Text | Text | fix typo in buffer.md | 4f11b8b8ae06bf42b483ec7da69ccf7930291056 | <ide><path>doc/api/buffer.md
<ide> console.log(uint32array);
<ide>
<ide> ```js
<ide> const buf = Buffer.from('hello', 'utf16le');
<del>const uint16arr = new Uint16Array(
<add>const uint16array = new Uint16Array(
<ide> buf.buffer,
<ide> buf.byteOffset,
<ide> buf.length / Uint16Array.BYTES_PER_ELEMENT); | 1 |
PHP | PHP | allow define hidden/visible options dynamically | 7667cd511ee7982a7b8bb60234856482c141dfb5 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function relationsToArray()
<ide>
<ide> foreach ($this->getArrayableRelations() as $key => $value)
<ide> {
<del> if (in_array($key, $this->hidden)) continue;
<add> if (in_array($key, $this->getHidden())) continue;
<ide>
<ide> // If the valu... | 2 |
Python | Python | support online masking for xlnet | 6cd426d917d10f3f334cb009d12db527ef81750f | <ide><path>official/nlp/xlnet/data_utils.py
<ide> # from __future__ import google_type_annotations
<ide> from __future__ import print_function
<ide>
<add>import collections
<ide> import json
<ide> import os
<ide> from absl import logging
<ide>
<add>import numpy as np
<ide> import tensorflow as tf
<ide>
<add>
<ide> s... | 2 |
Ruby | Ruby | add missing url escapes | b80af7837aea59188b9fffc7944dd0c2ecc93a42 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide> ]
<ide> elsif new_mirrors
<ide> replacement_pairs << [
<del> /^( +)(mirror \"#{new_mirrors.last}\"\n)/m,
<add> /^( +)(mirror \"#{Regexp.escape(new_mirrors.last)}\"\n)/m,
<ide> ... | 1 |
Javascript | Javascript | fix duplicate test name | a1aa67ab3db06cb2018f482a721324f38f240529 | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> test("The Homepage with explicit template name in renderTemplate", function() {
<ide> equal(Ember.$('h3:contains(Megatroll)', '#qunit-fixture').length, 1, "The homepage template was rendered");
<ide> });
<ide>
<del>test("The Homepage with explicit template ... | 1 |
Text | Text | add notes on preparing training data to docs | 4ed5d9ad5ac7e1e7c5f22fc8fa1d784052b45249 | <ide><path>website/docs/api/data-formats.md
<ide> CLI [`train`](/api/cli#train) command. The built-in
<ide> of the `.conllu` format used by the
<ide> [Universal Dependencies corpora](https://github.com/UniversalDependencies).
<ide>
<add>Note that while this is the format used to save training data, you do not have
<ad... | 2 |
Python | Python | add parametrize decorator for nose | 0ad966df24b514f0713e2f32e9b6baa4ad883d5f | <ide><path>numpy/testing/nose_tools/decorators.py
<ide> def _deprecated_imp(*args, **kwargs):
<ide> else:
<ide> return f
<ide> return deprecate_decorator
<add>
<add>
<add>def parametrize(vars, input):
<add> """
<add> Pytest compatibility class. This implements the simplest level of
<add> ... | 2 |
Text | Text | fix capitalization of project name in readme.md | a31bf266c19885cd4895296e9fb3a9d58a3e077c | <ide><path>README.md
<ide> yarn add webpack --dev
<ide>
<ide> <h2 align="center">Introduction</h2>
<ide>
<del>> This README reflects Webpack v2.x and v3.x. The Webpack v1.x documentation has been deprecated and deleted.
<add>> This README reflects webpack v2.x and v3.x. The webpack v1.x documentation has been depreca... | 1 |
Go | Go | add missing lock in processevent | 6c03aa317404703a300ef25c3b5dc18d8e9cc64c | <ide><path>daemon/monitor.go
<ide> func (daemon *Daemon) ProcessEvent(id string, e libcontainerd.EventType, ei libc
<ide> daemon.LogContainerEvent(c, "oom")
<ide> case libcontainerd.EventExit:
<ide> if int(ei.Pid) == c.Pid {
<add> c.Lock()
<ide> _, _, err := daemon.containerd.DeleteTask(context.Background(), ... | 1 |
Javascript | Javascript | add test for cluster.worker.destroy() | 9c992bdb752063913067feb533cd3db37d2e4d01 | <ide><path>test/simple/test-cluster-worker-destroy.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software wit... | 1 |
PHP | PHP | remove duplication of throws | bb821a426d0589263397144340ae0864978c99d6 | <ide><path>lib/Cake/Configure/IniReader.php
<ide> public function __construct($path = null, $section = null) {
<ide> * @return array Parsed configuration values.
<ide> * @throws ConfigureException when files don't exist.
<ide> * Or when files contain '..' as this could lead to abusive reads.
<del> * @throws Configu... | 1 |
Javascript | Javascript | remove unnecessary seq | cda7725188b745115879486303331e44fb55f1e1 | <ide><path>src/Map.js
<ide> class HashCollisionNode {
<ide> }
<ide>
<ide> get(shift, hash, key, notFound) {
<del> var idx = Sequence(this.keys).indexOf(key);
<add> var idx = this.keys.indexOf(key);
<ide> return idx === -1 ? notFound : this.values[idx];
<ide> }
<ide> | 1 |
Javascript | Javascript | add nodes to documentfragments before attaching | 1f2d9b208d72b0461e2550c664c26728331d028e | <ide><path>src/renderers/dom/client/utils/DOMLazyTree.js
<ide> function insertTreeChildren(tree) {
<ide>
<ide> var insertTreeBefore = createMicrosoftUnsafeLocalFunction(
<ide> function(parentNode, tree, referenceNode) {
<del> parentNode.insertBefore(tree.node, referenceNode);
<del> insertTreeChildren(tree);
<a... | 1 |
Ruby | Ruby | push more mutations outside the factory method | 86588f9bc4d6214a8e625f97fcadb246592c41c0 | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def self.build(model, name, scope, options, &block)
<ide> reflection = builder.build
<ide> builder.define_accessors model.generated_feature_methods
<ide> builder.define_callbacks model, reflection
<add> builder.de... | 2 |
Text | Text | add artelys to the list of airflow users | aa00e9bcd4ec16f42338b30d29e87ccda8eecf82 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Apigee](https://apigee.com) [[@btallman](https://github.com/btallman)]
<ide> 1. [Arquivei](https://www.arquivei.com.br/) [[@arquivei](https://github.com/arquivei)]
<ide> 1. [Arrive](https://www.arrive.com/)
<add>1. [Artelys](https://www.ar... | 1 |
Go | Go | retrieve all filesystems on startup at once | bad25ccf978b56da6fa181439504ab33906524cd | <ide><path>daemon/graphdriver/zfs/zfs.go
<ide> func Init(base string, opt []string) (graphdriver.Driver, error) {
<ide>
<ide> zfs.SetLogger(new(Logger))
<ide>
<del> dataset, err := zfs.GetDataset(options.fsName)
<add> filesystems, err := zfs.Filesystems(options.fsName)
<ide> if err != nil {
<del> return nil, fmt.E... | 1 |
Python | Python | fix bug in pegasus converter | 0ec63afec2558d76312bf6fddc3f171ceebfa584 | <ide><path>src/transformers/convert_pegasus_tf_to_pytorch.py
<ide>
<ide> def rename_state_dict_key(k):
<ide>
<del> for pegasus_name, bart_name in PATTERNS:
<del> k = k.replace(pegasus_name, bart_name)
<add> for pegasus_name, hf_name in PATTERNS:
<add> k = k.replace(pegasus_name, hf_name)
<ide> ... | 1 |
Javascript | Javascript | use the new `any` event function | 3c932c5f8e3b92ab9230b5c4d6e84b29ad82b36a | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> // if the `sourceset` `src` was an empty string
<ide> // wait for a `loadstart` to update the cache to `currentSrc`.
<ide> // If a sourceset happens before a `loadstart`, we reset the state
<del> // as this function will be ... | 3 |
Text | Text | add virtualenv to start of tutorial | 247a422a64378c968f0972b1797b919ae03296bb | <ide><path>docs/tutorial/1-serialization.md
<ide> This tutorial will walk you through the building blocks that make up REST framew
<ide>
<ide> ## Getting started
<ide>
<add>Before we do anything else we'll create a new virtual environment, using [virtualenv]. This will make sure our package configuration is keep nic... | 1 |
Javascript | Javascript | add error code on null byte paths | 03ee4d854744e83f99bc5857b98f75139c448564 | <ide><path>lib/fs.js
<ide> function assertEncoding(encoding) {
<ide> function nullCheck(path, callback) {
<ide> if (('' + path).indexOf('\u0000') !== -1) {
<ide> var er = new Error('Path must be a string without null bytes.');
<add> er.code = 'ENOENT';
<ide> if (!callback)
<ide> throw er;
<ide> p... | 2 |
Ruby | Ruby | fix typo in caching docs | 9b204641c002317d097261c753490cced3dec40c | <ide><path>actionpack/lib/action_controller/caching.rb
<ide> def caching_allowed
<ide> # "jamis.somewhere.com/lists/" -- which is a helpful way of assisting the subdomain-as-account-key pattern.
<ide> #
<ide> # Different representations of the same resource, e.g. <tt>http://david.somewhere.com/lists</tt> an... | 1 |
Javascript | Javascript | use the watchpath api in specs | 9c874c921e31098bf9a6216fb6056dd46f9377b2 | <ide><path>spec/path-watcher-spec.js
<ide> import fsCb from 'fs-plus'
<ide> import path from 'path'
<ide>
<ide> import {CompositeDisposable} from 'event-kit'
<del>import PathWatcher, {stopAllWatchers} from '../src/path-watcher'
<add>import watchPath, {stopAllWatchers} from '../src/path-watcher'
<ide>
<ide> tempCb.tra... | 1 |
Python | Python | fix html template path in glanceshtml class | 94d016ab517a8ba5dd47a1bff7105d8ba7a8a4cc | <ide><path>glances/glances.py
<ide> def __init__(self, htmlfolder="/usr/share", refresh_time=1):
<ide>
<ide> # Set the templates path
<ide> environment = jinja2.Environment(
<del> loader=jinja2.FileSystemLoader(self.root_path + 'html'),
<add> loader=jinja2.FileSystemLoader(os.path... | 1 |
PHP | PHP | make username customizable during login | 37927a9f732097e484a67fac66b6aaee7dc61fef | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php
<ide> public function getLogin()
<ide> public function postLogin(Request $request)
<ide> {
<ide> $this->validate($request, [
<del> 'email' => 'required|email', 'password' => 'required',
<add> $this->loginUsername() =>... | 2 |
Javascript | Javascript | avoid a breaking change and use a warning instead | c9fbdb9e486ded97dc025c855793ed5b6b553a30 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> const Compilation = require("./Compilation");
<ide> const HotUpdateChunk = require("./HotUpdateChunk");
<ide> const NormalModule = require("./NormalModule");
<ide> const RuntimeGlobals = require("./RuntimeGlobals");
<add>const WebpackError = require("./WebpackError");
... | 8 |
Javascript | Javascript | fix mixins w/ tostring() in ie | 9b0aa65af9c44e512f6bd1bec43bcfbbbff54f5c | <ide><path>packages/sproutcore-metal/lib/mixin.js
<ide> function mergeMixins(mixins, m, descs, values, base) {
<ide> values[key] = value;
<ide> }
<ide> }
<del>
<add>
<add> // manually copy toString() because some JS engines do not enumerate it
<add> if (props.hasOwnProperty('toSt... | 1 |
Text | Text | add agentconf 2018 | 5f12867824e6ba06492e0176ebf9f785da221d23 | <ide><path>docs/community/conferences.md
<ide> October 25–27, Bratislava, Slovakia
<ide>
<ide> [Website](https://reactiveconf.com)
<ide>
<add>### AgentConf 2018
<add>January 25-28 in Dornbirn, Austria
<ide>
<add>[Website](http://agent.sh/)
<ide>
<ide> ## Past Conferences
<ide> | 1 |
Python | Python | add resnet50 test | 5b0967a08ff5a277d318506a9c28a31acd04794a | <ide><path>tests/keras/applications/applications_test.py
<ide> from keras import backend as K
<ide>
<ide>
<add>@keras_test
<add>def test_resnet50():
<add> model = applications.ResNet50(weights=None)
<add> assert model.output_shape == (None, 1000)
<add>
<add>
<add>@keras_test
<add>def test_resnet50_notop():
<add... | 1 |
Java | Java | update todos with new jira issue | 31dfffde52baaff5c9539c9d11653f3776d10de4 | <ide><path>spring-beans/src/test/java/org/springframework/beans/factory/support/security/CallbacksSecurityTests.java
<ide> public void testConstructor() throws Exception {
<ide>
<ide> @Test
<ide> @Ignore("passes under Eclipse, but fails under Gradle with https://gist.github.com/1664133")
<del> // TODO SPR-8116 passe... | 4 |
Text | Text | fix "timout" typo in timeout | e7866568e5a4123d198b45ea13fbd3dd7a3103d9 | <ide><path>doc/api/timers.md
<ide> added: v0.9.1
<ide> When called, the active `Timeout` object will not require the Node.js event loop
<ide> to remain active. If there is no other activity keeping the event loop running,
<ide> the process may exit before the `Timeout` object's callback is invoked. Calling
<del>`timout... | 1 |
Javascript | Javascript | remove examples from api/components | 200df00b9ef12405b8461c8c28b4874f3b638c0c | <ide><path>website/layout/AutodocsLayout.js
<ide> var Autodocs = React.createClass({
<ide> );
<ide> },
<ide>
<del> renderExample: function(example, metadata) {
<del> if (!example) {
<del> return;
<del> }
<del>
<del> return (
<del> <div>
<del> <HeaderWithGithub
<del> title={exa... | 2 |
PHP | PHP | remove an unused import | 5aa9a6d5151ca983e3a2c6b638e46e240c14be1f | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide>
<ide> namespace Illuminate\Database\Migrations;
<ide>
<del>use Closure;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Support\Collection; | 1 |
Go | Go | replace aliased imports of logrus, fixes | 6f4d847046cb4e072de61d042c0266190d73a8c9 | <ide><path>api/client/attach.go
<ide> import (
<ide> "io"
<ide> "net/url"
<ide>
<del> log "github.com/Sirupsen/logrus"
<add> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/engine"
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> "github.com/docker/docker/pkg/signal"
<ide> func (cli *DockerCli) ... | 82 |
PHP | PHP | update version in deprecated tag | beccf7f6b05bc2527b1bfa287c9908e594053f5a | <ide><path>src/ORM/AssociationCollection.php
<ide> public function keys()
<ide> * @param string|array $class The type of associations you want.
<ide> * For example 'BelongsTo' or array like ['BelongsTo', 'HasOne']
<ide> * @return array An array of Association objects.
<del> * @deprecated 3.6.0 Use ... | 1 |
Javascript | Javascript | make reactperf.start() work during reconciliation | 1a0e3a32150468223d6f9fd0125db0f8503b76d6 | <ide><path>src/renderers/dom/client/ReactMount.js
<ide> var ReactMount = {
<ide> shouldReuseMarkup,
<ide> context
<ide> ) {
<del> if (__DEV__) {
<del> ReactInstrumentation.debugTool.onBeginFlush();
<del> }
<del>
<ide> // Various parts of our code (such as ReactCompositeComponent's
<ide> // ... | 12 |
Javascript | Javascript | remove unnecessary checks | baa7bec6fd58d7b0baef2cf79847a91fca495bca | <ide><path>examples/js/loaders/VTKLoader.js
<ide> Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
<ide>
<ide> delete ele[ '#text' ];
<ide>
<del> // Get the content and optimize it
<del> if ( ele.attributes.type === 'Float32' ) {
<del>
<del> if ( ele.attributes.format ===... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.