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
Text
Text
update changelog for 1.7.0-beta.2
44b99c9714fc3e53b1d8cf433cbcdbe47d0eae84
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### Ember 1.7.0-beta.2 (July, 16, 2014) <add> <add>* [BUGFIX] Wrap es3 keywords in quotes. <add>* [BUGFIX] Use injected integration test helpers instead of local functions. <add>* [BUGFIX] Add alias descriptor, and replace `Ember.computed.alias` with new descr...
1
Javascript
Javascript
improve offset test setup and labels
9e121482a532d61aa36d7b314ee46dd1ac40f29e
<ide><path>test/data/iframeTest.js <del> <ide> window.startIframeTest = function() { <ide> var args = Array.prototype.slice.call( arguments ); <ide> <ide><path>test/data/testinit.js <ide> this.testIframe = function( title, fileName, func ) { <ide> var iframe; <ide> var done = assert.async(); <ide> <add> // Test...
3
Javascript
Javascript
avoid unnecessary instantiation of objects
898020bebbf2c15a2d7734813d0c4aaa05f00f96
<ide><path>examples/js/postprocessing/OutlinePass.js <ide> THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) { <ide> var MAX_EDGE_GLOW = 4; <ide> <ide> this.separableBlurMaterial1 = this.getSeperableBlurMaterial( MAX_EDGE_THICKNESS ); <del> this.separableBlurMaterial1.uniforms[ "texSize" ]....
2
Python
Python
fix string concatenation using `f-strings`
266384a63f4693b667f308d49fcbed9a10a41fce
<ide><path>airflow/providers/amazon/aws/hooks/sns.py <ide> def _get_message_attribute(o): <ide> if hasattr(o, '__iter__'): <ide> return {'DataType': 'String.Array', 'StringValue': json.dumps(o)} <ide> raise TypeError( <del> 'Values in MessageAttributes must be one of bytes, str, int, float, or it...
5
PHP
PHP
revert the removal of a bc relevant part
8e0f15b3d6819e05c4865306bf0c6e54e300fe3e
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function buildAssociationQuery(Model $Model, $queryData) { <ide> * Builds a string containing an SQL statement template. <ide> * <ide> * @param Model $Model Primary Model object. <del> * @param Model $LinkModel Linked model object. <add> * @param Model|...
2
Python
Python
use uppercase for config and support any object
35fd6eb22c4dec893770dd5720a51608a06fb8cd
<ide><path>flask.py <ide> def from_pyfile(self, filename): <ide> d = type(sys)('config') <ide> d.__file__ = filename <ide> execfile(filename, d.__dict__) <del> self.from_module(d) <add> self.from_object(d) <ide> <del> def from_module(self, module): <del> """Updates the v...
2
Java
Java
delete unused imports
d357ef706fca2cfcc970d51b5c582d58adb9cb0f
<ide><path>spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java <ide> import java.lang.reflect.Method; <ide> import java.lang.reflect.UndeclaredThrowableException; <ide> import java.rmi.RemoteException; <del>import java.util.Collections; <ide> import java.util.Link...
4
Python
Python
make views requiring session, keyword only args
d8dbdccef7cc14af7bacbfd4ebc48d8aabfaf7f0
<ide><path>airflow/www/views.py <ide> def rendered_templates(self, session): <ide> ) <ide> @action_logging <ide> @provide_session <del> def rendered_k8s(self, session: Session = NEW_SESSION): <add> def rendered_k8s(self, *, session: Session = NEW_SESSION): <ide> """Get rendered k8s yaml.""" <i...
1
PHP
PHP
add support for returning decoded subjects
c694b47503f883ef46f9e0310290addec4d069ab
<ide><path>src/Mailer/Email.php <ide> protected function _addEmail($varName, $email, $name) <ide> * Get/Set Subject. <ide> * <ide> * @param string|null $subject Subject string. <add> * @param bool $decode Whether to decode the subject. <ide> * @return string|$this <ide> */ <del> public f...
2
PHP
PHP
fix current uri used by crawler in tests
8964f375093904b05a426a664255ecaf73bdfd02
<ide><path>src/Illuminate/Foundation/Testing/InteractsWithPages.php <ide> protected function makeRequest($method, $uri, $parameters = [], $cookies = [], $ <ide> <ide> $this->currentUri = $this->app->make('request')->fullUrl(); <ide> <del> $this->crawler = new Crawler($this->response->getContent(), $uri...
1
Python
Python
add missing symbol
b88c4193e7bbf02eaa2c026d5fa2518975a77bb0
<ide><path>spacy/language_data/tag_map.py <ide> from __future__ import unicode_literals <ide> <ide> from ..symbols import POS, ADV, NOUN, ADP, PRON, SCONJ, PROPN, DET, SYM, INTJ <del>from ..symbols import PUNCT, NUM, AUX, X, CONJ, ADJ, VERB, PART, SPACE <add>from ..symbols import PUNCT, NUM, AUX, X, CONJ, ADJ, VERB, P...
1
PHP
PHP
use environment options in database config
83a5602df1eb4f1d58e9300da82ac6eef064b1b3
<ide><path>config/database.php <ide> <ide> 'mysql' => [ <ide> 'driver' => 'mysql', <del> 'host' => 'localhost', <del> 'database' => 'forge', <del> 'username' => 'forge', <del> 'password' => '', <add> 'host' => getenv('DB_HOST') ?: 'localhost', <add> 'database' => getenv('DB_DATABASE')...
1
Python
Python
fix bug train_batch_size not an int
649e9774cdee5c074634fe2eb37d1c1ed9f27a81
<ide><path>run_classifier.py <ide> def main(): <ide> raise ValueError("Invalid accumulate_gradients parameter: {}, should be >= 1".format( <ide> args.accumulate_gradients)) <ide> <del> args.train_batch_size = args.train_batch_size / args.accumulate_gradients <add> args.train_b...
2
Ruby
Ruby
make logger a singleton on the class
a6fd462a8019f0be512bcba7ce5b9f9e482c7f8e
<ide><path>activesupport/lib/active_support/log_subscriber.rb <ide> class LogSubscriber <ide> mattr_accessor :colorize_logging <ide> self.colorize_logging = true <ide> <del> class_attribute :logger <del> <ide> class << self <del> remove_method :logger <ide> def logger <ide> @logger ||...
1
Javascript
Javascript
convert anonymous function to arrow function
fcc3910dd4578c65e24567b45a3a4097106c4625
<ide><path>test/parallel/test-http-write-head-2.js <ide> const http = require('http'); <ide> res.end(); <ide> })); <ide> <del> server.listen(0, common.mustCall(function() { <add> server.listen(0, common.mustCall(() => { <ide> http.get({ port: server.address().port }, common.mustCall((res) => { <ide> ...
1
Go
Go
increase default connection timeout to 30s
f5e6f50a1ef193c1f3f5736829a0284c8f96a661
<ide><path>registry/registry.go <ide> func newClient(jar http.CookieJar, roots *x509.CertPool, certs []tls.Certificate <ide> switch timeout { <ide> case ConnectTimeout: <ide> httpTransport.Dial = func(proto string, addr string) (net.Conn, error) { <del> // Set the connect timeout to 5 seconds <del> d := net.Dia...
1
Javascript
Javascript
use var for consistency
f3ed73d26ab9ff99e966d40707028222754dd6b5
<ide><path>rollup-examples.config.js <del>const path = require( 'path' ); <del>const fs = require( 'fs' ); <add>var path = require( 'path' ); <add>var fs = require( 'fs' ); <ide> <ide> // Creates an rollup config object for the given file to <ide> // be output to umd format <ide> function createOutput( file ) { <ide> ...
1
Java
Java
fix typo in javadoc
891d41c005d69f9016ccc35a52dc2e99c9da34a0
<ide><path>spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java <ide> public void setMaxAge(Long maxAge) { <ide> } <ide> <ide> /** <del> * Return the configure maxAge value, possibly {@code null}. <add> * Return the configured maxAge value, possibly {@code null}. <ide> */ <ide> public Lo...
1
Javascript
Javascript
keep the parsed comments along with the ast
fe0c8cafb3a132064e5f0878d7cced39ce53ee8f
<ide><path>lib/Parser.js <ide> var POSSIBLE_AST_OPTIONS = [{ <ide> }] <ide> <ide> Parser.prototype.parse = function parse(source, initialState) { <del> var ast; <add> var ast, comments = []; <ide> for(var i = 0; i < POSSIBLE_AST_OPTIONS.length; i++) { <ide> if(!ast) { <ide> try { <add> comments.length = 0; <a...
2
PHP
PHP
present tense and fix tests
0ef29152f4fc8e0e768a847e60fb3850013bbb9f
<ide><path>src/TestSuite/Constraint/Response/CookieEncryptedEquals.php <ide> public function matches($other) <ide> */ <ide> public function toString() <ide> { <del> return sprintf('was encrypted in cookie \'%s\'', $this->cookieName); <add> return sprintf('is encrypted in cookie \'%s\'', $this...
2
Go
Go
redact secret data on "secret create"
3fbc352cbbce06cd3001d6b14b2b1ebcb4d42cd5
<ide><path>api/server/middleware/debug.go <ide> func DebugRequestMiddleware(handler func(ctx context.Context, w http.ResponseWri <ide> <ide> var postForm map[string]interface{} <ide> if err := json.Unmarshal(b, &postForm); err == nil { <del> maskSecretKeys(postForm) <add> maskSecretKeys(postForm, r.RequestURI)...
2
PHP
PHP
add "notexists" method to query builder
af4eebebc748f3f7e969d64b3e5342a16f0b6eaf
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function exists() <ide> return false; <ide> } <ide> <add> /** <add> * Determine if no rows exist for the current query. <add> * <add> * @return bool <add> */ <add> public function notExists() <add> { <add> ret...
2
Text
Text
update translation for chinese
7bbe27b5d112582293b43720f0e6ed8a3d2d0f5d
<ide><path>guide/chinese/bash/bash-cat/index.md <ide> --- <ide> title: Bash Cat <del>localeTitle: 猛击猫 <del>--- <ide>## 猛击猫 <del> <del>Cat是Unix操作系统中最常用的命令之一。 <del> <del>Cat用于按顺序读取文件并将其打印到标准输出。 这个名字是从它的功能,骗子**猫** enate文件导出。 <del> <del>### 用法 <del> <del>```bash <del>cat [options] [file_names] <del>``` <del> <del>最常用的选项: ...
1
PHP
PHP
apply fixes from styleci
f3b7651bd0ea0fcd4261c4669aadf1d1d5d5382f
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function offsetSet($key, $value) <ide> /** <ide> * Unset the item at a given offset. <ide> * <del><<<<<<< HEAD <add> * <<<<<<< HEAD <add> * <ide> * @param TKey $key <del>======= <add> * ======= <ide> ...
1
Ruby
Ruby
remove some documentation cruft on has_many
ef1297d896f6ee12b8d6d31d44d2a45f61f1a667
<ide><path>activerecord/lib/active_record/associations.rb <ide> module ClassMethods <ide> # 'FROM people p, post_subscriptions ps ' + <ide> # 'WHERE ps.post_id = #{id} AND ps.person_id = p.id ' + <ide> # 'ORDER BY p.first_name' <del> # <del> # Specifying the :through optio...
1
PHP
PHP
fix failing tests
83a54a91249e0eb3f81bd45bf5564e6f459753a5
<ide><path>src/ORM/Table.php <ide> public function __debugInfo() { <ide> 'table' => $this->table(), <ide> 'alias' => $this->alias(), <ide> 'entityClass' => $this->entityClass(), <del> 'associated' => $this->_associated->keys(), <add> 'associations' => $this->_associations->keys(), <ide> 'behaviors' => $...
2
Python
Python
prepare changes for v3.6.1 release
d98974ae140065def70c4bdca8297886a5146b0c
<ide><path>libcloud/__init__.py <ide> <ide> __all__ = ["__version__", "enable_debug"] <ide> <del>__version__ = "3.6.1-dev" <add>__version__ = "3.6.1" <ide> <ide> <ide> def enable_debug(fo):
1
PHP
PHP
pass cachemetadata option through to collection
463918b89dc0a06f8c2ec7aa78d1086c8657757d
<ide><path>src/Database/Schema/Collection.php <ide> public function __construct(Connection $connection) { <ide> $config = $this->_connection->config(); <ide> <ide> if (!empty($config['cacheMetadata'])) { <del> $this->cacheMetadata(true); <add> $this->cacheMetadata($config['cacheMetadata']); <ide> } <ide> } ...
1
Python
Python
skip flaky test_tf_question_answering
20fc18fbda3669c2f4a3510e0705b2acd54bff07
<ide><path>tests/test_pipelines.py <ide> def test_question_answering(self): <ide> self._test_multicolumn_pipeline(nlp, valid_samples, invalid_samples, mandatory_output_keys) <ide> <ide> @require_tf <add> @unittest.skip("This test is failing intermittently. Skipping it until we resolve.") <ide> d...
1
Go
Go
remove remaining registry methods from dockercli
1dd46e06444d1a0c73fc88dfccec4ae0b7f10bf6
<ide><path>cli/command/container/create.go <ide> func pullImage(ctx context.Context, dockerCli *command.DockerCli, image string, <ide> return err <ide> } <ide> <del> authConfig := dockerCli.ResolveAuthConfig(ctx, repoInfo.Index) <add> authConfig := command.ResolveAuthConfig(ctx, dockerCli, repoInfo.Index) <ide> en...
13
Javascript
Javascript
fix var redeclarations in test-fs-*
754bcff73ee06553f4183fd7871cf97e40e7b084
<ide><path>test/parallel/test-fs-utimes.js <ide> function stat_resource(resource) { <ide> } <ide> <ide> function check_mtime(resource, mtime) { <del> var mtime = fs._toUnixTimestamp(mtime); <add> mtime = fs._toUnixTimestamp(mtime); <ide> var stats = stat_resource(resource); <ide> var real_mtime = fs._toUnixTimes...
2
Python
Python
replace false parameter by a buffer
c8ed1b8b59d4b074c7cca8605b6be97636f54318
<ide><path>src/transformers/models/m2m_100/modeling_m2m_100.py <ide> def make_weights(self, num_embeddings: int, embedding_dim: int, padding_idx: Opt <ide> # in forward put the weights on the correct dtype and device of the param <ide> emb_weights = emb_weights.to(dtype=self.weights.dtype, devic...
2
Text
Text
realign indentation and checkstyle of bracket
30b630b5b7294354f26c2887b60fd9e40f05e0b2
<ide><path>guide/english/cplusplus/vector/index.md <ide> int main(){ <ide> } <ide> ``` <ide> In C++11, you can also sort with lambda function, which can be useful. <del>```cpp11 <del>#include<bits/stdc++.h> <add>```cpp <add>#include <bits/stdc++.h> <ide> using namespace std; <ide> <del>int main() <del>{ <add>int main(...
1
Python
Python
handle inplace build option for numscons
33e34091563f318ef373a2e48a05432f38081cef
<ide><path>numpy/distutils/command/scons.py <ide> class scons(old_build_ext): <ide> user_options = old_build_ext.user_options + \ <ide> [('jobs=', None, <ide> "specify number of worker threads when executing scons"), <add> ('inplace', 'i', 'If specified, build in place.'), <ide...
1
Ruby
Ruby
add todos based on review call
7362459d60b9070dce0a5dcbe67f26a5e511d5ca
<ide><path>app/controllers/action_mailroom/inbound_emails_controller.rb <ide> # TODO: Add access protection using basic auth with verified tokens. Maybe coming from credentials by default? <add># TODO: Spam/malware catching? <add># TODO: Specific bounces for SMTP good citizenship: 200/404/400 <ide> class ActionMailroom...
2
Python
Python
fix .iteritems() access in flask.sessions
135c53a5f2f990512d2be348dc16ef719233a314
<ide><path>flask/sessions.py <ide> from werkzeug.http import http_date, parse_date <ide> from werkzeug.datastructures import CallbackDict <ide> from . import Markup, json <add>from ._compat import iteritems, text_type <ide> <ide> from itsdangerous import URLSafeTimedSerializer, BadSignature <del>import six <ide> <ide...
1
PHP
PHP
use dispatchesjobs in dispatchescommands
9b0b8e87ce000336b1dad57bba61d2a946de916a
<ide><path>src/Illuminate/Foundation/Bus/DispatchesCommands.php <ide> use ArrayAccess; <ide> <ide> /** <del> * @deprecated since version 5.1. Use the DispatchesJobs trait instead. <add> * @deprecated since version 5.1. Use the DispatchesJobs trait directly. <ide> */ <ide> trait DispatchesCommands { <ide> <del> /** <...
1
Text
Text
add imyller to collaborators
2804518174b806da345f0924642c3f04fc39c30e
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Wyatt Preul** &lt;wpreul@gmail.com&gt; <ide> * [iarna](https://github.com/iarna) - <ide> **Rebecca Turner** &lt;me@re-becca.org&gt; <add>* [imyller](https://github.com/imyller) - <add>**Ilkka Myller** &lt;ilkka.myller@n...
1
Text
Text
add a sample to clarify animation callback
60828566a759dc579dbae1d76a8426e1e479166e
<ide><path>docs/animated.md <ide> In most cases, you will be using `timing()`. By default, it uses a symmetric eas <ide> <ide> Animations are started by calling `start()` on your animation. `start()` takes a completion callback that will be called when the animation is done. If the animation finished running normally,...
1
Javascript
Javascript
remove `install` command
a21e226b68b1a7224cf6f8925dac6ac2bee80e40
<ide><path>local-cli/__tests__/install-test.js <del>'use strict'; <del> <del>jest.dontMock('../install'); <del>jest.dontMock('fs'); <del>jest.dontMock('path'); <del> <del>var install = require('../install.js'); <del> <del>var openingReactTag = '#<React-Native>'; <del>var closingReactTag = '#</React-Native>'; <del> <del...
3
Go
Go
add integration tests for encrypted swarm
8b1f72ad44f03d4786cb3e881b480c94a143885f
<ide><path>integration-cli/daemon.go <ide> func (d *Daemon) getBaseDeviceSize(c *check.C) int64 { <ide> // Cmd will execute a docker CLI command against this Daemon. <ide> // Example: d.Cmd("version") will run docker -H unix://path/to/unix.sock version <ide> func (d *Daemon) Cmd(args ...string) (string, error) { <del> ...
2
PHP
PHP
add hasany() method to request
bec5df0410516ceb62d5d4acd7db6927dbdca675
<ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php <ide> public function has($key) <ide> return true; <ide> } <ide> <add> /** <add> * Determine if the request contains any of the given inputs. <add> * <add> * @param dynamic $key <add> * @return bool <add> */ <add> pu...
2
PHP
PHP
add test cases
66211ebed5a737e2c21fa94a43440ab456245e79
<ide><path>src/View/Helper/HtmlHelper.php <ide> public function link($title, $url = null, array $options = []): string <ide> * over value of `escape`) <ide> * - `confirm` JavaScript confirmation message. <ide> * <del> * @param string|array $title The content to be wrapped by `<a>` tags. <del> *...
4
Go
Go
add benchmark tests for truncindex
84a76f27962d4f4b3871abe925ca17024bdeea73
<ide><path>utils/utils_test.go <ide> func assertIndexGet(t *testing.T, index *TruncIndex, input, expectedResult strin <ide> } <ide> } <ide> <add>func BenchmarkTruncIndexAdd(b *testing.B) { <add> ids := []string{"banana", "bananaa", "bananab"} <add> b.ResetTimer() <add> for i := 0; i < b.N; i++ { <add> index := NewTr...
1
Javascript
Javascript
remove trailing whitespace in new test
868a2c401fd75fd95c50dc25d531734d6443657e
<ide><path>test/jqLiteSpec.js <ide> describe('jqLite', function() { <ide> }; <ide> iframe_.src = "/base/test/fixtures/iframe.html"; <ide> jqLite(document).find('body').append(iframe); <del> <add> <ide> // This test is potentially flaky on CI cloud instances, so there is a generou...
1
Python
Python
add test for gzip loader
34f564a48d8530dc21fe59c13d35879fd6808bf7
<ide><path>numpy/lib/tests/test_io.py <ide> def test_recfromcsv(self): <ide> self.failUnless(isinstance(test, np.recarray)) <ide> assert_equal(test, control) <ide> <add>def test_gzip_load(): <add> import gzip <add> from StringIO import StringIO <ide> <add> a = np.random.random((5, 5)) <add> <...
1
Ruby
Ruby
remove unnecessary setup and teardown
4d9e4ea47ac2e48960bf901d9eeb6731ab39a507
<ide><path>actionmailer/test/mail_layout_test.rb <ide> def logout <ide> end <ide> <ide> class LayoutMailerTest < ActiveSupport::TestCase <del> def setup <del> set_delivery_method :test <del> ActionMailer::Base.perform_deliveries = true <del> ActionMailer::Base.deliveries.clear <del> end <del> <del> def tea...
1
Python
Python
add inbetween print statement
70a95045603827fa2ca582128450702c67a89ab9
<ide><path>examples/pipeline/multi_processing.py <ide> def main(output_dir, model='en_core_web_sm', n_jobs=4, batch_size=1000, <ide> print("Loading IMDB data...") <ide> data, _ = thinc.extra.datasets.imdb() <ide> texts, _ = zip(*data[-limit:]) <add> print("Processing texts...") <ide> partitions = par...
1
Text
Text
apply suggestions from code review
0fed05a7522797f256086d0b042fc0702cec6a4e
<ide><path>docs/Homebrew-brew-Maintainer-Guide.md <ide> reports are available to Homebrew maintainers on [buildpulse.io](https://buildpu <ide> summaries are published to [`#buildpulse-health`](https://machomebrew.slack.com/archives/C0268BSJBJ8) in Slack. <ide> <ide> BuildPulse can be used as a guide to identify which ...
1
Text
Text
correct the typo "wether"
d9059ceb2482b29b91fe9cc0ad67bc5f3045a312
<ide><path>guide/english/algorithms/flood-fill/index.md <ide> next. <ide> The problem is pretty simple and usually follows these steps: <ide> <ide> 1. Take the position of the starting point. <del> 2. Decide wether you want to go in 4 directions (**N, S, W, E**) or 8 directions (**N, S, W, E, NW, NE, SW, SE**). <ad...
1
Javascript
Javascript
correct function extensions
c6a52be3da2d035c149ef65ebc6ca92baab56fb9
<ide><path>packages/ember-runtime/lib/ext/function.js <ide> <ide> import { ENV } from 'ember-environment'; <ide> import { <add> on, <ide> computed, <ide> observer <ide> } from 'ember-metal'; <ide> import { assert, deprecateFunc } from 'ember-debug'; <ide> <del>const a_slice = Array.prototype.slice; <ide> const F...
1
Python
Python
add resnet56 cpu benchmark and accuracy tests.
f21337b1a88559f0866509aaf37bcb19716cd678
<ide><path>official/resnet/keras/keras_cifar_benchmark.py <ide> def benchmark_1_gpu(self): <ide> FLAGS.enable_eager = True <ide> self._run_and_report_benchmark() <ide> <add> def benchmark_cpu(self): <add> """Test keras based model on CPU.""" <add> self._setup() <add> FLAGS.num_gpus = 0 <add> FLAGS...
1
Text
Text
add 2.15.1 to changelog.md
9a6b038d303ade2f643ad0499054457403f86294
<ide><path>CHANGELOG.md <ide> - [#15528](https://github.com/emberjs/ember.js/pull/15528) [DEPRECATION] Deprecate `Controller#content` alias. <ide> - [#15552](https://github.com/emberjs/ember.js/pull/15552) [FEATURE] Update blueprints and tests to RFC #176. <ide> <add>### 2.15.1 (October 2, 2017) <add> <add>- [#15600](...
1
Javascript
Javascript
fix breakage on chrome 73
1aa70297edd063e397a250f6dcbfe53524abebd8
<ide><path>examples/js/vr/HelioWebXRPolyfill.js <ide> if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) { <ide> <ide> // WebXRManager - xrFrame.getPose() Polyfill - line 259 <ide> <del> const tempGetPose = frame.getPose.bind( frame ); <add> const tempGetPose = (isHelio96 ? null ...
1
Ruby
Ruby
add gtk-doc 1.31
3a6a75ac0e5af4c9069fce67d260662e6784eb70
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_specs <ide> libart 2.3.21 <ide> pygtkglext 1.1.0 <ide> gtk-mac-integration 2.1.3 <add> gtk-doc 1.31 <ide> ].each_slice(2).to_a.map do |formula, version| <ide> [formula, version.split(".")[0..1].join(".")] <ide> ...
1
Text
Text
add readme for the daemonconfig directory
8dfd4b677b60bc2b5de0214bb3cef1a04da12bed
<ide><path>daemonconfig/README.md <add>This directory contains code pertaining to the configuration of the docker deamon <add> <add>These are the configuration settings that you pass to the docker daemon when you launch it with say: `docker -d -e lxc`
1
Python
Python
fix issues in layer conversion interfaces
7696a139956577fd0f5b527698341d2c4d9e90eb
<ide><path>keras/legacy/interfaces.py <ide> def wrapper(*args, **kwargs): <ide> raise TypeError('Layer `' + layer_name + <ide> '` can accept only ' + <ide> str(len(allowed_positional_args)) + <del> ' positiona...
1
Ruby
Ruby
improve template#inspect output
dcb13470991539ab581e02670738900c39976ff4
<ide><path>actionview/lib/action_view/template.rb <ide> def refresh(view) <ide> end <ide> end <ide> <add> def short_identifier <add> @short_identifier ||= defined?(Rails.root) ? identifier.sub("#{Rails.root}/", "") : identifier <add> end <add> <ide> def inspect <del> @inspect ||= defined?...
2
Javascript
Javascript
ensure code sample is not escaped
2b6c2c5fbd74fca14eb454b6f12f3e3e45be733c
<ide><path>src/ng/compile.js <ide> function directiveNormalize(name) { <ide> * element attributes. The values reflect current binding state `{{ }}`. The normalization is <ide> * needed since all of these are treated as equivalent in Angular: <ide> * <add> * ``` <ide> * <span ng:bind="a" ng-bind="a" data-ng-bind=...
1
Javascript
Javascript
add p() like in ruby
de6036669d37b16fc9d169ff6f0eabd0c3f9b5b5
<ide><path>src/file.js <ide> stdin.fd = File.STDIN_FILENO; <ide> this.puts = function (data, callback) { <ide> stdout.puts(data, callback); <ide> } <add> <add>this.p = function (data, callback) { <add> puts(JSON.stringify(data), callback); <add>} <ide><path>test/test_http.js <del>puts(JSON.stringify({hello: "world"}...
2
Go
Go
fix filemode (staticcheck)
e92e0d358a98945dd9aa1d59e28257a056cc065c
<ide><path>pkg/filenotify/poller_test.go <ide> func TestPollerEvent(t *testing.T) { <ide> default: <ide> } <ide> <del> if err := ioutil.WriteFile(f.Name(), []byte("hello"), 0644); err != nil { <add> if err := ioutil.WriteFile(f.Name(), []byte("hello"), 0600); err != nil { <ide> t.Fatal(err) <ide> } <add> assertFi...
1
Python
Python
make printed errors from approx_array_* better
c47e6cb2d885c753ece0667fa3f5fad74668e314
<ide><path>numpy/testing/utils.py <ide> def build_err_msg(arrays, err_msg, header='Items are not equal:', <ide> r = repr(a) <ide> except: <ide> r = '[repr failed]' <del> r = r[:100] <add> if r.count('\n') > 3: <add> r = '\n'.join(r.splitli...
1
Text
Text
show love to contributors
eeb9635ffa8f04001f8c22b285feedcbd87f6e46
<ide><path>CONTRIBUTING.md <ide> Please note that *we only accept bug reports here*. No feature requests or quest <ide> If you have a question about how to use Ruby on Rails, [ask the Rails mailing list](https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk). <ide> <ide> If you have a change or new featu...
1
Python
Python
use make_tempdir instead
0efb7413f9642608fcd295f1aad740154dc3744a
<ide><path>spacy/tests/test_misc.py <ide> <ide> from thinc.api import get_current_ops, NumpyOps, CupyOps <ide> <del>from .util import get_random_doc, make_named_tempfile <add>from .util import get_random_doc, make_tempdir <ide> <ide> <ide> @pytest.fixture <ide> def make_dummy_component( <ide> return DummyCompon...
2
Python
Python
remove training arg
0b395f650aa8c95afb219553e8ca654b493660e3
<ide><path>official/nlp/modeling/models/seq2seq_transformer.py <ide> def get_config(self): <ide> "params": self.params, <ide> } <ide> <del> def call(self, inputs, training): <add> def call(self, inputs): <ide> """Calculate target logits or inferred target sequences. <ide> <ide> Args: <ide> def c...
1
Ruby
Ruby
help autotools with 10.13 sdk on 10.12
733d485065e55ad1cf159eec89927c4990bbdfaf
<ide><path>Library/Homebrew/extend/os/mac/extend/ENV/super.rb <ide> def setup_build_environment(formula = nil) <ide> self["SDKROOT"] = MacOS.sdk_path <ide> end <ide> <del> # Filter out symbols known not to be defined on 10.11 since GNU Autotools <del> # can't reliably figure this out with Xcode 8 on it...
1
Ruby
Ruby
remove nil as that is already expected behaviour
eca528ccccf2c73c6059fc821f756de7630c6251
<ide><path>Library/Homebrew/utils/github.rb <ide> def get_repo_license(user, repo) <ide> res = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") <ide> return unless res.key?("license") <ide> <del> res["license"]["spdx_id"] || nil <add> res["license"]["spdx_id"] <ide> rescue GitHub::HT...
1
Python
Python
convert env variable flags and fix ldshared
65687ff01c932b53d641fbe91b8d945d1a550744
<ide><path>numpy/distutils/fcompiler/__init__.py <ide> class FCompiler(CCompiler): <ide> compiler_f90 = ('exe.compiler_f90', 'F90', 'f90exec', None, False), <ide> compiler_fix = ('exe.compiler_fix', 'F90', 'f90exec', None, False), <ide> version_cmd = ('exe.version_cmd', None, None, None, False),...
2
Ruby
Ruby
use attr_accessor to suppress warning
43c39afb8f2b8026ac8fbdb1f8aa570f29a6e477
<ide><path>Library/Homebrew/superenv.rb <ide> def [] key <ide> fetch(key) <ide> elsif %w{CPPFLAGS CFLAGS LDFLAGS}.include? key <ide> class << (a = "") <del> attr :key, true <add> attr_accessor :key <ide> def + value <ide> ENV[key] = value <ide> end
1
Javascript
Javascript
allow eai_fail in test-http-dns-error.js
50364d98d97afd9e7dc3947c270c45ef64944a6f
<ide><path>test/parallel/test-http-dns-error.js <ide> const https = require('https'); <ide> const host = '*'.repeat(64); <ide> const MAX_TRIES = 5; <ide> <del>let errCode = 'ENOTFOUND'; <del>if (common.isOpenBSD) <del> errCode = 'EAI_FAIL'; <add>const errCodes = ['ENOTFOUND', 'EAI_FAIL']; <ide> <ide> function tryGet...
1
Javascript
Javascript
fix lint errors for examples/todos-with-undo/
3dface09761895b6e925f824d3ef7f42788372c5
<ide><path>examples/todos-with-undo/actions.js <del>export const ADD_TODO = 'ADD_TODO'; <del>export const COMPLETE_TODO = 'COMPLETE_TODO'; <del>export const SET_VISIBILITY_FILTER = 'SET_VISIBILITY_FILTER'; <add>export const ADD_TODO = 'ADD_TODO' <add>export const COMPLETE_TODO = 'COMPLETE_TODO' <add>export const SET_VI...
10
Python
Python
add quotes to printing strings
74b68e37a478ca5d6e515196af1108e9494a01f1
<ide><path>numpy/core/arrayprint.py <ide> def _array2string(a, max_line_width, precision, suppress_small, separator=' ', <ide> data.imag, precision, suppress_small, sign=1) <ide> format_function = lambda x: \ <ide> _formatComplex(x, real_format, imag_for...
1
Python
Python
enable specifying api version
141c177076f6ed7700344d0d65088fc2650e2c1a
<ide><path>libcloud/common/dimensiondata.py <ide> class DimensionDataConnection(ConnectionUserAndKey): <ide> allow_insecure = False <ide> <ide> def __init__(self, user_id, key, secure=True, host=None, port=None, <del> url=None, timeout=None, proxy_url=None, **conn_kwargs): <add> ...
2
Ruby
Ruby
improve command --help output
4ace1af297b633b1297a57650f5ca85c5aa9becb
<ide><path>Library/Homebrew/help.rb <ide> def help(cmd = nil, flags = {}) <ide> <ide> def command_help(path) <ide> # Let OptionParser generate help text for commands which have a parser defined <add> cmd = path.basename(path.extname) <add> cmd_args_method_name = "#{cmd.to_s.tr("-", "_")}_args".to_s...
2
Ruby
Ruby
fix relocation of frameworks"
f59ad1c9e91b0d9d39287a51d1a3b009b622cec0
<ide><path>Library/Homebrew/keg_relocate.rb <ide> class Keg <ide> PREFIX_PLACEHOLDER = "".freeze <ide> CELLAR_PLACEHOLDER = "".freeze <ide> <del> # Matches framework references like `XXX.framework/Versions/YYY/XXX` and <del> # `XXX.framework/XXX`, both with or without a slash-delimited prefix. <del> FRAMEWORK_R...
1
Python
Python
use _umath_linalg for eigvals()
15a9c3b25c0aff2799c927ea9e602fc3c134d3fc
<ide><path>numpy/linalg/linalg.py <ide> def eigvals(a): <ide> <ide> Parameters <ide> ---------- <del> a : (M, M) array_like <add> a : (..., M, M) array_like <ide> A complex- or real-valued matrix whose eigenvalues will be computed. <ide> <ide> Returns <ide> ------- <del> w : (M,) ndar...
1
Go
Go
move user build test to integration-cli
360fb3d4ea192e28a4d2579589cd16954bb959c1
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildMaintainer(t *testing.T) { <ide> logDone("build - maintainer") <ide> } <ide> <add>func TestBuildUser(t *testing.T) { <add> checkSimpleBuild(t, <add> ` <add> FROM busybox <add> RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd <ad...
2
Python
Python
fix occasional test failure
abbce640d974049f6c2a2c701e80c2cf8c680f59
<ide><path>libcloud/test/compute/test_ec2.py <ide> def _RunInstances(self, method, url, body, headers): <ide> <ide> def _ex_user_data_RunInstances(self, method, url, body, headers): <ide> # test_create_node_with_ex_userdata <add> if url.startswith('/'): <add> url = url[1:] <add> <add> ...
1
Ruby
Ruby
initialize the right variable
7f7e2f12ab835526c6914843b983619ed12c9b68
<ide><path>railties/test/railties/railtie_test.rb <ide> class Foo < Rails::Railtie ; config.to_prepare { $to_prepare = true } ; end <ide> end <ide> <ide> test "railtie have access to application in before_configuration callbacks" do <del> $after_initialize = false <add> $before_configuration = false ...
1
PHP
PHP
add test for multiple=false input
3427600fb598559d80b9a78c56a58f12be8969d9
<ide><path>src/View/Helper/FormHelper.php <ide> protected function _magicOptions($fieldName, $options, $allowOverride) <ide> <ide> if ($allowOverride && substr($fieldName, -5) === '._ids') { <ide> $options['type'] = 'select'; <del> if ( (!isset($options['multiple']) || ($options['multipl...
2
Python
Python
remove comma that caused list to wrap in tuple!
06c25a888244e8520d5eeb2df8d5d86499325f48
<ide><path>spacy/lang/ga/tokenizer_exceptions.py <ide> <ide> "led'": [ <ide> {ORTH: "le", LEMMA: "le", NORM: "le", POS: ADP}, <del> {ORTH: "d'", LEMMA: "mo", NORM: "do", POS: DET}], <del> <add> {ORTH: "d'", LEMMA: "mo", NORM: "do", POS: DET}] <ide> } <ide> <ide> for exc_data in [ <ide> {...
1
Text
Text
add right model and tokenizer path in example
b88bda6af36cf3a22dfe69abb81fd3590062ac11
<ide><path>model_cards/mrm8488/xlm-multi-finetuned-xquadv1/README.md <ide> from transformers import pipeline <ide> <ide> qa_pipeline = pipeline( <ide> "question-answering", <del> model="mrm8488/bert-multi-uncased-finetuned-xquadv1", <del> tokenizer="bert-multi-uncased-finetuned-xquadv1" <add> model="mrm84...
1
Text
Text
add more info for timer.setinterval
4fc6ef53bc1e48d54eb885e7d4f12fdc0ab60718
<ide><path>doc/api/timers.md <ide> added: v15.9.0 <ide> --> <ide> <ide> Returns an async iterator that generates values in an interval of `delay` ms. <add>If `ref` is `true`, you need to call `next()` of async iterator explicitly <add>or implicitly to keep the event loop alive. <ide> <ide> * `delay` {number} The numb...
1
Mixed
Python
update nel examples and documentation
f67343295de38be3f88360f009e99de7eb2e199c
<ide><path>bin/wiki_entity_linking/README.md <del>## Entity Linking with Wikipedia and Wikidata <del> <del>### Step 1: Create a Knowledge Base (KB) and training data <del> <del>Run `wikidata_pretrain_kb.py` <del>* This takes as input the locations of a **Wikipedia and a Wikidata dump**, and produces a **KB directory*...
17
Java
Java
change methodnotallowedexception to use httpmethod
290e9bea14ee017519194254f763ea3572310734
<ide><path>spring-web/src/main/java/org/springframework/web/server/MethodNotAllowedException.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * yo...
5
Text
Text
fix arxiv links in readme of neural_gpu model
c015f6962e82379d7d4b887ece19be85066928b0
<ide><path>neural_gpu/README.md <ide> # NeuralGPU <del>Code for the Neural GPU model described in [[http://arxiv.org/abs/1511.08228]]. <del>The extended version was described in [[https://arxiv.org/abs/1610.08613]]. <add>Code for the Neural GPU model described in http://arxiv.org/abs/1511.08228. <add>The extended versi...
1
Ruby
Ruby
remove duplicated test
69b1716d2366fe425a21efaecace64c73fa4a5fc
<ide><path>railties/test/application/assets_test.rb <ide> class ::PostsController < ActionController::Base ; end <ide> assert_no_match(/<script src="\/assets\/xmlhr-([0-z]+)\.js"><\/script>/, last_response.body) <ide> end <ide> <del> test "assets aren't concatened when compile is true is on and debug_asse...
1
Javascript
Javascript
update copyright headers for 2015
3e0750a4ad2444c2df708b144ff0c8af7628881d
<ide><path>docs/_js/html-jsx.js <ide> /** <del> * Copyright 2013-2014, Facebook, Inc. <add> * Copyright 2013-2015, Facebook, Inc. <ide> * All rights reserved. <ide> * <ide> * This source code is licensed under the BSD-style license found in the <ide><path>grunt/config/browserify.js <ide> var LICENSE_TEMPLATE = <ide>...
283
Javascript
Javascript
replace var with let/const
00e22766d171f9914d2cff4608bffdd317c50e23
<ide><path>lib/internal/encoding.js <ide> const { <ide> encodeUtf8String <ide> } = internalBinding('buffer'); <ide> <del>var Buffer; <add>let Buffer; <ide> function lazyBuffer() { <ide> if (Buffer === undefined) <ide> Buffer = require('buffer').Buffer; <ide> const encodings = new Map([ <ide> // Unfortunately, ...
1
Go
Go
add test coverage for pkg/stringutils
6c36572e8b77bd7a4e8c1afa5be00fb4e7618c12
<ide><path>pkg/stringutils/stringutils_test.go <ide> func TestInSlice(t *testing.T) { <ide> t.Fatalf("Expected string notinslice not to be in slice") <ide> } <ide> } <add> <add>func TestShellQuoteArgumentsEmpty(t *testing.T) { <add> actual := ShellQuoteArguments([]string{}) <add> expected := "" <add> if actual != ex...
1
Python
Python
improve tokenization for ud dutch corpora
f4ef64a5264d4cd7f57059150cebeda388dd202d
<ide><path>spacy/lang/nl/__init__.py <ide> from .lex_attrs import LEX_ATTRS <ide> from .tag_map import TAG_MAP <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <del>from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES <add>from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_INFIXES <add>from .p...
3
Python
Python
resolve issue in init file
8852ee4d1bfd3f0eacf06679ce52dccf9d9a262a
<ide><path>glances/__init__.py <ide> import sys <ide> <ide> # Global name <del><<<<<<< HEAD <del>__version__ = '3.0.1_beta' <del>======= <del>__version__ = '3.0.1' <del>>>>>>>> hotfix/issue1314 <add>__version__ = '3.1.0_beta' <ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>' <ide> __license__ = 'LGPLv3' <id...
1
Javascript
Javascript
change streams to always emit close by default
f0d2df41f8716670435b284e987b2fcc23221947
<ide><path>lib/internal/fs/streams.js <ide> function ReadStream(path, options) { <ide> if (options.highWaterMark === undefined) <ide> options.highWaterMark = 64 * 1024; <ide> <del> // For backwards compat do not emit close on destroy. <del> if (options.emitClose === undefined) { <del> options.emitClose = fa...
2
PHP
PHP
add methods to change unfurl options
d923504dc66a3f88759cab2023abfaf715596d28
<ide><path>src/Illuminate/Notifications/Messages/SlackMessage.php <ide> class SlackMessage <ide> */ <ide> public $linkNames = 0; <ide> <add> /** <add> * Indicates if you want a preview of links inlined in the message. <add> * <add> * @var bool <add> */ <add> public $unfurlLinks = true; <...
1
Ruby
Ruby
handle uncommitted formulae."
e793e526611ca4cbc6d0155af8c596c4e826fc41
<ide><path>Library/Homebrew/formula_versions.rb <ide> def initialize(formula, options = {}) <ide> @repository = formula.tap.path <ide> @entry_name = @path.relative_path_from(repository).to_s <ide> @max_depth = options[:max_depth] <del> @current_formula = formula <ide> end <ide> <ide> def rev_list(br...
1
Text
Text
fix freebsd development dependencies
ce17492101b54dab8f3fa5934618679c9671f582
<ide><path>guides/source/development_dependencies_install.md <ide> use MariaDB instead (see [this announcement](https://www.archlinux.org/news/mari <ide> To install all run: <ide> <ide> ```bash <del>$ pkg install sqlite3 mysql80-client mysql80-server postgresql11-client postgresql11-server memcached imagemagick ffmpeg...
1
Javascript
Javascript
add option data to event callbacks
e4339bc51239fbef3d7bbd1b090a3e3cc0b2ef22
<ide><path>src/ngAnimate/animateQueue.js <ide> var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate <ide> join: [] <ide> }; <ide> <add> function getEventData(options) { <add> return { <add> addClass: options.addClass, <add> removeClass: options.removeClass, <add> fr...
2
Javascript
Javascript
destroy the instance since we don’t expose it
aad49ed20ba01f8235140977acf07e6a23a4789e
<ide><path>packages/ember-application/lib/system/application.js <ide> const Application = Engine.extend({ <ide> */ <ide> visit(url, options) { <ide> return this.boot().then(() => { <del> return this.buildInstance().boot(options).then((instance) => { <del> return instance.visit(url); <del> }); <...
1
Text
Text
add space after period
c28466a2a440eb10d8dd8f1fb9467eb3e1b1a0d9
<ide><path>doc/api/child_process.md <ide> spawn('prg', [], { stdio: ['pipe', null, null, null, 'pipe'] }); <ide> parent and child processes, and the child is a Node.js process, the child <ide> is launched with the IPC channel unreferenced (using `unref()`) until the <ide> child registers an event handler for the [`proc...
1
Text
Text
remove duplication section [ci skip]
b24b20c80ef55096d268bb49b8d4a3faf05843da
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Upgrading from Rails 4.2 to Rails 5.0 <ide> <ide> ToDo... <ide> <del>### Ruby 2.2.2+ <del> <del>ToDo... <del> <ide> ### Active Record models now inherit from ApplicationRecord by default <ide> <ide> In Rails 4.2 an Active Record model inherits from `ActiveRec...
1