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 |
|---|---|---|---|---|---|
PHP | PHP | use symfony as a last resort exception handler | f2cd3c3396590944db2d789bf496f875a2bff0aa | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function convertExceptionToResponse(Exception $e)
<ide> $headers = $this->isHttpException($e) ? $e->getHeaders() : [];
<ide> $statusCode = $this->isHttpException($e) ? $e->getStatusCode() : 500;
<ide>
<del> if (config('a... | 1 |
Javascript | Javascript | remove spurious jsdoc entry | 0264f2395f39648969742ef80cb81fd301e840d1 | <ide><path>lib/internal/source_map/source_map.js
<ide> class SourceMap {
<ide> return cloneSourceMapV3(this.#payload);
<ide> }
<ide>
<del> /**
<del> * @param {SourceMapV3} mappingPayload
<del> */
<ide> #parseMappingPayload = () => {
<ide> if (this.#payload.sections) {
<ide> this.#parseSections(t... | 1 |
Ruby | Ruby | reuse `test_args` method | eadf17881d4210a593aaad3db4ea793c13ca66e6 | <ide><path>Library/Homebrew/dev-cmd/test.rb
<ide> module Homebrew
<ide> module_function
<ide>
<del> def test_args
<del> Homebrew::CLI::Parser.new do
<del> usage_banner <<~EOS
<del> `test` [<options>] <formula>
<del>
<del> Run the test method provided by an installed formula.
<del> There... | 2 |
PHP | PHP | add @throws to logoutotherdevices() | ef4541d51a805eb711e14af897515aa7b2ed3569 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> protected function rehashUserPassword($password, $attribute)
<ide> * @param string $password
<ide> * @param string $attribute
<ide> * @return bool|null
<add> *
<add> * @throws AuthenticationException If the password is invalid.
<ide> ... | 1 |
Python | Python | fix tests for python 2 | 10462816bce5e0ddd470eed50bf048c36b451513 | <ide><path>spacy/tests/test_underscore.py
<ide> def test_underscore_raises_for_dup(obj):
<ide> {'default': None, 'method': lambda: None},
<ide> {'getter': True}])
<ide> def test_underscore_raises_for_invalid(invalid_kwargs):
<add> invalid_kwargs['force'] = True
<ide> doc = Doc(Vocab(), words=['hello', 'w... | 1 |
Javascript | Javascript | fix typos in test/parallel | c6051a08fa5cd9c9d152af64e42e36d690084420 | <ide><path>test/parallel/test-fs-symlink-longpath.js
<ide> const longPath = path.join(...[tmpDir].concat(Array(30).fill('1234567890')));
<ide> fs.mkdirSync(longPath, { recursive: true });
<ide>
<ide> // Test if we can have symlinks to files and folders with long filenames
<del>const targetDirtectory = path.join(longPa... | 5 |
Python | Python | update tf lm examples | 3f2e636850aba0fa7d163a27db6fc790e504b184 | <ide><path>examples/tensorflow/language-modeling/run_clm.py
<ide> import random
<ide> import sys
<ide> from dataclasses import dataclass, field
<del>from functools import partial
<ide> from itertools import chain
<ide> from pathlib import Path
<ide> from typing import Optional
<ide>
<ide> import datasets
<del>import n... | 2 |
Javascript | Javascript | improve stability of charge forces | 5390ac3f853e6f48b4db66dd81e97885bbea530b | <ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide> /* Barnes-Hut criterion. */
<ide> if ((x2 - x1) * dn < theta) {
<ide> var k = kc * quad.count * dn * dn;
<del> node.x += dx * k;
<del> node.y += dy * k;
<add> node.px -= dx * k;
<add> node.py... | 3 |
Javascript | Javascript | fix casing on store import | e634777027bf8e63cffe85b1ce727895193931b5 | <ide><path>shells/browser/shared/src/main.js
<ide> import { createElement } from 'react';
<ide> import { unstable_createRoot as createRoot, flushSync } from 'react-dom';
<ide> import Bridge from 'src/bridge';
<del>import Store from 'src/devtools/Store';
<add>import Store from 'src/devtools/store';
<ide> import inject f... | 1 |
Python | Python | fix gradient test failure | d3ab82cfafb8cd95818375f8cd5fdd7a47833e98 | <ide><path>tests/keras/backend/backend_test.py
<ide> def test_update_sub(self):
<ide> reason='cntk doesn\'t support gradient in this way.')
<ide> def test_gradient(self):
<ide> val = np.random.random((4, 2))
<del> x_list = [k.variable(val) for k in [KTH, KTF]]
<add> x_l... | 1 |
PHP | PHP | fix cs error | 7cf3fc12e8ce33fe6bc86dd51c478cab4850b808 | <ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php
<ide> public function __construct($exceptionRenderer = null, array $config = [])
<ide> *
<ide> * @param \Psr\Http\Message\ServerRequestInterface $request The request.
<ide> * @param \Psr\Http\Server\RequestHandlerInterface $handler The request ha... | 10 |
Javascript | Javascript | normalize indentation on applymiddleware.spec.js | 486413e428f0aa99728895ab8b175e565f8ae2df | <ide><path>test/applyMiddleware.spec.js
<ide> describe('applyMiddleware', () => {
<ide> })
<ide> })
<ide>
<del> it('passes through all arguments of dispatch calls from within middleware', () => {
<del> const spy = jest.fn()
<del> const testCallArgs = ['test']
<del> function multiArgMiddle... | 1 |
Ruby | Ruby | check conflict names | a0d53f7bc1c78a5425e1fc53bb82fa5f1a0061d8 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> end
<ide> end
<ide>
<add> def audit_conflicts
<add> f.conflicts.each do |req|
<add> begin
<add> conflict_f = Formula.factory req.formula
<add> rescue
<add> problem "Can't find conflicting formula \"#{req.formula}\"."
... | 1 |
Java | Java | add jsonp support to mappingjackson2jsonview | 5dc27ee134d28c7b25d0f6d3e9059f80c95d4402 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java
<ide> import java.io.ByteArrayOutputStream;
<ide> import java.io.IOException;
<ide> import java.io.OutputStream;
<del>import java.util.Collections;
<del>import java.util.HashMap;
<del>import java.util.Map;
<del... | 2 |
Ruby | Ruby | ignore `homebrew_no_github_api` when testing | 845cb99e29b7f37573eb9e499b1aed16ee6e7149 | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide> ENV.delete("HOMEBREW_CASK_OPTS")
<ide> ENV.delete("HOMEBREW_TEMP")
<ide> ENV.delete("HOMEBREW_LINKAGE_CACHE")
<add> ENV.delete("HOMEBREW_NO_GITHUB_API")
<ide> ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
<ide> ENV["HOME... | 2 |
Javascript | Javascript | fix proxy bugs | 5c4ca4ccc4ae33bfa9e06c2fd62f6d23b2fe6b66 | <ide><path>lib/adapters/http.js
<ide> module.exports = function httpAdapter(config) {
<ide>
<ide> if (proxy) {
<ide> options.host = proxy.host;
<add> options.hostname = proxy.host;
<add> options.headers.host = parsed.hostname;
<ide> options.port = proxy.port;
<ide> options.path = parsed... | 1 |
Python | Python | fix example of models.py method fit_generator() | 858e3a8a84ba17dd607fbaad61f64ce1f588af8b | <ide><path>keras/models.py
<ide> def generate_arrays_from_file(path):
<ide> # and labels, from each line in the file
<ide> x, y = process_line(line)
<ide> yield (x, y)
<del> f.close()
<add> f.close()
<ide> ... | 1 |
Python | Python | fix character type in loading weights. | a18f9f57559c6e91c8f22abd7e05dbcc5603ca24 | <ide><path>keras/engine/topology.py
<ide> def load_weights_from_hdf5_group(f, layers):
<ide> and weights file.
<ide> """
<ide> if 'keras_version' in f.attrs:
<del> original_keras_version = f.attrs['keras_version']
<add> original_keras_version = f.attrs['keras_version'].decode('utf8')
<... | 1 |
Python | Python | fix wrong assert | d2ae41529c2319e1b67f05464b7e543cfb2adc2c | <ide><path>tests/test_relations_slug.py
<ide> def test_foreign_key_update_with_invalid_null(self):
<ide> data = {'id': 1, 'name': 'source-1', 'target': None}
<ide> instance = ForeignKeySource.objects.get(pk=1)
<ide> serializer = ForeignKeySourceSerializer(instance, data=data)
<del> assert... | 1 |
Ruby | Ruby | move abstract stuff to autoload | 72b365ece9322b323203ef423aef4554b1b27bbc | <ide><path>actionpack/lib/action_controller/abstract.rb
<add>module AbstractController
<add> autoload :Base, "action_controller/abstract/base"
<add> autoload :Callbacks, "action_controller/abstract/callbacks"
<add> autoload :Helpers, "action_controller/abstract/helpers"
<add> autoload :Layouts, ... | 2 |
Javascript | Javascript | add missing ngchange directive for email type | 041f118b01933fa07098f1333be8e2cf1a28f248 | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> * @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
<ide> * RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
<ide> * patterns defined as scope express... | 1 |
Javascript | Javascript | dispatch an event on sandbox creation | 4ae9064d60551e4911134c0e2eff5df23f927bca | <ide><path>web/app.js
<ide> const PDFViewerApplication = {
<ide> URL: this.url,
<ide> },
<ide> });
<add>
<add> if (this.externalServices.isInAutomation) {
<add> this.eventBus.dispatch("sandboxcreated", {
<add> source: this,
<add> });
<add> }
<ide> } catch (er... | 1 |
Ruby | Ruby | remove code related to the rails test command | 47a9eea04ab88ef262119c56812e61b069a45e41 | <ide><path>railties/lib/rails/commands.rb
<ide> "d" => "destroy",
<ide> "c" => "console",
<ide> "s" => "server",
<del> "t" => "test",
<ide> "db" => "dbconsole",
<ide> "r" => "runner"
<ide> }
<ide> generate Generate new code (short-cut alias: "g")
<ide> console Start the Rails console (short-cut... | 1 |
Text | Text | add drf-schema-adapter to 3rd party metadata mods | f1cbf51b43005724a26e15e8c2235dd9622b0b33 | <ide><path>docs/api-guide/metadata.md
<ide> Then configure your settings to use this custom class:
<ide> 'DEFAULT_METADATA_CLASS': 'myproject.apps.core.MinimalMetadata'
<ide> }
<ide>
<add># Third party packages
<add>
<add>The following third party packages provide additional metadata implementations.
<add>... | 1 |
Text | Text | add link to comparison with other frameworks. | d534f00a657c2c4fbeb528b12fa9cd5fd0ff6c5c | <ide><path>guide/english/vue/index.md
<ide> Its main attributes are the following:
<ide> * It's versatile: you can use it as a simple library or a fully featured framework
<ide> * It's performant: it's extremely performant out of the box with very little to almost no optimization required.
<ide>
<del>### More Informat... | 1 |
Python | Python | add workaround in setup.py for newer setuptools | bf148bf9cd1e5cde05353bfdbe11124523555f5c | <ide><path>setup.py
<ide> def setup_package():
<ide> else:
<ide> #from numpy.distutils.core import setup
<ide> from setuptools import setup
<add> # workaround for broken --no-build-isolation with newer setuptools, see gh-21288
<add> metadata["packages"] = []
<ide>
<ide> try:
<ide>... | 1 |
Ruby | Ruby | move search#search_casks out of extend/os | ba664fa1b4c8f13284c8e5517ec278d456c58bf3 | <ide><path>Library/Homebrew/search.rb
<ide> def search_formulae(string_or_regex)
<ide> end.compact
<ide> end
<ide>
<del> def search_casks(_string_or_regex)
<del> []
<add> def search_casks(string_or_regex)
<add> if string_or_regex.is_a?(String) && string_or_regex.match?(HOMEBREW_TAP_CASK_REGEX... | 1 |
Go | Go | remove linux specific calls | 3dfc910d7774d57c533b067fbe59d6b24dd803cd | <ide><path>archive/archive.go
<ide> import (
<ide> "bytes"
<ide> "compress/bzip2"
<ide> "compress/gzip"
<add> "errors"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<ide> "io"
<ide> import (
<ide> "syscall"
<ide> )
<ide>
<del>type Archive io.Reader
<del>
<del>type Compression int
<add>type (
<add> Archiv... | 3 |
Javascript | Javascript | remove revision in renderers of examples | 6d2c2147dd6df44ad795b4a0742efdcaae672b2a | <ide><path>examples/js/renderers/CSS2DRenderer.js
<ide> THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject;
<ide>
<ide> THREE.CSS2DRenderer = function () {
<ide>
<del> console.log( 'THREE.CSS2DRenderer', THREE.REVISION );
<del>
<ide> var _width, _height;
<ide> var _widthHalf, _heightHalf;
<ide>
<ide><path... | 6 |
Javascript | Javascript | update the title on bonfire.js | b1f22ef925de68f1cb8e2470a121f7eb704f8035 | <ide><path>controllers/bonfire.js
<ide> debug = require('debug')('freecc:cntr:bonfires');
<ide> */
<ide> exports.index = function(req, res) {
<ide> res.render('bonfire/bonfire.jade', {
<del> title: 'Learn to code with Bonfire - Free Code Camp'
<add> title: 'Learn to code with Bonfire'
<ide> });
<ide> /... | 1 |
Python | Python | remove debug code | 0d7dd3df7f18974882ff4f4f16c4b9009a61f1b4 | <ide><path>glances/processes.py
<ide> def update(self):
<ide> # User filter
<ide> not (self._filter.is_filtered(p.info))]
<ide>
<del> # !!! TODO: Remove
<del> self.processlist[0]['cpu_percent'] = None
<del> # !!! /TODO
<del>
<del>
<ide> ... | 1 |
Python | Python | add more assertions | af89afc658fc5156766ea55f95dab07f304e2312 | <ide><path>libcloud/test/compute/test_ec2.py
<ide> def test_regions_and_signature_versions(self):
<ide> self.assertEqual(driver.signature_version, "4")
<ide>
<ide> # Verify that signature_version can be overriden via constructor argument
<add> driver = EC2NodeDriver(*EC2_PARAMS, region="us-east-... | 1 |
Javascript | Javascript | add resolvemodel to the default resolver | e08d638d4033457d3c21f2458ff64e7714bd9dbd | <ide><path>packages/ember-application/lib/system/resolver.js
<ide> var get = Ember.get,
<ide> 'view:blog/post' //=> Blog.PostView
<ide> 'view:basic' //=> Ember.View
<ide> 'foo:post' //=> App.PostFoo
<add> 'model:post' //=> App.Post
<ide> ```
<ide>
<ide> @class DefaultResolver
<ide> Ember.DefaultResolver = E... | 2 |
Javascript | Javascript | implement tests | ddbfd26da0c87badf632f85bc2c4b0a88d9da8c2 | <ide><path>test/unit/src/core/Object3D.tests.js
<ide> import {
<ide> w,
<ide> eps
<ide> } from '../math/Constants.tests.js';
<add>import { EventDispatcher } from '../../../../src/core/EventDispatcher.js';
<ide>
<ide> const matrixEquals4 = ( a, b ) => {
<ide>
<ide> export default QUnit.module( 'Core', () => {
<ide> ... | 10 |
Python | Python | replace custom tf embeddings by keras embeddings | 00cbadb870fb74b0eee4197fe9b62afbca457670 | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def load_tf_weights(model, resolved_archive_file, ignore_mismatched_sizes=False,
<ide> # If not, make the value to None
<ide> saved_weight_value = saved_weights.get(symbolic_weight_name, None)
<ide>
<add> ... | 5 |
PHP | PHP | fix database rules with where clauses | 53081e92c6c25f99574b9022aec79d9bf8c63801 | <ide><path>src/Illuminate/Validation/Rules/DatabaseRule.php
<ide> public function queryCallbacks()
<ide> protected function formatWheres()
<ide> {
<ide> return collect($this->wheres)->map(function ($where) {
<del> return $where['column'].','.$where['value'];
<add> return $where['co... | 3 |
Text | Text | remove outdated video | 8e28785913aa645e1ca505330971b60c530d853f | <ide><path>curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-an-image-responsive.md
<ide> id: 587d78b1367417b2b2512b09
<ide> title: Make an Image Responsive
<ide> challengeType: 0
<del>videoUrl: 'https://scrimba.com/p/pzrPu4/cz763UD'
<ide> forumTopicId: 301140
<ide> dashedName... | 1 |
Text | Text | add teletype highlights from the past week [week] | 5bcded4adf608f27e4c4abd27736c12581e3a847 | <ide><path>docs/focus/2018-03-19.md
<ide> - Begin an npm package, [squeegpg](https://github.com/atom/squeegpg), to wrap GPG interaction and gpg-agent management using the binaries from [squeegpg-native](https://github.com/atom/squeegpg-native). Set up a bunch of yak-shaving tasks like configuring Circle/AppVeyor/Trav... | 1 |
Text | Text | fix typos in functions guide | 0fc2c1c7a45137c23bfb0443cdee1a5b0be14967 | <ide><path>docs/guides/videojs.md
<ide> var VjsButton = videojs.getComponent('Button');
<ide> // Subclass the component (see 'extend' doc for more info)
<ide> var MySpecialButton = videojs.extend(VjsButton, {});
<ide> // Register the new component
<del>VjsButton.registerComponent('MySepcialButton', MySepcialButton);
<a... | 1 |
Python | Python | remove pack_inputs/unpack_inputs in bert | c813d85fad1f39b1705ca39727fb3f5e130e3d58 | <ide><path>official/nlp/bert_models.py
<ide> def __init__(self, vocab_size, **kwargs):
<ide> 'vocab_size': vocab_size,
<ide> }
<ide>
<del> def __call__(self,
<del> lm_output,
<del> sentence_output=None,
<del> lm_label_ids=None,
<del> lm_label_weights... | 1 |
Text | Text | fix some minor typos | 77503a99301bf201f5358edfdf017a88362d4f10 | <ide><path>guide/english/react/fragments/index.md
<ide> Fragments are a way to return multiple elements from the render method without u
<ide>
<ide> When attempting to render multiple sibling elements without an enclosing tag in JSX, you will see the error message of `Adjacent JSX elements must be wrapped in an enclos... | 1 |
PHP | PHP | fix tests on php 8.2 | 066c11494c1c081db6f5ca2539d34b61393e8dfd | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> public function testNestedTransactionRollbackExceptionThrown(): void
<ide> return false;
<ide> });
<ide> $this->rollbackSourceLine = __LINE__ - 1;
<add> if (PHP_VERSION_ID >= 80200) {
<add> ... | 1 |
Javascript | Javascript | add new oninput event | 292dd238e70400a16bebd000fc4364c42d3effe7 | <ide><path>src/core/ReactEvent.js
<ide> function listenAtTopLevel(touchNotMouse) {
<ide> trapBubbledEvent(topLevelTypes.topKeyUp, 'keyup', mountAt);
<ide> trapBubbledEvent(topLevelTypes.topKeyPress, 'keypress', mountAt);
<ide> trapBubbledEvent(topLevelTypes.topKeyDown, 'keydown', mountAt);
<add> trapBubbledEvent... | 3 |
PHP | PHP | fix doc block annotation for texthelper | df47b35f72a6d7a287c13289bd1de1b05ad0d42f | <ide><path>src/View/Helper/NumberHelper.php
<ide> class NumberHelper extends Helper
<ide> ];
<ide>
<ide> /**
<del> * Cake\I18n\LocalizedNumber instance
<add> * Cake\I18n\Number instance
<ide> *
<ide> * @var \Cake\I18n\Number
<ide> */
<del> protected $_engine = null;
<add> protected... | 2 |
Ruby | Ruby | remove unused variable | 16648979f72e4543cb62cf803dc6c4c6b03715d4 | <ide><path>activerecord/test/cases/enum_test.rb
<ide> class EnumTest < ActiveRecord::TestCase
<ide>
<ide> test "overriding enum method should not raise" do
<ide> assert_nothing_raised do
<del> klass = Class.new(ActiveRecord::Base) do
<add> Class.new(ActiveRecord::Base) do
<ide> self.table_name ... | 1 |
PHP | PHP | fix typo in whether | e10100d0494475ed2aaabba7e037b0e9e31d0ac2 | <ide><path>src/Filesystem/Folder.php
<ide> public function chmod($path, $mode = false, $recursive = true, array $exceptions
<ide> * Returns an array of subdirectories for the provided or current path.
<ide> *
<ide> * @param string|null $path The directory path to get subdirectories for.
<del> * @para... | 1 |
Python | Python | set version to v2.2.0.dev19 | 796072e56050ff0546e2c7c57f41190480774616 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0"
<add>__version__ = "2.2.0.dev19"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mo... | 1 |
Javascript | Javascript | add touchable e2e tests | 1bc704d4c70f129abf004ae9552ee18268fada20 | <ide><path>RNTester/e2e/__tests__/Touchable-test.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @emails oncall+react_native
<add> * @forma... | 2 |
Text | Text | add tick marks + small grammar change | 73874a163f82dfb326c65a3e414d04b180b9074b | <ide><path>guides/source/rails_application_templates.md
<ide> After reading this guide, you will know:
<ide> Usage
<ide> -----
<ide>
<del>To apply a template, you need to provide the Rails generator with the location of the template you wish to apply using the -m option. This can either be a path to a file or a URL.
<... | 1 |
Javascript | Javascript | return a dummy fill style for nyi shading | 56b1f3b333b177a6253ded5d58d99a3e0a61a641 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> },
<ide> getShading: function(shading) {
<ide> shading = this.xref.fetchIfRef(shading);
<add> var dict = IsStream(shading) ? shading.dict : shading;
<ide>
<del> var bbox = shading.get('BBox');
<add> var bbox = dict.get('BBox'... | 1 |
Go | Go | use rslave instead of rprivate in chrootarchive | 5ede64d63fec0b9d4cf921b6f8fb946e65287538 | <ide><path>pkg/chrootarchive/chroot_linux.go
<ide> func chroot(path string) (err error) {
<ide> return fmt.Errorf("Error creating mount namespace before pivot: %v", err)
<ide> }
<ide>
<del> // make everything in new ns private
<del> if err := mount.MakeRPrivate("/"); err != nil {
<add> // Make everything in new ns ... | 1 |
Python | Python | fix linting errors | 56e1534a3c14bc34f37da58517ccfe7e1e69e2e4 | <ide><path>libcloud/test/common/test_base_driver.py
<ide> def _ex_connection_class_kwargs(self):
<ide> DummyDriver2.connectionCls = Mock()
<ide> DummyDriver2(key='foo')
<ide> call_kwargs = DummyDriver2.connectionCls.call_args[1]
<del> #self.assertEqual(call_kwargs['timeout'], 13)
<del> ... | 2 |
Ruby | Ruby | add test for env mod through system call | d2a7314f538f919e9b09e4b27c1f86b7d3d2eda2 | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem "\"\#\{prefix}#{match[1]}\" should be \"\#{#{match[2].downcase}}\""
<ide> end
<ide> end
<add>
<ide> find_every_method_call_by_name(body... | 2 |
Python | Python | fix memory regression in seq2seq example | 5f80c15ef53b4c2c10eeec64b2e42e62db130930 | <ide><path>examples/seq2seq/finetune_trainer.py
<ide> AutoTokenizer,
<ide> HfArgumentParser,
<ide> MBartTokenizer,
<add> MBartTokenizerFast,
<ide> Seq2SeqTrainer,
<ide> Seq2SeqTrainingArguments,
<ide> set_seed,
<ide> def main():
<ide> data_args.eval_beams = model.config.num_beams
<ide... | 5 |
Python | Python | rename the quick html generation to 'qhtml' | ca555f0576f8d57c68ab6a88348ce88cfa764918 | <ide><path>pavement.py
<ide> def clean_docs(options):
<ide>
<ide>
<ide> @task
<del>@needs("paver.doctools.html")
<add>@needs("clean_docs", "paver.doctools.html")
<ide> def html(options):
<add> destdir = path("Documentation")
<add> destdir.rmtree()
<add> builtdocs = sphinx_builddir(options)
<add> builtdocs... | 1 |
Text | Text | fix text to follow portuguese language syntax | 48f89a06416c24aca4401c42753cb820ae1b29e6 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/apply-the-flex-direction-property-to-create-rows-in-the-tweet-embed.portuguese.md
<ide> localeTitle: Aplicar a propriedade flex-direction para criar linhas no Tweet Inc
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> ... | 1 |
Text | Text | remove reference to rendering absolute files | b9c05c0fe1468d9917f2136644746ee916797adf | <ide><path>guides/source/layouts_and_rendering.md
<ide> render template: "products/show"
<ide>
<ide> #### Wrapping it up
<ide>
<del>The above three ways of rendering (rendering another template within the controller, rendering a template within another controller, and rendering an arbitrary file on the file system) a... | 1 |
PHP | PHP | fix fluent interface on route->middleware() | 83b7dfd3fa3106b53f85ac4483d33ba2abdc4a34 | <ide><path>src/Illuminate/Routing/Route.php
<ide> protected function extractOptionalParameters()
<ide> * Get or set the middlewares attached to the route.
<ide> *
<ide> * @param array|string|null $middleware
<del> * @return array
<add> * @return array|$this
<ide> */
<ide> public functio... | 1 |
PHP | PHP | remove dead tests | b79812894248485a20e28afbffe19d6516746d0d | <ide><path>tests/TestCase/Controller/PagesControllerTest.php
<del><?php
<del>/**
<del> * PagesControllerTest file
<del> *
<del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License... | 1 |
Python | Python | fix issue #260 | 3488ebddcf5f3b6761195858939d01e2a5eefbd6 | <ide><path>glances/glances.py
<ide> batinfo_lib_tag = False
<ide> else:
<ide> batinfo_lib_tag = True
<add>else:
<add> batinfo_lib_tag = False
<ide>
<ide> try:
<ide> # HTML output (optional) | 1 |
Javascript | Javascript | restore copyright header | 4f883bd0bcdc015e2cf70bcc29bbe05fd5b8a40b | <ide><path>local-cli/link/__tests__/android/applyPatch.spec.js
<ide> /**
<del> * Copyright (c) 2013-present, Facebook, Inc.
<add> * Copyright (c) 2015-present, Facebook, Inc.
<ide> * All rights reserved.
<ide> *
<ide> * This source code is licensed under the BSD-style license found in the
<ide><path>local-cli/link/_... | 100 |
PHP | PHP | add options array | b37b7caa6e74e01da76ca403796835156fe0304e | <ide><path>src/Illuminate/Mail/TransportManager.php
<ide> protected function createSesDriver()
<ide> 'version' => 'latest', 'service' => 'email',
<ide> ]);
<ide>
<del> return new SesTransport(new SesClient(
<del> $this->addSesCredentials($config)
<del> ));
<add> retu... | 1 |
Python | Python | require torch when testing examples | eaa6b9afc637d9f2d7ebeb1a89fab2eba4d6c477 | <ide><path>tests/test_examples.py
<ide>
<ide> import os
<ide> import unittest
<add>from .utils import require_torch
<ide>
<ide>
<ide> def get_examples_from_file(file):
<ide> def get_examples_from_file(file):
<ide> return ['\n'.join(example) for example in examples]
<ide>
<ide>
<add>@require_torch
<ide> class T... | 1 |
Text | Text | fix typos and inline code style | 801f892acc21f3a4359c8ebaa4ff3b44dd02b5e0 | <ide><path>object_detection/g3doc/running_pets.md
<ide> the tarballs, your object_detection directory should appear as follows:
<ide> ```
<ide>
<ide> The Tensorflow Object Detection API expects data to be in the TFRecord format,
<del>so we'll now run the _create_pet_tf_record_ script to convert from the raw
<add>so we... | 1 |
Ruby | Ruby | use bintray package naming | e5f145ababc6635024260820c98af6e0980a9662 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide>
<ide> Dir.glob("*.bottle*.tar.gz") do |filename|
<ide> version = Bintray.version filename
<del> formula = bottle_filename_formula_name filename
<del> existing_bottle = existing_bottles[formula]
<add> formula_name = ... | 1 |
Mixed | Javascript | add test for fabrictext | f136ae136278c374e24989c693a5b3a0a101178c | <ide><path>Libraries/Text/FabricText.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @providesModule FabricText
<add> * @flow
<add> * @format
<ad... | 4 |
Javascript | Javascript | add single source of truth for package versions | 6736a38b9abdd19a015929c0279783c92b30d372 | <ide><path>ReactVersions.js
<add>'use strict';
<add>
<add>// This module is the single source of truth for versioning packages that we
<add>// publish to npm.
<add>//
<add>// Packages will not be published unless they are added here.
<add>//
<add>// The @latest channel uses the version as-is, e.g.:
<add>//
<add>// 18... | 4 |
Text | Text | give better instructions on alignment p-tags | dbdc7042714582e4eb541b9a38f69cd4b94c4b8c | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/introduction-to-html5-elements.md
<ide> Example usage, a `main` element with two child elements nested inside it:
<ide>
<ide> # --instructions--
<ide>
<del>Create a second `p` element after the existing `p` element with the followi... | 1 |
Ruby | Ruby | run tests under actual os version | 2e2d9221901e072bf9aa684ffebcb441af01d93f | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
<ide>
<ide> MACOS = true
<del>MACOS_VERSION = ENV.fetch('MACOS_VERSION', 10.6)
<del>MACOS_FULL_VERSION = '10.6.8'
<add>MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.... | 1 |
Python | Python | switch metrics in run_ner to datasets | 46ed56cfd1544296feb73b707022149cf03f8c5e | <ide><path>examples/test_examples.py
<ide> def test_run_ner(self):
<ide>
<ide> with patch.object(sys, "argv", testargs):
<ide> result = run_ner.main()
<del> self.assertGreaterEqual(result["eval_accuracy_score"], 0.75)
<add> self.assertGreaterEqual(result["eval_accuracy"], 0.75... | 2 |
Python | Python | display conf as a json in the dagrun list view | e6a0a5374dabc431542113633148445e4c5159b9 | <ide><path>airflow/www/utils.py
<ide> def dt(attr): # pylint: disable=invalid-name
<ide> # pylint: enable=invalid-name
<ide>
<ide>
<add>def json_f(attr_name):
<add> """Returns a formatted string with HTML for given JSON serializable"""
<add> def json_(attr):
<add> f = attr.get(attr_name)
<add> se... | 3 |
Javascript | Javascript | expose clonewithprops on addons | 1167aeb453233c50b8f4de67319246235adbfa87 | <ide><path>src/browser/ReactWithAddons.js
<ide> var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup');
<ide> var ReactTransitionGroup = require('ReactTransitionGroup');
<ide>
<ide> var cx = require('cx');
<add>var cloneWithProps = require('cloneWithProps');
<ide>
<ide> React.addons = {
<del> classSet: cx,... | 1 |
Text | Text | fix typo in step 96 of learn css variables project | 62b7e90b75e97e7f45fea24d329c6afcb27c9607 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e9929.md
<ide> dashedName: step-96
<ide>
<ide> # --description--
<ide>
<del>Only three more building to go. Nest two new `div` elements within the `.fb4` element and give them the cla... | 1 |
Java | Java | fix regression in abstractjackson2decoder | 113db2fb2f6a1ad73d37bfe83c5dbbb22edb296e | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
<ide> public List<MimeType> getDecodableMimeTypes() {
<ide> return getMimeTypes();
<ide> }
<ide>
<add> @Override
<add> public List<MimeType> getDecodableMimeTypes(ResolvableType targetType) {
<add> return getMimeTy... | 2 |
Text | Text | add plugin debug docs | 94c40a30747ce77dc2191627645fec9c71a90a99 | <ide><path>docs/extend/index.md
<ide> title: Managed plugin system
<ide>
<ide> * [Installing and using a plugin](index.md#installing-and-using-a-plugin)
<ide> * [Developing a plugin](index.md#developing-a-plugin)
<add>* [Debugging plugins](index.md#debugging-plugins)
<ide>
<ide> Docker Engine's plugins system allows ... | 1 |
PHP | PHP | improve code readbility | 084ab254e7715d4d595ca6319bd48fad975940bd | <ide><path>src/Cache/Engine/FileEngine.php
<ide>
<ide> use Cake\Cache\CacheEngine;
<ide> use Cake\Utility\Inflector;
<add>use CallbackFilterIterator;
<ide> use Exception;
<ide> use LogicException;
<ide> use RecursiveDirectoryIterator;
<ide> public function key($key)
<ide> public function clearGroup($group)
<ide> ... | 1 |
Ruby | Ruby | define `arel_visitor` method on all adapters | dd58c3bf23ded02a2d8fbf7a20f577486b8cba9f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def collector
<ide> end
<ide>
<ide> def arel_visitor # :nodoc:
<del> (Arel::Visitors::VISITORS[@config[:adapter]] || Arel::Visitors::ToSql).new(self)
<add> Arel::Visitors::ToSql.new(self)
<ide> end
<... | 4 |
Javascript | Javascript | fix devtools v4.1 editable hook regression | 9b3cde9b627e91f9d4a81093384d579928474c37 | <ide><path>packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js
<ide> type OverrideValueFn = (path: Array<string | number>, value: any) => void;
<ide>
<ide> type EditableValueProps = {|
<ide> className?: string,
<del> dataType: string,
<ide> initialValue: any,
<ide> overrideValueFn: Ove... | 4 |
Ruby | Ruby | add lib/dtrace to non-owned directories | 040d655d8d23a6f90003f7c8e15574ab8d2aea1d | <ide><path>Library/Homebrew/keg.rb
<ide> def link mode=OpenStruct.new
<ide> # pkg-config database gets explicitly created
<ide> when 'pkgconfig' then :mkpath
<ide> # lib/language folders also get explicitly created
<add> when 'dtrace' then :mkpath
<ide> when /^gdk-pixbuf/ then :mkpath
<ide>... | 1 |
Text | Text | fix image scaling | e36b7bbd289ce1de56fd972be55d4f508b515b2c | <ide><path>threejs/lessons/threejs-align-html-elements-to-3d.md
<ide> There are a couple of issues we probably want to deal with.
<ide> One is that if we rotate the objects so they overlap all the labels
<ide> overlap as well.
<ide>
<del><img src="resources/images/overlapping-labels.png" class="threejs_center" style="... | 1 |
PHP | PHP | add various kinds of non length based indexes | 55f7c98fbed3ff6b5fd51a2ae78314940e7db6d7 | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function indexSql(Table $table, $name) {
<ide> );
<ide> return sprintf('PRIMARY KEY (%s)', implode(', ', $columns));
<ide> }
<add> if ($data['type'] === Table::INDEX_UNIQUE) {
<add> $out = 'UNIQUE KEY ';
<add> }
<add> if ($data['type'] === Ta... | 3 |
Ruby | Ruby | chage `date_time` type ` to `datetime` | a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d | <ide><path>activerecord/lib/active_record/type.rb
<ide> def current_adapter_name
<ide> register(:binary, Type::Binary, override: false)
<ide> register(:boolean, Type::Boolean, override: false)
<ide> register(:date, Type::Date, override: false)
<del> register(:date_time, Type::DateTime, override: false)
<... | 1 |
Javascript | Javascript | improve assertion for non-array passed to #each | bfdbf858e25af9bcda3cdc888798532af336eeac | <ide><path>packages/ember-handlebars/lib/helpers/each.js
<ide> Ember.Handlebars.EachView = Ember.CollectionView.extend(Ember._Metamorph, {
<ide> return this._super();
<ide> },
<ide>
<add> _assertArrayLike: function(content) {
<add> Ember.assert("The value that #each loops over must be an Array. You passed " ... | 3 |
Python | Python | modify unit tests for 32 bit support | 18e73ab359968875e7df6a0b45e788feee8fd716 | <ide><path>numpy/core/tests/test_dtype.py
<ide> def test_invalid_types(self):
<ide> # For now, display a deprecation warning for invalid
<ide> # type sizes. In the future this should be changed
<ide> # to an exception.
<del> for typestr in ['O3', 'O5', 'O7', 'b3', 'h4', 'I5', 'l4',
<del... | 1 |
PHP | PHP | improve performance of truncation strategy | 579aedc56fe7ae4990d78b4d6473f5da17d93ac9 | <ide><path>src/TestSuite/Fixture/TruncationStrategy.php
<ide> class TruncationStrategy implements ResetStrategyInterface
<ide> *
<ide> * @var array
<ide> */
<del> protected $tables = [];
<add> protected static $tables = [];
<ide>
<ide> /**
<ide> * @var \Cake\TestSuite\Fixture\FixtureLoade... | 1 |
Text | Text | focus document template | 76bf882f80fb23f9f1ee7c305c99c236575c0b3f | <ide><path>docs/focus/2018-04-02.md
<add>## Highlights from the past week
<add>
<add>- Atom IDE
<add>- GitHub Package
<add>- Teletype
<add>- Xray
<add>- Reactor Duty
<add>
<add>## Focus for week ahead
<add>
<add>- Atom IDE
<add>- GitHub Package
<add>- Teletype
<add>- Xray
<add>- Reactor Duty | 1 |
Text | Text | modify list section | b18560f8d6cfda241c4436ca568fa8ff0349e095 | <ide><path>guide/english/r/subsetting-data/index.md
<ide> df[c(1, 3), ]
<ide> ## 3 3 1 c
<ide> ```
<ide>
<del>To get content of a list use `[[` operator like:
<add>To get contents of a list use `[[` or `$` operator like:
<ide>
<ide> ```r
<del>a <- list(a = 1, b = 2)
<del>a[[1]]
<del>## [1] 1
<add>sample_list <- list(... | 1 |
Python | Python | remove feature extraction config | 11655fafdd42eb56ad94e09ecd84d4dc2d1041ae | <ide><path>src/transformers/models/wav2vec2/configuration_wav2vec2.py
<ide> class Wav2Vec2Config(PretrainedConfig):
<ide> Whether do apply `stable` layer norm architecture of the Transformer encoder. ``do_stable_layer_norm is
<ide> True`` corresponds to applying layer norm before the attention l... | 1 |
Javascript | Javascript | add known issue test for path parse issue | 407069a29ddaa27664292070a306b0c63cc87f37 | <ide><path>test/known_issues/test-path-parse-6229.js
<add>'use strict';
<add>// Refs: https://github.com/nodejs/node/issues/6229
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const path = require('path');
<add>
<add>{
<add> // The path `/foo/bar` is not the same path as `/foo/bar/`
<add>... | 1 |
Ruby | Ruby | use formatter for all urls | 884b26850615d5624e09762e1ae8bc5b104a934a | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted?(name)
<ide> Homebrew provides pip via: `brew install python`. However you will then
<ide> have two Pythons installed on your Mac, so alternatively you can install
<ide> pip via the instructions at:
<del> https://pip.readthedocs.io/en/stabl... | 8 |
Ruby | Ruby | maintain proleptic gregorian in time#advance | 0c6ddbe7b0056cb5c17d6b483c0e5a7cbd596b97 | <ide><path>activesupport/lib/active_support/core_ext/time/calculations.rb
<ide> def change(options)
<ide> end
<ide> end
<ide>
<del> # Uses Date to provide precise Time calculations for years, months, and days.
<del> # The +options+ parameter takes a hash with any of these keys: <tt>:years</tt>,
<del> # <tt>:m... | 2 |
Text | Text | fix broken link in docs | 8a11e5805af2ab40163ed531b0faccf559bccf82 | <ide><path>README.md
<ide> Contribution
<ide>
<ide> Use [Github issues](https://github.com/facebook/immutable-js/issues) for requests.
<ide>
<del>We actively welcome pull requests, learn how to [contribute](./.github/CONTRIBUTING.md).
<add>We actively welcome pull requests, learn how to [contribute](https://github.co... | 1 |
Python | Python | try the correct noreversematch location | 11610e7c3c4330b863c9da5d843b6d874c2958e9 | <ide><path>rest_framework/relations.py
<ide> from __future__ import unicode_literals
<del>from django.core.exceptions import ObjectDoesNotExist, ValidationError, NoReverseMatch
<del>from django.core.urlresolvers import resolve, get_script_prefix
<add>from django.core.exceptions import ObjectDoesNotExist, ValidationErro... | 2 |
Python | Python | improve saving strategy of sentencepiece tokenizer | ade7371a41145c53fe90f66da7e5606f96068e98 | <ide><path>src/transformers/models/albert/tokenization_albert.py
<ide> def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] =
<ide> save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"]
<ide> )
<ide>
<del> if os.path.abs... | 21 |
Javascript | Javascript | move message listener to worker objects | 58561cf6a8ce6ac907973c3813cb52134ec8d4c2 | <ide><path>tools/jslint.js
<ide> if (cluster.isMaster) {
<ide> sendWork(worker);
<ide> });
<ide>
<del> cluster.on('message', function(worker, results) {
<del> if (typeof results !== 'number') {
<del> // The worker sent us results that are not all successes
<del> if (!workerConfig.sendAll)
<del> ... | 1 |
PHP | PHP | add tests for begintransaction() retrying | 33c6f9a19e0e19d8d1610e26c00d8acad58a5d71 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function beginTransaction()
<ide> {
<ide> if ($this->transactions == 0) {
<ide> try {
<del> $this->getPdo()->beginTransaction();
<add> $this->pdo->beginTransaction();
<ide> } catch (Exception... | 2 |
Javascript | Javascript | add uploadtexture to webglrenderer | 3c1c8318005efeea385ef641424c2e5cd6f4f6b7 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> };
<ide>
<del> this.setTexture = function ( texture, slot ) {
<add> this.uploadTexture = function ( texture ) {
<ide>
<del> if ( texture.needsUpdate ) {
<add> if ( ! texture.__webglInit ) {
<ide>
<del> i... | 1 |
Text | Text | update the docs for --link accept container id | 750373875e25455acb046001cb0582873a90bd73 | <ide><path>docs/man/docker-create.1.md
<ide> IMAGE [COMMAND] [ARG...]
<ide> 'host': use the host shared memory,semaphores and message queues inside the container. Note: the host mode gives the container full access to local shared memory and is therefore considered insecure.
<ide>
<ide>... | 6 |
Javascript | Javascript | add gettypedarray unittest | ab69febff58bc0c42920eeb0ffa514de759c531d | <ide><path>test/unit/src/utils.tests.js
<ide> /* global QUnit */
<ide>
<del>import { arrayMin, arrayMax } from '../../../src/utils';
<add>import { arrayMin, arrayMax, getTypedArray } from '../../../src/utils';
<ide>
<ide> QUnit.module( 'utils', () => {
<ide>
<ide> QUnit.module( 'utils', () => {
<ide> } );
<ide>
<i... | 1 |
Ruby | Ruby | fix rubocop warnings | 16be0f105ed3eef07133cdd09e48e562b85b7697 | <ide><path>Library/Homebrew/language/python.rb
<ide> def create
<ide> # Robustify symlinks to survive python3 patch upgrades
<ide> @venv_root.find do |f|
<ide> next unless f.symlink?
<del> if (rp = f.realpath.to_s).start_with? HOMEBREW_CELLAR
<del> python = rp.inc... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.