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 | remove dead code | 31956c2abb51340dc91a8e8ba2a195e35fdc4948 | <ide><path>lib/Cake/View/View.php
<ide> protected function _getViewFileName($name = null) {
<ide> }
<ide> }
<ide> }
<del> $defaultPath = $paths[0];
<del>
<del> if ($this->plugin) {
<del> $pluginPaths = App::path('plugins');
<del> foreach ($paths as $path) {
<del> if (strpos($path, $pluginPaths[0]) ===... | 1 |
Javascript | Javascript | fix cypress login in development | e98257749fe1c7140032f7feaff884b16d17ff52 | <ide><path>cypress/support/commands.js
<ide> Cypress.Commands.add('login', () => {
<ide> cy.visit('/');
<ide> cy.contains("Get started (it's free)").click();
<del> cy.url().should('eq', Cypress.config().baseUrl + '/learn/');
<add> cy.location().should(loc => {
<add> // I'm not 100% sure why logins get redirect... | 1 |
Text | Text | fix links to fonts.md | 4f6d9d844072e6e1cbac49f483a231e1ab4969fb | <ide><path>docs/docs/axes/labelling.md
<ide> The scale label configuration is nested under the scale configuration in the `sc
<ide> | `display` | `boolean` | `false` | If true, display the axis title.
<ide> | `align` | `string` | `'center'` | Alignment of the axis title. Possible options are `'start'`, `'center'` and `... | 5 |
Go | Go | modify context key | 1377a2ddee3f3a35e242237d4e60c6a9d39fc552 | <ide><path>api/server/httputils/httputils.go
<ide> import (
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide>
<del>type contextKey string
<del>
<ide> // APIVersionKey is the client's requested API version.
<del>const APIVersionKey contextKey = "api-version"
<add>type APIVersionKey struct{}
<ide>
<ide> // APIFunc is a... | 4 |
Text | Text | add regex for comma separated const declarations | bc42ad1f2763beb083f235da068ddf9a74f68b8c | <ide><path>curriculum/challenges/english/03-front-end-libraries/redux/use-const-for-action-types.md
<ide> The `authReducer` function should handle multiple action types with a switch sta
<ide> ```js
<ide> const noWhiteSpace = __helpers.removeWhiteSpace(code);
<ide> assert(
<del> /constLOGIN=(['"`])LOGIN\1/.test(noWhit... | 1 |
Ruby | Ruby | use map! to avoid an extra object creation | 3152bb06cc3f82d05674bea60c2668d824e3c7a6 | <ide><path>activerecord/lib/active_record/core.rb
<ide> def inspect
<ide>
<ide> # Returns a hash of the given methods with their names as keys and returned values as values.
<ide> def slice(*methods)
<del> Hash[methods.map { |method| [method, public_send(method)] }].with_indifferent_access
<add> Hash... | 1 |
Ruby | Ruby | fix regression from multiple mountpoint support | 2bd60c844ce92047e03359f4dde4b19f49de92ea | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def define_generate_prefix(app, name)
<ide> script_namer = ->(options) do
<ide> prefix_options = options.slice(*_route.segment_keys)
<ide> prefix_options[:relative_url_root] = "".freeze
<add>
<add> if ... | 4 |
Javascript | Javascript | fix distance of sphere center to plane | 5806d75e8cbca6e5e5bdccc16bc2b5f3424367f7 | <ide><path>src/math/Sphere.js
<ide> Object.assign( Sphere.prototype, {
<ide> return box.intersectsSphere( this );
<ide>
<ide> },
<del>
<add>
<ide> intersectsPlane: function ( plane ) {
<ide>
<del> // We use the following equation to compute the signed distance from
<del> // the center of the sphere to the plan... | 1 |
Javascript | Javascript | fix export with folders that contain dot | 38ad8d870c6b358e0dda624e982eba7a9a00ddbe | <ide><path>packages/next/export/worker.js
<ide> process.on(
<ide> })
<ide>
<ide> let htmlFilename = `${path}${sep}index.html`
<del> if (extname(path) !== '') {
<add> const pageExt = extname(page)
<add> const pathExt = extname(path)
<add> // Make sure page isn't a folder with... | 5 |
PHP | PHP | avoid unneeded local var assignment | 4fa66f56ea41178b912ad9cd6b6c18a6bcabccad | <ide><path>src/Http/Client/Response.php
<ide> public function getCookie(string $name)
<ide> return null;
<ide> }
<ide>
<del> $cookie = $this->cookies->get($name);
<del>
<del> return $cookie->getValue();
<add> return $this->cookies->get($name)->getValue();
<ide> }
<ide>
<id... | 1 |
Ruby | Ruby | fix dependency names | ab00c0f719a5646060a9fbd15fbecb1b2a9eb16d | <ide><path>Library/Homebrew/compat/requirements.rb
<ide> class CVSRequirement < Requirement
<ide> class EmacsRequirement < Requirement
<ide> fatal true
<ide> satisfy do
<del> odeprecated("EmacsRequirement", "'depends_on \"cvs\"'")
<add> odeprecated("EmacsRequirement", "'depends_on \"emacs\"'")
<ide> which... | 1 |
PHP | PHP | apply fixes from styleci | bf2acca4e7f3db44ceb28483a0b43b9e66375eec | <ide><path>tests/Testing/Fluent/AssertTest.php
<ide> public function testAssertWhereContainsFailsWithMissingNestedValue()
<ide> $this->expectException(AssertionFailedError::class);
<ide> $this->expectExceptionMessage('Property [id] does not contain [5].');
<ide>
<del> $assert->whereContains('id'... | 1 |
Go | Go | remove uncalled configuresysinit | 2648655a4a0aaf41e02dec4064c5b6e68fa7b9fe | <ide><path>daemon/daemon_unix.go
<ide> import (
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/daemon/graphdriver"
<del> "github.com/docker/docker/dockerversion"
<ide> derr "github.com/docker/docker/errors"
<ide> pblkiodev "github.com/docker/docker/pkg/blkiodev"
<del> "github.com/docker/d... | 2 |
Python | Python | add cumsum and cumprod ops to backend | 31ecfb28c3202b4e551027bb1f2aef39a9eee936 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def prod(x, axis=None, keepdims=False):
<ide> return tf.reduce_prod(x, reduction_indices=axis, keep_dims=keepdims)
<ide>
<ide>
<add>def cumsum(x, axis=0):
<add> """Cumulative sum of the values in a tensor, alongside the specified axis.
<add>
<add> # Argum... | 3 |
Go | Go | add non-nil check before logging volume errors | b1570baadd76377aaeb7199c95ad6dc11b38f302 | <ide><path>volume/store/store.go
<ide> func lookupVolume(driverName, volumeName string) (volume.Volume, error) {
<ide> if err != nil {
<ide> err = errors.Cause(err)
<ide> if _, ok := err.(net.Error); ok {
<del> return nil, errors.Wrapf(err, "error while checking if volume %q exists in driver %q", v.Name(), v.Dri... | 1 |
Text | Text | fix typo in readme | ba9dc748388618c64af42006bc92f2c1d1abde09 | <ide><path>README.md
<ide> us a report nonetheless.
<ide>
<ide> - [#5507](https://github.com/nodejs/node/pull/5507): _Fix a defect that makes
<ide> the CacheBleed Attack possible_. Many, though not all, OpenSSL vulnerabilities
<del> in the TLS/SSL protocols also effect Node.js.
<add> in the TLS/SSL protocols also ... | 1 |
Python | Python | add more tests for pricing | 0ef3c71e839cd79a6016e818754b343d1e83f245 | <ide><path>test/test_pricing.py
<ide> def test_invalid_module_pricing_cache(self):
<ide> libcloud.pricing.invalidate_module_pricing_cache(driver_type='compute',
<ide> driver_name='foo')
<ide> self.assertFalse('foo' in libcloud.pricing.PRICING_DATA... | 1 |
PHP | PHP | add docs for _host option | 91b787e3dd19fc69eb19e77d32bf69d0a662d737 | <ide><path>src/Routing/Route/Route.php
<ide> class Route
<ide> *
<ide> * - `_ext` - Defines the extensions used for this route.
<ide> * - `pass` - Copies the listed parameters into params['pass'].
<add> * - `_host` - Define the host name pattern if you want this route to only match
<add> * spec... | 1 |
Go | Go | remove use of docker/go-connections | 0f0e3163b5278e7eb047313d22c645fbaee26884 | <ide><path>daemon/info.go
<ide> import (
<ide> "github.com/docker/docker/pkg/sysinfo"
<ide> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/docker/registry"
<del> "github.com/docker/go-connections/sockets"
<ide> metrics "github.com/docker/go-metrics"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide> ... | 1 |
PHP | PHP | fix route list for excluded middleware | 7ebd21193df520d78269d7abd740537a2fae889e | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> protected function displayRoutes(array $routes)
<ide> */
<ide> protected function getMiddleware($route)
<ide> {
<del> return collect($route->gatherMiddleware())->map(function ($middleware) {
<add> return collect($this->ro... | 1 |
Javascript | Javascript | add unit test for |missingpdfexception| | 27a80f3b888e9c04f2d28976ae7353c6dcaa99a5 | <ide><path>test/unit/api_spec.js
<ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
<ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<ide> /* globals PDFJS, expect, it, describe, Promise, combineUrl, waitsFor,
<del> isArray */
<add> isArra... | 1 |
Javascript | Javascript | remove accidental .only | a54d3217652a09a3a619d3491bebdaf73651c8db | <ide><path>src/renderers/dom/client/__tests__/ReactMount-test.js
<ide> describe('ReactMount', function() {
<ide> });
<ide> }
<ide>
<del> it.only('warns when using two copies of React before throwing', function() {
<add> it('warns when using two copies of React before throwing', function() {
<ide> require('... | 1 |
Text | Text | fix wording and remove reverted change | d1318f7dc7045ad0fa23c7e2e5a31e653b4b24b4 | <ide><path>CHANGELOG.md
<ide>
<ide> ## Bug Fixes
<ide>
<del>- **$compile:** render nested transclusion at the root of a template
<del> ([6d1e7cdc](https://github.com/angular/angular.js/commit/6d1e7cdc51c074139639e870b66997fb0df4523f),
<del> [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https:... | 1 |
Javascript | Javascript | support multi-element directive | e46100f7097d9a8f174bdb9e15d4c6098395c3f2 | <ide><path>src/jqLite.js
<ide> function JQLite(element) {
<ide> div.innerHTML = '<div> </div>' + element; // IE insanity to make NoScope elements work!
<ide> div.removeChild(div.firstChild); // remove the superfluous div
<ide> JQLiteAddNodes(this, div.childNodes);
<del> this.remove(); // detach the ... | 6 |
Text | Text | add documentation for per-binding state pattern | 6d6de56571290412e052420f6425e0adb2eed1b2 | <ide><path>src/README.md
<ide> void Initialize(Local<Object> target,
<ide> NODE_MODULE_CONTEXT_AWARE_INTERNAL(cares_wrap, Initialize)
<ide> ```
<ide>
<add><a id="per-binding-state">
<add>#### Per-binding state
<add>
<add>Some internal bindings, such as the HTTP parser, maintain internal state that
<add>only affects th... | 1 |
PHP | PHP | apply fixes from styleci | f5a52813ef32730937c8fd87ca8bb8bdb748ef92 | <ide><path>src/Illuminate/Database/DatabaseServiceProvider.php
<ide> use Faker\Generator as FakerGenerator;
<ide> use Illuminate\Contracts\Queue\EntityResolver;
<ide> use Illuminate\Database\Connectors\ConnectionFactory;
<del>use Illuminate\Database\Eloquent\Factory as EloquentFactory;
<ide> use Illuminate\Database\Elo... | 1 |
Ruby | Ruby | add explicit rendering to diskcontroller#update | 31780364b78dc24c712db3d9dc13fa1294f02ba1 | <ide><path>activestorage/app/controllers/active_storage/disk_controller.rb
<ide> def update
<ide> if token = decode_verified_token
<ide> if acceptable_content?(token)
<ide> named_disk_service(token[:service_name]).upload token[:key], request.body, checksum: token[:checksum]
<add> head :no_conte... | 1 |
Ruby | Ruby | fix rubocop warnings | d01993da82bcb106aeac349ed5e66a445a40d1d2 | <ide><path>Library/Homebrew/dev-cmd/create.rb
<ide> def create
<ide>
<ide> def __gets
<ide> gots = $stdin.gets.chomp
<del> if gots.empty? then nil else gots end
<add> gots.empty? ? nil : gots
<ide> end
<ide> end
<ide> | 1 |
Text | Text | fix controller name in getting started | d861ef6210438e37a7cde563f11fb158a13f7a4d | <ide><path>guides/source/getting_started.md
<ide> Associations](association_basics.html) guide.
<ide>
<ide> ### Adding a Route for Comments
<ide>
<del>As with the `welcome` controller, we will need to add a route so that Rails
<add>As with the `articles` controller, we will need to add a route so that Rails
<ide> kno... | 1 |
Ruby | Ruby | expect error for uppercase formula | ca6fc4873e4cb396e9ff650a52853ccd2359ac47 | <ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb
<ide> class Foo < Formula
<ide> end
<ide> end
<ide>
<add> describe "#audit_formula_name" do
<add> specify "no issue" do
<add> fa = formula_auditor "foo", <<~RUBY, core_tap: true, strict: true
<add> class Foo < Formula
<add> ... | 1 |
Javascript | Javascript | add navigate proptype | b1be0425a55f584f8e97ca37ce2c3dd85ba65150 | <ide><path>client/src/components/Donation/DonateForm.js
<ide> const propTypes = {
<ide> handleProcessing: PropTypes.func,
<ide> isDonating: PropTypes.bool,
<ide> isSignedIn: PropTypes.bool,
<add> navigate: PropTypes.func.isRequired,
<ide> showLoading: PropTypes.bool.isRequired,
<ide> stripe: PropTypes.shape(... | 1 |
Javascript | Javascript | specify controller of a route via controllername | 1af8c0771a3ed3df1dfea428bdc132ac64bf5c79 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> Ember.Route = Ember.Object.extend({
<ide> @method setup
<ide> */
<ide> setup: function(context) {
<del> var controller = this.controllerFor(this.routeName, context);
<add> var controller = this.controllerFor(this.controllerName || this.routeName,... | 2 |
Javascript | Javascript | fix usage when we're given no options | 46d59fdda10f65b5647e935c571e3696ecbe5578 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide>
<ide> this._refreshingCount = 0
<ide>
<del> let {refreshOnWindowFocus} = options || true
<add> options = options || {}
<add>
<add> let {refreshOnWindowFocus = true} = options
<ide> if (refreshOnWindowFocus) {... | 1 |
Python | Python | add extra data | 1f6526cf52daa1364bbae5f4c286203b249a42b2 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _to_routers(self, obj):
<ide> return [self._to_router(router) for router in routers]
<ide>
<ide> def _to_router(self, obj):
<add> extra={}
<add> extra['external_gateway_info'] = obj['external_gateway_info']
<add> extra['routes'... | 2 |
Text | Text | add changelogs for crypto | d27c9834f32ceb55e434821d3f69316b34f851c5 | <ide><path>doc/api/crypto.md
<ide> Returns `this` for method chaining.
<ide> ### cipher.update(data[, input_encoding][, output_encoding])
<ide> <!-- YAML
<ide> added: v0.1.94
<add>changes:
<add> - version: v6.0.0
<add> pr-url: https://github.com/nodejs/node/pull/5522
<add> description: The default `input_encodin... | 1 |
Javascript | Javascript | improve property descriptors in als.bind | 3ea94ec84510f5ecd08b75e6e10ef7c5f5df4fe8 | <ide><path>lib/async_hooks.js
<ide> class AsyncResource {
<ide> const ret = this.runInAsyncScope.bind(this, fn);
<ide> ObjectDefineProperties(ret, {
<ide> 'length': {
<del> enumerable: true,
<add> configurable: true,
<add> enumerable: false,
<ide> value: fn.length,
<add> ... | 1 |
Ruby | Ruby | remove psych hack for ruby 1.9 | 185d7cdb429764c50fb62035fa918b7ba0a71fae | <ide><path>railties/lib/rails/application.rb
<ide> def helpers_paths #:nodoc:
<ide>
<ide> console do
<ide> unless ::Kernel.private_method_defined?(:y)
<del> if RUBY_VERSION >= '2.0'
<del> require "psych/y"
<del> else
<del> module ::Kernel
<del> def y(*objects)
<del>... | 1 |
PHP | PHP | remove @throws tag after removing exception | e73b6e3ac6060bd6cd7960caf7abd9b5310eebd5 | <ide><path>src/I18n/DateFormatTrait.php
<ide> public static function setJsonEncodeFormat($format): void
<ide> * @param string|int|int[]|null $format Any format accepted by IntlDateFormatter.
<ide> * @param \DateTimeZone|string|null $tz The timezone for the instance
<ide> * @return static|null
<del> *... | 1 |
PHP | PHP | fix import order | c521b76acfed6b755a4b261c54980800d536c044 | <ide><path>tests/TestCase/View/CellTest.php
<ide> namespace Cake\Test\TestCase\View;
<ide>
<ide> use Cake\Cache\Cache;
<del>use Cake\Http\ServerRequest;
<ide> use Cake\Http\Response;
<add>use Cake\Http\ServerRequest;
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\View\Cell;
<ide> use Cake\View\Exception\MissingCell... | 2 |
PHP | PHP | convert closures to arrow functions | 76e427ae10d6b7a3a6db02fb040805bfbced402f | <ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php
<ide> public function some($key, $operator = null, $value = null)
<ide> public function containsStrict($key, $value = null)
<ide> {
<ide> if (func_num_args() === 2) {
<del> return $this->contains(function ($item) use ($key, $va... | 1 |
Mixed | Ruby | add migrations_paths option to migration generator | b551a707552598bd0134a6ebecb076f0f7edeaa1 | <ide><path>activerecord/lib/rails/generators/active_record/migration.rb
<ide> def primary_key_type
<ide> end
<ide>
<ide> def db_migrate_path
<del> if defined?(Rails.application) && Rails.application
<add> if migrations_paths = options[:migrations_paths]
<add> migrations_pat... | 4 |
Javascript | Javascript | add an example | e812b9fa9ec7086ab8d64a32d86f6e991f84bc55 | <ide><path>src/ng/filter/filters.js
<ide> function jsonFilter() {
<ide> * @kind function
<ide> * @description
<ide> * Converts string to lowercase.
<add> *
<add> * See the {@link ng.uppercase uppercase filter documentation} for a functionally identical example.
<add> *
<ide> * @see angular.lowercase
<ide> */
<ide>... | 1 |
Javascript | Javascript | make .send() throw if message is undefined | 6df7bdd954efb817b50dafad7f90a1285c59c0c9 | <ide><path>lib/child_process.js
<ide> function setupChannel(target, channel) {
<ide> };
<ide>
<ide> target.send = function(message, sendHandle) {
<del> if (!target._channel) throw new Error('channel closed');
<add> if (typeof message === 'undefined') {
<add> throw new TypeError('message cannot be undefi... | 2 |
PHP | PHP | fix inflectedroute calling parent() incorrectly | e8c75f19102a9e86134f0baeb274a27984957687 | <ide><path>src/Routing/Route/InflectedRoute.php
<ide> class InflectedRoute extends Route
<ide> */
<ide> public function parse($url, $method = '')
<ide> {
<del> $params = parent::parse($url);
<add> $params = parent::parse($url, $method);
<ide> if (!$params) {
<ide> return f... | 4 |
Text | Text | add a changelog entry about web console inclusion | b4fd1e338b2c1ec2c501c0e1207a4f774ed6e30a | <ide><path>railties/CHANGELOG.md
<add>* Include `web-console` into newly generated applications' Gemfile.
<add>
<add> *Genadi Samokovarov*
<add>
<ide> * `rails server` will only extend the logger to output to STDOUT
<ide> in development environment.
<ide> | 1 |
Go | Go | optimize the rebroadcast for failure case | d6440c91394a0151a4db0325c728b9f894050a62 | <ide><path>libnetwork/networkdb/cluster.go
<ide> func (nDB *NetworkDB) reconnectNode() {
<ide> return
<ide> }
<ide>
<del> // Update all the local table state to a new time to
<del> // force update on the node we are trying to rejoin, just in
<del> // case that node has these in deleting state still. This is
<del> /... | 3 |
PHP | PHP | use negated filter for reject | f42a0244951ef71719839a5863847b8eadeca504 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function reduce($callback, $initial = null)
<ide> }
<ide>
<ide> /**
<del> * Create a colleciton of all elements that do not pass a given truth test.
<add> * Create a collection of all elements that do not pass a given truth test.
<ide> *
<ide> * @pa... | 1 |
Ruby | Ruby | drop runtime conditionals in parameter parsing | eb10496a1c3d9fe58b91aa0ec17d9f218738d5dc | <ide><path>actionpack/lib/action_dispatch/middleware/params_parser.rb
<ide> def initialize(message, original_exception)
<ide> end
<ide> end
<ide>
<del> DEFAULT_PARSERS = { Mime::JSON => :json }
<add> DEFAULT_PARSERS = {
<add> Mime::JSON => lambda { |raw_post|
<add> data = ActiveSupport::JSO... | 1 |
PHP | PHP | add method to register multiple components' | 7fc934449119483ae62263cc5cbd0900360812eb | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> public function check($name, ...$parameters)
<ide> * Register a class-based component alias directive.
<ide> *
<ide> * @param string $class
<del> * @param string $alias
<add> * @param string|null $alias
<ide> * @return vo... | 1 |
Python | Python | run length encoding | 50545d10c55859e3a3d792132ca6769f219bb130 | <ide><path>compression/run_length_encoding.py
<add># https://en.wikipedia.org/wiki/Run-length_encoding
<add>
<add>
<add>def run_length_encode(text: str) -> list:
<add> """
<add> Performs Run Length Encoding
<add> >>> run_length_encode("AAAABBBCCDAA")
<add> [('A', 4), ('B', 3), ('C', 2), ('D', 1), ('A', 2)]
... | 1 |
Text | Text | add v3.16.9 to changelog.md | 71f62351f501dba5c7a04a474e8c47c9bd73ddf9 | <ide><path>CHANGELOG.md
<ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message
<ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer
<ide>
<add>### v3.16.9 (July 29, 2020)
<add>
<add>- [#19... | 1 |
Python | Python | emit single warning for multiple dlls | b90cbbad4e0d3e31c7ae1e7cfdc1932c3ccb396b | <ide><path>numpy/core/__init__.py
<ide> DLL_filenames.append(filename)
<ide> if len(DLL_filenames) > 1:
<ide> import warnings
<del> warnings.warn("loaded more than 1 DLL from .libs:",
<add> warnings.warn("loaded more than 1 DLL from .libs:\n%s" %
<add> "\n".joi... | 1 |
Ruby | Ruby | fix rubocop errors re \xfc | 11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8 | <ide><path>actionview/test/template/template_test.rb
<ide> def test_text_template_does_not_html_escape
<ide> end
<ide>
<ide> def test_raw_template
<del> @template = new_template("<%= hello %>", :handler => ActionView::Template::Handlers::Raw.new)
<add> @template = new_template("<%= hello %>", handler: Action... | 1 |
Javascript | Javascript | correct a typo | ebff4c1fd23eaf5b784f842535c0ff508e58091b | <ide><path>src/ngMessages/messages.js
<ide> angular.module('ngMessages', [])
<ide> *
<ide> * @description
<ide> * `ngMessages` is a directive that is designed to show and hide messages based on the state
<del> * of a key/value object that is listens on. The directive itself compliments error message
<add... | 1 |
PHP | PHP | add another condition to test && fix indentation | d2b63766148b0792ae6d9a95c44c7b4dc5bf7663 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testBelongsToManyWithMixedData()
<ide> }
<ide>
<ide> /**
<del> * Test belongsToMany association with the ForceNewTarget to force saving
<add> * Test belongsToMany association with the ForceNewTarget to force saving
<ide> * new records o... | 1 |
PHP | PHP | remove unneeded code | 74b62bbbb32674dfa167e2812231bf302454e67f | <ide><path>src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php
<ide> protected function restoreCollection($value)
<ide> return new $collectionClass(
<ide> collect($value->id)->map(function ($id) use ($collection) {
<ide> return $collection[$id] ?? null;
<del> })... | 1 |
PHP | PHP | fix failing cookie test | e649ad07f25d4c55333c373b1e31bdcc7ca38bff | <ide><path>tests/TestCase/Http/Cookie/CookieCollectionTest.php
<ide> public function testAddFromResponse()
<ide> ]);
<ide> $response = (new Response())
<ide> ->withAddedHeader('Set-Cookie', 'test=value')
<del> ->withAddedHeader('Set-Cookie', 'expiring=soon; Expires=Wed, 09-Jun-202... | 1 |
Javascript | Javascript | use login over custom button | 456173f6779749ed3db4458293e75db33fd6b635 | <ide><path>client/src/components/Intro/Intro.test.js
<ide> /* global expect */
<ide> import React from 'react';
<ide> import renderer from 'react-test-renderer';
<del>// import ShallowRenderer from 'react-test-renderer/shallow';
<add>import { Provider } from 'react-redux';
<add>import { createStore } from '../../redux/... | 2 |
Javascript | Javascript | fix path of data.json | a6b9d76ee4acf0cb23107af3fb7d2edbb73e8154 | <ide><path>config/s3ProjectConfig.js
<ide> fileMap = function(revision,tag,date) {
<ide> "ember-runtime.js": fileObject("ember-runtime", ".js", "text/javascript", revision, tag, date),
<ide> "ember.min.js": fileObject("ember.min", ".js", "text/javascript", r... | 1 |
PHP | PHP | remove uneeded phpcs ignores | 191bdf171764d8d5fead4fa76f4505cf8ed6c991 | <ide><path>src/Collection/CollectionTrait.php
<ide> public function cartesianProduct(?callable $operation = null, ?callable $filter
<ide>
<ide> $currentIndexes[$lastIndex]++;
<ide>
<del> // phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterFirst
<ide> for (
<ide> ... | 11 |
Javascript | Javascript | reduce closures when resolving promises | 947337134363ac73ad5a27030797bdaa90f8b304 | <ide><path>src/ng/q.js
<ide> function $$QProvider() {
<ide> */
<ide> function qFactory(nextTick, exceptionHandler) {
<ide> var $qMinErr = minErr('$q', TypeError);
<del> function callOnce(self, resolveFn, rejectFn) {
<del> var called = false;
<del> function wrap(fn) {
<del> return function(value) {
<del> ... | 1 |
Python | Python | improve model variable naming - clip [tf] | 97e32b7854fc74e271863adc31b1bcee38e0b065 | <ide><path>src/transformers/models/clip/modeling_tf_clip.py
<ide> TFModelInputType,
<ide> TFPreTrainedModel,
<ide> get_initializer,
<del> input_processing,
<ide> keras_serializable,
<add> unpack_inputs,
<ide> )
<ide> from ...tf_utils import shape_list
<ide> from ...utils import logging
<ide> def s... | 1 |
Text | Text | remove repeated word in modules.md | 01e158c600d451bcbb3da4d276a9e61dcc84ebe4 | <ide><path>doc/api/modules.md
<ide> added: v13.7.0
<ide>
<ide> > Stability: 1 - Experimental
<ide>
<del>Helpers for for interacting with the source map cache. This cache is
<add>Helpers for interacting with the source map cache. This cache is
<ide> populated when source map parsing is enabled and
<ide> [source map in... | 1 |
PHP | PHP | update doc block | 672761ca3828220dee3279a8f630784ae68c9f2d | <ide><path>src/Illuminate/Support/Facades/Cache.php
<ide> * @method static bool missing(string $key)
<ide> * @method static mixed get(string $key, mixed $default = null)
<ide> * @method static mixed pull(string $key, mixed $default = null)
<del> * @method static bool put(string $key, $value, \DateTimeInterface|\Date... | 1 |
Javascript | Javascript | destroy the socket on parse error | ff7d053ae6b7f620516049e5c9bd1b6ab348835f | <ide><path>lib/_http_server.js
<ide> function socketOnError(e) {
<ide>
<ide> if (!this.server.emit('clientError', e, this)) {
<ide> if (this.writable) {
<del> this.end(badRequestResponse);
<del> return;
<add> this.write(badRequestResponse);
<ide> }
<ide> this.destroy(e);
<ide> }
<ide><pa... | 2 |
Mixed | Javascript | expose image cache interrogation to js | 69c889815e7dfede6503be7cb20c6515f503116e | <ide><path>Libraries/Image/Image.android.js
<ide> var Image = React.createClass({
<ide> abortPrefetch(requestId: number) {
<ide> ImageLoader.abortRequest(requestId);
<ide> },
<add>
<add> /**
<add> * Perform cache interrogation.
<add> *
<add> * @param urls the list of image URLs to check the... | 2 |
Javascript | Javascript | increase updatepreview delay | 02753514903ee304bb4dbf51a09e39ef84de6a84 | <ide><path>client/commonFramework/update-preview.js
<ide> window.common = (function(global) {
<ide> return Observable.fromCallback($(preview).ready, $(preview))()
<ide> .first()
<ide> // delay is need here for first initial run
<del> .delay(50);
<add> .delay(100);
<ide> ... | 1 |
PHP | PHP | fix cs - psr12 | 4d1e628624ca523cbe62d80c38d392b4aeb22f97 | <ide><path>tests/TestCase/Auth/Storage/MemoryStorageTest.php
<ide> public function setUp()
<ide> {
<ide> parent::setUp();
<ide>
<del> $this->storage = new MemoryStorage;
<add> $this->storage = new MemoryStorage();
<ide> $this->user = ['username' => 'giantGummyLizard'];
<ide> }
<id... | 46 |
Javascript | Javascript | remove dead code | fe0af2c073a2a59d3c25bad83bb55b9354110ae4 | <ide><path>src/AngularPublic.js
<ide> $$TestabilityProvider,
<ide> $TimeoutProvider,
<ide> $$RAFProvider,
<del> $$AsyncCallbackProvider,
<ide> $WindowProvider,
<ide> $$jqLiteProvider,
<ide> $$CookieReaderProvider
<ide> function publishExternalAPI(angular) {
<ide> $timeout: $TimeoutProvider,
<ide> ... | 3 |
Ruby | Ruby | simplify post-install audit output | b46ebf8a29d9ac150895f426cbcf9a78359709ec | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def quote_dep(dep)
<ide> Symbol === dep ? dep.inspect : "'#{dep}'"
<ide> end
<ide>
<del> def audit_check_output warning_and_description
<del> return unless warning_and_description
<del> warning, description = *warning_and_description
<del> problem "#{warni... | 3 |
Python | Python | add user options for compilers in scons command | cc9799e0981534cbb40ac6075bcefd90bdefdb87 | <ide><path>numpy/distutils/command/scons.py
<ide> class scons(old_build_ext):
<ide> ('package-list=', None,
<ide> 'If specified, only run scons on the given '\
<ide> 'packages (example: --package-list=scipy.cluster). If empty, '\
<del> '... | 1 |
Mixed | Javascript | upgrade pbkdf2 without digest to an error | 9f74184e98020eb71060ee38c2b3d649ad299bb6 | <ide><path>doc/api/deprecations.md
<ide> to the `constants` property exposed by the relevant module. For instance,
<ide> <a id="DEP0009"></a>
<ide> ### DEP0009: crypto.pbkdf2 without digest
<ide>
<del>Type: Runtime
<add>Type: End-of-life
<ide>
<del>Use of the [`crypto.pbkdf2()`][] API without specifying a digest is d... | 5 |
Javascript | Javascript | introduce `visit(ast, visitor)` utility | 898f73deef5bdf0e87a9f3d8d4f0f3b1d20f87bb | <ide><path>packages/react-native-codegen/src/parsers/flow/index.js
<ide> const {buildComponentSchema} = require('./components');
<ide> const {wrapComponentSchema} = require('./components/schema');
<ide> const {buildModuleSchema} = require('./modules');
<ide> const {wrapModuleSchema} = require('./modules/schema');
<del>... | 3 |
PHP | PHP | remove multiple empty lines | c428da92979bd7f0367a18e5b55146592a2c9c51 | <ide><path>src/Cache/CacheEngine.php
<ide> abstract public function decrement($key, $offset = 1);
<ide> */
<ide> abstract public function delete($key);
<ide>
<del>
<ide> /**
<ide> * Delete all keys from the cache
<ide> *
<ide><path>src/Controller/Component/SecurityComponent.php
<ide> protected f... | 29 |
PHP | PHP | fix a bunch of things | e509b3958dde4fbe8454edc79c6870f60a1082e9 | <ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
<ide> public function auth($request)
<ide> public function validAuthenticationResponse($request, $result)
<ide> {
<ide> if (Str::startsWith($request->channel_name, 'private')) {
<del> return $this->decodedPusherResponse... | 1 |
PHP | PHP | fix failing tests | 6d0e033663a3002c124eeb8cb7c849b8839f5292 | <ide><path>lib/Cake/Test/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testViewClassMap() {
<ide> $this->assertEquals($expected, $result);
<ide>
<ide> $this->RequestHandler->renderAs($this->Controller, 'json');
<del> $this->assertEquals('CustomJson', $this->Controller->viewCl... | 1 |
Python | Python | use lamportclock from kombu.clocks instead | 007804e8c96a59fc75727aa66eae1ad47b39cbc4 | <ide><path>celery/app/base.py
<ide> from functools import wraps
<ide> from threading import Lock
<ide>
<add>from kombu.clocks import LamportClock
<add>
<ide> from .. import datastructures
<ide> from .. import platforms
<ide> from ..utils import cached_property, instantiate, lpmerge
<ide> settings -> transport:%(transp... | 1 |
Javascript | Javascript | convert chain watchers to use arrays | c4bdb77f4625fb134686b8aa52c8ec6a7baaa3a0 | <ide><path>packages/ember-metal/lib/watching.js
<ide> function addChainWatcher(obj, keyName, node) {
<ide> nodes = m.chainWatchers = { __emberproto__: obj };
<ide> }
<ide>
<del> if (!nodes[keyName]) { nodes[keyName] = {}; }
<del> nodes[keyName][guidFor(node)] = node;
<add> if (!nodes[keyName]) { nodes[keyName... | 2 |
Python | Python | fix runtests --benchmark-compare in python 3 | 3eac0cf37869aca0f4cf91f5ae703e63c6a97bbc | <ide><path>runtests.py
<ide> def main(argv):
<ide>
<ide> # Fix commit ids (HEAD is local to current repo)
<ide> out = subprocess.check_output(['git', 'rev-parse', commit_b])
<del> commit_b = out.strip()
<add> commit_b = out.strip().decode('ascii')
<ide>
<ide> ... | 1 |
Java | Java | update copyright header | 48e834dfd1f5158913c44fcc40081f0d0d9cb370 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/AsyncWebRequestInterceptor.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<... | 1 |
Javascript | Javascript | add detox tests for textinput | fb5d95177b0771d4bb1b4d8ddab8054e6d653903 | <ide><path>RNTester/e2e/__tests__/TextInput-test.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @emails oncall+react_native
<add> * @forma... | 2 |
Ruby | Ruby | eliminate a ruby warning in a test in action view | 08eafc9646aa05e1c3408a9d32a26deb7d2c8fa0 | <ide><path>actionview/test/template/form_helper_test.rb
<ide> def test_inputs_use_before_type_cast_to_retain_information_from_validations_like
<ide> end
<ide>
<ide> def test_inputs_dont_use_before_type_cast_when_value_did_not_come_from_user
<del> def @post.id_came_from_user?; false; end
<add> class << @post
... | 1 |
PHP | PHP | update error message | 421eff96029398e7fa9cb20deefe4c8ea5c74037 | <ide><path>src/Mailer/Mailer.php
<ide> public function getTransport(): AbstractTransport
<ide> {
<ide> if ($this->transport === null) {
<ide> throw new BadMethodCallException(
<del> 'Transport was not defined. You must set on using setTransport() or set `transport` option in profi... | 1 |
Text | Text | fix typo in changelog_v6.md | c79b08136776c82411720d8f211675057e996d77 | <ide><path>doc/changelogs/CHANGELOG_V6.md
<ide> </tr>
<ide> <tr>
<ide> <td valign="top">
<del><a href="#6.10.1">6.10.2</a><br/>
<add><a href="#6.10.2">6.10.2</a><br/>
<ide> <a href="#6.10.1">6.10.1</a><br/>
<ide> <a href="#6.10.0">6.10.0</a><br/>
<ide> <a href="#6.9.5">6.9.5</a><br/> | 1 |
PHP | PHP | update docblock for php analyses | f294134e2404dca84db92efa193ba574174cef30 | <ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php
<ide> public function __construct($resource)
<ide> /**
<ide> * Create a new resource instance.
<ide> *
<del> * @param dynamic $parameters
<add> * @param mixed $parameters
<ide> * @return static
<ide> */
<ide> public s... | 1 |
Ruby | Ruby | fix lots of code highlighting issues | a07f2ace036e86060305d2ac0ad1a15950e2c932 | <ide><path>actioncable/lib/action_cable/remote_connections.rb
<ide> module ActionCable
<ide> # it uses the internal channel that all of these servers are subscribed to.
<ide> #
<ide> # By default, server sends a "disconnect" message with "reconnect" flag set to true.
<del> # You can override it by specifying the... | 9 |
Javascript | Javascript | give an id to each gitrepository | ce105ab9140302de496130e9079fb3b9e9fc91b5 | <ide><path>src/git-repository.js
<ide> const fs = require('fs-plus')
<ide> const path = require('path')
<ide> const GitUtils = require('git-utils')
<ide>
<add>let nextId = 0
<add>
<ide> // Extended: Represents the underlying git operations performed by Atom.
<ide> //
<ide> // This class shouldn't be instantiated direc... | 1 |
Python | Python | extend list of stopwords for ru language | aa93b471a1cadb661c063dee4913ad8f2e492d48 | <ide><path>spacy/lang/ru/stop_words.py
<ide> STOP_WORDS = set(
<ide> """
<del>а
<add>а авось ага агу аж ай али алло ау ах ая
<ide>
<del>будем будет будете будешь буду будут будучи будь будьте бы был была были было
<del>быть
<add>б будем будет будете будешь буду будут будучи будь будьте бы был была были было
<add>б... | 1 |
Ruby | Ruby | skip another test when arconn=sqlite3_mem | b8bd24d93825684e2311d085266cf66b4fb45368 | <ide><path>activerecord/test/cases/migration/foreign_key_test.rb
<ide> def test_schema_dumping_with_defferable_initially_immediate
<ide> end
<ide>
<ide> def test_does_not_create_foreign_keys_when_bypassed_by_config
<del> connection = ActiveRecord::Base.establish_connection(
<del> {
... | 1 |
Ruby | Ruby | fix comment syntax | 9e8592c2170a436af58f6459480b5281e8ad809b | <ide><path>railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
<ide> class ResourceRouteGenerator < NamedBase # :nodoc:
<ide> # should give you
<ide> #
<ide> # namespace :admin do
<del> # namespace :users
<add> # namespace :users do
<ide> # re... | 1 |
PHP | PHP | update typehints for form/ | cfb5bcf32c5a01f300baf8ea071afd241f7b37a6 | <ide><path>src/Form/Form.php
<ide> public function validate(array $data): bool
<ide> *
<ide> * @return array Last set validation errors.
<ide> */
<del> public function getErrors()
<add> public function getErrors(): array
<ide> {
<ide> return $this->_errors;
<ide> }
<ide><path>src/Fo... | 2 |
PHP | PHP | fix collection check | ba32303ad004b05850afb7b230fa81df34291b0a | <ide><path>src/View/Form/EntityContext.php
<ide> protected function _prepare(): void
<ide> $table = $this->_context['table'];
<ide> /** @var \Cake\Datasource\EntityInterface|iterable $entity */
<ide> $entity = $this->_context['entity'];
<add>
<add> $this->_isCollection = is_iterable($enti... | 2 |
Go | Go | remove graphdriver indexing by os (used for lcow) | 076d9c60373d90284005ce363572995c539396fb | <ide><path>daemon/daemon.go
<ide> var (
<ide>
<ide> // Daemon holds information about the Docker daemon.
<ide> type Daemon struct {
<del> ID string
<del> repository string
<del> containers container.Store
<del> containersReplica container.ViewDB
<del> execCommands *exec.Store
<del> im... | 2 |
Javascript | Javascript | pass persisted window sessions as folderstoopen | 1ecff536c7ad683dbcdbe082190ca4b298b93b46 | <ide><path>src/main-process/atom-application.js
<ide> class AtomApplication extends EventEmitter {
<ide> const {
<ide> pathsToOpen,
<ide> executedFrom,
<add> foldersToOpen,
<ide> urlsToOpen,
<ide> benchmark,
<ide> benchmarkTest,
<ide> class AtomApplication extends EventEmitter {
<... | 1 |
PHP | PHP | remove unused variable | e121c1a6886113cd5a5ac8968160928cc02b972f | <ide><path>src/Illuminate/View/ViewServiceProvider.php
<ide> public function registerViewFinder()
<ide> */
<ide> public function registerEnvironment()
<ide> {
<del> $me = $this;
<del>
<del> $this->app['view'] = $this->app->share(function($app) use ($me)
<add> $this->app['view'] = $this->app->share(function($app)... | 1 |
Java | Java | avoid npe against null value from tostring call | ac581bed92181ce8ddfe629e94629a52e3dc972a | <ide><path>spring-core/src/main/java/org/springframework/core/log/LogFormatUtils.java
<ide> import org.apache.commons.logging.Log;
<ide>
<ide> import org.springframework.lang.Nullable;
<add>import org.springframework.util.ObjectUtils;
<ide>
<ide> /**
<ide> * Utility methods for formatting and logging messages.
<ide>... | 1 |
Text | Text | fix broken url caused in docs | 22f91bb355d7744ce35b73443035591e553e9093 | <ide><path>docs/advanced-features/codemods.md
<ide> export default withRouter(
<ide> )
<ide> ```
<ide>
<del>This is just one case. All the cases that are transformed (and tested) can be found in the [`__testfixtures__` directory](./transforms/__testfixtures__/url-to-withrouter).
<add>This is just one case. All the cas... | 1 |
Ruby | Ruby | improve documentation of local_assigns | 02b955766e5094c1f0afac04f415632e0463eea8 | <ide><path>actionview/lib/action_view/template.rb
<ide> class Template
<ide> # expected_encoding
<ide> # )
<ide>
<add> ##
<add> # :method: local_assigns
<add> #
<add> # Returns a hash with the defined local variables.
<add> #
<add> # Given this sub template rendering:
<add> #
<ad... | 1 |
Ruby | Ruby | add a finalizer to inline templates | 52eafbd7495367aa48192100a922181d097e5b22 | <ide><path>actionview/lib/action_view/renderer/template_renderer.rb
<ide> def determine_template(options)
<ide> else
<ide> @lookup_context.formats.first
<ide> end
<del> Template.new(options[:inline], "inline template", handler, locals: keys, format: format)
<add> Templa... | 3 |
Python | Python | add a flag to clear without confirmation | 40f1a85850a4946d4db9b9380b663667e7b2788d | <ide><path>airflow/bin/cli.py
<ide> def clear(args):
<ide> end_date=args.end_date,
<ide> only_failed=args.only_failed,
<ide> only_running=args.only_running,
<del> confirm_prompt=True)
<add> confirm_prompt=not args.no_confirm)
<ide>
<ide>
<ide> def webserver(args):
<ide> def get_p... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.