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 |
|---|---|---|---|---|---|
Go | Go | migrate some ipcmode tests to integration | e0403604e26868b1546a766ab0b40b6cb1677ee6 | <ide><path>integration-cli/docker_api_ipcmode_test.go
<ide> func testIpcCheckDevExists(mm string) (bool, error) {
<ide> return false, s.Err()
<ide> }
<ide>
<del>// testIpcNonePrivateShareable is a helper function to test "none",
<del>// "private" and "shareable" modes.
<del>func testIpcNonePrivateShareable(c *check.C... | 2 |
Ruby | Ruby | handle failures in temporary_install better | 4c0d2c2bfb99d91be404e9c05e3b569ffa7dcc39 | <ide><path>Library/Homebrew/test/test_formula_install.rb
<ide> def teardown
<ide> end
<ide>
<ide> def temporary_install f
<del> # Brew and install the given formula
<add> f.prefix.mkpath
<add> keg = Keg.new(f.prefix)
<add>
<ide> shutup do
<ide> f.brew { f.install }
<ide> end
<ide>
<del> ... | 1 |
Javascript | Javascript | add fallback for undefined cpus | 2b401e33de81428dc5f6dfc60343e65ee5167886 | <ide><path>lib/os.js
<ide> function loadavg() {
<ide> }
<ide>
<ide> function cpus() {
<del> const data = getCPUs();
<add> // [] is a bugfix for a regression introduced in 51cea61
<add> const data = getCPUs() || [];
<ide> const result = [];
<ide> for (var i = 0; i < data.length; i += 7) {
<ide> result.push({ | 1 |
Javascript | Javascript | remove buggy unstable_deferredupdates() | 2967ebdbeabde4aab37b45946b891170c7670164 | <ide><path>fixtures/unstable-async/suspense/src/components/App.js
<ide> import React, {Placeholder, PureComponent} from 'react';
<del>import {unstable_deferredUpdates} from 'react-dom';
<ide> import {createResource} from 'simple-cache-provider';
<ide> import {cache} from '../cache';
<ide> import Spinner from './Spinner... | 5 |
PHP | PHP | fix path handling | 0602fe003c503c083d1b04510ee9dead49cb2dd3 | <ide><path>src/Illuminate/Exception/ExceptionServiceProvider.php
<ide> protected function registerWhoopsHandler()
<ide> }
<ide> else
<ide> {
<del> $this->app['whoops.handler'] = function()
<del> {
<del> with($handler = new PrettyPageHandler)->setResourcesPath(__DIR__.'/resources');
<del>
<del> retur... | 1 |
Text | Text | describe solution to centralized routing | d2276179bea211fa9ad9b77b46df26271f53c768 | <ide><path>readme.md
<ide> So, you could only use `pathname`, `query` and `asPath` fields of the `context`
<ide>
<ide> > Basically, you won't be able to render HTML content dynamically as we pre-build HTML files. If you need that, you need run your app with `next start`.
<ide>
<del>
<ide> ## Recipes
<ide>
<ide> - [S... | 1 |
PHP | PHP | move the normalizing logic to the public function | e118155b92832c6ed742b0a08aff2502c4726939 | <ide><path>src/Network/Request.php
<ide> public function __isset($name) {
<ide> * @return bool Whether or not the request is the type you are checking.
<ide> */
<ide> public function is($type) {
<add> if (is_array($type)) {
<add> $result = array_map(array($this, 'is'), $type);
<add> return count(array_filter($r... | 1 |
Javascript | Javascript | allow getinitialstate() for mixins | adb666e67fa2a4a525a641f6fa7a239c3dd1cd1c | <ide><path>src/core/ReactCompositeComponent.js
<ide> var invariant = require('invariant');
<ide> var keyMirror = require('keyMirror');
<ide> var merge = require('merge');
<ide> var mixInto = require('mixInto');
<add>var objMap = require('objMap');
<ide>
<ide> /**
<ide> * Policies that describe methods in `ReactCompos... | 2 |
Text | Text | add info about environment variables and replit | 9a637e2667ad067f0fa8898d9e2aeed34dc6ed86 | <ide><path>curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose.md
<ide> Follow <a href='https://www.freecodecamp.org/news/get-started-with-mongodb-atlas
<ide>
<ide> # --instructions--
<ide>
<del>Add `mongodb@~3.6.0` and `mongoose@~5.4.0` to the project’s `pa... | 1 |
Mixed | Ruby | load silent failure on sql error | 09a90bb6a06b1dafc9881651f585e8b40dda4227 | <ide><path>activerecord/CHANGELOG.md
<ide>
<add>* PostgreSQL: Fix db:structure:load silent failure on SQL error
<add>
<add> The command line flag "-v ON_ERROR_STOP=1" should be used
<add> when invoking psql to make sure errors are not suppressed.
<add>
<add> Example:
<add>
<add> psql -v ON_ERROR_STOP... | 3 |
PHP | PHP | fix method annotation as per review | 6d2f94689af2a8f0f174ce3fd214debd015a8025 | <ide><path>src/Console/Shell.php
<ide> *
<ide> * Is the equivalent of Cake\Controller\Controller on the command line.
<ide> *
<del> * @method int|bool main()
<add> * @method int|bool|null main(...$args)
<ide> */
<ide> class Shell
<ide> { | 1 |
PHP | PHP | maintain alphabetical order | d64b5a52af6b7d6eb338b12510611e4c043b1afb | <ide><path>resources/lang/en/validation.php
<ide> 'string' => 'The :attribute must be :size characters.',
<ide> 'array' => 'The :attribute must contain :size items.',
<ide> ],
<del> 'timezone' => 'The :attribute must be a valid zone.',
<ide> 'string' => 'The :attr... | 1 |
Text | Text | revise stability section of values doc | c31ef9827e5b2edf44734bc2eac6ea0f7989e914 | <ide><path>doc/guides/technical-values.md
<ide> with Node.js. Some key elements of this include:
<ide> * Enabling/supporting external packages to ensure overall developer experience
<ide>
<ide> ### 2 - Stability
<del>Whenever possible, we seek to insure that currently-working code continues to
<del>work. We seek to ke... | 1 |
Ruby | Ruby | move inheritableoptions into activesupport | 664090348154ccbf1274a13bbc3d3c37ba35bc7d | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> require 'active_support/core_ext/class/attribute'
<ide> require 'active_support/ordered_options'
<ide>
<del>module ActiveSupport
<del> class InheritableOptions < OrderedOptions
<del> def initialize(parent)
<del> super() { |h,k| parent[k] }
<del> en... | 2 |
Text | Text | add react 16.8.2 changelog | ff188d666bcb4c7aad38009ee61ad292349244b0 | <ide><path>CHANGELOG.md
<ide> </summary>
<ide> </details>
<ide>
<add>## 16.8.2 (February 14, 2019)
<add>
<add>### React DOM
<add>
<add>* Fix `ReactDOM.render` being ignored inside `useEffect`. ([@gaearon](https://github.com/gaearon) in [#14799](https://github.com/facebook/react/pull/14799))
<add>* Fix a crash when u... | 1 |
Text | Text | add git req to linux build instructions | e046bb52d78b40aa14bebaa0a35d61b937bf16bf | <ide><path>docs/build-instructions/linux.md
<ide> Ubuntu LTS 12.04 64-bit is the recommended platform.
<ide> * `npm config set python /usr/bin/python2 -g` to ensure that gyp uses Python 2
<ide> * This command may require `sudo` depending on how you have
<ide> [configured npm](https://github.com/joyent/node/... | 1 |
Text | Text | remove outdated step in onboarding exercise | c154c6c5cfc464658dfae331b2d68c9daaca3f8e | <ide><path>onboarding.md
<ide> needs to be pointed out separately during the onboarding.
<ide> so that when the commit lands, the nomination issue url will be
<ide> automatically closed.
<ide> * Label your pull request with the `doc`, `notable-change`, and `fast-track`
<del> labels.
<add> labels. The `fast-track`... | 1 |
Javascript | Javascript | add userdata to geometry | 2928e097a2050675791e449345a7826a9ccaa20b | <ide><path>src/core/Geometry.js
<ide> function Geometry() {
<ide> this.boundingBox = null;
<ide> this.boundingSphere = null;
<ide>
<add> this.userData = {};
<add>
<ide> // update flags
<ide>
<ide> this.elementsNeedUpdate = false;
<ide> Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype )... | 1 |
Ruby | Ruby | fix formulaunavailableerror handling | 89ba5b2b0a9ba25aacd51baa367d963d9915f62f | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def initialize argument
<ide> @formulae = []
<ide>
<ide> url_match = argument.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX
<del> formula = Formula.factory argument rescue FormulaUnavailableError
<add>
<add> begin
<add> formula = Formulary.factor... | 1 |
Javascript | Javascript | extract polyfillglobal from initializecore | f7f5dc66493ad25a85927a9503728b0491c8aab9 | <ide><path>Libraries/Core/InitializeCore.js
<ide> */
<ide> 'use strict';
<ide>
<add>const {polyfillObjectProperty, polyfillGlobal} = require('PolyfillFunctions');
<add>
<ide> if (global.GLOBAL === undefined) {
<ide> global.GLOBAL = global;
<ide> }
<ide> if (global.window === undefined) {
<ide> global.window = glo... | 2 |
Go | Go | update incorrect comments of checkpointlist | 98ffe52fbc953ec2fce0d3b6c3b2405188b96cd5 | <ide><path>client/checkpoint_list.go
<ide> import (
<ide> "golang.org/x/net/context"
<ide> )
<ide>
<del>// CheckpointList returns the volumes configured in the docker host.
<add>// CheckpointList returns the checkpoints of the given container in the docker host
<ide> func (cli *Client) CheckpointList(ctx context.Cont... | 1 |
PHP | PHP | remove empty line | 87bcbacabfe902360c490750f69c0f5d6e83d104 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function getSourceValue($fieldname)
<ide> }
<ide> }
<ide> }
<del>
<ide> } | 1 |
Java | Java | remove unused import, followup to d14114388 | c933755c6a04447acb15210bdee30f3985df2aa5 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> import com.facebook.react.fabric.mounting.mountitems.UpdatePropsMountItem;
<ide> import com.facebook.react.modules.core.ReactChoreographer;
<ide> import com.facebook.react.uimanager.ReactRootViewTagGenerator;
<del>import com.face... | 1 |
Javascript | Javascript | improve error output | ccb303e03795cee25527edb867f7903477ed5de6 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide>
<ide> self._domain.on('error', function debugDomainError(e) {
<ide> debug('domain error');
<del> const top = replMap.get(self);
<del> const pstrace = Error.prepareStackTrace;
<del> Error.prepareStackTrace = prepareStackTrace(pstrace);
<del> ... | 4 |
PHP | PHP | simplify email check | 52664a9a7b9fcafff76b285aaaa0c156eaf72441 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function context()
<ide> {
<ide> return array_filter([
<ide> 'userId' => Auth::id(),
<del> 'email' => Auth::check() && isset(Auth::user()->email)
<del> ? Auth::user()->email : null,
<add... | 1 |
PHP | PHP | fix failing tests and merge mistakes | 4ac7972eb8a96f754855f130612765aa710c93f2 | <ide><path>lib/Cake/Routing/DispatcherFilter.php
<ide> */
<ide>
<ide> namespace Cake\Routing;
<add>
<ide> use Cake\Event\EventListener;
<add>use Cake\Event\Event;
<ide>
<ide> /**
<ide> * This abstract class represents a filter to be applied to a dispatcher cycle. It acts as as
<ide> public function implementedEvent... | 12 |
Ruby | Ruby | support endless range values for range types | fd919ec881c8ae9e7c7e9251372109849b6888d8 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb
<ide> def type_cast_single(value)
<ide> end
<ide>
<ide> def type_cast_single_for_database(value)
<del> infinity?(value) ? value : @subtype.serialize(value)
<add> infinity?(value) ? va... | 3 |
Mixed | Javascript | assign deprecation code | 8a8a6865c092637515b286cd9575ea592b5f501e | <ide><path>doc/api/deprecations.md
<ide> Type: End-of-Life
<ide>
<ide> *Note*: change was made while `async_hooks` was an experimental API.
<ide>
<del><a id="DEP00XX"></a>
<del>### DEP00XX: Several internal properties of net.Server
<add><a id="DEP0073"></a>
<add>### DEP0073: Several internal properties of net.Server
... | 2 |
Java | Java | add json matcher to assert on request body | d64f2eb03862dcef657fe1a37755184b1ecfda25 | <ide><path>spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<i... | 2 |
Python | Python | remove unused functions from deprecated | 6e5bd4f2280dfd8714c5288fe437a393783709ad | <ide><path>spacy/deprecated.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from pathlib import Path
<del>
<ide> from . import about
<del>from . import util
<ide> from .util import prints
<del>from .compat import path2str
<del>from .cli import download, link
<del>
<del>
<del>def fix_gl... | 1 |
Python | Python | enable cursor pagination of value querysets. | 70385711572e7ea141644f349b7180c68b4c15d2 | <ide><path>rest_framework/pagination.py
<ide> def encode_cursor(self, cursor):
<ide> return replace_query_param(self.base_url, self.cursor_query_param, encoded)
<ide>
<ide> def _get_position_from_instance(self, instance, ordering):
<del> attr = getattr(instance, ordering[0].lstrip('-'))
<add> ... | 2 |
PHP | PHP | use getsessionstore in request class | a55b886f08668a0aee65752be6c4c9695746c9d6 | <ide><path>src/Illuminate/Http/Request.php
<ide> public function flash($filter = null, $keys = array())
<ide> {
<ide> $flash = ( ! is_null($filter)) ? $this->$filter($keys) : $this->input();
<ide>
<del> $this->sessionStore->flashInput($flash);
<add> $this->getSessionStore()->flashInput($flash);
<ide> }
<ide>
<i... | 1 |
Javascript | Javascript | add injection for error dialog | 8de9c6c12c3e1ebf05b941add1d659321ea54930 | <ide><path>src/renderers/shared/fiber/ReactFiberErrorLogger.js
<ide>
<ide> 'use strict';
<ide>
<add>const emptyFunction = require('fbjs/lib/emptyFunction');
<add>const invariant = require('fbjs/lib/invariant');
<add>
<ide> import type {CapturedError} from 'ReactFiberScheduler';
<ide>
<add>let showDialog = emptyFunct... | 1 |
Ruby | Ruby | use temp file for calculating hash | d37831219df2c4976eddeba3076cfba6f3486d1d | <ide><path>Library/Homebrew/utils/curl.rb
<ide> def curl_check_http_content(url, user_agents: [:default], check_content: false,
<ide> end
<ide>
<ide> def curl_http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default)
<add> file = Tempfile.new.tap(&:close)
<add>
<ide> max_time = hash_needed ? ... | 1 |
Ruby | Ruby | avoid unnecessary float to string conversion | e9d245cf3a6e1ce783931e8e339c11fb0f3757d5 | <ide><path>Library/Homebrew/bottles.rb
<ide> def bottle_url f
<ide>
<ide> def bottle_tag
<ide> case MacOS.version
<del> when 10.8, 10.7, 10.5
<add> when "10.8", "10.7", "10.5"
<ide> MacOS.cat
<del> when 10.6
<add> when "10.6"
<ide> Hardware::CPU.is_64_bit? ? :snow_leopard : :snow_leopard_32
<ide> else
... | 6 |
Javascript | Javascript | fix typo in webgpu/constants.js | e683d1910bf61acaa1c8149d12f81e2b5871f4b7 | <ide><path>examples/jsm/renderers/webgpu/WebGPURenderer.js
<ide> class WebGPURenderer {
<ide>
<ide> const swapChain = context.configure( {
<ide> device: device,
<del> format: GPUTextureFormat.BRGA8Unorm // this is the only valid swap chain format right now (r121)
<add> format: GPUTextureFormat.BGRA8Unorm // t... | 2 |
Python | Python | fix lint violations in demos/ directory | 106fa89f8229873bc4ef0074d1c52662195a7c62 | <ide><path>demos/compute_demo.py
<ide>
<ide> from libcloud.common.types import InvalidCredsError
<ide> from libcloud.compute.types import Provider
<del>from libcloud.providers import get_driver
<add>from libcloud.compute.providers import get_driver
<ide>
<ide> from pprint import pprint
<ide>
<ide><path>demos/gce_dem... | 2 |
Java | Java | fix javadoc for databaseclient | bde0931e51ff93ef679e9d79f7798f681858f81c | <ide><path>spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java
<ide> *
<ide> * DatabaseClient client = DatabaseClient.create(factory);
<ide> * Mono<Actor> actor = client.sql("select first_name, last_name from t_actor")
<del> * .map(row -> new Actor(row.get("first_name, String.c... | 1 |
Javascript | Javascript | add key_events support to textarea | 4d492e426b3c92b432babedb770d8b74aef6317d | <ide><path>packages/sproutcore-handlebars/lib/controls/text_area.js
<ide> SC.TextArea = SC.View.extend({
<ide> value: "",
<ide> attributeBindings: ['placeholder'],
<ide> placeholder: null,
<add>
<add> insertNewline: SC.K,
<add> cancel: SC.K,
<ide>
<ide> focusOut: function(event) {
<ide> this._elementVa... | 2 |
Javascript | Javascript | add spec for headlessjstasksupport | 56c3852384fad2e5dfbb9bad316543af972e902c | <ide><path>Libraries/ReactNative/AppRegistry.js
<ide>
<ide> const BatchedBridge = require('../BatchedBridge/BatchedBridge');
<ide> const BugReporting = require('../BugReporting/BugReporting');
<del>const NativeModules = require('../BatchedBridge/NativeModules');
<ide> const ReactNative = require('../Renderer/shims/Rea... | 2 |
Java | Java | stop preallocation views on the main thread | 17e16940768080caa47a33141a0c93ed47d4189a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> public void onCatalystInstanceDestroy() {
<ide>
<ide> @DoNotStrip
<ide> private void preallocateView(final int rootTag, final String componentName) {
<add> if (UiThreadUtil.isOnUiThread()) {
<add> // There is no reas... | 1 |
Javascript | Javascript | add nummultiviewviews to parameters | 95cba890d318bb0b3f9b9293c71fc3f3f5ae4b3c | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> function WebGLProgram( renderer, extensions, code, material, shader, parameters
<ide>
<ide> var prefixVertex, prefixFragment;
<ide>
<del> var renderTarget = renderer.getRenderTarget();
<del> var numMultiviewViews = renderTarget && renderTarget.isWebGLMultiviewRend... | 2 |
PHP | PHP | fix failing tests | 6a9fdd841a9df78f0f837cab59612f4af2da6900 | <ide><path>lib/Cake/Utility/Set.php
<ide> class Set {
<ide> */
<ide> public static function merge($arr1, $arr2 = null) {
<ide> $args = func_get_args();
<add> if (empty($args[1])) {
<add> return (array)$args[0];
<add> }
<add> if (!is_array($args[0])) {
<add> $args[0] = (array)$args[0];
<add> }
<ide> return... | 1 |
Javascript | Javascript | remove test for deprecation warning | 02cd42b89f76bf4565f9b8aade2996af0b625d61 | <ide><path>packages/ember-runtime/tests/legacy_1x/system/binding_test.js
<ide> test("Binding value1 such that it will recieve only single values", function() {
<ide> equal("",get(bon1, "array1"));
<ide> });
<ide>
<del>test("Single binding using notEmpty function.", function() {
<del> // This should raise an exceptio... | 1 |
Text | Text | fix lint on react-18 docs | c7e4c85436394eed0580d01cc029ba9be1a75f3e | <ide><path>docs/advanced-features/react-18.md
<ide> export default function Home() {
<ide> <Suspense fallback={'Loading...'}>
<ide> <Profile />
<ide> </Suspense>
<del> <Content/>
<add> <Content />
<ide> </div>
<ide> )
<ide> } | 1 |
Javascript | Javascript | fix extension lookups for top-level main | cadc47fe076caa91bda6aa148e0b37be609781d7 | <ide><path>lib/module.js
<ide> Module._load = function(request, parent, isMain) {
<ide> ESMLoader.hook(hooks);
<ide> }
<ide> }
<del> await ESMLoader.import(getURLFromFilePath(request).href);
<add> await ESMLoader.import(getURLFromFilePath(request).pathname);
<ide> })()
<ide> .c... | 2 |
Javascript | Javascript | call super.dispose() in dispose method | 6eb9fd3dfbdf054e944dfafc0f999ad49cfb9759 | <ide><path>src/js/resize-manager.js
<ide> class ResizeManager extends Component {
<ide> this.resizeObserver = null;
<ide> this.debouncedHandler_ = null;
<ide> this.loadListener_ = null;
<add> super.dispose();
<ide> }
<ide>
<ide> } | 1 |
PHP | PHP | add alias setter to helpformatter | 0b57ea656d985eff3a88adaf5a9ab28a06f8a6dd | <ide><path>src/Console/ConsoleOptionParser.php
<ide> class ConsoleOptionParser
<ide> */
<ide> protected $_tokens = [];
<ide>
<add> /**
<add> * Help alias use in the HelpFormatter.
<add> *
<add> * @see \Cake\Console\HelpFormatter::setAlias()
<add> * @var string
<add> */
<add> protecte... | 3 |
Javascript | Javascript | datatransfer property for drag and drop events | b019bed4daea16db7867ba806b6b00a0872a08e0 | <ide><path>packages/ember-views/lib/system.js
<ide> // License: Licensed under MIT license (see license.js)
<ide> // ==========================================================================
<ide>
<add>require("ember-views/system/jquery_ext");
<ide> require("ember-views/system/render_buffer");
<ide> require("ember-... | 3 |
Python | Python | remove unneccessary arg in client fixture | 46c1383919454ae281967316d6d6fb33bce9b773 | <ide><path>examples/patterns/largerapp/tests/test_largerapp.py
<ide> import pytest
<ide>
<ide> @pytest.fixture
<del>def client(request):
<add>def client():
<ide> app.config['TESTING'] = True
<ide> client = app.test_client()
<ide> return client | 1 |
Javascript | Javascript | parse types into links in doc html gen | e517efafd84c8cd87d477a67c367ee9295208dec | <ide><path>tools/doc/html.js
<ide> var fs = require('fs');
<ide> var marked = require('marked');
<ide> var path = require('path');
<ide> var preprocess = require('./preprocess.js');
<add>var typeParser = require('./type-parser.js');
<ide>
<ide> module.exports = toHTML;
<ide>
<ide> function parseLists(input) {
<ide> ... | 2 |
Text | Text | improve buffer documentation | c41e360de7462bd340b19fe2d20c451e52ff2d15 | <ide><path>doc/api/buffer.md
<ide>
<ide> > Stability: 2 - Stable
<ide>
<del>Prior to the introduction of [`TypedArray`][], the JavaScript language had no
<del>mechanism for reading or manipulating streams of binary data. The `Buffer` class
<del>was introduced as part of the Node.js API to enable interaction with octe... | 1 |
Python | Python | increase version for alembic due to | 14427019e84e246bc43994360efc3130cf4729df | <ide><path>setup.py
<ide> def run_tests(self):
<ide> zip_safe=False,
<ide> scripts=['airflow/bin/airflow'],
<ide> install_requires=[
<del> 'alembic>=0.8.0, <0.9',
<add> 'alembic>=0.8.3, <0.9',
<ide> 'chartkick>=0.4.2, < 0.5',
<ide> 'croniter>=0.3.8, <0.4',
<ide> 'dill>=... | 1 |
Javascript | Javascript | fix objectpath formatting | 19dbe70f46da8bd9831da4de429b6768ac0fb92a | <ide><path>utils/packLDrawModel.js
<ide> function parseObject( fileName, isRoot ) {
<ide>
<ide> }
<ide>
<del> var objectPath = path.join( prefix, fileName );
<add> var objectPath = path.join( prefix, fileName ).trim().replace( /\\/g, '/' );
<ide>
<ide> if ( ! objectContent ) {
<ide> | 1 |
Go | Go | tls minversion too low for now | 4004a39d53d1922a764eddcf2326c660aec308c3 | <ide><path>daemon/logger/splunk/splunk.go
<ide> func New(info logger.Info) (logger.Logger, error) {
<ide> return nil, fmt.Errorf("%s: %s is expected", driverName, splunkTokenKey)
<ide> }
<ide>
<del> tlsConfig := &tls.Config{}
<add> // FIXME set minimum TLS version for splunk (see https://github.com/moby/moby/issues... | 1 |
PHP | PHP | fix doc blocks and isautolayoutenabled() method | 6407b26d69a0f38a40956d87a0763ca41a2b46ab | <ide><path>src/View/ViewBuilder.php
<ide> class ViewBuilder implements JsonSerializable, Serializable
<ide> /**
<ide> * The subdirectory to the template.
<ide> *
<del> * @var string
<add> * @var string|null
<ide> */
<ide> protected $_templatePath;
<ide>
<ide> /**
<ide> * The tem... | 1 |
Ruby | Ruby | recommit env changes | d7a61617512a120454fd3a7edd7126e050cc4633 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def gcc_4_0_1
<ide> self.cxx = "#{MacOS.dev_tools_path}/g++-4.0"
<ide> replace_in_cflags '-O4', '-O3'
<ide> set_cpu_cflags '-march=nocona -mssse3'
<del> @compiler = :gcc
<add> @compiler = :gcc_4_0
<ide> end
<ide> alias_method :gcc_4_0, :gcc_4_0_1... | 2 |
Javascript | Javascript | add test case for use strict inserting | 78e9d83cfd7a35f97668b9d085d260a97303e3d1 | <ide><path>test/configCases/code-generation/use-strict/harmony-with-strict.js
<add>"use strict";
<add>export default "a";
<ide><path>test/configCases/code-generation/use-strict/harmony-with-strict2.js
<add>"use strict";
<add>import * as a from "./harmony-without-strict2";
<add>export default a;
<add>import "./harmony-w... | 7 |
Javascript | Javascript | fix a typo in the example | 7e5e66fa3c5055b5e191ef0cd2c24eb433a280fc | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> }]);
<ide> </script>
<ide> <form name="myForm" ng-controller="DateController as dateCtrl">
<del> <label for="exampleInput">Pick a between 8am and 5pm:</label>
<add> <label for="exampleInput">Pick a time between 8am and 5p... | 1 |
Ruby | Ruby | silence more warnings | 5e0a8668fb623aab76670adf3f277f8d1c676d96 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def self.extended(base)
<ide> # done on the singleton class, because in MRI all ENV methods are defined
<ide> # on its singleton class, precluding the use of extend.
<ide> class << base
<add> alias_method :"old_[]", :[]
<ide> def [] key
<ide> ... | 2 |
Javascript | Javascript | remove linter warning | 5703d81cb7f4faa29d201753c34f9464434fd9ce | <ide><path>src/extras/Earcut.js
<ide> function earcutLinked( ear, triangles, dim, minX, minY, invSize, pass ) {
<ide> ear = cureLocalIntersections( ear, triangles, dim );
<ide> earcutLinked( ear, triangles, dim, minX, minY, invSize, 2 );
<ide>
<del> // as a last resort, try splitting the remaining polygon in... | 1 |
Go | Go | serialize dynamic network creation | ff59f1baaba50f32674b6b2d07730cd44bde8267 | <ide><path>libnetwork/controller.go
<ide> import (
<ide>
<ide> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/discovery"
<add> "github.com/docker/docker/pkg/locker"
<ide> "github.com/docker/docker/pkg/plugins"
<ide> "github.com/docker/docker/pkg/stringid"
<ide> "github.com/docker/libnetwork/... | 1 |
Java | Java | fix y-coord on touches | fa884ee5e656b8cb03d000d49f1b1456a7b21784 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java
<ide> * given {@param event} instance. This method use {@param reactTarget} parameter to set as a
<ide> * target view id associated with current gesture.
<ide> */
<del> private static WritableArray createsPointersArra... | 1 |
Text | Text | add fork to instructions | b236e5db97f09b685fc001abbe8131d6211851f0 | <ide><path>CONTRIBUTING.md
<ide> recipes, that does provide some argument for bringing it "in house".
<ide>
<ide> ### Getting started
<ide>
<del>To make changes to spaCy's code base, you need to clone the GitHub repository
<add>To make changes to spaCy's code base, you need to fork then clone the GitHub repository
<i... | 1 |
Text | Text | remove outdated todo's | 518a1f97f32ca63615567a50d6716f4ba5885acc | <ide><path>website/docs/api/data-formats.md
<ide> $ python -m spacy train config.cfg --paths.train ./corpus/train.spacy
<ide> This section defines settings and controls for the training and evaluation
<ide> process that are used when you run [`spacy train`](/api/cli#train).
<ide>
<del><!-- TODO: complete -->
<del>
<id... | 2 |
Text | Text | add copy about how to curl sha256.txt | 59d23ad63dc75c68631480b2bdd98cbb67265d9d | <ide><path>README.md
<ide> documentation of the latest stable version.
<ide>
<ide> Stable, LTS and Nightly download directories all contain a *SHASUM256.txt*
<ide> file that lists the SHA checksums for each file available for
<del>download. To check that a downloaded file matches the checksum, run
<add>download.
<add>... | 1 |
Text | Text | fix spelling mistakes | 92addc2c922aa834e7d2a3329123b5d3cf78da4f | <ide><path>guide/spanish/blockchain/features/index.md
<add>
<ide> ---
<ide> title: Features of BlockTech
<ide> localeTitle: Características de BlockTech
<ide> ---
<ide> ## Características de la tecnología Blockchain
<ide>
<del>Blockchain se usa casi siempre en lugar de Bitcoin y cryptocurrency. Sin embargo, hay muchos... | 1 |
PHP | PHP | fix failing tests | 0cdef75060d4eee0f28cddb2cf3260ac8cc8a907 | <ide><path>lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php
<ide> public function testSessionReadWrite() {
<ide> $this->assertEquals($Session->read('Test'), $array);
<ide> $Session->delete('Test');
<ide>
<del> $this->assertFalse($Session->write(array('Test'), 'some value'));
<add> $this->assertTr... | 3 |
PHP | PHP | apply fixes from styleci | ddc6883f4c62821ec48d9670037019175864bf93 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and'
<ide> }
<ide>
<ide> // If the column is a Closure instance and there is an operator value, we will
<del> // assume the developer wants to run a subquery an... | 1 |
Ruby | Ruby | use the actual class name when unloading | e9a0f24ccbd74e9494e0641037d27b23631e22cf | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def version_for_sha sha
<ide> mktemp do
<ide> path = Pathname.new(Pathname.pwd+"#{name}.rb")
<ide> path.write text_from_sha(sha)
<del> # FIXME: shouldn't have to do this?
<del> Object.send(:remove_const, "#{name.capitalize}")
<add>
<a... | 1 |
Javascript | Javascript | fix memory leak in .maintainlanguagemode | 4810d13094f388ea2240555a8774ee6093e407a7 | <ide><path>spec/grammar-registry-spec.js
<ide> describe('GrammarRegistry', () => {
<ide> })
<ide> })
<ide>
<del> describe('.maintainLanguageMode', () => {
<add> describe('.maintainLanguageMode(buffer)', () => {
<ide> it('assigns a grammar to the buffer based on its path', async () => {
<ide> const bu... | 2 |
Javascript | Javascript | fix race condition in test-http-exceptions.js | eda21cccb4caf0ba8be325b79c6c37ecaf1845c3 | <ide><path>test/simple/test-http-exceptions.js
<ide> server = http.createServer(function (req, res) {
<ide> res.write(server_response);
<ide> res.end();
<ide> });
<del>server.listen(PORT);
<ide>
<ide> function check_reqs() {
<ide> var done_reqs = 0;
<ide> function add_client(num) {
<ide> return req;
<ide> }
<i... | 1 |
Python | Python | add delete_object method to the s3 driver | e33f872cb3a0c51e3be8b27d9b13e20d6e302a84 | <ide><path>libcloud/storage/drivers/s3.py
<ide> def delete_container(self, container):
<ide>
<ide> return False
<ide>
<add> def delete_object(self, obj):
<add> # TODO: escape object and container name
<add> response = self.connection.request('/%s/%s' % (obj.container.name,
<add> ... | 1 |
PHP | PHP | add middleware registration to resources | 677563189476bfcfa019295be0a7da6b33950127 | <ide><path>src/Illuminate/Routing/ControllerDispatcher.php
<ide> public function dispatch(Route $route, $controller, $method)
<ide> return $controller->callAction($method, $parameters);
<ide> }
<ide>
<del> return call_user_func_array([$controller, $method], $parameters);
<add> return ... | 4 |
Python | Python | fix iterations for decoder | 8afaaa26f5754948f4ddf8f31d70d0293488a897 | <ide><path>src/transformers/models/t5/convert_t5x_checkpoint_to_flax.py
<ide> def convert_t5x_checkpoint_to_flax(t5x_checkpoint_path, config_name, flax_dump_f
<ide> flax_model.params["encoder"]["final_layer_norm"]["weight"] = t5x_encoder_norm
<ide>
<ide> # Decoder
<del> for layer_index in range(config.num_l... | 1 |
Java | Java | re-obtain port on every websocket integration test | d86e4cf2038ea67c51e0da4286034331225c16a6 | <ide><path>spring-websocket/src/test/java/org/springframework/web/socket/AbstractWebSocketIntegrationTests.java
<ide> public void setup() throws Exception {
<ide> ((Lifecycle) this.webSocketClient).start();
<ide> }
<ide>
<add> this.server.setup();
<ide> this.server.deployConfig(this.wac);
<ide> this.server.s... | 5 |
Javascript | Javascript | add more unit tests for the api | a984fe5b55b3e7a0fad47badf8af2f5ef8d6de3a | <ide><path>src/core/obj.js
<ide> var Catalog = (function CatalogClosure() {
<ide> },
<ide> get attachments() {
<ide> var xref = this.xref;
<del> var attachments, nameTreeRef;
<add> var attachments = null, nameTreeRef;
<ide> var obj = this.catDict.get('Names');
<ide> if (obj) {
<ide> ... | 2 |
PHP | PHP | add method to generate secure random strings | 41a63c767e460fd71ae569a8017cfa27725981d9 | <ide><path>src/Utility/Security.php
<ide> public static function randomBytes($length)
<ide> return $bytes;
<ide> }
<ide>
<add> /**
<add> * Creates a secure random string.
<add> *
<add> * @param int $length String length
<add> * @return string
<add> * @since 3.6.0
<add> */
<add> ... | 2 |
Javascript | Javascript | fix typo that caused errors on ie8 | ee5a5352fd4b94cedee6ef20d4bf2d43ce77e00b | <ide><path>src/scenario/output/Xml.js
<ide> angular.scenario.output('xml', function(context, runner, model) {
<ide> stepContext.attr('status', step.status);
<ide> it.append(stepContext);
<ide> if (step.error) {
<del> var error = $('<error></error');
<add> var error = $('<e... | 1 |
Go | Go | replace old version tests | 813d2e082a094d11bda0d0f5a708ce30805ab28e | <ide><path>integration-cli/docker_api_version_test.go
<del>package main
<del>
<del>import (
<del> "github.com/docker/docker/client"
<del> "github.com/docker/docker/dockerversion"
<del> "github.com/docker/docker/integration-cli/checker"
<del> "github.com/go-check/check"
<del> "golang.org/x/net/context"
<del>)
<del>
<del... | 5 |
Python | Python | drop unused import | 4e14b26fa9727a79f8ae7c7ef25d1339500fa26c | <ide><path>rest_framework/views.py
<ide> from django.utils.safestring import mark_safe
<ide> from django.views.decorators.csrf import csrf_exempt
<ide> from rest_framework import status, exceptions
<del>from rest_framework.compat import View, apply_markdown, smart_text
<add>from rest_framework.compat import View, apply... | 1 |
Ruby | Ruby | remove deprecation comment | 5b6b400c5837b3bc1777ed6ea6740496d6317f2e | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap_args
<ide> switch "--full",
<ide> description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\
<ide> "shallow clones if `--shallow` was originally passed."
<del> # odeprecated ... | 1 |
Javascript | Javascript | improve eachcomputedproperty implementation | 810c2c6a82ce797a6a9f3e397f4796c890e28b6b | <ide><path>packages/ember-metal/lib/descriptor.js
<ide> class Descriptor extends EmberDescriptor {
<ide> constructor(desc) {
<ide> super();
<ide> this.desc = desc;
<add> this.enumerable = desc.enumerable;
<ide> }
<ide>
<ide> setup(obj, key) {
<ide><path>packages/ember-metal/lib/index.js
<ide> export {... | 6 |
Python | Python | add space in error message | be6503a8a81873109cf830bef225bf06a13edda2 | <ide><path>keras/engine/training.py
<ide> def _standardize_input_data(data, names, shapes=None,
<ide> if len(names) > 1:
<ide> # Case: model expects multiple inputs but only received
<ide> # a single Numpy array.
<del> raise ValueError('The model expects ' + str(len(names)) +
... | 1 |
Javascript | Javascript | change the polling system of the api in the webui | f415f8e5114d5be09f384cf017bb90f9df24104a | <ide><path>glances/outputs/static/js/components/glances/controller.js
<ide> 'use strict';
<ide>
<del>function GlancesController($interval, GlancesStats, REFRESH_TIME, Hotkeys) {
<add>function GlancesController($timeout, GlancesStats, REFRESH_TIME, Hotkeys) {
<ide> var vm = this;
<ide>
<ide> vm.dataLoaded = fa... | 4 |
Python | Python | simplify string expressions | 41bf172c1dc75099f4f9d8b3f3350b4b1f523ef9 | <ide><path>airflow/contrib/operators/gcs_to_gdrive_operator.py
<ide> from airflow.providers.google.suite.transfers.gcs_to_gdrive import GCSToGoogleDriveOperator # noqa
<ide>
<ide> warnings.warn(
<del> "This module is deprecated. " "Please use `airflow.providers.google.suite.transfers.gcs_to_gdrive.",
<add> "Thi... | 90 |
Java | Java | remove dead code of myoganodeclonefunction | d898574fb260258db923d81ab8bd6ee77fada5b1 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaConfigJNIBase.java
<ide> */
<ide> package com.facebook.yoga;
<ide>
<del>import com.facebook.soloader.SoLoader;
<del>
<ide> public abstract class YogaConfigJNIBase extends YogaConfig {
<ide>
<ide> protected long mNativePointer;
<ide> private YogaLogger m... | 2 |
Javascript | Javascript | add support for jstransform es6-call-spread | 0bc4aafb74bec3cafd10b6910525aedda2918bdb | <ide><path>vendor/fbtransform/visitors.js
<ide> var es6ObjectShortNotation =
<ide> require('jstransform/visitors/es6-object-short-notation-visitors');
<ide> var es6RestParameters = require('jstransform/visitors/es6-rest-param-visitors');
<ide> var es6Templates = require('jstransform/visitors/es6-template-visitors');
... | 1 |
Python | Python | fix stateful lstm example | 2091bfe91187dc7903bea07cdf070f81ea1bdf56 | <ide><path>examples/lstm_stateful_seq.py
<del>'''Example script to predict sequence using stateful rnns.
<del>At least 10 epochs are required before the generated text
<del>starts sounding coherent.
<del>'''
<del>
<del>import numpy as np
<del>import matplotlib.pyplot as mpl
<del>from keras.models import Sequential
<del... | 2 |
Python | Python | remove extraneous batch_input_shape | 8d20bac7fa534383fde1054334110691a11735c9 | <ide><path>examples/stateful_lstm.py
<ide> def gen_cosine_amp(amp=100, period=1000, x0=0, xn=50000, step=1, k=0.0001):
<ide> return_sequences=True,
<ide> stateful=True))
<ide> model.add(LSTM(50,
<del> batch_input_shape=(batch_size, tsteps, 1),
<ide> return_sequ... | 1 |
PHP | PHP | update error configuration in app skeleton | 263ac6c244f9767a21956442cea850866cda9f88 | <ide><path>App/Config/error.php
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> * @link http://cakephp.org CakePHP(tm) Project
<del> * @package app.Config
<ide> * @since CakePHP(tm) v3.0.0
<ide> * @license MIT License... | 1 |
Java | Java | improve documentation of springfactoriesloader | 1a880076880a794016e2eeadea4f7f67c38e68ce | <ide><path>spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoader.java
<ide> /**
<ide> * General purpose factory loading mechanism for internal use within the framework.
<ide> *
<del> * <p>The {@code SpringFactoriesLoader} loads and instantiates factories of a given type
<del> * from "MET... | 1 |
Text | Text | add tf protein notebook to notebooks doc | e9d9982e7c99da93c7b5ed0058bdd49e749aee5b | <ide><path>notebooks/README.md
<ide> You can open any page of the documentation as a notebook in colab (there is a bu
<ide> | [How to fine-tune a model on multiple choice](https://github.com/huggingface/notebooks/blob/main/examples/multiple_choice-tf.ipynb)| Show how to preprocess the data and fine-tune a pretrained mo... | 1 |
Mixed | Go | add an option to disable ip masquerading | 4dc4d56db9797159e2e329845e0b94e3e0f780a0 | <ide><path>daemon/config.go
<ide> type Config struct {
<ide> Mirrors []string
<ide> EnableIptables bool
<ide> EnableIpForward bool
<add> EnableIpMasq bool
<ide> DefaultIp net.IP
<ide> BridgeIface string
<ide> BridgeIP ... | 5 |
Javascript | Javascript | collect more information on debug t48643168 | fb90f64d9c5ead26e243a9a7bae80ba5487d1cff | <ide><path>Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
<ide> exports.register = function(name: string, callback: ViewConfigGetter): string {
<ide> 'Tried to register two views with the same name %s',
<ide> name,
<ide> );
<add> invariant(
<add> typeof callback === 'function',
<add> 'View c... | 1 |
Python | Python | remove celery from intersphinx mapping temporarily | e6ed2f28f4c0857dea9660e2758b171212794958 | <ide><path>docs/conf.py
<ide> def _get_params(root_schema: dict, prefix: str = "", default_section: str = "")
<ide> pkg_name: (f"{THIRD_PARTY_INDEXES[pkg_name]}/", (f'{INVENTORY_CACHE_DIR}/{pkg_name}/objects.inv',))
<ide> for pkg_name in [
<ide> 'boto3',
<del> 'celery',
<add> # 'celery', #... | 1 |
Javascript | Javascript | ignore negative areas in treemap layout | ae6ce3f37326d7eac8cee42f6e814b5c85e75baf | <ide><path>d3.layout.js
<ide> d3.layout.treemap = function() {
<ide> row.area = 0;
<ide> while ((n = children.length) > 0) {
<ide> child = children[n - 1];
<del> if (!child.area) {
<add> if (isNaN(child.area) || child.area <= 0) {
<ide> children.pop();
<ide> continue;
<ide> ... | 3 |
Python | Python | fix typo in `automodelformaskedlm` docs | e477eb919f675edf2c2bdc35ce67cdbd880ebb5b | <ide><path>src/transformers/modeling_auto.py
<ide> class AutoModelForMaskedLM:
<ide> This is a generic model class that will be instantiated as one of the model classes of the library---with a masked
<ide> language modeling head---when created with the when created with the
<ide> :meth:`~transformers.AutoMo... | 1 |
Python | Python | add log_steps with faster logging for 8xgpu. | 8390b3622284499df8f94f12ce27564b92c9c7c0 | <ide><path>official/staging/shakespeare/shakespeare_benchmark.py
<ide> def __init__(self, output_dir=None, root_data_dir=None, **kwargs):
<ide> def_flags['training_data'] = self.train_data
<ide> def_flags['model_dir'] = ''
<ide> def_flags['train_epochs'] = 4
<add> def_flags['log_steps'] = 50
<ide>
<ide>... | 2 |
Javascript | Javascript | add mozcontral options | 6aa161566ee3a27b38b8b25242db6993c0f5414d | <ide><path>make.js
<ide> var EXTENSION_WEB_FILES =
<ide> 'web/viewer.js',
<ide> 'web/viewer.html',
<ide> 'external/webL10n/l10n.js',
<del> 'web/locale.properties',
<ide> 'web/viewer-production.html'],
<ide> EXTENSION_BASE_VERSION = 'f0f0418a9c6637981fe1182b9212c2d592774c7d',
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.