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 | fix typo in bash_history mount example | 655766ed955477299fac95a0fcd60af58f2b5be8 | <ide><path>docs/userguide/dockervolumes.md
<ide> Only the current container can use a private volume.
<ide> The `-v` flag can also be used to mount a single file - instead of *just*
<ide> directories - from the host machine.
<ide>
<del> $ docker run --rm -it -v ~/.bash_history:/.bash_history ubuntu /bin/bash
<add>... | 1 |
Python | Python | add view_name argument to hyperlinkedidentityfield | 484ee8cc273eb9769549ee42ee574dc76c77fc02 | <ide><path>rest_framework/fields.py
<ide> class HyperlinkedIdentityField(Field):
<ide> """
<ide> A field that represents the model's identity using a hyperlink.
<ide> """
<add> def __init__(self, *args, **kwargs):
<add> try:
<add> self.view_name = kwargs.pop('view_name')
<add> ex... | 1 |
Javascript | Javascript | remove dev timeout warnings | 776dc97437fba0696217aabc638c302379a5808d | <ide><path>Libraries/Interaction/InteractionManager.js
<ide> var setImmediate = require('setImmediate');
<ide>
<ide> type Handle = number;
<ide>
<del>/**
<del> * Maximum time a handle can be open before warning in DEV.
<del> */
<del>var DEV_TIMEOUT = 2000;
<del>
<ide> var _emitter = new EventEmitter();
<ide> var _int... | 1 |
Javascript | Javascript | add test for _setsimultaneousaccepts() | 3235d318dce78799d244661eb72ed755e4e3fd1e | <ide><path>test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js
<add>'use strict';
<add>
<add>const { expectWarning } = require('../common');
<add>const net = require('net');
<add>
<add>expectWarning(
<add> 'DeprecationWarning',
<add> 'net._setSimultaneousAccepts() is deprecated and will be remo... | 1 |
Ruby | Ruby | add test for negated build.with? | e14fedd1b35480ea3707689db044140d18662b9c | <ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb
<ide> def method_called_in_block?(node, method_name)
<ide> end
<ide>
<ide> # Check if method_name is called among the direct children nodes in the given node
<add> # Check if the node itself is the method
<ide> def method_called?(node, m... | 3 |
Text | Text | fix typos in vue intro | 43d538ce2d203a9f21afbaca90cea953b644969c | <ide><path>guide/english/vue/index.md
<ide> But on the other hand, Vue.js can also be leveraged to create powerful single pa
<ide> such as `vue-router` for page routing and `vuex` for state management.
<ide>
<ide> Its main attributes are the following:
<del>* It's approachable: if you know basic HTML, CSS & JavaScript... | 1 |
Javascript | Javascript | fix arguments order in assert.strictequal | 60743638cc0c5b70bc2fc998ab4d0e13c59a26f7 | <ide><path>test/parallel/test-http-pause.js
<ide> server.listen(0, function() {
<ide> });
<ide>
<ide> process.on('exit', () => {
<del> assert.strictEqual(expectedServer, resultServer);
<del> assert.strictEqual(expectedClient, resultClient);
<add> assert.strictEqual(resultServer, expectedServer);
<add> assert.stric... | 1 |
Mixed | Python | add comment about auto-generated file [ci skip] | 8736bfc0521c63fe11034eb7ece1bc460ec0f545 | <ide><path>website/setup/jinja_to_js.py
<ide> def main(
<ide> # fmt: on
<ide> ):
<ide> """Convert a jinja2 template to a JavaScript module."""
<del> compiler = JinjaToJS(
<del> template_path.parent, template_path.parts[-1], js_module_format="es6"
<del> )
<add> tpl_file = template_path.parts[-1]
... | 2 |
Javascript | Javascript | add more test coverage for nested memo() | 14be29b2b97f2be6c82955acc0455fbac22ec403 | <ide><path>packages/react-reconciler/src/__tests__/ReactMemo-test.internal.js
<ide> describe('memo', () => {
<ide> expect(ReactNoop.getChildren()).toEqual([span('1!')]);
<ide> });
<ide>
<add> it('supports defaultProps defined on the memo() return value', async () => {
<add> function Counter({... | 1 |
Javascript | Javascript | update version to 0.27.1 | 7278115d96b64a24b17adef0b2e45c231e58be2a | <ide><path>d3.js
<del>d3 = {version: "0.27.0"}; // semver
<add>d3 = {version: "0.27.1"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide><path>d3.min.js
<del>(function(){var o=null;d3={version:"0.27.0"};if(!Date.now)Date.now=function(){return+new Date};if(!Object.create)... | 3 |
Python | Python | add depth argument for text classifier | 3cdee79a0ca24d4262f1a7444050485d107a6d4a | <ide><path>spacy/_ml.py
<ide> def SpacyVectors(docs, drop=0.):
<ide>
<ide>
<ide> def build_text_classifier(nr_class, width=64, **cfg):
<add> depth = cfg.get('depth', 2)
<ide> nr_vector = cfg.get('nr_vector', 5000)
<ide> pretrained_dims = cfg.get('pretrained_dims', 0)
<ide> with Model.define_operators({... | 1 |
PHP | PHP | remove pointless code | cf16ae055f185761f3430002d23eb900b2c8884a | <ide><path>lib/Cake/Routing/Route/CakeRoute.php
<ide> public function parse($url) {
<ide> $route[$key] = $value;
<ide> }
<ide>
<del> foreach ($this->keys as $key) {
<del> if (isset($route[$key])) {
<del> $route[$key] = $route[$key];
<del> }
<del> }
<del>
<ide> if (isset($route['_args_'])) {
<ide> li... | 1 |
Text | Text | correct the word "remove" | 4f3674cc37b1e3bc19ecf4f4e606543f2ce03d8b | <ide><path>errors/future-webpack5-moved-to-webpack5.md
<ide> The `future.webpack5` option has been moved to `webpack5` in `next.config.js`.
<ide>
<ide> #### Possible Ways to Fix It
<ide>
<del>If you had the value `true` you can removed the option as webpack 5 is now the default for all Next.js apps unless opted out.
... | 1 |
Ruby | Ruby | remove unused match variables in selector | 01ac925b78b695789731e79156fd8ed255564192 | <ide><path>actionpack/lib/action_view/vendor/html-scanner/html/selector.rb
<ide> def simple_selector(statement, values, can_negate = true)
<ide> # Get identifier, class, attribute name, pseudo or negation.
<ide> while true
<ide> # Element identifier.
<del> next if statement.sub!(/^#(\?|[\w\-]... | 1 |
Ruby | Ruby | add test for object conditional with scope | 1d6ac2246255d33eb9e4f1b1237c3b5d59ad2bde | <ide><path>activesupport/test/callbacks_test.rb
<ide> def run; run_callbacks :foo; end
<ide> }
<ide> end
<ide>
<add> # FIXME: do we really want to support classes as conditionals? There were
<add> # no tests for it previous to this.
<add> def test_class_conditional_with_scope
<add> z = []
<add... | 1 |
Java | Java | update javadoc for publicresourceurlprovider | 10e1a805403883c9bc9ed19205e6306ffb01db73 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PublicResourceUrlProvider.java
<ide>
<ide>
<ide> /**
<del> * A central component for serving static resources that is aware of Spring MVC
<del> * handler mappings and provides methods to determine the public URL path that
<del> * a client... | 1 |
Java | Java | remove timer proxy | ed6a3a6c74e2abc3c6dc911aa354bcd38458cd32 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java
<ide> public void doFrame(long frameTimeNanos) {
<ide> }
<ide>
<ide> if (mTimersToCall != null) {
<del> mJSTimers.callTimers(mTimersToCall);
<add> mReactApplicationContext.getJSModule(JSTimers.class).c... | 2 |
Python | Python | move exec_command tests out of the file itself | c29a68e5a5978a1e32fefb8776974f94ab343845 | <ide><path>numpy/distutils/exec_command.py
<del>#!/usr/bin/env python
<ide> """
<ide> exec_command
<ide>
<ide> def _quote_arg(arg):
<ide> return '"%s"' % arg
<ide> return arg
<ide>
<del>
<del>def test_nt(**kws):
<del> pythonexe = get_pythonexe()
<del> echo = find_executable('echo')
<del> using_cy... | 2 |
Python | Python | fix line too long in mnist_acgan | 1ef28433ba6899c31f1cc3133edc1bf1def0bd35 | <ide><path>examples/mnist_acgan.py
<ide> def build_discriminator():
<ide> # Salimans et al., 2016
<ide> # https://arxiv.org/pdf/1606.03498.pdf (Section 3.4)
<ide> soft_zero, soft_one = 0, 0.95
<del> y = np.array([soft_one] * len(image_batch) + [soft_zero] * len(image_batch... | 1 |
Javascript | Javascript | fix wrong constructor | c35c65b4778f39c0896712fdc7bde380c4577629 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide> var state = new THREE.WebGLState( _gl, extensions, paramThreeToGL );
<ide> var properties = new THREE.WebGLProperties();
<ide> var objects = new THREE.WebGLObjects( _gl, properties, this.info );
<del> var programCac... | 1 |
Python | Python | remove sentence about usage of rmsprop for rnn | 2f55055a9f053b35fa721d3eb75dd07ea5a5f1e3 | <ide><path>keras/optimizers.py
<ide> class RMSprop(Optimizer):
<ide> at their default values
<ide> (except the learning rate, which can be freely tuned).
<ide>
<del> This optimizer is usually a good choice for recurrent
<del> neural networks.
<del>
<ide> # Arguments
<ide> lr: float >= 0. Lear... | 1 |
Ruby | Ruby | remove unused variable | e56bdf3663339336732d391b396397c1f64433cb | <ide><path>activerecord/test/cases/relation/mutation_test.rb
<ide> def relation
<ide> relation.uniq! :foo
<ide> end
<ide>
<del> e = assert_deprecated(/use distinct_value instead/) do
<add> assert_deprecated(/use distinct_value instead/) do
<ide> assert_equal :foo, relation.uniq_value # ... | 1 |
Javascript | Javascript | remove clamp-to-zero from webgl morph target code | 69aba65161ad30890cb882dfdcccdd5d65e529be | <ide><path>src/renderers/webgl/WebGLMorphtargets.js
<ide> function WebGLMorphtargets( gl ) {
<ide>
<ide> }
<ide>
<del> var morphBaseInfluence = geometry.morphTargetsRelative ? 1 : Math.max(0, 1 - morphInfluencesSum);
<add> var morphBaseInfluence = geometry.morphTargetsRelative ? 1 : 1 - morphInfluencesSum;
<ide> ... | 1 |
Javascript | Javascript | improve color detection | f871c80a6d4a78438d6e19ec9ef812d53fc75c92 | <ide><path>lib/internal/tty.js
<ide> const COLORS_16m = 24;
<ide> // Copyright (C) 1996-2016 Free Software Foundation, Inc. Copying and
<ide> // distribution of this file, with or without modification, are permitted
<ide> // provided the copyright notice and this notice are preserved.
<del>const TERM_ENVS = [
<del> 'e... | 2 |
Mixed | Javascript | hide the poster when play fires. closes | f980cdb1fbd6aba9967fb06190a7b2f37882131f | <ide><path>CHANGELOG.md
<ide> CHANGELOG
<ide> * @mmcc added a VERSION key to the videojs object ([view](https://github.com/videojs/video.js/pull/1798))
<ide> * @mmcc fixed an issue with text track hiding introduced in #1681 ([view](https://github.com/videojs/video.js/pull/1804))
<ide> * Export video.js as a named AMD m... | 4 |
Java | Java | fix @since typo | c7401dbe1f31fe0310d0edae3f7f9672b34b850a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/InterceptorRegistration.java
<ide> public InterceptorRegistration pathMatcher(PathMatcher pathMatcher) {
<ide>
<ide> /**
<ide> * Specify an order position to be used. Default is 0.
<del> * @since 4.23
<add> * @since 4.3.23
<i... | 1 |
Mixed | Python | fix merge conflicts | e2abb5ef2c12a57f973331eb7e0fb0b4e19419bf | <ide><path>docs/templates/getting-started/faq.md
<ide> layer_output = get_3rd_layer_output([X, 0])[0]
<ide> layer_output = get_3rd_layer_output([X, 1])[0]
<ide> ```
<ide>
<del>Another more flexible way of getting output from intermediate layers is to use the [functional API](/getting-started/functional-api-guide).
<ad... | 12 |
Javascript | Javascript | fix require of performancenow | b01feb41d844755b235c32d3f9576a5d2e02e0e0 | <ide><path>Libraries/Experimental/IncrementalExample.js
<ide> const IncrementalPresenter = require('IncrementalPresenter');
<ide> const JSEventLoopWatchdog = require('JSEventLoopWatchdog');
<ide> const StaticContainer = require('StaticContainer.react');
<ide>
<del>const performanceNow = require('performanceNow');
<add... | 2 |
Text | Text | update podfile documentation for rn >= 0.42.0 | 6336e4d41eccbe83212db88d00a73450f8353d3b | <ide><path>docs/IntegrationWithExistingApps.md
<ide> target 'NumberTileGame' do
<ide> 'RCTWebSocket', # needed for debugging
<ide> # Add any other subspecs you want to use in your project
<ide> ]
<add> # Explicitly include Yoga if you are using RN >= 0.42.0
<add> pod "Yoga", :path => "../node_modules/react-... | 1 |
Javascript | Javascript | apply suggestions from code review | 05cf60677b0cdac47ce6b860cbb7b41957a2cbba | <ide><path>src/Angular.js
<ide> function bindJQuery() {
<ide> * @description
<ide> * Restores the pre-1.8 behavior of jqLite that turns XHTML-like strings like
<ide> * `<div /><span />` to `<div></div><span></span>` instead of `<div><span></span></div>`.
<del> * The new behavior is a security fix so if you use this ... | 2 |
PHP | PHP | support serializable objects | 1d7fa4dce39703c819e86af1fd26d685dfdf9a8b | <ide><path>src/Log/Engine/BaseLog.php
<ide> use Cake\Core\InstanceConfigTrait;
<ide> use JsonSerializable;
<ide> use Psr\Log\AbstractLogger;
<add>use Serializable;
<ide>
<ide> /**
<ide> * Base log engine class.
<ide> protected function _format(string $message, array $context = []): string
<ide> co... | 2 |
Ruby | Ruby | improve performance of ar object instantiation | 8fee923888192a658d8823b31e77ed0683dfd665 | <ide><path>activerecord/lib/active_record/attribute_set/builder.rb
<ide> def initialize(types)
<ide> end
<ide>
<ide> def build_from_database(values = {}, additional_types = {})
<del> attributes = build_attributes_from_values(values, additional_types)
<add> build_from_database_pairs(values.key... | 5 |
Javascript | Javascript | fix borderexample for dynamiccolorios | f6d0f9deaccdc53114d47b8a69c49fda7cb1f8e1 | <ide><path>packages/rn-tester/js/examples/Border/BorderExample.js
<ide> const {
<ide> StyleSheet,
<ide> View,
<ide> PlatformColor,
<add> Platform,
<ide> DynamicColorIOS,
<ide> } = require('react-native');
<ide>
<ide> const styles = StyleSheet.create({
<ide> },
<ide> border15: {
<ide> borderWidth: 10,
... | 1 |
Python | Python | add pronic number implementation | 076193eefa161a2030ca4b1ee60b285d4a50e4c6 | <ide><path>maths/pronic_number.py
<add>"""
<add>== Pronic Number ==
<add>A number n is said to be a Proic number if
<add>there exists an integer m such that n = m * (m + 1)
<add>
<add>Examples of Proic Numbers: 0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 110 ...
<add>https://en.wikipedia.org/wiki/Pronic_number
<add>"""
<add>
... | 1 |
PHP | PHP | remove debug code | 3fac8f913402880af9578766a0a9242c6e6649ee | <ide><path>src/ORM/TableRegistry.php
<ide> public static function remove($alias)
<ide> static::$_fallbacked[$alias]
<ide> );
<ide> }
<del>
<del> public static function keys() { return array_keys(static::$_instances); }
<ide> } | 1 |
Text | Text | fix image spec json example | 715e78631d727ac6db9f08a8537a82aa56919f08 | <ide><path>image/spec/v1.1.md
<ide> Here is an example image JSON file:
<ide> "/var/job-result-data": {},
<ide> "/var/log/my-app-logs": {},
<ide> },
<del> "WorkingDir": "/home/alice",
<add> "WorkingDir": "/home/alice"
<ide> },
<ide> "rootfs": {
<ide> "diff_ids... | 3 |
PHP | PHP | add tests for generating month selects | ed75f986b72fe371c33ed28d654842842582d050 | <ide><path>src/View/Input/DateTime.php
<ide> public function render(array $data) {
<ide>
<ide> $templateOptions = [];
<ide> foreach ($this->_selects as $select) {
<del> if ($data[$select] !== false) {
<del> $method = $select . 'Select';
<del> $data[$select]['name'] = $data['name'] . "[" . $select . "]";
<d... | 2 |
Ruby | Ruby | add os.mac? and os.linux? | c511d7d2f43369773940dbb8fb8fbe8ed2153127 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def remove_macosxsdk version=MacOS.version
<ide> end
<ide>
<ide> def macosxsdk version=MacOS.version
<del> return unless MACOS
<add> return unless OS.mac?
<ide> # Sets all needed lib and include dirs to CFLAGS, CPPFLAGS, LDFLAGS.
<ide> remove_macosx... | 10 |
PHP | PHP | add hasscope to the builder | d370eb18092210adadcbdd857f97d4c1dc2784c3 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public static function hasGlobalMacro($name)
<ide> return isset(static::$macros[$name]);
<ide> }
<ide>
<add> /**
<add> * Determine if the given model has a scope.
<add> *
<add> * @param string $method
<add> * @return bool
<ad... | 1 |
Python | Python | add test for ex_list_library_drives method | ec86c955469a51bfd5a732bfce811406e725f319 | <ide><path>libcloud/test/compute/test_cloudsigma_v2_0.py
<ide> def test_ex_close_vnc_tunnel(self):
<ide> status = self.driver.ex_close_vnc_tunnel(node=node)
<ide> self.assertTrue(status)
<ide>
<add> def test_ex_list_library_drives(self):
<add> drives = self.driver.ex_list_library_drives()
<ad... | 1 |
Javascript | Javascript | implement duration in http test double | 98d1110721faf0a5c62f5402e863f2c203783677 | <ide><path>benchmark/_http-benchmarkers.js
<ide> class TestDoubleBenchmarker {
<ide> }
<ide>
<ide> create(options) {
<add> const env = Object.assign({
<add> duration: options.duration,
<add> test_url: `http://127.0.0.1:${options.port}${options.path}`,
<add> }, process.env);
<add>
<ide> const ch... | 3 |
Javascript | Javascript | add sub-reducer support to navigationstackreducer | dcb68db758dfd8bdddeddf23c81a523a8506d7af | <ide><path>Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js
<ide> var {
<ide> } = NavigationExperimental;
<ide>
<ide> const NavigationBasicReducer = NavigationReducer.StackReducer({
<del> initialStates: [
<del> {key: 'First Route'}
<del> ],
<del> matchAction: action => action.type === 'pus... | 10 |
Python | Python | remove japanese from languages | 04e6a6518869b1ca15beb79694049e0fb164a2aa | <ide><path>spacy/tests/conftest.py
<ide> import pytest
<ide>
<ide>
<del>LANGUAGES = [English, German, Spanish, Italian, Japanese, French, Portuguese, Dutch,
<add>LANGUAGES = [English, German, Spanish, Italian, French, Portuguese, Dutch,
<ide> Swedish, Hungarian, Finnish, Bengali, Norwegian]
<ide>
<ide> | 1 |
Go | Go | fix data race in testlogevent | abfdaca3f86d7951693697fbd849078d6b406478 | <ide><path>api.go
<ide> func getEvents(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
<ide> wf.Flush()
<ide> if since != 0 {
<ide> // If since, send previous events that happened after the timestamp
<del> for _, event := range srv.events {
<add> for _, event := range srv.GetEvents() {
<ide> ... | 3 |
Text | Text | remove clunky sentence | 18e821bcd30a3907c537c0f3938238efb09773cd | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md
<ide> Assign the following three lines of text into the single variable `myStr` using
<ide>
<ide> You will need to use escape sequences to insert special characters correctly. You will ... | 1 |
Javascript | Javascript | remove unused variable | 857975d5e7e0d7bf38577db0478d9e5ede79922e | <ide><path>lib/_tls_wrap.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> var assert = require('assert');
<del>var constants = require('constants');
<ide> var crypto = require('crypto');
<ide> var net = require('net');
<ide> var tls = require('tls'); | 1 |
Python | Python | make dbapihook use get_uri from connection | 59c450ee5425a2d23ef813dbf219cde14df7c85c | <ide><path>airflow/hooks/dbapi.py
<ide> from contextlib import closing
<ide> from datetime import datetime
<ide> from typing import Any, Optional
<del>from urllib.parse import quote_plus, urlunsplit
<ide>
<ide> from sqlalchemy import create_engine
<ide>
<ide> def get_uri(self) -> str:
<ide> :return: the extra... | 7 |
Ruby | Ruby | add todos for rubocop migrations | 8cb90595b3ff0ef66813c3d4b130027b06cc4679 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_style
<ide> end
<ide>
<ide> def audit_file
<add> # TODO: check could be in RuboCop
<ide> actual_mode = formula.path.stat.mode
<ide> # Check that the file is world-readable.
<ide> if actual_mode & 0444 != 0444
<ide> def audit_fi... | 1 |
PHP | PHP | improve error message | 7698a812f36bcadbf846de9dc3c7c13fe1392327 | <ide><path>src/Http/Uri.php
<ide> public function __get(string $name)
<ide> if ($name === 'base' || $name === 'webroot') {
<ide> return $this->{$name};
<ide> }
<del>
<del> throw new Error("Cannot access attribute `{$name}`");
<add> throw new Error("Undefined property via __get(... | 2 |
Javascript | Javascript | fix react native tests | ec90ad127f3e862425732e00e68abfeb47cd88b2 | <ide><path>jest/hasteImpl.js
<ide> const cli = require('@react-native-community/cli');
<ide> const {haste} = (cli.loadConfig && cli.loadConfig()) || {
<ide> haste: {
<ide> providesModuleNodeModules: [],
<del> platforms: [],
<add> platforms: ['ios', 'android'],
<ide> },
<ide> };
<ide> | 1 |
Python | Python | simplify ufunc pickling | 2e3de29722cc42970a31fe6843c5aa0dbcf0ee7d | <ide><path>numpy/core/__init__.py
<ide> __all__ += shape_base.__all__
<ide> __all__ += einsumfunc.__all__
<ide>
<del># Make it possible so that ufuncs can be pickled
<del># Here are the loading and unloading functions
<del># The name numpy.core._ufunc_reconstruct must be
<del># available for unpickling to work.
<ad... | 1 |
Javascript | Javascript | add test cases for path | e18ebe8354b600ca868bb3abd65d8a159e190d17 | <ide><path>test/parallel/test-path.js
<ide> const failures = [];
<ide> // path.basename tests
<ide> assert.strictEqual(path.basename(f), 'test-path.js');
<ide> assert.strictEqual(path.basename(f, '.js'), 'test-path');
<add>assert.strictEqual(path.basename('.js', '.js'), '');
<ide> assert.strictEqual(path.basename(''), ... | 1 |
Text | Text | fix dublication in net.createserver() docs | c51d47d5df22234c34968ade0ae470ceb9343d48 | <ide><path>doc/api/net.md
<ide> added: v0.7.0
<ide> -->
<ide> * `options` {Object}
<ide> * `connectListener` {Function}
<add>
<ide> Alias to
<ide> [`net.createConnection(options[, connectListener])`][`net.createConnection(options)`].
<ide>
<ide> then returns the `net.Socket` that starts the connection.
<ide> <!-- YAML... | 1 |
Python | Python | add version string | 7856656df0c60d038f2d2c584e3bf9a5420cc801 | <ide><path>djangorestframework/__init__.py
<add>VERSION="0.1.1"
<ide><path>djangorestframework/tests/package.py
<add>"""Tests for the djangorestframework package setup."""
<add>from django.test import TestCase
<add>import djangorestframework
<add>
<add>class TestVersion(TestCase):
<add> """Simple sanity test to che... | 2 |
Javascript | Javascript | add tests for format('zz') | d45f06de4ef873e305e32d3c74c0792595b8f533 | <ide><path>test/moment/zones.js
<ide> exports.zones = {
<ide> test.equal(m.zone(), 13 * 60);
<ide> test.equal(m.hours(), 0);
<ide> test.done();
<add> },
<add>
<add> "timezone format" : function (test) {
<add> test.equal(moment().zone(-60).format('ZZ'), "+0100", "-60 -> +0100");
<add... | 1 |
Javascript | Javascript | ignore duplicated entries in observer | ef9ecfbcfe8a5b1e8b1c601c48afa065cbdab614 | <ide><path>lib/perf_hooks.js
<ide> class PerformanceObserver extends AsyncResource {
<ide> for (var n = 0; n < entryTypes.length; n++) {
<ide> const entryType = entryTypes[n];
<ide> const list = getObserversList(entryType);
<add> if (this[kTypes][entryType]) continue;
<ide> const item = { obs... | 2 |
Javascript | Javascript | update route recognizer | cb3fb8ea50ee0d2f3fbe0211547ba121b5203fb3 | <ide><path>packages/ember-routing/lib/vendor/route-recognizer.js
<ide> define("route-recognizer",
<ide> }
<ide> for(var key in params) {
<ide> if (params.hasOwnProperty(key)) {
<del> if(!~allowedParams.indexOf(key)) {
<add> if(allowedParams.indexOf(key) === -1) {
<ide> ... | 1 |
PHP | PHP | make request helper and __get consistent | a6ff272c54677a9f52718292fc0938ffb1871832 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function request($key = null, $default = null)
<ide> return app('request')->only($key);
<ide> }
<ide>
<del> return data_get(app('request')->all(), $key, $default);
<add> $value = app('request')->__get($key);
<add>
<add> ret... | 3 |
Text | Text | fix grammatical error in readme file | 9c88ea8c580098c3decff945cc235a707410d39e | <ide><path>readme.md
<ide> Client-side routing behaves exactly like the browser:
<ide>
<ide> 1. The component is fetched
<ide> 2. If it defines `getInitialProps`, data is fetched. If an error occurs, `_error.js` is rendered
<del>3. After 1 and 2 complete, `pushState` is performed and the new component rendered
<add>3.... | 1 |
Text | Text | fix some casing of "on-demand isr" | 455d16419fe07322188a60f6f6abba82159757a6 | <ide><path>docs/api-reference/data-fetching/get-static-paths.md
<ide> description: API reference for `getStaticPaths`. Learn how to fetch data and gen
<ide> | Version | Changes |
<ide> | ------- | ------- |
<ide>
<del>| `v12.1.0` | [On-demand Incremental Static Regeneration](/docs/basic-features/data-fetching/incremen... | 3 |
PHP | PHP | remove unused import | b57eb65a6f499e5c32b80eccd2dd25935aba7f4d | <ide><path>src/Illuminate/Cache/CacheServiceProvider.php
<ide>
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Illuminate\Cache\Console\ClearCommand;
<del>use Illuminate\Cache\Console\CacheTableCommand;
<ide>
<ide> class CacheServiceProvider extends ServiceProvider
<ide> {
<ide><path>src/Illuminate/Database/M... | 3 |
PHP | PHP | add type hints | 43c62439315bbf91b7c70c8fe202a869efdf3de4 | <ide><path>src/Mailer/Email.php
<ide> use Cake\Core\StaticConfigTrait;
<ide> use Cake\Log\Log;
<ide> use Cake\Utility\Text;
<add>use Cake\View\ViewBuilder;
<ide> use InvalidArgumentException;
<ide> use JsonSerializable;
<ide> use LogicException;
<ide> public function __clone()
<ide> * @return $this
<ide> * @t... | 2 |
PHP | PHP | add a testplugin.comment for the new testcases | 8fc94e2ad91890e64c8acd6cc2af6dbd9f05c45a | <ide><path>tests/test_app/Plugin/TestPlugin/src/Model/Entity/Comment.php
<add><?php
<add>
<add>namespace TestPlugin\Model\Entity;
<add>
<add>use Cake\ORM\Entity;
<add>
<add>/**
<add> * Tests entity class used for asserting correct loading in plugins
<add> *
<add> */
<add>class Comment extends Entity {
<add>
<add>} | 1 |
Python | Python | update convert_to_threejs.py | 6c12df36047a7066ee6e29fa5ef942f71a165c7a | <ide><path>utils/converters/fbx/convert_to_threejs.py
<ide> def generate_material_object(material):
<ide> }
<ide>
<ide> else:
<del> print "Unknown type of Material", getMaterialName(material)
<add> print ("Unknown type of Material"), getMaterialName(material)
<ide>
<ide> # default to Lam... | 1 |
PHP | PHP | remove unused var | 42d4f20a31bb9a0fd01d55b9cf175e3e94f909b3 | <ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testBeforeRedirectCallbackWithArrayUrl()
<ide> $RequestHandler->response = $this->Controller->response;
<ide>
<ide> ob_start();
<del> $response = $RequestHandler->beforeRedirect(
<add> $Re... | 1 |
Ruby | Ruby | link tmp kegs during rescue | 096a5bdfb431b366d9a67340366195e805efc748 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install_dependency(dep, inherited_options)
<ide> oh1 "Installing #{formula.full_name} dependency: #{Formatter.identifier(dep.name)}"
<ide> fi.install
<ide> fi.finish
<del> rescue FormulaInstallationAlreadyAttemptedError
<del> # We already attemp... | 1 |
Ruby | Ruby | remove unnecessary arguments. references | c2ea2874475f4f93fe087ef63cdeee020dc98cdd | <ide><path>actionpack/lib/action_view/partials.rb
<ide> def render_partial_collection(partial_path, collection, partial_spacer_template
<ide> spacer = partial_spacer_template ? render(:partial => partial_spacer_template) : ''
<ide>
<ide> if partial_path.nil?
<del> render_partial_collection_wit... | 1 |
PHP | PHP | ignore error reported by phpstan | 7f2322c88cca8c60c06fc464ae25e80d46b15e11 | <ide><path>src/Database/Expression/WhenThenExpression.php
<ide> public function when($when, $type = null)
<ide> 'The `$when` argument must be either a non-empty array, a scalar value, an object, ' .
<ide> 'or an instance of `\%s`, `%s` given.',
<ide> ExpressionInterface::... | 1 |
Python | Python | fix dummy provider nodelocation ids; libcloud-70 | c2c1c71e8555b05aaa535cd83130fb9bbbbb580c | <ide><path>libcloud/drivers/dummy.py
<ide> def list_locations(self):
<ide> name="Paul's Room",
<ide> country='US',
<ide> driver=self),
<del> NodeLocation(id=1,
<add> NodeLocation(id=2,
<ide> name="London Loft",... | 1 |
PHP | PHP | use strict checks | 62c6aeb6f7e1e3d1a6e94f22a1d219ff7c1f50cc | <ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php
<ide> public function testEmptyPaginationResult()
<ide>
<ide> $this->Paginator->paginate($table);
<ide>
<del> $this->assertEquals(
<add> $this->assertSame(
<ide> 0,
<ide> $this->request->params['pag... | 1 |
Javascript | Javascript | add additional test case for variable leaking | 4f7e2da365ac10e4e718c05430bbedab64fe31f5 | <ide><path>test/cases/entry-inline/no-var-leak-strict/index.js
<add>var localVar = 42;
<add>
<add>it("should not leak localVar to other modules", () => {
<add> expect(localVar).toBe(42);
<add> import(/* webpackMode: "eager" */ "./module").then(module => {
<add> expect(module.default).toBe("undefined");
<add> });
<add>... | 4 |
Java | Java | use taskexecutor instead of threadpooltaskexecutor | e09c5fd9e567d6e9058205789e7bb3ecf54a87fb | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
<ide> import org.springframework.context.ApplicationContextAware;
<ide> import org.springframework.context.annotation.Bean;
<ide> import org.springframework.context.event.SmartApplicationListener;... | 2 |
Python | Python | add learning_rate to the summary | ee760015b4748488380c4a7b3d36fa6099e558ea | <ide><path>official/nlp/bert/model_training_utils.py
<ide> def _run_evaluation(current_training_step, test_iterator):
<ide> summary_writer = tf.summary.create_noop_writer()
<ide>
<ide> with summary_writer.as_default():
<add> if callable(optimizer.learning_rate):
<add> tf.summary.scalar(
<... | 1 |
Java | Java | add support for resolving message headers | 8ae88c20d1e8808d852e37908da2a5fc6b5e077a | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolutionException.java
<ide> import org.springframework.messaging.MessagingException;
<ide>
<ide> /**
<del> * Thrown by a ChannelResolver when it cannot resolve a channel name.
<add> * Thrown by a {@link DestinationResolver} when... | 18 |
Ruby | Ruby | move asset tests to assets_test file | e767cda6ea171cf888c8e46b0c62e3c7df801a38 | <ide><path>railties/test/application/assets_test.rb
<add># -*- coding: utf-8 -*-
<ide> require 'isolation/abstract_unit'
<ide> require 'active_support/core_ext/kernel/reporting'
<ide> require 'rack/test'
<ide> class ::PostsController < ActionController::Base ; end
<ide> assert_match(/\/assets\/rails-([0-z]+)\.png... | 2 |
Ruby | Ruby | run slowest checks last | a64e9e542f04b845f12f18f644d6d33a170e3ada | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def doctor
<ide> checks.methods.sort << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew"
<ide> else
<ide> ARGV.named
<del> end.select{ |method| method =~ /^check_/ }.uniq
<add> end.select{ |method| method =~ /^check_/ }.reverse.uniq... | 1 |
Javascript | Javascript | fix memory leak with hmr | 6172d3c2ebddceedec1c28e0e92fe3b2a3dc0c38 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> module.exports = class HotModuleReplacementPlugin {
<ide> return callback();
<ide> }
<ide> );
<add>
<add> const addParserPlugins = (parser, parserOptions) => {
<add> parser.hooks.expression
<add> .for("__webpack_hash__")
<add> .tap(
<add> "HotModu... | 1 |
Python | Python | fix evaluate for non-gpu | f24c2e3a8af785dd11b8d0a994732174290d688b | <ide><path>spacy/cli/evaluate.py
<ide> def evaluate(cmd, model, data_path, gpu_id=-1, gold_preproc=False):
<ide> Train a model. Expects data in spaCy's JSON format.
<ide> """
<ide> util.use_gpu(gpu_id)
<del> util.set_env_log(True)
<add> util.set_env_log(False)
<ide> data_path = util.ensure_path(da... | 2 |
Java | Java | shorten returnvaluetype name in handlerresult | dffd6d674ab9415caed1b82755634f52383cd7ba | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResult.java
<ide> public class HandlerResult {
<ide>
<ide> private final Optional<Object> returnValue;
<ide>
<del> private final ResolvableType returnValueType;
<add> private final ResolvableType returnType;
<ide>
<ide> private fi... | 5 |
Ruby | Ruby | remove override of activemodel#attribute_names | 322e62842ce656e4bb7b6562efc2a7f314fe5d43 | <ide><path>activemodel/lib/active_model/serialization.rb
<ide> module Serialization
<ide> # user.serializable_hash(include: { notes: { only: 'title' }})
<ide> # # => {"name" => "Napoleon", "notes" => [{"title"=>"Battle of Austerlitz"}]}
<ide> def serializable_hash(options = nil)
<del> attribute_nam... | 2 |
Python | Python | fix dpr<>bart config for rag | a7d46a060930242cd1de7ead8821f6eeebb0cd06 | <ide><path>src/transformers/models/albert/modeling_albert.py
<ide> def __init__(self, config):
<ide>
<ide> # position_ids (1, len position emb) is contiguous in memory and exported when serialized
<ide> self.register_buffer("position_ids", torch.arange(config.max_position_embeddings).expand((1, -1)))
<... | 7 |
Text | Text | fix validate_my_field signature | 69f605f30e271b5ca8efbf0638143fdf88877969 | <ide><path>docs/api-guide/serializers.md
<ide> Similar to Django forms, you can extend and reuse serializers through inheritanc
<ide> class MyBaseSerializer(Serializer):
<ide> my_field = serializers.CharField()
<ide>
<del> def validate_my_field(self):
<add> def validate_my_field(self, value):... | 1 |
PHP | PHP | use single quotes | c21c87defcf412c48c8b0cfe3eb8af89c8132ad5 | <ide><path>src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php
<ide> protected function buildClass($name)
<ide> $model = $this->qualifyClass($this->argument('name'));
<ide>
<ide> if ($this->argument('model')) {
<del> $model = $this->qualifyClass($this->argument("model"));
<add> ... | 1 |
Ruby | Ruby | teach commands to work with revisions | 17032a600c374f76d8571cf643b4f9a861d26758 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_cellar
<ide>
<ide> def cleanup_formula f
<ide> if f.installed?
<del> eligible_kegs = f.rack.subdirs.map { |d| Keg.new(d) }.select { |k| f.version > k.version }
<add> eligible_kegs = f.rack.subdirs.map { |d| Keg.new(d) }.select { |k| f.pkg_ver... | 3 |
PHP | PHP | fix issue | 73e63ed88ab1fdd39d24f3f2a2b5d32d9eb3b30d | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function whereDay($column, $operator, $value = null, $boolean = 'and')
<ide> $value = $value->format('d');
<ide> }
<ide>
<add> $value = str_pad($value, 2, '0', STR_PAD_LEFT);
<add>
<ide> return $this->addDateBasedWhere... | 1 |
Javascript | Javascript | fix typo in test name | d8b99791ab6c32d6cc864812fa88a1efddf39510 | <ide><path>packages/ember-metal/tests/computed_test.js
<ide> testBoth('circular keys should not blow up', function(get, set) {
<ide> equal(get(obj, 'foo'), 'foo 3', 'cached retrieve');
<ide> });
<ide>
<del>testBoth('redefining a property should undo old depenent keys', function(get ,set) {
<add>testBoth('redefining ... | 1 |
Java | Java | allow use of jsoninclude.value | e881d4b1441b4ade35806b6f06d5b7ebe1828e92 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java
<ide> public class Jackson2ObjectMapperBuilder {
<ide> private TypeResolverBuilder<?> defaultTyping;
<ide>
<ide> @Nullable
<del> private JsonInclude.Include serializationInclusion;
<add> private JsonInclude.V... | 1 |
Javascript | Javascript | improve norwegian bokmål. fixes | 42dfe2fb5ea9853c2defbf539f2b872aedb5403d | <ide><path>locale/nb.js
<ide> }(function (moment) {
<ide> return moment.defineLocale('nb', {
<ide> months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
<del> monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
<a... | 2 |
Javascript | Javascript | increase code coverage of cjs loader | 6ef4d9ef116f616ccaf189e651f83184a922379c | <ide><path>test/fixtures/cjs-module-wrap.js
<add>'use strict';
<ide> const assert = require('assert');
<ide> const m = require('module');
<ide>
<ide><path>test/fixtures/cjs-module-wrapper.js
<add>'use strict';
<add>const assert = require('assert');
<add>const m = require('module');
<add>
<add>global.mwc = 0;
<add>
<ad... | 4 |
Javascript | Javascript | use stripe checkout on donate page | d74d72446d9705ae4f1ba765d65735ebd766fa11 | <ide><path>client/src/components/Donation/DonateForm.js
<ide> import PropTypes from 'prop-types';
<ide> import { connect } from 'react-redux';
<ide> import { createSelector } from 'reselect';
<ide> import {
<del> Tabs,
<del> Tab,
<del> Row,
<add> Button,
<ide> Col,
<del> ToggleButtonGroup,
<add> Row,
<add> Tab... | 2 |
Text | Text | add changelogs for path | fb395975eff589fb1d8d7badd08ef0eb14077555 | <ide><path>doc/api/path.md
<ide> path.posix.basename('/tmp/myfile.html');
<ide> ## path.basename(path[, ext])
<ide> <!-- YAML
<ide> added: v0.1.25
<add>changes:
<add> - version: v6.0.0
<add> pr-url: https://github.com/nodejs/node/pull/5348
<add> description: Passing a non-string as the `path` argument will throw... | 1 |
Mixed | Javascript | accept regular expressions to validate | cf7be86cd927c99547f4774d79ea6d12d621033f | <ide><path>doc/api/assert.md
<ide> changes:
<ide> Expects the function `block` to throw an error.
<ide>
<ide> If specified, `error` can be a [`Class`][], [`RegExp`][], a validation function,
<del>an object where each property will be tested for, or an instance of error where
<del>each property will be tested for inclu... | 3 |
PHP | PHP | fix doc of dbosource->$_querycache | bb2286bc4303b17686e5e404d5e3ba1af7bafd06 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> class DboSource extends DataSource {
<ide> /**
<ide> * Caches serialized results of executed queries
<ide> *
<del> * @var array Maximum number of queries in the queries log.
<add> * @var array Cache of results from executed sql queries.
<ide> */
<ide> protect... | 1 |
PHP | PHP | add stub file i missed earlier | b7c1163ca69d9250362d31e88daa6f12a146b2c9 | <ide><path>tests/test_app/TestApp/Shell/AppShell.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license informa... | 1 |
Javascript | Javascript | match the transitionto apis | 8e8a7b950198c1407ab8f78bb34671eb8ed6dd2c | <ide><path>packages/ember-views/lib/views/states/in_buffer.js
<ide> Ember.merge(inBuffer, {
<ide> destroyElement: function(view) {
<ide> view.clearBuffer();
<ide> var viewCollection = view._notifyWillDestroyElement();
<del> viewCollection.transitionTo('preRender');
<add> viewCollection.transitionTo('pre... | 3 |
Javascript | Javascript | fix old redirect in courseware.js | 2b0428fe51c498f2b2af90c1605f8b5107fe72c1 | <ide><path>controllers/courseware.js
<ide> exports.coursewareNames = function(req, res) {
<ide>
<ide> exports.returnNextCourseware = function(req, res) {
<ide> if (!req.user) {
<del> return res.redirect('coursewares/intro');
<add> return res.redirect('coursewares/start-our-challenges');
<ide> }
<... | 1 |
PHP | PHP | remove unnecessary code | b4e6777ce18b2372d19569ca1314ef3d14a76cdf | <ide><path>src/Illuminate/Support/Testing/Fakes/BusFake.php
<ide> public function dispatched($command, $callback = null)
<ide> return true;
<ide> };
<ide>
<del> if (is_null($callback)) {
<del> return collect($this->commands[$command]);
<del> }
<del>
<ide> return col... | 5 |
Python | Python | set action for head requests | 908f91d8ef13649b6d658981e28ff52296b19f9f | <ide><path>rest_framework/viewsets.py
<ide> def as_view(cls, actions=None, **initkwargs):
<ide>
<ide> def view(request, *args, **kwargs):
<ide> self = cls(**initkwargs)
<add>
<add> if 'get' in actions and 'head' not in actions:
<add> actions['head'] = actions['get']
<add>
... | 2 |
PHP | PHP | add eloquent alias | 7dc60a86dc66a92d5046e811cb4fb325250c7a3b | <ide><path>config/app.php
<ide> 'Cookie' => 'Illuminate\Support\Facades\Cookie',
<ide> 'Crypt' => 'Illuminate\Support\Facades\Crypt',
<ide> 'DB' => 'Illuminate\Support\Facades\DB',
<add> 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
<ide> 'Event' => 'Illuminate\Support\Facades\Event',
... | 1 |
Javascript | Javascript | fix unbalanced chaining | ac10de2953edf070d12f229070a857b8bbb11a5d | <ide><path>packages/ember-metal/lib/watch_path.js
<ide> export function unwatchPath(obj, keyPath, meta) {
<ide>
<ide> if (counter === 1) {
<ide> m.writeWatching(keyPath, 0);
<del> m.readableChains().remove(keyPath);
<add> m.writableChains(makeChainNode).remove(keyPath);
<ide> } else if (counter > 1) {
<i... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.