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 |
|---|---|---|---|---|---|
Ruby | Ruby | fix nil handling in `brew versions` | 9cdfd2797fb547473d460c7b4a0f88a6a7d174b5 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def self.old_versions f
<ide> yielded = []
<ide> f.rev_list.each do |sha|
<ide> version = f.version_for_sha sha
<del> unless yielded.include? version
<add> unless yielded.include? version or version.nil?
<ide> yield version, s... | 1 |
Text | Text | escape asterisk in cctest gtest-filter | 9afe2b60663685f7679c278f85220f41521d8215 | <ide><path>doc/guides/writing-tests.md
<ide> $ make cctest GTEST_FILTER=EnvironmentTest.AtExitWithArgument
<ide> `cctest` can also be run directly which can be useful when debugging:
<ide>
<ide> ```console
<del>$ out/Release/cctest --gtest_filter=EnvironmentTest.AtExit*
<add>$ out/Release/cctest --gtest_filter=Environ... | 1 |
Ruby | Ruby | add require to suppress warning; remove variable | 4da888f38452d9727c77fd91cd7a267e4e1eec42 | <ide><path>activesupport/lib/active_support/core_ext/big_decimal/conversions.rb
<ide> require 'bigdecimal'
<add>require 'bigdecimal/util'
<ide> require 'yaml'
<ide>
<ide> class BigDecimal
<ide><path>railties/lib/rails/generators/named_base.rb
<ide> def module_namespacing(&block)
<ide>
<ide> def indent(content... | 2 |
Ruby | Ruby | check all dependents for broken dylibs | da34fba151ee33c1a2e14ab21ee0dc4ea451cc0f | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def formula(formula_name)
<ide> dependents -= @formulae
<ide> dependents = dependents.map { |d| Formulary.factory(d) }
<ide>
<del> testable_dependents = dependents.select { |d| d.test_defined? && d.bottled? }
<add> bottled_dependents = dependents.... | 2 |
Text | Text | fix typo in http2.md | d1d9e2fce521ae1deae4fa2b75a7f93a9c5bdafb | <ide><path>doc/api/http2.md
<ide> changes:
<ide> and the total frame length will *not* necessarily be aligned at 8 bytes.
<ide> * `peerMaxConcurrentStreams` {number} Sets the maximum number of concurrent
<ide> streams for the remote peer as if a SETTINGS frame had been received. Will
<del> be overridden... | 1 |
PHP | PHP | fix a bunch more api doc errors | e9aba0ffb6797c074802da9fefd3760b174eb93c | <ide><path>src/Database/Dialect/PostgresDialectTrait.php
<ide> protected function _transformDistinct($query) {
<ide> * Modifies the original insert query to append a "RETURNING *" epilogue
<ide> * so that the latest insert id can be retrieved
<ide> *
<del> * @param \Cake\Database\Query $query
<add> * @param \Cake\Da... | 10 |
Python | Python | simplify fab table resetting | 5e460cbed8a98d3217abe2423f16abe84a8a8a1a | <ide><path>airflow/models/__init__.py
<ide> def import_all_models():
<ide> import airflow.models.dataset
<ide> import airflow.models.serialized_dag
<ide> import airflow.models.tasklog
<add> import airflow.www.fab_security.sqla.models
<ide>
<ide>
<ide> def __getattr__(name):
<ide><path>airflow/utils/db.... | 3 |
Text | Text | fix links in nlp readme | 8bc5a1a5aa9068820d1dfeb26b4887e0740833a2 | <ide><path>official/nlp/README.md
<ide> research ideas. Detailed intructions can be found in READMEs in each folder.
<ide>
<ide> We provide SoTA model implementations, pre-trained models, training and
<ide> evaluation examples, and command lines. Detail instructions can be found in the
<del>READMEs for specific papers... | 1 |
Ruby | Ruby | recognize dist suffix | 252605b2ae6ce344e88e946c7de6ef19f7e82121 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def version
<ide> return $1 if $1
<ide>
<ide> # eg foobar-4.5.0-bin
<del> /-((\d+\.)+\d+[abc]?)[-._](bin|stable|src|sources?)$/.match stem
<add> /-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
<ide> return $1 if $1
<ide>
<ide... | 1 |
Text | Text | add request for os and version | ceaeef86755b50cf2e04ecc0ae1441d1d7c9c19e | <ide><path>ISSUE_TEMPLATE.md
<ide> For more information on how to write a good [bug report](https://github.com/atom
<ide>
<ide> ### Versions
<ide>
<del>You can get this information from executing `atom --version` and `apm --version` at the command line.
<add>You can get this information from executing `atom --version... | 1 |
Text | Text | add referecnes for translations | 66f07cbd228b0c68a0e16022b18efc4e6c7cad06 | <ide><path>threejs/lessons/threejs-fundamentals.md
<ide> to support legacy browsers look into a <a href="https://babeljs.io">transpiler</
<ide> </div>
<ide>
<ide> <!-- needed for out of date translations -->
<del><a href="threejs-geometry.html"></a>
<ide>\ No newline at end of file
<add><a href="threejs-geometry.html"... | 1 |
Python | Python | add additional test case | 0aed5581837254ce96e14c1964c93002e17503da | <ide><path>libcloud/test/compute/test_digitalocean_v2.py
<ide> def test_list_sizes_filter_by_location_success(self):
<ide> self.assertEqual(size.name, '512mb')
<ide> self.assertTrue(location.id in size.extra['regions'])
<ide>
<add> location = self.driver.list_locations()[1]
<add> location... | 1 |
Ruby | Ruby | fix bad nodocs | 9811c3624a3f5881069093ee55d53be2457d4c03 | <ide><path>activeresource/lib/active_resource/exceptions.rb
<ide> def to_s; @message ;end
<ide>
<ide> # 3xx Redirection
<ide> class Redirection < ConnectionError # :nodoc:
<del> def to_s; response['Location'] ? "#{super} => #{response['Location']}" : super; end
<add> def to_s
<add> response['Location'] ... | 1 |
Text | Text | add changelogs for fs | d2e4742a8d15c6bb9e18cddfff56bb9d9b8e99f8 | <ide><path>doc/api/fs.md
<ide> checks fail, and does nothing otherwise.
<ide> ## fs.appendFile(file, data[, options], callback)
<ide> <!-- YAML
<ide> added: v0.6.7
<add>changes:
<add> - version: v7.0.0
<add> pr-url: https://github.com/nodejs/node/pull/7897
<add> description: The `callback` parameter is no longer... | 1 |
PHP | PHP | add tests for exceptiontrap | 8c90e4f55d3db2a23b334b1f2baf45123ed10f98 | <ide><path>src/Error/ExceptionRenderer.php
<ide> use Cake\Http\Exception\HttpException;
<ide> use Cake\Http\Exception\MissingControllerException;
<ide> use Cake\Http\Response;
<add>use Cake\Http\ResponseEmitter;
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Http\ServerRequestFactory;
<ide> use Cake\Routing\Exceptio... | 5 |
Java | Java | add option to extend exception resolvers | d53c04b4dfb08f8ac63d1c479f52a80f20942e0a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
<ide> protected final List<HttpMessageConverter<?>> getMessageConverters() {
<ide> protected void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
<ide> }
<ide>
<add> /**
<ad... | 5 |
Javascript | Javascript | remove unused catch bindings | fcb8bf1d3525ccde1f6fcbf564649490f6c7c5a1 | <ide><path>lib/internal/util/inspector.js
<ide> function sendInspectorCommand(cb, onError) {
<ide> } finally {
<ide> session.disconnect();
<ide> }
<del> } catch (e) {
<add> } catch {
<ide> return onError();
<ide> }
<ide> } | 1 |
Javascript | Javascript | use slice(0) to clone arrays | 9e57ce0c7af742d15223b9d2aa1f9aed5792d007 | <ide><path>src/Angular.js
<ide> function copy(source, destination){
<ide> destination = source;
<ide> if (source) {
<ide> if (isArray(source)) {
<del> // http://jsperf.com/copy-array-with-slice-vs-for
<del> destination = source.slice(0);
<add> destination = copy(source, []);
<ide> ... | 1 |
Python | Python | fix regression test | b94286de30fdd154cfcd1c88889819c047693f7a | <ide><path>spacy/tests/regression/test_issue595.py
<ide> def test_issue595():
<ide> """Test lemmatization of base forms"""
<ide> words = ["Do", "n't", "feed", "the", "dog"]
<del> tag_map = {'VB': {POS: VERB, 'morph': VerbForm_inf}}
<add> tag_map = {'VB': {POS: VERB, VerbForm_inf: True}}
<ide> rules = ... | 1 |
Text | Text | fix brackets position | 4fade6acb46ccf0a4f3f637586689019818d81ee | <ide><path>doc/api/fs.md
<ide> number of bytes read is zero.
<ide> If this method is invoked as its [`util.promisify()`][]ed version, it returns
<ide> a promise for an `Object` with `bytesRead` and `buffer` properties.
<ide>
<del>### `fs.read(fd, [options,] callback)`
<add>### `fs.read(fd[, options], callback)`
<ide> ... | 1 |
PHP | PHP | fix session expiration on several drivers | 0831312aec47d904a65039e07574f41ab7492418 | <ide><path>src/Illuminate/Session/CookieSessionHandler.php
<ide>
<ide> namespace Illuminate\Session;
<ide>
<add>use Carbon\Carbon;
<ide> use SessionHandlerInterface;
<ide> use Symfony\Component\HttpFoundation\Request;
<ide> use Illuminate\Contracts\Cookie\QueueingFactory as CookieJar;
<ide> public function close()
<i... | 4 |
Python | Python | fix trailing space | 428630c19702172beba94a3381d91340aa5e3bd6 | <ide><path>rest_framework/serializers.py
<ide> def to_representation(self, data):
<ide> """
<ide> List of object instances -> List of dicts of primitive datatypes.
<ide> """
<del> # Dealing with nested relationships, data can be a Manager,
<add> # Dealing with nested relationships... | 1 |
Ruby | Ruby | fix <h1> plain text conversion | 7bbddb01738cd8c2a3bda65d32f30ec5e386b4a9 | <ide><path>lib/action_text/plain_text_conversion.rb
<ide> def plain_text_for_block(node, index = 0)
<ide> "#{remove_trailing_newlines(plain_text_for_node_children(node))}\n\n"
<ide> end
<ide>
<del> %i[ p ul ol ].each do |element|
<add> %i[ h1 p ul ol ].each do |element|
<ide> alias_meth... | 1 |
Python | Python | add missing comma | 1c408903213c268423f7824d2823e493c57f2f0b | <ide><path>spacy/bn/tokenizer_exceptions.py
<ide> ],
<ide> "কি.মি": [
<ide> {ORTH: "কি.মি", LEMMA: "কিলোমিটার"},
<del> ]
<add> ],
<ide> "সে.মি.": [
<ide> {ORTH: "সে.মি.", LEMMA: "সেন্টিমিটার"},
<ide> ], | 1 |
Python | Python | remove unneeded arguments to save_object | 56653111a6848f6ef5d4bb645b87cbcaf5bffba1 | <ide><path>rest_framework/serializers.py
<ide> def from_native(self, data, files):
<ide> if instance:
<ide> return self.full_clean(instance)
<ide>
<del> def save_object(self, obj, parent=None, fk_field=None, **kwargs):
<add> def save_object(self, obj, **kwargs):
<ide> """
<ide> ... | 1 |
Ruby | Ruby | use long options for `patch` command | b86fdfeb09e55678f5d35a738f55d7bc04dbfd54 | <ide><path>Library/Homebrew/style.rb
<ide> def run_rubocop(files, output_type,
<ide> def run_shellcheck(files, output_type, fix: false)
<ide> files = shell_scripts if files.blank?
<ide>
<del> files = files.map(&:realpath)
<add> files = files.map(&:realpath) # use absolute file paths
<ide>
<ide> ... | 1 |
Ruby | Ruby | remove dead code | 25c672637206a2c48fd829c58596c788b6e31c5d | <ide><path>actionpack/lib/action_dispatch/journey/visitors.rb
<ide> def visit_GROUP(node)
<ide> end
<ide> end
<ide>
<del> # Used for formatting urls (url_for)
<del> class Formatter < Visitor # :nodoc:
<del> attr_reader :options, :consumed
<del>
<del> def initialize(options)
<del... | 1 |
Text | Text | fix faq links | 3754ad573754b8e1794217ebff9a7e1c656c8c2d | <ide><path>docs/misc/faq.md
<ide> https://github.com/docker/docker/blob/master/LICENSE)
<ide>
<ide> Docker currently runs only on Linux, but you can use VirtualBox to run Docker in
<ide> a virtual machine on your box, and get the best of both worlds. Check out the
<del>[*Mac OS X*](../installation/mac/#macosx) and [*M... | 1 |
Python | Python | allow setting of load balancer port to none | 9a07d7e47cd1125bee0e5c288b71950da4006ef3 | <ide><path>libcloud/loadbalancer/drivers/dimensiondata.py
<ide> def _ex_connection_class_kwargs(self):
<ide> kwargs['region'] = self.selected_region
<ide> return kwargs
<ide>
<del> def create_balancer(self, name, port, protocol, algorithm, members):
<add> def create_balancer(self, name, port=None... | 2 |
Python | Python | remove compat for prohibitnullcharactersvalidator | aed74961ba03e3e6f53c468353f4e255eb788555 | <ide><path>rest_framework/compat.py
<ide> RegexURLResolver as URLResolver,
<ide> )
<ide>
<del>try:
<del> from django.core.validators import ProhibitNullCharactersValidator # noqa
<del>except ImportError:
<del> ProhibitNullCharactersValidator = None
<del>
<ide>
<ide> def get_original_route(urlpatter... | 3 |
Go | Go | prefer error over panic where possible | 4dd86a0b33b246d57507214cb5974e5359552f26 | <ide><path>daemon/changes.go
<ide> import (
<ide> "errors"
<ide> "time"
<ide>
<add> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/pkg/archive"
<ide> )
<ide>
<ide> func (daemon *Daemon) ContainerChanges(name string) ([]archive.Change, error) {
<ide> return nil, errors.New("Windows does not su... | 13 |
Javascript | Javascript | preserve http method when following redirect | 21ae22dbd3ae3d3a55d9efd4eead3dd7fb6d8e6e | <ide><path>lib/adapters/http.js
<ide> module.exports = function httpAdapter(config) {
<ide>
<ide> var options = {
<ide> path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),
<del> method: config.method,
<add> method: config.method.toUpperCase(),
<ide> headers... | 2 |
Ruby | Ruby | fix directory leak in test_pathname_version | 9f03b285738d5f82d4ecaaa1807eb1888177ce14 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_pathname_version
<ide> d = HOMEBREW_CELLAR/'foo-0.1.9'
<ide> d.mkpath
<ide> assert_equal version('0.1.9'), d.version
<add> ensure
<add> d.unlink
<ide> end
<ide>
<ide> def test_no_version | 1 |
PHP | PHP | fix unescaped entities | 988a847f491730356a802d1801a2c8ed62aff6a9 | <ide><path>lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
<ide> protected function _paintLinks() {
<ide> $show = $this->_queryString($show);
<ide> $query = $this->_queryString($query);
<ide>
<del> echo "<p><a href='" . $this->baseUrl() . $show . "'>Run more tests</a> | <a href='" . $this->baseUrl() . $query . "... | 1 |
Python | Python | use defaultdict for _uid_prefixes | f9a4f6f30658207ed4c0252d0e671bd2f8fdb53c | <ide><path>keras/backend/common.py
<ide> import numpy as np
<ide>
<add>from collections import defaultdict
<add>
<ide> # the type of float to use throughout the session.
<ide> _FLOATX = 'float32'
<ide> _EPSILON = 10e-8
<del>_UID_PREFIXES = {}
<add>_UID_PREFIXES = defaultdict(int)
<ide> _IMAGE_DIM_ORDERING = 'th'
<ide>... | 1 |
Go | Go | improve error msg | 9d00aedebc25507042c5afd4ab8fc6b333ca7c53 | <ide><path>daemon/graphdriver/devmapper/driver.go
<ide> import (
<ide> "github.com/docker/docker/pkg/locker"
<ide> "github.com/docker/docker/pkg/mount"
<ide> units "github.com/docker/go-units"
<add> "github.com/pkg/errors"
<ide> "github.com/sirupsen/logrus"
<ide> "golang.org/x/sys/unix"
<ide> )
<ide> func (d *Driv... | 1 |
Ruby | Ruby | call expand_path on the value of homebrew_cache | 8bdc7b92d8f9b5bff1207b362295abc226d1d79c | <ide><path>Library/Homebrew/config.rb
<ide> def cache
<del> if ENV['HOMEBREW_CACHE']
<del> Pathname.new(ENV['HOMEBREW_CACHE'])
<add> if ENV["HOMEBREW_CACHE"]
<add> Pathname.new(ENV["HOMEBREW_CACHE"]).expand_path
<ide> else
<ide> # we do this for historic reasons, however the cache *should* be the same
<id... | 1 |
Text | Text | add parentheses to refreshtmpdir() | edebc902cf0191e02eb7d485d53cfd008a6d3336 | <ide><path>test/common/README.md
<ide> Port tests are running on.
<ide>
<ide> Logs '1..0 # Skipped: ' + `msg`
<ide>
<del>### refreshTmpDir
<add>### refreshTmpDir()
<ide> * return [<String>]
<ide>
<del>Deletes the 'tmp' dir and recreates it
<add>Deletes the testing 'tmp' directory and recreates it.
<ide>
<ide> ##... | 1 |
Python | Python | fix yaml serialization for advanced activations | 046a3c8a285be1c4b695aa3ea57cf7f8a9922024 | <ide><path>keras/layers/advanced_activations.py
<ide> def call(self, x, mask=None):
<ide> return pos + self.alpha * (K.exp(neg) - 1.)
<ide>
<ide> def get_config(self):
<del> config = {'alpha': self.alpha}
<add> config = {'alpha': float(self.alpha)}
<ide> base_config = super(ELU, self)... | 1 |
Python | Python | fix style issues on master using black | a5ff3cd01b8a78b5ed2961a8095290fed4e2a0d5 | <ide><path>flask/cli.py
<ide> def show_server_banner(env, debug, app_import_path, eager_loading):
<ide>
<ide> if env == "production":
<ide> click.secho(
<del> ' WARNING: This is a development server. '
<del> 'Do not use it in a production deployment.', fg='red')
<del> click.s... | 4 |
Ruby | Ruby | remove linux to homebrew-core label | f96f29f68ddfd0fd43049b1448b1d0e25c050f3c | <ide><path>Library/Homebrew/dev-cmd/pr-automerge.rb
<ide> def pr_automerge_args
<ide> description: "Pull requests must have this label."
<ide> comma_array "--without-labels",
<ide> description: "Pull requests must not have these labels (default: "\
<del> ... | 1 |
Javascript | Javascript | name anonymous functions | 2ebd445e6130936362d7975743e6b7d725d2b0fb | <ide><path>lib/console.js
<ide> function Console(stdout, stderr) {
<ide> // As of v8 5.0.71.32, the combination of rest param, template string
<ide> // and .apply(null, args) benchmarks consistently faster than using
<ide> // the spread operator when calling util.format.
<del>Console.prototype.log = function(...args) {... | 1 |
Python | Python | use temppath in test_not_closing_opened_fid | c4156cfbe9c22ab99473346b7757d2b54b46baa3 | <ide><path>numpy/lib/tests/test_io.py
<ide> from numpy.testing import (
<ide> TestCase, run_module_suite, assert_warns, assert_,
<ide> assert_raises_regex, assert_raises, assert_allclose,
<del> assert_array_equal,
<add> assert_array_equal,temppath
<ide> )
<ide> from numpy.testing.utils import tempdir
<ide... | 2 |
Javascript | Javascript | remove old jstd assertions | c594f75b4c59a5341741f012a4f2942a920bac8c | <ide><path>test/BinderSpec.js
<ide> describe('Binder', function() {
<ide> it('BindUpdate', inject(function($rootScope, $compile) {
<ide> $compile('<div ng:init="a=123"/>')($rootScope);
<ide> $rootScope.$digest();
<del> assertEquals(123, $rootScope.a);
<add> expect($rootScope.a).toBe(123);
<ide> }));
<... | 5 |
PHP | PHP | set no timeout | 2ec773802f75c20926a27b8b308b3ea2f13b8d7c | <ide><path>src/Illuminate/Database/Schema/MySqlSchemaState.php
<ide> protected function baseVariables(array $config)
<ide> protected function executeDumpProcess(Process $process, $output, array $variables)
<ide> {
<ide> try {
<del> $process->mustRun($output, $variables);
<add> $pro... | 3 |
PHP | PHP | use name() instead of hand quoting sequence names | ddc3eee84cc85eeabf51681ee501cbbd8818590a | <ide><path>lib/Cake/Model/Datasource/Database/Postgres.php
<ide> public function truncate($table, $reset = false) {
<ide> if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) {
<ide> if (isset($this->_sequenceMap[$table]) && $reset != true) {
<ide> foreach ($this->_sequenceMap[$table] as $sequenc... | 1 |
PHP | PHP | add missing trim() around sqlserver queries | 0f8dae55c9865fc2eeb1b2fe1d4dd66048236311 | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> public function renderStatement($type, $data) {
<ide> $offset = intval($limitOffset[2] * $page);
<ide>
<ide> $rowCounter = self::ROW_COUNTER;
<del> return "
<del> SELECT {$limit} * FROM (
<add> $sql = "SELECT {$limit} * FROM (
<id... | 1 |
Javascript | Javascript | remove test to see if build passes | 06207e0d0e6bc4a0fd49cf9732eda66c6ea1e023 | <ide><path>spec/window-event-handler-spec.js
<ide> describe('WindowEventHandler', () => {
<ide> window.dispatchEvent(new CustomEvent('window:close'))
<ide> expect(atom.close).toHaveBeenCalled()
<ide> })
<del>
<del> it ('saves the window state', () => {
<del> spyOn(atom, 'storeWindowDimensions')
... | 1 |
Javascript | Javascript | remove an unused variable | 5799f41c93b354c3529e2ab4259141a1c88cac37 | <ide><path>lib/internal/bootstrap/node.js
<ide> const { kExpandStackSymbol } = NativeModule.require('internal/util');
<ide> if (typeof er[kExpandStackSymbol] === 'function')
<ide> er[kExpandStackSymbol]();
<del> } catch (er) {}
<add> } catch {
<add> // Nothing to b... | 1 |
Ruby | Ruby | test url generation for s3 and disk | 5bb3f63b318932de0bc21b164d5eb2530a718c3d | <ide><path>test/service/disk_service_test.rb
<ide> class ActiveStorage::Service::DiskServiceTest < ActiveSupport::TestCase
<ide> SERVICE = ActiveStorage::Service::DiskService.new(root: File.join(Dir.tmpdir, "active_storage"))
<ide>
<ide> include ActiveStorage::Service::SharedServiceTests
<add>
<add> test "url gen... | 2 |
Javascript | Javascript | fix regexp in defaultstatsprinterplugin | a8afd23578290885d467717aefa33d2d683c14bc | <ide><path>lib/stats/DefaultStatsPrinterPlugin.js
<ide> const AVAILABLE_FORMATS = {
<ide> },
<ide> { regExp: /(\(module has no exports\))/g, format: red },
<ide> { regExp: /\(possible exports: (.+)\)/g, format: green },
<del> { regExp: /\s*([^\s].* doesn't exist)/g, format: red },
<add> { regExp: /(?:^|\n)... | 1 |
Python | Python | remove erronous newline | e6ca0fcb4c610dcf4cac291b3b3ace1a5b3f2d90 | <ide><path>rest_framework/filters.py
<ide> class DjangoObjectPermissionsFilter(BaseFilterBackend):
<ide> A filter backend that limits results to those where the requesting user
<ide> has read object level permissions.
<ide> """
<del>
<ide> def __init__(self):
<ide> assert guardian, 'Using Django... | 1 |
Javascript | Javascript | reset haserror flag after hmr request | fdc62400185beeb5c35d9066fe561771096e3d09 | <ide><path>packager/react-packager/src/Resolver/polyfills/require.js
<ide> if (__DEV__) {
<ide> if (factory) {
<ide> mod.factory = factory;
<ide> }
<add> mod.hasError = false;
<ide> mod.isInitialized = false;
<ide> require(id);
<ide> | 1 |
Ruby | Ruby | add runtime_installed_formula_dependents method | 7d77a9e97d43ee5bda273277da093078e00325b5 | <ide><path>Library/Homebrew/formula.rb
<ide> def runtime_formula_dependencies(read_from_tab: true, undeclared: true)
<ide> end.compact
<ide> end
<ide>
<add> def runtime_installed_formula_dependents
<add> # `opt_or_installed_prefix_keg` and `runtime_dependencies` `select`s ensure
<add> # that we don't end ... | 1 |
Ruby | Ruby | update service metadata for updated blobs only | 601006c56d08f8ce168faf7b5875a9a19a026001 | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> class ActiveStorage::Blob < ActiveRecord::Base
<ide> self.service_name ||= self.class.service.name
<ide> end
<ide>
<del> after_commit :update_service_metadata, if: :content_type_previously_changed?
<add> after_update_commit :update_service_metada... | 1 |
PHP | PHP | apply fixes from styleci | 0f3e5092c0e9b9628da951107365fd4a0a3d741e | <ide><path>src/Illuminate/Routing/Router.php
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Routing\BindingRegistrar;
<del>use Illuminate\Database\Eloquent\ModelNotFoundException;
<ide> use Psr\Http\Message\ResponseInterface as PsrResponse... | 1 |
Javascript | Javascript | fix lint error | a164854a4c082e76ec0783fc5261c4b66f4cb97f | <ide><path>lib/ErrorHelpers.js
<ide> exports.cleanUpWebpackOptions = (stack, message) => {
<ide> stack = exports.cutOffWebpackOptinos(stack);
<ide> stack = exports.cutOffMultilineMessage(stack, message);
<ide> return stack;
<del>}
<add>}; | 1 |
Ruby | Ruby | reorder unpack strategies | fc1586576021f20bc87526254044d31908503146 | <ide><path>Library/Homebrew/unpack_strategy.rb
<ide> def self.strategies
<ide> Otf,
<ide> Air,
<ide> Executable,
<del> SelfExtractingExecutable,
<del> Jar,
<del> LuaRock,
<del> MicrosoftOfficeXml,
<add> Jar, # needs to be before Zip
<add> LuaRock, # needs to be before Zip... | 1 |
Text | Text | add a changelog entry about runner hook | f7ed0af6c163b80041dfe02f783632b952b13d6d | <ide><path>railties/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add runner to Rails::Railtie as a hook called just after runner starts. *José Valim & kennyj*
<add>
<ide> * Add `/rails/info/routes` path, displays same information as `rake routes` *Richard Schneeman & Andrew White*
<ide>
<ide> * ... | 1 |
PHP | PHP | fix misnamed class | 4479a8608c248bd3eca3a30112079f457bbc19d7 | <ide><path>lib/Cake/Console/Shell.php
<ide> public function runCommand($command, $argv) {
<ide> $this->_useLogger(false);
<ide> }
<ide> if (!empty($this->params['plugin'])) {
<del> CakePlugin::load($this->params['plugin']);
<add> Plugin::load($this->params['plugin']);
<ide> }
<ide> $this->command = $comm... | 1 |
Ruby | Ruby | add polymorphicreflection and constraints method | 08acb4bccba5b64a233eb7c2ea1b0cd09881d2cb | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> def next_chain_scope(scope, table, reflection, connection, assoc_klass, foreign_
<ide>
<ide> def add_constraints(scope, owner, assoc_klass, refl, tracker)
<ide> chain = refl.chain
<del> scope_chain = refl.scope_chain... | 2 |
PHP | PHP | apply fixes from styleci | 6061e9351c2e440fa51a7889a7558d63a81c0143 | <ide><path>src/Illuminate/Foundation/Console/ServeCommand.php
<ide> protected function serverCommand()
<ide> return [
<ide> (new PhpExecutableFinder)->find(false),
<ide> '-S',
<del> $this->host() . ':' . $this->port(),
<del> base_path('server.php')
<add> ... | 1 |
Ruby | Ruby | change useless gsub to delete | c6147113fabf64d58571e89d6661fe109aebc2b2 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def form_tag_in_block(html_options, &block)
<ide>
<ide> # see http://www.w3.org/TR/html4/types.html#type-name
<ide> def sanitize_to_id(name)
<del> name.to_s.gsub(']','').gsub(/[^-a-zA-Z0-9:.]/, "_")
<add> name.to_s... | 1 |
Ruby | Ruby | detect name from github archives | 90a630dcadb50829a17c6423b1af0bb2b4491f69 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def url= url
<ide> @url = url
<ide> path = Pathname.new(url)
<ide> if @name.nil?
<add> %r{github.com/\S+/(\S+)/archive/}.match url
<add> @name ||= $1
<ide> /(.*?)[-_.]?#{path.version}/.match path.basename
<del> @name = $1
<del> @path ... | 1 |
Text | Text | fix gaussian noise doc | 7c8d9aaf6b6873a67c6576e860df89b96ba09250 | <ide><path>docs/sources/layers/noise.md
<ide> ```python
<ide> keras.layers.core.GaussianNoise(sigma)
<ide> ```
<del>Apply to the input an additive zero-centred gaussian noise with standard deviation `sigma`. Gaussian Noise (GS) is a natural choise as corruption process for real valued inputs.
<add>Apply to the input an... | 1 |
Python | Python | set version to v2.1.0a4 | a31d557f2d5bd3d00d23972241cbcb6c6cbbdff7 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a3"
<add>__version__ = "2.1.0a4"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Ruby | Ruby | prefix => nil | cacb44874fd5dad608268325b00b4c0058950420 | <ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb
<ide> def delegate(*methods)
<ide> raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
<ide> end
<ide>
<del> prefix = options[:prefix] && "#{options[:prefix] == true ? to : options[:p... | 2 |
Text | Text | translate 10.6-create-fragment.md to japanese | 2b35ba6f406796752cb7d95d635e0d26358a05dc | <ide><path>docs/docs/10.6-create-fragment.ja-JP.md
<add>---
<add>id: create-fragment
<add>title: キー付けされたフラグメント
<add>permalink: create-fragment-ja-JP.html
<add>prev: clone-with-props-ja-JP.html
<add>next: update-ja-JP.html
<add>---
<add>
<add>多くの場合、 `render` から返された要素のキーを特定するために、 `key` プロパティを使用します。しかし、以下のような特定の状況では、こういった... | 1 |
Python | Python | fix empty tensor and create test | d9680f61c81d70de0687e38dd52a0338c2a75931 | <ide><path>keras/layers/convolutional.py
<ide> def compute_output_shape(self, input_shape):
<ide> return tf.TensorShape([input_shape[0], length, input_shape[2]])
<ide>
<ide> def call(self, inputs):
<del> if sum(self.cropping) >= inputs.shape[1]:
<add> if tf.not_equal(tf.size(inputs), 0) and sum(self.croppi... | 2 |
PHP | PHP | pass getbindings through to querybuilder | f0efda482ebf0d76bc3478257655a2e079c11cd7 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> class Builder {
<ide> * @var array
<ide> */
<ide> protected $passthru = array(
<del> 'toSql', 'lists', 'insert', 'insertGetId', 'pluck',
<del> 'count', 'min', 'max', 'avg', 'sum', 'exists',
<add> 'toSql', 'lists', 'insert', 'insertGetId', 'pluck', 'c... | 1 |
Ruby | Ruby | fix an ar test of relations_test when using oracle | 66cc3c7aa7b3aa2593cf10df728ad5d8ce71adcd | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_presence
<ide> end
<ide>
<ide> test "relations don't load all records in #inspect" do
<del> assert_sql(/LIMIT/) do
<add> assert_sql(/LIMIT|ROWNUM <=|FETCH FIRST/) do
<ide> Post.all.inspect
<ide> end
<ide> end | 1 |
Javascript | Javascript | use dots reporter by default | a83d64605f76128de7e208692c8b081d3f21fe59 | <ide><path>karma-shared.conf.js
<ide> module.exports = function(config, specificOptions) {
<ide> browserDisconnectTimeout: 10000,
<ide> browserDisconnectTolerance: 2,
<ide> browserNoActivityTimeout: 30000,
<del> reporters: ['spec'],
<add> reporters: ['dots'],
<ide> specReporter: {
<ide> maxL... | 1 |
Text | Text | fix netstat command for linux/macos/wsl | aea37058bf5b12c3b0a923e8b977a82b3ec55838 | <ide><path>docs/how-to-setup-freecodecamp-locally.md
<ide> If you can't sign in, and instead you see a banner with an error message that it
<ide> **On Linux / macOS / WSL on Windows - From Terminal:**
<ide>
<ide> ```console
<del>netstat -ab | grep "3000"
<add>netstat -a | grep "3000"
<ide>
<ide> tcp4 0 0 0.0.... | 1 |
Ruby | Ruby | fix ruby warnings | f8bd01cdd9a0ce77cd51b43f82f85df33df762fb | <ide><path>activesupport/test/dependencies_test.rb
<ide> def test_module_with_nested_inline_class
<ide>
<ide> def test_module_with_nested_class_requiring_lib_class
<ide> with_autoloading_fixtures do
<del> ModuleFolder::NestedWithRequire
<add> _ = ModuleFolder::NestedWithRequire # assignment to silence ... | 1 |
Mixed | Javascript | make early hints generic | 37f1e4bf4fa8942f52b5b28bd678afd31d2d911c | <ide><path>doc/api/http.md
<ide> Sends an HTTP/1.1 100 Continue message to the client, indicating that
<ide> the request body should be sent. See the [`'checkContinue'`][] event on
<ide> `Server`.
<ide>
<del>### `response.writeEarlyHints(links[, callback])`
<add>### `response.writeEarlyHints(hints[, callback])`
<ide> ... | 11 |
Text | Text | unify ar changelog entries [ci skip] | de615b38b32273a26ccf3481dcabdcb9363521d6 | <ide><path>activerecord/CHANGELOG.md
<ide> internal operations to fail (sqlite3 adapter only). The method
<ide> `allowed_index_name_length` defines the length limit enforced by
<ide> rails. It's value defaults to `index_name_length` but can vary per adapter.
<del> Fix #8264.
<add> Fixes #8264.
<ide>
... | 1 |
Javascript | Javascript | add dir and distdir to resolve log | 4945740ac79a3d3296e31e59b93717dac02af401 | <ide><path>packages/next/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i
<ide> }
<ide> }
<ide>
<del> console.log('RESOLVE_CONFIG', resolveConfig)
<add> console.log('RESOLVE_CONFIG', {dir, distDir}, resolveConfig)
<ide>
<ide> const webpackMode = dev ? '... | 1 |
Text | Text | add cors to the security guide [ci-skip] | bdcd0d35193052c3db82d28e415885c64bcccbc7 | <ide><path>guides/source/security.md
<ide> end
<ide>
<ide> [`Feature-Policy`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy
<ide>
<add>### Cross-Origin Resource Sharing
<add>
<add>Browsers restrict cross-origin HTTP requests initiated from scripts. If you
<add>want to run Rails as an API, ... | 1 |
Javascript | Javascript | fix pipe deadlock when starting with needdrain | ab895bd587ed47423a6baab0bd6934128aa8990d | <ide><path>lib/internal/streams/readable.js
<ide> Readable.prototype.pipe = function(dest, pipeOpts) {
<ide> ondrain();
<ide> }
<ide>
<add> function pause() {
<add> // If the user unpiped during `dest.write()`, it is possible
<add> // to get stuck in a permanently paused state if that write
<add> // ... | 2 |
Python | Python | add type annotations to s3 hook module | 0c77ea8a3c417805f66d10f0c757ca218bf8dee0 | <ide><path>airflow/providers/amazon/aws/hooks/s3.py
<ide> import shutil
<ide> from functools import wraps
<ide> from inspect import signature
<add>from io import BytesIO
<ide> from tempfile import NamedTemporaryFile
<del>from typing import Callable, Optional, TypeVar, cast
<add>from typing import Any, Callable, Dict, O... | 1 |
Ruby | Ruby | extend callbacks and rescuable with as concern | 7b169ed1bb424929e332e998a75cdb4635c26f62 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> module ActiveSupport
<ide> # saved
<ide> #
<ide> module Callbacks
<del> def self.included(klass)
<del> klass.extend ClassMethods
<del> end
<add> extend Concern
<ide>
<ide> def run_callbacks(kind, *args, &block)
<ide> send("_... | 2 |
Javascript | Javascript | replace getinitialprops with getserversideprops | 641976a471d64a99ca997af70f5add55509937b6 | <ide><path>examples/with-firebase-authentication/pages/index.js
<ide> import 'firebase/firestore'
<ide> import 'isomorphic-unfetch'
<ide> import clientCredentials from '../credentials/client'
<ide>
<del>export default class Index extends Component {
<del> static async getInitialProps({ req, query }) {
<del> const ... | 1 |
Text | Text | improve sign/verify examples and docs | 273d7dd8b85239c26256f2fbd1510bb5555e4075 | <ide><path>doc/api/crypto.md
<ide> This can be called many times with new data as it is streamed.
<ide> added: v0.1.94
<ide> -->
<ide>
<del>The `Hmac` Class is a utility for creating cryptographic HMAC digests. It can
<add>The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
<ide> be used in o... | 1 |
PHP | PHP | remove statereset from emailtest | da4dbea76a6fe77694906a56e9fb740263a44e16 | <ide><path>tests/TestCase/Mailer/EmailTest.php
<ide> */
<ide> class EmailTest extends TestCase
<ide> {
<del> /**
<del> * @inheritDoc
<del> */
<del> protected $stateResetStrategy = TransactionStrategy::class;
<del>
<ide> protected $fixtures = ['core.Users'];
<ide>
<ide> /** | 1 |
Javascript | Javascript | fix issue with minified version | 3cfbf94245ad525ea46e9395c0f064b12042c87e | <ide><path>src/js/player.js
<ide> vjs.Player.prototype.listenForUserActivity = function(){
<ide> if (!this.userActivity_) {
<ide> this.userActive(false);
<ide> }
<del> }), vjs.options.inactivityTimeout);
<add> }), vjs.options['inactivityTimeout']);
<ide> }
<ide> }), 250);
<ide>... | 1 |
Javascript | Javascript | remove unused templates | 2cf3fa8f8c7762285fd283dbe89ff822d0e4c0ea | <ide><path>templates/amd-named.js
<del>/*global define:false*/
<del>
<del>import moment from "./moment";
<del>
<del>define("moment", [], function () {
<del> return moment;
<del>});
<ide><path>templates/amd.js
<del>/*global define:false*/
<del>
<del>import moment from "./moment";
<del>
<del>define([], function () {
<... | 3 |
Mixed | Ruby | remove slashes and backslashes from image paths | 3c3b80eb96577dda1bfe336fed2bfc0e12bb4873 | <ide><path>actionpack/CHANGELOG.md
<add>* Replaces (back)slashes in failure screenshot image paths with dashes.
<add>
<add> If a failed test case contained a slash or a backslash, a screenshot would be created in a
<add> nested directory, causing issues with `tmp:clear`.
<add>
<add> *Damir Zekic*
<add>
<ide>... | 3 |
Text | Text | update plugin documentation to reflect icon usage | 4cb14eb420270db1b136e3c85726b2a3376d64ee | <ide><path>docs/guides/plugins.md
<ide> If you've already initialized your video tag, you can activate a plugin at any t
<ide> video.examplePlugin({ exampleOption: true });
<ide>
<ide> That's it. Head on over to the [Video.js wiki](https://github.com/videojs/video.js/wiki/Plugins) and add your plugin to the list s... | 1 |
Ruby | Ruby | add forgotten test/abstract_unit | d954ee21b8d5718794d6e23c1d77e90b77bf0e34 | <ide><path>actionmailer/test/abstract_unit.rb
<add>require 'test/unit'
<add>
<add>$:.unshift "#{File.dirname(__FILE__)}/../lib"
<add>require 'action_mailer'
<add>
<add>$:.unshift "#{File.dirname(__FILE__)}/fixtures/helpers"
<add>ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/fixtures" | 1 |
Text | Text | add 17.03.2 changelog | abb615b49ce7bdb6651a493781892f0cb0a94418 | <ide><path>CHANGELOG.md
<ide> be found.
<ide>
<ide> * Block pulling Windows images on non-Windows daemons [#29001](https://github.com/docker/docker/pull/29001)
<ide>
<add>## 17.03.2-ce (2017-05-29)
<add>
<add>### Networking
<add>
<add>- Fix a concurrency issue preventing network creation [#33273](https://github.com/m... | 1 |
Text | Text | add pronoun for fhinkel | ed2c9a3c783652f9d75321c3309230372cada60f | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> * [evanlucas](https://github.com/evanlucas) -
<ide> **Evan Lucas** <evanlucas@me.com> (he/him)
<ide> * [fhinkel](https://github.com/fhinkel) -
<del>**Franziska Hinkelmann** <franziska.hinkelmann@gmail.com>... | 1 |
Javascript | Javascript | add support for scripts with module type | 5d3a968e031ab8dff5c07e1d6bb4f196fb82bfa0 | <ide><path>src/core/DOMEval.js
<ide> define( [
<ide> ], function( document ) {
<ide> "use strict";
<ide>
<del> function DOMEval( code, doc ) {
<add> var preservedScriptAttributes = {
<add> type: true,
<add> src: true,
<add> noModule: true
<add> };
<add>
<add> function DOMEval( code, doc, node ) {
<ide> doc = doc... | 6 |
PHP | PHP | add array type for callback | 7f0bc56e29e6e20cd91726e7bbcab65f050dabd4 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
<ide> public function removeObservableEvents($observables)
<ide> * Register a model event with the dispatcher.
<ide> *
<ide> * @param string $event
<del> * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
<add> ... | 1 |
Mixed | Go | fix typos in changelog.md and pull.go | 1ac4c61c10b7753607d8cb17421b90475c1bd0d6 | <ide><path>CHANGELOG.md
<ide> be found.
<ide> - Fix an issue where it would be impossible to update both `memory-swap` and `memory` value together ([#22255](https://github.com/docker/docker/pull/22255))
<ide> - Fix a regression from 1.11.0 where the `/auth` endpoint would not initialize `serveraddress` if it is not pro... | 2 |
Ruby | Ruby | allow other license symbols | 24523f82250787e243fd2fc2ec9854ed43bd0d73 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def puts_requirement_messages
<ide> end
<ide>
<ide> def forbidden_license_check
<del> forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses
<del> .to_s
<del> .sub("P... | 3 |
Python | Python | remove unused iswin64 in multiarray unit test | 17e2f03173f00ed7caa87fff0d1cbeb83b95f20c | <ide><path>numpy/core/tests/test_multiarray.py
<ide>
<ide> from test_print import in_foreign_locale
<ide>
<del>def iswin64():
<del> import platform
<del> return platform.architecture()[0] == "64bit" and sys.platform == "win32"
<del>
<ide> class TestFlags(TestCase):
<ide> def setUp(self):
<ide> self.... | 1 |
Python | Python | fix shuffle=false in .fit() | c8a104b8faa3f5ced2c50a5c3ece3627b0af1542 | <ide><path>keras/models.py
<ide> def fit(self, X, y, batch_size=128, nb_epoch=100, verbose=1,
<ide>
<ide> batches = make_batches(len(X), batch_size)
<ide> for batch_index, (batch_start, batch_end) in enumerate(batches):
<del> if shuffle:
<del> batch_ids = index... | 1 |
Python | Python | remove duplication in test/runtime dependencies | 40babe7bc8122c99aafb1cd2fcc9d63df74da051 | <ide><path>setup.py
<ide>
<ide> SUPPORTED_VERSIONS = ['2.7', 'PyPy', '3.3+']
<ide>
<add>INSTALL_REQUIREMENTS = ['requests']
<add>
<ide> TEST_REQUIREMENTS = [
<ide> 'mock',
<del> 'requests',
<ide> 'requests_mock',
<ide> 'pytest',
<ide> 'pytest-runner'
<del>]
<add>] + INSTALL_REQUIREMENTS
<ide>
<ide... | 1 |
Text | Text | fix output in routing.md [ci skip] | fe97612141a9926a6ecec38f8cefb7eea1a0c8e5 | <ide><path>guides/source/routing.md
<ide> class Video < ApplicationRecord
<ide> end
<ide>
<ide> video = Video.find_by(identifier: "Roman-Holiday")
<del>edit_videos_path(video) # => "/videos/Roman-Holiday"
<add>edit_videos_path(video) # => "/videos/Roman-Holiday/edit"
<ide> ```
<ide>
<ide> Inspecting and Testing Route... | 1 |
Python | Python | move python properties to decorator syntax | 55ad09c9024d2f0d23123c934e505042516cc796 | <ide><path>flask/app.py
<ide> def open_instance_resource(self, resource, mode="rb"):
<ide> """
<ide> return open(os.path.join(self.instance_path, resource), mode)
<ide>
<del> def _get_templates_auto_reload(self):
<add> @property
<add> def templates_auto_reload(self):
<ide> """Reload te... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.