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
add link to doc with social processes
9bc00fd66c56a427bb3ccff541dc0bcd670d93aa
<ide><path>doc/contributing/suggesting-social-media-posts.md <add># Suggesting Social Media Posts <add> <add>Node.js social media is managed by OpenJS Foundation staff. The processes are <add>documented in <add>[Node.js Social Amplification Request Guidelines](https://docs.google.com/document/d/1yrYZJ2twrbpUuScbo3rmN_v...
1
Java
Java
copy cookies to serverresponse builders
4ca27db0ccc35b31ac7a9fdfd66a9a6fd91d13ca
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilder.java <ide> public EntityResponse.Builder<T> header(String headerName, String... headerValue <ide> } <ide> <ide> @Override <del> public EntityResponse.Builder<T> headers(HttpHeaders headers) { <del> this.head...
7
Python
Python
fix typo and grammar errors
527ce2981bc4efe7b5d6ad273880d93f4a26d7fb
<ide><path>official/core/base_task.py <ide> def logging_dir(self) -> str: <ide> def initialize(self, model: tf.keras.Model): <ide> """A callback function used as CheckpointManager's init_fn. <ide> <del> This function will be called when no checkpoint found for the model. <add> This function will be called ...
1
Ruby
Ruby
add gtk-mac-integration 2.1.3
40c3184f82d15e0a1cfb9d40c084ad9f50ab09b5
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_specs <ide> gnome_devel_whitelist = %w[ <ide> libart 2.3.21 <ide> pygtkglext 1.1.0 <add> gtk-mac-integration 2.1.3 <ide> ].each_slice(2).to_a.map do |formula, version| <ide> [formula, version.split(".")[0..1].join("....
1
Javascript
Javascript
check writereport when error with one line stack
1c989c9f546cc811ebbd1e930a9a57caf4fc80e0
<ide><path>test/report/test-report-writereport.js <ide> function validate() { <ide> validate(); <ide> } <ide> <add>{ <add> // Test with an error with one line stack <add> const error = new Error(); <add> error.stack = 'only one line'; <add> process.report.writeReport(error); <add> validate(); <add>} <add> <ide>...
1
Python
Python
add classes for exceptions
b2c0c1df52e7dc083b9e52633ce2afccc9e86f0d
<ide><path>libcloud/dns/types.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> <add>from libcloud.common.types import LibcloudError <add> <ide> __all__ = [ <del> 'RecordType' <add> 'RecordType', <add> 'ZoneError', <add> 'ZoneDoesNot...
1
PHP
PHP
fix broken primary key check for sqliteschema
e6deb49ea968695c31765c5da1cdb8fded2787b5
<ide><path>src/Database/Schema/SqliteSchema.php <ide> public function convertColumnDescription(Table $table, $row) { <ide> 'null' => !$row['notnull'], <ide> 'default' => $row['dflt_value'] === null ? null : trim($row['dflt_value'], "'"), <ide> ]; <del> if ($row['pk'] === true) { <add> if ($row['pk']) { <ide> ...
1
PHP
PHP
add test for dynamic relations of models
7e05da7dcd7bbceb3f36a047e091b02d630f5cfb
<ide><path>tests/Database/DatabaseEloquentDynamicRelationsTest.php <add><?php <add> <add>namespace Illuminate\Tests\Database; <add> <add>use Illuminate\Database\Eloquent\Builder; <add>use Illuminate\Database\Eloquent\Model; <add>use Illuminate\Database\Eloquent\Relations\HasMany; <add>use Illuminate\Database\Eloquent\R...
2
PHP
PHP
fix tests for mysql driver
f128a349523577a8d193caa614864113c791dcc4
<ide><path>src/Database/Driver/Mysql.php <ide> public function connect() <ide> $this->_connect($dsn, $config); <ide> <ide> if (!empty($config['init'])) { <add> $connection = $this->connection(); <ide> foreach ((array)$config['init'] as $command) { <del> $this->conn...
2
Ruby
Ruby
reset time.zone to avoid leaking into other tests
65d7aa5811075cccf1f0b7504372cad2ed3f8e7f
<ide><path>activejob/test/cases/timezones_test.rb <ide> class TimezonesTest < ActiveSupport::TestCase <ide> end <ide> <ide> assert_equal "Happy New Year!", JobBuffer.last_value <add> ensure <add> Time.zone = nil <ide> end <ide> end
1
Javascript
Javascript
remove flare bundles from build
2512c309e34f0207d29c19392d144edab719f347
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> externals: ['react'], <ide> }, <ide> <del> { <del> bundleTypes: [ <del> UMD_DEV, <del> UMD_PROD, <del> NODE_DEV, <del> NODE_PROD, <del> FB_WWW_DEV, <del> FB_WWW_PROD, <del> ], <del> moduleType: NON_FIBER_RE...
1
Mixed
Ruby
add implicit to path conversion to uploaded file
20543c049625784a91944efdebc1d0c397406f21
<ide><path>actionpack/CHANGELOG.md <add>* `ActionDispatch::Http::UploadedFile` now delegates `to_path` to its tempfile. <add> <add> This allows uploaded file objects to be passed directly to `File.read` <add> without raising a `TypeError`: <add> <add> uploaded_file = ActionDispatch::Http::UploadedFile.ne...
3
Javascript
Javascript
remove a broken jqlite cache clearing
feee36c8c9e17d47e044c085012128108ce36b76
<ide><path>test/ngMock/angular-mocksSpec.js <ide> describe('sharedInjector', function() { <ide> define(); <ide> sdescribe.root.run(); <ide> } finally { <del> // avoid failing testability for the additional <del> // injectors etc created <del> angular.element.cache = {}; <del> ...
1
Python
Python
remove name keyword argument to register
a31e8ce4c91f5d9ff41863456836f53082e54199
<ide><path>celery/registry.py <ide> def autodiscover(self): <ide> """Autodiscovers tasks using :func:`celery.discovery.autodiscover`.""" <ide> discovery.autodiscover() <ide> <del> def register(self, task, name=None): <add> def register(self, task): <ide> """Register a task in the task reg...
1
Text
Text
add blurb about angularjs to readme.md
a8b04004e3200b988543b0f2842d9071988d10c9
<ide><path>README.md <ide> AngularJS <ide> ========= <ide> <add>AngularJS lets you write client-side web applications as if you had a smarter browser. It lets use <add>good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s <add>syntax to express your application’s components c...
1
Text
Text
add section on mixins
9f1fc32cf45be8c4436f1e97656a681f963a08d7
<ide><path>guide/english/css/css-preprocessors/index.md <ide> Yet another feature which CSS lacks are If/Else statements. These will run a set <ide> ``` <ide> Here, the background color will change color depending on the width of the page's body. <ide> <add>### Mixins <add>There are probably portions of your styling ...
1
PHP
PHP
convert arrayable attributes to array
29560b5e3c8a115e358df1ffef40baf3de019c90
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> public function attributesToArray() <ide> foreach ($this->getArrayableAppends() as $key) { <ide> $attributes[$key] = $this->mutateAttributeForArray($key, null); <ide> } <add> <add> foreach ($attribute...
1
Javascript
Javascript
add highlights class for package compatibility
207cd310549b26eddcea46b48017f8f4e38a495c
<ide><path>src/text-editor-component.js <ide> class LinesTileComponent { <ide> <ide> return $.div( <ide> { <add> className: 'highlights', <ide> style: { <ide> position: 'absolute', <ide> contain: 'strict',
1
Text
Text
update time to first byte (ttfb) link
a0275f27508d5d726d8afb9ef472068b66f3484c
<ide><path>docs/basic-features/data-fetching/get-server-side-props.md <ide> The [`getServerSideProps` API reference](/docs/api-reference/data-fetching/get-s <ide> <ide> ## When should I use getServerSideProps <ide> <del>You should use `getServerSideProps` only if you need to pre-render a page whose data must be fetch...
1
Go
Go
check nil terminal to avoid panic
7f0d304f3767d4f33d23480a3ca2f54bb72938b7
<ide><path>container/container.go <ide> func (container *Container) ExitOnNext() { <ide> // Resize changes the TTY of the process running inside the container <ide> // to the given height and width. The container must be running. <ide> func (container *Container) Resize(h, w int) error { <add> if container.Command.Proc...
1
Javascript
Javascript
use countdown timer
7d2b08a3b55ef46719436a1445e207e34d6a355d
<ide><path>test/parallel/test-http-response-status-message.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> const http = require('http'); <ide> const net = require('net'); <del> <del>let testsComplete = 0; <add>const Countdown = require('../common/countdown'); <ide> <ide> const testCases = ...
1
PHP
PHP
add reference to model in massassignmentexception
d84a0e2334d0732f560b34b7cb5307a4ea4389c2
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function fill(array $attributes) <ide> if ($this->isFillable($key)) { <ide> $this->setAttribute($key, $value); <ide> } elseif ($totallyGuarded) { <add> $model = get_class($this); <ide> ...
1
Java
Java
implement review feedback
9e79b344ca02c7dd04d59f5c7567e29947b79c22
<ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/support/StringDecoder.java <ide> public class StringDecoder extends AbstractDecoder<String> { <ide> <ide> public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8; <del> public static final String EMPTY = ""; <ide> <ide> private...
2
Javascript
Javascript
expose `getviewbounds` on `viewutils`
dfbb59fa85cce50cba299b5fdbb85b89a28e07fa
<ide><path>packages/ember-views/lib/index.js <ide> import Ember from 'ember-runtime'; <ide> import jQuery from 'ember-views/system/jquery'; <ide> import { <ide> isSimpleClick, <add> getViewBounds, <ide> getViewClientRects, <ide> getViewBoundingClientRect, <ide> getRootViews, <ide> Ember.ViewTargetActionSupport...
1
Python
Python
add tests for local storage lock context manager
b0921294333a8c44da5c575b825a308f0fd724a6
<ide><path>libcloud/storage/drivers/local.py <ide> class LockLocalStorage(object): <ide> A class to help in locking a local path before being updated <ide> """ <ide> <del> def __init__(self, path): <add> def __init__(self, path, timeout=5): <ide> self.path = path <add> self.lock_acquire_ti...
2
Javascript
Javascript
simplify nextmissingchunk(), getendchunk()
e5477c3156a1b5dcb8f7ba3763c5d327d11cc573
<ide><path>src/core/chunked_stream.js <ide> var ChunkedStream = (function ChunkedStreamClosure() { <ide> }, <ide> <ide> nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) { <del> var chunk, n; <del> for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) { <del> if (!th...
1
Ruby
Ruby
remove all references to slave in the codebase
3e81490717a314437f9123d86fa3e9dc55558e95
<ide><path>railties/test/application/console_test.rb <ide> class Post < ActiveRecord::Base <ide> CODE <ide> system "#{app_path}/bin/rails runner 'Post.connection.create_table :posts'" <ide> <del> @master, @slave = PTY.open <add> @primary, @replica = PTY.open <ide> end <ide> <ide> def teardown <ide> ...
4
Javascript
Javascript
remove unused function
590bc734bb33163e794b4d18cae173b2fa0828de
<ide><path>lib/internal/repl.js <ide> module.exports.createInternalRepl = createRepl; <ide> // The debounce is to guard against code pasted into the REPL. <ide> const kDebounceHistoryMS = 15; <ide> <del>// XXX(chrisdickinson): hack to make sure that the internal debugger <del>// uses the original repl. <del>function r...
1
PHP
PHP
update typhints for command/
82797c1c874efcc4cebe99318527eeec060ec082
<ide><path>src/Command/HelpCommand.php <ide> */ <ide> namespace Cake\Command; <ide> <add>use ArrayIterator; <ide> use Cake\Console\Arguments; <ide> use Cake\Console\Command; <ide> use Cake\Console\CommandCollection; <ide> public function execute(Arguments $args, ConsoleIo $io): int <ide> * @param \ArrayIterator ...
2
Javascript
Javascript
fix helper blueprint for module unification
fbce6687d9db75f1b3445853097fe8e8a46755bf
<ide><path>blueprints/helper/index.js <ide> const path = require('path'); <ide> module.exports = { <ide> description: 'Generates a helper function.', <ide> <add> filesPath() { <add> let rootPath = isModuleUnificationProject(this.project) ? 'mu-files' : 'files'; <add> return path.join(this.path, rootPath); <ad...
4
Javascript
Javascript
add support for templates fetched from npm
17c175a149bc410a9b167b31f13474d8c6e9832c
<ide><path>local-cli/generator/copyProjectTemplateAndReplace.js <ide> const walk = require('../util/walk'); <ide> * @param srcPath e.g. '/Users/martin/AwesomeApp/node_modules/react-native/local-cli/templates/HelloWorld' <ide> * @param destPath e.g. '/Users/martin/AwesomeApp' <ide> * @param newProjectName e.g. 'Aweso...
3
Python
Python
fix line length
ad942e22121a0cdae253f16de713bef97cacccc6
<ide><path>research/object_detection/exporter_lib_tf2_test.py <ide> def test_export_saved_model_and_run_inference_with_side_inputs( <ide> side_input_2 = np.ones((2, 2), dtype=np.uint8) <ide> if (use_default_serving): <ide> detections = detect_fn_sig(input_tensor=image, <del> ...
1
PHP
PHP
add tests for deprecated methods
92837bd8f2d639c6d81b32dc72f19b5b4600fba0
<ide><path>tests/TestCase/Mailer/EmailTest.php <ide> public function assertLineLengths($message) <ide> ); <ide> } <ide> } <add> <add> /** <add> * Test deprecated methods <add> * <add> * @return void <add> */ <add> public function testDeprecatedMethods() <add> { <add> ...
1
Java
Java
add @ignored test case to reproduce spr-10243
19eecb151b8a0e2b2dad1aa4baf4c552587342fb
<ide><path>spring-context/src/test/java/org/springframework/validation/beanvalidation/ValidatorFactoryTests.java <ide> import javax.validation.constraints.NotNull; <ide> <ide> import org.hibernate.validator.HibernateValidator; <add>import org.junit.Ignore; <ide> import org.junit.Test; <ide> <ide> import org.springfra...
1
Javascript
Javascript
add support for stemhw/stemvw/stemsnaph/stemsnapv
63e4f0293f6a0f39b8bb65ba3d0f60c87a973123
<ide><path>fonts.js <ide> var Type1Parser = function() { <ide> * Returns an object containing a Subrs array and a CharStrings array <ide> * extracted from and eexec encrypted block of data <ide> */ <add> function readNumberArray(str, index) { <add> var start = ++index; <add> var count = 0; <add> whil...
1
PHP
PHP
fix trailing space
fe728d73be76efe0bf1d36d9741de2d7a2922c04
<ide><path>src/Routing/Router.php <ide> class Router <ide> <ide> /** <ide> * The route collection routes would be added to. <del> * <add> * <ide> * @var \Cake\Routing\RouteCollection <ide> */ <ide> protected static $_collection;
1
Python
Python
update model to use past
3edfa1d6aaf30247c413fa15f04758b96d04762c
<ide><path>transformers/modeling_ctrl.py <ide> def positional_encoding(position, d_model_size, dtype): <ide> sines = torch.sin(angle_rads[:, 0::2]) <ide> cosines = torch.cos(angle_rads[:, 1::2]) <ide> <del> pos_encoding = torch.cat([sines, cosines], dim=-1).unsqueeze(0) <add> pos_encoding = torch.cat([si...
2
Javascript
Javascript
move transform options into own property
8533c0d8162c635db46db51cb08b116545b02708
<ide><path>packager/src/Bundler/index.js <ide> export type BundlingOptions = {| <ide> +transformer: JSTransformerOptions, <ide> |}; <ide> <del>export type ExtraTransformOptions = {| <del> +inlineRequires?: {+blacklist: {[string]: true}} | boolean, <add>export type ExtraTransformOptions = { <ide> +preloadedModules...
1
Text
Text
fix example of relative workdir
5514afcd88d40a7a9321a966292e9f724eeafc36
<ide><path>docs/sources/reference/builder.md <ide> It can be used multiple times in the one `Dockerfile`. If a relative path <ide> is provided, it will be relative to the path of the previous `WORKDIR` <ide> instruction. For example: <ide> <del> WORKDIR /a WORKDIR b WORKDIR c RUN pwd <add> WORKDIR /a <add> WO...
1
Text
Text
add the text in definition of array.
db6756aaa226a67e2a6868cb85b4a1823bb1db5f
<ide><path>guide/english/cplusplus/arrays/index.md <ide> For example, an array containing 5 integer values called numbers is declared lik <ide> int numbers [5]; <ide> ``` <ide> <del>Initializiation: <add>Initialization with values: <ide> ```cpp <del>//Initialization with values: <ide> int numbers [5] = {1, 2, 3, 4, ...
1
Ruby
Ruby
count assertions instead of tests in report
734f98178261e2ba42df3ff6c39c8950e9eb01ed
<ide><path>ci/qunit-selenium-runner.rb <ide> result = QUnit::Selenium::TestRunner.new(driver).open(ARGV[0], timeout: 60) <ide> driver.quit <ide> <del>puts "Time: #{result.duration} seconds, Total: #{result.tests[:total]}, Passed: #{result.tests[:passed]}, Failed: #{result.tests[:failed]}" <add>puts "Time: #{result.dur...
1
PHP
PHP
fix method order
4e5a70019d22e7415d512c3ef5df2f29bd587419
<ide><path>src/Illuminate/Support/Collection.php <ide> public function random($amount = 1) <ide> <ide> return is_array($keys) ? array_intersect_key($this->items, array_flip($keys)) : $this->items[$keys]; <ide> } <del> <del> /** <del> * Shuffle the items in the collection. <del> * <del> * @return \Illuminate\Sup...
1
Python
Python
add flag to push tf weights directly into main
c3c62b5d2c777ce50039323412599ff5f570ce3c
<ide><path>src/transformers/commands/pt_to_tf.py <ide> def convert_command_factory(args: Namespace): <ide> <ide> Returns: ServeCommand <ide> """ <del> return PTtoTFCommand(args.model_name, args.local_dir, args.no_pr, args.new_weights) <add> return PTtoTFCommand(args.model_name, args.local_dir, args.new_w...
1
Ruby
Ruby
remove unnecessary string interpolation
8c488de3f654af452d1cdfe5be26aca87b29af3c
<ide><path>Library/Homebrew/cask/lib/hbc/cli/info.rb <ide> def self.name_info(cask) <ide> def self.repo_info(cask) <ide> user, repo, token = QualifiedToken.parse(Hbc.all_tokens.detect { |t| t.split("/").last == cask.token }) <ide> remote_tap = Tap.fetch(user, repo) <del> return "#{remote_ta...
1
Ruby
Ruby
use x_tag instead of x_repository_version
ae2196fa57498ba0edad7f43fe0d3d9fa8993468
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def output_update_report <ide> install_core_tap_if_necessary <ide> <ide> updated = false <del> new_repository_version = nil <add> new_tag = nil <ide> <ide> initial_revision = ENV["HOMEBREW_UPDATE_BEFORE"].to_s <ide> current_revision = ENV["H...
1
Javascript
Javascript
improve randomuuid performance
5694f7f0bffbad1dfb7cdbad077144444ff46977
<ide><path>lib/internal/crypto/random.js <ide> 'use strict'; <ide> <ide> const { <add> Array, <ide> BigInt, <ide> FunctionPrototypeBind, <ide> FunctionPrototypeCall, <ide> MathMin, <ide> NumberIsNaN, <ide> NumberIsSafeInteger, <add> NumberPrototypeToString, <add> StringPrototypePadStart, <ide> } = primo...
1
Ruby
Ruby
simplify values_list with more composition
ded9a154241989cc65f4f38d7c9643f2cdf01a65
<ide><path>activerecord/lib/active_record/insert_all.rb <ide> def update_duplicates? <ide> on_duplicate == :update <ide> end <ide> <add> def map_key_with_value <add> inserts.map do |attributes| <add> attributes = attributes.stringify_keys <add> verify_attributes(attributes) <add> <add> ...
1
PHP
PHP
fix php cs
85a96a40833289b6419661b3df46466304f4436e
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> namespace Illuminate\Database\Eloquent; <ide> <ide> use Closure; <del>use InvalidArgumentException; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <add>use InvalidArgumentException; <ide> use Illuminate\Pagination\Paginator; <ide> use I...
1
Python
Python
fix complex casting test on py3.4
a411e89f5188f0f9756ecee25d47a2b758841ce2
<ide><path>celery/tests/utils/test_local.py <ide> def test_complex_cast(self): <ide> class O(object): <ide> <ide> def __complex__(self): <del> return 10.333 <add> return complex(10.333) <ide> <ide> o = Proxy(O) <del> self.assertEqual(o.__complex__(), 10...
1
Javascript
Javascript
update pane specs for async confirm
4fdee7bb8f658923cefe0f04379a05a194fb1c51
<ide><path>spec/pane-spec.js <ide> describe('Pane', () => { <ide> describe('when the item has a uri', () => { <ide> it('saves the item before destroying it', async () => { <ide> itemURI = 'test' <del> confirm.andReturn(0) <add> confirm.andCallFake((options, callback) ...
1
Mixed
Javascript
sanitize env variables
abd8cdfc4e7d0d7f563a9b0f91523fe8395d5e25
<ide><path>doc/api/child_process.md <ide> the first one case-insensitively matching `PATH` to perform command lookup. <ide> This may lead to issues on Windows when passing objects to `env` option that <ide> have multiple variants of `PATH` variable. <ide> <add>On Windows Node.js will sanitize the `env` by removing cas...
3
Go
Go
remove unused variable
08c6575cafd549a9d6688fab218377d73889ba72
<ide><path>distribution/registry_unit_test.go <ide> func testTokenPassThru(t *testing.T, ts *httptest.Server) { <ide> Official: false, <ide> TrimHostname: false, <ide> TLSConfig: nil, <del> //VersionHeader: "verheader", <ide> } <ide> n, _ := reference.ParseNamed("testremotename") <ide> repoInfo := &reg...
1
Ruby
Ruby
add check for /library python
95d7776a905bb89d2bf98407dfab9d12f906d88b
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_enthought_python <ide> end <ide> end <ide> <add>def check_for_library_python <add> if File.exist?("/Library/Frameworks/Python.framework") then <<-EOS.undent <add> A Python is installed in /Library/Frameworks <add> <add> Homebrew only supports build...
1
Ruby
Ruby
do cache clearing in single location
22795d7e306704527137d3c1920bae358b00ab03
<ide><path>Library/Homebrew/test/dependency_collector_spec.rb <ide> def find_requirement(klass) <ide> subject.requirements.find { |req| req.is_a? klass } <ide> end <ide> <del> after do <del> described_class.clear_cache <del> end <del> <ide> describe "#add" do <ide> specify "dependency creation" do <id...
6
Python
Python
add tests for roll function
5bc0a84022c2c65addf306f50eef6f37244ae595
<ide><path>numpy/core/tests/test_numeric.py <ide> def test_set_string_function(self): <ide> np.set_string_function(None, repr=False) <ide> assert_equal(str(a), "[1]") <ide> <add>class TestRoll(TestCase): <add> def test_roll1d(self): <add> x = np.arange(10) <add> xr = np.roll(x, 2) <add...
1
PHP
PHP
remove exceptions no longer used
6bcf9873f0a7a17fab10f115c857e7e3734f0b5b
<ide><path>src/Error/MissingConnectionException.php <del><?php <del>/** <del> * MissingConnectionException class <del> * <del> * PHP 5 <del> * <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Li...
5
Python
Python
fix clone action in kvm
032a7dc3e2517cdb85a9150763751f03e22c983a
<ide><path>libcloud/compute/drivers/libvirt_driver.py <ide> import atexit <ide> import logging <ide> import netaddr <add>import random <ide> <ide> from tempfile import NamedTemporaryFile <ide> from os.path import join as pjoin <ide> def create_node(self, name, disk_size=4, ram=512, <ide> <ide> return True <id...
1
Ruby
Ruby
remove unconditional cask/formula uninstall
915eed4c6427271c5b4c01fa36239361c3680c40
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def migrate_tap_migration <ide> new_tap = Tap.fetch(new_tap_name) <ide> # For formulae migrated to cask: Auto-install cask or provide install instructions. <ide> if new_tap_name == "caskroom/cask" <del> system HOMEBREW_BREW_FILE, "uninstall...
1
Javascript
Javascript
fix the parameter order of before/afterevent
c749fbdf5f8ec08df0261fd8600684ce000a9cf0
<ide><path>src/core/core.plugins.js <ide> function createDescriptors(plugins, options) { <ide> * the event will be discarded. <ide> * @param {Chart} chart - The chart instance. <ide> * @param {IEvent} event - The event object. <del> * @param {object} options - The plugin options. <ide> * @param {boolean} replay - T...
1
PHP
PHP
pass the path to the filter event
633c2bde836f5a0b3898e85a28683ada645b6522
<ide><path>laravel/view.php <ide> public function get() <ide> // us do something like run the contents through Jade, etc. <ide> if (Event::listeners('view.filter')) <ide> { <del> return Event::first('view.filter', $content); <add> return Event::first('view.filter', array($content, $this->path)); <ide> } <id...
1
Javascript
Javascript
handle possible side effect
cb05e419bc9b68b45022096b82255585e8f3c4af
<ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js <ide> module.exports = class HarmonyImportDependencyParserPlugin { <ide> expression => { <ide> if (expression.operator !== "in") return; <ide> <del> const leftPart = parser.evaluateExpression(expression.left).asString(); <add> const leftPa...
1
Javascript
Javascript
remove unused argument in test
1f40774763a83c1ab66d111a3b5a6b4870dd577d
<ide><path>packages/ember-glimmer/tests/integration/components/local-lookup-test.js <ide> moduleFor('Components test: local lookup', class extends RenderingTest { <ide> this.assertText('Nested template says: Hi!', 'Re-render works'); <ide> } <ide> <del> ['@test tagless blockless component can lookup local templ...
1
Mixed
Ruby
remove -j (--javascript) option from `rails new`
42198064c35ff3b701496309f90df2abc229efbe
<ide><path>railties/CHANGELOG.md <add>* Remove -j (--javascript) option from `rails new` command <add> <add> *claudiob* <add> <add> <ide> Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/railties/CHANGELOG.md) for previous changes. <ide><path>railties/lib/rails/generators/app_base.rb <ide> d...
3
Ruby
Ruby
fix access to relocated method
37b817ed394986808d2fdb595c272ede7a67f20d
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def run <ide> <ide> <ide> unless output.empty? <del> @output = fix_encoding!(output) <add> @output = Homebrew.fix_encoding!(output) <ide> puts @output if (failed? || @puts_output_on_success) && !verbose <ide> File.write(log_file_pat...
1
Ruby
Ruby
add missing require
17fb1b6dd87b531d26b8bfe606cce55a5106ab2c
<ide><path>Library/Homebrew/cmd/deps.rb <ide> require "ostruct" <ide> require "cli/parser" <ide> require "cask/caskroom" <add>require "cask_dependent" <ide> <ide> module Homebrew <ide> extend DependenciesHelpers
1
Javascript
Javascript
fix action tests for ie
664c34812b4f31b84dc67e186741b60813f6926e
<ide><path>packages/ember-application/tests/system/action_url_test.js <ide> test("it does not generate the URL when href property is not specified", functio <ide> ok(!view.$().html().match(/href=['"]\/foo\/bar['"]/), "The html (" + view.$().html() + ") has the href /foo/bar in it"); <ide> }); <ide> <del>test("it set...
1
Ruby
Ruby
remove unnecessary /scripts; feedback fixes
98f0d63c9510e930af255ef5e3abb0e7cf53e05f
<ide><path>Library/Homebrew/utils/livecheck.rb <ide> <ide> module Livecheck <ide> def livecheck_formula_response(formula_name) <del> ohai "- livecheck formula : #{formula_name}" <del> command_args = [ <del> "brew", <del> "livecheck", <del> formula_name, <del> "--quiet", <del> ] <add> ...
3
Python
Python
change github url to website
6afba8c6ba9a2d746825a690470fd531606fc2f1
<ide><path>setup.py <ide> def run_setup(exts): <ide> author='Matthew Honnibal', <ide> author_email='honnibal@gmail.com', <ide> version=VERSION, <del> url="http://honnibal.github.io/spaCy/", <add> url="https://spacy.io", <ide> package_data=PACKAGE_DATA, <ide> ext_mod...
1
Python
Python
fix loss loss logging for multi-gpu compatibility
4faeb38b51055d329f4cc5839cd1fefbe27f9d8f
<ide><path>run_classifier_pytorch.py <ide> def main(): <ide> label_ids = label_ids.to(device) <ide> <ide> loss, _ = model(input_ids, segment_ids, input_mask, label_ids) <del> total_tr_loss += loss.item() <add> total_tr_loss += loss.sum().item() # sum() is t...
1
Python
Python
update platforms.py "superuser privileges" check
8a4056087aeac6a5be79a2db4d6f06975f754609
<ide><path>celery/bin/worker.py <ide> from celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, <ide> CeleryDaemonCommand, CeleryOption, <ide> handle_preload_options) <add>from celery.exceptions import SecurityError <ide> from celery.platforms import (EX_FAI...
4
Javascript
Javascript
use strict mode and fix violators
92fa629d107cf4de1cb486366d783e890e153306
<ide><path>fonts.js <ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / <ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <ide> <add>"use strict"; <add> <ide> /** <ide> * Maximum file size of the font. <ide> */ <ide> var Type1Parser = function() { <ide> thi...
5
Go
Go
define pushresult in api types
13222160e84a01db2174c0dbf3000761a756fd72
<ide><path>api/types/types.go <ide> type SecretCreateResponse struct { <ide> type SecretListOptions struct { <ide> Filters filters.Args <ide> } <add> <add>// PushResult contains the tag, manifest digest, and manifest size from the <add>// push. It's used to signal this information to the trust code in the client <add>...
3
Text
Text
replace process.stdout.fd with 1
91d1b60d36b2aa07c996c2418938a29115b99d92
<ide><path>doc/api/async_hooks.md <ide> created, while `triggerAsyncId` shows *why* a resource was created. <ide> The following is a simple demonstration of `triggerAsyncId`: <ide> <ide> ```js <add>const { fd } = process.stdout; <add> <ide> async_hooks.createHook({ <ide> init(asyncId, type, triggerAsyncId) { <ide> ...
1
Ruby
Ruby
handle range with excluded end
8a32d3796778fc1f151a2259fa3b32b9d3c8d56b
<ide><path>activerecord/lib/active_record/relation/predicate_builder.rb <ide> def build_from_hash(attributes, default_table) <ide> attribute = arel_table[column] || Arel::Attribute.new(arel_table, column.to_sym) <ide> <ide> case value <del> when Array, Range, ActiveRecord::Associations::As...
1
Python
Python
fix type annotations for stack.py
c0ed031b3fcf47736f98dfd89e2588dbffceadde
<ide><path>data_structures/stacks/balanced_parentheses.py <ide> def balanced_parentheses(parentheses: str) -> bool: <ide> >>> balanced_parentheses("") <ide> True <ide> """ <del> stack = Stack() <add> stack: Stack[str] = Stack() <ide> bracket_pairs = {"(": ")", "[": "]", "{": "}"} <ide> for bra...
4
Text
Text
add gitter badge
687a07ed57e1c59d7c3c1f7805fe8e0045030bdf
<ide><path>README.md <ide> Immutable collections for JavaScript <ide> ==================================== <ide> <del>[![Build Status](https://travis-ci.org/facebook/immutable-js.svg?branch=master)](https://travis-ci.org/facebook/immutable-js) <add>[![Build Status](https://travis-ci.org/facebook/immutable-js.svg?branc...
1
Javascript
Javascript
remove the `xmlhttprequest.response` polyfill
4880200cd40e4194bcff8d47864fefcf6e62256b
<ide><path>src/shared/compatibility.js <ide> if (typeof PDFJS === 'undefined') { <ide> <ide> PDFJS.compatibilityChecked = true; <ide> <del>// No XMLHttpRequest#response? <del>// Support: IE<11, Android <4.0 <del>(function checkXMLHttpRequestResponseCompatibility() { <del> if (typeof XMLHttpRequest === 'undefined') {...
1
Ruby
Ruby
simplify unbrewed file whitelists
892d7dc130a6cf88600b71a388f32b9f27874e5c
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def __check_stray_files(dir, pattern, white_list, message) <ide> Dir[pattern].select { |f| File.file?(f) && !File.symlink?(f) } <ide> } <ide> <del> keys = white_list.keys <ide> bad = files.reject { |file| <del> keys.any? { |pat| File.fnmatch?(pat, file) } <ad...
1
Javascript
Javascript
remove bone.skin assignment
5cb64c0324cf67c5dff50aca13c7e6a5f50e9d78
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> if ( jointNode ) { <ide> <del> jointNode.skin = child; <ide> bones.push( jointNode ); <ide> <ide> var m = skinEntry.inverseBindMatrices.array;
1
Go
Go
remove obsolete workaround
9200fdd197f7c80c495597104928596516b36f41
<ide><path>daemon/create.go <ide> func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status { <ide> job.Errorf("IPv4 forwarding is disabled.\n") <ide> } <ide> container.LogEvent("create") <del> // FIXME: this is necessary because daemon.Create might return a nil container <del> // with a non-nil error. T...
1
Javascript
Javascript
fix memory leak in scrollviewstickyheader
3a0927ce4336a1fb8ab7daf10e3048216fb34ce3
<ide><path>Libraries/Components/ScrollView/ScrollViewStickyHeader.js <ide> class ScrollViewStickyHeader extends React.Component<Props, State> { <ide> this.setState({nextHeaderLayoutY: y}); <ide> } <ide> <add> componentWillUnmount() { <add> if (this._translateY != null && this._animatedValueListenerId != null...
1
Text
Text
add teletype focus for the coming week
48602627b6626f9f4c08888ab945ca202b9ae671
<ide><path>docs/focus/2018-04-16.md <ide> - GitHub Package <ide> - Update React to 16.3 (@smashwilson) <ide> - Get [atom/squeegpg](https://github.com/atom/squeegpg) to the point where we can use it to sign a commit from atom/github (without needing to override the pinentry yet). (@smashwilson) <add>- Teletype <add>...
1
Ruby
Ruby
update permissions policy list
13b0c6330abc2dc63925e778d5ed8d28ff016899
<ide><path>actionpack/lib/action_dispatch/http/permissions_policy.rb <ide> def permissions_policy=(policy) <ide> fullscreen: "fullscreen", <ide> geolocation: "geolocation", <ide> gyroscope: "gyroscope", <add> hid: "hid", <add> idle_detection: ...
1
Javascript
Javascript
fix typo in $browser mock
d6db4b174940782867d1cf42e1e0152046fe05c1
<ide><path>src/angular-mocks.js <ide> function MockBrowser() { <ide> function() { <ide> if (self.lastUrl != self.url) { <ide> listener(); <del> self.lastUrl == self.url <add> self.lastUrl = self.url; <ide> } <ide> } <ide> );
1
Text
Text
add documentation for formula renames
4b31fcd07296bbe33bc309f147a4e27bd39c7af8
<ide><path>share/doc/homebrew/Rename-A-Formula.md <add># Renaming a Formula <add> <add>Sometimes software and formulae need to be renamed. To rename core formula <add>you need: <add> <add>1. Rename formula file and its class to new formula. New name must meet all the rules of naming. Fix any test failures that may occu...
1
Javascript
Javascript
optimize ray.applymatrix4 performance
8743685a9556f13dbfdb7028f885ab844ce3b891
<ide><path>src/math/Ray.js <ide> Object.assign( Ray.prototype, { <ide> <ide> applyMatrix4: function ( matrix4 ) { <ide> <del> this.direction.add( this.origin ).applyMatrix4( matrix4 ); <ide> this.origin.applyMatrix4( matrix4 ); <del> this.direction.sub( this.origin ); <del> this.direction.normalize(); <add> th...
1
Text
Text
add a checklist item for `brew man`
34ea8cbc9d0e45b8c30dc05792a3f3ddd82cef9e
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> - [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/test/PATH_spec.rb). <ide> - [ ] Have you successfully run `brew style` with your changes locally? <ide> - [ ] Have you successfully run `br...
1
Ruby
Ruby
handle attempts to load invalid casks
ea9977f3c3ee45925debd032fdd373440a2c92d1
<ide><path>Library/Homebrew/formula_installer.rb <ide> def link(keg) <ide> <ide> cask_installed_with_formula_name = begin <ide> Cask::CaskLoader.load(formula.name).installed? <del> rescue Cask::CaskUnavailableError <add> rescue Cask::CaskUnavailableError, Cask::CaskInvalidError <ide> false <ide> ...
1
PHP
PHP
change the default namespace for new commands
cc387a9e5068cb7350b1161a0b38bacedbb88544
<ide><path>src/Illuminate/Foundation/Console/ConsoleMakeCommand.php <ide> protected function getStub() <ide> */ <ide> protected function getDefaultNamespace($rootNamespace) <ide> { <del> return $rootNamespace.'\Console'; <add> return $rootNamespace.'\Console\Commands'; <ide> } <ide> <ide> /**
1
PHP
PHP
remove overwritten methods on repository interface
51c6bb8e6430dcf5479565a02ceca52884393daf
<ide><path>src/Illuminate/Contracts/Cache/Repository.php <ide> <ide> interface Repository extends CacheInterface <ide> { <del> /** <del> * Determine if an item exists in the cache. <del> * <del> * @param string $key <del> * @return bool <del> */ <del> public function has($key); <del> <del> ...
1
Python
Python
use a raw string for the fromstring docstring
92271ec06b7abc5b6c3daf2e94563c575983d436
<ide><path>numpy/core/records.py <ide> def fromrecords(recList, dtype=None, shape=None, formats=None, names=None, <ide> <ide> def fromstring(datastring, dtype=None, shape=None, offset=0, formats=None, <ide> names=None, titles=None, aligned=False, byteorder=None): <del> """Create a record array from b...
1
PHP
PHP
fix casing issue on hascolumn
ee25cd0f7ec18be23e902531b984ef5278b4aff5
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> public function hasColumn($table, $column) <ide> { <ide> $schema = $this->connection->getDoctrineSchemaManager(); <ide> <del> return in_array($column, array_keys($schema->listTableColumns($table))); <add> $columns = array_keys(array_change_key_case($sche...
1
Javascript
Javascript
use arrow functions to simplify code
fc37d69a9a0e1c89fe0065e6d7d61e17ae68cd86
<ide><path>bin/run-tests.js <ide> function generateTestsFor(packageName) { <ide> return; <ide> } <ide> <del> testFunctions.push(function() { <del> return run('package=' + packageName); <del> }); <del> testFunctions.push(function() { <del> return run('package=' + packageName + '&dist=es'); <del> }); <de...
1
PHP
PHP
fix failing tests
a73d5598d64f893dacaa3a6b2d56a76c93b55a63
<ide><path>lib/Cake/Error/ExceptionRenderer.php <ide> protected function _getController($exception) { <ide> $response->header($exception->responseHeader()); <ide> } <ide> <del> if (class_exists('AppController')) { <del> try { <del> $controller = new ErrorController($request, $response); <del> $controller...
3
Ruby
Ruby
change inititial partial request to head request
aa989bd55a2013c9858e19455c700b707d65021e
<ide><path>Library/Homebrew/utils/curl.rb <ide> def curl(*args, print_stdout: true, **options) <ide> result <ide> end <ide> <del> def curl_download(*args, to: nil, partial: true, **options) <add> def curl_download(*args, to: nil, try_partial: true, **options) <ide> destination = Pathname(to) <ide...
1
Ruby
Ruby
add test for `systemcommand` with `sigint` handler
2dd40720f075bf93551a27fe0be64c96312632fd
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> <ide> config.around do |example| <ide> def find_files <add> return [] unless File.exist?(TEST_TMPDIR) <add> <ide> Find.find(TEST_TMPDIR) <ide> .reject { |f| File.basename(f) == ".DS_Store" } <add> .reject { |f| TEST_DIRECTORIES.i...
2
Javascript
Javascript
add test for notcacheable in cacheplugin
46432c4009292bfc2f1e883625a290cd5392084b
<ide><path>test/watchCases/cache/warning-on-not-cacheable/0/index.js <add>it("should emit a warning", function() { <add> // nothing <add>}); <ide><path>test/watchCases/cache/warning-on-not-cacheable/0/warnings.js <add>module.exports = [ <add> [/CachePlugin - Cache cannot be used because of: for testing/] <add>]; <ide><...
3
Go
Go
update loaddriver to use pluginv2
3504ed88d939b9ec9cf20156dadaef190b599dca
<ide><path>libnetwork/controller.go <ide> func SandboxKeyWalker(out *Sandbox, key string) SandboxWalker { <ide> } <ide> <ide> func (c *controller) loadDriver(networkType string) error { <del> // Plugins pkg performs lazy loading of plugins that acts as remote drivers. <del> // As per the design, this Get call will res...
1
Text
Text
fix typo in error/middleware-upgrade-guide.md
885defd442fe2b5c5e75c4bf7e0c63cd1e1dfce5
<ide><path>errors/middleware-upgrade-guide.md <ide> Prior to Next.js `v12.2`, Middleware was not executed for `_next` requests. <ide> <ide> For cases where Middleware is used for authorization, you should migrate to use `rewrite`/`redirect` to Pages that show an authorization error, login forms, or to an API Route. <i...
1
Text
Text
fix wrong date and known issue in changelog.md
3268383c2b0c28ac6ef1ab336c271f58750eaced
<ide><path>CHANGELOG.md <ide> # Node.js ChangeLog <ide> <del>## 2015-10-29, Version 4.2.2 'Argon' (LTS), @jasnell <add>## 2015-11-03, Version 4.2.2 'Argon' (LTS), @jasnell <ide> <ide> ### Notable changes <ide> <ide> This is an LTS maintenance release that addresses a number of issues: <ide> <ide> ### Known issues <...
1