content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix a bug in 3mfloader | f344d8fe97ead056131f31d96a1b20019c1e32cd | <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 |
Text | Text | remove an extra space in a hint | 53d6ea90fd66b8ff0db7c0608e596245d78e8658 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<del>A `setter` should be defined.
<add>A `setter` should be defined.
<ide>
<ide> ```js
<ide> assert( | 1 |
Text | Text | add asr colabs | 0bc2e54f00f2464494d01ad43bcbaf21eaf80742 | <ide><path>examples/pytorch/README.md
<ide> Coming soon!
<ide> | [**`text-generation`**](https://github.com/huggingface/transformers/tree/master/examples/pytorch/text-generation) | - | n/a | - | - | [](https://colab.research.google.com/github/hug... | 2 |
Text | Text | use active voice and use more descriptive terms | 7fe1f0f4ea2c9e82b4b19ecb07a3c9f4dca96821 | <ide><path>guides/source/active_record_querying.md
<ide> class Post < ActiveRecord::Base
<ide> end
<ide> ```
<ide>
<del>This may then be called using this:
<add>Call the scope as if it were a class method:
<ide>
<ide> ```ruby
<ide> Post.created_before(Time.zone.now) | 1 |
Python | Python | use trunc as fix implementation | 96bcaf6272b1045bd766025163837d3083503f1f | <ide><path>numpy/lib/ufunclike.py
<ide> def fix(x, y=None):
<ide> """ Round x to nearest integer towards zero.
<ide> """
<del> x = asanyarray(x)
<del> if y is None:
<del> y = nx.floor(x)
<del> else:
<del> nx.floor(x, y)
<del> if x.ndim == 0:
<del> if (x<0):
<del> y +=... | 1 |
Python | Python | add folders plugin to the unitaries tests | 5ab1059c3504366cd018995205d98ffa5b0341b7 | <ide><path>unitest-restful.py
<ide> def test_003_plugins(self):
<ide> if p in ('uptime', 'now'):
<ide> self.assertIsInstance(req.json(), text_type)
<ide> elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist',
<del> 'diskio', 'hddtemp', 'bat... | 2 |
Python | Python | fix imports again based on sponge error | 25efe03e7a59ce66e7da9c6823364d16ea2ca8de | <ide><path>official/resnet/keras/keras_common.py
<ide>
<ide> import time
<ide>
<add>import numpy as np
<add>
<ide> # pylint: disable=g-bad-import-order
<ide> from absl import flags
<del>import numpy as np
<ide> import tensorflow as tf
<ide> from tensorflow.python.keras.optimizer_v2 import (gradient_descent as
<ide> ... | 1 |
Python | Python | improve testcliconfig in local environment | c970053254969348919ebcdc9549c8b24be7d894 | <ide><path>tests/cli/commands/test_config_command.py
<ide> def setUpClass(cls):
<ide> @mock.patch("airflow.cli.commands.config_command.io.StringIO")
<ide> @mock.patch("airflow.cli.commands.config_command.conf")
<ide> def test_cli_show_config_should_write_data(self, mock_conf, mock_stringio):
<del> co... | 1 |
Javascript | Javascript | update openssl3 error messages for beta-1 | d58f0e005efb9bcf9c308f0fde590c7e278f7ca6 | <ide><path>test/parallel/test-crypto-dh-stateless.js
<ide> assert.throws(() => {
<ide> crypto.generateKeyPairSync('ec', { namedCurve: not256k1 }));
<ide> }, common.hasOpenSSL3 ? {
<ide> name: 'Error',
<del> code: 'ERR_OSSL_MISMATCHING_SHARED_PARAMETERS'
<add> code: 'ERR_OSSL_MISMATCHING_DOMAIN_PARAMETERS'
<i... | 3 |
Text | Text | add documentation for active support on load hooks | 8ca42638bc3115e5161b084a668e253dee94fd24 | <ide><path>guides/source/engines.md
<ide> After reading this guide, you will know:
<ide> * How to build features for the engine.
<ide> * How to hook the engine into an application.
<ide> * How to override engine functionality in the application.
<add>* Avoid loading Rails frameworks with Load and Configuration Hooks
<i... | 1 |
Text | Text | create model card | 55b932a8180e1823285f6a29f853f600463a5006 | <ide><path>model_cards/mrm8488/electra-small-finetuned-squadv2/README.md
<add>---
<add>language: english
<add>---
<add>
<add># Electra small ⚡ + SQuAD v2 ❓
<add>
<add>[Electra-small-discriminator](https://huggingface.co/google/electra-small-discriminator) fine-tuned on [SQUAD v2.0 dataset](https://rajpurkar.github.io/S... | 1 |
Ruby | Ruby | use installed cask file for `brew cask zap` | 3fb7c3a2f3825984ed3bc1da0595864404338bf6 | <ide><path>Library/Homebrew/cask/cmd/uninstall.rb
<ide> def self.uninstall_casks(*casks, binaries: nil, force: false, verbose: false)
<ide> casks.each do |cask|
<ide> odebug "Uninstalling Cask #{cask}"
<ide>
<del> raise CaskNotInstalledError, cask unless cask.installed? || force
<del>
<del> ... | 2 |
Python | Python | update russian tokenizer exceptions | 7e684ad691992e759e71026a11c1ddd77c401f39 | <ide><path>spacy/lang/ru/tokenizer_exceptions.py
<ide> {ORTH: "2к23", NORM: "2023"},
<ide> {ORTH: "2к24", NORM: "2024"},
<ide> {ORTH: "2к25", NORM: "2025"},
<add> {ORTH: "2к26", NORM: "2026"},
<add> {ORTH: "2к27", NORM: "2027"},
<add> {ORTH: "2к28", NORM: "2028"},
<add> {ORTH: "2к29", NORM: "202... | 1 |
Text | Text | fix formatting issue | 4d6debcfd331d767a509a24cd7545a4367193977 | <ide><path>client/src/pages/guide/english/python/web-frameworks-and-what-they-do-for-you/bottle/index.md
<ide> The following details how to write and run a simple greeting web app where we ca
<ide>
<ide> If we enter our name and press submit now we will get a `HTTP 404` error though as we have not yet defined the ... | 1 |
PHP | PHP | use "toarray()" when available | b6eb79e51f4d098fea020536003c38c5c109b423 | <ide><path>src/Utility/Hash.php
<ide> public static function extract($data, $path)
<ide> list($token, $conditions) = self::_splitConditions($token);
<ide>
<ide> foreach ($context[$_key] as $item) {
<add> if (is_object($item) && method_exists($item, 'toArray')) {
<add> ... | 2 |
Python | Python | remove logical object ufuncs with bool output | 4a74cee8530e51fe60f77fa0131eda5e2c8a986d | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def english_upper(s):
<ide> 'PyUFunc_SimpleBinaryComparisonTypeResolver',
<ide> TD(nodatetime_or_obj, out='?', simd=[('avx2', ints)]),
<ide> TD(O, f='npy_ObjectLogicalAnd'),
<del> TD(O, f='npy_ObjectLogicalAnd', out='?'... | 2 |
Javascript | Javascript | refactor the attr method | c8ba433f1892f61e51991439e484e78322137eb6 | <ide><path>src/jqLite.js
<ide> forEach({
<ide> },
<ide>
<ide> attr: function(element, name, value) {
<add> var ret;
<ide> var nodeType = element.nodeType;
<ide> if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {
<ide> return;
<ide> }
<add>
... | 1 |
Ruby | Ruby | add more docs and tests to templates | 64c7f7e39244129e9330afed82da8a7ffeb948b3 | <ide><path>actionpack/lib/action_view/template.rb
<ide> def initialize(source, identifier, handler, details)
<ide> @compiled = false
<ide> end
<ide>
<add> # Render a template. If the template was not compiled yet, it is done
<add> # exactly before rendering.
<add> #
<add> # This method ... | 2 |
Go | Go | add stream flag to logs command | 62263967b91ca841c43b980aec0ebc74ab2d838d | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdDiff(args ...string) error {
<ide>
<ide> func (cli *DockerCli) CmdLogs(args ...string) error {
<ide> cmd := cli.Subcmd("logs", "CONTAINER", "Fetch the logs of a container")
<add> stream := cmd.Bool("stream", false, "Stream output")
<ide> if err := cmd.Parse(args)... | 1 |
Ruby | Ruby | reduce some lasigns | ef4ffed660015772f67826e8aaa319febe84f271 | <ide><path>activerecord/lib/active_record/associations/association_proxy.rb
<ide> def association_scope
<ide> scope = target_klass.unscoped
<ide> scope = scope.create_with(creation_attributes)
<ide> scope = scope.apply_finder_options(@reflection.options.slice(:conditions, :readonly, :inclu... | 1 |
Python | Python | provide perclass iou | 8de71c4b8b164a093e9f0972a9a45ffb887c5b44 | <ide><path>official/vision/keras_cv/__init__.py
<ide> # pylint: disable=wildcard-import
<ide> from official.vision.keras_cv import layers
<ide> from official.vision.keras_cv import losses
<add>from official.vision.keras_cv import metrics
<ide> from official.vision.keras_cv import ops
<ide><path>official/vision/keras_cv... | 4 |
Text | Text | tweak the contributing wording in readme | 1c0b5dca5aa3ece735a78ea9bef601eaa1857d58 | <ide><path>README.md
<ide> npm i --save react
<ide>
<ide> ## Contributing
<ide>
<del>The main purpose of this repository is to continue to evolve React core, making it faster and easier to use. If you're interested in helping with that, check out our [contribution guide](https://facebook.github.io/react/contributing/... | 1 |
Java | Java | add resolvers for uri, cookies, and request params | 2794553d2e12a7c74f7654fc093bcfc93de1723d | <ide><path>spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the... | 9 |
Python | Python | remove unused variable 'd' | 002510f19cee0fa9ee9bcb8332a957b6692ae560 | <ide><path>glances/attribute.py
<ide> def history_json(self, nb=0):
<ide> def history_mean(self, nb=5):
<ide> """Return the mean on the <nb> values in the history.
<ide> """
<del> d, v = zip(*self._history)
<add> _, v = zip(*self._history)
<ide> return sum(v[-nb:]) / float(v[-1... | 1 |
Text | Text | remove the restriction on multi-user prs | 4c282b979b717a28dd7699ad5b124d82b6a99a29 | <ide><path>CONTRIBUTING.md
<ide> committing your changes. Most editors have plug-ins that do this automatically.
<ide> Pull requests descriptions should be as clear as possible and include a
<ide> reference to all the issues that they address.
<ide>
<del>Pull requests must not contain commits from other users or branc... | 1 |
Javascript | Javascript | add missing module declaration | 9955aaf6be4ca742801ae69893ef1b7e5c4302ab | <ide><path>flow-github/metro.js
<ide> declare module 'metro/src/Server' {
<ide> declare module 'metro/src/ModuleGraph/worker/collectDependencies' {
<ide> declare module.exports: any;
<ide> }
<add>
<add>declare module 'metro/src/JSTransformer/worker' {
<add> declare module.exports: any;
<add>} | 1 |
Javascript | Javascript | use hrtime in throughput benchmark | e2bcff9aa75e51b9ba071330fe712180abed03e0 | <ide><path>benchmark/throughput-child.js
<ide> var net = require('net');
<ide> var received = 0;
<del>var start = new Date();
<add>var start = process.hrtime();
<ide> var socket = net.connect(8000);
<ide>
<ide> socket.on('data', function(d) {
<ide> var interval = setInterval(function() {
<ide> process.exit(0);
<id... | 1 |
Text | Text | update changelog for v15 | 85372964e50ffe76701377278ba1ac1c6582db4a | <ide><path>CHANGELOG.md
<add>## 15.0.0 (April 7, 2016)
<add>
<add>### Major changes
<add>
<add>- **Initial render now uses `document.createElement` instead of generating HTML.** Previously we would generate a large string of HTML and then set `node.innerHTML`. At the time, this was decided to be faster than using `docu... | 1 |
Text | Text | add text in portuguese | d1408853315f4d290ad804d038d7fab17987db0c | <ide><path>guide/portuguese/mathematics/percent-of-a-whole-number/index.md
<ide> localeTitle: Porcentagem de um número inteiro
<ide> ---
<ide> ## Porcentagem de um número inteiro
<ide>
<del>Este é um esboço. [Ajude nossa comunidade a expandi-lo](https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/... | 1 |
Ruby | Ruby | add a task to commit the changes | 482790db6ce85b79a74b4f0f837fc848613daa4a | <ide><path>tasks/release.rb
<ide> end
<ide> end
<ide>
<add> task :commit do
<add> File.open('dist/commit_message.txt', 'w') do |f|
<add> f.puts "# Preparing for #{version} release\n"
<add> f.puts
<add> f.puts "# UNCOMMENT THE LINE ABOVE TO APPROVE THIS COMMIT"
<add> end
<add>
<add> sh "g... | 1 |
Python | Python | remove unused import from tensorflow | 30e8b0373a57fa29e605a1896f90e7b3c4e279d2 | <ide><path>keras/backend.py
<ide> def truncated_normal(
<ide>
<ide> def dropout(self, inputs, rate, noise_shape=None):
<ide> self._maybe_init()
<del> if self._rng_type == self.RNG_STATEFUL:
<del> return tf.nn.experimental.general_dropout(
<del> inputs,
<del> ... | 2 |
Go | Go | remove job from tag | 99f6309b97041bf82cc845340734dc8e47977c8a | <ide><path>api/server/server.go
<ide> func postImagesTag(eng *engine.Engine, version version.Version, w http.ResponseW
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<ide>
<del> job := eng.Job("tag", vars["name"], r.Form.Get("repo"), r.Form.Get("tag"))
<del> job.Setenv("force", r.Form.Get("force"))
<del> if e... | 12 |
Python | Python | upgrade fab to 3.1.1 | 5154b84f52aac6bd469ba3e726daebe9d9538a32 | <ide><path>airflow/www/utils.py
<ide> # under the License.
<ide> import json
<ide> import time
<del>from typing import Any, List, Optional
<ide> from urllib.parse import urlencode
<ide>
<ide> import markdown
<ide> import sqlalchemy as sqla
<ide> from flask import Markup, Response, request, url_for
<ide> from flask_app... | 2 |
Javascript | Javascript | remove tls.createsecurepair code deprecation | d8a3c4ab2aba94f1faac36e51220b270f9b88227 | <ide><path>lib/tls.js
<ide> exports.TLSSocket = require('_tls_wrap').TLSSocket;
<ide> exports.Server = require('_tls_wrap').Server;
<ide> exports.createServer = require('_tls_wrap').createServer;
<ide> exports.connect = require('_tls_wrap').connect;
<del>
<del>// Legacy API
<del>exports.__defineGetter__('createSecurePa... | 1 |
Javascript | Javascript | save 8 chars | a83e15fdf6c3a21b84ae660e0c36590f4d8d610b | <ide><path>lib/MainTemplate.js
<ide> MainTemplate.prototype = Object.create(Template.prototype);
<ide> MainTemplate.prototype.requireFn = "require";
<ide> MainTemplate.prototype.render = function(hash, chunk, moduleTemplate, dependencyTemplates) {
<ide> var buf = [];
<add> buf.push("// shortcut for better minimizing")... | 1 |
Javascript | Javascript | add missing semicolon in hdrcubetextureloader | 6f5d75c3c5899a209c82dbeecde57bd0ece4fd86 | <ide><path>examples/js/loaders/HDRCubeTextureLoader.js
<ide> THREE.HDRCubeTextureLoader = function (manager) {
<ide> this.hdrLoader = new THREE.RGBELoader();
<ide>
<ide> if( THREE.Encodings === undefined ) throw new Error( "HDRCubeMapLoader requires THREE.Encodings" );
<del>}
<add>};
<ide>
<ide> THREE.HDRCubeText... | 1 |
Javascript | Javascript | return child from execfile | d700a6f74ad7b32b1f9106634ac6b13b4ae4244a | <ide><path>lib/child_process.js
<ide> exports.execFile = function (file, args /*, options, callback */) {
<ide> if (callback) callback(e, stdout, stderr);
<ide> }
<ide> });
<add>
<add> return child;
<ide> };
<ide>
<ide> | 1 |
Javascript | Javascript | improve message for assert.strictequal() | e07e7081027d512ebeb9890a246c4192949abe7d | <ide><path>test/addons-napi/test_exception/test.js
<ide> let caughtError;
<ide>
<ide> // Test that the native side successfully captures the exception
<ide> let returnedError = test_exception.returnException(throwTheError);
<del>assert.strictEqual(theError, returnedError,
<del> 'Returned error is str... | 1 |
Text | Text | add gitter badge | 2189a5999f8a4561c91ed5497cdb2c1bd182a9d9 | <ide><path>README.md
<ide> # Airflow
<ide>
<add>[](https://gitter.im/airbnb/airflow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
<add>
<ide> [ CmdStart(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdInspect(args ...string) error {
<del> cmd := Subcmd("inspect", "CONTAINER|IMAGE", "Return low-level information on a container/image")
<add> cmd := Subcmd("inspect", "CONTAINER|IMAGE [CONTAI... | 1 |
Javascript | Javascript | improve readable push performance | 359ea2a0bd772beb25267478d4f8e3ed59021e19 | <ide><path>benchmark/streams/readable-boundaryread.js
<ide> const common = require('../common');
<ide> const Readable = require('stream').Readable;
<ide>
<ide> const bench = common.createBenchmark(main, {
<del> n: [200e1]
<add> n: [200e1],
<add> type: ['string', 'buffer']
<ide> });
<ide>
<ide> function main(conf) ... | 2 |
Javascript | Javascript | add format and parse token y, so it actually works | 0d9cefb39c963bd85d55ae069deb9e904d9bbc87 | <ide><path>src/lib/units/year.js
<ide> import toInt from '../utils/to-int';
<ide>
<ide> // FORMATTING
<ide>
<add>addFormatToken('Y', 0, 0, function () {
<add> var y = this.year();
<add> if (y < 0) {
<add> return y;
<add> } else if (y <= 9999) {
<add> return y;
<add> } else {
<add> // ... | 3 |
Python | Python | clarify behaviour of test_backfill_depends_on_past | a804666347b50b026a8d3a1a14c0b2e27a369201 | <ide><path>tests/jobs/test_backfill_job.py
<ide> def test_backfill_pooled_tasks(self):
<ide> ti.refresh_from_db()
<ide> assert ti.state == State.SUCCESS
<ide>
<del> @pytest.mark.quarantined
<del> def test_backfill_depends_on_past(self):
<del> """
<del> Test that backfill respects ig... | 1 |
Text | Text | fix typo in globals.md | cb7e854c776d366fed74ec3edf082aea0e723a6f | <ide><path>doc/api/globals.md
<ide> changes:
<ide> description: Added the new optional reason argument.
<ide> -->
<ide>
<del>* `reason` {any} An optional reason, retrievable on the `AbortSignal`s
<add>* `reason` {any} An optional reason, retrievable on the `AbortSignal`'s
<ide> `reason` property.
<ide>
<ide> Tr... | 1 |
Javascript | Javascript | add slider and switch | a3b9840885b13a187195f2f2b3da9b5475993bc6 | <ide><path>Libraries/Components/Slider/Slider.js
<ide> 'use strict';
<ide>
<ide> const Platform = require('../../Utilities/Platform');
<del>const SliderNativeComponent = require('./SliderNativeComponent');
<add>import SliderNativeComponent from './SliderNativeComponent';
<ide> const React = require('react');
<ide> con... | 5 |
Javascript | Javascript | fix test-timers.reliability on os x | 8bcb174d03f045b99a3c46a81af750704d273762 | <ide><path>test/timers/test-timers-reliability.js
<ide> var intervalFired = false;
<ide> */
<ide>
<ide> var monoTimer = new Timer();
<del>monoTimer.ontimeout = function() {
<add>monoTimer[Timer.kOnTimeout] = function() {
<ide> /*
<ide> * Make sure that setTimeout's and setInterval's callbacks have
<ide> ... | 1 |
Text | Text | remove link to join slack | be23d14d5f110b5e7b398c4786684c2976bc3e9b | <ide><path>README.md
<ide>
<ide> [](https://dev.azure.com/github/Atom/_build/latest?definitionId=32&branchName=master)
<ide> [](https://david-dm.or... | 1 |
Text | Text | remove use of "very" [ci skip] | c709edaceba1866749ade264583ce9d0e85126ea | <ide><path>guides/source/testing.md
<ide> You'll find fixtures under your `test/fixtures` directory. When you run `rails g
<ide>
<ide> #### YAML
<ide>
<del>YAML-formatted fixtures are a very human-friendly way to describe your sample data. These types of fixtures have the **.yml** file extension (as in `users.yml`).
... | 1 |
PHP | PHP | ignore a given model during a unique check | 9cda938d168d8aceaab1ca0409eafce484458f0b | <ide><path>src/Illuminate/Validation/Rules/Unique.php
<ide>
<ide> namespace Illuminate\Validation\Rules;
<ide>
<add>use Illuminate\Database\Eloquent\Model;
<add>
<ide> class Unique
<ide> {
<ide> use DatabaseRule;
<ide> class Unique
<ide> *
<ide> * @var string
<ide> */
<del> protected $idColumn =... | 2 |
Text | Text | clarify information about abi version | 1b2d3f7ae7f0391908b70b0333a5adef3c8cb79d | <ide><path>doc/api/process.md
<ide> added: v0.2.0
<ide> * {Object}
<ide>
<ide> The `process.versions` property returns an object listing the version strings of
<del>Node.js and its dependencies. In addition, `process.versions.modules` indicates
<del>the current ABI version, which is increased whenever a C++ API change... | 1 |
Ruby | Ruby | avoid method redefined warning | 6ea967729fef4e3155fb7a50813b503a0bfdc07f | <ide><path>activemodel/test/cases/validations/callbacks_test.rb
<ide> class Dog
<ide> include ActiveModel::Validations
<ide> include ActiveModel::Validations::Callbacks
<ide>
<del> attr_accessor :name, :history
<add> attr_accessor :name
<add> attr_writer :history
<ide>
<ide> def history
<ide> @history ... | 1 |
Python | Python | remove log line causing warning from disutils | 7078f01420626e8261389ce558cb27d750d6650e | <ide><path>numpy/distutils/misc_util.py
<ide> def gpaths(paths, local_path='', include_non_existing=True):
<ide>
<ide> _temporary_directory = None
<ide> def clean_up_temporary_directory():
<del> from numpy.distutils import log
<ide> global _temporary_directory
<ide> if not _temporary_directory:
<ide> ... | 1 |
Java | Java | fix wrong javadoc tag | 939f172b5fd39fdc83e353fa0b4626a8a61e3ee4 | <ide><path>src/main/java/io/reactivex/MaybeObserver.java
<ide> * first the Maybe calls {@link #onSubscribe(Disposable)} with a {@link Disposable} that allows
<ide> * cancelling the sequence at any time, then the
<ide> * {@code Maybe} calls only one of the MaybeObserver's {@link #onSuccess}, {@link #onError} or
<del>... | 1 |
Javascript | Javascript | document the container | 58fd8c71ea677cd4e1e97de5d50b105e9ec0d92d | <ide><path>packages/container/lib/main.js
<ide> define("container",
<ide> [],
<ide> function() {
<ide>
<add> /**
<add> A safe and simple inheriting object.
<add>
<add> @class InheritingDict
<add> */
<ide> function InheritingDict(parent) {
<ide> this.parent = parent;
<ide> this.dict = {}... | 2 |
Python | Python | allow integer device for batchencoding | 222dbdb2039678564444b51fdd35975fce468fe1 | <ide><path>src/transformers/tokenization_utils_base.py
<ide> def to(self, device: Union[str, "torch.device"]) -> "BatchEncoding":
<ide> # This check catches things like APEX blindly calling "to" on all inputs to a module
<ide> # Otherwise it passes the casts down and casts the LongTensor containing the ... | 1 |
PHP | PHP | add missing iterator unset calls | 70f24dfa72b6d4c58952c8140b7668eeea82b426 | <ide><path>src/Cache/Engine/FileEngine.php
<ide> function (SplFileInfo $current) use ($group, $prefix) {
<ide> @unlink($path);
<ide> }
<ide>
<add> // unsetting iterators helps releasing possible locks in certain environments,
<add> // which could otherwise make `rmdir()` fail
<ide> ... | 2 |
Text | Text | update userland and core.md | cf432dce0aa99c5436dfd4aaf98e1e3b44b90315 | <ide><path>docs/Basics/Userland and Core.md
<add>Userland and Core
<add>--------------------------
<ide>
<add>TODO
<add>
<add>--------------------------
<add>Next: [Why Redux](Why Redux.md) | 1 |
Javascript | Javascript | add quick temporary patch for authorization error | ec508636b0f81ac8a964ea60d77062dcc0200c82 | <ide><path>server/boot/a-extendUser.js
<ide> module.exports = function(app) {
<ide> 'emails',
<ide> 'a-extend-user-welcome.ejs'
<ide> ),
<del> redirect: '/'
<add> redirect: '/email-signin'
<ide> };
<ide>
<ide> debug('sending welcome email');
<ide> return user.verify(mailOpti... | 1 |
PHP | PHP | add assert method for unauthorized response. (#1) | b0939f50e1178b6e2381b6379ac9942f210282db | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertForbidden()
<ide>
<ide> return $this;
<ide> }
<add>
<add> /**
<add> * Assert that the response has an unauthorized status code.
<add> *
<add> * @return $this
<add> */
<add> public function as... | 1 |
Javascript | Javascript | remove knownfortype usage for dashless helpers | 23888dac5efdb7fb043d9a1ee6560495d74ecef4 | <ide><path>packages/ember-htmlbars/lib/hooks/has-helper.js
<ide> export default function hasHelperHook(env, scope, helperName) {
<ide> }
<ide>
<ide> var container = env.container;
<del> if (validateLazyHelperName(helperName, container, env.hooks.keywords, env.knownHelpers)) {
<add> if (validateLazyHelperName(hel... | 5 |
Java | Java | improve javadoc for repeatablecontainers | 965dd66f8cfc162de94d517c4e5515d6002ac874 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/RepeatableContainers.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 |
Python | Python | use aligned memory for dot() out= arrays | 7886906af7cccdde892db7be8f8ae53fd5266d95 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> import operator
<ide> import io
<ide> import itertools
<add>import functools
<ide> import ctypes
<ide> import os
<ide> import gc
<ide> EMPTY = None
<ide>
<ide>
<add>def _aligned_zeros(shape, dtype=float, order="C", align=None):
<add> """Allocate a new ndarra... | 1 |
Ruby | Ruby | remove duplication by extracting methods | 6175f73f6384be6581c8ba8a117e2d3d5dcde541 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
<ide> def restore!
<ide> def rollback_records
<ide> return unless records
<ide>
<del> ite = records.uniq(&:__id__)
<add> ite = unique_records
<add>
<ide> instances_to_run_callbacks_on = prepare_ins... | 1 |
Javascript | Javascript | add textcontenttype to onboarding flow | c59da6eae88690c5cd0071d88f933b0e88e9c97b | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> export type ReturnKeyType =
<ide>
<ide> export type AutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';
<ide>
<add>export type TextContentType =
<add> | 'none'
<add> | 'URL'
<add> | 'addressCity'
<add> | 'addressCityAndState'
<add> | 'addre... | 1 |
Python | Python | skip mapping against mapped ti if it returns none | 6383a2772bac463bb1335cea2ad4554a3f94c6f7 | <ide><path>airflow/models/taskinstance.py
<ide> def _record_task_map_for_downstreams(self, task: "Operator", value: Any, *, sess
<ide> validators = {m.validate_upstream_return_value for m in task.iter_mapped_dependants()}
<ide> if not validators: # No mapped dependants, no need to validate.
<ide> ... | 2 |
Go | Go | fix plugin restart on docker restart | ab12ed4a5642edb4d96b54b6152f12260093f3ea | <ide><path>plugin/backend.go
<ide> func (pm *Manager) Enable(name string) error {
<ide> if err != nil {
<ide> return err
<ide> }
<del> if err := pm.enable(p); err != nil {
<add> if err := pm.enable(p, false); err != nil {
<ide> return err
<ide> }
<ide> pm.pluginEventLogger(p.PluginObj.ID, name, "enable")
<ide><... | 4 |
Javascript | Javascript | add warning if return pointer is inconsistent | 15df051c94533c70b065d51c41cf9b6b2f1dc6a6 | <ide><path>packages/react-dom/src/__tests__/ReactWrongReturnPointer-test.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @emails react-core... | 3 |
Text | Text | clarify introductory module material | 65a53c6f1b14b6d1339cbc45894f3de540a3a21b | <ide><path>doc/api/modules.md
<ide>
<ide> Node.js has a simple module loading system. In Node.js, files and modules
<ide> are in one-to-one correspondence (each file is treated as a separate module).
<del>As an example, `foo.js` loads the module `circle.js` in the same directory.
<ide>
<del>The contents of `foo.js`:... | 1 |
Text | Text | remove mdx tags from `readme.md` | c23d54fd261b34ff947a18170a303a305179e7bd | <ide><path>website/README.md
<ide> rendered version is available at https://spacy.io/styleguide._
<ide>
<ide> </Comment>
<ide>
<del>## Setup and installation {#setup}
<add>## Setup and installation
<ide>
<ide> Before running the setup, make sure your versions of
<ide> [Node](https://nodejs.org/en/) and [npm](https:/... | 1 |
Javascript | Javascript | avoid multiple textureloaders in for-loops | 8ab4529129cfb80afdc35f18db505fc404ecca87 | <ide><path>examples/js/MD2Character.js
<ide> THREE.MD2Character = function () {
<ide>
<ide> function loadTextures( baseUrl, textureUrls ) {
<ide>
<del> var mapping = THREE.UVMapping;
<add> var textureLoader = new THREE.TextureLoader();
<ide> var textures = [];
<ide>
<ide> for ( var i = 0; i < textureUrls.leng... | 3 |
Go | Go | add test for event limitation | 46747963b603a5573a0b26dcef407a96757926e7 | <ide><path>integration-cli/docker_cli_events_test.go
<ide> package main
<ide> import (
<ide> "fmt"
<ide> "os/exec"
<add> "strconv"
<ide> "strings"
<ide> "testing"
<ide> "time"
<ide> func TestCLIGetEventsPause(t *testing.T) {
<ide>
<ide> logDone("events - pause/unpause is logged")
<ide> }
<add>
<add>func TestCLIL... | 1 |
Go | Go | add support for freebsd in portallocator | 047f7c0793a335e0c69d503e55a5ca48d0af2de1 | <ide><path>libnetwork/portallocator/portallocator_freebsd.go
<add>package portallocator
<add>
<add>import (
<add> "bytes"
<add> "fmt"
<add> "os/exec"
<add>)
<add>
<add>func getDynamicPortRange() (start int, end int, err error) {
<add> portRangeKernelSysctl := []string{"net.inet.ip.portrange.hifirst", "net.ip.portrange.... | 1 |
PHP | PHP | fix datetime fields not being secured | 64e63371b450fc02b53b807c8613a9a252c8c0f5 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function create($model = null, $options = []) {
<ide> if (!empty($append)) {
<ide> $append = $templater->format('hiddenblock', ['content' => $append]);
<ide> }
<del>
<ide> $this->_lastAction = $action;
<ide> if (strpos($action, '://')) {
<ide> $query ... | 2 |
Text | Text | fix broken links in readme | 21349d63f9ba40c4928b62f01a69b4668a7968c5 | <ide><path>README.md
<ide> React Native apps may target iOS 10.0 and Android 4.1 (API 16) or newer. You may
<ide>
<ide> ## 🎉 Building your first React Native app
<ide>
<del>Follow the [Getting Started guide](https://reactnative.dev/docs/getting-started.html). The recommended way to install React Native depends on yo... | 1 |
Javascript | Javascript | fix regex escaping in route matcher | 2bc39bb0b4f81b77597bb52f8572d231cf4f83e2 | <ide><path>src/service/route.js
<ide> angularServiceInject('$route', function($location, $routeParams) {
<ide> /////////////////////////////////////////////////////
<ide>
<ide> function switchRouteMatcher(on, when) {
<del> var regex = '^' + when.replace(/[\.\\\(\)\^\$]/g, "\$1") + '$',
<add> // TODO(i): this... | 2 |
Text | Text | replace weak links with config names | 87b7ca3e0a0ac1db33a17c538f2d63a6884f7b5c | <ide><path>guides/source/active_storage_overview.md
<ide> location.
<ide> <%= image_tag user.avatar.variant(resize_to_limit: [100, 100]) %>
<ide> ```
<ide>
<del>If a variant is requested, Active Storage will automatically apply
<add>If a variant is requested, Active Storage will automatically apply
<ide> transformati... | 1 |
Text | Text | fix typo in autoloading docs | 4f91215ce9bc473827d62d522076abecf17eba2c | <ide><path>guides/source/autoloading_and_reloading_constants.md
<ide> ApiGateway.endpoint = "https://example.com" # DO NOT DO THIS
<ide>
<ide> a reloaded `ApiGateway` would have a `nil` endpoint, because the code above does not run again.
<ide>
<del>You can still set things up during boot, but you need to wrap them i... | 1 |
Java | Java | update scrollview ctor's to take a reactcontext | 2cf2fdbc04bc5309f6942ed464ad61cd06a26ce8 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java
<ide>
<ide> import java.lang.reflect.Field;
<ide>
<del>import android.content.Context;
<ide> import android.graphics.Canvas;
<ide> import android.graphics.Color;
<ide> import android.graphics.Rect;
<ide> import android.widget.O... | 1 |
PHP | PHP | add space between lines | d6545c568dffad637e3465dea0e6745025531a45 | <ide><path>src/Illuminate/Cache/Section.php
<ide> public function sectionItemKey($key)
<ide> protected function reset()
<ide> {
<ide> $this->store->forever($this->sectionKey(), $id = uniqid());
<add>
<ide> return $id;
<ide> }
<ide> | 1 |
Javascript | Javascript | add some tests for ngrequired | 2230fb4c1098b8c034cd43bdaa49f8f5747759c8 | <ide><path>test/ng/directive/inputSpec.js
<ide> describe('input', function() {
<ide> });
<ide> });
<ide>
<add> describe('ngRequired', function() {
<add>
<add> describe('when the ngRequired expression initially evaluates to true', function() {
<add>
<add> it('should be valid even if value is 0'... | 1 |
Go | Go | add option processing to network.delete() | 04bfc6149797487ab4da05a5df1c278e6e4a6496 | <ide><path>libnetwork/network.go
<ide> type Network interface {
<ide> CreateEndpoint(name string, options ...EndpointOption) (Endpoint, error)
<ide>
<ide> // Delete the network.
<del> Delete() error
<add> Delete(options ...NetworkDeleteOption) error
<ide>
<ide> // Endpoints returns the list of Endpoint(s) in this ... | 2 |
PHP | PHP | fix stupid mistake | c076291682f31e14a17c93028cd719149badb83c | <ide><path>src/Network/Http/FormData/Part.php
<ide> public function disposition($disposition = null)
<ide> public function contentId($id = null)
<ide> {
<ide> if ($id === null) {
<del> return $this->_contentId = $id;
<add> return $this->_contentId;
<ide> }
<ide> $th... | 1 |
Ruby | Ruby | add test for slashes in versions | a8522c6db6cb5b78f132fa782d9830cbdc32d4d0 | <ide><path>Library/Homebrew/test/cask/audit_spec.rb
<ide> def tmp_cask(name, text)
<ide> expect(audit.cask.url.cookies).to eq "foo" => "bar"
<ide> end
<ide> end
<add>
<add> context "when the version contains a slash" do
<add> let(:cask_token) { "foo" }
<add> let(:cask) do
<add> tmp... | 1 |
Javascript | Javascript | remove console warnings from scrollview methods | b119a00c45db3d1c59f8fad93c10f2194eafcf12 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> class ScrollView extends React.Component<Props, State> {
<ide> * to the underlying scroll responder's methods.
<ide> */
<ide> getScrollResponder: () => ScrollResponderType = () => {
<del> if (__DEV__) {
<del> console.warn(
<del> '`get... | 1 |
Ruby | Ruby | use drop and avoid a range object | 7db93131ed01aa3b64774b81f6c6b78a6012a75a | <ide><path>activerecord/lib/active_record/associations/through_association.rb
<ide> module ThroughAssociation #:nodoc:
<ide> # 2. To get the type conditions for any STI models in the chain
<ide> def target_scope
<ide> scope = super
<del> chain[1..-1].each do |reflection|
<add> ... | 1 |
Text | Text | add @jasnell and @sam-github to release team | b0962c38e3b7626288421df818d302cde7dc0047 | <ide><path>README.md
<ide> Releases of Node.js and io.js will be signed with one of the following GPG keys:
<ide>
<ide> * **Chris Dickinson** <christopher.s.dickinson@gmail.com>: `9554F04D7259F04124DE6B476D5A82AC7E37093B`
<ide> * **Colin Ihrig** <cjihrig@gmail.com> `94AE36675C464D64BAFA68DD7434390BDBE9B9C5... | 1 |
Python | Python | fix typo _add_worker -> add_worker | 999f68fcafad7ad040ac999109f9211d7ced6b63 | <ide><path>celery/pool.py
<ide> def add_worker(self):
<ide>
<ide> def grow(self, size=1):
<ide> """Add ``size`` new workers to the pool."""
<del> map(self._add_worker, range(size))
<add> map(self.add_worker, range(size))
<ide>
<ide> def is_dead(self, process):
<ide> # First try t... | 1 |
PHP | PHP | fix flush bug | ab61c759a4b1e4513af31b899263d7efdb23a08f | <ide><path>src/Illuminate/View/Factory.php
<ide> public function yieldContent($section, $default = '')
<ide> */
<ide> public function flushSections()
<ide> {
<add> $this->renderCount = 0;
<add>
<ide> $this->sections = [];
<ide>
<ide> $this->sectionStack = []; | 1 |
Python | Python | assign values to memory before using | 948354a12e35712008a2a52fd5efc581d36595dc | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_unicode_string_comparison(self,level=rlevel):
<ide> def check_tostring_FORTRANORDER_discontiguous(self,level=rlevel):
<ide> """Fix in r2836"""
<ide> # Create discontiguous Fortran-ordered array
<del> x = N.empty((3,3),order='F')[:... | 1 |
Javascript | Javascript | fix style errors | 8eebe7435d1f2edbd252686d34617773cbf3954c | <ide><path>packages/ember-htmlbars/lib/helpers/bind-attr-class.js
<ide> @submodule ember-htmlbars
<ide> */
<ide>
<add>import { get } from 'ember-metal/property_get';
<ide> import { isArray } from "ember-metal/utils";
<ide>
<ide> export default function bindAttrClassHelper(params) {
<ide><path>packages/ember-htmlbars/... | 7 |
Javascript | Javascript | update location documentation | e945b9ebde480f642017e4ecea6c545014f68741 | <ide><path>packages/ember-application/lib/system/location.js
<ide> var get = Ember.get, set = Ember.set;
<ide> getURL: returns the current URL
<ide> setURL(path): sets the current URL
<ide> onUpdateURL(callback): triggers the callback when the URL changes
<add> formatURL(url): formats `url` to be placed into `hr... | 1 |
Ruby | Ruby | fix bad pathname indentation | b549ca837fce9fc6aa231c1424f2c6a2bf6875d3 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def version
<ide> /_((\d+\.)+\d+[abc]?)[.]orig$/.match stem
<ide> return $1 if $1
<ide>
<del> # brew bottle style e.g. qt-4.7.3-bottle.tar.gz
<add> # brew bottle style e.g. qt-4.7.3-bottle.tar.gz
<ide> /-((\d+\.)*\d+)-bottle$/.match stem
<del> return ... | 1 |
Ruby | Ruby | remove checks for validate constraints support | 6c7d85edae5a09300bd9f429e233985a9385dc91 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> def create_schema_dumper(options) # :nodoc:
<ide> #
<ide> # validate_constraint :accounts, :constraint_name
<ide> def validate_constraint(table_name, constraint_name)
<del> return unles... | 1 |
Mixed | Ruby | generate consistent names for foreign keys | b8e1f202676b4788c56241b124c401beff9f4014 | <ide><path>activerecord/CHANGELOG.md
<add>* Foreign keys added by migrations were given random, generated names. This
<add> meant a different `structure.sql` would be generated every time a developer
<add> ran migrations on their machine.
<add>
<add> The generated part of foreign key names is now a hash of t... | 3 |
Javascript | Javascript | add pimmr to showcase | d131fa0962ed7c241fb1b2e509225b89cca6f6b9 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/okanagan-news-reader-for-viewing/id1049147148?mt=8',
<ide> author: 'Levi Cabral',
<ide> },
<add> {
<add> name: 'Pimmr',
<add> icon: 'http://a2.mzstatic.com/eu/r30/Purple69/v4/99/da/0e/99da0ee... | 1 |
Python | Python | prepare new release | 54386efa549f850dff13f79fc3af67799a4e5d4f | <ide><path>keras/__init__.py
<ide> from .models import Model
<ide> from .models import Sequential
<ide>
<del>__version__ = '2.2.1'
<add>__version__ = '2.2.2'
<ide><path>setup.py
<ide> '''
<ide>
<ide> setup(name='Keras',
<del> version='2.2.1',
<add> version='2.2.2',
<ide> description='Deep Learning for... | 2 |
Python | Python | add support for character features to tok2vec | e1a83d15ed53a0bc9779182bdf1732cd6f722918 | <ide><path>spacy/_ml.py
<ide> from thinc.api import with_square_sequences
<ide> from thinc.linear.linear import LinearModel
<ide> from thinc.neural.ops import NumpyOps, CupyOps
<del>from thinc.neural.util import get_array_module
<add>from thinc.neural.util import get_array_module, copy_array
<ide> from thinc.neural.opt... | 1 |
Javascript | Javascript | return null when attribute does not exist | aaeed53e9f1e299975cb6f697c8038ec3a83fa4d | <ide><path>src/attributes/attr.js
<ide> jQuery.extend({
<ide> return ret;
<ide>
<ide> } else {
<del> ret = jQuery.find.attr( elem, name );
<del>
<del> // Non-existent attributes return null, we normalize to undefined
<del> return ret == null ?
<del> undefined :
<del> ret;
<add> return jQuery.find.at... | 2 |
Python | Python | fix lr decay in tf trainer | 7cb52f53ef65317d5227f5b0ddaa09cbd0b9c0c3 | <ide><path>src/transformers/trainer_tf.py
<ide> import logging
<ide> import math
<ide> import os
<add>import random
<ide> from typing import Callable, Dict, Optional, Tuple
<ide>
<ide> import numpy as np
<ide> logger = logging.getLogger(__name__)
<ide>
<ide>
<add>def set_seed(seed: int):
<add> random.seed(seed)
<... | 1 |
PHP | PHP | fix incorrect help | c5f0bcf23ded2cc61a4fa654b23d3c0d05cf97f0 | <ide><path>src/Command/CacheClearCommand.php
<ide> public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar
<ide> ->addArgument('engine', [
<ide> 'help' => 'The cache engine to clear.' .
<ide> 'For example, `cake cache clear _cake_model_` will clea... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.