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 |
|---|---|---|---|---|---|
Java | Java | handle special headers in tomcat and jetty | 10d5de7d630587bfa96f4f6998ab141693d55386 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/JettyHttpHandlerAdapter.java
<ide> import java.io.IOException;
<ide> import java.net.URISyntaxException;
<ide> import java.nio.ByteBuffer;
<add>import java.nio.charset.Charset;
<ide> import javax.servlet.AsyncContext;
<ide> import javax.servle... | 2 |
Go | Go | fix comments and for hasdevice() and exists() | f5c0eb9ffe9a9d30ac6ff81fa1a4c216908189a6 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) UnmountDevice(hash string) error {
<ide> return nil
<ide> }
<ide>
<del>// HasDevice returns true if the device is in the hash and mounted.
<add>// HasDevice returns true if the device metadata exists.
<ide> func (devices *DeviceSet) ... | 2 |
Javascript | Javascript | add more validation to `pdflinkservice_navigateto` | e1412de32075e76f3c6129dc59ef6631cc68b6c6 | <ide><path>web/pdf_link_service.js
<ide> var PDFLinkService = (function PDFLinkServiceClosure() {
<ide>
<ide> var goToDestination = function(destRef) {
<ide> // dest array looks like that: <page-ref> </XYZ|/FitXXX> <args..>
<del> var pageNumber = destRef instanceof Object ?
<del> self._pa... | 1 |
Javascript | Javascript | take object as first parameter | b6becb40c08230c96377a1b927b9f56b4c0b28e1 | <ide><path>lib/webpack.js
<ide> exportPlugins(exports.debug = {}, {
<ide> "ProfilingPlugin": () => require("./debug/ProfilingPlugin"),
<ide> });
<ide>
<del>const defineMissingPluginError = (pluginName, errorMessage) => {
<del> Reflect.defineProperty(exports.optimize, pluginName, {
<add>const defineMissingPluginError ... | 1 |
PHP | PHP | fix most test failures in cake\network | aedd63feedd27ccb590aa15a44560a049c5c09a5 | <ide><path>lib/Cake/Network/Email/Email.php
<ide> public function send($content = null) {
<ide> if ($this->_config['log'] !== true) {
<ide> $level = $this->_config['log'];
<ide> }
<del> Log::write($level, PHP_EOL . $contents['headers'] . PHP_EOL . $contents['message']);
<add> Log::write($level, PHP_EOL . ... | 5 |
Python | Python | update stable version for published docs | 550395192929f86376151b4385cea6b8dfb76e8e | <ide><path>docs/exts/docs_build/docs_builder.py
<ide> def publish(self):
<ide> pretty_target = pretty_format_path(output_dir, AIRFLOW_SITE_DIR)
<ide> print(f"Copy directory: {pretty_source} => {pretty_target}")
<ide> shutil.copytree(self._build_dir, output_dir)
<add> if self.is_versioned:... | 1 |
Text | Text | add beginner solution to pig latin | 7a37788ea163300d37cff800dd6efed3bc86551b | <ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/pig-latin/index.md
<ide> You will need to use everything you know about string manipulation to get the la
<ide>
<ide> **Solution ahead!**
<ide>
<add>##  {
<del> if (typeof value === 'object' && value) {
<add> if (typeof value === 'object' && value !== null) {
<ide> let meta = peekMeta(value);
<ide> return meta && meta.isProxy();... | 3 |
PHP | PHP | fix deprecation message | b4fa77e1da222eb7c5a53a92ff9d5747e94a77f5 | <ide><path>src/View/ViewBuilder.php
<ide> public function build(
<ide>
<ide> if (!empty($vars)) {
<ide> deprecationWarning(
<del> 'The $vars argument is deprecated. Use the setVar()/setVar() methods instead.'
<add> 'The $vars argument is deprecated. Use the setVar()/se... | 1 |
Ruby | Ruby | correct the time comparison for remember_me token | 7564da46f23bb0075390e44b5fbedcdc8a0c4dc5 | <ide><path>activesupport/lib/active_support/message_verifier.rb
<ide> module ActiveSupport
<ide> # In the authentication filter:
<ide> #
<ide> # id, time = @verifier.verify(cookies[:remember_me])
<del> # if time < Time.now
<add> # if Time.now < time
<ide> # self.current_user = User.find(id)
<ide> ... | 1 |
Javascript | Javascript | use accessors for eventtransitions | 9ef59af7269fdea81be06eb51fbf2e640a39e67c | <ide><path>packages/ember-states/lib/state.js
<ide> Ember.State = Ember.Object.extend(Ember.Evented,
<ide> init: function() {
<ide> var states = get(this, 'states'), foundStates;
<ide> set(this, 'childStates', Ember.A());
<del> this.eventTransitions = this.eventTransitions || {};
<add> set(this, 'eventT... | 1 |
Python | Python | fix some unicode issues | c3a0fb9711a119ac303d18719cea702efeff408f | <ide><path>doc/sphinxext/numpydoc.py
<ide> def mangle_docstrings(app, what, name, obj, options, lines,
<ide>
<ide> if what == 'module':
<ide> # Strip top title
<del> title_re = re.compile(r'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{4,}\s*',
<add> title_re = re.compile(ur'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[... | 1 |
Mixed | Python | fix typo in athena sensor retries | 2b8dea64e9e8716fba8c38a1b439f7835bbd2918 | <ide><path>UPDATING.md
<ide> The `AwsBatchOperator` can use a new `waiters` parameter, an instance of `AwsBat
<ide> specify that custom job waiters will be used to monitor a batch job. See the latest API
<ide> documentation for details.
<ide>
<add>### AthenaSensor
<add>
<add>Replace parameter `max_retires` with `max_... | 3 |
Python | Python | use yaml safe load | 7f4935bab36c41d5927610e38c46a30da2b80906 | <ide><path>airflow/providers/google/cloud/operators/cloud_build.py
<ide> def prepare_template(self) -> None:
<ide> return
<ide> with open(self.build_raw) as file:
<ide> if any(self.build_raw.endswith(ext) for ext in ['.yaml', '.yml']):
<del> self.build = yaml.load(file.rea... | 1 |
Python | Python | add tests for recent void byteswap problem | 29cb5ffae98ad43a3e7ebada8dc77ce0a4045529 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_void_coercion(self, level=rlevel):
<ide> dt = N.dtype([('a','f4'),('b','i4')])
<ide> x = N.zeros((1,),dt)
<ide> assert(N.r_[x,x].dtype == dt)
<add>
<add> def check_void_copyswap(self, level=rlevel):
<add> dt = N.dtype([('on... | 1 |
Mixed | Ruby | add option for class_attribute default | 1c275d812f35f53f93cd96184a4f319983766cc5 | <ide><path>actioncable/lib/action_cable/channel/periodic_timers.rb
<ide> module PeriodicTimers
<ide> extend ActiveSupport::Concern
<ide>
<ide> included do
<del> class_attribute :periodic_timers, instance_reader: false
<del> self.periodic_timers = []
<add> class_attribute :periodic_time... | 47 |
PHP | PHP | add encryption configuration | f7b982ebdf7bd31eda9f05f901bd92ed32446156 | <ide><path>config/database.php
<ide> 'charset' => 'utf8',
<ide> 'prefix' => '',
<ide> 'prefix_indexes' => true,
<add> // 'encrypt' => env('DB_ENCRYPT', 'yes'),
<add> // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'true'),
<ide> ],
<i... | 1 |
Text | Text | remove old links from debugging guide [ci skip] | 987df0fea05d37bcdeb4af3ea8f72381540b4ff6 | <ide><path>guides/source/debugging_rails_applications.md
<ide> more.
<ide> References
<ide> ----------
<ide>
<del>* [ruby-debug Homepage](http://bashdb.sourceforge.net/ruby-debug/home-page.html)
<del>* [debugger Homepage](https://github.com/cldwalker/debugger)
<ide> * [byebug Homepage](https://github.com/deivid-rodrig... | 1 |
Text | Text | add remote component to upgrade | 69d044730173a5ab5582f4d13b54b294e4d19ba9 | <ide><path>upgrade.md
<ide> to use `Illuminate\Routing\Controller`
<ide> - Edit `app/controllers/BaseController.php` change `use Illuminate\Routing\Controllers\Controller;` to `use Illuminate\Routing\Controller;
<ide> `
<add>- Edit `app/config/app.php`; in `providers` add `'Illuminate\Remote\RemoteServiceProvider',`
... | 1 |
Text | Text | add all core modules to caine's spec | e3aa802b382d2893db0218730b70f60e0c16874a | <ide><path>CONTRIBUTING.md
<ide> and/or gather required information for the core team members?
<ide> If the error is not reproducible with just core modules - it is most
<ide> likely not a io.js problem. _Expected: `yes`_
<ide> * Which part of core do you think it might be related to?
<del> _One of: `tls, crypto, ... | 1 |
Text | Text | add netlify link | 9a47205b0eb7b016989259de9238223854eed2ed | <ide><path>README.md
<ide> Our bottles (binary packages) are hosted by [Bintray](https://bintray.com/homebr
<ide>
<ide> [](https://bintray.com/homebrew)
<ide>
<add>[Our website](https://brew.sh) is hosted by [Netlify](https://www.netl... | 1 |
PHP | PHP | fix setmatching return type | f813cf8385cddac0b8e1cb17298227018b497d25 | <ide><path>src/ORM/EagerLoader.php
<ide> public function autoFields($enable = null)
<ide> * @param callable|null $builder the callback function to be used for setting extra
<ide> * options to the filtering query
<ide> * @param array $options Extra options for the association matching.
<del> * @return... | 2 |
Text | Text | improve eventlooputilization documentation | 642f2064c06793b799959d7df0488f14df594181 | <ide><path>doc/api/perf_hooks.md
<ide> Performance Timeline. If `name` is provided, removes only the named mark.
<ide> added: v14.10.0
<ide> -->
<ide>
<del>* `utilization1` {Object} The result of a previous call to `eventLoopUtilization()`
<del>* `utilization2` {Object} The result of a previous call to `eventLoopUtili... | 1 |
Python | Python | add snowflake operators based on sql checks | a8970764d98f33a54be0e880df27f86b311038ac | <ide><path>airflow/providers/snowflake/operators/snowflake.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>from typing import Any, Optional
<add>from typing import Any, Optional, SupportsAbs
<ide>
<ide>... | 2 |
Text | Text | add @daviwil focus items | 138a4a0d72087b6eb9cedd9cd7931b44b504fa55 | <ide><path>docs/focus/2018-04-23.md
<ide> ## Focus for week ahead
<ide>
<ide> - Atom core
<add> - Shipped Atom 1.26.0 and 1.27.0-beta0 :shipit:
<ide> - Atom IDE
<ide> - GitHub Package
<ide> - :notebook: Planning, roadmapping, prioritizing, scheming | 1 |
Ruby | Ruby | use curl with --insecure when on os x < 10.6 | 4ba0e9ebaebecf7bff389d0d49e7d59b31eef237 | <ide><path>Library/Homebrew/utils.rb
<ide> def quiet_system cmd, *args
<ide> end
<ide>
<ide> def curl *args
<add> # See https://github.com/mxcl/homebrew/issues/6103
<add> args << "--insecure" if MacOS.version < 10.6
<add>
<ide> safe_system '/usr/bin/curl', HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args unless args... | 1 |
Text | Text | add change string to changelog.md | bc55ee6bd2603f952e4a6754a3a78ccbbd69319c | <ide><path>CHANGELOG.md
<add>* Fixed: Using toggle comment shortcut respects indentation level
<add>
<ide> * Fixed: Search never completing in the command panel
<ide>
<ide> * Fixed: cmd-n now works when no windows are open | 1 |
Python | Python | update available record types in zerigo driver | 2318442c75dae0caad7ac99eba84d5942b63f9ad | <ide><path>libcloud/dns/drivers/zerigo.py
<ide> RecordType.A: 'A',
<ide> RecordType.AAAA: 'AAAA',
<ide> RecordType.CNAME: 'CNAME',
<add> RecordType.MX: 'MX',
<add> RecordType.REDIRECT: 'REDIRECT',
<ide> RecordType.TXT: 'TXT',
<ide> RecordType.SRV: 'SRV',
<add> RecordType.NAPTR: 'NAPTR',
<ad... | 1 |
Python | Python | monitor pods by labels instead of names | 8985df0bfcb5f2b2cd69a21b9814021f9f8ce953 | <ide><path>airflow/executors/kubernetes_executor.py
<ide> """
<ide> import base64
<ide> import datetime
<del>import hashlib
<ide> import json
<ide> import multiprocessing
<del>import re
<ide> import time
<ide> from queue import Empty, Queue # pylint: disable=unused-import
<ide> from typing import Any, Dict, Optional, ... | 6 |
Python | Python | fix weird windows ssl issues | d097055dfae56861264b235b757be434a239bc2c | <ide><path>pip-date.py
<ide> from bisect import bisect
<ide> from datetime import datetime
<ide> from datetime import timedelta
<add>import ssl
<ide>
<ide> try:
<del> from urllib.request import urlopen
<add> from urllib.request import Request, build_opener, HTTPSHandler, URLError
<ide> except ImportError:
<del> ... | 1 |
Go | Go | correct the info message when stop container | 6716a3a167fcd0a9abc013ce536117175922af96 | <ide><path>daemon/stop.go
<ide> func (daemon *Daemon) containerStop(container *container.Container, seconds int)
<ide> return nil
<ide> }
<ide>
<del> // 1. Send a SIGTERM
<del> if err := daemon.killPossiblyDeadProcess(container, container.StopSignal()); err != nil {
<del> logrus.Infof("Failed to send SIGTERM to th... | 1 |
Python | Python | remove ignored applications files | f312e5acf16100c6e5c1ce4b37a66eed3e62e846 | <ide><path>keras/applications/mobilenetv2.py
<del># Only for backwards compatibility.
<del>from .mobilenet_v2 import *
<ide><path>keras/applications/resnext.py
<del>from __future__ import absolute_import
<del>from __future__ import division
<del>from __future__ import print_function
<del>
<del>try:
<del> from keras_... | 2 |
Javascript | Javascript | update snapshots for typo | 2f4e370ee8add8ffa123a77884a1c015fda7cfc5 | <ide><path>test/Validation.test.js
<ide> describe("Validation", () => {
<ide>
<ide> createTestCase("undefined configuration", undefined, msg =>
<ide> expect(msg).toMatchInlineSnapshot(`
<del> "Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema... | 1 |
Go | Go | drop containerfs type alias | 9ce2b30b817ad6fe6da8d91e5ac0aa19fb64e0d1 | <ide><path>builder/builder.go
<ide> import (
<ide> containerpkg "github.com/docker/docker/container"
<ide> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/layer"
<del> "github.com/docker/docker/pkg/containerfs"
<ide> )
<ide>
<ide> const (
<ide> const (
<ide> // instructions in the builder.
<ide> ty... | 29 |
Python | Python | fix mypy errors in aws/transfers | 463e3b2b25ee5c116313160c64bb8e2644e1fef3 | <ide><path>airflow/providers/amazon/aws/transfers/ftp_to_s3.py
<ide> def __init__(
<ide> replace: bool = False,
<ide> encrypt: bool = False,
<ide> gzip: bool = False,
<del> acl_policy: str = None,
<add> acl_policy: Optional[str] = None,
<ide> **kwargs,
<ide> ):
<ide> ... | 5 |
Javascript | Javascript | remove unused $scope | 4f9dc44f88d61609837b30696ecb286aa43af0a9 | <ide><path>src/ngMessages/messages.js
<ide> angular.module('ngMessages', [])
<ide>
<ide> return {
<ide> restrict: 'AE',
<del> controller: ['$scope', function($scope) {
<add> controller: function() {
<ide> this.$renderNgMessageClasses = angular.noop;
<ide>
<ide> var messages = [];
<... | 1 |
PHP | PHP | ensure carbon is reset after rate tests | 08100578cb467d359f5f0ef8efa7765bdde127f8 | <ide><path>src/Illuminate/Cache/RateLimiter.php
<ide> public function tooManyAttempts($key, $maxAttempts, $decayMinutes = 1)
<ide> if ($this->attempts($key) >= $maxAttempts) {
<ide> if ($this->cache->has($key.':timer')) {
<ide> return true;
<del> } else {
<del> ... | 3 |
Java | Java | refine propertydescriptor filtering | 002546b3e4b8d791ea6acccb81eb3168f51abb15 | <ide><path>spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 1 |
Text | Text | make minor improvements to collab guide | e406cca5c3eb768dd66301fcac5429223e200955 | <ide><path>COLLABORATOR_GUIDE.md
<ide> For first-time contributors, check if the commit author is the same as the
<ide> pull request author, and ask if they have configured their git
<ide> username and email to their liking as per [this guide][git-username].
<ide> This is to make sure they would be promoted to "contrib... | 1 |
Ruby | Ruby | define @title to avoid warnings | ad2c21089e435527641d891a30ff8f695114071b | <ide><path>actionpack/test/controller/capture_test.rb
<ide> def self.controller_name; "test"; end
<ide> def self.controller_path; "test"; end
<ide>
<ide> def content_for
<add> @title = nil
<ide> render :layout => "talk_from_action"
<ide> end
<ide>
<ide> def content_for_with_parameter
<add> @title = ... | 1 |
Go | Go | fix a typo in docker/daemon/state.go | 7e01ecc119ea3871058309a47a3f9cbf2a9483dd | <ide><path>daemon/state.go
<ide> func (s *State) setStopped(exitStatus *execdriver.ExitStatus) {
<ide> s.waitChan = make(chan struct{})
<ide> }
<ide>
<del>// SetRestarting is when docker hanldes the auto restart of containers when they are
<add>// SetRestarting is when docker handles the auto restart of containers wh... | 1 |
Text | Text | update urls for redux.js.org | e1f12d64fd5be7cf790983f5db33620125a544d0 | <ide><path>README.md
<ide> We have a variety of resources available to help you learn Redux, no matter what
<ide>
<ide> If you're brand new to Redux and want to understand the basic concepts, see:
<ide>
<del>- The **[Motivation](https://redux.js.org/introduction/motivation)** behind building Redux, the **[Core Concep... | 1 |
Ruby | Ruby | integrate amo json serializer into ar | 783db25e0c640c1588732967a87d65c10fddc08e | <ide><path>activemodel/lib/active_model/attributes.rb
<ide>
<ide> module ActiveModel
<ide> module Attributes
<add> def self.append_features(base)
<add> unless base.instance_methods.include?('attributes')
<add> super
<add> else
<add> false
<add> end
<add> end
<add>
<ide> def att... | 6 |
Python | Python | fix email addresses | 4957e5ed4ef51beb8687e64c4f9c5315602d86aa | <ide><path>numpy/core/tests/test_umath.py
<ide> import nose
<ide> from numpy import inf, nan, pi
<ide>
<add># Because of the way Python handles literals (e.g. (-0.0, 0.0) can give
<add># (-0.0, -0.0)). Use this for -0.0 instead.
<add>negzero = -0.0
<add>
<add>
<ide> class TestDivision(TestCase):
<ide> def test_div... | 2 |
Mixed | Ruby | update linux requirements | 1882ae4f6e7bbfaf9d19e2e2dc87616ae43fef8d | <ide><path>Library/Homebrew/os/linux/kernel.rb
<ide> module Kernel
<ide>
<ide> sig { returns(Version) }
<ide> def minimum_version
<del> Version.new "2.6.32"
<add> Version.new "3.2"
<ide> end
<ide>
<ide> def below_minimum_version?
<ide><path>docs/Homebrew-on-Linux.md
<ide> If you'... | 2 |
Ruby | Ruby | remove bad doctor check | 86daf9070037b8d91739871f5dd73eed6d05e0e7 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_stray_developer_directory
<ide> end
<ide> end
<ide>
<del>def check_cc
<del> if !MacOS::CLT.installed? && MacOS::Xcode.version < "4.3"
<del> 'No compiler found in /usr/bin!'
<del> end
<del>end
<del>
<ide> def check_standard_compilers
<ide> return if... | 1 |
Python | Python | remove unused method | 4107fcf3fd39278ac251c3e2697013fae2c3d8dd | <ide><path>glances/outputs/glances_bottle.py
<ide> def _favicon(self):
<ide> # Return the static file
<ide> return static_file('favicon.ico', root=self.STATIC_PATH)
<ide>
<del> def enable_cors(self):
<del> """Enable CORS"""
<del> response.headers['Access-Control-Allow-Origin'] = '*'
<d... | 1 |
Mixed | Javascript | add support for typedarray to getunpackedsettings | ad0a01caedbd792a7a62080439bf44ec27146798 | <ide><path>doc/api/http2.md
<ide> console.log(packed.toString('base64'));
<ide> added: v8.4.0
<ide> -->
<ide>
<del>* `buf` {Buffer|Uint8Array} The packed settings.
<add>* `buf` {Buffer|TypedArray} The packed settings.
<ide> * Returns: {HTTP/2 Settings Object}
<ide>
<ide> Returns a [HTTP/2 Settings Object][] containin... | 4 |
PHP | PHP | fix more tests | ee9b499de4454a33dac076d6bdcee54c9fb95872 | <ide><path>tests/TestCase/Command/HelpCommandTest.php
<ide> public function testMainAsXml()
<ide> $find = '<shell name="sample" call_as="sample" provider="TestApp\Shell\SampleShell" help="sample -h"';
<ide> $this->assertOutputContains($find);
<ide>
<del> $find = '<shell name="orm_cache" call_as=... | 2 |
Text | Text | fix broken links in views doc | 453b7b03dd5ee43cd4e63d05258116fd9f005fb3 | <ide><path>docs/api-guide/views.md
<ide> The core of this functionality is the `api_view` decorator, which takes a list o
<ide> return Response({"message": "Hello, world!"})
<ide>
<ide>
<del>This view will use the default renderers, parsers, authentication classes etc specified in the [settings](settings).
<a... | 1 |
Javascript | Javascript | skip all failing tests | 3a90910e7ffe5ca80d6d36837801fb41eddacb09 | <ide><path>packages/ember-htmlbars/lib/hooks/get-root.js
<ide> function getKey(scope, key) {
<ide> }
<ide>
<ide> function getGlobal(name) {
<del> Ember.deprecate("Global lookup of " + name + " from a Handlebars template is deprecated");
<add> Ember.deprecate("Global lookup of " + name + " from a Handlebars template ... | 27 |
Javascript | Javascript | add start of {{render}} documentation | 0f740430c0fcfdeb41d9c7e5bb412651db688b18 | <ide><path>packages/ember-routing/lib/helpers/render.js
<ide> require('ember-handlebars/helpers/view');
<ide>
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide>
<add> /**
<add> Renders the named template in the current context using the singleton
<add> instance of the same-named controller.
<a... | 1 |
Python | Python | remove commented line | 53c6c9795c8c1e6e90d8c1bee216e14c14e68b70 | <ide><path>libcloud/compute/drivers/dimensiondata.py
<ide> def list_images(self, location=None):
<ide> if location is not None:
<ide> params['datacenterId'] = self._location_to_location_id(location)
<ide>
<del> # return self._to_images(
<del> # self.connection.request_with_orgId_a... | 1 |
Javascript | Javascript | add reach24 app to react native showcase | d03d455cc46f7ccfeb3fa99ccd27a3248ecc4554 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/raindrop.io-keep-your-favorites/id1021913807',
<ide> author: 'Mussabekov Rustem',
<ide> },
<add> {
<add> name: 'Reach24',
<add> icon: 'http://a4.mzstatic.com/us/r30/Purple49/v4/35/0e/c8/350ec... | 1 |
Python | Python | fix _to_port to make it work with old versions | d34b3f0734befd1dfd8b7c044af5cf911bcd69b9 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _to_port(self, element):
<ide> mac_address=element['mac_address'],
<ide> name=element['name'],
<ide> network_id=element['network_id'],
<del> project_id=element['project_id'],
<del> po... | 1 |
Java | Java | release cached item in channelsendoperator | 9c48d63082e371da4d0870f6e222db35a4412362 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ChannelSendOperator.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 |
Python | Python | remove test that fails on windows | 9355b1c4c1daea10f32819111d36030ddd84f217 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_intp(self,level=rlevel):
<ide> assert_equal(255,N.intp('0xFF',16))
<ide> assert_equal(1024,N.intp(1024))
<ide>
<del> def check_fromfile(self,level=rlevel):
<del> """Ticket #103"""
<del> from tempfile import TemporaryFile
<d... | 1 |
PHP | PHP | use a tap | 067f6a5173c1527ae6e109f0ba891b104392f7a9 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function findOrFail($id, $columns = ['*'])
<ide> return $result;
<ide> }
<ide>
<del> throw (new ModelNotFoundException)->setModel(get_class($this->model), $id);
<add> throw (new ModelNotFoundException)->setModel(
<ad... | 1 |
Text | Text | update sponsor url | c5be86a6dbf3d21b00a296af5994fa075826bf0b | <ide><path>README.md
<ide> Please see the [security policy][security-policy].
<ide> [cryptapi-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/cryptapi-readme.png
<ide>
<ide> [sentry-url]: https://getsentry.com/welcome/
<del>[stream-url]: https://getstream.io/?utm_source=drf... | 2 |
Javascript | Javascript | avoid cyclic dependency | 04174a3d7aaf8c838811efe74455f379e65d73aa | <ide><path>src/math/Box3.js
<ide> import { Vector3 } from './Vector3.js';
<del>import { Sphere } from './Sphere.js';
<ide>
<ide> /**
<ide> * @author bhouston / http://clara.io
<ide> Object.assign( Box3.prototype, {
<ide>
<ide> if ( target === undefined ) {
<ide>
<del> console.warn( 'THREE.Box3: .getBoundingSp... | 1 |
Javascript | Javascript | stop v8 benchmark clobbering regexp | 50177fb13cae68067845cca7622798eb7a34f8e9 | <ide><path>benchmark/misc/v8-bench.js
<ide> global.print = function(s) {
<ide> console.log('misc/v8_bench.js %s', s);
<ide> };
<ide>
<del>global.load = function (x) {
<del> var source = fs.readFileSync(path.join(dir, x), 'utf8');
<del> vm.runInThisContext(source, x);
<del>}
<add>global.load = function(filename) {
... | 1 |
Python | Python | remove dead code | f0ce83ff67908806b6b85240d8a383b2306ab2e8 | <ide><path>numpy/distutils/misc_util.py
<ide> def add_installed_library(self, name, sources, install_dir, build_info=None):
<ide> """
<ide> if not build_info:
<ide> build_info = {}
<del> # self.add_library(name, sources)
<del> #else:
<del> # self.add_library(name, ... | 1 |
Text | Text | add validate_<fieldname> bugfix to release notes | 30046cae8c64790d7ae0d9ca4d2faee1cd2968aa | <ide><path>docs/topics/release-notes.md
<ide> Major version numbers (x.0.0) are reserved for project milestones. No major poi
<ide> * `format_suffix_patterns()` now supports `include` style URL patterns.
<ide> * Bugfix: Return proper validation errors when incorrect types supplied for relational fields.
<ide> * Bugfi... | 1 |
Javascript | Javascript | remove unique requirement from username | aab3b98f5d0fd3dba0b75ef63c8c47247c718520 | <ide><path>models/User.js
<ide> var userSchema = new mongoose.Schema({
<ide> username: {
<ide> type: String,
<ide> default: '',
<del> unique: true,
<add> //unique: true,
<ide> lowercase: true,
<ide> trim: true
<ide> } | 1 |
Java | Java | add support for responseentity result handling | 9aa6f5caacac316c74e374550a387f222e7e1921 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
<ide> import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter;
<ide> import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping;
<id... | 8 |
PHP | PHP | increase code coverage | 5bafc8a4a3f18fd3a1c80699e08f42c869f30b57 | <ide><path>tests/TestCase/Cache/Engine/FileEngineTest.php
<ide> public function testSetWithTtl()
<ide> $this->assertTrue($engine->set('default_ttl', $data));
<ide> $this->assertTrue($engine->set('int_ttl', $data, 1));
<ide> $this->assertTrue($engine->set('interval_ttl', $data, new DateInterval('... | 1 |
Javascript | Javascript | expect error for test_lookup_ipv6_hint on freebsd | f8152df5e815c98be702fe58753258b58f02c4ad | <ide><path>test/internet/test-dns.js
<ide> TEST(function test_lookup_ipv6_hint(done) {
<ide> family: 6,
<ide> hints: dns.V4MAPPED
<ide> }, function(err, ip, family) {
<del> if (err) throw err;
<add> if (err) {
<add> // FreeBSD does not support V4MAPPED
<add> if (process.platform === 'freebsd')... | 1 |
Python | Python | use get_data_files_path to access test data | 4a91d110c39114f2be014211f67a7e1f60b2b75e | <ide><path>research/object_detection/model_test.py
<ide> from object_detection.core import standard_fields as fields
<ide> from object_detection.utils import config_util
<ide>
<del>FLAGS = tf.flags.FLAGS
<ide>
<ide> MODEL_NAME_FOR_TEST = model_test_util.SSD_INCEPTION_MODEL_NAME
<ide>
<ide>
<ide> def _get_data_path(... | 2 |
Python | Python | improve tests for storing dag code in db | 9fda0188f9a21eae75afb1933d5f8bebf3201e9b | <ide><path>tests/models/test_dagcode.py
<ide> # To move it to a shared module.
<ide> from airflow.utils.file import open_maybe_zipped
<ide> from airflow.utils.session import create_session
<add>from tests.test_utils.config import conf_vars
<ide> from tests.test_utils.db import clear_db_dag_code
<ide>
<ide>
<ide> def ... | 1 |
Javascript | Javascript | remove dead code in getwidthorheight | 96533cd0e889a09ca71b90d74d71e590623cf26f | <ide><path>src/css.js
<ide> function getWidthOrHeight( elem, name, extra ) {
<ide> val = curCSS( elem, name, styles ),
<ide> isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
<ide>
<del> // Fall back to uncomputed css if necessary
<del> if ( val < 0 || val == null ) {
<del> val = elem... | 1 |
Text | Text | release notes for 1.3.0-beta.9 release-naming | 819dd5df92ad73b48e370c00d6e8cea10bf08e63 | <ide><path>CHANGELOG.md
<add><a name="1.3.0-beta.9"></a>
<add># 1.3.0-beta.9 release-naming (2014-05-16)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** pass `transcludeFn` down to nested transclude directives
<add> ([4f03dc5a](https://github.com/angular/angular.js/commit/4f03dc5a9650f3f22f78b438474322b4b8871... | 1 |
PHP | PHP | remove dead code (stubs) in test classes | 357c2664825911d53cbb9c43e7d5305b2161e2e8 | <ide><path>tests/Bus/BusDispatcherTest.php
<ide> public function handle()
<ide> }
<ide> }
<ide>
<del>class BusDispatcherTestBasicHandler {
<del> public function handle(BusDispatcherTestBasicCommand $command)
<del> {
<del>
<del> }
<del>}
<del>
<ide> class BusDispatcherTestQueuedHandler implements Illuminate\Contracts\... | 8 |
Javascript | Javascript | fix license headers | a8474c25fda5f818c714bcc32fb3e6e362e32198 | <ide><path>Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js
<ide> /**
<del> * Copyright (c) 2013-present, Facebook, Inc.
<del> * All rights reserved.
<add> * Copyright (c) 2015, Facebook, Inc. All rights reserved.
<ide> *
<del> * This source code is licensed under the BSD-style license found in... | 8 |
Python | Python | add list_locations for slicehost | 36bd2bd9f171edfca17f3058e980124afb457dfc | <ide><path>libcloud/drivers/slicehost.py
<ide> Slicehost Driver
<ide> """
<ide> from libcloud.types import NodeState, InvalidCredsException, Provider
<del>from libcloud.base import ConnectionKey, Response, NodeDriver, Node, NodeSize, NodeImage
<add>from libcloud.base import ConnectionKey, Response, NodeDriver, Node, No... | 1 |
Python | Python | fix the expression of pictures | dcb9fac5776285ce07475113b1734ec25b17fd93 | <ide><path>examples/deep_dream.py
<ide> result_prefix = args.result_prefix
<ide>
<ide> # dimensions of the generated picture.
<del>img_width = 600
<ide> img_height = 600
<add>img_width = 600
<ide>
<ide> # path to the model weights file.
<ide> weights_path = 'vgg16_weights.h5'
<ide>
<ide>
<ide> def preprocess_image(... | 1 |
Javascript | Javascript | remove duplicate code, clearer parameter names | 4fa2c408f02c723bd7389a705d9aebd42429f8da | <ide><path>src/core/core.controller.js
<ide> function compare2Level(l1, l2) {
<ide> };
<ide> }
<ide>
<del>function onAnimationsComplete(ctx) {
<del> const chart = ctx.chart;
<add>function onAnimationsComplete(context) {
<add> const chart = context.chart;
<ide> const animationOptions = chart.options.animation;
<ide> ... | 1 |
Text | Text | fix broken link | d96c422cfc1c63e7cdf56dcc3608cbda5efcd948 | <ide><path>website/docs/usage/linguistic-features.md
<ide> hyperparameters, pipeline and tokenizer used for constructing and training the
<ide> pipeline. The `[nlp.tokenizer]` block refers to a **registered function** that
<ide> takes the `nlp` object and returns a tokenizer. Here, we're registering a
<ide> function ca... | 1 |
Ruby | Ruby | remove locale key for to_sentence | b99c21a0151df7f8828b3ba7d5638646849d825b | <ide><path>actionpack/lib/action_controller/metal/exceptions.rb
<ide> class UrlGenerationError < ActionControllerError #:nodoc:
<ide>
<ide> class MethodNotAllowed < ActionControllerError #:nodoc:
<ide> def initialize(*allowed_methods)
<del> super("Only #{allowed_methods.to_sentence(locale: :en)} requests ar... | 2 |
Text | Text | improve spanish translation for ruby's guide | c2bbde95a314df738be94e462e3b21930d2c84e4 | <ide><path>guide/spanish/ruby/common-array-methods/index.md
<ide> ---
<ide> title: Common Array Methods
<del>localeTitle: Métodos comunes de matriz
<add>localeTitle: Métodos comunes de Array
<ide> ---
<del>## Métodos comunes de matriz
<add>## Métodos comunes de Array
<ide>
<del>Ruby Arrays forma una base fundamental e... | 1 |
Java | Java | add syntax highlighting to javadoc where necessary | 2d68b726b5ac4d788c44bea58e9e6cd87c4ad5a0 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java
<ide> * uses {@code @PropertySource} to contribute {@code app.properties} to the
<ide> * {@code Environment}'s set of {@code PropertySources}.
<ide> *
<del> * <pre>
<add> * <pre class="code">
<ide> * ... | 4 |
Python | Python | add type annotations for sqlite | 1bca31b541c9c39fb8e79131e1dd4a868b5122d4 | <ide><path>airflow/providers/sqlite/hooks/sqlite.py
<ide> class SqliteHook(DbApiHook):
<ide> conn_name_attr = 'sqlite_conn_id'
<ide> default_conn_name = 'sqlite_default'
<ide>
<del> def get_conn(self):
<add> def get_conn(self) -> sqlite3.dbapi2.Connection:
<ide> """
<ide> Returns a sqlite... | 2 |
Javascript | Javascript | fix typo in 'attributes' description | 9bf9c236cf5364ed7bfe01b770444eb9c3ef5450 | <ide><path>src/ng/compile.js
<ide> function directiveNormalize(name) {
<ide> *
<ide> * @description
<ide> * A shared object between directive compile / linking functions which contains normalized DOM
<del> * element attributes. The the values reflect current binding state `{{ }}`. The normalization is
<add> * elemen... | 1 |
PHP | PHP | fix coding standards | 932c9d4e2fffcccdd82648753334c1b6cf174dec | <ide><path>lib/Cake/Test/Case/Cache/CacheTest.php
<ide> public function testInvalidConfig() {
<ide> $read = Cache::read('Test', 'invalid');
<ide> }
<ide>
<del>
<ide> /**
<ide> * Test reading from a config that is undefined.
<ide> *
<ide><path>lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php
<ide> public function... | 6 |
Python | Python | fix test_write_only_fields not being executed | fca39f9dbbdbda7baa24efa6f16a0ce688349176 | <ide><path>tests/test_write_only_fields.py
<ide> def create(self, attrs):
<ide>
<ide> self.Serializer = ExampleSerializer
<ide>
<del> def write_only_fields_are_present_on_input(self):
<add> def test_write_only_fields_are_present_on_input(self):
<ide> data = {
<ide> 'email': 'foo@exam... | 1 |
Ruby | Ruby | avoid unnecessary hashes with error options | 73fb6349c98742bb404bd7ad97184d19f32a8366 | <ide><path>activerecord/lib/active_record/validations/uniqueness.rb
<ide> def validate_each(record, attribute, value)
<ide> relation = relation.merge(options[:conditions]) if options[:conditions]
<ide>
<ide> if relation.exists?
<del> record.errors.add(attribute, :taken, options.except(:case_se... | 1 |
Javascript | Javascript | fix required proptype | 3b9872265c7c07d5ba4d4e90720c72849a2b0bc7 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableListView.js
<ide> const SwipeableListView = React.createClass({
<ide> */
<ide> dataSource: PropTypes.instanceOf(SwipeableListViewDataSource).isRequired,
<ide> // Maximum distance to open to after a swipe
<del> maxSwipeDistance: PropTypes.number,
<a... | 1 |
Python | Python | add bdist_mpkg, bdist_wininst to binary dists | 19220c47cf6138b4f42f67b9b4d80f2575e22145 | <ide><path>numpy/f2py/setup.py
<ide> def _get_f2py_shebang():
<ide> """ Return shebang line for f2py script
<ide>
<del> If we are building an egg or a wheel binary package, then the shebang line
<add> If we are building a binary distribution format, then the shebang line
<ide> should be ``#!python`` rath... | 1 |
Javascript | Javascript | fix use of k without definition | 70eec3685613801310ca3799289a96be883ae843 | <ide><path>examples/js/exporters/OBJExporter.js
<ide> THREE.OBJExporter.prototype = {
<ide> var normal = new THREE.Vector3();
<ide> var uv = new THREE.Vector2();
<ide>
<del> var i, j, l, m, face = [];
<add> var i, j, k, l, m, face = [];
<ide>
<ide> var parseMesh = function ( mesh ) {
<ide> | 1 |
Text | Text | add html_escape note to changelog | 0228a73b1094a3e19ad291d2ce4789890c09578a | <ide><path>activesupport/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* ActiveSupport::JSON::Variable is deprecated. Define your own #as_json and #encode_json methods
<del> for custom JSON string literals. *Erich Menge*
<del>
<del>* Add String#indent. *fxn & Ace Suares*
<del>
<del>* Inflection... | 1 |
Javascript | Javascript | fix bad calls to .undelegate() | 8b4bd89addd2bab64656f699ee003aea03987c63 | <ide><path>test/unit/event.js
<ide> test("bind/delegate bubbling, isDefaultPrevented", function() {
<ide> });
<ide> fakeClick( $anchor2 );
<ide> $anchor2.unbind( "click" );
<del> $main.undelegate( "click" );
<add> $main.undelegate( "#foo", "click" );
<ide> $anchor2.click(function(e) {
<ide> // Let the default act... | 1 |
Ruby | Ruby | support multiple inserts | 5d6d14cb6be217abc04253da0fe49721d09e9575 | <ide><path>lib/arel/insert_manager.rb
<ide> def insert fields
<ide> self
<ide> end
<ide>
<del> def create_values values, columns
<add> def create_values values, columns = nil
<ide> Nodes::Values.new values, columns
<ide> end
<add>
<add> def create_tuple values
<add> Nodes::Tuple.new v... | 7 |
Python | Python | add missing emoticon | ff04748eb6bdfc0906ff968c4181ec2890ee0fdd | <ide><path>spacy/language_data/emoticons.py
<ide> :/
<ide> :-/
<ide> =/
<add>=|
<ide> :|
<ide> :-|
<ide> :1 | 1 |
Java | Java | implement containsproperty on mappropertysource | e71fbb9f46cd3bd49b68ef30a156bc0715bd979e | <ide><path>spring-core/src/main/java/org/springframework/core/env/MapPropertySource.java
<ide>
<ide> import java.util.Map;
<ide>
<add>import org.springframework.util.Assert;
<ide> import org.springframework.util.StringUtils;
<ide>
<ide> /**
<ide> public String[] getPropertyNames() {
<ide> return StringUtils.toStri... | 1 |
Text | Text | remove extra parentheses in privacy readme | d23fdb5876e98797f6e8f4ea6c984811b2142737 | <ide><path>privacy/README.md
<ide> proposing new student training approaches.
<ide>
<ide> To ask questions, please email `nicolas@papernot.fr` or open an issue on
<ide> the `tensorflow/models` issues tracker. Please assign issues to
<del>[(@npapernot)](https://github.com/npapernot).
<add>[@npapernot](https://github.... | 1 |
Text | Text | add extra info about the library | 4444ba2a8ce436c081cc88a6ede48638fc847b63 | <ide><path>guide/english/data-science-tools/pandas/index.md
<ide> title: pandas
<ide> 
<ide>
<ide> ## pandas
<del>[pandas](http://pandas.pydata.org/) is a Python library for data analysis using data frames. Data frames are tables of ... | 1 |
Mixed | Javascript | provide a way to copy files in exportpathmap | a8a97b07c7990c14e80f5f7d40e38c367b67a22b | <ide><path>README.md
<ide> next build
<ide> next export
<ide> ```
<ide>
<del>By default `next export` doesn't require any configuration. It will generate a default `exportPathMap` containing the routes to pages inside the `pages` directory.
<add>By default `next export` doesn't require any configuration. It will gene... | 3 |
Text | Text | remove double word "where" | 31522406b1f618f50ac78b28b533c4e3b2ca0ff9 | <ide><path>doc/guides/cve_management_process.md
<ide> advance. These CVEs are managed in a repository within the Node.js
<ide> private organization called
<ide> [cve-management](https://github.com/nodejs-private/cve-management).
<ide> For each year there will be a markdown file titled "cve-management-XXXX"
<del>where w... | 1 |
Python | Python | add trivial keras model | b09685fe4cf64afa1e92fa6970ee713ff5ece86b | <ide><path>official/resnet/keras/keras_common.py
<ide> def define_keras_flags():
<ide> """Define flags for Keras models."""
<ide> flags.DEFINE_boolean(name='enable_eager', default=False, help='Enable eager?')
<ide> flags.DEFINE_boolean(name='skip_eval', default=False, help='Skip evaluation?')
<add> flags.DEFINE_... | 3 |
Javascript | Javascript | fix missing negation | e39e9c134c1f6043a5c86d838f2a31ac67b2ca9d | <ide><path>lib/NormalModule.js
<ide> class NormalModule extends Module {
<ide> if(this.error) return true;
<ide>
<ide> // always rebuild when module is not cacheable
<del> if(this.cacheable) return true;
<add> if(!this.cacheable) return true;
<ide>
<ide> const highestFileDepTimestamp = this.getHighestTimestam... | 1 |
Python | Python | delay import from inspect to reduce startup time | a80dbfe6e36a1c4cc455c3ce9b6e563588c7524c | <ide><path>numpy/testing/utils.py
<ide> import sys
<ide> import re
<ide> import operator
<del>from inspect import isfunction
<ide> from nosetester import import_nose
<ide>
<ide> __all__ = ['assert_equal', 'assert_almost_equal','assert_approx_equal',
<ide> def decorate_methods(cls, decorator, testmatch=None):
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.