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 | fix whitespace and jslint for core object | 33f01b458ce5809270475429b9f9915e1765a9ed | <ide><path>packages/sproutcore-runtime/lib/system/core_object.js
<ide> function makeCtor() {
<ide> // Note: avoid accessing any properties on the object since it makes the
<ide> // method a lot faster. This is glue code so we want it to be as fast as
<ide> // possible.
<del>
<add>
<ide> var isPrepared = fals... | 1 |
Text | Text | update broken links | 8a4dabb5bdf29f22a091c9b63e8460f0b8bfba42 | <ide><path>guide/english/html/css-classes/index.md
<ide> You can also combine classes in the same line:
<ide> }
<ide> ```
<ide>
<del>You can see the result of the above code [here](https://codepen.io/Tlandis/pen/RLvomV'). Learn how to combine css classes using selectors [here](https://www.w3schools.com/css/css_combin... | 1 |
PHP | PHP | improve test case | 73a9935f2073b2218a5f5c1a7d7b4646b8f76970 | <ide><path>tests/TestCase/Console/ShellDispatcherTest.php
<ide> public function testDispatchShellWithIntegerSuccessCode()
<ide>
<ide> $dispatcher->args = ['mock_without_main', 'initdb'];
<ide> $result = $dispatcher->dispatch();
<del> $this->assertEquals(Shell::CODE_SUCCESS, $result);
<add> ... | 1 |
Javascript | Javascript | fix initialization with non routable statemanager | 2d876a6d1b4309a004246d7ec616a5faf93cfb05 | <ide><path>packages/ember-application/lib/system/application.js
<ide> Ember.Application = Ember.Namespace.extend(
<ide>
<ide> this.ready();
<ide>
<del> if (stateManager) {
<add> if (stateManager && stateManager instanceof Ember.Router) {
<ide> this.setupStateManager(stateManager);
<ide> }
<ide> ... | 2 |
Javascript | Javascript | fix production test compatibility for ie11 | d23d25f4b7770ac713de41e97e6d3e3937adea46 | <ide><path>test/integration/production/test/dynamic.js
<ide> export default (context, render) => {
<ide> const firstElement = await browser.elementById('with-css')
<ide> const css1 = await firstElement.getComputedCss('display')
<ide> expect(css1).toBe('flex')
<del> await browser.e... | 1 |
Python | Python | remove print statements in tests | 796b2f4c1b49401f7cb490df174fe32f0186bc56 | <ide><path>spacy/tests/regression/test_issue693.py
<ide> def test_issue693(EN):
<ide> doc2 = EN(text2)
<ide> chunks1 = [chunk for chunk in doc1.noun_chunks]
<ide> chunks2 = [chunk for chunk in doc2.noun_chunks]
<del> for word in doc1:
<del> print(word.text, word.dep_, word.head.text)
<ide> ass... | 2 |
Javascript | Javascript | add new line feed | eab88a792b292e214411386aa11a5912980f5240 | <ide><path>src/test/moment/instanceof.js
<ide> test('instanceof', function (assert) {
<ide> assert.equal(NaN instanceof moment, false, 'NaN is not moment object');
<ide> assert.equal(null instanceof moment, false, 'null is not moment object');
<ide> assert.equal(undefined instanceof moment, false, 'undefine... | 1 |
Text | Text | add note about statuscode config for redirects | 571e2a7cff1e5b3ba3898fd8dd67ba29766dff67 | <ide><path>docs/api-reference/next.config.js/redirects.md
<ide> module.exports = {
<ide> },
<ide> }
<ide> ```
<add>
<add>In some rare cases, you might need to assign a custom status code for older HTTP Clients to properly redirect. In these cases, you can use the `statusCode` property instead of the `permanent` prope... | 1 |
PHP | PHP | add emailregex property to cakeemail | 202b753c63703ea513744a060f7a60ae64a0a090 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> class CakeEmail {
<ide> 'ISO-2022-JP-MS' => 'ISO-2022-JP'
<ide> );
<ide>
<add>/**
<add> * Regex for email validation
<add> * If null, it will use built in regex
<add> *
<add> * @var string
<add> */
<add> protected $_emailRegex = null;
<add>
<ide> /**
<ide> * Co... | 2 |
Text | Text | fix missing argument for dns.resolveptr() | c0953945a82d01250f27a9f3f07460983fe54a13 | <ide><path>doc/api/dns.md
<ide> Uses the DNS protocol to resolve name server records (`NS` records) for the
<ide> contain an array of name server records available for `hostname`
<ide> (e.g. `['ns1.example.com', 'ns2.example.com']`).
<ide>
<del>## dns.resolvePtr(hostname)
<add>## dns.resolvePtr(hostname, callback)
<id... | 1 |
Text | Text | update index.md minor changes | f996db7a524088ce6f0264e7ca4ba639e481eaf4 | <ide><path>guide/portuguese/c/arrays/index.md
<ide> localeTitle: Matrizes
<ide>
<ide> ## Problemas
<ide>
<del>Antes de tentar explicar quais são os arrays, vamos ver o código onde queremos imprimir 10 números dados pelo usuário na ordem inversa.
<add>Antes de tentar explicar quais são os arrays(vetores), vamos ver o ... | 1 |
Go | Go | use v2 capabilities in layer archives | 95eb4907805b0c8650cc1bce01844162c2c84c4a | <ide><path>integration/build/build_userns_linux_test.go
<ide> func TestBuildUserNamespaceValidateCapabilitiesAreV2(t *testing.T) {
<ide> _, err = stdcopy.StdCopy(actualStdout, actualStderr, logReader)
<ide> assert.NilError(t, err)
<ide> if strings.TrimSpace(actualStdout.String()) != "/bin/sleep cap_net_bind_service=... | 2 |
Ruby | Ruby | use the provided block to filter lists | 8b9733d7358f22409c86f8849faabab7f5c53881 | <ide><path>railties/lib/rails/paths.rb
<ide> def load_paths
<ide>
<ide> protected
<ide>
<del> def filter_by
<del> all = []
<del> all_paths.each do |path|
<del> if yield(path)
<del> paths = path.existent
<del> paths -= path.children.map { |p| yield(p) ? [] : p.exi... | 1 |
PHP | PHP | simplify mocking assertions. | 5164e0e83ab7d580124c9b777f12c88d6c5ced06 | <ide><path>tests/Database/DatabaseConnectorTest.php
<ide> public function testPostgresSearchPathCommaSeparatedValueSupported()
<ide> $config = ['host' => 'foo', 'database' => 'bar', 'search_path' => 'public, "user"', 'charset' => 'utf8'];
<ide> $connector = $this->getMockBuilder('Illuminate\Database\Con... | 4 |
Ruby | Ruby | expand `formulary` test coverage | dd516e4355f6a22f21cc8cc15546162c3df57473 | <ide><path>Library/Homebrew/test/formulary_spec.rb
<ide> def install
<ide> end
<ide> RUBY
<ide> end
<del> let(:formula_json_contents) do
<del> {
<del> formula_name => {
<del> "desc" => "testball",
<del> "homepage" => "https://example.com",
<del> ... | 1 |
Text | Text | clarify version map | 60a86747bbb41ad23cf29f2237e92d1de1049f09 | <ide><path>README.md
<ide> a starting point. For existing applications you can run the following:
<ide> $ composer require cakephp/cakephp
<ide> ```
<ide>
<add>For details on the (minimum/maximum) PHP version see [version map](https://github.com/cakephp/cakephp/wiki#version-map).
<add>
<ide> ## Running Tests
<ide>
<i... | 1 |
Javascript | Javascript | implement .setgrammar in terms of .setlanguagemode | d1468fddd9276925ab6602c59b529b4a6db5c9d4 | <ide><path>src/text-editor.js
<ide> class TextEditor {
<ide> //
<ide> // * `grammar` {Grammar}
<ide> setGrammar (grammar) {
<del> atom.grammars.assignLanguageMode(this.getBuffer(), grammar.name)
<add> const buffer = this.getBuffer()
<add> buffer.setLanguageMode(atom.grammars.languageModeForGrammarAndBuff... | 1 |
Python | Python | stack outputs instead of concat outputs | a9e998216fd08210ae566fefcb149576825ee5e8 | <ide><path>tutorials/rnn/ptb/ptb_word_lm.py
<ide> def attn_cell():
<ide> (cell_output, state) = cell(inputs[:, time_step, :], state)
<ide> outputs.append(cell_output)
<ide>
<del> output = tf.reshape(tf.concat(axis=1, values=outputs), [-1, size])
<add> output = tf.reshape(tf.stack(axis=1, values=o... | 1 |
Go | Go | add class to repository scope | a12b466183e03621bc9e1c1e4deab6db8ec93f0a | <ide><path>distribution/errors.go
<ide> func shouldV2Fallback(err errcode.Error) bool {
<ide> return false
<ide> }
<ide>
<del>func translatePullError(err error, ref reference.Named) error {
<add>// TranslatePullError is used to convert an error from a registry pull
<add>// operation to an error representing the entir... | 8 |
Ruby | Ruby | move pk initialization logic onto `attributeset` | b79593f84d0bc601a49e9f7470e862251b7bc145 | <ide><path>activerecord/lib/active_record/attribute_set.rb
<ide> def initialize_clone(_)
<ide> super
<ide> end
<ide>
<add> def ensure_initialized(key)
<add> unless self[key].initialized?
<add> write_from_database(key, nil)
<add> end
<add> end
<add>
<ide> protected
<ide>
<ide> ... | 2 |
Text | Text | update message to match actual output | 50bbc4e4039110b7429c182623cbfee4b35993d5 | <ide><path>doc/api/debugger.md
<ide> break in myscript.js:4
<ide> 5 }, 1000);
<ide> 6 console.log('hello');
<ide> debug> repl
<del>Press Ctrl + C to leave debug repl
<add>Press Ctrl+C to leave debug repl
<ide> > x
<ide> 5
<ide> > 2 + 2 | 1 |
Javascript | Javascript | move stackedsetmap into separate file | 25805470c1688676b7a8416bfa6eccf631c700a8 | <ide><path>lib/Parser.js
<ide>
<ide> // Syntax: https://developer.mozilla.org/en/SpiderMonkey/Parser_API
<ide>
<del>const util = require("util");
<ide> const acorn = require("acorn-dynamic-import").default;
<ide> const Tapable = require("tapable");
<ide> const json5 = require("json5");
<ide> const BasicEvaluatedExpre... | 2 |
Go | Go | make resolvescopedpath a free fn | a7c8fdc55bb30f9aeabf58a9865e0d40b52ca18c | <ide><path>builder/dockerfile/copy.go
<ide> type copyInfo struct {
<ide> }
<ide>
<ide> func (c copyInfo) fullPath() (string, error) {
<del> return c.root.ResolveScopedPath(c.path, true)
<add> return containerfs.ResolveScopedPath(c.root.Path(), c.path)
<ide> }
<ide>
<ide> func newCopyInfoFromSource(source builder.Sour... | 7 |
Text | Text | improve clarity in deprecate/disable/removal docs | 5784e36ead31f94e46b102323d05ef20b841a0f5 | <ide><path>docs/Deprecating-Disabling-and-Removing-Formulae.md
<ide> This general rule of thumb can be followed:
<ide>
<ide> ## Deprecation
<ide>
<del>If a user attempts to install a deprecated formula, they will be shown a warning message but the install will succeed.
<add>If a user attempts to install a deprecated ... | 1 |
Text | Text | fix broken link in vm.md | de9a84186e6da9e4e6ee9434aa89715bf3eb9172 | <ide><path>doc/api/vm.md
<ide> added: v0.3.1
<ide> * `sandbox` {Object}
<ide>
<ide> If given a `sandbox` object, the `vm.createContext()` method will [prepare
<del>that sandbox][#vm_what_does_it_mean_to_contextify_an_object] so that it can be
<del>used in calls to [`vm.runInContext()`][] or [`script.runInContext()`][]... | 1 |
Python | Python | turn 2 prints to py2/py3 compatible syntax | c810fae9e835ad446e7e9d61c12bbf2f6b597109 | <ide><path>scripts/flaskext_tester.py
<ide>
<ide>
<ide> def log(msg, *args):
<del> print '[EXTTEST]', msg % args
<add> print('[EXTTEST] ' + (msg % args))
<ide>
<ide>
<ide> class TestResult(object):
<ide> def main():
<ide> if args.browse:
<ide> import webbrowser
<ide> webbrowser.open('file:... | 1 |
Javascript | Javascript | support del in the repl | 0fd1656d63e5e1eb3048b718c53d35c6d5918846 | <ide><path>lib/readline.js
<ide> Interface.prototype._ttyWrite = function (b) {
<ide> this._historyPrev();
<ide> } else if (b[1] === 91 && b[2] === 66) { // down arrow
<ide> this._historyNext();
<add> } else if (b[1] === 91 && b[2] === 51 && this.cursor < this.line.length) { // delete right
<... | 1 |
Go | Go | add support for endpoint's preferred ipv6 address | 2ecc6aa49ebfcab1d579b1b8de221ea6260cd8cf | <ide><path>libnetwork/endpoint.go
<ide> type endpoint struct {
<ide> generic map[string]interface{}
<ide> joinLeaveDone chan struct{}
<ide> prefAddress net.IP
<add> prefAddressV6 net.IP
<ide> ipamOptions map[string]string
<ide> dbIndex uint64
<ide> dbExists bool
<ide> func EndpointOptionGener... | 1 |
Javascript | Javascript | allow buffer encoding in spawnsync | dc76afffb6b7f3f4f263025808fcf809e95ddf91 | <ide><path>lib/child_process.js
<ide> function spawnSync(/*file, args, options*/) {
<ide>
<ide> var result = spawn_sync.spawn(options);
<ide>
<del> if (result.output && options.encoding) {
<add> if (result.output && options.encoding && options.encoding !== 'buffer') {
<ide> for (i = 0; i < result.output.lengt... | 3 |
PHP | PHP | apply fixes from styleci | ae9a17ea5192baea7dd2ec55167b1e8532f239d3 | <ide><path>tests/Support/SupportStringableTest.php
<ide> public function testWhenContainsAll()
<ide> return $stringable->studly();
<ide> }));
<ide> }
<del>
<add>
<ide> public function testDirname()
<ide> {
<ide> $this->assertSame('/framework/tests', (string) $this->stringable... | 1 |
Java | Java | fix tests with javaonlymap | 8ec13c306c155d9320221d34309f08c2baf507bf | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java
<ide> public void pushDouble(double value) {
<ide>
<ide> @Override
<ide> public void pushInt(int value) {
<del> mBackingList.add(value);
<add> mBackingList.add(new Double(value));
<ide> }
<ide>
<ide> @Override
<ide><path>... | 3 |
Ruby | Ruby | remove unnecessary rescue | 67c1fa934bd1ea04ee291df272d3e6a9094994e1 | <ide><path>activerecord/test/cases/mixin_test.rb
<ide> def test_create_turned_off
<ide>
<ide> # Make sure Mixin.record_timestamps gets reset, even if this test fails,
<ide> # so that other tests do not fail because Mixin.record_timestamps == false
<del> rescue Exception => e
<del> raise e
<ide> ensure
<ide> ... | 1 |
Javascript | Javascript | fix legacy redirect | f39fee8eaf049994c7df25173425d83a108b40fe | <ide><path>examples/js/controls/OrbitControls.js
<ide> Object.defineProperties( THREE.OrbitControls.prototype, {
<ide> get: function () {
<ide>
<ide> console.warn( 'THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.' );
<del> return ! this.constraint.enableDamping;
<add> retur... | 1 |
PHP | PHP | fix doc block typo | e7f12d28b4a643d5bae9a8779d4323f708e57d1a | <ide><path>src/Collection/CollectionTrait.php
<ide> public function compile($preserveKeys = true) {
<ide>
<ide> /**
<ide> * Returns a new collection where the operations performed by this collection.
<del> * Not matter how many times the new collection is iterated, those operations will
<add> * No matter how many tim... | 1 |
Java | Java | remove unecessary "<<" | 0e49c0e152f6f560be94b12629bdd946d3dec5c8 | <ide><path>spring-tx/src/main/java/org/springframework/transaction/TransactionDefinition.java
<ide> public interface TransactionDefinition {
<ide> * ({@link #PROPAGATION_SUPPORTS}). In the latter case, the flag will
<ide> * only apply to managed resources within the application, such as a
<ide> * Hibernate {@code... | 1 |
Text | Text | add a new handling touches guide | deb6106c1669276a56c7fc26ad7e59eb99f166a7 | <ide><path>docs/GestureResponderSystem.md
<ide> title: Gesture Responder System
<ide> layout: docs
<ide> category: Guides
<ide> permalink: docs/gesture-responder-system.html
<del>next: animations
<add>next: native-modules-ios
<ide> ---
<ide>
<ide> Gesture recognition on mobile devices is much more complicated than web... | 4 |
Go | Go | improve error message only if no body is returned | e23190b6b3ddd16b3a5f951a33e05fd75ebb8970 | <ide><path>api/client.go
<ide> func (cli *DockerCli) call(method, path string, data interface{}, passAuthInfo b
<ide> return nil, -1, err
<ide> }
<ide> if len(body) == 0 {
<del> return nil, resp.StatusCode, fmt.Errorf("Error :%s", http.StatusText(resp.StatusCode))
<add> return nil, resp.StatusCode, fmt.Error... | 1 |
Text | Text | avoid double parentheses [ci skip] | 50000d37e495b31fcb607d532120eab9068c75c9 | <ide><path>website/docs/usage/rule-based-matching.md
<ide> another token that's at least 10 characters long.
<ide>
<ide> spaCy features a rule-matching engine, the [`Matcher`](/api/matcher), that
<ide> operates over tokens, similar to regular expressions. The rules can refer to
<del>token annotations (e.g. the token `... | 1 |
Ruby | Ruby | simplify boolean casting logic | 8c5983c5f00f6b77bd88f6ebad0ae31573f0ef96 | <ide><path>activerecord/lib/active_record/type/boolean.rb
<ide> def type
<ide> def cast_value(value)
<ide> if value == ''
<ide> nil
<del> elsif ConnectionAdapters::Column::FALSE_VALUES.include?(value)
<del> false
<ide> else
<del> true
<add> !ConnectionAd... | 1 |
Javascript | Javascript | add eventdispatcher tests for event bubbling | c2f40bf6e1cc898a4fa2b7c5e76d7127acbb7bcc | <ide><path>packages/ember-glimmer/tests/integration/event-dispatcher-test.js
<ide> moduleFor('EventDispatcher', class extends RenderingTest {
<ide> assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);
<ide> }
<ide>
<add> ['@test events bubble to parent view'](assert) {
<add> let receivedEvent;
<a... | 1 |
Python | Python | use libyaml c library when available. | 7daebefd15355b3f1331c6c58f66f3f88d38a10a | <ide><path>airflow/cli/commands/connection_command.py
<ide> from typing import Any, Dict, List
<ide> from urllib.parse import urlparse, urlunparse
<ide>
<del>import yaml
<ide> from sqlalchemy.orm import exc
<ide>
<add>import airflow.utils.yaml as yaml
<ide> from airflow.cli.simple_table import AirflowConsole
<ide> fr... | 20 |
Go | Go | allow temporary errors on leader switch | 3df1095bbdc331d4effa5452d8aafd5aaead5789 | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> import (
<ide> "github.com/docker/docker/internal/test/request"
<ide> "github.com/docker/swarmkit/ca"
<ide> "github.com/go-check/check"
<add> "github.com/pkg/errors"
<ide> "gotest.tools/assert"
<ide> is "gotest.tools/assert/cmp"
<ide> )
<ide> func (s *Docke... | 2 |
Ruby | Ruby | add docs to identity map | a62f7220bbad1678dbf114e2f252172e76b44bab | <ide><path>activerecord/lib/active_record/identity_map.rb
<ide> module ActiveRecord
<add> # = Active Record Identity Map
<add> #
<add> # Ensures that each object gets loaded only once by keeping every loaded
<add> # object in a map. Looks up objects using the map when referring to them.
<add> #
<add> # More infor... | 1 |
PHP | PHP | add tibetan locales | f9ff4e1e68cd84fad6008210ae4648734fb32320 | <ide><path>cake/libs/l10n.php
<ide> class L10n extends Object {
<ide> /* Arabic */ 'ara' => 'ar',
<ide> /* Armenian - Armenia */ 'hye' => 'hy',
<ide> /* Basque */ 'baq' => 'eu',
<add> /* Tibetan */ 'bod' => 'bo',
<ide> /* Bosnian */ 'bos' => 'bs',
<ide> /* Bulgarian */ 'bu... | 1 |
Ruby | Ruby | rename the variable | 40b39151f916e612c1fc7efe259b3fc28efe7336 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_git_status
<ide>
<ide> message = nil
<ide>
<del> taps = {
<add> repos = {
<ide> "Homebrew/brew" => HOMEBREW_REPOSITORY,
<ide> "Homebrew/homebrew-core" => CoreTap.instance.path,
<ide> }
<ide>
<ide> ... | 1 |
Python | Python | fix ticket 526 | 9ddd860b31ea1d4517eb3fff6ab4c280ebb14dec | <ide><path>numpy/distutils/fcompiler/__init__.py
<ide> def find_executables(self):
<ide>
<ide> def get_version_cmd(self):
<ide> """ Compiler command to print out version information. """
<del> f77 = self.executables['compiler_f77']
<add> f77 = self.executables.get('compiler_f77')
<ide> ... | 1 |
Python | Python | correct #issue #149 | 9bc874646877accd188ef0ba01c43def26c9a5a0 | <ide><path>glances/glances.py
<ide> import collections
<ide>
<ide> # Somes libs depends of OS
<del>is_Bsd = sys.platform.endswith('bsd')
<add>is_Bsd = sys.platform.find('bsd') != -1
<ide> is_Linux = sys.platform.startswith('linux')
<ide> is_Mac = sys.platform.startswith('darwin')
<ide> is_Windows = sys.platform.starts... | 1 |
Ruby | Ruby | use shasum 256 on the release | 14ab460f8efa9d259cce0b9fa51ce87dc5687207 | <ide><path>tasks/release.rb
<ide> raise "Only valid for patch releases"
<ide> end
<ide>
<del> sums = "$ shasum *-#{version}.gem\n" + `shasum *-#{version}.gem`
<add> sums = "$ shasum -a 256 *-#{version}.gem\n" + `shasum -a 256 *-#{version}.gem`
<ide>
<ide> puts "Hi everyone,"
<ide> puts
<ide> #... | 1 |
Text | Text | add react hook plugin | 6bd1a896570669006eee6e7e9cc2d35af5cf2b52 | <ide><path>ECOSYSTEM.md
<ide> This is a list of axios related libraries and resources. If you have a suggestio
<ide> * [react-hooks-axios](https://github.com/use-hooks/react-hooks-axios) - Custom React Hooks for Axios.js
<ide> * [redux-saga-requests](https://github.com/klis87/redux-saga-requests) - Redux-Saga addon to ... | 1 |
Java | Java | implement eager initialization of fabric | 756eec6cf5a57117810fab1b17d472328da0abb7 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> private ReactApplicationContext createReactContext(
<ide> }
<ide> }
<ide> }
<add> if (ReactFeatureFlags.eagerInitializeFabric) {
<add> catalystInstance.getJSIModule(JSIModuleType.UIManager);
<add> }
<id... | 1 |
PHP | PHP | use psr7 interfaces internally in auth plugins | 01f016a8497dddc671b7866a35e6e5d06130328a | <ide><path>src/Http/Client.php
<ide> protected function _createRequest($method, $url, $data, $options)
<ide> $request->cookie($options['cookies']);
<ide> }
<ide> if (isset($options['auth'])) {
<del> $this->_addAuthentication($request, $options);
<add> $request = $this->... | 8 |
Javascript | Javascript | apply default export interop to `next/config` | 8698b4927cdf82773812ae2461919255644945db | <ide><path>packages/next/taskfile.js
<ide> export default async function (task) {
<ide> await task.watch('telemetry/**/*.+(js|ts|tsx)', 'telemetry', opts)
<ide> await task.watch('trace/**/*.+(js|ts|tsx)', 'trace', opts)
<ide> await task.watch(
<del> 'shared/lib/{amp,config,constants,dynamic,head}.+(js|ts|tsx)'... | 1 |
Python | Python | use reference for inf/nan | a90b4b27d5cdfeb558bdf51c1dc988204d730f72 | <ide><path>numpy/core/tests/test_print.py
<ide> def _test_redirected_print(x, tp, ref=None):
<ide> err_msg='print failed for type%s' % tp)
<ide>
<ide> def check_float_type_print(tp):
<del> for x in [0, 1,-1, 1e20, np.inf, -np.inf, np.nan]:
<add> for x in [0, 1,-1, 1e20]:
<ide> _test_redi... | 1 |
Javascript | Javascript | fix memory leaks in safari, edge, and ie | 142cc678cb32ded17835915e08c763af7aae1385 | <ide><path>src/js/resize-manager.js
<ide> class ResizeManager extends Component {
<ide> return;
<ide> }
<ide>
<del> Events.on(this.el_.contentWindow, 'resize', this.debouncedHandler_);
<add> const debouncedHandler_ = this.debouncedHandler_;
<add> let unloadListener_ = this.unload... | 7 |
Javascript | Javascript | use unbound to assert dom rerender | 97fa5ea1e36bbb9fece7dc13e9706ba82d8e6d50 | <ide><path>packages/ember-views/tests/views/view/view_lifecycle_test.js
<ide> QUnit.test("should throw an exception when calling appendChild when DOM element
<ide> }, null, "throws an exception when calling appendChild after element is created");
<ide> });
<ide>
<del>QUnit.skip("should replace DOM representation if ... | 1 |
Javascript | Javascript | upgrade commonjsplugin to es6 | 1caeb72b4d49bf5c2d65ee23b582250b2dde0aa2 | <ide><path>lib/dependencies/CommonJsPlugin.js
<ide> Author Tobias Koppers @sokra
<ide> */
<ide> "use strict";
<del>
<del>var ConstDependency = require("./ConstDependency");
<del>var CommonJsRequireDependency = require("./CommonJsRequireDependency");
<del>var CommonJsRequireContextDependency = require("./CommonJsRequir... | 1 |
Text | Text | check the return message of docker service inspect | 68ef2569842f8ca4dd09a85caca1970d95946547 | <ide><path>docs/swarm/swarm-tutorial/delete-service.md
<ide> removed the service. The CLI returns a message that the service is not found:
<ide> ```
<ide> $ docker service inspect helloworld
<ide> []
<del> Error: no such service or task: helloworld
<add> Error: no such service: helloworld
<ide> ``... | 1 |
Text | Text | loosen the "public" condition on getssp | e69820accc313bbe81659bff5b42a7037f22541e | <ide><path>docs/basic-features/data-fetching/get-static-props.md
<ide> You should use `getStaticProps` if:
<ide>
<ide> - The data required to render the page is available at build time ahead of a user’s request
<ide> - The data comes from a headless CMS
<del>- The data can be publicly cached (not user-specific)
<ide> ... | 1 |
Ruby | Ruby | improve rspec readability | e096836b7b46e605fb4d1c10c632157dd6b11186 | <ide><path>Library/Homebrew/test/utils/github_spec.rb
<ide> describe "::search_issues", :needs_network do
<ide> it "queries GitHub issues with the passed parameters" do
<ide> results = subject.search_issues("brew search", repo: "Homebrew/brew", author: "avetamine", is: "closed")
<del> expect(results.co... | 1 |
PHP | PHP | remove debug code left in before commit | 0dd8b55d8261cbe01ce03dffc056b8ba14a14835 | <ide><path>libs/view.php
<ide> function render($action=null, $layout=null, $file=null)
<ide> // What is reason for these being the same?
<ide> if (isset($this->hasRendered) && $this->hasRendered)
<ide> {
<del> //echo "<pre>";
<del> //print_r($this);
<del> //echo "</pre>";
<ide> return true;
<ide> }
<id... | 1 |
Javascript | Javascript | fix tests after v8 upgrade | 9940766f8a09c2eec06f582cbb0b4883f601be89 | <ide><path>test/parallel/test-child-process-fork-exec-argv.js
<ide> if (process.argv[2] === 'fork') {
<ide> } else if (process.argv[2] === 'child') {
<ide> fork(__filename, ['fork']);
<ide> } else {
<del> var execArgv = ['--harmony_proxies', '--stack-size=256'];
<add> var execArgv = ['--stack-size=256'];
<ide> va... | 7 |
Python | Python | fix albert example | 33adab2b91697b3e78af618a21ab9f1176281165 | <ide><path>transformers/modeling_tf_albert.py
<ide> class TFAlbertModel(TFAlbertPreTrainedModel):
<ide> import tensorflow as tf
<ide> from transformers import AlbertTokenizer, TFAlbertModel
<ide>
<del> tokenizer = AlbertTokenizer.from_pretrained('bert-base-uncased')
<del> model = TFAlbert... | 2 |
Javascript | Javascript | remove debug code | b4e3554af25d7dfd09a9496a515c33dbdc1010c4 | <ide><path>src/fonts.js
<ide> var Font = (function FontClosure() {
<ide> }
<ide> properties.baseEncoding = encoding;
<ide> }
<del> if (false && properties.subtype == 'CIDFontType0C') {
<add> if (properties.subtype == 'CIDFontType0C') {
<ide> var toFontChar = [];
<ide> for... | 1 |
Javascript | Javascript | add better explanation for error status codes | 0727bfc141db6e60bce2fb1e09ad4f53963dec5d | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * - **config** – `{Object}` – The configuration object that was used to generate the request.
<ide> * - **statusText** – `{string}` – HTTP status text of the response.
<ide> *
<del> * A response status code between 200 and 299 is co... | 1 |
Text | Text | correct the example in comment | d8a6087fe2db7330cbaa3f84a1339cdcc132c7d2 | <ide><path>client/src/pages/guide/english/javascript/assignment-operators/index.md
<ide> This is the same as applying the addition operator and reassigning the sum to th
<ide> To illustrate this using actual values, here is another example of using the addition assignment operator:
<ide>
<ide> let myVar = 5; // ... | 1 |
Go | Go | fix typo for --restart deprecation | ef9a5926e9af408d68b3c68638a69727e42079fa | <ide><path>daemon/config.go
<ide> type Config struct {
<ide> func (config *Config) InstallFlags() {
<ide> flag.StringVar(&config.Pidfile, []string{"p", "-pidfile"}, "/var/run/docker.pid", "Path to use for daemon PID file")
<ide> flag.StringVar(&config.Root, []string{"g", "-graph"}, "/var/lib/docker", "Path to use as ... | 1 |
Java | Java | fix compiler warnings | 8b99c51969ab8f2354685956fb5724fbc4de72d0 | <ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMethodArgumentResolverTests.java
<ide> public void setUp() throws Exception {
<ide> this.resolver = new RequestHeaderMethodArgumentResolver(conversionService, context.getBeanFactory());
<ide>
<ide> @... | 1 |
PHP | PHP | use arraylog for testing query logs | 605f1757628ee45772722101b1fd6389079b5771 | <ide><path>tests/TestCase/TestSuite/FixtureManagerTest.php
<ide> use Cake\Datasource\ConnectionManager;
<ide> use Cake\Log\Log;
<ide> use Cake\TestSuite\Fixture\FixtureManager;
<del>use Cake\TestSuite\Stub\ConsoleOutput;
<ide> use Cake\TestSuite\TestCase;
<ide> use PDOException;
<ide>
<ide> public function setUp(): vo... | 1 |
PHP | PHP | fix conflicts and tests | ca32323d7e29cad363d4014fde156440855919a8 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function freshTimestampString()
<ide> */
<ide> public function newQuery()
<ide> {
<del> $builder = $this->newEloquentBuilder(
<del> $this->newBaseQueryBuilder()
<del> );
<del>
<del> // Once we have the query builders, we will set the model inst... | 4 |
Text | Text | add a url to 'you might not need redux' | 07e37acee2eb07f9c6b8ac0daf167775bb9ff4d2 | <ide><path>README.md
<ide> It is tiny (2kB, including dependencies).
<ide> [](https://webchat.freenode.net/)
<ide> [ and has() to cookiecollection | 8890344f27f54bb3b225f073bbb22625d2f652ad | <ide><path>src/Http/Cookie/CookieCollection.php
<ide> public function __construct(array $cookies = [])
<ide> }
<ide> }
<ide>
<add> /**
<add> * Get a cookie by name
<add> *
<add> * If the provided name matches a URL (matches `#^https?://#`) this method
<add> * will assume you want a list ... | 2 |
Text | Text | import isomorphic-unfetch in data fetching example | 0b496a45e85f3c9aa3cf2e77eef10888be5884fc | <ide><path>packages/next/README.md
<ide> When you need state, lifecycle hooks or **initial data population** you can expo
<ide> Using a stateless function:
<ide>
<ide> ```jsx
<add>import fetch from 'isomorphic-unfetch';
<add>
<ide> function Page({ stars }) {
<ide> return <div>Next stars: {stars}</div>
<ide> } | 1 |
Text | Text | update core ideas.md | 608c18cc3fce20d4b683f156ca1e3e8a75c98f43 | <ide><path>docs/Basics/Core Ideas.md
<add>Core Ideas
<add>--------------------------
<ide>
<ide> Redux can be described in three fundamental principles:
<ide> | 1 |
Python | Python | improve style in cifar10 example scripts | 6a36339b63372b51e0aad81fcc798d3183e45e26 | <ide><path>examples/cifar10_cnn.py
<ide> from keras.layers import Conv2D, MaxPooling2D
<ide>
<ide> import os
<del>import pickle
<del>import numpy as np
<ide>
<ide> batch_size = 32
<ide> num_classes = 10
<ide> y_test = keras.utils.to_categorical(y_test, num_classes)
<ide>
<ide> model = Sequential()
<del>
<ide> model.... | 2 |
Javascript | Javascript | use \n as line break | 6367e312c842cc17c0970a0b6feed16ab1e55966 | <ide><path>lib/ExternalModule.js
<ide> class ExternalModule extends Module {
<ide> }
<ide>
<ide> checkExternalVariable(variableToCheck, request) {
<del> return `if(typeof ${variableToCheck} === 'undefined') {${WebpackMissingModule.moduleCode(request)}}
<del>`;
<add> return `if(typeof ${variableToCheck} === 'undefi... | 1 |
Javascript | Javascript | throw error when no browserslist config found | d6c7adf3fb023eee18d62d879848d68f4d8b60f0 | <ide><path>lib/config/browserslistTargetHandler.js
<ide> const inputRx = /^(?:((?:[A-Z]:)?[/\\].*?))?(?::(.+?))?$/i;
<ide>
<ide> /**
<ide> * @typedef {Object} BrowserslistHandlerConfig
<del> * @property {string} [configPath]
<del> * @property {string} [env]
<del> * @property {string} [query]
<add> * @property {string... | 3 |
Python | Python | add histogramnd and fix histogram2d | 4e76e00cc5afceaf70fe8d655cf59d4a9fb85a0a | <ide><path>numpy/lib/function_base.py
<ide> 'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp',
<ide> 'unique', 'extract', 'place', 'nansum', 'nanmax', 'nanargmax',
<ide> 'nanargmin', 'nanmin', 'vectorize', 'asarray_chkfinite', 'average',
<del> 'histogram', 'bincoun... | 5 |
Javascript | Javascript | add flow types to panresponder | 3f79b2a4e9afdcce62a4d8c8b490ab33d0d40bbb | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableRow.js
<ide> const View = require('View');
<ide> const createReactClass = require('create-react-class');
<ide> const emptyFunction = require('fbjs/lib/emptyFunction');
<ide>
<add>import type {LayoutEvent, PressEvent} from 'CoreEventTypes';
<add>import type {Gestu... | 3 |
Javascript | Javascript | remove duplicate infobox checks | ab5dabf876cca785314f198c6e4e47d5a3bcb46a | <ide><path>src/node.js
<ide> // run callbacks that have no domain
<ide> // using domains will cause this to be overridden
<ide> function _tickCallback() {
<del> var callback, nextTickLength, threw;
<add> var callback, threw;
<ide>
<del> if (infoBox[inTick] === 1) return;
<del> if (infoB... | 1 |
Ruby | Ruby | drop emacs dep audit | 9f42b6b9c7a7713242ab06cc21e082fd31f59dda | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> when *BUILD_TIME_DEPS
<ide> next if dep.build? or dep.run?
<ide> problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
<del> when "git", "ruby", "emacs", "mercurial"
<add> when "git", "ruby", "mercurial"... | 1 |
Ruby | Ruby | add missing require | 0faa7ee2a05b261ef89fb4652eaa0cfeef86c1d5 | <ide><path>activesupport/test/gzip_test.rb
<ide> require 'abstract_unit'
<add>require 'active_support/core_ext/object/blank'
<ide>
<ide> class GzipTest < Test::Unit::TestCase
<ide> def test_compress_should_decompress_to_the_same_value
<ide> def test_compress_should_return_a_binary_string
<ide>
<ide> assert !com... | 1 |
PHP | PHP | remove unused use-statement | 64804d58f7ce957a0236c834ac6d68c2deb7c13e | <ide><path>tests/Integration/Database/QueryBuilderTest.php
<ide> use Illuminate\Support\Carbon;
<ide> use Illuminate\Support\Facades\DB;
<ide> use Illuminate\Support\Facades\Schema;
<del>use Illuminate\Tests\Integration\Database\DatabaseTestCase;
<ide>
<ide> /**
<ide> * @group integration | 1 |
Javascript | Javascript | fix iteration bug in valueseq | e5ab28a086a9edf7bd608bae6c2519cc875b4f1f | <ide><path>dist/Immutable.js
<ide> var $Sequence = Sequence;
<ide> valuesSequence.length = sequence.length;
<ide> valuesSequence.valueSeq = returnThis;
<ide> valuesSequence.__iterateUncached = function(fn, reverse, flipIndices) {
<del> if (flipIndices && this.length == null) {
<del> return this.... | 3 |
Javascript | Javascript | use native impl if available | b6ae6e52f99c0c3c45ad787328a2e800ff07ca2c | <ide><path>src/Angular.js
<ide> function size(obj, ownPropsOnly) {
<ide>
<ide>
<ide> function includes(array, obj) {
<del> for ( var i = 0; i < array.length; i++) {
<del> if (obj === array[i]) return true;
<del> }
<del> return false;
<add> return indexOf(array, obj) != -1;
<ide> }
<ide>
<ide> function indexOf... | 2 |
Javascript | Javascript | fix math bug in pinch | 20b6082b02a16dc6bc720bfebb6a404743435667 | <ide><path>packages/sproutcore-touch/lib/gesture_recognizers/pinch.js
<ide> SC.PinchGestureRecognizer = SC.Gesture.extend({
<ide> var distanceDifference = (currentDistanceBetweenTouches - this._previousDistance);
<ide>
<ide> set(this, 'velocity', distanceDifference / timeDifference);
<del> set(this, 'scale'... | 1 |
Go | Go | add term env var to exec | 4633f15f13d51530de2438c298a1084c55e4fedf | <ide><path>daemon/exec.go
<ide> import (
<ide> "github.com/docker/docker/libcontainerd"
<ide> "github.com/docker/docker/pkg/pools"
<ide> "github.com/docker/docker/pkg/signal"
<add> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/docker/pkg/term"
<add> "github.com/docker/docker/utils"
<ide> )
<ide>
<... | 3 |
PHP | PHP | change fresh() parameter type | d576bedd3f0f70c9df6dcecb2f44057ee92234fe | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function all($columns = ['*'])
<ide> /**
<ide> * Reload a fresh model instance from the database.
<ide> *
<del> * @param array $with
<add> * @param array|string $with
<ide> * @return $this|null
<ide> */
<del> ... | 1 |
Ruby | Ruby | verify credentials format before saving | 00f5aca3ef5de2637134c40e2e8b5d3c1d5b1a08 | <ide><path>activesupport/lib/active_support/encrypted_configuration.rb
<ide> def read
<ide> ""
<ide> end
<ide>
<add> def write(contents)
<add> deserialize(contents)
<add>
<add> super
<add> end
<add>
<ide> def config
<ide> @config ||= deserialize(read).deep_symbolize_keys
<ide> e... | 2 |
Python | Python | fix merge conflict | 49e3b6e8c18fef163ccd7e8ac265ebe4adb0bc1f | <ide><path>libcloud/common/luadns.py
<ide>
<ide> import base64
<ide>
<del>import base64
<del>
<ide> from libcloud.common.base import ConnectionUserAndKey, JsonResponse
<ide> from libcloud.utils.py3 import b
<ide> | 1 |
Python | Python | reduce batch size during pretrain | df15279e88311f207407cec01d705cd569316258 | <ide><path>spacy/cli/pretrain.py
<ide> def pretrain(
<ide> msg.row(("#", "# Words", "Total Loss", "Loss", "w/s"), **row_settings)
<ide> for epoch in range(nr_iter):
<ide> for batch in util.minibatch_by_words(
<del> ((text, None) for text in texts), size=5000
<add> ((text, None) for... | 1 |
Javascript | Javascript | fix path to docs-app e2e tests | 22b817ec11f7ab1a81342a4b60acd644a3f2a8c3 | <ide><path>docs/app/e2e/api-docs/api-pages.scenario.js
<ide> describe("doc.angularjs.org", function() {
<ide> describe("API pages", function() {
<ide>
<ide> it("should display links to code on GitHub", function() {
<del> browser.get('index-debug.html#!/api/ng/service/$http');
<add> browser.get('build/d... | 4 |
Javascript | Javascript | reduce duplicated code in doughnut controller | a5167cc42d397491247e406253afd006ba6b33b5 | <ide><path>src/controllers/controller.doughnut.js
<ide> module.exports = function(Chart) {
<ide> });
<ide>
<ide> var model = arc._model;
<del> model.backgroundColor = custom.backgroundColor ? custom.backgroundColor : valueAtIndexOrDefault(dataset.backgroundColor, index, arcOpts.backgroundColor);
<del> model.... | 2 |
PHP | PHP | fix code style. | 8d745f19a8cb0e93c89798406b33dc789219d2f9 | <ide><path>src/Illuminate/Support/Reflector.php
<ide> public static function isParameterSubclassOf($parameter, $className)
<ide> {
<ide> $paramClassName = static::getParameterClassName($parameter);
<ide>
<del> return ($paramClassName && class_exists($paramClassName))
<del> ? (new Reflecti... | 1 |
Python | Python | use less fancy tables in cli by default | 5b72ef82bac3c168e43f2aecf21b5f52d64a0b50 | <ide><path>airflow/cli/cli_parser.py
<ide> def add_to_parser(self, parser: argparse.ArgumentParser):
<ide> "the tabulate module (https://pypi.org/project/tabulate/). "
<ide> ),
<ide> choices=tabulate_formats,
<del> default="fancy_grid")
<add> default="plain")
<ide> ARG_COLOR = Arg(
<ide> ('--c... | 3 |
Javascript | Javascript | fix typo in parse.js | e29900c78f8fa962559b1cf95e1e7d428230e645 | <ide><path>src/ng/parse.js
<ide> function $ParseProvider() {
<ide>
<ide> var useInputs = parsedExpression.inputs && !exp.inputs;
<ide>
<del> // Propogate the literal/inputs/constant attributes
<add> // Propagate the literal/inputs/constant attributes
<ide> // ... but not oneTime since we are han... | 1 |
Ruby | Ruby | fix some whitespace errors | 4fa10300ef451f154916be7e301b7b047a0b4fa3 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def paramify_values(hash_or_array_or_value)
<ide> def process(action, http_method = 'GET', *args)
<ide> check_required_ivars
<ide> http_method, args = handle_old_process_api(http_method, args)
<del>
<add>
<ide> if args... | 1 |
Text | Text | fix typo in docs | 95e28b2252b58e7d5d2e33ee5cb705029eb322c5 | <ide><path>docs/api-guide/serializers.md
<ide> The default implementation returns a serializer class based on the `serializer_f
<ide>
<ide> Called to generate a serializer field that maps to a relational model field.
<ide>
<del>The default implementation returns a serializer class based on the `serializer_relational_... | 1 |
PHP | PHP | fix another batch of at() matchers | 0c0e0c8a67eaee1589fb6c38a51604d40da661c3 | <ide><path>tests/TestCase/Database/Driver/PostgresTest.php
<ide> public function testConnectionConfigDefault()
<ide> $this->returnArgument(0)
<ide> ));
<ide>
<del> $connection->expects($this->at(1))->method('exec')->with('SET NAMES utf8');
<del> $connection->expects($this->at(... | 2 |
Go | Go | add parent img refcount for faster rmi | 56f5e3459f8d7477d2aa60dee02bc7cd8a8731ad | <ide><path>daemon/daemonbuilder/builder.go
<ide> func (d Docker) Copy(c *daemon.Container, destPath string, src builder.FileInfo,
<ide> // GetCachedImage returns a reference to a cached image whose parent equals `parent`
<ide> // and runconfig equals `cfg`. A cache miss is expected to return an empty ID and a nil error... | 5 |
Javascript | Javascript | fix example code indent | c2794b681e9daf504b56f5c53ac7e6679986c37b | <ide><path>packages/ember-states/lib/state_manager.js
<ide> var sendEvent = function(eventName, sendRecursiveArguments, isUnhandledPass) {
<ide> })
<ide> }),
<ide> stateTwo: Ember.State.create({
<del> anAction: function(manager, context){
<del> // will not be called below because it is
<del> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.