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 |
|---|---|---|---|---|---|
Javascript | Javascript | remove trailing whitespace | 996b1e4378c61e290cfe0815cd816f2b983ef7f0 | <ide><path>src/ng/directive/validators.js
<ide> * @ngdoc directive
<ide> * @name ngRequired
<ide> * @restrict A
<del> *
<add> *
<ide> * @description
<ide> *
<ide> * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}. | 1 |
Java | Java | introduce sse support in webclient | 7b183048b8179ed4cc73abb0cd6b7ac449e482c3 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientStrategiesBuilder.java
<ide> import org.springframework.http.codec.HttpMessageReader;
<ide> import org.springframework.http.codec.HttpMessageWriter;
<ide> import org.springframework.http.codec.ResourceHttpMessa... | 3 |
Go | Go | implement docker ps with standanlone client lib | d05aa418b0466553a24d42896f99176cfa29765f | <ide><path>api/client/lib/container_list.go
<add>package lib
<add>
<add>import (
<add> "encoding/json"
<add> "net/url"
<add> "strconv"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/pkg/parsers/filters"
<add>)
<add>
<add>// ContainerListOptions holds parameters to list containers with.... | 2 |
PHP | PHP | change cake.php to allow cake libs at root | d577d6b84e3ebaa13590c2c8c378e3f4886bccde | <ide><path>app/Console/cake.php
<ide> */
<ide> $ds = DIRECTORY_SEPARATOR;
<ide> $dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
<del>$found = false;
<del>$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
<ide>
<del>foreach ($paths as $path) {
<del> if (file_exists($path . $ds . $dispatc... | 2 |
Ruby | Ruby | log the statement name along with the sql | 2ae9166d8fef242e3b0d52af0c8c79d86a80268e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def close
<ide>
<ide> protected
<ide>
<del> def log(sql, name = "SQL", binds = [])
<add> def log(sql, name = "SQL", binds = [], statement_name = nil)
<ide> @instrumenter.instrument(
<ide> "sql.act... | 4 |
Ruby | Ruby | fix new warning in ruby 2.2 | 35362817b16e97c9db07c5d2586a95009e747b28 | <ide><path>activerecord/test/cases/relation/mutation_test.rb
<ide> def relation
<ide> end
<ide>
<ide> test '#reorder!' do
<del> relation = self.relation.order('foo')
<add> @relation = self.relation.order('foo')
<ide>
<ide> assert relation.reorder!('bar').equal?(relation)
<ide> assert_equ... | 1 |
PHP | PHP | update exception message | a291404aa5263485b051c6dac5147324e35c1a2b | <ide><path>src/Routing/Router.php
<ide> protected static function unwrapShortString(array $url)
<ide> {
<ide> foreach (['plugin', 'prefix', 'controller', 'action'] as $key) {
<ide> if (isset($url[$key])) {
<del> throw new InvalidArgumentException("`$key` cannot be used to override... | 1 |
Javascript | Javascript | fix uri resolution in `opensync()` | abd8f2c0b787a43a5827aeeec987689c70d965e5 | <ide><path>src/workspace.js
<ide> module.exports = class Workspace extends Model {
<ide> const activatePane = options.activatePane != null ? options.activatePane : true
<ide> const activateItem = options.activateItem != null ? options.activateItem : true
<ide>
<del> const uri = this.project.resolvePath(uri)... | 1 |
Javascript | Javascript | fix typo in description | 15d283b1140ec8f1ec3098c1ad684b02889b085e | <ide><path>src/ng/interpolate.js
<ide> *
<ide> * @description
<ide> *
<del> * Used for configuring the interpolation markup. Deafults to `{{` and `}}`.
<add> * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
<ide> */
<ide> function $InterpolateProvider() {
<ide> var startSymbol = '{{'; | 1 |
Python | Python | add region attr to zone in the gce driver | b136a86d3bec64d7503a437a5323fe757a63d6fb | <ide><path>libcloud/compute/drivers/gce.py
<ide> def _to_zone(self, zone):
<ide> extra['selfLink'] = zone.get('selfLink')
<ide> extra['creationTimestamp'] = zone.get('creationTimestamp')
<ide> extra['description'] = zone.get('description')
<add> extra['region'] = zone.get('region')
<ide> ... | 1 |
Javascript | Javascript | fix potential duplication of page loading | 4f0c74c543a15ec101e3489bb35b3920c773e7a2 | <ide><path>packages/next/client/page-loader.js
<ide> export default class PageLoader {
<ide> }
<ide>
<ide> if (!this.loadingRoutes[route]) {
<add> this.loadingRoutes[route] = true
<ide> if (process.env.__NEXT_GRANULAR_CHUNKS) {
<ide> this.getDependencies(route).then(deps => {
<ide>... | 1 |
Javascript | Javascript | make chart.controllers.* importable | be8d78a900b560a1dbd465a29736063e4e8fa4ef | <ide><path>src/chart.js
<ide> require('./core/core.helpers')(Chart);
<ide>
<ide> Chart.Animation = require('./core/core.animation');
<ide> Chart.animationService = require('./core/core.animations');
<add>Chart.controllers = require('./controllers/index');
<add>Chart.DatasetController = require('./core/core.datasetCont... | 20 |
Text | Text | remove reference to outdated section | 0fd301aaf7e0f028fe8ea1c4b896191489d1fc0a | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> The easiest and recommended way to get a development environment ready to hack i
<ide>
<ide> #### The Hard Way
<ide>
<del>In case you can't use the Rails development box, see section above, check [this other guide](development_dependencies_install.html).... | 1 |
Javascript | Javascript | fix failing location test | 2a31b5fac2ba230565d6b64224d5598ef0bfa3cf | <ide><path>packages/ember-application/tests/system/location_test.js
<ide> test("doesn't push a state if path has not changed", function() {
<ide> });
<ide>
<ide> test("it handles an empty path as root", function() {
<del> var setPath;
<del>
<del> window.history.pushState = function(data, title, path) {
<del> setP... | 1 |
Text | Text | add docs for package repo maintenance | d0cb7e599ed63fb6a29080d929ff7e7620a1fc1f | <ide><path>project/PACKAGE-REPO-MAINTENANCE.md
<add># Apt & Yum Repository Maintenance
<add>## A maintainer's guide to managing Docker's package repos
<add>
<add>### How to clean up old experimental debs and rpms
<add>
<add>We release debs and rpms for experimental nightly, so these can build up.
<add>To remove old exp... | 1 |
Javascript | Javascript | fix bad merge | 6397774fb502e979d7b40e3e3bfdd50f59f5a03b | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> var rule = "@font-face { font-family:'" + fontName + "';src:" + url + "}";
<ide> var styleSheet = document.styleSheets[0];
<ide> styleSheet.insertRule(rule, styleSheet.cssRules.length);
<add>
<add> return rule;
<ide> }
<ide> };
<ide>... | 1 |
Mixed | Python | update stop_words.py for french language | 5368ba028a9c7bbd4d41b79f8a768b65b7e5be75 | <ide><path>.github/contributors/mauryaland.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project... | 2 |
Javascript | Javascript | use event system to alert on disconnection | a13b64d3e8b5fe5bcff7b0bdbe239a9e78d2da7d | <ide><path>glances/outputs/static/js/components/glances/controller.js
<ide> function GlancesController($scope, $timeout, GlancesStats, REFRESH_TIME, Hotkeys
<ide> data.isLinux = data.stats['system']['os_name'] === 'Linux';
<ide> data.isMac = data.stats['system']['os_name'] === 'Darwin';
<ide> da... | 4 |
Go | Go | add support for cap_fowner | a0070f0c17b4f65bdfc5368b93d0fa8636eda03d | <ide><path>pkg/libcontainer/types.go
<ide> var (
<ide> {Key: "CHOWN", Value: capability.CAP_CHOWN},
<ide> {Key: "NET_RAW", Value: capability.CAP_NET_RAW},
<ide> {Key: "DAC_OVERRIDE", Value: capability.CAP_DAC_OVERRIDE},
<add> {Key: "FOWNER", Value: capability.CAP_FOWNER},
<ide> }
<ide> )
<ide> | 1 |
Python | Python | remove the string-encasing of certain annotations | 8f0aaf522293f8a72c96bc38773c4cd9f0d552c8 | <ide><path>numpy/typing/mypy_plugin.py
<ide> """A module containing `numpy`-specific plugins for mypy."""
<ide>
<add>from __future__ import annotations
<add>
<ide> import typing as t
<ide>
<ide> import numpy as np
<ide> def _get_precision_dict() -> t.Dict[str, str]:
<ide>
<ide> #: A dictionary mapping type-aliases i... | 1 |
Java | Java | add extra logging information for reactshadownode | b1d646a7cd6757391aa58045990cf3516b77ad50 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java
<ide> public YogaNode cloneNode(YogaNode oldYogaNode,
<ide> private final float[] mPadding = new float[Spacing.ALL + 1];
<ide> private final boolean[] mPaddingIsPercent = new boolean[Spacing.ALL + 1];
<ide> private YogaNod... | 1 |
Go | Go | move history to separate file | c987aa09d81a6916e3893c41b7ec2880570b5c65 | <ide><path>runtime/history.go
<add>package runtime
<add>
<add>import (
<add> "sort"
<add>)
<add>
<add>// History is a convenience type for storing a list of containers,
<add>// ordered by creation date.
<add>type History []*Container
<add>
<add>func (history *History) Len() int {
<add> return len(*history)
<add>}
<add>... | 2 |
Go | Go | modify word spelling errors in stats.go | 413e058b72eab50001496b1a4d0af7393be26df0 | <ide><path>api/client/stats.go
<ide> func (s *containerStats) Collect(cli *DockerCli, streamStats bool) {
<ide> var memPercent = 0.0
<ide> var cpuPercent = 0.0
<ide>
<del> // MemoryStats.Limit will never be 0 unless the container is not running and we havn't
<add> // MemoryStats.Limit will never be 0 unless ... | 1 |
PHP | PHP | correct a little spelling mistake | cd2e3eb451d7da9c5df30f5febfdfbec6862792f | <ide><path>src/Illuminate/Log/Writer.php
<ide> public function useErrorLog($level = 'debug', $messageType = ErrorLogHandler::OP
<ide> }
<ide>
<ide> /**
<del> * Get a defaut Monolog formatter instance.
<add> * Get a default Monolog formatter instance.
<ide> *
<ide> * @return \Monolog\Formatter\LineFormatter
<id... | 1 |
PHP | PHP | fix verification of expected invocations | 008ad3237c1e672b3ac970507420620d79c496e7 | <ide><path>lib/Cake/Test/Case/Console/ShellDispatcherTest.php
<ide> public function testGetShell() {
<ide> */
<ide> public function testDispatchShellWithMain() {
<ide> $Dispatcher = new TestShellDispatcher();
<del> $Mock = $this->getMock('Shell', array(), array(), 'MockWithMainShell');
<add> $Shell = $this->getMo... | 11 |
Text | Text | fix typo in object_detection docs | 093de0aff9af123afd1a3c8d5e35765c7c60ab8e | <ide><path>object_detection/g3doc/running_pets.md
<ide> upload your edited file onto GCS, making note of the path it was uploaded to
<ide> sed -i "s|PATH_TO_BE_CONFIGURED|"gs://${YOUR_GCS_BUCKET}"/data|g" \
<ide> object_detection/samples/configs/faster_rcnn_resnet101_pets.config
<ide>
<del># Copy editted template ... | 1 |
Ruby | Ruby | copy hidden files into bottles | b4f8671849e7bdac249c0d220cf25d054b956eaa | <ide><path>Library/Homebrew/formula_installer.rb
<ide> require "install"
<ide> require "messages"
<ide> require "cask/cask_loader"
<add>require "find"
<ide>
<ide> class FormulaInstaller
<ide> include FormulaCellarChecks
<ide> def check_install_sanity
<ide> end
<ide>
<ide> def build_bottle_preinstall
<del> @e... | 1 |
Text | Text | fix localetitle and line 5 | 8a67fa8cd057efcab88555b31b2c8a5f945584a3 | <ide><path>guide/portuguese/html/attributes/img-src-attribute/index.md
<ide> ---
<ide> title: Img Src Attribute
<del>localeTitle: Img Src Atributo
<add>localeTitle: Atributo Img Src
<ide> ---
<del>## Img Src Atributo
<add>## Atributo Img Src
<ide>
<ide> O atributo `<img src>` refere-se à origem da imagem que você dese... | 1 |
Python | Python | consider do_lower_case in pretrainedtokenizer | 7246d3c2f93c4461f3ec8ada7a26a002d8f196ea | <ide><path>transformers/tests/tokenization_tests_commons.py
<ide> def test_pickle_tokenizer(self):
<ide>
<ide> self.assertListEqual(subwords, subwords_loaded)
<ide>
<add> def test_added_tokens_do_lower_case(self):
<add> tokenizer = self.get_tokenizer(do_lower_case=True)
<add>
<add> ... | 2 |
Ruby | Ruby | convert `formula_validation` test to spec | 834824754f1837aceefe0518b7fe4023053ecfff | <ide><path>Library/Homebrew/test/formula_validation_spec.rb
<add>require "formula"
<add>
<add>describe Formula do
<add> describe "::new" do
<add> matcher :fail_with_invalid do |attr|
<add> match do |actual|
<add> expect {
<add> begin
<add> actual.call
<add> rescue => e
<add>... | 2 |
Ruby | Ruby | fix recursive templates | c9593fc77f31f72bde56e2d370c6aee99fe3e46d | <ide><path>actionview/lib/action_view/digestor.rb
<ide> def compute_and_store_digest(cache_key, name, finder, options) # called under @@
<ide> end
<ide> end
<ide>
<del> def self.tree(name, finder, partial = false, seen = {})
<del> if obj = seen[name]
<del> obj
<del> else
<del> lo... | 2 |
Javascript | Javascript | handle old navigation state safely | 708530a9059876daa76c06b6bcc0b81b856432fd | <ide><path>Examples/UIExplorer/UIExplorerApp.ios.js
<ide> type State = UIExplorerNavigationState & {
<ide> externalExample?: string,
<ide> };
<ide>
<add>const APP_STATE_KEY = 'UIExplorerAppState.v1';
<add>
<ide> class UIExplorerApp extends React.Component {
<ide> _renderOverlay: Function;
<ide> _renderScene: Fun... | 1 |
Javascript | Javascript | upgrade moduledependencytemplateasrequireid to es6 | a8f2244880e203a23423e35c015e2d93fa3197aa | <ide><path>lib/dependencies/ModuleDependencyTemplateAsRequireId.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function ModuleDependencyTemplateAsRequireId() {}
<del>module.exports = ModuleDependencyTemplateAsRequireId;
<add>"use strict";
<add>... | 1 |
Javascript | Javascript | add tests to improve coverage | 2cf8660f11eae3a5a432c595ef38a489e963b846 | <ide><path>lib/ConstPlugin.js
<ide> const getHoistedDeclarations = (branch, includeFunctionDeclarations) => {
<ide> break;
<ide> case "TryStatement":
<ide> stack.push(node.block);
<add> if(node.handler)
<add> stack.push(node.handler.body);
<ide> stack.push(node.finalizer);
<ide> break;
<ide> ... | 2 |
Javascript | Javascript | remove invalid ie exceptional case for `href` | c7a1d1ab0b663edffc1ac7b54deea847e372468d | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide>
<ide> nName = directiveNormalize(name.toLowerCase());
<ide> attrsMap[nName] = name;
<del> attrs[nName] = value = trim((msie && name == 'href')
<del> ? decodeURIC... | 2 |
Ruby | Ruby | move advisory locks to own connection handler | 45add344781b3e5305f85ec10cd4056934cb99aa | <ide><path>activerecord/lib/active_record.rb
<ide> module ActiveRecord
<ide> extend ActiveSupport::Autoload
<ide>
<del> autoload :AdvisoryLockBase
<ide> autoload :Base
<ide> autoload :Callbacks
<ide> autoload :Core
<ide><path>activerecord/lib/active_record/advisory_lock_base.rb
<del># frozen_string_literal: t... | 4 |
Javascript | Javascript | prevent global "fieldguide" variable | 62df37072dcc9e03fffdba3356c5395008823a3b | <ide><path>controllers/fieldGuide.js
<ide> exports.returnIndividualFieldGuide = function(req, res, next) {
<ide> return res.redirect('/field-guide');
<ide> }
<ide>
<del> fieldGuide = fieldGuideFromMongo.pop();
<add> var fieldGuide = fieldGuideFromMongo.pop();
<ide> var dashedN... | 1 |
Go | Go | fix some inefassign warnings | 7b0e0335bcfca9fd0e2244cecea0d27619ba5a0e | <ide><path>contrib/docker-device-tool/device_tool.go
<ide> func byteSizeFromString(arg string) (int64, error) {
<ide>
<ide> rest = strings.ToLower(strings.TrimSpace(rest))
<ide>
<del> var multiplier int64 = 1
<add> var multiplier int64
<ide> switch rest {
<ide> case "":
<ide> multiplier = 1
<ide><path>daemon/clu... | 2 |
PHP | PHP | support unlimited post size correctly | 8da01fd402aa1f22b61d3471df043afe3fc9f3da | <ide><path>src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
<ide> class ValidatePostSize
<ide> */
<ide> public function handle($request, Closure $next)
<ide> {
<del> if ($request->server('CONTENT_LENGTH') > $this->getPostMaxSize()) {
<add> $max = $this->getPostMaxSize();
<add>
<... | 1 |
Text | Text | add 15.x - 18.x to other versions section | 771e50942005e36e07bd50ac25ef679c85e9bc94 | <ide><path>doc/changelogs/CHANGELOG_ARCHIVE.md
<ide> </table>
<ide>
<ide> * Other Versions
<add> * [18.x](CHANGELOG_V18.md)
<add> * [17.x](CHANGELOG_V17.md)
<add> * [16.x](CHANGELOG_V16.md)
<add> * [15.x](CHANGELOG_V15.md)
<ide> * [14.x](CHANGELOG_V14.md)
<ide> * [13.x](CHANGELOG_V13.md)
<ide> * [12.x](CHANG... | 1 |
Text | Text | use "repository" in guides versus repo | 4de6f207dca12164b9403e4d539b843d4d21f820 | <ide><path>doc/guides/releases.md
<ide> $ git push upstream master
<ide>
<ide> ### 14. Push the release tag
<ide>
<del>Push the tag to the repo before you promote the builds. If you haven't pushed
<del>your tag first, then build promotion won't work properly. Push the tag using the
<del>following command:
<add>Push t... | 1 |
PHP | PHP | extract database specific verifier method | 582c5337b06cd476432e4295356f147174454f13 | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateExists($attribute, $value, $parameters)
<ide> */
<ide> protected function getExistCount($connection, $table, $column, $value, $parameters)
<ide> {
<del> $verifier = $this->getPresenceVerifierFor($conn... | 4 |
Javascript | Javascript | update prototype ujs | e9a04320d73d554870ea4c3bf7c1ec18bafcb157 | <ide><path>railties/lib/rails/generators/rails/app/templates/public/javascripts/prototype_ujs.js
<ide> parameters: params,
<ide> evalScripts: true,
<ide>
<del> onComplete: function(request) { element.fire("ajax:complete", request); },
<del> onSuccess: function(request) { element.fire("ajax... | 1 |
PHP | PHP | use php 7 random_bytes if available | 81b73380617307adb055c1ac2062da22b2007e8d | <ide><path>src/Illuminate/Support/Str.php
<ide> public static function plural($value, $count = 2)
<ide> */
<ide> public static function random($length = 16)
<ide> {
<del> if ( ! function_exists('openssl_random_pseudo_bytes'))
<add> if (function_exists('random_bytes'))
<ide> {
<del> throw new RuntimeException(... | 1 |
Python | Python | handle axes with length 0 in np.unique | d18156b00d4215d869d71f1d4c7d66037bd50b4b | <ide><path>numpy/lib/arraysetops.py
<ide> def unique(ar, return_index=False, return_inverse=False,
<ide>
<ide> # Must reshape to a contiguous 2D array for this to work...
<ide> orig_shape, orig_dtype = ar.shape, ar.dtype
<del> ar = ar.reshape(orig_shape[0], -1)
<add> ar = ar.reshape(orig_shape[0], np.pro... | 2 |
Go | Go | fix tests which didn't cleanup properly | 5c175357aaa7e011e3535eeb1ee162450f390b9e | <ide><path>auth/auth_test.go
<ide> func TestCreateAccount(t *testing.T) {
<ide> }
<ide>
<ide> func setupTempConfigFile() (*ConfigFile, error) {
<del> root, err := ioutil.TempDir("", "docker-test")
<add> root, err := ioutil.TempDir("", "docker-test-auth")
<ide> if err != nil {
<ide> return nil, err
<ide> }
<ide> fu... | 2 |
PHP | PHP | avoid notice thrown in debug() | 21fbb97d9873da1d20456f64b35a660561e8119c | <ide><path>src/basics.php
<ide> function debug($var, $showHtml = null, $showFrom = true) {
<ide> $lineInfo = '';
<ide> if ($showFrom) {
<ide> $trace = Debugger::trace(array('start' => 1, 'depth' => 2, 'format' => 'array'));
<del> $file = str_replace(array(CAKE_CORE_INCLUDE_PATH, ROOT), '', $trace[0]['file']);
... | 1 |
PHP | PHP | remove unused untested function from app | 770d9de0b1a16b5d64e0b7a11cdc697367f32b2c | <ide><path>lib/Cake/Core/App.php
<ide> public static function load($className) {
<ide> return false;
<ide> }
<ide>
<del>/**
<del> * Returns the package name where a class was defined to be located at
<del> *
<del> * @param string $className name of the class to obtain the package name from
<del> * @return string pa... | 1 |
Javascript | Javascript | use icon from installationdir in xdg desktop file | 74f9249eae01db301637916497fbc5ede73ebd20 | <ide><path>script/lib/install-application.js
<ide> module.exports = function (packagedAppPath, installDir) {
<ide> fs.removeSync(desktopEntryPath)
<ide> }
<ide> console.log(`Writing desktop entry file at "${desktopEntryPath}"`)
<del> const iconPath = path.join(CONFIG.repositoryRootPath, 'resources', 'a... | 1 |
Text | Text | clarify rat test guidance in release check docs | 2fdcb8a89cd1aaf1a90657385a257e58926c21a9 | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> This can be done with the Apache RAT tool.
<ide>
<ide> * Download the latest jar from https://creadur.apache.org/rat/download_rat.cgi (unpack the binary,
<ide> the jar is inside)
<del>* Unpack the binary (`-bin.tar.gz`) to a folder
<del>* Enter the folder and run the ch... | 4 |
Python | Python | move einsum tests to a different file | f8fccd8a4d77789a41413a98e5486d2f2bad0f02 | <ide><path>numpy/core/tests/test_einsum.py
<add>import sys
<add>from decimal import Decimal
<add>
<add>import numpy as np
<add>from numpy.testing import *
<add>from numpy.testing.utils import WarningManager
<add>import warnings
<add>
<add>class TestEinSum(TestCase):
<add> def test_einsum_errors(self):
<add> #... | 2 |
Text | Text | add create next app instructions | 91b06c752a223d17c69b6fc7d145954ac08ec085 | <ide><path>packages/create-next-app/README.md
<add># create-next-app
<add>
<add>This package includes the global command for creating [Next.js](https://github.com/zeit/next.js) applications.
<add>
<add>Please refer to its documentation:
<add>
<add>- [Setup](https://nextjs.org/docs#setup) – How to create a new Next.js a... | 2 |
Javascript | Javascript | fix memory leak after repeated setstate bailouts | d1bb1c586117df11123859d1ef59228bbf7c750a | <ide><path>packages/react-reconciler/src/ReactFiberConcurrentUpdates.new.js
<ide> import {
<ide> import {NoFlags, Placement, Hydrating} from './ReactFiberFlags';
<ide> import {HostRoot, OffscreenComponent} from './ReactWorkTags';
<ide> import {OffscreenVisible} from './ReactFiberOffscreenComponent';
<add>import {getWor... | 4 |
Python | Python | add numpy import | d4e3cf352023e62fbda3e16c2e302979df40fee0 | <ide><path>run_squad.py
<ide> from tqdm import tqdm, trange
<ide> import random
<ide>
<add>import numpy as np
<ide> import torch
<ide> from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler
<ide> from torch.utils.data.distributed import DistributedSampler | 1 |
Python | Python | add p2 instances | 5bc949d58bc78a812da2ac79721e027fe0d87493 | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def GiB(value):
<ide> 'cpu': 32
<ide> }
<ide> },
<add> 'p2.xlarge': {
<add> 'id': 'p2.xlarge',
<add> 'name': 'Cluster GPU P2 Large Instance',
<add> 'ram': GiB(61),
<add> 'disk' : 4,
<add> 'bandwidth': None
<ad... | 2 |
Text | Text | fix typo in changelog | b74afbf25b8f2c2dfcc60994a932c81fa7a7ba1a | <ide><path>CHANGELOG-5.5.md
<ide> ## v5.5.18 (2017-10-19)
<ide>
<ide> ### Added
<del>- Make `Redirector` macroable ([#21714](https://github.com/laravel/framework/pull/21714))
<add>- Made `Redirector` macroable ([#21714](https://github.com/laravel/framework/pull/21714))
<ide>
<ide> ### Changed
<ide> - Prevent reloadin... | 1 |
Javascript | Javascript | fix the description of the returned value | ee8d8e12fb725c283471ab5397dedf2bf582ea68 | <ide><path>src/ng/filter/filters.js
<ide> function currencyFilter($locale) {
<ide> * @param {(number|string)=} fractionSize Number of decimal places to round the number to.
<ide> * If this is not provided then the fraction size is computed from the current locale's number
<ide> * formatting pattern. In the case of t... | 1 |
Ruby | Ruby | add missing require | 7c8817aeefac2d1a8fa3af5128de1923c788f520 | <ide><path>actionview/lib/action_view/log_subscriber.rb
<add>require 'active_support/log_subscriber'
<add>
<ide> module ActionView
<ide> # = Action View Log Subscriber
<ide> # | 1 |
Javascript | Javascript | remove unnecessary property access with `get` | 0d7b8f6989a9208c2151edfa8f7352453fd8f90a | <ide><path>packages/ember-runtime/lib/mixins/container_proxy.js
<ide> import run from 'ember-metal/run_loop';
<del>import { get } from 'ember-metal/property_get';
<ide> import { Mixin } from 'ember-metal/mixin';
<ide>
<ide> export default Mixin.create({
<ide> export default Mixin.create({
<ide>
<ide> function contain... | 2 |
Javascript | Javascript | specify rule disabled in test-assert.js | f86d0ebc36776cdb09f5514158e783ee440f4216 | <ide><path>test/parallel/test-assert.js
<ide> common.expectsError(
<ide> () => {
<ide> a(
<ide> (() => 'string')()
<del> // eslint-disable-next-line
<add> // eslint-disable-next-line operator-linebreak
<ide> ===
<ide> 123 instanceof
<ide> Buffer
<ide> common.expectsError(
<id... | 1 |
Python | Python | set seed for deterministic random test | 050f390199b098b8f1d7bf89a003573f17a690ba | <ide><path>numpy/lib/tests/test_polynomial.py
<ide> def test_doctests(self):
<ide> def test_poly(self):
<ide> assert_array_almost_equal(np.poly([3, -np.sqrt(2), np.sqrt(2)]),
<ide> [1, -3, -2, 6])
<del>
<add>
<ide> # From matlab docs
<ide> A = [[1, 2... | 1 |
Python | Python | fix building documentation for psrp | 9a20788bddf5249235e94dc8763ec4351398ac8e | <ide><path>docs/build_docs.py
<ide>
<ide> ERRORS_ELIGIBLE_TO_REBUILD = [
<ide> 'failed to reach any of the inventories with the following issues',
<add> 'toctree contains reference to nonexisting document',
<ide> 'undefined label:',
<ide> 'unknown document:',
<ide> 'Error loading airflow.providers', | 1 |
Ruby | Ruby | remove unused code | b8231433d6df8db948020b0bfe8cf878188cc7d6 | <ide><path>actionpack/lib/abstract_controller/caching/fragments.rb
<ide> module Fragments
<ide> self.fragment_cache_keys = []
<ide>
<ide> if respond_to?(:helper_method)
<del> helper_method :fragment_cache_key
<ide> helper_method :combined_fragment_cache_key
<ide> end
<ide> ... | 2 |
Python | Python | add best steps to train | fc74132598f2930894aeb0279e09cd5938e8afe9 | <ide><path>examples/single_model_scripts/run_multiple_choice.py
<ide> def train(args, train_dataset, model, tokenizer):
<ide> global_step = 0
<ide> tr_loss, logging_loss = 0.0, 0.0
<ide> best_dev_acc, best_dev_loss = 0.0, 99999999999.0
<add> best_steps = 0
<ide> model.zero_grad()
<ide> train_iter... | 1 |
Go | Go | fix mflag import | c4e7b0e4d539c66f095d726856562c65f25eac0b | <ide><path>pkg/mflag/example/example.go
<ide> package main
<ide>
<ide> import (
<ide> "fmt"
<del> "github.com/dotcloud/docker/pkg/flag"
<add> flag "github.com/dotcloud/docker/pkg/mflag"
<ide> )
<ide>
<ide> var ( | 1 |
Javascript | Javascript | create zipline model | 0eb15269bef5b45ca9b77fbc7cba98fefb832f43 | <ide><path>models/Zipline.js
<add>var mongoose = require('mongoose');
<add>var secrets = require('../config/secrets');
<add>
<add>/**
<add> *
<add> * @type {exports.Schema}
<add> */
<add>
<add>
<add>var zipLineSchema = new mongoose.Schema({
<add> name: {
<add> type: String,
<add> unique: true
<add> ... | 1 |
PHP | PHP | add urlornull method in router and test | c5934fa846279b3b788e24654fc19a2796d687e7 | <ide><path>src/Routing/Router.php
<ide> public static function url($url = null, $full = false)
<ide> return $output . $frag;
<ide> }
<ide>
<add> /**
<add> * Finds URL for specified action.
<add> *
<add> * Returns a URL pointing to a combination of controller and action.
<add> *
<add> ... | 2 |
Text | Text | fix grammatical errors in gpu guide | c683f4c579916df9e9d101e8e4b4c241e0e32aff | <ide><path>guide/english/computer-hardware/gpu/index.md
<ide> There are two major brands producing GPUs: NVidia and AMD. They are often referr
<ide>
<ide> ## Origin of GPU
<ide>
<del>Most primitive background of GPU can be mapped to the era of VGA (Virtual Graphics Array) controllers. These were not actually a whole ... | 1 |
Javascript | Javascript | fix undefined variable on suspense fixture | 43a137d9c13064b530d95ba51138ec1607de2c99 | <ide><path>fixtures/unstable-async/suspense/src/components/UserPage.js
<ide> function Repositories({id}) {
<ide> padding: 0,
<ide> margin: 0,
<ide> }}>
<del> {repos.map(review => <Repository key={repo.name} {...repo} />)}
<add> {repos.map(repo => <Repository key={repo.name} {...repo} />)... | 1 |
Text | Text | add a tip pointing to code splitting | 86d9dd62931b2c40f36d8a61f259f8114adc11ed | <ide><path>docs/tutorials/essentials/part-7-rtk-query-basics.md
<ide> export const { useGetPostsQuery } = apiSlice
<ide>
<ide> RTK Query's functionality is based on a single method, called `createApi`. All of the Redux Toolkit APIs we've seen so far are UI-agnostic, and could be used with _any_ UI layer. The RTK Query... | 1 |
Javascript | Javascript | add missing licence to findsymlinkspaths | 7d4a5b67d497ecc9a07447a95f73d8e2ee84573d | <ide><path>local-cli/util/findSymlinksPaths.js
<add>/**
<add> * Copyright (c) 2015-present, 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> * of pat... | 1 |
Ruby | Ruby | improve parallel args naming | 97958410f453eca9332330a873947e64d4d90f8d | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide> ENV.delete("HOMEBREW_NO_GITHUB_API")
<ide> ENV.delete("HOMEBREW_NO_EMOJI")
<ide> ENV.delete("HOMEBREW_DEVELOPER")
<add> ENV.delete("HOMEBREW_PRY")
<ide> ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
<ide> ENV["HOMEBREW_N... | 1 |
Go | Go | handle cases where onbuild is not uppercase | 21ab75afe0f7e92ffe942e30c77651a01b6db223 | <ide><path>builder/dispatchers.go
<ide> import (
<ide> "fmt"
<ide> "io/ioutil"
<ide> "path/filepath"
<add> "regexp"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/nat"
<ide> func onbuild(b *Builder, args []string, attributes map[string]bool, original str
<ide> return fmt.Errorf("%s isn't allowed as an ON... | 2 |
Text | Text | update colors entry points docs [ci skip] | e7c20ad1d272889134aa39016b1aaf1ab2096d3e | <ide><path>website/docs/usage/saving-loading.md
<ide> SnekLanguage = get_lang_class("snk")
<ide> nlp = SnekLanguage()
<ide> ```
<ide>
<del>### Custom displaCy colors via entry points {#entry-points-displacy}
<add>### Custom displaCy colors via entry points {#entry-points-displacy new="2.2"}
<ide>
<ide> If you're trai... | 1 |
Python | Python | improve error message for missing api entry | 5006c24ce4ff63937b04badacdbe44789bc00939 | <ide><path>numpy/core/code_generators/generate_numpy_api.py
<ide> def do_generate_api(targets, sources):
<ide> multiarray_api_dict[name] = TypeApi(name, index, 'PyTypeObject', api_name)
<ide>
<ide> if len(multiarray_api_dict) != len(multiarray_api_index):
<del> raise AssertionError("Multiarray API s... | 1 |
Mixed | Python | return datasets directly from input_fns for tf1.5 | e8a7f35221c13bd235a0d430d033dfd22c01430a | <ide><path>official/README.md
<ide>
<ide> The TensorFlow official models are a collection of example models that use TensorFlow's high-level APIs. They are intended to be well-maintained, tested, and kept up to date with the latest TensorFlow API. They should also be reasonably optimized for fast performance while sti... | 3 |
Javascript | Javascript | remove stray references to indexset | 4d3091c95dc3c3df07aaf19d12f5f87f901f18bf | <ide><path>packages/ember-runtime/lib/mixins/mutable_array.js
<ide> Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,
<ide> colors.removeAt(2, 2); => ["green", "blue"]
<ide> colors.removeAt(4, 2); => Error: Index out of range
<ide>
<del> @param {Number|Ember.IndexSet} sta... | 2 |
Python | Python | handle python 3 strings and lazy strings | 10e451a85a034d1158148f54e98147e81454c2ed | <ide><path>rest_framework/fields.py
<ide> from django import forms
<ide> from django.forms import widgets
<ide> from django.utils.encoding import is_protected_type
<add>from django.utils.functional import Promise
<ide> from django.utils.translation import ugettext_lazy as _
<ide> from django.utils.datastructures import... | 1 |
Text | Text | clarify language in asset pipeline guide | 7d8e6219605d11c9da66086e85d7569777e031ea | <ide><path>guides/source/asset_pipeline.md
<ide> location ~ ^/assets/ {
<ide>
<ide> ### Local Precompilation
<ide>
<del>There are several reasons why you might want to precompile your assets locally.
<del>Among them are:
<add>Sometimes, you may not want or be able to compile assets on the production
<add>server. For ... | 1 |
Text | Text | update changelog entry for [ci skip] | e2fcaf804fd9bbae45a74ad18e4797d136fa4a22 | <ide><path>activerecord/CHANGELOG.md
<del>* When table has a composite primary key, the `primary_key` method for
<del> sqlite3 and postgresql was only returning the first field of the key.
<del> Ensures that it will return nil instead, as AR dont support composite pks.
<add>* When a table has a composite prim... | 1 |
Text | Text | add "ng add" to angular-cli | e719c154f608aa9fee020254888cc4686e03f73c | <ide><path>guide/english/angular/command-line-interface/index.md
<ide> Recognize that `ng` is the basic building block of the CLI. All your commands wi
<ide>
<ide> * ng update
<ide>
<add>* ng add (Angular 6)
<add>
<ide> The key terms for each of these are quite telling. Together, they comprise what you will need to h... | 1 |
Ruby | Ruby | use the pg column to cast values | e54d5cc5dabfde7b3d5afd4dcdaf10394986178b | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
<ide> def type_cast(value)
<ide>
<ide> # FIXME: probably we can improve this since we know it is PG
<ide> # specific
<del> ConnectionAdapters::Column.string_to_time value
<add> ConnectionAdapte... | 1 |
Mixed | Text | fix small issues in the docs [ci skip] | 4cfe4aa224591e0cf8a3f9aeb47b2d9f66387056 | <ide><path>website/docs/usage/adding-languages.md
<ide> and morphological analysis.
<ide>
<ide> </div>
<ide>
<del><Infobox title="Table of Contents">
<add><Infobox title="Table of Contents" id="toc">
<ide>
<ide> - [Language data 101](#101)
<ide> - [The Language subclass](#language-subclass)
<ide><path>website/docs/u... | 11 |
Javascript | Javascript | use correct chunkgraph in runtime module | 8de7ec405cd52b858563ad4737dcffb59eb24e18 | <ide><path>lib/esm/ModuleChunkLoadingRuntimeModule.js
<ide> class ModuleChunkLoadingRuntimeModule extends RuntimeModule {
<ide> * @returns {string} runtime code
<ide> */
<ide> generate() {
<del> const { compilation, chunk } = this;
<add> const { compilation, chunk, chunkGraph } = this;
<ide> const {
<ide> r... | 1 |
Go | Go | remove tp5 hack from graphdriver | f61315f0df480b261a70278360b08f32c991d3ef | <ide><path>daemon/graphdriver/windows/windows.go
<ide> import (
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> "github.com/docker/docker/pkg/longpath"
<ide> "github.com/docker/docker/pkg/reexec"
<del> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/go-units"
<ide> "github.com/vbatts/tar-split/ta... | 1 |
PHP | PHP | add assertdispatchedtimes for event fakes | a55c4bf892d4cdcd0213218fe77076c4a1b6969c | <ide><path>src/Illuminate/Support/Testing/Fakes/EventFake.php
<ide> public function __construct(Dispatcher $dispatcher, $eventsToFake = [])
<ide> * Assert if an event was dispatched based on a truth-test callback.
<ide> *
<ide> * @param string $event
<del> * @param callable|null $callback
<add> ... | 2 |
Python | Python | convert unicode string to str to fix cache test | 0350e464c74395127d3ae0f2f6f43a886c9369e4 | <ide><path>celery/backends/base.py
<ide> def _get_task_meta_for(self, task_id):
<ide> meta = self.get(self.get_cache_key_for_task(task_id))
<ide> if not meta:
<ide> return {"status": "PENDING", "result": None}
<del> meta = pickle.loads(meta)
<add> meta = pickle.loads(str(meta))... | 1 |
Javascript | Javascript | remove timermixin from touchableopacity | 9282c9de3908da25002a22fd0663519a6d804d4b | <ide><path>Libraries/Components/Touchable/TouchableOpacity.js
<ide> const Easing = require('Easing');
<ide> const NativeMethodsMixin = require('NativeMethodsMixin');
<ide> const React = require('React');
<ide> const PropTypes = require('prop-types');
<del>const TimerMixin = require('react-timer-mixin');
<ide> const Tou... | 1 |
Javascript | Javascript | fix duplicate email sign in | 600ca2f8ad0a59a2e29d4d3f237c8be6197d5678 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> ctx.res.redirect('/email-signin');
<ide> });
<ide>
<del> User.beforeRemote('create', function({ req }, notUsed, next) {
<add> User.beforeRemote('create', function({ req, res }, _, next) {
<ide> req.body.username = 'fcc' + uuid.v... | 1 |
Javascript | Javascript | increase coverage of internal/util | a7172b5d3cac397f7feb10621038c9187086ed23 | <ide><path>test/parallel/test-internal-util-assertCrypto.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>const util = require('internal/util');
<add>
<add>if (!process.versions.openssl) {
<add> assert.throws(() => util.assertCrypto(),
<add>... | 2 |
Javascript | Javascript | fix type1 width; truetype special characters | a1d2c1c6d34ea6a7f4f66a228429e0941335b97e | <ide><path>src/fonts.js
<ide> var Font = (function Font() {
<ide> case 'Type1':
<ide> var glyphName = this.differences[charcode] || this.encoding[charcode];
<ide> if (this.noUnicodeAdaptation) {
<del> width = this.widths[glyphName];
<add> if (!isNum(width))
<add> ... | 1 |
Javascript | Javascript | update error message | b2d8566d015b908e0b6b1cb75d111d53a967f462 | <ide><path>src/objects/Points.js
<ide> Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
<ide>
<ide> if ( ! geometry.isBufferGeometry && geometry.morphTargets !== undefined && geometry.morphTargets.length > 0 ) {
<ide>
<del> console.error( 'THREE.Mesh.updateMorphTargets() no longer supports... | 1 |
PHP | PHP | add support for http_x_forwarded_port | 4123fe580bc9c1cbc637af9b973183e613adc795 | <ide><path>lib/Cake/Network/Request.php
<ide> public function host() {
<ide> * @return string
<ide> */
<ide> public function port() {
<add> $forwarded = env('HTTP_X_FORWARDED_PORT');
<add> if ($forwarded) {
<add> return $forwarded;
<add> }
<ide> return env('SERVER_PORT');
<ide> }
<ide>
<ide><path>lib/Cake/T... | 2 |
Mixed | Go | add daemon flag to specify public registry mirrors | 69a75c673ccf0aebf19c7b350243f1b0cefad8be | <ide><path>daemon/config.go
<ide> type Config struct {
<ide> AutoRestart bool
<ide> Dns []string
<ide> DnsSearch []string
<add> Mirrors []string
<ide> EnableIptables bool
<ide> EnableIpForward bool
<ide> Default... | 10 |
Python | Python | use traceback to detect call more reliably | 2cba0d77eef983b605bf2f5c85a9d02fe212eda0 | <ide><path>flask/cli.py
<ide> dotenv = None
<ide>
<ide>
<del>def _called_with_wrong_args(factory, exc_info):
<del> exc_type, exc_value, tb = exc_info
<del> return exc_type is TypeError and \
<del> str(exc_value).startswith((
<del> '%s() takes' % factory.__name__,
<del> '%s() mis... | 1 |
Go | Go | move check into startmetricsserver | 88c554f950d4667595cc2174bfab67d2cc072e62 | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
<ide> return errors.Wrap(err, "failed to validate authorization plugin")
<ide> }
<ide>
<del> // TODO: move into startMetricsServer()
<del> if cli.Config.MetricsAddress != "" {
<del> if !d.HasExperimental() {
<del>... | 2 |
Python | Python | remove unused function from gogrid driver | a6eb1bf455959ffde6ee6e1d7015570fc21e8105 | <ide><path>libcloud/drivers/gogrid.py
<ide> def list_images(self, location=None):
<ide> self.connection.request('/api/grid/image/list').object)
<ide> return images
<ide>
<del> def get_uuid(self, field):
<del> uuid_str = "%s:%s" % (field,self.connection.user_id)
<del> return... | 1 |
Ruby | Ruby | fix expansion of deps with --build-bottle | 613546a9948828850f9503ce7a07e5813cde729f | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def requested_deps
<ide> # All dependencies that we must install before installing f.
<ide> # These do not honor flags like --HEAD and --devel.
<ide> def necessary_deps
<add> # FIXME: can't check this inside the block for the top-level dependent
<add> #... | 1 |
Javascript | Javascript | add tydy to the showcase | b86b5af1e864b77da48c5c4f43f7c2c53be9999e | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/cn/app/tong-xing-wang/id914254459?mt=8',
<ide> author: 'Ho Yin Tsun Eugene',
<ide> },
<add> {
<add> name: 'TYDY',
<add> icon: 'http://d2j2p20zkb3bwp.cloudfront.net/images/appicon76x76_2x.png',
<add>... | 1 |
Text | Text | use script/build in --build-dir example | 654a4392a4277dd88ad9000f1867062db813434d | <ide><path>docs/build-instructions/linux.md
<ide> sudo script/grunt install --install-dir /install/atom/here
<ide> ### Custom build directory
<ide>
<ide> ```sh
<del>sudo script/grunt install --build-dir /build/atom/here
<add>script/build --build-dir /build/atom/here
<ide> ```
<ide>
<ide> ## Troubleshooting | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.