content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add async flow | dacc5a473212687ad55f3df16fe09c27f74bdb13 | <ide><path>docs/advanced/AsyncFlow.md
<add># Async Flow
<add>
<add>Without [middleware](Middleware.md), Redux store only supports [synchronous data flow](../basics/DataFlow.md). This is what you get by default with [`createStore()`](../api/createStore.md).
<add>
<add>You may enhance [`createStore()`](../api/createStore... | 1 |
Javascript | Javascript | fix rntester webbrowser example | 4d99daaa914398b24e9783b47858434e25bb5fcb | <ide><path>RNTester/js/WebViewExample.js
<ide> var DISABLED_WASH = 'rgba(255,255,255,0.25)';
<ide> var TEXT_INPUT_REF = 'urlInput';
<ide> var WEBVIEW_REF = 'webview';
<ide> var DEFAULT_URL = 'https://m.facebook.com';
<add>const FILE_SYSTEM_ORIGIN_WHITE_LIST = ['file://*', 'http://*', 'https://*'];
<ide>
<ide> class We... | 1 |
Go | Go | export the logt type and use it in the options | 95ea6e70696582cec3643b160a4eb4b98aa3d9e7 | <ide><path>testutil/daemon/daemon.go
<ide> import (
<ide> "gotest.tools/assert"
<ide> )
<ide>
<del>type logT interface {
<add>// LogT is the subset of the testing.TB interface used by the daemon.
<add>type LogT interface {
<ide> Logf(string, ...interface{})
<ide> }
<ide>
<del>// nopLog is a no-op implementation of ... | 2 |
Text | Text | add notes to contributing docs | 23369650e3502305ebf5d682e141c7d47db89111 | <ide><path>docs/topics/contributing.md
<ide> There are many ways you can contribute to Django REST framework. We'd like it t
<ide>
<ide> The most important thing you can do to help push the REST framework project forward is to be actively involved wherever possible. Code contributions are often overvalued as being t... | 1 |
Mixed | Ruby | permit attachments in mailbox conductor params | c6c53a02a5dfb99fba7c0886893fde46060fdcc7 | <ide><path>actionmailbox/CHANGELOG.md
<add>* Add `attachments` to the list of permitted parameters for inbound emails conductor.
<add>
<add> When using the conductor to test inbound emails with attachments, this prevents an
<add> unpermitted parameter warning in default configurations, and prevents errors for
<... | 3 |
Javascript | Javascript | fix broken test | aa36194eb06daf5a2e62108993ed90fb836de4b3 | <ide><path>packages/ember-runtime/tests/suites/array/lastIndexOf.js
<add>import { get } from 'ember-metal';
<ide> import { SuiteModuleBuilder } from '../suite';
<ide>
<ide> const suite = SuiteModuleBuilder.create();
<ide> suite.test('should return -1 when no match is found even startAt search location
<ide> let obj ... | 1 |
PHP | PHP | add test for session.close | 64e46c6c722e31c10b064a68064ca904a793c712 | <ide><path>src/Http/Session.php
<ide> public function start()
<ide> }
<ide>
<ide> /**
<del> * Write datas and close the session
<add> * Write data and close the session
<ide> *
<ide> * @return bool True if session was started
<ide> */
<ide><path>tests/TestCase/Http/SessionTest.php
<ide> ... | 2 |
Javascript | Javascript | allow service names with a single underscore | f0ee3353112fd84a48cf3214174536ab19e5823d | <ide><path>test/auto/injectorSpec.js
<ide> describe('injector', function() {
<ide> expect(annotate(beforeEachFn)).toEqual(['foo']);
<ide> });
<ide>
<add> it('should not strip service names with a single underscore', function() {
<add> function beforeEachFn(_) { /* _ = _ */ }
<add> expect(annotat... | 1 |
Ruby | Ruby | move neversudosystemcommand to separate file | a9e538efbdb0532e9236400434c9970e0cdfd8fc | <ide><path>Library/Homebrew/cask/spec/spec_helper.rb
<ide> end
<ide> end
<ide> end
<del>
<del>module Hbc
<del> class NeverSudoSystemCommand < SystemCommand
<del> def self.run(command, options = {})
<del> super(command, options.merge(sudo: false))
<del> end
<del> end
<del>end
<add><path>Library/Homebr... | 2 |
Javascript | Javascript | clarify the arguments of $setvalidity | ca5fcc6f7a842360bbe6286f900fb2e17f280eef | <ide><path>src/ng/directive/form.js
<ide> function FormController(element, attrs, $scope, $animate, $interpolate) {
<ide> addSetValidityMethod({
<ide> ctrl: this,
<ide> $element: element,
<del> set: function(object, property, control) {
<add> set: function(object, property, controller) {
<ide> var... | 2 |
Text | Text | remove container.json from readme | d0bee7939482b982462c5848f24b2e5e9ad897ea | <ide><path>pkg/libcontainer/README.md
<ide> a `container.json` file is placed with the runtime configuration for how the pro
<ide> should be contained and ran. Environment, networking, and different capabilities for the
<ide> process are specified in this file. The configuration is used for each process executed ins... | 1 |
Javascript | Javascript | fix undefined variables from specs | cd302135f0a19c6f3d03dd555d228556f523c741 | <ide><path>spec/atom-environment-spec.js
<ide> describe('AtomEnvironment', () => {
<ide>
<ide> it('will open the dev tools when an error is triggered', async () => {
<ide> try {
<del> a + 1 // eslint-ignore-line no-unused-vars
<add> a + 1 // eslint-disable-line no-undef
<ide> } catch (e) ... | 9 |
Javascript | Javascript | add datetime to the list of known attributes | 9f94244994354cb6efd6cb526a39b648e2ae5257 | <ide><path>src/dom/DefaultDOMPropertyConfig.js
<ide> var DefaultDOMPropertyConfig = {
<ide> contentEditable: null,
<ide> controls: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
<ide> data: null, // For `<object />` acts as `src`.
<add> datetime: null,
<ide> dir: null,
<ide> disabled: MUST_USE_PROPERTY |... | 1 |
Python | Python | move import into load to avoid circular imports | e49cd7aeaf81ed12490d82b8a65ca93088ec916e | <ide><path>spacy/__init__.py
<ide>
<ide> from .cli.info import info as cli_info
<ide> from .glossary import explain
<del>from .deprecated import resolve_load_name
<ide> from .about import __version__
<ide> from . import util
<ide>
<ide>
<ide> def load(name, **overrides):
<add> from .deprecated import resolve_load... | 1 |
Go | Go | remove compose types.dict alias | d3dc27d145a36b3c81fd5999f2c525af95d9596a | <ide><path>cli/compose/interpolation/interpolation.go
<ide> import (
<ide> "fmt"
<ide>
<ide> "github.com/docker/docker/cli/compose/template"
<del> "github.com/docker/docker/cli/compose/types"
<ide> )
<ide>
<ide> // Interpolate replaces variables in a string with the values from a mapping
<del>func Interpolate(confi... | 5 |
Javascript | Javascript | add method on yellowbox to ignore warnings | a974c140db605ecbdf8d3faa7a079b7e2dcebb09 | <ide><path>Libraries/ReactNative/YellowBox.js
<ide> type WarningInfo = {
<ide>
<ide> const _warningEmitter = new EventEmitter();
<ide> const _warningMap: Map<string, WarningInfo> = new Map();
<add>const IGNORED_WARNINGS: Array<string> = [];
<ide>
<ide> /**
<ide> * YellowBox renders warnings at the bottom of the app ... | 1 |
Text | Text | add michaël zasso to the ctc | 9e4a899d31181a34b20b99785fae7a6a97210e60 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Rod Vagg** <rod@vagg.org>
<ide> * [shigeki](https://github.com/shigeki) -
<ide> **Shigeki Ohtsu** <ohtsu@iij.ad.jp>
<add>* [targos](https://github.com/targos) -
<add>**Michaël Zasso** <targos@protonmail.c... | 1 |
Ruby | Ruby | add some emoji tests 💯 | 65dde58057029d473be9175444b333525fe82850 | <ide><path>Library/Homebrew/test/emoji_test.rb
<add>require "testing_env"
<add>require "emoji"
<add>
<add>class EmojiTest < Homebrew::TestCase
<add> def test_install_badge
<add> assert_equal "🍺", Emoji.install_badge
<add>
<add> ENV["HOMEBREW_INSTALL_BADGE"] = "foo"
<add> assert_equal "foo", Emoji.install_bad... | 2 |
Java | Java | remove unnecessary static modifier | f3ce7238ced24349247c25ed2a76357f03f4eaf5 | <ide><path>src/main/java/rx/Notification.java
<ide> public void accept(Observer<? super T> observer) {
<ide> }
<ide> }
<ide>
<del> public static enum Kind {
<add> public enum Kind {
<ide> OnNext, OnError, OnCompleted
<ide> }
<ide>
<ide><path>src/main/java/rx/Single.java
<ide> public fina... | 2 |
Javascript | Javascript | add tests for c1 and support for six-digit years | 273b9ef58e32d21a1a151fec2ef7902f42553c73 | <ide><path>moment.js
<ide> aspNetJsonRegex = /^\/?Date\((\-?\d+)/i,
<ide>
<ide> // format tokens
<del> formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?)/g,
<add> formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?... | 2 |
Ruby | Ruby | remove useless ternary in postgresql adapter | 6a534455f66a24e807d75dccc847981fdf43fa18 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def quoted_date(value) #:nodoc:
<ide>
<ide> def supports_disable_referential_integrity?() #:nodoc:
<ide> version = query("SHOW server_version")[0][0].split('.')
<del> (version[0].to_i >= 8 && version[1].to_i ... | 1 |
Ruby | Ruby | add linux and macos only function blocks | c7927f5af594c0d2c20cea6957adfb78bdf9b98c | <ide><path>Library/Homebrew/extend/os/formula.rb
<add># frozen_string_literal: true
<add>
<add>if OS.mac?
<add> require "extend/os/mac/formula"
<add>elsif OS.linux?
<add> require "extend/os/linux/formula"
<add>end
<ide><path>Library/Homebrew/extend/os/linux/formula.rb
<add># frozen_string_literal: true
<add>
<add>cla... | 6 |
Javascript | Javascript | fix the unicode symbols on the text layer | 9234c315d5869580ae14bb5e721a89a4f8225529 | <ide><path>src/fonts.js
<ide> var Font = (function Font() {
<ide> break;
<ide> }
<ide>
<del> var unicodeChars = this.toUnicode ? this.toUnicode[charcode] : charcode;
<add> var unicodeChars = !('toUnicode' in this) ? charcode :
<add> this.toUnicode[charcode] || charcode;
<ide> if ... | 1 |
Javascript | Javascript | remove undefined function | 8331f571edb27491161589f30e88962dfe436c2c | <ide><path>test/parallel/test-timers-max-duration-warning.js
<ide> const timers = require('timers');
<ide> const OVERFLOW = Math.pow(2, 31); // TIMEOUT_MAX is 2^31-1
<ide>
<ide> function timerNotCanceled() {
<del> common.fail('Timer should be canceled');
<add> assert.fail('Timer should be canceled');
<ide> }
<ide>
... | 2 |
Python | Python | add danish language data | bb8be3d194689a78c29cf04b989e25a30405e1e2 | <ide><path>spacy/lang/da/__init__.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
<add>from .stop_words import STOP_WORDS
<add>
<add>from ..tokenizer_exceptions import BASE_EXCEPTIONS
<add>from ...language import Language
<add>from ..... | 3 |
PHP | PHP | fix casing of method name | 595cced4214326a4d62b172a0519e37cf460486b | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> public function describeOptionsSql($tableName, $config)
<ide> */
<ide> public function convertOptionsDescription(TableSchema $schema, $row)
<ide> {
<del> $schema->SetOptions([
<add> $schema->setOptions([
<ide> 'engine' => $row['... | 1 |
Javascript | Javascript | add missing hooks to progress | 3d745045a1d53d1fb3c78bdbb2c85ebe8099a19f | <ide><path>lib/ProgressPlugin.js
<ide> class ProgressPlugin {
<ide> const hooks = {
<ide> finishModules: "finish module graph",
<ide> seal: "sealing",
<add> beforeChunks: "chunk graph",
<add> afterChunks: "after chunk graph",
<ide> optimizeDependenciesBasic: "basic dependencies optimization",... | 1 |
Javascript | Javascript | adjust logic as suggested by westlangley | 779784c74c7423e79e4e339d98af42cc3715a746 | <ide><path>src/geometries/ExtrudeGeometry.js
<ide> function ExtrudeBufferGeometry( shapes, options ) {
<ide>
<ide> t = b / bevelSegments;
<ide> z = bevelThickness * Math.cos( t * Math.PI / 2 );
<del> bs = Math.abs( bevelSize ) * Math.sin( t * Math.PI / 2 );
<del>
<del> if ( bevelSize < 0 ) {
<del>
<del> b... | 1 |
Javascript | Javascript | update hash with empty string for missing files | fe62f9eabb933ac1c2d343a91c6d26f8378dbdb6 | <ide><path>lib/FileSystemInfo.js
<ide> class FileSystemInfo {
<ide> }
<ide>
<ide> if (stat.isFile()) {
<del> return this.getFileHash(child, callback);
<add> return this.getFileHash(child, (err, hash) => {
<add> callback(err, hash || "");
<add> });
<ide> }
<ide> if (stat... | 1 |
PHP | PHP | change visibility on engine | f135399a5a2c013897aa0df54540d9d9954c7e45 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> class Blueprint {
<ide> *
<ide> * @var string
<ide> */
<del> protected $engine;
<add> public $engine;
<ide>
<ide> /**
<ide> * Create a new schema blueprint. | 1 |
Java | Java | add a resolvabletype field to handlerresult | c6713c23e327961d021706e5b1e4d5ebe8e2f458 | <ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerResult.java
<ide>
<ide> package org.springframework.reactive.web.dispatch;
<ide>
<add>import org.springframework.core.ResolvableType;
<ide>
<ide> /**
<ide> * Represent the result of the invocation of an handler.
<ide> publ... | 7 |
Javascript | Javascript | fix whitespace in headers | fda7a673c1a78633bc55b0ae762d7cae51ca230f | <ide><path>src/addons/shallowCompare.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<del>* @providesModule shallowCompare
<del>*/
<add> * @providesModule shallowCompare
<add> */
<ide>
<id... | 3 |
PHP | PHP | convert i18n shell tests to be integration style | ed13c7cfb82ed441e39aa6cd713dcb0f8576f0b9 | <ide><path>tests/TestCase/Shell/I18nShellTest.php
<ide> namespace Cake\Test\TestCase\Shell;
<ide>
<ide> use Cake\Shell\I18nShell;
<del>use Cake\TestSuite\TestCase;
<add>use Cake\TestSuite\ConsoleIntegrationTestCase;
<ide>
<ide> /**
<ide> * I18nShell test.
<ide> */
<del>class I18nShellTest extends TestCase
<add>clas... | 1 |
Text | Text | update writable.write return value | f347dad0b7b1787092cca88789b77eb3def2d319 | <ide><path>doc/api/stream.md
<ide> occurs, the `callback` *may or may not* be called with the error as its
<ide> first argument. To reliably detect write errors, add a listener for the
<ide> `'error'` event.
<ide>
<del>The return value indicates whether the written `chunk` was buffered internally
<del>and the buffer h... | 1 |
Javascript | Javascript | remove unused function argument | 751d215eb8334bff0e50b7a379b55180870b7f5c | <ide><path>lib/internal/inspector/inspect_repl.js
<ide> function createRepl(inspector) {
<ide> const lines = watchedExpressions
<ide> .map((expr, idx) => {
<ide> const prefix = `${leftPad(idx, ' ', lastIndex)}: ${expr} =`;
<del> const value = inspect(values[idx], { colors: true ... | 1 |
Javascript | Javascript | remove root.unmount() callback from devtools code | d2ae77d0e41fc6cee22bf3f0c9bd9c3d8bcec58c | <ide><path>packages/react-devtools-extensions/src/main.js
<ide> function createPanelIfReactLoaded() {
<ide>
<ide> // It's easiest to recreate the DevTools panel (to clean up potential stale state).
<ide> // We can revisit this in the future as a small optimization.
<del> flushSync(() => {
<del> ... | 1 |
Text | Text | trim github template comments | 42ede93d14838b062dfad870bb10f1606f55e2c2 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> <!--
<del>Thanks for wanting to report an issue you've found in Node.js. Please fill in
<del>the template below by replacing the html comments with an appropriate answer.
<del>If unsure about something, just do as best as you're able.
<add>Thank you for reporting an issue. Ple... | 2 |
Javascript | Javascript | remove optimistic update | 8ce2cde619b4b4d66276933ce48f103e0c13e123 | <ide><path>common/app/routes/Hikes/flux/Actions.js
<ide> export default Actions({
<ide> }
<ide>
<ide> // challenge completed
<del> const optimisticSave = isSignedIn ?
<del> this.post$('/completed-challenge', { id, name, challengeType }) :
<del> Observable.just(true);
<add> let update$;
<add> ... | 1 |
PHP | PHP | implement failing tests for prefixing aliases | 554713afb487666fb8d7400d2be6a7b7427ba5de | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testBasicAlias()
<ide> }
<ide>
<ide>
<add> public function testAliasWithPrefix()
<add> {
<add> $builder = $this->getBuilder();
<add> $builder->getGrammar()->setTablePrefix('prefix_');
<add> $builder->select('*')->from('users as people');... | 1 |
PHP | PHP | fix flash directory in docblock | 8156c16dd7f91f5f295157422b3b98c09a943896 | <ide><path>src/Controller/Component/FlashComponent.php
<ide> public function set($message, array $options = []) {
<ide> * Magic method for verbose flash methods based on element names.
<ide> *
<ide> * For example: $this->Flash->success('My message') would use the
<del> * success.ctp element under `Template/Element/F... | 1 |
PHP | PHP | add assertions for boolean values | ea51c30de77d33f6e436e4f3d75888c0e0a35ec9 | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testIsInteger()
<ide> $this->assertFalse(Validation::isInteger([]));
<ide> $this->assertFalse(Validation::isInteger(new \StdClass));
<ide> $this->assertFalse(Validation::isInteger('2 bears'));
<add> $this->asser... | 1 |
Python | Python | accept single tensor | bb9b800ebba8914b69db362cfac4e7c8a9b17a9e | <ide><path>keras/engine/training.py
<ide> def compile(self, optimizer,
<ide> for name in self.output_names:
<ide> tmp_target_tensors.append(target_tensors.get(name, None))
<ide> target_tensors = tmp_target_tensors
<add> elif K.is_tensor(target_tensors):
<ad... | 2 |
Text | Text | add season to build status | 5920143bb9c725da22c185904600643bc2ac9877 | <ide><path>docs/build-instructions/build-status.md
<ide> | [Oniguruma](https://github.com/atom/node-oniguruma) | [](https://travis-ci.org/atom/node-oniguruma) | [ {
<ide> const prevState = workInProgress.memoizedState;
<ide> const state = beginUpdateQueue(workInProgress, updateQueue, null, prevState, null, priorityLevel);
<add> ... | 1 |
Javascript | Javascript | fix typo in viewpagerandroid.android.js | 2849bafbc37429377cc5c5a57774dce22ffaf9c9 | <ide><path>Libraries/Components/ViewPager/ViewPagerAndroid.android.js
<ide> var ViewPagerAndroid = React.createClass({
<ide>
<ide> /**
<ide> * A helper function to scroll to a specific page in the ViewPager.
<del> * The transition between pages will be *not* be animated.
<add> * The transition between pages w... | 1 |
Python | Python | improve validation of group id | 833e1094a72b5a09f6b2249001b977538f139a19 | <ide><path>airflow/utils/helpers.py
<ide> from airflow.models import TaskInstance
<ide>
<ide> KEY_REGEX = re.compile(r'^[\w.-]+$')
<add>GROUP_KEY_REGEX = re.compile(r'^[\w-]+$')
<ide> CAMELCASE_TO_SNAKE_CASE_REGEX = re.compile(r'(?!^)([A-Z]+)')
<ide>
<ide> T = TypeVar('T')
<ide> S = TypeVar('S')
<ide>
<ide>
<de... | 3 |
Java | Java | introduce json streaming support | 6b9b0230c4de394348c42b6f5964fc66eb659dd3 | <ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java
<ide> public class MediaType extends MimeType implements Serializable {
<ide> */
<ide> public final static String APPLICATION_RSS_XML_VALUE = "application/rss+xml";
<ide>
<add> /**
<add> * Public constant media type for {@code application/... | 4 |
Python | Python | add regression test for ticket #572 | c189d6d29970587814e65b6f29ef5dbbe7db9564 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_poly_eq(self, level=rlevel):
<ide> assert x != y
<ide> assert x == x
<ide>
<add> def check_mem_insert(self, level=rlevel):
<add> """Ticket #572"""
<add> N.lib.place(1,1,1)
<ide>
<ide> if __name__ == "__main__":
<ide> N... | 1 |
Python | Python | fix benchmark for longformer | 89a78be51f1c2afd263da66ec76d3297432f0c2a | <ide><path>src/transformers/benchmark/benchmark.py
<ide> def _prepare_inference_func(self, model_name: str, batch_size: int, sequence_len
<ide> if self.args.torchscript:
<ide> config.torchscript = True
<ide>
<del> has_model_class_in_config = hasattr(config, "architectures") and len(config.ar... | 3 |
Mixed | Python | make markdown 2.6 the minimum compatible version | 564faddb0fe6f640f38a1abb7387a86d6fe13243 | <ide><path>docs/index.md
<ide> each Python and Django series.
<ide> The following packages are optional:
<ide>
<ide> * [coreapi][coreapi] (1.32.0+) - Schema generation support.
<del>* [Markdown][markdown] (2.1.0+) - Markdown support for the browsable API.
<add>* [Markdown][markdown] (2.6.0+) - Markdown support for the... | 2 |
Java | Java | add missing word to javadoc | 2be2aa7b965e217c3e8a27f5a971323d19457374 | <ide><path>spring-core/src/main/java/org/springframework/core/ReactiveTypeDescriptor.java
<ide> import org.springframework.util.Assert;
<ide>
<ide> /**
<del> * Descriptor for a reactive type with information its stream semantics, i.e.
<add> * Descriptor for a reactive type with information about its stream semantics, ... | 1 |
Go | Go | fix typo in api/types/container/host_config.go | a003419fca2c4ce7ed53edc8da67a22748aa4a23 | <ide><path>api/types/container/host_config.go
<ide> type HostConfig struct {
<ide> Mounts []mount.Mount `json:",omitempty"`
<ide>
<ide> // Run a custom init inside the container, if null, use the daemon's configured settings
<del> Init *bool `json:",om itempty"`
<add> Init *bool `json:",omitempty"`
<ide> }
<i... | 1 |
PHP | PHP | fix tests on windows | 179bb471a96c098efb1ad2a08ff6b09106fa22d3 | <ide><path>tests/TestCase/Console/ConsoleOptionParserTest.php
<ide> public function testAddOptionWithPrompt(): void
<ide> $messages = $out->messages();
<ide>
<ide> $this->assertCount(1, $messages);
<del> $expected = '<question>What is your favorite?</question>' . PHP_EOL . '> ';
<add> $ex... | 1 |
Javascript | Javascript | remove flash messages view helper | 4e21e761ad2609c101ff94444e0a03d7668e1539 | <ide><path>app.js
<ide> app.use(function(req, res, next) {
<ide> next();
<ide> });
<ide> app.use(flash());
<del>app.use(function(req, res, next) {
<del> res.locals.flash = req.flash.bind(req);
<del> next();
<del>});
<ide> app.use(less({ src: __dirname + '/public', compress: true }));
<ide> app.use(app.router);
<ide... | 1 |
Ruby | Ruby | add messages to plain assertions | 7bd70dcd6c62fb94e3298e926f69a4e1946739cc | <ide><path>activemodel/lib/active_model/lint.rb
<ide> module Tests
<ide> def test_to_key
<ide> assert model.respond_to?(:to_key), "The model should respond to to_key"
<ide> def model.persisted?() false end
<del> assert model.to_key.nil?
<add> assert model.to_key.nil?, "to_key should ... | 1 |
PHP | PHP | use statement ordering fix | 99cfc941298a4c2cfba029c8a574c083c3d214f9 | <ide><path>src/Validation/Validator.php
<ide> namespace Cake\Validation;
<ide>
<ide> use ArrayAccess;
<del>use Countable;
<del>use IteratorAggregate;
<del>
<ide> use Cake\Validation\RulesProvider;
<ide> use Cake\Validation\ValidationSet;
<add>use Countable;
<add>use IteratorAggregate;
<ide>
<ide> /**
<ide> * Validat... | 1 |
Python | Python | use time.monotonic when available | 9fe795e1375e0094c0a102628c5282bfea956420 | <ide><path>celery/backends/amqp.py
<ide> from __future__ import absolute_import
<ide>
<ide> import socket
<del>import time
<ide>
<ide> from collections import deque
<ide> from operator import itemgetter
<ide>
<ide> from celery import states
<ide> from celery.exceptions import TimeoutError
<del>from celery.five impor... | 16 |
Text | Text | remove comma in readme.md | aa64ff6a37c4f1018713f1b020da810d2ed7909f | <ide><path>README.md
<ide> # Node.js
<ide>
<del>Node.js is an open-source, cross-platform, JavaScript runtime environment.
<add>Node.js is an open-source, cross-platform JavaScript runtime environment.
<ide>
<ide> For information on using Node.js, see the [Node.js website][].
<ide> | 1 |
Ruby | Ruby | remove flaky test | 924af100b73d24dffb2199fa46ae118e8b3bbb29 | <ide><path>Library/Homebrew/test/cask/pkg_spec.rb
<ide> let(:empty_response) { double(stdout: "", plist: { "volume" => "/", "install-location" => "", "paths" => {} }) }
<ide> let(:pkg) { described_class.new("my.fake.pkg", fake_system_command) }
<ide>
<del> it "removes files and dirs referenced by the pkg" d... | 1 |
Text | Text | improve section on disabling pipes [ci skip] | a5e3d2f3180d45b6e35a0a5aadf42e2f2c6acced | <ide><path>website/docs/usage/processing-pipelines.md
<ide> require them in the pipeline settings in your model's `meta.json`.
<ide> ### Disabling and modifying pipeline components {#disabling}
<ide>
<ide> If you don't need a particular component of the pipeline – for example, the
<del>tagger or the parser, you can di... | 1 |
Javascript | Javascript | cache the lineheight regex | 78e78256a5e2630b2bba644a8d48ec1674220179 | <ide><path>src/helpers/helpers.options.js
<ide> import defaults from '../core/core.defaults';
<ide> import {isArray, isObject, valueOrDefault} from './helpers.core';
<ide> import {toFontString} from './helpers.canvas';
<ide>
<add>const LINE_HEIGHT = new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);
<add>
<ide> /**
<... | 1 |
Go | Go | pass command arguments without extra quoting | 19645521a92869be7210fb663ed5e0e82e329ca5 | <ide><path>daemon/exec_windows.go
<ide> import (
<ide>
<ide> func execSetPlatformOpt(c *container.Container, ec *exec.Config, p *libcontainerd.Process) error {
<ide> // Process arguments need to be escaped before sending to OCI.
<del> p.Args = escapeArgs(p.Args)
<del> p.User.Username = ec.User
<add> if c.Platform == ... | 4 |
Go | Go | show the history of an image | 1ad69ad415728cc462dd3e296295247449538b0b | <ide><path>commands.go
<ide> func (srv *Server) Help() string {
<ide> {"import", "Create a new filesystem image from the contents of a tarball"},
<ide> {"attach", "Attach to a running container"},
<ide> {"commit", "Create a new image from a container's changes"},
<add> {"history", "Show the history of an image"}... | 1 |
Javascript | Javascript | remove ie9 test fallback | c1eb8fe1ab717ac49ddd4d15d7abddc3e8d6ada6 | <ide><path>packages/ember-glimmer/tests/integration/helpers/input-test.js
<ide> moduleFor(`Helpers test: {{input type='text'}}`, class extends InputRenderingTes
<ide> this.render(`{{input ${ attrs.replace("%x", value) }}}`);
<ide> }
<ide>
<del> assertValue(expected) {
<del> let type = this.$input().a... | 1 |
Javascript | Javascript | avoid a couple of redundant property loads | 7272ee613e1bfb4f39384f7baa72dead94ab2e9e | <ide><path>packages/ember-metal/lib/meta.js
<ide> export class Meta {
<ide> _getInherited(key) {
<ide> let pointer = this;
<ide> while (pointer !== undefined) {
<del> if (pointer[key]) {
<del> return pointer[key];
<add> let map = pointer[key];
<add> if (map) {
<add> return map;
<i... | 1 |
Ruby | Ruby | remove special behavior of autotools symbol deps | d22ad92a8479501b080312dbc1570476cda8172f | <ide><path>Library/Homebrew/dependency_collector.rb
<ide> def parse_class_spec(spec, tags)
<ide> end
<ide>
<ide> def autotools_dep(spec, tags)
<del> return if MacOS::Xcode.provides_autotools?
<del>
<ide> if spec == :libltdl
<ide> spec = :libtool
<ide> tags << :run
<ide><path>Library/Homebrew/tes... | 2 |
PHP | PHP | remove throws annotation | 53ae6e90430896d5d5093ca5e16ac6283148cc23 | <ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php
<ide> protected function handleTransactionException($e, $currentAttempt, $maxAttempts)
<ide> * @param int $currentAttempt
<ide> * @param int $maxAttempts
<ide> * @return void
<del> *
<del> * @throws \Exception
<ide> */
<... | 1 |
Python | Python | update keras initializer to be fully stateless | 69b41cf4282682f9443dc65528da5fe487cd104f | <ide><path>keras/callbacks_test.py
<ide> from keras.testing_infra import test_utils
<ide> from keras.utils import io_utils
<ide> from keras.utils import np_utils
<add>from keras.utils import tf_utils
<ide>
<ide> # isort: off
<ide> from tensorflow.python.platform import tf_logging as logging
<ide> def test_LearningRate... | 5 |
Javascript | Javascript | remove confusing typo | 74c32e2609d7d76cd5adcbd55cc57c96b100ef95 | <ide><path>Libraries/PermissionsAndroid/PermissionsAndroid.js
<ide> type Rationale = {
<ide> * ```
<ide> * async function requestCameraPermission() {
<ide> * try {
<del> * const granted = await AndroidPermissions.requestPermission(
<del> * AndroidPermissions.PERMISSIONS.CAMERA,
<add> * const granted ... | 1 |
Mixed | Go | add insecure registries to docker info | 44a50abe7b16368bdc8b70e01cb095dc46cbbbaf | <ide><path>api/client/info.go
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide> if info.ClusterAdvertise != "" {
<ide> fmt.Fprintf(cli.out, "Cluster Advertise: %s\n", info.ClusterAdvertise)
<ide> }
<add>
<add> if info.RegistryConfig != nil && (len(info.RegistryConfig.InsecureRegistryCIDRs) > 0 || le... | 4 |
Javascript | Javascript | modernize js and tighten equality checking | d59074c1cbf7c03f90bb5d850036f6153fe9464d | <ide><path>test/parallel/test-child-process-detached.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var path = require('path');
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const path = require('path');
<ide>
<del>var sp... | 1 |
Javascript | Javascript | log hmr events | 20588a6bf869ae06e690c76fe8978f198d009505 | <ide><path>local-cli/server/util/attachHMRServer.js
<ide> function attachHMRServer({httpServer, path, packagerServer}) {
<ide> if (!client) {
<ide> return;
<ide> }
<add> console.log(
<add> `[Hot Module Replacement] File change detected (${time()})`
<add> );
<... | 1 |
Ruby | Ruby | add a bind collector, remove the bind visitor | ee54e9bb3a6d7ffcf756ec1e385399b92354cb6b | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def initialize
<ide> def to_sql(arel, binds = [])
<ide> if arel.respond_to?(:ast)
<ide> binds = binds.dup
<del> visitor.compile(arel.ast) do
<del> quote(*binds.shift.reverse)
<... | 3 |
Java | Java | add config for avoiding jni refs | d53bfed9bb0904db6ec3409e819ee5c994fb1a23 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java
<ide> public class YogaConfig {
<ide> long mNativePointer;
<ide> private YogaLogger mLogger;
<ide> private YogaNodeCloneFunction mYogaNodeCloneFunction;
<add> public boolean avoidGlobalJNIRefs = false;
<ide>
<ide> private native long jni_... | 1 |
Mixed | Javascript | fix shell spawn with autorun | b90f3da9deaeda2b04a77af2e11a4b6d33a0c510 | <ide><path>doc/api/child_process.md
<ide> added: v0.1.90
<ide> * `encoding` {String} (Default: `'utf8'`)
<ide> * `shell` {String} Shell to execute the command with
<ide> (Default: `'/bin/sh'` on UNIX, `'cmd.exe'` on Windows, The shell should
<del> understand the `-c` switch on UNIX or `/s /c` on Windows. On... | 3 |
PHP | PHP | fix cs/psalm errors | 9c9663bb1d2591e479ea09550137395cea2ce3b4 | <ide><path>src/TestSuite/Fixture/FixtureInjector.php
<ide> */
<ide> namespace Cake\TestSuite\Fixture;
<ide>
<del>use Cake\TestSuite\Fix;
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\TestSuite\TestListenerTrait;
<ide> use PHPUnit\Framework\Test;
<ide> class FixtureInjector implements TestListener
<ide> {
<ide> ... | 3 |
Text | Text | add note about buffer octets integer coercion | 0e803d1d81375e0fa9318281d67b08f84cddf04a | <ide><path>doc/api/buffer.md
<ide> streams in TCP streams, file system operations, and other contexts.
<ide> With [`TypedArray`] now available, the `Buffer` class implements the
<ide> [`Uint8Array`] API in a manner that is more optimized and suitable for Node.js.
<ide>
<del>Instances of the `Buffer` class are similar ... | 1 |
PHP | PHP | add requesttarget implementation | 1b7bb0a370ef47284b10ab85189bde52cafb8c35 | <ide><path>src/Network/Request.php
<ide> class Request implements ArrayAccess
<ide> */
<ide> protected $protocol;
<ide>
<add> /**
<add> * The request target if overridden
<add> *
<add> * @var string|null
<add> */
<add> protected $requestTarget;
<add>
<ide> /**
<ide> * Wrapper me... | 2 |
PHP | PHP | add test case for empty $name | 254c0b16b59f1fe50a35cac0c7b69c67ea654016 | <ide><path>tests/Filesystem/FilesystemAdapterTest.php
<ide> public function testDownloadNonAsciiFilename()
<ide> $files = new FilesystemAdapter($this->filesystem);
<ide> $response = $files->download('file.txt', 'пиздюк.txt');
<ide> $this->assertInstanceOf(StreamedResponse::class, $response);
<ad... | 1 |
Mixed | Javascript | move dep0023 to end of life | 853bee0acfb79ce64202c4e23dc4343b491fa864 | <ide><path>doc/api/deprecations.md
<ide> The `os.tmpDir()` API is deprecated. Please use [`os.tmpdir()`][] instead.
<ide> ### DEP0023: os.getNetworkInterfaces()
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/25280
<add> description: End-of-Life.
<ide> ... | 2 |
Ruby | Ruby | move more schema modification tests | 06b8dc0a9bb556798c7cf26daf82ad4522c73f70 | <ide><path>activerecord/test/cases/migration/change_schema_test.rb
<ide> def test_column_exists_on_table_with_no_options_parameter_supplied
<ide> end
<ide> end
<ide>
<add> def test_add_index
<add> # Limit size of last_name and key columns to support Firebird index limitations
<add> con... | 2 |
Go | Go | fix untag without force while container running | 1f7a9b1ab3d261de5be7d490e7e4f978f317242f | <ide><path>daemon/image_delete.go
<ide> func (daemon *Daemon) ImageDelete(imageRef string, force, prune bool) ([]types.I
<ide> // first. We can only remove this reference if either force is
<ide> // true, there are multiple repository references to this
<ide> // image, or there are no containers using the given r... | 1 |
Java | Java | add support for imageloadevents to rctimageview | 59fe71caff6cc13b086f9299e6fc85084671d3a6 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/BitmapUpdateListener.java
<ide> /* package */ interface BitmapUpdateListener {
<ide> public void onSecondaryAttach(Bitmap bitmap);
<ide> public void onBitmapReady(Bitmap bitmap);
<add> public void onImageLoadEvent(int imageLoadEvent);
<ide> }
<ide><path... | 9 |
Python | Python | fix gevent connection leak | 5031240115aee31156fe07c6d1c32d86ecf15f00 | <ide><path>celery/backends/mongodb.py
<ide> def process_cleanup(self):
<ide> if self._connection is not None:
<ide> # MongoDB connection will be closed automatically when object
<ide> # goes out of scope
<add> del(self.collection)
<add> del(self.database)
<ide> ... | 1 |
Javascript | Javascript | fix race condition in addon test | 84579b1d7d92274b41a737e4d119d87807d486b1 | <ide><path>test/addons-napi/test_promise/test.js
<ide> const common = require('../../common');
<ide> const test_promise = require(`./build/${common.buildType}/test_promise`);
<ide> const assert = require('assert');
<ide>
<del>let expected_result, promise;
<del>
<ide> // A resolution
<del>expected_result = 42;
<del>pro... | 1 |
Ruby | Ruby | populate empty mirror_list for bottles | 62a98753ec9cce23653b18e95b8debafd877856d | <ide><path>Library/Homebrew/formula.rb
<ide> def system cmd, *args
<ide> def fetch
<ide> if install_bottle? self
<ide> downloader = CurlBottleDownloadStrategy.new bottle_url, name, version, nil
<add> mirror_list = []
<ide> else
<ide> downloader = @downloader
<ide> # Don't attempt mirror... | 1 |
Text | Text | add @bnb as a collaborator | 2f5e4b435344d8d784f2f4334769bb4b78834ad1 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Beth Griggs** <<bgriggs@redhat.com>> (she/her)
<ide> * [bmeck](https://github.com/bmeck) -
<ide> **Bradley Farias** <<bradley.meck@gmail.com>>
<add>* [bnb](https://github.com/bnb) -
<add> **Tierney Cyren** <<hello@b... | 1 |
Python | Python | update examples to use the new custom `reverse()' | c7e7279d979a346b5d1c950cc960183013799c41 | <ide><path>examples/blogpost/resources.py
<del>from django.core.urlresolvers import reverse
<ide> from djangorestframework.resources import ModelResource
<add>from djangorestframework.utils import reverse
<ide> from blogpost.models import BlogPost, Comment
<ide>
<ide>
<ide> class BlogPostResource(ModelResource):
<ide... | 8 |
Go | Go | remove execcmd() utility | 1e88fe578e40a22bf349e0acc465a3f5da9dd32d | <ide><path>pkg/idtools/idtools_unix.go
<ide> func callGetent(database, key string) (io.Reader, error) {
<ide> if getentCmd == "" {
<ide> return nil, fmt.Errorf("unable to find getent command")
<ide> }
<del> out, err := execCmd(getentCmd, database, key)
<add> out, err := exec.Command(getentCmd, database, key).Combin... | 4 |
Javascript | Javascript | use async and await in git-repository-spec | 6e0b629389610120ae817cd79e6bd4f511889a1a | <ide><path>spec/git-repository-spec.js
<add>const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers')
<ide> const path = require('path')
<ide> const fs = require('fs-plus')
<ide> const temp = require('temp').track()
<ide> describe('GitRepository', () => {
<ide> describe('.checkoutHeadForEd... | 1 |
Ruby | Ruby | apply rafaels review fixes | 47e4795060ee8550e28f86cedd4654fad19f72a4 | <ide><path>railties/lib/rails/command/behavior.rb
<ide> def subclasses
<ide> # This code is based directly on the Text gem implementation.
<ide> # Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher.
<ide> #
<del> # Returns a value representing the "cost" of transf... | 3 |
Javascript | Javascript | use const where applicable in template | e66a039061724181abfd739a251191ac036d4922 | <ide><path>lib/Template.js
<ide> module.exports = class Template extends Tapable {
<ide> }
<ide> str = str.trim();
<ide> if(!str) return "";
<del> let ind = (str[0] === "\n" ? "" : prefix);
<add> const ind = (str[0] === "\n" ? "" : prefix);
<ide> return ind + str.replace(/\n([^\n])/g, "\n" + prefix + "$1");
<... | 1 |
Python | Python | fix the callback argument | c08d53c7fc086cca727584c04a78fd1779415510 | <ide><path>libcloud/storage/drivers/cloudfiles.py
<ide> def download_object_as_stream(self, obj, chunk_size=None):
<ide> object_name),
<ide> method='GET', raw=True)
<ide>
<del> return self._get_object(obj=obj, call... | 1 |
Go | Go | remove fallback for legacy containers | 239d9c5eda8f65678b26de26a6763a67772f3151 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> log.WithError(err).Error("failed to load container")
<ide> return
<ide> }
<del> // Ignore the container if it does not support the current driver being used by the graph
<del> if (c.Driver == "" && daemon.graphDriver == "aufs... | 1 |
Java | Java | ignore head requests in shallowetagheaderfilter | b732251b093552812d7457608d422e899241ca04 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 2 |
Python | Python | add support for gradient checkpointing in bert | 90f4b2452077ac3bac9453bdc63e0359aa4fe4d2 | <ide><path>src/transformers/configuration_bert.py
<ide> class BertConfig(PretrainedConfig):
<ide> The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
<ide> layer_norm_eps (:obj:`float`, optional, defaults to 1e-12):
<ide> The epsil... | 2 |
Text | Text | add easy taxi to list of companies using airflow | 2025bd8e6e0f1357a1a0902771be9d7a586bd7b1 | <ide><path>README.md
<ide> if you may.
<ide>
<ide> Currently **officially** using Airflow:
<ide>
<del>* Airbnb [@mistercrunch]
<add>
<ide> * Agari [@r39132](https://github.com/r39132)
<add>* Airbnb [@mistercrunch]
<add>* BlueApron [[@jasonjho](https://github.com/jasonjho) & [@matthewdavidhauser](https://github.com/ma... | 1 |
Ruby | Ruby | extract float numbers when using size option | 16e6d77200472a80adff14c01ea6955cbe0b047e | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def resolve_image_source(source, skip_pipeline)
<ide>
<ide> def extract_dimensions(size)
<ide> size = size.to_s
<del> if /\A\d+x\d+\z/.match?(size)
<add> if /\A(\d+|\d+.\d+)x(\d+|\d+.\d+)\z/.match?(size)
<ide> ... | 2 |
Ruby | Ruby | reuse variable to avoid symbol usage | 69c5e010dcff0545fb2f38672e28894f230b1338 | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> class Response
<ide>
<ide> # Get and set headers for this response.
<ide> attr_accessor :header
<del>
<add>
<ide> alias_method :headers=, :header=
<ide> alias_method :headers, :header
<ide>
<ide> def message
<ide>
<ide> def res... | 1 |
PHP | PHP | fix issue with missing base on redirect route | 32b48ecc7cc8fcf17ccf0d3ceaf9285338336208 | <ide><path>lib/Cake/Network/CakeRequest.php
<ide> class CakeRequest implements ArrayAccess {
<ide> *
<ide> * @var array
<ide> */
<del> public $params = array();
<add> public $params = array(
<add> 'plugin' => null,
<add> 'controller' => null,
<add> 'action' => null,
<add> );
<ide>
<ide> /**
<ide> * Array of POS... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.