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 | codify trans tag | 4b26f679fd819609a751743918ca41725d9291dc | <ide><path>docs/how-to-translate-the-website.md
<ide> const username = 'moT';
<ide>
<ide> The above example passes an object to the `t` function with a `username` variable. The variable will be used in the JSON value where `{{username}}` is.
<ide>
<del>## Translate with the \<Trans\> Component
<add>## Translate with ... | 1 |
Text | Text | clarify rewrites and other docs cleanup. | f6c60946a300cf0b29977ae027b0c0cc056d8602 | <ide><path>docs/api-reference/next.config.js/basepath.md
<ide> description: Learn more about setting a base path in Next.js
<ide>
<ide> # Base Path
<ide>
<del>> This feature was introduced in [Next.js 9.5](https://nextjs.org/blog/next-9-5) and up. If you’re using older versions of Next.js, please upgrade before tryin... | 6 |
Java | Java | fix memory leak | 9dc03854056e766f7beaf03a89c7409f34607d8b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java
<ide> public void onCatalystInstanceDestroy() {
<ide>
<ide> getReactApplicationContext().unregisterComponentCallbacks(mMemoryTrimCallback);
<ide> YogaNodePool.get().clear();
<add> ViewManagerPropertyUpdater.clear();
<ide... | 3 |
Text | Text | remove unmaintained digest authentication package | facb433c89ae52a618857b50a1bdf109392c380c | <ide><path>docs/api-guide/authentication.md
<ide> Install the package using `pip`.
<ide>
<ide> For details on configuration and usage see the Django REST framework OAuth documentation for [authentication][django-rest-framework-oauth-authentication] and [permissions][django-rest-framework-oauth-permissions].
<ide>
<de... | 1 |
Javascript | Javascript | fix react native open source | 63f990121ad5f58dfd07ccfed2bb640b08164f73 | <ide><path>IntegrationTests/IntegrationTestsApp.js
<ide> class IntegrationTestsApp extends React.Component<{}, $FlowFixMeState> {
<ide> if (this.state.test) {
<ide> return (
<ide> <ScrollView>
<del> {/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses
<del> * an er... | 27 |
Javascript | Javascript | handle null targets at assign | 2e5a7e52a0385575bbb55a801471b009afafeca3 | <ide><path>src/ng/parse.js
<ide> ASTCompiler.prototype = {
<ide> self.if(self.stage === 'inputs' || 's', function() {
<ide> if (create && create !== 1) {
<ide> self.if(
<del> self.not(self.getHasOwnProperty('s', ast.name)),
<add> self.not(self.nonCompute... | 2 |
Javascript | Javascript | align $viewvalue description with $setviewvalue | aafbd944397bd18aca2cf94f71ae210dcae756fd | <ide><path>src/ng/directive/ngModel.js
<ide> var ngModelMinErr = minErr('ngModel');
<ide> * @ngdoc type
<ide> * @name ngModel.NgModelController
<ide> *
<del> * @property {string} $viewValue Actual string value in the view.
<add> * @property {*} $viewValue The actual value from the control's view. For `input` element... | 1 |
Text | Text | change dynamic imports to dynamic import | 5f9e9828de7e6ea7c3bf40fa3e973d7451eb84e9 | <ide><path>readme.md
<ide> For the documentation of the latest **stable** release, [visit here](https://git
<ide> - [With `<Link>`](#with-link-1)
<ide> - [Imperatively](#imperatively-1)
<ide> - [Custom server and routing](#custom-server-and-routing)
<del> - [Dynamic Imports](#dynamic-imports)
<add> - [Dynam... | 1 |
Javascript | Javascript | remove unused var in net-server-try-ports | 24ee0d2111b3244a0eaff4b3b436e93efbbcc1a5 | <ide><path>test/parallel/test-net-server-try-ports.js
<ide> require('../common');
<ide> var assert = require('assert');
<ide> var net = require('net');
<ide>
<del>var connections = 0;
<del>
<ide> var server1listening = false;
<ide> var server2listening = false;
<ide> var server2eaddrinuse = false;
<ide>
<ide> var ser... | 1 |
Javascript | Javascript | fix handling of null on ie | 271b535c8285cb90781bf1e8ee56d6e68210a6a9 | <ide><path>src/widgets.js
<ide> function valueAccessor(scope, element) {
<ide> }
<ide> },
<ide> set: function(value) {
<del> var oldValue = element[0].value,
<add> var oldValue = element.val(),
<ide> newValue = format(value);
<ide> if (oldValue != newValue) {
<del> element... | 1 |
Javascript | Javascript | restore v0.10.x setupmaster() behaviour | 4cd522d15796ac558a2be8c623ed3fc1d7dfe3a0 | <ide><path>lib/cluster.js
<ide> function masterInit() {
<ide> cluster.workers = {};
<ide>
<ide> var intercom = new EventEmitter;
<del> var settings = {
<del> args: process.argv.slice(2),
<del> exec: process.argv[1],
<del> execArgv: process.execArgv,
<del> silent: false
<del> };
<del> cluster.setting... | 1 |
Python | Python | use with_extension to change the extension | e4fd5e39993cc2875e3dad536141d5178caaa3f0 | <ide><path>src/transformers/hf_argparser.py
<ide> DataClassType = NewType("DataClassType", Any)
<ide>
<ide>
<del>def trim_suffix(s: str, suffix: str):
<del> return s if not s.endswith(suffix) or len(suffix) == 0 else s[: -len(suffix)]
<del>
<del>
<ide> class HfArgumentParser(ArgumentParser):
<ide> """
<ide> ... | 1 |
Javascript | Javascript | add tests for redirecttolearn | 014c26cd4e97f772ae19fca49150229dab727b60 | <ide><path>api-server/server/boot/challenge.js
<ide> import { homeLocation } from '../../../config/env';
<ide>
<ide> import { ifNoUserSend } from '../utils/middleware';
<ide> import { dasherize } from '../utils';
<del>import pathMigrations from '../resources/pathMigration.json';
<add>import _pathMigrations from '../re... | 3 |
Text | Text | replace medium link with fcc news | 704db73d0d877e174eeb6663e05e03dfc7d1306d | <ide><path>README.md
<ide> Our community also has:
<ide> - A [podcast](https://podcast.freecodecamp.org/) with technology insights and inspiring stories from developers.
<ide> - [Local study groups](https://study-group-directory.freecodecamp.org/) around the world, where you can code together in person
<ide> - A compre... | 1 |
Javascript | Javascript | fix imports order | 8e6f006f207fde704cec8fe536def0dca68692b3 | <ide><path>lib/dependencies/HarmonyExportInitFragment.js
<ide> class HarmonyExportInitFragment extends InitFragment {
<ide> ? `/* unused harmony export ${first(this.unusedExports)} */\n`
<ide> : "";
<ide> const definitions = [];
<del> for (const [key, value] of this.exportMap) {
<add> const orderedExportMap... | 4 |
Ruby | Ruby | reduce object allocation | a60e6ddb83b036f9b92af5dbcfda265cd0fde3b2 | <ide><path>actionview/lib/action_view/template.rb
<ide> def locals_code #:nodoc:
<ide> end
<ide>
<ide> def method_name #:nodoc:
<del> @method_name ||= "_#{identifier_method_name}__#{@identifier.hash}_#{__id__}".tr('-', "_")
<add> @method_name ||= begin
<add> m = "_#{identifier_method... | 1 |
Ruby | Ruby | install tap command completions and manpages | 25396d9c4d7a7a111eebf02f0ebdbb0e69aad3b0 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> lib/ruby/site_ruby/[12].*
<ide> lib/ruby/vendor_ruby/[12].*
<ide> manpages/brew.1
<add> manpages/brew-cask.1
<ide> share/pypy/*
<ide> share/pypy3/*
<ide> share/info/dir
<ide><path>Library/Homebrew/cmd/tap.rb
<ide> module Homebrew
<i... | 7 |
Text | Text | remove linux from the unsupported tap list | 04473795b1abed43463cb4668a75cf3b0ea30b75 | <ide><path>docs/Interesting-Taps-and-Forks.md
<ide> Your taps are Git repositories located at `$(brew --repository)/Library/Taps`.
<ide> ## Unsupported interesting forks
<ide>
<ide> * [mistydemeo/tigerbrew](https://github.com/mistydemeo/tigerbrew): Experimental Tiger PowerPC version.
<del>
<del>* [Linuxbrew/brew](... | 1 |
Text | Text | add text to 'irb' section. | 2e925ad6805bb6b4b8d37685b479e50800e74a99 | <ide><path>guide/english/ruby/index.md
<ide> To know about how to install Ruby through package managers, installers and sourc
<ide>
<ide> ## IRB
<ide>
<del>IRB stands for Interactive Ruby Shell. The abbreviation irb comes from the fact that the filename extension for Ruby is ".rb", although interactive Ruby files do ... | 1 |
Text | Text | update serverrendering to highlight security issue | e2bdf4ad730b3cdd4fcdd36c6f5d578e7ff761a6 | <ide><path>docs/recipes/ServerRendering.md
<ide> function renderFullPage(html, preloadedState) {
<ide> <body>
<ide> <div id="root">${html}</div>
<ide> <script>
<add> // WARNING: See the following for Security isues with this approach:
<add> // http://redux.js.org/docs/recipes/Ser... | 1 |
Javascript | Javascript | remove debugenvironment from oss | 01fffa245d642cae961b63e4ee0e026b6b2153d0 | <ide><path>Libraries/Utilities/DebugEnvironment.js
<del>/**
<del> * Copyright (c) 2013-present, Facebook, Inc.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @providesModule DebugEnvironment
<del> * @flow
<d... | 1 |
PHP | PHP | implement date_format validation rule | a40aabbb05805cbbc7ea3a755f0131787b09e749 | <ide><path>application/language/en/validation.php
<ide> "countbetween" => "The :attribute must have between :min and :max selected elements.",
<ide> "countmax" => "The :attribute must have less than :max selected elements.",
<ide> "countmin" => "The :attribute must have at least :min selected elements.... | 2 |
Python | Python | replace deprecated functions nn 2 rnn | 84840387f3c0bda539673c64da5ae30ea5787626 | <ide><path>research/deep_speech/deep_speech_model.py
<ide>
<ide> # Supported rnn cells.
<ide> SUPPORTED_RNNS = {
<del> "lstm": tf.nn.rnn_cell.BasicLSTMCell,
<del> "rnn": tf.nn.rnn_cell.RNNCell,
<del> "gru": tf.nn.rnn_cell.GRUCell,
<add> "lstm": tf.contrib.rnn.BasicLSTMCell,
<add> "rnn": tf.contrib.rnn.R... | 1 |
Java | Java | add clientrequest attribute for uri template | 9352e3d047e27a91149e471bac7584ff17fa6b92 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> */
<ide> class DefaultWebClient implements WebClient {
<ide>
<add> private static final String URI_TEMPLATE_ATTRIBUTE = WebClient.class.getName() + ".uriTemplate";
<add>
<ide> private static final Mon... | 1 |
Javascript | Javascript | add internal function _deprecationwarning() | 97900776bb3611877d126aa58743eb9b5b2a4be8 | <ide><path>lib/os.js
<ide> exports.platform = function() {
<ide> return process.platform;
<ide> };
<ide>
<del>var warnNetworkInterfaces = true;
<ide> exports.getNetworkInterfaces = function() {
<del> if (warnNetworkInterfaces) {
<del> console.error("os.getNetworkInterfaces() is deprecated - use os.networkInterfa... | 3 |
Javascript | Javascript | add clone property to bufferattribute.js | b17e3a5d557521fa9195267195de4305b276c464 | <ide><path>src/core/BufferAttribute.js
<ide> THREE.BufferAttribute.prototype = {
<ide>
<ide> return this;
<ide>
<add> },
<add>
<add> clone: function () {
<add>
<add> var attribute = new THREE.BufferAttribute( null, this.itemSize );
<add>
<add> var types = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Ui... | 1 |
Javascript | Javascript | add regex for expected error message | c13dda1c43a79d74c7aca085c42d2f19b8fd21b1 | <ide><path>test/parallel/test-tls-key-mismatch.js
<ide> if (!common.hasCrypto) {
<ide> const assert = require('assert');
<ide> const tls = require('tls');
<ide> const fs = require('fs');
<add>const errorMessageRegex = new RegExp('^Error: error:0B080074:x509 ' +
<add> 'certificate routines:X509_check_private_key:key va... | 1 |
Python | Python | break long line | 78bb1d47eb482f74eb461d66248fbdf0a4e23786 | <ide><path>numpy/core/tests/test_mem_overlap.py
<ide> import itertools
<ide>
<ide> import numpy as np
<del>from numpy.testing import (run_module_suite, assert_, assert_raises, assert_equal, assert_array_equal,
<del> assert_allclose)
<add>from numpy.testing import (run_module_suite, assert_, a... | 1 |
Javascript | Javascript | skip less and stabilize test-linux-perf.js | 546d6cdd9e70a9e25b3c43e88d3acac875a478f8 | <ide><path>test/fixtures/linux-perf.js
<ide> 'use strict';
<ide>
<del>const crypto = require('crypto');
<add>const { spawnSync } = require("child_process");
<add>const sleepTime = new Number(process.argv[2] || "0.1");
<add>const repeat = new Number(process.argv[3]) || 5;
<ide>
<del>// Functions should be complex enou... | 2 |
Python | Python | support arbitrary dimensions in stochastic depth | 0537226c75d542225553ca2a7ae3b88fb75b0d7a | <ide><path>official/vision/beta/modeling/layers/nn_layers.py
<ide> def call(self, inputs, training=None):
<ide> batch_size = tf.shape(inputs)[0]
<ide> random_tensor = keep_prob
<ide> random_tensor += tf.random.uniform(
<del> [batch_size, 1, 1, 1], dtype=inputs.dtype)
<add> [batch_size] + [1] *... | 1 |
Go | Go | add missing file | f73401fb9a0993d12da9ef60f265cd0502bb3808 | <ide><path>rcli/utils.go
<add>package rcli
<add>
<add>import (
<add> "github.com/dotcloud/docker/term"
<add> "os"
<add> "os/signal"
<add>)
<add>
<add>//FIXME: move these function to utils.go (in rcli to avoid import loop)
<add>func SetRawTerminal() (*term.State, error) {
<add> oldState, err := term.MakeRaw(int(os.Stdin... | 1 |
Text | Text | revise mac docker instructions | 9572edc34a65736415050f02df3822edeaa55dbc | <ide><path>docs/installation/mac.md
<ide> and choosing "Open" from the pop-up menu.
<ide>
<ide> * installs binaries for the Docker tools in `/usr/local/bin`
<ide> * makes these binaries available to all users
<del> * updates any existing VirtualBox installation
<add> * installs VirtualBox; or update... | 1 |
Text | Text | remove comma splice in events.md | fe955074037aa3c9fc4f41a298f176450c42937e | <ide><path>doc/api/events.md
<ide> events. Listeners installed using this symbol are called before the regular
<ide> `'error'` listeners are called.
<ide>
<ide> Installing a listener using this symbol does not change the behavior once an
<del>`'error'` event is emitted, therefore the process will still crash if no
<ad... | 1 |
Text | Text | fix some typos | 02091b2c1ec68cfc5b4b88295575cfdfce71fad5 | <ide><path>CHANGELOG.md
<ide> function MyCtrl() {
<ide>
<ide> <pre>
<ide> function MyCtrl($scope) {
<del> $scope.mode = 'some model of any type';
<add> $scope.model = 'some model of any type';
<ide>
<ide> $scope.fnUsedFromTemplate = function() {
<ide> someApiThatTakesCallback(function() {
<ide> behavior and m... | 1 |
Javascript | Javascript | add filter infra to configtestcases | 2f8e3fcebb56e6364955840283501c6661feec8c | <ide><path>test/ConfigTestCases.test.js
<ide> describe("ConfigTestCases", function() {
<ide> });
<ide> categories.forEach(function(category) {
<ide> describe(category.name, function() {
<del> category.tests.forEach(function(testName) {
<add> category.tests.filter(function(testName) {
<add> var testDirectory ... | 2 |
Text | Text | update changelog for 1.8.0 | e55d352e942465479fa9f93b566db20a96b4cf15 | <ide><path>CHANGELOG.md
<add>
<add><a name="1.8.0"></a>
<add># 1.8.0 nested-vaccination (2020-06-01)
<add>
<add>## Bug Fixes
<add>- **jqLite:**
<add> - prevent possible XSS due to regex-based HTML replacement
<add> ([2df43c](https://github.com/angular/angular.js/commit/2df43c07779137d1bddf7f3b282a1287a8634acd))
<add>... | 1 |
PHP | PHP | show maintenance message on error page | b3fe47783d2a0bd6557c1744c3d711cd73c7198c | <ide><path>src/Illuminate/Foundation/Exceptions/views/503.blade.php
<ide> </div>
<ide> @endsection
<ide>
<del>@section('message', __('Sorry, we are doing some maintenance. Please check back soon.'))
<add>@section('message', __($exception->getMessage() ?: 'Sorry, we are doing some maintenance. Please check back soon.')... | 1 |
Text | Text | allow valid link tags in curriculum | 37c886e9db77acd83fea5f50a84a3f5a6d4168e8 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3477cb2e27333b1ab2b955.md
<ide> You should not change your existing `head` element. Make sure you did not delete
<ide> assert($('head').length === 1);
<ide> ```
<ide>
<del>Your `link` element should be a self... | 10 |
Javascript | Javascript | make request.abort() destroy the socket | 18d4ee97d812259eb11069614246c9adc5b9f719 | <ide><path>lib/_http_client.js
<ide> ClientRequest.prototype.onSocket = function onSocket(socket) {
<ide> function onSocketNT(req, socket) {
<ide> if (req.aborted) {
<ide> // If we were aborted while waiting for a socket, skip the whole thing.
<del> socket.emit('free');
<add> if (req.socketPath || !req.agen... | 4 |
Text | Text | fix undefined method error for nilclass | 872b3c91b3d6bd5b418463cb92ecc05bce39649d | <ide><path>guides/source/action_controller_overview.md
<ide> the job done:
<ide>
<ide> ```ruby
<ide> def product_params
<del> params.require(:product).permit(:name, { data: params[:product][:data].keys })
<add> params.require(:product).permit(:name, { data: params[:product][:data].try(:keys) })
<ide> end
<ide> ```
<... | 1 |
Text | Text | explain kind (changetype) | 957bc8ac50ee4e2498143fca7848b4ccaab6147a | <ide><path>docs/sources/reference/api/docker_remote_api_v1.18.md
<ide> Inspect changes on container `id`'s filesystem
<ide> }
<ide> ]
<ide>
<add>Values for `Kind`:
<add>
<add>- `0`: Modify
<add>- `1`: Add
<add>- `2`: Delete
<add>
<ide> Status Codes:
<ide>
<ide> - **200** – no error | 1 |
Javascript | Javascript | change var to const in test-tls-key-mismatch.js | 99c07bf74272e170f036e653ba15344f615cf2b6 | <ide><path>test/parallel/test-tls-key-mismatch.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<add>const common = require('../common');
<ide>
<ide> if (!common.hasCrypto) {
<ide> common.skip('missing crypto');
<ide> return;
<ide> }
<del>var tls = require('tls');... | 1 |
Javascript | Javascript | fix race condition in test-worker-process-cwd.js | 195239a5f697214a86ca8b8eeefa1947ce409385 | <ide><path>test/parallel/test-worker-process-cwd.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const { Worker, isMainThread, parentPort } = require('worker_threads');
<ide>
<add>// Verify that cwd changes from the main thread are handled correctly in
<add>// workers.
<add>... | 1 |
Text | Text | add an image and caption to the article | aeb84198d07743e62315828ba639184d9cadab1f | <ide><path>guide/english/mathematics/prime-numbers/index.md
<ide> Examples:
<ide>
<ide> The first ten prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29.
<ide>
<add>
<add>
<add>**This is a chart with the first 100 natural numbers, indicating whi... | 1 |
Javascript | Javascript | fix reactdomselection for ie 11 | 18bf0b80bc701fe0b9fb9216ce907baf4fb035ec | <ide><path>src/core/ReactDOMSelection.js
<ide> function setModernOffsets(node, offsets) {
<ide> var length = node[getTextContentAccessor()].length;
<ide> var start = Math.min(offsets.start, length);
<ide> var end = typeof offsets.end === 'undefined' ?
<del> start : Math.min(offsets.end, length);
<add> ... | 1 |
Javascript | Javascript | enable es7 spread transform when using --harmony | 9f4ae415e2bd61e0d168f236c5be911f96f8696b | <ide><path>vendor/fbtransform/visitors.js
<ide> var es6ObjectConciseMethod = require('jstransform/visitors/es6-object-concise-me
<ide> var es6ObjectShortNotation = require('jstransform/visitors/es6-object-short-notation-visitors');
<ide> var es6RestParameters = require('jstransform/visitors/es6-rest-param-visitors');
<... | 1 |
Javascript | Javascript | consider opacity when alpha testing | 1b4a6e76cac28743bd3d766f12bc9d594edf5f31 | <ide><path>src/renderers/webgl/WebGLSpriteRenderer.js
<ide> function WebGLSpriteRenderer( renderer, gl, state, textures, capabilities ) {
<ide>
<ide> 'vec4 texture = texture2D( map, vUV );',
<ide>
<del> 'if ( texture.a < alphaTest ) discard;',
<del>
<ide> 'gl_FragColor = vec4( color * texture.xyz, texture.... | 1 |
Java | Java | fix retry with predicate ignoring backpressure | d000c1035b5a4134b12c7ef5198aa8487451e54e | <ide><path>src/main/java/rx/Observable.java
<ide> public final Observable<T> retry(final long count) {
<ide> * <p>
<ide> * <img width="640" height="315" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/retry.png" alt="">
<ide> * <dl>
<add> * <dt><b>Backpressure Support:</b></dt>... | 3 |
PHP | PHP | fix brittle test | 76674b8074b8e69a84022522e5678e0940af8895 | <ide><path>tests/Database/DatabaseEloquentRelationTest.php
<ide> public function testTouchMethodUpdatesRelatedTimestamps()
<ide> $relation = new HasOne($builder, $parent, 'foreign_key', 'id');
<ide> $related->shouldReceive('getTable')->andReturn('table');
<ide> $related->shouldReceive('getUpdate... | 1 |
Ruby | Ruby | remove unused try require | 73e46ac1363d376f0bf745f85e91439ae09da815 | <ide><path>activesupport/lib/active_support/values/time_zone.rb
<ide> require 'tzinfo'
<ide> require 'concurrent/map'
<ide> require 'active_support/core_ext/object/blank'
<del>require 'active_support/core_ext/object/try'
<ide>
<ide> module ActiveSupport
<ide> # The TimeZone class serves as a wrapper around TZInfo::T... | 1 |
Javascript | Javascript | introduce engine_parent symbol | aa79ca71fe04776e1c9f4220f49bf35faf38743a | <ide><path>packages/ember-application/lib/system/engine-parent.js
<add>/**
<add>@module ember
<add>@submodule ember-application
<add>*/
<add>
<add>import symbol from 'ember-metal/symbol';
<add>
<add>export const ENGINE_PARENT = symbol('ENGINE_PARENT');
<add>
<add>/**
<add> `getEngineParent` retrieves an engine instanc... | 2 |
Javascript | Javascript | cover stdout/stderr usage in triggerreport() | 86aed6d332f196b57395c345c3d30a70be8bafad | <ide><path>test/report/test-report-triggerreport.js
<ide> const common = require('../common');
<ide> common.skipIfReportDisabled();
<ide> const assert = require('assert');
<add>const { spawnSync } = require('child_process');
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide> const helper = requir... | 1 |
Go | Go | adjust overlay driver for netlink api change | 00456020f5c39e5f9ce77b5ba5eabddcc0981b3d | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> func (n *network) initSandbox() error {
<ide>
<ide> func (n *network) watchMiss(nlSock *nl.NetlinkSocket) {
<ide> for {
<del> msgs, err := nlSock.Recieve()
<add> msgs, err := nlSock.Receive()
<ide> if err != nil {
<ide> logrus.Errorf("Failed to receive ... | 1 |
PHP | PHP | apply fixes from styleci | 1d8a3d59055b7f21bc4d13d7d40eed914b716ebc | <ide><path>tests/Integration/Database/EloquentMorphManyTest.php
<ide> public function comments()
<ide> }
<ide> }
<ide>
<del>
<ide> class Comment extends Model
<ide> {
<ide> public $table = 'comments'; | 1 |
PHP | PHP | remove spaces from declare | 7827d916ea4d9507640ede47e8c4bd9923f88491 | <ide><path>src/Auth/AbstractPasswordHasher.php
<ide> <?php
<del>declare(strict_types = 1);
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Auth/BaseAuthentic... | 24 |
PHP | PHP | remove the mutator methods | 886d8693c4085f6e70289ed9add4c99c8bba4637 | <ide><path>src/Error/Debugger.php
<ide> public function outputError(array $data): void
<ide>
<ide> $outputFormat = $this->_outputFormat;
<ide> if (isset($this->renderers[$outputFormat])) {
<add> /** @var array $trace */
<ide> $trace = static::trace(['start' => $data['start'], 'fo... | 3 |
Ruby | Ruby | add optional post_install method to formula | 462a41887823bbf72996c2ce324c5db30f77e89a | <ide><path>Library/Homebrew/formula.rb
<ide> def cached_download
<ide> # are supported.
<ide> def pour_bottle?; true end
<ide>
<add> # Can be overridden to run commands on both source and bottle installation.
<add> def post_install; end
<add>
<ide> # tell the user about any caveats regarding this package, retu... | 2 |
Python | Python | raise error instead of returning | 042a3a7517cdea7c63152d7ae44d45518dce0589 | <ide><path>airflow/hooks/S3_hook.py
<ide> def load_file(self, filename,
<ide> :param bucket_name: Name of the bucket in which to store the file
<ide> :type bucket_name: str
<ide> :param replace: A flag to decide whether or not to overwrite the key
<del> if it already exists
<add> ... | 1 |
Javascript | Javascript | increase dgram ref()/unref() coverage | b471392f8c6eb8dff24439ded1e51ce6e6710157 | <ide><path>test/parallel/test-dgram-ref.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const dgram = require('dgram');
<ide>
<ide> // should not hang, see #1282
<ide> dgram.createSocket('udp4');
<ide> dgram.createSocket('udp6');
<add>
<add>{
<add> // Test the case of... | 2 |
Python | Python | correct a bug with docker module and server mode | 33ea6415dea509f52659f5bbf80c32701e5925f7 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> self.reset()
<ide>
<ide> # The Docker-py lib is mandatory
<del> if not docker_tag or self.args.disable_docker:
<add> if not docker_tag or (self.args is not None and self.args.disable_docker):
<ide> retu... | 1 |
Javascript | Javascript | fix plnkropener to use $oninit | 5b477614ff92dcdf5eff62e2143b7fb43aab5653 | <ide><path>docs/app/src/examples.js
<ide> angular.module('examples', [])
<ide>
<ide> };
<ide>
<del> // Initialize the example data, so it's ready when clicking the open button.
<del> // Otherwise pop-up blockers will prevent a new window from opening
<del> ctrl.prepareExampleData(ctrl.example.pat... | 1 |
Go | Go | add a benchmark for logger.copier | af439c7a8da878450d0e5583935a1c4208fa92ad | <ide><path>daemon/logger/copier_test.go
<ide> package logger
<ide> import (
<ide> "bytes"
<ide> "encoding/json"
<add> "fmt"
<ide> "io"
<add> "os"
<ide> "sync"
<ide> "testing"
<ide> "time"
<ide> func TestCopierSlow(t *testing.T) {
<ide> case <-wait:
<ide> }
<ide> }
<add>
<add>type BenchmarkLoggerDummy struct {
<... | 1 |
Ruby | Ruby | add argument serializer `timewithzoneserializer` | d2c094aa5081677bf537a1553d0a756fcafcfb4e | <ide><path>activejob/lib/active_job/serializers.rb
<ide> module Serializers
<ide> autoload :ObjectSerializer
<ide> autoload :SymbolSerializer
<ide> autoload :DurationSerializer
<add> autoload :DateTimeSerializer
<ide> autoload :DateSerializer
<add> autoload :TimeWithZoneSerializer
<ide> autolo... | 3 |
Python | Python | remove unneeded parentheses from python file | 317858ac76d9dc81a11bc6626eb949d231eb6f0a | <ide><path>airflow/cli/cli_parser.py
<ide> def positive_int(value):
<ide> "-o",
<ide> "--output",
<ide> ),
<del> help=("Output format. Allowed values: json, yaml, table (default: table)"),
<add> help="Output format. Allowed values: json, yaml, table (default: table)",
<ide> metavar="(table... | 1 |
Go | Go | address some linter warnings | acd0aa7d382cc3bb87d542adf6845bd14d57d53a | <ide><path>api/server/router/image/image.go
<ide> type imageRouter struct {
<ide>
<ide> // NewRouter initializes a new image router
<ide> func NewRouter(backend Backend, referenceBackend reference.Store, imageStore image.Store, layerStore layer.Store) router.Router {
<del> r := &imageRouter{
<add> ir := &imageRouter{
... | 2 |
Javascript | Javascript | fix lint in local-cli | 24d2bbfbab174aa528aa73cccbbefb67f95c2451 | <ide><path>local-cli/__mocks__/beeper.js
<add>/**
<add> * Copyright (c) 2015-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
<add> * of patent ri... | 30 |
Text | Text | fix broken links | f502e17cc78d714048579dac329334c854de77a4 | <ide><path>docs/Testing.md
<ide> next: runningondevice
<ide>
<ide> The React Native repo has several tests you can run to verify you haven't caused a regression with your PR. These tests are run with the [Travis](http://docs.travis-ci.com/) continuous integration system, and will automatically post the results to you... | 1 |
Java | Java | improve mountingmanager debug logging | 0c3988356e6a134400c11d9a4180af11814f5642 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java
<ide> private static void logViewHierarchy(ViewGroup parent) {
<ide> for (int i = 0; i < parent.getChildCount(); i++) {
<ide> FLog.e(
<ide> TAG,
<del> " <View tag="
<add> " <View i... | 1 |
PHP | PHP | add getcookies() method to response | d6a720b2c0d21afffb644933aa7a406eccd63772 | <ide><path>src/Http/Response.php
<ide> public function __toString()
<ide> * @param array|null $options Either null to get all cookies, string for a specific cookie
<ide> * or array to set cookie.
<ide> * @return mixed
<del> * @deprecated 3.4.0 Use getCookie() and withCookie() instead.
<add> * @d... | 2 |
Javascript | Javascript | fix a typo in api.js | 049beac3466df8cb9bac8110c516af37c8e7b46b | <ide><path>src/display/api.js
<ide> var PDFWorker = (function PDFWorkerClosure() {
<ide>
<ide> _initialize: function PDFWorker_initialize() {
<ide> // If worker support isn't disabled explicit and the browser has worker
<del> // support, create a new web worker and test if it/the browser fullfills
<add>... | 1 |
Python | Python | use simple suggester for spancat initialization | 09734c56fcbc76881b7d5bba18d1c9792a84abed | <ide><path>spacy/pipeline/spancat.py
<ide> def initialize(
<ide> self._require_labels()
<ide> if subbatch:
<ide> docs = [eg.x for eg in subbatch]
<del> spans = self.suggester(docs)
<add> spans = build_ngram_suggester(sizes=[1])(docs)
<ide> Y = self.model.ops... | 1 |
Javascript | Javascript | show pending exception error in napi tests | 0c16b1804302046082ce5322b65e09a30172d606 | <ide><path>test/addons-napi/test_exception/test.js
<ide> const theError = new Error('Some error');
<ide>
<ide> // Test that the exception thrown above was marked as pending
<ide> // before it was handled on the JS side
<del> assert.strictEqual(test_exception.wasPending(), true,
<del> 'VM was m... | 1 |
Javascript | Javascript | switch assertequal arguments | 3545a3f83bb380474fcf69467b327cc8ea6d6873 | <ide><path>test/parallel/test-net-binary.js
<ide> echoServer.on('listening', function() {
<ide> });
<ide>
<ide> process.on('exit', function() {
<del> assert.strictEqual(2 * 256, recv.length);
<add> assert.strictEqual(recv.length, 2 * 256);
<ide>
<ide> const a = recv.split('');
<ide> | 1 |
Javascript | Javascript | reset enabled attributes list | 1729be414207740b8563d5212ee41f042dee4b26 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> _lightsNeedUpdate = true;
<ide>
<add> for ( var i = 0; i < _enabledAttributes.length; i ++ ) {
<add> _enabledAttributes[ i ] = 0;
<add> }
<ide> };
<ide>
<ide> setDefaultGLState(); | 1 |
Text | Text | fix spelling errors | ca8a157ad9988dca83c3fa52f165ec88bab18803 | <ide><path>guide/english/vue/index.md
<ide> title: Vue
<ide> ## Introduction
<ide>
<ide> Vue.js is a progressive framework for building user interfaces.
<del>Its core is focused on only the "view" layer and can be easily intergrated with existing libraries and projects.
<add>Its core is focused on only the "view" laye... | 1 |
Python | Python | remove unused name kwarg in ec2 create_node | d8db8f61eb3b3d043c2df275dcf8a07f3187705d | <ide><path>libcloud/drivers/ec2.py
<ide> def create_node(self, **kwargs):
<ide> @keyword ex_userdata: User data
<ide> @type ex_userdata: C{str}
<ide> """
<del> name = kwargs["name"]
<ide> image = kwargs["image"]
<ide> size = kwargs["size"]
<ide> params = { | 1 |
PHP | PHP | improve equality check in consoleinputargument | 14651da764dd74a42623b2af8465cad80b4bce8e | <ide><path>src/Console/ConsoleInputArgument.php
<ide> public function name(): string
<ide> */
<ide> public function isEqualTo(ConsoleInputArgument $argument): bool
<ide> {
<del> return $this->usage() === $argument->usage();
<add> return $this->name() === $argument->name() &&
<add> ... | 2 |
Ruby | Ruby | escape literal dot in regular expression | fe24f5880dfe0054b93f506cb3d4dcdaf9623993 | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def resolve_asset_source(asset_type, source, skip_pipeline)
<ide>
<ide> def extract_dimensions(size)
<ide> size = size.to_s
<del> if /\A(\d+|\d+.\d+)x(\d+|\d+.\d+)\z/.match?(size)
<add> if /\A\d+(?:\.\d+)?x\d+(?... | 2 |
Ruby | Ruby | use instance_eval, reduce method calls | 83ecd03e7d3472c16decbf1b9939da53347b36a3 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def relation #:nodoc:
<ide> # single-table inheritance model that makes it possible to create
<ide> # objects of different types from the same table.
<ide> def instantiate(record)
<del> object = find_sti_class(record[inheritance_co... | 1 |
Ruby | Ruby | use sandbox.formula? method | c6151951d6b685936adb8819db3957b12c95f5c9 | <ide><path>Library/Homebrew/cmd/postinstall.rb
<ide> def run_post_install(formula)
<ide> args << "--devel"
<ide> end
<ide>
<del> if Sandbox.available? && ARGV.sandbox?
<del> Sandbox.print_sandbox_message
<del> end
<add> Sandbox.print_sandbox_message if Sandbox.formula?(formula)
<ide>
<ide> ... | 1 |
Mixed | PHP | fix paths in test/init.php | 57ecda858f62fb03f8439c177622582fff3f6784 | <ide><path>CONTRIBUTING.md
<add># How to contribute
<add>
<add>CakePHP loves to welcome your contributions. There are several ways to help out:
<add>* Create a ticket in Lighthouse, if you have found a bug
<add>* Write testcases for open bug tickets
<add>* Write patches for open bug/feature tickets, preferably with tes... | 2 |
Text | Text | add description of abstract class | e612f499c22a631756f5f58e266412e42288fe80 | <ide><path>guide/english/csharp/abstract-class/index.md
<add>---
<add>title : Abstract class
<add>---
<add>
<add>## Abstract class
<add>Abstract class is a class that has certain restrictions, it can't be instantiated directly. It's used as a base class for other types. An abstract class may contain abstract members (... | 1 |
Python | Python | add regression test for #825 | 84089298c0b55977cbf0c1ad79ec1f57b87b67a1 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_char_array_creation(self, level=rlevel):
<ide> b = np.array(['1','2','3'])
<ide> assert_equal(a,b)
<ide>
<add> def test_unaligned_unicode_access(self, level=rlevel) :
<add> """Ticket #825"""
<add> for i in range(1,9) :
<add>... | 1 |
Ruby | Ruby | convert `brew create` test to spec | 7f8cd184936e3419a5bf960121f76098505d6811 | <ide><path>Library/Homebrew/test/create_test.rb
<del>require "testing_env"
<del>
<del>class IntegrationCommandTestCreate < IntegrationCommandTestCase
<del> def test_create
<del> url = "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz"
<del> cmd("create", url, "HOMEBREW_EDITOR" => "/bin/cat")
<del>
<del> f... | 2 |
PHP | PHP | remove useless check on $glue argument | 347ea002c07ee25f599ae525c8c972307f33cea2 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function has($key)
<ide> */
<ide> public function implode($value, $glue = null)
<ide> {
<del> if (is_null($glue)) return implode($this->lists($value));
<del>
<ide> return implode($glue, $this->lists($value));
<ide> }
<ide>
<ide><path>tests/Support/S... | 2 |
Java | Java | fix broken links to themeresolver in javadoc | 91bca55cbf6e764841ad2abcfd6a1b9690b2e4c0 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContext.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 1 |
Javascript | Javascript | remove risky usages of "===" | 87066fa1ab893751e2842ab89d4b41c7bcc1fd6d | <ide><path>src/behavior/zoom.js
<ide> d3.behavior.zoom = function() {
<ide> }
<ide>
<ide> zoom.on = function(type, listener) {
<del> if (type === "zoom") listeners.push(listener);
<add> if (type == "zoom") listeners.push(listener);
<ide> return zoom;
<ide> };
<ide>
<ide><path>src/chart/bullet.js
<ide>... | 2 |
Javascript | Javascript | clarify some of the writing | 2adad3ab81a037f26220d72400487802dff737e0 | <ide><path>src/ng/directive/ngBind.js
<ide> * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
<ide> * `{{ expression }}` which is similar but less verbose.
<ide> *
<del> * One scenario in which the use of `ngBind` is preferred over `{{ expression }}` binding is when
<del>... | 1 |
Python | Python | commit some more fixes from the doc wiki | 821afc8f1376a634612e182903c06a0c9c556d94 | <ide><path>numpy/add_newdocs.py
<ide> out : dtype
<ide> The promoted data type.
<ide>
<add> See Also
<add> --------
<add> issctype, issubsctype, issubdtype, obj2sctype, sctype2char,
<add> maximum_sctype, min_scalar_type
<add>
<ide> Examples
<ide> --------
<ide> >>> np.promote_types(... | 5 |
Mixed | Javascript | add abortsignal support to watch | 664cce92ec09363d5a37c9f2a360ee0810fe30e3 | <ide><path>doc/api/fs.md
<ide> this API: [`fs.utimes()`][].
<ide> <!-- YAML
<ide> added: v0.5.10
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/37190
<add> description: Added support for closing the watcher with an AbortSignal.
<ide> - version: v7.6.0
<ide> pr-u... | 3 |
Javascript | Javascript | fix breakages when upgrading to babel 6 | b907f40957bbd822cfab3a56d82363ffd58d2e78 | <ide><path>Libraries/Animated/src/Easing.js
<ide> */
<ide> 'use strict';
<ide>
<del>var bezier = require('bezier');
<add>var _bezier = require('bezier');
<ide>
<ide> /**
<ide> * This class implements common easing functions. The math is pretty obscure,
<ide> class Easing {
<ide> epsilon = (1000 / 60 / duratio... | 6 |
PHP | PHP | remove dependency on configure from cache | 1c3d82ef831dde184d91531bee936055edc0c328 | <ide><path>App/Config/cache.php
<ide> */
<ide> namespace App\Config;
<ide>
<del>use Cake\Core\Configure;
<add>use Cake\Cache\Cache;
<ide>
<ide> /**
<ide> * Turn off all caching application-wide.
<ide> */
<ide> //Configure::write('Cache.check', true);
<ide>
<add>/**
<add> * Enable cache view prefixes.
<add> *
<ad... | 11 |
Python | Python | fix obsolete data in english tokenizer exceptions | 00cfadbf63ca59354c2f57a5b28e85d00097a190 | <ide><path>spacy/lang/en/tokenizer_exceptions.py
<ide> LEMMA: "be",
<ide> NORM: "am",
<ide> TAG: "VBP",
<del> "tenspect": 1,
<del> "number": 1,
<ide> },
<ide> ]
<ide> | 1 |
Ruby | Ruby | add check for head ref in diagnostics | abe47b79c898c49d762df5d0f52541722e8e202c | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_brew_git_origin
<ide> end
<ide> end
<ide>
<del> def check_coretap_git_origin
<add> def check_coretap_git_config
<ide> coretap_path = CoreTap.instance.path
<ide> return if !Utils.git_available? || !(coretap_path/".git").ex... | 1 |
Ruby | Ruby | add "build_dependencies" key to json output (#340) | e9cc2a5d88da6d1719763a26c1fc455c51e2c3db | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "dependencies" => deps.map(&:name).uniq,
<ide> "recommended_dependencies" => deps.select(&:recommended?).map(&:name).uniq,
<ide> "optional_dependencies" => deps.select(&:optional?).map(&:name).uniq,
<add> "build_dependencies" => deps.... | 1 |
Python | Python | fix convert for newer megatron-lm bert model | 768e6c1449b12df9c8ae8f71be702c64ba3d9dd9 | <ide><path>src/transformers/models/megatron_bert/convert_megatron_bert_checkpoint.py
<ide> #
<ide>
<ide> import argparse
<del>import json
<ide> import os
<ide> import re
<ide> import zipfile
<ide>
<ide> import torch
<ide>
<add>from transformers import MegatronBertConfig
<add>
<ide>
<ide> ###########################... | 1 |
Javascript | Javascript | add missing return | 806047bd270094fba668929a36bd45c4c68f5491 | <ide><path>src/git-repository-async.js
<ide> module.exports = class GitRepositoryAsync {
<ide>
<ide> isPathIgnored (_path) {
<ide> return this.repoPromise.then((repo) => {
<del> Git.Ignore.pathIsIgnored(repo, _path)
<add> return Git.Ignore.pathIsIgnored(repo, _path)
<ide> })
<ide> }
<ide> | 1 |
Text | Text | fix comma splices in process.md | 4a7b401e5f78f49ce8378031fd456f27a0baa7b4 | <ide><path>doc/api/process.md
<ide> process.on('SIGTERM', handle);
<ide> removed (Node.js will no longer exit).
<ide> * `'SIGPIPE'` is ignored by default. It can have a listener installed.
<ide> * `'SIGHUP'` is generated on Windows when the console window is closed, and on
<del> other platforms under various similar... | 1 |
Text | Text | add tests for header parser microservice project | 86127a24f73ee29be6821ce06561c5f62f53be3f | <ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.english.md
<ide> Start this project on Glitch using <a href='https://glitch.com/edit/#!/remix/clo
<ide>
<ide> ```yml
<ide> tests:
<del> - text: 'I can get the IP address, language and ... | 1 |
Python | Python | support nout == 0 and at method | a43174390de55b2496a9e9aed84cf424229e817a | <ide><path>numpy/core/tests/test_umath.py
<ide> def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
<ide> if results is NotImplemented:
<ide> return NotImplemented
<ide>
<add> if method == 'at':
<add> return
<add>
<ide> if u... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.