content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
PHP
PHP
fix restoration of xml entity loader flag
e202a1d9bc75c46f7780092c30cef41aba8d3712
<ide><path>src/Utility/Xml.php <ide> public static function loadHtml(string $input, array $options = []) <ide> <ide> $internalErrors = libxml_use_internal_errors(true); <ide> if (!$options['loadEntities']) { <del> libxml_disable_entity_loader(true); <add> $previousDisabledEntityLo...
1
Javascript
Javascript
add types for modal
58cd046bb455e285c2980d1cd82d23bea76ccbb8
<ide><path>Libraries/Modal/Modal.js <ide> const PropTypes = require('prop-types'); <ide> const StyleSheet = require('../StyleSheet/StyleSheet'); <ide> const View = require('../Components/View/View'); <ide> <del>const RCTModalHostView = require('./RCTModalHostViewNativeComponent'); <add>import RCTModalHostView from './...
4
Javascript
Javascript
fix siblings order for async hooks
128476187aeffc3708efab6fbb99d248f6461507
<ide><path>packages/ember-glimmer/tests/integration/components/life-cycle-test.js <del>import { set, run } from 'ember-metal'; <add>import { set, setProperties, run } from 'ember-metal'; <ide> import { Component } from '../../utils/helpers'; <ide> import { strip } from '../../utils/abstract-test-case'; <ide> import { m...
1
Java
Java
fix slider colors in android
31904d523dbe79a8a4a37690cd821b3ec21e16b0
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java <ide> public void setThumbTintColor(ReactSlider view, Integer color) { <ide> @ReactProp(name = "minimumTrackTintColor", customType = "Color") <ide> public void setMinimumTrackTintColor(ReactSlider view, Integer color) { <i...
1
Ruby
Ruby
remove cyclic dependency on argv
28e62b52d1be4cff4c9d668779b6e7d361656c2a
<ide><path>Library/Homebrew/cli/args.rb <ide> module Homebrew <ide> module CLI <ide> class Args < OpenStruct <del> attr_accessor :processed_options <add> attr_accessor :processed_options, :args_parsed <ide> # undefine tap to allow --tap argument <ide> undef tap <ide> <ide> def initial...
2
Java
Java
update error message in dispatcherservlet
888835445c4f0bfb49055167d19b2c6cb25d7b45
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java <ide> protected HandlerAdapter getHandlerAdapter(Object handler) throws ServletExcepti <ide> } <ide> } <ide> throw new ServletException("No adapter for handler [" + handler + <del> "]: Does your handler implement a s...
1
PHP
PHP
remove unused variables/lines
df6b8483893439ae4527e678fc6b963e76f43dae
<ide><path>src/I18n/RelativeTimeFormatter.php <ide> public function dateAgoInWords(DatetimeInterface $date, array $options = []) <ide> } <ide> <ide> $diffData = $this->_diffData($futureTime, $pastTime, $backwards, $options); <del> list($fNum, $fWord, $years, $months, $weeks, $days, $hours, $minu...
5
Go
Go
fix bug for `docker service ls`
5f69a077dace5de14d27382ffee3c577f8cab1ad
<ide><path>libnetwork/client/service.go <ide> func getBackendID(cli *NetworkCli, servID string) (string, error) { <ide> ) <ide> <ide> if obj, _, err = readBody(cli.call("GET", "/services/"+servID+"/backend", nil, nil)); err == nil { <del> var bkl []sandboxResource <del> if err := json.NewDecoder(bytes.NewReader(ob...
1
Mixed
Ruby
yield translation to `formbuilder#button` block
a086418283b5220a06bf86e485f654d8552b5b0b
<ide><path>actionview/CHANGELOG.md <add>* Yield translated strings to calls of `ActionView::FormBuilder#button` <add> when a block is given. <add> <add> *Sean Doyle* <add> <ide> * Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to <ide> `#to_s` so that `form.label` calls can yield that ...
3
Javascript
Javascript
add more asserts to test-http-big-proxy-responses
c7b3c1ecbc7c425eb1e0014166dcc051805f8cff
<ide><path>test/disabled/test-http-big-proxy-responses.js <ide> fs = require("fs"), <ide> http = require("http"), <ide> url = require("url"); <ide> <add>var chunk = '01234567890123456789'; <add> <ide> // Produce a very large response. <ide> var chargen = http.createServer(function (req, res) { <del> var chunk = '0123...
1
Python
Python
add training pipeline (formatting temporary)
578d23e06114bbd63cf5e931e0fdef9b8b6ac8c4
<ide><path>examples/run_seq2seq_finetuning.py <ide> import os <ide> <ide> import numpy as np <add>from tqdm import tqdm, trange <ide> import torch <del>from torch.utils.data import Dataset <add>from torch.utils.data import Dataset, RandomSampler <ide> <ide> from transformers import AutoTokenizer, Model2Model <ide> <...
1
Javascript
Javascript
hide loaders in hmr log message
066b0ace5177b213eadf167cc2145355d2f29e45
<ide><path>hot/log-apply-result.js <ide> module.exports = function(updatedModules, renewedModules) { <ide> } else { <ide> log("info", "[HMR] Updated modules:"); <ide> renewedModules.forEach(function(moduleId) { <add> if(moduleId.lastIndexOf) { <add> moduleId = moduleId.substring(moduleId.lastIndexOf("!") + 1)...
1
Ruby
Ruby
pass variants in rather than mutating the request
59a9068c3fa501ca23d60f3a83c0968e9ed4639a
<ide><path>actionpack/test/controller/mime/respond_to_test.rb <ide> class RespondToController < ActionController::Base <ide> layout :set_layout <ide> <add> before_action { <add> case params[:v] <add> when String then request.variant = params[:v].to_sym <add> when Array then request.variant = params[:v].map...
1
Javascript
Javascript
block special pages from the public.
1c7b2603d4730dd4e6329d8dbd61447d07a7a2bb
<ide><path>server/index.js <ide> const internalPrefixes = [ <ide> /^\/static\// <ide> ] <ide> <add>const blockedPages = { <add> '/_document': true, <add> '/_error': true <add>} <add> <ide> export default class Server { <ide> constructor ({ dir = '.', dev = false, staticMarkup = false, quiet = false, conf = null ...
2
Text
Text
add vdeturckheim as collaborator
4a498335f563d241407bb3f144d328e97a74f8dd
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Rich Trott** &lt;rtrott@gmail.com&gt; (he/him) <ide> * [tunniclm](https://github.com/tunniclm) - <ide> **Mike Tunnicliffe** &lt;m.j.tunnicliffe@gmail.com&gt; <add>* [vdeturckheim](https://github.com/vdeturckheim) - ...
1
PHP
PHP
fix glob problem in file cache driver
471b7aaa814dcd406a280e0bcba2df7c10dc435c
<ide><path>laravel/session/drivers/file.php <ide> public function delete($id) <ide> */ <ide> public function sweep($expiration) <ide> { <del> foreach (glob($this->path.'*') as $file) <add> $files = glob($this->path.'*'); <add> <add> if ($files === false) return; <add> <add> foreach ($files as $file) <ide> { <...
1
Javascript
Javascript
fix copy and serialize
2641cd08cea2f1ed372566975c9f1380996188c8
<ide><path>examples/js/nodes/postprocessing/NodePass.js <ide> NodePass.prototype.render = function () { <ide> <ide> NodePass.prototype.copy = function ( source ) { <ide> <del> this.material = source.material; <add> this.input = source.input; <ide> <ide> }; <ide> <ide> NodePass.prototype.toJSON = function ( meta )...
2
Python
Python
futurize imput.py to prepare for python 3
3b929989185fc9e1d89ef07c612ee02b84800378
<ide><path>tools/gyp/pylib/gyp/input.py <ide> # Use of this source code is governed by a BSD-style license that can be <ide> # found in the LICENSE file. <ide> <del>from compiler.ast import Const <del>from compiler.ast import Dict <del>from compiler.ast import Discard <del>from compiler.ast import List <del>from compi...
1
Ruby
Ruby
remove empty line
4e30f98ced37b0a82dced1cad0d6102108cd4b74
<ide><path>activerecord/test/cases/adapters/mysql2/nested_deadlock_test.rb <ide> class Sample < ActiveRecord::Base <ide> end <ide> end <ide> end <del> <ide> end <ide> end
1
Python
Python
allow specification of terms to fit in fit method
5f7b1af4e652c2ab631634d9778a3a4015e41ced
<ide><path>numpy/polynomial/_polybase.py <ide> def fit(cls, x, y, deg, domain=None, rcond=None, full=False, w=None, <ide> y-coordinates of the sample points. Several data sets of sample <ide> points sharing the same x-coordinates can be fitted at once by <ide> passing in a 2D-array t...
1
Javascript
Javascript
add jsdoc typings for https
9a7cbe25de88d87429a69050a1a1971234558d97
<ide><path>lib/https.js <ide> ObjectSetPrototypeOf(Server, tls.Server); <ide> <ide> Server.prototype.setTimeout = HttpServer.prototype.setTimeout; <ide> <add>/** <add> * Creates a new `https.Server` instance. <add> * @param {{ <add> * IncomingMessage?: IncomingMessage; <add> * ServerResponse?: ServerResponse; <ad...
1
Mixed
Javascript
add abortsignal to promisified pipeline
38f6e5a789b19760592532e6a802f106c12f1d07
<ide><path>doc/api/stream.md <ide> pipeline( <ide> ); <ide> ``` <ide> <del>The `pipeline` API provides promise version: <add>The `pipeline` API provides a promise version, which can also <add>receive an options argument as the last parameter with a <add>`signal` {AbortSignal} property. When the signal is aborted, <add...
3
Python
Python
fix esm lm head test
1076d587b580bb0379037339fbb2bc796062192a
<ide><path>tests/models/esm/test_modeling_esm.py <ide> def test_inference_masked_lm(self): <ide> self.assertEqual(output.shape, expected_shape) <ide> <ide> expected_slice = torch.tensor( <del> [[[15.0973, -6.6406, -1.1351], [-0.2209, -9.9622, 4.2109], [-1.6055, -10.0023, 1.5914]]...
1
Python
Python
fix the array api array.__setitem__
e4b7205fbaece2b604b0ac2b11a586a9f7c6b3dd
<ide><path>numpy/_array_api/_array_object.py <ide> def __setitem__(self, key: Union[int, slice, ellipsis, Tuple[Union[int, slice, e <ide> # Note: Only indices required by the spec are allowed. See the <ide> # docstring of _validate_index <ide> key = self._validate_index(key, self.shape) <del> ...
1
Javascript
Javascript
ignore queryserver msgs on disconnection
f9f1dd92903cd7de5c2c9ba4d8640fb35c9c2bb7
<ide><path>lib/cluster.js <ide> function masterInit() { <ide> } <ide> <ide> function queryServer(worker, message) { <add> // Stop processing if worker already disconnecting <add> if (worker.suicide) <add> return; <ide> var args = [message.address, <ide> message.port, <ide> ...
2
PHP
PHP
remove hacky code
6f338115b40d2bb5119c1d33d36d899632e91e07
<ide><path>lib/Cake/Network/Http/Client.php <ide> */ <ide> namespace Cake\Network\Http; <ide> <add>use Cake\Error; <ide> use Cake\Network\Http\Request; <ide> use Cake\Network\Http\Response; <ide> use Cake\Utility\Hash; <ide> protected function _typeHeaders($type) { <ide> 'Content-Type' => $type <ide> ]; <ide> ...
2
Python
Python
fix the check
a9b84ce7571d3557839b73229bd8069b8412b2d6
<ide><path>libcloud/storage/base.py <ide> def _validate_start_and_end_bytes(self, start_bytes, end_bytes=None): <ide> if start_bytes < 0: <ide> raise ValueError('start_bytes must be greater than 0') <ide> <del> if end_bytes: <add> if end_bytes is not None: <ide> if start_b...
1
Ruby
Ruby
use correct variable
5b0b1ee8fda1cd086653992f812f96c62fb3c24b
<ide><path>railties/test/application/dbconsole_test.rb <ide> def test_use_value_defined_in_environment_file_in_database_yml <ide> spawn_dbconsole(replica) <ide> assert_output("sqlite>", primary) <ide> ensure <del> master.puts ".exit" <add> primary.puts ".exit" <ide> end <ide> <ide> de...
2
Go
Go
move xino stuff to /dev/shm
f67ea78cce83114998390c16305a6869c72f5100
<ide><path>image.go <ide> func MountAUFS(ro []string, rw string, target string) error { <ide> } <ide> branches := fmt.Sprintf("br:%v:%v", rwBranch, roBranches) <ide> <add> branches += ",xino=/dev/shm/aufs.xino" <add> <ide> //if error, try to load aufs kernel module <ide> if err := mount("none", target, "aufs", 0, ...
1
Java
Java
try the debug executor before the release executor
b8621f5d303442ab78dc5d745cfc86a941d4737c
<ide><path>ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java <ide> public class HermesExecutor extends JavaScriptExecutor { <ide> // libhermes must be loaded explicitly to invoke its JNI_OnLoad. <ide> SoLoader.loadLibrary("hermes"); <ide> try { <del> SoLoader.loadLibrary(...
1
PHP
PHP
remove cookie reading in startup
0b0d83f261d3d1dd9068841a2e6161a2b10e3633
<ide><path>lib/Cake/Controller/Component/CookieComponent.php <ide> public function startup(Controller $controller) { <ide> $this->_expire($this->time); <ide> <ide> $this->_values[$this->name] = array(); <del> if (isset($_COOKIE[$this->name])) { <del> $this->_values[$this->name] = $this->_decrypt($_COOKIE[$this-...
1
Python
Python
fix error on urllib
b5098079d84a2472d4d8552d8c7867c39b46da88
<ide><path>spacy/cli/download.py <ide> <ide> from .link import link <ide> from ..util import prints, get_package_path <del>from ..compat import url_open, url_error <add>from ..compat import url_read, HTTPError <ide> from .. import about <ide> <ide> <ide> def download(model, direct=False): <ide> <ide> def get_json(u...
3
Javascript
Javascript
add explicit tests for intermediate components
1e42c1833cf50f2450be35758470f8b84d7a60a2
<ide><path>src/renderers/shared/fiber/__tests__/ReactIncremental-test.js <ide> describe('ReactIncremental', () => { <ide> state = {x: 0}; <ide> render() { <ide> statefulInst = this; <del> return [ <del> <ShowLocaleClass />, <del> <ShowLocaleFn />, <del> ]; <add> ...
1
Javascript
Javascript
remove some redundant lines
ae8c6dd5347797f2279639a5bc644e9b6632bbbb
<ide><path>packages/react-reconciler/src/ReactFiberScheduler.js <ide> function renderRoot(root: FiberRoot, isYieldy: boolean): void { <ide> resetStack(); <ide> nextRoot = root; <ide> nextRenderExpirationTime = expirationTime; <del> nextLatestTimeoutMs = -1; <del> nextRenderDidError = false; <ide> ...
1
Java
Java
fix dispatcherservlet warnings
c4d98278e94d94187e429d33400b7425b128a577
<ide><path>org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/DispatcherServlet.java <ide> * @see org.springframework.web.servlet.mvc.Controller <ide> * @see org.springframework.web.context.ContextLoaderListener <ide> */ <add>@SuppressWarnings("serial") <ide> public class DispatcherServlet...
1
PHP
PHP
add forcerefresh option to describe
bdd3225b419daa13c30faf966cb067ce999bacf8
<ide><path>src/Console/Command/OrmCacheShell.php <ide> public function build($name = null) { <ide> } <ide> foreach ($tables as $table) { <ide> $this->_io->verbose('Building metadata cache for ' . $table); <del> $schema->describe($table); <add> $schema->describe($table, ['forceRefresh' => true]); <ide> } <i...
2
Javascript
Javascript
replace set.prototype with setprototype primordial
e56840368b1851fb2d0ab6e80f1e2fd73c94d4fa
<ide><path>lib/internal/process/per_thread.js <ide> const { <ide> ObjectFreeze, <ide> ObjectGetOwnPropertyDescriptors, <ide> RegExpPrototypeTest, <add> SetPrototype, <ide> SetPrototypeHas, <ide> StringPrototypeReplace, <ide> } = primordials; <ide> function buildAllowedFlags() { <ide> // each object. <ide> ...
1
Text
Text
fix documentation of `token.ancestors`
c323789721d36dd9912fa20b9196f01d98581f0e
<ide><path>website/docs/api/token.md <ide> dependency tree. <ide> <ide> ## Token.ancestors {#ancestors tag="property" model="parser"} <ide> <del>The rightmost token of this token's syntactic descendants. <add>A sequence of the token's syntactic ancestors (parents, grandparents, etc). <ide> <ide> > #### Example <ide>...
1
Ruby
Ruby
introduce a callback for forked children
78b9580e5f3208c7048659de24f2220693afb23c
<ide><path>activesupport/lib/active_support.rb <ide> module ActiveSupport <ide> autoload :Executor <ide> autoload :FileUpdateChecker <ide> autoload :EventedFileUpdateChecker <add> autoload :ForkTracker <ide> autoload :LogSubscriber <ide> autoload :Notifications <ide> autoload :Reloader <ide><path>activesup...
3
Javascript
Javascript
fix duplicate property
81c66c8d8549a458518a6534ae3e81c5c496fe85
<ide><path>src/scales/scale.linear.js <ide> }; <ide> <ide> var LinearScale = Chart.Element.extend({ <del> calculateRange: helpers.noop, // overridden in the chart. Will set min and max as properties of the scale for later use <ide> isHorizontal: function() { <ide> return this.options.position == "top" || this....
1
Python
Python
update version string
4223c8e235337fbb2935eb0e6c78eab50b158609
<ide><path>libcloud/__init__.py <ide> <ide> __all__ = ["__version__", "enable_debug"] <ide> <del>__version__ = "0.5.0" <add>__version__ = "0.5.1" <ide> <ide> def enable_debug(fo): <ide> """
1
Python
Python
join function typeerror fixed
e172e12182868f70d39ff27b307663d6fe9422e1
<ide><path>examples/kaggle_otto_nn.py <ide> def preprocess_labels(y, encoder=None, categorical=True): <ide> def make_submission(y_prob, ids, encoder, fname): <ide> with open(fname, 'w') as f: <ide> f.write('id,') <del> f.write(','.join(encoder.classes_)) <add> f.write(','.join([str(i) for i in...
1
Javascript
Javascript
improve typings for platform.select on ios
b60b70f7ce28c72ff81df1f1a42bd2cc6907c342
<ide><path>Libraries/Utilities/Platform.ios.js <ide> <ide> import NativePlatformConstantsIOS from './NativePlatformConstantsIOS'; <ide> <del>export type PlatformSelectSpec<D, N, I> = { <del> default?: D, <del> native?: N, <del> ios?: I, <add>export type PlatformSelectSpec<T> = { <add> default?: T, <add> native?:...
1
PHP
PHP
implement the inputinterface where it is needed
08920aa043c1827088f7d76b6f75a87b45697368
<ide><path>src/View/Input/Checkbox.php <ide> */ <ide> namespace Cake\View\Input; <ide> <add>use Cake\View\Input\InputInterface; <add> <ide> /** <ide> * Input widget for creating checkbox widgets. <ide> */ <del>class Checkbox { <add>class Checkbox implements InputInterface { <ide> <ide> /** <ide> * Template instan...
6
Javascript
Javascript
clarify return value for path method
0bd2efb99456f4e54a3ac4f736b5fb144e8d9858
<ide><path>src/ng/location.js <ide> var locationPrototype = { <ide> * ``` <ide> * <ide> * @param {(string|number)=} path New path <del> * @return {string} path <add> * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter <ide> */ <ide> path: locationGe...
1
Go
Go
use fewer modprobes
6b5dc55e93d2f9ff6afab08f3fa707f860ea3540
<ide><path>libnetwork/iptables/iptables.go <ide> func (e ChainError) Error() string { <ide> } <ide> <ide> func probe() { <del> if out, err := exec.Command("modprobe", "-va", "nf_nat").CombinedOutput(); err != nil { <del> logrus.Warnf("Running modprobe nf_nat failed with message: `%s`, error: %v", strings.TrimSpace(st...
2
Javascript
Javascript
add a missing parenthese
53355c692aa7473a552b621cde0b6f0c5a681994
<ide><path>Libraries/StyleSheet/StyleSheet.js <ide> module.exports = { <ide> * } <ide> * }); <ide> * <del> * StyleSheet.flatten([styles.listItem, styles.selectedListItem] <add> * StyleSheet.flatten([styles.listItem, styles.selectedListItem]) <ide> * // returns { flex: 1, fontSize: 16, color: 'green' }...
1
Python
Python
fix tests for topological sort
7a6cd96af92aed066b7309c221a50804c5fcbf4d
<ide><path>tests/models.py <ide> def test_dag_topological_sort(self): <ide> topological_list = dag.topological_sort() <ide> logging.info(topological_list) <ide> <del> self.assertTrue(topological_list[0] == op5 or topological_list[0] == op4) <del> self.assertTrue(topological_list[1] == op4...
1
PHP
PHP
fix cs error
f7d0cef611a9b80e9553ffea89c36ded056e2aa4
<ide><path>src/basics.php <ide> function __dxn($domain, $context, $singular, $plural, $count, $args = null) <ide> * <ide> * @return string Error message. <ide> */ <del> function json_last_error_msg() { <add> function json_last_error_msg() <add> { <ide> static $errors = array( <ide> ...
1
Javascript
Javascript
remove author comments
d28c286c183d6db719240cd214b42c6338d1b326
<ide><path>examples/jsm/loaders/3DMLoader.js <del>/** <del> * @author Luis Fraguada / https://github.com/fraguada <del> */ <del> <ide> import { <ide> BufferGeometryLoader, <ide> FileLoader,
1
Ruby
Ruby
catch the rangeerror closer to the cause
0601a9f9aa99bfda26578ab86533bb215f1ee463
<ide><path>activerecord/lib/active_record/associations/association.rb <ide> def find_target <ide> end <ide> <ide> binds = AssociationScope.get_bind_values(owner, reflection.chain) <del> sc.execute(binds, klass.connection) { |record| set_inverse_instance(record) } || [] <add> sc.ex...
4
PHP
PHP
fix tests under error namespace
6eeed3713e33ccd6e064251590e3461c7659fa61
<ide><path>src/Error/ExceptionRenderer.php <ide> public function render() <ide> if ($unwrapped instanceof CakeException && $isDebug) { <ide> $this->controller->set($unwrapped->getAttributes()); <ide> } <del> $this->controller->response = $response; <add> $this->controller->setR...
2
Javascript
Javascript
ignore events bubbling through disabled elements
8d9025ca50603e5404c6b50f7fa6c87046ee24c1
<ide><path>src/event.js <ide> jQuery.event = { <ide> event.delegateTarget = this; <ide> <ide> // Determine handlers that should run if there are delegated events <del> // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861) <del> if ( delegateCount && event.target.disabled !== tru...
2
Python
Python
fix top k generation for k != 0
4b4b07927256a11a4b296c97db198d67c2545fdb
<ide><path>examples/run_gpt2.py <ide> logger = logging.getLogger(__name__) <ide> <ide> def top_k_logits(logits, k): <add> """ <add> Masks everything but the k top entries as -infinity (1e10). <add> Used to mask logits such that e^-infinity -> 0 won't contribute to the <add> sum of the denominator. <add> ...
1
Go
Go
add line-numbers to asserts
b80e0309d220268a2b9e6aec5bb05d7af330e591
<ide><path>builder/dockerfile/shell/lex_test.go <ide> func TestShellParser4EnvVars(t *testing.T) { <ide> if expected == "error" { <ide> assert.Check(t, is.ErrorContains(err, ""), "input: %q, result: %q", source, newWord) <ide> } else { <del> assert.Check(t, err) <del> assert.Check(t, is.Equal(newWord, e...
1
Ruby
Ruby
remove unused variable
5fac725a4a1d9afb4402e442ed6a7099a594be73
<ide><path>activerecord/test/cases/relation_test.rb <ide> def test_relation_merging_with_merged_joins_as_symbols <ide> end <ide> <ide> def test_relation_merging_with_merged_symbol_joins_keeps_inner_joins <del> queries = capture_sql { authors_with_commented_posts = Author.joins(:posts).merge(Post.joins(:co...
1
Text
Text
use newer help out for 'docker' and 'docker run'
effa5e2c18f27b81fc46d1a925d04e6af5695459
<ide><path>docs/sources/reference/commandline/cli.md <ide> expect an integer, and they can only be specified once. <ide> A self-sufficient runtime for linux containers. <ide> <ide> Options: <del> --api-enable-cors=false Enable CORS headers in the remote API <del> -b, --bridge="" ...
1
Ruby
Ruby
recover `changes_applied` performance "
5fcbdcfb574c731841be12764c50d9587b58345f
<ide><path>activemodel/lib/active_model/attribute_mutation_tracker.rb <ide> def change_to_attribute(attr_name) <ide> end <ide> end <ide> <del> def changed_attribute_names <del> attr_names.select { |attr| changed?(attr) } <del> end <del> <ide> def any_changes? <ide> attr_names.any? { |att...
4
Text
Text
add german language link inside certifications
d57da28c4fd8b3223daf17ae7737fe726ed45c18
<ide><path>docs/index.md <ide> Certifications are already live in some major world languages like below: <ide> - [Portuguese (Português)](https://www.freecodecamp.org/portuguese/learn) <ide> - [Ukrainian (Українська)](https://www.freecodecamp.org/ukrainian/learn) <ide> - [Japanese (日本語)](https://www.freecodecamp.org/ja...
1
PHP
PHP
add test case
3bc4d43079222bcaf930fa6b5c87040bbc9f76f5
<ide><path>src/View/Helper/UrlHelper.php <ide> public function script($path, array $options = []) <ide> * <ide> * Depending on options passed provides full URL with domain name. Also calls <ide> * `Helper::assetTimestamp()` to add timestamp to local files. <add> * <add> * ### Options: <add> ...
2
PHP
PHP
fix morphto lazy eager loading
ef2dc2e7ccbcb3d074e81c552e35df36a6fc25e6
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function getRelation($name) <ide> // and error prone. We don't want constraints because we add eager ones. <ide> $relation = Relation::noConstraints(function () use ($name) { <ide> try { <del> return $this->g...
3
Ruby
Ruby
use default location when possible
4a39070c268b6dba063b938d8663c70f60311230
<ide><path>Library/Homebrew/os/mac/xquartz.rb <ide> module Mac <ide> module XQuartz <ide> module_function <ide> <add> # TODO: confirm this path when you have internet <add> DEFAULT_BUNDLE_PATH = Pathname.new("Applications/Utilities/XQuartz.app").freeze <ide> FORGE_BUNDLE_ID = "org.macosforge....
1
PHP
PHP
fix indentation and add __construct() docblocks
89d4b58073160c57e339188e8479adea98bdc834
<ide><path>lib/Cake/View/Helper/NumberHelper.php <ide> */ <ide> class NumberHelper extends AppHelper { <ide> <del> /** CakeNumber instance <del> */ <add>/** CakeNumber instance <add> */ <ide> protected $_engine = null; <ide> <del> /* Default Constructor <del> * <del> * @param View $View The View this helper is b...
3
Text
Text
fix minor typo [ci skip]
1ac67a5ed60040755c96b0bc8a4ec7f44d581765
<ide><path>guides/source/association_basics.md <ide> The `belongs_to` association creates a one-to-one match with another model. In d <ide> <ide> #### Methods Added by `belongs_to` <ide> <del>When you declare a `belongs_to` association, the declaring class automatically gains five methods related to the association: ...
1
Java
Java
fix compiler warnings
13239a0c3d5bf226998f2da9eb66014118972a26
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java <ide> /* <del> * Copyright 2002-2009 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not ...
11
PHP
PHP
clarify the type of response we're looking for
2fc313b8b1505d7c6ca16c52a1c33cf8aed7fc7a
<ide><path>app/Exceptions/Handler.php <ide> public function report(Exception $e) <ide> } <ide> <ide> /** <del> * Render an exception into a response. <add> * Render an exception into an HTTP response. <ide> * <ide> * @param \Illuminate\Http\Request $request <ide> * @param \Exception $e
1
PHP
PHP
add numeric validator for float fields by default
bcafde6212a8614d69e9c399197166c67eb0b0d1
<ide><path>lib/Cake/Console/Command/Task/ModelTask.php <ide> public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') { <ide> $guess = $methods['notEmpty']; <ide> } elseif ($metaData['type'] === 'integer') { <ide> $guess = $methods['numeric']; <add> } elseif ($metaData['type'] === 'fl...
1
PHP
PHP
add a space between 2 lines
38eb84b57c5cb81a1beb70ba6421635a78408174
<ide><path>src/Illuminate/Support/Collection.php <ide> public function lists($value, $key = null) <ide> else <ide> { <ide> $itemKey = is_object($item) ? $item->{$key} : $item[$key]; <add> <ide> $results[$itemKey] = $itemValue; <ide> } <ide> }
1
Mixed
Go
remove deprecated cli flags
7929888214741c4ab194c44e0b14ac08aca06556
<ide><path>api/client/attach.go <ide> import ( <ide> // Usage: docker attach [OPTIONS] CONTAINER <ide> func (cli *DockerCli) CmdAttach(args ...string) error { <ide> cmd := Cli.Subcmd("attach", []string{"CONTAINER"}, Cli.DockerCommands["attach"].Description, true) <del> noStdin := cmd.Bool([]string{"#nostdin", "-no-std...
21
Javascript
Javascript
convert the `preferences` to an es6 class
c5f9193777ad319903d9f5b560a62122f2dc8901
<ide><path>web/app.js <ide> import { PDFLinkService } from './pdf_link_service'; <ide> import { PDFOutlineViewer } from './pdf_outline_viewer'; <ide> import { PDFPresentationMode } from './pdf_presentation_mode'; <ide> import { PDFThumbnailViewer } from './pdf_thumbnail_viewer'; <del>import { Preferences } from './pref...
6
Javascript
Javascript
open two same tabs on firefox
24f1923b1b55f142c39364c88a57b2a1b90d3972
<ide><path>packages/react-devtools-extensions/popups/shared.js <ide> document.addEventListener('DOMContentLoaded', function() { <ide> const location = ln.href; <ide> ln.onclick = function() { <ide> chrome.tabs.create({active: true, url: location}); <add> return false; <ide> }; <ide> ...
1
Ruby
Ruby
fix tests for `cask audit`
c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1
<ide><path>Library/Homebrew/test/cask/audit_spec.rb <ide> def include_msg?(messages, msg) <ide> end <ide> end <ide> <del> matcher :fail_with do |error_msg| <add> matcher :fail_with do |message| <ide> match do |audit| <del> include_msg?(audit.errors, error_msg) <add> include_msg?(audit.errors, mes...
11
Text
Text
fix typo in active support changelog. [ci skip]
e94be7b04cda949b2188a910257b984f98127a31
<ide><path>activesupport/CHANGELOG.md <del>* Remove deprecated string based terminators for y`ActiveSupport::Callbacks`. <add>* Remove deprecated string based terminators for `ActiveSupport::Callbacks`. <ide> <ide> *Yves Senn* <ide>
1
Text
Text
suggest jest as default
e0168d6750d6f24f2102b37f6bad4eb5ccc4c033
<ide><path>docs/recipes/WritingTests.md <ide> Because most of the Redux code you write are functions, and many of them are pur <ide> <ide> ### Setting Up <ide> <del>We recommend [Mocha](http://mochajs.org/) as the testing engine. <add>We recommend [Jest](http://facebook.github.io/jest/) as the testing engine. <ide> N...
1
Javascript
Javascript
remove trailing whitespace
4561c61bcf9c84ae146e509cbd9e7a5b9a5245ba
<ide><path>packages/ember-htmlbars/lib/helpers/with.js <ide> import shouldDisplay from "ember-views/streams/should_display"; <ide> {{#if isProlificBlogger}} <ide> {{user.name}} has written more than {{posts.model.length}} blog posts! <ide> {{else}} <del> {{user.name}} has only written {{posts.model.l...
1
Python
Python
fix reading strings from conf
4d9f36b45ad48b9c04cd86a8801bc19fb273c256
<ide><path>airflow/bin/cli.py <ide> def run(args, dag=None): <ide> remote_log_location, <ide> append=True) <ide> # Other <del> elif remote_base: <add> elif remote_base and remote_base != 'None': <ide> logging.error( <ide> 'Unsupported rem...
3
Ruby
Ruby
add support for redis channels
4f36bc66e640cdd4e42ab1174cb61cd7e3b17b0d
<ide><path>lib/action_cable/channel.rb <ide> module ActionCable <ide> module Channel <ide> autoload :Callbacks, 'action_cable/channel/callbacks' <add> autoload :Redis, 'action_cable/channel/redis' <ide> autoload :Base, 'action_cable/channel/base' <ide> end <ide> end <ide><path>lib/action_cable/channel/ba...
3
Text
Text
remove legacy -j test.py option from building.md
506816891b3a5908e640ae5786ac5166cfdae76f
<ide><path>BUILDING.md <ide> by providing the name of a subsystem: <ide> <ide> ```text <ide> $ make coverage-clean <del>$ NODE_V8_COVERAGE=coverage/tmp tools/test.py -J --mode=release child-process <add>$ NODE_V8_COVERAGE=coverage/tmp tools/test.py --mode=release child-process <ide> $ make coverage-report-js <ide> ```...
1
Javascript
Javascript
remove textdecoder feature tests
b57d35034c49c5abb10902122cdb0319e012fe98
<ide><path>test/features/tests.js <ide> var tests = [ <ide> impact: 'Important', <ide> area: 'Core' <ide> }, <del> { <del> id: 'TextDecoder', <del> name: 'TextDecoder is present', <del> run: function () { <del> if (typeof TextDecoder != 'undefined') <del> return { output: 'Success', emul...
2
Javascript
Javascript
add docs for ngvalue directive
805efb4c47f457004a5b35f532712b9b62105a99
<ide><path>src/ng/directive/input.js <ide> var ngListDirective = function() { <ide> <ide> <ide> var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/; <del> <add>/** <add> * @ngdoc directive <add> * @name ng.directive:ngValue <add> * <add> * @description <add> * Binds the given expression to the value of `input[select]` o...
1
Javascript
Javascript
try another approach at fixing windows flow issues
025d867dceccfa54cfa12122a982ad3c3eff995a
<ide><path>packages/events/TopLevelEventTypes.js <ide> * @flow <ide> */ <ide> <del>import type {DOMTopLevelEventType} from 'react-dom/src/events/DOMTopLevelEventTypes'; <del> <ide> type RNTopLevelEventType = <ide> | 'topMouseDown' <ide> | 'topMouseMove' <ide> type RNTopLevelEventType = <ide> | 'topTouchMove' <...
4
Go
Go
remove support for overlay/overlay2 without d_type
0abb8dec3f730f3ad2cc9a161c97968a6bfd0631
<ide><path>daemon/graphdriver/driver.go <ide> package graphdriver <ide> <ide> import ( <del> "errors" <ide> "fmt" <ide> "io" <ide> "os" <ide> const ( <ide> var ( <ide> // All registered drivers <ide> drivers map[string]InitFunc <del> <del> // ErrNotSupported returned when driver is not supported. <del> ErrNotSupp...
6
Text
Text
fix typo in 'find_in_batches' example
8f24923d7ad3c838437fba2ee3e5eee655660bbc
<ide><path>guides/source/active_record_querying.md <ide> end <ide> `find_in_batches` works on model classes, as seen above, and also on relations: <ide> <ide> ```ruby <del>Invoice.pending.find_in_batches do |invoice| <add>Invoice.pending.find_in_batches do |invoices| <ide> pending_invoices_export.add_invoices(invoic...
1
Javascript
Javascript
enable last 4 italian certs
a901ad1a604944087e71dac5073fac514aaaae30
<ide><path>config/i18n/all-langs.js <ide> const auditedCerts = { <ide> 'front-end-libraries', <ide> 'data-visualization', <ide> 'apis-and-microservices', <del> 'quality-assurance' <add> 'quality-assurance', <add> 'scientific-computing-with-python', <add> 'data-analysis-with-python', <add> 'in...
1
Python
Python
add a test for pad-wrapping by length 0
87131155b86b221e63cf8d9ead61490a59e3db53
<ide><path>numpy/lib/tests/test_arraypad.py <ide> def test_check_02(self): <ide> b = np.array([3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]) <ide> assert_array_equal(a, b) <ide> <add> def test_pad_with_zero(self): <add> a = np.ones((3, 5)) <add> b = np.pad(a, (0, 5), mode="wrap") <add> asse...
1
Python
Python
clarify docs for fliplr() / flipud()
ada38d2229f87823fd3b2a9d8ed104c3c22bbf4e
<ide><path>numpy/lib/twodim_base.py <ide> def _flip_dispatcher(m): <ide> @array_function_dispatch(_flip_dispatcher) <ide> def fliplr(m): <ide> """ <del> Flip array in the left/right direction. <add> Reverse the order of elements along axis 1 (left/right). <ide> <del> Flip the entries in each row in the le...
1
Go
Go
avoid some allocations
132da3f036287896cb3ba9f9f2573ad36bbb69cc
<ide><path>daemon/logger/jsonfilelog/jsonfilelog.go <ide> import ( <ide> <ide> "github.com/docker/docker/daemon/logger" <ide> "github.com/docker/docker/pkg/jsonlog" <add> "github.com/docker/docker/pkg/timeutils" <ide> ) <ide> <ide> // JSONFileLogger is Logger implementation for default docker logging: <ide> func Ne...
1
Javascript
Javascript
add update() to react.addons
854d1f7c1b107436e4bac87ec0d5f35e28ce4b20
<ide><path>src/browser/ReactWithAddons.js <ide> var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup'); <ide> <ide> var cx = require('cx'); <ide> var cloneWithProps = require('cloneWithProps'); <add>var update = require('update'); <ide> <ide> React.addons = { <ide> LinkedStateMixin: LinkedStateMixin, <ide...
1
Mixed
Ruby
use correct timezone when parsing date in json
a3ddd5f1572f6ebf95f4c0a789413ee1b2ecbab5
<ide><path>activesupport/CHANGELOG.md <add>* Fix parsing JSON time in `YYYY-MM-DD hh:mm:ss` (without `Z`). <add> Before such time was considered in UTC timezone, now, to comply with standard, it uses local timezone. <add> <add> *Grzegorz Witek* <add> <ide> * Match `HashWithIndifferentAccess#default`'s behavio...
3
PHP
PHP
fix route list and kernel
abd85c916df0cc0a6dc55de943a39db8b7eb4e0d
<ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php <ide> protected function getControllerMiddlewareFromInstance($controller, $method) <ide> <ide> $results = []; <ide> <del> foreach ($controller->getMiddleware() as $name => $options) { <del> if (! $method || ! $this->methodExcl...
4
Python
Python
fix typing errors reported by dmypy
a091c1fbf9dfec84953bbe2c938081a1b4fc0f63
<ide><path>airflow/plugins_manager.py <ide> <ide> log = logging.getLogger(__name__) <ide> <del>import_errors = {} <add>import_errors: Dict[str, str] = {} <ide> <ide> plugins = None # type: Optional[List[AirflowPlugin]] <ide> <ide><path>tests/providers/google/marketing_platform/operators/test_display_video.py <ide>...
2
Text
Text
add version note to path aliases docs
4d0d09ba9da07fcfe4825ca4e3118dabfae9c45f
<ide><path>docs/advanced-features/module-path-aliases.md <ide> description: Configure module path aliases that allow you to remap certain impor <ide> <ide> # Absolute Imports and Module path aliases <ide> <del>Next.js automatically supports the `tsconfig.json` and `jsconfig.json` `"paths"` and `"baseUrl"` options. <a...
1
Text
Text
add solution block
a3eab17b4c2cea1e69554139dc985898d57c8970
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.portuguese.md <ide> tests: <ide> ## Solução <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><style> <add> .injected-text { <add> margin-bottom: -25px; <add> ...
1
Text
Text
add changelog for v1.3.0-beta.18 and v1.2.22
b33716f42a7d0e6d104fd5552dff6e5795174895
<ide><path>CHANGELOG.md <add><a name="1.3.0-beta.18"></a> <add># 1.3.0-beta.18 spontaneous-combustion (2014-08-12) <add> <add> <add>## Bug Fixes <add> <add>- **$compile:** make '='-bindings NaN-aware <add> ([5038bf79](https://github.com/angular/angular.js/commit/5038bf79c6c8251d7449d887b44a4321e619c534), <add> [#855...
1
Python
Python
fix typo in postgreshook
47265e7b58bc28bcbbffc981442b6cc27a3af39c
<ide><path>airflow/providers/google/cloud/hooks/cloud_sql.py <ide> def cleanup_database_hook(self) -> None: <ide> if not self.db_hook: <ide> raise ValueError("The db_hook should be set") <ide> if not isinstance(self.db_hook, PostgresHook): <del> raise ValueError(f"...
1
Text
Text
move princejwesley to emeritus
ff82b76ff044ea66f2f7155a1b154e333b827b6d
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Ali Ijaz Sheikh** &lt;ofrobots@google.com&gt; (he/him) <ide> * [oyyd](https://github.com/oyyd) - <ide> **Ouyang Yadong** &lt;oyydoibh@gmail.com&gt; (he/him) <del>* [princejwesley](https://github.com/princejwesley) - <del...
1
Mixed
Ruby
add ability to ignore tables in the schema cache
e3b4a462f7c0737258ee1c055126904c941cb424
<ide><path>activerecord/CHANGELOG.md <add>* Add config option for ignoring tables when dumping the schema cache. <add> <add> Applications can now be configured to ignore certain tables when dumping the schema cache. <add> <add> The configuration option can table an array of tables: <add> <add> ```ruby <add> ...
4
Go
Go
support parallel rm
2b773257e0ee45db2c413774a3affae01c7996c1
<ide><path>cli/command/container/rm.go <ide> func runRm(dockerCli *command.DockerCli, opts *rmOptions) error { <ide> ctx := context.Background() <ide> <ide> var errs []string <del> for _, name := range opts.containers { <del> if name == "" { <add> options := types.ContainerRemoveOptions{ <add> RemoveVolumes: opts....
2
Ruby
Ruby
fix typo `--ssl-cipher`
02b50df3e37c463c9fb6acea10697f94538230fd
<ide><path>activerecord/lib/active_record/tasks/mysql_database_tasks.rb <ide> def prepare_command_options <ide> 'sslca' => '--ssl-ca', <ide> 'sslcert' => '--ssl-cert', <ide> 'sslcapath' => '--ssl-capath', <del> 'sslcipher' => '--ssh-cipher', <add> 'sslcipher' => '--...
1
Javascript
Javascript
define eacces as a runtime error
11b6c0de4114fa499bcffbda91d8cea9d3bdea03
<ide><path>lib/internal/child_process.js <ide> const { isUint8Array } = require('internal/util/types'); <ide> const spawn_sync = process.binding('spawn_sync'); <ide> <ide> const { <add> UV_EACCES, <ide> UV_EAGAIN, <ide> UV_EINVAL, <ide> UV_EMFILE, <ide> ChildProcess.prototype.spawn = function(options) { <ide> ...
1