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
add translation for current_password rule
c1587b52c98727f007340417458c5da42d5fbbdc
<ide><path>resources/lang/en/validation.php <ide> ], <ide> 'boolean' => 'The :attribute field must be true or false.', <ide> 'confirmed' => 'The :attribute confirmation does not match.', <add> 'current_password' => 'The password is incorrect.', <ide> 'date' => 'The :attribute is not a valid date.', <...
1
Text
Text
add the solution
7f9cbe982bce11b19e439d0bf41646c49c37230d
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-decimal-by-another-with-javascript.english.md <ide> tests: <ide> <ide> ```js <ide> var quotient = 0.0 / 2.0; // Fix this line <del> <del> <ide> ``` <ide> <ide> </div> <ide> var quotient = 0.0 / 2.0; // Fi...
1
Javascript
Javascript
replace util._extend() with [].slice()
3e67d7e46b80c90faa360d1d0e44dacc444e8e4f
<ide><path>lib/http.js <ide> exports.IncomingMessage = require('_http_incoming').IncomingMessage; <ide> <ide> <ide> const common = require('_http_common'); <del>exports.METHODS = util._extend([], common.methods).sort(); <add>exports.METHODS = common.methods.slice().sort(); <ide> <ide> <ide> exports.OutgoingMessage ...
1
Ruby
Ruby
consolidate code for read_query
9537dfe18d0efb78fb017247dd2fa44a9d538cfa
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def self.type_cast_config_to_boolean(config) <ide> end <ide> end <ide> <add> DEFAULT_READ_QUERY = [:begin, :commit, :explain, :release, :rollback, :savepoint, :select, :with] # :nodoc: <add> private_constant...
4
Ruby
Ruby
require action mailer more gracefully
268c1dee8f1297991f0836261e5fdde4c372945f
<ide><path>actionpack/test/controller/assert_select_test.rb <ide> <ide> require File.dirname(__FILE__) + '/../abstract_unit' <ide> require File.dirname(__FILE__) + '/fake_controllers' <del>require "action_mailer" <ide> <ide> <add>unless defined?(ActionMailer) <add> begin <add> $:.unshift(File.dirname(__FILE__) +...
1
Python
Python
add benchmarks for dynamic loss scaling.
7467ccdec29976042a6b09108ce57d6951f70f6e
<ide><path>official/resnet/keras/keras_imagenet_benchmark.py <ide> def benchmark_xla_8_gpu_fp16(self): <ide> FLAGS.tf_gpu_thread_mode = 'gpu_private' <ide> self._run_and_report_benchmark() <ide> <add> def benchmark_xla_8_gpu_fp16_dynamic(self): <add> """Test Keras model with XLA, eager, dist_strat, 8 GPUs,...
1
Ruby
Ruby
simplify header parsing
a1566212976072d8b5b95f5b335a3d98f77c713d
<ide><path>Library/Homebrew/utils/curl.rb <ide> def curl(*args, print_stdout: true, **options) <ide> def parse_headers(headers) <ide> return {} unless headers <ide> <del> headers.split("\n").to_h do |h| <del> partitioned = h.partition(": ") <del> [partitioned.first, partitioned.last] <del>...
1
Text
Text
simplify urlobject.hash text
a091fbeb7fdf5940921bb1c78c154fb2b1733f2e
<ide><path>doc/api/url.md <ide> For example: `'user:pass'`. <ide> <ide> #### urlObject.hash <ide> <del>The `hash` property consists of the "fragment" portion of the URL including <del>the leading `#` character. <add>The `hash` property is the fragment identifier portion of the URL including the <add>leading `#` chara...
1
Text
Text
remove stray "117", combine lines in polyfill docs
e1f4357ff7e108962395542cd50d23a4d49f3c93
<ide><path>docs/docs/07-working-with-the-browser.md <ide> In addition to that philosophy, we've also taken the stance that we, as authors <ide> <ide> ### Polyfills Needed to Support Older Browsers <ide> <del>`es5-shim.js` from [kriskowal's <del>es5-shim](https://github.com/kriskowal/es5-shim) provides the following <...
1
Javascript
Javascript
copy jsm to correct folder
c3978af0c81fd3eb574f9b19511177bd63685c0e
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> files: [ <ide> { expand: true, cwd: `${threePath}/build/`, src: 'three.js', dest: `${basePath}/`, }, <ide> { expand: true, cwd: `${threePath}/build/`, src: 'three.min.js', dest: `${basePath}/`, }, <add> {...
1
Go
Go
fix race in contstore.list
0b3fe5544266b6f9657ecd87989b85b535cc63e1
<ide><path>daemon/daemon.go <ide> func (c *contStore) Delete(id string) { <ide> <ide> func (c *contStore) List() []*Container { <ide> containers := new(History) <add> c.Lock() <ide> for _, cont := range c.s { <ide> containers.Add(cont) <ide> } <add> c.Unlock() <ide> containers.Sort() <ide> return *containers <i...
1
Java
Java
remove serialversionuids in spring-messaging exc
845a6b0b7d628c8e08d3254fd7bee3974d2104b3
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java <ide> * @author Mark Fisher <ide> * @since 4.0 <ide> */ <add>@SuppressWarnings("serial") <ide> public class MessageHandlingException extends MessagingException { <ide> <del> private static final long serialVersionU...
2
Python
Python
remove extra semi-colon
02b451e4a1a7f9b96becb27feceb699267ff9d95
<ide><path>numpy/add_newdocs.py <ide> a.sum(axis, dtype) / size(a, axis). <ide> <ide> The optional dtype argument is the data type for intermediate <del> calculations in the sum.; <add> calculations in the sum. <ide> <ide> """)) <ide>
1
Javascript
Javascript
fix allocation sizes
29d957d1cd2fc042022153341524a7755cc48927
<ide><path>lib/serialization/BinaryMiddleware.js <ide> class BinaryMiddleware extends SerializerMiddleware { <ide> writeU8(BOOLEANS_HEADER); <ide> writeU8((1 << count) | lastByte); <ide> } else if (count <= 133) { <del> allocate(HEADER_SIZE + I8_SIZE * bytes.length + I8_SIZE); <add> allo...
1
Javascript
Javascript
initialize node positions based on links
ce2e52a6beaaad8f041d80cab1d5ae8ba6402b2f
<ide><path>d3.layout.js <ide> d3.layout.force = function() { <ide> m = links.length, <ide> w = size[0], <ide> h = size[1], <add> neighbors, <ide> o; <ide> <del> // TODO initialize positions of new nodes using constraints (links) <ide> for (i = 0; i < n; ++i) { <del> o...
3
Python
Python
fix issue #254
a8ad3223e25f9bad82b49c151d93fef864503487
<ide><path>glances/glances.py <ide> def get_work_path(self): <ide> Get the working path <ide> <ide> The data files will be searched in the following paths: <del> * /path/to/glances/glances/data <del> * {/usr,/usr/local}/share/glances (Linux or *BSD/OS X) <add> * /path/t...
1
Ruby
Ruby
correct orientation detection
57cc6f40309f919dfb30fe63f6d663f6ccaf7856
<ide><path>activestorage/lib/active_storage/analyzer/image_analyzer.rb <ide> def read_image <ide> end <ide> <ide> def rotated_image?(image) <del> %w[ RightTop LeftBottom ].include?(image["orientation"]) <add> %w[ RightTop LeftBottom ].include?(image["%[orientation]"]) <ide> end <ide> ...
2
PHP
PHP
add type hints and strict types to controller
80f61791b6ee7aa5fdac72288d00477dfddda5e6
<ide><path>src/Controller/Component.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> public function __construct(ComponentRegistry $registry, array $co...
29
Ruby
Ruby
add method to set tap
f55257306e609859cba568528abea45d78f1844c
<ide><path>Library/Homebrew/tab.rb <ide> def tap <ide> source["tap"] <ide> end <ide> <add> def tap=(tap) <add> source["tap"] = tap <add> end <add> <ide> def to_json <ide> attributes = { <ide> "used_options" => used_options.as_flags,
1
Javascript
Javascript
fix mixed singular/plural
6976d6d8d8a5958aa3991b48e7dfa804f0e77ea7
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * can escape it with `/\.`. <ide> * <ide> * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in <del> * `actions` methods. If any of the parameter value is a function, it will be ...
1
Text
Text
prefer server vs srv and client vs clt
41dd175f6d55a665f4c10d3b66ba701507102265
<ide><path>doc/api/http.md <ide> const proxy = http.createServer((req, res) => { <ide> res.writeHead(200, { 'Content-Type': 'text/plain' }); <ide> res.end('okay'); <ide> }); <del>proxy.on('connect', (req, cltSocket, head) => { <add>proxy.on('connect', (req, clientSocket, head) => { <ide> // Connect to an origin s...
1
PHP
PHP
fix failing test
5d53868b5b00708a0a813db508dcbb2774806d76
<ide><path>tests/TestCase/Console/Command/Task/TestTaskTest.php <ide> public function testOutputClassOptionsForTablePlugin() { <ide> */ <ide> public function testMethodIntrospection() { <ide> $result = $this->Task->getTestableMethods('TestApp\Model\Table\ArticlesTable'); <del> $expected = array('dosomething', 'dos...
1
Mixed
Ruby
pass nonce to csp policy from outside
35970cbf3f64a2bcce56af945da66313896014c3
<ide><path>actionpack/CHANGELOG.md <ide> <ide> Fixes [#35297](https://github.com/rails/rails/issues/32597). <ide> <del> *Andrey Novikov* <add> *Andrey Novikov*, *Andrew White* <ide> <ide> * Move default headers configuration into their own module that can be included in controllers. <ide> <ide><path>act...
3
Javascript
Javascript
increase test-resource-usage.js validation
492037ab801391b0a86d1cc1204a5f14d5b74641
<ide><path>test/parallel/test-resource-usage.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> <ide> const rusage = process.resourceUsage(); <del> <del>[ <add>const fields = [ <ide> 'userCPUTime', <ide> 'systemCPUTime', <ide> 'maxRSS', <ide> const rusage = process.resourceUsage(); <ide...
1
Go
Go
add test for incorrect nonroot passphrase
eeb6d0a71b754c1c99748f7ba08be27e4d8b8eb9
<ide><path>integration-cli/docker_cli_create_test.go <ide> import ( <ide> "strings" <ide> "time" <ide> <add> "os/exec" <add> <ide> "github.com/docker/docker/pkg/nat" <ide> "github.com/go-check/check" <del> "os/exec" <ide> ) <ide> <ide> // Make sure we can create a simple container with some args <ide> func (s *Do...
3
Java
Java
fix webmvcconfigurationsupport javadoc
708e61a7efbe727f91cc385c8d70a31f2fb0e972
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java <ide> * for processing requests with {@link HttpRequestHandler HttpRequestHandlers}. <ide> * <li>{@link SimpleControllerHandlerAdapter} <ide> * for processing requests with interface-based {@link ...
1
Ruby
Ruby
conditionalget documentation [ci skip]
417aa431eb43a8ecbc7edae2d056edebf4f8792f
<ide><path>actionpack/lib/action_controller/metal/conditional_get.rb <ide> module ClassMethods <ide> # may want to add the current user id to be part of the etag to prevent authorized displaying <ide> # of cached pages. <ide> # <del> # === Example <del> # <ide> # class InvoicesContro...
1
Ruby
Ruby
add firebird support to test suite
ac41f6a5d7f49c420cc7b6bd8ab03d2b0ba2b3bb
<ide><path>activerecord/test/cases/attribute_methods_test.rb <ide> def test_should_unserialize_attributes_for_frozen_records <ide> def test_typecast_attribute_from_select_to_false <ide> Topic.create(:title => 'Budget') <ide> # Oracle does not support boolean expressions in SELECT <del> if current_adapter?(...
5
Javascript
Javascript
load language-rust at snapshot-generation time
ea6d06152bb705d31e304764fd8ff83e497f7f86
<ide><path>src/initialize-application-window.js <ide> if (global.isGeneratingSnapshot) { <ide> require('language-html'); <ide> require('language-javascript'); <ide> require('language-ruby'); <add> require('language-rust-bundled'); <ide> require('language-typescript'); <ide> require('line-ending-selector'); <...
1
Text
Text
add gulp-react to helpful oss projects
e92d769a50687b3a23e1824542b997e586a005cd
<ide><path>docs/docs/08-tooling-integration.md <ide> The open-source community has built tools that integrate JSX with several build <ide> <ide> * [reactify](https://github.com/andreypopp/reactify) - use JSX with [browserify](http://browserify.org/) <ide> * [grunt-react](https://github.com/ericclemmons/grunt-react) - ...
1
Go
Go
allow npipe protocol for sock requests
08b65e7dd3e722da535767ee31ac8ed58c0cb3e2
<ide><path>integration-cli/docker_utils.go <ide> func sockConn(timeout time.Duration) (net.Conn, error) { <ide> <ide> var c net.Conn <ide> switch daemonURL.Scheme { <add> case "npipe": <add> return npipeDial(daemonURL.Path, timeout) <ide> case "unix": <ide> return net.DialTimeout(daemonURL.Scheme, daemonURL.Path...
3
Javascript
Javascript
improve querystring.parse assertion messages
8bcc1223496e6ae16e2b3b2afddf9ca792625055
<ide><path>test/parallel/test-querystring.js <ide> 'use strict'; <ide> require('../common'); <ide> const assert = require('assert'); <add>const inspect = require('util').inspect; <ide> <ide> // test using assert <ide> const qs = require('querystring'); <ide> assert.strictEqual('918854443121279438895193', <ide> ...
1
PHP
PHP
add new line
207ff3dc178cde9f9397f68ae8fca4cc2cdb9cdf
<ide><path>src/Illuminate/Container/Container.php <ide> public function offsetSet($key, $value) <ide> public function offsetUnset($key) <ide> { <ide> unset($this->bindings[$key]); <add> <ide> unset($this->instances[$key]); <ide> } <ide>
1
PHP
PHP
pass status code to schedule finish
b9c2763ebfcd2eac29ecc900a6623f4a22281715
<ide><path>src/Illuminate/Console/Scheduling/CommandBuilder.php <ide> protected function buildBackgroundCommand(Event $event) <ide> $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"'; <ide> <ide> if (windows_os()) { <del> return 'start /b cmd /c "('....
4
Ruby
Ruby
add field for kegs and unknowns
cbfea6c125247fa302b11c3062df570d5847501a
<ide><path>Library/Homebrew/cli/args.rb <ide> def freeze_named_args!(named_args) <ide> @formulae_paths = nil <ide> @casks = nil <ide> @kegs = nil <add> @kegs_and_unknowns = nil <ide> <ide> self[:named_args] = named_args <ide> self[:named_args].freeze <ide> def casks <ide>...
1
PHP
PHP
update the csrf_token constant
e4fce8e468768478aea3004838356986885c4612
<ide><path>laravel/request.php <ide> public static function secure() <ide> */ <ide> public static function forged() <ide> { <del> return Input::get(Session::token) !== IoC::core('session')->token(); <add> return Input::get(Session::csrf_token) !== IoC::core('session')->token(); <ide> } <ide> <ide> /**
1
Python
Python
fix python 3 test cases for filled* functions
8ed3733b895150751d719f5c9b491671615f4b46
<ide><path>numpy/core/tests/test_numeric.py <ide> def check_function(self, func, fill_value=None): <ide> for type in self.dtypes: # bool, int, float etc. <ide> for bytes in 2**np.arange(9): # byte size for type <ide> try: <del> ...
1
Text
Text
clarify moderation in `onboarding.md`
0a3d0e0ac350820cb52d0c61a73e2fc7cdc09737
<ide><path>onboarding.md <ide> The project has a venue for real-time discussion: <ide> * This is a repository to which all members of the `nodejs` GitHub <ide> organization (not just collaborators on Node.js core) have access. Its <ide> contents should not be shared externally. <del> * You can find the full ...
1
Python
Python
use npy_os in f2py
2eda78bd78679dc7c310ae0098e3ae41a69ca6e1
<ide><path>numpy/f2py/cfuncs.py <ide> typedefs['unsigned_long'] = 'typedef unsigned long unsigned_long;' <ide> typedefs['signed_char'] = 'typedef signed char signed_char;' <ide> typedefs['long_long'] = """\ <del>#ifdef _WIN32 <add>#if defined(NPY_OS_WIN32) <ide> typedef __int64 long_long; <ide> #else <ide> typedef long...
2
Javascript
Javascript
make method to assign specific grammar
e9e52f5052d0a512e6e3ecd9eefb67bff8b4cc91
<ide><path>packages/grammar-selector/lib/grammar-list-view.js <ide> class GrammarListView { <ide> if (grammar === this.autoDetect) { <ide> atom.textEditors.clearGrammarOverride(this.editor) <ide> } else { <del> atom.textEditors.setGrammarOverride(this.editor, grammar.scopeName) <add> ...
2
Go
Go
move utils.fataler to pkg/log.fataler
ac63d925d2618e700d117c5d9e402ccc0c5cecc8
<ide><path>integration/utils_test.go <ide> import ( <ide> "github.com/docker/docker/builtins" <ide> "github.com/docker/docker/daemon" <ide> "github.com/docker/docker/engine" <add> "github.com/docker/docker/pkg/log" <ide> "github.com/docker/docker/runconfig" <ide> "github.com/docker/docker/utils" <ide> ) <ide> impo...
4
Python
Python
add punctuation to grc
3e8bc1272f95c89e0aa9e5a19f51e286a7934ffa
<ide><path>spacy/lang/char_classes.py <ide> _punct = ( <ide> r"… …… , : ; \! \? ¿ ؟ ¡ \( \) \[ \] \{ \} < > _ # \* & 。 ? ! , 、 ; : ~ · । ، ۔ ؛ ٪" <ide> ) <del>_quotes = r'\' " ” “ ` ‘ ´ ’ ‚ , „ » « 「 」 『 』 ( ) 〔 〕 【 】 《 》 〈 〉' <add>_quotes = r'\' " ” “ ` ‘ ´ ’ ‚ , „ » « 「 」 『 』 ( ) 〔 〕 【 】 《 》 〈 〉 〈 〉 ⟦ ⟧' <ide> _...
4
Ruby
Ruby
remove useless conditional
5a18b853ed9b04cf7d610390fab7de13cc23108e
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def prepare_params!(params) <ide> # delegate the control back to Rack cascade. Besides, if this is not a default <ide> # controller, it means we should respect the @scope[:module] parameter. <ide> def controller(params, raise_o...
1
Mixed
Text
fix plural typo in 'save' command help
a826c244ed49996252fbeff238ae44c4fd3f33f8
<ide><path>cli/common.go <ide> var dockerCommands = []Command{ <ide> {"rm", "Remove one or more containers"}, <ide> {"rmi", "Remove one or more images"}, <ide> {"run", "Run a command in a new container"}, <del> {"save", "Save an image(s) to a tar archive"}, <add> {"save", "Save images to a tar archive"}, <ide> {"se...
4
Python
Python
remove dead returns test_openstack.py
4dd20ff80bba5de512923ad9f9fb92821b38efca
<ide><path>libcloud/test/compute/test_openstack.py <ide> def _v1_1_slug_servers_4242_action(self, method, url, body, headers): <ide> else: <ide> raise NotImplementedError() <ide> <del> return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK]) <del> <ide> def _v1...
1
Python
Python
add note to iterable docstring about 0d arrays
3b57355559357460d31862299829536f065e7a8b
<ide><path>numpy/lib/function_base.py <ide> def iterable(y): <ide> >>> np.iterable(2) <ide> False <ide> <add> Notes <add> ----- <add> In most cases, the results of ``np.iterable(obj)`` are consistent with <add> ``isinstance(obj, collections.abc.Iterable)``. One notable exception is <add> the tre...
1
Python
Python
improve test coverage for kubernetes executor
dd56875066486f8c7043fbc51f272933fa634a25
<ide><path>tests/executors/test_kubernetes_executor.py <ide> <ide> import pytest <ide> from kubernetes.client import models as k8s <add>from kubernetes.client.rest import ApiException <ide> from urllib3 import HTTPResponse <ide> <ide> from airflow.utils import timezone <ide> from tests.test_utils.config import conf_v...
1
Ruby
Ruby
fix bottle_tag references
59de2c7ecf34c46ead29c787ce409afdc15f609c
<ide><path>Library/Homebrew/cmd/pull.rb <ide> def bottle_tags() <ide> info["bottle"]["stable"]["files"].keys <ide> end <ide> <del> def bottle_info(my_bottle_tag = bottle_tag) <add> def bottle_info(my_bottle_tag = Utils::Bottles.tag) <ide> tag_s = my_bottle_tag.to_s <ide> return nil unless i...
1
Python
Python
use nomask instead of none
e5bd12f3dd9e408faea445e963e28654fe9c3327
<ide><path>numpy/core/tests/test_ma.py <ide> def check_xtestCount (self): <ide> assert isMaskedArray(count(ott,0)) <ide> assert isinstance(count(ott), types.IntType) <ide> self.failUnless (eq(3, count(ott))) <del> assert getmask(count(ott,0)) is None <add> assert getmask(count(ott,...
1
Python
Python
snake_case decode function
3ab727658b171c6803bfc22384524c8bbb1bcbf8
<ide><path>object_detection/builders/input_reader_builder.py <ide> def build(input_reader_config): <ide> capacity=input_reader_config.queue_capacity, <ide> min_after_dequeue=input_reader_config.min_after_dequeue) <ide> <del> return tf_example_decoder.TfExampleDecoder().Decode(string_tensor) <add> ...
5
Javascript
Javascript
update config to be flexible for host
566de3e3f2e751e0775fa8281c47dfdf1737dc11
<ide><path>common/models/user.js <ide> import { blacklistedUsernames } from '../../server/utils/constants'; <ide> const debug = debugFactory('fcc:user:remote'); <ide> const BROWNIEPOINTS_TIMEOUT = [1, 'hour']; <ide> const isDev = process.env.NODE_ENV !== 'production'; <add>const devHost = process.env.HOST || 'localhost...
4
Go
Go
finalize driver interfaces
ed572b457d28101b6ef465e5a3e221ee1fc7d48a
<ide><path>aufs/aufs.go <ide> package aufs <ide> <ide> import ( <ide> "fmt" <add> "github.com/dotcloud/docker/archive" <ide> "github.com/dotcloud/docker/graphdriver" <ide> "log" <ide> "os" <ide> func init() { <ide> } <ide> <ide> type AufsDriver struct { <add> root string <ide> } <ide> <ide> // New returns a new ...
3
Text
Text
secure two urls
67fc68afaf264c55af484d3e6f7ec8141605ebfd
<ide><path>README.md <ide> Alternatively, if you'd rather make a one-off payment: <ide> BROOKLYN, NY 11201 USA <ide> - Donate by wire transfer: contact accounting@sfconservancy.org for wire transfer details. <ide> <del>Homebrew is a member of the [Software Freedom Conservancy](http://sfconservancy.or...
1
Go
Go
add a progress bar to docker pull
b64dfdd8cd636c5138dbd700f60e41651bae3e15
<ide><path>registry.go <ide> func (graph *Graph) getRemoteImage(stdout io.Writer, imgId string, authConfig *a <ide> if err != nil { <ide> return nil, nil, err <ide> } <del> return img, res.Body, nil <add> return img, ProgressReader(res.Body, int(res.ContentLength), stdout), nil <ide> } <ide> <ide> func (graph *Gra...
1
Javascript
Javascript
remove part of query string
a38cd48737ec127a65ec8088d5c69437bb5a00a2
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> { <ide> name: 'Pimmr', <ide> icon: 'http://a2.mzstatic.com/eu/r30/Purple69/v4/99/da/0e/99da0ee6-bc87-e1a6-1d95-7027c78f50e1/icon175x175.jpeg', <del> link: 'https://itunes.apple.com/nl/app/pimmr/id1023343303?mt=8&ign-mpt=uo%3D4', <add>...
1
Text
Text
use code markup/markdown in headers
19419a4aba0d19a3a6d286ff47bdafe062266017
<ide><path>doc/api/child_process.md <ide> exec('"my script.cmd" a b', (err, stdout, stderr) => { <ide> }); <ide> ``` <ide> <del>### child_process.exec(command\[, options\]\[, callback\]) <add>### `child_process.exec(command[, options][, callback])` <ide> <!-- YAML <ide> added: v0.1.90 <ide> changes: <ide> async functi...
1
Ruby
Ruby
use #duplicable? instead of anonymous rescue
f2e4bf218f95ab279e1a1527c37115faf65ac283
<ide><path>activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb <ide> def inherited_with_inheritable_attributes(child) <ide> new_inheritable_attributes = EMPTY_INHERITABLE_ATTRIBUTES <ide> else <ide> new_inheritable_attributes = inheritable_attributes.inject({}) do |memo, (key...
1
Go
Go
add support for `from` using named block
672ea30a94933eec228d71217b033da5d6572b8d
<ide><path>builder/dockerfile/dispatchers.go <ide> func from(b *Builder, args []string, attributes map[string]bool, original string <ide> return err <ide> } <ide> <del> // Windows cannot support a container with no base image. <del> if name == api.NoBaseImageSpecifier { <del> if runtime.GOOS == "windows" { <del> ...
4
Javascript
Javascript
add error handling for input stream
cb3020d82401fabc37c99fb587d951f9a8f9a6ef
<ide><path>lib/readline.js <ide> function Interface(input, output, completer, terminal) { <ide> this._ttyWrite = _ttyWriteDumb.bind(this); <ide> } <ide> <add> function onerror(err) { <add> self.emit('error', err); <add> } <add> <ide> function ondata(data) { <ide> self._normalWrite(data); <ide> } <id...
2
Java
Java
fix failing test
794566abf59f0b719137a4dd4cd977ab0f3e97c5
<ide><path>spring-test/src/test/java/org/springframework/test/web/client/MockClientHttpRequestFactoryTests.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"...
1
Python
Python
fix typo in setup.py
e40e9bbf985a37747dc8f42184230b3c2a2dc22a
<ide><path>numpy/core/setup.py <ide> def name_to_defsymb(name): <ide> for f in ["isnan", "isinf", "signbit", "isfinite"]: <ide> st = config.check_decl(f, headers = ["math.h"]) <ide> if st: <del> moredefs.append(name_to_symb("decl_%s" % f)) <del> <add> moredefs.append(name_to_d...
1
Mixed
Javascript
treat boxordinalgroup and flexorder as unitless
aa9274991d8e0dd699c9254aa1965c94d6419acb
<ide><path>docs/tips/06-style-props-value-px.md <ide> Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of pr <ide> <ide> - `boxFlex` <ide> - `boxFlexGroup` <add>- `boxOrdinalGroup` <ide> - `columnCount` <ide> - `fillOpacity` <ide> - `flex` <ide> - `flexGrow` <ide> - `flexPositive` <ide> - `fl...
2
Java
Java
add unit tests for propertyaccessorutils
827ec5d5a2f383b97ffd06c2687e2b4b3308b23d
<ide><path>spring-beans/src/test/java/org/springframework/beans/PropertyAccessorUtilsTests.java <ide> */ <ide> public class PropertyAccessorUtilsTests { <ide> <add> @Test <add> public void testGetPropertyName() { <add> assertThat(PropertyAccessorUtils.getPropertyName("foo")) <add> .isEqualTo("foo"); <add> assert...
1
Go
Go
add support for pool resizing
a0224e61b48e1dd1378cb955596fba1937e99068
<ide><path>graphdriver/devmapper/deviceset.go <ide> func minor(device uint64) uint64 { <ide> return (device & 0xff) | ((device >> 12) & 0xfff00) <ide> } <ide> <add>func (devices *DeviceSet) ResizePool(size int64) error { <add> dirname := devices.loopbackDir() <add> datafilename := path.Join(dirname, "data") <add> met...
4
PHP
PHP
remove nested ternary
59525ab14b5c3083db494c65459360ba3338ac6f
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateRequiredIf($attribute, $value, $parameters) <ide> <ide> if (is_bool($data)) { <ide> array_walk($values, function (&$value) { <del> $value = $value == 'true' ? <del> true : ($value =...
1
Ruby
Ruby
fix tap migrations
6071e3b54cf0ad2309fb7d5238c3557c724f415a
<ide><path>Library/Homebrew/cmd/update.rb <ide> require 'cmd/tap' <ide> require 'cmd/untap' <del>require 'tap_migrations' <ide> <ide> module Homebrew extend self <ide> def update <ide> def update <ide> install_tap tap_user, tap_repo <ide> rescue AlreadyTappedError => e <ide> end <del> end <add...
1
Python
Python
fix typo in worker.py
876e6bdc499ffcda10e118a28d3b1ee22170f2aa
<ide><path>celery/bin/worker.py <ide> def prepare_arguments(self, parser): <ide> user_options = self.app.user_options['worker'] <ide> if user_options: <ide> uopts = OptionGroup(parser, 'User Options') <del> uopts.options_list.extend(user_options) <add> uopts.option_list...
1
Javascript
Javascript
fix nodehandle crash
93c438d47078111f44aec69c8864b3a26f098842
<ide><path>Libraries/Renderer/src/renderers/native/ReactNativeStack.js <ide> var ReactNative = { <ide> // The injected findNodeHandle() strategy returns the instance wrapper though. <ide> // See NativeMethodsMixin#setNativeProps for more info on why this is done. <ide> findNodeHandle(componentOrHandle : any) : ?n...
1
Javascript
Javascript
fix broken tests after vojta's commit
a62c7b8b4eaba2979e19c3b0438d67fcdc5f9e1a
<ide><path>test/ng/locationSpec.js <ide> describe('$location', function() { <ide> bind: function(event, handler) { <ide> expect(event).toEqual('click'); <ide> clickHandler = handler; <del> } <add> }, <add> unbind: angular.noop <ide> }); <ide> ...
1
PHP
PHP
enable seed to all option
4c30d2c1119576773e8864d5cb9bd4a2c23a267a
<ide><path>src/Illuminate/Foundation/Console/ModelMakeCommand.php <ide> public function handle() <ide> <ide> if ($this->option('all')) { <ide> $this->input->setOption('factory', true); <add> $this->input->setOption('seed', true); <ide> $this->input->setOption('migration', tru...
1
Text
Text
add missing superscript tags
cdf444238c63118f7cd2b1eecc94cd563e08b7b7
<ide><path>guide/portuguese/working-in-tech/unconscious-bias/index.md <ide> O preconceito é um preconceito em favor de ou contra uma coisa, pessoa ou grupo <ide> <ide> O viés inconsciente, também conhecido como "viés implícito", ocorre quando as pessoas favorecem outras que se parecem com elas e / ou compartilham seus...
1
Text
Text
use a top level heading
c239c746294495586fdf710266a7c3a78e09f199
<ide><path>docs/advanced-features/module-path-aliases.md <ide> description: Configure module path aliases that allow you to remap certain import paths. <ide> --- <ide> <del>## Absolute Imports and Module path aliases <add># Absolute Imports and Module path aliases <ide> <ide> Next.js automatically supports the `tscon...
1
Ruby
Ruby
move records and loaded ivar up to load
847643a55acf9c82d2b70448cfa527fee63e9601
<ide><path>activerecord/lib/active_record/relation.rb <ide> def delete_by(*args) <ide> # <ide> # Post.where(published: true).load # => #<ActiveRecord::Relation> <ide> def load(&block) <del> exec_queries(&block) unless loaded? <add> unless loaded? <add> @records = exec_queries(&block) <add...
2
PHP
PHP
add additional tests for pagination + conditions
ace3754c8f2c90f477ce30a213fdf03d8b8056df
<ide><path>tests/TestCase/Database/Driver/SqlserverTest.php <ide> public function testSelectLimitOldServer() { <ide> $query->select(['id', 'title']) <ide> ->from('articles') <ide> ->order(['id']) <add> ->where(['title' => 'Something']) <ide> ->limit(10) <ide> ->offset(50); <ide> $expected = 'SELECT * ...
1
PHP
PHP
fix typos in type hints
aee3fc2bffe935ce238e0a733cbde098e931b24b
<ide><path>src/Illuminate/Collections/Enumerable.php <ide> public function pipe(callable $callback); <ide> /** <ide> * Pass the collection into a new class. <ide> * <del> * @param string-class $class <add> * @param class-string $class <ide> * @return mixed <ide> */ <ide> public f...
2
Javascript
Javascript
fix grunt bump_version
095e76dbecc6045e4d82d47d1c5f695b40cd3f0e
<ide><path>tasks/bump_version.js <ide> module.exports = function (grunt) { <ide> } <ide> <ide> grunt.config('string-replace.moment-js', { <del> files: {'moment.js': 'moment.js'}, <add> files: {'src/moment.js': 'src/moment.js'}, <ide> options: { <ide> re...
1
Text
Text
update the github issue template
f481746fe1e56a1b0b88eae150863471d3550478
<ide><path>.github/ISSUE_TEMPLATE.md <add><!-- <ide> Please consider the following before submitting an issue: <ide> <del>Guidelines for contributing: https://github.com/chartjs/Chart.js/blob/master/CONTRIBUTING.md <add>- Issues are reserved for BUG reports and FEATURE requests, DO NOT create issues for questions or s...
1
Python
Python
fix trainer evaluation
2d05480174c736399c212b3d60b8774fbbf2b6c2
<ide><path>src/transformers/trainer.py <ide> def _prediction_loop( <ide> model.eval() <ide> <ide> for inputs in tqdm(dataloader, desc=description): <del> has_labels = any(inputs.get(k) is not None for k in ["labels", "masked_lm_labels"]) <add> has_labels = any(inputs.get(k) is not...
1
PHP
PHP
fix double base directory in redirect routes
cab9961f81a2a17b04e0dd99c1854dd2d8f48915
<ide><path>src/Routing/Route/RedirectRoute.php <ide> public function parse($url, $method = '') <ide> } <ide> } <ide> } <del> $redirect = Router::reverse($redirect); <add> $redirect = Router::reverseToArray($redirect); <ide> } <ide> $s...
2
Ruby
Ruby
use a thread safe hash
9ca8c635f679ff7956496fd8e56a07f162f97fa2
<ide><path>actionpack/lib/action_view/dependency_tracker.rb <add>require 'thread_safe' <add> <ide> module ActionView <ide> class DependencyTracker <del> @trackers = Hash.new <add> @trackers = ThreadSafe::Cache.new <ide> <ide> def self.find_dependencies(name, template) <ide> handler = template.handler
1
Python
Python
remove a bunch of useless waf files
3d948d85ce15f07d22feea12bd55fe040d993477
<ide><path>tools/wafadmin/3rdparty/boost.py <del>#!/usr/bin/env python <del># encoding: utf-8 <del># <del># partially based on boost.py written by Gernot Vormayr <del># written by Ruediger Sonderfeld <ruediger@c-plusplus.de>, 2008 <del># modified by Bjoern Michaelsen, 2008 <del># modified by Luca Fossati, 2008 <del># r...
23
Python
Python
add coverage for blueprint teardown request method
d8d712a0def83d146d155acb941c31781e7c3b3a
<ide><path>tests/test_blueprints.py <ide> def after_bp(response): <ide> response.data += b'|after' <ide> evts.append('after') <ide> return response <add> @bp.teardown_request <add> def teardown_bp(exc): <add> evts.append('teardown') <ide> <ide> # Setup routes for testing <ide> ...
1
Javascript
Javascript
avoid exception due to console miss on ie 8
bdd9c62b0cf8b2be62291203bd16f2f191f7f00f
<ide><path>packages/ember-metal/lib/logger.js <ide> function consoleMethod(name) { <ide> <ide> if (method) { <ide> // Older IE doesn't support apply, but Chrome needs it <del> if (method.apply) { <add> if (typeof method.apply === 'function') { <ide> logToConsole = function() { <ide> method.ap...
1
Javascript
Javascript
run placeholder tests in persistent mode, too
3f4852fa5f932e5e815ef1be39c72ac8be4687d4
<ide><path>packages/react-native-renderer/src/ReactFabricHostConfig.js <ide> export function cloneUnhiddenInstance( <ide> }; <ide> } <ide> <del>export function createHiddenTextInstance( <add>export function cloneHiddenTextInstance( <add> instance: Instance, <add> text: string, <add> internalInstanceHandle: Object...
7
Javascript
Javascript
remove unused variable and improve argument name
7019de15f7f5e2183ea12ecbe2337bd7bc6c4f98
<ide><path>packages/ember-metal/lib/array.js <ide> var arrayIndexOf = Ember.arrayIndexOf = isNativeFunc(Array.prototype.indexOf) ? <ide> return -1; <ide> }; <ide> <del> <del>var slice = [].slice; <del> <ide> Ember.ArrayUtils = { <ide> map: function(obj, callback, thisArg) { <ide> return obj.map ? obj.map.call(...
1
Ruby
Ruby
tell people to report deprecations to tap
7a00f03c92607f65336be0285584e8351ad8a73a
<ide><path>Library/Homebrew/test/test_utils.rb <ide> def test_truncate_text_to_approximate_size <ide> s = truncate_text_to_approximate_size(long_s, n, :front_weight => 1.0) <ide> assert_equal(("x" * (n - glue.length)) + glue, s) <ide> end <add> <add> def test_odeprecated <add> ARGV.stubs(:homebrew_develop...
2
Go
Go
use nsinit as app
e25065a6b1df09771598d77cc698e4fcf1159bd4
<ide><path>pkg/libcontainer/container.go <ide> package libcontainer <ide> <ide> type Container struct { <ide> ID string `json:"id,omitempty"` <del> NsPid int `json:"namespace_pid,omitempty"` <ide> Command *Command `json:"command,omitempty"` <del> RootFs string `js...
7
Text
Text
fix the transformer link
89cc856f6d012ce47bc56e4cc6f7a806013a8ebf
<ide><path>official/README-TPU.md <ide> * [bert](nlp/bert): A powerful pre-trained language representation model: <ide> BERT, which stands for Bidirectional Encoder Representations from <ide> Transformers. <del>* [transformer](transformer): A transformer model to translate the WMT <add>* [transformer](nlp...
1
Text
Text
add a base link without jsx
9b399968eba10d1a6fe07d1656d919dd622d6b89
<ide><path>docs/_posts/2013-06-02-jsfiddle-integration.md <ide> layout: post <ide> author: Vjeux <ide> --- <ide> <del>[JSFiddle](http://jsfiddle.net) just announced support for React. This is an exciting news as it makes collaboration on snippets of code a lot easier. You can play around this **[base React JSFiddle](h...
1
Javascript
Javascript
explain the motivation for boolean attributes
b95fd53c6ee4c25d123f9e86f4bf5fbc378d181d
<ide><path>src/ng/directive/booleanAttrs.js <ide> * <ide> * The HTML specification does not require browsers to preserve the values of boolean attributes <ide> * such as disabled. (Their presence means true and their absence means false.) <del> * This prevents the Angular compiler from retrieving the binding express...
1
Python
Python
remove stray '+' from f-string upgrade
a430fab55823c4420b729f0b990b4c2cc87dddf2
<ide><path>numpy/random/_examples/numba/extending.py <ide> def numpycall(): <ide> assert r1.shape == r2.shape <ide> <ide> t1 = timeit(numbacall, number=1000) <del>+print(f'{t1:.2f} secs for {n} PCG64 (Numba/PCG64) gaussian randoms') <add>print(f'{t1:.2f} secs for {n} PCG64 (Numba/PCG64) gaussian randoms') <ide> t2 = t...
1
Go
Go
remove some unused stubs on windows
dd4cf4b641c29ba18c05ba31e44271c9b914f9eb
<ide><path>daemon/daemon_windows.go <ide> func getPluginExecRoot(root string) string { <ide> } <ide> <ide> func (daemon *Daemon) parseSecurityOpt(container *container.Container, hostConfig *containertypes.HostConfig) error { <del> return parseSecurityOpt(container, hostConfig) <del>} <del> <del>func parseSecurityOpt(c...
1
Python
Python
catch exp on alert
014543fab63c757d844b669fe6ed6c9a939f09f3
<ide><path>glances/core/glances_actions.py <ide> def run(self, stat_name, criticity, commands): <ide> for cmd in commands: <ide> logger.info("Action triggered for {0} ({1}): {2}".format(stat_name, criticity, cmd)) <ide> splitted_cmd = cmd.split() <del> Popen(splitted_cmd) <add...
1
Python
Python
improve cpu value parsing
a68e1e99421f8665d67d38ecf4c9a73cd9a1e51e
<ide><path>libcloud/container/drivers/kubernetes.py <ide> from libcloud.compute.base import NodeImage <ide> from libcloud.compute.base import NodeLocation <ide> <add>from libcloud.utils.misc import to_n_cpus_from_cpu_str <ide> from libcloud.utils.misc import to_k8s_memory_size_str_from_n_bytes <ide> from libcloud.util...
1
Text
Text
add oauth2authentication documentation
d8f455bc0ff920e9e0cd1952f58b5a0eccdc2683
<ide><path>docs/api-guide/authentication.md <ide> Unauthenticated responses that are denied permission will result in an `HTTP 403 <ide> <ide> If you're using an AJAX style API with SessionAuthentication, you'll need to make sure you include a valid CSRF token for any "unsafe" HTTP method calls, such as `PUT`, `PATCH`...
1
Python
Python
use module level constant
470dc46014e5b89a61a74cb6fd62493c49483a15
<ide><path>libcloud/compute/ssh.py <ide> import paramiko <ide> <ide> have_paramiko = True <add> <add> PARAMIKO_VERSION_TUPLE = tuple([int(x) for x in paramiko.__version__.split(".")]) <ide> except ImportError: <del> pass <add> PARAMIKO_VERSION_TUPLE = [] <ide> <ide> # Depending on your version of Par...
1
Ruby
Ruby
add tests for keg#mach_o_files link behavior
cb3ad215b4fc011e3405e6e577b97819c683036a
<ide><path>Library/Homebrew/test/test_keg.rb <ide> def test_removes_broken_symlinks_that_conflict_with_directories <ide> keg.unlink <ide> keg.uninstall <ide> end <add> <add> def test_mach_o_files_skips_hardlinks <add> a = HOMEBREW_CELLAR/"a/1.0" <add> (a/"lib").mkpath <add> FileUtils.cp dylib_path("...
3
Python
Python
fix reference to tpu short seq length
9e0fd78051da2d86f7c5be2cfa03648ec0554141
<ide><path>src/transformers/models/fnet/modeling_fnet.py <ide> def _init_fourier_transform(self, config): <ide> "dft_mat_hidden", torch.tensor(linalg.dft(config.hidden_size), dtype=torch.complex64) <ide> ) <ide> self.register_buffer( <del> "dft_mat_...
1
Java
Java
avoid reflection for @repeatable look-ups
40b2d26bd4e15f7eefe7f07aeb733761b9e241d5
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java <ide> package org.springframework.core.annotation; <ide> <ide> import java.lang.annotation.Annotation; <add>import java.lang.annotation.Repeatable; <ide> import java.lang.reflect.AnnotatedElement; <ide> import java.lang.refle...
1
Python
Python
fix coin change
46af42d47a8dfbc06393929c973f55f2d1148261
<ide><path>dynamic_programming/coin_change.py <ide> """ <ide> <ide> <del>def dp_count(S, m, n): <add>def dp_count(S, n): <ide> """ <del> >>> dp_count([1, 2, 3], 3, 4) <add> >>> dp_count([1, 2, 3], 4) <ide> 4 <del> >>> dp_count([1, 2, 3], 3, 7) <add> >>> dp_count([1, 2, 3], 7) <ide> 8 <del> ...
1