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
Ruby
Ruby
add comment for in-source style exception
2599cccc81782e45517dae03ba093f2d74f22f7f
<ide><path>Library/Homebrew/extend/ENV/super.rb <ide> def refurbish_args <ide> end <ide> <ide> # rubocop: disable Naming/MethodName <add> # Fixes style error `Naming/MethodName: Use snake_case for method names.` <ide> sig { params(block: T.nilable(T.proc.void)).void } <ide> def O0(&block) <ide> if block
1
Java
Java
update javadoc for mockmvc
18bf860c273179f95719d80b14d17c0c9ba99c38
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/MockMvc.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may n...
1
Javascript
Javascript
stop sharing of uniforms() in filmpass
effcd4402a20e60222dabe9e861ddd805ae4dfd5
<ide><path>examples/js/postprocessing/FilmPass.js <ide> THREE.FilmPass = function ( noiseIntensity, scanlinesIntensity, scanlinesCount, <ide> <ide> } ); <ide> <del> if ( grayscale !== undefined ) this.uniforms.grayscale.value = grayscale; <del> if ( noiseIntensity !== undefined ) this.uniforms.nIntensity.value = noi...
1
Ruby
Ruby
remove trailing whitespace. [ci skip]
16329d3901190a28fa88571079adf01322bee4fa
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def reload(options = nil) <ide> self <ide> end <ide> <del> # Saves the record with the updated_at/on attributes set to the current time <add> # Saves the record with the updated_at/on attributes set to the current time <ide> # or the t...
1
Ruby
Ruby
change migration to loop through formulae
888a7073bccc476fa5e14ca074c5d7ca0a0be5cf
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def migrate_legacy_cache_if_necessary <ide> def migrate_cache_entries_to_double_dashes(initial_version) <ide> return if initial_version > "1.7.1" <ide> <del> HOMEBREW_CACHE.children.each do |child| <del> next unless child.file? <add> Formula.each ...
3
Mixed
Javascript
handle uncaughtexception properly
422e8f762873aef4a37185f3237c0d666c929d8e
<ide><path>doc/api/errors.md <ide> An invalid `options.protocol` was passed to `http.request()`. <ide> <a id="ERR_INVALID_REPL_EVAL_CONFIG"></a> <ide> ### ERR_INVALID_REPL_EVAL_CONFIG <ide> <del>Both `breakEvalOnSigint` and `eval` options were set in the REPL config, which <del>is not supported. <add>Both `breakEvalOn...
8
Go
Go
fix default gw logic for internal networks
ff2200b3972d58d66d5377130225c09f35a9b2d0
<ide><path>libnetwork/sandbox.go <ide> func (eh epHeap) Less(i, j int) bool { <ide> return true <ide> } <ide> <add> if epi.getNetwork().Internal() { <add> return false <add> } <add> <add> if epj.getNetwork().Internal() { <add> return true <add> } <add> <ide> if ci != nil { <ide> cip, ok = ci.epPriority[eh[i].I...
1
Javascript
Javascript
copy file.icns on os x
7914409a489f84594f37fcf5c6a1763ef39a6375
<ide><path>build/lib/package-application.js <ide> module.exports = function () { <ide> throw new Error('TODO: handle this case!') <ide> } <ide> <del> copyShellCommands(bundledResourcesPath) <add> copyNonASARResources(bundledResourcesPath) <ide> console.log(`Application bundle(s) created on ${packag...
1
Go
Go
add extension() method to compresison type
54db18625aa7154c9dd230907444676fa3079b99
<ide><path>api.go <ide> import ( <ide> "io" <ide> "log" <ide> "net/http" <del> "os" <ide> "strconv" <ide> "strings" <ide> ) <ide><path>archive.go <ide> package docker <ide> <ide> import ( <ide> "errors" <add> "fmt" <ide> "io" <ide> "io/ioutil" <ide> "os" <ide> func (compression *Compression) Flag() string { <...
3
Text
Text
improve grammar for the 1st paragraph
510e6519cbf91bc8b0bb1bff67b9f7378170321c
<ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/introducing-else-if-statements.spanish.md <ide> localeTitle: Introduciendo Else If Sentencias <ide> --- <ide> <ide> ## Description <del><section id="description"> Si tiene múltiples condiciones que deben abordarse, p...
1
Python
Python
add means to duplicate connections from ui
2011da25a50edfcdf7657ec172f57ae6e43ca216
<ide><path>airflow/www/views.py <ide> import json <ide> import logging <ide> import math <add>import re <ide> import socket <ide> import sys <ide> import traceback <ide> from pygments import highlight, lexers <ide> from pygments.formatters import HtmlFormatter # noqa pylint: disable=no-name-in-module <ide> from sqlalc...
2
Text
Text
fix wrong hash syntax
1371b24cce71cb8e5a2c9f7cf82f5448188249f6
<ide><path>guides/source/form_helpers.md <ide> end <ide> The corresponding view `app/views/articles/new.html.erb` using `form_for` looks like this: <ide> <ide> ```erb <del><%= form_for @article, url: {action: "create"}, html => {class: "nifty_form"} do |f| %> <add><%= form_for @article, url: {action: "create"}, html: ...
1
Javascript
Javascript
avoid webpack build dependencies in test
6bb2808fc0d4067ad85f6dac4861d79e29fd8ae1
<ide><path>test/TestCasesCachePack.test.js <ide> describe("TestCases", () => { <ide> describeCases({ <ide> name: "cache pack", <ide> cache: { <del> type: "filesystem" <add> type: "filesystem", <add> buildDependencies: { <add> defaultWebpack: [] <add> } <ide> }, <ide> snapshot: { <ide> managedPath...
1
Javascript
Javascript
fix issues with test cleanup
632ecdb07826f16cb1e7cf7a5afecc9d6ae71414
<ide><path>packages/ember-runtime/tests/ext/rsvp_test.js <ide> import { setOnerror, getOnerror } from 'ember-metal/error_handler'; <ide> import run from 'ember-metal/run_loop'; <ide> import RSVP from 'ember-runtime/ext/rsvp'; <ide> <del>QUnit.module('Ember.RSVP'); <add>const ORIGINAL_ONERROR = getOnerror(); <add> <add...
5
Python
Python
fix typo in documentation
a2d2e4d6b5e2bd7257232c2156b78240452e9991
<ide><path>sorts/bogosort.py <ide> import random <ide> <ide> def bogosort(collection): <del> """Pure implementation of quick sort algorithm in Python <add> """Pure implementation of bogosort algorithm in Python <ide> :param collection: some mutable ordered collection with heterogeneous <ide> comparable i...
1
Ruby
Ruby
add test for `macos.languages`
929c594f41437f3a0a6d13fed2d596a0ba60435b
<ide><path>Library/Homebrew/test/test_os_mac_language.rb <ide> require "os/mac" <ide> <ide> class OSMacLanguageTests < Homebrew::TestCase <add> LANGUAGE_REGEX = /\A[a-z]{2}(-[A-Z]{2})?(-[A-Z][a-z]{3})?\Z/ <add> <add> def test_languages_format <add> OS::Mac.languages.each do |language| <add> assert_match LANG...
1
Go
Go
provide a struct to configure cli streaming
d9639409fd54ee6955793474fa9a5bac1e583c77
<ide><path>api/client/build.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> if context != nil { <ide> headers.Set("Content-Type", "application/tar") <ide> } <del> err = cli.stream("POST", fmt.Sprintf("/build?%s", v.Encode()), body, cli.out, headers) <add> sopts := &streamOpts{ <add> rawTermin...
9
Ruby
Ruby
make an internal command
706e8abe290c0c04185d62e29e2551dd8999b982
<ide><path>Library/Contributions/cmd/brew-gist-logs.rb <del>require 'formula' <del>require 'cmd/config' <del>require 'net/http' <del>require 'net/https' <del>require 'stringio' <del> <del>def gist_logs f <del> if ARGV.include? '--new-issue' <del> unless HOMEBREW_GITHUB_API_TOKEN <del> puts 'You need to create ...
2
Text
Text
fix broken wikipedia link
3335fe26a7f0e509dfbf7482d413ae12cd7123f7
<ide><path>guide/english/java/swing/index.md <ide> Swing comprises of numerous number of packages.Please go through the [official d <ide> #### More Information: <ide> <ide> - [Oracle docs](https://docs.oracle.com/javase/7/docs/api/javax/swing/package-use.html) <del>- [Wikipedia](https://en.wikipedia.org/wiki/Swing_(Ja...
1
PHP
PHP
add stricter array typehint
3b49033e9d8a0627b76db739fcebeadb5db03688
<ide><path>src/Routing/RouteBuilder.php <ide> public function resources($name, $options = [], $callback = null) <ide> * @throws \InvalidArgumentException <ide> * @throws \BadMethodCallException <ide> */ <del> public function connect($route, array $defaults = [], $options = []) <add> public function...
1
Ruby
Ruby
utilize modern dependency api
18836d93d8f9f99c1e4d4fbaf9843e9f223f1742
<ide><path>Library/Homebrew/cmd/uses.rb <ide> def uses <ide> uses = Formula.select do |f| <ide> ARGV.formulae.all? do |ff| <ide> if ARGV.flag? '--recursive' <del> f.recursive_deps.include? ff <add> f.recursive_dependencies.any? { |dep| dep.name == ff.name } <ide> else <del> ...
1
Javascript
Javascript
take safari 9.1 into account
234a2d828021b6eb36d83d83cc30c5a09045e781
<ide><path>test/unit/support.js <ide> testIframe( <ide> "radioValue": true, <ide> "reliableMarginLeft": true <ide> }; <del> } else if ( /9\.0(\.\d+|) safari/i.test( userAgent ) ) { <add> } else if ( /9(\.\d+|) safari/i.test( userAgent ) ) { <ide> expected = { <ide> "ajax": true, <ide> "boxSizingReliable...
1
Ruby
Ruby
add keyward argument `inplace` to run_shfmt
03c7a142be52a909ceea0adac03071b059cf76a5
<ide><path>Library/Homebrew/style.rb <ide> def check_style_impl(files, output_type, <ide> run_shellcheck(shell_files, output_type) <ide> end <ide> <del> run_shfmt(shell_files) if ruby_files.none? || shell_files.any? <add> run_shfmt(shell_files, inplace: fix) if ruby_files.none? || shell_files.a...
1
Javascript
Javascript
remove deprecated methods since 0.12 shipped
c46dadea55728a5c782861c15ed4989221c0674e
<ide><path>src/browser/ui/React.js <ide> var ReactRef = require('ReactRef'); <ide> var ReactServerRendering = require('ReactServerRendering'); <ide> <ide> var assign = require('Object.assign'); <del>var deprecated = require('deprecated'); <ide> var onlyChild = require('onlyChild'); <ide> <ide> ReactDefaultInjection.i...
4
Java
Java
remove reference to fluxion
a8c777b35facc210caf8bf32d19f01f296aa9bea
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/handler/SimpleHandlerResultHandlerTests.java <ide> public void supports() throws NoSuchMethodException { <ide> <ide> hm = new HandlerMethod(controller, TestController.class.getMethod("streamVoid")); <ide> type = ResolvableType.forMethodP...
1
PHP
PHP
add new `case` expression
10bc708e9195760a608aca6413a2fb9ed3c964b8
<ide><path>src/Database/Expression/CaseExpressionInterface.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License ...
13
Javascript
Javascript
remove passive flag from "before mutation" phase
8df7b7911aa7fc3a896fb29da29e09f574e931aa
<ide><path>packages/react-reconciler/src/ReactFiberFlags.js <ide> export const ForceUpdateForLegacySuspense = /* */ 0b000100000000000000; <ide> export const PassiveStatic = /* */ 0b001000000000000000; <ide> <ide> // Union of side effect groupings as pertains to subtreeFlags <del>export const BeforeMutat...
2
Text
Text
apply suggestions from code review
6d3d88d33e4c0ee16b1e955f05adf889f221f8dc
<ide><path>docs/External-Commands.md <ide> Install any `gem` package into a self-contained Homebrew Cellar location: <https <ide> Note this can also be installed with `brew install brew-gem`. <ide> <ide> ## External commands in taps <del>External commands can be hosted in a [tap](Taps.md) to allow users to easy instal...
1
Python
Python
fix customdata on azure arm
64fb493249e8f5a31212195f2d6fd682e39a2b1c
<ide><path>libcloud/compute/drivers/azure_arm.py <ide> def create_node(self, <ide> <ide> if ex_customdata: <ide> data["properties"]["osProfile"]["customData"] = \ <del> base64.b64encode(ex_customdata) <add> base64.b64encode(ex_customdata.encode()).decode() <ide> <ide>...
1
Text
Text
add v4.0.0-beta.4 to changelog`
e53d6bb4bbb5230829eb589fdba2388de3cd28cf
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.0.0-beta.4 (September 13, 2021) <add> <add>- [#19733](https://github.com/emberjs/ember.js/pull/19733) [BUGFIX] Ensure that using `routerService.urlFor(...)` and `routerService.recognize(...)` does not error if the router is not fully initialized <add> <...
1
PHP
PHP
add selectcount tests for eloquent builder
8d64b76dd9d820551c7b5b2d9b83fb292bd8b150
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testDeleteOverride() <ide> $this->assertEquals(['foo' => $builder], $builder->delete()); <ide> } <ide> <add> public function testSelectCount() <add> { <add> $model = new EloquentBuilderTestModelParentStub; <add> <a...
1
Go
Go
fix issue with add
f03ebc20aa33dbb9b468fe476ce26467eb328060
<ide><path>buildfile.go <ide> func (b *buildFile) CmdAdd(args string) error { <ide> cmd := b.config.Cmd <ide> b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)} <ide> <add> b.config.Image = b.image <ide> // Create the container and start it <ide> container, err := b.builder.Cr...
1
PHP
PHP
remove extra newline
825eab3a27337238e3192144a9dccdd8436f6131
<ide><path>src/View/Helper/FormHelper.php <ide> class FormHelper extends Helper { <ide> <ide> use IdGeneratorTrait; <del> <ide> use StringTemplateTrait; <ide> <ide> /**
1
Go
Go
debug output specifics
4cfe9df0a9c206c368a90f460fea8fab197265d9
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) initDevmapper(doInit bool) error { <ide> <ide> func (devices *DeviceSet) AddDevice(hash, baseHash string) error { <ide> log.Debugf("[deviceset] AddDevice() hash=%s basehash=%s", hash, baseHash) <del> defer log.Debugf("[deviceset] Add...
2
Javascript
Javascript
add tests to check error in dns.lookupservice
0623aabbe12cd288d82ef330654193a5edfcc3fa
<ide><path>test/parallel/test-dns-lookupService.js <add>// Flags: --expose-internals <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const { internalBinding } = require('internal/test/binding'); <add>const cares = internalBinding('cares_wrap'); <add>const { UV_EN...
1
Javascript
Javascript
remove outdated originalevent hack
6df669f0fb87cd9975a18bf6bbe3c3548afa4fee
<ide><path>src/event.js <ide> jQuery.event = { <ide> } <ide> }, <ide> <add> // Piggyback on a donor event to simulate a different one <ide> simulate: function( type, elem, event, bubble ) { <del> // Piggyback on a donor event to simulate a different one. <del> // Fake originalEvent to avoid donor's stopPropagati...
2
Text
Text
update webpack according to brand guidelines
bc23cc31de672121f395f904652e41116d0060bc
<ide><path>docs/_posts/2015-02-18-react-conf-roundup-2015.md <ide> It was a privilege to welcome the React community to Facebook HQ on January 28 <ide> <div class="skinny-col"> <ide> <h3 style="margin-top:0"><a class="anchor" name="talk-tweak"></a>Tweaking in real time <a class="hash-link" href="#talk-tweak">#</a...
8
PHP
PHP
fix some formatting
83a9eebab62897388de56f2bdceb03e844ba5d0a
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function getValue($attribute) <ide> protected function isValidatable($rule, $attribute, $value) <ide> { <ide> return $this->presentOrRuleIsImplicit($rule, $attribute, $value) && <del> $this->passesOptionalCheck($attribute); <add> $this->passe...
1
Python
Python
expand test on disk attributes
e69a7cb93a1077646786e447887bf31a0c9f9916
<ide><path>libcloud/test/compute/test_dimensiondata.py <ide> def test_list_nodes_response_strings_ALLFILTERS(self): <ide> ex_started=True, ex_state='fake_state', <ide> ex_network='fake_network', ex_network_domain='fake_network_domain') <ide> ...
1
Ruby
Ruby
use strings for the table names
6ebc8ca36c1840969cd5d003d9eb97bcad106d1c
<ide><path>activerecord/test/cases/migration/create_join_table_test.rb <ide> def setup <ide> <ide> def teardown <ide> super <del> [:artists_musics, :musics_videos, :catalog].each do |table_name| <add> %w(artists_musics musics_videos catalog).each do |table_name| <ide> connection.d...
1
Ruby
Ruby
contemplate unsupported metrics
0d1f7584ba25e7289871b5503f010874bc2aef49
<ide><path>activesupport/lib/active_support/testing/performance.rb <ide> class Performer <ide> delegate :run_test, :full_profile_options, :full_test_name, :to => :@harness <ide> <ide> def initialize(harness, metric) <del> @harness, @metric = harness, metric <add> @harness, @metric, @s...
3
Python
Python
handle compiler checks for pyf
2d6341542d6888cd9811961de296dbacee6cc4be
<ide><path>numpy/f2py/tests/util.py <ide> def setup(self): <ide> # Check compiler availability first <ide> if not has_c_compiler(): <ide> pytest.skip("No C compiler available") <del> if not has_f77_compiler(): <del> pytest.skip("No Fortran 77 compiler available") <del> ...
1
Python
Python
fix coding style for feature extractor
1cf70ed77c0cbd0b8f7114d86337474ed199f877
<ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py <ide> from object_detection.meta_architectures import faster_rcnn_meta_arch <ide> from object_detection.models import feature_map_generators <ide> from object_detection.models.keras_models import resnet_v1 <del>from object_...
1
Java
Java
fix checkstyle errors
bd910fc62b87b052968cd5a52458159d9fb6333e
<ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/view/AbstractViewTests.java <ide> import org.springframework.web.reactive.BindingContext; <ide> import org.springframework.web.server.ServerWebExchange; <ide> <del>import static org.junit.Assert.*; <add>import static org.junit.Assert.asser...
1
Go
Go
add authentification to all registry call
4307b7dd8ea8d2cdfdf749383f514e656ae8a408
<ide><path>commands.go <ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string <ide> } <ide> // If it fails, try to get the repository <ide> if repo, exists := srv.runtime.repositories.Repositories[cmd.Arg(0)]; exists { <del> if err := srv.runtime.graph.PushRepository(*user, cmd.A...
2
Javascript
Javascript
remove duplicate `$digest()`
4f9ac078d561b45deb1ca44dfb04fb58f97c7f27
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * @description <ide> * Creates a new child {@link ng.$rootScope.Scope scope}. <ide> * <del> * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} and <del> * {@link ng.$rootScope.Scop...
1
Javascript
Javascript
fix @param type for `ngchange`
21a2f4bb2310f5cea69d637568ca6c21f2815270
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> * Can be interpolated. <ide> * @param {string=} step Sets the `step` validation to ensure that the value entered matches the `step` <ide> * Can be interpolated. <del> * @param {string=} ngChange AngularJS exp...
1
Javascript
Javascript
fix mixed whitespace
2e4bb1899f32db31b48291a7755d461ca0af0072
<ide><path>src/Chart.Core.js <ide> // Boolean - whether or not the chart should be responsive and resize when the browser does. <ide> responsive: false, <ide> <del> // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire conta...
1
Python
Python
use roberta model and update doc strings
b92d68421dee75c3a078b26b78a05bd59007d855
<ide><path>transformers/modeling_roberta.py <ide> class RobertaForTokenClassification(BertPreTrainedModel): <ide> <ide> tokenizer = RobertaTokenizer.from_pretrained('roberta-base') <ide> model = RobertaForTokenClassification.from_pretrained('roberta-base') <del> input_ids = torch.tensor(tokenize...
2
Javascript
Javascript
remove manual clamping code in `src/core/jpx.js`
563b68e74d82fec352783f2b54dac90228b59a72
<ide><path>src/core/jpx.js <ide> var JpxImage = (function JpxImageClosure() { <ide> }; <ide> <ide> // Section G.2.2 Inverse multi component transform <del> var shift, offset, max, min, maxK; <del> var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val; <add> var shift, offset; <add> var pos = ...
1
Python
Python
add tests for inputs set dynamically
52f608cbe7cf685bd9f92fcedc3ef02ba4292dc6
<ide><path>tests/keras/engine/test_training.py <ide> <ide> import keras <ide> from keras import losses <del>from keras.layers import Activation, Dense, Dropout, Conv2D <add>from keras.layers import Activation, Dense, Dropout, Conv2D, Concatenate <ide> from keras.engine import Input <ide> from keras.engine.training imp...
1
Python
Python
prevent bert weights from being downloaded twice
076602bdc4b186e715538f437f2bce4b1ee5020e
<ide><path>examples/summarization/modeling_bertabs.py <ide> class Bert(nn.Module): <ide> <ide> def __init__(self): <ide> super(Bert, self).__init__() <del> self.model = BertModel.from_pretrained("bert-base-uncased") <add> config = BertConfig.from_pretrained("bert-base-uncased") <add> s...
1
Ruby
Ruby
fix typo in comment [ci skip]
c1ae3d7731e55ac5966500d4f2da6057c71c9510
<ide><path>activesupport/lib/active_support/test_case.rb <ide> class << self <ide> <ide> def self.__run reporter, options # :nodoc: <ide> # FIXME: MT5's runnables is not ordered. This is needed because <del> # we have have tests have cross-class order-dependent bugs. <add> # we have tests with cross-class ...
1
Ruby
Ruby
fix patching when patch already fetched
2ffb87cb0312c28db8c04afa89736b1fed6a805c
<ide><path>Library/Homebrew/resource.rb <ide> def prepare_patches <ide> end <ide> <ide> def fetch_patches(skip_downloaded: false) <del> patches.select!(&:external?) <del> patches.reject!(&:downloaded?) if skip_downloaded <del> patches.each(&:fetch) <add> patches.each do |p| <add> next unless p.ext...
1
Python
Python
implement cors for the restful api
89eee581dbb4dcb59c151f6efa637e100beb3c9a
<ide><path>glances/outputs/glances_bottle.py <ide> <ide> # Import mandatory Bottle lib <ide> try: <del> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response <add> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response, request <ide> except ImportError: <ide> ...
1
Javascript
Javascript
remove unused argument
c697618e1141e40bcd61fb82e38490a274664c62
<ide><path>server/read.js <ide> import resolve from './resolve' <ide> * and read and cache the file content <ide> */ <ide> <del>async function read (path, opts = {}) { <add>async function read (path) { <ide> const f = await resolve(path) <ide> if (cache.hasOwnProperty(f)) { <ide> return cache[f]
1
Python
Python
fix static checks on main
82f2ad3cb1ea1f1e5e2b0ef2c8c0c816a49f6465
<ide><path>tests/charts/test_pod_template_file.py <ide> def test_logs_persistence_changes_volume(self, log_persistence_values, expected) <ide> <ide> def test_should_set_a_custom_image_in_pod_template(self): <ide> docs = render_chart( <del> values={"images": {"pod_template": {"repository": "dummy...
1
Javascript
Javascript
replace common.fixturesdir with fixtures module
4de10273bbe7c4772bf142100945ed84dfc5e65d
<ide><path>test/parallel/test-fs-realpath-buffer-encoding.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const fs = require('fs'); <ide> <del>const string_dir = fs.realpathSync(common.fixturesDir); <ad...
1
Text
Text
fix comma splice
0bafe6dd219a62c5f8426e37be9807b88a62ecad
<ide><path>doc/api/http.md <ide> added: v0.9.12 <ide> <ide> * `msesc` {number} <ide> * `callback` {Function} Optional function to be called when a timeout <del>occurs, Same as binding to the `timeout` event. <add> occurs. Same as binding to the `timeout` event. <ide> * Returns: {this} <ide> <ide> Once a socket is as...
1
Text
Text
add some basics
41353e635f0b4301b7b0f1f024ef50c28ca9d8ad
<ide><path>SUMMARY.md <ide> ## Summary <ide> <del>* [Glossary](docs/Glossary.md) <add>* [Basics](/docs/basics/README.md) <add> * [Motivation](/docs/basics/Motivation.md) <add> * [Three Principles](/docs/basics/ThreePrinciples.md) <add> * [Prior Art](/docs/basics/PriorArt.md) <ide> * [API Reference](docs/api/README....
5
PHP
PHP
remove trailing white-space
22471ae267f35311b0f2ff4fd7ba4cbf32c3577d
<ide><path>src/Illuminate/Auth/EloquentUserProvider.php <ide> public function retrieveByToken($identifier, $token) <ide> $model = $this->createModel()->newQuery() <ide> ->where($model->getAuthIdentifierName(), $identifier) <ide> ->first(); <del> <add> <ide> return $model ...
1
Ruby
Ruby
ensure column names on reflection as a string
c0750fe2304de2c7bae028cbc465b6bf7e7d253e
<ide><path>activerecord/lib/active_record/associations/association.rb <ide> def invertible_for?(record) <ide> <ide> # Returns true if record contains the foreign_key <ide> def foreign_key_for?(record) <del> record._has_attribute?(reflection.foreign_key.to_s) <add> record._has_attribut...
6
Ruby
Ruby
fix argv and bottles circular dependency
d5b954ebd4c3c8c43584e04976da071c6ac76cf4
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_filename f, bottle_version=nil <ide> "#{name}-#{version}#{bottle_native_suffix(bottle_version)}" <ide> end <ide> <del>def bottles_supported? <del> HOMEBREW_PREFIX.to_s == '/usr/local' and HOMEBREW_CELLAR.to_s == '/usr/local/Cellar' and Hardware.is_64_bit? || !...
2
Text
Text
add v3.1.0-beta.4 to changelog
777bfd860d2ea30bd65d8070e3cf2c29e022c0a6
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.1.0-beta.4 (March 5, 2018) <add>- [#16294](https://github.com/emberjs/ember.js/pull/16294) [BUGFIX] Fix input macro params handling <add>- [#16297](https://github.com/emberjs/ember.js/pull/16297) [BUGFIX] Revert "Update to backburner.js@2.2.0." <add>- [...
1
Text
Text
update contributing guidelines for examples
6ad8c338d8cdc26e66759d1838886093cd45a80f
<ide><path>contributing.md <ide> When you add an example to the [examples](examples) directory, don’t forget to <ide> <ide> - Replace `DIRECTORY_NAME` with the directory name you’re adding. <ide> - Fill in `Example Name` and `Description`. <add>- Examples should be TypeScript first, if possible. <add>- You don’t need ...
1
Javascript
Javascript
use reactversions module as package allowlist
44cdfd6b7a0f5a4949866a24f65179760b3767d1
<ide><path>ReactVersions.js <ide> const experimentalPackages = [ <ide> 'react-fs', <ide> 'react-pg', <ide> 'react-server-dom-webpack', <del> 'react-server', <ide> ]; <ide> <ide> // TODO: Export a map of every package and its version. <ide><path>scripts/release/utils.js <ide> const {join} = require('path'); <ide...
2
PHP
PHP
move ast, context and formatter to debug namespace
aa949aa94405a82d8ed34d7cad1d2f35b02cb2e7
<add><path>src/Error/Debug/ArrayNode.php <del><path>src/Error/DumpNode/ArrayNode.php <ide> * @since 4.1.0 <ide> * @license https://opensource.org/licenses/mit-license.php MIT License <ide> */ <del>namespace Cake\Error\DumpNode; <add>namespace Cake\Error\Debug; <ide> <ide> /** <ide> * Dump node for Ar...
11
Ruby
Ruby
improve documentation for connectionpool, again
f261cd2a94fc128f37f85e86326868341cbfdf3d
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> module ConnectionAdapters <ide> # Connection pool base class for managing ActiveRecord database <ide> # connections. <ide> # <add> # == Introduction <add> # <ide> # A connection pool synchronizes thread...
1
Javascript
Javascript
add comment to explain the implementation
5985d4069aa08a32729f6e01e8641d577cad06e8
<ide><path>src/display/pattern_helper.js <ide> var TilingPattern = (function TilingPatternClosure() { <ide> <ide> info('TilingType: ' + tilingType); <ide> <add> // A tiling pattern as defined by PDF spec 8.7.2 is a cell whose size is <add> // described by bbox, and may repeat regularly by shifting the...
1
PHP
PHP
fix more usage of deprecated methods
15e61cb9fbe1b1197d0ca71a96a99cb81d0a7d4f
<ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php <ide> public function testNoViewClassExtension() <ide> return $this->Controller->response; <ide> }); <ide> $this->Controller->render(); <del> $this->assertEquals('RequestHandlerTest' . DS . 'csv', $this->Co...
8
Mixed
Javascript
remove unstable_ prefix in various internal uses
68fb58029d818979804677a4d1063eb71f2934f4
<ide><path>packages/react-devtools-core/src/standalone.js <ide> import { <ide> // $FlowFixMe Flow does not yet know about flushSync() <ide> flushSync, <ide> // $FlowFixMe Flow does not yet know about createRoot() <del> unstable_createRoot as createRoot, <add> createRoot, <ide> } from 'react-dom'; <ide> import B...
7
Ruby
Ruby
use clear_cache where appropriate
6d7a3d7fa435edf1e0731e5f7a0121ec156ece48
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> <ide> if @clone.exist? and not repo_valid? <ide> puts "Removing invalid SVN repo from cache" <del> @clone.rmtree <add> clear_cache <ide> end <ide> <ide> case @ref_type <ide> def fetch <ide> end <ide> elsif @cl...
1
Ruby
Ruby
raise a useful message
e7ee57d5e5cf0502aaff8ad03cec195a723f43c5
<ide><path>Library/Homebrew/superenv.rb <ide> def determine_cc <ide> when 'gcc', 'gcc-4.2' then 'gcc-4.2' <ide> when 'llvm', 'llvm-gcc' then 'llvm-gcc' <ide> else <del> opoo "Invalid value for HOMEBREW_CC: #{ENV['HOMEBREW_CC']}" <add> opoo "Invalid value for HOMEBREW_CC: #{ENV['HOMEB...
1
Javascript
Javascript
use const where applicable in dllentryplugin
575ca696e2c8bf4d6711b02b626a3b95f791974d
<ide><path>lib/DllEntryPlugin.js <ide> class DllEntryPlugin { <ide> <ide> apply(compiler) { <ide> compiler.plugin("compilation", (compilation, params) => { <del> let dllModuleFactory = new DllModuleFactory(); <del> let normalModuleFactory = params.normalModuleFactory; <add> const dllModuleFactory = new DllMod...
1
Ruby
Ruby
check respond_to? instead of inline rescue
1d265e5a0acbc6fa92d4684bcbc9bc2abcf0155a
<ide><path>Library/Homebrew/caveats.rb <ide> def initialize(f) <ide> def caveats <ide> caveats = [] <ide> caveats << f.caveats <del> caveats << f.keg_only_text rescue nil if f.keg_only? <add> caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text) <ide> caveats << bash_completion_...
1
PHP
PHP
add tests and update transaction logic
7a0832bb44057f1060c96c2e01652aae7c583323
<ide><path>src/Illuminate/Database/Connection.php <ide> public function transaction(Closure $callback, $attempts = 1) <ide> */ <ide> public function beginTransaction() <ide> { <del> ++$this->transactions; <del> <del> if ($this->transactions == 1) { <add> if ($this->transactions == 0) {...
2
Ruby
Ruby
handle pazpar2 style
e4f291084aaa97cad176f13268420b2fbc899ab0
<ide><path>Library/Homebrew/bottle_version.rb <ide> def self._parse spec <ide> <ide> # e.g. x264-r2197.4.mavericks.bottle.tar.gz <ide> # e.g. lz4-r114.mavericks.bottle.tar.gz <del> m = /(r\d+\.?\d*)/.match(stem) <add> m = /-(r\d+\.?\d*)/.match(stem) <add> return m.captures.first unless m.nil? <add> <a...
2
Ruby
Ruby
avoid the need to defensively flatten tags array
3df31557c8a378e8a13d2ce36391a7e1c0152acb
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_string_spec(spec, tags) <ide> elsif (tag = tags.first) && LANGUAGE_MODULES.include?(tag) <ide> # Next line only for legacy support of `depends_on 'module' => :python` <ide> # It should be replaced by `depends_on :python => 'module'` <de...
2
Text
Text
es6ify the docs a little
8e3b50c56418b9070e22bc59fc9346ae4a7726c9
<ide><path>COOKBOOK.md <ide> $ npm install axios promise --save <ide> ``` <ide> <ide> ```js <del>var axios = require('axios'); <add>const axios = require('axios'); <ide> require('promise/polyfill-done'); <ide> <ide> axios <ide> .get('http://www.example.com/user') <del> .then(function (response) { <add> .then((res...
2
Text
Text
update readme with for 0.14
be90351add34c2a47328a2b7a0786c5c00d991c8
<ide><path>README.md <ide> The fastest way to get started is to serve JavaScript from the CDN (also availab <ide> <ide> ```html <ide> <!-- The core React library --> <del><script src="https://fb.me/react-0.13.3.js"></script> <del><!-- In-browser JSX transformer, remove when pre-compiling JSX. --> <del><script src="htt...
1
Text
Text
fix minor typo
ce1a0b612d300210fadf12556e1b38885f098197
<ide><path>daemon/graphdriver/devmapper/README.md <ide> Here is the list of supported options: <ide> If using a block device for device mapper storage, ideally lvm2 <ide> would be used to create/manage the thin-pool volume that is then <ide> handed to docker to exclusively create/manage the thin and thin <d...
1
Ruby
Ruby
fix broken nodocs
72486005dd906939ced0fd69659b2fae2ee0ee01
<ide><path>actionpack/lib/action_dispatch/middleware/flash.rb <ide> def commit_flash # :nodoc: <ide> end <ide> end <ide> <del> def reset_session # :nodoc <add> def reset_session # :nodoc: <ide> super <ide> self.flash = nil <ide> end <ide><path>activerecord/lib/active_recor...
3
Ruby
Ruby
ignore callstacks from ruby stdlib in deprecation
ba004484cd3456fc8cb6391e7927f3ddc8e32dad
<ide><path>activesupport/lib/active_support/deprecation/reporting.rb <add>require 'rbconfig' <add> <ide> module ActiveSupport <ide> class Deprecation <ide> module Reporting <ide> def deprecation_caller_message(callstack) <ide> def extract_callstack(callstack) <ide> return _extract_callstack(call...
1
Javascript
Javascript
remove generated file
fd2b1341f6abca876dc1bc21d0966c7026f0fad1
<ide><path>src/time/format-en_GB.js <del>// The date and time format (%c), date format (%x) and time format (%X). <del>var d3_time_formatDateTime = "%a %b %e %H:%M:%S %Y", <del> d3_time_formatDate = "%d/%m/%y", <del> d3_time_formatTime = "%H:%M:%S"; <del> <del>// The weekday and month names. <del>var d3_time_days...
1
Ruby
Ruby
recognize amd cpus on linux
97c9a952d3a78f532a2caaa5efdad743513018ff
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> def family <ide> # See https://software.intel.com/en-us/articles/intel-architecture-and-processor-identification-with-cpuid-model-and-family-numbers <ide> # and https://github.com/llvm-mirror/llvm/blob/HEAD/lib/Support/Host.cpp <ide> ...
1
Ruby
Ruby
use the source returned from encode!
916b74d16a5ed369ba58c17630f593470ca502a8
<ide><path>actionview/lib/action_view/template.rb <ide> def inspect <ide> # before passing the source on to the template engine, leaving a <ide> # blank line in its stead. <ide> def encode! <del> return unless source.encoding == Encoding::BINARY <add> source = self.source <add> <add> return s...
1
Python
Python
remove trailing whitespace
121c310566da7e3853d76afbac102154975fa4e5
<ide><path>spacy/tests/regression/test_issue595.py <ide> def test_not_lemmatize_base_forms(vocab, lemmatizer): <ide> feed.tag_ = u'VB' <ide> assert feed.text == u'feed' <ide> assert feed.lemma_ == u'feed' <del>
1
Javascript
Javascript
improve code, remove unneeded old stuff
f9846f1f91f1827fa351febad788f0d38b8e6115
<ide><path>lib/NormalModule.js <ide> const makeSerializable = require("./util/makeSerializable"); <ide> /** @typedef {import("./util/Hash")} Hash */ <ide> /** @typedef {import("./util/fs").InputFileSystem} InputFileSystem */ <ide> <add>/** <add> * @typedef {Object} LoaderItem <add> * @property {string} loader <add> * ...
4
Javascript
Javascript
append whitespace divs so matches still line up
5ba674c9961976e991820b5adac730c6260847e3
<ide><path>web/text_layer_builder.js <ide> var TextLayerBuilder = function textLayerBuilder(options) { <ide> this.appendText = function textLayerBuilderAppendText(geom, styles) { <ide> var style = styles[geom.fontName]; <ide> var textDiv = document.createElement('div'); <add> this.textDivs.push(textDiv); <...
1
Text
Text
update chat server to discord server
3ab1e4be7142b988c5bfc1bde8855f20f6ee2432
<ide><path>README.md <ide> Our community also has: <ide> - A [forum](https://forum.freecodecamp.org) where you can usually get programming help or project feedback within hours. <ide> - A [YouTube channel](https://youtube.com/freecodecamp) with free courses on Python, SQL, Android, and a wide variety of other technolog...
1
PHP
PHP
add mergerecursive() method on collections
9add84a72d5337adfe245553ca20da94ed08eedf
<ide><path>src/Illuminate/Support/Collection.php <ide> public function merge($items) <ide> return new static(array_merge($this->items, $this->getArrayableItems($items))); <ide> } <ide> <add> /** <add> * Recursively merge the collection with the given items. <add> * <add> * @param mixed $it...
2
Java
Java
fix scrollview contentoffset
be260b9f479a3b55ee43d2959d2c49fd3c1eb4ac
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java <ide> protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { <ide> @Override <ide> protected void onLayout(boolean changed, int l, int t, int r, int b) { <ide> // Call with the present values in order to ...
1
Javascript
Javascript
verify input flags
240065fd8bef51e55a4f65fbe54d7cfc8b98cd40
<ide><path>test/common/index.js <ide> const isMainThread = (() => { <ide> } <ide> })(); <ide> <add>// Check for flags. Skip this for workers (both, the `cluster` module and <add>// `worker_threads`) and child processes. <add>if (process.argv.length === 2 && <add> isMainThread && <add> module.parent && <add> ...
1
PHP
PHP
limit backtrace frames to return
2af75c10a5cb8ef73bce708be0ec240a1b33780d
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function belongsTo($related, $foreignKey = null, $otherKey = null, $relat <ide> // of the time this will be what we desire to use for the relationships. <ide> if (is_null($relation)) <ide> { <del> list(, $caller) = debug_backtrace(false); <add> ...
1
Javascript
Javascript
use binary search for interpolations
9fda5ec667848f12d732a4ca1e89088ac30f2a69
<ide><path>src/core/core.datasetController.js <ide> helpers.extend(DatasetController.prototype, { <ide> * @private <ide> */ <ide> _getSharedOptions: function(mode, el, options) { <add> if (!mode) { <add> // store element option sharing status for usage in interactions <add> this._sharedOptions = options && op...
6
Text
Text
complete the list of entity name
dedabdf89f5fd29c9e7528e7c17b5d4991664918
<ide><path>guide/english/html/html-entities/index.md <ide> This is by no means an exhaustive list but the links below will be able to give <ide> <ide> | Character | Entity Name | Entity Number | Description | <ide> |-------|-----------|-----------|-------| <del>| | | `&#32;` | Space | <del>| ! | ...
1
Python
Python
fix module order
7996ef74ddd913256eaf84ba740bc9da6f5e2ef5
<ide><path>src/transformers/models/bloom/modeling_bloom.py <ide> def __init__(self, config): <ide> self.pretraining_tp = config.pretraining_tp <ide> self.slow_but_exact = config.slow_but_exact <ide> self.dense_h_to_4h = nn.Linear(hidden_size, 4 * hidden_size) <add> self.gelu_impl = BloomG...
1
Python
Python
use float32 activation in transformer
94b1efc1bc7b0c0d6572f52e5b023dac7ee827fc
<ide><path>official/nlp/modeling/layers/transformer.py <ide> def build(self, input_shape): <ide> kernel_constraint=self._kernel_constraint, <ide> bias_constraint=self._bias_constraint, <ide> name="intermediate") <add> policy = tf.keras.mixed_precision.experimental.global_policy() <add> if ...
1
Text
Text
fix duplicate gwt link
c83ad1642bec092367a5d019f79f71b106bbb284
<ide><path>README.md <ide> src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a> <ide> * @medikoo for [modules-webmake](https://github.com/medikoo/modules-webmake), which is a similar project. webpack was born because I wanted Code Splitting for modules-webmake. Interestingly the [Code Splitting is...
1
PHP
PHP
fix binary log conversation
8be4f212b5ad4e0e5e4db2c769b78e967bc257a2
<ide><path>src/Database/Log/LoggedQuery.php <ide> protected function interpolate(): string <ide> } <ide> <ide> if (is_string($p)) { <del> // Likely binary data. <del> if (!ctype_print($p)) { <add> // Likely binary UUID. <add> if (strle...
2