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 | extract active donors from selectors | 66d628ff2fecac43186d4da177d3a2e69e5e706d | <ide><path>client/src/components/Donation/components/DonateText.js
<del>import React, { Component } from 'react';
<add>import React from 'react';
<add>import PropTypes from 'prop-types';
<add>import { connect } from 'react-redux';
<add>import { createSelector } from 'reselect';
<ide>
<del>class DonateText extends Comp... | 2 |
Python | Python | reuse channel when sending remote control commands | 8a3ed48a5be062715b836a04e5f1f5d4eb87ae90 | <ide><path>celery/task/control.py
<ide> def broadcast(self, command, arguments=None, destination=None,
<ide>
<ide> """
<ide> with self.app.default_connection(connection, connect_timeout) as conn:
<add> if channel is None:
<add> if not getattr(conn, "_publisher_chan", None):
<a... | 1 |
Javascript | Javascript | add regression test for async iteration completion | 24e81d7c5ae785a015ac56ad75fe83120a998a3a | <ide><path>test/parallel/test-stream-readable-async-iterators.js
<ide> async function tests() {
<ide> p.then(common.mustCall()).catch(common.mustNotCall());
<ide> }
<ide>
<add>{
<add> // AsyncIterator should finish correctly if destroyed.
<add>
<add> const r = new Readable({
<add> objectMode: true,
<add> rea... | 1 |
Ruby | Ruby | add missing nodocs to mysql adapter | 89357455eb65603fc6627088ed6b79ecbc52b5f3 | <ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
<ide> def last_inserted_id(result)
<ide> @connection.insert_id
<ide> end
<ide>
<del> module Fields
<add> module Fields # :nodoc:
<ide> class DateTime < Type::DateTime
<ide> def cast_value(value)
<id... | 1 |
Ruby | Ruby | check target writable for move_back | 8bf948482325bdc10ab7d0eff75ce0da4d5daf1c | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/moved.rb
<ide> def move_back(skip: false, force: false, command: nil, **options)
<ide> ohai "Moving #{self.class.english_name} '#{target.basename}' back to '#{source}'."
<ide> source.dirname.mkpath
<ide>
<del> if source.parent.writable?
<add> ... | 1 |
Go | Go | add progress bar to docker load | fae09e25698006a190d14fe64f1576f68431fabf | <ide><path>api/client/load.go
<ide> import (
<ide> func (cli *DockerCli) CmdLoad(args ...string) error {
<ide> cmd := Cli.Subcmd("load", nil, Cli.DockerCommands["load"].Description, true)
<ide> infile := cmd.String([]string{"i", "-input"}, "", "Read from a tar archive file, instead of STDIN")
<add> quiet := cmd.Bool(... | 5 |
Python | Python | add warning when left padding should be used | a357ed50e7144d6910dd924cb334518e90e59392 | <ide><path>src/transformers/generation_flax_utils.py
<ide> def generate(
<ide> if decoder_start_token_id is None and self.config.is_encoder_decoder:
<ide> raise ValueError("`decoder_start_token_id` has to be defined for encoder-decoder generation.")
<ide>
<add> # decoder-only models should u... | 3 |
Python | Python | expose skip output to test runner | 3cbb5870e5c8ce6a9da718c7fff6f50709545ed5 | <ide><path>tools/test.py
<ide> from Queue import Queue, Empty
<ide>
<ide> logger = logging.getLogger('testrunner')
<add>skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE)
<ide>
<ide> VERBOSE = False
<ide>
<ide> def HasRun(self, output):
<ide> for l in output.output.stdout.splitlines():
<ide> l... | 1 |
Javascript | Javascript | port the fixes too | a87aac00e4d1efd8afe5e5631e8ab98585ac8cc3 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> // information.
<ide> getDirectoryStatus (directoryPath) {
<ide> return this.relativizeToWorkingDirectory(directoryPath)
<del> .then(relativePath => this._getStatus([relativePath]))
<add> .then(relativePath =>... | 1 |
PHP | PHP | add comments for possibly confusing code | f19916bccf627535e77e496c95fd4e0e20e8ea46 | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> protected function _getController($exception) {
<ide> } catch (Exception $e) {
<ide> $startup = false;
<ide> }
<del> if ($startup === false && !empty($controller) && $controller->Components->enabled('RequestHandler')) {
<add> // Retry RequestHandler, a... | 1 |
Python | Python | fix occurences of "e.g"/"i.e" -> "e.g."/"i.e." | bd3149fe4837034116287a0b2e27627b72be4f73 | <ide><path>celery/conf.py
<ide>
<ide> The type of exchange. If the exchange type is ``direct``, all messages
<ide> receives all tasks. However, if the exchange type is ``topic``, you can
<del>route e.g some tasks to one server, and others to the rest.
<add>route e.g. some tasks to one server, and others to the rest.
<... | 2 |
Ruby | Ruby | remove reference to full_clone in coretap | 6f6cbc592ac32a760aeb02772420732b9238db59 | <ide><path>Library/Homebrew/tap.rb
<ide> def self.ensure_installed!
<ide>
<ide> # CoreTap never allows shallow clones (on request from GitHub).
<ide> def install(quiet: false, clone_target: nil, force_auto_update: nil)
<del> raise "Shallow clones are not supported for homebrew-core!" unless full_clone
<del>
<id... | 1 |
Javascript | Javascript | use prettyformat for metro logging | abd7faf3547e165abfc52383d3709b9d4d2e9006 | <ide><path>Libraries/Utilities/HMRClient.js
<ide>
<ide> const Platform = require('./Platform');
<ide> const invariant = require('invariant');
<add>const prettyFormat = require('pretty-format');
<ide>
<ide> const MetroHMRClient = require('metro/src/lib/bundle-modules/HMRClient');
<ide>
<ide> const HMRClient: HMRClien... | 1 |
Text | Text | indicate the format of process.version | 0dae5d93809450a7dce1f9370473a1ffc480657d | <ide><path>doc/api/process.md
<ide> added: v0.1.3
<ide>
<ide> * {string}
<ide>
<del>The `process.version` property returns the Node.js version string.
<add>The `process.version` property returns the Node.js version string in the form of
<add>`v<major>.<minor>.<patch>`.
<ide>
<ide> ```js
<ide> console.log(`Version: $... | 1 |
Text | Text | fix code example in ecdh.setpublickey() | aed17e963ae6c4fb8b745116823863450761d33d | <ide><path>doc/api/crypto.md
<ide> Example (obtaining a shared secret):
<ide> const {
<ide> createECDH,
<ide> createHash,
<del>} = await crypto('crypto');
<add>} = await import('crypto');
<ide>
<ide> const alice = createECDH('secp256k1');
<ide> const bob = createECDH('secp256k1'); | 1 |
Java | Java | fix marbles of first(t) | 72f24e2d1603a4b210d3331911b242ce84c5b0a7 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java
<ide> public final Maybe<T> firstElement() {
<ide> * Returns a {@link Single} that emits only the very first item emitted by this {@code Flowable}, or a default
<ide> * item if this {@code Flowable} completes without emitting anything.
<ide> ... | 2 |
Ruby | Ruby | add missing require | 687db9f86d23c21decddc4ec981f36e1c5fc8447 | <ide><path>actionpack/test/abstract/abstract_controller_test.rb
<ide> require 'abstract_unit'
<add>require 'set'
<ide>
<ide> module AbstractController
<ide> module Testing | 1 |
PHP | PHP | fix docblock of database component | 618114204c2be4e1e305cb1ed502d16e0ec1f0c7 | <ide><path>src/Illuminate/Database/Connection.php
<ide> class Connection implements ConnectionInterface
<ide> /**
<ide> * All of the callbacks that should be invoked before a query is executed.
<ide> *
<del> * @var array
<add> * @var \Closure[]
<ide> */
<ide> protected $beforeExecutingCal... | 3 |
Javascript | Javascript | fix jshint errors | 05a32f07339b4b0c61e36ee87db079d143567631 | <ide><path>Gruntfile.js
<ide> var fs = require('fs'),
<ide> module.exports = function (grunt) {
<ide>
<ide> var minifiedFiles = {
<del> 'min/langs.min.js' : ['min/langs.js'],
<del> 'min/moment.min.js' : ['moment.js']
<del> };
<del>
<del> var minLangs = {
<del> langs: {
<del> ... | 1 |
Python | Python | remove unused variable in configure.py | 32d58d72710e262a94693488b57c60fa66a6653e | <ide><path>configure.py
<ide> def icu_download(path):
<ide> 'variables': {}
<ide> }
<ide> icu_config_name = 'icu_config.gypi'
<del> def write_config(data, name):
<del> return
<ide>
<ide> # write an empty file to start with
<ide> write(icu_config_name, do_not_edit + | 1 |
PHP | PHP | try a larger value for the fractional tests | 75792dc8ed71b032bcc906af41f1cb3557a02512 | <ide><path>tests/Fixture/DatatypesFixture.php
<ide> class DatatypesFixture extends TestFixture
<ide> public $fields = [
<ide> 'id' => ['type' => 'biginteger'],
<ide> 'cost' => ['type' => 'decimal', 'length' => 20, 'precision' => 1, 'null' => true],
<del> 'fraction' => ['type' => 'decimal', 'l... | 2 |
Python | Python | append planid to extra field | 27921de49eafd43765ff87e1860c5885495628f5 | <ide><path>libcloud/compute/drivers/linode.py
<ide> def _to_nodes(self, objs):
<ide> state=self.LINODE_STATES[o["STATUS"]],
<ide> driver=self.connection.driver)
<ide> n.extra = copy(o)
<add> n.extra["PLANID"] = self._linode_plan_... | 1 |
Text | Text | remove wrong lxc support | 0e8d41272c7e5979d8a3f8676c94320f6c2ff691 | <ide><path>docs/introduction/understanding-docker.md
<ide> including: AUFS, btrfs, vfs, and DeviceMapper.
<ide>
<ide> ### Container format
<ide> Docker combines these components into a wrapper we call a container format. The
<del>default container format is called `libcontainer`. Docker also supports
<del>traditional... | 1 |
Text | Text | unify link formatting in buffer.md | 7aa7971eec258ce1f8895ff66c5de78c6a59710f | <ide><path>doc/api/buffer.md
<ide>
<ide> > Stability: 2 - Stable
<ide>
<del>Prior to the introduction of [`TypedArray`], the JavaScript language had no
<add>Prior to the introduction of [`TypedArray`][], the JavaScript language had no
<ide> mechanism for reading or manipulating streams of binary data. The `Buffer` cl... | 1 |
Javascript | Javascript | fix helpers, layoutservice and logarithmic tests | a93b3f45ac0e25bdda01d558acbffbe1d1e36e24 | <ide><path>test/core.helpers.tests.js
<ide> describe('Core helper tests', function() {
<ide> helpers = window.Chart.helpers;
<ide> });
<ide>
<del> it('Should iterate over an array and pass the extra data to that function', function() {
<add> it('should iterate over an array and pass the extra data to that function'... | 3 |
PHP | PHP | support aggregate drivers | 7ba0c22133da7ca99d1ec1459630de01f95130c1 | <ide><path>src/Illuminate/Log/LogManager.php
<ide> public function driver($driver = null)
<ide> protected function get($name)
<ide> {
<ide> try {
<del> return $this->stores[$name] ?? with($this->resolve($name), function ($monolog) use ($name) {
<del> return $this->tap($name, ne... | 1 |
Mixed | Javascript | fix 404 [ci skip] | 6e28760316d2b1466bf74651e969669e7c57a763 | <ide><path>website/src/components/button.js
<ide> Button.defaultProps = {
<ide> }
<ide>
<ide> Button.propTypes = {
<del> to: PropTypes.string.isRequired,
<add> to: PropTypes.string,
<ide> variant: PropTypes.oneOf(['primary', 'secondary', 'tertiary']),
<ide> large: PropTypes.bool,
<ide> icon: PropType... | 4 |
Go | Go | use errors.is() to handle image store errors | d131147a5cc0f2972f52b487a4b966013749c145 | <ide><path>daemon/images/image_list.go
<ide> package images // import "github.com/docker/docker/daemon/images"
<ide>
<ide> import (
<ide> "context"
<add> "errors"
<ide> "fmt"
<ide> "sort"
<ide> "time"
<ide> func (i *ImageService) Images(ctx context.Context, opts types.ImageListOptions)
<ide> if err != nil {
<id... | 3 |
Text | Text | add note about debugging worker_threads | 84a95b82204a987fb3fc859e757a8c0df004a1f0 | <ide><path>doc/api/debugger.md
<ide> debugging sessions.)
<ide> If the Chrome browser is older than 66.0.3345.0,
<ide> use `inspector.html` instead of `js_app.html` in the above URL.
<ide>
<add>Chrome DevTools doesn't support debugging [Worker Threads][] yet.
<add>[ndb][] can be used to debug them.
<add>
<ide> [Chrome... | 1 |
Ruby | Ruby | simplify the condions lambda generation | d10cadca0cda894ce4536a3b9d9367bc6f5d9b0e | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def compute_identifier(filter)
<ide> end
<ide>
<ide> def conditions_lambdas
<del> conditions = []
<del>
<del> unless options[:if].empty?
<del> lambdas = Array(options[:if]).map { |c| make_lambda c }
<del> conditi... | 1 |
Text | Text | update pr template | d9efd7e25bbe937893a9818cfda62ca3f72ffe0d | <ide><path>.github/pull_request_template.md
<ide> * [ ] All functions and variable names follow Python naming conventions.
<ide> * [ ] All function parameters and return values are annotated with Python [type hints](https://docs.python.org/3/library/typing.html).
<ide> * [ ] All functions have [doctests](https://docs.p... | 1 |
Text | Text | improve challenge description in spanish | c957f5d4f2176f8cf5207eb95091dd1eef1cca22 | <ide><path>curriculum/challenges/spanish/03-front-end-libraries/bootstrap/create-bootstrap-wells.spanish.md
<ide> localeTitle: Crear Bootstrap Wells
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Bootstrap tiene una clase llamada <code>well</code> que puede crear un sentido visual de profundidad ... | 1 |
Javascript | Javascript | delete unused code in console.js | 3592122af3856ac58273dfeeeac59f6439fb93ef | <ide><path>Libraries/polyfills/console.js
<ide> const inspect = (function() {
<ide> return typeof arg === 'function';
<ide> }
<ide>
<del> function isPrimitive(arg) {
<del> return (
<del> arg === null ||
<del> typeof arg === 'boolean' ||
<del> typeof arg === 'number' ||
<del> typeof arg ==... | 1 |
Ruby | Ruby | remove double parenthesis in docs | 46288f5935b03b48b2593c52f947dc4c5c505b90 | <ide><path>actionpack/lib/action_view/helpers/atom_feed_helper.rb
<ide> module AtomFeedHelper
<ide> # app/views/posts/index.atom.builder:
<ide> # atom_feed do |feed|
<ide> # feed.title("My great blog!")
<del> # feed.updated((@posts.first.created_at))
<add> # feed.upda... | 1 |
Javascript | Javascript | emit timeout on compat request and response | 32902d09b43e9d7f19eb6178ef5db835652d97c1 | <ide><path>lib/internal/http2/compat.js
<ide> function onStreamCloseRequest() {
<ide> req.emit('close');
<ide> }
<ide>
<add>function onStreamTimeout(kind) {
<add> return function onStreamTimeout() {
<add> const obj = this[kind];
<add> obj.emit('timeout');
<add> };
<add>}
<add>
<ide> class Http2ServerRequest ... | 3 |
Javascript | Javascript | note issue with large number and step validation | 62660be328efb890ec8584311ac0346829b9577a | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> * error docs for more information and an example of how to convert your model if necessary.
<ide> * </div>
<ide> *
<del> * ## Issues with HTML5 constraint validation
<add> *
<add> *
<add> * @knownIssue
<add> *
<add> * ### HTML5 cons... | 1 |
Python | Python | add pure implementation of k-nearest neighbours | b1a769cf44df6f1eec740e10e393fab548e3822a | <ide><path>machine_learning/k_nearest_neighbours.py
<add>import numpy as np
<add>from collections import Counter
<add>from sklearn import datasets
<add>from sklearn.model_selection import train_test_split
<add>
<add>data = datasets.load_iris()
<add>
<add>X = np.array(data['data'])
<add>y = np.array(data['target'])
<add... | 1 |
Text | Text | add next.js analytics to documentation. | d82672c39739ce7381726105981a6bd59f36fea5 | <ide><path>docs/advanced-features/measuring-performance.md
<ide> ---
<del>description: Measure and track page performance using Next.js's build-in performance relayer
<add>description: Measure and track page performance using Next.js Analytics
<ide> ---
<ide>
<ide> # Measuring performance
<ide>
<del>Next.js has a bui... | 1 |
Python | Python | change a comment in the docker plugin | 6f51c5fd43eeda78063e6d31c2ae45007024e808 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> # Get stats for all containers
<ide> stats['containers'] = []
<ide> for container in containers:
<del> # Should we display the container stats ?
<add> # Shall we display the stats... | 1 |
PHP | PHP | change url validation to use filter_var | 4e539160217f5520a1dcd1efe00290868e9850e2 | <ide><path>cake/libs/validation.php
<ide> public static function ssn($check, $regex = null, $country = null) {
<ide> * @return boolean Success
<ide> */
<ide> public static function url($check, $strict = false) {
<del> self::__populateIp();
<del> $validChars = '([' . preg_quote('!"$&\'()*+,-.@_:;=~') . '\/0-9a-z]|(... | 1 |
Ruby | Ruby | avoid repeated interpolation in regexp | 3c73cc28e0bf12d54f344135b35c5af8feaf0a77 | <ide><path>Library/Homebrew/bottles.rb
<ide> def bottle_suffix revision=nil
<ide> end
<ide>
<ide> def bottle_native_regex
<del> /(\.#{MacOS.cat}\.bottle\.(\d+\.)?tar\.gz)$/
<add> /(\.#{MacOS.cat}\.bottle\.(\d+\.)?tar\.gz)$/o
<ide> end
<ide>
<ide> def bottle_regex | 1 |
PHP | PHP | remove duplicate code | dd91b0c3e6cc53db300c5b90f594055262318650 | <ide><path>src/Error/ErrorTrap.php
<ide> class ErrorTrap
<ide> public function __construct(array $options = [])
<ide> {
<ide> $this->setConfig($options);
<del> if ($this->_getConfig('errorRenderer') === null) {
<del> $this->setConfig('errorRenderer', $this->chooseErrorRenderer());
<del... | 2 |
Ruby | Ruby | remove unnecessary skips | 25b6c0c23694a53176720a6c4330c6730707aaa7 | <ide><path>Library/Homebrew/test/test_os_mac_dependency_collector.rb
<ide> def test_ld64_dep_leopard_or_newer
<ide> end
<ide>
<ide> def test_ant_dep_mavericks_or_newer
<del> skip "Only for Mac OS" unless OS.mac?
<ide> MacOS.stubs(:version).returns(MacOS::Version.new("10.9"))
<ide> @d.add :ant => :build
... | 1 |
PHP | PHP | fix auth helper | 8cb8de2609f00c7c4e335e932d88f432e4f047d2 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function asset($path, $secure = null)
<ide> */
<ide> function auth($guard = null)
<ide> {
<del> return app(AuthFactory::class)->guard($guard);
<add> if (is_null($guard)) {
<add> return app(AuthFactory::class);
<add> } el... | 1 |
Javascript | Javascript | remove validateopts for bundler class | 8f87ab648c1cb76913824d0ff378364b492c481a | <ide><path>local-cli/util/Config.js
<ide> export type ConfigT = {
<ide> extraNodeModules?: {[id: string]: string},
<ide> getAssetExts?: () => Array<string>,
<ide> getTransformModulePath?: () => string,
<del> getTransformOptions?: GetTransformOptions<*>,
<add> getTransformOptions?: GetTransformOptions,
<ide> t... | 5 |
Go | Go | add test coverage to opts and refactor | dfc6c04fa3f7dcb0e78e9dd5e8e4dd285b98546d | <ide><path>daemon/config.go
<ide> func (config *Config) InstallCommonFlags() {
<ide> flag.StringVar(&config.CorsHeaders, []string{"-api-cors-header"}, "", "Set CORS headers in the remote API")
<ide> // FIXME: why the inconsistency between "hosts" and "sockets"?
<ide> opts.IPListVar(&config.Dns, []string{"#dns", "-dn... | 12 |
Javascript | Javascript | fix more tests | 36a8358ae70cc4e0e862e4ea4c9d638e2f66d252 | <ide><path>local-cli/__mocks__/beeper.js
<add>// beeper@1.1.0 has a return statement outside of a function
<add>// and therefore doesn't parse. Let's mock it so that we can
<add>// run the tests.
<add>
<add>module.exports = function () {}; | 1 |
PHP | PHP | add cakesession fixture | 2e71ef8f261f9e8226fe5cb80f23f277dbe65944 | <ide><path>lib/Cake/Test/Fixture/CakeSessionFixture.php
<add><?php
<add>/**
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<add> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * Redistributions o... | 1 |
Java | Java | add all test routes as server snapshot tests | 393bf88be695ea7c2907b274038b3f4d0f4a3432 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java
<ide> import com.facebook.react.bridge.ReactContext;
<ide> import com.facebook.react.common.LifecycleState;
<ide> import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
<add>import com.facebook.react.modules... | 1 |
PHP | PHP | add time() to formhelper | 2eb552fa6599a7758c0d70836d91a718f8f9b71d | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _datetimeOptions($options) {
<ide> return $options;
<ide> }
<ide>
<add>/**
<add> * Generate time inputs.
<add> *
<add> * ### Options:
<add> *
<add> * - `interval` The interval for the minutes select. Defaults to 1
<add> * - `empty` - If true, the em... | 2 |
Text | Text | add article for javascript string.lastindexof() | ef7a13dda30460cd79333d8254083f28e78cca70 | <ide><path>guide/english/javascript/standard-objects/string/string-prototype-lastindexof/index.md
<ide> title: String.prototype.lastIndexOf
<ide> ---
<ide> ## String.prototype.lastIndexOf
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/javascript/standard-objects/string... | 1 |
Java | Java | fix error message in resttemplate | f3c2bb65570fe40919d518995ee8a3898f03b069 | <ide><path>spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
<ide> protected <T> T doExecute(URI url, HttpMethod method, RequestCallback requestCal
<ide> }
<ide> }
<ide> catch (IOException ex) {
<add> String resource = url.toString();
<add> String query = url.getRawQuery();
<add> re... | 2 |
Python | Python | improve np.sort docstring | 5b0069c08d00e871d74c6533e0b0eeb3107e8f70 | <ide><path>numpy/core/fromnumeric.py
<ide> def sort(a, axis=-1, kind=None, order=None):
<ide>
<ide> .. versionadded:: 1.12.0
<ide>
<del> quicksort has been changed to an introsort which will switch
<del> heapsort when it does not make enough progress. This makes its
<del> worst case O(n*log(n)).
<del>
<d... | 1 |
Text | Text | remove "priority" prop from image docs | 69ff649999a1f0689a9dd7a904ae6840f17d7174 | <ide><path>docs/api-reference/next/image.md
<ide> We recommend setting `sizes` when `layout="responsive"` and your image will not
<ide>
<ide> The quality of the optimized image, an integer between 1 and 100 where 100 is the best quality. Defaults to 75.
<ide>
<del>### priority
<add><!-- ### priority
<ide>
<ide> When... | 1 |
PHP | PHP | fix some comments | cc7bef5b85b8192776bbaab79e955f27045acd5c | <ide><path>src/Illuminate/Database/Connectors/SQLiteConnector.php
<ide> public function connect(array $config)
<ide>
<ide> $path = realpath($config['database']);
<ide>
<del> // Here we'll verify that the SQLite database exists before we going further
<add> // Here we'll verify that the SQLite database exists befo... | 5 |
PHP | PHP | fix use of defunt property $viewclass | 14b5566379cbe235bcea999a26fbea57ac0231e8 | <ide><path>src/View/CellTrait.php
<ide> protected function _createCell(string $className, string $action, ?string $plugi
<ide>
<ide> $class = static::class;
<ide> $builder->setClassName($class);
<del> $instance->viewClass = $class;
<add> $instance->viewBuilder()->setClassN... | 2 |
Ruby | Ruby | use ruby_platform in case of cross compiled ruby | 1ca1b1ab9176c780989be7e5a11d27fb97fe663a | <ide><path>railties/lib/rails/engine.rb
<ide> def find_root_with_flag(flag, default=nil)
<ide> root = File.exist?("#{root_path}/#{flag}") ? root_path : default
<ide> raise "Could not find root path for #{self}" unless root
<ide>
<del> RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ?
<add> RUBY_PLAT... | 1 |
Python | Python | remove unused argument in language | 4ae9ea76845ad141f12d5bfa82ed5975830322ca | <ide><path>spacy/language.py
<ide> def __call__(self, text, disable=[]):
<ide> def make_doc(self, text):
<ide> return self.tokenizer(text)
<ide>
<del> def update(self, docs, golds, drop=0., sgd=None, losses=None,
<del> update_shared=False):
<add> def update(self, docs, golds, drop=0., sgd=... | 1 |
Ruby | Ruby | add check of argument | 97544ed1770bf3c169f3b8f3711917bbf37045bc | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def read_multi(*names)
<ide> # the cache with the given keys, then that data is returned. Otherwise,
<ide> # the supplied block is called for each key for which there was no data,
<ide> # and the result will be written to the cache and returne... | 2 |
Python | Python | fix typo in docstring for `densefeatures` | fc00d58f810553a177400e441b903263db96c1e1 | <ide><path>keras/feature_column/dense_features_v2.py
<ide> class DenseFeatures(dense_features.DenseFeatures):
<ide> ```python
<ide> price = tf.feature_column.numeric_column('price')
<ide> keywords_embedded = tf.feature_column.embedding_column(
<del> tf.feature_column.categorical_column_with_hash_bucket("keyw... | 1 |
Javascript | Javascript | build alternate browser scripts without vhs | c98912fd92090e81feba3236f0f8d5b4e8c58b03 | <ide><path>build/rollup.js
<ide> const primedBabel = babel({
<ide> plugins: ['external-helpers']
<ide> });
<ide>
<del>const coreEs = {
<add>const core = {
<ide> options: {
<ide> entry: 'src/js/video.js',
<ide> plugins: [
<ide> minifiedUmd.options.plugins.splice(4, 0, uglify({
<ide> }
<ide> }));
<ide>
<a... | 1 |
Python | Python | fix invalid escape sequence | 2096b6d20d45e990a77ebea6735a41c191f008b0 | <ide><path>numpy/linalg/linalg.py
<ide> def _lstsq_dispatcher(a, b, rcond=None):
<ide>
<ide> @array_function_dispatch(_lstsq_dispatcher)
<ide> def lstsq(a, b, rcond="warn"):
<del> """
<add> r"""
<ide> Return the least-squares solution to a linear matrix equation.
<ide>
<ide> Solves the equation :math:`a... | 1 |
Ruby | Ruby | support procs for assert_{enqueued,performed}_with | b16c38ab6a9841003ae23a4d007462e39268f82a | <ide><path>activejob/lib/active_job/test_helper.rb
<ide> def assert_no_performed_jobs(only: nil, except: nil, queue: nil, &block)
<ide> # assert_enqueued_with(at: Date.tomorrow.noon, queue: "my_queue")
<ide> # end
<ide> #
<del> # The +at+ and +args+ arguments also accept a proc.
<add> # The give... | 2 |
PHP | PHP | remove response from cookiecomponent | ab4a4716cd3fe2c547c222ab1060093003424e86 | <ide><path>src/Controller/Component/CookieComponent.php
<ide> class CookieComponent extends Component
<ide> protected $_loaded = [];
<ide>
<ide> /**
<del> * A reference to the Controller's Cake\Network\Response object
<add> * A reference to the Controller's Cake\Network\Response object.
<add> * Cur... | 2 |
Text | Text | improve dep0090 text | c046011388f509b5c3d94804796248d4dcb64cfc | <ide><path>doc/api/deprecations.md
<ide> changes:
<ide> Type: End-of-Life
<ide>
<ide> Node.js used to support all GCM authentication tag lengths which are accepted by
<del>OpenSSL when calling [`decipher.setAuthTag()`][]. Beginning with node v11.0.0,
<del>only authentication tag lengths of 128, 120, 112, 104, 96, 64, ... | 1 |
Javascript | Javascript | improve format() performance further | c490b8ba54df6c730f7bfd02aaafe7c34f571f9e | <ide><path>lib/util.js
<ide> function tryStringify(arg) {
<ide> }
<ide> }
<ide>
<del>const formatRegExp = /%[sdj%]/g;
<ide> exports.format = function(f) {
<ide> if (typeof f !== 'string') {
<ide> const objects = new Array(arguments.length);
<ide> exports.format = function(f) {
<ide> return objects.join(' '... | 1 |
Go | Go | fix spurious overlay errors | 004e56a4d10297093e5cc79237d92fc069aeef7d | <ide><path>libnetwork/agent.go
<ide> func (n *network) addDriverWatches() {
<ide> }
<ide>
<ide> c.agent.networkDB.WalkTable(tableName, func(nid, key string, value []byte) bool {
<del> d.EventNotify(driverapi.Create, n.ID(), tableName, key, value)
<add> if nid == n.ID() {
<add> d.EventNotify(driverapi.Create... | 3 |
PHP | PHP | add missing use statement | 00602c54c24667ccf3a64f461079d5458d17761e | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> use Cake\Event\Event;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\View\Helper;
<add>use Cake\View\View;
<ide>
<ide> /**
<ide> * Pagination Helper class for easy generation of pagination links. | 1 |
Python | Python | simplify architecture and larger-scale test runs | 400b19353de9768805b6a4bcc7bcd72ba57bd001 | <ide><path>examples/pipeline/wiki_entity_linking/run_el.py
<ide> def evaluate(predictions, golds, to_print=True):
<ide> for pred, gold in zip(predictions, golds):
<ide> is_correct = pred == gold
<ide> if not pred:
<del> fn += 1
<add> if not is_correct: # we don't care about tn... | 3 |
Ruby | Ruby | restore fetch in stage | 58cecf38cf66117dddb09af0020d3426f1e90da2 | <ide><path>Library/Homebrew/formula.rb
<ide> def patch
<ide> # @private
<ide> def brew
<ide> @prefix_returns_versioned_prefix = true
<del> active_spec.fetch
<ide> stage do |staging|
<ide> staging.retain! if Homebrew.args.keep_tmp?
<ide> prepare_patches
<ide><path>Library/Homebrew/resource.rb
... | 2 |
Javascript | Javascript | remove obscure feature of addobserver | d1b5d49ef8aecc3967fdbaff3156221fa48d061a | <ide><path>packages/ember-metal/lib/observer.js
<ide> function beforeKey(eventName) {
<ide> }
<ide>
<ide> /** @private */
<del>function xformForArgs(args) {
<del> return function (target, method, params) {
<del> var obj = params[0], keyName = changeKey(params[1]), val;
<del> var copy_args = args.slice();
<del> ... | 2 |
PHP | PHP | allow config['schema'] to be array for postgresql | f3bae8e37fb9ba9c00a7fe71156f1bef37e2435b | <ide><path>src/Illuminate/Database/Connectors/PostgresConnector.php
<ide> public function connect(array $config)
<ide> // may have been specified on the connections. If that is the case we will
<ide> // set the default schema search paths to the specified database schema.
<ide> if (isset($config... | 2 |
PHP | PHP | get more functionality working | f109ca168f0cc65098e56fef8d7d4eea077010f7 | <ide><path>src/Console/Command/Task/TestTask.php
<ide> use Cake\Core\Plugin;
<ide> use Cake\Error;
<ide> use Cake\ORM\TableRegistry;
<add>use Cake\Utility\Folder;
<ide> use Cake\Utility\Inflector;
<ide>
<ide> /**
<ide> class TestTask extends BakeTask {
<ide> * @var array
<ide> */
<ide> public $classTypes = [
<del> ... | 2 |
Javascript | Javascript | simplify pt-br past relativetime | bb142fcc5ac1a3bfb700b6cbfe0eac5c06374c07 | <ide><path>src/locale/pt-br.js
<ide> export default moment.defineLocale('pt-br', {
<ide> },
<ide> relativeTime : {
<ide> future : 'em %s',
<del> past : '%s atrás',
<add> past : 'há %s',
<ide> s : 'poucos segundos',
<ide> ss : '%d segundos',
<ide> m : 'um minuto',
<i... | 2 |
Text | Text | update chinese translation of regular expressions | 2fdc5267e33cb6aaf33c2c7fff0a9576e8b7d9dc | <ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.chinese.md
<ide> id: 587d7dba367417b2b2512ba8
<ide> title: Check for All or None
<ide> challengeType: 1
<del>videoUrl: ''
<add>forumTopicId: 301338
<ide> localeTitle: 检查全部或无
<ide> ---
<ide>
<... | 33 |
Python | Python | pass model meta to nlp object in load_model | 08382f21e30ffd38f5905764c01e2ae66787e3d0 | <ide><path>spacy/util.py
<ide> def load_model(name, **overrides):
<ide> model_path = Path(name)
<ide> meta = get_package_meta(model_path)
<ide> cls = get_lang_class(meta['lang'])
<del> nlp = cls(pipeline=meta.get('pipeline', True))
<add> nlp = cls(pipeline=meta.... | 1 |
PHP | PHP | make encryption optional on iron.io | 726ac155f7e27814058607a2c357fe9e71555b13 | <ide><path>src/Illuminate/Queue/Connectors/IronConnector.php
<ide> public function connect(array $config)
<ide>
<ide> if (isset($config['host'])) $ironConfig['host'] = $config['host'];
<ide>
<del> return new IronQueue(new IronMQ($ironConfig), $this->crypt, $this->request, $config['queue']);
<add> return new IronQ... | 3 |
Javascript | Javascript | defer reading until listeners could be added | 061342a50075a23e04465e0ac2f33124ab56ea32 | <ide><path>lib/_tls_wrap.js
<ide> function onocspresponse(resp) {
<ide> this.emit('OCSPResponse', resp);
<ide> }
<ide>
<add>function initRead(tls, wrapped) {
<add> // If we were destroyed already don't bother reading
<add> if (!tls._handle)
<add> return;
<add>
<add> // Socket already has some buffered data - e... | 3 |
Javascript | Javascript | fix events in shadow dom | 60858547ac8e391a845d8b304914b84a5d948d86 | <ide><path>src/helpers/helpers.dom.js
<ide> function _calculatePadding(container, padding, parentDimension) {
<ide> export function getRelativePosition(evt, chart) {
<ide> let mouseX, mouseY;
<ide> const e = evt.originalEvent || evt;
<del> const canvasElement = evt.target || evt.srcElement;
<add> const canvasElement ... | 1 |
Text | Text | add test for file metadata project | f132f5157c8cf7c197699e14f4e3dccaaffb20ee | <ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/file-metadata-microservice.english.md
<ide> forumTopicId: 301506
<ide> ---
<ide>
<ide> ## Description
<add>
<ide> <section id='description'>
<ide> Build a full stack JavaScript app that is functionally similar to this: <... | 1 |
Text | Text | add `map` function to haskell section | b4b3344cb3a70261dc3d7a1598933e2cc1ad507a | <ide><path>guide/english/haskell/map/index.md
<add>---
<add>title: map function
<add>---
<add>
<add>## `map` function
<add>
<add>The `map` function is a built-in haskell's function that maps a function to each element of a list and return a new list
<add>with the result. Graphically, it would look like this.
<add>```ha... | 1 |
Javascript | Javascript | update success message for all challenges | 2981d776c7b8d58c0f17cc65c2c3dd1301c283f1 | <ide><path>client/src/templates/Challenges/classic/Show.js
<ide> import MobileLayout from './MobileLayout';
<ide> import DesktopLayout from './DesktopLayout';
<ide> import ToolPanel from '../components/Tool-Panel';
<ide>
<del>import { randomCompliment } from '../utils/get-words';
<ide> import { createGuideUrl } from '... | 3 |
Javascript | Javascript | remove old manifest file on request in dev | e3ac50a0d59c5540176478f05c6eb386032aa7bc | <ide><path>server/middlewares/revision-helpers.js
<ide> import manifest from '../rev-manifest.json';
<ide>
<ide> const __DEV__ = process.env.NODE_ENV === 'development';
<add>const manifestPath = '../rev-manifest.json';
<add>
<ide> export default function({ globalPrepend = '' } = {}) {
<ide>
<ide> function rev(manif... | 1 |
Javascript | Javascript | ensure readfile[sync] reads from the beginning" | 66f09be74399b61a433a58dfe48c6fd5b9d66594 | <ide><path>lib/fs.js
<ide> ReadFileContext.prototype.read = function() {
<ide> req.oncomplete = readFileAfterRead;
<ide> req.context = this;
<ide>
<del> binding.read(this.fd, buffer, offset, length, this.pos, req);
<add> binding.read(this.fd, buffer, offset, length, -1, req);
<ide> };
<ide>
<ide> ReadFileContex... | 2 |
Ruby | Ruby | add tests to document current pruning behavior | 8430307fa5c3e5c4699b1363da5c38ab3ef23822 | <ide><path>Library/Homebrew/test/test_cleaner.rb
<ide> def test_clean_file
<ide> assert_equal 0100444, (@f.lib/'i386.dylib').stat.mode
<ide> end
<ide>
<add> def test_prunes_empty_directories
<add> subdir = @f.bin/'subdir'
<add> subdir.mkpath
<add>
<add> Cleaner.new @f
<add>
<add> assert !@f.bin.dire... | 1 |
Ruby | Ruby | fix indentation manually | d8fca795758036e7522591acc99f202f84cad2fe | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_bootsnap
<ide> assert_match(/require 'bootsnap\/setup'/, content)
<ide> end
<ide> else
<del> assert_file "Gemfile" do |content|
<add> assert_file "Gemfile" do |content|
<ide> assert_no_match(/bootsnap/, content... | 1 |
Text | Text | fix quickstart urls module name. closes #902 | 8d4bcb4b4c837f9deb5f81d7af6a397405aa07fa | <ide><path>docs/tutorial/quickstart.md
<ide> We can easily break these down into individual views if we need to, but using vi
<ide>
<ide> ## URLs
<ide>
<del>Okay, now let's wire up the API URLs. On to `quickstart/urls.py`...
<add>Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
<ide>
<ide> fro... | 1 |
Javascript | Javascript | extract timeoutpromise into async-spec-helpers | 87d684132c55b8d7f3d7756680deb87af048917b | <ide><path>spec/async-spec-helpers.js
<ide> export function conditionPromise (condition) {
<ide> })
<ide> }
<ide>
<add>export function timeoutPromise (timeout) {
<add> return new Promise(function (resolve) {
<add> global.setTimeout(resolve, timeout)
<add> })
<add>}
<add>
<ide> function waitsForPromise (fn) {
<... | 3 |
Python | Python | update description of sep in fromstring | 069362a4eec5d7189a67e857351d377f7b3da761 | <ide><path>numpy/core/_add_newdocs.py
<ide> elements is also ignored.
<ide>
<ide> .. deprecated:: 1.14
<del> If this argument is not provided, `fromstring` falls back on the
<del> behaviour of `frombuffer` after encoding unicode string inputs as
<del> either utf-8 (pyth... | 1 |
Python | Python | remove trailing commas | 51ab7b35af66715d3b29f8c97642e09959dc7f56 | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def GiB(value):
<ide> 'extra': {
<ide> 'cpu': 128
<ide> }
<del> },
<add> }
<ide> }
<ide>
<ide> # From <https://aws.amazon.com/marketplace/help/200777880>
<ide> def GiB(value):
<ide> 't2.small',
<ide> 't2.medium'... | 1 |
Text | Text | deprecate private http properties | 86996c5838f7ee38e3cc96b3c65c8ca6965a36a2 | <ide><path>doc/api/deprecations.md
<ide> The `NODE_REPL_MODE` environment variable is used to set the underlying
<ide> `replMode` of an interactive `node` session. Its default value, `magic`, is
<ide> similarly deprecated in favor of `sloppy`.
<ide>
<add><a id="DEP0066"></a>
<add>### DEP0066: outgoingMessage.\_headers... | 1 |
Java | Java | drop introspector.flushfromcaches calls completely | defc1d31574ea6b3faa5ed84c4aa23c808b0c7cf | <ide><path>spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
<ide> private CachedIntrospectionResults(Class<?> beanClass) throws BeansException {
<ide> }
<ide> this.beanInfo = beanInfo;
<ide>
<del> // Only bother with flushFromCaches if the Introspector actually cached...
<de... | 1 |
Ruby | Ruby | compare checksums case-insensitively | 5ab0488918c4df609dda69b6affa17023274d9b9 | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch
<ide> the_tarball, _ = f.fetch
<ide> next unless the_tarball.kind_of? Pathname
<ide>
<del> previous_md5 = f.instance_variable_get(:@md5)
<del> previous_sha1 = f.instance_variable_get(:@sha1)
<del> previous_sha2 = f.instance_variable_ge... | 1 |
Javascript | Javascript | add support for array-like objects | f467dc3dd5fe0a046f91488bd92d1098855aaf1b | <ide><path>src/ng/filter/limitTo.js
<ide> * @kind function
<ide> *
<ide> * @description
<del> * Creates a new array or string containing only a specified number of elements. The elements
<del> * are taken from either the beginning or the end of the source array, string or number, as specified by
<del> * the value an... | 2 |
Javascript | Javascript | use ownerdocument.body.contains for ie11 | 4169ddd9b7cc11f8275432cd9b73cb65d6f4dece | <ide><path>src/js/video.js
<ide> function videojs(id, options, ready) {
<ide> throw new TypeError('The element or ID supplied is not valid. (videojs)');
<ide> }
<ide>
<del> // document.contains(el) will only check if el is contained within that one document.
<add> // document.body.contains(el) will only check ... | 1 |
Text | Text | fix typos in n-api docs | 7dd3adf6dd4284353993977584ee807c25397046 | <ide><path>doc/api/n-api.md
<ide> NAPI_EXTERN napi_status napi_create_reference(napi_env env,
<ide>
<ide> Returns `napi_ok` if the API succeeded.
<ide>
<del>This API create a new reference with the specified reference count
<add>This API creates a new reference with the specified reference count
<ide> to the `Object`... | 1 |
Ruby | Ruby | add cask caveats to the end-of-operation summary | 155feba8e057e8dc66661ad6fe8021a30a5c4e93 | <ide><path>Library/Homebrew/cask/installer.rb
<ide> def self.caveats(cask)
<ide> caveats = cask.caveats
<ide> return if caveats.empty?
<ide>
<add> Homebrew.messages.record_caveats(cask.token, caveats)
<add>
<ide> <<~EOS
<ide> #{ohai_title "Caveats"}
<ide> #{caveats}
<ide><path>Li... | 3 |
Go | Go | add timestamp and change untagged -> untag | b8d52ec2669332988a972bff3b5f5d2e9d526b33 | <ide><path>server.go
<ide> import (
<ide> "runtime"
<ide> "strings"
<ide> "sync"
<add> "time"
<ide> )
<ide>
<ide> func (srv *Server) DockerVersion() APIVersion {
<ide> func (srv *Server) deleteImage(img *Image, repoName, tag string) ([]APIRmi, erro
<ide> }
<ide> if tagDeleted {
<ide> imgs = append(imgs, APIRmi{... | 2 |
Python | Python | add some epty space after the quilook plugin | 5f9a59b1dc129aa797768be25c1c4176b9f1448c | <ide><path>glances/plugins/glances_quicklook.py
<ide> def msg_curse(self, args=None, max_width=10):
<ide> ret.append(self.curse_add_line(bar.pre_char, decoration='BOLD'))
<ide> ret.append(self.curse_add_line(str(bar), self.get_views(key=key, option='decoration')))
<ide> ... | 1 |
Text | Text | revise collaborator material in governance.md | 557bd861aad28f737d7e83d4bfd035ad84c3d5be | <ide><path>GOVERNANCE.md
<ide> privileges include but are not limited to:
<ide> * Commit access to the [nodejs/node][] repository
<ide> * Access to the Node.js continuous integration (CI) jobs
<ide>
<del>Modifications of the contents of the nodejs/node repository are made on
<del>a collaborative basis. Anybody with a ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.