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 | clarify skiprows in loadtxt | eac2334d2e51a4960b82cc2ed9e47e10f5d767c6 | <ide><path>numpy/lib/npyio.py
<ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> `genfromtxt`): ``converters = {3: lambda s: float(s.strip() or 0)}``.
<ide> Default: None.
<ide> skiprows : int, optional
<del> Skip the first `skiprows` lines; default: 0.
<add> Ski... | 1 |
Ruby | Ruby | remove bad symlink if it already exists | eb23a397013622025dc3b64dda782a9a9cdea4cf | <ide><path>Library/Homebrew/utils.rb
<ide> def migrate_legacy_keg_symlinks_if_necessary
<ide> end
<ide> end
<ide> dst = HOMEBREW_LINKED_KEGS/name
<add> dst.unlink if dst.exist?
<ide> FileUtils.ln_sf(src.relative_path_from(dst.parent), dst)
<ide> end
<ide> FileUtils.rm_rf legacy_linked_kegs | 1 |
Javascript | Javascript | use focused eslint disabling in util.js | 6cda5a98fd1aaedb23d39644a0c95ce1e52e1223 | <ide><path>lib/util.js
<ide> const errorToString = Error.prototype.toString;
<ide> let CIRCULAR_ERROR_MESSAGE;
<ide> let internalDeepEqual;
<ide>
<del>/* eslint-disable */
<add>/* eslint-disable no-control-regex */
<ide> const strEscapeSequencesRegExp = /[\x00-\x1f\x27\x5c]/;
<ide> const strEscapeSequencesReplacer = /... | 1 |
Javascript | Javascript | add coverage for execfilesync() errors | a5080000933108ff6d16bfb8705f18a8879fa138 | <ide><path>test/sequential/test-child-process-execsync.js
<ide> assert.strictEqual(ret, msg + '\n',
<ide> execSync('exit -1', {stdio: 'ignore'});
<ide> }, /Command failed: exit -1/);
<ide> }
<add>
<add>// Verify the execFileSync() behavior when the child exits with a non-zero code.
<add>{
<add> const args = ['-e... | 1 |
Javascript | Javascript | fix import spacing as requested in | 0ed66f033eb830d1bce2ddd460842aa6b2b5a615 | <ide><path>test/unit/src/geometries/ShapeGeometry.tests.js
<ide> import {
<ide> ShapeBufferGeometry
<ide> } from '../../../../src/geometries/ShapeGeometry';
<ide>
<del>import {Shape} from '../../../../src/extras/core/Shape';
<add>import { Shape } from '../../../../src/extras/core/Shape';
<ide>
<ide> export default Q... | 2 |
Python | Python | fix typo in docstring for post_delete hook | c436725dd65c78d2dc5f46fe2246516a5fcf231e | <ide><path>rest_framework/generics.py
<ide> def pre_delete(self, obj):
<ide>
<ide> def post_delete(self, obj):
<ide> """
<del> Placeholder method for calling after saving an object.
<add> Placeholder method for calling after deleting an object.
<ide> """
<ide> pass
<ide> | 1 |
Go | Go | remove the container initializers per platform | 060f4ae6179b10aeafa883670826159fdae8204a | <ide><path>daemon/container.go
<ide> type CommonContainer struct {
<ide> logCopier *logger.Copier
<ide> }
<ide>
<add>// newBaseContainer creates a new container with its
<add>// basic configuration.
<add>func newBaseContainer(id, root string) *Container {
<add> return &Container{
<add> CommonContainer: CommonContain... | 10 |
PHP | PHP | fix relative path resolution in view | 31ed8c3eea630153bcd30885aeeb08de852909a8 | <ide><path>src/View/View.php
<ide> protected function _getViewFileName($name = null) {
<ide> }
<ide> $name = trim($name, DS);
<ide> } elseif ($name[0] === '.') {
<del> $name = substr($name, 3);
<add> $name = $this->viewPath . DS . $subDir . $name;
<ide> } elseif (!$plugin || $this->viewPath !== $thi... | 2 |
Text | Text | add v3.24.4 to changelog.md | c4e70e3567a239c41ba9c319df72f239b1530e0c | <ide><path>CHANGELOG.md
<ide> - [#19441](https://github.com/emberjs/ember.js/pull/19441) Add automated publishing of weekly alpha releases to NPM
<ide> - [#19462](https://github.com/emberjs/ember.js/pull/19462) Use `positional` and `named` as the argument names in `ember g helper` blueprint
<ide>
<add>### v3.24.4 (May... | 1 |
Javascript | Javascript | add test for piping large input from stdin | 761787be9156758a3300f2aac50f92345055281c | <ide><path>test/parallel/test-stdin-pipe-large.js
<add>'use strict';
<add>// See https://github.com/nodejs/node/issues/5927
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const spawn = require('child_process').spawn;
<add>
<add>if (process.argv[2] === 'child') {
<add> proce... | 1 |
Javascript | Javascript | remove scrolleventthrottle defaultprops | 3c5fa3b6426e1a91b5344682c131f520344ac467 | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> type Props = {|
<ide>
<ide> type DefaultProps = {|
<ide> keyExtractor: (item: Item, index: number) => string,
<del> scrollEventThrottle: number,
<ide> updateCellsBatchingPeriod: number,
<ide> windowSize: number,
<ide> |};
<ide> function onEndReachedThresholdOr... | 1 |
Javascript | Javascript | finish the texture mapping implementation | c1034bc24bf6a36fff9d83e530279c044bb79829 | <ide><path>examples/js/renderers/SoftwareRenderer.js
<ide> THREE.SoftwareRenderer = function ( parameters ) {
<ide>
<ide> // UV interpolation setup
<ide>
<del> var dtu12 = tu1 - tu2, dtu23 = tu2 - tu3, dtu31 = tu3 - tu1;
<del>// var dtudx = (invDet * (dtu12*dy31 - du31*dy12)); // d... | 1 |
Text | Text | add note about uncloneable objects | 6ab768ea4a1418541ef1d971df4a8c0c2913f9b2 | <ide><path>doc/api/worker_threads.md
<ide> const otherChannel = new MessageChannel();
<ide> port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
<ide> ```
<ide>
<del>Because the object cloning uses the structured clone algorithm,
<del>non-enumerable properties, property accessors, and object protot... | 1 |
Python | Python | set version to v2.1.0a8.dev0 | 7f02464494b236c8a1db108aa81cd49c24af34c1 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7"
<add>__version__ = "2.1.0a8.dev0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
Javascript | Javascript | add test for transition.text | aeae92ca5c3ead614f23e952d454292f14988b37 | <ide><path>test/core/transition-test-text.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> return d3.select("body").append("div").text("foo").transition().text("bar");
<add> },
<add> "sets the text tween":... | 2 |
Javascript | Javascript | fix domproperty bitmask checking | 0e28f5e6d7fd1a960b92637053d2bb0859b67b36 | <ide><path>src/browser/ui/dom/DOMProperty.js
<ide>
<ide> var invariant = require('invariant');
<ide>
<add>function checkMask(value, bitmask) {
<add> return (value & bitmask) === bitmask;
<add>}
<add>
<ide> var DOMPropertyInjection = {
<ide> /**
<ide> * Mapping from normalized, camelcased property names to a con... | 2 |
Javascript | Javascript | stop mouseup propagation while inspecting | 18e337707a9dbfcd380deced8901cd1ec880d496 | <ide><path>src/backend/agent.js
<ide> export default class Agent extends EventEmitter {
<ide> startInspectingDOM = () => {
<ide> window.addEventListener('click', this._onClick, true);
<ide> window.addEventListener('mousedown', this._onMouseDown, true);
<add> window.addEventListener('mouseup', this._onMouse... | 1 |
Python | Python | ignore upcoming_changes from refguide | 5f332386617ba206ce8a448d0bc73bb2507ef5c5 | <ide><path>tools/refguide_check.py
<ide> 'changelog',
<ide> 'doc/release',
<ide> 'doc/source/release',
<add> 'doc/release/upcoming_changes',
<ide> 'c-info.ufunc-tutorial.rst',
<ide> 'c-info.python-as-glue.rst',
<ide> 'f2py.getting-started.rst', | 1 |
PHP | PHP | add return statement | 2ce1ed4eca81574d6929e350d5b9a6444797a0bb | <ide><path>src/Illuminate/Queue/SyncQueue.php
<ide> public function push($job, $data = '', $queue = null)
<ide> *
<ide> * @param \Illuminate\Queue\Jobs\Job $queueJob
<ide> * @param \Exception $e
<add> * @return void
<ide> *
<ide> * @throws \Exception
<ide> */ | 1 |
Text | Text | add model card | 72d6c9c68ba19b2e991b0d7a32989410399b33f5 | <ide><path>model_cards/sarnikowski/electra-small-discriminator-da-256-cased/README.md
<add>---
<add>language: da
<add>license: cc-by-4.0
<add>---
<add>
<add># Danish ELECTRA small (cased)
<add>
<add>An [ELECTRA](https://arxiv.org/abs/2003.10555) model pretrained on a custom Danish corpus (~17.5gb).
<add>For details re... | 1 |
Python | Python | use lemmatizer in code, not from downloaded model | f70be447464219db6ce306140844cf28fdc82843 | <ide><path>spacy/en/__init__.py
<ide> class Defaults(Language.Defaults):
<ide> tag_map = TAG_MAP
<ide> stop_words = STOP_WORDS
<ide>
<add> lemma_rules = dict(LEMMA_RULES)
<add> lemma_index = dict(LEMMA_INDEX)
<add> lemma_exc = dict(LEMMA_EXC)
<add>
<ide>
<ide> def __init__(sel... | 3 |
Javascript | Javascript | send a bad record only after connection done | 1f4c5bdbcab0ec89cabdc3d598d6bf2ab4f1894c | <ide><path>test/parallel/test-tls-alert-handling.js
<ide> server.listen(0, common.mustCall(function() {
<ide> sendClient();
<ide> }));
<ide>
<add>server.on('tlsClientError', common.mustNotCall());
<add>
<add>server.on('error', common.mustNotCall());
<ide>
<ide> function sendClient() {
<ide> const client = tls.con... | 1 |
Java | Java | fix crash when resolveview fails to find a view | 8e91843cc7da4a791e5fe78078998f1c30592863 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> package com.facebook.react.uimanager;
<ide>
<ide> import android.content.res.Resources;
<add>import android.util.Log;
<ide> import android.util.SparseArray;
<ide> import android.util.SparseBooleanArray;
<ide> impor... | 1 |
Text | Text | fix punctuation in tile | df62159296e9de8b04653ba999a32f9be7bb2a73 | <ide><path>README.md
<del>[jQuery](http://jquery.com/) - New Wave JavaScript
<add>[jQuery](http://jquery.com/) — New Wave JavaScript
<ide> ==================================================
<ide>
<ide> Contribution Guides | 1 |
Text | Text | fix punctuation marks and articles | 3a0974f7e7ae4535e24adb65f39ae38177ceb865 | <ide><path>guide/english/mathematics/2-by-2-determinants/index.md
<ide> title: 2 by 2 Determinants
<ide>
<ide> ## 2 by 2 Determinants
<ide>
<del>In linear algebra, the determinant of a two-by-two matrix is a useful quantity.Mostly it is used to calculate the area of the given quadilateral(convex polygons only) and is... | 1 |
Javascript | Javascript | add firstdayofweek, firstdayofyear locale getters | 4b378d1fd1e79e4863b23ec64ffc5c08b9651878 | <ide><path>moment.js
<ide> doy : 6 // The week that contains Jan 1st is the first week of the year.
<ide> },
<ide>
<add> firstDayOfWeek : function () {
<add> return this._week.dow;
<add> },
<add>
<add> firstDayOfYear : function () {
<add> return this._wee... | 2 |
Javascript | Javascript | cover node entry type in perf_hooks | 74ec01106d95d850417db71fb9e05a53f61d6017 | <ide><path>test/parallel/test-performanceobserver.js
<ide> assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_FUNCTION], 0);
<ide> countdown.dec();
<ide> }
<ide> assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_MARK], 0);
<del> observer.observe({ entryTypes: ['mark'] });
<add> assert.strictEqual(count... | 1 |
Text | Text | fix indentation + add backticks [ci skip] | c27991fc6387444070ec6a229fad37e1b413f04c | <ide><path>activesupport/CHANGELOG.md
<ide> * Add default option to module and class attribute accessors.
<ide>
<del> mattr_accessor :settings, default: {}
<add> mattr_accessor :settings, default: {}
<ide>
<ide> Works for `mattr_reader`, `mattr_writer`, `cattr_accessor`, `cattr_reader`,
<ide> a... | 1 |
Text | Text | adjust docs example [ci skip] | 8b4a0fabbb65fa701261bbb5136d8cd15f65a560 | <ide><path>website/docs/usage/rule-based-matching.md
<ide> matcher = Matcher(nlp.vocab, validate=True)
<ide> # Add match ID "HelloWorld" with unsupported attribute CASEINSENSITIVE
<ide> pattern = [{"LOWER": "hello"}, {"IS_PUNCT": True}, {"CASEINSENSITIVE": "world"}]
<ide> matcher.add("HelloWorld", None, pattern)
<del>
... | 1 |
Go | Go | add some lines back | a066b94ef0b4e7d90a6418429b056883e407b665 | <ide><path>daemon/graphdriver/driver.go
<ide> type ProtoDriver interface {
<ide> // String returns a string representation of this driver.
<ide> String() string
<ide> // Create creates a new, empty, filesystem layer with the
<add> // specified id and parent. Parent may be "".
<ide> Create(id, parent string) error
<... | 1 |
Javascript | Javascript | avoid emit() eager deopt | e52fee50a08c9d9ca6215149cc8e8c0b174e32dd | <ide><path>lib/events.js
<ide> EventEmitter.prototype.emit = function emit(type) {
<ide>
<ide> // If there is no 'error' event listener then throw.
<ide> if (doError) {
<del> er = arguments[1];
<add> if (arguments.length > 1)
<add> er = arguments[1];
<ide> if (domain) {
<ide> if (!er)
<ide> ... | 1 |
Text | Text | add a security note to the 1.3.2 log | b6fd184a93937765a7a5d13de8e676880ea75fa5 | <ide><path>CHANGELOG.md
<ide> [#9926](https://github.com/angular/angular.js/issues/9926), [#9871](https://github.com/angular/angular.js/issues/9871))
<ide>
<ide>
<add>## Security Note
<add>
<add>This release also contains security fixes for expression sandbox bypasses.
<add>
<add>These issues affect only applicat... | 1 |
Java | Java | respect context path in webmvc.fn & webflux.fn | d550d344d55e0b410f517069bb7d6e4cd816617e | <ide><path>spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java
<ide> import org.springframework.http.MediaType;
<ide> import org.springframework.http.codec.HttpMessageReader;
<ide> import org.springframework.http.codec.multipart.Part;
<del>import org.springframework.ht... | 14 |
Javascript | Javascript | remove a few old deprecation warnings | f47ad10db7ad69aa2bc4ab0d4bdb0b3ac805692b | <ide><path>src/node.js
<ide> function removed (reason) {
<ide> }
<ide> }
<ide>
<del>GLOBAL.__module = removed("'__module' has been renamed to 'module'");
<del>GLOBAL.include = removed("include(module) has been removed. Use require(module)");
<del>GLOBAL.puts = removed("puts() has moved. Use require('sys') to bring i... | 2 |
Javascript | Javascript | simplify the `readablestream` polyfill | e2aa067603e4ad136f67bee907797a1f7724a8bc | <ide><path>src/shared/compatibility.js
<ide> if (
<ide> (typeof PDFJSDev === "undefined" || !PDFJSDev.test("SKIP_BABEL")) &&
<ide> (typeof globalThis === "undefined" || !globalThis._pdfjsCompatibilityChecked)
<ide> ) {
<del> // Provides support for globalThis in legacy browsers.
<del> // Support: Firefox<65, Chro... | 1 |
Python | Python | fix flake8 errors | f978b342237bd0f1705812f600c2571c35825304 | <ide><path>libcloud/compute/drivers/packet.py
<ide> from libcloud.common.base import ConnectionKey, JsonResponse
<ide> from libcloud.compute.types import Provider, NodeState, InvalidCredsError
<ide> from libcloud.compute.base import NodeDriver, Node
<del>from libcloud.compute.providers import get_driver
<ide> from libc... | 1 |
Javascript | Javascript | fix the encoding problem for truetype | b3b03224460a2fc7095a27ad95cfc46beb51499e | <ide><path>pdf.js
<ide> var CanvasExtraState = (function() {
<ide> const Encodings = {
<ide> get ExpertEncoding() {
<ide> return shadow(this, "ExpertEncoding", [
<add> null, null, null, null, null, null, null, null, null, null, null,
<add> null, null, null, null, null, null, null, null, null, null, null... | 1 |
Python | Python | improve gpt2 doc | f210e2a414711b43fa66abaa271ac82923284f85 | <ide><path>src/transformers/models/gpt2/modeling_gpt2.py
<ide> def forward(
<ide> r"""
<ide> mc_token_ids (`torch.LongTensor` of shape `(batch_size, num_choices)`, *optional*, default to index of the last token of the input):
<ide> Index of the classification token in each input sequence. Se... | 2 |
Text | Text | fix cvt_text citation | d44156002142407ae311bc027e574cf0abb5974c | <ide><path>research/cvt_text/README.md
<ide> Run `python cvt.py --mode=train --model_name=chunking_model`. By default this tr
<ide> Run `python cvt.py --mode=eval --model_name=chunking_model`. A CVT model trained on the chunking data for 200k steps should get at least 97.1 F1 on the dev set and 96.6 F1 on the test set.... | 1 |
Javascript | Javascript | use relative links | 5cbe99eced65594f6f82102187f1d5f75e86ebcf | <ide><path>client/src/components/Header/components/SignedIn.js
<ide> import React from 'react';
<ide> import PropTypes from 'prop-types';
<add>import { Link } from 'gatsby';
<ide> import { connect } from 'react-redux';
<ide> import { createSelector } from 'reselect';
<ide>
<ide> const mapStateToProps = createSelector(... | 1 |
Text | Text | add cask maintainer guide | 0f472906222c16c4d33265446cb5ddcc0c41e788 | <ide><path>docs/Cask-Maintainer-Guide.md
<add># Cask Maintainer Guide
<add>
<add>This guide is intended to help maintainers effectively maintain the cask repositories.
<add>It is meant to be used in conjunction with the more generic [Maintainer Guidelines](Maintainer-Guidelines.md).
<add>
<add>This guide applies to all... | 2 |
Python | Python | fix objective tests | 217cdd8b8517f54323e705cced749017274241d2 | <ide><path>tests/keras/test_objectives.py
<ide> from keras import backend as K
<ide>
<ide>
<del>allobj = [objectives.mean_squared_error, objectives.root_mean_squared_error,
<del> objectives.mean_absolute_error, objectives.mean_absolute_percentage_error,
<del> objectives.mean_squared_logarithmic_erro... | 1 |
Ruby | Ruby | remove updated_at from templates | 80c0ae7de867071ea6abee865364092783ca3d0a | <ide><path>actionview/lib/action_view/file_template.rb
<ide> def refresh(_)
<ide> # to ensure that references to the template object can be marshalled as well. This means forgoing
<ide> # the marshalling of the compiler mutex and instantiating that again on unmarshalling.
<ide> def marshal_dump # :nodoc:
<d... | 4 |
PHP | PHP | allow eloquent model type in be/actingas | b1ed53e5a4cc11730ad5eda8d2d5adb6424421ce | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php
<ide> trait InteractsWithAuthentication
<ide> /**
<ide> * Set the currently logged in user for the application.
<ide> *
<del> * @param \Illuminate\Contracts\Auth\Authenticatable $user
<add> * @param \Illuminat... | 1 |
Python | Python | use relation in ti join to rtif | d5c039d2f1314a3f37842d9056a8ee1f0038dd90 | <ide><path>airflow/api_connexion/endpoints/task_instance_endpoint.py
<ide> from airflow.api_connexion.types import APIResponse
<ide> from airflow.models import SlaMiss
<ide> from airflow.models.dagrun import DagRun as DR
<del>from airflow.models.renderedtifields import RenderedTaskInstanceFields as RTIF
<ide> from airf... | 2 |
Go | Go | extract saving options to a separate method | c0f0cf6c19f9f6573b5db5b2c82adf9f5ea9c783 | <ide><path>volume/local/local.go
<ide> func (r *Root) Create(name string, opts map[string]string) (volume.Volume, error
<ide> }
<ide> }()
<ide>
<del> if len(opts) != 0 {
<del> if err = v.setOpts(opts); err != nil {
<del> return nil, err
<del> }
<del> var b []byte
<del> b, err = json.Marshal(v.opts)
<del> if ... | 2 |
Java | Java | improve mappingregistry tests and polish | 4a8baebf5908c0734a1297bb20e72268fa48979a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java
<ide> public List<HandlerMethod> getHandlerMethodsForMappingName(String mappingName) {
<ide> return this.mappingRegistry.getHandlerMethodsByMappingName(mappingName);
<ide> }
<ide>
<add> /**
<add> * Retu... | 2 |
Python | Python | add extra arguments to corrcoef | 6eec749b27cf8787177585df601795d92f31e643 | <ide><path>numpy/lib/function_base.py
<ide> def cov(m,y=None, rowvar=1, bias=0):
<ide> else:
<ide> return (dot(X,X.transpose().conj())/fact).squeeze()
<ide>
<del>def corrcoef(x, y=None):
<add>def corrcoef(x, y=None, rowvar=1, bias=0):
<ide> """The correlation coefficients
<ide> """
<del> c =... | 1 |
Ruby | Ruby | escape `.`s in hostnames in regexps | aa36b343cab9a998d6e5359df8921200ba37ba3f | <ide><path>Library/Homebrew/rubocops/urls.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> end
<ide>
<ide> # GNU URLs; doesn't apply to mirrors
<del> gnu_pattern = %r{^(?:https?|ftp)://ftpmirror.gnu.org/(.*)}
<add> gnu_pattern = %r{^(?:https?|ftp... | 1 |
Javascript | Javascript | handle nested fragments in totree | ef8d6d92a28835a8ab89a876f877306a5c3feffe | <ide><path>packages/react-test-renderer/src/ReactTestRenderer.js
<ide> function toTree(node: ?Fiber) {
<ide> };
<ide> case HostText: // 6
<ide> return node.stateNode.text;
<add> case Fragment: // 10
<add> return toTree(node.child);
<ide> default:
<ide> invariant(
<ide> false,
<... | 2 |
Ruby | Ruby | update bundled version of rack before 2.3 final | 572e0aac802334d2029e67eb1e87356d890f4255 | <ide><path>actionpack/lib/action_controller/vendor/rack-1.0/rack.rb
<ide> def self.release
<ide> autoload :CommonLogger, "rack/commonlogger"
<ide> autoload :ConditionalGet, "rack/conditionalget"
<ide> autoload :ContentLength, "rack/content_length"
<add> autoload :ContentType, "rack/content_type"
<ide> autoload... | 10 |
Python | Python | fix array_almost_equal for array subclasses | dfc567790badcc87822a39f5c35f0dd78b8c1599 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_inf(self):
<ide> self.assertRaises(AssertionError,
<ide> lambda : self._assert_func(a, b))
<ide>
<add> def test_subclass(self):
<add> a = np.array([[1., 2.], [3., 4.]])
<add> b = np.ma.masked_array([[1., 2.], [0., 4.]]... | 2 |
Javascript | Javascript | expand nodeeventtarget functionality | 16b11cd2adaa5f60382a7f205f893f38a5061fff | <ide><path>lib/internal/event_target.js
<ide> const kEvents = Symbol('kEvents');
<ide> const kStop = Symbol('kStop');
<ide> const kTarget = Symbol('kTarget');
<ide>
<add>const kHybridDispatch = Symbol.for('nodejs.internal.kHybridDispatch');
<add>const kCreateEvent = Symbol('kCreateEvent');
<ide> const kNewListener = S... | 1 |
Go | Go | move "image_tag" and "tag" to graph/tag.go | d7879379571e778b30973874df22fed3266cbb8f | <ide><path>graph/service.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/engine"
<ide> "github.com/docker/docker/image"
<del> "github.com/docker/docker/pkg/parsers"
<ide> "github.com/docker/docker/utils"
<ide> )
<ide>
<ide> func (s *TagStore) Install(eng *engine.Engine) error {
<ide> eng.Register("image_s... | 4 |
Java | Java | move nativemodule initialization off ui thread | b08521523780e2104465d007ef664cc69b5c90d9 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java
<ide> import com.facebook.react.bridge.JavaScriptModuleRegistry;
<ide> import com.facebook.react.bridge.NativeModule;
<ide> import com.facebook.react.bridge.NativeModuleCallExceptionHandler;
<add>import com.facebook.react.bridg... | 10 |
Python | Python | fix flaky test | d5ae6f32dd1136226e7bd7a63a2120c317668d1e | <ide><path>tests/integration_tests/test_temporal_data_tasks.py
<ide> def test_temporal_classification():
<ide> '''
<ide> np.random.seed(1337)
<ide> (X_train, y_train), (X_test, y_test) = get_test_data(nb_train=500,
<del> nb_test=200,
<add> ... | 1 |
Text | Text | add v3.2.0-beta.2 to changelog | c77ddd2edbaf5595c4ddbea114a7eda50c55a727 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.2.0-beta.2 (April 16, 2018)
<add>
<add>- [#16493](https://github.com/emberjs/ember.js/pull/16493) [BUGFIX] Ensure proxies have access to `getOwner(this)`.
<add>- [#16494](https://github.com/emberjs/ember.js/pull/16494) [BUGFIX] Adjust assertion to allow... | 1 |
Ruby | Ruby | add missing require for enumerable#index_with | 0d0eb93b16117fd35f4ee1b12b01c115c676c87c | <ide><path>activemodel/lib/active_model/attribute_set.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "active_support/core_ext/enumerable"
<ide> require "active_support/core_ext/object/deep_dup"
<ide> require "active_model/attribute_set/builder"
<ide> require "active_model/attribute_set/yaml_encoder" | 1 |
PHP | PHP | update laravel version | a4ea877d2bb6a68796b244a741594968796c1c4e | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements ApplicationContract, HttpKernelIn
<ide> *
<ide> * @var string
<ide> */
<del> const VERSION = '5.1.22 (LTS)';
<add> const VERSION = '5.1.23 (LTS)';
<ide>
<ide> /**
<ide> * The base pat... | 1 |
Javascript | Javascript | add property for rangeerror in test-buffer-copy | a6e836a657d6fd159868a3c05e22562afdbe0c9d | <ide><path>test/parallel/test-buffer-copy.js
<ide> 'use strict';
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide>
<ide> const b = Buffer.allocUnsafe(1024);
<ide> const c = Buffer.allocUnsafe(512);
<add>
<add>const errorProperty = {
<add> code: '... | 1 |
Javascript | Javascript | remove line breaks at function calls | 6d64a0616e2223061010ef7c771b7d6843e3e35c | <ide><path>src/objects/Mesh.js
<ide> THREE.Mesh.prototype.raycast = ( function () {
<ide> b = indices[ i + 1 ];
<ide> c = indices[ i + 2 ];
<ide>
<del> intersection = checkBufferGeometryIntersection( this, raycaster, ray,
<del> positions, uvs, a, b, c );
<add> intersection = check... | 1 |
Text | Text | improve process around `prs plz!` label | 2907a0288b20b3ed9ded39f4c7425dcc522bf8ab | <ide><path>TRIAGING.md
<ide> This process based on the idea of minimizing user pain
<ide> * inconvenience - causes ugly/boilerplate code in apps
<ide> 1. Label `component: *`
<ide> * In rare cases, it's ok to have multiple components.
<del>1. Label `PRs plz!` - These issues are good targets for PRs from the ope... | 1 |
PHP | PHP | fix partial empty option for datetime | 71128997584e8d54cc830487fab8a718bc9f271d | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _datetimeOptions($options)
<ide> $options[$type] = [];
<ide> }
<ide>
<del> // Pass empty options to each type.
<del> if (!empty($options['empty']) &&
<del> is_array($options[$type])
<del>... | 2 |
Go | Go | remove the retries for service update | 7380935331f0c35315003578258f6c1f47c1a586 | <ide><path>integration-cli/daemon/daemon_swarm.go
<ide> func (d *Swarm) CheckLeader(c *check.C) (interface{}, check.CommentInterface) {
<ide> }
<ide> return fmt.Errorf("no leader"), check.Commentf("could not find leader")
<ide> }
<del>
<del>// CmdRetryOutOfSequence tries the specified command against the current daem... | 3 |
Text | Text | restore original readme.md | 402fbec638c7133e2f5fda29f5cfd8c47208cc92 | <ide><path>language-adaptors/rxjava-scala/README.md
<add># Scala Adaptor for RxJava
<add>
<add>This adaptor allows to use RxJava in Scala with anonymous functions, e.g.
<add>
<add>```scala
<add>val o = Observable.interval(200 millis).take(5)
<add>o.subscribe(n => println("n = " + n))
<add>Observable(1, 2, 3, 4).reduce(... | 1 |
Python | Python | fix stray order_by(taskinstance.execution_date) | bb577a98494369b22ae252ac8d23fb8e95508a1c | <ide><path>airflow/models/baseoperator.py
<ide> def get_task_instances(
<ide> end_date: Optional[datetime] = None,
<ide> session: Session = NEW_SESSION,
<ide> ) -> List[TaskInstance]:
<del> """
<del> Get a set of task instance related to this task for a specific date
<del> range... | 1 |
Ruby | Ruby | allow skip_clean as a class method | cacf8d8aa4682ccb66738c98e93038a9a73b99be | <ide><path>Library/Homebrew/formula.rb
<ide> def download_strategy
<ide> else HttpDownloadStrategy
<ide> end
<ide> end
<del> # tell the user about any caveats regarding this package
<add>
<add> # tell the user about any caveats regarding this package, return a string
<ide> def caveats; nil end
<add>
<ide>... | 1 |
Ruby | Ruby | move brew-audit to cmds | c5c1f40d0a5f0fa0643b11949365735f16b55e3e | <add><path>Library/Homebrew/cmd/audit.rb
<del><path>Library/Contributions/examples/brew-audit.rb
<ide> def audit_formula_options f, text
<ide> def audit_formula_urls f
<ide> problems = []
<ide>
<del> # To do:
<del> # Grab URLs out of patches as well
<del> # urls = ((f.patches rescue []) || [])
<del>
<ide> urls ... | 1 |
Javascript | Javascript | fix a bug with zero-delay transitions | fd101894588e218dcd3ea4e2ece7765462a566f8 | <ide><path>d3.js
<ide> try {
<ide> d3_style_setProperty.call(this, name, value + "", priority);
<ide> };
<ide> }
<del>d3 = {version: "2.1.0"}; // semver
<add>d3 = {version: "2.1.1"}; // semver
<ide> var d3_arraySubclass = [].__proto__?
<ide>
<ide> // Until ECMAScript supports array subclassing, prototype injecti... | 4 |
Ruby | Ruby | fix nil modification time | 14cba7f648f0ccd2235cbd815855abe6cb909c1a | <ide><path>Library/Homebrew/tab.rb
<ide> def version_scheme
<ide> end
<ide>
<ide> def source_modified_time
<del> Time.at(super)
<add> Time.at(super || 0)
<ide> end
<ide>
<ide> def to_json(options = nil) | 1 |
Java | Java | improve jndi detection logic | 2077388f383c9c57fcf9473b3def51dacea3cdf3 | <ide><path>spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java
<ide> public static JndiLocatorDelegate createDefaultResourceRefLocator() {
<ide> */
<ide> public static boolean isDefaultJndiEnvironmentAvailable() {
<ide> try {
<del> new InitialContext();
<add> new InitialContext().get... | 2 |
PHP | PHP | remove usage of deprecated ``type()`` method | d33aa5a7689595ff9d35d8a5dec37c2ec840d4aa | <ide><path>src/Database/Query.php
<ide> public function update($table)
<ide> public function set($key, $value = null, $types = [])
<ide> {
<ide> if (empty($this->_parts['set'])) {
<del> $this->_parts['set'] = $this->newExpr()->type(',');
<add> $this->_parts['set'] = $this->newExpr(... | 2 |
Go | Go | add named context support | 87512bbc8490aca261133a7f3a3ea6518d703c34 | <ide><path>builder/dockerfile/dispatchers.go
<ide> func dispatchCopy(b *Builder, args []string, attributes map[string]bool, origina
<ide>
<ide> var contextID *int
<ide> if flFrom.IsUsed() {
<del> var err error
<del> context, err := strconv.Atoi(flFrom.Value)
<del> if err != nil {
<del> return errors.Wrap(err, "... | 4 |
Javascript | Javascript | add support for string/boolean/number object types | 7b51243be597900b1f765495dadfea5fccd2228e | <ide><path>src/Angular.js
<ide> function copy(source, destination) {
<ide> }
<ide>
<ide> var needsRecurse = false;
<del> var destination;
<add> var destination = copyType(source);
<ide>
<del> if (isArray(source)) {
<del> destination = [];
<del> needsRecurse = true;
<del> } else if (isTyp... | 2 |
Ruby | Ruby | handle unavailable missing formulae | e63d490874dd57d363643e49d6a7ce8fe17818d2 | <ide><path>Library/Homebrew/formula.rb
<ide> def missing_dependencies(hide: nil)
<ide> runtime_formula_dependencies.select do |f|
<ide> hide.include?(f.name) || f.installed_prefixes.empty?
<ide> end
<add> # If we're still getting unavailable formulae at this stage the best we can
<add> # do is just retu... | 1 |
Go | Go | introduce discoverapi.discover interface | 247e8034b81c6631db8017263f3e6fa7041914e8 | <ide><path>libnetwork/controller.go
<ide> import (
<ide> "github.com/docker/docker/pkg/stringid"
<ide> "github.com/docker/libnetwork/config"
<ide> "github.com/docker/libnetwork/datastore"
<add> "github.com/docker/libnetwork/discoverapi"
<ide> "github.com/docker/libnetwork/driverapi"
<ide> "github.com/docker/libnet... | 13 |
Python | Python | fix lint errors | 122bb0129fde57cf310af1a698f10e9d3ce1a078 | <ide><path>official/utils/misc/distribution_utils.py
<ide> import tensorflow as tf
<ide>
<ide>
<del>def get_distribution_strategy(
<del> num_gpus, all_reduce_alg=None, turn_off_distribution_strategy=False):
<add>def get_distribution_strategy(num_gpus,
<add> all_reduce_alg=None,
<add> ... | 1 |
Ruby | Ruby | define the configuration at active support | 53e877f7d9291b2bf0b8c425f9e32ef35829f35b | <ide><path>activesupport/lib/active_support.rb
<ide> def self.eager_load!
<ide>
<ide> NumberHelper.eager_load!
<ide> end
<add>
<add> @@test_order = nil
<add>
<add> def self.test_order=(new_order)
<add> @@test_order = new_order
<add> end
<add>
<add> def self.test_order
<add> @@test_order
<add> end
<ide... | 4 |
Go | Go | fix race in attachable network attachment | c379d2681ffe8495a888fb1d0f14973fbdbdc969 | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) updateNetwork(container *container.Container) error {
<ide> }
<ide>
<ide> func (daemon *Daemon) findAndAttachNetwork(container *container.Container, idOrName string, epConfig *networktypes.EndpointSettings) (libnetwork.Network, *networktypes.Network... | 2 |
Java | Java | check all handlermapping beans for named mappings | e6fef9555da4f887eb1cfa37428c97e6d2d430d2 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
<ide> public static MethodArgumentBuilder fromMappingName(String mappingName) {
<ide> */
<ide> public static MethodArgumentBuilder fromMappingName(@Nullable UriComponentsBuilder builder, String n... | 1 |
Python | Python | increase default number of epochs | a955843684cdbc5c2ac26a89bf2b1b3efeebbaff | <ide><path>spacy/cli/train.py
<ide> version=("Model version", "option", "V", str),
<ide> meta_path=("Optional path to meta.json. All relevant properties will be overwritten.", "option", "m", Path)
<ide> )
<del>def train(cmd, lang, output_dir, train_data, dev_data, n_iter=10, n_sents=0,
<add>def train(cmd, lang,... | 1 |
Javascript | Javascript | use path library to normalize filepath | d77e161f99d09c55ca3134419cc2428df331d96e | <ide><path>scripts/jest/ts-preprocessor.js
<ide> function compile(content, contentFilename) {
<ide> var output = null;
<ide> var compilerHost = {
<ide> getSourceFile: function(filename, languageVersion) {
<del> var source, reactRegex;
<add> var source;
<ide>
<del> // Accomodations for backslashe... | 1 |
PHP | PHP | remove unused function | 7cb429ab6d5ec273cbb2b9d38644a9b53944b6e3 | <ide><path>src/View/BakeView.php
<ide> protected function _evaluate($viewFile, $dataForView) {
<ide> return str_replace(array_values($unPhp), array_keys($unPhp), $content);
<ide> }
<ide>
<del>/**
<del> * Returns filename of given template file (.ctp) as a string.
<del> * CamelCased template names will be under_scor... | 1 |
Go | Go | fix error message in export | 8b31d30601f487bca5e4985c6a14b89e47ac83be | <ide><path>api.go
<ide> func getContainersExport(srv *Server, w http.ResponseWriter, r *http.Request, va
<ide>
<ide> if err := srv.ContainerExport(name, w); err != nil {
<ide> Debugf("%s", err.Error())
<del> //return nil, err
<add> return err
<ide> }
<ide> return nil
<ide> }
<ide><path>commands.go
<ide> func st... | 2 |
Go | Go | make tests less dependent on others | fe6706a2ce086304001fb812a41ed28c88f15c6c | <ide><path>libnetwork/libnetwork_linux_test.go
<ide> var (
<ide> testns = netns.None()
<ide> )
<ide>
<add>var createTesthostNetworkOnce sync.Once
<add>
<add>func getTesthostNetwork(t *testing.T) libnetwork.Network {
<add> t.Helper()
<add> createTesthostNetworkOnce.Do(func() {
<add> _, err := createTestNetwork("host... | 1 |
Javascript | Javascript | parse json only when template is needed | d2a4f10f77e75f48453de49f5eb85c32fd33d625 | <ide><path>packages/ember-template-compiler/lib/system/template.js
<ide> if (isEnabled('ember-glimmer')) {
<ide> }
<ide>
<ide> template = function(json) {
<del> let spec = JSON.parse(json);
<del>
<ide> return class extends Wrapper {
<ide> constructor(options) {
<ide> super(options);
<del> ... | 1 |
Ruby | Ruby | add statement when upgrade won't be installed | 1f43bf32a4b1724d4cbedb81188f84eea93da491 | <ide><path>Library/Homebrew/cask/cmd/upgrade.rb
<ide> def self.upgrade_casks(
<ide> casks.select do |cask|
<ide> raise CaskNotInstalledError, cask if !cask.installed? && !force
<ide>
<del> cask.outdated?(greedy: true)
<add> if cask.outdated?(greedy: true)
<add> ... | 1 |
Text | Text | add usage docs for streamed train corpora | 673e2bc4c0ca46f1c026e0823d32f35c52d2f38e | <ide><path>website/docs/api/data-formats.md
<ide> process that are used when you run [`spacy train`](/api/cli#train).
<ide> | `frozen_components` | Pipeline component names that are "frozen" and shouldn't be initialized or updated during training. See [here](/usage/training#config-components) for details. Defaults to... | 2 |
Javascript | Javascript | detect @types/ package for compiled packages | 8d219c23712441f5d5abae580e8c7924151a2806 | <ide><path>packages/next/taskfile-ncc.js
<ide> function writePackageManifest (packageName) {
<ide> let typesFile = types || typings
<ide> if (typesFile) {
<ide> typesFile = require.resolve(join(packageName, typesFile))
<add> } else {
<add> try {
<add> const typesPackage = `@types/${packageName}`
<add>
... | 1 |
Mixed | Javascript | assign error codes to remaining errors | ab8bf26994677a5f0823b3810668f6cfa18374d9 | <ide><path>doc/api/errors.md
<ide> Encoding provided to `util.TextDecoder()` API was not one of the
<ide> A `Promise` that was callbackified via `util.callbackify()` was rejected with a
<ide> falsy value.
<ide>
<add><a id="ERR_FS_FILE_TOO_LARGE"></a>
<add>### ERR_FS_FILE_TOO_LARGE
<add>
<add>An attempt has been made t... | 7 |
Javascript | Javascript | add crypto modules to cannotusecache | 47062f12a7095658f1f7cff7d25234ea21a839cf | <ide><path>lib/internal/bootstrap/cache.js
<ide> if (!process.versions.openssl) {
<ide> 'internal/crypto/util',
<ide> 'internal/http2/core',
<ide> 'internal/http2/compat',
<add> 'internal/policy/manifest',
<add> 'internal/process/policy',
<ide> 'internal/streams/lazy_transform',
<ide> );
<ide> } | 1 |
Javascript | Javascript | remove options object | fd1a1325f309929777a2812f1c70f24161257286 | <ide><path>packager/react-packager/src/Bundler/index.js
<ide> class Bundler {
<ide> cacheKey: transformCacheKey,
<ide> });
<ide>
<del> this._transformer = new Transformer({
<del> transformModulePath: opts.transformModulePath,
<del> });
<add> /* $FlowFixMe: in practice it's always here. */
<add>... | 3 |
Javascript | Javascript | fix linting issues | 8149c5e1f15dfeeb07764f4130c6bd76d6ff74de | <ide><path>examples/code-splitted-css-bundle/webpack.config.js
<del>const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
<del>
<add>const LoaderOptionsPlugin = require("../../lib/LoaderOptionsPlugin");
<ide> const ExtractTextPlugin = require("extract-text-webpack-plugin");
<ide> module.exports = {
<ide> ... | 4 |
Python | Python | fix file_utils on python 2 | fa765202402499486efd1cb3484c5e70555479c2 | <ide><path>pytorch_pretrained_bert/file_utils.py
<ide> def get_from_cache(url, cache_dir=None):
<ide> meta = {'url': url, 'etag': etag}
<ide> meta_path = cache_path + '.json'
<ide> with open(meta_path, 'w', encoding="utf-8") as meta_file:
<del> meta_file.write(json.dum... | 1 |
Go | Go | move auth header on run cmd | ded973219e997f52634eb18d0cfe828472412dd8 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> if err != nil {
<ide> return err
<ide> }
<del> v.Set("authConfig", base64.URLEncoding.EncodeToString(buf))
<ide>
<del> err = cli.stream("POST", "/images/create?"+v.Encode(), nil, cli.err, nil)
<add> registryAuthHeader := ... | 1 |
Text | Text | add section on blockchain consensus protocols | 7b68723cf5d855c1876706170df41f59adf1c985 | <ide><path>guide/english/blockchain/cryptocurrency/index.md
<ide> Artist have to deal through intermediaries to get your work sold. This can be so
<ide>
<ide> There are many more ways that cryptocurrency is changing aspects of our lives; ranging from economic to social. As crypto gains popularity more and more uses wi... | 1 |
Ruby | Ruby | fix example code of `eachvalidator` [ci skip] | 524f7b494a758f554d899f11bcbc9827cec6d963 | <ide><path>activemodel/lib/active_model/validator.rb
<ide> module ActiveModel
<ide> # include ActiveModel::Validations
<ide> # attr_accessor :title
<ide> #
<del> # validates :title, presence: true
<add> # validates :title, presence: true, title: true
<ide> # end
<ide> #
<ide> # It can be... | 1 |
Java | Java | add serverhttprequest builder | 3df902c6cc62770d5ef49f18fac8a3f6e35e7526 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance wit... | 4 |
Text | Text | update changelog for 2.10.0 | 010e11ce7a55201f4defab08b961ab05efdaf0f0 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.10.0
<add>
<add>Ported code to es6 modules.
<add>
<ide> ### 2.9.0 [See full changelog](https://gist.github.com/ichernev/0c9a9b49951111a27ce7)
<ide>
<ide> languages: | 1 |
Python | Python | remove retry for now | 8d16638285687fd0ef41d40340ab1c5bcffd507a | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> def execute(self, context):
<ide>
<ide> return None
<ide>
<del> @AwsBaseHook.retry(should_retry)
<ide> def _start_task(self):
<ide> run_opts = {
<ide> 'cluster': self.cluster, | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.