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
Python
Python
resolve some merge errors
7dbc5f2a540216222b25612c7f09c419aab92ee1
<ide><path>libcloud/test/common/test_osc.py <ide> from libcloud.compute.providers import get_driver <ide> <ide> <del>class EC2MockDriver(object): <del> region_name = 'eu-west-2' <del> service_name = 'api' <del> <del> <ide> class TestApiOutscale(unittest.TestCase): <ide> cls = get_driver(Provider.OUTSCALE) <...
1
Javascript
Javascript
fix failing test
7357a1f1d1513cda1326ff60a4d0dc629907d154
<ide><path>packages/ember-runtime/tests/core/is_empty_test.js <del>require('ember-metal/core'); <ide> module("Ember.isEmpty"); <ide> <ide> test("Ember.isEmpty", function() {
1
Javascript
Javascript
move architecture indicator to internal only
e92235ddf2461d6f5fd799564125e9adca16484a
<ide><path>Libraries/ReactNative/AppContainer.js <ide> type Context = { <ide> <ide> type Props = $ReadOnly<{| <ide> children?: React.Node, <add> fabric?: boolean, <ide> rootTag: number, <add> showArchitectureIndicator?: boolean, <ide> WrapperComponent?: ?React.ComponentType<any>, <ide> |}>; <ide> <ide> class ...
3
Javascript
Javascript
add entry on examples files
7386f92ca436be2be5b25044dc4b265af632fe2a
<ide><path>examples/files.js <ide> var files = { <ide> "webxr_vr_handinput", <ide> "webxr_vr_handinput_cubes", <ide> "webxr_vr_handinput_profiles", <add> "webxr_vr_haptics", <ide> "webxr_vr_lorenzattractor", <ide> "webxr_vr_panorama", <ide> "webxr_vr_panorama_depth",
1
PHP
PHP
add plugins via application class methods
a09caafeeb5c54fc6eee24f29c917a6eae01b2c8
<ide><path>src/Shell/Task/LoadTask.php <ide> public function main($plugin = null) <ide> return false; <ide> } <ide> <del> return $this->_modifyBootstrap( <del> $plugin, <del> $this->params['bootstrap'], <del> $this->params['routes'], <del> $this->p...
2
Javascript
Javascript
add parseresourcewithoutfragment to identifier.js
93ad32423f7ee78134e8bc03113424c3d7656033
<ide><path>lib/NormalModuleFactory.js <ide> const LazySet = require("./util/LazySet"); <ide> const { getScheme } = require("./util/URLAbsoluteSpecifier"); <ide> const { cachedCleverMerge, cachedSetProperty } = require("./util/cleverMerge"); <ide> const { join } = require("./util/fs"); <del>const { parseResource } = req...
3
Mixed
Javascript
add util.inspect compact option
c2203cb4dd240a6644177f04d0b40f40090b4c33
<ide><path>doc/api/util.md <ide> stream.write('With ES6'); <ide> <!-- YAML <ide> added: v0.3.0 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/REPLACEME <add> description: The `compact` option is supported now. <ide> - version: v6.6.0 <ide> pr-url: https://github...
3
Go
Go
fix annoying bad log
69949df2420afcf0677d8ecb2ecc93a08e716619
<ide><path>daemon/execdriver/windows/namedpipes.go <ide> package windows <ide> <ide> import ( <add> "fmt" <ide> "io" <ide> <ide> "github.com/Sirupsen/logrus" <ide> func startStdinCopy(dst io.WriteCloser, src io.Reader) { <ide> go func() { <ide> defer dst.Close() <ide> bytes, err := io.Copy(dst, src) <del> log...
1
Ruby
Ruby
handle single usage flag case
7673c40f2502a64c1f28c9e0f4ec13fa9d27c5dd
<ide><path>Library/brew.rb <ide> def require? path <ide> <ide> # Usage instructions should be displayed if and only if one of: <ide> # - a help flag is passed AND an internal command is matched <add> # - a help flag is passed AND there is no command specified <ide> # - no arguments are passed <ide> # <ide> ...
1
Ruby
Ruby
add todo to canonical_name
3654822f77d05f692f4beffe6a77d7452ec5100b
<ide><path>Library/Homebrew/formula.rb <ide> def self.aliases <ide> Dir["#{HOMEBREW_REPOSITORY}/Library/Aliases/*"].map{ |f| File.basename f }.sort <ide> end <ide> <add> # TODO - document what this returns and why <ide> def self.canonical_name name <ide> # if name includes a '/', it may be a tap reference...
1
Javascript
Javascript
fix bugs with the new hashing implementation
7abbe4d73e76d43bcd05b7a5e591969367c67b8d
<ide><path>lib/util/hash/BatchedHash.js <ide> class BatchedHash extends Hash { <ide> this.string = undefined; <ide> } <ide> if (typeof data === "string") { <del> if (data.length < MAX_SHORT_STRING) { <add> if ( <add> data.length < MAX_SHORT_STRING && <add> // base64 encoding is not valid since it may c...
3
Javascript
Javascript
add utfsequence module for common unicode usage
54870e0c6ca8611fed775e5ba12a0d6d9b1cdbd7
<ide><path>Libraries/UTFSequence.js <add>/** <add> * Copyright (c) 2016-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional grant <add> * of patent rights ...
1
Python
Python
fix some typos in the docstrings
549af6229039e7fed7bcb2079737e45c27af998e
<ide><path>flask/app.py <ide> def __init__(self, import_name, static_path=None): <ide> #: A dictionary of all view functions registered. The keys will <ide> #: be function names which are also used to generate URLs and <ide> #: the values are the function objects themselves. <del> #: to ...
4
Ruby
Ruby
add tests for content_for() for read, closes #475
86a0f7f73594e5ba56b78b74c16cd6efa7e6cfa9
<ide><path>actionpack/lib/action_view/helpers/capture_helper.rb <ide> def capture(*args) <ide> # for elements that will be fragment cached. <ide> def content_for(name, content = nil, &block) <ide> content = capture(&block) if block_given? <del> result = @view_flow.append(name, content) if con...
2
Python
Python
add doctests to other/word_patterns.py
bfac867e27328eeedf28b3cd4d8f8195d15e44a4
<ide><path>other/word_patterns.py <del>import pprint, time <del> <del> <del>def getWordPattern(word): <add>def get_word_pattern(word: str) -> str: <add> """ <add> >>> get_word_pattern("pattern") <add> '0.1.2.2.3.4.5' <add> >>> get_word_pattern("word pattern") <add> '0.1.2.3.4.5.6.7.7.8.2.9' <add> >>> ...
1
Text
Text
fix typo in i18n guide [ci skip]
36176c51d363e0640c1f9820308c69602c0bee64
<ide><path>guides/source/i18n.md <ide> If your translations are stored in YAML files, certain keys must be escaped. The <ide> Examples: <ide> <ide> ```erb <del># confing/locales/en.yml <add># config/locales/en.yml <ide> en: <ide> success: <ide> 'true': 'True!'
1
Javascript
Javascript
convert var to const/let in src files
6473f52c67a87f24c673bed551655bbecc7776ff
<ide><path>src/babel.js <ide> 'use strict'; <ide> <del>var crypto = require('crypto'); <del>var path = require('path'); <del>var defaultOptions = require('../static/babelrc.json'); <add>const crypto = require('crypto'); <add>const path = require('path'); <add>const defaultOptions = require('../static/babelrc.json'); <...
16
Text
Text
remove ebpf from supported tooling list
170b4849b0c053baeddea44f6c5de08912f13fa4
<ide><path>doc/contributing/diagnostic-tooling-support-tiers.md <ide> The tools are currently assigned to Tiers as follows: <ide> | Debugger | [Command line Debug Client][] | ? | Yes | 1 | <ide> | Tracing | [trace\_events (API)][trace_events (API)...
1
Javascript
Javascript
use invalid host according to rfc2606
467385a49b659b704973b8195328775b620ae6ab
<ide><path>test/internet/test-dns.js <ide> TEST(function test_resolveTxt_failure(done) { <ide> <ide> <ide> TEST(function test_lookup_failure(done) { <del> const req = dns.lookup('does.not.exist', 4, function(err, ip, family) { <add> const req = dns.lookup('this.hostname.is.invalid', 4, (err, ip, family) => { <ide> ...
2
Go
Go
add initial logging to libcontainer
7294392c729de4c5884eb967f192b34a1d8857a7
<ide><path>execdriver/native/driver.go <ide> import ( <ide> "github.com/dotcloud/docker/pkg/libcontainer/nsinit" <ide> "github.com/dotcloud/docker/pkg/system" <ide> "io/ioutil" <add> "log" <ide> "os" <ide> "os/exec" <ide> "path/filepath" <ide> func init() { <ide> execdriver.RegisterInitFunc(DriverName, func(args...
7
PHP
PHP
use hostname in environment detection
355cbe35a58a7ef9c0106cf773617e1b6359d8f1
<ide><path>laravel/request.php <ide> public static function detect_env(array $environments, $uri) <ide> // we will simply return the environment for that URI pattern. <ide> foreach ($patterns as $pattern) <ide> { <del> if (Str::is($pattern, $uri)) <add> if (Str::is($pattern, $uri) or $pattern == gethostn...
1
Javascript
Javascript
use timestamps from qpl by default
ce7dd53dab2b33b0cab640e48a089a8ef81d89ab
<ide><path>Libraries/Utilities/PerformanceLogger.js <ide> const performanceNow = <ide> /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an <ide> * error found when Flow v0.54 was deployed. To see the error delete this <ide> * comment and run Flow. */ <del> global.nativePerformanceNow || re...
1
Python
Python
add distilbert + update run_xnli wrt run_glue
d5478b939d64db58972e46b7218c765c918b76ac
<ide><path>examples/run_xnli.py <ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <del>""" Finetuning multi-lingual models on XNLI (Bert, XLM). <add>""" Finetuning multi-ling...
1
Python
Python
move shape to front to match rest of docs
48b61ec8c4b6e81100d96b3ab854947dd6ab1f64
<ide><path>numpy/lib/function_base.py <ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None): <ide> normed : bool, optional <ide> If False, returns the number of samples in each bin. If True, <ide> returns the bin density ``bin_count / sample_count / bin_volume``. <del> we...
1
Ruby
Ruby
remove dead code in tests
c822d7f94063e7a3ff48692f87f40751f23a1c25
<ide><path>activerecord/test/cases/pooled_connections_test.rb <ide> def test_pooled_connection_remove <ide> ActiveRecord::Base.connection_pool.remove(extra_connection) <ide> assert_equal ActiveRecord::Base.connection, old_connection <ide> end <del> <del> private <del> def add_record(name) <del> Activ...
1
Text
Text
remove distinctstate from undo history recipe
08101b9b37a07f81e5a603e61153e92d6445d9ef
<ide><path>docs/recipes/ImplementingUndoHistory.md <ide> You will need to wrap the reducer you wish to enhance with `undoable` function. <ide> #### `reducers/todos.js` <ide> <ide> ```js <del>import undoable, { distinctState } from 'redux-undo' <add>import undoable from 'redux-undo' <ide> <ide> /* ... */ <ide> <ide> ...
1
Ruby
Ruby
use i18n on actionmailer subjects by default
2aafdc839600240a55cea06c960d0a2a7f63016d
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def create!(method_name, *parameters) #:nodoc: <ide> # Create e-mail parts <ide> create_parts <ide> <del> # If this is a multipart e-mail add the mime_version if it is not <del> # already set. <del> @mime_version ||= "1.0" if !@parts.em...
2
PHP
PHP
add basic test for post
5b8e16f81468793d53296809ddf5b05667170afb
<ide><path>lib/Cake/Network/Http/Client.php <ide> public function get($url, $data = [], $options = []) { <ide> * @return Cake\Network\Http\Response <ide> */ <ide> public function post($url, $data = [], $options = []) { <add> $options = $this->_mergeOptions($options); <add> $url = $this->buildUrl($url, [], $options...
2
Text
Text
add some items to the release notes [ci skip]
377a07958904633b882b277ff51ada08e1e4d720
<ide><path>guides/source/5_1_release_notes.md <ide> Please refer to the [Changelog][action-pack] for detailed changes. <ide> <ide> ### Removals <ide> <add>* Removed support to non-keyword arguments in `#process`, `#get`, `#post`, <add> `#patch`, `#put`, `#delete`, and `#head` for the `ActionDispatch::Integration...
1
Text
Text
add juanarbol as collaborator
8e55c277bf428c27c4b5d6abb21fcb1709fea0b0
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **João Reis** &lt;reis@janeasystems.com&gt; <ide> * [joyeecheung](https://github.com/joyeecheung) - <ide> **Joyee Cheung** &lt;joyeec9h3@gmail.com&gt; (she/her) <add>* [juanarbol](https://github.com/juanarbol) - <add>**Jua...
1
PHP
PHP
update docblock for connectionname
5b6f297b6cec5c92fd42aed5802dddded905e587
<ide><path>src/Illuminate/Queue/Jobs/Job.php <ide> abstract class Job <ide> <ide> /** <ide> * The name of the connection the job belongs to. <add> * <add> * @var string <ide> */ <ide> protected $connectionName; <ide>
1
Java
Java
remove complex nativeanimated queueing mechanisms
934561b2953848c730471a96524e51639ddd2dbd
<ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java <ide> public class NativeAnimatedModule extends NativeAnimatedModuleSpec <ide> <ide> private abstract class UIThreadOperation { <ide> abstract void execute(NativeAnimatedNodesManager animatedNodesManager); <del> <del> ...
3
Ruby
Ruby
reduce proc call
090aa9e535a36c55ca3f3177318c5900eb0b02fa
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> class CookieJar #:nodoc: <ide> DOMAIN_REGEXP = /[^.]*\.([^.]*|..\...|...\...)$/ <ide> <ide> def self.build(req, cookies) <del> new(req).tap do |jar| <del> jar.update(cookies) <del> end <add> jar = new(req) <...
1
Javascript
Javascript
update react jsx transforms
c4658c1728b39c452a86f371ecb1c51874456107
<ide><path>vendor/fbtransform/transforms/__tests__/react-test.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> * <del> * @emails jeffmo@fb.com <add> * @emails react-core <ide> */ <ide> <ide> /*jshint evil:true, unused:false*/ <ide> describe...
2
Text
Text
fix some text to pass the test
7024a9b08d88d74c4ae4321839af8d11da0219ab
<ide><path>curriculum/challenges/spanish/01-responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field.spanish.md <ide> localeTitle: Añadir texto de marcador de posición a un campo de texto <ide> --- <ide> <ide> ## Description <del><section id="description"> El texto de marcador de posición es lo ...
1
Python
Python
add tests for ufunc.method overrides
c8ac77c427a880eec455a05b92de9a2260d5f9d9
<ide><path>numpy/core/tests/test_umath.py <ide> def __numpy_ufunc__(self, func, method, pos, inputs, **kwargs): <ide> def test_ufunc_override_methods(self): <ide> class A(object): <ide> def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs): <del> if method == "__call__":...
1
Python
Python
add trailing whitespace to multiline test text
d652ff215d1d6e32b25efa217370fa0c1ef9e0ba
<ide><path>spacy/tests/lang/tt/test_tokenizer.py <ide> <ide> LONG_TEXTS_TESTS = [ <ide> ( <del> "Иң борынгы кешеләр суыклар һәм салкын кышлар булмый торган җылы" <del> "якларда яшәгәннәр, шуңа күрә аларга кием кирәк булмаган.Йөз" <del> "меңнәрчә еллар үткән, борынгы кешеләр акрынлап Европа һәм...
1
Java
Java
provide forcertl for ltr language to test
9de0b79e87f96d0b35d017466e081b9f3428b1fc
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java <ide> public Map<String, Object> getConstants() { <ide> <ide> @ReactMethod <ide> public void allowRTL(boolean value) { <del> sharedI18nUtilInstance.setAllowRTL( <add> sharedI18nUtilInstance.allowRTL( <add> ...
2
Go
Go
move init layer to top rather than bottom
fdbc2695fe00d522c5c1a962f9be2f802bf53943
<ide><path>devmapper/deviceset_devmapper.go <ide> func (devices *DeviceSetDM) loadMetaData() error { <ide> return nil <ide> } <ide> <del>func (devices *DeviceSetDM) createBaseLayer(dir string) error { <del> for pth, typ := range map[string]string{ <del> "/dev/pts": "dir", <del> "/dev/shm": "dir", <d...
2
Ruby
Ruby
return compiler versions and builds as versions
20bbeb5e9c4cdd5fb5b7cc92b46325d86b543cf8
<ide><path>Library/Homebrew/compilers.rb <ide> module CompilerConstants <ide> <ide> class CompilerFailure <ide> attr_reader :name <del> attr_rw :version <add> <add> def version(val = nil) <add> if val <add> @version = Version.parse(val.to_s) <add> else <add> @version <add> end <add> end <ide> ...
2
Python
Python
make polyint work well with object arrays
1a613e1c460d2e7756724b7e5c638c95519ee498
<ide><path>numpy/lib/polynomial.py <ide> def polyint(p, m=1, k=None): <ide> "k must be a scalar or a rank-1 array of length 1 or >m." <ide> <ide> truepoly = isinstance(p, poly1d) <del> p = NX.asarray(p) + 0.0 <add> p = NX.asarray(p) <ide> if m == 0: <ide> if truepoly: <ide> ...
2
Text
Text
update experimental status to reflect use
5c2d1af310349e5476c3ce92ba7e965d43f0e7c5
<ide><path>doc/api/documentation.md <ide> <!-- type=misc --> <ide> <ide> The goal of this documentation is to comprehensively explain the Node.js <del>API, both from a reference as well as a conceptual point of view. Each <add>API, both from a reference as well as a conceptual point of view. Each <ide> section descri...
1
Go
Go
implement changes for aufs driver
ed1884461331d7c2d6561be30b09da9df6612d39
<ide><path>aufs/aufs.go <ide> func (a *AufsDriver) Create(id, parent string) error { <ide> return err <ide> } <ide> <del> fmt.Fprintln(f, parent) <add> if _, err := fmt.Fprintln(f, parent); err != nil { <add> return err <add> } <ide> for _, i := range ids { <del> fmt.Fprintln(f, i) <add> if _, err := f...
3
Javascript
Javascript
add log when in watch mode
9b92c4d4d1fcb641751064cded4b062f20bc521d
<ide><path>bin/webpack.js <ide> function processOptions(options) { <ide> process.stdin.resume(); <ide> } <ide> compiler.watch(watchOptions, compilerCallback); <add> console.log('\nWebpack is watching the files…\n'); <ide> } else <ide> compiler.run(compilerCallback); <ide>
1
Javascript
Javascript
convert a for in loop to a plain for loop
0fa2b3032398a168c7f0569d9b3c949a78e42155
<ide><path>packages/ember-metal/lib/mixin.js <ide> function addNormalizedProperty(base, key, value, meta, descs, values, concats) { <ide> } <ide> } <ide> <del>function mergeMixins(mixins, m, descs, values, base) { <add>function mergeMixins(mixins, m, descs, values, base, keys) { <ide> var mixin, props, key, concat...
1
PHP
PHP
use cache repository
388c3a81b9aed8b936e5821a6141daa619954814
<ide><path>src/Illuminate/Queue/Worker.php <ide> <ide> use Illuminate\Queue\Jobs\Job; <ide> use Illuminate\Events\Dispatcher; <del>use Illuminate\Cache\StoreInterface; <add>use Illuminate\Cache\Repository as CacheRepository; <ide> use Illuminate\Queue\Failed\FailedJobProviderInterface; <ide> <ide> class Worker { <ide...
1
Text
Text
add changelog for
d3e9ca92c7b5910e6a203af7fa90518e684d4e39
<ide><path>activerecord/CHANGELOG.md <add>* Add `update!` that works like `update` but raises exceptions <add> <add> *Dorian Marié* <add> <ide> * Add `ActiveRecord::Base#attributes_for_database` <ide> <ide> Returns attributes with values for assignment to the database.
1
Text
Text
add guidelines about releasing providers
77ab986f2bdf194048c69967a568a285cd8f440b
<ide><path>dev/PROJECT_GUIDELINES.md <ide> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <ide> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <ide> <del>- [Overview](#overview) <del> - [Adding a Committer or PMC Member](#adding-a-committer-or-pmc-member) <del> -...
1
Javascript
Javascript
convert `container` to es6 class
0c62821a2f773457b57f1218ffede3f19e9b426d
<ide><path>packages/container/lib/container.js <ide> const CONTAINER_OVERRIDE = symbol('CONTAINER_OVERRIDE'); <ide> @private <ide> @class Container <ide> */ <del>export default function Container(registry, options = {}) { <del> this.registry = registry; <del> this.owner = options.owner || null; <d...
1
Text
Text
move mafintosh to collaborators
acc328ef5884ab55538c3953caea144b3f00e07a
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **James M Snell** &lt;jasnell@gmail.com&gt; (he/him) <ide> * [joyeecheung](https://github.com/joyeecheung) - <ide> **Joyee Cheung** &lt;joyeec9h3@gmail.com&gt; (she/her) <del>* [mafintosh](https://github.com/mafintosh...
1
Ruby
Ruby
fix typo in deprecation warning
3cce44698e307e4b2f515b127be178340c6e7782
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def each(&block) <ide> <ide> def self.return_only_media_type_on_content_type=(*) <ide> ActiveSupport::Deprecation.warn( <del> ".return_only_media_type_on_content_type= is dreprecated with no replacement and will be removed in 7.0." <add>...
1
Javascript
Javascript
bring kde example up-to-date
0305892a9619cda5a1e169d25743ddd7f86bed33
<ide><path>examples/kde/kde.js <ide> // Based on http://bl.ocks.org/900762 by John Firebaugh <ide> d3.json("../data/faithful.json", function(faithful) { <ide> data = faithful; <del> var w = 800, <del> h = 400, <del> x = d3.scale.linear().domain([30, 110]).range([0, w]); <add> var width = 800, <add> h...
1
Text
Text
add changelog entry for
40be61dfda1e04c3f306022a40370862e3a2ce39
<ide><path>actionmailer/CHANGELOG.md <add>* Add support to fragment cache in Action Mailer. <add> <add> Now you can use fragment caching in your mailers views. <add> <add> *Stan Lo* <add> <ide> * Reset `ActionMailer::Base.deliveries` after every test in <ide> `ActionDispatch::IntegrationTest`. <ide>
1
Python
Python
add counts to verbose list of ner labels
f00254ae276eca963991efb8a45748b2948b1c77
<ide><path>spacy/cli/debug_data.py <ide> def debug_data( <ide> if label != "-" <ide> ] <ide> labels_with_counts = _format_labels(labels_with_counts, counts=True) <del> msg.text(f"Labels in train data: {_format_labels(labels)}", show=verbose) <add> msg.text(f"Labels in train dat...
1
Javascript
Javascript
fix manifest build order
3fd472e5948d54d9c3a217adec9eb97521f1a596
<ide><path>gulpfile.js <ide> function delRev(dest, manifestName) { <ide> }); <ide> } <ide> <del>gulp.task('serve', function(cb) { <add>gulp.task('serve', ['build-manifest'], function(cb) { <ide> var called = false; <ide> nodemon({ <ide> script: paths.server, <ide> function buildManifest() { <ide> .pipe(g...
1
Text
Text
add api docs
1c63f02f99d6c3d663c4a9cfb0e3395986bd7598
<ide><path>website/docs/api/doc.md <ide> alignment mode `"strict". <ide> | `alignment_mode` | How character indices snap to token boundaries. Options: `"strict"` (no snapping), `"contract"` (span of all tokens completely within the character span), `"expand"` (span of all tokens at least partially c...
1
Javascript
Javascript
use composition instead of mutable state
cc0e7d2a79c12c516368e14aacff3cc71d8e3868
<ide><path>examples/ballmer-peak/example.js <ide> function computeBallmerPeak(x) { <ide> ) / 1.6; <ide> } <ide> <add>function percentage(x) { <add> return isNaN(x) ? 'N/A' : (100 - Math.round(pct * 100)) + '%'; <add>} <add> <ide> var BallmerPeakCalculator = React.createClass({ <ide> getInitialState: function() { ...
1
Text
Text
add link to eslint rules
63bf6a6f22cef9ec74af326bc59450188a6c9fa0
<ide><path>threejs/lessons/threejs-prerequisites.md <ide> You'll get warnings using `THREE` so add `/* global THREE */` at the top of your <ide> <ide> Above you can see eslint knows the rule that `UpperCaseNames` are constructors and so you should be using `new`. Another error caught and avoided. This is [the `new-cap...
1
Ruby
Ruby
add regression test to `as` option
af2b7459090f108bdfe662618792f423c347d8ac
<ide><path>actionpack/test/controller/integration_test.rb <ide> def foos_wibble <ide> end <ide> end <ide> <add> def test_standard_json_encoding_works <add> with_routing do |routes| <add> routes.draw do <add> ActiveSupport::Deprecation.silence do <add> post ':action' => FooController <add...
1
Python
Python
add new deprecation date
31e3be19e9d1fa14e8961bcc4a1580ea2c0f6a26
<ide><path>numpy/testing/utils.py <ide> <ide> import warnings <ide> <del># 2018-04-04, numpy 1.15.0 <add># 2018-04-04, numpy 1.15.0 ImportWarning <add># 2019-09-18, numpy 1.18.0 DeprecatonWarning (changed) <ide> warnings.warn("Importing from numpy.testing.utils is deprecated " <ide> "since 1.15.0, impor...
1
Javascript
Javascript
switch text style to textstyleprop
44a289cf26be02a3426d3e7a9fd1bf696ea48ea3
<ide><path>Libraries/Text/TextProps.js <ide> <ide> import type {LayoutEvent, PressEvent, TextLayoutEvent} from 'CoreEventTypes'; <ide> import type React from 'React'; <del>import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; <add>import type {TextStyleProp} from 'StyleSheet'; <ide> import type { <ide> Acce...
1
Javascript
Javascript
incorporate discussed changes
f975373d9b6ab30bc3adf5d9082375b9ab0e78f6
<ide><path>src/lib/create/valid.js <ide> export function isValid(m) { <ide> flags.bigHour === undefined; <ide> } <ide> <del> if (!Object.isFrozen(m)) { <add> if (Object.isFrozen == null || !Object.isFrozen(m)) { <ide> m._isValid = isNowValid; <ide> } <ide> ...
2
PHP
PHP
add ability to add and remove observable events
031bb63c55b685c65d99c2590e60f6d1d690584b
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function getObservableEvents() <ide> ); <ide> } <ide> <add> /** <add> * Set the observable event names. <add> * <add> * @return void <add> */ <add> public function setObservableEvents(array $observables) <add> { <add> $this->observables = $obse...
2
Javascript
Javascript
convert mutation phase to depth-first traversal
95feb0e701a5ae20996e8cc6c4acd0f504d5985a
<ide><path>packages/react-reconciler/src/ReactChildFiber.new.js <ide> function ChildReconciler(shouldTrackSideEffects) { <ide> childToDelete.nextEffect = null; <ide> childToDelete.flags = (childToDelete.flags & StaticMask) | Deletion; <ide> <del> let deletions = returnFiber.deletions; <add> const deletio...
5
Javascript
Javascript
pass the resource to a dynamic param functions
aa8d783cff3b43996fc69c91a40fea187153c11b
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * can escape it with `/\.`. <ide> * <ide> * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in <del> * `actions` methods. If a parameter value is a function, it will be executed ...
2
PHP
PHP
fix translation bug and add test
024067fd56b227d74ce0b70d6b78ef5ad7095d6d
<ide><path>src/Illuminate/Translation/Translator.php <ide> use Illuminate\Contracts\Translation\Loader; <ide> use Illuminate\Contracts\Translation\Translator as TranslatorContract; <ide> use Illuminate\Support\Arr; <del>use Illuminate\Support\Collection; <ide> use Illuminate\Support\NamespacedItemResolver; <ide> use Il...
2
PHP
PHP
use cakeexception as a base
5d094c6b30e1bf3163a6756eaa08e2010a8e562d
<ide><path>src/Http/Client/Adapter/Mock.php <ide> public function send(RequestInterface $request, array $options): array <ide> return [$mock['response']]; <ide> } <ide> <del> throw new MissingResponseException($method, $requestUri); <add> throw new MissingResponseException(['method' =...
3
Ruby
Ruby
fix failing tests for
550c1f095028d480e486388b43b880b8f01c48c5
<ide><path>actionpack/test/controller/show_exceptions_test.rb <ide> def test_render_json_exception <ide> get "/", headers: { 'HTTP_ACCEPT' => 'application/json' } <ide> assert_response :internal_server_error <ide> assert_equal 'application/json', response.content_type.to_s <del> assert_equal({ :s...
1
Mixed
Javascript
show a redbox when scripts fail to load
bbd1e455f391aef6dc8dfbd934377bf90016e35d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java <ide> <ide> import com.facebook.common.logging.FLog; <ide> import com.facebook.infer.annotation.Assertions; <add>import com.facebook.react.common.JavascriptException; <ide> <ide> import com.fasterxml.jackson.core.JsonFa...
2
Java
Java
remove configuration for avoiding jni refs
015b5ddc2ef690aa8d659e6352639352b8a118ca
<ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java <ide> public class YogaConfig { <ide> long mNativePointer; <ide> private YogaLogger mLogger; <ide> private YogaNodeCloneFunction mYogaNodeCloneFunction; <del> public boolean avoidGlobalJNIRefs = false; <ide> <ide> private native long jni_...
1
Javascript
Javascript
improve flow typing for uimanagerinjection
5e07347948c83e2257c7a1cbc159df59e545c1c9
<ide><path>Libraries/ReactNative/UIManager.js <ide> export interface UIManagerJSInterface extends Spec { <ide> ) => void; <ide> } <ide> <del>var UIManager: UIManagerJSInterface; <del>if (global.RN$Bridgeless === true) { <del> // $FlowExpectedError[incompatible-type] <del> UIManager = require('./DummyUIManager'); <...
2
Ruby
Ruby
add test case for `font_url`
b407b5973552e266f3797285721438b304e3a7b7
<ide><path>actionview/test/template/asset_tag_helper_test.rb <ide> def url_for(*args) <ide> %(font_path("font.ttf?123")) => %(/fonts/font.ttf?123) <ide> } <ide> <add> FontUrlToTag = { <add> %(font_url("font.eot")) => %(http://www.example.com/fonts/font.eot), <add> %(font_url("font.eot#iefix")) => %(http:/...
1
Ruby
Ruby
implement case conditional expression
4c7e50f9328aca4e294b41fce0832bf6ac4a939a
<ide><path>lib/arel/nodes.rb <ide> # windows <ide> require 'arel/nodes/window' <ide> <add># conditional expressions <add>require 'arel/nodes/case' <add> <ide> # joins <ide> require 'arel/nodes/full_outer_join' <ide> require 'arel/nodes/inner_join' <ide><path>lib/arel/nodes/case.rb <add>module Arel <add> module Nodes ...
8
Javascript
Javascript
fix the documentation style
3e7344394c01963a501b88732131ec93ebcff662
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> // <ide> // * `directoryPath` The {String} path to check. <ide> // <del> // Returns a promise resolving to a {Number} representing the status. This value can be passed to <del> // {::isStatusModified} or {::isStatusNew}...
1
Javascript
Javascript
remove unused updatepropertiesbyid
9d443542f94e5dac7aa903952fa4e3b8280b8d91
<ide><path>src/core/ReactDOMIDOperations.js <ide> var ReactDOMIDOperations = { <ide> DOMPropertyOperations.deleteValueForProperty(node, name, value); <ide> }, <ide> <del> /** <del> * This should almost never be used instead of `updatePropertyByID()` due to <del> * the extra object allocation required by the...
1
Text
Text
add ternary operator to control flow statements
98f52a448e174a3e43ac04fe06f514757837a222
<ide><path>guide/english/java/control-flow/index.md <ide> if( cash < 25 ){ <ide> ``` <ide> In this example, `meetFriendsAtSportsBar()` will be executed. <ide> <del>![:rocket:](https://forum.freecodecamp.org/images/emoji/emoji_one/rocket.png?v=2 ":rocket:") <a href='https://repl.it/CJZi/1' target='_blank' rel='nofollow...
1
Go
Go
use hostconfig in verifydaemonsettings
39932511c134938233e8bfe4796cec9a1b30d11e
<ide><path>daemon/container.go <ide> func (container *Container) initializeNetworking() error { <ide> <ide> // Make sure the config is compatible with the current kernel <ide> func (container *Container) verifyDaemonSettings() { <del> if container.Config.Memory > 0 && !container.daemon.sysInfo.MemoryLimit { <add> if c...
1
Ruby
Ruby
qualify module name within module_evaled block
b5c8433a6f7f869bfcd2001f8c3c4660716e873b
<ide><path>actionpack/test/controller/helper_test.rb <ide> def test_helper_block <ide> def test_helper_block_include <ide> assert_equal expected_helper_methods, missing_methods <ide> assert_nothing_raised { <del> @controller_class.helper { include TestHelper } <add> @controller_class.helper { includ...
1
Python
Python
make use of exitstack in npyio.py
aa276641d0943d17432d4ba02f8a00fdd6572237
<ide><path>numpy/lib/npyio.py <ide> def load(file, mmap_mode=None, allow_pickle=False, fix_imports=True, <ide> <ide> pickle_kwargs = dict(encoding=encoding, fix_imports=fix_imports) <ide> <del> # TODO: Use contextlib.ExitStack once we drop Python 2 <del> if hasattr(file, 'read'): <del> fid = file <de...
1
Python
Python
patch recursive import
1b652295c5940a45079c9056864009418c5a8054
<ide><path>src/transformers/convert_slow_tokenizer.py <ide> from tokenizers.models import BPE, Unigram, WordPiece <ide> <ide> from .file_utils import requires_backends <del>from .models.roformer.tokenization_utils import JiebaPreTokenizer <ide> <ide> <ide> class SentencePieceExtractor: <ide> def converted(self) -> T...
2
Go
Go
ignore sigpipe events, resolves
55a367d2fe2feecf7b95fbddcdcb3ed179c197fe
<ide><path>cmd/dockerd/daemon.go <ide> func (cli *DaemonCli) start() (err error) { <ide> stopc := make(chan bool) <ide> defer close(stopc) <ide> <add> signal.Trap(func() { <add> cli.stop() <add> <-stopc // wait for daemonCli.start() to return <add> }) <add> <ide> // warn from uuid package when running the daemon ...
2
Python
Python
report p/r/f out of 100
f232d8db96c331b70c4b50e7173185e749e097f6
<ide><path>spacy/scorer.py <ide> def score_set(self, cand: set, gold: set) -> None: <ide> <ide> @property <ide> def precision(self) -> float: <del> return self.tp / (self.tp + self.fp + 1e-100) <add> return (self.tp / (self.tp + self.fp + 1e-100)) * 100 <ide> <ide> @property <ide> def re...
1
PHP
PHP
handle postgres time without timezone correctly
7f58bf1ffebe7a70d874cd473f916a37a309df30
<ide><path>src/Database/Schema/PostgresSchema.php <ide> protected function _convertColumn($column) <ide> if (strpos($col, 'timestamp') !== false) { <ide> return ['type' => 'timestamp', 'length' => null]; <ide> } <add> if (strpos($col, 'time') !== false) { <add> return ['typ...
2
Javascript
Javascript
prepare tests for no-cond-assign eslint rule
d77754bfc7112ae68c818083ae0a75af9020b6aa
<ide><path>test/parallel/test-child-process-flush-stdio.js <ide> const spawnWithReadable = () => { <ide> })); <ide> p.stdout.on('readable', () => { <ide> let buf; <del> while (buf = p.stdout.read()) <add> while ((buf = p.stdout.read()) !== null) <ide> buffer.push(buf); <ide> }); <ide> }; <ide><pat...
7
Javascript
Javascript
add fxaa 3.11 antialiasing
a58d17160946f360644788681819a899aeeebf83
<ide><path>examples/js/shaders/FXAAShader.js <ide> THREE.FXAAShader = { <ide> <ide> vertexShader: [ <ide> <add> "varying vec2 vUv;", <add> <ide> "void main() {", <ide> <add> "vUv = uv;", <ide> "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", <ide> <ide> "}" <ide> <ide> ].joi...
1
PHP
PHP
simplify exception handler
35acc5408c4b6ad73c95f3bb5780232a5be735d5
<ide><path>app/Exceptions/Handler.php <ide> public function report(Exception $e) <ide> */ <ide> public function render($request, Exception $e) <ide> { <del> if ($this->isHttpException($e)) <del> { <del> return $this->renderHttpException($e); <del> } <del> else <del> { <del> return parent::render($request, ...
1
Text
Text
update docs with details for cached images
79314ef5d882940a8042d3c718d47488a8b7e72f
<ide><path>docs/basic-features/image-optimization.md <ide> module.exports = { <ide> The following Image Optimization cloud providers are supported: <ide> <ide> - When using `next start` or a custom server image optimization works automatically. <del>- [Vercel](https://vercel.com): Works automatically when you deploy o...
1
Python
Python
update affected tests
74cc72311ddce0ae3f3794e85add9b20254940b1
<ide><path>libcloud/test/compute/test_openstack.py <ide> def test_list_sizes(self): <ide> self.assertEqual(len(sizes), 8, 'Wrong sizes count') <ide> <ide> for size in sizes: <del> self.assertTrue(isinstance(size.price, float), <add> self.assertTrue(size.price is None or isinstance...
1
Text
Text
add homebrew-mode to editor plugins
9bd3e1eeab2b0942746b56e810764c0821666579
<ide><path>share/doc/homebrew/Tips-N'-Tricks.md <ide> export HOMEBREW_NO_EMOJI=1 <ide> <ide> This sets the HOMEBREW_NO_EMOJI environment variable, causing homebrew to hide all emoji. <ide> <del>## Sublime text: Syntax for formulae including the diff <add>## Editor plugins <ide> <del>In Sublime Text 2/3, you can use ...
1
Mixed
Javascript
add wrap attribute
1b5bfb516a90df615cd2bdcab1d7ed5c67e5e62d
<ide><path>docs/docs/ref-04-tags-and-attributes.md <ide> maxLength media mediaGroup method min multiple muted name noValidate open <ide> optimum pattern placeholder poster preload radioGroup readOnly rel required role <ide> rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes <ide> span spellC...
2
PHP
PHP
simplify constructor logic
62e68d0163cc61015d24175e0145282388f87d97
<ide><path>lib/Cake/ORM/ResultSet.php <ide> class ResultSet implements Iterator { <ide> */ <ide> protected $_defaultTable; <ide> <del>/** <del> * Default table alias <del> * <del> * @var string <del> */ <del> protected $_defaultAlias; <del> <ide> /** <ide> * List of associations that should be eager loaded <ide> *...
1
PHP
PHP
fix failing test
32f5b6f191dc18273a71e83ad54b19c61b7b4125
<ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php <ide> public function testInList() { <ide> $this->assertTrue(Validation::inList('one', array('one', 'two'))); <ide> $this->assertTrue(Validation::inList('two', array('one', 'two'))); <ide> $this->assertFalse(Validation::inList('three', array('one', 'two')))...
1
Javascript
Javascript
add my ip to showcase
d1dbe2dfa62dbe9da6db7383cf438765661841ea
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/mr.-dapper-men-fashion-app/id989735184?ls=1&mt=8', <ide> author: 'wei ping woon', <ide> }, <add> { <add> name: 'My IP', <add> icon: 'http://a3.mzstatic.com/us/r30/Purple69/v4/a2/61/58/a261584...
1
Javascript
Javascript
remove unnecessary existing check for `ember`
a24529e4742d45ffee624f2b6ddf2937c512b228
<ide><path>packages/ember-debug/lib/main.js <ide> Ember.debug = function(message) { <ide> will be displayed. <ide> */ <ide> Ember.deprecate = function(message, test) { <del> if (Ember && Ember.TESTING_DEPRECATION) { return; } <add> if (Ember.TESTING_DEPRECATION) { return; } <ide> <ide> if (arguments.length ===...
1
Go
Go
add integration test for xz path issue
0e9a7bc3cea20db258176b6f923c2b9cd009334f
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildSymlinkBreakout(t *testing.T) { <ide> } <ide> logDone("build - symlink breakout") <ide> } <add> <add>func TestBuildXZHost(t *testing.T) { <add> name := "testbuildxzhost" <add> defer deleteImages(name) <add> <add> ctx, err := fakeContext(` <add>FR...
1
Javascript
Javascript
use reference count rather than owner id
364bf941ca7efbb223d75932484242d8b5c8bc71
<ide><path>d3.js <ide> function d3_transition(groups, id) { <ide> node = this, <ide> delay = groups[j][i].delay, <ide> duration = groups[j][i].duration, <del> lock = node.__transition__; <add> lock = node.__transition__ || (node.__transition__ = {active: 0, count: 0}); <a...
6
PHP
PHP
fix failing test
6e8330890ecbd29b197cc94ce61923eebd77c164
<ide><path>tests/TestCase/Error/ExceptionRendererTest.php <ide> public function testPDOException() { <ide> <ide> $result = $ExceptionRenderer->render()->body(); <ide> <del> $this->assertContains('<h2>Database Error</h2>', $result); <add> $this->assertContains('Database Error', $result); <ide> $this->assertConta...
1
Go
Go
use json.encoder for container.writehostconfig
cf1a6c08fa03aa7020f8f5b414bb9349a9c8371a
<ide><path>daemon/container.go <ide> import ( <ide> "errors" <ide> "fmt" <ide> "io" <del> "io/ioutil" <ide> "os" <ide> "path/filepath" <ide> "strings" <ide> func (container *Container) readHostConfig() error { <ide> } <ide> <ide> func (container *Container) writeHostConfig() error { <del> data, err := json.Marsh...
1
PHP
PHP
adjust partial of test case for emailcomponent
b2f948dfeb3f3e9e2c9091dc5b9482a994d26e04
<ide><path>lib/Cake/tests/Case/Controller/Component/EmailComponentTest.php <ide> */ <ide> App::uses('Controller', 'Controller'); <ide> App::uses('EmailComponent', 'Controller/Component'); <add>App::uses('AbstractTransport', 'Network/Email'); <ide> <ide> /** <ide> * EmailTestComponent class <ide> function strip($cont...
1
Javascript
Javascript
add template & compile functions for htmlbars
7ffbd9ca809bb33bc10f358589439b6c10073042
<ide><path>packages/ember-htmlbars/lib/main.js <add>import Ember from "ember-metal/core"; <ide> import { content, element, subexpr } from "ember-htmlbars/hooks"; <ide> import { DOMHelper } from "morph"; <add>import template from "ember-htmlbars/system/template"; <add>import compile from "ember-htmlbars/system/compile";...
15