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 | improve contributing.md wording | b82f03437ac6313e1fdffe36513b0a87f2ca878c | <ide><path>CONTRIBUTING.md
<ide>
<ide> Hello 👋!
<ide>
<del>freeCodeCamp.org is possible thanks to thousands of kind volunteers like you. We are grateful for your contributions, and we are excited to welcome you onboard.
<add>freeCodeCamp.org is possible thanks to thousands of kind volunteers like you. We are gratefu... | 1 |
Text | Text | add getters/setter to prepreqs | 09ad6fbe8a2a47a1bb202d6a33471f89b3ea77fc | <ide><path>threejs/lessons/threejs-prerequisites.md
<ide> somemesh.position.set(...position);
<ide> ### Use `class`
<ide>
<ide> The syntax for making class like objects pre ES5 was unfamilar to most programmers.
<del>As of ES5 you can now [use the `class` keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScrip... | 1 |
Ruby | Ruby | remove useless conditional | 44454bdd8b08ca7f19f3974e6c7eb7f0fcbca590 | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def set_request!(request) #:nodoc:
<ide> end
<ide>
<ide> def to_a #:nodoc:
<del> response ? response.to_a : [status, headers, response_body]
<add> response.to_a
<ide> end
<ide>
<ide> class_attribute :middleware_stack | 1 |
Java | Java | add verify(duration) to mockrestserviceserver | 35225e5794d9a144eae544b64ebad58120766815 | <ide><path>spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License"... | 4 |
Python | Python | fix failing tests from | 281095e4c34036845ef7eb5e14c5fc7f7f1ea8bf | <ide><path>airflow/operators/check_operator.py
<ide> SQLCheckOperator, SQLIntervalCheckOperator, SQLThresholdCheckOperator, SQLValueCheckOperator,
<ide> )
<ide>
<add>warnings.warn(
<add> "This module is deprecated. Please use `airflow.operators.sql`.",
<add> DeprecationWarning, stacklevel=2
<add>)
<add>
<ide... | 3 |
Ruby | Ruby | add tests for man+'man[1-8]' | af5cd1a1da0e1b87696ae72b8a5f1c174e83e94e | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem "Use build instead of ARGV to check options"
<ide> end
<ide> end
<del> #
<del> # find_instance_method_call(body_node, :man, :+)... | 2 |
PHP | PHP | prevent duplicate attachments | 3c8ccc2fb4ec03572076e6df71608f6bbb7d71e1 | <ide><path>src/Illuminate/Mail/Mailable.php
<ide> public function with($key, $value = null)
<ide> */
<ide> public function attach($file, array $options = [])
<ide> {
<del> $this->attachments[] = compact('file', 'options');
<add> $this->attachments = collect($this->attachments)
<add> ... | 1 |
Text | Text | add release key for richard lau | 1b6565b13c0eaa96416f09972acf89a6d8e18cfd | <ide><path>README.md
<ide> Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
<ide> `8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600`
<ide> * **Myles Borins** <myles.borins@gmail.com>
<ide> `C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8`
<add>* **Richard Lau** <riclau@uk.ibm.com>
<add>`C82FA3AE1... | 1 |
Python | Python | fix import error | 7051296775c4b41a79e66bc6c8527926d2e3c90c | <ide><path>numpy/linalg/setup.py
<ide>
<add>import sys
<add>
<ide> def configuration(parent_package='',top_path=None):
<ide> from numpy.distutils.misc_util import Configuration
<ide> from numpy.distutils.system_info import get_info | 1 |
PHP | PHP | fix some docblocks | 2dcf1a0f9b767a937fbcad0af5f96cbe1856f85f | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php
<ide> trait InteractsWithAuthentication
<ide> /**
<ide> * Assert that the user is authenticated.
<ide> *
<del> * @param string|null $guard
<add> * @param string|null $guard
<ide> * @return $this
<ide> ... | 4 |
Javascript | Javascript | revert the change of webglrenderer.setrendertarget | dc11dedc4b06760b3046191e1c5e079a3404837e | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> };
<ide>
<del> this.setRenderTarget = function ( renderTarget, optType ) {
<add> this.setRenderTarget = function ( renderTarget ) {
<ide>
<ide> _currentRenderTarget = renderTarget;
<ide>
<ide> function WebGLRendere... | 1 |
PHP | PHP | fix utf8 issues in tablehelper | 7bee2ae0860f82522dbff2955074e720cb9c2987 | <ide><path>src/Shell/Helper/TableHelper.php
<ide> protected function _render($row, $widths)
<ide> {
<ide> $out = '';
<ide> foreach ($row as $i => $column) {
<del> $out .= '| ' . str_pad($column, $widths[$i], ' ', STR_PAD_RIGHT) . ' ';
<add> $pad = $widths[$i] - mb_strlen($colum... | 2 |
Python | Python | update the tests introduced in the latest rebase | cd15084bf9f21f4e255f9c788f903ffcbf703a58 | <ide><path>numpy/typing/tests/data/reveal/dtype.py
<ide> import numpy as np
<ide>
<del>reveal_type(np.dtype(np.float64)) # E: numpy.dtype[numpy.float64*]
<del>reveal_type(np.dtype(np.int64)) # E: numpy.dtype[numpy.int64*]
<add>reveal_type(np.dtype(np.float64)) # E: numpy.dtype[numpy.floating[numpy.typing._64Bit]]
<... | 1 |
Ruby | Ruby | add no-op message | 1e0551fca49b919077c47adbbac5f7a09cb57a49 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap
<ide> elsif args.no_named?
<ide> puts Tap.names
<ide> else
<add> if args.full?
<add> opoo "`brew tap --full` is now a no-op!"
<add> # odeprecated "`brew tap --full`"
<add> end
<add>
<add> if args.shallow?
<add> ... | 1 |
PHP | PHP | remove re-execution of buffered queries | 27977308c199ded4831b71fcf659774f65c47ef6 | <ide><path>src/Database/Statement/BufferedStatement.php
<ide> public function current()
<ide> */
<ide> public function rewind()
<ide> {
<del> if (!$this->_hasExecuted) {
<del> $this->execute();
<del> }
<ide> $this->index = 0;
<ide> }
<ide> | 1 |
Ruby | Ruby | add collectionproxy#to_ary documentation | 390d86ae899f6aba735d8efa0f7f23e05c6957a5 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> # :call-seq:
<ide> # delete(*records)
<ide> #
<del> # Deletes the +records+ supplied and remove them from the collection. For
<add> # Deletes the +records+ supplied and r... | 1 |
Go | Go | remove experimental guard for buildkit | 239047c2d36706f2826b0a9bc115e0a08b1c3d27 | <ide><path>api/server/router/build/build_routes.go
<ide> func (br *buildRouter) postBuild(ctx context.Context, w http.ResponseWriter, r *
<ide> }
<ide>
<ide> // check if the builder feature has been enabled from daemon as well.
<del> if buildOptions.Version == types.BuilderBuildKit &&
<del> (br.builderVersion != ty... | 1 |
Javascript | Javascript | simplify subsequent rststream calls | 795a96400613c11791d6b2609811e6c7e48661ef | <ide><path>lib/internal/http2/core.js
<ide> class Http2Session extends EventEmitter {
<ide>
<ide> const state = stream[kState];
<ide> if (state.rst) {
<del> // rst has already been called, do not call again,
<del> // skip straight to destroy
<del> stream.destroy();
<add> // rst has already ... | 2 |
PHP | PHP | remove restriction that caused some bc issues | 57d8251b26e994f428e3cc0630f90b2b14d2fc1f | <ide><path>src/Illuminate/Queue/Console/ListenCommand.php
<ide>
<ide> namespace Illuminate\Queue\Console;
<ide>
<del>use InvalidArgumentException;
<ide> use Illuminate\Queue\Listener;
<ide> use Illuminate\Console\Command;
<ide> use Symfony\Component\Console\Input\InputOption;
<ide> public function fire()
<ide>
<ide>... | 1 |
Go | Go | fix wrong untag while docker rmi | 93810b289c6c8394061da41a59f7fa5c655be0d7 | <ide><path>server.go
<ide> func (srv *Server) deleteImageParents(img *Image, imgs *[]APIRmi) error {
<ide>
<ide> func (srv *Server) deleteImage(img *Image, repoName, tag string) ([]APIRmi, error) {
<ide> imgs := []APIRmi{}
<add> tags := []string{}
<ide>
<ide> //If delete by id, see if the id belong only to one repo... | 1 |
Python | Python | handle poll if poller closed. fixes #882 | 6b5461c0a02cfaeff35a087c706ec980b2dc2511 | <ide><path>celery/worker/consumer.py
<ide> def on_task_received(body, message):
<ide> if readers or writers:
<ide> connection.more_to_read = True
<ide> while connection.more_to_read:
<del> for fileno, event in poll(poll_timeout) or ():
<add>... | 1 |
Text | Text | add more testing methods to dev/readme.md | b1fcac2f6dc201fdf88028518cb82aa3ec591748 | <ide><path>dev/README.md
<ide> is available on PyPI apart from SVN packages, so everyone should be able to inst
<ide> the release candidate version of Airflow via simply (<VERSION> is 1.10.12 for example, and <X> is
<ide> release candidate number 1,2,3,....).
<ide>
<del>You have to make sure you have ariflow 1.10.* (t... | 1 |
Ruby | Ruby | apply the log_level default | 794a6ca71ebdd3794710c503131580e9cb02982c | <ide><path>railties/lib/rails/application/configuration.rb
<ide> class Configuration < ::Rails::Engine::Configuration
<ide> :ssl_options, :public_file_server,
<ide> :session_options, :time_zone, :reload_classes_only_on_change,
<ide> :beginning_of_week, :filter... | 1 |
Python | Python | fix import order by disabling it | fd955c930ee994c25aec77ba738504d334393e66 | <ide><path>official/resnet/keras/keras_common.py
<ide>
<ide> import time
<ide>
<del>from absl import flags # pylint: disable=g-bad-import-order
<del>import numpy as np # pylint: disable=g-bad-import-order
<del>import tensorflow as tf # pylint: disable=g-bad-import-order
<del>
<add># pylint: disable=g-bad-import-or... | 1 |
Text | Text | fix example codes for generators guide [ci skip] | 79477417bf6c266d10a8cb4cdd2911465a862c12 | <ide><path>guides/source/generators.md
<ide> This method also takes a block:
<ide>
<ide> ```ruby
<ide> lib "super_special.rb" do
<del> puts "Super special!"
<add> "puts 'Super special!'"
<ide> end
<ide> ```
<ide>
<ide> end
<ide> Creates a Rake file in the `lib/tasks` directory of the application.
<ide>
<ide> ```ru... | 1 |
Ruby | Ruby | fix typos in date helper rdoc (via mike breen) | 986b3f805d1e9d6e5c2de096dbc5857fb1b3d826 | <ide><path>actionpack/lib/action_view/helpers/date_helper.rb
<ide> def time_ago_in_words(from_time, include_seconds = false)
<ide> alias_method :distance_of_time_in_words_to_now, :time_ago_in_words
<ide>
<ide> # Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specif... | 1 |
Text | Text | update arch dependencies | 98b40c98da5308cb01871e836f5ca4328709b701 | <ide><path>docs/build-instructions/linux.md
<ide> To also install the newly built application, use `--create-debian-package` or `-
<ide>
<ide> ### Arch
<ide>
<del>* `sudo pacman -S --needed gconf base-devel git nodejs npm libgnome-keyring python2 libX11-devel libxkbfile-devel`
<add>* `sudo pacman -S --needed gconf ba... | 1 |
Python | Python | fix crazy typo | fd9d6c664be1273f4d2f4d56361345e630ce8b7b | <ide><path>rest_framework/tests/authentication.py
<ide> def test_post_form_session_auth_failing(self):
<ide>
<ide> class TokenAuthTests(TestCase):
<ide> """Token authentication"""
<del> urls = '§.tests.authentication'
<add> urls = 'rest_framework.tests.authentication'
<ide>
<ide> def setUp(self):
<ide> ... | 1 |
Javascript | Javascript | reduce run time for test-benchmark-crypto | 3eae3103349b4fd5dc9a5d7a8b50374d6bf43c16 | <ide><path>test/parallel/test-benchmark-crypto.js
<ide> const fork = require('child_process').fork;
<ide> const path = require('path');
<ide>
<ide> const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
<del>const argv = ['--set', 'n=1',
<del> '--set', 'writes=1',
<del> '--set... | 1 |
Ruby | Ruby | convert formulaauditor test to spec | ebe4042b2f9b7b66e1c2ee9082de002795ea0b81 | <ide><path>Library/Homebrew/test/audit_test.rb
<del>require "testing_env"
<del>require "fileutils"
<del>require "pathname"
<del>require "formulary"
<del>require "dev-cmd/audit"
<del>
<del>class FormulaAuditorTests < Homebrew::TestCase
<del> def setup
<del> super
<del> @dir = mktmpdir
<del> end
<del>
<del> def ... | 3 |
PHP | PHP | add a compileforeign method to postgresgrammar.php | 6981580ef2555fbd593b1eb7aa1b765cfde122e7 | <ide><path>src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
<ide> protected function modifyIncrement(Blueprint $blueprint, Fluent $column)
<ide> return ' primary key';
<ide> }
<ide> }
<add>
<add> /**
<add> * Compile a foreign key command.
<add> *
<add> * @param \Il... | 1 |
Ruby | Ruby | pass invalid option names to formula installer | 6594650eb1c37170e7d70e7e9c75b48d154e38a9 | <ide><path>Library/Homebrew/cmd/reinstall.rb
<ide> def reinstall_formula(f)
<ide> backup keg
<ide> end
<ide>
<del> options = BuildOptions.new(Options.create(ARGV.flags_only), f.options).used_options
<add> build_options = BuildOptions.new(Options.create(ARGV.flags_only), f.options)
<add> options = bu... | 1 |
Javascript | Javascript | remove ie9 custom launcher | 0bb9aaf72643de7b44a25780ca723007f6251d32 | <ide><path>karma.conf.js
<ide> module.exports = function(config) {
<ide>
<ide> // IE
<ide> if (runAll || process.env.SAUCE_IE) {
<del> // customLaunchers.SL_IE8 = createCustomLauncher('internet explorer', 8, 'Windows 7');
<del> customLaunchers.SL_IE9 = createCustomLauncher('internet explorer', 9, 'Wi... | 1 |
Ruby | Ruby | exclude draft pr | 5607e4a947cc8bc81c2bf05009658d14e67dcd39 | <ide><path>Library/Homebrew/dev-cmd/pr-automerge.rb
<ide> def pr_automerge
<ide> without_labels = args.without_labels || ["do not merge", "new formula", "automerge-skip", "linux-only"]
<ide> tap = Tap.fetch(args.tap || CoreTap.instance.name)
<ide>
<del> query = "is:pr is:open repo:#{tap.full_name}"
<add> ... | 1 |
Javascript | Javascript | add missing word to comment | 6ad7ab5a6ffa4c1f4c6db798ba0f9cf72deebfc3 | <ide><path>src/lib/duration/constructor.js
<ide> export function Duration (duration) {
<ide> // day when working around DST, we need to store them separately
<ide> this._days = +days +
<ide> weeks * 7;
<del> // It is impossible translate months into days without knowing
<add> // It is impossible t... | 1 |
Ruby | Ruby | fix spelling in api docs | d5f0bb38f6364f45fd4810faf58cc66ff8ff2d73 | <ide><path>actionview/lib/action_view/helpers/cache_helper.rb
<ide> module CacheHelper
<ide> #
<ide> # === Explicit dependencies
<ide> #
<del> # Some times you'll have template dependencies that can't be derived at all. This is typically
<add> # Sometimes you'll have template dependencies th... | 2 |
Javascript | Javascript | use local config reference in texteditorregistry | d70c8d029bb51f5f8d237856b9baa75ffa80c415 | <ide><path>src/text-editor-registry.js
<ide> export default class TextEditorRegistry {
<ide>
<ide> const configOptions = {scope: editor.getRootScopeDescriptor()}
<ide> for (const [settingKey, setterName] of EDITOR_SETTER_NAMES_BY_SETTING_KEY) {
<del> editor[setterName](atom.config.get(settingKey, configOp... | 1 |
Python | Python | allow setting of load balancer listener ip | 2d9f438808c102c8c3315db8cca44a48b36321e0 | <ide><path>libcloud/loadbalancer/drivers/dimensiondata.py
<ide> def _ex_connection_class_kwargs(self):
<ide> return kwargs
<ide>
<ide> def create_balancer(self, name, port=None, protocol=None,
<del> algorithm=None, members=None):
<add> algorithm=None, members=N... | 2 |
PHP | PHP | add method to ensure a directory exists | 8a8eed4d157102ef77527891ac1d8f8e85e7afee | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function directories($directory)
<ide> return $directories;
<ide> }
<ide>
<add> /**
<add> * Ensure a directory exists.
<add> *
<add> * @param string $path
<add> * @param int $mode
<add> * @param bool $recursive
<a... | 1 |
PHP | PHP | pass the context into widget rendering | 9c960fa9945953cbcf12f2b46955f255140f4143 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function widget($name, array $data = []) {
<ide> }
<ide> unset($data['secure']);
<ide>
<del> return $widget->render($data);
<add> return $widget->render($data, $this->context());
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | add v3.20.0-beta.2 to changelog | 7676db612c554ce49b1c6917762e0242e6c5d802 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.20.0-beta.2 (June 2, 2020)
<add>
<add>- [#18997](https://github.com/emberjs/ember.js/pull/18997) [BUGFIX] Fix components `<Input>` and `<Textarea>` to work with native class actions correctly.
<add>
<ide> ### v3.20.0-beta.1 (May 26, 2020)
<ide>
<ide> -... | 1 |
Mixed | Go | add a short flag for docker stack deploy | f1dd721b6978f1c24bb2761b88c83d9e385bd781 | <ide><path>cli/command/stack/opts.go
<ide> import (
<ide> )
<ide>
<ide> func addComposefileFlag(opt *string, flags *pflag.FlagSet) {
<del> flags.StringVar(opt, "compose-file", "", "Path to a Compose file")
<add> flags.StringVarP(opt, "compose-file", "c", "", "Path to a Compose file")
<ide> }
<ide>
<ide> func addBundl... | 2 |
PHP | PHP | fix doc block | 4bb96d1f8a415023632064e9ec114ed32fe2ae0d | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> public function filled($key)
<ide> return true;
<ide> }
<ide>
<del> /**
<add> /**
<ide> * Determine if the request contains a non-empty value for any of the given inputs.
<ide> *
<ide> * @param string|array $key... | 1 |
Ruby | Ruby | copy new subject when bumping | 2320c0a6c1130dd24d7f73c073c66ad798caa8b0 | <ide><path>Library/Homebrew/cmd/pull.rb
<ide> def pull
<ide> f = changed_formulae.first
<ide> subject = "#{f.name} #{f.version}"
<ide> ohai "New bump commit subject: #{subject}"
<add> system "/bin/echo -n #{subject} | pbcopy"
<ide> message = "#{subject}\n\n#{message}"
<i... | 1 |
Ruby | Ruby | convert env test to spec | 890631dc29cbf0035566d5c5d1e74ddf43684bc2 | <ide><path>Library/Homebrew/test/ARGV_spec.rb
<ide> require "extend/ARGV"
<ide>
<ide> describe HomebrewArgvExtension do
<del> subject { argv.extend(HomebrewArgvExtension) }
<add> subject { argv.extend(described_class) }
<ide> let(:argv) { ["mxcl"] }
<ide>
<ide> describe "#formulae" do
<ide><path>Library/Homebre... | 3 |
Python | Python | add docstrings to merge layers | b257dad10c0a5441c8638142b7de4c26fc76b69f | <ide><path>keras/layers/merge.py
<ide>
<ide>
<ide> class _Merge(Layer):
<del> """TODO
<add> """Generic merge layer for elementwise merge functions.
<add>
<add> Used to implement `Sum`, `Average`, etc.
<add>
<add> # Arguments
<add> **kwargs: standard layer keyword arguments.
<ide> """
<ide>
<id... | 1 |
Javascript | Javascript | add arechildrenoffscreen to host config | 4602e768f3a65f8076d70aa67b8a7c94d7cc377f | <ide><path>src/renderers/art/ReactARTFiber.js
<ide> const ARTRenderer = ReactFiberReconciler({
<ide> // Noop
<ide> },
<ide>
<add> areChildrenOffscreen(props : Props) {
<add> return false;
<add> },
<add>
<ide> getRootHostContext() {
<ide> return emptyObject;
<ide> },
<ide><path>src/renderers/dom/fibe... | 7 |
Javascript | Javascript | fix crash from fillratelogging | 6f8ce41a3958068d6258f7b7c0d1f98646486475 | <ide><path>Libraries/Lists/FillRateHelper.js
<ide> class FillRateHelper {
<ide> return null;
<ide> }
<ide> const start = performanceNow();
<add> if (props.getItemCount(props.data) === 0) {
<add> return null;
<add> }
<ide> if (!this._samplesStartTime) {
<ide> this._samplesStartTime = s... | 1 |
Python | Python | set version to 2.1.2 | c9bd0e5a966e5a2069a96c474e23713b3d5e5b58 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.1.1"
<add>__version__ = "2.1.2"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
PHP | PHP | add tests for mergeoptions with custom prefix | 8ded571b4813f3657c1ff5d8347a506f5be5db60 | <ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php
<ide> public function testMergeOptionsModelSpecific()
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add> /**
<add> * test mergeOptions with custom prefix
<add> *
<add> * @return void
<add> */
<add> ... | 1 |
PHP | PHP | fix cookie bug | 2504f8693fbe3bb69b75cdc6033958cb15cb9ba5 | <ide><path>laravel/cookie.php
<ide> public static function send()
<ide> */
<ide> public static function get($name, $default = null)
<ide> {
<del> if (isset(static::$jar[$name])) return static::$jar[$name];
<add> if (isset(static::$jar[$name])) return static::$jar[$name]['value'];
<ide>
<ide> $value = array_get... | 1 |
Ruby | Ruby | use new exclude paths | 4e6990ed8168b74f14b51f389ae89db5abc026f6 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> UNBREWED_EXCLUDE_PATHS = %w[
<ide> .github/*
<ide> bin/brew
<add> completions/zsh/_brew
<add> docs/*
<ide> lib/gdk-pixbuf-2.0/*
<ide> lib/gio/*
<ide> lib/node_modules/*
<ide> def list
<ide> lib/ruby/gems/[12].*
<ide> lib/ru... | 1 |
Go | Go | prevent panic when empty flag | 661a1e90263cc348c17620cf0b250bf552dd4056 | <ide><path>pkg/mflag/flag.go
<ide> func (f *FlagSet) usage() {
<ide> }
<ide>
<ide> func trimQuotes(str string) string {
<add> if len(str) == 0 {
<add> return str
<add> }
<ide> type quote struct {
<ide> start, end byte
<ide> } | 1 |
PHP | PHP | fix dispatcher typos | 68c49e5c17e8e9f6219736367f042d80d88f2c08 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa
<ide> /**
<ide> * The event dispatcher instance.
<ide> *
<del> * @var Illuminate\Events\Dispacher
<add> * @var Illuminate\Events\Dispatcher
<ide> */
<ide> protected stat... | 1 |
Javascript | Javascript | fix performance issue with separationcs | 39624e91739e24ebf52c83df19863c96b26cb922 | <ide><path>pdf.js
<ide> var SeparationCS = (function() {
<ide> var rgbBuf = new Uint8Array(length);
<ide> var pos = 0;
<ide>
<add> var numComps = base.numComps;
<add> var baseBuf = new Uint8Array(numComps * input.length);
<ide> for (var i = 0, ii = input.length; i < ii; ++i) {
<ide> ... | 1 |
Javascript | Javascript | add coverage for util.inspect.colors alias setter | 481fa1ca989a36f850f844f1df50a6db0cfb1dd3 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> '\x1B[2mdef: \x1B[33m5\x1B[39m\x1B[22m }'
<ide> );
<ide> }
<add>
<add>// Test changing util.inspect.colors colors and aliases.
<add>{
<add> const colors = util.inspect.colors;
<add>
<add> const originalValue = colors.gray;
<add>
<ad... | 1 |
Java | Java | fix detection supportshover | 75a8847a425a84614698dbbab3a38c055a2569f6 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEventHelper.java
<ide> public class PointerEventHelper {
<ide> public static final String POINTER_TYPE_PEN = "pen";
<ide> public static final String POINTER_TYPE_MOUSE = "mouse";
<ide> public static final String POINTER_TYPE_UNKNOWN ... | 1 |
Ruby | Ruby | inline initializer setup | 60926db9e06a7890409926211dffe773aff4a57d | <ide><path>activerecord/lib/active_record/relation.rb
<ide> class Relation
<ide> attr_reader :relation, :klass
<ide>
<ide> def initialize(klass, relation)
<del> @klass = klass
<del> @relation = relation
<add> @klass, @relation = klass, relation
<ide> end
<ide>
<ide> def to_a | 1 |
Text | Text | update configuring.md with colons and periods | 9a4ca7d71a2a3c2b4f4f12c1d10e4077af675e1c | <ide><path>guides/source/configuring.md
<ide> Because `Rails::Application` inherits from `Rails::Railtie` (indirectly), you ca
<ide>
<ide> Below is a comprehensive list of all the initializers found in Rails in the order that they are defined (and therefore run in, unless otherwise stated).
<ide>
<del>* `load_environ... | 1 |
Python | Python | allow specification of terms to fit in lagfit | 8dcf03358a97bf3a577025c03438d381c8b4cb72 | <ide><path>numpy/polynomial/laguerre.py
<ide> def lagfit(x, y, deg, rcond=None, full=False, w=None):
<ide> y-coordinates of the sample points. Several data sets of sample
<ide> points sharing the same x-coordinates can be fitted at once by
<ide> passing in a 2D-array that contains one dataset pe... | 1 |
Python | Python | fix batch_size in transformer_main.py | 2d7a0d6abba764b768d645947014492ade492385 | <ide><path>official/transformer/transformer_main.py
<ide> def run_transformer(flags_obj):
<ide>
<ide> params["use_synthetic_data"] = flags_obj.use_synthetic_data
<ide>
<del> # Set batch size parameter, which depends on TPU and distribution settings.
<del> params["batch_size"] = (
<del> flags_obj.batch_size o... | 1 |
Ruby | Ruby | fix github naming | 6db4b7220094205424e4174c43319be273a4b9de | <ide><path>Library/Homebrew/tap.rb
<ide>
<ide> # a {Tap} is used to extend the formulae provided by Homebrew core.
<ide> # Usually, it's synced with a remote git repository. And it's likely
<del># a Github repository with the name of `user/homebrew-repo`. In such
<add># a GitHub repository with the name of `user/homeb... | 1 |
PHP | PHP | remove annotation of removed functions in 4.0 | 229a1fba01e8c77bdb407c3e0c9c3017390b96e3 | <ide><path>src/Mailer/Mailer.php
<ide> *
<ide> * @method \Cake\Mailer\Email setTo($email, $name = null)
<ide> * @method array getTo()
<del> * @method \Cake\Mailer\Email to($email = null, $name = null)
<ide> * @method \Cake\Mailer\Email setFrom($email, $name = null)
<ide> * @method array getFrom()
<ide> * @method ... | 1 |
Python | Python | add test for backpropagating padding | a22f96c3f19388b5369bf592aac1b056855009f8 | <ide><path>spacy/tests/test_misc.py
<ide> from ..displacy import parse_deps, parse_ents
<ide> from ..tokens import Span
<ide> from .util import get_doc
<add>from .._ml import PrecomputableAffine
<ide>
<ide> from pathlib import Path
<ide> import pytest
<ide> def test_displacy_parse_deps(en_vocab):
<ide> assert deps... | 1 |
Javascript | Javascript | use shallow document comparisons in uniquesort | 15750b0af270da07917b70457cf09bda97d3d935 | <ide><path>src/selector/uniqueSort.js
<ide> function sortOrder( a, b ) {
<ide> }
<ide>
<ide> // Calculate position if both inputs belong to the same document
<del> compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
<add> // Support: IE 11+, Edge 17 - 18+
<add> // IE/Edge sometimes throw a "Permission ... | 1 |
Mixed | Javascript | add hasref method to timeout & immediate | 48a2568f411cf09999b7e82992d15142ce9a45b0 | <ide><path>doc/api/timers.md
<ide> running as long as the immediate is active. The `Immediate` object returned by
<ide> [`setImmediate()`][] exports both `immediate.ref()` and `immediate.unref()`
<ide> functions that can be used to control this default behavior.
<ide>
<add>### immediate.hasRef()
<add><!-- YAML
<add>ad... | 4 |
Javascript | Javascript | remove unnecessary return statements | 32ca31306006d54d4887549b10608dc691cab055 | <ide><path>packages/react-dom/src/events/plugins/SelectEventPlugin.js
<ide> function extractEvents(
<ide> case 'keyup':
<ide> constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
<ide> }
<del>
<del> return;
<ide> }
<ide>
<ide> export {registerEvents, extractEvents};
<ide><path>packages/rea... | 2 |
Python | Python | add a install_clib command | 78de166d5bd2a41f90defd899abb9fb6c14c6c79 | <ide><path>numpy/distutils/command/__init__.py
<ide>
<ide> distutils_all = [ 'build_py',
<ide> 'clean',
<del> 'install_lib',
<add> 'install_clib',
<ide> 'install_scripts',
<ide> 'bdist',
<ide> 'bdist_dumb',... | 4 |
Javascript | Javascript | use map to track callbacks | 97dad7e33b24ce4163fdf95b8a32300f25492aef | <ide><path>lib/internal/cluster/utils.js
<ide> module.exports = {
<ide> handles: {} // Used in tests.
<ide> };
<ide>
<del>const callbacks = {};
<add>const callbacks = new Map();
<ide> var seq = 0;
<ide>
<ide> function sendHelper(proc, message, handle, cb) {
<ide> function sendHelper(proc, message, handle, cb) {
<id... | 1 |
Ruby | Ruby | remove redundant that already happened in teardown | 4dfe213d0fcaf5e665aa624686c13e08849059db | <ide><path>activerecord/test/cases/attribute_decorators_test.rb
<ide> def type_cast_from_user(value)
<ide>
<ide> test "decoration does not eagerly load existing columns" do
<ide> assert_no_queries do
<del> Model.reset_column_information
<ide> Model.decorate_attribute_type(:a_string, :test) { |... | 1 |
Javascript | Javascript | update handlebars to 1.0.0.beta.3 | eb3c5aa562461d238c8d1b02c80b428858416c38 | <ide><path>packages/handlebars/lib/main.js
<ide> var handlebars = (function(){
<ide> var parser = {trace: function trace() { },
<ide> yy: {},
<del>symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"C... | 1 |
Ruby | Ruby | allow taps to link manpages | d36d88edf27ead55adb6efe312f7f70f090b729d | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap
<ide> if ARGV.empty?
<ide> puts Tap.names
<ide> elsif ARGV.first == "--repair"
<add> Tap.each(&:link_manpages)
<ide> migrate_taps :force => true
<ide> elsif ARGV.first == "--list-official"
<ide> require "official_taps"
<ide><path>Li... | 3 |
Java | Java | delete unused package import | 127bc07cdaa2434b6fa4c8227faaa5fdcb9a9647 | <ide><path>spring-test/src/test/java/org/springframework/test/context/junit4/orm/HibernateSessionFlushingTests.java
<ide>
<ide> import org.hibernate.SessionFactory;
<ide> import org.hibernate.exception.ConstraintViolationException;
<del>import org.hibernate.exception.GenericJDBCException;
<ide>
<ide> import org.junit... | 1 |
Ruby | Ruby | add collectionproxy#size documentation | f539d98cc8838b0f7c3c31465cdc070ab9c1e9f3 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> # person.pets.create!(name: nil)
<ide> # # => ActiveRecord::RecordInvalid: Validation failed: Name can't be blank
<ide>
<del>
<ide> ##
<ide> # :method: concat
<ide> ... | 1 |
Text | Text | add v2.8.0-beta.3 to changelog.md | 336974825be2aa061c293561e32a2d1f1a9fd531 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.8.0-beta.3 (August 15, 2016)
<add>
<add>- [#14009](https://github.com/emberjs/ember.js/pull/14009) [BUGFIX] Fix usage of `role` when used in `attributeBindings`.
<add>- [#14044](https://github.com/emberjs/ember.js/pull/14044) / [#14062](https://github.co... | 1 |
Python | Python | fix train.py for v1.0.0-rc1 | 53fbd3dd1ca1b9e8b09d1b36897a1dc046a19e0c | <ide><path>bin/parser/train.py
<ide> def _merge_sents(sents):
<ide> return [(m_deps, m_brackets)]
<ide>
<ide>
<del>def train(Language, gold_tuples, model_dir, n_iter=15, feat_set=u'basic',
<del> seed=0, gold_preproc=False, n_sents=0, corruption_level=0,
<del> beam_width=1, verbose=False,
<del> ... | 1 |
Ruby | Ruby | add tests for argv.filter_for_dependencies | aed70e50e8305e2f2e0dcb80310e0bec20aee429 | <ide><path>Library/Homebrew/test/test_ARGV.rb
<ide> def test_switch?
<ide> assert !ARGV.switch?('-n')
<ide> end
<ide>
<add> def test_filter_for_dependencies_clears_flags
<add> ARGV.unshift("--debug")
<add> ARGV.filter_for_dependencies do
<add> assert ARGV.empty?
<add> end
<add> end
<add>
<add> d... | 1 |
Text | Text | update readme with blogpost link | 5cd07c0976a8dd379f6b811e21c0fae1e8c87da4 | <ide><path>research/object_detection/README.md
<ide> pipeline configuration files indicating TPU compatibility.
<ide> * Support for quantized training.
<ide> * Updated documentation for new binaries, Cloud training, and [Tensorflow Lite](https://www.tensorflow.org/mobile/tflite/).
<ide>
<add>See also our [expanded ann... | 1 |
Java | Java | reduce the visibility of internal methods. | c9c772fbefecafc5fcb600fab7e16c7657a798b3 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public static Completable merge(Publisher<? extends CompletableConsumable> sourc
<ide> * @throws NullPointerException if sources is null
<ide> * @throws IllegalArgumentException if maxConcurrency is less than 1
<ide> */
<del> protected stati... | 1 |
Ruby | Ruby | move the array to a constant | ca67632674e62426bf8b421d672692592e986091 | <ide><path>activemodel/lib/active_model/validations.rb
<ide> def validates_each(*attr_names, &block)
<ide> validates_with BlockValidator, _merge_attributes(attr_names), &block
<ide> end
<ide>
<add> VALID_OPTIONS_FOR_VALIDATE = [:on, :if, :unless].freeze
<add>
<ide> # Adds a validation method o... | 1 |
PHP | PHP | fix oauth 1 when consumer key is base64 string | f37b2a93a222e6f1a42483de5f98924784d0f5db | <ide><path>src/Http/Client/Auth/Oauth.php
<ide> protected function _hmacSha1(Request $request, array $credentials): string
<ide> 'oauth_timestamp' => $timestamp,
<ide> 'oauth_signature_method' => 'HMAC-SHA1',
<ide> 'oauth_token' => $credentials['token'],
<del> 'oauth_consu... | 1 |
Ruby | Ruby | fix depends_on examples in formula page | f5e8b2680e9a94d57666fc8b5e2ff324fb1bd143 | <ide><path>Library/Homebrew/formula.rb
<ide> def go_resource(name, &block)
<ide> # depends_on :x11 # X11/XQuartz components.
<ide> # depends_on :osxfuse # Permits the use of the upstream signed binary or our source package.
<ide> # depends_on :tuntap # Does the same thing as above. This is vital for Yosemit... | 1 |
Javascript | Javascript | remove variable redeclaration | bbaf0f926d11ea980ac9828cb31fb45108b1d841 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(options, cb) {
<ide> if (self.socketPath) {
<ide> self._last = true;
<ide> self.shouldKeepAlive = false;
<del> var conn = self.agent.createConnection({ path: self.socketPath });
<del> self.onSocket(conn);
<add> self.onSocket(self.agent.creat... | 1 |
Go | Go | enable `docker search` on private docker registry | 3231033a80451adff73b53554e27fbabfebb4a4f | <ide><path>registry/service.go
<ide> func (s *Service) Search(job *engine.Job) engine.Status {
<ide> job.GetenvJson("authConfig", authConfig)
<ide> job.GetenvJson("metaHeaders", metaHeaders)
<ide>
<add> hostname, term, err := ResolveRepositoryName(term)
<add> if err != nil {
<add> return job.Error(err)
<add> }
<add... | 1 |
Text | Text | fix typo `currentfeatures` to `concurrentfeatures` | 7e9f801b47225c692b6dc3d69c26dd2cfa0a760b | <ide><path>docs/advanced-features/react-18.md
<ide> React Server Components allow us to render everything, including the components
<ide>
<ide> ### Enable React Server Components (Alpha)
<ide>
<del>To use React Server Components, ensure you have React 18 installed. Then, turn on the `currentFeatures` and `serverCompo... | 1 |
Javascript | Javascript | remove un-needed contructor and function overrides | 6889e925b4ec361f2cfcac1d9bf8feb66c1fc0ab | <ide><path>src/js/big-play-button.js
<ide> import Component from './component.js';
<ide> */
<ide> class BigPlayButton extends Button {
<ide>
<del> constructor(player, options) {
<del> super(player, options);
<del> }
<del>
<ide> /**
<ide> * Allow sub components to stack CSS class names
<ide> *
<ide><path>... | 3 |
Javascript | Javascript | fix export mangling for unused default objects | 32ec03f2b2d72fb812923dd224fc0716e4f3ae6c | <ide><path>lib/optimize/MangleExportsPlugin.js
<ide> const mangleExportsInfo = (exportsInfo, canBeArray) => {
<ide> }
<ide> if (
<ide> exportInfo.exportsInfoOwned &&
<del> exportInfo.used === UsageState.OnlyPropertiesUsed
<add> (exportInfo.used === UsageState.OnlyPropertiesUsed ||
<add> exportInfo.used ==... | 1 |
Python | Python | apply reviewer nit | eae806ce8005b608a28debb12825e4b0b5ee374c | <ide><path>numpy/f2py/cfuncs.py
<ide> string_from_pyobj(string *str, int *len, const string inistr, PyObject *obj,
<ide> const char *errmess)
<ide> {
<del> PyArrayObject *arr = NULL;
<ide> PyObject *tmp = NULL;
<ide> string buf = NULL;
<ide> npy_intp n = -1;
<ide> buf = inistr;
... | 1 |
Go | Go | fix wrong variable name on blkio resources | 8784bd6fdeb7bd87fcbbdee884d42d1dca0c4cca | <ide><path>daemon/daemon_unix.go
<ide> func getBlkioWeightDevices(config containertypes.Resources) ([]specs.WeightDevic
<ide> weight := weightDevice.Weight
<ide> d := specs.WeightDevice{Weight: &weight}
<ide> d.Major = int64(stat.Rdev / 256)
<del> d.Major = int64(stat.Rdev % 256)
<add> d.Minor = int64(stat.Rdev... | 1 |
Java | Java | accept set<?> instead of set<object> (spr-6742) | 6fcca3cd939af78b83bc80cd295996df2d198b81 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/support/ConversionServiceFactoryBean.java
<ide> /*
<del> * Copyright 2002-2009 the original author or authors.
<add> * Copyright 2002-2010 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (th... | 3 |
Text | Text | fix typos in n-api | e0b1394cb00a6e4f5a5d4daca486f5bb64836e5a | <ide><path>doc/api/n-api.md
<ide> This API returns the C int32 primitive equivalent
<ide> of the given JavaScript Number. If the number exceeds the range of the
<ide> 32 bit integer, then the result is truncated to the equivalent of the
<ide> bottom 32 bits. This can result in a large positive number becoming
<del>a ne... | 1 |
Text | Text | improve definition of a collaborator | 52fe7626068c7110696104139a063942bdb3fd83 | <ide><path>GOVERNANCE.md
<ide> The [nodejs/node](https://github.com/nodejs/node) GitHub repository is
<ide> maintained by Collaborators who are added by the CTC on an ongoing basis.
<ide>
<ide> Individuals identified by the CTC as making significant and valuable
<del>contributions are made Collaborators and given comm... | 1 |
Javascript | Javascript | add example of directly calling $filter('orderby') | 4a57b1501e9f6d89e9b4d5a3fb328d7bd3193a54 | <ide><path>src/ng/filter/orderBy.js
<ide> </div>
<ide> </file>
<ide> </example>
<add> *
<add> * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the
<add> * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the
<add> * desired... | 1 |
Text | Text | fix inspectport documentation in cluster.md | a3365c6ae91953f404b4e030b9dfba872ce9c77d | <ide><path>doc/api/cluster.md
<ide> values are `"rr"` and `"none"`.
<ide> <!-- YAML
<ide> added: v0.7.1
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/14140
<add> description: The `inspectPort` option is supported now.
<ide> - version: v6.4.0
<ide> pr-url: https... | 1 |
Ruby | Ruby | tell brew doctor to ignore libtrapi.dylib | 8e68a9724de109fe08293c9d35f422d78caa341d | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_stray_dylibs
<ide> "libmacfuse_i64.2.dylib", # OSXFuse MacFuse compatibility layer
<ide> "libosxfuse_i32.2.dylib", # OSXFuse
<ide> "libosxfuse_i64.2.dylib", # OSXFuse
<add> "libTrAPI.dylib", # TrAPI
<ide> ]
<ide>
<ide> __check_stray_files... | 1 |
Ruby | Ruby | fix `serial?` with quoted sequence name | 684caf55038234374a17c1e010e8b18d2dc0c90f | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/column.rb
<ide> class PostgreSQLColumn < Column #:nodoc:
<ide> def serial?
<ide> return unless default_function
<ide>
<del> %r{\Anextval\('(?<table_name>.+)_#{name}_seq'::regclass\)\z} === default_function
<add> table_... | 2 |
Python | Python | add nested create for 1to1 reverse relationships | 72c04d570d167209f3f34d6d78492426f206b245 | <ide><path>rest_framework/serializers.py
<ide> def __init__(self, meta):
<ide> self.exclude = getattr(meta, 'exclude', ())
<ide>
<ide>
<del>class BaseSerializer(Field):
<add>class BaseSerializer(WritableField):
<ide> class Meta(object):
<ide> pass
<ide>
<ide> def restore_fields(self, data, files)... | 2 |
Python | Python | fix possible typo | 20f62e828b2ed100f7aa907b60880c8938593740 | <ide><path>tests/test_basic.py
<ide> def subdomain():
<ide>
<ide>
<ide> def test_exception_propagation():
<del> def apprunner(configkey):
<add> def apprunner(config_key):
<ide> app = flask.Flask(__name__)
<ide> app.config['LOGGER_HANDLER_POLICY'] = 'never'
<ide> | 1 |
Python | Python | remove dead code | cb491894776ab6c2d72d163b06a935db14ce8b86 | <ide><path>spacy/language.py
<ide> def end_training(self, path=None):
<ide> (ENT_TYPE, entity_type_freqs),
<ide> (HEAD, head_freqs)
<ide> ]))
<del>
<del> def get_defaults(self, path):
<del> return self.Defaults(self.lang, path) | 1 |
Ruby | Ruby | remove prefix option and add reason argument name | fb3bfbb65c75227abce523aa2446c3e8f390e3da | <ide><path>Library/Homebrew/formula.rb
<ide> def service(&block)
<ide> # the {Formula} will be built from source and `reason` will be printed.
<ide> #
<ide> # Alternatively, a preset reason can be passed as a symbol:
<del> # <pre>pour_bottle? :default_prefix_required</pre>
<del> # <pre>pour_bottle? :c... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.