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 http2 documentation | 3621889c800707f3ca720c8de5f05a798a1fe5a8 | <ide><path>doc/api/http2.md
<ide> support for HTTP/2 protocol features. It is specifically *not* designed for
<ide> compatibility with the existing [HTTP/1][] module API. However,
<ide> the [Compatibility API][] is.
<ide>
<add>The `http2` Core API is much more symmetric between client and server than the
<add>`http` A... | 1 |
Java | Java | improve tostring() for synthesized annotations | 2fd39839f83e8923277cb89bcff0b5dc5a18abfc | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/SynthesizedMergedAnnotationInvocationHandler.java
<ide> private String annotationToString() {
<ide> return string;
<ide> }
<ide>
<add> /**
<add> * This method currently does not address the following issues which we may
<add> * choose to add... | 2 |
Text | Text | add myself to contributors | 71710e2454bb0fceef400bf8c8bce9d8243af6b4 | <ide><path>.github/contributors/pickfire.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<... | 1 |
Python | Python | fix handling of kwargs in language.evaluate | 87ddbdc33e362336b060e0cb95f8adb008d5f29f | <ide><path>spacy/language.py
<ide> def evaluate(
<ide> kwargs = component_cfg.get(name, {})
<ide> kwargs.setdefault("batch_size", batch_size)
<ide> if not hasattr(pipe, "pipe"):
<del> docs = (pipe(doc, **kwargs) for doc in docs)
<add> docs = _pipe(pipe, ... | 1 |
Text | Text | fix russian description and add translation | 7ce8046792d2dbfe6a98ac8c2081bccffe58cc77 | <ide><path>guide/russian/c/file-handling/index.md
<ide> ---
<ide> title: File Handling
<del>localeTitle: Обработка файлов
<add>localeTitle: Работа с файлами
<ide> ---
<del>## Обработка файлов
<add>## Работа с файлами
<ide>
<ide> ### Введение
<ide>
<del>Если вы уже написали программу C `helloworld` , вы уже сделали фа... | 1 |
Javascript | Javascript | move helper functions to the bottom of the file | bf69fd92bbe4ed035f3ed7692ea2e20b282d9829 | <ide><path>src/tree-sitter-language-mode.js
<ide> const TextMateLanguageMode = require('./text-mate-language-mode')
<ide>
<ide> let nextId = 0
<ide> const MAX_RANGE = new Range(Point.ZERO, Point.INFINITY).freeze()
<del>
<del>/**
<del> * Return true iff `mouse` is smaller than `house`. Only correct if
<del> * mouse and... | 1 |
Ruby | Ruby | leave kegs keg-only if linking step fails | 765ae9618050e415c039edabce02671581c1ffb1 | <ide><path>Library/Homebrew/cmd/link.rb
<ide> def link
<ide> ARGV.kegs.each do |keg|
<ide> print "Linking #{keg}... "
<ide> puts if ARGV.verbose?
<del> begin
<del> puts "#{keg.link} symlinks created"
<del> rescue Exception
<del> puts
<del> raise
<del> end
<add> p... | 3 |
PHP | PHP | remove extra line | 54d2c6b8e38e90da7466fb5f306e1dbbe08a28e9 | <ide><path>tests/Queue/QueueWorkerTest.php
<ide> public function test_job_is_not_released_if_it_has_exceeded_max_attempts()
<ide> $e = new RuntimeException;
<ide>
<ide> $job = new WorkerFakeJob(function ($job) use ($e) {
<del>
<ide> // In normal use this would be incremented by being popped... | 1 |
Python | Python | remove base test that never run | cc6812d69d5dd0421e0b787cb7cde3c7e897275a | <ide><path>libcloud/test/backup/test_base.py
<del># Licensed to the Apache Software Foundation (ASF) under one or more
<del># contributor license agreements. See the NOTICE file distributed with
<del># this work for additional information regarding copyright ownership.
<del># The ASF licenses this file to You under th... | 2 |
Text | Text | update documentation links | 686d29b5d4e2dcb6709c16e31b79ecde90763156 | <ide><path>README.md
<ide> Redux co-maintainer [Mark Erikson](https://twitter.com/acemarke) has put togethe
<ide>
<ide> ## Documentation
<ide>
<del>- [Introduction](http://redux.js.org/introduction/index.html)
<del>- [Basics](http://redux.js.org/basics/index.html)
<del>- [Advanced](http://redux.js.org/advanced/index.... | 1 |
Ruby | Ruby | use rails default banner | 04eb5b6e3428a2db773303b339bc776767635aee | <ide><path>railties/lib/generator/base.rb
<ide> def self.source_root
<ide> end
<ide> end
<ide>
<add> protected
<add>
<add> # Use Rails default banner.
<add> #
<add> def self.banner
<add> "#{$0} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
<add> end
<add>
<ide> ... | 2 |
Text | Text | fix typo in n-api.md | fd54b10500724a7f59f448635f2ec96759495339 | <ide><path>doc/api/n-api.md
<ide> Taking the earlier example, adding calls to [`napi_open_handle_scope`][] and
<ide> is valid throughout the execution of the loop:
<ide>
<ide> ```C
<del>for (int i = 0; i < 1000000; i++) {napi_
<add>for (int i = 0; i < 1000000; i++) {
<ide> napi_handle_scope scope;
<ide> napi_statu... | 1 |
Go | Go | fix regression pulling linux images | 8437d0a3298abf8bf3632a2764b945956ece422f | <ide><path>distribution/pull_v2.go
<ide> func (p *v2Puller) pullSchema2(ctx context.Context, ref reference.Named, mfst *s
<ide> )
<ide>
<ide> // https://github.com/docker/docker/issues/24766 - Err on the side of caution,
<del> // explicitly blocking images intended for linux from the Windows daemon
<del> if runtime.... | 2 |
PHP | PHP | remove unneeded code from form class | 044443435ff79305afdda2efdbcb28994438768f | <ide><path>src/Form/Form.php
<ide> */
<ide> namespace Cake\Form;
<ide>
<del>use Cake\Event\Event;
<ide> use Cake\Event\EventDispatcherInterface;
<ide> use Cake\Event\EventDispatcherTrait;
<ide> use Cake\Event\EventListenerInterface;
<ide> use Cake\Event\EventManager;
<ide> use Cake\Form\Schema;
<del>use Cake\Validati... | 1 |
Javascript | Javascript | remove state dependency from frame creation | b59c7cfed0dfb9645b83696ef0bee67110cb9f25 | <ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js
<ide> import {
<ide> runTestInTestFrame
<ide> } from '../utils/frame.js';
<ide>
<del>const testWorker = createWorker('test-evaluator');
<del>const testTimeout = 5000;
<del>
<del>function* ExecuteChallengeSaga() {
<add>export function* execute... | 2 |
Javascript | Javascript | add msg validation to test-buffer-compare | 6af10907a2fd82ac9f1a159920815c69a76e17ee | <ide><path>test/parallel/test-buffer-compare.js
<ide> assert.strictEqual(Buffer.compare(Buffer.alloc(0), Buffer.alloc(0)), 0);
<ide> assert.strictEqual(Buffer.compare(Buffer.alloc(0), Buffer.alloc(1)), -1);
<ide> assert.strictEqual(Buffer.compare(Buffer.alloc(1), Buffer.alloc(0)), 1);
<ide>
<del>assert.throws(() => Bu... | 1 |
Python | Python | fix doc.to_utf8 on gpu | 6f3bb6f77cb3691281fde1f18a75038bb3a15890 | <ide><path>spacy/ml/_character_embed.py
<ide> def forward(model, docs, is_train):
<ide> # for the tip.
<ide> nCv = model.ops.xp.arange(nC)
<ide> for doc in docs:
<del> doc_ids = doc.to_utf8_array(nr_char=nC)
<add> doc_ids = model.ops.asarray(doc.to_utf8_array(nr_char=nC))
<ide> doc_vec... | 1 |
Mixed | Text | add a way to know when a resize occurs | 7ea36aead33d90803027d668a15d0f698fb3d4b2 | <ide><path>docs/01-Chart-Configuration.md
<ide> maintainAspectRatio | Boolean | true | Maintain the original canvas aspect ratio
<ide> events | Array[String] | `["mousemove", "mouseout", "click", "touchstart", "touchmove", "touchend"]` | Events that the chart should listen to for tooltips and hovering
<ide> onClick | F... | 3 |
PHP | PHP | remove unneeded else | 4a9249fe23be41850d5b0e23f19dce729e63f1d8 | <ide><path>src/Console/ConsoleOptionParser.php
<ide> public function parse($argv)
<ide> while (($token = array_shift($this->_tokens)) !== null) {
<ide> if (isset($this->_subcommands[$token])) {
<ide> continue;
<del> } elseif (substr($token, 0, 2) === '--') {
<add> ... | 19 |
Text | Text | add v3.10.0 to changelog | 24e4292d0720bdad45c84b5cb30f0e7ea6d391cd | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.10.0-beta.5 (April 29, 2019)
<add>### v3.10.0 (May 13, 2019)
<ide>
<add>- [#17836](https://github.com/emberjs/ember.js/pull/17836) [BREAKING] Explicitly drop support for Node 6
<add>- [#17719](https://github.com/emberjs/ember.js/pull/17719) / [#17745](... | 1 |
Ruby | Ruby | remove wrong usage for `arel_table` [ci skip] | 1536a2bddbd4b775dbc1916841c137140a29d71a | <ide><path>activerecord/lib/active_record/core.rb
<ide> def ===(object) # :nodoc:
<ide> end
<ide>
<ide> # Returns an instance of <tt>Arel::Table</tt> loaded with the current table name.
<del> #
<del> # class Post < ActiveRecord::Base
<del> # scope :published_and_commented, -> { publish... | 1 |
Python | Python | fix last element in hidden_states for xglm | 4b2774832d1d70ea03d85b2b93e42d7f328d5150 | <ide><path>src/transformers/models/xglm/modeling_flax_xglm.py
<ide> def __call__(
<ide> last_hidden_states = outputs[0]
<ide> last_hidden_states = self.layer_norm(last_hidden_states)
<ide>
<add> hidden_states = None
<add> if output_hidden_states:
<add> hidden_states = outputs[1... | 1 |
Go | Go | log error from unmountvolumes on cleanup | a20fea1823ccfb40d235607e8f7ce7ceff1b5afe | <ide><path>daemon/container.go
<ide> func (container *Container) cleanup() {
<ide> container.daemon.unregisterExecCommand(eConfig)
<ide> }
<ide>
<del> container.unmountVolumes(false)
<add> if err := container.unmountVolumes(false); err != nil {
<add> logrus.Warnf("%s cleanup: Failed to umount volumes: %v", contain... | 3 |
Javascript | Javascript | remove unnecessary string copies | 2ac0aff2839a75aecd2c0c0166ea26c317ef4438 | <ide><path>lib/path.js
<ide> const win32 = {
<ide> }
<ide> }
<ide> } else if (code === 47/*/*/ || code === 92/*\*/) {
<del> return path[0];
<add> // `path` contains just a path separator, exit early to avoid
<add> // unnecessary work
<add> return path;
<ide> }
<ide>
<ide> ... | 1 |
Text | Text | add amp docs to readme | 016c197b7f3dabedbc354fc73c794da34338ec08 | <ide><path>packages/next/README.md
<ide> - [One Level Lower](#one-level-lower)
<ide> - [Summary](#summary)
<ide> - [Browser support](#browser-support)
<add>- [AMP Support](#amp-support)
<ide> - [Static HTML export](#static-html-export)
<ide> - [Usage](#usage)
<ide> - [Copying custom files](#copying-custom-f... | 1 |
Text | Text | add activity theme | dcd7591c6e8b7035711b381a4f41c5cfafaa40d6 | <ide><path>docs/IntegrationWithExistingApps.md
<ide> public class MyReactActivity extends Activity implements DefaultHardwareBackBtnH
<ide> }
<ide> }
<ide> ```
<add>We need set the theme of `MyReactActivity` to `Theme.AppCompat.Light.NoActionBar` beause some components rely on this theme.
<add>```xml
<add><activity... | 1 |
Python | Python | add changes to run tests again | 9f6c1cc11f58cb6ce48e188b6457c2ab5f2e8515 | <ide><path>numpy/core/_add_newdocs.py
<ide>
<ide> See Also
<ide> --------
<del> vectorize : evaluates pyfunc over input arrays using broadcasting rules of numpy
<add> vectorize : Evaluates pyfunc over input arrays using broadcasting rules of numpy.
<ide>
<ide> Notes
<ide> ----- | 1 |
Ruby | Ruby | fix url connections for sqlite3 | fbb79b517f3127ba620fedd01849f9628b78d6ce | <ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb
<ide> def connection_url_to_hash(url) # :nodoc:
<ide> config = URI.parse url
<ide> adapter = config.scheme
<ide> adapter = "postgresql" if adapter == "postgres"
<add>
<add> database = if adap... | 2 |
Ruby | Ruby | mark some methods as protected | bdece49b05d4fdf5bfec1ad71ca6232e43ddb4ab | <ide><path>Library/Homebrew/version.rb
<ide> def to_s
<ide> @elem.to_s
<ide> end
<ide>
<add> protected
<add>
<add> attr_reader :elem
<add>
<ide> def string?
<del> @elem.is_a? String
<add> elem.is_a? String
<ide> end
<ide>
<ide> def numeric?
<del> @elem.is_a? Numeric
<add> elem.is_a? Numeric
... | 1 |
Javascript | Javascript | keep track of openedpath when relativizing | 0c839a91fb0bbae547647aaec94916eefbe71a1a | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> // Returns a {Promise} which resolves to the relative {String} path.
<ide> relativizeToWorkingDirectory (_path) {
<ide> return this.getRepo()
<del> .then(repo => this.relativize(_path, repo.workdir()))
<add> .... | 1 |
PHP | PHP | fix missed use of version | 6d3ae3b83cc0ad7f2551ad4d35819cb56129cb30 | <ide><path>lib/Cake/Test/Case/Event/CakeEventManagerTest.php
<ide> public function testDispatchWithKeyName() {
<ide> */
<ide> public function testDispatchReturnValue() {
<ide> $this->skipIf(
<del> version_compare(PHPUnit_Runner_Version::VERSION, '3.7', '<'),
<add> version_compare(PHPUnit_Runner_Version::id(), '... | 1 |
Javascript | Javascript | increase disconnect timeout | 751f058f3095e5c9487925a92ee7cbdd15d043ba | <ide><path>karma-shared.conf.js
<ide> module.exports = function(config, specificOptions) {
<ide> logLevel: config.LOG_INFO,
<ide> logColors: true,
<ide> browsers: ['Chrome'],
<del> browserDisconnectTimeout: 5000,
<add> browserDisconnectTimeout: 10000,
<ide>
<ide>
<ide> // config for Travis CI | 1 |
Javascript | Javascript | add optional name prop to rntester example | 66615171620f626953e9f93c94fcb2ecb40381c3 | <ide><path>packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js
<ide> module.exports = ([
<ide> },
<ide> },
<ide> {
<add> name: 'maxLength',
<ide> title: "Live Re-Write (<sp> -> '_') + maxLength",
<ide> render: function(): React.Node {
<ide> return <RewriteExample />;
<ide> mod... | 2 |
Go | Go | add samehostdaemon req | 8a9878081f8e14a54067f249bc98ae66f0b61ba3 | <ide><path>integration-cli/docker_api_ipcmode_test.go
<ide> func (s *DockerSuite) TestAPIIpcModeNone(c *check.C) {
<ide> * such pair on the host.
<ide> */
<ide> func (s *DockerSuite) TestAPIIpcModePrivate(c *check.C) {
<del> testRequires(c, DaemonIsLinux)
<add> testRequires(c, DaemonIsLinux, SameHostDaemon)
<ide> te... | 2 |
Ruby | Ruby | call the class method to define the callbacks | 0af978d33489c3ab54084c26d1354837b16f0cf5 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def has_and_belongs_to_many1(name, scope = nil, options = {}, &extension)
<ide> middle_options)
<ide> middle_reflection = hm_builder.build self
<ide>
<del> hm_builder.define_callbacks sel... | 1 |
Javascript | Javascript | move array internals to ember-metal | 27de208c87685aa3ea4e51ac967d23da15e0181c | <ide><path>packages/ember-extension-support/lib/data_adapter.js
<ide> import { getOwner } from 'ember-utils';
<del>import { get, run, objectAt } from 'ember-metal';
<add>import {
<add> get,
<add> run,
<add> objectAt,
<add> addArrayObserver,
<add> removeArrayObserver
<add>} from 'ember-metal';
<ide> import {
<ide> ... | 8 |
Java | Java | return handlerresult in handleradapter#handle() | 9516c9992f4ed53bbb0be801bed31b6280eaff8c | <ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
<ide> public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse resp
<ide> }
<ide>
<ide> HandlerAdapter handlerAdapter = getHandlerAdapter(handler);
<del> Publisher<HandlerResult> result... | 8 |
Python | Python | use best pickle protocol | f825fc1a1fbda86a6a9a8c4d70ff02bd5d81f0ff | <ide><path>celery/worker/state.py
<ide>
<ide> from collections import defaultdict
<ide>
<add>from kombu.serialization import pickle_protocol
<ide> from kombu.utils import cached_property
<ide>
<ide> from celery import __version__
<ide> class Persistent(object):
<ide>
<ide> """
<ide> storage = shelve
<add> ... | 1 |
Text | Text | add date to changelog | d78460490be08435ee50025ea792ec4d5a5a999e | <ide><path>CHANGELOG.md
<del>## 18.1.0 (TODO)
<add>## 18.1.0 (April 26, 2022)
<ide>
<ide> ### React DOM
<ide> | 1 |
Text | Text | add styleguide for specs | 0f43b246b4ef5c1759c81440e8b0b2abbf9230d3 | <ide><path>CONTRIBUTING.md
<ide> For more information on how to work with Atom's official packages, see
<ide> [JavaScript](https://github.com/styleguide/javascript),
<ide> and [CSS](https://github.com/styleguide/css) styleguides.
<ide> * Include thoughtfully-worded, well-structured
<del> [Jasmine](http://jasmine.g... | 1 |
Mixed | Ruby | avoid double cast in types that only override cast | 28ebf3c81c1cf083cc920822157d63e7b480ee93 | <ide><path>activemodel/CHANGELOG.md
<add>* Custom attribute types that inherit from Active Model built-in types and do
<add> not override the `serialize` method will now benefit from an optimization
<add> when serializing attribute values for the database.
<add>
<add> For example, with a custom type like the... | 22 |
Javascript | Javascript | add direct anchors for error codes | c3d26e801a40e1595b859df1d7730cfe526edc45 | <ide><path>tools/doc/html.js
<ide> function getSection(lexed) {
<ide> return '';
<ide> }
<ide>
<add>function getMark(anchor) {
<add> return `<span><a class="mark" href="#${anchor}" id="${anchor}">#</a></span>`;
<add>}
<ide>
<ide> function buildToc(lexed, filename, cb) {
<ide> var toc = [];
<ide> function buildTo... | 1 |
Text | Text | add note about ajax and csrf-token [ci skip] | f7d81c924fd498ae6fd1852070db0553a10b0c41 | <ide><path>guides/source/security.md
<ide> Or the attacker places the code into the onmouseover event handler of an image:
<ide> <img src="http://www.harmless.com/img" width="400" height="400" onmouseover="..." />
<ide> ```
<ide>
<del>There are many other possibilities, like using a `<script>` tag to make a cross-site... | 1 |
PHP | PHP | add test for app fixtures | 8b4f12e73571027e2325245b7c9c31bb4ee7bcf3 | <ide><path>tests/TestCase/TestSuite/Fixture/FixtureHelperTest.php
<ide> use Cake\TestSuite\Fixture\TestFixture;
<ide> use Cake\TestSuite\TestCase;
<ide> use Company\TestPluginThree\Test\Fixture\ArticlesFixture as CompanyArticlesFixture;
<add>use TestApp\Test\Fixture\ArticlesFixture as AppArticlesFixture;
<ide> use Test... | 1 |
PHP | PHP | fix mistake with previous commit | 23c5805763e3603966f6876a77f1418cc57b16de | <ide><path>lib/Cake/Model/Datasource/Database/Postgres.php
<ide> public function truncate($table, $reset = false) {
<ide> if (isset($this->_sequenceMap[$table]) && $reset != true) {
<ide> foreach ($this->_sequenceMap[$table] as $sequence) {
<ide> $quoted = $this->name($sequence);
<del> $this->_execute("... | 1 |
PHP | PHP | add test for implicit binding | b4de11725cc1e4157938864961deeaa889b54d46 | <ide><path>tests/Routing/ImplicitRouteBindingTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Routing;
<add>
<add>use Illuminate\Container\Container;
<add>use Illuminate\Database\Eloquent\Model;
<add>use Illuminate\Routing\ImplicitRouteBinding;
<add>use Illuminate\Routing\Route;
<add>use PHPUnit\Framework\Test... | 1 |
Python | Python | fix all pydocstyle lint errors | 449f371743acc6ee7883cc1842a3a2034fa4cbd5 | <ide><path>celery/app/control.py
<ide> def election(self, id, topic, action=None, connection=None):
<ide>
<ide> def revoke(self, task_id, destination=None, terminate=False,
<ide> signal=TERM_SIGNAME, **kwargs):
<del> """Tell all (or specific) workers to revoke a task by id
<del> (or li... | 1 |
Python | Python | add log output to crashes | a4b4854e2ff0f3de69caa5e46d001575b9e22273 | <ide><path>tools/test.py
<ide> def HasRun(self, output):
<ide>
<ide> if output.HasCrashed():
<ide> self.severity = 'crashed'
<del> exit_code = output.output.exit_code
<del> self.traceback = "oh no!\nexit code: " + PrintCrashed(exit_code)
<ide>
<del> if output.HasTimedOut():
<add> ... | 1 |
Python | Python | remove print statement from test | 9ed65915e66c124bd02f722c6b213293804f7264 | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_empty(self):
<ide> b = empty(len(a), dtype=datatype)
<ide> assert_equal(b.shape, a.shape)
<ide> assert_equal(b.fill_value, a.fill_value)
<del> print "test_empty passed!"
<ide>
<ide>
<ide> #............................................... | 1 |
Javascript | Javascript | add ie-specific 'unselectable' attribute | a0265fe8b71a841b82111918407799e42e668d67 | <ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> itemID: MUST_USE_ATTRIBUTE,
<ide> itemRef: MUST_USE_ATTRIBUTE,
<ide> // property is supported for OpenGraph in meta tags.
<del> property: null
<add> property: null,
<add> // IE-only attribute that contr... | 1 |
PHP | PHP | assert proper array access for _datetimeselected() | eb13242680731f8c1cf82786670f5fe40d06f6f3 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function minute($fieldName, $attributes = array()) {
<ide> */
<ide> protected function _dateTimeSelected($select, $fieldName, $attributes) {
<ide> if ((empty($attributes['value']) || $attributes['value'] === true) && $value = $this->value($fieldName)) {
<d... | 1 |
PHP | PHP | add conditional methods to dispatchable traits | 174c234b2d7e5108db1395ad5b681e50e0a7794d | <ide><path>src/Illuminate/Foundation/Bus/Dispatchable.php
<ide> public static function dispatch()
<ide> return new PendingDispatch(new static(...func_get_args()));
<ide> }
<ide>
<add> /**
<add> * Dispatch the job with the given arguments if the given truth test passes.
<add> *
<add> * @param... | 2 |
Ruby | Ruby | switch fcgi handler over to rack | 926844e869b747fa1e9474fd95f9b97fa04ae092 | <ide><path>railties/lib/fcgi_handler.rb
<ide> def process_request(cgi)
<ide>
<ide> with_signal_handler 'USR1' do
<ide> begin
<del> Dispatcher.dispatch(cgi)
<add> ::Rack::Handler::FastCGI.serve(cgi, Dispatcher.new)
<ide> rescue SignalException, SystemExit
<ide> raise
<i... | 1 |
Text | Text | add v4.8.0-beta.5 to changelog | 81c10c76d5f074d9113a921e1117c290bda21fe9 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.8.0-beta.5 (October 3, 2022)
<add>
<add>- [#20212](https://github.com/emberjs/ember.js/pull/20212) [BUGFIX] Remove incorrect exports from preview routing types
<add>
<ide> ### v4.8.0-beta.4 (September 26, 2022)
<ide>
<ide> - [#20201](https://github.com... | 1 |
PHP | PHP | apply suggestions from code review | b292276fc336688f695b2bc9cac79fd44146b34f | <ide><path>src/Core/ServiceProvider.php
<ide> public function getContainer(): PsrContainerInterface
<ide> /**
<ide> * Delegate to the bootstrap() method
<ide> *
<del> * This method primarily exists as a shim between the interface
<del> * that league/container has and the one we want to offer in Ca... | 1 |
Ruby | Ruby | localize dependencycollector monkey-patches too | ad0f9d603f5b04cb0c4e9d75fab36f4118bff942 | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> def with_monkey_patch
<ide> define_method(:method_missing) { |*| }
<ide> end
<ide>
<add> DependencyCollector.class_eval do
<add> if method_defined?(:parse_symbol_spec)
<add> alias_method :old_parse_symbol_spec, :parse_symbol_spec
<add> end
<add> ... | 1 |
Python | Python | set version to v2.2.0.dev15 | eba708404dc2743cca691a4339410d551d0a839f | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev14"
<add>__version__ = "2.2.0.dev15"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion" | 1 |
Text | Text | add missing space in migrations guide [ci skip] | 32d0d971ebcd74fdfc7dcc580b58d3292778b4d4 | <ide><path>guides/source/active_record_migrations.md
<ide> As always, what has been generated for you is just a starting point. You can add
<ide> or remove from it as you see fit by editing the
<ide> `db/migrate/YYYYMMDDHHMMSS_add_details_to_products.rb` file.
<ide>
<del>Also, the generator accepts column type as `ref... | 1 |
Go | Go | remove unused commandlinetoargv | bd2e288e56ebf50c9038f3069d07a5e3085030f1 | <ide><path>pkg/system/syscall_unix.go
<ide> import "golang.org/x/sys/unix"
<ide> func Unmount(dest string) error {
<ide> return unix.Unmount(dest, 0)
<ide> }
<del>
<del>// CommandLineToArgv should not be used on Unix.
<del>// It simply returns commandLine in the only element in the returned array.
<del>func CommandLin... | 2 |
Text | Text | remove reference to travis bot | 95fc1e41b95f981f926a2b351374af1eb2bc8e2a | <ide><path>docs/Cask-Cookbook.md
<ide> cask "<cask-token>" do
<ide> [`<cask-token>`](#token-reference) should match the Cask filename, without the `.rb` extension,
<ide> enclosed in single quotes.
<ide>
<del>There are currently some arbitrary limitations on Cask tokens which are in the process of being removed. The Tr... | 1 |
Javascript | Javascript | fix compiler logging test | b89853ea12534c8ce8b74fa4ea3f89e01cfb4f9a | <ide><path>test/Compiler.test.js
<ide> const path = require("path");
<ide> const webpack = require("../");
<ide> const WebpackOptionsDefaulter = require("../lib/WebpackOptionsDefaulter");
<ide> const MemoryFs = require("memory-fs");
<add>const captureStdio = require("./helpers/captureStdio");
<ide>
<ide> describe("Com... | 1 |
Javascript | Javascript | eliminate context code based on process.browser | 7ebcc5bec9d0da258311a12634e16b3479f13b44 | <ide><path>build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i
<ide> // required not to cache removed files
<ide> useHashIndex: false
<ide> }),
<add> // Removes server/client code by minifier
<add> new webpack.DefinePlugin({
<add> ... | 3 |
Python | Python | make pyflakes fixes in numpy/f2py | b80d1f979efb528e855263a38b389cebd3eb90e1 | <ide><path>numpy/f2py/__init__.py
<ide> #!/usr/bin/env python
<add>"""Fortran to Python Interface Generator.
<add>
<add>"""
<ide> from __future__ import division, absolute_import, print_function
<ide>
<ide> __all__ = ['run_main', 'compile', 'f2py_testing']
<ide>
<del>import os
<ide> import sys
<del>import subprocess
... | 12 |
Go | Go | fix flaky testservicewithdefaultaddresspoolinit | f3a3ea0d3c7f4d4da035db871d3c8a8bbb51371f | <ide><path>integration/network/service_test.go
<ide> func TestServiceWithPredefinedNetwork(t *testing.T) {
<ide> swarm.ServiceWithNetwork(hostName),
<ide> )
<ide>
<del> poll.WaitOn(t, serviceRunningCount(c, serviceID, instances), swarm.ServicePoll)
<add> poll.WaitOn(t, swarm.RunningTasksCount(c, serviceID, instance... | 1 |
PHP | PHP | remove parenthesis around sql identifiers | 52608e2d51e2cdf05225131335dc48cc9b1f09b6 | <ide><path>src/Database/Expression/ComparisonExpression.php
<ide> public function sql(ValueBinder $binder): string
<ide> $field = $field->sql($binder);
<ide> }
<ide>
<del> if ($this->_value instanceof ExpressionInterface) {
<add> if ($this->_value instanceof IdentifierExpression) {
<a... | 4 |
Text | Text | fix old broken links and update for new repo | af17a4460ef4a77de663ba45f94c8b65a3646f20 | <ide><path>CONTRIBUTING.md
<ide> Contributions to Chart.js are welcome and encouraged, but please have a look thr
<ide> Using issues
<ide> ------------
<ide>
<del>The [issue tracker](https://github.com/nnnick/Chart.js/issues) is the preferred channel for reporting bugs, requesting new features and submitting pull requ... | 1 |
Ruby | Ruby | make cache directory for clean file | ea0fca9511222976047f444ea8038d104b921632 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def clean!
<ide> cleanup_old_cache_db
<ide> rm_ds_store
<ide> prune_prefix_symlinks_and_directories
<add> HOMEBREW_CACHE.mkpath
<ide> FileUtils.touch PERIODIC_CLEAN_FILE
<ide> else
<ide> args.each do |arg| | 1 |
Go | Go | remove redundant warning | a8250a0b20006bae669f9d127eaf00d4284e1d9f | <ide><path>pkg/sysinfo/sysinfo.go
<ide> func New(quiet bool) *SysInfo {
<ide> }
<ide> } else {
<ide> _, err := ioutil.ReadFile(path.Join(cgroupCpuMountpoint, "cpu.cfs_period_us"))
<del> logrus.Warnf("%s", cgroupCpuMountpoint)
<ide> sysInfo.CpuCfsPeriod = err == nil
<ide> if !sysInfo.CpuCfsPeriod && !quiet {
<... | 1 |
Text | Text | use relative links | d5535bf564e70ab1c0199a5c18fa842e8b499209 | <ide><path>share/doc/homebrew/Acceptable-Formulae.md
<ide> own!
<ide>
<ide> ### We try hard to avoid dupes in Homebrew/homebrew
<ide> Stuff that comes with OS X or libraries that are provided by
<del>[RubyGems, CPAN or PyPi](https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Gems,-Eggs-and-Perl-Module... | 3 |
Python | Python | use pathlib.path instead of os.path | a035ebd32aad197908312ad4bebed4726855ee63 | <ide><path>spacy/link.py
<ide> import pip
<ide> import site
<ide> import plac
<add>from pathlib import Path
<ide> from . import util
<ide>
<ide>
<ide> def link(origin, link_name, force=False):
<ide> either the name of a pip package, or the local path to the model data
<ide> directory. Linking models allows lo... | 1 |
Python | Python | fix imports in conversion scripts | 053efc5d2d2e87833e9b7290a0dd83fa77cd6ae8 | <ide><path>src/transformers/models/albert/convert_albert_original_tf_checkpoint_to_pytorch.py
<ide>
<ide> import torch
<ide>
<del>from ...utils import logging
<del>from . import AlbertConfig, AlbertForPreTraining, load_tf_weights_in_albert
<add>from transformers import AlbertConfig, AlbertForPreTraining, load_tf_weig... | 28 |
Java | Java | improve empty body check | 4560dc2818ae1d5e1bc5ceef89f1b6870700eb1f | <ide><path>spring-web/src/main/java/org/springframework/web/client/MessageBodyClientHttpResponseWrapper.java
<ide> /*
<del> * Copyright 2002-2017 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");
... | 3 |
Go | Go | update getexternaladdress to prefer ipv4 | f845b98ca675c9e848a27f135eac9cd31aac78e5 | <ide><path>integration/container/nat_test.go
<ide> func TestNetworkNat(t *testing.T) {
<ide> startServerContainer(t, msg, 8080)
<ide>
<ide> endpoint := getExternalAddress(t)
<del> conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", endpoint.String(), 8080))
<add> conn, err := net.Dial("tcp", net.JoinHostPort(endpoint.... | 1 |
Ruby | Ruby | remove extra test case | db03f13255bae7312e661c9bed56be4709fd51f8 | <ide><path>activesupport/test/clean_backtrace_test.rb
<ide> def setup
<ide> @bc.add_filter { |line| line.gsub("/my/prefix", '') }
<ide> end
<ide>
<del> test "backtrace should not contain prefix when it has been filtered out" do
<del> assert_equal "/my/class.rb", @bc.clean([ "/my/prefix/my/class.rb" ]).first
... | 1 |
Javascript | Javascript | remove invalid comma from animated example | 11985d5c7721b0f9c9f46a04515799db0eeb44eb | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> var event = function(
<ide> * componentDidMount() {
<ide> * Animated.timing( // Uses easing functions
<ide> * this.state.fadeAnim, // The value to drive
<del> * {toValue: 1}, // Configuration
<add> * ... | 1 |
Javascript | Javascript | fix formatting of custom usage field | 828ad89e8aa194a1b8a10bec9e03ebc8506b0cb2 | <ide><path>src/ng/directive/ngSwitch.js
<ide> * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
<ide> *
<ide> * @usage
<add> *
<add> * ```
<ide> * <ANY ng-switch="expression">
<ide> * <ANY ng-switch-when="matchValue1">...</ANY>
<ide> * <ANY ... | 1 |
Javascript | Javascript | move securepair stuff into tls.js | 0b0faceb198c68669d078f00ebda0d80c3793866 | <ide><path>lib/crypto.js
<ide> exports.Verify = Verify;
<ide> exports.createVerify = function(algorithm) {
<ide> return (new Verify).init(algorithm);
<ide> };
<del>
<del>
<del>var securepair = require('securepair');
<del>exports.createPair = securepair.createSecurePair;
<ide><path>lib/securepair.js
<del>var util = re... | 5 |
Javascript | Javascript | fix typo on example code | c6495531fbbcf9e8d0c287b717c0eb925691075b | <ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
<ide> var DRAWER_STATES = [
<ide> * drawerWidth={300}
<ide> * drawerPosition={DrawerLayoutAndroid.positions.Left}
<ide> * renderNavigationView={() => navigationView}>
<del> * <Text style={{10, fontSize: 15, textAlign... | 1 |
Text | Text | use json to render code block | 2590bad75fd6730da7a0800d376bc8ccc519f83d | <ide><path>docs/your-first-package.md
<ide> its not there! To fix this open _package.json_ and find the property called
<ide> delay a package's activation until it's needed. So add the `ascii-art:convert`
<ide> to the activationEvents array:
<ide>
<del>```coffeescript
<add>```json
<ide> "activationEvents": ["ascii-art... | 1 |
Javascript | Javascript | deliver enoent on nexttick | 40d5e9074a0001d53901df2a2e081c8821b3dc22 | <ide><path>lib/child_process.js
<ide> ChildProcess.prototype.spawn = function(options) {
<ide>
<ide> var err = this._handle.spawn(options);
<ide>
<del> if (err) {
<add> if (!constants)
<add> constants = process.binding('constants');
<add>
<add> if (-err == constants.ENOENT) {
<add> process.nextTick(functio... | 1 |
Text | Text | remove redundant name attribute | 016819028131a40f15fa333c65b6177cfd561a03 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad1cafcde010995e15306.md
<ide> You should not give any of the `fieldset` elements a `name` attribute.
<ide> <fieldset>
<ide> <label for="personal-account"><input id="personal-account" t... | 23 |
Ruby | Ruby | remove malware caveat | 55084dd8abdd566817d24aaf16729a488a7f7a9e | <ide><path>Library/Homebrew/cask/dsl/caveats.rb
<ide> def eval_caveats(&block)
<ide> #{web_page}
<ide> EOS
<ide> end
<del>
<del> caveat :malware do |radar_number|
<del> <<~EOS
<del> #{@cask} has been reported to bundle malware. Like with any app, use at your own risk.
<del... | 1 |
Ruby | Ruby | build formula options better | 42681b51f83193f0fb9c178c85e2d1b17926ebd2 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def effective_build_options_for(dependent, inherited_options = [])
<ide> args = dependent.build.used_options
<ide> args |= dependent == formula ? options : inherited_options
<ide> args |= Tab.for_formula(dependent).used_options
<add> args &= depende... | 1 |
Ruby | Ruby | avoid skip in test, have a unified test for order | 90c450f6cd792187eeb1e039e0ff3722beb8b5c1 | <ide><path>activemodel/test/cases/serializers/json_serialization_test.rb
<ide> def @contact.favorite_quote; "Constraints are liberating"; end
<ide> end
<ide> end
<ide>
<del> test "as_json should keep the MRI default order in the hash" do
<del> skip "on JRuby as order is different" if defined? JRUBY_VERSION
<... | 1 |
Java | Java | reduce log level to debug when @tels isn't present | 5710cf5ed29139e94853f3d14124eb100a924b82 | <ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextManager.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ma... | 1 |
Python | Python | add a flag to control the number of train examples | 1c89b792ccdb53dd0cc2504f3bce502e5f0aa4e5 | <ide><path>official/nlp/bert/input_pipeline.py
<ide> def decode_record(record, name_to_features):
<ide> return example
<ide>
<ide>
<del>def single_file_dataset(input_file, name_to_features):
<add>def single_file_dataset(input_file, name_to_features, num_samples=None):
<ide> """Creates a single-file dataset to be ... | 2 |
Ruby | Ruby | pass --trace and named args to rake | 86bd9c9f39fbe4aa88791f3973d41b26ac37e036 | <ide><path>Library/Homebrew/cmd/tests.rb
<ide> def tests
<ide> ENV["TESTOPTS"] = "-v" if ARGV.verbose?
<ide> ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage"
<ide> ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
<add>
<ide> Homebrew.install_gem_setup_path! "bundl... | 1 |
Python | Python | update affected tests | 37ed7e59e4a549b8abc6d4e7f08838b597420c63 | <ide><path>libcloud/test/common/test_aws.py
<del>import mock
<add>import sys
<add>import unittest
<ide> from datetime import datetime
<ide>
<del>from libcloud.common.aws import V4SignedAWSConnection
<add>import mock
<add>
<add>from libcloud.common.aws import SignedAWSConnection
<add>from libcloud.common.aws import AWS... | 1 |
Javascript | Javascript | fix typo for messaging test in webview example | 577fd0cbb930c055d27e24555160143c321ec6dc | <ide><path>Examples/UIExplorer/js/WebViewExample.js
<ide> exports.examples = [
<ide> }
<ide> },
<ide> {
<del> title: 'Mesaging Test',
<add> title: 'Messaging Test',
<ide> render(): ReactElement<any> { return <MessagingTest />; }
<ide> },
<ide> { | 1 |
Go | Go | fix stdout premature eof | 5572dbb7504c951f4ddd2710a4037844a95caa6a | <ide><path>daemon/attach.go
<ide> func (daemon *Daemon) ContainerAttach(job *engine.Job) engine.Status {
<ide> var (
<ide> cStdin io.ReadCloser
<ide> cStdout, cStderr io.Writer
<del> cStdinCloser io.Closer
<ide> )
<ide>
<ide> if stdin {
<ide> func (daemon *Daemon) ContainerAttach(job *engin... | 3 |
Java | Java | remove junit dependency from headerresultmatchers | 233b225b4fcb628e0a15c18f94941e2bdd5c6af2 | <ide><path>spring-test/src/main/java/org/springframework/test/util/AssertionErrors.java
<ide> /*
<del> * Copyright 2002-2017 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 may not ... | 2 |
Mixed | Python | update augmenter lookups and docs | a103ab5f1a038ccbd668e5e33d0bee2dabd75b4e | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> E201 = ("Span index out of range.")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<add> E912 = ("No orth_variants lookups table for data augmentation available for "
<add> "language '{lang}'. If orth_variants are available... | 6 |
Text | Text | fix typo in docs | 81756675c59751410ae89f88d113b77146c2fc26 | <ide><path>research/deeplab/README.md
<ide> work:
<ide> }
<ide> ```
<ide>
<del>
<ide> In the current implementation, we support adopting the following network
<ide> backbones:
<ide>
<ide> 1. MobileNetv2 [8]: A fast network structure designed for mobile devices. **We
<del>will provide MobileNetv2 support in the next ... | 2 |
Javascript | Javascript | remove setupdevtools file | 5dade01ca6389ea5745c696478943ece11be11dc | <ide><path>Libraries/Core/Devtools/setupDevtools.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow
<del> */
<del>
<del>... | 3 |
Javascript | Javascript | fix reference error when tagging a release | 55a115179e4717f10f25301a1b86fbc6cfd21de2 | <ide><path>gulpfile.js
<ide> gulp.task('bump', function(complete){
<ide> });
<ide>
<ide> gulp.task('release', ['build'], function(){
<del> exec('git tag -a v' + newVersion);
<add> exec('git tag -a v' + package.version);
<ide> });
<ide>
<ide> gulp.task('jshint', function(){ | 1 |
Ruby | Ruby | use admin group and not staff | 98ec342ecc597d0bb2806fbd2a5fafb796caf8ed | <ide><path>install_homebrew.rb
<ide> def macos_version
<ide> abort "MacOS too old, see: https://gist.github.com/1144389" if macos_version < 10.5
<ide> abort "/usr/local/.git already exists!" unless Dir["/usr/local/.git/*"].empty?
<ide> abort "Don't run this as root!" if Process.uid == 0
<del>abort <<-EOABORT unless `gr... | 1 |
PHP | PHP | update env var check | 34ea1e41c5b684929034f2776326a62cb4b7dc28 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testEagerLoadOrderAndSubquery()
<ide> public function testFormatResultsMemoryLeak()
<ide> {
<ide> $this->loadFixtures('Articles', 'Authors', 'Tags', 'ArticlesTags');
<del> $this->skipIf(env('CODECOVERAGE') === 1, 'Running... | 2 |
Ruby | Ruby | remove warning of shadowing outer local variable | 86f287e6cfc4181447d936d0d1c0336d944e7327 | <ide><path>actionview/lib/action_view/helpers/url_helper.rb
<ide> def button_to(name = nil, options = nil, html_options = nil, &block)
<ide>
<ide> inner_tags = method_tag.safe_concat(button).safe_concat(request_token_tag)
<ide> if params
<del> params.each do |name, value|
<del> inne... | 1 |
Java | Java | add host property in httpserversupport | c6ed12297f284ef8b7385683fe40e1faf4d0ef95 | <ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/HttpServer.java
<ide> */
<ide> public interface HttpServer extends InitializingBean, Lifecycle {
<ide>
<add> void setHost(String host);
<add>
<ide> void setPort(int port);
<ide>
<ide> void setHandler(HttpHandler handler);
<i... | 7 |
Go | Go | fix typo in builder | 979db00d9af4741572ece9c67061526d5d4a6616 | <ide><path>builder.go
<ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
<ide> config = &Config{}
<ide>
<ide> break
<del> case "mainainer":
<add> case "maintainer":
<ide> fmt.Fprintf(stdout, "MAINTAINER %s\n", arguments)
<ide> maintainer = arguments
<ide> break | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.