content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | add hook functions and tests | 799164513891a258e858061fc7f86a415cb38821 | <ide><path>src/Illuminate/Validation/ValidatesWhenResolvedTrait.php
<ide> trait ValidatesWhenResolvedTrait
<ide> */
<ide> public function validate()
<ide> {
<add> $this->beforeValidation();
<ide> $instance = $this->getValidatorInstance();
<ide>
<ide> if (! $this->passesAuthorization... | 2 |
Ruby | Ruby | upgrade virtualenv to 16.1.0 | 77daf29c474bdf05945ca587292c01f498953fd7 | <ide><path>Library/Homebrew/language/python_virtualenv_constants.rb
<ide> PYTHON_VIRTUALENV_URL =
<del> "https://files.pythonhosted.org/packages/33/bc" \
<del> "/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012" \
<del> "/virtualenv-16.0.0.tar.gz".freeze
<add> "https://files.pythonhosted.org/packages/4e... | 1 |
Text | Text | use year of first publication | efae2e08c3f902149431732cbd550aea09748acc | <ide><path>LICENSE.md
<del>Copyright (c) 2016 GitHub Inc.
<add>Copyright (c) 2014 GitHub Inc.
<ide>
<ide> Permission is hereby granted, free of charge, to any person obtaining
<ide> a copy of this software and associated documentation files (the | 1 |
PHP | PHP | remove use of folder from assetstask | c048fb30e78b6efc1f0ec967e17a799022613c87 | <ide><path>src/Filesystem/Filesystem.php
<ide> public function mkdir(string $dir, int $mode = 0755): void
<ide>
<ide> umask($old);
<ide> }
<add>
<add> public function deleteDir(string $path): bool
<add> {
<add> if (!file_exists($path)) {
<add> return true;
<add> }
<add>
<add>... | 3 |
Javascript | Javascript | update docs with releases information | 59ed3f835193dec57cf423aed4995c8913dd4281 | <ide><path>website/src/react-native/versions.js
<ide> module.exports = React.createClass({
<ide> <section className="content wrap documentationContent nosidebar">
<ide> <div className="inner-content">
<ide> <h1>React Native Versions</h1>
<del> <p>React Native follows a 2-week re... | 1 |
Python | Python | resolve unittest compat | 24a2c3f5c3349ec941790240c1f372a6de723e1b | <ide><path>rest_framework/compat.py
<ide> def distinct(queryset, base):
<ide> import unittest
<ide> unittest.skipUnless
<ide> except (ImportError, AttributeError):
<del> from django.test.utils import unittest
<add> from django.utils import unittest
<ide>
<ide>
<ide> # contrib.postgres only supported fro... | 1 |
PHP | PHP | refactor the request class | 3d48b323c3120aee917291b7b2e699409a36acfc | <ide><path>system/request.php
<ide> public static function uri()
<ide> {
<ide> if ( ! is_null(static::$uri)) return static::$uri;
<ide>
<del> $uri = static::raw_uri();
<del>
<del> if (strpos($uri, $base = parse_url(Config::get('application.url'), PHP_URL_PATH)) === 0)
<del> {
<del> $uri = substr($uri, strlen($... | 1 |
Javascript | Javascript | fix minor lint warnings | 29ed7c6c8c2dd0546c453322d7549954b8bf6df0 | <ide><path>src/renderers/dom/client/syntheticEvents/SyntheticEvent.js
<ide> Object.assign(SyntheticEvent.prototype, {
<ide> this[shouldBeReleasedProperties[i]] = null;
<ide> }
<ide> if (__DEV__) {
<del> Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)... | 3 |
PHP | PHP | add support for configuring aws s3 region | 5da4d51f0bfead3157ffb242041d0ee9760070ff | <ide><path>config/filesystems.php
<ide> 'driver' => 's3',
<ide> 'key' => 'your-key',
<ide> 'secret' => 'your-secret',
<add> 'region' => 'your-region',
<ide> 'bucket' => 'your-bucket',
<ide> ],
<ide> | 1 |
Ruby | Ruby | fix last remaining style issues | eaae7f3a5b7dcce0d6c4a3238547996e886b7144 | <ide><path>Library/Homebrew/cask/lib/hbc/audit.rb
<ide> def check_single_pre_postflight
<ide> add_warning "only a single preflight stanza is allowed"
<ide> end
<ide>
<del> if cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::PostflightBlock) && k.directives.key?(:postflight) } > 1
<del> add_w... | 1 |
Javascript | Javascript | allow binding to this | e57f0c04219f86683bbe32a2a1d802caec98809c | <ide><path>packages/sproutcore-handlebars/lib/helpers/view.js
<ide> SC.Handlebars.ViewHelper = SC.Object.create({
<ide> if (PARENT_VIEW_PATH.test(path)) {
<ide> SC.Logger.warn("As of SproutCore 2.0 beta 3, it is no longer necessary to bind to parentViews. Instead, please provide binding paths rela... | 2 |
Javascript | Javascript | add regenerator path | 64e414160d212cb32ce90979192c452aeee3a01e | <ide><path>packages/next/build/webpack/loaders/next-swc-loader.js
<ide> function getSWCOptions({
<ide> },
<ide> },
<ide> },
<add> regenerator: {
<add> importPath: require.resolve('regenerator-runtime'),
<add> },
<ide> },
<ide> }
<ide>
<ide><path>test/integration/pnpm-supp... | 3 |
PHP | PHP | fix failing test | 70249eff5becbcab8d924bc825252fd946f7f3a4 | <ide><path>tests/Database/DatabaseConnectionTest.php
<ide> public function testTransactionRetriesOnSerializationFailure()
<ide>
<ide> $pdo = $this->getMockBuilder(DatabaseConnectionTestMockPDO::class)->setMethods(['beginTransaction', 'commit', 'rollBack'])->getMock();
<ide> $mock = $this->getMockConnec... | 1 |
Go | Go | update comments about `initrouter` | dbd4c290b7029d31fa69c906a8da864589f19e09 | <ide><path>api/server/server.go
<ide> func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc {
<ide> }
<ide>
<ide> // InitRouter initializes the list of routers for the server.
<del>// This method also enables the Go profiler if enableProfiler is true.
<add>// This method also enables the Go prof... | 1 |
Ruby | Ruby | remove duplicate private statement | fe08c816d07ec5081366630e33c18caa327e4080 | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def render_partial
<ide> content
<ide> end
<ide>
<del> private
<del>
<ide> # Sets up instance variables needed for rendering a partial. This method
<ide> # finds the options and details and extracts them. The method also cont... | 1 |
Python | Python | fix np.ma.maskedarray.anom when input is masked | c3faa8e566a8f37334fb347981f608c420687d2d | <ide><path>numpy/ma/core.py
<ide> def anom(self, axis=None, dtype=None):
<ide>
<ide> """
<ide> m = self.mean(axis, dtype)
<del> if m is masked:
<del> return m
<del>
<ide> if not axis:
<ide> return self - m
<ide> else:
<ide><path>numpy/ma/tests/test_core.py
... | 2 |
Go | Go | add lock around write operations in graph | 957db15ef4cef2f3a6b2933260a7806d69ff68e0 | <ide><path>gograph/gograph.go
<ide> import (
<ide> "database/sql"
<ide> "fmt"
<ide> "path"
<add> "sync"
<ide> )
<ide>
<ide> const (
<ide> type WalkFunc func(fullPath string, entity *Entity) error
<ide> // Graph database for storing entities and their relationships
<ide> type Database struct {
<ide> conn *sql.DB
<a... | 2 |
Javascript | Javascript | fix remaining reactelement references | b77b760810c192a3b13149a467db934090d841c0 | <ide><path>Examples/UIExplorer/js/ExampleTypes.js
<ide> */
<ide> 'use strict';
<ide>
<add>import type React from 'react';
<add>
<ide> export type Example = {
<ide> title: string,
<ide> render: () => ?React.Element<any>,
<ide> description?: string,
<del> platform?: string;
<add> platform?: string,
<ide> };
<id... | 3 |
Javascript | Javascript | update example to use a module | d28a0bf49e81037fd73d52449c04d571218fc787 | <ide><path>src/ng/directive/ngInclude.js
<ide> * - Otherwise enable scrolling only if the expression evaluates to truthy value.
<ide> *
<ide> * @example
<del> <example module="ngAnimate" deps="angular-animate.js" animations="true">
<add> <example module="includeExample" deps="angular-animate.js" a... | 1 |
Ruby | Ruby | add failing test for array values and procs | 06992d50522c5dd2e7fa26bc257cc416b7f47cc8 | <ide><path>activesupport/test/parameter_filter_test.rb
<ide> class ParameterFilterTest < ActiveSupport::TestCase
<ide> value.replace("world!") if original_params["barg"]["blah"] == "bar" && key == "hello"
<ide> }
<ide>
<add>
<add> filter_words << lambda { |key, value|
<add> value.upcase! if k... | 1 |
Javascript | Javascript | add missing "getpolyfills" tag | 98e61de19f0e4d57a3e56a542331bf6f54b1f316 | <ide><path>local-cli/dependencies/dependencies.js
<ide> function dependencies(argv, config, args, packagerInstance) {
<ide> const packageOpts = {
<ide> projectRoots: config.getProjectRoots(),
<ide> blacklistRE: config.getBlacklistRE(),
<add> getPolyfills: config.getPolyfills,
<ide> getTransformOptions:... | 1 |
Text | Text | simplify ajax options | 5386cd96652570669a47abd5a0d5b46b7c63003e | <ide><path>docs/docs/tutorial.md
<ide> var CommentBox = React.createClass({
<ide> getInitialState: function() {
<ide> $.ajax({
<ide> url: 'comments.json',
<del> dataType: 'json',
<del> mimeType: 'textPlain',
<ide> success: function(data) {
<ide> this.setState({data: data});
<ide> ... | 1 |
Ruby | Ruby | use version 20 to support python 3.9 | 43648100b4164944783cdc21c4dca74d8c4c2263 | <ide><path>Library/Homebrew/language/python.rb
<ide> module Virtualenv
<ide> def self.included(base)
<ide> base.class_eval do
<ide> resource "homebrew-virtualenv" do
<del> url "https://files.pythonhosted.org/packages/11/74" \
<del> "/2c151a13ef41ab9fb43b3c4ff9e788e0496e... | 1 |
Javascript | Javascript | inject the update queue into classes | 1224a203bb9fa6dbbc41dd6bd907f599b5d5f93b | <ide><path>src/isomorphic/classic/class/ReactClass.js
<ide> var ReactElement = require('ReactElement');
<ide> var ReactErrorUtils = require('ReactErrorUtils');
<ide> var ReactPropTypeLocations = require('ReactPropTypeLocations');
<ide> var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames');
<del>var Rea... | 4 |
Python | Python | fix mypy annotations for arithmetic_analysis | 533eea5afa916fbe1d0db6db8da76c68b2928ca0 | <ide><path>arithmetic_analysis/gaussian_elimination.py
<ide>
<ide>
<ide> import numpy as np
<add>from numpy import float64
<add>from numpy.typing import NDArray
<ide>
<ide>
<del>def retroactive_resolution(coefficients: np.matrix, vector: np.ndarray) -> np.ndarray:
<add>def retroactive_resolution(
<add> coefficie... | 4 |
Ruby | Ruby | improve ordering of multiple columns on postgresql | 9734a416faaa8149fa5914b0afe2e6761ad5ec20 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def distinct(columns, orders) #:nodoc:
<ide>
<ide> # Construct a clean list of column names from the ORDER BY clause, removing
<ide> # any ASC/DESC modifiers
<del> order_columns = orders.collect { |s| s =~ ... | 2 |
Javascript | Javascript | add wrapper css builder to subs caps button | e5af0a5e21575323fe93ce849caf09a7c5e1a38b | <ide><path>src/js/control-bar/text-track-controls/subs-caps-button.js
<ide> class SubsCapsButton extends TextTrackButton {
<ide> return `vjs-subs-caps-button ${super.buildCSSClass()}`;
<ide> }
<ide>
<add> buildWrapperCSSClass() {
<add> return `vjs-subs-caps-button ${super.buildWrapperCSSClass()}`;
<add> }
<... | 1 |
Python | Python | consider regression model in predict mode | 83f355bb45f037ea39f5c92cb6446317193b5a75 | <ide><path>official/nlp/bert/run_classifier.py
<ide> def custom_main(custom_callbacks=None, custom_metrics=None):
<ide> if FLAGS.mode == 'predict':
<ide> with strategy.scope():
<ide> classifier_model = bert_models.classifier_model(
<del> bert_config, input_meta_data['num_labels'])[0]
<add> ... | 1 |
PHP | PHP | remove interactive mode from templatetask | a0670aa7ad19c95f10a6f9f1858b843e7834f675 | <ide><path>src/Console/Command/Task/TemplateTask.php
<ide> /**
<ide> * Template Task can generate templated output Used in other Tasks.
<ide> * Acts like a simplified View class.
<del> *
<ide> */
<ide> class TemplateTask extends Shell {
<ide>
<ide> protected function _findThemes() {
<ide> }
<ide>
<ide> $core =... | 2 |
Python | Python | add missing test comment and fix the typo | aaf5f696de13dea81a032bcda1ac879815cb2ac9 | <ide><path>numpy/core/tests/test_simd.py
<ide> class _SIMD_FP32(_Test_Utility):
<ide> def test_conversions(self):
<ide> """
<ide> Round to nearest even integer, assume CPU control register is set to rounding.
<del> Test intrinics:
<add> Test intrinsics:
<ide> npyv_round_s32... | 1 |
Java | Java | add setoutputstreaming option for http factory | 92ad66bf10b570dde25af44d8ff3f958dfec2a9d | <ide><path>spring-web/src/main/java/org/springframework/http/client/SimpleBufferingClientHttpRequest.java
<ide> /*
<del> * Copyright 2002-2011 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<id... | 5 |
Text | Text | fix some signatures of .end() methods | ab9b8e73eb1d664c0959e361478f47a546bda223 | <ide><path>doc/api/http.md
<ide> deprecated: REPLACEME
<ide>
<ide> See [`response.socket`][].
<ide>
<del>### response.end([data][, encoding][, callback])
<add>### response.end([data[, encoding]][, callback])
<ide> <!-- YAML
<ide> added: v0.1.90
<ide> changes:
<ide><path>doc/api/http2.md
<ide> deprecated: REPLACEME
<i... | 3 |
PHP | PHP | throw exception on empty collection | 339928401af2b22c4bcec562d4669176b237020f | <ide><path>src/Illuminate/Support/Testing/Fakes/NotificationFake.php
<ide>
<ide> namespace Illuminate\Support\Testing\Fakes;
<ide>
<add>use Exception;
<ide> use Illuminate\Contracts\Notifications\Dispatcher as NotificationDispatcher;
<ide> use Illuminate\Contracts\Notifications\Factory as NotificationFactory;
<ide> u... | 2 |
Javascript | Javascript | improve performance caused by primordials | 22799be7a9a87ec32b438b22090622f9884baeb4 | <ide><path>lib/buffer.js
<ide>
<ide> 'use strict';
<ide>
<del>const { Math, Object } = primordials;
<add>const {
<add> Object: {
<add> defineProperties: ObjectDefineProperties,
<add> defineProperty: ObjectDefineProperty,
<add> setPrototypeOf: ObjectSetPrototypeOf,
<add> create: ObjectCreate
<add> },
<ad... | 1 |
Javascript | Javascript | remove most `assert()` calls (issue 8506) | 814fa1dee36d6ee00ac1e7e582e2c5035b37f2f1 | <ide><path>src/core/cff_parser.js
<ide> */
<ide>
<ide> import {
<del> assert, bytesToString, FormatError, info, isArray, stringToBytes, Util, warn
<add> bytesToString, FormatError, info, isArray, stringToBytes, Util, warn
<ide> } from '../shared/util';
<ide> import {
<ide> ExpertCharset, ExpertSubsetCharset, ISOA... | 12 |
Javascript | Javascript | improve `filehandle.prototype.write` coverage | 46f54bda48610e62da8724a35dfa940fe3654649 | <ide><path>test/parallel/test-fs-promises-file-handle-write.js
<ide> async function validateNonUint8ArrayWrite() {
<ide> async function validateNonStringValuesWrite() {
<ide> const filePathForHandle = path.resolve(tmpDir, 'tmp-non-string-write.txt');
<ide> const fileHandle = await open(filePathForHandle, 'w+');
<de... | 1 |
Text | Text | add more projects to build-status.md | 0498e3699358b2c533bcb26d3dafa56b9e28a54d | <ide><path>docs/build-instructions/build-status.md
<ide> | About | [](https://travis-ci.org/atom/about) | [](https://ci.appveyor.com/proje... | 1 |
Javascript | Javascript | use `directconnect` locally to speed up tests | 56d456360bb5bae9b30623c6ef91a69e5b9b5aa1 | <ide><path>protractor-conf.js
<ide> config.capabilities = {
<ide> browserName: 'chrome'
<ide> };
<ide>
<add>config.directConnect = true;
<add>
<ide> exports.config = config; | 1 |
Text | Text | add v3.18.0-beta.4 to changelog | 5e90b4928186d8a14d346ecc56b41ff31aab7b79 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.18.0-beta.4 (March 31, 2020)
<add>
<add>- [#18837](https://github.com/emberjs/ember.js/pull/18837) [BUGFIX] Fix `willDestroy` on class helpers
<add>- [#18838](https://github.com/emberjs/ember.js/pull/18838) [BUGFIX] Ensure destructors (e.g. `will-destro... | 1 |
Javascript | Javascript | introduce $cancelupdate to cancel pending updates | 940fcb4090e96824a4abc50252aa36aaf239e937 | <ide><path>src/ng/directive/input.js
<ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
<ide>
<ide> var ngModelGet = $parse($attr.ngModel),
<ide> ngModelSet = ngModelGet.assign,
<del> pendingDebounce = null;
<add> pendingDebounce = null,
<add> ctrl = this;
<id... | 2 |
Javascript | Javascript | incorporate line3 into plane | 3c5986bf7996a00c91378337c6b528012e4955dd | <ide><path>src/math/Plane.js
<ide> THREE.extend( THREE.Plane.prototype, {
<ide>
<ide> },
<ide>
<del> isIntersectionLine: function ( startPoint, endPoint ) {
<add> isIntersectionLine: function ( line ) {
<ide>
<ide> // Note: this tests if a line intersects the plane, not whether it (or its end-points) are coplanar... | 2 |
Javascript | Javascript | fix typo in description | 6518369f25ba72abf3e0fe6ef34a3ae1034e0088 | <ide><path>src/ng/directive/ngClass.js
<ide> function classDirective(name, selector) {
<ide> *
<ide> * The directive won't add duplicate classes if a particular class was already set.
<ide> *
<del> * When the expression changes, the previously added classes are removed and only then the classes
<add> * When the expr... | 1 |
Ruby | Ruby | remove some evals from formula dsl | 28fa5b0261b3efef222e8f92f5b3906cccfeb388 | <ide><path>Library/Homebrew/formula.rb
<ide> def mirror val
<ide> stable.mirror(val)
<ide> end
<ide>
<del> Checksum::TYPES.each do |cksum|
<del> class_eval <<-EOS, __FILE__, __LINE__ + 1
<del> def #{cksum}(val)
<del> stable.#{cksum}(val)
<del> end
<del> EOS
<add> Checks... | 2 |
Python | Python | add more tests for `from_dict()` variants | 56acb7b22be559255e3e481851a8125726cbb4a9 | <ide><path>t/integration/tasks.py
<ide> from time import sleep
<ide>
<del>from celery import Task, chain, chord, group, shared_task
<add>from celery import Signature, Task, chain, chord, group, shared_task
<ide> from celery.exceptions import SoftTimeLimitExceeded
<ide> from celery.utils.log import get_task_logger
<ide... | 3 |
Ruby | Ruby | add `old_checksums` helper function | ec841e7b6217e3038b2ca74c2c60084f1a0fd11f | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def merge(args:)
<ide> bottle.sha256 tag_hash["sha256"] => tag.to_sym
<ide> end
<ide>
<del> output = bottle_output bottle
<del>
<ide> if args.write?
<ide> path = Pathname.new((HOMEBREW_REPOSITORY/bottle_hash["formula"]["path"]).to_s)
... | 1 |
Python | Python | fix initialization of batchnormalization | d9ca798c60641a0ed5eea22e45be95054157af0d | <ide><path>keras/layers/normalization.py
<ide> class BatchNormalization(Layer):
<ide> weights: Initialization weights.
<ide> List of 2 numpy arrays, with shapes:
<ide> `[(input_shape,), (input_shape,)]`
<del>
<add> beta_init: name of initialization function for shift parameter
<ad... | 1 |
Go | Go | normalize comment formatting | c9b2a3cff51a6403f4eac319af5a794b0dbdeba4 | <ide><path>api/server/router/container/container_routes.go
<ide> func (s *containerRouter) postCommit(ctx context.Context, w http.ResponseWriter,
<ide> }
<ide>
<ide> config, _, _, err := s.decoder.DecodeConfig(r.Body)
<del> if err != nil && err != io.EOF { //Do not fail if body is empty.
<add> if err != nil && err !... | 8 |
Python | Python | provide none as default value for layer names | 5824f2eb99b6aa955fb568c564a741af711d64f7 | <ide><path>keras/layers/core.py
<ide> def get_output(self, train=False):
<ide> inputs = OrderedDict()
<ide> for i in range(len(self.layers)):
<ide> X = self.layers[i].get_output(train)
<del> name = getattr(self.layers[i], 'name')
<add> name = getattr... | 1 |
Text | Text | fix url_helper examples in testing guide [ci skip] | e7ba10b9a913b6e3d1e0f311d12eafa981824bbf | <ide><path>guides/source/testing.md
<ide> The `get` method kicks off the web request and populates the results into the `@
<ide>
<ide> All of these keyword arguments are optional.
<ide>
<del>Example: Calling the `:show` action, passing an `id` of 12 as the `params` and setting `HTTP_REFERER` header:
<add>Example: Cal... | 1 |
PHP | PHP | fix return type of error() | 86c0fa0212cb1f9ee80a568009189c399801dc8c | <ide><path>src/View/Form/ArrayContext.php
<ide> public function hasError($field) {
<ide> * Get the errors for a given field
<ide> *
<ide> * @param string $field A dot separated path to check errors on.
<del> * @return mixed Either a string or an array of errors. Null
<del> * will be returned when the field path is... | 3 |
Ruby | Ruby | remove side effects from `normalize_format` | c10d7d16908c6858428331b3cdb056bd059aba63 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(set, path, defaults, as, controller, default_action, modyoule, to
<ide> end
<ide>
<ide> requirements, conditions = split_constraints path_params, constraints
<del> @requirements = Hash[requirements]
<del> ... | 1 |
Javascript | Javascript | use fipsmode in test-crypto-fips | feebdc5bc5a44779069a2269f4d3f15d4e36a277 | <ide><path>test/parallel/test-crypto-fips.js
<add>// Flags: --expose-internals
<ide> 'use strict';
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> const assert = require('assert');
<ide> const spawnSync = require('child_process').spawnSync;
<ide> const path = require('path');
<ide> const f... | 1 |
Javascript | Javascript | allow combination of -i and -e cli flags | ba16a120518e972bb3ac0190196fdb4caa32f4a6 | <ide><path>src/node.js
<ide> delete process.env.NODE_UNIQUE_ID;
<ide> }
<ide>
<del> if (process._eval != null) {
<del> // User passed '-e' or '--eval' arguments to Node.
<add> if (process._eval != null && !process._forceRepl) {
<add> // User passed '-e' or '--eval' arguments to No... | 2 |
Ruby | Ruby | add mavericks bottles | 0296ffa0efb7692470bbb8312e0b0fcdb61263dd | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_formula_spec_integration
<ide> sha1 'faceb00cfaceb00cfaceb00cfaceb00cfaceb00c' => :snow_leopard
<ide> sha1 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d' => :lion
<ide> sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
<... | 2 |
Javascript | Javascript | verify validity of tty before using it | 014eef3c74f93e5b0bce82abc14557c46aa38c2a | <ide><path>packager/src/lib/terminal.js
<ide> function chunkString(str: string, size: number): Array<string> {
<ide> return str.match(new RegExp(`.{1,${size}}`, 'g')) || [];
<ide> }
<ide>
<add>/**
<add> * Get the stream as a TTY if it effectively looks like a valid TTY.
<add> */
<add>function getTTYStream(stream: ne... | 1 |
Python | Python | specify range for numpy.angle | fc93cb3e5d5dcf50f95cfda088124768531456f4 | <ide><path>numpy/lib/function_base.py
<ide> def angle(z, deg=False):
<ide> Returns
<ide> -------
<ide> angle : ndarray or scalar
<del> The counterclockwise angle from the positive real axis on
<del> the complex plane, with dtype as numpy.float64.
<add> The counterclockwise angle from th... | 1 |
Javascript | Javascript | fix glimmer builds | 3ce73bb00126f20edb7f5cb9ceb6f1a69ae758bb | <ide><path>lib/packages.js
<ide> module.exports = function(features) {
<ide> trees: null,
<ide> templateCompilerOnly: true,
<ide> requirements: ['ember-metal', 'ember-environment', 'ember-console', 'ember-templates'],
<del> templateCompilerVendor: ['simple-html-tokenizer']
<add> templateComp... | 1 |
Ruby | Ruby | remove code duplication | 7379114c2f2c2ec1f767a16cf2f8662ea6bd8db2 | <ide><path>activemodel/lib/active_model/validations/exclusion.rb
<ide> class ExclusionValidator < EachValidator
<ide> "and must be supplied as the :in option of the configuration hash"
<ide>
<ide> def check_validity!
<del> unless [:include?, :call].any?{ |method| options[:in].respond... | 3 |
Ruby | Ruby | restore argv even if an exception is raised | 951620f146fde045f106093fcd510a345a6fddd1 | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def filter_for_dependencies
<ide> flags_to_clear.concat %w[--verbose -v] if quieter?
<ide> flags_to_clear.each {|flag| delete flag}
<ide>
<del> ret = yield
<del>
<del> replace old_args
<del> ret
<add> yield
<add> ensure
<add> replace(old_args)
<i... | 1 |
Javascript | Javascript | add `reverse` support to time scale | d7e8b733e36f87e85a5bbccd88cfc74b182ac467 | <ide><path>src/scales/scale.time.js
<ide> function generate(min, max, capacity, options) {
<ide> }
<ide>
<ide> /**
<del> * Returns the right and left offsets from edges in the form of {left, right}.
<add> * Returns the end and start offsets from edges in the form of {start, end}.
<ide> * Offsets are added when the `o... | 2 |
PHP | PHP | remove duplicate code | 19ac39963adbb9430b465a03e06731fb2d8eff1d | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function url($url = null, $full = false) {
<ide> for ($i = 0, $len = count(self::$routes); $i < $len; $i++) {
<ide> $originalUrl = $url;
<ide>
<del> if (isset(self::$routes[$i]->options['persist'], $params)) {
<del> $url = self::$routes[$i]->pers... | 1 |
Python | Python | fix ukrainian lemmatizer init | 264862c67a669ab908c2c628c5de8fb4c07e7d18 | <ide><path>spacy/lang/ru/lemmatizer.py
<ide> def __init__(
<ide> mode: str = "pymorphy2",
<ide> overwrite: bool = False,
<ide> ) -> None:
<del> super().__init__(vocab, model, name, mode=mode, overwrite=overwrite)
<del>
<ide> try:
<ide> from pymorphy2 import MorphAnalyzer
<... | 2 |
Java | Java | add a way to enable / disable lazy native modules | a4916b8c98085e37a2cdfb130d1089daba697702 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public static class Builder {
<ide> protected @Nullable Activity mCurrentActivity;
<ide> protected @Nullable DefaultHardwareBackBtnHandler mDefaultHardwareBackBtnHandler;
<ide> protected @Nullable RedBoxHandler mRedBoxH... | 2 |
PHP | PHP | remove unused property | 8f50064a893be90be04e8b3214dc1f2347d88758 | <ide><path>src/TestSuite/TestCase.php
<ide> abstract class TestCase extends BaseTestCase
<ide> */
<ide> protected $_configure = [];
<ide>
<del> /**
<del> * Path settings to restore at the end of the test.
<del> *
<del> * @var array
<del> */
<del> protected $_pathRestore = [];
<del>
<ide>... | 1 |
Text | Text | replace url with empty array in solution | 8ee2e5eaa961e3ab5a6653e14f3946750dfd2ca1 | <ide><path>guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md
<ide> A way to visualize this is by considering a tree that starts with the first char
<ide> function permAlone(str) {
<ide>
<ide> // Create a regex to match repeated consecutive characters.
<del> var reg... | 1 |
PHP | PHP | ignore asset requests containing %2e in them | d4db64ff26e83cdbb3e6dac848419afd99334680 | <ide><path>lib/Cake/Routing/Filter/AssetDispatcher.php
<ide> class AssetDispatcher extends DispatcherFilter {
<ide> * @return CakeResponse if the client is requesting a recognized asset, null otherwise
<ide> */
<ide> public function beforeDispatch(CakeEvent $event) {
<del> $url = $event->data['request']->url;
<add>... | 2 |
Ruby | Ruby | fix cpuid instruction check on mojave | 16e56907b5cf93bd66f87608089944905c506cf5 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def relative_glob(dir, pattern)
<ide>
<ide> def cpuid_instruction?(file, objdump = "objdump")
<ide> @instruction_column_index ||= {}
<del> @instruction_column_index[objdump] ||= if Utils.popen_read(objdump, "--version").include? "LLVM"
<del> 1 # ... | 1 |
Javascript | Javascript | fix logic nit in tools/doc/generate.js | 14460d595fd867e92fdd6328ca0bc5636c1899d9 | <ide><path>tools/doc/generate.js
<ide> function next(er, input) {
<ide> switch (format) {
<ide> case 'json':
<ide> require('./json.js')(input, filename, (er, obj) => {
<del> console.log(JSON.stringify(obj, null, 2));
<ide> if (er) throw er;
<add> console.log(JSON.stringify(obj, null, 2... | 1 |
Mixed | Javascript | add client support for tls keylog events | b0cf62b3a05cf1b207441de2ce3d33a3a57acd5f | <ide><path>doc/api/https.md
<ide> changes:
<ide>
<ide> See [`Session Resumption`][] for information about TLS session reuse.
<ide>
<add>#### Event: 'keylog'
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* `line` {Buffer} Line of ASCII text, in NSS `SSLKEYLOGFILE` format.
<add>* `tlsSocket` {tls.TLSSock... | 4 |
Javascript | Javascript | remove console.logs from fiber | e0e4954061a88f65c3b9ad6041a9b0a1d3881454 | <ide><path>src/renderers/noop/ReactNoop.js
<ide> function flattenChildren(children : HostChildren<Instance>) {
<ide> var NoopRenderer = ReactFiberReconciler({
<ide>
<ide> updateContainer(containerInfo : Container, children : HostChildren<Instance>) : void {
<del> console.log('Update container #' + containerInfo.r... | 8 |
Text | Text | add v3.20.0-beta.5 to changelog | 251c17f86f5375187dec7a6165cb8017d3fa7592 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.20.0-beta.5 (July 6, 2020)
<add>
<add>- [#19034](https://github.com/emberjs/ember.js/pull/19034) [BUGFIX] Disable named blocks; please continue to use the polyfill.
<add>
<ide> ### v3.20.0-beta.4 (June 29, 2020)
<ide>
<ide> - [#19025](https://github.c... | 1 |
Text | Text | change http links to https in contributing.md | 4cc6ccacb11bbe79840edb10ff9ef91bccabfad5 | <ide><path>CONTRIBUTING.md
<ide> This project and everyone participating in it is governed by the [Atom Code of C
<ide>
<ide> ## I don't want to read this whole thing I just have a question!!!
<ide>
<del>> **Note:** [Please don't file an issue to ask a question.](http://blog.atom.io/2016/04/19/managing-the-deluge-of-... | 1 |
PHP | PHP | fix coding standards | fdcb3dc34f179dd20f4dc7f341bb7dee19da8b37 | <ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> public function testArrayDiffKey() {
<ide> $two = array('minYear' => null, 'maxYear' => null, 'separator' => '-', 'interval' => 1, 'monthNames' => true);
<ide> $result = array_diff_key($one, $two);
<ide> $this->assertEquals($result, array());
<del>
<ide> }
<ide>... | 1 |
Go | Go | fix shared size computation for filtered requests | af3e5568fcca17bacb7d27d1bbff0b68bb855b83 | <ide><path>daemon/images/images.go
<ide> func (i *ImageService) Images(imageFilters filters.Args, all bool, withExtraAttr
<ide> return nil, err
<ide> }
<ide>
<del> var allImages map[image.ID]*image.Image
<add> var selectedImages map[image.ID]*image.Image
<ide> if danglingOnly {
<del> allImages = i.imageStore.Head... | 1 |
Javascript | Javascript | fix mapview crashing problem | 3ec3312c7cc74d67a62b87fe32ad0a84db78ce93 | <ide><path>Libraries/Components/MapView/MapView.js
<ide> if (Platform.OS === 'android') {
<ide> var RCTMap = createReactNativeComponentClass({
<ide> validAttributes: merge(
<ide> ReactNativeViewAttributes.UIView, {
<add> active: true,
<ide> showsUserLocation: true,
<ide> zoomEnabled: ... | 1 |
Go | Go | prevent plugin when volume plugin is disabled | 34f4b197b8cec5b177797e343a5c89473ff1d2aa | <ide><path>plugin/store/store.go
<ide> func (ps *Store) getAllByCap(capability string) []plugingetter.CompatPlugin {
<ide>
<ide> result := make([]plugingetter.CompatPlugin, 0, 1)
<ide> for _, p := range ps.plugins {
<del> if _, err := p.FilterByCap(capability); err == nil {
<del> result = append(result, p)
<add> ... | 1 |
Javascript | Javascript | replace @provides with @providesmodule | d82f2553fb0da40b02ca5515767211105e2eec07 | <ide><path>Examples/UIExplorer/js/ListViewPagingExample.js
<ide> * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
<ide> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide> *
<del> * @provides ListViewPagingExample
<add> * @providesModule ListViewPagingExample
<ide... | 11 |
Ruby | Ruby | avoid misuse of underscore argument | a076b8cde99281511eab5d2118a3287b1833bb20 | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def permitted?
<ide> def permit!
<ide> each_pair do |key, value|
<ide> value = convert_hashes_to_parameters(key, value)
<del> Array.wrap(value).each do |_|
<del> _.permit! if _.respond_to? :permit!
<add> ... | 1 |
Javascript | Javascript | use uri instead of url in source property of image | 9b882a3b44a9b35210de53cccc8e61c8fbfca566 | <ide><path>Examples/UIExplorer/js/ImageExample.js
<ide> exports.examples = [
<ide> <View style={{flexDirection: 'row'}}>
<ide> <Image
<ide> source={{
<del> url: 'ImageInBundle',
<add> uri: 'ImageInBundle',
<ide> bundle: 'UIExplorerBundle',
<ide> ... | 1 |
Javascript | Javascript | fix some scrollview lint | f40de0e467815062c9bc61e645a835006b58c574 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> const ScrollView = createReactClass({
<ide> ScrollViewClass = RCTScrollView;
<ide> ScrollContentContainerViewClass = RCTScrollContentView;
<ide> warning(
<del> !this.props.snapToInterval || !this.props.pagingEnabled,
<add> th... | 1 |
Ruby | Ruby | remove usage of memoizable from actionpack | f2c0fb32c0dce7f8da0ce446e2d2f0cba5fd44b3 | <ide><path>actionpack/lib/action_dispatch/http/headers.rb
<ide> module ActionDispatch
<ide> module Http
<ide> class Headers < ::Hash
<del> extend ActiveSupport::Memoizable
<add> @@env_cache = Hash.new { |h,k| h[k] = "HTTP_#{k.upcase.gsub(/-/, '_')}" }
<ide>
<ide> def initialize(*args)
<add>
<ide>... | 2 |
Ruby | Ruby | freeze a string in comparator | 045cdd3a3d50b06019361cf7bec57f2521facff6 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def normalize_controller!
<ide>
<ide> # Move 'index' action from options to recall
<ide> def normalize_action!
<del> if @options[:action] == 'index'
<add> if @options[:action] == 'index'.freeze
<ide> @rec... | 1 |
Javascript | Javascript | fix lint error in dom fixtures | 028e0ea9371b890fe6accac6b04ff8430abebd34 | <ide><path>fixtures/dom/src/components/fixtures/date-inputs/index.js
<del>const React = window.React;
<del>
<ide> import Fixture from '../../Fixture';
<ide> import FixtureSet from '../../FixtureSet';
<ide> import TestCase from '../../TestCase';
<ide> import SwitchDateTestCase from './switch-date-test-case';
<ide>
<add... | 1 |
Java | Java | move http.server to http.server.reactive | da98becf72fbeef836dba366431be2a652e5e001 | <add><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/FilterChainHttpHandler.java
<del><path>spring-web-reactive/src/main/java/org/springframework/http/server/FilterChainHttpHandler.java
<ide> * See the License for the specific language governing permissions and
<ide> * limitations und... | 58 |
Javascript | Javascript | simplify swipeablerow styling | 3ccfb58701d61449b74e387d2b9eced25bdefe31 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableRow.js
<ide> const SwipeableRow = React.createClass({
<ide> * component A to be transparent until component B is loaded.
<ide> */
<ide> isSwipeableViewRendered: false,
<add> rowHeight: (null: ?number),
<ide> };
<ide> },
<ide>
<ide> ... | 1 |
Javascript | Javascript | remove unused param in test-graph.pipe | 5e443d7398e8dadf0c44b3011f97deead75b1148 | <ide><path>test/async-hooks/test-graph.pipe.js
<ide> sleep
<ide> .on('exit', common.mustCall(onsleepExit))
<ide> .on('close', common.mustCall(onsleepClose));
<ide>
<del>function onsleepExit(code) {}
<add>function onsleepExit() {}
<ide>
<ide> function onsleepClose() {}
<ide> | 1 |
Ruby | Ruby | avoid is_a? calls | 6ac882bb58b429d20b76c96975df7dabaf618988 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def nested_scope
<ide> def shallow?
<ide> @shallow
<ide> end
<add>
<add> def singleton?; false; end
<ide> end
<ide>
<ide> class SingletonResource < Resource #:nodoc:
<ide> def singular
<ide>
<ide... | 1 |
Javascript | Javascript | fix parallel/test-setproctitle.js on alpine | ee0620b2353df2a4857fc962805b6a0b2cbb0f3a | <ide><path>test/parallel/test-setproctitle.js
<ide> const path = require('path');
<ide> // The title shouldn't be too long; libuv's uv_set_process_title() out of
<ide> // security considerations no longer overwrites envp, only argv, so the
<ide> // maximum title length is possibly quite short.
<del>let title = 'testme'... | 1 |
Javascript | Javascript | fix path separator for windows | ab5926366265e74d63718d6999c4576c3b8ffe8b | <ide><path>lib/RequestShortener.js
<ide> class RequestShortener {
<ide> result = result.replace(this.currentDirectoryRegExp, "!.");
<ide> }
<ide> if (this.parentDirectoryRegExp) {
<del> result = result.replace(this.parentDirectoryRegExp, "!../");
<add> result = result.replace(this.parentDirectoryRegExp, `!..... | 1 |
PHP | PHP | update the describe | 37d26f29234978c59efcd11189aa6e1c1462e502 | <ide><path>lib/Cake/Model/Datasource/Database/Mssql.php
<ide> public function listSources() {
<ide> */
<ide> function describe($model) {
<ide> $cache = parent::describe($model);
<del>
<ide> if ($cache != null) {
<ide> return $cache;
<ide> }
<del>
<add> $fields = false;
<ide> $table = $this->fullTableName(... | 1 |
Ruby | Ruby | add fortran env helpers | aafe2f20d01ef5b03fd005c4b3107086c8d080a3 | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def remove keys, value
<ide> delete(key) if self[key].to_s.empty?
<ide> end if value
<ide> end
<del> def cc; self['CC'] or "cc"; end
<del> def cxx; self['CXX'] or "c++"; end
<del> def cflags; self['CFLAGS']; end
<del> def cxxflags;self['CXXFLAGS']; end
<de... | 1 |
Javascript | Javascript | update action docs | e49113cb2c83880fb3656ebb306a4ec22e0e2d53 | <ide><path>packages/ember-routing-htmlbars/lib/keywords/action.js
<ide> import closureAction from 'ember-routing-htmlbars/keywords/closure-action';
<ide> supply an `on` option to the helper to specify a different DOM event name:
<ide>
<ide> ```handlebars
<del> <div {{action "anActionName" on="doubleClick"}}>
<add... | 1 |
PHP | PHP | remove unused import | 8374f3ce0b9d094fcd434555a0887f15a7e07e1b | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Database;
<ide>
<del>use Cake\Cache\Cache;
<ide> use Cake\Cache\Engine\NullEngine;
<ide> use Cake\Collection\Collection;
<ide> use Cake\Database\Connection; | 1 |
Javascript | Javascript | fix race condition in profiling plugin | 735f99c01bb82a4ea703b63d1a1ac74a8d7235b7 | <ide><path>lib/debug/ProfilingPlugin.js
<ide> function createTrace(outputPath) {
<ide> trace,
<ide> counter,
<ide> profiler,
<del> end: callback => fsStream.end(callback)
<add> end: callback => {
<add> // Wait until the write stream finishes.
<add> fsStream.on("finish", () => {
<add> callback();
<add> ... | 1 |
Javascript | Javascript | simplify the `inject` implementation | d5c7ef0f7886afdfeb6d78b7e320ba2bfe5c77ba | <ide><path>src/ngMock/angular-mocks.js
<ide> if(window.jasmine || window.mocha) {
<ide> window.inject = angular.mock.inject = function() {
<ide> var blockFns = Array.prototype.slice.call(arguments, 0);
<ide> var errorForStack = new Error('Declaration Location');
<del> return isSpecRunning() ? workFn() : wo... | 1 |
Go | Go | write newline after every log message | d593f579528d2555296b535aeae8383f5d2ee9b3 | <ide><path>utils/utils.go
<ide> func (w *WriteBroadcaster) Write(p []byte) (n int, err error) {
<ide> continue
<ide> }
<ide> lp = append(lp, b...)
<add> lp = append(lp, '\n')
<ide> }
<ide> }
<ide> if n, err := sw.wc.Write(lp); err != nil || n != len(lp) { | 1 |
Go | Go | fix panic on network timeout during push | e273445dd407df6803d7b80863b644a6cfa2c1f5 | <ide><path>distribution/push.go
<ide> func Push(ctx context.Context, ref reference.Named, imagePushConfig *ImagePushCo
<ide> // argument so that it can be used with httpBlobWriter's ReadFrom method.
<ide> // Using httpBlobWriter's Write method would send a PATCH request for every
<ide> // Write call.
<del>func compress... | 2 |
Javascript | Javascript | dashify challenge block property on seed | 5d4a92bcc65a01a833f6778fa00acf265f731bcd | <ide><path>seed/index.js
<ide> Observable.combineLatest(
<ide> challenge.helpRoom = helpRoom;
<ide> challenge.order = order;
<ide> challenge.suborder = index + 1;
<del> challenge.block = blockName;
<add> challenge.block = dasherize(blockName);
<ide> ... | 2 |
Ruby | Ruby | require mini_magick when it's used | ac26aef11f1be08917f3190b3d2b7ba4434444f7 | <ide><path>app/models/active_storage/variant.rb
<ide> require "active_storage/blob"
<del>require "mini_magick"
<ide>
<ide> # Image blobs can have variants that are the result of a set of transformations applied to the original.
<ide> class ActiveStorage::Variant
<ide> def process
<ide> end
<ide>
<ide> def tra... | 1 |
Text | Text | improve pipeline model and meta example [ci skip] | aa5230546142810884321f2c15a59dace8454dba | <ide><path>website/docs/usage/processing-pipelines.md
<ide> components. spaCy then does the following:
<ide> >
<ide> > ```json
<ide> > {
<del>> "name": "example_model",
<ide> > "lang": "en",
<add>> "name": "core_web_sm",
<ide> > "description": "Example model for spaCy",
<del>> "pipeline": ["tagger", "parser"]... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.