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 typos in texture article
45a32b784f787facb555062d0d263629b479eec0
<ide><path>threejs/lessons/threejs-textures.md <ide> Title: Three.js Textures <del>Description: Using Textures in three.js <add>Description: Using textures in three.js <ide> <ide> This article is one in a series of articles about three.js. <ide> The first article was [about three.js fundamentals](threejs-fundamentals....
1
PHP
PHP
add sanctum cookie endpoint to default cors paths
aa6d3660114c93e537a52e0ba3c03071a7f3e67f
<ide><path>config/cors.php <ide> | <ide> */ <ide> <del> 'paths' => ['api/*'], <add> 'paths' => ['api/*', 'sanctum/csrf-cookie'], <ide> <ide> 'allowed_methods' => ['*'], <ide>
1
Python
Python
fix cloudstack lb tests, gogrid tests and s3 tests
da0a40e003a88883d1e33b97499fbb6ef1eecef5
<ide><path>libcloud/test/__init__.py <ide> def __init__(self, *args, **kwargs): <ide> unittest.TestCase.__init__(self, '__init__') <ide> super(MockHttp, self).__init__(*args, **kwargs) <ide> <del> def _get_request(self, method, url, body=None, headers=None, raw=False, stream=False): <add> def...
5
Ruby
Ruby
ask the strexp for the ast
eabe504cdfa11b580c614d6bd501eb7cc60f485d
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> class Pattern # :nodoc: <ide> attr_reader :spec, :requirements, :anchored <ide> <ide> def initialize(strexp) <del> parser = Journey::Parser.new <del> <ide> @anchored = true <ide> <ide> case strexp <ide...
2
Ruby
Ruby
fix regex location
0321acf9bee02903ccb0db7d8b2ff39da26100bf
<ide><path>Library/Homebrew/brew_doctor.rb <ide> def check_for_config_scripts <ide> paths = ENV['PATH'].split(':').collect{|p| File.expand_path p} <ide> paths.each do |p| <ide> next if ['/usr/bin', '/usr/sbin', '/usr/X11/bin', "#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/sbin"].include? p <del> next if %r[^...
1
Go
Go
add images testcase
832f39c2ed53fc4a91265798198273044448bc7f
<ide><path>image/image_test.go <ide> package image <ide> <ide> import ( <ide> "encoding/json" <add> "runtime" <ide> "sort" <ide> "strings" <ide> "testing" <ide> func TestMarshalKeyOrder(t *testing.T) { <ide> } <ide> } <ide> <add>func TestImage(t *testing.T) { <add> cid := "50a16564e727" <add> config := &containe...
1
Ruby
Ruby
remove redundant eos
52de5aa9847d700b63c70ec75c1a98dc848c43e4
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_xcode_up_to_date <ide> Xcode can be updated from <ide> https://developer.apple.com/downloads <ide> EOS <del> EOS <ide> end <ide> end <ide> else
1
Python
Python
add the psutil version to the -v and -h tag
94a7cc57cad2511244ac5cac9d615c2bf6dfbbf2
<ide><path>glances/glances.py <ide> def displayProcess(self, processcount, processlist, sortedby='', log_count=0): <ide> _("Compute data..."), 15) <ide> return 6 <ide> <add> # Display the processes list <ide> proc_num = min(screen_y - self...
1
Text
Text
fix spelling of "loader"
83ac8b67de897b15a6e5aedad054605989cdf61d
<ide><path>README.md <ide> that include your webpack.config.js and relevant files are more likely to receiv <ide> <ide> If you have discovered a bug or have a feature suggestion, feel free to create an issue on Github. <ide> <del>If you create a lodaer or plugin, please consider open sourcing it, putting it <add>If y...
1
Text
Text
fix tensorflow_models keras_nlp link
1308ecdc81a942f60af1092597cc5ac2ea7a0766
<ide><path>official/nlp/keras_nlp/contributing.md <ide> Patches to KerasNLP are welcome! <ide> <ide> The source-of-truth repository lives under <del>[TF Model Garden NLP](https://github.com/tensorflow/models/official/nlp/keras_nlp), <add>[TF Model Garden NLP](https://github.com/tensorflow/models/tree/master/official/n...
1
Javascript
Javascript
remove redundant check of rli.rine.length
6b5a34cdf30827a0e64c49008b4bcdb55738bc9b
<ide><path>lib/repl.js <ide> function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) { <ide> <ide> rli.line = ''; <ide> <del> if (!(self.bufferedCommand && self.bufferedCommand.length > 0) && <del> rli.line.length === 0) { <add> if (!(self.bufferedCommand && self.bufferedCommand.length ...
1
Python
Python
remove unnecssary logging in experimental api
790bc784435646c043d8def7096917a4ce0a62f7
<ide><path>airflow/www/api/experimental/endpoints.py <ide> def trigger_dag(dag_id): <ide> try: <ide> execution_date = timezone.parse(execution_date) <ide> except ValueError: <add> log.error("Given execution date could not be identified as a date.") <ide> error_message ...
1
Javascript
Javascript
remove visiblitysupport mixin
8639e0e55bfd2d275c14da8e017fcab03c5d250e
<ide><path>packages/ember-glimmer/lib/component.js <ide> const Component = CoreView.extend( <ide> @public <ide> @since 1.13.0 <ide> */ <add> <add> /** <add> If `false`, the view will appear hidden in DOM. <add> <add> @property isVisible <add> @type Boolean <add> @default null <add> ...
4
Python
Python
skip broken tests
3f0707b2fe78bc690793783a63a37b31d124fe90
<ide><path>tests/models/owlvit/test_modeling_owlvit.py <ide> def prepare_img(): <ide> <ide> @require_vision <ide> @require_torch <add>@unittest.skip("These tests are broken, fix me Alara") <ide> class OwlViTModelIntegrationTest(unittest.TestCase): <del> # @slow <add> @slow <ide> def test_inference(self): <id...
1
Javascript
Javascript
add strokeopacity to unitless css properties
96126e9ff4934cefe11542a5fb4402cfca3b7684
<ide><path>src/browser/ui/dom/CSSProperty.js <ide> */ <ide> var isUnitlessNumber = { <ide> columnCount: true, <del> fillOpacity: true, <ide> flex: true, <ide> flexGrow: true, <ide> flexShrink: true, <ide> var isUnitlessNumber = { <ide> orphans: true, <ide> widows: true, <ide> zIndex: true, <del> zoom: ...
1
Python
Python
update doc for revision and token
24476722696de88e78fe00bd192da8b416b8b2bd
<ide><path>src/transformers/configuration_utils.py <ide> def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], <ide> proxies (`Dict[str, str]`, *optional*): <ide> A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128', <ide> ...
5
PHP
PHP
add __serialize()/__unserialize() magic methods
9697c130c698f985ea953b3325f29e3aaae42ba9
<ide><path>src/Collection/Collection.php <ide> public function serialize(): string <ide> return serialize($this->buffered()); <ide> } <ide> <add> /** <add> * Returns an array for serializing this of this object. <add> * <add> * @return array <add> */ <add> public function __serialize(...
9
Ruby
Ruby
remove unecessary require in test_helper
e1f1213c8b59a413b0c2b9581d10dbf36d0be49b
<ide><path>activestorage/test/test_helper.rb <ide> ActiveJob::Base.queue_adapter = :test <ide> ActiveJob::Base.logger = nil <ide> <del>require "active_storage" <del> <ide> # Filter out Minitest backtrace while allowing backtrace from other libraries <ide> # to be shown. <ide> Minitest.backtrace_filter = Minitest::Back...
1
PHP
PHP
apply fixes from styleci
dc68fb490d6557d33414ce22a5a38ad0ee3e5bda
<ide><path>tests/Database/DatabaseEloquentMorphToTest.php <ide> public function relation() <ide> class EloquentMorphToRelatedStub extends Model <ide> { <ide> public $table = 'eloquent_morph_to_related_stubs'; <del>} <ide>\ No newline at end of file <add>}
1
Ruby
Ruby
add block support to button_tag helper
829de9d98e59f9b083ed96a9031cd9841c83ae47
<ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb <ide> def submit_tag(value = "Save changes", options = {}) <ide> # <tt>reset</tt>button or a generic button which can be used in <ide> # JavaScript, for example. You can use the button tag as a regular <ide> # submit tag but it isn't sup...
2
Python
Python
upgrade gyp to r1034
ee2c12d48e52c066c74fd646d6a38e880b0bfa0a
<ide><path>tools/gyp/pylib/gyp/MSVSNew.py <ide> def NameThenGuid(a, b): <ide> sln_root = os.path.split(self.path)[0] <ide> for e in all_entries: <ide> relative_path = gyp.common.RelativePath(e.path, sln_root) <add> # msbuild does not accept an empty folder_name. <add> # use '.' in case relative_...
7
PHP
PHP
support universal routes
395236d6433597ca414e710a6900156e7119779b
<ide><path>laravel/routing/router.php <ide> class Router { <ide> '/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%]+)', <ide> ); <ide> <add> /** <add> * An array of HTTP request methods. <add> * <add> * @var array <add> */ <add> public static $methods = array('GET', 'POST', 'PUT', 'DELETE'); <add> <ide> /** <ide> * Regis...
1
Ruby
Ruby
move sandbox check to extend/os
9c2293a08e00e8c417df7a173b0aa13322352a59
<ide><path>Library/Homebrew/extend/os/mac/sandbox.rb <add># typed: strict <add># frozen_string_literal: true <add> <add>class Sandbox <add> sig { returns(T::Boolean) } <add> def self.available? <add> File.executable?(SANDBOX_EXEC) <add> end <add>end <ide><path>Library/Homebrew/extend/os/sandbox.rb <add># typed: s...
3
Javascript
Javascript
fix typo in partialevaluator_gettextcontent
318b286da3021bcd44895530eb828ae89add4a27
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> return queue; <ide> }, <ide> <del> getTextContent: function partialEvaluatorGetIRQueue( <add> getTextContent: function PartialEvaluator_getTextContent( <ide> ...
1
Javascript
Javascript
move require of http2 to after crypto check
94840fdb9db2a624bb3e071c462f2a8607a995bd
<ide><path>test/parallel/test-heapdump-http2.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> const { recordState } = require('../common/heap'); <del>const http2 = require('http2'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <add>const http2 = require('http2'); <ide> <id...
1
Text
Text
fix copy typo
281ad204524f6ad9943902a6a909bb56bfc3d06b
<ide><path>docs/06-Polar-Area-Chart.md <ide> Some properties are specified as arrays. The first value applies to the first ba <ide> <ide> Property | Type | Usage <ide> --- | --- | --- <del>data | `Array<Number>` | The data to plot as bars <add>data | `Array<Number>` | The data to plot as arcs <ide> label | `String` | ...
1
Ruby
Ruby
handle nil req_dependency
4ca9831da6c1b16f7ea28e32c7c21cf37845c26d
<ide><path>Library/Homebrew/formula_installer.rb <ide> def expand_requirements <ide> <ide> if (req.optional? || req.recommended?) && build.without?(req) <ide> Requirement.prune <del> elsif req.build? && use_default_formula && req_dependency.installed? <add> elsif req.build? && use_defau...
1
Python
Python
use typevar for setupmethod()
8796b2a784bc45fcc6865cd80b2cba0601448727
<ide><path>src/flask/scaffold.py <ide> # a singleton sentinel value for parameter defaults <ide> _sentinel = object() <ide> <add>F = t.TypeVar("F", bound=t.Callable[..., t.Any]) <ide> <del>def setupmethod(f: t.Callable) -> t.Callable: <add> <add>def setupmethod(f: F) -> F: <ide> """Wraps a method so that it perfo...
1
PHP
PHP
guess ability name for authorizeforuser
d3f083a892e753bf4bd68e6dd1d30ffcb0fcbadd
<ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php <ide> trait AuthorizesRequests <ide> public function authorize($ability, $arguments = []) <ide> { <ide> if (func_num_args() === 1) { <del> $arguments = $ability; <del> <del> $ability = debug_backtrace(false, 2)...
1
Javascript
Javascript
fix regression in posix.normalize
a0adf56855f59a301d9a1f69b4267ced4fd4cf03
<ide><path>lib/path.js <ide> function isPathSeparator(code) { <ide> return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; <ide> } <ide> <add>function isPosixPathSeparator(code) { <add> return code === CHAR_FORWARD_SLASH; <add>} <add> <ide> function isWindowsDeviceRoot(code) { <ide> return code >= CH...
2
Ruby
Ruby
remove unnecessary dup in expire_page
a4515b60e316d52a6ac2902886b117588702e20b
<ide><path>actionpack/lib/action_controller/caching/pages.rb <ide> def expire_page(options = {}) <ide> <ide> if options.is_a?(Hash) <ide> if options[:action].is_a?(Array) <del> options[:action].dup.each do |action| <add> options[:action].each do |action| <ide> self...
1
Ruby
Ruby
move ld64 into sharedenvextension
48dde74503d61b6b9702aea0705202635124d93b
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def fortran <ide> set_cpu_flags(flags) <ide> end <ide> <add> # ld64 is a newer linker provided for Xcode 2.5 <add> def ld64 <add> ld64 = Formula.factory('ld64') <add> self['LD'] = ld64.bin/'ld' <add> append "LDFLAGS", "-B#{ld64.bin.to_s+"/"}" <add...
2
Ruby
Ruby
fix long line
11de7de49d272af4f75c5289b28dfce7b735312c
<ide><path>Library/Homebrew/rubocops/text.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "Formulae should not depend on both OpenSSL and LibreSSL (even optionally)." <ide> end <ide> <del> if depends_on?("veclibfort") || depends_on?("lapack") <...
1
Text
Text
update chinese translation of basic html and html5
3857e8d77958906beeb5ca1303149c308587d1dc
<ide><path>curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.chinese.md <ide> localeTitle: 降低元素的不透明度 <ide> <ide> ```yml <ide> tests: <del> - text: 您的代码应通过选择<code>links</code>类将锚点标记上的<code>opacity</code>属性设置为0.7。 <add> - text: 您的代码应通过选择<code>links</code>类将...
29
Go
Go
remove race condition from ovnmanager
40b55d233688165411365b7ef035ff722257e5c8
<ide><path>libnetwork/drivers/overlay/ovmanager/ovmanager.go <ide> func (d *driver) NetworkAllocate(id string, option map[string]string, ipV4Data, <ide> opts[netlabel.OverlayVxlanIDList] = val <ide> <ide> d.Lock() <add> defer d.Unlock() <add> if _, ok := d.networks[id]; ok { <add> n.releaseVxlanID() <add> return n...
1
Ruby
Ruby
prevent stdin trashing
4db0b9963c401296f7099118ac0a36fce8cf3114
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> def find_files <ide> <ide> @__stdout = $stdout.clone <ide> @__stderr = $stderr.clone <add> @__stdin = $stdin.clone <ide> <ide> begin <ide> if (example.metadata.keys & [:focus, :byebug]).empty? && !ENV.key?("HOMEBREW_VERBOSE_TESTS") <ide> ...
1
Python
Python
remove unused code
ee1e677ba3bf150ff5f241579dfc77f71c5d6f0d
<ide><path>utils/exporters/blender/addons/io_three/exporter/geometry.py <ide> def _parse_geometry(self): <ide> mt = api.mesh.blend_shapes(self.node, self.options) or [] <ide> self[constants.MORPH_TARGETS] = mt <ide> if len(mt) > 0 and self._scene: # there's blend shapes, let check f...
1
Javascript
Javascript
hide ishidden challenges
68aef571ee9e6a42db198457febbde49cd8b3bdd
<ide><path>client/gatsby-node.js <ide> exports.createPages = function createPages({ graphql, actions, reporter }) { <ide> node { <ide> block <ide> challengeType <add> isHidden <ide> fields { <ide> slug <ide> }...
8
PHP
PHP
change method order
d9dd691526dcf17eb87390b2dbcf3574388d53ac
<ide><path>src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php <ide> public function compileTruncate(Builder $query) <ide> return ['truncate table '.$this->wrapTable($query->from) => []]; <ide> } <ide> <add> /** <add> * Compile a "where date" clause. <add> * <add> * @param \Illumina...
1
Javascript
Javascript
add greek language
1accd5d46b7ca19df043446e851b1223cd4ef286
<ide><path>lang/el.js <add>// moment.js language configuration <add>// language : modern greek (el) <add>// author : Aggelos Karalias : https://github.com/mehiel <add> <add>require('../moment').lang('el', { <add> months : "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_...
2
Javascript
Javascript
remove the need for extra form scope
5e6ba2520174218d26defbe9488a1073da882072
<ide><path>src/directive/form.js <ide> * of `FormController`. <ide> * <ide> */ <del>FormController.$inject = ['$scope', 'name']; <del>function FormController($scope, name) { <add>FormController.$inject = ['$scope', 'name', '$element']; <add>function FormController($scope, name, element) { <ide> var form = this, <a...
4
Javascript
Javascript
fix crash on rc while toggling object status
bab9bfec3aa08e3402427e762d0607e4aa5228d1
<ide><path>Libraries/Components/SwitchIOS/SwitchIOS.ios.js <ide> var SwitchIOS = React.createClass({ <ide> }, <ide> <ide> _onChange: function(event: Event) { <del> this.props.onChange && this.props.onChange(event); <del> this.props.onValueChange && this.props.onValueChange(event.nativeEvent.value); <del> <id...
1
Go
Go
fix typo that made change detection break
bc1c5ddf2ebbb74dd2e2bc2d4a7a24c75edf6877
<ide><path>changes.go <ide> func (info *FileInfo) addChanges(oldInfo *FileInfo, changes *[]Change) { <ide> // breaks down is if some code intentionally hides a change by setting <ide> // back mtime <ide> oldMtime := syscall.NsecToTimeval(oldStat.Mtim.Nano()) <del> newMtime := syscall.NsecToTimeval(oldStat.Mt...
1
Javascript
Javascript
add a null check for text node
3e30f83bb10007a240b2a6372273d87d5b1d143d
<ide><path>src/js/control-bar/time-controls/time-display.js <ide> import document from 'global/document'; <ide> import Component from '../../component.js'; <ide> import * as Dom from '../../utils/dom.js'; <ide> import formatTime from '../../utils/format-time.js'; <add>import log from '../../utils/log.js'; <ide> <ide> ...
1
Python
Python
add message to show if in tree or flat view
5c3a269841981b5b9f8969678c9951c246833975
<ide><path>glances/plugins/glances_processcount.py <ide> # Note: history items list is not compliant with process count <ide> # if a filter is applyed, the graph will show the filtered processes count <ide> <add>PROCESS_TREE = True # TODO remove that and take command line parameter <add> <ide> <ide> class Plug...
1
Javascript
Javascript
remove leftover `__ember_observesbefore__`
ae867e537eae207b81c4bb2d7c2ada433a63cbc5
<ide><path>packages/ember-utils/lib/super.js <ide> function _wrap(func, superFunc) { <ide> <ide> superWrapper.wrappedFunction = func; <ide> superWrapper.__ember_observes__ = func.__ember_observes__; <del> superWrapper.__ember_observesBefore__ = func.__ember_observesBefore__; <ide> superWrapper.__ember_listens__...
1
Python
Python
fix unused imports and style
96c4990165f8096da3de30954811b42b731a286d
<ide><path>src/transformers/modeling_tf_distilbert.py <ide> <ide> from .configuration_distilbert import DistilBertConfig <ide> from .file_utils import add_start_docstrings, add_start_docstrings_to_callable <del>from .modeling_tf_utils import TFPreTrainedModel, TFSharedEmbeddings, get_initializer, keras_serializable, s...
6
Ruby
Ruby
fix broken tests
b6923c2b29b4eb6358c46ae086bd0a866f4e43c7
<ide><path>actionmailer/test/mail_service_test.rb <ide> def test_explicitly_multipart_with_invalid_content_type <ide> <ide> def test_implicitly_multipart_messages <ide> mail = TestMailer.create_implicitly_multipart_example(@recipient) <del> assert_equal 3, mail.parts.length <add> assert_equal 6, mail.parts...
1
Ruby
Ruby
add a method for getting the http auth salt
49ba2710e9fa01c2bedaf306552fae6f3301a119
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> def authentication_request(controller, realm, message = nil) <ide> end <ide> <ide> def secret_token(request) <del> key_generator = request.env["action_dispatch.key_generator"] <del> http_auth_salt = request.env["a...
2
Java
Java
remove redundant 'string.substring()' call
4517f40f57df6ee5ef339d21b135ba4b79ffa4e9
<ide><path>spring-web/src/main/java/org/springframework/web/util/HtmlCharacterEntityDecoder.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> * you...
1
Javascript
Javascript
use strict comparison
5164a12618cf60150db621aebe1f3d89efb9b9aa
<ide><path>lib/_http_client.js <ide> const errors = require('internal/errors'); <ide> const INVALID_PATH_REGEX = /[^\u0021-\u00ff]/; <ide> <ide> function validateHost(host, name) { <del> if (host != null && typeof host !== 'string') { <add> if (host !== null && host !== undefined && typeof host !== 'string') { <ide>...
1
Ruby
Ruby
save local_filename to json
26e1d17b4d5bce5f2377b6d7bafc1082f4650b19
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def bottle_formula(f) <ide> "tags" => { <ide> tag => { <ide> "filename" => filename.bintray, <add> "local_filename" => filename.to_s, <ide> "sha256" => sha256, <ide> }, <ide> },
1
Text
Text
add model card for hindi-bert
518f291eef9f246e26a3932971cb3970b7d0b11a
<ide><path>model_cards/monsoon-nlp/hindi-bert/README.md <add>--- <add>language: Hindi <add>--- <add> <add># Hindi-BERT (Discriminator) <add> <add>This is a first run of a Hindi language model trained with Google Research's [ELECTRA](https://github.com/google-research/electra). **I don't modify ELECTRA until we get int...
1
Python
Python
add test to check reported training loss
9dc8fb2fc7cd5d595fdcf0cc5dc30c88ee8a6144
<ide><path>tests/test_trainer.py <ide> def test_gradient_accumulation(self): <ide> trainer.train() <ide> self.check_trained_model(trainer.model) <ide> <add> def test_training_loss(self): <add> n_gpus = max(1, get_gpu_count()) <add> <add> # With even logs <add> trainer = get_regr...
1
Ruby
Ruby
use chop! instead of chop! for efficiency
89550ee7e90fa824c99cf4882426d9a5269d0d64
<ide><path>actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb <ide> def read_params_from_post <ide> stdinput.binmode if stdinput.respond_to?(:binmode) <ide> content = stdinput.read(Integer(env_table['CONTENT_LENGTH'])) || '' <ide> # fix for Safari Ajax postings that always append \000...
1
PHP
PHP
fix the validation of required file uploads
472e377b02a580f81106b7a96f9e4cee3195a819
<ide><path>laravel/validator.php <ide> protected function validate_required($attribute, $value) <ide> { <ide> return false; <ide> } <add> elseif ( ! is_null(Input::file($attribute)) and $value['tmp_name'] == '') <add> { <add> return false; <add> } <ide> <ide> return true; <ide> } <ide> protected functio...
1
Python
Python
fix imports so that all tests pass
24cd77be0d56b1a98424d4f31aa58b506c4598e0
<ide><path>numpy/linalg/linalg.py <ide> <ide> from numpy.core import * <ide> from numpy.lib import * <add>from old import solve_linear_equations <ide> import lapack_lite <ide> <ide> # Helper routines <ide><path>numpy/linalg/old.py <ide> ] <ide> <ide> from numpy.core import transpose <del>import numpy.lina...
2
Javascript
Javascript
use object-enumeration for pattern type
cca0306789afc294c648f05552e57bb6b4a9868a
<ide><path>src/pattern.js <ide> <ide> 'use strict'; <ide> <del>var AXIAL_PATTERN_TYPE = 2; <del>var RADIAL_PATTERN_TYPE = 3; <add>var PatternType = { <add> AXIAL: 2, <add> RADIAL: 3 <add>}; <ide> <ide> var Pattern = (function patternPattern() { <ide> // Constructor should define this.getPattern <ide> var Pattern...
1
Python
Python
use related_objects api for django 1.9+
2acc6a756cddf9db2ba5d8007b9e9871541fa63c
<ide><path>rest_framework/compat.py <ide> def template_render(template, context=None, request=None): <ide> # backends template, e.g. django.template.backends.django.Template <ide> else: <ide> return template.render(context, request=request) <add> <add> <add>def get_all_related_objects(opts): <add> ""...
2
Javascript
Javascript
remove weird spaces from resource mutation test
9985104dc0a2f96b1b318a8b662c0806a96f312b
<ide><path>test/ResourceSpec.js <ide> describe("resource", function() { <ide> expect(callback).wasCalledWith(cc); <ide> }); <ide> <del> it('should not mutate the resource object if response contains no body', function(){ <add> it('should not mutate the resource object if response contains no body', function(){...
1
PHP
PHP
add jsonp function to reponse facade
cfbdfa0a0c39e60adeae2041b9c2e48065d4158e
<ide><path>src/Illuminate/Support/Facades/Response.php <ide> public static function json($data = array(), $status = 200, array $headers = arr <ide> return new JsonResponse($data, $status, $headers, $options); <ide> } <ide> <add> /** <add> * Return a new JSONP response from the application. <add> * <add> * @param...
1
Python
Python
use torch.unique_consecutive to check same element
a2ef9c5446b65c9d20c06ab6940f89fcbee89382
<ide><path>src/transformers/models/bart/modeling_bart.py <ide> def forward( <ide> <ide> eos_mask = input_ids.eq(self.config.eos_token_id) <ide> <del> if len(torch.unique(eos_mask.sum(1))) > 1: <add> if len(torch.unique_consecutive(eos_mask.sum(1))) > 1: <ide> raise ValueError("All ex...
5
PHP
PHP
remove double spaces in phpdoc
d90a98ea215e5a47eaa49c67deb7fdb71bad8a8b
<ide><path>src/Auth/FormAuthenticate.php <ide> protected function _checkFields(ServerRequest $request, array $fields) <ide> * <ide> * @param \Cake\Http\ServerRequest $request The request that contains login information. <ide> * @param \Cake\Network\Response $response Unused response object. <del> * @...
31
Text
Text
fix sidebar order of item
f8a48ca8bb5e0d2d9fe08ac72d7b890cbbc59874
<ide><path>docs/components/sidebar.md <ide> - **<i class="fad fa-plane-alt"></i> Flight Manuals (for Staff & Mods)** <ide> - [01 - List Virtual Machines](/flight-manuals/01-getting-list-of-virtual-machines.md) <ide> - [02 - Provision API Instances](/flight-manuals/02-spinning-api-instances.md) <del> - [02 - Using ...
1
Ruby
Ruby
remove unused method
6f44dc41d5316e26a3ac533019199da502f430fc
<ide><path>Library/Homebrew/development_tools.rb <ide> def clear_version_cache <ide> @clang_version = @clang_build_version = nil <ide> @non_apple_gcc_version = {} <ide> end <del> <del> def tar_supports_xz? <del> false <del> end <ide> end <ide> end <ide> <ide><path>Library/Homebrew/extend/o...
2
Python
Python
add couple of tests for filters
21166a3ab62934266ebef5f4a3123a7ead3460ad
<ide><path>tests/test_filters.py <ide> import warnings <ide> from decimal import Decimal <ide> <add>import pytest <ide> from django.conf.urls import url <ide> from django.core.exceptions import ImproperlyConfigured <ide> from django.db import models <ide> def get_queryset(self): <ide> ] <ide> <ide> <add>class Ba...
1
PHP
PHP
deprecate $confirmmessage argument
53259cb38946c4eefef9abd702ff462a475c8918
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function postButton($title, $url, $options = array()) { <ide> * @param string $title The content to be wrapped by <a> tags. <ide> * @param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://) <ide> * @param a...
2
Javascript
Javascript
update lathegeometry to use points2
d9a108f65099321a80c2d4c84a6a3ff328c408df
<ide><path>editor/js/Sidebar.Geometry.LatheGeometry.js <ide> Sidebar.Geometry.LatheGeometry = function( editor, object ) { <ide> <ide> // points <ide> <del> var lastPointIdx = 0; <del> var pointsUI = []; <del> <ide> var pointsRow = new UI.Row(); <ide> pointsRow.add( new UI.Text( strings.getKey( 'sidebar/geometry/l...
1
Text
Text
remove changelog file
c58113502939650b4e96305f26acee098e54941e
<ide><path>CHANGELOG.md <del>* Improved: Faster and better looking find and replace <del>* Improved: Double-click selection behavior between word/non-word <del>* Added: Solarized theme now bundled by default <del>* Added: Base16 Tomorrow Dark theme now bundled by default <del> <del>* Fixed: Make Atom's version the same...
1
Go
Go
skip new tests requiring same-host daemon
cfc8372c0a610ab87fed92f6ba6dd4100fef26d8
<ide><path>integration-cli/docker_cli_exec_test.go <ide> func TestExecAfterContainerRestart(t *testing.T) { <ide> } <ide> <ide> func TestExecAfterDaemonRestart(t *testing.T) { <add> testRequires(t, SameHostDaemon) <ide> defer deleteAllContainers() <ide> <ide> d := NewDaemon(t)
1
Python
Python
fix `required_python` in setup.py
ba25869045f203c62a0a9ddf5c54b7f882d8308c
<ide><path>setup.py <ide> from setuptools import find_packages, setup <ide> <ide> CURRENT_PYTHON = sys.version_info[:2] <del>REQUIRED_PYTHON = (3, 5) <add>REQUIRED_PYTHON = (3, 6) <ide> <ide> # This check and everything above must remain compatible with Python 2.7. <ide> if CURRENT_PYTHON < REQUIRED_PYTHON:
1
Text
Text
add a link to second video series about redux
e4d1f86a1db0c05c4825760e68dd9f4a7cca7022
<ide><path>README.md <ide> It is tiny (2kB, including dependencies). <ide> [![Changelog #187](https://img.shields.io/badge/changelog-%23187-lightgrey.svg?style=flat-square)](https://changelog.com/187) <ide> <ide> >**Learn Redux from its creator:** <del>>**[Getting Started with Redux](https://egghead.io/series/gettin...
1
PHP
PHP
apply fixes from styleci
231119b846aa975988d39707b5d404d36be710f2
<ide><path>src/Illuminate/Support/Facades/Storage.php <ide> public static function fake($disk) <ide> public static function persistentFake($disk) <ide> { <ide> static::set($disk, self::createLocalDriver([ <del> 'root' => storage_path('framework/testing/disks/' . $disk) <add> 'root'...
1
Ruby
Ruby
optimize coretap in `.deleted_reason`
2bc54e56e4ab6d3af50fa6ed52c57c99e1a4aab7
<ide><path>Library/Homebrew/missing_formula.rb <ide> def deleted_reason(name, silent: false) <ide> end <ide> end <ide> <del> commit_command = "git log --before='1 month ago' --max-count=1 --format=%H" <del> month_old_commit = Utils.popen_read(commit_command).chomp <del> <del> ...
1
Ruby
Ruby
allow assignment right member to reference columns
d1ec33d69d85a3608aef9b064bc2c4799a214000
<ide><path>lib/arel/visitors/to_sql.rb <ide> def visit_Arel_Nodes_Or o, a <ide> end <ide> <ide> def visit_Arel_Nodes_Assignment o, a <del> right = quote(o.right, column_for(o.left)) <del> "#{visit o.left, a} = #{right}" <add> case o.right <add> when Arel::Nodes::UnqualifiedColum...
1
Java
Java
fix flaky maybeunbsubscribeontest.normal
525bf5820533b245d572db8519b2aee63e29d853
<ide><path>src/test/java/io/reactivex/internal/operators/maybe/MaybeUnsubscribeOnTest.java <ide> public void run() throws Exception { <ide> <ide> assertTrue(cdl.await(5, TimeUnit.SECONDS)); <ide> <add> int times = 10; <add> <add> while (times-- > 0 && pp.hasSubscribers()) { <add> Thre...
1
Python
Python
simplify source path names in compilation test
76d12d3fcabad0371b24753ba7d36ca5b1d61bcf
<ide><path>numpy/core/tests/examples/setup.py <ide> from setuptools.extension import Extension <ide> import os <ide> <del>here = os.path.dirname(__file__) <ide> macros = [("NPY_NO_DEPRECATED_API", 0)] <ide> <ide> checks = Extension( <ide> "checks", <del> sources=[os.path.join(here, "checks.pyx")], <add> sou...
3
PHP
PHP
fix boolean casting in sqlite
a6e39df9f63174de55b7415202fd198cd98fb146
<ide><path>Cake/Database/Type.php <ide> public function toStatement($value, Driver $driver) { <ide> * @return boolean <ide> */ <ide> public static function boolval($value) { <del> if (is_string($value)) { <add> if (is_string($value) && !is_numeric($value)) { <ide> return strtolower($value) === 'true' ? true : f...
2
Text
Text
fix changelog.md on master
cded6e7993284c734d2ae9244dfc1e5c4cd4d976
<ide><path>CHANGELOG.md <ide> # Node.js ChangeLog <ide> <add>## 2015-08-18, Version 3.1.0, @Fishrock123 <add> <add>### Notable changes <add> <add>* **buffer**: Fixed a couple large memory leaks (Ben Noordhuis) [#2352](https://github.com/nodejs/node/pull/2352). <add>* **crypto**: <add> - Fixed a couple of minor memory...
1
Text
Text
change informal voice to formal
19ad212cd66cfed77529be2ed5cd256ea287907c
<ide><path>guide/spanish/accessibility/accessibility-examples/index.md <ide> Para permitir que los usuarios no videntes se salten al contenido principal de u <ide> </main> <ide> ``` <ide> <del>3. Oculta el enlace "omitir navegación" por defecto. Esto garantiza que el enlace solo sea visible para los usuarios vident...
1
Text
Text
fix validation based on object not _id
cfd324b4b68469ba3188e4b7ba8586e59b239693
<ide><path>guides/source/active_record_validations_callbacks.md <ide> class Person < ActiveRecord::Base <ide> end <ide> ``` <ide> <del>If you want to be sure that an association is present, you'll need to test whether the foreign key used to map the association is present, and not the associated object itself. <add>If...
1
Python
Python
improve history perf
49908fe11ab3711dcab51ff762af99694a9a27ee
<ide><path>glances/__init__.py <ide> # Global name <ide> # Version should start and end with a numerical char <ide> # See https://packaging.python.org/specifications/core-metadata/#version <del>__version__ = '3.1.8b6' <add>__version__ = '3.1.8b7' <ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>' <ide> __lice...
1
PHP
PHP
remove useless import.
0b3da44c4d176655852c72008795cbe5d94801bf
<ide><path>src/Illuminate/Testing/PendingCommand.php <ide> use PHPUnit\Framework\TestCase as PHPUnitTestCase; <ide> use Symfony\Component\Console\Input\ArrayInput; <ide> use Symfony\Component\Console\Output\BufferedOutput; <del>use Symfony\Component\Console\Output\Output; <ide> <ide> class PendingCommand <ide> {
1
PHP
PHP
rewrite completion shell into a command
a4e221170b19473ec9323558d42b3ecb6a3d6527
<ide><path>src/Command/CompletionCommand.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full c...
6
Java
Java
add velocity to onscrollenddrag event
f954f3d9b674b13977f722bc3b8dc6c1b99fe6c7
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java <ide> public class OnScrollDispatchHelper { <ide> <ide> private int mPrevX = Integer.MIN_VALUE; <ide> private int mPrevY = Integer.MIN_VALUE; <add> private float mXFlingVelocity = 0; <add> private float mYFlingVeloc...
7
PHP
PHP
fix gateevaluated event docblocks
75b1e9ea2d9157d65fc3d3d8cb20840aa2887c5b
<ide><path>src/Illuminate/Auth/Access/Events/GateEvaluated.php <ide> class GateEvaluated <ide> /** <ide> * The authenticatable model. <ide> * <del> * @var \Illuminate\Contracts\Auth\Authenticatable <add> * @var \Illuminate\Contracts\Auth\Authenticatable|null <ide> */ <ide> public $user; <...
2
Javascript
Javascript
remove timeout handler when data arrives
451ff1540ab536237e8d751d241d7fc3391a4087
<ide><path>lib/http.js <ide> function responseOnEnd() { <ide> assert(!socket.writable); <ide> } else { <ide> debug('AGENT socket keep-alive'); <add> if (req.timeoutCb) { <add> socket.setTimeout(0, req.timeoutCb); <add> req.timeoutCb = null; <add> } <ide> socket.removeListener('close', sock...
2
Text
Text
fix outdate ninja link
bf46f223e77d49ff5053a0448356c36c3a7e4203
<ide><path>doc/guides/building-node-with-ninja.md <ide> The above alias can be modified slightly to produce a debug build, rather than a <ide> `alias nnodedebug='./configure --ninja && ninja -C out/Debug && ln -fs out/Debug/node node_g'` <ide> <ide> <del>[Ninja]: https://martine.github.io/ninja/ <add>[Ninja]: https:/...
1
Java
Java
prevent empty calls to acac #register and #scan
84a63b6d4bfbfd0d5f1e91786802b68f9cd1411a
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java <ide> import org.springframework.beans.factory.support.BeanNameGenerator; <ide> import org.springframework.context.support.GenericApplicationContext; <ide> import org.springframework.core....
1
Python
Python
fix "`" typo
2051a79da37cd22c3f60ac99f545ae15f28cde55
<ide><path>rest_framework/throttling.py <ide> def get_cache_key(self, request, view): <ide> If `view.throttle_scope` is not set, don't apply this throttle. <ide> <ide> Otherwise generate the unique cache key by concatenating the user id <del> with the '.throttle_scope` property of the view. <add...
1
Python
Python
update runtests.py from scipy
6dfe8641e5086241dda081f82dc8a12610d52fd9
<ide><path>runtests.py <ide> $ python runtests.py -s {SAMPLE_SUBMODULE} <ide> $ python runtests.py -t {SAMPLE_TEST} <ide> $ python runtests.py --ipython <add> $ python runtests.py --python somescript.py <ide> <ide> """ <ide> <ide> SAMPLE_TEST = "numpy/linalg/tests/test_linalg.py:test_byteorder_check" <...
1
Javascript
Javascript
add some test coverage for some error cases
c156ecd483b4adc8e16254b8cab3ee735e893271
<ide><path>packages/react-client/src/ReactFlightClient.js <ide> export function parseModelString( <ide> } else { <ide> const id = parseInt(value.substring(1), 16); <ide> const chunk = getChunk(response, id); <del> if (chunk._status === PENDING) { <del> throw new Error( <del> ...
3
PHP
PHP
remove backwards compatibility in rijndael
d323ea3680a6bdefcb0b28b2b87c9d5a5596f7d9
<ide><path>lib/Cake/Test/TestCase/Utility/SecurityTest.php <ide> public function testRijndael() { <ide> $this->assertEquals($txt, Security::rijndael($result, $key, 'decrypt')); <ide> } <ide> <del>/** <del> * Test that rijndael() can still decrypt values with a fixed iv. <del> * <del> * @return void <del> */ <del> p...
2
Python
Python
fix wandb/comet problems
4dbca500226e27be21dbb0eb08117dfd0c5264b3
<ide><path>src/transformers/integrations.py <ide> # Comet needs to be imported before any ML frameworks <ide> import comet_ml # noqa: F401 <ide> <add> # XXX: there should be comet_ml.ensure_configured(), like `wandb`, for now emulate it <add> comet_ml.Experiment(project_name="ensure_configured") <ide> ...
1
Python
Python
add template to livy operator documentation
7dd7400dd4588e063078986026e14ea606a55a76
<ide><path>airflow/providers/apache/livy/operators/livy.py <ide> class LivyOperator(BaseOperator): <ide> This operator wraps the Apache Livy batch REST API, allowing to submit a Spark <ide> application to the underlying cluster. <ide> <del> :param file: path of the file containing the application to execute...
1
Ruby
Ruby
fix typo again (thanks phillip oertel)
f5ca190bd33722e6a9b3539968ae9f8ae01fb471
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> def const_regexp(camel_cased_word) #:nodoc: <ide> end <ide> end <ide> <del> # Applies inflection rules for +singuralize+ and +pluralize+. <add> # Applies inflection rules for +singularize+ and +pluralize+. <ide> # <ide> # Ex...
1
Python
Python
show sensors alias in web interface
fa5170d0e0989b060ccb69b7427c07bc0ccbe9b1
<ide><path>glances/plugins/glances_sensors.py <ide> def update(self): <ide> <ide> pass <ide> <add> # Set the alias for each stat <add> for stat in stats: <add> alias = self.has_alias(stat["label"].lower()) <add> if alias: <add> stat["label"] = alias <add>...
1
Python
Python
fix undefined 'v' in python 3
970f4a7e7f8cd87f641637c5054a11d08a720d2d
<ide><path>research/tcn/data_providers.py <ide> def parse_sequence_example(serialized_example, num_views): <ide> views = tf.stack([sequence_parse[v] for v in view_names]) <ide> lens = [sequence_parse[v].get_shape().as_list()[0] for v in view_names] <ide> assert len(set(lens)) == 1 <del> seq_len = tf.shape(sequen...
1
Mixed
Javascript
support the hints option
ff8539e9e747db61a2adac6d4498ef4ee5826900
<ide><path>doc/api/tls.md <ide> being issued by trusted CA (`options.ca`). <ide> <!-- YAML <ide> added: v0.11.3 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/27816 <add> description: The `hints` option is now supported. <ide> - version: v12.2.0 <ide> pr-url: ht...
3
PHP
PHP
fix exception expectations
d68053c4d4816635138e638b662df7519c835857
<ide><path>lib/Cake/Test/Case/Cache/CacheTest.php <ide> public function testInvalidConfig() { <ide> /** <ide> * test that trying to configure classes that don't extend CacheEngine fail. <ide> * <add> * @expectedException CacheException <ide> * @return void <ide> */ <ide> public function testAttemptingToConfigureAN...
5