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
push 7th argument to new line
ed91b7ddaedcde80dcfda261d8f125fd1ee19c4f
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> public function forUser($user) <ide> <ide> return new static( <ide> $this->container, $callback, $this->abilities, <del> $this->policies, $this->beforeCallbacks, $this->afterCallbacks, $this->guessPolicyNamesUsingCallback <add> ...
1
Python
Python
add test for issue 3209
bc300d4e3179da1575577e78d88ea1e5377e1b25
<ide><path>spacy/tests/regression/test_issue3209.py <add>'''Test that labels are mapped to classes consistently when loading NER model.''' <add>from __future__ import unicode_literals <add>from spacy.lang.en import English <add> <add>def test_issue3209(): <add> '''Test issue that occurred in spaCy nightly where NER ...
1
Javascript
Javascript
handle rejections to avoid uncaught rejections
0b54e0047598e255bcbb7e3aff23c26d7382c54d
<ide><path>packages/react-server-dom-webpack/src/ReactFlightClientWebpackBundlerConfig.js <ide> export function resolveModuleReference<T>( <ide> const chunkCache: Map<string, null | Promise<any>> = new Map(); <ide> const asyncModuleCache: Map<string, Thenable<any>> = new Map(); <ide> <add>function ignoreReject() { <ad...
1
PHP
PHP
fix errors in sqlserver 2008
39fef4c4148d758e71f02fa9b171e1d36abf9696
<ide><path>src/Database/QueryCompiler.php <ide> protected function _stringifyExpressions($expressions, $generator) <ide> $result = []; <ide> foreach ($expressions as $k => $expression) { <ide> if ($expression instanceof ExpressionInterface) { <del> $expression = '(' . $express...
2
Text
Text
fix typo for docker swarm description
eb4b965ddbe0c351df45dfd81b32c08c7194d804
<ide><path>docs/swarm/how-swarm-mode-works/services.md <ide> The underlying logic of Docker swarm mode is a general purpose scheduler and <ide> orchestrator. The service and task abstractions themselves are unaware of the <ide> containers they implement. Hypothetically, you could implement other types of <ide> tasks ...
1
PHP
PHP
fix cluster connecting
2bcb405ddc9ed69355513de5f2396dc658fd004d
<ide><path>src/Illuminate/Redis/RedisManager.php <ide> public function resolve($name = null) <ide> protected function resolveCluster($name) <ide> { <ide> return $this->connector()->connectToCluster( <del> $this->parseConnectionConfiguration($this->config['clusters'][$name]), <add> ...
1
Java
Java
allow late binding servletcontextawareprocessor
e9a2e688cbc6321ed40b2b468501642877080681
<ide><path>spring-web/src/main/java/org/springframework/web/context/support/ServletContextAwareProcessor.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");...
1
Javascript
Javascript
add filter ability to platform test result view
54f03817e0cfcbc508d0451ab93dc8a3f99638af
<ide><path>packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestResultView.js <ide> import type { <ide> } from './RNTesterPlatformTestTypes'; <ide> <ide> import * as React from 'react'; <del>import {useMemo} from 'react'; <del>import {Button, View, Text, StyleSheet, FlatList} from 'react-native...
1
Text
Text
fix example of explicit format url (for real)
2484dbf4e15e2156079b4bcd447b17258649e67f
<ide><path>docs/tutorial/2-requests-and-responses.md <ide> See the [browsable api][browsable-api] topic for more information about the brow <ide> <ide> In [tutorial part 3][tut-3], we'll start using class based views, and see how generic views reduce the amount of code we need to write. <ide> <del>[json-url]: http://...
1
Javascript
Javascript
initialize pdfview.url = ''
bb13fb939ee89fecc53d7ab1714ef0f465075238
<ide><path>web/viewer.js <ide> var PDFView = { <ide> isViewerEmbedded: (window.parent !== window), <ide> idleTimeout: null, <ide> currentPosition: null, <add> url: '', <ide> <ide> // called once when the document is loaded <ide> initialize: function pdfViewInitialize() {
1
Go
Go
initialize portmapper in requestport too
584180fce7ad11516a256b8abd4621138337e918
<ide><path>daemon/networkdriver/bridge/driver.go <ide> var ( <ide> bridgeIPv6Addr net.IP <ide> globalIPv6Network *net.IPNet <ide> portMapper *portmapper.PortMapper <add> once sync.Once <ide> <ide> defaultBindingIP = net.ParseIP("0.0.0.0") <ide> currentInterfaces = ifaces{c: make(map[string...
1
PHP
PHP
fix sqlserver reflection of varbinary(max)
7adc0cfc66cd978d9b924e839177bd570dd7cb70
<ide><path>src/Database/Schema/SqlserverSchema.php <ide> protected function _convertColumn($col, $length = null, $precision = null, $scal <ide> } <ide> <ide> if ($col === 'image' || strpos($col, 'binary') !== false) { <add> // -1 is the value for MAX which we treat as a 'long' binary <add> ...
2
PHP
PHP
improve doc blocks
c8f40e4c6a27292c2195654b51f3e2c7631bb83d
<ide><path>src/Database/Dialect/SqlserverDialectTrait.php <ide> use Cake\Database\SqlserverCompiler; <ide> <ide> /** <del> * Contains functions that encapsulates the SQL dialect used by MySQL, <add> * Contains functions that encapsulates the SQL dialect used by SQLServer, <ide> * including query translators and schem...
2
Python
Python
log backend type to stderr
83aaadaa9d69214880d20b1e2bd9715a6c37fbe6
<ide><path>keras/backend/__init__.py <ide> from __future__ import print_function <ide> import os <ide> import json <add>import sys <ide> from .common import epsilon, floatx, set_epsilon, set_floatx <ide> <ide> _keras_base_dir = os.path.expanduser('~') <ide> _BACKEND = _backend <ide> <ide> if _BACKEND == 'theano':...
1
Text
Text
add tests for metric-imperial-converter (infosec)
81479ffd40251584b368d1b87dc089b6b9288955
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/metric-imperial-converter.english.md <ide> tests: <ide> testString: '' <ide> - text: 'I can GET /api/convert with a single parameter containing an accepted number and unit and have it converted. (Hint: Split the input by look...
1
Text
Text
add readme to persona example
1ba6c2248d0a2d7a191c6b3b9a9a92c10c688236
<ide><path>examples/persona/README.md <add>A simple example for integrating [Persona](https://login.persona.org/) into a <add>Flask application. In addition to Flask, it requires the <add>[requests](www.python-requests.org/) library.
1
Go
Go
use subtests for testnetworkinspect
4045c4ceafde1512ea96979ec660a1549db9b986
<ide><path>client/network_inspect_test.go <ide> import ( <ide> "bytes" <ide> "context" <ide> "encoding/json" <del> "fmt" <add> "errors" <ide> "io" <ide> "net/http" <ide> "strings" <ide> import ( <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/api/types/network" <ide> "github.com/dock...
1
PHP
PHP
scheduler improvements
42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a
<ide><path>src/Illuminate/Console/Command.php <ide> class Command extends SymfonyCommand <ide> */ <ide> protected $description; <ide> <add> /** <add> * Indicates whether the command should be shown in the Artisan command list. <add> * <add> * @var bool <add> */ <add> protected $hidden = ...
6
Python
Python
add tests for hypot function
197d9411d78b405fa9fc9de90c29660af833185c
<ide><path>numpy/core/tests/test_umath.py <ide> def test_expm1(self): <ide> assert_almost_equal(ncu.expm1(0.2), ncu.exp(0.2)-1) <ide> assert_almost_equal(ncu.expm1(1e-6), ncu.exp(1e-6)-1) <ide> <add>class TestHypot(TestCase, object): <add> def test_simple(self): <add> assert_almost_equal(ncu....
1
Ruby
Ruby
fix virtualenv symlinks for versioned python
2594e7093ea082daa1add40104e69616a7e1ef15
<ide><path>Library/Homebrew/language/python.rb <ide> def create <ide> next unless f.symlink? <ide> next unless (rp = f.realpath.to_s).start_with? HOMEBREW_CELLAR <ide> <del> new_target = rp.sub %r{#{HOMEBREW_CELLAR}/python/[^/]+}, Formula["python"].opt_prefix <add> version...
1
Text
Text
use code markup/markdown in headers
fc0aa3f2b47c2e913951a5f556b11bc7514f8750
<ide><path>doc/api/process.md <ide> const process = require('process'); <ide> <ide> The `process` object is an instance of [`EventEmitter`][]. <ide> <del>### Event: 'beforeExit' <add>### Event: `'beforeExit'` <ide> <!-- YAML <ide> added: v0.11.12 <ide> --> <ide> console.log('This message is displayed first.'); <ide> ...
1
Java
Java
remove unused scheduler.parallelism
9d07b367b2e1efd2e2dfe28ec0240595b8d76108
<ide><path>src/main/java/rx/Scheduler.java <ide> public long now() { <ide> } <ide> } <ide> <del> /** <del> * Indicates the parallelism available to this Scheduler. <del> * <p> <del> * This defaults to {@code Runtime.getRuntime().availableProcessors()} but can be overridden for use cases <del...
1
PHP
PHP
move locale method
13063142ac0539362d07f4aca83084b43cbf77b1
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function getProviderRepository() <ide> return new ProviderRepository(new Filesystem, $manifest); <ide> } <ide> <del> /** <del> * Get the current application locale. <del> * <del> * @return string <del> */ <del> public function getLocale() <del> {...
1
Ruby
Ruby
fix deprecation warning about variants and formats
6a4bf486c3ec7f09d517fffba5c23f53e53a39d9
<ide><path>actionview/test/template/testing/fixture_resolver_test.rb <ide> def test_should_match_templates_with_variants <ide> assert_equal 1, templates.size, "expected one template" <ide> assert_equal "this text", templates.first.source <ide> assert_equal "arbitrary/path", templates.first.virtual_pa...
1
Text
Text
add link for revalidate from notfound section
432261a1e15b253b8a56be42cc3698a4d7bdf513
<ide><path>docs/api-reference/data-fetching/get-static-props.md <ide> Learn more about [Incremental Static Regeneration](/docs/basic-features/data-fet <ide> <ide> ### `notFound` <ide> <del>The `notFound` boolean allows the page to return a `404` status and [404 Page](/docs/advanced-features/custom-error-page.md#404-p...
1
Javascript
Javascript
use markdown syntax
8555c0f5d616e8594362cebf5a3b4c0f146afe08
<ide><path>packages/ember-runtime/lib/mixins/enumerable.js <ide> function iter(key, value) { <ide> can use any of these methods on simple arrays. If Array already implements <ide> one of these methods, the mixin will not override them. <ide> <del> h3. Writing Your Own Enumerable <add> ## Writing Your Own Enumer...
1
PHP
PHP
fix error catch to handle older carbon versions
94ad84680a190dc8a213a0a3947f4c3419bd06e2
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> use Illuminate\Support\Collection as BaseCollection; <ide> use Illuminate\Support\Facades\Date; <ide> use Illuminate\Support\Str; <add>use InvalidArgumentException; <ide> use LogicException; <ide> <ide> trait HasAttributes <ide> protected fun...
1
PHP
PHP
update doc blocks and coding standards
a2a4c8ca0eb09e97cbe47614bc495b6046939050
<ide><path>src/View/Input/Checkbox.php <ide> */ <ide> namespace Cake\View\Input; <ide> <del>use Cake\View\StringTemplate; <del> <ide> /** <ide> * Input widget for creating checkbox widgets. <ide> */ <ide> public function __construct($templates) { <ide> /** <ide> * Render a checkbox element. <ide> * <add> * Data s...
2
Javascript
Javascript
update js examples
e3b7148455ade60b594547478d1aff5a8ee1cf4a
<ide><path>examples/js/postprocessing/ClearPass.js <ide> THREE.ClearPass = function ( clearColor, clearAlpha ) { <ide> <ide> this.clearColor = ( clearColor !== undefined ) ? clearColor : 0x000000; <ide> this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0; <add> this.oldClearColor = new THREE.Color(); <id...
3
Go
Go
move names to a more appropriate package
22b246417f52aa6bd0e358e41e2bfb9c0a59c867
<ide><path>daemon/checkpoint.go <ide> import ( <ide> "os" <ide> "path/filepath" <ide> <del> "github.com/docker/docker/api" <ide> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/daemon/names" <ide> ) <ide> <ide> var ( <del> validCheckpointNameChars = api.RestrictedNameChars <del> validCheckpo...
4
Ruby
Ruby
join values using '; ' as per rfc spec
89df021375564fd613de646c53fa90b2d1eb7fb1
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def update_cookies_from_jar <ide> end <ide> <ide> def to_header <del> @cookies.map { |k,v| "#{escape(k)}=#{escape(v)}" }.join ';' <add> @cookies.map { |k,v| "#{escape(k)}=#{escape(v)}" }.join '; ' <ide> end <ide> <id...
1
Python
Python
add dataset read permission to viewer role
fd7d9c4669bb090524fb01bd7152cdb99e55396d
<ide><path>airflow/www/security.py <ide> class AirflowSecurityManager(SecurityManager, LoggingMixin): <ide> (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG_DEPENDENCIES), <ide> (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG_CODE), <ide> (permissions.ACTION_CAN_READ, permissions.RE...
2
Go
Go
remove mountedlayer mount and unmount
8bb4d31b10e4c3abee9ca92535461859bbf25d46
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) restore() error { <ide> defer wg.Done() <ide> rm := c.RestartManager(false) <ide> if c.IsRunning() || c.IsPaused() { <del> // Fix activityCount such that graph mounts can be unmounted later <del> if err := daemon.layerStore.ReinitRWLayer(c.RWLayer);...
8
Ruby
Ruby
use a local instead of an instance variable
4851b1e7a877246d57ca87e9e48b7d962f100015
<ide><path>Library/Homebrew/formula.rb <ide> def verify_download_integrity fn <ide> end <ide> <ide> def run_test <del> @oldhome = ENV["HOME"] <add> old_home = ENV["HOME"] <ide> self.build = Tab.for_formula(self) <ide> mktemp do <ide> @testpath = Pathname.pwd <ide> def run_test <ide> end <id...
1
PHP
PHP
remove unused imports
53564916cd38cd7b67d4f966b17ba2f96f929eda
<ide><path>src/Illuminate/Broadcasting/BroadcastEvent.php <ide> use ReflectionProperty; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Bus\Queueable; <del>use Illuminate\Contracts\Queue\Job; <ide> use Illuminate\Contracts\Queue\ShouldQueue; <ide> use Illuminate\Contracts\Support\Arrayable; <ide> use Illuminate\...
7
Text
Text
remove unnecessary inline code tag in challenge
35a8f555151b03b2cb0600d590ebbfee38965068
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-greater-than-operator.md <ide> dashedName: comparison-with-the-greater-than-operator <ide> <ide> The greater than operator (`>`) compares the values of two numbers. If the number to the left is gr...
5
PHP
PHP
add withoutexceptionhandling method for testing
a171f44594c248afe066fee74fad640765b12da0
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php <add><?php <add> <add>namespace Illuminate\Foundation\Testing\Concerns; <add> <add>use Exception; <add>use Illuminate\Contracts\Debug\ExceptionHandler; <add>use Symfony\Component\Console\Application as ConsoleApplication; <add> <ad...
2
Javascript
Javascript
remove final traces of examples from the tree
1293cc88cd3d2e72c55fa8b8d268fab246e79fed
<ide><path>angularFiles.js <ide> angularFiles = { <ide> '@angularSrcModules', <ide> '@angularScenario', <ide> '@angularTest', <del> 'example/personalLog/*.js', <del> 'example/personalLog/test/*.js' <ide> ], <ide> <ide> 'karmaExclude': [ <ide> angularFiles = { <ide> '@angularSrcModules', <ide>...
1
Python
Python
avoid 500 on dag redirect
c550bbf7ffe36cafae75f01f1a6f60b169ceb111
<ide><path>airflow/www/views.py <ide> def success(self): <ide> @action_logging <ide> def dag(self, dag_id): <ide> """Redirect to default DAG view.""" <del> return redirect(url_for('Airflow.grid', dag_id=dag_id, **request.args)) <add> kwargs = {**request.args, "dag_id": dag_id} <add> ...
1
Python
Python
upgrade version to 3.2.0
78053c7e6c258f9ff64e418ef5cfde932ecdeabb
<ide><path>rest_framework/__init__.py <ide> """ <ide> <ide> __title__ = 'Django REST framework' <del>__version__ = '3.1.3' <add>__version__ = '3.2.0' <ide> __author__ = 'Tom Christie' <ide> __license__ = 'BSD 2-Clause' <ide> __copyright__ = 'Copyright 2011-2015 Tom Christie'
1
Python
Python
use default_algorithm constant
5e1522c98df9d4c199a88f26aed636ad48bb75d8
<ide><path>libcloud/loadbalancer/drivers/gogrid.py <ide> def ex_create_balancer_nowait(self, name, members, protocol='http', port=80, <ide> return self._to_balancers(resp.object)[0] <ide> <ide> def create_balancer(self, name, members, protocol='http', port=80, <del> algorithm=Algorit...
1
Ruby
Ruby
install bundler gems
1182440f80ff665566e965e90d195195ebba6e8a
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.match?(url) <ide> <ide> sig { params(content: String).returns(T.nilable(Item)) } <ide> def self.item_from_content(content) <add> Homebrew.install_bundler_gems! <ide> require "nokogiri" <ide> <ide> xml...
1
Ruby
Ruby
simplify accessibility access disable warnings
3c31e29d5c46720ed51b7a75a863e2ff4577439f
<ide><path>Library/Homebrew/cask/lib/hbc/installer.rb <ide> def enable_accessibility_access <ide> <ide> def disable_accessibility_access <ide> return unless @cask.accessibility_access <del> if MacOS.version <= :mountain_lion <del> opoo <<-EOS.undent <del> Accessibility access was enabled for #{@ca...
1
Python
Python
remove main clause
c7db85e5baf133a55adbd668dd9d963a4e73c6a8
<ide><path>numpy/core/getlimits.py <ide> def __repr__(self): <ide> return "%s(min=%s, max=%s, dtype=%s)" % (self.__class__.__name__, <ide> self.min, self.max, self.dtype) <ide> <del>if __name__ == '__main__': <del> f = finfo(ntypes.single) <del> print('single epsilon:'...
1
Javascript
Javascript
add type checks to once
d1b4dcd6acb1d1c66e423f7992dc6eec8a35c544
<ide><path>lib/events.js <ide> EventEmitter.prototype.addListener = function(type, listener) { <ide> EventEmitter.prototype.on = EventEmitter.prototype.addListener; <ide> <ide> EventEmitter.prototype.once = function(type, listener) { <del> if ('function' !== typeof listener) { <del> throw TypeError('.once only tak...
1
Text
Text
fix typo in documentation
41def26c1b762b89d3dd0cb3339435f1144320ce
<ide><path>docs/reference/logging/index.md <ide> a `syslog-tag` option <ide> <ide> ## Specify journald options <ide> <del>The `journald` logging driver sotres the container id in the journal's `CONTAINER_ID` field. For detailed information on <add>The `journald` logging driver stores the container id in the journal's...
1
Ruby
Ruby
add some os cop comments/exceptions
ebc4cce4569acc946a5078e672021c05bcad6e4c
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> block_node = offending_node.parent <ide> next if block_node.type != :block <ide> <add> # TODO: could fix corrector to handle this but punting for...
1
PHP
PHP
create schema with constraints disabled
13d287aa29875d73dc806eb9ba828b391950cbe6
<ide><path>src/TestSuite/Schema/SchemaGenerator.php <ide> public function reload(?array $tables = null): void <ide> throw new RuntimeException("The `{$this->connection}` connection is not a Cake\Database\Connection"); <ide> } <ide> <del> foreach ($config as $metadata) { <del> $tab...
1
Text
Text
add v3.23.0-beta.5 to changelog
70fffeaa6320cc84455a1367fd1c84f89d30151b
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.23.0-beta.5 (November 9, 2020) <add> <add>- [#19249](https://github.com/emberjs/ember.js/pull/19249) [BUGFIX] Fix bugs in query params with intermediate transitions <add> <ide> ### v3.23.0-beta.4 (November 2, 2020) <ide> <ide> - [#19142](https://github...
1
Javascript
Javascript
add more info about transform function
49128cc1005f0bea6074107c1098b6866eed74f5
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * - if XSRF prefix is detected, strip it (see Security Considerations section below) <ide> * - if json response is detected, deserialize it using a JSON parser <ide> * <del> * To override these transformation locally, specify transfor...
1
Ruby
Ruby
convert translation key to string as necessary
2c555c8d60e2f33a71fbfb416a45beafc6f2b54f
<ide><path>actionview/lib/action_view/helpers/translation_helper.rb <ide> module TranslationHelper <ide> # <ide> def translate(key, **options) <ide> return key.map { |k| translate(k, **options) } if key.is_a?(Array) <add> key = key.to_s unless key.is_a?(Symbol) <ide> <ide> alternativ...
2
Java
Java
add exception message in singlefromcallable
0b038babbabc6ec8a7e2c654ab6832680fa49420
<ide><path>src/main/java/io/reactivex/internal/operators/single/SingleFromCallable.java <ide> protected void subscribeActual(SingleObserver<? super T> s) { <ide> if (v != null) { <ide> s.onSuccess(v); <ide> } else { <del> s.onError(new NullPointerException()); <add...
1
Javascript
Javascript
fix bad merge
3ec4af941390800bd317579bd0ae34d3fc309569
<ide><path>test/ng/parseSpec.js <ide> describe('parser', function() { <ide> })); <ide> <ide> <add> it('should NOT allow access to the Window or DOM returned from a function', inject(function($window, $document) { <add> scope.getWin = valueFn($window); <add> scope.getDoc = valu...
1
Go
Go
use monotonic clock for reaping networkdb entries
0a2537eea383472768fd66b91f190e0fb6c1cb97
<ide><path>libnetwork/networkdb/cluster.go <ide> func (nDB *NetworkDB) reconnectNode() { <ide> nDB.bulkSync([]string{node.Name}, true) <ide> } <ide> <add>// For timing the entry deletion in the repaer APIs that doesn't use monotonic clock <add>// source (time.Now, Sub etc.) should be avoided. Hence we use reapTime in...
3
Ruby
Ruby
add brew pull for easy integration of user patches
7933bd4e657ee82207914683d0e689c48465d83a
<ide><path>Library/Contributions/examples/brew-pull.rb <add># Gets a patch from a GitHub commit or pull request and applies it to Homebrew. <add># Optionally, installs it too. <add> <add>require 'utils.rb' <add> <add>if ARGV.empty? <add> puts 'This command requires at least one URL argument' <add> exit 1 <add>end <ad...
1
Text
Text
use const instead of var (es6 best practices)
a0c32cb629f88deb50fca5f8a8650ab133172e55
<ide><path>docs/docs/05-reusable-components.it-IT.md <ide> ReactDOM.render(<HelloMessage name="Sebastian" />, mountNode); <ide> Oppure usando la nuova sintassi freccia di ES6: <ide> <ide> ```javascript <del>var HelloMessage = (props) => <div>Ciao {props.name}</div>; <add>const HelloMessage = (props) => <div>Ciao {prop...
4
Text
Text
add slack community to support options
5c57cea8049bad5939807e6b849ee303ec8e1526
<ide><path>README.md <ide> search these unofficial resources: <ide> * [Questions tagged 'node.js' on StackOverflow][] <ide> * [#node.js channel on chat.freenode.net][]. See <http://nodeirc.info/> for more <ide> information. <add>* [Node.js Slack Community](https://node-js.slack.com/): Visit <add> [nodeslackers.com](...
1
PHP
PHP
add tapeach() method to lazycollection
c02cd1e04f73b76b5e059a7b5b18fa5b8ba679b7
<ide><path>src/Illuminate/Support/LazyCollection.php <ide> public function take($limit) <ide> return new static(function () use ($original, $limit) { <ide> $iterator = $original->getIterator(); <ide> <del> for (; $iterator->valid() && $limit--; $iterator->next()) { <add> while...
2
Ruby
Ruby
test actiontext on rails 6.0
67a9a86b1d69367a3270240dad43bc9825ca80a5
<ide><path>actionmailbox/test/dummy/db/migrate/20180212164506_create_active_storage_tables.active_storage.rb <ide> def change <ide> t.datetime :created_at, null: false <ide> <ide> t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true <add> ...
6
Ruby
Ruby
improve ppc arch detection
ab633864d5db641d27fdce49c7c66074b931b19d
<ide><path>Library/Homebrew/hardware.rb <ide> class Hardware <ide> module CPU extend self <add> INTEL_32BIT_ARCHS = [:i386].freeze <add> INTEL_64BIT_ARCHS = [:x86_64].freeze <add> PPC_32BIT_ARCHS = [:ppc, :ppc7400, :ppc7450, :ppc970].freeze <add> PPC_64BIT_ARCHS = [:ppc64].freeze <add> <ide> def t...
2
Text
Text
add gitter.im badge
1ed365f68a0b05d23c86a71e4a267f3714c38190
<ide><path>README.md <ide> <ide> [![NPM version](https://badge.fury.io/js/webpack.png)](http://badge.fury.io/js/webpack) <ide> <add>[![Gitter chat](https://badges.gitter.im/webpack/webpack.png)](https://gitter.im/webpack/webpack) <add> <ide> [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=...
1
Python
Python
add macos tf version
024cd19bb7c188a0e4aa681d248ad9f47587ddab
<ide><path>src/transformers/file_utils.py <ide> "tf-nightly-gpu", <ide> "intel-tensorflow", <ide> "tensorflow-rocm", <add> "tensorflow-macos", <ide> ) <ide> _tf_version = None <ide> # For the metadata, we have to look for both tensorflow and tensorf...
1
Text
Text
start unorded lists at start of line
27a57d3a3449e4d6b9c07ef3bb56c4b0b43c133d
<ide><path>doc/api/addons.md <ide> for more information on N-API. <ide> When not using N-API, implementing Addons is complicated, <ide> involving knowledge of several components and APIs: <ide> <del> - V8: the C++ library Node.js currently uses to provide the <del> JavaScript implementation. V8 provides the mechanis...
13
Text
Text
remove cloudbees and pull request logo
2845e19596cbe6813c898608fd6152364e66ef3d
<ide><path>README.md <ide> Learn more about RxJava on the <a href="https://github.com/ReactiveX/RxJava/wiki <ide> <ide> ## Master Build Status <ide> <del>CloudBees: <a href='https://netflixoss.ci.cloudbees.com/job/RxJava-master/'><img src='https://netflixoss.ci.cloudbees.com/job/RxJava-master/badge/icon'></a> <del> <...
1
Python
Python
fix wrong explanation
d5c0e4b0855291fb507eb79e969c6a7c9b89856a
<ide><path>im2txt/im2txt/ops/inputs.py <ide> def batch_with_dynamic_pad(images_and_captions, <ide> Example: <ide> Actual captions in the batch ('-' denotes padded character): <ide> [ <del> [ 1 2 5 4 5 ], <add> [ 1 2 3 4 5 ], <ide> [ 1 2 3 4 - ], <ide> [ 1 2 3 - - ], <ide> ...
1
Javascript
Javascript
improve error logging when rebuild fails
d23e622426662178b6df2488bca89c53e4b0d5c1
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/index.js <ide> class DependencyGraph { <ide> // we are in an error state and we should decide to do a full rebuild. <ide> this._loading = this._loading.finally(() => { <ide> if (this._hasteMapError) { <add> console.warn( <add...
1
Ruby
Ruby
add safety margin to output truncation size
1f8b6cb57677d96228627baf28ce18a394df4c1d
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> <ide> module Homebrew <ide> BYTES_IN_1_MEGABYTE = 1024*1024 <add> MAX_STEP_OUTPUT_SIZE = BYTES_IN_1_MEGABYTE - (200*1024) # margin of safety <add> <ide> HOMEBREW_TAP_REGEX = %r{^([\w-]+)/homebrew-([\w-]+)$} <ide> <ide> def ruby_has_encoding? <ide> def sanitize_...
1
Javascript
Javascript
allow suspending outside a suspense boundary
796fff5483925f90db5fe705af6d8b06fce661a5
<ide><path>packages/react-reconciler/src/ReactFiberThrow.new.js <ide> import { <ide> } from './ReactFiberSuspenseContext.new'; <ide> import { <ide> renderDidError, <add> renderDidSuspendDelayIfPossible, <ide> onUncaughtError, <ide> markLegacyErrorBoundaryAsFailed, <ide> isAlreadyFailedLegacyErrorBoundary, <ide...
7
Ruby
Ruby
drop lighttpd support from script/server
40c6a8b9701f4e137799cecfc72c64aca7b4004b
<ide><path>railties/lib/commands/server.rb <ide> end <ide> <ide> server = case ARGV.first <del> when "lighttpd", "mongrel", "webrick", "thin" <add> when "mongrel", "webrick", "thin" <ide> ARGV.shift <ide> else <ide> if defined?(Mongrel) <ide> "mongrel" <ide> elsif defined?(Thin) <ide> "thin...
2
Python
Python
fix regression of `regexfield`.
4655501d51080fbc7733a81fab1a227229a33e3f
<ide><path>rest_framework/fields.py <ide> class SkipField(Exception): <ide> pass <ide> <ide> <add>REGEX_TYPE = type(re.compile('')) <add> <ide> NOT_READ_ONLY_WRITE_ONLY = 'May not set both `read_only` and `write_only`' <ide> NOT_READ_ONLY_REQUIRED = 'May not set both `read_only` and `required`' <ide> NOT_REQUIRED...
3
Javascript
Javascript
avoid use of arguments
e36d0d3974d563a3d40b56e9f11c467d51820c89
<ide><path>lib/dns.js <ide> function errnoException(err, syscall, hostname) { <ide> // callback.immediately = true; <ide> // } <ide> function makeAsync(callback) { <del> return function asyncCallback() { <add> return function asyncCallback(...args) { <ide> if (asyncCallback.immediately) { <ide> // The API...
1
PHP
PHP
remove unnecessary comments
71a86f35e6d938b8311375cc380279a9e2e93c1c
<ide><path>src/Command/RoutesCommand.php <ide> public function execute(Arguments $args, ConsoleIo $io): ?int <ide> <ide> $output[] = $item; <ide> <del> // Count route templates <ide> if (!isset($duplicateRoutesCounter[$route->template])) { <ide> $duplicateRoutesCount...
1
Text
Text
add react 15 post
75f492507421f243f49ef9cfdcab5c557022eefe
<ide><path>docs/_posts/2016-04-07-react-v15.md <add>--- <add>title: "React v15.0" <add>author: gaearon <add>--- <add> <add>We would like to thank the React community for reporting issues and regressions in the release candidates on our [issue tracker](https://github.com/facebook/react/issues/). Over the last few weeks ...
1
Ruby
Ruby
fix race in connectionpool#checkout
21eb18a70c7a1f08e7e2dc1c5bc17d67e1d14c46
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def clear_stale_cached_connections! <ide> # Check-out a database connection from the pool. <ide> def checkout <ide> # Checkout an available connection <del> conn = @connection_mutex.synchronize do ...
1
Javascript
Javascript
draw active points last
547aa515440def05a3c2ab998919faead7d102f5
<ide><path>src/controllers/controller.line.js <ide> export default DatasetController.extend({ <ide> const meta = me._cachedMeta; <ide> const points = meta.data || []; <ide> const area = chart.chartArea; <del> const ilen = points.length; <del> let i = 0; <add> const active = []; <add> let ilen = points.length;...
2
Ruby
Ruby
move used_options and unused_options to argv
ebbc3438a1e6f9014d049c98c54182a31212b1d8
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def options_only <ide> select {|arg| arg[0..0] == '-'} <ide> end <ide> <add> def used_options f <add> f.build.as_flags & options_only <add> end <add> <add> def unused_options f <add> f.build.as_flags - options_only <add> end <add> <ide> def formulae <i...
2
Python
Python
add tests to trainer
573bdb0a5d2897ff6c7520ebb38693c7acfbf17e
<ide><path>src/transformers/data/data_collator.py <ide> def default_data_collator(features: List[InputDataClass]) -> Dict[str, torch.Ten <ide> if isinstance(v, torch.Tensor): <ide> batch[k] = torch.stack([f[k] for f in features]) <ide> else: <del> batch[k] = torch....
6
Go
Go
add cache-from support to buildkit
46bd229b5168e3d00e524e24c13545c718e3144f
<ide><path>builder/builder-next/builder.go <ide> import ( <ide> "github.com/docker/docker/pkg/jsonmessage" <ide> controlapi "github.com/moby/buildkit/api/services/control" <ide> "github.com/moby/buildkit/cache" <add> "github.com/moby/buildkit/cache/cacheimport" <ide> "github.com/moby/buildkit/cache/metadata" <ide> ...
3
PHP
PHP
consolidate doc block headings
5e996cd4b90fd31dd71c12a3be04e4c851b8c6ae
<ide><path>src/Collection/CollectionInterface.php <ide> public function each(callable $c); <ide> * in the current iteration, the key of the element and this collection as <ide> * arguments, in that order. <ide> * <del> * ## Example: <add> * ### Example: <ide> * <ide> * Filtering odd numbers in an array, at the end...
32
PHP
PHP
add withbearertoken method
9897e3f77b33ee0546509ba73e48aeaa6f5a6c95
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> public function flushHeaders() <ide> return $this; <ide> } <ide> <add> /** <add> * Add a bearer token to the request headers. <add> * <add> * @param string $value <add> * @return $this <add> */ <add> ...
1
Text
Text
add documentation for atom.io star api
728aacd3fbd1c1af6fff462483ad029f2eef6b92
<ide><path>docs/apm-rest-api.md <ide> you'll need to increment the version when republishing. <ide> <ide> Returns 204 No Content <ide> <add> <add>### Stars <add> <add>#### GET /api/users/:login/stars <add> <add>List a user's starred packages. <add> <add>Return value is similar to **GET /api/packages** <add> <add>####...
1
Javascript
Javascript
add test for uid/gid setting in spawn
d0151695a7a5504115dd3feb4ffac7557e9e31b2
<ide><path>test/disabled/test-child-process-uid-gid.js <del>'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <del>var spawn = require('child_process').spawn; <del>var fs = require('fs'); <del> <del>var myUid = process.getuid(); <del>var myGid = process.getgid(); <del> <del>if (...
2
Ruby
Ruby
handle empty log files
a70c44993f52f731f84fde3471ff805249851a97
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def self.run test, command, puts_output_on_success = false <ide> else <ide> output = `#{command}` <ide> end <del> output = IO.read(step.log_file_path) <add> output = IO.read(step.log_file_path) rescue nil <ide> <ide> success = $?.succe...
1
Python
Python
add sum of the longest sub array
ac5d2354ba6f4a385b32960a3179707aaff69639
<ide><path>dynamic_programming/longest_sub_array.py <add>''' <add>Auther : Yvonne <add> <add>This is a pure Python implementation of Dynamic Programming solution to the edit distance problem. <add> <add>The problem is : <add>Given an array, to find the longest and continuous sub array and get the max sum of the sub a...
1
Go
Go
fix build test by adding --no-cache
c49cc1f2fbd3d0256455750c885eadcaa3d17937
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildResourceConstraintsAreUsed(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> <del> cmd := exec.Command(dockerBinary, "build", "--rm=false", "--memory=64m", "--memory-swap=-1", "--cpuset-cpus=0", "--cpu-shares=100", "-t", name, ".") <add> cmd := ...
1
Python
Python
fix usage of deprecated freqs.txt in init-model
02c5c114d02d5ad21dcd94a7b603c43a1dc415d0
<ide><path>spacy/cli/init_model.py <ide> def open_file(loc): <ide> def read_attrs_from_deprecated(freqs_loc, clusters_loc): <ide> probs, oov_prob = read_freqs(freqs_loc) if freqs_loc is not None else ({}, -20) <ide> clusters = read_clusters(clusters_loc) if clusters_loc else {} <del> lex_attrs = {} <add> ...
1
Javascript
Javascript
fix rightpane ishidden shadow bound
8498abc95a08b73d49a04ccf26a905eb30b02be3
<ide><path>common/app/Panes/redux/index.js <ide> function checkForTypeKeys(panesMap) { <ide> return panesMap; <ide> } <ide> <del>const getPaneName = (panes, index) => (panes[index] || {}).name || ''; <add>const getPane = (panesByName, panes, index) => _.get( <add> panesByName, <add> getPaneName(panes, index), <add...
1
Python
Python
catch deprecation warnings in tets
312ca0ddb5dd88c69c6c86455e2c5bceae9d65f9
<ide><path>celery/tests/test_app/test_loaders.py <ide> <ide> import os <ide> import sys <add>import warnings <ide> <ide> from celery import task <ide> from celery import loaders <ide> from celery.app import app_or_default <del>from celery.exceptions import ImproperlyConfigured <add>from celery.exceptions import CPend...
1
Python
Python
remove some weird comments from iotools
3c782b9156a9d2d7159accc6bb9d8e6f4d0108b5
<ide><path>numpy/lib/_iotools.py <ide> def autostrip(self, method): <ide> <ide> """ <ide> return lambda input: [_.strip() for _ in method(input)] <del> # <ide> <ide> def __init__(self, delimiter=None, comments='#', autostrip=True, <ide> encoding=None): <ide> def __init__(self, ...
1
Javascript
Javascript
show cheater message directly on user page
e71f33cfc05473643818e2b646b954bd96543482
<ide><path>server/boot/user.js <ide> module.exports = function(app) { <ide> return data; <ide> }, {}); <ide> <add> if (userPortfolio.isCheater) { <add> req.flash('errors', { <add> msg: dedent` <add> Upon review, this account has been flagged for academic <a...
1
Python
Python
fix example for __call__. see
b1ffafbf4b93fb5c01e0216ee018e64596d7f33b
<ide><path>numpy/_pytesttester.py <ide> def __call__(self, label='fast', verbose=1, extra_argv=None, <ide> <ide> Notes <ide> ----- <del> Each NumPy module exposes `test` in its namespace to run all tests for it. <del> For example, to run all tests for numpy.lib: <add> Each NumPy mo...
1
Ruby
Ruby
pass path into the formula constructor
abbed076f091e6420734bda094dc13527f4e1620
<ide><path>Library/Homebrew/formulary.rb <ide> def initialize name <ide> end <ide> <ide> def get_formula <del> return klass.new(name) <add> klass.new(name, path) <ide> end <ide> end <ide>
1
Text
Text
add error codes update to release process
8835955218134df61773ae7130291c03843c1c55
<ide><path>scripts/release-manager/Readme.md <ide> You can fix them in a separate commit. <ide> <ide> **Tip:** tests might also be failing if dependency versions are incorrect. You might want to run `yarn` first since sometimes `package.json` on master is different from the stable branches. <ide> <add>### Update the ...
1
PHP
PHP
remove duplicate useless empty lines.
e5697d5f0c244b443a7622328a6d3d99b93dbe72
<ide><path>tests/Validation/ValidationExistsRuleTest.php <ide> public function testItCorrectlyFormatsAStringVersionOfTheRule() <ide> $rule->where('foo', 'bar'); <ide> $this->assertEquals('exists:table,NULL,foo,bar', (string) $rule); <ide> <del> <ide> $rule = new Illuminate\Validation\Rules\Exis...
3
Javascript
Javascript
use canvas measuretext to detect font loading
9d2806ec87614680dc3534f125ac58da7fabb940
<ide><path>fonts.js <ide> if (!isWorker) { <ide> })(); <ide> } <ide> <add>/** <add> * The FontLoader binds a fontObj to the DOM and checks if it is loaded. <add> * At the point of writing (11/9/14) there is no DOM event to detect loading <add> * of fonts. Therefore, we measure the font using a canvas before the <a...
1
Javascript
Javascript
update example to es6
86684a0a294a5970f8b01824c8f7fe5226556e5c
<ide><path>Libraries/AppState/AppState.js <ide> const invariant = require('fbjs/lib/invariant'); <ide> * while `AppState` retrieves it over the bridge. <ide> * <ide> * ``` <del> * getInitialState: function() { <del> * return { <del> * currentAppState: AppState.currentState, <del> * }; <del> * }, <del> * comp...
1
Javascript
Javascript
add test for coercion of mixed range
205be78ed3f9c7ff5889bc6b4a5431ab55883999
<ide><path>test/scale/linear-test.js <ide> suite.addBatch({ <ide> assert.inDelta(x.invert(new Date(1990, 6, 2, 13)), .5, 1e-6); <ide> var x = d3.scale.linear().range(["#000", "#fff"]); <ide> assert.isNaN(x.invert("#999")); <add> var x = d3.scale.linear().range([0, "#fff"]); <add> a...
1
PHP
PHP
support delete with limit on sqlsrv
f16d3256f93be71935ed86951e58f90b83912feb
<ide><path>src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php <ide> <ide> use Illuminate\Database\Query\Builder; <ide> use Illuminate\Support\Arr; <add>use Illuminate\Support\Str; <ide> <ide> class SqlServerGrammar extends Grammar <ide> { <ide> protected function compileRowConstraint($query) <ide> re...
2
Go
Go
fix a bug in encoding of multi-value maps
99dda11d4525c5153a10c4c95c5f46ca3512fc69
<ide><path>pkg/beam/data/data.go <ide> func decodeString(msg string) (string, int, error) { <ide> length = int(l) <ide> } <ide> if len(parts[1]) < length + 1 { <del> return "", 0, fmt.Errorf("message is less than %d bytes", length) <add> return "", 0, fmt.Errorf("message '%s' is %d bytes, expected at least %d", p...
2
Text
Text
fix typo of variable name
50f7f405a4cb26acd703d581d0a8c92459473af9
<ide><path>research/object_detection/g3doc/using_your_own_dataset.md <ide> def create_cat_tf_example(encoded_cat_image_data): <ide> 'image/width': dataset_util.int64_feature(width), <ide> 'image/filename': dataset_util.bytes_feature(filename), <ide> 'image/source_id': dataset_util.bytes_feature(filena...
1