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 | return all morph targets | 015573fc37d2e306873a26b6f442bc62591711af | <ide><path>examples/js/loaders/FBXLoader.js
<ide> THREE.FBXLoader = ( function () {
<ide>
<ide> }
<ide>
<del> console.log( fbxTree );
<add> // console.log( fbxTree );
<ide>
<ide> var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin );
<id... | 1 |
PHP | PHP | improve console parser. add tests | 8c21f3ca3faf66a7f75d0ec40d4a34d9bca0e9c0 | <ide><path>src/Illuminate/Console/Parser.php
<ide> public static function parse($expression)
<ide> throw new InvalidArgumentException('Console command definition is empty.');
<ide> }
<ide>
<del> $tokens = array_values(array_filter(
<del> array_map('trim', explode(' ', $expression)... | 2 |
Javascript | Javascript | fix labels for release sections | f9d05fb1ecee4380566e4de29d8191b7eddd5c55 | <ide><path>release.js
<ide> // section -> label
<ide> const sectionLabelMap = {
<ide> 'Core Changes': 'type: next',
<del> 'Documentation Changes': 'type: documentation',
<del> 'Example Changes': 'type: example',
<add> 'Documentation Changes': 'area: documentation',
<add> 'Example Changes': 'area: examples',
<ide>... | 1 |
Javascript | Javascript | add deprecation for this.$() in curly components | c0b6b95fa000bf87a9109253099325e5f2607aeb | <ide><path>packages/@ember/-internals/glimmer/tests/integration/components/curly-components-test.js
<ide> if (jQueryDisabled) {
<ide> class extends RenderingTestCase {
<ide> ['@test it has a jQuery proxy to the element']() {
<ide> let instance;
<add> let element1;
<add> let element2;
<id... | 4 |
Javascript | Javascript | remove timer from test/simple/test-dgram-unix.js | f188b9d6d77d51e8023853d4828b07b0cac3f24e | <ide><path>test/simple/test-dgram-unix.js
<ide> var Buffer = require("buffer").Buffer,
<ide> dgram = require("dgram"), server, client,
<ide> server_path = "/tmp/dgram_server_sock",
<ide> client_path = "/tmp/dgram_client_sock",
<del> message_to_send = new Buffer("A message to send"),
<del> timer;
<add>... | 1 |
Java | Java | add userproperties to standardwebsocketclient | 222f6998e4013370f6179ffdd8353b2e9afcd1f5 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/client/standard/StandardWebSocketClient.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Li... | 2 |
Javascript | Javascript | fix unbound helper when used with {{this}} | a0fadf121fe08bec3cca433057374dbd466d2308 | <ide><path>packages/ember-handlebars/tests/handlebars_test.js
<ide> test("should be able to use standard Handlebars #each helper", function() {
<ide> equals(view.$().html(), "abc");
<ide> });
<ide>
<add>test("should be able to use unbound helper in #each helper", function() {
<add> view = Ember.View.create({
<add> ... | 2 |
Javascript | Javascript | fix logarighmic test to use correct scale | d3860137fe236b9c8d92ef7be7147ac976b9c545 | <ide><path>test/specs/scale.logarithmic.tests.js
<ide> describe('Logarithmic Scale tests', function() {
<ide> }
<ide> });
<ide>
<del> expect(chart.scales.yScale1.getLabelForIndex(0, 2)).toBe(150);
<add> expect(chart.scales.yScale0.getLabelForIndex(0, 2)).toBe(150);
<ide> });
<ide>
<ide> describe('when', func... | 1 |
Text | Text | update the docs to reflect the new feature | fd2344dd5f9de7b4aebff48fb21af3670705551f | <ide><path>docs/05-Pie-Doughnut-Chart.md
<ide> myDoughnutChart.update();
<ide>
<ide> Calling `addData(segmentData, index)` on your Chart instance passing an object in the same format as in the constructor. There is an optional second argument of 'index', this determines at what index the new segment should be inserted... | 1 |
Text | Text | improve displayname documentation | 617f8810ba8e5ce6ba2f2917e06eea3425b2e0d5 | <ide><path>docs/docs/reference-react-component.md
<ide> If `props.color` is set to null, it will remain null:
<ide>
<ide> ### `displayName`
<ide>
<del>The `displayName` string is used in debugging messages. JSX sets this value automatically; see [JSX in Depth](/react/docs/jsx-in-depth.html).
<add>The `displayName` st... | 1 |
Python | Python | update einsum docs | 2804c03bdc135b70cbcc24755d450123274b4850 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide>
<ide> """)
<ide>
<add>add_newdoc('numpy.core', 'vdot',
<add> """
<add> vdot(a, b)
<add>
<add> Return the dot product of two vectors.
<add>
<add> The vdot(`a`, `b`) function handles complex numbers differently than
<add> ... | 2 |
Mixed | Text | add props for overriding native component | f426a83d1bcc33e2e920bf855aee190fceaa1d12 | <ide><path>Libraries/Components/WebView/WebView.android.js
<ide> var defaultRenderLoading = () => (
<ide> * Renders a native WebView.
<ide> */
<ide> class WebView extends React.Component {
<add> static get extraNativeComponentConfig() {
<add> return {
<add> nativeOnly: {
<add> messagingEnabled: PropTy... | 8 |
Python | Python | add class docs for nodeauth classes | 792790c554c43b4d9e73ffb9d7fec096373797e7 | <ide><path>libcloud/base.py
<ide> def __repr__(self):
<ide> % (self.id, self.name, self.country, self.driver.name))
<ide>
<ide> class NodeAuthSSHKey(object):
<add> """
<add> An SSH key to be installed for authentication to a node.
<add> """
<ide> def __init__(self, pubkey):
<ide> s... | 1 |
Javascript | Javascript | replace var with let | 411c1a679d7a6c47dadc257a5ed35b6f7589688b | <ide><path>lib/internal/streams/end-of-stream.js
<ide> function eos(stream, opts, callback) {
<ide> if (!stream.writable) onfinish();
<ide> };
<ide>
<del> var writableEnded = stream._writableState && stream._writableState.finished;
<add> let writableEnded = stream._writableState && stream._writableState.finish... | 1 |
Text | Text | fix several typos in distil* readme | 5bc99e7f33c83b23b88740877283098ef7964b73 | <ide><path>examples/distillation/README.md
<ide> This folder contains the original code used to train Distil* as well as examples
<ide>
<ide> **October 23, 2019 - Update** We release **DistilRoBERTa**: 95% of `RoBERTa-base`'s performance on GLUE, twice as fast as RoBERTa while being 35% smaller.
<ide>
<del>**October ... | 1 |
Text | Text | fix internal links | f64661fb18e3147bb0ab70c3741e5403ad1e600a | <ide><path>share/doc/homebrew/Homebrew-0.9.3.md
<ide> Because we are working with a practically virgin environment, we are essentially
<ide>
<ide> So:
<ide>
<del>* We no longer worry about MacPorts/Fink being installed<sup>[†](#_†)</sup>
<del>* We no longer worry about system duplicates<sup>[†](#_†)</sup>
<add>* We n... | 1 |
Text | Text | update maxpooling1d documentation | e1d8b1ba094a0766e703f89d4cf7c8b1d3e7cd6c | <ide><path>docs/sources/layers/convolutional.md
<ide> keras.layers.convolutional.MaxPooling1D(pool_length=2, stride=None, ignore_borde
<ide>
<ide> - __Input shape__: 3D tensor with shape: `(nb_samples, steps, dim)`.
<ide>
<del>- __Output shape__: 3D tensor with shape: `(nb_samples, steps, new_dim)`.
<add>- __Output s... | 1 |
Javascript | Javascript | fix some nits | fb31dc3f86e137fd0a56dba711033d70c0b97210 | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> function log(aMsg) {
<ide> Services.console.logStringMessage(msg);
<ide> dump(msg + '\n');
<ide> }
<del>function getWindow(top, id) top.QueryInterface(Ci.nsIInterfaceRequestor)
<del> .getInterface(Ci.nsIDOMWindowUtils)... | 1 |
Javascript | Javascript | remove http 1223 handling | a9831131c307a050a27d29d75925d7d4ad162da5 | <ide><path>lib/adapters/xhr.js
<ide> module.exports = function xhrAdapter(config) {
<ide> var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
<ide> var response = {
<ide> data: responseData,
<del> // IE sends 1223 instead of 204... | 2 |
Text | Text | create github support file | f46952289a35ccfb4ff6a9ebfb31f40a5de449f6 | <ide><path>.github/SUPPORT.md
<add># Support
<add>
<add>Node.js contributors have limited availability to address general support
<add>questions. Please make sure you are using a [currently-supported version of
<add>Node.js](https://github.com/nodejs/Release#release-schedule).
<add>
<add>When looking for support, pleas... | 2 |
Go | Go | remove unneeded alias | 881e326f7ae05c8c5de07f2ef6dbd79b23327a62 | <ide><path>daemon/config/config_linux.go
<ide> import (
<ide> "net"
<ide>
<ide> "github.com/docker/docker/api/types"
<del> containertypes "github.com/docker/docker/api/types/container"
<add> "github.com/docker/docker/api/types/container"
<ide> "github.com/docker/docker/opts"
<ide> units "github.com/docker/go-units... | 1 |
Javascript | Javascript | convert non-error errors into errors | 6a7e79a443cb1f1adde675ee5321302b0c5cff1b | <ide><path>lib/NormalModule.js
<ide> class NormalModule extends Module {
<ide> }
<ide>
<ide> if (err) {
<add> if (!(err instanceof Error)) {
<add> err = new NonErrorEmittedError(err);
<add> }
<ide> const currentLoader = this.getCurrentLoader(loaderContext);
<ide> const error = new Module... | 1 |
Python | Python | add test for negative axis values in np.insert | 9d6caf9710e98af2a99cc72650b95dd7ea0727ee | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_multidim(self):
<ide> assert_raises(IndexError, insert, a, 1, a[:, 2, :], axis=3)
<ide> assert_raises(IndexError, insert, a, 1, a[:, 2, :], axis=-4)
<ide>
<add> # negative axis value
<add> a = np.arange(24).reshape((2,3,4))
<... | 1 |
PHP | PHP | driver @return directive | c78004514e56822eec94e006862caf2ff1622aef | <ide><path>src/Illuminate/Cache/CacheManager.php
<ide> public function store($name = null)
<ide> * Get a cache driver instance.
<ide> *
<ide> * @param string|null $driver
<del> * @return mixed
<add> * @return \Illuminate\Contracts\Cache\Repository
<ide> */
<ide> public function driver(... | 1 |
Mixed | Javascript | use unique tmpdirs for each test | d3f20a47255a0f88fa85ee4f9c18a77aeb8f7475 | <ide><path>test/common/tmpdir.js
<ide> const testRoot = process.env.NODE_TEST_DIR ?
<ide>
<ide> // Using a `.` prefixed name, which is the convention for "hidden" on POSIX,
<ide> // gets tools to ignore it by default or by simple rules, especially eslint.
<del>const tmpdirName = '.tmp.' + (process.env.TEST_THREAD_ID |... | 2 |
Javascript | Javascript | emit key info unconditionally | 0a62f929da0cff816d79d2ed2b9b3b4ecdd50586 | <ide><path>lib/internal/readline.js
<ide> function* emitKeys(stream) {
<ide> stream.emit('keypress', escaped ? undefined : s, key);
<ide> } else if (s.length === 1) {
<ide> /* Single unnamed character, e.g. "." */
<del> stream.emit('keypress', s);
<del> } else {
<del> /* Unrecognized or bro... | 2 |
PHP | PHP | detect mysql galera deadblocks. | 5434f834cfa9411401003786fada6f30ff748a6d | <ide><path>src/Illuminate/Database/DetectsDeadlocks.php
<ide> protected function causedByDeadlock(Exception $e)
<ide> 'A table in the database is locked',
<ide> 'has been chosen as the deadlock victim',
<ide> 'Lock wait timeout exceeded; try restarting transaction',
<add> ... | 1 |
PHP | PHP | add automatic generation of uuid primary keys | 339ff2da433e424d53b06397bbd7bd65f50ac6f9 | <ide><path>Cake/ORM/Table.php
<ide>
<ide> use Cake\Core\App;
<ide> use Cake\Database\Schema\Table as Schema;
<add>use Cake\Database\Type;
<ide> use Cake\Event\Event;
<ide> use Cake\Event\EventManager;
<ide> use Cake\ORM\Association\BelongsTo;
<ide> protected function _processSave($entity, $options) {
<ide> */
<ide> ... | 2 |
Python | Python | remove use of unittest in numpy tests | ed6c0dd342c7d6def2600db00c3eaf75e16a39d2 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> else:
<ide> import __builtin__ as builtins
<ide> from decimal import Decimal
<del>from unittest import TestCase
<ide>
<ide> import numpy as np
<ide> from numpy.compat import strchar, unicode
<ide> def assert_dot_close(A, X, desired):
<ide> class MatmulCommon(obj... | 7 |
Mixed | Javascript | add heap snapshot tests | 1009118d27b069411016df4ca6915aac3c36a41f | <ide><path>test/common/README.md
<ide> This directory contains modules used to test the Node.js implementation.
<ide> * [DNS module](#dns-module)
<ide> * [Duplex pair helper](#duplex-pair-helper)
<ide> * [Fixtures module](#fixtures-module)
<add>* [Heap dump checker module](#heap-dump-checker-module)
<ide> * [HTTP2 modu... | 9 |
Ruby | Ruby | use rbconfig instead of ruby_platform | d6dd63d1a04cad16d2a6faa17a6d71e4baa8f95f | <ide><path>Library/Homebrew/os.rb
<add>require "rbconfig"
<add>
<ide> module OS
<ide> def self.mac?
<ide> return false if ENV["HOMEBREW_TEST_GENERIC_OS"]
<del> RUBY_PLATFORM.to_s.downcase.include? "darwin"
<add> RbConfig::CONFIG["host_os"].include? "darwin"
<ide> end
<ide>
<ide> def self.linux?
<ide> ... | 1 |
Java | Java | remove use of boolean constructors | 19e77cd140d6efd2736a43b8688a8a3ffb6f2a7b | <ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/CheckboxTagTests.java
<ide> public void withSingleValueBooleanChecked() throws Exception {
<ide>
<ide> @Test
<ide> public void withSingleValueBooleanObjectUnchecked() throws Exception {
<del> this.bean.setSomeBoolean(new Boolean(false)... | 3 |
Text | Text | imply an additional element in infinite lists | 674c9029c1b0f3680bfc04dd87b58f9bd21988de | <ide><path>docs/tutorial/1-serialization.md
<ide> We'll also need to add our new `snippets` app and the `rest_framework` app to `I
<ide> INSTALLED_APPS = (
<ide> ...
<ide> 'rest_framework',
<del> 'snippets'
<add> 'snippets',
<ide> )
<ide>
<ide> We also need to wire up the root url... | 5 |
Text | Text | fix minor grammar issues in dockervolumes.md | 4ac6375790fe0c7bc9c1bb9c3fdc67db233ff8cb | <ide><path>docs/sources/userguide/dockervolumes.md
<ide> absolute path and if the directory doesn't exist Docker will automatically
<ide> create it for you.
<ide>
<ide> > **Note:**
<del>> This is not available from a `Dockerfile` due the portability
<add>> This is not available from a `Dockerfile` due to the portabil... | 1 |
Python | Python | remove a bunch of deadcode/dead imports | 345c4c4629c8d17a8b4826fb4b97a61f19326e9f | <ide><path>django/db/backends/creation.py
<ide> def sql_create_model(self, model, style, known_models=set()):
<ide> if f.rel:
<ide> ref_output, pending = self.sql_for_inline_foreign_key_references(f, known_models, style)
<ide> if pending:
<del> pr = pending... | 5 |
Text | Text | change == to === as suggested from codesandbox | 75ec204e64d3eef63b275dccc3e6fa8298f12181 | <ide><path>docs/tutorials/essentials/part-4-using-data.md
<ide> import { postUpdated } from './postsSlice'
<ide> export const EditPostForm = ({ match }) => {
<ide> const { postId } = match.params
<ide>
<del> const post = useSelector(state => state.posts.find(post => post.id == postId))
<add> const post = useSelect... | 1 |
PHP | PHP | add missing type cast | 3c1fbeff4732a60bb5f9b78556dfb961eed908c8 | <ide><path>src/Controller/Component/FlashComponent.php
<ide> public function set($message, array $options = [])
<ide>
<ide> $messages = [];
<ide> if ($options['clear'] === false) {
<del> $messages = $this->_session->read('Flash.' . $options['key']);
<add> $messages = (array)$this-... | 1 |
Text | Text | remove internal docs for beta | e9cf8d46470478920a6d2bfa561e41a3b7cd7213 | <ide><path>docs/building-atom.md
<del>## Building Atom
<del>
<del>These guide is meant only for users who wish to help develop atom core,
<del>if you're just interested in using atom you should just [download
<del>atom][download].
<del>
<del>## OSX
<del>
<del>* Use OS X 10.8 or later
<del>* Install the latest node 0.10... | 2 |
PHP | PHP | fix return tag | 47b9687777e0807cf507e5c120f1a2a6fc64ccc7 | <ide><path>src/Event/EventDispatcherInterface.php
<ide> public function dispatchEvent(string $name, $data = null, $subject = null): Even
<ide> * object events, or create your own events and trigger them at will.
<ide> *
<ide> * @param \Cake\Event\EventManagerInterface $eventManager the eventManager to se... | 1 |
Text | Text | add v4.8.0-beta.4 to changelog | 3ec17789315fec24f63de0e0ab3177feb8906d83 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.8.0-beta.4 (September 26, 2022)
<add>
<add>- [#20201](https://github.com/emberjs/ember.js/pull/20201) [BUGFIX] Fix type definition for `Route`
<add>
<ide> ### v4.8.0-beta.3 (September 19, 2022)
<ide>
<ide> - [#20194](https://github.com/emberjs/ember.js... | 1 |
Javascript | Javascript | add a comment with a link to pr | 3f68e221937cd45836a4fdaee3d33e1e1eb55ac6 | <ide><path>src/core/Clock.js
<ide> Object.assign( Clock.prototype, {
<ide>
<ide> start: function () {
<ide>
<del> this.startTime = ( typeof performance === 'undefined' ? Date : performance ).now();
<add> this.startTime = ( typeof performance === 'undefined' ? Date : performance ).now(); // see #10732
<ide>
<ide> ... | 1 |
Javascript | Javascript | remove multiview attribute from renderer | 709fe8964b13fe3b357142547493c1b9927c92d3 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> var multiview = new WebGLMultiview( _this, _gl );
<ide>
<del> this.multiview = multiview;
<del>
<ide> // shadow map
<ide>
<ide> var shadowMap = new WebGLShadowMap( _this, objects, capabilities.maxTextureSize );
<ide... | 3 |
PHP | PHP | return a `closure` from `routes.php` files | 8aac86b1bedef9d3da473138879d94950bfcc6d7 | <ide><path>src/Core/BasePlugin.php
<ide> use Cake\Console\CommandCollection;
<ide> use Cake\Http\MiddlewareQueue;
<ide> use Cake\Routing\RouteBuilder;
<add>use Closure;
<ide> use InvalidArgumentException;
<ide> use ReflectionClass;
<ide>
<ide> public function routes(RouteBuilder $routes): void
<ide> {
<ide> ... | 5 |
Javascript | Javascript | add emitexperimentalwarning function | b08c7321bd014ca8fe46aecf35eea66f2aea5b3b | <ide><path>lib/internal/util.js
<ide> const {
<ide>
<ide> const noCrypto = !process.versions.openssl;
<ide>
<add>const experimentalWarnings = new Set();
<add>
<ide> function isError(e) {
<ide> return objectToString(e) === '[object Error]' || e instanceof Error;
<ide> }
<ide> function normalizeEncoding(enc) {
<ide> ... | 1 |
Ruby | Ruby | remove loaderror#path hack for ruby 1.9 | 36effd916c1f372ae94bcff54e947050538aa12d | <ide><path>activesupport/test/dependencies_test.rb
<ide> class DependenciesTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> def test_depend_on_path
<del> skip "LoadError#path does not exist" if RUBY_VERSION < '2.0.0'
<del>
<ide> expected = assert_raises(LoadError) do
<ide> Kernel.require 'omgwtfbb... | 1 |
Javascript | Javascript | fix a warning about snapshotview | 59e670e4535e69ba727796a4850fffd0552ab5f1 | <ide><path>Libraries/RCTTest/SnapshotViewIOS.ios.js
<ide> var Platform = require('Platform');
<ide> var React = require('React');
<ide> var StyleSheet = require('StyleSheet');
<del>var { TestModule } = require('NativeModules');
<add>var { TestModule, UIManager } = require('NativeModules');
<ide> var View = require('Vie... | 1 |
Javascript | Javascript | reset statenode in resetworkinprogress | 0f334553c9558a56037b481fedc9b9fcad3643e7 | <ide><path>packages/react-reconciler/src/ReactFiber.js
<ide> export function resetWorkInProgress(
<ide>
<ide> workInProgress.dependencies = null;
<ide>
<add> workInProgress.stateNode = null;
<add>
<ide> if (enableProfilerTimer) {
<ide> // Note: We don't reset the actualTime counts. It's useful to acc... | 2 |
PHP | PHP | fix digestauthenticate component usermodel setting | 1e9bcbbd05a5308cec275952bfdc853208f79890 | <ide><path>src/Controller/Component/Auth/DigestAuthenticate.php
<ide> class DigestAuthenticate extends BasicAuthenticate {
<ide> * Settings for this object.
<ide> *
<ide> * - `fields` The fields to use to identify a user by.
<del> * - `userModel` The model name of the User, defaults to User.
<add> * - `userModel` Th... | 2 |
Javascript | Javascript | add ability to fast track natively supported jpegs | 7d1cddf371c968ec03bc116e4af273971ca2dcdc | <ide><path>src/canvas.js
<ide> var CanvasGraphics = (function canvasGraphics() {
<ide> this.restore();
<ide> },
<ide>
<add> paintJpegXObject: function canvasGraphicsPaintJpegXObject(objId, w, h) {
<add> var domImage = this.objs.get(objId);
<add> if (!domImage) {
<add> error('Dependent ima... | 5 |
Javascript | Javascript | accomodate additional webxr changes | b4734f2dad51aecf65d3d764f45751e42162da83 | <ide><path>examples/js/vr/WebVR.js
<ide> var WEBVR = {
<ide>
<ide> if ( currentSession === null ) {
<ide>
<del> device.requestSession( { immersive: true, exclusive: true /* DEPRECATED */ } ).then( onSessionStarted );
<add> if (device) {
<add>
<add> device.requestSession( { immersive: true, exclusive:... | 3 |
Java | Java | improve setting of websocket error status | b6144e5682c966759e7fd16dbac4d4948d332161 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java
<ide> import org.springframework.http.server.reactive.AbstractListenerWriteProcessor;
<ide> import org.springframework.lang.Nullable;
<ide> import org.springframework.util.Assert;
<add>import or... | 1 |
PHP | PHP | add a convention for dispatcher filter names | 7db068c945a94718d0bdb430745927aa373626a7 | <ide><path>src/Routing/DispatcherFactory.php
<ide> public static function add($filter) {
<ide> *
<ide> * @param string $name The name of the filter to build.
<ide> * @return \Cake\Routing\DispatcherFilter
<add> * @throws \Cake\Routing\Error\MissingDispatcherFilterException When filters cannot be found.
<ide> */
<id... | 13 |
Python | Python | find lowercased forms of numeric words | 9bc524982e33bb9bc8dcd881ce5cff5f3f54eae4 | <ide><path>spacy/lang/da/lex_attrs.py
<ide> def like_num(text):
<ide> num, denom = text.split('/')
<ide> if num.isdigit() and denom.isdigit():
<ide> return True
<del> if text in _num_words:
<add> if text.lower() in _num_words:
<ide> return True
<del> if text in _ordinal_word... | 7 |
Javascript | Javascript | add test cases | 52d8fbc8c115d48d39a0a647dc39d59c9d71f0e8 | <ide><path>test/cases/parsing/template-string/abc/abcTest.js
<add>export default "ok";
<ide>\ No newline at end of file
<ide><path>test/cases/parsing/template-string/index.js
<add>var should = require('should')
<add>
<add>it("should parse template strings in System.import", function(done) {
<add> var name = "abc".split... | 4 |
PHP | PHP | fix json queries with table names on sql server | 8dd376c3ffb1de29c0e421db1bda29a988768b0c | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide>
<ide> use RuntimeException;
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Support\Str;
<ide> use Illuminate\Database\Query\Builder;
<ide> use Illuminate\Database\Query\JoinClause;
<ide> use Illuminate\Database\Grammar as BaseGrammar;
<ide> cla... | 5 |
Text | Text | add instructions for including files in sidebar | b19147fc8ba01f084352d2c70e0c1ffe159f6c08 | <ide><path>docs/how-to-work-on-the-docs-theme.md
<ide>
<ide> To work on the contributing guidelines, you can edit or add files in the `docs` directory [available here](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/docs). When your changes are merged, they will be made available automatically at the documentat... | 1 |
Go | Go | fix race in testrun | ad9710685ca3ae101c84a57c7d68a25cba4bede2 | <ide><path>container.go
<ide> func (container *Container) monitor() {
<ide> exitCode := container.process.GetExitCode()
<ide> container.State.SetStopped(exitCode)
<ide>
<del> close(container.waitLock)
<ide> if err := container.ToDisk(); err != nil {
<ide> // FIXME: there is a race condition here which causes this... | 3 |
Text | Text | fix typos for incorrect spelling of ethereum | 5f566b20aeae3030eec9d6a14016ed71c85dac3d | <ide><path>client/src/pages/guide/english/blockchain/smart-contracts/index.md
<ide> title: Smart Contracts
<ide> ## Smart Contracts
<ide>
<ide> Transactions in a blockchain are a very basic contract - One party sends resources to another.
<del>In the Etherium blockchain transactions can support any kind of logic. They... | 1 |
Python | Python | add test_connection to azure batch hook | eab0167f1beb81de8e613685da79ef9a04eef5b3 | <ide><path>airflow/providers/microsoft/azure/hooks/batch.py
<ide> def wait_for_job_tasks_to_complete(self, job_id: str, timeout: int) -> None:
<ide> self.log.info("Waiting for %s to complete, currently on %s state", task.id, task.state)
<ide> time.sleep(15)
<ide> raise TimeoutError("... | 2 |
Text | Text | fix typos, consistent styling w/ english version | e3bdcd68a4553901440b00fd8af480099504a408 | <ide><path>guide/spanish/python/string-methods/index.md
<ide> ---
<ide> title: String Methods
<del>localeTitle: Métodos de cuerda
<add>localeTitle: Métodos String
<ide> ---
<del>**TODO: `string` información básica**
<add>**TODO: información básica sobre `string`**
<ide>
<del>[Python Docs - Cuerdas](https://docs.python... | 1 |
Ruby | Ruby | optimize big sur bottles for ivy bridge | 095798be405be47429877f9d92f416153f86e147 | <ide><path>Library/Homebrew/extend/os/mac/hardware.rb
<ide> module Hardware
<ide> def self.oldest_cpu(version = MacOS.version)
<ide> if CPU.arch == :arm64
<ide> :arm_vortex_tempest
<add> elsif version >= :big_sur
<add> :ivybridge
<ide> elsif version >= :mojave
<ide> :nehalem
<ide> else... | 2 |
Java | Java | fix trampolinescheduler nullpointerexception | 2cf434944540d66ea683bdcb84499eb5f7edd2eb | <ide><path>src/main/java/rx/schedulers/TrampolineScheduler.java
<ide> private Subscription enqueue(Action0 action, long execTime) {
<ide>
<ide> if (wip.getAndIncrement() == 0) {
<ide> do {
<del> queue.poll().action.call();
<add> TimedAction polled = que... | 1 |
Javascript | Javascript | add tooltip if any in annotations layer | 20b12d2bda2ca270884900f3b1b9ff7d4cf4f3a9 | <ide><path>src/core/annotation.js
<ide> class ButtonWidgetAnnotation extends WidgetAnnotation {
<ide> this.hasFieldFlag(AnnotationFieldFlag.RADIO) &&
<ide> !this.hasFieldFlag(AnnotationFieldFlag.PUSHBUTTON);
<ide> this.data.pushButton = this.hasFieldFlag(AnnotationFieldFlag.PUSHBUTTON);
<add> this.da... | 3 |
Javascript | Javascript | pass arg in test | ffeca24412b5586d9b0d4d4e25ef4d05918d5484 | <ide><path>test/cases/wasm/imports-multiple/module.js
<ide> import { getResult } from "./wasm.wasm";
<ide>
<del>export var result = getResult();
<add>export var result = getResult(1);
<ide>
<ide> export function getNumber() {
<ide> return 20; | 1 |
Text | Text | add the w3 org global struct | 9a5e3c5e0e7cc248c80d4be9be10fb2aa2cf4063 | <ide><path>guide/english/html/page-structure/index.md
<ide> Instead of using the generic `<div>` for every other container, use the semantic
<ide>
<ide> #### More Information:
<ide> [HTML: Introduction](https://www.w3schools.com/html/html_intro.asp)
<add>[HTML: Introduction](https://www.w3.org/TR/html401/struct/global... | 1 |
Text | Text | fix gtag syntax in measuring docs | d4a8d4fc880e94101c260d703570e603ae92beee | <ide><path>docs/advanced-features/measuring-performance.md
<ide> export function reportWebVitals(metric) {
<ide> > export function reportWebVitals({ id, name, label, value }) {
<ide> > // Use `window.gtag` if you initialized Google Analytics as this example:
<ide> > // https://github.com/vercel/next.js/blob/canary/... | 1 |
Python | Python | add generate kwargs to seq2seqtrainingarguments | c76de1053e76010340a3cf152e51d4d9f5a1f755 | <ide><path>examples/pytorch/summarization/run_summarization.py
<ide> def compute_metrics(eval_preds):
<ide>
<ide> # Evaluation
<ide> results = {}
<add> max_length = (
<add> training_args.generation_max_length
<add> if training_args.generation_max_length is not None
<add> else data_args.... | 4 |
Text | Text | add @daviwil focus for the week | 7a232a23e3e09b70bccb9d80b40cddf1722dee1f | <ide><path>docs/focus/2018-04-09.md
<ide>
<ide> ## Focus for week ahead
<ide>
<add>- Atom
<add> - Add UI for managing .atomproject.json files
<add> - Continue work on project root configuration files
<ide> - GitHub Package
<ide> - Get "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/13... | 1 |
Java | Java | fix reactinstancemanager unmountapplication | 4a9b2a73021fb547febe1fa193c3effb7ff8da4e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java
<ide> public void runGuarded() {
<ide> public void unmountReactApplication() {
<ide> if (mReactInstanceManager != null && mIsAttachedToInstance) {
<ide> mReactInstanceManager.detachRootView(this);
<add> mReactInstanceManager = ... | 2 |
PHP | PHP | add hints for app facade methods | 4d2ca2029a4fc02b0376bff786052f5be7d10c21 | <ide><path>src/Illuminate/Support/Facades/App.php
<ide> /**
<ide> * @method static string version()
<ide> * @method static string basePath()
<del> * @method static string environment()
<add> * @method static string bootstrapPath(string $path = '')
<add> * @method static string configPath(string $path = '')
<add> * @m... | 1 |
PHP | PHP | add warnings for moved classes | 37bbe08abb3a025350794c29c04377a1401687a9 | <ide><path>src/Cache/Engine/ApcEngine.php
<ide>
<ide> // @deprecated Add backwards compat alias.
<ide> class_alias('Cake\Cache\Engine\ApcuEngine', 'Cake\Cache\Engine\ApcEngine');
<add>
<add>deprecationWarning('Use Cake\Cache\Engine\ApcuEngine instead of Cake\Cache\Engine\ApcEngine.');
<ide><path>src/Database/Schema/Ta... | 22 |
Mixed | Ruby | add sockets and keepalive variants | 3d5d12e8b9fad28d2923ade47ac970dfd7144843 | <ide><path>Library/Homebrew/service.rb
<ide> class Service
<ide> PROCESS_TYPE_INTERACTIVE = :interactive
<ide> PROCESS_TYPE_ADAPTIVE = :adaptive
<ide>
<add> KEEP_ALIVE_KEYS = [:always, :successful_exit, :crashed, :path].freeze
<add>
<ide> # sig { params(formula: Formula).void }
<ide> def initialize(... | 3 |
PHP | PHP | remove unneeded method | 636032616fd8a6af13f9186b6535dea96d244575 | <ide><path>src/Illuminate/View/Engines/Engine.php
<ide> abstract class Engine {
<ide> */
<ide> protected $lastRendered;
<ide>
<del> /**
<del> * Determine if the engine is sectionable.
<del> *
<del> * @return bool
<del> */
<del> public function isSectionable()
<del> {
<del> return $this instanceof SectionableIn... | 1 |
Ruby | Ruby | revert streaming params parser support | 5ebfa6242726bd186452640ed5704f2adc1a5007 | <ide><path>actionpack/lib/action_dispatch/middleware/params_parser.rb
<ide> def parse_formatted_parameters(env)
<ide> when Proc
<ide> strategy.call(request.raw_post)
<ide> when :xml_simple, :xml_node
<del> request.body.size == 0 ? {} : Hash.from_xml(request.body).with_indifferent_acce... | 1 |
Javascript | Javascript | replace deprecated substr() with slice() | eef2f9728145aa27b8cd92f5fac7328a9e0e574d | <ide><path>lib/adapters/http.js
<ide> module.exports = function httpAdapter(config) {
<ide> return true;
<ide> }
<ide> if (proxyElement[0] === '.' &&
<del> parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {
<add> p... | 2 |
Javascript | Javascript | fix missing scope in mmdloader | a9720c710acbdb245afff7eda29d892b7c623876 | <ide><path>examples/js/loaders/MMDLoader.js
<ide> THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
<ide> var initMaterials = function () {
<ide>
<ide> var textures = [];
<del> var textureLoader = new THREE.TextureLoader( this.manager );
<del> var tgaLoader = new THREE.TGALoader( th... | 1 |
Ruby | Ruby | assert valid keys | f52253cbebf0124bb74925e91bcca75325eaa502 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> class Relation
<ide> SINGLE_VALUE_METHODS = [:limit, :offset, :lock, :readonly, :from, :reordering,
<ide> :reverse_order, :uniq, :create_with]
<ide>
<add> VALUE_METHODS = MULTI_VALUE_METHODS + SINGLE_VALUE_METHODS
<add>
<ide... | 3 |
Go | Go | add imagelistoptions and pass context | bf9c76f0a8ff296c71d32bb46c1ea03f8ec1dd14 | <ide><path>api/server/router/image/backend.go
<ide> type Backend interface {
<ide> type imageBackend interface {
<ide> ImageDelete(imageRef string, force, prune bool) ([]types.ImageDeleteResponseItem, error)
<ide> ImageHistory(imageName string) ([]*image.HistoryResponseItem, error)
<del> Images(imageFilters filters.A... | 5 |
PHP | PHP | add more tests | a9caebc58dd9d9d064946f5866d7df3c8ac65946 | <ide><path>tests/Database/DatabaseEloquentFactoryTest.php
<ide> public function createSchema()
<ide> $table->string('name');
<ide> $table->timestamps();
<ide> });
<add>
<add> $this->schema()->create('posts', function ($table) {
<add> $table->increments('id');
<add> ... | 1 |
Javascript | Javascript | append sha to dev versions | ba0ecffcb042e0dfd42eb85cc27617717c66ec89 | <ide><path>build/config.js
<ide> 'use strict'
<ide>
<ide> const path = require('path')
<add>const childProcess = require('child_process')
<ide>
<ide> const appMetadata = require('../package.json')
<ide>
<ide> const repositoryRootPath = path.resolve(__dirname, '..')
<ide> const buildOutputPath = path.join(repositoryR... | 3 |
Python | Python | remove link_components flag again | f6383065986d93081a437406f7d8d60f68d5c52e | <ide><path>spacy/language.py
<ide> def initialize(
<ide> get_examples: Optional[Callable[[], Iterable[Example]]] = None,
<ide> *,
<ide> sgd: Optional[Optimizer] = None,
<del> link_components: bool = True,
<ide> ) -> Optimizer:
<ide> """Initialize the pipe for training, using d... | 3 |
PHP | PHP | add getvisible method | 63957edb932abda1d11b5cd0f383e3b0dfd24813 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function addHidden($attributes = null)
<ide>
<ide> $this->hidden = array_merge($this->hidden, $attributes);
<ide> }
<add>
<add> /**
<add> * Get the visible attributes for the model.
<add> *
<add> * @return array
<add> */
<add> public function... | 1 |
Java | Java | revert the change in recursiveaction | c694a2adaafa52514e88cfdf6379516c9494379a | <ide><path>src/main/java/rx/Scheduler.java
<ide> public void call() {
<ide> if (!mas.isUnsubscribed()) {
<ide> action.call();
<ide> long nextTick = startInNanos + (++count * periodInNanos);
<del> SerialSubscription s = new Serial... | 1 |
Mixed | Javascript | add info on points and pointsmaterial | eada0c6ef3001e42c25d574f561ad066e8daaf32 | <ide><path>threejs/lessons/resources/threejs-primitives.js
<ide> import {threejsLessonUtils} from './threejs-lesson-utils.js';
<ide> },
<ide> nonBuffer: false,
<ide> },
<add> Points: {
<add> create() {
<add> const radius = 7;
<add> const widthSegments = 12;
<add> const heigh... | 2 |
Mixed | Python | add doc_cleaner component | 9ac6d4991eb34d47f2e42bf7418918d49cf76219 | <ide><path>spacy/errors.py
<ide> class Warnings(metaclass=ErrorsWithCodes):
<ide> "lead to errors.")
<ide> W115 = ("Skipping {method}: the floret vector table cannot be modified. "
<ide> "Vectors are calculated from character ngrams.")
<add> W116 = ("Unable to clean attribute '{attr}'.")
... | 4 |
Python | Python | fix the bug that created the node at ecs driver | eafeccc4baa742001ffe19e400ed7879a6537661 | <ide><path>libcloud/compute/drivers/ecs.py
<ide> def create_node(self, name, size, image, auth=None,
<ide>
<ide> if ex_io_optimized is not None:
<ide> optimized = ex_io_optimized
<del> if not isinstance(optimized, bool):
<del> optimized = str(optimized).lower() == 'true'
<... | 1 |
Javascript | Javascript | log unhandled promise rejections in testing | 80bbf7b27ca105b4d487fce50f93c41833b6e6ee | <ide><path>packages/ember-runtime/lib/ext/rsvp.js
<ide> RSVP.onerrorDefault = function (error) {
<ide>
<ide> if (Test && Test.adapter) {
<ide> Test.adapter.exception(error);
<add> Logger.error(error.stack);
<ide> } else {
<ide> throw error;
<ide> } | 1 |
Python | Python | implement len in iterabledatasetshard | a21ee1f99003f49f411b3b62a087c4da5d839843 | <ide><path>src/transformers/trainer_pt_utils.py
<ide> def __iter__(self):
<ide> for i in process_slice:
<ide> yield current_batch[i]
<ide>
<add> def __len__(self):
<add> # Will raise an error if the underlying dataset is not sized.
<add> if self.drop_last:
<add> ... | 1 |
Go | Go | add unit test for darwin | 818e0b2fcf1ec69b28a215526a2682ed042044c4 | <ide><path>pkg/parsers/kernel/kernel_darwin_test.go
<add>package kernel
<add>
<add>import (
<add> "testing"
<add>
<add> "gotest.tools/v3/assert"
<add>)
<add>
<add>func TestGetRelease(t *testing.T) {
<add> // example output of "system_profiler SPSoftwareDataType"
<add> const spSoftwareDataType = `Software:
<add>
<add> ... | 1 |
Go | Go | allow docker build from stdin | 33ea1483d5b89559e1fe9a9556e3ea757f673e16 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdInsert(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<del> cmd := Subcmd("build", "[CONTEXT]", "Build an image from a Dockerfile")
<add> cmd := Subcmd("build", "[CONTEXT|-]", "Build an image from a Dockerfile")
<... | 1 |
Python | Python | add disk size in disks.initializeparams | 74f937dd07570c29d4f5906236a5513d1530725d | <ide><path>libcloud/compute/drivers/gce.py
<ide> def ex_create_network(self, name, cidr=None, description=None,
<ide> def create_node(
<ide> self, name, size, image, location=None, ex_network='default',
<ide> ex_subnetwork=None, ex_tags=None, ex_metadata=None,
<del> ex_boot_disk=N... | 1 |
Javascript | Javascript | stop tests running after navigating away | d626e898ee2e6295cb593654b1d104f3fee2b7b3 | <ide><path>client/src/templates/Challenges/classic/Show.js
<ide> import {
<ide> updateChallengeMeta,
<ide> challengeMounted,
<ide> consoleOutputSelector,
<del> executeChallenge
<add> executeChallenge,
<add> cancelTests
<ide> } from '../redux';
<ide>
<ide> import './classic.css';
<ide> const mapDispatchToProps... | 3 |
Javascript | Javascript | fix failing test written in 9d3ecef - fixes | 5ee0487184539babef74afa92f20e8a11c3f80e5 | <ide><path>packages/ember-runtime/lib/controllers/array_controller.js
<ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin,
<ide>
<ide> objectAtContent: function(idx) {
<ide> var length = get(this, 'length'),
<del> object = get(this,'arrangedContent').objectAt(idx),
<del> con... | 1 |
Text | Text | add ephraimbuddy to inthewild | 82b876bbe2fa1f44b89dac3a13c71cf828ee0417 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Arrive](https://www.arrive.com/)
<ide> 1. [Artelys](https://www.artelys.com/) [[@fortierq](https://github.com/fortierq)]
<ide> 1. [Asana](https://asana.com/) [[@chang](https://github.com/chang), [@dima-asana](https://github.com/dima-asana)... | 1 |
Python | Python | adjust spacing and sizing in compact mode | 32c6f05de91b8ae7a189bec4c4efb11f50d78947 | <ide><path>spacy/displacy/render.py
<ide> def __init__(self, options={}):
<ide> offset_x, color, bg, font)
<ide> """
<ide> self.compact = options.get('compact', False)
<del> distance, arrow_width = (85, 8) if self.compact else (175, 10)
<ide> self.word_spacing = op... | 1 |
Ruby | Ruby | prefer formula#name method over formula#to_s | 9a83f63c21880f782233b23abac2f820a2c3c18d | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> end
<ide>
<ide> if superenv?
<del> ENV.keg_only_deps = keg_only_deps.map(&:to_s)
<del> ENV.deps = deps.map { |d| d.to_formula.to_s }
<add> ENV.keg_only_deps = keg_only_deps.map(&:name)
<add> ENV.deps = deps.map { |d| d.to_formula.... | 1 |
Javascript | Javascript | remove obsolete eslint comments | 35a8906964dc4544dd59ad99b2c1f58a09d484f3 | <ide><path>test/js-native-api/test_general/testInstanceOf.js
<ide> const common = require('../../common');
<ide> const assert = require('assert');
<ide>
<ide> // Addon is referenced through the eval expression in testFile
<del>// eslint-disable-next-line no-unused-vars
<ide> const addon = require(`./build/${common.bui... | 2 |
Python | Python | fix nanpercentile crash on all-nan slices | 6e699948c2b6098ec1a6e135241bc24e4df9a4d1 | <ide><path>numpy/lib/nanfunctions.py
<ide> def _nanpercentile(a, q, axis=None, out=None, overwrite_input=False,
<ide> else:
<ide> result = np.apply_along_axis(_nanpercentile1d, axis, a, q,
<ide> overwrite_input, interpolation)
<del>
<add> # apply_along_axis fills ... | 2 |
PHP | PHP | add callonce to seeder | 63bb589b760b6497c840858409e3b5da0ee287de | <ide><path>src/Illuminate/Database/Seeder.php
<ide> abstract class Seeder
<ide> */
<ide> protected $command;
<ide>
<add> /**
<add> * Seeders that have been called at least one time.
<add> *
<add> * @var array
<add> */
<add> protected static $called = [];
<add>
<ide> /**
<ide> * ... | 1 |
Javascript | Javascript | remove unused base.js script | be0e196e65cf50ab8be1e6aa8d56e5f4d13def7e | <ide><path>rest_framework/static/rest_framework/docs/js/base.js
<del>function getSearchTerm()
<del>{
<del> var sPageURL = window.location.search.substring(1);
<del> var sURLVariables = sPageURL.split('&');
<del> for (var i = 0; i < sURLVariables.length; i++)
<del> {
<del> var sParameterName = sURLVar... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.