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 |
|---|---|---|---|---|---|
PHP | PHP | add option for null queue driver | 91679d34f89876ef2d41719b87d584bdfdeea099 | <ide><path>src/Illuminate/Queue/Connectors/NullConnector.php
<add><?php namespace Illuminate\Queue\Connectors;
<add>
<add>class NullConnector implements ConnectorInterface {
<add>
<add> /**
<add> * Establish a queue connection.
<add> *
<add> * @param array $config
<add> * @return \Illuminate\Contracts\Queue\Queue... | 3 |
Javascript | Javascript | remove cache from array of matrices uniforms | 310bd2b38764b33f3c61820b4b7aecef86ad3c74 | <ide><path>src/renderers/webgl/WebGLUniforms.js
<ide> function setValueV4a( gl, v ) {
<ide>
<ide> function setValueM2a( gl, v ) {
<ide>
<del> var cache = this.cache;
<ide> var data = flatten( v, this.size, 4 );
<ide>
<del> if ( arraysEqual( cache, data ) ) return;
<del>
<ide> gl.uniformMatrix2fv( this.addr, false,... | 1 |
Text | Text | replace _wg_ with _team_ | fcb46a462635361daa922e9b38a1b7dbda461c8a | <ide><path>doc/guides/adding-new-napi-api.md
<ide> N-API API.
<ide> * There **should** be at least one test case per interesting use of the API.
<ide> * There **should** be a sample provided that operates in a realistic way
<ide> (operating how a real addon would be written).
<del>* A new API **should** be discussed ... | 1 |
PHP | PHP | remove non psr7 dispatchers | 86238668f025adce1fb93e54ddee3b018e35f209 | <ide><path>src/Routing/Dispatcher.php
<del><?php
<del>/**
<del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * For full copyright and license information, please se... | 16 |
Text | Text | fix typo in custom-webpack-config docs | 193ffe7616ed1e1578eea817d8808e9f556f6055 | <ide><path>docs/api-reference/next.config.js/custom-webpack-config.md
<ide> description: Extend the default webpack config added by Next.js.
<ide>
<ide> # Custom Webpack Config
<ide>
<del>Before continuing to add custom webpack configuration your application make sure Next.js doesn't already support your use-case:
<a... | 1 |
Ruby | Ruby | fix flaky activestorage test | 948e9d74e31bb25b67e60ba1cdc59edebb2fb640 | <ide><path>activestorage/lib/active_storage/fixture_set.rb
<ide> class FixtureSet
<ide> # # tests/fixtures/action_text/blobs.yml
<ide> # second_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob(
<ide> # filename: "second.svg",
<add> # ) %>
<add> #
<add> # third_thumbnail_blob: <%= Acti... | 4 |
Javascript | Javascript | fix unsafe array iteration | c0e66e3e9d74d514e3ef8a06a652f45458d98d20 | <ide><path>lib/internal/timers.js
<ide> const {
<ide> NumberMIN_SAFE_INTEGER,
<ide> ObjectCreate,
<ide> Symbol,
<add> ReflectApply,
<ide> } = primordials;
<ide>
<ide> const {
<ide> function getTimerCallbacks(runNextTicks) {
<ide> if (args === undefined)
<ide> timer._onTimeout();
<ide> ... | 1 |
Javascript | Javascript | add d3.interpolators registry | 40ba7913e0540a0a2f31445addf80209a35d5299 | <ide><path>d3.js
<ide> function d3_ease_bounce(t) {
<ide> }
<ide> d3.event = null;
<ide> d3.interpolate = function(a, b) {
<del> if (typeof b === "number") return d3.interpolateNumber(+a, b);
<del> if (typeof b === "string") {
<del> return (b in d3_rgb_names) || /^(#|rgb\(|hsl\()/.test(b)
<del> ? d3.interpo... | 3 |
Text | Text | add 2.8.0 changelog | fa4ee2a5b1d1e4a663a5e32622aec9e5f6e453f5 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.8.0 [See changelog](https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4)
<add>
<add>* incompatible changes
<add> * [#1761](https://github.com/moment/moment/issues/1761): moments created without a language are no longer following the global l... | 1 |
Ruby | Ruby | remove redundant `env.delete` in `scrub_env!` | 081dfef95ae70fe9311c8be20a094977dc7643ff | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def build_response(klass)
<ide> def scrub_env!(env)
<ide> env.delete_if { |k, v| k.match?(/^(action_dispatch|rack)\.request/) }
<ide> env.delete_if { |k, v| k.match?(/^action_dispatch\.rescue/) }
<del> env.delete "action... | 1 |
Javascript | Javascript | add component stack to invalid style warnings | f56ca479be859c0fac416179a886962d90506425 | <ide><path>packages/react-dom/src/ReactDOMFiberComponent.js
<ide> var HTML = '__html';
<ide>
<ide> var {Namespaces: {html: HTML_NAMESPACE}, getIntrinsicNamespace} = DOMNamespaces;
<ide>
<add>var getStack = emptyFunction;
<add>
<ide> if (__DEV__) {
<add> getStack = getCurrentFiberStackAddendum;
<add>
<ide> var warn... | 6 |
Text | Text | add changelog for 2.11.3 [ci skip] | e842e4c0a050263d8a0495e81f63d5b9a6f4666f | <ide><path>CHANGELOG.md
<ide> - [#14852](https://github.com/emberjs/ember.js/pull/14852) [PERF] only `LOG_TRANSITIONS` and `LOG_TRANSITIONS_INTERNAL` in debug
<ide> - [#14854](https://github.com/emberjs/ember.js/pull/14854) [PER] only `LOG_ACTIVE_GENERATION` and `LOG_RESOLVER` in debug
<ide>
<add>### 2.11.3 (March 8, ... | 1 |
Python | Python | fix polymul bug | e7a51c37517f0fc62624c7e8e40d63ba416d096d | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_noncommutative_reduce_accumulate(self, level=rlevel):
<ide> assert_array_equal(N.divide.accumulate(todivide),
<ide> N.array([2., 4., 16.]))
<ide>
<add> def check_mem_polymul(self, level=rlevel):
<add> """Ticket #448"""
<add> ... | 2 |
Python | Python | update version numbers | 0242ca59ac0412b44419de2b6b4d07bebf975610 | <ide><path>keras/__init__.py
<del>__version__ = '0.3.2'
<add>__version__ = '1.0.0'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='0.3.2',
<add> version='1.0.0',
<ide> description='Deep Learning for Python',
<ide> author='Francois Chollet',
<ide> author_email='fran... | 2 |
Text | Text | update doc version | 60a429f5cb2a1985ab1e43c5c3155a0bd6ebe963 | <ide><path>docs/00-Getting-Started.md
<ide> npm install chart.js --save
<ide> bower install Chart.js --save
<ide> ```
<ide>
<del>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0-beta/Chart.js
<add>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.js
<ide>
<ide> ###Install Chart.js
<ide> | 1 |
Javascript | Javascript | add dynamic flags to react native | 4c9eb2af1e917529cbefa4b4e0c2923efd016ff5 | <ide><path>packages/shared/forks/ReactFeatureFlags.native-fb.js
<ide> export const enableUseRefAccessWarning = false;
<ide> export const enableRecursiveCommitTraversal = false;
<ide> export const disableSchedulerTimeoutInWorkLoop = false;
<ide> export const enableLazyContextPropagation = false;
<del>export const enable... | 1 |
Javascript | Javascript | reverse arguments in assert.strictequal | 99c16900c8eba7baa64dbd4f5f978412871410a2 | <ide><path>test/parallel/test-http-keep-alive-close-on-header.js
<ide> server.listen(0, function() {
<ide> port: this.address().port,
<ide> agent: agent
<ide> }, function(res) {
<del> assert.strictEqual(1, agent.sockets[name].length);
<add> assert.strictEqual(agent.sockets[name].length, 1);
<ide> re... | 1 |
PHP | PHP | reword exception explanation | 8900def9d770b01bebb4bb0efc9ecc231e55a786 | <ide><path>src/Cache/SimpleCacheEngine.php
<ide> public function getMultiple($keys, $default = null)
<ide> * the driver supports TTL then the library may set a default value
<ide> * for it or let the driver take care of that.
<ide> * @return bool True on success and false on failure.
<del> * @thr... | 1 |
Ruby | Ruby | remove with_tags from query_logs | 9c6b343a6fd29ae496d808904d875859bb1a9c9d | <ide><path>activerecord/lib/active_record/query_logs.rb
<ide> def set_context(**options)
<ide> update_context(**previous_context)
<ide> end
<ide>
<del> # Temporarily tag any query executed within `&block`. Can be nested.
<del> def with_tag(tag, &block)
<del> inline_tags.push(tag)
<del> ... | 2 |
Python | Python | fix flaky test_add_chord_to_chord | 1f4af2d6c19ba83ec751fa2d71adc3ea232d0c21 | <ide><path>t/integration/test_canvas.py
<ide> def test_add_chord_to_chord(self, manager):
<ide>
<ide> c = group([add_chord_to_chord.s([1, 2, 3], 4)]) | identity.s()
<ide> res = c()
<del> assert res.get() == [0, 5 + 6 + 7]
<add> assert sorted(res.get()) == [0, 5 + 6 + 7]
<ide>
<ide> @... | 1 |
Text | Text | add command for system administrators. | 42151b51536b41960e728f31861371ac61c2c3d2 | <ide><path>guide/english/linux/10-simple-and-useful-linux-commands/index.md
<ide> Copy file from source to destination preserving same mode.
<ide> 11. `mv`
<ide> Move file from source to destination preserving same mode.
<ide>
<del>12. `ifconfig` to view ip and other information.
<add>12. 'ifconfig' command
<add>i... | 1 |
Ruby | Ruby | add scope to preload embeds as well | 83d781ed01459cb80d10a1c8e91e3d6f36c01913 | <ide><path>lib/action_text/attribute.rb
<ide> def #{name}=(body)
<ide> has_one :"rich_text_#{name}", -> { where(name: name) }, class_name: "ActionText::RichText", as: :record, inverse_of: :record, dependent: :destroy
<ide>
<ide> scope :"with_rich_text_#{name}", -> { includes("rich_text_#{name}") }
<add... | 1 |
Javascript | Javascript | simplify several debug() calls | 69470c87cc65e92acb15883d2d031fe9fa1f4c54 | <ide><path>lib/internal/http2/core.js
<ide> function onOrigin(origins) {
<ide> const session = this[kOwner];
<ide> if (session.destroyed)
<ide> return;
<del> debug(`Http2Session ${sessionName(session[kType])}: origin received: ` +
<del> `${origins.join(', ')}`);
<add> debug('Http2Session %s: origin rec... | 2 |
Python | Python | fix typo in the word "default" in www/forms.py | 927885709f679de8f4841b76b127630555b433c7 | <ide><path>airflow/www/forms.py
<ide> def process_formdata(self, valuelist):
<ide> # default timezone
<ide> if len(date_str) == 19:
<ide> parsed_datetime = dt.strptime(date_str, '%Y-%m-%d %H:%M:%S')
<del> defualt_timezone = self._get_defualt_timezone()
<del> ... | 1 |
Python | Python | use list comprehension instead | 5a5f3d15135d966aefe96c8577d18e890bcefb2c | <ide><path>libcloud/test/compute/test_opsource.py
<ide> def test_ex_list_networks(self):
<ide>
<ide> def test_node_public_ip(self):
<ide> nodes = self.driver.list_nodes()
<del> for node in nodes:
<del> if node.id == "abadbc7e-9e10-46ca-9d4a-194bcc6b6c16":
<del> self.assertE... | 1 |
PHP | PHP | fix failing tests in redirectroute | 84d57e2a4b2a18f73f62e8eea835b68266619d35 | <ide><path>lib/Cake/Routing/Route/RedirectRoute.php
<ide> public function parse($url) {
<ide> $redirect = $this->redirect[0];
<ide> }
<ide> if (isset($this->options['persist']) && is_array($redirect)) {
<del> $redirect += array('named' => $params['named'], 'pass' => $params['pass'], 'url' => array());
<add> ... | 2 |
Javascript | Javascript | ignore connection errors for hostname check | 4d7946aec33d23dd0c1fa1125937baad7e11a8e3 | <ide><path>test/parallel/test-http-hostname-typechecking.js
<ide> vals.forEach((v) => {
<ide> assert.throws(() => http.request({host: v}), errHost);
<ide> });
<ide>
<del>// These values are OK and should not throw synchronously
<add>// These values are OK and should not throw synchronously.
<add>// Only testing for ... | 1 |
Text | Text | add keys with examples | 95e541882cfeb272726f11e5f720a4d2b2de7df9 | <ide><path>guide/english/react/keys/index.md
<add>---
<add>title: Keys
<add>---
<add>
<add># Keys
<add>
<add>Keys are the eyes and ears on your application battlefield letting React know which items have changed or were added.
<add>```javascript
<add>const bestCereal = ['cookie crisp','waffle crisp','fruit loops','cinn... | 1 |
Ruby | Ruby | add tap_audit_exceptions attribute | 089810709cfaae625867f2ee3e9c61f6822e9a2c | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def problem(text)
<ide> end
<ide>
<ide> class TapAuditor
<del> attr_reader :name, :path, :problems
<add> attr_reader :name, :path, :tap_audit_exceptions, :problems
<ide>
<ide> def initialize(tap, options = {})
<ide> @name = tap.nam... | 1 |
Python | Python | click detects program name when run as module | 055cdc2625c0cdf8cea87524f5c6bcf07f7e5005 | <ide><path>src/flask/__main__.py
<ide> from .cli import main
<ide>
<del>main(as_module=True)
<add>main()
<ide><path>src/flask/cli.py
<ide> def routes_command(sort, all_methods):
<ide> )
<ide>
<ide>
<del>def main(as_module=False):
<add>def main():
<ide> # TODO omit sys.argv once https://github.com/pallets/click/i... | 2 |
Javascript | Javascript | extract logic for detecting bad fallback to helper | bdd3d0807c6e9f417909bab93ffe9795128b04d8 | <ide><path>packages/react-reconciler/src/ReactFiberCompleteWork.new.js
<ide> import type {OffscreenState} from './ReactFiberOffscreenComponent';
<ide> import type {TracingMarkerInstance} from './ReactFiberTracingMarkerComponent.new';
<ide> import type {Cache} from './ReactFiberCacheComponent.new';
<ide> import {
<del> ... | 6 |
Text | Text | change text in user story to match test case | 65816e0df4e473e433046f03a62f9d68b8ba8c90 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/build-a-tribute-page-project/build-a-tribute-page.md
<ide> dashedName: build-a-tribute-page
<ide>
<ide> **User Stories:**
<ide>
<del>1. Your tribute page should have an element with a corresponding `id="main"`, which contains all other elements
<add... | 1 |
Javascript | Javascript | use one history item for reentered line | 3ea0397a1a679e7ffaaf353bc67afca2a4065fa5 | <ide><path>lib/readline.js
<ide> Interface.prototype._onLine = function(line) {
<ide> Interface.prototype._addHistory = function() {
<ide> if (this.line.length === 0) return '';
<ide>
<del> this.history.unshift(this.line);
<del> this.historyIndex = -1;
<add> if (this.history.length === 0 || this.history[0] !== th... | 1 |
Python | Python | switch bitnami images in tests to "standard" ones | eb26510d3a1ccfaa9e4f8e1e0c91b5c74ae7393e | <ide><path>tests/providers/docker/decorators/test_docker.py
<ide>
<ide> class TestDockerDecorator:
<ide> def test_basic_docker_operator(self, dag_maker):
<del> @task.docker(image="quay.io/bitnami/python:3.9")
<add> @task.docker(image="python:3.9-slim")
<ide> def f():
<ide> import ... | 1 |
Javascript | Javascript | exclude smart quotes at the end of the link | 7c6be43e83590798cffef63d076fb79d5296fba2 | <ide><path>src/ngSanitize/filter/linky.js
<ide> */
<ide> angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
<ide> var LINKY_URL_REGEXP =
<del> /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,
<add> /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^... | 2 |
Ruby | Ruby | fix sse support on core 2 processors | c6d98678acaf899ea777d335a3abe1abb8a9e1d4 | <ide><path>Library/Homebrew/brewkit.rb
<ide> # http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/i386-and-x86_002d64-Options.html
<ide> if MACOS_VERSION >= 10.6
<ide> case Hardware.intel_family
<del> when :penryn
<del> cflags<<'-march=core2'<<'-msse4.1'
<del> when :core2
<del> cflags<<"-march=core2"<<'-msse4'
<del>... | 1 |
Python | Python | fix logger format for non-main process | 6bab83683bf46352b59ab01cf596804dfdf7d973 | <ide><path>examples/seq2seq/finetune_trainer.py
<ide> def main():
<ide> bool(training_args.parallel_mode == ParallelMode.DISTRIBUTED),
<ide> training_args.fp16,
<ide> )
<add> transformers.utils.logging.enable_default_handler()
<add> transformers.utils.logging.enable_explicit_format()
<ide> ... | 1 |
Ruby | Ruby | remove extra whitespaces | 24586edae2f808c256a9e3d5e0bf09236358ee7e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def initialize(connection, logger = nil) #:nodoc:
<ide> @instrumenter = ActiveSupport::Notifications.instrumenter
<ide> end
<ide>
<del> # Returns the human-readable name of the adapter. Use mixed case - one
<add... | 1 |
Text | Text | remove entries included in 5.0 [ci skip] | df6aef2518884f65871f719125a972790518fd17 | <ide><path>guides/source/5_1_release_notes.md
<ide> Please refer to the [Changelog][action-cable] for detailed changes.
<ide> with multiple applications.
<ide> ([Pull Request](https://github.com/rails/rails/pull/27425))
<ide>
<del>* Permit same-origin connections by default.
<del> ([commit](https://github... | 1 |
Python | Python | fix broken type annotation | 62266fb8286e0918366b9488b4aa4a38b9d49437 | <ide><path>spacy/tokens/_serialize.py
<ide> def __init__(
<ide> self,
<ide> attrs: Iterable[str] = ALL_ATTRS,
<ide> store_user_data: bool = False,
<del> docs=Iterable[Doc],
<add> docs: Iterable[Doc] = tuple(),
<ide> ) -> None:
<ide> """Create a DocBin object to hold ser... | 1 |
Javascript | Javascript | add streams benchmark test | 902fd40ed59035ee10c3637e32616ce7b858c9e2 | <ide><path>test/parallel/test-benchmark-streams.js
<add>'use strict';
<add>
<add>require('../common');
<add>
<add>const runBenchmark = require('../common/benchmark');
<add>
<add>runBenchmark('streams',
<add> [
<add> 'kind=duplex',
<add> 'type=buffer',
<add> 'n=1'
<a... | 1 |
Javascript | Javascript | add textinput example to rtl tester | 35b8f76c9e7cc1660b7c32b95f9bd5509e600de7 | <ide><path>packages/rn-tester/js/examples/RTL/RTLExample.js
<ide> const {
<ide> Platform,
<ide> StyleSheet,
<ide> Text,
<add> TextInput,
<ide> TouchableWithoutFeedback,
<ide> Switch,
<ide> View,
<ide> const TextAlignmentExample = withRTLState(({isRTL, setRTL, ...props}) => {
<ide> );
<ide> });
<ide>
<ad... | 1 |
PHP | PHP | add back test incorrectly removed | fae093220c93b78e7edde33465c0817d8ec21699 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testSelectOrderByString()
<ide> $result->closeCursor();
<ide> }
<ide>
<add> /**
<add> * Test that order() works with an associative array which contains extra values.
<add> *
<add> * @return void
<add> */
<add> pub... | 1 |
Javascript | Javascript | handle font sizes that are set as strings | ac85ce41db282368de50cf7dfdb9cf386cbfbf62 | <ide><path>src/helpers/helpers.options.js
<ide> export function toPadding(value) {
<ide> * @private
<ide> */
<ide> export function _parseFont(options) {
<del> var size = valueOrDefault(options.fontSize, defaults.fontSize);
<del> var font = {
<add> let size = valueOrDefault(options.fontSize, defaults.fontSize);
<add>
... | 2 |
Javascript | Javascript | support object values for bar charts | bb5f12ad2abea9b92d1d2d1bae991a26a95c3cfb | <ide><path>src/scales/scale.category.js
<ide> 'use strict';
<ide>
<add>var helpers = require('../helpers/index');
<ide> var Scale = require('../core/core.scale');
<ide>
<add>var isNullOrUndef = helpers.isNullOrUndef;
<add>
<ide> var defaultConfig = {
<ide> position: 'bottom'
<ide> };
<ide> module.exports = Scale.ext... | 2 |
Javascript | Javascript | add spec for imagestore | 5e6cebe50bb38ac257094227f5db9c5defd4c0f8 | <ide><path>Libraries/Image/ImageStore.js
<ide> */
<ide> 'use strict';
<ide>
<del>const RCTImageStoreManager = require('../BatchedBridge/NativeModules')
<del> .ImageStoreManager;
<add>import NativeImageStore from './NativeImageStore';
<ide>
<ide> const Platform = require('../Utilities/Platform');
<ide>
<ide> class ... | 2 |
PHP | PHP | fix composite key generation in postgres | 06325003cfa27f20c4a2fb319d52efa77a16bad7 | <ide><path>Cake/Database/Schema/PostgresSchema.php
<ide> <?php
<ide> /**
<del> * PHP Version 5.4
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> public function convertIndexDescription(Table ... | 2 |
Text | Text | improve the changelog entry [ci skip] | 8f17a834ae98cea28ceff22bf11ce346b867bc90 | <ide><path>activerecord/CHANGELOG.md
<del>* Calling reset on a collection association should unload the assocation.
<add>* Reset the collection association when calling `reset` on it.
<add>
<add> Before:
<add>
<add> post.comments.loaded? # => true
<add> post.comments.reset
<add> post.comment... | 1 |
Ruby | Ruby | update github actions | acfdbce6d4259f9b6440f606f1dc48d4497d8393 | <ide><path>Library/Homebrew/dev-cmd/tap-new.rb
<ide> def tap_new
<ide> pull_request: []
<ide> jobs:
<ide> test-bot:
<del> runs-on: macos-latest
<add> runs-on: [ubuntu-latest, macos-latest]
<ide> steps:
<add> - name: Update Homebrew
<add> run: bre... | 2 |
Text | Text | fix typo in placeholder-blur-data-url error docs | 57501fa7452f7d52aca29b2046f6d9e06ae2ba2e | <ide><path>errors/placeholder-blur-data-url.md
<ide>
<ide> You are attempting use the `next/image` component with `placeholder=blur` property but no `blurDataURL` property.
<ide>
<del>The `blurDataURL` might be missing because your using a string for `src` instead of a static import.
<add>The `blurDataURL` might be m... | 1 |
Python | Python | remove unused import | 0c39654786cda773328f7b19a672cbcf7802006e | <ide><path>spacy/de/language_data.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals
<del>import re
<ide>
<ide> from ..symbols import *
<ide> from ..language_data import TOKENIZER_PREFIXES
<ide><path>spacy/en/language_data.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals
<de... | 2 |
Text | Text | add some missing imports | 8ee763739d66bbaaa9c0f78fa05bbc17dce3de13 | <ide><path>docs/tutorial/3-class-based-views.md
<ide> We can also write our API views using class based views, rather than function ba
<ide> We'll start by rewriting the root view as a class based view. All this involves is a little bit of refactoring.
<ide>
<ide> from blog.models import Comment
<del> from blo... | 1 |
Javascript | Javascript | fix double application of ambient light | 2d3f69905f8f426fdc43c1c082cac6b56bd54713 | <ide><path>src/renderers/shaders/ShaderLib.js
<ide> THREE.ShaderLib = {
<ide> " #ifdef DOUBLE_SIDED",
<ide>
<ide> " if ( gl_FrontFacing )",
<del> " outgoingLight += diffuseColor.rgb * ( vLightFront * shadowMask + totalAmbientLight ) + emissive;",
<add> " outgoingLight += diffuseColor.rgb * ( vLightFront... | 1 |
Python | Python | remove unnecessary backslashes when not needed | 78d269d847dcea87302580bf56a5c41b7b69f122 | <ide><path>numpy/distutils/command/build_src.py
<ide> def generate_sources(self, sources, extension):
<ide> # incl_dirs = extension.include_dirs
<ide> #if self.build_src not in incl_dirs:
<ide> # incl_dirs.append(self.build_src)
<del> build_dir = os.path.join(*([self... | 6 |
Python | Python | add more context to the choicefield metadata | 2484fc914159571a3867c2dae2d9b51314f4581d | <ide><path>rest_framework/fields.py
<ide> def _set_choices(self, value):
<ide>
<ide> def metadata(self):
<ide> data = super(ChoiceField, self).metadata()
<del> data['choices'] = self.choices
<add> data['choices'] = [{'value': v, 'name': n} for v, n in self.choices]
<ide> return data
<... | 1 |
Go | Go | add the mediatype to the error | c127d9614f5b30bd73861877f8540a63e7d869e9 | <ide><path>cli/command/image/pull.go
<ide> func runPull(dockerCli *command.DockerCli, opts pullOptions) error {
<ide> err = imagePullPrivileged(ctx, dockerCli, authConfig, reference.FamiliarString(distributionRef), requestPrivilege, opts.all)
<ide> }
<ide> if err != nil {
<del> if strings.Contains(err.Error(), "ta... | 4 |
Ruby | Ruby | remove deprecation comment | ea8a66f38570ce81f433f44ddc0c25c2abe5fb8f | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap_args
<ide> switch "--full",
<ide> description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\
<ide> "shallow clones if `--shallow` was originally passed."
<del> # odeprecated ... | 1 |
PHP | PHP | use strpos instead of array_search | 3cf9fe0005e42522b8528fa41fda6b8ed3cb1805 | <ide><path>src/Http/Response.php
<ide> protected function _sendFile($file, $range)
<ide> }
<ide>
<ide> $bufferSize = 8192;
<del> if (array_search('set_time_limit', explode(',', ini_get('disable_functions'))) === false) {
<add> if (strpos(ini_get('disable_functions'),'set_time_limit') === ... | 1 |
Java | Java | fix drawimagewithpipeline for nodes | aadf4dfdc2579b8e67bf9833e9529026c9359e6f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithPipeline.java
<ide>
<ide> @Override
<ide> public boolean hasImageRequest() {
<del> return mRequestHelper != null;
<add> return mSources != null && !mSources.isEmpty();
<ide> }
<ide>
<ide> @Override | 1 |
Text | Text | fix a typo in docs | c11310b0f152c1aef20016c6dc0e2833c35badcf | <ide><path>errors/invalid-page-config.md
<ide> In one of your pages or API Routes you did `export const config` with an invalid
<ide> #### Possible Ways to Fix It
<ide>
<ide> The page's config must be an object initialized directly when being exported and not modified dynamically.
<del>The config object must only cont... | 1 |
Javascript | Javascript | make matchlatestdefinitionenabled work | d86f6be57bbfc154c36e42469008a87bfaeef1d2 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
<ide> * as a getter
<ide> */
<ide> $httpBackend.matchLatestDefinitionEnabled = function(value) {
<del> if (isDefined(value)) {
<add> if (angular.isDefined... | 1 |
Ruby | Ruby | remove unused test cask | 3dbbcd11cc8b2d70cf8cef901c2e268d3e75cc7f | <ide><path>Library/Homebrew/test/support/fixtures/cask/Casks/compat/with-dsl-version.rb
<del>cask :v1 => 'with-dsl-version' do
<del> version '1.2.3'
<del> sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
<del>
<del> url 'https://example.com/TestCask.dmg'
<del> homepage 'https://example.com/... | 1 |
PHP | PHP | queue | 51647eb701307e7682f7489b605a146e750abf0f | <ide><path>src/Illuminate/Contracts/Console/Kernel.php
<ide> public function call($command, array $parameters = []);
<ide> *
<ide> * @param string $command
<ide> * @param array $parameters
<del> * @return int
<add> * @return \Illuminate\Foundation\Bus\PendingDispatch
<ide> */
<ide> p... | 3 |
Text | Text | fix typo in collaborator guide | f35de1c98de972ae71af13f8aae266fcd7c66e78 | <ide><path>COLLABORATOR_GUIDE.md
<ide>
<ide> ## Issues and Pull Requests
<ide>
<del>Full courtesey should always be shown in video.js projects.
<add>Full courtesy should always be shown in video.js projects.
<ide>
<ide> Collaborators may manage issues they feel qualified to handle, being mindful of our guidelines.
<... | 1 |
Javascript | Javascript | fix linting errors | 169334961646924f489172bcde0fdcb1c01846db | <ide><path>tools/doc/type-parser.js
<ide> const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
<ide> 'JavaScript/Data_structures';
<ide> const jsPrimitives = [
<ide> 'Number', 'String', 'Boolean', 'Null', 'Symbol'
<del>]
<add>];
<ide> const jsGlobalTypes = [
<ide> 'Error', 'Object', 'Function'... | 1 |
Python | Python | use the parameter epoch to stop iter | fc08c25fe535ec9f18bf92f80406f531bfb30906 | <ide><path>keras/callbacks.py
<ide> def on_epoch_end(self, epoch, logs=None):
<ide> if self.baseline is None or self._is_improvement(current, self.baseline):
<ide> self.wait = 0
<ide>
<del> if self.wait >= self.patience:
<add> #Only stop after first epoch
<add> if self.wait >= self.patience and ... | 1 |
Go | Go | add tests of tcp port allocator | febaeebfb8848265267213b2f6a6fc3a40ad90f1 | <ide><path>network.go
<ide> func (alloc *PortAllocator) runFountain() {
<ide>
<ide> // FIXME: Release can no longer fail, change its prototype to reflect that.
<ide> func (alloc *PortAllocator) Release(port int) error {
<add> Debugf("Releasing %d", port)
<ide> alloc.lock.Lock()
<ide> delete(alloc.inUse, port)
<ide> ... | 2 |
Ruby | Ruby | restore i18n.locale after running tests | 9b520d31e5d534dc5b93c0d4410efa933a6745c8 | <ide><path>actionpack/test/controller/localized_templates_test.rb
<ide> class LocalizedTemplatesTest < ActionController::TestCase
<ide> tests LocalizedController
<ide>
<ide> def test_localized_template_is_used
<add> old_locale = I18n.locale
<ide> I18n.locale = :de
<ide> get :hello_world
<ide> assert... | 1 |
Python | Python | set poll_interval to 0.0 in the tests | 7c5c46c5b5a62b79b55296073de8c2b141366fbe | <ide><path>test/compute/test_cloudstack.py
<ide> def setUp(self):
<ide> self.driver.path = '/test/path'
<ide> self.driver.type = -1
<ide> CloudStackMockHttp.fixture_tag = 'default'
<add> self.driver.connection.poll_interval = 0.0
<ide>
<ide> def test_create_node_immediate_failure(sel... | 2 |
PHP | PHP | fix array keys from cached routes | d3634359a13a078839363cf34ab24d197ffe4a69 | <ide><path>src/Illuminate/Routing/CompiledRouteCollection.php
<ide> public function getRoutesByMethod()
<ide> })
<ide> ->map(function (Collection $routes) {
<ide> return $routes->mapWithKeys(function (Route $route) {
<del> if ($domain = $route->getDomain()) {
<... | 2 |
Mixed | Javascript | add onfocusvisiblechange to focus | 2cca18728e7d8a5691df6598629ba21020e22898 | <ide><path>packages/react-events/docs/Focus.md
<ide> # Focus
<ide>
<ide> The `Focus` module responds to focus and blur events on its child. Focus events
<del>are dispatched for `mouse`, `pen`, `touch`, and `keyboard`
<del>pointer types.
<add>are dispatched for all input types, with the exception of `onFocusVisibleChan... | 4 |
Ruby | Ruby | raise a systemexit exception to prevent backtrace | 4671526d70d33de7e44d42a28ce2eee912783dc6 | <ide><path>Library/Homebrew/utils.rb
<ide> def pretty_duration s
<ide>
<ide> def interactive_shell
<ide> pid=fork
<del> if pid.nil?
<del> exec ENV['SHELL']
<del> else
<del> Process.wait pid
<del> end
<add> exec ENV['SHELL'] if pid.nil?
<add> Process.wait pid
<add> raise SystemExit, "Aborting due to non-z... | 1 |
Java | Java | eliminate warnings in .validation package | f4e1cde33b077b1268cc5cae0c18c4b706653d25 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/PropertyEditorRegistry.java
<ide> public interface PropertyEditorRegistry {
<ide> * @param requiredType the type of the property
<ide> * @param propertyEditor the editor to register
<ide> */
<del> void registerCustomEditor(Class required... | 18 |
PHP | PHP | fix cs error | 094ef082587f936b4190af716c7c4a8f54f266e3 | <ide><path>tests/TestCase/Http/ServerTest.php
<ide> use Cake\Http\Server;
<ide> use Cake\TestSuite\TestCase;
<ide> use InvalidArgumentException;
<del>use RuntimeException;
<del>use TestApp\Http\InvalidMiddlewareApplication;
<ide> use TestApp\Http\MiddlewareApplication;
<ide> use Zend\Diactoros\Response;
<ide> use Zend\... | 1 |
Ruby | Ruby | remove circular require | 8bf2825205ad392c923070e722fc8d39687520e3 | <ide><path>activesupport/lib/active_support/core_ext/module/aliasing.rb
<del>require 'active_support/deprecation'
<del>
<ide> class Module
<ide> # Encapsulates the common pattern of:
<ide> #
<ide><path>activesupport/lib/active_support/core_ext/module/deprecation.rb
<del>require 'active_support/deprecation'
<del>
<i... | 2 |
Python | Python | add comment for delayed imports | 739de19d3bc61583c342678f386f917725b33c25 | <ide><path>numpy/core/_dtype_ctypes.py
<ide> class DummyStruct(ctypes.Structure):
<ide> * ctypes cannot handle big-endian structs with PEP3118 (bpo-32780)
<ide> """
<ide>
<add># We delay-import ctypes for distributions that do not include it.
<add># While this module is not used unless the user passes in ctypes
<add>#... | 1 |
Ruby | Ruby | fix removing of previous source | 2ce58f9fcba5a9c214d9f56c6101b1c5bab3a304 | <ide><path>Library/Homebrew/mktemp.rb
<ide> def to_s
<ide>
<ide> def run
<ide> prefix_name = @prefix.tr "@", "AT"
<del> if @retain_in_cache
<add> if retain_in_cache?
<ide> source_dir = "#{HOMEBREW_CACHE}/Sources/#{prefix_name}"
<del> chmod_rm_rf(source_dir) # clear out previous (otherwise not su... | 1 |
Ruby | Ruby | run inline jobs in separate threads | 8319f9eceae0584bc4d360cd497b3b5e8e31c311 | <ide><path>activejob/lib/active_job/queue_adapters/inline_adapter.rb
<ide> module QueueAdapters
<ide> # Rails.application.config.active_job.queue_adapter = :inline
<ide> class InlineAdapter
<ide> def enqueue(job) #:nodoc:
<del> Base.execute(job.serialize)
<add> Thread.new { Base.execute(jo... | 3 |
Ruby | Ruby | fix deprecation test | f0a9f814a3ea7237275b2c89df8b378b08e248f8 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def merge(chain, new_options)
<ide> :unless => @options[:unless].dup
<ide> }
<ide>
<add> deprecate_per_key_option new_options
<add>
<ide> _options[:if].concat Array(new_options.fetch(:unless, []))
<ide> _options... | 1 |
Text | Text | remove changelog entry for rails 5.0 only feature. | 57a1d2bf9d71600ec872de125854e550b376caa5 | <ide><path>activerecord/CHANGELOG.md
<del>* `has_secure_token` does not overwrite value when already present.
<del>
<del> user = User.create(token: "custom-secure-token")
<del> user.token # => "custom-secure-token"
<del>
<del> *Wojciech Wnętrzak*
<del>
<ide> * Use SQL COUNT and LIMIT 1 queries for ... | 1 |
Javascript | Javascript | fix quotes for releasing on windows | 51c29dc1fecc675054762fb1f50a0cdd6b1f0df0 | <ide><path>build/release/dist.js
<ide> module.exports = function( Release, files, complete ) {
<ide> fs.writeFileSync( Release.dir.dist + "/bower.json", generateBower() );
<ide>
<ide> console.log( "Adding files to dist..." );
<del> Release.exec( "git add .", "Error adding files." );
<add>
<add> Release.exec( "gi... | 1 |
Ruby | Ruby | fix code style a bit | 88dfe16d9536b8de4cc69bbe649131840bca9a2c | <ide><path>actionpack/lib/action_view/helpers/number_helper.rb
<ide> def number_to_human(number, options = {})
<ide> raise ArgumentError, ":units must be a Hash or String translation scope."
<ide> end.keys.map{|e_name| DECIMAL_UNITS.invert[e_name] }.sort_by{|e| -e}
<ide>
<del> number_exponent ... | 1 |
Text | Text | add example explaination | 544401abd5bad50acf11737c2a59fabf2587856c | <ide><path>guide/english/html/html5-web-storage/index.md
<ide> title: HTML5 Web Storage
<ide> ---
<ide> ## HTML5 Web Storage
<ide>
<del>Web storage allows web applications to store up to 5MB of information in browser storage per origin (per domain and protocol).
<add>With web storage, web applications can store data l... | 1 |
PHP | PHP | fix failing test | 63c624d2a0786585a0f65c2d72d944b3b4664112 | <ide><path>src/Routing/Filter/AssetFilter.php
<ide> protected function _getAssetFile($url) {
<ide> }
<ide> $pluginPart[] = Inflector::camelize($parts[$i]);
<ide> $plugin = implode('/', $pluginPart);
<del> if (Plugin::loaded($plugin)) {
<add> if ($plugin && Plugin::loaded($plugin)) {
<ide> $parts = arra... | 1 |
Mixed | Ruby | add `drop_enum` command for postgres | bd0fdc8094294fb214b102a78f72a2c0d0063b5b | <ide><path>activerecord/CHANGELOG.md
<add>* Add `drop_enum` migration command for PostgreSQL
<add>
<add> This does the inverse of `create_enum`. Before dropping an enum, ensure you have
<add> dropped columns that depend on it.
<add>
<add> *Alex Ghiculescu*
<add>
<ide> * Adds support for `if_exists` option ... | 8 |
Python | Python | add defensive check | 397a1814ef5d5039df8ef2d8c03761d4722e50e8 | <ide><path>libcloud/compute/drivers/vsphere.py
<ide> def list_images(self, location=None):
<ide> ).view
<ide>
<ide> for vm in vms:
<del> if vm.config.template:
<add> if vm.config and vm.config.template:
<ide> images.append(self._to_image(vm))
<ide>
<ide> r... | 1 |
PHP | PHP | use locatorawaretrait in translatebehavior | a2d86bc1444c3ef04301b8d9dc1830a16131ebcf | <ide><path>src/ORM/Behavior/TranslateBehavior.php
<ide> use Cake\I18n\I18n;
<ide> use Cake\ORM\Behavior;
<ide> use Cake\ORM\Entity;
<add>use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use Cake\ORM\Query;
<ide> use Cake\ORM\Table;
<del>use Cake\ORM\TableRegistry;
<ide> use Cake\Utility\Inflector;
<ide>
<ide> /**
<ide> c... | 1 |
Java | Java | increase time drift threshold | a2f78825f2dbdc0d48eb0a8015b1690a924c5566 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java
<ide> public void createTimer(
<ide> final int duration,
<ide> final double jsSchedulingTime,
<ide> final boolean repeat) {
<add> long deviceTime = SystemClock.currentTimeMillis();
<add> long remoteTime = (long) js... | 1 |
Go | Go | remove jobs from registry.service | 03d3d79b2b3f8b720fff2d649aff0ef791cff417 | <ide><path>api/client/search.go
<ide> func (cli *DockerCli) CmdSearch(args ...string) error {
<ide> if _, err := outs.ReadListFrom(rawBody); err != nil {
<ide> return err
<ide> }
<add> outs.ReverseSort()
<ide> w := tabwriter.NewWriter(cli.out, 10, 1, 3, ' ', 0)
<ide> fmt.Fprintf(w, "NAME\tDESCRIPTION\tSTARS\tOFFI... | 13 |
Text | Text | clarify default queues per rails version [ci-skip] | ac3fcb8f7493394210f7c426db899e7430884e89 | <ide><path>guides/source/action_mailer_basics.md
<ide> pending jobs on restart.
<ide> If you need a persistent backend, you will need to use an Active Job adapter
<ide> that has a persistent backend (Sidekiq, Resque, etc).
<ide>
<del>NOTE: When calling `deliver_later` the job will be placed under `mailers` queue. Make... | 2 |
Ruby | Ruby | add message for asymptote | 0c7c45a131251aaef24dfe5e6b803d136d51fbde | <ide><path>Library/Homebrew/missing_formula.rb
<ide> def blacklisted_reason(name)
<ide> Minimal installation:
<ide> brew cask install basictex
<ide> EOS
<add> when "asymptote" then <<~EOS
<add> Asymptote is bundled with MacTeX. Install it via TeX Live Utility or:
<add> ... | 1 |
PHP | PHP | use php_binary to serve development server | 134147f89dedf5e80e3c27aa127983e1d0a58216 | <ide><path>src/Illuminate/Foundation/Console/ServeCommand.php
<ide> public function fire()
<ide>
<ide> $this->info("Laravel development server started on http://{$host}:{$port}");
<ide>
<del> passthru("php -S {$host}:{$port} -t \"{$public}\" server.php");
<add> passthru(PHP_BINARY." -S {$host}:{$port} -t \"{$publ... | 1 |
Javascript | Javascript | append the release channel to the appusermodelid | 0dfd8d409f66441b8b520feebef8e29753b3030c | <ide><path>src/main-process/start.js
<ide> module.exports = function start(resourcePath, devResourcePath, startTime) {
<ide> }
<ide>
<ide> // NB: This prevents Win10 from showing dupe items in the taskbar
<del> app.setAppUserModelId('com.squirrel.atom.' + process.arch);
<add> app.setAppUserModelId('com.squirrel.... | 1 |
Javascript | Javascript | use aborterror consistently | 886516a14c57deb98b756c39fe0f5daef4e91d96 | <ide><path>lib/events.js
<ide> const kRejection = SymbolFor('nodejs.rejection');
<ide> let spliceOne;
<ide>
<ide> const {
<del> hideStackFrames,
<add> AbortError,
<ide> kEnhanceStackBeforeInspector,
<del> codes
<add> codes: {
<add> ERR_INVALID_ARG_TYPE,
<add> ERR_OUT_OF_RANGE,
<add> ERR_UNHANDLED_ERROR
... | 4 |
Python | Python | fix lint issues | 7c0720aec293aaeb3afce2b8a07ed246b6e5d05f | <ide><path>libcloud/test/dns/test_hostvirtual.py
<ide> def _dns_zones_ZONE_DOES_NOT_EXIST(self, method, url, body, headers):
<ide> {}, httplib.responses[httplib.NOT_FOUND])
<ide>
<ide> def _dns_record_ZONE_DOES_NOT_EXIST(self, method,
<del> url, body, hea... | 1 |
Javascript | Javascript | fix double-binding to submit event | c72e9068418680c447ed029a894e6209d809776e | <ide><path>src/core/ReactEventEmitter.js
<ide> var merge = require('merge');
<ide> var alreadyListeningTo = {};
<ide> var isMonitoringScrollValue = false;
<ide> var reactTopListenersCounter = 0;
<add>
<add>// For events like 'submit' which don't consistently bubble (which we trap at a
<add>// lower node than `document`... | 1 |
Text | Text | remove unused headings | 13eb67309ef31f2b61b74639ae8234adee3b9eac | <ide><path>guides/source/5_1_release_notes.md
<ide> Action Cable
<ide>
<ide> Please refer to the [Changelog][action-cable] for detailed changes.
<ide>
<del>### Removals
<del>
<del>### Deprecations
<del>
<ide> ### Notable changes
<ide>
<ide> * Added support for `channel_prefix` to Redis and evented Redis adapters | 1 |
Ruby | Ruby | add some fixme notes about documentation [ci skip] | ee73d9ff8d13cb9dd3f6ec8cf2e4d3289bfd0278 | <ide><path>activesupport/lib/active_support/message_verifier.rb
<ide> def initialize(secret, options = {})
<ide> @serializer = options[:serializer] || Marshal
<ide> end
<ide>
<add> # FIXME: Document this method
<ide> def valid_message?(signed_message)
<ide> return if signed_message.blank?
<ide> ... | 1 |
Ruby | Ruby | check existence rather than rescue exceptions | bd4aaac96b1f08d59a8e208095ac56ff446608df | <ide><path>Library/Homebrew/formula.rb
<ide> def mirrors; @active_spec.mirrors; end
<ide>
<ide> # if the dir is there, but it's empty we consider it not installed
<ide> def installed?
<del> installed_prefix.children.length > 0 rescue false
<add> (dir = installed_prefix).directory? && dir.children.length > 0... | 2 |
Ruby | Ruby | add keg_only_reason to formula hash | 00b588068fb8c2ae26cfd739968207a3259d43bc | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "version_scheme" => version_scheme,
<ide> "bottle" => {},
<ide> "keg_only" => keg_only?,
<add> "keg_only_reason" => keg_only_reason&.to_hash,
<ide> "bottle_disabled" ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.