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
Python
Python
remove django 1.5 emailvalidator fallback
9216dc9a254160a9903359fbf0db2b2c5826212c
<ide><path>rest_framework/compat.py <ide> def __init__(self, *args, **kwargs): <ide> super(URLValidator, self).__init__(*args, **kwargs) <ide> <ide> <del># EmailValidator requires explicit regex prior to 1.6+ <del>if django.VERSION >= (1, 6): <del> from django.core.validators import EmailValidator <del...
2
PHP
PHP
apply fixes from styleci
e35a60f7f3ef1d75754522771f13762b3058f1b0
<ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php <ide> protected function handleTransactionException($e, $currentAttempt, $maxAttempts) <ide> // let the developer handle it in another way. We will decrement too. <ide> if ($this->causedByDeadlock($e) && <ide> $this->transac...
5
Python
Python
update float32 mean example in docstring
9b88034e92794d814bb033f72302a55ca19abdf2
<ide><path>numpy/core/fromnumeric.py <ide> def mean(a, axis=None, dtype=None, out=None, keepdims=False): <ide> >>> a[0, :] = 1.0 <ide> >>> a[1, :] = 0.1 <ide> >>> np.mean(a) <del> 0.546875 <add> 0.54999924 <ide> <ide> Computing the mean in float64 is more accurate: <ide>
1
Text
Text
add link to performance documentation
ae80936f0357eac8d8d100fac1dc5af7851443bd
<ide><path>docs/general/README.md <ide> These sections describe general configuration options that can apply elsewhere i <ide> * [Options](./options.md) scriptable and indexable options syntax. <ide> * [Colors](./colors.md) defines acceptable color values. <ide> * [Font](./fonts.md) defines various font options. <add>*...
1
Javascript
Javascript
remove responsive file since it is not necessary
814c2d7ffa5581804687976be9047e231fd6350a
<ide><path>src/core/core.responsive.js <del>(function() { <del> <del> "use strict"; <del> <del> //Declare root variable - window in the browser, global on the server <del> var root = this, <del> previous = root.Chart, <del> helpers = Chart.helpers; <del> <del> <del> // Attach global event to resize each chart instanc...
1
Python
Python
fix transformer perfzero issue with fp16
b578aee9247a536aaef589644466eda7abe7279b
<ide><path>official/transformer/v2/transformer_main.py <ide> def __init__(self, flags_obj): <ide> params["repeat_dataset"] = None <ide> params["dtype"] = flags_core.get_tf_dtype(flags_obj) <ide> <add> if params["dtype"] == tf.float16: <add> # TODO(reedwm): It's pretty ugly to set the global policy in a...
2
Javascript
Javascript
move anonymous class to top level
f9dc722eb51e201024271ce4b0e742a57d60d892
<ide><path>lib/internal/child_process.js <ide> ChildProcess.prototype.unref = function() { <ide> if (this._handle) this._handle.unref(); <ide> }; <ide> <add>class Control extends EventEmitter { <add> constructor(channel) { <add> super(); <add> this.channel = channel; <add> this.refs = 0; <add> } <add> re...
1
Python
Python
fix deriving of pypi branch from airflow version
46da268567bd3a7197961db7f99bbe36f9708e7d
<ide><path>dev/breeze/src/airflow_breeze/build_image/prod/build_prod_params.py <ide> def args_for_remote_install(self) -> List: <ide> self.airflow_branch_for_pypi_preloading = "v2-1-test" <ide> elif self.airflow_version == 'v2-2-test': <ide> self.airflow_branch_for_pypi_preloading = "v2-...
1
Text
Text
fix typo in caching guide [ci skip]
0d7185d13895e778bfde402a01c2fb56a0cfe29b
<ide><path>guides/source/caching_with_rails.md <ide> For example, take the following view: <ide> Which in turn renders this view: <ide> <ide> ```erb <del><% cache game %> <add><% cache game do %> <ide> <%= render game %> <ide> <% end %> <ide> ```
1
Python
Python
fix fetch_all_handler & db-api tests for it
d82436b382c41643a7385af8a58c50c106b0d01a
<ide><path>airflow/providers/common/sql/hooks/sql.py <ide> import warnings <ide> from contextlib import closing <ide> from datetime import datetime <del>from typing import TYPE_CHECKING, Any, Callable, Iterable, List, Mapping, Optional, Tuple, Type, Union <add>from typing import Any, Callable, Iterable, List, Mapping, ...
2
Javascript
Javascript
add test for first and last
c8ad125aee43184b464b79b0652df3e76707ed2f
<ide><path>d3.js <ide> d3.rebind = function(object, method) { <ide> }; <ide> }; <ide> d3.ascending = function(a, b) { <del> return a < b ? -1 : a > b ? 1 : 0; <add> return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; <ide> }; <ide> d3.descending = function(a, b) { <del> return b < a ? -1 : b > a ? 1 : 0; <add> retu...
8
Python
Python
fix types of errors raised by genfromtxt
a81535a364ca2d5aa277977e53c4e2302cae8ea2
<ide><path>numpy/lib/npyio.py <ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None, <ide> byte_converters = False <ide> <ide> # Initialize the filehandle, the LineSplitter and the NameValidator <add> if isinstance(fname, os_PathLike): <add> fname = os_fspath(fname) <add> if is...
2
Ruby
Ruby
make sure flash middleware is required
46cd257aad4bd51ccee8c752cc239a8972c524ae
<ide><path>railties/test/isolation/abstract_unit.rb <ide> def make_basic_app <ide> require "rails" <ide> require "action_controller/railtie" <ide> require "action_view/railtie" <add> require 'action_dispatch/middleware/flash' <ide> <ide> app = Class.new(Rails::Application) <ide> app....
1
Python
Python
allow filtering taskinstances by queued_dttm
d2c2a2285c176ef232452e72a28e355667b8b50b
<ide><path>airflow/www/views.py <ide> class TaskInstanceModelView(AirflowModelView): <ide> 'operator', <ide> 'start_date', <ide> 'end_date', <add> 'queued_dttm', <ide> ] <ide> <ide> edit_columns = [
1
Python
Python
explain character codes of dtype.kind
c0014729f973f1baa6d614154aa0d21b3fb79291
<ide><path>numpy/add_newdocs.py <ide> def luf(lamdaexpr, *args, **kwargs): <ide> <ide> add_newdoc('numpy.core.multiarray', 'dtype', ('kind', <ide> """ <del> A character code (one of 'biufcSUV') identifying the general kind of data. <add> A character code (one of 'biufcOSUV') identifying the general kind of d...
1
Javascript
Javascript
fix negative zoomscale in rtl
2f491bfa9f86c3db2e459e331f39bc3cf12e7239
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<Props, State> { <ide> this._hasWarned.perf = true; <ide> } <ide> <del> const zoomScale = e.nativeEvent.zoomScale; <add> // e.nativeEvent.zoomScale is -1 in RTL so take absolute <add> const zoomScale...
1
Java
Java
add @httprequest and httpserviceproxyfactory
c418768f05751b791434abb43a9ee6e68467b96e
<ide><path>spring-web/src/main/java/org/springframework/web/service/annotation/GetRequest.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 License. <add...
16
Javascript
Javascript
handle quasi-whatwg urls in urltooptions()
4900863043406528d7cd37e8233fe449fa76f9bf
<ide><path>lib/internal/url.js <ide> function domainToUnicode(domain) { <ide> function urlToOptions(url) { <ide> var options = { <ide> protocol: url.protocol, <del> hostname: url.hostname.startsWith('[') ? <add> hostname: typeof url.hostname === 'string' && url.hostname.startsWith('[') ? <ide> url.hos...
2
Text
Text
change tests to make them pass on firefox
75f64d172816c85621fac1d58d150a1120467089
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/step-049.md <ide> In the `.red` CSS rule, change the `background-color` property to `background`. <ide> Your `.red` CSS rule should have a `background` property with the value `rgb(255, 0, 0)`. <id...
4
PHP
PHP
fix bunch of docblocks
b85f8cb3ecd50c2dc846bd86cc721932355503d0
<ide><path>src/Illuminate/Foundation/helpers.php <ide> /** <ide> * Throw an HttpException with the given data. <ide> * <del> * @param \Symfony\Component\HttpFoundation\Response|\Illuminate\Contracts\Support\Responsable|int $code <add> * @param \Symfony\Component\HttpFoundation\Response|\Illu...
1
PHP
PHP
apply fixes from styleci
5ce33c0c2d3f6080c6abe610660db48c5899112f
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> public function compileString($value) <ide> */ <ide> public static function render($string, $data = [], $deleteCachedView = false) <ide> { <del> $component = new class($string) extends Component { <add> $component = new class($s...
1
Text
Text
add shouldcomponentupdate note to usagewithreact
ddc883cbbb95f576dbdb78deedc7e4d8356d9619
<ide><path>docs/basics/UsageWithReact.md <ide> export default App <ide> <ide> ### Container Components <ide> <del>Now it’s time to hook up those presentational components to Redux by creating some containers. Technically, a container component is just a React component that uses [`store.subscribe()`](../api/Store.md#...
1
Text
Text
remove double space
1c56d4cdda5e398842c8093d127ef2eefd1d43b7
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-own-properties.md <ide> In the following example, the `Bird` constructor defines two properties: `name` <ide> <ide> ```js <ide> function Bird(name) { <del> this.name = name; <add> this.name =...
1
Javascript
Javascript
use path.join in async-hooks/test-tlswrap.js
d8eb30ac1068664491de0a5a462e3e37163dab45
<ide><path>test/async-hooks/test-tlswrap.js <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const assert = require('assert'); <add>const fs = require('fs'); <add>const path = require('path'); <add>const tls = require('tls'); <add> <ide> const tick = require('./tick'); <ide> const initHo...
1
Text
Text
add 3.28.0-beta.6 to changelog
297ab0e771409d61dcb014a9a40144cd7fdd5ee8
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.28.0-beta.6 (June 21, 2021) <add> <add>- [#19584](https://github.com/emberjs/ember.js/pull/19584) [BUGFIX] Ensure hash objects correctly entangle as dependencies <add> <ide> ### v3.28.0-beta.5 (June 14, 2021) <ide> <ide> - [#19597](https://github.com/e...
1
Text
Text
add tf notebooks
2a51b15518dc756103b21a7301c9e098a89cc530
<ide><path>notebooks/README.md <ide> You can open any page of the documentation as a notebook in colab (there is a bu <ide> | [Multilingual models](https://github.com/huggingface/notebooks/blob/master/transformers_doc/multilingual.ipynb) | How to use the multilingual models of the library | [![Open In Colab](https://c...
1
PHP
PHP
fix failing tests
a72b567a6a8fde7ca1df6a24d94be193ef23df57
<ide><path>tests/TestCase/Utility/Crypto/McryptTest.php <ide> public function testEncryptDecrypt() { <ide> */ <ide> public function testDecryptKeyFailure() { <ide> $txt = 'The quick brown fox'; <del> $key = 'This key is enough bytes'; <add> <add> $key = substr(hash('sha256', 'This key is enough bytes'), 0, 32); <...
2
Ruby
Ruby
fix environment.rb typos. closes [fxn, mikong]
a9eaa25a66eabb020eb9ce6c6de32681eacd9760
<ide><path>railties/environments/environment.rb <ide> # Skip frameworks you're not going to use (only works if using vendor/rails) <ide> # config.frameworks -= [ :active_resource, :action_mailer ] <ide> <del> # Only load the plugins named here, in the order given. By default all plugins in vendor/plugins are load...
1
Javascript
Javascript
fix a string (remove superfluous space)
5b8651097efc014a7da0a0d3e5eb1a3edf34c0b4
<ide><path>packages/ember-routing/lib/system/router.js <ide> var EmberRouter = EmberObject.extend(Evented, { <ide> run.once(this, this.trigger, 'willTransition', transition); <ide> <ide> if (get(this, 'namespace').LOG_TRANSITIONS) { <del> Ember.Logger.log(`Preparing to transition from '${EmberRouter._rout...
1
PHP
PHP
increment 4.2 version
3359de6d6cd322e8a1b251c2f8d9dd42a3e4e232
<ide><path>src/Illuminate/Foundation/Application.php <ide> class Application extends Container implements HttpKernelInterface, TerminableIn <ide> * <ide> * @var string <ide> */ <del> const VERSION = '4.2.16'; <add> const VERSION = '4.2.17'; <ide> <ide> /** <ide> * Indicates if the application has "booted".
1
Javascript
Javascript
remove unicode support todo for perf implications
294ccf39a6599121679ad1a2f0734683681153fe
<ide><path>lib/internal/util/inspect.js <ide> function formatPrimitive(fn, value, ctx) { <ide> trailer = `... ${remaining} more character${remaining > 1 ? 's' : ''}`; <ide> } <ide> if (ctx.compact !== true && <del> // TODO(BridgeAR): Add unicode support. Use the readline getStringWidth <del> ...
1
Javascript
Javascript
add data tests for logbox
c2832f2355b9a22f9872cc4bb49b74fca984e2ef
<ide><path>Libraries/LogBox/Data/__tests__/LogBoxLog-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 oncall+react_native <add>...
5
Go
Go
fix failing integration tests
f29aacbc4804e3aca1c21b9411e960b2a2543da1
<ide><path>integration-cli/docker_cli_pull_test.go <ide> func TestPullImageWithAliases(t *testing.T) { <ide> if out, _, err := runCommandWithOutput(pullCmd); err != nil { <ide> t.Fatalf("Failed to pull %v: error %v, output %q", repoName, err, out) <ide> } <add> defer deleteImages(repos[0]) <ide> if err := exec.Com...
1
Python
Python
add example code for testing typing tools
8c6f1d96ded2a22429b1ee7da6c3870cb140b587
<ide><path>tests/typing/typing_route.py <add>from http import HTTPStatus <add>from typing import Tuple <add>from typing import Union <add> <add>from flask import Flask <add>from flask import jsonify <add>from flask.templating import render_template <add>from flask.views import View <add>from flask.wrappers import Respo...
1
Javascript
Javascript
fix issue with "/" route alongside "/*"
f32a10660a5571875a59d46e7144a3de8a7a8c0b
<ide><path>packages/ember-states/lib/routable.js <ide> Ember._RouteMatcher = Ember.Object.extend({ <ide> state: null, <ide> <ide> init: function() { <del> var route = get(this, 'route'), <del> escaped = escapeForRegex(route), <add> var route = this.route, <ide> identifiers = [], <del> c...
2
Ruby
Ruby
move tests to own specs file
3db65e7ee53039c63e6b570d9881896ee51c5569
<ide><path>Library/Homebrew/test/rubocops/lines/generate_completions_spec.rb <add># typed: false <add># frozen_string_literal: true <add> <add>require "rubocops/lines" <add> <add>describe RuboCop::Cop::FormulaAudit do <add> describe RuboCop::Cop::FormulaAudit::GenerateCompletionsDSL do <add> subject(:cop) { describ...
2
Ruby
Ruby
add missing block parameters
ff3210556b89fdb3fe289117fa72ba3155231442
<ide><path>activestorage/lib/active_storage/analyzer.rb <ide> def metadata <ide> <ide> private <ide> # Downloads the blob to a tempfile on disk. Yields the tempfile. <del> def download_blob_to_tempfile #:doc: <add> def download_blob_to_tempfile(&block) #:doc: <ide> blob.open(&block) <ide> ...
2
Mixed
Javascript
add option to stop duplicates in history
5bda5faffdeefa448965159e524eacdd14490436
<ide><path>doc/api/readline.md <ide> changes: <ide> `crlfDelay` milliseconds, both `\r` and `\n` will be treated as separate <ide> end-of-line input. Default to `100` milliseconds. <ide> `crlfDelay` will be coerced to `[100, 2000]` range. <add> * `deDupeHistory` {boolean} If `true`, when a new input line a...
3
Mixed
Python
add prefix sum
7f1a5521f4b73d15df409a81f3da48427f9c6cdc
<ide><path>DIRECTORY.md <ide> ## Data Structures <ide> * Arrays <ide> * [Permutations](data_structures/arrays/permutations.py) <add> * [Prefix Sum](data_structures/arrays/prefix_sum.py) <ide> * Binary Tree <ide> * [Avl Tree](data_structures/binary_tree/avl_tree.py) <ide> * [Basic Binary Tree](data_st...
2
PHP
PHP
add missing docblocks
0dd1a50f041f227e21c42f0bd92f91af9121eab8
<ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php <ide> protected function decodePusherResponse($request, $response) <ide> * @param string $event <ide> * @param array $payload <ide> * @return void <add> * <add> * @throws \Illuminate\Broadcasting\BroadcastException <ide...
21
Javascript
Javascript
restore window.alert after use in scripting test
a8021208eaef252363c226046c575577530cc164
<ide><path>test/unit/scripting_spec.js <ide> import { loadScript } from "../../src/display/display_utils.js"; <ide> const sandboxBundleSrc = "../../build/generic/build/pdf.sandbox.js"; <ide> <ide> describe("Scripting", function () { <del> let sandbox, send_queue, test_id, ref; <add> let sandbox, send_queue, test_id,...
1
Ruby
Ruby
pass db_config object around instead of hashes
20c7bbd48ff878d526f5d54c879ac6c5f8458999
<ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb <ide> module ActiveRecord <ide> module ConnectionAdapters <ide> class ConnectionSpecification #:nodoc: <del> attr_reader :name, :adapter_method <add> attr_reader :name, :adapter_method, :db_config <ide> <del> ...
8
PHP
PHP
set a default type for queries
5fee0c60de767124f8fa2060a987bb5cc4e506a7
<ide><path>src/Database/Dialect/SqliteDialectTrait.php <ide> protected function _insertQueryTranslator($query) { <ide> <ide> $newQuery = $query->connection()->newQuery(); <ide> $cols = $v->columns(); <add> $replaceQuery = false; <ide> foreach ($v->values() as $k => $val) { <ide> $fillLength = count($cols) - ...
3
Javascript
Javascript
normalize keyword paths so that observers work
208e498390b852f71e5fe6623a5b8d2dd4005c13
<ide><path>packages/ember-handlebars/lib/ext.js <ide> Ember.Handlebars.compile = function(string) { <ide> return Handlebars.template(templateSpec); <ide> }; <ide> <add>/** <add> If a path starts with a reserved keyword, returns the root <add> that should be used. <add>*/ <add>var normalizePath = Ember.Handlebars.n...
7
Text
Text
fix typo in async_hooks.md
55a93756ee34e390605f08a4efb1b01015c2253d
<ide><path>doc/api/async_hooks.md <ide> fs.open(path, 'r', (err, fd) => { <ide> }); <ide> ``` <ide> <del>The ID returned fom `executionAsyncId()` is related to execution timing, not <add>The ID returned from `executionAsyncId()` is related to execution timing, not <ide> causality (which is covered by `triggerAsyncId()...
1
Javascript
Javascript
fix a typo in lib/timers "read through"
108c176e8f764d33d0cffd086223511feff49e02
<ide><path>lib/timers.js <ide> const kRefed = Symbol('refed'); <ide> // Therefore, it is very important that the timers implementation is performant <ide> // and efficient. <ide> // <del>// Note: It is suggested you first read though the lib/internal/linkedlist.js <add>// Note: It is suggested you first read through th...
1
Javascript
Javascript
handle jsx in multi-file editor
10d2559fee09a7500c0ef07395cc0ea1b95e9769
<ide><path>client/src/templates/Challenges/classic/Editor.js <ide> class Editor extends Component { <ide> indexhtml: { <ide> model: null, <ide> state: null <add> }, <add> indexjsx: { <add> model: null, <add> state: null <ide> } <ide> }; <ide> <ide> class Editor e...
4
PHP
PHP
add getcachingiterator method to collection
0fa8ebf01e7ec300c4f51179becf6268780e67c6
<ide><path>src/Illuminate/Support/Collection.php <ide> use Countable; <ide> use ArrayAccess; <ide> use ArrayIterator; <add>use CachingIterator; <ide> use IteratorAggregate; <ide> use Illuminate\Support\Contracts\JsonableInterface; <ide> use Illuminate\Support\Contracts\ArrayableInterface; <ide> public function getItera...
2
Javascript
Javascript
fix handling of typed subarrays
6280ec89e3884e91da5c30faf8b4a55218bcac8b
<ide><path>src/Angular.js <ide> function copy(source, destination) { <ide> case '[object Uint8ClampedArray]': <ide> case '[object Uint16Array]': <ide> case '[object Uint32Array]': <del> return new source.constructor(copyElement(source.buffer)); <add> return new source.constructor(copyEle...
2
Python
Python
use pandas.io.gbq for bigquery integration
bd42a707d1211bb6c71649722345eb2dd5c5bf12
<ide><path>airflow/hooks/bigquery_hook.py <ide> from airflow.hooks.dbapi_hook import DbApiHook <ide> from apiclient.discovery import build <ide> from oauth2client.client import SignedJwtAssertionCredentials <add>from pandas.io.gbq import GbqConnector, _parse_data as gbq_parse_data <add>from pandas.tools.merge import co...
1
PHP
PHP
improve initialization of table locator object
0e301966831d913ddff1582fafcb714195d6a986
<ide><path>src/ORM/Locator/LocatorAwareTrait.php <ide> public function setTableLocator(LocatorInterface $tableLocator) <ide> */ <ide> public function getTableLocator() <ide> { <del> if (!$this->_tableLocator) { <add> if (!isset($this->_tableLocator)) { <ide> $this->_tableLocator =...
1
Text
Text
add mmarchini to collaborators
3d53848d751eac4bb642ef8c50339d51cf9155bc
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Mikeal Rogers** &lt;mikeal.rogers@gmail.com&gt; <ide> * [misterdjules](https://github.com/misterdjules) - <ide> **Julien Gilli** &lt;jgilli@nodejs.org&gt; <add>* [mmarchini](https://github.com/mmarchini) - <add>**Ma...
1
Ruby
Ruby
change regex to catch multi-line `pubdate` tags
2de6d96a10f00f6dc828711166a53b768f97bbab
<ide><path>Library/Homebrew/cask/lib/hbc/dsl/appcast.rb <ide> def calculate_checkpoint <ide> result = SystemCommand.run("/usr/bin/curl", args: ["--compressed", "--location", "--user-agent", URL::FAKE_USER_AGENT, @uri], print_stderr: false) <ide> <ide> checkpoint = if result.success? <del> proc...
1
Javascript
Javascript
improve test coverage for eventtarget
fb2f3cc828e47215ab5dbcc1e5bb911b0cde9e38
<ide><path>test/parallel/test-eventtarget.js <ide> let asyncTest = Promise.resolve(); <ide> ev.preventDefault(); <ide> strictEqual(ev.defaultPrevented, false); <ide> } <add>{ <add> [ <add> 'foo', <add> 1, <add> false, <add> function() {}, <add> ].forEach((i) => ( <add> throws(() => new Event('foo',...
1
Javascript
Javascript
create mapui specific service
1d420b835c69132812176a08c2610a9ed84f5646
<ide><path>common/app/Map/redux/fetch-map-ui-epic.js <add>import { ofType } from 'redux-epic'; <add>import debug from 'debug'; <add> <add>import { <add> types as appTypes, <add> createErrorObservable <add>} from '../../redux'; <add>import { types, fetchMapUiComplete } from './'; <add>import { langSelector } from '../...
7
PHP
PHP
add method for getting the column type
8fede3aa56c7b5b0544a70ef90302075d585ba3d
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> public function hasColumns($table, array $columns) <ide> return true; <ide> } <ide> <add> /** <add> * Return the data type for the passed column name. <add> * <add> * @param string $table <add> * @param string $column <add> ...
1
Text
Text
beautify net.md formats
c19894f81427b1b2a2270032265bc7b9ad46838c
<ide><path>doc/api/net.md <ide> added: v0.1.90 <ide> <ide> This class is used to create a TCP or [IPC][] server. <ide> <del>## new net.Server([options][, connectionListener]) <add>### new net.Server([options][, connectionListener]) <ide> <ide> * Returns: {net.Server} <ide>
1
Javascript
Javascript
remove redundant variable in zlibbufferonend
da8a1ef21b34af25c31cab5cf2cf023b66abe413
<ide><path>lib/zlib.js <ide> function zlibBufferOnError(err) { <ide> <ide> function zlibBufferOnEnd() { <ide> let buf; <del> let err; <ide> if (this.nread === 0) { <ide> buf = Buffer.alloc(0); <ide> } else { <ide> const bufs = this.buffers; <ide> buf = (bufs.length === 1 ? bufs[0] : Buffer.concat(bu...
1
Text
Text
add v3.8.3 to changelog.md
1e00da7922598523bbf7af0052d508b8051df275
<ide><path>CHANGELOG.md <ide> - [#17874](https://github.com/emberjs/ember.js/pull/17874) [BUGFIX] Fix issue with `event.stopPropagation()` in component event handlers when jQuery is disabled. <ide> - [#17876](https://github.com/emberjs/ember.js/pull/17876) [BUGFIX] Fix issue with multiple `{{action}}` modifiers on the ...
1
Ruby
Ruby
move exception text into exception object
8b51cf019d56c6ab5ab03c7bb4cf504eb7659c93
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> had_incomplete_download = false <ide> retry <ide> else <del> if @url =~ %r[^file://] <del> msg = "File does not exist: #{@url.sub(%r[^file://], "")}" <del> else <del> msg = "Downloa...
2
Ruby
Ruby
avoid super in define_method for rubinius
2954cf13697cac564ec8a5f30638aa699b1874c1
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def symbols <ide> %w(<< concat shift unshift push pop []= clear compact! collect! <ide> delete delete_at delete_if flatten! map! insert reject! reverse! <ide> replace slice! sort! uniq!).each do |method| <del> define_method(method) {|*ar...
1
Javascript
Javascript
remove ref usage in main markdown example
bf5abdf14f55b7f961097b48f78ee4ca7514fed4
<ide><path>docs/_js/examples/markdown.js <ide> class MarkdownEditor extends React.Component { <ide> this.state = {value: 'Type some *markdown* here!'}; <ide> } <ide> <del> handleChange() { <del> this.setState({value: this.refs.textarea.value}); <add> handleChange(e) { <add> this.setState({value: e.target...
1
Text
Text
replace github -> github (portuguese)
0dc0edcded1dd6aa2c57cc408b57ea0064e607a6
<ide><path>curriculum/challenges/portuguese/06-information-security-and-quality-assurance/advanced-node-and-express/authentication-strategies.portuguese.md <ide> localeTitle: Estratégias de Autenticação <ide> --- <ide> <ide> ## Description <del><section id="description"> Como lembrete, este projeto está sendo construí...
41
Text
Text
add release notes
fdabd6b14e394721aaf61402bb88073e7eb424bf
<ide><path>docs/sources/release-notes.md <ide> page_keywords: docker, documentation, about, technology, understanding, release <ide> <ide> #Release Notes <ide> <add>##Version 1.3.3 <add>(2014-12-11) <add> <add>This release fixes several security issues. In order to encourage immediate <add>upgrading, this release al...
1
Javascript
Javascript
add back regex support
2afda3de37e55dc89e1cecd63fcd3d9056f335a3
<ide><path>src/devtools/views/Components/SearchInput.js <ide> export default function SearchInput(props: Props) { <ide> onChange={handleTextChange} <ide> onKeyDown={handleKeyDown} <ide> onKeyPress={handleInputKeyPress} <del> placeholder="Search" <add> placeholder="Search (text or /...
2
Python
Python
fix incomplete outputs of flaxbert
21f6f58721dd9154357576be6de54eefef1f1818
<ide><path>src/transformers/models/bert/modeling_flax_bert.py <ide> def __call__( <ide> if output_hidden_states: <ide> all_hidden_states += (hidden_states,) <ide> <del> outputs = (hidden_states,) <add> outputs = (hidden_states, all_hidden_states, all_attentions, all_cross_attentions) ...
4
Python
Python
remove unused variable
4921d30b0e08d414b397585d0030958781cb1a56
<ide><path>numpy/core/memmap.py <ide> class memmap(ndarray): <ide> __array_priority__ = -100.0 <ide> def __new__(subtype, name, dtype=uint8, mode='r+', offset=0, <ide> shape=None, order=0): <del> global _globalvar <del> <ide> try: <ide> mode = mode_equivalents[mode] <i...
1
Ruby
Ruby
alter regexp on initialize to avoid extra ast pass
4b01bdedd357bc480e4f7cd3d07591c2f820fbeb
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def initialize(set:, ast:, controller:, default_action:, to:, formatted:, via:, <ide> # Add a constraint for wildcard route to make it non-greedy and match the <ide> # optional format part of the route by default. <ide> ...
1
Text
Text
remove stray back-end from activejob basics guide
8ee16836982b79a14198c75006672677f1f55947
<ide><path>guides/source/active_job_basics.md <ide> For enqueuing and executing jobs in production you need to set up a queuing back <ide> that is to say you need to decide for a 3rd-party queuing library that Rails should use. <ide> Rails itself only provides an in-process queuing system, which only keeps the jobs in ...
1
Python
Python
fix the test isolation from [15552]
9ebc9108defa0267f0f84dcf16bfab83b332da75
<ide><path>tests/regressiontests/views/tests/static.py <ide> class StaticHelperTest(StaticTests): <ide> def setUp(self): <ide> super(StaticHelperTest, self).setUp() <ide> self.prefix = 'media' <del> self._old_views_urlpatterns = urls.urlpatterns <add> self._old_views_urlpatterns = urls...
1
Python
Python
fix typo in a dsplit() error message
f02ed1a95cab2f9d4d002abf0bc4d76df89548a7
<ide><path>numpy/lib/shape_base.py <ide> def dsplit(ary, indices_or_sections): <ide> <ide> """ <ide> if len(_nx.shape(ary)) < 3: <del> raise ValueError('vsplit only works on arrays of 3 or more dimensions') <add> raise ValueError('dsplit only works on arrays of 3 or more dimensions') <ide> re...
1
PHP
PHP
add new methods to mailer contract
1692b839089a0e5ae65815dd59c82cee9afca9df
<ide><path>src/Illuminate/Contracts/Mail/Mailer.php <ide> <ide> interface Mailer <ide> { <add> /** <add> * Set the global from address and name. <add> * <add> * @param string $address <add> * @param string|null $name <add> * @return void <add> */ <add> public function alwaysFrom($addr...
1
Ruby
Ruby
use satisfy syntax for cltdependency
9f1e6af879542224622f27ba1ae4870ae474ac6e
<ide><path>Library/Homebrew/requirements.rb <ide> class CLTDependency < Requirement <ide> fatal true <ide> build true <ide> <del> def satisfied? <del> MacOS::CLT.installed? <del> end <add> satisfy(:build_env => false) { MacOS::CLT.installed? } <ide> <ide> def message; <<-EOS.undent <ide> The Command L...
1
Text
Text
fix typo in active model guide
391f5dc1767d15f44b33be252325b657e0e8ce7e
<ide><path>guides/source/active_model_basics.md <ide> end <ide> <ide> When including `ActiveModel::Model` you get some features like: <ide> <del>- model name instrospection <add>- model name introspection <ide> - conversions <ide> - translations <ide> - validations <ide> features out of the box. <ide> <ide> `ActiveM...
1
Ruby
Ruby
add documentation to the spawnmethods#merge method
43946ee89172e743354adda9d13cdf5232ce3b58
<ide><path>activerecord/lib/active_record/relation/spawn_methods.rb <ide> <ide> module ActiveRecord <ide> module SpawnMethods <add> <add> # Merges in the conditions from <tt>other</tt>, if <tt>other</tt> is an <tt>ActiveRecord::Relation</tt>. <add> # Returns an array representing the union of the resulting...
1
Java
Java
fix example code formatting in @enablewebmvc
bdfd983bb4d855218f2c07d40ddd33d754559fdb
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <i...
1
Java
Java
add @ignored repro test for spr-7538
99f7142e3f78e73cf191fedb41926189dee69dc5
<ide><path>org.springframework.integration-tests/src/test/java/org/springframework/expression/spel/support/BeanFactoryTypeConverter.java <add>package org.springframework.expression.spel.support; <add>import java.beans.PropertyEditor; <add> <add>import org.springframework.beans.BeansException; <add>import org.springfram...
2
Javascript
Javascript
remove extraneous debug statement
24a5699f3985b613566a1f8c68467c0b777a7fa9
<ide><path>lib/dependencies/HarmonyExportImportedSpecifierDependency.js <ide> class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency { <ide> }; <ide> <ide> default: <del> console.log(mode); <ide> throw new Error(`Unknown mode ${mode.type}`); <ide> } <ide> }
1
Text
Text
add missing step and fix typo
68fee7212e75713d8971d1d297f10277f21e07a1
<ide><path>docs/curriculum-file-structure.md <ide> When renaming a single challenge file, you need to: <ide> <ide> 1. Change the name of the challenge file in the `curriculum/challenges/english` directory. <ide> 1. Change the name of the `title` and `dashedName` within that file. <del>1. Change the of the file, and th...
1
Go
Go
fix deadlock on stop failure
0d9e54367f7bf7da9670de723d533eaa920868c8
<ide><path>container.go <ide> func (container *Container) Stop() error { <ide> // 2. Wait for the process to exit on its own <ide> if err := container.WaitTimeout(10 * time.Second); err != nil { <ide> log.Printf("Container %v failed to exit within 10 seconds of SIGTERM - using the force", container.Id) <del> if er...
1
PHP
PHP
fix apigen errors
2793dca6710ce1d83d6215e4e63cbee3d15fc394
<ide><path>lib/Cake/Console/Command/ServerShell.php <ide> class ServerShell extends AppShell { <ide> <ide> /** <ide> * Default ServerHost <add> * <add> * @var string <ide> */ <ide> const DEFAULT_HOST = 'localhost'; <ide> <ide> /** <ide> * Default ListenPort <add> * <add> * @var integer <ide> */ <ide> const DEFA...
18
Java
Java
introduce @disabled regression test for gh-24375
2a2efbe6119621f3ac3667820ef28e9d9a90692b
<ide><path>spring-context/src/test/java/example/gh24375/A.java <add>/* <add> * Copyright 2002-2020 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 License. <add> * You may obtain a copy of the...
4
Python
Python
add type to help my ide out
11b13e94a3d9ec1532816701e7f554f06bf217c1
<ide><path>src/transformers/modeling_utils.py <ide> def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): <ide> <ide> # PyTorch's `_load_from_state_dict` does not copy parameters in a module's descendants <ide> # so we need to apply the function recursively. <del> ...
1
PHP
PHP
add possibility to test the email subject
a30233f1a634e575bac3ebed38fee9cb9a978a8b
<ide><path>src/TestSuite/Constraint/Email/MailSubjectContains.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT Licen...
3
Go
Go
remove unneeded goroutine
af2a11f31654e3311af77d9978d2a9f5d67d29c9
<ide><path>pkg/signal/signal_linux_test.go <ide> import ( <ide> "os" <ide> "syscall" <ide> "testing" <del> "time" <ide> <ide> "gotest.tools/v3/assert" <ide> is "gotest.tools/v3/assert/cmp" <ide> func TestCatchAll(t *testing.T) { <ide> } <ide> <ide> for sigStr := range listOfSignals { <del> signal, ok := Signa...
1
PHP
PHP
add viaremember to authenticator contract
b0d5a2b44d171038f9621e1d3aaffa222d36dcef
<ide><path>src/Illuminate/Contracts/Auth/Authenticator.php <ide> public function validate(array $credentials = array()); <ide> */ <ide> public function login(User $user, $remember = false); <ide> <add> /** <add> * Determine if the user was authenticated via "remember me" cookie. <add> * <add> * @return bool <add...
1
Javascript
Javascript
simplify controllersboundtransclude check
c1cb341c8770c7b1a1dbdc4ce19b8115b1182298
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> var transcludeControllers; <ide> <ide> // no scope passed <del> if (arguments.length < 2) { <add> if (!cloneAttachFn) { <ide> cloneAttachFn = scope; <ide> ...
1
Go
Go
remove path handling
f8a0f26843bc5aff33cf9201b75bd4bdbb48a3ad
<ide><path>api/server/middleware/debug.go <ide> func DebugRequestMiddleware(handler func(ctx context.Context, w http.ResponseWri <ide> <ide> var postForm map[string]interface{} <ide> if err := json.Unmarshal(b, &postForm); err == nil { <del> maskSecretKeys(postForm, r.RequestURI) <add> maskSecretKeys(postForm)...
2
Go
Go
ignore delete events for non-existent entries
2bead02c874cac037b5d9de58b051790e8523958
<ide><path>libnetwork/networkdb/cluster.go <ide> func (nDB *NetworkDB) reapNetworks() { <ide> } <ide> <ide> func (nDB *NetworkDB) reapTableEntries() { <del> var ( <del> paths []string <del> entries []*entry <del> ) <add> var paths []string <ide> <ide> now := time.Now() <ide> <ide> func (nDB *NetworkDB) reapTabl...
3
Javascript
Javascript
reset prefetchcache when reloading a route. (#617)
01a17738dba5447039100b0ff6f944d24d9d234b
<ide><path>lib/prefetch.js <ide> class Messenger { <ide> this._resetCache() <ide> } <ide> <del> send (payload, cb) { <del> if (this.serviceWorkerState === 'REGISTERED') { <del> this._send(payload, cb) <del> } else { <del> this.serviceWorkerReadyCallbacks.push(() => { <del> this._send(payl...
2
Go
Go
adjust opt to set new field
5cc20ad9e5a6898be54ce3f44ca096138c7bbcce
<ide><path>pkg/sysinfo/cgroup2_linux.go <ide> func newV2(quiet bool, options ...Opt) *SysInfo { <ide> var warnings []string <ide> sysInfo := &SysInfo{ <ide> CgroupUnified: true, <add> cg2GroupPath: "/", <ide> } <del> var opts opts <ide> for _, o := range options { <del> o(&opts) <add> o(sysInfo) <ide> } <del...
5
PHP
PHP
remove unused import
793c45e9f78e0cd12a84da61a99188821a601f32
<ide><path>src/View/Cell.php <ide> <ide> use BadMethodCallException; <ide> use Cake\Cache\Cache; <del>use Cake\Core\Configure; <ide> use Cake\Datasource\ModelAwareTrait; <ide> use Cake\Event\EventDispatcherTrait; <ide> use Cake\Event\EventManager;
1
PHP
PHP
use alternative mockery syntax to create partials
4ee36a87e707056b38ade8e2f98b78041f1ee388
<ide><path>tests/Database/DatabaseQueryBuilderTest.php <ide> public function testDynamicWhere() <ide> { <ide> $method = 'whereFooBarAndBazOrQux'; <ide> $parameters = array('corge', 'waldo', 'fred'); <del> $builder = m::mock('Illuminate\Database\Query\Builder[where]'); <add> $builder = m::mock('Illumina...
3
Python
Python
add a check_decl function to check for declaration
622b1425544db5a4de2f2b678adcbdd0105ba8a9
<ide><path>numpy/distutils/command/config.py <ide> def _link (self, body, <ide> (body, headers, include_dirs, <ide> libraries, library_dirs, lang)) <ide> <add> def check_decl(self, symbol, <add> headers=None, include_dirs=None): <a...
1
Ruby
Ruby
add test for `--language` option
dcb85571ca468a573c5ac4f76752ec7e732d9e82
<ide><path>Library/Homebrew/test/cask/cli_spec.rb <ide> describe Hbc::CLI, :cask do <ide> it "lists the taps for Casks that show up in two taps" do <del> listing = Hbc::CLI.nice_listing(%w[ <del> caskroom/cask/adium <del> caskroom/cask/googl...
1
PHP
PHP
fix cs error
24f2209353fa99badc85480ecf947de6b23f8eb8
<ide><path>src/View/View.php <ide> public function __get($name) <ide> <ide> return $this->helpers; <ide> } <del> <ide> } <ide> <ide> /**
1
Mixed
Text
use 2020-resolver with pip
cf82a72480a41a62b4bbe0f1378d319f0d6f5d5c
<ide><path>research/object_detection/g3doc/tf1.md <ide> cd models/research <ide> protoc object_detection/protos/*.proto --python_out=. <ide> # Install TensorFlow Object Detection API. <ide> cp object_detection/packages/tf1/setup.py . <del>python -m pip install . <add>python -m pip install --use-feature=2020-resolver . ...
3
Ruby
Ruby
move formulaaudit.check_http_content to utils/curl
0db069602ec160736e150064894b5e33fefa2373
<ide><path>Library/Homebrew/cask/lib/hbc/audit.rb <ide> require "hbc/download" <ide> require "digest" <ide> require "utils/git" <del>require "dev-cmd/audit" <add>require "utils/curl" <ide> <ide> module Hbc <ide> class Audit <ide> def check_https_availability <ide> end <ide> <ide> def check_url_for_https_ava...
3
Javascript
Javascript
fix console.table() display edge case
99d56a4749e7b167b4f312a4fbcc754b7a3a8894
<ide><path>lib/console.js <ide> Console.prototype.table = function(tabularData, properties) { <ide> tabularData = previewSetIterator(tabularData); <ide> <ide> const setlike = setIter || isSet(tabularData); <del> if (setlike || <del> (properties === undefined && <del> (isArray(tabularData) || isTypedA...
2
Javascript
Javascript
improve method of function calling
28dc848e702b70f8c07941a1dfd46227f90c8267
<ide><path>lib/internal/module.js <ide> exports = module.exports = { <ide> <ide> exports.requireDepth = 0; <ide> <del>// Invoke with makeRequireFunction.call(module) where |module| is the <del>// Module object to use as the context for the require() function. <del>function makeRequireFunction() { <del> const Module ...
3