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 | add rules on field order | 8604799f1a320850ac564935265f414f93598599 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit
<ide> class FormulaText
<ide> def initialize path
<ide> @text = path.open("rb", &:read)
<add> @lines = @text.lines
<ide> end
<ide>
<ide> def without_patch
<ide> def has_trailing_newline?
<ide> def =~ regex
<ide> regex =~ @text
<ide> end
<add... | 1 |
Python | Python | fix default labels for parser and ner | 0e2bedc373f16e45c955c9cf30a1219e884a3769 | <ide><path>spacy/language.py
<ide> def Pipeline(self, nlp, **cfg):
<ide>
<ide> tokenizer_exceptions = {}
<ide>
<del> parser_labels = {0: {'ROOT': True}}
<add> parser_labels = {0: {'': True}, 1: {'': True}, 2: {'ROOT': True, 'nmod': True},
<add> 3: {'ROOT': True, 'nmod': True}, 4: ... | 1 |
Text | Text | update doc for @zeit/next-stylus | b393833aeab99647fc9851981b2156c497927206 | <ide><path>readme.md
<ide> export default () => <p style={{ color: 'red' }}>hi there</p>
<ide>
<ide> To use more sophisticated CSS-in-JS solutions, you typically have to implement style flushing for server-side rendering. We enable this by allowing you to define your own [custom `<Document>`](#user-content-custom-docu... | 1 |
Text | Text | update korean translation to 0185c68 | 57f14017fb7443b4c02c03a938837fb2634d1c98 | <ide><path>docs/docs/01-why-react.ko-KR.md
<ide> React는 페이스북과 인스타그램에서 사용자 인터페이스를 구
<ide>
<ide> 우리는 단 하나의 문제를 해결하기 위해 React를 만들었습니다: **지속해서 데이터가 변화하는 대규모 애플리케이션을 구축하기.** 이 문제를 해결하기 위해, React는 두가지 컨셉을 도입했습니다.
<ide>
<del>### 단순함
<add>## 단순함
<ide>
<ide> 당신의 애플리케이션이 특정 시점에 어떻게 보여야 할지를 단순히 표현하는 것만으로, 데이터가 변할 때 React는 자동으로... | 6 |
Javascript | Javascript | forget window when it gets closed | 3b4c1015cc2674676dbc340cfbafc3a437614fc6 | <add><path>spec/main-process/file-recovery-service.spec.js
<del><path>spec/browser/file-recovery-service.spec.js
<ide> 'use babel'
<ide>
<del>import FileRecoveryService from '../../src/browser/file-recovery-service'
<add>import {BrowserWindow} from 'electron'
<add>import FileRecoveryService from '../../src/main-proces... | 2 |
Java | Java | fix typo in disposablehelper | b7f81d2a1fb37e7cdd7e72b34c032a186cf01dbc | <ide><path>src/main/java/io/reactivex/internal/disposables/DisposableHelper.java
<ide> public static boolean replace(AtomicReference<Disposable> field, Disposable d) {
<ide> /**
<ide> * Atomically disposes the Disposable in the field if not already disposed.
<ide> * @param field the target field
<del> ... | 1 |
Ruby | Ruby | convert uninstall test to spec | 3d031420404506223d047fc509e53df4cc9185d9 | <add><path>Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb
<del><path>Library/Homebrew/cask/test/cask/cli/uninstall_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::CLI::Uninstall do
<ide> it "shows an error when a bad Cask is provided" do
<del> lambda {
<add> expec... | 1 |
Ruby | Ruby | add support for short flag options | f7ec07680ccf859fd331d3fe7195afc366fc3741 | <ide><path>Library/Homebrew/cli_parser.rb
<ide> def comma_array(name, description: nil)
<ide> end
<ide> end
<ide>
<del> def flag(name, description: nil, required_for: nil, depends_on: nil)
<del> if name.end_with? "="
<add> def flag(*names, description: nil, required_for: nil, depends_on:... | 2 |
Python | Python | obtain size info defensively for packet | 1c920a48f2912c2d0cb64bb3ed830ba232e9bb3f | <ide><path>libcloud/compute/drivers/packet.py
<ide> def _to_location(self, data):
<ide> driver=self, extra=extra)
<ide>
<ide> def _to_size(self, data):
<del> cpus = data['specs']['cpus'][0].get('count')
<add> try:
<add> cpus = data['specs']['cpus'][0].get('count... | 1 |
Go | Go | return more context on awslogs create failure | 7a5c813d9ca913cd9a2f03a58902b2a9bf5c7f23 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> func (l *logStream) create() error {
<ide> if l.logCreateGroup {
<ide> if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == resourceNotFoundCode {
<ide> if err := l.createLogGroup(); err != nil {
<del> return err
<add> return errors.Wrap(e... | 1 |
PHP | PHP | fix error in old sqlsserver | 599b317d081789b72349664a51fa0467ec6a816a | <ide><path>tests/Fixture/DatatypeFixture.php
<ide> class DatatypeFixture extends TestFixture {
<ide> *
<ide> * @var array
<ide> */
<del> public $records = array(
<del> array('id' => 1, 'float_field' => 42.23, 'huge_int' => '1234567891234567891', 'bool' => 0),
<del> );
<add> public $records = [
<add> ['float_field'... | 1 |
Ruby | Ruby | fix the sorting | 0f6d3b2923a41bd48f58cf202db96d19c8b98868 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "freerdp" => "homebrew/x11",
<ide> "fsv" => "homebrew/boneyard",
<ide> "fuse-zip" => "homebrew/fuse",
<del> "fuse4x-kext" => "homebrew/fuse",
<ide> "fuse4x" => "homebrew/fuse",
<add> "fuse4x-kext" => "homebrew/fuse",
<ide> "gant" => "homebrew/boneyard",
<i... | 1 |
PHP | PHP | add another test | 72ef859df410d685101c8389eebb0cb8940ebbcd | <ide><path>tests/Integration/Queue/JobChainingTest.php
<ide> public function test_second_job_is_not_fired_if_first_was_already_deleted()
<ide>
<ide> $this->assertFalse(JobChainingTestSecondJob::$ran);
<ide> }
<add>
<add> public function test_third_job_is_not_fired_if_second_fails()
<add> {
<add> ... | 1 |
Python | Python | restart consumer if connection drops | e726978a39a05838805d2b026c4f1c962cfb23b7 | <ide><path>celery/worker/loops.py
<ide> def _quick_drain(connection, timeout=0.1):
<ide>
<ide>
<ide> def _enable_amqheartbeats(timer, connection, rate=2.0):
<del> if connection:
<del> tick = connection.heartbeat_check
<del> heartbeat = connection.get_heartbeat_interval() # negotiated
<del> if... | 2 |
Javascript | Javascript | use number.isnan instead of global isnan | b681d8d1a1400847780a6d2b07bbb879fb72a812 | <ide><path>test/parallel/test-os.js
<ide> const { inspect } = require('util');
<ide>
<ide> const is = {
<ide> number: (value, key) => {
<del> assert(!isNaN(value), `${key} should not be NaN`);
<add> assert(!Number.isNaN(value), `${key} should not be NaN`);
<ide> assert.strictEqual(typeof value, 'number');
... | 3 |
Ruby | Ruby | pluralize message only when needed | 420e8fdbe4742eb655a58c7faabfca6fe200d4a8 | <ide><path>Library/Homebrew/dev-cmd/pr-automerge.rb
<ide> def pr_automerge
<ide> return
<ide> end
<ide>
<del> ohai "#{prs.size} matching pull requests:"
<add> ohai "#{prs.count} matching pull #{"request".pluralize(prs.count)}:"
<ide> pr_urls = []
<ide> prs.each do |pr|
<ide> puts "#{tap.f... | 1 |
PHP | PHP | add ordoesnthave and orwheredoesnthave | ef11aee425a0973b2ccef485eb579802fd7d45f9 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php
<ide> public function doesntHave($relation, $boolean = 'and', Closure $callback = null
<ide> return $this->has($relation, '<', 1, $boolean, $callback);
<ide> }
<ide>
<add> /**
<add> * Add a relationship count / exists cond... | 2 |
Python | Python | fix type annotations in randomized_heap.py | 7488c5070e3f5a29a08f584644666494c420f834 | <ide><path>data_structures/heap/randomized_heap.py
<ide> from __future__ import annotations
<ide>
<ide> import random
<del>from typing import Generic, Iterable, TypeVar
<add>from typing import Any, Generic, Iterable, TypeVar
<ide>
<del>T = TypeVar("T")
<add>T = TypeVar("T", bound=bool)
<ide>
<ide>
<ide> class Rando... | 1 |
Go | Go | handle ebusy while removing | 2c82fd93d8a01cc1f53fe861378e6d2dca0486c6 | <ide><path>graphdriver/devmapper/deviceset.go
<ide> import (
<ide> "path"
<ide> "path/filepath"
<ide> "strconv"
<add> "strings"
<ide> "sync"
<ide> "time"
<ide> )
<ide> type DeviceSet struct {
<ide> TransactionId uint64
<ide> NewTransactionId uint64
<ide> nextFreeDevice int
<add> sawBusy bool
<ide>... | 1 |
Java | Java | fix clone issue in yoganodejnibase | 2707c17b0727f241d404f4a21090021c27c66f2c | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java
<ide> public void swapChildAt(YogaNode newChild, int position) {
<ide> public YogaNodeJNIBase cloneWithChildren() {
<ide> try {
<ide> YogaNodeJNIBase clonedYogaNode = (YogaNodeJNIBase) super.clone();
<add> if (clonedYogaNode.m... | 1 |
Python | Python | add multiple gpu support | ceee992a6e0d114923a397020ac5f100269f3d2f | <ide><path>swivel/swivel.py
<ide> """
<ide>
<ide> from __future__ import print_function
<del>import argparse
<ide> import glob
<ide> import math
<ide> import os
<ide>
<ide> import numpy as np
<ide> import tensorflow as tf
<add>from tensorflow.python.client import device_lib
<ide>
<ide> flags = tf.app.flags
<ide>
<i... | 1 |
PHP | PHP | check mbstring.func_overload before using strlen() | f39c683130164e64214eb7e0958763a56eb71748 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> public function send() {
<ide> $this->_sendHeader('Content-Type', "{$this->_contentType}; charset={$this->_charset}");
<ide> $shouldSetLength = empty($this->_headers['Content-Length']) && !in_array($this->_status, range(301, 307));
<ide> if ($shouldSetLength && !... | 1 |
Python | Python | fix issue with clip max_value | 6fb7ba721cf215e88176c665d2d7f90027f4e26f | <ide><path>keras/backend/tensorflow_backend.py
<ide> def clip(x, min_value, max_value):
<ide> # Returns
<ide> A tensor.
<ide> """
<del> if max_value < min_value:
<add> if max_value is not None and max_value < min_value:
<ide> max_value = min_value
<ide> min_value = _to_tensor(min_value... | 2 |
PHP | PHP | remove invalid annotation | 5144f2555bf5a0139e2ad859111adf0f8a9693ac | <ide><path>tests/TestCase/I18n/PackageTest.php
<ide> class PackageTest extends TestCase
<ide> {
<ide> /**
<del> * @covers void
<add> * Test adding messages.
<add> *
<add> * @return void
<ide> */
<ide> public function testAddMessage()
<ide> { | 1 |
Python | Python | add docstrings to tf backend | 201352784088145cb1b320fc7762c81f493df19e | <ide><path>keras/backend/tensorflow_backend.py
<ide>
<ide>
<ide> def learning_phase():
<del> # False = test, True = train
<add> '''Returns the learning phase flag.
<add>
<add> The learning phase flag is an integer tensor (0 = test, 1 = train)
<add> to be passed as input to any Keras function
<add> that... | 1 |
Go | Go | remove the lookup before pushing | 89763bc8af81dcda3d9989cf6687c75101bbd9bc | <ide><path>commands.go
<ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string
<ide> remote = local
<ide> }
<ide>
<add> Debugf("Pushing [%s] to [%s]\n", local, remote)
<add>
<ide> // Try to get the image
<ide> // FIXME: Handle lookup
<ide> // FIXME: Also push the tags in case of ./... | 2 |
Text | Text | fix typo in contributing.md | 380a9b5b83a60aed93599dcd854b77990633bf38 | <ide><path>CONTRIBUTING.md
<ide> This sets up the local webserver using connect and then watches source files, te
<ide>
<ide> #### Step 1: Verify
<ide>
<del>Whether you're adding something new, making something better, or fixing a bug, you'll first want to search the [GitHub issues](https://github.com/videojs/video.j... | 1 |
Text | Text | update typescript instructions | 3f2027d58376bb9bb0db069603b50fae2619a4c9 | <ide><path>packages/next/README.md
<ide> As `href` is a filesystem path, it shouldn't change at runtime, instead, you wil
<ide> dynamically according to your needs. Here's an example to create a list of links:
<ide>
<ide> ```jsx
<del>const pids = ['id1', 'id2', 'id3'];
<del>{pids.map(pid => (
<del> <Link href="/post/... | 1 |
PHP | PHP | fix comment style | 9899909363e80ad4c160d1e136dfa754d4f05401 | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testLocalizedTime()
<ide> $this->assertFalse(Validation::localizedTime('', 'date'));
<ide> $this->assertFalse(Validation::localizedTime('invalid', 'date'));
<ide>
<del> /* English (US) */
<add> // English (US)
<... | 1 |
Ruby | Ruby | need a default application.css for propshaft | 78446733905556cd51775d253e3d13e3e7a477e2 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def delete_assets_initializer_skipping_sprockets
<ide> if skip_sprockets?
<ide> remove_file "config/initializers/assets.rb"
<ide> remove_file "app/assets/config/manifest.js"
<add> remove_dir "app/assets/confi... | 1 |
Text | Text | add changelog for system tests | 13151d511ec4dacfd750d0c630970a24c4f960cf | <ide><path>actionpack/CHANGELOG.md
<add>* Add `ActionDispatch::SystemTestCase` to Action Pack
<add>
<add> Adds Capybara integration directly into Rails through Action Pack!
<add>
<add> See PR [#26703](https://github.com/rails/rails/pull/26703)
<add>
<add> *Eileen M.Uchitelle*
<add>
<ide> * Remove deprecate... | 1 |
Javascript | Javascript | replace const / var with let | 9f271b8f38f7104e031938c17149a48273a435f3 | <ide><path>test/parallel/test-vm-function-declaration.js
<ide> const o = vm.createContext({ console });
<ide>
<ide> // Function declaration and expression should both be copied to the
<ide> // sandboxed context.
<del>let code = 'var a = function() {};\n';
<add>let code = 'let a = function() {};\n';
<ide> code += 'func... | 1 |
Text | Text | fix typo in http2.md | 469036add4e0e879de3e9307bca4d22a1d547793 | <ide><path>doc/api/http2.md
<ide> changes:
<ide> Http2ServerRequest class to use.
<ide> Useful for extending the original `Http2ServerRequest`.
<ide> **Default:** `Http2ServerRequest`
<del> * `Http2ServerResponse` {htt2.Http2ServerResponse} Specifies the
<add> * `Http2ServerResponse` {http2.Http2ServerRes... | 1 |
Text | Text | apply sentence case to headers in doc/guides | 0486cb86cd7f5e99caf3e249fda7013420c2b32f | <ide><path>doc/guides/commit-queue.md
<del># Commit Queue
<add># Commit queue
<ide>
<ide> > Stability: 1 - Experimental
<ide>
<ide> From a high-level, the Commit Queue works as follow:
<ide> 3. Close the PR
<ide> 4. Go to next PR in the queue
<ide>
<del>## Current Limitations
<add>## Current limitations
... | 8 |
Ruby | Ruby | change core formula tap naming | 2afa1c3b86356292a751468bf67bc615bb6594f5 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def link_tap_formula formulae
<ide> else
<ide> to = to.realpath if to.exist?
<ide> # Whitelist gcc42 temporarily until Mavericks/Xcode 5.0 issues are resolved.
<del> unless to.tap_ref == 'mxcl/master/apple-gcc42'
<add> unless to.... | 2 |
Mixed | Python | add docs for 401 vs 403 responses | 5ae49a4ec4ccfdab13bc848ecd175d44ecaf4ed1 | <ide><path>docs/api-guide/authentication.md
<ide>
<ide> Authentication is the mechanism of associating an incoming request with a set of identifying credentials, such as the user the request came from, or the token that it was signed with. The [permission] and [throttling] policies can then use those credentials to d... | 2 |
Python | Python | fix empty input into staticvectors layer | cfb9770a94980db9e385724568b434b7790e8bc2 | <ide><path>spacy/ml/staticvectors.py
<ide> def StaticVectors(
<ide> def forward(
<ide> model: Model[List[Doc], Ragged], docs: List[Doc], is_train: bool
<ide> ) -> Tuple[Ragged, Callable]:
<del> if not len(docs):
<add> if not sum(len(doc) for doc in docs):
<ide> return _handle_empty(model.ops, model.ge... | 2 |
Text | Text | provide mention of pgcrypto extension for uuids | 54becc956132e08ed8ed74819d85fe1e0b64fa94 | <ide><path>guides/source/active_record_postgresql.md
<ide> article.save!
<ide>
<ide> ### UUID
<ide>
<del>* [type definition](http://www.postgresql.org/docs/9.3/static/datatype-uuid.html)
<del>* [generator functions](http://www.postgresql.org/docs/9.3/static/uuid-ossp.html)
<add>* [type definition](http://www.postgres... | 1 |
PHP | PHP | fix failing tests | 15c56d2e6de5aaa69a883b3d1d09a3704e73e834 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testInputCustomization() {
<ide> );
<ide> $this->assertTags($result, $expected);
<ide>
<del> unset($this->Form->request->data);
<add> $this->Form->request->data = [];
<ide>
<ide> $entity->errors('field', 'Badness!');
<ide> $this-... | 2 |
Javascript | Javascript | use common.skip for tap skip output | cd5a4c157c31ee7e0e9f9ce14c6aa75dbfbcd376 | <ide><path>test/parallel/test-fs-readfile-pipe-large.js
<ide> var path = require('path');
<ide> // simulate `cat readfile.js | node readfile.js`
<ide>
<ide> if (common.isWindows || common.isAix) {
<del> console.log(`1..0 # Skipped: No /dev/stdin on ${process.platform}.`);
<add> common.skip(`No /dev/stdin on ${proces... | 3 |
Python | Python | fix training from scratch in new scripts | a0c62d249303a68f5336e3f9a96ecf9241d7abbe | <ide><path>examples/language-modeling/run_clm.py
<ide> def group_texts(examples):
<ide>
<ide> # Training
<ide> if training_args.do_train:
<del> trainer.train(
<del> model_path=model_args.model_name_or_path if os.path.isdir(model_args.model_name_or_path) else None
<add> model_path = (
<... | 5 |
Ruby | Ruby | make class name consistent with the filename | 55621504b0d527393d2de86d15b5f40752825fde | <ide><path>activesupport/test/flush_cache_on_private_memoization_test.rb
<ide> require 'abstract_unit'
<ide> require 'test/unit'
<ide>
<del>class FlashCacheOnPrivateMemoizationTest < Test::Unit::TestCase
<add>class FlushCacheOnPrivateMemoizationTest < Test::Unit::TestCase
<ide> ActiveSupport::Deprecation.silence do
... | 1 |
Java | Java | update javadoc of uricomponentsbuilder | 2965df6bee12638e3e1a1208c382679fe3d46751 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
<ide> public static UriComponentsBuilder fromUri(URI uri) {
<ide> /**
<ide> * Returns a builder that is initialized with the given URI string.
<ide> *
<del> * @param uri the URI string to initialize with
<add> * <p><strong... | 1 |
Text | Text | fix module.ispreloading documentation | 9d7fb229db86b3fbe8835fe6411aa78d300c6e70 | <ide><path>doc/api/module.md
<ide> const requireUtil = createRequireFromPath('../src/utils/');
<ide> requireUtil('./some-tool');
<ide> ```
<ide>
<del>### `module.isPreloading`
<del><!-- YAML
<del>added: v15.4.0
<del>-->
<del>
<del>* Type: {boolean} `true` if the module is running during the Node.js preload
<del> phas... | 2 |
Ruby | Ruby | add broadcast_to and stream_for methods as per #26 | 5954fd1e0aa907e07ffff932aedc51109d4ce56d | <ide><path>lib/action_cable/channel.rb
<ide> module ActionCable
<ide> module Channel
<ide> autoload :Base, 'action_cable/channel/base'
<add> autoload :Broadcasting, 'action_cable/channel/broadcasting'
<ide> autoload :Callbacks, 'action_cable/channel/callbacks'
<add> autoload :Naming, 'action_cable/chann... | 11 |
Javascript | Javascript | fix previous optimisation and add test | 833bc5dddff23b56ef6f5e820340a4eaf5867302 | <ide><path>d3.layout.js
<ide> function d3_layout_packPlace(a, b, c) {
<ide> var db = a.r + c.r,
<ide> dx = b.x - a.x,
<ide> dy = b.y - a.y;
<del> if (db && dx && dy) {
<add> if (db && (dx || dy)) {
<ide> var da = b.r + c.r,
<ide> dc = Math.sqrt(dx * dx + dy * dy),
<del> cos = Math.min... | 4 |
Python | Python | remove irrelevant tests | 8c02f4ec8c4dcb5c773896d7d43d1ca7da9fd41a | <ide><path>tests/keras/backend/backend_test.py
<ide> def test_print_tensor(self, capsys):
<ide> # Theano inserts "__str__ = " for no good reason
<ide> assert out.replace('__str__ = ', '') == 'msg [[1.]]\n'
<ide>
<del> check_single_tensor_operation('print_tensor', (), WITH_NP)
<del> ... | 3 |
Javascript | Javascript | remove internal `util._extends()` usage | d4c91f28148af8a6c1a95392e5c88cb93d4b61c6 | <ide><path>lib/_http_agent.js
<ide> function Agent(options) {
<ide> this.defaultPort = 80;
<ide> this.protocol = 'http:';
<ide>
<del> this.options = util._extend({}, options);
<add> this.options = { ...options };
<ide>
<ide> // Don't confuse net and make it think that we're connecting to a pipe
<ide> this.o... | 17 |
Text | Text | improve pipe description | b481beecd803397940b2c4d0ed17d266ba5c1405 | <ide><path>doc/api/child_process.md
<ide> pipes between the parent and child. The value is one of the following:
<ide> `child_process` object as [`subprocess.stdio[fd]`][`subprocess.stdio`]. Pipes
<ide> created for fds 0, 1, and 2 are also available as [`subprocess.stdin`][],
<ide> [`subprocess.stdout`][] and ... | 1 |
Ruby | Ruby | move extract_scale to decimal type | e45e4f44e35d6ce9868542cc2a151b2a6c497e9b | <ide><path>activerecord/lib/active_record/connection_adapters/type.rb
<ide> module Type # :nodoc:
<ide> class << self
<ide> def extract_scale(sql_type)
<ide> case sql_type
<del> when /^(numeric|decimal|number)\((\d+)\)/i then 0
<del> when /^(numeric|decimal|number)\((\d+)(,... | 4 |
Ruby | Ruby | update routes.rb template to use app name | 426348b48403f664cc10e8ec545b640e56c1c090 | <ide><path>railties/lib/rails/application.rb
<ide> def load_tasks
<ide> end
<ide> end
<ide>
<add> def routes
<add> ActionController::Routing::Routes
<add> end
<add>
<ide> def call(env)
<ide> new.call(env)
<ide> end
<ide><path>railties/lib/rails/generators/actions.rb
<... | 9 |
Python | Python | fix success message [ci skip] | ff4267d1812d853c79b7e4e937dc29e0e849155c | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0rc0"
<add>__version__ = "3.0.0rc1"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compa... | 2 |
Javascript | Javascript | increase timeout and add a label | db464d3bccbae21a594fe3c9b378bd90cf50bfc7 | <ide><path>test/jqLiteSpec.js
<ide> describe('jqLite', function() {
<ide>
<ide> // This test is potentially flaky on CI cloud instances, so there is a generous
<ide> // wait period...
<del> waitsFor(function() { return tested; }, 2000);
<add> waitsFor(function() { return tested; }, 'ifram... | 1 |
PHP | PHP | at | 4822b4fc6a0c1ff429f29c5b8f9e575225e79008 | <ide><path>tests/Database/DatabaseConnectionTest.php
<ide> public function testTransactionLevelNotIncrementedOnTransactionException()
<ide> public function testBeginTransactionMethodRetriesOnFailure()
<ide> {
<ide> $pdo = $this->createMock(DatabaseConnectionTestMockPDO::class);
<del> $pdo->expect... | 2 |
Javascript | Javascript | remove unused err argument | 0229e6746cb8d99928df848b96875b46c1f00b31 | <ide><path>lib/repl.js
<ide> function complete(line, callback) {
<ide>
<ide> // Will be called when all completionGroups are in place
<ide> // Useful for async autocompletion
<del> function completionGroupsLoaded(err) {
<del> if (err) throw err;
<del>
<add> function completionGroupsLoaded() {
<ide> // Fil... | 1 |
Java | Java | fix typo in event class | fbb802ca63f2716d742f75fdddd9020c8efe6d92 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java
<ide> public void dispatch(RCTEventEmitter rctEventEmitter) {
<ide> WritableMap eventData = getEventData();
<ide> if (eventData == null) {
<ide> throw new IllegalViewOperationException(
<del> "Event: you must ret... | 1 |
PHP | PHP | add fcn in the docblock | 43c9990d3842e21068153af45d068c5a77f86c6b | <ide><path>src/Auth/BaseAuthorize.php
<ide> abstract class BaseAuthorize
<ide> /**
<ide> * Constructor
<ide> *
<del> * @param ComponentRegistry $registry The controller for this request.
<add> * @param \Cake\Controller\ComponentRegistry $registry The controller for this request.
<ide> * @para... | 30 |
PHP | PHP | fix parsedsn() ignoring empty strings | 91475ccfa58948b2561ffd9631664c1c3edaf300 | <ide><path>src/Core/StaticConfigTrait.php
<ide> public static function parseDsn($dsn)
<ide> throw new InvalidArgumentException('Only strings can be passed to parseDsn');
<ide> }
<ide>
<del> $pattern = '/^(?P<scheme>[\w\\\\]+):\/\/((?P<username>.*?)(:(?P<password>.*?))?@)?' .
<del> ... | 2 |
Text | Text | fix typo in doc/api/esm.md | 442be20760ffe981baf57307175b618fa504e12b | <ide><path>doc/api/esm.md
<ide> import { readFile } from 'fs/promises';
<ide> const json = JSON.parse(await readFile(new URL('./dat.json', import.meta.url)));
<ide> ```
<ide>
<del>Alterantively `module.createRequire()` can be used.
<add>Alternatively `module.createRequire()` can be used.
<ide>
<ide> #### No Native Mo... | 1 |
Javascript | Javascript | use process.mixin instead of sys.mixin | 9415ca909ea0e5e5c0b390fa60759952143beed3 | <ide><path>lib/fs.js
<del>var sys = require('sys');
<del>
<ide> exports.Stats = process.Stats;
<ide>
<ide> process.Stats.prototype._checkModeProperty = function (property) {
<ide> var FileWriteStream = exports.FileWriteStream = function(path, options) {
<ide> this.encoding = 'binary';
<ide> this.mode = 0666;
<ide>... | 1 |
PHP | PHP | fix cs errors | e6c9dc74dec8349017b446f91a64c8fb351d5323 | <ide><path>src/Database/Type/DateType.php
<ide> public function marshal($value) {
<ide> }
<ide> return $date;
<ide> }
<del>
<add>
<ide> /**
<ide> * Convert strings into Date instances.
<ide> *
<ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php
<ide> public function testMergeOptionsMaxLimi... | 2 |
Python | Python | add triviaqa task to projects | 0ab5dcbf76abe39068ce2679f20ae82bd7d46091 | <ide><path>official/nlp/projects/triviaqa/dataset.py
<add># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<ad... | 11 |
Python | Python | add python3 support for some examples | d811048887134013d3a0bcd9898f02ac3b4688b8 | <ide><path>examples/mnist_acgan.py
<ide> from __future__ import print_function
<ide>
<ide> from collections import defaultdict
<del>import cPickle as pickle
<add>try:
<add> import cPickle as pickle
<add>except ImportError:
<add> import pickle
<ide> from PIL import Image
<ide>
<ide> from six.moves import range
<... | 2 |
PHP | PHP | fix broken tests | 431e610317513d5d20bd91cf2c8198be9a197edc | <ide><path>lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php
<ide> public function testExecute() {
<ide> $this->assertRegExp($pattern, $result);
<ide>
<ide> $pattern = '/\#: (\\\\|\/)extract\.ctp:14\n';
<del> $pattern .= '\#: (\\\\|\/)home\.ctp:99\n';
<add> $pattern .= '\#: (\\\\|\/)home\.ctp:100\n';
<... | 2 |
PHP | PHP | improve french translation for validation | 5a082257b72bc5ab5cfbd0fcc815e94a1f29b230 | <ide><path>application/language/fr/validation.php
<ide> "alpha" => "Le champ :attribute ne doit contenir que des lettres.",
<ide> "alpha_dash" => "Le champ :attribute ne doit contenir que des lettres, nombres et des tirets.",
<ide> "alpha_num" => "Le champ :attribute ne doit contenir que des lettre... | 1 |
Python | Python | skip one more possibly failing c99 test | e9ae63eda3f9ac5076ba2d216c96e6e137270009 | <ide><path>numpy/core/tests/test_umath.py
<ide> class TestC99(object):
<ide> def test_clog(self):
<ide> for p, v, e in [
<ide> ((-0., 0.), (-inf, pi), 'divide'),
<del> ((+0., 0.), (-inf, 0.), 'divide'),
<add> ((+0., 0.), (-inf, 0.), 'XXX divide'), # fails on OSX?
<ide> ... | 1 |
Go | Go | fix flaky test teststatsallnewcontainersadded | 71d6e71cff4122a987a4655723d50a296916f523 | <ide><path>integration-cli/docker_cli_stats_test.go
<ide> func (s *DockerSuite) TestStatsAllNewContainersAdded(c *check.C) {
<ide> }()
<ide>
<ide> out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
<add> c.Assert(waitRun(strings.TrimSpace(out)), check.IsNil)
<ide> id <- strings.TrimSpace(out)[:12]
<ide>
<ide> ... | 1 |
Javascript | Javascript | add dohop to showcase | 46c3af994121be073cb38c191bfae3bb1f6d10be | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> ],
<ide> author: 'Genki Takiuchi (s21g Inc.)',
<ide> },
<add> {
<add> name: 'Dohop Flights',
<add> icon: 'http://a5.mzstatic.com/us/r30/Purple60/v4/3e/94/e9/3e94e9b3-f9a0-7b27-1824-b3da732ec967/icon175x175.jpeg',
<add> linkAppS... | 1 |
PHP | PHP | add unit tests to illustrate json assertion issues | 4a9ccc9943e016e324b1df5e74dd244cd8cd5420 | <ide><path>tests/Foundation/FoundationTestResponseTest.php
<ide> public function testAssertJsonFragment()
<ide> $response->assertJsonFragment(['foobar' => ['foobar_foo' => 'foo', 'foobar_bar' => 'bar']]);
<ide>
<ide> $response->assertJsonFragment(['foo' => 'bar 0', 'bar' => ['foo' => 'bar 0', 'bar' => ... | 1 |
Javascript | Javascript | fix extra closing tag in renderbuffer | cc75d4e4e493d6322000d86f7939500fb46e7ec4 | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> Ember._RenderBuffer.prototype =
<ide> },
<ide>
<ide> generateElement: function() {
<del> var element = document.createElement(this.currentTagName()),
<add> var tagName = this.tagNames.pop(), // pop since we don't need to close
<add> ele... | 1 |
Text | Text | fix function name in process.md | 1f6adff12cdf1d1ca6d8def2ef0b5abdff8c45b0 | <ide><path>doc/api/process.md
<ide> added: v9.3.0
<ide>
<ide> * `fn` {Function|null}
<ide>
<del>The `process.setUncaughtExceptionCapture` function sets a function that will
<del>be invoked when an uncaught exception occurs, which will receive the exception
<del>value itself as its first argument.
<add>The `process.se... | 1 |
Python | Python | fix other open calls without context managers | d54631f68b2dc739bb6dd215ddc3ac14ee2465c6 | <ide><path>spacy/cli/convert.py
<ide> def convert(
<ide> ner_map = srsly.read_json(ner_map) if ner_map is not None else None
<ide> doc_files = []
<ide> for input_loc in walk_directory(Path(input_path), converter):
<del> input_data = input_loc.open("r", encoding="utf-8").read()
<add> with input... | 3 |
Python | Python | change loss and optimizer to new api | d6522e28732fd14a926440ef5f315e6a8e13792c | <ide><path>examples/lm_finetuning/finetune_on_pregenerated.py
<ide> def main():
<ide> help="Loss scaling to improve fp16 numeric stability. Only used when fp16 set to True.\n"
<ide> "0 (default value): dynamic loss scaling.\n"
<ide> "Positive power... | 2 |
Javascript | Javascript | fix lint errors | 230185fb7405f5aa8820a3c501567970e7477518 | <ide><path>src/main-process/atom-application.js
<ide> module.exports = class AtomApplication extends EventEmitter {
<ide> this.promptForRestart()
<ide> );
<ide> });
<del>
<ide> await this.configFilePromise;
<ide> }
<ide> | 1 |
Ruby | Ruby | create venvs with access to system site packages | 3d3b9874f93e30b75d2d1595cb207cd7f03169b9 | <ide><path>Library/Homebrew/language/python.rb
<ide> def initialize(formula, venv_root, python)
<ide> def create
<ide> return if (@venv_root/"bin/python").exist?
<ide>
<del> @formula.system @python, "-m", "venv", @venv_root
<add> @formula.system @python, "-m", "venv", "--system-site... | 2 |
Java | Java | remove unnecessary calls to disablecontentcaching | c7e037da39d2c0d57e0b895504c7a296fe77e43a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java
<ide> import org.springframework.web.bind.support.WebDataBinderFactory;
<ide> import org.springframework.web.context.request.NativeWebRequest;
<ide> import org.springframework.web.context.request.... | 4 |
Go | Go | add error checking for hostport range | 135f8f967488f171fcda6c66d7fa35726edaf19c | <ide><path>cli/compose/convert/service.go
<ide> func convertEndpointSpec(source []string) (*swarm.EndpointSpec, error) {
<ide> }
<ide>
<ide> for port := range ports {
<del> portConfigs = append(
<del> portConfigs,
<del> opts.ConvertPortToPortConfig(port, portBindings)...)
<add> portConfig, err := opts.ConvertP... | 2 |
PHP | PHP | add test for booting callbacks | 35df766a03233f41dfd9293c39a92618170f5dda | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testAfterBootstrappingAddsClosure()
<ide>
<ide> public function testBootingCallbacks()
<ide> {
<del> $app = new Application;
<add> $application = new Application;
<ide>
<ide> $counter = 0;
<del> $closu... | 1 |
Javascript | Javascript | use single quotes in js string | fa70560eba330e2b8f31add9d93d8f4a2173607a | <ide><path>src/state-store.js
<ide> class StateStore {
<ide> resolve(dbOpenRequest.result)
<ide> }
<ide> dbOpenRequest.onerror = (error) => {
<del> console.error("Could not connect to indexedDB", error)
<add> console.error('Could not connect to indexedDB', error)
<ide> resolve(... | 1 |
PHP | PHP | use text class | b0fcaae134abeec996433b5a7362967805af5abd | <ide><path>src/Utility/Text.php
<ide> public static function wordWrap($text, $width = 72, $break = "\n", $cut = false)
<ide> {
<ide> $paragraphs = explode($break, $text);
<ide> foreach ($paragraphs as &$paragraph) {
<del> $paragraph = String::_wordWrap($paragraph, $width, $break, $cut);
<... | 2 |
Javascript | Javascript | remove words "as well" to prevent text wrapping | 09cb38aa211ce20cbb49b916043f3319f2325313 | <ide><path>client/src/components/Supporters.js
<ide> function Supporters({ isDonating, activeDonations }) {
<ide> <br />
<ide> <br />
<ide> Do you know anyone who's interested in technology? Encourage
<del> them to join the community as well.
<add> ... | 1 |
PHP | PHP | add space before catch in connection | 3bbac011c3e604a5ff16776b9a393038378c2d9f | <ide><path>src/Database/Connection.php
<ide> public function connect() {
<ide> try {
<ide> $this->_driver->connect();
<ide> return true;
<del> } catch(\Exception $e) {
<add> } catch (\Exception $e) {
<ide> throw new MissingConnectionException(['reason' => $e->getMessage()]);
<ide> }
<ide> } | 1 |
Ruby | Ruby | fix some warnings in i18n lib | 8c2e839e5a0fb1662ae867c70114c3fc91850a55 | <ide><path>activesupport/lib/active_support/vendor/i18n-0.0.1/lib/i18n.rb
<ide> def exception_handler=(exception_handler)
<ide> # storage. Decoupled for backends like a db backend that persist their
<ide> # translations, so the backend can decide whether/when to yield or not.
<ide> def populate(&block)
<del... | 2 |
Javascript | Javascript | fix bug in scrollintoview | 65c8549759de630ae3c1cf687035a973f45e7afc | <ide><path>web/ui_utils.js
<ide> function scrollIntoView(element, spot, skipOverflowHiddenElements = false) {
<ide> }
<ide> let offsetY = element.offsetTop + element.clientTop;
<ide> let offsetX = element.offsetLeft + element.clientLeft;
<del> while (parent.clientHeight === parent.scrollHeight ||
<add> while ((... | 1 |
Python | Python | add tests for check_fit with deg specified as list | 4dd71a3ab7bd019e36998e7c5f98ec2345539f18 | <ide><path>numpy/polynomial/tests/test_classes.py
<ide> def f(x):
<ide> assert_almost_equal(p(x), y)
<ide> assert_almost_equal(p.domain, d)
<ide> assert_almost_equal(p.window, w)
<add> p = Poly.fit(x, y, [0, 1, 2, 3], domain=d, window=w)
<add> assert_almost_equal(p(x), y)
<add> assert_almost_equal(... | 1 |
Text | Text | add devnexen to collaborators | ecd98428b0e9734986f519135a9fe8d597b52d6e | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **David Cai** <davidcai1993@yahoo.com> (he/him)
<ide> * [davisjam](https://github.com/davisjam) -
<ide> **Jamie Davis** <davisjam@vt.edu> (he/him)
<add>* [devnexen](https://github.com/devnexen) -
<add>**David C... | 1 |
Text | Text | add link i removed from challenge | 32b53ba0e0e6d4a2116de4949d95c36c4be47140 | <ide><path>guide/english/certifications/apis-and-microservices/basic-node-and-express/implement-a-root-level-request-logger-middleware/index.md
<ide> If you have trouble formatting the string correctly, one way to do it looks like
<ide>
<ide>
<ide> <a href='https://github.com/freecodecamp/guides/tree/master/src/pages... | 1 |
Java | Java | expose aligncontent to java | c2a41e42f20e4453cd4dad55dbc1f1cf0ac086fe | <ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java
<ide> public void setAlignSelf(CSSAlign alignSelf) {
<ide> }
<ide> }
<ide>
<add> @Override
<add> public CSSAlign getAlignContent() {
<add> return style.alignContent;
<add> }
<add>
<add> @Override
<add> public void setAlignContent(C... | 3 |
Javascript | Javascript | combine contructor, tag, object into a function | 04ccc98de65b0473d7e86a632cfe5188f31a84a8 | <ide><path>lib/internal/util/inspect.js
<ide> function getKeys(value, showHidden) {
<ide> return keys;
<ide> }
<ide>
<add>function getCtxStyle(constructor, tag) {
<add> return constructor || tag || 'Object';
<add>}
<add>
<ide> function formatProxy(ctx, proxy, recurseTimes) {
<ide> if (recurseTimes != null) {
<ide... | 1 |
Python | Python | update code comment | 34a1a01091e5411bd7f4379a0d9c33d2b03c7be1 | <ide><path>modeling.py
<ide> def forward(self, input_ids, token_type_ids=None, attention_mask=None):
<ide> token_type_ids = torch.zeros_like(input_ids)
<ide>
<ide> # We create a 3D attention mask from a 2D tensor mask.
<del> # Sizes are [batch_size, 1, 1, from_seq_length]
<del> # So w... | 1 |
Python | Python | fix pendingdeprecation warnings in tests | b6fb377c2b4b747597bc3291dadd52b633b135b4 | <ide><path>rest_framework/tests/filters.py
<ide> class FilterableItem(models.Model):
<ide> class FilterFieldsRootView(generics.ListCreateAPIView):
<ide> model = FilterableItem
<ide> filter_fields = ['decimal', 'date']
<del> filter_backend = filters.DjangoFilterBackend
<add> filter_back... | 3 |
PHP | PHP | consolidate return early statements | 0c6833783b5cfda4fa669521dbb798c1531b0f47 | <ide><path>Cake/Cache/Cache.php
<ide> public static function gc($config = 'default', $expires = null) {
<ide> */
<ide> public static function write($key, $value, $config = 'default') {
<ide> $engine = static::engine($config);
<del> if (!$engine) {
<del> return false;
<del> }
<del>
<del> if (is_resource($value)... | 1 |
Python | Python | use float32 metrics in mnist_eager | dfafba4a017c21c19dfdb60e1580f0b2ff5d361f | <ide><path>official/mnist/mnist_eager.py
<ide> def train(model, optimizer, dataset, step_counter, log_interval=None):
<ide>
<ide> def test(model, dataset):
<ide> """Perform an evaluation of `model` on the examples from `dataset`."""
<del> avg_loss = tfe.metrics.Mean('loss')
<del> accuracy = tfe.metrics.Accuracy('a... | 1 |
Go | Go | remove extra wait after device removal | dbf04ec4e2a6b4fe73f7f300918a906c0ff1a37b | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) deleteDevice(info *DevInfo) error {
<ide>
<ide> devinfo, _ := devicemapper.GetInfo(info.Name())
<ide> if devinfo != nil && devinfo.Exists != 0 {
<del> if err := devices.removeDeviceAndWait(info.Name()); err != nil {
<add> if err :... | 1 |
Ruby | Ruby | restore original constant | a933b5850754931538f40af6e2767eb27fb6e904 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def formula_for_sha sha, &block
<ide>
<ide> # Unload the class so Formula#version returns the correct value
<ide> begin
<del> Formulary.unload_formula name
<add> old_const = Formulary.unload_formula name
<ide> nostdout { yiel... | 2 |
PHP | PHP | fix formhelper test | 4c0d0e171ed1729830cdd6957416db433bbca4c0 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testFormSecuredFileControl()
<ide> $this->Form->create();
<ide>
<ide> $this->Form->file('Attachment.file');
<del> $expected = [
<del> 'Attachment.file.name', 'Attachment.file.type',
<del> 'Attach... | 1 |
Mixed | Python | add test_connection method for snowflake hook | acfb7b5acf887d38aa8751c18d17dbfe85e78b7c | <ide><path>airflow/providers/snowflake/hooks/snowflake.py
<ide> def run(self, sql: Union[str, list], autocommit: bool = False, parameters: Optio
<ide> conn.commit()
<ide>
<ide> return execution_info
<add>
<add> def test_connection(self):
<add> """Test the Snowflake connection by runni... | 3 |
Javascript | Javascript | remove dead code and polyfill for containselement | d0052ac58ea7045c1bc5b1190bd8225c42deb2c7 | <ide><path>packages/ember-views/lib/views/states/pre_render.js
<del>/* global Node */
<del>
<ide> import _default from "ember-views/views/states/default";
<ide> import { create } from "ember-metal/platform";
<ide> import merge from "ember-metal/merge";
<ide> import jQuery from "ember-views/system/jquery";
<ide> */
<ide... | 1 |
Javascript | Javascript | remove incorrect comment | 40ea053bac8c5ecfd51deef592a397004c4569c0 | <ide><path>packages/react-native-renderer/src/ReactFabricEventEmitter.js
<ide> import type {TopLevelType} from 'events/TopLevelEventTypes';
<ide>
<ide> export {getListener, registrationNameModules as registrationNames};
<ide>
<del>/**
<del> * Publicly exposed method on module for native objc to invoke when a top
<del... | 1 |
Text | Text | improve issue templates | 7193f49eaf2737c42c54ff685892964d7bbe216b | <ide><path>.github/ISSUE_TEMPLATE/1.Bug_report.md
<ide> ---
<ide> name: Bug report
<ide> about: Create a bug report for the Next.js core
<del>
<ide> ---
<ide>
<del>**Describe the bug**
<add># Bug report
<add>
<add>## Describe the bug
<add>
<ide> A clear and concise description of what the bug is.
<ide>
<del>**To Repr... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.