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 |
|---|---|---|---|---|---|
Java | Java | ensure the last flush will be performed | ec2218c9670ab2e2b88a86dba21bef7f1bf59f9c | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
<ide> protected void flushingFailed(Throwable t) {
<ide> */
<ide> protected abstract void flush() throws IOException;
<ide>
<add> /**
<add> * Whether writing is possible.
<add> */
<add> protected ... | 3 |
Javascript | Javascript | limit pixel values to 32bit integer range | 17e27e16cc52a7df3e87df8251f040d7cd394dab | <ide><path>src/core/core.scale.js
<ide> import defaults from './core.defaults';
<ide> import Element from './core.element';
<ide> import {_alignPixel, _measureText} from '../helpers/helpers.canvas';
<ide> import {callback as call, each, isArray, isFinite, isNullOrUndef, isObject, valueOrDefault} from '../helpers/helper... | 2 |
Ruby | Ruby | remove vim from the blacklist | 0a7d2b82b4156d3e429216013ba26465612099ac | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted? name
<ide> case name.downcase
<del> when /^vim?$/, 'screen', /^rubygems?$/ then <<-EOS.undent
<add> when 'screen', /^rubygems?$/ then <<-EOS.undent
<ide> Apple distributes #{name} with OS X, you can find it in /usr/bin.
<ide> EOS
<ide> when '... | 1 |
Javascript | Javascript | remove loader inheritance from ctmloader | c2e6781bb900fd85f0533db843f80db76fa9325d | <ide><path>examples/js/loaders/ctm/CTMLoader.js
<ide>
<ide> THREE.CTMLoader = function () {
<ide>
<del> THREE.Loader.call( this );
<del>
<ide> };
<ide>
<del>THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );
<ide> THREE.CTMLoader.prototype.constructor = THREE.CTMLoader;
<ide>
<ide> // Load multipl... | 1 |
Ruby | Ruby | add githublatest strategy | f96b8e713875fee683299cda6000834fae594255 | <ide><path>Library/Homebrew/livecheck/strategy.rb
<ide> def from_url(url, regex_provided = nil)
<ide> require_relative "strategy/apache"
<ide> require_relative "strategy/bitbucket"
<ide> require_relative "strategy/git"
<add>require_relative "strategy/github_latest"
<ide> require_relative "strategy/gnome"
<ide> require_... | 3 |
Ruby | Ruby | remove some `#popen_read`s | 32ad22395bddf3eda906b70c2b3d814e5af2a498 | <ide><path>Library/Homebrew/extend/os/mac/system_config.rb
<ide> def describe_java
<ide> # java_home doesn't exist on all macOSs; it might be missing on older versions.
<ide> return "N/A" unless File.executable? "/usr/libexec/java_home"
<ide>
<del> java_xml = Utils.popen_read("/usr/libexec/java_home",... | 9 |
Javascript | Javascript | clamp radius when drawing rounded rectangle | 6f317135a3b87b6ff62660adccd1ee063240d46f | <ide><path>src/helpers/helpers.canvas.js
<ide> module.exports = function(Chart) {
<ide> * @param {Number} width - The rectangle's width.
<ide> * @param {Number} height - The rectangle's height.
<ide> * @param {Number} radius - The rounded amount (in pixels) for the four corners.
<del> * @todo handler `radius... | 1 |
Python | Python | remove unneded open(.., 'u') when on python 3 | ac8d0a48157c4a53f971cf2450cb6c8ee6c05f36 | <ide><path>django/core/management/commands/makemessages.py
<ide> popen_wrapper)
<ide> from django.utils.encoding import force_str
<ide> from django.utils.functional import total_ordering
<add>from django.utils import six
<ide> from django.utils.text import get_text_list
<ide> from django.utils.jslex import prepare_... | 2 |
Python | Python | increase test timeouts | 76fa6b21a1cd94e94048047bd5a434ca6e533254 | <ide><path>tools/test.py
<ide> def BuildOptions():
<ide> result.add_option("-s", "--suite", help="A test suite",
<ide> default=[], action="append")
<ide> result.add_option("-t", "--timeout", help="Timeout in seconds",
<del> default=60, type="int")
<add> default=120, type="int")
<ide> result.add_op... | 1 |
Text | Text | clarify pr template instructions | 0cb17627a8f1e7ec534025044d2fbeb3405920a8 | <ide><path>.github/pull_request_template.md
<ide> Choose the right checklist for the change that you're making:
<ide>
<ide> ## Documentation / Examples
<ide>
<del>- [ ] Make sure the linting passes by running `pnpm lint`
<add>- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
<ide> - [ ] The "exa... | 1 |
Javascript | Javascript | remove `callbackid` field from fiberroot | 96ac799eace5d989de3b4f80e6414e94a08ff77a | <ide><path>packages/react-reconciler/src/ReactFiberRoot.new.js
<ide> function FiberRootNode(containerInfo, tag, hydrate) {
<ide> this.pendingContext = null;
<ide> this.hydrate = hydrate;
<ide> this.callbackNode = null;
<del> this.callbackId = NoLanes;
<ide> this.callbackPriority = NoLanePriority;
<ide> this.... | 5 |
PHP | PHP | update more non-orm, non-database package tests | 1a0c223db57a614b850791bc9420907cf73f34b4 | <ide><path>tests/TestCase/Command/SchemaCacheCommandsTest.php
<ide> use Cake\Cache\Engine\NullEngine;
<ide> use Cake\Datasource\ConnectionManager;
<ide> use Cake\TestSuite\ConsoleIntegrationTestTrait;
<add>use Cake\TestSuite\Fixture\TransactionStrategy;
<ide> use Cake\TestSuite\TestCase;
<ide>
<ide> /**
<ide> class Sc... | 8 |
Go | Go | add "cmd" prefix to builder instructions | c2a14bb196d0d3046e185783ebacd4b83fa36dd4 | <ide><path>api.go
<ide> func postImagesGetCache(srv *Server, w http.ResponseWriter, r *http.Request, var
<ide> if err != nil {
<ide> return err
<ide> }
<add> if image == nil {
<add> w.WriteHeader(http.StatusNotFound)
<add> return nil
<add> }
<ide> apiId := &ApiId{Id: image.Id}
<ide> b, err := json.Marshal(apiId... | 3 |
PHP | PHP | fix json docblocks in request | 8f259fcc6027760c0554ca444fbf07455da9d299 | <ide><path>src/Illuminate/Http/Request.php
<ide> class Request extends SymfonyRequest implements Arrayable, ArrayAccess
<ide> /**
<ide> * The decoded JSON content for the request.
<ide> *
<del> * @var string
<add> * @var \Symfony\Component\HttpFoundation\ParameterBag|null
<ide> */
<ide> p... | 1 |
Javascript | Javascript | favor assertions over console logging | 12de99d982c85f3e0b5076b85d9af58cf46c0097 | <ide><path>test/common.js
<ide> process.on('exit', function() {
<ide> if (!exports.globalCheck) return;
<ide> const leaked = leakedGlobals();
<ide> if (leaked.length > 0) {
<del> console.error('Unknown globals: %s', leaked);
<del> fail('Unknown global found');
<add> fail(`Unexpected global(s) found: ${le... | 1 |
PHP | PHP | fix multi-checkboxes not being selected properly | ece39d147e1b1e6df1e1a9cf8bed2758cdbdbf1d | <ide><path>src/View/Widget/MultiCheckboxWidget.php
<ide> public function render(array $data, ContextInterface $context)
<ide> $checkbox['name'] = $data['name'];
<ide> $checkbox['escape'] = $data['escape'];
<ide>
<del> if ($this->_isSelected($key, $data['val'])) {
<add> if ... | 2 |
Ruby | Ruby | fix data loading from the performance script | 130bf3c9edf89de78203c02c5f76f9ea2b7b46a5 | <ide><path>activerecord/examples/performance.rb
<ide> def self.feel(exhibits) exhibits.each { |e| e.feel } end
<ide> sqlfile = File.expand_path("../performance.sql", __FILE__)
<ide>
<ide> if File.exists?(sqlfile)
<del> mysql_bin = %w[mysql mysql5].select { |bin| `which #{bin}`.length > 0 }
<add> mysql_bin = %w[mysql... | 1 |
Text | Text | fix io typo | d24b6648731fac952a5e8b75e84434bbfe7263b0 | <ide><path>README.md
<ide>
<ide> Atom is a hackable text editor for the 21st century, built on [atom-shell](http://github.com/atom/atom-shell), and based on everything we love about our favorite editors. We designed to be deeply customizable, but completely usable without editing a single config file.
<ide>
<del>Visi... | 1 |
Javascript | Javascript | add a failing test for context when reusing work | c22b7a001cc7e1a0f75e4f4826782bce1949ffee | <ide><path>src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
<ide> describe('ReactIncremental', () => {
<ide> 'Recurse {"n":0}',
<ide> ]);
<ide> });
<add>
<add> it('provides context when reusing work', () => {
<add> var ops = [];
<add>
<add> class Intl extends React.Component {
<add> ... | 1 |
Ruby | Ruby | manage requirements using comparableset | bbfb6400c77aeaaf88216263d86491d85a40f8a9 | <ide><path>Library/Homebrew/dependencies.rb
<ide> class DependencyCollector
<ide>
<ide> def initialize
<ide> @deps = Dependencies.new
<del> @requirements = Set.new
<add> @requirements = ComparableSet.new
<ide> end
<ide>
<ide> def add spec
<ide> def command_line
<ide> # This requirement is used to requ... | 4 |
Ruby | Ruby | parse dates to yaml in json arrays | a1edbf720620c672566a1681572c3845452ca51a | <ide><path>activesupport/lib/active_support/json/backends/yaml.rb
<ide> def decode(json)
<ide> def convert_json_to_yaml(json) #:nodoc:
<ide> require 'strscan' unless defined? ::StringScanner
<ide> scanner, quoting, marks, pos, times = ::StringScanner.new(json), false, [], nil, []
<del>... | 2 |
PHP | PHP | remove unnecessary emptying of the buffer property | c75c94cc827e309ca5e5167c51f79cb5be2ead73 | <ide><path>src/Database/Expression/CaseStatementExpression.php
<ide> public function else($result, ?string $type = null)
<ide> $type = $this->inferType($result);
<ide> }
<ide>
<del> $this->whenBuffer = null;
<del>
<ide> $this->else = $result;
<ide> $this->elseType = $type;
<i... | 1 |
PHP | PHP | cover more cases with tests | ea5d3e2b8c59e5d821adc18f60cfb127435decd6 | <ide><path>tests/TestCase/Database/Schema/TableTest.php
<ide> public static function addConstaintErrorProvider() {
<ide> // No properties
<ide> [[]],
<ide> // Empty columns
<del> [['columns' => '']],
<del> [['columns' => []]],
<add> [['columns' => '', 'type' => Table::CONSTRAINT_UNIQUE]],
<add> [['colu... | 1 |
PHP | PHP | add referer in error.log | f6037cd6fae6d9586f87631ec5ac3f2da6d13c94 | <ide><path>src/Error/BaseErrorHandler.php
<ide> protected function _getMessage(Exception $exception)
<ide> $request = Router::getRequest();
<ide> if ($request) {
<ide> $message .= "\nRequest URL: " . $request->here();
<add>
<add> $referer = $request->env('HTTP_REFE... | 1 |
Text | Text | fix typo error of dockernetworks.md | f03050cc4c4512f28b74ec2e8fc4bee81b72b4e0 | <ide><path>docs/userguide/networking/dockernetworks.md
<ide> lo Link encap:Local Loopback
<ide> The `host` network adds a container on the hosts network stack. You'll find the
<ide> network configuration inside the container is identical to the host.
<ide>
<del>With the exception of the the `bridge` network, yo... | 1 |
Javascript | Javascript | add localedata tests | 53101f3ca8bc6279b8f29b2be22f1979bb693ab8 | <ide><path>src/test/locale/af.js
<ide> test('weeks year starting sunday formatted', function (assert) {
<ide> assert.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2de', 'Jan 15 2012 should be week 2');
<ide> });
<ide>
<add>test('valid localeData', function (assert) {
<add> assert.equal(moment().locale... | 113 |
Javascript | Javascript | fix use after null when calling .close | c7fef3d3b8763d55a238786b56f91939f10f2c36 | <ide><path>lib/zlib.js
<ide> function _close(engine, callback) {
<ide>
<ide> engine._closed = true;
<ide>
<del> engine._handle.close();
<add> // Caller may invoke .close after a zlib error (which will null _handle).
<add> if (engine._handle) {
<add> engine._handle.close();
<add> }
<ide> }
<ide>
<ide> functi... | 1 |
Text | Text | fix a typo in active record encryption guide | a80a22508558513afccf0b0087873db2b690f3c0 | <ide><path>guides/source/active_record_encryption.md
<ide> class Person
<ide> end
<ide> ```
<ide>
<del>They will also work when combining encrypted and unencrypted data,git and when configuring previous encryption schemes.
<add>They will also work when combining encrypted and unencrypted data, and when configuring pre... | 1 |
Python | Python | fix critical celerykubernetesexecutor bug | b59e416f61edce86a811ec251d5887bfa728376f | <ide><path>airflow/executors/celery_kubernetes_executor.py
<ide> class CeleryKubernetesExecutor(LoggingMixin):
<ide>
<ide> def __init__(self, celery_executor, kubernetes_executor):
<ide> super().__init__()
<add> self._job_id: Optional[str] = None
<ide> self.celery_executor = celery_executor
... | 2 |
Text | Text | add link to bootstrap documentation page for cards | cbcc18d7f76020d0caa17d3f3411477b4f0088ce | <ide><path>guide/english/bootstrap/cards/index.md
<ide> This is some text within a card body.
<ide> </div>
<ide> <!--You must set the image height on all cards -->
<ide> ```
<add>
<add>
<add>#### More Information
<add>
<add>- [Bootstrap cards](https://getbootstrap.com/docs/4.1/components/card/)
<add>
<add> | 1 |
Ruby | Ruby | push scope access up for modules | c25d1707b9577db82ccbd47447247ba644d81432 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def self.build(scope, set, path, as, controller, default_action, options)
<ide>
<ide> defaults = (scope[:defaults] || {}).dup
<ide>
<del> new scope, set, path, defaults, as, controller, default_action, options
<add> new scop... | 1 |
Ruby | Ruby | fix relation tests for postgres | 630dc5073075ba73251400400caae802f8d97d41 | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_loaded_all
<ide> end
<ide>
<ide> def test_scoped_first
<del> topics = Topic.scoped
<add> topics = Topic.scoped.order('id ASC')
<ide>
<ide> assert_queries(1) do
<ide> 2.times { assert_equal "The First Topic", topics.first.title }
<... | 1 |
Mixed | Python | improve docs and make train flag match eval flag | 2662da2cfeb5448627690d689a6c96647d720ff2 | <ide><path>research/slim/nets/mobilenet_v1.md
<ide> $ bazel build -c opt --config=cuda mobilenet_v1_{eval,train}
<ide> Train:
<ide>
<ide> ```
<del>$ ./bazel-bin/mobilenet_v1_train
<add>$ ./bazel-bin/mobilenet_v1_train --dataset_dir "path/to/dataset" --checkpoint_dir "path/to/checkpoints"
<ide> ```
<ide>
<ide> Eval:
<... | 2 |
Text | Text | add solution to jquery challenges | 1015f1ec6e8424d37d29fd717178846c0175ffc5 | <ide><path>curriculum/challenges/english/03-front-end-libraries/jquery/change-the-css-of-an-element-using-jquery.english.md
<ide> tests:
<ide> ## Solution
<ide> <section id='solution'>
<ide>
<del>```js
<del>// solution required
<add>```html
<add><script>
<add> $(document).ready(function() {
<add> $("button").addCl... | 17 |
PHP | PHP | remove schema and prefix from 3.x's censor list | 1d9e37d238b5c12b92445f620ffb8d1b79404ced | <ide><path>src/Database/Connection.php
<ide> public function __debugInfo()
<ide> 'username' => '*****',
<ide> 'host' => '*****',
<ide> 'database' => '*****',
<del> 'port' => '*****',
<del> 'prefix' => '*****',
<del> 'schema' => '*****'
<add> ... | 1 |
Ruby | Ruby | fix error handling | 3701081b65cbfd09024b95b0de2e154a3ba7478d | <ide><path>Library/Contributions/cmd/brew-mirror-check.rb
<ide> def test_mirror mirror
<ide> tarball_path = downloader.tarball_path
<ide> tarball_path.unlink if tarball_path.exist?
<ide>
<del> begin
<del> fetched = downloader.fetch
<del> rescue DownloadError => e
<del> opoo "Failed to fetch fro... | 1 |
Ruby | Ruby | skip url processing for githublatest | 7ef88f1966235c59216ec31836abedd6487f7cfc | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> module Livecheck
<ide> lolg.it
<ide> ].freeze
<ide>
<add> STRATEGY_SYMBOLS_TO_SKIP_PREPROCESS_URL = [
<add> :github_latest,
<add> :page_match,
<add> ].freeze
<add>
<ide> UNSTABLE_VERSION_KEYWORDS = %w[
<ide> alpha
<ide> ... | 1 |
Text | Text | release notes for notification | 077ac949cb8bb47d45d3da9460c2f8032b436125 | <ide><path>language-adaptors/rxjava-scala/ReleaseNotes.md
<ide> Subscriptions
<ide> -------------
<ide>
<ide> The `Subscription` trait in Scala now has `isUnsubscribed` as a member, effectively collapsing the old `Subscription`
<del>and `BooleanSubscription`, and the latter has been removed from the public surface. Pe... | 1 |
Javascript | Javascript | replace magic numbers with descriptive var names | cd140d94cd9961cc1557645adb686bf4942f6950 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> var sampler = json.samplers[ texture.sampler ];
<ide>
<del> _texture.magFilter = WEBGL_FILTERS[ sampler.magFilter || 9729 ];
<del> _texture.minFilter = WEBGL_FILTERS[ sampler.minFilter || 9986 ];
<d... | 1 |
Python | Python | remove tests that are not yet ready to be tested | 05bb700f5c20b1a99984e5632ae78e6ada0c1657 | <ide><path>test/test_base.py
<ide>
<ide> class BaseTests(unittest.TestCase):
<ide>
<del> def test_drivers_interface(self):
<del> failures = []
<del> for driver in DRIVERS:
<del> creds = ProviderCreds(driver, 'foo', 'bar')
<del> try:
<del> verifyObject(INodeDri... | 2 |
PHP | PHP | fix typo in belongstomany | 71c7fe77b432966162a0ca2ec957c033ae591954 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> protected function shouldSelect(array $columns = ['*'])
<ide> /**
<ide> * Get the pivot columns for the relation.
<ide> *
<del> * "pivot_" is prefixed ot each column for easy removal later.
<add> * "pivot_" is prefixed a... | 1 |
Ruby | Ruby | remove flaky test | 75c74e4674d3f6a85c4afce79a6096bcc5cca9fc | <ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb
<ide> expect(local_transmission.versions).to include("2.60")
<ide> expect(local_transmission.versions).not_to include("2.61")
<ide> end
<del>
<del> it 'would update "auto_updates" and "latest" Casks when their tokens are provided in th... | 1 |
Python | Python | add pyopenssl to google cloud gcp_api | afb826aec2739edaac2ae09265113dae0a04a91e | <ide><path>setup.py
<ide> def run(self):
<ide> 'httplib2',
<ide> 'google-api-python-client<=1.4.2',
<ide> 'oauth2client>=1.5.2, <2.0.0',
<add> 'PyOpenSSL',
<ide> ]
<ide> hdfs = ['snakebite>=2.7.8']
<ide> webhdfs = ['hdfs[dataframe,avro,kerberos]>=2.0.4'] | 1 |
PHP | PHP | update reponse tests related to cookies | 2609bd976ba1ee17100d4a219872ce817b2180a8 | <ide><path>tests/TestCase/Http/ResponseTest.php
<ide> public function testWithCookieEmpty()
<ide> $expected = [
<ide> 'name' => 'testing',
<ide> 'value' => '',
<del> 'expire' => 0,
<del> 'path' => '/',
<del> 'domain' => '',
<del> 'secure' => fa... | 1 |
Ruby | Ruby | use the right assertions | 918aa6e87813c5c7687e5d460c5cd62ba3919536 | <ide><path>actionview/test/template/url_helper_test.rb
<ide> def test_link_unless_current
<ide> end
<ide>
<ide> def test_link_to_unless_with_block
<del> assert_equal %{<a href="/">Showing</a>}, link_to_unless(false, "Showing", url_hash) { "Fallback" }
<del> assert_dom_equal "Fallback", link_to_unless(true, "... | 1 |
Javascript | Javascript | remove redeclared var in test-domain | f48793eb1536d1b55814d17a819f620242d7aa9f | <ide><path>test/parallel/test-domain.js
<ide> function fn2(data) {
<ide> assert.equal(data, 'data', 'should not be null err argument');
<ide> }
<ide>
<del>var bound = d.intercept(fn2);
<add>bound = d.intercept(fn2);
<ide> bound(null, 'data');
<ide>
<ide> // intercepted should never pass first argument to callback | 1 |
Go | Go | remove unused builder.cancel() | 068f344e032ad4489a88665adec683e06ad6f3c7 | <ide><path>builder/dockerfile/builder.go
<ide> type Builder struct {
<ide> docker builder.Backend
<ide> context builder.Context
<ide> clientCtx context.Context
<del> cancel context.CancelFunc
<ide>
<ide> runConfig *container.Config // runconfig for cmd, run, entrypoint etc.
<ide> flags *BFlags... | 1 |
Python | Python | add model input small script | e8ad00cad5d9c8f6ed988d94b1e5db17c8d5db20 | <ide><path>research/object_detection/dataset_tools/context_rcnn/view_model_inputs.py
<add># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obt... | 1 |
Javascript | Javascript | fix error when swapping dataset locations | 9326309afd4676f16a123fa5bafe7f1f1f26b5e2 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> });
<ide> }
<ide>
<del> /**
<del> * Updates the given metaset with the given dataset index. Ensures it's stored at that index
<del> * in the _metasets array by swapping with the metaset at that index if necessary.
<del> * @param {Object} meta -... | 2 |
Text | Text | correct wrong bracket | f6b7958094c389bab26f5fe9b13fea154c18187f | <ide><path>guide/english/cplusplus/vector/index.md
<ide> int main()
<ide> sort(v.begin(), v.end(), [] (int i, int j) -> bool {
<ide> return i < j;
<ide> } );
<add>
<ide> cout << "Vector Contents Sorted In Ascending Order:\n";
<del> for (int e : v)
<del> cout << e << " ";
<del> return 0;... | 1 |
Javascript | Javascript | fix vrcontrols onerror | 1e99bc45784a60784b396f0e86681505594d18f1 | <ide><path>examples/js/controls/VRControls.js
<ide> THREE.VRControls = function ( object, onError ) {
<ide>
<ide> }
<ide>
<del> if ( onError ) onError( 'HMD not available' );
<add> if ( vrInputs.length === 0 ) {
<add>
<add> if ( onError ) onError( 'PositionSensorVRDevice not available' );
<add>
<add> }
<ide>
... | 1 |
Javascript | Javascript | replace .then chains with await | 24f045dae2401033f16ff882a103123c63ab575b | <ide><path>test/common/debugger.js
<ide> function startCLI(args, flags = [], spawnOpts = {}) {
<ide> },
<ide>
<ide> async waitForInitialBreak() {
<del> return this.waitFor(/break (?:on start )?in/i)
<del> .then(async () => {
<del> if (isPreBreak(this.output)) {
<del> return this... | 1 |
PHP | PHP | update dirty method for get/set | 3d9e8734e728d5accc84c6e93a4227092ea374ac | <ide><path>src/ORM/Association/BelongsToMany.php
<ide> protected function _saveLinks(EntityInterface $sourceEntity, $targetEntities, $o
<ide> }
<ide>
<ide> $e->set($jointProperty, $joint);
<del> $e->dirty($jointProperty, false);
<add> $e->setDirty($jointProperty, false);
<... | 16 |
Ruby | Ruby | add wxpython as separate formula | edd03fbe69047b84137c8e97d7494e25ecb7a4e2 | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted? name
<ide> Some build scripts fail to detect it correctly, please check existing
<ide> formulae for solutions.
<ide> EOS
<del> when 'wxpython' then <<-EOS.undent
<del> The Python bindings (import wx) for wxWidgets are installed by:
<del> ... | 1 |
Python | Python | add test for performance exporter | f9491103358b1b7039b0e5836537cb7aa564d093 | <ide><path>research/object_detection/model_lib_tf2_test.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<add>import json
<ide> import os
<ide> import tempfile
<ide> import unittest
<ide> import tensorflow.compat.v1 as tf
<ide> import tensorflow.compat.v2 as tf2
<ide>
<add>fr... | 2 |
PHP | PHP | add wildcard support to seejsonstructure | eb8ab1a0e461488fa33cc1747324f053b327957c | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide> public function seeJsonStructure(array $structure = null, $responseData = null)
<ide> }
<ide>
<ide> foreach ($structure as $key => $value) {
<del> if (is_array($value)) {
<add> if (is_array($value) &... | 2 |
Python | Python | add basic tests for copysign | 12a7c572cc29dbf1584333594bf549cca8787b55 | <ide><path>numpy/core/tests/test_umath.py
<ide> def _check_branch_cut(f, x0, dx, re_sign=1, im_sign=-1, sig_zero_ok=False,
<ide> assert np.all(np.absolute(y0.real - ym.real*re_sign) < atol), (y0, ym)
<ide> assert np.all(np.absolute(y0.imag - ym.imag*im_sign) < atol), (y0, ym)
<ide>
<add>def test_copysi... | 1 |
Python | Python | display dag filepaths in airflow dags list command | 4e9a7d09ca10a937bdd6bcf177f3d3386d5e20db | <ide><path>airflow/cli/cli_parser.py
<ide> def __init__(self, flags=None, help=None, action=None, default=None, nargs=None,
<ide> help="Tree view",
<ide> action="store_true")
<ide>
<del># list_dags
<del>ARG_REPORT = Arg(
<del> ("-r", "--report"),
<del> help="Show DagBag loading report",
<del> action="... | 3 |
PHP | PHP | fix cs error | e236933544d52e7a16d5c77ecf9834ae38e4c6fa | <ide><path>src/Database/Driver/Sqlserver.php
<ide> namespace Cake\Database\Driver;
<ide>
<ide> use Cake\Database\Dialect\SqlserverDialectTrait;
<del>use Cake\Database\Statement\SqlserverStatement;
<ide> use Cake\Database\Query;
<add>use Cake\Database\Statement\SqlserverStatement;
<ide> use PDO;
<ide>
<ide> /** | 1 |
Python | Python | fix logs downloading for tasks | 923bde2b917099135adfe470a5453f663131fd5f | <ide><path>airflow/providers/elasticsearch/log/es_task_handler.py
<ide> def _read(
<ide> if (
<ide> cur_ts.diff(last_log_ts).in_minutes() >= 5
<ide> or 'max_offset' in metadata
<del> and offset >= metadata['max_offset']
<add> and int(offset) >= i... | 2 |
Javascript | Javascript | add test for listen callback runtime binding | 9ce5a031480a51abdb3d65fe67fba52df6a3851a | <ide><path>test/parallel/test-http-pause.js
<ide> const server = http.createServer((req, res) => {
<ide> });
<ide>
<ide> server.listen(0, function() {
<add> // Anonymous function rather than arrow function to test `this` value.
<add> assert.strictEqual(this, server);
<ide> const req = http.request({
<ide> port... | 1 |
Javascript | Javascript | fix linting issues | 04081ba0e57f06127a066fc2dea67e08737667fd | <ide><path>src/config.js
<ide> class Config {
<ide> this.projectSettings = {}
<ide> this.projectFile = null
<ide>
<del>
<ide> this.scopedSettingsStore = new ScopedPropertyStore()
<ide>
<ide> this.settingsLoaded = false | 1 |
Python | Python | remove ref to is_pipeline_test | d92e22d1f28324f513f3080e5c47c071a3916721 | <ide><path>tests/pipelines/test_pipelines_zero_shot_object_detection.py
<ide> import unittest
<ide>
<ide> from transformers import MODEL_FOR_ZERO_SHOT_OBJECT_DETECTION_MAPPING, is_vision_available, pipeline
<del>from transformers.testing_utils import (
<del> is_pipeline_test,
<del> nested_simplify,
<del> requ... | 1 |
PHP | PHP | add routes.php generation to plugin bake | c5eab6946f48a240c5c9fa2e8845e9b30c7bcce0 | <ide><path>src/Console/Command/Task/PluginTask.php
<ide> public function bake($plugin) {
<ide> $this->createFile($this->path . $plugin . DS . $classBase . DS . 'Controller' . DS . $controllerFileName, $out);
<ide>
<ide> $hasAutoloader = $this->_modifyAutoloader($plugin, $this->path);
<add> $this->_generateRout... | 2 |
Text | Text | clarify test cases | 4ec48bb2fb8eca276f97c6753ac798285aa2cf0f | <ide><path>curriculum/challenges/english/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md
<ide> Build an API endpoint, mounted at `GET /name`. Respond with a JSON document, tak
<ide>
<ide> # --hints--
<ide>
<del>Test 1 : Your API endpoint should respond with the cor... | 1 |
Javascript | Javascript | fix invalid end handling for slowbuffer#hexslice | 3c9fb3ec1af991b1b1eb7105b2a790549ca2b844 | <ide><path>lib/buffer.js
<ide> SlowBuffer.prototype.hexSlice = function(start, end) {
<ide> var len = this.length;
<ide>
<ide> if (!start || start < 0) start = 0;
<del> if (end < 0) end = len - start;
<add> if (!end || end < 0 || end > len) end = len - 1;
<ide>
<ide> var out = '';
<ide> for (var i = start; ... | 2 |
Ruby | Ruby | add test coverage for `bin/setup` | 2d1a7b9c76a2cde7531d7d3c544c630e916ed481 | <ide><path>railties/test/application/bin_setup_test.rb
<add>require 'isolation/abstract_unit'
<add>
<add>module ApplicationTests
<add> class BinSetupTest < ActiveSupport::TestCase
<add> include ActiveSupport::Testing::Isolation
<add>
<add> def setup
<add> build_app
<add> end
<add>
<add> def teardown
<... | 1 |
Ruby | Ruby | use the superclass implementation | fa1e101d5469729c0b21c234bde85f731d4ce6e4 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> def table_name_for(reflection)
<ide> # the owner
<ide> klass.table_name
<ide> else
<del> reflection.table_name
<add> super
<ide> end
<ide> end
<ide>
<ide><path>activerecord/lib/... | 2 |
Ruby | Ruby | tolerate missing logger | 85eb3af873e3393416ff2c764c5590abc0538a64 | <ide><path>activeresource/lib/active_resource/base.rb
<ide> def prefix(options={}) "#{prefix_call}" end
<ide> end_code
<ide> silence_warnings { instance_eval code, __FILE__, __LINE__ }
<ide> rescue
<del> logger.error "Couldn't set prefix: #{$!}\n #{code}"
<add> logger.error "Couldn'... | 1 |
Ruby | Ruby | fix query cache to load before first request | 349db176d8283a5c16816b50a92b0b319b1b8b74 | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> end
<ide>
<ide> initializer "active_record.set_executor_hooks" do
<del> ActiveSupport.on_load(:active_record) do
<del> ActiveRecord::QueryCache.install_executor_hooks
<del> end
<add> ... | 2 |
Text | Text | fix typo "director" instead of "directory" | 1ca4a9cdbf0aafe07d6cd47d673e12fba276f259 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `withFileTypes` {boolean} **Default:** `false`
<ide> * Returns: {string[]|Buffer[]|fs.Dirent[]}
<ide>
<del>Reads the contents of the director.
<add>Reads the contents of the directory.
<ide>
<ide> See the POSIX readdir(3) documentation for more details.
<ide> | 1 |
Ruby | Ruby | allow configuration of std_cargo_args | 2fe77f52717e9b688a2e2f4c57c0404022a3afee | <ide><path>Library/Homebrew/formula.rb
<ide> def std_configure_args
<ide> end
<ide>
<ide> # Standard parameters for cargo builds.
<del> sig { returns(T::Array[T.any(String, Pathname)]) }
<del> def std_cargo_args
<del> ["--locked", "--root", prefix, "--path", "."]
<add> sig { params(root: String, path: String... | 1 |
Ruby | Ruby | add missing space before closing hash brace | ddfc54492a3d53160a473f14223db2a28c56a1ce | <ide><path>actionpack/lib/action_dispatch/middleware/actionable_exceptions.rb
<ide> def redirect_to(location)
<ide> if uri.relative? || uri.scheme == "http" || uri.scheme == "https"
<ide> body = "<html><body>You are being <a href=\"#{ERB::Util.unwrapped_html_escape(location)}\">redirected</a>.</body><... | 1 |
Javascript | Javascript | add tests for checking which input is focused | 878f0500e76b65d737c6e3932cd75a8c2f0fc613 | <ide><path>Libraries/Components/TextInput/__tests__/TextInput-test.js
<ide> const React = require('react');
<ide> const ReactTestRenderer = require('react-test-renderer');
<ide> const TextInput = require('../TextInput');
<add>const ReactNative = require('../../../Renderer/shims/ReactNative');
<ide>
<add>import type {F... | 1 |
PHP | PHP | remove needless _defaultconfig merging | 12b281ac7bc678454c0e9d2e1f3a0c2055d02792 | <ide><path>src/View/Helper.php
<ide> public function __construct(View $View, $config = array()) {
<ide> $this->_View = $View;
<ide> $this->request = $View->request;
<ide>
<del> if ($config) {
<del> $config = Hash::merge($this->_defaultConfig, $config);
<del> }
<ide> $this->config($config);
<ide>
<ide> if ... | 7 |
Javascript | Javascript | add ref to offscreen component | c1d414d75851aee7f25f69c1b6fda6a14198ba24 | <ide><path>packages/react-reconciler/src/ReactFiber.new.js
<ide> export function createFiberFromOffscreen(
<ide> fiber.elementType = REACT_OFFSCREEN_TYPE;
<ide> fiber.lanes = lanes;
<ide> const primaryChildInstance: OffscreenInstance = {
<del> visibility: OffscreenVisible,
<del> pendingMarkers: null,
<del> ... | 13 |
Python | Python | make "unnamed vectors" warning a real warning | 3ba5238282d5ea84d5d2a71b5940de30fbaf3331 | <ide><path>spacy/_ml.py
<ide> def link_vectors_to_models(vocab):
<ide> if vectors.name is None:
<ide> vectors.name = VECTORS_KEY
<ide> if vectors.data.size != 0:
<del> print(
<del> "Warning: Unnamed vectors -- this won't allow multiple vectors "
<del> "models... | 2 |
Mixed | Ruby | add querylogtags to rails | 2408615154d039264810edbe628f4fc06d8cdc45 | <ide><path>actionpack/lib/action_controller/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> ActionController::Metal.descendants.each(&:action_methods) if config.eager_load
<ide> end
<ide> end
<add>
<add> initializer "action_controller.query_log_tags" do |app|
<add> ActiveSuppor... | 9 |
Ruby | Ruby | remove redundant require 'set' lines | bd6c03332ea4dea9be8444ae46cbe84df03f7bdc | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> require 'thread'
<ide> require 'thread_safe'
<ide> require 'monitor'
<del>require 'set'
<ide>
<ide> module ActiveRecord
<ide> # Raised when a connection could not be obtained within the connection
<ide><path>activerecord/... | 3 |
Python | Python | fix another flake8 warning | a9cced7aecfb7c49fe0f84c33b86744bba8f58b5 | <ide><path>django/views/generic/dates.py
<ide> def get_object(self, queryset=None):
<ide> raise Http404(_(
<ide> "Future %(verbose_name_plural)s not available because "
<ide> "%(class_name)s.allow_future is False.") % {
<del> 'verbose_name_plural': qs.model... | 1 |
Text | Text | update modules.md wording | 3dd3a3cc203da477a91b75d682b00157b70b804b | <ide><path>doc/api/modules.md
<ide> folders as modules, and work for both `require` and `import`.
<ide>
<ide> If the module identifier passed to `require()` is not a
<ide> [core](#core-modules) module, and does not begin with `'/'`, `'../'`, or
<del>`'./'`, then Node.js starts at the parent directory of the current mo... | 1 |
Javascript | Javascript | add runnable example | 636b3799b323d223bff900b2d0e8d255b58f7c8e | <ide><path>src/ng/filter.js
<ide> *
<ide> * @param {String} name Name of the filter function to retrieve
<ide> * @return {Function} the filter function
<del> */
<add> * @example
<add> <example name="$filter" module="filterExample">
<add> <file name="index.html">
<add> <div ng-controller="MainCtrl">
<add>... | 1 |
PHP | PHP | fix a typo | 20b013220fc8346b73d403af5034b6ce1ee29c79 | <ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php
<ide> protected function sendLockoutResponse(Request $request)
<ide> throw ValidationException::withMessages([
<ide> $this->username() => [Lang::get('auth.throttle', [
<ide> 'seconds' => $seconds,
<del> 'min... | 1 |
PHP | PHP | fix session.cookietimeout default behavior | 83a29f054e6b8482b9bdc4612931aad438c6c580 | <ide><path>lib/Cake/Model/Datasource/CakeSession.php
<ide> protected static function _defaultConfig($name) {
<ide> 'php' => array(
<ide> 'cookie' => 'CAKEPHP',
<ide> 'timeout' => 240,
<del> 'cookieTimeout' => 240,
<ide> 'ini' => array(
<ide> 'session.use_trans_sid' => 0,
<ide> 'session.cooki... | 2 |
Ruby | Ruby | use array.wrap, remove unneeded returning block | 5f56d90085ea484b99e080c231c17ddc6cda71d1 | <ide><path>activesupport/lib/active_support/json/encoders/hash.rb
<ide> class Hash
<ide> def to_json(options = {}) #:nodoc:
<ide> hash_keys = self.keys
<ide>
<del> if options[:except]
<del> hash_keys = hash_keys - Array(options[:except])
<del> elsif options[:only]
<del> hash_keys = hash_keys & Ar... | 1 |
Go | Go | add secret create and delete integration tests | e63dc5cde4c0dd52c3a54bb007259a4b8878b7df | <ide><path>integration-cli/daemon_swarm.go
<ide> func (d *SwarmDaemon) listServices(c *check.C) []swarm.Service {
<ide> return services
<ide> }
<ide>
<add>func (d *SwarmDaemon) createSecret(c *check.C, secretSpec swarm.SecretSpec) string {
<add> status, out, err := d.SockRequest("POST", "/secrets", secretSpec)
<add>
... | 2 |
Ruby | Ruby | simplify handling of slow checks | bcedfe64e8ca64e092ca72c3f61fe164c28c8af5 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def doctor
<ide> checks.inject_dump_stats! if ARGV.switch? "D"
<ide>
<ide> if ARGV.named.empty?
<del> methods = checks.all.sort
<del> methods << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew"
<del> methods = methods.reverse.uniq... | 1 |
Text | Text | add v3.1.0-beta.2 to changelog | 455c4c44410f55c2d77258934d903dcd3328782e | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.1.0-beta.2 (February 19, 2018)
<add>
<add>- [#13355](https://github.com/emberjs/ember.js/pull/13355) [BUGFIX] Fix issue with `Ember.trySet` on destroyed objects.
<add>- [#16245](https://github.com/emberjs/ember.js/pull/16245) [BUGFIX] Ensure errors in d... | 1 |
Python | Python | remove unnecessary compiler flags (see #237) | ed3ebf9e43ba701b3140009324fbceca5c9bccaa | <ide><path>setup.py
<ide> link_options = {'msvc' : [],
<ide> 'other' : []}
<ide>
<del>if sys.platform.startswith('darwin'):
<del> compile_options['other'].append('-mmacosx-version-min=10.8')
<del> compile_options['other'].append('-stdlib=libc++')
<del> link_options['other'].append('-l... | 1 |
Javascript | Javascript | make mkdir() default to 0777 permissions | 11d68eb3fc3c2f8d377cf8c50f1babb8d1f82d5f | <ide><path>lib/fs.js
<ide> fs.fsyncSync = function(fd) {
<ide> };
<ide>
<ide> fs.mkdir = function(path, mode, callback) {
<del> binding.mkdir(path, modeNum(mode), callback || noop);
<add> binding.mkdir(path, modeNum(mode, 511 /*=0777*/), callback || noop);
<ide> };
<ide>
<ide> fs.mkdirSync = function(path, mode) {
... | 1 |
Python | Python | update axis parameter for np.ma.{min,max} | c86ebe0d343c5af9d210658a1be6115ce04feb6f | <ide><path>numpy/ma/core.py
<ide> def min(self, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
<ide>
<ide> Parameters
<ide> ----------
<del> axis : {None, int}, optional
<add> axis : None or int or tuple of ints, optional
<ide> Axis along which to operate. By de... | 1 |
Javascript | Javascript | add usage info to ember-utils entry point | 9cbda8f9ad059a98f08faf72f0df1468963eeb49 | <ide><path>packages/ember-utils/lib/index.js
<add>/*
<add> This package will be eagerly parsed and should have no dependencies on external
<add> packages.
<add>
<add> It is intended to be used to share utility methods that will be needed
<add> by every Ember application (and is **not** a dumping ground of useful utilit... | 1 |
Text | Text | update http urls to https in contributing.md | de3bb8f84386e9090602e4a276ad8a8686223380 | <ide><path>CONTRIBUTING.md
<ide> In case of doubt, open an issue in the
<ide> [issue tracker](https://github.com/nodejs/node/issues/) or contact one of the
<ide> [project Collaborators](https://github.com/nodejs/node/#current-project-team-members).
<ide> Node.js has two IRC channels:
<del>[#Node.js](http://webchat.free... | 1 |
Text | Text | move lball@redhat.com to emeritus | ee7ee6e14e5f9b1153a0113f525a52cba79b109f | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Juan José Arboleda** <soyjuanarbol@gmail.com> (he/him)
<ide> * [JungMinu](https://github.com/JungMinu) -
<ide> **Minwoo Jung** <nodecorelab@gmail.com> (he/him)
<del>* [lance](https://github.com/lance) -
<del>... | 1 |
Python | Python | restore previous behavior on subclasses | 4bed228adba88f9c5b85eaad308582db79a95b7b | <ide><path>numpy/core/numeric.py
<ide> def normalize_axis_tuple(axis, ndim, argname=None, allow_duplicate=False):
<ide> --------
<ide> normalize_axis_index : normalizing a single scalar axis
<ide> """
<del> # Speed-up most common cases.
<del> if not isinstance(axis, (list, tuple)):
<add> # Optimiza... | 1 |
Text | Text | fix nits in writing-tests.md | 4e9dc31817498ae03fcf7c2136d5d69b863a135c | <ide><path>doc/guides/writing-tests.md
<ide> assert.throws(
<ide>
<ide> Output written by tests to stdout or stderr, such as with `console.log()` or
<ide> `console.error()`, can be useful when writing tests, as well as for debugging
<del>them during later maintenance. The output will be supressed by the test runner
<... | 1 |
Javascript | Javascript | remove special test entries" | 7cfbc9f90f3109feaeb9db5df9d4d692a62178ef | <ide><path>benchmark/assert/deepequal-buffer.js
<ide> const bench = common.createBenchmark(main, {
<ide> n: [2e4],
<ide> len: [1e2, 1e3],
<ide> strict: [0, 1],
<del> method: ['deepEqual', 'notDeepEqual'],
<add> method: [ 'deepEqual', 'notDeepEqual' ],
<ide> });
<ide>
<ide> function main({ len, n, method, stric... | 41 |
Javascript | Javascript | fix buck error | 4b6b71664ecdb9a7888bf45f46f673bcce613579 | <ide><path>Libraries/Components/MapView/MapView.js
<ide> var EdgeInsetsPropType = require('EdgeInsetsPropType');
<ide> var Image = require('Image');
<ide> var NativeMethodsMixin = require('NativeMethodsMixin');
<del>var PinColors = require('NativeModules').UIManager.RCTMap.Constants.PinColors;
<ide> var Platform = requ... | 1 |
Javascript | Javascript | fix performanceobserver gc crash | afabd145d176ec49adafeecd6d820cf71783d3e0 | <ide><path>lib/internal/perf/observe.js
<ide> function maybeDecrementObserverCounts(entryTypes) {
<ide> if (observerType === NODE_PERFORMANCE_ENTRY_TYPE_GC &&
<ide> observerCounts[observerType] === 0) {
<ide> removeGarbageCollectionTracking();
<add> gcTrackingInstalled = false;
<ide> ... | 2 |
Ruby | Ruby | add additional method signatures to strategies | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0 | <ide><path>Library/Homebrew/livecheck/strategy.rb
<ide> module Strategy
<ide> # At present, this should only be called after tap strategies have been
<ide> # loaded, otherwise livecheck won't be able to use them.
<ide> # @return [Hash]
<add> sig { returns(T::Hash[Symbol, T.untyped]) }
<ide> ... | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.