content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | add test for withbearertoken method | f9112ad06126d8e265df4b66560e92d924c823e8 | <ide><path>tests/Foundation/Testing/Concerns/MakesHttpRequestsTest.php
<ide> public function testFromSetsHeaderAndSession()
<ide> $this->assertSame('previous/url', $this->app['session']->previousUrl());
<ide> }
<ide>
<add> public function testBearerTokenSetsHeader()
<add> {
<add> $this->withBe... | 1 |
PHP | PHP | fix regression around empty options | 2266b76230d351b8263fe75c59e1cf835b4428ff | <ide><path>src/View/Widget/SelectBoxWidget.php
<ide> class SelectBoxWidget extends BasicWidget
<ide> * When true, the select element will be disabled.
<ide> * - `val` - Either a string or an array of options to mark as selected.
<ide> * - `empty` - Set to true to add an empty option at the top of the
... | 3 |
PHP | PHP | check method existence before calling | 4bb404085113b92221da84c37dac3cd7d6f7ec69 | <ide><path>lib/Cake/Model/Model.php
<ide> protected function _findFirst($state, $query, $results = array()) {
<ide> protected function _findCount($state, $query, $results = array()) {
<ide> if ($state === 'before') {
<ide> $db = $this->getDataSource();
<add> $query['order'] = false;
<add> if (!method_exists($... | 1 |
Ruby | Ruby | address random `test_or_with_bind_params` failures | aaed081e08c1a04eabeec9fa5edab5e0760f46e2 | <ide><path>activerecord/test/cases/relation/or_test.rb
<ide> def test_or_with_null_right
<ide> end
<ide>
<ide> def test_or_with_bind_params
<del> assert_equal Post.find([1, 2]), Post.where(id: 1).or(Post.where(id: 2)).to_a
<add> assert_equal Post.find([1, 2]).sort_by(&:id), Post.where(id: 1).or(Post.... | 1 |
Text | Text | fix config example [ci skip] | 3ac620f09d2d18dcc4e347f610eeb3aba32875a0 | <ide><path>website/docs/usage/training.md
<ide> tabular results to a file:
<ide> > ### config.cfg (excerpt)
<ide> > [training.logger]
<ide> > @loggers = "my_custom_logger.v1"
<del>> file_path = "my_file.tab"
<add>> log_path = "my_file.tab"
<ide> > ```
<ide>
<ide> ```python | 1 |
Javascript | Javascript | use object.create(null) for dictionary object | 9d0396cd638983d207cb7bb0a5a21220a86ec1de | <ide><path>lib/util.js
<ide> function stylizeNoColor(str, styleType) {
<ide>
<ide>
<ide> function arrayToHash(array) {
<del> var hash = {};
<add> var hash = Object.create(null);
<ide>
<del> array.forEach(function(val, idx) {
<add> array.forEach(function(val) {
<ide> hash[val] = true;
<ide> });
<ide> | 1 |
Text | Text | fix double-spacing after full stop issues | 6a200cb88adaf5dc3850569b7121f79956bfc1fd | <ide><path>docs/Formula-Cookbook.md
<ide> Homebrew provides two formula DSL methods for launchd plist files:
<ide>
<ide> Homebrew has multiple levels of environment variable filtering which affects variables available to formulae.
<ide>
<del>Firstly, the overall environment in which Homebrew runs is filtered to avoid... | 1 |
Ruby | Ruby | add basic tests to the configurator#build (#28) | 18720bc8fbf269184ac6f183a82ed045cc0c1965 | <ide><path>test/service/configurator_test.rb
<add>require "service/shared_service_tests"
<add>
<add>class ActiveStorage::Service::ConfiguratorTest < ActiveSupport::TestCase
<add> test "builds correct service instance based on service name" do
<add> service = ActiveStorage::Service::Configurator.build(:s3, SERVICE_C... | 1 |
Javascript | Javascript | remove extra parenthesis | adfb21aaf9149aecc0aef2befdeb147da3c62e5e | <ide><path>server/boot/about.js
<ide> export default function about(app) {
<ide> daysRunning,
<ide> title: dedent`
<ide> About our Open Source Community, our social media presence,
<del> and how to contact us`.split('\n').join(' '),
<add> and how to contact us
<add>... | 1 |
Text | Text | capitalize first letter (for consistency) | d8f3567d7ef3022b35456d35c4b381cdd338e2a7 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide>
<ide> * [redux-optimist](https://github.com/ForbesLindesay/redux-optimist) — Optimistically apply actions that can be later commited or reverted
<ide> * [redux-undo](https://github.com/... | 1 |
Ruby | Ruby | remove unneded argument | de3bf3ec3d7dfa81870aca5b8ed8c237e093fe9f | <ide><path>activerecord/lib/active_record/relation.rb
<ide> class Relation
<ide> alias :model :klass
<ide> alias :loaded? :loaded
<ide>
<del> def initialize(klass, table, values = {}, offsets = {})
<add> def initialize(klass, table, values = {})
<ide> @klass = klass
<ide> @table = table
<id... | 1 |
Javascript | Javascript | add tests for press responder event module | f243deab8286b9c51f44e47926c1ba0ccb53449a | <ide><path>packages/react-events/src/Press.js
<ide> function dispatchPressStartEvents(
<ide> if ((props.onLongPress || props.onLongPressChange) && !state.isLongPressed) {
<ide> const delayLongPress = calculateDelayMS(
<ide> props.delayLongPress,
<del> 0,
<add> 10,
<ide> DEFAULT_LONG_PRESS_DE... | 2 |
Text | Text | add missing changelog authors | 545857125421f2c579c8dd7728d5ae26af720826 | <ide><path>activesupport/CHANGELOG.md
<ide>
<ide> * Deprecate `Notification::Event`'s `#children` and `#parent_of?`
<ide>
<add> *John Hawthorn*
<add>
<ide> * Change default serialization format of `MessageEncryptor` from `Marshal` to `JSON` for Rails 7.1.
<ide>
<ide> Existing apps are provided with an upg... | 1 |
Text | Text | create model card for lordtt13/covid-scibert | e10fb9cbe6117deda7aa7944276256a2954d3fd7 | <ide><path>model_cards/lordtt13/COVID-SciBERT/README.md
<add>---
<add>language: en
<add>inference: false
<add>---
<add>
<add>## COVID-SciBERT: A small language modelling expansion of SciBERT, a BERT model trained on scientific text.
<add>
<add>### Details of SciBERT
<add>
<add>The **SciBERT** model was presented in [Sc... | 1 |
Text | Text | add v3.19.0-beta.4 to changelog | 0317ecf1af0f7729eafb6be590e1b0100da08529 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.19.0-beta.4 (May 12, 2020)
<add>
<add>- [#18958](https://github.com/emberjs/ember.js/pull/18958) [BUGFIX] Ensure AST transforms using `in-element` work properly.
<add>- [#18960](https://github.com/emberjs/ember.js/pull/18960) [BUGFIX] More assertions fo... | 1 |
PHP | PHP | fix magic __isset() | 7badb1d252b9604cbf67d7ed81d191d87116289f | <ide><path>lib/Cake/Test/Case/View/ViewTest.php
<ide> public function testHelperCallbackTriggering() {
<ide> $this->attributeEqualTo('_subject', $View)
<ide> )
<ide> );
<del>
<add>
<ide> $View->Helpers->expects($this->at(4))->method('trigger')
<ide> ->with(
<ide> $this->logicalAnd(
<ide> public ... | 2 |
Ruby | Ruby | remove unused methods | 9ff5fdeda99b3d8c5148d4c40956842518d1c788 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def through_conditions
<ide> [Array.wrap(options[:conditions])]
<ide> end
<ide>
<del> def through_reflection_primary_key_name
<del> end
<del>
<ide> def source_reflection
<ide> nil
<ide> end
<ide> def check_validit... | 1 |
Text | Text | add clarification for exception behaviour | b406c9c4e95e6e90c43df843512a4c761ad9affa | <ide><path>doc/api/n-api.md
<ide> exception is pending and no additional action is required. If the
<ide> instead of simply returning immediately, [`napi_is_exception_pending`][]
<ide> must be called in order to determine if an exception is pending or not.
<ide>
<add>In many cases when an N-API function is called and ... | 1 |
Javascript | Javascript | add test for d3.ns | 07b068ea6ca80521024f4e13945fe3237fa2bf38 | <ide><path>test/core/ns-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("ns");
<add>
<add>suite.addBatch({
<add> "prefix": {
<add> topic: function() {
<add> return d3.ns.prefix;
<add> }... | 1 |
PHP | PHP | fix failing tests in view package | f076f59e7c52a5d97d8e179c8a238fcb050d5f1f | <ide><path>src/View/ViewVarsTrait.php
<ide> public function createView($viewClass = null)
<ide>
<ide> foreach (['name', 'helpers', 'plugin'] as $prop) {
<ide> if (isset($this->{$prop})) {
<del> $builder->{$prop}($this->{$prop});
<add> $method = 'set' . ucfirst($prop);
... | 3 |
Text | Text | fix examples in "docker port" man page | bf6492e689e2cb375fe6b39327dbe0655452640a | <ide><path>docs/man/docker-port.1.md
<ide> List port mappings for the CONTAINER, or lookup the public-facing port that is N
<ide> Print usage statement
<ide>
<ide> # EXAMPLES
<del>You can find out all the ports mapped by not specifying a `PRIVATE_PORT`, or
<del>ask for just a specific mapping:
<ide>
<del> $ dock... | 1 |
PHP | PHP | remove old method | d0e8a56624a0e581aa7a46b07cc5acfee57a9376 | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> public function run(Container $container)
<ide> $this->runCommandInForeground($container);
<ide> }
<ide>
<del> /**
<del> * Run the command in the background using exec.
<del> *
<del> * @return void
<del> */
<del> protected f... | 1 |
Python | Python | add example to runtests usage doc | b312137d6fb37bd8e81cc18ae9a642b4aada4c4b | <ide><path>runtests.py
<ide> $ python runtests.py
<ide> $ python runtests.py -s {SAMPLE_SUBMODULE}
<ide> $ python runtests.py -t {SAMPLE_TEST}
<add> $ python runtests.py -t {SAMPLE_TEST} -- {ARGUMENTS_FOR_NOSE}
<ide> $ python runtests.py --ipython
<ide> $ python runtests.py --python somescript.py... | 1 |
Javascript | Javascript | allow log in teststring, restrict test errors | febba792e7c19109bd0a8dedf098d85d7617e344 | <ide><path>client/src/client/workers/test-evaluator.js
<ide> const __utils = (() => {
<ide> self.postMessage(data);
<ide> }
<ide>
<del> function logToBoth(err) {
<add> function log(err) {
<ide> if (!(err instanceof chai.AssertionError)) {
<ide> // report to both the browser and the fcc consoles, disc... | 4 |
Python | Python | skip metric tests for cntk | 3e70caf7c6e03fe7a112d60a2ed920f0deda0b43 | <ide><path>tests/keras/metrics_training_test.py
<ide> from keras.layers import Dense
<ide> from keras.models import Sequential
<ide>
<add>
<add>if K.backend() == 'cntk':
<add> pytestmark = pytest.mark.skip
<add>
<add>
<ide> METRICS = [
<ide> metrics.Accuracy,
<ide> metrics.MeanSquaredError, | 1 |
Ruby | Ruby | run bin/yarn via ruby | 44d1006de3d5de0d00c5bffcd041e1f06162d98b | <ide><path>actiontext/lib/generators/action_text/install/install_generator.rb
<ide> def js_dependencies
<ide> end
<ide>
<ide> def yarn_command(command, config = {})
<del> in_root { run "bin/yarn #{command}", abort_on_failure: true, **config }
<add> in_root { run "#{Thor::Util.ruby_com... | 2 |
Python | Python | remove unsused dummy variable | 62de5da1ff994ea6731368d19be2236bb3aa2199 | <ide><path>spacy/tests/regression/test_issue1622.py
<ide>
<ide> @pytest.mark.xfail
<ide> def test_cli_trained_model_can_be_saved(tmpdir):
<del> cmd = None
<ide> lang = 'nl'
<ide> output_dir = str(tmpdir)
<ide> train_file = NamedTemporaryFile('wb', dir=output_dir, delete=False) | 1 |
Text | Text | add v3.23.0-beta.3 to changelog | 05e278a573a07f40177f75a5ab3daa41ea738d44 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.23.0-beta.3 (October 26, 2020)
<add>
<add>- [#19199](https://github.com/emberjs/ember.js/pull/19199) [BUGFIX] Fix Ember Inspector to not be in a broken state after render errors
<add>- [#19221](https://github.com/emberjs/ember.js/pull/19221) [BUGFIX] En... | 1 |
PHP | PHP | fix cs error | 0ca35508a9491ce3c156038bb36ccad776dc408a | <ide><path>src/Model/Behavior/TreeBehavior.php
<ide> */
<ide> namespace Cake\Model\Behavior;
<ide>
<add>use Cake\Datasource\Exception\RecordNotFoundException;
<ide> use Cake\Event\Event;
<ide> use Cake\ORM\Behavior;
<ide> use Cake\ORM\Entity;
<del>use Cake\Datasource\Exception\RecordNotFoundException;
<ide> use Cake\... | 1 |
Javascript | Javascript | fix isdefined -> angular.isdefined | 2a4a8226d1c7dc9d6a86a3429144c065c8f01c89 | <ide><path>src/ngResource/resource.js
<ide> angular.module('ngResource', ['ng']).
<ide> params = params || {};
<ide> forEach(this.urlParams, function(_, urlParam){
<ide> val = params.hasOwnProperty(urlParam) ? params[urlParam] : self.defaults[urlParam];
<del> if (isDefined(val) && val... | 1 |
Java | Java | fix onpress event for nested text in rn android | e494e4beb6a124008fd116178cbc38335bd87809 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
<ide> public static boolean isMapBufferSerializationEnabled() {
<ide> public static boolean useDispatchUniqueForCoalescableEvents = false;
<ide>
<ide> public static boolean useUpdatedTouchPreprocessing = false;
<add>
<add> /** ... | 2 |
Go | Go | add buffer32kpool & use it for copy | ba40f4593f79a653f1e3a8b9597b7900fb68a564 | <ide><path>pkg/pools/pools.go
<ide> import (
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> )
<ide>
<add>const buffer32K = 32 * 1024
<add>
<ide> var (
<ide> // BufioReader32KPool is a pool which returns bufio.Reader with a 32K buffer.
<ide> BufioReader32KPool = newBufioReaderPoolWithSize(buffer32K)
<ide> // Bu... | 2 |
Javascript | Javascript | implement contents for every annotation type | cf07918ccb22851e65b87ffdca0794c4003a69c5 | <ide><path>src/core/annotation.js
<ide> function getTransformMatrix(rect, bbox, matrix) {
<ide>
<ide> class Annotation {
<ide> constructor(params) {
<del> let dict = params.dict;
<add> const dict = params.dict;
<ide>
<add> this.setContents(dict.get('Contents'));
<ide> this.setCreationDate(dict.get('Cre... | 2 |
Python | Python | add test for column-vector bug in dotblas | 83d691d731082ec8d2367affb77b454c2a0b0855 | <ide><path>numpy/core/tests/test_numeric.py
<ide> def check_matscalar(self):
<ide> b1 = matrix(ones((3,3),dtype=complex))
<ide> assert_equal(b1*1.0, b1)
<ide>
<add> def check_columnvect(self):
<add> b1 = ones((3,1))
<add> b2 = [5.3]
<add> c1 = dot(b1,b2)
<add> c2 = dot_(b1,b2)
<add> assert_almost_equal(c1, c2, de... | 2 |
Mixed | Text | add documentation for brotli support | b91093f0e529229cb2810dbc22781a57a71c3749 | <ide><path>doc/api/errors.md
<ide> An attempt was made to register something that is not a function as an
<ide> The type of an asynchronous resource was invalid. Note that users are also able
<ide> to define their own types if using the public embedder API.
<ide>
<add><a id="ERR_BROTLI_COMPRESSION_FAILED"></a>
<add>##... | 3 |
Javascript | Javascript | add placeholders for static prop type tests | e31f23fc2ac9925dfb445f0f61e93a7363dda5fc | <ide><path>src/modern/types/__tests__/ReactFlowPropTypes-test.js
<add>/**
<add> * Copyright 2014, 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> * ... | 2 |
Javascript | Javascript | remove eslint comments" | 9f7b54945e64a929d1709a82b59bbd87d144ee5c | <ide><path>test/parallel/test-whatwg-url-tojson.js
<ide> const common = require('../common');
<ide> const URL = require('url').URL;
<ide> const { test, assert_equals } = common.WPT;
<ide>
<add>/* eslint-disable */
<ide> /* WPT Refs:
<ide> https://github.com/w3c/web-platform-tests/blob/02585db/url/url-tojson.html
<i... | 1 |
Ruby | Ruby | fix reporting matches with spaces in them | d9afb4f9ea54d2b6e4f04c1e6fe5f3b051258447 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def keg_contains string, keg
<ide> # Use strings to search through the file for each string
<ide> strings = `strings -t x - "#{file}"`.select{ |str| str.include? string }.map{ |s| s.strip }
<ide>
<del> # Don't bother reporting a string if it was found by... | 1 |
Javascript | Javascript | port the `mozcentraldiff` target to gulp | 19cc9bcdedf80e04873944dfa302500599dcf39e | <ide><path>gulpfile.js
<ide> var COMMON_WEB_FILES = [
<ide> 'web/images/*.{png,svg,gif,cur}',
<ide> 'web/debugger.js'
<ide> ];
<add>var MOZCENTRAL_DIFF_FILE = 'mozcentral.diff';
<ide>
<ide> var REPO = 'git@github.com:mozilla/pdf.js.git';
<ide> var DIST_REPO_URL = 'https://github.com/mozilla/pdfjs-dist';
<ide> gulp... | 2 |
Java | Java | use consistent class design | eeebd51f57f452c57bc159fa8a2ad9746c4c2f8c | <ide><path>spring-aop/src/main/java/org/springframework/aop/TrueClassFilter.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use thi... | 128 |
Ruby | Ruby | evaluate the default block only when necessary | 4c1d22183c9ed4dea74ef60a3cca1891fa588b74 | <ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb
<ide> def replace(record)
<ide> self.target = record
<ide> end
<ide>
<del> def default(record)
<del> writer(record) if reader.nil?
<add> def default(&block)
<add> writer(instance_exec(&block)) if read... | 2 |
Python | Python | fix morphology task in ud-train | f03640b41ff94f42c38b21d1247e29a53a0dbb1a | <ide><path>spacy/cli/ud_train.py
<ide> def read_data(nlp, conllu_file, text_file, raw_text=True, oracle_segments=False,
<ide> if oracle_segments:
<ide> docs.append(Doc(nlp.vocab, words=sent['words'], spaces=sent['spaces']))
<ide> golds.append(GoldParse(docs[-1], **sent))
<add... | 1 |
PHP | PHP | apply fixes from styleci | c1cdcab67f356c7729d2d1b89747f2ba50fce9e5 | <ide><path>src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
<ide> public function compileUpdate(Builder $query, $values)
<ide> {
<ide> $table = $this->wrapTable($query->from);
<ide>
<del> $columns = collect($values)->map(function ($value, $key) use($query) {
<add> $columns = collect($... | 2 |
Ruby | Ruby | add both branches to the only_path conditional | ef686a60951342a189cc82bfc4823180a6cf3a32 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def url_for(options)
<ide> path = options[:script_name].to_s.chomp("/")
<ide> path << options[:path].to_s
<ide>
<del> add_trailing_slash(path) if options[:trailing_slash]
<add> path = add_trailing_slash(path) if options[... | 1 |
Javascript | Javascript | remove unnecessary binding | 6721c736edb2395497d61f3c53eab69868706f42 | <ide><path>packages/ember-metal/lib/observer_set.js
<ide> export default class ObserverSet {
<ide> let observers = this.observers;
<ide> let senderGuid = guidFor(sender);
<ide> let keySet = observerSet[senderGuid];
<del> let index;
<ide>
<del> if (!keySet) {
<add> if (keySet === undefined) {
<ide>... | 2 |
Ruby | Ruby | use caller for helpers_dir deprecation warnings | f8011e67b002990e1c25550c161ab0af6af6620f | <ide><path>actionpack/lib/action_controller/metal/helpers.rb
<ide> module Helpers
<ide>
<ide> module ClassMethods
<ide> def helpers_dir
<del> ActiveSupport::Deprecation.warn "helpers_dir is deprecated, use helpers_path instead"
<add> ActiveSupport::Deprecation.warn "helpers_dir is deprecated, u... | 1 |
Mixed | Javascript | add rejects() and doesnotreject() | 599337f43e0e0d66263e69d70edab26b61d3038a | <ide><path>doc/api/assert.md
<ide> parameter is undefined, a default error message is assigned. If the `message`
<ide> parameter is an instance of an [`Error`][] then it will be thrown instead of the
<ide> `AssertionError`.
<ide>
<add>## assert.doesNotReject(block[, error][, message])
<add><!-- YAML
<add>added: REPLAC... | 4 |
PHP | PHP | improve docblocks and code readability | bdb81998f44a1f987672f75b4da232b949db3755 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> use RuntimeException;
<ide>
<ide> /**
<del> * Request object for handling alternative HTTP requests
<add> * Request object handling for alternative HTTP requests.
<ide> *
<del> * Alternative HTTP requests can come from wireless units like mobile ph... | 1 |
Javascript | Javascript | fix issues in driver.js when getting css sheets | 4b96735e1d67c5c8363016b32c831dd18e44846b | <ide><path>test/driver.js
<ide> var rasterizeTextLayer = (function rasterizeTextLayerClosure() {
<ide> foreignObject.appendChild(div);
<ide>
<ide> stylePromise
<del> .then(async cssRules => {
<add> .then(async ([cssRules]) => {
<ide> style.textContent = cssRules;
<ide>
<ide> ... | 1 |
Ruby | Ruby | clarify #form_with `local` option documentation | 491ec7333c6d8c4db21742cd42fc165358b44f4c | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def apply_form_for_options!(record, object, options) #:nodoc:
<ide> # This is helpful when fragment-caching the form. Remote forms
<ide> # get the authenticity token from the <tt>meta</tt> tag, so embedding is
<ide> # unnecessary... | 1 |
Go | Go | use distribution reference | 3a1279393faf78632bf169619d407e584da84b66 | <ide><path>api/server/router/plugin/backend.go
<ide> import (
<ide> "io"
<ide> "net/http"
<ide>
<add> "github.com/docker/distribution/reference"
<ide> enginetypes "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/filters"
<del> "github.com/docker/docker/reference"
<ide> "golang.org/x/... | 78 |
Text | Text | fix portuguese translation for arraylist | 140dab84897bb210e59cdef005694ef98ab62f1f | <ide><path>guide/portuguese/java/abstract-class/index.md
<ide> localeTitle: Classes Abstratas em Java
<ide> ---
<ide> Vamos discutir classes abstratas. Antes de mergulhar neste tutorial, é melhor que você tenha entendido conceitos de classes e herança.
<ide>
<del>Classes abstratas são classes que podem ser subclassifi... | 2 |
PHP | PHP | simplify doc block | d44d156aaa545c3231608a423728523a976c4e4b | <ide><path>src/Illuminate/Database/Schema/PostgresBuilder.php
<ide> public function getColumnListing($table)
<ide> }
<ide>
<ide> /**
<del> * Determines which schema should be used
<del> * Returns and array of schema and table name
<del> * less schema name if found
<add> * Determines which schem... | 1 |
Javascript | Javascript | fix bug where node is removed while dragging | 01124f27b83fbde05628cf44afc620a18aca93ca | <ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide>
<ide> function dragmove() {
<ide> if (!d3_layout_forceDragNode) return;
<add>
<add> // O NOES! The drag element was removed from the DOM.
<add> if (!d3_layout_forceDragElement.parentNode) {
<add> d3_layout_forceDragNode.fixed = false;
<ad... | 3 |
PHP | PHP | apply fixes from styleci | a7a0c65b3d2ee1eae68d3d7e749ba41aba7caa72 | <ide><path>src/Illuminate/Cache/DynamoDbLock.php
<ide>
<ide> namespace Illuminate\Cache;
<ide>
<del>use Illuminate\Cache\Lock;
<del>use Aws\DynamoDb\DynamoDbClient;
<del>
<ide> class DynamoDbLock extends Lock
<ide> {
<ide> /**
<ide><path>src/Illuminate/Cache/DynamoDbStore.php
<ide> public function many(array $key... | 3 |
Javascript | Javascript | add headers prop in source array type prop | ddc2210eba0376231b4bdb1c9259ef46241f9442 | <ide><path>Libraries/Image/Image.android.js
<ide> var Image = createReactClass({
<ide> uri: PropTypes.string,
<ide> width: PropTypes.number,
<ide> height: PropTypes.number,
<add> headers: PropTypes.objectOf(PropTypes.string),
<ide> }))
<ide> ]),
<ide> /** | 1 |
Java | Java | respect existing content-length for http head | b86c11cc9b00693fc3446724ffd37ae379189b7f | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/HttpHeadResponseDecorator.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<... | 2 |
PHP | PHP | show route collision in routes command | 12bf3db07f77479e89132337e107518f9872d7e6 | <ide><path>src/Command/RoutesCommand.php
<ide> public function execute(Arguments $args, ConsoleIo $io): ?int
<ide> $header[] = 'Defaults';
<ide> }
<ide>
<del> $output = [];
<add> $output = $duplicateRoutesCounter = [];
<ide>
<ide> foreach (Router::routes() as $route) {
<ide> ... | 2 |
Text | Text | add mention of e2fsprogs to runtime dependencies | 91502ba66bfc2a3edafb2ddf7f27393250bfa459 | <ide><path>hack/PACKAGERS.md
<ide> installed and available at runtime:
<ide>
<ide> * iptables version 1.4 or later
<ide> * procps (or similar provider of a "ps" executable)
<add>* e2fsprogs version 1.4.12 or later (in use: mkfs.ext4, mkfs.xfs, tune2fs)
<ide> * XZ Utils version 4.9 or later
<ide> * a [properly
<ide> ... | 1 |
Ruby | Ruby | fix secure_password setter | 692b3b6b6a565a27b968db8027daabcc766cfede | <ide><path>activemodel/lib/active_model/secure_password.rb
<ide> def authenticate(unencrypted_password)
<ide>
<ide> # Encrypts the password into the password_digest attribute.
<ide> def password=(unencrypted_password)
<del> @password = unencrypted_password
<ide> unless unencrypted_password.b... | 2 |
Ruby | Ruby | send people to new issue wiki page | 1e71489d5176ffe40dfb10c002438f962c7464f3 | <ide><path>Library/Homebrew/brew.h.rb
<ide> FORMULA_META_FILES = %w[README README.md ChangeLog COPYING LICENSE LICENCE COPYRIGHT AUTHORS]
<del>PLEASE_REPORT_BUG = "#{Tty.white}Please report this bug at #{Tty.em}http://github.com/mxcl/homebrew/issues#{Tty.reset}"
<add>PLEASE_REPORT_BUG = "#{Tty.white}Please follow the i... | 1 |
PHP | PHP | fix trailing newline | 335db95ba880b61099cf26a83a70adf29c16b04d | <ide><path>tests/TestCase/BasicsTest.php
<ide> public function testEventManagerReset2($prevEventManager)
<ide> $this->assertInstanceOf(EventManager::class, $prevEventManager);
<ide> $this->assertNotSame($prevEventManager, EventManager::instance());
<ide> }
<del>
<ide> } | 1 |
Python | Python | add japan to linode driver | b0d540e471fecb171f52897c388f308612dceec8 | <ide><path>libcloud/compute/drivers/linode.py
<ide> def list_locations(self):
<ide> country = None
<ide> if "USA" in dc["LOCATION"]: country = "US"
<ide> elif "UK" in dc["LOCATION"]: country = "GB"
<add> elif "JP" in dc["LOCATION"]: country = "JP"
<ide> else: c... | 1 |
Python | Python | support env var for num build jobs | 78a84f0d78630a6a2849bb95f7dabfad4a513aea | <ide><path>setup.py
<ide> def build_options(self):
<ide>
<ide> class build_ext_subclass(build_ext, build_ext_options):
<ide> def build_extensions(self):
<add> if not self.parallel:
<add> self.parallel = int(os.environ.get("SPACY_NUM_BUILD_JOBS", 1))
<ide> build_ext_options.build_options(s... | 1 |
Java | Java | add tosingle method to observable | cb9d1eb676c22aedf89dd99879a6df724d2aaaa4 | <ide><path>src/main/java/rx/Observable.java
<ide> public <R> Observable<R> compose(Transformer<? super T, ? extends R> transformer
<ide> public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
<ide> // cover for generics insanity
<ide> }
<del>
<del>
<add>
<add> /**
<a... | 3 |
Go | Go | add libdevmapper wrapper | 739af0a17f6a5a9956bbc9fd1e81e4d40bff8167 | <ide><path>devmapper/devmapper.go
<add>package devmapper
<add>
<add>/*
<add>#cgo LDFLAGS: -L. -ldevmapper
<add>#include <stdio.h>
<add>#include <stdlib.h>
<add>#include <unistd.h>
<add>#include <libdevmapper.h>
<add>#include <linux/loop.h>
<add>#include <sys/types.h>
<add>#include <sys/stat.h>
<add>#include <fcntl.h>
<... | 1 |
Javascript | Javascript | hide legacy tiers | f1ddec3f9bb5766bfeb88956adda238923d5212e | <ide><path>client/src/components/Donation/components/DonateServicebotEmbed.js
<ide> export class DonationServicebotEmbed extends Component {
<ide> cancel_now: true,
<ide> disableCoupon: true,
<ide> forceCard: true,
<del> disableTiers: [
<del> 'Monthly $10 Donation - Unavailable',... | 1 |
Javascript | Javascript | add test for transition.select | 80fa16a35114620956ddb902f4294f8f36e136db | <ide><path>test/core/transition-test-select.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> var s = d3.select("body").append("div").selectAll("div")
<add> .data(["one", "two", "three", "four"])
<add>... | 2 |
Python | Python | add lookup properties for components in language | 939e8ed567c41af87cb264fe768d7dc5f45bf8f2 | <ide><path>spacy/language.py
<ide> def __init__(self, vocab=True, make_doc=True, pipeline=None, meta={}, **kwargs):
<ide> flat_list.append(pipe)
<ide> self.pipeline = flat_list
<ide>
<add> # Conveniences to access pipeline components
<add> @property
<add> def tensorizer(self):
<add> ... | 1 |
Ruby | Ruby | remove prepend_and_append requirement from as | af0582968dfb400375bbef6ace7166aac1041f3d | <ide><path>activerecord/lib/active_record/validations/uniqueness.rb
<del>require 'active_support/core_ext/array/prepend_and_append'
<del>
<ide> module ActiveRecord
<ide> module Validations
<ide> class UniquenessValidator < ActiveModel::EachValidator # :nodoc:
<ide> def find_finder_class_for(record) #:nodoc:
<ide>... | 1 |
Mixed | Ruby | update actioncable docs [ci skip] | 4858c9fa2d02f0244eda01aa20ac703bfeabc3fe | <ide><path>actioncable/lib/action_cable/channel/streams.rb
<ide> module Channel
<ide> #
<ide> # An example broadcasting for this channel looks like so:
<ide> #
<del> # ActionCable.server.broadcast "comments_for_45", author: 'DHH', content: 'Rails is just swell'
<add> # ActionCable.server.broadcast... | 2 |
Java | Java | add velocity to onscrollenddrag event | 076eaec8053952c87cdc257f5c85466749c18260 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java
<ide> public class OnScrollDispatchHelper {
<ide>
<ide> private int mPrevX = Integer.MIN_VALUE;
<ide> private int mPrevY = Integer.MIN_VALUE;
<del> private float mXFlingVelocity = 0;
<del> private float mYFlingVeloc... | 7 |
Ruby | Ruby | prevent some double diagostic failures | 9686ebe3550fda62e867ebd7b51ffdd8bb5e7822 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_if_supported_sdk_available
<ide> locator = MacOS.sdk_locator
<ide>
<ide> source = if locator.source == :clt
<add> return if MacOS::CLT.below_minimum_version? # Handled by other diagnostics.
<add>
<ide> update_ins... | 2 |
Python | Python | remove useless override of self.style | 679627660fef3c7a9f7be743a168930e4a0e58ae | <ide><path>django/core/management/commands/migrate.py
<ide> from django.conf import settings
<ide> from django.core.management import call_command
<ide> from django.core.management.base import BaseCommand, CommandError
<del>from django.core.management.color import color_style, no_style
<add>from django.core.management.... | 1 |
Javascript | Javascript | add test for module._stat | 37b8a603f886634416046e337936e4c586f4ff58 | <ide><path>test/parallel/test-module-stat.js
<add>'use strict';
<add>require('../common');
<add>
<add>// This tests Module._stat.
<add>
<add>const Module = require('module');
<add>const fs = require('fs');
<add>const tmpdir = require('../common/tmpdir');
<add>const { ok, strictEqual } = require('assert');
<add>const { ... | 2 |
Text | Text | add link to women techmakers | dd2df85e77ca6b83246120502ade6e08d44f5b56 | <ide><path>guide/english/working-in-tech/women-in-tech/index.md
<ide> The worst thing you can do is to sell yourself short if you want something take
<ide> - [Rails Girls](http://railsgirls.com/)
<ide> - [Girls Who Code](https://girlswhocode.com/)
<ide> - [1 Million Women To Tech](https://1millionwomentotech.com/)
<add... | 1 |
Python | Python | fix title in about.py | bbd2a3dee1e01bb063fd26a4d98914cca27a9581 | <ide><path>spacy/about.py
<ide> # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<del>__title__ = 'spacy-nightly'
<del>__version__ = '2.0.0rc2'
<add>__title__ = 'spacy'
<add>__version__ = '2.0.0'
<i... | 1 |
Text | Text | fix description of middleware | 768a893d6419887a897b788ed7a540e51fb536d3 | <ide><path>docs/advanced/Middleware.md
<ide>
<ide> If you've used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you are familiar with the concept of *middleware*. In these frameworks, middleware is some code you can put between the framework receiving a request, and framewor... | 1 |
PHP | PHP | use elvis operators instead | 06e222adef11d1c177eed599a6f9fa46378dbe05 | <ide><path>src/Console/ConsoleIo.php
<ide> class ConsoleIo
<ide> */
<ide> public function __construct(ConsoleOutput $out = null, ConsoleOutput $err = null, ConsoleInput $in = null, HelperRegistry $helpers = null)
<ide> {
<del> $this->_out = $out ? $out : new ConsoleOutput('php://stdout');
<del> ... | 3 |
PHP | PHP | add unique modifier | dcf971805df5e5cb86b03ced4240c5bbbe516164 | <ide><path>database/factories/ModelFactory.php
<ide>
<ide> return [
<ide> 'name' => $faker->name,
<del> 'email' => $faker->safeEmail,
<add> 'email' => $faker->unique()->safeEmail,
<ide> 'password' => $password ?: $password = bcrypt('secret'),
<ide> 'remember_token' => str_rand... | 1 |
Python | Python | update theano backend | 9c93d8ec0681521bffd903eab9bba1a6c42a1bd8 | <ide><path>keras/backend/theano_backend.py
<ide> def _step(input, *states):
<ide> def switch(condition, then_expression, else_expression):
<ide> """condition: scalar tensor.
<ide> """
<add> if callable(then_expression):
<add> then_expression = then_expression()
<add> if callable(else_expression):
<... | 1 |
Javascript | Javascript | add xmlns to svg wrap | c9fab582c48c43ba81e266ede714abf1e2ef3740 | <ide><path>src/shared/vendor/core/getMarkupWrap.js
<ide> var selectWrap = [1, '<select multiple="true">', '</select>'];
<ide> var tableWrap = [1, '<table>', '</table>'];
<ide> var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
<ide>
<del>var svgWrap = [1, '<svg>', '</svg>'];
<add>var svgWrap = [1, '<svg ... | 1 |
PHP | PHP | remove unneeded "use" statements | c83e6428d14c5faac5d9d3ff159908999bb75801 | <ide><path>src/Http/Client/Request.php
<ide> */
<ide> namespace Cake\Http\Client;
<ide>
<del>use Cake\Core\Exception\Exception;
<ide> use Psr\Http\Message\RequestInterface;
<ide> use Zend\Diactoros\RequestTrait;
<ide> use Zend\Diactoros\Stream;
<ide><path>src/Http/Response.php
<ide>
<ide> use Cake\Core\Configure;
<i... | 10 |
Javascript | Javascript | extract docs during static site generation | 11707d5ce2473c0f8f101ca56e5a69f2557896e6 | <ide><path>website/server/convert.js
<ide> function buildFile(layout, metadata, rawContent) {
<ide> }
<ide>
<ide> function execute(options) {
<add> if (options === undefined) {
<add> options = {};
<add> }
<add>
<ide> var DOCS_MD_DIR = '../docs/';
<ide> var BLOG_MD_DIR = '../blog/';
<ide>
<ide><path>website... | 2 |
Javascript | Javascript | normalize context creation for option resolution | 8d36927b290bfe28b2ecb7393ccf5c0a473fd08a | <ide><path>src/controllers/controller.bubble.js
<ide> export default class BubbleController extends DatasetController {
<ide> resolveDataElementOptions(index, mode) {
<ide> const me = this;
<ide> const chart = me.chart;
<del> const dataset = me.getDataset();
<ide> const parsed = me.getParsed(index);
<ide> let... | 5 |
PHP | PHP | fix broken cookbook link in doc | ca6143e7babc2f12267aebc9fa9df2f9564ab99d | <ide><path>src/Controller/Controller.php
<ide> public function referer($default = null, $local = false)
<ide> * @param \Cake\ORM\Table|string|\Cake\ORM\Query|null $object Table to paginate
<ide> * (e.g: Table instance, 'TableName' or a Query object)
<ide> * @return \Cake\ORM\ResultSet Query results
<del>... | 1 |
Python | Python | fix a typo in cropping3d docs. | 4b1b706aa4effbf7c2886755ab99f5b75377762b | <ide><path>keras/layers/convolutional.py
<ide> def get_config(self):
<ide>
<ide>
<ide> class Cropping3D(Layer):
<del> '''Cropping layer for 3D data (e.g. spatial or saptio-temporal).
<add> '''Cropping layer for 3D data (e.g. spatial or spatio-temporal).
<ide>
<ide> # Arguments
<ide> cropping: tuple... | 1 |
Text | Text | update rbdms urls to new repos | 160931cd6a2b7b86ed2e4ead56d5dceba27b779a | <ide><path>curriculum/challenges/chinese-traditional/13-relational-databases/learn-relational-databases/celestial-bodies-database.md
<ide> id: 5f1a4ef5d5d6b5ab580fc6ae
<ide> title: 天體數據庫
<ide> challengeType: 12
<ide> helpCategory: Relational Databases
<del>url: https://github.com/moT01/.celestial-bodies-database
<add>u... | 84 |
Text | Text | update stream.pipeline() signature | 2f23918ca5090417ad0e06be6ecce63553f17985 | <ide><path>doc/api/stream.md
<ide> const cleanup = finished(rs, (err) => {
<ide> });
<ide> ```
<ide>
<del>### `stream.pipeline(source, ...transforms, destination, callback)`
<add>### `stream.pipeline(source[, ...transforms], destination, callback)`
<ide> <!-- YAML
<ide> added: v10.0.0
<ide> changes: | 1 |
Ruby | Ruby | unify install name parsing | ce19fa222361839d2c04986f81ae66c8a8748a61 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def keg_contains string, keg
<ide> keg_ref_files.each do |file|
<ide> puts "#{Tty.red}#{file}#{Tty.reset}"
<ide>
<del> linked_libraries = []
<del>
<ide> # Check dynamic library linkage. Importantly, do not run otool on static
<ide> # libraries,... | 3 |
Javascript | Javascript | implement loading states for linkview | ae87fc90ca0b925e0ec3260466aeb71fc5850b08 | <ide><path>packages/ember-htmlbars/lib/hooks/get-root.js
<ide> function getKey(scope, key) {
<ide>
<ide> var self = scope.self;
<ide>
<del> if (!scope.attrs) {
<del> return self.getKey(key);
<del> }
<del>
<del> if (key in scope.attrs) {
<add> if (scope.attrs && key in scope.attrs) {
<ide> Ember.deprecate... | 4 |
Python | Python | fix stdout messes in `on_epoch_end` with verbose=1 | dc4dd03683e1a691adae4b6c5fe8266987998f4e | <ide><path>keras/engine/training.py
<ide> def _fit_loop(self, f, ins, out_labels=None, batch_size=None,
<ide> count_mode = 'steps'
<ide> else:
<ide> count_mode = 'samples'
<del> callbacks += [cbks.ProgbarLogger(count_mode)]
<add> callbacks.insert(1, cbks... | 1 |
Ruby | Ruby | remove dead code | efd52da101cbed109d8045c02fcf0cdc4ffa7989 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def dump
<ide> dump_formula_report :D, "Deleted Formulae"
<ide> end
<ide>
<del> def tapped_formula_for key
<del> fetch(key, []).select { |path| HOMEBREW_TAP_PATH_REGEX === path.to_s }
<del> end
<del>
<del> def new_tapped_formula
<del> tapped_formula_for :A... | 2 |
Javascript | Javascript | add absolutepath keyword for ajv | 254b60337d0a21b1ed16ac4fe97c0efc810a7425 | <ide><path>schemas/ajv.absolutePath.js
<add>"use strict";
<add>
<add>const os = require("os");
<add>
<add>const getErrorFor = (shouldBeAbsolute, data, schema) => {
<add> const message = shouldBeAbsolute ?
<add> `The provided value ${JSON.stringify(data)} is not an absolute path!${os.EOL}`
<add> : `A non absolut path ... | 1 |
Javascript | Javascript | rename the `guard` utility to `tryparse` | 1de76d28422447f11d2864125999a09eece31e2e | <ide><path>packages/eslint-plugin-codegen/react-native-modules.js
<ide> function rule(context) {
<ide> } = requireModuleParser();
<ide> const flowParser = require('flow-parser');
<ide>
<del> const [parsingErrors, guard] = createParserErrorCapturer();
<add> const [parsingErrors, tryParse] = create... | 3 |
Javascript | Javascript | fix lint error (unused variable) | 277abbfe7b0190197b5eae278a4848f945fcf4e5 | <ide><path>vendor/constants.js
<ide> */
<ide> 'use strict';
<ide>
<del>var assert = require('assert');
<ide> var recast = require('recast');
<ide> var types = recast.types;
<ide> var namedTypes = types.namedTypes; | 1 |
Java | Java | operatorany needs to handle backpressure | 70d0308da5efbc921442ec5f0442f8f7776a44dc | <ide><path>rxjava-core/src/main/java/rx/internal/operators/OperatorAny.java
<ide> public Subscriber<? super T> call(final Subscriber<? super Boolean> child) {
<ide> return new Subscriber<T>(child) {
<ide> boolean hasElements;
<ide> boolean done;
<add>
<ide> @Override
<ide> ... | 2 |
Mixed | Go | add sockets (-h) list to `docker -d info` | f54823bf05af1d549aee4f0d1f56f9a8995eb268 | <ide><path>CONTRIBUTING.md
<ide> feels wrong or incomplete.
<ide> When reporting [issues](https://github.com/dotcloud/docker/issues)
<ide> on GitHub please include your host OS (Ubuntu 12.04, Fedora 19, etc),
<ide> the output of `uname -a` and the output of `docker version` along with
<del>the output of `docker info`.... | 8 |
Python | Python | add more examples to the `issubdtype` docstring | 3a06142f5e26c6294ffd5fa24cd450addef45e13 | <ide><path>numpy/core/numerictypes.py
<ide> def issubsctype(arg1, arg2):
<ide>
<ide> @set_module('numpy')
<ide> def issubdtype(arg1, arg2):
<del> """
<add> r"""
<ide> Returns True if first argument is a typecode lower/equal in type hierarchy.
<ide>
<add> This is like the builtin :func:`issubclass`, but f... | 1 |
Text | Text | add test case to check country code | 6f628e6133e6876a59faa5140146f67949a6b053 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/telephone-number-validator.md
<ide> assert(telephoneCheck('(555)5(55?)-5555') === false);
<ide> assert(telephoneCheck('55 55-55-555-5') === false);
<ide> ```
<ide>
<add>`telephoneChe... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.