patch
stringlengths
18
160k
callgraph
stringlengths
4
179k
summary
stringlengths
4
947
msg
stringlengths
6
3.42k
@@ -768,7 +768,10 @@ abstract class CI_DB_driver { { if ( ! $this->conn_id) { - $this->initialize(); + if( !$this->initialize() ) + { + return FALSE; + } } return $this->_execute($sql);
[CI_DB_driver->[protect_identifiers->[protect_identifiers,escape_identifiers],list_fields->[query],db_pconnect->[db_connect],escape_identifiers->[escape_identifiers],list_tables->[query],field_data->[field_data,query],field_exists->[list_fields],insert_string->[escape_identifiers,escape],escape_str->[escape_str],simple...
Simple query.
`if ( ! $this->initialize())`
@@ -1008,7 +1008,7 @@ avl_destroy_nodes(avl_tree_t *tree, void **cookie) --tree->avl_numnodes; /* - * If we just did a right child or there isn't one, go up to parent. + * If we just made a right child or there isn't one, go up to parent. */ if (child == 1 || parent->avl_child[1] == NULL) { node = paren...
[No CFG could be retrieved]
This function is called when a node is destroyed. region AVL_NODE_2_DATA functions.
I don't think we are "making" any nodes here; "did" seems ok to me, or we could change it to "removed"
@@ -17,8 +17,11 @@ """ Test script for the demos. -For the tests to work, the test data directory must contain a "ILSVRC2012_img_val" -subdirectory with the ILSVRC2012 dataset. +For the tests to work, the test data directory must contain: +* a "ILSVRC2012_img_val" subdirectory with the ILSVRC2012 dataset; +* a "Bra...
[main->[option_to_args->[resolve_arg],collect_result,option_to_args,parse_args],parse_args->[parse_args],main]
Parses command line options and returns a single object representing a single object. Parse command line options for the model optimization entry point script.
You say it's supposed to be BraTS 2017, but then you link to Medical Segmentation Decathlon. Which is it?
@@ -248,4 +248,5 @@ if sys.platform == 'darwin': MAXVAL = 15 if len(name) > MAXVAL: name = name[:MAXVAL] - return tmpdir_factory.mktemp(name, numbered=True) + tdir = tmpdir_factory.mktemp(name, numbered=True) + return tdir
[validate_solidity_compiler->[validate_solc],pytest_addoption->[addoption],pytest_generate_tests->[list,getoption,append,extend,set,parametrize],dont_exit_pytest->[get_hub],_tmpdir_short->[getbasetemp->[get_temproot,ensure,trace,realpath,check,mkdir,remove,local,make_numbered_dir],delattr],tmpdir->[mktemp,sub,len],logg...
Return a temporary directory path object which is unique to each test function invocation object created.
The `tdir` variable looks like a debugging remnant?
@@ -326,6 +326,17 @@ WebContents.prototype._init = function () { } }) + this.on('-ipc-invoke', function (event, channel, args) { + event.reply = (result) => event.sendReply({ result }) + event.throw = (error) => event.sendReply({ error: error.toString() }) + this.emit('ipc-invoke', event, channel, ....
[No CFG could be retrieved]
The main event handler for the object. BrowserWindow - BrowserWindow and BrowserView - BrowserView.
What is the purpose of this `emit`?
@@ -90,6 +90,10 @@ func gatherInfoForNode(in message.Compliance) (*manager.NodeMetadata, error) { tags = append(tags, &common.Kv{Key: "environment", Value: in.Report.GetEnvironment()}) } + mgrType := in.Report.GetAutomateManagerType() + if in.Report.GetSourceFqdn() != "" { + mgrType = "chef" + } return &manag...
[GetNodeName,GetPolicyGroup,GetJobUuid,GetPolicyName,GetEnvironment,GetSourceId,GetSourceAccountId,GetRelease,GetName,Errorf,GetRoles,Debugf,FinishProcessingCompliance,ProcessNode,Propagate,GetAutomateManagerId,GetNodeUuid,GetOrganizationName,TimestampProto,Err,GetChefTags,GetTags,GetSourceFqdn,Background,GetSourceRegi...
ProcessComplianceReport returns a NodeMetadata object that can be used to populate the node metadata. Get all projects data from the environment roles and policy_name.
if there's a value for the chef server, we know the node is managed by chef
@@ -120,7 +120,7 @@ class GroupsController < ApplicationController @grouping = Grouping.find(params[:grouping_id]) @grouping.validate_grouping @grouping_data = construct_table_row(@grouping, @assignment) - render :valid_grouping, :formats => [:js] + render :valid_grouping, formats: [:js] end ...
[GroupsController->[remove_member->[remove_member]]]
valid_grouping validates the group node id and renders a table with the data for the.
Trailing whitespace detected.
@@ -70,9 +70,10 @@ namespace NServiceBus.Serializers.XML /// </summary> public void Serialize(object message, Stream stream) { - var serializer = new Serializer(mapper, conventions, cache, SkipWrappingRawXml, Namespace); - var buffer = serializer.Serialize(message); - ...
[XmlMessageSerializer->[InitType->[InitType],Serialize->[Serialize],Initialize->[InitType],Deserialize->[Deserialize]]]
Serializes the given object to the given stream.
Note: I'm personally always unsure what the better design is regarding what comes into the ctor and what into the method. In the serializer case I would tend to add everything which is cacheable, bound to the lifetime of the object etc. into the ctor and everything which cannot be reused over multiple calls into the me...
@@ -103,6 +103,8 @@ class User < ApplicationRecord acts_as_follower has_one :profile, dependent: :destroy + has_one :notification_setting, class_name: "Users::NotificationSetting", dependent: :destroy + has_one :setting, class_name: "Users::Setting", dependent: :destroy has_many :access_grants, class_nam...
[User->[check_for_username_change->[path],send_welcome_notification->[send_welcome_notification],blocked_by?->[blocking?],auditable?->[any_admin?],blocking?->[blocking?],resave_articles->[path]]]
The base class for all of the user - related attributes. The author_id is the primary key of the author.
Create two new tables with a relationship to the Users table.
@@ -569,6 +569,9 @@ def _find_recursive(root, search_files): # found in a key, and reconstructing the stable order later. found_files = collections.defaultdict(list) + if not os.path.isdir(root): + return [] + for path, _, list_files in os.walk(root): for search_file in search_files:...
[_find_non_recursive->[join_path],working_dir->[mkdirp],install->[set_install_permissions,copy_mode],traverse_tree->[traverse_tree],change_sed_delimiter->[filter_file],find_headers->[HeaderList,find],remove_dead_links->[join_path],touchp->[mkdirp,touch],install_tree->[set_install_permissions,copy_mode],fix_darwin_insta...
Find all library file paths recursively.
i guess you can now drop changes in `filesystem`?
@@ -55,7 +55,7 @@ class SpannerSchema implements Serializable { } public Builder addKeyPart(String table, String column, boolean desc) { - keyParts.put(table, KeyPart.create(column.toLowerCase(), desc)); + keyParts.put(table.toLowerCase(), KeyPart.create(column.toLowerCase(), desc)); return...
[SpannerSchema->[hashCode->[hashCode],Column->[parseSpannerType->[parseSpannerType],create->[create]],Builder->[addColumn->[addColumn],build->[SpannerSchema]]]]
Add a key part to the schema.
This is a lot of toLowerCase's throughout the PR, seems very likely that someone will add new code that forgets to add toLowerCase and it will break. Is there anything else we can do? Maybe introduce a new type for case-insensitive strings and use it for table and column names? Not sure if that's better than the curren...
@@ -172,6 +172,9 @@ public class CaseInsensitiveHashMap<K, V> implements Map<K, V>, Serializable { if (this instanceof ImmutableCaseInsensitiveHashMap) { return this; } + if (this.isEmpty() && EMPTY_MAP != null) { + return EMPTY_MAP; + } return new ImmutableCaseInsensitiveHashMap<>(this...
[CaseInsensitiveHashMap->[size->[size],containsValue->[containsValue],keySet->[keySet],putAll->[putAll],entrySet->[entrySet],values->[values],containsKey->[containsKey],get->[get],remove->[remove],clear->[clear],put->[put],toString->[toString],isEmpty->[isEmpty]]]
toImmutableCaseInsensitiveMap - returns an immutable case - insensitive map.
Can this check be avoided using polymorphism?
@@ -993,6 +993,7 @@ public class SparkInterpreter extends Interpreter { } private Results.Result interpret(String line) { + out.ignoreLeadingNewLinesFromScalaReporter(); return (Results.Result) Utils.invokeMethod( intp, "interpret",
[SparkInterpreter->[createSparkSession->[useHiveContext,isYarnMode,hiveClassesArePresent],interpretInput->[interpret],getSQLContext_1->[useHiveContext,getSparkContext],setupListeners->[onJobStart->[onJobStart]],populateSparkWebUrl->[toString,getSparkUIUrl],setupConfForPySpark->[isYarnMode],getCompletionTargetString->[t...
Interprets a line in the tag.
is there a reason we have to set this every time interpret is called, and not have it sticky?
@@ -105,6 +105,9 @@ class SwitchingDirectRunner(PipelineRunner): # The FnApiRunner does not support execution of SplittableDoFns. if DoFnSignature(dofn).is_splittable_dofn(): self.supported_by_fnapi_runner = False + # The FnApiRunner does not support execution of Stateful DoF...
[_StreamingGroupAlsoByWindow->[from_runner_api_parameter->[_StreamingGroupAlsoByWindow]],_get_pubsub_transform_overrides->[WriteToPubSubOverride->[get_replacement_transform->[_DirectWriteToPubSubFn]],ReadFromPubSubOverride->[get_replacement_transform->[_DirectReadFromPubSub]],WriteToPubSubOverride,ReadFromPubSubOverrid...
Runs a pipeline on the FnApiRunner. Check whether all transforms used in the pipeline are supported by the .
For some reason I thought the intent was to add this to the FnAPI runner. I suppose I'd like to cap investment in the BundleBasedRunner (and deprecate/remove it) sooner rather than later.
@@ -80,6 +80,12 @@ const ( TraefikBackendLoadBalancerStickinessCookieName = Prefix + SuffixBackendLoadBalancerStickinessCookieName TraefikBackendMaxConnAmount = Prefix + SuffixBackendMaxConnAmount TraefikBackendMaxConnExtractorFunc = Prefix + SuffixBackendMaxConnExtractorFunc + Trae...
[No CFG could be retrieved]
Returns a list of all possible suffix names.
```go const ( // ... TraefikBackendBuffering = Prefix + SuffixBackendBuffering // ... )
@@ -107,7 +107,7 @@ export function setImportantStyles(element, styles) { /** * Sets the CSS style of the specified element with optional units, e.g. "px". - * @param {Element} element + * @param {?Element} element * @param {string} property * @param {*} value * @param {string=} opt_units
[No CFG could be retrieved]
Gets the value of the specified CSS property of the specified element. Gets the CSS styles of the specified element.
`?` not necessary since classes are nullable by default.
@@ -457,13 +457,9 @@ class TestFileViewer(FilesBase, TestCase): res = self.client.get(self.file_url(u'\u1109\u1161\u11a9')) assert res.status_code == 200 - def test_unicode_fails_with_wrong_configured_basepath(self): + def test_unicode_unicode_tmp_path(self): with override_settings(TM...
[TestDiffViewer->[test_view_one_missing->[file_url],test_different_tree->[file_url],test_view_right_binary->[file_url],test_binary_serve_links->[file_url],check_urls->[poll_url,file_url],test_view_both_present->[file_url],test_file_chooser_selection->[file_url],test_tree_no_file->[file_url],test_view_left_binary->[file...
Test that unicode files are served.
This test was fixed by changing the zip file to set the relevant encoding flag in it, because Python 3 behavior for zipfiles without that flag is different now. Before, it used to return the filenames as bytes, and we'd decode that using utf-8 ourselves. Now, *if the flag is absent* it uses `cp437`, which the the "lega...
@@ -39,6 +39,7 @@ crt_corpc_info_init(struct crt_rpc_priv *rpc_priv, struct crt_corpc_hdr *co_hdr; int rc; + DBG_ENTRY(); D_ASSERT(rpc_priv != NULL); D_ASSERT(grp_priv != NULL);
[No CFG could be retrieved]
The main entry point for the . d_rank_list_dup - dup a node in the rank list.
if we are to add new symbol/define that is visible from outside of cart internals we should rename those into D_DBG_ENTRY() and D_DBG_EXIT() or some such (D_ prefix for all externally visible macros, unless it is CRT macro in which case CRT_ prefix)
@@ -332,13 +332,13 @@ namespace DynamoCoreWpfTests public void GettingNodeNameDoesNotTriggerPropertyChangeCycle() { //add a node - var numNode = new CoreNodeModels.Input.DoubleInput { X = 100, Y = 100 }; + var numNode = new CoreNodeModels.Input.DoubleInput(); ...
[NodeViewTests->[Open->[Open],CheckLoadedCustomNodeOriginalName->[Open],ZIndex_NodeAsMemberOfGroup->[Open],ZIndex_Test_MouseDown->[Open],SettingOriginalNodeName->[Open],Run->[Run],SettingOriginalNodeNameOnCustomNode->[Open],CheckNotLoadedCustomNodeOriginalName->[Open],CheckDummyNodeName->[Open],SettingNodeAsInputOrOutp...
This test is used to get the node name and property change cycle.
`ModeBase.X` is obsolete, seems here we do not really need positions to be set
@@ -607,6 +607,7 @@ PAYMENT_GATEWAYS = { "module": "saleor.payment.gateways.braintree", "config": { "auto_capture": True, + "store_card": False, "template_path": "order/payment/braintree.html", "connection_params": { "sandbox_mode": ge...
[get_list->[strip,split],get_bool_from_env->[literal_eval,ValueError,format],get_host->[get_current],get_currency_fraction,bool,int,pgettext_lazy,_,parse,append,get_list,dirname,insert,get,getenv,config,setdefault,join,normpath,get_bool_from_env,CACHES]
This function is used to configure the payment gateway. Returns a configuration object that can be used to configure the payment gateways.
I assume that this value should be taken from env first. (Same as `auto_capture` btw)
@@ -2377,6 +2377,18 @@ def _check_pandas_index_arguments(index, defaults): 'values are \'None\' or %s' % tuple(options)) +def _check_ch_locs(locs3d): + """Check if channel locations exist. + + Parameters + ---------- + locs3d : array, shape (n_channels, 3) + The channel ...
[set_config->[get_config_path,warn,_load_config],get_config->[get_config_path,_load_config],object_diff->[_sort_keys,object_diff],_load_config->[warn],object_size->[object_size],open_docs->[get_config],_get_stim_channel->[get_config],_fetch_file->[_get_http,warn],array_split_idx->[_ensure_int],deprecated->[_decorate_cl...
Remove white - space on topo matching. CTF names and return a list of cleaned names.
to be reusable elsewhere this function should take as input : info['chs']
@@ -322,8 +322,6 @@ function parsePackageManagerName(userAgent) { return packageManager } -// prettier-ignore -const UNABLE_TO_FIND_POSTINSTALL_TRIGGER__EMPTY_STRING = 'UNABLE_TO_FIND_POSTINSTALL_TRIGGER__EMPTY_STRING' // prettier-ignore const UNABLE_TO_FIND_POSTINSTALL_TRIGGER__ENVAR_MISSING = 'UNABLE_TO_FIND_...
[No CFG could be retrieved]
UserAgent - Agent parser for NPM package managers. Get Post Install Trigger JSON Schema Error.
Is this not used?
@@ -78,7 +78,7 @@ func (m moduleName) String() string { case Configs: return "configs" case AlertManager: - return "alertmanager" + return "alert-manager" case All: return "all" default:
[stopStore->[Stop],initAlertmanager->[Handler,NewMultitenantAlertmanager,GetStatusHandler,Wrap,Run,PathPrefix],initDistributor->[Handle,HandlerFunc,New,Wrap,HandleFunc],Set->[ToLower,Errorf],initIngester->[Path,Handler,RegisterIngesterServer,HandlerFunc,New,RegisterHealthServer],initQuerier->[Register,Path,Handler,NewS...
String returns the string representation of a module name.
Why are you hyphenating here?
@@ -54,6 +54,9 @@ func (cli *Client) RunNode(c *clipkg.Context) error { updateConfig(cli.Config, c.Bool("debug"), c.Int64("replay-from-block")) logger.SetLogger(cli.Config.CreateProductionLogger()) logger.Infow(fmt.Sprintf("Starting Chainlink Node %s at commit %s", static.Version, static.Sha), "id", "boot", "Vers...
[PrepareTestDatabase->[ResetDatabase],DeleteUser->[DeleteUser]]
RunNode starts the node AuthenticateVRFKey authenticates with a VRF key store and password.
This moved from application.go to prevent log spew in tests
@@ -210,8 +210,9 @@ describe('amp-youtube', function() { 'data-param-my-param': 'hello world', }).then(yt => { const iframe = yt.querySelector('iframe'); - expect(iframe.src).to.contain('autoplay=1'); expect(iframe.src).to.contain('myParam=hello%20world'); + // autoplay is temporaril...
[No CFG could be retrieved]
Test data - param - my - param attribute is set in iframe src.
I'm testing that it gets removed.
@@ -30,6 +30,7 @@ module Lib black: '#000000', red: '#ec232a', blue: '#35A7FF', + purple: '#800080', }.freeze def self.points(scale: 1.0)
[freeze]
Returns the points of the polygon if any.
This allows users to config the color, because user.rb iterates over Lib::Hex::COLOR. The config wouldn't have any effect though (not saved, not accessed in view/game/hex). It works, but isn't ideal. So I'd either remove this line and change "purple" to hex value in 18CZ's and 1873's config or render frame in user sele...
@@ -544,4 +544,4 @@ class CI_Cart { } /* End of file Cart.php */ -/* Location: ./system/libraries/Cart.php */ \ No newline at end of file +/* Location: ./system/libraries/Cart.php */
[CI_Cart->[insert->[_save_cart,_insert],_save_cart->[set_userdata,unset_userdata],update->[_update,_save_cart],destroy->[unset_userdata],remove->[_save_cart],__construct->[driver,userdata]]]
End of file Cart. php.
I didn't change this line. I don't understand why it's mark as "changed"
@@ -256,8 +256,10 @@ void block_queue::set_span_hashes(uint64_t start_height, const boost::uuids::uui if (i->start_block_height == start_height && i->connection_id == connection_id) { span s = *i; - blocks.erase(i); + erase_block(i); s.hashes = std::move(hashes); + for (const cryp...
[has_next_span->[is_blockchain_placeholder],foreach->[is_blockchain_placeholder],reserve_span->[requested,add_blocks],get_num_filled_spans_prefix->[is_blockchain_placeholder],get_next_span->[is_blockchain_placeholder],get_next_span_if_scheduled->[is_blockchain_placeholder],get_start_gap_span->[print,is_blockchain_place...
This method is called from the block_queue thread.
Is this inserting hash references after they are invalidated in `erase_block`?
@@ -59,11 +59,17 @@ def get_head_surf(subject, source=('bem', 'head'), subjects_dir=None, surf : dict The head surface. """ + return _get_head_surface(subject=subject, source=source, + subjects_dir=subjects_dir) + + +def _get_head_surface(subject, source, subjects_dir, ...
[_project_onto_surface->[_triangle_coords],complete_surface_info->[_triangle_neighbors,_accumulate_normals,fast_cross_3d],_nearest_tri_edge->[_get_tri_dist],decimate_surface->[_decimate_surface],_tessellate_sphere->[_norm_midpt],_create_surf_spacing->[complete_surface_info,_get_surf_neighbors,_compute_nearest,read_surf...
Load the subject head surface. Find a bem file in path that contains a specific head.
don't like this change, `subject` is an all-lower-case variable name
@@ -18,10 +18,14 @@ from ..utils import ( create_payment_information, create_transaction, is_currency_supported, + payment_owned_by_user, update_payment, validate_gateway_response, ) +pytest_plugins = ["saleor.plugins.webhook.tests.test_payment_webhook"] + + NOT_ACTIVE_PAYMENT_ERROR = "T...
[test_validate_gateway_response_not_json_serializable->[CustomClass]]
This module provides a test to test the payment method. A gateway response for a single .
This shouldn't be needed. If you need any fixture from test_payment_webhook, then move it to generic conftest.
@@ -27,7 +27,7 @@ class Internal::BroadcastsController < Internal::ApplicationController private def broadcast_params - params.permit(:title, :processed_html, :type_of, :sent) + params.permit(:title, :processed_html, :type_of, :active) end def authorize_admin
[broadcast_params->[permit],create->[redirect_to,create!],new->[new],edit->[find_by!],update->[redirect_to,update!,find_by!],authorize_admin->[authorize],index->[all],layout]
Provides a way to broadcast a request to the user that has a sequence of unknown params.
@benhalpern is this an allowed param in Fastly? It seems super general so I am assuming it is but worth a double check.
@@ -414,8 +414,7 @@ class Executor(object): feed_tensor.set(feed[feed_name], core.CPUPlace()) feed_tensor_dict[feed_name] = feed_tensor - self.executor.feed_and_split_tensor_into_local_scopes( - feed_tensor_dict) + exe.feed_and_split_tensor_in...
[Executor->[_run->[_add_feed_fetch_ops,_add_program_cache,_get_program_cache,as_numpy,run,_get_program_cache_key,_fetch_data,_feed_data],_add_feed_fetch_ops->[has_feed_operators,has_fetch_operators],run->[global_scope,Executor,_run_parallel],_run_parallel->[as_numpy],close->[close],_feed_data->[_as_lodtensor],_run_infe...
Runs the parallel network.
Same above, program is a bit confusing with fluid.Program
@@ -144,6 +144,8 @@ func createLoadBalancerServerTCP(client Client, namespace string, service v1alph tcpService.LoadBalancer.TerminationDelay = service.TerminationDelay } + tcpService.LoadBalancer.ProxyProtocolVersion = service.ProxyProtocolVersion + return tcpService, nil }
[loadIngressRouteTCPConfiguration->[FromContext,Str,Error,Sprintf,SetDefaults,Contains,Warnf,WithField,Errorf,With,GetIngressRouteTCPs],FromContext,GetService,Sprintf,New,GetEndpoints,Debugf]
createLoadBalancerServerTCP creates a loadbalancer server and a tcp service from the given service. getNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetworkNetwork.
As this value is not conditionally set, could you set the `ProxyProtocolVersion` directly when `tcpService` is created?
@@ -1,9 +1,17 @@ package errutil import ( + "fmt" "strings" ) +var ( + // ErrBreak is an error used to break out of call back based iteration, + // should be swallowed by iteration functions and treated as successful + // iteration. + ErrBreak = fmt.Errorf("BREAK") +) + // IsAlreadyExistError returns true if ...
[Contains,Error]
IsAlreadyExistError returns true if err is due to trying to create a resource.
This is just a note about changing this idiom to returning a break/done boolean, rather than returning a break within an error.
@@ -132,6 +132,11 @@ class Cmake(Package): # https://gitlab.kitware.com/cmake/cmake/issues/18232 patch('nag-response-files.patch', when='@3.7:3.12') + # Cray libhugetlbfs and icpc warnings failing CXX tests + # https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4698 + # https://gitlab.kitware....
[Cmake->[install->[make],build->[make],bootstrap->[bootstrap,Executable,bootstrap_args],test->[make],flag_handler->[append,any,ValueError],bootstrap_args->[append,format,str,satisfies],depends_on,conflicts,version,patch,on_package_attributes,variant,run_after]]
Find all possible conflicts in a sequence of possible dependencies. Add flags to the C ++ 11 standard.
@jennfshr Does this actually cleanly apply all the way back to 3.7?
@@ -139,8 +139,8 @@ class AssetsController < ApplicationController render_html = if @asset.step assets = @asset.step.assets - order_atoz = az_ordered_assets_index(assets, @asset.id) - order_ztoa = assets.length - az_ordered_assets_index(assets, @asset.id...
[AssetsController->[append_wd_params->[to_query],load_vars->[step,protocol,repository_cell,my_module,class,result,repository,find_by_id],edit->[append_wd_params,to_s,render,token,zero?,get_action_url,update,create_wopi_file_activity,locked?,favicon_url,now,get_wopi_token],check_read_permission->[can_read_experiment?,ca...
update image tag.
Can you fix issue for assets without blob for this `az_ordered_assets_index`
@@ -33,7 +33,7 @@ class PyLogilabCommon(Package): version('1.2.0', 'f7b51351b7bfe052746fa04c03253c0b') - extends("python") + extends('python', ignore=r'bin/pytest') depends_on("py-setuptools", type='build') depends_on("py-six", type=nolink)
[PyLogilabCommon->[install->[setup_py],depends_on,version,extends]]
Install the given spec.
What does this ignore notation mean? I've never seen it before...
@@ -0,0 +1,12 @@ +#!/usr/bin/env python +import sys +import os + +hook_script_type = os.path.basename(os.path.dirname(sys.argv[1])) +sys.stderr.write(str(os.environ)) +if hook_script_type == 'deploy' and ('RENEWED_DOMAINS' not in os.environ or 'RENEWED_LINEAGE' not in os.environ): + sys.stderr.write('Environment var...
[No CFG could be retrieved]
No Summary Found.
Did you mean to keep this here or was it for temporary debugging purposes?
@@ -21,6 +21,8 @@ import ( "fmt" "time" + "github.com/elastic/beats/libbeat/autodiscover" + "github.com/pkg/errors" "github.com/elastic/beats/heartbeat/config"
[RunStaticMonitors->[NewFactory,Wrap,Create,Start],Run->[RunDynamicMonitors,Stop,RunStaticMonitors,NewReloader,Start,Enabled,Info],RunDynamicMonitors->[NewFactory,Run,Check],NewWithLocation,LoadLocation,Unpack,Errorf]
New creates a new instance of the beat. Errorf returns an error if the config file is not present or if it is not present.
import mess :-)
@@ -433,7 +433,6 @@ namespace DotNetNuke.Modules.Admin.Users Required = required, TextMode = TextBoxMode.Password, TextBoxCssClass = ConfirmPasswordTextBoxCssClass, - ClearContentInPasswordMode = true }; userForm.Items.Add(formItem);
[Register->[OnInit->[OnInit,Register],registerButton_Click->[CreateUser],CreateUser->[CreateUser],UpdateDisplayName->[UpdateDisplayName],UserAuthenticated->[CreateUser],OnLoad->[OnLoad],OnPreRender->[OnPreRender]]]
AddPasswordConfirmField - Add a password confirm field to the user form.
Why was this removed?
@@ -81,6 +81,7 @@ class BalanceProof: @staticmethod def hash_balance_data(transferred_amount: int, locked_amount: int, locksroot: str) -> str: + # Use transfer.utils.hash_balance_data instead? return Web3.soliditySha3( # pylint: disable=no-value-for-parameter ["uint256", "uint2...
[BalanceProof->[balance_hash->[encode_hex,ValueError,isinstance,hash_balance_data],__init__->[hash_balance_data],hash_balance_data->[soliditySha3],serialize_bin->[decode_hex,pack_data]],encode_hex]
Return the hash balance data.
Do you want to fix this in this PR?
@@ -199,10 +199,13 @@ namespace DotNetNuke.Modules.Admin.Authentication } var alias = PortalAlias.HTTPAlias; - var comparison = StringComparison.InvariantCultureIgnoreCase; - var isDefaultPage = redirectURL == "/" - || (alias.Contains(...
[Login->[BindLoginControl->[AddLoginControlAttributes],PasswordUpdated->[ValidateUser],ShowPanel->[BindRegister,BindLogin],cmdAssociate_Click->[ValidateUser,UpdateProfile],ValidateUser->[ValidateUser,ShowPanel],OnInit->[OnInit],cmdProceed_Click->[ValidateUser],UserCreateCompleted->[ValidateUser,UpdateProfile],ProfileUp...
This function checks if there is a returnurl in the request and if so redirects to the if user has a specific id redirect to current page.
Rather than converting the character back to a string all of the time, why not make the constant a string.
@@ -224,7 +224,7 @@ export function getA2AAncestor(win) { // Not a security property. We just check whether the // viewer might support A2A. More domains can be added to whitelist // as needed. - if (top.indexOf('.google.') == -1) { + if (!top.includes('.google.')) { return null; } const amp = ori...
[No CFG could be retrieved]
Gets the Nth ancestor of the given window.
`String#includes` is not supported in IE.
@@ -175,7 +175,7 @@ func BuildMasterConfig(options configapi.MasterConfig) (*MasterConfig, error) { kubeletClientConfig := configapi.GetKubeletClientConfig(options) // in-order list of plug-ins that should intercept admission decisions (origin only intercepts) - admissionControlPluginNames := []string{"ProjectReq...
[GetServiceAccountClients->[New,Clients],ResourceQuotaManagerClients->[FromUnversionedClient],DeploymentControllerClients->[GetServiceAccountClients,Fatal],BuildControllerClients->[GetServiceAccountClients,Fatal],WebConsoleEnabled->[Has],GetKubeletClientConfig,NewString,NewAuthorizerReviewer,GetClientCertCAPool,Cluster...
Initialize the object that will be used to intercept the variable object add a plugin to the list of plugins to be run when the if flag is.
I never like seeing something after quota... is there a reason why this cannot be before?
@@ -41,7 +41,7 @@ util.inherits(Generator, yeoman.Base); */ Generator.prototype.addElementToMenu = function (routerName, glyphiconName, enableTranslation) { try { - var fullPath = CLIENT_MAIN_SRC_DIR + 'app/layouts/navbar/navbar.html'; + var fullPath = CLIENT_MAIN_SRC_DIR + 'app/layouts/navbar/nav...
[No CFG could be retrieved]
Generates a menu element that can be added to the menu. Adds a new menu element to the admin menu.
this shouldnt be changed now. It will be have to work for both ng1 and ng2 hence will be changed after entity migration
@@ -494,7 +494,7 @@ public class SqlToJavaVisitor { } joiner.add( - process(convertArgument(arg, sqlType, paramType), context.getCopy()) + process(convertArgument(arg, sqlType, paramType),typeContextsForChildren.get(i)) .getLeft()); }
[SqlToJavaVisitor->[formatExpression->[process],of->[SqlToJavaVisitor],Formatter->[visitWhenClause->[visitIllegalState],visitLambdaExpression->[process],visitArithmeticUnary->[process],visitSimpleCaseExpression->[visitUnsupported],visitCast->[of,process],visitInPredicate->[process],visitIsNullPredicate->[process],visit...
Visit a FunctionCall node. Evaluate the missing return type.
nit: space after `,`
@@ -392,6 +392,16 @@ class Stock(models.Model): def quantity_available(self): return max(self.quantity - self.quantity_allocated, 0) + def get_costs_data(self): + zero_price = Price(0, 0, currency=DEFAULT_CURRENCY) + if not self.cost_price: + return {'costs': zero_price, 'mar...
[ProductVariant->[get_absolute_url->[get_slug],get_cost_price->[select_stockrecord],as_data->[get_price_per_item],get_first_image->[get_first_image]],Product->[is_in_stock->[is_in_stock],ProductManager],ProductImage->[delete->[get_ordering_queryset],save->[get_ordering_queryset],ImageManager],Stock->[StockManager]]
Returns the number of available items in the pool.
Could this live outside of the model class? We try to prevent models from implementing business logic.
@@ -107,8 +107,8 @@ class PostCreator topic_creator = TopicCreator.new(@user, guardian, @opts) return false unless skip_validations? || validate_child(topic_creator) else - @topic = Topic.find_by(id: @opts[:topic_id]) - if (@topic.blank? || !guardian.can_create?(Post, @topic)) + @topic...
[PostCreator->[save_post->[skip_validations?],build_post_stats->[track_post_stats],store_unique_post_key->[store_unique_post_key],create!->[create!],create->[create,valid?],handle_spam->[skip_validations?,create],ensure_in_allowed_users->[create!],valid?->[skip_validations?],transaction->[transaction],enqueue_jobs->[en...
Checks if a single node in the system is a valid .
Why is `skip_validations` required here? I don't see any validations in this line or within the following closure
@@ -676,12 +676,10 @@ class SemanticAnalyzerPass2(NodeVisitor[None], self.fail('Type signature has too many arguments', fdef, blocker=True) def visit_class_def(self, defn: ClassDef) -> None: - self.scope.enter_class(defn.info) - with self.analyze_class_body(defn) as should_continue: + ...
[infer_condition_value->[infer_condition_value],make_any_non_explicit->[accept],SemanticAnalyzerPass2->[analyze_comp_for->[analyze_lvalue],build_newtype_typeinfo->[named_type],name_not_defined->[add_fixture_note,lookup_fully_qualified_or_none],check_classvar->[is_self_member_ref],visit_lambda_expr->[analyze_function],b...
Analyzes a class definition. Analyzes the typeinfo of the class.
Style nit: I'd prefer two nested with statements, as otherwise the second context manager is easy to miss.
@@ -236,6 +236,8 @@ type RuntimeConfig struct { EventsLogger string `toml:"events_logger"` // EventsLogFilePath is where the events log is stored. EventsLogFilePath string `toml:-"events_logfile_path"` + //DetachKeys is the sequence of keys used to detach a container + DetachKeys string `toml:"detach_keys"` } ...
[Shutdown->[ID,Wrapf,Unlock,AllContainers,Shutdown,Close,Lock,StopWithTimeout,Errorf],GetConfig->[RUnlock,Wrapf,RLock],Info->[GetBlockedRegistries,Wrapf,GetInsecureRegistries,storeInfo,GetRegistries,hostInfo],refresh->[ID,Wrapf,newSystemEvent,AllContainers,Close,Errorf,AllPods,OpenFile,refresh,Refresh,Debugf],generateN...
InfraImage is the name of the image that is used to start up a pod inf RuntimeConfig returns the runtime configuration for the container.
Completely unrelated to this PR, but what is this `-` doing in the TOML string... @baude you added this, right?
@@ -48,6 +48,7 @@ void AddAMGCLSolverToPython(pybind11::module& m) enum_<AMGCLSmoother>(m,"AMGCLSmoother") .value("SPAI0", SPAI0) + .value("SPAI1", SPAI1) .value("ILU0", ILU0) .value("DAMPED_JACOBI",DAMPED_JACOBI) .value("GAUSS_SEIDEL",GAUSS_SEIDEL)
[AddAMGCLSolverToPython->[,enum_<AMGCLSmoother>,enum_<AMGCLCoarseningType>,enum_<AMGCLIterativeSolverType>]]
AddAMGCLSolverToPython adds a new AMD solver to the module. missing block of type AMDCoarseningType.
i actually would like to remove this construction mode and only leave the one by parameters... in any case let's remove it at a later time
@@ -180,12 +180,12 @@ int comp_verify_params(struct comp_dev *dev, uint32_t flag, int comp_buffer_connect(struct comp_dev *comp, uint32_t comp_core, struct comp_buffer *buffer, uint32_t buffer_core, uint32_t dir) { + struct comp_dev *cd = buffer_get_comp(buffer, dir); int ret; /* check if it's a connection ...
[No CFG could be retrieved]
find the buffer that owns the component and set the period frames find the scheduling component by id.
unless one of your other patches / PRs that I haven't got in my local tree yet changed this yet, `dir` in `buffer_get_comp()` and in `pipeline_connect()` / `buffer_set_comp()` have different meanings, which isn't confusing at all of course. The former is one of `PPL_DIR_DOWNSTREAM` / `PPL_DIR_UPSTREAM` while the latter...
@@ -1475,6 +1475,11 @@ namespace System.Net.Http.Functional.Tests { await server.AcceptConnectionAsync(async connection => { + if (connection is Http2LoopbackConnection http2Connection) + { + http2Connection.Setu...
[HttpClientHandlerTest->[Properties_Get_CountIsZero->[Equal,Count,Properties,CreateHttpClientHandler,Same],Properties_AddItemToDictionary_ItemPresent->[Equal,TryGetValue,Properties,CreateHttpClientHandler,Add,True],MaxRequestContentBufferSize_SetInvalidValue_ThrowsArgumentOutOfRangeException->[MaxValue,MaxRequestConten...
Send an unexpected 1xx response.
We shouldn't need to do this for every test that uses LoopbackServerFactory. It should be enabled by default or something.
@@ -346,7 +346,10 @@ public class ServerPluginRepository implements PluginRepository, Startable { * @return the list of plugins to be uninstalled as {@link PluginInfo} instances */ public Collection<PluginInfo> getUninstalledPlugins() { - return newArrayList(transform(listJarFiles(uninstalledPluginsDir())...
[ServerPluginRepository->[appendDependentPluginKeys->[appendDependentPluginKeys]]]
Cancel uninstalls.
same suggestion to use MoreCollectors here
@@ -0,0 +1,14 @@ +import { render } from "@wordpress/element"; +import AddonInstallationSuccessful from "./components/AddonInstallationSuccessful"; + +const elementToInsert = document.createElement( "div" ); +elementToInsert.setAttribute( "id", "wpseo-app-element-2" ); + +// Insert under the first heading on the page. ...
[No CFG could be retrieved]
No Summary Found.
Have you considered adding an ID to the heading we want to attach this to? Would make changes to the layout of the page in the future a bit more easy.
@@ -41,8 +41,7 @@ public final class SparkRunnerRegistrar { public static class Runner implements PipelineRunnerRegistrar { @Override public Iterable<Class<? extends PipelineRunner<?>>> getPipelineRunners() { - return ImmutableList.of( - SparkRunner.class, TestSparkRunner.class, SparkStructur...
[SparkRunnerRegistrar->[Runner->[getPipelineRunners->[of]],Options->[getPipelineOptions->[of]]]]
Returns an iterable of PipelineRunners that are not yet in the pipeline runners.
Is it a breaking change? If yes then it would make sense to add a note about that into `CHANGES`
@@ -51,7 +51,7 @@ class Lmod(AutotoolsPackage): def setup_environment(self, spack_env, run_env): stage_lua_path = join_path( - self.stage.path, 'Lmod-{version}', 'src', '?.lua') + self.stage.source_path, 'Lmod-{version}', 'src', '?.lua') spack_env.append_path('LUA_PATH', s...
[Lmod->[setup_environment->[join_path,append_path,format],patch->[filter_file,Version,glob],depends_on,version,patch]]
Add the environment variables for the Nexus Nexus environment.
This one should be `self.stage.source_path, 'src', '?.lua')`, as `Lmod-<version>` is now just `src`
@@ -1208,12 +1208,15 @@ abstract class CommonObject { // phpcs:enable $temp = array(); + $listId = null; $typeContact = $this->liste_type_contact($source, '', 0, 0, $code); - foreach ($typeContact as $key => $value) { - array_push($temp, $key); + if (! empty($typeContact)) { + foreach ($typeContact ...
[CommonObject->[updateExtraField->[insertExtraFields,call_trigger],setSaveQuery->[isArray,isDuration,isDate,isInt,isFloat],fetchLinesCommon->[getFieldList,setVarsFromFetchObj],getBannerAddress->[getFullAddress,getFullName],line_ajaxorder->[updateRangOfLine],copy_linked_contact->[add_contact],update_note_public->[update...
Deletes all linked contacts of the element.
Something looks strange to me in this method. If we don't find any type of contact, typeContact will be empty. It means we will delete all links later with the delete ? It seems it was already the case before. Don't you think we should include the delete inside the if ($listId)
@@ -44,6 +44,13 @@ class Postgres extends Connector { $connection->prepare("SET NAMES '{$config['charset']}'")->execute(); } + // If a schema has been specified, we'll execute a query against + // the database to set the search path. + if (isset($config['schema'])) + { + $connection->prepare("SET search_...
[Postgres->[connect->[execute,options]]]
Connect to the database and return a PDO object.
Thanks @racklin for this, this addition was very useful :-) One thing that I noticed was that it trips up when you are trying to select multiple postgres schemas, since the single quote wrapping the desired schema tells pgsql to treat it as one. For the case of multiple schemas, it may be better to make $config['scema'...
@@ -160,6 +160,7 @@ public class GroupByRowProcessor aggregatorFactories ); final Grouper<RowBasedKey> grouper = pair.lhs; + // grouper.init(); final Accumulator<Grouper<RowBasedKey>, Row> accumulator = pair.rhs; closeOnExit.add(...
[GroupByRowProcessor->[process->[cleanup->[close],make->[close->[close],get->[get],close]]]]
Process a sequence of rows. Returns an iterator which iterates all the elements in the sequence.
Please remove this.
@@ -227,6 +227,10 @@ public class FlowComputation { boolean endOfPath = visitedAllParents(edge) || shouldTerminate(learnedConstraints); + if (endOfPath) { + flowBuilder.addAll(flowForNullableMethodParameters(edge.parent)); + } + List<JavaFileScannerContext.Location> currentFlow = flow...
[FlowComputation->[flowsForArgumentsChangingName->[equals],ExecutionPath->[addEdge->[ExecutionPath],equals->[equals],isConstraintOnlyPossibleResult->[equals],learnedConstraints->[learnedConstraints],newTrackedSymbols->[learnedAssociation]],flow->[FlowComputation,flow],computedFrom->[computedFrom]]]
Adds an edge to the graph.
I think this should be done outside of the path exploration as a separate step in `FlowComputation.run` method, because this is not dependent on the specific path and should be added to all flows.
@@ -85,7 +85,9 @@ Java_io_daos_obj_DaosObjClient_closeObject(JNIEnv *env, jclass clientClass, if (rc) { char *msg = "Failed to close DAOS object"; - throw_exception_const_msg_object(env, msg, rc); + throw_const_obj(env, + msg, + rc); } }
[No CFG could be retrieved]
Java object functions private void jni_io_daos_obj_DaosObjClient_.
(style) code indent should use tabs where possible
@@ -5,8 +5,15 @@ type TemplateConfig struct { Name string `config:"name"` Fields string `config:"fields"` Overwrite bool `config:"overwrite"` - OutputToFile string `config:"output_to_file"` Settings templateSettings `config:"settings"` + OutputToFil...
[No CFG could be retrieved]
template type is a constructor for the template.
Not too much of a fan of the config name, but well :-)
@@ -26,16 +26,6 @@ import io.netty.handler.codec.compression.ZlibWrapper; * handler modifies the message, please refer to {@link HttpContentDecoder}. */ public class HttpContentDecompressor extends HttpContentDecoder { - - /** - * {@code "x-deflate"} - */ - private static final AsciiString X_DEFLATE ...
[HttpContentDecompressor->[newContentDecoder->[equalsIgnoreCase,EmbeddedChannel,newZlibDecoder],AsciiString]]
Creates a new HttpContentDecompressor that decompresses a single HTTP message and a Creates a decoder for the given content encoding.
@trustin - I think these got moved during the header back port (and then forward port). I think it is better to keep a common definition in the HttpHeaderValue class rather than an independent definition in http/2 and http codec (and potentially spdy). If you agree I will back port the portion related to this change af...
@@ -518,6 +518,16 @@ dss_srv_handler(void *arg) * temporary, Let's keep progressing for now. */ } + + daos_gettime_coarse(&now); + if (dmi->dmi_last_crt_progress_time == 0) { + dmi->dmi_last_crt_progress_time = now; + } else if (dmi->dmi_last_crt_progress_time + + PROGRESS_MESG_INTV < now...
[No CFG could be retrieved]
create GC ULT function to handle the failure of a context.
(style) Comparisons should place the constant on the right side of the test
@@ -125,9 +125,10 @@ class NativeExternalLibraryFetch(Task): @memoized_property def _conan_binary(self): - return Conan.scoped_instance(self).bootstrap( - self._conan_python_interpreter, - self._conan_pex_path) + # Note: For historical reasons, this file manipulates and executes pex commandlines...
[NativeExternalLibraryFetch->[_fetch_packages->[ensure_conan_remote_configuration,ConanRequirement,_copy_package_contents_from_conan_dir,parse_conan_stdout_for_pkg_sha,NativeExternalLibraryFetchError],_copy_package_contents_from_conan_dir->[_get_conan_data_dir_path_for_package],ensure_conan_remote_configuration->[_add_...
A method to create a Conan binary.
It might be that we can convert the whole native backend to v2 and do this at the same time.
@@ -55,5 +55,7 @@ namespace NServiceBus RootContext context; MessageOperations messageOperations; + + internal const string SubscribeAllFlagKey = "NServiceBus.SubscribeAllFlag"; } } \ No newline at end of file
[MessageSession->[Task->[nameof,Unsubscribe,AgainstNull,Publish,Send,Subscribe],context]]
The root context.
Can someone implementing a pipeline behavior need this? Should this be public or even a property?
@@ -254,9 +254,9 @@ namespace DotNetNuke.Services.GeneratedImage cachePolicy.SetExpires(DateTime_Now + ClientCacheExpiration); cachePolicy.SetETag(cacheId); } - + // Handle Server cache - if (EnableServerCache) + if (EnableSer...
[ImageHandlerInternal->[HandleImageRequest->[GetImageMimeType],RenderImage->[GetImageMimeType]]]
Handles image request. This function is the main entry point for the DNNImageHandler. It generates the image This function is called from the CacheHandler to try to transmit the image if it is contained.
This will avoid the cache not clear the cache
@@ -91,4 +91,10 @@ public interface CommandQueue extends Closeable { */ @Override void close(); + + void setOffsetValue(int offsetValue); + + void setSnapshot(); + + SnapshotWithOffset getSnapshotWithOffset(); }
[No CFG could be retrieved]
Close the sequence of tokens.
Combine these into a common call `setSnapshotWithOffset` - we need to update them together atomically.
@@ -93,6 +93,11 @@ public final class KafkaProducerInstrumentation extends Instrumenter.Default { callback = new ProducerCallback(callback, span); + boolean isTombstone = record.value() == null && !record.headers().iterator().hasNext(); + if (isTombstone) { + span.setAttribute("tombstone", t...
[KafkaProducerInstrumentation->[ProducerCallback->[onCompletion->[onCompletion]]]]
On method enter. Returns a sequence of characters that are not allowed to be included in the span.
This attribute is certainly not from semantic convention. Why should we want this into Otel?
@@ -208,6 +208,12 @@ public class MoveDelegate extends AbstractMoveDelegate { // while loading. if (GameStepPropertiesHelper.isResetUnitStateAtEnd(data)) { resetUnitStateAndDelegateState(); + } else { + + // Only air units can move during both CM and NCM in the same turn so moved units are set ...
[MoveDelegate->[loadState->[loadState],saveState->[saveState],end->[end],start->[start],removeAirThatCantLand->[removeAirThatCantLand],setDelegateBridgeAndPlayer->[setDelegateBridgeAndPlayer]]]
end of the sequence.
Nit: For readability, consider renaming this variable `alreadyMovedNonAirUnits`.
@@ -133,9 +133,9 @@ const fixedTimestamp = model.Time(1557654321000) func TestChunkDecodeBackwardsCompatibility(t *testing.T) { // Chunk encoded using code at commit b1777a50ab19 - rawData := []byte("\x00\x00\x00\xb7\xff\x06\x00\x00sNaPpY\x01\xa5\x00\x00\x04\xc7a\xba{\"fingerprint\":18245339272195143978,\"userID\"...
[f,Now,Duration,Encode,LabelsToMetric,Add,StopTimer,Cause,ExternalKey,Time,MergeSampleSets,Equal,NewForEncoding,Sort,NoError,Encoded,Samples,Fingerprint,Sprintf,StartTimer,Decode,Background,Run,ResetTimer]
TestChunkDecodeBackwardsCompatibility tests that the user - provided user - provided chunk has a TestParseExternalKey tests that the passed in external key is a valid Bigchunk.
Could you explain why this has changed? Given this is a backward compatibility test, we shouldn't touch it.
@@ -371,6 +371,12 @@ GenericAgentConfig *CheckOpts(int argc, char **argv) } break; + case 'T': + GenericAgentConfigSetInputFile(config, optarg, "promises.cf"); + MINUSF = true; + config->tag_release_dir = xstrdup(optarg); + break; + ...
[main->[GenericAgentConfigApply,EvalContextNew,GenericAgentLoadPolicy,PolicyToString,PolicyDestroy,PolicyToJson,EvalContextDestroy,WriterClose,GenericAgentDiscoverContext,ParserParseFile,GenericAgentConfigDestroy,ShowPromises,ShowContextsFormatted,ShowVariablesFormatted,Log,JsonWrite,CheckOpts,FileWriter,exit,JsonDestr...
Check - options and - options for the agent - specific - common. Optionally set config - agent - specific. common. policy_output_format - either - - - - - - - - - - - - - - - - - -.
MINUSF = true here worries me. Is it really necessary?
@@ -247,7 +247,7 @@ def test_scrape(scraper): """The scraper will loop through sources until complete.""" scraper.add_source('fake', 'loop', length=2, depth=2) sources = scraper.scrape() - assert sources.keys() == ['fake:loop', 'fake:loop2', 'fake:loop21'] + assert set(sources.keys()) == {'fake:loo...
[test_request->[request,Mock,assert_called_once_with,Requester],scraper->[Scraper],FakeSource->[gather->[append]],test_warn_percent_in_param->[assert_called_once_with,add_source,scrape],test_add_existing_source->[add_source],mock_logger->[patch],test_add_new_source->[add_source,isinstance],test_timeout_failure->[call,R...
Scrapes a scraper and checks that it s complete.
interesting way to work around iterator ``keys()`` an avoid assumed ordering
@@ -191,11 +191,11 @@ export class AmpAdNetworkDoubleclickImpl extends AmpA4A { /** @private {?Element} */ this.ampAnalyticsElement_ = null; - /** @type {?Object<string,*>}*/ + /** @type {?JsonObject|Object} */ this.jsonTargeting = null; - /** @type {number} */ - this.adKey = 0; + /** ...
[AmpAdNetworkDoubleclickImpl->[postTroubleshootMessage->[dict,stringify,now,devAssert,userAgent],extractSize->[height,extractAmpAnalyticsConfig,dev,get,width],getBlockParameters_->[width,height,getContainerWidth,isInManualExperiment,serializeTargeting,assign,devAssert,googleBlockParameters,Number],constructor->[user,ex...
Initializes a new missing - value object. Private methods for handling a single unknown node.
@aghassemi @jridgewell Is this change from `number` to `string` okay?
@@ -1071,7 +1071,8 @@ export class AmpForm { .then(rendered => { rendered.id = messageId; rendered.setAttribute('i-amphtml-rendered', ''); - return this.resources_.mutateElement(devAssert(container), + return this.resources_.mutateElement( + ...
[No CFG could be retrieved]
Provides a function to handle the creation of a new object of type eventType. onCreate - > onCreate - > onUpdate - > onHide - > onHide.
nested devAssert could go away
@@ -40,6 +40,8 @@ class Project < ApplicationRecord where("r1.project_id = :id OR r2.project_id = :id", id: project.id) } + has_one :key_set, class_name: 'Dataset::KeySet', as: :resource + validates :title, :owner, presence: true def info_request?(info_request)
[Project->[member?->[include?],info_request?->[include?],project_contributor_role,validates,has_one,where,project_owner_role,has_many,lambda,id]]
Checks if the given info request is a known info request.
For now just a has one association but can be changed to has many in the future when needed.
@@ -731,6 +731,11 @@ void ChatBackend::clearRecentChat() m_recent_buffer.clear(); } + +void ChatBackend::applySettings() { + m_recent_buffer.resize(g_settings->getU32("recent_chat_size")); +} + void ChatBackend::step(float dtime) { m_recent_buffer.step(dtime);
[historyPrev->[replace],step->[deleteByAge,step],formatChatLine->[clear],historyNext->[replace],scrollPageDown->[getRows,scroll],getRecentChat->[getLineCount],deleteByAge->[deleteOldest],nickCompletion->[replace],scrollPageUp->[getRows,scroll],clear->[clear],addMessage->[addLine],ChatLine->[getLineCount],addUnparsedMes...
clear recent chat buffer.
brace on wrong line
@@ -46,13 +46,11 @@ public class HoodieFileReaderFactory { throw new UnsupportedOperationException(extension + " format not supported yet."); } - private static <T extends HoodieRecordPayload, R extends IndexedRecord> HoodieFileReader<R> newParquetFileReader( - Configuration conf, Path path) throws IOEx...
[HoodieFileReaderFactory->[getFileReader->[equals,getFileExtension,newHFileFileReader,newParquetFileReader,toString,UnsupportedOperationException],newHFileFileReader->[CacheConfig]]]
Returns a file reader that reads the next record in the file system based on the given configuration.
this method never throws IOException. Can you remove that as well?
@@ -165,8 +165,7 @@ Epetra_Map * convert_lightweightmap_to_map(const EpetraExt::LightweightMap & A, Epetra_CrsMatrix* convert_lightweightcrsmatrix_to_crsmatrix(const EpetraExt::LightweightCrsMatrix & A) { - RCP<TimeMonitor> tm; - tm = rcp(new TimeMonitor(*TimeMonitor::getNewTimer("OptimizedTransfer: Convert: Map...
[main_->[TestTransfer],TestTransfer->[epetra_check_importer_correctness,convert_lightweightcrsmatrix_to_crsmatrix],convert_lightweightcrsmatrix_to_crsmatrix->[convert_lightweightmap_to_map,build_remote_pids]]
Convert a lightweight CRS matrix into a CRS matrix. Get a specific node in the domain map that is not part of the Export.
There are huge whitespace changes. It looks to me like your editor inserted tabs, rather than spaces. Could you please fix this.
@@ -2079,8 +2079,8 @@ class DFRN return false; } - $fields = ['title' => $item["title"], 'body' => $item["body"], - 'tag' => $item["tag"], 'changed' => DateTimeFormat::utcNow(), + $fields = ['title' => defaults($item["title"], ''), 'body' => defaults($item["body"], ''), + 'tag' => defaults($item[...
[DFRN->[mail->[appendChild,saveXML,createElement],itemFeed->[setAttribute,createElementNS,saveXML,appendChild],relocate->[appendChild,saveXML,createElement],fsuggest->[appendChild,saveXML,createElement],fetchauthor->[item,query,evaluate],processRelocation->[item],import->[item,registerNamespace,query,loadXML],processSu...
Update the content of an item in the current item.
The `defaults()` syntax for array usually is `defaults($item, 'title', '')`, unless you are sure the keys exists and you can use the shorter ternary operator form `$item['title'] ? : ''`.
@@ -56,4 +56,15 @@ public interface DimFilter * @return a Filter that implements this DimFilter, or null if this DimFilter is a no-op. */ public Filter toFilter(); + + /** + * Returns a RangeSet that represents the possible range of the input dimension for this DimFilter.This is + * applicable to filter...
[No CFG could be retrieved]
Returns the filter object that can be used to filter the query.
Note that ?
@@ -147,14 +147,7 @@ func serve(cmd *cobra.Command, args []string) error { LegacyDataCollectorToken: c.LegacyDataCollectorToken, } - // TODO (tc): We are dialing twice now. We should move all the client dials out here. - authzConn, err := factory.Dial("authz-service", c.AuthzAddress) - if err != nil { - return ...
[NewFactory,Close,Wrap,Exit,ParseZapLevel,ParseZapEncoding,Stop,ReadFile,Dial,New,ProjectUpdateBackend,NewManager,Start,NewProductionConfig,Errorf,RegisterTaskExecutors,Wrapf,Fprintln,FixupRelativeTLSPaths,Infof,Sugar,RedirectStdLog,WithVersionInfo,Serve,Build,NewServer,Sync,Background,NewGlobalTracer,Unmarshal,CloseQu...
Initialize a single unique identifier. nanononononononononon is a function that returns a logger that.
why don't we need to initialize the authz client anymore?
@@ -30,9 +30,9 @@ var errExit = fmt.Errorf("exit directly") const newAppLongDesc = ` Create a new application in OpenShift by specifying source code, templates, and/or images. -This command will try to build up the components of an application using images or code -located on your system. It will lookup the images ...
[StringVar,StringP,AddObjectLabels,Errors,AddPrinterFlags,Exit,GetFlagString,Ping,VarP,Errorf,CheckErr,Var,Clients,NewHelper,DefaultNamespace,Create,Infof,NewPrintNameOrErrorAfter,V,NewAppConfig,SetOpenShiftClient,SetDockerClient,Out,Object,Fprintf,ParseLabels,AddArguments,Sprintf,UsageError,GetClient,Run,PrintObject,F...
Component of the application Create a new application from the remote repository.
You need the Oxford comma (a, b, and c)
@@ -9,6 +9,8 @@ class User < ApplicationRecord before_validation :nillify_empty_email_and_id_number # Group relationships + has_one :grader_permission, dependent: :destroy + after_create :create_grader_permission has_many :memberships, dependent: :delete_all has_many :grade_entry_students has_many :g...
[User->[admin?->[class],active_groupings->[where],grouping_for->[assessment_id,find],authenticate->[popen,nil?,new,instance,log,validate_custom_exit_status,join,close,exitstatus,match,puts,validate_file],test_server?->[class],student?->[class],authorize->[first],is_a_reviewer?->[is_peer_review?,is_a?,nil?],upload_user_...
This function requires the digest and base64 for the API token to be set. Check if user is authorized to enter MarkUs.
move this, the line below it, and the associated methods into the `ta.rb` model
@@ -78,13 +78,6 @@ const CACHED_FONT_LOAD_TIME_ = 100; export class AmpFont extends AMP.BaseElement { - - /** @override */ - prerenderAllowed() { - return true; - } - - /** @override */ buildCallback() { /** @private @const {string} */
[No CFG could be retrieved]
A class that exports a single with the default values. Starts to download the font.
Where's all the work done? In `buildCallback`?
@@ -164,9 +164,14 @@ class Jetpack_Carousel { return $output; } + function set_in_gallery( $output ) { + $this->in_gallery = true; + return $output; + } + function add_data_to_images( $attr, $attachment = null ) { - if ( $this->first_run ) // not in a gallery + if ( $this->in_gallery ) // not in a galler...
[Jetpack_Carousel->[carousel_display_geo_callback->[settings_checkbox],carousel_display_geo_sanitize->[sanitize_1or0_option],carousel_enable_it_callback->[settings_checkbox],carousel_enable_it_sanitize->[sanitize_1or0_option],carousel_display_exif_callback->[settings_checkbox],settings_checkbox->[test_1or0_option],caro...
Enqueue the assets needed for the carousel 1 or 0 carousel display options Jetpack comments plugin Renders the Jetpack Carousel comment form. Add data to images This function is used to generate a link to an attachment.
Should this be ! in_gallery?
@@ -101,7 +101,7 @@ namespace GenDefinedCharList runtimeCodeBuilder.AppendLine(Invariant($" /// A <see cref=\"UnicodeRange\"/> corresponding to the '{blockName}' Unicode block (U+{startCode}..U+{endCode}).")); runtimeCodeBuilder.AppendLine(Invariant($" /// </summary>")); ...
[Program->[WriteCopyrightAndHeader->[AppendLine],RemoveAllNonAlphanumeric->[ToArray],Main->[Match,Value,AppendLine,WithDotNetPropertyCasing,RemoveAllNonAlphanumeric,ReadAllLines,Contains,WriteLine,OrdinalIgnoreCase,WriteAllText,WriteCopyrightAndHeader,Parse,Invariant,HexNumber,ToString,InvariantCulture,Length,Success],...
This method reads the contents of the file specified by the command line and checks if the block Private helper methods This is a helper method to generate code for a missing object.
This is used to generate the `UnicodeRanges.generated.cs` file.
@@ -755,9 +755,10 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat } autoAdjustEditorHeight(_editor); - angular.element(window).resize(function() { - autoAdjustEditorHeight(_editor); - }); + + let adjustEditorListener = () => autoAdjustEditorHeigh...
[No CFG could be retrieved]
A directive to show the text in the editor. on call completion.
@Savalek instead of this; could we have done `angular.element(window).unbind('resize');` in `$scope.$on('$destroy', function() {`, would it yield same result?
@@ -3,12 +3,13 @@ package org.apereo.cas.support.oauth; import org.apereo.cas.support.oauth.web.OAuth20ProfileControllerTests; import org.apereo.cas.support.oauth.web.OAuth20AccessTokenControllerTests; import org.apereo.cas.support.oauth.web.OAuth20AuthorizeControllerTests; +import org.apereo.cas.ticket.refreshtoken...
[No CFG could be retrieved]
package org. apache. oauth. web. OAuth20ControllerTests.
This is not a Test class?
@@ -46,6 +46,7 @@ public class OAuth2ReactiveRefreshTokensWebFilter implements WebFilter { .filter(principal -> principal instanceof OAuth2AuthenticationToken) .cast(OAuth2AuthenticationToken.class) .flatMap(authentication -> authorizedClient(exchange, authentication)) + ...
[No CFG could be retrieved]
Provides a web filter which refreshes the oauth2 tokens.
It should redirect to the oauth2 login here. If the token is expired, an error is returned.
@@ -64,6 +64,10 @@ class Pgi(Package): license_vars = ['PGROUPD_LICENSE_FILE', 'LM_LICENSE_FILE'] license_url = 'http://www.pgroup.com/doc/pgiinstall.pdf' + def url_for_version(self, version): + return "file://{0}/pgilinux-20{1}-{2}-x86_64.tar.gz".format( + os.getcwd(), version.up_to(1)...
[Pgi->[install->[system,RuntimeError],variant,getcwd,version]]
Installs a single or network object.
We need a more systematic approach than this. Can the user place it in a manual mirror, rather than CWD? (I suppose that such behavior is not prohibited in this case).
@@ -244,7 +244,7 @@ func (ctx *Context) Invoke(tok string, args interface{}, result interface{}, opt // err := ctx.ReadResource(tok, name, id, nil, &resource, opts...) // func (ctx *Context) ReadResource( - t, name string, id IDInput, props Input, resource CustomResource, opts ...ResourceOption) error { + t, nam...
[ReadResource->[ReadResource,DryRun],RegisterComponentResource->[RegisterResource],Invoke->[Invoke],resolve->[resolve],prepareResourceInputs->[DryRun],RegisterResourceOutputs->[DryRun,endRPC,RegisterResourceOutputs,beginRPC],Close->[Close],RegisterResource->[DryRun,RegisterResource]]
ReadResource reads a resource from the given resource type. ReadResource reads a resource.
This refactoring will break all of our SDKs, so let's remove it for now .
@@ -419,7 +419,10 @@ class PublicBody < ActiveRecord::Base # Give an error listing ones that are to be deleted deleted_ones = set_of_existing - set_of_importing if deleted_ones.size > 0 - notes.push "Notes: Some " + tag + " bodies are in database, but not in CSV file:\n " + Array(...
[PublicBody->[get_request_percentages->[where_clause_for_stats],purge_in_cache->[purge_in_cache],not_requestable_reason->[defunct?,has_request_email?,not_apply?],set_locale_fields_from_csv_row->[localized_csv_field_name],request_email_if_requestable->[request_email,is_requestable?],get_request_totals->[where_clause_for...
Imports a CSV file containing a sequence of individual I18n - formatted I18n - This method imports a single node in the CSV file.
Explain what was breaking and how this fixes it. Might need specs?
@@ -400,14 +400,13 @@ class TestReceiptFromStreamAsync(AsyncFormRecognizerTest): @FormRecognizerPreparer() @GlobalClientPreparer() - @pytest.mark.skip("the service is returning a different error code") async def test_receipt_locale_error(self, client): with open(self.receipt_jpg, "rb") as f...
[TestReceiptFromStreamAsync->[test_blank_page->[begin_analyze_document,read,result,open,assertIsNotNone],test_damaged_file_passed_as_bytes->[result,assertRaises,begin_analyze_document],test_pages_kwarg_specified->[open,read,result,begin_analyze_document],test_passing_enum_content_type->[begin_recognize_receipts,read,re...
Test for the presence of a prebuilt - receipt with a locale.
So is this the error code to expect from now on here?
@@ -1210,13 +1210,13 @@ function format_like($cnt, array $arr, $type, $id) { $arr = array_slice($arr, 0, MAX_LIKERS - 1); } if ($total < MAX_LIKERS) { - $last = t('and') . ' ' . $arr[count($arr)-1]; + $last = L10n::t('and') . ' ' . $arr[count($arr)-1]; $arr2 = array_slice($arr, 0, -1); $str = impl...
[best_link_url->[get_hostname],localize_item->[attributes],get_responses->[getId],conversation->[getTemplateData,addParent]]
Format like like like dislike like and attend maybe like like and dislike like like Renders the list of all the items in the list. id = > expanded.
If I understood it correctly, you can merge the sprintf into the t call.
@@ -477,4 +477,13 @@ Status appendLogTypeToJson(const std::string& log_type, std::string& log) { } return Status(0, "OK"); } + +void setAWSProxy(Aws::Client::ClientConfiguration& config) { + config.proxyScheme = + Aws::Http::SchemeMapper::FromString(FLAGS_aws_proxy_scheme); + config.proxyHost = FLAGS_aws_...
[getInstanceIDAndRegion->[initAwsSdk],CreateHttpRequest->[CreateHttpRequest],getAWSRegion->[getAWSRegionFromProfile]]
Append log type to JSON and log log.
I would prefer this to fail as opposed to revert to the default.
@@ -43,4 +43,7 @@ public abstract class EC2AutoScalingStrategyConfig @Config("druid.indexer.maxNumInstancesToProvision") @Default("1") public abstract int getMaxNumInstancesToProvision(); + + @Config("druid.indexer.userDataFile") + public abstract String getUserDataFile(); }
[No CFG could be retrieved]
The maximum number of instances to provision.
Having the userData in a file like this is going to make it rather difficult to edit on the fly. I'm assuming one of the things in the userData is the specific version of things that you want deployed and when you change from one AMI to another it's possible you will also want to change the userdata. I think we should ...
@@ -27,6 +27,7 @@ type Registrar struct { var ( statesUpdated = expvar.NewInt("registrar.state_updates") + statesTotal = expvar.NewInt("registar.states.total") ) func New(registryFile string) (*Registrar, error) {
[Stop->[Info,Wait],loadStates->[IsNotExist,NewDecoder,Stat,Decode,loadAndConvertOldState,Close,Open,SetStates,Info,Err],processEventStates->[Update,Debug],Init->[Dir,Resolve,Errorf,Info,MkdirAll],loadAndConvertOldState->[Seek,Info,Decode,Now,writeRegistry,SetStates,NewDecoder,Debug],Start->[loadStates,Err,Add,Run],writ...
registrar import imports the given object and returns a Registrar GetStates fetches the previous reading of the state from the configure RegistryFile file.
counters for states added and removed would be nice too.
@@ -258,6 +258,17 @@ class ProjectsController < ApplicationController current_team_switch(@project.team) end + def experiments_cards + overview_service = ExperimentsOverviewService.new(@project, current_user, params) + render json: { + cards_html: render_to_string( + partial: 'projects/show...
[ProjectsController->[new->[new],create->[new],update->[update]]]
This action displays a single node index that is a part of the system.
Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.