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 | improve debug hash with stack trace | e3c63b44240573b05cec62f292e7a565ea242bc2 | <ide><path>lib/util/createHash.js
<ide> class DebugHash {
<ide>
<ide> update(data, inputEncoding) {
<ide> if (typeof data !== "string") data = data.toString("utf-8");
<del> this.string += data;
<add> if (data.startsWith("debug-digest-")) {
<add> data = Buffer.from(data.slice("debug-digest-".length), "hex").toSt... | 1 |
Go | Go | copy authconfigs on save so data is not modified | 9332c00ca562e97045490d3d45d8f805fae30330 | <ide><path>auth/auth.go
<ide> func SaveConfig(configFile *ConfigFile) error {
<ide> os.Remove(confFile)
<ide> return nil
<ide> }
<add>
<add> configs := make(map[string]AuthConfig, len(configFile.Configs))
<ide> for k, authConfig := range configFile.Configs {
<del> authConfig.Auth = encodeAuth(&authConfig)
<del> ... | 1 |
Javascript | Javascript | horizon chart improvements | a15165398d8633d0eeb929cade77c0557def0479 | <ide><path>d3.chart.js
<ide> function d3_chart_boxQuartiles(d) {
<ide> return ~~q === q ? (d[q] + d[q + 1]) / 2 : d[Math.round(q)];
<ide> });
<ide> }
<del>// ranges (bad, satisfactory, good)
<del>// measures (actual, forecast)
<del>// markers (previous, goal)
<del>
<del>/*
<del> * Chart design based on the recomm... | 5 |
Go | Go | move testbuildinheritance to integration-cli | f1d7ed35bd17c5e8e8f4d1882b5e98ae5419e9f1 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildADDFileNotFound(t *testing.T) {
<ide> }
<ide> logDone("build - add file not found")
<ide> }
<add>
<add>func TestBuildInheritance(t *testing.T) {
<add> name := "testbuildinheritance"
<add> defer deleteImages(name)
<add>
<add> _, err := buildImage(... | 2 |
Ruby | Ruby | append a "_" to memoized instance variables | 7f0346237e30e55d6cd16a8b4a9dfe4193f61804 | <ide><path>activesupport/lib/active_support/memoizable.rb
<ide> def self.included(base) #:nodoc:
<ide> module ClassMethods
<ide> def memoize(symbol)
<ide> original_method = "_unmemoized_#{symbol}"
<add> memoized_ivar = "@_memoized_#{symbol}"
<ide> raise "Already memoized #{symbol}" if i... | 1 |
Javascript | Javascript | launch mksnapshot.js using the current node | 7770ae214c1e8e7febbbce4fb8b5ac67287e7652 | <ide><path>script/lib/generate-startup-snapshot.js
<ide> module.exports = function (packagedAppPath) {
<ide> )
<ide>
<ide> console.log('Generating startup blob with mksnapshot')
<del> childProcess.execFileSync(
<del> path.join(CONFIG.repositoryRootPath, 'script', 'node_modules', 'electron-mksnapshot', ... | 1 |
PHP | PHP | create a data_fill helper function | 38d5f726bfb669962094acc54a25f9d83da8768a | <ide><path>src/Illuminate/Support/helpers.php
<ide> function collect($value = null)
<ide> }
<ide> }
<ide>
<add>if (! function_exists('data_fill')) {
<add> /**
<add> * Fill in data where it's missing.
<add> *
<add> * @param mixed $target
<add> * @param string|array $key
<add> * @param m... | 2 |
Javascript | Javascript | improve idle benchmarks | aeb9bed63e3521088aef3b919ac5129a9822e83c | <ide><path>benchmark/idle_clients.js
<ide> net = require('net');
<ide>
<ide> var errors = 0, connections = 0;
<ide>
<add>var lastClose = 0;
<add>
<add>function maybeConnect (s) {
<add> var now = new Date();
<add> if (now - lastClose > 5000) {
<add> // Just connect immediately
<add> connect();
<add> } else {
... | 2 |
PHP | PHP | add unit test | ef8603e1a7c8584914e39001b8926d1b263f0e80 | <ide><path>lib/Cake/Test/Case/Model/ModelReadTest.php
<ide> public function testNotInArrayWithOneValue() {
<ide> $this->assertTrue(is_array($result) && !empty($result));
<ide> }
<ide>
<add>/**
<add> * test to assert that != in key together with a single element array will work
<add> *
<add> * @return void
<add> */
... | 1 |
Javascript | Javascript | ensure language redirects for chinese traditional | 5cb3465a1dad9c5b7fad9c1683c322a04b5680be | <ide><path>client/src/components/createExternalRedirects.js
<ide> import envData from '../../../config/env.json';
<ide> const { forumLocation } = envData;
<ide>
<ide> const createExternalRedirect = (page, { clientLocale }) => {
<del> const isNotEnglish = clientLocale !== 'english';
<del> if (clientLocale === 'chines... | 3 |
Ruby | Ruby | remove uneeded methods | ec0973c2abeb80eb3c93c5df070592da56ef5b7c | <ide><path>actionpack/lib/action_controller/metal/http_authentication.rb
<ide> def request_http_basic_authentication(realm = "Application")
<ide> end
<ide>
<ide> def authenticate(request, &login_procedure)
<del> unless authorization(request).blank?
<add> unless request.authorization.blank?
<i... | 2 |
Java | Java | avoid payload conversion if unnecessary | b88aad6b39f23bb0dd67b69be9a1104049eadf3c | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/converter/MappingJackson2MessageConverter.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "L... | 2 |
Java | Java | implement removeclippedsubviews for nodes | 5f162ca1192fa4ee275f07d3756d134317facfc9 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java
<ide>
<ide> /* package */ final class DrawView extends AbstractClippingDrawCommand {
<ide>
<del> /* package */ static final DrawView INSTANCE = new DrawView(0, 0, 0, 0);
<add> /* package */ final int reactTag;
<add> /* package */ boolean i... | 5 |
Javascript | Javascript | detect ipados as is_ipad | a11f3fa574048b4f73aa0c6586990c1945aa928c | <ide><path>src/js/utils/browser.js
<ide> const USER_AGENT = window.navigator && window.navigator.userAgent || '';
<ide> const webkitVersionMap = (/AppleWebKit\/([\d.]+)/i).exec(USER_AGENT);
<ide> const appleWebkitVersion = webkitVersionMap ? parseFloat(webkitVersionMap.pop()) : null;
<ide>
<del>/**
<del> * Whether or ... | 1 |
Python | Python | check array dimensionality in cov function | fa107fe361520ceac09131f96a8715473078801e | <ide><path>numpy/lib/function_base.py
<ide> def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None,
<ide>
<ide> # Handles complex arrays too
<ide> m = np.asarray(m)
<add> if m.ndim > 2:
<add> raise ValueError("m has more than 2 dimensions")
<add>
<ide> if y is None:
<ide> dt... | 1 |
PHP | PHP | create tests for some asserts methods | 58da15941e019e9d9742358e22cc7f68eb7146b0 | <ide><path>tests/Foundation/FoundationTestResponseTest.php
<ide> public function testAssertSeeTextInOrderCanFail2()
<ide> $response->assertSeeTextInOrder(['foobar', 'qux', 'baz']);
<ide> }
<ide>
<add> public function testAssertOk()
<add> {
<add> $statusCode = 500;
<add>
<add> $this->exp... | 1 |
PHP | PHP | update doc blocks for logging + scopes | a59db11e4eaa02d8e9fdbdd9aa30dbce7297b397 | <ide><path>lib/Cake/Log/CakeLog.php
<ide> * application. By using scopes you can control logging for each part
<ide> * of your application and still keep standard log levels.
<ide> *
<add> *
<ide> * See CakeLog::config() and CakeLog::write() for more information
<ide> * on scopes
<ide> *
<ide> protected static f... | 1 |
Ruby | Ruby | fix code example in generator test case | cf03daa5f509e48cf03897163471f3064cf2f5eb | <ide><path>railties/lib/rails/generators/test_case.rb
<ide> def assert_migration(relative, *contents, &block)
<ide> # Asserts a given migration does not exist. You need to supply an absolute path or a
<ide> # path relative to the configured destination:
<ide> #
<del> # assert_no_file "config/ra... | 1 |
Javascript | Javascript | improve pmrem handling of background color | 8e3d91ff52f163b56f0931c1915e8d0429e31ff7 | <ide><path>src/extras/PMREMGenerator.js
<ide> const ENCODINGS = {
<ide> const _flatCamera = /*@__PURE__*/ new OrthographicCamera();
<ide> const { _lodPlanes, _sizeLods, _sigmas } = /*@__PURE__*/ _createPlanes();
<ide> const _clearColor = /*@__PURE__*/ new Color();
<add>const _backgroundColor = /*@__PURE__*/ new Color()... | 1 |
Text | Text | add link to blog post | efdb46b6e2a53f9126d447260f916cac33de58c3 | <ide><path>notebooks/README.md
<ide> Pull Request and we'll review it so it can be included here.
<ide> | [Getting Started Transformers](02-transformers.ipynb) | How to easily start using transformers | [](https://colab.research.google.com/git... | 1 |
Text | Text | crypto esm examples | bfa6e37204f1343c8a340f44c923858833da55b8 | <ide><path>doc/api/crypto.md
<ide> The `crypto` module provides cryptographic functionality that includes a set of
<ide> wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
<ide>
<del>Use `require('crypto')` to access this module.
<add>```mjs
<add>import { createHmac } from 'crypto';
<ide>... | 1 |
Javascript | Javascript | add deprecation for the ember global | 04f28b234bd990e56bd3a93d7bb0485719f065e4 | <ide><path>packages/@ember/-internals/bootstrap/index.js
<ide> import require from 'require';
<ide> import { context } from '@ember/-internals/environment';
<add>import { deprecate } from '@ember/debug';
<ide>
<ide> (function () {
<ide> let Ember;
<ide> import { context } from '@ember/-internals/environment';
<ide> ... | 2 |
Ruby | Ruby | add mocked disable_cache for fixturefinder | 9f677bf043eb359a91d346bb5a1e6ee81cef6665 | <ide><path>actionview/test/template/digestor_test.rb
<ide> def find(name, prefixes = [], partial = false, keys = [], options = {})
<ide>
<ide> FixtureTemplate.new("digestor/#{partial_name}.#{format}.erb")
<ide> end
<add>
<add> def disable_cache(&block)
<add> yield
<add> end
<ide> end
<ide>
<ide> class Temp... | 1 |
PHP | PHP | fix auth adapter loading without app.namespace | 7b17f37d5882c678f49bdaceeec51d8deaa1a37f | <ide><path>src/Core/App.php
<ide> public static function className(string $class, string $type = '', string $suffi
<ide> }
<ide>
<ide> [$plugin, $name] = pluginSplit($class);
<del> $base = $plugin ?: Configure::read('App.namespace');
<del> $base = str_replace('/', '\\', rtrim($base, '\\')... | 2 |
PHP | PHP | remove the extra space | 60f1b62e8209350e8ceaa0407e5e2cfc0ea79f5c | <ide><path>src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
<ide> public function boot()
<ide> {
<ide> $this->loadRoutes();
<ide> }
<del>
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | add activejob to "welcome to rails" section | 8d66866450783ea90b3415c644fee92d5e124c85 | <ide><path>README.md
<ide> You can read more about Action View in its [README](actionview/README.rdoc).
<ide>
<ide> Active Record, Action Pack, and Action View can each be used independently outside Rails.
<ide> In addition to them, Rails also comes with Action Mailer ([README](actionmailer/README.rdoc)), a library
<d... | 1 |
Ruby | Ruby | add support for self-extracting `.exe` archives | 82482f4787e61bfb5a9dd0551b8941aef25b9ff0 | <ide><path>Library/Homebrew/cask/lib/hbc/container.rb
<ide> require "hbc/container/cab"
<ide> require "hbc/container/criteria"
<ide> require "hbc/container/dmg"
<add>require "hbc/container/self_extracting_executable"
<ide> require "hbc/container/executable"
<ide> require "hbc/container/generic_unar"
<ide> require "hbc/... | 2 |
Text | Text | add note for fs.watch virtualized env | ae0f68d6e150cbfe18d34b5345c27099df1e7b8b | <ide><path>doc/api/fs.md
<ide> to be notified of filesystem changes.
<ide> * On Windows systems, this feature depends on `ReadDirectoryChangesW`.
<ide>
<ide> If the underlying functionality is not available for some reason, then
<del>`fs.watch` will not be able to function. For example, watching files or
<del>directo... | 1 |
Text | Text | update resnet readme | 19d930c326134bda9d03ebc6ea67050991b35746 | <ide><path>official/vision/image_classification/README.md
<ide> For more information about other types of models, please refer to this
<ide> Similar to the [estimator implementation](../../r1/resnet), the Keras
<ide> implementation has code for the ImageNet dataset. The ImageNet
<ide> version uses a ResNet50 model impl... | 1 |
Javascript | Javascript | add validation to profile image url | 914ff44f747670ab53b3d2ba1853fa8e032f4313 | <ide><path>client/src/components/settings/About.js
<ide> import PropTypes from 'prop-types';
<ide> import {
<ide> FormGroup,
<ide> ControlLabel,
<del> FormControl
<add> FormControl,
<add> HelpBlock,
<add> Alert
<ide> } from '@freecodecamp/react-bootstrap';
<ide>
<ide> import { FullWidthRow, Spacer } from '../h... | 2 |
Ruby | Ruby | remove warning from big integer test | c33c03e80cbe9f27274b45fe55f93bad3af988fb | <ide><path>activemodel/test/cases/type/big_integer_test.rb
<ide> def test_type_cast_big_integer
<ide>
<ide> def test_small_values
<ide> type = Type::BigInteger.new
<del> assert_equal -9999999999999999999999999999999, type.serialize(-9999999999999999999999999999999)
<add> assert_equal(-99999... | 1 |
Ruby | Ruby | keep preloader#preload api the same as before | 9c423e0c85eb99e133fe45dd631f0eecb3adec2d | <ide><path>activerecord/lib/active_record/associations/preloader.rb
<ide> def call
<ide> build_preloaders
<ide> end
<ide>
<del> def preload(records, associations, preload_scope)
<add> def preload(records, associations, preload_scope = nil)
<ide> ActiveSupport::Deprecation.warn("`preload... | 1 |
Javascript | Javascript | check turbomodules first in turbomoduleregistry | 20102ef5b149f322347d87e4c310036704ef1a50 | <ide><path>Libraries/TurboModule/TurboModuleRegistry.js
<ide> import invariant from 'invariant';
<ide> const turboModuleProxy = global.__turboModuleProxy;
<ide>
<ide> export function get<T: TurboModule>(name: string): ?T {
<add> if (turboModuleProxy != null) {
<add> const module: ?T = turboModuleProxy(name);
<add>... | 1 |
Javascript | Javascript | update the version for building release notes | 3cd651669cc1668720465231fcafd848784d6640 | <ide><path>build/release-notes.js
<ide> var fs = require("fs"),
<ide> extract = /<a href="\/ticket\/(\d+)" title="View ticket">(.*?)<[^"]+"component">\s*(\S+)/g;
<ide>
<ide> var opts = {
<del> version: "1.6.3 RC 1",
<del> short_version: "1.6.3rc1",
<del> final_version: "1.6.3",
<add> version: "1.7",
<add> short_versi... | 1 |
PHP | PHP | remove helpers constant | e63f0aa28f55c5126a4fd797193a5ba904c86e11 | <ide><path>lib/Cake/bootstrap.php
<ide> */
<ide> define('APPLIBS', APP.'Lib'.DS);
<ide>
<del>/**
<del> * Path to the application's helpers directory.
<del> */
<del> define('HELPERS', VIEWS.'Helper'.DS);
<del>
<ide> /**
<ide> * Path to the application's view's layouts directory.
<ide> */ | 1 |
PHP | PHP | add event transactioncommitting | 3b26f7a1ef2f04a3c1dfd6454eed4385e2399152 | <ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php
<ide> public function transaction(Closure $callback, $attempts = 1)
<ide>
<ide> try {
<ide> if ($this->transactions == 1) {
<add> $this->fireConnectionEvent('committing');
<ide> $this-... | 4 |
Javascript | Javascript | make ember.checkbox extend from ember.component | e271685e96f0137e3042a480c33c23896b483acc | <ide><path>packages/ember-views/lib/views/checkbox.js
<ide> import { get } from "ember-metal/property_get";
<ide> import { set } from "ember-metal/property_set";
<del>import View from "ember-views/views/view";
<add>import EmberComponent from "ember-views/views/component";
<ide>
<ide> /**
<ide> @module ember
<ide> impo... | 2 |
Ruby | Ruby | add env to allow unlinked deps | efc1f1c7da50e77e96a4324c9380e19848dcf03d | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def check_install_sanity
<ide> end
<ide> end
<ide>
<del> unlinked_deps = recursive_formulae.select do |dep|
<del> dep.installed? && !dep.keg_only? && !dep.linked_keg.directory?
<del> end
<add> unless ENV["HOMEBREW_NO_CHECK_UNLINKED_DEPENDEN... | 1 |
Python | Python | test xla examples | 0533cf470659b97c6279bd04f65536a1ec88404a | <ide><path>examples/test_xla_examples.py
<add># coding=utf-8
<add># Copyright 2018 HuggingFace Inc..
<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>#
<add># http... | 2 |
Javascript | Javascript | add onerror to reactdomimg to complement onload | cda1d8c779f589639fa8d33dbb63b6ec1b0edfce | <ide><path>src/browser/dom/components/ReactDOMImg.js
<ide> var ReactDOMImg = ReactCompositeComponent.createClass({
<ide> },
<ide>
<ide> componentDidMount: function() {
<add> var node = this.getDOMNode();
<ide> ReactEventEmitter.trapBubbledEvent(
<ide> EventConstants.topLevelTypes.topLoad,
<ide> ... | 3 |
PHP | PHP | remove php 5 and file names from docblocks | b3d00446dcf796d9eff079cfd71cb4e81d45560f | <ide><path>src/Console/Error/ConsoleException.php
<ide> <?php
<ide> /**
<del> * ConsoleException class
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide><path>src/Co... | 57 |
PHP | PHP | fix missing namespace | 90591369bf6ee1d3d40c61fb1f264b680613abf8 | <ide><path>lib/Cake/Controller/Component/PaginatorComponent.php
<ide>
<ide> use Cake\Controller\Component;
<ide> use Cake\Controller\ComponentCollection;
<add>use Cake\Model\Model;
<ide> use Cake\Error;
<ide> use Cake\Utility\Hash;
<ide> | 1 |
Java | Java | translate ioexception to httpmessagenotreadableex | ffd9c62fc8b7cbeb5fbbc9a4fd487b1284a0b264 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java
<ide> protected <T> Object readWithMessageConverters(HttpInputMessage inputMessage, Me
<ide> }
<ide>
<ide> HttpMethod httpMethod = ((HttpRequest) inputMessage).getMethod(... | 1 |
Mixed | Javascript | use comma instead of space | fe001307e579be4f898913c0c1d0501e461b412d | <ide><path>examples/css/README.md
<ide> module.exports = "" + __webpack_require__.p + "89a353e9c515885abd8e.png";
<ide> /******/ data = data.getPropertyValue("--webpack-" + chunkId);
<ide> /******/ for(; i < data.length; i++) {
<ide> /******/ var cc = data.charCodeAt(i);
<del>/******/ if(cc == 32) { token... | 5 |
Python | Python | patch token classification pipeline | 850afb422d13a4b77bb51cccce49c32641de0339 | <ide><path>src/transformers/pipelines.py
<ide> class TokenClassificationArgumentHandler(ArgumentHandler):
<ide> def __call__(self, *args, **kwargs):
<ide>
<ide> if args is not None and len(args) > 0:
<del> if isinstance(args, str):
<del> inputs = [args]
<del> else:
<del... | 2 |
Javascript | Javascript | fix crash on rc while toggling object status | 1fd27dae5e498efb5a12e5eb6350540b25c48696 | <ide><path>Libraries/Components/SwitchAndroid/SwitchAndroid.android.js
<ide> var SwitchAndroid = React.createClass({
<ide> },
<ide>
<ide> _onChange: function(event) {
<del> this.props.onChange && this.props.onChange(event);
<del> this.props.onValueChange && this.props.onValueChange(event.nativeEvent.value);
... | 1 |
PHP | PHP | fix plugin path in i18n class | 3b1bea830fa70727fcce77b60f5bd80333eb6c57 | <ide><path>src/I18n/I18n.php
<ide> protected function _bindTextDomain($domain) {
<ide> foreach ($plugins as $plugin) {
<ide> $pluginDomain = Inflector::underscore($plugin);
<ide> if ($pluginDomain === $domain) {
<del> $searchPaths[] = Plugin::path($plugin) . 'Locale/';
<add> $searchPaths[] = Plugin::... | 1 |
Java | Java | use root locale when converting string case | 5341ad896245c40a00b6faead1b90d01aac58f8c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java
<ide> public void onReceive(Context context, Intent intent) {
<ide> final String bundleFile = subclassTag + "ReactNativeDevBundle.js";
<ide> mJSBundleDownloadedFile = new File(applicationContext.getFilesDir(), bundleF... | 4 |
PHP | PHP | apply fixes from styleci | a7f60ccfde8a06319050873c54f5597e496b8424 | <ide><path>src/Illuminate/Routing/Route.php
<ide>
<ide> use Closure;
<ide> use LogicException;
<del>use ReflectionMethod;
<ide> use ReflectionFunction;
<ide> use Illuminate\Support\Arr;
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<del>use UnexpectedValueException;
<ide> use Illuminate\Container... | 1 |
PHP | PHP | use data attribute for custom validity message | df8302c48f06848f39ea0f6f3314a5953e29baa9 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function setRequiredAndCustomValidity(string $fieldName, array $option
<ide> $options['templateVars']['customValidityMessage'] = $message;
<ide>
<ide> if ($this->getConfig('autoSetCustomValidity')) {
<add> $options['data-v... | 2 |
PHP | PHP | update encrypter interface | 956fece317ada86ce2f205d5619e80a7d677f661 | <ide><path>src/Illuminate/Contracts/Encryption/Encrypter.php
<ide> interface Encrypter
<ide> * @param mixed $value
<ide> * @param bool $serialize
<ide> * @return mixed
<add> *
<add> * @throws \Illuminate\Contracts\Encryption\EncryptException
<ide> */
<ide> public function encrypt($va... | 1 |
Mixed | Javascript | support abortsignal in server.listen | 51b43675067fafaad0abd7d4f62a6a5097db5044 | <ide><path>doc/api/net.md
<ide> Listening on a file descriptor is not supported on Windows.
<ide> <!-- YAML
<ide> added: v0.11.14
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/36623
<add> description: AbortSignal support was added.
<ide> - version: v11.4.0
<ide> ... | 4 |
Javascript | Javascript | adapt jest transform for node-only files | ff0eb47dbd0866e210d10621480528733ebdc74c | <ide><path>jestSupport/preprocessor.js
<ide> */
<ide> 'use strict';
<ide>
<add>const babel = require('babel-core');
<add>const babelRegisterOnly = require('../packager/babelRegisterOnly');
<ide> const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
<ide> const path = require('path');
<id... | 5 |
Ruby | Ruby | use full paths to gcc versions | 2fb6d2fdbed66439de458932b89edb9222dc2ac1 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def gcc
<ide> GNU_GCC_VERSIONS.each do |n|
<ide> define_method(:"gcc-4.#{n}") do
<ide> gcc = "gcc-4.#{n}"
<del> self.cc = gcc
<del> self.cxx = gcc.gsub('c', '+')
<add> gxx = gcc.gsub('c', '+')
<add> self.cc = MacOS.locate(gcc)
<add> ... | 1 |
Text | Text | update local development guide | 10314c1c84b5b7db20668a50d68c4a19300efb3f | <ide><path>guides/source/development_dependencies_install.md
<ide> After reading this guide, you will know:
<ide>
<ide> --------------------------------------------------------------------------------
<ide>
<del>The Easy Way
<del>------------
<add>Other Ways to Set Up Your Environment
<add>---------------------------... | 1 |
Text | Text | add missing changes entry | e00639e57f86f4707f665975ca7aea5ca8799399 | <ide><path>doc/api/util.md
<ide> changes:
<ide> pr-url: https://github.com/nodejs/node/pull/17907
<ide> description: The `%o` specifier's `depth` option will now fall back to the
<ide> default depth.
<add> - version: v10.12.0
<add> pr-url: https://github.com/nodejs/node/pull/22097
<add> ... | 1 |
Java | Java | add atomic registersegment method to test | f207cfddf37c01b5ff2c2f53b4d44a4cc7ad2484 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
<ide> public class ReactFeatureFlags {
<ide>
<ide> /** Temporary flag to allow execution of mount items up to 15ms earlier than normal. */
<ide> public static boolean enableEarlyScheduledMountItemExecution = false;
<add>
<add> ... | 1 |
Javascript | Javascript | escape chunk names for webworkers | 0aa9aa61b154f87141f817025133e0aa2b529920 | <ide><path>lib/webworker/WebWorkerMainTemplatePlugin.js
<ide> class WebWorkerMainTemplatePlugin {
<ide> "// object to store loaded chunks",
<ide> '// "1" means "already loaded"',
<ide> "var installedChunks = {",
<del> Template.indent(chunk.ids.map(id => `${id}: 1`).join(",\n")),
<add> Templa... | 1 |
Ruby | Ruby | fix weird omission | 832a08abcdf2256c140d9f81d8753d8bddd323c2 | <ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb
<ide> def mach_o_files
<ide> def self.file_linked_libraries(file, string)
<ide> # Check dynamic library linkage. Importantly, do not run otool on static
<ide> # libraries, which will falsely report "linkage" to themselves.
<del> if file.mach_o_execu... | 1 |
PHP | PHP | use undeprecated methods for adding cookies | 5034140325f5ea1882a2b032ea0ae2f06fdb4229 | <ide><path>src/Http/Client.php
<ide> protected function _createRequest($method, $url, $data, $options)
<ide> }
<ide>
<ide> $request = new Request($url, $method, $headers, $data);
<add> $request = $this->_cookies->addToRequest($request);
<ide> $request->cookie($this->_cookies->get($url));... | 4 |
Python | Python | fix testconversion.test_to_int_scalar() on python | 48020e87513c8632655dc0939cae802aab07616e | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_to_int_scalar(self):
<ide> assert_equal(5, int_func(np.bytes_(b'5')))
<ide> assert_equal(6, int_func(np.unicode_(u'6')))
<ide>
<del> class HasTrunc:
<del> def __trunc__(self):
<del> return... | 1 |
PHP | PHP | restore original tabs and spaces in code | 6eaa4f9414d8beb011b1dcac74d710b1e4c0230f | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> */
<ide> class MemcachedEngine extends CacheEngine {
<ide>
<del> /**
<del> * memcached wrapper.
<del> *
<del> * @var Memcache
<del> */
<del> protected $_Memcached = null;
<del>
<del> /**
<del> * The default config used unless overriden... | 1 |
Python | Python | fix a bug with data encoding | d173f21b896452f9921e7debc19ee54c00c0edf4 | <ide><path>libcloud/common/base.py
<ide> def request(self, action, params=None, data=None, headers=None,
<ide> else:
<ide> headers.update({'Host': self.host})
<ide>
<del> # Encode data if necessary
<del> if data is not None:
<add> # Encode data if provided
<add> if data:... | 1 |
Ruby | Ruby | remove need for array extension | c2faf2a0cadc162741f4083178dc35864fcee035 | <ide><path>Library/Homebrew/cmd/deps.rb
<ide> def deps
<ide> puts_deps_tree ARGV.formulae
<ide> else
<ide> raise FormulaUnspecifiedError if ARGV.named.empty?
<del> all_deps = ARGV.formulae.map do |f|
<del> ARGV.one? ? f.deps.default : f.recursive_dependencies
<del> end.intersection.map(... | 1 |
Java | Java | add ipv6 support in resttemplate | 2dd4480103716fd1f68c56efd519cbc20210740d | <ide><path>spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java
<ide> public HierarchicalUriComponents encode(String encoding) throws UnsupportedEncod
<ide> }
<ide> String encodedScheme = encodeUriComponent(this.getScheme(), encoding, Type.SCHEME);
<ide> String encodedUserInfo = en... | 3 |
Ruby | Ruby | fix documentation [ci skip] | 8e314160a40c32abeab889777661b1a9bb6ae815 | <ide><path>activesupport/lib/active_support/message_encryptor.rb
<ide> module ActiveSupport
<ide> # Though if both the secret and the cipher was changed at the same time,
<ide> # the above should be combined into:
<ide> #
<del> # verifier.rotate old_secret, cipher: "aes-256-cbc"
<add> # crypt.rotate old_sec... | 1 |
PHP | PHP | add some fixed orders | 9e0778951a45efebed0e2d3ef9eb79273fa7a799 | <ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
<ide> public function testPaginate() {
<ide> $Controller->request->query = array();
<ide> $Controller->constructClasses();
<ide>
<del> $results = Hash::extract($Controller->Paginator->paginate('PaginatorControllerPost'), '{n}.PaginatorC... | 2 |
Python | Python | fix docs of past_key_values | 185122ef221371964245850e47fcb547637e72ce | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> def __init_subclass__(self):
<ide> :obj:`attentions`) :obj:`last_hidden_state` of shape :obj:`(batch_size, sequence_length, hidden_size)`,
<ide> `optional`) is a sequence of hidden-states at the output of the last layer of the encode... | 11 |
Python | Python | use correct namespace when fqn are given | 7721ac592274c16f7c2d512f74d5dd0b26e93e98 | <ide><path>celery/bin/multi.py
<ide> def _args_for_node(p, name, prefix, suffix, cmd, append, options):
<ide> name, nodename, expand = _get_nodename(
<ide> name, prefix, suffix, options)
<ide>
<add> if nodename in p.namespaces:
<add> ns = nodename
<add> else:
<add> ns = name
<add>
<ide>... | 2 |
Javascript | Javascript | fix jsdoc tag in reactelement.js | 621bb09cd7e8f52bcc27fd1b0a3fc3a57b3de336 | <ide><path>src/core/ReactElement.js
<ide> function defineMutationMembrane(prototype) {
<ide> * @param {*} type
<ide> * @param {string|object} ref
<ide> * @param {*} key
<del> * @params {*} props
<add> * @param {*} props
<ide> * @internal
<ide> */
<ide> var ReactElement = function(type, key, ref, owner, context, pr... | 1 |
Python | Python | add missing return to g.setdefault | a4df0fbb397e13bd7c6475dbde5f44727474c3c7 | <ide><path>flask/ctx.py
<ide> def pop(self, name, default=_sentinel):
<ide> return self.__dict__.pop(name, default)
<ide>
<ide> def setdefault(self, name, default=None):
<del> self.__dict__.setdefault(name, default)
<add> return self.__dict__.setdefault(name, default)
<ide>
<ide> def... | 1 |
Ruby | Ruby | remove remainder of argv stubs | 1e1de8c111b5c3a36e4bdf886d6f2e736890ba56 | <ide><path>Library/Homebrew/test/sandbox_test.rb
<ide> def test_formula?
<ide> f2 = formula { url "bar-1.0" }
<ide> f2.stubs(:tap).returns(Tap.fetch("test/tap"))
<ide>
<del> ARGV.stubs(:sandbox?).returns true
<add> ENV["HOMEBREW_SANDBOX"] = "1"
<ide> assert Sandbox.formula?(f),
<ide> "Formulae ... | 1 |
PHP | PHP | create method for import html | 42aab01e71c3e1c5aec8dcb4dff8233146b275a5 | <ide><path>src/Utility/Xml.php
<ide> protected static function _loadXml($input, $options)
<ide> {
<ide> $hasDisable = function_exists('libxml_disable_entity_loader');
<ide> $internalErrors = libxml_use_internal_errors(true);
<del> if ($hasDisable && !$options['loadEntities']) {
<add> i... | 1 |
PHP | PHP | load app classes automatically for plugins | 08c3008874089c836e1361c556f95019f800aa9f | <ide><path>lib/Cake/Console/Command/Task/TestTask.php
<ide> public function typeCanDetectFixtures($type) {
<ide> */
<ide> public function isLoadableClass($package, $class) {
<ide> App::uses($class, $package);
<add> list($plugin, $ns) = pluginSplit($package);
<add> if ($plugin) {
<add> App::uses("{$plugin}AppCon... | 1 |
Go | Go | add debug and simplify docker logs | 1b0fd7ead33722d8782634d54cbd797f284aa085 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogs(args ...string) error {
<ide> return nil
<ide> }
<ide>
<del> if err := cli.hijack("POST", "/containers/"+cmd.Arg(0)+"/attach?logs=1&stdout=1", false, nil, cli.out); err != nil {
<del> return err
<del> }
<del> if err := cli.hijack("POST", "/containers/"+cmd... | 2 |
Javascript | Javascript | fix paths with leading periods | bf9400510f00a2962bb36162eae642c56731a34a | <ide><path>packages/ember-handlebars/lib/ext.js
<ide> var normalizePath = Ember.Handlebars.normalizePath = function(root, path, data)
<ide> } else {
<ide> // Strip the keyword from the path and look up
<ide> // the remainder from the newly found root.
<del> path = path.substr(keyword.length);
<add>... | 2 |
Text | Text | remove superfluous mdn link in assert.md | a013aa0f5eba9915e2c996e32281433f72d495ae | <ide><path>doc/api/assert.md
<ide> The `assert` module provides a set of assertion functions for verifying
<ide> invariants. The module provides a recommended [`strict` mode][] and a more
<ide> lenient legacy mode.
<ide>
<del>For more information about the used equality comparisons see
<del>[MDN's guide on equality co... | 1 |
Ruby | Ruby | add action cable test adapter | f7dd2d67d6a8b74f2762be51dff4f96983175aee | <ide><path>actioncable/lib/action_cable/subscription_adapter.rb
<ide> module SubscriptionAdapter
<ide> extend ActiveSupport::Autoload
<ide>
<ide> autoload :Base
<add> autoload :Test
<ide> autoload :SubscriberMap
<ide> autoload :ChannelPrefix
<ide> end
<ide><path>actioncable/lib/action_cable/subscr... | 3 |
Java | Java | add committed flag to reactivehttpoutputmessage | 9142427c4d898db174aa895494269ff6d2372556 | <ide><path>spring-web/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java
<ide> /**
<ide> * A "reactive" HTTP output message that accepts output as a {@link Publisher}.
<ide> *
<del> * <p>Typically implemented by an HTTP request on the client-side or a response
<del> * on the server-side.
<add> * <p... | 4 |
Python | Python | add two functions for more dry reverse fk tests | 2910bfb5275c88d30aa73e580a35a46684177d38 | <ide><path>rest_framework/tests/nested_relations.py
<ide> def setUp(self):
<ide> self.new_target_data = {'id': 2, 'name': u'target-2', 'sources': []}
<ide> self.data = [self.target_data, self.new_target_data]
<ide>
<del> def test_reverse_foreign_key_retrieve(self):
<add> def save_serialized_targe... | 1 |
Go | Go | port a docker diff test | 5cab19a08b9a29a22ee956de4520fceab2be5e3b | <ide><path>integration-cli/docker_cli_diff_test.go
<ide> package main
<ide>
<ide> import (
<ide> "strings"
<add> "time"
<ide>
<ide> "github.com/docker/docker/pkg/integration/checker"
<ide> "github.com/go-check/check"
<ide> )
<ide>
<ide> // ensure that an added file shows up in docker diff
<ide> func (s *DockerSui... | 1 |
Java | Java | remove unused logger field | b2cf2b9d4879636d9aa3843175bff7cc8a8745fe | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/BindingReflectionHintsRegistrar.java
<ide>
<ide> import kotlin.jvm.JvmClassMappingKt;
<ide> import kotlin.reflect.KClass;
<del>import org.apache.commons.logging.Log;
<del>import org.apache.commons.logging.LogFactory;
<ide>
<ide> import org.springframew... | 1 |
Python | Python | fix flavaforpretrainingintegrationtest ci test | 3fb82f74fd67cbae4a5a7e83168dc161e33c97c7 | <ide><path>tests/models/flava/test_modeling_flava.py
<ide> def test_inference(self):
<ide>
<ide> expected_logits = torch.tensor([[16.1291, 8.4033], [16.1291, 8.4033]], device=torch_device)
<ide> self.assertTrue(torch.allclose(outputs.contrastive_logits_per_image, expected_logits, atol=1e-3))
<del> ... | 1 |
Javascript | Javascript | fix node tests to use new apis | 5fca89003b46eba529cc7d9e05cf8cb32451309e | <ide><path>tests/node/helpers/app-module.js
<ide> module.exports = function(moduleName) {
<ide> QUnit.module(moduleName, {
<ide> beforeEach: function() {
<ide> var Ember = this.Ember = require(emberPath);
<del> var DOMHelper = Ember.HTMLBars.DOMHelper;
<add>
<ide> Ember.testing = true;
<ide>
<id... | 1 |
Python | Python | fix integrityerror during webserver startup | 8f99c793ec4289f7fc28d890b6c2887f0951e09b | <ide><path>airflow/cli/commands/webserver_command.py
<ide> def webserver(args):
<ide>
<ide> run_args += ["airflow.www.app:cached_app()"]
<ide>
<add> # To prevent different workers creating the web app and
<add> # all writing to the database at the same time, we use the --preload option.
<add> ... | 2 |
Go | Go | remove kernelmemory tests | 2f0d6664a11f70a27ff5835f60e6d4408681bd75 | <ide><path>integration-cli/docker_cli_run_unix_test.go
<ide> func (s *DockerSuite) TestRunWithInvalidCpuPeriod(c *testing.T) {
<ide> assert.Assert(c, strings.Contains(out, expected))
<ide> }
<ide>
<del>func (s *DockerSuite) TestRunWithKernelMemory(c *testing.T) {
<del> testRequires(c, DaemonIsLinux, kernelMemorySuppo... | 4 |
Ruby | Ruby | walk entire keg to find object files to relocate | 54d0043771c0f577554f19a81fc4e251531f5ff4 | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def find_dylib name
<ide>
<ide> def mach_o_files
<ide> mach_o_files = []
<del> dirs = %w{bin sbin lib Frameworks}
<del> dirs.map! { |dir| path.join(dir) }
<del> dirs.reject! { |dir| not dir.directory? }
<del>
<del> dirs.each do |dir|
<del> ... | 1 |
PHP | PHP | add test for incrementing forever cache item | e3c381570a239c2d8d96607eeef5173a760af50d | <ide><path>tests/Cache/CacheFileStoreTest.php
<ide> public function testForeversAreStoredWithHighTimestamp()
<ide> $store->forever('foo', 'Hello World', 10);
<ide> }
<ide>
<add> public function testForeversAreNotRemovedOnIncrement()
<add> {
<add> $files = $this->mockFilesystem();
<add> ... | 1 |
Javascript | Javascript | add capitalize function to ember.string | c0207ba0a0948f70ed65f5e3095ec7ea40463259 | <ide><path>packages/ember-runtime/lib/ext/string.js
<ide> var fmt = Ember.String.fmt,
<ide> decamelize = Ember.String.decamelize,
<ide> dasherize = Ember.String.dasherize,
<ide> underscore = Ember.String.underscore,
<add> capitalize = Ember.String.capitalize,
<ide> classify = Ember.String.classify;
<... | 3 |
Text | Text | add example of null to assert.iferror | 08ada72cc692163979f574ee00de81cbfd730994 | <ide><path>doc/api/assert.md
<ide> argument in callbacks.
<ide> ```js
<ide> const assert = require('assert').strict;
<ide>
<add>assert.ifError(null);
<add>// OK
<ide> assert.ifError(0);
<ide> // OK
<ide> assert.ifError(1); | 1 |
Text | Text | review russian translation of the article | 21dc67040b81f9a2381690a647914eed591236f7 | <ide><path>guide/russian/javascript/advantages-and-disadvantages-of-javascript/index.md
<ide> localeTitle: Преимущества и недостатки JavaScript
<ide> ---
<ide> # Преимущества и недостатки JavaScript
<ide>
<del>Как и все языки компьютера, JavaScript имеет определенные преимущества и недостатки. Многие из плюсов и минус... | 1 |
Javascript | Javascript | remove unused/useless function sortitemsbeforeids | c3845c0731c60dafe676a50fa1d53e9fd51ce3ec | <ide><path>lib/Compilation.js
<ide> class Compilation extends Tapable {
<ide>
<ide> const shouldRecord = self.applyPluginsBailResult("should-record") !== false;
<ide>
<del> self.sortItemsBeforeIds();
<del>
<ide> self.applyPlugins2("revive-modules", self.modules, self.records);
<ide> self.applyPlugins1("opt... | 1 |
Ruby | Ruby | add missing end | 274607708c010a18d1d6a4fe1df1c04c88130158 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def exists?
<ide> # def test_create
<ide> # json = {:book => { :title => "Love Hina" }}.to_json
<ide> # post :create, json
<add> # end
<ide> #
<ide> # == Special instance variables
<ide> # | 1 |
Ruby | Ruby | add pkg-config check | 06745aa6d198ec3374d620afc3a9457edea8c5d3 | <ide><path>Library/Homebrew/brew_doctor.rb
<ide> def check_user_path
<ide> end
<ide> end
<ide>
<add>def check_pkg_config
<add> binary = `which pkg-config`.chomp
<add> return if binary.empty?
<add>
<add> unless binary == "#{HOMEBREW_PREFIX}/bin/pkg-config"
<add> puts <<-EOS.undent
<add> You have a non-brew... | 1 |
Go | Go | move daemon stuff to its own file | 9a9e2bb61d2c0a5bda75ea5679919162f53f3297 | <ide><path>integration-cli/daemon.go
<add>package main
<add>
<add>import (
<add> "encoding/json"
<add> "errors"
<add> "fmt"
<add> "io"
<add> "net/http"
<add> "os"
<add> "os/exec"
<add> "path/filepath"
<add> "strconv"
<add> "strings"
<add> "time"
<add>
<add> "github.com/docker/docker/opts"
<add> "github.com/docker/docke... | 2 |
PHP | PHP | apply fixes from styleci | fa62732859f6e13cfa94ef25f0d54a2246945084 | <ide><path>src/Illuminate/Database/DatabaseServiceProvider.php
<ide> protected function registerEloquentFactory()
<ide> $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US');
<ide>
<ide> if (! isset(static::$fakers[$locale])) {
<del> static::$fakers[... | 1 |
Python | Python | add tests for dimension data partner drivers | aae37ae77c20650c4c5f39ae252a9018cb7d60ed | <ide><path>libcloud/test/compute/test_bsnl.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under t... | 3 |
Python | Python | fix two bugs with --logging_first_step | 8f1c960ee75b0ebce4e94881ee2d5409a26a6239 | <ide><path>src/transformers/trainer.py
<ide> def train(self, model_path: Optional[str] = None, trial: Union["optuna.Trial", D
<ide>
<ide> tr_loss = torch.tensor(0.0).to(self.args.device)
<ide> self._logging_loss_scalar = 0
<add> self._globalstep_last_logged = 0
<ide> self._total_flos = s... | 2 |
Text | Text | fix broken links | 8792c3feb8e4852e44924fb059955a150ed863e6 | <ide><path>src/README.md
<ide> such as `std::string` and track their memory usage.
<ide>
<ide> This can be useful for debugging memory leaks.
<ide>
<del>The [`memory_retainer.h`][] header file explains how to use this class.
<add>The [`memory_tracker.h`][] header file explains how to use this class.
<ide>
<ide> <a i... | 1 |
Python | Python | fix importerror in runtests.py (fixes ) | 0f171d9273a3a86c7d4a434d7f4df491a42ca3ca | <ide><path>numpy/testing/__init__.py
<ide> from unittest import TestCase
<ide>
<ide> from . import decorators as dec
<add>from .nosetester import run_module_suite, NoseTester as Tester
<ide> from .utils import *
<del>from .nosetester import NoseTester as Tester
<del>from .nosetester import run_module_suite
<ide> test ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.