content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add link to hub pr docs in model cards | 284fc6c0bbf8176ab86e94d41ae1b78080ce7f58 | <ide><path>model_cards/README.md
<ide> You can either:
<ide>
<ide> **What if you want to create or update a model card for a model you don't have write access to?**
<ide>
<del>In that case, given that we don't have a Pull request system yet on huggingface.co (🤯),
<del>you can open an issue here, post the card's cont... | 1 |
Ruby | Ruby | add qlplugins check to guess_cask_version | 778d5df6d4bf44b832a4d15ade004227cac1b328 | <ide><path>Library/Homebrew/unversioned_cask_checker.rb
<ide> def all_versions
<ide>
<ide> sig { returns(T.nilable(String)) }
<ide> def guess_cask_version
<del> if apps.empty? && pkgs.empty?
<del> opoo "Cask #{cask} does not contain any apps or PKG installers."
<add> if apps.empty? && pkgs.emp... | 1 |
Python | Python | limit k of top_k to the size of the dynamic input | fcb152bf5207f0e2218fcf1e4bf0460aae3eda80 | <ide><path>research/object_detection/meta_architectures/center_net_meta_arch.py
<ide> def top_k_feature_map_locations(feature_map, max_pool_kernel_size=3, k=100,
<ide> feature_map_peaks_flat, axis=1, output_type=tf.dtypes.int32), axis=-1)
<ide> else:
<ide> feature_map_peaks_flat = tf.reshape(feature... | 2 |
Go | Go | add tests for autoacceptoption | c544649874bfecf2e6b8a00a0b25db309d81cf94 | <ide><path>api/client/swarm/init.go
<ide> func newInitCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> },
<ide> }
<ide>
<del> flags := cmd.Flags()
<add> flags = cmd.Flags()
<ide> flags.Var(&opts.listenAddr, flagListenAddr, "Listen address")
<ide> flags.Var(&opts.autoAccept, flagAutoAccept, "Auto accept... | 3 |
Ruby | Ruby | make git audit only --new-formula only | 4efc1276b3d6594338b34bc53701f74b9d4214b7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_deps
<ide> problem "Dependency #{dep} does not define option #{opt.name.inspect}"
<ide> end
<ide>
<del> problem "Don't use git as a dependency (it's always available)" if dep.name == "git"
<add> problem "Don't use git ... | 1 |
Go | Go | allow reattempt of overlay network sbox join | 4f8c645173d461012d470c56727b20ab0739e878 | <ide><path>libnetwork/drivers/overlay/overlay.go
<ide> func Init(dc driverapi.DriverCallback, config map[string]interface{}) error {
<ide> }
<ide> }
<ide>
<del> d.restoreEndpoints()
<add> if err := d.restoreEndpoints(); err != nil {
<add> logrus.Warnf("Failure during overlay endpoints restore: %v", err)
<add> }
<a... | 1 |
Mixed | Javascript | add returnonexit option | 6aff62fcb326bd3d51dbbcf91e63f6d2150488b3 | <ide><path>doc/api/wasi.md
<ide> added: v13.3.0
<ide> sandbox directory structure. The string keys of `preopens` are treated as
<ide> directories within the sandbox. The corresponding values in `preopens` are
<ide> the real paths to those directories on the host machine.
<add> * `returnOnExit` {boolean} By... | 4 |
PHP | PHP | fix return comment | 50a0be8ad3de589bc7be08eae71d31945dacda0f | <ide><path>src/Illuminate/Foundation/Console/PolicyMakeCommand.php
<ide> protected function buildClass($name)
<ide> * Replace the user model for the given stub.
<ide> *
<ide> * @param string $stub
<del> * @return string mixed
<add> * @return string
<ide> */
<ide> protected function re... | 1 |
PHP | PHP | return $this from setter | 6be9b8374e8a2af6fc2fef34de541329c2fa3ed6 | <ide><path>src/Controller/ComponentRegistry.php
<ide> public function getController(): Controller
<ide> * Set the controller associated with the collection.
<ide> *
<ide> * @param \Cake\Controller\Controller $controller Controller instance.
<del> * @return void
<add> * @return $this
<ide> */... | 1 |
PHP | PHP | pluck | e3bc23b952466ceca259d028af2e3c8c0695b21c | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function last(callable $callback = null, $default = null)
<ide> }
<ide>
<ide> /**
<del> * Get an array with the values of a given key.
<add> * Get the values of a given key.
<ide> *
<ide> * @param string $value
<ide> * @para... | 1 |
Text | Text | remove duplicated period in link | 3a23203255e75cdfca608f19be93b08bb260692e | <ide><path>README.md
<ide> Contributing to Docker
<ide> [](https://jenkins.dockerproject.org/job/Docker%20Master/)
<ide>
<ide> Want to hack on Docker? Awesome! We have [instructions to help you get
<del>started contributing code o... | 1 |
Java | Java | harmonize use of generate | 97986b368a42f858a8f6ee84e2ca4a79f17e7410 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
<ide> public void applyTo(CodeContribution contribution) {
<ide> boolean isRequired = isRequired(element);
<ide> Member member = element.getMember();
<ide> analyzeMember(contribution,... | 6 |
PHP | PHP | unskip some tests | 71b41ed91cef204283ed3dca105d35baf55fbc03 | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testImageWithTimestampping() {
<ide> * @return void
<ide> */
<ide> public function testImageTagWithTheme() {
<del> $this->skipIf(!is_writable(WWW_ROOT . 'theme'), 'Cannot write to webroot/theme.');
<add> $this->skipIf(!is_writable(W... | 2 |
Java | Java | update integration tests for reactor-netty | ba47d06cbb6a07bdc57042da9dd59daafe5c5aae | <ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingMessageConversionIntegrationTests.java
<ide> import org.springframework.http.ResponseEntity;
<ide> import org.springframework.http.codec.json.Jackson2JsonEncoder;
<ide> import org.springframework.http.se... | 4 |
Java | Java | add storage module to fb | 6a7567e742f27e8118a84432192bd473f82a49b6 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java
<ide>
<ide> public AsyncStorageModule(ReactApplicationContext reactContext) {
<ide> super(reactContext);
<del> mReactDatabaseSupplier = new ReactDatabaseSupplier(reactContext);
<add> mReactDatabaseSupplier = Re... | 2 |
Python | Python | update affected code | 9b82f0a47b6a72fe2ba960f1895d5dbb9215599e | <ide><path>libcloud/compute/drivers/ec2.py
<ide> class BaseEC2NodeDriver(NodeDriver):
<ide> connectionCls = EC2Connection
<ide> features = {'create_node': ['ssh_key']}
<ide> path = '/'
<add> signature_version = DEFAULT_SIGNATURE_VERSION
<ide>
<ide> NODE_STATE_MAP = {
<ide> 'pending': NodeSta... | 1 |
Javascript | Javascript | add theme server validations | ae3ccdd672d03410de390e1cd84f24b885ba981d | <ide><path>client/epics/index.js
<ide> import analyticsEpic from './analytics-epic.js';
<ide> import errEpic from './err-epic.js';
<ide> import hardGoToEpic from './hard-go-to-epic.js';
<ide> import mouseTrapEpic from './mouse-trap-epic.js';
<del>import nightModeEpic from './night-mode-epic.js';
<ide> import titleEpic ... | 6 |
Java | Java | fix a crash in image when passed an invalid uri | 798acac18e9daab543d7b2e947bc2ed760703d99 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java
<ide> private static int getResourceDrawableId(Context context, @Nullable String name)
<ide> return resId > 0 ? context.getResources().getDrawable(resId) : null;
<ide> }
<ide>
<del> private static @Nullable Uri getResourceD... | 1 |
Javascript | Javascript | prevent proxying canvasgradient in node platform | c8b885dd3e35632df407df4bd463d9a5cc90280b | <ide><path>src/helpers/helpers.config.js
<ide> export function _descriptors(proxy, defaults = {scriptable: true, indexable: tru
<ide> }
<ide>
<ide> const readKey = (prefix, name) => prefix ? prefix + _capitalize(name) : name;
<del>const needsSubResolver = (prop, value) => isObject(value) && prop !== 'adapters';
<add>c... | 2 |
Javascript | Javascript | avoid argumentsadaptortrampoline frame | 038b636562444574d5256bf4ac198ed808e65537 | <ide><path>lib/module.js
<ide> Module.prototype.load = function(filename) {
<ide> Module.prototype.require = function(path) {
<ide> assert(path, 'missing path');
<ide> assert(typeof path === 'string', 'path must be a string');
<del> return Module._load(path, this);
<add> return Module._load(path, this, /* isMain ... | 1 |
Mixed | Javascript | add drawerlockmode prop to drawerlayoutandroid | ec173b1a1767aa52cf85fe652044d19264def699 | <ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
<ide> var INNERVIEW_REF = 'innerView';
<ide> var DrawerLayoutValidAttributes = {
<ide> drawerWidth: true,
<ide> drawerPosition: true,
<add> drawerLockMode: true
<ide> };
<ide>
<ide> var DRAWER_STATES = [
<ide> var DrawerLayoutAndroid = R... | 2 |
PHP | PHP | fix missing blank line | 0c6892b244b8a282fbdae2080f578ce2a0a114f2 | <ide><path>tests/TestCase/Utility/TextTest.php
<ide> public function testWrapIndent()
<ide> TEXT;
<ide> $this->assertTextEquals($expected, $result);
<ide> }
<add>
<ide> /**
<ide> * test wrapBlock() indentical to wrap()
<ide> *
<ide> public function testWrapBlockIndenticalToWrap()
<ide> ... | 1 |
Text | Text | remove references to python 2 from the docs | 8687f6135fc374c8d7977939ff3d8b2514c00e51 | <ide><path>CONTRIBUTING.md
<ide> It's also useful to remember that if you have an outstanding pull request then p
<ide>
<ide> GitHub's documentation for working on pull requests is [available here][pull-requests].
<ide>
<del>Always run the tests before submitting pull requests, and ideally run `tox` in order to check... | 3 |
Javascript | Javascript | remove keymirror in topleveltypes | 2f9a9dc4c56c1caee250626c54c587c5f233fcab | <ide><path>src/renderers/dom/client/ReactBrowserEventEmitter.js
<ide>
<ide> 'use strict';
<ide>
<del>var EventConstants = require('EventConstants');
<ide> var EventPluginRegistry = require('EventPluginRegistry');
<ide> var ReactEventEmitterMixin = require('ReactEventEmitterMixin');
<ide> var ViewportMetrics = require... | 16 |
Python | Python | fix typos in arrayprint docstrings | 74dbda5345ee426d91472f91975993f760c224ec | <ide><path>numpy/core/arrayprint.py
<ide> def set_printoptions(precision=None, threshold=None, edgeitems=None,
<ide> - 'longfloat' : 128-bit floats
<ide> - 'complexfloat'
<ide> - 'longcomplexfloat' : composed of two 128-bit floats
<del> - 'numpy_str' : types `numpy.string_... | 1 |
PHP | PHP | apply fixes from styleci | ffa3ef355ad015ecd87399a21214e1a7efbd9fb0 | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> protected function adapt(FilesystemInterface $filesystem)
<ide> public function set($name, $disk)
<ide> {
<ide> $this->disks[$name] = $disk;
<del>
<add>
<ide> return $this;
<ide> }
<ide> | 1 |
Javascript | Javascript | remove the `requestanimationframe` polyfill | d5174cd826bdf2f1a11aed8123ebeabe97ae7626 | <ide><path>src/shared/compatibility.js
<ide> PDFJS.compatibilityChecked = true;
<ide> }
<ide> })();
<ide>
<del>// Support: IE<10, Android<4.0, iOS
<del>(function checkRequestAnimationFrame() {
<del> function installFakeAnimationFrameFunctions() {
<del> window.requestAnimationFrame = function (callback) {
<del> ... | 1 |
Text | Text | add circleci, clarify travis over macos | 1200bfe6a1706ba927dec777ed5125fe14a0e0f7 | <ide><path>docs/build-instructions/build-status.md
<del># Atom build status
<add># Atom build statusgg
<ide>
<del>| System | macOS | Windows | Dependencies |
<del>|--------|------|---------|--------------|
<del>| [Atom](https://github.com/atom/atom) | [:
<ide> model = DDP(model, device_ids=[dist.get_local_rank()], broadcast_buffers=False)
<ide> elif self.args.local_rank... | 2 |
Go | Go | check propagation properties of source mount point | d4b4ce2588d02acd3602d42b788c6b36ab9b01e5 | <ide><path>daemon/execdriver/native/create.go
<ide> func checkResetVolumePropagation(container *configs.Config) {
<ide> }
<ide> }
<ide>
<add>func getMountInfo(mountinfo []*mount.Info, dir string) *mount.Info {
<add> for _, m := range mountinfo {
<add> if m.Mountpoint == dir {
<add> return m
<add> }
<add> }
<add> ... | 1 |
Java | Java | introduce localecontextresolver in webflux | e0e6736bc58101af13a352d4aa2a6c2dc0994d72 | <ide><path>spring-context/src/main/java/org/springframework/context/i18n/SimpleTimeZoneAwareLocaleContext.java
<ide> public SimpleTimeZoneAwareLocaleContext(@Nullable Locale locale, @Nullable TimeZ
<ide> }
<ide>
<ide>
<add> @Override
<ide> public TimeZone getTimeZone() {
<ide> return this.timeZone;
<ide> }
<ide>... | 28 |
Javascript | Javascript | combine two test cases into one | 56a1da5b3b56ed84f6de2193a4fb0c01c0c7d4f2 | <ide><path>packages/@ember/application/tests/readiness_test.js
<ide> moduleFor(
<ide> run(() => {
<ide> application = Application.create({ router: false });
<ide> application.deferReadiness();
<add> assert.equal(readyWasCalled, 0, "ready wasn't called yet");
<ide> });
<ide>
<ide> ... | 1 |
Python | Python | remove outdated exclude pattenr in docs/conf.py | 902db631b18dd0642e5d9a3b211e6755006c3c21 | <ide><path>docs/conf.py
<ide> exclude_patterns: List[str] = [
<ide> # We only link to selected subpackages.
<ide> '_api/airflow/index.rst',
<del> # Required by airflow/contrib/plugins
<del> '_api/main',
<ide> # We have custom page - operators-and-hooks-ref.rst
<ide> '_api/airflow/providers/index.r... | 1 |
Javascript | Javascript | add a test | d48d6cf99db8feefec4ee3961ff1cb9e7b2c5ad2 | <ide><path>test/unit/events.js
<ide> test('should bubble up DOM unless bubbles == false', function(){
<ide> });
<ide> vjs.trigger(inner, { type:'nobub', target:inner, bubbles:false });
<ide> });
<add>
<add>test('should have a defaultPrevented property on an event that was prevent from doing default action', functio... | 1 |
Python | Python | add a flag to control the number of train examples | 2454e6ea3d23d2d9c2c0ecb1b0213d48abc33438 | <ide><path>official/nlp/bert/input_pipeline.py
<ide> def decode_record(record, name_to_features):
<ide> return example
<ide>
<ide>
<del>def single_file_dataset(input_file, name_to_features):
<add>def single_file_dataset(input_file, name_to_features, num_samples=None):
<ide> """Creates a single-file dataset to be ... | 2 |
Python | Python | add a notice to the balancer_detach_member method | 43e7dff7a678ee2923d0d858b33221d31624ecee | <ide><path>libcloud/loadbalancer/drivers/rackspace.py
<ide> def balancer_attach_member(self, balancer, member):
<ide> return self._to_members(resp.object)[0]
<ide>
<ide> def balancer_detach_member(self, balancer, member):
<add> # Loadbalancer always needs to have at least 1 member.
<add> # La... | 1 |
Python | Python | fix graph.set_previous with dict connection_map | c515dc90d4be04454193e1b774018de28c6bcf48 | <ide><path>keras/layers/containers.py
<ide> def set_previous(self, layer, connection_map={}):
<ide> else:
<ide> if not connection_map:
<ide> raise Exception('Cannot attach multi-input layer: no connection_map provided.')
<del> for k, v in connection_map:
<add> f... | 1 |
Python | Python | add test for recent bug in indexing optimization | 75981b8a97760e91295ef8b64148816a897c9b7d | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_repeat_discont(self, level=rlevel):
<ide> """Ticket #352"""
<ide> a = N.arange(12).reshape(4,3)[:,2]
<ide> assert_equal(a.repeat(3), [2,2,2,5,5,5,8,8,8,11,11,11])
<del>
<add>
<add> def check_array_index(self, level=rlevel)... | 1 |
Ruby | Ruby | add `deuniversalize_machos` method | 5e0b786da21564011be7df165ce20a61d639de77 | <ide><path>Library/Homebrew/extend/os/linux/formula.rb
<ide> class Formula
<ide> undef shared_library
<ide> undef rpath
<add> undef deuniversalize_machos
<ide>
<add> sig { params(name: String, version: T.nilable(T.any(String, Integer))).returns(String) }
<ide> def shared_library(name, version = nil)
<ide> ... | 2 |
Python | Python | correct slow test | e615269cb864392b15073f80ce32643b704776a3 | <ide><path>tests/test_modeling_flaubert.py
<ide> def test_flaubert_sequence_classif(self):
<ide>
<ide> @slow
<ide> def test_model_from_pretrained(self):
<del> for model_name in list(Flaubert_PRETRAINED_MODEL_ARCHIVE_MAP.keys())[:1]:
<add> for model_name in list(FLAUBERT_PRETRAINED_MODEL_ARCHIVE_M... | 1 |
Text | Text | improve rewrites documentation | ae2d901eed3537e46a24e6e1963815230b92d6da | <ide><path>docs/api-reference/next.config.js/rewrites.md
<ide> module.exports = {
<ide> <summary><b>Examples</b></summary>
<ide> <ul>
<ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/custom-routes-proxying">Incremental adoption of Next.js</a></li>
<add> <li><a href="https://github.co... | 1 |
Python | Python | show migration elapsed time when verbosity>1 | 285bd02c921d3ba731c74a2f5eca278c7941ac5c | <ide><path>django/core/management/commands/migrate.py
<ide> from collections import OrderedDict
<ide> from importlib import import_module
<ide> import itertools
<add>import time
<ide> import traceback
<ide> import warnings
<ide>
<ide> def handle(self, *args, **options):
<ide>
<ide> def migration_progress_callback... | 1 |
Javascript | Javascript | remove default 'drain' listener on upgrade | 2b7f920e26171f05fac437d867a30209f57c6bad | <ide><path>lib/_http_client.js
<ide> const { OutgoingMessage } = require('_http_outgoing');
<ide> const Agent = require('_http_agent');
<ide> const { Buffer } = require('buffer');
<ide> const { urlToOptions, searchParamsSymbol } = require('internal/url');
<del>const { outHeadersKey } = require('internal/http');
<add>co... | 2 |
Text | Text | fix import in example | e8f4a6653dc3f5d9702236a3abed887ca44dcfbb | <ide><path>packages/react/README.md
<ide> The `react` package contains only the functionality necessary to define React co
<ide>
<ide> ```js
<ide> import { useState } from 'react';
<del>import { createRoot } from 'react-dom';
<add>import { createRoot } from 'react-dom/client';
<ide>
<ide> function Counter() {
<ide> ... | 1 |
Text | Text | add meta for invalid merge from | 7997ff8f514ad4bb9d66059e5c4e6f069f40f8b0 | <ide><path>guide/russian/react/context-api/index.md
<add>---
<add>title: Context API
<add>---
<add>
<ide> # Context API
<ide>
<ide> Новый Context API был реализован в версии React 16.3. | 1 |
Ruby | Ruby | delete more flaky tests | 1462f4760976742746ccc93c9ef23ff960ce7d9a | <ide><path>Library/Homebrew/test/cask/cmd/uninstall_spec.rb
<ide> expect(transmission.config.appdir.join("Caffeine.app")).not_to exist
<ide> end
<ide>
<del> it "calls `uninstall` before removing artifacts" do
<del> cask = Cask::CaskLoader.load(cask_path("with-uninstall-script-app"))
<del>
<del> Cask::Inst... | 1 |
Text | Text | replace methods used in the example code | 4eb9365d6641ab0aaface2528404d00ec20f98c5 | <ide><path>doc/api/buffer.md
<ide> Examples:
<ide> ```js
<ide> const buf = Buffer.allocUnsafe(6);
<ide>
<del>buf.writeUIntBE(0x1234567890ab, 0, 6);
<add>buf.writeIntBE(0x1234567890ab, 0, 6);
<ide>
<ide> // Prints: <Buffer 12 34 56 78 90 ab>
<ide> console.log(buf);
<ide>
<del>buf.writeUIntLE(0x1234567890ab, 0, 6);
<a... | 1 |
Text | Text | add more details in jsx-in-depth.md | f5144121f97253496248d26e61f1e69497e0a02a | <ide><path>docs/docs/jsx-in-depth.md
<ide> function NumberDescriber(props) {
<ide> }
<ide> ```
<ide>
<add>You can learn more about [conditional rendering](/react/docs/conditional-rendering.html) and [loops](/react/docs/lists-and-keys.html) in the corresponding sections.
<add>
<ide> ### String Literals
<ide>
<ide> You... | 1 |
Ruby | Ruby | fix ruby warnings in actionmailbox | 3adb2619857fabdbd40de8fd4199f3b7ffdaed36 | <ide><path>actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb
<ide> module ActionMailbox::InboundEmail::MessageId
<ide> # attachment called `raw_email`. Before the upload, extract the Message-ID from the `source` and set
<ide> # it as an attribute on the new `InboundEmail`.
<ide> def create... | 1 |
Ruby | Ruby | fix typo in metal/live [ci skip] | eae19033fbec07bdec3dd532fe29989fc137ba24 | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide>
<ide> module ActionController # :nodoc:
<ide> # Mix this module in to your controller, and all actions in that controller
<del> # will be able to stream data to the client as it's written. For example:
<add> # will be able to stream data to the clien... | 1 |
Text | Text | update docker swarm cli | 78ebfaff1a426425573c440c24eb0f36ffed4d8c | <ide><path>docs/reference/commandline/swarm_init.md
<ide> in the newly created one node Swarm cluster.
<ide>
<ide> ```bash
<ide> $ docker swarm init --listen-addr 192.168.99.121:2377
<del>Initializing a new swarm
<add>Swarm initialized: current node (1ujecd0j9n3ro9i6628smdmth) is now a manager.
<ide> $ docker node ls
... | 4 |
Javascript | Javascript | remove legacypromise in src/shared/annotation.js | cb59e7f872f9b9f25aedb2ab6617b8342d22abbb | <ide><path>src/shared/annotation.js
<ide> /* globals Util, isDict, isName, stringToPDFString, warn, Dict, Stream,
<ide> stringToBytes, PDFJS, isWorker, assert, NotImplementedException,
<ide> Promise, isArray, ObjectLoader, isValidUrl, OperatorList, OPS,
<del> LegacyPromise */
<add> ... | 1 |
PHP | PHP | add support for null values | fdbe128107232235629e7442cfbdb53a2772cbf2 | <ide><path>src/Core/StaticConfigTrait.php
<ide> public static function parseDsn($config) {
<ide> $config[$key] = true;
<ide> } elseif ($value === 'false') {
<ide> $config[$key] = false;
<add> } elseif ($value === 'null') {
<add> $config[$key] = null;
<ide> }
<ide> }
<ide> | 1 |
Java | Java | add onterminatedetach to single and completable | ea4d43a7967e0db8425528289a870345ab985f71 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public final Completable onErrorResumeNext(final Function<? super Throwable, ? e
<ide> return RxJavaPlugins.onAssembly(new CompletableResumeNext(this, errorMapper));
<ide> }
<ide>
<add> /**
<add> * Nulls out references to the upstream prod... | 9 |
Python | Python | hack a fixture in the vectors tests, for xfail | 92dbf28c1ef825176f0e81533a84dcaacb5fd098 | <ide><path>spacy/tests/vectors/test_similarity.py
<ide> def vectors():
<ide>
<ide> @pytest.fixture()
<ide> def vocab(en_vocab, vectors):
<del> return add_vecs_to_vocab(en_vocab, vectors)
<add> #return add_vecs_to_vocab(en_vocab, vectors)
<add> return None
<ide>
<ide> @pytest.mark.xfail
<ide> def test_vectors... | 1 |
Ruby | Ruby | pull common stdlib checking code into a method | 3d26b7584721c485d4c9df38fc7e2130c28ef75f | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide>
<ide> def detect_stdlibs
<ide> keg = Keg.new(f.prefix)
<del> # This first test includes executables because we still
<del> # want to record the stdlib for something that installs no
<del> # dylibs.
<del> stdlibs = keg.detect_cxx_stdlibs
<de... | 3 |
Text | Text | add 1.6.1 to changelog | f71243b709de012b2ffd389790072f4a7a16db2b | <ide><path>CHANGELOG.md
<ide> caveats with model/content, and also sets a simple ground rule: Never set a controllers content,
<ide> rather always set it's model and ember will do the right thing.
<ide>
<add>### Ember 1.6.1 (July, 15, 2014)
<add>
<add>* Fix error routes/templates. Changes in router promise logging... | 1 |
Python | Python | fix coding style | d41fc8f4437e585656ac50a2d73bcc8146e05579 | <ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
<ide> def _compute_second_stage_input_feature_maps(self, features_to_crop,
<ide> num_levels = len(features_to_crop)
<ide> box_levels = None
<ide> if num_levels != 1:
<del> # If there are mutiple levels to select, get the b... | 2 |
Javascript | Javascript | remove console log | f111eaa5436e8ac9f8628b16538fe2fcc5313d02 | <ide><path>src/main-process/parse-command-line.js
<ide> module.exports = function parseCommandLine (processArgs) {
<ide> const paths = contents.paths.map((curPath) =>
<ide> relativizeToAtomProject(curPath, path.dirname(path.join(executedFrom, atomProject))
<ide> ))
<del> console.log(paths)
<ide> pa... | 1 |
Text | Text | fix bad translation (auto-translation) | 18fd2780d70c32f6a03689a1d7805975c30d83d6 | <ide><path>guide/portuguese/haskell/misc/index.md
<ide> title: miscellaneous
<ide> localeTitle: Diversos
<ide> ---
<del>Quando você está um pouco confortável com o modo como Haskell trabalha você
<add>Quando já estiver um pouco confortável com o modo como Haskell trabalha, você pode recorrer ao:
<ide>
<ide> ## hoogle
... | 1 |
PHP | PHP | fix more tests to use asserttextequals() | 14228fa46902801a941f6589817a3cc16292e251 | <ide><path>lib/Cake/Test/Case/Routing/DispatcherTest.php
<ide> public function testFullPageCachingDispatch($url) {
<ide> $dispatcher->cached($request->here());
<ide> $cached = ob_get_clean();
<ide>
<del> $result = str_replace(array("\t", "\r\n", "\n"), "", $out);
<ide> $cached = preg_replace('/<!--+[^<>]+-->/',... | 4 |
PHP | PHP | catch invalid validator types | 5a8adbd57f568b25ed4982666c8845b68a70f308 | <ide><path>src/ORM/Marshaller.php
<ide> use Cake\ORM\Association;
<ide> use Cake\ORM\AssociationsNormalizerTrait;
<ide> use Cake\ORM\Table;
<add>use \RuntimeException;
<ide>
<ide> /**
<ide> * Contains logic to convert array data into entities.
<ide> public function one(array $data, array $options = []) {
<ide> * @pa... | 2 |
Go | Go | prevent fallback to v1 registry for digest pulls | 642e6a377324c7873f278c6bd7fd5e60201139e2 | <ide><path>graph/pull.go
<ide> func (s *TagStore) Pull(image string, tag string, imagePullConfig *ImagePullConf
<ide> logrus.Debug("image does not exist on v2 registry, falling back to v1")
<ide> }
<ide>
<add> if utils.DigestReference(tag) {
<add> return fmt.Errorf("pulling with digest reference failed from v2 reg... | 2 |
Javascript | Javascript | fix comment nits in tools/doc/*.js files | b88477ef4dc82b2a77c90b5de65efab4cf507d3c | <ide><path>tools/doc/addon-verify.js
<ide> function once(fn) {
<ide> }
<ide>
<ide> function verifyFiles(files, blockName, onprogress, ondone) {
<del> // must have a .cc and a .js to be a valid test
<add> // Must have a .cc and a .js to be a valid test.
<ide> if (!Object.keys(files).some((name) => /\.cc$/.test(name... | 6 |
Javascript | Javascript | add stl exporter in binary format to menu bar | b63ec3e8caf7e6ccefb1b4a9c38f61a02b4f2945 | <ide><path>editor/js/Menubar.File.js
<ide> Menubar.File = function ( editor ) {
<ide> } );
<ide> options.add( option );
<ide>
<del> // Export STL
<add> // Export STL (ASCII)
<ide>
<ide> var option = new UI.Row();
<ide> option.setClass( 'option' );
<ide> Menubar.File = function ( editor ) {
<ide> } );
<ide> opti... | 1 |
Ruby | Ruby | fix to_datetime test broken by dst change. closes | 93db1989fe1146ea79e3b0b2252542408ff86443 | <ide><path>activesupport/test/core_ext/time_ext_test.rb
<ide> def test_xmlschema_is_available
<ide> def test_to_datetime
<ide> assert_equal Time.utc(2005, 2, 21, 17, 44, 30).to_datetime, DateTime.civil(2005, 2, 21, 17, 44, 30, 0, 0)
<ide> with_timezone 'US/Eastern' do
<del> assert_equal Time.local(2005, ... | 1 |
PHP | PHP | apply fixes from styleci | 46df31abe2e24a94a59062e334f5615c9a080962 | <ide><path>tests/Integration/Database/EloquentHasManyThroughTest.php
<ide> public function basic_create_and_retrieve()
<ide>
<ide> $notMember = User::create(['name' => str_random()]);
<ide>
<del>
<ide> $this->assertEquals([$member1->id, $member2->id], $user->members->pluck('id')->toArray());
<ide> ... | 1 |
Javascript | Javascript | remove task priority | 3addf205bf6ad1333861d662ec955fcb11db9d24 | <ide><path>packages/react-reconciler/src/ReactFiberExpirationTime.js
<ide> export type ExpirationTime = number;
<ide>
<ide> const NoWork = 0;
<ide> const Sync = 1;
<del>const Task = 2;
<ide> const Never = 2147483647; // Max int32: Math.pow(2, 31) - 1
<ide>
<ide> const UNIT_SIZE = 10;
<del>const MAGIC_NUMBER_OFFSET = ... | 2 |
Python | Python | use symbols in tag map | afda532595651fce803bde9689edff64b0ebb6cf | <ide><path>spacy/nl/language_data.py
<ide> # TODO insert TAG_MAP for Dutch
<ide>
<ide> TAG_MAP = {
<del> "ADV": {POS: "ADV"},
<del> "NOUN": {POS: "NOUN"},
<del> "ADP": {POS: "ADP"},
<del> "PRON": {POS: "PRON"},
<del> "SCONJ": {POS: "SCONJ"},
<del> "PROPN": {POS: "PROPN"},
<del... | 1 |
Javascript | Javascript | add ember.string.classify() to string extensions | 972d310aebd73a85bad819121617d5adb506fa50 | <ide><path>packages/ember-runtime/lib/ext/string.js
<ide> var fmt = Ember.String.fmt,
<ide> camelize = Ember.String.camelize,
<ide> decamelize = Ember.String.decamelize,
<ide> dasherize = Ember.String.dasherize,
<del> underscore = Ember.String.underscore;
<add> underscore = Ember.String.underscore,
<a... | 2 |
Text | Text | fix a typo in readme | f0f68afb613fcce97e81fbb3731ab0f65b9b9864 | <ide><path>README.md
<ide> The response for a request contains the following information.
<ide>
<ide> // `request` is the request that generated this response
<ide> // It is the last ClientRequest instance in node.js (in redirects)
<del> // and an XMLHttpRequest instance the browser
<add> // and an XMLHttpReques... | 1 |
Python | Python | add missing manager fixture | f2556c45b22cae9d3c961639627a1f9053681393 | <ide><path>t/integration/test_canvas.py
<ide> def test_chord_in_chain_with_args(self, manager):
<ide> assert res1.get(timeout=TIMEOUT) == [1, 1]
<ide>
<ide> @pytest.mark.xfail(reason="Issue #6200")
<del> def test_chain_in_chain_with_args(self):
<add> def test_chain_in_chain_with_args(self, manager):
... | 1 |
PHP | PHP | tag a new version | 893d125acae49f859f8f37d54c429ef875cbf815 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements HttpKernelInterface, TerminableIn
<ide> *
<ide> * @var string
<ide> */
<del> const VERSION = '4.2.13';
<add> const VERSION = '4.2.14';
<ide>
<ide> /**
<ide> * Indicates if the application has "booted". | 1 |
Ruby | Ruby | move method definition below callbacks | 4d1f3f832485920a5bd49bc3a2c13debeaab5608 | <ide><path>app/models/action_text/rich_text.rb
<ide> class ActionText::RichText < ActiveRecord::Base
<ide>
<ide> serialize :body, ActionText::Content
<ide> delegate :to_s, :nil?, to: :body
<del> delegate :blank?, :empty?, :present?, to: :to_plain_text
<del>
<del> def to_plain_text
<del> body&.to_plain_text.to... | 1 |
Javascript | Javascript | add transform objectmode test | 6e05faa3d0de2b8540187de261dd848c7a5ca0cf | <ide><path>test/simple/test-stream2-transform.js
<ide> function run() {
<ide> fn({
<ide> same: assert.deepEqual,
<ide> equal: assert.equal,
<add> ok: assert,
<ide> end: function () {
<ide> count--;
<ide> run();
<ide> test('passthrough facaded', function(t) {
<ide> }, 10);
<ide> }, 10)... | 1 |
Go | Go | add "type" type for event-type enum | 247f4796d21d98909974410ff27b61233776ae3a | <ide><path>api/types/events/events.go
<ide> package events // import "github.com/docker/docker/api/types/events"
<ide>
<add>// Type is used for event-types.
<add>type Type = string
<add>
<add>// List of known event types.
<ide> const (
<del> // BuilderEventType is the event type that the builder generates
<del> Builde... | 4 |
PHP | PHP | use local config options if possible | 39985508183c017d5e3ed234996b0239b743e572 | <ide><path>src/Illuminate/Mail/MailManager.php
<ide> protected function createSendmailTransport(array $config)
<ide> /**
<ide> * Create an instance of the Amazon SES Swift Transport driver.
<ide> *
<add> * @param array $config
<ide> * @return \Illuminate\Mail\Transport\SesTransport
<ide> *... | 1 |
Python | Python | add test for unicodeyamlrenderer | 617c9825913cfc0cdeaa4405df0b885db0a9ff60 | <ide><path>rest_framework/tests/test_renderers.py
<ide> from rest_framework.response import Response
<ide> from rest_framework.views import APIView
<ide> from rest_framework.renderers import BaseRenderer, JSONRenderer, YAMLRenderer, \
<del> XMLRenderer, JSONPRenderer, BrowsableAPIRenderer, UnicodeJSONRenderer
<add> ... | 1 |
Javascript | Javascript | improve readability on conditional assignment | 64b177377c2aa8ae97c6f8752b69424d70a4fb4e | <ide><path>src/ng/http.js
<ide> function parseHeaders(headers) {
<ide> val = trim(line.substr(i + 1));
<ide>
<ide> if (key) {
<del> if (parsed[key]) {
<del> parsed[key] += ', ' + val;
<del> } else {
<del> parsed[key] = val;
<del> }
<add> parsed[key] = parsed[key] ? parsed[key]... | 1 |
Python | Python | fix review findings | 07adca5db92b0dedc90ef04a414cc9b49d7b8aaa | <ide><path>libcloud/container/drivers/lxd.py
<ide> def list_images(self):
<ide> images.append(self.get_image(fingerprint=fingerprint))
<ide> return images
<ide>
<del> def exc_list_storage_pools(self, detailed=True):
<add> def ex_list_storage_pools(self, detailed=True):
<ide> """
<ide>... | 2 |
Ruby | Ruby | remove unnecessary check | 36458b2356388a299d6b4a8b1d1053baf910efae | <ide><path>Library/Homebrew/patch.rb
<ide> def apply
<ide> end
<ide> end
<ide> rescue ErrorDuringExecution => e
<del> raise unless (f = resource.owner&.owner)
<del>
<add> f = resource.owner.owner
<ide> cmd, *args = e.cmd
<ide> raise BuildError.new(f, cmd, args, ENV.to_hash)
<ide> end | 1 |
Mixed | Javascript | implement cancelable option for alerts | 8e2906ae89660c977e66f2f8fae883d70acac9bf | <ide><path>Examples/UIExplorer/js/AlertExample.js
<ide> class SimpleAlertExampleBlock extends React.Component {
<ide> <Text>Alert with too many buttons</Text>
<ide> </View>
<ide> </TouchableHighlight>
<add> <TouchableHighlight style={styles.wrapper}
<add> onPress={() => Ale... | 4 |
Python | Python | add an modeladmin for easy management of tokens | db863be10cca5d43e37cace88fd2a500f6ee96f8 | <ide><path>rest_framework/authtoken/admin.py
<add>from django.contrib import admin
<add>from .models import Token
<add>
<add>
<add>class TokenAdmin(admin.ModelAdmin):
<add> list_display = ('key', 'user', 'created')
<add> fields = ('user',)
<add> ordering = ('-created',)
<add>
<add>
<add>admin.site.register(Tok... | 1 |
Python | Python | compare platform.architecture() correctly | 972eb4dfd31571bf4b6d3d0f4575036b360d9975 | <ide><path>numpy/distutils/system_info.py
<ide> def add_system_root(library_root):
<ide> vcpkg = shutil.which('vcpkg')
<ide> if vcpkg:
<ide> vcpkg_dir = os.path.dirname(vcpkg)
<del> if platform.architecture() == '32bit':
<add> if platform.architecture()[0] == '32bit':
<ide> spe... | 1 |
Text | Text | add changelog entry for | 0cc4ff77cca24dddeb9af42056ca735e588ce098 | <ide><path>actionview/CHANGELOG.md
<add>* Fix `collection_check_boxes` generated hidden input to use the name attribute provided
<add> in the options hash.
<add>
<add> *Angel N. Sciortino*
<add>
<ide> * Fix some edge cases for AV `select` helper with `:selected` option
<ide>
<ide> *Bogdan Gusiev* | 1 |
Javascript | Javascript | fix typo in `adapters.js` | 70305bbe4276697776e3cef9158b27d4c3534d5e | <ide><path>lib/internal/webstreams/adapters.js
<ide> function newStreamReadableFromReadableStream(readableStream, options = kEmptyObj
<ide> */
<ide> function newReadableWritablePairFromDuplex(duplex) {
<ide> // Not using the internal/streams/utils isWritableNodeStream and
<del> // isReadableNodestream utilities her... | 1 |
Text | Text | use consistent references | b708a6050c640217e3431ff5de73fad91576705b | <ide><path>activesupport/CHANGELOG.md
<ide> private
<ide> def set_current
<ide> Current.account = Account.find(params[:account_id])
<del> Current.person = Current.account.people.find(params[:person_id])
<add> Current.user = Current.account.users.find(params[:user_id])
<ide>... | 1 |
Python | Python | fix coertion for verbose and dry_run env variables | 8ea77a5980dea0ffe0ad5928db6bcdff636aadce | <ide><path>dev/breeze/src/airflow_breeze/utils/coertions.py
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this file... | 3 |
Text | Text | fix word in text | f4ca23a6e0491df2681f3e72d05aa8f0ea8a37b3 | <ide><path>guide/english/vim/search-and-replace/index.md
<ide> where...
<ide> - `[range]` indicates the lines to search (e.g. `1`: first line, `$`: last line, `%`: all lines).
<ide> - `[pattern]` is the text pattern to be searched.
<ide> - `[string]` is the string that will replace the text pattern.
<del>- `[flags]` tu... | 1 |
Ruby | Ruby | reduce array allocations | 7e299ce230b3928609415a9797c6abef00561c45 | <ide><path>activesupport/lib/active_support/inflector/methods.rb
<ide> def const_regexp(camel_cased_word)
<ide>
<ide> last = parts.pop
<ide>
<del> parts.reverse.inject(last) do |acc, part|
<add> parts.reverse!.inject(last) do |acc, part|
<ide> part.empty? ? acc : "#{part}(::#{acc})?"
<... | 1 |
Go | Go | use pivot_root instead of chroot"" | c38635020accaffa6868f19f308042be051132a0 | <ide><path>pkg/libcontainer/nsinit/mount.go
<ide> package nsinit
<ide> import (
<ide> "fmt"
<ide> "github.com/dotcloud/docker/pkg/system"
<add> "io/ioutil"
<ide> "os"
<ide> "path/filepath"
<ide> "syscall"
<ide> func setupNewMountNamespace(rootfs, console string, readonly bool) error {
<ide> if err := system.Chdir... | 1 |
Python | Python | set version to v2.1.0a3 | 87da5bcf5b11762605c60f57b3cb2019d458fcd3 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy-nightly'
<del>__version__ = '2.1.0a3.dev0'
<add>__version__ = '2.1.0a3'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ ... | 1 |
Ruby | Ruby | remove setter for the dispatcher class | 31cc4d621f57f35356b3395cf78d7cf043d6795c | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def define_url_helper(mod, route, name, opts, route_key, url_strategy)
<ide>
<ide> attr_accessor :formatter, :set, :named_routes, :default_scope, :router
<ide> attr_accessor :disable_clear_and_finalize, :resources_path_names
<del> at... | 1 |
Python | Python | remove names in todo | 18e5ce8d9ea5abd5eb549a923d74826ad9461016 | <ide><path>compression/entropy_coder/core/code_loader.py
<ide> def LoadBinaryCode(input_config, batch_size):
<ide> """
<ide> data = input_config.data
<ide>
<del> # TODO(damienv): Possibly use multiple files (instead of just one).
<add> # TODO: Possibly use multiple files (instead of just one).
<ide> file_list ... | 4 |
PHP | PHP | update request usage in view classes | 50e8b21249dded5d8bd0671f8f19015e7309dd22 | <ide><path>src/View/JsonView.php
<ide> public function render($view = null, $layout = null)
<ide> if ($this->viewVars['_jsonp'] === true) {
<ide> $jsonpParam = 'callback';
<ide> }
<del> if (isset($this->request->query[$jsonpParam])) {
<del> $return = spr... | 2 |
Java | Java | remove animationregistry from uimanagemodule | 16350ae09b4fb5bbeb3edc8cc9df623e4048c6b1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> private final JSResponderHandler mJSResponderHandler = new JSResponderHandler();
<ide> private final RootViewManager mRootViewManager = new RootViewManager();
<ide>
<del> public NativeViewHierarchyManager(
<de... | 3 |
Python | Python | fix train loop for train_textcat example | 4c5f265884776f7c643a2f37150f339a09549231 | <ide><path>examples/training/train_textcat.py
<ide> def main(model=None, output_dir=None, n_iter=20, n_texts=2000, init_tok2vec=None
<ide> textcat.model.tok2vec.from_bytes(file_.read())
<ide> print("Training the model...")
<ide> print("{:^5}\t{:^5}\t{:^5}\t{:^5}".format("LOSS", "P", "R",... | 1 |
Python | Python | fix implementation errors. | e3aa0f65e8a5a453e967ac2dc343c7cb96217548 | <ide><path>ciphers/rsa_factorization.py
<ide> The program can efficiently factor RSA prime number given the private key d and
<ide> public key e.
<ide> Source: on page 3 of https://crypto.stanford.edu/~dabo/papers/RSA-survey.pdf
<add>More readable source: https://www.di-mgt.com.au/rsa_factorize_n.html
<ide> large numbe... | 1 |
Javascript | Javascript | simplify the testcase | 8a1b008a4631a4197f4f101a5e3eec0981fb693a | <ide><path>test/configCases/source-map/namespace-source-path-no-truncate/index.js
<del>it("should include webpack://mynamespace/./[id].js in SourceMap", function () {
<add>it("should include [id].js in SourceMap", function () {
<ide> var fs = require("fs");
<ide> var source = fs.readFileSync(__filename + ".map", "utf... | 2 |
Java | Java | declare serialversionuid on defaultaopproxyfactory | 1af21bb4513e27add1b32a024fd10e9e69253776 | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/DefaultAopProxyFactory.java
<ide> * @see AdvisedSupport#setProxyTargetClass
<ide> * @see AdvisedSupport#setInterfaces
<ide> */
<del>@SuppressWarnings("serial")
<ide> public class DefaultAopProxyFactory implements AopProxyFactory, Serializable {
<i... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.