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 annthurium updates | cbda39eb58deac68973142345544bb713b16802f | <ide><path>docs/focus/2018-05-07.md
<ide> - Prevent FilePath pane from popping up all the time due to an overeager mouseup handler [atom/github#1435](https://github.com/atom/github/pull/1435)
<ide> - Clear the branch name after a successful checkout [atom/github#1438](https://github.com/atom/github/pull/1438)
<ide>... | 1 |
Javascript | Javascript | add license headers to new files | 83101b878ed55b9c43ffd49311654e02bd738c9d | <ide><path>src/core/__tests__/ReactIdentity-test.js
<ide> /**
<add> * Copyright 2013 Facebook, Inc.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License at
<add> *
<add> * htt... | 4 |
Javascript | Javascript | fix selectnode in fabric | 6163029d4af7528b441a6db153bb6449f16951cf | <ide><path>Libraries/Inspector/DevtoolsOverlay.js
<ide> export default function DevtoolsOverlay({
<ide> locationX,
<ide> locationY,
<ide> viewData => {
<del> const {touchedViewTag} = viewData;
<del> if (touchedViewTag != null) {
<add> const {touchedViewTag, closestInst... | 2 |
Ruby | Ruby | remove warning in namespaced generator test | 573448f0114a9fe1c80cfb6b84ced842fa4ea63a | <ide><path>railties/test/generators/namespaced_generators_test.rb
<ide> def test_namespaced_controller_dont_indent_blank_lines
<ide> run_generator
<ide> assert_file "app/controllers/test_app/account_controller.rb" do |content|
<ide> content.split("\n").each do |line|
<del> assert_no_match /^\s+$/, ... | 1 |
Python | Python | add better debug logging to k8sexec and k8spodop | eee4e30f2caf02e16088ff5d1af1ea380a73e982 | <ide><path>airflow/executors/base_executor.py
<ide> def queue_task_instance(
<ide> pool=pool,
<ide> pickle_id=pickle_id,
<ide> cfg_path=cfg_path)
<add> self.log.debug("created command %s", command_list_to_run)
<ide> self.queue_command(
<ide> task_instance,
... | 3 |
Text | Text | update replit links to clone from repos | d23feadc1f000fdeb8d3ef994157bfeef8d233be | <ide><path>curriculum/challenges/english/07-scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter.md
<ide> challengeType: 10
<ide> <section id='description'>
<ide> Create a function that receives a list of strings that are arithmetic problems and returns the problems arranged v... | 13 |
Javascript | Javascript | centralize props memoization | 7268d97d2b2b595db24cb6210e535dd2bd421df2 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js
<ide> function updateForwardRef(
<ide> nextChildren,
<ide> renderExpirationTime,
<ide> );
<del> memoizeProps(workInProgress, nextProps);
<ide> return workInProgress.child;
<ide> }
<ide>
<ide> function updatePureComponent(
<ide> nextChildr... | 2 |
Javascript | Javascript | use performance.now() when possible | 629594ece5ed2229143ca1f1b62c07aa0824b35e | <ide><path>src/js/component.js
<ide> class Component {
<ide> pageY: event.touches[0].pageY
<ide> };
<ide> // Record start time so we can detect a tap vs. "touch and hold"
<del> touchStart = new Date().getTime();
<add> touchStart = window.performance.now();
<ide> // Reset ... | 3 |
Java | Java | remove unused variable | 36400807ab968f9e48aee2292545147e74462caf | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java
<ide> public class NetInfoModule extends ReactContextBaseJavaModule
<ide> private static final String ERROR_MISSING_PERMISSION = "E_MISSING_PERMISSION";
<ide>
<ide> private final ConnectivityManager mConnectivityManager;
<d... | 1 |
Text | Text | remove extra comma in image pull api examples | 307c39c187f8785d8edae4bfd460e2dd0432626a | <ide><path>docs/reference/api/docker_remote_api_v1.22.md
<ide> Query Parameters:
<ide> {
<ide> "username": "jdoe",
<ide> "password": "secret",
<del> "email": "jdoe@acme.com",
<add> "email": "jdoe@acme.com"
<ide> }
<ide> ```
<ide>
<ide><path>docs/reference/a... | 4 |
Javascript | Javascript | fix textarea cursor positioning in ie - fixes | 531dac71be52d9ec38d990b020a3b0d8f833fcc4 | <ide><path>packages/ember-handlebars/lib/controls/text_area.js
<ide> Ember.TextArea = Ember.View.extend(Ember.TextSupport,
<ide> cols: null,
<ide>
<ide> _updateElementValue: Ember.observer(function() {
<del> this.$().val(get(this, 'value'));
<add> // We do this check so cursor position doesn't get affected i... | 1 |
Ruby | Ruby | remove extra white spaces on activerecord docs | 0034b7822d6132f5945b0514a5391d18e52aa4b6 | <ide><path>activerecord/lib/active_record/aggregations.rb
<ide> module ClassMethods
<ide> # order in which mappings are defined determine the order in which attributes are sent to the
<ide> # value class constructor.
<ide> # * <tt>:allow_nil</tt> - Specifies that the value object will not be insta... | 25 |
Go | Go | add remove flags for service update | dc33fc1ff433fcc70efc22f5cea9b87c6ec64a3b | <ide><path>api/client/service/opts.go
<ide> func addServiceFlags(cmd *cobra.Command, opts *serviceOptions) {
<ide> flags.StringVar(&opts.name, flagName, "", "Service name")
<ide> flags.VarP(&opts.labels, flagLabel, "l", "Service labels")
<ide>
<del> flags.VarP(&opts.env, "env", "e", "Set environment variables")
<add... | 4 |
Javascript | Javascript | remove numeric fallback of symbols | 587e759302ef1cc02954831ccc72f7f668e32426 | <ide><path>packages/react/src/__tests__/ReactElement-test.js
<ide> let ReactTestUtils;
<ide>
<ide> describe('ReactElement', () => {
<ide> let ComponentClass;
<del> let originalSymbol;
<ide>
<ide> beforeEach(() => {
<ide> jest.resetModules();
<ide>
<del> // Delete the native Symbol if we have one to ensur... | 5 |
Python | Python | fix data type of parameter shape | 119bf865b15747bea815ec3ced10e2bbc1ba8de1 | <ide><path>numpy/ma/extras.py
<ide> def masked_all(shape, dtype=float):
<ide>
<ide> Parameters
<ide> ----------
<del> shape : tuple
<del> Shape of the required MaskedArray.
<add> shape : int or tuple of ints
<add> Shape of the required MaskedArray, e.g., ``(2, 3)`` or ``2``.
<ide> dtype... | 1 |
PHP | PHP | simplify const names | e41f9a4743f0635defa6d1bba1baa1affa17b5c4 | <ide><path>src/Validation/Validation.php
<ide> class Validation
<ide>
<ide> /**
<ide> * Default locale
<del> *
<del> * @var string
<ide> */
<ide> const DEFAULT_LOCALE = 'en_US';
<ide>
<ide> /**
<ide> * Same as operator.
<del> *
<del> * @var string
<ide> */
<del> cons... | 2 |
Text | Text | fix minor typos in autoloading guide | fec81049fe57bab6cca53b8c2d11bd668c0c9942 | <ide><path>guides/source/constant_autoloading_and_reloading.md
<ide> that may live in any other class or module object. If there were any, they
<ide> would have separate entries in their respective constant tables.
<ide>
<ide> Put special attention in the previous paragraphs to the distinction between
<del>class and m... | 1 |
PHP | PHP | add fixture for failing test | 83644ea4263915d58de8e95a09b513158fa97b68 | <ide><path>tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * Fo... | 1 |
Ruby | Ruby | fix actionmailer tests that depend on run order | 73f0afd1d41aa6c3febcc2e93e4d19d9bf0f27dc | <ide><path>actionmailer/test/base_test.rb
<ide> def stub_queue(klass, queue)
<ide> end
<ide>
<ide> test "assets tags should use a Mailer's asset_host settings when available" do
<del> ActionMailer::Base.config.asset_host = "global.com"
<del> ActionMailer::Base.config.assets_dir = "global/"
<add> begin
<ad... | 1 |
Text | Text | fix yaml syntax errors | ad012c9bbc2f273920be92f006166197cca46518 | <ide><path>doc/api/buffer.md
<ide> added:
<ide> changes:
<ide> - version:
<ide> - v14.10.0
<del> = v12.19.0
<add> - v12.19.0
<ide> pr-url: https://github.com/nodejs/node/pull/34960
<ide> description: This function is also available as `buf.readBigUint64LE()`.
<ide> -->
<ide><path>doc/api/modules.md
... | 3 |
Text | Text | add code examples to node test runner | 6975dd14253e936509e2a68b293101fa234e53af | <ide><path>doc/api/test.md
<ide> This function is used to write TAP diagnostics to the output. Any diagnostic
<ide> information is included at the end of the test's results. This function does
<ide> not return a value.
<ide>
<add>```js
<add>test('top level test', (t) => {
<add> t.diagnostic('A diagnostic message');
<... | 1 |
Go | Go | lock container when deleting its root directory | 18e322bc7c530d7b4393aca64e70dcad659621e3 | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) cleanupContainer(container *container.Container, config ty
<ide> container.RWLayer = nil
<ide> }
<ide>
<del> if err := containerfs.EnsureRemoveAll(container.Root); err != nil {
<add> // Hold the container lock while deleting the container root directory
<add> ... | 1 |
Javascript | Javascript | remove overriding removeobserver on bind views | 86f5f87b06d4786f90c6e3c5bb5725f1b38654c0 | <ide><path>packages/sproutcore-handlebars/lib/helpers/binding.js
<ide> var get = SC.get, getPath = SC.getPath, set = SC.set, fmt = SC.String.fmt;
<ide> // is an empty string, we are printing the current context
<ide> // object ({{this}}) so updating it is not our responsibility.
<ide> if (property !==... | 1 |
PHP | PHP | route | 902ecb9bc84a8b4632ed87e0cf5952aaf848a069 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function public_path($path = '')
<ide> /**
<ide> * Generate a URL to a named route.
<ide> *
<del> * @param string $route
<add> * @param string $name
<ide> * @param array $parameters
<add> * @param bool $absolute
<add> * @param \Illuminate\Routing\... | 1 |
Go | Go | add env and labels to log context | 656cdbb0e96a1f8531b118caedd8e9b3d281c201 | <ide><path>daemon/container.go
<ide> func (container *Container) getLogger() (logger.Logger, error) {
<ide> ContainerImageID: container.ImageID,
<ide> ContainerImageName: container.Config.Image,
<ide> ContainerCreated: container.Created,
<add> ContainerEnv: container.Config.Env,
<add> ContainerLab... | 2 |
Java | Java | fix error handling in jackson2jsondecoder | aa43472f2ea1f8aaffa65be917bc24603dc4d56c | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/Jackson2JsonDecoder.java
<ide> private Flux<Object> decodeInternal(JsonObjectDecoder objectDecoder, Publisher<D
<ide> return value;
<ide> }
<ide> catch (IOException ex) {
<del> return Flux.error(new CodecException("Error while ... | 2 |
Javascript | Javascript | drop separate findpendingwork phase | b63cda6e852b55d0f4b7d0419da2068c8540bf34 | <ide><path>src/renderers/shared/fiber/ReactChildFiber.js
<ide> function ChildReconciler(shouldClone) {
<ide> exports.reconcileChildFibers = ChildReconciler(true);
<ide>
<ide> exports.reconcileChildFibersInPlace = ChildReconciler(false);
<add>
<add>
<add>function cloneSiblings(current : Fiber, workInProgress : Fiber, r... | 7 |
Javascript | Javascript | fix misuse of setproperties | 37fbe405e2bb5fe7b10a96713148771edaff1919 | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> Ember._RenderBuffer.prototype =
<ide> var buffer = new Ember._RenderBuffer(tagName);
<ide> buffer.parentBuffer = parent;
<ide>
<del> if (other) { buffer.setProperties(other); }
<add> if (other) { Ember.$.extend(buffer, other); }
<ide> ... | 1 |
Python | Python | add full exceptions with spaces | bced6309e5c9e8d4f0bc006f2a20b0230e2f289f | <ide><path>spacy/lang/es/tokenizer_exceptions.py
<ide> "Dra.",
<ide> "EE.UU.",
<ide> "Ee.Uu.",
<del> "UU.", # For "EE. UU."
<del> "Uu.", # For "Ee. Uu."
<add> "EE. UU.",
<add> "Ee. Uu.",
<ide> "etc.",
<ide> "fig.",
<ide> "Gob.", | 1 |
Ruby | Ruby | add path check | a37d53aa890e7cf0e21fa1b71ebf74c009efce21 | <ide><path>Library/Homebrew/brew_doctor.rb
<ide> def check_homebrew_prefix
<ide> end
<ide> end
<ide>
<add>def check_user_path
<add> seen_prefix_bin = false
<add> seen_prefix_sbin = false
<add> seen_usr_bin = false
<add>
<add> paths = ENV['PATH'].split(":")
<add>
<add> paths.each do |p|
<add> if p == '/us... | 1 |
Text | Text | fix detaching from attached container | 1d2a1598c54d9ca8d3d02ec5e7b0231a8cf153d3 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> container at the same time - screen sharing style, or quickly view the
<ide> progress of your daemonized process.
<ide>
<ide> You can detach from the container again (and leave it running) with
<del>`CTRL-C` (for a quiet exit) or `CTRL-\`
<del>to get a stacktr... | 1 |
Go | Go | use a const for ".docker" string | 565712014f3dfe01b0b5012ab46a7e26217538f2 | <ide><path>cliconfig/config.go
<ide> import (
<ide> const (
<ide> // ConfigFileName is the name of config file
<ide> ConfigFileName = "config.json"
<add> configFileDir = ".docker"
<ide> oldConfigfile = ".dockercfg"
<ide>
<ide> // This constant is only used for really old config files when the
<ide> var (
<ide>
... | 2 |
Javascript | Javascript | fix jquery.queue leaks empty queues | 80af46e8ffe8292e0af0537db6c7e89019e5edba | <ide><path>src/queue.js
<ide> jQuery.extend({
<ide> jQuery.dequeue(elem, type);
<ide> });
<ide> }
<add>
<add> if ( !queue.length ) {
<add> jQuery.removeData( elem, type + "queue", true );
<add> }
<ide> }
<ide> });
<ide> | 1 |
Mixed | Javascript | remove scope $destroy event | ac5151a469667b1cc1b5e2f96d330b71631efd0b | <ide><path>CHANGELOG.md
<ide> behavior and migrate your controllers one at a time: <https://gist.github.com/16
<ide> - before: `scope.$watch('expression', function(scope, newVal, oldVal) {})`
<ide> - after: `scope.$watch('expression', function(newVal, oldVal, scope) {}, true)`
<ide>
<add>- `scope.$destroy` doesn't... | 5 |
PHP | PHP | avoid use of compact() | 67d44451b690700aa525df9ac4512c47e151a090 | <ide><path>src/ORM/Behavior/Translate/ShadowTableStrategy.php
<ide> public function beforeSave(Event $event, EntityInterface $entity, ArrayObject $o
<ide> return;
<ide> }
<ide>
<del> $where = compact('id', 'locale');
<add> $where = ['id' => $id, 'locale' => $locale];
<ide>
<ide> ... | 1 |
Javascript | Javascript | check ipv6 support before testing it | c7b42fe2e5342c903cf36351d1d13b9d43261b70 | <ide><path>test/common.js
<ide> var path = require('path');
<ide> var fs = require('fs');
<ide> var assert = require('assert');
<add>var os = require('os');
<ide>
<ide> exports.testDir = path.dirname(__filename);
<ide> exports.fixturesDir = path.join(exports.testDir, 'fixtures');
<ide> if (process.platform === 'win32'... | 5 |
Text | Text | fix wrong table | 2a1afe6b372b9c8c59b875ebaa0e4f29e407afc2 | <ide><path>guides/source/active_record_migrations.md
<ide> add_foreign_key :articles, :authors
<ide> ```
<ide>
<ide> This adds a new foreign key to the `author_id` column of the `articles`
<del>table. The key references the `id` column of the `articles` table. If the
<add>table. The key references the `id` column of t... | 1 |
PHP | PHP | throw decryptexception on error, for consistency | 8d0e7b1281fc6cfc005484547ca95a15fa1eb4e4 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public function decrypt($payload)
<ide> */
<ide> protected function mcryptDecrypt($value, $iv)
<ide> {
<del> return mcrypt_decrypt($this->cipher, $this->key, $value, $this->mode, $iv);
<add> try {
<add> return mcrypt_decrypt($this->cipher, $this->key, $va... | 1 |
Ruby | Ruby | allow revert of whole migration [] | 65e154f33b54acf40b51082fc5b681ba605015d9 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def initialize(name = self.class.name, version = nil)
<ide> self.verbose = true
<ide> self.delegate = new
<ide>
<del> # Reverses the migration commands for the given block.
<add> # Reverses the migration commands for the given block and
<add> ... | 2 |
PHP | PHP | add @method annotation to connectioninterface | 32833086aa17c1036e8638df5c98d0d9c9699b1a | <ide><path>src/Datasource/ConnectionInterface.php
<ide> * @method \Cake\Database\Query newQuery()
<ide> * @method \Cake\Database\StatementInterface prepare($sql)
<ide> * @method \Cake\Database\StatementInterface execute($query, $params = [], array $types = [])
<add> * @method \Cake\Database\StatementInterface query(... | 1 |
Ruby | Ruby | fix keyword arguments warnings | 352560308bc13b881efd6d062134a9a67102b204 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def set_content_type(m, user_content_type, class_default) # :doc:
<ide> # If the subject has interpolations, you can pass them through the +interpolations+ parameter.
<ide> def default_i18n_subject(interpolations = {}) # :doc:
<ide> mailer_scop... | 4 |
Text | Text | remove some sfc references | ac74f15f0d155e2487ca8bfb80650c2335f1812a | <ide><path>README.md
<ide> Good luck!
<ide>
<ide> Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to the project. Every donation will be spent on making Homebrew better for our users.
... | 2 |
Java | Java | extract idgenerator into a top-level class | ce3e55743f23100f0e4044320cdb1f168ca76ea3 | <ide><path>spring-core/src/main/java/org/springframework/util/AlternativeJdkIdGenerator.java
<add>/*
<add> * Copyright 2002-2013 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> ... | 3 |
Text | Text | improve documentation [ci skip] | db8b06099f1f7a0e2f109c3574bbd88c99d43bce | <ide><path>guides/source/active_record_postgresql.md
<ide> article.save!
<ide> * [type definition](http://www.postgresql.org/docs/9.3/static/datatype-uuid.html)
<ide> * [generator functions](http://www.postgresql.org/docs/9.3/static/uuid-ossp.html)
<ide>
<add>NOTE: you need to enable the `uuid-ossp` extension to use u... | 1 |
Javascript | Javascript | set null reference properties to `undefined` | d19504a179355d7801d59a8db0285a1322e04601 | <ide><path>src/ng/parse.js
<ide> ASTCompiler.prototype = {
<ide> }
<ide> }
<ide> recursionFn(intoId);
<add> }, function() {
<add> self.assign(intoId, 'undefined');
<ide> });
<ide> }, !!create);
<ide> break;
<ide><path>test/ng/parseSpec.js
<ide> describ... | 2 |
Go | Go | add pubsub package to handle robust publisher | 2f46b7601a3f5e11359b79624d73075b69778fbb | <ide><path>api/stats/stats.go
<add>// This package is used for API stability in the types and response to the
<add>// consumers of the API stats endpoint.
<ide> package stats
<ide>
<del>import (
<del> "time"
<del>
<del> "github.com/docker/libcontainer"
<del> "github.com/docker/libcontainer/cgroups"
<del>)
<add>import ... | 6 |
Ruby | Ruby | simplify tab test setup | d443089270addfc9588c9efba399763523b88de4 | <ide><path>Library/Homebrew/test/test_tab.rb
<ide>
<ide> class TabTests < Homebrew::TestCase
<ide> def setup
<del> @used, @unused = Options.new, Options.new
<del> @used << Option.new("with-foo") << Option.new("without-bar")
<del> @unused << Option.new("with-baz") << Option.new("without-qux")
<add> @used ... | 1 |
Ruby | Ruby | fix an example of using inflector's #parameterize | 010cce6ad1d134786eaa3f814319ebbe2e63123b | <ide><path>activesupport/lib/active_support/inflector.rb
<ide> def demodulize(class_name_in_module)
<ide> # @person = Person.find(1)
<ide> # # => #<Person id: 1, name: "Donald E. Knuth">
<ide> #
<del> # <%= link_to(@person.name, person_path %>
<add> # <%= link_to(@person.name, person_path(@per... | 1 |
PHP | PHP | add test methods for path() in paginator objects | 774ac42fdbddd4e208511a6786452d5232d8ae51 | <ide><path>tests/Pagination/LengthAwarePaginatorTest.php
<ide> public function testLengthAwarePaginatorCanGenerateUrls()
<ide> $this->p->setPath('http://website.com');
<ide> $this->p->setPageName('foo');
<ide>
<add> $this->assertEquals('http://website.com',
<add> $this... | 2 |
Mixed | Go | support multi-dir wildcards in .dockerignore | eddb14a44eb3ca6ba0b5e6906e21d767eba1af86 | <ide><path>docs/reference/builder.md
<ide> eliminates `.` and `..` elements using Go's
<ide> [filepath.Clean](http://golang.org/pkg/path/filepath/#Clean). Lines
<ide> that are blank after preprocessing are ignored.
<ide>
<add>Beyond Go's filepath.Match rules, Docker also supports a special
<add>wildcard string `**` t... | 4 |
Javascript | Javascript | expose a core version of `$animatecss` | 39b634e50a9ed140649d4be119a291debe527d55 | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide>
<ide> 'src/ng/anchorScroll.js',
<ide> 'src/ng/animate.js',
<add> 'src/ng/animateCss.js',
<ide> 'src/ng/browser.js',
<ide> 'src/ng/cacheFactory.js',
<ide> 'src/ng/compile.js',
<ide><path>src/AngularPublic.js
<ide>
<ide> $AnchorScrollP... | 4 |
Javascript | Javascript | keep error codes in alphabetical order | fa73087fcf4bd14db7791120e688a0a508885b64 | <ide><path>lib/internal/errors.js
<ide> E('ERR_BUFFER_OUT_OF_BOUNDS', bufferOutOfBounds);
<ide> E('ERR_CONSOLE_WRITABLE_STREAM',
<ide> 'Console expects a writable stream instance for %s');
<ide> E('ERR_CPU_USAGE', 'Unable to obtain cpu usage %s');
<del>E('ERR_NO_LONGER_SUPPORTED', '%s is no longer supported');
<ide> ... | 1 |
Javascript | Javascript | add space to blockdonationtext | 92ffe117f1fe3469aef23a92d2f7956975f30b85 | <ide><path>client/src/components/Donation/DonationModal.js
<ide> function DonateModal({ show, block, isBlockDonation, closeDonationModal }) {
<ide> <Row>
<ide> {!closeLabel && (
<ide> <Col sm={10} smOffset={1} xs={12}>
<del> <b>Nicely done. You just completed {blockNameify(block)}.</b... | 1 |
Python | Python | retrieve cpu info and append it to extra key | 1ee6ea3f62e01010035310322618bb8128e62dcc | <ide><path>libcloud/compute/drivers/linode.py
<ide> def list_sizes(self, location=None):
<ide> for obj in data:
<ide> n = NodeSize(id=obj["PLANID"], name=obj["LABEL"], ram=obj["RAM"],
<ide> disk=(obj["DISK"] * 1024), bandwidth=obj["XFER"],
<del> price... | 3 |
Javascript | Javascript | add more truetype rewriting magic ('post' table) | c345a4c75e8383247c85bc5d75bba45a8c775a27 | <ide><path>fonts.js
<ide> var kMaxWaitForFontFace = 1000;
<ide> * many fonts are loaded.
<ide> */
<ide> var fontCount = 0;
<add>var fontName = "";
<ide>
<ide> /**
<ide> * Hold a map of decoded fonts and of the standard fourteen Type1 fonts and
<ide> var Fonts = {
<ide> },
<ide>
<ide> set active(aName) {
<add>... | 2 |
Text | Text | accept suggestions of rylan | 17c25980f97e6f8176a5fa05ff7d4a207a7a09de | <ide><path>docs/Homebrew-Governance.md
<ide>
<ide> ## 2. Members
<ide>
<del>1. New members will be admitted by majority vote of the Project Leadership Committee (PLC) and added to the Homebrew organisation on GitHub.
<add>1. New members will be admitted by an ordinary resolution of the PLC and added to the Homebrew o... | 1 |
Javascript | Javascript | use promise for queue() | bac576c433ac3b85dc50df567fe008589af99091 | <ide><path>packager/src/lib/BatchProcessor.js
<ide> type BatchProcessorOptions = {
<ide> concurrency: number,
<ide> };
<ide>
<add>type QueueItem<TItem, TResult> = {
<add> item: TItem,
<add> reject: (error: mixed) => mixed,
<add> resolve: (result: TResult) => mixed,
<add>};
<add>
<ide> /**
<ide> * We batch items ... | 4 |
Javascript | Javascript | change default iphone version | 6d09df5b726ac951417b87a49bc345ebc9142951 | <ide><path>local-cli/runIOS/runIOS.js
<ide> module.exports = {
<ide> {
<ide> command: '--simulator [string]',
<ide> description: 'Explicitly set simulator to use',
<del> default: 'iPhone 6',
<add> default: 'iPhone X',
<ide> },
<ide> {
<ide> command: '--configuration [string]', | 1 |
PHP | PHP | keep default=false for boolean columns | e2e5dfb91ed83403d0715583ea1f0ada79d37c25 | <ide><path>lib/Cake/Model/CakeSchema.php
<ide> protected function _columns(&$Obj) {
<ide> unset($value['limit']);
<ide> }
<ide>
<del> if (isset($value['default']) && ($value['default'] === '' || $value['default'] === false)) {
<add> if (isset($value['default']) && ($value['default'] === '' || ($value['defau... | 1 |
PHP | PHP | fix bad merge | 8b0227d5a2d22c67254ca22a43475f854f3c141f | <ide><path>tests/TestCase/TestSuite/IntegrationTestTraitTest.php
<ide> use Cake\Event\EventManager;
<ide> use Cake\Http\Middleware\EncryptedCookieMiddleware;
<ide> use Cake\Http\Response;
<del><<<<<<< HEAD
<del>=======
<del>use Cake\Routing\DispatcherFactory;
<del>>>>>>>> 3.next
<ide> use Cake\Routing\Router;
<ide> use... | 1 |
PHP | PHP | fix typo that removed '$' from '$key' | 83f37e48a9e6ee9885196f210e8bcaeab970a0b8 | <ide><path>lib/Cake/Routing/Route/CakeRoute.php
<ide> protected function _parseArgs($args, $context) {
<ide> $separatorIsPresent = strpos($param, $namedConfig['separator']) !== false;
<ide> if ((!isset($this->options['named']) || !empty($this->options['named'])) && $separatorIsPresent) {
<ide> list($key, $val... | 1 |
Go | Go | add debug for error in the server | b7937e268fcbc529a168164fc242edc56d51094c | <ide><path>api.go
<ide> func parseMultipartForm(r *http.Request) error {
<ide> }
<ide>
<ide> func httpError(w http.ResponseWriter, err error) {
<add> statusCode := http.StatusInternalServerError
<ide> if strings.HasPrefix(err.Error(), "No such") {
<del> http.Error(w, err.Error(), http.StatusNotFound)
<add> statusCo... | 1 |
Javascript | Javascript | switch textinput to uselayouteffect | 208ebed074cfbc25125e709c1645844247601f2f | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> import type {PressEvent} from '../../Types/CoreEventTypes';
<ide> import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
<ide> import type {TextInputNativeCommands} from './TextInputNativeCommands';
<ide>
<del>const {useEffect, useRef, use... | 1 |
Text | Text | add missing link | 4f0220b7805a320e33ebee4bea21bfffbc12c2ee | <ide><path>docs/topics/third-party-resources.md
<ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque
<ide> [drf-create-issue]: https://github.com/tomchristie/django-rest-framework/issues/new
<ide> [authentication]: ../api-guide/authentication.md
<ide> [permissions]: ../api-guide/permis... | 1 |
Python | Python | add amp for albert | 31b0560ab4e5d5d3652dd931c11e630dbfbb3900 | <ide><path>src/transformers/models/albert/modeling_tf_albert.py
<ide> # limitations under the License.
<ide> """ TF 2.0 ALBERT model. """
<ide>
<del>
<add>import math
<ide> from dataclasses import dataclass
<del>from typing import Dict, Optional, Tuple
<add>from typing import Dict, Optional, Tuple, Union
<ide>
<add>i... | 8 |
Python | Python | handle string with only whitespaces as empty | 21451ec6ba364de78c14e7d05a55913da2809844 | <ide><path>transformers/tokenization_utils.py
<ide> def split_on_token(tok, text):
<ide> return result
<ide>
<ide> def split_on_tokens(tok_list, text):
<del> if not text:
<add> if not text.strip():
<ide> return []
<ide> if not tok_list:
<ide> ... | 1 |
Javascript | Javascript | fix incorrect types in the api documentation | ba4a07ce075a87fcbfdaaed6c22c1a1e14583d4b | <ide><path>src/display/api.js
<ide> class PDFDocumentProxy {
<ide> }
<ide>
<ide> /**
<del> * @returns {Promise<Object<string,any>>} A promise that is resolved with
<del> * a lookup table for mapping named destinations to reference numbers.
<add> * @returns {Promise<Object<string, Array<any>>>} A promise th... | 1 |
Ruby | Ruby | add a migration schema model | 67fba0cfa93feaa183d546de625e63cb16c56d7d | <ide><path>activerecord/lib/active_record/migration.rb
<ide> require "active_support/core_ext/module/delegation"
<ide> require "active_support/core_ext/class/attribute_accessors"
<ide> require 'active_support/deprecation'
<add>require 'active_record/schema_migration'
<ide>
<ide> module ActiveRecord
<ide> # Exception... | 2 |
PHP | PHP | remove the morphclass | 244a0a90c3e015aead0b49f871618fba95ccec58 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab
<ide> */
<ide> protected $with = [];
<ide>
<del> /**
<del> * The class name to be used in polymorphic relations.
<del> *
<del> * @var string
<del> */
... | 1 |
Ruby | Ruby | copy edit[ci skip] | 2642c2961cda2074cc1495a4635898ca8ab33adf | <ide><path>actionpack/lib/abstract_controller/base.rb
<ide> def action_methods
<ide> #
<ide> # Notice that <tt>action_methods.include?("foo")</tt> may return
<ide> # false and <tt>available_action?("foo")</tt> returns true because
<del> # available action consider actions that are also available
<add> ... | 1 |
Python | Python | fix xlm tests | a31e591d27a099ca6bd30949ecd7cc61213b8327 | <ide><path>pytorch_transformers/modeling_xlm.py
<ide> def forward(self, x, y=None):
<ide> scores = self.proj(x)
<ide> outputs = (scores,) + outputs
<ide> if y is not None:
<del> loss = F.cross_entropy(scores.view(-1, self.n_words), y, reduction='elementwise_mean')
<add... | 2 |
Javascript | Javascript | fix docblock of reactfragment | a74138bdee6c78991d514438a82dae88854f589f | <ide><path>src/addons/ReactFragment.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<del>* @providesModule ReactFragment
<del>*/
<add> * @providesModule ReactFragment
<add> */
<ide>
<ide> ... | 1 |
PHP | PHP | avoid pass by reference error on 5.4 | e4542827c85c6558833bb8ce1c8b63ef2cd12c76 | <ide><path>lib/Cake/Routing/Filter/AssetDispatcher.php
<ide> public function beforeDispatch($event) {
<ide> return $response;
<ide> }
<ide>
<del> $ext = array_pop(explode('.', $url));
<add> $pathSegments = explode('.', $url);
<add> $ext = array_pop($pathSegments);
<ide> $this->_deliverAsset($response, $asset... | 1 |
Python | Python | add missing code markers | f419af9f61160e8a1a52e5a42efd607648030ae9 | <ide><path>keras/wrappers/scikit_learn.py
<ide> def fit(self, x, y, **kwargs):
<ide>
<ide> # Arguments
<ide> x : array-like, shape `(n_samples, n_features)`
<del> Training samples where n_samples is the number of samples
<del> and n_features is the number of features.
... | 1 |
Ruby | Ruby | tap the subscriber for easier return value | 234b9699463ba435086aa253ee143014a835bbe6 | <ide><path>activesupport/lib/active_support/notifications/fanout.rb
<ide> def initialize
<ide>
<ide> def subscribe(pattern = nil, &block)
<ide> @listeners_for.clear
<del> @subscribers << Subscriber.new(pattern, &block)
<del> @subscribers.last
<add> Subscriber.new(pattern, &block).tap... | 1 |
Mixed | Javascript | move htmltojsx.js to react-magic project | 1d1b6ed07a25b122b5964df8fd235e3cf95060a7 | <ide><path>docs/_js/html-jsx-lib.js
<del>/**
<del> * Copyright 2013-2014 Facebook, Inc.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the License.
<del> * You may obtain a copy of the License at
<del> *
<del> * http://www.apac... | 2 |
Ruby | Ruby | use cache_store for descriptions | fe6b78a3f390a72073b35d164d601bbd84db09a9 | <ide><path>Library/Homebrew/cache_store.rb
<ide> def created?
<ide> cache_path.exist?
<ide> end
<ide>
<add> # Returns the modification time of the cache file (if it already exists).
<add> #
<add> # @return [Time]
<add> def mtime
<add> return unless created?
<add> cache_path.mtime
<add> end
<add>
<add>... | 15 |
PHP | PHP | add array to url action method argument | 74f1bdcd40000f8acf5e0b10f12370d50c5fea47 | <ide><path>src/Illuminate/Support/Facades/URL.php
<ide> /**
<ide> * @method static \Illuminate\Contracts\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace)
<ide> * @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true)
<del> * @method static string action(s... | 1 |
Javascript | Javascript | replace map with array in cluster-net-listen tests | 7d4dedbf6a34b8744fa2c58adff12737bf5e0e35 | <ide><path>test/sequential/test-cluster-net-listen-ipv6only-none.js
<ide> const host = '::';
<ide> const WORKER_ACCOUNT = 3;
<ide>
<ide> if (cluster.isMaster) {
<del> const workers = new Map();
<add> const workers = [];
<ide>
<ide> const countdown = new Countdown(WORKER_ACCOUNT, () => {
<ide> // Make sure the... | 2 |
Go | Go | add platform to container, init on fromdisk() | f97fbba5cec3d27099e230f7c1dc278c54180d74 | <ide><path>container/container.go
<ide> import (
<ide> "net"
<ide> "os"
<ide> "path/filepath"
<add> "runtime"
<ide> "strconv"
<ide> "strings"
<ide> "sync"
<ide> type Container struct {
<ide> LogPath string
<ide> Name string
<ide> Driver string
<add> Platform string
<ide> // ... | 1 |
Javascript | Javascript | hide the overlay when fabric/tm are both disabled | 951785de8a6a7df1b782701f8c480ae5ba691e38 | <ide><path>Libraries/ReactNative/ReactNativeArchitectureIndicator.js
<ide> function ReactNativeArchitectureIndicator(props: {|
<ide> parts.push('TM');
<ide> }
<ide> }
<add>
<add> if (parts.length === 0) {
<add> return null;
<add> }
<add>
<ide> return (
<ide> <View style={styles.container}>
<ide> ... | 1 |
PHP | PHP | apply fixes from styleci | dd58def4e5fca939c2f51fe58702a996ec29c520 | <ide><path>src/Illuminate/Routing/Router.php
<ide> namespace Illuminate\Routing;
<ide>
<ide> use Closure;
<del>use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Http\Response; | 1 |
Javascript | Javascript | add test for debugger restart message issue | b2fa795159190e96bab2a4c13e91fab6e1aa8e6b | <ide><path>test/known_issues/test-debugger-restart-message.js
<add>'use strict';
<add>
<add>// Refs: https://github.com/nodejs/node/issues/39272
<add>
<add>const common = require('../common');
<add>
<add>const assert = require('assert');
<add>
<add>// When this is moved out of known_issues, this skip can be removed.
<a... | 1 |
Javascript | Javascript | get router history working with flux | 1c6e7612995e594312ddb86dde388e8d08e83475 | <ide><path>client/index.js
<ide> import { hydrate } from 'thundercats';
<ide> import { render$ } from 'thundercats-react';
<ide>
<ide> import { app$ } from '../common/app';
<add>import synchroniseHistory from './synchronise-history';
<ide>
<ide> const debug = debugFactory('fcc:client');
<ide> const DOMContianer = doc... | 5 |
Text | Text | add missing `blank=true` to model in tutorial | 41d3fe09cf3dd80cb8efed13dd886645ae7be470 | <ide><path>docs/tutorial/1-serialization.md
<ide> For the purposes of this tutorial we're going to start by creating a simple `Sni
<ide>
<ide> class Snippet(models.Model):
<ide> created = models.DateTimeField(auto_now_add=True)
<del> title = models.CharField(max_length=100, default='')
<add> ... | 1 |
Go | Go | remove mkdirallnewas and update tests | 6150ebf7b483197f4b8755df60e750b6410e95ca | <ide><path>libcontainerd/client_unix.go
<ide> func (clnt *client) prepareBundleDir(uid, gid int) (string, error) {
<ide> }
<ide> if os.IsNotExist(err) || fi.Mode()&1 == 0 {
<ide> p = fmt.Sprintf("%s.%d.%d", p, uid, gid)
<del> if err := idtools.MkdirAs(p, 0700, uid, gid); err != nil && !os.IsExist(err) {
<add> ... | 4 |
Text | Text | fix markdown style in doc | 5eb96dfbbaf21db9e400a4024d37dd51c7965d4e | <ide><path>libnetwork/docs/bridge.md
<ide> It creates a single bridge, called `docker0` by default, and attaches a `veth pa
<ide>
<ide> The bridge driver supports configuration through the Docker Daemon flags.
<ide>
<del>## Usage
<add>## Usage
<ide>
<ide> This driver is supported for the default "bridge" network on... | 1 |
Go | Go | add a nil check for sandbox.ossbox | d07d6814f3e9f5929b5f28b6d38473125cc41869 | <ide><path>libnetwork/sandbox.go
<ide> func (sb *sandbox) ResolveIP(ip string) string {
<ide> }
<ide>
<ide> func (sb *sandbox) ExecFunc(f func()) error {
<del> return sb.osSbox.InvokeFunc(f)
<add> sb.Lock()
<add> osSbox := sb.osSbox
<add> sb.Unlock()
<add> if osSbox != nil {
<add> return osSbox.InvokeFunc(f)
<add> }
... | 1 |
Javascript | Javascript | use arrow functions for callbacks | 175c318bc18beb8643fa9948a117cdef84f518e0 | <ide><path>test/addons/make-callback-recurse/test.js
<ide> const makeCallback = binding.makeCallback;
<ide> const mustCallCheckDomains = common.mustCall(checkDomains);
<ide>
<ide> // Make sure that using MakeCallback allows the error to propagate.
<del>assert.throws(function() {
<del> makeCallback({}, function() {
<a... | 1 |
Ruby | Ruby | handle apfs returning hash order | 212367ee7eda101d4514b968e0e48d97b00b5695 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def __check_stray_files(dir, pattern, white_list, message)
<ide> end
<ide> return if files.empty?
<ide>
<del> inject_file_list(files, message)
<add> inject_file_list(files.sort, message)
<ide> end
<ide>
<ide> def check_for_stray... | 1 |
PHP | PHP | add tests for saving decimal values | 38b29727adf6a0c51231a90504e268a2492044ae | <ide><path>tests/Fixture/DatatypesFixture.php
<ide> class DatatypesFixture extends TestFixture
<ide> public $fields = [
<ide> 'id' => ['type' => 'biginteger'],
<ide> 'cost' => ['type' => 'decimal', 'length' => 20, 'precision' => 1, 'null' => true],
<add> 'fraction' => ['type' => 'decimal', 'l... | 3 |
Javascript | Javascript | fix jquery to jqlite binding on ie8 | 2170c06924b3a0dc1fef3b383d6a236e670dceea | <ide><path>test/jqLiteSpec.js
<ide> describe('jqLite', function(){
<ide> });
<ide>
<ide>
<add> it('should be jqLite when jqLiteMode is on, otherwise jQuery', function() {
<add> expect(jqLite).toBe(_jqLiteMode ? jqLiteWrap : _jQuery);
<add> });
<add>
<add>
<ide> describe('construction', function(){
<ide> ... | 4 |
Ruby | Ruby | use #to_s to convert range to json | dc05914be766583a22c959b2df64cfd2dfe88732 | <ide><path>activesupport/lib/active_support/json/encoding.rb
<ide> def as_json(options = nil) #:nodoc:
<ide> end
<ide> end
<ide>
<add>class Range
<add> def as_json(options = nil) to_s end #:nodoc:
<add>end
<add>
<ide> class Array
<ide> def as_json(options = nil) #:nodoc:
<ide> # use encoder as a proxy to call... | 2 |
Ruby | Ruby | accept variation keys in #preview and #variant | 62ff514d33d3a3b0930956a4b4866e6b228c278c | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> def text?
<ide> # This will create a URL for that specific blob with that specific variant, which the ActiveStorage::VariantsController
<ide> # can then produce on-demand.
<ide> def variant(transformations)
<del> ActiveStorage::Variant.new(self, ... | 2 |
Text | Text | explain why gh4w | 4afae028ec875f20cc78c23f0307f3f0a07c2d13 | <ide><path>docs/build-instructions/windows.md
<ide> cd atom
<ide> script\build
<ide> ```
<add>
<add>## Why do I have to use GitHub for Windows? Can't I just use my existing Git?
<add>
<add>You totally can! GitHub for Windows's Git Shell just takes less work to set up. You need to have Posix tools in your `%PATH... | 1 |
Java | Java | add newline at the beginning of textarea jsp tags | 44c32128dcdbd4fc848ae0873d4a6aa84383569c | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TextareaTag.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * yo... | 2 |
Python | Python | address a semantic difference between py2 and py3 | 4a26b70fd3c0dd6b4aca063a5ba504af3e91484f | <ide><path>numpy/f2py/cfuncs.py
<ide> def get_needs():
<ide> else:
<ide> out.append(outneeds[n][0])
<ide> del outneeds[n][0]
<del> if saveout and (0 not in map(lambda x,y:x==y,saveout,outneeds[n])):
<add> if saveout and (0 not in map(lambda x... | 1 |
Ruby | Ruby | do a single string interpolation | 70357666bc86629c8d10501209105b144855ddbc | <ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb
<ide> def rewrite_asset_path(source, path = nil)
<ide> if asset_id.empty?
<ide> source
<ide> else
<del> source + "?#{asset_id}"
<add> "#{source}?#{asset_id}"
<ide> end
<ide> end
<ide... | 1 |
Text | Text | add comment about highwatermark limit | b51d1cfbf27529346c7134f8fc4a855229543cc2 | <ide><path>doc/api/stream.md
<ide> A key goal of the `stream` API, particularly the [`stream.pipe()`][] method,
<ide> is to limit the buffering of data to acceptable levels such that sources and
<ide> destinations of differing speeds will not overwhelm the available memory.
<ide>
<add>The `highWaterMark` option is a t... | 1 |
Text | Text | add/readme example stateless lifecycle | 7699cbe9df231298bb6bc84b9728c5381a46b8ca | <ide><path>readme.md
<ide> For the initial page load, `getInitialProps` will execute on the server only. `g
<ide>
<ide> _Note: `getInitialProps` can **not** be used in children components. Only in `pages`._
<ide>
<add>You can also define the `getInitialProps` lifecycle method for stateless components:
<add>
<add>```j... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.