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 | handle block scopes correctly | e04b1a52a0c743cd002f2ca78337b3747f2e3137 | <ide><path>lib/Parser.js
<ide> const util = require("util");
<ide> const vm = require("vm");
<ide> const BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<ide> const StackedSetMap = require("./util/StackedSetMap");
<del>const TrackingSet = require("./util/TrackingSet");
<ide>
<ide> const acornParser =... | 3 |
Python | Python | improve performance of resultset.join_native | 425c0fe6c85ffd8773d03a6da7c5d64cc5d508f5 | <ide><path>celery/result.py
<ide> def join_native(self, timeout=None, propagate=True,
<ide> result backends.
<ide>
<ide> """
<del> results = self.results
<add> results_index = dict(
<add> (task_id, i) for i, task_id in enumerate(self.results)
<add> )
<ide> acc = ... | 1 |
Python | Python | add xlm-roberta base model | e778dd854dd5d1fd29396d214577ddbe0f854247 | <ide><path>transformers/modeling_xlm_roberta.py
<ide> logger = logging.getLogger(__name__)
<ide>
<ide> XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP = {
<add> 'xlm-roberta-base': "https://schweter.eu/cloud/transformers/xlm-roberta-base-pytorch_model.bin",
<ide> 'xlm-roberta-large': "https://schweter.eu/cloud/transfo... | 1 |
PHP | PHP | fix issue with link generation and no title | 866177f37d3d03be6fa557cc3633f75223bb4c7a | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testDocType() {
<ide> * @return void
<ide> */
<ide> public function testLink() {
<add> Router::connect('/:controller/:action/*');
<add>
<ide> $this->Html->request->webroot = '';
<ide>
<ide> $result = $this->Html->link('/home');
... | 2 |
Text | Text | remove experimental from --enable-source-maps | 66ba0f1395b9036f3787edd741c8367fc7a60ab4 | <ide><path>doc/api/cli.md
<ide> Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
<ide> ### `--enable-source-maps`
<ide> <!-- YAML
<ide> added: v12.12.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/37362
<add> description: This API is no lon... | 1 |
Text | Text | add react 16.3.0 changelog | 2c3f5fb97b6ea077f3e9aae6c6587bfe8328036d | <ide><path>CHANGELOG.md
<ide> Changes that have landed in master but are not yet released.
<ide> Click to see more.
<ide> </summary>
<add></details>
<add>
<add>## 16.3.0 (March 29, 2018)
<ide>
<ide> ### React
<ide>
<add>* Add a new `React.createRef()` API as an ergonomic alternative to callback refs. ([@tru... | 1 |
Mixed | Java | add disableextractui prop to textinput on android | 1b870d201976455303ee176c03a4824eac07e11b | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> const TextInput = React.createClass({
<ide> * @platform android
<ide> */
<ide> numberOfLines: PropTypes.number,
<add> /**
<add> * When `false`, if there is a small amount of space available around a text input
<add> * (e.g. landscape ... | 3 |
Javascript | Javascript | add cardstyle prop to navigationcardstack | aa0efd2e64f0e7e01c85f38dadee912ae0547078 | <ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js
<ide> type Props = {
<ide> onNavigateBack?: Function,
<ide> renderOverlay: ?NavigationSceneRenderer,
<ide> renderScene: NavigationSceneRenderer,
<add> cardStyle?: any,
<ide> style: any,
<ide> };
<ide>
<ide> class NavigationCar... | 1 |
Javascript | Javascript | add array.prototype.filter polyfill | d1e07d57ad1bd42d28eeb37b2499b15f4f6eb737 | <ide><path>packages/ember-metal/lib/array.js
<ide> var arrayIndexOf = isNativeFunc(Array.prototype.indexOf) ? Array.prototype.index
<ide> return -1;
<ide> };
<ide>
<add>var arrayFilter = isNativeFunc(Array.prototype.filter) ? Array.prototype.filter : function (fn, context) {
<add> var i,
<add> value,
<add> result... | 1 |
Javascript | Javascript | use compilation instead of this | b8b95cfebc351e6ebaa37cb45ed9dbe1db9ce22b | <ide><path>lib/optimize/ChunkModuleIdRangePlugin.js
<ide> class ChunkModuleIdRangePlugin {
<ide> const options = this.options;
<ide> compiler.hooks.compilation.tap("ChunkModuleIdRangePlugin", compilation => {
<ide> compilation.hooks.moduleIds.tap("ChunkModuleIdRangePlugin", modules => {
<del> const chunk = th... | 1 |
PHP | PHP | add better defaulting for plugin options | 186ba33eb8d31f3ae9b13afa3a63075b22f4b5c0 | <ide><path>src/View/View.php
<ide> public function layout($name = null)
<ide> */
<ide> public function element($name, array $data = [], array $options = [])
<ide> {
<del> $options += ['callbacks' => false, 'cache' => null];
<add> $options += ['callbacks' => false, 'cache' => null, 'plugin' =>... | 2 |
Javascript | Javascript | improve util.format performance | 8d72b0d291e603c3b62b637a314a5ee35ba95fdc | <ide><path>lib/util.js
<ide> const isError = internalUtil.isError;
<ide>
<ide> var Debug;
<ide>
<add>function tryStringify(arg) {
<add> try {
<add> return JSON.stringify(arg);
<add> } catch (_) {
<add> return '[Circular]';
<add> }
<add>}
<add>
<ide> const formatRegExp = /%[sdj%]/g;
<ide> exports.format = fun... | 1 |
Java | Java | add httpmethods property to localchangeinterceptor | 90d54285d292fca38727700874824092fb6a3dc9 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/LocaleChangeInterceptor.java
<ide> /*
<del> * Copyright 2002-2013 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... | 1 |
Text | Text | add v3.21.3 to changelog.md | 389486714360f972eb44638c6874791d442c4216 | <ide><path>CHANGELOG.md
<ide> - [#18984](https://github.com/emberjs/ember.js/pull/18984) / [#19067](https://github.com/emberjs/ember.js/pull/19067) [FEATURE] Add low-level Cache API per [Autotracking Memoization RFC](https://github.com/emberjs/rfcs/blob/master/text/0615-autotracking-memoization.md)
<ide> - [#19086](htt... | 1 |
Javascript | Javascript | remove unused suppressions | 6b3aad31f67e3543e4b52774dfb7369e99329d52 | <ide><path>Libraries/Components/Touchable/TouchableHighlight.js
<ide> const TouchableHighlight = createReactClass({
<ide> getDefaultProps: () => DEFAULT_PROPS,
<ide>
<ide> getInitialState: function() {
<del> // $FlowFixMe Invalid prop usage
<ide> this._isMounted = false;
<ide> if (this.props.testOnly_pr... | 1 |
Javascript | Javascript | return geometry after calling applymatrix() | a266e460f4184a173df677aa3b80dfc98c530d10 | <ide><path>src/core/Geometry.js
<ide> THREE.Geometry.prototype = {
<ide> this.verticesNeedUpdate = true;
<ide> this.normalsNeedUpdate = true;
<ide>
<add> return this;
<add>
<ide> },
<ide>
<ide> rotateX: function () { | 1 |
Javascript | Javascript | use proper findjsobjects output format | 720675e7dbec2d3aabb16f316747a0517845bd17 | <ide><path>test/pummel/test-postmortem-findjsobjects.js
<ide> gcore.on('exit', function (code) {
<ide> }
<ide>
<ide> var lines = output.split('\n');
<del> var found = 0, i, expected = 'OBEY: ' + obj.OBEY, nexpected = 2;
<add> var found = 0, i, expected = 'OBEY: "' + obj.OBEY + '"', nexpected = 2;
<ide>
... | 1 |
Javascript | Javascript | fix upstream lint error | 290aa0ef5d2c8d13adb97a5a8c51b15f345951ab | <ide><path>src/stream.js
<ide> var PredictorStream = (function PredictorStreamClosure() {
<ide> }
<ide> } else if (bits === 8) {
<ide> for (var i = 0; i < colors; ++i)
<del> buffer[pos++] = rawBytes[i];
<add> buffer[pos++] = rawBytes[i];
<ide> for (; i < rowBytes; ++i) {
<ide> ... | 1 |
Javascript | Javascript | add http_simple_auto benchmark | 544e5ee1fbddcc09418e1e99bd05d39bcee1ab3c | <ide><path>benchmark/http_simple_auto.js
<add>//
<add>// Usage:
<add>// node benchmark/http_simple_auto.js <args> <target>
<add>//
<add>// Where:
<add>// <args> Arguments to pass to `ab`.
<add>// <target> Target to benchmark, e.g. `bytes/1024` or `buffer/8192`.
<add>//
<add>
<add>var path = require("path");
<ad... | 1 |
Ruby | Ruby | add tests for unless build.without? | f968776e8460d7b6a0a3199d9c92c945cda0738d | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> if find_method_def(@processed_source.ast)
<ide> problem "Define method #{method_name(@offensive_node)} in the class body, not at the top-level"
<ide> end
<de... | 2 |
Javascript | Javascript | remove var in reactandroid/src/androidtest. | 6f781d9c25a2c694571d48a9cea2c4947f232eb7 | <ide><path>ReactAndroid/src/androidTest/js/Asserts.js
<ide>
<ide> 'use strict';
<ide>
<del>var Assert = require('NativeModules').Assert;
<add>const Assert = require('NativeModules').Assert;
<ide>
<del>var Asserts = {
<add>const Asserts = {
<ide> assertEquals: function(expected, actual, msg) {
<ide> if (expecte... | 10 |
Mixed | Go | add support for volume scopes | 2f40b1b281a3be8f34d82a5170988ee46ea1f442 | <ide><path>daemon/daemon.go
<ide> func configureVolumes(config *Config, rootUID, rootGID int) (*store.VolumeStore,
<ide> return nil, err
<ide> }
<ide>
<del> volumedrivers.Register(volumesDriver, volumesDriver.Name())
<add> if !volumedrivers.Register(volumesDriver, volumesDriver.Name()) {
<add> return nil, fmt.Erro... | 13 |
Text | Text | fix typo in changelog | fdc91e016fc4b065ee82e31481ae7a3a66fedbfa | <ide><path>CHANGELOG.md
<ide> Each of these changes will continue to work as before with a new warning until t
<ide>
<ide> #### Bug Fixes
<ide>
<del>* Immutabilty Helpers: Ensure it supports `hasOwnProperty` as an object key
<add>* Immutability Helpers: Ensure it supports `hasOwnProperty` as an object key
<ide>
<ide... | 1 |
Javascript | Javascript | improve error boundaries tests | 7d7defe30f9e8124185676fa7e2c841ffee17ed5 | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactErrorBoundaries-test.js
<ide>
<ide> var React;
<ide> var ReactDOM;
<del>var ReactDOMServer;
<ide>
<ide> describe('ReactErrorBoundaries', function() {
<ide>
<ide> beforeEach(function() {
<ide> ReactDOM = require('ReactDOM');
<del> ReactDOMServer... | 2 |
Ruby | Ruby | add url generation tests for | c1024409178ccaff8dd6f2cb221e3463423d3fc6 | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def app; Routes end
<ide> test "false constraint expressions check for absence of values" do
<ide> get 'http://example.com/search'
<ide> assert_response :success
<add> assert_equal 'http://example.com/search', search_url
<ide>
<ide> get 'http:/... | 1 |
Ruby | Ruby | fix message about include_blank option | 3bc38426997c8df3ccfe5f785b6e36c81e535041 | <ide><path>actionpack/lib/action_view/helpers/form_options_helper.rb
<ide> module FormOptionsHelper
<ide> # form, and parameters extraction gets the last occurrence of any repeated
<ide> # key in the query string, that works for ordinary forms.
<ide> #
<del> # In case if you don't want the helper... | 1 |
Python | Python | add style improvements to project euler problem 9 | 899870be4cc759941751477b75e744de5a180a30 | <ide><path>project_euler/problem_09/sol1.py
<ide> """
<del>Problem Statement:
<add>Problem 9: https://projecteuler.net/problem=9
<add>
<ide> A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
<ide> a^2 + b^2 = c^2
<ide> For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
<ide> """
<ide>
<ide>
... | 3 |
Javascript | Javascript | fix lint error | 37b4ceb098f0b832d7556989ed55e220a6498827 | <ide><path>src/core.js
<ide> var PDFDoc = (function pdfDoc() {
<ide> throw 'No PDFJS.workerSrc specified';
<ide> }
<ide>
<del> var worker
<add> var worker;
<ide> try {
<ide> worker = new Worker(workerSrc);
<ide> } catch (e) { | 1 |
Python | Python | make version.py more readable | 0502dabaf091833ab46f2e81a8f8f7eba9040897 | <ide><path>setup.py
<ide> def _minimal_ext_cmd(cmd):
<ide> def write_version_py(filename='numpy/version.py'):
<ide> cnt = """
<ide> # THIS FILE IS GENERATED FROM NUMPY SETUP.PY
<del>short_version='%(version)s'
<del>version='%(version)s'
<del>full_version='%(full_version)s'
<del>git_revision='%(git_revision)s'
<del>... | 1 |
Java | Java | allow custom separator in pathcontainer | c93792b8c9e5ecea45c739cf8bc3df40ec3e297a | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultPathContainer.java
<ide> package org.springframework.http.server.reactive;
<ide>
<ide> import java.nio.charset.Charset;
<add>import java.nio.charset.StandardCharsets;
<ide> import java.util.ArrayList;
<ide> import java.util.Collections... | 2 |
Javascript | Javascript | remove duplicate test | 1e5d5850ded0dc791bb7e960d36df078a28b205a | <ide><path>packages/ember-metal/tests/meta_test.js
<ide> QUnit.test('meta is not enumerable', function () {
<ide> }
<ide> });
<ide>
<del>QUnit.test('meta is not enumerable', function () {
<del> var proto, obj, props, prop;
<del> proto = { foo: 'bar' };
<del> meta(proto);
<del> obj = Object.create(proto);
<del> ... | 1 |
Python | Python | add discussion to noimportstestcase | 970de5e8b67b6c5bbaac082e888f8ebc6e16cfb7 | <ide><path>flask/testsuite/helpers.py
<ide> def post(self):
<ide>
<ide>
<ide> class NoImportsTestCase(FlaskTestCase):
<del> "Test Flasks are created without __import__."
<add> """Test Flasks are created without import.
<add>
<add> Avoiding ``__import__`` helps create Flask instances where there are errors
<a... | 1 |
Text | Text | rewrite consensus seeking in guide | d4ce144b0aaf9f117c71d97362526c70603ea06b | <ide><path>COLLABORATOR_GUIDE.md
<ide> the CI outcome.
<ide>
<ide> ### Consensus Seeking
<ide>
<del>If there is no disagreement amongst Collaborators, a pull request should be
<del>landed given appropriate review, a green CI, and the minimum
<del>[waiting time](#waiting-for-approvals) for a PR. If it is still awaitin... | 1 |
PHP | PHP | improve docblock with possible values and default | 2f7989485241794d59300883230ba62547c57add | <ide><path>lib/Cake/Utility/Xml.php
<ide> protected static function _loadXml($input, $options) {
<ide> * ### Options
<ide> *
<ide> * - `format` If create childs ('tags') or attributes ('attribute').
<del> * - `formatOutput` Returns formatted Xml
<add> * - `formatOutput` Returns formatted Xml when set to `true`. Defa... | 1 |
Python | Python | add contrib placeholder for operators | cd94ada28863e5546b72664574a42f2d3e0d8d9e | <ide><path>airflow/contrib/__init__.py
<ide> import airflow.contrib.hooks
<add>import airflow.contrib.operators
<ide><path>airflow/contrib/operators/__init__.py
<add>'''
<add>Imports the operators dynamically while keeping the package API clean,
<add>abstracting the underlying modules
<add>'''
<add>from airflow.utils i... | 2 |
Mixed | Text | add video ids and better test for video id | ad8daeb851ee81ed319ef922450d53c52ffa8d2f | <ide><path>curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-b.english.md
<ide> id: 5e6a54af58d3af90110a60a1
<ide> title: Introduction B
<ide> challengeType: 11
<ide> isRequired: true
<add>videoId: H6qtjRTfSog
<ide> ---
<ide>
<ide> ## Description
<ide><path>cu... | 3 |
Javascript | Javascript | fix path.normalize for relative paths | 315d1f553de9c1c5cf0ab9ee2623b5420bee8a09 | <ide><path>lib/path.js
<ide> function normalizeStringWin32(path, allowAboveRoot) {
<ide> res.charCodeAt(res.length - 1) !== 46/*.*/ ||
<ide> res.charCodeAt(res.length - 2) !== 46/*.*/) {
<ide> if (res.length > 2) {
<del> const start = res.length - 1;
<del> var j =... | 2 |
PHP | PHP | fix typo in doc block | 0f31f7ebf945e42f2e57e6db2a2f0a448617405a | <ide><path>src/Illuminate/Auth/GenericUser.php
<ide> public function __get($key)
<ide> * Dynamically set an attribute on the user.
<ide> *
<ide> * @param string $key
<del> * @param mied $value
<add> * @param mixed $value
<ide> * @return void
<ide> */
<ide> public function __set($key, $value) | 1 |
Javascript | Javascript | update router.js - fixes | 7aa2e11fbda64d3112bf69cc9e2382ad53f41f5f | <ide><path>packages/ember-routing/lib/vendor/router.js
<ide> define("router",
<ide>
<ide> Used internally by `generate` and `transitionTo`.
<ide> */
<del> _paramsForHandler: function(handlerName, objects, callback) {
<add> _paramsForHandler: function(handlerName, objects, doUpdate) {
<ide> ... | 1 |
Ruby | Ruby | set version from stable spec | e4b6fc5ae0b8eab8022084f8b4e02cfb825048a8 | <ide><path>Library/Homebrew/formula.rb
<ide> def bottle *, &block
<ide> return @bottle unless block_given?
<ide> @bottle ||= create_spec(Bottle)
<ide> @bottle.instance_eval(&block)
<add> @bottle.version = @stable.version
<ide> end
<ide>
<ide> def devel &block
<ide><path>Library/Homebrew/... | 2 |
Python | Python | fix vector loading for ud_train | 8902754f0b24a11188facfe8599fd1d25dcb9779 | <ide><path>spacy/cli/ud_train.py
<ide> def load_nlp(corpus, config):
<ide> lang = corpus.split('_')[0]
<ide> nlp = spacy.blank(lang)
<ide> if config.vectors:
<del> nlp.vocab.from_disk(config.vectors / 'vocab')
<add> nlp.vocab.from_disk(Path(config.vectors) / 'vocab')
<ide> return nlp
<ide>... | 1 |
Go | Go | fix error message in max-file validation | cde607108badc84ddb6a7e2d2f75ce31be9967a5 | <ide><path>daemon/logger/jsonfilelog/jsonfilelog.go
<ide> func New(ctx logger.Context) (logger.Logger, error) {
<ide> return nil, err
<ide> }
<ide> if maxFiles < 1 {
<del> return nil, fmt.Errorf("max-files cannot be less than 1")
<add> return nil, fmt.Errorf("max-file cannot be less than 1")
<ide> }
<ide> ... | 1 |
Text | Text | add v3.28.5 to changelog.md | d52b26508998ce5a8c43c4f5125474231421e5fc | <ide><path>CHANGELOG.md
<ide> - [#19695](https://github.com/emberjs/ember.js/pull/19695) [CLEANUP] Remove {{partial}}
<ide> - [#19691](https://github.com/emberjs/ember.js/pull/19691) Add build assertion against `{{outlet named}}`
<ide>
<add>## v3.28.5 (November 3, 2021)
<add>
<add>- [#19820](https://github.com/emberjs... | 1 |
Javascript | Javascript | improve error message when calling `inject()` | d354a728c4dde56c7d91d74b41cd8e5b6eb72571 | <ide><path>packages/ember-runtime/lib/inject.js
<ide> import { assert } from 'ember-debug';
<ide> @public
<ide> */
<ide> export default function inject() {
<del> assert(`Injected properties must be created through helpers, see '${Object.keys(inject).join('"', '"')}'`);
<add> const helpers = Object.keys(inject)
<add... | 1 |
Go | Go | change getremoteaddr to return all managers | 441e861095c27cd2fc5e4b5f6dca73adcd8455ea | <ide><path>daemon/cluster/cluster.go
<ide> func (c *Cluster) GetDataPathAddress() string {
<ide> return ""
<ide> }
<ide>
<del>// GetRemoteAddress returns a known advertise address of a remote manager if
<add>// GetRemoteAddressList returns the advertise address for each of the remote managers if
<ide> // available.
<... | 2 |
Ruby | Ruby | remove outdated statement about bundled tzinfo | 2cecd213702fedce27840a62d07df1359d67f351 | <ide><path>activesupport/lib/active_support/values/time_zone.rb
<ide> module ActiveSupport
<ide> # Time.zone # => #<ActiveSupport::TimeZone:0x514834...>
<ide> # Time.zone.name # => "Eastern Time (US & Canada)"
<ide> # Time.zone.now # => Sun, 18 May 2008 14:30:44 EDT -04:00
<del> #
<del> # The versio... | 1 |
Python | Python | try a fix for test failure | 58d22eb300204c503ea5d2fb7cd82535da9353cf | <ide><path>libcloud/test/storage/test_local.py
<ide> def test_lock_local_storage(self):
<ide> # 3. Multiprocessing scenario where IPC lock is involved
<ide> def acquire_lock_in_subprocess(pid, success):
<ide> # For first process acquire should succeed and for the second it should fail
<del> ... | 1 |
Javascript | Javascript | reduce size in anticipation of sizzle-free builds | 9338a69e307c0051ef50d6365c5f45872a9d7ef7 | <ide><path>src/core.js
<ide> var
<ide> core_strundefined = typeof undefined,
<ide>
<ide> // Use the correct document accordingly with window argument (sandbox)
<del> document = window.document,
<ide> location = window.location,
<add> document = window.document,
<add> docElem = document.documentElement,
<ide>
<ide>... | 2 |
Ruby | Ruby | use one based indexes for the mock migrations | b731593e1a01327a1ed7b19094eca3cf618a495d | <ide><path>activerecord/test/cases/migrator_test.rb
<ide> def test_migrator_one_up
<ide> calls, migrations = sensors(3)
<ide>
<ide> ActiveRecord::Migrator.new(:up, migrations, 1).migrate
<del> assert_equal [[:up, 1], [:up, 2]], calls
<add> assert_equal [[:up, 1]], calls
<ide> calls.clear
<i... | 1 |
Javascript | Javascript | improve wording for infinity description | 3671adbba6f8a55ca5b08a38d96f19ca3457f58b | <ide><path>src/ng/filter/filters.js
<ide> function currencyFilter($locale) {
<ide> * Formats a number as text.
<ide> *
<ide> * If the input is null or undefined, it will just be returned.
<del> * If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.
<add> * If the input is infinite (Infi... | 1 |
PHP | PHP | apply fixes from styleci | 4c6fa9c6b5b92c13415e89bfebf11818fca315a1 | <ide><path>src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php
<ide>
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Support\Carbon;
<del>use Illuminate\Support\Str;
<ide> use Symfony\Component\Process\Process;
<ide>
<ide> class ScheduleWorkCommand extends Command | 1 |
Java | Java | fix typo in messageheaderaccessor's class name | 465fc7638f1736c3803c4893a080f0a7e92497da | <ide><path>spring-context/src/main/java/org/springframework/messaging/support/MessageBuilder.java
<ide>
<ide> private final T payload;
<ide>
<del> private final MessageHeaderAccesssor headerAccessor;
<add> private final MessageHeaderAccessor headerAccessor;
<ide>
<ide> private final Message<T> originalMessage;
<id... | 3 |
Text | Text | update broken link | 6241d245e43a24842dbb2da001df720ac75c4d2f | <ide><path>README.md
<ide> pip3 install tf-models-official
<ide>
<ide> Please check out our examples:
<ide> - [basic library import](https://github.com/tensorflow/models/blob/master/tensorflow_models/tensorflow_models_pypi.ipynb)
<del> - [nlp model building](https://github.com/tensorflow/models/blob/master/official... | 1 |
Java | Java | update cache to support concurrent reads | 3aa9ac15a1e0a36ff15b94e18bf75e4034a643f4 | <ide><path>spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
<ide>
<ide> package org.springframework.core;
<ide>
<del>import java.lang.ref.Reference;
<del>import java.lang.ref.WeakReference;
<ide> import java.lang.reflect.Array;
<ide> import java.lang.reflect.GenericArrayType;
<ide> import j... | 1 |
Mixed | Javascript | clarify side effects of transformrequest functions | 73ab107a1e3c8783d937ac65c50621f7a4d63333 | <ide><path>CHANGELOG.md
<ide> end of the container containing the ngMessages directive).
<ide> </div>
<ide> ```
<ide>
<add>- **$http:** due to [5da1256](https://github.com/angular/angular.js/commit/5da1256fc2812d5b28fb0af0de81256054856369),
<add>
<add>`transformRequest` functions can no longer modify request headers.
... | 2 |
Javascript | Javascript | convert form, iframe, img to not use wrappers | a825380840c37e9ad5e03a46a8a0389d28dfd0d6 | <ide><path>src/renderers/dom/client/wrappers/LocalEventTrapMixin.js
<del>/**
<del> * Copyright 2014-2015, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional grant
... | 7 |
Mixed | Javascript | add html tag for custom document | 5ff2deabf784937884dfbf75f13268eff6c4f45a | <ide><path>packages/next/README.md
<ide> Pages in `Next.js` skip the definition of the surrounding document's markup. For
<ide> // Event handlers like onClick can't be added to this file
<ide>
<ide> // ./pages/_document.js
<del>import Document, { Head, Main, NextScript } from 'next/document'
<add>import Document, { Ht... | 2 |
Javascript | Javascript | reorganize the file + drop fallback dependencies | bb3be87606d2b390324765896624c37fa33fe63f | <ide><path>src/Deferred.js
<ide> 'use strict';
<ide>
<ide> /**
<del> * Constructs a promise manager.
<add> * @ngdoc service
<add> * @name angular.module.ng.$q
<add> * @requires $rootScope
<ide> *
<del> * @param {function(function)=} nextTick Function for executing functions in the next turn. Falls
<del> * back to ... | 1 |
Java | Java | fix nullpointerexception when disaptching events | fbeb51ef5133303a5cb71569507d44403ded3447 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
<ide> public View getView(int reactTag) {
<ide> }
<ide>
<ide> private @Nullable ViewState getNullableViewState(int tag) {
<del> if (mTagToViewState == null) {
<add> ConcurrentHashMap<Integer, ViewState> viewS... | 1 |
PHP | PHP | add remaining fluent methods for routes | df9ccde62166fed087a526c26c762dbe0502762e | <ide><path>src/Routing/Route/Route.php
<ide> public function setMethods(array $methods)
<ide> /**
<ide> * Set regexp patterns for routing parameters
<ide> *
<add> * If any of your patterns contain multibyte values, the `multibytePattern`
<add> * mode will be enabled.
<add> *
<ide> * @para... | 2 |
Ruby | Ruby | add clone_repo to remaining vcs strategies | 3a20562d6ea4f109526c41373f848114d79a3b00 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def repo_valid?
<ide> true
<ide> end
<ide>
<add> def clone_repo
<add> end
<add>
<ide> def extract_ref(specs)
<ide> key = REF_TYPES.find { |type| specs.key?(type) }
<ide> return key, specs[key]
<ide> class CVSDownloadStrategy < VCSDownloadStrategy... | 1 |
Python | Python | simplify load connection in localfilesystembackend | ddee0aa4fbb9709c08ec7a39f985e30bbf6c5ffb | <ide><path>airflow/secrets/local_filesystem.py
<ide> import json
<ide> import logging
<ide> import os
<add>import warnings
<ide> from collections import defaultdict
<ide> from inspect import signature
<ide> from json import JSONDecodeError
<ide> def load_variables(file_path: str) -> Dict[str, str]:
<ide> return var... | 2 |
Ruby | Ruby | fix multi-threaded issue for `acceptancevalidator` | 98754de1412870d7dae9eba1c7bac944b9b90093 | <ide><path>activemodel/lib/active_model/validations/acceptance.rb
<ide> def initialize(attributes)
<ide> end
<ide>
<ide> def included(klass)
<add> @lock = Mutex.new
<ide> mod = self
<ide>
<ide> define_method(:respond_to_missing?) do |method_name, include_private ... | 2 |
Java | Java | handle non-void write methods deterministically | 26d5ef93e6ddb7d3ba5774b5e427b0dc6b61516f | <ide><path>spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
<ide> import java.lang.reflect.Modifier;
<ide>
<ide> import java.util.ArrayList;
<add>import java.util.Collections;
<ide> import java.util.Comparator;
<ide> import java.util.Enumeration;
<ide> import java.util.List;
<ide> private Lis... | 2 |
Javascript | Javascript | require enablesourceset option for event | 1b3c827d5e6d125ef918581b289030c9880533cf | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> 'language': this.language(),
<ide> 'playerElIngest': this.playerElIngest_ || false,
<ide> 'vtt.js': this.options_['vtt.js'],
<del> 'canOverridePoster': !!this.options_.techCanOverridePoster
<add> 'canOverridePoster': !!... | 3 |
Text | Text | modernize serialization docs | 1cdec9386c50b9b27461c768d07a8cfba864d026 | <ide><path>docs/advanced/serialization.md
<ide> module.exports =
<ide> activate: (state) ->
<ide> @myObject =
<ide> if state
<del> deserialize(state)
<add> atom.deserializers.deserialize(state)
<ide> else
<ide> new MyObject("Hello")
<ide>
<ide> module.exports =
<ide>
<ide> ```c... | 1 |
Javascript | Javascript | add unit test for new rtmp path changes | 4e395b6b0261286f23a5cd42724a893071c2f044 | <ide><path>test/unit/tech/flash-rtmp.test.js
<ide> test('test streamToParts', function() {
<ide> ok(parts.connection === 'http://myurl.com/');
<ide> ok(parts.stream === 'streaming&/is/fun');
<ide>
<add> parts = Flash.streamToParts('http://myurl.com/really?streaming=fun&really=fun');
<add> ok(parts.connection ===... | 1 |
Text | Text | add dmabupt to collaborators | eec20ed5c1407412cdf2354b754f39aed4eb54a7 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **David Carlier** <devnexen@gmail.com>
<ide> * [devsnek](https://github.com/devsnek) -
<ide> **Gus Caplan** <me@gus.host> (they/them)
<add>* [dmabupt](https://github.com/dmabupt) -
<add>**Xu Meng** <dmabupt@... | 1 |
Ruby | Ruby | fix isolated test failure | 39c4e2b1e6e0cf9d7611749e0fb9b178dd53411b | <ide><path>activerecord/test/cases/base_test.rb
<ide> require "models/car"
<ide> require "models/bulb"
<ide> require "models/pet"
<add>require "models/owner"
<ide> require "concurrent/atomic/count_down_latch"
<ide> require "active_support/core_ext/enumerable"
<ide> | 1 |
Java | Java | add cors support | b0e1e66b7fd54a3f937859f84fff966bff0be424 | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<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> ... | 24 |
Ruby | Ruby | limit exposure of the options data structures | ba4a4e41034be1bde963defa09c295aeabdf2d9c | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_non_prefixed_coreutils
<ide> end
<ide>
<ide> def check_for_non_prefixed_findutils
<del> default_names = Tab.for_name('findutils').used_options.include? 'default-names'
<add> default_names = Tab.for_name('findutils').include? 'default-names'
<ide> if def... | 1 |
Javascript | Javascript | remove newline at beginning of file | 52b32d83d0a85540eebe5caafd5409fc028c7ba2 | <ide><path>src/browser/ui/dom/components/__tests__/ReactDOMIframe-test.js
<del>
<ide> /**
<ide> * Copyright 2013-2014, Facebook, Inc.
<ide> * All rights reserved. | 1 |
Ruby | Ruby | fix incorrect use of formula.canonical_name | cf4e7e595498c852d9cbcecb2a2b036c3a299d9b | <ide><path>Library/Homebrew/cmd/reinstall.rb
<ide> def reinstall
<ide> ARGV << '--build-bottle'
<ide> end
<ide>
<del> canonical_name = Formula.canonical_name(name)
<del> formula = Formula.factory(canonical_name)
<add> formula = Formulary.factory(name)
<ide>
<ide> begin
<ide> ... | 1 |
PHP | PHP | fix potential bug in fluent class | f6f2a8c73973dc97b15b344967e4378e2905ec8a | <ide><path>src/Illuminate/Support/Fluent.php
<ide> public function getAttributes()
<ide> */
<ide> public function __call($method, $parameters)
<ide> {
<del> $this->$method = count($parameters) > 0 ? $parameters[0] : true;
<add> $this->attributes[$method] = count($parameters) > 0 ? $parameters[0] : true;
<ide>
<i... | 1 |
Java | Java | fix typo in javadoc | 44c5eaeaa3f3bc2c45f4592a4551ec054bf4697b | <ide><path>spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java
<ide> public StandardAnnotationMetadata(Class<?> introspectedClass) {
<ide> * providing the option to return any nested annotations or annotation arrays in the
<ide> * form of {@link org.springframework.core.annotatio... | 1 |
Javascript | Javascript | fix pending test description for compose | 91461b7487e0b394c88f8ca19c1b99aa4dd64aa9 | <ide><path>test/compose.spec.js
<ide> describe('Utils', () => {
<ide> describe('compose', () => {
<ide>
<del> it('should call map stores');
<add> it('should return combined middleware that executes from left to right');
<ide> });
<ide> }); | 1 |
Javascript | Javascript | improve naming of `c` variable in example | e37e67eadbd5c8b5342499f8a4f27d644106b3f2 | <ide><path>src/ng/directive/select.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> {name:'blue', shade:'dark'},
<ide> {name:'yellow', shade:'light'}
<ide> ];
<del> $scope.color = $scope.colors[2]; // red
<add> $scope.myColor = $scope.colors[2]; // red
<ide> ... | 1 |
Text | Text | update more information link to purplemath | d26ecfc40f8b449b630aefeab1df08ba73928158 | <ide><path>guide/english/mathematics/absolute-value/index.md
<ide> Here you can see that in the graph of y = |x|, if -2 is input in to the function
<ide> |-125| = 125
<ide>
<ide> #### More Information:
<del><a href='http://www.purplemath.com/modules/absolute.htm "Absolute Value"' target='_blank' rel='nofollow'>Absolut... | 1 |
Ruby | Ruby | return nil for non-pypi-packages from url | 22a3025f6e42ba25e168baf098c2b038bb99cbb9 | <ide><path>Library/Homebrew/test/utils/pypi_spec.rb
<ide> it "updates url to new version" do
<ide> expect(described_class.update_pypi_url(old_package_url, "5.29.0")).to eq package_url
<ide> end
<add>
<add> it "returns nil for invalid versions" do
<add> expect(described_class.update_pypi_url(old_pa... | 2 |
Javascript | Javascript | fix bustage of the previous commit | ef418de40bf4688698463871a0f1f1f442460173 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> // Insert the missing table
<ide> tables.push({
<ide> tag: "OS/2",
<del> data: stringToArray(createOS2Table)
<add> data: stringToArray(createOS2Table())
<ide> });
<ide>
<ide> // Replace the old CMAP ta... | 1 |
Go | Go | fix builder from being over-aggressive on ${} | 24189b2c36985f8345691fa6ec2c0766cfc133a7 | <ide><path>builder/support.go
<ide> import (
<ide> )
<ide>
<ide> var (
<del> TOKEN_ENV_INTERPOLATION = regexp.MustCompile(`(\\\\+|[^\\]|\b|\A)\$({?)([[:alnum:]_]+)(}?)`)
<add> // `\\\\+|[^\\]|\b|\A` - match any number of "\\" (ie, properly-escaped backslashes), or a single non-backslash character, or a word boundary, ... | 2 |
Mixed | Text | add changelog entry for and | 7f45c2d02a732cc724a021fd5907c1f00b7e1fe9 | <ide><path>activerecord/CHANGELOG.md
<add>* All integer-like PKs are autoincrement unless they have an explicit default.
<add>
<add> *Matthew Draper*
<add>
<ide> * Omit redundant `using: :btree` for schema dumping.
<ide>
<ide> *Ryuta Kamizono*
<ide><path>activerecord/test/cases/primary_keys_test.rb
<ide> de... | 2 |
Javascript | Javascript | add more documentation in listviewdatasource | 40da7bb835e1c69bc42df4471bd6ec9f1ad70205 | <ide><path>Libraries/CustomComponents/ListView/ListViewDataSource.js
<ide> class ListViewDataSource {
<ide> *
<ide> * or
<ide> *
<add> * { sectionID_1: [ <rowData1>, <rowData2>, ... ], ... }
<add> *
<add> * or
<add> *
<ide> * [ [ <rowData1>, <rowData2>, ... ], ... ]
<ide> *
<ide> ... | 1 |
PHP | PHP | fix silent association failures | 7e03e7bba270c8dd6604a2597add88b3cc34f44c | <ide><path>src/ORM/EagerLoader.php
<ide> public function loadExternal(Query $query, StatementInterface $statement): State
<ide> $driver = $query->getConnection()->getDriver();
<ide> [$collected, $statement] = $this->_collectKeys($external, $query, $statement);
<ide>
<add> // No records found, sk... | 3 |
Javascript | Javascript | ignore empty entries in mtl files | 91370c6e097227812732fc9809e272046123333b | <ide><path>examples/js/loaders/MTLLoader.js
<ide> THREE.MTLLoader.MaterialCreator.prototype = {
<ide>
<ide> var value = mat[ prop ];
<ide>
<add> if ( value === '' ) {
<add> continue;
<add> }
<add>
<ide> switch ( prop.toLowerCase() ) {
<ide>
<ide> // Ns is material specular exponent | 1 |
Text | Text | fix typo in button_to helper example | 3b76725e0bd2e1528f367babcc03c7cc54816e7f | <ide><path>guides/source/working_with_javascript_in_rails.md
<ide> this generates
<ide>
<ide> ```
<ide> <form action="/posts/1" class="button_to" data-remote="true" method="post">
<add> <div><input type="submit" value="A post"></div>
<ide> </form>
<ide> ```
<ide> | 1 |
Text | Text | add example comment | b001e7e28f0d62e615083eec0fc695fde11acb57 | <ide><path>CONTRIBUTING.md
<ide> in the proper package's repository.
<ide> * Reference classes with `{ClassName}` style notation.
<ide> * Delegate to comments elsewhere with `{Delegates to: ClassName.methodName}`
<ide> style notation.
<add>
<add>### Example
<add>
<add>```coffee
<add># Public: Disable the package with... | 1 |
Python | Python | add a space to clarify skipping crypto msg | a361b94b783bc92296307602f56d8beccad3fd22 | <ide><path>test/testpy/__init__.py
<ide> def GetCommand(self):
<ide> # failure so such tests are also skipped.
<ide> if (any(flag.startswith('--inspect') for flag in flags) and
<ide> not self.context.v8_enable_inspector):
<del> print('Skipping as node was compiled without inspector support'... | 1 |
Javascript | Javascript | use correct name, when other exports is referenced | a2114cbef9c15ac60a108de5a475dd989a6216b7 | <ide><path>lib/ModuleGraph.js
<ide> class ExportsInfo {
<ide> if (name.length === 0) return name;
<ide> let info = this._exports.get(name[0]);
<ide> if (info === undefined) info = this._otherExportsInfo;
<del> const x = info.getUsedName();
<add> const x = info.getUsedName(name[0]);
<ide> if (!x) return ... | 1 |
Javascript | Javascript | remove warning against pr for release branch | 90f0de99ada68fc0d877f2efe297538e733d9b56 | <ide><path>bots/dangerfile.js
<ide> if (!includesChangelog) {
<ide> // Fails if the PR is opened against anything other than `main` or `-stable`.
<ide> const isMergeRefMaster = danger.github.pr.base.ref === 'main';
<ide> const isMergeRefStable = danger.github.pr.base.ref.indexOf('-stable') !== -1;
<del>if (!isMergeRefM... | 1 |
PHP | PHP | fix code style | 33d15865502031195013ee8636731585149dd717 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> public function compileSavepointRollBack($name)
<ide> */
<ide> public function compileRandom()
<ide> {
<del> return "RANDOM()";
<add> return 'RANDOM()';
<ide> }
<ide>
<ide> /**
<ide><path>src/Illuminate/Database/Quer... | 3 |
Python | Python | fix coding style | e58d3ccdd2b9403d143faa58b2bc16bd363eeccf | <ide><path>research/object_detection/utils/spatial_transform_ops.py
<ide> def multilevel_roi_align(features, boxes, box_levels, output_size,
<ide> return features_per_box
<ide>
<ide>
<del>def multilevel_native_crop_and_resize(images, boxes, box_levels,
<add>def multilevel_native_crop_and_resize(images, boxes, bo... | 1 |
Ruby | Ruby | fix typo in install_dependency | e3505247cb7cea608aa202d20beec6adc3df630a | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install_dependency(dep, inherited_options)
<ide>
<ide> if df.latest_version_installed?
<ide> installed_keg = Keg.new(df.prefix)
<del> tab ||= Tab.for_keg(linked_keg)
<add> tab ||= Tab.for_keg(installed_keg)
<ide> tmp_keg = Pathname.ne... | 1 |
Javascript | Javascript | fix typo of javanese | c0cab6ac3d405f98897a1b6543f9fc8d9b454216 | <ide><path>locale/jv.js
<ide> //! moment.js locale configuration
<del>//! locale : Japanese [jv]
<add>//! locale : Javanese [jv]
<ide> //! author : Rony Lantip : https://github.com/lantip
<ide> //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
<ide>
<ide>
<ide> return jv;
<ide>
<del>}));
<ide>\ No newline at... | 3 |
PHP | PHP | apply fixes from styleci | 1026ea029ef53f982985a0d08099349af383a082 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function renderHttpException(HttpException $e)
<ide>
<ide> if (view()->exists($view = "errors::{$status}")) {
<ide> return response()->view($view, [
<del> 'exception' => $e, 'errors' => new ViewErrorBag
<add>... | 1 |
Go | Go | use quoted form of container name and container id | 2bee1cfd5a1af63d370a72d4558bb96f27762437 | <ide><path>daemon/names.go
<ide> func (daemon *Daemon) reserveName(id, name string) (string, error) {
<ide> logrus.Errorf("got unexpected error while looking up reserved name: %v", err)
<ide> return "", err
<ide> }
<del> return "", fmt.Errorf("Conflict. The container name %q is already in use by container ... | 1 |
Python | Python | fix the implementation of numpy.array_api.vecdot | 0e960b985843ff99db06f89eadaa9f387b5a65f8 | <ide><path>numpy/array_api/linalg.py
<ide> def trace(x: Array, /, *, offset: int = 0) -> Array:
<ide> def vecdot(x1: Array, x2: Array, /, *, axis: int = -1) -> Array:
<ide> if x1.dtype not in _numeric_dtypes or x2.dtype not in _numeric_dtypes:
<ide> raise TypeError('Only numeric dtypes are allowed in vecdot... | 1 |
Javascript | Javascript | enable metro hmr server in local-cli | 5892d5c3cf04a71c164326fba1beac32e3a9eadb | <ide><path>local-cli/server/runServer.js
<ide> async function runServer(args: Args, config: ConfigT) {
<ide> secure: args.https,
<ide> secureCert: args.cert,
<ide> secureKey: args.key,
<add> hmrEnabled: true,
<ide> });
<ide>
<ide> const wsProxy = webSocketProxy.attachToServer( | 1 |
Text | Text | fix typos in installation doc for mac | f7af5cc780cb49b6115c726687dec5ef361ca5fb | <ide><path>docs/installation/mac.md
<ide> Your Mac must be running OS X 10.8 "Mountain Lion" or newer to install the Docke
<ide>
<ide> * If you are interested in using the Kitematic GUI, see the [Kitematic user guide](https://docs.docker.com/kitematic/userguide/).
<ide>
<del>> **Note**: The Boot2Docker command line w... | 1 |
Python | Python | remove redundant imports | 5e3412dfc139b733b136c2c3b508eb7bf7b8ec10 | <ide><path>numpy/core/arrayprint.py
<ide> from .umath import absolute, not_equal, isnan, isinf, isfinite, isnat
<ide> from . import multiarray
<ide> from .multiarray import (array, dragon4_positional, dragon4_scientific,
<del> datetime_as_string, datetime_data, dtype, ndarray,
<add> ... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.