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 |
|---|---|---|---|---|---|
PHP | PHP | make code dryer | fe545c579e70added74073b7b51a05f8f56d13fa | <ide><path>src/Core/Configure/Engine/IniConfig.php
<ide> public function __construct($path = null, $section = null)
<ide> */
<ide> public function read($key)
<ide> {
<del> if (strpos($key, '..') !== false) {
<del> throw new Exception('Cannot load configuration files with ../ in them.');
<... | 3 |
Text | Text | update readme to clarify guide status | 927010fa10c815132f1da6b38d046fcf9b9751f2 | <ide><path>README.md
<ide> Our community also has:
<ide> - A [forum](https://www.freecodecamp.org/forum) where you can usually get programming help or project feedback within hours.
<ide> - A [YouTube channel](https://youtube.com/freecodecamp) with free courses on Python, SQL, Android, and a wide variety of other techn... | 1 |
Python | Python | fix four bugs in stackdrivertaskhandler | 833e3383230e1f6f73f8022ddf439d3d531eff01 | <ide><path>airflow/providers/google/cloud/log/stackdriver_task_handler.py
<ide> def __init__(
<ide> self.resource: Resource = resource
<ide> self.labels: Optional[Dict[str, str]] = labels
<ide> self.task_instance_labels: Optional[Dict[str, str]] = {}
<add> self.task_instance_hostname = 'd... | 5 |
Ruby | Ruby | revise some doc changes | 1fc6036b4b2fe314e30513925fd6b42a2b634b4b | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def radio_button_tag(name, value, checked = false, options = {})
<ide> # submit_tag "Save edits", :disabled => true
<ide> # # => <input disabled="disabled" name="commit" type="submit" value="Save edits" />
<ide> #
<del> #
... | 1 |
Go | Go | break big lock into some tiny locks | 1326f0cba5f933674e23769de1385d3b0841e758 | <ide><path>container/monitor.go
<ide> type containerMonitor struct {
<ide> // StartMonitor initializes a containerMonitor for this container with the provided supervisor and restart policy
<ide> // and starts the container's process.
<ide> func (container *Container) StartMonitor(s supervisor, policy container.RestartP... | 3 |
Go | Go | fix inspect object by invalid reference | 3cd39aaeab37102e4b12decc0c36042e477e2fa6 | <ide><path>integration-cli/docker_cli_inspect_test.go
<ide> func (s *DockerSuite) TestInspectUnknownObject(c *check.C) {
<ide> c.Assert(out, checker.Contains, "Error: No such object: foobar")
<ide> c.Assert(err.Error(), checker.Contains, "Error: No such object: foobar")
<ide> }
<add>
<add>func (s *DockerSuite) TestIn... | 2 |
Text | Text | remove rebase docs | 15f40138593c9add014cfabd4c0cb27a896cad6c | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> **Date**: 4th April 2013
<ide>
<del>* DecimalField support.
<ide> * OAuth2 authentication no longer requires unneccessary URL parameters in addition to the token.
<ide> * URL hyperlinking i... | 1 |
Text | Text | add wiki link to readme.md | 0e325d9e344d71136c469ab3404deb79cd5d3291 | <ide><path>README.md
<ide> performing complex surgeries on DAGs a snap. The rich user interface
<ide> makes it easy to visualize pipelines running in production,
<ide> monitor progress, and troubleshoot issues when needed.
<ide>
<add>For more information and documentation, please visit the [Airflow Wiki](https://githu... | 1 |
Text | Text | add teams for platform-specific issues | ab9b2fdbfb542e37eb988cb11677e878ae6ef0ea | <ide><path>doc/onboarding-extras.md
<ide> | upgrading c-ares | @jbergstroem |
<ide> | upgrading http-parser | @jbergstroem, @nodejs/http |
<ide> | upgrading libuv | @saghul |
<add>| platform specific | @nodejs/platform-{aix,arm,freebsd,macos,ppc,smartos,s390,windows} |
<ide>
<ide>
<ide> When things need extra attenti... | 1 |
Text | Text | update ecosystem page | db677195b08c55aac0adbd8d09fed98ca2ac710e | <ide><path>docs/introduction/Ecosystem.md
<ide> Reset the redux state on certain actions
<ide> **[ForbesLindesay/redux-optimist](https://github.com/ForbesLindesay/redux-optimist)** <br />
<ide> A reducer enhancer to enable type-agnostic optimistic updates
<ide>
<del>## Actions
<del>
<del>**[reduxactions/redux-actions]... | 1 |
Text | Text | remove lineheight property from legendtitlt | 988464323f2bc3d60e608676eefef3526e61a58c | <ide><path>docs/docs/configuration/legend.md
<ide> The legend label configuration is nested below the legend configuration using th
<ide> | ---- | ---- | ------- | -----------
<ide> | `boxWidth` | `number` | `40` | Width of coloured box.
<ide> | `boxHeight` | `number` | fontSize | Height of the coloured box.
<del>| `fo... | 1 |
Mixed | Javascript | improve assert.fail() api | 758b8b6e5d1aa171827759e51847bcc4f2eea7a3 | <ide><path>doc/api/assert.md
<ide> If the values are not equal, an `AssertionError` is thrown with a `message`
<ide> property set equal to the value of the `message` parameter. If the `message`
<ide> parameter is undefined, a default error message is assigned.
<ide>
<add>## assert.fail(message)
<ide> ## assert.fail(ac... | 3 |
Text | Text | add a ; to the end of the example code | 994ee89a86b2050bec056ddd7e0d3cb9f6bb457e | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-objects.english.md
<ide> Consider the following ES5 code:
<ide> Here's the same assignment statement with ES6 destructuring syntax:
<ide> <blockquote>const { x, y, z } = voxel;... | 1 |
Java | Java | fix issue with incorrect class import | cf147a82ef0c5592041ddfdde3d1340fd47e89aa | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
<ide>
<ide> import java.lang.reflect.Method;
<ide> import java.util.ArrayList;
<add>import java.util.Collections;
<ide> import java.util.HashMap;
<ide> import java.util.LinkedHashMap;
<id... | 1 |
Text | Text | link v3 and v4 ticksizeinner & ticksizeouter | d2278c73e514b475e308be937e18c31429780184 | <ide><path>CHANGES.md
<ide> As before, you can customize the axis appearance either by applying stylesheets
<ide>
<ide> There’s now an [*axis*.tickArguments](https://github.com/d3/d3-axis#axis_tickArguments) method, as an alternative to [*axis*.ticks](https://github.com/d3/d3-axis#axis_ticks) that also allows the axis... | 1 |
Python | Python | fix mixed precision parameter | 80af2a7b97f30ef8d82f88f050404fa698d6171d | <ide><path>official/vision/image_classification/resnet_imagenet_main.py
<ide> from official.vision.image_classification import imagenet_preprocessing
<ide> from official.vision.image_classification import resnet_model
<ide> from official.vision.image_classification import trivial_model
<del>
<add>import pdb
<ide>
<ide... | 1 |
Javascript | Javascript | fix default encoding of lazytransform | 443691a5aef8a908bc4c6f63b1710eb988235674 | <ide><path>lib/internal/streams/lazy_transform.js
<ide>
<ide> const stream = require('stream');
<ide> const util = require('util');
<add>const crypto = require('crypto');
<ide>
<ide> module.exports = LazyTransform;
<ide>
<ide> util.inherits(LazyTransform, stream.Transform);
<ide> get: function() {
<ide> st... | 2 |
Python | Python | do the safety check before inserting eol | 30579e0f53264f3accf92697f1d243848f45cc88 | <ide><path>official/nlp/transformer/utils/tokenizer.py
<ide> def encode(self, raw_string, add_eos=False):
<ide> for token in tokens:
<ide> ret.extend(self._token_to_subtoken_ids(token))
<ide> if add_eos:
<add> assert EOS in self.subtoken_list, \
<add> "Can't append 'EOS' because it is not in... | 1 |
Text | Text | add tniessen to collaborators | 9b730620a741644d2df7b8c64559a6d2eea7c283 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Thorsten Lorenz** <thlorenz@gmx.de>
<ide> * [TimothyGu](https://github.com/TimothyGu) -
<ide> **Timothy Gu** <timothygu99@gmail.com> (he/him)
<add>* [tniessen](https://github.com/tniessen) -
<add>**Tobias Ni... | 1 |
Javascript | Javascript | add a deprecatedcallback helper | 8eddead8687f0acc68fb2e857a00260912600f06 | <ide><path>Libraries/Utilities/deprecatedCallback.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
<add> * ... | 1 |
Python | Python | add python 3.6 to package support | 4ec92c2bb68c29b04fa0da9195a4b3ed5fac8324 | <ide><path>setup.py
<ide> def run(self):
<ide> 'Programming Language :: Python :: 3.3',
<ide> 'Programming Language :: Python :: 3.4',
<ide> 'Programming Language :: Python :: 3.5',
<add> 'Programming Language :: Python :: 3.6',
<ide> 'Programming Language :: Python :: Implementat... | 1 |
Go | Go | define downloadoption type | 047e032461f9ef6226143b4768331b7f893d2572 | <ide><path>distribution/xfer/download.go
<ide> func (ldm *LayerDownloadManager) SetConcurrency(concurrency int) {
<ide> }
<ide>
<ide> // NewLayerDownloadManager returns a new LayerDownloadManager.
<del>func NewLayerDownloadManager(layerStore layer.Store, concurrencyLimit int, options ...func(*LayerDownloadManager)) *L... | 1 |
Python | Python | fix norm tests for single prec | 1cf5461fb0867179846c5f89bc5e91aba57fb242 | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def do(self, a):
<ide>
<ide> class _TestNorm(TestCase):
<ide> dt = None
<add> dec = None
<ide> def test_empty(self):
<ide> assert_equal(norm([]), 0.0)
<ide> assert_equal(norm(array([], dtype=self.dt)), 0.0)
<ide> def test_vector(self):
<ide>... | 1 |
Javascript | Javascript | add regex check in test-buffer-bad-overload | bae695f4f32cde9f21bc9c78c20ff253b2881b7a | <ide><path>test/parallel/test-buffer-bad-overload.js
<ide> assert.doesNotThrow(function() {
<ide>
<ide> assert.throws(function() {
<ide> Buffer.from(10, 'hex');
<del>});
<add>}, /^TypeError: "value" argument must not be a number$/);
<ide>
<ide> assert.doesNotThrow(function() {
<ide> Buffer.from('deadbeaf', 'hex')... | 1 |
Text | Text | remove trailing * | 6e4b37fffdfc324141aae9f86268db4e8ed7aeb0 | <ide><path>docs/sources/introduction/understanding-docker.md
<ide> Docker's portability and lightweight nature also make dynamically managing
<ide> workloads easy. You can use Docker to quickly scale up or tear down applications
<ide> and services. Docker's speed means that scaling can be near real time.
<ide>
<del>*A... | 1 |
Python | Python | enhance magic methods on xcomarg for ux | 1956f38276b982f7f0f72944d4fb8615ee55459f | <ide><path>airflow/models/xcom_arg.py
<ide> def __init__(self, operator: "Operator", key: str = XCOM_RETURN_KEY):
<ide> def __eq__(self, other):
<ide> return self.operator == other.operator and self.key == other.key
<ide>
<del> def __getitem__(self, item):
<add> def __getitem__(self, item: str) -> "X... | 2 |
PHP | PHP | add type to userfactory for generic parent class | 7bff7c6c61aa5865966cdd6cea93409771f97413 | <ide><path>database/factories/UserFactory.php
<ide>
<ide> namespace Database\Factories;
<ide>
<add>use App\Models\User;
<ide> use Illuminate\Database\Eloquent\Factories\Factory;
<ide> use Illuminate\Support\Str;
<ide>
<add>/**
<add> * @implements Factory<User>
<add> */
<ide> class UserFactory extends Factory
<ide> {... | 1 |
Python | Python | check textcat values for validity | 75bb7ad541a94c74127b57ffd6d674841767478c | <ide><path>spacy/errors.py
<ide> class Errors(metaclass=ErrorsWithCodes):
<ide> "during training, make sure to include it in 'annotating components'")
<ide>
<ide> # New errors added in v3.x
<add> E851 = ("The 'textcat' component labels should only have values of 0 or 1, "
<add> "but found... | 4 |
Ruby | Ruby | increase needs_network timeout and retry | 844fa3bbd5c1114a2edc1d28eb3e54e263b2b18b | <ide><path>Library/Homebrew/test/spec_helper.rb
<ide> config.default_retry_count = 2
<ide>
<ide> config.around(:each, :needs_network) do |example|
<del> example.run_with_retry retry: 3, retry_wait: 3
<add> example.metadata[:timeout] ||= 120
<add> example.run_with_retry retry: 5, retry_wait: 5
<i... | 1 |
Text | Text | add powershell oneliner to get windows version | 5fa7c2ab940789065383fb9aa879a9f12506eb67 | <ide><path>.github/ISSUE_TEMPLATE/1-bug-report.md
<ide> repo. https://github.com/nodejs/help
<ide> Please fill in as much of the template below as you're able.
<ide>
<ide> Version: output of `node -v`
<del>Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
<add>Platform: output of `uname -a` ... | 1 |
Text | Text | fix createclass reference | 8333b891e4fb8cc5f125b756372738100debc893 | <ide><path>docs/docs/reference-react.md
<ide> React components let you split the UI into independent, reusable pieces, and thi
<ide>
<ide> If you don't use ES6 classes, you may use this helper instead.
<ide>
<del> - [`createClass()`](#react.createclass)
<add> - [`createClass()`](#createclass)
<ide>
<ide> ### Creatin... | 1 |
Python | Python | allow "falsey" default arguments in cli parser | 37473d2dad584e2156c2a9804f4f3539d23d0a9a | <ide><path>airflow/cli/cli_parser.py
<ide> def error(self, message):
<ide> self.exit(2, f'\n{self.prog} command error: {message}, see help above.\n')
<ide>
<ide>
<add># Used in Arg to enable `None' as a distinct value from "not passed"
<add>_UNSET = object()
<add>
<add>
<ide> class Arg:
<ide> """Class to ... | 2 |
Javascript | Javascript | remove redundant assignment of isdestroyed | 42fcb478c6fb0e42678836df2eee2896eaebd382 | <ide><path>packages/container/lib/main.js
<ide> define("container",
<ide> @method destroy
<ide> */
<ide> destroy: function() {
<del> this.isDestroyed = true;
<ide>
<ide> for (var i=0, l=this.children.length; i<l; i++) {
<ide> this.children[i].destroy(); | 1 |
PHP | PHP | fix error where checkboxes could not be unchecked | 6911d4e565d4419c11f1baba198ff7ce6646ced2 | <ide><path>src/View/Widget/Checkbox.php
<ide> public function render(array $data, ContextInterface $context) {
<ide> 'name' => '',
<ide> 'value' => 1,
<ide> 'val' => null,
<del> 'checked' => false,
<ide> 'disabled' => false,
<ide> ];
<ide> if ($this->_isChecked($data)) {
<ide> public function render(a... | 2 |
Ruby | Ruby | add original_fullpath to env | 482ec2ac3f518c91544a3b3e92765eef41b91419 | <ide><path>railties/lib/rails/application.rb
<ide> def helpers_paths #:nodoc:
<ide> config.helpers_paths
<ide> end
<ide>
<add> def call(env)
<add> env["ORIGINAL_FULLPATH"] = build_original_fullpath(env)
<add> super(env)
<add> end
<add>
<ide> protected
<ide>
<ide> alias :build_middlewar... | 3 |
Javascript | Javascript | fix arguments order of comparsion functions | d6cc6ab0376d5dd6a644313154ad84d94be58b2d | <ide><path>test/parallel/test-http2-origin.js
<ide> const ca = readKey('fake-startcom-root-cert.pem', 'binary');
<ide> client.on('origin', mustCall((origins) => {
<ide> const check = checks.shift();
<ide> originSet.push(...check);
<del> deepStrictEqual(originSet, client.originSet);
<add> deepS... | 1 |
Text | Text | encourage use of ruby 1.9 syntax [ci skip] | 65be1a0e7a93b2f4e308739d55516be0c58543df | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> TIP: Changes that are cosmetic in nature and do not add anything substantial to
<ide>
<ide> Rails follows a simple set of coding style conventions.
<ide>
<add>* Use Ruby >= 1.9 syntax. Prefer `{ a: :b }` over `{ :a => :b }`.
<ide> * Two spaces, no tabs (... | 1 |
Ruby | Ruby | remove unused require | d7d2f2bb15646d5ed80e6aa225dfc0426b6a88ef | <ide><path>activesupport/lib/active_support/core_ext/date/conversions.rb
<ide> require 'date'
<ide> require 'active_support/inflector/methods'
<ide> require 'active_support/core_ext/date/zones'
<del>require 'active_support/core_ext/module/remove_method'
<ide>
<ide> class Date
<ide> DATE_FORMATS = { | 1 |
Python | Python | set version to v2.2.0.dev12 | d05eb56ce20195d841fbe817ab6aaf350bc5935a | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev11"
<add>__version__ = "2.2.0.dev12"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion" | 1 |
Text | Text | fix typo in changelog | 9f9e3c0653cdeef597e0f7bc2f5db9d85f8f2ffc | <ide><path>CHANGELOG.md
<ide> release.
<ide> <tr>
<ide> <td valign="top">
<ide> <b><a href="doc/changelogs/CHANGELOG_V8.md#8.1.2">8.1.2</a></b><br/>
<del><a href="doc/changelogs/CHANGELOG_V8.md#8.1.1">8.1.1</a>><br/>
<add><a href="doc/changelogs/CHANGELOG_V8.md#8.1.1">8.1.1</a><br/>
<ide> <a href="doc/changelogs/CH... | 1 |
PHP | PHP | copy the connection option onto a property | 2b0aadad7ef7c09080ec27ef39a1535ff4ba29f2 | <ide><path>src/Console/Command/Task/BakeTask.php
<ide> class BakeTask extends Shell {
<ide> */
<ide> public $connection = null;
<ide>
<del>/**
<del> * Flag for interactive mode
<del> *
<del> * @var boolean
<del> */
<del> public $interactive = false;
<del>
<ide> /**
<ide> * Disable caching and enable debug for bakin... | 1 |
Text | Text | complete the document content | 1ebb68053e17f9b88f1265390acdce20214f2afc | <ide><path>docs/reference/commandline/plugin_create.md
<ide> $ ls -ls /home/pluginDir
<ide> $ docker plugin create plugin /home/pluginDir
<ide> plugin
<ide>
<del>NAME TAG DESCRIPTION ENABLED
<del>plugin latest A sample plugin for Docker ... | 1 |
Mixed | Javascript | remove unnecessary await with return instances | 929f343bb3c2f7847711fed7ddb79ec5cf97f9b7 | <ide><path>doc/api/util.md
<ide> For example:
<ide> const util = require('util');
<ide>
<ide> async function fn() {
<del> return await Promise.resolve('hello world');
<add> return 'hello world';
<ide> }
<ide> const callbackFunction = util.callbackify(fn);
<ide>
<ide><path>test/common/inspector-helper.js
<ide> class... | 3 |
Ruby | Ruby | use latches rather than mucking with the scheduler | e5f0c0c548fd68a35902d4106130f099427aa98b | <ide><path>activerecord/test/cases/base_test.rb
<ide> require "cases/helper"
<add>require 'active_support/concurrency/latch'
<ide> require 'models/post'
<ide> require 'models/author'
<ide> require 'models/topic'
<ide> def test_default_values_are_deeply_dupped
<ide> orig_handler = klass.connection_handler
<ide> ... | 1 |
Text | Text | fix typo in code example of 'path' module | 14b0b4463e9dd2ba81e7c67b1c4a66f429ed7f0a | <ide><path>doc/api/path.md
<ide> On POSIX:
<ide>
<ide> ```js
<ide> path.basename('C:\\temp\\myfile.html');
<del>// Returns: 'C:\temp\myfile.html'
<add>// Returns: 'C:\\temp\\myfile.html'
<ide> ```
<ide>
<ide> On Windows: | 1 |
PHP | PHP | fix cs errors | 7ba2e7d3cea2e4979d182f736a0d6acce5523e2b | <ide><path>src/I18n/DateFormatTrait.php
<ide> public function __debugInfo(): array
<ide> return [
<ide> 'time' => $this->format('Y-m-d\TH:i:s.uP'),
<ide> 'timezone' => $this->getTimezone()->getName(),
<del> 'fixedNowTime' => static::hasTestNow() ? static::getTestNow()->format(... | 5 |
Javascript | Javascript | delete an unused argument | 2e91d8d4839f589159d438402cb164d3409ca919 | <ide><path>tools/jslint.js
<ide> if (cluster.isMaster) {
<ide>
<ide> if (showProgress) {
<ide> // Start the progress display update timer when the first worker is ready
<del> cluster.once('online', function(worker) {
<add> cluster.once('online', function() {
<ide> startTime = process.hrtime();
<ide> ... | 1 |
Javascript | Javascript | remove modifcation to common.port | bddfe63049c4c0664ef6c7c4458bd373f1e02e4a | <ide><path>test/fixtures/clustered-server/app.js
<ide> if (cluster.isMaster) {
<ide> }
<ide> } else {
<ide> var server = http.createServer(handleRequest);
<del> server.listen(common.PORT+1000);
<add> server.listen(common.PORT);
<ide> }
<ide><path>test/parallel/test-debug-port-cluster.js
<ide> const common = requi... | 3 |
PHP | PHP | get debugger tests passing with minor updates | 65123b3aa097ff863cd8873ca690e200cb67e051 | <ide><path>src/Error/Debugger.php
<ide> use Cake\Error\DumpNode\PropertyNode;
<ide> use Cake\Error\DumpNode\ReferenceNode;
<ide> use Cake\Error\DumpNode\ScalarNode;
<add>use Cake\Error\DumpNode\SpecialNode;
<ide> use Cake\Log\Log;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Security;
<ide> protected static func... | 11 |
Text | Text | fix typo in model name | a4faeceaedb30f08fd75fc1cb67709dc8076fbd4 | <ide><path>README.md
<ide> To download and use any of the pretrained models on your given task, you just ne
<ide> >>> from transformers import AutoTokenizer, AutoModel
<ide>
<ide> >>> tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
<del>>>> model = AutoModel.from_pretrained("bert_base_uncased")
<add>>>>... | 1 |
PHP | PHP | start tests for csrfcomponent | d2bd36b9f50ca15f8d57dc63501d1e6c820d91ad | <ide><path>Cake/Test/TestCase/Controller/Component/CsrfComponentTest.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright a... | 1 |
Javascript | Javascript | fix build failures | 638bb78ecbe3ae9379f362ef30a5f36fd56a556f | <ide><path>spec/text-editor-element-spec.js
<ide> describe('TextEditorElement', () => {
<ide> )
<ide>
<ide> describe('::getDefaultCharacterWidth', () => {
<del> it('returns null before the element is attached', () => {
<add> it('returns 0 before the element is attached', () => {
<ide> const element = b... | 2 |
Javascript | Javascript | require wintersmith when needed | cffe0fd15a446150ccddcd7241a8665663e0a019 | <ide><path>make.js
<ide> require('./external/shelljs/make');
<ide> var builder = require('./external/builder/builder.js');
<ide> var crlfchecker = require('./external/crlfchecker/crlfchecker.js');
<del>var wintersmith = require('wintersmith');
<ide> var path = require('path');
<ide> var fs = require('fs');
<ide>
<ide>... | 1 |
Go | Go | remove unnessary abstraction deepequal | fa753e67ae2bf573c9dfb1da1e1135c5ef5ef415 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> import (
<ide> "os/exec"
<ide> "path"
<ide> "path/filepath"
<add> "reflect"
<ide> "regexp"
<ide> "strings"
<ide> "syscall"
<ide> func TestBuildWithVolumes(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide>
<del> equal := deepEqual(&expected, &result)
<ad... | 3 |
Python | Python | add ms_win64 for every compile command | e09cd4df81906bbeb58f9fbe410cbf308324dc55 | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def __init__ (self,
<ide> # % (self.linker, entry_point))
<ide> if get_build_architecture() == 'AMD64':
<ide> self.set_executables(
<del> compiler='gcc -mno-cygwin -O0 -Wall',
<del> ... | 1 |
Python | Python | add importorskip for japanese fixture | 95050201ce095e2328be383beec3025a5e64fb0a | <ide><path>spacy/tests/conftest.py
<ide> def ja_tokenizer():
<ide>
<ide> @pytest.fixture
<ide> def japanese():
<add> pytest.importorskip("MeCab")
<ide> return Japanese()
<ide>
<ide> @pytest.fixture | 1 |
Python | Python | add worker component that starts actors | f1c93a6d47efbc0ec9fdbb5e293c514263ee73a4 | <ide><path>celery/worker/actorsbootstrap.py
<add>
<add>import bootsteps
<add>from cell import Actor
<add>from celery.utils.imports import instantiate
<add>from kombu.utils import uuid
<add>from .bootsteps import StartStopComponent
<add>from celery.utils.log import get_logger
<add>
<add>logger = get_logger(__name__)
<ad... | 1 |
Ruby | Ruby | fix sqlite migrations with custom primary keys | 5ac4f4d2563e7f9c5ffaecce4be4b9e2c5b0c081 | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
<ide> def move_table(from, to, options = {}, &block)
<ide>
<ide> def copy_table(from, to, options = {})
<ide> from_primary_key = primary_key(from)
<add> from_primary_key_column = columns(from).select { |column| ... | 2 |
Mixed | Javascript | invoke callback before emitting error always | 3de5eae6dbe503485b95bdeb8bddbd67e4613d59 | <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, ... | 8 |
Go | Go | remove version package from api types | 9961816adead89622f5d4201a0b5cb33845fa852 | <ide><path>api/client/version.go
<ide> import (
<ide> Cli "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/dockerversion"
<ide> flag "github.com/docker/docker/pkg/mflag"
<del> "github.com/docker/docker/pkg/version"
<ide> "github.com/docker/docker/utils"
<ide> )
<ide>
<ide> func (cli *DockerCli) CmdVe... | 3 |
Javascript | Javascript | fix redeclared vars in sequential tests | 5ea1e7d55f53ced843ff7fcb3d2d266ed117d802 | <ide><path>test/sequential/test-child-process-execsync.js
<ide> var msgBuf = new Buffer(msg + '\n');
<ide>
<ide> cmd = `"${process.execPath}" -e "console.log(\'${msg}\');"`;
<ide>
<del>var ret = execSync(cmd);
<add>ret = execSync(cmd);
<ide>
<ide> assert.strictEqual(ret.length, msgBuf.length);
<ide> assert.deepEqual... | 3 |
Python | Python | add tests for dtype and out | d7bc29c1382cc31f3bc177f9ff6672d3f73e3076 | <ide><path>numpy/typing/tests/data/pass/random.py
<ide> D_2D_like: List[List[float]] = [[1, 2], [2, 3], [3, 4], [4, 5.1]]
<ide> D_2D: np.ndarray[Any, np.dtype[np.float64]] = np.array(D_2D_like)
<ide>
<add>S_out: np.ndarray[Any, np.dtype[np.float32]] = np.empty(1, dtype=np.float32)
<add>D_out: np.ndarray[Any, np.dtype[... | 2 |
Javascript | Javascript | provide proper deprecation code | ba944b16972c4b248e946d4bacb2141e5ef7eba9 | <ide><path>lib/async_hooks.js
<ide> function showEmitBeforeAfterWarning() {
<ide> process.emitWarning(
<ide> 'asyncResource.emitBefore and emitAfter are deprecated. Please use ' +
<ide> 'asyncResource.runInAsyncScope instead',
<del> 'DeprecationWarning', 'DEP00XX');
<add> 'DeprecationWarning',... | 1 |
Go | Go | fix empty withversion blocking version negotiation | 0041e2419a504a32b340de0b8f65870cb8542090 | <ide><path>client/client_test.go
<ide> func TestNegotiateAPVersionOverride(t *testing.T) {
<ide> assert.Check(t, is.Equal(expected, client.version))
<ide> }
<ide>
<add>// TestNegotiateAPIVersionWithEmptyVersion asserts that initializing a client
<add>// with an empty version string does still allow API-version negoti... | 2 |
Ruby | Ruby | improve the docs for ordered options | d091b9ccee20cf77153a60cf6445ff2fbfb8bb45 | <ide><path>activesupport/lib/active_support/ordered_options.rb
<ide> require "active_support/core_ext/object/blank"
<ide>
<ide> module ActiveSupport
<del> # Usually key value pairs are handled something like this:
<add> # +OrderedOptions+ inherits from +Hash+ and provides dynamic accessor methods.
<add> #
<add> # ... | 1 |
PHP | PHP | add context() to cakesocket | 9e725641ad50cf083924a54f74e46cf6a7e8eac0 | <ide><path>lib/Cake/Network/CakeSocket.php
<ide> public function connect() {
<ide> }
<ide>
<ide> $scheme = null;
<del> if (isset($this->config['request']) && $this->config['request']['uri']['scheme'] == 'https') {
<add> if (isset($this->config['request']['uri']) && $this->config['request']['uri']['scheme'] == 'h... | 2 |
Go | Go | fix docker cp when container source is / | 171538c190ee3a1a8211946ab8fa78cdde54b47a | <ide><path>daemon/archive.go
<ide> func (daemon *Daemon) containerArchivePath(container *container.Container, path
<ide> if driver.Base(resolvedPath) == "." {
<ide> resolvedPath += string(driver.Separator()) + "."
<ide> }
<del> sourceDir, sourceBase := driver.Dir(resolvedPath), driver.Base(resolvedPath)
<add>
<add>... | 1 |
Python | Python | add visualbert type hints | 9947dd077c1dd3a4e220b1846ed38f475641e21d | <ide><path>src/transformers/models/visual_bert/modeling_visual_bert.py
<ide>
<ide> import math
<ide> from dataclasses import dataclass
<del>from typing import Optional, Tuple
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> class PreTrainedModel
<ide> ... | 1 |
Javascript | Javascript | fix typo in a comment | 5cec4612c49dc729df2b82f5f8c0d60b6e9f60d5 | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide> nextBlockMap[trackById] = block;
<ide> nextBlockOrder[index] = block;
<ide> } else if (nextBlockMap[trackById]) {
<del> // id collision det... | 1 |
Go | Go | improve client output | 8742649aa7f3524bbfa99b68c8d87ffc5aba0af9 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> // FIXME: ProgressReader shouldn't be this annoyning to use
<ide> if context != nil {
<ide> sf := utils.NewStreamFormatter(false)
<del> body = utils.ProgressReader(ioutil.NopCloser(context), 0, cli.err, sf.FormatProgress("Upl... | 4 |
PHP | PHP | reduce options for bootstrapping | caa6b8d13ac0067d57e4f44444e344c80aa89540 | <ide><path>lib/Cake/Core/Plugin.php
<ide> class Plugin {
<ide> *
<ide> * Will load routes.php file but not bootstrap.php
<ide> *
<del> * `Plugin::load('DebugKit', ['bootstrap' => ['config1', 'config2']])
<del> *
<del> * Will load config1.php and config2.php files
<del> *
<del> * `Plugin::load('DebugKit', ['bootstrap... | 2 |
Ruby | Ruby | avoid multiple default paths to server.pid file | 221b4aead579ebae28477e889a7ee68a6668b0fa | <ide><path>railties/lib/rails/commands/server.rb
<ide> module Rails
<ide> class Server < ::Rack::Server
<ide> class Options
<add> DEFAULT_PID_PATH = File.expand_path("tmp/pids/server.pid").freeze
<add>
<ide> def parse!(args)
<ide> args, options = args.dup, {}
<ide>
<ide> def default_options
<i... | 2 |
Mixed | Javascript | add fundamentals overview page | cc26cd50c75da96a1655118b5b14877864c2ea7b | <ide><path>docs/tutorials/fundamentals/part-1-overview.md
<add>---
<add>id: part-1-overview
<add>title: 'Redux Fundamentals, Part 1: Redux Overview'
<add>sidebar_label: 'Redux Overview'
<add>hide_title: true
<add>description: 'The official Fundamentals tutorial for Redux: learn the fundamentals of using Redux'
<add>---... | 2 |
Go | Go | remove restartmanager from plugins | a452d1fccb6d515545dacd4bebfa36cbf70a6535 | <ide><path>plugin/manager.go
<ide> type eventLogger func(id, name, action string)
<ide>
<ide> // Manager controls the plugin subsystem.
<ide> type Manager struct {
<del> sync.RWMutex
<ide> libRoot string
<ide> runRoot string
<ide> pluginStore *store.Store
<ide> containerdClient libcontai... | 4 |
Javascript | Javascript | remove added useractivity_ to global | 491b9b232b73dc28946dc4cc8372c7810918e5b1 | <ide><path>src/js/player.js
<ide> vjs.Player.prototype.listenForUserActivity = function(){
<ide> var onMouseActivity, onMouseDown, mouseInProgress, onMouseUp,
<ide> activityCheck, inactivityTimeout;
<ide>
<del> onMouseActivity = this.reportUserActivity;
<add> onMouseActivity = vjs.bind(this, this.reportUserA... | 1 |
PHP | PHP | fix tests that were failing with 3.next merge | 30b9bf0db0c7d6f033c658335d1bf250030cdeef | <ide><path>src/Controller/Controller.php
<ide> public function getPlugin(): ?string
<ide> /**
<ide> * Sets the plugin name.
<ide> *
<del> * @param string $name Plugin name.
<add> * @param string|null $name Plugin name.
<ide> * @return $this
<ide> * @since 3.6.0
<ide> */
<del> pub... | 5 |
Ruby | Ruby | update concerned tests | 411e499677981ef649c000a36f5a805516096c3e | <ide><path>railties/test/generators/app_generator_test.rb
<ide> app/assets/stylesheets
<ide> app/assets/images
<ide> app/controllers
<add> app/controllers/concerns
<ide> app/helpers
<ide> app/mailers
<ide> app/models
<add> app/models/concerns
<ide> app/views/layouts
<ide> config/environments
<ide> c... | 1 |
Python | Python | correct parser.py use_upper param info | 5d0cc0d2ab6dab6f11d8b67282442cfbea6a0263 | <ide><path>spacy/ml/models/parser.py
<ide> def build_tb_parser_model(
<ide> non-linearity if use_upper=False.
<ide> use_upper (bool): Whether to use an additional hidden layer after the state
<ide> vector in order to predict the action scores. It is recommended to set
<del> this to False for ... | 1 |
Go | Go | use prefix naming for docker_cli_run_test.go | aa536b27a7897373384ab0335c44f44b0bb83455 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide> )
<ide>
<ide> // "test123" should be printed by docker run
<del>func TestDockerRunEchoStdout(t *testing.T) {
<add>func TestRunEchoStdout(t *testing.T) {
<ide> runCmd := exec.Command(dockerBinary, "run", "busybox", "echo", "test123")
<ide> out, _,... | 1 |
Text | Text | remove es6/ecmascript 2015 from buffer.md | a2ffdc9e9b7b7978c87bdf6577dc6b53cfb81b75 | <ide><path>doc/api/buffer.md
<ide>
<ide> > Stability: 2 - Stable
<ide>
<del>Prior to the introduction of [`TypedArray`] in [`ECMAScript 2015`] (ES6), the
<del>JavaScript language had no mechanism for reading or manipulating streams
<del>of binary data. The `Buffer` class was introduced as part of the Node.js
<del>API... | 1 |
Ruby | Ruby | remove unused code | 95d059720b4438ed650aac09e12bce2f7780ec9a | <ide><path>activesupport/test/multibyte_conformance_test.rb
<ide> def test_normalizations_KD
<ide>
<ide> protected
<ide> def each_line_of_norm_tests(&block)
<del> lines = 0
<del> max_test_lines = 0 # Don't limit below 38, because that's the header of the testfile
<ide> File.open(File.join(CACHE_D... | 1 |
Ruby | Ruby | stop ddl modifications for another test | 86a73cd8492380eebaa6844dd3ba9924460a0e67 | <ide><path>activerecord/test/cases/migration_test.rb
<ide> def migrate(x); raise 'Something broke'; end
<ide> refute Person.column_methods_hash.include?(:last_name)
<ide> end
<ide>
<del> def test_only_loads_pending_migrations
<del> # migrate up to 1
<del> ActiveRecord::SchemaMigration.create!(:version => ... | 2 |
Javascript | Javascript | fix broken images | 808d6b94eb8d806e60bc46623e61996e8e0348d9 | <ide><path>examples/with-framer-motion/components/Gallery.js
<ide> const Thumbnail = ({ id, i }) => (
<ide> >
<ide> <Link href="/image/[index]" as={`/image/${i}`} scroll={false}>
<ide> <motion.img
<del> src={`https://static1.squarespace.com/static/5b475b2c50a54f54f9b4e1dc/t/${id}.jpg?... | 4 |
Go | Go | add newlines to formatprogress for json as well | e98b8e08575d28e4cc15fbd64111c42b86841e4c | <ide><path>pkg/streamformatter/streamformatter.go
<ide> func (sf *StreamFormatter) FormatProgress(id, action string, progress *jsonmessa
<ide> if err != nil {
<ide> return nil
<ide> }
<del> return b
<add> return append(b, streamNewlineBytes...)
<ide> }
<ide> endl := "\r"
<ide> if progress.String() == "" { | 1 |
Go | Go | improve error reporting | edd67fd4ad961f0782f1f94e6a26c95810dd037e | <ide><path>api/client/node/tasks.go
<ide> import (
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/opts"
<ide> "github.com/docker/engine-api/types"
<del> "github.com/docker/engine-api/types/swarm"
<ide> "github.com/spf13/cobra"
<ide> )
<ide>
<ide> type tasksOptions struct {
<ide> nodeID st... | 3 |
Javascript | Javascript | fix typo to pass travis build | 7022795f9dd7babc50b2e6fc039ec3f9781f5da9 | <ide><path>lang/ms-my.js
<ide> require('../moment').lang('ms-my', {
<ide> months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),
<ide> monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
<del> weekdays : "Minggu_Isnin_Selasa_Rabu_Khami... | 2 |
Ruby | Ruby | fix state leaks in actionmailer/test/base_test.rb | 1401637e3f9836d6a9d41f81dc722edcb1017bc4 | <ide><path>actionmailer/test/base_test.rb
<ide> require 'mailers/asset_mailer'
<ide>
<ide> class BaseTest < ActiveSupport::TestCase
<del> def teardown
<del> ActionMailer::Base.asset_host = nil
<del> ActionMailer::Base.assets_dir = nil
<del> ActionMailer::Base.preview_interceptors.clear
<add> setup do
<add> ... | 1 |
Java | Java | fix failing test | e12fcca1e3e4d3e8c676dcf3cee94311a4161cbe | <ide><path>spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ResponseEntityTests.java
<ide> public void entityStream() {
<ide> .accept(TEXT_EVENT_STREAM)
<ide> .exchange()
<ide> .expectStatus().isOk()
<del> .expectHeader().contentType(TEXT_EVENT_STREAM)
<add> .expectHeader... | 1 |
Ruby | Ruby | fix path to livecheck watchlist | 3b65ecaf4caa608e4cf31684edc767b2b320ae4b | <ide><path>Library/Homebrew/dev-cmd/livecheck.rb
<ide> module Homebrew
<ide>
<ide> module_function
<ide>
<del> WATCHLIST_PATH = (
<del> Homebrew::EnvConfig.livecheck_watchlist ||
<del> "#{Dir.home}/.brew_livecheck_watchlist"
<del> ).freeze
<add> WATCHLIST_PATH = File.expand_path(Homebrew::EnvConfig.liveche... | 2 |
Javascript | Javascript | add test for | c82828ec278c3792ada33d60414da76c3d20b6b1 | <ide><path>test/simple/test-readdir.js
<ide> process.addListener('exit', function() {
<ide> assert.equal(false, got_error);
<ide> console.log('exit');
<ide> });
<add>
<add>
<add>// readdir() on file should throw ENOTDIR
<add>// https://github.com/joyent/node/issues/1869
<add>(function() {
<add> var has_caught = fa... | 1 |
Python | Python | use two different tokenizers for storyand summary | 47a06d88a00c59ea1fb54e92178b3f5d2e8e8973 | <ide><path>examples/run_seq2seq_finetuning.py
<ide> import torch
<ide> from torch.utils.data import Dataset
<ide>
<del>from transformers import BertTokenizer
<add>from transformers import AutoTokenizer, Model2Model
<ide>
<ide> logger = logging.getLogger(__name__)
<ide>
<ide> class TextDataset(Dataset):
<ide> [2]... | 1 |
Python | Python | fix sorting function | bd5c7770e20516fe1697f0aa2d71ee9d2763a9a5 | <ide><path>contrib/scrape-ec2-prices.py
<ide> def sort_key_by_numeric_other(key_value):
<ide> """
<ide> Split key into numeric, alpha and other part and sort accordingly.
<ide> """
<del> return tuple((
<del> int(numeric) if numeric else None,
<del> INSTANCE_SIZES.index(alpha) if alpha in IN... | 1 |
PHP | PHP | add missing import | 2a803ea412b36467eea68e8fe54cb7292aa48ee1 | <ide><path>lib/Cake/TestSuite/CakeTestRunner.php
<ide> */
<ide> require_once 'PHPUnit/TextUI/TestRunner.php';
<ide>
<add>App::uses('CakeFixtureManager', 'TestSuite/Fixture');
<add>
<ide> /**
<ide> * A custom test runner for Cake's use of PHPUnit.
<ide> * | 1 |
Javascript | Javascript | internalize native module | 74859c7f0ddc4f08a0229adf0d23d4347b3bd06b | <ide><path>Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js
<del>/**
<del> * Copyright (c) Meta Platforms, Inc. and affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @flow
<del> * @... | 1 |
PHP | PHP | modify the cache.php docblocks | 3adc2196f79fa4d8470d41d5a7584f2b0432a6fc | <ide><path>config/cache.php
<ide> | using this caching library. This connection is used when another is
<ide> | not explicitly specified when executing a given caching function.
<ide> |
<del> | Supported: "apc", "array", "database", "file",
<del> | "memcached", "redis", "dynamodb"
<del> ... | 1 |
Text | Text | fix broken link in fs.md | e0a3faeff7cde1fa183a6efc3a3b3167deabd420 | <ide><path>doc/api/fs.md
<ide> the file contents.
<ide> [`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
<ide> [`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw
<id... | 1 |
Text | Text | rename this tip to be less confusing | 7640e5310219577ab4a9f8ea3b2683623632fc3b | <ide><path>docs/tips/10-props-in-getInitialState-as-anti-pattern.md
<ide> ---
<ide> id: props-in-getInitialState-as-anti-pattern
<del>title: Props in getInitialState Is an Anti-Pattern
<add>title: Using state to cache calculations is an antipattern
<ide> layout: tips
<ide> permalink: props-in-getInitialState-as-anti-pa... | 1 |
Text | Text | add link to chartjs-plugin-waterfall | 95d7d8c20df4377c238224654037e2f4886823a8 | <ide><path>docs/notes/extensions.md
<ide> In addition, many charts can be found on the [npm registry](https://www.npmjs.co
<ide> - <a href="https://github.com/chartjs/chartjs-plugin-deferred" target="_blank">chartjs-plugin-deferred</a> - Defers initial chart update until chart scrolls into viewport.
<ide> - <a href="... | 1 |
Text | Text | fix the wrong name of assertionerror | 6b57a51b5469e1c639bc067373c0a985a9462b9a | <ide><path>doc/api/assert.md
<ide> try {
<ide> } catch (err) {
<ide> assert(err instanceof assert.AssertionError);
<ide> assert.strictEqual(err.message, message);
<del> assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]');
<add> assert.strictEqual(err.name, 'AssertionError');
<ide> assert.strictEqual(... | 1 |
Javascript | Javascript | pass segment hash from js to java | 3ea899f3fb8e3c4153f54980855dfd68c50a6b35 | <ide><path>Libraries/Core/setUpSegmentFetcher.js
<ide> export type GetSegmentFunction = typeof __getSegment;
<ide>
<ide> function __fetchSegment(
<ide> segmentId: number,
<del> options: {|
<del> +otaBuildNumber: ?string,
<del> +requestedModuleName?: ?string,
<del> |},
<add> options: $ReadOnly<{
<add> ota... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.