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 |
|---|---|---|---|---|---|
PHP | PHP | refactor the url class | c145e6cbaac90eeae1364923def4a4a3e076a89f | <ide><path>system/url.php
<ide> class URL {
<ide> */
<ide> public static function to($url = '', $https = false, $asset = false)
<ide> {
<del> if (filter_var($url, FILTER_VALIDATE_URL) !== false)
<del> {
<del> return $url;
<del> }
<add> if (filter_var($url, FILTER_VALIDATE_URL) !== false) return $url;
<ide>
<... | 1 |
Python | Python | add missing license headers | 03a8b2f744a8d962b338a10a9a3a5ced0d79d12d | <ide><path>libcloud/test/common/test_cloudstack.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You un... | 3 |
Javascript | Javascript | fix redbox on ios | f107d3b78c95ed0313b39e55976cf6b6be36775e | <ide><path>Libraries/Core/NativeExceptionsManager.js
<ide> export interface Spec extends TurboModule {
<ide> stack: Array<StackFrame>,
<ide> exceptionId: number,
<ide> ) => void;
<add> // TODO(T53311281): This is a noop on iOS now. Implement it.
<ide> +reportException?: (data: ExceptionData) => void;
<ide>... | 1 |
Mixed | Javascript | add {read|write}big[u]int64{be|le} methods | 3d8532f851f2f7a2f8380e717281eaa08b02fb35 | <ide><path>benchmark/buffers/buffer-read.js
<ide> const common = require('../common.js');
<ide>
<ide> const types = [
<add> 'BigUInt64LE',
<add> 'BigUInt64BE',
<add> 'BigInt64LE',
<add> 'BigInt64BE',
<ide> 'UInt8',
<ide> 'UInt16LE',
<ide> 'UInt16BE',
<ide><path>benchmark/buffers/buffer-write.js
<ide> const c... | 5 |
Javascript | Javascript | fix 'null' mirroring | b20c98e42708668c564d5f83bad83cf074cf4f58 | <ide><path>lib/_debugger.js
<ide> Client.prototype.mirrorObject = function(handle, depth, cb) {
<ide> return;
<ide> } else if (handle.type === 'function') {
<ide> val = function() {};
<add> } else if (handle.type === 'null') {
<add> val = null;
<ide> } else if (handle.value !== undefined) {
<ide> va... | 1 |
Go | Go | add some tests to the volume store | 834d0e262ac248191c09bcdb2b86ee92edb6aaf0 | <ide><path>integration/volume/volume_test.go
<ide> func TestVolumesCreateAndList(t *testing.T) {
<ide> Driver: "local",
<ide> Scope: "local",
<ide> Name: name,
<del> Options: map[string]string{},
<ide> Mountpoint: fmt.Sprintf("%s/volumes/%s/_data", testEnv.DaemonInfo.DockerRootDir, name),
<id... | 6 |
Python | Python | add dot_axes argument to graph | 455d7d10db1b105e082747dedeae0352a6bb0f99 | <ide><path>keras/layers/containers.py
<ide> def add_input(self, name, input_shape, dtype='float'):
<ide> 'dtype': dtype})
<ide>
<ide> def add_node(self, layer, name, input=None, inputs=[],
<del> merge_mode='concat', concat_axis=-1, create_output=False):
<add> ... | 1 |
Ruby | Ruby | ignore cc script | e224006b4979c78c2966d7c1ef7df9b5f9dbc7d2 | <ide><path>Library/Homebrew/test/bash_spec.rb
<ide> next if path.directory?
<ide> next if path.symlink?
<ide> next unless path.executable?
<add> next if path.basename.to_s == "cc" # `bash -n` tries to parse the Ruby part
<ide> next unless path.read(12) == "#!/bin/bash\n"
<ide>
<i... | 1 |
Text | Text | fix a typos in docs of networking guide | 55b172401851a6338a325ef7930d50ace9efb067 | <ide><path>docs/userguide/networking/dockernetworks.md
<ide> docker0 Link encap:Ethernet HWaddr 02:42:47:bc:3a:eb
<ide> RX bytes:1100 (1.1 KB) TX bytes:648 (648.0 B)
<ide> ```
<ide>
<del>The `none` network adds a container to a container-specific network stack. That container lacks a network interface. A... | 1 |
Text | Text | fix descriptions of sync methods in fs.md | 2d48f97ddda4fce9a03397c89ab5dc329280e9ed | <ide><path>doc/api/fs.md
<ide> Synchronous readdir(3).
<ide>
<ide> The optional `options` argument can be a string specifying an encoding, or an
<ide> object with an `encoding` property specifying the character encoding to use for
<del>the filenames passed to the callback. If the `encoding` is set to `'buffer'`,
<add>... | 1 |
Ruby | Ruby | replace "overwrite" with "override" [ci-skip] | 0d3effc97e3871a9ea49dfea06673f0b06f4821a | <ide><path>actioncable/lib/action_cable/channel/base.rb
<ide> def subscribe_to_channel
<ide> end
<ide>
<ide> # Called by the cable connection when it's cut, so the channel has a chance to cleanup with callbacks.
<del> # This method is not intended to be called directly by the user. Instead, overwrite ... | 15 |
Text | Text | add initial documentation of rntesterplatformtest | fba485af837a48b53c584cca99ae7a230239628f | <ide><path>packages/rn-tester/js/examples/Experimental/PlatformTest/README.md
<add># RNTester PlatformTest
<add>
<add>A barebones manual testing framework designed to work as a mechanism for recreating [Web Platform Tests](https://github.com/web-platform-tests/wpt) in React Native in order to verify their compliance wi... | 1 |
Python | Python | remove duplicated lines in example code | 236c3ebed52f9eb224657206d7aebfc1c1478f72 | <ide><path>examples/cifar10_resnet.py
<ide> (x_train, y_train), (x_test, y_test) = cifar10.load_data()
<ide>
<ide> # Input image dimensions.
<del># We assume data format "channels_last".
<del>img_rows = x_train.shape[1]
<del>img_cols = x_train.shape[2]
<del>channels = x_train.shape[3]
<del>
<ide> if K.image_data_forma... | 1 |
Mixed | Javascript | add setter for module.parent | aaf225a2a0175178f3b55add5f20f16bdb8ef01c | <ide><path>doc/api/modules.md
<ide> deprecated:
<ide>
<ide> The module that first required this one, or `null` if the current module is the
<ide> entry point of the current process, or `undefined` if the module was loaded by
<del>something that is not a CommonJS module (E.G.: REPL or `import`). Read only.
<add>somethi... | 3 |
Python | Python | add new map_index field to log message | cfd6ca6d425e26288bc5d8db59fd886896e9885c | <ide><path>airflow/jobs/scheduler_job.py
<ide> def _process_executor_events(self, session: Session = None) -> int:
<ide> continue
<ide>
<ide> msg = (
<del> "TaskInstance Finished: dag_id=%s, task_id=%s, run_id=%s, "
<add> "TaskInstance Finished: dag_id=%s, task... | 1 |
PHP | PHP | add tests to filesystemadapter | 4ab34a2b39d47053816c757c331b8100764cdbd8 | <ide><path>tests/Filesystem/FilesystemAdapterTest.php
<ide> use League\Flysystem\Adapter\Local;
<ide> use Illuminate\Filesystem\FilesystemAdapter;
<ide> use Symfony\Component\HttpFoundation\StreamedResponse;
<add>use Illuminate\Contracts\Filesystem\FileNotFoundException;
<ide>
<ide> class FilesystemAdapterTest extends... | 1 |
Mixed | Javascript | add readme page in tests and fix typos | a666176d52bcc7e551a1ead756d8bb64381c3715 | <ide><path>test/diff/README.md
<add># Three.js automatic regression testing with CI
<add>
<add>You probably shouldn't run this tests on PC because right now it's not optimized for local usage and you can get different results on different GPUs. Goal is to make quick automated testing inside CI and keep screenshot pack ... | 2 |
Javascript | Javascript | add ist & npt test for time.hours | 4ee4398d6f6affcc670829de50163ebf9f03b177 | <ide><path>test/time/hours-test.js
<ide> suite.addBatch({
<ide> utc(2011, 10, 6, 9)
<ide> ]);
<ide> },
<del> "utc": {
<add> "NPT": {
<add> "observes 15-minute offset": tz("Asia/Kathmandu", function(range) {
<add> assert.deepEqual(range(local(2011, 10, 7, 0), local(2011, 10, 7, 3)), [... | 1 |
Javascript | Javascript | socket timeout for global cache | e2a5bc1a3557c3b6bc5121bdeca0ddbbfbc868bb | <ide><path>packager/react-packager/src/lib/GlobalTransformCache.js
<ide> class GlobalTransformCache {
<ide> * megabytes each.
<ide> */
<ide> _fetchFromURI(uri: string, callback: FetchCallback) {
<del> request.get({uri, json: true}, (error, response, unvalidatedResult) => {
<add> request.get({uri, json: tr... | 1 |
Text | Text | remove bold style from command examples | 84da1699490c08ee3de636956a446b7f9194f76b | <ide><path>README.md
<ide> Make sure you have `grunt` installed by testing:
<ide>
<ide> Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
<ide>
<del>#### `grunt` ####
<add>`grunt`
<ide>
<ide>
<ide> The built version of jQuery will be put in the `dist/` subdi... | 1 |
Python | Python | update the typing tests | 6345920701a16c83a561f45edd7caf701a130a4d | <ide><path>numpy/typing/tests/data/fail/constants.py
<ide> np.Inf = np.Inf # E: Cannot assign to final
<ide> np.ALLOW_THREADS = np.ALLOW_THREADS # E: Cannot assign to final
<ide> np.little_endian = np.little_endian # E: Cannot assign to final
<del>np.UFUNC_PYVALS_NAME = np.UFUNC_PYVALS_NAME # E: Cannot assign to fi... | 2 |
Python | Python | remove length cap on sentences | de13fe030548acf86e759e2c16c85712ab8e30bb | <ide><path>spacy/cli/train.py
<ide> def train(_, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide>
<ide> optimizer = nlp.begin_training(lambda: corpus.train_tuples, use_gpu=use_gpu)
<ide>
<del> print("Itn.\tDep. Loss\tUAS\tNER P.\tNER R.\tNER F.\tTag %\tToken %")
<add> print("Itn.\tLoss\tU... | 1 |
Go | Go | fix id -> id api | 54072dbbd6260a9d8a7249cae0bd17513f15c3fc | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdHistory(args ...string) error {
<ide> }
<ide>
<ide> for _, out := range outs.Data {
<del> outID := out.Get("ID")
<add> outID := out.Get("Id")
<ide> if !*quiet {
<ide> if *noTrunc {
<ide> fmt.Fprintf(w, "%s\t", outID)
<ide> func (cli *DockerCli) CmdImag... | 5 |
Java | Java | add perftest dev support manager | f0b7cbe22e2d67c102149d6d118b563b71a7fbb5 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java
<ide> public DevSupportManager create(
<ide> if (!enableOnCreate) {
<ide> return new DisabledDevSupportManager();
<ide> }
<add> // Developer support is enabled, we now must choose whether to return ... | 2 |
Text | Text | update 4mb api routes warning error guide. | c480726da2ed8385a792e2155fa09282436bfa3c | <ide><path>errors/api-routes-response-size-limit.md
<ide>
<ide> #### Why This Error Occurred
<ide>
<del>API Routes are meant to respond quickly and are not intended to support responding with large amounts of data. The maximum size of responses is 4 MB.
<add>API Routes are meant to respond quickly and are not intende... | 1 |
Python | Python | add try-except for torch_scatter | ab7551cd7ff84cb5b7328bc37a06e06fa19f02bb | <ide><path>src/transformers/models/tapas/modeling_tapas.py
<ide> from .configuration_tapas import TapasConfig
<ide>
<ide>
<add>logger = logging.get_logger(__name__)
<add>
<ide> # soft dependency
<ide> if is_scatter_available():
<del> from torch_scatter import scatter
<del>
<del>logger = logging.get_logger(__name__... | 1 |
PHP | PHP | update cipher tests | 87b7fa721edd87c092916053f5f831ef619038e0 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public function decrypt($payload, $unserialize = true)
<ide>
<ide> $tag = empty($payload['tag']) ? null : base64_decode($payload['tag']);
<ide>
<add> if (self::$supportedCiphers[$this->cipher]['aead'] && strlen($tag) !== 16) {
<add> th... | 2 |
Ruby | Ruby | reuse formulaauditor to check cask's urls | 5ed5e500e5680bb2276320070ce685f04df33c55 | <ide><path>Library/Homebrew/cask/lib/hbc/audit.rb
<ide> require "hbc/download"
<ide> require "digest"
<ide> require "utils/git"
<add>require "dev-cmd/audit"
<ide>
<ide> module Hbc
<ide> class Audit
<ide> def core_formula_url
<ide> end
<ide>
<ide> def check_https_availability
<del> check_url_for_https_a... | 1 |
Go | Go | remove failing overlay test | 0e74aabbb9aa5cea0b6bf7342f9e325f989468fa | <ide><path>daemon/graphdriver/overlay/overlay_test.go
<ide> func TestOverlay50LayerRead(t *testing.T) {
<ide> graphtest.DriverTestDeepLayerRead(t, 50, "overlay")
<ide> }
<ide>
<add>// Fails due to bug in calculating changes after apply
<add>// likely related to https://github.com/docker/docker/issues/21555
<ide> func... | 1 |
Javascript | Javascript | expose e2e test results | 70c3dc81665191cd065a5303e5e26639a0023a73 | <ide><path>src/scenario/Runner.js
<ide> angular.scenario.Runner = function(scope, jQuery){
<ide> var self = scope.$scenario = this;
<ide> this.scope = scope;
<ide> this.jQuery = jQuery;
<add> this.scope.$testrun = {done: false, results: []};
<ide>
<ide> var specs = this.specs = {};
<ide> var path = [];
<ide... | 2 |
PHP | PHP | add test with new lines | a6209ea0f81a1be448d28c38b815c1750ff96d12 | <ide><path>tests/Validation/ValidationInRuleTest.php
<ide> public function testItCorrectlyFormatsAStringVersionOfTheRule()
<ide>
<ide> $this->assertEquals('in:"Life, the Universe and Everything","this is a ""quote"""', (string) $rule);
<ide>
<add> $rule = new In(["a,b\nc,d"]);
<add>
<add> $this-... | 2 |
Ruby | Ruby | remove dependency from _template | bebaccdf4a3a17f2ead349cca891032e245655ff | <ide><path>actionpack/lib/action_view/base.rb
<ide> def cache_template_loading=(value)
<ide> end
<ide> end
<ide>
<del> attr_accessor :_template, :_view_flow
<add> attr_accessor :_view_flow
<ide> attr_internal :request, :controller, :config, :assigns, :lookup_context
<ide>
<ide> # TODO Consider... | 7 |
Ruby | Ruby | catch new style gist urls | dc8218fdb50a303f5441e7a54866932f67669b0f | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_patches
<ide>
<ide> def audit_patch(patch)
<ide> case patch.url
<del> when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw]
<add> when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw],
<add> ... | 1 |
Javascript | Javascript | add tests for em.view#nearestoftype | 4260efe344c02a8a3b195162746a7d40bb95d5fb | <ide><path>packages/ember-views/tests/views/view/nearest_of_type_test.js
<add>var set = Ember.set, get = Ember.get;
<add>
<add>module("Ember.View#nearestOfType");
<add>
<add>(function() {
<add> var Mixin = Ember.Mixin.create({}),
<add> Parent = Ember.View.extend(Mixin, {
<add> render: function(buffer) {
<a... | 1 |
Python | Python | fix transformer inference savedmodel | 54832af86a4f756ec95124511483966a2575f95d | <ide><path>official/nlp/modeling/models/seq2seq_transformer.py
<ide> def call(self, inputs):
<ide> Raises:
<ide> NotImplementedError: If try to use padded decode method on CPU/GPUs.
<ide> """
<add> inputs = inputs if isinstance(inputs, list) else [inputs]
<ide> if len(inputs) == 2:
<ide> sour... | 3 |
PHP | PHP | set incremented value on model | b18c7258f7ae8ba3a01a41c272cbf2f7e0b75005 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function incrementOrDecrement($column, $amount, $method)
<ide> return $query->{$method}($column, $amount);
<ide> }
<ide>
<add> $this->incrementOrDecrementAttributeValue($column, $amount, $method);
<add>
<ide> return $query->where($this->getK... | 2 |
Javascript | Javascript | make abort-fatal-error more robust | 2f5e77f55bb7af8ba0b9643a83abdb81b4255d9b | <ide><path>test/simple/test-abort-fatal-error.js
<ide> cmdline += ' --max-old-space-size=4 --max-new-space-size=1';
<ide> cmdline += ' -e "a = []; for (i = 0; i < 1e9; i++) { a.push({}) }"';
<ide>
<ide> exec(cmdline, function(err, stdout, stderr) {
<del> assert(err);
<del> assert(stderr.toString().match(/abort/i));
... | 1 |
Text | Text | move sysctls to correct api version | 7cdd693d5d2094f73383145eb74d81c6b9bb9b24 | <ide><path>docs/reference/api/docker_remote_api_v1.21.md
<ide> Create a container
<ide> "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
<ide> "NetworkMode": "bridge",
<ide> "Devices": [],
<del> "Sysctls": { "net.ipv4.ip_forward": "1" },
<ide> "Uli... | 2 |
Python | Python | fix a number of pep8 errors | 1f5455e29efa4579eebbf894e97ee53cd1257529 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def rnn(step_function, inputs, initial_states,
<ide> # TODO: remove later.
<ide> if hasattr(tf, 'select'):
<ide> tf.where = tf.select
<del>
<add>
<ide> if unroll:
<ide> if not inputs.get_shape()[0]:
<ide> raise ValueErr... | 15 |
Javascript | Javascript | add test for selection.sort | 94800d39d2f6b22bef10c6921ee44906dcaa85d3 | <ide><path>test/core/selection-sort-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("selection.sort");
<add>
<add>suite.addBatch({
<add> "selectAll(div).selectAll(span)": {
<add> topic: functio... | 2 |
Javascript | Javascript | use datatextureloader and custom onload | fa43b759e76cc81aeebbe6e9e7df743e50773c1f | <ide><path>examples/js/loaders/TGALoader.js
<ide> THREE.TGALoader = function ( manager ) {
<ide>
<del> THREE.Loader.call( this, manager );
<add> THREE.DataTextureLoader.call( this, manager );
<ide>
<ide> };
<ide>
<del>THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype ), {
<add>THREE.TG... | 2 |
Javascript | Javascript | add check for bounding sphere | c5f771fbb43056dd862ba1d87d531fa2418030c4 | <ide><path>editor/js/Sidebar.Geometry.js
<ide> Sidebar.Geometry = function ( editor ) {
<ide>
<ide> }
<ide>
<add> if ( geometry.boundingSphere === null ) {
<add>
<add> geometry.computeBoundingSphere();
<add>
<add> }
<ide> geometryBoundingSphere.setValue( Math.floor( geometry.boundingSphere.radius * 1000 ... | 1 |
Ruby | Ruby | use new autocorrect flag | f804a22dc0ea5f9d5c0fb4a2a337be3060ce0e91 | <ide><path>Library/Homebrew/style.rb
<ide> def run_rubocop(files, output_type,
<ide> --force-exclusion
<ide> ]
<ide> args << if fix
<del> "--auto-correct-all"
<add> "--autocorrect-all"
<ide> else
<ide> "--parallel"
<ide> end | 1 |
Ruby | Ruby | handle paths with spaces when editing credentials | 5ca37eae126a541ba561034e79a8fcc5d1d0b712 | <ide><path>railties/lib/rails/commands/credentials/credentials_command.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "pathname"
<add>require "shellwords"
<ide> require "active_support"
<ide> require "rails/command/helpers/editor"
<ide> require "rails/command/environment_argument"
<ide> def ensure_credenti... | 1 |
Go | Go | add /proc/keys to masked paths | de23cb939858a66829d5b75057c7ac664c5acda5 | <ide><path>oci/defaults.go
<ide> func DefaultLinuxSpec() specs.Spec {
<ide> s.Linux = &specs.Linux{
<ide> MaskedPaths: []string{
<ide> "/proc/kcore",
<add> "/proc/keys",
<ide> "/proc/latency_stats",
<ide> "/proc/timer_list",
<ide> "/proc/timer_stats", | 1 |
PHP | PHP | use table macro in routesshell | 454146acfc0135b93eed5a7c6ffb8dce814e5060 | <ide><path>src/Shell/RoutesShell.php
<ide> class RoutesShell extends Shell
<ide> */
<ide> public function main()
<ide> {
<del> $output = [];
<add> $output = [
<add> ['Route name', 'URI template', 'Defaults']
<add> ];
<ide> foreach (Router::routes() as $route) {
<ide>... | 2 |
Ruby | Ruby | fix rosetta2 cocoapods warning on apple silicon | e918362be3cb03ae9dee3b8d50a240c599f6723f | <ide><path>scripts/react_native_pods.rb
<ide> def use_react_native! (options={})
<ide> # Include Hermes dependencies
<ide> hermes_enabled = options[:hermes_enabled] ||= false
<ide>
<del> if `/usr/sbin/sysctl -n hw.optional.arm64 2>&1`.to_i == 1 && !RUBY_PLATFORM.start_with?('arm64')
<add> if `/usr/sbin/sysctl -n... | 1 |
PHP | PHP | revert previous changes to eloquent | 00b064c7d52d8f43af819a5d62b1c35f01856748 | <ide><path>system/db/eloquent.php
<ide> public function has_and_belongs_to_many($model, $table = null)
<ide> $this->relating_key = strtolower(get_class($this)).'_id';
<ide>
<ide> return static::make($model)
<del> ->select(array(static::table($model).'.*'))
<add> ... | 1 |
Python | Python | trigger a build | 819408ac338e95c8293b69a1bcbd28ac7240988b | <ide><path>setup.py
<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.
<del>
<ide> import os
<ide> import sys
<ide> import doctest | 1 |
Python | Python | fix paver execution on windows 7 for python 2.6 | 0132351b0073f464060e1bac8b0595198c31a4e9 | <ide><path>pavement.py
<ide> "2.6": ["C:\Python26\python.exe"],
<ide> "2.5": ["C:\Python25\python.exe"],
<ide> }
<del> WINDOWS_ENV = {}
<add> # XXX: find out which env variable is necessary to avoid the pb with python
<add> # 2.6 and random module when importing tempfile
<add> WINDOWS_EN... | 1 |
Mixed | Ruby | fix bug on non empty defaults for pg array columns | 78e4862f6f7079c10af44c269bf98046a41bc8cf | <ide><path>activerecord/CHANGELOG.md
<add>* Fixed error when specifying a non-empty default value on a PostgreSQL array column.
<add>
<add> Fixes #10613.
<add>
<add> *Luke Steensen*
<add>
<ide> * Make possible to change `record_timestamps` inside Callbacks.
<ide>
<ide> *Tieg Zaharia*
<ide><path>activerec... | 4 |
Text | Text | fix nits in child_process.md | bf692ce1e61948be8f258402768efe280069459b | <ide><path>doc/api/child_process.md
<ide> ls.stdout.on('data', (data) => {
<ide> });
<ide>
<ide> ls.stderr.on('data', (data) => {
<del> console.log(`stderr: ${data}`);
<add> console.error(`stderr: ${data}`);
<ide> });
<ide>
<ide> ls.on('close', (code) => {
<ide> When running on Windows, `.bat` and `.cmd` files can ... | 1 |
Javascript | Javascript | add hashes to monaco workers | 7a8d6b250461649eb26e25398934972bf809a895 | <ide><path>client/gatsby-node.js
<ide> exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
<ide> // involved in SSR. Also, if the plugin is used during the 'build-html' stage
<ide> // it overwrites the minfied files with ordinary ones.
<ide> if (stage !== 'build-html') {
<del> newPlugins.push(ne... | 1 |
PHP | PHP | define hasabilities trait on default user | 72a10c64c2772df7e30cbeb9cfd09d85e9f24f7b | <ide><path>app/User.php
<ide> use Illuminate\Auth\Authenticatable;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Auth\Passwords\CanResetPassword;
<add>use Illuminate\Foundation\Auth\Access\HasAbilities;
<ide> use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
<ide> use Illumi... | 1 |
PHP | PHP | remove hasproperty() & update doc blocks | 10e347d0666523761dd809966e123ec80f757645 | <ide><path>src/Datasource/EntityTrait.php
<ide> public function getOriginalValues()
<ide> *
<ide> * ```
<ide> * $entity = new Entity(['id' => 1, 'name' => null]);
<del> * $entity->hasProperty('id'); // true
<del> * $entity->hasProperty('name'); // false
<del> * $entity->hasProperty('last_name... | 2 |
Javascript | Javascript | use process.hrtime() for clock in node.js builds | 4691b5f1b0460bfc5c0e26c28e8f7a8fa9acca05 | <ide><path>utils/npm/header.js
<ide>
<ide> var window = window || {};
<ide> var self = self || {};
<add>
<add>// High-resulution counter: emulate window.performance.now() for THREE.CLOCK
<add>if( window.performance === undefined ) {
<add>
<add> window.performance = { };
<add>
<add>}
<add>
<add>if( window.performance.n... | 1 |
Ruby | Ruby | need the byte helpers | 8d17bb4bb01600711d144a643d608c2fba95b9b3 | <ide><path>lib/active_storage/service/disk_service.rb
<ide> require "fileutils"
<ide> require "pathname"
<add>require "active_support/core_ext/numeric/bytes"
<ide>
<ide> class ActiveStorage::Service::DiskService < ActiveStorage::Service
<ide> attr_reader :root
<ide><path>lib/active_storage/service/s3_service.rb
<ide... | 2 |
PHP | PHP | add test case | d083346a1278b9d09414824bc10deb6c5b3502cb | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testDatetimeEmptyArrayForm()
<ide> $this->assertHtml($expected, $result);
<ide> }
<ide>
<add> /**
<add> * Test datetime with array empty value, ensuring
<add> * empty options aren't duplicated.
<add> *
<add> *... | 1 |
Ruby | Ruby | use new finder methods for association preloading | cfdfd899262c79c37ac89e030f4d90c8f9868b50 | <ide><path>activerecord/lib/active_record/association_preload.rb
<ide> def preload_has_and_belongs_to_many_association(records, reflection, preload_opt
<ide> conditions << append_conditions(reflection, preload_options)
<ide>
<ide> associated_records = reflection.klass.with_exclusive_scope do
<del> ... | 1 |
Javascript | Javascript | remove unreachable code | 58066d16d56ea58d4139bc865349fec9346b12ba | <ide><path>lib/events.js
<ide> EventEmitter.prototype.removeListener =
<ide> if (position < 0)
<ide> return this;
<ide>
<del> if (list.length === 1) {
<del> if (--this._eventsCount === 0) {
<del> this._events = Object.create(null);
<del> return this;
<del> ... | 1 |
Go | Go | switch swarmmode services to nanocpu | 8a60a1e14a5e98b7ed0fbea57369615a766a1ae9 | <ide><path>daemon/cluster/executor/container/container.go
<ide> import (
<ide> "net"
<ide> "strconv"
<ide> "strings"
<del> "time"
<ide>
<ide> "github.com/sirupsen/logrus"
<ide>
<ide> import (
<ide> )
<ide>
<ide> const (
<del> // Explicitly use the kernel's default setting for CPU quota of 100ms.
<del> // https:/... | 1 |
Mixed | Ruby | update counter cache when pushing into association | 1e27f1c5d5d177089fbda03ba31f2f55fa622a39 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix for a regression bug in which counter cache columns were not being updated
<add> when record was pushed into a has_many association. For example:
<add>
<add> Post.first.comments << Comment.create
<add>
<add> Fixes... | 3 |
Text | Text | add link to triage guide | aaed4381651588feb8eb0b29a8d48a75a366e767 | <ide><path>README.md
<ide> maintaining the Node.js project.
<ide> * [VoltrexMaster](https://github.com/VoltrexMaster) -
<ide> **Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
<ide>
<add>Triagers follow the [Triage Guide](./doc/contributing/issues.md#triaging-a-bug-report) when
<add>responding to ... | 1 |
Ruby | Ruby | remove extra class_eval for ruby 1.9 | fc12655be5affa692a80d9439e93c7e897f06eef | <ide><path>activesupport/lib/active_support/core_ext/module/attr_internal.rb
<ide> def attr_internal_ivar_name(attr)
<ide>
<ide> def attr_internal_define(attr_name, type)
<ide> internal_name = attr_internal_ivar_name(attr_name).sub(/\A@/, '')
<del> # class_eval is necessary on 1.9 or else the methods ar... | 1 |
Python | Python | fix openstack tests | 404e73a7252d41a5c572f89916544029b1e4d08d | <ide><path>libcloud/test/__init__.py
<ide> def __init__(self, action):
<ide> StorageMockHttp = MockHttp
<ide>
<ide>
<del>def make_response(status=200, headers={}, connection=None):
<add>def make_response(status=200, headers={}, body=None, connection=None):
<ide> response = requests.Response()
<ide> response.s... | 2 |
Javascript | Javascript | add missing test flags | 2097a6fc053823a8585cdbe858ade70f62c6bb1d | <ide><path>test/wasi/test-wasi-start-validation.js
<add>// Flags: --experimental-wasi-unstable-preview0
<ide> 'use strict';
<ide>
<ide> require('../common'); | 1 |
PHP | PHP | apply fixes from styleci | e12cb1327ee652180a8fa918e025aa1f6a5d173e | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> use Illuminate\Foundation\Application;
<ide> use Illuminate\Foundation\Bootstrap\RegisterFacades;
<ide> use Illuminate\Foundation\Events\LocaleUpdated;
<del>use Illuminate\Support\Facades\App;
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Mockery... | 1 |
Text | Text | improve sigint error text | 91f05448894e07831eb91118e5ab361a1c350116 | <ide><path>doc/api/errors.md
<ide> An attempt was made to `require()` an [ES Module][].
<ide> <a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a>
<ide> ### `ERR_SCRIPT_EXECUTION_INTERRUPTED`
<ide>
<del>Script execution was interrupted by `SIGINT` (For example, when Ctrl+C was
<del>pressed).
<add>Script execution was interru... | 1 |
PHP | PHP | allow fallback_locale in translator | bf062fee1e0b67b2d646f37a7ef734ea5391c34c | <ide><path>src/Illuminate/Translation/TranslationServiceProvider.php
<ide> public function register()
<ide>
<ide> $trans = new Translator($loader, $locale);
<ide>
<add> $trans->setFallback($app['config']['app.fallback_locale']);
<add>
<ide> return $trans;
<ide> });
<ide> }
<ide><path>src/Illuminate/Transla... | 2 |
Python | Python | capitalize occurrences of 'flask' | 77af942b982a3b07669362cc6bc223026bf039cd | <ide><path>flask/__init__.py
<ide> # it.
<ide> from . import json
<ide>
<del># This was the only thing that flask used to export at one point and it had
<add># This was the only thing that Flask used to export at one point and it had
<ide> # a more generic name.
<ide> jsonify = json.jsonify
<ide>
<ide><path>flask/cli... | 4 |
Python | Python | add regression test for | 2251993805670563e641cfcc420de302930ba190 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_misaligned_objects_segfault(self):
<ide> a2 = np.zeros((10,), 'S10')
<ide> a1['o'] = a2
<ide>
<add> def test_byteswap_complex_scalar(self):
<add> """Ticket #1259"""
<add> x = np.array([-1j], '<c8')
<add> y = x[0].byte... | 1 |
Python | Python | remove duplicated code (function extract rmap) | 6ef5ec39cdfaf77aa4600ec2e3bf9f679a4fd527 | <ide><path>numpy/lib/arraypad.py
<ide> def _get_linear_ramps(padded, axis, width_pair, end_value_pair):
<ide> """
<ide> edge_pair = _get_edges(padded, axis, width_pair)
<ide>
<del> left_ramp = np.linspace(
<del> start=end_value_pair[0],
<del> stop=edge_pair[0].squeeze(axis), # Dimensions is r... | 1 |
Python | Python | apply copy only to guaranteed dict | c15adf9944558b25fc74e14827c9720fbf00be5f | <ide><path>keras/engine/compile_utils.py
<ide> def __init__(self, losses, loss_weights=None, output_names=None):
<ide> self._user_losses = losses
<ide> self._user_loss_weights = loss_weights
<ide>
<del> self._losses = copy.copy(losses)
<add> self._losses = losses
<ide> self._loss_weights = loss_weigh... | 1 |
Go | Go | add partial flag into record | 3ed3b33e558490db088103404e03539f5a3df832 | <ide><path>daemon/logger/fluentd/fluentd.go
<ide> func (f *fluentd) Log(msg *logger.Message) error {
<ide> for k, v := range f.extra {
<ide> data[k] = v
<ide> }
<add> if msg.Partial {
<add> data["partial_message"] = "true"
<add> }
<ide>
<ide> ts := msg.Timestamp
<ide> logger.PutMessage(msg) | 1 |
Python | Python | remove inaccurate comment regarding language names | efa3f71cc4d35afe7e1ca479de2eca7808215d6f | <ide><path>django/conf/global_settings.py
<ide> # http://www.i18nguy.com/unicode/language-identifiers.html
<ide> LANGUAGE_CODE = 'en-us'
<ide>
<del># Languages we provide translations for, out of the box. The language name
<del># should be the utf-8 encoded local name for the language.
<add># Languages we provide tran... | 1 |
PHP | PHP | fix merge conflicts | 8fc1942fcb11fdd5f501a959accd23f3c10ca1e7 | <ide><path>src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
<ide> protected function runningUnitTests()
<ide> */
<ide> protected function tokensMatch($request)
<ide> {
<add> $sessionToken = $request->session()->token();
<add>
<ide> $token = $request->input('_token') ?: $request-... | 4 |
Java | Java | fix regression in classpathresource descriptions | b50f6e19a6820a8e735a89dfee1a85077e804ec5 | <ide><path>spring-core/src/main/java/org/springframework/core/io/ClassPathResource.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not ... | 2 |
Text | Text | use erb in the changelog [ci skip] | 0e9f0bd6f710e510496fafc402f5a74a03a502fd | <ide><path>actionview/CHANGELOG.md
<ide> * Ability to pass block to `select` helper
<ide>
<del> = select(report, "campaign_ids") do
<del> - available_campaigns.each do |c|
<del> %option{:data => {:tags => c.tags.to_json}, :value => c.id}= c.name
<add> <%= select(report, "campaign_id... | 1 |
Python | Python | fix application tests | b300bfb198cb1c4967b912009e18ada1affa8c38 | <ide><path>tests/keras/applications/applications_test.py
<ide>
<ide> pytestmark = pytest.mark.skipif(
<ide> os.environ.get('CORE_CHANGED', 'True') == 'False' and
<del> os.environ('APP_CHANGED', 'True') == 'False',
<add> os.environ.get('APP_CHANGED', 'True') == 'False',
<ide> reason='Runs only when the re... | 1 |
Python | Python | remove tt_ + celery_redis_ config | a86f32440022c1a4c8376d0dc05cadfc17ede5fb | <ide><path>celery/tests/config.py
<ide>
<ide> CELERYD_LOG_COLOR = False
<ide>
<del># Tyrant results tests (only executed if installed and running)
<del>TT_HOST = os.environ.get('TT_HOST') or 'localhost'
<del>TT_PORT = int(os.environ.get('TT_PORT') or 1978)
<del>
<del># Redis results tests (only executed if installed ... | 1 |
Text | Text | improve wording of the engines guide | a8d4e2788b977da39f1b8a3ed7fb67fafecbcd0f | <ide><path>guides/source/engines.md
<ide> What are engines?
<ide>
<ide> Engines can be considered miniature applications that provide functionality to their host applications. A Rails application is actually just a "supercharged" engine, with the `Rails::Application` class inheriting a lot of its behavior from `Rails:... | 1 |
Text | Text | add ssr caching example to the readme. (#503) | fb3612a941931837a976b8443b03512ae992a49d | <ide><path>README.md
<ide> export default ({ url }) => (
<ide> <li><a href="./examples/custom-server">Basic custom server</a></li>
<ide> <li><a href="./examples/custom-server-express">Express integration</a></li>
<ide> <li><a href="./examples/parameterized-routing">Parameterized routing</a></li>
<add> <l... | 1 |
Text | Text | apply proper formatting on note paragraph | 7453131461f5073d9160bbc1402bcb0e052579c0 | <ide><path>curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.english.md
<ide> In the good old days this was what you needed to do if you wanted to edit a docu
<ide>
<ide> Find a person by <code>_id</code> ( use any of the above methods )... | 1 |
Text | Text | create readme for spentaur/yelp model | 53f5ef6df5290b46a60cca9560379216b80c73ab | <ide><path>model_cards/spentaur/yelp/README.md
<add># DistilBERT Yelp Review Sentiment
<add>This model is used for sentiment analysis on english yelp reviews.
<add>It is a DistilBERT model trained on 1 million reviews from the yelp open dataset.
<add>It is a regression model, with outputs in the range of ~-2 to ~2.... | 1 |
PHP | PHP | remove unused import | bc91b6c997491e029c0d9bb1828cbe89d66f76ff | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide>
<ide> namespace Illuminate\Foundation\Testing\Concerns;
<ide>
<del>use Illuminate\Http\Testing\NullMiddleware;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Foundation\Testing\TestResponse; | 1 |
Javascript | Javascript | make it so that you can filter tests by keyword | fbd2b066a71c8c2371e11f7f6b201a9000b564e4 | <ide><path>build/test/data/testrunner.js
<ide> function test(name, callback, nowait) {
<ide> name = _config.currentModule + " module: " + name;
<ide>
<ide> var filter = location.search.slice(1);
<del> if ( filter && encodeURIComponent(name) != filter )
<add> if ( filter && encodeURIComponent(name).indexOf(filter)... | 1 |
Text | Text | add changelog for 1.3.0-beta.3 | 3f2d7565322a0c8bf72a1ed9da90885a8707161c | <ide><path>CHANGELOG.md
<add><a name="1.3.0-beta.3"></a>
<add># 1.3.0-beta.3 emotional-waffles (2014-03-21)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **ngAnimate:** support `webkitCancelRequestAnimationFrame` in addition to `webkitCancelAnimationFrame`
<add> ([c839f78b](https://github.com/angular/angular.js/commit/c8... | 1 |
Javascript | Javascript | convert the rendering queue to es6 syntax | 24d44b2a341266eec932a0975c764fee69aa6103 | <ide><path>web/pdf_rendering_queue.js
<ide> * limitations under the License.
<ide> */
<ide>
<del>var CLEANUP_TIMEOUT = 30000;
<add>const CLEANUP_TIMEOUT = 30000;
<ide>
<del>var RenderingStates = {
<add>const RenderingStates = {
<ide> INITIAL: 0,
<ide> RUNNING: 1,
<ide> PAUSED: 2,
<del> FINISHED: 3
<add> FIN... | 1 |
Javascript | Javascript | check result as early as possible | 3ba4f71fc4a1b3acdcaaa250bc5ba81442257e09 | <ide><path>test/parallel/test-http-get-pipeline-problem.js
<ide> server.listen(common.PORT, function() {
<ide> var s = fs.createWriteStream(common.tmpDir + '/' + x + '.jpg');
<ide> res.pipe(s);
<ide>
<del> // TODO there should be a callback to pipe() that will allow
<del> // us to get a c... | 1 |
Ruby | Ruby | reduce cache misses on sti subclasses | 1a15fda02159487371a0cb4c36311345dec7b46b | <ide><path>activerecord/lib/active_record/base.rb
<ide> def reset_column_information
<ide> undefine_attribute_methods
<ide> reset_column_cache
<ide> @column_names = @content_columns = @dynamic_methods_hash = @inheritance_column = nil
<del> @arel_engine = @relation = @arel_table = nil
<add... | 1 |
Python | Python | improve handling of 'empty' values for choicefield | 53258908210b1eabd0ee204653a589d6579ac772 | <ide><path>rest_framework/fields.py
<ide> class ChoiceField(WritableField):
<ide> }
<ide>
<ide> def __init__(self, choices=(), *args, **kwargs):
<add> self.empty = kwargs.pop('empty', '')
<ide> super(ChoiceField, self).__init__(*args, **kwargs)
<ide> self.choices = choices
<ide> ... | 3 |
PHP | PHP | name" command | d4b6cea0ae1a67e48425c427d48b71f5d078cb90 | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> public function fire()
<ide> $this->info('Application namespace set!');
<ide>
<ide> $this->composer->dumpAutoloads();
<add>
<add> $this->call('clear-compiled');
<add>
<add> $this->call('optimize');
<ide> }
<ide>
<ide> /** | 1 |
Ruby | Ruby | add #rendered_format method to controllers | 7d810049fe8905e3e96d0b2e989f562bb961e59e | <ide><path>actionpack/lib/abstract_controller/rendering.rb
<ide> def render_to_body(options = {})
<ide> def render(*args, &block)
<ide> end
<ide>
<add> # Return Content-Type of rendered content
<add> # :api: public
<add> def rendered_format
<add> end
<add>
<ide> # This method should return a ha... | 3 |
Javascript | Javascript | move script loading into separate runtime module | 531f7b47f624250c88851b198795c71c7b300f3c | <ide><path>lib/RuntimeGlobals.js
<ide> exports.uncaughtErrorHandler = "__webpack_require__.oe";
<ide> */
<ide> exports.scriptNonce = "__webpack_require__.nc";
<ide>
<add>/**
<add> * function to load a script tag.
<add> * Arguments: (url: string, done: (event) => void), key?: string | number) => void
<add> * done func... | 11 |
Text | Text | add new sub-section about using pipes in component | 96a424820278b2a7532f1a2272b1ff15826ba2a8 | <ide><path>guide/english/angular/pipes/index.md
<ide> export class AppComponent {
<ide> <h6>{{ someValue | example:‘lowercase’ }}</h6>
<ide> ```
<ide>
<del>Understanding the above example means you understand Angular pipes. There is only one more topic left to discuss.
<add>### Using Pipes in Components or Services
<a... | 1 |
Javascript | Javascript | use a different name depending on channel | 2d6cc4f17227ca22cfeeefdbd257813c8aff1435 | <ide><path>script/config.js
<ide> const computedAppVersion = computeAppVersion(
<ide> const channel = getChannel(computedAppVersion);
<ide> const appName = getAppName(channel);
<ide> const executableName = getExecutableName(channel, appName);
<add>const channelName = getChannelName(channel);
<ide>
<ide> module.exports... | 2 |
Python | Python | use moveaxis instead of rollaxis internally | 029863eae86b9df2de4b9a9843ca8f88c99130df | <ide><path>numpy/core/numeric.py
<ide> def rollaxis(a, axis, start=0):
<ide> """
<ide> Roll the specified axis backwards, until it lies in a given position.
<ide>
<add> This function continues to be supported for backward compatibility, but you
<add> should prefer `moveaxis`. The `moveaxis` function was ... | 13 |
Python | Python | remove dependency between bart and led (slow/fast) | 6ef16f2b67bdf2797297d65f72efc68256d11e3f | <ide><path>src/transformers/models/led/tokenization_led.py
<ide> # limitations under the License.
<ide> """Tokenization classes for LED."""
<ide>
<del>from typing import Dict, Optional, Union
<add>import json
<add>import os
<add>from functools import lru_cache
<add>from typing import Dict, List, Optional, Tuple, Union... | 2 |
Java | Java | fix cronexpression issue with dst | 7276752e7cbc87aead678ae84ec8a83e7603a141 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/support/CronField.java
<ide> public <T extends Temporal & Comparable<? super T>> T elapseUntil(T temporal, in
<ide> * Roll forward the give temporal until it reaches the next higher
<ide> * order field. Calling this method is equivalent to cal... | 2 |
Python | Python | add filter for new py3k warning in python 2 | 1627de4baad000763ef299593e4c73d98790193e | <ide><path>numpy/core/tests/test_defchararray.py
<ide> from numpy.core.multiarray import _vec_string
<ide> from numpy.testing import (
<ide> run_module_suite, assert_, assert_equal, assert_array_equal, assert_raises,
<add> suppress_warnings,
<ide> )
<ide>
<ide> kw_unicode_true = {'unicode': True} # make 2to3 w... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.