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 | allow nil return from strategy blocks | a970780851dc048be35323b4798406b82528609e | <ide><path>Library/Homebrew/livecheck/strategy/apache.rb
<ide> def self.match?(url)
<ide> url: String,
<ide> regex: T.nilable(Regexp),
<ide> cask: T.nilable(Cask::Cask),
<del> block: T.nilable(T.proc.params(arg0: String).returns(T.any(T::Array[String], String))),
<add> ... | 20 |
Python | Python | increase default logging period 5x | 793232fe762b7e7c27fd9da88596babb1721500d | <ide><path>keras/utils/generic_utils.py
<ide> class Progbar(object):
<ide> interval: Minimum visual progress update interval (in seconds).
<ide> """
<ide>
<del> def __init__(self, target, width=30, verbose=1, interval=0.01):
<add> def __init__(self, target, width=30, verbose=1, interval=0.05):
<ide> ... | 1 |
Python | Python | remove dependency of roberta in blenderbot | 4824741c4cc3aeb04929a41b8c89b2b1fc57fca6 | <ide><path>src/transformers/models/blenderbot/tokenization_blenderbot.py
<ide> # limitations under the License.
<ide> """Tokenization class for Blenderbot."""
<ide>
<del>from typing import TYPE_CHECKING, List, Optional
<add>import json
<add>import os
<add>from functools import lru_cache
<add>from typing import TYPE_CH... | 2 |
Python | Python | add allowany class | af96fe05d0138c34128fc3944fc2701cbad5bd01 | <ide><path>rest_framework/permissions.py
<ide> def has_permission(self, request, view, obj=None):
<ide> raise NotImplementedError(".has_permission() must be overridden.")
<ide>
<ide>
<add>class AllowAny(BasePermission):
<add> """
<add> Allow any access.
<add> This isn't strictly required, since you c... | 1 |
Text | Text | add info about react-native channel on discordapp | 419549b1160aa6f9dd6ef4f05ee145b2d6bd224e | <ide><path>CONTRIBUTING.md
<ide> Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
<ide>
<ide> * IRC - [#reactnative on freenode](http://webchat.freenode.net/?channels=reactnative)
<ide> * [Facebook group](https://www.facebook.com/groups/react.native.community/)
<add>* Reactiflux — [#rea... | 1 |
PHP | PHP | make queued jobs the default | 0ad5b36932a87bd76736d763aef858d60d9f4fa7 | <ide><path>src/Illuminate/Foundation/Console/JobMakeCommand.php
<ide> class JobMakeCommand extends GeneratorCommand
<ide> */
<ide> protected function getStub()
<ide> {
<del> if ($this->option('queued')) {
<del> return __DIR__.'/stubs/job-queued.stub';
<del> } else {
<add> if... | 1 |
Python | Python | use openblas.sgemm in parser | 952c87409eafb9312ca62b1a940c8635d539dc74 | <ide><path>spacy/_ml.py
<ide> def __init__(self, nO=None, nI=None, nF=None, nP=None, **kwargs):
<ide> self.nF = nF
<ide>
<ide> def begin_update(self, X, drop=0.):
<del> Yf = self.ops.xp.dot(X,
<del> self.W.reshape((self.nF*self.nO*self.nP, self.nI)).T)
<add> Yf = self.ops.gemm(X,
<... | 1 |
Javascript | Javascript | use repeat() instead of new array().join() | 58dc229d9aac29132cf038ed07b3b7e13b671dca | <ide><path>test/parallel/test-buffer-concat.js
<ide> const flatLongLen = Buffer.concat(long, 40);
<ide> assert.strictEqual(flatZero.length, 0);
<ide> assert.strictEqual(flatOne.toString(), 'asdf');
<ide>
<del>const check = new Array(10 + 1).join('asdf');
<add>const check = 'asdf'.repeat(10);
<ide>
<ide> // A special ... | 10 |
Javascript | Javascript | fix a bug when rendering certain arcs | 2cdaf6ad003d0390abe7b17d03b2b7f10b4b90e3 | <ide><path>d3.js
<del>d3 = {version: "0.28.2"}; // semver
<add>d3 = {version: "0.28.3"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide> d3["svg"]["arc"] = function() {
<ide> a0 = startAngle.call(this, d, i) + d3_svg_arcOffset,
<ide> a1 = endAngle.call(t... | 4 |
Ruby | Ruby | improve dash separated version detection | e1dfafa54ccf95d6abe5de28da53ea1e6406f567 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_opam_version
<ide> def test_waf_version
<ide> assert_version_detected "1.8.12", "https://waf.io/waf-1.8.12"
<ide> end
<add>
<add> def test_dash_separated_version
<add> assert_version_detected "6-20151227", "ftp://gcc.gnu.org/pub/gcc/snapshots/... | 2 |
Ruby | Ruby | remove unused classes | 0d7ab973e15b476ed42471395027e329f95c8951 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> class HasManyThroughCantAssociateThroughHasOneOrManyReflection < ThroughCantAsso
<ide> class HasOneThroughCantAssociateThroughHasOneOrManyReflection < ThroughCantAssociateThroughHasOneOrManyReflection #:nodoc:
<ide> end
<ide>
<del> class HasManyThrou... | 1 |
Text | Text | add example link to faq section | 5f1964885601c7d2cd38f360a87331abf3dc2ac9 | <ide><path>README.md
<ide> Atomic Flux with hot reloading.
<ide> - [Running the same code on client and server](#running-the-same-code-on-client-and-server)
<ide> - [Additional customization](#additional-customization)
<ide> - [FAQ](#faq)
<add> - [Any examples with data fetching and `react-router`?](#any-examples-... | 1 |
Python | Python | improve readability of pull request 15286 | 7658bfc42984b702e9a211d0e92eef83a338eba6 | <ide><path>keras/utils/vis_utils.py
<ide> def format_shape(shape):
<ide> [format_shape(ishape) for ishape in layer.input_shapes])
<ide> else:
<ide> inputlabels = '?'
<del> label = f'{label}|{{input:|output:}}|' \
<del> + f'{{{{{inputlabels}}}|{{{outputlabels}}}}}'
<del>
<add> ... | 1 |
Javascript | Javascript | fix view destruction inside outlets | 1fc7811a45dfb6184667364067203db4e2ff45dc | <ide><path>packages/ember-htmlbars/lib/keywords/real_outlet.js
<ide> export default {
<ide> toRender.template = topLevelViewTemplate;
<ide> }
<ide>
<del> return { outletState: selectedOutletState, hasParentOutlet: env.hasParentOutlet };
<add> return {
<add> outletState: selectedOutletState,
<add> ... | 3 |
Python | Python | remove jinja 'autoescape' and 'with' extensions | 81ba6c24efea58dd00c093448fa2e529c0cda507 | <ide><path>src/flask/app.py
<ide> class Flask(Scaffold):
<ide> #: This is a ``dict`` instead of an ``ImmutableDict`` to allow
<ide> #: easier configuration.
<ide> #:
<del> jinja_options = {"extensions": ["jinja2.ext.autoescape", "jinja2.ext.with_"]}
<add> jinja_options = {}
<ide>
<ide> #:... | 1 |
Text | Text | fix incorrect name in report docs | 306d240b019cc9c2fa485213d5a998fa401b7883 | <ide><path>doc/api/report.md
<ide> is provided below for reference.
<ide> "osRelease": "3.10.0-862.el7.x86_64",
<ide> "osVersion": "#1 SMP Wed Mar 21 18:14:51 EDT 2018",
<ide> "osMachine": "x86_64",
<del> "osCpus": [
<add> "cpus": [
<ide> {
<ide> "model": "Intel(R) Core(TM) i7-6820HQ CPU... | 1 |
PHP | PHP | load appshell class | eecd91e99fd2cde8eac73554bfbe30926d5c708d | <ide><path>lib/Cake/Console/ShellDispatcher.php
<ide> protected function _getShell($shell) {
<ide> $class = Inflector::camelize($shell) . 'Shell';
<ide>
<ide> App::uses('Shell', 'Console');
<add> App::uses('AppShell', 'Console');
<ide> App::uses($class, $plugin . 'Console/Command');
<ide>
<ide> if (!class_ex... | 1 |
Text | Text | add missing semicolon | 9ae490501bbae975ac992e617ec79322764f7c9d | <ide><path>docs/advanced/ExampleRedditAPI.md
<ide> function fetchPosts(reddit) {
<ide> return fetch(`http://www.reddit.com/r/${reddit}.json`)
<ide> .then(req => req.json())
<ide> .then(json => dispatch(receivePosts(reddit, json)));
<del> }
<add> };
<ide> }
<ide>
<ide> function shouldFetchPosts(state,... | 1 |
Python | Python | improve descriptions of go_backwards parameters. | f9c9c0ab3fd2ce9613f110b5b229ac0fc0e51b82 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def rnn(step_function, inputs, initial_states,
<ide> (no time dimension),
<ide> containing the initial values for the states used in
<ide> the step function.
<del> go_backwards: boolean. If True, do the iteration over
<del> ... | 3 |
Go | Go | prevent panic upon error pulling registry | e836b0064bc18300ca9213c749f464e52ca9d001 | <ide><path>registry/registry.go
<ide> func (r *Registry) GetRemoteHistory(imgID, registry string, token []string) ([]s
<ide> req.Header.Set("Authorization", "Token "+strings.Join(token, ", "))
<ide> res, err := doWithCookies(r.client, req)
<ide> if err != nil || res.StatusCode != 200 {
<del> if res.StatusCode == 40... | 1 |
Javascript | Javascript | handle pipechunksize properly | ac5a185edf16efb7738c00f4d35f00bc2f93bf04 | <ide><path>lib/_stream_readable.js
<ide> function ReadableState(options, stream) {
<ide>
<ide> // the number of writers that are awaiting a drain event in .pipe()s
<ide> this.awaitDrain = 0;
<del> this.flowChunkSize = null;
<add> this.pipeChunkSize = null;
<ide>
<ide> this.decoder = null;
<ide> if (options.... | 1 |
Javascript | Javascript | add test for debug usage message | 3dfcb2e266d5e66610de077c25adc93fd552c267 | <ide><path>test/parallel/test-debug-usage.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const spawn = require('child_process').spawn;
<add>
<add>const child = spawn(process.execPath, ['debug']);
<add>child.stderr.setEncoding('utf8');
<add>
<add>const expecte... | 1 |
Ruby | Ruby | autosave collection associations exactly once | 21d67f18a46d0be0e113bfd7662308535b001564 | <ide><path>activerecord/lib/active_record/autosave_association.rb
<ide> module ActiveRecord
<ide> # == Callbacks
<ide> #
<ide> # Association with autosave option defines several callbacks on your
<del> # model (before_save, after_create, after_update). Please note that
<add> # model (around_save, before_save, a... | 3 |
Ruby | Ruby | implement json v2 | 8c5140f6e6dddcd979ad7c388252199796e4917a | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide> def outdated_args
<ide> def outdated
<ide> outdated_args.parse
<ide>
<del> formula_only = args.formula?
<del> if args.json
<del> raise UsageError, "invalid JSON version: #{args.json}" unless ["v1", true].include? args.json
<add> case json_version
<a... | 1 |
Text | Text | fix typo in http.md | 6244110bb9279da107fbbc0a78b440a57edbde24 | <ide><path>doc/api/http.md
<ide> request.setHeader('Foo', 'bar');
<ide> request.setHeader('Cookie', ['foo=bar', 'bar=baz']);
<ide>
<ide> const headerNames = request.getHeaderNames();
<del>// headerNames === ['foo', 'Cookie']
<add>// headerNames === ['foo', 'cookie']
<ide> ```
<ide>
<ide> ### `request.getHeaders()` | 1 |
Javascript | Javascript | add test against unsupported worker features | 39568e39d9adca89257b44acfc76d02836099767 | <ide><path>test/parallel/test-worker-unsupported-things.js
<add>// Flags: --experimental-worker
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const { Worker, isMainThread, parentPort } = require('worker');
<add>
<add>if (isMainThread) {
<add> const w = new Wor... | 1 |
Text | Text | fix broken link in contributing.md | 25044e34b02a43265c2499de907ad71d2434bbf1 | <ide><path>CONTRIBUTING.md
<ide> So you want to help out? Great! There's a number of ways you can get involved.
<ide>
<ide> * [File and discuss issues](#filing-issues)
<ide> * [Contribute code](#contributing-code)
<del> * [Build and share plugins](docs/plugins.md)
<add> * [Build and share plugins](docs/guides/pl... | 1 |
Javascript | Javascript | add process.cwd to the test process shim | 3195bcdbcb511cc218859dc6b35de8628a6fb9bc | <ide><path>src/renderers/dom/__tests__/ReactDOMProduction-test.js
<ide> describe('ReactDOMProduction', () => {
<ide> __DEV__ = false;
<ide> oldProcess = process;
<ide> global.process = {
<add> cwd: process.cwd,
<ide> env: Object.assign({}, process.env, {NODE_ENV: 'production'}),
<ide> };
<ide... | 1 |
Javascript | Javascript | remove documentation for {{template}} | 48ecdd707e226315bb4750ff0c91a6fcb56e2637 | <ide><path>packages/ember-handlebars/lib/helpers/template.js
<del>import Ember from "ember-metal/core";
<del>// var emberDeprecate = Ember.deprecate;
<add>import Ember from "ember-metal/core"; // Ember.deprecate;
<ide>
<ide> import EmberHandlebars from "ember-handlebars-compiler";
<ide> /**
<ide> import EmberHandlebar... | 1 |
Python | Python | fix typo in build script for win32 | 11a69c23a29916f0d0721108e34d758e72d56b41 | <ide><path>tools/win32build/build.py
<ide> from os.path import join as pjoin, split as psplit, dirname
<ide>
<ide> PYEXECS = {"2.5" : "C:\python25\python.exe",
<del> "2.4" : "C:\python24\python2.4.exe",
<add> "2.4" : "C:\python24\python24.exe",
<ide> "2.3" : "C:\python23\python23.exe"}
<ide>
<id... | 1 |
Text | Text | use the same changelog format as 15.0 post | 6c11bb65e10f1e6fcd6e24a80f127a3627858edb | <ide><path>docs/_posts/2016-04-08-react-v15.0.1.md
<ide> As usual, you can get install the `react` package via npm or download a browser
<ide> ## Changelog
<ide>
<ide> ### React
<del>- Restore `React.__spread` API to unbreak code compiled with some tools making use of this undocumented API. It is now officially deprec... | 1 |
Javascript | Javascript | use fixtures.readkey in https-agent test | d36433e1b6ce070026ccd14a341f7a564d58ad4b | <ide><path>test/parallel/test-https-agent-create-connection.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const https = require('https');
<ide>
<ide> const ag... | 1 |
Ruby | Ruby | test that the tab round-trips through json | 07171f55275f5aee010a6b529300f2b448863642 | <ide><path>Library/Homebrew/test/test_tab.rb
<ide> def setup
<ide> @unused << Option.new("with-baz") << Option.new("without-qux")
<ide>
<ide> @tab = Tab.new({
<del> :used_options => @used,
<del> :unused_options => @unused,
<add> :used_options => @used.map(&:to_s),
<add> :unu... | 1 |
Ruby | Ruby | fix rubocop warnings | 49e009df296d64edbd48a9b8ec657b735f02e89b | <ide><path>Library/Homebrew/cmd/unpack.rb
<ide> def unpack
<ide> end
<ide> ENV["VERBOSE"] = nil
<ide>
<del> if ARGV.git?
<del> ohai "Setting up git repository"
<del> cd stage_dir
<del> system "git", "init", "-q"
<del> system "git", "add", "-A"
<del> system "git", "co... | 1 |
Javascript | Javascript | add resolver result to module callback | 9afd2897a503a049543c4b020d876f21275c5c87 | <ide><path>lib/NormalModuleFactory.js
<ide> function NormalModuleFactory(context, resolvers, options) {
<ide> function(callback) {
<ide> if(resource === "" || resource[0] === "?")
<ide> return callback(null, resource);
<del> _this.resolvers.normal.resolve(resolveContextInfo, context, resource, functi... | 1 |
Javascript | Javascript | fix symbolication outside of chrome debugging | 7dbc8051e5eec12db4d98fe658167c522c6d8275 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/symbolicateStackTrace.js
<ide>
<ide> const {fetch} = require('fetch');
<ide> const getDevServer = require('getDevServer');
<add>const {SourceCode} = require('NativeModules');
<ide>
<ide> import type {StackFrame} from 'parseErrorStack';
<ide>
<ide> async functio... | 1 |
Text | Text | add triagers to the table of contents | 18113969e2f4d933c273ea64607ee75d8c2d2edb | <ide><path>README.md
<ide> The Node.js project uses an [open governance model](./GOVERNANCE.md). The
<ide> * [Current project team members](#current-project-team-members)
<ide> * [TSC (Technical Steering Committee)](#tsc-technical-steering-committee)
<ide> * [Collaborators](#collaborators)
<add> * [Triagers](#tria... | 1 |
Text | Text | add change of previous commit to changelog.md | 54b3f417411097f7404d15355858f56ad66e8294 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* PostgreSQL adapter correctly fetches default values when using multiple schemas and domains in a db. Fixes #7914
<add>
<add> *Arturo Pie*
<add>
<ide> * Learn ActiveRecord::QueryMethods#order work with hash arguments
<ide>
<i... | 1 |
Ruby | Ruby | ask the fixture set for the sql statements | 026d0555685087845b74dd87a0417b5a164b1c13 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def reset_sequence!(table, column, sequence = nil)
<ide> # Inserts the given fixture into the table. Overridden in adapters that require
<ide> # something beyond a simple insert (eg. Oracle).
<ide> def ... | 2 |
Python | Python | use ndarray in the array api creation functions | 587613f056299766be2da00a64b5fa0ac31c84aa | <ide><path>numpy/_array_api/_creation_functions.py
<ide> def arange(start: Union[int, float], /, *, stop: Optional[Union[int, float]] = N
<ide>
<ide> See its docstring for more information.
<ide> """
<add> from ._array_object import ndarray
<ide> if device is not None:
<ide> # Note: Device suppo... | 1 |
Go | Go | fix flaky test testimportfilewithmessage | 9d6989bbb61cc009262ed6cf2ada92e7350a58af | <ide><path>cmd/dockerd/hack/malformed_host_override.go
<ide> func (l *MalformedHostHeaderOverrideConn) Read(b []byte) (n int, err error) {
<ide> firstLineFeed = -1
<ide> buf []byte
<ide> )
<del> for i, bb := range b[:c] {
<del> if bb == '\n' && firstLineFeed == -1 {
<add> for i := 0; i <= c-1-7; i... | 2 |
Javascript | Javascript | simplify numbertoidentifer method | d74491d3f1fc2f770980a4670a64bb33ba43c6c0 | <ide><path>lib/Template.js
<ide> Template.toIdentifier = function(str) {
<ide> return str.replace(/^[^a-zA-Z$_]/, "_").replace(/[^a-zA-Z0-9$_]/g, "_");
<ide> };
<ide>
<del>var A_CODE = "a".charCodeAt(0);
<del>var Z_CODE = "z".charCodeAt(0);
<del>var AZ_COUNT = Z_CODE - A_CODE + 1;
<del>var A2_CODE = "A".charCodeAt(0)... | 1 |
Ruby | Ruby | add python_pth_files_installed? helper | daabf4f5dc3effbaa1efe7275615f6541b65906c | <ide><path>Library/Homebrew/keg.rb
<ide> def python_site_packages_installed?
<ide> path.join("lib", "python2.7", "site-packages").directory?
<ide> end
<ide>
<add> def python_pth_files_installed?
<add> Dir["#{path}/lib/python2.7/site-packages/*.pth"].any?
<add> end
<add>
<ide> def app_installed?
<ide> ... | 1 |
Javascript | Javascript | add note that isobject returns true for arrays | 3193a3a5af731a4773feadc23d91c5ab63ef9fda | <ide><path>src/Angular.js
<ide> function isDefined(value){return typeof value !== 'undefined';}
<ide> *
<ide> * @description
<ide> * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
<del> * considered to be objects.
<add> * considered to be objects. Note that JavaScript arrays... | 1 |
Ruby | Ruby | fix all rubocop violations | 600ff9abfccb6e4f44421534602f3eae224cecff | <ide><path>actionview/lib/action_view/helpers/javascript_helper.rb
<ide> module ActionView
<ide> module Helpers #:nodoc:
<ide> module JavaScriptHelper
<ide> JS_ESCAPE_MAP = {
<del> '\\' => '\\\\',
<add> "\\" => "\\\\",
<ide> "</" => '<\/',
<ide> "\r\n" => '\n',
<ide> ... | 4 |
Python | Python | use 0-vector for oov lexemes | f9fd2889b79495d2c4607ad3c89438aacb5d24ec | <ide><path>spacy/ml/models/multi_task.py
<ide> from thinc.api import MultiSoftmax, list2array
<ide> from thinc.api import to_categorical, CosineDistance, L2Distance
<ide>
<del>from ...util import registry
<add>from ...util import registry, OOV_RANK
<ide> from ...errors import Errors
<ide> from ...attrs import ID
<ide>... | 1 |
Java | Java | improve application of styles for `value` prop | f6f8b092f9dac03e81cb01a73e748f3df85ea519 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java
<ide> public void execute(SpannableStringBuilder sb, int priority) {
<ide> private static void buildSpannedFromShadowNode(
<ide> ReactBaseTextShadowNode textShadowNode,
<ide> SpannableStringBuilder sb,
<del> ... | 1 |
Python | Python | fix failing static check | 8240a447ae8296d904b5661a9bff182f4aa55d06 | <ide><path>dev/breeze/src/airflow_breeze/prod/prod_params.py
<ide> def docker_cache_prod_directive(self) -> List:
<ide> docker_cache_prod_directive = []
<ide>
<ide> if self.prepare_buildx_cache:
<del> docker_cache_prod_directive.extend([f"--cache-to=type=inline,mode=max", "--push"])
<add... | 1 |
Text | Text | add a note about loading source with amd | e0c25abb435db6e210d00407af2ba40e5f0b56ad | <ide><path>CONTRIBUTING.md
<ide> Run the build script
<ide> $ npm run build
<ide> ```
<ide>
<del>Run the Grunt tools:
<del>
<del>```bash
<del>$ grunt && grunt watch
<del>```
<del>
<ide> Now open the jQuery test suite in a browser at http://localhost/test. If there is a port, be sure to include it.
<ide>
<ide> Success... | 1 |
Ruby | Ruby | add tests for new rake tasks | bb9e5540c8fd3f48d461362c652cb86c17d9c5f3 | <ide><path>activerecord/test/cases/tasks/database_tasks_test.rb
<ide> def test_creates_test_and_development_databases_when_rails_env_is_development
<ide> ENV["RAILS_ENV"] = old_env
<ide> end
<ide>
<del> def test_establishes_connection_for_the_given_environment
<add> def test_establishes_connection_for_... | 1 |
Python | Python | enable v2 layers for resnet_model | 3dee3b86713ae25f5da9aa8238e059c7f30cf021 | <ide><path>official/vision/image_classification/resnet_model.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import tensorflow as tf
<del>
<ide> from tensorflow.python.keras import backend
<ide> from tensorflow.python.keras import initializers
<add>from tensorflow.python... | 1 |
Go | Go | add _ping endpoint | cf0076b92dd11b3bda9ac7982e374d4531925ff9 | <ide><path>api/server/server.go
<ide> package server
<ide> import (
<ide> "bufio"
<ide> "bytes"
<del> "code.google.com/p/go.net/websocket"
<ide> "crypto/tls"
<ide> "crypto/x509"
<ide> "encoding/base64"
<ide> import (
<ide> "strings"
<ide> "syscall"
<ide>
<add> "code.google.com/p/go.net/websocket"
<add>
<ide> "... | 1 |
Javascript | Javascript | fix scrollview documentation markup | 48156b7967c78fb2e24282614d0617acb3814c06 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> const ScrollView = React.createClass({
<ide> * These styles will be applied to the scroll view content container which
<ide> * wraps all of the child views. Example:
<ide> *
<del> * return (
<del> * <ScrollView contentContainerS... | 1 |
PHP | PHP | apply fixes from styleci | 47bc923605d0230a29ce2be878548a830347a9cd | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Carbon;
<ide> use Illuminate\Support\Facades\Date;
<del>use Illuminate\Support\Stringable;
<ide> use Illuminate\Support\Reflector;
<add>use Illuminate\Support\Stringable;
<ide> use Illuminate\Support\Tr... | 2 |
PHP | PHP | apply fixes from styleci | 64e28ba7dc83291ade23da5c337ab3ddda105bdb | <ide><path>tests/Integration/Queue/JobEncryptionTest.php
<ide> namespace Illuminate\Tests\Integration\Queue;
<ide>
<ide> use Illuminate\Bus\Queueable;
<del>use Illuminate\Contracts\Queue\ShouldQueue;
<ide> use Illuminate\Contracts\Queue\ShouldBeEncrypted;
<add>use Illuminate\Contracts\Queue\ShouldQueue;
<ide> use Illu... | 1 |
PHP | PHP | improve union all queries in postgres grammar | e7aa0e9785214aaeefb3c2822e35b84a2d944ba5 | <ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
<ide>
<ide> class PostgresGrammar extends Grammar
<ide> {
<add> /**
<add> * The components that make up a select clause.
<add> *
<add> * @var array
<add> */
<add> protected $selectComponents = [
<add> 'aggregate',
<add> ... | 1 |
Text | Text | add blue-yonder to airflow users | c32452aba65695fea8f6dc5cd4835ac23d703960 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> * [allegro.pl](http://allegro.tech/) [[@kretes](https://github.com/kretes)]
<ide> * [Bellhops](https://github.com/bellhops)
<ide> * BlueApron [[@jasonjho](https://github.com/jasonjho) & [@matthewdavidhauser](https://github.com/matthewdavidhauser)]... | 1 |
PHP | PHP | add strict typing to association related files | 7de7f1974e460dfe29cbc50f1b3ac0d339421278 | <ide><path>src/ORM/Association.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> use Cake\Datasource\ResultSetDecorator;
<ide> use Cake\ORM\Locator\Loca... | 17 |
Python | Python | apply patch for unique from #154 | 50831666840ec2ee065569c3e3c9fbc5461fc918 | <ide><path>numpy/lib/function_base.py
<ide> def trim_zeros(filt, trim='fb'):
<ide> else: last = last - 1
<ide> return filt[first:last]
<ide>
<del>def unique(inseq):
<del> """Return unique items (in sorted order) from a 1-dimensional sequence.
<del> """
<del> # Dictionary setting is quite fast.... | 2 |
Javascript | Javascript | add blob benchmark | 6adaf23c20acc48b836134ea660dc8c16f028117 | <ide><path>benchmark/blob/blob.js
<add>'use strict';
<add>const common = require('../common.js');
<add>const { Blob } = require('buffer');
<add>
<add>const bench = common.createBenchmark(main, {
<add> bytes: [128, 1024, 1024 ** 2],
<add> n: [1e6],
<add> operation: ['text', 'arrayBuffer']
<add>});
<add>
<add>async fu... | 2 |
Javascript | Javascript | add test for process.stdin.setrawmode() | 3ae09001426bbb018bdeae39747225256e370f3d | <ide><path>test/pseudo-tty/stdin-setrawmode.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>
<add>process.stdin.setRawMode(true);
<add>assert.strictEqual(process.stdin.isRaw, true);
<add>
<add>process.stdin.setRawMode(false);
<add>assert.strictEqual(process.stdin.isRaw, fals... | 1 |
Python | Python | fix python 3 related issues | 4be89d24b3f8cb5376f476437bda2342baf42043 | <ide><path>libcloud/storage/drivers/backblaze_b2.py
<ide> def upload_object(self, file_path, container, object_name, extra=None,
<ide> headers['Content-Type'] = content_type
<ide>
<ide> sha1 = hashlib.sha1()
<del> sha1.update(data.encode())
<add> sha1.update(b(data))
<ide> headers... | 2 |
PHP | PHP | use json_extract instead of json_merge | 5c7ac297994994fd6d3a804ac9729f4fca61e479 | <ide><path>src/Illuminate/Database/Query/JsonExpression.php
<ide> protected function getJsonBindingParameter($value)
<ide> return '?';
<ide> case 'object':
<ide> case 'array':
<del> return 'json_merge(?, "[]")';
<add> return 'json_extract(?, "$")';
<... | 2 |
Text | Text | add table of contents to contributing doc | 6bc521815aa68e3296935dec3f292d64dba65e6c | <ide><path>CONTRIBUTING.md
<ide> # Contributor's Guide
<ide>
<add>## Table of Contents
<add>
<add>- [I want to help!](#i-want-to-help)
<add>- [Contribution Guidelines](#contribution-guidelines)
<add>- [Prerequisites](#prerequisites)
<add>- [Getting Started](#getting-started)
<add>- [Linting Setup](#linting-setup)
<add... | 1 |
Java | Java | make systrace less noisy in java | 523a103108d7ae7073653233a35ed678bf844848 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public void recreateReactContextInBackground() {
<ide> private void recreateReactContextInBackgroundInner() {
<ide> UiThreadUtil.assertOnUiThread();
<ide>
<del> if (mUseDeveloperSupport && mJSMainModuleName != null) {
<ad... | 1 |
Javascript | Javascript | remove peculiar web language | 843ad50296c0a19d3e342c5be9ea92e37fac109a | <ide><path>Libraries/Components/Touchable/TouchableWithoutFeedback.js
<ide> const PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
<ide>
<ide> /**
<ide> * Do not use unless you have a very good reason. All the elements that
<del> * respond to press should have a visual feedback when touched. This ... | 1 |
Javascript | Javascript | add feature test for blend mode | ed1fa5a9192bfd82559807dfeab43c11340c75a0 | <ide><path>test/features/tests.js
<ide> var tests = [
<ide> },
<ide> impact: 'Important',
<ide> area: 'Core'
<add> },
<add> {
<add> id: 'Canvas Blend Mode',
<add> name: 'Canvas supports extended blend modes',
<add> run: function () {
<add> var fail = { output: 'Failed', emulated: 'No' };
<ad... | 1 |
Python | Python | rethrow original exception in generatorenqueuer. | 4a58b178073f0ba3b166220f7ebd7d56149bfb20 | <ide><path>keras/utils/data_utils.py
<ide> import tarfile
<ide> import threading
<ide> import time
<add>import traceback
<ide> import zipfile
<ide> from abc import abstractmethod
<ide> from multiprocessing.pool import ThreadPool
<ide> def get(self):
<ide> yield inputs
<ide> except Exception ... | 3 |
Python | Python | add more extension methods to the libvirt driver | aec5d33791ce6626612acd51a53589f474e7dcd1 | <ide><path>libcloud/compute/drivers/libvirt_driver.py
<ide> # limitations under the License.
<ide>
<ide> import re
<add>import os
<add>import time
<ide> import platform
<ide> import subprocess
<add>import mimetypes
<ide>
<add>from os.path import join as pjoin
<ide> from collections import defaultdict
<ide> from xml.e... | 1 |
Ruby | Ruby | run readall when tapping. (#396) | 4da990587f723a563e602a665403393f67fc8e70 | <ide><path>Library/Homebrew/cmd/readall.rb
<ide> # when making significant changes to formula.rb,
<ide> # or to determine if any current formulae have Ruby issues
<ide>
<del>require "formula"
<del>require "tap"
<del>require "thread"
<add>require "readall"
<ide>
<ide> module Homebrew
<ide> def readall
<del> if AR... | 4 |
PHP | PHP | set a message for suspiciousoperationexception | 1b3f26dd0b722ac55b0b04d2a603a967271f82e9 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function prepareException(Exception $e)
<ide> } elseif ($e instanceof TokenMismatchException) {
<ide> $e = new HttpException(419, $e->getMessage(), $e);
<ide> } elseif ($e instanceof SuspiciousOperationException) {
<... | 1 |
Ruby | Ruby | use utils.popen_read in xquartz version codepath | 677cd519778ab66e19699d847b03a2f3d958bd2a | <ide><path>Library/Homebrew/os/mac.rb
<ide> def app_with_bundle_id(*ids)
<ide> def mdfind(*ids)
<ide> return [] unless OS.mac?
<ide> (@mdfind ||= {}).fetch(ids) do
<del> @mdfind[ids] = `/usr/bin/mdfind "#{mdfind_query(*ids)}"`.split("\n")
<add> @mdfind[ids] = Utils.popen_read("/usr/bin/mdf... | 2 |
Javascript | Javascript | add tests for moduledependencyerror | 11991719ecfd2a44144399bf9f97868d8fe57e15 | <ide><path>test/ModuleDependencyError.test.js
<add>var path = require("path");
<add>var should = require("should");
<add>var sinon = require("sinon");
<add>var ModuleDependencyError = require("../lib/ModuleDependencyError");
<add>
<add>describe("ModuleDependencyError", function() {
<add> var env;
<add>
<add> beforeEach... | 1 |
Javascript | Javascript | add parent to err_unknown_file_extension | 7ab21b2f5702ae0b2a5fe5d30ec356f83a95f698 | <ide><path>lib/internal/errors.js
<ide> E('ERR_UNHANDLED_ERROR',
<ide> E('ERR_UNKNOWN_BUILTIN_MODULE', 'No such built-in module: %s', Error);
<ide> E('ERR_UNKNOWN_CREDENTIAL', '%s identifier does not exist: %s', Error);
<ide> E('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError);
<del>E('ERR_UNKNOWN_FILE_EXTENSI... | 3 |
Java | Java | trim decoded sse data | 5dcde9e7d7876f2100a54893fb158fcf61be159f | <ide><path>spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageReader.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide... | 1 |
Javascript | Javascript | avoid validation warning when inputs change type | 08a0895887c82e379d7717439c7a8d0b015e0696 | <ide><path>src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
<ide> describe('ReactDOMInput', function() {
<ide> );
<ide> expect(input.value).toBe('hi');
<ide> });
<add>
<add> it('does not raise a validation warning when it switches types', function() {
<add> var Input = React.createClass({... | 2 |
Python | Python | raise error on group.apply_async(link=). closes | d47739c0d8156b876a588e6d5705f1af58a1871d | <ide><path>celery/canvas.py
<ide> def skew(self, start=1.0, stop=None, step=1.0):
<ide> return self
<ide>
<ide> def apply_async(self, args=(), kwargs=None, add_to_parent=True,
<del> producer=None, **options):
<add> producer=None, link=None, link_error=None, **options):... | 2 |
Javascript | Javascript | remove unnecessary usage of .hasownproperty() | 4d0329ebeb5d58702be9450e0706e0f2c404848d | <ide><path>lib/fs.js
<ide> function ReadStream(path, options) {
<ide> return new ReadStream(path, options);
<ide>
<ide> // a little bit bigger buffer and water marks by default
<del> options = util._extend({
<del> highWaterMark: 64 * 1024
<del> }, options || {});
<add> options = Object.create(options || {}... | 2 |
Java | Java | protect methods from proguard | 7008ffb663d59c34e94b6abe5b63e0bc9ad89b04 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java
<ide> import android.os.Bundle;
<ide> import android.os.Parcelable;
<ide> import androidx.annotation.Nullable;
<add>import com.facebook.proguard.annotations.DoNotStrip;
<ide> import java.lang.reflect.Array;
<ide> import java.util.AbstractLis... | 1 |
Ruby | Ruby | place x11 ahead of opengl when x11 is active | c90247aa44272b60df247c6c83512e2a6bd23395 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def determine_isystem_paths
<ide> paths << "#{HOMEBREW_PREFIX}/include"
<ide> paths << "#{effective_sysroot}/usr/include/libxml2" unless deps.include? "libxml2"
<ide> paths << "#{effective_sysroot}/usr/include/apache2" if MacOS::Xcode.without_clt?
<del> ... | 1 |
Javascript | Javascript | fix the order of events in onmousewheel | 6ab03f44db9b492444e55b9481543165dee1da36 | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide> event.preventDefault();
<ide> event.stopPropagation();
<ide>
<add> scope.dispatchEvent( startEvent );
<add>
<ide> handleMouseWheel( event );
<ide>
<del> scope.dispatchEvent( startEvent ); // no... | 1 |
Mixed | Python | add pretraining option to init config | ddfc1fc146ec35dab19f835602345de91342eeee | <ide><path>spacy/cli/init_config.py
<ide> def init_config_cli(
<ide> pipeline: Optional[str] = Opt("tagger,parser,ner", "--pipeline", "-p", help="Comma-separated names of trainable pipeline components to include (without 'tok2vec' or 'transformer')"),
<ide> optimize: Optimizations = Opt(Optimizations.efficiency... | 2 |
Javascript | Javascript | clarify assertion failure | 92d326994da55f19db0e011aabcdbeb672c1fa4a | <ide><path>test/pummel/test-tls-connect-memleak.js
<ide> const fixtures = require('../common/fixtures');
<ide> assert.strictEqual(
<ide> typeof global.gc,
<ide> 'function',
<del> 'Run this test with --expose-gc'
<add> `Type of global.gc is not a function. Type: ${typeof global.gc}.` +
<add> ' Run this test wit... | 1 |
Python | Python | fix a docstring | 091685954504fb46cd77f6f40bd5a780bddbb06f | <ide><path>keras/preprocessing/text.py
<ide> def one_hot(text, n,
<ide> """One-hot encodes a text into a list of word indexes of size n.
<ide>
<ide> This is a wrapper to the `hashing_trick` function using `hash` as the
<del> hashing function, unicity of word to index mapping non-guaranteed.
<add> hashing... | 1 |
Javascript | Javascript | add example for how to use `style` properly | 1c5443175cf55addb63ee04a00a0939e9bbb0db6 | <ide><path>src/browser/ui/ReactDOMComponent.js
<ide> function assertValidProps(props) {
<ide> invariant(
<ide> props.style == null || typeof props.style === 'object',
<ide> 'The `style` prop expects a mapping from style properties to values, ' +
<del> 'not a string.'
<add> 'not a string. For example, st... | 2 |
Go | Go | update ovmanager to support maximum vni | d3b8412ac6014962852b12128e2067626bf69482 | <ide><path>libnetwork/drivers/overlay/ovmanager/ovmanager.go
<ide> import (
<ide> const (
<ide> networkType = "overlay"
<ide> vxlanIDStart = 256
<del> vxlanIDEnd = 1000
<add> vxlanIDEnd = (1 << 24) - 1
<ide> )
<ide>
<ide> type networkTable map[string]*network | 1 |
Go | Go | remove the redundant 'if' statements | 98c036943794383094e00cfb0c16d460593375bf | <ide><path>daemon/cluster/secrets.go
<ide> func (c *Cluster) RemoveSecret(id string) error {
<ide> SecretID: id,
<ide> }
<ide>
<del> if _, err := state.controlClient.RemoveSecret(ctx, req); err != nil {
<del> return err
<del> }
<del> return nil
<add> _, err := state.controlClient.RemoveSecret(ctx, req)
<add> retur... | 1 |
Java | Java | update javadoc for testcontextbootstrapper | c84c1cfd1b5846e1ce13b8209d88df36a96085aa | <ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextBootstrapper.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 1 |
PHP | PHP | expand tests and remove unreachable code | 4a6f5982259f64d716fbb0a8a9b0b7bb24c87572 | <ide><path>src/View/Form/EntityContext.php
<ide> public function val($field) {
<ide> }
<ide> $parts = explode('.', $field);
<ide> list($entity, $prop) = $this->_getEntity($parts);
<del> if (!$entity) {
<del> return null;
<del> }
<ide> return $entity->get(array_pop($parts));
<ide> }
<ide>
<ide> protected f... | 2 |
Ruby | Ruby | use git to do the diff filtering | 6cad17caef241b93fc0218e39e4f889d158c7e9c | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def single_commit? start_revision, end_revision
<ide> return unless diff_start_sha1 != diff_end_sha1
<ide> return if @url and not steps.last.passed?
<ide>
<del> diff_stat = git "diff-tree", "-r", "--name-status",
<add> git(
<add> "diff-tree... | 1 |
PHP | PHP | clarify delay time | ed8d75bfa193415986495016e89aac5f9ef0d96b | <ide><path>src/Illuminate/Bus/Queueable.php
<ide> public function allOnQueue($queue)
<ide> }
<ide>
<ide> /**
<del> * Set the desired delay for the job.
<add> * Set the desired delay in seconds for the job.
<ide> *
<ide> * @param \DateTimeInterface|\DateInterval|int|null $delay
<ide> * ... | 25 |
Ruby | Ruby | add coreformularepository singleton class | 9f7a383017d3ed3cb4aedfbcdb58fd03eaa4599c | <ide><path>Library/Homebrew/tap.rb
<ide> def self.clear_cache
<ide> CACHE.clear
<ide> end
<ide>
<del> def self.fetch(user, repo)
<add> def self.fetch(*args)
<add> case args.length
<add> when 1
<add> user, repo = args.first.split("/", 2)
<add> when 2
<add> user = args[0]
<add> repo = arg... | 1 |
Javascript | Javascript | name anonymous functions for debugging purposes | 0d5efbe9fec1a81b1b08ecf1308b4e20299d1c66 | <ide><path>fonts.js
<ide> var serifFonts = {
<ide> var FontLoader = {
<ide> listeningForFontLoad: false,
<ide>
<del> bind: function(fonts, callback) {
<add> bind: function fontLoaderBind(fonts, callback) {
<ide> function checkFontsLoaded() {
<ide> for (var i = 0; i < objs.length; i++) {
<ide> var... | 1 |
PHP | PHP | fix cs errors | 9b1d999a5bc85988e0d25049170b0af02fb1fb66 | <ide><path>src/Console/Command.php
<ide> use Cake\Log\LogTrait;
<ide> use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use InvalidArgumentException;
<del>use RuntimeException;
<ide>
<ide> /**
<ide> * Base class for console commands.
<ide><path>src/Http/Server.php
<ide> use InvalidArgumentException;
<ide> use Psr\Http\Me... | 3 |
Ruby | Ruby | pass argv to each method that mutates it | 82f59a98035c8e9e4151ff0272f1a81fe9ec288c | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def get_builder_class
<ide> # This class should be called before the AppGenerator is required and started
<ide> # since it configures and mutates ARGV correctly.
<ide> class ARGVScrubber # :nodoc
<del> attr_reader :argv
<del>
<id... | 1 |
Ruby | Ruby | remove unnecessary use of dir[] | 0133afe6f8565ae84ab6267eb8e773abaad827cd | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> # FIXME: The export command doesn't work on checkouts
<ide> # See https://bugs.launchpad.net/bzr/+bug/897511
<ide> FileUtils.cp_r Dir[@clone+"{.}"], Dir.pwd
<del> FileUtils.rm_r Dir[Dir.pwd+"/.bzr"]
<add> FileUtils.rm_r ".bzr"
<ide... | 1 |
Ruby | Ruby | allow define scope for ruby reserved keywords | 8589e8c236a58bb3755bae02d1eb2b6fac995956 | <ide><path>activerecord/lib/active_record/relation/delegation.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "mutex_m"
<add>require "active_support/core_ext/module/delegation"
<ide>
<ide> module ActiveRecord
<ide> module Delegation # :nodoc:
<ide> def generate_method(method)
<ide> synchronize do... | 3 |
Text | Text | fix a broken link | 75f2290d2d9ad4f5e7ec77b1deeee3a0a98242b8 | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> atom.workspaceView.command 'core:close core:cancel', ->
<ide>
<ide> ## Upgrading your stylesheet's selectors
<ide>
<del>Many selectors have changed, and we have introduced the [Shadow DOM][shadowdom] to the editor. See [Upgrading Your Package Selectors guide][... | 1 |
Java | Java | rewrite concat operation to not block on subscribe | cfa7155c24089a2fbfd2e9481b56ad953079acf3 | <ide><path>rxjava-core/src/main/java/rx/operators/OperationConcat.java
<ide> import java.util.Arrays;
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<add>import java.util.Queue;
<ide> import java.util.concurrent.CountDownLatch;
<ide> import java.util.concurrent.atomic.AtomicBoolean;
<ide> import java.ut... | 1 |
Javascript | Javascript | create service for issuing reflows in animations | fc7d2d273748847ef6ce69df2dd522419aee7d72 | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'src/ng/controller.js',
<ide> 'src/ng/document.js',
<ide> 'src/ng/exceptionHandler.js',
<add> 'src/ng/forceReflow.js',
<ide> 'src/ng/http.js',
<ide> 'src/ng/httpBackend.js',
<ide> 'src/ng/interpolate.js',
<ide><path>src/AngularPublic... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.