content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add docs for abstract class generators | aeab40b4e3eb6c4e17d9895f38b82c6a99e41136 | <ide><path>guides/source/active_record_multiple_databases.md
<ide> Lastly, for new primary databases you need to set the `migrations_paths` to the
<ide> where you will store migrations for that database. We'll look more at `migrations_paths`
<ide> later on in this guide.
<ide>
<del>Now that we have a new database, let... | 1 |
Javascript | Javascript | ignore object properties which start with $ | aa3c54c73f7470999535294899a1c33cd193f455 | <ide><path>src/ng/directive/select.js
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<ide> modelValue = ctrl.$modelValue,
<ide> values = valuesFn(scope) || [],
<ide> keys = keyName ? sortedKeys(values) : values,
<add> key,
<ide> ... | 2 |
Javascript | Javascript | remove unused constructor parameter | 6638549a7517387fe5ac8ec877c064808c709334 | <ide><path>src/controllers/controller.bubble.js
<ide> export default class BubbleController extends DatasetController {
<ide> }
<ide>
<ide> /**
<add> * @param {number} index
<add> * @param {string} [mode]
<ide> * @protected
<ide> */
<ide> resolveDataElementOptions(index, mode) {
<ide><path>src/core/core.eleme... | 2 |
Text | Text | add description to i18n-routing | bb96fefa8019a593e62ba5e3a615879000c5f740 | <ide><path>docs/advanced-features/i18n-routing.md
<add>---
<add>description: Next.js has built-in support for internationalized routing and language detection. Learn more here.
<add>---
<add>
<ide> # Internationalized Routing
<ide>
<ide> <details> | 1 |
Javascript | Javascript | fix variable charges for force layout | 0a7af55aa9f156a8a62b478bb27eee71e09961f8 | <ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide> nodes = [],
<ide> links = [],
<ide> distances,
<del> strengths;
<add> strengths,
<add> charges;
<ide>
<del> function repulse(node, kc) {
<add> function repulse(node) {
<ide> return function(quad, x1, y1, x2, y2) {... | 3 |
PHP | PHP | ignore tablespaces in dump | e5bfb69708085fef4e48250e3c264df2865198e9 | <ide><path>src/Illuminate/Database/Schema/MySqlSchemaState.php
<ide> public function load($path)
<ide> */
<ide> protected function baseDumpCommand()
<ide> {
<del> $command = 'mysqldump '.$this->connectionString().' --skip-add-locks --skip-comments --skip-set-charset --tz-utc';
<add> $command ... | 1 |
Javascript | Javascript | try ios 11.2 | 0b1adbb2e7bd47845aab92fd77d02c8e37cba091 | <ide><path>karma-shared.conf.js
<ide> module.exports = function(config, specificOptions) {
<ide> 'SL_iOS_11': {
<ide> base: 'SauceLabs',
<ide> browserName: 'iphone',
<del> version: '11.3'
<add> platform: 'OS X 10.12',
<add> version: '11.2'
<ide> },
<ide>
<ide> 'BS... | 1 |
Javascript | Javascript | fix global leak | 5a21138e37e016c044eeb7d53ffa0ac77a5e71a1 | <ide><path>src/node.js
<ide> // check if the file exists and is not a directory
<ide> var tryFile = function(requestPath) {
<ide> try {
<del> stats = fs.statSync(requestPath);
<add> var stats = fs.statSync(requestPath);
<ide> if (stats && !stats.isDirectory()) {
<ide> ... | 1 |
Text | Text | fix typos in models/slim/readme.md (#904) | f88eef947cc99aee82d60c50fce4d46ac1166572 | <ide><path>slim/README.md
<ide> See
<ide>
<ide> #### The ResNet and VGG Models have 1000 classes but the ImageNet dataset has 1001
<ide>
<del>The ImageNet dataset provied has an empty background class which was can be used
<add>The ImageNet dataset provided has an empty background class which can be used
<ide> to fin... | 1 |
Python | Python | add ability to connect a neptune.ai run | 6f3c99acca30efa34e9222dbbec87218c6c07724 | <ide><path>src/transformers/integrations.py
<ide> def setup(self, args, state, model):
<ide> api_token=os.getenv("NEPTUNE_API_TOKEN"),
<ide> mode=os.getenv("NEPTUNE_CONNECTION_MODE", "async"),
<ide> name=os.getenv("NEPTUNE_RUN_NAME", None),
<add> run=os.get... | 1 |
Java | Java | avoid unnecessary call to get message type | 4e4145ac27d15a8078c1f1b468b5fd61ec332d21 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.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 "Lice... | 1 |
Text | Text | add article on automated accessibility tools | 558cdc000a547d77bfa5023bea4613d8eae42821 | <ide><path>guide/english/accessibility/automated-testing/index.md
<ide> title: Automated Accessibility Testing Tools
<ide> ---
<ide> ## Automated Accessibility Testing
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/accessibility/automated-testing/index.md' target='_bla... | 1 |
Ruby | Ruby | fix i18n of attributes with multi-digit indexes | cd619e97818110201d38e572c95ab7393bc70f4a | <ide><path>activemodel/lib/active_model/error.rb
<ide> def self.full_message(attribute, message, base_class) # :nodoc:
<ide> attribute = attribute.to_s
<ide>
<ide> if i18n_customize_full_message && base_class.respond_to?(:i18n_scope)
<del> attribute = attribute.remove(/\[\d\]/)
<add> attribut... | 3 |
PHP | PHP | remove comment bloat from view class | 42cff59a7d28e1066d94ee297ea779d7fcb9a2a0 | <ide><path>system/view.php
<ide> public function get()
<ide> {
<ide> static::$last = $this->view;
<ide>
<del> // -----------------------------------------------------
<ide> // Get the evaluated content of all of the sub-views.
<del> // -----------------------------------------------------
<ide> foreach ($this... | 1 |
Text | Text | add a webpacker guide [ci skip] | 59009c29309be68de1e53a3c0cfec63cd895eb48 | <ide><path>guides/source/webpacker.md
<add>Webpacker
<add>=========
<add>
<add>This guide will show you how to install and use Webpacker to package JavaScript, CSS, and other assets for the client-side of your Rails application.
<add>
<add>After reading this guide, you will know:
<add>
<add>* What Webpacker does and w... | 1 |
Javascript | Javascript | change ios fontfamily example | 54bbe1b6ea45ed0d80b887e52dce15a9d9c431f3 | <ide><path>RNTester/js/examples/TextInput/TextInputExample.ios.js
<ide> exports.examples = [
<ide> return (
<ide> <View>
<ide> <TextInput
<del> style={[styles.default, {fontFamily: 'sans-serif'}]}
<del> placeholder="Custom fonts like Sans-Serif are supported"
<add> ... | 1 |
Javascript | Javascript | use common.mustcall(), and log the events | b52a8f3507a6df179d0cf2144c88173607926241 | <ide><path>test/parallel/test-tls-set-encoding.js
<ide> const messageUtf8 = 'x√ab c';
<ide> const messageAscii = 'xb\b\u001aab c';
<ide>
<ide> const server = tls.Server(options, common.mustCall(function(socket) {
<add> console.log('server: on secureConnection', socket.getProtocol());
<ide> socket.end(messageUtf8);
... | 1 |
Go | Go | fix empty-lines (revive) | cd381aea5688e2913ba33ce3607e48d5eb49c1d3 | <ide><path>libnetwork/agent.go
<ide> func (c *controller) handleNodeTableEvent(ev events.Event) {
<ide> return
<ide> }
<ide> c.processNodeDiscovery([]net.IP{nodeAddr.Addr}, isAdd)
<del>
<ide> }
<ide>
<ide> func (c *controller) handleEpTableEvent(ev events.Event) {
<ide><path>libnetwork/bitseq/sequence.go
<ide> fun... | 40 |
PHP | PHP | capitalize uuid acronym | 81c2e9db84857e273bc6fc63acdae9c32dcb54a8 | <ide><path>lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php
<ide> public function testVirtualFieldWithFunction() {
<ide> }
<ide>
<ide> /**
<del> * Test that records can be inserted with uuid primary keys, and
<add> * Test that records can be inserted with UUID primary keys, and
<ide> * that the primary ke... | 2 |
Go | Go | fix typo in integration-cli | 2dfb57b6706daee8e0855319bc2b121bf970267a | <ide><path>integration-cli/docker_cli_rm_test.go
<ide> func (s *DockerSuite) TestRmContainerRunning(c *check.C) {
<ide> func (s *DockerSuite) TestRmContainerForceRemoveRunning(c *check.C) {
<ide> createRunningContainer(c, "foo")
<ide>
<del> // Stop then remove with -s
<add> // Stop then remove with -f
<ide> dockerCm... | 1 |
Mixed | Python | apply suggestions from code review | e766e8c56d2fe6ddf9800659cd408d8f4b7141a6 | <ide><path>spacy/language.py
<ide> def replace_listeners(
<ide> )
<ide> raise ValueError(err)
<ide> pipe = self.get_pipe(pipe_name)
<del> # Update the config accordingly by coping the tok2vec model to all
<add> # Update the config accordingly by copying ... | 2 |
Javascript | Javascript | add canmangle flag to getexports | ab280135b1f04549ace96a0f2cbd1e91ba07204b | <ide><path>lib/Dependency.js
<ide> const DependencyReference = require("./dependencies/DependencyReference");
<ide> /**
<ide> * @typedef {Object} ExportSpec
<ide> * @property {string} name the name of the export
<del> * @property {Module=} from when reexported: from which module
<del> * @property {string[] | null=} ... | 3 |
Javascript | Javascript | adjust mobile view for email-signup page | 42e8b2247e6551e4ee2929f01c2c669cfd8300d7 | <ide><path>client/src/pages/email-sign-up.js
<ide> class AcceptPrivacyTerms extends Component {
<ide> <title>{t('misc.email-signup')} | freeCodeCamp.org</title>
<ide> </Helmet>
<ide> <Grid className='default-page-wrapper email-sign-up'>
<add> <Spacer />
<ide> <SectionHeader>... | 1 |
Ruby | Ruby | add missing period [ci skip] | d473561071082489fa3f6ce11b42c9beea9b0ddc | <ide><path>activerecord/lib/active_record/errors.rb
<ide> class StatementTimeout < StatementInvalid
<ide> class QueryCanceled < StatementInvalid
<ide> end
<ide>
<del> # AdapterTimeout will be raised when database clients times out while waiting from the server
<add> # AdapterTimeout will be raised when database ... | 1 |
Python | Python | remove printing of config | 8353ca5a516ba7e1bfb4d8d0207f2854de8d73f4 | <ide><path>examples/training/train_textcat.py
<ide> def main(config_path, output_dir=None, n_iter=20, n_texts=2000, init_tok2vec=Non
<ide>
<ide> print(f"Loading nlp model from {config_path}")
<ide> nlp_config = Config().from_disk(config_path)
<del> print(f"config: {nlp_config}")
<ide> nlp, _ = util.load... | 1 |
Javascript | Javascript | add a comment about supporting hint replacement | e1f7edfae8c6de2dcfa1a4481496189e04fd1115 | <ide><path>fonts.js
<ide> var Type1Parser = function() {
<ide>
<ide> // This is the same things about hint replacement, if it is not used
<ide> // entry 3 can be replaced by {3}
<add> // TODO support hint replacment
<ide> if (index == 3) {
<ide> charstring.p... | 1 |
Ruby | Ruby | fix doc format for `duplicable?` [ci skip] | af2e39f3d5a0f0300fac21666b016d4cf21938b6 | <ide><path>activesupport/lib/active_support/core_ext/object/duplicable.rb
<ide> def duplicable?
<ide> class BigDecimal
<ide> # BigDecimals are duplicable:
<ide> #
<del> # BigDecimal.new("1.2").duplicable? # => true
<del> # BigDecimal.new("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
<add> # BigDeci... | 1 |
PHP | PHP | add followingredirects() method | 030d5212d89be18b5b91133f1c01fce68e433b63 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide> trait MakesHttpRequests
<ide> */
<ide> protected $serverVariables = [];
<ide>
<add> /**
<add> * Whether redirects should be followed.
<add> *
<add> * @var bool
<add> */
<add> protected $followRedirects = fa... | 1 |
Mixed | Ruby | fix output messages - docs [ci skip] | 2ef4d5ed5cbbb2a9266c99535e5f51918ae3e3b6 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def initialize(base)
<ide> @messages = {}
<ide> end
<ide>
<del> def initialize_dup(other) #:nodoc:
<add> def initialize_dup(other) # :nodoc:
<ide> @messages = other.messages.dup
<ide> super
<ide> end
<ide>
<ide> # Clear the er... | 9 |
Ruby | Ruby | set the default charset in response initialize | dd8c76d9b90da5c1b551e26c7d27d9519a19b711 | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> class Response
<ide>
<ide> # The charset of the response. HTML wants to know the encoding of the
<ide> # content you're giving them, so we need to send that along.
<del> attr_accessor :charset
<add> attr_reader :charset
<ide>
<ide> CON... | 1 |
Ruby | Ruby | remove duplicated `delivery_method` definition | e4cf71bf7a8be80ad4624ae3d21f5646e21cfe21 | <ide><path>actionmailer/test/parameterized_test.rb
<ide> class ParameterizedTest < ActiveSupport::TestCase
<ide>
<ide> @previous_deliver_later_queue_name = ActionMailer::Base.deliver_later_queue_name
<ide> ActionMailer::Base.deliver_later_queue_name = :test_queue
<del> ActionMailer::Base.delivery_method = :... | 1 |
Text | Text | update changelog with time column type casting fix | acf583a5e00be0fb684f73ad51cdad0237c981b2 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix time column type casting for invalid time string values to correctly return nil.
<add>
<add> *Adam Meehan*
<add>
<ide> * Allow to pass Symbol or Proc into :limit option of #accepts_nested_attributes_for
<ide>
<ide> *... | 1 |
Java | Java | find @responsestatus recursively on getcause() | 26cfe5795fcaf59288a3c0e3ccdbb60751a9dd4b | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/annotation/ResponseStatusExceptionResolver.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (th... | 3 |
Javascript | Javascript | improve parameter docs for boolean attributes | ae70ec7946a75fc1760158f954b27fb59342d568 | <ide><path>src/ng/directive/booleanAttrs.js
<ide> </doc:example>
<ide> *
<ide> * @element INPUT
<del> * @param {expression} ngDisabled Angular expression that will be evaluated.
<add> * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
<add> * then special attribute "disabl... | 1 |
Javascript | Javascript | reset cache before every test | fd83d3724ad30a93254f08cb82f981eaddb5dbff | <ide><path>test/helpers/testabilityPatch.js
<del>/* global jQuery: true, uid: true */
<add>/* global jQuery: true, uid: true, jqCache: true */
<ide> 'use strict';
<ide>
<ide> /**
<ide> if (window._jQuery) _jQuery.event.special.change = undefined;
<ide> if (window.bindJQuery) bindJQuery();
<ide>
<ide> beforeEach(funct... | 1 |
Text | Text | add marsonya to collaborators | c685e4ae009371e82687f5a9c00c588471a247b7 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Denys Otrishko** <<shishugi@gmail.com>> (he/him)
<ide> * [Lxxyx](https://github.com/Lxxyx) -
<ide> **Zijian Liu** <<lxxyxzj@gmail.com>> (he/him)
<add>* [marsonya](https://github.com/marsonya) -
<add> **Akhil Marsony... | 1 |
Text | Text | update radial linear scale docs | 876ddc89313cef693771a70b571d844b062e7fc4 | <ide><path>docs/02-Scales.md
<ide> Name | Type | Default | Description
<ide> backdropColor | Color | 'rgba(255, 255, 255, 0.75)' | Color of label backdrops
<ide> backdropPaddingX | Number | 2 | Horizontal padding of label backdrop
<ide> backdropPaddingY | Number | 2 | Vertical padding of label backdrop
<add>beginAtZero... | 1 |
Javascript | Javascript | remove discrete lanes and priorities | dcdf8de7e1489fda5cee70acbd1310ee1bb0d312 | <ide><path>packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.internal.js
<ide> describe(preprocessData, () => {
<ide> {
<ide> componentStack: '',
<ide> laneLabels: ['Default'],
<del> lanes: [7],
<add> lanes: [5],
<ide> tim... | 9 |
Javascript | Javascript | convert the `xref` to a "normal" class | bc828cd41f9ce25e8ce1a483f53b4ddb3fa5ccec | <ide><path>src/core/xref.js
<ide> import {
<ide> } from "./core_utils.js";
<ide> import { CipherTransformFactory } from "./crypto.js";
<ide>
<del>var XRef = (function XRefClosure() {
<del> // eslint-disable-next-line no-shadow
<del> function XRef(stream, pdfManager) {
<add>class XRef {
<add> constructor(stream, pdf... | 1 |
PHP | PHP | add email config for transferencoding | 2023b4ea69a30481d40e37030688efe6a8b00f8f | <ide><path>src/Mailer/Email.php
<ide> class Email implements JsonSerializable, Serializable
<ide> */
<ide> public $headerCharset;
<ide>
<add> /**
<add> * The email transfer encoding used.
<add> * If null, the $charset property is used for determined the transfer encoding.
<add> *
<add> * @v... | 2 |
PHP | PHP | set the router on the controller | 789a9b3667d4b6a70d2c4892cc2c675e6129a40b | <ide><path>src/Illuminate/Routing/ControllerServiceProvider.php
<ide> public function register()
<ide> {
<ide> $this->app->singleton('illuminate.route.dispatcher', function($app)
<ide> {
<add> Controller::setRouter($app['router']);
<add>
<ide> return new ControllerDispatcher($app['router'], $app);
<ide> });... | 1 |
Ruby | Ruby | remove unnecessary is_a check | 0ee351b428e038394d495c20a868d40ad3032e83 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def reflect_on_all_associations(macro = nil)
<ide> # Invoice.reflect_on_association(:line_items).macro # returns :has_many
<ide> #
<ide> def reflect_on_association(association)
<del> reflection = reflections[association]
<del> ... | 1 |
Javascript | Javascript | remove unused function | 3ed094d14259f6bb1eb8c7614e988b770c002613 | <ide><path>src/ng/sce.js
<ide> function $SceDelegateProvider() {
<ide> return resourceUrlBlacklist;
<ide> };
<ide>
<del> // Helper functions for matching resource urls by policy.
<del> function isCompatibleProtocol(documentProtocol, resourceProtocol) {
<del> return ((documentProtocol === resourceProtocol) |... | 1 |
Javascript | Javascript | use module.unsafecache only for node_modules | 3b35fd478cb4bbe6315a7d30cf8a1c383950914c | <ide><path>lib/NormalModuleFactory.js
<ide> class NormalModuleFactory {
<ide> });
<ide> this.resolverFactory = resolverFactory;
<ide> this.ruleSet = new RuleSet(options.defaultRules.concat(options.rules));
<add> this.unsafeCache = !!options.unsafeCache;
<ide> this.cachePredicate =
<ide> typeof options.unsaf... | 2 |
PHP | PHP | read content type in a more compatible way | 56634c792fd96f3875010532bf9fd262ff73a7cd | <ide><path>src/Network/Request.php
<ide> protected function _processPost($data)
<ide> {
<ide> $method = $this->env('REQUEST_METHOD');
<ide> if (in_array($method, ['PUT', 'DELETE', 'PATCH']) &&
<del> strpos($this->env('CONTENT_TYPE'), 'application/x-www-form-urlencoded') === 0
<add> ... | 2 |
Go | Go | fix multiple copy from | b50ade0bfb67dae7867f4f5c3da12c1f778b6c7e | <ide><path>image/image.go
<ide> type ChildConfig struct {
<ide> // NewChildImage creates a new Image as a child of this image.
<ide> func NewChildImage(img *Image, child ChildConfig, platform string) *Image {
<ide> isEmptyLayer := layer.IsEmpty(child.DiffID)
<del> rootFS := img.RootFS
<del> if rootFS == nil {
<add> va... | 3 |
Javascript | Javascript | remove unnecessary parameter | d6a6bcdc47c0c0e31e24bba0e8e26ee0da5b7eb0 | <ide><path>lib/_stream_readable.js
<ide> Readable.prototype.on = function(ev, fn) {
<ide> if (!state.reading) {
<ide> process.nextTick(nReadingNextTick, this);
<ide> } else if (state.length) {
<del> emitReadable(this, state);
<add> emitReadable(this);
<ide> }
<ide> }
<ide> ... | 1 |
Ruby | Ruby | relocate libtool files | de6a9ff055f9f691f132b03d297268590a42a541 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, optio
<ide> end
<ide> end
<ide>
<del> text_files.group_by { |f| f.stat.ino }.each_value do |first, *rest|
<add> files = text_files | libtool_files
<add>
<add> files.group_by {... | 1 |
Javascript | Javascript | change app name | 94a2a9dcde718fe15ef4b08a4839a69462c868d3 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> author: 'Steve Ng'
<ide> },
<ide> {
<del> name: 'ShareHows',
<add> name: '쉐어하우스',
<ide> icon: 'http://a4.mzstatic.com/us/r30/Purple5/v4/78/1c/83/781c8325-a1e1-4afc-f106-a629bcf3c6ef/icon175x175.png',
<ide> linkAppStore: 'http... | 1 |
Javascript | Javascript | remove unused argument | 3ca4ca463c97a2bbca09f0366d2a753a13751143 | <ide><path>src/ngMessages/messages.js
<ide> angular.module('ngMessages', [])
<ide> *
<ide> * @param {expression} ngMessage|when a string value corresponding to the message key.
<ide> */
<del> .directive('ngMessage', ngMessageDirectiveFactory('AE'))
<add> .directive('ngMessage', ngMessageDirectiveFactory()... | 1 |
PHP | PHP | add tests for single parameter routing | e8baa62405001f22ae0f7080550882c4d8edb9a2 | <ide><path>tests/Routing/RoutingUrlGeneratorTest.php
<ide> public function testBasicRouteGeneration()
<ide> $route = new Illuminate\Routing\Route(array('GET'), 'foo/bar/{baz}/breeze/{boom}', array('as' => 'bar'));
<ide> $routes->add($route);
<ide>
<add> /**
<add> * Single Parameter...
<add> */
<add> $route =... | 1 |
Text | Text | use singular package | 292ff0de52d7f0b979703c522b0c17b6c1ff3d14 | <ide><path>docs/README.md
<ide> overview of the main editor API.
<ide> Check out the [Atom][Atom] class docs to see what globals are available and
<ide> what they provide.
<ide>
<del>You can also require many of these classes in your packages via:
<add>You can also require many of these classes in your package via:
<i... | 1 |
Python | Python | replace python with sys.executable | 82a03ee18e8f2ca3982646c1076c1edf02ce0698 | <ide><path>spacy/cli/project.py
<ide> import os
<ide> import re
<ide> import shutil
<add>import sys
<ide>
<ide> from ._app import app, Arg, Opt, COMMAND
<ide> from .. import about
<ide> def run_commands(commands: List[str] = tuple(), variables: Dict[str, str] = {})
<ide> for command in commands:
<ide> # Su... | 1 |
Javascript | Javascript | change `ticks.mode` to `scale.distribution` | 97e23737210bbfb5612b41e2573430350f1aeee6 | <ide><path>src/scales/scale.time.js
<ide> function sorter(a, b) {
<ide> return a - b;
<ide> }
<ide>
<add>function arrayUnique(items) {
<add> var hash = {};
<add> var out = [];
<add> var i, ilen, item;
<add>
<add> for (i = 0, ilen = items.length; i < ilen; ++i) {
<add> item = items[i];
<add> if (!hash[item]) {
<add>... | 2 |
Text | Text | improve doc for disabling repl history on windows | 303585eb293e1d6aa2c13d2cf47fa7285732237f | <ide><path>doc/api/repl.md
<ide> environment variables:
<ide>
<ide> - `NODE_REPL_HISTORY` - When a valid path is given, persistent REPL history
<ide> will be saved to the specified file rather than `.node_repl_history` in the
<del> user's home directory. Setting this value to `''` will disable persistent
<del> ... | 1 |
PHP | PHP | correct doc blocks and default values | 0efad4f6ee02cf771f1bb3c41caf526414a95236 | <ide><path>src/Database/Connection.php
<ide> public function configName() {
<ide> *
<ide> * If no params are passed it will return the current driver instance.
<ide> *
<del> * @param string|\Cake\Database\Driver $driver The driver instance to use.
<add> * @param \Cake\Database\Driver|string|null $driver The driver i... | 10 |
Javascript | Javascript | fix crash when passing null to clearimmediate | 44fcf22074ca32e5f6869b88f7b6c00ea990cb08 | <ide><path>Libraries/JavaScriptAppEngine/System/JSTimers/JSTimers.js
<ide> var JSTimers = {
<ide>
<ide> clearImmediate: function(timerID) {
<ide> JSTimers._clearTimerID(timerID);
<del> JSTimersExecution.immediates.splice(
<del> JSTimersExecution.immediates.indexOf(timerID),
<del> 1
<del> );
<add>... | 1 |
PHP | PHP | pass session to formrequest | 3a06c91468cc2453a82590208c06bd4037c421f4 | <ide><path>src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php
<ide> protected function initializeRequest(FormRequest $form, Request $current)
<ide> $current->cookies->all(), $files, $current->server->all(), $current->getContent()
<ide> );
<ide>
<add> $form->setSession($current->getSession());
<ad... | 1 |
Text | Text | move gibfahn to tsc emeritus | 2ebdba12297348649620e3d302b156c149d85a6e | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Jeremiah Senkpiel** <fishrock123@rocketmail.com>
<ide> * [gabrielschulhof](https://github.com/gabrielschulhof) -
<ide> **Gabriel Schulhof** <gabriel.schulhof@intel.com>
<del>* [gibfahn](https://github.co... | 1 |
Javascript | Javascript | fix codeclimate issues | 47d23601b1e3cfc18c7a661ff56c4545c8e6a29d | <ide><path>gulpfile.js
<ide> var srcDir = './src/';
<ide> gulp.task('build', function(){
<ide>
<ide> // Default to all of the chart types, with Chart.Core first
<del> var srcFiles = [FileName('Core')],
<add> var srcFiles = [new FileName('Core')],
<ide> isCustom = !!(util.env.types),
<ide> outputDir = (isCustom) ?... | 2 |
Ruby | Ruby | use guard clause instead of `||` | ad7be58655e260adda6a9e4d33365148d22463db | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def clear_cache
<ide>
<ide> def safe_system(*args)
<ide> if @shutup
<del> quiet_system(*args) || raise(ErrorDuringExecution.new(args, status: $CHILD_STATUS))
<add> return if quiet_system(*args)
<add> raise(ErrorDuringExecution.new(args, status... | 2 |
Ruby | Ruby | add method `ensure_executable!` | c0826f1890eaf11ddc1d9e1dfd83a44fc218d91b | <ide><path>Library/Homebrew/github_packages.rb
<ide> def upload_bottles(bottles_hash, keep_old:, dry_run:, warn_on_error:)
<ide> raise UsageError, "HOMEBREW_GITHUB_PACKAGES_USER is unset." if user.blank?
<ide> raise UsageError, "HOMEBREW_GITHUB_PACKAGES_TOKEN is unset." if token.blank?
<ide>
<del> skopeo = ... | 2 |
Javascript | Javascript | remove the `function.prototype.bind` polyfill | 4b15e8566b5c454f26ee4b2da57c3d726e6c019c | <ide><path>src/shared/compatibility.js
<ide> PDFJS.compatibilityChecked = true;
<ide> });
<ide> })();
<ide>
<del>// Function.prototype.bind?
<del>// Support: Android<4.0, iOS<6.0
<del>(function checkFunctionPrototypeBindCompatibility() {
<del> if (typeof Function.prototype.bind !== 'undefined') {
<del> return;
<... | 1 |
PHP | PHP | resolve psalm error | f633d0aa79c108fdc1ceb6bf9ca4630169861c8f | <ide><path>src/Shell/Helper/TableHelper.php
<ide> protected function _calculateWidths(array $rows): array
<ide> /**
<ide> * Get the width of a cell exclusive of style tags.
<ide> *
<del> * @param string|null $text The text to calculate a width for.
<add> * @param string $text The text to calculate... | 2 |
Text | Text | remove extraneous comma in tutorial | 246fdebf82624eb1300a0a63cc6aea110e0cc50e | <ide><path>docs/docs/tutorial.md
<ide> prev: getting-started.html
<ide> next: thinking-in-react.html
<ide> ---
<ide>
<del>We'll be building a simple, but realistic comments box that you can drop into a blog, a basic version of the realtime comments offered by Disqus, LiveFyre or Facebook comments.
<add>We'll be buildi... | 1 |
PHP | PHP | use variadic isset | 5fd031e041844cd35e9d4d9afc2698b84b3f0d5b | <ide><path>src/ORM/EagerLoader.php
<ide> protected function _reformatContain($associations, $original)
<ide>
<ide> $pointer += [$table => []];
<ide>
<del> if (isset($options['queryBuilder']) && isset($pointer[$table]['queryBuilder'])) {
<add> if (isset($options['queryBuilder'], $poin... | 2 |
Go | Go | remove unnecessary variable idx | 730e0994c8ceec64e753562c648e57e0a7ead6b4 | <ide><path>oci/namespaces.go
<ide> import specs "github.com/opencontainers/runtime-spec/specs-go"
<ide>
<ide> // RemoveNamespace removes the `nsType` namespace from OCI spec `s`
<ide> func RemoveNamespace(s *specs.Spec, nsType specs.NamespaceType) {
<del> idx := -1
<ide> for i, n := range s.Linux.Namespaces {
<ide> ... | 1 |
Ruby | Ruby | remove another unnecessary dup | 8ef780c3e2df86fa678982a5db80421ccf4d4dee | <ide><path>actionpack/lib/action_dispatch/journey/formatter.rb
<ide> def clear
<ide> private
<ide>
<ide> def extract_parameterized_parts(route, options, recall, parameterize = nil)
<del> data = recall.merge(options)
<add> parameterized_parts = recall.merge(options)
<ide>
<ide> ... | 1 |
Python | Python | use future for urlparse | 697c8fa0265ce70b1e777d4e2d6a38fde3a834e2 | <ide><path>airflow/models.py
<ide> from __future__ import print_function
<add>from future.standard_library import install_aliases
<add>install_aliases()
<ide> from builtins import str
<ide> from past.builtins import basestring
<ide> from builtins import object, bytes
<ide> import signal
<ide> import socket
<ide> import... | 1 |
PHP | PHP | throw exception on pusher broadcaster error | 67e7beb119b40abf31a65affa0abe0c9cb9463ac | <ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
<ide> namespace Illuminate\Broadcasting\Broadcasters;
<ide>
<ide> use Pusher;
<add>use RuntimeException;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use Symfony\Component\HttpKernel\Exception\HttpException;
<ide> pu... | 1 |
Javascript | Javascript | add setformattime for overriding the time format | 2f96914b8e570fc16d19b546fa0bfe26ab0b727c | <ide><path>src/js/utils/format-time.js
<ide> /**
<ide> * @file format-time.js
<del> * @module Format-time
<add> * @module format-time
<ide> */
<ide>
<del>/**
<add> /**
<ide> * Format seconds as a time string, H:MM:SS or M:SS. Supplying a guide (in seconds)
<ide> * will force a number of leading zeros to cover the ... | 3 |
Ruby | Ruby | modify syntax for readability / consistency | dce6b77ad05ce23850fecdafb007cd261108a30a | <ide><path>Library/Homebrew/extend/os/mac/caveats.rb
<ide> def plist_caveats
<ide>
<ide> if f.plist_manual || f.service?
<ide> command = if f.service?
<del> f.service.command
<del> .map { |arg| (arg =~ /\s/) ? "'#{arg}'" : arg } # wrap multi-word arguments in quotes
<del> .join(" ")
<a... | 1 |
PHP | PHP | remove comments (missing commit) | c7da89d4d45e69c5302551854962a65948e38401 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function insert($query, $bindings = [])
<ide> *
<ide> * @param string $query
<ide> * @param array $bindings
<del> * @return int Number of rows affected by the query
<add> * @return int
<ide> */
<ide> public function upda... | 2 |
Javascript | Javascript | update swipeablelistview props and more | 395122354f00483673fdaf5aec8c1e15e59d617b | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableListView.js
<ide> type Props = {
<ide> bounceFirstRowOnMount: boolean,
<ide> dataSource: SwipeableListViewDataSource,
<ide> maxSwipeDistance: number | (rowData: any, sectionID: string, rowID: string) => number,
<del> onScroll: ?Function,
<add> onScroll?: ?... | 1 |
Python | Python | fix documentation of flow_from_directory() | a053416a310868971a5ec743e714961e28d78c79 | <ide><path>keras/preprocessing/image.py
<ide> def flow_from_directory(self, directory,
<ide> The dimensions to which all images found will be resized.
<ide> color_mode: one of "grayscale", "rbg". Default: "rgb".
<ide> Whether the images will be converted to have 1 or 3 ... | 1 |
Python | Python | make username optional in hub_model_id | 32634bce3312cb3827d3fec80ecb33206f7ae7be | <ide><path>src/transformers/keras_callbacks.py
<ide> def __init__(
<ide> tokenizer (:obj:`PreTrainedTokenizerBase`, `optional`):
<ide> The tokenizer used by the model. If supplied, will be uploaded to the repo alongside the weights.
<ide> hub_model_id (:obj:`str`, `optional`):
<del> ... | 3 |
Javascript | Javascript | add end instructions | 0bb563f07310719ec599d01d85b87408b17ac51a | <ide><path>lib/wasm/WebAssemblyGenerator.js
<ide> const rewriteImportedGlobals = state => bin => {
<ide>
<ide> globalType.mutability = "var";
<ide>
<del> const init = createDefaultInitForGlobal(globalType);
<add> const init = [
<add> createDefaultInitForGlobal(globalType),
<add> t.instruction("end")... | 1 |
PHP | PHP | use is_dir instead of file_exists | 5fc99089db0ebe5b3f2983e8f24a52e6b01140c9 | <ide><path>src/Illuminate/Database/Eloquent/Factory.php
<ide> public static function construct($pathToFactories = null)
<ide>
<ide> $factory = new static;
<ide>
<del> if (file_exists($pathToFactories)) {
<add> if (is_dir($pathToFactories)) {
<ide> foreach (Finder::create()->files()->... | 1 |
PHP | PHP | output the command list when no command is given | 3f08be54fb23941c2bafcaadda6e623eb3905e35 | <ide><path>src/Console/CommandRunner.php
<ide> public function run(array $argv, ConsoleIo $io = null)
<ide> */
<ide> protected function getShell(ConsoleIo $io, CommandCollection $commands, $name)
<ide> {
<add> if (!$name) {
<add> $io->err('<error>No command provided. Choose one of the ava... | 2 |
Python | Python | reuse ex_deploy_node when instatiating a new node | 8892bbcbda533ffdea2d7b5f3658bf9b825bd58a | <ide><path>libcloud/compute/drivers/vcloud.py
<ide> def create_node(self, **kwargs):
<ide>
<ide> # Power on the VM.
<ide> if ex_deploy:
<add> res = self.connection.request(get_url_path(vapp_href))
<add> node = self._to_node(res.object)
<ide> # Retry 3 times: when insta... | 1 |
Python | Python | add chroot detection | 8b63d555e3e1d5b29d4bff81679deb36980f664c | <ide><path>setup.py
<ide>
<ide> from setuptools import setup
<ide>
<add>is_chroot = os.stat('/').st_ino != 2
<add>
<ide>
<ide> def get_data_files():
<ide> data_files = [
<ide> def get_data_files():
<ide> ('share/man/man1', ['man/glances.1'])
<ide> ]
<ide>
<del> if os.name == 'posix' and os.getuid... | 1 |
Python | Python | update the doc string for t5withlmheadmodel | 62f58046088061314545411135a43a0ee8ddf6ba | <ide><path>src/transformers/modeling_t5.py
<ide> class T5WithLMHeadModel(T5PreTrainedModel):
<ide> r"""
<ide> **lm_labels**: (`optional`) ``torch.LongTensor`` of shape ``(batch_size, sequence_length)``:
<ide> Labels for computing the masked language modeling loss.
<del> Indices should... | 1 |
Ruby | Ruby | decorate process._fork if available | fe4ead7fc62900ca4bceebc73c57e9be8f1156e4 | <ide><path>activesupport/lib/active_support/fork_tracker.rb
<ide>
<ide> module ActiveSupport
<ide> module ForkTracker # :nodoc:
<add> module ModernCoreExt
<add> def _fork
<add> pid = super
<add> if pid == 0
<add> ForkTracker.check!
<add> end
<add> pid
<add> end
<add>... | 1 |
Javascript | Javascript | remove extraneous file | 850b3f775bd08a52b1d9a1febcd567c841c02e2b | <ide><path>gulpfile.js
<ide> gulp.task('lint', function() {
<ide> gulp.task('test', function () {
<ide> return gulp.src('./')
<ide> .pipe(jest({
<del> scriptPreprocessor: './resources/jest-preprocessor.js',
<add> scriptPreprocessor: './resources/jestPreprocessor.js',
<ide> unmockedModulePathPatter... | 2 |
Javascript | Javascript | remove ajax requirement for simple xml tests | 6bc08c2b2f04629114ae7ca79c3c2c54320e4908 | <ide><path>test/data/testinit.js
<add>/*jshint multistr:true*/
<add>
<ide> var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
<ide> $ = this.$ || "$",
<ide> originaljQuery = jQuery,
<ide> function t(a,b,c) {
<ide> deepEqual(f, q.apply(q,c), a + " (" + b + ")");
<ide> }
<ide>
<add>
<add>var createDas... | 4 |
Text | Text | use sentence-case for governance.md headers | 7c02446aa777d3994b6a950c1dcf1bf2b6e97905 | <ide><path>GOVERNANCE.md
<ide>
<ide> * [Triagers](#triagers)
<ide> * [Collaborators](#collaborators)
<del> * [Collaborator Activities](#collaborator-activities)
<del>* [Technical Steering Committee](#technical-steering-committee)
<del> * [TSC Meetings](#tsc-meetings)
<del>* [Collaborator Nominations](#collaborator-n... | 1 |
Javascript | Javascript | allow deps to be empty in loader | 3bb454762ce7d62f03bb6f778f9a3831829b72fa | <ide><path>packages/loader/lib/main.js
<ide> var mainContext = this;
<ide> var seen = {};
<ide>
<ide> define = function(name, deps, callback) {
<del> registry[name] = { deps: deps, callback: callback };
<add> var value = { };
<add>
<add> if (!callback) {
<add> value.deps = [];
<add> ... | 1 |
Text | Text | fix punctuation error in reducers.md | 89571cd6049252fff57fb013e92bf4b853e23803 | <ide><path>docs/basics/Reducers.md
<ide> In Redux, all the application state is stored as a single object. It's a good id
<ide>
<ide> For our todo app, we want to store two different things:
<ide>
<del>* The currently selected visibility filter;
<add>* The currently selected visibility filter.
<ide> * The actual list... | 1 |
Python | Python | expose flag to log model flops and parameters | 24ae1f51df065e38e89c3bda5e4a53448f40b426 | <ide><path>official/vision/serving/export_saved_model.py
<ide>
<ide> FLAGS = flags.FLAGS
<ide>
<del>
<del>flags.DEFINE_string(
<del> 'experiment', None, 'experiment type, e.g. retinanet_resnetfpn_coco')
<add>flags.DEFINE_string('experiment', None,
<add> 'experiment type, e.g. retinanet_resnetfpn... | 1 |
PHP | PHP | apply fixes from styleci | 8ca157bcc1c426db45a3088f971f6d962ee5d09b | <ide><path>src/Illuminate/Container/Container.php
<ide> public function get($id)
<ide> protected function resolve($abstract, $parameters = [], $raiseEvents = true)
<ide> {
<ide> $abstract = $this->getAlias($abstract);
<del>
<add>
<ide> $concrete = $this->getContextualConcrete($abstract);... | 1 |
Javascript | Javascript | use getselection in ie where available | 6b46e80bb9c6e60eb743a7897ab8cf27d60d3faa | <ide><path>src/browser/ui/ReactDOMSelection.js
<ide> function setModernOffsets(node, offsets) {
<ide> }
<ide> }
<ide>
<del>var useIEOffsets = ExecutionEnvironment.canUseDOM && document.selection;
<add>var useIEOffsets = (
<add> ExecutionEnvironment.canUseDOM &&
<add> 'selection' in document &&
<add> !('getSelecti... | 1 |
Ruby | Ruby | raise argumenterror for argument errors | acc1c35f35fb86957d56e19988fd4aeabae57b9e | <ide><path>Library/Homebrew/software_spec.rb
<ide> def option_defined?(name)
<ide> def option name, description=nil
<ide> name = 'c++11' if name == :cxx11
<ide> name = name.to_s if Symbol === name
<del> raise "Option name is required." if name.empty?
<del> raise "Options should not start with dashes." i... | 2 |
Go | Go | fix the comment for daemon/logger.copier | 518709a87e04f55babc5162861aa4ba9a423f0c8 | <ide><path>daemon/logger/copier.go
<ide> import (
<ide> "github.com/Sirupsen/logrus"
<ide> )
<ide>
<del>// Copier can copy logs from specified sources to Logger and attach
<del>// ContainerID and Timestamp.
<add>// Copier can copy logs from specified sources to Logger and attach Timestamp.
<ide> // Writes are concurr... | 1 |
Python | Python | fix whisper for `pipeline` | b722a6be72517054318d382662eed5e300c4f9c3 | <ide><path>src/transformers/models/whisper/feature_extraction_whisper.py
<ide> def __call__(
<ide> return_attention_mask: Optional[bool] = None,
<ide> padding: Optional[str] = "max_length",
<ide> max_length: Optional[int] = None,
<add> sampling_rate: Optional[int] = None,
<ide> **... | 4 |
Ruby | Ruby | fix uninitialized ivar warnings | 6033e8aeb003a37c0ebce8f6edb4349d94c8e712 | <ide><path>actionpack/lib/abstract_controller/base.rb
<ide> def abstract!
<ide> @abstract = true
<ide> end
<ide>
<add> def inherited(klass) # :nodoc:
<add> # define the abstract ivar on subclasses so that we don't get
<add> # uninitialized ivar warnings
<add> unless klass.instan... | 1 |
PHP | PHP | add path searching for composer | d16af09bf7c75d2dc5741760637eb66812ce7991 | <ide><path>src/Console/Command/Task/ProjectTask.php
<ide> public function main() {
<ide> if (!preg_match('/^\w[\w\d_]+$/', $namespace)) {
<ide> $this->err(__d('cake_console', 'Project Name/Namespace needs to start with a letter and can only contain letters, digits and underscore'));
<ide> $this->args = [];
<del... | 1 |
Text | Text | fix variable name | 88cbcd3cb00137a6bd141dbf7402cbaf3998b5a7 | <ide><path>docs/advanced/Middleware.md
<ide> let createStoreWithMiddleware = applyMiddleware(
<ide> vanillaPromise,
<ide> readyStatePromise,
<ide> logger,
<del> errorHandler
<add> crashReporter
<ide> )(createStore);
<ide> let todoApp = combineReducers(reducers);
<ide> let store = createStoreWithMiddleware(todoA... | 1 |
Ruby | Ruby | move the fixopt method into the build class | 8a971f72686298ba44d427ba65823a6e70b2a4d8 | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> end
<ide> end
<ide> end
<del>end
<ide>
<del>def fixopt f
<del> path = if f.linked_keg.directory? and f.linked_keg.symlink?
<del> f.linked_keg.resolved_path
<del> elsif f.prefix.directory?
<del> f.prefix
<del> elsif (kids = f.rack.childre... | 1 |
Python | Python | rewrite recursion when parsing dag into iteration | b92f6198d1944b0ae5e0b6ebc928f7cd3bdf39b0 | <ide><path>airflow/models/abstractoperator.py
<ide> def get_flat_relative_ids(
<ide> if not dag:
<ide> return set()
<ide>
<del> if not found_descendants:
<add> if found_descendants is None:
<ide> found_descendants = set()
<del> relative_ids = self.get_direct_relativ... | 1 |
PHP | PHP | extract a label widget | b3d943e76df2daa9c841054e7906d578d4d5489b | <ide><path>src/View/Input/Label.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please see th... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.