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
match the ordering of the gitrepository spec
e867b68eab9b691f91cecb401f320cf811458c1d
<ide><path>spec/git-repository-async-spec.js <ide> describe('GitRepositoryAsync', () => { <ide> }) <ide> }) <ide> <del> describe('.getPathStatus(path)', () => { <del> let filePath <del> <del> beforeEach(() => { <del> const workingDirectory = copyRepository() <del> repo = GitRepositoryAsync.open(...
1
Ruby
Ruby
add doctor check for xattr
caf7df5840d9507ff99fcf8385ffa1f42ada6e2d
<ide><path>Library/Homebrew/cask/cmd/doctor.rb <ide> def summary_header <ide> <ide> def run <ide> check_software_versions <add> check_xattr <ide> check_quarantine_support <ide> check_install_location <ide> check_staging_location <ide> def check_environment_variables <ide> ...
1
Python
Python
ensure order of project urls
5c8110de25f08bf20e9fda6611403dc5c59ec849
<ide><path>setup.py <ide> # -*- coding: utf-8 -*- <ide> import io <ide> import re <add>from collections import OrderedDict <add> <ide> from setuptools import setup <ide> <ide> with io.open('README.rst', 'rt', encoding='utf8') as f: <ide> name='Flask', <ide> version=version, <ide> url='https://www.palletspr...
1
Ruby
Ruby
add strict mode, argument
24f183dd12064b9dfd729fda58dee0938fa078f6
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit <ide> ARGV.formulae <ide> end <ide> <add> strict = ARGV.include? "--strict" <add> <ide> ff.each do |f| <del> fa = FormulaAuditor.new f <add> fa = FormulaAuditor.new(f, :strict => strict) <ide> fa.audit <ide> <ide> unless f...
1
Text
Text
clarify section titles [ci skip]
12c7f8042d5945450d05164a3f333b9a5bea74e6
<ide><path>guides/source/routing.md <ide> NOTE: Because the router uses the HTTP verb and URL to match inbound requests, f <ide> <ide> NOTE: Rails routes are matched in the order they are specified, so if you have a `resources :photos` above a `get 'photos/poll'` the `show` action's route for the `resources` line will...
1
Ruby
Ruby
remove `setuptools` audit
bc67c0552876407980c3467f402a8239c90cc3f3
<ide><path>Library/Homebrew/rubocops/text.rb <ide> def audit_formula(node, _class_node, _parent_class_node, body_node) <ide> problem "Formulae in homebrew/core should use OpenBLAS as the default serial linear algebra library." <ide> end <ide> <del> if method_called_ever?(body_node, :virt...
2
Ruby
Ruby
add ability to checkout a branch or tag
ef02031d7cd1ef048c53cf940b208a6070451b8d
<ide><path>Library/Homebrew/download_strategy.rb <ide> # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <ide> # <ide> class AbstractDownloadStrategy <del> def initialize url, name, version <add> def initialize url, name, version, specs <ide> @url=url <add> case specs <add> when Hash <add...
2
PHP
PHP
fix non-existing property
ed70b724bd1d10230465bf5c8ae5453f5be40949
<ide><path>types/Database/Eloquent/Collection.php <ide> assertType('User', $user); <ide> assertType('int', $int); <ide> <del> return $user->id; <add> return $user->primaryKey; <ide> })); <ide> assertType('Illuminate\Database\Eloquent\Collection<int, User>', $collection->unique('string')); <ide> <ide><pa...
3
Python
Python
add registry function for reading jsonl
43fc7a316d415a0e5ef9fecc02112502928c9fd3
<ide><path>spacy/training/corpus.py <ide> def create_jsonl_reader( <ide> return JsonlTexts(path, min_length=min_length, max_length=max_length, limit=limit) <ide> <ide> <add>@util.registry.readers("srsly.read_json.v1") <add>def _read_json(loc: Path): <add> return srsly.read_json(loc) <add> <add> <ide> def walk_...
1
Ruby
Ruby
convert gpg2requirement test to spec
9fc14e663bc52b5e32a4c2d07ed6114b99fcbf54
<ide><path>Library/Homebrew/test/gpg2_requirement_spec.rb <add>require "requirements/gpg2_requirement" <add>require "fileutils" <add> <add>describe GPG2Requirement do <add> let(:dir) { @dir = Pathname.new(Dir.mktmpdir) } <add> <add> after(:each) do <add> FileUtils.rm_rf dir unless @dir.nil? <add> end <add> <add> ...
2
PHP
PHP
keep name as well
71fb17e0923b11f5c7f4007c22ac574ffd19e3ca
<ide><path>lib/Cake/Error/ExceptionRenderer.php <ide> protected function _cakeError(CakeException $error) { <ide> $this->controller->response->statusCode($code); <ide> $this->controller->set(array( <ide> 'code' => $code, <del> 'url' => h($url), <add> 'mame' => h($error->getMessage()), <ide> 'message' => h...
1
Text
Text
fix code indentation in serializers.md
b3aa512d35b7f3e432bb41bf9de9ac7db7a1ed4c
<ide><path>docs/api-guide/serializers.md <ide> You may wish to specify multiple fields as write-only. Instead of adding each f <ide> fields = ('email', 'username', 'password') <ide> write_only_fields = ('password',) # Note: Password field is write-only <ide> <del> def restore_object(self, ...
1
Python
Python
add missing abstract method
12ea236fc8c1fbc38a848f369e613f0625ccf956
<ide><path>keras/preprocessing/image.py <ide> def fit(self, x, <ide> <ide> <ide> class Iterator(Sequence): <del> """Abstract base class for image data iterators. <add> """Base class for image data iterators. <add> <add> Every `Iterator` must implement the `_get_batches_of_transformed_samples` <add> method...
1
Javascript
Javascript
simplify event dispatching
216026418cf47787f5393e4db734281ae9b6c5c8
<ide><path>src/renderers/dom/client/__tests__/ReactBrowserEventEmitter-test.js <ide> describe('ReactBrowserEventEmitter', function() { <ide> expect(idCallOrder[0]).toBe(getID(CHILD)); <ide> }); <ide> <del> it('should stopPropagation if false is returned, but warn', function() { <add> it('should not stopPropaga...
4
Mixed
Javascript
bind keystroke `ctrl`+`6` to redo
a0668572c7f66c21946074625648fec1a42c060d
<ide><path>doc/api/readline.md <ide> const { createInterface } = require('readline'); <ide> <tr> <ide> <td><kbd>Ctrl</kbd>+<kbd>-</kbd></td> <ide> <td>Undo previous change</td> <del> <td>Any keystroke emits key code <code>0x1F</code> would do this action.</td> <add> <td>Any keystroke that emits key code...
3
Text
Text
fix broken link on animations page
7ee8da9c7f5b6d48115c5b4afa30344ce9399e15
<ide><path>docs/configuration/animations.md <ide> var chart = new Chart(ctx, { <ide> }); <ide> ``` <ide> <del>Another example usage of these callbacks can be found on [Github](https://github.com/chartjs/Chart.js/blob/master/samples/animation/progress-bar.html): this sample displays a progress bar showing how far along...
1
Text
Text
address more comments
cc620dbecb25efbc2e664c9dde9fc5f02b78a2fa
<ide><path>docs/Maintainer-Guidelines.md <ide> definitely not a beginner’s guide. <ide> <ide> Maybe you were looking for the [Formula Cookbook](Formula-Cookbook.md)? <ide> <del>This document is a work in progress. If you wish to change or discuss any of the below: open a PR to suggest a change. <add>This document is ...
1
Ruby
Ruby
add test for belongs_to? and group initializers
e9b02ae27a837d7ba02681e225590f55ce02af8c
<ide><path>railties/test/initializable_test.rb <ide> class Parent <ide> class Instance <ide> include Rails::Initializable <ide> <del> initializer :one do <add> initializer :one, :group => :assets do <ide> $arr << 1 <ide> end <ide> <ide> initializer :two do <ide> $arr << 2 <ide> end...
1
Python
Python
update language code in usage example in comment
42b241ccd02961f215b42733bc55f6c4010b0d2c
<ide><path>spacy/lang/hi/examples.py <ide> """ <ide> Example sentences to test spaCy and its language models. <ide> <del>>>> from spacy.lang.en.examples import sentences <add>>>> from spacy.lang.hi.examples import sentences <ide> >>> docs = nlp.pipe(sentences) <ide> """ <ide>
1
Text
Text
add link to arxiv paper
f4e95139fa70f1ea5f090a9b1f12e3bf47e9ac53
<ide><path>research/lm_commonsense/README.md <ide> # A Simple Method for Commonsense Reasoning <ide> <del>This repository contains code to reproduce results from [*A Simple Method for Commonsense Reasoning*](TBD). <add>This repository contains code to reproduce results from [*A Simple Method for Commonsense Reasoning*...
1
PHP
PHP
add day of week orm function
4ee00d992320799a1d0d7e4576d14896fed2acaf
<ide><path>src/Database/Dialect/PostgresDialectTrait.php <ide> protected function _transformFunctionExpression(FunctionExpression $expression) <ide> ->name('') <ide> ->type(' + INTERVAL') <ide> ->iterateParts(function ($p, $key) { <del> ...
5
Ruby
Ruby
convert options test to spec
7b2d8ed4b3a1a71da59b1aa1859e844c37ba24c2
<add><path>Library/Homebrew/cask/spec/cask/cli/options_spec.rb <del><path>Library/Homebrew/cask/test/cask/cli/options_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::CLI do <ide> it "supports setting the appdir" do <ide> Hbc::CLI.process_options %w[help --appdir=/some/path...
2
Python
Python
rewrite backfilljob logic for clarity
c1eb83adbf9d4371dab7dd545c593cc5a853fb8b
<ide><path>airflow/jobs.py <ide> def import_errors(self, dagbag): <ide> filename=filename, stacktrace=stacktrace)) <ide> session.commit() <ide> <del> <ide> def schedule_dag(self, dag): <ide> """ <ide> This method checks whether a new DagRun needs to be created <ide> def proc...
1
Javascript
Javascript
use mustcall in ephemeralkeyinfo test
a06f67f4543ec8d0c2c0c38fcb731ffca8bf507a
<ide><path>test/parallel/test-tls-client-getephemeralkeyinfo.js <ide> function test(size, type, name, cipher) { <ide> const client = tls.connect({ <ide> port: server.address().port, <ide> rejectUnauthorized: false <del> }, function() { <add> }, common.mustCall(function() { <ide> const ekeyin...
1
PHP
PHP
add insert/delete/update to orm\query
1cd5f8dac2f98c0622a5aff797576eee1d66c181
<ide><path>Cake/ORM/Query.php <ide> public function _dirty() { <ide> parent::_dirty(); <ide> } <ide> <add>/** <add> * Create an update query. <add> * <add> * This changes the query type to be 'update'. <add> * Can be combined with set() and where() methods to create update queries. <add> * <add> * @param string $ta...
2
Javascript
Javascript
remember hash position correctly
4ea5b9f771fdb7e3d707f62f9dde0b8b23edda95
<ide><path>web/viewer.js <ide> var PDFView = { <ide> this.error('An error occurred while reading the PDF.', e); <ide> } <ide> var pagesCount = pdf.numPages; <add> var id = pdf.fingerprint; <add> var storedHash = null; <ide> document.getElementById('numPages').innerHTML = pagesCount; <ide> do...
1
Text
Text
clarify rl.question callback args
c300ba22128ce8e675650adcd1f6b869dc1b5126
<ide><path>doc/api/readline.md <ide> rl.question('What is your favorite food?', (answer) => { <ide> }); <ide> ``` <ide> <add>*Note*: The `callback` function passed to `rl.question()` does not follow the <add>typical pattern of accepting an `Error` object or `null` as the first argument. <add>The `callback` is called w...
1
Javascript
Javascript
remove superfluous fromcharcode function
ef76afdf8096bca3eb4e3e3180a7f34de7f193f9
<ide><path>src/Angular.js <ide> var uppercase = function(string){return isString(string) ? string.toUpperCase() <ide> <ide> var manualLowercase = function(s) { <ide> return isString(s) <del> ? s.replace(/[A-Z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) | 32);}) <add> ? s.replace(/[A-Z]/g, functi...
1
Python
Python
add example to corrcoef function
9fd8b2db731d79fabdc40de3a7111381fb4aae5a
<ide><path>numpy/lib/function_base.py <ide> def corrcoef(x, y=None, rowvar=True, bias=np._NoValue, ddof=np._NoValue): <ide> for backwards compatibility with previous versions of this function. These <ide> arguments had no effect on the return values of the function and can be <ide> safely ignored in this a...
1
Javascript
Javascript
add tests for no root compilers in multi-compiler
e6ec99e1e78cef7e9df5b2f8856adfb47f729d80
<ide><path>test/MultiCompiler.test.js <ide> const createCompiler = function(overrides) { <ide> }; <ide> <ide> const setupTwoCompilerEnvironment = function(env, compiler1Values, compiler2Values) { <del> const compilerEnvironment1 = new CompilerEnvironment(); <del> const compilerEnvironment2 = new CompilerEnvironment();...
1
Text
Text
add v2.3.2 to changelog
5641c3089180bdd1d4fa54e9dd2d3ac285f088e4
<ide><path>CHANGELOG.md <ide> - [#12664](https://github.com/emberjs/ember.js/pull/12664) Include NaN as a falsey value in the `with` helper's docstring <ide> - [#12698](https://github.com/emberjs/ember.js/pull/12698) convert all this._super.apply(this, arguments) to this._super(...arguments) <ide> <del>### 2.3.1 (Febr...
1
Text
Text
improve process.emitwarning() example
71d4a7474d234bba9461e28c95841bbd090cc642
<ide><path>doc/api/process.md <ide> so, it is recommended to place the `emitWarning()` behind a simple boolean <ide> flag as illustrated in the example below: <ide> <ide> ```js <del>var warned = false; <ide> function emitMyWarning() { <del> if (!warned) { <add> if (!emitMyWarning.warned) { <add> emitMyWarning.war...
1
Javascript
Javascript
add crypto check to test-benchmark-tls
e9ba0cfd46d75d21e9e2359e40710c3ee46a296a
<ide><path>test/sequential/test-benchmark-tls.js <ide> <ide> const common = require('../common'); <ide> <add>if (!common.hasCrypto) <add> common.skip('missing crypto'); <add> <ide> if (!common.enoughTestMem) <ide> common.skip('Insufficient memory for TLS benchmark test'); <ide>
1
Javascript
Javascript
propagate sass parser errors from worker
73aa6fcca62edeaf99a48a9d39e1a4033410e8f3
<ide><path>client/src/client/workers/sass-compile.js <ide> import Sass from 'sass.js'; <ide> onmessage = e => { <ide> const data = e.data; <ide> Sass.compile(data, result => { <del> self.postMessage(result.text); <add> if (result.status === 0) { <add> self.postMessage(result.text); <add> } else { <add...
1
Text
Text
add timer usage for es6
728922253503f7936066e3bf1d20c54e0b40a5f6
<ide><path>docs/Timers.md <ide> var Component = React.createClass({ <ide> }); <ide> ``` <ide> <del>We strongly discourage using the global `setTimeout(...)` and recommend instead that you use `this.setTimeout(...)` provided by react-timer-mixin. This will eliminate a lot of hard work tracking down bugs, such as crashe...
1
Javascript
Javascript
fix lint errors
1bedeeb41d0ca8eb6e4d116fb295121b087ed4e1
<ide><path>benchmark/arrays/var-int.js <ide> 'use strict'; <ide> var common = require('../common.js'); <ide> var bench = common.createBenchmark(main, { <del> type: 'Array Buffer Int8Array Uint8Array Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split(' '), <add> type: ['Array', 'Buffer', 'I...
16
Javascript
Javascript
remove duplicate bindactioncreators test
2f196ae67f05d738f6506e950f917dd512412ab5
<ide><path>test/bindActionCreators.spec.js <del>import expect from 'expect'; <del>import { bindActionCreators, createRedux } from '../src'; <del>import * as helpers from './_helpers'; <del> <del>const { todoActions, todoStore } = helpers; <del> <del>describe('Utils', () => { <del> describe('bindActionCreators', () => ...
2
Python
Python
fix failing doctests
b570fbbc488b4b9480fdf0f5df9fe7369af65d7c
<ide><path>numpy/core/fromnumeric.py <ide> def prod(a, axis=None, dtype=None, out=None): <ide> <ide> >>> x = np.array([1, 2, 3], dtype=np.uint8) <ide> >>> np.prod(x).dtype == np.uint <add> True <ide> <ide> If `x` is of a signed integer type, then the output type <ide> is the default platform intege...
2
Python
Python
implement deutsch-jozsa algorithm in qiskit
beb2c35dd864f093c49b43934064c5da7155859c
<ide><path>quantum/deutsch_jozsa.py <add>#!/usr/bin/env python3 <add>""" <add>Deutsch-Josza Algorithm is one of the first examples of a quantum <add>algorithm that is exponentially faster than any possible deterministic <add>classical algorithm <add> <add>Premise: <add>We are given a hidden Boolean function f, <add>wh...
1
Python
Python
fix t5 beam search using parallelize
bd3b599c12cfcf5ef517c5ffe526afbdbaa92539
<ide><path>src/transformers/models/t5/modeling_t5.py <ide> def _reorder_cache(self, past, beam_idx): <ide> for layer_past_state in layer_past_states: <ide> # need to set correct `past` for each of the four key / value states <ide> reordered_layer_past_states = reordered_layer...
1
Text
Text
add content into activity section
eb150cedbc74e6c6585545b32a1d398796803caf
<ide><path>guide/english/android-development/core-components/index.md <ide> An activity facilitates the following key interactions between system and app: <ide> - Keeping track of what the user currently cares about (what is on screen) to ensure that the system keeps running the process that is hosting the activity. <i...
1
Javascript
Javascript
add flow libdefs for hermesinternaltype
ff4b33672a6a27d2ed68ae6602e9d29d9b7c3eb1
<ide><path>Libraries/Core/polyfillPromise.js <ide> if (global?.HermesInternal?.hasPromise?.()) { <ide> if (typeof HermesPromise !== 'function') { <ide> console.error('HermesPromise does not exist'); <ide> } <del> global.HermesInternal.enablePromiseRejectionTracker( <add> global.HermesInternal?.enabl...
4
Javascript
Javascript
remove unnecessary event handlers
973b8e0b151b2a54ef85001030374db6fce3e3cf
<ide><path>lib/internal/http2/compat.js <ide> function onStreamDrain() { <ide> response.emit('drain'); <ide> } <ide> <del>// TODO Http2Stream does not emit 'close' <del>function onStreamClosedRequest() { <del> const request = this[kRequest]; <del> if (request !== undefined) <del> request.push(null); <del>} <d...
1
Python
Python
use normalize_axis_index in cross
09d4d35bb979dd0d5d0781946f59f362765eca66
<ide><path>numpy/core/numeric.py <ide> def cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None): <ide> a = asarray(a) <ide> b = asarray(b) <ide> # Check axisa and axisb are within bounds <del> axis_msg = "'axis{0}' out of bounds" <del> if axisa < -a.ndim or axisa >= a.ndim: <del> raise ValueErr...
2
PHP
PHP
replace function is_integer (alias) by is_int
9b6b258fede89ec09275234270fe6ee0e2d61af1
<ide><path>cake/libs/controller/components/cookie.php <ide> function __expire($expires = null) { <ide> return $this->__expires; <ide> } <ide> $this->__reset = $this->__expires; <del> if (is_integer($expires) || is_numeric($expires)) { <add> if (is_int($expires) || is_numeric($expires)) { <ide> return $this-...
2
Ruby
Ruby
add annotations to image index
c193cb984847f4e5583d44396016cc66075e34df
<ide><path>Library/Homebrew/dev-cmd/pr-upload.rb <ide> def pr_upload <ide> Upload bottles described by these JSON files to #{service}: <ide> #{json_files.join("\n ")} <ide> EOS <del> return <add> return unless github_packages?(bottles_hash) <ide> end <ide> <ide> check_bottled...
2
Text
Text
add the text "intermediary"
43e6147f7175d2307095699f3679edad0c528eda
<ide><path>guide/english/blockchain/cryptocurrency/index.md <ide> title: Cryptocurrency <ide> <ide> Cryptocurrency is a subset of digital currency, which acts as a medium of exchange amongst two parties. It is known as crypto-currency because of the utilization of cryptography to strictly assure the security of transa...
1
Javascript
Javascript
hold listener during text composition
a4e6d962d78b26f5112d48c4f88c1e6234d0cae7
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> <ide> <ide> function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { <add> // In composition mode, users are still inputing intermediate text buffer, <add> // hold the listener until composition is done. <add> // More about composit...
2
Javascript
Javascript
handle classname properly on svg nodes
37f61c479e3d79eebff6049b0e980ff6d82b4ec2
<ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js <ide> "use strict"; <ide> <ide> var DOMProperty = require('DOMProperty'); <add>var ExecutionEnvironment = require('ExecutionEnvironment'); <ide> <ide> var MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE; <ide> var MUST_USE_PROPERTY = DOMProperty.inj...
1
Ruby
Ruby
require arel master in the benchmark template
0267019a55540bcc13952cb720c7869a76168014
<ide><path>guides/bug_report_templates/benchmark.rb <ide> gemfile(true) do <ide> source "https://rubygems.org" <ide> gem "rails", github: "rails/rails" <add> gem "arel", github: "rails/arel" <ide> gem "benchmark-ips" <ide> end <ide>
1
Javascript
Javascript
restore correct logic
a5b456edff358092fdcf4ac6460ade3bec183352
<ide><path>src/data.js <ide> Data.prototype = { <ide> hasData: function( owner ) { <ide> var index = Data.index( this.owners, owner ); <ide> <del> return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] ); <add> return index !== -1 && !jQuery.isEmptyObject( this.cache[ index ] ); <ide> }, <ide> discard...
1
Go
Go
remove unneeded time.duration()
4a3b36f44309ff8e650be2cff74f3ec436353298
<ide><path>registry/registry.go <ide> func pingRegistryEndpoint(endpoint string) (RegistryInfo, error) { <ide> } <ide> httpDial := func(proto string, addr string) (net.Conn, error) { <ide> // Set the connect timeout to 5 seconds <del> conn, err := net.DialTimeout(proto, addr, time.Duration(5)*time.Second) <add> c...
1
Javascript
Javascript
simplify the readonly properties of icu
83a5eef6f2f7a7dc12f408ac23869392c11f2454
<ide><path>lib/internal/bootstrap_node.js <ide> // of possible types. <ide> const versionTypes = icu.getVersion().split(','); <ide> <del> function makeGetter(name) { <del> return () => { <del> // With an argument, getVersion(type) returns <del> // the actual version string. <del> c...
2
Ruby
Ruby
allow access to mem_cache_store's stats hash
09517e3aeadba204d5b0b8c45a03e8084c4fc0b6
<ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb <ide> def delete_matched(matcher, options = nil) <ide> <ide> def clear <ide> @data.flush_all <add> end <add> <add> def stats <add> @data.stats <ide> end <ide> <ide> private
1
Javascript
Javascript
add shortcut for goto page
807e4fef342ad7eeb0bc30ce120e0de1c97545a4
<ide><path>web/viewer.js <ide> window.addEventListener('keydown', function keydown(evt) { <ide> SecondaryToolbar.presentationModeClick(); <ide> handled = true; <ide> break; <add> case 71: // g <add> // focuses input#pageNumber field <add> document.getElementById('pageNumber')....
1
Text
Text
revise capitalization in title
5682f4bbf0543158a435ae08b630123a2919c953
<ide><path>guides/source/classic_to_zeitwerk_howto.md <ide> When upgrading to Rails 6.x, it is highly encouraged to switch to `zeitwerk` mod <ide> <ide> Rails 7 ends the transition period and does not include `classic` mode. <ide> <del>I am scared <add>I am Scared <ide> ----------- <ide> <ide> Don't :).
1
Javascript
Javascript
allow zooming while rotating
a58012bf39cfb602007d868505e5b271164379c9
<ide><path>examples/js/controls/OrbitControls.js <ide> THREE.OrbitControls = function ( object, domElement ) { <ide> <ide> function onMouseWheel( event ) { <ide> <del> if ( scope.enabled === false || scope.enableZoom === false || state !== STATE.NONE ) return; <add> if ( scope.enabled === false || scope.enableZoom...
1
Python
Python
fix typo in cpp define
52648a4a8064a29fb483cd54995bcbfdc173a6db
<ide><path>numpy/core/setup.py <ide> def generate_config_h(ext, build_dir): <ide> #endif <ide> <ide> #ifdef HAVE_EXPF <del>#define HAVE_FUNCS_FUNCS <add>#define HAVE_FLOAT_FUNCS <ide> #endif <ide> """) <ide> target_f.close()
1
Text
Text
add deprecated badge to legacy url methods
181ba95819565f8f76acffe538d3f06a50499d05
<ide><path>doc/api/url.md <ide> pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) <ide> ``` <ide> <ide> ## Legacy URL API <del> <del>> Stability: 0 - Deprecated: Use the WHATWG URL API instead. <add><!-- YAML <add>deprecated: v11.0.0 <add>--> <ide> <ide> ### Legacy `urlObject` <ide> <!--...
1
Mixed
Ruby
allow aliased attributes in update
72e63c71bb3f73870e280964def25b7578818b1b
<ide><path>activerecord/CHANGELOG.md <add>* Allow aliased attributes to be used in `#update_columns` and `#update`. <add> <add> *Gannon McGibbon* <add> <ide> * Allow spaces in postgres table names. <ide> <ide> Fixes issue where "user post" is misinterpreted as "\"user\".\"post\"" when quoting table names wi...
3
PHP
PHP
add resource missing option
c887875c23f393e3443b1fd2a8dd0c748e6f13ea
<ide><path>src/Illuminate/Routing/ResourceRegistrar.php <ide> class ResourceRegistrar <ide> */ <ide> protected $resourceDefaults = ['index', 'create', 'store', 'show', 'edit', 'update', 'destroy']; <ide> <del> /** <del> * Actions that use model binding. <del> * <del> * @var string[] <del> *...
1
Python
Python
add a test for weakref checking when resizing
b2b32aaa2a8984ab52dfb2161e4bb9ed83c4aaff
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_empty_view(self): <ide> x_view.resize((0, 10)) <ide> x_view.resize((0, 100)) <ide> <add> def test_check_weakref(self): <add> x = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]) <add> xref = weakref.ref(x) <add> assert_rai...
1
Ruby
Ruby
build assets automatically if necessary
a942e3128042b8796348909a0a23527340e1d2cb
<ide><path>railties/test/isolation/abstract_unit.rb <ide> class ActiveSupport::TestCase <ide> f.puts "require 'rails/all'" <ide> end <ide> <add> unless File.exist?("#{RAILS_FRAMEWORK_ROOT}/actionview/lib/assets/compiled/rails-ujs.js") <add> Dir.chdir("#{RAILS_FRAMEWORK_ROOT}/actionview") { `yarn build` } <ad...
1
Mixed
Python
update documentation for cifar datasets
39a69b3f528a1a83bb1767135d6e57ba81e6e3be
<ide><path>docs/sources/datasets.md <ide> <ide> `keras.datasets.cifar10` <ide> <del>Dataset of 50,000 32x32 color images, labeled over 10 categories. <add>Dataset of 50,000 32x32 color training images, labeled over 10 categories, and 10,000 test images. <ide> <ide> ### Usage: <ide> <ide> ```python <del>(X_train, y_...
2
Text
Text
add note about png files to image static resources
dee4ea8ea348937340fc5d5f005c2cfc042d3452
<ide><path>docs/Image.md <ide> When your entire codebase respects this convention, you're able to do interestin <ide> <ide> *This process is currently being improved, a much better workflow will be available shortly.* <ide> <add>> **NOTE**: PNG images are required when loading with `require('image!my-icon')` <add>> <...
1
PHP
PHP
remove `numeric` from `unsigned` config
00fb663f9045eac6c183ed885f50c0ae19c0744a
<ide><path>lib/Cake/Model/Datasource/Database/Mysql.php <ide> class Mysql extends DboSource { <ide> 'value' => 'UNSIGNED', 'quote' => false, 'join' => ' ', 'column' => false, 'position' => 'beforeDefault', <ide> 'noVal' => true, <ide> 'options' => array(true), <del> 'types' => array('integer', 'float', 'bigi...
2
Javascript
Javascript
add getcontext/filetimestamps to watcher
74a8c45ea10ebfc692dca4b66f490969f2062abe
<ide><path>lib/WatchIgnorePlugin.js <ide> class IgnoringWatchFileSystem { <ide> const ignoredFiles = files.filter(ignored); <ide> const ignoredDirs = dirs.filter(ignored); <ide> <del> this.wfs.watch(files.filter(notIgnored), dirs.filter(notIgnored), missing, startTime, options, (err, filesModified, dirsModified, ...
3
Python
Python
remove incubator from the link
1d46a20c492729bf15d86de1585b137166ba4258
<ide><path>setup.py <ide> libcloud.utils.SHOW_DEPRECATION_WARNING = False <ide> <ide> HTML_VIEWSOURCE_BASE = 'https://svn.apache.org/viewvc/libcloud/trunk' <del>PROJECT_BASE_DIR = 'http://incubator.apache.org/libcloud/' <add>PROJECT_BASE_DIR = 'http://libcloud.apache.org' <ide> TEST_PATHS = [ 'test', 'test/compute', '...
1
Ruby
Ruby
remove useless check of adapter
e8b809070d4a669410a621db70b184d97e29fa3e
<ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb <ide> def sqlite3_connection(config) # :nodoc: <ide> config[:database] = File.expand_path(config[:database], Rails.root) <ide> end <ide> <del> unless 'sqlite3' == config[:adapter] <del> raise ArgumentError, 'adap...
1
PHP
PHP
change default view
638b261a68913bae9a64f6d540612b862fa3c4dd
<ide><path>config/auth.php <ide> 'passwords' => [ <ide> 'users' => [ <ide> 'provider' => 'users', <del> 'email' => 'emails.password', <add> 'email' => 'auth.emails.password', <ide> 'table' => 'password_resets', <ide> 'expire' => 60, <ide> ],
1
Ruby
Ruby
update ar tests
1d803e51890e842f0c25ee3a016ed0311f2fa1b4
<ide><path>activerecord/test/cases/fixtures_test.rb <ide> def test_foo <ide> class FixtureLoadingTest < ActiveRecord::TestCase <ide> uses_mocha 'reloading_fixtures_through_accessor_methods' do <ide> def test_logs_message_for_failed_dependency_load <del> Test::Unit::TestCase.expects(:require_dependency).with(...
2
Javascript
Javascript
use dumpcache() rather than manual reset
32d3d7774afde084888a6cf7885cb0da84b79cd6
<ide><path>src/core/__tests__/ReactComponent-test.js <ide> var reactComponentExpect; <ide> <ide> describe('ReactComponent', function() { <ide> beforeEach(function() { <add> require('mock-modules').dumpCache(); <add> <ide> React = require('React'); <ide> ReactMount = require('ReactMount'); <ide> ReactT...
1
Javascript
Javascript
add object id to streams to prevent infinite loops
532d7246ea1b67f5b9752f6b3a2c3dbf2c09c9c6
<ide><path>src/core/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> if (!isStream(xObject)) { <ide> continue; <ide> } <add> if (xObject.dict.objId) { <add> if (processed[xObject.dict.objId]) { <add> // stream has objI...
2
PHP
PHP
add dropsoftdeletes method to migrations
c77a9fd08e8b0ad3368acc9a700d572c4dff251c
<ide><path>src/Illuminate/Database/Schema/Blueprint.php <ide> public function dropTimestamps() <ide> $this->dropColumn('created_at', 'updated_at'); <ide> } <ide> <add> /** <add> * Indicate that the soft delete column should be dropped. <add> * <add> * @return void <add> */ <add> public function dropSoftDeletes() <a...
1
Text
Text
remove stray files
2c5ec74e4583271aa95e43c4d422fb3e489ae08f
<ide><path>curriculum/challenges/italian/13-relational-databases/learn-relational-databases/learn-advanced-bash-by-building.md <del>--- <del>id: 602da0de22201c65d2a019f6 <del>title: Impara Bash avanzato costruendo <del>challengeType: 12 <del>helpCategory: Relational Databases <del>url: https://github.com/moT01/.learn-a...
2
Python
Python
remove debug output from tests
1003e7ccec483ed7d9ad3995224af89350a7bbae
<ide><path>spacy/tests/parser/test_parse.py <ide> def test_arc_eager_finalize_state(EN): <ide> # right branching <ide> example = EN.tokenizer.tokens_from_list(u"a b c d e".split(' ')) <ide> apply_transition_sequence(EN, example, ['R-nsubj','D','R-nsubj','R-nsubj','D','R-ROOT']) <del> print [ '%s/%s' % (t.dep_,t.head...
2
Python
Python
update parser docstrings. closes #968
5fa100245cbf71a47c7a1ea7a869d03049380130
<ide><path>rest_framework/parsers.py <ide> class JSONParser(BaseParser): <ide> <ide> def parse(self, stream, media_type=None, parser_context=None): <ide> """ <del> Returns a 2-tuple of `(data, files)`. <del> <del> `data` will be an object which is the parsed content of the response. <del> ...
1
Ruby
Ruby
remove extranous spaces from assignment
bd49a4b175e056c77610c78ac109eab0c3411af8
<ide><path>actionview/lib/action_view/digestor.rb <ide> <ide> module ActionView <ide> class Digestor <del> @@digest_mutex = Mutex.new <add> @@digest_mutex = Mutex.new <ide> <ide> class << self <ide> # Supported options:
1
Ruby
Ruby
permit running jobs in system tests
c8396e030f4b1edd48340975696dcaf6aa8291c9
<ide><path>actionpack/lib/action_dispatch/railtie.rb <ide> class Railtie < Rails::Railtie # :nodoc: <ide> <ide> ActionDispatch.test_app = app <ide> end <add> <add> initializer "action_dispatch.system_tests" do |app| <add> ActiveSupport.on_load(:action_dispatch_system_test_case) do <add> includ...
5
Javascript
Javascript
allow listing of months and weekdays
de08cc5023d1103ece6d34af9c73c93536185508
<ide><path>moment.js <ide> return units ? unitAliases[units] || units.toLowerCase().replace(/(.)s$/, '$1') : units; <ide> } <ide> <add> function listLocal(field, format) { <add> var i, m, str, method, count, setter, <add> months = []; <add> <add> if (field.match(/^week/)) { <add...
2
Ruby
Ruby
fix style of recursive_requirements tests
33b955a3f24d835f45d439f97ecabb7d6d51b7ad
<ide><path>Library/Homebrew/test/formula_test.rb <ide> def test_requirements <ide> url "f1-1" <ide> <ide> depends_on :python <del> depends_on :x11 => :recommended <del> depends_on :xcode => ['1.0', :optional] <add> depends_on x11: :recommended <add> depends_on xcode: ["1.0", :optional] ...
1
Go
Go
improve some logging
068ab5144244648bcba3b7261c41836a4ba5cf0f
<ide><path>layer/layer_store.go <ide> func (ls *layerStore) assembleTarTo(graphID string, metadata io.ReadCloser, size <ide> func (ls *layerStore) Cleanup() error { <ide> orphanLayers, err := ls.store.getOrphan() <ide> if err != nil { <del> logrus.Errorf("Cannot get orphan layers: %v", err) <add> logrus.WithError(e...
1
Python
Python
remove duplicate assignment of dictionary key
c082254420464aea70b737d8cef7d14397a3196f
<ide><path>libcloud/compute/drivers/ec2.py <ide> def GiB(value): <ide> 'os1.8xlarge' <ide> ] <ide> }, <del> 'us-east-2': { <del> 'endpoint': 'fcu.us-east-2.outscale.com', <del> 'api_name': 'osc_sas_us_east_2', <del> 'country': 'USA', <del> 'instance_types': [ <del>...
1
Javascript
Javascript
fix race in test-http-big-proxy-responses.js
2219c64a0418d0a1604631b547a644a1ff7fe5aa
<ide><path>test/disabled/test-http-big-proxy-responses.js <ide> var chargen = http.createServer(function (req, res) { <ide> } <ide> res.end(); <ide> }); <del>chargen.listen(9000); <add>chargen.listen(9000, ready); <ide> <ide> // Proxy to the chargen server. <ide> var proxy = http.createServer(function (req, res) {...
1
Text
Text
fix initial state example for recat.createclass
c9ec4bc4459b5f0cd8ca6f1ef5c5b1b27948fe98
<ide><path>docs/docs/05-reusable-components.md <ide> With `React.createClass()`, you have to provide a separate `getInitialState` met <ide> ```javascript <ide> var Counter = React.createClass({ <ide> getInitialState: function() { <del> return {count: props.initialCount}; <add> return {count: this.props.initialC...
1
Text
Text
add arguments to test case titles.
f844ea3620878c04c1348d5e4de5a6b03afea759
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hofstadter-figure-figure-sequences.english.md <ide> tests: <ide> testString: assert(Number.isInteger(ffr(1))); <ide> - text: <code>ffs</code> should return integer. <ide> testString: assert(Number.isInteger(ffs(1))); <del> - text:...
1
Go
Go
use strconv instead of fmt.sprintf()
533ecb44b184d376cdbee6b8cac5ec039c870ab4
<ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go <ide> func TestCollectBatchWithDuplicateTimestamps(t *testing.T) { <ide> times := maximumLogEventsPerPut <ide> timestamp := time.Now() <ide> for i := 0; i < times; i++ { <del> line := fmt.Sprintf("%d", i) <add> line := strconv.Itoa(i) <ide> if i%2 == 0 { <i...
4
Text
Text
bring releases.md up to date
f1653cc9b80b521ef5b129537ce1df9098bbdc1b
<ide><path>doc/releases.md <ide> Notes: <ide> - Dates listed below as _"YYYY-MM-DD"_ should be the date of the release **as UTC**. Use `date -u +'%Y-%m-%d'` to find out what this is. <ide> - Version strings are listed below as _"vx.y.z"_. Substitute for the release version. <ide> <del>### 1. Ensure that HEAD Is Stab...
1
PHP
PHP
fix custom cast
62b1f8d7af46cc288ab95a5ecf087d1f736f4922
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function getClassCastableAttributeValue($key) <ide> $caster = $this->resolveCasterClass($key); <ide> <ide> return $this->classCastCache[$key] = $caster instanceof CastsInboundAttributes <del> ?...
2
Python
Python
remove unused arguments in example scripts
aa50fd196f16c693daa0d15f53272849819bc75b
<ide><path>examples/run_classifier.py <ide> def main(): <ide> type=float, <ide> help="Proportion of training to perform linear learning rate warmup for. " <ide> "E.g., 0.1 = 10%% of training.") <del> parser.add_argument("--save_checkpoints_...
2
Ruby
Ruby
add missing test for callbacks
f1a3e7ba01418ab4219eb2cfce8bc1f5c60acbca
<ide><path>actionpack/test/dispatch/callbacks_test.rb <ide> def test_before_and_after_callbacks <ide> dispatch <ide> assert_equal 4, Foo.a <ide> assert_equal 4, Foo.b <add> <add> dispatch do |env| <add> raise "error" <add> end rescue nil <add> assert_equal 6, Foo.a <add> assert_equal 6, Foo...
1
PHP
PHP
add basic querystring support
de00c98f8a733fb09f5a44b37953d901bf570a19
<ide><path>lib/Cake/Network/Http/Client.php <ide> public function config($config = null) { <ide> */ <ide> public function get($url, $data = [], $options = []) { <ide> $options = $this->_mergeOptions($options); <del> $request = $this->_createRequest(Request::METHOD_GET, $url, $data, $options); <add> $url = $this->...
2
Text
Text
improve python version of merge sort.
01ae4e25a173dfda78ba77978ba8e18167416686
<ide><path>guide/english/algorithms/sorting-algorithms/merge-sort/index.md <ide> void mergesort(int A[],int size_a,int B[],int size_b,int C[]) <ide> ### Implementation in Python <ide> <ide> ```python <del>temp = None <del>def merge(arr, left, right): <del> global temp, inversions <del> mid = (left + right) // 2 ...
1
Python
Python
fix tf template
161a6461db3c673672edd5b994848b0d50db1b67
<ide><path>templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py <ide> class TF{{cookiecutter.camelcase_modelname}}Intermediate(tf.keras.layers.Layer): <ide> def __init__(self, config, **kwargs): <ide> super().__init__(**kwargs) <id...
1
Javascript
Javascript
add duration.fn back
eeb83f8176febcc121ca85f63557558e12d13885
<ide><path>src/lib/duration/create.js <ide> export function createDuration (input, key) { <ide> return ret; <ide> } <ide> <add>createDuration.fn = Duration.prototype; <add> <ide> function parseIso (inp, sign) { <ide> // We'd normally use ~~inp for this, but unfortunately it also <ide> // converts floats to...
2
Javascript
Javascript
fix mmd audio example
d9f437b84fa116a48908e20913cb15303802bb06
<ide><path>examples/js/loaders/MMDLoader.js <ide> THREE.MMDAudioManager = function ( audio, listener, p ) { <ide> this.currentTime = 0.0; <ide> this.delayTime = params.delayTime !== undefined ? params.delayTime : 0.0; <ide> <del> this.audioDuration = this.audio.source.buffer.duration; <add> this.audioDuration = this...
1
PHP
PHP
add configure timezone to boostrap
708d462bf980f85c31d9e6584ad8f22ce3fae41f
<ide><path>app/Config/core.php <ide> */ <ide> //date_default_timezone_set('UTC'); <ide> <add>/** <add> * ‘Config.timezone’ is available which you can set to user’s timezone string. <add> * If a method of CakeTime class is called with $timezone parameter as null and ‘Config.timezone’ is set, <add> * then the value of...
1
Text
Text
add changelog entry for 9d6e28
0185aae747676e636a52eb079a0a10a6f053fa2c
<ide><path>actionpack/CHANGELOG.md <add>* Changed the default system test screenshot output from `inline` to `simple`. <add> <add> `inline` works well for iTerm2 but not everyone uses iTerm2. Some terminals like <add> Terminal.app ignore the `inline` and output the path to the file since it can't <add> rende...
1
PHP
PHP
apply fixes from styleci
8e618d00d880f75e31230891a6461379eb704180
<ide><path>src/Illuminate/Queue/Queue.php <ide> <ide> namespace Illuminate\Queue; <ide> <del>use Illuminate\Support\Arr; <ide> use Illuminate\Container\Container; <ide> <ide> abstract class Queue
1
Ruby
Ruby
pass explicit sort to handle apfs
16ea29a641f1672baa1fead658de2b0ad4f308b2
<ide><path>Library/Homebrew/diagnostic.rb <ide> def __check_linked_brew(f) <ide> def check_for_linked_keg_only_brews <ide> return unless HOMEBREW_CELLAR.exist? <ide> <del> linked = Formula.installed.select do |f| <add> linked = Formula.installed.sort.select do |f| <ide> f.keg_only...
1