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
Text
Text
add node about concurrency on /system/df endpoint
8e0d43dda7724d8f7e33022789622bb452c15a9a
<ide><path>docs/api/version-history.md <ide> keywords: "API, Docker, rcli, REST, documentation" <ide> computes and returns data only for the specified object type. <ide> The parameter can be specified multiple times to select several object types. <ide> Supported values are: `container`, `image`, `volume`, `build...
1
PHP
PHP
fix incorrect __construct params for mock object
89959afa63b108c5457a9f32fda4536cf6dea958
<ide><path>lib/Cake/Test/Case/Console/ShellDispatcherTest.php <ide> public function testGetShell() { <ide> */ <ide> public function testDispatchShellWithMain() { <ide> $Dispatcher = new TestShellDispatcher(); <del> $Mock = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithMainShell'); <add> $Mock = $...
1
Python
Python
add stack to numpy backend
29e740e0965be5f460f67692a284a9a2deb6bb04
<ide><path>keras/backend/numpy_backend.py <ide> def _remove_blanks(inds, num_classes): <ide> return inds[inds < (num_classes - 1)] <ide> <ide> <add>def stack(x, axis=0): <add> return np.stack(x, axis=axis) <add> <add> <ide> square = np.square <ide> abs = np.abs <ide> exp = np.exp <ide><path>keras/backend/tenso...
3
Text
Text
add info on becoming a team member
f271e0ce481ead2a7692c984c141f5bb4d697429
<ide><path>CONTRIBUTING.md <ide> We use Grunt for managing the build. Here are some useful Grunt tasks: <ide> those in Pull Requests) <ide> * `grunt transpile:fr,ru` Build custom locale bundles `moment-with-locales.custom.js` and `locales.custom.js` inside `build/umd/min` containing just French and Russian. <ide>...
1
Ruby
Ruby
unlink the lock file after unlocking it
37dcbbaf65e0faf918069f1689ba332e58f2e6ac
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> end <ide> ensure <ide> download_lock&.unlock <add> download_lock&.path&.unlink <ide> end <ide> <ide> def clear_cache
1
Mixed
Text
update discuss links to github discussions links
8a6581b5c57dee2408ec5ce3bf9c2aa8f1f054b2
<ide><path>CONTRIBUTING.md <ide> This project and everyone participating in it is governed by the [Atom Code of C <ide> <ide> We have an official message board with a detailed FAQ and where the community chimes in with helpful advice if you have questions. <ide> <del>* [Discuss, the official Atom and Electron message...
6
Python
Python
add set_pricing function
48fcce4ea6a7d9721d1139e1ad34ea93d62e0a32
<ide><path>libcloud/pricing.py <ide> def get_pricing(driver_type, driver_name, pricing_file_path=None): <ide> PRICING_DATA[driver_type][driver_name] = pricing <ide> return pricing <ide> <add>def set_pricing(driver_type, driver_name, pricing): <add> """ <add> Populate the driver pricing dictionary. <add> ...
1
Python
Python
fix typo in js2c.py
fcf2da098ab24c1454c5b31eefbc8f6dd9e9c743
<ide><path>tools/js2c.py <ide> <ide> """ <ide> This is a utility for converting JavaScript source code into uint16_t[], <del>that are used for embeding JavaScript code into the Node.js binary. <add>that are used for embedding JavaScript code into the Node.js binary. <ide> """ <ide> import argparse <ide> import os
1
Go
Go
deny finit_module in default seccomp profile
0d5306a0b69c912a981f3a4bd41b80beb1207851
<ide><path>daemon/execdriver/native/seccomp_default.go <ide> var defaultSeccompProfile = &configs.Seccomp{ <ide> Action: configs.Errno, <ide> Args: []*configs.Arg{}, <ide> }, <add> { <add> // Deny manipulation and functions on kernel modules. <add> Name: "finit_module", <add> Action: configs.Errno, <...
1
Python
Python
add a new decision tree (not used for the moment)
2d20e5967c1782b0f455c81b97418501f421ea6f
<ide><path>glances/plugins/glances_alert.py <ide> 'thresholds_min': 2}, <ide> ] <ide> <add># @TODO: change the algo to use the following decision tree <add># Source: Inspire by https://scoutapm.com/blog/slow_server_flow_chart <add># _yes means threshold >= 2 <add># _no means threshold < 2 <add># With...
1
Python
Python
support multiple prediction files for squad task
c8f9cf196aa7a9c9554e6005782fd3d71f8d80e4
<ide><path>official/nlp/bert/run_squad_helper.py <ide> def define_common_squad_flags(): <ide> flags.DEFINE_integer('train_batch_size', 32, 'Total batch size for training.') <ide> # Predict processing related. <ide> flags.DEFINE_string('predict_file', None, <del> 'Prediction data path with tra...
1
Text
Text
add nel-visualisation to manual-usage
e61d93f8c3715d74038c9bd952fe60418fc6f144
<ide><path>website/docs/usage/visualizers.md <ide> position. <ide> > <ide> > ```python <ide> > ex = [{"text": "But Google is starting from behind.", <del>> "ents": [{"start": 4, "end": 10, "label": "ORG"}], <add>> "ents": [{"start": 4, "end": 10, "label": "ORG", "kb_id": "Q95", "kb_url": "https://www.wiki...
1
Text
Text
add xray things
640dc6e3226645414d44ad7ec377884aa21765e2
<ide><path>docs/focus/2018-04-09.md <ide> - Improved handling (hopefully 🤞) of potential race condition when joining a portal with poor network connectivity ([atom/teletype-client#58](https://github.com/atom/teletype-client/pull/58)) <ide> - Published [Teletype 0.12.0](https://github.com/atom/teletype/releases/tag...
1
Javascript
Javascript
add test for selection.html
f72cc3535904abd1364b1987b169f12bdacf6c76
<ide><path>test/core/selection-html-test.js <add>require("../env"); <add>require("../../d3"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("selection.html"); <add> <add>suite.addBatch({ <add> "select(body)": { <add> topic: function() { <add> r...
1
PHP
PHP
change default days to 30 for daily channel
c60ff606793f07595d85d2b90f0a91bdf83f7ce1
<ide><path>config/logging.php <ide> 'driver' => 'daily', <ide> 'path' => storage_path('logs/laravel.log'), <ide> 'level' => 'debug', <del> 'days' => 7, <add> 'days' => 30, <ide> ], <ide> <ide> 'slack' => [
1
Javascript
Javascript
update $parsers ngmodelcontroller doc
0c8a88ba092a251ba8d79092c590f45a6cd27de9
<ide><path>src/ng/directive/input.js <ide> var VALID_CLASS = 'ng-valid', <ide> * @property {*} $modelValue The value in the model, that the control is bound to. <ide> * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever <ide> the control reads value from the DOM. Each...
1
Python
Python
remove unused variables in tests
e6c0019c80d03b86e7fc051a9c51c55d9a4e7ba7
<ide><path>tests/test_modeling_common.py <ide> def test_headmasking(self): <ide> multihead_outputs = head_mask.grad <ide> <ide> attentions = outputs[-1] <del> hidden_states = outputs[-2] <ide> <ide> # Remove Nan <ide> for t in attentions: <ide> def test_input...
4
Text
Text
fix util.inspect change history
96c37b33126c6243f8ba4d190e5b7b1283104f36
<ide><path>doc/api/util.md <ide> stream.write('With ES6'); <ide> <!-- YAML <ide> added: v0.3.0 <ide> changes: <del> - version: v12.19.0 <add> - version: <add> - v14.6.0 <add> - v12.19.0 <ide> pr-url: https://github.com/nodejs/node/pull/33690 <ide> description: If `object` is from a different `vm.Context...
1
Python
Python
fix a typo on blueprints module name
5ecca4c0dae52c7645f9dbda6cbfc32ec76a3498
<ide><path>flask/blueprints.py <ide> def add_url_rule(self, rule, endpoint=None, view_func=None, **options): <ide> class Blueprint(_PackageBoundObject): <ide> """Represents a blueprint. A blueprint is an object that records <ide> functions that will be called with the <del> :class:`~flask.blueprint.Blueprin...
1
Ruby
Ruby
add documentation for query_methods bang methods
993ef9ed59e651aac0160a72ff032ce6faacf427
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def includes(*args) <ide> args.empty? ? self : spawn.includes!(*args) <ide> end <ide> <add> # Like #includes, but modifies the relation in place. <ide> def includes!(*args) <ide> args.reject! {|a| a.blank? } <ide> <ide> d...
1
Java
Java
add tests to jsonpathexpectationshelpertests
8afea1bc784b2dd75af0f0db90b0c3c659139a0c
<ide><path>spring-test/src/test/java/org/springframework/test/util/JsonPathExpectationsHelperTests.java <ide> */ <ide> public class JsonPathExpectationsHelperTests { <ide> <add> private static final String CONTENT = "{" + // <add> "\"str\": \"foo\"," + // <add> "\"nr\": 5,...
1
Mixed
Javascript
send signal name to signal handlers
9b2cf1c8ebdf9483aaa1f0d1b6770043c229a354
<ide><path>doc/api/process.md <ide> Signal events will be emitted when the Node.js process receives a signal. Please <ide> refer to signal(7) for a listing of standard POSIX signal names such as <ide> `SIGINT`, `SIGHUP`, etc. <ide> <add>The signal handler will receive the signal's name (`'SIGINT'`, <add> `'SIGTERM'`, ...
3
Text
Text
correct information about record identification
f60bc890eee5c57819077c4808a4e9fa3761e9d6
<ide><path>guides/source/form_helpers.md <ide> form_with(model: @article, url: article_path(@article), method: "patch") <ide> form_with(model: @article) <ide> ``` <ide> <del>Notice how the short-style `form_with` invocation is conveniently the same, regardless of the record being new or existing. Record identification...
1
Text
Text
update description of `test_order` [ci skip]
e9a909c162eed0a1686a02ce1a239b69e44740d6
<ide><path>guides/source/configuring.md <ide> There are a few configuration options available in Active Support: <ide> <ide> * `config.active_support.bare` enables or disables the loading of `active_support/all` when booting Rails. Defaults to `nil`, which means `active_support/all` is loaded. <ide> <del>* `config.ac...
1
PHP
PHP
fix typos & strict errors
869d556d072b47f4baa6a5a12d968b6e7218cfcb
<ide><path>lib/Cake/Test/Case/Routing/DispatcherTest.php <ide> public function testTestPluginDispatch() { <ide> * <ide> * @return void <ide> */ <del> public function testDispatcherFilterSuscriber() { <add> public function testDispatcherFilterSubscriber() { <ide> App::build(array( <ide> 'View' => array(CAKE . 'T...
3
Python
Python
add a missing space in a deprecation message
e3d1a8dabce5d8204158baefc8dcbe4f47d7bb92
<ide><path>src/transformers/optimization.py <ide> def __init__( <ide> if not no_deprecation_warning: <ide> warnings.warn( <ide> "This implementation of AdamW is deprecated and will be removed in a future version. Use the" <del> "PyTorch implementation torch.optim.AdamW...
1
PHP
PHP
add addif method to message bag
50efe099b59e75563298deb992017b4cabfb021d
<ide><path>src/Illuminate/Support/MessageBag.php <ide> public function add($key, $message) <ide> return $this; <ide> } <ide> <add> /** <add> * Add a message to the message bag if the given conditional is "true". <add> * <add> * @param bool $boolean <add> * @param string $key <add> ...
1
Javascript
Javascript
refactor the previous history rewriting logic
cdea75dc397f4eb4d6fd1f7d8a388c7d11df3452
<ide><path>web/pdf_history.js <ide> var PDFHistory = (function () { <ide> <ide> var self = this; <ide> window.addEventListener('popstate', function pdfHistoryPopstate(evt) { <del> evt.preventDefault(); <del> evt.stopPropagation(); <del> <ide> if (!self.historyUnlocked) { <ide> ...
1
Javascript
Javascript
pass children to hydration root constructor
c8e4789e21f6cb031b92b3bd8a905244bfd808b2
<ide><path>packages/react-art/src/ReactART.js <ide> class Surface extends React.Component { <ide> this._mountNode = createContainer( <ide> this._surface, <ide> LegacyRoot, <del> false, <ide> null, <ide> false, <ide> false, <ide><path>packages/react-dom/src/__tests__/ReactDOMRoot-t...
11
Text
Text
revise "breaking changes to internal elements"
ab76eac3016db9d84cea045e9ab1be89ed35cb60
<ide><path>COLLABORATOR_GUIDE.md <ide> For more information, see [Deprecations](#deprecations). <ide> <ide> #### Breaking Changes to Internal Elements <ide> <del>Breaking changes to internal elements are permitted in semver-patch or <del>semver-minor commits but Collaborators should take significant care when <del>ma...
1
Python
Python
add chain function
d68e48555e9f62cb334059664d61ae43ccfe02f7
<ide><path>airflow/utils.py <ide> def round_time(dt, delta, start_date=datetime.min): <ide> # in the special case when start_date > dt the search for upper will <ide> # immediately stop for upper == 1 which results in lower = upper // 2 = 0 <ide> # and this function returns start_date. <add> <add>def chain(...
1
Text
Text
add elai data to inthewild.md
1c7fbaf99e67fabcec09044de507fa12538e2a90
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Dynata](https://www.dynata.com) [[@neil3handari](https://github.com/neil3handari)] <ide> 1. [EBANX](https://www.ebanx.com/) [[@estevammr](https://github.com/estevammr) & [@nathangngencissk](https://github.com/nathangngencissk) & [@raafaadg...
1
Ruby
Ruby
fix style in test/core_ext/enumerable_test.rb
8d791726e1a9d3d98367ecb4771d6dcc44cf5508
<ide><path>activesupport/test/core_ext/enumerable_test.rb <ide> def test_doesnt_bust_constant_cache <ide> end <ide> <ide> private <del> <del> def constant_cache_invalidations <del> RubyVM.stat(:constant_cache_invalidations) <del> rescue ArgumentError <del> RubyVM.stat(:global_constant_state) # RUBY_VERSION...
1
Ruby
Ruby
install bundler 2
128300a754eb1539691ce868efbc51b268b9e802
<ide><path>Library/Homebrew/utils/gems.rb <ide> def setup_gem_environment!(gem_home: nil, gem_bindir: nil) <ide> ENV["PATH"] = paths.compact.join(":") <ide> end <ide> <del> def install_gem!(name, version = nil, setup_gem_environment: true) <add> def install_gem!(name, version: nil, setup_gem_environment: true)...
1
Javascript
Javascript
fix changeeventplugin dependencies
79beb71d69c8c0c6c6c3ee432f9d7c335ed3157a
<ide><path>src/eventPlugins/ChangeEventPlugin.js <ide> var eventTypes = { <ide> dependencies: [ <ide> topLevelTypes.topBlur, <ide> topLevelTypes.topChange, <add> topLevelTypes.topClick, <ide> topLevelTypes.topFocus, <ide> topLevelTypes.topInput, <ide> topLevelTypes.topKeyDown, <de...
1
Ruby
Ruby
fix argumenterror message for without method
70dec80388965074d51ebffa5e57526a426d3556
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def excluding(*records) <ide> records.compact! <ide> <ide> unless records.all?(klass) <del> raise ArgumentError, "You must only pass a single or collection of #{klass.name} objects to #excluding." <add> raise ArgumentEr...
2
Python
Python
use utility method to get the object download path
d6da648589f88d2536261f78b4e62781c3f015e3
<ide><path>libcloud/storage/drivers/backblaze_b2.py <ide> from libcloud.utils.py3 import b <ide> from libcloud.utils.py3 import httplib <ide> from libcloud.utils.py3 import urlparse <add>from libcloud.utils.files import read_in_chunks <ide> <ide> from libcloud.common.base import ConnectionUserAndKey <ide> from libclou...
1
Java
Java
remove cycles in compositeexception
eea2afa295410dc080cc20aa8b75ce649c459cec
<ide><path>rxjava-core/src/main/java/rx/exceptions/CompositeException.java <ide> public final class CompositeException extends RuntimeException { <ide> public CompositeException(String messagePrefix, Collection<Throwable> errors) { <ide> List<Throwable> _exceptions = new ArrayList<Throwable>(); <ide> ...
2
Go
Go
refactor the init function in docker_utils.go
50d5d55f566b65b506bf54ccf0d897a0cb95734e
<ide><path>integration-cli/docker_utils.go <ide> import ( <ide> ) <ide> <ide> func init() { <del> cmd := exec.Command(dockerBinary, "images") <add> cmd := exec.Command(dockerBinary, "images", "-f", "dangling=false", "--format", "{{.Repository}}:{{.Tag}}") <ide> cmd.Env = appendBaseEnv(true) <ide> out, err := cmd.Com...
1
PHP
PHP
remove unnecessary variable assignment
e75304c7f87273cb11f70003dc34ce85a3c7807b
<ide><path>src/Error/ErrorTrap.php <ide> public function handleError( <ide> */ <ide> public function renderer(): ErrorRendererInterface <ide> { <del> $class = $this->_getConfig('errorRenderer'); <del> if (!$class) { <del> $class = $this->chooseErrorRenderer(); <del> } <add> ...
2
Text
Text
update links of pluralization in i18n guide
bb8e892ea07d1677cd93ac2f17aeb9c299926a7e
<ide><path>guides/source/i18n.md <ide> end <ide> <ide> ### Pluralization <ide> <del>In English there are only one singular and one plural form for a given string, e.g. "1 message" and "2 messages". Other languages ([Arabic](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ar), [Jap...
1
Text
Text
add antsmartian to collaborators
c3474f511e7ca7fe7fb9182c7f3ce8e3b2e6e577
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Andreas Madsen** &lt;amwebdk@gmail.com&gt; (he/him) <ide> * [AnnaMag](https://github.com/AnnaMag) - <ide> **Anna M. Kedzierska** &lt;anna.m.kedzierska@gmail.com&gt; <add>* [antsmartian](https://github.com/antsmartian) - ...
1
PHP
PHP
make view from command
a9f74f7e7f495f34418c1158d6c1ae3e80d3cd6d
<ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php <ide> namespace Illuminate\Foundation\Console; <ide> <ide> use Illuminate\Console\GeneratorCommand; <add>use Illuminate\Foundation\Inspiring; <ide> use Illuminate\Support\Str; <ide> use Symfony\Component\Console\Input\InputOption; <ide> <ide> class...
1
Javascript
Javascript
remove unneeded comma in webglprogram
b3491e78c1eeb6d8bf88509d6c2bf73774bb268e
<ide><path>src/renderers/webgl/WebGLProgram.js <ide> function generateExtensions( extensions, parameters, rendererExtensions ) { <ide> ( extensions.derivatives || parameters.envMapCubeUV || parameters.bumpMap || parameters.normalMap || parameters.flatShading ) ? '#extension GL_OES_standard_derivatives : enable' : '',...
1
Ruby
Ruby
allow extra arguments for observers
24c068d67dab4559ab24f77482cd671563161ec2
<ide><path>activemodel/lib/active_model/observing.rb <ide> def inherited(subclass) <ide> private <ide> # Fires notifications to model's observers <ide> # <del> # def save <del> # notify_observers(:before_save) <del> # ... <del> # notify_observers(:after_save) <del> # end <...
2
Javascript
Javascript
remove the line requiring events
e2581696669003fdd691c167ff1500ef16dddb32
<ide><path>lib/util.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <del>var events = require('events'); <del> <del> <ide> var formatRegExp = /%[sdj%]/g; <ide> exports.format = function(f) { <ide> if (typeof f !== 'string') {
1
Javascript
Javascript
remove console.disableyellowbox support
b633cc130533f0731b2577123282c4530e4f0abe
<ide><path>Libraries/Core/ExceptionsManager.js <ide> * LICENSE file in the root directory of this source tree. <ide> * <ide> * @format <del> * @flow strict-local <add> * @flow strict <ide> */ <ide> <ide> 'use strict'; <ide><path>Libraries/LogBox/Data/LogBoxData.js <ide> * This source code is licensed under the MI...
7
Python
Python
make bigquery hook support pep 249
1aa30e21d6e5ceb7e5d65b0efdc987b39cdfd027
<ide><path>airflow/contrib/hooks/bigquery_hook.py <ide> import time <ide> <ide> from airflow.contrib.hooks.gc_base_hook import GoogleCloudBaseHook <add>from airflow.hooks.dbapi_hook import DbApiHook <ide> from apiclient.discovery import build <ide> from pandas.io.gbq import GbqConnector, _parse_data as gbq_parse_data ...
3
Ruby
Ruby
fix documentation for #default
e1408971b8dfdd26d8dac4651bfa52683565f45a
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def mailer_name <ide> <ide> # Sets the defaults through app configuration: <ide> # <del> # config.action_mailer.default { from: "no-reply@example.org" } <add> # config.action_mailer.default(from: "no-reply@example.org") <ide> #...
1
Javascript
Javascript
remove unused parameter
ae6368dc6b7b02f65ba82e9661b6895855ee3cd5
<ide><path>test/sequential/test-readline-interface.js <ide> FakeInput.prototype.end = () => {}; <ide> crlfDelay <ide> }); <ide> let callCount = 0; <del> rli.on('line', function(line) { <del> callCount++; <del> }); <add> rli.on('line', () => callCount++); <ide> fi.emit('data', '\r'); <ide...
1
PHP
PHP
improve code readability
f6e1c7ca3d4ee9f7bbe8139fb490c7d9f3ae4637
<ide><path>lib/Cake/Network/CakeResponse.php <ide> public function header($header = null, $value = null) { <ide> if (is_null($header)) { <ide> return $this->_headers; <ide> } <del> if (!is_array($header)) { <del> $header = array($header => $value); <del> } <del> foreach ($header as $h => $v) { <del> if (i...
1
Javascript
Javascript
add unittests to webglextensions
384d1e9ac9c2d4f7b3e9f43ad980f2c5b915de92
<ide><path>test/unit/src/renderers/webgl/WebGLExtensions.tests.js <ide> <ide> import { WebGLExtensions } from '../../../../../src/renderers/webgl/WebGLExtensions'; <ide> <add>const WebglContextMock = function ( supportedExtensions ) { <add> <add> this.supportedExtensions = supportedExtensions || []; <add> this.getExt...
1
PHP
PHP
fix failing tests
25ee90ace4a8c8dc0af02fe250f2d11bda933e34
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testUrlConversion() { <ide> $this->assertEquals($result, '/controller/action/1?one=1&amp;two=2'); <ide> <ide> $result = $this->Helper->url(array('controller' => 'posts', 'action' => 'index', 'page' => '1" onclick="alert(\'XSS\');"')); <del> $...
1
Javascript
Javascript
replace crlf by lf in a fixture
44bb140734a23bf57005dc39f34c707ed7e22469
<ide><path>test/fixtures/test-error-first-line-offset.js <del>error <add>error
1
Ruby
Ruby
update default match_data
590aabe9d7d8d383c2be013e16e5fdf83942d584
<ide><path>Library/Homebrew/livecheck/strategy/electron_builder.rb <ide> def self.find_versions(url:, regex: nil, **_unused, &block) <ide> raise ArgumentError, "#{T.must(name).demodulize} only supports a regex when using a `strategy` block" <ide> end <ide> <del> match_data = { matches: {...
3
Go
Go
add agent initialization wait method in controller
a63fca344f857fbb7f51e16cbedae4e0929b2b2c
<ide><path>libnetwork/controller.go <ide> type NetworkController interface { <ide> <ide> // SetClusterProvider sets cluster provider <ide> SetClusterProvider(provider cluster.Provider) <add> <add> // Wait for agent initialization complete in libnetwork controller <add> AgentInitWait() <ide> } <ide> <ide> // Network...
1
Ruby
Ruby
add input files to react-codegen script_phases
959c6b795e96e39901ca8d952217bc81b7a9388a
<ide><path>scripts/react_native_pods.rb <ide> def get_react_codegen_spec(options={}) <ide> return spec <ide> end <ide> <add>def get_codegen_config_from_file(config_path, config_key) <add> empty = {'libraries': []} <add> if !File.exist?(config_path) <add> return empty <add> end <add> <add> config = JSON.parse(...
1
Ruby
Ruby
invoke html_escape on the proper receiver
901973b4d73ceb46cedc2490d75122dce5d06f04
<ide><path>actionpack/lib/action_view/helpers/number_helper.rb <ide> def number_to_phone(number, options = {}) <ide> str << "+#{country_code}#{delimiter}" unless country_code.blank? <ide> str << number <ide> str << " x #{extension}" unless extension.blank? <del> html_escape(str) <add> ...
1
Ruby
Ruby
simplify benchmarking and rescue
3be9134d1cb882f4be3be8d57b2f8bde5ecde887
<ide><path>actionpack/lib/action_controller/base.rb <ide> class Base <ide> # Controller specific instance variables which will not be accessible inside views. <ide> @@protected_instance_variables = %w(@assigns @performed_redirect @performed_render @variables_added @request_origin @url @parent_controller <ide> ...
3
Ruby
Ruby
fix method scoping test for postgresql
3848634a4b2be4ce911a6a7167119a627cb36327
<ide><path>activerecord/test/method_scoping_test.rb <ide> def test_merged_scoped_find <ide> poor_jamis = developers(:poor_jamis) <ide> Developer.with_scope(:find => { :conditions => "salary < 100000" }) do <ide> Developer.with_scope(:find => { :offset => 1 }) do <del> assert_equal(poor_jamis, Devel...
1
Javascript
Javascript
replace fixturedir with fixtures methods
4826ac537f408304a8a208a2365d3bb415065c14
<ide><path>test/parallel/test-fs-read.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <del>const path = require('path'); <ide> const fs = require('fs'); <del>const filepath = path.join(common.fixturesDi...
1
Go
Go
fix error in utils tests
2e3b660dd0d49dc78f4c486e952ea6db9c007d6a
<ide><path>utils/utils_test.go <ide> func TestWriteBroadcaster(t *testing.T) { <ide> <ide> // Test 1: Both bufferA and bufferB should contain "foo" <ide> bufferA := &dummyWriter{} <del> writer.AddWriter(bufferA) <add> writer.AddWriter(bufferA, "") <ide> bufferB := &dummyWriter{} <del> writer.AddWriter(bufferB) <add...
1
Javascript
Javascript
add component stacks to some warnings
82c7ca4cca90976cd1230e03ea1a4372a4276e67
<ide><path>packages/react-dom/src/__tests__/ReactDOMComponent-test.js <ide> describe('ReactDOMComponent', () => { <ide> } <ide> }).toWarnDev( <ide> 'Warning: Invalid attribute name: `blah" onclick="beevil" noise="hi`', <del> {withoutStack: true}, // TODO: add a stack <ide> ); <ide> ...
17
Text
Text
add monsanto as collaborator
717724611a9ef14290c881f95f2cdfc47369c9ab
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Petka Antonov** ([@petkaantonov](https://github.com/petkaantonov)) &lt;petka_antonov@hotmail.com&gt; <ide> * **Yosuke Furukawa** ([@yosuke-furukawa](https://github.com/yosuke-furukawa)) &lt;yosuke.furukawa@gmail.com&gt; <ide...
1
Text
Text
update stale feature messages
8b8d0fb42685a693eb32682549da2c7a9cf053e3
<ide><path>doc/contributing/feature-request-management.md <ide> to the issue: <ide> ```markdown <ide> There has been no activity on this feature request for <ide> 5 months and it is unlikely to be implemented. <del>It will be closed after 6 months after the last non-automated comment unless there is renewed <del>discus...
1
Text
Text
improve guide of command line injection [ci skip]
8167f23621a35016956ebf8f7d3e19aa8f57b1bb
<ide><path>guides/source/security.md <ide> If you use the [in_place_editor plugin](https://rubygems.org/gems/in_place_editi <ide> <ide> NOTE: _Use user-supplied command line parameters with caution._ <ide> <del>If your application has to execute commands in the underlying operating system, there are several methods i...
1
Javascript
Javascript
determine unit automatically in test
2564e708b55fe2f032c9e5ee4d00874baa089a9e
<ide><path>test/fixtures/scale.timeseries/financial-daily.js <ide> module.exports = { <ide> maxRotation: 0, <ide> sampleSize: 100 <ide> }, <del> time: { <del> unit: 'month' <del> }, <ide> // manually set major ticks so that test passes in all time zones with moment adapter <ide> ...
1
Javascript
Javascript
fix isip test
9057d3f17eab0e22513410a27c75b95375f97de3
<ide><path>test/simple/test-net-isip.js <ide> assert.equal(net.isIP('2001:dead:beef:1::2008:6'), 6); <ide> assert.equal(net.isIP('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'), 6); <ide> assert.equal(net.isIP('::1'), 6); <ide> assert.equal(net.isIP('::'), 6); <del>assert.equal(net.isIP('0000:0000:0000:0000:0000:0000:00001:...
1
Text
Text
add docs for "--containerd" in dockerd
cebb9543e1ae2263905562d1c54e380005d5fe4f
<ide><path>docs/reference/commandline/dockerd.md <ide> The Docker daemon relies on a <ide> (invoked via the `containerd` daemon) as its interface to the Linux <ide> kernel `namespaces`, `cgroups`, and `SELinux`. <ide> <add>By default, the Docker daemon automatically starts `containerd`. If you want to <add>control `co...
1
Go
Go
handle ipv6 entries
f7c9214e29a81679916b953572173393d5e766e5
<ide><path>pkg/discovery/discovery_test.go <ide> func (s *DiscoverySuite) TestNewEntry(c *check.C) { <ide> c.Assert(entry.Equals(&Entry{Host: "127.0.0.1", Port: "2375"}), check.Equals, true) <ide> c.Assert(entry.String(), check.Equals, "127.0.0.1:2375") <ide> <add> entry, err = NewEntry("[2001:db8:0:f101::2]:2375") ...
2
Javascript
Javascript
fix linting issues
02f092a2c1d4a77fbaf6a7e0e80a452634b7164c
<ide><path>packages/@ember/-internals/glimmer/tests/integration/application/engine-test.js <ide> moduleFor( <ide> }, <ide> }) <ide> ); <del> this.register( <del> 'template:application_error', <del> compile( <del> 'Error! {{@model.message}}' <del> ...
10
Text
Text
add a note about the existence of 'next/script'
d368f76b4dff84a2db46ee50a09ae29003f11b30
<ide><path>docs/api-reference/next/head.md <ide> In this case only the second `<meta property="og:title" />` is rendered. `meta` <ide> <ide> `title`, `meta` or any other elements (e.g. `script`) need to be contained as **direct** children of the `Head` element, <ide> or wrapped into maximum one level of `<React.Fragme...
1
Python
Python
remove unnecessary warning from train
e70a00fa76f50e6c49ece17b20d7c5246609ed35
<ide><path>spacy/cli/train.py <ide> def init_pipeline( <ide> else: <ide> msg.good(f"Loaded initialized pipeline from {init_path}") <ide> return nlp <del> msg.warn( <del> "Not saving initialized model: no output directory specified. " <del> "To speed up training, spaC...
1
Javascript
Javascript
unskip strict mode test
4daccb827dffb1e4494219ca831ccb7613f5294c
<ide><path>packages/@ember/-internals/glimmer/tests/integration/components/strict-mode-test.js <ide> if (EMBER_STRICT_MODE) { <ide> moduleFor( <ide> 'Strict Mode - built ins', <ide> class extends RenderingTestCase { <del> '@skip Can use Input'() { <add> '@test Can use Input'() { <ide> let Fo...
1
Javascript
Javascript
simplify filename checks
5450e48f6931d7960da88a96ddaab9f19dd4c788
<ide><path>lib/internal/worker.js <ide> class Worker extends EventEmitter { <ide> options.execArgv); <ide> } <ide> if (!options.eval) { <del> if (!path.isAbsolute(filename) && <del> !filename.startsWith('./') && <del> !filename.startsWith('../') && <de...
1
PHP
PHP
fix argument number issue
2b70af959aa79c756ebc612e25f045e5ebe11fb2
<ide><path>tests/TestCase/Routing/RouteCollectionTest.php <ide> public function testParseFallback() <ide> $routes = new RouteBuilder($this->collection, '/', []); <ide> <ide> $routes->resources('Articles'); <del> $routes->connect('/:controller', ['action' => 'index'], [], ['routeClass' => 'Inflec...
1
Go
Go
create labels when volume exists only remotely
4d8598ad0506b29c12632c1b8ed92eb58fc2f0e2
<ide><path>volume/store/store.go <ide> func (s *VolumeStore) create(name, driverName string, opts, labels map[string]st <ide> } <ide> <ide> if v != nil { <del> return v, nil <add> // there is an existing volume, if we already have this stored locally, return it. <add> // TODO: there could be some inconsistent det...
2
Ruby
Ruby
clean the code a bit
4eedb3928e5555e9d766f7c92637a6341c461efb
<ide><path>actionview/lib/action_view/helpers/tags/color_field.rb <ide> module Tags # :nodoc: <ide> class ColorField < TextField # :nodoc: <ide> def render <ide> options = @options.stringify_keys <del> options["value"] = options.fetch("value") { validate_color_string(value(object)) } <a...
2
Javascript
Javascript
add styled-jsx to babel plugins (#970)
3143e0d0a1fc72c36f7483ad6bcdd8c4364416fe
<ide><path>server/build/webpack.js <ide> export default async function createCompiler (dir, { dev = false, quiet = false <ide> 'next/css': require.resolve('../../lib/css'), <ide> 'next/head': require.resolve('../../lib/head'), <ide> 'next/document': require.resolve(...
1
Python
Python
fix relative imports
73b577cb01b7f5460b55f83a1c4b1678e086dd68
<ide><path>spacy/lang/bn/__init__.py <ide> from .stop_words import STOP_WORDS <ide> from .lemmatizer import LEMMA_RULES <ide> <del>from ..language_data import BASE_EXCEPTIONS <del>from ..language import Language <del>from ..attrs import LANG <del>from ..util import update_exc <add>from ..tokenizer_exceptions import BA...
35
Python
Python
add "medium" size to the elastichosts driver
4c02f616a6c55e3d10961e8b7286ffbf0798e6fa
<ide><path>libcloud/compute/drivers/elastichosts.py <ide> 'disk': 160, <ide> 'bandwidth': None, <ide> }, <add> 'medium': { <add> 'id': 'medium', <add> 'name': 'Medium instance', <add> 'cpu': 3000, <add> 'memory': 4096, <add> 'disk': 500, <add> 'bandwidth'...
2
Javascript
Javascript
remove debugging code
2247a74755d031926de49c2b1cfd8c26b764a29a
<ide><path>script/lib/create-rpm-package.js <ide> module.exports = function(packagedAppPath) { <ide> ); <ide> fs.copySync(packagedAppPath, rpmPackageApplicationDirPath); <ide> <del> try { <del> fs.chmodSync( <del> path.join(rpmPackageApplicationDirPath, 'chrome-sandbox'), <del> '4755' <del> ); <de...
1
Javascript
Javascript
handle blacktable2 array access correctly
6688c3a1f5c1ff8d0071bba8d76e60df9f99ec2f
<ide><path>pdf.js <ide> var CCITTFaxStream = (function ccittFaxStream() { <ide> if (i < end) <ide> code <<= end - i; <ide> if (code >= limit) { <del> var p = table[code]; <add> var p = table[code - ((limit == -1) ? 0 : limit)]; <ide> if (p[0] == i) { <id...
1
Javascript
Javascript
eliminate unused variables
81f55a1045800fd37a3249b3b6d95b6b7d02e9bb
<ide><path>packages/container/lib/main.js <ide> define("container", <ide> var factory = factoryFor(container, fullName); <ide> <ide> var splitName = fullName.split(":"), <del> type = splitName[0], name = splitName[1], <add> type = splitName[0], <ide> value; <ide> <ide> if...
10
Python
Python
add a docstring for `reverse()'
6f4fab81d2926af47e75e0c1bae4aad17c6bca91
<ide><path>djangorestframework/utils/__init__.py <ide> def dict2xml(input): <ide> <ide> <ide> def reverse(viewname, request, *args, **kwargs): <add> """ <add> Do the same as :py:func:`django.core.urlresolvers.reverse` but using <add> *request* to build a fully qualified URL. <add> """ <ide> return req...
1
Ruby
Ruby
replace argv.named with args.remaining
8374c3713a37385acb1894facbcfe01fd7470da9
<ide><path>Library/Homebrew/dev-cmd/extract.rb <ide> def extract <ide> extract_args.parse <ide> <ide> # Expect exactly two named arguments: formula and tap <del> raise UsageError if ARGV.named.length != 2 <add> raise UsageError if args.remaining.length != 2 <ide> <del> if ARGV.named.first !~ HOMEBREW...
1
Go
Go
allow network with --config-from to be --internal
afcb9fb2999495caa2e55df952f4538f0f1b630c
<ide><path>libnetwork/controller.go <ide> func (c *controller) NewNetwork(networkType, name string, id string, options ... <ide> if err = t.applyConfigurationTo(network); err != nil { <ide> return nil, types.InternalErrorf("Failed to apply configuration: %v", err) <ide> } <add> network.generic[netlabel.Internal...
1
Ruby
Ruby
handle scripterror in formula
ade8128a18ec3a053306e364e31687739de8c568
<ide><path>Library/Homebrew/exceptions.rb <ide> def format_list(class_list) <ide> end <ide> end <ide> <add>class FormulaUnreadableError < FormulaUnavailableError <add> attr_reader :formula_error <add> <add> def initialize(name, error) <add> super(name) <add> @formula_error = error <add> end <add> <add> def...
3
Javascript
Javascript
use socket.once, not socket.on
f26362e9381d88d4c906e3624f90fc76e9087c20
<ide><path>lib/http.js <ide> OutgoingMessage.prototype._writeRaw = function(data, encoding) { <ide> var timer = setTimeout(function() { <ide> socket.emit('close'); <ide> }); <del> socket.on('close', function() { <add> socket.once('close', function() { <ide> clearTimeout(timer); <id...
1
Python
Python
fix datetime_data for python versions >= 2.7
e014ff75420eeb809699935433ab4c61bd7f6f8b
<ide><path>numpy/lib/type_check.py <ide> class DATETIMEMETA(ctypes.Structure): <ide> # FIXME: This needs to be kept consistent with enum in ndarrayobject.h <ide> from numpy.core.multiarray import DATETIMEUNITS <ide> obj = ctypes.py_object(DATETIMEUNITS) <del> result = func(obj) <add> if sys.version_in...
1
PHP
PHP
add string|array|null typehint for data
40cd2d94332427ec1884f7331d45886c1ca48436
<ide><path>src/TestSuite/IntegrationTestTrait.php <ide> public function get($url) <ide> * response. <ide> * <ide> * @param string|array $url The URL to request. <del> * @param array $data The data for the request. <add> * @param string|array|null $data The data for the request. <ide> * @retu...
1
Javascript
Javascript
use "empty" object for empty query strings
e9dc6306ca97598d6a8fe9baa7c8a8ed002287b2
<ide><path>lib/url.js <ide> const slashedProtocol = { <ide> }; <ide> const querystring = require('querystring'); <ide> <add>// This constructor is used to store parsed query string values. Instantiating <add>// this is faster than explicitly calling `Object.create(null)` to get a <add>// "clean" empty object (tested w...
2
PHP
PHP
make fatal errors into exception
7f2d22f6fbab1dc98cac3669693a6d1f7b01c612
<ide><path>src/Error/ErrorTrap.php <ide> public function handleError( <ide> if (!(error_reporting() & $code)) { <ide> return false; <ide> } <del> $debug = Configure::read('debug'); <add> if ($code === E_USER_ERROR || $code === E_ERROR || $code === E_PARSE) { <add> th...
2
Go
Go
add comments in graph.go
99b36c2c326ccc11e726eee6ee78a0baf166ef96
<ide><path>graph.go <ide> import ( <ide> "time" <ide> ) <ide> <add>// A Graph is a store for versioned filesystem images, and the relationship between them. <ide> type Graph struct { <ide> Root string <ide> } <ide> <add>// NewGraph instanciates a new graph at the given root path in the filesystem. <add>// `root` wi...
1
PHP
PHP
compare user instances in auth tests
86d46309b0499cbc1b1ab8692a08c627d2e50940
<ide><path>tests/Auth/AuthGuardTest.php <ide> public function testUserMethodReturnsCachedUser() <ide> $user = m::mock('Illuminate\Contracts\Auth\Authenticatable'); <ide> $mock = $this->getGuard(); <ide> $mock->setUser($user); <del> $this->assertEquals($user, $mock->user()); <add> $...
1
Ruby
Ruby
check git repos for validity before updating
8a60d852b3ad4ba0dc6c59dc9a5d956eed300e1d
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> unless system "/usr/bin/which git" <ide> <ide> ohai "Cloning #{@url}" <add> <add> if @clone.exist? <add> Dir.chdir(@clone) do <add> # Check for interupted clone from a previous install <add> unless system 'git', ...
1
Javascript
Javascript
add destructors to pooled classes in reactchildren
16d8f20576088690e0c5cd2a749f550b7217dde1
<ide><path>src/isomorphic/children/ReactChildren.js <ide> function ForEachBookKeeping(forEachFunction, forEachContext) { <ide> this.context = forEachContext; <ide> this.count = 0; <ide> } <add>ForEachBookKeeping.prototype.destructor = function() { <add> this.func = null; <add> this.context = null; <add> this.cou...
4
Mixed
Javascript
move dep0113 to end-of-life
b8018f407b2ae2daa70d41b2aa9dbbc5ca921b0f
<ide><path>doc/api/deprecations.md <ide> accessed outside of Node.js core: `Socket.prototype._handle`, <ide> ### DEP0113: Cipher.setAuthTag(), Decipher.getAuthTag() <ide> <!-- YAML <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/26249 <add> description: End-of-Life. <i...
2
Text
Text
translate 10.5-clone-with-props.md to japanese
2a81f1229af9d4b4b5b444f88325bd8279471682
<ide><path>docs/docs/10.5-clone-with-props.ja-JP.md <add>--- <add>id: clone-with-props <add>title: ReactElementsをクローンすること <add>permalink: clone-with-props-ja-JP.html <add>prev: test-utils-ja-JP.html <add>next: create-fragment-ja-JP.html <add>--- <add> <add>> 注意: <add>> `cloneWithProps` は使用不可になりました。[React.cloneElement](...
1
Ruby
Ruby
save ~9% of object allocations on heavy requests
b474d06d5ea646c8145b07c8acbf1181c9e0b2aa
<ide><path>activesupport/lib/active_support/per_thread_registry.rb <ide> module ActiveSupport <ide> # <ide> # If the class has an initializer, it must accept no arguments. <ide> module PerThreadRegistry <add> def self.extended(object) <add> object.instance_variable_set '@per_thread_registry_key', object.n...
1