content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
PHP
PHP
fix missing things
7c7c3bc4be3052afe0889fe323230dfd92f81000
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php <ide> public function morphMany($related, $name, $type = null, $id = null, $localKey = <ide> * @param string $table <ide> * @param string $foreignKey <ide> * @param string $relatedKey <add> * @param string $localKey <id...
3
PHP
PHP
make()
bd1d2e76ad20d43d7eaaa47394260ba1a7b66571
<ide><path>src/Illuminate/View/Environment.php <ide> public function make($view, $data = array(), $mergeData = array()) <ide> { <ide> $path = $this->finder->find($view); <ide> <del> $data = array_merge($this->parseData($data), $mergeData); <add> $data = array_merge($mergeData, $this->parseData($data)); <ide> <id...
1
Python
Python
add task to __all__ in celery.__init__.py
5af2a6598b908d80530258ebefc67d92dea1bd9e
<ide><path>celery/__init__.py <ide> # -eof meta- <ide> <ide> __all__ = ( <del> 'Celery', 'bugreport', 'shared_task', 'task', <add> 'Celery', 'bugreport', 'shared_task', 'task', 'Task', <ide> 'current_app', 'current_task', 'maybe_signature', <ide> 'chain', 'chord', 'chunks', 'group', 'signature', <ide> ...
1
Text
Text
improve documentation in "project" directory
fcdb1fbfa1e691bbdfb73a289ff84fbf6b26fad6
<ide><path>docs/sources/project/advanced-contributing.md <ide> The following provides greater detail on the process: <ide> This is a Markdown file that describes your idea. Your proposal <ide> should include information like: <ide> <del> * Why is this changed needed or what are the use cases? <add> * Why...
7
Text
Text
add note about sproutcore guides to the readme
8a9c1a68188af818a3874a7ecba7a7683c5d0389
<ide><path>README.md <ide> For new users, we recommend downloading the [SproutCore Starter Kit](https://git <ide> <ide> We also recommend that you check out the [annotated Todos example](http://annotated-todos.strobeapp.com/), which shows you the best practices for architecting an MVC-based web application. <ide> <ad...
1
Ruby
Ruby
add arrandale to list of core2 cpus
3299ffe5904bb5d0664c7fd77119556570dd7704
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def setup_build_environment <ide> # http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/i386-and-x86_002d64-Options.html <ide> if MACOS_VERSION >= 10.6 <ide> case Hardware.intel_family <del> when :nehalem, :penryn, :core2 <add> when :nehalem, :penryn, :cor...
1
Text
Text
remove extra changelog added by
a72bc8f0043d1dd43da2654e4b0d4c1585f9b420
<ide><path>activesupport/CHANGELOG.md <ide> <ide> *Tomas Valent* <ide> <del>* Return all mappings for a timezone identifier in `country_zones` <del> <del> Some timezones like `Europe/London` have multiple mappings in <del> `ActiveSupport::TimeZone::MAPPING` so return all of them instead <del> of the fi...
1
Ruby
Ruby
move extra stdenv setup to extended callback
d09e23c8b1df7404d95b963e53bef3d1936a921a
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def activate_extensions! <ide> extend(Superenv) <ide> else <ide> extend(HomebrewEnvExtension) <del> prepend 'PATH', "#{HOMEBREW_PREFIX}/bin", ':' unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/'bin' <ide> end <ide> end <ide> end <ide> module Hom...
1
PHP
PHP
shorten variable name
f35fd194e2789c7873783587d4c6bd9b92ded067
<ide><path>src/View/Form/ContextFactory.php <ide> class ContextFactory <ide> * <ide> * @var array <ide> */ <del> protected $contextProviders = []; <add> protected $providers = []; <ide> <ide> /** <ide> * Constructor. <ide> public static function createWithDefaults(array $providers = []) <...
1
Javascript
Javascript
lowerize the params to allow case sensitive
4623f202215597a21d87d027526182d002618f13
<ide><path>web/viewer.js <ide> var PDFView = { <ide> var params = {}; <ide> for (var i = 0, ii = parts.length; i < ii; ++i) { <ide> var param = parts[i].split('='); <del> var key = param[0]; <add> var key = param[0].toLowerCase(); <ide> var value = param.length > 1 ? param[1] : null; <ide>...
1
Java
Java
simplify conversion of databuffer to string
f17b0125ff8a93a996882915fdda4df85cba15f8
<ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java <ide> public DefaultDataBuffer capacity(int newCapacity) { <ide> if (newCapacity > oldCapacity) { <ide> ByteBuffer oldBuffer = this.byteBuffer; <ide> ByteBuffer newBuffer = allocate(newCapacity, oldBuffer.isDirect());...
10
Python
Python
remove unnecessary multiplication
dc6b8df8d1025c522a2877bb06547d143f481cc6
<ide><path>numpy/lib/function_base.py <ide> def angle(z, deg=0): <ide> 45.0 <ide> <ide> """ <del> if deg: <del> fact = 180/pi <del> else: <del> fact = 1.0 <ide> z = asarray(z) <ide> if (issubclass(z.dtype.type, _nx.complexfloating)): <ide> zimag = z.imag <ide> zreal ...
1
Python
Python
add missing driver argument to libclouderror class
c690a0efb333062e6ec3e79cfc86f4e131648868
<ide><path>libcloud/compute/drivers/vsphere.py <ide> def __init__(self, host, username, password, port=443, ca_cert=None): <ide> if 'connection refused' in error_message or 'is not a vim server' \ <ide> in error_message: <ide> raise Lib...
1
Ruby
Ruby
use relations to build uniqueness conditions
4a7a14b0e15e07dbc4e49cfdd0694c17f81cfad0
<ide><path>activerecord/lib/active_record/validations/uniqueness.rb <ide> def initialize(options) <ide> <ide> def validate_each(record, attribute, value) <ide> finder_class = find_finder_class_for(record) <add> table = finder_class.active_relation <add> <ide> table_name = record.class.qu...
1
Text
Text
update readme about where to put new chart types
f81d6f45e19da797def2709551ef2fde2d1c1a1d
<ide><path>README.md <ide> Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT <ide> <ide> When reporting bugs or issues, if you could include a link to a simple [jsbin](http://jsbin.com) or similar demonstrating the issue, that'd be really helpful. <ide> <del>This project is modular and ...
1
Ruby
Ruby
simplify client connection closing
662c064334638cfb783e2588c64342fe753f8c63
<ide><path>lib/action_cable/connection/base.rb <ide> def process <ide> @websocket.on(:close) do |event| <ide> logger.info "[ActionCable] #{finished_request_message}" <ide> <del> worker_pool.async.invoke(self, :cleanup_subscriptions) <del> worker_pool.async.invoke(self, :clea...
1
PHP
PHP
fix deprecation issue with translator
f6e9f54385f167a17b25445f8d855e754a4f50d6
<ide><path>src/Illuminate/Translation/Translator.php <ide> protected function makeReplacements($line, array $replace) <ide> $shouldReplace = []; <ide> <ide> foreach ($replace as $key => $value) { <del> $shouldReplace[':'.Str::ucfirst($key)] = Str::ucfirst($value); <del> $shouldRep...
2
Python
Python
update example scripts
3fd71c4431f2b31eaad737d364e4a4d9bf35fd5b
<ide><path>examples/distillation/distiller.py <ide> def __init__(self, <ide> self.last_log = 0 <ide> <ide> self.ce_loss_fct = nn.KLDivLoss(reduction='batchmean') <del> self.lm_loss_fct = nn.CrossEntropyLoss(ignore_index=-1) <add> self.lm_loss_fct = nn.CrossEntropyLoss(ignore_index=-100) <...
2
Ruby
Ruby
fix actionmailer test issues
1e4be20672252ac15a355589dd44bdd4623640c4
<ide><path>actionmailer/test/old_base/mail_service_test.rb <ide> def setup <ide> <ide> @original_logger = TestMailer.logger <ide> @recipient = 'test@localhost' <add> <add> TestMailer.delivery_method = :test <ide> end <ide> <ide> def teardown <ide> def test_should_still_raise_exception_with_expected_mes...
1
Ruby
Ruby
change numericaly validator to use round
6657e3428b1dff30df78b42c1304dde35fc4de4a
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> def parse_as_number(raw_value, precision, scale, option = nil) <ide> raw_value if raw_value.is_a?(Range) <ide> elsif raw_value.is_a?(Float) <ide> parse_float(raw_value, precision, scale) <add> elsif raw_value.is...
3
Text
Text
add zerodha to airflow users list
fc5390dcd27734a8b3ec28109db273e4ca25fa31
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Zego](https://www.zego.com/) [[@ruimffl](https://github.com/ruimffl), [@james-welly](https://github.com/james-welly), [@ken-payne](https://github.com/ken-payne)] <ide> 1. [Zendesk](https://www.github.com/zendesk) <ide> 1. [Zenly](https://zen.l...
1
Text
Text
fix typo in upgrading_ruby_on_rails.md
9e18326de8d532718d46dc9437188af0d06ace1c
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> FFmpeg v3.4+. <ide> <ide> For new apps, image transformation will use libvips instead of ImageMagick. This will reduce <ide> the time taken to generate variants as well as CPU and memory usage, improving response <del>times in apps that rely on active storage t...
1
Text
Text
add license information to model cards
55adefe42813d68338d0f6b8b777eb2e2097d747
<ide><path>model_cards/albert-base-v1-README.md <ide> --- <ide> tags: <ide> - exbert <add> <add>license: apache-2.0 <ide> --- <ide> <ide> <a href="https://huggingface.co/exbert/?model=albert-base-v1"> <ide><path>model_cards/albert-xxlarge-v2-README.md <ide> --- <ide> tags: <ide> - exbert <add> <add>license: apache-2.0...
34
Mixed
Javascript
add deep linking support to intentandroid
eb188c8d98fa08686c6b9335e3dcbefe3f524b7e
<ide><path>Libraries/Components/Intent/IntentAndroid.android.js <ide> var invariant = require('invariant'); <ide> /** <ide> * `IntentAndroid` gives you a general interface to handle external links. <ide> * <add> * ### Basic Usage <add> * <add> * #### Handling deep links <add> * <add> * If your app was launched from a...
2
Ruby
Ruby
fix args for --installed with no formula
4cfd80451a28977a8621fcedfd2ffdcc9f82f734
<ide><path>Library/Homebrew/cmd/deps.rb <ide> def deps <ide> if args.no_named? <ide> raise FormulaUnspecifiedError unless args.installed? <ide> <del> puts_deps sorted_dependents(Formula.installed + Cask::Caskroom.casks), recursive <add> puts_deps sorted_dependents(Formula.installed + Cask::Caskroom...
1
Go
Go
add new df subcomand to the system command
b650a7bd27dcdbb4cddbfdc2cf62f41b5a8e8652
<ide><path>cli/command/formatter/container.go <ide> const ( <ide> statusHeader = "STATUS" <ide> portsHeader = "PORTS" <ide> mountsHeader = "MOUNTS" <add> localVolumes = "LOCAL VOLUMES" <ide> ) <ide> <ide> // NewContainerFormat returns a Format for rendering using a Context <ide> func (c *contai...
8
PHP
PHP
remove use of file in loadtask
470274f8673cd2475caa8a3d835baa2d1ab4089d
<ide><path>src/Shell/Task/LoadTask.php <ide> <ide> use Cake\Console\ConsoleOptionParser; <ide> use Cake\Console\Shell; <del>use Cake\Filesystem\File; <ide> <ide> /** <ide> * Task for loading plugins. <ide> protected function makeOptions(): string <ide> */ <ide> protected function modifyApplication(string $a...
1
PHP
PHP
add ormdelete option to treebehavior
f7525df84fb966770b0c58c010723c9b85cd90c3
<ide><path>src/ORM/Behavior/TreeBehavior.php <ide> class TreeBehavior extends Behavior <ide> 'scope' => null, <ide> 'level' => null, <ide> 'recoverOrder' => null, <add> 'enableOrmDelete' => false, <ide> ]; <ide> <ide> /** <ide> public function beforeDelete(EventInterface $event, ...
4
Javascript
Javascript
convert jsonpmaintemplateplugin to use .tap
ad10141c381d7ad2af25b47d9b328f4f1d0c8e61
<ide><path>lib/web/JsonpMainTemplatePlugin.js <ide> class JsonpMainTemplatePlugin { <ide> return otherChunksInEntry || onDemandChunks; <ide> }; <ide> // TODO refactor this <del> if(!mainTemplate.hooks.jsonpScript) <add> if(!mainTemplate.hooks.jsonpScript) { <ide> mainTemplate.hooks.jsonpScript = new SyncWat...
1
Java
Java
fix arraystoreexception reading subclassed enums
8abe949734414e91e204d14e381be7f922f2dfc3
<ide><path>spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationAttributesReadingVisitor.java <ide> <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <del> <ide> import org.springframework.asm.AnnotationVisitor; <ide> import org.springframework.a...
2
Javascript
Javascript
avoid use of arguments
1e21d05632fe75322f158df984df80c44132bcdb
<ide><path>lib/buffer.js <ide> Buffer.prototype.copy = function(target, targetStart, sourceStart, sourceEnd) { <ide> return binding.copy(this, target, targetStart, sourceStart, sourceEnd); <ide> }; <ide> <del>Buffer.prototype.toString = function() { <add>Buffer.prototype.toString = function(encoding, start, end) { <...
1
Ruby
Ruby
add schema cache tests
c1a215a06b7b8202dbb4f090bf7eefb661bf438a
<ide><path>railties/test/application/rake/dbs_test.rb <ide> def db_schema_dump <ide> db_schema_dump <ide> end <ide> <add> def db_schema_cache_dump(filename = "db/schema_cache.yml") <add> Dir.chdir(app_path) do <add> rails "db:schema:cache:dump" <add> <add> cache_size = lambd...
2
Javascript
Javascript
allow alternate clicks for href handling - fixes
e668276a3aab382e145c3bc7afd059a9a6438534
<ide><path>packages/ember-application/tests/system/action_url_test.js <ide> test("it sets an URL with a context", function() { <ide> <ide> ok(view.$().html().match(/href=['"].*\/dashboard\/1['"]/), "The html (" + view.$().html() + ") has the href /dashboard/1 in it"); <ide> }); <add> <add>test("it does not trigger a...
3
Text
Text
fix typo in buffer api
74562356db6964f8057ef4bd897725793e55d513
<ide><path>doc/api/buffer.md <ide> elements, and not as a byte array of the target type. That is, <ide> `[0x1020304]` or `[0x4030201]`. <ide> <ide> It is possible to create a new `Buffer` that shares the same allocated memory as <del>a [`TypedArray`] instance by using the `TypeArray` object's `.buffer` property. <a...
1
PHP
PHP
fix typo in oauth
304d6f8e24491ad46ddaeb2ff2a643aeac4d45e9
<ide><path>lib/Cake/Network/Http/Auth/Oauth.php <ide> protected function _normalizedParams($request, $oauthValues) { <ide> * @return string <ide> */ <ide> protected function _buildAuth($data) { <del> $out = 'Oauth '; <add> $out = 'OAuth '; <ide> $params = []; <ide> foreach ($data as $key => $value) { <ide> ...
2
PHP
PHP
update task.php
6bdc08511762479189a1046a3ea7f413216a412a
<ide><path>src/Illuminate/Console/View/Components/Task.php <ide> public function render($description, $task = null, $verbosity = OutputInterface: <ide> throw $e; <ide> } finally { <ide> $runTime = $task <del> ? (' '.number_format((microtime(true) - $startTime) * 1000, 2).'...
1
PHP
PHP
fix cs errors
c952214a8901a02a340a3981d51cbfc64c5a982f
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testJoinReadMode() <ide> ->from('articles') <ide> ->join(['authors' => [ <ide> 'type' => 'INNER', <del> 'conditions' => ['articles.author_id = authors.id'] <add> 'conditions' => [...
4
Javascript
Javascript
pass env vars through to test-benchmark-http
eef94a8bf827b98cd27e8aaab6bb20791a46bace
<ide><path>test/sequential/test-benchmark-http.js <ide> const path = require('path'); <ide> <ide> const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); <ide> <add>const env = Object.assign({}, process.env, <add> { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); <add> <ide> const child =...
1
Python
Python
get printing of nas to work a little bit better
0cc2e75cd160c44dba1dbcadfb530cfbe7d0cf98
<ide><path>numpy/core/arrayprint.py <ide> def __call__(self, x, strip_zeros=True): <ide> import numeric as _nc <ide> err = _nc.seterr(invalid='ignore') <ide> try: <del> if isnan(x): <add> if isna(x): <add> return str(x) <add> elif isnan(x): <ide> ...
2
Text
Text
fix a typo in changelog_v15
02e60a61ea6ffc474e533b0787a1ef83f3731141
<ide><path>doc/changelogs/CHANGELOG_V15.md <ide> The V8 JavaScript engine has been updated to V8 8.6 (V8 8.4 is the latest availa <ide> * [[`7ecb285842`](https://github.com/nodejs/node/commit/7ecb285842)] - **src**: make code cache test work with snapshots (Joyee Cheung) [#32984](https://github.com/nodejs/node/pull/329...
1
Ruby
Ruby
fix keyonlyreason property access
b752efbd37d75f58e423a86a05476b248031c374
<ide><path>Library/Homebrew/cmd/link.rb <ide> def link <ide> if keg_only <ide> if Homebrew.default_prefix? <ide> f = keg.to_formula <del> if f.keg_only_reason.reason.by_macos? <add> if f.keg_only_reason.by_macos? <ide> caveats = Caveats.new(f) <ide> opoo...
1
Text
Text
add translation of algorithm and data structures
306e4aaacfc278d099053f116d1799b6bb7fa6aa
<ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/boo-who.md <ide> --- <ide> id: a77dbc43c33f39daa4429b4f <del>title: 嘘谁 <add>title: 基本类型布尔值的检查 <ide> challengeType: 5 <del>videoUrl: '' <add>forumTopicId: 16000 <ide> --- <ide> <ide> # --description-- <ide> ...
62
Ruby
Ruby
replace find_all + each with grep
177eee419a455c3fc759d6a75c392f30be50a4dc
<ide><path>Library/Homebrew/extend/set.rb <ide> def add new <ide> # smileys only <ide> return super new unless new.respond_to? :> <ide> <del> objs = find_all { |o| o.class == new.class } <del> objs.each do |o| <add> grep(new.class) do |o| <ide> return self if o > new <ide> delete o <ide> ...
1
Text
Text
add arcelement to getting-started.md
3c79d104d97aa7ed25ba4e9fc134809078a2f324
<ide><path>docs/docs/getting-started/integration.md <ide> var myChart = new Chart(ctx, {...}); <ide> <ide> Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use. <ide> <add>For all available imports see the example below. <ide> ```ja...
1
Javascript
Javascript
remove log and verify lint
98bb0d40def09927fec538c8e282c564cf361954
<ide><path>script/lib/verify-machine-requirements.js <ide> const path = require('path'); <ide> const CONFIG = require('../config'); <ide> <ide> module.exports = function(ci) { <del> console.log('------') <del> console.log(ci) <del> console.log('------') <ide> verifyNode(); <ide> verifyNpm(ci); <ide> if (proce...
1
Text
Text
add changelogs for dgram
fb9572bf61f341f405d785800f6e3a3f520db264
<ide><path>doc/api/dgram.md <ide> chained. <ide> ### socket.send(msg, [offset, length,] port [, address] [, callback]) <ide> <!-- YAML <ide> added: v0.1.99 <add>changes: <add> - version: v6.0.0 <add> pr-url: https://github.com/nodejs/node/pull/5929 <add> description: On success, `callback` will now be called wit...
1
Python
Python
fix indentation of _utils
cbecc96b62477890174ae91433c4c9c28cc7765b
<ide><path>numpy/_utils/__init__.py <ide> <ide> <ide> def set_module(module): <del> """Private decorator for overriding __module__ on a function or class. <add> """Private decorator for overriding __module__ on a function or class. <ide> <del> Example usage:: <add> Example usage:: <ide> <del> ...
1
Javascript
Javascript
add global to eslint plugin bundle config
9fb91994557ab9b47e23307aa8914d0504905f56
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV], <ide> moduleType: ISOMORPHIC, <ide> entry: 'eslint-plugin-react-hooks', <add> global: 'ESlintPluginReactHooks', <ide> externals: [], <ide> }, <ide>
1
Python
Python
do cheaper check for column having a type
1a6d07783d980664312ce729e1fc8867ad1a3b5c
<ide><path>django/db/backends/schema.py <ide> def delete_field(self, model, field): <ide> # Special-case implicit M2M tables <ide> if isinstance(field, ManyToManyField) and field.rel.through._meta.auto_created: <ide> return self.delete_model(field.rel.through) <del> # Get the column's...
1
Javascript
Javascript
fix decodeattribute reference
66225408ce42a9fa7dcf735ecbc69e66481d5a62
<ide><path>examples/js/loaders/DRACOLoader2.js <ide> THREE.DRACOLoader.DRACOWorker = function () { <ide> var attributeId = attributeIDs[ attributeName ]; <ide> var attribute = decoder.GetAttributeByUniqueId( dracoGeometry, attributeId ); <ide> <del> geometry.attributes.push( this.decodeAttribute( draco, decode...
1
Python
Python
fix reformer fp16
7f65daa2e155ecdd8594e19862dac8b322ed3b73
<ide><path>tests/test_modeling_reformer.py <ide> def create_and_check_reformer_model_fp16_forward(self, config, input_ids, input_ <ide> model.to(torch_device) <ide> model.half() <ide> model.eval() <del> output = model(input_ids, attention_mask=input_mask)["last_input_state"] <add> ...
1
Text
Text
fix typo in readme
ff5cd292e339cb997a2c8fa6958b915a9eaecb28
<ide><path>README.md <ide> These are the available config options for making requests. Only the `url` is re <ide> // `headers` are custom headers to be sent <ide> headers: {'X-Requested-With': 'XMLHttpRequest'}, <ide> <del> // `param` are the URL parameters to be sent with the request <add> // `params` are the U...
1
Text
Text
add translations to titles and fix typo
6e7aeeda2ff0761de3fe404cd09b086e0de72d1b
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.portuguese.md <ide> videoUrl: '' <ide> localeTitle: Adicione uma margem negativa a um elemento <ide> --- <ide> <del>## Description <del><section id="description"> A <code>margin</code> é um elemento CSS q...
1
Javascript
Javascript
use async/await in rollup scripts
a65a8abc65cd31c862f5e83eb24a8dc68458b521
<ide><path>scripts/rollup/build.js <ide> function getBabelConfig(updateBabelOptions, bundleType, filename) { <ide> plugins: options.plugins.concat([ <ide> // Use object-assign polyfill in open source <ide> resolve('./scripts/babel/transform-object-assign-require'), <del> <ide> // M...
3
Text
Text
add v3.7.3 to changelog
587d91c9c9bf07ed4a7b7325bf7652848074baa8
<ide><path>CHANGELOG.md <ide> - [#17357](https://github.com/emberjs/ember.js/pull/17357) Allow notifyPropertyChange to be imported from @ember/object <ide> - [#17413](https://github.com/emberjs/ember.js/pull/17413) Fix missing import in instance-initializer blueprint for ember-mocha <ide> <add>### v3.7.3 (February 6, ...
1
Javascript
Javascript
improve binarymiddleware test cases
a4d1f7cbd794c9cfdf324e3ec39cd05f67e5163f
<ide><path>test/BinaryMiddleware.unittest.js <ide> describe("BinaryMiddleware", () => { <ide> -11, <ide> -0x100, <ide> -1.25, <del> SerializerMiddleware.createLazy([5], other), <add> SerializerMiddleware.createLazy([5], other) <add> ]; <add> <add> const itemsWithLazy = [ <add> ...items, <ide> SerializerMiddl...
1
PHP
PHP
add test class
5d7adf07d93e027797ad1c7848c66f42f522d6ab
<ide><path>lib/Cake/Test/TestApp/Model/PaginatorCustomPost.php <add><?php <add>namespace TestApp\Model; <add> <add>use Cake\TestSuite\Fixture\TestModel; <add> <add>/** <add> * PaginatorCustomPost class <add> * <add> * @package Cake.Test.Case.Controller.Component <add> */ <add>class PaginatorCustomPost extends TestModel...
1
Text
Text
fix typos in docs (closes ) [ci skip]
0c74506c9cb79c76ca06ef04a4d44a042e1b3f7c
<ide><path>website/docs/usage/rule-based-matching.md <ide> class BadHTMLMerger(object): <ide> for match_id, start, end in matches: <ide> spans.append(doc[start:end]) <ide> with doc.retokenize() as retokenizer: <del> for span in hashtags: <add> for span in spans: <ide> ...
1
Java
Java
prevent a crash when no cursor drawable is set
1e18d907bfb8cc5f4f2e1a1ede0dd98aec40ab11
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java <ide> private void setCursorColor(ReactEditText view, @Nullable Integer color) { <ide> cursorDrawableResField.setAccessible(true); <ide> int drawableResId = cursorDrawableResField.getInt(view); <ide> <add> ...
1
PHP
PHP
use assertsame() for array test
d4c37c3d1eaa450a6ce0649d7ac933076d1329ad
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testSortKeys() <ide> { <ide> $data = new Collection(['b' => 'dayle', 'a' => 'taylor']); <ide> <del> $this->assertEquals(['a' => 'taylor', 'b' => 'dayle'], $data->sortKeys()->all()); <add> $this->assertSame(['a' => 'taylo...
1
Javascript
Javascript
take the submodule into account in more instances
51831b332d3296db2c8b31bc0a1d8f01b9e0b4e7
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> // * `added` The {Number} of added lines. <ide> // * `deleted` The {Number} of deleted lines. <ide> getDiffStats (_path) { <del> return this.getRepo() <add> return this.getRepo(_path) <ide> .then(repo => P...
1
Python
Python
use larger chunk size to speed up the tests
d31e3ee65768dbaa05bf85f85feb90c20f64749b
<ide><path>integration/storage/base.py <ide> def do_download(obj): <ide> <ide> def test_objects_stream_iterable(self): <ide> def do_upload(container, blob_name, content): <del> content = iter([content[i:i + 1] for i in range(len(content))]) <add> # NOTE: We originally ...
1
PHP
PHP
add tap method to collection
c3219a630fbf9627538f37107c8427cdb60b949b
<ide><path>src/Illuminate/Support/Collection.php <ide> public function pipe(callable $callback) <ide> return $callback($this); <ide> } <ide> <add> /** <add> * Pass the collection to the given callback and return the current instance. <add> * <add> * @param callable $callback <add> * @re...
2
Javascript
Javascript
use spread function param in emit
d5fb78982a82285a7abe76c4bd4bb888e8f616c1
<ide><path>lib/events.js <ide> function emitMany(handler, isFn, self, args) { <ide> } <ide> } <ide> <del>EventEmitter.prototype.emit = function emit(type) { <del> var er, handler, len, args, i, events, domain; <del> var needDomainExit = false; <del> var doError = (type === 'error'); <add>EventEmitter.prototype.em...
1
PHP
PHP
allow nested errors in json assertion
7161c83d4f4a28300eb5d1e739c25e3fd7ec5deb
<ide><path>src/Illuminate/Testing/TestResponse.php <ide> public function assertJsonValidationErrors($errors, $responseKey = 'errors') <ide> <ide> PHPUnit::assertNotEmpty($errors, 'No validation errors were provided.'); <ide> <del> $jsonErrors = $this->json()[$responseKey] ?? []; <add> $jsonError...
2
Javascript
Javascript
remove redundant $watchgroup param
7cfa79e98e54a7738722c0453432b70fbde1b6e7
<ide><path>src/ng/interpolate.js <ide> function $InterpolateProvider() { <ide> // all of these properties are undocumented for now <ide> exp: text, //just for compatibility with regular watchers created via $watch <ide> expressions: expressions, <del> $$watchDelegate: function(sco...
1
Text
Text
use svg instead of png to get better image quality
b121d94369164391369cd02a559a7b64b482f59d
<ide><path>README.md <ide> Under the hood, Docker is built on the following components: <ide> Contributing to Docker <ide> ====================== <ide> <del>[![GoDoc](https://godoc.org/github.com/docker/docker?status.png)](https://godoc.org/github.com/docker/docker) <add>[![GoDoc](https://godoc.org/github.com/docker/d...
1
Python
Python
remove unreachable return statement
dde03ac855c6bb5fa3fd6db26030ab55f5f93e58
<ide><path>libcloud/compute/drivers/gandi.py <ide> def _resource_info(self, type, id): <ide> except Exception: <ide> e = sys.exc_info()[1] <ide> raise GandiException(1003, e) <del> return None <ide> <ide> def _node_info(self, id): <ide> return self._resource_info('vm'...
1
Python
Python
parse url when adding query param
863bbe7684c44921b779a69c6b4c2ff16a223bd8
<ide><path>djangorestframework/templatetags/add_query_param.py <ide> <ide> def add_query_param(url, param): <ide> (key, sep, val) = param.partition('=') <del> return unicode(URLObject(url) & (key, val)) <add> return unicode(URLObject.parse(url) & (key, val)) <ide> <ide> <ide> register.filter('add_query_par...
1
Ruby
Ruby
add declared_directly field for runtime deps
a5cb621fb86cdb87761a8113ffb17d72a0f6d3ae
<ide><path>Library/Homebrew/formula_installer.rb <ide> def finish <ide> tab = Tab.for_keg(keg) <ide> Tab.clear_cache <ide> f_runtime_deps = formula.runtime_dependencies(read_from_tab: false) <del> tab.runtime_dependencies = Tab.runtime_deps_hash(f_runtime_deps) <add> tab.runtime_dependencies = Tab.run...
3
Python
Python
set version to v3.0.0a10
001546c19e2616cf9740cb78367e4d9b74e1366b
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a9" <add>__version__ = "3.0.0a10" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/s...
1
Python
Python
make python2 *.npy files readable in python3
8f068b7866a2959392fae2a15c1a5a19ff79bae9
<ide><path>numpy/lib/format.py <ide> import io <ide> import warnings <ide> from numpy.lib.utils import safe_eval <del>from numpy.compat import asbytes, isfileobj, long, basestring <add>from numpy.compat import asbytes, asstr, isfileobj, long, basestring <ide> <ide> if sys.version_info[0] >= 3: <ide> import pickle ...
1
Javascript
Javascript
fix onlayout support in <textinput>
92926f9858c0b60cf9f2e51cb8f25f2e1501c9c1
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> var TextInput = React.createClass({ <ide> <ide> return ( <ide> <TouchableWithoutFeedback <add> onLayout={props.onLayout} <ide> onPress={this._onPress} <ide> rejectResponderTermination={true} <ide> accessible={props.ac...
1
Javascript
Javascript
fix jshint issue
c9f42d7d43e6d63a522219199dbcc294416c6f1f
<ide><path>packages/ember-htmlbars/lib/node-managers/view-node-manager.js <ide> import assign from 'ember-metal/assign'; <ide> import { assert, warn } from 'ember-metal/debug'; <ide> import buildComponentTemplate from 'ember-htmlbars/system/build-component-template'; <ide> import { get } from 'ember-metal/property_get'...
1
Text
Text
move ofrobots to collaborator emeritus
c6d9d8ae606dcb58b33b8363bee060ee1ef04b5e
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Brian White** &lt;mscdex@mscdex.net&gt; <ide> * [MylesBorins](https://github.com/MylesBorins) - <ide> **Myles Borins** &lt;myles.borins@gmail.com&gt; (he/him) <del>* [ofrobots](https://github.com/ofrobots) - <del>**Ali I...
1
PHP
PHP
apply fixes from styleci
8842846e815498f982e83ba44c370143522e0d37
<ide><path>tests/Integration/Http/ThrottleRequestsTest.php <ide> public function test_lock_opens_immediately_after_decay() <ide> Carbon::now()->addSeconds(58) <ide> ); <ide> <del> try{ <add> try { <ide> $response = $this->withoutExceptionHandling()->get('/'); <del> ...
1
PHP
PHP
add @link to file and folder utilities
3248e34819937ba0082b675610a68a2c22087169
<ide><path>lib/Cake/Utility/File.php <ide> class File { <ide> * @param string $path Path to file <ide> * @param boolean $create Create file if it does not exist (if true) <ide> * @param integer $mode Mode to apply to the folder holding the file <add> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file...
2
PHP
PHP
add dummy code in bulk() function
51329309c18d47dcc0e245c25e2173629dca04c7
<ide><path>src/Illuminate/Support/Testing/Fakes/QueueFake.php <ide> public function pop($queue = null) <ide> */ <ide> public function bulk($jobs, $data = '', $queue = null) <ide> { <del> // <add> foreach ($this->jobs as $job) { <add> $this->jobs[get_class($job)][] = [ <add> ...
1
Ruby
Ruby
handle recursive installs
0578ba0f429708773489fdd8f9647c2712c7025c
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def install_p(src, new_basename) <ide> src = Pathname(src) <ide> dst = join(new_basename) <ide> dst = yield(src, dst) if block_given? <add> return unless dst <ide> <ide> mkpath <ide> <ide><path>Library/Homebrew/install_renamed.rb <ide> module Ins...
3
Python
Python
fix merge conflict
0e62ae4eaa8807b7e0e27e73ca1ff6be05e8b715
<ide><path>examples/cifar10_cnn.py <ide> model.add(Activation('relu')) <ide> model.add(Convolution2D(nb_filters[0], nb_filters[0], nb_conv[0], nb_conv[0])) <ide> model.add(Activation('relu')) <del>model.add(MaxPooling2D(poolsize=(nb_pool[0], nb_pool[0]))) <add>model.add(MaxPooling2D(pool_size=(nb_pool[0], nb_pool[0])))...
3
Python
Python
add node_name attribute to kubernetespod
0f56fae02edff19b8350f79b8bf61b5f21940674
<ide><path>libcloud/container/drivers/kubernetes.py <ide> <ide> <ide> class KubernetesPod(object): <del> def __init__( <del> self, id, name, containers, namespace, state, ip_addresses, created_at <del> ): <add> def __init__(self, id, name, containers, namespace, state, ip_addresses, <add> ...
1
Text
Text
fix typo in requests.md
30e6f32f6fbe20eafe949017cd62aed5d15529d5
<ide><path>docs/api-guide/requests.md <ide> For clarity inside your code, we recommend using `request.query_params` instead <ide> <ide> ## .DATA and .FILES <ide> <del>The old-style version 2.x `request.data` and `request.FILES` attributes are still available, but are now pending deprecation in favor of the unified `r...
1
Text
Text
draft pretrain usage
6efb7688a65faae489de33073c1c40b11ec4f432
<ide><path>website/docs/usage/embeddings-transformers.md <ide> def MyCustomVectors( <ide> <ide> ## Pretraining {#pretraining} <ide> <del><Infobox title="This section is still under construction" emoji="🚧" variant="warning"> <del></Infobox> <add>The `spacy pretrain` command lets you initialize your models with inform...
1
Ruby
Ruby
resolve view paths correctly on cygwin
5998dd7bb84c76f4c8a272a71b588e2331989b4b
<ide><path>actionpack/lib/action_view/template/resolver.rb <ide> def build_path(name, details, prefix, partial) <ide> end <ide> <ide> def query(path, exts) <del> query = "#{@path}/#{path}" <add> query = File.join(@path, path) <ide> exts.each do |ext| <ide> query << '{' << ext.map {|e| e...
1
Python
Python
remove unused imports
8a896ce937058533601a4c94495f45d7cca17173
<ide><path>libcloud/compute/drivers/opsource.py <ide> Opsource Driver <ide> """ <ide> import base64 <del>import socket <ide> from xml.etree import ElementTree as ET <del>from xml.parsers.expat import ExpatError <ide> <ide> from libcloud.utils import fixxpath, findtext, findall <ide> from libcloud.common.base import Co...
1
PHP
PHP
fix formatting and spacing
e47c09bc43f3bed5e02c783c165bcde0a1778468
<ide><path>src/ORM/Marshaller.php <ide> use Cake\Database\Type; <ide> use Cake\Datasource\EntityInterface; <ide> use Cake\Datasource\InvalidPropertyInterface; <del>use Cake\ORM\Exception\MissingAssociationException; <ide> use RuntimeException; <ide> <ide> /** <ide> protected function _buildPropertyMap($options) <ide> ...
2
PHP
PHP
remove previous url stuff from session. bad idea
da39766b20b915a6b554cbf6392f6a9c9c8f1a90
<ide><path>src/Illuminate/Routing/Redirector.php <ide> public function home($status = 302) <ide> */ <ide> public function back($status = 302, $headers = array()) <ide> { <del> if ($this->generator->getRequest()->headers->has('referer')) <del> { <del> $back = $this->generator->getRequest()->headers->get('referer...
4
Text
Text
fix russian rust docs (index page)
d0560e90268ed15436d4db028b8e33967cc41126
<ide><path>guide/russian/rust/index.md <ide> --- <ide> title: Rust <del>localeTitle: Ржавчина <add>localeTitle: Rust <ide> --- <del># Ржавчина <add># Rust <ide> <ide> ## Введение <ide> <del>Rust - это язык системного программирования, ориентированный на три цели: безопасность, скорость и параллелизм. Его дизайн позво...
1
Ruby
Ruby
pass check_ip and proxies to getip constructor
6c4416183454cc75ee4dbed107fe7370c69fc37d
<ide><path>actionpack/lib/action_dispatch/middleware/remote_ip.rb <ide> def initialize(app, check_ip_spoofing = true, custom_proxies = nil) <ide> # requests. For those requests that do need to know the IP, the <ide> # GetIp#calculate_ip method will calculate the memoized client IP address. <ide> def call(en...
1
Ruby
Ruby
move layout lookup to views
ffd8d753f171a33cb0f8dadaff7fc5ba12b8f6b0
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> class Base < AbstractController::Base <ide> include AbstractController::Layouts <ide> include AbstractController::Helpers <ide> include AbstractController::Translation <del> include AbstractController::Compatibility <ide> <ide> helper ActionMa...
12
Python
Python
fix migration message
971cae35200968ecbeea81d39846f2d8309644a0
<ide><path>airflow/migrations/versions/b3b105409875_add_root_dag_id_to_dag.py <ide> # under the License. <ide> <ide> """add root_dag_id to DAG <add> <ide> Revision ID: b3b105409875 <ide> Revises: d38e04c12aa2 <ide> Create Date: 2019-09-28 23:20:01.744775 <add> <ide> """ <ide> <ide> import sqlalchemy as sa
1
Ruby
Ruby
preserve fractional seconds in datetime#to_time
bf0395837fc735bf98daed23f475b267e48c1118
<ide><path>activesupport/lib/active_support/core_ext/date_time/conversions.rb <ide> def to_date <ide> # Attempts to convert self to a Ruby Time object; returns self if out of range of Ruby Time class <ide> # If self has an offset other than 0, self will just be returned unaltered, since there's no clean way to map ...
2
Mixed
Text
replace therubyracer with mini_racer
6cc153959ac04a39d4081a2cf23e1ff83c4efe3b
<ide><path>guides/source/asset_pipeline.md <ide> pre-existing JavaScript runtimes, you may want to add one to your Gemfile: <ide> <ide> ```ruby <ide> group :production do <del> gem 'therubyracer' <add> gem 'mini_racer' <ide> end <ide> ``` <ide> <ide><path>guides/source/getting_started.md <ide> TIP: Compiling Coffee...
4
Go
Go
fix entrypoint without cmd
0f249c85ea9acc7fba33994aa5d20a897463db2c
<ide><path>builder.go <ide> func (builder *Builder) Create(config *Config) (*Container, error) { <ide> MergeConfig(config, img.Config) <ide> } <ide> <del> if config.Cmd == nil || len(config.Cmd) == 0 { <add> if len(config.Entrypoint) != 0 && config.Cmd == nil { <add> config.Cmd = []string{} <add> } else if config....
2
Javascript
Javascript
allow objects in `define` option #100
1aa80aa48b265a05a9e704f8d56ed6ba6c19216d
<ide><path>lib/DefinePlugin.js <ide> function DefinePlugin(definitions) { <ide> } <ide> module.exports = DefinePlugin; <ide> DefinePlugin.prototype.apply = function(compiler) { <del> var definitions = this.definitions; <del> Object.keys(definitions).forEach(function(key) { <del> var code = definitions[key]; <del> if(...
1
Go
Go
use init function
740a97f1a836be17ab39e8496b7372900782c20b
<ide><path>a_test.go <del>package docker <del> <del>import ( <del> "os" <del> "testing" <del>) <del> <del>func Test(t *testing.T) { <del> os.Setenv("TEST", "1") <del>} <ide><path>runtime_test.go <ide> func layerArchive(tarfile string) (io.Reader, error) { <ide> } <ide> <ide> func init() { <add> os.Setenv("TEST", "1") ...
2
Javascript
Javascript
fix some messy rebasing issues
0ccb88d48da3d3b7f1cc7369d948ffd5902c553e
<ide><path>src/event.js <ide> if ( !jQuery.support.submitBubbles ) { <ide> if ( !jQuery.support.changeBubbles ) { <ide> <ide> var getVal = function( elem ) { <del> var type = elem.type, <del> val = elem.value; <del> <del> getVal = function( elem ) { <ide> var type = jQuery.nodeName( elem, "input" ) ? elem.type :...
1
Ruby
Ruby
fix typo s/precendence/precedence/
86e46956e37d440def61551b649a17fb8a2e2f16
<ide><path>activesupport/test/zeitwerk_inflector_test.rb <ide> def camelize(basename) <ide> assert_equal "SSLError", camelize("ssl_error") <ide> end <ide> <del> test "overrides take precendence" do <add> test "overrides take precedence" do <ide> # Precondition, ensure we are testing something. <ide> as...
1
Java
Java
fix typo in comment about package
231d2f95cdca615e30e1195275c40d4ecde86903
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleHolder.java <ide> public ModuleHolder(NativeModule nativeModule) { <ide> } <ide> } <ide> <del> /* pacakge */ synchronized boolean hasInstance() { <add> /* package */ synchronized boolean hasInstance() { <ide> return mModule != null; <ide...
1
Javascript
Javascript
fix broken tests for element dsl
275f036c1f146d37c088027c79338d0d5209c03a
<ide><path>test/scenario/DSLSpec.js <ide> describe("DSL", function() { <ide> expect(future.fulfilled).toBeTruthy(); <ide> } <ide> it('should find elements on the page and provide jquery api', function() { <del> var future = element('.reports-detail').find(); <add> var future = element('.reports-...
1