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 |
|---|---|---|---|---|---|
Python | Python | fix syntax error in setup.py | 535833a38de02ae544f83ec001154ac6dfd8f33d | <ide><path>setup.py
<ide> def setup_package():
<ide> 'plac<1.0.0,>=0.9.6',
<ide> 'pathlib',
<ide> 'ujson>=1.35',
<del> 'dill>=0.2,<0.3',
<add> 'dill>=0.2,<0.3'],
<ide> setup_requires=['wheel'],
<ide> classifiers=[
<ide... | 1 |
Text | Text | update 3 chinese challenges | a9092776b5d637595b068dda93d69b0ff8ee320a | <ide><path>curriculum/challenges/chinese/05-apis-and-microservices/apis-and-microservices-projects/url-shortener-microservice.md
<ide> tests:
<ide> </section>
<ide>
<ide> ## Challenge Seed
<del><section id='challengeSeed'
<add><section id='challengeSeed'>
<ide>
<ide> </section>
<ide>
<ide><path>curriculum/challenges... | 3 |
Text | Text | fix the typo of link in devmapper | f7701d90a94922fa6854cc80b2218392d6a4ac76 | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> This uses the `dm` prefix and would be used something like `docker daemon --stor
<ide>
<ide> These options are currently documented both in [the man
<ide> page](../../../man/docker.1.md) and in [the online
<del>documentation](https://docs.docker.com/reference/com... | 1 |
Python | Python | add example using tensorboard standalone projector | 4eeb1788562a31af4e910a3288b5abcd55e4c870 | <ide><path>examples/vectors_tensorboard_standalone.py
<add>#!/usr/bin/env python
<add># coding: utf8
<add>"""Export spaCy model vectors for use in TensorBoard's standalone embedding projector.
<add>https://github.com/tensorflow/embedding-projector-standalone
<add>
<add>Usage:
<add>
<add> python vectors_tensorboard_stan... | 1 |
Javascript | Javascript | add test for exception handlings in debugger | eda2498dfd2595c313d155bc85a44ea60c3e43f0 | <ide><path>test/parallel/test-debugger-invalid-json.js
<add>'use strict';
<add>const common = require('../common');
<add>const startCLI = require('../common/debugger');
<add>
<add>common.skipIfInspectorDisabled();
<add>
<add>const assert = require('assert');
<add>const http = require('http');
<add>
<add>const host = '1... | 1 |
Ruby | Ruby | recognize xcode 5.1 and clt 5.1 | 5bd5e055415c31d13cd96742a4109e35b9523502 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def preferred_arch
<ide> "5.0" => { :clang => "5.0", :clang_build => 500 },
<ide> "5.0.1" => { :clang => "5.0", :clang_build => 500 },
<ide> "5.0.2" => { :clang => "5.0", :clang_build => 500 },
<add> "5.1" => { :clang => "5.1", :clang_build => 503 }... | 2 |
Javascript | Javascript | improve the cleanup functionality for thumbnails | 1a22836dcbc404bda6057d47427cec0a9aa6cf1e | <ide><path>web/pdf_thumbnail_view.js
<ide> class PDFThumbnailView {
<ide> }
<ide> });
<ide> }
<del>
<del> static cleanup() {
<del> TempImageFactory.destroyCanvas();
<del> }
<ide> }
<ide>
<del>export { PDFThumbnailView };
<add>export { PDFThumbnailView, TempImageFactory };
<ide><path>web/pdf_thumbnail_... | 2 |
Python | Python | fix typo in package command message (closes ) | 270fcfd925cb71c77038a50cec76347d07471493 | <ide><path>spacy/cli/package.py
<ide> def generate_meta(model_path, existing_meta):
<ide> meta['vectors'] = {'width': nlp.vocab.vectors_length,
<ide> 'vectors': len(nlp.vocab.vectors),
<ide> 'keys': nlp.vocab.vectors.n_keys}
<del> prints(Messages.M047, title=Messages... | 1 |
Mixed | Text | add option to auto-configure blkdev for devmapper | 5ef07d79c4712d5b1ff4f0c896932ea8902a129c | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> The device mapper graphdriver uses the device mapper thin provisioning
<ide> module (dm-thinp) to implement CoW snapshots. The preferred model is
<ide> to have a thin pool reserved outside of Docker and passed to the
<del>daemon via the `--storage-opt dm.thinpoold... | 5 |
Javascript | Javascript | restore properties correctly | 1f8c70bd0af18afbfb20517b76c8752625872e3f | <ide><path>packages/ember-metal/lib/watch_key.js
<ide> export function watchKey(obj, keyName, meta) {
<ide>
<ide>
<ide> if (isEnabled('mandatory-setter')) {
<add> // Future traveler, although this code looks scary. It merely exists in
<add> // development to aid in development asertions. Production builds of
<add> ... | 2 |
Text | Text | add a missing period | 11b308adc399277a4407c44ccecf8b2f392f0f39 | <ide><path>curriculum/challenges/english/05-back-end-development-and-apis/managing-packages-with-npm/remove-a-package-from-your-dependencies.md
<ide> You have now tested a few ways you can manage dependencies of your project by us
<ide>
<ide> But what if you want to remove an external package that you no longer need? ... | 1 |
Python | Python | fix typo at datasets/cifar10.py | d47d046ec69105dc814a014263037e6b1e21daa5 | <ide><path>slim/datasets/cifar10.py
<ide> """Provides data for the Cifar10 dataset.
<ide>
<ide> The dataset scripts used to create the dataset can be found at:
<del>tensorflow/models/slim/data/create_cifar10_dataset.py
<add>tensorflow/models/slim/datasets/download_and_convert_cifar10.py
<ide> """
<ide>
<ide> from __f... | 1 |
Ruby | Ruby | ask the formula object for the opt path | 87e77350125602e6114e43ccc349f0287f8f5349 | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def gcc_version_formula(name)
<ide> version = name[GNU_GCC_REGEXP, 1]
<ide> gcc_version_name = "gcc#{version.delete('.')}"
<ide>
<del> if HOMEBREW_PREFIX.join("opt", "gcc", "bin", name).exist?
<del> Formulary.factory("gcc")
<add> gcc = Formulary... | 1 |
Python | Python | revise backend tests for dtype | d789bd94a3a1bdc18390b8bff742936dcc70c54f | <ide><path>tests/keras/backend/backend_test.py
<ide> import warnings
<ide>
<ide> from keras import backend as K
<del>from keras.backend import floatx, set_floatx, variable
<ide> from keras.utils.conv_utils import convert_kernel
<ide> from keras.backend import numpy_backend as KNP
<ide>
<ide>
<ide>
<ide> def check_d... | 1 |
Java | Java | add single.delay overload that delays errors | ad8ca8e587be6f7836e5c76707248ac955af54e3 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Flowable<T> concatWith(SingleSource<? extends T> other) {
<ide> }
<ide>
<ide> /**
<del> * Delays the emission of the success or error signal from the current Single by
<del> * the specified amount.
<add> * Delays the emission of t... | 4 |
Python | Python | handle complex special values and negative zero | 0d3aeb0dde468a15ad15a44017842115bc3313e4 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_non_numeric(self):
<ide> self._assert_func('ab', 'ab')
<ide> self._test_not_equal('ab', 'abb')
<ide>
<add> def test_complex_item(self):
<add> self._assert_func(complex(1, 2), complex(1, 2))
<add> self._assert_func(complex(1, n... | 2 |
Go | Go | memoize seccomp value for sysinfo | df7031b669a9224b1409213fd01bee4722eae895 | <ide><path>pkg/sysinfo/sysinfo_linux.go
<ide> import (
<ide> "os"
<ide> "path"
<ide> "strings"
<add> "sync"
<ide>
<ide> "github.com/opencontainers/runc/libcontainer/cgroups"
<ide> "github.com/sirupsen/logrus"
<ide> func applyCgroupNsInfo(info *SysInfo, _ map[string]string) []string {
<ide> return warnings
<ide> ... | 1 |
Go | Go | reuse a single devicesetdm for all the tests | 52294192b2a008b624862701cbf8491ad19b0798 | <ide><path>runtime_test.go
<ide> func TestRestore(t *testing.T) {
<ide>
<ide> // Here are are simulating a docker restart - that is, reloading all containers
<ide> // from scratch
<del> runtime2, err := NewRuntimeFromDirectory(runtime1.root, devmapper.NewDeviceSetDM(runtime1.root), false)
<add> runtime2, err := NewR... | 2 |
Javascript | Javascript | handle goal reached 🎉 | 2e578a7af828c9ee199e6cf0eb17263336992486 | <ide><path>client/src/components/Supporters.js
<ide> const supportersLocale = supporterGoal.toLocaleString();
<ide>
<ide> function Supporters({ isDonating, activeDonations }) {
<ide> const donationsLocale = activeDonations.toLocaleString();
<add> const isGoalReached = activeDonations >= supporterGoal;
<ide> retur... | 1 |
Python | Python | set version to 2.1.0 | f0c1efcb00177345b8d08821ae24591707306164 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.1.0.dev1"
<add>__version__ = "2.1.0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Javascript | Javascript | evaluate stuff for renaming to capture more cases | 23d28ddd43285392c4cbe6a79dc598619ac9fd7c | <ide><path>lib/Parser.js
<ide> Parser.prototype.initializeEvaluating = function() {
<ide> if(expr.operator == "&&") {
<ide> var left = this.evaluateExpression(expr.left);
<ide> var leftAsBool = left && left.asBool();
<del> if(leftAsBool === false) return new BasicEvaluatedExpression().setBoolean(false).setRan... | 2 |
Javascript | Javascript | fix exception when starting to drag text | e99545ee419838d56310c79806836c0e4136f3d0 | <ide><path>spec/dock-spec.js
<ide> describe('Dock', () => {
<ide> })
<ide> })
<ide>
<del> describe('when dragging an item over an empty dock', () => {
<del> it('has the preferred size of the item', () => {
<add> describe('drag handling', () => {
<add> it('expands docks to match the preferred size of the ... | 2 |
PHP | PHP | remove lies in doc blocks | 5f95a813c634288327c60ba548fc5d5ae6e2e3e1 | <ide><path>Cake/Cache/Engine/WincacheEngine.php
<ide> class WincacheEngine extends CacheEngine {
<ide> *
<ide> * @param array $config array of setting for the engine
<ide> * @return boolean True if the engine has been successfully initialized, false if not
<del> * @see CacheEngine::__defaults
<ide> */
<ide> public... | 1 |
Go | Go | extract code from exportchanges to addtarfile() | 5b77e51e0a15eddefcb40380673df8c0c24f95d1 | <ide><path>archive/archive.go
<ide> import (
<ide> "path/filepath"
<ide> "strings"
<ide> "syscall"
<add> "time"
<ide> )
<ide>
<ide> type Archive io.Reader
<ide> func (compression *Compression) Extension() string {
<ide> return ""
<ide> }
<ide>
<add>func addTarFile(path, name string, tw *tar.Writer) error {
<add> ... | 2 |
Text | Text | remove dynamic assetprefix from docs | 2a70b268c8184918bd217e78cc9449edaccb4224 | <ide><path>docs/advanced-features/custom-server.md
<ide> module.exports = {
<ide> > Note that `useFileSystemPublicRoutes` simply disables filename routes from SSR; client-side routing may still access those paths. When using this option, you should guard against navigation to routes you do not want programmatically.
<i... | 1 |
Mixed | Ruby | remove deprecated assertion files | 92e27d30d8112962ee068f7b14aa7b10daf0c976 | <ide><path>actionpack/CHANGELOG.md
<add>* Remove deprecated assertion files.
<add>
<add> *Rafael Mendonça França*
<add>
<ide> * Remove deprecated usage of string keys in URL helpers.
<ide>
<ide> *Rafael Mendonça França*
<ide><path>actionpack/lib/action_dispatch/testing/assertions/dom.rb
<del>require 'active... | 4 |
Java | Java | adapt test to changes in rsocket java | 2002a1689a544bd49001062afcde7564ce010cea | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilderTests.java
<ide> public Flux<ByteBuf> receive() {
<ide> return Flux.empty();
<ide> }
<ide>
<add> @Override
<add> public ByteBufAllocator alloc() {
<add> return ByteBufAllocator.DEFAULT;
<add> }
<add>... | 1 |
Python | Python | standardize dynamodb naming | 1fc0fa5ea96913faf78a5bf5d5f75f1d2fb91e97 | <ide><path>airflow/providers/amazon/aws/hooks/dynamodb.py
<ide>
<ide>
<ide> """This module contains the AWS DynamoDB hook"""
<add>import warnings
<ide> from typing import Iterable, List, Optional
<ide>
<ide> from airflow.exceptions import AirflowException
<ide> from airflow.providers.amazon.aws.hooks.base_aws import... | 7 |
Java | Java | fix failing tests | aa51ed19403129bd9f0b8f5373391ba6bc8baaaa | <ide><path>spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java
<ide> private List<OriginPattern> combinePatterns(
<ide>
<ide> /**
<ide> * Check the origin of the request against the configured allowed origins.
<del> * @param requestOrigin the origin to check
<add> * @param origin the orig... | 3 |
Text | Text | fix links in documentations | f16d8a32e2641bae8483a5194b7ddb1ec56ab5fa | <ide><path>docs/axes/cartesian/time.md
<ide> The following options are provided by the time scale. They are all located in th
<ide> | `max` | [Time](#date-formats) | | If defined, this will override the data maximum
<ide> | `min` | [Time](#date-formats) | | If defined, this will override the data minimum
<ide> | `parse... | 9 |
PHP | PHP | add default logging config in config/bootstrap.php | 5c4f7415295e2588810abfa8044e0b9ffb3c8985 | <ide><path>app/Config/bootstrap.php
<ide> 'AssetDispatcher',
<ide> 'CacheDispatcher'
<ide> ));
<add>
<add>/**
<add> * Configures default file logging options
<add> */
<add>CakeLog::config('debug', array(
<add> 'engine' => 'FileLog',
<add> 'types' => array('notice', 'info', 'debug'),
<add> 'file' => 'debug',
<add>));
... | 2 |
Text | Text | fix links to agility cms examples | 4e6c326a56ec39c73971397e8ce2a80e2091e953 | <ide><path>docs/advanced-features/preview-mode.md
<ide> description: Next.js has the preview mode for statically generated pages. You ca
<ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/cms-prismic">Prismic Example</a> (<a href="https://next-blog-prismic.now.sh/">Demo</a>)</li>
<ide> <l... | 3 |
Go | Go | fix use of **/ in .dockerignore | 376bb84c5c8f6183dbb88dae705e1de4182da4c9 | <ide><path>pkg/fileutils/fileutils.go
<ide> func regexpMatch(pattern, path string) (bool, error) {
<ide> // is some flavor of "**"
<ide> scan.Next()
<ide>
<add> // Treat **/ as ** so eat the "/"
<add> if string(scan.Peek()) == sl {
<add> scan.Next()
<add> }
<add>
<ide> if scan.Peek() == scanne... | 2 |
Java | Java | restore formatting change following revert | ad88c02bc3bc031916e65b0a777cbce561848bca | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java
<ide> else if (mediaType.equals(MediaType.ALL) || mediaType.equals(MEDIA_TYPE_APPLICAT
<ide> inputMessage, outputMessage);
<ide> if (body != null) {
<ide> if (logge... | 2 |
Ruby | Ruby | remove support for legacy homebrew repo. (#287) | f946693b561bae7f065d06776751a19d199f7031 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> # --junit: Generate a JUnit XML test results file.
<ide> # --no-bottle: Run brew install without --build-bottle.
<ide> # --keep-old: Run brew bottle --keep-old to build new bottles for a single platform.
<del># --legacy Build formula from legacy... | 1 |
Python | Python | change default tag for 動詞,非自立可能 | 234a8a75917aa01c48e06ed4767d6f47cdfead22 | <ide><path>spacy/ja/tag_map.py
<ide>
<ide> "代名詞,*,*,*":{POS: PRON},
<ide> "動詞,一般,*,*":{POS: VERB},
<del> "動詞,非自立可能,*,*":{POS: AUX}, # XXX VERB if alone, AUX otherwise
<add> "動詞,非自立可能,*,*":{POS: VERB}, # XXX VERB if alone, AUX otherwise
<ide> "動詞,非自立可能,*,*,AUX":{POS: AUX},
<ide> "動詞,非自立可能,*,*,VERB... | 1 |
Ruby | Ruby | use classes for instance doubles | 78d4db2755995ff56736582758ad97f8d76c814c | <ide><path>Library/Homebrew/test/cache_store_spec.rb
<ide> describe "#close_if_open!" do
<ide> context "database open" do
<ide> before(:each) do
<del> subject.instance_variable_set(:@db, instance_double("db", close: nil))
<add> subject.instance_variable_set(:@db, instance_double(DBM, close: ni... | 2 |
Javascript | Javascript | remove the unuse file. | b1016a4d34b526a83a09ea92209bf6c99516e59a | <ide><path>examples/real-world/src/routes.js
<del>import React from 'react'
<del>import { Route } from 'react-router'
<del>import App from './containers/App'
<del>import UserPage from './containers/UserPage'
<del>import RepoPage from './containers/RepoPage'
<del>
<del>export default <Route path="/" component={App}>
<de... | 1 |
Python | Python | fix transfo xl integration test | b189226e8cb31361916d638c5a1e2540e3208a61 | <ide><path>tests/test_modeling_tf_transfo_xl.py
<ide> def test_model_from_pretrained(self):
<ide>
<ide> @require_tf
<ide> class TFTransfoXLModelLanguageGenerationTest(unittest.TestCase):
<add> @unittest.skip("Skip test until #12651 is resolved.")
<ide> @slow
<ide> def test_lm_generate_transfo_xl_wt103(self)... | 2 |
Java | Java | fix spel withtypedrootobject() test | 59c6b7e44543d3fdadfb78ae3c6a7c76de2fce91 | <ide><path>spring-expression/src/test/java/org/springframework/expression/spel/PropertyAccessTests.java
<ide> public void propertyAccessWithInstanceMethodResolver() {
<ide>
<ide> @Test
<ide> public void propertyAccessWithInstanceMethodResolverAndTypedRootObject() {
<del> Person target = new Person("p1");
<add> Per... | 1 |
Java | Java | consolidate tests related to @config inheritance | 8cb5c36512e6355d379f533d75d2bef63d0de6bd | <ide><path>org.springframework.context/src/test/java/org/springframework/context/annotation/BeanMethodPolymorphismTests.java
<ide> import static org.junit.Assert.assertTrue;
<ide> import static org.junit.Assert.fail;
<ide>
<add>import java.lang.annotation.Inherited;
<add>
<ide> import org.junit.Test;
<ide> import org.... | 2 |
Javascript | Javascript | add documentation for ember.enumerableutils | 33c89fc3ff143820cfb0b5629080817c6cb62bd6 | <ide><path>packages/ember-metal/lib/enumerable_utils.js
<ide> indexOf = Array.prototype.indexOf || Ember.ArrayPolyfills.indexOf;
<ide> filter = Array.prototype.filter || Ember.ArrayPolyfills.filter;
<ide> splice = Array.prototype.splice;
<ide>
<add>/**
<add> * Defines some convenience methods for working with Enumerab... | 1 |
Ruby | Ruby | allow compare with string | b100ad223d24bef79bc2e40491b68aa06c434465 | <ide><path>Library/Homebrew/tap.rb
<ide> def formula_renames
<ide> end
<ide> end
<ide>
<add> def ==(other)
<add> other = Tap.fetch(other) if other.is_a?(String)
<add> self.class == other.class && self.name == other.name
<add> end
<add>
<ide> def self.each
<ide> return unless TAP_DIRECTORY.directory... | 1 |
Go | Go | move caps and device spec utils to `oci` pkg | b940cc5cff325ecba2dc2a950f14f098e1519511 | <ide><path>daemon/exec_linux.go
<ide> package daemon // import "github.com/docker/docker/daemon"
<ide>
<ide> import (
<ide> "github.com/docker/docker/container"
<del> "github.com/docker/docker/daemon/caps"
<ide> "github.com/docker/docker/daemon/exec"
<add> "github.com/docker/docker/oci/caps"
<ide> "github.com/openc... | 5 |
Go | Go | add detach event | 83ad006d4724929ccbde4bdf768374fad0eeab44 | <ide><path>container/container.go
<ide> var (
<ide> errInvalidNetwork = fmt.Errorf("invalid network settings while building port map info")
<ide> )
<ide>
<add>// AttachError represents errors of attach
<add>type AttachError interface {
<add> IsDetached() bool
<add>}
<add>
<add>type detachError struct{}
<add>
<add>fu... | 4 |
Text | Text | remove zerowidth space at the beginning of file | 1b86246d64854240abd291fb4bd36f7b3dd765c2 | <ide><path>docs/docs/conferences.md
<del>---
<add>---
<ide> id: conferences
<ide> title: Conferences
<ide> permalink: conferences.html | 1 |
Java | Java | add set/getcontentlanguage() to httpheaders | 36da299f96e7be182ea956f3094d0cf1715da6c5 | <ide><path>spring-web/src/main/java/org/springframework/http/HttpHeaders.java
<ide> public ContentDisposition getContentDisposition() {
<ide> return ContentDisposition.empty();
<ide> }
<ide>
<add> /**
<add> * Set the {@link Locale} of the content language,
<add> * as specified by the {@literal Content-Language} h... | 2 |
Python | Python | fix typo in test | 163ae9681e4ec19de40be444ebf4cdcbca759307 | <ide><path>keras/tests/integration_test.py
<ide> def densify(x, y):
<ide> keras.layers.Conv1D(4, 5, padding='same', activation='relu'),
<ide> keras.layers.Conv1D(8, 5, padding='same'),
<ide> keras.layers.BatchNormalization(),
<del> keras.layers.Conv2D(3, 5, padding='same', activation='sof... | 1 |
Mixed | Text | change the default adapter from inline to async | 625baa69d14881ac49ba2e5c7d9cac4b222d7022 | <ide><path>activejob/CHANGELOG.md
<add>* Change the default adapter from inline to async. It's a better default as tests will then not mistakenly
<add> come to rely on behavior happening synchronously. This is especially important with things like jobs kicked off
<add> in Active Record lifecycle callbacks.
<add... | 3 |
Javascript | Javascript | remove multimaterial from webgldeferredrenderer | 8349b07b5d3d1ebb55c7ee01ff27544604facd2e | <ide><path>examples/js/renderers/WebGLDeferredRenderer.js
<ide> THREE.WebGLDeferredRenderer = function ( parameters ) {
<ide> var _lightPrePass = false;
<ide> var _cacheKeepAlive = false;
<ide>
<del> var _invisibleMaterial = new THREE.ShaderMaterial( { visible: false } );
<del>
<add> var _tmpMaterial = new THREE.Sha... | 1 |
Text | Text | add demo url for the datocms example | 745494a9a3ef630a87d6ee2fca602b222d1f3ba9 | <ide><path>docs/advanced-features/preview-mode.md
<ide> https://<your-site>/api/preview?secret=<token>&slug=<path>
<ide>
<ide> Take a look at the following examples to learn more:
<ide>
<del>- [DatoCMS Example](https://github.com/zeit/next.js/tree/canary/examples/cms-datocms)
<add>- [DatoCMS Example](https://github.c... | 4 |
Go | Go | remove unused repositorydata and imgdata | 02ed26585451fac98281b564f6afe054c20d776c | <ide><path>registry/types.go
<ide> import (
<ide> registrytypes "github.com/docker/docker/api/types/registry"
<ide> )
<ide>
<del>// RepositoryData tracks the image list, list of endpoints for a repository
<del>type RepositoryData struct {
<del> // ImgList is a list of images in the repository
<del> ImgList map[string... | 1 |
Python | Python | modify example debug_task to ignore result | 4627b9364891af55c72e509eb1b7630114b1bb82 | <ide><path>examples/django/proj/celery.py
<ide> app.autodiscover_tasks()
<ide>
<ide>
<del>@app.task(bind=True)
<add>@app.task(bind=True, ignore_result=True)
<ide> def debug_task(self):
<ide> print(f'Request: {self.request!r}') | 1 |
Javascript | Javascript | fix comment docks | c96b4a9774ecb63bb8d4b93eedf673d4ce97a4fa | <ide><path>src/workspace.js
<ide> const ALL_LOCATIONS = ['center', 'left', 'right', 'bottom'];
<ide> // Returns a {String} containing a longer version of the title to display in
<ide> // places like the window title or on tabs their short titles are ambiguous.
<ide> //
<del>// #### `onDidChangeTitle`
<add>// #### `onDi... | 1 |
Go | Go | remove unused functions from archive | 967ef7e6d2bd88a5d7010863f3d7138ca61b1939 | <ide><path>container/container_unix.go
<ide> func copyExistingContents(source, destination string) error {
<ide> }
<ide> if len(srcList) == 0 {
<ide> // If the source volume is empty, copies files from the root into the volume
<del> if err := chrootarchive.CopyWithTar(source, destination); err != nil {
<add> ... | 12 |
Javascript | Javascript | eliminate unnecessary exports | b855dadae00b616c7669530a75d4e410f1b7d601 | <ide><path>lib/internal/util.js
<ide> const prefix = `(${process.release.name}:${process.pid}) `;
<ide> const kArrowMessagePrivateSymbolIndex = binding['arrow_message_private_symbol'];
<ide> const kDecoratedPrivateSymbolIndex = binding['decorated_private_symbol'];
<ide>
<del>exports.getHiddenValue = binding.getHiddenV... | 3 |
Text | Text | add missing metadata for dns.lookup | a02b98b0b5d2c732fdb22f84f07335b2b5866697 | <ide><path>doc/api/dns.md
<ide> section if a custom port is used.
<ide> <!-- YAML
<ide> added: v0.1.90
<ide> changes:
<add> - version: v8.5.0
<add> pr-url: https://github.com/nodejs/node/pull/14731
<add> description: The `verbatim` option is supported now.
<ide> - version: v1.2.0
<ide> pr-url: https://gith... | 1 |
Python | Python | update docstrings for nttc | 6ae3a29ba5522c566b893f6994cc1748c1c7b149 | <ide><path>libcloud/compute/drivers/nttcis.py
<ide> def ex_create_consistency_group(self, name, journal_size_gb,
<ide>
<ide> :param name: Name of consistency group
<ide> :type name: ``str``
<add>
<ide> :param journal_size_gb: Journal size in GB
<ide> :type journal_size_gb: ``str``
<add>... | 1 |
Text | Text | add an article on authentication | 2960824eabfcd429ea85215606f2ea7b040d0661 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> * [Understanding Redux](http://www.youhavetolearncomputers.com/blog/2015/9/15/a-conceptual-overview-of-redux-or-how-i-fell-in-love-with-a-javascript-state-container) — Learn the basic co... | 1 |
Go | Go | create layer folders with correct acl | ed10ac6ee93cf5c389a735c0c97b08d5d5dff3a9 | <ide><path>api/common.go
<ide> func MatchesContentType(contentType, expectedType string) bool {
<ide> // LoadOrCreateTrustKey attempts to load the libtrust key at the given path,
<ide> // otherwise generates a new one
<ide> func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
<del> err := syste... | 15 |
Mixed | Ruby | support direct uploads to multiple services | 193289dbbe146c56ec16faf8dd1a2c88611feb83 | <ide><path>actiontext/app/assets/javascripts/actiontext.js
<ide> var activestorage = {exports: {}};
<ide> }
<ide> }
<ide> class BlobRecord {
<del> constructor(file, checksum, url) {
<add> constructor(file, checksum, url, directUploadToken, attachmentName) {
<ide> this.file = file;
<ide> this.a... | 18 |
Javascript | Javascript | fix typo in application.initialize assertion | 48da23b0956d0f0eeef8ddcd212e2e17ba79b3f7 | <ide><path>packages/ember-application/lib/system/application.js
<ide> Ember.Application = Ember.Namespace.extend(
<ide> @param router {Ember.Router}
<ide> */
<ide> initialize: function(router) {
<del> Ember.assert("Application initialize may only be call once", !this.isInitialized);
<add> Ember.assert("Ap... | 1 |
Javascript | Javascript | change locale comments | 4b3fc58ddc777ec7d65fd3a85bd0ae64632e3dfe | <ide><path>src/locale/af.js
<ide> //! moment.js locale configuration
<del>//! locale : afrikaans (af)
<add>//! locale : Afrikaans [af]
<ide> //! author : Werner Mollentze : https://github.com/wernerm
<ide>
<ide> import moment from '../moment';
<ide><path>src/locale/ar-ma.js
<ide> //! moment.js locale configuration
<de... | 100 |
Javascript | Javascript | use correct handle handle | d040f1d19d17e056223ab3de0e58ed470c8b9f52 | <ide><path>lib/_debugger.js
<ide> exports.Client = Client;
<ide>
<ide> Client.prototype._addHandle = function(desc) {
<ide> if (typeof desc != 'object' || !desc.handle) throw new Error("bad type");
<del> this.handles[desc.id] = desc;
<add> this.handles[desc.handle] = desc;
<ide>
<ide> if (desc.type == 'script')... | 1 |
Javascript | Javascript | remove unnecessary else statement | a6a15fefb6aea781d3e08f44633cd137ca2c844f | <ide><path>lib/internal/fs/promises.js
<ide> async function readFileHandle(filehandle, options) {
<ide> } while (!endOfFile);
<ide>
<ide> const result = Buffer.concat(chunks);
<del> if (options.encoding) {
<del> return result.toString(options.encoding);
<del> } else {
<del> return result;
<del> }
<add>
<a... | 1 |
Javascript | Javascript | convert safeareaview to es module | d9a86aa651c7a8baa7082f91a6c02b94e5e76420 | <ide><path>Libraries/Components/SafeAreaView/SafeAreaView.js
<ide> if (Platform.OS === 'android') {
<ide> );
<ide> }
<ide>
<del>module.exports = exported;
<add>export default exported;
<ide><path>Libraries/Components/SafeAreaView/__tests__/SafeAreaView-test.js
<ide> 'use strict';
<ide>
<ide> const React = require('... | 3 |
Javascript | Javascript | fix graphql issue with lambdas flag | 08e3396574cd39ea94aab10ac9b07272cd7b669a | <ide><path>packages/next/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide>
<ide> const resolveConfig = {
<ide> // Disable .mjs for node_modules bundling
<del> extensions: ['.wasm', !lambdas && '.mjs', '.js', '.jsx', '.json'].filter(Boolean),
<add> ... | 1 |
Go | Go | return correct status on invalid filters | 2d45b5ddbc203e424d07682799874ed2e79b85c5 | <ide><path>api/server/router/container/container_routes.go
<ide> func (s *containerRouter) postContainersPrune(ctx context.Context, w http.Respon
<ide>
<ide> pruneFilters, err := filters.FromJSON(r.Form.Get("filters"))
<ide> if err != nil {
<del> return errdefs.InvalidParameter(err)
<add> return err
<ide> }
<ide>... | 6 |
PHP | PHP | fix missing exception code in cli | e49d313ef7cc27a5e64eab5e5e78ff159cabfada | <ide><path>src/Error/ExceptionTrap.php
<ide> public function handleException(Throwable $exception): void
<ide> } catch (Throwable $exception) {
<ide> $this->logInternalError($exception);
<ide> }
<add> // Use this constant as a proxy for cakephp tests.
<add> if (PHP_SAPI == 'cli... | 1 |
PHP | PHP | add integration test for cookies + psr7 | cadeb649ca5762235b202be06b07a838b7b93615 | <ide><path>tests/TestCase/TestSuite/IntegrationTestCaseTest.php
<ide> public function testFlashSessionAndCookieAsserts()
<ide> $this->assertCookieNotSet('user_id');
<ide> }
<ide>
<add> /**
<add> * Test flash and cookie assertions
<add> *
<add> * @return void
<add> */
<add> public func... | 1 |
Javascript | Javascript | resolve uncaught typeerror | 02fd34d2690f07ec84d61e21547e5452f4391be9 | <ide><path>src/project.js
<ide> module.exports = class Project extends Model {
<ide> // Public: Get an {Array} of {String}s containing the paths of the project's
<ide> // directories.
<ide> getPaths() {
<del> return this.rootDirectories.map(rootDirectory => rootDirectory.getPath());
<add> try {
<add> r... | 1 |
Python | Python | dump args and kwargs in error e-mail | ef0d40dbf5bb7bd2850b2f1178532c57d3aec201 | <ide><path>celery/worker/job.py
<ide> TASK_FAIL_EMAIL_BODY = """
<ide> Task %%(name)s with id %%(id)s raised exception: %%(exc)s
<ide>
<add>
<add>Task was called with args:%%(args)s kwargs:%%(kwargs)s.
<ide> The contents of the full traceback was:
<ide>
<ide> %%(traceback)s
<ide> def on_failure(self, exc_info, meta):... | 1 |
Text | Text | add russian translation | ac0567c6d9c76157a0bc15d0f5b18bd941ddff21 | <ide><path>curriculum/challenges/russian/03-front-end-libraries/react/give-sibling-elements-a-unique-key-attribute.russian.md
<ide> localeTitle: Дайте сиблинг-элементам уникальный
<ide> ---
<ide>
<ide> ## Description
<del>undefined
<add>Последняя задача показала, как используется метод `map` для динамичного рендеринг... | 1 |
Python | Python | add smoke test for 64-bit blas | d57739d3152c366a43f0d17694e2ea8d5db142d7 | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_raises, assert_array_equal,
<ide> assert_almost_equal, assert_allclose, suppress_warnings,
<del> assert_raises_regex,
<add> assert_raises_regex, HAS_LAPACK64,
<ide> )
<add>from numpy.test... | 2 |
Text | Text | clarify eol platform support | 8d2df41618266f6bcd5579d6de63a777149f4166 | <ide><path>BUILDING.md
<ide> There are three support tiers:
<ide>
<ide> ### Supported platforms
<ide>
<del>The community does not build or test against end-of-life distributions (EoL).
<ide> For production applications, run Node.js on supported platforms only.
<ide>
<add>Node.js does not support a platform version i... | 1 |
Javascript | Javascript | correct some test assertions | ef5a2914724c04420de3690be24bcb292f051c16 | <ide><path>test/cases/wasm/decoding/index.js
<ide> it("should raw memory export without data", function() {
<ide> return import("./memory2.wasm").then(function(wasm) {
<ide> expect(wasm.memory).toBeInstanceOf(WebAssembly.Memory);
<ide> expect(wasm.memory.buffer).toBeInstanceOf(ArrayBuffer);
<del> expect(wasm.memo... | 2 |
Text | Text | add a link to the emoji cheat sheet | 029e4336bc90107b5ee19c115b1d7c18a3272337 | <ide><path>docs/contributing.md
<ide> dependencies up to date by running `apm update` after pulling upstream changes.
<ide> * :racehorse: when improving performance
<ide> * :non-potable_water: when plugging memory leaks
<ide> * :memo: when writing docs
<add> * :bulb: Check out the [Emoji Cheat Sheet](htt... | 1 |
Python | Python | update version number | 1a7ed296395a941c4db0d8ef02855ca079e7ff0b | <ide><path>rest_framework/__init__.py
<ide> """
<ide>
<ide> __title__ = 'Django REST framework'
<del>__version__ = '3.6.3'
<add>__version__ = '3.6.4'
<ide> __author__ = 'Tom Christie'
<ide> __license__ = 'BSD 2-Clause'
<ide> __copyright__ = 'Copyright 2011-2017 Tom Christie' | 1 |
Javascript | Javascript | choose parser based on file extension | 078f6310ba5008224e8683c1463b248f447fefa8 | <ide><path>packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js
<ide> const allFiles = [];
<ide> fileList.forEach(file => {
<ide> if (fs.lstatSync(file).isDirectory()) {
<ide> const dirFiles = glob
<del> .sync(`${file}/**/*.js`, {
<add> .sync(`${file}/**/*.{js,ts,tsx}`, {
<ide> ... | 4 |
PHP | PHP | fix coding standards | a8eca60fc52d73b114eacf08f9fa0be1c399df9d | <ide><path>lib/Cake/Model/Model.php
<ide> public function exists($id = null) {
<ide> if ($id === false) {
<ide> return false;
<ide> }
<del> return (bool)$this->find('count', array(
<add> return (bool)$this->find('count', array(
<ide> 'conditions' => array(
<ide> $this->alias . '.' . $this->primaryKey =... | 4 |
Python | Python | fix memory issue in tensorflow backend's batch_dot | edd0c0a4bd4cea027842bc8925048976d65b1ae9 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def batch_dot(x, y, axes=None):
<ide> ' with axes=' + str(axes) + '. x.shape[%d] != '
<ide> 'y.shape[%d] (%d != %d).' % (axes[0], axes[1], d1, d2))
<ide>
<del> # bring the dimensions to be reduced to axis 1
<del> ... | 2 |
Javascript | Javascript | remove duplicate comment line | bd03a556c0804c2d40f2fc61b910ca968b27c202 | <ide><path>src/ng/parse.js
<ide> var $parseMinErr = minErr('$parse');
<ide> // access to any member named "constructor".
<ide> //
<ide> // For reflective calls (a[b]) we check that the value of the lookup is not the Function constructor while evaluating
<del>// For reflective calls (a[b]) we check that the value of the... | 1 |
Python | Python | add a test for japanese bert tokenizers | a09da4eeb0397dd66d61182177dd3b753d70e62a | <ide><path>transformers/tests/tokenization_bert_japanese_test.py
<add># coding=utf-8
<add># Copyright 2018 The Google AI Language Team Authors.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a co... | 1 |
Go | Go | update integration tests with --net flag | 581e8e891886e6db387ed27aabda7dd8f1d14174 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func TestDockerRunWorkingDirectory(t *testing.T) {
<ide>
<ide> // pinging Google's DNS resolver should fail when we disable the networking
<ide> func TestDockerRunWithoutNetworking(t *testing.T) {
<del> runCmd := exec.Command(dockerBinary, "run", "--networking=fa... | 1 |
Ruby | Ruby | remove useless conditional | 109fb8e7a94e2bebb1f7b628c2fd1b377f5601e2 | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def response_body=(body)
<ide>
<ide> # Tests if render or redirect has already happened.
<ide> def performed?
<del> response_body || (response && response.committed?)
<add> response_body || response.committed?
<ide> end
<ide>
<ide> d... | 1 |
Javascript | Javascript | fix title info for pdf document | dee158d80c926e02c7a7573bc3d87659b2e64408 | <ide><path>src/worker.js
<ide> var WorkerMessageHandler = {
<ide> fingerprint: pdfModel.getFingerprint(),
<ide> destinations: pdfModel.catalog.destinations,
<ide> outline: pdfModel.catalog.documentOutline,
<del> info: pdfModel.info,
<add> info: pdfModel.getDocumentInfo(),
<ide> ... | 2 |
Python | Python | add test for printing of scalar values | d55b5aa49d2ba1c98d568660b1a91b4b552872f0 | <ide><path>numpy/core/tests/test_scalarprint.py
<add># -*- coding: utf-8 -*-
<add>""" Test printing of scalar types.
<add>
<add>"""
<add>
<add>import numpy as np
<add>from numpy.testing import TestCase, assert_, run_module_suite
<add>
<add>
<add>class TestRealScalars(TestCase):
<add> def test_str(self):
<add> ... | 1 |
Python | Python | remove comment in fabfile | 7c0823ad76e0b38dd31df59eccd0e3d7e0e3a4e0 | <ide><path>fabfile.py
<ide> def virtualenv(name, create=False, python='/usr/bin/python3.6'):
<ide> def wrapped_local(cmd, env_vars=[], capture=False, direct=False):
<ide> return local('source {}/bin/activate && {}'.format(env_path, cmd),
<ide> shell='/bin/bash', capture=False)
<del> ... | 1 |
Ruby | Ruby | combine github version regexes | 364c5c34733a3b941e2310f1d4b2899075ee303d | <ide><path>Library/Homebrew/version.rb
<ide> def self._parse spec
<ide> spec.stem
<ide> end
<ide>
<del> # GitHub tarballs, e.g. v1.2.3
<del> m = %r[github.com/.+/(?:zip|tar)ball/v?((\d+\.)+\d+)$].match(spec_s)
<del> return m.captures.first unless m.nil?
<del>
<add> # GitHub tarballs
<add> # e.... | 1 |
Javascript | Javascript | fix missing bidi for extension | d0143cc2894307a7d0e652e190f9d2a67874dfb2 | <ide><path>src/bidi.js
<ide>
<ide> 'use strict';
<ide>
<del>var bidi = (function bidiClosure() {
<add>var bidi = PDFJS.bidi = (function bidiClosure() {
<ide> // Character types for symbols from 0000 to 00FF.
<ide> var baseTypes = [
<ide> 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS... | 2 |
Text | Text | fix typo in docs | f76480a127cd653d981e1463fa6bafdcea0021c6 | <ide><path>docs/api-guide/permissions.md
<ide> The following third party packages are also available.
<ide>
<ide> ## DRF - Access Policy
<ide>
<del>The [Django REST - Access Policy][drf-access-policy] package provides a way to define complex access rules in declaritive policy classes that are attached to view sets or... | 1 |
Javascript | Javascript | hide object.assign polyfill behind a module | 8210beeef4219d11b0a997f5a5abe7c348c01448 | <ide><path>jest/environment.js
<ide> __DEV__ = true;
<del>
<del>require.requireActual('../src/vendor/polyfill/Object.es6.js');
<ide><path>src/addons/transitions/ReactCSSTransitionGroup.js
<ide>
<ide> var React = require('React');
<ide>
<add>var assign = require('Object.assign');
<add>
<ide> var ReactTransitionGroup =... | 41 |
Javascript | Javascript | remove workaround for old ff bug | a03b75c6a812fcc2f616fc05c0f1710e03fca8e9 | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> // - pendingLocation is needed as browsers don't allow to read out
<ide> // the new location.href if a reload happened or if there is a bug like in iOS 9 (see
<ide> // https://openradar.appspot.com/221861... | 2 |
Text | Text | fix linting of markdown documentation | 83b4fd150910917d4f91d8f743df0cc4d3ca5696 | <ide><path>docs/basic-features/data-fetching.md
<ide> export async function getStaticPaths() {
<ide>
<ide> // Get the paths we want to pre-render based on posts
<ide> const paths = posts.map(post => ({
<del> params: {id: post.id}
<add> params: { id: post.id },
<ide> }))
<ide>
<ide> // We'll pre-render o... | 1 |
Javascript | Javascript | add api to force scheduler to yield for macrotask | ca990e9a753597768765e71c98fe650789c9ee8b | <ide><path>packages/scheduler/npm/umd/scheduler.development.js
<ide> );
<ide> }
<ide>
<add> function unstable_requestYield() {
<add> return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestYield.apply(
<add> this,
<add> arguments
<add> );
<add> }
<add>
<... | 9 |
Javascript | Javascript | fix relative paths in scripts | 7fbbacc104dfb142f560bb1a162dac6d8a4952a9 | <ide><path>i18n/src/closureSlurper.js
<ide> var Q = require('q'),
<ide> localeInfo = {};
<ide>
<ide>
<del>var NG_LOCALE_DIR = '../src/ngLocale/';
<add>var NG_LOCALE_DIR = __dirname + '/../../src/ngLocale/';
<ide>
<ide>
<ide> function readSymbols() {
<ide><path>i18n/ucd/src/extract.js
<ide> var propertiesToExtr... | 2 |
Ruby | Ruby | add documentation explaining reorder behavior | 23f8c635c0c8c9f6fbe810766104a4fa9f6794d4 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def order(*args)
<ide> relation
<ide> end
<ide>
<add> # Replaces any existing order defined on the relation with the specified order.
<add> #
<add> # User.order('email DESC').reorder('id ASC') # generated SQL has 'ORDER BY i... | 1 |
Javascript | Javascript | remove local camelcase method | ee42cfea04e619945b51e8cdcd9c9d5c6176cb77 | <ide><path>src/ngAria/aria.js
<ide> function $AriaProvider() {
<ide> config = angular.extend(config, newConfig);
<ide> };
<ide>
<del> function camelCase(input) {
<del> return input.replace(/-./g, function(letter, pos) {
<del> return letter[1].toUpperCase();
<del> });
<del> }
<del>
<del>
<ide> func... | 1 |
Python | Python | rationalize decimal logic. closes | 38a1b3ec6b62ea0e5bfcb0de2043067d8e333c95 | <ide><path>rest_framework/fields.py
<ide> def __init__(self, max_digits, decimal_places, coerce_to_string=None, max_value=
<ide> self.max_value = max_value
<ide> self.min_value = min_value
<ide>
<add> if self.max_digits is not None and self.decimal_places is not None:
<add> self.max_w... | 2 |
PHP | PHP | fix more errors reported by phpstan | 578d2b0462007339805e6b46c7b7d36dabe6ef7f | <ide><path>src/Auth/Storage/SessionStorage.php
<ide> class SessionStorage implements StorageInterface
<ide> * Stores user record array if fetched from session or false if session
<ide> * does not have user record.
<ide> *
<del> * @var \ArrayAccess|array|bool
<add> * @var \ArrayAccess|array|false
... | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.