content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix missing restore of resourceresolvedata | 877cb13806cdf0eec0bd8d668f1afd238b790047 | <ide><path>lib/NormalModule.js
<ide> class NormalModule extends Module {
<ide> this.generator = m.generator;
<ide> this.generatorOptions = m.generatorOptions;
<ide> this.resource = m.resource;
<add> this.resourceResolveData = m.resourceResolveData;
<ide> this.context = m.context;
<ide> this.matchResource = m... | 3 |
Javascript | Javascript | use window.execscript instead of window.eval on ie | e54909f5efa37cd4013d7f21a77817ea459cde64 | <ide><path>docs/src/templates/doc_widgets.js
<ide> element.append(tabs);
<ide>
<ide> var script = (exampleSrc.match(/<script[^\>]*>([\s\S]*)<\/script>/) || [])[1] || '';
<add>
<ide> try {
<del> window.eval(script);
<add> if (window.execScript) { // IE
<add> window.execScript(script || '"st... | 1 |
Java | Java | fix javadoc links | 20d0becbc62bee7e9459be1186012abd3781d4f5 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/client/standard/AnnotatedEndpointConnectionManager.java
<ide> /**
<ide> * WebSocket {@link ConnectionManagerSupport connection manager} that connects
<ide> * to the server via {@link WebSocketContainer} and handles the session with an
<del> * {@... | 4 |
PHP | PHP | apply fixes from styleci | c1a33b865d009b2aec4d8b174db30d4bb68e95a0 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function prepareJsonResponse($request, Exception $e)
<ide> 'line' => $e->getLine(),
<ide> 'trace' => $e->getTrace(),
<ide> ], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), $status, array_merge($headers, [
<del> ... | 1 |
Mixed | Javascript | expose offset parameters for toastandroid | 546a43bda04bd5f24d24ebefb86cf790f8a17e57 | <ide><path>Libraries/Components/ToastAndroid/ToastAndroid.android.js
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<ide> * @providesModule ToastAndroid
<add> * @flow
<ide> */
<ide>
<ide> 'use strict';
<ide> var RCTToastAndroid = require('NativeModules').ToastAndroid;
<ide... | 3 |
Javascript | Javascript | extract batchprocessor module | f8b37b7d241c610fbea75b8cd632eff254a3f77e | <ide><path>packager/react-packager/src/lib/BatchProcessor.js
<add>/**
<add> * Copyright (c) 2016-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
... | 2 |
Javascript | Javascript | extract root element class into variable | 505031063e8c4ba096c359506dc979fa2ccfc96a | <ide><path>packages/ember-views/lib/system/event_dispatcher.js
<ide> import ActionManager from 'ember-views/system/action_manager';
<ide> import View from 'ember-views/views/view';
<ide> import assign from 'ember-metal/assign';
<ide>
<add>let ROOT_ELEMENT_CLASS = 'ember-application';
<add>let ROOT_ELEMENT_SELECTOR = '... | 1 |
Python | Python | return none if an xcomarg fails to resolve | a4e38978194ef46565bc1e5ba53ecc65308d09aa | <ide><path>airflow/exceptions.py
<ide> class AirflowOptionalProviderFeatureException(AirflowException):
<ide> """Raise by providers when imports are missing for optional provider features."""
<ide>
<ide>
<add>class XComNotFound(AirflowException):
<add> """Raise when an XCom reference is being resolved against ... | 3 |
Ruby | Ruby | fix duplicate formulae in search results | da347ca1aa03c11087f2963d7cc1f160f68812d4 | <ide><path>Library/Homebrew/search.rb
<ide> def search_formulae(string_or_regex)
<ide> .search(string_or_regex)
<ide> .sort
<ide>
<del> results += Formula.fuzzy_search(string_or_regex)
<add> results |= Formula.fuzzy_search(string_or_regex)
<ide>
<ide> results.map do |na... | 1 |
Javascript | Javascript | add reloadwithreason to fast refresh | 4cea628e0c215f2a13489022068f6e38cab5aaa4 | <ide><path>Libraries/Core/setUpReactRefresh.js
<ide> 'use strict';
<ide>
<ide> if (__DEV__) {
<del> const NativeDevSettings = require('../NativeModules/specs/NativeDevSettings')
<del> .default;
<add> const DevSettings = require('../Utilities/DevSettings');
<ide>
<del> if (typeof NativeDevSettings.reload !== 'fu... | 1 |
Python | Python | add detailed comment to _block_check_depths_match | 7eb104463f192f50d184c3217a0c0febe3a88c94 | <ide><path>numpy/core/shape_base.py
<ide> def stack(arrays, axis=0, out=None):
<ide>
<ide>
<ide> def _block_check_depths_match(arrays, index=[]):
<add> # Recursive function checking that the depths of nested lists in `arrays`
<add> # all match. Mismatch raises a ValueError as described in the block
<add> # d... | 1 |
Text | Text | fix some broken contents links | bac792c1634724def05c5ebc93891ecd5b353a53 | <ide><path>docs/reference/run.md
<ide> Only the operator (the person executing `docker run`) can set the
<ide> following options.
<ide>
<ide> - [Detached vs foreground](#detached-vs-foreground)
<del> - [Detached (-d)](#detached-d)
<add> - [Detached (-d)](#detached--d)
<ide> - [Foreground](#foreground)
<i... | 1 |
Javascript | Javascript | avoid global resolver in tests/node app setup | ceeeb5a6c22bae016df07c44470eb74831879b1b | <ide><path>tests/node/helpers/setup-app.js
<ide> function createApplication() {
<ide>
<ide> let app = this.Ember.Application.extend().create({
<ide> autoboot: false,
<add> Resolver: {
<add> create: (specifier) => {
<add> return this.registry[specifier];
<add> },
<add> },
<ide> });
<ide> ... | 1 |
PHP | PHP | add two tests to the collection | 4c75d5d801f264c3557dbd2ac001236294e6a3bc | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testIterable()
<ide> }
<ide>
<ide>
<add> public function testFilter()
<add> {
<add> $c = new Collection(array(array('id' => 1, 'name' => 'Hello'), array('id' => 2, 'name' => 'World')));
<add> $this->assertEquals(array(1 => array('id' => 2, 'n... | 1 |
Javascript | Javascript | prevent infinite loop when ssr-rendering a portal | c3f1b6cd91ffa3e05465c3ed2f48225876c1bd3b | <ide><path>packages/react-dom/src/__tests__/ReactServerRendering-test.js
<ide> 'use strict';
<ide>
<ide> var React;
<add>var ReactCallReturn;
<ide> var ReactDOM;
<ide> var ReactDOMServer;
<ide> var ReactTestUtils;
<ide> describe('ReactDOMServer', () => {
<ide> beforeEach(() => {
<ide> jest.resetModules();
<ide> ... | 2 |
PHP | PHP | fix cs errors | de218605cb484a41bcadb71a8b228d6c9f57eaca | <ide><path>src/Http/ActionDispatcher.php
<ide> namespace Cake\Http;
<ide>
<ide> use Cake\Controller\Controller;
<del>use Cake\Http\Response;
<ide> use Cake\Routing\Router;
<ide> use LogicException;
<ide> use Psr\Http\Message\ResponseInterface;
<ide><path>tests/TestCase/Http/ActionDispatcherTest.php
<ide> */
<ide> nam... | 2 |
Text | Text | fix api of example code | d5f2a707c564614a4cae6e0324229c4fbb7361ba | <ide><path>README.md
<ide> method call.
<ide> For example, the following does not perform any work, because the resulting
<ide> Seq is never used:
<ide>
<del> var oddSquares = Immutable.Sequence.of(1,2,3,4,5,6,7,8)
<add> var oddSquares = Immutable.Seq.of(1,2,3,4,5,6,7,8)
<ide> .filter(x => x % 2).map(x => ... | 1 |
Text | Text | fix some doc typos and spacings | 3b2ee9a704f1e3974dbb9ce857886d5e377580ab | <ide><path>docs/understanding-docker.md
<ide> Docker Engine is a client-server application with these major components:
<ide>
<ide> 
<ide>
<del>The CLI imakes use of the Docker REST API to control or interact with the Docker daemon through script... | 3 |
Text | Text | fix typo in with-material-ui readme | b52b91a840f585594678d9746087e3bdb1a668f0 | <ide><path>examples/with-material-ui/README.md
<ide> Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.
<ide>
<ide> ```bash
<ide> now
<add>```
<ide>
<ide> ## The idea behind the example
<ide> | 1 |
Javascript | Javascript | remove bind() and self | 45367a2a8fca611279fe8e18b2af244564da7616 | <ide><path>lib/cluster.js
<ide> function RoundRobinHandle(key, address, port, addressType, backlog, fd) {
<ide> else
<ide> this.server.listen(address); // UNIX socket path.
<ide>
<del> var self = this;
<del> this.server.once('listening', function() {
<del> self.handle = self.server._handle;
<del> self.h... | 1 |
PHP | PHP | fix style in orderby | 6bbb0bc1f41cd35bb82dae5e28ca24853311f9e3 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function orHavingRaw($sql, array $bindings = [])
<ide> */
<ide> public function orderBy($column, $direction = 'asc')
<ide> {
<del> if (!in_array(strtolower($direction), ['asc', 'desc'], true)) {
<add> if (! in_array(strtolower(... | 1 |
Python | Python | fix dropout in rnns | e341e73c6ae89cb2fedfa5051ea7ed6c1651c6dc | <ide><path>keras/layers/recurrent.py
<ide> def get_constants(self, x):
<ide> if 0 < self.dropout_U < 1:
<ide> ones = K.ones_like(K.reshape(x[:, 0, 0], (-1, 1)))
<ide> ones = K.concatenate([ones] * self.output_dim, 1)
<del> B_U = [K.dropout(ones, self.dropout_U) for _ in range(... | 1 |
Text | Text | correct some typos for docs | 4d66f18be07b13cf41c48190d813fc045bb46678 | <ide><path>docs/userguide/networking/dockernetworks.md
<ide> networks.
<ide>
<ide> Within a user-defined bridge network, linking is not supported. You can
<ide> expose and publish container ports on containers in this network. This is useful
<del>if you want make a portion of the `bridge` network available to an outsi... | 3 |
Go | Go | add missing test for full coverage | c2699d8d896d592dc02276d76dfdf544fd26d0dd | <ide><path>api/server/server_unit_test.go
<ide> func TestGetImagesHistory(t *testing.T) {
<ide> var called bool
<ide> eng.Register("history", func(job *engine.Job) engine.Status {
<ide> called = true
<add> if len(job.Args) == 0 {
<add> t.Fatal("Job arguments is empty")
<add> }
<ide> if job.Args[0] != imageNam... | 1 |
Python | Python | recommend polynomial.polynomial over np.polyfit | 4a0c307b1af162c4e3363a8b4c90fa1a138adebf | <ide><path>numpy/lib/polynomial.py
<ide> def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
<ide>
<ide> Fit a polynomial ``p(x) = p[0] * x**deg + ... + p[deg]`` of degree `deg`
<ide> to points `(x, y)`. Returns a vector of coefficients `p` that minimises
<del> the squared error.
<add> the... | 2 |
Javascript | Javascript | validate the input data before opening file | 3e9302b2b34ab0309de8eda45c17efc8fd9cc2f5 | <ide><path>lib/internal/fs/promises.js
<ide> function validateFileHandle(handle) {
<ide> }
<ide>
<ide> async function writeFileHandle(filehandle, data, options) {
<del> if (!isArrayBufferView(data)) {
<del> validateStringAfterArrayBufferView(data, 'data');
<del> data = Buffer.from(data, options.encoding || 'utf... | 2 |
Java | Java | improve decodetomono support | f4d8c7cc2b6e3add1b1b06dc487cce82dceb4a49 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java
<add>/*
<add> * Copyright 2002-2017 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 with the License.
... | 9 |
PHP | PHP | emulate transaction nesting | 2633e1249db313062c7b6c0b30bb84130ec88dd9 | <ide><path>src/Illuminate/Database/Connection.php
<ide> class Connection implements ConnectionInterface {
<ide> */
<ide> protected $fetchMode = PDO::FETCH_ASSOC;
<ide>
<add> /**
<add> * The number of active transasctions.
<add> *
<add> * @var int
<add> */
<add> protected $transactions = 0;
<add>
<ide> /**
<ide... | 1 |
Javascript | Javascript | cover dgram socket close during cluster bind | ac602a251a0ca385775a71357d52e9c752430dfb | <ide><path>test/parallel/test-dgram-cluster-close-during-bind.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const cluster = require('cluster');
<add>const dgram = require('dgram');
<add>
<add>if (common.isWindows) {
<add> common.skip('dgram clustering is cu... | 1 |
Text | Text | fix documentation about applicationrecord | cbbb89f1c9edcf438625b10178c8b2faf6ef4114 | <ide><path>guides/source/active_record_basics.md
<ide> What if you need to follow a different naming convention or need to use your
<ide> Rails application with a legacy database? No problem, you can easily override
<ide> the default conventions.
<ide>
<del>`ApplicationRecord` inherits from `ActionController::Base`, w... | 1 |
Javascript | Javascript | fold dispatch function into main event dispatch | b208042f520b2ee768a93323d6bdc65eabfb0d65 | <ide><path>src/event.js
<ide> jQuery.event = {
<ide> // Discard the second event of a jQuery.event.trigger() and
<ide> // when an event is called after a page has unloaded
<ide> return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
<del> jQuery.event.handle.apply( eventHand... | 1 |
PHP | PHP | remove duplicate docs | c36bf10602f20e4fb53797076ce185297db37bed | <ide><path>src/Routing/Router.php
<ide> public static function url($url = null, $full = false)
<ide> *
<ide> * ### Usage
<ide> *
<del> * - `Router::url('/posts/edit/1');` Returns the string with the base dir prepended.
<del> * This usage does not use reverser routing.
<del> * - `Router::url... | 1 |
PHP | PHP | add maptodictionary tests | 7d8d81693aaa18d07e3fe0cd6e380a7518361406 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testFlatMap()
<ide> $this->assertEquals(['programming', 'basketball', 'music', 'powerlifting'], $data->all());
<ide> }
<ide>
<add> public function testMapToDictionary()
<add> {
<add> $data = new Collection([
<add> ... | 1 |
Javascript | Javascript | handle division by zero in partition | dce7571381c9be26b33d1964abc7f0b02d2b8aa7 | <ide><path>src/layout/partition.js
<ide> d3.layout.partition = function() {
<ide> n = children.length,
<ide> c,
<ide> d;
<del> dx /= node.value;
<add> dx = node.value === 0
<add> ? 0 : dx / node.value;
<ide> while (++i < n) {
<ide> position(c = children[i], x... | 1 |
Javascript | Javascript | remove unused vars and fix typo. | 48d3ae2dd6a326814914cc01f87f263d3afad38c | <ide><path>examples/with-apollo-auth/components/RegisterBox.js
<ide> const RegisterBox = ({ client }) => {
<ide>
<ide> name.value = email.value = password.value = ''
<ide> }}>
<del> {error && <p>Issue occured while registering :(</p>}
<add> {error && <p>Issue occurred while register... | 8 |
Python | Python | tweak a sentence about broadcasting | 9de802ab28252b1d1480382db96a917e7f519cfa | <ide><path>numpy/doc/broadcasting.py
<ide> General Broadcasting Rules
<ide> ==========================
<ide> When operating on two arrays, NumPy compares their shapes element-wise.
<del>It starts with the trailing dimensions and works its way forward. Two
<del>dimensions are compatible when
<add>It starts with the tra... | 1 |
Ruby | Ruby | fix typo on the add_index | 611020b4dd16799cc836ab15d7a010e6ad48c1ad | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def rename_column(table_name, column_name, new_column_name)
<ide> # Note: SQLite doesn't support index length
<ide> #
<ide> # ====== Creating an index with a sort order (desc or asc, asc is the default)
<... | 1 |
Ruby | Ruby | remove potential `variants` mutation in `decorate` | bcf49299ff3afcb08ba5e155cedeb62a8b79f1fa | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def decorate(templates, path_info, details, locals)
<ide> cached = nil
<ide> templates.each do |t|
<ide> t.locals = locals
<del> t.variants = details[:variants] || [] if t.variants.empty?
<ide> t.virtu... | 1 |
PHP | PHP | fix docstriing link | 781466cea4a4766acf8f84a0dca1a22543a2be9d | <ide><path>src/Console/ConsoleIo.php
<ide> public function ask($prompt, $default = null)
<ide> *
<ide> * @param int $mode The output mode.
<ide> * @return void
<del> * @see \Cake\Console\ConsoleOutput::outputAs()
<add> * @see \Cake\Console\ConsoleOutput::setOutputAs()
<ide> */
<ide> publ... | 1 |
Javascript | Javascript | add reactfibererrordialog from react + tests | a9cab21010146eea7f6e5e22c026bd297468bbca | <ide><path>Libraries/Core/ReactFiberErrorDialog.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow strict-local
<add> */... | 3 |
Python | Python | add some options on windows | 3bb1ced681fbff6b0282a1bbbea4c164399beed1 | <ide><path>glances/main.py
<ide> def init_args(self):
<ide> dest='webserver', help='run Glances in web server mode (bottle needed)')
<ide> parser.add_argument('--cached-time', default=self.cached_time, type=int,
<ide> dest='cached_time', help='set the serv... | 1 |
PHP | PHP | add type mapping for binary uuids | 3324bcb842d1ebfb7a02c0ec9ccd73bedfa34a26 | <ide><path>src/Database/Type.php
<ide> class Type implements TypeInterface
<ide> 'integer' => 'Cake\Database\Type\IntegerType',
<ide> 'biginteger' => 'Cake\Database\Type\IntegerType',
<ide> 'binary' => 'Cake\Database\Type\BinaryType',
<add> 'binaryuuid' => 'Cake\Database\Type\BinaryUuidTy... | 1 |
Ruby | Ruby | allow dashes in tap-formula names | fe9e2be8fe059d8dd67274f19fecc3fdca132054 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def dependent_s
<ide> end
<ide>
<ide> def to_s
<del> if name =~ %r{(\w+)/(\w+)/(\w+)} then <<-EOS.undent
<add> if name =~ %r{(\w+)/(\w+)/([^/]+)} then <<-EOS.undent
<ide> No available formula for #$3 #{dependent_s}
<ide> Please tap it and then try a... | 1 |
PHP | PHP | add test to show the handle of special formats | 647d226715f9600e0e61f36f33e1465eff535524 | <ide><path>tests/Database/DatabaseEloquentIntegrationTest.php
<ide> public function testTimestampsUsingOldSqlServerDateFormatFallbackToDefaultParsin
<ide> $this->assertFalse(Date::hasFormat('2017-11-14 08:23:19.734', $model->getDateFormat()));
<ide> }
<ide>
<add> public function testSpecialFormats()
<ad... | 1 |
Text | Text | add project tests | 531c3f9997a4e91ad27a0c64a7676a5d14f60ece | <ide><path>curriculum/challenges/english/09-information-security/information-security-projects/secure-real-time-multiplayer-game.md
<ide> Develop a 2D real time multiplayer game using the HTML Canvas API and [Socket.io
<ide>
<ide> When you are done, make sure a working demo of your project is hosted somewhere public. ... | 1 |
Ruby | Ruby | add incineration by default | 3c8fc4e9ae53af9739a0e84b1141a79e03552d4a | <ide><path>app/jobs/action_mailroom/inbound_email/incineration_job.rb
<add>class ActionMailroom::InboundEmail::IncinerationJob < ApplicationJob
<add> queue_as :action_mailroom_incineration
<add>
<add> def self.schedule(inbound_email)
<add> set(wait: ActionMailroom::InboundEmail::Incineratable::INCINERATABLE_AFTER)... | 5 |
Text | Text | fix syntax errors | fb45ef36795ff763646daf6c39ac46caa7e44f8b | <ide><path>docs/docs/10.1-animation.md
<ide> It is also possible to use custom class names for each of the steps in your tran
<ide> ```javascript
<ide> ...
<ide> <ReactCSSTransitionGroup
<del> transitionName={
<add> transitionName={{
<ide> enter: 'enter',
<ide> enterActive: 'enterActive',
<ide> ... | 1 |
Go | Go | remove unused pluginregistryservice | 61599d0a4d61262e00142b9bc4d555350d70f7a5 | <ide><path>plugin/manager.go
<ide> import (
<ide>
<ide> "github.com/containerd/containerd/content"
<ide> "github.com/containerd/containerd/content/local"
<del> "github.com/docker/distribution/reference"
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/pkg/authorization"
<ide> "github.com... | 1 |
Javascript | Javascript | avoid duplicate attachtodom call | 218eb57f3a2ada94d6691d2c60afc56556d7719a | <ide><path>spec/text-editor-element-spec.js
<ide> describe('TextEditorElement', () => {
<ide> spyOn(window, 'requestAnimationFrame').andCallFake(fn => fn())
<ide>
<ide> const element = buildTextEditorElement()
<del> jasmine.attachToDOM(element)
<ide>
<ide> expect(element.isUpdatedSynchronously(... | 1 |
Python | Python | test strict like= | 15483daf1d047bb9929bf54a3b826f49d4555725 | <ide><path>numpy/core/tests/test_overrides.py
<ide> def test_array_like(self, function, args, kwargs, numpy_ref):
<ide> assert array_like.function is my_func
<ide>
<ide> @pytest.mark.parametrize('function, args, kwargs', _array_tests)
<del> @pytest.mark.parametrize('numpy_ref', [True, False])
<add> ... | 1 |
Javascript | Javascript | allow tabs in input" | d9e250295bca90438d87a6f7bb85186ad75d2ba0 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide> }
<ide> historySize = historySize || kHistorySize;
<ide>
<del> if (completer && typeof completer !== 'function') {
<add> completer = completer || function() { return []; };
<add>
<add> if (typeof completer !== 'funct... | 2 |
Ruby | Ruby | fix fraction float assertions in time_ext_test | 4484db409446016b89eb1144d96db4f553f296d5 | <ide><path>activesupport/test/core_ext/time_ext_test.rb
<ide> def test_sec_fraction
<ide> assert_equal Rational(1, 1_000_000_000), time.sec_fraction
<ide>
<ide> time = Time.utc(2016, 4, 23, 0, 0, 0.000_000_001)
<del> assert_equal Rational(1, 1_000_000_000), time.sec_fraction
<add> assert_equal 0.000_000_... | 1 |
Text | Text | clarify more optional parameters in node-api | 0b4d06657b1ad91617ab8516d148e6a2a953b358 | <ide><path>doc/api/n-api.md
<ide> napi_status napi_create_arraybuffer(napi_env env,
<ide> * `[in] env`: The environment that the API is invoked under.
<ide> * `[in] length`: The length in bytes of the array buffer to create.
<ide> * `[out] data`: Pointer to the underlying byte buffer of the `ArrayBuffer`.
<add> `data`... | 1 |
Go | Go | introduce a `cli` package for test-integration | 50c4475df6304e0cf12ea95217eb00ab5d572e34 | <ide><path>integration-cli/check_test.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/api/types/swarm"
<ide> cliconfig "github.com/docker/docker/cli/config"
<add> "github.com/docker/docker/integration-cli/cli"
<ide> "github.com/docker/docker/integration-cli/daemon"
<ide> "github.com/docker/docker/integrati... | 33 |
Javascript | Javascript | restore footer logo | 6a676c8d9bbf3adb8011606bf5f89b879addaf3f | <ide><path>website/docusaurus.config.js
<ide> module.exports = {
<ide> ]
<ide> }
<ide> ],
<add> logo: {
<add> alt: 'Redux Logo',
<add> src: 'img/redux_white.svg',
<add> href: 'https://redux.js.org/',
<add> },
<ide> copyright:
<ide> 'Copyright (c) 2015... | 1 |
Ruby | Ruby | deprecate pathname#cp and pathname#chmod_r | 96195295a3462070a26e03148f5140bbf0ea4dfd | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def default_stat
<ide> private :default_stat
<ide>
<ide> def cp dst
<add> opoo "Pathname#cp is deprecated, use FileUtils.cp"
<ide> if file?
<ide> FileUtils.cp to_s, dst
<ide> else
<ide> def rmdir_if_possible
<ide> end
<ide>
<ide> def chmod_... | 2 |
Ruby | Ruby | update diff_start_sha1 unconditionally | d1222971f61b5e882571e303750da34fdee5a0cf | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def brew_update
<ide> # Use Travis CI Git variables for master or branch jobs.
<ide> elsif ENV["TRAVIS_COMMIT_RANGE"]
<ide> diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..."
<del> diff_start_sha1 = git("merge-base", diff_... | 1 |
Python | Python | add fenwick tree | d68d0ef05c024cb90f96b379c1206b3487847cbc | <ide><path>data_structures/Binary Tree/FenwickTree.py
<add>class FenwickTree:
<add>
<add> def __init__(self, SIZE): # create fenwick tree with size SIZE
<add> self.Size = SIZE
<add> self.ft = [0 for i in range (0,SIZE)]
<add>
<add> def update(self, i, val): # update data (adding) in index i in O(lg ... | 1 |
Python | Python | fix atmos tests and azure blobs | c45fa041a44567e1f811e6bf618c0e7d8206b677 | <ide><path>libcloud/test/storage/test_atmos.py
<ide> from libcloud.storage.drivers.atmos import AtmosConnection, AtmosDriver
<ide> from libcloud.storage.drivers.dummy import DummyIterator
<ide>
<del>from libcloud.test import MockHttp, generate_random_data
<add>from libcloud.test import MockHttp, generate_random_data, ... | 2 |
Python | Python | update token auth view. closes | 0539b1be01fd9c6b842a4a8bbdf23b65af8357d1 | <ide><path>rest_framework/authtoken/views.py
<ide> class ObtainAuthToken(APIView):
<ide> permission_classes = ()
<ide> parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,)
<ide> renderer_classes = (renderers.JSONRenderer,)
<del> serializer_class = AuthTokenSerializer
<del> ... | 1 |
Javascript | Javascript | add better python path description | 57531d75fe9356a693680eac0396bf6f5595989f | <ide><path>script/utils/verify-requirements.js
<ide> function verifyPython27() {
<ide> }
<ide>
<ide> if (!fs.existsSync(pythonPath)) {
<del> console.warn("Python 2.7 is required to build Atom. Python 2.7 must be installed at '" + pythonPath + "' or the PYTHON env var must be set to '/path/to/executable/py... | 1 |
Javascript | Javascript | remove unnecessary escape character for lint | 214c885b90722708db6a3febbbb80f90c8750eb2 | <ide><path>server/build/webpack.js
<ide> export default async function createCompiler (dir, { hotReload = false, dev = fa
<ide> }
<ide>
<ide> const babelRuntimePath = require.resolve('babel-runtime/package')
<del> .replace(/[\\\/]package\.json$/, '')
<add> .replace(/[\\/]package\.json$/, '')
<ide>
<ide> const... | 1 |
Ruby | Ruby | eliminate the usage of `any?` (#638) | a8566c9848122474b92fc8989eec196d5f4fb69b | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_revision
<ide>
<ide> fv = FormulaVersions.new(formula, :max_depth => 10)
<ide> revision_map = fv.revision_map("origin/master")
<del> if (revisions = revision_map[formula.version]).any?
<add> revisions = revision_map[formula.version]
<add> if !re... | 19 |
Python | Python | use a separate method to detect an installation cd | ca7fb9090155c661dcb5c7d5fa83fa07924ccf1d | <ide><path>libcloud/compute/drivers/cloudsigma.py
<ide> def create_node(self, name, size, image, ex_metadata=None,
<ide> and 1 with the provided VLAN.
<ide> :type ex_vlan: ``str``
<ide> """
<del> # Only pre-installed images can be used with create_node
<add> is_inst... | 1 |
PHP | PHP | add support for newqueryforrestoration from queues | 8766d9909007bdb318f390a1d157898bd56b8082 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function newQueryWithoutScope($scope)
<ide> return $builder->withoutGlobalScope($scope);
<ide> }
<ide>
<add> /**
<add> * Get a new query to restore one or more models by the queueable IDs.
<add> *
<add> * @param array|int $... | 2 |
Text | Text | elevate diagnostic report to tier1 | 6ad65aed12dc58ca7e389d06cb515c97b565b1d1 | <ide><path>doc/guides/diagnostic-tooling-support-tiers.md
<ide> The tools are currently assigned to Tiers as follows:
<ide>
<ide> | Tool Type | Tool/API Name | Regular Testing in Node.js CI | Integrated with Node.js | Target Tier |
<ide> |-----------|---------------------------|--------------------------... | 1 |
Mixed | Python | add patience sort | 79d57552aa4d8c4777dbcf5126dbb37142866469 | <ide><path>DIRECTORY.md
<ide> * [Odd Even Transposition Parallel](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_parallel.py)
<ide> * [Odd Even Transposition Single Threaded](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_single_threaded.py)
<ide> ... | 2 |
Text | Text | add detail for how to tell git to track new files | e32ff6485381f033141d4b5365515a94f0109ec5 | <ide><path>guide/english/git/git-stash/index.md
<ide> git stash save "optional message for yourself"
<ide>
<ide> This saves your changes and reverts the working directory to what it looked like for the latest commit. Stashed changes are available from any branch in that repository.
<ide>
<del>Note that changes you wa... | 1 |
Python | Python | remove unnecessary dash for the dividing line | 379ffd443c12ef45f178a30605a237198689f29b | <ide><path>numpy/core/fromnumeric.py
<ide> def clip(a, a_min, a_max, out=None, **kwargs):
<ide> :ref:`ufuncs-output-type`
<ide>
<ide> Notes
<del> --------
<add> -----
<ide> When `a_min` is greater than `a_max`, `clip` returns an
<ide> array in which all values are equal to `a_max`,
<ide> as... | 1 |
Text | Text | add table of contents to release guide | b62349137106a0bb8a418947b76216868886e87c | <ide><path>doc/releases.md
<ide> The intended audience is those who have been authorized by the Node.js
<ide> Foundation Technical Steering Committee (TSC) to create, promote, and sign
<ide> official release builds for Node.js, hosted on <https://nodejs.org/>.
<ide>
<add>## Table of Contents
<add>
<add>* [Who can make... | 1 |
Text | Text | update known issues | f130a365e6c7106a9a05707b1b861356c47fff95 | <ide><path>docs/KnownIssues.md
<ide> However, you can still use the Console feature of the devtools, and debugging Ja
<ide>
<ide> ### Missing Modules and Native Views
<ide>
<del>This is an initial release of React Native Android and therefore not all of the views present on iOS are released on Android. We are very mu... | 1 |
PHP | PHP | add macroable trait to database factory | aa19ecd0ceef93b6e8a96764cdb07d7c878871b0 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> use Illuminate\Support\Collection;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Support\Traits\ForwardsCalls;
<add>use Illuminate\Support\Traits\Macroable;
<ide> use Throwable;
<ide>
<ide> abstract class Factory
<ide> {
<del> use Forw... | 2 |
Go | Go | handle external mounts outside of lxc | 45d7dcfea276841cce782feced3a2eb3eab01208 | <ide><path>container.go
<ide> type Container struct {
<ide> network *NetworkInterface
<ide> NetworkSettings *NetworkSettings
<ide>
<del> SysInitPath string
<ide> ResolvConfPath string
<ide> HostnamePath string
<ide> HostsPath string
<ide> func (container *Container) generateEnvConfig(env []strin... | 4 |
Python | Python | add slow generate tests for pretrained lm models | 17c45c39ed5b3e26bf6240ef4a95bc97b4e7fe09 | <ide><path>src/transformers/modeling_xlm.py
<ide> def forward(
<ide> inputs_embeds = self.embeddings(input_ids)
<ide>
<ide> tensor = inputs_embeds + self.position_embeddings(position_ids).expand_as(inputs_embeds)
<del> if langs is not None and self.use_lang_emb:
<add> if langs is not ... | 8 |
Java | Java | remove groupby with selector | 9c50bdc5f5587dfddf4c09191fae9e8132fbf1ab | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final <K> Observable<GroupedObservable<K, T>> groupBy(final Func1<? super
<ide> return lift(new OperatorGroupBy<K, T>(keySelector));
<ide> }
<ide>
<del> /**
<del> * Groups the items emitted by an Observable according to a specified... | 1 |
Python | Python | fix bad conflict detection during makemigrations | 28779abb759d5687a27011b40c0d2f34ada815e9 | <ide><path>django/core/management/commands/makemigrations.py
<ide> def handle(self, *app_labels, **options):
<ide> # Load the current graph state. Takes a connection, but it's not used
<ide> # (makemigrations doesn't look at the database state).
<ide> # Also make sure the graph is built without ... | 2 |
Go | Go | fix apparmor not being applied to exec processes | 8f3308ae10ec9ad0dd4edfb46fde53a0e1e19b34 | <ide><path>daemon/exec_linux.go
<ide> func (daemon *Daemon) execSetPlatformOpt(c *container.Container, ec *exec.Config
<ide> if c.AppArmorProfile != "" {
<ide> appArmorProfile = c.AppArmorProfile
<ide> } else if c.HostConfig.Privileged {
<add> // `docker exec --privileged` does not currently disable AppArmor
<... | 2 |
Javascript | Javascript | coerce pie values to numbers | 4a0c3842b9baa76f2989ea5157a8523171abf89e | <ide><path>d3.layout.js
<ide> d3.layout.pie = function() {
<ide> });
<ide>
<ide> // Compute the numeric values for each data element.
<del> var values = data.map(value);
<add> var values = data.map(function(d, i) { return +value.call(pie, d, i); });
<ide>
<ide> // Convert k into a scale factor from ... | 3 |
Python | Python | set version to v2.2.0 | 2eb31012e7af1ad752cefdfecace13a257e4282c | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev19"
<add>__version__ = "2.2.0"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mo... | 1 |
Java | Java | add basic authentication consumer | 6bcf6ffb06da7193e93cf990b5d86a7deb208781 | <ide><path>spring-web/src/main/java/org/springframework/http/HttpHeaders.java
<ide> import java.net.InetSocketAddress;
<ide> import java.net.URI;
<ide> import java.nio.charset.Charset;
<add>import java.nio.charset.CharsetEncoder;
<add>import java.nio.charset.StandardCharsets;
<ide> import java.text.DecimalFormat;
<ide>... | 2 |
Python | Python | correct infinite loop in browser mode issue#547 | 558d7a22a10eef03265fb30e0f8d941ac565f386 | <ide><path>glances/core/glances_client.py
<ide> def serve_forever(self):
<ide>
<ide> # Export stats using export modules
<ide> self.stats.export(self.stats)
<del> finally:
<add> except Exception as e:
<add> logger.critical(e)
<ide> self.end()
<ide>
... | 2 |
Ruby | Ruby | add regression test for broken filter | bf1fe429186505bbdfb04f4d0a845d1f52581f84 | <ide><path>railties/test/application/test_runner_test.rb
<ide> class PostTest < ActiveSupport::TestCase
<ide> assert true
<ide> end
<ide>
<del> test "second filter" do
<del> puts 'PostTest:SecondFilter'
<add> test "line filter does not run this" do
<ide> a... | 1 |
Text | Text | add docs for global font options | 9cf31da4c92fc6200c4983127700f08f29a8c161 | <ide><path>docs/00-Getting-Started.md
<ide> hover |-|-|-
<ide> *hover*.animationDuration | Number | 400 | Duration in milliseconds it takes to animate hover style changes
<ide> onClick | Function | null | Called if the event is of type 'mouseup' or 'click'. Called in the context of the chart and passed an array of acti... | 1 |
Python | Python | use exception chaining | 6a4bf9eec13e035cf10ecc16e462049b4c967e41 | <ide><path>src/flask/app.py
<ide> def async_to_sync(
<ide> except ImportError:
<ide> raise RuntimeError(
<ide> "Install Flask with the 'async' extra in order to use async views."
<del> )
<add> ) from None
<ide>
<ide> # Check that Werkzeug isn't using it... | 5 |
Text | Text | fix links in docs | a4cfe5c57369441bb6377d7cfb790302e13dbd10 | <ide><path>README.md
<ide> the community.
<ide>
<ide> # React Native [](https://magnum.travis-ci.com/facebook/react-native)
<ide>
<del>Our first React Native implementation is `ReactKit`, targeting iOS. We... | 2 |
Python | Python | deprecate unused argument | 2b3eae5f08ab7669c0003027f715abac422bc153 | <ide><path>keras/layers/core.py
<ide> def get_config(self):
<ide> return dict(list(base_config.items()) + list(config.items()))
<ide>
<ide> @classmethod
<del> def from_config(cls, config, custom_objects={}):
<add> def from_config(cls, config, custom_objects=None):
<ide> # Insert custom object... | 1 |
Text | Text | add advantages for arrow examples | f53940c5c0f05899547127cb43b44c43962f266c | <ide><path>client/src/guide/english/javascript/es6/arrow-functions/index.md
<ide> let newOneWithOneParam = a => {
<ide> }
<ide> ```
<ide>
<del>An incredible advantage of the arrows function is that you can not rebind an arrow function. It will always be called with the context in which it was defined. Just use a norma... | 1 |
Javascript | Javascript | dump the tree structure to a string for debugging | ba7275dc4fb6e21f44977bfe09c5432af868bd9e | <ide><path>src/native-watcher-registry.js
<ide> class RegistryTree {
<ide> return this.root
<ide> }
<ide>
<add> print () {
<add> return this.root.print()
<add> }
<add>
<ide> }
<ide>
<ide> // Private: Non-leaf node in a tree used by the {NativeWatcherRegistry} to cover the allocated {Watcher} instances with... | 1 |
Mixed | Python | add featureextractor from thinc | a22215f427308c3d311b2e1de7fe0e690ed78215 | <ide><path>spacy/ml/featureextractor.py
<add>from typing import List, Union, Callable, Tuple
<add>from thinc.types import Ints2d, Doc
<add>from thinc.api import Model, registry
<add>
<add>
<add>
<add>@registry.layers("spacy.FeatureExtractor.v1")
<add>def FeatureExtractor(columns: List[Union[int, str]]) -> Model[List[Do... | 5 |
Javascript | Javascript | use css.supports instead of '..' in ....style | 8bb96db3a0eff104ff0517fa810f0110e54c581a | <ide><path>extensions/chromium/contentscript.js
<ide> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> See the License for the specific language governing permissions and
<ide> limitations under the License.
<ide> */
<del>/* globals chrome */
<add>/* globals chrome, CSS */
<ide>
<ide> 'us... | 1 |
Ruby | Ruby | fix url reassign | 7a75bbd85a6abc9a5828d7d48aa13a27a43432e4 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> urls = actual_urls
<ide> unless urls.empty?
<ide> ohai "Downloading from #{urls.last}"
<del> @url = urls.last
<ide> if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") &&
<ide> u... | 1 |
Javascript | Javascript | add clock support in node | 68c57aa9c9d90ef76b0f7896b64476a24c6b484a | <ide><path>src/core/Clock.js
<ide> Object.assign( Clock.prototype, {
<ide>
<ide> start: function () {
<ide>
<del> this.startTime = ( performance || Date ).now();
<add> this.startTime = ( typeof performance === 'undefined' ? Date : performance ).now();
<ide>
<ide> this.oldTime = this.startTime;
<ide> this.elap... | 1 |
Javascript | Javascript | add rel attr to search hits | e889b599fbabdc62be31d9b42d549d787f7ee91c | <ide><path>client/src/components/search/searchPage/SearchPageHits.js
<ide> const AllHits = connectAutoComplete(({ hits, currentRefinement }) => {
<ide> <a
<ide> href={buildUrl(index, result)}
<ide> key={result.objectID}
<add> rel='noopener noreferrer'
<ide> ... | 1 |
Python | Python | fix notimplementederror in data_utils.py | eafdffff75a16801860a27281c93267b1d445177 | <ide><path>keras/utils/data_utils.py
<ide> class SequenceEnqueuer(object):
<ide>
<ide> @abstractmethod
<ide> def is_running(self):
<del> raise NotImplemented
<add> raise NotImplementedError
<ide>
<ide> @abstractmethod
<ide> def start(self, workers=1, max_queue_size=10):
<ide> def start(s... | 1 |
Go | Go | update reapnode interval | 99f84ff5a7a750af9df8182ac6d2a3f5f5b77afc | <ide><path>libnetwork/controller.go
<ide> func (c *controller) NewNetwork(networkType, name string, id string, options ...
<ide> defer func() {
<ide> if err != nil {
<ide> if e := c.deleteFromStore(epCnt); e != nil {
<del> log.Warnf("couldnt rollback from store, epCnt %v on failure (%v): %v", epCnt, err, e)
<a... | 2 |
Javascript | Javascript | handle ngclassodd/even affecting the same classes | c9677920d462046710fc72ca422ab7400f551d2e | <ide><path>src/ng/directive/ngClass.js
<ide>
<ide> function classDirective(name, selector) {
<ide> name = 'ngClass' + name;
<del> return function() {
<add> return ['$animate', function($animate) {
<ide> return {
<ide> restrict: 'AC',
<ide> link: function(scope, element, attr) {
<ide> function class... | 2 |
Text | Text | add .model deprecation to release notes | 8b2052172cf7138203e683731c30bd279c6e722a | <ide><path>docs/api-guide/generic-views.md
<ide> The following attributes control the basic view behavior.
<ide> * `lookup_field` - The model field that should be used to for performing object lookup of individual model instances. Defaults to `'pk'`. Note that when using hyperlinked APIs you'll need to ensure that *b... | 5 |
Python | Python | improve train cli | c52fde40f49780077e92cbe4869caa9ba29cfc06 | <ide><path>spacy/cli/train.py
<ide> from ..util import prints
<ide> from .. import util
<ide> from .. import displacy
<add>from ..compat import json_dumps
<ide>
<ide>
<ide> @plac.annotations(
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> train_path = util.ensure_path(tra... | 1 |
Ruby | Ruby | define duration#== [chuyeow] | 887870f20c347179aef0545ee2019c02ed9f74d1 | <ide><path>activesupport/lib/active_support/duration.rb
<ide> module ActiveSupport
<ide> # 1.month.ago # equivalent to Time.now.advance(:months => -1)
<ide> class Duration < BasicObject
<ide> attr_accessor :value, :parts
<del>
<add>
<ide> def initialize(value, parts) #:nodoc:
<ide> @value,... | 3 |
PHP | PHP | add macro integration into consoleio | 5dff76d1fae55f9f2d16a0cdbae18af440edd92d | <ide><path>src/Console/ConsoleIo.php
<ide> public function setLoggers($enable)
<ide> * Create and render the output for a macro object. If the macro
<ide> * object has not already been loaded, it will be loaded and constructed.
<ide> *
<del> * This method accepts variadic arguments that are
<del> ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.