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 | remove extraneous comment | a0d6a98cbf702fc2ee7ba4788d473c484ae067a0 | <ide><path>src/addons/transitions/ReactCSSTransitionGroupChild.js
<ide> var ReactTransitionEvents = require('ReactTransitionEvents');
<ide>
<ide> var onlyChild = require('onlyChild');
<ide>
<del>// We don't remove the element from the DOM until we receive an animationend or
<del>// transitionend event. If the user sc... | 1 |
Text | Text | clarify process.title inconsistencies | 84b35b286769758610173291c6e9fd9eebdaaf1f | <ide><path>doc/api/process.md
<ide> allowed for longer process title strings by also overwriting the `environ`
<ide> memory but that was potentially insecure and confusing in some (rather obscure)
<ide> cases.
<ide>
<add>Assigning a value to `process.title` _may_ not reflect an accurate
<add>(or any) label within the ... | 1 |
Text | Text | add link to core promises tracking issue | 7723148758146d22d9da82113c345c8e27754f38 | <ide><path>doc/guides/strategic-initiatives.md
<ide> agenda to ensure they are active and have the support they need.
<ide>
<ide> | Initiative | Champion | Links |
<ide> |---------------------------|---... | 1 |
Text | Text | repeat a remark as needed in the buffer.md | b20cb6f469fce86dbde60818b99d77b5af99baba | <ide><path>doc/api/buffer.md
<ide> added: v3.0.0
<ide> On 32-bit architectures, this value is `(2^30)-1` (~1GB).
<ide> On 64-bit architectures, this value is `(2^31)-1` (~2GB).
<ide>
<add>Note that this is a property on the `buffer` module as returned by
<add>`require('buffer')`, not on the `Buffer` global or a `Buffe... | 1 |
Javascript | Javascript | fix incorrect docs and make them clearer | 7a9d24551fb67d60503be7f31489c76f9d54ce95 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> expect(scope.counter).toEqual(0);
<ide>
<ide> scope.$digest();
<del> // no variable change
<del> expect(scope.counter).toEqual(0);
<add> // the listener is always called during the first $diges... | 1 |
Ruby | Ruby | remove redundant @virtual_path variable | dd7a673782f102d2b58194007bf18a8e496818e3 | <ide><path>actionview/lib/action_view/base.rb
<ide> def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = N
<ide> end
<ide>
<ide> def _run(method, template, locals, buffer, add_to_stack: true, &block)
<del> _old_output_buffer, _old_virtual_path, _old_template = @output_buffer, @vi... | 6 |
Javascript | Javascript | use streams3 directly, not .ondata/end | 967b5dbb453f811060645c9bd2bcc8ca8fef0d96 | <ide><path>lib/_http_client.js
<ide> function socketOnData(d) {
<ide> var req = this._httpMessage;
<ide> var parser = this.parser;
<ide>
<add> assert(parser);
<add>
<ide> var ret = parser.execute(d);
<ide> if (ret instanceof Error) {
<ide> debug('parse error');
<ide> function socketOnData(d) {
<ide> v... | 6 |
PHP | PHP | fix bug in facade | 3d13d49f322e4319e9f74fdeef2fdb33c2c364cc | <ide><path>src/Illuminate/Support/Facades/Facade.php
<ide> abstract class Facade {
<ide> */
<ide> public static function swap($instance)
<ide> {
<del> static::$resolvedInstance = $instance;
<add> static::$resolvedInstance[static::getFacadeAccessor()] = $instance;
<ide>
<ide> static::$app->instance(static::getF... | 1 |
PHP | PHP | fix facade view | 2c1d64568bca291535ba816a66f71306c7ebcf55 | <ide><path>src/Illuminate/Support/Facades/Response.php
<ide> public static function make($content = '', $status = 200, array $headers = array
<ide> */
<ide> public static function view($view, $data = array(), $status = 200, array $headers = array())
<ide> {
<del> return static::make(static::$app['view']->make($vie... | 1 |
Javascript | Javascript | remove dead code | b61249e32d262c3bd1c796e8bb092ab2e9db0376 | <ide><path>lib/internal/console/constructor.js
<ide> const consoleMethods = {
<ide> if (setIter)
<ide> tabularData = previewEntries(tabularData);
<ide>
<del> const setlike = setIter || (mapIter && !isKeyValue) || isSet(tabularData);
<add> const setlike = setIter || mapIter || isSet(tabularData);
<ide> ... | 1 |
Javascript | Javascript | add depth pass plugin fix | 5a9f8d7b6e5f7f35d208be9e3990ac7d2a4b0160 | <ide><path>src/extras/renderers/plugins/DepthPassPlugin.js
<ide> THREE.DepthPassPlugin = function () {
<ide> _depthMaterial, _depthMaterialMorph, _depthMaterialSkin, _depthMaterialMorphSkin,
<ide>
<ide> _frustum = new THREE.Frustum(),
<del> _projScreenMatrix = new THREE.Matrix4();
<add> _projScreenMatrix = new THREE... | 1 |
Ruby | Ruby | document the connection | a2c08e78e15705bc4111022fcb0f0ebdc379ce27 | <ide><path>lib/action_cable/connection/base.rb
<ide> module ActionCable
<ide> module Connection
<add> # For every websocket the cable server is accepting, a Connection object will be instantiated. This instance becomes the parent
<add> # of all the channel subscriptions that are created from there on. Incoming ... | 1 |
Javascript | Javascript | remove unused field in class benchmarkprogress | 8d99ba675422333045bfcf3bfd99367c3e66ab6d | <ide><path>benchmark/_benchmark_progress.js
<ide> class BenchmarkProgress {
<ide> // Number of times each file will be run (roughly).
<ide> this.runsPerFile = queue.length / benchmarks.length;
<ide> this.currentFile = ''; // Filename of current benchmark.
<del> this.currentFileConfig; // Configurations... | 1 |
Java | Java | fix webview not to double load the url | 393adacfa61d6500f8ad285ed136320cf713fcbd | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java
<ide> public void setUrl(WebView view, @Nullable String url) {
<ide> // TODO(8495359): url and html are coupled as they both call loadUrl, therefore in case when
<ide> // property url is removed in favor of property ... | 1 |
Text | Text | add 2.17.0-beta.4 to changelog | c432844ce4666d9a0813e026d22a85ccc0541d37 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.17.0-beta.4 (October 30, 2017)
<add>- [#15746](https://github.com/emberjs/ember.js/pull/15746) [BUGFIX] Fix computed sort regression when array property is initally `null`.
<add>- [#15777](https://github.com/emberjs/ember.js/pull/15777) [BUGFIX] Fix vari... | 1 |
Go | Go | allow nanoserver image for cli | 624e6cdbf386d0862e882db9e35d2c7caaa1b337 | <ide><path>integration-cli/docker_test_vars.go
<ide> var (
<ide> // driver of the daemon. This is initialized in docker_utils by sending
<ide> // a version call to the daemon and examining the response header.
<ide> daemonStorageDriver string
<del>)
<ide>
<del>const (
<ide> // WindowsBaseImage is the name of the b... | 1 |
Python | Python | add sign operation to backends | 8056f0dd37f9daee46b1a0679b1ef3aee693eedd | <ide><path>keras/backend/tensorflow_backend.py
<ide> def round(x):
<ide> return tf.round(x)
<ide>
<ide>
<add>def sign(x):
<add> return tf.sign(x)
<add>
<add>
<ide> def pow(x, a):
<ide> return tf.pow(x, a)
<ide>
<ide><path>keras/backend/theano_backend.py
<ide> def round(x):
<ide> return T.round(x)
<ide... | 3 |
Javascript | Javascript | add more information to assert.strictequal | 78a7536db30843f82252c97be91d2d0d7d38f84b | <ide><path>test/parallel/test-crypto-hmac.js
<ide> for (let i = 0, l = rfc4231.length; i < l; i++) {
<ide> expected,
<ide> `Test HMAC-${hash} rfc 4231 case ${i + 1}: ${actual} must be ${expected}`
<ide> );
<del> assert.strictEqual(actual, strRes, 'Should get same result from stream');
<add> assert... | 1 |
Text | Text | fix typo in the “testing your mailers” docs | c921606d26fbcf26f957cbe403e6c89e352d1235 | <ide><path>guides/source/testing.md
<ide> Testing mailer classes requires some specific tools to do a thorough job.
<ide>
<ide> ### Keeping the Postman in Check
<ide>
<del>Your mailer classes - like every other part of your Rails application - should be tested to ensure that it is working as expected.
<add>Your maile... | 1 |
Python | Python | use the proper key to retrieve the dataflow job_id | bcb026bf7c8031ff64c8b6019d248b12d6aa71e0 | <ide><path>airflow/providers/google/cloud/example_dags/example_dataflow.py
<ide> # [START howto_sensor_wait_for_job_status]
<ide> wait_for_python_job_async_done = DataflowJobStatusSensor(
<ide> task_id="wait-for-python-job-async-done",
<del> job_id="{{task_instance.xcom_pull('start-python-job-asy... | 1 |
Text | Text | add new scrimbas | 7e522dc4731496a522ccb46072821e43721aee6b | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/add-an-accessible-date-picker.english.md
<ide> id: 587d778b367417b2b2512aa8
<ide> title: Add an Accessible Date Picker
<ide> challengeType: 0
<del>videoUrl: 'https://scrimba.com/c/cD9DJHr'
<add>videoUrl: 'https://scrimba.com/c/cR3bR... | 2 |
Javascript | Javascript | use process.env.python to spawn python | 888eb5a987ffa8b5a2a36caf372cc0def67f79c9 | <ide><path>test/parallel/test-child-process-set-blocking.js
<ide> const assert = require('assert');
<ide> const ch = require('child_process');
<ide>
<ide> const SIZE = 100000;
<add>const python = process.env.PYTHON || 'python';
<ide>
<del>const cp = ch.spawn('python', ['-c', `print(${SIZE} * "C")`], {
<add>const cp =... | 2 |
PHP | PHP | remove unsed option | d758a11a61a768ac46ffbc3221dd7ebd9816af2e | <ide><path>tests/TestCase/I18n/NumberTest.php
<ide> public function testConfig()
<ide> $this->assertEquals('₹ 15,000.00', $result);
<ide>
<ide> Number::config('en_IN', \NumberFormatter::CURRENCY, [
<del> 'pattern' => '¤ #,##,##0',
<del> 'persistOptions' => true
<add> 'p... | 1 |
PHP | PHP | prevent ide from reporting an error here | 5c20565600931c6bc6cb889b83255cd641eb2dab | <ide><path>src/Controller/Controller.php
<ide> public function invokeAction()
<ide> 'plugin' => $request->getParam('plugin'),
<ide> ]);
<ide> }
<add> /* @var callable $callable */
<ide> $callable = [$this, $request->getParam('action')];
<ide>
<ide> return $cal... | 1 |
Javascript | Javascript | name anonymous functions in obj.js | b9748a91f1030ff37629cf987bdb617627c580d7 | <ide><path>src/obj.js
<ide> var XRef = (function xRefXRef() {
<ide> * inside of a worker. The `PDFObjects` implements some basic functions to
<ide> * manage these objects.
<ide> */
<del>var PDFObjects = (function() {
<add>var PDFObjects = (function pdfObjects() {
<ide> function PDFObjects() {
<ide> this.objs =... | 1 |
Python | Python | remove cv2 dependency and use scipy.misc | ee6bad63b0fac8d2b76cc00c32e916aeb38513b3 | <ide><path>examples/neural_style_transfer.py
<ide> '''
<ide>
<ide> from __future__ import print_function
<del>import cv2
<add>from scipy.misc import imread, imresize, imsave
<ide> import numpy as np
<ide> from scipy.optimize import fmin_l_bfgs_b
<ide> import time
<ide>
<ide> # util function to open, resize and format... | 1 |
Python | Python | drop print statements in tests | 1087ccbb258ca79ee42509abc4bb17b6c277f9ce | <ide><path>tests/test_fields.py
<ide> class TestSerializer(serializers.Serializer):
<ide> message = serializers.CharField(allow_null=True, allow_blank=True)
<ide>
<ide> serializer = TestSerializer(data=MockHTMLDict({}))
<del> print serializer.is_valid()
<del> print serializer.errors
<... | 1 |
Python | Python | fix import on export_inference_graph_test | 5a80548252a74fc4af7b952a106773cd77e35857 | <ide><path>slim/export_inference_graph_test.py
<ide> import tensorflow as tf
<ide>
<ide> from tensorflow.python.platform import gfile
<del>from google3.third_party.tensorflow_models.slim import export_inference_graph
<add>import export_inference_graph
<ide>
<ide>
<ide> class ExportInferenceGraphTest(tf.test.TestCase... | 1 |
Javascript | Javascript | replace "osx" to "macos" | c5c3f5cb01eb45c87d97d46e9d3111331f1b08d5 | <ide><path>spec/update-process-env-spec.js
<ide> describe('updateProcessEnv(launchEnv)', function () {
<ide> })
<ide>
<ide> describe('when the launch environment does not come from a shell', function () {
<del> describe('on osx', function () {
<add> describe('on macOS', function () {
<ide> it('updates ... | 1 |
Javascript | Javascript | fix iframe resize handler when re-attached to dom | 5012dcbdaefa7a11a8dfcd9ff264655e9860ee50 | <ide><path>src/core/core.helpers.js
<ide> module.exports = function(Chart) {
<ide> return color(c);
<ide> };
<ide> helpers.addResizeListener = function(node, callback) {
<del> // Hide an iframe before the node
<ide> var iframe = document.createElement('iframe');
<del>
<ide> iframe.className = 'chartjs-hidden-i... | 2 |
Javascript | Javascript | fix a typo (chromedriver -> mksnapshot) | c274463a9bf4ba162165b629865f3aa5f0d7314d | <ide><path>script/lib/check-chromedriver-version.js
<ide> module.exports = function() {
<ide>
<ide> if (!semver.satisfies(mksnapshotActualVer, '>=9.0.2')) {
<ide> throw new Error(
<del> `electron-chromedriver should be at least v9.0.2 to support the ELECTRON_CUSTOM_VERSION environment variable.`
<add> ... | 1 |
Javascript | Javascript | add a couple of debugging handlebars extensions | 7e85b964408e75678fd74d447007a1bdb9d50ed0 | <ide><path>packages/sproutcore-handlebars/lib/helpers.js
<ide> require("sproutcore-handlebars/helpers/binding");
<ide> require("sproutcore-handlebars/helpers/collection");
<ide> require("sproutcore-handlebars/helpers/view");
<ide> require("sproutcore-handlebars/helpers/unbound");
<add>require("sproutcore-handlebars/hel... | 2 |
Javascript | Javascript | fix warnings generated by elements inspector | c1aed7ba41246ff250e7aebac2c5ee2532c14868 | <ide><path>Libraries/Inspector/ElementProperties.js
<ide> var ElementProperties = React.createClass({
<ide> this.props.hierarchy,
<ide> (item, i) => (
<ide> <TouchableHighlight
<add> key={'item-' + i}
<ide> style={[styles.breadItem, i === se... | 1 |
Text | Text | fix title styling typo | e418f4b474aefc7dfe30ff6a9cdf1e698f6b6e54 | <ide><path>guide/english/3D/Blender/index.md
<ide> ---
<ide> title: Blender
<ide> ---
<del>
<del>#Blender
<add>## Blender
<ide>
<ide> Blender is a free and open source 3D creation suite. It's used for modeling, creating photorealistic renders, simulation, model sculpting, architecture models, compositing, character de... | 1 |
Mixed | Go | allow specifying filesystem for thin devices | 807bc2cd049d97f31eab54ce3d5719d63240e3e7 | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> Here is the list of supported options:
<ide>
<ide> ``docker -d --storage-opt dm.loopmetadatasize=4G``
<ide>
<add> * `dm.fs`
<add>
<add> Specifies the filesystem type to use for the base device. The supported
<add> options are "ext4" and "xfs". The def... | 3 |
Go | Go | return error if dockerfile is empty | f7ba1c34bb7670b1a8d761b73eb9a775fa0f6bbe | <ide><path>buildfile.go
<ide> package docker
<ide>
<ide> import (
<ide> "encoding/json"
<add> "errors"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/archive"
<ide> "github.com/dotcloud/docker/auth"
<ide> import (
<ide> "strings"
<ide> )
<ide>
<add>var (
<add> ErrDockerfileEmpty = errors.New("Dockerfile cannot be... | 2 |
Python | Python | add tests and type hints to hill cipher | aa120cea12589e4f7907dff95d2efe246f1da178 | <ide><path>ciphers/hill_cipher.py
<ide> import numpy
<ide>
<ide>
<del>def gcd(a, b):
<add>def gcd(a: int, b: int) -> int:
<add> """
<add> >>> gcd(4, 8)
<add> 4
<add> >>> gcd(8, 4)
<add> 4
<add> >>> gcd(4, 7)
<add> 1
<add> >>> gcd(0, 10)
<add> 10
<add> """
<ide> if a == 0:
<ide> ... | 1 |
Go | Go | add an integration test for bug regression | 48a26ba9e42f25ebc1ad732b4c0d31e77a7aaa55 | <ide><path>integration/container/rename_test.go
<add>package container
<add>
<add>import (
<add> "context"
<add> "testing"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/api/types/container"
<add> "github.com/docker/docker/api/types/network"
<add> "github.com/docker/docker/api/types/st... | 1 |
Python | Python | pass encoder outputs into generationmixin | fa35cda91e9a1929f9cebeb973801709ba31dd4b | <ide><path>src/transformers/generation_utils.py
<ide> def adjust_logits_during_generation(self, logits: torch.FloatTensor, **kwargs) -
<ide> """
<ide> return logits
<ide>
<del> def _prepare_input_ids_for_generation(self, bos_token_id: int) -> torch.LongTensor:
<add> def _prepare_input_ids_for_gen... | 1 |
PHP | PHP | fix a bug in paginating multiple results | c1b1088e10f8ce8e306928cda06601683c8374cd | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function sort($key, $title = null, array $options = [])
<ide> }
<ide> $isSorted = (
<ide> $sortKey === $table . '.' . $field ||
<del> $sortKey === $defaultModel . '.' . $key ||
<del> $table . '.' . $field === $... | 1 |
Text | Text | add issue template that redirect to kp and ka | 2e1a3816676724576f75ce76b18ed3ba2fdea670 | <ide><path>.github/ISSUE_TEMPLATE/d--keras-preprocessing-users.md
<add>---
<add>name: d) `keras.preprocessing` users
<add>about: Select this if your issue is related to the `keras.preprocessing` module.
<add>
<add>---
<add>
<add>
<add>The [keras.preprocessing](https://github.com/keras-team/keras-preprocessing) module h... | 2 |
Javascript | Javascript | switch arguments of assert() | d5abbabc4f1db2d4e4ce8c1c98afd4981808074b | <ide><path>test/sequential/test-inspector-break-when-eval.js
<ide> async function runTests() {
<ide> await breakOnLine(session);
<ide> await stepOverConsoleStatement(session);
<ide> await session.runToCompletion();
<del> assert.strictEqual(0, (await child.expectShutdown()).exitCode);
<add> assert.strictEqual((a... | 1 |
Text | Text | add comments about `nativeonly` props | 07e6039b7001b86234401c7ec927827d028e8a19 | <ide><path>docs/NativeComponentsAndroid.md
<ide> var iface = {
<ide> module.exports = requireNativeComponent('RCTImageView', iface);
<ide> ```
<ide>
<del>`requireNativeComponent` commonly takes two parameters, the first is the name of the native view and the second is an object that describes the component interface. ... | 1 |
Javascript | Javascript | fix a bug in 3mfloader | 2e3a2923a65ac2db045d19676da711a95d022ac6 | <ide><path>examples/js/loaders/3MFLoader.js
<ide> THREE.ThreeMFLoader.prototype = {
<ide> } );
<ide> var mat4 = new THREE.Matrix4();
<ide> buildItem[ 'transform' ] = mat4.set(
<del> t[ 0 ], t[ 1 ], t[ 2 ], 0.0,
<del> t[ 3 ], t[ 4 ], t[ 5 ], 0.0,
<del> t[ 6 ], t[ 7 ], t[ 8 ], 0.0,
<de... | 1 |
Javascript | Javascript | log an error on invalid type | 85575dbababf461463902b52a95891518b53b6b7 | <ide><path>src/js/mixins/evented.js
<ide> import * as Events from '../utils/events';
<ide> import * as Fn from '../utils/fn';
<ide> import * as Obj from '../utils/obj';
<ide> import EventTarget from '../event-target';
<add>import log from '../utils/log';
<ide>
<ide> const objName = (obj) => {
<ide> if (typeof obj.na... | 2 |
Text | Text | add more info for contributors | a1c9a416394174668b61468ea20b6e527e57c4a5 | <ide><path>CONTRIBUTING.md
<del>## Submitting issues
<add>#Contributing to AngularJS
<ide>
<del>If you have questions about how to use AngularJS, please direct these to the
<del>[Google Group][groups] discussion list or [StackOverflow][stackoverflow]. We are
<del>also available on [IRC][irc].
<add>We'd love for you to... | 1 |
PHP | PHP | change method order | d4c32efcfef46c16dee9b8ee9fdc8d60071b723b | <ide><path>src/Illuminate/Support/helpers.php
<ide> function ends_with($haystack, $needles)
<ide> }
<ide> }
<ide>
<add>if ( ! function_exists('env'))
<add>{
<add> /**
<add> * Gets the value of an environment variable. Supports boolean, empty and null.
<add> *
<add> * @param string $key
<add> * @return mixed
<ad... | 1 |
Text | Text | fix changelog entry about sprockets-rails | 59b8b82e4fba1c11161a4897e758306bab4d02cd | <ide><path>actionpack/CHANGELOG.md
<ide>
<ide> *Luiz Felipe Garcia Pereira*
<ide>
<del>* Sprockets integration has been extracted from Action Pack and the `sprockets-rails`
<del> gem should be added to Gemfile (under the assets group) in order to use Rails asset
<del> pipeline in future versions of Rails.... | 1 |
Text | Text | update pr guidelines | d71c05164cc2526f3d3a04f484b8d10401de582c | <ide><path>docs/PullRequestGuidelines.md
<del>Here are some tips on how you can help review pull requests:
<add>Here are some tips on reviewing pull requests:
<ide>
<del>- Does the PR miss info required in the [Pull request template](https://github.com/facebook/react-native/blob/master/PULL_REQUEST_TEMPLATE.md)? Ask f... | 1 |
Python | Python | add comment on public/semi-private modules | acf62f6881afb2f6e0efc9db6acc44c3c8614528 | <ide><path>numpy/tests/test_public_api.py
<ide> def test_NPY_NO_EXPORT():
<ide> "NPY_NO_EXPORT does not work")
<ide>
<ide>
<del>PUBLIC_MODULES = [
<add># Historically NumPy has not used leading underscores for private submodules
<add># much. This has resulted in lots of things that look like pu... | 1 |
Python | Python | raise sleep interval even more | 20ae65fe2015f019cca52da8247ff1f3610c24e8 | <ide><path>libcloud/test/storage/test_local.py
<ide> def test_lock_local_storage(self):
<ide> # 3. Multiprocessing scenario where IPC lock is involved
<ide> def acquire_lock_in_subprocess(pid, success):
<ide> # For first process acquire should succeed and for the second it should fail
<del> ... | 1 |
PHP | PHP | add tests for count-cache | 28978c258daa7391036d083bddb17fb73485ed2f | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testCountWithContainCallingAll()
<ide> $this->assertEquals(3, $query->count());
<ide> }
<ide>
<add> /**
<add> * Verify that only one count query is issued
<add> * A subsequent request for the count will take the previously
<add> ... | 1 |
Mixed | Text | add note to response.getheaders | e1cabf6fbdbcfe223a9a46ffe6730e73719d5ab5 | <ide><path>doc/api/http.md
<ide> Returns `request`.
<ide> added: v0.1.17
<ide> -->
<ide>
<del>This class inherits from [`net.Server`][] and has the following additional events:
<add>This class inherits from [`net.Server`][] and has the following additional events:
<ide>
<ide> ### Event: 'checkContinue'
<ide> <!-- YAM... | 3 |
Python | Python | set version to v2.1.0a7.dev8 | 58aac58631d02eefaff6bc345b87fcf90eb50ad9 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7.dev7"
<add>__version__ = "2.1.0a7.dev8"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
PHP | PHP | apply fixes from styleci | 694003ce6334efad6b75d1b9365affc0c5e60764 | <ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php
<ide> public function dd(...$args)
<ide> {
<ide> call_user_func_array([$this, 'dump'], $args);
<ide>
<del> die(1);
<add> exit(1);
<ide> }
<ide>
<ide> /**
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVa... | 6 |
Python | Python | fix run-valgrind.py script | e762ca0060dcce3e047cacc7824ba07e0fb045f3 | <ide><path>tools/run-valgrind.py
<ide> import sys
<ide>
<ide> V8_ROOT = path.dirname(path.dirname(path.abspath(__file__)))
<del>MACHINE = 'linux_x64' if platform.machine() == 'x86_64' else 'linux_x86'
<del>VALGRIND_ROOT = path.join(V8_ROOT, 'third_party', 'valgrind', MACHINE)
<del>VALGRIND_BIN = path.join(VALGRIND_ROO... | 1 |
Go | Go | simplify logic for disabling cri plugin | 051e604adcd8f0f57d710d110d75bdd43010168c | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) getContainerdDaemonOpts() ([]supervisor.DaemonOpt, error)
<ide> }
<ide>
<ide> if !cli.Config.CriContainerd {
<del> opts = append(opts, supervisor.WithPlugin("io.containerd.grpc.v1.cri", nil))
<add> // CRI support in the managed daemon is currently opt-in... | 4 |
Ruby | Ruby | prevent write queries for `exec_query` | bde898c1df17722a83e5e8866b2009273c5190c6 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def load_additional_types(oids = nil)
<ide> FEATURE_NOT_SUPPORTED = "0A000" #:nodoc:
<ide>
<ide> def execute_and_clear(sql, name, binds, prepare: false)
<add> if preventing_writes? && write_query?(sql)
<a... | 3 |
Python | Python | fix typeerror from `test.py --time` | ab15198471cdd62b9c98619b033ac17f0f56d01e | <ide><path>tools/test.py
<ide> def DoSkip(case):
<ide> timed_tests.sort(lambda a, b: a.CompareTime(b))
<ide> index = 1
<ide> for entry in timed_tests[:20]:
<del> t = FormatTime(entry.duration)
<add> t = FormatTime(entry.duration.total_seconds())
<ide> sys.stderr.write("%4i (%s) %s\n" % (inde... | 1 |
Javascript | Javascript | fix lint warnings | 88c2aa61b95a06acacf28b1f75505ae11691a496 | <ide><path>Libraries/Utilities/MessageQueue.js
<ide> class MessageQueue {
<ide>
<ide> processModuleConfig(config, moduleID) {
<ide> const module = this._genModule(config, moduleID);
<del> this._genLookup(config, moduleID, this._remoteModuleTable, this._remoteMethodTable)
<add> this._genLookup(config, modul... | 1 |
Javascript | Javascript | improve clarity of als-enable-disable.js | e46c680bf2b211bbd52cf959ca17ee98c7f657f5 | <ide><path>test/async-hooks/test-async-local-storage-enable-disable.js
<ide> asyncLocalStorage.run(new Map(), () => {
<ide>
<ide> process.nextTick(() => {
<ide> assert.strictEqual(asyncLocalStorage.getStore(), undefined);
<del> asyncLocalStorage.run(new Map(), () => {
<del> assert.notStrictEqual(... | 1 |
Text | Text | add changes for 1.6.6 | 6d2ff0ac6daf70f5907643ccd57e888405d53074 | <ide><path>CHANGELOG.md
<add><a name="1.6.6"></a>
<add># 1.6.6 interdimensional-cable (2017-08-18)
<add>
<add>
<add>## Bug Fixes
<add>- **$httpParamSerializer:** ignore functions
<add> ([b51ded](https://github.com/angular/angular.js/commit/b51ded67366865f36c5781dd5d9b801488ec95ea),
<add> [#16133](https://github.com/a... | 1 |
Ruby | Ruby | read cpu flags from /proc/cpuinfo | 94a0b26fec3e640bc7f0d132a4bd36c2507f3fc8 | <ide><path>Library/Homebrew/os/linux/hardware.rb
<ide> def arch_32_bit; :i386; end
<ide> def arch_64_bit; :x86_64; end
<ide> def universal_archs; [].extend ArchitectureListExtension; end
<ide>
<add> def cpuinfo
<add> @cpuinfo ||= File.read("/proc/cpuinfo")
<add> end
<add>
<ide> def type
<del> @cpu_type |... | 1 |
PHP | PHP | fix url generation | 81b3c1a52597260e5b8ade7da792886a921b17c2 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function secureAsset($path)
<ide> */
<ide> protected function getScheme($secure)
<ide> {
<del> if ( ! $secure)
<add> if (is_null($secure))
<ide> {
<ide> return $this->request->getScheme().'://';
<ide> }
<ide> protected function addPortToDomain... | 1 |
Javascript | Javascript | remove useless warning | f2bd9830297f99ff7db0517f68f89a723f14a53d | <ide><path>packager/webSocketProxy.js
<ide> function attachToServer(server, path) {
<ide> ws.on('message', function(message) {
<ide> allClientsExcept(ws).forEach(function(cn) {
<ide> try {
<del> // Sometimes this call throws 'not opened'
<ide> cn.send(message);
<ide> } catch... | 1 |
Javascript | Javascript | increase speed of shallowequal | d2bb4728f08ad168997a7928f7b9a4cab8116bce | <ide><path>src/utils/shallowEqual.js
<ide> function shallowEqual(objA, objB) {
<ide> return true;
<ide> }
<ide>
<del> if (!objA || !objB) {
<add> if (typeof objA !== 'object' || objA === null
<add> || typeof objB !== 'object' || objB === null) {
<ide> return false;
<ide> }
<del>
<del> if (typeof ob... | 1 |
Text | Text | assert length of array in rwd-quiz test | a05c549ebcbb5482e23506c6ad21d7a136f1ca44 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6148e41c728f65138addf9cc.md
<ide> Wrap the appropriate rule within a `prefers-reduced-motion` media rule such that
<ide>
<ide> # --hints--
<ide>
<del>You should have a `@media (prefers-reduced-motion: no-prefer... | 1 |
Python | Python | improve quantile documentation | d5e275b2bf65c1848203f6bff7606623793daeed | <ide><path>numpy/lib/function_base.py
<ide> from numpy.core import transpose
<ide> from numpy.core.numeric import (
<ide> ones, zeros_like, arange, concatenate, array, asarray, asanyarray, empty,
<del> ndarray, around, floor, ceil, take, dot, where, intp,
<del> integer, isscalar, absolute
<add> ndarray, ta... | 1 |
Javascript | Javascript | add types for module and subclasses | bc10939096f0707a3440986c63802eb72c5b7bc0 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> if (this.cache && this.cache[cacheName]) {
<ide> const cacheModule = this.cache[cacheName];
<ide>
<del> if (typeof cacheModule.updateCacheModule === "function") {
<del> cacheModule.updateCacheModule(module);
<del> }
<add> cacheModule.updateCac... | 13 |
Go | Go | return jsonerror for httpresponse error | dae585c6e4c19817b2dbd106171728a0bb564ccc | <ide><path>api.go
<ide> func postImagesCreate(srv *Server, version float64, w http.ResponseWriter, r *ht
<ide> if image != "" { //pull
<ide> if err := srv.ImagePull(image, tag, w, sf, &auth.AuthConfig{}); err != nil {
<ide> if sf.Used() {
<del> w.Write(sf.FormatError(err, 0))
<add> w.Write(sf.FormatError(er... | 6 |
PHP | PHP | add reflectsclosures trait | 6cb43b99eceff801ab7f660e23d8b57fa5c3559f | <ide><path>src/Illuminate/Support/Traits/ReflectsClosures.php
<add><?php
<add>
<add>namespace Illuminate\Support\Traits;
<add>
<add>use Closure;
<add>use ReflectionFunction;
<add>use ReflectionParameter;
<add>
<add>trait ReflectsClosures
<add>{
<add> /**
<add> * Get the class types of the parameters of the given... | 2 |
Ruby | Ruby | fix wrong test name | 4c9f8ff10f9d0206a1db1e08deed76eb215cfa47 | <ide><path>activerecord/test/cases/migration/references_statements_test.rb
<ide> def test_does_not_create_reference_id_index_if_index_is_false
<ide> assert_not index_exists?(table_name, :user_id)
<ide> end
<ide>
<del> def test_create_reference_id_index_even_if_index_option_is_passed
<add> def t... | 1 |
Text | Text | add doc for add-new-model-like command | 7fc6f41d9116b712dbd45d9550de86245a5a59c8 | <ide><path>templates/adding_a_new_model/README.md
<ide> See the License for the specific language governing permissions and
<ide> limitations under the License.
<ide> -->
<ide>
<del># Using `cookiecutter` to generate models
<add># Adding a new model
<ide>
<ide> This folder contains templates to generate new models th... | 1 |
Python | Python | remove dead codepath (we require python 2.4) | a05f3fb9fccee50ad3c21d40715d5545afd5c5be | <ide><path>numpy/core/setup.py
<ide> def generate_config_h(ext, build_dir):
<ide> if a == 'AMD64':
<ide> moredefs.append('DISTUTILS_USE_SDK')
<ide>
<del> if sys.version[:3] < '2.4':
<del> if config_cmd.check_func('strtod', decl=False,
<del> ... | 1 |
Ruby | Ruby | skip rm_ds_store during a dry run | 1c22f03850dcec2294308afecc99109cc2f2fc2f | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup
<ide> end
<ide> clean_cache
<ide> # seems like a good time to do some additional cleanup
<del> Homebrew.prune unless ARGV.dry_run?
<del> rm_DS_Store
<add> unless ARGV.dry_run?
<add> Homebrew.prune
<add> rm_DS_Sto... | 1 |
Javascript | Javascript | fix references to _bindablespan | 3b277ec1f34da51c3ed4f7aa2da52c2ac70a9734 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> var bind = function(property, options, preserveContext, shouldDisplay, valueNorm
<ide> };
<ide>
<ide> // Observes the given property on the context and
<del> // tells the Ember._BindableSpan to re-render. If property
<add> // tells the Emb... | 2 |
Javascript | Javascript | remove some lint | f290596542d5f10b6bc741b0f5a73d68b757a60c | <ide><path>spec/git-repository-async-spec.js
<ide> import path from 'path'
<ide> import temp from 'temp'
<ide> import Git from 'nodegit'
<ide>
<del>import {it, ffit, fffit, beforeEach, afterEach} from './async-spec-helpers'
<add>import {it, beforeEach, afterEach} from './async-spec-helpers'
<ide>
<ide> import GitRepo... | 1 |
Go | Go | remove unconsistent period in docker info | dc2a7ab7504fb334e4285b24b280a3a49ed33096 | <ide><path>api/client/info.go
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide> fmt.Fprintf(cli.err, "WARNING: No swap limit support\n")
<ide> }
<ide> if !info.IPv4Forwarding {
<del> fmt.Fprintf(cli.err, "WARNING: IPv4 forwarding is disabled.\n")
<add> fmt.Fprintf(cli.err, "WARNING: IPv4... | 1 |
Javascript | Javascript | fix jswatchdog reset | 1d802da7d2d73ddb98e39006cca4694a53033dbc | <ide><path>Libraries/Interaction/JSEventLoopWatchdog.js
<ide> const JSEventLoopWatchdog = {
<ide> totalStallTime = 0;
<ide> stallCount = 0;
<ide> longestStall = 0;
<add> lastInterval = performanceNow();
<ide> },
<ide> addHandler: function(handler: Handler) {
<ide> handlers.push(handler);
<ide> co... | 1 |
Javascript | Javascript | eliminate redundant willcleanupnode hook | 0d43d24bc27db5b6267753c93868e8565f61f670 | <ide><path>packages/ember-htmlbars/lib/env.js
<ide> import getCellOrValue from 'ember-htmlbars/hooks/get-cell-or-value';
<ide> import cleanupRenderNode from 'ember-htmlbars/hooks/cleanup-render-node';
<ide> import destroyRenderNode from 'ember-htmlbars/hooks/destroy-render-node';
<ide> import didRenderNode from 'ember-... | 3 |
Javascript | Javascript | deprecate the use of `starttime` in player.js | 22cf3dd935de58eb93205dd9a5d285bf24970976 | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> *
<ide> * @fires Player#firstplay
<ide> * @listens Tech#firstplay
<add> * @deprecated As of 6.0 passing the `starttime` option to the player will be deprecated
<ide> * @private
<ide> */
<ide> handleTechFirstPlay_() {
<ide> /... | 1 |
Go | Go | use type switch instead of reflection | 4ffc52385cec66cbd930bc6b5ab828ed65f43dbb | <ide><path>pkg/user/user.go
<ide> import (
<ide> "fmt"
<ide> "io"
<ide> "os"
<del> "reflect"
<ide> "strconv"
<ide> "strings"
<ide> )
<ide> func parseLine(line string, v ...interface{}) {
<ide> break
<ide> }
<ide>
<del> t := reflect.TypeOf(v[i])
<del> if t.Kind() != reflect.Ptr {
<del> // panic, because t... | 1 |
PHP | PHP | remove unneeded cache clear call | ab861caea60e54aaa54ac77da386b1a6396663f3 | <ide><path>tests/TestCase/I18n/Parser/PoFileParserTest.php
<ide> public function setUp(): void
<ide> parent::setUp();
<ide> $this->locale = I18n::getLocale();
<ide> $this->path = Configure::read('App.paths.locales.0');
<del> Cache::clear('_cake_core_');
<ide> }
<ide>
<ide> /** | 1 |
Ruby | Ruby | remove "double negative" condition | 83d4ac5092f57c39d189f1e28cad7083324f01dc | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize name='__UNKNOWN__', path=nil
<ide>
<ide> def set_spec(name)
<ide> spec = self.class.send(name)
<del> if block_given? && yield(spec) || !spec.url.nil?
<add> if block_given? && yield(spec) || spec.url
<ide> spec.owner = self
<ide> instan... | 1 |
Python | Python | show all import_errors from zip files | 97f00654ca9c43ec87e1f3ec207b0f935dd89e15 | <ide><path>airflow/dag_processing/processor.py
<ide> def update_import_errors(session: Session, dagbag: DagBag) -> None:
<ide> """
<ide> # Clear the errors of the processed files
<ide> for dagbag_file in dagbag.file_last_changed:
<del> session.query(errors.ImportError).filter(errors.I... | 3 |
PHP | PHP | update interactswithinput.php | 9e9bdaf06e9e65057e40f04bc34a0e45c689eb8c | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide>
<ide> use Illuminate\Http\UploadedFile;
<ide> use Illuminate\Support\Arr;
<del>use Illuminate\Support\Str;
<ide> use SplFileInfo;
<ide> use stdClass;
<ide> use Symfony\Component\VarDumper\VarDumper;
<ide> public function bearerToken()
<ide> {
<id... | 2 |
Text | Text | clarify subsystems in contributing.md | f13a3fd2af3003226092f64524acb11613e1a84d | <ide><path>CONTRIBUTING.md
<ide> nicely even when it is indented.
<ide> The header line should be meaningful; it is what other people see when they
<ide> run `git shortlog` or `git log --oneline`.
<ide>
<del>Have a look at `git log` for inspiration.
<add>Check the output of `git log --oneline files_that_you_changed` t... | 1 |
Text | Text | add an example of singleton in js | 82267b805144b27df1e1d16e7eab8a47fb70204a | <ide><path>client/src/pages/guide/english/javascript/singleton-in-javscript/index.md
<ide> ---
<del>title: Creating Singleton In JavaScript
<add>title: Creating a Singleton in JavaScript
<ide> ---
<ide>
<del>## Creating Singleton In Javascript Guide
<del>
<del>This Article is about creating the Singletons in Native(Pu... | 1 |
Javascript | Javascript | fix a small problem in ucscharacter | 953931d101bb4b0e4c82f7e1cd671a145f892c32 | <ide><path>examples/js/UCSCharacter.js
<ide> THREE.UCSCharacter = function() {
<ide> geometry.computeBoundingBox();
<ide> geometry.computeVertexNormals();
<ide>
<del> THREE.AnimationHandler.add( geometry.animation );
<add> //THREE.AnimationHandler.add( geometry.animation );
<ide>
<ide> mesh = new THREE.S... | 1 |
Python | Python | move import at the top of module | e559c897cec534c58ab7940e2623a1decfb4958a | <ide><path>numpy/distutils/command/install_clib.py
<ide> import os
<ide> from distutils.core import Command
<add>from distutils.ccompiler import new_compiler
<ide> from numpy.distutils.misc_util import get_cmd
<ide>
<ide> class install_clib(Command):
<ide> def finalize_options(self):
<ide>
<ide> def run (self):
<... | 1 |
Python | Python | fix race condition with ready file. | 34beb7adfcd2f394e09acfecf05fdc0bdb8143c5 | <ide><path>official/recommendation/constants.py
<ide> def __init__(self, data_dir, cache_id=None):
<ide> CYCLES_TO_BUFFER = 3 # The number of train cycles worth of data to "run ahead"
<ide> # of the main training loop.
<ide>
<add>READY_FILE_TEMP = "ready.json.temp"
<ide> READY_FILE = "ready.json... | 2 |
Javascript | Javascript | fail build if languages aren't defined as umd | d824212b38b8806aa274be914386bc48cd52aaec | <ide><path>tasks/embed_languages.js
<ide> module.exports = function (grunt) {
<ide> var fileContents = grunt.file.read(file);
<ide>
<ide> if (!fileContents.match(reTransform)) {
<del> grunt.log.writeln('Warning: all language files must use the common UMD wrapper pattern. Failed language fil... | 1 |
PHP | PHP | add protected property | 0eb18d4bf2dd65ad08a471d5ecf4fc8d1f6324c3 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> class BelongsToMany extends Relation
<ide> */
<ide> protected $relatedKey;
<ide>
<add> /**
<add> * The local key of the parent model.
<add> *
<add> * @var string
<add> */
<add> protected $localKey;
<add>
<ide> ... | 1 |
Python | Python | remove compat.v2 import | 3063aeb30d46a9d3e103b6eca3ddc4fb4195df45 | <ide><path>official/recommendation/create_ncf_data.py
<ide> # ==============================================================================
<ide> """Binary to generate training/evaluation dataset for NCF model."""
<ide>
<del>from __future__ import absolute_import
<del>from __future__ import division
<del>from __futur... | 5 |
Python | Python | fix creation of pipeline | a3c51a035520987e0d78d008c85ddea4ffba346e | <ide><path>spacy/language.py
<ide> def create_pipeline(cls, nlp=None, disable=tuple()):
<ide> meta = nlp.meta if nlp is not None else {}
<ide> # Resolve strings, like "cnn", "lstm", etc
<ide> pipeline = []
<del> for entry in cls.pipeline:
<add> for entry in meta.get('pipeline', [])... | 1 |
Text | Text | fix cla section | c86d49f329d59cf20d17f092d84b5557d60f5226 | <ide><path>CONTRIBUTING.md
<ide> do not find something similar, please create a new JIRA issue before submitting
<ide> a pull request unless the change is truly trivial -- for example: typo fixes,
<ide> removing compiler warnings, etc.
<ide>
<del>### Sign the Individual Contributor License Agreement (ICLA)
<add>### Si... | 1 |
Java | Java | make deferredresult extensible | be7b07f8327f1dc3b3fd78eb2041892114ba99a2 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java
<ide> */
<ide> package org.springframework.web.context.request.async;
<ide>
<add>import java.util.PriorityQueue;
<ide> import java.util.concurrent.Callable;
<ide>
<ide> import org.apache.commons.logging.Log;
<ide> ... | 1 |
Javascript | Javascript | serialize js errors | c46d89b02d8b6b9ce53cf58829f96d104e196a1f | <ide><path>lib/serialization/ErrorObjectSerializer.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add>*/
<add>
<ide> "use strict";
<ide>
<ide> class ErrorObjectSerializer {
<add> constructor(Type) {
<add> this.Type = Type;
<add> }
<add>
<ide> serialize(obj, { write }) {
<del> write... | 2 |
Python | Python | fix example in config doc | 5c1cda9d3cfc68fb1e17a865c2b4e7cf2e668c3d | <ide><path>src/transformers/models/clip/configuration_clip.py
<ide> class CLIPVisionConfig(PretrainedConfig):
<ide> gradient_checkpointing (:obj:`bool`, `optional`, defaults to :obj:`False`):
<ide> If True, use gradient checkpointing to save memory at the expense of slower backward pass.
<ide>
<del... | 1 |
Ruby | Ruby | use system /tmp when testing actionpack | b7ab73a4e21b022cf3415f6eee8018979796e466 | <ide><path>actionpack/test/abstract_unit.rb
<ide> $:.unshift(File.dirname(__FILE__) + '/fixtures/helpers')
<ide> $:.unshift(File.dirname(__FILE__) + '/fixtures/alternate_helpers')
<ide>
<del>ENV['TMPDIR'] = File.join(File.dirname(__FILE__), 'tmp')
<del>
<ide> require 'active_support/core_ext/kernel/reporting'
<ide>
<... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.