content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | improve test without using anonymous classes | e7f4c45bdc178c41face92e4be9ec027a07daeda | <ide><path>activerecord/test/cases/autosave_association_test.rb
<ide> def test_replace_on_new_object
<ide> assert_equal 2, firm.clients.length
<ide> assert_includes firm.clients, Client.find_by_name("New Client")
<ide> end
<del>
<del> def test_inverse_association_within_autosave_after_save_callback
<del> ... | 1 |
Javascript | Javascript | fix lint error | 397d427568ab5b5166542315dd557b0cdbf4891a | <ide><path>spec/text-editor-spec.js
<ide> describe('TextEditor', () => {
<ide>
<ide> {
<ide> editor.setText(' test')
<del> selection.setBufferRange([[0, 4], [0,4]])
<add> selection.setBufferRange([[0, 4], [0, 4]])
<ide> selection.toggleLineComments()
<ide>
<ide> ... | 1 |
Go | Go | ignore mtime changes on directories | 2ce37f6616762900aa941c0644dece9cdbf90124 | <ide><path>pkg/archive/changes.go
<ide> func (info *FileInfo) addChanges(oldInfo *FileInfo, changes *[]Change) {
<ide> oldStat.Gid() != newStat.Gid() ||
<ide> oldStat.Rdev() != newStat.Rdev() ||
<ide> // Don't look at size for dirs, its not a good measure of change
<del> (oldStat.Size() != newStat.Size()... | 2 |
Ruby | Ruby | remove dead code | ed5b076ff6b5e187db849728df313876c1e7fa39 | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
<ide> def pp(result) # :nodoc:
<ide> end
<ide>
<ide> def exec_query(sql, name = nil, binds = [])
<del> #if @prepared_statements && name != 'EXPLAIN'
<del> # unless sql.count('?') == binds.length
<del> # ... | 2 |
Text | Text | fix wrong imports in docs (about-keras-models) | 54a6133bb2079f28daac911ba2aeee71bb013e92 | <ide><path>docs/templates/models/about-keras-models.md
<ide> model = Sequential.from_config(config)
<ide> - `model.set_weights(weights)`: sets the values of the weights of the model, from a list of Numpy arrays. The arrays in the list should have the same shape as those returned by `get_weights()`.
<ide> - `model.to_js... | 1 |
Javascript | Javascript | remove unused args | 9134f5ce5a402bb76ba9bc5627ade282552898fe | <ide><path>test/directive/ngIncludeSpec.js
<ide> describe('ng-include', function() {
<ide>
<ide>
<ide> it('should include on external file', inject(putIntoCache('myUrl', '{{name}}'),
<del> function($rootScope, $compile, $browser) {
<add> function($rootScope, $compile) {
<ide> element = jqLite('<ng:inc... | 1 |
Text | Text | fix typo on text geometry primitive | 1c210f21e38aee732f8a5187e4239ed9127b027a | <ide><path>threejs/lessons/threejs-primitives.md
<ide> parameters so you can use more or less depending on your needs.
<ide> <div id="Diagram-DodecahedronGeometry" data-primitive="DodecahedronGeometry">A dodecahedron (12 sides)</div>
<ide> <div id="Diagram-ExtrudeGeometry" data-primitive="ExtrudeGeometry">An extruded 2... | 1 |
PHP | PHP | remove a mock where we can use arraycache | 2a7a5e9f5ec8f394c22315ad16a8615cfb807223 | <ide><path>tests/TestCase/Datasource/QueryCacherTest.php
<ide> class QueryCacherTest extends TestCase
<ide> public function setUp(): void
<ide> {
<ide> parent::setUp();
<del> $this->engine = $this->getMockBuilder('Cake\Cache\CacheEngine')->getMock();
<del> $this->engine->expects($this->any... | 1 |
Text | Text | remove skip-gems from 4-2 release notes | c1116e954c89428b2611e3a595e257e83c47a633 | <ide><path>guides/source/4_2_release_notes.md
<ide> Please refer to the [Changelog][railties] for detailed changes.
<ide>
<ide> ([Pull Request](https://github.com/rails/rails/pull/16129))
<ide>
<del>* Introduced a `--skip-gems` option in the app generator to skip gems such as
<del> `turbolinks` and `coffee-r... | 1 |
Text | Text | amend documentation to language.evaluate | fb73d4943a91d18cd36ded98994a932515f4bf05 | <ide><path>.github/contributors/laszabine.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
... | 2 |
Go | Go | fix error message on version too low | 0fd9b4067d5126a8059dc2821b835d3bde26e7eb | <ide><path>api/server/middleware.go
<ide> func versionMiddleware(handler httputils.APIFunc) httputils.APIFunc {
<ide> return errors.ErrorCodeNewerClientVersion.WithArgs(apiVersion, api.DefaultVersion)
<ide> }
<ide> if apiVersion.LessThan(api.MinVersion) {
<del> return errors.ErrorCodeOldClientVersion.WithArgs(... | 1 |
Go | Go | use beam.router to simplify 'logger' | 63fd2ec0f7ec091912435cedc081b132e66ae658 | <ide><path>pkg/beam/examples/beamsh/beamsh.go
<ide> func Handlers() (*beam.UnixConn, error) {
<ide> func GetHandler(name string) Handler {
<ide> if name == "logger" {
<ide> return func(args []string, in beam.Receiver, out beam.Sender) {
<del> var tasks sync.WaitGroup
<ide> stdout, err := beam.SendPipe(out, data... | 1 |
PHP | PHP | remove unused argument | e79911b04052c469704cb0f4cc5e2ea640955af3 | <ide><path>src/Error/ExceptionRenderer.php
<ide> class ExceptionRenderer {
<ide> * @param \Exception $exception Exception
<ide> */
<ide> public function __construct(\Exception $exception) {
<del> $this->controller = $this->_getController($exception);
<ide> $this->error = $exception;
<add> $this->controller = $th... | 2 |
Text | Text | remove extra "\" from description | 2a3e344d13904bc901c0a80b57176cae27adc184 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/step-004.md
<ide> dashedName: step-4
<ide>
<ide> Commenting allows you to leave messages without affecting the browser display. It also allows you to make code inactive. A comment in HTML starts with `<!--`, con... | 1 |
Text | Text | update the documentation | 26db31e0c09a8b5e1ca7a61c454b159eab9d86be | <ide><path>examples/README.md
<ide> In this section a few examples are put together. All of these examples work for several models, making use of the very
<ide> similar API between the different models.
<ide>
<add>**Important**
<add>To use the examples, execute the following steps in a new virtual environment:
<add>... | 1 |
PHP | PHP | add missing option | 828e105f48b624fe33d9659afc9de5ff863dadb0 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function meridian($fieldName, $options = array()) {
<ide> * matching the field name will override this value. If no default is provided `time()` will be used.
<ide> * - `timeFormat` The time format to use, either 12 or 24.
<ide> * - `second` Set to true to ena... | 1 |
Ruby | Ruby | consolidate passes through path ast | 6a2adeb39472253fa0e45115d0078944035fb6f6 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(set:, ast:, controller:, default_action:, to:, formatted:, via:,
<ide> @internal = options.delete(:internal)
<ide> @scope_options = scope_params[:options]
<ide>
<del> path_params = ast.find_all(... | 1 |
Ruby | Ruby | allow write access to cellars in repository | 58d998e20826a9d7b319b9677c91391240e22297 | <ide><path>Library/Homebrew/cmd/postinstall.rb
<ide> def run_post_install(formula)
<ide> sandbox.record_log(formula.logs/"postinstall.sandbox.log")
<ide> sandbox.allow_write_temp_and_cache
<ide> sandbox.allow_write_log(formula)
<del> sandbox.allow_write_cellar(formula)
<ide> sandb... | 1 |
Text | Text | fix example in faq | d49baf1bfb303e56d29d48847342b2bbfd7ce207 | <ide><path>docs/templates/faq.md
<ide> layer_output = get_3rd_layer_output(X)
<ide>
<ide> # with a Graph model
<ide> get_conv_layer_output = theano.function([model.inputs[i].input for i in model.input_order],
<del> model.outputs['conv'].get_output(train=False),
<add> ... | 1 |
Javascript | Javascript | replace master/slave with leader/follower | 3651e42e49ded7d410fd1cbd46f717056000afd4 | <ide><path>src/Angular.js
<ide> function arrayRemove(array, value) {
<ide> <button ng-click="update(user)">SAVE</button>
<ide> </form>
<ide> <pre>form = {{user | json}}</pre>
<del> <pre>master = {{master | json}}</pre>
<add> <pre>leader = {{leader | json}}</pre>
<ide> </div... | 3 |
Javascript | Javascript | use correct index when resolving bubble options | 53f503825219e4a8ff78be16b858a0e969f9b435 | <ide><path>src/controllers/controller.bubble.js
<ide> export default class BubbleController extends DatasetController {
<ide> };
<ide>
<ide> if (includeOptions) {
<del> properties.options = me.resolveDataElementOptions(i, mode);
<add> properties.options = me.resolveDataElementOptions(index, mode);
<ide>
<... | 1 |
Javascript | Javascript | catch undefined filename | d41afdc45af4853eceaeb6ccb7a3cfd561e475bf | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> var fileName;
<ide>
<add> var currentPath = loader.path;
<add>
<ide> var children = connections.get( textureNode.id ).children;
<ide>
<ide> if ( children !== undefined && children.length > 0 && images[ children[ 0 ].ID ] !== undefined ) {
<ide>
<ide> ... | 1 |
Go | Go | fix docs for config-default constants | ad4073edc174725849eb5b9c7f4977ce45a0ed19 | <ide><path>daemon/config/config.go
<ide> import (
<ide> const (
<ide> // DefaultMaxConcurrentDownloads is the default value for
<ide> // maximum number of downloads that
<del> // may take place at a time for each pull.
<add> // may take place at a time.
<ide> DefaultMaxConcurrentDownloads = 3
<ide> // DefaultMaxCon... | 1 |
Ruby | Ruby | check definition on constant not string | c29cfe389e5ba27e75d05a23823ebe7abe22e9d0 | <ide><path>actionpack/lib/action_controller/caching.rb
<ide> def cache_sweeper(*sweepers)
<ide> end
<ide> end
<ide>
<del> if defined?("ActiveRecord")
<add> if defined?(ActiveRecord::Observer)
<ide> class Sweeper < ActiveRecord::Observer
<ide> attr_accessor :controller
<ide> | 1 |
Javascript | Javascript | remove double word "then" in comments | e6c389cb3cb1888773c3d505ca954d5e846541aa | <ide><path>benchmark/net/net-pipe.js
<ide> function main({ dur, len, type }) {
<ide>
<ide> setTimeout(() => {
<ide> // Multiply by 2 since we're sending it first one way
<del> // then then back again.
<add> // then back again.
<ide> const bytes = writer.received * 2;
<ide> c... | 2 |
Python | Python | improve pytorch examples for fp16 | 10e5f28212ceb9b71eb7c8d3a12044d563723362 | <ide><path>examples/legacy/multiple_choice/run_multiple_choice.py
<ide> AutoConfig,
<ide> AutoModelForMultipleChoice,
<ide> AutoTokenizer,
<add> DataCollatorWithPadding,
<ide> EvalPrediction,
<ide> HfArgumentParser,
<ide> Trainer,
<ide> def compute_metrics(p: EvalPrediction) -> Dict:
<ide> ... | 10 |
PHP | PHP | add test for ignoring expired cookies | ea4951d2f0c91bffe4125869de536e6808cbd520 | <ide><path>tests/TestCase/Http/Cookie/CookieCollectionTest.php
<ide> public function testAddFromResponse()
<ide> 'Has expiry'
<ide> );
<ide> }
<add>
<add> /**
<add> * Test adding cookies from a response ignores expired cookies
<add> *
<add> * @return void
<add> */
<add> pub... | 1 |
Python | Python | add xfailing test for | 3b667787a932efdf2179bb8eb8a1654517e9a3e6 | <ide><path>spacy/tests/regression/test_issue3289.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy.lang.en import English
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue3289():
<add> """Test that Language.to_bytes handles serializing a pipeline comp... | 1 |
Python | Python | fix merge_dot tests | 8b3543fca9d811c638bb72d78601c8564f5465fd | <ide><path>examples/babi_memnn.py
<ide> def vectorize_stories(data, word_idx, story_maxlen, query_maxlen):
<ide> match = Sequential()
<ide> match.add(Merge([input_encoder_m, question_encoder],
<ide> mode='dot',
<del> dot_axes=[(2,), (2,)]))
<add> dot_axes=[2, 2]))
<ide> # o... | 6 |
Go | Go | fix unclear error message when deleting container | 70c1781e073287a0b012ce94ea1b233fd6628dfa | <ide><path>server.go
<ide> func (srv *Server) ContainerDestroy(job *engine.Job) engine.Status {
<ide> continue
<ide> }
<ide> if err := srv.runtime.volumes.Delete(volumeId); err != nil {
<del> job.Error(err)
<add> job.Errorf("Error calling volumes.Delete(%q): %v", volumeId, err)
<ide> return en... | 1 |
Python | Python | add regression test for | f35ce097762c3bfc7010cfe6ee8398c66d8223b0 | <ide><path>spacy/tests/regression/test_issue3839.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy.matcher import Matcher
<add>from spacy.tokens import Doc
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue3839(en_vocab):
<add> """Test that match IDs re... | 1 |
Python | Python | add test for textcat | 7dc76c6ff6b51749f39f3fabecee27417a77b1df | <ide><path>spacy/tests/test_textcat.py
<add>import random
<add>
<add>from ..pipeline import TextCategorizer
<add>from ..lang.en import English
<add>from ..vocab import Vocab
<add>from ..tokens import Doc
<add>from ..gold import GoldParse
<add>
<add>
<add>def test_textcat_learns_multilabel():
<add> docs = []
<add> ... | 1 |
Javascript | Javascript | add support for `component.prototype.layout` | 952efd0e1d6f1d205123f959d8679fd6e98ea1d1 | <ide><path>packages/ember-application/lib/system/application.js
<ide> function glimmerSetupRegistry(registry) {
<ide> });
<ide>
<ide> let glimmerOutletTemplate = require('ember-glimmer/templates/outlet').default;
<add> let glimmerComponentTemplate = require('ember-glimmer/templates/component').default;
<add> reg... | 2 |
Javascript | Javascript | fix flaky watchfile() | 8c305e1c2fc94e3d0b3e6a016f5635970e287df7 | <add><path>test/parallel/test-fs-watch-file-enoent-after-deletion.js
<del><path>test/sequential/test-fs-watch-file-enoent-after-deletion.js
<ide> const common = require('../common');
<ide> // stopped it from getting emitted.
<ide> // https://github.com/nodejs/node-v0.x-archive/issues/4027
<ide>
<del>const assert = req... | 1 |
Java | Java | commit changes to test | 41b6f4e351eec14bfd6e7a4759ed8b2cbbe7bf54 | <ide><path>spring-test/src/test/java/org/springframework/test/context/aot/TestContextAotGeneratorTests.java
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<ide> import java.util.Set;
<del>import java.util.function.Consumer;
<ide>
<ide> import org.junit.jupiter.api.Test;
<ide>
<ide> import org.springfr... | 1 |
Javascript | Javascript | parse opacity of material | c52fef3b548ecf7d252850ffaa9a2eaca6b26989 | <ide><path>examples/js/loaders/TDSLoader.js
<ide> THREE.TDSLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
<ide> material.shininess = shininess;
<ide> this.debugMessage( ' Shininess : ' + shininess );
<ide>
<add> } else if ( next === MAT_TRANSPARENCY ) {
<add>
<add> var opacity =... | 1 |
Text | Text | translate english "use" to spanish "usa" | 1d04e727e07d25d386d38b54df0a28b4a6632ab6 | <ide><path>curriculum/challenges/spanish/01-responsive-web-design/css-grid/add-gaps-faster-with-grid-gap.spanish.md
<ide> localeTitle: Agregue espacios más rápido con la rejilla
<ide> <section id="description"> <code>grid-gap</code> es una propiedad abreviada de <code>grid-row-gap</code> y <code>grid-column-gap</code> ... | 1 |
Ruby | Ruby | require instances to use a subclass | 93647e5c987f89f27502b79af4aedda8c917c6e3 | <ide><path>Library/Homebrew/requirement.rb
<ide> class Requirement
<ide> attr_reader :tags, :name, :cask, :download
<ide>
<ide> def initialize(tags = [])
<add> # Only allow instances of subclasses. This base class enforces no constraints on its own.
<add> # Individual subclasses use the `satisfy` DSL to defi... | 3 |
Javascript | Javascript | remove unused modules | 6abd8b587e978d03705d97f85d809f677cf97532 | <ide><path>test/addons/at-exit/test.js
<ide> 'use strict';
<ide> require('../../common');
<del>var binding = require('./build/Release/binding');
<add>require('./build/Release/binding');
<ide><path>test/internet/test-dns-ipv4.js
<ide> var common = require('../common');
<ide> var assert = require('assert'),
<ide> dns... | 29 |
Python | Python | remove some outdated comments | f306e941ffb0bc49604f5507aa8ea614d933cfd0 | <ide><path>numpy/array_api/linalg.py
<ide> def diagonal(x: Array, /, *, offset: int = 0) -> Array:
<ide> return Array._new(np.diagonal(x._array, offset=offset, axis1=-2, axis2=-1))
<ide>
<ide>
<del># Note: the keyword argument name upper is different from np.linalg.eigh
<ide> def eigh(x: Array, /) -> EighResult:
... | 1 |
Ruby | Ruby | extract logic into generic os classes. (#450) | a5ec0aa2598d702b68300e7400fad48e8a392527 | <ide><path>Library/Homebrew/emoji.rb
<add>module Emoji
<add> class << self
<add> def tick
<add> # necessary for 1.8.7 unicode handling since many installs are on 1.8.7
<add> @tick ||= ["2714".hex].pack("U*")
<add> end
<add>
<add> def cross
<add> # necessary for 1.8.7 unicode handling since many... | 5 |
Python | Python | add tests for "_get_numeric_id" | c67f1a97babbec3e67bed3df17a2ece45bff0d84 | <ide><path>libcloud/dns/base.py
<ide> def delete(self):
<ide> return self.driver.delete_record(record=self)
<ide>
<ide> def _get_numeric_id(self):
<add> """
<add> Return numeric ID for the provided record if the ID is a digit.
<add>
<add> This method is used for sorting the values when... | 2 |
Python | Python | improve error message and order + added unit tests | 6c8ce10093c3a63ac2791497905f01bc0b4daa54 | <ide><path>airflow/models.py
<ide> def detect_downstream_cycle(self, task=None):
<ide> task = self
<ide> for t in self.get_direct_relatives():
<ide> if task is t:
<del> msg = "Cycle detect in DAG. Faulty task: {0}".format(task)
<add> msg = "Cycle detected in... | 2 |
Javascript | Javascript | add missing semicolon | f77832499898d970ea665a92333a3ed2ec0d663c | <ide><path>packages/ember-metal/tests/run_loop/unwind_test.js
<ide> test('RunLoop unwinds despite unhandled exception', function() {
<ide>
<ide> raises(function(){
<ide> Ember.run(function() {
<del> Ember.run.schedule('actions', function() { throw new Error("boom!") });
<add> Ember.run.schedule('action... | 1 |
Ruby | Ruby | eliminate naked rescue | 951b09b1c51e8aded1b4b8d7e9e2c5523dee350c | <ide><path>Library/Homebrew/cmd/link.rb
<ide> def link
<ide> puts "Note that doing so can interfere with building software."
<ide> next
<ide> end
<del> rescue
<del> # Nothing to see here
<add> rescue FormulaUnavailableError
<ide> end
<ide>
<ide> keg.lock do | 1 |
Python | Python | improve the docstring of conv3dtranspose | 52e3f9835c1a25a8b895773f64524e27a5ae10c0 | <ide><path>keras/layers/convolutional.py
<ide> class Conv3DTranspose(Conv3D):
<ide> filters: Integer, the dimensionality of the output space
<ide> (i.e. the number of output filters in the convolution).
<ide> kernel_size: An integer or tuple/list of 3 integers, specifying the
<del> ... | 1 |
Go | Go | move `exportcontainerrw` to the daemon | 581380cc6cd26f43fe5e69965873769d8dc739ef | <ide><path>daemon/commit.go
<ide> package daemon
<ide>
<ide> import (
<ide> "github.com/docker/docker/image"
<add> "github.com/docker/docker/pkg/archive"
<add> "github.com/docker/docker/pkg/ioutils"
<ide> "github.com/docker/docker/runconfig"
<ide> )
<ide>
<ide> func (daemon *Daemon) Commit(container *Container, c *... | 2 |
Javascript | Javascript | prevent non-js merge conflicts in brocfile.js | 4e66ab623ac9dcc0722d801e9cc114668e3dfd04 | <ide><path>Brocfile.js
<ide> function es6Package(packageName) {
<ide>
<ide> libTree = pickFiles('packages/' + packageName + '/lib', {
<ide> srcDir: '/',
<add> files: ['**/*.js'],
<ide> destDir: packageName
<ide> });
<ide>
<ide> function es6Package(packageName) {
<ide>
<ide> var testTree = pickFiles(... | 1 |
PHP | PHP | add additional test coverage for createfile() | 116062b9abf459195e52f1388e0b6e22319c3177 | <ide><path>tests/TestCase/Console/ShellTest.php
<ide> public function testShortPath() {
<ide> */
<ide> public function testCreateFileNonInteractive() {
<ide> $eol = PHP_EOL;
<del>
<ide> $path = TMP . 'shell_test';
<ide> $file = $path . DS . 'file1.php';
<ide>
<ide> new Folder($path, true);
<ide>
<del> $thi... | 1 |
Java | Java | add systrace support for api 18+ in oss | 853d249468b5c2a00dc7eb792e154b0f0541404f | <ide><path>ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java
<ide>
<ide> package com.facebook.systrace;
<ide>
<add>import android.os.Build;
<add>import android.os.Trace;
<add>
<ide> /**
<del> * Systrace stub.
<add> * Systrace stub that mostly does nothing but delegates to Trace for beginning/ending secti... | 1 |
Javascript | Javascript | fix unique reflectnode | f75df95e815b45ca9a807b5563a0234e9798875b | <ide><path>examples/jsm/nodes/accessors/ReflectNode.js
<ide> ReflectNode.prototype.generate = function ( builder, output ) {
<ide>
<ide> if ( isUnique ) {
<ide>
<del> builder.addNodeCode( `vec3 reflectVec = ${result};` );
<add> builder.addNodeCode( `vec3 reflectVec = ${code};` );
<ide>
<ide> result ... | 1 |
Javascript | Javascript | make 5th arg optional for renderchunkmodules | 5782d6b16022b16af233af797a2438e589794a10 | <ide><path>lib/Template.js
<ide> class Template {
<ide> * @param {ModuleFilterPredicate} filterFn function used to filter modules from chunk to render
<ide> * @param {any} moduleTemplate ModuleTemplate instance used to render modules
<ide> * @param {any | any[]} dependencyTemplates templates needed for each modul... | 1 |
Javascript | Javascript | resolve a763ae72 test failures | 30e2ffbeb869bb2f65ef139633c68a1c62f0e892 | <ide><path>test/unit/manipulation.js
<ide> var testAppend = function( valueObj ) {
<ide> d.remove();
<ide> equal( jQuery("#nonnodes").contents().length, 3, "Check node,textnode,comment append cleanup worked" );
<ide>
<del> $input = jQuery("<input />").attr({
<del> "type": "checkbox",
<del> "checked": true
<del> })... | 1 |
Python | Python | fix issues with see also sections of generic | 5fe30a63923f8060913e3d4e9e8b99a3a83bf9c4 | <ide><path>numpy/core/_add_newdocs.py
<ide> albeit unimplemented, all the attributes of the ndarray class so as to
<ide> provide a uniform API.
<ide>
<del> See Also
<del> --------
<del> The corresponding attribute of the derived class of interest.
<add> See also the corresponding attribute of the d... | 1 |
Java | Java | turn flatviewmanager into viewgroupmanager | ad74dabb68e62bd3ccbb63ab5bc024f78b3a4b5d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java
<ide> public LayoutShadowNode createShadowNodeInstance() {
<ide> }
<ide>
<ide> @Override
<del> public Class<LayoutShadowNode> getShadowNodeClass() {
<add> public Class<? extends LayoutShadowNode> getShadowNodeClass() {
<ide>... | 1 |
Python | Python | convert more node states | 446300d88de9087fe8e3e6544d22140aa23ecc28 | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide> def _to_node(self, data, fetch_nic=True):
<ide> r = self.connection.request(action,
<ide> params={"api-version": "2015-06-15"})
<ide> for status in r.object["statuses"]:
<del> if status[... | 1 |
Python | Python | ensure graceful handling of large header sizes | 81bc4565b50c6cebb21c95c685285e32e1fb9b65 | <ide><path>numpy/lib/format.py
<ide> (3, 0): ('<I', 'utf8'),
<ide> }
<ide>
<add># Python's literal_eval is not actually safe for large inputs, since parsing
<add># may become slow or even cause interpreter crashes.
<add># This is an arbitrary, low limit which should make it safe in practice.
<add>_MAX_HEADER_SIZE ... | 4 |
Text | Text | remove references to ie 8 in docs | ee03c19b3b21a644a477f60132376207cda7c6f1 | <ide><path>docs/docs/03-interactivity-and-dynamic-uis.md
<ide> ReactDOM.render(
<ide>
<ide> ## Event Handling and Synthetic Events
<ide>
<del>With React you simply pass your event handler as a camelCased prop similar to how you'd do it in normal HTML. React ensures that all events behave identically in IE8 and above ... | 3 |
Ruby | Ruby | reset column information after schema changed | 56de573131cce08079c30d7631395726104eea1b | <ide><path>activerecord/test/cases/associations/belongs_to_associations_test.rb
<ide> def test_raises_type_mismatch_with_namespaced_class
<ide> remove_column :admin_users, :region_id if column_exists?(:admin_users, :region_id)
<ide> drop_table :admin_regions, if_exists: true
<ide> end
<add>
<add> Adm... | 2 |
Text | Text | add documentation for test common module | 2cfd7fd8f9a2206a0cce0e9f6fa92850fbdbb4e3 | <ide><path>test/README.md
<del># Tests
<add># Table of Contents
<add>* [Test directories](#test-directories)
<add>* [Common module API](#common-module-api)
<add>
<add>## Test Directories
<ide>
<ide> ### abort
<ide>
<ide> and `setInterval`).
<ide> | Runs on CI |
<ide> |:----------:|
<ide> | No |
<add>
<add>
<a... | 1 |
Text | Text | improve text in async_hooks.md | 8d336dd8b1268f2b23f72999ebbd54f1c12263b8 | <ide><path>doc/api/async_hooks.md
<ide> instances and asynchronous work scheduled by them.
<ide>
<ide> Users are able to define their own `type` when using the public embedder API.
<ide>
<del>*Note:* It is possible to have type name collisions. Embedders are encouraged
<del>to use unique prefixes, such as the npm pac... | 1 |
Python | Python | change version to glances 2.7 | a9ba618e9171ac2d74d8106c758af27b1b3640b4 | <ide><path>glances/__init__.py
<ide>
<ide> # Global name
<ide> __appname__ = 'glances'
<del>__version__ = '2.7_RC1'
<add>__version__ = '2.7_'
<ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
<ide> __license__ = 'LGPL'
<ide> | 1 |
Javascript | Javascript | fix wrong links in source code | 297c9b5b89a6e20d83631170e3c2f71448046bbd | <ide><path>src/Injector.js
<ide> *
<ide> * @description
<ide> * Creates an inject function that can be used for dependency injection.
<del> * (See {@link guide.di dependency injection})
<add> * (See {@link guide/di dependency injection})
<ide> *
<ide> * The inject function can be used for retrieving service instan... | 2 |
Javascript | Javascript | remove double calls where possible | ae5e23310e64db99ddefbf4904f74a42906d6451 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
<ide> function(e, ret) {
<ide> if (e && !isSyntaxError(e)) return finish(e);
<ide>
<del> if (typeof ret === 'function' || e) {
<add> if (typeof ret === 'function' &&
<a... | 2 |
Text | Text | fix typo in the changelog | cdf74eb5a00ceecfc52f1bc1b37e4a5f0f52452b | <ide><path>actionview/CHANGELOG.md
<ide>
<ide> *Paul Nikitochkin*
<ide>
<del>* Only cache template digests if `config.cache_template_loading` id true.
<add>* Only cache template digests if `config.cache_template_loading` is true.
<ide>
<ide> *Josh Lauer*, *Justin Ridgewell*
<ide> | 1 |
Python | Python | change int to str for cpu in limits | 24c8c3451ddff740d3c85cca5469a1df8ef2c381 | <ide><path>libcloud/compute/drivers/kubevirt.py
<ide> def create_node(self, name, image, location=None, ex_memory=128, ex_cpu=1,
<ide> vm['spec']['template']['spec']['domain']['resources'][
<ide> 'limits']['memory'] = memory
<ide> if ex_cpu < 10:
<del> cpu = int(ex_cpu)
<add> ... | 1 |
Ruby | Ruby | remove dead code | 90c9a09ff70388b32b9c9afca4ae998b99fd2d1f | <ide><path>activerecord/lib/active_record/statement_cache.rb
<ide> def bind(values)
<ide> def initialize(block = Proc.new)
<ide> @mutex = Mutex.new
<ide> @relation = nil
<del> @sql = nil
<ide> @binds = nil
<ide> @block = block
<ide> @query_builder = nil
<ide> def que... | 1 |
Text | Text | add appveyor badge to readme | c63329f5ed582263c1cb700e12ae0dc1a7f44d1a | <ide><path>README.md
<ide> # <img alt="NumPy" src="branding/icons/numpylogo.svg" height="60">
<ide>
<del>[](https://travis-ci.org/numpy/numpy)
<add>[](https://travis-ci.org... | 1 |
Ruby | Ruby | remove circular dependency | 13882d0067877ea512bc5b3ebf19950887833758 | <ide><path>activestorage/app/models/active_storage/variant.rb
<del>require "active_storage/blob"
<del>
<ide> # Image blobs can have variants that are the result of a set of transformations applied to the original.
<ide> # These variants are used to create thumbnails, fixed-size avatars, or any other derivative image fr... | 1 |
Javascript | Javascript | improve error message when action bubbles | dbcd947a81aca13005300637ef27701c00435de9 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> function triggerEvent(handlerInfos, ignoreFailure, args) {
<ide> }
<ide>
<ide> if (!eventWasHandled && !ignoreFailure) {
<del> throw new Ember.Error("Nothing handled the event '" + name + "'.");
<add> throw new Ember.Error("Nothing handled the acti... | 1 |
Ruby | Ruby | use cache to avoid rereading the same files | 10c79620c15dd2dc0b02b1376f6a79515f9d01af | <ide><path>Library/Homebrew/tab.rb
<ide> # `Tab.create`.
<ide> class Tab < OpenStruct
<ide> FILENAME = "INSTALL_RECEIPT.json"
<add> CACHE = {}
<add>
<add> def self.clear_cache
<add> CACHE.clear
<add> end
<ide>
<ide> def self.create(formula, compiler, stdlib, build)
<ide> attributes = {
<ide> def self.cre... | 2 |
Javascript | Javascript | remove old fly task related to `eval-script.js` | 1703ad302ca0dd4ae97d04fe593385c83c550fa5 | <ide><path>flyfile.js
<ide> const isWindows = /^win/.test(process.platform)
<ide>
<ide> export async function compile(fly) {
<ide> await fly.parallel(['bin', 'server', 'lib', 'client'])
<del> await fly.start('unrestrict')
<ide> }
<ide>
<ide> export async function bin(fly, opts) {
<ide> export async function client... | 1 |
Mixed | Javascript | allow wildcards in node_debug variable | fafd9fbd015ad091e1d43620e13eb2280b0cda08 | <ide><path>doc/api/util.md
<ide> FOO 3245: hello from foo [123]
<ide> where `3245` is the process id. If it is not run with that
<ide> environment variable set, then it will not print anything.
<ide>
<add>The `section` supports wildcard also, for example:
<add>```js
<add>const util = require('util');
<add>const debug... | 3 |
Javascript | Javascript | add unit tests for externalmodule | 7421d4728409b2cb89562b8942df3c57761751c6 | <ide><path>lib/ExternalModule.js
<ide> const WebpackMissingModule = require("./dependencies/WebpackMissingModule");
<ide> class ExternalModule extends Module {
<ide> constructor(request, type) {
<ide> super();
<del> this.chunkCondition = function(chunk) {
<del> return chunk.hasEntryModule();
<del> };
<ide> thi... | 2 |
Text | Text | fix links in google-font-display error | e0631d0ef115db42caf16b0e5c7b16052f85df15 | <ide><path>errors/google-font-display.md
<ide> If you want to specifically display a font using a `block` or `fallback` strateg
<ide>
<ide> ### Useful Links
<ide>
<del>- [Font-display](https://font-display.glitch.me/)
<add>- [Google Fonts API Docs](https://developers.google.com/fonts/docs/css2#use_font-display)
<add>... | 1 |
Java | Java | fix checkstyle errors | b33d2f463406b71676c7aba6a03892bab9086e40 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java
<ide> * you may not use this file except in compliance with the License.
<ide> * You may obtain a copy of the License at
<ide> *
<del> * http://www.apache.org/licenses/LICENSE-2.0
<add> * htt... | 2 |
Javascript | Javascript | improve docs for angular.object.copy | d517bcad5b4db5a1a60159df537e69b70702a381 | <ide><path>src/Angular.js
<ide> function isLeafNode (node) {
<ide> *
<ide> * @param {*} source The source to be used to make a copy.
<ide> * Can be any type including primitives, `null` and `undefined`.
<del> * @param {(Object|Array)=} destination Optional destination into which the source is copie... | 1 |
Python | Python | fix init_fn in train_utils. | 87bc52c5e5f31ae8eda05ff17b9e7fb2a0905f4b | <ide><path>research/deeplab/utils/train_utils.py
<ide> def get_model_init_fn(train_logdir,
<ide> ignore_missing_vars=ignore_missing_vars)
<ide> global_step = tf.train.get_or_create_global_step()
<ide>
<del> def restore_fn(unused_scaffold, sess):
<add> def restore_fn(sess):
<ide> sess.run(init_o... | 1 |
Ruby | Ruby | install cask’s default tap if untapped | 0dd320318706bed665038350f11a74a0fb8e7f34 | <ide><path>Library/Homebrew/cask/lib/hbc/cli.rb
<ide> def self.process(arguments)
<ide> command_string, *rest = *arguments
<ide> rest = process_options(rest)
<ide> command = Hbc.help ? "help" : lookup_command(command_string)
<add> Hbc.default_tap.install unless Hbc.default_tap.installed?
<ide> Hbc.in... | 4 |
Text | Text | fix bert readme. always use keras_bert path | 83076c16069b961ab82b7df9ca6a731551b0cbf5 | <ide><path>official/nlp/bert/README.md
<ide> and unpack it to some directory `$GLUE_DIR`.
<ide>
<ide> ```shell
<ide> export GLUE_DIR=~/glue
<del>export BERT_BASE_DIR=gs://cloud-tpu-checkpoints/bert/tf_20/uncased_L-24_H-1024_A-16
<add>export BERT_BASE_DIR=gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A... | 1 |
Javascript | Javascript | fix webcrypto digest() invalid algorithm | 288304c888d00f07b4e3c969ca82990a8a0331e6 | <ide><path>lib/internal/crypto/hash.js
<ide> const {
<ide> prepareSecretKey,
<ide> } = require('internal/crypto/keys');
<ide>
<add>const {
<add> lazyDOMException,
<add>} = require('internal/util');
<add>
<ide> const {
<ide> Buffer,
<ide> } = require('buffer');
<ide> async function asyncDigest(algorithm, data) {
<... | 2 |
Java | Java | reset connection before delegating to handler | 99c7917124b8f5c997046bc169ec2a97ff5e62fb | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/DefaultStompSession.java
<ide> public void afterConnectionClosed() {
<ide> logger.debug("Connection closed session id=" + this.sessionId);
<ide> }
<ide> if (!this.closing) {
<del> handleFailure(new ConnectionLostException("Conne... | 1 |
Go | Go | enable dm deferred_* with version check | 0dc1a80565d522fc2cc7c65c3ad2d8ed83aeaf0f | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) initDevmapper(doInit bool) (retErr error) {
<ide> // give ourselves to libdm as a log handler
<ide> devicemapper.LogInit(devices)
<ide>
<del> version, err := devicemapper.GetDriverVersion()
<del> if err != nil {
<del> // Can't even... | 1 |
Go | Go | add build command | 27319da0d260b42acdbc3fd2a639ad3986d1ba64 | <ide><path>builder.go
<add>package docker
<add>
<add>import (
<add> "bufio"
<add> "fmt"
<add> "io"
<add> "strings"
<add>)
<add>
<add>type Builder struct {
<add> runtime *Runtime
<add>}
<add>
<add>func NewBuilder(runtime *Runtime) *Builder {
<add> return &Builder{
<add> runtime: runtime,
<add> }
<add>}
<add>
<add>func ... | 2 |
Python | Python | add test for serializing extension attrs (see ) | bf415fd7782c430135033ce40705d7d392743730 | <ide><path>spacy/tests/serialize/test_serialize_extension_attrs.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>from ...tokens.doc import Doc
<add>from ...vocab import Vocab
<add>
<add>
<add>@pytest.fixture
<add>def doc_w_attrs(en_tokenizer):
<add> Doc.set_ext... | 1 |
PHP | PHP | add missed 'static' in return type list | e2faaccc78b904bb0f0ec3258ee328be87458b28 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function findMany($ids, $columns = ['*'])
<ide> *
<ide> * @param mixed $id
<ide> * @param array $columns
<del> * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
<add> * @return \Illuminat... | 1 |
Javascript | Javascript | move helper functions outside of `describe` block | fc620b9e80d67ca99f962431461b8fc4d085d9df | <ide><path>spec/tooltip-manager-spec.js
<ide> describe('TooltipManager', () => {
<ide> const ctrlX = _.humanizeKeystroke('ctrl-x')
<ide> const ctrlY = _.humanizeKeystroke('ctrl-y')
<ide>
<del> beforeEach(function () {
<del> manager = new TooltipManager({keymapManager: atom.keymaps, viewRegistry: atom.views})
<... | 1 |
PHP | PHP | add test for query string encoding | 45e3414d49707b690de27cd2e6dd8651a205aa69 | <ide><path>lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
<ide> public function testGet() {
<ide> ->method('request')
<ide> ->with(array('method' => 'GET', 'uri' => 'https://secure.example.com/test.php?one=two'));
<ide>
<add> $this->RequestSocket->expects($this->at(6))
<add> ->method('request')
<add> ->... | 1 |
Javascript | Javascript | prevent selection of non-text content in editor | c48ba79f3cbe8e014a086d4ab7d4544b232879f1 | <ide><path>src/text-editor-component.js
<ide> class CursorsAndInputComponent {
<ide> zIndex: 1,
<ide> width: scrollWidth + 'px',
<ide> height: scrollHeight + 'px',
<del> pointerEvents: 'none'
<add> pointerEvents: 'none',
<add> userSelect: 'none'
<ide> }
<ide> }, ch... | 1 |
Javascript | Javascript | fix challenges of undefined error | b81cea4b08042924747d5e9bd885b2b255b3ef16 | <ide><path>common/app/entities/index.js
<ide> export function projectsSelector(state) {
<ide> key.includes('projects') && !key.includes('coding-interview')
<ide> )
<ide> .map(key => blocks[key])
<del> .map(({ name, challenges, superBlock }) => {
<add> .map(({ title, challenges, superBlock }) => {
<i... | 3 |
Javascript | Javascript | remove trailing whitespace | f8f97f8b61fb3f4e831e8aae12509bd173f86b59 | <ide><path>src/ng/cacheFactory.js
<ide> function $CacheFactoryProvider() {
<ide> * `$templateCache` service directly.
<ide> *
<ide> * Adding via the `script` tag:
<del> *
<add> *
<ide> * ```html
<ide> * <script type="text/ng-template" id="templateId.html">
<ide> * <p>This is the content of the template</p>... | 1 |
Text | Text | release notes for 1.2.8 | ece7854972a15564065c37fc2208671c8445f408 | <ide><path>CHANGELOG.md
<add><a name="1.2.8"></a>
<add># 1.2.8 interdimensional-cartography (2014-01-10)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$http:**
<add> - return responseText on IE8 for requests with responseType set
<add> ([a9cccbe1](https://github.com/angular/angular.js/commit/a9cccbe14f1bd9048f5dab4443... | 1 |
PHP | PHP | allow translations of 0 | b52a30868e84cdc9643976c0c7191e19b8ac2b05 | <ide><path>src/Model/Behavior/TranslateBehavior.php
<ide> protected function _rowMapper($results, $locale) {
<ide> $name = $field . '_translation';
<ide> $translation = $row->get($name);
<ide>
<del> if (!$translation) {
<add> if ($translation === null || $translation === false) {
<add> $row->unsetPro... | 1 |
Ruby | Ruby | simplify cleanup eligibility check | 505d06c1761dfb89961b4f6b8093c5d62248e5fb | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def can_cleanup?
<ide> true
<ide> elsif opt_prefix.directory?
<ide> # SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks
<del> !Formula.installed.
<del> select{ |ff| ff.deps.map{ |d| d.to_s }.include? name }.
<del> ... | 1 |
Python | Python | add scons command to numpy distutils | f9dbe2870e4d7ed425bbeb59a831b0626bdcf29e | <ide><path>numpy/distutils/command/scons.py
<add>import os
<add>import os.path
<add>from os.path import join as pjoin, dirname as pdirname
<add>
<add>from distutils.errors import DistutilsPlatformError
<add>from distutils.errors import DistutilsExecError, DistutilsSetupError
<add>
<add>from numpy.distutils.command.buil... | 2 |
PHP | PHP | apply fixes from styleci | 3f2162a8ca7ca29e48a6457568e4459a33f08974 | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function testIndexValuesAreReplaced()
<ide> 'foo',
<ide> 1,
<ide> ],
<del> ]
<del> ]
<add> ],
<add> ],
<ide> ], ['input.*.a... | 1 |
Javascript | Javascript | remove case that only exists for createbatch | d75323f65d0f263dd4b0c15cebe987cccf822783 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.js
<ide> function performSyncWorkOnRoot(root) {
<ide> // Check if there's expired work on this root. Otherwise, render at Sync.
<ide> const lastExpiredTime = root.lastExpiredTime;
<ide> const expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime ... | 1 |
Javascript | Javascript | cover .assert with single argument | e3d05a61215b2958cc1951759e08e816b35f5027 | <ide><path>test/parallel/test-console.js
<ide> assert.strictEqual(errStrings[errStrings.length - 1],
<ide>
<ide> console.assert(true, 'this should not throw');
<ide>
<add>console.assert(true);
<add>
<ide> assert.strictEqual(strings.length, process.stdout.writeTimes);
<ide> assert.strictEqual(errStrings.length, proces... | 1 |
Ruby | Ruby | improve reasoning in brew bottle for using gzip | 780750e0b7cacc9ba552addc3d31138c539e70ec | <ide><path>Library/Contributions/examples/brew-bottle.rb
<ide> filename = formula + '-' + version + '.tar.gz'
<ide> ohai "Bottling #{formula} #{version}..."
<ide> HOMEBREW_CELLAR.cd do
<del> # Use gzip, much faster than bzip2 and hardly any file size difference
<del> # when compressing binaries.
<add> # ... | 1 |
Javascript | Javascript | make all streams error in a pipeline | 648088289d619bfb149fe90316ce0127083c4c99 | <ide><path>lib/internal/streams/pipeline.js
<ide> function destroyer(stream, reading, writing, callback) {
<ide>
<ide> // request.destroy just do .end - .abort is what we want
<ide> if (isRequest(stream)) return stream.abort();
<del> if (typeof stream.destroy === 'function') return stream.destroy();
<add> ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.