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 | fix exception in date time widget | 16c157f22ffeb2cdc376b9ce2866e098a0d81acd | <ide><path>src/View/Widget/DateTime.php
<ide> public function render(array $data, ContextInterface $context) {
<ide> continue;
<ide> }
<ide> if (!is_array($data[$select])) {
<del> throw \RuntimeException(sprintf(
<add> throw new \RuntimeException(sprintf(
<ide> 'Options for "%s" must be an array|fa... | 1 |
Ruby | Ruby | add loadingmodule.clear! back temporarily | 6d7b0374d12de2ddeaa9c3f896234111ed6bf8e2 | <ide><path>activesupport/lib/active_support/dependencies.rb
<ide> def const_load!(name, file_name = nil)
<ide> def const_available?(name)
<ide> self.const_defined?(name) || load_paths.any? {|lp| lp.filesystem_path(path + [name])}
<ide> end
<add>
<add> # Erase all items in this module
<add> def c... | 2 |
PHP | PHP | refactor the auth class and its comments | 4c243f3a99b3e9d178e1648a6343a724413d5991 | <ide><path>system/auth.php
<ide> class Auth {
<ide> * Typically, the user should be accessed via the "user" method.
<ide> *
<ide> * @var object
<del> * @see user()
<ide> */
<ide> public static $user;
<ide>
<ide> class Auth {
<ide> * Determine if the current user of the application is authenticated.
<ide> ... | 1 |
Javascript | Javascript | upgrade occurrenceorderplugin to es6 | 126eb9158a0772246e461769a2ce302052fab9cb | <ide><path>lib/optimize/OccurrenceOrderPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function OccurrenceOrderPlugin(preferEntry) {
<del> if(preferEntry !== undefined && typeof preferEntry !== "boolean") {
<del> throw new Error("Argumen... | 1 |
PHP | PHP | move alias wrapping into _formataddress() | 0207a61e9ba357219740cdf716a75f17419572bf | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> protected function _formatAddress($address) {
<ide> if ($email === $alias) {
<ide> $return[] = $email;
<ide> } else {
<add> if (strpos($alias, ',') !== false) {
<add> $alias = '"' . $alias . '"';
<add> }
<ide> $return[] = sprintf('%s <%s>', $... | 2 |
Text | Text | add example to require ordering section | e03a7c336dc009ec62d142b85574ee8d0f24ba7b | <ide><path>CONTRIBUTING.md
<ide> * Commit messages are in the present tense
<ide> * Files end with a newline.
<ide> * Requires should be in the following order:
<del> * Node Modules
<del> * Built in Atom and Atom Shell modules
<del> * Local Modules (using relative links)
<add> * Built in Node Modules ... | 1 |
Go | Go | fix platform type | 81f862a1fe6f24fea70b1278a4292eefc4029a03 | <ide><path>api/server/router/build/build_routes.go
<ide> func newImageBuildOptions(ctx context.Context, r *http.Request) (*types.ImageBui
<ide> options.RemoteContext = r.FormValue("remote")
<ide> if versions.GreaterThanOrEqualTo(version, "1.32") {
<ide> apiPlatform := r.FormValue("platform")
<del> if len(strings.T... | 5 |
Python | Python | allow type uint64 for eye() arguments | f9355942f6ef7c5d27691c4571096234efb67a2b | <ide><path>numpy/lib/tests/test_twodim_base.py
<ide> def test_basic(self):
<ide> assert_equal(eye(3) == 1,
<ide> eye(3, dtype=bool))
<ide>
<add> def test_uint64(self):
<add> # Regression test for gh-9982
<add> assert_equal(eye(np.uint64(2), dtype=int), array([[1, 0], [0, 1... | 2 |
Ruby | Ruby | finish custom handling [dhh] | 6dea52c54e272b4592d1d157c8626003b03fcac1 | <ide><path>actionpack/lib/action_controller/mime_responds.rb
<ide> module InstanceMethods
<ide> # and accept Rails' defaults, life will be much easier.
<ide> def respond_to(*types, &block)
<ide> raise ArgumentError, "respond_to takes either types or a block, never bot" unless types.any? ^ block
<del... | 2 |
Mixed | Go | fix rootless detection (alternative to ) | 3518383ed990202d93e5458782d2c975c48ececd | <ide><path>cmd/dockerd/config_common_unix.go
<ide> import (
<ide> "github.com/docker/docker/daemon/config"
<ide> "github.com/docker/docker/opts"
<ide> "github.com/docker/docker/pkg/homedir"
<del> "github.com/docker/docker/rootless"
<ide> "github.com/spf13/pflag"
<ide> )
<ide>
<ide> func getDefaultPidFile() (string... | 8 |
Text | Text | remove chris dickinson from active releasers | 56f4f09aa8ca1386661fe4c85c02cb2d3ca9366f | <ide><path>README.md
<ide> project.
<ide>
<ide> Releases of Node.js and io.js will be signed with one of the following GPG keys:
<ide>
<del>* **Chris Dickinson** <christopher.s.dickinson@gmail.com>
<del>`9554F04D7259F04124DE6B476D5A82AC7E37093B`
<ide> * **Colin Ihrig** <cjihrig@gmail.com>
<ide> `94AE36675... | 1 |
Mixed | Python | add header and fix command | cd40f6564e5ffb81263de6afd4a531b84ad7eeba | <ide><path>examples/adversarial/README.md
<ide> export HANS_DIR=path-to-hans
<ide> export MODEL_TYPE=type-of-the-model-e.g.-bert-roberta-xlnet-etc
<ide> export MODEL_PATH=path-to-the-model-directory-that-is-trained-on-NLI-e.g.-by-using-run_glue.py
<ide>
<del>python examples/adversarial/test_hans.py \
<add>python run_h... | 2 |
PHP | PHP | add failing test for date_format and before/after | b929969bac9354f5a77116bea518da9ea99c2a4f | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function testBeforeAndAfterWithFormat()
<ide> $v = new Validator($trans, array('start' => '31/12/2012', 'ends' => '31/12/2000'), array('start' => 'date_format:d/m/Y|before:ends', 'ends' => 'date_format:d/m/Y|after:start'));
<ide> $this->assertTrue... | 1 |
Python | Python | set version to v3.0.0.dev12 | 67928036f2e12e886fe6f4334393d53ffedfedb2 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.0.0.dev11"
<add>__version__ = "3.0.0.dev12"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp... | 1 |
Python | Python | fix lint errors | 9980d03a4edafd92606d0ec762ee786a8c7f590d | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def __init__(self, *args, **kwargs):
<ide> # We run the init once to get the Glance V2 API connection
<ide> # and put that on the object under self.image_connection.
<ide> self._ex_force_base_url = str(kwargs.pop('ex_force_image_url',
<del> ... | 1 |
Python | Python | add cinder support libcloud-874 | bd8318b53676f84e91ed775dc174545f00ac834b | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def _v2_1337_volumes_detail(self, method, url, body, headers):
<ide> def _v2_1337_volumes(self, method, url, body, headers):
<ide> if method == 'POST':
<ide> body = self.fixtures.load('_v2_0__volume.json')
<del> return (httplib.... | 1 |
PHP | PHP | fixate the sort for an association | efdcef56cad818df01c8eb291bead6a267e405f5 | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testHasManyEagerLoadingFromSecondaryTable($strategy)
<ide> $article = TableRegistry::get('articles');
<ide> $post = TableRegistry::get('posts');
<ide>
<del> $author->hasMany('posts', compact('strategy'));
<add> $author->has... | 1 |
Text | Text | update changelog for 0.68.1 | e331b64ea666c635c768a95bb3b310b887f86582 | <ide><path>CHANGELOG.md
<ide> # Changelog
<ide>
<add>## v0.68.1
<add>
<add>### Changed
<add>
<add>#### Android specific
<add>
<add>- Bump React Native Gradle plugin to 0.0.6 ([9573d7b84d](https://github.com/facebook/react-native/commit/9573d7b84d35233fbb39a4067cfef65490aa34a7) by [@cortinico](https://github.com/cortin... | 1 |
PHP | PHP | fix unstable test | e5c49792fec134ac22df3f670c149c5a986470a2 | <ide><path>tests/TestCase/Network/Http/Adapter/StreamTest.php
<ide> public function stream_open($path, $mode, $options, &$openedPath)
<ide> }
<ide>
<ide> $this->_stream = fopen('php://memory', 'rb+');
<del> fwrite($this->_stream, str_repeat('x', 10000));
<add> fwrite($this->_stream, str_r... | 1 |
Javascript | Javascript | fix typographical error | 5b8b92499550aa5d48254237ca3cff5642d5dcca | <ide><path>test/parallel/test-http-agent-timeout.js
<ide> const http = require('http');
<ide> }
<ide>
<ide> {
<del> // Ensure that timeouted sockets are not reused.
<add> // Ensure that timed-out sockets are not reused.
<ide>
<ide> const agent = new http.Agent({ keepAlive: true, timeout: 50 });
<ide>
<ide><path>... | 2 |
Text | Text | update one more command in crypto.md | 5efbe4c1e8f9baf4251c40c52ca9452d8f7416ce | <ide><path>doc/api/crypto.md
<ide> Optional `options` argument controls stream behavior.
<ide>
<ide> The `algorithm` is dependent on the available algorithms supported by the
<ide> version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
<del>On recent releases of OpenSSL, `openssl list-message-di... | 1 |
Mixed | Javascript | add prependlistener() and prependoncelistener() | 0e7d57af3573b4dcba81217bba2f041dbdc173dc | <ide><path>doc/api/events.md
<ide> console.log(util.inspect(server.listeners('connection')));
<ide>
<ide> ### emitter.on(eventName, listener)
<ide>
<add>* `eventName` {string|Symbol} The name of the event.
<add>* `listener` {Function} The callback function
<add>
<ide> Adds the `listener` function to the end of the li... | 4 |
Ruby | Ruby | use only strings in env.x11 | 28c1c4ee15acb6c3a7e7c8bad855e66d9d49b585 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def libxml2
<ide>
<ide> def x11
<ide> # There are some config scripts here that should go in the PATH
<del> append_path 'PATH', MacOS::X11.bin
<add> append_path "PATH", MacOS::X11.bin.to_s
<ide>
<ide> # Append these to PKG_CONFIG_LIBDIR so they are s... | 1 |
Ruby | Ruby | add subscriber to actionmailer | 2a6bc1263e99060897b53a8c806916d198eab572 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def method_missing(method_symbol, *parameters) #:nodoc:
<ide> # end
<ide> # end
<ide> def receive(raw_email)
<del> logger.info "Received mail:\n #{raw_email}" unless logger.nil?
<ide> mail = Mail.new(raw_email)
<del> n... | 5 |
Text | Text | add anonrig to collaborators | bda460df9403cd749ca93d11f1cb067c764dcdd0 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Anna Henningsen** <<anna@addaleax.net>> (she/her)
<ide> * [aduh95](https://github.com/aduh95) -
<ide> **Antoine du Hamel** <<duhamelantoine1995@gmail.com>> (he/him)
<add>* [anonrig](https://github.com/anonrig) -
<add... | 1 |
Python | Python | return none when not masking embedding | 42497d9fda537b5abc70088bfd3656fc92b5c9ab | <ide><path>keras/layers/embeddings.py
<ide> def __init__(self, input_dim, output_dim, init='uniform',
<ide> def get_output_mask(self, train=None):
<ide> X = self.get_input(train)
<ide> if not self.mask_zero:
<del> return T.ones_like(X)
<add> return None
<ide> else:
<ide... | 1 |
Javascript | Javascript | add tests for noop enaled and cancel methods | 97a1b399b727ebb7f5c4b3ae690c4641731943df | <ide><path>src/ng/animate.js
<ide> var $AnimateProvider = ['$provide', function($provide) {
<ide> // only serve one instance of a promise in order to save CPU cycles
<ide> if (!currentDefer) {
<ide> currentDefer = $$q.defer();
<del> currentDefer.promise.cancel = noop; //ngAnimate.$animate pro... | 2 |
Python | Python | remove distutils usages for python 3.10 | e4888a061f2f657a3329786a68beca9f824b2f8e | <ide><path>airflow/configuration.py
<ide> # Ignored Mypy on configparser because it thinks the configparser module has no _UNSET attribute
<ide> from configparser import _UNSET, ConfigParser, NoOptionError, NoSectionError # type: ignore
<ide> from json.decoder import JSONDecodeError
<del>from typing import Any, Dict, ... | 8 |
PHP | PHP | remove the stub method for quoteidentifier() | 74ed30a5630e3899340ead8781a4e14e93a24d67 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public function testConstructConnectsDriver()
<ide> protected function _getMockedDriver()
<ide> {
<ide> $driver = new \Cake\Database\Driver\Mysql();
<del> $mock = $this->getMock('FakePdo', ['quote', 'quoteIdentifier']);
<add> ... | 4 |
Java | Java | fix bug in staticlistablebeanfactory.issingleton() | 7a31885ae50ec81fc97cf22da9ab51f34d7619a2 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 2 |
Javascript | Javascript | add type check to depthtexture | 62923d60fdfed65dad7486fca25bc799d9ce8e60 | <ide><path>src/renderers/webgl/WebGLTextures.js
<ide> * @author mrdoob / http://mrdoob.com/
<ide> */
<ide>
<del>import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, FloatType, HalfFloatType, ClampToEdgeWrapping, NearestMipMapLinearFilter, NearestMipMapNearestFilter } from '..... | 2 |
PHP | PHP | remove middleware interface | caa166f5d6ded18f2d3f11612433e90f5a1150e9 | <ide><path>app/Http/Middleware/Authenticate.php
<ide>
<ide> use Closure;
<ide> use Illuminate\Contracts\Auth\Guard;
<del>use Illuminate\Contracts\Routing\Middleware;
<ide>
<del>class Authenticate implements Middleware {
<add>class Authenticate {
<ide>
<ide> /**
<ide> * The Guard implementation.
<ide><path>app/Htt... | 2 |
Ruby | Ruby | remove full stop from the "skipping" comment | 7542c4edb73fdfee00070d8dd6980d58141eca48 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def create_issue_comment(body)
<ide> url = "#{API_URL}/repos/#{user}/#{repo}/issues/#{pr}/comments"
<ide> data = { "body" => body }
<ide> if issue_comment_exists?(user, repo, pr, body)
<del> ohai "Skipping: identical comment exists on #{PR_ENV}."
<add> ... | 1 |
Ruby | Ruby | add audit for checksum | 8717f82b9d7d3a05e7411a12434551474d4212f1 | <ide><path>Library/Homebrew/resource_auditor.rb
<ide> def initialize(resource, spec_name, options = {})
<ide> def audit
<ide> audit_version
<ide> audit_download_strategy
<add> audit_checksum
<ide> audit_urls
<ide> self
<ide> end
<ide> def audit_download_strategy
<ide> problem ... | 2 |
Ruby | Ruby | make testqueuetest work with marshalling queue | b44104ae1357f0177056e833d7cd1e0abaa5c759 | <ide><path>railties/test/queueing/test_queue_test.rb
<ide> require 'rails/queueing'
<ide>
<ide> class TestQueueTest < ActiveSupport::TestCase
<del> class Job
<del> def initialize(&block)
<del> @block = block
<del> end
<add> def setup
<add> @queue = Rails::Queueing::TestQueue.new
<add> end
<ide>
<add>... | 1 |
Javascript | Javascript | create cdn archives in the build script | 47f56f1612b907ec9eaa7111c7af66d335279fa2 | <ide><path>build/release.js
<ide> var fs = require("fs"),
<ide>
<ide> var releaseVersion,
<ide> nextVersion,
<del> CDNFiles,
<ide> isBeta,
<ide> pkg,
<ide> branch,
<ide> var releaseVersion,
<ide> // "jquery-latest.js": devFile,
<ide> // "jquery-latest.min.js": minFile,
<ide> // "jquery-latest.min.map": mapFile
... | 1 |
Ruby | Ruby | handle broken encoding in `#write_query?` | b629a5bc42396fe81fdc0aa02dbfba04fb61d62d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def self.type_cast_config_to_boolean(config)
<ide> def self.build_read_query_regexp(*parts) # :nodoc:
<ide> parts += DEFAULT_READ_QUERY
<ide> parts = parts.map { |part| /#{part}/i }
<del> /\A(?:[(\s]|#{C... | 5 |
Go | Go | add hostname to the container environment | 05219d6b52d8448fdad72f89b192d61480483aff | <ide><path>container.go
<ide> func (container *Container) Start(hostConfig *HostConfig) error {
<ide> "-e", "HOME=/",
<ide> "-e", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
<ide> "-e", "container=lxc",
<add> "-e", "HOSTNAME="+container.Config.Hostname,
<ide> )
<ide>
<ide> for _, elem... | 1 |
Go | Go | use gorp.get() instead of gorp.select() | 07b6bc3fc738ab3a27e9760b0efc57c78d7f98af | <ide><path>fs/store.go
<ide> func (store *Store) List(pth string) ([]*Image, error) {
<ide> }
<ide>
<ide> func (store *Store) Get(id string) (*Image, error) {
<del> images, err := store.orm.Select(Image{}, "select * from images where Id=?", id)
<del> if err != nil {
<del> return nil, err
<del> }
<del> if len(images) ... | 1 |
Python | Python | modernize tokenizer tests for emoticons | ee6b49b293279d14466744debc3392081f6da4ec | <ide><path>spacy/tests/tokenizer/test_emoticons.py
<ide> from __future__ import unicode_literals
<add>
<ide> import pytest
<ide>
<ide>
<del>def test_tweebo_challenge(en_tokenizer):
<add>def test_tokenizer_handles_emoticons(en_tokenizer):
<add> # Tweebo challenge (CMU)
<ide> text = u""":o :/ :'( >:o (: :) >.< X... | 1 |
Java | Java | register custom before default codecs | 49388315751160b1801a5063d665b5b1381f8555 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/support/BaseCodecConfigurer.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * ... | 2 |
PHP | PHP | remove unneeded code | 893c21613eaa9e7836daddca5b2bc044a0281710 | <ide><path>src/Core/Configure.php
<ide> public static function dump($key, $config = 'default', $keys = [])
<ide> if (!$engine) {
<ide> throw new Exception(sprintf('There is no "%s" config engine.', $config));
<ide> }
<del> if (!method_exists($engine, 'dump')) {
<del> throw ... | 1 |
Text | Text | update layouts and rendering in rails [ci skip] | a52e2bed8634531272018a4ae7ba389e1feebdf5 | <ide><path>guides/source/layouts_and_rendering.md
<ide> If we want to display the properties of all the books in our view, we can do so
<ide> <h1>Listing Books</h1>
<ide>
<ide> <table>
<del> <tr>
<del> <th>Title</th>
<del> <th>Summary</th>
<del> <th></th>
<del> <th></th>
<del> <th></th>
<del> </tr>
<d... | 1 |
Ruby | Ruby | reduce dependency expansion computations | 96670cedb2e84f4f741c514d0b1c3e15ef3106eb | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def check_conflicts
<ide> # Compute and collect the dependencies needed by the formula currently
<ide> # being installed.
<ide> def compute_dependencies
<del> req_map, req_deps = expand_requirements
<del> check_requirements(req_map)
<del> expand_depe... | 1 |
Ruby | Ruby | add standard meson args | f8536d0b5bffaafa0f317c1e3526cb01d6112b10 | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cabal_v2_args
<ide> ["--jobs=#{ENV.make_jobs}", "--max-backjumps=100000", "--install-method=copy", "--installdir=#{bin}"]
<ide> end
<ide>
<add> # Standard parameters for meson builds.
<add> def std_meson_args
<add> ["--prefix=#{prefix}", "--libdir=#{lib}"... | 2 |
PHP | PHP | remove dead catch blocks | ab8eac7bc2853b443c3986e19fdbe9701613d212 | <ide><path>src/Error/ErrorHandler.php
<ide> protected function _displayException($exception)
<ide> $this->_sendResponse($response);
<ide> } catch (Throwable $exception) {
<ide> $this->_logInternalError($exception);
<del> } catch (Exception $exception) {
<del> $this->_lo... | 2 |
Go | Go | move layer mount refcounts to mountedlayer | 65d79e3e5e537039b244afd7eda29e721a93d84f | <ide><path>daemon/commit.go
<ide> func (daemon *Daemon) exportContainerRw(container *container.Container) (archive
<ide>
<ide> archive, err := container.RWLayer.TarStream()
<ide> if err != nil {
<add> daemon.Unmount(container) // logging is already handled in the `Unmount` function
<ide> return nil, err
<ide> }
... | 14 |
Javascript | Javascript | remove extra space | 60033b7db1eb7bf542a46df420f26ebadd920204 | <ide><path>spec/config-file-spec.js
<ide> describe('ConfigFile', () => {
<ide> })
<ide> })
<ide>
<del> describe('when the file is updated with invalid CSON', () => {
<add> describe('when the file is updated with invalid CSON', () => {
<ide> it('notifies onDidError observers', async () => {
<ide> con... | 1 |
Javascript | Javascript | change the format of textcontent to be an array | 668c2867d473ff95e3f7124215e57ade489eec2d | <ide><path>src/evaluator.js
<ide> var PartialEvaluator = (function PartialEvaluatorClosure() {
<ide>
<ide> getTextContent: function partialEvaluatorGetIRQueue(stream, resources, state) {
<ide> if (!state) {
<del> state = {
<del> text: '',
<del> mapping: []
<del> };
<add> ... | 2 |
Text | Text | add details for july 2022 security releases | 15bb82b268584ad206606ffd46cc78c929c93fca | <ide><path>doc/changelogs/CHANGELOG_V18.md
<ide>
<ide> This is a security release.
<ide>
<del>### Notable Changes
<add>### Notable changes
<ide>
<del>* \[[`3f0c3e142d`](https://github.com/nodejs/node/commit/3f0c3e142d)] - **(SEMVER-MAJOR)** **src,deps,build,test**: add OpenSSL config appname (Daniel Bevenius) [#4312... | 1 |
PHP | PHP | set the timezone if it is set for mysql | 1a59fa9d411387f92254411dd97eb512aa8f7063 | <ide><path>src/Illuminate/Database/Connectors/MySqlConnector.php
<ide> public function connect(array $config)
<ide>
<ide> $connection->prepare($names)->execute();
<ide>
<add> // Next, we will check to see if a timezone has been specified in this config
<add> // and if it has we will issue a statement to modify th... | 1 |
Python | Python | fix failing empty serializer test | cba972911a90bdc0050bc48397bc70e1a062040d | <ide><path>rest_framework/tests/test_serializer.py
<ide> def test_empty(self):
<ide> 'email': '',
<ide> 'content': '',
<ide> 'created': None,
<add> 'sub_comment': ''
<ide> }
<ide> self.assertEqual(serializer.data, expected)
<ide> | 1 |
Ruby | Ruby | fix return conditions | b4adf2a42e48e6e92de45b9536373998bf8426c0 | <ide><path>Library/Homebrew/livecheck/strategy/page_match.rb
<ide> def self.versions_from_content(content, regex, &block)
<ide> }
<ide> def self.find_versions(url:, regex:, provided_content: nil, **_unused, &block)
<ide> match_data = { matches: {}, regex: regex, url: url }
<del> retur... | 1 |
Python | Python | add tqdm to the process of eval | 77944d1b313ad532d7f60cd8e7355af04617e4b5 | <ide><path>examples/run_swag.py
<ide> def main():
<ide> model.eval()
<ide> eval_loss, eval_accuracy = 0, 0
<ide> nb_eval_steps, nb_eval_examples = 0, 0
<del> for input_ids, input_mask, segment_ids, label_ids in eval_dataloader:
<add> for input_ids, input_mask, segment_ids, label_id... | 1 |
Ruby | Ruby | prefer autoloaded html scanner | 426a86ab1e4fc2488215a9adab4511a59646a413 | <ide><path>actionpack/lib/action_controller.rb
<ide> end
<ide> end
<ide>
<del>$:.unshift "#{File.dirname(__FILE__)}/action_controller/vendor/html-scanner"
<del>
<ide> module ActionController
<ide> # TODO: Review explicit to see if they will automatically be handled by
<ide> # the initilizer if they are really ne... | 3 |
Python | Python | remove tf.roll wherever not needed | 0d2bffad31e88fe72ec12eb20f5dc8996cbc6497 | <ide><path>src/transformers/generation_tf_utils.py
<ide> def tf_top_k_top_p_filtering(logits, top_k=0, top_p=1.0, filter_value=-float("In
<ide> )
<ide>
<ide> # Shift the indices to the right to keep also the first token above the threshold
<del> sorted_indices_to_remove = tf.roll(sorted_indi... | 10 |
Ruby | Ruby | remove old method and comment | ccf5f2c4a20a9a275dd86f251fa026eee7f344c5 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def remove_duplicate_results!(base, records, associations)
<ide> end
<ide> end
<ide>
<del> def joins_for_table_name(table_name)
<del> join = join_for_table_name(table_name)
<del> result = nil
<del> ... | 1 |
Javascript | Javascript | add translation for bahasa melayu | 5be0376374cd28d8280723143f35c4ab92f98922 | <ide><path>lang/ms-my.js
<add>// moment.js language configuration
<add>// language : Bahasa Malaysia (ms-MY)
<add>// author : Weldan Jamili : https://github.com/weldan
<add>
<add>require('../moment').lang('ms', {
<add> months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split... | 1 |
Python | Python | add on_kill method to dataprocsubmitjoboperator | 68cc7273bf0c0f562748b5f663da5c12d2cba6a7 | <ide><path>airflow/providers/google/cloud/operators/dataproc.py
<ide> class DataprocSubmitJobOperator(BaseOperator):
<ide> This is useful for submitting long running jobs and
<ide> waiting on them asynchronously using the DataprocJobSensor
<ide> :type asynchronous: bool
<add> :param cancel_on_kil... | 2 |
Ruby | Ruby | return argv from each method | 4e0694c603099a2f76de8ad0f65c4f446a44dc4f | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def initialize(argv = ARGV)
<ide>
<ide> def prepare!
<ide> handle_version_request!(@argv.first)
<del> unless handle_invalid_command!(@argv.first, @argv)
<add> handle_invalid_command!(@argv.first, @argv) do
<ide> ... | 1 |
Java | Java | add generic parameters to messagehandler impls | 3f9da6f4809431a323a627c719cc28987fb6945e | <ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/PubSubChannelRegistry.java
<ide> * @author Rossen Stoyanchev
<ide> * @since 4.0
<ide> */
<del>public interface PubSubChannelRegistry<M extends Message<?>, H extends MessageHandler<M>> {
<add>@SuppressWarnings("rawtypes")
<add>public interfac... | 18 |
Javascript | Javascript | update imports in ember-glimmer package tests | dd28ca046a299497aacda9e674229be99f02db52 | <ide><path>packages/ember-application/lib/index.js
<ide> export { default as ApplicationInstance } from './system/application-instance';
<ide> export { default as Resolver } from './system/resolver';
<ide> export { default as Engine } from './system/engine';
<ide> export { default as EngineInstance } from './system/eng... | 57 |
Javascript | Javascript | allow option view for ember.select overwritable | 6c6b6445aa38c58ba7a10133e2d30a3b4dd65ed3 | <ide><path>packages/ember-handlebars/lib/controls/select.js
<ide> var set = Ember.set,
<ide> isArray = Ember.isArray,
<ide> precompileTemplate = Ember.Handlebars.compile;
<ide>
<add>Ember.SelectOption = Ember.View.extend({
<add> tagName: 'option',
<add> attributeBindings: ['value', 'selected'],
<add>
<add> ... | 1 |
Mixed | Ruby | implement content disposition in direct upload | 9940c65a78c913c6f67b3fc0f1595311865128e9 | <ide><path>activestorage/CHANGELOG.md
<add>* Set content disposition in direct upload using `filename` and `disposition` parameters to `ActiveStorage::Service#headers_for_direct_upload`.
<add>
<add> *Peter Zhu*
<add>
<ide> * Allow record to be optionally passed to blob finders to make sharding
<ide> easier.
... | 8 |
Java | Java | remove unnecessary assertion | 1e003a1c90fe7f5aa91f99a34fa5be53a43ad6d8 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 1 |
Python | Python | replace tab with spaces | f90bb0842577786ffc9383b305d36ad8b79eb58e | <ide><path>airflow/example_dags/example_branch_python_dop_operator_3.py
<ide>
<ide> from airflow.operators import BranchPythonOperator, DummyOperator
<ide> from airflow.models import DAG
<del>import airflow.utils
<ide> from datetime import datetime, timedelta
<ide>
<ide> two_days_ago = datetime.combine(datetime.today... | 1 |
PHP | PHP | allow input type=number to also be magic | 9a9ac6f3a7fd112e4d685f3cf507d528ed9cf102 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function input($fieldName, $options = array()) {
<ide>
<ide> if (
<ide> (!isset($options['options']) && in_array($options['type'], $types)) ||
<del> (isset($magicType) && $options['type'] == 'text')
<add> (isset($magicType) && in_array($options['type... | 1 |
Python | Python | remove obsolete code | d0689a3243b77b8b65e9c49eb8376a9dd190b698 | <ide><path>numpy/distutils/ccompiler.py
<ide> def CCompiler_spawn(self, cmd, display=None):
<ide> else:
<ide> msg = ''
<ide> raise DistutilsExecError('Command "%s" failed with exit status %d%s' % (cmd, s, msg))
<del> if hasattr(self, 'config_output'):
<del> self.config_output += o
... | 3 |
Ruby | Ruby | replace depends_on with uses_from_macos | 86feb5a9deeffbf0b41850098c0fd3505d8a1673 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_deps
<ide> dep_f.keg_only_reason.valid? &&
<ide> !%w[apr apr-util openblas openssl openssl@1.1].include?(dep.name)
<ide> new_formula_problem(
<del> "Dependency '#{dep.name}' may be unnecessary as it is provid... | 2 |
Go | Go | fix error reporting in `copyfilewithtar` | 57e12037ac8f8eb48cc05979c3030853d011dfea | <ide><path>pkg/archive/archive.go
<ide> func (archiver *Archiver) CopyFileWithTar(src, dst string) (err error) {
<ide> return nil
<ide> })
<ide> defer func() {
<del> if er := <-errC; err != nil {
<add> if er := <-errC; err == nil && er != nil {
<ide> err = er
<ide> }
<ide> }() | 1 |
Java | Java | remove trailing whitespace in java source code | 7018747ceccb0f715093af2a12312e42d52d9579 | <ide><path>spring-core/src/main/java/org/springframework/util/concurrent/CompletableToListenableFutureAdapter.java
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<del>
<add>
<ide> package org.springframework.util.concurrent;
<del>
<add>
<... | 24 |
Ruby | Ruby | use cli/args and tweak freeze behaviour | ae63381bd979cccaf0f8f4234c6278a6b3b18634 | <ide><path>Library/Homebrew/cli/parser.rb
<add>require "cli/args"
<ide> require "optparse"
<del>require "ostruct"
<ide> require "set"
<ide>
<ide> COMMAND_DESC_WIDTH = 80
<ide> def self.global_options
<ide>
<ide> def initialize(&block)
<ide> @parser = OptionParser.new
<del> Homebrew.args = OpenStr... | 2 |
Text | Text | add note about purpose of github issues | ca0b7cb5e893618b62f8708080fd3e490bfe3865 | <ide><path>CONTRIBUTING.md
<ide> # Contributing
<ide>
<add>**Important:** these GitHub issues are for *bug reports and feature requests only*. Please use [StackOverflow](http://stackoverflow.com/questions/tagged/d3.js) or the [d3-js Google group](https://groups.google.com/d/forum/d3-js) for general help.
<add>
<ide> I... | 1 |
Go | Go | add tests for issecure | 75e3b35bf15dd01363f8b422d6b8a4a62b1054c6 | <ide><path>registry/registry_test.go
<ide> func TestAddRequiredHeadersToRedirectedRequests(t *testing.T) {
<ide> }
<ide> }
<ide> }
<add>
<add>func TestIsSecure(t *testing.T) {
<add> tests := []struct {
<add> addr string
<add> insecureRegistries []string
<add> expected bool
<add> }{
<add> ... | 1 |
Javascript | Javascript | fix stitching function | baab676b00c4999440864738742bc27dfff12d64 | <ide><path>src/function.js
<ide> var PDFFunction = (function PDFFunctionClosure() {
<ide>
<ide> constructStiched: function pdfFunctionConstructStiched(fn, dict, xref) {
<ide> var domain = dict.get('Domain');
<del> var range = dict.get('Range');
<ide>
<ide> if (!domain)
<ide> error('No dom... | 1 |
Mixed | Python | update example and sign contributor agreement | 8c0586fd9c178afdb0f1c955acfc96715905cf53 | <ide><path>.github/contributors/askhogan.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<... | 2 |
Text | Text | add route to timestamp api in tests | d2e1a385e793c69abcc5c455131f670d21fa4de9 | <ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/url-shortener-microservice.md
<ide> forumTopicId: 301509
<ide> ---
<ide>
<ide> ## Description
<add>
<ide> <section id='description'>
<ide> Build a full stack JavaScript app that is functionally similar to this: <a href='... | 1 |
Javascript | Javascript | use isip consistently | b9299884dc1a15c2b08429d3adba1d9bba5b3af4 | <ide><path>lib/dns.js
<ide> 'use strict';
<ide>
<del>const net = require('net');
<ide> const util = require('util');
<ide>
<ide> const cares = process.binding('cares_wrap');
<ide> const GetAddrInfoReqWrap = cares.GetAddrInfoReqWrap;
<ide> const GetNameInfoReqWrap = cares.GetNameInfoReqWrap;
<ide> const QueryReqWrap =... | 1 |
Mixed | Javascript | add order option to `.inspect()` | b95b0d87c3582eee82600d076874c9d4afeb4b72 | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/22788
<add> description: The `sorted` option is supported now.
<ide> - version: REPLACEME
<ide> pr-url: https://github.c... | 3 |
Ruby | Ruby | add plist test | 776a73da7c4b92c73dea3e5065ea4b2d9873f029 | <ide><path>Library/Homebrew/test/test_cmd_audit.rb
<ide> class Foo < Formula
<ide> fa.problems
<ide> end
<ide>
<add> def test_audit_file_strict_plist_placement
<add> fa = formula_auditor "foo", <<-EOS.undent, :strict => true
<add> class Foo < Formula
<add> url "https://example.com/foo-1.0.tgz"
... | 1 |
Text | Text | apply suggestions from code review | 7c6cd247ee8f1eae426ba61c7bfa9ea3b4c91a33 | <ide><path>docs/Formula-Cookbook.md
<ide> Try to summarise from the [`homepage`](https://rubydoc.brew.sh/Formula#homepage%
<ide>
<ide> ### Fill in the `license`
<ide>
<del>**We don’t accept formulae without a [`license`](https://rubydoc.brew.sh/Formula#license-class_method)!**
<add>**We don’t accept new formulae into... | 1 |
Javascript | Javascript | remove an export i missed | 320664a35939aeafa71c25b12925e9b687bbdca9 | <ide><path>src/path-watcher.js
<ide> const ACTION_MAP = new Map([
<ide> ])
<ide>
<ide> // Private: Possible states of a {NativeWatcher}.
<del>export const WATCHER_STATE = {
<add>const WATCHER_STATE = {
<ide> STOPPED: Symbol('stopped'),
<ide> STARTING: Symbol('starting'),
<ide> RUNNING: Symbol('running'), | 1 |
Javascript | Javascript | use performancenow() instead of performance.now() | 103ca4b406a3c008cca99a17b33bdf83344e7ffe | <ide><path>src/isomorphic/ReactDebugTool.js
<ide> var ReactDebugTool = {
<ide> currentFlushMeasurements.push({
<ide> timerType,
<ide> instanceID: debugID,
<del> duration: performance.now() - currentTimerStartTime,
<add> duration: performanceNow() - currentTimerStartTime,
<i... | 1 |
PHP | PHP | add test case and add case _jsonoption = false | 875035b1f8cb09d8f3d048e3e02e747bfa9eb990 | <ide><path>Cake/Test/TestCase/View/JsonViewTest.php
<ide> public static function renderWithoutViewProvider() {
<ide> array(
<ide> array('data' => array('user' => 'fake', 'list' => array('item1', 'item2'))),
<ide> 'data',
<add> null,
<ide> json_encode(array('user' => 'fake', 'list' => array('item1', 'i... | 2 |
Javascript | Javascript | fix a typo | 7e760ac7d3ecb21a5f69b488235ad6558b175c1c | <ide><path>src/Dispatcher.js
<ide> import { Component, PropTypes } from 'react';
<ide>
<del>export default function dispatch(store, atom, action) {
<add>function dispatch(store, atom, action) {
<ide> return store(atom, action);
<ide> }
<ide> | 1 |
Javascript | Javascript | fix race in test-net-server-pause-on-connect | e22cc6c2eb728c08ec284b6c306d969d8fb8fbce | <ide><path>test/parallel/test-net-server-pause-on-connect.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var net = require('net');
<del>var msg = 'test';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const net = require('n... | 1 |
PHP | PHP | fix variable casing | 063e45ebf0e40a571a26242444c3b358115120a6 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements HttpKernelInterface, ResponsePrep
<ide> *
<ide> * @var array
<ide> */
<del> protected $finishCallBacks = array();
<add> protected $finishCallbacks = array();
<ide>
<ide> /**
<ide> * The array of shutdown ... | 1 |
Text | Text | fix typo and cleanup docs for installation | 9746021f1a36222111dff1ef95904ba39cc81db5 | <ide><path>docs/installation/mac.md
<ide> You install Docker using Docker Toolbox. Docker Toolbox includes the following D
<ide> * Docker Compose for running the `docker-compose` binary
<ide> * Kitematic, the Docker GUI
<ide> * a shell preconfigured for a Docker command-line environment
<del>* Oracle VM VirtualBox
<ad... | 2 |
PHP | PHP | apply fixes from styleci | 15db4cb8da2c4ab594c86fec7c6bd0e689a22e8e | <ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
<ide> use Illuminate\Queue\Console\FailedTableCommand;
<ide> use Illuminate\Foundation\Console\AppNameCommand;
<ide> use Illuminate\Foundation\Console\JobMakeCommand;
<add>use Illuminate\Database\Console\Seeds\SeedCommand;
<ide> use Illuminate\Fo... | 1 |
Javascript | Javascript | update revision constant | d9f39de84a1581a619554cfc57cf625ea6c9201b | <ide><path>src/constants.js
<del>export const REVISION = '129';
<add>export const REVISION = '130dev';
<ide> export const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
<ide> export const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
<ide> export const CullFaceNone = 0; | 1 |
Text | Text | add helpful links | 22f64fbce6f46c8a39006fcb35b20aad978e0611 | <ide><path>guide/english/mathematics/pythagorean-theorem/index.md
<ide> And then, we will square root both sides to get the value of b:
<ide> b = √(c<sup>2</sup> - a<sup>2</sup>)
<ide>
<ide> #### More Information:
<del><!-- Please add any articles you think might be helpful to read before writing the article -->... | 1 |
Text | Text | describe node_options interop w/cmd line opts | 5eaef7b9151037c727806a8a40c8f6d5bdb26386 | <ide><path>doc/api/cli.md
<ide> When set to `1`, process warnings are silenced.
<ide> added: v8.0.0
<ide> -->
<ide>
<del>A space-separated list of command line options. `options...` are interpreted as
<del>if they had been specified on the command line before the actual command line
<del>(so they can be overridden). N... | 1 |
PHP | PHP | apply fixes from styleci | be94e7bf403c044446f060b940c8d641d28a9a1f | <ide><path>tests/Cache/CacheRateLimiterTest.php
<ide> public function testAttemptsCallbackReturnsTrue()
<ide>
<ide> $rateLimiter = new RateLimiter($cache);
<ide>
<del> $this->assertTrue($rateLimiter->attempt('key', 1, function() use (&$executed) {
<add> $this->assertTrue($rateLimiter->attempt('k... | 1 |
Ruby | Ruby | make the tapping already there step actually work | 21bddc7972c4c7936bc02ee45378600f180bdbaa | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def link_tap_formula formulae
<ide> to = HOMEBREW_LIBRARY.join("Formula/#{formula.basename}")
<ide>
<ide> # Unexpected, but possible, lets proceed as if nothing happened
<del> formula.delete if to.symlink? and to.realpath == from
<add> to.delet... | 1 |
Ruby | Ruby | remove redundant `to_s` in interpolation | 797a7a7c833f456987335d02696cc8531df992d3 | <ide><path>activejob/lib/active_job/logging.rb
<ide> def perform_start(event)
<ide> def perform(event)
<ide> info do
<ide> job = event.payload[:job]
<del> "Performed #{job.class.name} from #{queue_name(event)} in #{event.duration.round(2).to_s}ms"
<add> "Performed #{job.class.n... | 1 |
Ruby | Ruby | fix rubocop warnings | a0c29eb1af9abe25a29616bdcdd6aa19348e7eb3 | <ide><path>Library/Homebrew/cmd/tap-info.rb
<ide> def print_tap_info(taps)
<ide> puts info
<ide> else
<ide> taps.each_with_index do |tap, i|
<del> puts unless i == 0
<add> puts unless i.zero?
<ide> info = "#{tap}: "
<ide> if tap.installed?
<ide> info += tap.pinned... | 1 |
Ruby | Ruby | require hardware where it is needed | 41af4592059530e1df14fcb8b846f6b286847ae2 | <ide><path>Library/Homebrew/extend/ENV.rb
<add>require 'hardware'
<add>
<ide> module HomebrewEnvExtension
<ide> # -w: keep signal to noise high
<ide> SAFE_CFLAGS_FLAGS = "-w -pipe"
<ide><path>Library/Homebrew/macos.rb
<ide> require 'os/mac/version'
<add>require 'hardware'
<ide>
<ide> module MacOS extend self
<ide>... | 7 |
Javascript | Javascript | move all user fetching to learn | f48952c3e62438bd825a72a1ecacdf6fd93b121d | <ide><path>client/src/components/layouts/Learn.js
<ide> import React, { Fragment } from 'react';
<ide> import PropTypes from 'prop-types';
<add>import { createSelector } from 'reselect';
<add>import { connect } from 'react-redux';
<ide>
<add>import { Loader } from '../../components/helpers';
<add>import {
<add> userS... | 6 |
Javascript | Javascript | add keyboardevent.code to synthetic event | f625fce8578cc77113d9da8ffd02032a60477e6a | <ide><path>packages/react-dom/src/events/SyntheticKeyboardEvent.js
<ide> import getEventModifierState from './getEventModifierState';
<ide> */
<ide> const SyntheticKeyboardEvent = SyntheticUIEvent.extend({
<ide> key: getEventKey,
<add> code: null,
<ide> location: null,
<ide> ctrlKey: null,
<ide> shiftKey: nul... | 2 |
Javascript | Javascript | improve fchmod{sync} validation | 1ae184a85c05164b40933a5efc678cd9f008d2c4 | <ide><path>lib/fs.js
<ide> fs.unlinkSync = function(path) {
<ide> };
<ide>
<ide> fs.fchmod = function(fd, mode, callback) {
<del> validateUint32(fd, 'fd');
<add> validateInt32(fd, 'fd', 0);
<ide> mode = validateAndMaskMode(mode, 'mode');
<ide> callback = makeCallback(callback);
<ide>
<ide> fs.fchmod = function(... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.