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
Python
Python
fix npy_pkg_config script
a71977d8e6a2e7f543a131dbebd557471fce64c5
<ide><path>numpy/distutils/npy_pkg_config.py <ide> def read_config(pkgname, dirs=None): <ide> import os <ide> d = os.environ.get('NPY_PKG_CONFIG_PATH') <ide> if d: <del> info = read_info(pkg_name, ['numpy/core/lib/npy-pkg-config', '.', d]) <add> info = read_config(pkg_name, ['numpy/core/lib/np...
1
Python
Python
fix weights in model.test
24df6a9f9bda51784ce3d41bc23830eae72a118e
<ide><path>keras/models.py <ide> def train(self, X, y, accuracy=False, sample_weight=None): <ide> def test(self, X, y, accuracy=False): <ide> X = standardize_X(X) <ide> y = standardize_y(y) <del> ins = X + [y] <add> sample_weight = np.ones(y.shape[:-1] + (1,)) <add> ins = X + [y...
1
Javascript
Javascript
combine parsejson tests and fix style
32051e97c1e77d0b678648832d090168b534841c
<ide><path>test/unit/core.js <ide> test("jQuery.parseHTML", function() { <ide> }); <ide> <ide> test("jQuery.parseJSON", function(){ <del> expect(8); <add> expect( 9 ); <ide> <add> equal( jQuery.parseJSON( null ), null, "Actual null returns null" ); <add> equal( jQuery.isEmptyObject( jQuery.parseJSON("{}") ), true, "E...
1
PHP
PHP
use func_get_arg(0) instead of argument $viewfile
98e8aaaf682883ebcfd19cbfd05e10d5bf7dc2a5
<ide><path>src/View/View.php <ide> protected function _evaluate($viewFile, $dataForView) <ide> extract($dataForView); <ide> ob_start(); <ide> <del> include $viewFile; <add> include func_get_arg(0); <ide> <ide> return ob_get_clean(); <ide> }
1
Python
Python
fix doc on python2
183fedfed5e302d581714173d9ac1f232a128fbd
<ide><path>pytorch_transformers/modeling_bert.py <ide> def init_weights(self, module): <ide> @add_start_docstrings("The bare Bert Model transformer outputing raw hidden-states without any specific head on top.", <ide> BERT_START_DOCSTRING, BERT_INPUTS_DOCSTRING) <ide> class BertModel(BertPreTraine...
1
Javascript
Javascript
fix typos in the inline testing package docs
9a86b20c98fab82b8b6c583f0ae077bc4e7184ed
<ide><path>packages/ember-testing/lib/helpers.js <ide> helper('visit', visit); <ide> * ``` <ide> * <ide> * @method click <del>* @param {String} selcetor jQuery selector for finding element on the DOM <add>* @param {String} selector jQuery selector for finding element on the DOM <ide> * @returns {RSVP.Promise} <ide> */ ...
2
PHP
PHP
use static instead of self
7fe79c5f43820ed64d1bed86ed6d709c7bf51e73
<ide><path>src/Illuminate/Support/Arr.php <ide> public static function sortRecursive($array) <ide> { <ide> foreach ($array as &$value) { <ide> if (is_array($value)) { <del> $value = self::sortRecursive($value); <add> $value = static::sortRecursive($value); <ide> ...
1
Python
Python
fix lint error
4fabdee4a3e5425619b516b5b2200c0c16d235d7
<ide><path>tests/test_description.py <ide> from rest_framework.views import APIView <ide> <ide> <del> <del> <ide> # We check that docstrings get nicely un-indented. <ide> DESCRIPTION = """an example docstring <ide> ====================
1
Javascript
Javascript
save test file in temporary directory
2f53eb46e86443ed86f0e69044e420f3e7082f56
<ide><path>test/parallel/test-fs-readv-sync.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> const fs = require('fs'); <add>const path = require('path'); <ide> const tmpdir = require('../common/tmpdir'); <ide> <ide> tmpdir.refresh(); <ide> const expected = 'ümlaut. Лорем 運務ホソモ指及 आपको कर <id...
1
Javascript
Javascript
use strict comparison for controller === '@'
bbd3db14f857aab996ad129f2f15ca6348e9fd9f
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> }; <ide> <ide> var controller = directive.controller; <del> if (controller == '@') { <add> if (controller === '@') { <ide> controller = attrs[directive.name]; <ide> } <i...
1
Javascript
Javascript
hide example for angular.filter
dfa8baf59a1dafe6cc4c4e46da123cb85e85e0a4
<ide><path>src/Angular.js <ide> var _undefined = undefined, <ide> * * `$element` — The DOM element containing the binding. This allows the filter to manipulate <ide> * the DOM in addition to transforming the input. <ide> * <del> * The following example filter reverses a text string. In addit...
1
Ruby
Ruby
add rbenv requirement
1b4cc77e14401480111cbd5a53e38bead641d8d8
<ide><path>Library/Homebrew/requirements.rb <ide> class PostgresqlRequirement < Requirement <ide> satisfy { which "pg_config" } <ide> end <ide> <add>class RbenvRequirement < Requirement <add> fatal true <add> default_formula "rbenv" <add> <add> satisfy { which "rbenv" } <add>end <add> <ide> class GPGRequirement <...
1
PHP
PHP
redirect() helper method
55bee118c323c7b1deec8da081eafd2e649cbd41
<ide><path>src/Illuminate/Routing/RedirectController.php <add><?php <add> <add>namespace Illuminate\Routing; <add> <add>use Illuminate\Http\RedirectResponse; <add> <add>class RedirectController extends Controller <add>{ <add> public function __invoke($destination, $status = 301) <add> { <add> return new Re...
3
Javascript
Javascript
add test case
67b8a886f9042bc6fb573607fdf9118dfa0f50de
<ide><path>test/PersistentCaching.test.js <ide> const rimraf = require("rimraf"); <ide> const vm = require("vm"); <ide> const webpack = require("../"); <ide> <del>const readFile = util.promisify(fs.readFile); <ide> const readdir = util.promisify(fs.readdir); <ide> const writeFile = util.promisify(fs.writeFile); <ide> ...
1
Python
Python
use an example that also shows default value
6000e438ea56e7eb622fe99ce28321eb81faec59
<ide><path>numpy/lib/function_base.py <ide> def select(condlist, choicelist, default=0): <ide> <ide> Examples <ide> -------- <del> >>> x = np.arange(10) <del> >>> condlist = [x<3, x>5] <add> >>> x = np.arange(6) <add> >>> condlist = [x<3, x>3] <ide> >>> choicelist = [x, x**2] <ide> >>> np.s...
1
Ruby
Ruby
update version detection for 2.x
19fba42c69de00888461a14ab75d3e3bb2b3fc13
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def uncached_version <ide> if File.file? path <ide> Utils.popen_read(path, "-version") =~ /Xcode (\d(\.\d)*)/ <ide> return $1 if $1 <add> <add> # Xcode 2.x's xcodebuild has a different version string <add> Utils.po...
1
Python
Python
replace print by logger.debug
651095e3602756237920f4fa7ac170e1322c1939
<ide><path>celery/utils/functional.py <ide> """Functional-style utilities.""" <ide> import inspect <del>import sys <ide> from collections import UserList <ide> from functools import partial <ide> from itertools import islice, tee, zip_longest <add>from typing import Any, Callable <ide> <ide> from kombu.utils.functiona...
1
Java
Java
increase streamutils.buffer_size to 8192
cdb38e8482bc7307163e2e87d029565bf07aeaa6
<ide><path>spring-core/src/main/java/org/springframework/util/StreamUtils.java <ide> /** <ide> * Simple utility methods for dealing with streams. The copy methods of this class are <ide> * similar to those defined in {@link FileCopyUtils} except that all affected streams are <del> * left open when done. All copy meth...
1
Javascript
Javascript
use https in the og image on the website
93ed185c3d237717742672fb3086f6ef82fb7ba7
<ide><path>website/core/Site.js <ide> var Site = React.createClass({ <ide> }, <ide> { <ide> property: "og:image", <del> content: this.props.image ? this.props.image : "http://facebook.github.io/react-native/img/opengraph.png", <add> content: this.props.image ? this.props.image : "https...
1
Text
Text
improve questions section in contributing doc
6e92c4d6749e4ee4b68f74157a1c4539f19deb2d
<ide><path>CONTRIBUTING.md <ide> First off, thank you for taking the time to contribute! :+1: :tada: <ide> <ide> * [Code of Conduct](#code-of-conduct) <ide> * [How to Contribute](#how-to-contribute) <del> * [Discuss](#discuss) <add> * [Ask questions](#ask-questions) <ide> * [Create an Issue](#create-an-issue) <ide...
1
Javascript
Javascript
use strict (in)equalities
dad328077dfc50ab44bdc9a70634787374d45253
<ide><path>src/core/BufferGeometry.js <ide> THREE.BufferGeometry.prototype = { <ide> var hasFaceVertexUv = faceVertexUvs[ 0 ] && faceVertexUvs[ 0 ].length > 0; <ide> var hasFaceVertexUv2 = faceVertexUvs[ 1 ] && faceVertexUvs[ 1 ].length > 0; <ide> <del> var hasFaceVertexNormals = faces[ 0 ] && faces[ 0 ].vertexNo...
19
PHP
PHP
update usage of deprecated method
db0e253cdf6dddc452a4de85b9081fd475a3ce07
<ide><path>src/ORM/ResultSet.php <ide> protected function _getTypes($table, $fields) <ide> { <ide> $types = []; <ide> $schema = $table->getSchema(); <del> $map = array_keys((array)Type::map() + ['string' => 1, 'text' => 1, 'boolean' => 1]); <add> $map = array_keys((array)Type::getMap()...
1
Javascript
Javascript
expand worker test for non-shared arraybuffer
4201cdde89af76d80ec794e82ee0b1c47c107299
<ide><path>test/parallel/test-worker-sharedarraybuffer-from-worker-thread.js <ide> const assert = require('assert'); <ide> const { Worker } = require('worker_threads'); <ide> <ide> // Regression test for https://github.com/nodejs/node/issues/28777 <del>// Make sure that SharedArrayBuffers created in Worker threads are...
1
Javascript
Javascript
fix template injection tests
a8bb87b4a1606c83cf0b30783d2addcdf6f24955
<ide><path>packages/ember-application/tests/system/application_test.js <ide> moduleFor('Ember.Application', class extends ApplicationTestCase { <ide> verifyRegistration(assert, application, P`template:components/-default`); <ide> verifyRegistration(assert, application, 'template:-outlet'); <ide> verifyInjec...
2
Javascript
Javascript
reduce number of mapper calls for min/max
4c9168f2def10ab490b4d7299480f1143f3257a6
<ide><path>dist/immutable.js <ide> function sortFactory(iterable, comparator, mapper) { <ide> } <ide> function maxFactory(iterable, comparator, mapper) { <ide> if (mapper) { <del> var entry = iterable.entrySeq().reduce((function(max, next) { <del> return comparator(mapper(next[1], next[0], iterable), mapper(m...
3
PHP
PHP
add helper methods to json response
6f36d658d936b720c4e195b5f5545e51829c2ff1
<ide><path>src/Illuminate/Http/JsonResponse.php <ide> public function setData($data = array()) <ide> return $this->update(); <ide> } <ide> <add> /** <add> * Set a header on the Response. <add> * <add> * @param string $key <add> * @param string $value <add> * @param bool $replace <add> * @return \Illum...
1
Go
Go
add integ test for unpublished ports in ps o/p
7b9ae696d86066f6245e2c17e7afd5ce8e868fe5
<ide><path>integration-cli/docker_cli_port_test.go <ide> package main <ide> <ide> import ( <add> "fmt" <ide> "net" <ide> "os/exec" <add> "regexp" <ide> "sort" <ide> "strings" <ide> <ide> func (s *DockerSuite) TestPortExposeHostBinding(c *check.C) { <ide> c.Error("Port is still bound after the Container is remov...
1
Python
Python
add warnings section to arange docstring
542e35e121988a9a942435da91d407d11a6ff96b
<ide><path>numpy/core/_add_newdocs.py <ide> For integer arguments the function is equivalent to the Python built-in <ide> `range` function, but returns an ndarray rather than a list. <ide> <del> When using a non-integer step, such as 0.1, the results will often not <del> be consistent. It is better to u...
1
PHP
PHP
avoid double path checking
021b9158a1dd11bb32ee358de18eff06e883fa13
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function app($abstract = null, array $parameters = []) <ide> */ <ide> function app_path($path = '') <ide> { <del> return app('path').($path ? DIRECTORY_SEPARATOR.$path : $path); <add> return app()->path($path); <ide> } <ide> } <ide> ...
1
PHP
PHP
remove deprecated code from expression classes
2f7354de38841dea14608cbefe3e017aabba5f3f
<ide><path>src/Database/Expression/FunctionExpression.php <ide> public function getName() <ide> return $this->_name; <ide> } <ide> <del> /** <del> * Sets the name of the SQL function to be invoke in this expression, <del> * if no value is passed it will return current name <del> * <del> ...
5
Python
Python
add base to templated arguments for platlib
177c45f021c1fb70f3c0111d633ff343afa69c92
<ide><path>runtests.py <ide> def build_project(args): <ide> site_dir = site_dir_template.format(platbase=dst_dir, <ide> py_version_short=py_v_s, <ide> platlibdir=platlibdir, <add> base=dst_dir, <id...
1
Java
Java
fix failing test
e6f479677916adf7dce6c3f4e5a6faa6c9a1a0bd
<ide><path>spring-messaging/src/test/java/org/springframework/messaging/core/MessageSendingTemplateTests.java <ide> public void convertAndSendPayloadWithPostProcessorToDestination() { <ide> public void convertAndSendNoMatchingConverter() { <ide> <ide> MessageConverter converter = new CompositeMessageConverter( <del...
1
Python
Python
remove the added json parameter
da8e8664325eec0d36ad64df86af49165c3743f3
<ide><path>libcloud/common/base.py <ide> def request(self, action, params=None, data=None, headers=None, <ide> stream=stream) <ide> else: <ide> self.connection.request(method=method, url=url, body=data, <del> ...
1
Python
Python
update refresh jwt when needed
f5357ffe45a75e5440b286900585cfd2bcdee8b9
<ide><path>libcloud/common/gig_g8.py <ide> # limitations under the License. <ide> <ide> from libcloud.common.base import ConnectionKey, JsonResponse <add>import json <add>import base64 <add>import requests <add>import os <add>import time <add> <add># normally we only use itsyou.online but you might want to work <add>#...
1
PHP
PHP
add an entity getter
7815661deb7e01090215e6925f0fac3afe966ef1
<ide><path>src/ORM/Exception/PersistenceFailedException.php <ide> namespace Cake\ORM\Exception; <ide> <ide> use Cake\Core\Exception\Exception; <add>use Cake\Datasource\EntityInterface; <ide> <ide> /** <ide> * Used when a strict save or delete fails <ide> */ <ide> class PersistenceFailedException extends Exception <...
3
Python
Python
fix typo in multiarray tests
5bc4aefda5bfd7dde9599e2f75ce58696d9bc2c1
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_roundtrip_file(self): <ide> y = np.fromfile(f, dtype=self.dtype) <ide> f.close() <ide> assert_array_equal(y, self.x.flat) <del> os.unlink(filename) <add> os.unlink(self.filename) <ide> <ide> def test_roundtrip_filen...
1
Javascript
Javascript
fix some jslint warnings
ef2f3cdc24e727df30bc19f6ff44707a99c86195
<ide><path>pdf.js <ide> var FakeStream = (function() { <ide> }; <ide> <ide> constructor.prototype.getBytes = function(length) { <del> var pos = this.pos; <add> var end, pos = this.pos; <ide> <ide> if (length) { <ide> this.ensureBuffer(pos + length); <del> var end = pos + length; <add> en...
1
Ruby
Ruby
test new head methods
454003c4c1ea43f4fd84db96017636fc4c50b318
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def test_installed_prefix_devel <ide> assert_equal prefix, f.installed_prefix <ide> end <ide> <add> def test_latest_head_prefix <add> f = Testball.new <add> <add> stamps_with_revisions = [[111111, 1], [222222, 1], [222222, 2], [222222, 0]] <add> <add>...
1
Ruby
Ruby
update old link in pessimistic.rb comments
6901a272074aaa75fb69b8f2c7cb80ebf7ae00e7
<ide><path>activerecord/lib/active_record/locking/pessimistic.rb <ide> module Locking <ide> # end <ide> # <ide> # Database-specific information on row locking: <del> # MySQL: http://dev.mysql.com/doc/refman/5.1/en/innodb-locking-reads.html <add> # MySQL: http://dev.mysql.com/doc/refman/5.6/en/in...
1
Java
Java
polish synchandlermethodargumentresolver hiearchy
f490f3ca63a56a6e31a271b513f89f2926b491fa
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/HandlerMethodArgumentResolver.java <ide> import org.springframework.web.server.ServerWebExchange; <ide> <ide> /** <del> * Strategy interface for resolving method parameters into argument values in <del> * the context of a given requ...
12
Python
Python
add type annotations for clip (torch)
f86235ad1b6b73e0d497d3e163039a0f93111f88
<ide><path>src/transformers/models/clip/modeling_clip.py <ide> <ide> <ide> from dataclasses import dataclass <del>from typing import Any, Optional, Tuple <add>from typing import Any, Optional, Tuple, Union <ide> <ide> import torch <ide> import torch.utils.checkpoint <ide> def __init__(self, config: CLIPVisionConfig)...
1
Python
Python
add examples per second history to estimator hook.
dc42c4822044aa87365e0b46ca25d14e0f18adfb
<ide><path>official/resnet/estimator_cifar_benchmark.py <ide> import tensorflow as tf # pylint: disable=g-bad-import-order <ide> <ide> from official.resnet import cifar10_main as cifar_main <add>from official.utils.logs import hooks <ide> <ide> DATA_DIR = '/data/cifar10_data/cifar-10-batches-bin' <ide> <ide> def re...
3
PHP
PHP
apply fixes from styleci
f6bdc032f79e3fc3dcc517b245935aa6cd77642a
<ide><path>src/Illuminate/Log/LogServiceProvider.php <ide> protected function channel() <ide> { <ide> if ($this->app->bound('config') && <ide> $channel = $this->app->make('config')->get('app.log_channel')) { <del> return $channel; <add> return $channel; <ide> } ...
1
Python
Python
fix broken nested fields
405822330958c5432dde56b07a61b223c03ca4c7
<ide><path>rest_framework/compat.py <ide> import StringIO <ide> <ide> <add># Try to import PIL in either of the two ways it can end up installed. <add>try: <add> from PIL import Image <add>except ImportError: <add> try: <add> import Image <add> except ImportError: <add> Image = None <add> <...
4
Javascript
Javascript
when material is undefined
a25321ceb62305ecfc7ded184ebee8739076bf70
<ide><path>src/objects/Mesh.js <ide> Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), { <ide> function checkIntersection( object, material, raycaster, ray, pA, pB, pC, point ) { <ide> <ide> var intersect; <del> <add> if(!material) return null; <ide> if ( material.side === BackSide ) { <id...
1
Mixed
Ruby
fix fixture syntax in cable docs and guides
cfe65cb478a44f19f3b4562cd1cf3c99d2cb930b
<ide><path>actioncable/lib/action_cable/channel/test_case.rb <ide> def transmit(cable_message) <ide> # You need to set up your connection manually to provide values for the identifiers. <ide> # To do this just use: <ide> # <del> # stub_connection(user: users[:john]) <add> # stub_connection(user: u...
2
PHP
PHP
fix higher order messaging annotations
b14367393e59e1d7f1a91cb889a988d5b684c54a
<ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php <ide> * @property-read HigherOrderCollectionProxy $some <ide> * @property-read HigherOrderCollectionProxy $sortBy <ide> * @property-read HigherOrderCollectionProxy $sortByDesc <add> * @property-read HigherOrderCollectionProxy $skipUntil <add> * @prope...
1
Java
Java
convert non-unicode input when reading w/ jackson
9c3417f7037b407a17ae9832a81f8d0c55677bfc
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java <ide> public abstract class AbstractJackson2Encoder extends Jackson2CodecSupport imple <ide> <ide> private static final Map<MediaType, byte[]> STREAM_SEPARATORS; <ide> <add> private static final Map<Charset, JsonEnco...
11
Java
Java
invoke webmvc.fn error handlers for async errors
6f4fb08bf8c1bf6f783e380f2c604f415fc0dfe6
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultAsyncServerResponse.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"...
3
Text
Text
fix backticks in fs api docs
6686d9000b64a8cbfa2077ea0e30e253c35e053a
<ide><path>doc/api/fs.md <ide> added: v10.0.0 <ide> changes: <ide> - version: v14.0.0 <ide> pr-url: https://github.com/nodejs/node/pull/27044 <del> description: Changed 'flags' argument to 'mode' and imposed <add> description: Changed `flags` argument to `mode` and imposed <ide> stricter ty...
1
Python
Python
fix py3 test
359f91ff6c189f625a875e37592cd84f3f554d28
<ide><path>tests/keras/test_models.py <ide> def output_shape(input_shapes): <ide> # test "join" mode in Lambda <ide> def difference(input_dict): <ide> assert(len(input_dict) == 2) <del> keys = input_dict.keys() <add> keys = list(input_dict.keys()) <ide> return input_dict[keys[0]] -...
1
Javascript
Javascript
close open rows on scroll
5c13eaccbd7136949525b6c6eb3ac7e0c63c662f
<ide><path>Libraries/Experimental/SwipeableRow/SwipeableListView.js <ide> const SwipeableRow = require('SwipeableRow'); <ide> <ide> const {PropTypes} = React; <ide> <add>type Props = { <add> bounceFirstRowOnMount: boolean, <add> dataSource: SwipeableListViewDataSource, <add> maxSwipeDistance: number, <add> render...
1
PHP
PHP
add missing test for getroutesbymethod
b28424410e46ebcdc0733f46b5a4c9aca36b1c58
<ide><path>tests/Routing/RouteCollectionTest.php <ide> public function testRouteCollectionCanGetRoutesByName() <ide> $this->assertSame($routesByName, $this->routeCollection->getRoutesByName()); <ide> } <ide> <add> public function testRouteCollectionCanGetRoutesByMethod() <add> { <add> $routes ...
1
Java
Java
require jsonpath 1.1+
db05f43a757e92817b89cb40dcfe559747804b69
<ide><path>spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java <ide> <ide> package org.springframework.test.util; <ide> <del>import java.lang.reflect.Array; <del>import java.lang.reflect.Method; <ide> import java.text.ParseException; <ide> import java.util.List; <ide> import java.u...
1
PHP
PHP
fix doc block
7114153b151f8dc861a7f89e1cabbc151843db49
<ide><path>src/View/ViewBuilder.php <ide> public function enableAutoLayout($enable = true) <ide> * Returns if CakePHP's conventional mode of applying layout files is enabled. <ide> * Disabled means that layouts will not be automatically applied to rendered views. <ide> * <del> * @return bool <add> ...
1
Javascript
Javascript
load granular chunks with correct asset prefix
8dd394a05586741fe613bb6ba330539e75f53fcf
<ide><path>packages/next/client/page-loader.js <ide> export default class PageLoader { <ide> ) { <ide> scriptRoute = scriptRoute.replace(/\.js$/, '.module.js') <ide> } <del> const url = isDependency <del> ? route <del> : `${this.assetPrefix}/_next/static/${encodeURIComponent( <del> thi...
1
Javascript
Javascript
fix lint warnings in fonts.js
5083774a8c653e57da463e3653fabd4f87f40c2b
<ide><path>src/fonts.js <ide> var Type1Parser = function type1Parser() { <ide> return program; <ide> }; <ide> <del> this.extractFontHeader = function Type1Parser_extractFontHeader(stream, properties) { <add> this.extractFontHeader = function Type1Parser_extractFontHeader(stream, <add> ...
1
Ruby
Ruby
remove unnecessary readme in dummy application
65590e3c968b81f78c2ff33945ba819f607391d8
<ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb <ide> def test_dummy_clean <ide> remove_file "Gemfile" <ide> remove_file "lib/tasks" <ide> remove_file "public/robots.txt" <del> remove_file "README" <add> remove_file "README.md" <ide> remove_file "t...
2
Javascript
Javascript
add round to showcase
05e8681cf4cb2123c130ec93cab4ab8b057d0148
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/rota-worker-shifts-on-demand/id1042111289?mt=8', <ide> author: 'Rota', <ide> }, <add> { <add> name: 'Round - A better way to remember your medicine', <add> icon: 'https://s3.mzstatic.com/us/r...
1
Javascript
Javascript
pass norefs as arguments
b00b2f08bf78e735f206051942f3d22ad5b3b0ed
<ide><path>lib/_debugger.js <ide> Client.prototype.reqFrameEval = function(expression, frame, cb) { <ide> // reqBacktrace(cb) <ide> // TODO: from, to, bottom <ide> Client.prototype.reqBacktrace = function(cb) { <del> this.req({ command: 'backtrace', noRefs: true } , cb); <add> this.req({ command: 'backtrace', argumen...
1
Javascript
Javascript
pass sourcemap when swcminify is enabled
e7f503abd373618dfac1335dbde0f84ac0a054cf
<ide><path>packages/next/build/webpack/plugins/terser-webpack-plugin/src/index.js <ide> export class TerserPlugin { <ide> const result = await require('../../../../swc').minify( <ide> options.input, <ide> { <add> ...(options.inputSourceMap <add> ...
1
Ruby
Ruby
fix a json ordering issue
a3eaaf6b50b76a51080ec9ae6b217095868f3054
<ide><path>activesupport/test/json/encoding_test.rb <ide> def as_json(options) <ide> StandardDateTimeTests = [[ DateTime.civil(2005,2,1,15,15,10), %("2005-02-01T15:15:10+00:00") ]] <ide> StandardStringTests = [[ 'this is the <string>', %("this is the <string>")]] <ide> <add> def sorted_json(json) <add> retur...
1
Mixed
Javascript
provide dummy stdio for non-console windows apps
ab6c09b177eca67755a4c1f1d4d35fab9d2bb5d4
<ide><path>doc/api/errors.md <ide> An attempt was made to load a module with an unknown or unsupported format. <ide> An invalid or unknown process signal was passed to an API expecting a valid <ide> signal (such as [`subprocess.kill()`][]). <ide> <del><a id="ERR_UNKNOWN_STDIN_TYPE"></a> <del>### ERR_UNKNOWN_STDIN_TYPE...
4
PHP
PHP
allow easily mocking of expected jobs
f75dd781e2f174e936cf900f1ebf601631c3ab5a
<ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php <ide> protected function withoutEvents() <ide> return $this; <ide> } <ide> <add> /** <add> * Specify a list of jobs that should be dispatched for the given operation. <add> * <add> * These jobs will be mocked, so that handlers...
1
Ruby
Ruby
mark some implementation details as protected
6641fc4017d2b279ef7ff71fc39a55830d12099a
<ide><path>Library/Homebrew/version.rb <ide> class VersionElement <ide> include Comparable <ide> <del> attr_reader :elem <del> <ide> def initialize elem <ide> elem = elem.to_s.downcase <ide> @elem = case elem <ide> def string? <ide> def numeric? <ide> @elem.is_a? Numeric <ide> end <add> <add> pro...
1
Javascript
Javascript
update isvisible observer
6aed41af0f3dca539f77c9c9c27f37482a417699
<ide><path>lib/sproutcore-views/lib/views/view.js <ide> SC.View = SC.Object.extend( <ide> return view ; <ide> }, <ide> <del> _sccv_isVisibleDidChange: function() { <add> /** @private <add> When the view's `isVisible` property changes, toggle the visibility element <add> of the actual DOM element. <add> */...
1
Ruby
Ruby
raise error on unknown primary key
ee2be435b1e5c0e94a4ee93a1a310e0471a77d07
<ide><path>activerecord/lib/active_record/attribute_methods/primary_key.rb <ide> module ClassMethods <ide> # primary_key_prefix_type setting, though. <ide> def primary_key <ide> @primary_key ||= reset_primary_key <add> raise ActiveRecord::UnknownPrimaryKey.new(self) unless @primary_ke...
12
Javascript
Javascript
normalize indentation in parentheses
e0af017a32a8f6824419c390720f8d9ceff94c7f
<ide><path>lib/_tls_legacy.js <ide> function SecurePair(context, isServer, requestCert, rejectUnauthorized, <ide> this._rejectUnauthorized = rejectUnauthorized ? true : false; <ide> this._requestCert = requestCert ? true : false; <ide> <del> this.ssl = new Connection(this.credentials.context, <del> ...
2
Javascript
Javascript
add @preventmunge directives to classes
7b7eddcc720922fb42ba11e2560627ef60184a3a
<ide><path>src/renderers/testing/ReactTestEmptyComponent.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule ReactTestEmptyComponent <add> * @preventMunge <ide> * @flow <ide> */ <ide> <ide> 'use strict'; <ide> <ide> class ReactTestEmptyComponent { <...
4
Ruby
Ruby
add broadcaster to publish to redis channels
5743cf30ff7714c7aa83133b350af22840473733
<ide><path>lib/action_cable.rb <ide> module ActionCable <ide> autoload :Connection, 'action_cable/connection' <ide> autoload :RemoteConnection, 'action_cable/remote_connection' <ide> autoload :RemoteConnections, 'action_cable/remote_connections' <add> autoload :Broadcaster, 'action_cable/broadcaster' <ide> end <...
3
Javascript
Javascript
remove space at end of line
76a296cac45b655c0142997da648bc88336fd498
<ide><path>src/fonts.js <ide> var Font = (function FontClosure() { <ide> styleElement = document.createElement('style'); <ide> styleElement.id = 'PDFJS_FONT_STYLE_TAG'; <ide> document.documentElement.getElementsByTagName('head')[0].appendChild( <del> styleElement); <add> ...
1
Python
Python
fix compatibility for model_builder_test.py
1b2c67af8a035fa90dc1dc507cdd101df3f5a589
<ide><path>object_detection/builders/model_builder_test.py <ide> def test_create_faster_rcnn_resnet_v1_models_from_config(self): <ide> }""" <ide> model_proto = model_pb2.DetectionModel() <ide> text_format.Merge(model_text_proto, model_proto) <del> for extractor_type, extractor_class in FEATURE_EXTRACTO...
1
PHP
PHP
add head method to integrationtestcase
76ce7f037ae3930462db8d19dd99f0b0555d310a
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function delete($url) <ide> $this->_sendRequest($url, 'DELETE'); <ide> } <ide> <add> /** <add> * Performs a HEAD request using the current request data. <add> * <add> * The response of the dispatched request will be stored as <add...
1
Ruby
Ruby
add libepoxy 1.5.4 to whitelist
e704bf7184bb8ab87acbb61dfabce3772bd326a0
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_specs <ide> gtk-mac-integration 2.1.3 <ide> gtk-doc 1.31 <ide> gcab 1.3 <add> libepoxy 1.5.4 <ide> ].each_slice(2).to_a.map do |formula, version| <ide> [formula, version.split(".")[0..1].join(".")] <ide> end
1
Javascript
Javascript
update initial worker config values
2ca7b89846423adbe0d2ec5a98785e02c8523969
<ide><path>examples/js/loaders/BasisTextureLoader.js <ide> THREE.BasisTextureLoader = function ( manager ) { <ide> this.workerConfig = { <ide> format: null, <ide> astcSupported: false, <add> bptcSupported: false, <ide> etcSupported: false, <ide> dxtSupported: false, <ide> pvrtcSupported: false, <ide> THREE....
2
Text
Text
remove duplicate entries [ci skip]
94ffebab62bb53ff0a5b903ec597d30539cfe047
<ide><path>guides/source/5_0_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> * Changed the default template handler from `ERB` to `Raw`. <ide> ([commit](https://github.com/rails/rails/commit/4be859f0fdf7b3059a28d03c279f03f5938efc80)) <ide> <del>* Collection rende...
1
PHP
PHP
remove path hint
33ce7bbb6a7f536036b58b66cc760fbb9eda80de
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> public function compile($path = null) <ide> $this->files->get($this->getPath()) <ide> ); <ide> <del> if (! empty($this->getPath())) { <del> $contents .= "\n<?php /* {$this->getPath()} */ ?>"; <del> ...
2
Ruby
Ruby
introduce std_cmake_args method
a13857b15057586d1cfc268708c8112e2999a39b
<ide><path>Library/Homebrew/compat/compatibility.rb <ide> def self.fails_with_llvm msg=nil, data=nil <ide> @cc_failures ||= CompilerFailures.new <ide> @cc_failures << fails_with_llvm_reason <ide> end <add> <add> def std_cmake_parameters <add> "-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -Wn...
2
Javascript
Javascript
remove usage of styles type
852084ad454565bb856e85f09e098f1a4a0771a6
<ide><path>Libraries/StyleSheet/StyleSheet.js <ide> const flatten = require('flattenStyle'); <ide> <ide> import type { <ide> ____StyleSheetInternalStyleIdentifier_Internal as StyleSheetInternalStyleIdentifier, <del> Styles as _Styles, <add> ____Styles_Internal, <ide> ____StyleObj_Internal, <ide> ____ViewStyleP...
2
Javascript
Javascript
resolve deprecation warnings for jasmine
016c2761dafeb7e131db7253bb3e356fb63ecf7d
<ide><path>test/font/jasmine-boot.js <ide> function initializePDFJS(callback) { <ide> }, <ide> }); <ide> <del> var stoppingOnSpecFailure = queryString.getParam('failFast'); <del> env.stopOnSpecFailure(typeof stoppingOnSpecFailure === 'undefined' ? <del> false : stoppingOnSpecFailure); <d...
2
Go
Go
expand hostname before passing it to newregistry()
676308b853a43bb7be4838e937ab4effff670b1a
<ide><path>registry/service.go <ide> func (s *Service) Search(job *engine.Job) engine.Status { <ide> if err != nil { <ide> return job.Error(err) <ide> } <del> r, err := NewSession(authConfig, HTTPRequestFactory(metaHeaders), IndexServerAddress(), true) <add> r, err := NewSession(authConfig, HTTPRequestFactory(metaH...
1
Javascript
Javascript
remove workaround for function redefinition
007386ee81ceeffd65c2248869717b0717db3e46
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> // an expression. <ide> cmd = `(${cmd})`; <ide> self.wrappedCmd = true; <del> } else { <del> // Mitigate https://github.com/nodejs/node/issues/548 <del> cmd = cmd.replace( <del> /^\s*function(?:\s*(\*)\s*|\s+)([^(]+)/, ...
1
Python
Python
fix fp16 transformer model.
58340818e4aa9becc5f38e51287d1d7ab7800046
<ide><path>official/transformer/model/beam_search.py <ide> https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/utils/beam_search.py <ide> """ <ide> <add>import numpy as np <ide> import tensorflow as tf <ide> from tensorflow.python.util import nest <ide> <del># Default value for INF <del>INF = 1. * 1...
5
Text
Text
add a note about default_scope and create records
2ef1de02ed2e19638aebdbca1aea209a7591b5fe
<ide><path>guides/source/active_record_querying.md <ide> class Client < ActiveRecord::Base <ide> end <ide> ``` <ide> <add>NOTE: The `default_scope` is also applied while creating/building a record. <add>It is not applied while updating a record. E.g.: <add> <add>```ruby <add>class Client < ActiveRecord::Base <add> de...
1
PHP
PHP
use anevent when creating the view
74f1784564cb38a2afbf79d86ffb91b9eaaf6474
<ide><path>src/Shell/Task/TemplateTask.php <ide> use Cake\Core\App; <ide> use Cake\Core\ConventionsTrait; <ide> use Cake\Core\Plugin; <add>use Cake\Event\Event; <add>use Cake\Event\EventManager; <ide> use Cake\Filesystem\Folder; <ide> use Cake\Network\Request; <ide> use Cake\Network\Response; <ide> class TemplateTask e...
3
PHP
PHP
remove code related to "disabledfields" config
790b07a27cc0fd5fff6e776e1581c68ce8ba4ad0
<ide><path>src/Controller/Component/SecurityComponent.php <ide> protected function _fieldsList(array $check): array <ide> } <ide> <ide> $unlockedFields = array_unique( <del> array_merge((array)$this->getConfig('disabledFields'), (array)$this->_config['unlockedFields'], $unlocked) <add> ...
2
Text
Text
update readme to latest beta version
8487375730a0c932792a6b8b52922cfc875771ac
<ide><path>README.md <ide> <ide> ## v2.0 Beta <ide> <del>Current Release: [2.0.0-beta](https://github.com/nnnick/Chart.js/releases/tag/2.0.0-beta) <add>Current Release: [2.0.0-beta2](https://github.com/nnnick/Chart.js/releases/tag/2.0.0-beta2) <ide> <ide> The next generation and release of Chart.js has been well und...
1
Text
Text
add v2.17.0-beta.1 to changelog
70a3d879b8b7a64b7bf11da5479fd3dfc6191241
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.17.0-beta.1 (October 9, 2017) <add> <add>- [#15265](https://github.com/emberjs/ember.js/pull/15265) [BUGFIX] fixed issue when passing `false` to `activeClass` for `{{link-to}}` <add>- [#15672](https://github.com/emberjs/ember.js/pull/15672) Update router...
1
Go
Go
allow dot in repo name
d61fce9af770f0adaf4f178a5217dd46a02dd201
<ide><path>registry/registry.go <ide> func ResolveRepositoryName(reposName string) (string, string, error) { <ide> return "", "", ErrInvalidRepositoryName <ide> } <ide> nameParts := strings.SplitN(reposName, "/", 2) <del> if !strings.Contains(nameParts[0], ".") && !strings.Contains(nameParts[0], ":") && <del> name...
2
Text
Text
add metrics docs to cli reference
66c2549be33213fa333457d090ada506ef39c5bb
<ide><path>docs/reference/commandline/dockerd.md <ide> Options: <ide> --log-opt value Default log driver options for containers (default map[]) <ide> --max-concurrent-downloads int Set the max concurrent downloads for each pull (default 3) <ide> --max-concurrent-upload...
1
Python
Python
set version to v2.2.0.dev9
eced2f32116df0b01c423cb169d7d2c775b46597
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.0.dev8" <add>__version__ = "2.2.0.dev9" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion"
1
PHP
PHP
remove unnecessary loadfixtures() calls
75882507bc75e04736cebf2b42c21a5da32d62d4
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php <ide> public function testArraySyntax() { <ide> * @return void <ide> */ <ide> public function testFindThreaded() { <del> $this->loadFixtures('Person'); <ide> $Model = new Person(); <ide> $Model->recursive = -1; <ide> $Model->Behaviors->at...
2
Java
Java
add check for long.max_value
cd476832cc23e9b52b7d3d7d194ff9e33b734224
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java <ide> public final void onError(Throwable t) { <ide> * @return {@code true} if there is more demand; {@code false} otherwise <ide> */ <ide> private boolean readAndPublish() throws IOException { <del> wh...
1
Go
Go
fix race with concurrent daemon startup in tests
9e3193810da91d81f6b2dba3171443557f756794
<ide><path>integration/container/restart_test.go <ide> func TestDaemonRestartKillContainers(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> <del> var args []string <add> args := []string{"--iptables=false"} <ide> if liveRestoreEnabled { <del> args = []string{"--live-restore"} <add> a...
1
Text
Text
replace page with page_size to avoide confusion
e45e52a255c0dfbecfc5048697534ffbe0e2648e
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> * Bugfix: `client.force_authenticate(None)` should also clear session info if it exists. <ide> * Bugfix: Client sending empty string instead of file now clears `FileField`. <ide> * Bugfix: Empty va...
1
Text
Text
reduce abstraction and make it easier to read
70b97f6f5a92cfd5c0c008a1f5e0e33c392c952e
<ide><path>docs/_sidebar.md <ide> - **Code Contribution** <ide> - [Set up freeCodeCamp locally](how-to-setup-freecodecamp-locally.md) <ide> - [Work on mobile app](how-to-setup-freecodecamp-mobile-app-locally.md) <add> - [How to contribute to the codebase](how-to-contribute-to-the-codebase.md) <ide> - [Follow cod...
6
Text
Text
add asan build instructions
9c00af07160d8e3aef84e319ca7dd01667b96cd8
<ide><path>BUILDING.md <ide> file a new issue. <ide> * [Running Coverage](#running-coverage) <ide> * [Building the documentation](#building-the-documentation) <ide> * [Building a debug build](#building-a-debug-build) <add> * [Building an ASAN build](#building-an-asan-build) <ide> * [Troubleshooting U...
1
Python
Python
fix loading flax bf16 weights in pt
3d607df8f42dc13d18e0c2798880cd3d99beb8bc
<ide><path>src/transformers/modeling_flax_pytorch_utils.py <ide> <ide> import numpy as np <ide> <add>import jax <ide> import jax.numpy as jnp <ide> import transformers <ide> from flax.serialization import from_bytes <ide> def load_flax_weights_in_pytorch_model(pt_model, flax_state): <ide> ) <ide> rais...
4
PHP
PHP
apply fixes from styleci
3be65cc66fe1fbee88ffb385e9468513c7592fa2
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> <ide> use Closure; <ide> use Carbon\Carbon; <del>use LogicException; <ide> use Cron\CronExpression; <ide> use GuzzleHttp\Client as HttpClient; <ide> use Illuminate\Contracts\Mail\Mailer;
1
PHP
PHP
fix various formatting issues
f67e081cb48ef1bdbe7821a03f850442b501461f
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function hydrateFiles(array $data, $arrayKey = null) <ide> } <ide> <ide> foreach ($data as $key => $value) { <del> $new_key = ($arrayKey) ? "$arrayKey.$key" : $key; <add> $newKey = ($arrayKey) ? "$arrayKey.$key" : ...
1