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 |
|---|---|---|---|---|---|
Javascript | Javascript | remove resolve rule | 7ecf675834d392e8aeb90824a9f2db8a0a948b12 | <ide><path>packages/next/build/webpack-config.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide> // Disable .mjs for node_modules bundling
<ide> extensions: isServer ? ['.wasm', '.js', '.mjs', '.jsx', '.json'] : ['.wasm', '.mjs', '.js', '.jsx', '.json'],
<ide> mod... | 1 |
Python | Python | ensure default fairness maps to `sched_fair` | 0db172ef3b6b1771c763e0ec7937bdba63dacbc8 | <ide><path>celery/concurrency/asynpool.py
<ide> def unpack_from(fmt, iobuf, unpack=unpack): # noqa
<ide>
<ide> SCHED_STRATEGIES = {
<ide> None: SCHED_STRATEGY_FAIR,
<add> 'default': SCHED_STRATEGY_FAIR,
<ide> 'fast': SCHED_STRATEGY_FCFS,
<ide> 'fcfs': SCHED_STRATEGY_FCFS,
<ide> 'fair': SCHED_STRATE... | 1 |
Javascript | Javascript | update example to use a module | 28310583a9f746f920f47d04e289d1819edf12d0 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> *
<ide> *
<ide> * @example
<del><example>
<add><example module="httpExample">
<ide> <file name="index.html">
<del> <div ng-controller="FetchCtrl">
<add> <div ng-controller="FetchController">
<ide> <select ng-model="method">
<ide> ... | 1 |
Go | Go | verify endpoint.info() before accessing it | 54d22cbd9a04a965c935a693bf403d2c87109b5a | <ide><path>api/server/router/network/network_routes.go
<ide> func buildNetworkResource(nw libnetwork.Network) *types.NetworkResource {
<ide>
<ide> epl := nw.Endpoints()
<ide> for _, e := range epl {
<del> sb := e.Info().Sandbox()
<add> ei := e.Info()
<add> if ei == nil {
<add> continue
<add> }
<add> sb := ei.... | 2 |
Javascript | Javascript | change concatenation to template literal | d4fbffded49b81dd599c803d1db6914c1f97bc88 | <ide><path>test/parallel/test-fs-copyfile.js
<ide> assert.throws(() => {
<ide>
<ide> // Throws if the source does not exist.
<ide> assert.throws(() => {
<del> fs.copyFileSync(src + '__does_not_exist', dest, COPYFILE_EXCL);
<add> fs.copyFileSync(`${src}__does_not_exist`, dest, COPYFILE_EXCL);
<ide> }, /^Error: ENOENT... | 1 |
Javascript | Javascript | fix name collisions between various tests | ee7209fe2676f836ef39ff77e3aa5c46572e817b | <ide><path>test/service/compilerSpec.js
<ide> describe('$compile', function() {
<ide> }));
<ide>
<ide>
<del> it('should allow creation of new isolated scopes', inject(function($rootScope, $compile, log) {
<add> it('should allow creation of new isolated scopes for directives', inject(
<add> ... | 1 |
PHP | PHP | fix httpsocket mishandling encoded uris | 6aaac6b7e2f5b71ce649df9a109f83d17b3eb61f | <ide><path>lib/Cake/Network/Http/HttpSocket.php
<ide> public function request($request = array()) {
<ide> }
<ide>
<ide> if ($this->request['redirect'] && $this->response->isRedirect()) {
<del> $request['uri'] = trim(urldecode($this->response->getHeader('Location')), '=');
<add> $location = trim($this->response... | 2 |
Javascript | Javascript | remove unnecessary condition | 411728b146345adb99960fd3bff38e1172bfba7f | <ide><path>lib/optimize/InnerGraphPlugin.js
<ide> class InnerGraphPlugin {
<ide> decl.init &&
<ide> decl.id.type === "Identifier"
<ide> ) {
<del> if (
<del> decl.init.type === "FunctionExpression" ||
<del> decl.init.type === "ArrowFunctionExpression"
<del> ) {
<del> ... | 1 |
Text | Text | add comments about `nativeonly` props | bb79d034d2d415a280f391519c836a861c2dd31e | <ide><path>docs/NativeComponentsIOS.md
<ide> MapView.propTypes = {
<ide>
<ide> Here you can see that the shape of the region is explicit in the JS documentation - ideally we could codegen some of this stuff, but that's not happening yet.
<ide>
<add>Sometimes you'll have some special properties that you need to expose... | 1 |
Text | Text | extend bash-head and add fixes | 8f1af189c0d3d9e2b5d0f625ef92faa429c7dda4 | <ide><path>guide/russian/bash/bash-head/index.md
<ide> ---
<ide> title: Bash Head
<del>localeTitle: Голова баша
<add>localeTitle: Баш Хэд
<ide> ---
<del>## Команда Bash
<ide>
<del>Head используется для печати первых десяти строк (по умолчанию) или любого другого количества, указанного для файла или файлов. Cat использ... | 1 |
Text | Text | update documentation styling as per suggestions | 30164588d6be5d5a07b079719f15cf2da06322d2 | <ide><path>docs/reference/builder.md
<ide> any point in an image's history, much like source control.
<ide> The *exec* form makes it possible to avoid shell string munging, and to `RUN`
<ide> commands using a base image that does not contain `/bin/sh`.
<ide>
<add>In the *shell* form you can use a `\` (backslash) to co... | 1 |
PHP | PHP | provide pending request to retry callback | 71bb3970522c90c66b358ff464d5c3cd3bd5f781 | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> public function send(string $method, string $url, array $options = [])
<ide>
<ide> if (! $response->successful()) {
<ide> try {
<del> $shouldRetry = $this->retryWhenCallback ? call_user... | 2 |
Javascript | Javascript | improve detection when auto publicpath can be used | 5cf0b8288c4dcc21bde2073cf8f5cce491a0b65b | <ide><path>lib/config/defaults.js
<ide> const applyOutputDefaults = (
<ide> });
<ide> D(output, "assetModuleFilename", "[hash][ext][query]");
<ide> D(output, "webassemblyModuleFilename", "[hash].module.wasm");
<del> D(output, "publicPath", tp ? (tp.web ? "auto" : "") : "");
<ide> D(output, "compareBeforeEmit", true... | 1 |
Text | Text | change the wordking from '給它` to '采用' | 1208fa17f3b75b5c4b9577b05dfda54d2dbf3793 | <ide><path>curriculum/challenges/chinese/01-responsive-web-design/responsive-web-design-projects/build-a-personal-portfolio-webpage.chinese.md
<ide> localeTitle: 建立个人作品集网页
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">Co... | 1 |
Python | Python | restore state of _ml.py | 85794c1167a2f15569003d04fe51211c22e747fe | <ide><path>spacy/_ml.py
<ide> from thinc.neural.ops import NumpyOps, CupyOps
<ide> from thinc.neural.util import get_array_module
<ide> import random
<add>import cytoolz
<ide>
<ide> from thinc.neural._classes.convolution import ExtractWindow
<ide> from thinc.neural._classes.static_vectors import StaticVectors
<ide>
<... | 1 |
Javascript | Javascript | make socket destroy() re-entrance safe | d2de8ba34dc57d78a0bd0fedc4bd05e5c4457bac | <ide><path>lib/net.js
<ide> Socket.prototype._destroy = function(exception, cb) {
<ide> this._handle = null;
<ide> }
<ide>
<del> fireErrorCallbacks();
<add> // we set destroyed to true before firing error callbacks in order
<add> // to make it re-entrance safe in case Socket.prototype.destroy()
<add> // is c... | 2 |
Python | Python | fix cli for multitask objectives | 86405e4ad1ea443c231a9a5a22b23959d8ddcd42 | <ide><path>spacy/cli/train.py
<ide> no_tagger=("Don't train tagger", "flag", "T", bool),
<ide> no_parser=("Don't train parser", "flag", "P", bool),
<ide> no_entities=("Don't train NER", "flag", "N", bool),
<del> parser_multitasks=("Side objectives for parser CNN, e.g. dep dep,tag", "option", "pt", ","),
... | 1 |
Javascript | Javascript | add names to components in amp example | 96f8455a03b7d4832929909396ebcb2e8bb5169f | <ide><path>examples/amp/components/Byline.js
<del>export default ({ author }) => (
<del> <>
<del> <div className="byline">By {author}</div>
<del> <style jsx>{`
<del> .byline {
<del> color: green;
<del> font-weight: bolder;
<del> }
<del> `}</style>
<del> </>
<del>)
<add>export default ... | 4 |
Python | Python | remove unnecessary flags | cd00b9a7c367506397bc8752c95d27c31dffbd49 | <ide><path>official/transformer/v2/misc.py
<ide> def define_transformer_flags():
<ide> default=False,
<ide> help=flags_core.help_wrap(
<ide> 'Whether the model runs with custom training loop.'))
<del> flags.DEFINE_bool(
<del> name='use_tpu_2vm_config',
<del> default=False,
<del> he... | 3 |
Text | Text | add a changelog entry for [ci skip] | 84c1b107b9daab90b3ccf520f0f09752e4eaf425 | <ide><path>actionpack/CHANGELOG.md
<add>* Silence Puma start-up messages running system tests.
<add>
<add> Fixes #28109.
<add>
<add> *Yuji Yaginuma* (#28284)
<add>
<ide> * Commit flash changes when using a redirect route.
<ide>
<ide> Fixes #27992. | 1 |
Text | Text | update devops guide | d9054df0a4aa148475cb85ca646ba911dac5daa9 | <ide><path>docs/devops.md
<ide> The dev-team merges changes from the `production-staging` branch to `production-
<ide>
<ide> We use Azure Pipelines and other CI software (Travis, GitHub Actions), to continiously test and deploy our applications.
<ide>
<del>### Triggering a build and deplyment
<add>### Triggering a bu... | 1 |
Python | Python | show rendered templates from the cli | 265d47c4b10a4c1a0c77edb2296a54b923e31a4f | <ide><path>airflow/bin/cli.py
<ide> import logging
<ide> import os
<ide> import subprocess
<add>import textwrap
<ide> from datetime import datetime
<ide>
<ide> from builtins import input
<ide> def list_tasks(args):
<ide>
<ide>
<ide> def test(args):
<del>
<ide> args.execution_date = dateutil.parser.parse(args.exe... | 2 |
Javascript | Javascript | fix error logging in getderivedstatefromprops | 20da1dae4b9523ee94dc67797b11ec789e3acc68 | <ide><path>packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js
<ide> describe('ReactErrorBoundaries', () => {
<ide> expect(container3.firstChild).toBe(null);
<ide> });
<ide>
<add> it('logs a single error when using error boundary', () => {
<add> const container = document.createElement('di... | 4 |
PHP | PHP | correct doc blocks | 6f535295206d5421626e522e0b09a949d439df53 | <ide><path>lib/Cake/View/Helper/NumberHelper.php
<ide> public function __construct(View $View, $settings = array()) {
<ide>
<ide> /**
<ide> * Call methods from CakeNumber utility class
<add> *
<ide> * @return mixed Whatever is returned by called method, or false on failure
<ide> */
<ide> public function __call($me... | 1 |
Javascript | Javascript | address latest review comments by artur | b832aa5c1ec3a9874b68f090f9ea0d852165a6a7 | <ide><path>pdf.js
<ide> var Page = (function pagePage() {
<ide> // Firefox error reporting from XHR callbacks.
<ide> setTimeout(function pageSetTimeout() {
<ide> var exc = null;
<del> // try {
<add> try {
<ide> self.display(gfx, continuation);
<del> // } ... | 3 |
Mixed | Javascript | assign missing deprecation code | 360465dfe213aaf56cb81e1610d91aab2d53cf34 | <ide><path>doc/api/deprecations.md
<ide> The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
<ide> [`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
<ide> use the [WHATWG URL API][] instead.
<ide>
<del><a id="DEP00XX"></a>
<del>### DEP00XX: Native crypto handles
<add><a... | 2 |
Text | Text | add note of options.stdio into child_process | e08ac04a1a6bcfa792c2a164c753f4fb16fa09b8 | <ide><path>doc/api/child_process.md
<ide> pipes between the parent and child. The value is one of the following:
<ide> occurred).
<ide> 6. Positive integer - The integer value is interpreted as a file descriptor
<ide> that is currently open in the parent process. It is shared with the child
<del> process, simil... | 1 |
Python | Python | add missing docstring params | feddc517d7ea4a8f9403e430865df742237401dd | <ide><path>airflow/providers/airbyte/hooks/airbyte.py
<ide> def submit_sync_connection(self, connection_id: str) -> Any:
<ide> Submits a job to a Airbyte server.
<ide>
<ide> :param connection_id: Required. The ConnectionId of the Airbyte Connection.
<del> :type connectiond_id: str
<add> :... | 7 |
Mixed | Javascript | limit onhover to chartarea | 0ae0fd4b2a659f1ac3fde4ffd46608c3f747ca22 | <ide><path>docs/configuration/interactions.md
<ide> Namespace: `options`
<ide> | Name | Type | Default | Description
<ide> | ---- | ---- | ------- | -----------
<ide> | `events` | `string[]` | `['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']` | The `events` option defines the browser events that the chart... | 2 |
PHP | PHP | improve doc block | eacec3404a9dada6bfda13e4caf1a8c1d1d09e00 | <ide><path>src/Controller/Component/CheckHttpCacheComponent.php
<ide> * Use HTTP caching headers to see if rendering can be skipped.
<ide> *
<ide> * Checks if the response can be considered different according to the request
<del> * headers, and the caching response headers. If it was not modified, then the
<del> * ... | 1 |
Python | Python | introduce tests for urlize_quoted_links() function | ef1d65282771c806f68d717d57172597184db26c | <ide><path>rest_framework/tests/test_urlizer.py
<add>from __future__ import unicode_literals
<add>from django.test import TestCase
<add>from rest_framework.templatetags.rest_framework import urlize_quoted_links
<add>import sys
<add>
<add>
<add>class URLizerTests(TestCase):
<add> """
<add> Test if both JSON and YA... | 1 |
Python | Python | remove old seq2seq file | 61ed8890052eb628fe969ed440a38ff82577595c | <ide><path>transformers/modeling_seq2seq.py
<del># coding=utf-8
<del># Copyright 2018 The HuggingFace Inc. team.
<del>#
<del># Licensed under the Apache License, Version 2.0 (the "License");
<del># you may not use this file except in compliance with the License.
<del># You may obtain a copy of the License at
<del>#
<de... | 3 |
Python | Python | remove dropout in embedding layer of opt | adbf3a40de3524dcdce556914e2cb974d81854e5 | <ide><path>src/transformers/models/opt/modeling_flax_opt.py
<ide> def __call__(
<ide>
<ide> hidden_states = inputs_embeds + positions
<ide>
<del> hidden_states = self.dropout_layer(hidden_states, deterministic=deterministic)
<del>
<ide> hidden_state, all_hidden_states, attentions = self.layers(... | 3 |
Text | Text | fix opening bullets | 5cdb23c722dbec0a4a5f74f2b64250bf410db5e2 | <ide><path>guides/source/migrations.md
<ide> In this guide, you'll learn all about migrations including:
<ide>
<ide> * The generators you can use to create them
<ide> * The methods Active Record provides to manipulate your database
<del>* The Rake tasks that manipulate them
<del>* How they relate to `schema.rb`
<add>*... | 1 |
Ruby | Ruby | remove conditional that is always true | e87ff501932eb1baecafcca64518e3763597163e | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def rolledback!(force_restore_state: false, should_run_callbacks: true) #:nodoc:
<ide> # Add the record to the current transaction so that the +after_rollback+ and +after_commit+ callbacks
<ide> # can be called.
<ide> def add_to_transaction
<de... | 1 |
PHP | PHP | use eventinterface instead of event for typehints | 74c54232f663592a7f08d007a1a9a8cb71c3a26a | <ide><path>src/Auth/BaseAuthenticate.php
<ide> public function unauthenticated(ServerRequest $request, Response $response)
<ide> *
<ide> * - `Auth.afterIdentify` - Fired after a user has been identified using one of
<ide> * configured authenticate class. The callback function should have signature
<del... | 51 |
Text | Text | replace es6 by webpack in the integration docs | 9a295816b3ed406ff34d078746d8afd94d0b13a2 | <ide><path>docs/getting-started/integration.md
<ide>
<ide> Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.
<ide>
<del>## ES6 Modules
<del>
<del>```javascript
<del>import Chart from 'chart.js';
<del>var myChart = new ... | 1 |
Mixed | Python | remove useless code in doctests | 61eedc16c392823e46ef37cc2a86864fa15e89fe | <ide><path>backtracking/hamiltonian_cycle.py
<ide> def util_hamilton_cycle(graph: list[list[int]], path: list[int], curr_ind: int)
<ide> >>> curr_ind = 1
<ide> >>> util_hamilton_cycle(graph, path, curr_ind)
<ide> True
<del> >>> print(path)
<add> >>> path
<ide> [0, 1, 2, 4, 3, 0]
<ide>
<ide> C... | 21 |
Text | Text | specify woker node for docker swarm leave command | fd660e21bf6568c3f98424bdff3b9672cd2a3ef8 | <ide><path>docs/reference/commandline/swarm_leave.md
<ide> dkp8vy1dq1kxleu9g4u78tlag worker1 Ready Active Reachable
<ide> dvfxp4zseq4s0rih1selh0d20 * manager1 Ready Active Leader
<ide> ```
<ide>
<del>On a worker node:
<add>On a worker node, worker2 in the following example:
<ide> ```bash
<ide>... | 1 |
Python | Python | remove extra letter from docs | 41e14f938587f95c2c0091c05b850bbd5b86354b | <ide><path>numpy/doc/basics.py
<ide> >>> np.iinfo(np.int32) # Bounds of a 32-bit integer
<ide> iinfo(min=-2147483648, max=2147483647, dtype=int32)
<ide> >>> np.iinfo(np.int64) # Bounds of a 64-bit integer
<del> iinfo(min=-9223372036854775808, max=9223372036854775807, dtype=int64)s
<add> iinfo(min=-922... | 1 |
PHP | PHP | fix import order | 061f54e319c72e320e9759860ef5a44fc37bda2b | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide> use Illuminate\Contracts\View\View;
<ide> use PHPUnit_Framework_Assert as PHPUnit;
<ide> use PHPUnit_Framework_ExpectationFailedException;
<del>use Symfony\Component\HttpFoundation\File\UploadedFile as SymfonyUploadedFile;
<ide> use Symfo... | 1 |
Python | Python | fix broken master - dlp | 1b533f617e2e0200597d114d7570f6c0d69da1a0 | <ide><path>airflow/providers/google/cloud/example_dags/example_dlp.py
<ide> "example_gcp_dlp_job", schedule_interval=None, start_date=days_ago(1), tags=["example", "dlp_job"]
<ide> ) as dag3: # [START howto_operator_dlp_create_job_trigger]
<ide> create_trigger = CloudDLPCreateJobTriggerOperator(
<del> p... | 2 |
PHP | PHP | add abstract methods for required driver features | be8b9669665246ca4186178d1c3b32f4cc93b467 | <ide><path>src/Database/Driver.php
<ide> public abstract function commitTransaction();
<ide> */
<ide> public abstract function rollbackTransaction();
<ide>
<add>/**
<add> * Get the SQL for releasing a save point.
<add> *
<add> * @param string $name The table name
<add> * @return string
<add> */
<add> public abstract... | 1 |
Python | Python | make test_histogramdd_too_many_bins a bit clearer | 5b466f329c536c2535ba867ff536062fcbaa5b60 | <ide><path>numpy/lib/tests/test_regression.py
<ide> def test_polydiv_type(self) :
<ide>
<ide> def test_histogramdd_too_many_bins(self) :
<ide> """Ticket 928."""
<del> assert_raises(ValueError, np.histogramdd, [np.ones(10)]*32)
<add> assert_raises(ValueError, np.histogramdd, np.ones((1,10)), b... | 1 |
Ruby | Ruby | add test for multiple suggested generator names | b3a16b61fa0b734523e5d225c88d50632b22e9f7 | <ide><path>railties/test/generators_test.rb
<ide> def test_generator_suggestions
<ide> assert_match "Maybe you meant 'migration'", output
<ide> end
<ide>
<add> def test_generator_multiple_suggestions
<add> name = :tas
<add> output = capture(:stdout){ Rails::Generators.invoke name }
<add> assert_match "... | 1 |
Javascript | Javascript | add showcase for xiaoxian | 2bb4e69382c91f97e838f51b3adeb8fa0d11ed62 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> icon: 'https://lh3.googleusercontent.com/H0SILVHcDUxSMoSQwMb2QYtLjTBCqvK5ZEjOEwKQQ-2qnRV6Hd9Hn-gtSGPaoIOPwA=w300-rw',
<ide> link: 'https://play.google.com/store/apps/details?id=com.biideal.biichat',
<ide> author: 'biideal Inc.'
<del> ... | 1 |
Javascript | Javascript | remove unused import from scrollviewviewconfig | 719d52fb6bd40892aca582eca5173346ee28f21b | <ide><path>Libraries/Components/ScrollView/ScrollViewViewConfig.js
<ide>
<ide> 'use strict';
<ide>
<del>import {} from '../../Utilities/differ/pointsDiffer';
<del>
<ide> import type {GeneratedViewConfig} from '../../Utilities/registerGeneratedViewConfig';
<ide>
<ide> const ScrollViewViewConfig = { | 1 |
Python | Python | raise diff tolerance value for tfvitmaemodeltest | 2b483230a1f79e2127b62032ef42d388ba1f991f | <ide><path>tests/vit_mae/test_modeling_tf_vit_mae.py
<ide> def check_outputs(tf_outputs, pt_outputs, model_class, names):
<ide> tf_outputs[pt_nans] = 0
<ide>
<ide> max_diff = np.amax(np.abs(tf_outputs - pt_outputs))
<del> self.assertLessEqual(max_diff, 1e-5)
<add> ... | 1 |
Text | Text | clarify file naming in release verification doc | efdfd15477f92da059fa86b4fa18b6f29cb97feb | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> The files should be present in the sub-folder of
<ide>
<ide> The following files should be present (9 files):
<ide>
<del>* -bin-tar.gz + .asc + .sha512
<ide> * -source.tar.gz + .asc + .sha512
<del>* -.whl + .asc + .sha512
<add>* .tar.gz + .asc + .sha512
<add>* -py3-none-... | 3 |
Ruby | Ruby | improve the performance of writing attributes | c879649a733d982fba9e70f5a280d13636b67c37 | <ide><path>activerecord/lib/active_record/attribute_methods/primary_key.rb
<ide> def id
<ide> # Sets the primary key value.
<ide> def id=(value)
<ide> sync_with_transaction_state
<del> write_attribute(self.class.primary_key, value) if self.class.primary_key
<add> _write_attribute(self.... | 4 |
Go | Go | implement docker volume with standalone client lib | 73bca058ae5d1e4ad2b94835fb1593ba3ca3983b | <ide><path>api/client/lib/volume.go
<add>package lib
<add>
<add>import (
<add> "encoding/json"
<add> "net/url"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/pkg/parsers/filters"
<add>)
<add>
<add>// VolumeList returns the volumes configured in the docker host.
<add>func (cli *Client) ... | 2 |
PHP | PHP | improve function `retry()` | ba6e666dc7c5ed84213472387fe0851f625d131a | <ide><path>src/Illuminate/Support/helpers.php
<ide> function preg_replace_array($pattern, array $replacements, $subject)
<ide> function retry($times, callable $callback, $sleep = 0, $when = null)
<ide> {
<ide> $attempts = 0;
<del> $times--;
<ide>
<ide> beginning:
<ide> $attempts+... | 1 |
Text | Text | fix example comment spacings | 521138726b66e7d519f415018eefb345e3d5c9e4 | <ide><path>guide/english/javascript/logical-operators/index.md
<ide> If the first evaluates as ["falsy"](https://developer.mozilla.org/en-US/docs/Glo
<ide>
<ide> When only involving boolean values (either `true` or `false`), it returns true if only if both expressions are true. If one or both expressions are false, th... | 1 |
Ruby | Ruby | use xcode 10.2 for new taps too | 9050d0a7b1f4f2126beb152212be34fe419c5297 | <ide><path>Library/Homebrew/dev-cmd/tap-new.rb
<ide> def tap_new
<ide> steps:
<ide> - bash: |
<ide> set -e
<del> sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
<add> sudo xcode-select --switch /Applications/Xcode_10.2.app/Contents/Dev... | 1 |
Text | Text | revise description of process.ppid | dcf708d6526d0707c15e786797bcf11e22a15f08 | <ide><path>doc/api/process.md
<ide> added:
<ide>
<ide> * {integer}
<ide>
<del>The `process.ppid` property returns the PID of the current parent process.
<add>The `process.ppid` property returns the PID of the parent of the
<add>current process.
<ide>
<ide> ```js
<ide> console.log(`The parent process is pid ${process... | 1 |
Ruby | Ruby | add check for outdated compilers | 4dc1a7bdce4d2b311c2ca2507ecdd5654a813f2b | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_cc
<ide> end
<ide> end
<ide>
<add>def check_standard_compilers
<add> return if check_for_latest_xcode # only check if Xcode is up to date
<add> if !MacOS.compilers_standard? then <<-EOS.undent
<add> Your compilers are different from the standard versions... | 2 |
Ruby | Ruby | remove unused guard in canonical_name | 9903e7cd92397323fdfaa05f778d5f16ae27e9d6 | <ide><path>Library/Homebrew/formula.rb
<ide> def self.aliases
<ide> end
<ide>
<ide> def self.canonical_name name
<del> name = name.to_s if name.kind_of? Pathname
<del>
<ide> # if name includes a '/', it may be a tap reference, path, or URL
<ide> if name.include? "/"
<ide> if name =~ %r{(.+)/(.+)/(... | 1 |
Ruby | Ruby | pass the link mode to resolve_any_conflicts | 75af625c17867d6336096e43dadf5a668e3f436b | <ide><path>Library/Homebrew/keg.rb
<ide> def delete_pyc_files!
<ide>
<ide> protected
<ide>
<del> def resolve_any_conflicts dst
<add> def resolve_any_conflicts dst, mode
<ide> # if it isn't a directory then a severe conflict is about to happen. Let
<ide> # it, and the exception that is generated will messa... | 1 |
Text | Text | remove mentions of airflow gitter | 27339a5a0f9e382dbc7d32a128f0831a48ef9a12 | <ide><path>airflow/providers/apache/hive/example_dags/example_twitter_README.md
<ide> CREATE TABLE toTwitter_A(id BIGINT, id_str STRING
<ide>
<ide> When you review the code for the DAG, you will notice that these tasks are generated using for loop. These two for loops could be combined into one loop. However, in most ... | 1 |
Javascript | Javascript | combine flags and subtreeflags types | 7baf9d4128d41903de125527b50285ea9862cf9a | <ide><path>packages/react-reconciler/src/ReactFiber.new.js
<ide> import {
<ide> enableBlocksAPI,
<ide> } from 'shared/ReactFeatureFlags';
<ide> import {NoFlags, Placement, StaticMask} from './ReactFiberFlags';
<del>import {NoFlags as NoSubtreeEffect} from './ReactSubtreeFlags';
<ide> import {ConcurrentRoot, BlockingR... | 6 |
PHP | PHP | add missing throws docblocks | 99da7163fa53631b0449b11569fddc660e4806a7 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> public function guard($name = null)
<ide> *
<ide> * @param string $name
<ide> * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
<add> *
<add> * @throws \InvalidArgumentException
<ide> */
<ide> protec... | 27 |
Javascript | Javascript | add newline at end of file | c57b480e7b7f93c8808bfcd0bd9735e0cb774e26 | <ide><path>utils/modularize.js
<ide> function convert( path, ignoreList ) {
<ide>
<ide> var keys = Object.keys( dependencies ).sort().map( value => '\n\t' + value ).toString();
<ide> var imports = `import {${keys}\n} from "../../../build/three.module.js";`;
<del> var exports = `export { ${className} };`;
<add> var e... | 1 |
Python | Python | improve the return value | aeafa0c28c611bb12efd1fa1c00fe035f9ded23f | <ide><path>libcloud/compute/drivers/hostvirtual.py
<ide> def reboot_node(self, node):
<ide> API_ROOT + '/cloud/server/reboot',
<ide> data=json.dumps(params),
<ide> method='POST').object
<del> if result:
<del> return True
<add>
<add> return bool(result)
<ide> ... | 1 |
Javascript | Javascript | remove unnecessary subscriptions | 5bd24d9e0581cf50dce575ba169bc18c1d7c530e | <ide><path>src/workspace.js
<ide> module.exports = class Workspace extends Model {
<ide> deserializerManager: this.deserializerManager,
<ide> viewRegistry: this.viewRegistry
<ide> })
<del> this.paneContainer.onDidDestroyPaneItem(this.didDestroyPaneItem)
<ide>
<ide> this.defaultDirectorySearcher ... | 1 |
PHP | PHP | add rough implementation of mocked responses | bbdd7f9d63f6c9fce25aac5f2b2a969f1d827b81 | <ide><path>src/Http/Client.php
<ide> use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Http\Client\Adapter\Curl;
<ide> use Cake\Http\Client\Adapter\Stream;
<add>use Cake\Http\Client\Adapter\Mock as MockAdapter;
<ide> use Cake\Http\Client\AdapterInterface;
<ide> use Cake\Http\Client\Request;
<ide> use Cake\Http\Client\R... | 3 |
PHP | PHP | adapt assertredirectnotcontains to use constraints | de8c639ed569e565b3fcc43a9d32e35fff88ee57 | <ide><path>src/TestSuite/IntegrationTestTrait.php
<ide> use Cake\TestSuite\Constraint\Response\FileSentAs;
<ide> use Cake\TestSuite\Constraint\Response\HeaderContains;
<ide> use Cake\TestSuite\Constraint\Response\HeaderEquals;
<add>use Cake\TestSuite\Constraint\Response\HeaderNotContains;
<ide> use Cake\TestSuite\Const... | 2 |
Go | Go | fix a typo | 1d61f11e34ba6f1efdfd29a03d92181586bdcb93 | <ide><path>cli/command/registry/search.go
<ide> func NewSearchCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> flags.BoolVar(&opts.automated, "automated", false, "Only show automated builds")
<ide> flags.UintVarP(&opts.stars, "stars", "s", 0, "Only displays with at least x stars")
<ide>
<del> flags.MarkD... | 1 |
Javascript | Javascript | remove raf export from reactdomframescheduling | 372445735eda4d7960419947c49499019adb79db | <ide><path>src/renderers/shared/ReactDOMFrameScheduling.js
<ide> import type {Deadline} from 'ReactFiberReconciler';
<ide> var invariant = require('fbjs/lib/invariant');
<ide> var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');
<ide>
<del>// TODO: There's no way to cancel these, because Fiber doesn't ... | 1 |
Python | Python | add int_shape to theano backend | 766572b5b8c0617e1261809f1916d29bb770a769 | <ide><path>keras/backend/theano_backend.py
<ide> def to_dense(tensor):
<ide>
<ide>
<ide> def variable(value, dtype=None, name=None):
<del> '''Instantiates a variable.
<add> '''Instantiates a variable and returns it.
<add>
<add> # Arguments
<add> value: Numpy array, initial value of the tensor.
<add> ... | 1 |
Python | Python | add speed benchmarks to metadata | 0f41b25f60d1681edbb2ab74d4e23ccd45516b61 | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=10, n_sents=0,
<ide> nlp.to_disk(epoch_model_path)
<ide> nlp_loaded = lang_class(pipeline=pipeline)
<ide> nlp_loaded = nlp_loaded.from_disk(epoch_model_path)
<del> ... | 1 |
Javascript | Javascript | replace symbol.species by symbolspecies | 437b6d5d4fb00c40575e03fd040c8a663e9cc7b1 | <ide><path>lib/buffer.js
<ide> const {
<ide> ObjectDefineProperties,
<ide> ObjectDefineProperty,
<ide> ObjectSetPrototypeOf,
<del> Symbol,
<add> SymbolSpecies,
<ide> SymbolToPrimitive,
<ide> } = primordials;
<ide>
<ide> function Buffer(arg, encodingOrOffset, length) {
<ide> return Buffer.from(arg, encoding... | 1 |
Java | Java | fix checkbox casting crash in old android versions | 58437cd10a667bbcbc16781df855fd7c3d73bf49 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxManager.java
<ide> */
<ide> package com.facebook.react.views.checkbox;
<ide>
<add>import android.content.Context;
<add>import android.support.v7.widget.TintContextWrapper;
<ide> import android.widget.CompoundButton;
<ide> import com.... | 1 |
Python | Python | add rankine scale | 99b40e2a267045a7e3d69acc338b85c525f51eda | <ide><path>conversions/temperature_conversions.py
<ide> """ Convert between different units of temperature """
<ide>
<ide>
<del>def celsius_to_fahrenheit(celsius: float) -> float:
<add>def celsius_to_fahrenheit(celsius: float, ndigits: int = 2) -> float:
<ide> """
<ide> Convert a given value from Celsius to F... | 1 |
PHP | PHP | fix psalm errors | b72f27a962b4fd04ff0e2b36eb4d1685567f2620 | <ide><path>src/View/Exception/MissingTemplateException.php
<ide> class MissingTemplateException extends CakeException
<ide> {
<ide> /**
<del> * @var string
<add> * @var string|null
<ide> */
<ide> protected $templateName;
<ide>
<ide> public function __construct($file, array $paths = [], ?int $code ... | 1 |
Javascript | Javascript | fix return value in reject code example | ed2fe07eac1f94efd5e849233ceeeba95776c9b3 | <ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js
<ide> const ArrayMixin = Mixin.create(Enumerable, {
<ide> ];
<ide> const nonFruits = food.reject(function(thing) {
<ide> return thing.isFruit;
<del> }); // [{food: 'beans', isFruit: false}]
<add> }); // [{food: 'bread', isFruit: false... | 1 |
Text | Text | update bibtex entry | 8fc5b90e9a8c6d6fcedf35bad1c6692e40c92f74 | <ide><path>docs/templates/getting-started/faq.md
<ide> Please cite Keras in your publications if it helps your research. Here is an exa
<ide>
<ide> ```
<ide> @misc{chollet2015keras,
<del> author = {Chollet, Francois},
<del> title = {Keras},
<del> year = {2015},
<del> publisher = {GitHub},
<del> journal = {GitHub ... | 1 |
Ruby | Ruby | remove specs accessor | 460e8055923068b4438de2137f34320fb1173010 | <ide><path>Library/Homebrew/formula.rb
<ide> def validate_attributes(*attrs)
<ide>
<ide> def url; active_spec.url; end
<ide> def version; active_spec.version; end
<del> def specs; active_spec.specs; end
<ide> def mirrors; active_spec.mirrors; end
<ide>
<ide> # if the dir is there, but it's em... | 1 |
Javascript | Javascript | fix argument order in assertions | 6b3b64fa73ea31aa68ffc88f3d61ce4b8317809d | <ide><path>test/pummel/test-net-timeout.js
<ide> echo_server.listen(common.PORT, function() {
<ide> });
<ide>
<ide> client.on('data', function(chunk) {
<del> assert.strictEqual('hello\r\n', chunk);
<add> assert.strictEqual(chunk, 'hello\r\n');
<ide> if (exchanges++ < 5) {
<ide> setTimeout(function(... | 1 |
Javascript | Javascript | remove rtl scraping from preparse | db2d2a837fcd22bb790b591925a6453256fdcfd6 | <ide><path>src/locale/ar-ly.js
<ide> export default moment.defineLocale('ar-ly', {
<ide> yy : pluralize('y')
<ide> },
<ide> preparse: function (string) {
<del> return string.replace(/\u200f/g, '').replace(/،/g, ',');
<add> return string.replace(/،/g, ',');
<ide> },
<ide> postformat... | 4 |
Text | Text | add rexagod to collaborators | 78cd10860818725a1197b34a76e8b8cc81f53326 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Stephen Belanger** <admin@stephenbelanger.com> (he/him)
<ide> * [refack](https://github.com/refack) -
<ide> **Refael Ackermann (רפאל פלחי)** <refack@gmail.com> (he/him/הוא/אתה)
<add>* [rexagod](https://github... | 1 |
Javascript | Javascript | remove duplicate "required" export | ef2e3fdd3ec46506d29c70fecf00d508351a873d | <ide><path>packages/ember-metal/lib/mixin.js
<ide> export function _beforeObserver(...args) {
<ide>
<ide> export {
<ide> Mixin,
<del> required,
<ide> REQUIRED
<ide> }; | 1 |
Javascript | Javascript | fix unit tests in open source environment | d3f2081d9091179ed0ac6511c6c660947b950e45 | <ide><path>Libraries/Animated/src/Interpolation.js
<ide> /* eslint no-bitwise: 0 */
<ide> 'use strict';
<ide>
<add>var invariant = require('fbjs/lib/invariant');
<ide> var normalizeColor = require('normalizeColor');
<ide>
<del>// TODO(#7644673): fix this hack once github jest actually checks invariants
<del>var invar... | 2 |
Text | Text | fix typo in swc plugin destructuring example | fa1261cbfbc79fa3f6c491a186b18204d6b71847 | <ide><path>docs/advanced-features/compiler.md
<ide> You can configure swc's transform to use SWC's experimental plugin support writt
<ide> module.exports = {
<ide> experimental: {
<ide> swcPlugins: [
<del> ['plugin', {
<del> ..pluginOptions
<del> }]
<del> ]
<del> }
<add> [
<add> '... | 1 |
Javascript | Javascript | make _cycle reentrant | 19b4c27ebf6d0b1aa2ded64d57fa44ec70e8756e | <ide><path>lib/tls.js
<ide> CryptoStream.prototype.write = function(data /* , encoding, cb */) {
<ide> this._pending.push(data);
<ide> this._pendingCallbacks.push(cb);
<ide>
<add> this.pair._writeCalled = true;
<ide> this.pair._cycle();
<add>
<ide> return this._writeState;
<ide> };
<ide>
<ide> SecurePair.pro... | 1 |
Javascript | Javascript | switch ordering of logical and | e2e7fcce7e137e6e6fbc23cfadea1a0abaa0e6ce | <ide><path>packages/react-dom/src/shared/DOMProperty.js
<ide> export function shouldSetAttribute(name, value) {
<ide> return false;
<ide> }
<ide> if (
<add> name.length > 2 &&
<ide> (name[0] === 'o' || name[0] === 'O') &&
<del> (name[1] === 'n' || name[1] === 'N') &&
<del> name.length > 2
<add> ... | 1 |
Go | Go | update windows and lcow to use v1.0.0 runtime-spec | 7c29103ad9b4e02ecc6cdde01da9c3675a377fc4 | <ide><path>daemon/monitor_windows.go
<ide> func (daemon *Daemon) postRunProcessing(container *container.Container, e libcon
<ide> return err
<ide> }
<ide>
<del> newOpts := []libcontainerd.CreateOption{&libcontainerd.ServicingOption{
<del> IsServicing: true,
<del> }}
<add> // Turn on servicing
<add> spec.Win... | 8 |
Text | Text | fix wordy sentence | 1917ba851bd8851a3f27f56b1c1f4b5476cdc124 | <ide><path>doc/guides/contributing/code-of-conduct.md
<ide> All contributors to Node.js tacitly agree to abide by both the letter and
<ide> spirit of the [Code of Conduct][]. Failure, or unwillingness, to do so will
<ide> result in contributions being respectfully declined.
<ide>
<del>A *bad actor* is someone who repe... | 1 |
Javascript | Javascript | fix bug with metamorph views and outlets | 3c489d6f3263895c672692b9b3b171fea7191924 | <ide><path>packages/ember-routing/lib/handlebars_ext.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide> property = 'main';
<ide> }
<ide>
<del> options.hash.currentViewBinding = "view._outlets." + property;
<add> options.hash.currentViewBinding = "_view._outlets." + property;
<ide>
... | 3 |
Javascript | Javascript | use requirerepl() to load debugger repl | 616343bc61d389cae571191c52abe97708878570 | <ide><path>lib/_debugger.js
<ide> var util = require('util'),
<ide> path = require('path'),
<ide> net = require('net'),
<ide> vm = require('vm'),
<del> repl = require('repl'),
<add> module = require('module'),
<add> repl = module.requireRepl(),
<ide> inherits = util.inherits,
<ide> assert =... | 2 |
Text | Text | fix text for dep0085 | 0b03d91d62afba2b0e52633982dbbd0dcf3c38a6 | <ide><path>doc/api/deprecations.md
<ide> code modification is necessary if that is done.
<ide>
<ide> Type: End-of-Life
<ide>
<del>The AsyncHooks Sensitive API was never documented and had various of minor
<del>issues, see https://github.com/nodejs/node/issues/15572. Use the `AsyncResource`
<add>The AsyncHooks Sensiti... | 1 |
Text | Text | adjust changelog to clarify `client` revert | d29034b34b97a0c23e93e9d40feae132c622c0fd | <ide><path>CHANGELOG.md
<ide>
<ide> ### Notable changes
<ide>
<del>* **http**: reverts the removal of an undocumented `client` property on client connections, this property is being used in the wild, most notably by [request](https://github.com/request/request) which is used by npm. (Michaël Zasso) [#1852](https://gi... | 1 |
PHP | PHP | accomodate immutable dates and use named formats | 8deb66f03c2151c78727a221e6f30bc16c77be28 | <ide><path>src/I18n/DateFormatTrait.php
<ide> public function jsonSerialize()
<ide> public function __debugInfo()
<ide> {
<ide> return [
<del> 'time' => $this->format(DateTime::ISO8601),
<add> 'time' => $this->toIso8601String(),
<ide> 'timezone' => $this->getTimezone()-... | 3 |
Text | Text | add changelog entry for | bf545b73b74dd9f66fcf300a7a3fa6528511ed5b | <ide><path>actionview/CHANGELOG.md
<add>* Remove legacy default `media=screen` from `stylesheet_link_tag`.
<add>
<add> *André Luis Leal Cardoso Junior*
<add>
<ide> * Change `ActionView::Helpers::FormBuilder#button` to transform `formmethod`
<ide> attributes into `_method="$VERB"` Form Data to enable varied s... | 1 |
Go | Go | use prefix naming for ps tests | 00b82fcab6492a853958a3a5f43f95469a60e12f | <ide><path>integration-cli/docker_cli_ps_test.go
<ide> import (
<ide> "time"
<ide> )
<ide>
<del>func TestListContainers(t *testing.T) {
<add>func TestPsListContainers(t *testing.T) {
<ide> runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "top")
<ide> out, _, err := runCommandWithOutput(runCmd)
<ide> er... | 1 |
Python | Python | remove db call from `databrickshook.__init__()` | 66f94f95c2e92baad2761b5a1fa405e36c17808a | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide> def __init__(
<ide> ) -> None:
<ide> super().__init__()
<ide> self.databricks_conn_id = databricks_conn_id
<del> self.databricks_conn = self.get_connection(databricks_conn_id)
<del> if 'host' in self.databricks_conn.extr... | 1 |
Javascript | Javascript | update event dispatcher to use sc.eventmanager api | e39d5f81ea9a2cd0e66c669200930042c6f17ed2 | <ide><path>packages/sproutcore-views/lib/system/event_dispatcher.js
<ide> SC.EventDispatcher = SC.Object.extend(
<ide> setupHandler: function(rootElement, event, eventName) {
<ide> rootElement.delegate('.sc-view', event + '.sproutcore', function(evt) {
<ide> var view = SC.View.views[this.id],
<del> ... | 1 |
Ruby | Ruby | add constants for json files | 4ae72e0bdfeab8258da4caf4103f75ec14c8b09c | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> audit_tap_audit_exceptions
<ide> end
<ide>
<del> HOMEBREW_TAP_JSON_FILES = %w[
<del> formula_renames.json
<del> tap_migrations.json
<del> audit_exceptions/*.json
<del> ].freeze
<del>
<ide> def audit_json_files
<del> ... | 2 |
Text | Text | update installation from binaries for 1.11 | f5336c737086a4c1807bb2b6ab57116b5ed9d769 | <ide><path>docs/installation/binaries.md
<ide> weight = 110
<ide> +++
<ide> <![end-metadata]-->
<ide>
<del># Binaries
<add># Installation from binaries
<ide>
<ide> **This instruction set is meant for hackers who want to try out Docker
<ide> on a variety of environments.**
<ide> exhibit unexpected behaviour.
<ide> > v... | 1 |
Javascript | Javascript | add reference to module | d96f03d9470321996cad163b61bac37e41c89d9a | <ide><path>examples/js/loaders/DRACOLoader.js
<ide> THREE.DRACOLoader = function(manager) {
<ide> this.materials = null;
<ide> };
<ide>
<add>const DracoModule = Module;
<ide>
<ide> THREE.DRACOLoader.prototype = {
<ide>
<ide> THREE.DRACOLoader.prototype = {
<ide> */
<ide> const geometryType = wra... | 1 |
Ruby | Ruby | check bind for development versions | 57fa2137b29a2f93a478a2038af626c0949fa306 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> problem "#{stable.version} is a development release" if minor_version.odd?
<ide> end
<ide> end
<add>
<add> case formula.name
<add> when /bind/
<add> version = Version.parse(stable.url)
<add> return i... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.