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 |
|---|---|---|---|---|---|
Ruby | Ruby | note the alias the other way | 43ea6e6893f1f128fbd843094c2d00b2f6cf3556 | <ide><path>activesupport/lib/active_support/core_ext/array/conversions.rb
<ide> def to_sentence(options = {})
<ide> # Extends <tt>Array#to_s</tt> to convert a collection of elements into a
<ide> # comma separated id list if <tt>:db</tt> argument is given as the format.
<ide> #
<del> # This method is aliased to <... | 7 |
Javascript | Javascript | add hike service sort by difficulty | 02e4c66726f3dbac028d1f2179c744779b92cdf6 | <ide><path>server/services/hikes.js
<ide> export default function hikesService(app) {
<ide> return {
<ide> name: 'hikes',
<ide> read: (req, resource, params, config, cb) => {
<del> Challenge.find({ where: { challengeType: '6' } }, (err, hikes) => {
<add> const query = {
<add> where: { challen... | 1 |
Ruby | Ruby | allow sparkle without a macos version | 94c0d8917eb11f68313bb962b9a595c6bbbd4fd1 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_livecheck_min_os
<ide> return unless cask.livecheckable?
<ide> return unless cask.livecheck.strategy == :sparkle
<ide>
<del> out, _, status = curl_output(cask.livecheck.url)
<add> out, _, status = curl_output("--fail", "--silent", "--locat... | 2 |
Text | Text | add v3.15.0-beta.5 to changelog | f1cc1196e8c992eb0d1d6cd997e0e9cec454563e | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.15.0-beta.5 (December 4, 2019)
<add>
<add>- [#18582](https://github.com/emberjs/ember.js/pull/18582) [BUGFIX] Ensure `loader.js` is transpiled to the applications specified targets (from `config/targets.js`).
<add>
<ide> ### v3.15.0-beta.4 (November 25,... | 1 |
Text | Text | add collaborator guide | 8d51235b306af831cca9b71832798e552542a212 | <ide><path>COLLABORATOR_GUIDE.md
<add># Collaborator Guide
<add>
<add><!-- START doctoc generated TOC please keep comment here to allow auto update -->
<add><!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<add>**Table of Contents**
<add>
<add>- [Issues and Pull Requests](#issues-and-pull-requests)
<ad... | 1 |
Text | Text | fix broken link to mappings-exceptions | 5279c7c4baf5b9f26a364f07551acecf26a2d42f | <ide><path>website/docs/usage/linguistic-features.md
<ide> coarse-grained part-of-speech tags and morphological features.
<ide> that the verb is past tense (e.g. `VBD` for a past tense verb in the Penn
<ide> Treebank) .
<ide> 2. For words whose coarse-grained POS is not set by a prior process, a
<del> [mapping ... | 1 |
Ruby | Ruby | adjust `audit` spec | c07205caf2146dfd3d496a4b887befb83ae04455 | <ide><path>Library/Homebrew/test/cask/audit_spec.rb
<ide> def tmp_cask(name, text)
<ide> end
<ide> end
<ide>
<del> context "when doing the audit" do
<add> context "when doing an offline audit" do
<add> let(:online) { false }
<add>
<add> it "does not evaluate the block"... | 1 |
Javascript | Javascript | use removeattribute when transitioning to null | db65a3849f198663e26dcd596b277e1405e8bfb3 | <ide><path>d3.js
<ide> d3_transitionPrototype.attrTween = function(name, tween) {
<ide> function attrTween(d, i) {
<ide> var f = tween.call(this, d, i, this.getAttribute(name));
<ide> return f && function(t) {
<del> this.setAttribute(name, f(t));
<add> if ((t = f(t)) != null) this.setAttribute(name,... | 5 |
Python | Python | enable umath_test on all platforms | 4b7c165bd0448c3ef891af124bc548a413d95c49 | <ide><path>numpy/core/tests/test_ufunc.py
<ide>
<ide> import numpy as np
<ide> from numpy.testing import *
<del>if not sys.platform == 'win32':
<del> import numpy.core.umath_tests as umt
<del>else:
<del> umt = None
<add>import numpy.core.umath_tests as umt
<ide>
<ide> class TestUfunc(TestCase):
<ide> def te... | 1 |
Ruby | Ruby | enable frozen string literals | 81db0e9551f213b6ddc94d7bbad1128cc8591a51 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<del># Uses ERB so can't use Frozen String Literals until >=Ruby 2.4:
<del># https://bugs.ruby-lang.org/issues/12031
<del># frozen_string_literal: false
<add># frozen_string_literal: true
<ide>
<ide> require "formula"
<ide> require "utils/bottles"
<ide> require "utils/inre... | 2 |
PHP | PHP | fix dispatcher issue | 7c75c1321bc4e29bf8c7b11fb2e3b83466549b96 | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide>
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<add>use Illuminate\Events\Dispatcher;
<ide> use Illuminate\Support\Collection;
<ide> use Illuminate\Console\OutputStyle;
<ide> use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate... | 1 |
PHP | PHP | replace newquery() with newmodelquery() | 5892daa6e97590ea9a05dfa23b81493c8eaadc1c | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function decrement($column, $amount = 1, array $extra = [])
<ide> */
<ide> protected function incrementOrDecrement($column, $amount, $extra, $method)
<ide> {
<del> $query = $this->newQuery();
<add> $query = $this->newModelQ... | 5 |
Javascript | Javascript | adjust lifecycle and event handling | 88c585b11e82ab9fa8d83f1878543ab293c8f0fa | <ide><path>src/plugins/plugin.legend.js
<ide> const getBoxSize = (labelOpts, fontSize) => {
<ide> };
<ide> };
<ide>
<add>const itemsEqual = (a, b) => a !== null && b !== null && a.datasetIndex === b.datasetIndex && a.index === b.index;
<add>
<ide> export class Legend extends Element {
<ide>
<ide> /**
<ide> export... | 1 |
Ruby | Ruby | replace loop + delete with array difference | 909c2bd59e5e8a99af320f828b2a67ab0ebfb5f7 | <ide><path>Library/Homebrew/cmd/--env.rb
<ide> def build_env_keys env
<ide>
<ide> def dump_build_env env
<ide> keys = build_env_keys(env)
<del>
<del> if env["CC"] == env["HOMEBREW_CC"]
<del> %w[CC CXX OBJC OBJCXX].each { |key| keys.delete(key) }
<del> end
<add> keys -= %w[CC CXX OBJC OBJCXX] if env... | 1 |
Text | Text | fix irc link | 556dd3b7328afebc2591d49ef5dd54e39c05f23b | <ide><path>README.md
<ide> If you need help using or installing Node.js, please use the
<ide> * [Website](https://nodejs.org/en/)
<ide> * [Contributing to the project](./CONTRIBUTING.md)
<ide> * IRC (general questions): [#node.js on chat.freenode.net](https://webchat.freenode.net?channels=node.js&uio=d4)
<del>* IRC (no... | 1 |
Javascript | Javascript | add mustcall() to test-inspector-contexts | 80c170e66fcdbb0ead33cee28129b16a30b33afd | <ide><path>test/sequential/test-inspector-contexts.js
<ide> async function testBreakpointHit() {
<ide> await pausedPromise;
<ide> }
<ide>
<del>testContextCreatedAndDestroyed().then(testBreakpointHit);
<add>testContextCreatedAndDestroyed().then(common.mustCall(testBreakpointHit)); | 1 |
Python | Python | pass additional options in task.retry | 567e7ed3a785e2c71728daa87cfd5c6b7755026e | <ide><path>celery/app/task.py
<ide> def retry(self, args=None, kwargs=None, exc=None, throw=True,
<ide> S = self.subtask_from_request(
<ide> request, args, kwargs,
<ide> countdown=countdown, eta=eta, retries=retries,
<add> **options
<ide> )
<ide>
<ide> if max_... | 1 |
Javascript | Javascript | fix failing linter tests | 2c0ff4b92599e5dc93a50d010afbe8fdfbb59c46 | <ide><path>examples/with-redux-code-splitting/containers/about.js
<ide> const DEFAULT_STATE = {version: 1}
<ide>
<ide> const {actionCreator, getState: getAboutState} = namespaceConfig('about', DEFAULT_STATE)
<ide>
<del>const bumpVersion = actionCreator('bumpVersion', function(state, increment) {
<add>const bumpVersio... | 1 |
Ruby | Ruby | fix shell quote on the release task | 70c2bf9d21386731135b69125ef00c8810a22a1c | <ide><path>tasks/release.rb
<ide> abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
<ide> end
<ide>
<del> unless ENV['SKIP_TAG'] || `git tag | grep '^#{tag}$`.strip.empty?
<add> unless ENV['SKIP_TAG'] || `git tag | grep '^#{tag}$'`.strip.empty?
<ide> abort ... | 1 |
PHP | PHP | improve routes command | 7b957fb3db4eb4bd54570fd4f51275eddb0deb7c | <ide><path>src/Command/RoutesCommand.php
<ide> public function execute(Arguments $args, ConsoleIo $io): ?int
<ide> $header[] = 'Defaults';
<ide> }
<ide>
<add> $routeCollection = Router::routes();
<ide> $output = $duplicateRoutesCounter = [];
<ide>
<del> foreach (Router::route... | 1 |
Python | Python | skip tensorboard test if py3 | 13df0bf32accd57a7288a29fa09e4badf1d0b780 | <ide><path>tests/keras/test_callbacks.py
<ide> import pytest
<ide> import os
<add>import sys
<ide> import numpy as np
<ide> np.random.seed(1337)
<ide>
<ide> def test_LearningRateScheduler():
<ide> assert (float(K.get_value(model.optimizer.lr)) - 0.2) < K.epsilon()
<ide>
<ide>
<del>@pytest.mark.skipif(K._BACKEND ... | 1 |
Javascript | Javascript | improve test case to check correct data | 9fa7eba2934730243b27f2f9ef5cb0f1f6227ca1 | <ide><path>test/cases/large/big-assets/generate-big-asset-loader.js
<ide> /** @type {import("../../../../").RawLoaderDefinition<{ size: string }>} */
<ide> module.exports = function () {
<ide> const options = this.getOptions();
<del> return Buffer.alloc(+options.size);
<add> return Buffer.alloc(+options.size).fill(0xa... | 2 |
Python | Python | initialize clearcenter connection and driver | 0426fe776e9a4671c1d902d21646549f9826b4ac | <ide><path>libcloud/common/clearcenter.py
<add>import json
<add>import socket
<add>
<add>from libcloud.utils.py3 import b
<add>from libcloud.utils.py3 import httplib
<add>from libcloud.compute.base import (Node, NodeDriver, NodeState,
<add> KeyPair, NodeLocation, NodeImage)
<add>from l... | 5 |
Python | Python | create keras directories if needed | d9357646e2c2da5c25f79a5850288bb07ec7b417 | <ide><path>examples/skipgram_word_embeddings.py
<ide> load_tokenizer = False
<ide> train_model = True
<ide> save_dir = os.path.expanduser("~/.keras/models")
<add>if not os.path.exists(save_dir):
<add> os.makedirs(save_dir)
<ide> model_load_fname = "HN_skipgram_model.pkl"
<ide> model_save_fname = "HN_skipgram_model.p... | 1 |
Ruby | Ruby | fix redundant version check | b8a62d98e114b1af6f1ce7878aa44fa60635870f | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_specs
<ide> else
<ide> version_text = s.version unless s.version.detected_from_url?
<ide> version_url = Version.parse(s.url)
<del> if version_url == version_text
<add> if version_url.to_s == version_text.to_s
<ide> pr... | 1 |
Python | Python | add pron_lemma and det_lemma to deprecated | f68e420bc0b27ddd74ea06a754db7fd8fc277bc3 | <ide><path>spacy/deprecated.py
<ide> def fix_glove_vectors_loading(overrides):
<ide> def match_best_version(target_name, target_version, path):
<ide> def split_data_name(name):
<ide> return name.split('-', 1) if '-' in name else (name, '')
<add>PRON_LEMMA = "-PRON-"
<add>DET_LEMMA = "-DET-"
<ide>
<ide> ... | 2 |
Text | Text | add toc to api.md | 80a0cf85c82a7e28419051cb789c2299c420b8f9 | <ide><path>docs/Reference/API.md
<ide> var createStore = require('redux').createStore;
<ide> var createStore = Redux.createStore;
<ide> ```
<ide>
<add>#### Table of Contents
<add>
<add>* [createStore(reducer: Reducer, initialState: any): Store](#createstorereducer-reducer-initialstate-any-store)
<add>* [Store API](#st... | 1 |
Javascript | Javascript | fix links in api docs for several player events. | cc6e82442fcefb3b62a6e33a588d7f0b7152fd3d | <ide><path>src/js/player.js
<ide> const TECH_EVENTS_RETRIGGER = [
<ide> /**
<ide> * Fires when the browser has loaded the current frame of the audio/video.
<ide> *
<del> * @event player#loadeddata
<add> * @event Player#loadeddata
<ide> * @type {event}
<ide> */
<ide> /**
<ide> const TECH_EVENTS_RETRI... | 1 |
PHP | PHP | simplify route target parsing | 6429e121d85a483fb5ff38aab8c7aacbe96b884e | <ide><path>src/Routing/RouteBuilder.php
<ide> protected static function parseDefaults($defaults)
<ide> return $defaults;
<ide> }
<ide>
<del> $regex = '/(?:([a-zA-Z0-9\/]*)\.)?([a-zA-Z0-9\/]*?)(?:\/)?([a-zA-Z0-9]*):{2}([a-zA-Z0-9_]*)/i';
<add> $regex = '/(?:(?<plugin>[a-zA-Z0-9\/]*)\.)... | 2 |
Javascript | Javascript | fix linting issues | c9cbaf04e796d4bb3152da8c9d123ea85cc276d5 | <ide><path>lib/Stats.js
<ide> class Stats {
<ide>
<ide> const optionOrLocalFallback = (v, def) =>
<ide> typeof v !== "undefined" ? v :
<del> typeof options.all !== "undefined" ? options.all : def;
<add> typeof options.all !== "undefined" ? options.all : def;
<ide>
<ide> const testAgainstGivenOption = (ite... | 1 |
Text | Text | add missing newline in changelog | 6433ad1eef0613754a97c16a866945b97801963d | <ide><path>CHANGELOG.md
<ide> * [[`c380ac6e98`](https://github.com/iojs/io.js/commit/c380ac6e98)] - **doc**: suggest alternatives to deprecated APs (Benjamin Gruenbaum) [#1007](https://github.com/iojs/io.js/pull/1007)
<ide> * [[`3d6440cf2a`](https://github.com/iojs/io.js/commit/3d6440cf2a)] - **src**: fix --without-ssl... | 1 |
Javascript | Javascript | avoid extra copy for string stdio | ee695e935dfd31c6678ce4e9f2f472a33138530e | <ide><path>lib/child_process.js
<ide> exports.execFile = function(file /* args, options, callback */) {
<ide> windowsVerbatimArguments: !!options.windowsVerbatimArguments
<ide> });
<ide>
<del> var _stdout = [];
<del> var _stderr = [];
<add> var encoding;
<add> var _stdout;
<add> var _stderr;
<add> if (opti... | 1 |
Ruby | Ruby | improve style of rebuild fallback | acebeab9cb2f44658384f56ffea9c9dc6d945e90 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide> else
<ide> 0
<ide> end
<del> end
<add> end || 0
<ide> end
<del> # FormulaVersions#formula_at_revision returns nil for new formulae
<del> rebuild ||= 0
<ide>
<ide> filename = Bottle::... | 1 |
Python | Python | add newlines to long german text | 8328925e1f5a976808175aa95ece0c2027cff62c | <ide><path>spacy/tests/de/tokenizer/test_text.py
<ide> def test_tokenizer_handles_long_text(de_tokenizer):
<ide> text = """Die Verwandlung
<ide>
<del>Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt.
<add>Als Gregor Samsa eines Mo... | 1 |
Javascript | Javascript | add options arg to environmentplugin, fixes | 101ba648fffcbdd088ae97bb3018998cb8ff7f78 | <ide><path>lib/EnvironmentPlugin.js
<ide> const WebpackError = require("./WebpackError");
<ide>
<ide> class EnvironmentPlugin {
<ide> constructor(...keys) {
<add> this.options = {};
<add> if (keys.length > 1) {
<add> const options = keys[keys.length - 1];
<add> if (typeof options === "object") {
<add> this.o... | 1 |
Java | Java | make javadocs for reduce() more precise | 7db813fad5a5dd9ff7fa73cc109b71fcde9a5890 | <ide><path>src/main/java/rx/Observable.java
<ide> public final <R> Observable<R> publish(Func1<? super Observable<T>, ? extends Ob
<ide> }
<ide>
<ide> /**
<del> * Returns an Observable that applies a function of your choosing to the first item emitted by a source
<add> * Returns an Observable that appl... | 1 |
Text | Text | specify types of listener parameter | aaca38a26118c9d7d8409fa3a8643149f148641f | <ide><path>doc/api/process.md
<ide> process.on('exit', (code) => {
<ide> added: v0.5.10
<ide> -->
<ide>
<del>* `message` {Object} a parsed JSON object or primitive value.
<add>* `message` { Object | boolean | number | string | null } a parsed JSON object
<add> or a serializable primitive value.
<ide> * `sendHandle` {... | 1 |
Mixed | Ruby | fix acronym support in `humanize` | 0ddde0a8fca6a0ca3158e3329713959acd65605d | <ide><path>activesupport/CHANGELOG.md
<add>* Fix acronym support in `humanize`
<add>
<add> Acronym inflections are stored with lowercase keys in the hash but
<add> the match wasn't being lowercased before being looked up in the hash.
<add> This shouldn't have any performance impact because before it would
<a... | 3 |
Javascript | Javascript | remove obsolete shiv code | 53aacb35fa469496c88a04a70ffab875e8b35d86 | <ide><path>src/Angular.js
<ide> if ('i' !== 'I'.toLowerCase()) {
<ide>
<ide> function fromCharCode(code) {return String.fromCharCode(code);}
<ide>
<del>/**
<del> * Creates the element for IE8 and below to allow styling of widgets
<del> * (http://ejohn.org/blog/html5-shiv/). This hack works only if angular is
<del> * ... | 1 |
Javascript | Javascript | log version in internal logger | a65ceef370f978e776c2f3356a8baae22369e698 | <ide><path>packages/react-devtools-shared/src/registerDevToolsEventLogger.js
<ide> export function registerDevToolsEventLogger(surface: string) {
<ide> event: event,
<ide> context: {
<ide> surface,
<add> version: process.env.DEVTOOLS_VERSION,
<ide> },
<ide>... | 1 |
Javascript | Javascript | add existence test for patch and unpatch methods | d21019ad785b49084bc99f1a97cf103f4d75384f | <ide><path>test/unit/media.html5.js
<ide> test('should re-link the player if the tech is moved', function(){
<ide> strictEqual(player, tech.el()['player']);
<ide> });
<ide>
<add>test('patchCanPlayType and unpatchCanPlayType are available on Html5 object', function() {
<add> ok(vjs.Html5.patchCanPlayType, 'patchCanP... | 1 |
Python | Python | remove oustcale_sdk implementation | fea49fe6ef58b62e79b2fa7b16f12f861f0f9957 | <ide><path>libcloud/compute/drivers/outscale.py
<ide> class OutscaleNodeDriver(NodeDriver):
<ide> Outscale SDK node driver
<ide> """
<ide>
<del> type = Provider.OUTSCALE_SDK
<add> type = Provider.OUTSCALE
<ide> name = 'Outscale API'
<ide> website = 'http://www.outscale.com'
<ide>
<ide><path>libc... | 7 |
Javascript | Javascript | fail build on deep requires in npm packages | 7b84dbd1697609d4df5931422c9591fe62022cb9 | <ide><path>scripts/rollup/build.js
<ide> async function createBundle(bundle, bundleType) {
<ide> const containsThisModule = pkg => id === pkg || id.startsWith(pkg + '/');
<ide> const isProvidedByDependency = externals.some(containsThisModule);
<ide> if (!shouldBundleDependencies && isProvidedByDepende... | 1 |
Text | Text | add devops guides | 920209cb2323e0bb81c32a27fc0c0d5f0e252974 | <ide><path>README.md
<ide> Please don't create GitHub issues for security issues. Instead, please send an e
<ide>
<ide> > ### [Please follow these steps to contribute.](CONTRIBUTING.md)
<ide>
<del>#### Build Status:
<add>### Platform, Build and Deployment Status
<ide>
<del>| Platform | Type | Status ... | 3 |
Javascript | Javascript | correct variable reference in error message | 935c1018da05dbf3124b2dd33619c4a3c82d7a2a | <ide><path>src/directive/ngRepeat.js
<ide> var ngRepeatDirective = ngDirective({
<ide> }
<ide> lhs = match[1];
<ide> rhs = match[2];
<del> match = lhs.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);
<add> match = lhs.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
<ide> if ... | 2 |
Javascript | Javascript | replace callback with arrow functions | c90b51427503fe409f38da18a4966926cbe62564 | <ide><path>test/pummel/test-net-throttle.js
<ide> const body = 'C'.repeat(N);
<ide>
<ide> console.log(`start server on port ${common.PORT}`);
<ide>
<del>const server = net.createServer(function(connection) {
<add>const server = net.createServer((connection) => {
<ide> connection.write(body.slice(0, part_N));
<ide> ... | 1 |
Python | Python | enforce field_name != source | fb1546ee50953faae8af505a0c90da00ac08ad92 | <ide><path>rest_framework/fields.py
<ide> def bind(self, field_name, parent, root):
<ide> """
<ide> Setup the context for the field instance.
<ide> """
<add>
<add> # In order to enforce a consistent style, we error if a redundant
<add> # 'source' argument has been used. For example... | 2 |
Python | Python | fix systemsmanagerparameterstorebackend test | dc738cde04d91084bf79b1a601395b7abd41d8ca | <ide><path>tests/secrets/test_secrets.py
<ide> def test_initialize_secrets_backends(self):
<ide> )
<ide> def test_backends_kwargs(self):
<ide> backends = initialize_secrets_backends()
<del> systems_manager = [
<add> systems_manager = next(
<ide> backend
<ide> for ba... | 1 |
Ruby | Ruby | remove fileutils_methods constant | 7fffccba05f8f31d86ae81ee14b81f8ff0c633b5 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> class FormulaAuditor
<ide> swig
<ide> ].freeze
<ide>
<del> FILEUTILS_METHODS = FileUtils.singleton_methods(false).map { |m| Regexp.escape(m) }.join "|"
<del>
<ide> def initialize(formula, options = {})
<ide> @formula = formula
<ide> @new_formula = opt... | 1 |
Go | Go | move serveapi to api/api.go | 9eea7f28f0c64d43ef2a9987999a29774fa1476b | <ide><path>api/api.go
<ide> const (
<ide>
<ide> type HttpApiFunc func(eng *engine.Engine, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error
<ide>
<add>func init() {
<add> engine.Register("serveapi", ServeApi)
<add>}
<add>
<ide> func hijackServer(w http.ResponseWriter) (io.ReadClos... | 6 |
Text | Text | add build badge for azure pipelines | a71c4003c71059cbc500b7e90689f8264dce29c3 | <ide><path>README.md
<ide> [![deps][deps]][deps-url]
<ide> [![tests][tests]][tests-url]
<ide> [![builds][builds]][builds-url]
<add>[![builds2][builds2]][builds2-url]
<ide> [![coverage][cover]][cover-url]
<ide> [![licenses][licenses]][licenses-url]
<ide>
<ide> src="https://static.monei.net/monei-logo.svg" height="30" a... | 1 |
Javascript | Javascript | fix flicker in animations | 397be502f92abf14e97c247763d41d690561907a | <ide><path>src/fx/fx.js
<ide> jQuery.extend({
<ide> // Store display property
<ide> var oldDisplay = jQuery.css(elem, "display");
<ide>
<del> // Set display property to block for animation
<del> y.display = "block";
<del>
<ide> // Make sure that nothing sneaks out
<ide> y.overflow = "hidden";
<ide>
<ide> jQ... | 1 |
Python | Python | fix dict sorting in code generator | d3cf1d88350f2817b653df405e000eb7e4ee1b8b | <ide><path>numpy/core/code_generators/genapi.py
<ide> md5new = md5.new
<ide> if sys.version_info[:2] < (2, 6):
<ide> from sets import Set as set
<add>import textwrap
<ide>
<ide> from os.path import join
<ide>
<ide> def internal_define(self):
<ide> def order_dict(d):
<ide> """Order dict by its values."""
<... | 2 |
Ruby | Ruby | remove unused journey code | 84826b4ea6cdb63f5e338aefd0574c048a35762d | <ide><path>actionpack/lib/action_dispatch/journey/backwards.rb
<del>module Rack # :nodoc:
<del> Mount = ActionDispatch::Journey::Router
<del> Mount::RouteSet = ActionDispatch::Journey::Router
<del> Mount::RegexpWithNamedGroups = ActionDispatch::Journey::Path::Pattern
<del>end
<ide><path>actionpack/lib/action_dispatc... | 2 |
Java | Java | replace indexed loop with for-each java5 syntax | 5278124db4a93b8f59cee4e3baa9e864601637fd | <ide><path>src/main/java/io/reactivex/internal/operators/parallel/ParallelJoin.java
<ide> public void cancel() {
<ide> }
<ide>
<ide> void cancelAll() {
<del> for (int i = 0; i < subscribers.length; i++) {
<del> JoinInnerSubscriber<T> s = subscribers[i];
<add> for (J... | 1 |
Ruby | Ruby | remove duplicated class test. copy/paste fail? | c8db1adc0d33228882d8d35d706a3744f7c3d958 | <ide><path>actionpack/test/activerecord/render_partial_with_record_identification_test.rb
<ide> def test_rendering_partial_with_has_one_association
<ide> end
<ide> end
<ide>
<del>class RenderPartialWithRecordIdentificationController < ActionController::Base
<del> def render_with_has_many_and_belongs_to_association
... | 1 |
Text | Text | remove stability from unreleased errors | 21005c3b4402241166d4a0ae6a9cc1b26cbba480 | <ide><path>doc/api/errors.md
<ide> releases.
<ide> <a id="ERR_ENTRY_TYPE_MISMATCH"></a>
<ide> #### `ERR_ENTRY_TYPE_MISMATCH`
<ide>
<del>> Stability: 1 - Experimental
<del>
<ide> The `--entry-type=commonjs` flag was used to attempt to execute an `.mjs` file
<ide> or a `.js` file where the nearest parent `package.json` ... | 1 |
Ruby | Ruby | replace middleware with executor callback | 23b6a9c0fcb8992e18450d6fe0680bf09685b7db | <ide><path>actionview/lib/action_view/digestor.rb
<ide> module ActionView
<ide> class Digestor
<ide> @@digest_mutex = Mutex.new
<ide>
<del> class PerRequestDigestCacheExpiry < Struct.new(:app) # :nodoc:
<del> def call(env)
<del> ActionView::LookupContext::DetailsKey.clear
<del> app.call(e... | 2 |
PHP | PHP | fix variable naming | 57f81da98383f767268d5841e7c770ac8c2fb1b2 | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> public function __construct(Exception $exception) {
<ide> }
<ide> }
<ide>
<del> $isDebug = (Configure::read('debug') == 0);
<del> if ($isDebug && $method == '_cakeError') {
<add> $isNotDebug = (Configure::read('debug') == 0);
<add> if ($isNotDebug && $meth... | 1 |
Javascript | Javascript | introduce routing service | 7cff945c04bf66b0c621b6b70042c51d8a5b2cdf | <ide><path>packages/ember-routing-htmlbars/tests/helpers/link-to_test.js
<ide> import EmberView from "ember-views/views/view";
<ide> import compile from "ember-template-compiler/system/compile";
<ide> import { set } from "ember-metal/property_set";
<ide> import Controller from "ember-runtime/controllers/controller";
<a... | 6 |
Python | Python | use google style to document properties | 8a8ae27617e3c4dafb34bcbbaadf4ceee28583bd | <ide><path>src/transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> raise err
<ide>
<ide> @property
<del> def use_return_tuple(self):
<add> def use_return_tuple(self) -> bool:
<add> """
<add> :obj:`bool`: Whether or not the model should return a tuple.
<... | 3 |
Ruby | Ruby | silence some warnings | d2acf8b548b56966da49bd7f2f92dcfbd5410319 | <ide><path>activesupport/lib/active_support/json/encoding.rb
<ide> require 'active_support/json/variable'
<ide>
<del>require 'active_support/json/encoders/object' # Require this file explicitly for rdoc
<del>Dir[File.dirname(__FILE__) + '/encoders/**/*.rb'].each { |file| require file[0..-4] }
<add>require 'active_supp... | 2 |
Go | Go | add documentation for exported functions and types | 9a98556c2bc355170893568ca20e102cbda7d600 | <ide><path>pkg/mount/flags_freebsd.go
<ide> package mount
<ide> import "C"
<ide>
<ide> const (
<del> RDONLY = C.MNT_RDONLY
<del> NOSUID = C.MNT_NOSUID
<del> NOEXEC = C.MNT_NOEXEC
<add> // RDONLY will mount the filesystem as read-only.
<add> RDONLY = C.MNT_RDONLY
<add>
<add> // NOSUID will not allow set-... | 8 |
Javascript | Javascript | remove timeout in annotation integration test | 9dc331ec621cad157a7a8046b3eb0bfce2412e08 | <ide><path>test/integration/annotation_spec.js
<ide> describe("Annotation highlight", () => {
<ide> );
<ide> expect(hidden).withContext(`In ${browserName}`).toEqual(true);
<ide> await page.hover("[data-annotation-id='19R']");
<del> await page.waitForTimeout(100);
<add> aw... | 1 |
Python | Python | remove stray print statement (closes ) | 48a2046d1c84fa0916ac55df4913ed88cd139e9b | <ide><path>spacy/lang/ta/lex_attrs.py
<ide> def like_num(text):
<ide> num, denom = text.split("/")
<ide> if num.isdigit() and denom.isdigit():
<ide> return True
<del> print(suffix_filter(text))
<ide> if text.lower() in _num_words:
<ide> return True
<ide> elif suffix_filter... | 1 |
Go | Go | remove redunant debugf | 526ddd351218798199b6221fad67e1c335ad8542 | <ide><path>api/server/middleware/debug.go
<ide> import (
<ide> // DebugRequestMiddleware dumps the request to logger
<ide> func DebugRequestMiddleware(handler httputils.APIFunc) httputils.APIFunc {
<ide> return func(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<del> log... | 2 |
PHP | PHP | add helper method for using error_log | 05c8aa20962f2c20f0b5013bac35f70ae6298f7e | <ide><path>src/Illuminate/Log/Writer.php
<ide> use Monolog\Handler\StreamHandler;
<ide> use Monolog\Logger as MonologLogger;
<ide> use Monolog\Formatter\LineFormatter;
<add>use Monolog\Handler\ErrorLogHandler;
<ide> use Monolog\Handler\RotatingFileHandler;
<ide> use Illuminate\Support\Contracts\JsonableInterface;
<ide>... | 2 |
Javascript | Javascript | add test for | b0f6afcdacc53fd91b37ad0c5d70544f7e37ebde | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide> }));
<ide>
<ide>
<add> // https://github.com/angular/angular.js/issues/15833
<add> it('should work with ng-model inputs', function() {
<add> var componentScope;
<add>
<add> module(function($compileP... | 1 |
Javascript | Javascript | remove `combineurl` and replace it with `new url` | a25c29d98d476c71a4d8bd7ed6cb0a7df0b9db65 | <ide><path>src/display/api.js
<ide> var UnexpectedResponseException = sharedUtil.UnexpectedResponseException;
<ide> var UnknownErrorException = sharedUtil.UnknownErrorException;
<ide> var Util = sharedUtil.Util;
<ide> var createPromiseCapability = sharedUtil.createPromiseCapability;
<del>var combineUrl = sharedUtil.com... | 5 |
Python | Python | fix missing regex requirement | a0b8a26655c9ea071f5ba4f5fa53ef953d775161 | <ide><path>setup.py
<ide> def setup_package():
<ide> 'plac<1.0.0,>=0.9.6',
<ide> 'pathlib',
<ide> 'ujson>=1.35',
<add> 'regex==2017.4.5',
<ide> 'dill>=0.2,<0.3'],
<ide> setup_requires=['wheel'],
<ide> classifiers=[ | 1 |
Go | Go | fix checksum computing | f10b0f75e02041db64176760a3be9639408ad923 | <ide><path>image.go
<ide> func (img *Image) Checksum() (string, error) {
<ide> if err != nil {
<ide> return "", err
<ide> }
<add> jsonData, err := ioutil.ReadFile(jsonPath(root))
<add> if err != nil {
<add> return "", err
<add> }
<add>
<ide> layerData, err := Tar(layer, Xz)
<ide> if err != nil {
<ide> return "... | 1 |
Go | Go | fix connection block when using docker stats api | d9bf8163ad8579cf2ab9f55925f9ea5037e5b525 | <ide><path>api/client/stats.go
<ide> func (s *containerStats) Collect(cli *DockerCli, streamStats bool) {
<ide> u <- err
<ide> return
<ide> }
<del> var (
<add>
<add> var memPercent = 0.0
<add> var cpuPercent = 0.0
<add>
<add> // MemoryStats.Limit will never be 0 unless the container is not running an... | 2 |
Text | Text | update api reference | cfabd5ca42da27289b6951ad82820e62ce349b29 | <ide><path>README.md
<ide> Human-readable reference marks for scales.
<ide> * [d3.axisLeft](https://github.com/d3/d3-axis#axisTeft) - create a new left-oriented axis generator.
<ide> * [*axis*](https://github.com/d3/d3-axis#_axis) - generate an axis for the given selection.
<ide> * [*axis*.scale](https://github.com/d3/... | 1 |
Java | Java | integrate stickerinputview into fabric on android | 8d31e38966a18f66c9352c7f667a2d7818d6189b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java
<ide> public class FabricComponents {
<ide> sComponentNames.put("TemplateView", "RCTTemplateView");
<ide> sComponentNames.put("AxialGradientView", "RCTAxialGradientView");
<ide> sComponentNames.put("Video", "RCTVideo");
<a... | 1 |
Text | Text | remove the suffix number of the anchor link | 872d803faf568ff71e8808cf9f469a38c67abf61 | <ide><path>CONTRIBUTING.md
<ide> * [Code of Conduct](#code-of-conduct)
<ide> * [Issues](#issues)
<ide> * [Pull Requests](#pull-requests)
<del>* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin-11)
<add>* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin)
<ide>
<ide> ## ... | 1 |
Text | Text | add aduh95 to collaborators | c208a20f9c4bdf4d8dc57d14629dd296b8681327 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide>
<ide> * [addaleax](https://github.com/addaleax) -
<ide> **Anna Henningsen** <anna@addaleax.net> (she/her)
<add>* [aduh95](https://github.com/aduh95) -
<add>**Antoine du Hamel** <duhamelantoine1995@gmail.com> (... | 1 |
Javascript | Javascript | output the event that is leaking | 1c0ec7172534e0a1f64f388a0eeb08eb0ac333df | <ide><path>lib/events.js
<ide> EventEmitter.prototype.addListener = function addListener(type, listener) {
<ide> if (m && m > 0 && this._events[type].length > m) {
<ide> this._events[type].warned = true;
<ide> console.error('(node) warning: possible EventEmitter memory ' +
<del> 'leak... | 1 |
Ruby | Ruby | allow livecheck method in on_system blocks | 40199404cfe26492bc24577d73b893871644c8b2 | <ide><path>Library/Homebrew/rubocops/components_order.rb
<ide> def check_on_system_block_content(component_precedence_list, on_system_block)
<ide> end
<ide> end
<ide> on_system_allowed_methods = %w[
<del> depends_on
<del> patch
<del> resource
<del> ... | 1 |
PHP | PHP | add ability to test blade components | e4dc43f772557c0ca1767d5070cf336006dfa4e0 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php
<ide> protected function blade(string $template, array $data = [])
<ide>
<ide> return new TestView(view(Str::before(basename($tempFile), '.blade.php'), $data));
<ide> }
<add>
<add> /**
<add> * Create a new TestView from the... | 1 |
Python | Python | add reattach flag to ecsoperator | 0df60b773671ecf8d4e5f582ac2be200cf2a2edd | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> import re
<ide> import sys
<ide> from datetime import datetime
<del>from typing import Optional
<add>from typing import Optional, Dict
<ide>
<ide> from botocore.waiter import Waiter
<ide>
<ide> class ECSProtocol(Protocol):
<ide> - https://boto3.am... | 2 |
Text | Text | update devops docs | 3bbf96e49599d2a52210cc56228bd9fa73087beb | <ide><path>SECURITY.md
<ide> This document outlines our security policy for the codebase, and how to report v
<ide>
<ide> ## Versions
<ide>
<del>| Version | Branch | Supported | Website active |
<del>| ----------- | ------------------------ | ------------------ | ---------------- |
<d... | 3 |
PHP | PHP | add test for overwrite all | e4ceb0df9304e3855342d16b3d71e97de01828a6 | <ide><path>tests/TestCase/Console/ShellTest.php
<ide> public function testCreateFileOverwriteNonInteractive()
<ide> $this->assertEquals(file_get_contents($file), 'My content');
<ide> }
<ide>
<add> /**
<add> * Test that all files are changed with a 'a' reply.
<add> *
<add> * @return void
<add... | 1 |
Javascript | Javascript | fix a small broking mistake in fonts.js | e347ad03d97599588aa9be0f134f665f4b7b46de | <ide><path>fonts.js
<ide> var Type2CFF = (function type2CFF() {
<ide> var glyph = charsets[i];
<ide> var code = glyphMap[glyph] || 0;
<ide>
<del> var mapping = glyphs[code] || glyphs[glyph] || {};
<add> var mapping = glyphs[code] || glyphs[glyph] || { width: defaultWidth };
<ide> ... | 1 |
Javascript | Javascript | allow automatic rewriting of links to be disabled | b3e09be58960b913fee3869bf36e7de3305bbe00 | <ide><path>src/ng/location.js
<ide> function $LocationProvider(){
<ide> var hashPrefix = '',
<ide> html5Mode = {
<ide> enabled: false,
<del> requireBase: true
<add> requireBase: true,
<add> rewriteLinks: true
<ide> };
<ide>
<ide> /**
<ide> function $LocationProvider(){
<ide... | 2 |
Ruby | Ruby | rescue more cask errors | 95a1c8570a28ac98ff1266e45b00122a025b22cf | <ide><path>Library/Homebrew/cleanup.rb
<ide> def stale_cask?(scrub)
<ide>
<ide> cask = begin
<ide> Cask::CaskLoader.load(name)
<del> rescue Cask::CaskUnavailableError
<add> rescue Cask::CaskError
<ide> return false
<ide> end
<ide>
<ide> def clean!(quiet: false, periodic: false)
<... | 1 |
Python | Python | simplify pickling tests | 43b66da6b596000a52162f6fc9e58a46c880172c | <ide><path>tests/test_model_pickling.py
<ide> import pytest
<del>import os
<ide> import sys
<del>import tempfile
<ide> import numpy as np
<ide> from numpy.testing import assert_allclose
<del>from numpy.testing import assert_raises
<ide>
<del>from keras import backend as K
<ide> from keras.models import Model, Sequenti... | 1 |
Python | Python | set default task group in dag.add_task method | ce0a6e51c2d4ee87e008e28897b2450778b51003 | <ide><path>airflow/models/dag.py
<ide> def add_task(self, task: Operator) -> None:
<ide>
<ide> :param task: the task you want to add
<ide> """
<add> from airflow.utils.task_group import TaskGroupContext
<add>
<ide> if not self.start_date and not task.start_date:
<ide> raise A... | 3 |
Javascript | Javascript | add flag scenario in test-fs-write-file-sync | 02cd7069a8631a324298be9f24771fb0faf23639 | <ide><path>test/parallel/test-fs-write-file-sync.js
<ide> function closeSync() {
<ide> openCount--;
<ide> return fs._closeSync.apply(fs, arguments);
<ide> }
<add>
<add>// Test writeFileSync with flags
<add>const file4 = path.join(tmpdir.path, 'testWriteFileSyncFlags.txt');
<add>
<add>fs.writeFileSync(file4, 'hello ... | 1 |
Javascript | Javascript | add support for .get(-number) closes | e532dfe5228217f55a33122a4438fd70522dbb4b | <ide><path>src/core.js
<ide> jQuery.fn = jQuery.prototype = {
<ide> return num == null ?
<ide>
<ide> // Return a 'clean' array
<del> Array.prototype.slice.call( this ) :
<add> this.toArray() :
<ide>
<ide> // Return just the object
<del> this[ num ];
<add> ( num < 0 ? this.toArray.call(this, num)[0] : ... | 2 |
Python | Python | use norm attribute, not lower | 8a17b99b1c1107a632729fccf8c558faf2f764b6 | <ide><path>spacy/_ml.py
<ide> from thinc.describe import Dimension, Synapses, Biases, Gradient
<ide> from thinc.neural._classes.affine import _set_dimensions_if_needed
<ide>
<del>from .attrs import ID, LOWER, PREFIX, SUFFIX, SHAPE, TAG, DEP
<add>from .attrs import ID, NORM, PREFIX, SUFFIX, SHAPE, TAG, DEP
<ide> from .... | 1 |
Mixed | Text | log any errors originating from the socket | fc416d3721a019efbbd249abfb5ab7daf34c2a64 | <ide><path>actioncable/CHANGELOG.md
<add>* ActionCable socket errors are now logged to the console
<add>
<add> Previously any socket errors were ignored and this made it hard to diagnose socket issues (e.g. as discussed in #28362).
<add>
<add> *Edward Poot*
<add>
<ide> Please check [5-1-stable](https://gith... | 2 |
Javascript | Javascript | fix wrong error classes passed in as type | f26cabbe249ae6e095736ef65bd925fb82c4908c | <ide><path>test/parallel/test-crypto-sign-verify.js
<ide> common.expectsError(
<ide> }, ''),
<ide> {
<ide> code: 'ERR_INVALID_OPT_VALUE',
<del> type: Error,
<add> type: TypeError,
<ide> message: 'The value "undefined" is invalid for option "padding"'
<ide> });
<ide>
<ide> common.expectsError(
<ide>... | 12 |
Ruby | Ruby | use `path` where possible | 7cadff0a33d062b526d2ac246bd1d9e6cc689f53 | <ide><path>Library/Homebrew/dev-cmd/update-test.rb
<ide> def update_test
<ide> safe_system "git", "reset", "--hard", start_commit
<ide>
<ide> # update ENV["PATH"]
<del> ENV["PATH"] = "#{curdir}/bin:#{ENV["PATH"]}"
<add> ENV["PATH"] = PATH.new(ENV["PATH"]).prepend(curdir/"bin")
<ide>
<ide> ... | 2 |
PHP | PHP | apply fixes from styleci | 7801e2a6dc5a6fb8be2a11fa7226e2ad868a8d02 | <ide><path>src/Illuminate/Support/Traits/ReflectsClosures.php
<ide>
<ide> use Closure;
<ide> use ReflectionFunction;
<del>use ReflectionParameter;
<ide> use RuntimeException;
<ide>
<ide> trait ReflectsClosures | 1 |
PHP | PHP | fix bug in url generation | 59fca940a3e59d91461e3b4d5dbe809146f38e72 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function route($name, $parameters = array(), $route = null)
<ide> * Get the URL for a given route instance.
<ide> *
<ide> * @param \Illuminate\Routing\Route $route
<del> * @param mixed $parameters
<add> * @param array $parameters
<ide> * @r... | 1 |
Text | Text | remove unnecessary # in changelog | ca4250a1e0bd10955ddfcd027dcc525d29f4c55a | <ide><path>CHANGELOG.md
<ide> ## 15.5.4 (April 11, 2017)
<ide>
<ide> ### React Addons
<del>* **Critical Bugfix:** Update the version of `prop-types` to fix critical bug. ([@gaearon](https://github.com/gaearon) in [#545c87f](https://github.com/facebook/react/commit/545c87fdc348f82eb0c3830bef715ed180785390))
<add>* **C... | 1 |
Javascript | Javascript | use proper window object for iframe in enter/leave | a2ecee5353d39be57ca49c6132eb0ca45d5be254 | <ide><path>src/eventPlugins/EnterLeaveEventPlugin.js
<ide> var EnterLeaveEventPlugin = {
<ide> return null;
<ide> }
<ide>
<add> var win;
<add> if (topLevelTarget != null && topLevelTarget.window === topLevelTarget) {
<add> // topLevelTarget probably is a window object
<add> win = topLevelTarg... | 2 |
Text | Text | add snake_case section for c-like structs | c8f88471204cb30b5a1b5ac72173be547654023a | <ide><path>CPP_STYLE_GUIDE.md
<ide> * [CamelCase for methods, functions, and classes](#camelcase-for-methods-functions-and-classes)
<ide> * [snake\_case for local variables and parameters](#snake_case-for-local-variables-and-parameters)
<ide> * [snake\_case\_ for private class fields](#snake_case_-for-private-cla... | 1 |
Javascript | Javascript | preserve selection on exiting owner mode | f2951fb51fa338da7a651cf414a074f2acf8b4cb | <ide><path>src/devtools/views/Components/TreeContext.js
<ide> function reduceOwnersState(store: Store, state: State, action: Action): State {
<ide> case 'RESET_OWNER_STACK':
<ide> ownerStack = [];
<ide> ownerStackIndex = null;
<del> selectedElementIndex = null;
<add> selectedElementIndex =
<ad... | 1 |
Text | Text | add basic embedding example documentation | e04f599258bb8e733a507867d42d5e46d35d7bca | <ide><path>doc/api/embedding.md
<add># C++ Embedder API
<add>
<add><!--introduced_in=REPLACEME-->
<add>
<add>Node.js provides a number of C++ APIs that can be used to execute JavaScript
<add>in a Node.js environment from other C++ software.
<add>
<add>The documentation for these APIs can be found in [src/node.h][] in t... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.