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 |
|---|---|---|---|---|---|
Python | Python | remove initargs support for taskpool | 2321a319e042540681559db2b4cba4c80a89f1ca | <ide><path>celery/worker/pool.py
<ide> class TaskPool(object):
<ide>
<ide> """
<ide>
<del> def __init__(self, limit, logger=None, initializer=None, initargs=None):
<add> def __init__(self, limit, logger=None, initializer=None):
<ide> self.limit = limit
<ide> self.logger = logger or log.get_d... | 1 |
PHP | PHP | fix migrations $connection property | 03e3a807fd8d5c2524800dcd8f7a57753330be67 | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide> protected function runMigration($migration, $method)
<ide> $migration->getConnection()
<ide> );
<ide>
<del> $callback = function () use ($migration, $method) {
<add> $callback = function () use ($connection, $migration, ... | 4 |
Javascript | Javascript | add removal warning | fe0e7957e3102b96213409408aa8b04b32fa9f33 | <ide><path>src/materials/Material.js
<ide> function Material() {
<ide> this.stencilZPass = KeepStencilOp;
<ide> this.stencilWrite = false;
<ide>
<add> Object.defineProperty( this, 'stencilMask', {
<add>
<add> set: function( value ) {
<add>
<add> console.warn( 'Material.stencilMask has been removed. Use Material.s... | 1 |
Text | Text | remove style instruction that is not followed | 120442a00b349d52dee48d7ee7b179ae7c69d8fa | <ide><path>doc/STYLE_GUIDE.md
<ide> clause — a subject, verb, and an object.
<ide> * Outside of the wrapping element if the wrapping element contains only a
<ide> fragment of a clause.
<del>* Place end-of-sentence punctuation inside wrapping elements — periods go
<del> inside parentheses and quotes, not afte... | 1 |
Mixed | Javascript | make tcp nodelay enabled by default | eacd45656a6bf18be4a3215bb3fcbd54f5f0b17f | <ide><path>doc/api/http.md
<ide> Found'`.
<ide> <!-- YAML
<ide> added: v0.1.13
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/42163
<add> description: The `noDelay` option now defaults to `true`.
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/n... | 5 |
Ruby | Ruby | change config implementation in av slightly | e1490d4e4c60211173d51e7b21c16dbe4c2d942a | <ide><path>actionmailer/test/abstract_unit.rb
<ide> ActionView::Template.register_template_handler :haml, lambda { |template| "Look its HAML!".inspect }
<ide> ActionView::Template.register_template_handler :bak, lambda { |template| "Lame backup".inspect }
<ide>
<del>ActionView::Base.config = { :assets_dir => '/nowhere... | 2 |
Python | Python | add test for buffered maskna iteration | 1a58505bd5bd63961ee0b177d234a6c03aabb0c0 | <ide><path>numpy/core/tests/test_nditer.py
<ide> def test_iter_writemasked():
<ide> assert_equal(a, [3,3,2.5])
<ide>
<ide> def test_iter_maskna():
<del> a = np.zeros((3,), dtype='f8', maskna=True)
<del> b = np.zeros((3,), dtype='f4')
<add> a_orig = np.zeros((3,), dtype='f8')
<add> b_orig = np.zeros((3,... | 1 |
Javascript | Javascript | move usedexports into exportsinfo | 739fef4fda591b2d01b8863b83c881e076e26c1a | <ide><path>lib/Compilation.js
<ide> const StatsFactory = require("./stats/StatsFactory");
<ide> const StatsPrinter = require("./stats/StatsPrinter");
<ide> const AsyncQueue = require("./util/AsyncQueue");
<ide> const Queue = require("./util/Queue");
<del>const SortableSet = require("./util/SortableSet");
<ide> const {
... | 9 |
Go | Go | normalize comment formatting | 92ad849327d8ed5640bc7d0fbcba3fcf56f8a962 | <ide><path>integration/service/update_test.go
<ide> func TestServiceUpdateNetwork(t *testing.T) {
<ide> assert.NilError(t, err)
<ide> assert.Assert(t, len(netInfo.Containers) == 2, "Expected 2 endpoints, one for container and one for LB Sandbox")
<ide>
<del> //Remove network from service
<add> // Remove network from... | 1 |
Go | Go | fix typo in error message | d19e1f22cbbb7f4911f95f6b537d3eac65ea0bfe | <ide><path>libnetwork/drivers/overlay/peerdb.go
<ide> func (d *driver) peerAdd(nid, eid string, peerIP net.IP, peerIPMask net.IPMask,
<ide>
<ide> // Add neighbor entry for the peer IP
<ide> if err := sbox.AddNeighbor(peerIP, peerMac, sbox.NeighborOptions().LinkName(s.vxlanName)); err != nil {
<del> return fmt.Error... | 1 |
Ruby | Ruby | fix cleanup for head-only formulae | 037acb81c82e852aa037b3f8ef70d5f480b34bd5 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_cache
<ide> next
<ide> end
<ide>
<del> v = f.stable.version || f.devel.version || f.head.version
<del> if v > version || ARGV.switch?('s') && !f.installed? || bottle_file_outdated?(f, file)
<add> spec = f.stable || f.devel || f.h... | 1 |
Javascript | Javascript | add examples for some methods | 3be6835e0f0ae4c0e8a191b146662cfe7c762670 | <ide><path>src/ng/location.js
<ide> var locationPrototype = {
<ide> * Return full url representation with all segments encoded according to rules specified in
<ide> * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).
<ide> *
<add> *
<add> * ```js
<add> * // given url http://example.com/#/some/path?foo=bar... | 1 |
PHP | PHP | fix scopes with actions not working | 1585d0eb4bb9bb4a39441eb6f69bb8ba41308d2b | <ide><path>src/Routing/RouteBuilder.php
<ide> public function loadPlugin($name, $file = 'routes.php')
<ide> public function connect($route, $defaults = [], array $options = [])
<ide> {
<ide> $defaults = $this->parseDefaults($defaults);
<del> if (!isset($options['action']) && !isset($defaults['act... | 2 |
Python | Python | fix arg names for our models | 68187c4642568daaca0512393922e8cd1fddf61d | <ide><path>src/transformers/models/esm/modeling_esmfold.py
<ide> def bert_mask(self, aa, esmaa, mask, pattern):
<ide> def infer(
<ide> self,
<ide> seqs: Union[str, List[str]],
<del> residx=None,
<del> with_mask: Optional[torch.Tensor] = None,
<add> position_ids=None,
<ide> )... | 1 |
PHP | PHP | fix failing test | 0e7947e460a5d3716a5ae38e7784ab67d5e0f84d | <ide><path>tests/TestCase/View/ViewBuilderTest.php
<ide> public function testUndefinedValidViewOptions()
<ide> public function testDisableAutoLayout()
<ide> {
<ide> $builder = new ViewBuilder();
<del> $this->assertNull($builder->isAutoLayoutEnabled());
<add> $this->assertTrue($builder->isA... | 1 |
Ruby | Ruby | remove circular require | ae9060fc54faa1ec273b090a3791a5a1cab174dd | <ide><path>Library/Homebrew/formula_pin.rb
<del>require 'formula'
<ide> require 'fileutils'
<ide>
<ide> class FormulaPin | 1 |
Javascript | Javascript | remove unused $browser dependency | 950d02b4d4b1d574dfbb9bbdd56b8dc430db0a93 | <ide><path>docs/src/templates/docs.js
<del>DocsController.$inject = ['$location', '$browser', '$window', '$cookies'];
<del>function DocsController($location, $browser, $window, $cookies) {
<add>DocsController.$inject = ['$location', '$window', '$cookies'];
<add>function DocsController($location, $window, $cookies) {
<i... | 1 |
Javascript | Javascript | remove usages of isoldie in tests | 33747ee8fb349a59368f62c9415664d53c84baf4 | <ide><path>test/specs/requests.spec.js
<ide> describe('requests', function () {
<ide> });
<ide>
<ide> it('should support binary data as array buffer', function (done) {
<del> // Int8Array doesn't exist in IE8/9
<del> if (isOldIE && typeof Int8Array === 'undefined') {
<del> done();
<del> return;
<de... | 2 |
Javascript | Javascript | remove incorrect casts, improve error handling | 603d4026ed6133ac5ca3c9120f4d33f5643dc2e0 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> const usedHash = fileManifest.hash;
<ide>
<ide> this.cache.get(cacheName, usedHash, (err, sourceFromCache) => {
<del> let filenameTemplate, file;
<add> /** @type {string | function(PathData): string} */
<add> let filenameTempla... | 1 |
Ruby | Ruby | rename the method to match what it is doing | b24ed15baa988a37b436bc9636bd0ecdb3ae0a4a | <ide><path>activemodel/lib/active_model/validations/numericality.rb
<ide> def allow_only_integer?(record)
<ide> end
<ide> end
<ide>
<del> def read_attribute_for_validation(record, attr_name, value)
<add> def prepare_value_for_validation(value, record, attr_name)
<ide> return value if re... | 2 |
Python | Python | fix default fallback in genfromtxt | 8bc4701bbfbcfafb2be634d41a2611bd0182d344 | <ide><path>numpy/lib/_iotools.py
<ide> class StringConverter:
<ide> _mapper.extend([(nx.float64, float, nx.nan),
<ide> (nx.complex128, complex, nx.nan + 0j),
<ide> (nx.longdouble, nx.longdouble, nx.nan),
<del> (nx.unicode_, asunicode, '???'),
<del> ... | 3 |
Javascript | Javascript | add array<object> props to schema | bc1c7b1096b7155742325cd66761303c919d860a | <ide><path>packages/react-native-codegen/src/CodegenSchema.js
<ide> type PropTypeTypeAnnotation =
<ide> name: string,
<ide> |}>,
<ide> |}>
<add> | $ReadOnly<{|
<add> type: 'ObjectTypeAnnotation',
<add> properties: $ReadOnlyArray<PropTypeShape>,
<add> ... | 1 |
Python | Python | add the reference to 'printoptions' | 112ce58723a37bb6ebca34cae42476e96bb8eede | <ide><path>numpy/core/arrayprint.py
<ide> def set_printoptions(precision=None, threshold=None, edgeitems=None,
<ide>
<ide> See Also
<ide> --------
<del> get_printoptions, set_string_function, array2string
<add> get_printoptions, printoptions, set_string_function, array2string
<ide>
<ide> Notes
<ide>... | 1 |
Go | Go | add test w/ "" stream only | f26f405b00a2d9d1c6ebc11bffb810c54ac510ce | <ide><path>pkg/broadcastwriter/broadcastwriter_test.go
<ide> func BenchmarkBroadcastWriter(b *testing.B) {
<ide> b.StartTimer()
<ide> }
<ide> }
<add>
<add>func BenchmarkBroadcastWriterWithoutStdoutStderr(b *testing.B) {
<add> writer := New()
<add> setUpWriter := func() {
<add> for i := 0; i < 100; i++ {
<add> wri... | 1 |
Javascript | Javascript | expose clipboard docs | f6b0c13fd6196ba8599badfb3c3e52ab004f4fd5 | <ide><path>website/server/extractDocs.js
<ide> var apis = [
<ide> '../Libraries/Storage/AsyncStorage.js',
<ide> '../Libraries/Utilities/BackAndroid.android.js',
<ide> '../Libraries/CameraRoll/CameraRoll.js',
<add> '../Libraries/Components/Clipboard/Clipboard.js',
<ide> '../Libraries/Components/DatePickerAndroi... | 1 |
Text | Text | fix yaml lint error on master | 1103b15af65dec07363288ce101bc11a6d9aa16b | <ide><path>doc/api/process.md
<ide> added: v11.12.0
<ide> changes:
<ide> - version:
<ide> - REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/35654
<ide> description: This API is no longer experimental.
<ide> -->
<ide> | 1 |
Javascript | Javascript | provide better error when writing after fin | 2106ef000c7d891385d5480a61d95327caf8e277 | <ide><path>lib/_stream_writable.js
<ide> Writable.prototype.write = function(chunk, encoding, cb) {
<ide> }
<ide>
<ide> if (state.ended) {
<add> var self = this;
<ide> var er = new Error('write after end');
<del> if (typeof cb === 'function')
<del> cb(er);
<del> this.emit('error', er);
<add> /... | 4 |
Javascript | Javascript | display error message when loading directory | aad6b9f0ebf79cb4f80a9b4be7c05e27a5d9489d | <ide><path>lib/repl.js
<ide> function defineDefaultCommands(repl) {
<ide> self.write(line + '\n');
<ide> }
<ide> });
<add> } else {
<add> this.outputStream.write('Failed to load:' + file +
<add> ' is not a valid file\n');
<ide> ... | 2 |
PHP | PHP | remove debug code | ba68e8dde78b708357ddc0a5a28e62870ddbbbd4 | <ide><path>src/Core/functions.php
<ide> function deprecationWarning(string $message, int $stackFrame = 1): void
<ide>
<ide> $patterns = (array)Configure::read('Error.disableDeprecations');
<ide> $relative = substr($frame['file'], strlen(ROOT) + 1);
<del> debug($relative);
<ide> ... | 1 |
Javascript | Javascript | implement anchor scroll when content added | eb51b024c9b77527420014cdf7dbb292b5b9dd6b | <ide><path>docs/src/templates/js/docs.js
<ide> docsApp.directive.sourceEdit = function(getEmbeddedTemplate) {
<ide> }
<ide> };
<ide>
<del>docsApp.directive.docModuleComponents = ['sections', function(sections) {
<add>docsApp.directive.docModuleComponents = function() {
<ide> return {
<ide> template: ' <div cl... | 1 |
Ruby | Ruby | remove tests for hash_for_* methods | ce5c2b88fead992db51476c14cc2d7c323f5cd0c | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def setup_named_route_test
<ide> MockController.build(set.url_helpers).new
<ide> end
<ide>
<del> def test_named_route_hash_access_method
<del> controller = setup_named_route_test
<del>
<del> assert_equal(
<del> { :controller => 'people', :ac... | 1 |
Python | Python | use frozen list with custom errors | 34146750d4284b542078255f1c8dfaf4c0652a23 | <ide><path>spacy/__init__.py
<ide>
<ide> def load(
<ide> name: Union[str, Path],
<del> disable: Iterable[str] = tuple(),
<del> exclude: Iterable[str] = tuple(),
<add> disable: Iterable[str] = util.SimpleFrozenList(),
<add> exclude: Iterable[str] = util.SimpleFrozenList(),
<ide> config: Union[Dict[s... | 13 |
Python | Python | add __wrapped__ for python 2 support | 1b8996e9477f38c8ced522c85df9ab9d73fcd339 | <ide><path>numpy/core/overrides.py
<ide> def public_api(*args, **kwargs):
<ide> relevant_args = dispatcher(*args, **kwargs)
<ide> return array_function_implementation_or_override(
<ide> implementation, public_api, relevant_args, args, kwargs)
<add>
<add> # TODO: remove thi... | 1 |
Ruby | Ruby | restore deprecation require in dbconsole command | bcb63fcaa89a17c3f8c65680b4e21134cebaf843 | <ide><path>railties/lib/rails/commands/dbconsole/dbconsole_command.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/string/filters"
<add>require "active_support/deprecation"
<ide> require "rails/command/environment_argument"
<ide>
<ide> module Rails | 1 |
Javascript | Javascript | improve implementation accordingly to pr reviews | 233aa3edf3e0991aafe5dbc2b548993b4bf407ea | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> function createMultiPassGeometryKey( geometry, primitives ) {
<ide>
<del> var key = createPrimitiveKey( geometry );
<add> var key = geometry.uuid;
<ide>
<ide> for ( var i = 0, il = primitives.length; i < il; i ++ )... | 1 |
Ruby | Ruby | skip some flaky tests for now." | 5baf16f50e71cd8224dad58350e67fceb56942a1 | <ide><path>Library/Homebrew/test/uninstall_test.rb
<ide> def handle_unsatisfied_dependents
<ide> end
<ide>
<ide> def test_check_for_testball_f2s_when_developer
<del> skip "Flaky test"
<ide> assert_match "Warning", handle_unsatisfied_dependents
<ide> refute_predicate Homebrew, :failed?
<ide> end
<ide> ... | 1 |
Ruby | Ruby | write untapped setting only on manual untap | ecfad29347d9e58b9499144cab0a539d9e863ce9 | <ide><path>Library/Homebrew/cmd/untap.rb
<ide> def untap
<ide> end
<ide> end
<ide>
<del> tap.uninstall
<add> tap.uninstall manual: true
<ide> end
<ide> end
<ide> end
<ide><path>Library/Homebrew/tap.rb
<ide> def link_completions_and_manpages
<ide> end
<ide>
<ide> # Uninstall this {Tap... | 2 |
Java | Java | fix failing tests | aea3a750189977ca231172db87408f03979bace6 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java
<ide> public int getBufferSize() {
<ide> @Override
<ide> public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException {
<ide>
<add> // Start async before Read/WriteLi... | 1 |
Text | Text | correct the wrong added meta data | 667f8c642d35da18493ab7cd397070c7bd0fbf84 | <ide><path>doc/api/async_hooks.md
<ide> function promiseResolve(asyncId) { }
<ide> #### `async_hooks.createHook(callbacks)`
<ide>
<ide> <!-- YAML
<del>added: v9.0.0
<add>added: v8.1.0
<ide> -->
<ide>
<ide> * `callbacks` {Object} The [Hook Callbacks][] to register
<ide><path>doc/api/fs.md
<ide> argument to `fs.createR... | 4 |
Javascript | Javascript | return correct contents when no config present | 9282f07d070aa8cc68a76c523bf59c0220a4ff34 | <ide><path>src/main-process/parse-command-line.js
<ide> function readProjectSpecificationSync (filepath, executedFrom) {
<ide> if (contents.paths == null) {
<ide> contents.paths = [path.dirname(filepath)]
<ide> }
<del> return (contents.config == null) ? {} : contents
<add> contents.config = (contents.config =... | 1 |
Javascript | Javascript | use full url for typedocs | 5cf054ef257ce28407ae5c13bcc0b5f8c0199c80 | <ide><path>docs/docusaurus.config.js
<add>/* eslint-disable import/no-commonjs */
<ide> // VERSION replaced by deploy script
<ide> module.exports = {
<del> title: 'Chart.js',
<del> tagline: 'Open source HTML5 Charts for your website',
<del> url: 'https://chartjs.org',
<del> baseUrl: '/docs/VERSION/',
<del> favicon... | 2 |
Python | Python | fix precomputed layer | b10173655589b038ba1e69e937eddf03819dc94d | <ide><path>spacy/_ml.py
<ide> def _preprocess_doc(docs, drop=0.):
<ide> nF=Dimension("Number of features"),
<ide> nO=Dimension("Output size"),
<ide> W=Synapses("Weights matrix",
<del> lambda obj: (obj.nI, obj.nF, obj.nO)),
<add> lambda obj: (obj.nF, obj.nO, obj.nI)),
<ide> b=Biases("Bias v... | 1 |
Ruby | Ruby | use map! instead of replace + map | 808592bae2b83ced018f16d576d41a0059ed302a | <ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb
<ide> def convert_value(value)
<ide> value.nested_under_indifferent_access
<ide> elsif value.is_a?(Array)
<ide> value = value.dup if value.frozen?
<del> value.replace(value.map { |e| convert_value(e) })
<add... | 1 |
Javascript | Javascript | adjust verbiage and time contibuted | 21b09b53cbfd475cfb31f50b3cb0cecc7519b79a | <ide><path>client/src/components/Donation/components/DonateForm.js
<ide> class DonateForm extends Component {
<ide> : this.amounts[durationSelected][0];
<ide> }
<ide>
<del> convertToTimeContributed(amount) {
<del> return `${numToCommas((amount / 100) * 50 * 60)} minutes`;
<add> convertToTimeContributed(am... | 2 |
Text | Text | use markdown syntax instead of html on exercises | 49992889124b2585f0e4ae1178cc2b5147a0e800 | <ide><path>client/src/pages/learn/coding-interview-prep/algorithms/index.md
<ide> In most of the coding interviews, foundation mostly means a clear understanding
<ide> This course presents you with the most frequently asked questions during interviews to prepare you with a basic understanding of algorithms.
<ide> It wi... | 8 |
PHP | PHP | fix more uses of set -> hash | a76a926ac13039bb5b5a846c2bc56d9f83a545b6 | <ide><path>lib/Cake/Model/Model.php
<ide> App::uses('ClassRegistry', 'Utility');
<ide> App::uses('Validation', 'Utility');
<ide> App::uses('String', 'Utility');
<del>App::uses('Set', 'Utility');
<add>App::uses('Hash', 'Utility');
<ide> App::uses('BehaviorCollection', 'Model');
<ide> App::uses('ModelBehavior', 'Model');... | 2 |
Javascript | Javascript | improve error message | 8a014cdfb3f33a7b49a68205e72c609c9ff3bb62 | <ide><path>Libraries/TurboModule/TurboModuleRegistry.js
<ide> export function get<T: TurboModule>(name: string): ?T {
<ide>
<ide> export function getEnforcing<T: TurboModule>(name: string): T {
<ide> const module = get(name);
<del> invariant(module != null, `${name} is not available in this app.`);
<add> invariant... | 1 |
Go | Go | fix raw terminal | ec6b35240ed19aa68e4295c9211aa13a7e37efad | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide> flUsername := cmd.String("u", "", "username")
<ide> flPassword := cmd.String("p", "", "password")
<ide> flEmail := cmd.String("e", "", "email")
<del> if err := cmd.Parse(args); err != nil {
<add> err := cmd.Parse(args)
<add> if... | 1 |
PHP | PHP | improve comments in routes.php | 84f05fd3ee4d28e378eae8a684a74a65efc99a84 | <ide><path>application/routes.php
<ide> | Here is the public API of your application. To add functionality to your
<ide> | application, you just add to the array located in this file.
<ide> |
<del> | It's a breeze. Simply tell Laravel the request URIs it should respond to.
<add> | It's a breeze. Simply tell Laravel ... | 1 |
PHP | PHP | improve mode function in collection | 61b260556da4e75bff9b721b0085dd8848b9ea31 | <ide><path>src/Illuminate/Collections/Collection.php
<ide> public function avg($callback = null)
<ide> public function median($key = null)
<ide> {
<ide> $values = (isset($key) ? $this->pluck($key) : $this)
<del> ->filter(function ($item) {
<del> return ! is_null($item);
<del> ... | 2 |
Javascript | Javascript | add missing ondidaddtexteditor method to dock | 92d0f60e6c408b65ac4d6b22a63256c93eae6c3f | <ide><path>spec/dock-spec.js
<ide> /** @babel */
<ide>
<add>const TextEditor = require('../src/text-editor')
<add>
<ide> import {it, fit, ffit, fffit, beforeEach, afterEach} from './async-spec-helpers'
<ide>
<ide> describe('Dock', () => {
<ide> describe('Dock', () => {
<ide> expect(() => atom.workspace.getEleme... | 2 |
Javascript | Javascript | remove unused flow suppressions | 70dcba99946a43b13776f33f3b9432c5d66055c1 | <ide><path>Libraries/Components/Touchable/Touchable.js
<ide> const TouchableMixin = {
<ide> * @param {SyntheticEvent} e Synthetic event from event system.
<ide> *
<ide> */
<del> // $FlowFixMe[signature-verification-failure]
<ide> touchableHandleResponderGrant: function(e: PressEvent) {
<ide> const dispa... | 13 |
Javascript | Javascript | fix floor logic | 49b9c7cc0c5fa25826be65d290258a638c27ad06 | <ide><path>server/boot/about.js
<ide> export default function about(app) {
<ide> globalCompletedCount: numberWithCommas(
<ide> 5612952 + (Math.floor((Date.now() - 1446268581061) / 1800))
<ide> ),
<del> globalPledgedAmount: numberWithCommas(
<del> 28000.00 +
<del> ... | 1 |
Mixed | Ruby | keep executions for each specific exception | 95d9c3b3d6828b8ce37591e68d4239ce8c18460b | <ide><path>activejob/CHANGELOG.md
<add>* Keep executions for each specific declaration
<add>
<add> Each `retry_on` declaration has now its own specific executions counter. Before it was
<add> shared between all executions of a job.
<add>
<add> *Alberto Almagro*
<add>
<ide> * Allow all assertion helpers tha... | 5 |
Text | Text | remove bullet point referring to node.js 12 | ed7631dae984c9b5a7ef722119dc9363af7472a5 | <ide><path>doc/contributing/maintaining-openssl.md
<ide> currently need to generate four PRs as follows:
<ide> of this guide.
<ide> * a PR for 14.x following the instructions in the v14.x-staging version
<ide> of this guide.
<del>* a PR which uses the same commit from the third PR to apply the
<del> updates to the... | 1 |
Javascript | Javascript | fix incorrect test description | 70dbb158469541a6f712ebe03b970a4a4d1abe57 | <ide><path>test/ngSanitize/sanitizeSpec.js
<ide> describe('HTML', function() {
<ide> .toEqual('<p>text1text2</p>');
<ide> });
<ide>
<del> it('should remove clobbered elements', function() {
<add> it('should throw on clobbered elements', function() {
<ide> inject(function($sanitize) {
<ide> expect(f... | 1 |
Javascript | Javascript | add validation for fd and path | d4693ff4308de3517f064a2c930718a6f37229fe | <ide><path>lib/internal/fs/streams.js
<ide> const { Buffer } = require('buffer');
<ide> const {
<ide> copyObject,
<ide> getOptions,
<add> getValidatedFd,
<add> validatePath,
<ide> } = require('internal/fs/utils');
<ide> const { Readable, Writable, finished } = require('stream');
<ide> const { toPathIfFileURL } = ... | 2 |
PHP | PHP | use value helper when applicable | 6116d5106525a05d885408ed0a63a752732ba253 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HidesAttributes.php
<ide> public function makeVisible($attributes)
<ide> */
<ide> public function makeVisibleIf($condition, $attributes)
<ide> {
<del> $condition = $condition instanceof Closure ? $condition($this) : $condition;
<del>
<del> ... | 4 |
Text | Text | add tellnes as collaborator | 865ee313cff5470e831d8c09003f03eb52f3ca41 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Sam Roberts** ([@sam-github](https://github.com/sam-github)) <vieuxtech@gmail.com>
<ide> * **Wyatt Preul** ([@geek](https://github.com/geek)) <wpreul@gmail.com>
<ide> * **Brian White** ([@mscdex](https://github.c... | 1 |
Ruby | Ruby | remove a relic of #request being in rackdelegation | f368b21cb6e45268359c0f0b8beda175e3b40eae | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def build(action, app=nil, &block)
<ide> class Metal < AbstractController::Base
<ide> abstract!
<ide>
<del> # :api: public
<del> attr_internal :params, :env
<add> attr_internal :env
<ide>
<ide> # Returns the last part of the controller's na... | 2 |
PHP | PHP | fix minor cs issue | 6e0b7995c657e8c15fce8bd6d26ff923c0320a2b | <ide><path>src/Network/Request.php
<ide> protected function _headerDetector($detect)
<ide> {
<ide> foreach ($detect['header'] as $header => $value) {
<ide> $header = $this->env('http_' . $header);
<del> if (!is_null($header)) {
<add> if ($header !== null) {
<ide> ... | 1 |
Ruby | Ruby | use the predicate method | 6e24d501d3a84a59feb8ed37ed71759ed8a96995 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def source_macro
<ide>
<ide> # A through association is nested if there would be more than one join table
<ide> def nested?
<del> chain.length > 2 || through_reflection.macro == :has_and_belongs_to_many
<add> chain.length > 2 || th... | 1 |
Mixed | Javascript | add timeout to spawn and fork | d8fb5c2f1c907f09e2763046c436a236b70cdea5 | <ide><path>doc/api/child_process.md
<ide> controller.abort();
<ide> <!-- YAML
<ide> added: v0.5.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/37256
<add> description: timeout was added.
<ide> - version: v15.11.0
<ide> pr-url: https://github.com/nodejs/node/pu... | 4 |
Ruby | Ruby | use a || b | 6e616b29c5c47d49e94f2fe2345564cf381b0e0f | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def fflags; self['FFLAGS']; end
<ide> def fcflags; self['FCFLAGS']; end
<ide>
<ide> def compiler
<del> @compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first)
<add> @compiler ||= if (cc = ARGV.cc || homebrew_cc)
<ide> COMPILER_SY... | 1 |
Javascript | Javascript | remove redundant backtick in comment | 6abd2cb7dbe5f4cd4fe6364b28c92dcdbd81c47b | <ide><path>packages/@ember/application/lib/application.js
<ide> const Application = Engine.extend({
<ide> // Start the app at the special demo URL
<ide> App.visit('/demo', options);
<ide> });
<del> ````
<add> ```
<ide>
<ide> Or perhaps you might want to boot two instances of your app on the s... | 1 |
PHP | PHP | use single logs by default | 3516f4f6771bd1817d08b529549c4f4a449e672f | <ide><path>config/app.php
<ide> |
<ide> */
<ide>
<del> 'log' => 'daily',
<add> 'log' => 'single',
<ide>
<ide> /*
<ide> |-------------------------------------------------------------------------- | 1 |
Python | Python | add unit tests for limits and resources | 1dcd3d0b67402f68db3e53357c83a944b4d76c63 | <ide><path>chart/tests/test_flower.py
<ide> def test_should_create_valid_affinity_tolerations_and_node_selector(self):
<ide> "spec.template.spec.tolerations[0].key",
<ide> docs[0],
<ide> )
<add>
<add> def test_flower_resources_are_configurable(self):
<add> docs = render_chart(
... | 10 |
Javascript | Javascript | fix typo in inspector-helper.js | 0ed9961f1239a3d9f79334dc8b7f0a3ba6c6fee2 | <ide><path>test/common/inspector-helper.js
<ide> class InspectorSession {
<ide>
<ide> waitForNotification(methodOrPredicate, description) {
<ide> const desc = description || methodOrPredicate;
<del> const message = `Timed out waiting for matching notification (${desc}))`;
<add> const message = `Timed out w... | 1 |
Java | Java | remove componentregistry class | c629cdc39a2d64b65e40ba550b7b6c8d22bc7065 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/ComponentRegistry.java
<del>// Copyright 2004-present Facebook. All Rights Reserved.
<del>
<del>package com.facebook.react.fabric;
<del>
<del>import com.facebook.jni.HybridData;
<del>import com.facebook.proguard.annotations.DoNotStrip;
<del>import com.face... | 2 |
Python | Python | call ping to set connection for avoiding error | bc13e2fdc7fd0a82eaa7e0b89869e4d4ef5051bb | <ide><path>celery/backends/redis.py
<ide> def _reconnect_pubsub(self):
<ide> )
<ide> if self.subscribed_to:
<ide> self._pubsub.subscribe(*self.subscribed_to)
<add> else:
<add> self._pubsub.ping()
<ide>
<ide> @contextmanager
<ide> def reconnect_on_error(self): | 1 |
Javascript | Javascript | fix @each for changes in defineproperty | eb7a1ac16015c73cf152b61aad825e473aea1c00 | <ide><path>packages/ember-runtime/lib/system/each_proxy.js
<ide> Ember.EachProxy = Ember.Object.extend({
<ide> unknownProperty: function(keyName, value) {
<ide> var ret;
<ide> ret = new EachArray(this._content, keyName, this);
<del> new Ember.Descriptor().setup(this, keyName, ret);
<add> Ember.definePro... | 1 |
Javascript | Javascript | use safe computedstyle in currentdimension | 20cae21ff7222fd6b1efa6b4e48578fd405ba126 | <ide><path>src/js/component.js
<ide> import * as Fn from './utils/fn.js';
<ide> import * as Guid from './utils/guid.js';
<ide> import toTitleCase from './utils/to-title-case.js';
<ide> import mergeOptions from './utils/merge-options.js';
<add>import computedStyle from './utils/computed-style';
<ide>
<ide> /**
<ide> *... | 2 |
Javascript | Javascript | make safe primordials safe to construct | 40fc395d7d4aee0db61a64cca5dd96718b75d307 | <ide><path>lib/internal/per_context/primordials.js
<ide> primordials.makeSafe = makeSafe;
<ide>
<ide> // Subclass the constructors because we need to use their prototype
<ide> // methods later.
<add>// Defining the `constructor` is necessary here to avoid the default
<add>// constructor which uses the user-mutable `%A... | 1 |
Python | Python | specify ram size in gib | d09f9b5d941e838601cafb9dbb95be82f634693d | <ide><path>libcloud/compute/drivers/ec2.py
<ide> Sizes must be hardcoded, because Amazon doesn't provide an API to fetch them.
<ide> From http://aws.amazon.com/ec2/instance-types/
<ide> """
<add>
<add>
<add>def GiB(value):
<add> return int(value * 1024)
<add>
<add>
<ide> INSTANCE_TYPES = {
<ide> 't1.micro': {
<i... | 1 |
Text | Text | remove erroneous remove_column option from example | 7be279a64456b33cd745720ab3dd1c59482bc542 | <ide><path>guides/source/active_record_migrations.md
<ide> argument. Provide the original column options too, otherwise Rails can't
<ide> recreate the column exactly when rolling back:
<ide>
<ide> ```ruby
<del>remove_column :posts, :slug, :string, null: false, default: '', index: true
<add>remove_column :posts, :slug,... | 1 |
Javascript | Javascript | update jsm files | 348d6267dec151f8934a73f6aa892767f184e051 | <ide><path>examples/jsm/loaders/LWOLoader.js
<ide> GeometryParser.prototype = {
<ide>
<ide> }
<ide>
<add> geometry.morphTargetsRelative = false;
<add>
<ide> },
<ide>
<ide> };
<ide><path>examples/jsm/loaders/MD2Loader.js
<ide> MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {
<ide>
<ide> ... | 3 |
Javascript | Javascript | allow enoent in test-worker-init-failure | 0e1fd8d0b42340039ae4086fa23c062d1a2dee74 | <ide><path>test/parallel/test-worker-init-failure.js
<ide> if (process.argv[2] === 'child') {
<ide> });
<ide>
<ide> // We want to test that if there is an error in a constrained running
<del> // environment, it will be one of `ENFILE`, `EMFILE`, or
<add> // environment, it will be one of `ENFILE`, `EMFIL... | 1 |
Ruby | Ruby | fix deprecation message in test for path#children | 72e6fb005fbdd211883282fc761d3ded23ef7fbb | <ide><path>railties/test/application/paths_test.rb
<ide> def assert_not_in_load_path(*path)
<ide> end
<ide>
<ide> test "deprecated children method" do
<del> assert_deprecated "children is deprecated and will be removed in Rails 4.1." do
<add> assert_deprecated "children is deprecated and will be remo... | 1 |
Python | Python | add workaround for v8 builds | d206aa36e27e212d00857ab56d174ace5e6b6c45 | <ide><path>configure.py
<ide> import bz2
<ide> import io
<ide>
<del>from shutil import which
<add># Fallback to find_executable from distutils.spawn is a stopgap for
<add># supporting V8 builds, which do not yet support Python 3.
<add>try:
<add> from shutil import which
<add>except ImportError:
<add> from distutils.... | 1 |
Mixed | Javascript | remove unneeded quicstream.aborted and fixup docs | 83bf0d7e8cf39c49750cf527f331cdf6b5f4f225 | <ide><path>doc/api/quic.md
<ide> const { createQuicSocket } = require('net');
<ide> // Create the QUIC UDP IPv4 socket bound to local IP port 1234
<ide> const socket = createQuicSocket({ endpoint: { port: 1234 } });
<ide>
<del>socket.on('session', (session) => {
<add>socket.on('session', async (session) => {
<ide> /... | 3 |
Javascript | Javascript | add support to tag-hyphenated elements | 85ffc6d973865a031ded170934e0acfc2e97cb11 | <ide><path>src/manipulation.js
<ide> define([
<ide> ], function( jQuery, concat, push, access, rcheckableType, support, dataPriv, dataUser ) {
<ide>
<ide> var
<del> rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
<del> rtagName = /<([\w:]+)/,
<add> rxhtmlTag = /<(?!area|br|col|em... | 2 |
Python | Python | handle the case where .svn/entries does not exist | 03693fb5fa4343165c0f3eeef4d769932a07dc3e | <ide><path>scipy_distutils/misc_util.py
<ide> def generate_svn_version_py(extension, build_dir):
<ide> local_path = extension.local_path
<ide> target = os.path.join(build_dir, '__svn_version__.py')
<ide> entries = os.path.join(local_path,'.svn','entries')
<del> if not dep_util.newer(entries, target):
<ad... | 1 |
Ruby | Ruby | remove count var | 34db2b7caacefac2dd808b52a7f77d58ff6a8b69 | <ide><path>activerecord/lib/active_record/associations/has_many_association.rb
<ide> def delete_or_nullify_all_records(method)
<ide> # Deletes the records according to the <tt>:dependent</tt> option.
<ide> def delete_records(records, method)
<ide> if method == :destroy
<del> count =... | 1 |
Text | Text | improve callback params for `fs.mkdir` | def4bb774f2b1adc67d06b354cc7bdd977f6e4d8 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`.
<ide> * `callback` {Function}
<ide> * `err` {Error}
<add> * `path` {string|undefined} Present only if a directory is created with
<add> `recursive` set to `true`.
<ide>
<ide> Asynchronously c... | 1 |
Ruby | Ruby | pass the view around instead of using an ivar | 1853b0d0abf87dfdd4c3a277c3badb17ca19652e | <ide><path>actionview/lib/action_view/renderer/streaming_template_renderer.rb
<ide> def log_error(exception)
<ide> # For streaming, instead of rendering a given a template, we return a Body
<ide> # object that responds to each. This object is initialized with a block
<ide> # that knows how to render the tem... | 2 |
Go | Go | add some builder getenv tests | eeeae2c235f0f075284008cced669de177dd8747 | <ide><path>builder/shell_parser_test.go
<ide> func TestShellParser(t *testing.T) {
<ide> }
<ide> }
<ide> }
<add>
<add>func TestGetEnv(t *testing.T) {
<add> sw := &shellWord{
<add> word: "",
<add> envs: nil,
<add> pos: 0,
<add> }
<add>
<add> sw.envs = []string{}
<add> if sw.getEnv("foo") != "" {
<add> t.Fatalf("... | 1 |
Text | Text | add remark about collaborators discussion page | bea2252554b6305ed1960a5d7c718e3ae08458b9 | <ide><path>GOVERNANCE.md
<ide> The nomination passes if no Collaborators oppose it after one week. Otherwise,
<ide> the nomination fails.
<ide>
<ide> There are steps a nominator can take in advance to make a nomination as
<del>frictionless as possible. Use the [Collaborators discussion page][] to request
<del>feedback... | 1 |
Javascript | Javascript | add referrerpolicy to htmldompropertyconfig | cccef3c68310df3bd611df2a7b98a530645c67c0 | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> profile: 0,
<ide> radioGroup: 0,
<ide> readOnly: HAS_BOOLEAN_VALUE,
<add> referrerPolicy: 0,
<ide> rel: 0,
<ide> required: HAS_BOOLEAN_VALUE,
<ide> reversed: HAS_BOOLEAN_VALUE, | 1 |
Java | Java | limit alias to take | 06ba7523dd3eaa325ee77c9e91ee61f1eff7f39f | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final Observable<T> lastOrDefault(T defaultValue, Func1<? super T, Boolea
<ide> return filter(predicate).takeLast(1).singleOrDefault(defaultValue);
<ide> }
<ide>
<add> /**
<add> * Returns an Observable that emits only the first {@c... | 1 |
Mixed | Ruby | fix hashwithindifferentaccess#without bug | b2ea8310734b734c29b806f272c866045fc9bca7 | <ide><path>activesupport/CHANGELOG.md
<add>* Fix bug where `#without` for `ActiveSupport::HashWithIndifferentAccess` would fail
<add> with symbol arguments
<add>
<add> *Abraham Chan*
<add>
<ide> * Treat `#delete_prefix`, `#delete_suffix` and `#unicode_normalize` results as non-`html_safe`.
<ide> Ensure sa... | 3 |
Javascript | Javascript | remove old unneded files | 94759f4c2cab91d35a18159a00fbdaec0af79aa9 | <ide><path>src/delete/Binder.js
<del>function Binder(doc, widgetFactory, datastore, location, config) {
<del> this.doc = doc;
<del> this.location = location;
<del> this.datastore = datastore;
<del> this.anchor = {};
<del> this.widgetFactory = widgetFactory;
<del> this.config = config || {};
<del> this.updateList... | 19 |
Python | Python | choose format according to filename when plotting | e3a64cc8a74a0fd2f50615e80970df1d6263e7e8 | <ide><path>keras/utils/visualize_util.py
<add>import os
<add>
<ide> try:
<ide> # pydot-ng is a fork of pydot that is better maintained
<ide> import pydot_ng as pydot
<ide> def model_to_dot(model, show_shapes=False, show_layer_names=True):
<ide>
<ide> def plot(model, to_file='model.png', show_shapes=False, show... | 1 |
Javascript | Javascript | fix coding style in web/viewer.js | 9e0ed5ca7ec7dee99951e883abe09daaab190389 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> viewAreaElement.addEventListener('scroll', function webViewerScroll(evt) {
<ide> var currentY = viewAreaElement.scrollTop;
<ide> var lastY = state.lastY;
<del> if (currentY > lastY)
<add> if (currentY > lastY) {
<ide> state.down = tr... | 1 |
Javascript | Javascript | fix typo in api docs | b62327ec2de6d78b85e0662bb55b3d5b54a50f34 | <ide><path>src/ng/directive/booleanAttrs.js
<ide> * The HTML specs do not require browsers to preserve the special attributes such as open.
<ide> * (The presence of them means true and absence means false)
<ide> * This prevents the angular compiler from correctly retrieving the binding expression.
<del> * To solve t... | 1 |
Text | Text | fix broken link | d1da2c711c68bb2e59f68de53dcc369f8c669c61 | <ide><path>docs/tutorials/quick-start.md
<ide> Here's the complete counter application as a running CodeSandbox:
<ide>
<ide> ## What's Next?
<ide>
<del>We recommend going through [**the "Redux Essentials" and "Redux Fundamentals" tutorials in the Redux core docs**](./tutorials-index), which will give you a complete u... | 1 |
Text | Text | update permissions.md to fix garden path sentences | 53a0585dacea328ce74083f0da0dea10c4df03e5 | <ide><path>docs/api-guide/permissions.md
<ide> A slightly less strict style of permission would be to allow full access to auth
<ide> Permissions in REST framework are always defined as a list of permission classes.
<ide>
<ide> Before running the main body of the view each permission in the list is checked.
<del>If an... | 1 |
Python | Python | remove erronous _delete attribute | 32e0e5e18c84e7b720c74df8aeba26e0f335bbf6 | <ide><path>rest_framework/serializers.py
<ide> def __init__(self, instance=None, data=None, files=None,
<ide> self._data = None
<ide> self._files = None
<ide> self._errors = None
<del> self._delete = False
<ide>
<ide> #####
<ide> # Methods to determine which fields to use when (d... | 1 |
Ruby | Ruby | stop safebuffer#clone_empty from issuing warnings | 681d89f96bc1784edecf74992177a48be07e2b99 | <ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb
<ide> def initialize_copy(other)
<ide> end
<ide>
<ide> def clone_empty
<del> new_safe_buffer = self[0, 0]
<del> new_safe_buffer.instance_variable_set(:@dirty, @dirty)
<del> new_safe_buffer
<add> self[0, 0]
<ide> ... | 1 |
Javascript | Javascript | add animationiterationcount in isunitlessnumber | 28329e86550eab061dd36175fbcfc053188f6bff | <ide><path>src/renderers/dom/shared/CSSProperty.js
<ide> * CSS properties which accept numbers but are not in units of "px".
<ide> */
<ide> var isUnitlessNumber = {
<add> animationIterationCount: true,
<ide> boxFlex: true,
<ide> boxFlexGroup: true,
<ide> columnCount: true, | 1 |
Javascript | Javascript | fix uiexplorer freezing / persistence | d178e27939fe596ec4740c145e384e7aeb3bef85 | <ide><path>Examples/UIExplorer/UIExplorerList.ios.js
<ide> class UIExplorerList extends React.Component {
<ide> );
<ide> }
<ide>
<del> componentWillMount() {
<del> this.props.navigator.navigationContext.addListener('didfocus', function(event) {
<del> if (event.data.route.title === 'UIExplorer') {
<del> ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.