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 | add 2.4.4 to changelog.md | d601333063ee51992dcce4ca413dbde065f5e44d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add><<<<<<< HEAD
<ide> ### 2.5.0-beta.3 (March 14, 2016)
<ide>
<ide> - [#13083](https://github.com/emberjs/ember.js/issues/13083) [BUGFIX] Fix issue with feature flagging infrastructure in beta 2
<ide> - [#13024](https://github.com/emberjs/ember.js/pull/13024) [B... | 1 |
Javascript | Javascript | fix wrong param order in doc | 05596527edb055b094dd6b42ca118b411aa27eb2 | <ide><path>src/ng/filter/filter.js
<ide> * property of the object. That's equivalent to the simple substring match with a `string`
<ide> * as described above.
<ide> *
<del> * - `function`: A predicate function can be used to write arbitrary filters. The function is
<add> * - `function(value)`: A predicat... | 1 |
Python | Python | remove unnecessary branching | 599e2b183db846a632b1efd148e6bc97d926ee5c | <ide><path>rest_framework/urlpatterns.py
<ide> def format_suffix_patterns(urlpatterns, suffix_required=False, allowed=None):
<ide> else:
<ide> suffix_pattern = r'\.(?P<%s>[a-z0-9]+)/?$' % suffix_kwarg
<ide>
<del> if path and register_converter:
<del> converter_name, suffix_converter = _get_format... | 1 |
Go | Go | use ioctlgetint/ioctlsetint from x/sys/unix | bedf09363cb7f2f59bf2b72fea0704351b9f5c8d | <ide><path>pkg/loopback/ioctl.go
<ide> import (
<ide> )
<ide>
<ide> func ioctlLoopCtlGetFree(fd uintptr) (int, error) {
<del> index, _, err := unix.Syscall(unix.SYS_IOCTL, fd, LoopCtlGetFree, 0)
<del> if err != 0 {
<add> index, err := unix.IoctlGetInt(int(fd), LoopCtlGetFree)
<add> if err != nil {
<ide> return 0, er... | 1 |
Python | Python | add some tests for ndarray.resize | 82e08aa07fa4d6a94808f8cf7cd191d1bf6bae82 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_none_shape(self):
<ide> x = np.eye(3)
<ide> x.resize(None)
<ide> assert_array_equal(x, np.eye(3))
<add> x.resize()
<add> assert_array_equal(x, np.eye(3))
<add>
<add> def test_invalid_arguements(self):
<add> sel... | 1 |
Javascript | Javascript | fix linting errors | ca9054a4f811f1371307c108a89839f6df2f0805 | <ide><path>src/tooltip.js
<add>/* global MutationObserver */
<add>
<ide> 'use strict'
<ide>
<ide> const EventKit = require('event-kit')
<ide> Tooltip.prototype.init = function (element, options) {
<ide> this.element = element
<ide> this.options = this.getOptions(options)
<ide> this.disposables = new EventKit.Com... | 1 |
Text | Text | replace stub for mongdb lesson (use model.findone) | a16cff7671490191596e296cc3d3f6d3585db85e | <ide><path>guide/english/certifications/apis-and-microservices/mongodb-and-mongoose/use-model.findone-to-return-a-single-matching-document-from-your-database/index.md
<ide> ---
<ide> title: Use model.findOne() to Return a Single Matching Document from Your Database
<ide> ---
<del>## Use model.findOne() to Return a Sing... | 1 |
Text | Text | add jacksontian to collaborators | 92a02d51dcb63ec50532d36dd91336f1c9a9cd8d | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [iarna](https://github.com/iarna) - **Rebecca Turner** <me@re-becca.org>
<ide> * [isaacs](https://github.com/isaacs) - **Isaac Z. Schlueter** <i@izs.me>
<ide> * [iWuzHere](https://github.com/iWuzHere) - **Imran I... | 1 |
PHP | PHP | improve error message | 59fcd74c929da4bfa489d69f23652292c28ece8b | <ide><path>src/TestSuite/MiddlewareDispatcher.php
<ide> public function __construct(
<ide> $app = $reflect->newInstanceArgs($this->_constructorArgs);
<ide> $this->app = $app;
<ide> } catch (ReflectionException $e) {
<del> throw new LogicException(sprintf('Cannot load "%s" for ... | 1 |
Javascript | Javascript | fix bad boolean in professor-x | a173ddf375b5836d2e1c1cd0341d3ca7024bc4ce | <ide><path>common/app/utils/professor-x.js
<ide> export default function contain(options = {}, Component) {
<ide> );
<ide>
<ide> const fetch$ = action.apply(null, actionArgs);
<del> if (__DEV__ && Observable.isObservable(fetch$)) {
<add> if (__DEV__ && !Observable.isObservable(fetch$)) {
<ide> ... | 1 |
Text | Text | fix indentation + remove blank line | 9050f6ee0133e9088f914a77bb65108a89f49dfd | <ide><path>activesupport/CHANGELOG.md
<ide> * Add default option to class_attribute. Before:
<ide>
<del> class_attribute :settings
<del> self.settings = {}
<add> class_attribute :settings
<add> self.settings = {}
<ide>
<ide> Now:
<ide>
<del> class_attribute :settings, default: {}
<... | 1 |
Javascript | Javascript | remove unnecessary variable | 9f793a715fd9033ae475d5d524733668b7492c91 | <ide><path>src/scales/scale.time.js
<ide> module.exports = function(Chart) {
<ide> me.displayFormat = timeOpts.displayFormats[unit];
<ide>
<ide> var stepSize = timeOpts.stepSize || determineStepSize(minTimestamp || dataMin, maxTimestamp || dataMax, unit, maxTicks);
<del> var ticks = me.ticks = Chart.Ticks.gene... | 1 |
Text | Text | fix outdated code sample in n-api.md | 8b902500cddce129dda59f7d78b6bc8b62f13cb6 | <ide><path>doc/api/n-api.md
<ide> napi_status status = napi_status_generic_failure;
<ide>
<ide> // const obj = {};
<ide> napi_value obj;
<del>status = napi_create_obj(env, &obj);
<add>status = napi_create_object(env, &obj);
<ide> if (status != napi_ok) return status;
<ide>
<ide> // Create napi_values for 123 and 456
... | 1 |
Mixed | Java | remove unused rctdebugcomponentownership | 8548ca09f14c237913e00a328409231a727b8572 | <ide><path>Libraries/Core/InitializeCore.js
<ide> if (__DEV__) {
<ide> require('setupDevtools');
<ide> }
<ide>
<del> require('RCTDebugComponentOwnership');
<del>
<ide> // Set up inspector
<ide> const JSInspector = require('JSInspector');
<ide> JSInspector.registerAgent(require('NetworkAgent'))... | 5 |
PHP | PHP | apply fixes from styleci | 715c7e101f11d979b52b2ef70858b24b57fff423 | <ide><path>app/Http/Middleware/VerifyCsrfToken.php
<ide> class VerifyCsrfToken extends Middleware
<ide> protected $except = [
<ide> //
<ide> ];
<del>
<add>
<ide> /**
<ide> * Indicates whether the XSRF-TOKEN cookie should be set on the response.
<ide> * | 1 |
Javascript | Javascript | simplify pack layout | c5c6614d9eea6d7255e4bc20c26fcc47e5a64b96 | <ide><path>d3.layout.js
<ide> function d3_layout_hierarchySort(a, b) {
<ide> }
<ide> d3.layout.pack = function() {
<ide> var hierarchy = d3.layout.hierarchy(),
<del> separation = 1, // spacing
<ide> size = [1, 1];
<del> radius = d3_layout_packRadius;
<ide>
<ide> function pack(d, i) {
<ide> var ... | 4 |
PHP | PHP | use the nullsafe operator in sessionguard | 6094c427834827b9932f848b6a37d788c181e814 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> protected function rehashUserPassword($password, $attribute)
<ide> */
<ide> public function attempting($callback)
<ide> {
<del> if (isset($this->events)) {
<del> $this->events->listen(Events\Attempting::class, $callback);
<del> ... | 1 |
Javascript | Javascript | destroy app created in handlebars test | c2e621384c1b72ee4dc22b8f09c4ab2bcf2e222b | <ide><path>packages/sproutcore-handlebars/tests/views/collection_view_test.js
<ide> test("empty views should be removed when content is added to the collection (reg
<ide>
<ide> equals(view.$('tr').length, 1, 'has one row');
<ide>
<del> window.App = undefined;
<add> window.App.destroy();
<ide> });
<ide>
<ide> tes... | 1 |
Python | Python | fix inadvertent regressions introduced in | 2b6a3517c4bf724f9e3420d3abbffe1545f2a41a | <ide><path>libcloud/common/openstack_identity.py
<ide> def __init__(
<ide> timeout=None,
<ide> proxy_url=None,
<ide> parent_conn=None,
<add> auth_cache=None,
<ide> ):
<ide> """
<ide> Tenant, domain and scope options are ignored as they are contained
<ide> def __init__(... | 1 |
Python | Python | break cyclic refs in recursive closures | 50fde71f1ac0528f40ee216136b33fde41205ef2 | <ide><path>numpy/core/arrayprint.py
<ide> def recurser(index, hanging_indent, curr_width):
<ide> s += hanging_indent + summary_insert + line_sep
<ide>
<ide> for i in range(trailing_items, 1, -1):
<del> nested = recurser(index + (-i,), next_hanging_indent, next_width)
<add... | 4 |
Ruby | Ruby | expose used git version and path | d7b6e9bba92ccc5884dcb9dd0859d16e2bf3fe9c | <ide><path>Library/Homebrew/system_config.rb
<ide> def describe_java
<ide> javas.uniq.join(", ")
<ide> end
<ide>
<add> def describe_git
<add> return "N/A" unless Utils.git_available?
<add> "#{Utils.git_version} => #{Utils.git_path}"
<add> end
<add>
<ide> def dump_verbose_config(f = $stdou... | 1 |
Mixed | Text | add changelog entry for activejob change | c45c84db72b1448ca4a8a01a7d705ad0286d2277 | <ide><path>activejob/CHANGELOG.md
<add>* Add `at` argument to the `perform_enqueued_jobs` test helper.
<add>
<add> *John Crepezzi*, *Eileen Uchitelle*
<add>
<ide> * `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
<ide>
<ide> *Vlado Cingel*
<ide><path>activejob/lib/a... | 2 |
Java | Java | allow separator configuration in pathpatternparser | 33becd8258583f17741c8615bcd2d2dc0378c7fc | <ide><path>spring-web/src/main/java/org/springframework/http/server/DefaultPathContainer.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ma... | 5 |
Text | Text | fix reference to oddsquares | 2a680a3fe5f9d1297331e50bb0771be19e07e2bb | <ide><path>README.md
<ide> Once the sequence is used, it performs only the work necessary. In this
<ide> example, no intermediate arrays are ever created, filter is only called
<ide> twice, and map is only called once:
<ide>
<del> console.log(evenSquares.last()); // 49
<add> console.log(oddSquares.last()); // 49... | 1 |
Ruby | Ruby | remove disabled functionality tests | 8a93230c1546bb172a81e1aa27083b98e2e3b5d0 | <ide><path>Library/Homebrew/test/cask/depends_on_spec.rb
<ide> end
<ide> end
<ide>
<del> context "given a string", :needs_compat do
<del> let(:cask) { Cask::CaskLoader.load(cask_path("compat/with-depends-on-macos-string")) }
<del>
<del> it "does not raise an error" do
<del> expect { insta... | 2 |
Text | Text | fix changelog from | 1b2fa1875e7e53ba58993c163f131266ed76baa7 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> Previously the schema cache methods `primary_keys`, `columns, `columns_hash`, and `indexes`
<ide> would behave differently than one another when a table didn't exist and differently across
<del> databases. This change unifies the behavior so that all the meth... | 1 |
Python | Python | remove an extra newline with the popen based exec | 4e6e5fcccddca2cb737fde43c8e9771192e26038 | <ide><path>numpy/distutils/exec_command.py
<ide> def _exec_command(command, use_shell=None, use_tee = None, **env):
<ide> # Another historical oddity
<ide> if text[-1:] == '\n':
<ide> text = text[:-1]
<del> if use_tee:
<add> if use_tee and text:
<ide> print(text)
<ide> return proc.retu... | 1 |
Go | Go | use containercommitresponse struct for commit cmd | 8b795a05a8fa8a6f747ee5cc0c087bca9d42199d | <ide><path>api/client/commit.go
<ide> import (
<ide> "fmt"
<ide> "net/url"
<ide>
<del> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/opts"
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> "github.com/docker/docker/pkg/parsers"
<ide> func (cli *Do... | 3 |
Go | Go | fix incorrect file permissions (staticcheck) | c2532d56b0c80a0300d9aae9c24c3ba077bab2a9 | <ide><path>volume/local/local.go
<ide> func (r *Root) Create(name string, opts map[string]string) (volume.Volume, error
<ide> if err != nil {
<ide> return nil, err
<ide> }
<del> if err = ioutil.WriteFile(filepath.Join(filepath.Dir(path), "opts.json"), b, 600); err != nil {
<add> if err = ioutil.WriteFile(filep... | 1 |
PHP | PHP | add function droptimestamps() | cd06c78fb4668ac7f624004f9164895c9f467b48 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dropForeign($index)
<ide> return $this->dropIndexCommand('dropForeign', $index);
<ide> }
<ide>
<add> /**
<add> * Indicate that the timestamp columns should be dropped.
<add> *
<add> * @return void
<add> */
<add> public function dropTi... | 1 |
Text | Text | add information "string" | 3f2b07ed71409dcabc998ab2adf42e6d422f0113 | <ide><path>guide/english/php/strings/index.md
<ide> title: Strings
<ide> ---
<ide> ## Strings
<add>A string is a sequence of characters, like "Hello world!".
<ide>
<add>## PHP String Functions
<add>In this chapter we will look at some commonly used functions to manipulate strings.
<add>
<add>## Get The Length of a Str... | 1 |
Text | Text | add troubleshooting guide for asynclocalstorage | fedb0f4d54e8e68d39f488969d074773f7f95ffb | <ide><path>doc/api/async_hooks.md
<ide> In this example, the store is only available in the callback function and the
<ide> functions called by `foo`. Outside of `run`, calling `getStore` will return
<ide> `undefined`.
<ide>
<add>### Troubleshooting
<add>
<add>In most cases your application or library code should have... | 1 |
Text | Text | fix some translation error | 69767d4b792d2192ccd0e5b2cbfa29b401d798fd | <ide><path>docs/docs/01-why-react.zh-CN.md
<ide> React 是一个 Facebook 和 Instagram 用来创建用户界面的 JavaScript
<ide>
<ide> ## 构建可组合的组件
<ide>
<del>React is all about building reusable components. In fact, with React the *only* thing you do is build components. Since they're so encapsulated, components make code reuse, testing,... | 1 |
Javascript | Javascript | fix many queries in story | 31eb81bf2f0ce58b2ef0ccc4c5f1603788152ded | <ide><path>server/boot/story.js
<ide> module.exports = function(app) {
<ide> }
<ide>
<ide> function hotJSON(req, res, next) {
<del> Story.find({order: 'timePosted DESC', limit: 1000}, function(err, stories) {
<add> Story.find({
<add> order: 'timePosted DESC',
<add> limit: 1000
<add> }, function(... | 1 |
PHP | PHP | remove unneeded tests | c2180d04d0cb91667c548506e6ff1bc64c4e9b88 | <ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php
<ide> public function testAuthenticateSuccess()
<ide> ];
<ide> $this->assertEquals($expected, $result);
<ide> }
<del>
<del> /**
<del> * test scope failure.
<del> *
<del> * @return void
<del> */
<del> public function testA... | 2 |
PHP | PHP | fix code explanation | ca6e89710a9a4d8956268cc9477162f46865976a | <ide><path>src/Illuminate/Cache/TaggedCache.php
<ide> public function rememberForever($key, Closure $callback)
<ide> {
<ide> // If the item exists in the cache we will just return this immediately
<ide> // otherwise we will execute the given Closure and cache the result
<del> // of that execu... | 1 |
PHP | PHP | handle array callbacks | b80ddf458bd08de375d83b716a1309ed927197aa | <ide><path>src/Illuminate/Events/Dispatcher.php
<ide> protected function addInterfaceListeners($eventName, array $listeners = [])
<ide> */
<ide> public function makeListener($listener, $wildcard = false)
<ide> {
<del> if (is_string($listener)) {
<add> if (is_string($listener) || is_array($lis... | 2 |
Python | Python | fix segmentation fault | 2cff4bd8f3ad412917f4f295b97b952e297fa257 | <ide><path>transformers/file_utils.py
<ide>
<ide> logger = logging.getLogger(__name__) # pylint: disable=invalid-name
<ide>
<del>try:
<del> import tensorflow as tf
<del> assert hasattr(tf, '__version__') and int(tf.__version__[0]) >= 2
<del> _tf_available = True # pylint: disable=invalid-name
<del> logg... | 1 |
Text | Text | fix grammatical error in readme.md | 19e1b1e2ac9cbf8d0479a6408c12ea5445f4314b | <ide><path>README.md
<ide> Airflow is a platform to programmatically author, schedule and monitor
<ide> data pipelines.
<ide>
<del>When workflows are defined as code, they becomes more maintainable,
<add>When workflows are defined as code, they become more maintainable,
<ide> versionable, testable, and collaborativ... | 1 |
Ruby | Ruby | remove another `@env` access | d4e1f58fd8ce70ae356c630dad68926ad6711fe3 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def port_string
<ide> end
<ide>
<ide> def server_port
<del> @env['SERVER_PORT'].to_i
<add> get_header('SERVER_PORT').to_i
<ide> end
<ide>
<ide> # Returns the \domain part of a \host, such as "rubyonrails.org" in "www.rub... | 1 |
Python | Python | fix typos in docstrings and comments in run.py | e21afed0bba82668c6e4f5f433d0ccfcf54b3577 | <ide><path>flask/run.py
<ide> def find_best_app(module):
<ide> if app is not None and callable(app):
<ide> return app
<ide>
<del> # Otherwise find the first object named Flask
<add> # Otherwise find exactly one Flask instance, or fail.
<ide> matches = []
<ide> for key, value in iteritems(modu... | 1 |
PHP | PHP | add additional tests for marshaller | ed8331f6b1f3a290114e58dedbf4a8037371794e | <ide><path>Cake/Test/TestCase/ORM/MarshallerTest.php
<ide> public function testOneAssociationsMany() {
<ide> $this->assertEquals($data['Users'], $result->Users);
<ide> }
<ide>
<add>/**
<add> * Test one() with deeper associations.
<add> *
<add> * @return void
<add> */
<ide> public function testOneDeepAssociations()... | 1 |
PHP | PHP | correct doc block | c7f2eab359969aeac5552839320ac960a71ebd44 | <ide><path>src/Console/ShellDispatcher.php
<ide> protected function _dispatch() {
<ide> * All paths in the loaded shell paths are searched.
<ide> *
<ide> * @param string $shell Optionally the name of a plugin
<del> * @return mixed An object
<add> * @return \Cake\Console\Shell A shell instance.
<ide> * @throws \Cake... | 1 |
Python | Python | fix a typo in _example_parser docstring | f82ca018a04c57c3a6f56e374367b18abc5b90a5 | <ide><path>research/astronet/astronet/ops/dataset_ops.py
<ide> def build_dataset(file_pattern,
<ide> table_initializer, default_value=-1)
<ide>
<ide> def _example_parser(serialized_example):
<del> """Parses a single tf.Example into image and label tensors."""
<add> """Parses a single tf.Example into fe... | 1 |
Ruby | Ruby | fix dependency equality | a412b49c2ce23d0b917f5c08e0cb453a042c1b26 | <ide><path>Library/Homebrew/dependencies.rb
<ide> def each(*args, &block)
<ide> end
<ide>
<ide> def <<(o)
<del> @deps << o unless include?(o)
<add> @deps << o
<ide> self
<ide> end
<ide>
<ide><path>Library/Homebrew/dependency.rb
<ide> def to_s
<ide> end
<ide>
<ide> def ==(other)
<del> instance_... | 6 |
PHP | PHP | createquietly parameter type | 98548073b4f7bc201c0c8e6d215f65faa8f5c739 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> public function create($attributes = [], ?Model $parent = null)
<ide> /**
<ide> * Create a collection of models and persist them to the database without dispatching any model events.
<ide> *
<del> * @param array<string, mixed> $... | 2 |
Go | Go | replace panic by log.fatal in tests | 823174de4d1acb93613c1b5ba53873906f43f62c | <ide><path>runtime_test.go
<ide> func init() {
<ide>
<ide> // Make it our Store root
<ide> if runtime, err := NewRuntimeFromDirectory(unitTestStoreBase, false); err != nil {
<del> panic(err)
<add> log.Fatalf("Unable to create a runtime for tests:", err)
<ide> } else {
<ide> globalRuntime = runtime
<ide> }
<ide... | 1 |
Ruby | Ruby | fix failing tests for rails-api | de45e4c6cd9d8a6e610863c6ec396ba12b654e55 | <ide><path>railties/test/application/rake_test.rb
<ide> class ApplicationController < ActionController::API
<ide> bundle exec rake db:migrate test`
<ide> end
<ide>
<del> assert_match(/5 runs, 8 assertions, 0 failures, 0 errors/, output)
<add> assert_match(/5 runs, 7 assertions, 0 failures, 0 e... | 1 |
PHP | PHP | implement key lengths for mysql | 28de0f04944186e1ca9124cc4937e58146b855d6 | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function indexSql(Table $table, $name) {
<ide> if ($data['type'] === Table::INDEX_FULLTEXT) {
<ide> $out = 'FULLTEXT KEY ';
<ide> }
<del> // TODO finish MySQL indexes with length
<ide> $out .= $this->_driver->quoteIdentifier($name);
<ide>
<ide>... | 3 |
Ruby | Ruby | fix enum on custom attribute with default | 8f2decdf4db9723dd964637cb6357f0aabcb4e24 | <ide><path>activerecord/lib/active_record/attributes.rb
<ide> def define_default_attribute(name, value, type, from_user:)
<ide> def decorate_attribute_type(attr_name, **default)
<ide> type, options = attributes_to_define_after_schema_loads[attr_name]
<ide>
<add> default.with_defaults!(defaul... | 2 |
Javascript | Javascript | test white space in `ember.isempty` | 5fc8d4064ff72c393719b677b541b89428d274e4 | <ide><path>packages/ember-metal/lib/is_empty.js
<ide> import isNone from 'ember-metal/is_none';
<ide> Ember.isEmpty({}); // false
<ide> Ember.isEmpty('Adam Hawkins'); // false
<ide> Ember.isEmpty([0,1,2]); // false
<add> Ember.isEmpty('\n\t'); // false
<add> Ember.isEmpty(' '); ... | 2 |
PHP | PHP | fix docblock spelling | 23526ca9a4620a60e2f282df14ccb053d52b36a7 | <ide><path>src/Illuminate/Hashing/BcryptHasher.php
<ide> public function needsRehash($hashedValue, array $options = array())
<ide> }
<ide>
<ide> /**
<del> * Set the default passwork work factor.
<add> * Set the default password work factor.
<ide> *
<ide> * @param int $rounds
<ide> * @return $this | 1 |
Python | Python | fix use of __doc__ in setup.py for -oo mode | 922442fe0251df29b3494a2aa93a0d3f18155481 | <ide><path>setup.py
<ide> """
<ide> from __future__ import division, print_function
<ide>
<del>DOCLINES = __doc__.split("\n")
<add>DOCLINES = (__doc__ or '').split("\n")
<ide>
<ide> import os
<ide> import sys | 1 |
PHP | PHP | add throws docblock for console kernel | b0efeb71216761ff8cefa621f45b43b4402702e8 | <ide><path>src/Illuminate/Foundation/Console/Kernel.php
<ide> public function registerCommand($command)
<ide> * @param array $parameters
<ide> * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
<ide> * @return int
<add> *
<add> * @throws \Symfony\Component\Console\Except... | 1 |
Go | Go | use tagimage in commit | afb3eda697efebf18d8ac3bbcfd911a5968081e3 | <ide><path>api/server/router/image/backend.go
<ide> type imageBackend interface {
<ide> ImageHistory(imageName string) ([]*image.HistoryResponseItem, error)
<ide> Images(imageFilters filters.Args, all bool, withExtraAttrs bool) ([]*types.ImageSummary, error)
<ide> LookupImage(name string) (*types.ImageInspect, error... | 4 |
Javascript | Javascript | replace function with arrow function | 54ff3b6b052c561e127ae5f5a02f1ad6895b61d7 | <ide><path>test/parallel/test-http.js
<ide> server.on('listening', function() {
<ide> Cookie: [ 'foo=bar', 'bar=baz', 'baz=quux' ]
<ide> },
<ide> agent: agent
<del> }, common.mustCall(function(res) {
<add> }, common.mustCall((res) => {
<ide> const cookieHeaders = req._header.match(/^Cookie: .+$/img)... | 1 |
Ruby | Ruby | remove useless find_partial method | 405b4c7f1e078185b71d74629675336ad3d9c36a | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def render(context, options, block)
<ide> else
<ide> @template_keys = @locals.keys
<ide> end
<del> template = find_partial(@path, @template_keys)
<add> template = find_template(@path, @template_keys)
<ide> ... | 1 |
PHP | PHP | add test to prove | 5261b277c3e9b68a33bec304f8713c9ea69334c8 | <ide><path>tests/TestCase/View/Widget/DateTimeWidgetTest.php
<ide> public function testRenderSelected($selected)
<ide> $this->assertContains('<option value="45" selected="selected">45</option>', $result);
<ide> }
<ide>
<add> public function testRenderInvalidDate() {
<add> $selected = [
<add> ... | 1 |
Mixed | Ruby | allow skipping incineration of processed emails | d0037daa3738ac754781ce5e55778a2cf9d3d2f7 | <ide><path>actionmailbox/CHANGELOG.md
<add>* Allow skipping incineration of processed emails.
<add>
<add> This can be done by setting `config.action_mailbox.incinerate` to `false`.
<add>
<add> *Pratik Naik*
<add>
<ide> ## Rails 6.0.0.beta1 (January 18, 2019) ##
<ide>
<ide> * Added to Rails.
<ide><path>action... | 6 |
Python | Python | simplify the import statement | 0086bbc0145b9e9612b299e0b36b4782160c9ce1 | <ide><path>numpy/core/_internal.py
<ide> def _newnames(datatype, order):
<ide> # Given an array with fields and a sequence of field names
<ide> # construct a new array with just those fields copied over
<ide> def _index_fields(ary, fields):
<del> from multiarray import empty, dtype
<add> from multiarray import em... | 1 |
Python | Python | fix bug in get_indexes affecting the tests | c5e2ecae6949d4e89530610d768bbbd563ddc19b | <ide><path>django/db/backends/mysql/introspection.py
<ide> def get_indexes(self, cursor, table_name):
<ide> continue
<ide> if row[4] not in indexes:
<ide> indexes[row[4]] = {'primary_key': False, 'unique': False}
<add> # It's possible to have the unique and PK cons... | 2 |
Python | Python | reduce transformer fp16 test to 12 iterations. | 81123ebf39e2491791b5aa8b4f50d46c10a66223 | <ide><path>official/transformer/v2/transformer_benchmark.py
<ide> def benchmark_8_gpu_fp16(self):
<ide> FLAGS['bleu_ref'].value = self.bleu_ref
<ide> FLAGS.param_set = 'big'
<ide> FLAGS.batch_size = 3072*8
<del> FLAGS.train_steps = 400000
<add> FLAGS.train_steps = 20000 * 12
<ide> FLAGS.steps_betw... | 1 |
Text | Text | change paragraph and spelling error | 7e69a4e791c2ac7c5415d4fa926333627e553a2e | <ide><path>guide/english/computer-science/index.md
<ide> Computer Science is the study of computers and the concepts that make computers
<ide>
<ide> Much of computer science was pioneered in the latter half of the 20th century.
<ide>
<del>Today, if you attend an undergraduate computer science course, you will learn a... | 1 |
Java | Java | add runtime hints for tx management | 50240bb609b6441390d436005a7f2e7a4cdf5454 | <ide><path>spring-tx/src/main/java/org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.java
<ide> import org.springframework.beans.factory.config.BeanDefinition;
<ide> import org.springframework.context.annotation.Bean;
<ide> import org.springframework.context.annotation.Configuration;
<a... | 2 |
Text | Text | add build status to readme | 09b43d72847876fe535f82cf19ebd5fc143b7c93 | <ide><path>README.md
<ide> native implementation. We are committed to improving and expanding the
<ide> capabilities of this project as fast as we can, and look forward to working with
<ide> the community.
<ide>
<del># React Native
<add># React Native [{d3.geo = {};
<ide>
<del>var d3_radians = Math.PI / 180;
<add>var d3_radians = Math.PI / 180,
<add> d3_geo_earthRadius = 6371; // Mean radius of Earth, in km.
<ide> // TODO clip input coordinates on opposite hemisphere
<ide> d3.geo.azimuthal = function() {
<ide> var mode = "o... | 5 |
Ruby | Ruby | fix error with --installed | 0c0cdf81051217e2ac6721c92aaa5dad57f29de7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> end
<ide> elsif args.installed?
<ide> no_named_args = true
<del> [Formula.installed, Cask::Cask.casks]
<add> [Formula.installed, Cask::Caskroom.casks]
<ide> elsif args.no_named?
<ide> no_named_args = true
<ide> ... | 1 |
Javascript | Javascript | improve description of `.flush()` | b62f33f29a14c528b0e6934a279edd6a8f2b8134 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
<ide> * @ngdoc method
<ide> * @name $httpBackend#flush
<ide> * @description
<del> * Flushes pending requests in the order they arrived beginning at specified request using the trained resp... | 1 |
Java | Java | add "result" package under ~.web.reactive | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c | <ide><path>spring-web-reactive/src/main/java/org/springframework/http/client/reactive/package-info.java
<del>/*
<del> * Copyright 2002-2016 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the Lice... | 26 |
Javascript | Javascript | remove unused exec param | 8a41470c85536119a6dbeaf4b40dc9ebc4c453c4 | <ide><path>lib/child_process.js
<ide> function normalizeExecArgs(command, options, callback) {
<ide> }
<ide>
<ide>
<del>exports.exec = function exec(command /* , options, callback */) {
<del> var opts = normalizeExecArgs.apply(null, arguments);
<add>exports.exec = function exec(/* command , options, callback */) {
<... | 1 |
Javascript | Javascript | change error message on interpolation | cb1bdf1e37236f5147ee5ef745573c0ced1b4f14 | <ide><path>Libraries/Animated/src/nodes/AnimatedInterpolation.js
<ide> function checkValidInputRange(arr: Array<number>) {
<ide> * mean this implicit string conversion, you can do something like
<ide> * String(myThing)
<ide> */
<del> 'inputRange must be monotonically increasing ' + arr,
<add> ... | 1 |
Ruby | Ruby | add missing spaces to button_tag api doc [ci skip] | 61075cb79c60ee11fb9050b1a39fa8dcbcd0d71d | <ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb
<ide> def submit_tag(value = "Save changes", options = {})
<ide> end
<ide>
<ide> # Creates a button element that defines a <tt>submit</tt> button,
<del> # <tt>reset</tt>button or a generic button which can be used in
<add> # <tt>res... | 1 |
Javascript | Javascript | remove unreachable branch | fbc29164ea01f943fd91ac77794868caa5f7487e | <ide><path>lib/internal/util/inspect.js
<ide> function noPrototypeIterator(ctx, value, recurseTimes) {
<ide> } else if (Array.isArray(value)) {
<ide> const clazz = Object.getPrototypeOf(value) ||
<ide> clazzWithNullPrototype(Array, 'Array');
<del> newVal = new clazz(value.length || 0);
<add> newVal = ... | 1 |
Text | Text | add russian translation | 5e552cd3df7694055516c4505be5218c3d42b02a | <ide><path>guide/russian/vagrant/index.md
<ide> title: Vagrant
<ide> localeTitle: бродяга
<ide> ---
<del>## бродяга
<add>## Vagrant
<ide>
<del>Это заглушка. [Помогите нашему сообществу расширить его](https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/quadratic-equations/index.md) .
<add>Vagrant ... | 1 |
Ruby | Ruby | link cellar and opt before the keg | be45e6a0c52b02508aef17f0a9b16ebf6976d006 | <ide><path>Library/Homebrew/migrator.rb
<ide> def migrate
<ide> unlink_oldname
<ide> move_to_new_directory
<ide> repin
<del> link_newname unless old_linked_keg.nil?
<del> link_oldname_opt
<ide> link_oldname_cellar
<add> link_oldname_opt
<add> link_newname unless old_linked_ke... | 1 |
Ruby | Ruby | prevent a 500 in the default controller scaffold | c83ace7b6a5720be30a2f7d843d545fc81af54cd | <ide><path>railties/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb
<ide> def set_<%= singular_table_name %>
<ide> # Only allow a trusted parameter "white list" through.
<ide> def <%= "#{singular_table_name}_params" %>
<ide> <%- if attributes_names.empty? -%>
<del> params[:... | 3 |
Ruby | Ruby | add checks for the header package | 296f3c309ed4a44a550e454fc18a306749f06e86 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module CLT
<ide>
<ide> STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo".freeze
<ide> FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI".freeze
<del> MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables".freeze
<add> # EXECUTABLE_PKG_ID... | 1 |
Javascript | Javascript | remove ability to inject arbitrary scripts | 8a6cd3cd12932e5c6dfea9529c8cbafb9be46445 | <ide><path>packages/react-devtools-extensions/src/inject.js
<ide>
<ide> export default function inject(scriptName: string, done: ?Function) {
<ide> const source = `
<add> // the prototype stuff is in case document.createElement has been modified
<ide> (function () {
<del> window.postMessage({ source: 'react-de... | 3 |
Text | Text | add missing paginator in docs | 3785281d4c0830cdeac901e222e667eff42cfa54 | <ide><path>docs/topics/3.2-announcement.md
<ide> The following pagination view attributes and settings have been moved into attri
<ide> * `view.max_paginate_by` - Use `paginator.max_page_size` instead.
<ide> * `settings.PAGINATE_BY` - Use `paginator.page_size` instead.
<ide> * `settings.PAGINATE_BY_PARAM` - Use `pagina... | 1 |
Python | Python | fix broken example | 372e945097f8e5e9ba3637eff84ee119c46c2276 | <ide><path>examples/sandbox/views.py
<ide> def get(self, request):
<ide> 'url': reverse('blog-posts-root', request=request)},
<ide> {'name': 'Permissions example',
<ide> 'url': reverse('permissions-example', request=request)},
<del> {'name': 'Simple request mixin example... | 1 |
Javascript | Javascript | add classbinding test | 9945d946d3527685c437604c19060919adc5d03d | <ide><path>packages/ember-glimmer/tests/integration/components/curly-components-test.js
<ide> moduleFor('Components test: curly components', class extends RenderingTest {
<ide> this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': classes('ember-view foo bar') }, content: 'hello' });
<ide... | 1 |
Javascript | Javascript | remove monthly plans from client | a2c7659f2d3c8ad9f56fda3ec3aeb76fc9564511 | <ide><path>config/donation-settings.js
<ide> require('dotenv').config({ path: path.resolve(__dirname, '../.env') });
<ide> // Configuration for client side
<ide> const durationsConfig = {
<ide> year: 'yearly',
<del> month: 'monthly',
<add> // month: 'monthly',
<ide> onetime: 'one-time'
<ide> };
<ide> const amount... | 1 |
Python | Python | teach gyp to write an 'all deps' rule | 920c13203df434278eb7c34a485e89734a5fa62a | <ide><path>tools/gyp/pylib/gyp/generator/make.py
<ide> def CalculateMakefilePath(build_file, base_name):
<ide> for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
<ide> needed_targets.add(target)
<ide>
<add> all_deps = set()
<ide> build_files = set()
<ide> include_list = set()
<i... | 1 |
Python | Python | remove useless semicolon | a572f1b3e6e3ab4469e714098d9cea57361d52b0 | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def make_code(funcdict, filename):
<ide> %s
<ide> }
<ide> """ % (filename, code1, code2, code3)
<del> return code;
<add> return code
<ide>
<ide>
<ide> if __name__ == "__main__":
<ide><path>numpy/linalg/linalg.py
<ide> def pinv(a, rcond=1e-15 ):
<ide>... | 2 |
Javascript | Javascript | fix some issues with three.animation | 037c5d51abb1b630a2c46c198c234708d2199268 | <ide><path>src/extras/animation/Animation.js
<ide> THREE.Animation = function ( root, name ) {
<ide>
<ide> this.interpolationType = THREE.AnimationHandler.LINEAR;
<ide>
<del> this.points = [];
<del> this.target = new THREE.Vector3();
<del>
<ide> };
<ide>
<ide> THREE.Animation.prototype.play = function ( startTime )... | 1 |
Java | Java | fix httpmessagewriter tests | 7a8a2d96080188838c135ed409e50e2467cd9f05 | <ide><path>spring-web/src/test/java/org/springframework/http/codec/FormHttpMessageWriterTests.java
<ide>
<ide> import org.junit.Test;
<ide> import reactor.core.publisher.Mono;
<add>import reactor.test.StepVerifier;
<ide>
<ide> import org.springframework.core.ResolvableType;
<add>import org.springframework.core.io.buf... | 3 |
Javascript | Javascript | fix connection upgrade checks | 1050594c867550f2417adae045160c6e39d70073 | <ide><path>lib/_http_common.js
<ide> function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
<ide> parser.incoming.statusMessage = statusMessage;
<ide> }
<ide>
<del> // The client made non-upgrade request, and server is just advertising
<del> // supported protocols.
<del> //
<del> // Se... | 3 |
Javascript | Javascript | fix existing tests that failed schema validaton | 3ba9ed99c0952eb8241e9e2c3c6b357cf0c59d5b | <ide><path>lib/validateSchema.js
<ide> const Ajv = require("ajv");
<ide> const ajv = new Ajv({
<ide> errorDataPath: "configuration",
<ide> allErrors: true,
<del> verbose: true
<add> verbose: true,
<add> extendRefs: true
<ide> });
<ide> require("ajv-keywords")(ajv, ["instanceof"]);
<ide> require("../schemas/ajv.absolu... | 4 |
Mixed | Javascript | remove usage of url.parse | 295e766c2782d6d83e33004f7c2204c0a8d52655 | <ide><path>doc/api/deprecations.md
<ide> expose values under these names.
<ide> ### DEP0109: `http`, `https`, and `tls` support for invalid URLs
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/36853
<add> description: End-of-Life.
<ide> - version: v11... | 6 |
Javascript | Javascript | change example module name | 217feda041c62d55ee13a0fad3563f36863fddc0 | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> Note that this example is using {@link ng.directive:script inlined templates}
<ide> to get it working on jsfiddle as well.
<ide>
<del> <example module="ngView" deps="angular-route.js">
<add> <example module="ngViewExample" dep... | 1 |
Ruby | Ruby | fix typo in exception message | ef862c04e5cc4deed04e0ffc70af88431803efe6 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def call(t, args, options, outer_options = {})
<ide> if url_options.permitted?
<ide> t.url_for(url_options.to_h.merge(outer_options))
<ide> else
<del> raise ArgumentError, "Generating an URL from non ... | 1 |
Ruby | Ruby | add list --json | 832073a3c7de32346d09409569b48ed672418527 | <ide><path>Library/Homebrew/cask/cmd/list.rb
<ide> module Cask
<ide> class Cmd
<ide> class List < AbstractCommand
<del> option "-1", :one, false
<del> option "--versions", :versions, false
<del> option "--full-name", :full_name, false
<add> option "-1", :one, false
<add> optio... | 2 |
Javascript | Javascript | fix logluvtolinear convert error | 43918cc66cbce4dcb97a3904ef804518846ff7ea | <ide><path>src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js
<ide> vec4 LogLuvToLinear( in vec4 value ) {
<ide> Xp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );
<ide> Xp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;
<ide> Xp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;
<del> vec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;
<add> ve... | 1 |
Python | Python | fix new feature flags | 4d2d7d586608ddc0bcb2857fb3c2d0d4c151ebfc | <ide><path>spacy/_ml.py
<ide> def Tok2Vec(width, embed_size, **kwargs):
<ide> shape = HashEmbed(width, embed_size//2, column=cols.index(SHAPE),
<ide> name='embed_shape')
<ide> else:
<del> prefix, suffix, shape = None
<add> prefix, suffix, shape = (... | 2 |
PHP | PHP | remove dead method | 2de57f1b77f12650d62ca66d4fae4d9a59103dbe | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _addDefaultContextProviders()
<ide> }
<ide>
<ide> /**
<del> * Returns if a field is required to be filled based on validation properties from the validating object.
<del> *
<del> * @param \Cake\Validation\ValidationSet $validationRu... | 1 |
Python | Python | add batchnorm tests for cntk | 81ab7573565e3f3d09a077945f4ab2659c9c48d9 | <ide><path>keras/backend/cntk_backend.py
<ide> def normalize_batch_in_training(x, gamma, beta,
<ide> for axis in range(1, ndim(x)):
<ide> if axis in reduction_axes:
<ide> target_shape.append(1)
<add> if ndim(gamma) > axis:
<add> gamma = C.reduce_mean... | 2 |
Text | Text | note macstadium, add more links | 9aa4888d2b45c7a07a95183cc4c026d828391914 | <ide><path>README.md
<ide> Please consider a regular donation through Patreon:
<ide> [](https://www.patreon.com/homebrew)
<ide>
<ide> ## Sponsors
<del>Our CI infrastructure was paid for by [our Kickstarter supporters](http://docs.brew.sh/Kick... | 1 |
Go | Go | add test for recording restart policy name | c3ed49dcdb2d835bf4fbdebe3f07318c945282c8 | <ide><path>integration-cli/docker_cli_restart_test.go
<ide> func TestRestartWithVolumes(t *testing.T) {
<ide>
<ide> logDone("restart - does not create a new volume on restart")
<ide> }
<add>
<add>func TestRecordRestartPolicyNO(t *testing.T) {
<add> defer deleteAllContainers()
<add>
<add> cmd := exec.Command(dockerBin... | 1 |
Ruby | Ruby | use strip_heredoc to keep indentation consistent | 13c9195b12e2a6c87056d24968f092ba97e14364 | <ide><path>actionpack/lib/action_dispatch/routing/inspector.rb
<ide> def header(routes)
<ide> end
<ide>
<ide> def no_routes
<del> @buffer << <<-MESSAGE
<del>You don't have any routes defined!
<add> @buffer << <<-MESSAGE.strip_heredoc
<add> You don't have any routes defined!
<ide>
<d... | 1 |
Java | Java | remove misleading default note on iso.date_time | 86f9716fef89a25462f5d55c9d430cf8cd62c82c | <ide><path>spring-context/src/main/java/org/springframework/format/annotation/DateTimeFormat.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * yo... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.