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 |
|---|---|---|---|---|---|
Text | Text | remove azure pipelines badge | eeaadc114823d4c130079536da1a3ecae030adc5 | <ide><path>README.md
<ide> Second, read the [Troubleshooting Checklist](https://docs.brew.sh/Troubleshootin
<ide> **If you don't read these it will take us far longer to help you with your problem.**
<ide>
<ide> ## Contributing
<del>[,
<ide>
<del> /*
<del> |--------------------------------------------------------------------------
<del> | Default Cloud Filesystem Disk
<del> |------------------------------------------------------------------... | 1 |
Go | Go | fix filemode permissions | 0a6d42e2085b9cd1d057779a5b0a80cd49292c37 | <ide><path>server/server.go
<ide> func (srv *Server) ImageExport(job *engine.Job) engine.Status {
<ide> rootRepoMap[name] = rootRepo
<ide> rootRepoJson, _ := json.Marshal(rootRepoMap)
<ide>
<del> if err := ioutil.WriteFile(path.Join(tempdir, "repositories"), rootRepoJson, os.ModeAppend); err != nil {
<add> if er... | 1 |
Text | Text | add the link for swarm reference document | ee23a8e124ef4801bcd0d044578da8daf63cba6f | <ide><path>docs/reference/commandline/swarm_init.md
<ide> frequently.
<ide> ## Related information
<ide>
<ide> * [swarm join](swarm_join.md)
<add>* [swarm join-token](swarm_join_token.md)
<ide> * [swarm leave](swarm_leave.md)
<add>* [swarm unlock](swarm_unlock.md)
<add>* [swarm unlock-key](swarm_unlock_key.md)
<ide> *... | 7 |
Ruby | Ruby | deprecate the block argument to migrator#migrate | 5e616379ccabce7196820ff517d34ed56ef2a160 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def forward(migrations_paths, steps=1)
<ide> move(:up, migrations_paths, steps)
<ide> end
<ide>
<del> def up(migrations_paths, target_version = nil, &block)
<del> self.new(:up, migrations(migrations_paths), target_version).migrate(&... | 1 |
Text | Text | add code example to subprocess.stdout | 0df3ea09faccd04dc0f0c3022e970e60403b9a6b | <ide><path>doc/api/child_process.md
<ide> then this will be `null`.
<ide> `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will
<ide> refer to the same value.
<ide>
<add>```js
<add>const { spawn } = require('child_process');
<add>
<add>const subprocess = spawn('ls');
<add>
<add>subprocess.std... | 1 |
Ruby | Ruby | use version objects | fc2d403a825b187f9979e7808344aab7ed533900 | <ide><path>Library/Homebrew/requirements/x11_dependency.rb
<ide> class X11Dependency < Requirement
<ide>
<ide> def initialize(name="x11", tags=[])
<ide> @name = name
<del> @min_version = tags.shift if /(\d\.)+\d/ === tags.first
<add> if /(\d\.)+\d/ === tags.first
<add> @min_version = Version.new(tags.... | 2 |
Ruby | Ruby | improve handling of sigint | 3db55d13d6996df22a0169df4dbbc8f854b2f051 | <ide><path>Library/Homebrew/dev-cmd/ruby.rb
<ide> def ruby
<ide> ruby_sys_args << "-e #{args.e}" if args.e
<ide> ruby_sys_args += args.named
<ide>
<del> begin
<del> safe_system RUBY_PATH,
<del> ENV["HOMEBREW_RUBY_WARNINGS"],
<del> "-I", $LOAD_PATH.join(File::PATH_SEPAR... | 5 |
Ruby | Ruby | avoid race condition in aj integration tests | 0e97cd1a0d3e7dbe2b99eb111e005d7c9d7002b7 | <ide><path>activejob/test/support/integration/dummy_app_template.rb
<ide> class TestJob < ActiveJob::Base
<ide> queue_as :integration_tests
<ide>
<ide> def perform(x)
<del> File.open(Rails.root.join("tmp/\#{x}"), "wb+") do |f|
<add> File.open(Rails.root.join("tmp/\#{x}.new"), "wb+") do |f|
<ide> f.writ... | 2 |
Python | Python | add support for squad bert export | 282adff5f9bfce2196f5902bdb6ad53eb6de55f3 | <ide><path>official/nlp/bert/export_tfhub.py
<ide> flags.DEFINE_string("export_path", None, "TF-Hub SavedModel destination path.")
<ide> flags.DEFINE_string("vocab_file", None,
<ide> "The vocabulary file that the BERT model was trained on.")
<del>flags.DEFINE_bool("do_lower_case", None, "Whether to ... | 1 |
PHP | PHP | use user-agent set in php.ini if available | 206358c9fd490d51b8665e8a7db814bdf00349a1 | <ide><path>src/Http/Client/Request.php
<ide> public function __construct(string $url = '', string $method = self::METHOD_GET,
<ide> $this->uri = $this->createUri($url);
<ide> $headers += [
<ide> 'Connection' => 'close',
<del> 'User-Agent' => 'CakePHP',
<add> 'User-Agent... | 1 |
Javascript | Javascript | remove common.port from test-cluster*.js | 415098f4997c014b4f9b7b33fc0c7f9588e1e090 | <ide><path>test/parallel/test-cluster-disconnect-leak.js
<ide> if (cluster.isMaster) {
<ide>
<ide> const server = net.createServer();
<ide>
<del>server.listen(common.PORT);
<add>server.listen(0);
<ide><path>test/parallel/test-cluster-disconnect-race.js
<ide> if (cluster.isMaster) {
<ide>
<ide> const server = net.cre... | 3 |
Javascript | Javascript | use structured cloning | 7176da7614fb3b457497e639908795948df5dc64 | <ide><path>src/state-store.js
<ide> class StateStore {
<ide> }
<ide>
<ide> save (key, value) {
<del> // Serialize values using JSON.stringify, as it seems way faster than IndexedDB structured clone.
<del> // (Ref.: https://bugs.chromium.org/p/chromium/issues/detail?id=536620)
<del> let jsonValue = JSON.st... | 1 |
PHP | PHP | fix misaligned comment | fb49cd2d1d604ccc7d33b34f6b7aa70d16aabbba | <ide><path>src/Mailer/Transport/SmtpTransport.php
<ide> public function __destruct()
<ide> try {
<ide> $this->disconnect();
<ide> } catch (Exception $e) {
<del>// avoid fatal error on script termination
<add> // avoid fatal error on script termination
<ide> }
<ide> }
<... | 1 |
Text | Text | update create theme guide based on feedback | 647dcd59884a0f4828c0400b07a875f6d2e0718d | <ide><path>docs/creating-a-theme.md
<ide> * Git - to track and distribute your themes
<ide> * What do I need to know?
<ide> * CSS/LESS - as that's what themes are written in
<add> * Devtools - so you can find the selector you're looking for.
<ide> * Is there an example I can start from?
<ide> * Yes, you can clon... | 1 |
Javascript | Javascript | add new line to default preferences | 0aa31a493b7d39118321ed319938ad47e312f102 | <ide><path>gulpfile.js
<ide> function preprocessDefaultPreferences(content) {
<ide> defines: DEFINES,
<ide> }, content);
<ide>
<del> return licenseHeader + '\n' + MODIFICATION_WARNING + '\n' + content;
<add> return licenseHeader + '\n' + MODIFICATION_WARNING + '\n' + content + '\n';
<ide> }
<ide>
<ide> gulp.t... | 1 |
Python | Python | fix tests for complex power function | 1dec6da92fa355620acfccd8e18a6fe80e06054e | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_power_complex(self):
<ide> x = np.array([1+2j, 2+3j, 3+4j])
<ide> assert_equal(x**0, [1., 1., 1.])
<ide> assert_equal(x**1, x)
<del> assert_equal(x**2, [-3+4j, -5+12j, -7+24j])
<del> assert_equal(x**3, [(1+2j)**3, (2+3j)**3, ... | 1 |
Ruby | Ruby | return matches from open pull requests | 79439626b5e7564566bdf8736916342e2bb5e1a7 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search
<ide> exec "open", "http://pdb.finkproject.org/pdb/browse.php?summary=#{ARGV.next}"
<ide> else
<ide> query = ARGV.first
<del> search_results = search_brews query
<add> rx = if query =~ %r{^/(.*)/$}
<add> Regexp.new($1)
<add> ... | 2 |
Text | Text | add redux-form to ecosystem | bcf4faf1fd085608e387e6f4097f94979adbb283 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> * [redux-batched-updates](https://github.com/acdlite/redux-batched-updates) — Batch React updates that occur as a result of Redux dispatches
<ide> * [redux-logger](https://github.com/fco... | 1 |
Python | Python | rnn unit tests touch-ups | 23afa3f3b6cc56be419ef1e8459565578ab5cc6f | <ide><path>keras/backend/theano_backend.py
<ide> def rnn(step_function, inputs, initial_states,
<ide> '''
<ide> inputs = inputs.dimshuffle((1, 0, 2))
<ide>
<del> def _step(ins, *states):
<del> output, new_states = step_function(ins, states)
<add> def _step(input, *states):
<add> output, new... | 2 |
Python | Python | fix is_cython_func for additional imported code | e9f7f9a4bc38fb490a43b46d3d70234a9ee44039 | <ide><path>spacy/tests/test_misc.py
<ide> from spacy import prefer_gpu, require_gpu, require_cpu
<ide> from spacy.ml._precomputable_affine import PrecomputableAffine
<ide> from spacy.ml._precomputable_affine import _backprop_precomputable_affine_padding
<del>from spacy.util import dot_to_object, SimpleFrozenList
<add>f... | 3 |
Ruby | Ruby | teach detailskey how to clear the template cache | f369b63ad69ac8bb29811e145a148dd109de777c | <ide><path>actionview/lib/action_view/lookup_context.rb
<ide> def self.details_cache_key(details)
<ide> end
<ide>
<ide> def self.clear
<add> ActionView::ViewPaths.all_view_paths.each do |path_set|
<add> path_set.each(&:clear_cache)
<add> end
<add> ActionView::LookupContext.fal... | 5 |
Javascript | Javascript | add testing for monkeypatching of console stdio | 6913bd183b5ffaa08fe71c9f3cb9ed1c964eab05 | <ide><path>test/parallel/test-console-stdio-setters.js
<add>'use strict';
<add>
<add>// Test that monkeypatching console._stdout and console._stderr works.
<add>const common = require('../common');
<add>
<add>const { Writable } = require('stream');
<add>const { Console } = require('console');
<add>
<add>const streamToN... | 1 |
Python | Python | add exhaust_iterator function and tests for it | be8993df81d165164d9171e79169462fac02e17d | <ide><path>libcloud/utils.py
<ide> def read_in_chunks(iterator, chunk_size=None, fill_size=False):
<ide> yield data
<ide> data = ''
<ide>
<add>def exhaust_iterator(iterator):
<add> """
<add> Exhaust an iterator and return all data returned by it.
<add>
<add> @type iterator: C{Iterator}... | 2 |
PHP | PHP | update doc blocks | 8ed08add54e924c219e559b946247e9c11418193 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function isFieldError($field) {
<ide> /**
<ide> * Returns a formatted error message for given form field, '' if no errors.
<ide> *
<del> * Uses the `error`, `errorList` and `errorItem` templates. The errorList and
<del> * errorItem templates are used to format mu... | 1 |
PHP | PHP | use a ternary instead of if/else | 2737bb477e3507d2264dd2596d711a2a58f3ccd4 | <ide><path>src/Http/Client.php
<ide> public function buildUrl(string $url, $query = [], array $options = []): string
<ide> if ($query) {
<ide> $q = strpos($url, '?') === false ? '?' : '&';
<ide> $url .= $q;
<del> if (is_string($query)) {
<del> $url .= $query;
<d... | 1 |
Python | Python | add support for the --modules-list | 13e4652bf11f8c1e13dfb397608c3eca1c3f4fc4 | <ide><path>glances/exports/glances_csv.py
<ide> def update(self, stats):
<ide> """Update stats in the CSV output file."""
<ide> # Get the stats
<ide> all_stats = stats.getAllExports()
<del> plugins = stats.getAllPlugins()
<add> plugins = stats.getPluginsList()
<ide>
<ide> ... | 8 |
Mixed | Text | add mem to csv output and manage flush | 0bfbaf2d3c0a52cf651663edbe36f53111d00844 | <ide><path>README.md
<del>[](https://flattr.com/submit/auto?user_id=nicolargo&url=https://github.com/nicolargo/glances&title=Glances&language=&tags=github&category=software)
<del>
<del>=============================
<del>Glances -- Eye on your s... | 3 |
Ruby | Ruby | require some developer tools | 634efba2615db158adeba1d56fc0ebf873b4c71b | <ide><path>Library/Homebrew/homebrew_bootsnap.rb
<ide> # typed: false
<ide> # frozen_string_literal: true
<ide>
<del>if !ENV["HOMEBREW_NO_BOOTSNAP"] &&
<del> ENV["HOMEBREW_BOOTSNAP"] &&
<del> # portable ruby doesn't play nice with bootsnap
<del> !ENV["HOMEBREW_FORCE_VENDOR_RUBY"] &&
<del> (!ENV["HOMEBREW_MACOS... | 1 |
Text | Text | add v3.9.0-beta.1 to changelog | aa0579b5dbc3e9568ebeaa034cf665e2f3c3a2ee | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.9.0-beta.1 (February 18, 2019)
<add>
<add>- [#17470](https://github.com/emberjs/ember.js/pull/17470) [DEPRECATION] Implements the Computed Property Modifier deprecation RFCs
<add> * Deprecates `.property()` (see [emberjs/rfcs#0375](https://github.com/e... | 1 |
Ruby | Ruby | handle the empty array correctly | efe4cbe5f273dc5eb16dda9a9363a8dd7c6b3bad | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def clear
<ide>
<ide> # Do the error messages include an error with key +error+?
<ide> def include?(error)
<del> messages.include? error
<add> (v = messages[error]) && v.any?
<ide> end
<ide>
<ide> # Get messages for +key+
<ide><path>act... | 2 |
Text | Text | add el cap doc link | 6e5bef5ee167b6ed635ebd845cffa61339fa989b | <ide><path>share/doc/homebrew/Troubleshooting.md
<ide> Thank you!
<ide> * If you’re installing something Java-related, maybe you need the [Java Developer Update][] or [JDK 7][]?
<ide> * Check that **Command Line Tools for Xcode (CLT)** and/or **Xcode** are up to date.
<ide> * If things fail with permissions errors, che... | 1 |
Javascript | Javascript | address feedback for accumulatetwophaselisteners | d3ec42020d220777bf589bec36c9cd8300ec9742 | <ide><path>packages/legacy-events/EventPropagators.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<ide> */
<ide>
<del>import {
<del> getParentInstance,
<del> traverseTwoPhase,
<del> traverse... | 13 |
Python | Python | add tests for record array indexing | 2eb9610acab872538742ce7db5cbbae6cb23360e | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_unicode_field_names(self):
<ide> def test_field_names(self):
<ide> # Test unicode and 8-bit / byte strings can be used
<ide> a = np.zeros((1,), dtype=[('f1', 'i4'),
<del> ('f2', [('sf1', 'i4')])])
<add> ... | 1 |
Text | Text | add some documentation of the masking feature | 337f39bd026f88a8408e0449a45b9495dcfab434 | <ide><path>docs/sources/examples.md
<ide> from keras.layers.embeddings import Embedding
<ide> from keras.layers.recurrent import LSTM
<ide>
<ide> model = Sequential()
<add># Add a mask_zero=True to the Embedding connstructor if 0 is a left-padding value in your data
<ide> model.add(Embedding(max_features, 256))
<ide> ... | 4 |
Ruby | Ruby | change the default `null` value for timestamps | ea3ba34506c72d636096245016b5ef9cfe27c566 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> def default_primary_key
<ide> end
<ide> end
<ide>
<add> module TimestampDefaultDeprecation # :nodoc:
<add> def emit_warning_if_null_unspecified(options)
<add> return if options.key?(:null)
<add>
... | 14 |
Javascript | Javascript | extract creation of usedchunks | 063c54f546b2298096ac2c1e06b443d16ed161a7 | <ide><path>lib/optimize/CommonsChunkPlugin.js
<ide> The available options are:
<ide> throw new Error("Invalid chunkNames argument");
<ide> }
<ide>
<add> getUsedChunks(compilation, allChunks, commonChunk, commonChunks, currentIndex, selectedChunks, isAsync) {
<add> const asyncOrNoSelectedChunk = selectedChunks === ... | 1 |
Text | Text | add github package | ef6e720761f7f2c3aab70e1b390fa78d680a3b42 | <ide><path>docs/build-instructions/build-status.md
<ide> | [Exception Reporting](https://github.com/atom/exception-reporting) | [](https://travis-ci.org/atom/exception-reporting) | [
<ide>
<ide> $file .= $this->_extension;
<ide>
<del> if ($checkExists && !is_file($file)) {
<add> if ($checkExists && !is_file(realpath($file))) {
<ide> throw new Except... | 1 |
Python | Python | add tag_map argument to cli debug-data and train | a4cacd3402848299444c477cb2f1a292425b29af | <ide><path>spacy/cli/debug_data.py
<ide> lang=("model language", "positional", None, str),
<ide> train_path=("location of JSON-formatted training data", "positional", None, Path),
<ide> dev_path=("location of JSON-formatted development data", "positional", None, Path),
<add> tag_map_path=("Location of JS... | 2 |
Text | Text | fix subtitle translation | d259580de47f6e6e1a53db99cb66155b073d89e6 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/avoid-colorblindness-issues-by-using-sufficient-contrast.portuguese.md
<ide> tests:
<ide> ## Solução
<ide> <section id='solution'>
<ide>
<del>```js
<del>// solution required
<add>```html
<add><head>
<add> <style>
<add> body {
... | 1 |
Text | Text | fix a small typo | 64e9f4d9c89a6c557fd1f182d238f280111f9e02 | <ide><path>docs/recipes/WritingTests.md
<ide> First, we will install [Enzyme](http://airbnb.io/enzyme/). Enzyme uses the [Reac
<ide> npm install --save-dev enzyme
<ide> ```
<ide>
<del>We will also need to install Enzyme adapter for our version of React. Enzyme has adapters that provide compatability with `React 16.x`,... | 1 |
Java | Java | use port scanning for jmx tests | b1485420b689a74722ad93a78f93334b57d023f7 | <ide><path>spring-context/src/test/java/org/springframework/jmx/support/MBeanServerConnectionFactoryBeanTests.java
<ide> import javax.management.remote.JMXConnectorServerFactory;
<ide> import javax.management.remote.JMXServiceURL;
<ide>
<add>import org.junit.Before;
<ide> import org.junit.Test;
<ide> import org.spring... | 1 |
Ruby | Ruby | require tag since we need it for this test | 2b4de6621f75b49c30c03ddd78076f7204cc9577 | <ide><path>activerecord/test/cases/associations/eager_load_nested_include_test.rb
<ide> require 'cases/helper'
<ide> require 'models/post'
<add>require 'models/tag'
<ide> require 'models/author'
<ide> require 'models/comment'
<ide> require 'models/category' | 1 |
Go | Go | sd_notify stopping=1 when shutting down | f3d0f7054dbc2e2bcd959cd4c7fc3a8fa097d525 | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
<ide> }, logrus.StandardLogger())
<ide>
<ide> // Notify that the API is active, but before daemon is set up.
<del> preNotifySystem()
<add> preNotifyReady()
<ide>
<ide> pluginStore := plugin.NewStore()
<ide>
<ide>... | 4 |
Javascript | Javascript | set lc_all to known good value | 2bb93e11085ea582aea1636f544d900520d479ed | <ide><path>test/parallel/test-process-env-tz.js
<ide> 'use strict';
<ide>
<add>// Set the locale to a known good value because it affects ICU's date string
<add>// formatting. Setting LC_ALL needs to happen before the first call to
<add>// `icu::Locale::getDefault()` because ICU caches the result.
<add>process.env.LC_... | 1 |
PHP | PHP | add register name | 269521ec9702c320e1f9928e19bfe694759589a3 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function auth()
<ide> $this->post('logout', 'Auth\LoginController@logout')->name('logout');
<ide>
<ide> // Registration Routes...
<del> $this->get('register', 'Auth\RegisterController@showRegistrationForm');
<add> $this->get('regis... | 1 |
Java | Java | optimize systemenvpropertysource when possible | 752574de1d529eb9eff413b0bffc2c51b5180012 | <ide><path>spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java
<ide> */
<ide> public class SystemEnvironmentPropertySource extends MapPropertySource {
<ide>
<add> /** if SecurityManager scenarios mean that property access should be via getPropertyNames() */
<add> private boolea... | 2 |
PHP | PHP | fix security component failing on csrf tokens | a33058405b344dd580d14dbd3816b7fb6ef883dd | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> protected function _validatePost(Controller $controller) {
<ide> if (strpos($token, ':')) {
<ide> list($token, $locked) = explode(':', $token, 2);
<ide> }
<del> unset($check['_Token']);
<add> unset($check['_Token'], $check['_csrfToken']);
<ide>
<... | 2 |
Python | Python | add setup directions for data dir | d105771a07f886fbcc9f3eefd47d2c8e8a56182e | <ide><path>examples/nn_text_class.py
<add>"""This script expects something like a binary sentiment data set, such as
<add> that available here: `http://www.cs.cornell.edu/people/pabo/movie-review-data/`
<add>
<add>It expects a directory structure like: `data_dir/train/{pos|neg}`
<add> and `data_dir/test/{pos|neg}`. Put... | 1 |
Python | Python | remove broken divmod o->oo loop until it is fixed | 2adb9298e4bad5b961143293d9ba19dbd10a2786 | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def english_upper(s):
<ide> docstrings.get('numpy.core.umath.divmod'),
<ide> None,
<ide> TD(intflt),
<del> TD(O, f='PyNumber_Divmod'),
<add> # TD(O, f='PyNumber_Divmod'), # gh-9730
<ide> ),
<ide> 'hy... | 1 |
Text | Text | update cross compiler machine for linux armv7 | f22a9cac36f731d5bdbf1b7c542b36fa4c13f4de | <ide><path>BUILDING.md
<ide> Binaries at <https://nodejs.org/download/release/> are produced on:
<ide> | aix-ppc64 | AIX 7.1 TL05 on PPC64BE with GCC 6 |
<ide> | darwin-x64 (and .pkg) | macOS 10.15, Xcode Command Line Tools 11 with -mmacosx-version-min=10.13 |
<ide> | l... | 1 |
Java | Java | add error filter to webclient integration test | ea85431ac55acf9e3b8dfca51879727c99c2d5f7 | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
<ide> public void retrieveToEntityNotFound() throws Exception {
<ide> }
<ide>
<ide> @Test
<del> public void buildFilter() throws Exception {
<add> public void filter() throws Exception {
<ide> th... | 1 |
Java | Java | remove unnecessary static imports from unit tests | 335ee341a32afcdcc16ea3b69c76230bafbce077 | <ide><path>src/test/java/io/reactivex/completable/CompletableTest.java
<ide> package io.reactivex.completable;
<ide>
<ide> import static org.junit.Assert.*;
<del>import static org.mockito.ArgumentMatchers.*;
<ide> import static org.mockito.Mockito.*;
<ide>
<ide> import java.util.*;
<ide><path>src/test/java/io/reactiv... | 149 |
Javascript | Javascript | remove pagenotfound key from the error | 6f9b51fce6e7024a1701946c0cd52beb12f99c0c | <ide><path>lib/error.js
<ide> import Head from './head'
<ide> export default class Error extends React.Component {
<ide> static getInitialProps ({ res, err }) {
<ide> const statusCode = res ? res.statusCode : (err ? err.statusCode : null)
<del> const pageNotFound = statusCode === 404 || (err ? err.pageNotFound... | 3 |
Ruby | Ruby | remove superfluous condition | e7f0d37c91c91a6b2f2a1232c1a670e59165dc19 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def submit_tag(value = "Save changes", options = {})
<ide> options.stringify_keys!
<ide>
<ide> if disable_with = options.delete("disable_with")
<del> options["data-disable-with"] = disable_with if disable_with
<add> ... | 1 |
Javascript | Javascript | fix style in net.js | d89f8dce28601a3414dd28a02bf181cf9cfa0979 | <ide><path>lib/net.js
<ide> var END_OF_FILE = 42;
<ide> try {
<ide> var SecureContext = process.binding('crypto').SecureContext;
<ide> var SecureStream = process.binding('crypto').SecureStream;
<del> var have_crypto = true;
<add> var haveCrypto = true;
<ide> } catch (e) {
<del> var have_crypto = false;
<add> va... | 1 |
Python | Python | use consistent imports and exports | fa3b8512dab5547955202a618acc8b7b8fa59386 | <ide><path>spacy/fr/__init__.py
<ide>
<ide> from .language_data import *
<ide> from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
<del>from .tokenizer_exceptions import get_tokenizer_exceptions, TOKEN_MATCH
<ide>
<ide>
<ide> class FrenchDefaults(BaseDefaults):
<ide> class FrenchDefaults(BaseDefaults):
<i... | 3 |
Ruby | Ruby | transform the symbol into a constant lookup | 139a9f7011687d5bb9df940957cd726c75e361cc | <ide><path>activemodel/lib/active_model/mass_assignment_security.rb
<ide> module MassAssignmentSecurity
<ide> class_attribute :_protected_attributes
<ide> class_attribute :_active_authorizer
<ide>
<del> class_attribute :mass_assignment_sanitizer, :mass_assignment_sanitizers
<add> class_attribute ... | 3 |
Javascript | Javascript | remove unecessary maps_lights_pars in examples | 33bd1a3d29997791a9d4d51870e082135bcbf32b | <ide><path>examples/js/ShaderSkin.js
<ide> THREE.ShaderSkin = {
<ide> THREE.ShaderChunk[ "bsdfs" ],
<ide> THREE.ShaderChunk[ "packing" ],
<ide> THREE.ShaderChunk[ "begin_lights_pars" ],
<del> THREE.ShaderChunk[ 'maps_lights_pars' ],
<ide> THREE.ShaderChunk[ "shadowmap_pars_fragment" ],
<ide> THREE.Shad... | 3 |
PHP | PHP | fix empty usem. fix test cases | eed02ac5091f44b3d0064978b17a597a596754b6 | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> public function columnSql(Table $table, $name)
<ide> }
<ide>
<ide> $hasCollate = ['text', 'string'];
<del> if (in_array($data['type'], $hasCollate, true) && isset($data['collate'])) {
<add> if (in_array($data['type'], $hasCollate, true)... | 6 |
Python | Python | update pypi release to 0.3.1 | f447644900fd1c7653ce4c9a3728ce20ba20f610 | <ide><path>keras/__init__.py
<del>__version__ = '0.3.0'
<add>__version__ = '0.3.1'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='0.3.0',
<add> version='0.3.1',
<ide> description='Theano-based Deep Learning library',
<ide> author='Francois Chollet',
<ide> author_e... | 2 |
Javascript | Javascript | remove `common.port` from test-tlswrap | ddbf07ab89b501e0ee41c69655920757fb561ca0 | <ide><path>test/async-hooks/test-tlswrap.js
<ide> const server = tls
<ide> })
<ide> .on('listening', common.mustCall(onlistening))
<ide> .on('secureConnection', common.mustCall(onsecureConnection))
<del> .listen(common.PORT);
<add> .listen(0);
<ide>
<ide> let svr, client;
<ide> function onlistening() {
<ide> ... | 1 |
Text | Text | adjust assignment in condition in stream doc | 8cba65f61afe35228938c04b2c8527897366f689 | <ide><path>doc/api/stream.md
<ide> readable.on('readable', function() {
<ide> // There is some data to read now.
<ide> let data;
<ide>
<del> while (data = this.read()) {
<add> while ((data = this.read()) !== null) {
<ide> console.log(data);
<ide> }
<ide> }); | 1 |
Ruby | Ruby | remove duplicate insertion spec | bfcb7ca25d86491fb4e1edeb463a99006f6c7151 | <ide><path>spec/active_relation/unit/relations/insertion_spec.rb
<ide> module ActiveRelation
<ide> ")
<ide> end
<ide> end
<del>
<del> describe 'when given values whose types correspond to the type of the attribtues' do
<del> before do
<del> @insertion = Insertion.new(@... | 1 |
Text | Text | add the text "printer" to article | 2787e6aac68653f78321d555a684bd22596be39b | <ide><path>guide/english/computer-hardware/index.md
<ide> Input/Output device is any hardware used by a human operator or other systems to
<ide> A computer monitor is an output device which displays information in pictorial form.
<ide>
<ide> ;
<ide> # --solutions--
<ide>
<ide> ```js
<add>const NUM_PRIMES = 1000000;
<add>const PRIME_SEIVE = Array(Math.floor((NUM_PRIMES-1)/2)).fill(true);
<add>(function initPr... | 1 |
Javascript | Javascript | improve error message when deserialization failed | 83c5305872a7a48b2264982a2522404724a1ec24 | <ide><path>lib/serialization/ObjectMiddleware.js
<ide> class ObjectMiddleware extends SerializerMiddleware {
<ide>
<ide> objectTypeLookup.set(currentPosTypeLookup++, serializer);
<ide> }
<del> const item = serializer.deserialize(ctx);
<del> const end1 = read();
<add> try {
<add> const item ... | 1 |
Python | Python | add better test for inexact numbers | 620653b708d24c457256dc9c10996172cc4811d9 | <ide><path>numpy/core/tests/test_scalarmath.py
<ide> def check_large_types(self):
<ide> for t in [np.int32, np.int64, np.float32, np.float64, np.longdouble]:
<ide> a = t(51)
<ide> b = a ** 4
<del> assert b == 6765201, "error with %r: got %r" % (t,b)
<add> msg = "err... | 1 |
Java | Java | fix observable.delay & flowable.delay javadoc | 15fea59b8d890174d1339818f98fb391b5647cfe | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public final Flowable<T> delay(long delay, TimeUnit unit) {
<ide>
<ide> /**
<ide> * Returns a Flowable that emits the items emitted by the source Publisher shifted forward in time by a
<del> * specified delay. Error notifications from the source Pu... | 2 |
Python | Python | add test for small percentile | 159714bd258645d82a0e511c44a9fc60b0837bc2 | <ide><path>benchmarks/benchmarks/bench_function_base.py
<ide> def time_wide(self):
<ide> class Percentile(Benchmark):
<ide> def setup(self):
<ide> self.e = np.arange(10000, dtype=np.float32)
<del> self.o = np.arange(10001, dtype=np.float32)
<add> self.o = np.arange(21, dtype=np.float32)
<ide> ... | 1 |
Python | Python | remove the minifying logic | 0e2b25034edce829c1bd584c538199be98d0be50 | <ide><path>tools/js2c.py
<ide> # library.
<ide>
<ide> import os
<del>from os.path import dirname
<ide> import re
<ide> import sys
<ide> import string
<ide>
<del>sys.path.append(dirname(__file__) + "/../deps/v8/tools");
<del>import jsmin
<del>
<ide>
<ide> def ToCArray(filename, lines):
<ide> return ','.join(str(ord... | 1 |
Java | Java | add callback for uiimplementation layout updates | 91372e8f9aafcad2b5594175b1a3ce6f9c8f3b8e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java
<ide> public class UIImplementation {
<ide> private final int[] mMeasureBuffer = new int[4];
<ide>
<ide> private long mLastCalculateLayoutTime = 0;
<add> protected @Nullable LayoutUpdateListener mLayoutUpdateListener;
<add>
<... | 1 |
PHP | PHP | apply fixes from styleci | 737b639580598bc77f53f38e2f84431ed5b514ff | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function testNestedErrorMessagesAreRetrievedFromLocalArray()
<ide> 'posts' => [
<ide> [
<ide> 'name' => '',
<del> ]
<add> ],
<ide> ... | 1 |
PHP | PHP | add cache global helper | f53291b2b6e2d3032b4254e83ca03708dae1ec26 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function session($key = null, $default = null)
<ide> }
<ide> }
<ide>
<add>if (! function_exists('cache')) {
<add> /**
<add> * Get / set the specified cache value.
<add> *
<add> * If an array is passed, we'll assume you want to put to the cache.
... | 2 |
Javascript | Javascript | help the gc | 5a80ba12f1e05e6afa6359ed36d881ea419009ee | <ide><path>lib/serialization/ObjectMiddleware.js
<ide> class ObjectMiddleware extends SerializerMiddleware {
<ide> throw new Error("Version mismatch, serializer changed");
<ide>
<ide> let currentPos = 0;
<del> const referenceable = [];
<add> let referenceable = [];
<ide> const addReferenceable = item => {
<id... | 1 |
Python | Python | fix some rest errors in core/defchararray.py | 2411b7b0f1bee1472db260728de38f0dba4baf7b | <ide><path>numpy/core/defchararray.py
<ide> def add(x1, x2):
<ide> Returns
<ide> -------
<ide> out : ndarray
<del> Output array of string_ or unicode_, depending on input types
<add> Output array of `string_` or `unicode_`, depending on input types
<ide> """
<ide> arr1 = numpy.asarray(... | 1 |
Java | Java | remove extra synchronization | d107ebaa37de645529e2512bfbe51153a96e9ee1 | <ide><path>rxjava-core/src/main/java/rx/operators/OperationParallel.java
<ide> public Integer call(T t) {
<ide> return i.incrementAndGet() % s.degreeOfParallelism();
<ide> }
<ide>
<del> }).flatMap(new Func1<GroupedObservable<Integer, T>, Observable<R>>() {
<ad... | 1 |
Text | Text | add 2.13.2 to changelog.md | 787e0894144fb498f5350d25a72559217b227403 | <ide><path>CHANGELOG.md
<ide> - [#15178](https://github.com/emberjs/ember.js/pull/15178) Refactor route to lookup controller for QPs.
<ide> - [#15129](https://github.com/emberjs/ember.js/pull/15129) Fix access to service:-document in ember-engines
<ide>
<add>### 2.13.2 (May 18, 2017)
<add>
<add>- Revert over eager dep... | 1 |
Java | Java | update copyright year of changed file | ca6911a532925e8f2a4d8c0901e5536dd60d1841 | <ide><path>spring-core/src/main/java/org/springframework/util/CollectionUtils.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use t... | 1 |
Go | Go | set default memoryswap on docker side | 7e0dfbf4cdbb8694a90818b5cd746b92e11a78c7 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) ContainerCreate(name string, config *runconfig.Config, hos
<ide> return "", nil, fmt.Errorf("Config cannot be empty in order to create a container")
<ide> }
<ide>
<add> daemon.adaptContainerSettings(hostConfig)
<ide> warnings, err := daemon.verifyContainerSet... | 3 |
Python | Python | fix some misspellings | f23c328e0d992f07ba811a86dca5a542a43918ce | <ide><path>glances/core/glances_processes.py
<ide> def __init__(self, cache_timeout=60):
<ide> self.processcount = {
<ide> 'total': 0, 'running': 0, 'sleeping': 0, 'thread': 0}
<ide>
<del> # Tag to enable/disable the processes stats (to reduce the Glances CPU comsumption)
<add> # Tag ... | 2 |
Javascript | Javascript | improve ember.logger setup - fixes | f20bf0599d8185aaa7d154081d0b41336d7d85e2 | <ide><path>packages/ember-metal/lib/core.js
<ide> Ember.uuid = 0;
<ide> //
<ide>
<ide> function consoleMethod(name) {
<del> if (imports.console && imports.console[name]) {
<add> var console = imports.console,
<add> method = typeof console === 'object' ? console[name] : null;
<add>
<add> if (method) {
<ide> ... | 1 |
PHP | PHP | fix issues with model bake | 30590ba4239bdda0b96692c2a158325c1eae6e15 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function generate($name) {
<ide> );
<ide> $this->bakeTable($model, $data);
<ide> $this->bakeEntity($model, $data);
<del> $this->bakeFixture($model, $table);
<del> $this->bakeTest($model);
<add> $this->bakeFixture($model->alias(), $table);
<add> $t... | 2 |
Mixed | Python | add validate option to entityruler | 69aca7d8391e0bbc551fe588e1f3b06f1d68a3f2 | <ide><path>spacy/pipeline/entityruler.py
<ide> class EntityRuler(object):
<ide>
<ide> name = "entity_ruler"
<ide>
<del> def __init__(self, nlp, phrase_matcher_attr=None, **cfg):
<add> def __init__(self, nlp, phrase_matcher_attr=None, validate=False, **cfg):
<ide> """Initialize the entitiy ruler. If ... | 4 |
Javascript | Javascript | use charat for ie7 support | 318ad59c2a738688826b12c7de48be13b5342fe5 | <ide><path>packages/sproutcore-metal/lib/accessors.js
<ide> function getPath(target, path) {
<ide> var len = path.length, idx, next, key;
<ide>
<ide> idx = path.indexOf('*');
<del> if (idx>0 && path[idx-1]!=='.') {
<add> if (idx>0 && path.charAt(idx-1)!=='.') {
<ide> return getPath(getPath(target, path.sli... | 1 |
Python | Python | fix experimental api client | f4067b65a55f7b46e991e1fa3af5a1c82bd8915c | <ide><path>airflow/api/auth/backend/default.py
<ide> # under the License.
<ide> """Default authentication backend - everything is allowed"""
<ide> from functools import wraps
<del>from typing import Callable, TypeVar, cast
<add>from typing import Callable, Optional, Tuple, TypeVar, Union, cast
<ide>
<del>from airflow.... | 6 |
Text | Text | update korean translation to 991c437 | b2caf1e4e31281b317be6a3ff6f5106faf971304 | <ide><path>docs/docs/10.4-test-utils.ko-KR.md
<ide> object mockComponent(function componentClass, string? mockTagName)
<ide> boolean isElement(ReactElement element)
<ide> ```
<ide>
<del>`element`가 ReactElement면 true를 리턴합니다.
<add>`element`가 ReactElement면 `true`를 리턴합니다.
<ide>
<ide> ### isElementOfType
<ide>
<ide> ```j... | 4 |
Ruby | Ruby | avoid unnecessary matchdata objects | 0c15b85d5d0fada21306ec6da8b2bb0470fefc68 | <ide><path>actionpack/lib/action_dispatch/http/filter_redirect.rb
<ide> def location_filter_match?(filters)
<ide> if String === filter
<ide> location.include?(filter)
<ide> elsif Regexp === filter
<del> location.match(filter)
<add> location =~ filter
<ide> ... | 1 |
PHP | PHP | fix plural calculation for icelandic | d9f3e866a19b966e15298de180bc810cb27f862d | <ide><path>src/I18n/PluralRules.php
<ide> class PluralRules {
<ide> 'hr' => 3,
<ide> 'hu' => 1,
<ide> 'id' => 0,
<del> 'is' => 1,
<add> 'is' => 15,
<ide> 'it' => 1,
<ide> 'ja' => 0,
<ide> 'jv' => 0,
<ide> public static function calculate($locale, $n) {
<ide> return $n == 1 ? 0 :
<ide> ($n == 2 ? ... | 2 |
Ruby | Ruby | fix typo in go regex | e69fbaf3575a2a4aec529927b190815eb2fbb64d | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def formula_ignores(f)
<ide> end
<ide> if any_go_deps
<ide> go_regex = Version.formula_optionally_versioned_regex(:go, full: false)
<del> ignores << %r{#{cellar_regex}/#{go_regex}/[\d.]+/libexec]}
<add> ignores << %r{#{cellar_regex}/#{go_regex}... | 1 |
Python | Python | determine labels by factory name in debug data | a55212fca01f97beaf6f07e8ff3fc6e81a0b7de4 | <ide><path>spacy/cli/debug_data.py
<ide> from ..schemas import ConfigSchemaTraining
<ide> from ..pipeline._parser_internals import nonproj
<ide> from ..pipeline._parser_internals.nonproj import DELIMITER
<del>from ..pipeline import Morphologizer
<add>from ..pipeline import Morphologizer, SpanCategorizer
<ide> from ..mo... | 2 |
Javascript | Javascript | upgrade chunkmoduleidrangeplugin to es6 | d7b97e86a1589af5f656e3bc3153219c7bd396d3 | <ide><path>lib/optimize/ChunkModuleIdRangePlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function ChunkModuleIdRangePlugin(options) {
<del> this.options = options;
<del>}
<del>module.exports = ChunkModuleIdRangePlugin;
<del>ChunkModuleId... | 1 |
Ruby | Ruby | check all our bash code for syntax errors | c016aedaab3a5b10207eb05d6b53199e6fcdb761 | <ide><path>Library/Homebrew/test/test_bash.rb
<ide> require "testing_env"
<ide>
<ide> class BashTests < Homebrew::TestCase
<del> def assert_valid_bash_syntax(files)
<del> output = Utils.popen_read("/bin/bash -n #{files} 2>&1")
<add> def assert_valid_bash_syntax(file)
<add> output = Utils.popen_read("/bin/bash ... | 1 |
Javascript | Javascript | make map copyable | 857a614babd82f3cbf03fefc0b336a44918f5b0e | <ide><path>packages/ember-metal/lib/map.js
<ide>
<ide> require('ember-metal/array');
<ide> require('ember-metal/utils');
<add>require('ember-metal/core');
<ide>
<ide> /** @private */
<ide> var guidFor = Ember.guidFor,
<ide> indexOf = Ember.ArrayPolyfills.indexOf;
<ide>
<add>var copy = function(obj) {
<add> var ... | 2 |
Go | Go | solve an issue with the -dns in daemon mode | afd325a8845ad7c4846747fb9561df12ebf9963a | <ide><path>docker/docker.go
<ide> func main() {
<ide> bridgeName := flag.String("b", "", "Attach containers to a pre-existing network bridge")
<ide> pidfile := flag.String("p", "/var/run/docker.pid", "File containing process PID")
<ide> flHost := flag.String("H", fmt.Sprintf("%s:%d", host, port), "Host:port to bind/... | 1 |
PHP | PHP | add note about php's include_path | bc689151a41607d20d5088082e76892469e670f1 | <ide><path>lib/Cake/TestSuite/templates/phpunit.php
<ide> <li><code>pear channel-discover pear.symfony-project.com</code></li>
<ide> <li><code>pear install phpunit/PHPUnit-3.5.15</code></li>
<ide> </ul>
<add> <p>Once PHPUnit is installed make sure its located on PHP's <code>include_path</code> by checking your php... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.