patch
stringlengths
18
160k
callgraph
stringlengths
4
179k
summary
stringlengths
4
947
msg
stringlengths
6
3.42k
@@ -1315,7 +1315,15 @@ namespace System.Runtime.Serialization return (param == null) ? SR.Format(message, nestedMessage) : SR.Format(message, nestedMessage, param); } - private static void FindCollectionMethodsOnInterface(Type type, Type interfaceType, ref MethodInfo? addMethod, ref Metho...
[CollectionDataContract->[IsCollection->[IsCollection],IncrementCollectionCount->[IncrementCollectionCount],GetCollectionMethods->[GetTargetMethodWithName,FindCollectionMethodsOnInterface],IsCollectionOrTryCreate->[IsArraySegment,IsCollection],GenericDictionaryEnumerator->[MoveNext->[MoveNext],Reset->[Reset]],Dictionar...
Get invalid collection message.
This shouldn't be `MakeGenericMethod` #Resolved
@@ -353,6 +353,16 @@ func (g *GlobalContext) ConfigureConfig() error { func (g *GlobalContext) ConfigReload() error { err := g.ConfigureConfig() g.ConfigureUpdaterConfig() + g.ConfigureDeviceCloneState() + return err +} + +func (g *GlobalContext) ConfigureDeviceCloneState() error { + c := NewDeviceCloneStateJSONFi...
[GetDataDir->[GetDataDir],GetCacheDir->[GetCacheDir],LogoutSelfCheck->[Logout],BustLocalUserCache->[GetFullSelfer,GetUPAKLoader],Configure->[SetCommandLine,ConfigureLogging],Shutdown->[shutdownCachesLocked,Shutdown],GetMeUV->[GetUPAKLoader],ConfigReload->[ConfigureConfig],GetLogDir->[GetLogDir],GetStoredSecretServiceNa...
ConfigReload reloads the configuration from the file system.
why open this here? why not just open it whenever you need to access it?
@@ -272,13 +272,13 @@ class ResultsController < ApplicationController def expand_criteria @assignment = Assignment.find(params[:aid]) @rubric_criteria = @assignment.rubric_criteria - render :partial => 'results/marker/expand_criteria', :locals => {:rubric_criteria => @rubric_criteria} + render partia...
[ResultsController->[create->[redirect_to,id,find,get_result_used,new,has_result?,submission,result_version_used,save,marking_state],add_extra_mark->[new,find,unit,render,update_attributes,result,post?,save],view_marks->[submission_files,find,percentage,accepted_grouping_for,first,rubric_criteria,released_to_students,g...
This method expands the criteria and the unmarked ones into a single single node.
Line is too long. [97/80]<br>Space inside { missing.<br>Space inside } missing.
@@ -18,7 +18,16 @@ limitations under the License. -%> package <%= packageName %>.config; +<%_ + let springFox3 = false; + if (reactive && (applicationType === 'gateway' || applicationType === 'monolith')) { + springFox3 = true; + } +_%> + +<%_ if (!springFox3) { _%> import com.google.common.base.Predicates; ...
[No CFG could be retrieved]
Imports a single from the JHipster project. OpenAPI configuration for the first .
This will generate an extra empty line, could you remove it?
@@ -78,10 +78,12 @@ class _CloudXNSLexiconClient(dns_common_lexicon.LexiconClient): self.provider = cloudxns.Provider(config) - def _handle_http_error(self, e, domain_name): + def _handle_http_error(self, e: HTTPError, domain_name: str) -> errors.PluginError: hint = None if str(e).s...
[_CloudXNSLexiconClient->[__init__->[build_lexicon_config,super,Provider],_handle_http_error->[str,,PluginError,format]],Authenticator->[add_parser_arguments->[add,super],_perform->[_get_cloudxns_client],_setup_credentials->[_configure_credentials,format],_get_cloudxns_client->[conf,Error,_CloudXNSLexiconClient],_clean...
Initialize a object.
`LexiconClient._handle_http_error` is annotated with `Optional[errors.PluginError]`. How does this work for Python typing? Does an overridden function returning`T` satisfy the original function's `Optional[T]`?
@@ -1545,8 +1545,9 @@ public class MoveValidator { data.getMap().getRoute_IgnoreEnd(start, end, Match.allOf(Matches.TerritoryIsWater, noImpassable)); if (waterRoute != null && ((waterRoute.getLargestMovementCost(unitsWhichAreNotBeingTransportedOrDependent) <= defaultRoute - .ge...
[MoveValidator->[validateTransport->[onlyIgnoredUnitsOnPath,getTerritoryTransportHasUnloadedTo,getEditMode,isLoad],nonParatroopersPresent->[allLandUnitsAreBeingParatroopered],getNeutralCharge->[getNeutralCharge],isNeutralsBlitzable->[isNeutralsImpassable],carrierMustMoveWith->[carrierMustMoveWith],validateParatroops->[...
Get the best route for the given territory. Returns a route with the most likely impassable conditions. This method checks if the route is in the water route or if it is in the water Returns the route that matches the given tests.
It might be easier to read if lines 1553 and 1554 were combined (doesn't look like it will exceed max line length).
@@ -523,4 +523,14 @@ defineSuite([ s.destroy(); }).toThrow(); }); + + it('fails with built-in function circular dependency', function() { + var vs = 'void main() { }'; + var fs = 'void main() { czm_circularDependency1(); gl_FragColor = vec4(1.0); }'; + + + expect(func...
[No CFG could be retrieved]
Destroy WebGL Object.
It kinda doesn't matter, but this should contain `gl_Position = vec4(0.0);`, otherwise I believe the compile/link will fail, which would throw an exception.
@@ -49,7 +49,7 @@ export class AmpSlides extends BaseCarousel { this.slides_.forEach((slide, i) => { this.setAsOwner(slide); // Only the first element is initially visible. - slide.style.display = i > 0 ? 'none' : 'block'; + slide.style.visibility = i > 0 ? 'hidden' : 'visible'; this...
[No CFG could be retrieved]
Creates an AmpSlides containing the children of the current element. Callback for the next .
I just need some context here: `display: none` is much better from a performance pov. But if we do want to render them, then this change is good.
@@ -159,6 +159,18 @@ class ConstantInitializer(Initializer): Returns: the initialization op """ + if in_dygraph_mode(): + out_dtype = var.dtype + attrs = { + "shape": var.shape, + "dtype": int(out_dtype), + "value":...
[init_on_cpu->[force_init_on_cpu],MSRAInitializer->[__call__->[_compute_fans]],ConstantInitializer->[__call__->[force_init_on_cpu]],XavierInitializer->[__call__->[_compute_fans]]]
Adds constant initialization ops for a variable in a given block.
in_dygraph_mode __init__, self.is_dygraph_mode = in_dygraph_mode, if self.is_dygraph_mode
@@ -6,10 +6,12 @@ import ( "time" kapi "k8s.io/kubernetes/pkg/api" + "k8s.io/kubernetes/pkg/api/unversioned" kcoreclient "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion" "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/watch" + "github.com/golang/glog" ...
[Until,AsSelector,Stop,New,ReplicationControllers,Watch,Errorf,DeploymentStatusFor]
WaitForRunningDeployment waits until the specified object is no longer New or Pending or an error is Returns true if the deployment phase is observed.
Isn't this error typed in the watch library?
@@ -203,7 +203,7 @@ class mailing_fraise extends MailingTargets $sql.= " a.lastname, a.firstname,"; $sql.= " a.datefin, a.civility as civility_id, a.login, a.societe"; // Other fields $sql.= " FROM ".MAIN_DB_PREFIX."adherent as a, ".MAIN_DB_PREFIX."adherent_type as ta"; - $sql.= " W...
[mailing_fraise->[add_to_target->[query,error,transnoentities,num_rows,fetch_object,jdate,url,idate,load],formFilter->[query,trans,num_rows,fetch_object,select_date,load],getSqlArrayForStats->[trans,escape,load]]]
Add a member to a target add_to_target add_cibles add_civilers add_ add_to_target add_to_target function.
hello @ptibogxiv it's better to filter with entity before all for mysql performance `$sql.= " WHERE a.entity IN (".getEntity('member').") AND a.email <> ''";`
@@ -2136,6 +2136,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C if (hostIds.isEmpty()) { return null; } + Collections.shuffle(hostIds); for (Long hostId : hostIds) { Host host = _hostDao.findById(hostId);
[StorageManagerImpl->[createChildDatastoreVO->[getStoragePoolTags],updateStoragePool->[enablePrimaryStoragePool,disablePrimaryStoragePool,updateStoragePool],sendToPool->[getUpHostsInPool,sendToPool],canHostAccessStoragePool->[canHostAccessStoragePool],discoverImageStore->[getName],createCapacityEntry->[createCapacityEn...
Finds up and enabled host with access to storage pools.
I think we could add some log to this method, about which host was selected (or not).
@@ -1695,8 +1695,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv if (nic.getBrName().equalsIgnoreCase(_linkLocalBridgeName)) { broadcastUriAllocatedToVM.put("LinkLocal", nicPos); } else { - if (nic.getBrName(...
[LibvirtComputingResource->[getInterfaces->[getInterfaces],isSnapshotSupported->[executeBashScript],getNetworkStats->[networkUsage],cleanupVMNetworks->[getAllVifDrivers],cleanupNetworkElementCommand->[vifHotUnPlug,VifHotPlug,getBroadcastUriFromBridge],getVPCNetworkStats->[configureVPCNetworkUsage],getVmNetworkStat->[ge...
This method is called when a network element command is to be executed. Checks if there is a node in the chain.
@konstantintrushin can you consider checking using `Strings.isNullOrEmpty`?
@@ -1179,7 +1179,8 @@ class PostProcessor(object): # pylint: disable=too-many-instance-attributes with cur_ep.lock: cur_ep.location = ek(os.path.join, dest_path, new_file_name) # download subtitles - if sickbeard.USE_SUBTITLES and ep_obj.show.subtitles: + ...
[PostProcessor->[_find_info->[_analyze_name,_log],_get_quality->[_log],process->[_get_quality,_find_info,_move,_checkForExistingFile,_get_ep_obj,_log,_copy,_hardlink,_moveAndSymlink,_symlink,_run_extra_scripts,_delete,_is_priority,_add_to_anidb_mylist],_move->[_int_move->[_log],_combined_file_operation],list_associated...
Post - process a given file and return True if the file is a valid one Check if a is available for this episode. check if the file has a specific season and if so delete it. Get a from the show and relatedEps.
`and (cur_ep.season != 0 or sickbeard.SUBTITLES_INCLUDE_SPECIALS):`
@@ -18,7 +18,7 @@ RSpec.describe RepositoryListValue, type: :model do it { should accept_nested_attributes_for(:repository_cell) } end - describe '#data' do + describe '#formatted' do let!(:repository) { create :repository } let!(:repository_column) { create :repository_column, name: 'My column' }...
[class_name,to,create,have_db_column,accept_nested_attributes_for,to_not,describe,repository_list_item,save,eq,let!,it,require,belong_to,should]
Describe the list of items cell_attributes - cell attributes.
Block has too many lines. [47/25]
@@ -315,6 +315,12 @@ static GenericAgentConfig *CheckOpts(int argc, char **argv) char **argv_new = TranslateOldBootstrapOptionsConcatenated(argc_new, argv_tmp); FreeStringArray(argc_new, argv_tmp); + /* true if cf-agent is executed by cf-serverd in response to a cf-runagent invocation. + * In that ca...
[No CFG could be retrieved]
Parses command line options and returns the configuration object. Destroy the list of bundles and remove the list of all the bundles.
I don't see dry-runs being blocked by the code changes below. What am I missing ?
@@ -25,8 +25,6 @@ class ApplicationSummaryPaged(Paged): def __init__(self, *args, **kwargs): super(ApplicationSummaryPaged, self).__init__(*args, **kwargs) - - class PoolUsageMetricsPaged(Paged): """ A paging container for iterating over a list of :class:`PoolUsageMetrics <azure.batch.models....
[ComputeNodePaged->[__init__->[super]],CertificatePaged->[__init__->[super]],ApplicationSummaryPaged->[__init__->[super]],CloudJobSchedulePaged->[__init__->[super]],CloudPoolPaged->[__init__->[super]],CloudTaskPaged->[__init__->[super]],PoolUsageMetricsPaged->[__init__->[super]],JobPreparationAndReleaseTaskExecutionInf...
Initialize ApplicationSummaryPaged with a sequence of unique IDs.
Don't remove the lines.
@@ -116,7 +116,7 @@ class SelfAttention(TransformerModule, FromParams): mask_reshp = (batch_size, 1, 1, k_length) attention_mask = (attention_mask == 0).view(mask_reshp).expand_as( attention_scores - ) * -10e5 + ) * nn_util.min_value_of_dtype(attention_sc...
[SelfAttention->[forward->[_transpose_for_scores]]]
Forward computation of the attention scores. Outputs a list of tuples of the context_layer and the attention_probs.
Is that really what we use? Let's use whatever huggingface uses. `min_value` seems risky, because of numeric weirdnesses at the edge of floating point precision.
@@ -262,8 +262,11 @@ class TableServiceClient(AsyncStorageAccountHostsMixin, TableServiceClientBase): page_iterator_class=TablePropertiesPaged ) - def get_table_client(self, table, **kwargs): - # type: (Union[TableProperties, str], Optional[Any]) -> TableClient + def get_table_clien...
[TableServiceClient->[get_service_properties->[get_properties,pop,process_table_error,service_properties_deserialize],delete_table->[_validate_table_name,delete],get_table_client->[AsyncPipeline,AsyncTransportWrapper,TableClient],get_service_stats->[service_stats_deserialize,get_statistics,pop,process_table_error],set_...
Queries tables under the given account. Creates a new table client for the given .
it looks like this only takes a `table_name` now. does the type hint need to be updated?
@@ -119,8 +119,9 @@ public class Fingerprint implements ModelObject, Saveable { * Gets the {@link Job} that this pointer points to, * or null if such a job no longer exists. */ - public AbstractProject getJob() { - return Jenkins.getInstance().getItemByFullName(name,Abstr...
[Fingerprint->[getActions->[getFacets],RangeSet->[retainAll->[addAll,intersect,add,equals],includes->[includes],listNumbersReverse->[iterator->[expand->[iterator]]],addAll->[add],equals->[equals],fromString->[contains,Range,add,RangeSet],listNumbers->[iterator->[expand->[iterator]]],isSmallerThan->[isEmpty,isSmallerTha...
Get the job with the given name.
Or would it be safer to introduce a new method (and update the usages in `getRun` and `index.jelly`)?
@@ -184,11 +184,11 @@ public class SpringRegistry extends AbstractRegistry { // FBE is a result of a broken config, propagate it (see MULE-3297 for more details) String message = String.format("Failed to lookup beans of type %s from the Spring registry", type); - throw new ...
[SpringRegistry->[internalLookupByTypeWithoutAncestors->[MuleRuntimeException,getBeansOfType,debug,emptyMap,createStaticMessage,format],doDispose->[set,get,isActive,close],lookupLocalObjects->[values],lookupObject->[debug,equals,createStaticMessage,getBean,fillInStackTrace,warn,isBlank],unregisterObject->[UnsupportedOp...
Internal method to lookup by type.
"he previous object will be overwritten" -> "The previous object will be overwritten"
@@ -181,7 +181,7 @@ class ChatChannelsController < ApplicationController def create_channel chat_channel_params = params[:chat_channel] - chat_channel_name = chat_channel_params[:channel_name].split(" ").join("-") + chat_channel_name = chat_channel_params[:channel_name].split.join("-") chat_channel...
[ChatChannelsController->[send_chat_action_message->[create],moderate->[update],update->[create],create->[create],update_channel->[create,update],open->[update]]]
method called from the bot when it wants to create a new nack channel.
you'll notice a bunch of these throught the PR. `split(" ")` and `.split` are the same thing. Splitting over space char is the default behavior
@@ -52,7 +52,7 @@ const ORIGINAL_VALUE_PROPERTY = 'amp-original-value'; * @param {*} val * @return {string} */ -function encodeValue(val) { +export function encodeValue(val) { if (val == null) { return ''; }
[GlobalVariableSource->[getVairiantsValue_->[getter,user,variantForOrNull],setTimingResolver_->[getTimingDataAsync,getTimingDataSync],constructor->[accessServiceForDocOrNull],getShareTrackingValue_->[shareTrackingForOrNull,user,getter],getAccessValue_->[getter,user],getQueryParamData_->[user,search,parseQueryString,par...
Imports a variable from the top level AMP window. A utility function for setting timing data that supports sync and async.
is this used outside?
@@ -366,6 +366,7 @@ class ShareClient(StorageAccountHostsMixin): :dedent: 12 :caption: Deletes the share and any snapshots. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) delete_include ...
[ShareClient->[delete_directory->[delete_directory,get_directory_client],create_directory->[create_directory,get_directory_client],create_permission_for_share->[_create_permission_for_share_options],list_directories_and_files->[list_directories_and_files,get_directory_client],create_snapshot->[create_snapshot]]]
Marks the specified managed managed managed managed managed managed managed share for deletion.
missing `lease` doc for all these apis
@@ -140,7 +140,7 @@ class PythonBinaryCreate(Task): if is_python_target(tgt): constraint_tgts.append(tgt) - # Add target's interpreter compatibility constraints to pex info. + # Add target-level and possibly global interpreter compatibility constraints to pex info. pex_builder.add...
[PythonBinaryCreate->[implementation_version->[super],prepare->[optional_product,optional_data,require_data],_python_native_code_settings->[scoped_instance],is_binary->[isinstance],subsystem_dependencies->[super,scoped],__init__->[get_options,super],_create_binary->[targets,create,add_sources_from,has_resources,add_req...
Create a. pex file for the specified binary target. Get the path to the. pex file.
Where are the global constraints added?
@@ -194,9 +194,8 @@ module.exports = class extends BaseBlueprintGenerator { return this._configuring(); } - _loadPlatformConfig(config = _.defaults({}, this.jhipsterConfig, defaultConfig), dest = this) { - super.loadPlatformConfig(config, dest); - dest.cicdIntegrationsSnyk = config.cicdIntegrations || ...
[No CFG could be retrieved]
Public API method used by the getter and also by Blueprints Public API method used by the getter and by the blueprints.
Better move to after priorities to don't mix priority and api.
@@ -96,7 +96,7 @@ class CarController(): # 20 Hz LFA MFA message - if frame % 5 == 0 and self.car_fingerprint in [CAR.SONATA, CAR.PALISADE]: + if frame % 5 == 0 and self.car_fingerprint in [CAR.SONATA, CAR.PALISADE, CAR.SANTA_FE]: can_sends.append(create_lfa_mfa(self.packer, frame, enabled)) ...
[CarController->[__init__->[CANPacker],update->[create_clu11,process_hud_alert,create_lkas11,append,apply_std_steer_torque_limits,create_lfa_mfa,abs]]]
Update the state of the car. check if a message is a lease and create the necessary MFA messages.
Would this be a problem for the 2019 Santa FE that doesn't have LFA? Otherwise we need to split them into two different cars. Maybe you can find someone on discord with a 2019 one and have them try this PR.
@@ -26,7 +26,12 @@ module Users else result = personal_key_form.submit - analytics.track_event(Analytics::PERSONAL_KEY_REACTIVATION_SUBMITTED, result.to_h) + analytics_result = FormResponse.new( + success: result.success?, + errors: result.errors, + extra: resu...
[VerifyPersonalKeyController->[personal_key_form->[new],new->[new]]]
Creates a new node in the system.
This would always be empty (as of today), so we could just omit `extra` altogether.
@@ -2,6 +2,9 @@ import os import random from django.conf import settings +from django.contrib.admin.views.decorators import ( + staff_member_required as _staff_member_required, +) from django.core.files import File from ..checkout import AddressType
[change_user_default_address->[set_user_default_billing_address,set_user_default_shipping_address]]
Create a user object from a list of user objects. Protected get_user_first_name get_user_first_name get_user.
What about naming it `django_staff_member_required` so we explicitly know it is not internal, but django's?
@@ -250,6 +250,18 @@ public final class MetaStoreImpl implements MetaStore { return functionRegistry.listAggregateFunctions(); } + private Stream<SourceInfo> streamSources(final Set<String> sourceNames) { + return sourceNames.stream() + .map(sourceName -> { + final SourceInfo sourceInfo = ...
[MetaStoreImpl->[listFunctions->[listFunctions],copy->[MetaStoreImpl],listAggregateFunctions->[listAggregateFunctions],getAggregate->[getAggregate],getUdfFactory->[getUdfFactory],getAggregateFactory->[getAggregateFactory],SourceInfo->[copy->[SourceInfo],copy],addFunction->[addFunction],isAggregate->[isAggregate],addFun...
List all aggregate functions that are registered in the registry.
I'm always hesitant to throw exceptions within streams because they're lazily evaluated and that can cause somewhat unexpected behavior (and prevents things from getting cleaned up). Instead, can we just validate the entire set of source names up front? That also has the added benefit of not needing to validate the sou...
@@ -15,12 +15,18 @@ package statistics import ( "math/rand" + "testing" + "time" . "github.com/pingcap/check" "github.com/pingcap/kvproto/pkg/metapb" "github.com/tikv/pd/server/core" ) +func Test(t *testing.T) { + TestingT(t) +} + var _ = Suite(&testHotPeerCache{}) type testHotPeerCache struct{}
[TestStoreTimeUnsync->[SetWrittenBytes,RegionStats,NewRegionInfo,Assert,SetReportInterval],GetPeers,SetReportInterval,GetID,getOldHotPeerStat,CheckRegionFlow,SetWrittenBytes,SetReadBytes,GetMeta,NewRegionInfo,Assert,Intn,GetLeader,Update]
TestStoreTimeUnsync tests that the time of a key is not synced with the cache.
I've added in another PR.
@@ -64,7 +64,7 @@ class OntonotesSentence: word_senses: List[Optional[float]], speakers: List[Optional[str]], named_entities: List[str], - srl_frames: Dict[str, List[str]], + srl_frames: List[Tuple[str, List[str]]], ...
[Ontonotes->[_conll_rows_to_sentence->[OntonotesSentence]]]
Initialize a new object from a sequence of missing values.
Just curious, what's the motivation for switching from a Dict to a list of tuples?
@@ -1,7 +1,9 @@ import os import platform +import pytest import textwrap import unittest + from textwrap import dedent from nose.plugins.attrib import attr
[CMakeFlagsTest->[test_transitive_targets_flags->[_get_line],test_targets_own_flags->[_get_line],test_standard_20_as_cxx_flag->[conan_set_std_branch],test_flags->[_get_line],test_transitive_flags->[_get_line],test_targets_flags->[_get_line]]]
Package info for the given node. CmakeFlagsTest - A test to check if a C - option is present in a.
pytest is not a builtin python module, imports shouldn't be here (but not a big problem)
@@ -125,10 +125,13 @@ func Run(name, version string, bt beat.Creator) error { } // NewBeat creates a new beat instance -func NewBeat(name, v string) (*Beat, error) { +func NewBeat(name, indexPrefix, v string) (*Beat, error) { if v == "" { v = version.GetDefaultVersion() } + if indexPrefix == "" { + indexPre...
[launch->[createBeater,Init],TestConfig->[createBeater,Init],Setup->[createBeater,Init],createBeater->[BeatConfig],configure->[Init,BeatConfig]]
NewBeat creates a new instance of the beat. Init returns a reference to the beat object.
I suggest if `indexPrefix` is empty, we set it to `name`. Like this the param can be set to `""`.
@@ -11,8 +11,8 @@ <title>Laravel Application</title> <!-- Bootstrap CSS --> - <link href="/css/app.css" rel="stylesheet"> - <link href="/css/vendor/font-awesome.css" rel="stylesheet"> + <link href="{!! url('css/app.css') !!}" rel="stylesheet"> + <link href="{!! url('css/vendor/font-awesome.css') !!}" rel="stylesh...
[No CFG could be retrieved]
Displays a single - element sequence in a nice way. Displays a navbar with a menu for the n - node .
Probably better to use the asset helper here?
@@ -22,6 +22,11 @@ namespace Kratos { /////////////////////////////////////////////////////////////////////////////////////////////////// // Public Operations +template <int TDim, int TNumNodes> +void TransonicPerturbationPotentialFlowElement<TDim, TNumNodes>::Initialize(const ProcessInfo& rCurrentProcessInfo) +{ + ...
[No CFG could be retrieved]
Create a single object from a list of objects. - - - - - - - - - - - - - - - - - -.
We usually implement Initialize after clone
@@ -458,13 +458,13 @@ void io992_device::device_start() READ8_MEMBER(io992_device::cruread) { - int address = offset << 4; + int address = offset << 1; uint8_t value = 0x7f; // All Hexbus lines high double inp = 0; int i; uint8_t bit = 1; - switch (address) + switch (address & 0xf800) { case 0xe000: ...
[No CFG could be retrieved]
region Device start Reads the next 16 - bit value from the keyboard and the cassette.
We're using the software address, so the "<<1" is already done in the CPU.
@@ -242,6 +242,12 @@ func resourceAwsRamResourceShareGetInvitation(conn *ram.RAM, resourceShareARN, s return nil, fmt.Errorf("Error reading RAM resource share invitation %s: %s", resourceShareARN, err) } + if *invitation.ReceiverAccountId != client.accountid { + // Report an error, this won't work on the long t...
[LastIndex,UniqueId,StringSlice,AcceptResourceShareInvitation,Set,Errorf,SetId,GetResourceShareInvitations,Timeout,Id,Int64,Get,Printf,DefaultTimeout,StringValue,GetResourceShareInvitationsPages,DisassociateResourceShare,WaitForState,String,ListResourcesPages,Replace]
This function returns a resource. StateRefreshFunc that is used to watch a resource share invitation.
I see no reason why this could happen, but I prefer to have the check in place to be notified if this happens under a corner-case condition, since this would cause the bugs fixed by this change to reappear under this corner-case condition.
@@ -56,7 +56,7 @@ class AVSClient(SDKClient): super(AVSClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-03-20' + self.api_version = '2020-07-17-preview' sel...
[AVSClient->[__init__->[PrivateCloudsOperations,AVSClientConfiguration,LocationsOperations,Operations,HcxEnterpriseSitesOperations,super,isinstance,Serializer,items,Deserializer,ClustersOperations,AuthorizationsOperations]]]
Initialize an AVS client with the specified credentials subscription_id and base_url.
It would still be using the 2020-03-20 API.
@@ -1220,7 +1220,8 @@ class Setup extends DolibarrApi } /** - * Get the list of shipping methods. + * Get the list of shipping methods. This operation is deprecated, use + * /setup/dictionary/shipment_methods instead. * * @param int $limit Number of items per page * @param int $page ...
[Setup->[getModules->[_cleanObjectDatas],getCompany->[_cleanObjectDatas]]]
Get list of shipping methods. Get c_shipment_mode list.
This url suggested seems the same than this one. ?
@@ -760,6 +760,7 @@ ActiveRecord::Schema.define(version: 20180305102456) do t.integer "visibility_level", default: 0, null: false t.text "css" t.datetime "archived_at" + t.jsonb "footer_translations" t.index ["archived_at"], name: "index_gplan_plans_on_archived_at" t.index ["plan_type_id"], ...
[jsonb,bigint,decimal,string,text,date,hstore,add_foreign_key,datetime,integer,enable_extension,create_table,float,boolean,index,define,inet]
Table for creating Gplan objects. create a table in the issues table.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
@@ -158,6 +158,7 @@ public class UtilTest { " \"#%/:;<>?", "%20%22%23%25%2F%3A%3B%3C%3E%3F", "[\\]^`{|}~", "%5B%5C%5D%5E%60%7B%7C%7D%7E", "d\u00E9velopp\u00E9s", "d%C3%A9velopp%C3%A9s", + "Foo \uD800\uDF98 Foo", "Foo%20%F0%90%8E%98%20Foo" }; for (int i...
[UtilTest->[resolveSymlinkToFile->[resolveSymlinkToFile],loadProperties->[loadProperties]]]
test raw encode.
U+10398 UGARITIC LETTER THANNA? Heavy.
@@ -52,10 +52,12 @@ public class TaskSpec { // The task's resource demands. public final Map<String, Double> resources; - // Function descriptor is a list of strings that can uniquely identify a function. - // It will be sent to worker and used to load the target callable function. + // Descriptor of the tar...
[TaskSpec->[isActorCreationTask->[isNil],toString->[toString,getResourcesStringFromMap],isActorTask->[isNil]]]
is actor task.
Consider merging these two fields to avoid nulls.
@@ -2254,6 +2254,15 @@ class Archiver: '\*/.bundler/gems' to get the same effect. See ``borg help patterns`` for more information. + In addition to using ``--exclude`` patterns, it is possible to use + ``--exclude-if-present`` to specify the name of a filesystem object (e.g. a file + ...
[main->[get_args,run,Archiver],with_repository->[decorator->[wrapper->[argument]]],Archiver->[do_prune->[print_error,write],do_mount->[print_error],do_check->[print_error],do_extract->[build_filter,print_warning,build_matcher],_list_archive->[_list_inner->[write],_list_inner,build_matcher],do_debug_get_obj->[write],run...
Build an argument parser for the borg - cli command. command line interface to run borg command command to serve a specific key file or directory This function is called when a key is not encrypted with a passphrase.
well, this is explaining what it does, but not much the motivation to do so. - for tag files, that is just not to lose the tags (the information about not wanting to back up this specific dir) in case you have to recover from a backup. - for tag directories with actual content, there is the .git/ usecase: you do not wa...
@@ -23,13 +23,13 @@ import org.jgroups.util.Util; * @since 13.0 **/ public class NamedSocketFactory implements SocketFactory { - private final javax.net.SocketFactory socketFactory; - private final ServerSocketFactory serverSocketFactory; + private final Supplier<javax.net.SocketFactory> socketFactory; + p...
[NamedSocketFactory->[createServerSocket->[createServerSocket,configureSocket],createSocket->[createSocket,configureSocket],close->[close]]]
Creates a named socket factory which allows to configure the sockets using a supplied name. Configure a socket with a server socket.
This constructor is never used.
@@ -283,8 +283,7 @@ export function selectGptExperiment(data) { export function writeAdScript(global, data, gptFilename) { const url = `https://www.googletagservices.com/tag/js/${gptFilename || 'gpt.js'}`; - if (gptFilename || data.useSameDomainRenderingUntilDeprecated != undefined - || data.multiSize) { + ...
[No CFG could be retrieved]
Writes an ad script to the specified file.
We still get quite a few ad requests from the GLADE_OPT_OUT branch, unfortunately we cannot tell for what reason very easily due to all of these being grouped together as opt out. How do we know that this is safe to just turn off? 1) What if we split these out (or at least the explicit opt-out), so that we can verify t...
@@ -278,6 +278,16 @@ describes.sandboxed('UrlReplacements', {}, () => { }); }); + it('should replace CLIENT_ID with opt_cookieName', () => { + setCookie(window, 'url-abc', 'cid-for-abc'); + // Make sure cookie does not exist + setCookie(window, 'url-xyz', ''); + return expandAsync('?a=CLIENT_...
[No CFG could be retrieved]
Generates a sequence of tokens that can be used to generate a unique identifier. This function checks that the result of the feature is exactly the same as the result of the.
What does scope do when there's a cookie name provided?
@@ -94,7 +94,9 @@ def einsum(axes, *inputs): """ A generalized contraction between tensors of arbitrary dimension. - Like numpy.einsum. + Like numpy.einsum, but does not support: + -- ellipses (subscripts like 'ij...,jk...->ik...') + -- subscripts that reduce to scalars """ match = re.match('([a-z,]...
[lbeta->[nonempty_lbeta->[reduce_sum,lgamma],empty_lbeta->[squeeze,assert_rank_at_least,control_dependencies],convert_to_tensor,size,cond,equal,with_dependencies,get_shape,empty_lbeta,nonempty_lbeta,name_scope,assert_rank_at_least],einsum->[reduce_sum,group,list,reshape,find,append,get_shape,len,sorted,set,transpose,jo...
A generalized contraction between tensors of arbitrary dimension. Compute the total along a given axis.
Can you turn those apostrophes into backticks? Then it'll render nicely as code. Also, please put `numpy.einsum` into backticks. All docstrings get rendered as markdown.
@@ -60,15 +60,15 @@ func createTargetMap(targets []resource.URN) map[resource.URN]bool { // checkTargets validates that all the targets passed in refer to existing resources. Diagnostics // are generated for any target that cannot be found. The target must either have existed in the stack // prior to running the o...
[retirePendingDeletes->[reportExecResult],Execute->[reportExecResult,checkTargets,reportError],refresh->[reportExecResult,checkTargets]]
checkTargets checks if the given targets are not in the stack and if so it will return.
This fixes a bug that caused a "resource not found" error if a specified target was replaced rather than created or updated.
@@ -831,7 +831,7 @@ void RAND_seed(const void *buf, int num) { const RAND_METHOD *meth = RAND_get_rand_method(); - if (meth->seed != NULL) + if (meth != NULL && meth->seed != NULL) meth->seed(buf, num); }
[RAND_bytes->[rand_bytes_ex],RAND_priv_bytes->[rand_priv_bytes_ex],RAND_set_rand_engine->[RAND_set_rand_method],rand_pool_bytes_needed->[rand_pool_entropy_needed]]
RAND_seed - Seed random number generator.
I'm feeling a bit uncomfortable about this location here, because there is no way to indicate an error to the caller. OTOH: if the CSPRNG is already initialized, the failure will not be disastrous, and if it is not, the generate call will fail later on.
@@ -40,6 +40,10 @@ const ( // This file will be ignored when copying from the template cache to // a project directory. pulumiTemplateManifestFile = ".pulumi.template.yaml" + + // pulumiLocalTemplatePathEnvVar is a path to the folder where template are stored. + // It is used in sandboxed environments where the c...
[CopyTemplateFiles->[ReadFile,IsDir,Mkdir,Base,IsExist],CopyTemplateFilesDryRun->[Base,Stat,IsDir],RemoveAll,FileMode,Wrap,IsNotExist,Copy,IgnoreClose,Stat,ReadFile,New,ReadDir,Errorf,Assert,Wrapf,Join,Current,Next,Name,Base,Require,MkdirAll,Write,IsDir,NewReader,Sprintf,Unmarshal,IsPackageName,Replace,OpenFile,IsExist...
LoadLocalTemplate loads a template from a local directory. returns the template with the name of the template in the templateDir.
Nit: template => templates (e.g. "... where template**s** are stored.")
@@ -268,7 +268,7 @@ class GradientChecker(unittest.TestCase): :param input_vars: numpy value of input variable. The following computation will use these variables. :param inputs_to_check: inputs var names that should check gradient. - :param output_name: output name that used to + ...
[get_numeric_gradient->[get_output,product,restore_inputs],GradientChecker->[compare_grad->[empty_var_name,__get_gradient],__assert_is_close->[err_msg],check_grad->[__assert_is_close,grad_var_name,__get_gradient,get_numeric_gradient]]]
This function computes the gradient of a single . Assert that all the gradients are close.
the final output variable name. => the output variable name.
@@ -53,6 +53,14 @@ public class NumberedShardedFileTest { @Mock private PipelineResult pResult = Mockito.mock(PipelineResult.class); private final BackOff backOff = NumberedShardedFile.BACK_OFF_FACTORY.backoff(); + private String filePattern; + + @Before + public void setup() throws IOException { + filePa...
[NumberedShardedFileTest->[testReadWithRetriesFailsWhenTemplateIncorrect->[newFile,readFilesWithRetries,resolve,expect,write,NumberedShardedFile,expectMessage,compile,containsString,getPath],testPreconditionFilePathIsNull->[expectMessage,containsString,expect,NumberedShardedFile],testReadEmpty->[newFile,readFilesWithRe...
Checks whether the file path is null.
`LocalResources` could help here.
@@ -36,9 +36,10 @@ class ContentMapper extends ContainerAware implements ContentMapperInterface * @param $data array The data to be saved * @param $language string Save data for given language * @param $templateKey string name of template + * @param $userId int The id of the user who saves *...
[ContentMapper->[getSession->[getSession],save->[save],getStructure->[getStructure]]]
Save a node in the system. This method will return a structure object with all properties of a node.
@drotter languageCode please, and order $data, $templateKey, $languageCode, $userId
@@ -45,7 +45,10 @@ </div> <%_ } _%> <br/> - <div class="table-responsive" *ngIf="<%=entityInstancePlural %>"> + <div class="alert alert-warning" *ngIf="<%=entityInstancePlural %>?.length === 0"> + No <%=entityInstancePlural %> found + </div> + <div class="table-responsive" *ngIf="<%=en...
[No CFG could be retrieved]
Renders the JHI - related NGUI elements. Renders a JHI sort field if the relationship is a many - to - many relationship.
Shouldn't it be in json file, when there is i18n ?
@@ -164,7 +164,11 @@ abstract class PartialSegmentGenerateTask<T extends GeneratedPartitionsReport> e final PartitionsSpec partitionsSpec = tuningConfig.getGivenOrDefaultPartitionsSpec(); final long pushTimeout = tuningConfig.getPushTimeout(); - final IndexTaskSegmentAllocator segmentAllocator = createSe...
[PartialSegmentGenerateTask->[generateSegments->[createSegmentAllocator]]]
Generate segments for the given input source and temporary directory. returns pushed segments.
Why is this always `NonLinearlyPartitionedSequenceNameFunction` shouldn't we check the partitionsSpec type to determine the `sequenceNameFunction` here? If it is, I think we should , make the constructors package private and expose the function name creation through a factory that accepts a `PartitionsSpec`
@@ -1521,7 +1521,10 @@ namespace Dynamo.Nodes internal override IEnumerable<AssociativeNode> BuildAst(List<AssociativeNode> inputAstNodes) { - var rhs = AstFactory.BuildStringNode(this.Value); + string content = this.Value; + content = content.Replace("\r\n", "\n");...
[StringInput->[NodeMigrationData->[Value],BuildAst->[Value],LoadNode->[DeserializeValue,Value],Value],BasicInteractive->[SerializeCore->[SerializeValue,Value,SerializeCore],DeserializeCore->[DeserializeValue,Value,DeserializeCore],LoadNode->[DeserializeValue,Value]],Sublists->[NodeMigrationData->[Value],SerializeCore->...
Build the expression and return an array of expressions.
Hi, do we need this conversion for \r\n to \n. I made it because there are some test cases expecting \n instead of \r\n. Shall I change the test cases instead of changing the implementation?
@@ -153,9 +153,12 @@ public class DeployVMCmd extends BaseAsyncCreateCustomIdCmd implements SecurityG @Parameter(name = ApiConstants.USER_DATA, type = CommandType.STRING, description = "an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 enc...
[DeployVMCmd->[execute->[getStartVm,getCommandName],getAccountName->[getAccountName],getDetails->[getBootType],getDomainId->[getDomainId]]]
Creates a virtual machine group and a list of security groups to be deployed to.
This should not be changed
@@ -216,6 +216,8 @@ class WeightNormParamAttr(ParamAttr): It is recommended to use ``minimize(loss, grad_clip=clip)`` to clip gradient. There are three clipping strategies: :ref:`api_fluid_clip_GradientClipByGlobalNorm` , :ref:`api_fluid_clip_GradientClipByNorm` , :ref:`api_fluid_clip_Gradi...
[ParamAttr->[_set_default_bias_initializer->[_set_default_initializer],_to_attr->[ParamAttr,_to_attr],_set_default_param_initializer->[_set_default_initializer]]]
A class which represents a parameter of weight normalization. Optional. If regularizer is set in optimizer it will be ignored.
move this line to the beginning of the docstring would be better. (i.e.: Line 206)
@@ -145,7 +145,7 @@ func IsRegistryDockerHub(registry string) bool { func ParseDockerImageReference(spec string) (DockerImageReference, error) { var ref DockerImageReference - namedRef, err := reference.ParseNamedDockerImageReference(spec) + namedRef, err := parseNamedDockerImageReference(spec) if err != nil { ...
[Exact->[NameString],String->[Exact],RegistryHostPort->[DockerClientDefaults],DaemonMinimal->[Minimal],Exact,Equal,MostSpecific]
ParseImageStreamTagName parses a string into its name and tag components. It returns an error if Equal returns true if the receiver has the same default values as the other.
@deads2k We can have it in the versioned API because registry also uses `DockerImageReference` ?
@@ -101,7 +101,7 @@ func NewDefaultMasterArgs() *MasterArgs { MasterAddr: flagtypes.Addr{Value: "localhost:8443", DefaultScheme: "https", DefaultPort: 8443, AllowPrefix: true}.Default(), EtcdAddr: flagtypes.Addr{Value: "0.0.0.0:4001", DefaultScheme: "https", DefaultPort: 4001}.Default(), MasterPu...
[GetAssetPublicAddress->[GetMasterPublicAddress],BuildSerializeableMasterConfig->[GetPolicyFile],GetMasterPublicAddress->[GetMasterAddress],GetEtcdPeerAddress->[GetEtcdAddress],Validate->[Validate],GetEtcdAddress->[GetMasterAddress]]
NewDefaultMasterArgs creates a new master args object with default values set. GetConfigFileToWrite returns the configuration filepath for the master .
This broke `TEST_END_TO_END=direct hack/test-end-to-end.sh` because it longer starts DNS on 53, so our lookups fail.
@@ -161,7 +161,8 @@ void Sky::render() float wn = nightlength / 2; float wicked_time_of_day = 0; if (m_time_of_day > wn && m_time_of_day < 1.0 - wn) - wicked_time_of_day = (m_time_of_day - wn) / (1.0 - wn * 2) * 0.5 + 0.25; + wicked_time_of_day = (m_time_of_day - wn) / (1.0 - wn * 2) * 0.5 + + 0.2...
[OnRegisterSceneNode->[registerNodeForRendering],ISceneNode->[normalize,myrand_range,setAutomaticCulling,get_scene_manager,getTextureForMesh,getBool,set,v3f,getTexture,isKnownSourceImage,m_materials],render->[setAlpha,fabs,getInterpolated,rotateVect,getNearValue,setScale,unlock,getAbsolutePosition,drawIndexedTriangleFa...
This is the main entry point for the skeleton rendering. Standard frame in the FITS format This is a low level API that can be used to draw a cloudy fog with Draw all the horizons of the three cloudy fog segments Draws a network segment of a single network segment.
Lines only need splitting if over 90 columns (with tab size 4). If <=90 columns the previous format was better.
@@ -24,6 +24,7 @@ import io.confluent.ksql.function.udf.UdfDescription; + " Default masking rules will replace all upper-case characters with 'X', all lower-case" + " characters with 'x', all digits with 'n', and any other character with '-'.") public class MaskKeepLeftKudf { + private final String ...
[MaskKeepLeftKudf->[doMask->[validateParams,append,min,substring,mask,toString,StringBuilder,length],validateParams->[KsqlFunctionException],mask->[doMask,getMaskCharacter,Masker]]]
Returns a masked version of the input string. All characters except for the last n will be.
This variable cannot be uppercase nor static because 1. the UDF name uses the class annotation which cannot be obtained statically, and 2. checkstyle fails with more than 3 uppercase letters in non-static variables. Same for the other udfName variables.
@@ -21,12 +21,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { return process_record_user(keycode, record); } +__attribute__ ((weak)) void led_set_user(uint8_t usb_led) { if (usb_led & (1 << USB_LED_CAPS_LOCK)) { - DDRB |= (1 << 7); + DDRB |= (1 << 7); PORTB &= ~(1 << 7); } else { -...
[matrix_init_kb->[matrix_init_user],process_record_kb->[process_record_user],matrix_scan_kb->[matrix_scan_user]]
This function processes a keycode and a keyrecord_t object.
Well, we don't need the DDRB for each here. .... it should only be called in a `keyboard_pre_init_kb` function And also, it may be best to convert these to GPIO commands.
@@ -10,9 +10,11 @@ from ..product.utils import allocate_stock, deallocate_stock, increase_stock def check_order_status(func): - """Prevent execution of decorated function if order is fully paid. + """Check if order meets preconditions of payment process. - Instead redirects to order details page. + O...
[recalculate_order->[save,get_total,sum],restock_fulfillment_lines->[increase_stock],cancel_order->[save,all,restock_order_lines],cancel_fulfillment->[restock_fulfillment_lines,update_order_status,save],attach_order_to_user->[store_user_address,save],merge_duplicates_into_order_line->[save,sum,filter,exclude,count],add...
Prevent execution of decorated function if order is fully paid. Instead redirects to order details page.
I'd assign it to some sort of variable and then pass it to `min()` function, it would be more readable
@@ -4,6 +4,9 @@ import static com.google.common.base.Preconditions.checkNotNull; import games.strategy.util.IntegerMap; +/** + * A repair rule. + */ public class RepairRule extends DefaultNamed { private static final long serialVersionUID = -45646671022993959L; private final IntegerMap<Resource> m_cost;
[RepairRule->[addCost->[put],getCosts->[copy],addResult->[IllegalArgumentException,put,getName],toString->[getName],checkNotNull,copy]]
Creates a new instance of RepairRule.
Restating class name, describing the scope or responsibility of this class, what it represents, what is a 'repair rule' would be good information to have.
@@ -61,8 +61,9 @@ public class DBScanner implements Callable<Void>, SubcommandWithParent { private String tableName; @CommandLine.Option(names = {"--with-keys"}, + required = true, description = "List Key -> Value instead of just Value.", - defaultValue = "false", + defaultValue = "true", ...
[DBScanner->[printAppropriateTable->[displayTable,getColumnFamilyHandle,constructColumnFamilyMap]]]
Imports a single - line sub - command for scanning a table. Reads the next N object from the given iterator and displays it in a table.
Thanks @sky76093016 for working on this. Do we need to change the default value of this option `--with-keys` to true?
@@ -81,7 +81,11 @@ func (c *CmdGitCreate) Run() error { } dui := c.G().UI.GetDumbOutputUI() - dui.Printf("Repo created! You can clone it with:\n git clone %s\n", urlString) + dui.Printf(`Repo created! You can clone it with: + git clone %s +Or add it as a remote to an existing repo with: + git remote add origin...
[Run->[Printf,G,GetDumbOutputUI,runPersonal,String,runTeam],runPersonal->[GetUsername,CreatePersonalRepo,Sprintf,Background,G],ParseArgv->[Args,New,GitRepoName,String,TeamNameFromString,Bool],runTeam->[Sprintf,Background,CreateTeamRepo],NewContextified,ChooseCommand]
Run executes the git command.
Not sure we should be recommending `origin` to people for existing repos, since that could easily fail if there's already an `origin` and it would probably be too verbose to explain all the subtleties here. But I really don't know for sure, and I think @malgorithms is the best choice of reviewer for user-facing wording...
@@ -188,6 +188,8 @@ public class HttpContentDecoderTest { @Test public void testResponseBrotliDecompression() throws Throwable { Brotli.ensureAvailability(); + // Failing on windows atm + Assume.assumeFalse(PlatformDependent.isWindows()); HttpResponseDecoder decoder = new HttpR...
[HttpContentDecoderTest->[testCleanupThrows->[channelInactive->[channelInactive]]]]
Test response brotli decompression.
@slandelle @hyperxpro these two tests fail on windows... I wonder if the native code not works as expected on windows.
@@ -216,12 +216,12 @@ def get_cmake_lib_files(name, version, package_name="Pkg"): package_name=package_name), "src/{}.cpp".format(name): source_cpp.format(name=name, version=version), "src/{}.h".format(name): source_h.format(name=name...
[get_cmake_lib_files->[format],get_cmake_exe_files->[format]]
Get a list of files that can be found in the CMake library.
Maybe we want to follow CMake common pattern that is the top root uses a ``add_subdirectory(src)`` and keep a CMakeLists.txt inside "src" with the heavy logic.
@@ -145,7 +145,7 @@ class SubmissionsController < ApplicationController # we need to give them a list of all Groupings for this Assignment. if current_user.ta? groupings = [] - assignment.ta_memberships.find_all_by_user_id(current_user.id).each do |membership| + assignment.ta_memberships.wher...
[SubmissionsController->[populate_repo_browser->[directories_at_path,repo,find,to_i,render,construct_repo_browser_directory_table_row,files_at_path,get_revision,join,construct_repo_browser_table_row,first,each,repository_folder,assignment,id],update_submissions->[find,size,group_name,post?,first,released_to_students,ni...
This view populates the submission table with all the groupings that the current user has assigned to.
Line is too long. [84/80]
@@ -106,6 +106,8 @@ void FWRetract::retract(const bool retracting SERIAL_ECHOLNPAIR("hop_amount ", hop_amount); //*/ + stepper.synchronize(); // Wait for buffered moves to complete + const bool has_zhop = retract_zlift > 0.01; // Is there a hop set? const float old_feedrate_mm_s = feedrate_mm_s;...
[No CFG could be retrieved]
Determines the Z height of the next frame in the table. This method is called from the base class when G - code includes a header. It will.
This is the only change needed.
@@ -2318,3 +2318,16 @@ func WithPodSlirp4netns(networkOptions map[string][]string) PodCreateOption { return nil } } + +// WithVolatile sets the volatile flag for the container storage. +// The option can potentially cause data loss when used on a container that must survive a machine reboot. +func WithVolatile() ...
[WithPod->[ID],IsRootless,GetSecretsStorageDir,AddLinuxGIDMapping,StringInSlice,Wrap,GetRootlessUID,Stat,MatchString,ClearLinuxUIDMappings,New,NewManager,InfraContainerID,IsValidEventer,AddLinuxUIDMapping,Debugf,ID,Wrapf,Join,ClearLinuxGIDMappings,Lookup,ToLower,ProcessOptions,ParseIP,NetworkMode,DefaultStoreOptions,Is...
null - > .
Can you add a warning here that this is potentially dangerous to use and can result in data loss?
@@ -343,8 +343,8 @@ func newNewCmd() *cobra.Command { &yes, "yes", "y", false, "Skip prompts and proceed with default values") cmd.PersistentFlags().StringVar( - &secretsProvider, "secrets-provider", "", "The name of the provider that should be used to encrypt and "+ - "decrypt secrets.") + &secretsProvider...
[StringVar,Value,Colorize,SetHelpFunc,Warningf,Encrypter,SaveProject,Delete,ValueOrDefaultProjectDescription,Wrap,Interactive,AskOne,CopyTemplateFilesDryRun,ReadConsoleNoEcho,IsNotExist,Strings,Stat,IgnoreError,New,RunFunc,StringArrayVarP,StringVarP,ReadDir,Errorf,RetrieveTemplates,Ref,Run,Chdir,GetStack,SplitN,TrimSpa...
Config to save getStack returns the stack name and description of the given stack.
passpharse => passphrase (throughout)
@@ -42,6 +42,8 @@ from nilearn.plotting import plot_glass_brain print(__doc__) +print(len(warnings.filters)) + ############################################################################### # Setup paths sample_dir_raw = sample.data_path()
[read_evokeds,compute_source_morph,show,print,data_path,apply,add_overlay,apply_inverse,read_inverse_operator,crop,join,plot_glass_brain,load]
Plots the data of a single . x_glr_auto_examples_inverse_plot_compute_mne_.
this is temporary, right?
@@ -118,11 +118,12 @@ void ossl_statem_set_renegotiate(SSL *s) void ossl_statem_fatal(SSL *s, int al, int func, int reason, const char *file, int line) { + ERR_put_error(ERR_LIB_SSL, func, reason, file, line); /* We shouldn't call SSLfatal() twice. Once is enough */ - assert(s->stat...
[No CFG could be retrieved]
The function below is called from the server side of the SSL handshake process. This function is called by the server when the current connection is in the error state. It.
Oops, I have accidentally used 2-spaces GCC-indentation style...
@@ -144,7 +144,11 @@ Status getProcList(std::set<long>& pids) { return Status(0, "Ok"); } -void genProcess(const WmiResultItem& result, QueryData& results_data) { +void genProcess( + const WmiResultItem& result, + QueryData& results_data, + QueryContext& context, + std::map<std::int32_t, std::map<std:...
[genProcessMemoryMap->[genMemoryMap,getProcList],genProcesses->[genProcess]]
Get the list of processes that match the query. region PrivatePageCount GetModuleFileName GetProcessTimes GetSystemTime GetProcessTime GetSystem Get the process UID and GID from its SID handle.
Make this a `std::map<std::int32_t, std::map<std::string, std::int64_t>>&`, and I'd say also make it the second parameter of the call, as we tend to keep the context and result params at the end.
@@ -222,13 +222,9 @@ func testAccAWSVpnConnectionDisappears(connection *ec2.VpnConnection) resource.T _, err := conn.DeleteVpnConnection(&ec2.DeleteVpnConnectionInput{ VpnConnectionId: connection.VpnConnectionId, }) + if err != nil { - if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidV...
[ParallelTest,NonRetryableError,Code,RandInt,RandIntRange,RootModule,ComposeTestCheckFunc,Errorf,MustCompile,RetryableError,RandStringFromCharSet,DescribeVpnConnections,DeleteVpnConnection,Fatalf,Meta,Sprintf,TestCheckResourceAttr,String,Retry]
TestAccAWSVpnConnectionDisappears tests if the given connection has a specific TestAccAwsVpnConnectionDestroy - destroy a VPN Connection if it is in the correct state.
The acceptance test should fail if this error is returned here.
@@ -781,6 +781,11 @@ func NewIssue(ctx *context.Context) { ctx.Data["TitleQuery"] = title body := ctx.Query("body") ctx.Data["BodyQuery"] = body + + // get permalink query + permalink := ctx.Query("permalink") + ctx.Data["Permalink"] = permalink + ctx.Data["IsProjectsEnabled"] = ctx.Repo.CanRead(models.UnitType...
[TeamReviewRequest,Status,LoadTime,GetIssueByIndex,Warn,IsPoster,Int64sToMap,CreateCommentReaction,ChangeProjectAssign,CanUseTimetracker,GetRefEndNamesAndURLs,CanEnablePulls,AddParam,IsCollaborator,Redirect,IsErrDependenciesLeft,Info,GetOwner,GetTreeEntryByPath,IsErrIssueNotExist,ChangeIssueRef,IsValidTeamReviewRequest...
NewIssue render creates a new issue page with all the necessary data GetProjectByID returns the project with the given ID.
Why don't you just use the body query parameter we already have here?
@@ -203,7 +203,12 @@ class HyperoptTuner(Tuner): self.json = None self.total_data = {} self.rval = None + self.CL_rval = None self.supplement_data_num = 0 + self.parallel = parallel_optimize + self.constant_liar_type = constant_liar_type + self.running_dat...
[_split_index->[_split_index],json2vals->[json2vals],HyperoptTuner->[get_suggestion->[json2parameter],import_data->[_add_index,receive_trial_result],generate_parameters->[_split_index],update_search_space->[_choose_tuner,json2space],__init__->[OptimizeMode],receive_trial_result->[json2vals]],_add_index->[_add_index],js...
Initialize the object with the specified n - node algorithm.
what's the "CL" means? What's the "self.CL_rval" represent?
@@ -34,7 +34,7 @@ class PluginGridRow extends PKPPluginGridRow { * @param $plugin Plugin * @return boolean */ - function _canEdit(&$plugin) { + protected function _canEdit($plugin) { if ($plugin->isSitePlugin()) { if (in_array(ROLE_ID_SITE_ADMIN, $this->_userRoles)) { return true;
[PluginGridRow->[_canEdit->[isSitePlugin]]]
Checks if the user can edit the resource.
I see now why underscore
@@ -200,8 +200,15 @@ func (logger *taggedLogger) Write(p []byte) (_ int, retErr error) { } func (logger *taggedLogger) Close() (*pfs.Object, int64, error) { + close(logger.msgCh) if logger.putObjClient != nil { + if err := logger.eg.Wait(); err != nil { + return nil, 0, err + } object, err := logger.putObj...
[userLogger->[clone],Write->[Logf,Write],downloadData->[Logf],uploadOutput->[Logf,Close],Process->[getTaggedLogger,Logf,downloadData,uploadOutput,Close,runUserCode],runUserCode->[Logf,userLogger],Write]
Close closes the object associated with the logger.
How could there be future calls to `Logf` after `Close` is called?
@@ -64,6 +64,10 @@ public final class InterfaceTestUtils })); try { + if (!defines(forwardingInstance, actualMethod)) { + continue; + } + actualMethod.invoke(forwardingInstance, actualArguments); } ...
[InterfaceTestUtils->[assertProperForwardingMethodsAreCalled->[RuntimeException,getName,getDeclaredMethods,newProxy,apply,getParameterCount,invoke,format,getParameterTypes,getReturnType,assertEquals],assertAllMethodsOverridden->[fail,getDeclaredMethod,of,getMethods,getName,copyOf,getInterfaces,format,getParameterTypes,...
Assert that the forwarding methods of the given interface are called.
I think this would be easier to read with shorter variable names. Also, introduce a variable ```java Class<?> forwardingClass = forwardingInstance.getClass(); Method forwardingMethod = forwardingClass.getMethod(method.getName().method.getParameterTypes()); return forwardingClass == forwardingMethod.getDeclaringClass();
@@ -43,6 +43,10 @@ class PretrainedTransformerIndexer(TokenIndexer[int]): self._added_to_vocabulary = False self._padding_value = self.tokenizer.convert_tokens_to_ids([self.tokenizer.pad_token])[0] logger.info(f"Using token indexer padding value of {self._padding_value}") + self._add_s...
[PretrainedTransformerIndexer->[tokens_to_indices->[_add_encoding_to_vocabulary]]]
Initialize a with the given model name and namespace.
Did you figure this out? Seems like they should be?
@@ -829,6 +829,14 @@ class MessageBuilder: self.fail('Overloaded function signatures {} and {} overlap with ' 'incompatible return types'.format(index1, index2), context) + def overloaded_signatures_arg_specific(self, index1: int, context: Context) -> None: + self.fail('Overloade...
[temp_message_builder->[MessageBuilder],pretty_or->[format],MessageBuilder->[return_type_incompatible_with_supertype->[format,fail],read_only_property->[format,fail],forward_operator_not_callable->[format,fail],unsupported_left_operand->[format,fail],too_many_arguments->[format,fail],unexpected_keyword_argument->[note,...
Overloaded function signatures and overlap with a given return type.
"cannot" -> "does not" or "should". (But the next one is correct IMO.)
@@ -2035,6 +2035,11 @@ class Jetpack { /* Jetpack Options API */ + /** + * @param string $type Jetpack option type. + * + * @return array + */ public static function get_option_names( $type = 'compact' ) { return Jetpack_Options::get_option_names( $type ); }
[Jetpack->[generate_secrets->[generate_secrets],stat->[initialize_stats],do_server_side_stat->[do_server_side_stat],get_locale->[guess_locale_from_lang],disconnect_user->[disconnect_user],jetpack_show_user_connected_icon->[is_user_connected],admin_page_load->[try_registration,disconnect_user,is_user_connected],jetpack_...
Get the names of all options.
Going to come back to this one until I fix everything under it so I don't mess up my spreadsheet of fixes. The CI does not show this as blocking.
@@ -94,8 +94,13 @@ class WindmillTimerInternals implements TimerInternals { @Override public void setTimer( - StateNamespace namespace, String timerId, Instant timestamp, TimeDomain timeDomain) { - timers.put(timerId, namespace, TimerData.of(timerId, namespace, timestamp, timeDomain)); + StateNames...
[WindmillTimerInternals->[withPrefix->[WindmillTimerInternals]]]
Method to add a timer to the timers map.
This isn't quite right. The idea of having the timer namespace is that two timers with the same id but different namespaces should not conflict, but right now they will override each other. We need to make sure that they don't override each other in every XXXTimerInternals class. Here this involves making them a key in...
@@ -61,7 +61,7 @@ class UserBadgesController < ApplicationController if params[:reason].present? unless is_badge_reason_valid? params[:reason] - return render json: failed_json.merge(message: I18n.t('invalid_grant_badge_reason_link')), status: 400 + return render json: failed_json.merge(mess...
[UserBadgesController->[can_assign_badge_to_user?->[is_api?,can_grant_badges?,nil?],create->[can_assign_badge_to_user?,render,to_i,merge,is_badge_reason_valid?,grant,render_serialized,route_for,present?,t,require,id],ensure_badges_enabled->[raise,enable_badges?],is_badge_reason_valid?->[route_for],destroy->[can_assign_...
Creates a new object.
no formatting change please
@@ -283,7 +283,7 @@ class Info(dict, MontageMixin): gantry_angle : float | None Tilt angle of the gantry in degrees. lowpass : float - Lowpass corner frequency in Hertz. + Lowpass corner frequency in Hertz. It is automatically set to half the sampling rate if there is otherwise no low-p...
[write_info->[write_meas_info],write_meas_info->[_check_dates,_rename_comps,_check_consistency],create_info->[_update_redundant,_check_consistency],anonymize_info->[_add_timedelta_to_stamp,_check_dates,_check_consistency],_empty_info->[Info,_update_redundant,_check_consistency],Info->[__deepcopy__->[copy],_check_consis...
Returns a list of events for the given MaxFilter object. Required fields from the object.
this will yield a "line too long" error from our style checker. Max line length is 79 characters. Your IDE should have a "rulers" setting that will add a vertical line after 79 characters, this can help you notice such problems before pushing. Also running `make flake` from the root of the local MNE-Python clone would ...
@@ -60,8 +60,8 @@ class Container { } $key = self::SHARED_DEPENDENCY_KEYS[ Hook_Manager::class ]; + require_once __DIR__ . '/class-hook-manager.php'; if ( ! isset( $jetpack_autoloader_container_shared[ $key ] ) ) { - require_once __DIR__ . '/class-hook-manager.php'; $jetpack_autoloader_container_share...
[Container->[register_dependencies->[get],__construct->[initialize_globals,register_dependencies,register_shared_dependencies]]]
Register shared dependencies.
Hi @reatang! Thanks for the PR. The `Container` class only needs to load the `class-hook-manager.php` file when the condition in the if statement below is true. So, I'm not sure that it makes sense to always load the `class-hook-manager.php` file here. Also, I don't think you're encountering a bug in the `jetpack-autol...
@@ -0,0 +1,12 @@ +module DataUpdateScripts + class RemoveProRoles + def run + pro_role = Role.find_by(name: "pro") + + return unless pro_role + + pro_role.users.find_each { |u| u.remove_role(:pro) } + pro_role.destroy + end + end +end
[No CFG could be retrieved]
No Summary Found.
Do we have any concerns about running this on Forem instances other than DEV? Should we add a guard clause if so?
@@ -461,6 +461,11 @@ public class HoodieTestDataGenerator { () -> UUID.randomUUID().toString()); } + public Stream<HoodieRecord> generatePartialUpdateInsertsStream(String commitTime, Integer n, boolean isFlattened, String schemaStr, boolean containsAllPartitions) { + return generatePartialUpdateInsert...
[HoodieTestDataGenerator->[generateUpdates->[generateUpdateRecord],generateUpdateRecord->[generateRandomValue],generateInsertsWithHoodieAvroPayload->[incrementNumExistingKeysBySchema,populateKeysBySchema,generateAvroPayload],generateUpdatesWithHoodieAvroPayload->[generateAvroPayload],createReplaceFile->[createMetadataF...
Generates a stream of records that will be inserted.
please split the parameters into two lines.
@@ -94,7 +94,8 @@ export class Platform { * @return {boolean} */ isWebKit() { - return /WebKit/i.test(this.navigator_.userAgent) && !this.isEdge(); + return /WebKit/i.test(this.navigator_.userAgent) && !this.isEdge() + && !(this.isOpera() && this.isAndroid()); } /**
[No CFG could be retrieved]
Determines if the current browser is a Safari Chrome Chrome Chrome Chrome Chrome Chrome Chrome Chrome Chrome Chrome Determines if a user agent is able to determine the major version of a page.
hmm, Opera is Webkit, any particular reason this was added?
@@ -122,7 +122,8 @@ public final class ScmBlockLocationProtocolClientSideTranslatorPB if (response.getStatus() == ScmBlockLocationProtocolProtos.Status.SCM_NOT_LEADER) { failoverProxyProvider - .performFailoverToAssignedLeader(response.getLeaderSCMNodeId()); + .performFa...
[ScmBlockLocationProtocolClientSideTranslatorPB->[addSCM->[submitRequest,handleError],getScmInfo->[submitRequest,handleError],allocateBlock->[submitRequest,handleError],sortDatanodes->[submitRequest,handleError],deleteKeyBlocks->[submitRequest,handleError],close->[close]]]
Submits a request to the server and checks if the response is a leader or not.
Do we need this at all, as server is only sending exception for NotLeader
@@ -273,8 +273,8 @@ class SubmissionsController < ApplicationController revision = nil end if revision - @revisions_history << {:num => revision.revision_number, - :date => revision.timestamp} + @revisions_history << {num: revision.revision_number, + ...
[SubmissionsController->[downloads->[find,find_entry,group_name,join,first,send_file,nil?,get_output_stream,download_as_string,message,repo_name,get_revision,revision_number,t,last,count,to_i,access_repo,open,repository_folder,each,id,puts,short_identifier,get_latest_revision,render,files_at_path,mkdir,find_appropriate...
This method retrieves a from the repository and creates a hash with the necessary information.
Space inside { missing.
@@ -12,8 +12,7 @@ elgg_push_context('owner_block'); // groups and other users get owner block $owner = elgg_get_page_owner_entity(); -if ($owner instanceof ElggGroup || - ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { +if ($owner instanceof ElggGroup || $owner instanceof Elgg...
[getGUID]
Displays page owner block.
There's a tab after `||`. Change it to space and I'll merge.
@@ -641,7 +641,9 @@ namespace System.Drawing { // We threw this way on NetFX if (outputStream == null) +#pragma warning disable CA2208 // Instantiate argument exceptions correctly throw new ArgumentNullException("dataStr...
[Icon->[DrawUnstretched->[DrawIcon],Bitmap->[BitmapHasAlpha,Draw,CopyBitmapData,Dispose],Draw->[Draw,DrawIcon],ExtractAssociatedIcon->[ExtractAssociatedIcon],Dispose->[Dispose,DestroyHandle],Dispose]]
Save the icon in the specified output stream.
Why not `nameof(outputStream)`?
@@ -713,9 +713,9 @@ export class AmpList extends AMP.BaseElement { .then(elements => this.render_(elements, current.append)); if (!isSSR) { const payload = /** @type {!JsonObject} */ (current.payload); - renderPromise = renderPromise - .then(() => this.maybeRenderLoadMoreTemplates_(payloa...
[AmpList->[undoLayout_->[FLEX_ITEM,RESPONSIVE,parseLayout,FLUID,FIXED_HEIGHT,getLayoutClass,FIXED,devAssert,setStyles,INTRINSIC],ssrTemplate_->[setupJsonFetchInit,fetchOpt,dict,userAssert,user,requestForBatchFetch,setupAMPCors,xhrUrl,setupInput],getPolicy_->[getSourceOrigin,ALL,OPT_IN],constructor->[templatesFor,HIGH],...
Render the next render pass.
Does it matter that the order changed here?
@@ -384,12 +384,16 @@ def set_action_env_var(environ_cp, def convert_version_to_int(version): """Convert a version number to a integer that can be used to compare. + Version strings of the form X.YZ and X.Y.Z-xxxxx are supported. The + 'xxxxx' part, for instance 'homebrew' on OS/X, is ignored. + Args: - v...
[set_cc_opt_flags->[write_to_bazelrc,is_ppc64le],set_build_var->[write_to_bazelrc,get_var],set_computecpp_toolkit_path->[is_linux,write_action_env_to_bazelrc,get_from_env_or_user_or_default],set_clang_cuda_compiler_path->[run_shell,write_action_env_to_bazelrc,get_from_env_or_user_or_default],set_tf_cunn_version->[run_s...
Convert a version number to a integer that can be used to compare. covnerted.
Should we check that the leading parts are not zero? Otherwise the version number will not be unique, e.g. 0.23 and 0.0.23 would results in the same integer.
@@ -12,11 +12,11 @@ import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as kratos_utilities - +@KratosUnittest.skipIfApplicationsNotAvailable("StructuralMechanicsApplication") class ROMDynamicStruct(KratosUnittest.TestCase): ######################################...
[ROMDynamicStruct->[test_Struct_Dynamic_ROM_2D->[EvaluateQuantityOfInterest2,TestStructuralMechanicsDynamicROM,sqrt,sum,assertLess,read,EvaluateQuantityOfInterest,Parameters,DeleteDirectoryIfExisting,Run,open,range,WorkFolderScope,Model,load,shape],skipIf],main,GetDefaultOutput]
Tests if a structure is dynamic - rom with 2D parameters.
maybe you also need the `LinearSolversApp`?