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 | add some tests for dynamic rendering | 753113bb9cbd10b9dc49770744e8d85d41788cbb | <ide><path>test/integration/basic/components/hello1.js
<add>export default () => (
<add> <p>Hello World 1</p>
<add>)
<ide><path>test/integration/basic/pages/dynamic/no-ssr-custom-loading.js
<add>import dynamic from 'next/dynamic'
<add>
<add>const Hello = dynamic(import('../../components/hello1'), {
<add> ssr: false,
... | 5 |
Ruby | Ruby | add another file check to check_for_macgpg2 | e750242b73d3dba199fd7491972854ca6b48ea38 | <ide><path>Library/Homebrew/brew_doctor.rb
<ide> def is_prefix? prefix, longer_string
<ide> # Installing MacGPG2 interferes with Homebrew in a big way
<ide> # http://sourceforge.net/projects/macgpg2/files/
<ide> def check_for_macgpg2
<del> if File.exist? "/Applications/start-gpg-agent.app"
<add> if File.exist? "/Appl... | 1 |
Mixed | Ruby | add inline failure reporting to test runner | 64a3b09b408400c94fd25f22c2ce791a8d90b5cb | <ide><path>railties/CHANGELOG.md
<add>* Add inline output to `bin/rails test`
<add>
<add> Any failures or errors (and skips if running in verbose mode) are output
<add> during a test run:
<add>
<add> ```
<add> # Running:
<add>
<add> .....S..........................................F
<add>
<add> This ... | 5 |
Text | Text | add teletype highlights from the past week | 4fbad81a7cd2f2e3925d7e920086bc1ebf2fe210 | <ide><path>docs/focus/2018-04-23.md
<ide> - Code cleanup: replace ObserveModelDecorator with ObserveModel render-prop [atom/github#1393](https://github.com/atom/github/pull/1393)
<ide> - Document our [long-term visions](https://github.com/atom/github/tree/master/docs/vision) for the GitHub package.
<ide> - Teletype... | 2 |
PHP | PHP | resolve default driver in shoulduse | 997c74052c860a5e41e833a4079d4aeb5c48046d | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> public function getDefaultDriver()
<ide> */
<ide> public function shouldUse($name)
<ide> {
<add> $name = $name ?: $this->getDefaultDriver();
<add>
<ide> $this->setDefaultDriver($name);
<ide>
<ide> $this->userResolver = function ($... | 1 |
Java | Java | remove unnecessary null check in sysenvpropsource | 009d2a5efd456a37c29fd984be3087f09082c325 | <ide><path>spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java
<ide> public boolean containsProperty(String name) {
<ide> public Object getProperty(String name) {
<ide> Assert.notNull(name, "property name must not be null");
<ide> String actualName = resolvePropertyName(name... | 1 |
Go | Go | add testcase of expose 5678/udp | 0552f1a0caf8f8e57736d05c2ed42f82e97df5f6 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildExposeOrder(t *testing.T) {
<ide> logDone("build - expose order")
<ide> }
<ide>
<add>func TestBuildExposeUpperCaseProto(t *testing.T) {
<add> name := "testbuildexposeuppercaseproto"
<add> expected := "map[5678/udp:map[]]"
<add> defer deleteImages... | 1 |
Text | Text | unify more headings | 6e869be104374a2970a60de8bfccce9f6197af31 | <ide><path>doc/api/async_hooks.md
<ide> function destroy(asyncId) { }
<ide> function promiseResolve(asyncId) { }
<ide> ```
<ide>
<del>#### `async_hooks.createHook(callbacks)`
<add>#### async_hooks.createHook(callbacks)
<ide>
<ide> <!-- YAML
<ide> added: v8.1.0
<ide> provided by AsyncHooks itself. The logging should t... | 3 |
Ruby | Ruby | remove special cases in build-time dep audit | 6c3ee52d14e54f5cb23438c3ec4a1b57a1e60e80 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide>
<ide> case dep.name
<ide> when *BUILD_TIME_DEPS
<del> next if dep.build?
<del> next if dep.name == 'autoconf' && f.name =~ /automake/
<del> next if dep.name == 'libtool' && %w{imagemagick libgphoto2 libp11 libextractor... | 2 |
Ruby | Ruby | fix #480. passing nil to create association works | 5fc3564a5021909384d2b762d125e521683403f1 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def insert_record(record, validate = true)
<ide> end
<ide>
<ide> def build_record(attributes, options)
<del> reflection.build_association(scoped.scope_for_create.merge(attributes), options)
<add> re... | 1 |
Ruby | Ruby | fix pkg-config paths | d7323f30d3ce781519044585fab2b030e29b3efb | <ide><path>Library/Homebrew/extend/os/mac/extend/ENV/std.rb
<ide> module Stdenv
<ide> undef homebrew_extra_pkg_config_paths
<ide>
<ide> def homebrew_extra_pkg_config_paths
<del> ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"]
<add> ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacO... | 2 |
Javascript | Javascript | fix physical node material | 3ec88490b2293606bb8aad37e4316e83cf523da3 | <ide><path>examples/js/nodes/materials/StandardNode.js
<ide> THREE.StandardNode.prototype.build = function( builder ) {
<ide>
<ide> output.push(
<ide> environment.code,
<del> "RE_IndirectSpecular(" + environment.result + ", geometry, material, reflectedLight );"
<add> "RE_IndirectSpecular_Physical(" + env... | 1 |
Python | Python | set version to spacy-nightly rc2 | 4efaf9306c46c4424e493bf9b75cf838a354d093 | <ide><path>spacy/about.py
<ide> # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<del>__title__ = 'spacy'
<del>__version__ = '2.0.0'
<add>__title__ = 'spacy-nightly'
<add>__version__ = '2.0.0rc2'
<i... | 1 |
Python | Python | add conditional version retrieval from setup. | 537aba738cf44f471dfc55db2e860d227c58dd55 | <ide><path>airflow/version.py
<ide> except ImportError:
<ide> import importlib_metadata as metadata
<ide>
<del>version = metadata.version('apache-airflow')
<add>try:
<add> version = metadata.version('apache-airflow')
<add>except metadata.PackageNotFoundError:
<add> import logging
<add>
<add> log = logging... | 1 |
Ruby | Ruby | fix urlsafe messageverifier not to include padding | 08afa160a56809ca5827c559f409bcb89d362af1 | <ide><path>activesupport/lib/active_support/message_verifier.rb
<ide> def generate(value, expires_at: nil, expires_in: nil, purpose: nil)
<ide>
<ide> private
<ide> def encode(data)
<del> @urlsafe ? Base64.urlsafe_encode64(data) : Base64.strict_encode64(data)
<add> @urlsafe ? Base64.urlsafe_enco... | 2 |
Python | Python | show the location of an empty list in np.block | 6a3a236ca847785657b264576f9b34a20a24e957 | <ide><path>numpy/core/shape_base.py
<ide> def stack(arrays, axis=0, out=None):
<ide> return _nx.concatenate(expanded_arrays, axis=axis, out=out)
<ide>
<ide>
<add>def _block_format_index(index):
<add> """
<add> Convert a list of indices ``[0, 1, 2]`` into ``"arrays[0][1][2]"``.
<add> """
<add> idx_str ... | 1 |
Python | Python | move quote_parameter off of operations and rename | 42607a9e33e63639d1da2166b9a2f85c691e07ae | <ide><path>django/db/backends/__init__.py
<ide> def quote_name(self, name):
<ide> """
<ide> raise NotImplementedError('subclasses of BaseDatabaseOperations may require a quote_name() method')
<ide>
<del> def quote_parameter(self, value):
<del> """
<del> Returns a quoted version of the ... | 10 |
Ruby | Ruby | remove unused method | c8aea8653abcbb89a1334b173511b39e8588825a | <ide><path>Library/Homebrew/utils/bottles.rb
<ide> def extname_tag_rebuild(filename)
<ide> HOMEBREW_BOTTLES_EXTNAME_REGEX.match(filename).to_a
<ide> end
<ide>
<del> # TODO: remove when removed from brew-test-bot
<del> sig { returns(Regexp) }
<del> def native_regex
<del> /(\.#{Regexp... | 1 |
Java | Java | mark the thread as interrupted again | 4880e34a45bea09828ce3419919d5fd3336f54f3 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public void onNext(T args) {
<ide> try {
<ide> latch.await();
<ide> } catch (InterruptedException e) {
<add> // set the interrupted flag again so callers can still get it
<add> // for more information see htt... | 1 |
Ruby | Ruby | use canonical_name in the exception message | 70f22fc31e8aea5cd3c05f5a9cde54896814099f | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def kegs
<ide> elsif (prefix = Formulary.factory(canonical_name).prefix).directory?
<ide> Keg.new(prefix)
<ide> else
<del> raise MultipleVersionsInstalledError.new(name)
<add> raise MultipleVersionsInstalledError.new(canonical_... | 1 |
PHP | PHP | use real command name | 313abe624db65237d4bacc5fa3dd93e651c05ab9 | <ide><path>app/Console/Kernel.php
<ide> class Kernel extends ConsoleKernel {
<ide> */
<ide> protected function schedule(Schedule $schedule)
<ide> {
<del> $schedule->artisan('foo')
<add> $schedule->artisan('inspire');
<ide> ->hourly();
<ide> }
<ide> | 1 |
Ruby | Ruby | remove unnecessary require and extend | e3fc35b5d68b66d5fa165baf69bf76c1110bb512 | <ide><path>railties/test/railties/engine_test.rb
<ide> def boot_rails
<ide> add_to_env_config "development", "config.assets.digest = false"
<ide>
<ide> boot_rails
<del> require 'rack/test'
<del> extend Rack::Test::Methods
<ide>
<ide> get "/assets/engine.js"
<ide> assert_match "alert(... | 1 |
Javascript | Javascript | modify key events for horizontal scrolling | eaf14e5d47a0ef7fcf5186d5babf1c73b48ec662 | <ide><path>web/app.js
<ide> function webViewerKeyDown(evt) {
<ide> }
<ide>
<ide> if (cmd === 0) { // no control key pressed at all.
<add> let turnPage = 0, turnOnlyIfPageFit = false;
<ide> switch (evt.keyCode) {
<ide> case 38: // up arrow
<ide> case 33: // pg up
<add> // vertical scrollin... | 2 |
Text | Text | remove conflict comment | 1adbc22fdeb6dce5a6628fd7cb4a7dc2883e25fc | <ide><path>docs/docs/02.1-jsx-in-depth.md
<ide> var content = (
<ide>
<ide> > NOTE:
<ide> >
<del>> JSX is similar to HTML, but not exactly the same. See [JSX gotchas](/react/docs/jsx-gotchas.html) for some key differences.
<del>>>>>>>> master
<add>> JSX is similar to HTML, but not exactly the same. See [JSX gotchas](... | 1 |
PHP | PHP | fix config option in listen command | a597ed29dc35444f63c8b53273133b3838e3ea29 | <ide><path>src/Illuminate/Queue/Console/ListenCommand.php
<ide> public function fire()
<ide> */
<ide> protected function getQueue($connection)
<ide> {
<del> $queue = $this->laravel['config']->get("queue.{$connection}.queue", 'default');
<add> $queue = $this->laravel['config']->get("queue.connections.{$connection}... | 1 |
Javascript | Javascript | add test for noassert option in buf.read*() | c8ed5f29ca877e8baddea2f04483f19d5c872832 | <ide><path>test/parallel/test-buffer-read-noassert.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>
<add>// testing basic buffer read functions
<add>const buf = Buffer.from([0xa4, 0xfd, 0x48, 0xea, 0xcf, 0xff, 0xd9, 0x01, 0xde]);
<add>
<add>function read(buff, funx, args, ex... | 1 |
Ruby | Ruby | fix wrong require | b11645eb2b8617ebf9feb1128dc16072922580ee | <ide><path>activerecord/lib/active_record/encryption/encryptor.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "openssl"
<del>require "zip"
<add>require "zlib"
<ide> require "active_support/core_ext/numeric"
<ide>
<ide> module ActiveRecord | 1 |
Java | Java | make javadoc for zip() variants more precise | 1ea6d157d71000a563ec90db548907f3afbb8412 | <ide><path>src/main/java/rx/Observable.java
<ide> public final static <T, Resource> Observable<T> using(
<ide> }
<ide>
<ide> /**
<del> * Returns an Observable that emits the results of a function of your choosing applied to combinations of
<add> * Returns an Observable that emits the results of a speci... | 1 |
Ruby | Ruby | include missing module in tag_helper | 05fde24e1ef8c3b225eea8c51cbc05418620ae4a | <ide><path>actionview/lib/action_view/helpers/tag_helper.rb
<ide> module Helpers #:nodoc:
<ide> module TagHelper
<ide> extend ActiveSupport::Concern
<ide> include CaptureHelper
<add> include OutputSafetyHelper
<ide>
<ide> BOOLEAN_ATTRIBUTES = %w(disabled readonly multiple checked autobuffer
... | 1 |
Javascript | Javascript | increase lint compliance | 1d96d7da7331619ee99066451f6bcf1b5a7f3953 | <ide><path>benchmark/napi/function_args/index.js
<ide> let napi;
<ide> try {
<ide> v8 = require('./build/Release/binding');
<ide> } catch (err) {
<del> // eslint-disable-next-line no-path-concat
<del> console.error(__filename + ': V8 Binding failed to load');
<add> console.error(`${__filename}: V8 Binding failed t... | 1 |
Javascript | Javascript | add tests for console.log arguments handling | bedca2e7a9714ad97bc12e1228ff08075fd25556 | <ide><path>test/simple/test-console.js
<add>common = require("../common");
<add>assert = common.assert;
<add>
<add>var stdout_write = global.process.stdout.write;
<add>var strings = [];
<add>global.process.stdout.write = function(string) {
<add> strings.push(string);
<add>};
<add>
<add>console.log('foo');
<add>conso... | 1 |
Text | Text | add french translation | dad28cd65720293e613cef6ae335c984b4ab53d5 | <ide><path>threejs/lessons/fr/threejs-cameras.md
<add>Title: Caméras dans Three.js
<add>Description: Comment utiliser les Cameras dans Three.js
<add>TOC: Cameras
<add>
<add>Cet article fait partie d'une série consacrée à Three.js.
<add>Le premier article s'intitule [Principes de base](threejs-fundamentals.html).
<add>S... | 1 |
PHP | PHP | bootstrap the application when testing | f66122149a5d9b3a685f48f33302279b222ab309 | <ide><path>tests/TestCase.php
<ide> class TestCase extends Illuminate\Foundation\Testing\TestCase {
<ide> */
<ide> public function createApplication()
<ide> {
<del> return require __DIR__.'/../bootstrap/app.php';
<add> $app = require __DIR__.'/../bootstrap/app.php';
<add>
<add> $app->make('Illuminate\Contracts\H... | 1 |
Python | Python | fix vcloud driver so it works with 2.5 | eef29109f995de68ee3494e9e68949e7b6616d01 | <ide><path>libcloud/compute/drivers/vcloud.py
<ide> from libcloud.utils.py3 import httplib
<ide> from libcloud.utils.py3 import urlparse
<ide> from libcloud.utils.py3 import b
<add>from libcloud.utils.py3 import next
<ide>
<ide> urlparse = urlparse.urlparse
<ide> | 1 |
PHP | PHP | list command | d13803151750232417c5ad2e749dd440e6f3cfce | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> class RouteListCommand extends Command
<ide> protected $description = 'List all registered routes';
<ide>
<ide> /**
<del> * An array of all the registered routes.
<add> * The router instance.
<ide> *
<del> * @var \Illumina... | 1 |
Javascript | Javascript | remove excessive instrumentation | 50cfa59755418192c7f17a2564c7bea72c66811a | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> function bind(property, options, preserveContext, shouldDisplay, valueNormalizer
<ide> fn = options.fn,
<ide> inverse = options.inverse,
<ide> view = data.view,
<del> instrumentName = view.instrumentName,
<ide> currentContext... | 4 |
Ruby | Ruby | remove with_git_env method | 19e61355b38b8ba96db0ca71849bb536af0490bf | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide> %w[AUTHOR COMMITTER].each do |role|
<ide> ENV["GIT_#{role}_NAME"] = "brew tests"
<ide> ENV["GIT_#{role}_EMAIL"] = "brew-tests@localhost"
<add> ENV["GIT_#{role}_DATE"] = "Sun Jan 22 19:59:13 2017 +0000"
<ide> end
<ide>... | 6 |
Python | Python | add new recfunctions to __all__ | e28cd9e215d3cd8976c37f97c12d2aea971adb27 | <ide><path>numpy/lib/recfunctions.py
<ide>
<ide>
<ide> __all__ = [
<del> 'append_fields', 'drop_fields', 'find_duplicates',
<del> 'get_fieldstructure', 'join_by', 'merge_arrays',
<del> 'rec_append_fields', 'rec_drop_fields', 'rec_join',
<del> 'recursive_fill_fields', 'rename_fields', 'stack_arrays',
<add>... | 1 |
PHP | PHP | add basic tests for cleancopy() | 8887c4aa280a24cbd8d6afd427f41493b14ceeac | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testAutoFieldsCount() {
<ide> $this->assertEquals(3, $result);
<ide> }
<ide>
<add>/**
<add> * test that cleanCopy makes a cleaned up clone.
<add> *
<add> * @return void
<add> */
<add> public function testCleanCopy() {
<add> $table = TableRegistry::g... | 1 |
Go | Go | fix the compare of restart policy | e721ed9b5319e8e7c1daf87c34690f8a4e62c9e3 | <ide><path>daemon/monitor.go
<ide> func (m *containerMonitor) shouldRestart(exitCode int) bool {
<ide> return true
<ide> case "on-failure":
<ide> // the default value of 0 for MaximumRetryCount means that we will not enforce a maximum count
<del> if max := m.restartPolicy.MaximumRetryCount; max != 0 && m.failureC... | 1 |
Python | Python | fix mypy issues in ``tests/executors`` | e3c6fc51257d6364e4ebf3ade5d0ff4d71eaf3fb | <ide><path>airflow/executors/base_executor.py
<ide> class BaseExecutor(LoggingMixin):
<ide> ``0`` for infinity
<ide> """
<ide>
<del> job_id: Optional[int] = None
<add> job_id: Optional[str] = None
<ide>
<ide> def __init__(self, parallelism: int = PARALLELISM):
<ide> super().__init__() | 1 |
Javascript | Javascript | remove unreachable code | 524dd469cefb63c9963a9c7a99197df857888f1a | <ide><path>lib/buffer.js
<ide> Buffer.prototype.write = function write(string, offset, length, encoding) {
<ide>
<ide> // Buffer#write(string, offset[, length][, encoding])
<ide> } else {
<del> if (offset === undefined) {
<del> offset = 0;
<del> } else {
<del> validateInt32(offset, 'offset', 0, thi... | 1 |
Javascript | Javascript | improve isnumeric logic and test coverage | 7103d8ef47e04a4cf373abee0e8bfa9062fd616f | <ide><path>src/core.js
<ide> jQuery.extend( {
<ide> // that can be coerced to finite numbers (gh-2662)
<ide> var type = jQuery.type( obj );
<ide> return ( type === "number" || type === "string" ) &&
<del> ( obj - parseFloat( obj ) + 1 ) >= 0;
<add>
<add> // parseFloat NaNs numeric-cast false positives ("")
<a... | 2 |
Java | Java | improve documentation for tx support in the tcf | b16e6cc44e2fbc92ad7c648b052e4f11d2b3f674 | <ide><path>spring-test/src/main/java/org/springframework/test/context/transaction/TestTransaction.java
<ide> * {@code TestTransaction} provides a collection of static utility methods for
<ide> * programmatic interaction with <em>test-managed transactions</em>.
<ide> *
<del> * <p>Test-managed transactions are transac... | 2 |
Java | Java | add tests for spr-12738 | b94c6fdf7ae1305516166db710070acf4f967f21 | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
<ide> import java.lang.annotation.Retention;
<ide> import java.lang.annotation.RetentionPolicy;
<ide> import java.lang.annotation.Target;
<add>import java.lang.reflect.Method;
<ide> import java.util.Arrays;
<ide>
<... | 1 |
Javascript | Javascript | upgrade tapable for multicompiler | 0ccc0374d7d0e3b1ddf368b874ed561aa3c17147 | <ide><path>lib/MultiCompiler.js
<ide> */
<ide> "use strict";
<ide>
<del>const Tapable = require("tapable-old");
<add>const Tapable = require("tapable").Tapable;
<add>const SyncHook = require("tapable").SyncHook;
<ide> const asyncLib = require("async");
<ide> const MultiWatching = require("./MultiWatching");
<ide> cons... | 2 |
Java | Java | create new feature flag to eager initialize fabric | aba321b4fb4e539cbf6a6a9a53de9b70e1cc9497 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
<ide> public class ReactFeatureFlags {
<ide> * remove this when bug is fixed
<ide> */
<ide> public static boolean enableTransitionLayoutOnlyViewCleanup = false;
<add>
<add> /** Feature flag to configure eager initialization ... | 1 |
Python | Python | apply nonzero fixer | 54ca3f28ada715a0c84686f74f3b5a7ba4aa2c95 | <ide><path>numpy/oldnumeric/ma.py
<ide> def __nonzero__(self):
<ide> return bool(m is not nomask and m.any()
<ide> or d is not nomask and d.any())
<ide>
<add> def __bool__(self):
<add> """returns true if any element is non-zero or masked
<add>
<add> """
<add> # XXX: ... | 2 |
Ruby | Ruby | improve performance for contextual validations | 0fb166e81cfd331222c7dbb0c7cd9213878e49ee | <ide><path>activemodel/lib/active_model/validations.rb
<ide> def validate(*args, &block)
<ide> end
<ide>
<ide> if options.key?(:on)
<del> options = options.dup
<del> options[:on] = Array(options[:on])
<del> options[:if] = [
<del> ->(o) { !(options[:on] & Array(o.va... | 1 |
Text | Text | add changelog for 2.12.0-beta.3 [ci skip] | b93b1ab39df3c3344649eb2d9130907cfbe17d33 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.12.0-beta.3 (March 8, 2017)
<add>
<add>- [#14987](https://github.com/emberjs/ember.js/pull/14987) [BUGFIX] Fix a memory leak when components are destroyed.
<add>- [#14986](https://github.com/emberjs/ember.js/pull/14986) [BUGFIX] Fix a memory leak in RSVP... | 1 |
Python | Python | modify code to suit multiscale anchor generator | 90106a40ae1765be80ba14ba49db7772b3b17ecd | <ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
<ide> def __init__(self,
<ide> # in the future.
<ide> super(FasterRCNNMetaArch, self).__init__(num_classes=num_classes)
<ide>
<del> if not isinstance(first_stage_anchor_generator,
<del> grid_anchor_generato... | 1 |
Text | Text | fix typo in readme link | 2715898cb9a2d8d740e7a7d5cde9663f78493f02 | <ide><path>README.md
<ide> The source for the React Native documentation and website is hosted on a separat
<ide>
<ide> [docs]: https://facebook.github.io/react-native/docs/getting-started.html
<ide> [r-docs]: https://reactjs.org/docs/getting-started.html
<del>[repo-website]: (https://github.com/facebook/react-native-... | 1 |
PHP | PHP | use isset instead of array_key_exists | 3201b00272251c4878b705cddb7d49f736500880 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function attributesToArray()
<ide> // formatting while accessing attributes vs. arraying / JSONing a model.
<ide> foreach ($this->getDates() as $key)
<ide> {
<del> if ( ! array_key_exists($key, $attributes)) continue;
<add> if ( ! isset($attri... | 1 |
Text | Text | use html for links including closing bracket | 179a6512408b6df0722c7d80efc44a9cd06a999e | <ide><path>docs/IntegrationWithExistingApps.md
<ide> $ sudo gem install cocoapods
<ide>
<ide> <block class="objc" />
<ide>
<del>Assume the [app for integration](https://github.com/JoelMarcey/iOS-2048) is a [2048](https://en.wikipedia.org/wiki/2048_(video_game)) game. Here is what the main menu of the native applicati... | 1 |
Java | Java | fix failing test | b18053f93a2f3b01c53843284627a54e751577cf | <ide><path>spring-web/src/test/java/org/springframework/web/client/AsyncRestTemplateIntegrationTests.java
<ide> import java.nio.charset.Charset;
<ide> import java.util.EnumSet;
<ide> import java.util.Set;
<add>import java.util.concurrent.CountDownLatch;
<ide> import java.util.concurrent.ExecutionException;
<ide> import... | 1 |
Ruby | Ruby | explain the possible precautions | cc5a4bb4df2390cb57d5a295a4f4a51572012268 | <ide><path>actionpack/lib/action_dispatch/middleware/remote_ip.rb
<ide> module ActionDispatch
<ide> # IF YOU DON'T USE A PROXY, THIS MAKES YOU VULNERABLE TO IP SPOOFING.
<ide> # This middleware assumes that there is at least one proxy sitting around
<ide> # and setting headers with the client's remote IP address.... | 1 |
PHP | PHP | fix part of plugin assets tests | 95db91c57ad6213baa1fad9dcafd886674591a85 | <ide><path>tests/TestCase/Command/PluginAssetsCommandsTest.php
<ide> * @since 3.0.0
<ide> * @license https://opensource.org/licenses/mit-license.php MIT License
<ide> */
<del>namespace Cake\Test\TestCase\Shell\Task;
<add>namespace Cake\Test\TestCase\Command;
<ide>
<add>use Cake\Console\Command;
<ide> ... | 1 |
Mixed | Python | update calback page | 73a620b6e875a2f153cb5acea194d89e845dc726 | <ide><path>docs/templates/callbacks.md
<ide> class LossHistory(keras.callbacks.Callback):
<ide> self.losses.append(logs.get('loss'))
<ide>
<ide> model = Sequential()
<del>model.add(Dense(10, input_dim=784, init='uniform'))
<add>model.add(Dense(10, input_dim=784, kernel_initializer='uniform'))
<ide> model.add(A... | 2 |
Text | Text | add reformer mlm notebook | 306f1a269504b781f886d75105acabf8ae95bd11 | <ide><path>notebooks/README.md
<ide> Pull Request so it can be included under the Community notebooks.
<ide> |[Fine-tune BERT for Multi-label Classification](https://github.com/abhimishra91/transformers-tutorials/blob/master/transformers_multi_label_classification.ipynb)|How to fine-tune BERT for multi-label classifica... | 1 |
PHP | PHP | correct the warning raised | f65df2f0fdf841e4063e73e3f7bcbf89b51005fd | <ide><path>src/Utility/Inflector.php
<ide> public static function slug($string, $replacement = '-')
<ide> {
<ide> deprecationWarning(
<ide> 'Inflector::slug() is deprecated. ' .
<del> 'Use Text::getSalt()/setSalt() instead.'
<add> 'Use Text::slug() instead.'
<ide> )... | 1 |
Ruby | Ruby | fix typo extention -> extension [ci skip] | 7bfc79ec9bb054b97b2f961a75f8c789999b68dc | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> module AssetTagHelper
<ide> # When the last parameter is a hash you can add HTML attributes using that
<ide> # parameter. The following options are supported:
<ide> #
<del> # * <tt>:extname</tt> - Append a extention to the g... | 1 |
Mixed | Ruby | allow rescue from parameter parse errors | 6b3faf8e502dbd238fe4b4c409e96308638297a1 | <ide><path>actionpack/CHANGELOG.md
<add>* Allow rescue from parameter parse errors:
<add>
<add> ```
<add> rescue_from ActionDispatch::Http::Parameters::ParseError do
<add> head :unauthorized
<add> end
<add> ```
<add>
<add> *Gannon McGibbon*, *Josh Cheek*
<add>
<ide> * Reset Capybara sessions if ... | 8 |
PHP | PHP | add directory visibility | 870bc7d6c106a3391da90372d488b89da3bc8236 | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> protected function formatS3Config(array $config)
<ide> */
<ide> protected function createFlysystem(FlysystemAdapter $adapter, array $config)
<ide> {
<del> $config = Arr::only($config, ['visibility', 'disable_asserts', 'url', 'temporary... | 1 |
PHP | PHP | fix throttlerequestsexception | 985b2cf1845b544cdfd744ee68be2dfa95652c51 | <ide><path>src/Illuminate/Http/Exceptions/ThrottleRequestsException.php
<ide> class ThrottleRequestsException extends TooManyRequestsHttpException
<ide> /**
<ide> * Create a new throttle requests exception instance.
<ide> *
<del> * @param string|null $message
<add> * @param string $message
<id... | 1 |
Javascript | Javascript | add {{input action="foo" on="keypress"}} | c48b843265c849e0add3085ea57b97741c60ad64 | <ide><path>packages/ember-handlebars/lib/controls.js
<ide> Ember.Handlebars.registerHelper('input', function(options) {
<ide>
<ide> var hash = options.hash,
<ide> types = options.hashTypes,
<del> inputType = hash.type;
<add> inputType = hash.type,
<add> onEvent = hash.on;
<ide>
<ide> delete h... | 3 |
Java | Java | fix flowable.concatmap backpressure w/ scalars | 0668d042b47d3585f856af831bd3b1e1742c080f | <ide><path>src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMap.java
<ide> package io.reactivex.rxjava3.internal.operators.flowable;
<ide>
<ide> import java.util.Objects;
<del>import java.util.concurrent.atomic.AtomicInteger;
<add>import java.util.concurrent.atomic.*;
<ide>
<ide> import or... | 4 |
Python | Python | move matrix class into its own module | fe002b2916a5928463f7c46c5c4875114228bf7f | <ide><path>numpy/__init__.py
<ide> def pkgload(*packages, **options):
<ide> import random
<ide> import ctypeslib
<ide> import ma
<add> import matrx as _mat
<add> from matrx import *
<ide>
<ide> # Make these accessible from numpy name-space
<ide> # but not imported in from numpy import *
<ide... | 15 |
Python | Python | add chroot detection | 5359c8d0976807a2846949f29e996a2419490b40 | <ide><path>setup.py
<ide>
<ide> from setuptools import setup
<ide>
<add>is_chroot = os.stat('/').st_ino != 2
<add>
<ide>
<ide> def get_data_files():
<ide> data_files = [
<ide> def get_data_files():
<ide> ('share/man/man1', ['man/glances.1'])
<ide> ]
<ide>
<del> if os.name == 'posix' and os.getuid... | 1 |
Javascript | Javascript | fix bug where $eval on undefined throws error | 9b392eca3597fdc9dab81d88df75bef75f6e678f | <ide><path>src/Scope.js
<ide> function createScope(parent, services, existing) {
<ide> $set: bind(instance, setter, instance),
<ide>
<ide> $eval: function $eval(exp) {
<del> if (exp === undefined) {
<add> var type = typeof exp;
<add> if (type == 'undefined') {
<ide> for ( var i = 0, iSiz... | 2 |
Javascript | Javascript | handle incorrect sizes | 7b6f56ef610bb886c7fb670fd4df1cd5b041e94f | <ide><path>lib/SizeFormatHelpers.js
<ide> const SizeFormatHelpers = exports;
<ide>
<ide> SizeFormatHelpers.formatSize = size => {
<add> if (typeof size !== "number" || Number.isNaN(size) === true) {
<add> return "unknown size";
<add> }
<add>
<ide> if (size <= 0) {
<ide> return "0 bytes";
<ide> }
<ide><path>test/S... | 2 |
Python | Python | add defaults for _gather_[list/dict]_attr | a9c6f264127bfac5bb9d499b2e7f1308bf0cee3b | <ide><path>keras/models.py
<ide> def flattened_layers(self):
<ide> def _gather_list_attr(self, attr):
<ide> all_attrs = []
<ide> for layer in self.flattened_layers:
<del> all_attrs += getattr(layer, attr)
<add> all_attrs += getattr(layer, attr, [])
<ide> return all_attr... | 1 |
Ruby | Ruby | remove extra space before 'order by' | 8572455d4cf7a61462bde7cef2d3724685c1c44c | <ide><path>lib/arel/visitors/to_sql.rb
<ide> def visit_Arel_Nodes_SelectStatement o, collector
<ide> }
<ide>
<ide> unless o.orders.empty?
<del> collector << SPACE
<ide> collector << ORDER_BY
<ide> len = o.orders.length - 1
<ide> o.orders.each_with_index { |x, i|
<... | 2 |
Javascript | Javascript | add watch for simple copy | 84d6c7f553ca60e0ca8591364974f4e92d838a24 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> clean: [
<ide> 'out/**/*',
<ide> ],
<add> watch: {
<add> main: {
<add> files: [
<add> 'threejs/**',
<add> '3rdparty/**',
<add> ],
<add> tasks: ['copy'],
<add> options: {
<add> ... | 1 |
PHP | PHP | apply fixes from styleci | fe928fbc651c2a436346e5b540e6f8fbaf052fa8 | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> namespace Illuminate\Console\Scheduling;
<ide>
<ide> use Closure;
<del>use DateTime;
<ide> use Carbon\Carbon;
<ide> use Cron\CronExpression;
<ide> use GuzzleHttp\Client as HttpClient; | 1 |
PHP | PHP | fix method order | 0730ec587dc7a4071966a1c65f3c978ccc4ad467 | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function isDirectory($directory)
<ide> }
<ide>
<ide> /**
<del> * Determine if the given path is writable.
<add> * Determine if the given path is readable.
<ide> *
<ide> * @param string $path
<ide> * @return bool
<ide> ... | 1 |
Javascript | Javascript | add ability to disable user code on page load | 81028fceacccd186b39d216594052a5e572d15c6 | <ide><path>client/commonFramework/code-uri.js
<ide> window.common = (function(global) {
<ide> return decoded
<ide> .split('?')
<ide> .splice(1)
<add> .pop()
<add> .split('&')
<ide> .reduce(function(found, param) {
<ide> var key = param.split('=')[0];
<ide> ... | 2 |
Ruby | Ruby | clarify failed assertion | 703d31c20a7b531053d5c009972a89e857b07376 | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_relation_responds_to_delegated_methods
<ide> relation = Topic.all
<ide>
<ide> ["map", "uniq", "sort", "insert", "delete", "update"].each do |method|
<del> assert relation.respond_to?(method)
<add> assert relation.respond_to?(method),... | 1 |
Text | Text | add delete function | ad4d7c72b264acb1250779be74c036c41640e206 | <ide><path>guide/english/computer-science/data-structures/linked-lists/index.md
<ide> class List
<ide> public:
<ide> void display();
<ide> void insertBefore(int);
<add> void deleteNode(int);
<ide> List();
<ide> };
<ide>
<ide> void List :: insertBefore(int data)
<ide> count++;
<ide> }
<ide>
<a... | 1 |
PHP | PHP | trim comment bloat from url class | 2f999397e3355e33337dd8dec5a3c170c42a0e65 | <ide><path>system/url.php
<ide> class URL {
<ide> */
<ide> public static function to($url = '', $https = false, $asset = false)
<ide> {
<del> // ----------------------------------------------------
<del> // Return the URL unchanged if it is already formed.
<del> // -----------------------------------------------... | 1 |
Ruby | Ruby | initialize our instance variables | e3671422556ac61f39539264713ba9c04814b80f | <ide><path>actionpack/lib/action_dispatch/middleware/remote_ip.rb
<ide> def call(env)
<ide>
<ide> class GetIp
<ide> def initialize(env, middleware)
<del> @env, @middleware = env, middleware
<add> @env = env
<add> @middleware = middleware
<add> @calculate_ip = false
<ide... | 1 |
Python | Python | set version to v3.0.0a18 | 475323cd360c7912d67a6aecf186d26726369a3d | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0a17"
<add>__version__ = "3.0.0a18"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/... | 1 |
Text | Text | make contributing.md more contributor-friendly | baeb98e847a8339ed2e234aa8504d397f719e8a8 | <ide><path>contributing.md
<ide> # Contributing to Next.js
<ide>
<del>Read about our [Commitment to Open Source](https://vercel.com/oss).
<add>Read about our [Commitment to Open Source](https://vercel.com/oss). To
<add>contribute to [our examples](examples), please see **[Adding
<add>examples](#adding-examples)** belo... | 1 |
Java | Java | remove fabricbinder interface | 4802cffa14c5540d0a4a2d842108f6a14ac191f1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> */
<del>
<del>package ... | 5 |
Python | Python | correct the fill_diagonal examples | 8910afb52490f113b855299d1126d5935f8b0300 | <ide><path>numpy/lib/index_tricks.py
<ide> def fill_diagonal(a, val, wrap=False):
<ide> # tall matrices no wrap
<ide> >>> a = np.zeros((5, 3),int)
<ide> >>> fill_diagonal(a, 4)
<add> >>> a
<ide> array([[4, 0, 0],
<ide> [0, 4, 0],
<ide> [0, 0, 4],
<ide> def fill_diagonal(a, val, ... | 1 |
Text | Text | change html `img` tag to lowercase [ci skip] | 95242fa69b0f8608b3b9329e727ca2911c1d7e7d | <ide><path>guides/source/security.md
<ide> As a second step, _it is good practice to escape all output of the application_,
<ide> Network traffic is mostly based on the limited Western alphabet, so new character encodings, such as Unicode, emerged, to transmit characters in other languages. But, this is also a threat t... | 1 |
Java | Java | remove unnecessary import | cc3616da66ade8d4063a1a2c9507a12e812188e5 | <ide><path>spring-core-test/src/test/java/org/springframework/core/test/io/support/MockSpringFactoriesLoaderTests.java
<ide> import org.junit.jupiter.api.Test;
<ide>
<ide> import org.springframework.core.annotation.Order;
<del>import org.springframework.core.test.io.support.MockSpringFactoriesLoader;
<ide>
<ide> impo... | 1 |
Go | Go | fix data race in logfile | 90c54320c88ca342a545363409a32b531f8e3e4f | <ide><path>api/types/backend/backend.go
<ide> type PartialLogMetaData struct {
<ide> // LogMessage is datastructure that represents piece of output produced by some
<ide> // container. The Line member is a slice of an array whose contents can be
<ide> // changed after a log driver's Log() method returns.
<del>// chang... | 3 |
Python | Python | update unique docstring example | 17612fc5f7194be946433d0bab6d1a7792e1226e | <ide><path>numpy/lib/arraysetops.py
<ide> def unique(ar, return_index=False, return_inverse=False,
<ide> >>> u
<ide> array([1, 2, 3, 4, 6])
<ide> >>> indices
<del> array([0, 1, 4, ..., 1, 2, 1])
<add> array([0, 1, 4, 3, 1, 2, 1])
<ide> >>> u[indices]
<del> array([1, 2, 6, ..., 2, 3, 2])
<add> ... | 1 |
PHP | PHP | fix bug in pagination page resolution | 83ad23cbd3b7d1b3930cd68d57776aae331ce7f5 | <ide><path>src/Illuminate/Pagination/PaginationServiceProvider.php
<ide> public function register()
<ide> });
<ide>
<ide> Paginator::currentPageResolver(function ($pageName = 'page') {
<del> return $this->app['request']->input($pageName);
<add> $page = $this->app['request']->input... | 1 |
Text | Text | add an explanatory gif | 49b10023acc89d9beca877ef69a2aee9c1cd30b1 | <ide><path>README.md
<ide> Read **[The Evolution of Flux Frameworks](https://medium.com/@dan_abramov/the-ev
<ide>
<ide> ## Demo
<ide>
<add>
<add>
<ide> ```
<ide> git clone https://github.com/gaearo... | 1 |
Javascript | Javascript | update nested vlist warning to error | 646605b90e666c4b0d1c1200a137eacf62b46f87 | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> class VirtualizedList extends React.PureComponent<Props, State> {
<ide> this.context == null
<ide> ) {
<ide> // TODO (T46547044): use React.warn once 16.9 is sync'd: https://github.com/facebook/react/pull/15170
<del> ... | 1 |
Java | Java | reimplement the 'single' operator | 7ce4c84f97c9cff52361fe5362cb5473a5226a1b | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationReplay;
<ide> import rx.operators.OperationSample;
<ide> import rx.operators.OperationSequenceEqual;
<del>import rx.operators.OperationSingle;
<add>import rx.operators.OperatorSingle;
<ide> import rx.operators.OperationSkip;
<ide... | 4 |
PHP | PHP | add space after component closing tag | 48d1c194375edd024edacd918d17ef0cce587842 | <ide><path>src/Illuminate/View/Compilers/ComponentTagCompiler.php
<ide> protected function compileSelfClosingTags(string $value)
<ide>
<ide> $attributes = $this->getAttributesFromAttributeString($matches['attributes']);
<ide>
<del> return $this->componentString($matches[1], $attributes)."\n@end... | 2 |
Python | Python | remove print statement in test | 29e60ab372e1a123be2f2884a6818f9a2508bf68 | <ide><path>tests/keras/test_initializations.py
<ide> def _runner(init, shape, target_mean=None, target_std=None,
<ide> target_max=None, target_min=None):
<ide> variable = init(shape)
<ide> output = K.get_value(variable)
<del> print target_std
<del> print output.std()
<del> print output.mean... | 1 |
PHP | PHP | update copyright to match new style | 35ca61ad80b27702b74a0f85bdd30b245de1d013 | <ide><path>lib/Cake/Utility/ViewVarsTrait.php
<ide> <?php
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<del> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<i... | 1 |
Text | Text | add model card for electricidad-base-generator | 0f94151dc7809128b40ab68ba164742fe1c5b4e6 | <ide><path>model_cards/mrm8488/electricidad-base-generator/README.md
<add>---
<add>language: es
<add>thumbnail: https://i.imgur.com/uxAvBfh.png
<add>
<add>
<add>---
<add>
<add>## ELECTRICIDAD: The Spanish Electra [Imgur](https://imgur.com/uxAvBfh)
<add>
<add>**Electricidad-base-generator** (uncased) is a ```base``` Ele... | 1 |
Python | Python | add tests for filled_like function | 474ec4858cd3b6a09cd8bec01c67759d95896cca | <ide><path>numpy/core/numeric.py
<ide> def ones_like(a, dtype=None, order='K', subok=True):
<ide> multiarray.copyto(res, 1, casting='unsafe')
<ide> return res
<ide>
<del>def _check_dtype_nan(dtype):
<del> if not issubdtype(dtype, 'float'):
<del> raise ValueError('Invalid dtype because only floating p... | 2 |
Text | Text | add administration guide for managers and raft | 24f87f26e73a49383e0606813a86ed96da7f5a18 | <ide><path>docs/swarm/admin_guide.md
<add><!--[metadata]>
<add>+++
<add>aliases = [
<add>"/engine/swarm/manager-administration-guide/"
<add>]
<add>title = "Swarm Manager Administration Guide"
<add>description = "Manager administration guide"
<add>keywords = ["docker, container, cluster, swarm, manager, raft"]
<add>advi... | 2 |
Text | Text | use serial comma in console docs | 7ad5b420aebc1bcd07be187481cf48a4180a60c0 | <ide><path>doc/api/console.md
<ide> the JavaScript console mechanism provided by web browsers.
<ide>
<ide> The module exports two specific components:
<ide>
<del>* A `Console` class with methods such as `console.log()`, `console.error()` and
<add>* A `Console` class with methods such as `console.log()`, `console.erro... | 1 |
Javascript | Javascript | move passive logic out of layout phase | ede9170648d07a63cd282e6acb3ea1fe9e22ded9 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> import {
<ide> NoEffect as NoHookEffect,
<ide> HasEffect as HookHasEffect,
<ide> Layout as HookLayout,
<del> Passive as HookPassive,
<ide> } from './ReactHookEffectTags';
<ide> import {didWarnAboutReassigningProps} from './ReactFiberBegin... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.