content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Java
Java
introduce mockrestserviceserver builder
a56c69c9ca410b2a04d946a1199fe1dc10b89f5b
<ide><path>spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java <ide> public AbstractRequestExpectationManager(List<RequestExpectation> expectations) <ide> } <ide> <ide> <del> @Override <ide> public List<RequestExpectation> getExpectations() { <ide> return this.expe...
5
Javascript
Javascript
simplify a module in hotcase
d7605cae25bd0ed7d07ac932c5fec33f2bed35e2
<ide><path>test/hotCases/runtime/require-disposed-module-warning/a.js <ide> export default module; <del>--- <del>--- <del>export default "a2";
1
Javascript
Javascript
set the url even if the browser transforms it
51cfb61e46c18a4aac27340120a276dda1112637
<ide><path>src/ng/browser.js <ide> function Browser(window, document, $log, $sniffer) { <ide> // Do the assignment again so that those two variables are referentially identical. <ide> lastHistoryState = cachedState; <ide> } else { <del> if (!sameBase || pendingLocation) { <add> if (!...
2
Ruby
Ruby
update minimumsystemversion condition
4433f4a985e92526bd77705039a3dcbb6d128956
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.item_from_content(content) <ide> <ide> next if os && os != "osx" <ide> <del> if OS.mac? && (minimum_system_version = (item > "minimumSystemVersion").first&.text&.strip) <add> if (minimum_system_version = item.el...
1
Javascript
Javascript
add more options
1ee8c0c2c01186d1e7f85a592b558235596d51be
<ide><path>RNTester/js/examples/Layout/LayoutAnimationExample.js <ide> const { <ide> TouchableOpacity, <ide> } = require('react-native'); <ide> <del>class AddRemoveExample extends React.Component<{...}, $FlowFixMeState> { <add>type ExampleViewSpec = {| <add> key: number, <add>|}; <add> <add>type AddRemoveExampleSta...
1
Ruby
Ruby
remove m4 macro warning
c6a8dd247e4c31ca1e9e2dba613fae9b9e65b78a
<ide><path>Library/Homebrew/formula_installer.rb <ide> def caveats <ide> audit_lib <ide> check_manpages <ide> check_infopages <del> check_m4 <ide> end <ide> <ide> keg = Keg.new(f.prefix) <ide> def audit_lib <ide> check_jars <ide> check_non_libraries <ide> end <del> <del> def c...
1
Java
Java
fix broken test in contentassertiontests
33ee0ea4a6eb4a47e4a4291e36124ec631a2f814
<ide><path>spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/ContentAssertionTests.java <ide> public void testContentType() throws Exception { <ide> this.mockMvc.perform(get("/handleUtf8")) <ide> .andExpect(content().contentType(MediaType.valueOf("text/plain;chars...
1
Ruby
Ruby
fix arity warning for template handlers
b2b2f70f1f81b54b799118e8a4feb601ab480c41
<ide><path>actionview/lib/action_view/template/handlers.rb <ide> def register_template_handler(*extensions, handler) <ide> <ide> unless params.find_all { |type, _| type == :req || type == :opt }.length >= 2 <ide> ActiveSupport::Deprecation.warn <<~eowarn <del> Single arity template handlers ...
1
Go
Go
add docker tag tests
c496f24157afd81c9a26f5746175236485e97fa7
<ide><path>integration-cli/docker_cli_tag_test.go <ide> package main <ide> import ( <ide> "fmt" <ide> "os/exec" <add> "strings" <ide> "testing" <ide> ) <ide> <ide> func TestTagValidPrefixedRepo(t *testing.T) { <ide> logDone(logMessage) <ide> } <ide> } <add> <add>// tag an image with an existed tag name without -...
1
Javascript
Javascript
add test for frozencopy deprecation
013f797d22d9ac71bbb01d71bacbcc5ab681ca02
<ide><path>packages/ember-runtime/lib/mixins/copyable.js <ide> export default Mixin.create({ <ide> @private <ide> */ <ide> frozenCopy() { <del> Ember.deprecate('`frozenCopy` is deprecated, use Object.freeze instead.'); <add> Ember.deprecate('`frozenCopy` is deprecated, use `Object.freeze` instead.'); <ide...
2
Javascript
Javascript
remove redundant guards for the event methods
a873558436383beea7a05fd07db7070a30420100
<ide><path>src/event.js <ide> jQuery.Event.prototype = { <ide> <ide> this.isDefaultPrevented = returnTrue; <ide> <del> if ( e && e.preventDefault ) { <add> if ( e ) { <ide> e.preventDefault(); <ide> } <ide> }, <ide> jQuery.Event.prototype = { <ide> <ide> this.isPropagationStopped = returnTrue; <ide> <de...
1
PHP
PHP
pull makes now use of array_pull
c0eaab9554bc2971d8eb92261d36944f7657349b
<ide><path>src/Illuminate/Support/Collection.php <ide> public function push($value) <ide> */ <ide> public function pull($key, $default = null) <ide> { <del> $value = $this->get($key, $default); <del> <del> $this->forget($key); <del> <del> return $value; <add> return array_pull($this->items, $key, $default); <id...
1
Text
Text
fix some typos in n-api docs
484c6c31b068fb64fa8b4bd46b82bc09a54a6a17
<ide><path>doc/api/errors.md <ide> value. <ide> <ide> On the main thread, values are removed from the queue associated with the <ide> thread-safe function in an idle loop. This error indicates that an error <del>has occurred when attemping to start the loop. <add>has occurred when attempting to start the loop. <ide> ...
2
Ruby
Ruby
pass chdir block to stage
1cc983f00d552da17336405460e3adc001c95ba5
<ide><path>Library/Homebrew/download_strategy.rb <ide> def quiet? <ide> # Unlike {Resource#stage}, this does not take a block. <ide> # <ide> # @api public <del> def stage <add> def stage(&block) <ide> UnpackStrategy.detect(cached_location, <ide> prioritise_extension: true, <ide> ...
2
Python
Python
add cli argument for configuring labels
99b189df6de71b2f01d6f72e6b1f4aa74455275b
<ide><path>examples/run_ner.py <ide> def set_seed(args): <ide> torch.cuda.manual_seed_all(args.seed) <ide> <ide> <del>def train(args, train_dataset, model, tokenizer, pad_token_label_id): <add>def train(args, train_dataset, model, tokenizer, labels, pad_token_label_id): <ide> """ Train the model """ <ide>...
2
Go
Go
simplify code logic
c6894aa49246183deddc367d3adf696311fb7950
<ide><path>daemon/stats/collector_unix.go <ide> const nanoSecondsPerSecond = 1e9 <ide> // provided. See `man 5 proc` for details on specific field <ide> // information. <ide> func (s *Collector) getSystemCPUUsage() (uint64, error) { <del> var line string <ide> f, err := os.Open("/proc/stat") <ide> if err != nil { <id...
1
PHP
PHP
add removed getdatasource() call
0bbf61ce3db3d7f0657083f6530426c269aa4c10
<ide><path>lib/Cake/Model/CakeSchema.php <ide> public function read($options = array()) { <ide> if (!is_object($Object) || $Object->useTable === false) { <ide> continue; <ide> } <add> $db = $Object->getDataSource(); <ide> <ide> $fulltable = $table = $db->fullTableName($Object, false, false); <ide> ...
1
Javascript
Javascript
fix a bug in selector functions
9d4b6a02fb7ef49444d0456e5861184e34267fba
<ide><path>d3.js <ide> if (!Object.create) Object.create = function(o) { <ide> f.prototype = o; <ide> return new f; <ide> }; <del>var d3_array = d3_arraySlice; // conversion for NodeLists <del> <del>function d3_arrayCopy(pseudoarray) { <del> var i = -1, n = pseudoarray.length, array = []; <del> while (++i < n) ar...
15
Javascript
Javascript
make my code prettier
dbbf30a332936b67c88631d7ccc2ba5d32114ec5
<ide><path>src/devtools/views/WarnIfLegacyBackendDetected.js <ide> export default function WarnIfLegacyBackendDetected(_: {||}) { <ide> dispatch({ <ide> canBeDismissed: false, <ide> type: 'SHOW', <del> title: <del> 'DevTools v4 is incompatible with this version ...
1
PHP
PHP
fix bug in router
87ee594cd3a164491aea13e209762b4a10c308a6
<ide><path>src/Illuminate/Routing/Route.php <ide> protected static function compileParameters($value, array $wheres = array()) <ide> { <ide> $value = static::compileWhereParameters($value, $wheres); <ide> <del> return preg_replace('/\{([\w\-]+)\}/', static::$wildcard, $value); <add> return preg_replace('/\{([A-Za...
1
Text
Text
improve child_process `maxbuffer` text
ea5a2f4e2b477ae589a22ffc0659e244491c7d05
<ide><path>doc/api/child_process.md <ide> added: v0.1.90 <ide> understand the `-c` switch on UNIX or `/d /s /c` on Windows. On Windows, <ide> command line parsing should be compatible with `cmd.exe`.) <ide> * `timeout` {number} (Default: `0`) <del> * [`maxBuffer`][] {number} largest amount of data (in byte...
1
PHP
PHP
fix tests for windows environments
7c699802c00e798f8f9f2874d19eea6e4ea0124c
<ide><path>tests/Integration/Mail/RenderingMailWithLocaleTest.php <ide> public function testMailableRendersInDefaultLocale() <ide> { <ide> $mail = new RenderedTestMail; <ide> <del> $this->assertEquals("name\n", $mail->render()); <add> $this->assertEquals('name'.PHP_EOL, $mail->render()); <ide...
1
Python
Python
improve the docstring on @action
f744da74d2878b480220ebaf9d8117ff9b79a947
<ide><path>rest_framework/decorators.py <ide> def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs): <ide> """ <ide> Mark a ViewSet method as a routable action. <ide> <del> Set the `detail` boolean to determine if this action should apply to <del> instance/detail requests or colle...
1
Java
Java
preserve shadowed fields in directfieldaccessor
0e9e63e082493746657b060ead07c624b1a52e19
<ide><path>org.springframework.beans/src/main/java/org/springframework/beans/DirectFieldAccessor.java <ide> /* <del> * Copyright 2002-2010 the original author or authors. <add> * Copyright 2002-2011 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
2
Python
Python
fix tf.name_scope support for keras nested layers
9733982976f62c351ea3db2aeb1f28a67bb5d2fa
<ide><path>keras/engine/base_layer.py <ide> import tensorflow.compat.v2 as tf <ide> <ide> import collections <add>import contextlib <ide> import copy <ide> import functools <ide> import itertools <ide> <ide> _is_name_scope_on_model_declaration_enabled = False <ide> <add>_name_scope_unnester_stack = threading.local()...
2
Javascript
Javascript
fix some ordering issues with transitions
4356e4fb21538d982ff5eba750021207ffd3e53d
<ide><path>d3.chart.js <ide> d3.chart.box = function() { <ide> var center = g.selectAll("line.center") <ide> .data(whiskerData ? [whiskerData] : []); <ide> <del> center.enter().append("svg:line") <add> center.enter().insert("svg:line", "rect") <ide> .attr("class", "center") <ide> ...
3
Javascript
Javascript
fix coding style in web/pdf_find_bar.js
2e09f14a80b26ff9f14a099f86599048ad6625ea
<ide><path>web/pdf_find_bar.js <ide> * searching is done by PDFFindController <ide> */ <ide> var PDFFindBar = { <del> <ide> opened: false, <ide> bar: null, <ide> toggleButton: null, <ide> var PDFFindBar = { <ide> <ide> initialize: function(options) { <ide> if(typeof PDFFindController === 'undefined' || P...
1
Python
Python
fix cut and paste error, derivative <- integral
0402e1c6a5cc5693a1f021446f20baebe9073890
<ide><path>numpy/polynomial/chebyshev.py <ide> def chebint(c, m=1, k=[], lbnd=0, scl=1, axis=0): <ide> Following each integration the result is *multiplied* by `scl` <ide> before the integration constant is added. (Default: 1) <ide> axis : int, optional <del> Axis over which the derivative is...
5
Javascript
Javascript
gatsby the academic honesty page
cc5459541436dc959e9f755d1614e4365027a495
<ide><path>client/src/pages/academic-honesty.js <add>import React from 'react'; <add>import { Grid } from 'react-bootstrap'; <add> <add>import Layout from '../components/Layout'; <add>import Spacer from '../components/helpers/Spacer'; <add>import FullWidthRow from '../components/helpers/FullWidthRow'; <add> <add>functi...
1
Text
Text
fix path markdown formatting
65a42ab8927ffc53f0188e16d33579f839b9815f
<ide><path>doc/api/path.md <ide> path.parse('/home/user/dir/file.txt') <ide> │ root │ │ name │ ext │ <ide> " / home/user/dir / file .txt " <ide> └──────┴──────────────┴──────┴─────┘ <del>(all spaces in the "" line should be ignored -- they're purely for formatting) <add>(all spaces in the "" line shou...
1
PHP
PHP
fix double spaces in doc blocks
194ee3fae7f356bdbee744c5807f6e5dc1677428
<ide><path>src/Collection/Iterator/FilterIterator.php <ide> public function __construct($items, callable $callback) <ide> /** <ide> * {@inheritDoc} <ide> * <del> * We perform here some strictness analysis so that the <add> * We perform here some strictness analysis so that the <ide> * iterat...
3
Python
Python
change serializer name for removing confusion
f5fc6937ece8c2bc70088979cc19c2c0a660c7a0
<ide><path>rest_framework/tests/test_serializer.py <ide> def test_writable_star_source_on_nested_serializer(self): <ide> self.assertEqual(serializer.is_valid(), True) <ide> <ide> def test_writable_star_source_on_nested_serializer_with_parent_object(self): <del> class Serializer(serializers.Serialize...
1
Go
Go
use shim v2
612343618dd7dad7cf023e6263d693ab37507a92
<ide><path>daemon/daemon.go <ide> func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S <ide> PluginStore: pluginStore, <ide> startupDone: make(chan struct{}), <ide> } <add> <ide> // Ensure the daemon is properly shutdown if there is a failure during <ide> // initialization <ide> defe...
10
PHP
PHP
fix some typos in phpdoc
9eec4ca2851e81d866e32ab53d0e7584a315dd1d
<ide><path>src/Console/CommandCollection.php <ide> protected function resolveNames(array $input): array <ide> * - CakePHP provided commands <ide> * - Application commands <ide> * <del> * Commands defined in the application will ovewrite commands with <add> * Commands defined in the application wi...
8
PHP
PHP
fix bug in input class
1c26ce8ce56f524e70c8e4b44b5d7ad7aca9e378
<ide><path>laravel/input.php <ide> public static function has($key) <ide> */ <ide> public static function get($key = null, $default = null) <ide> { <del> $value = Request::foundation()->request->get($key); <add> $value = array_get(Request::foundation()->request->all(), $key); <ide> <ide> if (is_null($value)) <...
1
Java
Java
remove dependency on webutils
8ca5b830b1699608e8afefef16b1668359fdd2fe
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java <ide> import java.util.Map; <ide> import java.util.Map.Entry; <ide> import java.util.Set; <add>import java.util.StringTokenizer; <ide> import java.util.stream.Collectors; <ide> <ide> import...
2
Javascript
Javascript
fix license header to use bsd
12808e81c18ca8e9921b606cc680f30cca0a5bab
<ide><path>src/browser/ui/dom/setTextContent.js <ide> /** <del> * Copyright 2013-2014 Facebook, Inc. <add> * Copyright 2013-2014, Facebook, Inc. <add> * All rights reserved. <ide> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the L...
1
Mixed
Python
add docstrings in layers
40864d89974a2b0a2f97aaf7bfdd66659c8ceae2
<ide><path>docs/sources/examples.md <ide> model.fit([images, partial_captions], next_words, batch_size=16, nb_epoch=100) <ide> ``` <ide> <ide> In the examples folder, you will find example models for real datasets: <add> <ide> - CIFAR10 small images classification: Convolutional Neural Network (CNN) with realtime data...
9
Javascript
Javascript
fix spelling error in tagalog test
76e1b2cf89fdb6e291f18a8002ed9f0424e91e0a
<ide><path>test/lang/tl-ph.js <ide> exports["lang:tl-ph"] = { <ide> <ide> test.done(); <ide> }, <del> <add> <ide> "returns the name of the language" : function (test) { <del> if (typeof module !== 'undefied' && module.exports) { <add> if (typeof module !== 'undefined' && module.export...
1
Javascript
Javascript
use the `domcanvasfactory` in the api unit-tests
e6db75b2ef5aeabf6f7157f2dbd4b226f9649e57
<ide><path>test/unit/api_spec.js <ide> <ide> var PDFJS = displayGlobal.PDFJS; <ide> var createPromiseCapability = sharedUtil.createPromiseCapability; <add>var DOMCanvasFactory = displayDOMUtils.DOMCanvasFactory; <ide> var RenderingCancelledException = displayDOMUtils.RenderingCancelledException; <ide> var PDFDocumentP...
1
Text
Text
add changelog for batch touch records
f5b553c94d9169f24f7149640b4afd0663327ee2
<ide><path>activerecord/CHANGELOG.md <ide> <ide> ## Rails 5.0.0.beta1 (December 18, 2015) ## <ide> <add>* Limit record touching to once per transaction. <add> <add> If you have a parent/grand-parent relation like: <add> <add> Comment belongs_to :message, touch: true <add> Message belongs_to :projec...
1
Javascript
Javascript
avoid unneccessary array copies in timer callbacks
bcc6f9b5e43938ca06149ce96ee6acac9856529c
<ide><path>Libraries/Core/Timers/JSTimers.js <ide> function _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) { <ide> } <ide> <ide> if (__DEV__) { <del> Systrace.beginEvent('Systrace.callTimer: ' + type); <add> Systrace.beginEvent(type + ' [invoke]'); <ide> } <ide> <ide> // Clear the ...
2
Python
Python
add method to update / reset pkuseg user dict
c963e269bac9c41222d81abf82131b1937912325
<ide><path>spacy/lang/zh/__init__.py <ide> def __call__(self, text): <ide> (words, spaces) = util.get_words_and_spaces(words, text) <ide> return Doc(self.vocab, words=words, spaces=spaces) <ide> <add> def pkuseg_update_user_dict(self, words, reset=False): <add> if self.pkuseg_seg: <ad...
2
Go
Go
remove debug logging
bc8acc5b08e5aac5ba8d968e101660dded7d1870
<ide><path>pkg/fileutils/fileutils.go <ide> import ( <ide> "regexp" <ide> "strings" <ide> "text/scanner" <del> <del> "github.com/sirupsen/logrus" <ide> ) <ide> <ide> // PatternMatcher allows checking paths against a list of patterns <ide> func (pm *PatternMatcher) Matches(file string) (bool, error) { <ide> } <ide...
1
Javascript
Javascript
replace fixturesdir with fixtures module
261ae7f58a9ec670f7c6c7dbb911619685105068
<ide><path>test/sequential/test-debugger-debug-brk.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> common.skipIfInspectorDisabled(); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const spawn = require('child_process').spawn; <ide> <del>const ...
1
Go
Go
update native driver to use labels from opts
6c9a47f01c583e9c22b831eb426192148d29d792
<ide><path>runtime/execdriver/native/create.go <ide> package native <ide> <ide> import ( <ide> "fmt" <add> "github.com/dotcloud/docker/pkg/label" <ide> "github.com/dotcloud/docker/pkg/libcontainer" <ide> "github.com/dotcloud/docker/runtime/execdriver" <ide> "github.com/dotcloud/docker/runtime/execdriver/native/con...
1
Python
Python
allow graceful recovery for no compiler
fc398de0f13fd709079e666b8c2a03db76316c1d
<ide><path>numpy/distutils/tests/test_system_info.py <ide> import os <ide> import shutil <ide> from tempfile import mkstemp, mkdtemp <add>from subprocess import Popen, PIPE <add>from distutils.errors import DistutilsError <ide> <ide> from numpy.distutils import ccompiler <ide> from numpy.testing import TestCase, run_m...
1
Javascript
Javascript
use private fields in a few more viewer classes
e7a6e7393a710cf4603aafc55a8cadbe916f1eec
<ide><path>web/download_manager.js <ide> function download(blobUrl, filename) { <ide> * @implements {IDownloadManager} <ide> */ <ide> class DownloadManager { <del> constructor() { <del> this._openBlobUrls = new WeakMap(); <del> } <add> #openBlobUrls = new WeakMap(); <ide> <ide> downloadUrl(url, filename) { <...
3
Ruby
Ruby
update errorsubscriber signature
dd80ab07a869fa7b6ef17ab081d71fc4ccc23523
<ide><path>activesupport/lib/active_support/error_reporter.rb <ide> module ActiveSupport <ide> # +severity+ can be one of +:error+, +:warning+, or +:info+. Handled errors default to the +:warning+ <ide> # severity, and unhandled ones to +:error+. <ide> # <add> # A +source+ can also be specified, describing where...
1
Go
Go
add integration tests for build with network opts
e3b48fca0db71cc24270dcf254590541279980d4
<ide><path>integration-cli/docker_cli_build_test.go <ide> func (s *DockerSuite) TestBuildCacheFrom(c *check.C) { <ide> } <ide> c.Assert(layers1[len(layers1)-1], checker.Not(checker.Equals), layers2[len(layers1)-1]) <ide> } <add> <add>func (s *DockerSuite) TestBuildNetNone(c *check.C) { <add> testRequires(c, DaemonIsL...
1
Python
Python
avoid double key lookup on callback.py
b6ca3ef051107f544b97cdb315eaf1b8e12665d9
<ide><path>keras/callbacks.py <ide> def on_train_begin(self, logs={}): <ide> def on_epoch_end(self, epoch, logs={}): <ide> self.epoch.append(epoch) <ide> for k, v in logs.items(): <del> if k not in self.history: <del> self.history[k] = [] <del> self.history[k].ap...
1
Javascript
Javascript
convert the overlay manager to es6 syntax
e7a04fc82dc7a65007662a048ea754628e0366fa
<ide><path>web/app.js <ide> var PDFViewerApplication = { <ide> store: null, <ide> /** @type {DownloadManager} */ <ide> downloadManager: null, <add> /** @type {OverlayManager} */ <add> overlayManager: null, <ide> /** @type {Preferences} */ <ide> preferences: null, <ide> /** @type {Toolbar} */ <ide> var PDF...
6
Javascript
Javascript
fix persistent caching timeout
767ac32aa27bc52cbe3911c0107ab15f824f7f73
<ide><path>test/PersistentCaching.test.js <ide> export default ${files.map((_, i) => `f${i}`).join(" + ")}; <ide> await compile(configAdditions); <ide> await expect(execute()).resolves.toEqual({ ok: true }); <ide> }); <del>}); <add>}, 60000);
1
Javascript
Javascript
remove unnecessary flag check
ece5295e5af992d30256f26ca428abdad514f862
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js <ide> function updateHostRoot(current, workInProgress, renderLanes) { <ide> } else { <ide> // The outermost shell has not hydrated yet. Start hydrating. <ide> enterHydrationState(workInProgress); <del> if (enableUseMutableSource &&...
2
Javascript
Javascript
use es6 to update let & const
a1bd070f87bfb7d32ef9ddee5c121d8eaf2f0c2b
<ide><path>test/parallel/test-child-process-stdout-flush-exit.js <ide> 'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <add>const common = require('../common'); <add>const assert = require('assert'); <ide> <ide> // if child process output to console and exit <ide> if (process...
4
Javascript
Javascript
fix formdata to properly handle appended arrays.
d2e8e7d58e680e0bb3b4da1f820dd4dd840639f5
<ide><path>Libraries/Network/FormData.js <ide> class FormData { <ide> // an object with a `uri` attribute. Optionally, it can also <ide> // have a `name` and `type` attribute to specify filename and <ide> // content type (cf. web Blob interface.) <del> if (typeof value === 'object' && value) { <a...
2
Python
Python
hide nan warnings for internal ma computations
fd19bf398ad716cb36476b4fbe3df1ae75466fe9
<ide><path>numpy/ma/core.py <ide> def __init__(self, a, b): <ide> <ide> def __call__(self, x): <ide> "Execute the call behavior." <del> return umath.logical_or(umath.greater(x, self.b), <del> umath.less(x, self.a)) <add> # nans at masked positions cause RuntimeW...
2
Text
Text
add a note about confidential stuff in err
1e28f04fec70affd8fae57f4bdd23a84853f4efc
<ide><path>docs/extend/authorization.md <ide> Name | Type | Description <ide> --------|--------|---------------------------------------------------------------------------------- <ide> Allow | bool | Boolean value indicating whether the request is allowed or denied <ide> Msg | string | Authorization messag...
1
Python
Python
fix deprecation warning in `to_categorical`
9bfbe6ae3e3d516bbb44871d1451a775795784b8
<ide><path>keras/utils/np_utils.py <ide> def to_categorical(y, nb_classes=None): <ide> # Returns <ide> A binary matrix representation of the input. <ide> ''' <add> y = np.array(y, dtype='int') <ide> if not nb_classes: <ide> nb_classes = np.max(y)+1 <ide> Y = np.zeros((len(y), nb_class...
1
Python
Python
fix a slow test.
04683c0659aacf31a1e1df8aa2e6cf7b447a6f12
<ide><path>tests/test_pipelines_audio_classification.py <ide> def test_large_model_pt(self): <ide> audio = np.array(dataset[3]["speech"], dtype=np.float32) <ide> output = audio_classifier(audio, top_k=4) <ide> self.assertEqual( <del> nested_simplify(output, decimals=4), <add> ...
1
Mixed
Javascript
use windowinsetscompat for keyboard events
1e48274223ee647ac4fc2c21822b5240f3c47e4c
<ide><path>Libraries/Components/Keyboard/Keyboard.js <ide> class Keyboard { <ide> * - `keyboardWillChangeFrame` <ide> * - `keyboardDidChangeFrame` <ide> * <del> * Note that if you set `android:windowSoftInputMode` to `adjustResize` or `adjustNothing`, <del> * only `keyboardDidShow` and `keyboardDidHide` e...
2
Javascript
Javascript
avoid allocations in snapshotoptimization
96aca0e4d7ab239d0b61ffb0b3ea372d1aa11456
<ide><path>lib/FileSystemInfo.js <ide> class SnapshotOptimization { <ide> * @param {function(Snapshot): boolean} has has value <ide> * @param {function(Snapshot): Map<string, T> | Set<string>} get get value <ide> * @param {function(Snapshot, Map<string, T> | Set<string>): void} set set value <add> * @param {bool...
1
Python
Python
add comment to usage of m2m_reverse_field_name
3a338d00ec0d32d54faa0bf88409d02638eae60d
<ide><path>django/db/backends/schema.py <ide> def _alter_many_to_many(self, model, old_field, new_field, strict): <ide> # Repoint the FK to the other side <ide> self.alter_field( <ide> new_field.rel.through, <add> # We need the field that points to the target model, so we can tell...
1
Javascript
Javascript
use pre-defined displays for html and body
a7724186c98734529b06bebb8f2dc7fc2b641011
<ide><path>src/css/defaultDisplay.js <ide> define([ <ide> ], function( jQuery ) { <ide> <ide> var iframe, <del> elemdisplay = {}; <add> elemdisplay = { <add> <add> // Support: Firefox <add> // We have to pre-define this values for FF (#10227) <add> HTML: "block", <add> BODY: "block" <add> }; <ide> <ide> /** <ide>...
1
Javascript
Javascript
update documentation for emberarray.find
9f6bece75648d11222c54b828c18b47477bcdb1a
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> Note that in addition to a callback, you can also pass an optional target <ide> object that will be set as `this` on the context. This is a good way <ide> to give your iterator functio...
1
Python
Python
handle the case when title is none
88b3a91e6149fe62cd3d08b1954abb0f1c74dba7
<ide><path>examples/rag/use_own_knowledge_dataset.py <ide> def split_documents(documents: dict) -> dict: <ide> """Split documents into passages""" <ide> titles, texts = [], [] <ide> for title, text in zip(documents["title"], documents["text"]): <del> for passage in split_text(text): <del> ...
1
Javascript
Javascript
fix debugger repl tests
ec378aaa690dee25b34a696bd893f646ab4616d1
<ide><path>test/fixtures/breakpoints_utf8.js <ide> b(); <ide> <ide> setInterval(function() { <ide> }, 5000); <add> <add> <add>now = new Date(); <add>debugger; <ide><path>test/simple/test-debugger-repl-utf8.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALI...
3
Text
Text
unify installation scripts for example apps
c47f3d84c4065b87d7ea7a0e1bbfe0f4f14dc08e
<ide><path>examples/amp-story/README.md <ide> Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu <ide> Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/...
18
Text
Text
update description of 'clienterror' event
54cb3c5759919745c25554daffc613dbee230d37
<ide><path>doc/api/http.md <ide> changes: <ide> <ide> If a client connection emits an `'error'` event, it will be forwarded here. <ide> Listener of this event is responsible for closing/destroying the underlying <del>socket. For example, one may wish to more gracefully close the socket with an <del>HTTP '400 Bad Reque...
1
Javascript
Javascript
show proper differences
0cdc87778e9c871e8bbbb081f4dc52fb17248e58
<ide><path>lib/internal/errors.js <ide> function createErrDiff(actual, expected, operator) { <ide> var skipped = false; <ide> const util = lazyUtil(); <ide> const actualLines = util <del> .inspect(actual, { compact: false }).split('\n'); <add> .inspect(actual, { compact: false, customInspect: false }).split...
2
Javascript
Javascript
remove common module from test it thwarts
4885982ee270429e1d54602d6abb7ee1b174cb1b
<ide><path>test/parallel/test-global-console-exists.js <ide> /* eslint-disable required-modules */ <del>// ordinarily test files must require('common') but that action causes <del>// the global console to be compiled, defeating the purpose of this test <ide> <ide> 'use strict'; <ide> <del>const common = require('../c...
1
Go
Go
fix typos in pkg
aef02273d9cdf8144b95c9c9a8d1e119d24b2d9d
<ide><path>pkg/parsers/kernel/uname_linux.go <ide> import ( <ide> ) <ide> <ide> // Utsname represents the system name structure. <del>// It is passthgrouh for syscall.Utsname in order to make it portable with <add>// It is passthrough for syscall.Utsname in order to make it portable with <ide> // other platforms where...
10
Javascript
Javascript
use synthetic events
88e90d5601aa29e606ed2c2e248f34df46ecad6f
<add><path>src/core/__tests__/ReactEventEmitter-test.js <del><path>src/core/__tests__/ReactEvent-test.js <ide> describe('ReactEventEmitter', function() { <ide> <ide> it('should invoke handlers that were removed while bubbling', function() { <ide> var handleParentClick = mocks.getMockFunction(); <del> var hand...
15
Javascript
Javascript
return meaningful error when no devices available
ad4aee75199efbab8d028403d0459b74bf9d3816
<ide><path>local-cli/runIOS/runIOS.js <ide> function runIOS(argv, config, args) { <ide> ); <ide> if (args.device) { <ide> const selectedDevice = matchingDevice(devices, args.device); <del> if (selectedDevice){ <add> if (selectedDevice) { <ide> return runOnDevice(selectedDevice, scheme, xcodeProject,...
1
Text
Text
add هنيئا لك
1b987f265fb9d6866f35d24843360c00273b3db7
<ide><path>guide/arabic/react/hello-world/index.md <ide> --- <ide> title: Hello World <ide> localeTitle: مرحبا بالعالم <del>--- <ide>## مرحبا بالعالم !! <del> <del>يبدأ كل تعلم لغة بمثال Traditional Hello World. هنا ، يمكنك التعرف على React مع نفس برنامج HelloWorld. <del> <del>كل شيء في React مكون. <del> <del>ولكن قبل ...
1
PHP
PHP
move exceptions into internal array
841b36cc005ee5c400f1276175db9e2692d1e167
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> class Handler implements ExceptionHandlerContract <ide> */ <ide> protected $dontReport = []; <ide> <add> /** <add> * A list of the internal exception types that should not be reported. <add> * <add> * @var array <add> */ <add...
1
Javascript
Javascript
add comment for type3 bypass
17ba5e3f68bd187a526c3ab11043c929ca69b0d5
<ide><path>pdf.js <ide> var PartialEvaluator = (function partialEvaluator() { <ide> // This case is here for compatibility. <ide> var descriptor = xref.fetchIfRef(dict.get('FontDescriptor')); <ide> if (!descriptor) { <add> // Note for Type3 fonts: it has no no base font, feeding default <add> ...
1
Javascript
Javascript
add page with next/image to stats-app
556216b1adb39d4b0e67d7cad2f204234c46aa6b
<ide><path>test/.stats-app/image.js <add>import Image from 'next/image' <add>import logo from './nextjs.png' <add> <add>function ImagePage(props) { <add> return ( <add> <> <add> <h1>next/image example</h1> <add> <Image src={logo} placeholder="blur" /> <add> </> <add> ) <add>} <add> <add>// we add getS...
6
Text
Text
fix typos in buffer doc
59cad32b519438bb6f296bb6f8c3391eb4060ecc
<ide><path>doc/api/buffer.md <ide> string into a `Buffer` as decoding. <ide> tabs, and new lines contained within the base64-encoded string are ignored. <ide> <ide> * `'hex'`: Encode each byte as two hexadecimal characters. Data truncation <del> may occur when decoding string that do exclusively contain valid hexad...
1
Ruby
Ruby
fix equality comparison raising error bug
e7834214a668cde0a4f7757f7f4a3d78f73f2fd8
<ide><path>activemodel/lib/active_model/error.rb <ide> def strict_match?(attribute, type, **options) <ide> end <ide> <ide> def ==(other) <del> attributes_for_hash == other.attributes_for_hash <add> other.is_a?(self.class) && attributes_for_hash == other.attributes_for_hash <ide> end <ide> ali...
2
Ruby
Ruby
simplify implementation of throughreflection#chain
39a6f4f25d958783c73377ac52886c9edc19632e
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def through_reflection <ide> # Returns an array of reflections which are involved in this association. Each item in the <ide> # array corresponds to a table which will be part of the query for this association. <ide> # <del> # If the s...
2
Text
Text
add changelog for 2.10.2 [ci skip]
c5268257b5ee6e8a2268cb961a995c2be239cedc
<ide><path>CHANGELOG.md <ide> - [#14441](https://github.com/emberjs/ember.js/pull/14441) [DEPRECATION] Deprecate remaining usage of the `{{render}}` helper. <ide> - [#14482](https://github.com/emberjs/ember.js/pull/14482) [DEPRECATION] Deprecate `Component#renderToElement`. <ide> <add>### 2.10.2 (December 19, 2016) <a...
1
Python
Python
add cost regions for ecs
c222bb12a1465b92b1f76888338a773a1276a3d0
<ide><path>libcloud/compute/drivers/ecs.py <ide> ECS_API_ENDPOINT = 'ecs.aliyuncs.com' <ide> DEFAULT_SIGNATURE_VERSION = '1.0' <ide> <add>COST_REGIONS = ['ecs-ap-northeast-1', 'ecs-ap-south-1', 'ecs-ap-southeast-1', <add> 'ecs-ap-southeast-2', 'ecs-ap-southeast-3', 'ecs-ap-southeast-5', <add> ...
1
Javascript
Javascript
fix sporadic hang and partial reads
671b5be6e9d74fec9e94b1ab88d2b2648c540078
<ide><path>lib/tls.js <ide> CryptoStream.prototype._read = function read(size) { <ide> var bytesRead = 0, <ide> start = this._buffer.offset; <ide> do { <del> var read = this._buffer.use(this.pair.ssl, out, size); <add> var read = this._buffer.use(this.pair.ssl, out, size - bytesRead); <ide> if (read...
1
Javascript
Javascript
fix linting errors
debb7eb046ca167fa627fd873fd6bbd7e188b221
<ide><path>src/materials/ShaderMaterial.js <ide> ShaderMaterial.prototype.copy = function ( source ) { <ide> <ide> this.extensions = Object.assign( {}, source.extensions ); <ide> <del> this.glslVersion = source.glslVersion <add> this.glslVersion = source.glslVersion; <ide> <ide> return this; <ide> <ide> ShaderMat...
2
Python
Python
fix isort errors
4a1ab3c18c7c85c9d962e7b6605e7d57423d29fe
<ide><path>rest_framework/fields.py <ide> from django.conf import settings <ide> from django.core.exceptions import ValidationError as DjangoValidationError <ide> from django.core.exceptions import ObjectDoesNotExist <del>from django.core.validators import EmailValidator, RegexValidator, ip_address_validators, URLValid...
1
Python
Python
fix obvious mistake in testing/decorators warning
d06b690a330d05dd3997b154bbed7527333db1bb
<ide><path>numpy/testing/decorators.py <ide> """ <ide> import warnings <ide> <del>warnings.warn(ImportWarning, <del> "Import from numpy.testing, not numpy.testing.decorators") <add>warnings.warn("Import from numpy.testing, not numpy.testing.decorators", <add> ImportWarning) <ide> <ide> from ._private....
1
Javascript
Javascript
fix copy and clone methods
a99eac6138a368f88c6639b4888d33c5a6c518ce
<ide><path>src/objects/Line.js <ide> Line.prototype = Object.assign( Object.create( Object3D.prototype ), { <ide> <ide> }() ), <ide> <add> copy: function ( source ) { <add> <add> Object3D.prototype.copy.call( this, source ); <add> <add> this.geometry.copy( source.geometry ); <add> this.material.copy( source.mater...
1
Javascript
Javascript
add clear connections to secure-pair
fc553fd8213f81267d5bec76a9f9d9db1cda52a9
<ide><path>benchmark/net/net-pipe.js <ide> const net = require('net'); <ide> const PORT = common.PORT; <ide> <ide> const bench = common.createBenchmark(main, { <del> len: [64, 102400, 1024 * 1024 * 16], <add> len: [2, 64, 102400, 1024 * 1024 * 16], <ide> type: ['utf', 'asc', 'buf'], <ide> dur: [5], <ide> }); <id...
2
PHP
PHP
add the laravel start time to the benchmarker
a474850071ca4ba2c0ec7e5dca6e761fb714e8cd
<ide><path>public/index.php <ide> * @link http://laravel.com <ide> */ <ide> <del>$t = microtime(true); <add>// -------------------------------------------------------------- <add>// Get the framework start time. <add>// -------------------------------------------------------------- <add>$start = microtime(true);...
1
Text
Text
update portuguese translation on typeof
a794645084f29437467d271e077015e952898d66
<ide><path>guide/portuguese/javascript/typeof/index.md <ide> localeTitle: Tipo de <ide> <ide> `typeof` é uma palavra-chave JavaScript que retornará o tipo de uma variável quando você a chamar. Você pode usar isso para validar parâmetros de função ou verificar se variáveis ​​estão definidas. Existem outros usos também....
1
Text
Text
fix minor typo in docs
45368779f86c2f0e78a6703bf64a0b149251b8b5
<ide><path>docs/reference/commandline/volume_create.md <ide> parent = "smn_cli" <ide> --name= Specify volume name <ide> -o, --opt=map[] Set driver specific options <ide> <del>Creates a new volume that containers can can consume and store data in. If a name is not specified, Docker generates...
1
Javascript
Javascript
fix _final and 'prefinish' timing
ea87809bb6696e2c1ec5d470031f137e18641183
<ide><path>lib/_stream_transform.js <ide> function Transform(options) { <ide> this._flush = options.flush; <ide> } <ide> <del> // TODO(ronag): Unfortunately _final is invoked asynchronously. <del> // Use `prefinish` hack. `prefinish` is emitted synchronously when <del> // and only when `_final` is not defin...
6
Python
Python
update several examples to work with the new api
eec61d9d4921fb7a62926e217fbfe43cd7062ac4
<ide><path>examples/imdb_cnn.py <ide> from keras.models import Sequential <ide> from keras.layers import Dense, Dropout, Activation <ide> from keras.layers import Embedding <del>from keras.layers import Convolution1D, GlobalMaxPooling1D <add>from keras.layers import Conv1D, GlobalMaxPooling1D <ide> from keras.datasets ...
8
Ruby
Ruby
remove ruby 1.8 checking in constantize method
6e5ab54b608d3c681263c5574ed4b0167a26b641
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> def foreign_key(class_name, separate_class_name_and_id_with_underscore = true) <ide> underscore(demodulize(class_name)) + (separate_class_name_and_id_with_underscore ? "_id" : "id") <ide> end <ide> <del> # Ruby 1.9 introduces an inheri...
1
Text
Text
add rlidwka as collaborator
7192b6688c36553ac8b338ae160a4a02ef2d9a2d
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Roman Reiss** ([@silverwind](https://github.com/silverwind)) &lt;me@silverwind.io&gt; <ide> * **Petka Antonov** ([@petkaantonov](https://github.com/petkaantonov)) &lt;petka_antonov@hotmail.com&gt; <ide> * **Yosuke Furukawa**...
1
Python
Python
fix output_token_type in glue
789ea72037219332e20e66e626b6c4c32851f0dc
<ide><path>pytorch_transformers/data/processors/glue.py <ide> def glue_convert_examples_to_features(examples, label_list, max_seq_length, <ide> example.text_a, <ide> example.text_b, <ide> add_special_tokens=True, <del> output_token_type=True, <ide> max_length=m...
1
Javascript
Javascript
make require() from the repl be relative to cwd
a26f7d753dca57cfcf84867631de66da2ae58aa9
<ide><path>lib/repl.js <ide> var evalcx = process.binding('evals').Script.runInNewContext; <ide> var path = require("path"); <ide> var scope; <ide> <add>function cwdRequire (id) { <add> if (id.match(/^\.\.\//) || id.match(/^\.\//)) { <add> id = path.join(process.cwd(), id); <add> } <add> return require(id); <add...
1
PHP
PHP
fix coding standards for whitespaces
8f78b1e05b2d16ed6ec71ab27fe37f1310a95a7d
<ide><path>lib/Cake/Console/Command/Task/FixtureTask.php <ide> protected function _generateRecords($tableInfo, $recordCount = 1) { <ide> } else { <ide> $insert = "Lorem ipsum dolor sit amet"; <ide> if (!empty($fieldInfo['length'])) { <del> $insert = substr($insert, 0, (int)$fieldInfo['length...
5
Python
Python
adapt import to new structure
cae394c8faac229d43df7559476cfbdd745f8c41
<ide><path>tests/sagemaker/scripts/tensorflow/run_tf_dist.py <ide> from tqdm import tqdm <ide> <ide> from transformers import AutoTokenizer, TFAutoModelForSequenceClassification <del>from transformers.file_utils import is_sagemaker_dp_enabled <add>from transformers.utils import is_sagemaker_dp_enabled <ide> <ide> <i...
1