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 |
|---|---|---|---|---|---|
Text | Text | add rafael to the security steward for nearform | c7338c5b328bf52be556dd97bad03f9125f85b79 | <ide><path>doc/contributing/security-release-process.md
<ide> steps listed in the process as outlined in
<ide> The current security stewards are documented in the main Node.js
<ide> [README.md](https://github.com/nodejs/node#security-release-stewards).
<ide>
<del>| Company | Person | Release Date |
<del>| -------... | 1 |
Ruby | Ruby | drop unnecessary pathname creation | e29cbc5a48616ad22b5a07951887109f65cabada | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def each_install_name_for file, &block
<ide>
<ide> def dylib_id_for file, options={}
<ide> # the shortpath ensures that library upgrades don’t break installed tools
<del> relative_path = Pathname.new(file).relative_path_from(self)
<add> relative_pa... | 1 |
Javascript | Javascript | add remedy to showcase | f9df72c80328d9631b86a0f5582f8031b44eaba3 | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> infoLink: 'https://medium.com/delivery-com-engineering/react-native-in-an-existing-ios-app-delivered-874ba95a3c52#.37qruw6ck',
<ide> infoTitle: 'React Native in an Existing iOS App: Getting Started'
<ide> },
<add> {
<add> name: '... | 1 |
Ruby | Ruby | remove unnecessary code from debugger | 0b8cf49386a6cd6c5cefe26ff150422d12edcff1 | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> end
<ide> end
<ide>
<del> if ARGV.debug?
<del> formula.extend(Debrew::Formula)
<del> formula.resources.each { |r| r.extend(Debrew::Resource) }
<del> end
<add> formula.extend(Debrew::Formula) if ARGV.debug?
<ide>
<ide> formul... | 2 |
Java | Java | drop use of webapplicationcontext in tests | ad4be9462bf575ebcb9eacfd03d071a9669049cb | <ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/handler/SimpleUrlHandlerMappingIntegrationTests.java
<ide> import reactor.io.buffer.Buffer;
<ide> import reactor.rx.Streams;
<ide>
<add>import org.springframework.context.support.StaticApplicationContext;
<ide> import org.springframework.htt... | 3 |
Ruby | Ruby | adjust behavior for undocumented commands | 0382134cf87321166fb8f03223e21b1d242ad7cb | <ide><path>Library/brew.rb
<ide> def require?(path)
<ide> if help_text.nil?
<ide> # External command, let it handle help by itself
<ide> elsif help_text.empty?
<del> puts "No help available for #{cmd}"
<del> exit 1
<add> opoo "No help available for '#{cmd}' command."
<add> ... | 1 |
Go | Go | update reload signal comment | dbb5da7fcd72616fdbdc224d6d4df3adc0128281 | <ide><path>cmd/dockerd/daemon_unix.go
<ide> func (cli *DaemonCli) getPlatformContainerdDaemonOpts() ([]supervisor.DaemonOpt,
<ide> return opts, nil
<ide> }
<ide>
<del>// setupConfigReloadTrap configures the USR2 signal to reload the configuration.
<add>// setupConfigReloadTrap configures the SIGHUP signal to reload t... | 1 |
Javascript | Javascript | add document.registerelement polyfill | 04d6338c706472a20ae8ddeef721aa784e2fa7d4 | <ide><path>static/index.js
<ide> )
<ide> : require('document-register-element');
<ide>
<add> const Grim = useSnapshot
<add> ? snapshotResult.customRequire('../node_modules/grim/lib/grim.js')
<add> : require('grim');
<add> const documentRegisterElement = document.registerElement;
<add>
<ad... | 1 |
PHP | PHP | update doc block concerning plugins | 7547d2c2d1e32228f6d36434925bde821a396bb2 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function tagIsInvalid() {
<ide> * will be appended.
<ide> * - `onsubmit` Used in conjunction with 'default' to create ajax forms.
<ide> * - `inputDefaults` set the default $options for FormHelper::input(). Any options that would
<del> * be set when using ... | 1 |
Go | Go | move copy to a job | e2fa3f56df02818f007f929824293f9da6b2db75 | <ide><path>api.go
<ide> func postContainersCopy(srv *Server, version float64, w http.ResponseWriter, r *
<ide> if vars == nil {
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<del> name := vars["name"]
<ide>
<ide> copyData := &APICopy{}
<ide> contentType := r.Header.Get("Content-Type")
<ide> func postConta... | 2 |
Text | Text | add logo to readme | 9d00552aac857b1a3fafa1d19cb856c1c50b70b9 | <ide><path>README.md
<del>This is the home of the Spring Framework that underlies all
<del>[Spring projects](https://spring.io/projects). Collectively the Spring Framework and the
<del>family of related Spring projects make up what we call "Spring".
<add># <img src="src/docs/asciidoc/images/spring-framework.png" width=... | 1 |
Text | Text | improve onboarding instructions | 42e9b483c0d5a0ee49b91428415b4ccd8e94ebe4 | <ide><path>COLLABORATOR_GUIDE.md
<ide> $ npm install -g node-core-utils
<ide> $ git node land $PRID
<ide> ```
<ide>
<del>If it's the first time you ever use `node-core-utils`, you will be prompted
<del>to type the password of your GitHub account in the console so the tool can
<del>create the GitHub access token for yo... | 2 |
PHP | PHP | add allowuniquenulls to isunique rule check | 54346d58116e4c6203a3c9c78317099ef90cd578 | <ide><path>src/ORM/Rule/IsUnique.php
<ide> class IsUnique
<ide> */
<ide> protected $_fields;
<ide>
<add> /**
<add> * The unique check options
<add> *
<add> * @var array
<add> */
<add> protected $_options = [
<add> 'allowMultipleNulls' => false,
<add> ];
<add>
<ide> /**
<ide... | 4 |
Python | Python | remove tuple<->list conversion dance | 908cd986a5e1dcefd68e37dce5ac14641e364e56 | <ide><path>numpy/lib/recfunctions.py
<ide> def stack_arrays(arrays, defaults=None, usemask=True, asrecarray=False,
<ide> #
<ide> dtype_l = ndtype[0]
<ide> newdescr = get_fieldspec(dtype_l)
<del> names = [_[0] for _ in newdescr]
<add> names = [n for n, d in newdescr]
<ide> for dtype_n in ndtype[1:]... | 1 |
Python | Python | fix bart conversion script | 343057e1413924152c1a3716a31775660dedb229 | <ide><path>src/transformers/models/bart/convert_bart_original_pytorch_checkpoint_to_pytorch.py
<ide> import fairseq
<ide> import torch
<ide> from packaging import version
<add>from torch import nn
<ide>
<ide> from transformers import (
<ide> BartConfig,
<ide> BartModel,
<ide> BartTokenizer,
<ide> )
<del>fr... | 1 |
Ruby | Ruby | fix remaining tap test failures | 0b293c44e8a9e8d67839fee9149debde27cb6f7b | <ide><path>Library/Homebrew/test/test_tap.rb
<ide> def test_tap
<ide> assert_match "Unpinned homebrew/foo", cmd("tap-unpin", "homebrew/foo")
<ide> assert_match "Tapped", cmd("tap", "homebrew/bar", path/".git")
<ide> assert_match "Untapped", cmd("untap", "homebrew/bar")
<del> assert_equal "", cmd("tap", "... | 1 |
Ruby | Ruby | make test commands shell-safe | 299b272c6c244bc703828d6f91052dd87ac5d35c | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def initialize test, command, options={}
<ide> @category = test.category
<ide> @command = command
<ide> @puts_output_on_success = options[:puts_output_on_success]
<del> @name = command.split[1].delete '-'
<add> @name = command[1].delete("-")
... | 1 |
Python | Python | add merge_mode join | 5c3db2fea62b452e0563cf7dee8f7711752a56fa | <ide><path>keras/layers/core.py
<ide> def get_output(self, train=False):
<ide> elif self.mode == 'concat':
<ide> inputs = [self.layers[i].get_output(train) for i in range(len(self.layers))]
<ide> return T.concatenate(inputs, axis=self.concat_axis)
<add> elif self.mode == 'join':
<... | 1 |
PHP | PHP | add testbeforebootstrappingaddsclosure test | 66102c18d2cdb1fad4a37b311c4fc1e722535a34 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testMethodAfterLoadingEnvironmentAddsClosure()
<ide> $this->assertArrayHasKey(0, $app['events']->getListeners('bootstrapped: Illuminate\Foundation\Bootstrap\DetectEnvironment'));
<ide> $this->assertSame($closure, $app['event... | 1 |
Text | Text | simplify pr template even more | 969a1b5a9dacf81a3ab0d9422e19f5064c3eba8c | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<del>**Please check if the PR fulfills these requirements**
<del>- [ ] Tests for the changes have been added (for bug fixes / features)
<del>- [ ] Docs have been added / updated (for bug fixes / features)
<del>
<add><!-- Thanks for submitting a pull request! Please provide en... | 1 |
Text | Text | add code example to `fs.truncate` method | 7f167f49dddb48fb29d4b5e5a5aa126163af4e76 | <ide><path>doc/api/fs.md
<ide> Truncates the file. No arguments other than a possible exception are
<ide> given to the completion callback. A file descriptor can also be passed as the
<ide> first argument. In this case, `fs.ftruncate()` is called.
<ide>
<add>```mjs
<add>import { truncate } from 'fs';
<add>// Assuming ... | 1 |
Javascript | Javascript | fix internal types on top of textinput refactor | ad7d8f89ef8dbcc1080b9d8a13f4bd50c6f83df1 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> class TextInput extends React.Component<Props> {
<ide> };
<ide>
<ide> _inputRef: ?React.ElementRef<Class<TextInputType>> = null;
<del> _lastNativeText: ?string = null;
<add> _lastNativeText: ?Stringish = null;
<ide> _lastNativeSelection: ?Selection =... | 1 |
Javascript | Javascript | clarify the meaning of `@` in `paramdefaults` | 48b34ddb79d8e65cbdd0aa0ef15189a904887220 | <ide><path>src/ngResource/resource.js
<ide> function shallowClearAndCopy(src, dst) {
<ide> * Given a template `/path/:verb` and parameter `{verb:'greet', salutation:'Hello'}` results in
<ide> * URL `/path/greet?salutation=Hello`.
<ide> *
<del> * If the parameter value is prefixed with `@` then the value of tha... | 1 |
Javascript | Javascript | improve dev performance in chrome | 4b734f7a025c828be8c5d85f7c8d88679ae8f952 | <ide><path>src/renderers/dom/client/ReactDOMComponentTree.js
<ide> function precacheChildNodes(inst, node) {
<ide> }
<ide> var childInst = children[name];
<ide> var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
<del> if (childID == null) {
<add> if (childID === 0) {
<ide> // We... | 9 |
Javascript | Javascript | stop deep linking `reactchildren` | efcdef711eba82b2905d237ee9a3d094652c37ac | <ide><path>Libraries/Components/Picker/PickerAndroid.android.js
<ide>
<ide> var ColorPropType = require('ColorPropType');
<ide> var React = require('React');
<del>var ReactChildren = require('react/lib/ReactChildren');
<ide> var StyleSheet = require('StyleSheet');
<ide> var StyleSheetPropType = require('StyleSheetProp... | 3 |
Javascript | Javascript | increase lint compliance | dcfda1007bb74a8354a47852bebe830a23916b6d | <ide><path>benchmark/buffers/buffer-bytelength.js
<ide> function main(conf) {
<ide> var r = Buffer.byteLength(strings[index], encoding);
<ide>
<ide> if (r !== results[index])
<del> throw Error('incorrect return value');
<add> throw new Error('incorrect return value');
<ide> }
<ide> bench.end(n);
... | 49 |
Text | Text | remove docs for legacy_connection_handling | 0348b219cfc0fb0b5c7f9f35b4319d2d9a50497e | <ide><path>guides/source/configuring.md
<ide> Below are the default values associated with each target version. In cases of co
<ide> #### Default Values for Target Version 6.1
<ide>
<ide> - [`config.active_record.has_many_inversing`](#config-active-record-has-many-inversing): `true`
<del>- [`config.active_record.legac... | 1 |
Javascript | Javascript | fix regression in challenge map migration | bbc76b1b73148cac7598894075ff4877dd8097c5 | <ide><path>server/middlewares/migrate-completed-challenges.js
<ide> export default function migrateCompletedChallenges() {
<ide> if (!user || user.isChallengeMapMigrated) {
<ide> return next();
<ide> }
<del> return buildChallengeMap(
<del> user.id.toString(),
<del> user.completedChallenges,
<... | 1 |
Javascript | Javascript | use async rimraf | 5bcafa64e24dae4a7b052bf1bf10524f6ac8e3dd | <ide><path>test/ChangesAndRemovals.test.js
<ide> const onceDone = (compiler, action) => {
<ide> });
<ide> };
<ide>
<del>function cleanup() {
<del> rimraf.sync(tempFolderPath);
<add>function cleanup(callback) {
<add> rimraf(tempFolderPath, callback);
<ide> }
<ide>
<ide> function createFiles() {
<ide> describe("Change... | 1 |
Javascript | Javascript | use standard args order in incomingmessage onerror | a6bf74eac00516fd0767b585c8f304857dddd2aa | <ide><path>lib/_http_incoming.js
<ide> IncomingMessage.prototype._destroy = function _destroy(err, cb) {
<ide> this.emit('aborted');
<ide> }
<ide>
<del> // If aborted and the underlying socket not already destroyed,
<add> // If aborted and the underlying socket is not already destroyed,
<ide> // destroy it.
... | 1 |
Ruby | Ruby | ignore test files in test/vendor/bundle | 0a7307de6412ddc566cdcb5ab343a9bb16bb2b88 | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide>
<ide> files = Dir.glob("test/**/*_test.rb")
<ide> .reject { |p| !OS.mac? && p.start_with?("test/os/mac/") }
<add> .reject { |p| p.start_with?("test/vendor/bundle/") }
<ide>
<ide> opts = []
<ide> opts ... | 1 |
Ruby | Ruby | replace #flatten with array() | 7c1af53b1cddc35de5a2e0788d7a2073365458f3 | <ide><path>railties/lib/rails/paths.rb
<ide> def []=(path, value)
<ide> end
<ide>
<ide> def add(path, options={})
<del> with = options[:with] || path
<del> @root[path] = Path.new(self, path, [with].flatten, options)
<add> with = Array(options[:with] || path)
<add> @root[path] = ... | 1 |
Javascript | Javascript | add `rooteventtypes` support to event responders | 017d6f14b75d4e05a438e34fe0967d730ce24185 | <ide><path>packages/react-dom/src/client/ReactDOMComponent.js
<ide> export function listenToEventResponderEventTypes(
<ide> if (__DEV__) {
<ide> warning(
<ide> typeof targetEventType === 'object' && targetEventType !== null,
<del> 'Event Responder: invalid entry in targetEventTy... | 6 |
PHP | PHP | fix container build and add tests | 0b934bc68237a208534d1480cdb268f53ef99c42 | <ide><path>src/Illuminate/Container/Container.php
<ide> public function build($concrete)
<ide> // hand back the results of the functions, which allows functions to be
<ide> // used as resolvers for more fine-tuned resolution of these objects.
<ide> if ($concrete instanceof Closure) {
<del> ... | 2 |
Java | Java | use varargs for scan method as well | e65ba99e237a10db8ffd066b3f9f0d9682f11b02 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java
<ide> public void register(Class<?>... annotatedClasses) {
<ide> * Perform a scan within the specified base packages.
<ide> * @param basePackages the packages to check for annotated cl... | 1 |
Python | Python | notify registered observers | d7a3c6b881f8b12135dec0063c5a7f5e069bd838 | <ide><path>celery/apps/worker.py
<ide> def on_start(self):
<ide>
<ide> def on_consumer_ready(self, consumer):
<ide> signals.worker_ready.send(sender=consumer)
<add> WorkController.on_consumer_ready(self, consumer)
<ide> print('celery@{0.hostname} has started.'.format(self))
<ide>
<ide> ... | 1 |
Javascript | Javascript | add support for beginfbchar | 42653edf9a47e281ddbf210d2723e69884a79807 | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> });
<ide> };
<ide>
<add> var encoding = properties.encoding;
<add> var charset = properties.charset;
<ide> for (var i = 0; i < numRecords; i++) {
<ide> var table = records[i];
<ide> font.pos = star... | 2 |
Python | Python | fix taskinstance actions with upstream/downstream | 22ba59c5f26d1e6fa2ce59e99304628b2f0a0fd9 | <ide><path>airflow/api/common/mark_tasks.py
<ide> from typing import TYPE_CHECKING, Collection, Iterable, Iterator, List, NamedTuple, Optional, Tuple, Union
<ide>
<ide> from sqlalchemy import or_
<del>from sqlalchemy.orm import contains_eager
<add>from sqlalchemy.orm import lazyload
<ide> from sqlalchemy.orm.session i... | 9 |
Javascript | Javascript | fix an infinite loop in new context | 8d0942242476024ac74d4ca2fcac9824b3124dc8 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js
<ide> export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>(
<ide> renderExpirationTime: ExpirationTime,
<ide> ): void {
<ide> let fiber = workInProgress.child;
<add> if (fiber !== null) {
<add> // Set the return pointer of the chil... | 2 |
Python | Python | fix documentation of bigbird tokenizer | 4f19881f88e877f5ec95472e346959e7cb2a2ecc | <ide><path>src/transformers/models/big_bird/tokenization_big_bird_fast.py
<ide> class BigBirdTokenizerFast(PreTrainedTokenizerFast):
<ide> vocab_file (:obj:`str`):
<ide> `SentencePiece <https://github.com/google/sentencepiece>`__ file (generally has a `.spm` extension) that
<ide> contain... | 1 |
Text | Text | remove unnecessary echo from yum docs | 3cbccccb37f6f50ebb49e9738af09a0d7d79549a | <ide><path>docs/installation/centos.md
<ide> package manager.
<ide>
<ide> 3. Add the yum repo.
<ide>
<del> $ echo | sudo tee /etc/yum.repos.d/docker.repo <<-EOF
<add> $ sudo tee /etc/yum.repos.d/docker.repo <<-EOF
<ide> [dockerrepo]
<ide> name=Docker Repository
<ide> baseurl=http... | 4 |
PHP | PHP | use proper assertions | 74651006bfc19622d8aa93c8f827c1ff4bd364c4 | <ide><path>tests/Database/DatabaseEloquentBelongsToManySyncTouchesParentTest.php
<ide> public function testSyncWithDetachedValuesShouldTouch()
<ide>
<ide> Carbon::setTestNow('2021-07-20 19:13:14');
<ide> $result = $article->users()->sync([1, 2]);
<del> $this->assertTrue(collect($result['detached... | 7 |
Go | Go | print all arguments when failing to start daemon | f6842327b03e124a218f20fc6d0d007df86f7fb2 | <ide><path>testutil/daemon/daemon.go
<ide> type Daemon struct {
<ide> dockerdBinary string
<ide> log logT
<ide> pidFile string
<add> args []string
<ide>
<ide> // swarm related field
<ide> swarmListenAddr string
<ide> func (d *Daemon) Cle... | 1 |
Javascript | Javascript | fix coding style in src/display/canvas.js | bc986a3029daf8a5e8d1add6c7e14b09ed52cc01 | <ide><path>src/display/canvas.js
<ide> function compileType3Glyph(imgData) {
<ide> var type = points[p], p0 = p, pp;
<ide> do {
<ide> var step = steps[type];
<del> do { p += step; } while (!points[p]);
<add> do {
<add> p += step;
<add> } while (!points[p]);
<ide>
<ide> pp = po... | 1 |
Python | Python | add regression test for | 718f1c50fb8a2cd6fdc0376f8c6af1142c54a1e8 | <ide><path>spacy/tests/regression/test_issue1491.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>import regex as re
<add>
<add>from ...lang.en import English
<add>from ...tokenizer import Tokenizer
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue1491():
<add> ... | 1 |
Javascript | Javascript | add feature tests for textdecoder | be6cf15060cee35ad987a59bf77c447690d76235 | <ide><path>test/features/tests.js
<ide> var tests = [
<ide> impact: 'Important',
<ide> area: 'Core'
<ide> },
<add> {
<add> id: 'TextDecoder',
<add> name: 'TextDecoder is present',
<add> run: function () {
<add> if (typeof TextDecoder != 'undefined')
<add> return { output: 'Success', emul... | 2 |
PHP | PHP | fix whitespace and formatting | ca8046bfea49f988d090d670ed56b08bc1cb4486 | <ide><path>lib/Cake/Test/Case/Utility/CakeTimeTest.php
<ide> public function testWasWithinLast() {
<ide> $this->assertTrue($this->Time->wasWithinLast('1 ', '-1 minute'));
<ide> $this->assertTrue($this->Time->wasWithinLast('1 ', '-23 hours -59 minutes -59 seconds'));
<ide> }
<del>
<add>
<ide> /**
<ide> * test... | 2 |
Ruby | Ruby | add timeout to trash_paths | 1406ee7eac845069cc4fefac0820b0d0248691bc | <ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb
<ide> def trash_paths(*paths, command: nil, **_)
<ide> set item i of argv to (item i of argv as POSIX file)
<ide> end repeat
<ide>
<del> tell application "Finder"
<del> set trashedItems to (move argv to tr... | 1 |
Text | Text | remove personal pronoun usage in fs.md | fb36266f28379fc7270a3d3e7423296e59e022b1 | <ide><path>doc/api/fs.md
<ide> By default, the stream will not emit a `'close'` event after it has been
<ide> destroyed. This is the opposite of the default for other `Readable` streams.
<ide> Set the `emitClose` option to `true` to change this behavior.
<ide>
<del>By providing the `fs` option it is possible to overri... | 1 |
Text | Text | update the required package name | 8ec0da22596dbf36843cd3a4792014220d4c08c4 | <ide><path>curriculum/challenges/chinese/06-quality-assurance/advanced-node-and-express/set-up-the-environment.md
<ide> title: 设置环境
<ide>
<ide> 在接下来的挑战中,我们将会用到 <code>chat.pug</code> 文件。首先,你需要在你的 <code>routes.js</code> 文件中为 <code>/chat</code> 添加一个处理 GET 请求的路由,并给它传入 <code>ensureAuthenticated</code>。在回调函数中,我们需要让它 render ... | 2 |
Javascript | Javascript | add react.createfactory() deprecation warning | f2fd484afdee1e4e25ee453bb7a544fa0558d172 | <ide><path>packages/react-is/src/__tests__/ReactIs-test.js
<ide> describe('ReactIs', () => {
<ide> expect(ReactIs.isValidElementType(Context.Provider)).toEqual(true);
<ide> expect(ReactIs.isValidElementType(Context.Consumer)).toEqual(true);
<ide> if (!ReactFeatureFlags.disableCreateFactory) {
<del> exp... | 5 |
Text | Text | fix typo in streams.md | e429f9a42af94f039621a1bf9f21ad424aa00558 | <ide><path>doc/api/stream.md
<ide> added: v0.9.4
<ide> * {Error}
<ide>
<ide> The `'error'` event may be emitted by a Readable implementation at any time.
<del>Typically, this may occur if the underlying stream in unable to generate data
<add>Typically, this may occur if the underlying stream is unable to generate data... | 1 |
Ruby | Ruby | make helper methods in tests to private | 62b10bfc445837c3e6e466449743605d6fca3811 | <ide><path>activerecord/test/cases/associations/has_many_through_associations_test.rb
<ide> def test_preload_sti_middle_relation
<ide> club1.members.sort_by(&:id)
<ide> end
<ide>
<del> def make_model(name)
<del> Class.new(ActiveRecord::Base) { define_singleton_method(:name) { name } }
<del> end... | 1 |
Javascript | Javascript | sync new haste features from upstream | 5b4244d75578c17c10e1f3ee5a364e1c883728cf | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/HasteMap.js
<ide> const Promise = require('promise');
<ide> const GENERIC_PLATFORM = 'generic';
<ide>
<ide> class HasteMap {
<del> constructor({ fastfs, moduleCache, helpers }) {
<add> constructor({ extensions, fastfs, moduleCache, helpers }) ... | 13 |
Python | Python | update compatibility [ci skip] | 24cecdb44fe7349f7382dddeeb6ce047c32db813 | <ide><path>examples/training/train_new_entity_type.py
<ide> * Training: https://spacy.io/usage/training
<ide> * NER: https://spacy.io/usage/linguistic-features#named-entities
<ide>
<del>Compatible with: spaCy v2.0.0+
<add>Compatible with: spaCy v2.1.0+
<ide> Last tested with: v2.1.0
<ide> """
<ide> from __future__ imp... | 1 |
Ruby | Ruby | enforce https for github.com urls | 11ebfdafb227ae36559f65c6bd098172301e82f0 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_urls
<ide> %r{^http://(?:[^/]*\.)?bintray\.com/},
<ide> %r{^http://tools\.ietf\.org/},
<ide> %r{^http://launchpad\.net/},
<add> %r{^http://github\.com/},
<ide> %r{^http://bitbucket\.org/},
<ide> ... | 1 |
PHP | PHP | fix failing tests | 4a0df837830a035e0d2261373782370fcc386163 | <ide><path>lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
<ide> class SchemaShellTest extends CakeTestCase {
<ide> *
<ide> * @var array
<ide> */
<del> public $fixtures = array('core.article', 'core.user', 'core.post', 'core.auth_user', 'core.author',
<del> 'core.comment', 'core.test_plugin_comment'
<add> pu... | 1 |
Go | Go | fix the rootpath for auth | e726bdcce2606acef136a4d5ba47e367d9e461df | <ide><path>auth/auth.go
<ide> type AuthConfig struct {
<ide> rootPath string `json:-`
<ide> }
<ide>
<add>func NewAuthConfig(username, password, email, rootPath string) *AuthConfig {
<add> return &AuthConfig{
<add> Username: username,
<add> Password: password,
<add> Email: email,
<add> rootPath: rootPath,
<add>... | 2 |
PHP | PHP | allow tuple notation for actions | 2b3902a77f9f8193ab7ee157530e97d1b96cfa05 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> protected function toRoute($route, $parameters, $absolute)
<ide> /**
<ide> * Get the URL to a controller action.
<ide> *
<del> * @param string $action
<add> * @param string|array $action
<ide> * @param mixed $parameters
<ide> ... | 2 |
PHP | PHP | fix double column reflection | 7dc4a86c8252d1cae7267f1ba626dd4e2cf8455f | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn($column)
<ide>
<ide> $col = strtolower($matches[1]);
<ide> $length = $precision = null;
<del> if (isset($matches[2])) {
<add> if (isset($matches[2]) && strlen($matches[2])) {
<ide> $length =... | 6 |
Text | Text | add moonball to collaborators | 5a55a711505489af7fd75a83b4905afc7468ebec | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Julien Gilli** <jgilli@nodejs.org>
<ide> * [mmarchini](https://github.com/mmarchini) -
<ide> **Matheus Marchini** <matheus@sthima.com>
<add>* [MoonBall](https://github.com/MoonBall) -
<add>**Chen Gang** ... | 1 |
Ruby | Ruby | build python binary names dynamically | f04b0142102a872d255440aef75984c1b213c584 | <ide><path>Library/Homebrew/language/python.rb
<ide> def needs_python?(python)
<ide> def virtualenv_install_with_resources(options = {})
<ide> python = options[:using]
<ide> if python.nil?
<del> pythons = %w[python python3 python@3 python@3.7 python@3.8 python@3.9 pypy pypy3]
<add> ... | 1 |
PHP | PHP | fix failing tests | 270d022136995b5dba776816b010c63edec4b438 | <ide><path>App/Config/app.php
<ide> $loader = new ClassLoader($namespace, dirname(APP));
<ide> $loader->register();
<ide> unset($loader, $namespace);
<add>
<add>/**
<add> * Define the FULL_BASE_URL used for link generation.
<add> * In most cases the code below will generate the correct hostname.
<add> * However, you... | 6 |
Text | Text | fix typo in n-api.md | 6101bd209e059a27356e95322e1317e49443f9b5 | <ide><path>doc/api/n-api.md
<ide> invoking the callback. This should be a value previously obtained
<ide> from [`napi_async_init`][].
<ide> - `[out] result`: The newly created scope.
<ide>
<del>There are cases(for example resolving promises) where it is
<add>There are cases (for example resolving promises) where it is... | 1 |
Javascript | Javascript | add more test cases | ac09ae1418cc6da37966c60af070c89b69834836 | <ide><path>test/cases/parsing/harmony-duplicate-export/1.js
<ide> export var x = "1";
<del>export * from "./a";
<add>export * from "./a?1";
<ide><path>test/cases/parsing/harmony-duplicate-export/2.js
<del>export * from "./a";
<add>export * from "./a?2";
<ide> export var x = "1";
<ide><path>test/cases/parsing/harmony-du... | 27 |
PHP | PHP | fix strict warnings on php 5.4 | 172e4bed5d262529a9376061b2043d5e1dbd4cef | <ide><path>lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
<ide> public function create(Model $model, $fields = null, $values = null) {
<ide> return compact('model', 'fields', 'values');
<ide> }
<ide>
<del> public function read(Model $model, $queryData = array()) {
<add> public function read(Model $mod... | 4 |
Text | Text | fix code examples in zlib.md | 6cfdbc74d95c501d022b413cf024eb211d23c808 | <ide><path>doc/api/zlib.md
<ide> http.createServer((request, response) => {
<ide>
<ide> // Note: This is not a conformant accept-encoding parser.
<ide> // See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
<del> if (acceptEncoding.match(/\bdeflate\b/)) {
<add> if (/\bdeflate\b/.test(acceptEncodin... | 1 |
Javascript | Javascript | add unit test for pdf file loaded as typed array | 9f1e140c4fa3b0e5db8b535363e2d8275341df08 | <ide><path>test/unit/api_spec.js
<ide> describe('api', function() {
<ide> expect(true).toEqual(true);
<ide> });
<ide> });
<del> /*
<ide> it('creates pdf doc from typed array', function() {
<del> // TODO
<add> var nonBinaryRequest = PDFJS.disableWorker;
<add> var r... | 1 |
PHP | PHP | fix permissions setting script | d4bc47d8e731fa2a0d019ee7278b20e28c84ded5 | <ide><path>App/App/Console/Installer.php
<ide> public static function createAppConfig($dir, $io) {
<ide> * @return void
<ide> */
<ide> public static function setTmpPermissions($dir, $io) {
<del> $walker = function ($dir, $perms) use ($io, &$walker) {
<add> /**
<add> * Change the permissions on a path and output ... | 1 |
Text | Text | add @nodejs/build to onboarding-extras.md | 20b78055668893530c8077e522a92a867260d570 | <ide><path>doc/onboarding-extras.md
<ide> | `test/*` | @nodejs/testing |
<ide> | `tools/eslint`, `.eslintrc` | @not-an-aardvark, @silverwind, @trott |
<ide> | async_hooks | @nodejs/async_hooks for bugs/reviews (+ @nodejs/diagnostics for API) |
<add>| build | @nodejs/build |
<ide> | performance | @nodejs/performance |
<... | 1 |
Text | Text | fix code blocks in readme | 95252369ae6ea2a07336f9546a3f499d662eefc4 | <ide><path>README.md
<ide> var Message = React.createClass({
<ide>
<ide> Custom iOS views can be exposed by subclassing RCTViewManager, implementing a -(UIView *)view method, and exporting properties with the RCT_EXPORT_VIEW_PROPERTY macro. Then a simple JavaScript file connects the dots.
<ide>
<del>```javascript
<a... | 1 |
Ruby | Ruby | fix a few bugs when trying to use head standalone | 8cb2cfbf71092f95090335cbdde0340cc74db748 | <ide><path>actionpack/lib/abstract_controller/base.rb
<ide> class ActionNotFound < StandardError; end
<ide> class Base
<ide> attr_internal :response_body
<ide> attr_internal :action_name
<add> attr_internal :formats
<ide>
<ide> include ActiveSupport::Configurable
<ide> extend ActiveSupport::Descen... | 4 |
Ruby | Ruby | fix array comparison | e4823ea6fe4fa7a89c2dd6da59e091e29ba5a6f0 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide> end
<ide>
<ide> unversioned_name = f.name.gsub(/@.+$/, "")
<del> maybe_paths = Dir.glob("#{f.etc}/*#{unversioned_name}*") - paths
<add> maybe_paths = Dir.glob("#{f.etc}/*#{unversioned_name}*") - paths.t... | 1 |
Ruby | Ruby | improve written bottle output | fd254c3874ad949af9ad3d6510611a31ebc9bc47 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def merge
<ide> else
<ide> formula_path = HOMEBREW_REPOSITORY+formula_relative_path
<ide> end
<add> has_bottle_block = f.class.send(:bottle).checksums.any?
<ide> inreplace formula_path do |s|
<del> if f.bottle
<del> ... | 1 |
Javascript | Javascript | use timeupdate as well as rvfc/raf for cues | 9b81afee8011c7d33f60618d3c190f407b0eca73 | <ide><path>src/js/tracks/text-track.js
<ide> class TextTrack extends Track {
<ide> const activeCues = new TextTrackCueList(this.activeCues_);
<ide> let changed = false;
<ide>
<del> this.timeupdateHandler = Fn.bind(this, function() {
<add> this.timeupdateHandler = Fn.bind(this, function(event = {}) {
<ide... | 2 |
Ruby | Ruby | remove local variable color | af85e8a987ace926a5d0c21b87a68e2664cfba19 | <ide><path>railties/lib/rails/test_unit/reporter.rb
<ide> class TestUnitReporter < Minitest::StatisticsReporter
<ide>
<ide> def record(result)
<ide> super
<del> color = COLOR_CODES_FOR_RESULTS[result.result_code]
<ide>
<ide> if options[:verbose]
<del> io.puts color_output(format_line(resul... | 1 |
Mixed | Go | fix some typos | 950073aabb305db6156709ea8509b1f72ff06f3b | <ide><path>api/client/container/diff.go
<ide> type diffOptions struct {
<ide> container string
<ide> }
<ide>
<del>// NewDiffCommand creats a new cobra.Command for `docker diff`
<add>// NewDiffCommand creates a new cobra.Command for `docker diff`
<ide> func NewDiffCommand(dockerCli *client.DockerCli) *cobra.Command {
... | 17 |
Text | Text | add topic "wireshark feature" | c3d2903d78f48da03cad5aba72f23c925a264bd7 | <ide><path>guide/english/security/wireshark/index.md
<ide> title: Wireshark
<ide>
<ide> Wireshark is an open source network analyzer application that is available for Linux, macOS and Windows. It allows you to "sniff" [packets](../../network-engineering/packets/) being sent to and from different nodes on a network.
<i... | 1 |
Javascript | Javascript | fix jslint warnings in fonts.js | 0dc0dd4c970778cd8eb73142bd10b21084e535ce | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide>
<ide> // Ensure the [h/v]mtx tables contains the advance width and
<ide> // sidebearings information for numGlyphs in the maxp table
<del> font.pos = (font.start ? font.start : 0) + maxp.offset;
<add> font.pos = (font.start || 0) + max... | 1 |
Ruby | Ruby | remove incomplete files in cache on `brew cleanup` | e0f99945421243bc332002dec4f8e25220237aeb | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_keg(keg)
<ide> def cleanup_cache
<ide> return unless HOMEBREW_CACHE.directory?
<ide> HOMEBREW_CACHE.children.each do |path|
<add> if path.to_s.end_with? ".incomplete"
<add> cleanup_path(path) { path.unlink }
<add> next
<add> ... | 1 |
Javascript | Javascript | allow time to finish requests | 909951d9759a9e544f636bdb1632dd1eae3391ad | <ide><path>test/unit/testreporter.js
<ide> var TestReporter = function(browser, appPath) {
<ide> this.reportSuiteResults = function(suite) { };
<ide>
<ide> this.reportRunnerResults = function(runner) {
<del> sendQuitRequest();
<add> // Give the test.py some time process any queued up requests
<add> setTim... | 1 |
Text | Text | add the text | 0f118eb147b986c712022892085a58a4bfe18739 | <ide><path>guide/english/blockchain/cryptocurrency/index.md
<ide> Cryptocurrency can be exchanged as fractions not possible with traditional curre
<ide>
<ide> If you want to earn bitcoins through mining, it can be done through solving mathematical proof-of-work problems that validate transactions. Blockchain uses the ... | 1 |
Javascript | Javascript | replace fixturesdir with fixtures.readkey | 59e6791fe5bc9c04ced109e4c222aed6954c7d11 | <ide><path>test/parallel/test-https-agent-secure-protocol.js
<ide> if (!common.hasCrypto)
<ide>
<ide> const assert = require('assert');
<ide> const https = require('https');
<del>const fs = require('fs');
<add>const fixtures = require('../common/fixtures');
<ide>
<ide> const options = {
<del> key: fs.readFileSync(`$... | 1 |
Text | Text | replace mozilla labs by just mozilla | 529062a61bd53bd844c7b1ab04e1f666a8c357ca | <ide><path>README.md
<ide>
<ide> [PDF.js](https://mozilla.github.io/pdf.js/) is a Portable Document Format (PDF) viewer that is built with HTML5.
<ide>
<del>PDF.js is community-driven and supported by Mozilla Labs. Our goal is to
<add>PDF.js is community-driven and supported by Mozilla. Our goal is to
<ide> create a ... | 1 |
Go | Go | remove unused rootfs.baselayer | 25c896fcc25c64c5803b8ffdfceaa5aa1b99a139 | <ide><path>api/types/types.go
<ide> import (
<ide>
<ide> // RootFS returns Image's RootFS description including the layer IDs.
<ide> type RootFS struct {
<del> Type string
<del> Layers []string `json:",omitempty"`
<del> BaseLayer string `json:",omitempty"`
<add> Type string `json:",omitempty"`
<add> Laye... | 1 |
Ruby | Ruby | improve clarity of routing tests | be2a3b0a9319683e25ce06dda55b6d12a0c806ed | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def self.call(params, request)
<ide> end
<ide> end
<ide>
<del> stub_controllers do |routes|
<del> Routes = routes
<del> Routes.draw do
<del> default_url_options :host => "rubyonrails.org"
<del> resources_path_names :correlation_indexes =>... | 1 |
Text | Text | add audiomack to inthewild.md | 6c0855d444defe5d0f7c30f4b9de9472564c6501 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Artelys](https://www.artelys.com/) [[@fortierq](https://github.com/fortierq)]
<ide> 1. [Asana](https://asana.com/) [[@chang](https://github.com/chang), [@dima-asana](https://github.com/dima-asana), [@jdavidheiser](https://github.com/jdavid... | 1 |
Go | Go | skip some test under non-root | 4aae77602a7540b4f977572f3fbdc0891ac57cab | <ide><path>pkg/mount/mount_unix_test.go
<ide> func TestMountOptionsParsing(t *testing.T) {
<ide> }
<ide>
<ide> func TestMounted(t *testing.T) {
<add> if os.Getuid() != 0 {
<add> t.Skip("root required")
<add> }
<add>
<ide> tmp := path.Join(os.TempDir(), "mount-tests")
<ide> if err := os.MkdirAll(tmp, 0777); err != n... | 3 |
Ruby | Ruby | fix failing test | 8f8c3cc1b195b29551c10fea40889dae92ac3b55 | <ide><path>Library/Homebrew/test/test_integration_cmds.rb
<ide> class Testball < Formula
<ide> ensure
<ide> cmd("uninstall", "--force", "testball")
<ide> cmd("cleanup", "--force", "--prune=all")
<del> formula_file.unlink
<add> formula_file.unlink unless formula_file.nil?
<ide> end
<ide>
<ide> def t... | 1 |
Go | Go | add unit test to check bind / server side | ab35aef6b5b15c7c2d7aff4315025563b93ee379 | <ide><path>integration/api_test.go
<ide> func TestPostContainersStart(t *testing.T) {
<ide> containerKill(eng, containerID, t)
<ide> }
<ide>
<add>// Expected behaviour: using / as a bind mount source should throw an error
<add>func TestRunErrorBindMountRootSource(t *testing.T) {
<add> eng := NewTestEngine(t)
<add> de... | 1 |
Python | Python | detect iec 559 nextafter function | 789ec8e18116c9f4fc8998c6ec0487ab275523c6 | <ide><path>numpy/core/setup_common.py
<ide> def check_api_version(apiversion, codegen_dir):
<ide> # replacement implementation. Note that some of these are C99 functions.
<ide> OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh", "atanh",
<ide> "rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow",
<del>... | 1 |
Javascript | Javascript | improve touchable debugging | 5c9b46c15e62d269d8eb6e9b3891f8626c51f1e5 | <ide><path>Libraries/Components/Touchable/Touchable.js
<ide> /**
<add> * Copyright (c) 2013-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>... | 8 |
Java | Java | fix compiler warnings | 1022683d1c122de07816346c980b25e174564c5a | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/CodecException.java
<ide> *
<ide> * @author Sebastien Deleuze
<ide> */
<add>@SuppressWarnings("serial")
<ide> public class CodecException extends NestedRuntimeException {
<ide>
<ide> public CodecException(String msg, Throwable cause) {
<id... | 25 |
PHP | PHP | use a class constant for easier extandability | 59fec3dfc6459dca28bc11d2543e23924186202b | <ide><path>src/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component
<ide>
<ide> use EventDispatcherTrait;
<ide>
<add> /**
<add> * The query string key used for remembering the referrered page when getting
<add> * redirected to login.
<add> */
<add> const QUERY_STRIN... | 1 |
Text | Text | use es6 syntax and the object spread operator | 9547056465d0758c8fb601699e5389a44d4dfc78 | <ide><path>docs/recipes/ReducingBoilerplate.md
<ide> The middleware that interprets such actions could look like this:
<ide>
<ide> ```js
<ide> function callAPIMiddleware({ dispatch, getState }) {
<del> return function (next) {
<del> return function (action) {
<del> const {
<del> types,
<del> cal... | 1 |
Text | Text | use un-minified three.js in fiddles | d5e3cb3fab32b07d7f369e80fe67c4019b1ea4d3 | <ide><path>.github/CONTRIBUTING.md
<ide> 1. Specify the revision number of the three.js library where the bug occurred.
<ide> 2. Specify your browser version, operating system, and graphics card. (for example, Chrome 23.0.1271.95, Windows 7, Nvidia Quadro 2000M)
<ide> 3. Describe the problem in detail. Explain what hap... | 2 |
Javascript | Javascript | add tests for ternary operator in class bindings | a75451c878d3cda382da583118e8c021366ee82f | <ide><path>packages/ember-handlebars/tests/handlebars_test.js
<ide> test("{{view}} should evaluate class bindings set to global paths", function() {
<ide> window.App = Ember.Application.create({
<ide> isApp: true,
<ide> isGreat: true,
<del> directClass: "app-direct"
<add> directClass... | 2 |
Ruby | Ruby | restore env setting for global options | 5e98d4df088128d32036bc2518db754714aa6f81 | <ide><path>Library/Homebrew/cli/parser.rb
<ide> def initialize(&block)
<ide> @formula_options = false
<ide>
<ide> self.class.global_options.each do |short, long, desc|
<del> switch short, long, description: desc
<add> switch short, long, description: desc, env: option_to_name(long)
<i... | 1 |
Python | Python | remove tabs and unnecessary whitespace | 37abe7a2f64dbd5dffee0d5abd5784b15191d9a5 | <ide><path>numpy/core/setup.py
<ide> def generate_umath_c(ext,build_dir):
<ide> # (don't ask). Because clib are generated before extensions, we have to
<ide> # explicitly add an extension which has generate_config_h and
<ide> # generate_numpyconfig_h as sources *before* adding npymath.
<del> config.add_l... | 5 |
Text | Text | update coverage badge and link to coveralls | e510ace5a7874daa9c49b5767ebf60ee48de1586 | <ide><path>README.md
<ide> <a href="https://travis-ci.org/cakephp/cakephp" target="_blank">
<ide> <img alt="Build Status" src="https://img.shields.io/travis/cakephp/cakephp/master.svg?style=flat-square">
<ide> </a>
<del> <a href="https://codecov.io/github/cakephp/cakephp" target="_blank">
<del> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.