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 |
|---|---|---|---|---|---|
Javascript | Javascript | remove additional certification from certs | 85d3587e592850820e46ec3ad1108647c57159dc | <ide><path>client/src/client-only-routes/ShowCertification.js
<ide> class ShowCertification extends Component {
<ide> </h1>
<ide> <h3>has successfully completed the freeCodeCamp.org</h3>
<ide> <h1>
<del> <strong>{certTitle} Certification</strong>
<add> ... | 1 |
Java | Java | add firstelement to collectionutils | d503bc2804b7bdbb9e9c46081a7fa454ac81c8d7 | <ide><path>spring-core/src/main/java/org/springframework/util/CollectionUtils.java
<ide> public static <T> T lastElement(@Nullable List<T> list) {
<ide> return list.get(list.size() - 1);
<ide> }
<ide>
<add> /**
<add> * Retrieve the first element of the given Set, using {@link SortedSet#first()}
<add> * or otherwi... | 1 |
PHP | PHP | add doc blocks | d590d78dc286c88fcf38588f3e0f1d4fbcc45989 | <ide><path>src/Illuminate/View/AppendableAttributeValue.php
<ide>
<ide> class AppendableAttributeValue
<ide> {
<add> /**
<add> * The attribute value.
<add> *
<add> * @var mixed
<add> */
<ide> public $value;
<ide>
<add> /**
<add> * Create a new appendable attribute value.
<add> *
<add... | 1 |
Python | Python | replace deprecated functions | f653bd2340b15ce2a22669ba136b77b2751e462e | <ide><path>im2txt/im2txt/ops/image_embedding_test.py
<ide> def setUp(self):
<ide> def _countInceptionParameters(self):
<ide> """Counts the number of parameters in the inception model at top scope."""
<ide> counter = {}
<del> for v in tf.all_variables():
<add> for v in tf.global_variables():
<ide> ... | 1 |
PHP | PHP | fix psr2 cs | dee3130a4bf21bc56578e16bce67a0370f3e4cea | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> protected function _authRequired(Controller $controller)
<ide> if ($this->session->check('_Token')) {
<ide> $tData = $this->session->read('_Token');
<ide>
<del> if (
<del> !empt... | 26 |
Python | Python | attempt workaround 2 for pylint bug on travis ci | d2486ec8437c7bdf209bc1cf6990c565065f7e6a | <ide><path>libcloud/common/dimensiondata.py
<ide> from base64 import b64encode
<ide> from time import sleep
<ide>
<del>from distutils.version import LooseVersion # pylint: disable=import-error
<add>from distutils.version import LooseVersion # pylint: disable-msg=E0611
<ide> from libcloud.utils.py3 import httplib
<id... | 1 |
Python | Python | allow extraction of chord results on error | 97fd3acac6515a9b783c73d9ab5575644a79449c | <ide><path>celery/backends/base.py
<ide> def _store_result(self, task_id, result, state,
<ide> 'children': self.current_task_children(request),
<ide> 'task_id': bytes_to_str(task_id),
<ide> }
<add> if request and getattr(request, 'group', None):
<add> meta['group_id'] =... | 6 |
Javascript | Javascript | reduce duplication of code | 31d6d9d0f7cc8e39bc183d66961ec09033a621c2 | <ide><path>lib/internal/quic/core.js
<ide> const {
<ide> IDX_QUIC_SESSION_STATS_STREAMS_OUT_COUNT,
<ide> IDX_QUIC_SESSION_STATS_KEYUPDATE_COUNT,
<ide> IDX_QUIC_SESSION_STATS_LOSS_RETRANSMIT_COUNT,
<add> IDX_QUIC_SESSION_STATS_HANDSHAKE_COMPLETED_AT,
<ide> IDX_QUIC_SESSION_STATS_ACK_DELAY_RETRANSMIT_C... | 1 |
Go | Go | fix microsecond -> milisecond | 5d818213ff3b9f8cda8e4fb3b071bef8fab782ad | <ide><path>internal/test/daemon/daemon.go
<ide> func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
<ide>
<ide> select {
<ide> case <-ctx.Done():
<del> case <-time.After(500 * time.Microsecond):
<add> case <-time.After(500 * time.Millisecond):
<ide> }
<ide> continue
<i... | 1 |
Javascript | Javascript | update imports in container package tests | cde76c52bdb8094ce072eacc0cd82176d1c72bde | <ide><path>packages/container/tests/container_test.js
<ide> import { ENV } from 'ember-environment';
<del>import { get } from 'ember-metal/property_get';
<add>import { get } from 'ember-metal';
<ide> import {
<ide> Registry,
<ide> getOwner,
<ide> OWNER
<del>} from 'container';
<del>import factory from 'container/... | 4 |
Javascript | Javascript | remove erroneous dropmembership() call | 9037decb28e324b78a310d2557dc12c177cbaee1 | <ide><path>test/simple/test-dgram-broadcast-multi-process.js
<ide> if (!cluster.isMaster) {
<ide> process.send({ message : buf.toString() });
<ide>
<ide> if (receivedMessages.length == messages.length) {
<del> listenSocket.dropMembership(LOCAL_BROADCAST_HOST);
<del> process.nextTick(function() { // T... | 1 |
Ruby | Ruby | add generic codesign_patched_binary method | 3b089ee90195c9ce024b4b820c85d9368af34b86 | <ide><path>Library/Homebrew/keg.rb
<ide> def binary_executable_or_library_files
<ide> elf_files
<ide> end
<ide>
<add> def codesign_patched_binary(file); end
<add>
<ide> private
<ide>
<ide> def resolve_any_conflicts(dst, dry_run: false, verbose: false, overwrite: false) | 1 |
PHP | PHP | add missing docblock | b3e091e290c1e09a50ee62bf586770e82d2ba89d | <ide><path>src/Datasource/QueryTrait.php
<ide> trait QueryTrait
<ide> * @var bool
<ide> */
<ide> protected $_eagerLoaded = false;
<add>
<ide> /**
<ide> * Returns the default table object that will be used by this query,
<ide> * that is, the table that will appear in the from clause.
<ide><pa... | 2 |
Python | Python | fix regression on np.dtype(ctypes.c_void_p) | af95739054cb3707447834861820c4231b1bc5e1 | <ide><path>numpy/core/_dtype_ctypes.py
<ide> def _from_ctypes_scalar(t):
<ide> """
<ide> Return the dtype type with endianness included if it's the case
<ide> """
<del> if t.__ctype_be__ is t:
<add> if getattr(t, '__ctype_be__', None) is t:
<ide> return np.dtype('>' + t._type_)
<del> elif t... | 2 |
Text | Text | add redux-little-router to ecosysme | de94043033fdd13dc4fa3cede2943143c6d28942 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide>
<ide> * [react-router-redux](https://github.com/reactjs/react-router-redux) — Ruthlessly simple bindings to keep React Router and Redux in sync
<ide> * [redial](https://github.com/markd... | 1 |
PHP | PHP | add observer mapping | ca53127994dda58a2dc4a4fe70f1528a1631bb02 | <ide><path>src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php
<ide> class EventServiceProvider extends ServiceProvider
<ide> */
<ide> protected $subscribe = [];
<ide>
<add> /**
<add> * The observers mapping for the application models.
<add> *
<add> * @var array
<add> */
<a... | 1 |
Python | Python | remove unused code from test.py | 53c88fa4111c05c3a4ad47c00eaa0fd7220b527a | <ide><path>tools/test.py
<ide> def __init__(self, cases, flaky_tests_mode):
<ide> self.failed = [ ]
<ide> self.flaky_failed = [ ]
<ide> self.crashed = 0
<del> self.flaky_crashed = 0
<ide> self.lock = threading.Lock()
<ide> self.shutdown_event = threading.Event()
<ide>
<ide> def RunSingle(self, p... | 1 |
Javascript | Javascript | fix packager breakages on node4 | 9a4e4e8ee8dc05341878f97c3b1735c6bf2757b9 | <ide><path>packager/react-packager/react-packager.js
<ide> const Logger = require('./src/Logger');
<ide>
<ide> const debug = require('debug');
<del>const invariant = require('invariant');
<add>const invariant = require('fbjs/lib/invariant');
<ide>
<ide> import type {Reporter} from './src/lib/reporting';
<ide>
<ide><... | 6 |
Java | Java | expose request id at the serverhttprequest level | bc3cf0eeb8b96a75a7a8a6351665975ed8b5081d | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java
<ide> public abstract class AbstractServerHttpRequest implements ServerHttpRequest {
<ide> private SslInfo sslInfo;
<ide>
<ide> @Nullable
<del> private String connectionId;
<add> private String id;
<ide>
<ide... | 8 |
Text | Text | add model card for the ner model | 4c3be2e71809f606b42b8af4486e6277d855c012 | <ide><path>model_cards/jplu/tf-xlm-r-ner-40-lang/README.md
<add># XLM-R + NER
<add>
<add>This model is a fine-tuned [XLM-Roberta-base](https://arxiv.org/abs/1911.02116) over the 40 languages proposed in [XTREME]([https://github.com/google-research/xtreme](https://github.com/google-research/xtreme)) from [Wikiann](http... | 1 |
Text | Text | add link to risc-v toolchain | 15875ade9341f29bc2e3f240db077df3a16a0914 | <ide><path>share/doc/homebrew/Custom-GCC-and-cross-compilers.md
<ide> Rather than merging in brews for either of these cases at this time, we're listi
<ide> * [MSP430 development](https://github.com/Homebrew/homebrew/issues/issue/2336)
<ide> * [OS161 development](https://github.com/maxpow4h/homebrew-os161) Your univers... | 1 |
Python | Python | fix nn.dataparallel compatibility with pytorch 1.5 | 0578a913005ed1b92de87ccb2b9c3d630f168d13 | <ide><path>src/transformers/modeling_lxmert.py
<ide> def forward(
<ide> # Process the visual attention mask
<ide> if visual_attention_mask is not None:
<ide> extended_visual_attention_mask = visual_attention_mask.unsqueeze(1).unsqueeze(2)
<del> extended_visual_attention_mask = ext... | 1 |
Text | Text | update chinese documentation | c6d3daba54b9c67a4696eeeea919c185a5fa4e6e | <ide><path>README_zh-hans.md
<ide> checkpoint: 检查点
<ide> - 对所有模型统一的API
<ide>
<ide> 1. 更低计算开销,更少的碳排放:
<del> - 研究人员可以分享亿训练的模型而非次次从头开始训练
<add> - 研究人员可以分享已训练的模型而非每次从头开始训练
<ide> - 工程师可以减少计算用时和生产环境开销
<ide> - 数十种模型架构、两千多个预训练模型、100多种语言支持
<ide>
<ide><path>README_zh-hant.md
<ide> Tokenizer 為所有的預訓練模型提供了預處理,並可以... | 2 |
Text | Text | fix typos for redux thunk | 9c12dfce4f166dae3181510783a16d6f00689873 | <ide><path>guide/english/redux/redux-thunk/index.md
<ide> title: Redux Thunk
<ide>
<ide> Redux Thunk is middleware that allows you to return functions, rather than just actions, within Redux<sup>1</sup>. This allows for delayed actions, including working with promises.
<ide>
<del>The reason we use this middleware is ... | 1 |
Javascript | Javascript | add onerror function to chunkedstreammanager | b6ff4aea2b8fa12395852adf21545d9ea5d16210 | <ide><path>src/core/chunked_stream.js
<ide> var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
<ide> });
<ide> },
<ide>
<add> onError: function ChunkedStreamManager_onError(err) {
<add> this._loadedStreamCapability.reject(err);
<add> },
<add>
<ide> getBeginChunk: function Chu... | 1 |
Javascript | Javascript | fix wrong order of the 'div' command | a705db84b02532e2504ade095297bd152041c6b7 | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> case "div":
<ide> var num2 = aCharstring[i - 1];
<ide> var num1 = aCharstring[i - 2];
<del> aCharstring.splice(i - 2, 3, num2 / num1);
<add> aCharstring.splice(i - 2, 3, num1 / num2);
<ide> i -= 2;
<ide... | 1 |
PHP | PHP | add marker interface for authentication middleware | a7523c5bcfaa0c48dbca0d16e8134de7d89c61c3 | <ide><path>src/Illuminate/Auth/Middleware/Authenticate.php
<ide> use Closure;
<ide> use Illuminate\Auth\AuthenticationException;
<ide> use Illuminate\Contracts\Auth\Factory as Auth;
<add>use Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests;
<ide>
<del>class Authenticate
<add>class Authenticate implements Aut... | 3 |
PHP | PHP | fix example test | b64d1e3dc89f940ef36f8b14490620b9bd54c870 | <ide><path>tests/Feature/ExampleTest.php
<ide> class ExampleTest extends TestCase
<ide> */
<ide> public function testBasicTest()
<ide> {
<del> $this->visit('/')
<del> ->see('Laravel');
<add> $response = $this->get('/');
<add>
<add> $response->assertHasStatus(200);
<ide> ... | 1 |
Python | Python | add test for array2string unexpected kwarg | 616017dc89d3d42f748d8fe1eb819b0f728862f7 | <ide><path>numpy/core/tests/test_arrayprint.py
<ide> import numpy as np
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_raises, assert_warns, HAS_REFCOUNT,
<add> assert_raises_regex,
<ide> )
<ide> import textwrap
<ide>
<ide> def test_basic(self):
<ide> assert_(np.array2string(a... | 1 |
Javascript | Javascript | prevent assignment on constructor properties | 5a674f3bb9d1118d11b333e3b966c01a571c09e6 | <ide><path>src/ng/parse.js
<ide> ASTCompiler.prototype = {
<ide> intoId = intoId || this.nextId();
<ide> self.recurse(ast.object, left, undefined, function() {
<ide> self.if_(self.notNull(left), function() {
<add> if (create && create !== 1) {
<add> self.addEnsureSafeAssignContex... | 2 |
Text | Text | update delete example using turbo | 58d66cfc75754c167a435d04fb4077ae6dde2d70 | <ide><path>guides/source/getting_started.md
<ide> we can delete an article from its own page:
<ide> <ul>
<ide> <li><%= link_to "Edit", edit_article_path(@article) %></li>
<ide> <li><%= link_to "Destroy", article_path(@article),
<del> method: :delete,
<del> data: { confirm: "Are you... | 1 |
Javascript | Javascript | add uncaught exception handler | d8bf99708d4288ca994f53c68a64affcbffafb2e | <ide><path>app.js
<ide> if (process.env.NODE_ENV !== 'development') {
<ide> require('newrelic');
<ide> }
<ide> require('dotenv').load();
<del>/**
<del> * Module dependencies.
<del> */
<add>// handle uncaught exceptions. Forever will restart process on shutdown
<add>process.on('uncaughtException', function (err) {
<ad... | 1 |
Text | Text | fix typo in src/readme.md | 37b4f4799a3851208e427ec27d4bca7c1ae0d489 | <ide><path>src/README.md
<ide> v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context,
<ide>
<ide> for (uint32_t i = 0; i < array_of_integers->Length(); i++) {
<ide> v8::Local<v8::Value> entry;
<del> if (array_of_integers->Get(context, i).ToLocal(&entry)) {
<add> if (!array_of_integers->Get(context, i... | 1 |
Python | Python | remove redundant parenthesis | a7272f47f67bb607198731fa69efe3f42f256ce0 | <ide><path>airflow/www/views.py
<ide> def _clear_dag_tis(
<ide>
<ide> response = self.render_template(
<ide> 'airflow/confirm.html',
<del> message=("Here's the list of task instances you are about to clear:"),
<add> message="Here's the list of task instances yo... | 1 |
Javascript | Javascript | fix syntax highlighting on the javascript | b6bc6c2ddf1ae1523ec7e4cb92db209cd6501181 | <ide><path>docs/spec/ngdocSpec.js
<ide> describe('ngdoc', function(){
<ide>
<ide> describe('@description', function(){
<ide> it('should support pre blocks', function(){
<del> var doc = new Doc("@description <pre>abc</pre>");
<add> var doc = new Doc("@description <pre><b>abc</b></pre>");
<ide> ... | 2 |
PHP | PHP | implement remaining tests for inputregistry | 64a932da51a25f394190e9ce6c69763e496e9c1b | <ide><path>tests/TestCase/View/Input/InputRegistryTest.php
<ide> public function setUp() {
<ide> $this->templates = new StringTemplate();
<ide> }
<ide>
<add>/**
<add> * Test adding new widgets.
<add> *
<add> * @return void
<add> */
<add> public function testAddInConstructor() {
<add> $widgets = [
<add> 'text' =>... | 1 |
Javascript | Javascript | add path require to top | 025967193ad4ccc53b9e3f1c89efabd381f0bd93 | <ide><path>static/index.js
<ide> window.onload = function() {
<ide> try {
<add> var path = require('path');
<add>
<ide> var startTime = Date.now();
<ide>
<ide> // Skip "?loadSettings=".
<ide> window.onload = function() {
<ide> // Normalize to make sure drive letter case is consistent on Windows
<ide> ... | 1 |
Ruby | Ruby | return result of last rake task | e889f315c8af6d67bf605069a0ffb8848aea145d | <ide><path>ci/ci_build.rb
<ide> def root_dir
<ide> end
<ide>
<ide> def rake(*tasks)
<del> tasks.map { |task| system "#{root_dir}/bin/rake", task }.join("\n")
<add> result = nil
<add> tasks.each { |task| result = system("#{root_dir}/bin/rake", task) }
<add> result
<ide> end
<ide>
<ide> puts "[CruiseControl] Rails ... | 1 |
Go | Go | support a proxy in splunk log driver | 3c4537d5b33d951237ea5e4cc123953eda7a37e7 | <ide><path>daemon/logger/splunk/splunk.go
<ide> func New(info logger.Info) (logger.Logger, error) {
<ide>
<ide> transport := &http.Transport{
<ide> TLSClientConfig: tlsConfig,
<add> Proxy: http.ProxyFromEnvironment,
<ide> }
<ide> client := &http.Client{
<ide> Transport: transport,
<ide><path>daemon/l... | 2 |
Javascript | Javascript | fix typos in read-buffer tests | 48a777287d1e0b4e199efe2137d5513c3edfc85d | <ide><path>test/parallel/test-buffer-read.js
<ide> read(buf, 'readUIntBE', [2, 0], 0xfd);
<ide> read(buf, 'readUIntLE', [2, 0], 0x48);
<ide>
<ide> // attempt to overflow buffers, similar to previous bug in array buffers
<del>assert.throws(() => Buffer.allocUnsafe(8).readFloatLE(0xffffffff),
<add>assert.throws(() => Bu... | 1 |
Python | Python | deprecate the decorators in np.testing.dec | f5579746f07a4f40d8b9391336fac0ee79659d22 | <ide><path>numpy/testing/_private/decorators.py
<ide>
<ide> """
<ide> import collections.abc
<add>import warnings
<ide>
<ide> from .utils import SkipTest, assert_warns, HAS_REFCOUNT
<ide>
<ide>
<ide> def slow(t):
<ide> """
<add> .. deprecated:: 1.20
<add> This decorator is retained for compatibility w... | 1 |
Text | Text | fix err_synthetic issue on v11.x | f31794bf1467eb156dad077647e2f075eb3757c7 | <ide><path>doc/api/errors.md
<ide> An attempt has been made to create a string longer than the maximum allowed
<ide> length.
<ide>
<ide> <a id="ERR_SYNTHETIC"></a>
<del>#### ERR_SYNTHETIC
<add>### ERR_SYNTHETIC
<ide>
<ide> An artificial error object used to capture the call stack for diagnostic
<ide> reports. | 1 |
Ruby | Ruby | add missing type to number_field_tag documentation | 07c4297282c9c2d0768922722ad2ab08dedf4d8d | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def email_field_tag(name, value = nil, options = {})
<ide> #
<ide> # ==== Examples
<ide> # number_field_tag 'quantity', nil, :in => 1...10
<del> # => <input id="quantity" name="quantity" min="1" max="9" />
<add> # =... | 1 |
PHP | PHP | remove unused use statements | 4dc1e9d86052982b55a138433e222c4cdad4c052 | <ide><path>src/Database/Type/ExpressionTypeCasterTrait.php
<ide> namespace Cake\Database\Type;
<ide>
<ide> use Cake\Database\Type;
<del>use Cake\Database\Type\ExpressionTypeInterface;
<ide>
<ide> /**
<ide> * Offers a method to convert values to ExpressionInterface objects
<ide><path>src/Database/Type/JsonType.php
<i... | 9 |
Ruby | Ruby | check git version | d73df34bc6ee5cbd989d11c6a927e2ca083b951c | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_leopard_ssl
<ide> end
<ide> end
<ide>
<add>def check_git_version
<add> # see https://github.com/blog/642-smart-http-support
<add> return unless system "/usr/bin/which -s git"
<add> `git --version`.chomp =~ /git version (\d)\.(\d)\.(\d)/
<add>
<add> if... | 1 |
Python | Python | add test for gh-11221 | 84286e6f728b2c852a1ed21e2d40765f3c625fa5 | <ide><path>numpy/core/tests/test_einsum.py
<ide> import numpy as np
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_array_equal, assert_almost_equal,
<del> assert_raises, suppress_warnings
<add> assert_raises, suppress_warnings, assert_raises_regex
<ide> )
<ide>
<ide> # Setup for op... | 1 |
Javascript | Javascript | add ability to unregister gestures from the system | 8282f906e183143095f6fcbf2aa991089dd4b216 | <ide><path>packages/sproutcore-touch/lib/system/gestures.js
<ide> SC.Gestures = SC.Object.create(
<ide> registeredGestures[name] = recognizer;
<ide> },
<ide>
<add> unregister: function(name) {
<add> var registeredGestures = this._registeredGestures;
<add>
<add> if (registeredGestures[name] !== undefined) ... | 2 |
Text | Text | update the readme | 3e3b5de71eb6465319c25d1fe7424af036e948e4 | <ide><path>README.md
<ide> 2. Unzip and open the app
<ide>
<ide> ## Basic Keyboard shortcuts
<add>Atom doesn't have much in the way of menus yet. Use these keyboard shortcuts to
<add>explore features.
<ide>
<ide> `cmd-o` : open file/directory
<ide>
<ide> `cmd-n` : new window
<ide>
<add>`cmd-r` : reload the current ... | 1 |
Javascript | Javascript | use assert regexp in tls no cert test | cfe7b34058716d9c9dfb143ecc865a30f433db5c | <ide><path>test/parallel/test-tls-no-cert-required.js
<ide> tls.createServer(assert.fail)
<ide> tls.createServer({})
<ide> .listen(0, common.mustCall(close));
<ide>
<del>assert.throws(() => tls.createServer('this is not valid'), TypeError);
<add>assert.throws(() => tls.createServer('this is not valid'),
<add> ... | 1 |
Python | Python | fix some test bugs | 259fff8f08dabd8198d2ec0f5abe99a05a5477d5 | <ide><path>numpy/core/tests/test_print.py
<ide> def test_complex_types():
<ide>
<ide> def test_complex_inf_nan():
<ide> """Check inf/nan formatting of complex types."""
<del> if sys.version_info >= (2, 6):
<add> if sys.version_info[:2] >= (2, 6):
<ide> TESTS = {
<ide> complex(np.inf, 0): ... | 2 |
Java | Java | react edit text changes | c0c5e2276dd82f088d357a272633984787a8632e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
<ide> private static boolean sameTextForSpan(
<ide> return true;
<ide> }
<ide>
<del> private boolean showSoftKeyboard() {
<add> protected boolean showSoftKeyboard() {
<ide> return mInputMethodManager.showSoftInput(t... | 1 |
Ruby | Ruby | use the correct reference to the redis connection | 2bc0c7ca023e5ea90312139066268fed16ff17c5 | <ide><path>actioncable/lib/action_cable/subscription_adapter/redis.rb
<ide> def subscribe(channel, message_callback, success_callback = nil)
<ide> end
<ide>
<ide> def unsubscribe(channel, message_callback)
<del> hi_redis_conn.pubsub.unsubscribe_proc(channel, message_callback)
<add> redis_conn... | 1 |
Python | Python | fix long double printing of nas | 4c88ab3e0020861488d77b6930d32474a7cce709 | <ide><path>numpy/core/arrayprint.py
<ide> def __init__(self, precision, sign=False):
<ide> self.sign = sign
<ide>
<ide> def __call__(self, x):
<del> if isnan(x):
<add> if isna(x):
<add> return str(x).replace('NA', _na_str, 1)
<add> elif isnan(x):
<ide> if self.si... | 1 |
Javascript | Javascript | inform devtools of commit priority level | 50b50c26f6724c559a3550b903d2cc2eeffdf092 | <ide><path>packages/react-reconciler/src/ReactFiberDevToolsHook.js
<ide> * @flow
<ide> */
<ide>
<add>import {enableProfilerTimer} from 'shared/ReactFeatureFlags';
<add>import {requestCurrentTime} from './ReactFiberScheduler';
<add>import {inferPriorityFromExpirationTime} from './ReactFiberExpirationTime';
<add>
<ide... | 2 |
Ruby | Ruby | fix typo in nodoc | 2114e6bf29f35e8bd01b4c49c55355c50b8946c0 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def get_builder_class
<ide> #
<ide> # This class should be called before the AppGenerator is required and started
<ide> # since it configures and mutates ARGV correctly.
<del> class ARGVScrubber # :nodoc
<add> class ARGVScrubber... | 1 |
Javascript | Javascript | remove memory leak of anonymous subclasses | fd4e1067999e6d9428ff86e8941863102ed57819 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> var ClassMixin = Ember.Mixin.create(
<ide> Ember.generateGuid(proto, 'ember');
<ide> meta(proto).proto = proto; // this will disable observers on prototype
<ide>
<del>
<del> Class.subclasses = Ember.Set ? new Ember.Set() : null;
<del> if (... | 4 |
PHP | PHP | add empty test methods | 0601ea16a4de8f93c9a63569843ef0b3ee28e5e1 | <ide><path>tests/TestCase/View/Input/DateTimeTest.php
<ide> public function testRenderSelected($selected) {
<ide> $this->assertContains('<option value="45" selected="selected">45</option>', $result);
<ide> }
<ide>
<add> public function testRenderEmptyValues() {
<add> $this->markTestIncomplete();
<add> }
<add>
<add... | 1 |
Go | Go | reduce memory allocation and remove channels | 816d602059f9fd0e0df816c5a55e7f1dc437c8d9 | <ide><path>docker/docker.go
<ide> const (
<ide> )
<ide>
<ide> func main() {
<add> if reexec.Init() {
<add> return
<add> }
<add>
<ide> // Set terminal emulation based on platform as required.
<ide> stdout, stderr, stdin := term.StdStreams()
<ide>
<ide> initLogging(stderr)
<ide>
<del> if reexec.Init() {
<del> ret... | 2 |
PHP | PHP | add strict parameter to inlist() and multiple() | fe0c7d348a8d4cb0ec6ce2bf083d6b9f9c6aa928 | <ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php
<ide> public function testInList() {
<ide> $this->assertFalse(Validation::inList('three', array('one', 'two')));
<ide> $this->assertFalse(Validation::inList('1one', array(0, 1, 2, 3)));
<ide> $this->assertFalse(Validation::inList('one', array(0, 1, 2, 3)));... | 2 |
Mixed | Javascript | add unknownprotocol timeout | 47d6cedd8582764c20ffd55b0efa62e3730028c1 | <ide><path>doc/api/http2.md
<ide> added: v8.4.0
<ide> The `'unknownProtocol'` event is emitted when a connecting client fails to
<ide> negotiate an allowed protocol (i.e. HTTP/2 or HTTP/1.1). The event handler
<ide> receives the socket for handling. If no listener is registered for this event,
<del>the connection is te... | 3 |
Ruby | Ruby | remove duplicated test | 7e7a60bd3fbfac9b02884f404bd31f3456f4022d | <ide><path>activestorage/test/service/gcs_service_test.rb
<ide> class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
<ide> assert_match(/storage\.googleapis\.com\/.*response-content-disposition=inline.*test\.txt.*response-content-type=text%2Fplain/,
<ide> @service.url(@key, expires_in: 2... | 1 |
Text | Text | add a changelog entry for [ci skip] | cbb32ec24449bb4716551dee3392f9981cc6117b | <ide><path>actionpack/CHANGELOG.md
<add>* Don't let strong parameters mutate the given hash via `fetch`
<add>
<add> Create a new instance if the given parameter is a `Hash` instead of
<add> passing it to the `convert_hashes_to_parameters` method since it is
<add> overriding its default value.
<add>
<add> ... | 1 |
Go | Go | convert inspect to cobra | 851c388ad9aec0547ca7fde24c307b262eaab599 | <ide><path>api/client/commands.go
<ide> package client
<ide>
<ide> // Command returns a cli command handler if one exists
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<del> return map[string]func(...string) error{
<del> "inspect": cli.CmdInspect,
<del> }[name]
<add> return map[string]func(... | 5 |
Text | Text | update changelog for 1.3.0-rc.4 and 1.2.26 | 84912134d5253be72079396099ab4322eb6b8f9a | <ide><path>CHANGELOG.md
<add><a name="1.3.0-rc.4"></a>
<add># 1.3.0-rc.4 unicorn-hydrafication (2014-10-01)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:**
<add> - get $$observe listeners array as own property
<add> ([a27d827c](https://github.com/angular/angular.js/commit/a27d827c22b0b6b3ba6b7495cf4fc338c693... | 1 |
Javascript | Javascript | add more comments | 80eff968292ab1024efbba6f55114ae2bba66579 | <ide><path>lib/string_decoder.js
<ide> function assertEncoding(encoding) {
<ide> }
<ide> }
<ide>
<add>// StringDecoder provides an interface for efficiently splitting a series of
<add>// buffers into a series of JS strings without breaking apart multi-byte
<add>// characters. CESU-8 is handled as part of the UTF-8 e... | 1 |
Javascript | Javascript | kill reactmount.getnode/getid/purgeid with fire | 4ba0e95a96507abbcb2819be328fc3d1ed3cc80f | <ide><path>src/renderers/dom/client/ReactMount.js
<ide> var ReactUpdateQueue = require('ReactUpdateQueue');
<ide> var ReactUpdates = require('ReactUpdates');
<ide>
<ide> var emptyObject = require('emptyObject');
<del>var containsNode = require('containsNode');
<ide> var instantiateReactComponent = require('instantiate... | 12 |
PHP | PHP | throw exception when no primary key and deleting | 549faad51c4b9ca05cc4e49f354e7b55d0f3afb9 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function destroy($ids)
<ide> */
<ide> public function delete()
<ide> {
<add> if (is_null($this->primaryKey))
<add> {
<add> throw new \Exception("No primary key defined on model.");
<add> }
<add>
<ide> if ($this->exists)
<ide> {
<ide>... | 1 |
Javascript | Javascript | add missing param to safelycalldestroy() | 23595ff593b2e53ddfec2a08e848704d15d84b51 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitBeforeMutationLifeCycles(
<ide> );
<ide> }
<ide>
<del>function commitHookEffectListUnmount(tag: HookEffectTag, finishedWork: Fiber) {
<add>function commitHookEffectListUnmount(
<add> tag: HookEffectTag,
<add> finishedWork: Fi... | 1 |
Mixed | Text | add ticks.samplesize option | fc76610b121d71fc5b903631d21edd04b886e3e0 | <ide><path>docs/axes/cartesian/README.md
<ide> The following options are common to all cartesian axes but do not apply to other
<ide> | ---- | ---- | ------- | -----------
<ide> | `min` | `number` | | User defined minimum value for the scale, overrides minimum value from data.
<ide> | `max` | `number` | | User defined ... | 3 |
Java | Java | fix switchmap to indicate boundary fusion | 90203b6f6962e7aa8259780b94fb591e4232ddba | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableSwitchMap.java
<ide> public void onSubscribe(Subscription s) {
<ide> @SuppressWarnings("unchecked")
<ide> QueueSubscription<R> qs = (QueueSubscription<R>) s;
<ide>
<del> int m = qs.reque... | 5 |
Python | Python | convert numpy types to their native python types | 24ee7f7ce51e1285ebc6cb34a9b4fb0361db9d6d | <ide><path>airflow/utils.py
<ide> from builtins import str, input, object
<ide> from past.builtins import basestring
<ide> from copy import copy
<del>from datetime import datetime, timedelta
<add>from datetime import datetime, date, timedelta
<ide> from dateutil.relativedelta import relativedelta # for doctest
<ide> f... | 1 |
Javascript | Javascript | support editable usestate hooks in devtools | bb2939ccc23c9895d798f889d9c32848be43225e | <ide><path>packages/react-debug-tools/src/ReactDebugHooks.js
<ide> const Dispatcher: DispatcherType = {
<ide> // Inspect
<ide>
<ide> type HooksNode = {
<add> id: number | null,
<add> isStateEditable: boolean,
<ide> name: string,
<ide> value: mixed,
<ide> subHooks: Array<HooksNode>,
<ide> function buildTree(roo... | 5 |
Javascript | Javascript | add chrome.properties for moz central build | 03032d21c40a50ff75fd7c4cf3e046c447d44a90 | <ide><path>make.js
<ide> target.mozcentral = function() {
<ide> 'components',
<ide> '../../LICENSE'],
<ide> DEFAULT_LOCALE_FILES =
<del> [LOCALE_SRC_DIR + 'en-US/viewer.properties'],
<add> [LOCALE_SRC_DIR + 'en-US/viewer.properties',
<add> LOCALE_SRC_DIR + 'en-US/chrome.pro... | 1 |
PHP | PHP | ignore invalid samesite value when parsing header | b45c664e5649397750a4617bba13266269e68166 | <ide><path>src/Http/Cookie/Cookie.php
<ide> public static function createFromHeaderString(string $cookie)
<ide> $data['expires'] = new DateTimeImmutable('@' . (time() + (int)$data['max-age']));
<ide> }
<ide>
<add> if ($data['samesite'] !== null) {
<add> // Ignore invalid value whe... | 2 |
Text | Text | add info on what's used for fswatch on aix | 8af25a39d32d2383be219fd3a56dc773fe9277b0 | <ide><path>doc/api/fs.md
<ide> to be notified of filesystem changes.
<ide> * On OS X, this uses `kqueue` for files and 'FSEvents' for directories.
<ide> * On SunOS systems (including Solaris and SmartOS), this uses `event ports`.
<ide> * On Windows systems, this feature depends on `ReadDirectoryChangesW`.
<add>* On Aix... | 1 |
Ruby | Ruby | check existing prs for exact file match | 1395259ad67c29c353ad0528bdc297d1bb2d39ab | <ide><path>Library/Homebrew/dev-cmd/bump-cask-pr.rb
<ide> def fetch_resource(cask, new_version, url, **specs)
<ide> end
<ide>
<ide> def check_open_pull_requests(cask, tap_full_name, args:)
<del> GitHub.check_for_duplicate_pull_requests(cask.token, tap_full_name, state: "open", args: args)
<del> end
<del>
<del>... | 3 |
Go | Go | accept platform spec on container create | 7a9cb29fb980c0ab3928272cdc24c7089b2fcf64 | <ide><path>api/server/router/container/container_routes.go
<ide> import (
<ide> "strconv"
<ide> "syscall"
<ide>
<add> "github.com/containerd/containerd/platforms"
<ide> "github.com/docker/docker/api/server/httputils"
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/backend"
<id... | 28 |
Ruby | Ruby | reuse available collection? check instead of macro | bfd0159413ac7941c80166b41856795d93158bb1 | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> def find_target?
<ide> def creation_attributes
<ide> attributes = {}
<ide>
<del> if (reflection.has_one? || reflection.macro == :has_many) && !options[:through]
<add> if (reflection.has_one? || reflection.co... | 3 |
Python | Python | verify np.ma.take works on scalars | 6e5aa5e6b7980021ba5de67c872fad70dd4f9c92 | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_take(self):
<ide> assert_equal(x.take([[0, 1], [0, 1]]),
<ide> masked_array([[10, 20], [10, 20]], [[0, 1], [0, 1]]))
<ide>
<add> # assert_equal crashes when passed np.ma.mask
<add> self.assertIs(x[1], np.ma.masked)
<add> ... | 1 |
Javascript | Javascript | prepare test-assert for strictequal linting | 9c6e23d10ff4cfefd9d12fbf4c8614049b9a0a0f | <ide><path>test/parallel/test-assert.js
<ide> try {
<ide> }
<ide>
<ide> try {
<del> assert.strictEqual(1, 2, 'oh no');
<add> assert.strictEqual(1, 2, 'oh no'); // eslint-disable-line no-restricted-syntax
<ide> } catch (e) {
<ide> assert.strictEqual(e.message, 'oh no');
<del> assert.strictEqual(e.generatedMessage,... | 1 |
Ruby | Ruby | check migration symlinks | b41a88eac4a1fe75af18d115d40c8821bcd2a160 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def migrate_tap_migration
<ide>
<ide> def migrate_formula_rename
<ide> Formula.installed.map(&:oldname).compact.each do |old_name|
<del> next unless (dir = HOMEBREW_CELLAR/old_name).directory? && !dir.subdirs.empty?
<add> old_name_dir = HOMEBREW_CE... | 1 |
Python | Python | fix retried tasks with expirations | 6c0abdbc0ecfcd40c3d7bc5b190166d4df1d2ac0 | <ide><path>celery/app/amqp.py
<ide> def as_task_v2(self, task_id, name, args=None, kwargs=None,
<ide> now + timedelta(seconds=expires), tz=timezone,
<ide> )
<ide> eta = eta and eta.isoformat()
<del> expires = expires and expires.isoformat()
<add> # If we retry a task `e... | 3 |
Java | Java | fix typo in rmisupporttests | d54b903d28c176c20abde6134a302092b3107daf | <ide><path>spring-context/src/test/java/org/springframework/remoting/rmi/RmiSupportTests.java
<ide> private void doTestRmiProxyFactoryBeanWithBusinessInterfaceAndExceptionAndRefres
<ide> assertThat(condition1).isFalse();
<ide> assertThatExceptionOfType(springExceptionClass).isThrownBy(() ->
<ide> proxy.setName(... | 1 |
Javascript | Javascript | use findone in controllers/story | 92f4c7a41a3896b2b91356cc959d1de54a70f565 | <ide><path>controllers/story.js
<ide> exports.returnIndividualStory = function(req, res, next) {
<ide>
<ide> if (story.length < 1) {
<ide> req.flash('errors', {
<del> msg: "404: We couldn't find a story with that name. Please double check the name."
<add> msg: "404: We couldn't find a story wit... | 1 |
Ruby | Ruby | fix minor formatting error | 0e8abd2d09277ef785b1a1b0e680c4f69cd9dee7 | <ide><path>activerecord/lib/active_record/validations.rb
<ide> def validates_length_of(*attrs)
<ide> # the same time, and a Comment's title must be unique. At the database-level,
<ide> # the actions performed by these users could be interleaved in the following manner:
<ide> #
<del> # User 1 ... | 1 |
Javascript | Javascript | remove cache from array of vectors uniforms | 9b7de2df47f49d3c0895039b21ea32750928e587 | <ide><path>src/renderers/webgl/WebGLUniforms.js
<ide> function setValue1iv( gl, v ) {
<ide>
<ide> function setValueV2a( gl, v ) {
<ide>
<del> var cache = this.cache;
<ide> var data = flatten( v, this.size, 2 );
<ide>
<del> if ( arraysEqual( cache, data ) ) return;
<del>
<ide> gl.uniform2fv( this.addr, data );
<ide... | 1 |
Ruby | Ruby | withdraw support for homebrew supplied *.pc files | fa3591681800f9da06cd2d0179a5ef9e63b10729 | <ide><path>Library/Homebrew/extend/os/mac/extend/ENV/std.rb
<ide> module Stdenv
<ide> # @private
<ide>
<del> undef homebrew_extra_pkg_config_paths, x11
<del>
<del> def homebrew_extra_pkg_config_paths
<del> ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
<del> end
<add> undef x11
<ide>
<ide... | 1 |
Ruby | Ruby | drop unnecessary map + compact in search_tap | d01c671d74ddafcbc0c8dc8eaa805d971e7169fc | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search_tap user, repo, rx
<ide> results = []
<ide> GitHub.open "https://api.github.com/repos/#{user}/homebrew-#{repo}/git/trees/HEAD?recursive=1" do |json|
<ide> user = user.downcase if user == "Homebrew" # special handling for the Homebrew organization
... | 1 |
Javascript | Javascript | use session not socket timeout, tests | 46133b5beba2c780fb3b9a9d6be610d09f752182 | <ide><path>lib/internal/http2/core.js
<ide> function emit() {
<ide> // event. If the stream is not new, emit the 'headers' event to pass
<ide> // the block of headers on.
<ide> function onSessionHeaders(id, cat, flags, headers) {
<del> _unrefActive(this);
<ide> const owner = this[kOwner];
<add> _unrefActive(owner);... | 2 |
Text | Text | fix typo in config value [ci skip] | 767427719ef9e8f0d375dbdcb88ad6c7abbda9e6 | <ide><path>actionview/CHANGELOG.md
<ide> be true. Default value is `true`. For example in `application.rb`:
<ide>
<ide> # in order to turn off missing key wrapping
<del> config.action_view.debug_missing_tranlation = false
<add> config.action_view.debug_missing_translation = false
<ide>
<ide> ... | 1 |
PHP | PHP | use php 5.4 closures $this where safe to | a1c5dd80aa6a13e0f8cf1f0e0e1700ff65c11f2c | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileBasicHaving($having)
<ide> */
<ide> protected function compileOrders(Builder $query, $orders)
<ide> {
<del> $me = $this;
<del>
<del> return 'order by '.implode(', ', array_map(function($order) use ($me)
<add> return 'or... | 6 |
Javascript | Javascript | remove confusing warning from scrollresponder | 5f77f15bac82c7a13605fdbd1ee7e2823c1821bf | <ide><path>Libraries/Components/ScrollResponder.js
<ide> var ScrollResponderMixin = {
<ide> * a touch has already started.
<ide> */
<ide> scrollResponderHandleResponderReject: function() {
<del> warning(false, "ScrollView doesn't take rejection well - scrolls anyway");
<ide> },
<ide>
<ide> /** | 1 |
Python | Python | prevent clickable bad links on disabled pagination | 57388ef6579b91f7b38fe279da12f8a170590321 | <ide><path>airflow/www/utils.py
<ide> def generate_pages(current_page, num_of_pages, search=None, status=None, window=
<ide> output = [Markup('<ul class="pagination" style="margin-top:0;">')]
<ide>
<ide> is_disabled = 'disabled' if current_page <= 0 else ''
<add>
<add> first_node_link = void_link if is_disa... | 1 |
Python | Python | add correct signature to all operators and sensors | cdec3012542b45d23a05f62d69110944ba542e2a | <ide><path>airflow/operators/email.py
<ide> class EmailOperator(BaseOperator):
<ide> ui_color = '#e6faf9'
<ide>
<ide> @apply_defaults
<del> def __init__(
<del> self,
<add> def __init__( # pylint: disable=invalid-name
<add> self, *,
<ide> to: Union[List[str], str],
<ide>... | 104 |
Javascript | Javascript | fix a typo in container docs | e242301f8a7250bf60f72d940149f607bb72c862 | <ide><path>packages/container/lib/main.js
<ide> define("container",
<ide> @method makeToString
<ide>
<ide> @param {any} factory
<del> @param {string} fullNae
<add> @param {string} fullName
<ide> @return {function} toString function
<ide> */
<ide> makeToString: function... | 1 |
Ruby | Ruby | avoid failure if no arguments | 6b779c4f6db64e106adfc1949f7bd3b96c49097e | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(formula, cmd, args, env)
<ide> @cmd = cmd
<ide> @args = args
<ide> @env = env
<del> pretty_args = args.map { |arg| arg.to_s.gsub " ", "\\ " }.join(" ")
<del> super "Failed executing: #{cmd} #{pretty_args}"
<add> pretty_args = Array(args... | 1 |
Python | Python | fix noqa [ci skip] | 96b91a8898799bb5cce0b264f0a7685643f46b9f | <ide><path>spacy/tests/lang/test_initialize.py
<ide> @pytest.mark.parametrize("lang", LANGUAGES)
<ide> def test_lang_initialize(lang, capfd):
<ide> """Test that languages can be initialized."""
<del> nlp = get_lang_class(lang)() # noqa: F841
<add> nlp = get_lang_class(lang)()
<ide> # Check for stray prin... | 1 |
Javascript | Javascript | make profile update after server response | ed015fb06f95ee2b7f9e68e3347d0781cf070110 | <ide><path>client/src/components/settings/Privacy.js
<ide> import { bindActionCreators } from 'redux';
<ide> import { connect } from 'react-redux';
<ide> import { createSelector } from 'reselect';
<ide> import { Button, Form } from '@freecodecamp/react-bootstrap';
<del>import { isEqual } from 'lodash';
<ide>
<ide> imp... | 2 |
Javascript | Javascript | add missing round bracket | f5f802c6e68a3d4e22f5e7725057652519d15e60 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider() {
<ide> * $digest()} and should return the value that will be watched. (`watchExpression` should not change
<ide> * its value when executed multiple times with the same input because it may be executed multiple
<ide> * times b... | 1 |
Javascript | Javascript | update backburner to fix ie8 failing test | 9e75b058a240af6d9681ddeda1260b027c5c1172 | <ide><path>packages/ember-metal/lib/vendor/backburner.js
<ide> define("backburner",
<ide> clearTimeout(laterTimer);
<ide> laterTimer = null;
<ide> }
<del> laterTimer = setTimeout(function() {
<add> laterTimer = window.setTimeout(function() {
<ide> executeTimers(self);... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.