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 |
|---|---|---|---|---|---|
Python | Python | remove unused architectures variable | 4dbfc815d468bbf17207083932a11a6e29579a8d | <ide><path>tools/openblas_support.py
<ide> OPENBLAS_LONG = 'v0.3.13-62-gaf2b0d02'
<ide> BASE_LOC = 'https://anaconda.org/multibuild-wheels-staging/openblas-libs'
<ide> BASEURL = f'{BASE_LOC}/{OPENBLAS_LONG}/download'
<del>ARCHITECTURES = ['arm64', 'aarch64', 'x86_64', 'i686', 'ppc64le', 's390x']
<ide> SUPPORTED_PLATFOR... | 1 |
Ruby | Ruby | add libiconv to uses_from_macos whitelist | d6cf14fd1e9a8a4804947a616b50770f58816720 | <ide><path>Library/Homebrew/rubocops/uses_from_macos.rb
<ide> class UsesFromMacos < FormulaCop
<ide> krb5
<ide> libedit
<ide> libffi
<add> libiconv
<ide> libpcap
<ide> libxml2
<ide> libxslt | 1 |
Mixed | Ruby | remove deprecated constants from action controller | 4b97ce5eb16cc20207516387fba98bf577e2e281 | <ide><path>actionpack/CHANGELOG.md
<add>* Remove deprecated constants from Action Controller:
<add>
<add> ActionController::AbstractRequest => ActionDispatch::Request
<add> ActionController::Request => ActionDispatch::Request
<add> ActionController::AbstractResponse => ActionDispatch::R... | 3 |
Text | Text | add opus interactive to inthewild | a99e9b544a4834759c9fa410336260304b2eb9af | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Opensignal](https://www.opensignal.com) [@harrisjoseph](https://github.com/harrisjoseph)
<ide> 1. [OpenSlate](https://openslate.com) [@marcusianlevine](https://github.com/marcusianlevine)
<ide> 1. [Optum](https://www.optum.com/) - [UnitedH... | 1 |
Ruby | Ruby | make i18n date/time tests timezone independent | 0ac342fbe5727c22dbce58e375e9b42dd2a92ef5 | <ide><path>activesupport/test/i18n_test.rb
<ide> def setup
<ide> uses_mocha 'I18nTimeZoneTest' do
<ide> def test_time_zone_localization_with_default_format
<ide> Time.zone.stubs(:now).returns Time.local(2000)
<del> assert_equal "Sat, 01 Jan 2000 00:00:00 +0100", I18n.localize(Time.zone.now)
<add> ... | 1 |
Text | Text | add pwd to bash guide, very common | b3368db4e3b1a95833ca111a312ecdcc0ae4aeba | <ide><path>guide/english/bash/bash-pwd/index.md
<add>---
<add>title: Bash pwd
<add>---
<add>
<add>## Bash pwd
<add>
<add>`pwd` or 'print working directory' is a command on Unix-like operating systems to show you which directory you are currently in.
<add>
<add>### Usage
<add>
<add>```bash
<add>pwd
<add>```
<add>You can... | 1 |
PHP | PHP | expand doc blocks | 85a906c0fc92a3a68d6fdb512cd85d33416205bc | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> public function message($type = null) {
<ide> /**
<ide> * Configuration to use when send email
<ide> *
<add> * ### Usage
<add> *
<add> * Load configuration from `app/Config/email.php`:
<add> *
<add> * `$email->config('default');`
<add> *
<add> * Merge an array of ... | 1 |
PHP | PHP | remove optimize call | 44c61252b5762ff53ad181ed416e3006c50a6a9b | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> public function fire()
<ide> $this->info('Application namespace set!');
<ide>
<ide> $this->composer->dumpAutoloads();
<del>
<del> $this->call('clear-compiled');
<ide>
<del> $this->call('optimize');
<add> $this->call('clear-compiled');
<ide... | 1 |
Python | Python | add an execv template for stress tests | dca18a30184497eea480b473b0a1337a71f408a7 | <ide><path>funtests/stress/stress/templates.py
<ide> class events(default):
<ide> CELERY_SEND_EVENTS = True
<ide> CELERY_SEND_TASK_SENT_EVENT = True
<ide>
<add>
<ide> @template()
<ide> class smallcache(default):
<ide> CELERY_MAX_CACHED_RESULTS = 10
<add>
<add>
<add>@template()
<add>class execv(default):
<a... | 1 |
Text | Text | remove react as we will cover it in walkthrough | ec6ddb8eebd01ed481a908660ffe25a6271b24d5 | <ide><path>SUMMARY.md
<ide> * [Next Steps](/docs/advanced/NextSteps.md)
<ide> * [Recipes](/docs/recipes/README.md)
<ide> * [Reducing Boilerplate](/docs/recipes/ReducingBoilerplate.md)
<del> * [Usage with React](/docs/recipes/UsageWithReact.md)
<ide> * [Server Rendering](/docs/recipes/ServerRendering.md)
<ide> ... | 1 |
Java | Java | update copyright date | 5220410768381c2a16a06b5d323942798bba116b | <ide><path>spring-test/src/main/java/org/springframework/test/context/DynamicPropertySource.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you... | 1 |
Mixed | Python | update backend strings | 205c61178d10089cbe0fbc90950dbe0cb9d380dc | <ide><path>docs/templates/activations.md
<ide> This is equivalent to:
<ide> model.add(Dense(64, activation='tanh'))
<ide> ```
<ide>
<del>You can also pass an element-wise Tensorflow/Theano function as an activation:
<add>You can also pass an element-wise TensorFlow/Theano/CNTK function as an activation:
<ide>
<ide> `... | 8 |
Javascript | Javascript | delete dead code in sourcemap | f2ec64fbcff03753a3e1afd9f5fc9bffd805263d | <ide><path>lib/internal/source_map/source_map.js
<ide> class StringCharIterator {
<ide> */
<ide> class SourceMap {
<ide> #payload;
<del> #reverseMappingsBySourceURL = [];
<ide> #mappings = [];
<ide> #sources = {};
<ide> #sourceContentByURL = {};
<ide> class SourceMap {
<ide> this.#mappings.push([lineNum... | 1 |
Python | Python | improve __repr__ if script didn't run yet | 6d922eb88c9f86b2a3df33133c8530c3bcb63078 | <ide><path>libcloud/compute/deployment.py
<ide> def __repr__(self):
<ide> stdout = self.stdout[:30] + '...'
<ide> stderr = self.stderr[:30] + '...'
<ide> else:
<add> exit_status = 'script didn\'t run yet'
<ide> stdout = None
<ide> stderr = None
<ide> ... | 1 |
Javascript | Javascript | adjust browser class name | b05f4da9b5c7cca4f1badc021a8ebb0183380906 | <ide><path>bin/run-tests-browser-runner.js
<ide> const puppeteer = require('puppeteer');
<ide> const chalk = require('chalk');
<ide> const fs = require('fs');
<ide>
<del>module.exports = class BroswerRunner {
<add>module.exports = class BrowserRunner {
<ide> constructor() {
<ide> this.resolveTest = undefined;
<i... | 2 |
Javascript | Javascript | document the init function for ember.coreobject | aedbf8b2092fb03e1e71105054ce3c5a010e7cd2 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> CoreObject.PrototypeMixin = Mixin.create({
<ide>
<ide> isInstance: true,
<ide>
<add> /**
<add> An overridable method called when objects are instantiated. By default,
<add> does nothing unless it is overridden during class definition.
<add>
<a... | 1 |
Python | Python | handle raw_input vs input in python 2 and 3 | a6c036180344899471c715ad5798b78c116fdee5 | <ide><path>spacy/util.py
<ide> basestring = str
<ide>
<ide>
<add>try:
<add> raw_input
<add>except NameError: # Python 3
<add> raw_input = input
<add>
<add>
<ide> LANGUAGES = {}
<ide> _data_path = pathlib.Path(__file__).parent / 'data'
<ide> | 1 |
Ruby | Ruby | remove overzealous exceptions | 4738974a78a010bda35f7647e9160732cb82af92 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def ensure_writable
<ide> end
<ide>
<ide> def install_info
<del> unless self.symlink?
<del> raise "Cannot install info entry for unbrewed info file '#{self}'"
<del> end
<ide> system '/usr/bin/install-info', '--quiet', self.to_s, (self.dirname+'dir... | 1 |
Text | Text | fix image paths | 9a14613f4183575079edf10e2c7645c578048ce2 | <ide><path>docs/api-guide/filtering.md
<ide> If you are using the browsable API or admin API you may also want to install `cr
<ide>
<ide> With crispy forms installed, the browsable API will present a filtering control for `DjangoFilterBackend`, like so:
<ide>
<del>
<a... | 1 |
Text | Text | add 2.6.0 to changelog | 7b226e94b3fa2ca2bef57ff8720acdd195a38e6a | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### 2.6.0-beta.4 (May 09, 2016)
<add>### 2.6.0 (June 8, 2016)
<ide>
<add>- [#13520](https://github.com/emberjs/ember.js/pull/13520) [BUGFIX] Fixes issues with `baseURL` and `rootURL` in `Ember.HistoryLocation` and ensures that `Ember.NoneLocation` properly ha... | 1 |
Javascript | Javascript | fix collada transparency handling. | 92bb9158efc0d52fb95d12bf474dc857e8e3c639 | <ide><path>examples/jsm/loaders/ColladaLoader.js
<ide> class ColladaLoader extends Loader {
<ide> break;
<ide> case 'transparent':
<ide> data[ child.nodeName ] = {
<del> opaque: child.getAttribute( 'opaque' ),
<add> opaque: child.hasAttribute( 'opaque' ) ? child.getAttribute( 'opaque' ) : '... | 1 |
Javascript | Javascript | fix remaining linting warnings | 97d2d7fb8b69566eab0b26d3971665aced9665ec | <ide><path>src/text-editor-component.js
<ide> function objectsEqual (a, b) {
<ide> if (!a && b) return false
<ide> if (a && !b) return false
<ide> if (a && b) {
<del> for (key in a) {
<add> for (const key in a) {
<ide> if (a[key] !== b[key]) return false
<ide> }
<del> for (key in b) {
<add> ... | 1 |
Text | Text | fix typo in fs.md | 88b497a11bec6c85496e1273f5ff2acefa62df11 | <ide><path>doc/api/fs.md
<ide> a string, a {Buffer}, or a {URL} object using the `file:` protocol.
<ide>
<ide> #### String paths
<ide>
<del>String form paths are interpreted as UTF-8 character sequences identifying
<add>String from paths are interpreted as UTF-8 character sequences identifying
<ide> the absolute or r... | 1 |
Ruby | Ruby | make predicate builder about 2x faster | a1d236e93110a91d5fd7555cf8f84c8a98680cc3 | <ide><path>activerecord/lib/active_record/relation/predicate_builder.rb
<ide> def initialize(table)
<ide> @handlers = []
<ide>
<ide> register_handler(BasicObject, BasicObjectHandler.new(self))
<del> register_handler(Base, BaseHandler.new(self))
<ide> register_handler(Range, RangeHandler.new(self... | 2 |
PHP | PHP | add diffkeys() method | 7f73bd2bc1eeefab73e38503f4f2d9419ecbefb6 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function diff($items)
<ide> return new static(array_diff($this->items, $this->getArrayableItems($items)));
<ide> }
<ide>
<add> /**
<add> * Get the items in the collection whose keys are not present in the given items.
<add> *
<add> ... | 1 |
Java | Java | fix wrong reference check in flatteniterable | 4c7e62cfe92990ba5fd8d954cbd4364f291b986e | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableFlattenIterable.java
<ide>
<ide> import org.reactivestreams.*;
<ide>
<del>import io.reactivex.functions.*;
<add>import io.reactivex.exceptions.MissingBackpressureException;
<add>import io.reactivex.functions.Function;
<ide> import io.reactivex.... | 2 |
Javascript | Javascript | add check for resilience to trailing slashes, etc | 4f937bda18bd577febcb29e3969fe72b400d1a61 | <ide><path>test/e2e/docsAppE2E.js
<ide> describe('docs.angularjs.org', function () {
<ide> var code = element(by.css('tt'));
<ide> expect(code.getText()).toContain('guest!!!');
<ide> });
<add>
<add> it('should be resilient to trailing slashes', function() {
<add> browser.get('index-debug.html#!/... | 1 |
Ruby | Ruby | update caveats documentation | 99ed23347abb7a13af38e5af52487d36975550c3 | <ide><path>Library/Homebrew/formula.rb
<ide> def run_post_install
<ide> @prefix_returns_versioned_prefix = false
<ide> end
<ide>
<del> # Tell the user about any Homebrew-specific caveats or locations regarding
<del> # this package. These should not contain setup instructions that would apply
<del> # to instal... | 1 |
Ruby | Ruby | improve tests (closes ) [zackchandler] | 953de118db423fe678b5e4c55209f0fcd0b53bbf | <ide><path>activesupport/test/core_ext/blank_test.rb
<ide> require File.dirname(__FILE__) + '/../abstract_unit'
<ide>
<add>class EmptyTrue
<add> def empty?() true; end
<add>end
<add>
<add>class EmptyFalse
<add> def empty?() false; end
<add>end
<add>
<add>class EmptyStripNotEmpty
<add> def empty?() true; end
<add> ... | 1 |
Mixed | Javascript | limit interactions to chartarea (+/-0.5px) | f1677b6652328f449c1995f3e551c1b666eb2c8f | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released
<ide>
<ide> ### Interactions
<ide>
<add>* `interactions` are now limited to the chart area
<ide> * `{mode: 'label'}` was replaced with `{mode: 'index'}`
<ide> * `{mode: 'single'}` was ... | 10 |
Ruby | Ruby | fix redirect with block example | 8d2487d9d458914bebb83fc74a6957f56dc0a8b5 | <ide><path>actionpack/lib/action_dispatch/routing/redirection.rb
<ide> module Redirection
<ide> # params, depending of how many arguments your block accepts. A string is required as a
<ide> # return value.
<ide> #
<del> # match 'jokes/:number', :to => redirect do |params, request|
<add> # ... | 1 |
Go | Go | fix broken json support in cli/command/formatter | 3a32b587922eca87d1ab23689f407b75a8603ccb | <ide><path>cli/command/formatter/container.go
<ide> type containerContext struct {
<ide> c types.Container
<ide> }
<ide>
<add>func (c *containerContext) MarshalJSON() ([]byte, error) {
<add> return marshalJSON(c)
<add>}
<add>
<ide> func (c *containerContext) ID() string {
<ide> c.AddHeader(containerIDHeader)
<id... | 11 |
Python | Python | use json boolean and fix redundancy | 545fcb2eeb111a8a61c25534baaf82ee73681887 | <ide><path>airflow/hooks/hdfs_hook.py
<ide> def get_conn(self):
<ide> ''' When using HAClient, proxy_user must be the same, so is ok to always take the first '''
<ide> effective_user = self.proxy_user or connections[0].login
<ide> if len(connections) == 1:
<del> autoconfig = connectio... | 1 |
Text | Text | remove personal pronoun from worker_threads | 623206c2d6e7bb1cb35afeafd457cecedf0b7c3d | <ide><path>doc/api/worker_threads.md
<ide> added: v10.5.0
<ide> -->
<ide>
<ide> Disables further sending of messages on either side of the connection.
<del>This method can be called once you know that no further communication
<del>will happen over this `MessagePort`.
<add>This method can be called when no further comm... | 1 |
Python | Python | change occurrences of str.format to f-strings | 61f3119467584de53a2f4395e3c03a8e12d67d30 | <ide><path>ciphers/rsa_cipher.py
<ide> def encryptAndWriteToFile(
<ide> for i in range(len(encryptedBlocks)):
<ide> encryptedBlocks[i] = str(encryptedBlocks[i])
<ide> encryptedContent = ",".join(encryptedBlocks)
<del> encryptedContent = "{}_{}_{}".format(len(message), blockSize, encryptedContent)
<ad... | 14 |
Go | Go | move quota package out of graphdriver | c677e4cc8793384d711cf0fc75b1578bb423d4f9 | <ide><path>daemon/graphdriver/graphtest/graphtest_unix.go
<ide> import (
<ide> "unsafe"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<del> "github.com/docker/docker/daemon/graphdriver/quota"
<ide> "github.com/docker/docker/pkg/stringid"
<add> "github.com/docker/docker/quota"
<ide> units "github.com/do... | 10 |
Text | Text | add a note about importing server only modules | 5a650d74df7453b6f76256740058f2e517159037 | <ide><path>readme.md
<ide> For the initial page load, `getInitialProps` will execute on the server only. `g
<ide>
<ide> _Note: `getInitialProps` can **not** be used in children components. Only in `pages`._
<ide>
<add><br/>
<add>> If you are using some server only modules inside `getInitialProps`, make sure to [impor... | 1 |
PHP | PHP | fix typeerror on php 8 | 77060314756913ee0bf50e6d56ba87f97eee4c85 | <ide><path>src/Utility/Text.php
<ide> public static function insert(string $str, array $data, array $options = []): st
<ide>
<ide> $dataKeys = array_keys($data);
<ide> $hashKeys = array_map('crc32', $dataKeys);
<del> /** @var array<string, string> $tempData */
<add> /** @var array<string,... | 1 |
Javascript | Javascript | add spec for permissionsandroid | 82fe1b05210fd703381c0a053bd3310bf12a4f1a | <ide><path>Libraries/PermissionsAndroid/NativePermissionsAndroid.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow stri... | 2 |
Javascript | Javascript | use nested module api | 0d8e395974a7db430c9dbe74ebac8792d1bd67be | <ide><path>packages/internal-test-helpers/lib/module-for.js
<ide> import getAllPropertyNames from './get-all-property-names';
<ide> import { all } from 'rsvp';
<ide>
<ide> export default function moduleFor(description, TestClass, ...mixins) {
<del> QUnit.module(description, {
<del> beforeEach: function(assert) {
<... | 1 |
PHP | PHP | add no-op method to base class | 128c719bd01bc66e3a59b88c2edb287b0bf482b0 | <ide><path>lib/Cake/Model/Datasource/DataSource.php
<ide> public function getSchemaName() {
<ide> return null;
<ide> }
<ide>
<add>/**
<add> * Close the connection to the datasource.
<add> *
<add> * @return void
<add> */
<add> public function close() {
<add> }
<add>
<ide> /**
<ide> * Closes the current datasource.
... | 1 |
Javascript | Javascript | fix minor typo in listviewexample.js | 83336130ef6823f0c462f8ddb92f79fa59bdc7f6 | <ide><path>Examples/UIExplorer/js/ListViewExample.js
<ide> var ListViewSimpleExample = React.createClass({
<ide> dataSource={this.state.dataSource}
<ide> renderRow={this._renderRow}
<ide> renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
<del> renderSepa... | 1 |
Python | Python | avoid distutils.sysconfig in runtests.py | 334428c4d10b778fd74fc3919f3dc9a3b1959875 | <ide><path>runtests.py
<ide> def build_project(args):
<ide> '--single-version-externally-managed',
<ide> '--record=' + dst_dir + 'tmp_install_log.txt']
<ide>
<del> from distutils.sysconfig import get_python_lib
<del> site_dir = get_python_lib(prefix=dst_dir, plat_specific=True)
<del> s... | 1 |
Ruby | Ruby | add missing require | 0a2d004ba110f0f94fb9660bd1c81bb34699a6c3 | <ide><path>railties/lib/rails/application.rb
<ide> require 'fileutils'
<ide> require 'active_support/core_ext/object/blank'
<ide> require 'active_support/key_generator'
<add>require 'active_support/message_verifier'
<ide> require 'rails/engine'
<ide>
<ide> module Rails | 1 |
Javascript | Javascript | add unit tests | 9e6b4b413bd8f4dc782ef9a4b4fa6c9c722fba31 | <ide><path>spec/tooltip-manager-spec.js
<ide> describe('TooltipManager', () => {
<ide>
<ide> disposables.dispose()
<ide> })
<add>
<add> it('hides the tooltip on keydown events', () => {
<add> const disposable = manager.add(element, { title: 'Title', trigger: 'hover' })
<add> hover(elem... | 1 |
Text | Text | upgrade all http links to https | c8837dcbda055a3b145a84113fc5e4e193dc286b | <ide><path>docs/deployment.md
<ide> The easiest way to deploy Next.js to production is to use the **[Vercel platform
<ide>
<ide> ### Getting started
<ide>
<del>If you haven’t already done so, push your Next.js app to a Git provider of your choice: [GitHub](http://github.com/), [GitLab](https://gitlab.com/), or [BitBu... | 12 |
Javascript | Javascript | update error message for json.parse | b68827b1d1c20d0f3e0592734e845b87967a72bc | <ide><path>test/parallel/test-repl.js
<ide> function error_test() {
<ide> expect: /^SyntaxError: Unexpected number/ },
<ide> // should throw
<ide> { client: client_unix, send: 'JSON.parse(\'{\');',
<del> expect: /^SyntaxError: Unexpected end of input/ },
<add> expect: /^SyntaxError: Unexpected e... | 1 |
Java | Java | use findannotationattributes() where appropriate | bccd59e6c8845c6521d3b325bea89bcbcbe4d833 | <ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/MergedSqlConfig.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 4 |
Javascript | Javascript | use fewer multiplications in convertyccktorgb | 5fcf3d37a72904c6dc027e1174a99611fef6b3b3 | <ide><path>src/core/jpg.js
<ide> var JpegImage = (function jpegImage() {
<ide>
<ide> // stage 3
<ide> // Shift v0 by 128.5 << 5 here, so we don't need to shift p0...p7 when
<del> // converting to UInt8 range later.
<add> // converting to UInt8 range later.
<ide> v0 = ((v0 + v1 + 1) >> 1) ... | 1 |
PHP | PHP | clarify documentation of collection diff method | b5f48a89525550a6ece15c52af0e4758c0cc90a8 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function contains($key, $value = null)
<ide> }
<ide>
<ide> /**
<del> * Diff the collection with the given items.
<add> * Get the items in the collection that are not present in the given items.
<ide> *
<ide> * @param mixed $items
<i... | 1 |
Javascript | Javascript | add test for loading read-only modules | 3ba81e34e86a5c32658e218cb6e65b13e8326bc5 | <ide><path>test/parallel/test-module-readonly.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>
<add>if (!common.isWindows) {
<add> // TODO: Similar checks on *nix-like systems (e.g using chmod or the like)
<add> common.skip('test only runs on Windows');
<add>}
<add>
<add>const assert = requ... | 1 |
PHP | PHP | remove deprecated code from marshaller | 481cb50cad7d9915d4e9fbde6a6bc89853966ddb | <ide><path>src/ORM/Marshaller.php
<ide> protected function _buildPropertyMap($data, $options)
<ide> * - validate: Set to false to disable validation. Can also be a string of the validator ruleset to be applied.
<ide> * Defaults to true/default.
<ide> * - associated: Associations listed here will be mar... | 2 |
Javascript | Javascript | check statements in path for asi safe | f000854cee3caae71b0a6397c1c5ccf13302675a | <ide><path>lib/javascript/JavascriptParser.js
<ide> class JavascriptParser extends Parser {
<ide> * @returns {boolean} true when a semicolon has been inserted before this position, false if not
<ide> */
<ide> isAsiPosition(pos) {
<del> const currentStatement = this.statementPath[this.statementPath.length - 1];
<d... | 3 |
Go | Go | add ps -s | bd04d7d475e6497070b3144e6526566b066674cf | <ide><path>api.go
<ide> func getContainersJSON(srv *Server, version float64, w http.ResponseWriter, r *h
<ide> if err != nil {
<ide> return err
<ide> }
<add> size, err := getBoolParam(r.Form.Get("size"))
<add> if err != nil {
<add> return err
<add> }
<ide> since := r.Form.Get("since")
<ide> before := r.Form.Get(... | 3 |
Javascript | Javascript | fix lint 2 | f71be559274857e6ea00f6513f61bd8d3255733a | <ide><path>src/main-process/atom-window.js
<ide> module.exports = class AtomWindow extends EventEmitter {
<ide> this.browserWindow.webContents.on(
<ide> 'render-process-gone',
<ide> async (event, { reason }) => {
<del> if (reason === "crashed") {
<add> if (reason === 'crashed') {
<ide> ... | 1 |
Go | Go | fix error message for non-buildkit | b1942bc015f0ec6258c39748032171c09bf562ab | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildDockerignoringBadExclusion(c *check.C) {
<ide> build.WithFile(".dockerignore", "!\n"),
<ide> )).Assert(c, icmd.Expected{
<ide> ExitCode: 1,
<del> Err: `: illegal exclusion pattern: "!"`,
<add> Err: `illegal exclusi... | 1 |
Javascript | Javascript | give unified name to vmd animation | 0e1a70097f027a536c0d51a4c1cb808093459e8a | <ide><path>examples/js/loaders/MMDLoader.js
<ide> THREE.MMDLoader.prototype.mergeVmds = function ( vmds ) {
<ide>
<ide> };
<ide>
<del>THREE.MMDLoader.prototype.pourVmdIntoModel = function ( mesh, vmd ) {
<add>THREE.MMDLoader.prototype.pourVmdIntoModel = function ( mesh, vmd, name ) {
<ide>
<del> this.createAnimation... | 1 |
Java | Java | add doafterterminate callback to the single type. | 7bfecccedd8641027a17438192a1ff30fd1addb8 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Single<T> doAfterSuccess(Consumer<? super T> onAfterSuccess) {
<ide> return RxJavaPlugins.onAssembly(new SingleDoAfterSuccess<T>(this, onAfterSuccess));
<ide> }
<ide>
<add> /**
<add> * Registers an {@link Action} to be called after... | 3 |
Javascript | Javascript | add regression test for | 0d3fc9de1019fcc69d3be0add555ea47f364059c | <ide><path>packages/react-dom/src/__tests__/DOMPropertyOperations-test.js
<ide> describe('DOMPropertyOperations', () => {
<ide> ReactDOM.render(<progress value="30" />, container);
<ide> expect(container.firstChild.setAttribute).toHaveBeenCalledTimes(2);
<ide> });
<add>
<add> it('should return the pr... | 1 |
Javascript | Javascript | fix cancelchildanimations throwing exception | b9557b0a86206d938a738ea470736d011dff7e1a | <ide><path>src/ngAnimate/animate.js
<ide> angular.module('ngAnimate', ['ng'])
<ide> var forEach = angular.forEach;
<ide> var selectors = $animateProvider.$$selectors;
<ide>
<add> var ELEMENT_NODE = 1;
<ide> var NG_ANIMATE_STATE = '$$ngAnimateState';
<ide> var NG_ANIMATE_CLASS_NAME = 'ng-animate';
<i... | 1 |
Javascript | Javascript | remove the monkeypatch of watchpack (#580) | 8d543bd1485a65d7a2cb6c96ad04ff201249cae7 | <ide><path>server/build/plugins/watch-remove-event-plugin.js
<ide> export default class WatchRemoveEventPlugin {
<ide> }, callbackUndelayed)
<ide>
<ide> const watchpack = watchFileSystem.watcher
<del> watchpack.fileWatchers.forEach((w) => {
<del> w.on('remove', this.onRemove.bind(this, watchpac... | 1 |
Python | Python | add docstrings in callbacks, models, optimizers | 9a93fc51cf50bb557c30678ba1c75826860a1425 | <ide><path>keras/callbacks.py
<ide> def on_train_end(self, logs={}):
<ide>
<ide>
<ide> class Callback(object):
<del>
<add> '''Abstract base class used to build new callbacks.
<add>
<add> # Properties
<add> params: dict. Training parameters
<add> (eg. verbosity, batch size, number of epochs...)... | 4 |
Javascript | Javascript | move filter tests to proper location | 0ced30e3190b6fe2714d8f01ebf92d7eb48d424b | <ide><path>test/unit/traversing.js
<ide> test("is(jQuery)", function() {
<ide> ok( !jQuery("#simon").is( jQuery(".blogTest")[0] ), "Check for multiple classes: Expected classes 'blog' and 'link', but not 'blogTest'" );
<ide> });
<ide>
<del>test("filter() with positional selectors", function() {
<del> expect(19);
<del... | 1 |
Text | Text | fix typo in stream.md | 4d5ae3022c96d6e3f23788fe0ad4cb1333763bcf | <ide><path>doc/api/stream.md
<ide> user programs.
<ide>
<ide> `transform._transform()` is never called in parallel; streams implement a
<ide> queue mechanism, and to receive the next chunk, `callback` must be
<del>called, either synchronously or asychronously.
<add>called, either synchronously or asynchronously.
<ide... | 1 |
Javascript | Javascript | add a basic embedded cmap reader | 0197697d1f23391360052b74ff555251d48d3f35 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> if (!encoding)
<ide> error("Unknown font encoding");
<ide>
<del> var firstChar = xref.fetchIfRef(fontDict.get("FirstChar"));
<del>
<ide> var index = 0;
<ide> ... | 1 |
Javascript | Javascript | use fixture files | 22a9e7f50f0c909aee8175d9cb7d04ea2c47bdbc | <ide><path>node-tests/blueprints/instance-initializer-test-test.js
<ide> const modifyPackages = blueprintHelpers.modifyPackages;
<ide> const chai = require('ember-cli-blueprint-test-helpers/chai');
<ide> const expect = chai.expect;
<ide>
<add>const fixture = require('../helpers/fixture');
<add>
<ide> describe('Bluepri... | 4 |
Text | Text | add comments to example in readme | d6086b32202fff584452570967530e6b64fd271b | <ide><path>README.md
<ide> has changed.
<ide> ```javascript
<ide> var map1 = Immutable.Map({a:1, b:2, c:3});
<ide> var map2 = map1.set('b', 2);
<del>assert(map1 === map2);
<add>assert(map1 === map2); // no change
<ide> var map3 = map1.set('b', 50);
<del>assert(map1 !== map3);
<add>assert(map1 !== map3); // change
<ide>... | 1 |
Python | Python | add multitask evaluation | bbe3df01844b2e7eab1f9fe0d67fa3572a192b3d | <ide><path>official/modeling/multitask/__init__.py
<add># Copyright 2021 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add>... | 7 |
Text | Text | update example of nested data | e6308155dd01a5ac51d2c6b7266db04c244c7976 | <ide><path>docs/topics/writable-nested-serializers.md
<ide> Some example output from our serializer.
<ide>
<ide> {
<ide> 'title': 'Leaving party preperations',
<del> 'items': {
<add> 'items': [
<ide> {'text': 'Compile playlist', 'is_completed': True},
<ide> {'text': 'S... | 1 |
Go | Go | remove unused stuff | 59648fc1e9d99cae7f4c5f692fe25a73d0651a71 | <ide><path>builder/dockerfile/internals_unix.go
<del>// +build !windows
<del>
<del>package dockerfile
<del>
<del>import (
<del> "os"
<del> "path/filepath"
<del>)
<del>
<del>func fixPermissions(source, destination string, uid, gid int, destExisted bool) error {
<del> // If the destination didn't already exist, or the de... | 4 |
Python | Python | fix minor bug in ncf data creation cleanup code | d6117ed15d8529b2ef20ac295f06b75eb24a7b4d | <ide><path>official/recommendation/data_pipeline.py
<ide> def __init__(
<ide> self._shuffle_with_forkpool = not stream_files
<ide> if stream_files:
<ide> self._shard_root = epoch_dir or tempfile.mkdtemp(prefix="ncf_")
<del> atexit.register(tf.io.gfile.rmtree, dirname=self._shard_root)
<add> atex... | 1 |
Text | Text | add links to selector articles | 52616477d39b2761681badf751ee139c193946a8 | <ide><path>docs/faq/CodeStructure.md
<ide> While it ultimately doesn't matter how you lay out your code on disk, it's impor
<ide> - [A Better File Structure for React/Redux Applications](http://marmelab.com/blog/2015/12/17/react-directory-structure.html)
<ide> - [Organizing Large React Applications](http://engineering.... | 3 |
Text | Text | fix typos, consistent styling w/ english version | 914e7a4fe471ec884be9245d8a1033b9428dca8c | <ide><path>curriculum/challenges/spanish/01-responsive-web-design/applied-accessibility/wrap-radio-buttons-in-a-fieldset-element-for-better-accessibility.spanish.md
<ide> id: 587d778b367417b2b2512aa7
<ide> title: Wrap Radio Buttons in a fieldset Element for Better Accessibility
<ide> challengeType: 0
<ide> videoUrl: ''... | 1 |
PHP | PHP | apply fixes from styleci | 458e66e7e5e659f6a27aec7c907be97946a11679 | <ide><path>tests/Database/DatabaseConnectionFactoryTest.php
<ide> use ReflectionProperty;
<ide> use InvalidArgumentException;
<ide> use PHPUnit\Framework\TestCase;
<del>use Illuminate\Database\Connection;
<ide> use Illuminate\Database\Capsule\Manager as DB;
<ide> use Illuminate\Database\Connectors\ConnectionFactory;
<i... | 1 |
Text | Text | fix captioning example in docs | eb8b40cccdfff5e9782c33192ac021f5e7c9bc78 | <ide><path>docs/templates/examples.md
<ide> image_model.add(RepeatVector(max_caption_len))
<ide>
<ide> # the output of both models will be tensors of shape (samples, max_caption_len, 128).
<ide> # let's concatenate these 2 vector sequences.
<del>model = Merge([image_model, language_model], mode='concat', concat_axis=-... | 1 |
Javascript | Javascript | replace fixturedir with fixtures module | 56c0e7d10f32b6a7e6010cf38d164e2fbabe93f7 | <ide><path>test/parallel/test-http2-respond-file-push.js
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<add>
<add>const fixtures = require('../common/fixtures');
<add>
<ide> const http2 = require('http2');
<ide> const assert = require('assert');
<del>cons... | 1 |
Mixed | Java | add flag to enable lazy view managers | 1296cb29ebf4e47333047897051bf084cf158e22 | <ide><path>Libraries/Utilities/UIManager.js
<ide> if (Platform.OS === 'ios') {
<ide> });
<ide> }
<ide> });
<add>} else if (Platform.OS === 'android' && UIManager.AndroidLazyViewManagersEnabled) {
<add> // TODO fill this out
<ide> }
<ide>
<ide> module.exports = UIManager;
<ide><path>ReactAndroid/src/main/j... | 4 |
PHP | PHP | use string concat instead of double quotes | 89a72113cfbd8b3b031ab38bb62afe6fbf276b46 | <ide><path>src/Controller/Component/FlashComponent.php
<ide> public function set($message, array $options = []) {
<ide> $message = $message->getMessage();
<ide> }
<ide>
<del> $this->_session->write("Flash.{$opts['key']}", [
<add> $this->_session->write('Flash.' . $opts['key'], [
<ide> 'message' => $message,
... | 1 |
PHP | PHP | replace deprecated methods | b5bd087bc5c8fc8ca635ffb2b54cb6bbdc86dd47 | <ide><path>lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
<ide> public function setUp() {
<ide> 'hasAndBelongsToMany' => array('Article')
<ide> ), false);
<ide>
<del> $this->User->Behaviors->attach('Containable');
<del> $this->Article->Behaviors->attach('Containable');
<del> $this->Tag->Behavior... | 7 |
Javascript | Javascript | remove some debugging informations | d26969a85fc1cd43d7d623515605463afa19c25f | <ide><path>web/viewer.js
<ide> var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
<ide> textDiv.style.top = (text.geom.y - fontHeight) + 'px';
<ide>
<ide> // The content of the div is set in the `setTextContent` function.
<del> // For debug reasons, do the bidi thing here to compare it later o... | 1 |
Java | Java | improve decoding support for multipart filename | bb684ce60b82bb2d3a81828a6780800c51bb4e33 | <ide><path>spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java
<ide> import java.io.IOException;
<ide> import java.io.InputStream;
<ide> import java.io.Serializable;
<del>import java.nio.charset.Charset;
<del>import java.nio.charset.StandardCharsets;
<add>import j... | 3 |
Ruby | Ruby | pour local bottles without sha256 | 4cfd333c5a9fd32f1d9870b3e4987c7dad76a88a | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour_bottle?(install_bottle_options = { warn: false })
<ide> return false if @pour_failed
<ide>
<ide> bottle = formula.bottle
<del> return false unless bottle
<add> return false if !bottle && !formula.local_bottle_path
<ide> return true if f... | 1 |
Ruby | Ruby | fix small typo | c02391f8f97182e818d22a0f0ec4a5589d2fff15 | <ide><path>actionmailer/test/base_test.rb
<ide> def custom_block(include_html=false)
<ide> test "explicit multipart with options" do
<ide> email = BaseMailer.custom_block(true).deliver
<ide> assert_equal(2, email.parts.size)
<del> assert_equal("multipart/alternate", email.mime_type)
<add> assert_equal("... | 1 |
Python | Python | fix init for padding | 233945bfe0847e9e9c43156c7360e181e8490ecd | <ide><path>spacy/ml/_precomputable_affine.py
<ide> def init(model, X=None, Y=None):
<ide>
<ide> ops = model.ops
<ide> W = normal_init(ops, W.shape, mean=float(ops.xp.sqrt(1.0 / nF * nI)))
<add> pad = normal_init(ops, pad.shape, mean=1.0)
<ide> model.set_param("W", W)
<ide> model.set_param("b", b)
<i... | 1 |
PHP | PHP | accept any datetimeinterface as valid | f3462c06bae748986da5d6350e2df917f64ab994 | <ide><path>src/Validation/Validation.php
<ide> namespace Cake\Validation;
<ide>
<ide> use Cake\Utility\Text;
<del>use DateTime;
<add>use DateTimeInterface;
<ide> use LogicException;
<ide> use NumberFormatter;
<ide> use RuntimeException;
<ide> public static function custom($check, $regex = null)
<ide> * - `ym` 200... | 2 |
Javascript | Javascript | fix situation where build can hang indefinitely | 841cd6c4d78abdf8bee8fa64feb2f401db45a5d2 | <ide><path>packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js
<ide> export default class TaskRunner {
<ide> const done = () => step(index, result)
<ide> if (cachePath) {
<ide> writeFileP(cachePath, JSON.stringify(result), 'utf8')
<del> .then(done)
<d... | 2 |
Javascript | Javascript | add missing test/mocks.js | 3f0a37f380e262fa86689f06c0801ae54d8a0983 | <ide><path>test/mocks.js
<add>/**
<add> * Mock implementation of {@link angular.service.$log} that gathers all logged messages in arrays
<add> * (one array per logging level). These arrays are exposed as `logs` property of each of the
<add> * level-specific log function, e.g. for level `error` the array is exposed as
<... | 1 |
Ruby | Ruby | define just the cattr_reader | 1c8539da4738d51795422903b84f79705bc854cc | <ide><path>actionpack/lib/action_view/digestor.rb
<ide> class Digestor
<ide> ([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
<ide> /x
<ide>
<del> cattr_accessor(:cache) { Hash.new }
<add> cattr_reader(:cache)
<add> @@cache = Hash.new
<ide>
<ide> def self.digest(name, fo... | 1 |
Ruby | Ruby | simplify rendering of environment variables | d8eab8c2114f8f89decb4293283ec747f82f9d08 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/doctor.rb
<ide> def self.run
<ide> ohai "Homebrew-Cask Staging Location:", render_staging_location(Hbc.caskroom)
<ide> ohai "Homebrew-Cask Cached Downloads:", render_cached_downloads
<ide> ohai "Homebrew-Cask Taps:"
<del> puts render_taps(Hbc.d... | 1 |
PHP | PHP | switch increments to use unsignedbiginteger | a40653328d830b92b464540bc1468b6f183b75d4 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function foreign($columns, $name = null)
<ide> }
<ide>
<ide> /**
<del> * Create a new auto-incrementing integer (4-byte) column on the table.
<add> * Create a new auto-incrementing integer column on the table.
<ide> *
<ide> ... | 2 |
Text | Text | fix inadvertent double bullets in bulleted lists | dd6b9a2cfadf2b5f98db800d414ac1cb67739a1c | <ide><path>docs/faq/OrganizingState.md
<ide> Data with IDs, nesting, or relationships should generally be stored in a “norm
<ide> **Documentation**
<ide>
<ide> - [Redux Fundamentals: Async Logic and Data Flow](../tutorials/fundamentals/part-6-async-logic.md)
<del>- - [Redux Fundamentals: Standard Redux Patterns](../tu... | 3 |
Ruby | Ruby | add a test for legacy options | f306e56d214587b5ef6f6b5505b34280da19a075 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_raises_when_non_formula_constant_exists
<ide> Object.send(:remove_const, const)
<ide> end
<ide> end
<add>
<add> def test_legacy_options
<add> f = formula do
<add> url "foo-1.0"
<add>
<add> def options
<add> [["--foo", "desc... | 1 |
Javascript | Javascript | add missing parameter to $routechangeerror | 3b5fd53e2db3dafedd0f0e65ab272379aff81139 | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> * @description
<ide> * Broadcasted if any of the resolve promises are rejected.
<ide> *
<add> * @param {Object} angularEvent Synthetic event object
<ide> * @param {Route} current Current route information.
<ide> * @param... | 1 |
Javascript | Javascript | add pipeline test for destroy of returned stream | 9e3eddc75dde9df9356264b42bd30facb82583cd | <ide><path>test/parallel/test-stream-pipeline.js
<ide> const { promisify } = require('util');
<ide> }));
<ide> src.push(null);
<ide> }
<add>
<add>{
<add> const src = new PassThrough();
<add> const dst = pipeline(
<add> src,
<add> async function * (source) {
<add> for await (const chunk of source) {
<ad... | 1 |
Javascript | Javascript | fix accent mark | 9d560507e54612cf2fdd84cbaa117337568a384c | <ide><path>src/locale/es.js
<ide> export default moment.defineLocale('es', {
<ide> dow: 1, // Monday is the first day of the week.
<ide> doy: 4, // The week that contains Jan 4th is the first week of the year.
<ide> },
<del> invalidDate: 'Fecha invalida',
<add> invalidDate: 'Fecha inválida',
<... | 2 |
Python | Python | add first code for process io / no display | 86def8a52a216eaa5dceabc2cc54914b577e1a4f | <ide><path>glances/glances.py
<ide> else:
<ide> psutil_get_cpu_percent_tag = True
<ide>
<add>try:
<add> # get_io_counter only available on Linux and FreeBSD
<add> psutil.Process(os.getpid()).get_io_counters()
<add>except Exception:
<add> psutil_get_io_counter_tag = False
<add>else:
<add> psutil_get_io_... | 1 |
Java | Java | remove batchedexecutiontime from fabric metrics | bd7df8bdaacfe3d623e66d1624e057a6b728315a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> public class FabricUIManager implements UIManager, LifecycleEventListener {
<ide>
<ide> private long mRunStartTime = 0l;
<ide> private long mBatchedExecutionTime = 0l;
<del> private long mNonBatchedExecutionTime = 0l;
<ide>... | 1 |
Text | Text | update external links in security guide | 27e6fba1f4a50c4b581c8f30a75b5f4066d562ce | <ide><path>guides/source/security.md
<ide> Hence, the cookie serves as temporary authentication for the web application. An
<ide>
<ide> * Instead of stealing a cookie unknown to the attacker, they fix a user's session identifier (in the cookie) known to them. Read more about this so-called session fixation later.
<ide... | 1 |
Python | Python | remove unneeded assignment of variable | 52c6516509ea40493b888aad08f49961635f5fc8 | <ide><path>airflow/contrib/sensors/bash_sensor.py
<ide> def poke(self, context):
<ide> self.sp = sp
<ide>
<ide> self.log.info("Output:")
<del> line = ''
<ide> for line in iter(sp.stdout.readline, b''):
<ide> line = line.decode(self.outp... | 1 |
Javascript | Javascript | add block scoping to test-readline-interface | daf5596c279bca8a461b8f573e9bdfb93acb539d | <ide><path>test/parallel/test-readline-interface.js
<ide> function isWarned(emitter) {
<ide> }
<ide>
<ide> [ true, false ].forEach(function(terminal) {
<del> let fi;
<del> let rli;
<del> let called;
<del>
<ide> // disable history
<del> fi = new FakeInput();
<del> rli = new readline.Interface({ input: fi, output... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.