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
Text
Text
fix typo in issue template
c791f6312b092678c2a152d0605e49c26831cb05
<ide><path>.github/ISSUE_TEMPLATE/feature-request.md <ide> about: Suggest a new feature for Flask <ide> <ide> <!-- <ide> Replace this comment with a description of what the feature should do. <del>Include details such as links relevant specs or previous discussions. <add>Include details such as links to relevant specs...
1
PHP
PHP
fix trailing / present when extensions were used
e1db220414569e78758f97fa95dbdbf2e8acb3fd
<ide><path>lib/Cake/Routing/Route/Route.php <ide> protected function _writeUrl($params, $pass = array(), $query = array()) { <ide> $out <ide> ); <ide> } <add> if (!empty($params['_ext']) || !empty($query)) { <add> $out = rtrim($out, '/'); <add> } <ide> if (!empty($params['_ext'])) { <ide> $out .= '.' ...
2
Javascript
Javascript
fix a warning typo
9065e02d66a86466d687a888c78710728cff652b
<ide><path>packages/react-native-renderer/src/ReactNativeFiberInspector.js <ide> if (__DEV__) { <ide> ); <ide> } else { <ide> console.error( <del> 'getInspectorDataForViewAtPoint expects to receieve a host component', <add> 'getInspectorDataForViewAtPoint expects to receive a host componen...
1
Ruby
Ruby
fix copy button for irb code examples [ci-skip]
c1c45600012f17632d4e74e3564675d1133b283b
<ide><path>guides/rails_guides/markdown/renderer.rb <ide> def lexer_language(code_type) <ide> end <ide> <ide> def clipboard_content(code, language) <del> if language == "bash" <del> prompt_regexp = /^\$ / <del> code = code.split("\n"). <del> select { |line| l...
1
Ruby
Ruby
guess system xquartz version when mdfind fails
7a4facae2fc4468e2bc80c847ede1e51a1ed6230
<ide><path>Library/Homebrew/macos/xquartz.rb <ide> def version <ide> path = MacOS.app_with_bundle_id(FORGE_BUNDLE_ID) || MacOS.app_with_bundle_id(APPLE_BUNDLE_ID) <ide> if not path.nil? and path.exist? <ide> `mdls -raw -name kMDItemVersion "#{path}" 2>/dev/null`.strip <add> elsif prefix.to_s ==...
1
Ruby
Ruby
remove indexer class from rails guide generator
0589fe4c3a33ed868e6f10ab7e9f94476a4e48fe
<ide><path>guides/rails_guides/generator.rb <ide> require "action_view" <ide> <ide> require "rails_guides/markdown" <del>require "rails_guides/indexer" <ide> require "rails_guides/helpers" <ide> require "rails_guides/levenshtein" <ide> <ide><path>guides/rails_guides/indexer.rb <del># frozen_string_literal: true <del>...
2
Javascript
Javascript
remind the developer to destroy their intervals
277a5ea05d50fb27243b98570c3ca9394b31e935
<ide><path>src/ng/interval.js <ide> function $IntervalProvider() { <ide> * In tests you can use {@link ngMock.$interval#methods_flush `$interval.flush(millis)`} to <ide> * move forward by `millis` milliseconds and trigger any functions scheduled to run in that <ide> * time. <add> * <add> * ...
1
Python
Python
add feature class
0cc169fcd6c286955db6d36216e492fcc2ef590c
<ide><path>libcloud/base.py <ide> import hashlib <ide> from pipes import quote as pquote <ide> <add>class Features(object): <add> AUTH_SSH_KEY = 1 <add> AUTH_PASSWORD = 2 <add> <ide> class Node(object): <ide> """ <ide> A Base Node class to derive from. <ide> def list_sizes(self): <ide> <ide> def lis...
1
Text
Text
add doc cleaner to menu
bf95f0a1dd41863b81adc3eda302b0389ad3f9e4
<ide><path>website/docs/api/pipeline-functions.md <ide> menu: <ide> - ['merge_entities', 'merge_entities'] <ide> - ['merge_subtokens', 'merge_subtokens'] <ide> - ['token_splitter', 'token_splitter'] <add> - ['doc_cleaner', 'doc_cleaner'] <ide> --- <ide> <ide> ## merge_noun_chunks {#merge_noun_chunks tag="functi...
1
Ruby
Ruby
remove database specific json types
2568414f49cc74522569941004104289d0175e72
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def binary_to_sql(limit) # :nodoc: <ide> end <ide> end <ide> <del> class MysqlJson < Type::Json # :nodoc: <del> end <del> <ide> class MysqlString < Type::String # :nodoc: <ide> ...
3
Ruby
Ruby
avoid unnecessary allocations/calls
0488d0021190970c894b30bd2b4b05fbeaa75f83
<ide><path>activerecord/lib/active_record/associations/has_many_through_association.rb <ide> def delete_records(records, method) <ide> if scope.klass.primary_key <ide> count = scope.destroy_all.length <ide> else <del> scope.to_a.each do |record| <add> scop...
5
PHP
PHP
remove extra newline
f2eea49dec2d44d8fca51fc4e7547494fc0c211e
<ide><path>src/Network/CorsBuilder.php <ide> */ <ide> namespace Cake\Network; <ide> <del> <ide> /** <ide> * A builder object that assists in defining Cross Origin Request related <ide> * headers.
1
Java
Java
fix broken javadoc link in @testpropertysource
2963fd9e5a8f01eb365469b50d443d56fc7a8ad0
<ide><path>spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java <ide> * <ide> * <h3>Precedence</h3> <ide> * <p>Properties declared via this attribute have higher precedence than <del> * properties loaded from resource {@link locations}. <add> * properties loaded from resource {@lin...
1
Text
Text
add video link of mit opencourseware.
9e84b34d4f79f2b01524f913928163fd74690ca6
<ide><path>guide/english/algorithms/greedy-algorithms/index.md <ide> Greedy Algorithms help us solve a lot of different kinds of problems. Stay tuned <ide> <a href="https://www.youtube.com/watch?v=poWB2UCuozA" target="_blank"> <ide> <img src="http://img.youtube.com/vi/poWB2UCuozA/0.jpg" alt="Greedy Problems" width="2...
1
Python
Python
fix a bug in run_glue.py
059bb258174319ef1ade3d7179889dd99b1cfb4e
<ide><path>examples/text-classification/run_glue.py <ide> def main(): <ide> if ( <ide> model.config.label2id != PretrainedConfig(num_labels=num_labels).label2id <ide> and data_args.task_name is not None <del> and is_regression <add> and not is_regression <ide> ): <ide> # So...
1
PHP
PHP
use string functions instead of splfileinfo
42ca164561cb69a9a0910c347670881921440ccd
<ide><path>src/Console/CommandScanner.php <ide> use Cake\Core\Plugin; <ide> use Cake\Filesystem\Filesystem; <ide> use Cake\Utility\Inflector; <del>use SplFileInfo; <ide> <ide> /** <ide> * Used by CommandCollection and CommandTask to scan the filesystem <ide> public function scanCore(): array <ide> protected funct...
1
Javascript
Javascript
add a deprecation warning when importing netinfo
d9c0dfe353eceb91efcec774bab0f65b6792e4fa
<ide><path>Libraries/react-native/react-native-implementation.js <ide> module.exports = { <ide> 'webview-moved', <ide> 'WebView has been extracted from react-native core and will be removed in a future release. ' + <ide> "It can now be installed and imported from 'react-native-webview' instead of 'r...
1
Go
Go
add debug output to foreign layer pull
6b7d028085e0e6ac0c5f224f0a493839e2beeba3
<ide><path>distribution/pull_v2_windows.go <ide> import ( <ide> "net/http" <ide> "os" <ide> <add> "github.com/Sirupsen/logrus" <ide> "github.com/docker/distribution" <ide> "github.com/docker/distribution/context" <ide> "github.com/docker/distribution/manifest/schema2" <ide> func (ld *v2LayerDescriptor) open(ctx c...
1
PHP
PHP
fix typehints in collection
11b06c4f4c0eaffb1bda4af5eaa3c628ac3fc8b4
<ide><path>src/Database/Schema/Collection.php <ide> namespace Cake\Database\Schema; <ide> <ide> use Cake\Database\Exception; <del>use Cake\Datasource\ConnectionInterface; <add>use Cake\Database\Connection; <ide> use PDOException; <ide> <ide> /** <ide> class Collection <ide> /** <ide> * Connection object <ide...
1
Ruby
Ruby
update example test documentation
75df8b9a77315b3af363c238918eedf52004c9b0
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> module HttpAuthentication <ide> # In your integration tests, you can do something like this: <ide> # <ide> # def test_access_granted_from_xml <del> # get( <del> # "/notes/1.xml", nil, <del> # 'HTTP_AUTH...
1
Javascript
Javascript
remove watchdog in test-debug-signal-cluster
b0486b14e5f92ddbbb71ac062cecac49cd477a7c
<ide><path>test/parallel/test-debug-signal-cluster.js <ide> function onNoMoreDebuggerAgentsOutput() { <ide> process.exit(); <ide> } <ide> <del>setTimeout(function testTimedOut() { <del> common.fail('test timed out'); <del>}, common.platformTimeout(4000)).unref(); <del> <ide> process.on('exit', function onExit() { <...
1
Javascript
Javascript
remove test condition for dependency=url
69d69d600326dac6e8ebbb016a525a160b8eea17
<ide><path>lib/config/defaults.js <ide> const applyModuleDefaults = ( <ide> } <ide> if (asset) { <ide> rules.push({ <del> test: /\.js$/, <ide> dependency: "url", <ide> type: "asset/resource" <ide> });
1
Javascript
Javascript
move rest of requirejsstuffplugin to es6
e73cbf3e601070079355bf56e1dfbb4d676b95dd
<ide><path>test/RequireJsStuffPlugin.test.js <del>var should = require("should"); <del>var sinon = require("sinon"); <del>var RequireJsStuffPlugin = require("../lib/RequireJsStuffPlugin"); <del>var applyPluginWithOptions = require("./helpers/applyPluginWithOptions"); <del>var PluginEnvironment = require("./helpers/Plug...
1
Text
Text
add support section in readme
6b6474d6c0575bdbcb3363f0544885f7da7ddba1
<ide><path>README.md <ide> policies, and releases are managed under an <ide> <ide> **This project is bound by a [Code of Conduct][].** <ide> <del>If you need help using or installing Node.js, please use the <del>[nodejs/help](https://github.com/nodejs/help) issue tracker. <del> <ide> <ide> # Table of Contents <ide> ...
1
PHP
PHP
fix style errors
dccc27056654aa82769ebbe1df6889ff94811f84
<ide><path>src/TestSuite/Stub/ConsoleInput.php <ide> namespace Cake\TestSuite\Stub; <ide> <ide> use Cake\Console\ConsoleInput as ConsoleInputBase; <del>use Cake\TestSuite\Stub\MissingConsoleInputException; <ide> use NumberFormatter; <ide> <ide> /** <ide><path>src/TestSuite/Stub/MissingConsoleInputException.php <ide> ...
4
Python
Python
fix opt softmax small nit
3a27ba3d18b9691926b296b0a6a483313b0299ba
<ide><path>src/transformers/models/opt/modeling_opt.py <ide> def forward( <ide> attn_weights = attn_weights.view(bsz, self.num_heads, tgt_len, src_len) + attention_mask <ide> attn_weights = torch.max(attn_weights, torch.tensor(torch.finfo(attn_weights.dtype).min)) <ide> attn_weights ...
1
Python
Python
fix integration slow tests
fda703a55374b3caaf4e886016f7de5810fa3571
<ide><path>tests/test_modeling_albert.py <ide> def test_model_from_pretrained(self): <ide> class AlbertModelIntegrationTest(unittest.TestCase): <ide> @slow <ide> def test_inference_no_head_absolute_embedding(self): <del> model = AlbertForPreTraining.from_pretrained("albert-base-v2") <add> model = ...
9
Javascript
Javascript
inspect all prototypes
02b66b5b866bd8398e7d815d3715ba3f94a5cf65
<ide><path>lib/internal/util/inspect.js <ide> function getEmptyFormatArray() { <ide> return []; <ide> } <ide> <del>function getConstructorName(obj) { <add>function getConstructorName(obj, ctx) { <ide> let firstProto; <ide> while (obj) { <ide> const descriptor = Object.getOwnPropertyDescriptor(obj, 'construct...
2
Python
Python
check base dir
b4eb1d9491cb96d6608fa83869aace06146ae793
<ide><path>keras/backend/__init__.py <ide> import json <ide> from .common import epsilon, floatx, set_epsilon, set_floatx <ide> <del>_keras_dir = os.path.expanduser(os.path.join('~', '.keras')) <del>if not os.access(_keras_dir, os.W_OK): <del> _keras_dir = os.path.join('/tmp', '.keras') <add>_keras_base_dir = os.pa...
1
PHP
PHP
remove unused var
14f78f857dde18a85f1860b9ba77376da9d78ed1
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> public function basics() { <ide> * @return void <ide> */ <ide> public function request() { <del> $core = App::core(); <ide> $views = array_diff(App::path('views'), App::core('views')); <ide> $controllers = array_diff(App::path('controllers'), App::core(...
1
Go
Go
use assertions in image package unit tests
69d7362058530d7dd97af29dc43fc4d55e73e776
<ide><path>image/fs_test.go <ide> import ( <ide> "path/filepath" <ide> "testing" <ide> <add> "github.com/docker/docker/pkg/testutil/assert" <ide> "github.com/opencontainers/go-digest" <ide> ) <ide> <del>func TestFSGetSet(t *testing.T) { <add>func defaultFSStoreBackend(t *testing.T) (StoreBackend, func()) { <ide> ...
3
Javascript
Javascript
use arrow functions instead of `.bind` and `self`
a68b8b708f04e1bb6c4af9226424fd871a1e3ab6
<ide><path>lib/fs.js <ide> ReadStream.prototype._read = function(n) { <ide> return this.push(null); <ide> <ide> // the actual read. <del> var self = this; <del> fs.read(this.fd, pool, pool.used, toRead, this.pos, onread); <del> <del> // move the pool positions, and internal position for reading. <del> if (th...
1
Python
Python
fix padding with large integers
51ef0c409e20490829218c4d549a3bd4c9b073a2
<ide><path>numpy/lib/arraypad.py <ide> def _prepend_const(arr, pad_amt, val, axis=-1): <ide> return np.concatenate((np.zeros(padshape, dtype=arr.dtype), arr), <ide> axis=axis) <ide> else: <del> return np.concatenate(((np.zeros(padshape) + val).astype(arr.dtype), <del> ...
2
PHP
PHP
simplify mailer class
26f65215f955f5919e313097e0a7ae4340e862a8
<ide><path>src/Mailer/Mailer.php <ide> */ <ide> namespace Cake\Mailer; <ide> <del>use ArrayAccess; <ide> use Cake\Datasource\ModelAwareTrait; <ide> use Cake\Event\EventListenerInterface; <ide> use Cake\Mailer\Exception\MissingActionException; <ide> * Our mailer could either be registered in the application bootstrap...
3
Javascript
Javascript
add error message
03cdce01084b325f2ed061d4fe027dd160dd48a5
<ide><path>src/core/DirectGeometry.js <ide> Object.assign( DirectGeometry.prototype, { <ide> var hasSkinWeights = skinWeights.length === vertices.length; <ide> <ide> // <add> <add> if ( faces.length === 0 ) { <add> <add> console.error( 'THREE.DirectGeometry: Faceless geometries are not supported.' ); <add> <a...
1
Text
Text
update example with correct syntax (#383)
204d3352735051d47bbecfa7ffdd14d0b5911cf6
<ide><path>README.md <ide> export default class Error extends React.Component { <ide> this.props.statusCode <ide> ? `An error ${this.props.statusCode} occurred on server` <ide> : 'An error occurred on client' <del> ]</p> <add> }</p> <ide> ) <ide> } <ide> }
1
Javascript
Javascript
collapse empty suffix parameters correctly
53061363c7aa1ab9085273d269c6f04ac2162336
<ide><path>src/ngResource/resource.js <ide> * `http://example.com:8080/api`), you'll need to escape the colon character before the port <ide> * number, like this: `$resource('http://example.com\\:8080/api')`. <ide> * <add> * If you are using a url with a suffix, just add the suffix, like this: <add> * `$res...
2
Javascript
Javascript
destroy the socket properly and add tests
b60b18379ddf4dfb455080c2e163846af06a4c1e
<ide><path>lib/internal/http2/core.js <ide> class Http2Session extends EventEmitter { <ide> // Otherwise, destroy immediately. <ide> if (!socket.destroyed) { <ide> if (!error) { <del> setImmediate(socket.end.bind(socket)); <add> setImmediate(socket.destroy.bind(socket)); <ide> } else {...
7
Ruby
Ruby
add space to conform with style
6a1715111e16e07a30bd61eaecf059fd90732e59
<ide><path>activerecord/lib/active_record/named_scope.rb <ide> def scoped(options = nil) <ide> # end <ide> # <ide> # def self.titles <del> # map{|article| article.title} <add> # map {|article| article.title} <ide> # end <ide> # <ide> # end
1
Mixed
Javascript
remove data checks and always re-parse data
8e7bde25c46c3c76c9c10119e93d2ea744e13f70
<ide><path>docs/docs/getting-started/v3-migration.md <ide> The following properties and methods were removed: <ide> <ide> * `helpers.addEvent` <ide> * `helpers.aliasPixel` <add>* `helpers.arrayEquals` <ide> * `helpers.configMerge` <ide> * `helpers.findIndex` <ide> * `helpers.findNextWhere` <ide><path>src/core/core.dat...
5
Text
Text
fix advisory link
a64970db92b3092547ee055d7121c2963dd155e0
<ide><path>CHANGELOG.md <ide> Changelog <ide> <ide> * Release Apr 3 2022 <ide> <del>Address https://github.com/advisories/GHSA-8hfj-j24r-96c4 <add>Address https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 <ide> <ide> ### 2.29.1 [See full changelog](https://gist.github.com/marwahaha/cc478ba01a1...
1
Ruby
Ruby
replace #max_by with #max
92d65aace7edfc751c342c019e895d33bbea013c
<ide><path>Library/Contributions/cmd/brew-linkapps.rb <ide> kegs = rack.subdirs.map { |d| Keg.new(d) } <ide> next if kegs.empty? <ide> <del> keg = kegs.detect(&:linked?) || kegs.max_by(&:version) <add> keg = kegs.detect(&:linked?) || kegs.max {|a,b| a.version <=> b.version} <ide> <ide> Dir["#{keg}/*.app", "#{...
1
Ruby
Ruby
fix bad reference to local_bottle_path
549b07e8df341b25f218b9251ab60644519f1bdb
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_filename f, bottle_version=nil <ide> <ide> def install_bottle? f <ide> return true if ARGV.include? '--install-bottle' <del> return true if f.downloader and f.downloader.local_bottle_path <add> return true if f.downloader and defined? f.downloader.local_bottl...
1
Ruby
Ruby
extract common dirty tracking methods in amo
f97dae5ebe2f19273d3f92e5ea9baba788c8e89f
<ide><path>activemodel/lib/active_model.rb <ide> module ActiveModel <ide> autoload :AttributeMethods, 'active_model/attribute_methods' <ide> autoload :Conversion, 'active_model/conversion' <ide> autoload :DeprecatedErrorMethods, 'active_model/deprecated_error_methods' <add> autoload :Dirty, 'active_model/dirty' ...
3
Go
Go
move the inspect code away from the image service
b4ffe3a9fb9d25abb1690c506e7a2cb59249c107
<ide><path>api/server/router/image/backend.go <ide> import ( <ide> "github.com/docker/docker/api/types/filters" <ide> "github.com/docker/docker/api/types/image" <ide> "github.com/docker/docker/api/types/registry" <add> dockerimage "github.com/docker/docker/image" <ide> specs "github.com/opencontainers/image-spec/sp...
8
Python
Python
add more type hints in celerykubernetesexecutor
420367d843301e9fc942019586bc9f90f6680ece
<ide><path>airflow/executors/celery_kubernetes_executor.py <ide> class CeleryKubernetesExecutor(LoggingMixin): <ide> <ide> KUBERNETES_QUEUE = conf.get('celery_kubernetes_executor', 'kubernetes_queue') <ide> <del> def __init__(self, celery_executor, kubernetes_executor): <add> def __init__(self, celery_execu...
1
Ruby
Ruby
provide correct information [ci skip]
ed62584391973c1fa3e7d53d71c1b9f16a8f0289
<ide><path>actionview/lib/action_view/helpers/date_helper.rb <ide> def time_ago_in_words(from_time, include_seconds_or_options = {}) <ide> # * <tt>:use_month_names</tt> - Set to an array with 12 month names if you want to customize month names. <ide> # Note: You can also use Rails' i18n functionality fo...
1
Ruby
Ruby
improve performance for `scope_for_create`
b66235d432d0505857ff667e0a1ddecfb5640a56
<ide><path>activerecord/lib/active_record/relation.rb <ide> def where_values_hash(relation_table_name = klass.table_name) <ide> end <ide> <ide> def scope_for_create <del> where_values_hash.merge!(create_with_value.stringify_keys) <add> hash = where_values_hash <add> create_with_value.each { |k, ...
2
Ruby
Ruby
reduce automatic_inverse_of caching logic
f379185a893503e26d160a4f326e610f05e3d6cc
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def scope_chain <ide> alias :source_macro :macro <ide> <ide> def has_inverse? <del> @options[:inverse_of] || find_inverse_of_automatically <add> inverse_name <ide> end <ide> <ide> def inverse_of <del> @inverse_o...
1
Javascript
Javascript
fix some linty things
d5a4d29532bbb7eea91b1ac806ecdfd68a795727
<ide><path>src/addons/link/ReactLink.js <ide> function ReactLink(value, requestChange) { <ide> */ <ide> function createLinkTypeChecker(linkType) { <ide> var shapes = { <del> value: typeof linkType === 'undefined' <del> ? React.PropTypes.any.isRequired <del> : linkType.isRequired, <add> value: typeof ...
3
PHP
PHP
remove redundant check in fileengine
1a179e61fd9dded143260c2e6538f764ce0a6d21
<ide><path>src/Cache/Engine/FileEngine.php <ide> public function read($key) <ide> $time = time(); <ide> $cachetime = (int)$this->_File->current(); <ide> <del> if ($cachetime < $time || ($time + $this->_config['duration']) < $cachetime) { <add> if ($cachetime < $time) { <ide> i...
1
PHP
PHP
add app()->isproduction() helper
e225b66a7916a9e964e5c09e7f749ca3be28c992
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function isLocal() <ide> return $this['env'] === 'local'; <ide> } <ide> <add> /** <add> * Determine if application is in production environment. <add> * <add> * @return bool <add> */ <add> public function isProduction()...
1
Javascript
Javascript
fix arg names in benchmark string_decoder
f48ca9c9c151fa375640862675abf964099fbb1d
<ide><path>test/parallel/test-benchmark-string_decoder.js <ide> require('../common'); <ide> <ide> const runBenchmark = require('../common/benchmark'); <ide> <del>runBenchmark('string_decoder', ['chunk=16', <add>runBenchmark('string_decoder', ['chunkLen=16', <ide> 'encoding=utf8', <del>...
1
Mixed
Javascript
add finddomnode transform
20004e94d399541da70d08fd12b64dafb498ebce
<ide><path>npm-react-codemod/README.md <ide> APIs. <ide> * Use the `-d` option for a dry-run and use `-p` to print the output <ide> for comparison <ide> <add>### Included Scripts <add> <add>`findDOMNode.js` updates `this.getDOMNode()` or `this.refs.foo.getDOMNode()` <add>calls inside of `React.createClass` compo...
5
Javascript
Javascript
fix decrypting of arrays
63c9685ea73f664183685179a33cb3fe5ba6783e
<ide><path>src/parser.js <ide> var Parser = (function ParserClosure() { <ide> this.shift(); <ide> var array = []; <ide> while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) <del> array.push(this.getObj()); <add> array.push(this.getObj(cipherTransform)); <ide> if (isEOF(t...
1
Javascript
Javascript
move globals in web/pdf_find_bar.js
9192fb966d395416171e33d345659be0733bd11d
<ide><path>web/pdf_find_bar.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <add>/* globals PDFFindController, FindStates, mozL10n */ <ide> <ide> 'use strict'; <ide> <del>/* globals PDFFindController, FindStates, mozL10n */ <del> <ide> ...
1
PHP
PHP
fix mailcontains escaping patterns multiple times
87c38a031aee1fe7d726fde923918f0ded3fbbad
<ide><path>src/TestSuite/Constraint/Email/MailContains.php <ide> class MailContains extends MailConstraintBase <ide> */ <ide> public function matches($other): bool <ide> { <add> $other = preg_quote($other, '/'); <ide> $messages = $this->getMessages(); <ide> foreach ($messages as $mes...
1
PHP
PHP
add comment to redirect class
54750487496b121a09b8c2cff4ac5422c3967d51
<ide><path>system/redirect.php <ide> public function with($key, $value) <ide> */ <ide> public static function __callStatic($method, $parameters) <ide> { <add> // Get the parameters for the method. Dynamic routes can be generated using an <add> // array of parameters for routes that contain wildcards, such as /use...
1
PHP
PHP
fix code style 5
69015fc853c47ce54d9ad36d8c8874c85ccf0bbb
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function qualifyColumns($columns) <ide> foreach ($columns as $column) { <ide> $qualifiedArray[] = $this->qualifyColumn($column); <ide> } <add> <ide> return $qualifiedArray; <ide> } <ide>
1
Text
Text
add bmuenzenmeyer to triagers
ac62f8bd3f02c0b4d0e7ebae48b0318a5493bf8c
<ide><path>README.md <ide> maintaining the Node.js project. <ide> <ide> * [Ayase-252](https://github.com/Ayase-252) - <ide> **Qingyu Deng** <<i@ayase-lab.com>> <add>* [bmuenzenmeyer](https://github.com/bmuenzenmeyer) - <add> **Brian Muenzenmeyer** <<brian.muenzenmeyer@gmail.com>> (he/him) <ide> * [daeyeon](https://...
1
Ruby
Ruby
add begin/ensure block since we are returning
591fcbafcd2eea58ac2ede2bb4daed8c713d07da
<ide><path>actionpack/lib/action_dispatch/middleware/body_proxy.rb <ide> def respond_to?(*args) <ide> def close <ide> return if @closed <ide> @closed = true <del> @body.close if @body.respond_to? :close <del> ensure <del> @block.call <add> begin <add> @body.close if @body.respon...
1
Ruby
Ruby
move bottle output to erb
fd34bd6b9029d905edc0bf044ab891ccb804e8e8
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> require 'tab' <ide> require 'keg' <ide> require 'cmd/versions' <add>require 'erb' <ide> <ide> class BottleMerger < Formula <ide> # This provides a URL and Version which are the only needed properties of <ide> class BottleMerger < Formula <ide> def self.reset_bottle; ...
1
Ruby
Ruby
converge three lines into one
aeafc09921116e356494e1effc7cf61435f22104
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def build_joins(manager, joins) <ide> association_joins = buckets[:association_join] || [] <ide> stashed_association_joins = buckets[:stashed_join] || [] <ide> join_nodes = (buckets[:join_node] || []).uniq...
1
Javascript
Javascript
fix some whitespace issues
6b08d88d04f4a41849753999e6e18126895086d0
<ide><path>src/core.js <ide> jQuery.fn = jQuery.prototype = { <ide> jQuery.fn.init.prototype = jQuery.fn; <ide> <ide> jQuery.extend = jQuery.fn.extend = function() { <del> var options, name, src, copy, copyIsArray, clone, <add> var options, name, src, copy, copyIsArray, clone, <ide> target = arguments[0] || {}, <id...
7
Javascript
Javascript
add regression test for
d2e7ca0449299d29f66dd682e9c9118c535fd61e
<ide><path>test/simple/test-net-end-without-connect.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software wi...
1
PHP
PHP
pass exception object to view
a021cf29b8cfdceb28b37e36425acf8067297eae
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> protected function renderHttpException(HttpException $e) <ide> <ide> if (view()->exists("errors.{$status}")) <ide> { <del> return response()->view("errors.{$status}", [], $status); <add> return response()->view("errors.{$status}", ['e' => $e], $...
1
Python
Python
fix a bug in cloudfiles driver
d92b13da1042774876c53127dc58b332159aad82
<ide><path>libcloud/storage/drivers/cloudfiles.py <ide> except: <ide> import simplejson as json <ide> <del>from libcloud import utils <add>from libcloud.utils import fixxpath, findtext, in_development_warning <add>from libcloud.utils import read_in_chunks <ide> from libcloud.common.types import MalformedResponseEr...
1
Python
Python
add postmortem metadata for v8 turbofan
31ce2c1b92855726a5d9ac035e41ef430379e40e
<ide><path>deps/v8/tools/gen-postmortem-metadata.py <ide> 'JSObject, elements, Object, kElementsOffset', <ide> 'JSObject, internal_fields, uintptr_t, kHeaderSize', <ide> 'FixedArray, data, uintptr_t, kHeaderSize', <add> 'FixedTypedArrayBase, external_pointer, Object, kExternalPointerOffset', <ide> 'J...
1
PHP
PHP
implement retriesleft correctly
36618f99b3b022806c587328d6122768afadb10d
<ide><path>src/Illuminate/Cache/RateLimiter.php <ide> public function attempts($key) <ide> return $this->cache->get($key, 0); <ide> } <ide> <add> /** <add> * Get the number of retries left for the given key. <add> * <add> * @param string $key <add> * @param int $maxAttempts <add> ...
2
PHP
PHP
remove extra brackets
57a6c06ade7bc329316c44c3938888936018a5bb
<ide><path>src/Illuminate/Http/Request.php <ide> public function is() <ide> */ <ide> public function routeIs() <ide> { <del> if ((! $route = $this->route()) || ! $routeName = $route->getName()) { <add> if (! $route = $this->route() || ! $routeName = $route->getName()) { <ide> retu...
1
Python
Python
change the process list algorithm
c9f5c9b518d2399a8b19d4edd09e22ad1376ec61
<ide><path>src/glances.py <ide> #===== <ide> <ide> application = 'glances' <del>__version__ = "1.4b2" <add>__version__ = "1.4b3" <ide> gettext.install(application) <ide> <ide> try: <ide> def __init__(self): <ide> self.glancesgrabfs = glancesGrabFs() <ide> except: <ide> self.glancesgrabfs = {} <del> <add>...
1
Ruby
Ruby
escape $ inreplace 'after' parameter
3f11c4ab1ff72057d3bb4cc86058512f78f4e818
<ide><path>Library/Homebrew/brewkit.rb <ide> def inreplace(path, before, after) <ide> after=after.to_s <ide> after.gsub! "\\", "\\\\" <ide> after.gsub! "/", "\\/" <add> after.gsub! "$", "\\$" <ide> <ide> # FIXME use proper Ruby for teh exceptions! <ide> safe_system "perl", "-pi", "-e", "s/#{before}/#{after}...
1
PHP
PHP
apply fixes from styleci
6c0ec9dfeedcb6324c7655f788a794bcf4ae10ba
<ide><path>src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php <ide> public function attributesFor(Model $model) <ide> <ide> return $relationship instanceof MorphTo ? [ <ide> $relationship->getMorphType() => (new $this->factory->model)->getMorphClass(), <del> $relationsh...
2
Go
Go
reduce use of const for driver name
aca80d1cda4da98ca8686d58a7c15b41cce96ef6
<ide><path>libnetwork/drivers/ipvlan/ipvlan.go <ide> const ( <ide> containerVethPrefix = "eth" <ide> vethPrefix = "veth" <ide> <del> ipvlanType = "ipvlan" // driver type name <add> driverName = "ipvlan" // driver type name <ide> parentOpt = "parent" // parent interface -o parent <i...
4
Mixed
Javascript
add trigger rule tooltip
f94176bc7b28b496c34974b6e2a21781a9afa221
<ide><path>airflow/www/static/js/gantt.js <ide> d3.gantt = () => { <ide> const tip = d3.tip() <ide> .attr('class', 'tooltip d3-tip') <ide> .offset([-10, 0]) <del> .html((d) => tiTooltip(d, { includeTryNumber: true })); <add> .html((d) => tiTooltip(d, null, { includeTryNumber: true })); <ide> <ide> le...
4
PHP
PHP
simplify code for json_encode()
f07afda7c673c9beaad382eeaf4b19314759b2df
<ide><path>src/View/JsonView.php <ide> protected function _serialize($serialize) <ide> } <ide> <ide> if (Configure::read('debug')) { <del> return json_encode($data, $jsonOptions | JSON_PRETTY_PRINT); <add> $jsonOptions = $jsonOptions | JSON_PRETTY_PRINT; <ide> } <del> <ide...
1
Javascript
Javascript
remove unused variables
c03b9e5ec4153078923347d53cbd0d7dfc4e2212
<ide><path>src/Angular.js <ide> function encodeUriQuery(val, pctEncodeSpaces) { <ide> var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; <ide> <ide> function getNgAttribute(element, ngAttr) { <del> var attr, i, ii = ngAttrPrefixes.length, j, jj; <add> var attr, i, ii = ngAttrPrefixes.length; <ide> element =...
1
Javascript
Javascript
handle initedraw pkey failure
17bb7b2936a8098a31947854ce261d094f7ca5df
<ide><path>lib/internal/crypto/ec.js <ide> function createECRawKey(namedCurve, keyData, isPublic) { <ide> break; <ide> } <ide> <del> if (isPublic) { <del> handle.initEDRaw(namedCurve, keyData, kKeyTypePublic); <del> return new PublicKeyObject(handle); <add> const keyType = isPublic ? kKeyTypePublic : k...
2
Javascript
Javascript
add two stream implementations
0dce02229159bec58a651f3185b87d2bcc76659b
<ide><path>src/geo/stream-buffer.js <add>function d3_geo_streamBuffer() { <add> this._buffer = []; <add> this._point = d3_geo_pathCircle(4.5); <add>} <add> <add>var d3_geo_streamBufferPrototype = { <add> point: d3_geo_streamBufferPoint, <add> <add> // While inside a line, override point to moveTo then lineTo. <add>...
2
Javascript
Javascript
simplify one ajax call and add explanatory comment
0ac28ed293681cb8f2e9fdd11efa0021da039c84
<ide><path>src/ajax/script.js <ide> jQuery.ajaxTransport( "script", function( s ) { <ide> return { <ide> send: function( _, complete ) { <ide> script = jQuery("<script>").prop({ <del> async: true, <ide> charset: s.scriptCharset, <ide> src: s.url <ide> }).on( <ide><path>src/manipulation/_evalU...
2
PHP
PHP
fix memory leak in translatorregistry
c08ea60ea1d04d3106572c4c6555e2202e18eb9e
<ide><path>src/I18n/TranslatorRegistry.php <ide> public function get(string $name, ?string $locale = null): ?Translator <ide> $keyName = str_replace('/', '.', $name); <ide> $key = "translations.{$keyName}.{$locale}"; <ide> $translator = $this->_cacher->get($key); <add> gc_collect_cycles()...
1
Text
Text
add readme file for the archive directory
28fc387cf0c933128d0adad6d633c8f4a719d8ee
<ide><path>archive/README.md <add>This code provides helper functions for dealing with archive files. <add> <add>**TODO**: Move this to either `pkg` or (if not possible) to `utils`.
1
Mixed
Text
remove references to xxxbuffergeometry
fbac88d731b85fc9b25c69ce7161edd2566ed40c
<ide><path>threejs/lessons/fr/threejs-primitives.md <ide> La plupart des primitives ci-dessous ont des valeurs par défaut <ide> pour certains ou tous leurs paramètres. Vous pouvez donc les <ide> utiliser en fonction de vos besoins. <ide> <del><div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">Une B...
7
Javascript
Javascript
hide runtime in examples by default
80fca63e7be6c81189e52b85e1a7cf8d693aa59c
<ide><path>examples/build-common.js <ide> var fs = require("fs"); <ide> var extraArgs = ""; <ide> <ide> var targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js js/output.js"; <del>var displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports"; <add>var displayReasons = global.NO_REASONS...
2
Javascript
Javascript
add a header for the directive info section
1b4289ce769e1c32cde6e5b246c1a176b9ecf491
<ide><path>docs/src/ngdoc.js <ide> Doc.prototype = { <ide> if (self.priority !== undefined) { <ide> list.push('This directive executes at priority level ' + self.priority + '.'); <ide> } <del> dom.ul(list); <add> <add> if (list.length) { <add> dom.h('Directive info', function() { <add> d...
1
Go
Go
fix duplicate layers in manifest
35081ea4b6711b1cfccb67b0f0d691b7adc85ff6
<ide><path>graph/push.go <ide> func (s *TagStore) pushV2Repository(r *registry.Session, localRepo Repository, o <ide> } <ide> <ide> layersSeen := make(map[string]bool) <del> layers := []*image.Image{layer} <add> layers := []*image.Image{} <ide> for ; layer != nil; layer, err = s.graph.GetParent(layer) { <ide> ...
1
PHP
PHP
trim comment bloat on response class
e334fd80b6167c48f26ec82b6abc993b0c0635dc
<ide><path>system/response.php <ide> public static function make($content, $status = 200) <ide> */ <ide> public static function prepare($response) <ide> { <del> // -------------------------------------------------------------- <del> // If the response is a Redirect instance, grab the Response. <del> // The Redir...
1
Javascript
Javascript
parse quarter from string
ca4184ae21f239dc90a1f0be398469b3b07eeecd
<ide><path>moment.js <ide> isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, <ide> <ide> // format tokens <del> formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W...
2
Go
Go
expose daemonhost to client users
6ce6ae1cd11d888e0c8ede20926b86981cee5ce1
<ide><path>client/client.go <ide> func (cli *Client) UpdateClientVersion(v string) { <ide> <ide> } <ide> <add>// DaemonHost returns the host associated with this instance of the Client. <add>// This operation doesn't acquire a mutex. <add>func (cli *Client) DaemonHost() string { <add> return cli.host <add>} <add> <id...
2
Javascript
Javascript
remove unused method
fc7834f9acc8463c6cae146d973d3f224b49696e
<ide><path>src/parser.js <ide> function parser(text, json){ <ide> return { <ide> assignable: assertConsumed(assignable), <ide> primary: assertConsumed(primary), <del> statements: assertConsumed(statements), <del> filter: assertConsumed(filter) <add> statements: assertConsumed(statements) <i...
1
Javascript
Javascript
add urlfor to router
c01c19f023efa4279a4d9465c8aaa951e05a847b
<ide><path>packages/ember-states/lib/routable.js <ide> var paramForClass = function(classObject) { <ide> return Ember.String.underscore(last) + "_id"; <ide> }; <ide> <add>var merge = function(original, hash) { <add> for (var prop in hash) { <add> if (!hash.hasOwnProperty(prop)) { continue; } <add> original[pr...
3
Text
Text
remove documentation references to dockerinit
e72192be404c9a8489191d43fd6e5c429081d5c8
<ide><path>project/PACKAGERS.md <ide> the file "./VERSION". This binary is usually installed somewhere like <ide> <ide> ### Dynamic Daemon / Client-only Binary <ide> <del>If you are only interested in a Docker client binary, set `DOCKER_CLIENTONLY` to a non-empty value using something similar to the following: (which...
1
Javascript
Javascript
remove buildid from dynamic import urls
337fb6a9aadb61c916f0121c899e463819cd3f33
<ide><path>server/build/babel/plugins/handle-import.js <ide> const buildImport = (args) => (template(` <ide> eval('require.ensure = function (deps, callback) { callback(require) }') <ide> require.ensure([], (require) => { <ide> let m = require(SOURCE) <del> m.__webpackChunkName = '${a...
9
Python
Python
matcher segfaults on particular input
782e4814f4ef4c5dead5cd633dd07b35400636b0
<ide><path>spacy/tests/regression/test_issue587.py <add>import spacy <add>import spacy.matcher <add> <add>import pytest <add> <add>@pytest.mark.models <add>def test_matcher_segfault(): <add> nlp = spacy.load('en', parser=False, entity=False) <add> matcher = spacy.matcher.Matcher(nlp.vocab) <add> content = u'''...
1
Python
Python
add alert for the monitored processes list
5c3eeba0ca663a557a1b7e9e4cbb8f260cedd525
<ide><path>glances/glances.py <ide> def __itemexist__(self, item_type): <ide> return i <ide> return -1 <ide> <del> def add(self, item_state, item_type, item_value, proc_list=[]): <add> def add(self, item_state, item_type, item_value, proc_list=[], proc_desc=""): <ide> """ <ide> ...
1
Ruby
Ruby
use new migration style in habtm join table
d64e0955d04a40355e312ca4ee57b2c9a8e248cc
<ide><path>activerecord/lib/active_record/associations.rb <ide> def belongs_to(name, options = {}) <ide> # join table with a migration such as this: <ide> # <ide> # class CreateDevelopersProjectsJoinTable < ActiveRecord::Migration <del> # def self.up <add> # def change <ide> ...
1
Javascript
Javascript
fix bad wording in pointer events doc
56c40baa06fc98a69e5193022310072b7a842416
<ide><path>Libraries/Components/View/View.js <ide> const View = React.createClass({ <ide> * - 'auto': The View can be the target of touch events. <ide> * - 'none': The View is never the target of touch events. <ide> * - 'box-none': The View is never the target of touch events but it's <del> * ...
1
Python
Python
break long line
5345ed1fef98af2ee1253633134f6df47f3a7e04
<ide><path>numpy/add_newdocs.py <ide> <ide> add_newdoc('numpy.core.multiarray','fromfile', <ide> """fromfile(file=, dtype=float, count=-1, sep='') <del> <add> <ide> Return an array of the given data type from a text or binary file. <del> <add> <ide> Data written using the tofile() method can be con...
1
Ruby
Ruby
add documentation to messageverifier
9fd4fbd1fb74f1eafed456875e39164ae0f6d7c8
<ide><path>activesupport/lib/active_support/message_verifier.rb <ide> def initialize(secret, options = {}) <ide> @serializer = options[:serializer] || Marshal <ide> end <ide> <del> # FIXME: Document this method <add> # Checks if a signed message could have been generated by signing an object <add> #...
1
Mixed
Ruby
fix typo of duplicated `the` [ci skip]
7217179d1e03ab3d6ece4f3aa19fe29af2a496da
<ide><path>activerecord/lib/active_record/database_configurations.rb <ide> def initialize(configurations = {}) <ide> # configs for all environments. <ide> # <tt>spec_name:</tt> The specification name (ie primary, animals, etc.). Defaults <ide> # to +nil+. <del> # <tt>include_replicas:</tt> Determines whe...
2