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 |
|---|---|---|---|---|---|
Javascript | Javascript | update gpgpu example | 3c4ec1d1bdc1f04f02d00244a7b44611c67de61d | <ide><path>examples/js/SimulatorRenderer.js
<ide> function SimulatorRenderer(WIDTH, renderer) {
<ide> var dtPosition = generatePositionTexture();
<ide> var dtVelocity = generateVelocityTexture();
<ide>
<del> rtPosition1 = getRenderTarget();
<add> rtPosition1 = getRenderTarget( THREE.RGBAFormat );
<ide> rtPosit... | 1 |
Javascript | Javascript | avoid unecessary nexttick | 033037cec99b3b20cfec25fcebd5ee68fbb30ad4 | <ide><path>lib/internal/streams/destroy.js
<ide> function destroy(err, cb) {
<ide> }
<ide>
<ide> this._destroy(err || null, (err) => {
<add> const emitClose = (w && w.emitClose) || (r && r.emitClose);
<ide> if (cb) {
<del> process.nextTick(emitCloseNT, this);
<add> if (emitClose) {
<add> pr... | 1 |
Text | Text | use correct status code | a4d500ba107466e8d44a82ed8ca632a3ea81a016 | <ide><path>docs/api-guide/authentication.md
<ide> If successfully authenticated, `BasicAuthentication` provides the following cred
<ide> * `request.user` will be a `django.contrib.auth.models.User` instance.
<ide> * `request.auth` will be `None`.
<ide>
<del>Unauthenticated responses that are denied permission will res... | 1 |
Ruby | Ruby | remove superfluous test | 116fae6ef994dcc46d334a2dd652c1d7e977468e | <ide><path>activestorage/test/jobs/purge_job_test.rb
<ide> class ActiveStorage::PurgeJobTest < ActiveJob::TestCase
<ide> end
<ide> end
<ide> end
<del>
<del> test "ignores attached blob" do
<del> User.create! name: "DHH", avatar: @blob
<del>
<del> perform_enqueued_jobs do
<del> assert_nothing_rai... | 1 |
Text | Text | add chinese translation for 01-why-react.md | c3948483d975f57af4e2fedb426969f7c8d61563 | <ide><path>docs/docs/01-why-react.zh-CN.md
<add>---
<add>id: why-react-zh-CN
<add>title: 为什么使用 React?
<add>layout: docs
<add>permalink: why-react-zh-CN.html
<add>next: displaying-data.html
<add>---
<add>
<add>React 是一个 Facebook 和 Instagram 用来创建用户界面的 JavaScript 库。很人多认为 React 是 **[MVC](http://en.wikipedia.org/wiki/Model%... | 1 |
Python | Python | add is_done=true to get_all_expired filter | 52ffc2b264cbacaee56017cd4a67df4511d60392 | <ide><path>celery/managers.py
<ide> def is_done(self, task_id):
<ide> return self.get_task(task_id).is_done
<ide>
<ide> def get_all_expired(self):
<del> return self.filter(date_done__lt=datetime.now() - timedelta(days=5))
<add> return self.filter(date_done__lt=datetime.now() - timedelta(days=... | 1 |
Javascript | Javascript | add missing variables | 6e8878041958373b4d5db25c4206d82a59d7af24 | <ide><path>examples/with-external-scoped-css/pages/_document.js
<ide> import Document, { Head, Main, NextScript } from 'next/document'
<ide>
<ide> export default class MyDocument extends Document {
<ide> static getInitialProps ({ renderPage }) {
<del> const {html, head} = renderPage()
<del> return { html, head... | 1 |
Javascript | Javascript | extract layout effects to separate functions | 679eea3282967742473910aed1209ac8c21f2a67 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> export function commitPassiveEffectDurations(
<ide> }
<ide> }
<ide>
<add>function commitHookLayoutEffects(finishedWork: Fiber) {
<add> // At this point layout effects have already been destroyed (during mutation phase).
<add> // This is don... | 2 |
Javascript | Javascript | flow type touchablebounce | 8454a36b0bc54cb1e267bc264657cc693607da71 | <ide><path>Libraries/Components/Touchable/TouchableBounce.js
<ide> const React = require('React');
<ide> const createReactClass = require('create-react-class');
<ide> const PropTypes = require('prop-types');
<ide> const Touchable = require('Touchable');
<add>const TouchableWithoutFeedback = require('TouchableWithoutFee... | 1 |
Javascript | Javascript | move chain alias from indexedsequence to sequence | 0afefc9aebfe5d82750528712f599c038a3e7f27 | <ide><path>src/Sequence.js
<ide> SequencePrototype.toJSON = SequencePrototype.toJS;
<ide> SequencePrototype.__toJS = SequencePrototype.toObject;
<ide> SequencePrototype.inspect =
<ide> SequencePrototype.toSource = function() { return this.toString(); };
<add>SequencePrototype.chain = SequencePrototype.flatMap;
<ide>
<... | 1 |
Ruby | Ruby | fix failure in reporter_test.rb | d0060f12061bf2b8962964abd67b413c601101b5 | <ide><path>railties/lib/rails/test_unit/reporter.rb
<ide> def record(result)
<ide> end
<ide>
<ide> if output_inline? && result.failure && (!result.skipped? || options[:verbose])
<add> result.failures.each { |f| f.backtrace.clear } if result.error?
<add>
<ide> io.puts
<ide> io.puts
<i... | 1 |
Ruby | Ruby | remove rescue as it was clobbering the real error | ae13cb1523b97e860e7a8eeec905528a273d843a | <ide><path>load_paths.rb
<del>begin
<del> require File.expand_path('../.bundle/environment', __FILE__)
<del>rescue LoadError
<del> begin
<del> # bust gem prelude
<del> if defined? Gem
<del> Gem.source_index
<del> gem 'bundler'
<del> else
<del> require 'rubygems'
<del> end
<del> require '... | 1 |
Java | Java | fix cancellation order in throttlefirst | d6d8869c9f4d3bf6fb7b4b2126a4ee25cc3d0b49 | <ide><path>src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableThrottleFirstTimed.java
<ide> public void onNext(T t) {
<ide> downstream.onNext(t);
<ide> BackpressureHelper.produced(this, 1);
<ide> } else {
<add> upstream.cance... | 2 |
Ruby | Ruby | convert `dependency_expansion` test to spec | 7393485b7b2f15b84506d1c7f7d157db545aa18f | <ide><path>Library/Homebrew/test/dependency_expansion_spec.rb
<add>require "dependency"
<add>
<add>describe Dependency do
<add> def build_dep(name, tags = [], deps = [])
<add> dep = described_class.new(name.to_s, tags)
<add> allow(dep).to receive(:to_formula).and_return(double(deps: deps, name: name))
<add> d... | 2 |
Python | Python | update deprecation message to be more clearer | 523f5e05fcce1ea77963be5760fbd22a330f89ab | <ide><path>official/nlp/bert/model_training_utils.py
<ide> def write_txt_summary(training_summary, summary_dir):
<ide>
<ide>
<ide> @deprecation.deprecated(
<del> None, 'This function is deprecated. Please use Keras compile/fit instead.')
<add> None, 'This function is deprecated and we do not expect adding new '... | 1 |
Javascript | Javascript | fix typo in regex tweak from previous commit | 0f6c7830ce5bdd31588dccdc40b6254fb4a9100f | <ide><path>src/core.js
<ide> var jQuery = function( selector, context ) {
<ide> rootjQuery,
<ide>
<ide> // A simple way to check for HTML strings
<del> quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$/,
<add> quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$/,
<ide>
<ide> // Check if a string has a non-whitespace character in it
<ide> ... | 1 |
Ruby | Ruby | use sidekiq.options to set initial wait | a22523abcd4281b1632c75771e87a55c141aa339 | <ide><path>activejob/test/support/integration/adapters/sidekiq.rb
<ide> def start_workers
<ide> timeout: 1,
<ide> })
<ide> Sidekiq.average_scheduled_poll_interval = 0.5
<del> Sidekiq::Scheduled.const_set :INITIAL_WAIT, 1
<add> ... | 1 |
PHP | PHP | use null coalesce in a few more applicable places | 958512427cace7753ebd94a573bbad834b8b7508 | <ide><path>src/Http/Client.php
<ide> public function buildUrl(string $url, $query = [], array $options = []): string
<ide> */
<ide> protected function _createRequest(string $method, string $url, $data, $options): Request
<ide> {
<del> $headers = isset($options['headers']) ? (array)$options['headers'... | 3 |
Python | Python | fix bin/init_model.py after refactoring | d310dc73efe209f50d50d08067b23dafa0dede67 | <ide><path>bin/init_model.py
<ide> def main(lang_id, lang_data_dir, corpora_dir, model_dir):
<ide>
<ide> tag_map = json.load((lang_data_dir / 'tag_map.json').open())
<ide> setup_tokenizer(lang_data_dir, model_dir / 'tokenizer')
<del> setup_vocab(get_lang_class(lang_id).default_lex_attrs(), tag_map, corpora_... | 1 |
Python | Python | fix batch normalization as first layer | 97174dd298cf4b5be459e79b0181a124650d9148 | <ide><path>keras/layers/normalization.py
<ide> def __init__(self, input_shape, epsilon=1e-6, mode=0, momentum=0.9, weights=None
<ide> self.epsilon = epsilon
<ide> self.mode = mode
<ide> self.momentum = momentum
<del> self.input = ndim_tensor(len(self.input_shape))
<add> self.input ... | 1 |
Ruby | Ruby | remove unnecessary blank line | a8ca47d294d1399393c4f066e0bebd356d500148 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_coretap_git_origin
<ide> branch = coretap_path.git_branch
<ide> return if branch.nil? || branch =~ /master/
<ide>
<del>
<ide> <<-EOS.undent
<ide> Homebrew/homebrew-core is not on the master branch
<ide> | 1 |
Mixed | Ruby | add params option for button_to | e6e0579defcfcf94ef1c4c1c7659f374a5335cdb | <ide><path>actionpack/CHANGELOG.md
<add>* Add `params` option to `button_to` form helper, which renders the given hash
<add> as hidden form fields.
<add>
<add> *Andy Waite*
<add>
<ide> * Development mode exceptions are rendered in text format in case of XHR request.
<ide>
<ide> *Kir Shatrov*
<ide><path>a... | 3 |
Ruby | Ruby | fix typo in deprecation warning | c9aac2a215d46d25556a6a0eaae1b9f85231a6b4 | <ide><path>activesupport/lib/active_support/message_encryptor.rb
<ide> class InvalidMessage < StandardError; end
<ide>
<ide> def initialize(secret, options = {})
<ide> unless options.is_a?(Hash)
<del> ActiveSupport::Deprecation.warn "The second parameter should be an options hash. Use :cipher => 'algo... | 1 |
Text | Text | add extra note about canary branch in contributing | bb48a31d5474baf3cf4c8edefd8453c6406dce0c | <ide><path>contributing.md
<ide> Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss)
<ide> 3. Install the dependencies: `yarn`
<ide> 4. Run `yarn dev` to build and watch for code changes
<ide> 5. In a new terminal, run `yarn types` to compile declaration files from TypeScript
<del>6. The develop... | 1 |
Ruby | Ruby | remove unused require | 728ef086d4079b1972090e23b0492ee88464394d | <ide><path>activesupport/lib/active_support/parameter_filter.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/object/duplicable"
<del>require "active_support/core_ext/array/extract"
<ide>
<ide> module ActiveSupport
<ide> # +ParameterFilter+ allows you to specify keys for sensitive... | 1 |
Python | Python | use getmask where possible | e54deb5e1996648c516f32c3be0159cb6dece5a2 | <ide><path>numpy/ma/core.py
<ide> def masked_values(x, value, rtol=1e-5, atol=1e-8, copy=True, shrink=True):
<ide> if issubclass(xnew.dtype.type, np.floating):
<ide> condition = umath.less_equal(
<ide> mabs(xnew - value), atol + rtol * mabs(value))
<del> mask = getattr(x, '_mask', nomask)... | 1 |
Ruby | Ruby | add failing tests for issue | 024d3b9fcc684367b1a329c8b89c227b6470520e | <ide><path>actionpack/test/template/active_model_helper_test.rb
<ide> class ActiveModelHelperTest < ActionView::TestCase
<ide> tests ActionView::Helpers::ActiveModelHelper
<ide>
<ide> silence_warnings do
<del> class Post < Struct.new(:author_name, :body)
<add> class Post < Struct.new(:author_name, :body, :up... | 1 |
Go | Go | add the testrunswaplessthanmemorylimit case | ab39a4c98110d9a16afd73ce2992ab3d4532201a | <ide><path>integration-cli/docker_cli_run_unix_test.go
<ide> func (s *DockerSuite) TestStopContainerSignal(c *check.C) {
<ide> c.Fatalf("Expected `exit trapped` in the log, got %v", out)
<ide> }
<ide> }
<add>
<add>func (s *DockerSuite) TestRunSwapLessThanMemoryLimit(c *check.C) {
<add> testRequires(c, memoryLimitSup... | 1 |
Ruby | Ruby | remove a redundant default_scope tests | bad1a267f1740156729656c5fe4bfb7ba769a481 | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_find_with_included_associations
<ide> end
<ide> end
<ide>
<del> def test_default_scope_with_conditions_string
<del> assert_equal Developer.where(name: "David").map(&:id).sort, DeveloperCalledDavid.all.map(&:id).sort
<del> assert_nil Devel... | 1 |
Mixed | Ruby | remove query params in diskservice | 2e15092942908ce6a240a2f10107e3b920d76abe | <ide><path>activestorage/CHANGELOG.md
<add>* Remove unused `disposition` and `content_type` query parameters for `DiskService`.
<add>
<add> *Peter Zhu*
<add>
<ide> * Use `DiskController` for both public and private files.
<ide>
<ide> `DiskController` is able to handle multiple services by adding a
<ide><pat... | 6 |
Go | Go | fix wrong test and add log | e73152bf273418cbee3d5862dd2ccfbdf2d6e8fc | <ide><path>integration-cli/docker_cli_diff_test.go
<ide> func (s *DockerSuite) TestDiffEnsureInitLayerFilesAreIgnored(c *check.C) {
<ide> }
<ide> }
<ide>
<del>func (s *DockerSuite) TestDiffEnsureOnlyKmsgAndPtmx(c *check.C) {
<add>func (s *DockerSuite) TestDiffEnsureDefaultDevs(c *check.C) {
<ide> testRequires(c, Dae... | 1 |
PHP | PHP | add droptablesql to sqlite | 0878b174e258c23acbdca673dfb04ec6d5381558 | <ide><path>lib/Cake/Database/Schema/SqliteSchema.php
<ide> public function createTableSql($table, $columns, $constraints, $indexes) {
<ide> }
<ide> return $out;
<ide> }
<add>
<add>/**
<add> * Generate the SQL to drop a table.
<add> *
<add> * @param Cake\Database\Schema\Table $table Table instance
<add> * @return s... | 2 |
Python | Python | fix flake8 errors | b359d23880771f046080b64ffe71aa52b86b1088 | <ide><path>libcloud/pricing.py
<ide> def get_gce_image_price(image_name, size_name, cores=1):
<ide> elif 'g1' in size_name:
<ide> size_type = 'g1'
<ide>
<del>
<ide> price_dict_keys = price_dict.keys()
<ide>
<ide> # search keys to find the one we want
<ide> def download_pricing_file(
<ide> with... | 2 |
Javascript | Javascript | remove unnecessary parameter from validateoneof | 572d55645c0bd446e7f88e0f2120e5a115257234 | <ide><path>lib/dns.js
<ide> function lookup(hostname, options, callback) {
<ide> } else if (typeof options === 'number') {
<ide> validateFunction(callback, 'callback');
<ide>
<del> validateOneOf(options, 'family', validFamilies, true);
<add> validateOneOf(options, 'family', validFamilies);
<ide> family... | 2 |
Javascript | Javascript | fix eslint errors in layout service test | a0ce74643f3d6f7ad6f2f4a8ac4343d6526b91a8 | <ide><path>gulpfile.js
<ide> function lintTask() {
<ide> 'it',
<ide> 'jasmine',
<ide> 'moment',
<del> 'spyOn'
<add> 'spyOn',
<add> 'xit'
<ide> ]
<ide> };
<ide>
<ide><path>test/core.layoutService.tests.js
<ide> // Tests of the scale service
<ide> describe('Test the layout service'... | 2 |
Ruby | Ruby | remove a confusing comment | 4360ecf7df7220d0a074c6eec40735f5f4390a1b | <ide><path>activerecord/test/schema/schema.rb
<ide> create_table(t, force: true) {}
<ide> end
<ide>
<del> # NOTE - the following 4 tables are used by models that have :inverse_of options on the associations
<ide> create_table :men, force: true do |t|
<ide> t.string :name
<ide> end | 1 |
PHP | PHP | fix $withcount binding problems | cab365a85a0fa3e4f7113390de4a5b31f64748e2 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function whereKeyNot($id)
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and')
<ide> {
<ide> if ($column instanceof Closure) {
<del> $query = $this->model->newQueryWithoutScopes();
<del>
<d... | 6 |
PHP | PHP | add missing docblock. | 327d5d6410b1c9c392393808428da003710f45f1 | <ide><path>src/Illuminate/Mail/Transport/MailgunTransport.php
<ide> class MailgunTransport extends Transport
<ide> * @param \GuzzleHttp\ClientInterface $client
<ide> * @param string $key
<ide> * @param string $domain
<add> * @param string|null $endpoint
<ide> * @return void
<ide> */... | 1 |
Javascript | Javascript | make argument of dependencytemplate an object | 831e71c7977c9805936a2698433d1da9ec29ee95 | <ide><path>lib/DependencyTemplate.js
<ide> /** @typedef {import("./RuntimeTemplate")} RuntimeTemplate */
<ide>
<ide> /**
<del> * @typedef {Object} TemplateContext
<add> * @typedef {Object} DependencyTemplateContext
<ide> * @property {RuntimeTemplate} runtimeTemplate the runtime template
<ide> * @property {Dependency... | 34 |
PHP | PHP | remove unnecessary call to getdatasource() | fdb4b11d0b796caee0603f52492bfb9bfe8cebb5 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function read(Model $model, $queryData = array(), $recursive = null) {
<ide> $linkModel = $model->{$assoc};
<ide> $external = isset($assocData['external']);
<ide>
<del> $linkModel->getDataSource();
<ide> if ($model->useDbConfig === $linkMod... | 1 |
Go | Go | add sys_chroot cap to unprivileged containers | 41f7cef2bd186d321fc4489691ba53ab41eb48e5 | <ide><path>daemon/execdriver/native/template/default_template.go
<ide> func New() *libcontainer.Container {
<ide> "SETFCAP",
<ide> "SETPCAP",
<ide> "NET_BIND_SERVICE",
<add> "SYS_CHROOT",
<ide> },
<ide> Namespaces: map[string]bool{
<ide> "NEWNS": true,
<ide><path>integration-cli/docker_cli_run_test.g... | 2 |
Ruby | Ruby | fix warning in tests when using render_erb helper | a985309abc8993ddc33c7a604bc41868909f457c | <ide><path>actionpack/test/abstract_unit.rb
<ide> def view
<ide> end
<ide>
<ide> def render_erb(string)
<add> @virtual_path = nil
<add>
<ide> template = ActionView::Template.new(
<ide> string.strip,
<ide> "test template", | 1 |
Text | Text | update the issue template | 3394b43cb7c64f9a87db26077931c9c5ff8dad37 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> <!-- FreeCodeCamp Issue Template -->
<ide>
<del><!-- NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/Help -->
<ide> <!-- Please provide as much detail as possible for us to fix your issue -->
<ide> <!-- Remove any heading sections you did n... | 1 |
Javascript | Javascript | add rfc 232 mocha controller tests | d73ca4c96abbebc8ff060593dcf5f48eaddcd16c | <ide><path>blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
<add>import { expect } from 'chai';
<add>import { describe, it } from 'mocha';
<add>import { setupTest } from 'ember-mocha';
<add>
<add>describe('<%= friendlyTestDescription %>', function() {
<add> setupTest();
<add>
<... | 4 |
Javascript | Javascript | check eaddrinuse after binding localport | c419adff1d2cb8a71add8dc0027607715ae731ea | <ide><path>lib/net.js
<ide> function afterWrite(status, handle, req, err) {
<ide> }
<ide>
<ide>
<add>function checkBindError(err, port, handle) {
<add> // EADDRINUSE may not be reported until we call listen() or connect().
<add> // To complicate matters, a failed bind() followed by listen() or connect()
<add> // w... | 2 |
Javascript | Javascript | add github check on login with github | 9196d1c48ececf281e767cfbcb566571e9b4653a | <ide><path>common/models/User-Identity.js
<del>var debug = require('debug')('freecc:models:userIdent');
<add>import debugFactory from 'debug';
<ide>
<del>var defaultProfileImage =
<del> require('../utils/constantStrings.json').defaultProfileImage;
<add>const debug = debugFactory('freecc:models:userIdent');
<add>
<add... | 1 |
Text | Text | update features [ci skip] | 3e058dee62a09dd61f788739a7f5f6218a095d61 | <ide><path>website/docs/usage/v3-1.md
<ide> vectors.
<ide> $ python -m spacy assemble config.cfg ./output
<ide> ```
<ide>
<add>### Pretty pipeline package READMEs {#package-readme}
<add>
<add>The [`spacy package`](/api/cli#package) command now auto-generates a pretty
<add>`README.md` based on the pipeline information ... | 1 |
Ruby | Ruby | change static root to /public | ce52c6f4a74f7cb9d9e321203bb47f0f3364bfb2 | <ide><path>railties/lib/rails/application.rb
<ide> def build_asset_environment
<ide>
<ide> env = Sprockets::Environment.new(root.to_s)
<ide> env.logger = Rails.logger
<del> env.static_root = Rails.root.join("public/assets")
<add> env.static_root = Rails.root.join("public")
<ide>
<ide> self... | 1 |
Python | Python | clarify the examples for argmax and argmin | 7e0d3fe31ed6a31ff08fb1fc0c9e6c0e1f6a8568 | <ide><path>numpy/core/fromnumeric.py
<ide> def argmax(a, axis=None, out=None):
<ide>
<ide> Examples
<ide> --------
<del> >>> a = np.arange(6).reshape(2,3)
<add> >>> a = np.arange(6).reshape(2,3) + 10
<ide> >>> a
<del> array([[0, 1, 2],
<del> [3, 4, 5]])
<add> array([[10, 11, 12],
<add... | 1 |
Text | Text | fix pypi package name in install instructions | 2026d5f1d93da7c16a58590a561563cfea3b9ad1 | <ide><path>README.md
<ide> For more information, check out [the documentation][docs], in particular, the tu
<ide>
<ide> Install using `pip`...
<ide>
<del> pip install rest_framework
<add> pip install djangorestframework
<ide>
<ide> ...or clone the project from github.
<ide> | 1 |
Javascript | Javascript | fix nextseo example | 2ad0b5ba4aa7e66b71b616b94893609bc58e8160 | <ide><path>examples/with-next-seo/pages/index.js
<ide> export default function Home() {
<ide> return (
<ide> <div>
<ide> <NextSeo
<del> config={{
<del> title: 'Page Meta Title',
<del> description: 'This will be the page meta description',
<del> canonical: 'https://www.canon... | 1 |
PHP | PHP | remove controller inspection from routing | 8c73439ee4b7be4ed63325a56f1551022b340867 | <ide><path>src/Illuminate/Routing/ControllerInspector.php
<del><?php
<del>
<del>namespace Illuminate\Routing;
<del>
<del>use ReflectionClass;
<del>use ReflectionMethod;
<del>use Illuminate\Support\Str;
<del>
<del>/**
<del> * @deprecated since version 5.1.
<del> */
<del>class ControllerInspector
<del>{
<del> /**
<del... | 3 |
Ruby | Ruby | move encryption helper code to the general helper | eb81a4ea3d2f0c9746e06a5fece9a44b46e92ee8 | <ide><path>activerecord/test/cases/encryption/helper.rb
<ide> require "cases/helper"
<ide> require "benchmark/ips"
<ide>
<del>ActiveRecord::Encryption.configure \
<del> master_key: "test master key",
<del> deterministic_key: "test deterministic key",
<del> key_derivation_salt: "testing key derivation salt"
<del>
<d... | 2 |
Text | Text | leave pull requests open for 72 hours | 2f117e1cd83fb8c34e1ff135a15d472c2dab4f89 | <ide><path>COLLABORATOR_GUIDE.md
<ide> agenda.
<ide> ### Waiting for Approvals
<ide>
<ide> Before landing pull requests, sufficient time should be left for input
<del>from other Collaborators. In general, leave at least 48 hours during the
<del>week and 72 hours over weekends to account for international time
<del>dif... | 2 |
Javascript | Javascript | improve code in test-console-instance | 8e491a4f3f68930e9f17a0b41106c476b6e346e9 | <ide><path>test/parallel/test-console-instance.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide> const Stream = require('stream');
<ide> const Console = require('console').Console;
<del>let called = false;
<ide>
<ide> const out = n... | 1 |
Ruby | Ruby | fix a typo in the doc of forty_two ar findermethod | cd440c9ea716ebb78eb936cda9cf9389bc1359e8 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def fifth!
<ide> # If no order is defined it will order by primary key.
<ide> #
<ide> # Person.forty_two # returns the forty-second object fetched by SELECT * FROM people
<del> # Person.offset(3).forty_two # returns the fifth ... | 1 |
PHP | PHP | improve docs for aclshell | eee37bb04e582842d8c7bbdabd03680b6e31fe6b | <ide><path>lib/Cake/Console/Command/AclShell.php
<ide> public function getOptionParser() {
<ide> 'help' => __d('cake_console', 'Create a new ACL node'),
<ide> 'parser' => array(
<ide> 'description' => __d('cake_console', 'Creates a new ACL object <node> under the parent'),
<add> 'epilog' => __d('cake_c... | 1 |
Java | Java | update @since version after backport | 0134c9d608ab6cdef78c791e946a1a85aaacd476 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java
<ide> public interface HandlerMapping {
<ide> /**
<ide> * Name of the {@link HttpServletRequest} attribute that contains the mapped
<ide> * handler for the best matching pattern.
<del> * @since 5.1.3
<add> * @since 4.3.21
... | 1 |
Javascript | Javascript | add missing typings | 66dd4f992afd77fbe69ed62b654f8d819b13ddc8 | <ide><path>lib/RequestShortener.js
<ide> "use strict";
<ide>
<ide> const path = require("path");
<add>
<ide> const NORMALIZE_SLASH_DIRECTION_REGEXP = /\\/g;
<ide> const PATH_CHARS_REGEXP = /[-[\]{}()*+?.,\\^$|#\s]/g;
<ide> const SEPARATOR_REGEXP = /[/\\]$/;
<ide> const FRONT_OR_BACK_BANG_REGEXP = /^!|!$/g;
<ide> const... | 2 |
PHP | PHP | add getgrammar into passthru in eloquent builder | 0946c3eb93cfe70a895bcae67d47c341d990a781 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> class Builder
<ide> */
<ide> protected $passthru = [
<ide> 'insert', 'insertOrIgnore', 'insertGetId', 'insertUsing', 'getBindings', 'toSql', 'dump', 'dd',
<del> 'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'average', 'sum', ... | 2 |
PHP | PHP | add getter mode for logqueries | 2dc13efa6d5fcdc38f0fedf72924ad6b2ee6ddd6 | <ide><path>src/Database/Connection.php
<ide> public function quoteIdentifier($identifier) {
<ide> /**
<ide> * Enables or disables query logging for this connection.
<ide> *
<del> * @param bool $enable whether to turn logging on or disable it
<del> * @return void
<add> * @param bool $enable whether to turn logging on ... | 2 |
Ruby | Ruby | use typewriter in doc for action cable [ci skip] | 5eb831d3f25dafb1128dd45334fe8e918ef52004 | <ide><path>actioncable/lib/action_cable/server/base.rb
<ide> def call(env)
<ide> config.connection_class.call.new(self, env).process
<ide> end
<ide>
<del> # Disconnect all the connections identified by `identifiers` on this server or any others via RemoteConnections.
<add> # Disconnect all the ... | 1 |
Python | Python | attempt #2 to fix encoding issues | 77083534df662443dcca199b9396f53b85188560 | <ide><path>celery/utils/term.py
<ide> def _fold_no_color(self, a, b):
<ide> except AttributeError:
<ide> B = string(b)
<ide>
<del> return safe_str(safe_str(A) + safe_str(B))
<add> return ''.join((string(A), string(B)))
<ide>
<ide> def no_color(self):
<ide> if self.s:
<del... | 1 |
Ruby | Ruby | fix code style in `audit` spec | d98c45b2d3e06385fd2026ed6f431b93a4614c46 | <ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb
<ide> module Count
<ide> def self.increment
<ide> @count ||= 0
<del> @count += 1
<add> @count += 1
<ide> end
<ide> end
<ide>
<ide> class Foo < Formula
<ide> end
<ide>
<ide> describe "#audit_revision_and_version_scheme" do
<del> subject... | 1 |
Javascript | Javascript | upgrade compatibilityplugin to es6 | 2ed67f172e9656c9c95d23eab1975dbdd98e0697 | <ide><path>lib/CompatibilityPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ConstDependency = require("./dependencies/ConstDependency");
<del>
<del>var NullFactory = require("./NullFactory");
<del>
<del>var jsonLoaderPath = require.re... | 1 |
Python | Python | use localhost rather than 0.0.0.0 | 4bf129f49eb608e34e46f60edb1d23303dd2ed27 | <ide><path>examples/__main__.py
<ide> })
<ide> http_server = tornado.httpserver.HTTPServer(application)
<ide> http_server.listen(tornado.options.options.port)
<del> print "http://0.0.0.0:%d/examples/index.html" % tornado.options.options.port
<add> print "http://localhost:%d/examples/index.html" % tornado.option... | 1 |
PHP | PHP | fix timeout and sleep | b44d34056e932898a295e7e58b8c48ce6057324d | <ide><path>src/Illuminate/Queue/Console/ListenCommand.php
<ide>
<ide> namespace Illuminate\Queue\Console;
<ide>
<add>use InvalidArgumentException;
<ide> use Illuminate\Queue\Listener;
<ide> use Illuminate\Console\Command;
<ide> use Symfony\Component\Console\Input\InputOption;
<ide> public function fire()
<ide>
<ide>... | 1 |
Go | Go | remove stdout from registry | 398a6317a09679b65a59d529e78f5e7480e8de0b | <ide><path>registry/registry.go
<ide> func (r *Registry) getImagesInRepository(repository string, authConfig *auth.Aut
<ide>
<ide> // Retrieve an image from the Registry.
<ide> // Returns the Image object as well as the layer as an Archive (io.Reader)
<del>func (r *Registry) GetRemoteImageJson(stdout io.Writer, imgId,... | 2 |
Javascript | Javascript | use cached intl.numberformat everywhere | 59000abd1d96c4e29c6687967f948b47a7db3948 | <ide><path>src/controllers/controller.doughnut.js
<ide> import DatasetController from '../core/core.datasetController';
<add>import {formatNumber} from '../core/core.intl';
<ide> import {isArray, valueOrDefault} from '../helpers/helpers.core';
<ide> import {toRadians, PI, TAU, HALF_PI} from '../helpers/helpers.math';
<... | 5 |
Mixed | Ruby | add include_seconds option to datetime_local_field | 2dea9aebf2ce2e0f37c821a8d88f3caef549de7a | <ide><path>actionview/CHANGELOG.md
<add>* Add `include_seconds` option for `datetime_local_field`
<add>
<add> This allows to omit seconds part in the input field, by passing `include_seconds: false`
<add>
<add> *Wojciech Wnętrzak*
<add>
<ide> * Guard against `ActionView::Helpers::FormTagHelper#field_name` cal... | 5 |
Ruby | Ruby | remove array.wrap call in activemodel | 2a663dcf09b380279b22537db6a7caaefdf8b961 | <ide><path>activemodel/lib/active_model/callbacks.rb
<del>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/callbacks'
<ide>
<ide> module ActiveModel
<ide> def define_model_callbacks(*callbacks)
<ide> :only => [:before, :around, :after]
<ide> }.merge(options)
<ide>
<del> t... | 7 |
PHP | PHP | apply fixes from styleci | 4ffd790217432f8699d4beae891fca482c230de4 | <ide><path>src/Illuminate/Notifications/Channels/MailChannel.php
<ide> use Closure;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<del>use Illuminate\Support\Collection;
<ide> use Illuminate\Contracts\Mail\Mailer;
<ide> use Illuminate\Contracts\Mail\Mailable;
<ide> use Illuminate\Notifications\Not... | 1 |
Javascript | Javascript | allow dangerouslysetinnerhtml in <option> | 442eb21e0e6541460157782d18edea1383ed62fd | <ide><path>packages/react-dom/src/server/ReactDOMServerFormatConfig.js
<ide> function pushStartOption(
<ide> let children = null;
<ide> let value = null;
<ide> let selected = null;
<add> let innerHTML = null;
<ide> for (const propKey in props) {
<ide> if (hasOwnProperty.call(props, propKey)) {
<ide> ... | 1 |
Go | Go | use dockercmd in integration-cli when possible | 012b67c3ea5bff539673deaa7058036126ac1046 | <ide><path>integration-cli/docker_cli_restart_test.go
<ide> func (s *DockerSuite) TestRestartStoppedContainer(c *check.C) {
<ide>
<ide> out, _ = dockerCmd(c, "logs", cleanedContainerID)
<ide> if out != "foobar\nfoobar\n" {
<del> c.Errorf("container should've printed 'foobar' twice")
<add> c.Errorf("container shoul... | 6 |
Java | Java | add more test cases for simplealiasregistry | 345d8186d4a2153e20a2e13c21ea8686987a0031 | <ide><path>spring-core/src/test/java/org/springframework/core/SimpleAliasRegistryTests.java
<ide> void aliasChainingWithMultipleAliases() {
<ide> assertThat(registry.hasAlias("real_name", "alias_c")).isTrue();
<ide> }
<ide>
<add> @Test
<add> void removeAliasTest() {
<add> SimpleAliasRegistry registry = new SimpleA... | 1 |
Python | Python | add ticks to quantile interpolation/method error | 5bd71fb76c68f41debe3a15fbf316ce6ef7fd795 | <ide><path>numpy/lib/function_base.py
<ide> def _check_interpolation_as_method(method, interpolation, fname):
<ide> # sanity check, we assume this basically never happens
<ide> raise TypeError(
<ide> "You shall not pass both `method` and `interpolation`!\n"
<del> "(`interpolation`... | 1 |
PHP | PHP | whitespace coding standards | c989624f8053f28d2ac37f5e84dc436965235177 | <ide><path>lib/Cake/Controller/Component/Auth/BlowfishAuthenticate.php
<ide> * For initial password hashing/creation see Security::hash(). Other than how the password is initially hashed,
<ide> * BlowfishAuthenticate works exactly the same way as FormAuthenticate.
<ide> *
<del> * @package Cake.Controller.Component.A... | 15 |
Ruby | Ruby | fix uses_from_macos_elements tests | 3e15023269326bb9c34ca63e360f3178983f7376 | <ide><path>Library/Homebrew/test/os/mac/formula_spec.rb
<ide>
<ide> expect(f.class.stable.deps.first.name).to eq("foo")
<ide> expect(f.class.head.deps.first.name).to eq("foo")
<del> expect(f.class.stable.uses_from_macos_elements).to be_empty
<del> expect(f.class.head.uses_from_macos_elements).to ... | 2 |
Text | Text | provide password to volume create command | d9e5f7d8f7a749c36f8694852340aa136b9c29f5 | <ide><path>docs/extend/index.md
<ide> operation, such as creating a volume.
<ide> In the following example, you install the `sshfs` plugin, verify that it is
<ide> enabled, and use it to create a volume.
<ide>
<add>> **Note**: This example is intended for instructional purposes only. Once the volume is created, your S... | 1 |
Ruby | Ruby | remove usafe of respond_to in actionview tests | 2b0c602bc3dd2928b8a77465f305c765dbb447e5 | <ide><path>actionview/test/activerecord/controller_runtime_test.rb
<ide>
<ide> class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
<ide> class LogSubscriberController < ActionController::Base
<del> respond_to :html
<del>
<ide> def show
<ide> render :inline => "<%= Project.all %>"
<ide>... | 1 |
PHP | PHP | add `@componentfirst` directive | 8663082e67513d2ba1b7f0fbe868520d0bff67e8 | <ide><path>src/Illuminate/View/Compilers/Concerns/CompilesComponents.php
<ide> protected function compileEndSlot()
<ide> {
<ide> return '<?php $__env->endSlot(); ?>';
<ide> }
<add>
<add> /**
<add> * Compile the component-first statements into valid PHP.
<add> *
<add> * @param string $ex... | 3 |
Javascript | Javascript | improve clarity and consistency | 8e2f7d37e492524696c9122fe1346bfe04ec0f24 | <ide><path>src/ng/rootScope.js
<ide> * exposed as $$____ properties
<ide> *
<ide> * Loop operations are optimized by using while(count--) { ... }
<del> * - this means that in order to keep the same order of execution as addition we have to add
<add> * - This means that in order to keep the same order of exec... | 1 |
Text | Text | add documentation for the 'timeout' event | 784cdad7407555bbffebc97e75866dc9a8a04106 | <ide><path>doc/api/http.md
<ide> added: v0.5.3
<ide>
<ide> Emitted after a socket is assigned to this request.
<ide>
<add>### Event: 'timeout'
<add><!-- YAML
<add>added: v0.7.8
<add>-->
<add>
<add>Emitted when the underlying socket times out from inactivity. This only notifies
<add>that the socket has been idle. The ... | 1 |
Mixed | Javascript | use minimal object inspection with %s specifier | a9bf6652b5353f2098d4c0cd0eb77d17e02e164d | <ide><path>doc/api/util.md
<ide> as a `printf`-like format string which can contain zero or more format
<ide> specifiers. Each specifier is replaced with the converted value from the
<ide> corresponding argument. Supported specifiers are:
<ide>
<del>* `%s` - `String`.
<del>* `%d` - `Number` (integer or floating point ... | 5 |
Ruby | Ruby | remove a redundant mutation tracker | c342d58446defad94f26c067b19003c9941f2470 | <ide><path>activerecord/lib/active_record/attribute_methods/dirty.rb
<ide> module Dirty
<ide> def reload(*)
<ide> super.tap do
<ide> @mutations_before_last_save = nil
<del> clear_mutation_trackers
<add> @mutations_from_database = nil
<ide> @changed_attributes = Active... | 2 |
Javascript | Javascript | remove legacy get helper test | 4c981bac1f040dc961d4c0b51f16ef337c39ae48 | <ide><path>packages/ember-htmlbars/tests/helpers/get_test.js
<del>import Ember from 'ember-metal/core';
<del>import EmberObject from 'ember-runtime/system/object';
<del>import run from 'ember-metal/run_loop';
<del>import compile from 'ember-template-compiler/system/compile';
<del>import { runAppend, runDestroy } from '... | 1 |
Javascript | Javascript | add test case and remove unused import | 48c7ca1e8142d0e388602999bfac00bbd9fcce1a | <ide><path>lib/dependencies/HarmonyExportImportedSpecifierDependency.js
<ide> "use strict";
<ide> const NullDependency = require("./NullDependency");
<ide> const HarmonyModulesHelpers = require("./HarmonyModulesHelpers");
<del>const WebpackMissingModule = require("./WebpackMissingModule");
<ide>
<ide> class HarmonyExp... | 1 |
Javascript | Javascript | fix small fonts | 645c9acb62313cab8e45ccdf4dc68b035ffffdd8 | <ide><path>pdf.js
<ide> function ScratchCanvas(width, height) {
<ide> }
<ide>
<ide> var CanvasGraphics = (function() {
<add> var kScalePrecision = 50;
<add> var kRasterizerMin = 14;
<add>
<ide> function constructor(canvasCtx, imageCanvas) {
<ide> this.ctx = canvasCtx;
<ide> this.current = new CanvasExtraSt... | 1 |
Ruby | Ruby | improve generator name suggestions a bit | 7692a163fa836c7c66fe01a63215c1fd550f7b27 | <ide><path>railties/lib/rails/generators.rb
<ide> def self.invoke(namespace, args=ARGV, config={})
<ide> options = sorted_groups.map(&:last).flatten
<ide> suggestions = options.sort_by {|suggested| levenshtein_distance(namespace.to_s, suggested) }.first(3)
<ide> msg = "Could not find genera... | 1 |
Text | Text | add missing option for child_process.spawnsync() | 1f32cca6f94838471b4053d591dd8e5499dff5a2 | <ide><path>doc/api/child_process.md
<ide> changes:
<ide> * `cwd` {string} Current working directory of the child process.
<ide> * `input` {string|Buffer|Uint8Array} The value which will be passed as stdin
<ide> to the spawned process. Supplying this value will override `stdio[0]`.
<add> * `argv0` {string} Expl... | 1 |
Python | Python | fix f90 detection in the tests | 733ebda112453f0dc51d326e230bc2613704195a | <ide><path>numpy/f2py/tests/util.py
<ide> def configuration(parent_name='',top_path=None):
<ide> out, err = p.communicate()
<ide> m = re.search(asbytes(r'COMPILERS:(\d+),(\d+),(\d+)'), out)
<ide> if m:
<del> _compiler_status = (bool(m.group(1)), bool(m.group(2)),
<del> ... | 1 |
Python | Python | add numbers and definitions | 229ecaf0ea69ad586587ea70b8a90d59e0e64005 | <ide><path>spacy/lang/vi/lex_attrs.py
<ide>
<ide>
<ide> _num_words = [
<del> "không",
<del> "một",
<del> "hai",
<del> "ba",
<del> "bốn",
<del> "năm",
<del> "sáu",
<del> "bảy",
<del> "bẩy",
<del> "tám",
<del> "chín",
<del> "mười",
<del> "chục",
<del> "trăm",
<del> "nghìn",
... | 1 |
Text | Text | update morphanalysis.get and related examples | 8f44584bef4f41f5cbd72fd4292c1a727c6f33db | <ide><path>website/docs/api/morphanalysis.md
<ide> Iterate over the feature/value pairs in the analysis.
<ide> > #### Example
<ide> >
<ide> > ```python
<del>> feats = "Feat1=Val1|Feat2=Val2"
<add>> feats = "Feat1=Val1,Val3|Feat2=Val2"
<ide> > morph = MorphAnalysis(nlp.vocab, feats)
<del>> for feat in morph:
<del>> ... | 1 |
PHP | PHP | add trailing period in `seelink` & `dontseelink` | 9faca8e8e126222371314686729c05129d431420 | <ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php
<ide> protected function dontSee($text)
<ide> */
<ide> public function seeLink($text, $url = null)
<ide> {
<del> $message = "No links were found with expected text [{$text}].";
<add> $message = "No links were found with expected te... | 1 |
Go | Go | fix events test so it doesnt need new daemon | 9aff77156b74cc248542601e146d87011819c10c | <ide><path>integration-cli/docker_cli_events_test.go
<ide> package main
<ide> import (
<ide> "fmt"
<ide> "os/exec"
<add> "regexp"
<ide> "strconv"
<ide> "strings"
<ide> "testing"
<ide> func TestEventsImageImport(t *testing.T) {
<ide> }
<ide>
<ide> func TestEventsFilters(t *testing.T) {
<del> // we need a new daemo... | 1 |
Python | Python | add deprecation warning and check warning in test | 8ca9221ec58e65dbf2ac9d669de216c0366088c1 | <ide><path>numpy/lib/function_base.py
<ide> def msort(a):
<ide> [3, 4]])
<ide>
<ide> """
<add> warnings.warn(
<add> "msort is deprecated, use np.sort(a, axis=0) instead",
<add> DeprecationWarning,
<add> stacklevel=3,
<add> )
<ide> b = array(a, subok=True, copy=True)
<ide> ... | 2 |
Javascript | Javascript | add benchmarkcase for ast | 05fbec8eb2d0845fe4c13ecc1c01122ccad59715 | <ide><path>lib/Parser.js
<ide> Parser.prototype.walkMethodDefinition = function walkMethodDefinition(methodDefi
<ide> };
<ide>
<ide> Parser.prototype.walkStatements = function walkStatements(statements) {
<del> statements.forEach(function(statement) {
<del> if(this.isHoistedStatement(statement))
<del> this.walkStat... | 2 |
Javascript | Javascript | simplify code with string.prototype.repeat() | 4d78121b7786ee5b676d45b9d11e9a89d8dd249c | <ide><path>benchmark/http_simple.js
<ide> var http = require('http');
<ide>
<ide> var port = parseInt(process.env.PORT || 8000);
<ide>
<del>var fixed = makeString(20 * 1024, 'C'),
<add>var fixed = 'C'.repeat(20 * 1024),
<ide> storedBytes = {},
<ide> storedBuffer = {},
<ide> storedUnicode = {};
<ide> var server ... | 14 |
Text | Text | translate threejs-textures to zh-cn | a2dfa80df8938398f1b303a83beefbaadea706ed | <ide><path>threejs/lessons/zh_cn/threejs-textures.md
<add>Title: Three.js 纹理
<add>Description: 在three.js中使用纹理
<add>TOC: 纹理
<add>
<add>本文是关于 three.js 系列文章的一部分。第一篇文章是 [three.js 基础](threejs-fundamentals.html)。上一篇[文章](threejs-setup.html)是关于本文的环境搭建。如果你还没有读过它,建议先从那里开始。
<add>
<add>纹理是Three.js中的一种大话题,我还不能100%地确定在什么层面上解释它们,但我会试... | 1 |
Text | Text | improve zlib docs | 477d35848c33e3e5cb7643a11973e5504f659581 | <ide><path>doc/api/zlib.md
<ide>
<ide> Stability: 2 - Stable
<ide>
<del>You can access this module with:
<add>The `zlib` module provides compression functionality implemented using Gzip and
<add>Deflate/Inflate. It can be accessed using:
<ide>
<del> const zlib = require('zlib');
<del>
<del>This provides bindi... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.