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 | create card for model gpt-2-finetuned-cord19 | 7420a6a9cc1750c2bd2c2c245d00048ec36d3bf0 | <ide><path>model_cards/mrm8488/GPT-2-finetuned-CORD19/README.md
<add>---
<add>language: english
<add>thumbnail:
<add>---
<add>
<add># GPT-2 + CORD19 dataset : 🦠 ✍ ⚕
<add>
<add>**GPT-2** fine-tuned on **biorxiv_medrxiv** and **comm_use_subset files** from [CORD-19](https://www.kaggle.com/allen-institute-for-ai/CORD-19-... | 1 |
Text | Text | clarify socket.setnodelay() explanation | 0fe810168bef2a53e5ff6b2f7832e372f850e5f3 | <ide><path>doc/api/net.md
<ide> added: v0.1.90
<ide> * `noDelay` {boolean} **Default:** `true`
<ide> * Returns: {net.Socket} The socket itself.
<ide>
<del>Disables the Nagle algorithm. By default TCP connections use the Nagle
<del>algorithm, they buffer data before sending it off. Setting `true` for
<del>`noDelay` wil... | 1 |
Javascript | Javascript | release script clarifies which test fixture failed | 33cb3f04f14638e9344dc59ae956f9805c07ab07 | <ide><path>scripts/release/shared-commands/test-packaging-fixture.js
<ide> const run = async ({cwd}) => {
<ide> }
<ide>
<ide> if (errorMessage) {
<del> console.error(theme.error(errorMessage));
<add> console.error(
<add> theme.error('✗'),
<add> 'Verifying "packaging" fixture\n ',
<add> theme.e... | 2 |
Ruby | Ruby | ensure original encoding doesnt change | 86dd2f32764ef3f141d9b24a47725b004fd4ac71 | <ide><path>activesupport/test/multibyte_chars_test.rb
<ide> def test_forwarded_bang_method_calls_should_return_nil_when_result_is_nil
<ide> end
<ide>
<ide> def test_methods_are_forwarded_to_wrapped_string_for_byte_strings
<add> original_encoding = BYTE_STRING.encoding
<ide> assert_equal BYTE_STRING.length, ... | 1 |
Mixed | Ruby | qualify column names in calculation | a7628099de796a2db2c18e946dab319abd0fcba2 | <ide><path>activerecord/CHANGELOG.md
<add>* Qualify column name inserted by `group` in calculation
<add>
<add> Giving `group` an unqualified column name now works, even if the relation
<add> has `JOIN` with another table which also has a column of the name.
<add>
<add> *Soutaro Matsumoto*
<add>
<ide> * Don... | 3 |
Text | Text | create yaph.md so i can contribute | e7e5999ddc37ea1b69b3453cef0ae297ad334d68 | <ide><path>.github/contributors/yaph.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
<add>... | 1 |
PHP | PHP | apply fixes from styleci | 1aa66d78726bcaf3ff648d1bc318f157cab3df82 | <ide><path>src/Illuminate/Support/Stringable.php
<ide> namespace Illuminate\Support;
<ide>
<ide> use Closure;
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Support\Traits\Macroable;
<ide>
<ide> class Stringable
<ide><path>tests/Support/SupportStringableTest.php
<ide> use Illuminate\Support\Stringable;
<ide> u... | 2 |
Ruby | Ruby | fix chars.reverse for multibyte decomposed strings | 23780850237876cf81038534d8f59fa307af0b31 | <ide><path>activesupport/lib/active_support/multibyte/chars.rb
<ide> def size
<ide> # Example:
<ide> # 'Café'.mb_chars.reverse.to_s #=> 'éfaC'
<ide> def reverse
<del> chars(self.class.u_unpack(@wrapped_string).reverse.pack('U*'))
<add> chars(self.class.g_unpack(@wrapped_string).reverse... | 2 |
Go | Go | remove bridgeip from ipallocation pool | f4551b8a48bdc7a135466398eecfb103fcde25c6 | <ide><path>daemon/networkdriver/bridge/driver.go
<ide> func InitDriver(job *engine.Job) engine.Status {
<ide> }
<ide> }
<ide>
<add> // Block BridgeIP in IP allocator
<add> ipallocator.RequestIP(bridgeNetwork, bridgeNetwork.IP)
<add>
<ide> // https://github.com/docker/docker/issues/2768
<ide> job.Eng.Hack_SetGloba... | 2 |
Python | Python | change zero_debias=false to zero_debias=true | 3ce40705a7235cabe81cfaa2ab9b9d56f225af52 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def moving_average_update(x, value, momentum):
<ide> An operation to update the variable.
<ide> """
<ide> return moving_averages.assign_moving_average(
<del> x, value, momentum, zero_debias=False)
<add> x, value, momentum, zero_debias=Tr... | 1 |
Python | Python | fix types in scorer | c689ae8f0a81041ed3c2eb9cae9926b7842715bc | <ide><path>spacy/scorer.py
<ide> import numpy as np
<ide>
<ide> from .gold import Example
<del>from .tokens import Token
<add>from .tokens import Token, Doc
<ide> from .errors import Errors
<ide> from .util import get_lang_class
<ide> from .morphology import Morphology
<ide> def to_dict(self) -> Dict[str, float]:
<ide... | 1 |
Javascript | Javascript | build reactdom browser builds into react-dom/dist | ff542de59df93a7e33fab229d2b848233ee317da | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> grunt.registerTask('npm-react:pack', npmReactTasks.packRelease);
<ide>
<ide> var npmReactDOMTasks = require('./grunt/tasks/npm-react-dom');
<add> grunt.registerTask('npm-react-dom:release', npmReactDOMTasks.buildRelease);
<ide> grunt.registe... | 3 |
Text | Text | fix typo in new tutorial code | a5ff2f1e9c94765e4d167317f5248cefe3abc2e9 | <ide><path>docs/tutorial/tutorial.md
<ide> handleClick(i) {
<ide> if (calculateWinner(squares) || squares[i]) {
<ide> return;
<ide> }
<del> squares[i] = this.state.xIsNext(current.squares) ? 'X' : 'O';
<add> squares[i] = this.state.xIsNext ? 'X' : 'O';
<ide> this.setState({
<ide> history: history.concat... | 1 |
Text | Text | fix typo in readme.md | a6091ec4b0923c4135cf1325da135917e6a79f58 | <ide><path>research/astronet/README.md
<ide> bazel build astronet/...
<ide> TFRECORD_DIR="${HOME}/astronet/tfrecord"
<ide>
<ide> # Preprocess light curves into sharded TFRecord files using 5 worker processes.
<del>bazel-bin/tensorflow/data/generate_input_records \
<add>bazel-bin/astronet/data/generate_input_records \
... | 1 |
Python | Python | add a test case for it | 6bb395dcbbefde09bcdd70c3151abce193162b25 | <ide><path>libcloud/test/storage/test_cloudfiles.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>from hashlib import sha1
<add>
<ide> import hmac
<ide> import os
<i... | 1 |
Python | Python | kill process group on failure | 0cebfc8ddb509fbf5f865bb660b73e96680b3f65 | <ide><path>tools/test.py
<ide> def DoSkip(case):
<ide>
<ide>
<ide> if __name__ == '__main__':
<del> sys.exit(Main())
<add> ret = 0
<add> try:
<add> ret = Main()
<add> sys.exit(ret)
<add> finally:
<add> if ret and not utils.IsWindows():
<add> os.killpg(0, signal.SIGKILL) | 1 |
Go | Go | synchronize stderr and stdout | 3eb0a80f29629a1c022dc914437b176271d476fc | <ide><path>api/server/router/build/build_routes.go
<ide> import (
<ide> "net/http"
<ide> "strconv"
<ide> "strings"
<add> "sync"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/api/server/httputils"
<ide> func newImageBuildOptions(ctx context.Context, r *http.Request) (*types.ImageBui
<ide... | 1 |
Text | Text | add a link to simplest-redux-example | 79c76a617214471d4f84ee5fa8e9c5086b303916 | <ide><path>README.md
<ide> This architecture might seem like an overkill for a counter app, but the beauty
<ide> * [Async](http://rackt.github.io/redux/docs/introduction/Examples.html#async) ([source](https://github.com/rackt/redux/tree/master/examples/async))
<ide> * [Real World](http://rackt.github.io/redux/docs/intr... | 1 |
Ruby | Ruby | fix run_callbacks for objects with negative id | 911a0859ac065aa8e8834ac985353d659c7c7b65 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> module ClassMethods
<ide> # This generated method plays caching role.
<ide> def __define_callbacks(kind, object) #:nodoc:
<ide> chain = object.send("_#{kind}_callbacks")
<del> name = "_run_callbacks_#{chain.object_id}"
<add> ... | 1 |
Ruby | Ruby | show target path when empty | bfbfdf03eb2bcbb73082af0325f85761ea87719e | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install *sources
<ide> case src
<ide> when Array
<ide> if src.empty?
<del> opoo "install was passed an empty array"
<add> opoo "tried to install empty array to #{self}"
<ide> return []
<ide> end
<ide> ... | 1 |
Javascript | Javascript | add some tests to test-buffer.js | e2569c402fc2b1b4f60c71c616a321134e7aa0ca | <ide><path>test/mjsunit/test-buffer.js
<ide> assert = require("assert");
<ide>
<ide> var b = new process.Buffer(1024);
<ide>
<del>sys.puts("b[0] == " + b[0]);
<del>assert.ok(b[0] >= 0);
<del>
<del>sys.puts("b[1] == " + b[1]);
<del>assert.ok(b[1] >= 0);
<del>
<ide> sys.puts("b.length == " + b.length);
<ide> assert.equ... | 1 |
Ruby | Ruby | remove klass delegator | 40a015f7305affc046049ad17e16b8cc85763da7 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> module Associations
<ide> class AssociationScope #:nodoc:
<ide> attr_reader :association, :alias_tracker
<ide>
<del> delegate :klass, :reflection, :to => :association
<add> delegate :reflection, :to => :association
<i... | 1 |
Python | Python | add m3 instances for ec2 oregon | 2018fa0a4cfac5fcbf538d68662db4a5c398118e | <ide><path>libcloud/compute/drivers/ec2.py
<ide> 'm2.xlarge',
<ide> 'm2.2xlarge',
<ide> 'm2.4xlarge',
<add> 'm3.medium',
<add> 'm3.large',
<add> 'm3.xlarge',
<add> 'm3.2xlarge',
<ide> 'c1.medium',
<ide> 'c1.xlarge',
... | 1 |
Ruby | Ruby | add relation.last and relation.reverse_order | d5e98dc859e24e9ebf8206a7955c6ac40819a117 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def order(orders)
<ide> create_new_relation(@relation.order(orders))
<ide> end
<ide>
<add> def reverse_order
<add> relation = create_new_relation
<add> relation.instance_variable_set(:@orders, nil)
<add>
<add> order_clause = @relat... | 2 |
Text | Text | add reference for `===` operator in assert.md | 133ad76d0a3d7113239dc7ae38c05ebcbfa4f0bb | <ide><path>doc/api/assert.md
<ide> are recursively evaluated also by the following rules.
<ide> [`Object.is()`][].
<ide> * [Type tags][Object.prototype.toString()] of objects should be the same.
<ide> * [`[[Prototype]]`][prototype-spec] of objects are compared using
<del> the [Strict Equality Comparison][].
<add> t... | 1 |
Go | Go | fix network disabled for container | 66782730b85db20600ce48fcab203a5eb43bcb02 | <ide><path>container.go
<ide> func (container *Container) Start() (err error) {
<ide> }
<ide>
<ide> var en *execdriver.Network
<del> if !container.runtime.networkManager.disabled {
<add> if !container.Config.NetworkDisabled {
<ide> network := container.NetworkSettings
<ide> en = &execdriver.Network{
<ide> Gat... | 1 |
Text | Text | improve fbx and maya docs | 607584f62e5cb58f037228a67e0efa69f25e687c | <ide><path>utils/converters/fbx/README.md
<ide> Don't forget the visit the FBX SDK documentation website:
<ide> http://docs.autodesk.com/FBX/2013/ENU/FBX-SDK-Documentation/cpp_ref/index.html
<ide> ```
<ide>
<add>*Note:* If you use the OSX installer, it will install the Python packages into the following folder.
<add... | 2 |
Javascript | Javascript | remove todo for moving isip to dns | d51efd07ac580991011e8dbebef5179f9c6f5b66 | <ide><path>lib/net.js
<ide> Server.prototype.unref = function() {
<ide> };
<ide>
<ide>
<del>// TODO: isIP should be moved to the DNS code. Putting it here now because
<del>// this is what the legacy system did.
<ide> exports.isIP = cares.isIP;
<ide>
<ide> | 1 |
Ruby | Ruby | avoid array allocation where not needed | 4ff87909a95354136c51f33b1402fca484da961b | <ide><path>activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
<ide> def #{attr_name}=(time)
<ide> def create_time_zone_conversion_attribute?(name, column)
<ide> time_zone_aware_attributes &&
<ide> !self.skip_time_zone_conversion_for_attributes.include?(name.to_sym) &&... | 1 |
Mixed | Ruby | reset @column_defaults when assigning | 33354aa23e9d34bdf5aae8ab942cf830bf9f2782 | <ide><path>activerecord/CHANGELOG.md
<add>* Reset @column_defaults when assigning `locking_column`.
<add> We had a potential problem. For example:
<add>
<add> class Post < ActiveRecord::Base
<add> self.column_defaults # if we call this unintentionally before setting locking_column ...
<add> self.lock... | 3 |
Text | Text | update copyright year in licence | c9658ad459c2a5c6f136fc1e7f83b4c800092a85 | <ide><path>LICENSE.md
<del>Copyright (c) 2011-2021 GitHub Inc.
<add>Copyright (c) 2011-2022 GitHub Inc.
<ide>
<ide> Permission is hereby granted, free of charge, to any person obtaining
<ide> a copy of this software and associated documentation files (the | 1 |
Javascript | Javascript | convert buffer benchmark to runbenchmark | 7456db937d91750cdbe4f9935e4d40cc682ace07 | <ide><path>test/parallel/test-benchmark-buffer.js
<ide>
<ide> require('../common');
<ide>
<del>// Minimal test for buffer benchmarks. This makes sure the benchmarks aren't
<del>// completely broken but nothing more than that.
<add>const runBenchmark = require('../common/benchmark');
<ide>
<del>const assert = require... | 1 |
Javascript | Javascript | use cdn version to generate link to source files | 5c4ffb36deee18743beb149ceae4d63d5b1ae8d9 | <ide><path>docs/spec/sourceLinkSpec.js
<ide> describe('Docs Links', function() {
<ide> });
<ide>
<ide> it('should have an "view source" button', function() {
<add> spyOn(gruntUtil, 'getVersion').andReturn({cdn: '1.2.299'});
<add>
<ide> expect(doc.html()).
<del> toContain('<a href="http://gith... | 2 |
Ruby | Ruby | fix mailerpreview broken tests | f870c4d063f6ac3b5fe96670955a08fcd7e15e67 | <ide><path>actionmailer/test/base_test.rb
<ide> def welcome
<ide> test "you can register a preview interceptor to the mail object that gets passed the mail object before previewing" do
<ide> ActionMailer::Base.register_preview_interceptor(MyInterceptor)
<ide> mail = BaseMailer.welcome
<del> BaseMailerPrevi... | 1 |
Text | Text | update ubuntu image tag to 14.04 | 736558b6ae15afb3f5f0d7ba7801fa44bec9f285 | <ide><path>docs/sources/examples/running_redis_service.md
<ide> using a link.
<ide> Firstly, we create a `Dockerfile` for our new Redis
<ide> image.
<ide>
<del> FROM ubuntu:12.10
<add> FROM ubuntu:14.04
<ide> RUN apt-get update && apt-get install -y redis-server
<ide> EXPOSE 63... | 1 |
Python | Python | fix on_failure_callback when task receive sigkill | 817b599234dca050438ee04bc6944d32bc032694 | <ide><path>airflow/jobs/local_task_job.py
<ide> # under the License.
<ide> #
<ide>
<del>import os
<ide> import signal
<ide> from typing import Optional
<ide>
<ide> def handle_task_exit(self, return_code: int) -> None:
<ide> # task exited by itself, so we need to check for error file
<ide> # incase it ... | 4 |
PHP | PHP | provide initialize command to create po from pot | 12dd82a47c4eb86a830d5c53f7bb84204141372e | <ide><path>src/Shell/I18nShell.php
<ide> public function main()
<ide> $this->out('<info>I18n Shell</info>');
<ide> $this->hr();
<ide> $this->out('[E]xtract POT file from sources');
<add> $this->out('[I]inialize a language from POT file');
<ide> $this->out('[H]elp');
<ide> ... | 2 |
Java | Java | fix inverted horizontal scrollview on android | 32cb9ec49c801fcebe61486149134ab542d9364b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java
<ide> public boolean onTouchEvent(MotionEvent ev) {
<ide>
<ide> @Override
<ide> public void fling(int velocityX) {
<add>
<add> // Workaround.
<add> // On Android P if a ScrollView is inverted, we will get a w... | 1 |
PHP | PHP | implement morphone and morphmany | a145ab29a0b06fe4f7924d9e101db0d34d07cd51 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
<ide> public function morphOne($related, $name, $type = null, $id = null, $localKey =
<ide>
<ide> $localKey = $localKey ?: $this->getKeyName();
<ide>
<del> return new MorphOne($instance->newQuery(), $this, $table.'.'.$type, $tabl... | 2 |
Javascript | Javascript | expose the instance cache | 75aee1714b60b8b43ebaebf9bffe5af43ff90cde | <ide><path>src/core/ReactMount.js
<ide> var ReactMount = {
<ide> /** Whether support for touch events should be initialized. */
<ide> useTouchEvents: false,
<ide>
<add> /** Exposed for debugging purposes **/
<add> _instanceByReactRootID: instanceByReactRootID,
<add>
<ide> /**
<ide> * This is a hook provided... | 1 |
Javascript | Javascript | check this.connection before using it | 9afee6785e3f0710172a423eb6140e29bf436475 | <ide><path>lib/_http_outgoing.js
<ide> OutgoingMessage.prototype.end = function(data, encoding, callback) {
<ide> // There is the first message on the outgoing queue, and we've sent
<ide> // everything to the socket.
<ide> debug('outgoing message end.');
<del> if (this.output.length === 0 && this.connection._htt... | 1 |
Text | Text | fix mistranslation "never write to this.props." | 7e779a9d448d15e4e6465c5b65832506d00c1eab | <ide><path>docs/docs/02-displaying-data.ja-JP.md
<ide> setInterval(function() {
<ide>
<ide> このことについて私たちが理解できる方法は、Reactは必要になるまで、DOMの操作を行わないということです。 **Reactは、DOMの変化を表現し、あなたにもっとも効率的なDOMの変化を見積もるために早い、内部のモックのDOMを使っています。**
<ide>
<del>このコンポーネントのインプットは `props` と呼ばれるものです。"properties" の省略形です。それらはJSXシンタックスの中でアトリビュートとして渡されます。それら... | 1 |
Javascript | Javascript | use ya in case xa is false | c28d39e47d7337636e832134b26d6214357fe3d4 | <ide><path>examples/with-firebase-authentication/utils/auth/mapUserData.js
<ide> export const mapUserData = (user) => {
<del> const { uid, email, xa } = user
<add> const { uid, email, xa, ya } = user
<ide> return {
<ide> id: uid,
<ide> email,
<del> token: xa,
<add> token: xa || ya,
<ide> }
<ide> } | 1 |
Javascript | Javascript | simplify setsecurecontext() option parsing | 82f89ec8c1554964f5029fab1cf0f4fad1fa55a8 | <ide><path>lib/_tls_wrap.js
<ide> Server.prototype.setSecureContext = function(options) {
<ide> else
<ide> this.crl = undefined;
<ide>
<del> if (options.sigalgs !== undefined)
<del> this.sigalgs = options.sigalgs;
<del> else
<del> this.sigalgs = undefined;
<add> this.sigalgs = options.sigalgs;
<ide>
<i... | 1 |
Ruby | Ruby | fix bogus require | 4f2e31b3e3ef3ab4758e3ac3c22dafd190652d5d | <ide><path>Library/Homebrew/language/python.rb
<del>require "utils.rb"
<add>require "utils"
<ide>
<ide> module Language
<ide> module Python | 1 |
Ruby | Ruby | remove protected method class#scoped? | 81cd11259c52544dd1bc401b7097e4a0e5d34fe6 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def default_scope(options = {})
<ide> self.default_scoping << construct_finder_arel(options)
<ide> end
<ide>
<del> # Test whether the given method and optional key are scoped.
<del> def scoped?(method, key = nil) #:nodoc:
<del> ... | 1 |
Python | Python | use tmp dir and check version for cython test | c18b3f59b5f5752ab038224fd3bdf2dadba55ecf | <ide><path>numpy/random/_examples/cython/setup.py
<ide> from os.path import join, abspath, dirname
<ide>
<ide> path = abspath(dirname(__file__))
<add>defs = [('NPY_NO_DEPRECATED_API', 0)]
<ide>
<ide> extending = Extension("extending",
<ide> sources=[join(path, 'extending.pyx')],
<ide> ... | 2 |
Go | Go | add stream format details for attach/logs endpoint | 48829ddf885eb656bff6dcf053bf96471b106bf0 | <ide><path>client/container_attach.go
<ide> import (
<ide> // It returns a types.HijackedConnection with the hijacked connection
<ide> // and the a reader to get output. It's up to the called to close
<ide> // the hijacked connection by calling types.HijackedResponse.Close.
<add>//
<add>// The stream format on the resp... | 2 |
Text | Text | add hyperlinks for the curriculum | bd244f99581044fdc15ce6cc3ba8663056070c9f | <ide><path>README.md
<ide> Here are our six core certifications:
<ide>
<ide> #### 1. Responsive Web Design Certification
<ide>
<del>- Basic HTML and HTML5
<del>- Basic CSS
<del>- Applied Visual Design
<del>- Applied Accessibility
<del>- Responsive Web Design Principles
<del>- CSS Flexbox
<del>- CSS Grid <br />
<add>-... | 1 |
PHP | PHP | avoid re-ordering routes | 978f5cebd40c8ed939d2a89644c56938d61cddd4 | <ide><path>src/Illuminate/Routing/RouteCollection.php
<ide> public function match(Request $request)
<ide> */
<ide> protected function matchAgainstRoutes(array $routes, $request, $includingMethod = true)
<ide> {
<del> return collect($routes)->sortBy('isFallback')->first(function ($value) use ($reques... | 2 |
Java | Java | remove unused import | 6e99ad0a5f37ecbb9bb752aebe03bca99adbf03c | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableToList.java
<ide>
<ide> import io.reactivex.exceptions.Exceptions;
<ide> import io.reactivex.internal.subscriptions.*;
<del>import io.reactivex.internal.util.ArrayListSupplier;
<ide>
<ide> public final class FlowableToList<T, U extends Collecti... | 1 |
Ruby | Ruby | optimize url helpers | cd5dabab95924dfaf3af8c429454f1a46d9665c1 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def define_url_helper(route, name, kind, options)
<ide> @module.module_eval <<-END_EVAL, __FILE__, __LINE__ + 1
<ide> remove_possible_method :#{selector}
<ide> def #{selector}(*args)
<del> ... | 6 |
Ruby | Ruby | add link_overwrite dsl | 09c810c7f428b838b9b327d1c92f87ebc6e76447 | <ide><path>Library/Homebrew/formula.rb
<ide> require "pkg_version"
<ide> require "tap"
<ide> require "formula_renames"
<add>require "keg"
<ide>
<ide> # A formula provides instructions and metadata for Homebrew to install a piece
<ide> # of software. Every Homebrew formula is a {Formula}.
<ide> def installed_prefix
<id... | 2 |
PHP | PHP | remove pointless tests and fix failing ones | 6bdd1d5c4638068acd0cb855f78b667dc55ceb09 | <ide><path>Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function setUp() {
<ide> 'prevPage' => false,
<ide> 'nextPage' => true,
<ide> 'pageCount' => 7,
<del> 'order' => null,
<del> 'limit' => 20,
<add> 'sort' => null,
<add> 'direction' => null,
<add> 'limit' => ... | 2 |
Python | Python | fix example in config | a8549bdd825e3fcde4002721777367a008cdc1fd | <ide><path>src/transformers/models/gpt_neo/configuration_gpt_neo.py
<ide> class GPTNeoConfig(PretrainedConfig):
<ide>
<ide> Example::
<ide>
<del> >>> from transformers import GPTNeoModel, GPTNeoConfig
<add> >>> from transformers import GPTNeoModel, GPTNeoConfig
<ide>
<del> >>> # Init... | 1 |
Python | Python | add missing parameter to stub function | 9b1a68db2fd78a0c39e361e997f3d4e2981c01b8 | <ide><path>celery/backends/base.py
<ide> def encode_result(self, result, status):
<ide> else:
<ide> return self.prepare_value(result)
<ide>
<del> def store_result(self, task_id, result, status):
<add> def store_result(self, task_id, result, status, traceback=None):
<ide> """Store the ... | 1 |
Javascript | Javascript | remove scrollwithoutanimationto from scrollview | c7e89909da70ac5290f9971080eb897567db3e43 | <ide><path>Libraries/Components/ScrollResponder.js
<ide> const ScrollResponderMixin = {
<ide> );
<ide> },
<ide>
<del> /**
<del> * Deprecated, do not use.
<del> */
<del> scrollResponderScrollWithoutAnimationTo: function(
<del> offsetX: number,
<del> offsetY: number,
<del> ) {
<del> console.warn(
<... | 2 |
Python | Python | convert scripts into entry_points | 87c1244c7db8d57d6e1eed9a6578c0262379afea | <ide><path>pytorch_pretrained_bert/__main__.py
<ide> # coding: utf8
<del>if __name__ == '__main__':
<add>def main():
<ide> import sys
<ide> try:
<ide> from .convert_tf_checkpoint_to_pytorch import convert_tf_checkpoint_to_pytorch
<ide> TF_CONFIG = sys.argv.pop()
<ide> TF_CHECKPOINT = sys... | 2 |
PHP | PHP | apply suggestions from code review | 9410ffab50c8d2818fe1b2c4e0b65962cd009da2 | <ide><path>src/ORM/EagerLoader.php
<ide> public function loadExternal(Query $query, StatementInterface $statement): State
<ide>
<ide> $requiresKeys = $instance->requiresKeys($config);
<ide> if ($requiresKeys) {
<del> // If the path or alias has no key the required assoication loa... | 3 |
Javascript | Javascript | convert examples/node/pdf2svg.js to await/async | 0643ccb68b8c12e6734eaa02c9a2b11859096188 | <ide><path>examples/node/pdf2svg.js
<ide> try {
<ide> // Dumps svg outputs to a folder called svgdump
<ide> function getFilePathForPage(pageNum) {
<ide> const name = path.basename(pdfPath, path.extname(pdfPath));
<del> return path.join(outputDirectory, name + "-" + pageNum + ".svg");
<add> return path.join(outputDi... | 1 |
Go | Go | remove unused registry.erralreadyexists | 9f874e53b9a386c58d6d54dca658945998d83a28 | <ide><path>registry/registry.go
<ide> package registry // import "github.com/docker/docker/registry"
<ide>
<ide> import (
<ide> "crypto/tls"
<del> "errors"
<ide> "fmt"
<ide> "net"
<ide> "net/http"
<ide> import (
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide>
<del>var (
<del> // ErrAlreadyExists is an error ret... | 1 |
Javascript | Javascript | use es2017 syntax in test-fs-open-* | 841caef9db88347e5c61668a814ccd5b99fc00a1 | <ide><path>test/parallel/test-fs-open-flags.js
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide>
<del>const O_APPEND = fs.constants.O_APPEND || 0;
<del>const O_CREAT = fs.constants.O_CREAT || 0;
<del>const O_EXCL = fs.constants.O_EXCL || 0;
<del>const O_R... | 2 |
Text | Text | make some tweaks | e5853f4eaac8f4fb64b36f4d7c6ef0de80b53a83 | <ide><path>docs/New-Maintainer-Checklist.md
<ide>
<ide> **This is a guide used by existing maintainers to invite new maintainers. You might find it interesting but there's nothing here users should have to know.**
<ide>
<del>So, there's someone who has been making consistently high-quality contributions to Homebrew f... | 1 |
Mixed | Ruby | add #no_touching on activerecord models | b32ba367f584a6298fb8b7eef97be15388b5bd87 | <ide><path>activerecord/CHANGELOG.md
<add>* Added `ActiveRecord::Base.no_touching`, which allows ignoring touch on models.
<add>
<add> Examples:
<add>
<add> Post.no_touching do
<add> Post.first.touch
<add> end
<add>
<add> *Sam Stephenson*, *Damien Mathieu*
<add>
<ide> * Prevent the counter ca... | 5 |
Javascript | Javascript | print a deprecated message for next/css (#421) | 1e70324a41993da52eadfe5139943084da9af218 | <ide><path>lib/css.js
<ide> const css = require('glamor')
<ide>
<add>if (process.env.NODE_ENV !== 'production') {
<add> console.error('Warning: \'next/css\' is deprecated. Please use styled-jsx syntax instead.')
<add>}
<add>
<ide> /**
<ide> * Expose style as default and the whole object as properties
<ide> * so it ... | 1 |
Javascript | Javascript | convert the thumbnail viewer to es6 syntax | a682d77e71e8d5f0901d190a3d3d674d0df4a55f | <ide><path>web/pdf_thumbnail_viewer.js
<ide> import {
<ide> } from './ui_utils';
<ide> import { PDFThumbnailView } from './pdf_thumbnail_view';
<ide>
<del>var THUMBNAIL_SCROLL_MARGIN = -19;
<add>const THUMBNAIL_SCROLL_MARGIN = -19;
<ide>
<ide> /**
<ide> * @typedef {Object} PDFThumbnailViewerOptions
<ide> var THUMBNA... | 1 |
Javascript | Javascript | update examples to use modules | 0cddc5c7b4f726448a660d8fa63b2502d6c28484 | <ide><path>src/ng/directive/ngController.js
<ide> *
<ide> * This example demonstrates the `controller as` syntax.
<ide> *
<del> * <example name="ngControllerAs">
<add> * <example name="ngControllerAs" module="controllerAsExample">
<ide> * <file name="index.html">
<ide> * <div id="ctrl-as-exmpl" ng-controller=... | 1 |
Javascript | Javascript | change socket.bind() to return itself | 3e0057dd61626890e1880ed1e609ef31ce39720b | <ide><path>lib/dgram.js
<ide> Socket.prototype.bind = function(port /*, address, callback*/) {
<ide> if (port instanceof UDP) {
<ide> replaceHandle(self, port);
<ide> startListening(self);
<del> return;
<add> return self;
<ide> }
<ide>
<ide> var address;
<ide> Socket.prototype.bind = function(port ... | 2 |
Javascript | Javascript | remove extra call to metafor | 9851decd9919e2a3371eeaf4b65e8995980c5c2b | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function applyMixin(obj, mixins, partial) {
<ide> // * Set up _super wrapping if necessary
<ide> // * Set up computed property descriptors
<ide> // * Copying `toString` in broken browsers
<del> mergeMixins(mixins, metaFor(obj), descs, values, obj, keys);
<add> ... | 1 |
Javascript | Javascript | add e2e tests for navigation buttons in /learn | 16a643d66f54886d203b4ab65bef33ccf27bbdb2 | <ide><path>cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js
<add>/* global cy */
<add>
<add>describe('The `Update my account settings` button works properly', function() {
<add> beforeEach(() => {
<add> cy.visit('/');
<add>
<add> cy.contains("Get started (it's free)").click({ for... | 2 |
Ruby | Ruby | provide arguments to recordnotfound | ae032ec38463e923c0556fbdd28b9d9fced18b11 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def reset
<ide> def find(*args)
<ide> if options[:inverse_of] && loaded?
<ide> args_flatten = args.flatten
<del> raise RecordNotFound, "Couldn't find #{scope.klass.name} without an ID" if args_flatten... | 4 |
Ruby | Ruby | pass the chain the join_constraints | 66556631f5b98990d55194f427533a4b992b3350 | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def instantiate(result_set, aliases)
<ide>
<ide> def make_joins(node)
<ide> node.children.flat_map { |child|
<del> child.join_constraints(node, child.tables).concat make_joins(child)
<add> child.join_constra... | 2 |
Python | Python | move replacement logic to language.from_config | 325f47500d5265ad4240d2903601f178e51efc17 | <ide><path>spacy/language.py
<ide> def from_config(
<ide> # Later we replace the component config with the raw config again.
<ide> interpolated = filled.interpolate() if not filled.is_interpolated else filled
<ide> pipeline = interpolated.get("components", {})
<add> sourced = util.get_sou... | 3 |
Javascript | Javascript | fix minor typo in imperative api notes | 258b43948fddbdc6a1fcc11fa65ab4077d08916c | <ide><path>Libraries/Components/StatusBar/StatusBar.js
<ide> function createStackEntry(props: any): any {
<ide> *
<ide> * For cases where using a component is not ideal, there is also an imperative
<ide> * API exposed as static functions on the component. It is however not recommended
<del> * to use the static API a... | 1 |
Javascript | Javascript | start process after onload | bdad5e7333b15a786cd999b411463ffba5e36592 | <ide><path>test/mjsunit/test-process-kill.js
<ide> include("mjsunit.js");
<ide>
<del>var cat = new node.Process("cat");
<del>
<ide> var exit_status = -1;
<ide>
<del>cat.onOutput = function (chunk) { assertEquals(null, chunk); };
<del>cat.onError = function (chunk) { assertEquals(null, chunk); };
<del>cat.onExit = fun... | 1 |
Text | Text | remove the old reference link | ca7b69016a13739db74eb09046d8344762a2caa4 | <ide><path>docs/userguide/dockervolumes.md
<ide> allows you to upgrade, or effectively migrate data volumes between containers.
<ide> > providing the `-v` option to delete its volumes. If you remove containers
<ide> > without using the `-v` option, you may end up with "dangling" volumes;
<ide> > volumes that are no lon... | 1 |
Javascript | Javascript | add logic in zone to handle impossible keeptime-s | 72af6a3ff0d207ad5464afe45b032ba09b350c5a | <ide><path>moment.js
<ide>
<ide> // keepTime = true means only change the timezone, without affecting
<ide> // the local hour. So 5:31:26 +0300 --[zone(2, true)]--> 5:31:26 +0200
<add> // It is possible that 5:31:26 doesn't exist int zone +0200, so we
<add> // adjust the time as needed, t... | 1 |
PHP | PHP | convert language php 5.4 arrays | a1547b30ad3d98f51cc69d5c24666c5ff826e6f2 | <ide><path>resources/lang/en/pagination.php
<ide> <?php
<ide>
<del>return array(
<add>return [
<ide>
<ide> /*
<ide> |--------------------------------------------------------------------------
<ide>
<ide> 'next' => 'Next »',
<ide>
<del>);
<add>]; | 1 |
PHP | PHP | add support for --admin to bake controller all | 5a6a45d0d1b9e4f844e950939c63204b4c0d2065 | <ide><path>lib/Cake/Console/Command/Task/ControllerTask.php
<ide> public function all() {
<ide> $this->listAll($this->connection, false);
<ide> ClassRegistry::config('Model', array('ds' => $this->connection));
<ide> $unitTestExists = $this->_checkUnitTest();
<add>
<add> $admin = false;
<add> if (!empty($this->p... | 2 |
Python | Python | remove f-strings in setup.py. (gh-16346) | dabf31c74f6f3153ef4e7c72ad969c37f8652c8a | <ide><path>setup.py
<ide> def check_submodules():
<ide> if 'path' in l:
<ide> p = l.split('=')[-1].strip()
<ide> if not os.path.exists(p):
<del> raise ValueError(f'Submodule {p} missing')
<add> raise ValueError('Submodule {} missing'.form... | 1 |
PHP | PHP | add tests for and fix query string parsing | 4e66fee85160bca84771ad45862977bd50959ed6 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function beforeRedirect(Event $event, $url, Response $response)
<ide> }
<ide> $query = [];
<ide> if (strpos($url, '?') !== false) {
<del> list($url, $querystr) = explode('?', $url);
<add> list($url... | 3 |
Javascript | Javascript | use strict operator | a982e8933329eb779e786fdb71d2701bd087fdbe | <ide><path>src/lib/duration/iso-string.js
<ide> export function toISOString() {
<ide> }
<ide>
<ide> var totalSign = total < 0 ? '-' : '';
<del> var ymSign = sign(this._months) != sign(total) ? '-' : '';
<del> var daysSign = sign(this._days) != sign(total) ? '-' : '';
<del> var hmsSign = sign(this._mil... | 1 |
Python | Python | fix lstm regularizers | 9b4f973d5779f79369bd3ae0fb982c7da49bd4f5 | <ide><path>keras/layers/recurrent.py
<ide> def append_regulariser(input_regulariser, param, regularizers_list):
<ide> regularizers_list.append(regulariser)
<ide>
<ide> self.regularizers = []
<del> for W in [self.W_i, self.W_f, self.W_i, self.W_o]:
<add> for W in [self.W_i, self.W_... | 1 |
Java | Java | fix bottom sheet in fabric android | cd5fe06abe1b5f00f3e6edda453342266da6d36e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java
<ide> public void createView(
<ide> viewManager = mViewManagerRegistry.get(componentName);
<ide> view = mViewFactory.getOrCreateView(componentName, propsDiffMap, stateWrapper, themedReactContext);
<ide> view.... | 1 |
Ruby | Ruby | move this method somewhere more appropriate | 8d000110ccd33464f23d3b4cfac75908b61f802c | <ide><path>Library/Homebrew/formula.rb
<ide> def <=> b
<ide> def to_s
<ide> name
<ide> end
<add> def inspect
<add> name
<add> end
<ide>
<ide> # Standard parameters for CMake builds.
<ide> # Using Build Type "None" tells cmake to use our CFLAGS,etc. settings.
<ide> def self.installed
<ide> HOMEBREW... | 1 |
Javascript | Javascript | fix the arguments order in `assert.strictequal` | 3c4f8a15408e32d481a7f43564165db05f19b6bd | <ide><path>test/parallel/test-file-write-stream.js
<ide> file
<ide> console.error('drain!', callbacks.drain);
<ide> callbacks.drain++;
<ide> if (callbacks.drain === -1) {
<del> assert.strictEqual(EXPECTED, fs.readFileSync(fn, 'utf8'));
<add> assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED... | 1 |
Ruby | Ruby | detect root via process.uid | aac200a53db859ab1aa12284627eacc6f3e92cf0 | <ide><path>Library/Homebrew/language/node.rb
<ide> def self.std_npm_install_args(libexec)
<ide> #{Dir.pwd}/#{pack}
<ide> ]
<ide>
<del> args << "--unsafe-perm" if ENV["USER"] == "root"
<add> args << "--unsafe-perm" if Process.uid.zero?
<ide>
<ide> args
<ide> end | 1 |
Ruby | Ruby | summarize updated casks for --preinstall | 1acb085574ab1560e55ecf21e6e7194ff435227e | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> HOMEBREW_REPOSITORY.cd do
<ide> donation_message_displayed =
<ide> Utils.popen_read("git", "config", "--get", "homebrew.donationmessage").chomp == "true"
<del> unless donation_message_displayed
<add> if !donation_... | 1 |
Text | Text | use function for components in general | 4812e229928dc01ae21ee0533685f6813694c136 | <ide><path>errors/next-script-for-ga.md
<ide> If you are using the [gtag.js](https://developers.google.com/analytics/devguides
<ide> ```jsx
<ide> import Script from 'next/script'
<ide>
<del>const Home = () => {
<add>function Home() {
<ide> return (
<ide> <div class="container">
<ide> <!-- Global site tag (... | 2 |
PHP | PHP | update the default redis host | 9ca8ed99609abd473da42f5affdab266d867b532 | <ide><path>config/database.php
<ide> 'cluster' => false,
<ide>
<ide> 'default' => [
<del> 'host' => env('REDIS_HOST', 'localhost'),
<add> 'host' => env('REDIS_HOST', '127.0.0.1'),
<ide> 'password' => env('REDIS_PASSWORD', null),
<ide> 'port' => env('REDIS_P... | 1 |
Javascript | Javascript | fix mip levels | 5c7f0349989de9cdae092dc38cc31bc5b33b3714 | <ide><path>examples/js/nodes/bsdfs/RoughnessToBlinnExponentNode.js
<ide> RoughnessToBlinnExponentNode.Nodes = (function() {
<ide> // float envMapWidth = pow( 2.0, maxMIPLevelScalar );
<ide> // float desiredMIPLevel = log2( envMapWidth * sqrt( 3.0 ) ) - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );
<ide>
<del... | 2 |
Javascript | Javascript | increase coverage for http2 response headers | 3eb029794c61e013c236e70e99ff659f6ea0826a | <ide><path>test/parallel/test-http2-compat-serverresponse-headers.js
<ide> server.listen(0, common.mustCall(function() {
<ide> response.removeHeader(denormalised);
<ide> assert.strictEqual(response.hasHeader(denormalised), false);
<ide>
<del> assert.throws(function() {
<del> response.setHeader(':status... | 1 |
Python | Python | remove extra parameter from xcom | 28d5ca2e09e1ac3d6532df610dc9e91e9c936202 | <ide><path>airflow/models.py
<ide> def xcom_pull(
<ide> task_ids,
<ide> dag_id=None,
<ide> key=XCOM_RETURN_KEY,
<del> include_prior_dates=False,
<del> limit=None):
<add> include_prior_dates=False):
<ide> """
<ide> Pull XComs that optio... | 1 |
Text | Text | add note about airflow components to template | a373dbaf50292e6e89d16e778e674e791576c902 | <ide><path>ISSUE_TEMPLATE.md
<ide> Dear Airflow Maintainers,
<ide>
<ide> Before I tell you about my issue, let me describe my environment:
<ide>
<del># Environment
<add>### Environment
<ide>
<del>* Version of Airflow (e.g. a release version, running your own fork, running off master -- provide a git log snippet) :
<... | 1 |
Ruby | Ruby | initialize @target instead asking if it is defined | 49f3525f19a78b478367f997522197d03e8694ce | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> class Association #:nodoc:
<ide> def initialize(owner, reflection)
<ide> reflection.check_validity!
<ide>
<add> @target = nil
<ide> @owner, @reflection = owner, reflection
<ide> @updated = false
<ide>
<ide... | 1 |
Java | Java | pass getlistenerid call on to delegate | 48688b7b0455efc74b2998288242e01ba78f3f73 | <ide><path>spring-context/src/main/java/org/springframework/context/event/GenericApplicationListenerAdapter.java
<ide> /*
<del> * Copyright 2002-2018 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... | 2 |
Ruby | Ruby | fix preloading of has_one through associations | b7a37b742c0abd1df8ea48cc82f76385cc0c41ea | <ide><path>activerecord/lib/active_record/association_preload.rb
<ide> def add_preloaded_records_to_collection(parent_records, reflection_name, associa
<ide>
<ide> def add_preloaded_record_to_collection(parent_records, reflection_name, associated_record)
<ide> parent_records.each do |parent_record|... | 2 |
Javascript | Javascript | add event handler for window resizing | 0a9437bef2d8014a94b637ddaf4c8e0e12276f73 | <ide><path>src/window-event-handler.js
<ide> class WindowEventHandler {
<ide> this.handleFocusNext = this.handleFocusNext.bind(this)
<ide> this.handleFocusPrevious = this.handleFocusPrevious.bind(this)
<ide> this.handleWindowBlur = this.handleWindowBlur.bind(this)
<add> this.handleWindowResize = this.han... | 1 |
Javascript | Javascript | add tests for build activity indicator | 7fe7648f7b47174c8adbbbb3992b6518404aea1b | <ide><path>test/integration/build-indicator/pages/a.js
<add>export default () => <p>Hello from a</p>
<ide><path>test/integration/build-indicator/pages/b.js
<add>export default () => <p>Hello from b</p>
<ide><path>test/integration/build-indicator/pages/index.js
<add>import Link from 'next/link'
<add>
<add>export default... | 4 |
Javascript | Javascript | shorten some lines in events.js | 6bdc42cee7e7aa6884e0b91277ee038d755afb4c | <ide><path>lib/events.js
<del>exports.EventEmitter = process.EventEmitter;
<add>var EventEmitter = exports.EventEmitter = process.EventEmitter;
<ide>
<ide> var isArray = Array.isArray;
<ide>
<del>process.EventEmitter.prototype.emit = function (type) {
<add>EventEmitter.prototype.emit = function (type) {
<ide> // If... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.