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 | fix union with join issue | c34ad52bdeea9163b8283e4793c2cb9a951469bf | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function join($table, $one, $operator = null, $two = null, $type = 'inner
<ide> // is trying to build a join with a complex "on" clause containing more than
<ide> // one condition, so we'll add the join and call a Closure with the query.
... | 2 |
Ruby | Ruby | remove unreachable database warning | 25839860711987b48b5e5a6d919b4ea294ac10a8 | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> initializer "active_record.initialize_database" do
<ide> ActiveSupport.on_load(:active_record) do
<ide> self.configurations = Rails.application.config.database_configuration
<del>
<del> beg... | 1 |
Text | Text | fix typos found on examples docs | d96de6ea6b52e152388c6b6a8ef40a1fe61acc6c | <ide><path>examples/with-ant-design-mobile/README.md
<ide> # Ant Design Mobile example
<ide>
<del>This example features how you use [antd-mobile](https://github.com/ant-design/ant-design-mobile) (Ant Design Mobile FrontEnd Framwork) with Next.js.
<add>This example features how you use [antd-mobile](https://github.com/... | 5 |
Ruby | Ruby | install glibc/gcc automatically if too old | d271614872279cce7cec6344d3262f5a19315787 | <ide><path>Library/Homebrew/dependency_collector.rb
<ide> class DependencyCollector
<ide> def initialize
<ide> @deps = Dependencies.new
<ide> @requirements = Requirements.new
<add>
<add> init_global_dep_tree_if_needed!
<ide> end
<ide>
<ide> def initialize_copy(other)
<ide> def build(spec)
<ide> pa... | 13 |
PHP | PHP | unify signature for custom finders | 203ef36a95063bc55884b7645530bc6b38800192 | <ide><path>src/Model/Behavior/TreeBehavior.php
<ide> use Cake\Event\Event;
<ide> use Cake\ORM\Behavior;
<ide> use Cake\ORM\Entity;
<add>use Cake\ORM\Query;
<ide> use Cake\ORM\Table;
<ide>
<ide> /**
<ide> protected function _unmarkInternalTree() {
<ide> * @return \Cake\ORM\Query
<ide> * @throws \InvalidArgumentExcept... | 4 |
PHP | PHP | fix forever length | 912f4e5e72d31613b090ee44a7185d6b3bc9401e | <ide><path>laravel/cookie.php
<ide> class Cookie {
<ide> *
<ide> * @var int
<ide> */
<del> const forever = 525600;
<add> const forever = 2628000;
<ide>
<ide> /**
<ide> * The cookies that have been set. | 1 |
Ruby | Ruby | remove unused variable warning | 91cf768fa68bbbc37e08a5cc27235156a393cd4e | <ide><path>activerecord/test/cases/adapters/postgresql/schema_test.rb
<ide> def test_habtm_table_name_with_schema
<ide> SQL
<ide>
<ide> song = Song.create
<del> album = Album.create
<add> Album.create
<ide> assert_equal song, Song.includes(:albums).references(:albums).first
<ide> ensure
<ide> A... | 1 |
Ruby | Ruby | display exit code when nonzero | c3169b56001db03171992d205b86951ea574f0e5 | <ide><path>Library/Homebrew/formula.rb
<ide> def system cmd, *args
<ide> end
<ide> end
<ide> unless $? == 0
<add> puts "Exit code: #{$?}"
<ide> puts out
<ide> raise
<ide> end
<ide><path>Library/Homebrew/utils.rb
<ide> def safe_system cmd, *args
<ide> # CTRL-C interrupt... | 2 |
Python | Python | update pytest conf for sudachipy with japanese | 44967a3f9cfc3e20375aac3782897325785e15a9 | <ide><path>spacy/tests/conftest.py
<ide> def it_tokenizer():
<ide>
<ide> @pytest.fixture(scope="session")
<ide> def ja_tokenizer():
<del> pytest.importorskip("fugashi")
<add> pytest.importorskip("sudachipy")
<ide> return get_lang_class("ja").Defaults.create_tokenizer()
<ide>
<ide> | 1 |
Java | Java | add clonebuilder method on webclient.builder | 8ac29c8ce7055e1421ba5995ebb44f0aecc92223 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java
<ide> public WebClient.Builder baseUrl(String baseUrl) {
<ide> return this;
<ide> }
<ide>
<add> @Override
<add> public WebClient.Builder cloneBuilder() {
<add> return new DefaultWebClientBuilder(th... | 2 |
Javascript | Javascript | handle 404 thrown from send | 633dd87b189f4bec720626d3f12369871e84c33b | <ide><path>packages/next-server/server/next-server.js
<ide> export default class Server {
<ide> try {
<ide> return await serveStatic(req, res, path)
<ide> } catch (err) {
<del> if (err.code === 'ENOENT') {
<add> if (err.code === 'ENOENT' || err.statusCode === 404) {
<ide> this.render404(... | 2 |
Text | Text | improve consistency in usage of null | 5a4f24e7e1d96af39a75c70eaacb14e28fed5341 | <ide><path>doc/api/n-api.md
<ide> SemVer applying. In order to support this model with N-API, both
<ide> in internal functionality and for module specific functionality
<ide> (as its good practice), the `throw_` and `create_` functions
<ide> take an optional code parameter which is the string for the code
<del>to be ad... | 1 |
Javascript | Javascript | make suggested fix by @vagsa2 | b592f68552586b8d81d41afdc290e95355ecacf0 | <ide><path>src/test/moment/format.js
<ide> test('long years', function (assert) {
<ide> assert.equal(moment.utc().year(-20123).format('YYYYYY'), '-020123', 'big negative year with YYYYYY');
<ide> });
<ide>
<add>test('toISOString() when 0 year', function (assert) {
<add> // https://github.com/moment/moment/issue... | 1 |
Python | Python | update tokenization_camembert.py with urls | fb6c70a91d3183742ce0a6d97add68103253ca3a | <ide><path>transformers/tokenization_camembert.py
<ide> # distributed under the License is distributed on an "AS IS" BASIS,
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<del># limitations under the License.
<... | 1 |
Ruby | Ruby | set the join type on construction | 8e1b363167c22adcf75e3454dc8bfd34b5801d79 | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def build(associations, parent = join_parts.last, join_type = Arel::InnerJoin)
<ide> raise ConfigurationError, "Association named '#{ associations }' was not found on #{ parent.base_klass.name }; perhaps you misspelled it?"
<ide> ... | 2 |
PHP | PHP | remove jsonexpression class | 2e2fd1ff8deef57f5e03bb0263567ac9efd3367e | <ide><path>src/Illuminate/Database/Query/Grammars/MySqlGrammar.php
<ide> namespace Illuminate\Database\Query\Grammars;
<ide>
<ide> use Illuminate\Database\Query\Builder;
<del>use Illuminate\Database\Query\JsonExpression;
<ide>
<ide> class MySqlGrammar extends Grammar
<ide> {
<ide> protected function compileUpdateColu... | 2 |
Python | Python | fix 2.5 build failure | 93b842284f548d1edf2fce7a9109915e094413ad | <ide><path>libcloud/test/compute/test_ssh_client.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>from __future__ import absolute_import
<add>
<ide> import sys
<ide> import unittest
<ide> | 1 |
Javascript | Javascript | add regression test for issue 1697 | 8b754a9e02cb2404bd780322d440b73aacec7517 | <ide><path>test/simple/test-regress-GH-1697.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without re... | 1 |
Javascript | Javascript | extend config window on ui | abe842cf6b68472cc4f84dcec1a5ef94ff98ba5b | <ide><path>airflow/www/static/js/trigger.js
<ide> * under the License.
<ide> */
<ide>
<del>/* global document, CodeMirror */
<add>/* global document, CodeMirror, window */
<ide>
<ide> const textArea = document.getElementById('json');
<add>const minHeight = 300;
<add>const maxHeight = window.innerHeight - 450;
<add>... | 1 |
PHP | PHP | fix array tests | cb027980ae229169f427c3a070bcd54c96e8fda4 | <ide><path>tests/Cases/ArrTest.php
<del><?php
<add><?php use Laravel\Arr;
<ide>
<ide> class ArrTest extends PHPUnit_Framework_TestCase {
<ide> | 1 |
Javascript | Javascript | add textures es6 unit tests | 7011e96ad34f7dad830d2a1e3a4be3e3799425d9 | <ide><path>test/unit/src/textures/CanvasTexture.tests.js
<add>/**
<add> * @author TristanVALCKE / https://github.com/Itee
<add> */
<add>/* global QUnit */
<add>
<add>import { CanvasTexture } from '../../../../src/textures/CanvasTexture';
<add>
<add>export default QUnit.module( 'Textures', () => {
<add>
<add> QUnit.modu... | 7 |
Mixed | Ruby | permit uploading files larger than 5 gb | 9c5135ce6a10c8318e25a587620c8cde4563f348 | <ide><path>activestorage/CHANGELOG.md
<add>* The S3 service now permits uploading files larger than 5 gigabytes.
<ide>
<add> When uploading a file greater than 100 megabytes in size, the service
<add> transparently switches to [multipart uploads](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html)
<... | 3 |
Mixed | Javascript | implement ref() and unref() on client sessions | 120ea9b5c480c985dc77846a150008f6092c08d0 | <ide><path>doc/api/http2.md
<ide> session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => {
<ide> If the `payload` argument is not specified, the default payload will be the
<ide> 64-bit timestamp (little endian) marking the start of the `PING` duration.
<ide>
<del>#### http2session.remoteSettings
<add>#### ... | 4 |
Ruby | Ruby | add user to staff if necessary | e12165138fe4064d42a016249d13daa40db8c070 | <ide><path>install_homebrew.rb
<ide> # If you do fork, please ensure you add a comment here that explains what the
<ide> # changes are intended to do and how well you tested them.
<ide> #
<add># 30th March 2010:
<add># Added a check to make sure user is in the staff group. This was a problem
<add># for me, and I th... | 1 |
Python | Python | add support for stateful metrics. | e6c3f77b0b10b0d76778109a40d6d3282f1cadd0 | <ide><path>keras/backend/cntk_backend.py
<ide> def batch_get_value(xs):
<ide> def set_value(x, value):
<ide> if (isinstance(x, C.variables.Parameter) or
<ide> isinstance(x, C.variables.Constant)):
<del> if isinstance(value, float):
<del> value = np.full(x.shape, value)
<add> if isins... | 6 |
Javascript | Javascript | update react-tools to support transform as object | 4ecde425f9012f3ecad0144a317a03a8977bfa2a | <ide><path>main.js
<ide> module.exports = {
<ide> output += '\n' + map;
<ide> }
<ide> return output;
<add> },
<add> transformAsObject: function(input, options) {
<add> options = options || {};
<add> var visitorList = getVisitors(options.harmony);
<add> var resultRaw = transform(visitorList, inp... | 1 |
Javascript | Javascript | move arraystream to common | f2e319b7578326b0f5adb5c986533d3136404cbd | <ide><path>test/common.js
<ide> var fs = require('fs');
<ide> var assert = require('assert');
<ide> var os = require('os');
<ide> var child_process = require('child_process');
<add>const stream = require('stream');
<add>const util = require('util');
<ide>
<ide>
<ide> exports.testDir = path.dirname(__filename);
<ide> ... | 11 |
Text | Text | fix typos in changelog | 3ef2e4acf393774ccc3ae3face746b7ff685899a | <ide><path>CHANGELOG.md
<ide> See https://github.com/nodejs/node/labels/confirmed-bug for complete and current
<ide>
<ide> ### Notable changes
<ide>
<del>* **buffer**: Fixed a minor errors that was causing crashes (Michaël Zasso) [#2635](https://github.com/nodejs/node/pull/2635),
<add>* **buffer**: Fixed a minor err... | 1 |
Javascript | Javascript | add a test for generated texteditor ids | 3ad3852dd6a2fbdc5d64f21d4838fdd81ff1dbc4 | <ide><path>spec/text-editor-spec.js
<ide> describe('TextEditor', () => {
<ide> await atom.packages.activatePackage('language-javascript')
<ide> })
<ide>
<add> it('generates unique ids for each editor', () => {
<add> // Deserialized editors are initialized with an id:
<add> new TextEditor({id: 0})
<add> ... | 1 |
Mixed | Ruby | fix rails/info routes for apps with globbing route | 9d513e0a19f2b9333cd752b2747db4f350fcddc4 | <ide><path>railties/CHANGELOG.md
<add>* Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
<add>
<add> *Nicholas Firth-McCoy*
<add>
<ide> * Added a shared section to `config/secrets.yml` that will be loaded for all environments.
<ide>
<ide> *DHH*
<ide><path>railties/l... | 3 |
Javascript | Javascript | add spacings to interleavedbuffer | 97374fdcbbd34e07cfb949ee8108ae03cc17fc68 | <ide><path>test/unit/core/InterleavedBuffer.js
<ide>
<ide> module( "InterleavedBuffer" );
<ide>
<del>function checkInstanceAgainstCopy(instance, copiedInstance) {
<add>function checkInstanceAgainstCopy( instance, copiedInstance ) {
<ide> ok( copiedInstance instanceof THREE.InterleavedBuffer, "the clone has the corre... | 1 |
PHP | PHP | reduce duplication in docs and fix typos | 443f6cb1d96ac080f768e8043732a17c08fae7db | <ide><path>src/View/Helper/FormHelper.php
<ide> public function year($fieldName, $options = []) {
<ide> * ### Options:
<ide> *
<ide> * - `monthNames` - If false, 2 digit numbers will be used instead of text.
<del> * If a array, the given array will be used.
<add> * If an array, the given array will be used.
<ide... | 1 |
Javascript | Javascript | fix error message typo | 6a8c998ebdb76e91051055befd623b28d92acc75 | <ide><path>web/pdf_find_controller.js
<ide> var PDFFindController = {
<ide> initialize: function(options) {
<ide> if(typeof PDFFindBar === 'undefined' || PDFFindBar === null) {
<ide> throw 'PDFFindController cannot be initialized ' +
<del> 'without a PDFFindController instance';
<add> ... | 1 |
Javascript | Javascript | add workaround for safari / webdriver problem | 6b915ad9db29027e0aa70634e08a8a3c5af897b8 | <ide><path>src/Angular.js
<ide> function angularInit(element, bootstrap) {
<ide> });
<ide> if (appElement) {
<ide> if (!isAutoBootstrapAllowed) {
<del> window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
<add> try {
<add> window.console.error('Angular... | 1 |
Text | Text | expand stack doc | cd2237c2bc6bce738a42a7eaf0ba82d57857fe2f | <ide><path>experimental/docker-stacks.md
<ide> ## Overview
<ide>
<ide> Docker Stacks are an experimental feature introduced in Docker 1.12, alongside
<del>the new concepts of Swarms and Services inside the Engine.
<add>the concept of swarm mode, and Nodes and Services in the Engine API.
<ide>
<ide> A Dockerfile can b... | 1 |
PHP | PHP | use sha1 rather than md5 | 2a4acfb65f8fb69cec32cd9f4ccda4566524d5e2 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> public function getLastAttempted()
<ide> */
<ide> public function getName()
<ide> {
<del> return 'login_'.$this->name.'_'.md5(get_class($this));
<add> return 'login_'.$this->name.'_'.sha1(get_class($this));
<ide> }
<ide>
<ide> /**... | 8 |
Ruby | Ruby | remove options as an ivar | eaaf8995b13e411f6ecff2a0fcd515e8b4b7a42d | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def constraint_args(constraint, request)
<ide> class Mapping #:nodoc:
<ide> ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
<ide>
<del> attr_reader :options, :requirements, :conditions, :defaults
<add> attr_reader :re... | 1 |
Python | Python | add lookup argument to lemmatizer.load | 95f866f99f42ca2475991c23ef10141730000324 | <ide><path>spacy/lemmatizer.py
<ide>
<ide> class Lemmatizer(object):
<ide> @classmethod
<del> def load(cls, path, index=None, exc=None, rules=None):
<del> return cls(index or {}, exc or {}, rules or {})
<add> def load(cls, path, index=None, exc=None, rules=None, lookup=None):
<add> return cls(i... | 1 |
PHP | PHP | fix failing tests | ff73229ab8b3b586d1b5f0ef7689a2beee54abb1 | <ide><path>lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
<ide> public function testReadCustomJoinsAfterGeneratedJoins() {
<ide> ->method('getDataSource')
<ide> ->will($this->returnValue($test));
<ide>
<del> $search = "LEFT JOIN `cake_test_db`.`test_model8` AS `TestModel8` ON " .
<add> $model8Table... | 1 |
Python | Python | fix password flags handling [issues #314 & #315] | 427d70340f8a0ad314a9890efff741da3a43d398 | <ide><path>glances/glances.py
<ide> def signal_handler(signal, frame):
<ide> end()
<ide>
<ide>
<del>def getpassword(description='', confirm=False):
<add>def get_password(description='', confirm=False):
<ide> """
<ide> Read a password from the command line (with confirmation if confirm = True)
<ide> ""... | 1 |
Python | Python | restore changes from nn-beam-parser | 11c31d285ce0bc7d64099f29e0d5c4cd26ce7e99 | <ide><path>spacy/cli/convert.py
<ide> @plac.annotations(
<ide> input_file=("input file", "positional", None, str),
<ide> output_dir=("output directory for converted file", "positional", None, str),
<del> n_sents=("Number of sentences per doc", "option", "n", float),
<add> n_sents=("Number of sentences per... | 3 |
Text | Text | update relation to other libraries.md | ac9319d5e9330bd494857f280a4c64cb51af09dd | <ide><path>docs/Basics/Relation to Other Libraries.md
<ide> Can Redux be considered a [Flux](https://facebook.github.io/flux/) implementatio
<ide>
<ide> Redux was inspired by several important qualities of Flux. Like Flux, Redux prescribes you to concentrate your model update logic in a certain layer of your applicati... | 1 |
Ruby | Ruby | retrive the right pool for db tasks | 34856ba9fa893bd1483ca5b08b65562cd5c02c58 | <ide><path>activerecord/lib/active_record/tasks/database_tasks.rb
<ide> def create(*arguments)
<ide> end
<ide>
<ide> def create_all
<del> old_pool = ActiveRecord::Base.connection_handler.retrieve_connection_pool(ActiveRecord::Base)
<add> old_pool = ActiveRecord::Base.connection_handler.retrie... | 1 |
Python | Python | initialize finished counter at zero | 3b2ef88f877fc5e4fcbe8038f0a9251263eaafbc | <ide><path>airflow/models/taskinstance.py
<ide> def _run_raw_task(
<ide> session.commit()
<ide> actual_start_date = timezone.utcnow()
<ide> Stats.incr(f'ti.start.{self.task.dag_id}.{self.task.task_id}')
<add> # Initialize final state counters at zero
<add> for state in State.ta... | 2 |
Javascript | Javascript | improve spec spacing | 42e3a5015db82aea4f9969f8dc259660e2ef28f5 | <ide><path>spec/menu-sort-helpers-spec.js
<ide> describe('contextMenu', () => {
<ide> expect(sortMenuItems(items)).toEqual(items)
<ide> })
<ide> })
<add>
<ide> describe('dedupes separators', () => {
<ide> it('trims leading separators', () => {
<ide> const items = [{ type: 'separator' }, { comman... | 1 |
Mixed | Text | add navigation overview | 35f5ce296b47fa1ad13077f7d7d01dd25c5422fa | <ide><path>Libraries/Components/Navigation/NavigatorIOS.ios.js
<ide> type Event = Object;
<ide> * [`Navigator`](/docs/navigator.html) for a similar solution for your
<ide> * cross-platform needs.
<ide> *
<del> * > **NOTE**: This component is not maintained by Facebook and is the
<del> * > community's responsibility.... | 3 |
PHP | PHP | add exception accesor to http client | 33af82595b5f36d8f77cea69a4f275556e1ebfb4 | <ide><path>src/Illuminate/Http/Client/Response.php
<ide> public function toPsrResponse()
<ide> return $this->response;
<ide> }
<ide>
<add> /**
<add> * Create an exception if a server or client error occurred.
<add> *
<add> * @return \Illuminate\Http\Client\RequestException|null
<add> */
... | 2 |
Python | Python | add `sequence` section in utils page | 21c5e5479b5dce27c6b1c3971fd02d2eb96353d7 | <ide><path>docs/autogen.py
<ide> 'page': 'utils.md',
<ide> 'all_module_functions': [utils],
<ide> 'classes': [utils.CustomObjectScope,
<del> utils.HDF5Matrix]
<add> utils.HDF5Matrix,
<add> utils.Sequence]
<ide> },
<ide> ]
<ide> | 1 |
PHP | PHP | add comment to cache file driver | 5f0ffe135dcf2540f925033ddf7d786615928f81 | <ide><path>system/cache/file.php
<ide> public function get($key)
<ide>
<ide> $cache = file_get_contents(CACHE_PATH.$key);
<ide>
<add> // The cache expiration date is stored as a UNIX timestamp at the beginning
<add> // of the cache file. We'll extract it out and check it here.
<ide> if (time() >= substr($cache,... | 1 |
Text | Text | fix some typos | 0db928a63aee9ab5d9c277d551f17e28d860c8ae | <ide><path>guides/source/configuring.md
<ide> Below is a comprehensive list of all the initializers found in Rails in the orde
<ide>
<ide> * `active_support.initialize_time_zone` Sets the default time zone for the application based on the `config.time_zone` setting, which defaults to "UTC".
<ide>
<del>* `active_suppo... | 2 |
Go | Go | add logs to containerattachoptions | fc8097f957ec7ae990f84faf54bce85a399c96af | <ide><path>api/types/client.go
<ide> type ContainerAttachOptions struct {
<ide> Stdout bool
<ide> Stderr bool
<ide> DetachKeys string
<add> Logs bool
<ide> }
<ide>
<ide> // ContainerCommitOptions holds parameters to commit changes into a container.
<ide><path>client/container_attach.go
<ide> func (cli... | 3 |
Ruby | Ruby | check only formulas with resources | ebf52091eb372171f529aff3324b6eb3af59c9c5 | <ide><path>Library/Homebrew/dev-cmd/livecheck.rb
<ide> def livecheck
<ide> casks = args.formula? ? [] : Cask::Caskroom.casks
<ide> formulae + casks
<ide> elsif args.resources?
<del> livecheckable_resources = Formula.all.map { |formula| formula.resources }.flatten.filter{ |resource| resource.liveche... | 1 |
Ruby | Ruby | add missing require to activerecord base_test.rb | afde7e3c0ec5e5fd8305539764e385256caf1eaf | <ide><path>activerecord/test/cases/base_test.rb
<ide> require "models/owner"
<ide> require "concurrent/atomic/count_down_latch"
<ide> require "active_support/core_ext/enumerable"
<add>require "active_support/core_ext/kernel/reporting"
<ide>
<ide> class FirstAbstractClass < ActiveRecord::Base
<ide> self.abstract_clas... | 1 |
Text | Text | add santigimeno to collaborators | 0f0711601683e1e4170b9e56153703b040429628 | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [romankl](https://github.com/romankl) - **Roman Klauke** <romaaan.git@gmail.com>
<ide> * [saghul](https://github.com/saghul) - **Saúl Ibarra Corretgé** <saghul@gmail.com>
<ide> * [sam-github](https://github.com/s... | 1 |
Text | Text | remove extra space in readme.md | f25104e1364cf7c56ae4a09a86b64a87de326ec3 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> * [misterdjules](https://github.com/misterdjules) -
<ide> **Julien Gilli** <jgilli@nodejs.org>
<ide> * [mmarchini](https://github.com/mmarchini) -
<del>**Matheus Marchini** <matheus@sthima.com>
<add>**Mat... | 1 |
Ruby | Ruby | pass remaining args to `help` | 652480207979026e9db9ab5e19e69cbe636d6964 | <ide><path>Library/Homebrew/brew.rb
<ide> class MissingEnvironmentVariables < RuntimeError; end
<ide> # - if cmd is Cask, let Cask handle the help command instead
<ide> if (empty_argv || help_flag) && cmd != "cask"
<ide> require "help"
<del> Homebrew::Help.help cmd, empty_argv: empty_argv
<del> # `Homebre... | 3 |
Ruby | Ruby | simplify parse arguments in `consoletest` | c4bbce969779179457218558be7554b4ee4b3230 | <ide><path>railties/test/commands/console_test.rb
<ide> def load_console
<ide> end
<ide>
<ide> def parse_arguments(args)
<del> Rails::Command::ConsoleCommand.class_eval do
<del> alias_method :old_perform, :perform
<del> define_method(:perform) do
<del> extract_environment_option_fro... | 1 |
Javascript | Javascript | add rfc232 variants | 27b852ac99c7846162f8b263ced800bbfed2833c | <ide><path>blueprints/component-test/qunit-rfc-232-files/tests/__testType__/__path__/__test__.js
<add><% if (testType === 'integration') { %>import { module, test } from 'qunit';
<add>import { setupRenderingTest } from 'ember-qunit';
<add>import { render } from '@ember/test-helpers';
<add>import hbs from 'htmlbars-inli... | 4 |
Javascript | Javascript | unify xform @array edition | 5769c87030d257cd33faba9070bc58f1fed344ac | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> function none(obj) { return obj===null || obj===undefined; }
<ide>
<ide> /** @private */
<ide> function xform(target, method, params) {
<del> method.call(target, params[0], params[2], params[3], params[4]);
<add> var args = [].slice.call(params, 2);
<add> ... | 1 |
Ruby | Ruby | use \a in regexps | baa240d09c09b74e9bc69c91e4b5c9fb5bca2005 | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def _compute_redirect_to_location(options)
<ide> # letters, digits, and the plus ("+"), period ("."), or hyphen ("-")
<ide> # characters; and is terminated by a colon (":").
<ide> # The protocol relative scheme starts with a ... | 1 |
Text | Text | update changelog for 2.10.6 | 6a2e2c04c07431d50ed40184062923c8da76433c | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.10.6
<add>
<add>[#2515](https://github.com/moment/moment/pull/2515) Fix regression introduced
<add>in `2.10.5` related to `moment.ISO_8601` parsing.
<add>
<ide> ### 2.10.5 [See full changelog](https://gist.github.com/ichernev/6ec13ac7efc396da44b2... | 1 |
Python | Python | update tokenizer exceptions for english | 78e63dc7d08b764447f5a42d39145a5649537bf8 | <ide><path>spacy/en/tokenizer_exceptions.py
<ide> ],
<ide>
<ide> "Theydve": [
<del> {ORTH: "They", LEMMA: PRON_LEMMA},
<add> {ORTH: "They", LEMMA: PRON_LEMMA, TAG: "PRP"},
<ide> {ORTH: "d", LEMMA: "would", TAG: "MD"},
<ide> {ORTH: "ve", LEMMA: "have", TAG: "VB"}
<ide> ],
<ide>... | 1 |
Text | Text | add a variable declaration in the buffer.md | 39ed512d8a9c7c3f2e5a63155fb4ab282f6497b5 | <ide><path>doc/api/buffer.md
<ide> The transcoding process will use substitution characters if a given byte
<ide> sequence cannot be adequately represented in the target encoding. For instance:
<ide>
<ide> ```js
<add>const buffer = require('buffer');
<add>
<ide> const newBuf = buffer.transcode(Buffer.from('€'), 'utf8'... | 1 |
Ruby | Ruby | fix exception when installing with --use-llvm | 154d0fa92d982bc485acb0922ec646caf87f0445 | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def setup_build_environment
<ide> if MACOS_VERSION >= 10.6 and (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm')
<ide> # you can install Xcode wherever you like you know.
<ide> xcode_path = `/usr/bin/xcode-select -print-path`.chomp
<del> xcode_... | 1 |
PHP | PHP | add cascadecallback option to associations | 2b99452dbce0a06c623b4aa2e8d113c7e2adfc12 | <ide><path>Cake/ORM/Association.php
<ide> abstract class Association {
<ide> */
<ide> protected $_dependent = false;
<ide>
<add>/**
<add> * Whether or not cascaded deletes should also fire callbacks.
<add> *
<add> * @var string
<add> */
<add> protected $_cascadeCallbacks = false;
<add>
<ide> /**
<ide> * Source tabl... | 7 |
PHP | PHP | fix arrayaccess implemention in request class | 8f150dc51a5e356f722ebdb66a090d6c4ffddd23 | <ide><path>src/Network/Request.php
<ide> public function offsetSet($name, $value)
<ide> */
<ide> public function offsetExists($name)
<ide> {
<add> if ($name === 'url' || $name === 'data') {
<add> return true;
<add> }
<ide> return isset($this->params[$name]);
<ide> }
<id... | 1 |
Javascript | Javascript | send 400 bad request on parse error | f2f391e575fc8072d10e1ad1601ef3f67f13a4db | <ide><path>lib/_http_server.js
<ide> const {
<ide> const { OutgoingMessage } = require('_http_outgoing');
<ide> const { outHeadersKey, ondrain } = require('internal/http');
<ide> const errors = require('internal/errors');
<add>const Buffer = require('buffer').Buffer;
<ide>
<ide> const STATUS_CODES = {
<ide> 100: 'Co... | 2 |
Javascript | Javascript | avoid bugs with native date class | 39d9476992420bac12751b48d592c79caa9ac8d1 | <add><path>examples/blog-starter/components/date-formater.js
<del><path>examples/blog-starter/components/date.js
<ide> import { parseISO, format } from 'date-fns'
<ide>
<del>export default function Date({ dateString }) {
<add>export default function DateFormater({ dateString }) {
<ide> const date = parseISO(dateStri... | 4 |
Python | Python | handle torch_dtype in low cpu mem usage | 21decb7731e998d3d208ec33e5b249b0a84c0a02 | <ide><path>src/transformers/modeling_utils.py
<ide> def find_submodule_and_param_name(model, long_key):
<ide> for k in loaded_state_dict_keys:
<ide> submodule, param_name = find_submodule_and_param_name(model, k)
<ide> if submodule is not None:
<del> new_va... | 1 |
PHP | PHP | add getter for view instance | 7e730731b6a6282333ebd32cf697122726567234 | <ide><path>src/View/Helper.php
<ide> public function __get($name)
<ide> }
<ide> }
<ide>
<add> /**
<add> * Get the view instance this helper is bound to.
<add> *
<add> * @return \Cake\View\View The bound view instance.
<add> */
<add> public function getView()
<add> {
<add> re... | 2 |
Python | Python | fix documentation errors | c099e0a2b576ddd56ac528b0b09467339badd538 | <ide><path>airflow/operators/python.py
<ide> def get_current_context() -> Dict[str, Any]:
<ide> Obtain the execution context for the currently executing operator without
<ide> altering user method's signature.
<ide> This is the simplest method of retrieving the execution context dictionary.
<del> ** Old ... | 2 |
PHP | PHP | create a composite index for morphing columns | 9997b7ffb5a9b09914db2eca12118f84a70da24f | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function morphs($name)
<ide> $this->unsignedInteger("{$name}_id");
<ide>
<ide> $this->string("{$name}_type");
<add>
<add> $this->index(array("{$name}_id", "{$name}_type"));
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | add v3.16.8 to changelog.md | f879ca2209a48426437218af1f454d4e120375f0 | <ide><path>CHANGELOG.md
<ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message
<ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer
<ide>
<add>### v3.16.8 (April 24, 2020)
<add>
<add>- [#... | 1 |
Javascript | Javascript | move custom method to loopback model extension | 0452a9d1d556cb2b31f1427e00184b98198f5b3e | <ide><path>common/models/Access-Token.js
<add>import { Observable } from 'rx';
<add>
<add>module.exports = AccessToken => {
<add> // wait for datasource to attach before adding methods
<add> // prevents loopback from unnecessarily
<add> // adding watchers on startup
<add> AccessToken.on('dataSourceAttached', () => ... | 2 |
Text | Text | fix typo in css-in-js page | 4299cc169c6552ffd54d02155a2efc0ebd355f68 | <ide><path>docs/basic-features/built-in-css-support.md
<ide> $primary-color: #64FF00
<ide>
<ide> ```js
<ide> // pages/_app.js
<del>import variables from '../styles/variables.module.css'
<add>import variables from '../styles/variables.module.scss'
<ide>
<ide> export default function MyApp({ Component, pageProps }) {
<... | 1 |
Text | Text | clarify undocumented stream properties | 7cfa1bee418696c1c97c1f2466520ab4f4cc8791 | <ide><path>doc/api/stream.md
<ide> object mode is not safe.
<ide> <!--type=misc-->
<ide>
<ide> Both [`Writable`][] and [`Readable`][] streams will store data in an internal
<del>buffer that can be retrieved using `writable.writableBuffer` or
<del>`readable.readableBuffer`, respectively.
<add>buffer.
<ide>
<ide> The a... | 1 |
Javascript | Javascript | fix lint for eslint 1.7 | b106e968648dc6980c159bf9c4954220415896df | <ide><path>src/renderers/shared/event/eventPlugins/ResponderTouchHistoryStore.js
<ide> var MAX_TOUCH_BANK = 20;
<ide> * }
<ide> */
<ide> var touchHistory = {
<del> touchBank: [ ],
<add> touchBank: [],
<ide> numberActiveTouches: 0,
<ide> // If there is only one active touch, we remember its location. This preven... | 2 |
Text | Text | add rubys to collaborators | f19fa7ca4deea517f66cb0ef8b5fd9574bb33a66 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Ron Korving** <ron@ronkorving.nl>
<ide> * [RReverser](https://github.com/RReverser) -
<ide> **Ingvar Stepanyan** <me@rreverser.com>
<add>* [rubys](https://github.com/rubys) -
<add>**Sam Ruby** <rubys@... | 1 |
Ruby | Ruby | use tempfile when writing schema cache | e10019ea60ea72a6d1f763df9acca49583ca2259 | <ide><path>activerecord/lib/active_record/connection_adapters/schema_cache.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "active_support/core_ext/file/atomic"
<add>
<ide> module ActiveRecord
<ide> module ConnectionAdapters
<ide> class SchemaCache
<ide> def clear_data_source_cache!(name)
<ide> d... | 1 |
Python | Python | add flaubert types | a23a7c0cd6db89f68b4ce542c2c66cb2e8110070 | <ide><path>src/transformers/models/flaubert/modeling_flaubert.py
<ide>
<ide>
<ide> import random
<add>from typing import Dict, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> from packaging import version
<ide> def __init__(self, config): # , dico, is_encoder, with_output):
<ide> )
<ide> def forward(
... | 2 |
Text | Text | add notice about useglobal option in repl docs | 6e47e133ab90045db8df611cf34a3f461f291327 | <ide><path>doc/api/repl.md
<ide> changes:
<ide> REPL instances `terminal` value.
<ide> * `useGlobal` {boolean} If `true`, specifies that the default evaluation
<ide> function will use the JavaScript `global` as the context as opposed to
<del> creating a new separate context for the REPL instance. Defaul... | 1 |
Javascript | Javascript | fix launchchrome for chromium on ubuntu | 758111a7066e2e8745b3629e918d3941fa62e453 | <ide><path>local-cli/server/util/launchChrome.js
<ide> function getChromeAppName(): string {
<ide> case 'linux':
<ide> if (commandExistsUnixSync('google-chrome')) {
<ide> return 'google-chrome';
<add> } else if (commandExistsUnixSync('chromium-browser')) {
<add> return 'chromium-browser';
<ide> ... | 1 |
Python | Python | fix merge issue | ff4c3d3613bed679dfd2be487a69df058a168848 | <ide><path>glances/plugins/glances_help.py
<ide> def generate_view_data(self):
<ide> self.view_data['sort_network'] = msg_col2.format("b", _("Bytes or bits for network I/O"))
<ide> self.view_data['sort_cpu'] = msg_col.format("c", _("Sort processes by CPU%"))... | 1 |
PHP | PHP | skip hydrating associations when they are empty | 703a6ddb8d5d64b412641bf09b0b1ff24b69795a | <ide><path>src/ORM/EagerLoader.php
<ide> public function loadExternal($query, $statement) {
<ide> );
<ide> $statement = new CallbackStatement($statement, $driver, $f);
<ide> }
<del>
<ide> return $statement;
<ide> }
<ide>
<ide> protected function _groupKeys($statement, $collectKeys) {
<ide> $keys = [];
<id... | 2 |
Go | Go | expand graphtest package | 8b0441d42cca4f89cf871c1b64172cc06f9c98e6 | <ide><path>daemon/graphdriver/graphtest/graphbench_unix.go
<add>// +build linux freebsd
<add>
<add>package graphtest
<add>
<add>import (
<add> "bytes"
<add> "io"
<add> "io/ioutil"
<add> "path/filepath"
<add> "testing"
<add>
<add> "github.com/docker/docker/pkg/stringid"
<add>)
<add>
<add>// DriverBenchExists benchmarks ... | 4 |
Javascript | Javascript | avoid error when target module failed | 8db617db80c4107e7ac0c9ee3640b3e2d63a49b5 | <ide><path>lib/dependencies/HarmonyImportSpecifierDependency.js
<ide> HarmonyImportSpecifierDependency.Template = class HarmonyImportSpecifierDependen
<ide>
<ide> let exportExpr;
<ide> if (
<add> connection &&
<ide> concatenationScope &&
<ide> concatenationScope.isModuleInScope(connection.module)
<ide> )... | 1 |
PHP | PHP | test queued handlers | 25c6a77749387b709b1ea270b76c200b68ddd706 | <ide><path>tests/Bus/BusDispatcherTest.php
<ide> public function testCommandsThatShouldBeQueuedAreQueued()
<ide> }
<ide>
<ide>
<add> public function testHandlersThatShouldBeQueuedAreQueued()
<add> {
<add> $container = new Container;
<add> $dispatcher = new Dispatcher($container, function() {
<add> $mock = m::moc... | 1 |
Javascript | Javascript | delay ret declaration in method _flushoutput | 2788fd6b980860d51490f0cd0c59639e1b7f6140 | <ide><path>lib/_http_outgoing.js
<ide> OutgoingMessage.prototype._flush = function _flush() {
<ide> };
<ide>
<ide> OutgoingMessage.prototype._flushOutput = function _flushOutput(socket) {
<del> var ret;
<del> var outputLength = this.outputData.length;
<add> const outputLength = this.outputData.length;
<ide> if (o... | 1 |
Go | Go | fix dumper program to use proper import | 1477a3d7fda5e8b29d68ffd5c4d6edead9ba2c61 | <ide><path>builder/dockerfile/parser/dumper/main.go
<ide> import (
<ide> "fmt"
<ide> "os"
<ide>
<del> "github.com/docker/docker/builder/parser"
<add> "github.com/docker/docker/builder/dockerfile/parser"
<ide> )
<ide>
<ide> func main() { | 1 |
Ruby | Ruby | fix tests for sqlite3 | 27dea760f8f08927fd9c370f0f565b6ad1b2c0fe | <ide><path>activerecord/test/cases/adapters/sqlite3/statement_pool_test.rb
<ide> require 'cases/helper'
<ide>
<ide> module ActiveRecord::ConnectionAdapters
<del> class SQLiteAdapter
<add> class SQLite3Adapter
<ide> class StatementPoolTest < ActiveRecord::TestCase
<ide> def test_cache_is_per_pid
<ide> ... | 1 |
Text | Text | remove extra newline | bdb37c4dee127efdf30fe2475430a76172a19469 | <ide><path>docs/publishing-a-package.md
<ide> publishing.
<ide> install it by running `apm install my-package` or from the Atom settings view
<ide> via the *Atom > Preferences...* menu.
<ide>
<del>
<ide> [atomio]: https://atom.io
<ide> [github]: https://github.com
<ide> [git-tag]: http://git-scm.com/book/en/Git-Basics... | 1 |
Python | Python | add some tests for the autoscaler | 37d35ed5762412727f3445b87dd7f8abecfd4516 | <ide><path>celery/tests/test_worker/test_worker_autoscale.py
<ide> def test_shrink_raises_ValueError(self):
<ide> x.scale_down(1)
<ide> self.assertTrue(x.logger.debug.call_count)
<ide>
<add> def test_update_and_force(self):
<add> x = autoscale.Autoscaler(self.pool, 10, 3, logger=logger)
<add>... | 1 |
Go | Go | add todo for removing parsesearchindexinfo() | d9261561f997f299fcc6a1838a358f70a35a15ec | <ide><path>registry/config.go
<ide> func ParseRepositoryInfo(reposName reference.Named) (*RepositoryInfo, error) {
<ide> }
<ide>
<ide> // ParseSearchIndexInfo will use repository name to get back an indexInfo.
<add>//
<add>// TODO(thaJeztah) this function is only used by the CLI, and used to get
<add>// information of... | 1 |
PHP | PHP | remove useless imports | ea22e103278516528afceacdaba1bd666ae36139 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php
<ide>
<ide> namespace Illuminate\Database\Eloquent\Relations\Concerns;
<ide>
<del>use Illuminate\Database\Eloquent\Builder;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Support\Str;
<ide>
<ide><path>src/Illuminate/Suppor... | 5 |
Go | Go | use image version, not os version for tty fixup | 6508c015fe764fd59438cabffcbc6102c9cf04ef | <ide><path>daemon/oci_windows.go
<ide> func (daemon *Daemon) createSpec(c *container.Container) (*libcontainerd.Spec, e
<ide> return nil, fmt.Errorf("Failed to graph.Get on ImageID %s - %s", c.ImageID, err)
<ide> }
<ide>
<add> s.Platform.OSVersion = img.OSVersion
<add>
<ide> // In base spec
<ide> s.Hostname = c.F... | 5 |
Javascript | Javascript | resolve default prop values in cloneelement | 48ded230fca7983dafeb310b8bf5f6ec96958b3d | <ide><path>src/isomorphic/classic/element/ReactElement.js
<ide> ReactElement.cloneElement = function(element, config, children) {
<ide> key = '' + config.key;
<ide> }
<ide> // Remaining properties override existing props
<add> var defaultProps;
<add> if (element.type && element.type.defaultProps) {
... | 2 |
Javascript | Javascript | add a way to disable running service workers. | d8af41d6903e09e0b779c8199aa02fb1fec912cb | <ide><path>lib/router/router.js
<ide> import { loadGetInitialProps, getLocationOrigin } from '../utils'
<ide> // Add "fetch" polyfill for older browsers
<ide> if (typeof window !== 'undefined') {
<ide> require('whatwg-fetch')
<add> // Unregister if there's an exisiting service worker.
<add> // This is because we sh... | 1 |
Text | Text | add pr template | b6bb0be10ad84d456bb1cea535a4a922d7f2e2c6 | <ide><path>PULL_REQUEST_TEMPLATE.md
<add>### Summary
<add>
<add>### Related Issues
<add>
<add>### PR Overview
<add>
<add>- [ ] This PR requires new unit tests [y/n] (make sure tests are included)
<add>- [ ] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
<add>- [ ] This PR is back... | 1 |
PHP | PHP | improve errorlogger for php errors | ab46638329068574a93ebc2042aa183483211730 | <ide><path>src/Error/BaseErrorHandler.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Core\InstanceConfigTrait;
<del>use Cake\Log\Log;
<ide> use Cake\Routing\Router;
<ide> use Psr\Http\Message\ServerRequestInterface;
<add>use RuntimeException;
<ide> use Throwable;
<ide>
<ide> /**
<ide> protected function _log... | 4 |
Ruby | Ruby | prefer interpolation to concatenation | 424187fc15e3d0dd0cab8795a98f2b16a87c7a31 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_bad_python_symlink
<ide> end
<ide>
<ide> def check_for_non_prefixed_coreutils
<del> gnubin = Formula.factory('coreutils').prefix.to_s + "/libexec/gnubin"
<add> gnubin = "#{Formula.factory('coreutils').prefix}/libexec/gnubin"
<ide> if paths.include? gnub... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.