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 v4.0.0-beta.6 to changelog | 73baf3d3cb46c5f645e0d6a4fed0530463366b43 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.0.0-beta.6 (October 26, 2021)
<add>
<add>- [#19799](https://github.com/emberjs/ember.js/pull/19799) / [glimmerjs/glimmer-vm#1354](https://github.com/glimmerjs/glimmer-vm/pull/1354) Fixes for errors while precompiling inline templates (introduced in 3.28... | 1 |
PHP | PHP | improve error message | 89250d1dd2896b26e70c13466da1b8d07f4ac56e | <ide><path>src/View/Form/ContextFactory.php
<ide> public function get(ServerRequest $request, array $data = [])
<ide> $context = new NullContext($request, $data);
<ide> }
<ide> if (!($context instanceof ContextInterface)) {
<del> throw new RuntimeException(
<del> 'C... | 2 |
Go | Go | remove the last of pkg/httputil | 4060d6ee0b130cf74294c309dfbd3c860fd2a7f8 | <ide><path>builder/dockerfile/copy.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/builder"
<ide> "github.com/docker/docker/builder/remotecontext"
<del> "github.com/docker/docker/pkg/httputils"
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> "github.com/docker/docker/pkg/progress"
<ide> "github.com/doc... | 6 |
Python | Python | add sp_model_kwargs to unpickle of xlm roberta tok | e0db8276a635b674553cf38aa23699c6340cffd6 | <ide><path>src/transformers/models/xlm_roberta/tokenization_xlm_roberta.py
<ide> def __init__(
<ide> # Mask token behave like a normal word, i.e. include the space before it
<ide> mask_token = AddedToken(mask_token, lstrip=True, rstrip=False) if isinstance(mask_token, str) else mask_token
<ide>
<del> ... | 2 |
PHP | PHP | remove inline assignment in view class | 089efc14376169611ef498a541a1e57ed91a4896 | <ide><path>src/View/View.php
<ide> public function render($view = null, $layout = null)
<ide> $this->layout = $layout;
<ide> }
<ide>
<del> if ($view !== false && $viewFileName = $this->_getViewFileName($view)) {
<add> $viewFileName = $view !== false ? $this->_getViewFileName($view) : ... | 1 |
Python | Python | add intel 64-bit c compiler. closes #960 | dede2691e7db9f0dacbc55444e5495856fa3f504 | <ide><path>numpy/distutils/ccompiler.py
<ide> def CCompiler_cxx_compiler(self):
<ide> "Intel C Compiler for 32-bit applications")
<ide> compiler_class['intele'] = ('intelccompiler','IntelItaniumCCompiler',
<ide> "Intel C Itanium Compiler for Itanium-based applicatio... | 2 |
Go | Go | fix containerd waittimeout | 3bc02fc04005ff06730f178d5b8371f5d05ada0f | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
<ide> }
<ide>
<ide> ctx, cancel := context.WithCancel(context.Background())
<del> if err := cli.initContainerD(ctx); err != nil {
<add> waitForContainerDShutdown, err := cli.initContainerD(ctx)
<add> if waitForConta... | 3 |
Mixed | Text | add django 1.11 into *.md and setup.py | 34f88dc3f8c3a03e4e02537d519636d66f9a9cfd | <ide><path>README.md
<ide> There is a live example API for testing purposes, [available here][sandbox].
<ide> # Requirements
<ide>
<ide> * Python (2.7, 3.2, 3.3, 3.4, 3.5)
<del>* Django (1.8, 1.9, 1.10)
<add>* Django (1.8, 1.9, 1.10, 1.11)
<ide>
<ide> # Installation
<ide>
<ide><path>docs/index.md
<ide> continued dev... | 3 |
PHP | PHP | add missing typehint | c8516edc48beda4a948f3a61a714cd6c798c595c | <ide><path>src/Log/Engine/BaseLog.php
<ide> protected function _format(string $message, array $context = []): string
<ide> *
<ide> * @return string
<ide> */
<del> protected function _getFormattedDate()
<add> protected function _getFormattedDate(): string
<ide> {
<ide> return date($this-... | 1 |
PHP | PHP | fix docblocks params | 410d0c83d51f55cd428657e71891f918f73b8d7d | <ide><path>src/Illuminate/Auth/Notifications/VerifyEmail.php
<ide> public function toMail($notifiable)
<ide> /**
<ide> * Get the verify email notification mail message for the given URL.
<ide> *
<del> * @param string $verificationUrl
<add> * @param string $url
<ide> * @return \Illuminate\... | 20 |
PHP | PHP | send unix timestamp to memcached | c5984af3757e492c6e79cef161169ea09b5b9c7a | <ide><path>src/Illuminate/Cache/MemcachedStore.php
<ide> namespace Illuminate\Cache;
<ide>
<ide> use Memcached;
<add>use Carbon\Carbon;
<ide> use Illuminate\Contracts\Cache\Store;
<ide>
<ide> class MemcachedStore extends TaggableStore implements Store
<ide> public function many(array $keys)
<ide> */
<ide> pu... | 2 |
Javascript | Javascript | fix infobox with id [ci skip] | a9da33c4d97abb0e9a09795d2383b3be3a10a3e9 | <ide><path>website/src/components/infobox.js
<del>import React from 'react'
<add>import React, { Fragment } from 'react'
<ide> import PropTypes from 'prop-types'
<ide> import classNames from 'classnames'
<ide>
<ide> export default function Infobox({
<ide> className,
<ide> children,
<ide> }) {
<add> const Wr... | 1 |
Text | Text | add documentation for deprecation properties | c770f43a917ad818118570cfc979dac989fd4964 | <ide><path>doc/api/process.md
<ide> event loop **before** additional I/O is processed. As a result,
<ide> recursively setting nextTick callbacks will block any I/O from
<ide> happening, just like a `while(true);` loop.
<ide>
<add>## process.noDeprecation
<add><!-- YAML
<add>added: v0.8.0
<add>-->
<add>
<add>* {boolea... | 1 |
Javascript | Javascript | use eslint to fix var->const/let | 7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f | <ide><path>test/addons/buffer-free-callback/test.js
<ide> const common = require('../../common');
<ide> const binding = require(`./build/${common.buildType}/binding`);
<ide>
<ide> function check(size, alignment, offset) {
<del> var buf = binding.alloc(size, alignment, offset);
<del> var slice = buf.slice(size >>> 1)... | 300 |
Ruby | Ruby | ignore another exception | 1e96c6fec4b449f1357744404d0cc62125db6888 | <ide><path>Library/Homebrew/formula_versions.rb
<ide> class FormulaVersions
<ide> IGNORED_EXCEPTIONS = [
<ide> ArgumentError, NameError, SyntaxError, TypeError,
<ide> FormulaSpecificationError, FormulaValidationError,
<del> ErrorDuringExecution,
<add> ErrorDuringExecution, LoadError,
<ide> ]
<ide>
<i... | 1 |
Javascript | Javascript | use ie8 feature detect instead of try catch | d4adaee4eba49922e771db352a75181a9415a76a | <ide><path>src/browser/ui/dom/DOMChildrenOperations.js
<ide> function insertChildAt(parentNode, childNode, index) {
<ide> // browsers so we must replace it with `null`.
<ide>
<ide> // fix render order error in safari
<del> try {
<add> if (!(document.all && !document.addEventListener)) {
<ide> parentNode.inse... | 1 |
Python | Python | fix typo learningratescheduler | 4bb6ac0b04838e8d82d14d7c0f001569f543518b | <ide><path>keras/callbacks.py
<ide> def __init__(self, schedule):
<ide> self.schedule = schedule
<ide>
<ide> def on_epoch_begin(self, epoch, logs={}):
<del> model.lr.set_value(self.schedule(epoch))
<add> self.model.optimizer.lr.set_value(self.schedule(epoch)) | 1 |
Javascript | Javascript | update onlychild invariant message | 921d8c151ba8114a2314f32cd453d8954aeb19fc | <ide><path>src/isomorphic/children/onlyChild.js
<ide> var invariant = require('invariant');
<ide> function onlyChild(children) {
<ide> invariant(
<ide> ReactElement.isValidElement(children),
<del> 'onlyChild must be passed a children with exactly one child.'
<add> 'React.Children.only expected to receive a ... | 1 |
Ruby | Ruby | fix issue with standalone actionview | 16a48a95e3cb0044587df7b0e83b017a94506739 | <ide><path>actionpack/lib/action_view/render/partials.rb
<ide> def find_template(path = @path)
<ide> end
<ide>
<ide> def _find_template(path)
<del> prefix = @view.controller.controller_path unless path.include?(?/)
<add> if controller = @view.controller
<add> prefix = controlle... | 1 |
Python | Python | increase test coverage | 3d9428d3445a429b535a247168d93b8a5910219d | <ide><path>tests/keras/backend/backend_test.py
<ide> def test_pool3d(self):
<ide> cntk_check_single_tensor_operation('pool3d', (5, 9, 11, 5, 3), pool_size=(2, 3, 2),
<ide> strides=(1, 1, 1), pool_mode='avg')
<ide>
<add> check_single_tensor_operation('pool3d', (... | 2 |
Python | Python | set the peak_time to 6 seconds | 38c7ee987622e67bdb4f12b878b12c9c8afd862e | <ide><path>glances/core/glances_logs.py
<ide> def reset_process_sort(self):
<ide> glances_processes.sort_key = 'cpu_percent'
<ide>
<ide> def add(self, item_state, item_type, item_value,
<del> proc_list=None, proc_desc="", peak_time=3):
<add> proc_list=None, proc_desc="", peak_time=6):... | 1 |
Go | Go | fix mistaken call to fmt.println | 52ef89f9c20d02ca341c979e3d4cb8bd13aa0146 | <ide><path>api.go
<ide> func postBuild(srv *Server, w http.ResponseWriter, r *http.Request, vars map[str
<ide> defer in.Close()
<ide> fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.docker.raw-stream\r\n\r\n")
<ide> if err := srv.ImageCreateFromFile(in, out); err != nil {
<del> fmt.Fprintln(out, ... | 1 |
Text | Text | improve spanish translate | 1392ac445bf9fad71713c5fa58b10c7c521fd149 | <ide><path>guide/spanish/git/authenticate-with-github-using-ssh/index.md
<ide> ---
<ide> title: How to authenticate with GitHub using SSH
<del>localeTitle: Cómo autenticar con GitHub usando SSH
<add>localeTitle: Cómo autenticarse con GitHub usando SSH
<ide> ---
<del># Cómo autenticar con GitHub usando SSH
<add># Cómo a... | 1 |
Javascript | Javascript | drop workspace from metro lookup | 864235636787cf7888938070df5dec030547df19 | <ide><path>setupBabel.js
<ide> function buildRegExps(basePath, dirPaths) {
<ide> folderPath =>
<ide> folderPath === 'metro'
<ide> // metro uses flow (for example) which needs to be stripped out w/babel.
<del> // it'll resolve to .../metro/packages/metro/src/index.js we want root
<del> ? ... | 1 |
Javascript | Javascript | add tests for ember.view helpers | e596ab0cb9b3a176e1598b0a1d59629c2043669b | <ide><path>packages/ember-views/tests/views/view/class_string_for_value_test.js
<add>module("Ember.View - _classStringForValue");
<add>
<add>var cSFV = Ember.View._classStringForValue;
<add>
<add>test("returns dasherized version of last path part if value is true", function() {
<add> equal(cSFV("propertyName", true), ... | 2 |
PHP | PHP | remove unnecessary "else" conditions | 01408ab085348f1f7c09df50c9c67b3c27c3d236 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> protected function resolve($name)
<ide>
<ide> if (isset($this->customCreators[$config['driver']])) {
<ide> return $this->callCustomCreator($name, $config);
<del> } else {
<del> $driverMethod = 'create'.ucfirst($config['driver'])... | 1 |
Ruby | Ruby | keep assert_redirected_to backwards compatible | e7a1740114ba2e4d8ee8db77e11158e1e4b093d0 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb
<ide> def assert_response(type, message = nil)
<ide> # # Permanently).
<ide> # assert_redirected_to "/some/path", status: :moved_permanently
<ide> def assert_redirected_to(url_options = {}, options = {}, message = nil)
<del> ... | 1 |
PHP | PHP | fix funny warning | 6725a30fe21224f362ab4bc571c0a3d1752a09ed | <ide><path>lib/Cake/TestSuite/templates/menu.php
<ide> <li style="padding-top: 10px">
<ide> <span style="font-size: 18px"><?php echo $plugin; ?></span>
<ide> <ul>
<del> <li><a href='<?php echo $cases; ?>&plugin=<?php echo $plugin; ?>'>Tests</a></li>
<add> <li><?php printf('<a href="%s&p... | 1 |
Javascript | Javascript | add cleardepth attribute to renderpass | e0df8d13c12bf1b261a4f14430e94cada838e307 | <ide><path>examples/js/postprocessing/RenderPass.js
<ide> THREE.RenderPass = function ( scene, camera, overrideMaterial, clearColor, clear
<ide> this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0;
<ide>
<ide> this.clear = true;
<add> this.clearDepth = false;
<ide> this.needsSwap = false;
<ide>
<ide> }... | 1 |
Python | Python | remove erronous pre_save | 922ee61d8611b41e2944b6503af736b1790abe83 | <ide><path>rest_framework/generics.py
<ide> def post_save(self, obj, created=False):
<ide> """
<ide> pass
<ide>
<del> def pre_save(self, obj):
<del> pass
<del>
<ide>
<ide> class MultipleObjectAPIView(MultipleObjectMixin, GenericAPIView):
<ide> """ | 1 |
Text | Text | provide model card for roberta-base-squad2-covid | 4a94c062a409a87a1503748f039beeeeefb9f8d3 | <ide><path>model_cards/deepset/roberta-base-squad2-covid/README.md
<add># roberta-base-squad2 for QA on COVID-19
<add>
<add>## Overview
<add>**Language model:** deepset/roberta-base-squad2
<add>**Language:** English
<add>**Downstream-task:** Extractive QA
<add>**Training data:** [SQuAD-style CORD-19 annotations](... | 1 |
Python | Python | return self on __enter__ | 7f03932477f92cb5a3b5ae0379f3ee7499a340b0 | <ide><path>spacy/language.py
<ide> def __init__(self, nlp, *names):
<ide> self.extend(nlp.remove_pipe(name) for name in names)
<ide>
<ide> def __enter__(self):
<del> pass
<add> return self
<ide>
<ide> def __exit__(self, *args):
<ide> self.restore() | 1 |
Text | Text | use the caret character to use the latest minor.. | df3c470b46c928d05be46553a75d38f13dea1eb7 | <ide><path>guide/english/certifications/apis-and-microservices/managing-packages-with-npm/use-the-caret-character-to-use-the-latest-minor-version-of-a-dependency/index.md
<ide> title: Use the Caret-Character to Use the Latest Minor Version of a Dependency
<ide> ---
<ide> ## Use the Caret-Character to Use the Latest Min... | 1 |
Text | Text | fix typo in docs. s/methodoligies/methodologies/ | 191adcfb637ea1b52d2da9a75e4e1e4938d9550c | <ide><path>docs/understanding-docker.md
<ide> Docker is an open platform for developing, shipping, and running applications.
<ide> Docker enables you to separate your applications from your infrastructure so
<ide> you can deliver software quickly. With Docker, you can manage your infrastructure
<ide> in the same ways y... | 1 |
PHP | PHP | remove @package tags | 11289af9c4154ad4eea02107083b6151b20cb581 | <ide><path>lib/Cake/Network/Email/AbstractTransport.php
<ide> *
<ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> * @link http://cakephp.org CakePHP(tm) Project
<del> * @package Cake.Network.Email
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * ... | 5 |
Python | Python | fix serialization of weight offsets | f1acdaab55aede4b64ff7ada87affdd9951b7530 | <ide><path>spacy/util.py
<ide> def model_to_bytes(model):
<ide> weights.append(layer._mem.weights)
<ide> else:
<ide> weights.append(layer._mem.weights.get())
<del> metas.append(tuple(layer._mem._offsets))
<add> metas.append(layer._mem._offsets)
<ide> ... | 1 |
Text | Text | fix broken wikipedia link | f84c0ec4badff4818d596ea79a40430456093e68 | <ide><path>docs/style-guide/style-guide.md
<ide> To fix this, **treat reducers as "state machines", where the combination of both
<ide> <summary>
<ide> <h4>Detailed Explanation</h4>
<ide> </summary>
<del>
<add>
<ide> A [finite state machine](https://en.wikipedia.org/wiki/Finite-state_machine) is a useful way of mo... | 1 |
Javascript | Javascript | fix style errors | 3e61a6ac9750cdc428f57b6dafb4277533a4f41a | <ide><path>packages/ember-htmlbars/lib/keywords/view.js
<ide> function swapKey(hash, original, update) {
<ide> var newHash = {};
<ide>
<ide> for (var prop in hash) {
<del> if (prop === original) { newHash[update] = hash[prop]; }
<del> else { newHash[prop] = hash[prop]; }
<add> if (prop === original) {
<ad... | 4 |
Python | Python | fix permission error on non-posix filesystem | 6c6b77a87891ee81ed384124e309dff72a85c02f | <ide><path>airflow/utils/log/file_task_handler.py
<ide> def _init_file(self, ti):
<ide> if not os.path.exists(full_path):
<ide> open(full_path, "a").close()
<ide> # TODO: Investigate using 444 instead of 666.
<del> os.chmod(full_path, 0o666)
<add> try:
<add> ... | 1 |
Python | Python | fix bogus output in polyval example | b7a5b170ff68fc502e4fbc5055d23a8ed082482a | <ide><path>numpy/polynomial/polynomial.py
<ide> def polyval(x, c, tensor=True):
<ide> 6.0
<ide> >>> a = np.arange(4).reshape(2,2)
<ide> >>> a
<del> array([[[ 0, 1],
<del> [ 2, 3]],
<add> array([[0, 1],
<add> [2, 3]])
<ide> >>> polyval(a, [1,2,3])
<ide> array([[ 1., ... | 1 |
PHP | PHP | fix email rendering when using 2 different plugins | 4ec81542dba716619a5221308a6bdbe0fbbee091 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> protected function _renderTemplates($content) {
<ide> $View->plugin = $layoutPlugin;
<ide> }
<ide>
<del> // Convert null to false, as View needs false to disable
<del> // the layout.
<del> if ($layout === null) {
<del> $layout = false;
<del> }
<del>
<ide... | 2 |
PHP | PHP | fix resource routing not allowing generation | 977482bdd3578bd78be243fafd2a3f2e5f6e5089 | <ide><path>src/Routing/RouteBuilder.php
<ide> public function resources($name, $options = [], $callback = null)
<ide> 'controller' => $name,
<ide> 'action' => $action,
<ide> '_method' => $params['method'],
<del> '_ext' => $ext
<ide> ];
<ide> ... | 3 |
Java | Java | improve unit test determinism | 0485a6d7c458f03d561bf367ab9662391b93601a | <ide><path>rxjava-core/src/main/java/rx/plugins/RxJavaPlugins.java
<ide> import java.util.concurrent.atomic.AtomicReference;
<ide>
<ide> import org.junit.After;
<add>import org.junit.Before;
<ide> import org.junit.Test;
<ide>
<ide> /**
<ide> private static Object getPluginImplementationViaProperty(Class<?> pluginClas... | 1 |
Text | Text | fix writable.write callback description | 7c524fb092b143470795c8ca869de4654c728fe1 | <ide><path>doc/api/stream.md
<ide> The `writable.write()` method writes some data to the stream, and calls the
<ide> supplied `callback` once the data has been fully handled. If an error
<ide> occurs, the `callback` *may or may not* be called with the error as its
<ide> first argument. To reliably detect write errors, ... | 1 |
Mixed | Javascript | show weak(set|map) entries in inspect | 1029dd36861d7ab592d4e219362706d2c161839a | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/19259
<add> description: WeakMap and WeakSet entries can now be inspected as well.
<ide> - version: REPLACEME
<ide> pr-u... | 5 |
PHP | PHP | remove mocks from belongstomany test | 46847ac20747350f717eb939197bde579dfc3c65 | <ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php
<ide> */
<ide> class BelongsToManyTest extends TestCase
<ide> {
<add> /**
<add> * Fixtures
<add> *
<add> * @var array
<add> */
<add> public $fixtures = ['core.articles', 'core.special_tags', 'core.articles_tags', 'core.tags'];
<ide> ... | 1 |
Text | Text | fix white spaces | 223ed2b4832d63853b61ccb8e9ff82fcd835e61f | <ide><path>guides/source/routing.md
<ide> Both methods will list all of your routes, in the same order that they appear in
<ide> For example, here's a small section of the `rake routes` output for a RESTful route:
<ide>
<ide> ```
<del> users GET /users(.:format) users#index
<add>users GET /users(... | 1 |
Javascript | Javascript | fix error handling | 4f77bb847624a337a603db2f20c2a2c0cc4cc59e | <ide><path>website/assets/js/models.js
<ide> export class ModelLoader {
<ide> this.renderCompat(tpl, modelId);
<ide> tpl.get('download').setAttribute('href', `${this.repo}/releases/tag/${model}`);
<ide> tpl.get('table').removeAttribute('data-loading');
<add> tpl.get('error').style.display... | 1 |
Python | Python | handle precision in selected_real_kind | 3c340e2b2813b4e614fc87a9cb563f68976b6cf7 | <ide><path>numpy/f2py/crackfortran.py
<ide> def get_parameters(vars, global_params={}):
<ide> elif iscomplex(vars[n]):
<ide> outmess(f'get_parameters[TODO]: '
<ide> f'implement evaluation of complex expression {v}\n')
<del>
<ide> try:
<ide> ... | 1 |
Javascript | Javascript | fix failing test | b322d6610f1edfdaf310b43e1a8d99fde51a451a | <ide><path>server/boot/story.js
<ide> module.exports = function(app) {
<ide> );
<ide> }
<ide>
<del> function hot(req, res) {
<del> return res.render('stories/index', {
<del> title: 'Top Stories on Camper News',
<del> page: 'hot'
<del> });
<del> }
<del>
<ide> function submitNew(req, res) {
<id... | 1 |
Ruby | Ruby | allow insert into <table> select queries | 214af496460c3639e8963c85834ee064f203cc6b | <ide><path>lib/arel/insert_manager.rb
<ide> def into table
<ide> def columns; @ast.columns end
<ide> def values= val; @ast.values = val; end
<ide>
<add> def select select
<add> @ast.select = select
<add> end
<add>
<ide> def insert fields
<ide> return if fields.empty?
<ide>
<ide><path>lib/... | 4 |
Text | Text | fix inconsistent of remote api and document | 22fda380a97795cd83ad8bc4027e1bcd1ad490a6 | <ide><path>docs/sources/reference/api/docker_remote_api_v1.19.md
<ide> Status Codes:
<ide>
<ide> `GET /images/search`
<ide>
<del>Search for an image on [Docker Hub](https://hub.docker.com).
<add>Search for an image on [Docker Hub](https://hub.docker.com). This API
<add>returns both `is_trusted` and `is_automated` ima... | 1 |
Ruby | Ruby | adjust updater tests for `git config` calls | 19a0aa51a1e8e5df95f9b802b165ea9ffce9cf27 | <ide><path>Library/Homebrew/test/test_updater.rb
<ide> def test_init_homebrew
<ide> updater = RefreshBrewMock.new
<ide> updater.git_repo = false
<ide> updater.in_prefix_expect("git init")
<add> updater.in_prefix_expect("git config core.autocrlf false")
<ide> updater.in_prefix_expect("git re... | 1 |
Ruby | Ruby | use getbyte and not getc | 4c0545619d3aaa91f78e00a0d13e662a078a6543 | <ide><path>install_homebrew.rb
<ide> def sudo *args
<ide>
<ide> def getc # NOTE only tested on OS X
<ide> system "/bin/stty raw -echo"
<del> STDIN.getc
<add> STDIN.getbyte
<ide> ensure
<ide> system "/bin/stty -raw echo"
<ide> end | 1 |
Text | Text | add trade republic to list of airflow users | 84b4e6e80bd79849526401fc70d022df642ccfe1 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Deseret Digital Media](http://deseretdigital.com/) [[@formigone](https://github.com/formigone)
<ide> 1. [Digital First Media](http://www.digitalfirstmedia.com/) [[@duffn](https://github.com/duffn) & [@mschmo](https://github.com/mschmo) & [... | 1 |
Text | Text | stabilize part of asynclocalstorage | 7612d82c44c3a7f7e8bf58d57541606f3e7da37b | <ide><path>doc/api/async_context.md
<add># Asynchronous Context Tracking
<add>
<add>> Stability: 2 - Stable
<add>
<add><!-- source_link=lib/async_hooks.js -->
<add>
<add>## Introduction
<add>These classes are used to associate state and propagate it throughout
<add>callbacks and promise chains.
<add>They allow storing ... | 4 |
Mixed | Python | fix the first `nlp` call for `ja` (closes ) | 10189d90925b12c638d75f444b376199ea731c97 | <ide><path>.github/contributors/kbulygin.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
<... | 3 |
Ruby | Ruby | remove the `text?` predicate from the type objects | 3559230720d4ea52d290da4ff4734b5236220fcd | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb
<ide> class SpecializedString < Type::String # :nodoc:
<ide> def initialize(type)
<ide> @type = type
<ide> end
<del>
<del> def text?
<del> false
<del> end
<ide>... | 18 |
Javascript | Javascript | remove unused code | a6ab4c692fd385b338fe837587c2cd1452010482 | <ide><path>packages/ember-runtime/lib/system/application.js
<del>import Namespace from './namespace';
<del>
<del>export default Namespace.extend();
<ide><path>packages/ember-runtime/tests/system/application/base_test.js
<del>import Namespace from '../../../system/namespace';
<del>import Application from '../../../syste... | 2 |
Python | Python | use request.query_params internally | 2c634c0e5cd03cb47674b0d4b76bd7494e030e36 | <ide><path>rest_framework/filters.py
<ide> def filter_queryset(self, request, queryset, view):
<ide> filter_class = self.get_filter_class(view)
<ide>
<ide> if filter_class:
<del> return filter_class(request.GET, queryset=queryset)
<add> return filter_class(request.QUERY_PARAMS, qu... | 4 |
Ruby | Ruby | add bundle check to release task | 89b7396191937134e5524bc4813b18357704ec99 | <ide><path>tasks/release.rb
<ide> end
<ide> end
<ide>
<add> task :bundle do
<add> sh 'bundle check'
<add> end
<add>
<ide> task :commit do
<ide> File.open('pkg/commit_message.txt', 'w') do |f|
<ide> f.puts "# Preparing for #{version} release\n"
<ide> sh "git push --tags"
<ide> end
<ide>
<d... | 1 |
Javascript | Javascript | remove stripe card from donate page | 5f1f5554b2930d08c5eb84c7ed3a4c122b7d7f34 | <ide><path>client/src/components/Donation/DonateForm.js
<ide> class DonateForm extends Component {
<ide> skipAddDonation={!isSignedIn}
<ide> />
<ide> </Col>
<del>
<del> <Col sm={10} smOffset={1} xs={12}>
<del> {subscriptionPayment ? (
<del> <Fragment>
<del> ... | 2 |
Java | Java | add info, and menu key event support to android tv | bb33c1050ba6098a68d70055e33186d9438c4374 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java
<ide> public class ReactAndroidHWInputDeviceHelper {
<ide> .put(KeyEvent.KEYCODE_DPAD_RIGHT, "right")
<ide> .put(KeyEvent.KEYCODE_DPAD_DOWN, "down")
<ide> .put(KeyEvent.KEYCODE_DPAD_LEFT, "left")
... | 1 |
Ruby | Ruby | use tasks instead of comments | 410d87744e699c49348d618a953591a8732c4949 | <ide><path>actionpack/lib/action_controller/metal/responder.rb
<ide> module ActionController #:nodoc:
<ide> #
<ide> # def create
<ide> # @project = Project.find(params[:project_id])
<del> # @task = @project.comments.build(params[:task])
<add> # @task = @project.tasks.build(params[:task])
<ide> #... | 1 |
PHP | PHP | update textarea() to use new widget features | a1a3122b24070d04b1a310f242ab6d73294ca4b5 | <ide><path>src/View/Helper/FormHelper.php
<ide> class FormHelper extends Helper {
<ide> 'formend' => '</form>',
<ide> 'hiddenblock' => '<div style="display:none;">{{content}}</div>',
<ide> 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>',
<add> 'textarea' => '<textarea name="{{name}}"{{attrs}}>{{val... | 2 |
Python | Python | add more custom rules for abbreviations | 877f09218bb5bbe268c2f2b9fe2cd6f66413c325 | <ide><path>spacy/en/language_data.py
<ide> "that's": [
<ide> {ORTH: "that"},
<ide> {ORTH: "'s"}
<del> ]
<add> ],
<add>
<add> "'em": [
<add> {ORTH: "'em", LEMMA: PRON_LEMMA}
<add> ],
<add>
<add> "ol'": [
<add> {ORTH: "ol'", LEMMA: "old"}
<add> ],
<add>
<add> "Ak.": ... | 1 |
Mixed | Go | allow option to override kernel check in overlay2 | ff98da0607c4d6a94a2356d9ccaa64cc9d7f6a78 | <ide><path>daemon/graphdriver/overlay2/overlay.go
<ide> import (
<ide> "os"
<ide> "os/exec"
<ide> "path"
<add> "strconv"
<ide> "strings"
<ide> "syscall"
<ide>
<ide> import (
<ide> "github.com/docker/docker/pkg/directory"
<ide> "github.com/docker/docker/pkg/idtools"
<ide> "github.com/docker/docker/pkg/mount"
<a... | 2 |
Javascript | Javascript | handle input starting with control chars | 35ae69682253ea51e59610a9a9e132c78f5e71d5 | <ide><path>lib/readline.js
<ide> function emitKey(stream, s) {
<ide> key.name = 'space';
<ide> key.meta = (s.length === 2);
<ide>
<del> } else if (s <= '\x1a') {
<add> } else if (s.length === 1 && s <= '\x1a') {
<ide> // ctrl+letter
<ide> key.name = String.fromCharCode(s.charCodeAt(0) + 'a'.charCodeA... | 2 |
Python | Python | fix return shape of tensorinv doc | 88cf0e4f6d722b12f2d57e3acb6452d6a015cc93 | <ide><path>numpy/linalg/linalg.py
<ide> def tensorinv(a, ind=2):
<ide> Returns
<ide> -------
<ide> b : ndarray
<del> `a`'s tensordot inverse, shape ``a.shape[:ind] + a.shape[ind:]``.
<add> `a`'s tensordot inverse, shape ``a.shape[ind:] + a.shape[:ind]``.
<ide>
<ide> Raises
<ide> -----... | 1 |
Text | Text | fix changelog.md parsing issue | 79402c0eaaaca8daa2fe3bbbd99f66b8d956bb92 | <ide><path>CHANGELOG.md
<ide> release.
<ide>
<ide> ## 2015-09-08, Version 4.0.0 (Stable), @rvagg
<ide>
<del><a href="doc/changelogs/CHANGELOG_V4.md#4.0.0>Moved to doc/changelogs/CHANGELOG_V6.md#6.0.0</a>.
<add><a href="doc/changelogs/CHANGELOG_V4.md#4.0.0">Moved to doc/changelogs/CHANGELOG_V6.md#6.0.0</a>.
<ide>
<id... | 1 |
Javascript | Javascript | fix version check in models directory [ci skip] | 1aef484985b99917dbde389e4155e0a75792a6a6 | <ide><path>website/src/templates/models.js
<ide> function isStableVersion(v) {
<ide> function getLatestVersion(modelId, compatibility) {
<ide> for (let [version, models] of Object.entries(compatibility)) {
<ide> if (isStableVersion(version) && models[modelId]) {
<del> return models[modelId][0]
<a... | 1 |
Python | Python | remove unused import | e8d45d1821cacac9774a66240f4c1b4736239a23 | <ide><path>libcloud/test/compute/test_openstack.py
<ide> OpenStackKeyPair,
<ide> OpenStack_1_0_Connection,
<ide> OpenStack_2_FloatingIpPool,
<del> OpenStackNodeDriver,
<ide> OpenStack_2_NodeDriver,
<ide> OpenStack_2_PortInterfaceState,
<ide> OpenStackNetwork, | 1 |
Javascript | Javascript | remove root from "roots" list on unmount | 037071c0e11fbf9e5626e95cab8ac3e1d7284659 | <ide><path>src/devtools/store.js
<ide> export default class Store extends EventEmitter {
<ide> this._idToElement.delete(id);
<ide>
<ide> parentElement = ((this._idToElement.get(parentID): any): Element);
<del> if (parentElement != null) {
<add> if (parentElement == null) {
<add> ... | 1 |
PHP | PHP | defer uri language support to l4 | a95b5eb4b9a6a3f6f6bcee28f20979f663963ef6 | <ide><path>laravel/url.php
<ide> public static function to_asset($url, $https = null)
<ide> $url = str_replace($index.'/', '', $url);
<ide> }
<ide>
<del> if (count(Config::get('application.languages')) > 0)
<del> {
<del> $url = str_replace(Config::get('application.language').'/', '', $url);
<del> }
<del>
<id... | 1 |
Javascript | Javascript | update grunt default, grunt test and grunt travis | 23e641ab87974be4629c061f690e7ab18c2ef141 | <ide><path>Gruntfile.js
<ide> module.exports = function (grunt) {
<ide> require('load-grunt-tasks')(grunt);
<ide>
<ide> // Default task.
<del> grunt.registerTask('default', ['jshint', 'jscs', 'nodeunit']);
<add> grunt.registerTask('default', ['lint', 'test:node']);
<add>
<add> // linting
<add> grun... | 1 |
Python | Python | move package loader to _import_tools.py | 2f01cc8b3c368242224f7ff63e1e5343cf890e9c | <ide><path>numpy/__init__.py
<ide> except ImportError:
<ide> show_core_config = None
<ide>
<del>class PackageLoader:
<del> def __init__(self):
<del> """ Manages loading NumPy packages.
<del> """
<del>
<del> self.parent_frame = frame = sys._getframe(1)
<del> self.parent_name = eval('_... | 2 |
Javascript | Javascript | add renderer prop in onbeforecompile | a4b8c30be485b4ff661c60151f84ecb57e441227 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> name: material.type,
<ide> uniforms: UniformsUtils.clone( shader.uniforms ),
<ide> vertexShader: shader.vertexShader,
<del> fragmentShader: shader.fragmentShader
<add> fragmentShader: shader.fragmentShade... | 1 |
Javascript | Javascript | update jstime to last call | 08c338eebf67ef6c8c8fb7e3a91bbf89bbc2bb4c | <ide><path>Libraries/Utilities/createPerformanceLogger.js
<ide> type Timespan = {
<ide> export type IPerformanceLogger = {
<ide> addTimespan(string, number, string | void): void,
<ide> startTimespan(string, string | void): void,
<del> stopTimespan(string): void,
<add> stopTimespan(string, options?: {update?: bool... | 1 |
Ruby | Ruby | pass -s to du instead of -d0 | 9a4567c2f971320fa63cef3b5e31638a0177aae6 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def abv
<ide> out=''
<ide> n=`find #{to_s} -type f ! -name .DS_Store | wc -l`.to_i
<ide> out<<"#{n} files, " if n > 1
<del> out<<`/usr/bin/du -hd0 #{to_s} | cut -d"\t" -f1`.strip
<add> out<<`/usr/bin/du -hs #{to_s} | cut -d"\t" -f1`.strip
<ide> en... | 1 |
Javascript | Javascript | test shallow copy of mock controller bindings | c01b1f47c0c4651305bd5a7e7536df7d090003e7 | <ide><path>test/ngMock/angular-mocksSpec.js
<ide> describe('ngMock', function() {
<ide> module(function($controllerProvider) {
<ide> $controllerProvider.register('testCtrl', function() {
<ide> called = true;
<del> expect(this.data).toEqual(data);
<add> expect(this.data).toBe(da... | 1 |
Text | Text | remove stale links | bcc12c2d88f45e621d69fd8366ff87a6fde6a857 | <ide><path>README.md
<ide> or are automatically applied via regex from your webpack configuration.
<ide> | <a href="https://github.com/TypeStrong/ts-loader"><img width="48" height="48" src="https://cdn.rawgit.com/Microsoft/TypeScript/master/doc/logo.svg"></a> | ![type-npm] | ![type-size] | Loads TypeScript like... | 1 |
Javascript | Javascript | add support for timeout in cancellable actions | d641901be6887cdd93dc678eb514366eb759d21e | <ide><path>src/ngResource/resource.js
<ide> function shallowClearAndCopy(src, dst) {
<ide> * @requires $http
<ide> * @requires ng.$log
<ide> * @requires $q
<add> * @requires $timeout
<ide> *
<ide> * @description
<ide> * A factory which creates a resource object that lets you interact with
<ide> function shallowCl... | 2 |
Ruby | Ruby | fix interpolation for hash merging | ef1d1e1492e3c48884f7653103bc9313dd04cfad | <ide><path>activerecord/lib/active_record/relation/merger.rb
<ide>
<ide> module ActiveRecord
<ide> class Relation
<del> class Merger
<del> attr_reader :relation, :other
<add> class HashMerger
<add> attr_reader :relation, :hash
<ide>
<del> def initialize(relation, other)
<del> @relation =... | 3 |
Text | Text | add services guide to manage a swarm | 861d4dc989ae738a1c219291a96333a7577b1699 | <ide><path>docs/swarm/services.md
<add><!--[metadata]>
<add>+++
<add>title = "Deploy services to a swarm"
<add>description = "Deploy services to a swarm"
<add>keywords = ["guide", "swarm mode", "swarm", "service"]
<add>[menu.main]
<add>identifier="services-guide"
<add>parent="engine_swarm"
<add>weight=15
<add>+++
<add>... | 1 |
PHP | PHP | use faker_locale config | f08ef78444a6db54ce11329503543a7a14e15439 | <ide><path>src/Illuminate/Foundation/Testing/WithFaker.php
<ide> protected function faker($locale = null)
<ide> */
<ide> protected function makeFaker($locale = null)
<ide> {
<del> return Factory::create($locale ?? Factory::DEFAULT_LOCALE);
<add> return Factory::create($locale ?? config('app.f... | 1 |
PHP | PHP | add deprecations to deprecated methods | efca5f20ab772488d74a9bcee76b8b13d613682f | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function mapAlias($alias)
<ide> */
<ide> public function addInputType($type, $handler)
<ide> {
<add> trigger_error(
<add> 'RequestHandlerComponent::addInputType() is deprecated. Use config("inputTypeMap", ...) in... | 2 |
Python | Python | fix vps.net test name | 863a6253be8a7e4fe66f13ae3b8534b8045a8f7c | <ide><path>test/test_vpsnet.py
<ide>
<ide> from secrets import VPSNET_USER, VPSNET_KEY
<ide>
<del>class EC2Tests(unittest.TestCase):
<add>class VPSNetTests(unittest.TestCase):
<ide>
<ide> def setUp(self):
<ide> VPSNetNodeDriver.connectionCls.conn_classes = (None, VPSNetMockHttp) | 1 |
Javascript | Javascript | make path relative | 0739934c5084293061122d2602766d65d867bedc | <ide><path>public/js/main.js
<ide> $(document).ready(function() {
<ide> },
<ide> function(res) {
<ide> if (res) {
<del> window.location.href = 'http://localhost:3001/bonfires'
<add> window.location.href = '/bonfires'
<ide> ... | 1 |
Ruby | Ruby | remove the warning when testing whiny_nil | e722fbb50f5d95fd5d5c3451f7fbf6f71b561683 | <ide><path>activesupport/test/whiny_nil_test.rb
<ide> def test_array
<ide> end
<ide>
<ide> def test_id
<del> nil.stubs(:object_id).returns(999)
<ide> nil.id
<ide> rescue RuntimeError => nme
<ide> assert_no_match(/nil:NilClass/, nme.message)
<del> assert_match(/999/, nme.message)
<add> assert_mat... | 1 |
Go | Go | move inspectexecid test to exec | 957cbdbf302750f3fb3467237bebf29d87234208 | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func TestExecCgroup(t *testing.T) {
<ide>
<ide> logDone("exec - exec has the container cgroups")
<ide> }
<add>
<add>func TestInspectExecID(t *testing.T) {
<add> defer deleteAllContainers()
<add>
<add> out, exitCode, err := runCommandWithOutput(exec.Command(dock... | 2 |
Mixed | Javascript | fix request with option timeout and agent | 949e8851484c016c07f6cc9e5889f0f2e56baf2a | <ide><path>doc/api/http.md
<ide> added: v0.3.4
<ide> * `maxFreeSockets` {number} Maximum number of sockets to leave open
<ide> in a free state. Only relevant if `keepAlive` is set to `true`.
<ide> **Default:** `256`.
<add> * `timeout` {number} Socket timeout in milliseconds.
<add> This will set the timeou... | 6 |
Javascript | Javascript | detect subscriptions wrapped in starttransition | a3fde2358896e32201f49bc81acd2f228951ca84 | <ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js
<ide> import {
<ide> } from './ReactUpdateQueue.new';
<ide> import {pushInterleavedQueue} from './ReactFiberInterleavedUpdates.new';
<ide> import {getIsStrictModeForDevtools} from './ReactFiberReconciler.new';
<add>import {warnOnSubscriptionInsideStartTran... | 17 |
Javascript | Javascript | add tests for missing https agent options | 18c9913ce18135953ef1ac02ded8604de9f42e2c | <ide><path>test/parallel/test-https-agent-additional-options.js
<ide> const updatedValues = new Map([
<ide> ['dhparam', fixtures.readKey('dh2048.pem')],
<ide> ['ecdhCurve', 'secp384r1'],
<ide> ['honorCipherOrder', true],
<add> ['minVersion', 'TLSv1.1'],
<add> ['maxVersion', 'TLSv1.3'],
<ide> ['secureOptions',... | 1 |
Ruby | Ruby | improve rack/cgi tests | 2a7aca8ec34ebfe0e30dd5e8696918b083ef56f5 | <ide><path>actionpack/test/controller/cgi_test.rb
<ide> def default_test; end
<ide> private
<ide>
<ide> def set_content_data(data)
<add> @request.env['REQUEST_METHOD'] = 'POST'
<ide> @request.env['CONTENT_LENGTH'] = data.length
<ide> @request.env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded; cha... | 2 |
Java | Java | improve mappingmatch determination in mock request | 8a9b082d8a0f84e7b72416e57e9b6a7a9321567e | <ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ma... | 2 |
Python | Python | update deprecation message to be more clearer | a5a5102b28815a55983d2d346bcd0a836d4ba38b | <ide><path>official/nlp/bert/model_training_utils.py
<ide> def write_txt_summary(training_summary, summary_dir):
<ide>
<ide>
<ide> @deprecation.deprecated(
<del> None, 'This function is deprecated. Please use Keras compile/fit instead.')
<add> None, 'This function is deprecated and we do not expect adding new '... | 1 |
Python | Python | define xrange() for python 3 | 1d5dba6914c6f5707b17c2fa3089af52acf8971d | <ide><path>rebar/rebar_train.py
<ide> import rebar
<ide> import datasets
<ide> import logger as L
<add>
<add>try:
<add> xrange # Python 2
<add>except NameError:
<add> xrange = range # Python 3
<add>
<ide> gfile = tf.gfile
<ide>
<ide> tf.app.flags.DEFINE_string("working_dir", "/tmp/rebar", | 1 |
Python | Python | fix sample_weight and class_weight in validation | 9773e810a527d88b97239e0117be0967a3b4214f | <ide><path>keras/models.py
<ide> def get_function_name(o):
<ide>
<ide> class Model(object):
<ide> def _fit(self, f, ins, out_labels=[], batch_size=128, nb_epoch=100, verbose=1, callbacks=[],
<del> validation_split=0., val_f=None, val_ins=None, shuffle=True, metrics=[]):
<add> val_f=None, va... | 2 |
Text | Text | fetch data in componentdidmount instead | 774f5a022eacbb054b09aa5a7d596186874b2600 | <ide><path>docs/docs/tutorial.md
<ide> var CommentBox = React.createClass({
<ide> getInitialState: function() {
<ide> return {data: []};
<ide> },
<del> componentWillMount: function() {
<add> componentDidMount: function() {
<ide> $.ajax({
<ide> url: this.props.url,
<ide> dataType: 'json',
<ide>... | 1 |
Text | Text | update changelog for 2.9.0 | f381a441f0a963ef4176c86492f41edc642b7a10 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#14156](https://github.com/emberjs/ember.js/pull/14156) [FEATURE ember-glimmer] Enable by default.
<ide>
<add>### 2.9.0 (October 17, 2016)
<add>
<add>- No changes from 2.8.2.
<add>
<ide> ### 2.8.2 (October 6, 2016)
<ide>
<ide> - [#14365](https://github.com/emberjs/ember.js/pull... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.