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 mixed indentation
c1a6afaf9c0be16d17a46a7ae1e03a08b2e247eb
<ide><path>src/Database/Schema/PostgresSchema.php <ide> public function describeColumnSql($tableName, $config) <ide> { <ide> $sql = <ide> 'SELECT DISTINCT table_schema AS schema, column_name AS name, data_type AS type, <del> is_nullable AS null, column_default AS default, <del> character_maximum...
2
Javascript
Javascript
show loader when loading view / partial
19973609f43af781b1c4467f3acbc42b3a8f791e
<ide><path>docs/app/src/docs.js <ide> angular.module('DocsController', []) <ide> $scope.$on('$includeContentLoaded', function() { <ide> var pagePath = $scope.currentPage ? $scope.currentPage.path : $location.path(); <ide> $window._gaq.push(['_trackPageview', pagePath]); <add> $scope.loading = false; <add> ...
1
Ruby
Ruby
fix another filesystem leak in updater tests
3f3b7746dda4a36a05ad3c6bda32526dbeea5c19
<ide><path>Library/Homebrew/test/test_updater.rb <ide> def setup <ide> @report = Report.new <ide> end <ide> <add> def teardown <add> FileUtils.rm_rf HOMEBREW_LIBRARY.join("Taps") <add> end <add> <ide> def perform_update(fixture_name="") <ide> @updater.diff = fixture(fixture_name) <ide> @updater.in...
1
Python
Python
add tf2 camembert model
a3998e76ae36b6fe5be9628755d5a536ed037dc2
<ide><path>src/transformers/__init__.py <ide> from .configuration_mmbt import MMBTConfig <ide> from .configuration_openai import OPENAI_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP, OpenAIGPTConfig <ide> from .configuration_roberta import ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP, RobertaConfig <add>from .configuration_camembert impo...
3
Javascript
Javascript
fix incorrect position of text widget
8bf17f5df83c667e6986e941ec472f865b3f256f
<ide><path>src/display/annotation_layer.js <ide> var AnnotationLayer = (function AnnotationLayerClosure() { <ide> return container; <ide> } <ide> <del> function getHtmlElementForTextWidgetAnnotation(item, page) { <del> var element = document.createElement('div'); <del> var width = item.rect[2] - item.rect...
1
Text
Text
add cd\ command
bebde5f6c9fc737dddf7a63ab5657fe7a1aa822b
<ide><path>guide/english/terminal-commandline/windows-command-prompt/index.md <del>--- <del>title: Windows Command Prompt <del>--- <del># Using the Command Prompt in Windows <del>Windows, MacOS and Linux have command line interfaces. Windows' default command line is the command prompt. The command prompt allows users t...
1
Javascript
Javascript
replace tic & toc by console.time/timeend
d1b75dd6331461b0def4e5fdecb95b111561870b
<ide><path>pdf_worker.js <ide> <ide> "use strict"; <ide> <del>var timer = null; <del>function tic() { <del> timer = Date.now(); <del>} <del> <del>function toc(msg) { <del> log(msg + ": " + (Date.now() - timer) + "ms"); <del> timer = null; <del>} <del> <del>function log() { <del> var args = Array.prototype.slice.c...
2
Text
Text
add rushowl to airflow users
a7aba1e01027a8163451256d33417594df0e63cf
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Reverb](https://reverb.com)[[@reverbdotcom](https://github.com/reverbdotcom)] <ide> 1. [Revolut](https://www.revolut.com/) [[@sztanko](https://github.com/sztanko) & [@nautilus28](https://github.com/nautilus28)] <ide> 1. [Robinhood](https://rob...
1
Python
Python
add option to turn on eager in imagenet
c254938dc9c53cc5c9f30f96ef1c403b9d9f6466
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run_imagenet_with_keras(flags_obj): <ide> Raises: <ide> ValueError: If fp16 is passed as it is not currently supported. <ide> """ <add> if flags_obj.enable_eager: <add> tf.enable_eager_execution() <add> <ide> dtype = flags_core.get_tf_dty...
1
Javascript
Javascript
use spawnsync() full name
01c4907696b7065a57b999f6dd96deac379f2630
<ide><path>test/parallel/test-cli-bad-options.js <ide> require('../common'); <ide> // Tests that node exits consistently on bad option syntax. <ide> <ide> const assert = require('assert'); <del>const spawn = require('child_process').spawnSync; <add>const { spawnSync } = require('child_process'); <ide> <ide> if (proce...
1
PHP
PHP
add support for default values for the props tag
af6cc0bf54642a676756f7a2e4cfd0305f00e8db
<ide><path>src/Illuminate/View/Compilers/Concerns/CompilesComponents.php <ide> protected function compileEndComponentFirst() <ide> protected function compileProps($expression) <ide> { <ide> return "<?php \$attributes = \$attributes->exceptProps{$expression}; ?> <add><?php foreach (array_filter({$express...
1
Ruby
Ruby
require cargo to use `install` instead of `build`
3329a9f6d8d7aa6f9e37c33f6d4cc650ab6ea117
<ide><path>Library/Homebrew/rubocops/text_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> next if parameters_passed?(d, /vendor-only/) <ide> problem "use \"dep\", \"ensure\", \"-vendor-only\"" <ide> end <add> <add> find_method_with_args(...
2
Javascript
Javascript
fix existssync for invalid symlink at win32
0e3d774ed21375675b024f555a67773821e56a9d
<ide><path>lib/fs.js <ide> function existsSync(path) { <ide> return false; <ide> } <ide> const ctx = { path }; <del> binding.access(pathModule.toNamespacedPath(path), F_OK, undefined, ctx); <add> const nPath = pathModule.toNamespacedPath(path); <add> binding.access(nPath, F_OK, undefined, ctx); <add> <add> ...
4
Ruby
Ruby
remove response faking
b276108330d9397740ce6a189f89d68206b8bf2c
<ide><path>actionmailer/test/assert_select_email_test.rb <ide> def test(options) <ide> # Test assert_select_email <ide> # <ide> <del> def setup <del> @response = FakeResponse.new(:html, 'some body text') <del> end <del> <ide> def test_assert_select_email <ide> assert_raise(Assertion) { assert_select_ema...
1
Javascript
Javascript
notify view controller when its parentview changes
ce28b3ca811e520e86de8caa8a632fab58c6c4bf
<ide><path>packages/ember-views/lib/mixins/view_context_support.js <ide> import { get } from "ember-metal/property_get"; <ide> import { set } from "ember-metal/property_set"; <ide> import LegacyViewSupport from "ember-views/mixins/legacy_view_support"; <ide> import { observer } from "ember-metal/mixin"; <add>import { o...
2
Python
Python
fix mypy erros at strongly connected component
7342b336587af1e57eb9888203a1ae80832bde28
<ide><path>graphs/strongly_connected_components.py <ide> test_graph_2 = {0: [1, 2, 3], 1: [2], 2: [0], 3: [4], 4: [5], 5: [3]} <ide> <ide> <del>def topology_sort(graph: dict, vert: int, visited: list) -> list: <add>def topology_sort( <add> graph: dict[int, list[int]], vert: int, visited: list[bool] <add>) -> list[...
1
Python
Python
add albert to autoclasses
ecf15ebf3b7f5d2b0144f1a428e2d9f39494c8ba
<ide><path>transformers/configuration_auto.py <ide> from .configuration_distilbert import DistilBertConfig <ide> from .configuration_ctrl import CTRLConfig <ide> from .configuration_camembert import CamembertConfig <add>from .configuration_albert import AlbertConfig <ide> <ide> logger = logging.getLogger(__name__) <id...
3
Javascript
Javascript
add test for net-socket-settimeout callback
22a9fe35520f7eb89845237582262457721afc70
<ide><path>test/parallel/test-net-socket-timeout.js <ide> const nonNumericDelays = [ <ide> ]; <ide> const badRangeDelays = [-0.001, -1, -Infinity, Infinity, NaN]; <ide> const validDelays = [0, 0.001, 1, 1e6]; <add>const invalidCallbacks = [ <add> 1, '100', true, false, null, {}, [], Symbol('test') <add>]; <ide> <ide>...
1
Ruby
Ruby
pass explicit sort to handle apfs
9a323c51078ee9c900fda3ee6b88d1c1e3b26b8f
<ide><path>Library/Homebrew/cmd/info.rb <ide> def print_info <ide> <ide> def print_json <ide> ff = if ARGV.include? "--all" <del> Formula <add> Formula.sort <ide> elsif ARGV.include? "--installed" <del> Formula.installed <add> Formula.installed.sort <ide> else <ide> ARGV.formula...
1
Javascript
Javascript
allow interpolations for non-event handlers attrs
8e1276c011b33b90af47494dc5e76baf86468a5a
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes <ide> // The assumption is that future DOM event attribute names will begin with <ide> // 'on' and be composed of only English letters. <del> var EVENT_...
2
Text
Text
improve autoskip documentation
1c01272c9af8261a114524e6781e5e67105735fb
<ide><path>docs/axes/cartesian/README.md <ide> The following options are common to all cartesian axes but do not apply to other <ide> <ide> | Name | Type | Default | Description <ide> | ---- | ---- | ------- | ----------- <del>| `autoSkip` | `boolean` | `true` | If true, automatically calculates how many labels that c...
1
Text
Text
devmode hard-codes the location of the atom repo
0695aafe80b0e5bbbcceaea2b658e0d348c28a4e
<ide><path>docs/building-atom.md <ide> atom][download]. <ide> * Install the [latest 32bit Node 0.10.x][win-node] <ide> * Install the [latest Python 2.7.x][win-python] <ide> * Install [Github for Windows][win-github] <del>* Clone [atom/atom][atom-git] to `C:\Users\<user>\Documents\GitHub\atom\` <del>* Add `C:\Python27;C...
1
Ruby
Ruby
use alphabetical order in symbols array
0148ee870eedc0d850c25fd7c6fb3e0e02893653
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> module Livecheck <ide> <ide> STRATEGY_SYMBOLS_TO_SKIP_PREPROCESS_URL = [ <ide> :github_latest, <del> :sparkle, <ide> :page_match, <add> :sparkle, <ide> ].freeze <ide> <ide> UNSTABLE_VERSION_KEYWORDS = %w[
1
Python
Python
run tests if skip condition not met
ef91a2d135f3fa43c89511f7c11ae3543e260692
<ide><path>tests/models/convnext/test_modeling_tf_convnext.py <ide> def test_inputs_embeds(self): <ide> <ide> @unittest.skipIf( <ide> not is_tf_available() or len(tf.config.list_physical_devices("GPU")) == 0, <del> reason="TF (<=2.8) does not support backprop for grouped convolutions on CPU.", <add>...
3
PHP
PHP
fix array docblocks
12e2655108032fb16d5932204bca8965b951cf39
<ide><path>src/Auth/AbstractPasswordHasher.php <ide> public function __construct(array $config = []) <ide> /** <ide> * Generates password hash. <ide> * <del> * @param string|array $password Plain text password to hash or array of data <del> * required to generate password hash. <add> * @para...
8
PHP
PHP
fix invalid method usage
0c112e4b2892eac35d81c56f00a2812df20cf184
<ide><path>src/Cache/CacheEngine.php <ide> public function writeMany(array $data): array <ide> { <ide> $return = []; <ide> foreach ($data as $key => $value) { <del> $return[$key] = $this->write($key, $value); <add> $return[$key] = $this->set($key, $value); <ide> } <ide>...
9
Javascript
Javascript
kill array suites
30702be41b358b5cb8e65f3c66bb484342003d56
<ide><path>packages/ember-runtime/tests/mixins/array_test.js <ide> import { <ide> computed <ide> } from 'ember-metal'; <ide> import { testBoth } from 'internal-test-helpers'; <del>import { ArrayTests } from '../suites/array'; <ide> import EmberObject from '../../system/object'; <ide> import EmberArray, { <ide> addA...
10
Text
Text
fix spelling mistake from "simlar" to "similar"
5e0232236a12e905ed1449b8d82746da7a92c07d
<ide><path>README.md <ide> MIT (http://www.opensource.org/licenses/mit-license.php) <ide> (In chronological order) <ide> <ide> * @google for [Google Web Toolkit (GWT)](https://code.google.com/p/google-web-toolkit), which aims to compile Java to JavaScript. It features a similar [Code Splitting](https://code.google.com...
1
Ruby
Ruby
instance_writer => false
60bbf16bfd60493c05bf9c9c70ec962a0c482155
<ide><path>activesupport/lib/active_support/core_ext/class/attribute.rb <ide> class Class <ide> # For convenience, a query method is defined as well: <ide> # <ide> # Subclass.setting? # => false <add> # <add> # Instances may overwrite the class value in the same way: <add> # <add> # Base.setting...
2
Javascript
Javascript
fix failing tests
3c348928abc44e91ca1c6f51b539b337fbcb1265
<ide><path>packages/ember-routing/lib/routable.js <ide> Ember.Routable = Ember.Mixin.create({ <ide> */ <ide> stashContext: function(manager, context) { <ide> var serialized = this.serialize(manager, context); <del> Ember.assert('serialize must return a hash', typeof serialized === 'object'); <add> Ember.a...
1
PHP
PHP
remove param $confirmmessage
f97ddb13cefa2609210a499c912ed3311ed4f265
<ide><path>src/View/Helper/FormHelper.php <ide> public function postButton($title, $url, array $options = array()) { <ide> } <ide> <ide> /** <del> * Creates an HTML link, but access the URL using the method you specify (defaults to POST). <del> * Requires javascript to be enabled in browser. <add> * Creates an HTML l...
2
Java
Java
use real yoganodes in fabricreconcilertest
af2095842535c05613240215052fbcdd2f34ce64
<ide><path>ReactAndroid/src/test/java/com/facebook/react/fabric/FabricReconcilerTest.java <ide> import static org.fest.assertions.api.Assertions.assertThat; <ide> import static org.mockito.Mockito.mock; <ide> import static org.mockito.Mockito.when; <del>import static org.powermock.api.mockito.PowerMockito.mockStatic; <...
1
Python
Python
fix a typo
86b6331967c723bf46cbfe7c2d0fa33d69ce6d1b
<ide><path>test/test_pricing.py <ide> def test_get_size_price(self): <ide> driver_name='foo', <ide> size_id='3') <ide> self.assertEqual(price1, 2) <del> self.assertEqual(price3, 3) <add> self.assertEqua...
1
Javascript
Javascript
expose category property of ios notifications
dd8ed629a5ec2215e24b104dee45bef3fb08dc61
<ide><path>Libraries/PushNotificationIOS/PushNotificationIOS.js <ide> class PushNotificationIOS { <ide> _data: Object; <ide> _alert: string | Object; <ide> _sound: string; <add> _category: string; <ide> _badgeCount: number; <ide> _notificationId: string; <ide> _isRemote: boolean; <ide> class PushNotificati...
1
Ruby
Ruby
add helper for testing tty output
dccdac55a835a22d46c36fe915e6e8cdf43a4adc
<ide><path>Library/Homebrew/test/cask/cli/search_spec.rb <ide> describe Hbc::CLI::Search, :cask do <ide> before(:each) do <del> allow($stdout).to receive(:tty?).and_return(true) <add> allow(Tty).to receive(:width).and_return(0) <ide> end <ide> <ide> it "lists the available Casks that match the search term"...
3
Javascript
Javascript
improve test case, convert trace into warning
442dc46740994a078393a9ace8ae5fe9b2171c40
<ide><path>lib/hmr/HotModuleReplacement.runtime.js <ide> module.exports = function () { <ide> me.children.push(request); <ide> } <ide> } else { <del> console.trace( <add> console.warn( <ide> "[HMR] unexpected require(" + <ide> request + <ide> ") from disposed module " + <ide><path>tes...
4
Ruby
Ruby
remove errant default option
149da8815ce7b5bb3e1eb63964b9d808a065e932
<ide><path>activejob/lib/active_job/queue_adapter.rb <ide> module QueueAdapter #:nodoc: <ide> <ide> included do <ide> class_attribute :_queue_adapter_name, instance_accessor: false, instance_predicate: false <del> class_attribute :_queue_adapter, default: :async, instance_accessor: false, instance_predi...
1
Go
Go
remove cases no longer valid for go1.16
2842639e0e22bc2f91271603fb9990fa2ac8ad2e
<ide><path>pkg/fileutils/fileutils_test.go <ide> func TestMatches(t *testing.T) { <ide> if runtime.GOOS != "windows" { <ide> tests = append(tests, []matchesTestCase{ <ide> {"a\\*b", "a*b", true}, <del> {"a\\", "a", false}, <del> {"a\\", "a\\", false}, <ide> }...) <ide> } <ide>
1
Python
Python
add __version__ symbol in __init__.py
45f6961ae0f54f1e6cbb6fb59158e2ce03e27417
<ide><path>spacy/__init__.py <ide> from .deprecated import resolve_model_name <ide> from .cli.info import info <ide> from .glossary import explain <add>from .about import __version__ <ide> <ide> from . import en, de, zh, es, it, hu, fr, pt, nl, sv, fi, bn, he, nb, ja <ide>
1
PHP
PHP
allow short-cuts on generators
49e3c77b518547bb661b1de4fda64a3ae0c5c505
<ide><path>src/Illuminate/Console/GeneratorCommand.php <ide> abstract protected function getStub(); <ide> */ <ide> public function fire() <ide> { <del> if ($this->files->exists($path = $this->getPath($name = $this->getNameInput()))) <add> $name = $this->parseName($this->getNameInput()); <add> <add> if ($this->fi...
6
Python
Python
use the new compat module
25f531e3d487d1b441037d6441c2c7e59c85e869
<ide><path>glances/core/glances_client.py <ide> import json <ide> import socket <ide> import sys <del>try: <del> from xmlrpc.client import Transport, ServerProxy, ProtocolError, Fault <del>except ImportError: <del> # Python 2 <del> from xmlrpclib import Transport, ServerProxy, ProtocolError, Fault <ide> <ide>...
36
Javascript
Javascript
improve multiple vm tests
4b23b429818d3fef1714cbdea4c6a1fd06410a5f
<ide><path>test/parallel/test-vm-context-async-script.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const assert = require('assert'); <ide> const vm = require('vm'); <ide> <del>const sandbox = { setTimeout: setTi...
9
Ruby
Ruby
convert alt target test to spec
75609f7212c9e992eec22554abb3fb5540e62d96
<add><path>Library/Homebrew/cask/spec/cask/artifact/alt_target_spec.rb <del><path>Library/Homebrew/cask/test/cask/artifact/alt_target_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::Artifact::App do <ide> describe "activate to alternate target" do <ide> let(:target_path) {...
1
Go
Go
add support for windows version filtering on pull
38aef56e1fcb8ea318df98c89cf002267b88a136
<ide><path>distribution/pull_v2.go <ide> func (p *v2Puller) pullManifestList(ctx context.Context, ref reference.Named, mf <ide> } <ide> <ide> logrus.Debugf("%s resolved to a manifestList object with %d entries; looking for a os/arch match", ref, len(mfstList.Manifests)) <del> var manifestDigest digest.Digest <del> /...
3
Text
Text
update the notable changes
cf989b6c11278ecba6f2727ef2996b48de3e1409
<ide><path>doc/changelogs/CHANGELOG_V10.md <ide> This is a follow up release to fix two regressions that were introduced in v10.2 <ide> <ide> * Assert <ide> * Calling `assert.fail()` with more than one argument is deprecated. [[`70dcacd710`](https://github.com/nodejs/node/commit/70dcacd710)] <del> * Calling `assert...
1
Javascript
Javascript
use 255 instead of infinity
3a946fe0944aab319c7b73fb196314c80c955027
<ide><path>src/renderers/shared/fiber/ReactFiberUpdateQueue.js <ide> function comparePriority(a : PriorityLevel, b : PriorityLevel) : number { <ide> return 0; <ide> } <ide> if (a === NoWork && b !== NoWork) { <del> return -Infinity; <add> return -255; <ide> } <ide> if (a !== NoWork && b === NoWork) { ...
1
Go
Go
fix stack overflow in errinadequatecapacity
4db753c0174420152957224d38fb6e8b6ae6908e
<ide><path>plugin/store/store.go <ide> func (ps *Store) SetAll(plugins map[string]*v2.Plugin) { <ide> ps.plugins = plugins <ide> } <ide> <del>func (ps *Store) getByCap(name string, capability string) (*v2.Plugin, error) { <del> ps.RLock() <del> defer ps.RUnlock() <del> <del> p, err := ps.GetByName(name) <del> if err ...
3
PHP
PHP
use path and domain in session store
ac5b414f988d5cd952a5749f87586ab9f1ac8d13
<ide><path>src/Illuminate/Session/Store.php <ide> public function hitsLottery() <ide> * <ide> * @param Illuminate\Cookie\CookieJar $cookie <ide> * @param string $name <del> * @param int $lifetime <add> * @param int $lifetime <add> * @param string $path <add> * @param string $domain <ide> * @r...
1
Mixed
Python
remove unused import
0fb1ebcfcf98a9284baf3b5b840c36aeccefa6c7
<ide><path>docs/topics/3.3-announcement.md <ide> The 3.3 release marks the final work in the Kickstarter funded series. We'd like <ide> <ide> The amount of work that has been achieved as a direct result of the funding is immense. We've added a huge amounts of new functionality, resolved nearly 2,000 tickets, and redes...
2
Text
Text
clarify guidance re trust of keys in release docs
ae1fa4c8b2b2d91ab01697e7a201f321c5c767c3
<ide><path>dev/README_RELEASE_AIRFLOW.md <ide> retrieves it from the default GPG keyserver <ide> [OpenPGP.org](https://keys.openpgp.org): <ide> <ide> ```shell script <del>gpg --receive-keys 12717556040EEF2EEAF1B9C275FCCD0A25FA0E4B <add>gpg --keyserver keys.openpgp.org --receive-keys CDE15C6E4D3A8EC4ECF4BA4B6674E08AD7D...
4
Javascript
Javascript
add error checking in callback
c090ca816046241658a576d97e28d529a5daf493
<ide><path>test/parallel/test-dgram-send-callback-buffer-length.js <ide> const offset = 20; <ide> const len = buf.length - offset; <ide> <ide> const messageSent = common.mustCall(function messageSent(err, bytes) { <add> assert.ifError(err); <ide> assert.notStrictEqual(bytes, buf.length); <ide> assert.strictEqual(...
1
Ruby
Ruby
add a factory method that accepts a formula object
6f02314cba77825db1fbcc186e96ff9ec49f7f58
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def bottle_formula f <ide> bottle_revision = max ? max + 1 : 0 <ide> end <ide> <del> filename = Bottle::Filename.new(f.name, f.pkg_version, bottle_tag, bottle_revision) <add> filename = Bottle::Filename.create(f, bottle_tag, bottle_revision) <ide> <ide> ...
3
Javascript
Javascript
remove reschedule fixes #742
3631ff0f1ba73a193da653935ca27bdff1552929
<ide><path>packages/ember-metal/lib/watching.js <ide> var pendingQueue = []; <ide> // back in the queue and reschedule is true, schedules a timeout to try <ide> // again. <ide> /** @private */ <del>function flushPendingChains(reschedule) { <add>function flushPendingChains() { <ide> if (pendingQueue.length===0) return...
1
Mixed
Ruby
make preload_link_tag work with images
46bfd082b00a6c10f7263c769edb9c053bd03936
<ide><path>actionview/CHANGELOG.md <add>* `preload_link_tag` properly inserts `as` attributes for files with `image` MIME types, such as JPG or SVG. <add> <add> *Nate Berkopec* <add> <ide> * Add `weekday_options_for_select` and `weekday_select` helper methods. Also adds `weekday_select` to `FormBuilder`. <ide> ...
3
Ruby
Ruby
handle corrupt checkouts
7deb2f85e82c43f6927f8e89f8f81fb10ddbecef
<ide><path>Library/Homebrew/download_strategy.rb <ide> def hgpath <ide> def fetch <ide> ohai "Cloning #{@url}" <ide> <del> unless @clone.exist? <del> url=@url.sub(%r[^hg://], '') <del> safe_system hgpath, 'clone', url, @clone <del> else <add> if @clone.exist? && repo_valid? <ide> puts "U...
1
PHP
PHP
fix more coding standards problems
664b0538b8c7cab40a6a035d7eb977f7814337ab
<ide><path>lib/Cake/Console/Command/Task/ProjectTask.php <ide> public function execute() { <ide> $this->out(__d('cake_console', ' * CAKE_CORE_INCLUDE_PATH set to %s in webroot/index.php', CAKE_CORE_INCLUDE_PATH)); <ide> $this->out(__d('cake_console', ' * CAKE_CORE_INCLUDE_PATH set to %s in webroot/test.php', CA...
11
Javascript
Javascript
apply suggestions from code review
4fb112e87f4884f2b83590ad53f1c2e4e0229385
<ide><path>client/src/components/Footer/index.js <ide> function Footer() { <ide> <p> <ide> Donations to freeCodeCamp go toward our education initiatives, and <ide> help pay for servers, services, and staff. You can&nbsp; <del> <Link className='inline' external='true'...
3
Ruby
Ruby
avoid hardcoded value in test setup/teardown
6a75e2ce1033669f99aed6f1f8295c138edb4d47
<ide><path>actionpack/test/dispatch/request/query_string_parsing_test.rb <ide> def test_array_parses_without_nil <ide> end <ide> <ide> test "perform_deep_munge" do <add> old_perform_deep_munge = ActionDispatch::Request::Utils.perform_deep_munge <ide> ActionDispatch::Request::Utils.perform_deep_munge = false...
1
Java
Java
fix reactedittext crash
2b708560fc002c26f0b09f09cfa451827a3425ac
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java <ide> private void setIntrinsicContentSize() { <ide> // wrapper 100% of the time. <ide> // Since the LocalData object is constructed by getting values from the underlying EditText <ide> // view, we don't need to cons...
1
Java
Java
fix reactinstancemanager deadlock
df7e8c64ff8f5ff739fba2ba5ed6b0610567235e
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/ReactInstanceManagerTest.java <ide> @RunWith(AndroidJUnit4.class) <ide> public class ReactInstanceManagerTest { <ide> <add> private static final String TEST_MODULE = "ViewLayoutTestApp"; <add> <ide> private ReactInstanceManager mReactInstanc...
2
Text
Text
add documentation for recurrent layers
f953508bd994b13bc64c1f58df08ed7b6d20c3cf
<ide><path>docs/sources/datasets.md <ide> __Arguments:__ <ide> - test_split: float. Fraction of the dataset to be used as test data. <ide> - seed: int. Seed for reproducible data shuffling. <ide> <add>--- <add> <ide> ## IMDB Movie reviews sentiment classification <ide> <ide> `keras.datasets.imdb` <ide> __Arguments:__...
3
Ruby
Ruby
handle argumenterror from time#parse
23f8cb9f4acc83949037ce8f6c95067e9cc49629
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.item_from_content(content) <ide> version ||= (item > "version").first&.text&.strip <ide> <ide> title = (item > "title").first&.text&.strip <del> pub_date = (item > "pubDate").first&.text&.strip&.presence&.yield_...
1
PHP
PHP
use confirmabletrait in seeder
1f6f00ff8174e9422e45b6dc22fce4bbce715391
<ide><path>src/Illuminate/Database/Console/SeedCommand.php <ide> <?php namespace Illuminate\Database\Console; <ide> <ide> use Illuminate\Console\Command; <add>use Illuminate\Console\ConfirmableTrait; <ide> use Symfony\Component\Console\Input\InputOption; <ide> use Illuminate\Database\ConnectionResolverInterface as Res...
1
Javascript
Javascript
update each view benchmark
b2188911dafa60dabb6ba534acc5e044821a1bf5
<ide><path>benchmarks/runner.js <ide> function makeiframe(emberPath, suitePath, profile, callback) { <ide> <ide> write("<title>" + name + "</title>"); <ide> write("<script src='../lib/jquery-1.7.2.js'></script>"); <add> write("<script>ENV = {VIEW_PRESERVES_CONTEXT: true};</script>"); <ide> write("<script src='"...
2
Python
Python
remove forgotten kws_args
937013b35e0483ce82c1b90fb8416ab9188b1ed3
<ide><path>numpy/core/setup.py <ide> def check_func(func_name): <ide> moredefs.append(defsymbol) <ide> <ide> if sys.version[:3] < '2.4': <del> kws_args['headers'].append('stdlib.h') <ide> if check_func('strtod'): <ide> moredefs.append((...
1
Python
Python
add test for gcstaskhandler
1ae5bdf23e3ac7cca05325ef8b255a7cf067e18e
<ide><path>airflow/providers/google/cloud/log/gcs_task_handler.py <ide> def gcs_read(self, remote_log_location): <ide> bkt, blob = self.parse_gcs_url(remote_log_location) <ide> return self.hook.download(bkt, blob).decode('utf-8') <ide> <del> def gcs_write(self, log, remote_log_location, append=True)...
4
Java
Java
fix imageeditingmanager when no external cache
fffcb9c88a9aec69125b138cb540d9dc8d7846c8
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java <ide> private static File createTempFile(Context context, @Nullable String mimeType) <ide> File externalCacheDir = context.getExternalCacheDir(); <ide> File internalCacheDir = context.getCacheDir(); <ide> File c...
1
Javascript
Javascript
remove the `shadowviewer` used with page scrolling
c18df2c61f4dbcf786a8feacc1c67af13433cf38
<ide><path>web/base_viewer.js <ide> function isSameScale(oldScale, newScale) { <ide> * Simple viewer control to display PDF content/pages. <ide> */ <ide> class BaseViewer { <add> #scrollModePageState = null; <add> <ide> /** <ide> * @param {PDFViewerOptions} options <ide> */ <ide> class BaseViewer { <ide> ...
2
PHP
PHP
implement array access
eb3c9e25a5bc2a96777e5e643ce0f612e4a544d9
<ide><path>src/Illuminate/Testing/AssertableJsonString.php <ide> <ide> namespace Illuminate\Testing; <ide> <add>use ArrayAccess; <ide> use Illuminate\Contracts\Support\Jsonable; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Testing\Assert as PHPUnit; <ide> use JsonSerializab...
1
Go
Go
run build tests in tmpdir
be924087eb5a2ab0ad79c069782e82805dd31d58
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildSixtySteps(t *testing.T) { <ide> } <ide> <ide> func TestAddSingleFileToRoot(t *testing.T) { <del> buildDirectory := filepath.Join(workingDirectory, "build_tests", "TestAdd", "SingleFileToRoot") <add> testDirName := "SingleFileToRoot" <add> sourceD...
2
Ruby
Ruby
restore printing of statistics
dd1830e1e3b67e53d2e3a9e67fd1a5e613579262
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info <ide> raise FormulaOrCaskUnspecifiedError if args.no_named? <ide> <ide> exec_browser(*args.named.to_formulae_and_casks.map { |f| github_info(f) }) <add> elsif args.no_named? <add> print_statistics <ide> else <ide> print_info(args: arg...
1
Go
Go
fix empty-lines (revive)
f63dea43378506ba653545ee06f0da422f160ad9
<ide><path>cmd/dockerd/daemon.go <ide> func newRouterOptions(config *config.Config, d *daemon.Daemon) (routerOptions, e <ide> <ide> func (cli *DaemonCli) reloadConfig() { <ide> reload := func(c *config.Config) { <del> <ide> // Revalidate and reload the authorization plugins <ide> if err := validateAuthzPlugins(c....
2
Go
Go
fix crash if the len was < maxsetstringlen
1f55734d4c2021067790dc1ab895deb50e562154
<ide><path>libnetwork/service_common.go <ide> func (c *controller) addServiceBinding(svcName, svcID, nID, eID, containerName s <ide> ok, entries := s.assignIPToEndpoint(ip.String(), eID) <ide> if !ok || entries > 1 { <ide> setStr, b := s.printIPToEndpoint(ip.String()) <del> logrus.Warnf("addServiceBinding %s possi...
1
Text
Text
remove trailing dot
5bda9b8a8ee46ba38fd006d8addad5ce918e1890
<ide><path>docs/your-first-package.md <ide> module.exports = <ide> <ide> convert: -> <ide> # This assumes the active pane item is an editor <del> editor = atom.workspace.activePaneItem. <add> editor = atom.workspace.activePaneItem <ide> selection = editor.getSelection() <ide> upperCaseSelectedText ...
1
Javascript
Javascript
fix function names in pdfthumbnailviewer
dfa993d13d03d71dc645c96ffafbbacbe31144c1
<ide><path>web/pdf_thumbnail_viewer.js <ide> var THUMBNAIL_SCROLL_MARGIN = -19; <ide> <ide> /** <ide> * @typedef {Object} PDFThumbnailViewerOptions <del> * @property {HTMLDivElement} container - The container for the thumbs elements. <add> * @property {HTMLDivElement} container - The container for the thumbnail <add>...
1
Text
Text
update the list of plugins and loaders in readme
f715cf52f9cacbcb93e04a120a9401154dc6b752
<ide><path>README.md <ide> within webpack itself use this plugin interface. This makes webpack very <ide> | [mini-css-extract-plugin][mini-css] | ![mini-css-npm] | ![mini-css-size] | Extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. | <ide> | [compression-webpack-plugin...
1
Javascript
Javascript
use fb images in rntester app
14fcda880c5d0561963001c9aa5d979216493159
<ide><path>RNTester/e2e/test-init.js <ide> * <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <ide> */ <ide> <ide> /* eslint-env jasmine */ <add>/* global device */ <ide> <ide> const detox = require('det...
4
Go
Go
fix platform passing in image adapter
8b0a1ca8a5316718a8fde1429a286dad3ff1d80b
<ide><path>builder/builder-next/adapters/containerimage/pull.go <ide> func (p *puller) Snapshot(ctx context.Context) (cache.ImmutableRef, error) { <ide> return nil, err <ide> } <ide> <add> platform := platforms.Only(p.platform) <ide> var ( <ide> schema1Converter *schema1.Converter <ide> handlers []imag...
1
Text
Text
add documentation for save and load functions
69b69e402a776d01cdb1af0800bfe0139af1cf2d
<ide><path>docs/sources/models.md <ide> Linear stack of layers. <ide> model = keras.models.Sequential() <ide> ``` <ide> - __Methods__: <del> - __add(layer)__: Add a layer to the model. <del> - __compile(optimizer, loss, class_mode="categorical")__: <add> - __add__(layer): Add a layer to the model. <add> - ...
1
PHP
PHP
update method usage to match changes in 3.0
e5bd7a96ebe71419669b2e207fcadb09bceab6ee
<ide><path>Cake/Controller/Component/PaginatorComponent.php <ide> public function paginate($object, $settings = array(), $whitelist = array()) { <ide> $count = 0; <ide> } else { <ide> $parameters = compact('conditions'); <del> $count = $object->find($type, array_merge($parameters, $extra))->total(); <add> $...
1
Java
Java
log stomp error frames at error level
d52f07aa1b83208dd84b65d2a4ba724b3a0227ff
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> public void handleMessage(Message<byte[]> message) { <ide> StompHeaderAccessor headerAccessor = <ide> MessageHeaderAccessor.getAccessor(message, StompHeaderAccessor.class); <ide> <add> ...
1
Python
Python
enable input spec checking for functional models
db87dd5b06dddbc8254d6eabeae26ec0eb70afd9
<ide><path>research/object_detection/models/keras_models/resnet_v1_tf2_test.py <ide> class ResnetShapeTest(test_case.TestCase, parameterized.TestCase): <ide> }) <ide> def test_output_shapes(self, resnet_type, output_layer_names): <ide> if resnet_type == 'resnet_v1_34': <del> model = resnet_v1.resnet_v1...
1
Javascript
Javascript
update the uglifyjs code
f4b5d3fc51cfb2b62f182e88b85386b4456c080d
<ide><path>build/lib/parse-js.js <ide> function parse($TEXT, exigent_mode, embed_tokens) { <ide> return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end); <ide> }; <ide> <del> var statement = embed_tokens ? function() { <del> var start = S.token; <del...
3
PHP
PHP
fix queued mailables
a4247f0c6c0c9c866109bb76ca255f5cf7503f06
<ide><path>src/Illuminate/Mail/MailableMailer.php <ide> public function bcc($users) <ide> public function send(Mailable $mailable) <ide> { <ide> if ($mailable instanceof ShouldQueue) { <del> return $this->queue($this->fill($mailable)); <add> return $this->queue($mailable); <ide> ...
1
Python
Python
fix steps per epoch and tensorboard logging
9f34ac99df64022a815f6d3093c22e563398b79f
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run_imagenet_with_keras(flags_obj): <ide> time_callback = TimeHistory(flags_obj.batch_size) <ide> <ide> tesorboard_callback = tf.keras.callbacks.TensorBoard( <del> log_dir=flags_obj.model_dir, <del> update_freq="batch") # Remove this if don't...
1
Mixed
Javascript
improve errors thrown in header validation
11a9f36cae0d1e6e11c9f40ec82d9f887aa0a911
<ide><path>doc/api/errors.md <ide> requests and responses. <ide> <a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a> <ide> ### ERR_HTTP2_INVALID_HEADER_VALUE <ide> <del>Used to indicate that an invalid HTTP/2 header value has been specified. <add>Used to indicate that an invalid HTTP2 header value has been specified. <ide> <...
5
Python
Python
apply `funcattrs` fixer. closes
80af580d76cbd18a5c91851d8b404636d8acd2a9
<ide><path>doc/sphinxext/phantom_import.py <ide> def base_cmp(a, b): <ide> doc = "%s%s\n\n%s" % (funcname, argspec, doc) <ide> obj = lambda: 0 <ide> obj.__argspec_is_invalid_ = True <del> obj.func_name = funcname <add> obj.__name__ = funcname <ide> ...
7
Javascript
Javascript
improve soundness of reactdomfiberinput typings
33602d435a351404bc8a29b2dc461fc376e1cbaf
<ide><path>packages/react-dom/src/client/ReactDOMFiberInput.js <ide> import warning from 'shared/warning'; <ide> <ide> import * as DOMPropertyOperations from './DOMPropertyOperations'; <ide> import {getFiberCurrentPropsFromNode} from './ReactDOMComponentTree'; <add>import {getSafeValue, safeValueToString} from './Safe...
2
Javascript
Javascript
set default timeout in agent keepsocketalive
0413accc6b6e2b81784ab959b400236e4588b123
<ide><path>lib/_http_agent.js <ide> function Agent(options) { <ide> socket._httpMessage = null; <ide> this.removeSocket(socket, options); <ide> <del> const agentTimeout = this.options.timeout || 0; <del> if (socket.timeout !== agentTimeout) { <del> socket.setTimeout(agentTimeout); <del> } <del> <...
2
Python
Python
add a generic heap (#906)
5d20dbfb98a19634db0961318f5378f50e94c428
<ide><path>data_structures/data_structures/heap/heap_generic.py <add>class Heap(object): <add> """A generic Heap class, can be used as min or max by passing the key function accordingly. <add> """ <add> <add> def __init__(self, key=None): <add> # Stores actual heap items. <add> self.arr = list() ...
1
Ruby
Ruby
use manpages method on dev-cmd/update_maintainers
561602fa5132bf33c61cbd3dcd4306ffde014a7d
<ide><path>Library/Homebrew/dev-cmd/update-maintainers.rb <ide> <ide> require "cli/parser" <ide> require "utils/github" <del> <del># TODO: move function to manpages.rb and require that instead <del>require "dev-cmd/generate-man-completions" <add>require "manpages" <ide> <ide> module Homebrew <ide> extend T::Sig <id...
1
Python
Python
add progress bar for convert_examples_to_features
d7906165a329c17e6e49d5069e9b21fa37d50773
<ide><path>examples/utils_squad.py <ide> import math <ide> import collections <ide> from io import open <add>from tqdm import tqdm <ide> <ide> from transformers.tokenization_bert import BasicTokenizer, whitespace_tokenize <ide> <ide> def convert_examples_to_features(examples, tokenizer, max_seq_length, <ide> # f ...
1
PHP
PHP
remove mixed types and unused parameters
65667b17dae0d4790f7747181e1d3e5f65e5910f
<ide><path>tests/TestCase/Filesystem/FileTest.php <ide> public function testLastChange() <ide> */ <ide> public function testWrite() <ide> { <del> if (!$tmpFile = $this->_getTmpFile()) { <del> return false; <del> } <add> $tmpFile = $this->_getTmpFile(); <ide> if (file...
1
Ruby
Ruby
fix directory leak in test_argv
98e01d2b83710f5317447a9857cf1b98d14f19d2
<ide><path>Library/Homebrew/test/test_ARGV.rb <ide> def test_argv_kegs <ide> @argv << 'mxcl' <ide> assert_equal 1, @argv.kegs.length <ide> ensure <del> keg.rmtree <add> keg.parent.rmtree <ide> end <ide> <ide> def test_argv_named
1
Java
Java
improve routerfunction composition
54e2df2e0e0ea9b727b9bf222a1852568433629e
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License");...
1
Ruby
Ruby
make use of to_xml and to_json in tests
42fa2714c5005bb50679bf9a081d8bf0774f7eec
<ide><path>activeresource/test/cases/base_test.rb <ide> def test_exists_with_410_gone <ide> <ide> def test_to_xml <ide> matz = Person.find(1) <del> xml = matz.encode <add> encode = matz.encode <add> xml = matz.to_xml <add> <add> assert encode, xml <ide> assert xml.include?('<?xml version="1.0" en...
1
Ruby
Ruby
use sprockets prepend_path if its available
54823fe6b93d75a90cd627e3852669b5721fdd1f
<ide><path>railties/lib/rails/engine.rb <ide> def load_seed <ide> end <ide> <ide> initializer :append_assets_path do |app| <del> app.config.assets.paths.unshift(*paths["vendor/assets"].existent) <del> app.config.assets.paths.unshift(*paths["lib/assets"].existent) <del> app.config.assets.paths.un...
1
PHP
PHP
fix regex for failing test on 5.2
e58e3c5314dbb7fd882e54c324a4984b711d8c08
<ide><path>lib/Cake/Utility/CakeTime.php <ide> public static function listTimezones($filter = null, $country = null, $group = t <ide> } <ide> if (version_compare(PHP_VERSION, '5.3.0', '<')) { <ide> if ($regex === null) { <del> $regex = '#^(Africa|America|Antartica|Arctic|Asia|Atlantic|Australia|Europe|Indian|...
1
Python
Python
resize model when special tokenizer present
aa92a184d2b92faadec975139ad55e2ae749362c
<ide><path>examples/run_lm_finetuning.py <ide> def train(args, train_dataset, model, tokenizer): <ide> <ide> global_step = 0 <ide> tr_loss, logging_loss = 0.0, 0.0 <add> model.resize_token_embeddings(len(tokenizer)) <ide> model.zero_grad() <ide> train_iterator = trange(int(args.num_train_epochs), de...
1
Javascript
Javascript
improve deepequal perf for large input
7e5f500c9861708e221e1e5e1d42e92af234583b
<ide><path>lib/assert.js <ide> function _deepEqual(actual, expected, strict, memos) { <ide> // Note: this accounts for both named and indexed properties on Arrays. <ide> <ide> // Use memos to handle cycles. <del> memos = memos || { actual: [], expected: [] }; <del> const actualIndex = memos.actual.indexOf(actual...
1