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 | fix execin with environment and enabled support | aa9705f832d847d6e6ce76e19f3c952c194c167e | <ide><path>pkg/libcontainer/nsinit/execin.go
<ide> import (
<ide>
<ide> // ExecIn uses an existing pid and joins the pid's namespaces with the new command.
<ide> func ExecIn(container *libcontainer.Container, nspid int, args []string) (int, error) {
<add> // clear the current processes env and replace it with the envi... | 1 |
Text | Text | remove elements from a linked list" | f6fcb26a9d5801396743d5ba0dd44d48e1c5ac21 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.md
<ide> tests:
<ide> - text: Your <code>remove</code> method should reassign <code>head</code> to the second node when the first node is removed.
<ide> testString: assert((function(){var test = ne... | 1 |
Go | Go | remove word "fail" from tests | aadb6289ccd84b9997a43c8b74b2948236f30e76 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildWithInaccessibleFilesInContext(t *testing.T) {
<ide> }
<ide>
<ide> }
<del> logDone("build - ADD from context with inaccessible files must fail")
<add> logDone("build - ADD from context with inaccessible files must not pass")
<ide> logDone("bui... | 8 |
Javascript | Javascript | remove unnecessary properties | 533c00efa078ca67ef0276275d41e9ad4640a153 | <ide><path>lib/BannerPlugin.js
<ide> class BannerPlugin {
<ide> continue;
<ide> }
<ide>
<del> const hash = compilation.hash;
<ide> let filename = file;
<ide>
<ide> const data = {
<del> hash,
<ide> chunk,
<ide> filename
<ide> };
<ide>
<del> const comment = ... | 2 |
Javascript | Javascript | revert temporary change | f1f9a36010e2ff24234e08ec7865a443f162f711 | <ide><path>lib/stats/DefaultStatsPresetPlugin.js
<ide> class DefaultStatsPresetPlugin {
<ide> apply(compiler) {
<ide> compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", compilation => {
<ide> compilation.hooks.statsPreset
<del> .for("false")
<add> .for(false)
<ide> .tap("DefaultStatsPresetPlugin... | 1 |
Ruby | Ruby | improve language and examples in railtie docs | 8af066b1666b63caab31126273fc757abe724906 | <ide><path>railties/lib/rails/railtie.rb
<ide> require 'active_support/inflector'
<ide>
<ide> module Rails
<del> # Railtie is the core of the Rails Framework and provides several hooks to extend
<add> # Railtie is the core of the Rails framework and provides several hooks to extend
<ide> # Rails and/or modify the ... | 1 |
Text | Text | update the docs on texteditorview | e62485195a7b01eff54252d7358403abecc0c1fc | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> class MyView extends View
<ide>
<ide> ### Upgrading to the new TextEditorView
<ide>
<del>You should not need to change anything to use the new `TextEditorView`! See the [docs][TextEditorView] for more info.
<add>All of the atom-specific methods available on th... | 1 |
Python | Python | use list for mutable retval rather than tuple | bd9272628f028f4f7c987156406be4c187bae02f | <ide><path>configure.py
<ide> def pkg_config(pkg):
<ide> otherwise (None, None, None, None)"""
<ide> pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
<ide> args = [] # Print pkg-config warnings on first round.
<del> retval = ()
<add> retval = []
<ide> for flag in ['--libs-only-l', '--cflags-only-I',
<... | 1 |
Javascript | Javascript | improve error message for invalid data url | 46062a0d2c105aa8344e1f6f11ccb447a223b78d | <ide><path>lib/internal/modules/esm/loader.js
<ide> require('internal/modules/cjs/loader');
<ide> const {
<ide> FunctionPrototypeBind,
<ide> ObjectSetPrototypeOf,
<add> RegExpPrototypeExec,
<ide> SafeWeakMap,
<ide> StringPrototypeStartsWith,
<ide> } = primordials;
<ide>
<ide> const {
<ide> ERR_INVALID_ARG_V... | 3 |
Javascript | Javascript | allow use of {{this}} inside {{#each}} | 770452df78031bd6a42f28879259bec160abe523 | <ide><path>packages/sproutcore-handlebars/lib/helpers/binding.js
<ide> var get = SC.get, getPath = SC.getPath, set = SC.set, fmt = SC.String.fmt;
<ide> });
<ide>
<ide> // Observes the given property on the context and
<del> // tells the SC._BindableSpan to re-render.
<del> SC.addObserver(ctx, pro... | 3 |
PHP | PHP | clear command | e0ae2f6825f5f87440ed8132479f488533334f15 | <ide><path>src/Illuminate/Foundation/Console/ViewClearCommand.php
<add><?php namespace Illuminate\Foundation\Console;
<add>
<add>use Illuminate\Console\Command;
<add>use Illuminate\Filesystem\Filesystem;
<add>
<add>class ViewClearCommand extends Command {
<add>
<add> /**
<add> * The console command name.
<add> *
<add... | 2 |
Javascript | Javascript | move redundant regex test into assert | 71d1e61c44bbc84ee2a29d7ffc1173406e83cd88 | <ide><path>packages/ember-metal/lib/accessors.js
<ide> Ember.getPath = function(root, path) {
<ide> Ember.setPath = function(root, path, value, tolerant) {
<ide> var keyName;
<ide>
<del> if (typeof root === 'string' && IS_GLOBAL.test(root)) {
<add> if (typeof root === 'string') {
<add> Ember.assert("Path '" + r... | 1 |
Mixed | Ruby | accept` header when rendering | 5745a3c0928ee5604ce80af19348efb42189f1d6 | <ide><path>actionpack/CHANGELOG.md
<add>* Add `Vary: Accept` header when using `Accept` header for response
<add>
<add> For some requests like `/users/1`, Rails uses requests' `Accept`
<add> header to determine what to return. And if we don't add `Vary`
<add> in the response header, browsers might accidental... | 5 |
Ruby | Ruby | remove a duplicate test of mysql_rake_test | 9862b3bf1e443703df4472a5c098aaeb205096d7 | <ide><path>activerecord/test/cases/tasks/mysql_rake_test.rb
<ide> def test_structure_dump
<ide> ActiveRecord::Tasks::DatabaseTasks.structure_dump(@configuration, filename)
<ide> end
<ide>
<del> def test_structure_dump
<del> filename = "awesome-file.sql"
<del> Kernel.expects(:system).wi... | 1 |
Python | Python | follow flake8 pep3101 and remove modulo formatting | f15cc2f01c2a4124ff6dc0843c728a546f9d9f79 | <ide><path>ciphers/elgamal_key_generator.py
<ide> def make_key_files(name: str, key_size: int) -> None:
<ide> if os.path.exists(f"{name}_pubkey.txt") or os.path.exists(f"{name}_privkey.txt"):
<ide> print("\nWARNING:")
<ide> print(
<del> '"%s_pubkey.txt" or "%s_privkey.txt" already exists.... | 9 |
Python | Python | fix poisson loss when target = 0 | 34999c865896642e25d46d6334200775008e1562 | <ide><path>keras/objectives.py
<ide> def binary_crossentropy(y_true, y_pred):
<ide>
<ide>
<ide> def poisson_loss(y_true, y_pred):
<del> return T.mean(y_pred - y_true * T.log(y_pred), axis=-1)
<add> return T.mean(y_pred - y_true * T.log(y_pred + epsilon), axis=-1)
<ide>
<ide> # aliases
<ide> mse = MSE = mean_sq... | 1 |
Text | Text | fix typo in building a city skylines step 15 | aca7ca128ce702ec9f55c08e842915e7f424ccad | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98d7.md
<ide> dashedName: step-15
<ide>
<ide> To use a variable, put the variable name in parentheses with `var` in front of them like this: `var(--variable-name)`. Whatever value you... | 1 |
Ruby | Ruby | remove assertion on date from humans.txt tests | f4c8f8c5aaaa778fcbae09674e2b3edb184f8dd3 | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_pretend_option
<ide> def test_humans_txt_file
<ide> date = Date.today.strftime("%B %d, %Y")
<ide> run_generator [File.join(destination_root, 'things-43')]
<del> assert_file "things-43/public/humans.txt", /Name: Things43/, /Software: R... | 1 |
Text | Text | update changelog with 0.10.4 release notes | b4add97c17b9a84381bbb72cfc704a8dcf14e878 | <ide><path>CHANGELOG.md
<ide> - The Latest Stable Release: <a href="#0.9.19">0.9.19 canine-psychokinesis</a>
<del>- The Latest Unstable Release: <a href="#0.10.3">0.10.3 shattering-heartbeat</a>
<add>- The Latest Unstable Release: <a href="#0.10.4">0.10.4 human-torch</a>
<ide>
<ide> <a name="0.10.4"></a>
<del># 0.10.4... | 1 |
Go | Go | add support to add bridge to the sandbox | 4ceec05f1bf11f7b3cd09461e2336a11a25a9101 | <ide><path>libnetwork/sandbox/interface_linux.go
<ide> type IfaceOption func(i *nwIface)
<ide> type nwIface struct {
<ide> srcName string
<ide> dstName string
<add> master string
<add> dstMaster string
<ide> address *net.IPNet
<ide> addressIPv6 *net.IPNet
<ide> routes []*net.IPNet
<add> bri... | 5 |
Javascript | Javascript | remove a useless check in charstounicode | 71d0f0d55c4584e2731a9f0e573c183a87f39ea9 | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> var constructor = function font_constructor(name, file, properties) {
<ide> this.name = name;
<ide> this.encoding = properties.encoding;
<del> this.glyphs = properties.glyphs;
<ide> this.sizes = [];
<ide>
<ide> var names = name.split("+... | 1 |
Javascript | Javascript | fix route name in code comment | 94751275ee54c713fceae58a34af3dcce25ea154 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> Ember.Route = Ember.Object.extend(Ember.ActionHandler, {
<ide> resolved.
<ide>
<ide> ```js
<del> App.PostRoute = Ember.Route.extend({
<add> App.PostsRoute = Ember.Route.extend({
<ide> afterModel: function(posts, transition) {
<ide> ... | 1 |
Javascript | Javascript | render charts only once in time scale tests | d480e11ea09681d3d95dd827688ff1a3819117ba | <ide><path>test/specs/scale.time.tests.js
<ide> // Time scale tests
<ide> describe('Time scale tests', function() {
<del> function createScale(data, options) {
<add> function createScale(data, options, dimensions) {
<ide> var scaleID = 'myScale';
<ide> var mockContext = window.createMockContext();
<ide> var Const... | 1 |
PHP | PHP | fix lint errors | 733f8cbeb0dbdcb378fed67f4d7029436a18dbd6 | <ide><path>src/Console/Command.php
<ide> class Command
<ide> */
<ide> public function __construct()
<ide> {
<del> $locator = $this->getTableLocator();
<del> $this->modelFactory('Table', function($alias){
<add> $this->modelFactory('Table', function ($alias) {
<ide> return $t... | 1 |
PHP | PHP | use the new class for doing requests | 135bc8f174bf09f09f5aada815f8dc58d4ef5d79 | <ide><path>lib/Cake/Utility/Xml.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Error;
<del>use Cake\Network\Http\HttpSocket;
<add>use Cake\Network\Http\Client;
<ide>
<ide> /**
<ide> * XML handling for Cake.
<ide> public static function build($input, $options = array()) {
<ide> } elseif (file_exists($input... | 1 |
Javascript | Javascript | add benchmark for buffer.concat | abd0d68bea82e6f22c1eaf28257cc6b33136cdbe | <ide><path>benchmark/buffers/buffer-concat.js
<add>'use strict';
<add>const common = require('../common.js');
<add>
<add>const bench = common.createBenchmark(main, {
<add> pieces: [1, 4, 16],
<add> pieceSize: [1, 16, 256],
<add> withTotalLength: [0, 1],
<add> n: [1024]
<add>});
<add>
<add>function main(conf) {
<add... | 1 |
Javascript | Javascript | fix types for dialogmanagerandroid | 7a62e7e333263d2594e63f3c5872bebea852d71c | <ide><path>Libraries/NativeModules/specs/NativeDialogManagerAndroid.js
<ide> export interface Spec extends TurboModule {
<ide> |};
<ide> +showAlert: (
<ide> config: DialogOptions,
<del> onError: (string) => void,
<add> onError: (error: string) => void,
<ide> onAction: (action: DialogAction, buttonKey?... | 1 |
Javascript | Javascript | make autoresize optional. fixes | ed00cd63fac6a13c55ccdd40c7c55d6931c118de | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> };
<ide>
<del> this.setSize = function ( width, height ) {
<add> this.setSize = function ( width, height, autoResize ) {
<add>
<add> if ( autoResize === undefined ) {
<add> autoResize = true;
<add> }
<ide... | 1 |
Ruby | Ruby | use arel in sql generation through associations | 8c3b8323f57d366fc308e773b286a1847552b0a3 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def select_all_rows(options, join_dependency)
<ide>
<ide> def construct_finder_sql_with_included_associations(options, join_dependency)
<ide> scope = scope(:find)
<del> sql = "SELECT #{column_aliases(join_dependency)} FROM #{(sc... | 2 |
Go | Go | set network id as part of parsenetworkoptions | a893540b667c302ae3267d3968628b19f8aca4ec | <ide><path>libnetwork/drivers/ipvlan/ipvlan_network.go
<ide> func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo
<ide> if err != nil {
<ide> return err
<ide> }
<del> config.ID = nid
<ide> err = config.processIPAM(nid, ipV4Data, ipV6Data)
<ide> if err != nil {
<ide> return err
<ide> f... | 1 |
Text | Text | add £15, cleanup | 4a2817d8260348f94ad6ae64c93e5d4ebda13c8c | <ide><path>SUPPORTERS.md
<ide> These awesome people supported our Kickstarter by giving us £50 or more:
<ide> * [Dmitri Akatov](http://akatov.com)
<ide> * [Joey Mink](http://joeymink.com)
<ide> * [MentalPower](http://mentalpower.us)
<del>* [@worldofchris](http://www.worldofchris.com)
<add>* [worldofchris](http://www.wo... | 1 |
Javascript | Javascript | ignore properties in prototype chain | cb42766a14f8123aa288b6e20f879141970fb84d | <ide><path>src/Angular.js
<ide> function parseKeyValue(/**string*/keyValue) {
<ide> key = tryDecodeURIComponent(key_value[0]);
<ide> if ( isDefined(key) ) {
<ide> var val = isDefined(key_value[1]) ? tryDecodeURIComponent(key_value[1]) : true;
<del> if (!obj[key]) {
<add> if (!hasOwnPro... | 2 |
Text | Text | add missing serial commas | ff9a6bc1f343c146c4d54034e351e1afb1da3238 | <ide><path>COLLABORATOR_GUIDE.md
<ide> - [How is an LTS release cut?](#how-is-an-lts-release-cut)
<ide>
<ide> This document contains information for Collaborators of the Node.js
<del>project regarding maintaining the code, documentation and issues.
<add>project regarding maintaining the code, documentation, and is... | 15 |
Python | Python | remove version warning in pretrained bart models | 3b20e910b45f392f247468e997b00ce12a4ca5c9 | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> def forward(self, hidden_states: torch.Tensor):
<ide> class BartPretrainedModel(PreTrainedModel):
<ide> config_class = BartConfig
<ide> base_model_prefix = "model"
<add> _keys_to_ignore_on_load_unexpected = [r"encoder\.version", r"decoder\.versio... | 1 |
PHP | PHP | fix failing tests | c22d6d1507a65f959cdd71bc61697cef01c23e91 | <ide><path>lib/Cake/Network/Http/Adapter/Stream.php
<ide> protected function _buildHeaders(Request $request, $options) {
<ide> /**
<ide> * Builds the request content based on the request object.
<ide> *
<del> * If the $request->content() is a string, it will be used as is.
<add> * If the $request->body() is a string,... | 3 |
Ruby | Ruby | eliminate a nil check | eb528fd7cd01baac4fb0bcdf13ab2c0ab8f6c568 | <ide><path>Library/Homebrew/compilers.rb
<ide> module CompilerConstants
<ide> GNU_GCC_REGEXP = /^gcc-(4\.[3-9])$/
<ide> end
<ide>
<del>Compiler = Struct.new(:name, :version, :priority)
<add># TODO make this class private to CompilerSelector
<add>class Compiler
<add> attr_reader :name, :version, :priority
<add>
<add... | 1 |
Text | Text | add v4.8.3 to changelog | 1748d37781b40ee562f35e9b6a059810f9b759bc | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>## v4.8.3 (December 12, 2022)
<add>
<add>- [#20296](https://github.com/emberjs/ember.js/pull/20296) Controller `queryParams` should support `readonly` arrays
<add>- [#20318](https://github.com/emberjs/ember.js/pull/20318) Backport `Resolver` to preview types
<... | 1 |
PHP | PHP | fix disabled attribute calculation | e8090bce40364df26b1b5cd2a7c65a1c4eee7971 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _initInputField($field, $options = [])
<ide> if ($context->hasError($field)) {
<ide> $options = $this->addClass($options, $this->_config['errorClass']);
<ide> }
<del> $isDisabled = false;
<del> if (isset($option... | 2 |
PHP | PHP | use a temp variable instead of the array | a718ac7222e3c9fb11773b0505777d72b9468d72 | <ide><path>src/Collection/Iterator/SortIterator.php
<ide> public function __construct($items, $callback, $dir = SORT_DESC, $type = SORT_NU
<ide> $callback = $this->_propertyExtractor($callback);
<ide> $results = [];
<ide> foreach ($items as $key => $value) {
<del> $results[$key] = $ca... | 2 |
Text | Text | update new ctc members | d958bf88b81aeae9262b2221b6233b7201116713 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Fedor Indutny** <fedor.indutny@gmail.com>
<ide> * [jasnell](https://github.com/jasnell) -
<ide> **James M Snell** <jasnell@gmail.com> (he/him)
<add>* [joyeecheung](https://github.com/joyeecheung) -
<add>**Jo... | 1 |
Javascript | Javascript | add millisecond support for date filter | 841013a4c4d25acf6fc9ff40e449c3d0a4b82ec3 | <ide><path>src/filters.js
<ide> var DATE_FORMATS = {
<ide> }
<ide> };
<ide> var DATE_FORMATS_SPLIT = /([^yMdHhmsaZ]*)(y+|M+|d+|H+|h+|m+|s+|a|Z)(.*)/;
<add>var NUMBER_STRING = /^\d+$/;
<ide>
<ide> angularFilter.date = function(date, format) {
<del> if (!(date instanceof Date)) return date;
<add> if (isString(... | 2 |
Go | Go | use common logging in engine | b3b40433451d8e76d02dc70d591027f680c9a3bf | <ide><path>engine/job.go
<ide> import (
<ide> "io"
<ide> "strings"
<ide> "time"
<add>
<add> log "github.com/Sirupsen/logrus"
<ide> )
<ide>
<ide> // A job is the fundamental unit of work in the docker engine.
<ide> func (job *Job) Run() error {
<ide> return fmt.Errorf("%s: job has already completed", job.Name)
<id... | 1 |
Ruby | Ruby | use names for formula comparison | 0ae1785703cc816725c78bbff4b390b918d6fd29 | <ide><path>Library/Homebrew/formula.rb
<ide> def current_installed_alias_target
<ide> # Returns false if the formula wasn't installed with an alias.
<ide> def installed_alias_target_changed?
<ide> target = current_installed_alias_target
<del> target && target != self
<add> target && target.name != name
<i... | 1 |
Ruby | Ruby | drop array allocations when building paths | d993cb362969caa2cb3b3f2f86ddf653d34dfb1b | <ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb
<ide> def symbol?; false; end
<ide> def literal?; false; end
<ide> def terminal?; false; end
<ide> def star?; false; end
<add> def cat?; false; end
<ide> end
<ide>
<ide> class Terminal < Node # :nodoc:
<ide> def ... | 2 |
Python | Python | add code samples for tf speech models | 60d27b1f152c181705191765661967fef3016cef | <ide><path>src/transformers/utils/doc.py
<ide> def _prepare_output_docstrings(output_type, config_class, min_indent=None):
<ide> ```
<ide> """
<ide>
<add>TF_SPEECH_BASE_MODEL_SAMPLE = r"""
<add> Example:
<add>
<add> ```python
<add> >>> from transformers import {processor_class}, {model_class}
<add> >>>... | 1 |
Python | Python | add profile function | 7be5f30f17bed017eb4ecdcbe2d451fc6fd86f4d | <ide><path>spacy/cli/__init__.py
<ide> from .info import info
<ide> from .link import link
<ide> from .package import package
<add>from .profile import profile
<ide> from .train import train
<ide> from .convert import convert
<ide> from .model import model
<ide><path>spacy/cli/profile.py
<add># coding: utf8
<add>from _... | 2 |
Python | Python | fix typo in config | 4112bcec5d2e31ed377db26470b194a4a71f6d72 | <ide><path>airflow/configuration.py
<ide> def get(self, section, key, **kwargs):
<ide> d = self.defaults
<ide>
<ide> # environment variables get precedence
<del> # must have format AIRFLOW__{SESTION}__{KEY} (note double underscore)
<add> # must have format AIRFLOW__{SECTION}__{KEY} (note ... | 1 |
PHP | PHP | add blank lines between test methods | a8236fa1efaef9c23a763068d012e53a663bfe68 | <ide><path>tests/View/ViewBladeCompilerTest.php
<ide> public function testRetrieveDefaultEscapedContentTags()
<ide> $this->assertEquals(['{{{', '}}}'], $compiler->getEscapedContentTags());
<ide> }
<ide>
<add>
<ide> public function testSequentialCompileStringCalls()
<ide> {
<ide> $compiler = new BladeCompiler($t... | 1 |
Python | Python | fix use of python 2.6 deprecated escape sequences | d7d3e212ce1ff176c718485aed889c77a48ef88f | <ide><path>numpy/core/code_generators/genapi.py
<ide> def fullapi_hash(api_dicts):
<ide>
<ide> # To parse strings like 'hex = checksum' where hex is e.g. 0x1234567F and
<ide> # checksum a 128 bits md5 checksum (hex format as well)
<del>VERRE = re.compile('(^0x[\da-f]{8})\s*=\s*([\da-f]{32})')
<add>VERRE = re.compile(r... | 2 |
Text | Text | move hostconfig.mounts to correct api version | cd73ceffd84d6d3af695a70485ca0d7899d0475a | <ide><path>docs/reference/api/docker_remote_api_v1.24.md
<ide> Create a container
<ide> "StorageOpt": {},
<ide> "CgroupParent": "",
<ide> "VolumeDriver": "",
<del> "ShmSize": 67108864,
<del> "Mounts": []
<add> "ShmSize": 67108864
<ide> ... | 2 |
Javascript | Javascript | fix argument order for assert.strictequal | 446aadd2e23bb91709644c493f20f7c5ae103ff8 | <ide><path>test/sequential/test-inspector-scriptparsed-context.js
<ide> async function runTests() {
<ide> await session.waitForBreakOnLine(0, 'evalmachine.<anonymous>');
<ide>
<ide> await session.runToCompletion();
<del> assert.strictEqual(0, (await instance.expectShutdown()).exitCode);
<add> assert.strictEqual(... | 1 |
Text | Text | fix lint errors for docs/api | 9bfefed90bf9954be773c85a408decd6e2e355b9 | <ide><path>docs/api/Store.md
<ide> To learn how to describe asynchronous API calls, read the current state inside a
<ide> #### Example
<ide>
<ide> ```js
<del>import { createStore } from 'redux';
<del>let store = createStore(todos, ['Use Redux']);
<add>import { createStore } from 'redux'
<add>let store = createStore(to... | 6 |
Go | Go | add tail and since to service logs | 8dc437bd9b474c24a2cf802c2779dace2f91194a | <ide><path>cli/command/service/logs.go
<ide> func newLogsCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> flags := cmd.Flags()
<ide> flags.BoolVar(&opts.noResolve, "no-resolve", false, "Do not map IDs to Names")
<ide> flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output")
<del> flags.Str... | 4 |
PHP | PHP | add minor changes to http client | 380d8c692b1448c6b701cc3c94abf98c81715e54 | <ide><path>src/Illuminate/Http/Client/Factory.php
<ide> namespace Illuminate\Http\Client;
<ide>
<ide> use Closure;
<add>use GuzzleHttp\Psr7\Response as Psr7Response;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use PHPUnit\Framework\Assert as PHPUnit;
<add>use function GuzzleH... | 4 |
Python | Python | remove actual model downloading from tests | be9daefbdd80380a7fdb8369bf32208ef61a6615 | <ide><path>spacy/tests/test_download.py
<ide> def test_download_fetch_compatibility():
<ide> assert type(compatibility) == dict
<ide>
<ide>
<del>@pytest.mark.slow
<del>@pytest.mark.parametrize('model', ['en_core_web_md-1.2.0'])
<del>def test_download_direct_download(model):
<del> download(model, direct=True)
<... | 1 |
Python | Python | check lengths match | e50047f1c5e9949894bbba0a3183295fc79f2f2b | <ide><path>spacy/ml/models/tok2vec.py
<ide> def MultiHashEmbed(
<ide> include_static_vectors (bool): Whether to also use static word vectors.
<ide> Requires a vectors table to be loaded in the Doc objects' vocab.
<ide> """
<add> if len(rows) != len(attrs):
<add> raise ValueError(f"Mismatched l... | 1 |
Javascript | Javascript | require callback in read | 8e1b6e771867fc4e89715cf22501dfe2f01cf8d0 | <ide><path>lib/fs.js
<ide> function openSync(path, flags, mode) {
<ide> function read(fd, buffer, offset, length, position, callback) {
<ide> validateUint32(fd, 'fd');
<ide> validateBuffer(buffer);
<add> callback = maybeCallback(callback);
<ide>
<ide> offset |= 0;
<ide> length |= 0;
<ide>
<ide> if (length ... | 2 |
Javascript | Javascript | remove the ignorefont variable | 1de54365611f0132f9ac1a5f10ea99f03ef91f94 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> error("FontFile not found for font: " + fontName);
<ide> fontFile = xref.fetchIfRef(fontFile);
<ide>
<del> // Fonts with an embedded cmap but without any assignment in
<del> // it are not yet supported, s... | 1 |
Ruby | Ruby | add audit for leading 'v' in version numbers | d9487a96ea9fc7b76954b5e04781d87618844ef2 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_specs
<ide> end
<ide> end
<ide>
<add> if s.version.to_s =~ /^v/
<add> problem "#{spec} version #{s.version} should not have a leading 'v'"
<add> end
<add>
<ide> cksum = s.checksum
<ide> next if cksum.nil?
<ide> | 1 |
Javascript | Javascript | replace fixturesdir in tls-env-bad-extra-ca | 4457f4feb98d891f8f9343c69c53e0a2552b35de | <ide><path>test/parallel/test-tls-env-bad-extra-ca.js
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const assert = require('assert');
<del>const tls = require('tls');
<add>const fixtures = require('../common/fixtures');
<ide> const fork = require('child_process').fork;
<add>const tls ... | 1 |
Javascript | Javascript | support custom params serializers | 6c8464ad14dd308349f632245c1a064c9aae242a | <ide><path>src/AngularPublic.js
<ide> $IntervalProvider,
<ide> $$HashMapProvider,
<ide> $HttpProvider,
<add> $HttpParamSerializerProvider,
<add> $HttpParamSerializerJQLikeProvider,
<ide> $HttpBackendProvider,
<ide> $LocationProvider,
<ide> $LogProvider,
<ide> function publishExternalAPI(angular) {
<ide> ... | 3 |
Ruby | Ruby | remove unused `missingrequesterror` | 952eb506ebbfac24665a3a3429d1db9663cbb77a | <ide><path>actionview/lib/action_view.rb
<ide> module ActionView
<ide> autoload :MissingTemplate
<ide> autoload :ActionViewError
<ide> autoload :EncodingError
<del> autoload :MissingRequestError
<ide> autoload :TemplateError
<ide> autoload :WrongEncodingError
<ide> end
<ide><path>... | 2 |
Ruby | Ruby | convert tty test to spec | 8736b6cee0d94c1927b7abaa3dbde0d3a0239b85 | <ide><path>Library/Homebrew/test/utils/tty_spec.rb
<add>require "utils"
<add>
<add>describe Tty do
<add> describe "::strip_ansi" do
<add> it "removes ANSI escape codes from a string" do
<add> expect(subject.strip_ansi("\033\[36;7mhello\033\[0m")).to eq("hello")
<add> end
<add> end
<add>
<add> describe "::... | 2 |
Text | Text | remove duplicate asterik | a3329db7db7d0f0ee672fc44bfdd41767cda6446 | <ide><path>docs/build-instructions/windows.md
<ide> To also install the newly built application, use `script\build --create-windows-
<ide> * See the next item.
<ide>
<ide> * `error MSB8020: The build tools for Visual Studio 201? (Platform Toolset = 'v1?0') cannot be found.`
<del> * * Try setting the `GYP_MSVS_VERSI... | 1 |
PHP | PHP | use the new google fonts api | b9b282a71933e0279fea63fa0302e9a30a4c2efe | <ide><path>resources/views/welcome.blade.php
<ide> <title>Laravel</title>
<ide>
<ide> <!-- Fonts -->
<del> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<add> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;600&display=swap" rel... | 1 |
Ruby | Ruby | use cflags setter | 2cb8c443e4bd44ea660657a3159268664f77a173 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def macosxsdk version=MacOS.version
<ide> end
<ide>
<ide> def minimal_optimization
<del> self['CFLAGS'] = self['CXXFLAGS'] = "-Os #{SAFE_CFLAGS_FLAGS}"
<add> set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
<ide> macosxsdk unless MacOS::CLT.installed?
<ide> end
... | 1 |
Javascript | Javascript | remove legacy code to support ie8 and older | 8f10dca300c7bcc55ff1613326b84b9c460ca7c2 | <ide><path>src/jqLite.js
<ide> JQLite.expando = 'ng339';
<ide>
<ide> var jqCache = JQLite.cache = {},
<ide> jqId = 1,
<del> addEventListenerFn = (window.document.addEventListener
<del> ? function(element, type, fn) {element.addEventListener(type, fn, false);}
<del> : function(element, type, fn) {eleme... | 1 |
Text | Text | add default tags for issue templates | 5c97b9775517705eeed88623097343d43b64f760 | <ide><path>.github/ISSUE_TEMPLATE/1.Bug_report.md
<ide> ---
<ide> name: Bug report
<ide> about: Create a bug report for the Next.js core / examples
<add>labels: 'template: bug'
<ide> ---
<ide>
<ide> # Bug report
<ide><path>.github/ISSUE_TEMPLATE/2.Feature_request.md
<ide> ---
<ide> name: Feature request
<ide> about: C... | 2 |
Ruby | Ruby | enhance many? one? | 02d9f31a4a113277a9d84ea8fb32d819b48dad50 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def any?
<ide> # Returns true if there is exactly one record.
<ide> def one?
<ide> return super if block_given?
<del> return records.one? if limit_value || loaded?
<add> return records.one? if loaded?
<ide> limited_count == 1
<ide... | 2 |
Ruby | Ruby | remove cask’s `which` method | 6e1c132f99166c716c991d687e4017167c2a37d0 | <ide><path>Library/Homebrew/cask/lib/hbc/cli.rb
<ide> def self.run_command(command, *rest)
<ide> if command.respond_to?(:run)
<ide> # usual case: built-in command verb
<ide> command.run(*rest)
<del> elsif require? Utils.which("brewcask-#{command}.rb").to_s
<add> elsif require? which("bre... | 2 |
Python | Python | standardize future imports | 04c11f8c13b1182b43eaed36dbfdedb23efd38b9 | <ide><path>keras/activations.py
<ide> from __future__ import absolute_import
<add>from __future__ import division
<add>from __future__ import print_function
<add>
<ide> import six
<ide> import warnings
<ide> from . import backend as K
<ide><path>keras/applications/densenet.py
<ide> - [Torch DenseNets](https://github.co... | 59 |
Javascript | Javascript | hide correct dataset from legend | 6942e9058c06494105b42f4efd18f80b2ab64ac1 | <ide><path>src/plugins/plugin.legend.js
<ide> defaults._set('global', {
<ide> var options = chart.options.legend || {};
<ide> var usePointStyle = options.labels && options.labels.usePointStyle;
<ide>
<del> return chart._getSortedDatasetMetas().map(function(meta, i) {
<add> return chart._getSortedDatasetM... | 1 |
Python | Python | fix gce_demo for loadbalancing and python 3 | 26a54f158392e07e75fb1fd9a808db635ee35e2c | <ide><path>demos/gce_demo.py
<ide> def main_load_balancer():
<ide> name = '%s-firewall' % DEMO_BASE_NAME
<ide> allowed = [{'IPProtocol': 'tcp',
<ide> 'ports': ['80']}]
<del> firewall = gce.ex_create_firewall(name, allowed, source_tags=[tag])
<add> firewall = gce.ex_create_firewall(name, al... | 1 |
Mixed | Javascript | fix border style without borderradius | 58876d5a03b2c709b83ae212010b623d1c51c9cf | <ide><path>Examples/UIExplorer/ViewExample.js
<ide> var ViewBorderStyleExample = React.createClass({
<ide> <View>
<ide> <View style={{
<ide> borderWidth: 1,
<del> borderRadius: 5,
<ide> borderStyle: this.state.showBorder ? 'dashed' : null,
<ide> padding: ... | 2 |
Javascript | Javascript | use synchook for afterfinishassets | 90971dc0e61077516e333737d70612487bed0718 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide>
<ide> /** @type {AsyncSeriesHook<[CompilationAssets]>} */
<ide> finishAssets: new AsyncSeriesHook(["assets"]),
<del> /** @type {AsyncSeriesHook<[CompilationAssets]>} */
<del> afterFinishAssets: new AsyncSeriesHook(["assets"]),
<add> /** @type {S... | 2 |
Text | Text | add first content on redux middleware | e321ca535c9651c2c02ff9601b5e94af341d6fe1 | <ide><path>client/src/pages/guide/english/redux/redux-middleware/index.md
<ide> title: Redux Middleware
<ide> ---
<ide> ## Redux Middleware
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/redux/redux-middleware/index.md' target='_blank' rel='nofollow'>Help our community... | 1 |
PHP | PHP | apply fixes from styleci | 65b304e52f92759c3e8233767e2755c7b763fd99 | <ide><path>tests/Filesystem/FilesystemTest.php
<ide>
<ide> namespace Illuminate\Tests\Filesystem;
<ide>
<del>use Illuminate\Filesystem\FilesystemManager;
<del>use Illuminate\Foundation\Application;
<del>use League\Flysystem\Adapter\Ftp;
<ide> use PHPUnit\Framework\TestCase;
<add>use League\Flysystem\Adapter\Ftp;
<ide... | 1 |
Text | Text | add changelogs for child_process | d6a3cfab77e45f2e7466ffa653537379c00b0165 | <ide><path>doc/api/child_process.md
<ide> encoding, `Buffer` objects will be passed to the callback instead.
<ide> ### child_process.fork(modulePath[, args][, options])
<ide> <!-- YAML
<ide> added: v0.5.0
<add>changes:
<add> - version: v6.4.0
<add> pr-url: https://github.com/nodejs/node/pull/7811
<add> descripti... | 1 |
Python | Python | fix issue with python 3.x on windows [issue #291] | 4cac5f1f94cb6535947132aeebaaa76aa42cf97a | <ide><path>glances/glances.py
<ide> def run(self):
<ide>
<ide> def stop(self):
<ide> self.Terminated = True
<del> msvcrt.putch(' ')
<ide> while not self.q.empty():
<ide> self.q.get()
<ide> | 1 |
Javascript | Javascript | fix prompt value in ie8 | e4b1b073b12f5baf2800cffab47d1f828988d58d | <ide><path>packages/ember-handlebars/lib/controls/select.js
<ide> Ember.Select = Ember.View.extend(
<ide>
<ide> tagName: 'select',
<ide> classNames: ['ember-select'],
<del> defaultTemplate: Ember.Handlebars.compile('{{#if view.prompt}}<option value>{{view.prompt}}</option>{{/if}}{{#each view.content}}{{view Ember... | 1 |
Java | Java | use array map from android support library | 1ece46b42cd94a10eb18b2b0eb1045794982a315 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java
<ide> import android.content.Context;
<ide> import android.content.res.Configuration;
<ide> import android.media.AudioManager;
<del>import android.util.ArrayMap;
<ide> import android.view.View;
<add>import androidx.collection.ArrayM... | 1 |
PHP | PHP | make connection on optional | 257f53f45a85ed4834bbb6505b4e403d64a0c2c5 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function create(array $attributes)
<ide> * @param string $connection
<ide> * @return \Illuminate\Database\Eloquent\Builder
<ide> */
<del> public static function on($connection)
<add> public static function on($connection = null)
<ide> {
... | 1 |
Python | Python | update model conversion | fea15cc9f5939bbd1cb162921ae273da9de49c14 | <ide><path>pytorch_pretrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py
<ide> def build_tf_to_pytorch_map(model, config):
<ide> layer_str + "ff/layer_2/bias": b.pos_ff.CoreNet[3].bias,
<ide> })
<ide>
<del> # Softmax cutoffs
<add> # Adaptive Softmax
<add> tf_to_pt_map.update({
<add> ... | 2 |
Javascript | Javascript | fix error message when invoking wrong command | 31aacd78e8e3604ccde6326ff43a36132319c52b | <ide><path>private-cli/src/cli.js
<ide> function help() {
<ide> return Promise.resolve();
<ide> }
<ide>
<del>module.exports.run = run;
<add>module.exports = {
<add> commands: documentedCommands,
<add> run: run,
<add>}; | 1 |
Javascript | Javascript | use `async` a bit more in the api | ce3f5ea2bf73ab9d4a3d86bc61576f5d14785ab0 | <ide><path>src/display/api.js
<ide> function getDocument(src) {
<ide> * @param {Object} source
<ide> * @param {PDFDataRangeTransport} pdfDataRangeTransport
<ide> * @param {string} docId - Unique document ID, used in `MessageHandler`.
<del> * @returns {Promise} A promise that is resolved when the worker ID of the
<de... | 1 |
Ruby | Ruby | install gcc if glibc is too old | d6368806e88b1e3a94c355bb9c1fbe2d65236708 | <ide><path>Library/Homebrew/extend/os/linux/dependency_collector.rb
<ide> class DependencyCollector
<ide>
<ide> sig { params(related_formula_names: T::Set[String]).returns(T.nilable(Dependency)) }
<ide> def gcc_dep_if_needed(related_formula_names)
<del> return unless DevelopmentTools.system_gcc_too_old?
<add> ... | 1 |
Python | Python | change seed range for randomstreams in theano | 76cae0ec4463d350379e1da312386d97996040c4 | <ide><path>keras/backend/theano_backend.py
<ide> def dropout(x, level, seed=None):
<ide> if level < 0. or level >= 1:
<ide> raise Exception('Dropout level must be in interval [0, 1[.')
<ide> if seed is None:
<del> seed = np.random.randint(10e6)
<add> seed = np.random.randint(1, 10e6)
<ide>... | 1 |
PHP | PHP | use static instead of self | 7371846bab898dcc6a910b8eff514cc4140c1141 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function withoutTouching($callback)
<ide> {
<ide> $currentClass = static::class;
<ide>
<del> self::$ignoreOnTouch[] = $currentClass;
<add> static::$ignoreOnTouch[] = $currentClass;
<ide>
<ide> try {
<ide> ... | 1 |
Javascript | Javascript | improve textinput docs | e1497ce2b6abc8810bfcc4643e3e72ceec3bd3a3 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> const TextInput = React.createClass({
<ide> * - `default`
<ide> * - `numeric`
<ide> * - `email-address`
<add> * - `phone-pad`
<ide> */
<ide> keyboardType: PropTypes.oneOf([
<ide> // Cross-platform | 1 |
Ruby | Ruby | use map! instead of map for <association>_ids | 40b387580ff251e06632fbcc87c2a78c027a6b27 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def collection_reader_method(reflection, association_proxy_class)
<ide> if reflection.through_reflection && reflection.source_reflection.belongs_to?
<ide> through = reflection.through_reflection
<ide> primary_k... | 1 |
Python | Python | fix the dataset flag | eaf2bd1bf694a52236e6abd40cfbfed3ef041aa6 | <ide><path>official/resnet/keras/keras_main.py
<ide> def parse_record_keras(raw_record, is_training, dtype):
<ide> Returns:
<ide> Tuple with processed image tensor and one-hot-encoded label tensor.
<ide> """
<del> if shining.dataset == IMAGENET_DATASET:
<add> if flags_obj.dataset == IMAGENET_DATASET:
<ide> ... | 1 |
Javascript | Javascript | add german translation for week | 57f9a8fdf532415a788328be3709a088c0321717 | <ide><path>src/locale/de-at.js
<ide> function processRelativeTime(number, withoutSuffix, key, isFuture) {
<ide> h: ['eine Stunde', 'einer Stunde'],
<ide> d: ['ein Tag', 'einem Tag'],
<ide> dd: [number + ' Tage', number + ' Tagen'],
<add> w: ['eine Woche', 'einer Woche'],
<ide> M: ... | 6 |
Javascript | Javascript | add flow types in reactcontrolledcomponent | 409e472fcaae2b6c171f4e9a0c4b5ad88ec2bf21 | <ide><path>packages/events/ReactControlledComponent.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<ide> */
<ide>
<ide> import invariant from 'shared/invariant';
<ide> function restoreStateOfTa... | 1 |
Javascript | Javascript | remove output field from debugger | 5545d43bc46886aa38ded62f6b24bb4a5952b198 | <ide><path>examples/fiber/debugger/src/describeFibers.js
<ide> export default function describeFibers(rootFiber, workInProgress) {
<ide> tag: getFriendlyTag(fiber.tag),
<ide> type: (fiber.type && ('<' + (fiber.type.name || fiber.type) + '>')),
<ide> stateNode: `[${typeof fiber.stateNode}]`,
<del> ... | 1 |
Ruby | Ruby | return false for exists? with new records - fixes | fa21b73ebb8339ad388f149c817c433b6254d490 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def all
<ide> # Person.exists?(['name LIKE ?', "%#{query}%"])
<ide> # Person.exists?
<ide> def exists?(id = false)
<del> return false if id.nil?
<del>
<ide> id = id.id if ActiveRecord::Model === id
<add> return fa... | 3 |
Text | Text | remove confusing "cats" from style guide | cca12ee3216a418642518d066d8b2684634b4121 | <ide><path>doc/STYLE_GUIDE.md
<ide> * Pronouns are acceptable in more colloquial documentation, like guides.
<ide> * Use gender-neutral pronouns and mass nouns. Non-comprehensive
<ide> examples:
<del> * OK: "they", "their", "them", "folks", "people", "developers", "cats"
<add> * OK: "they", "their", "them... | 1 |
Python | Python | add tests for serializing parser | 0051c05964220ef8e80bddda2a1010a088aa60c7 | <ide><path>spacy/tests/serialize/test_serialize_parser.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>from ..util import make_tempdir
<add>from ...pipeline import NeuralDependencyParser as Parser
<add>
<add>import pytest
<add>
<add>
<add>def test_serialize_parser_roundtrip_bytes(en_voca... | 1 |
PHP | PHP | fix tests that broke when rebasing | 53843dd1c72dc62b7c962cc37cf114d9e5967f3b | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testSelectMultiple() {
<ide> '/select'
<ide> );
<ide> $this->assertTags($result, $expected);
<add> }
<ide>
<ide> /**
<ide> * Test that a checkbox can have 0 for the value and 1 for the hidden input.
<ide> *
<ide> * @return void
<i... | 1 |
Ruby | Ruby | use respond_to? instead of nomethoderror | 0472b3f34048b7396631d33d4e1cda506ce1a5b1 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def doctor
<ide>
<ide> first_warning = true
<ide> methods.each do |method|
<del> begin
<del> out = checks.send(method)
<del> rescue NoMethodError
<add> unless checks.respond_to?(method)
<ide> Homebrew.failed = true
<ide> puts... | 1 |
Text | Text | add parentheses to function and move reference | ab42ef39300a986fee7149a8578fbac564798ae4 | <ide><path>doc/api/readline.md
<ide> will not terminate until it receives `EOF` (<kbd>Ctrl</kbd>+<kbd>D</kbd> on
<ide> Linux/macOS, <kbd>Ctrl</kbd>+<kbd>Z</kbd> followed by <kbd>Return</kbd> on
<ide> Windows).
<ide> If you want your application to exit without waiting for user input, you can
<del>[`unref`][] the standa... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.