patch
stringlengths
18
160k
callgraph
stringlengths
4
179k
summary
stringlengths
4
947
msg
stringlengths
6
3.42k
@@ -276,7 +276,7 @@ class Cmake(Package): # When building our own private copy of curl then we need to properly # enable / disable oepnssl - if '+ownlibs' in spec: + if '+openssl' in spec and '+ownlibs' not in spec: args.append('-DCMAKE_USE_OPENSSL=%s' % str('+openssl' in ...
[Cmake->[install->[filter_file,make,find,satisfies],build_test->[make],determine_version->[group,Executable,search],build->[make],bootstrap->[bootstrap,Executable,bootstrap_args],test->[run_test,format],flag_handler->[append,any,ValueError],bootstrap_args->[satisfies,append,extend,str,format,join,get_cmake_prefix_path,...
Returns the command line arguments for the CMake bootstrap. Returns a list of args that can be passed to the command line.
This change is confusing for me - it seems like we are reversing the current logic?
@@ -104,3 +104,13 @@ class AsyncKeyVaultClientBase: @property def vault_url(self) -> str: return self._vault_url + + async def __aenter__(self) -> "AsyncKeyVaultClientBase": + await self._client.__aenter__() + return self + + async def __aexit__(self, *args) -> None: + awai...
[AsyncKeyVaultClientBase->[__init__->[_create_config]]]
Returns the vault URL.
`close` needs no parameters, and should have a simple docstring like "Closes sockets opened by the client".
@@ -636,13 +636,16 @@ entry_stat(dfs_t *dfs, daos_handle_t th, daos_handle_t oh, const char *name, /* Check if parent has the entry */ rc = fetch_entry(oh, th, name, len, true, &exists, &entry, - 0, NULL, NULL, NULL); + xnr, xnames, xvals, xsizes); if (rc) return rc; if (!exists) return ENOENT; ...
[dfs_mount_root_cont->[dfs_cont_create,dfs_mount],dfs_umount_root_cont->[dfs_umount],int->[dfs_oclass_select],dfs_obj_local2global->[dfs_get_chunk_size],dfs_cont_create->[dfs_oclass_select],dfs_chmod->[dfs_release],dfs_access->[dfs_release]]
This function returns the stat information of an entry in the object tree. D - D - F - I - D - F - I - D - F -.
obj is only used in this function for checkout the expected oid so this function doesn't need to take and check both, it's probably better to keep eiod rather than obj however.
@@ -362,7 +362,7 @@ public class SlaveComputer extends Computer { * Creates a {@link Channel} from the given stream and sets that to this agent. * * @param in - * Stream connected to the remote "slave.jar". It's the caller's responsibility to do + * Stream connected to the remote "ag...
[SlaveComputer->[getRetentionStrategy->[getNode,getRetentionStrategy],setNode->[setNode],getClassLoadingTime->[call],getResourceLoadingCount->[call],getNode->[getNode],grabLauncher->[getLauncher],taskCompleted->[taskCompleted],taskCompletedWithProblems->[taskCompletedWithProblems],getIcon->[getIcon],disconnect->[discon...
Creates a channel from the given input stream and outputs it to the given output stream. Reads the n - node from the input and output.
"To the remote agent"
@@ -1473,7 +1473,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir UsageEventUtils.publishUsageEvent(EventTypes.EVENT_NETWORK_OFFERING_ASSIGN, vmInstance.getAccountId(), vmInstance.getDataCenterId(), vmInstance.getId(), oldNicIdString, oldNetworkOffe...
[UserVmManagerImpl->[removeInstanceFromInstanceGroup->[expunge],applyUserData->[getName],moveVMToUser->[doInTransactionWithoutResult->[getName,resourceCountIncrement,resourceCountDecrement],removeInstanceFromInstanceGroup,resourceLimitCheck,getName,getVmId,getSecurityGroupIdList],loadVmDetailsInMapForExternalDhcpIp->[V...
Updates the default NIC for a virtual machine. set default nic for a VM This method is called to update the default network for a VM instance. Checks if a VM is stopped.
Log warning perhaps if this method is called when not in running state?
@@ -495,10 +495,10 @@ public class QueueTest { assertThat("The cycle should have been defanged and chain3 executed", queue.getItem(chain3), nullValue()); } - private static class TestFlyweightTask extends TestTask implements Queue.FlyweightTask { + public static class TestFlyweightTask extends Tes...
[QueueTest->[queueApiOutputShouldBeFilteredByUserPermission->[equals],TestTask->[hashCode->[hashCode],createExecutable->[run->[doRun]]],pendingsConsistenceAfterErrorDuringMaintain->[equals,getName,getDisplayName],testBlockBuildWhenUpstreamBuildingLock->[save],permissionSensitiveSlaveAllocations->[getACL->[getACL]],shou...
In order to build the upstream upstream build the upstream build is a special case. If the current executor is null then the current executor is null.
Maybe better to move it to the Jenkins Test Harness lib
@@ -475,6 +475,8 @@ func (h *UserHandler) proofSuggestionsHelper(mctx libkb.MetaContext) (ret []Proo switch displayConfig.Key { case "zcash.t", "zcash.z", "zcash.s": altKey = "zcash" + case "bitcoin": + altKey = "btc" case "http", "https", "dns": altKey = "web" }
[LoadUserPlusKeys->[LoadUserPlusKeys],loadPublicKeys->[LoadUser],LoadUser->[LoadUser],InterestingPeople->[loadUsername],FindNextMerkleRootAfterRevoke->[FindNextMerkleRootAfterRevoke],LoadUserByName->[LoadUser],FindNextMerkleRootAfterReset->[FindNextMerkleRootAfterReset]]
proofSuggestionsHelper returns a list of proofs that can be accepted by the user. Returns a list of proofs that suggest a key that is not available in the user s This function is used to sort the list of keys in the order offline and offline.
this this affect ident2?
@@ -220,7 +220,7 @@ docsApp.directive.docModuleComponents = function() { ' </tr>' + ' <tr ng-repeat="component in section.components">' + ' <td><a ng-href="{{ component.url }}">{{ component.shortName }}</a></td>' + - ' <td>{{ comp...
[No CFG could be retrieved]
JS - DAG Add the components to the api section.
I don't understand why this is needed.
@@ -297,4 +297,4 @@ public class TestHoodieTableFactory { return false; } } -} +} \ No newline at end of file
[TestHoodieTableFactory->[MockContext->[getInstance->[MockContext,getInstance]]]]
Returns true if the is a temporary condition.
nit: new line
@@ -277,11 +277,13 @@ def mixed_norm(evoked, forward, noise_cov, alpha, loose=0.2, depth=0.8, Noise covariance to compute whitener. alpha : float Regularization parameter. - loose : float in [0, 1] + loose : float in [0, 1] | 'auto' | None Value that weights the source variances of...
[tf_mixed_norm->[_make_sparse_stc,_reapply_source_weighting,_prepare_gain,_make_dipoles_sparse,_compute_residual,_window_evoked],mixed_norm->[_reapply_source_weighting,_prepare_gain,_make_sparse_stc,_compute_residual,_make_dipoles_sparse],_prepare_gain->[_prepare_gain_column],_prepare_gain_column->[_prepare_weights]]
Mixed - norm estimate. Parameters for the algorithm to use. Computes a single residue of the n - th residue in the network. Compute the active dipoles given a mixed - norm model. Computes a from the active set.
This is different from two of the others, but they should all be identical IIUC
@@ -45,7 +45,7 @@ public abstract class CauseOfBlockage { * Obtains a simple implementation backed by {@link Localizable}. */ public static CauseOfBlockage fromMessage(@NonNull final Localizable l) { - l.getKey(); // null check + Objects.requireNonNull(l); return new CauseOfBlock...
[CauseOfBlockage->[print->[getShortDescription],toString->[getShortDescription],NeedsMoreExecutorImpl->[getShortDescription->[toString]],fromMessage->[CauseOfBlockage]]]
Create a new CauseOfBlockage from a Localizable object.
A more direct way of expressing the same concept that also aids the static analyzer.
@@ -143,8 +143,10 @@ class CLI_Command extends WP_CLI_Command { $update_type = 'patch'; } - if ( ! ( isset( $assoc_args['patch'] ) && 'patch' !== $update_type ) - && ! ( isset( $assoc_args['minor'] ) && 'minor' !== $update_type ) + if ( ! ( isset( $assoc_args['patch'] ) && $assoc_args['patch'] && 'pat...
[CLI_Command->[check_update->[same_minor_release]]]
Checks if a release is updated. \ brief Show the version of the package. \ details.
What is the purpose of adding `! $assoc_args['patch']`?
@@ -45,6 +45,14 @@ class AbstractTarget(object): """ return tuple() + @classmethod + def alias(cls): + """Subclasses should return their desired BUILD file alias. + + :rtype: string + """ + raise NotImplementedError() + # TODO: Kill this in 1.5.0.dev0, once this old-style resource specifica...
[Target->[sources_relative_to_source_root->[has_sources,sources_relative_to_buildroot],sources_relative_to_buildroot->[has_sources],maybe_readable_combine_ids->[combine_ids],invalidation_hash->[compute_invalidation_hash],transitive_invalidation_hash->[dep_hash_iter->[RecursiveDepthError,invalidation_hash,transitive_inv...
Returns a tuple of subsystem types this target uses.
This doesn't seem necessary... currently only really used explicitly for macros?
@@ -11,6 +11,7 @@ Rails.application.routes.draw do via: %i[get post delete], as: :destroy_user_session match '/api/saml/auth' => 'saml_idp#auth', via: %i[get post] + post '/analytics' => 'analytics#create' # SAML secret rotation paths if FeatureManagement.enable_saml_cert_rotation?
[redirect,devise_scope,join,put,draw,root,scope,post,webauthn_enabled?,enable_usps_verification?,enable_identity_verification?,rotation_path_suffix,enable_saml_cert_rotation?,patch,devise_for,match,delete,namespace,get,doc_auth_enabled?,enable_test_routes]
This method is used to generate routes that are used by the application. Routes that handle login. Alphabetically sorted.
This endpoint shouldn't be exposed unless a feature is enabled to use it.
@@ -787,6 +787,14 @@ Service_Participant::initialize() initial_SubscriberQos_.partition = initial_PartitionQosPolicy_; initial_SubscriberQos_.group_data = initial_GroupDataQosPolicy_; initial_SubscriberQos_.entity_factory = initial_EntityFactoryQosPolicy_; + + initial_TypeConsistencyEnforcementQosPolicy_.kind...
[No CFG could be retrieved]
Initializes the scheduling. Initialize the scheduling policy.
ignore_member_names should be treated like its name suggests. In our case, we do want to ignore the names of members for assignability so we should set it to true. The spec has an issue regarding this setting so we should treat it as the name suggests rather than how the spec suggests until we get further clarification...
@@ -6,7 +6,7 @@ * Copyright (c) 2000-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * - * @class OjsAuthorDashboardAccessPolicy + * @class OjsJournalMustPublishPolicy * @ingroup security_authorization * * @brief Class to control access to OMP author dashboa...
[OjsJournalMustPublishPolicy->[effect->[getAuthorizedContextObject,getSetting]]]
Creates a new object of type OjsAuthorDashboardAccessPolicy that can be used to see.
I think this is also wrong
@@ -1644,8 +1644,11 @@ def unicode_getitem(s, idx): if isinstance(idx, types.Integer): def getitem_char(s, idx): idx = normalize_str_idx(idx, len(s)) - ret = _empty_string(s._kind, 1, s._is_ascii) - _set_code_point(ret, 0, _get_code_point(s, idx)) + ...
[unicode_casefold->[case_operation],unicode_rsplit->[rsplit_impl->[_rsplit_char->[_get_code_point],_rsplit_char],_unicode_rsplit_check_type],_unicode_casefold->[_set_code_point,_get_code_point],_empty_string->[_malloc_string],unicode_eq->[eq_impl->[_cmp_region]],unicode_istitle->[impl->[_get_code_point]],unicode_join->...
Get unicode item by index.
Perhaps it would be good to enhance this description with an additional sentence as to what the symptoms of breaking here might be?
@@ -1352,10 +1352,12 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable LOG.debug("Successfully invoked @OnScheduled methods of {} but scheduled state is no longer STARTING so will stop processor now", processor); // can only happen if ...
[No CFG could be retrieved]
Creates a task that invokes the OnScheduled annotation of the given processor.
Not sure which approach is correct, but this appears to be a change in behavior. If OnUnscheduled throws, OnStopped will not be invoked anymore. Do we want this new behavior, or do this finally block contain a nested try/finally with deactiveThread() in the nested finally? This would maintain the same behavior.
@@ -122,7 +122,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. */ @RunWith(SpringRunner.class) <%_ if (authenticationType === 'uaa' && applicationType !== 'uaa') { _%> -@SpringBootTest(classes = {SecurityBeanOverrideConfiguration.class, <%= mainClass %>.class}) +@SpringBootTest...
[No CFG could be retrieved]
Tests the class. missing field validation - check for missing field validation - check for missing field validation - check for.
`} ` needs to be placed correctly
@@ -43,10 +43,8 @@ class TestTrilinosLevelSetConvection(KratosUnittest.TestCase): def tearDown(self): my_pid = self.model_part.GetCommunicator().MyPID() - # Remove the .time file - KratosUtils.DeleteFileIfExisting("levelset_convection_process_mesh.time") - # Remove the Metis parti...
[TestTrilinosLevelSetConvectionInMemory->[setUp->[GetFilePath]],TestTrilinosLevelSetConvection->[test_trilinos_levelset_convection->[ConvectionVelocity,BaseDistance],test_trilinos_levelset_convection_BFECC->[ConvectionVelocity,BaseJumpedDistance],setUp->[GetFilePath]]]
Remove all files of type n - bytes and remove the levelset_convection_.
removing as is no longer needed, I checked
@@ -214,7 +214,7 @@ public class HyperUniquesAggregatorFactory extends AggregatorFactory { byte[] fieldNameBytes = StringUtils.toUtf8(fieldName); - return ByteBuffer.allocate(1 + fieldNameBytes.length).put(CACHE_TYPE_ID).put(fieldNameBytes).array(); + return ByteBuffer.allocate(1 + fieldNameBytes.length...
[HyperUniquesAggregatorFactory->[getMergingFactory->[getCombiningFactory],estimateCardinality->[estimateCardinality],equals->[equals],finalizeComputation->[estimateCardinality],getCombiningFactory->[HyperUniquesAggregatorFactory],getRequiredColumns->[HyperUniquesAggregatorFactory]]]
Returns the cache type ID for the given field name.
This line is longer than 120 cols
@@ -54,7 +54,7 @@ void DataReaderListenerImpl::on_data_available(DDS::DataReader_ptr reader) #else if (reader == part_reader_) { DDS::ParticipantBuiltinTopicDataDataReader_var part_reader_impl = - DDS::ParticipantBuiltinTopicDataDataReader::_narrow(part_reader_); + DDS::ParticipantBuiltinTopi...
[No CFG could be retrieved]
DDS data reader listener user_data - User data that was read from the part_data array.
Does this change anything? Line 55 says they're equal. Not that I'm objecting to it.
@@ -61,7 +61,11 @@ public class APITxTest<K, V> extends MultiHotRodServersTest { new APITxTest<String, String>().keyValueGenerator(STRING_GENERATOR).transactionMode(NON_DURABLE_XA), new APITxTest<byte[], byte[]>().keyValueGenerator(BYTE_ARRAY_GENERATOR).transactionMode(NON_DURABLE_XA), - ...
[APITxTest->[checkNoKeys->[checkNoKeys],createHotRodClientConfigurationBuilder->[createHotRodClientConfigurationBuilder],clearContent->[clearContent],putIfAbsent->[putIfAbsent],removeWithVersion->[removeWithVersion],compute->[compute],putAll->[put,putAll],checkInitValue->[checkInitValue],replaceWithVersion->[replaceWit...
Method to create an array of objects that can be used to test a single node in a.
Do we really need all combos? Same question for `MultipleCacheTxFunctionalTest`.
@@ -969,8 +969,8 @@ bool Server::checkInteractDistance(RemotePlayer *player, const f32 d, const std: else if (max_d < 0) max_d = BS * 4.0f; - // cube diagonal: sqrt(3) = 1.732 - if (d > max_d * 1.732) { + // Cube diagonal: sqrt(3) = 1.732 + if (d > max_d + 1.732f * BS) { actionstream << "Player " << player->g...
[handleCommand_Interact->[process_PlayerPos,checkInteractDistance],handleCommand_PlayerPos->[process_PlayerPos]]
Checks if a player has interacted the given distance from the hand to the player.
I don't think this is correct. The idea here is that the distance is up to `sqrt(3)` **times** longer when measuring through the cube diagonal, as opposed to a straight line (which has a length of `d`).
@@ -513,6 +513,7 @@ register('zen', zen); register('zergnet', zergnet); register('zucks', zucks); register('speakol', speakol); +register('lentainform', lentainform); // For backward compat, we always allow these types without the iframe // opting in.
[No CFG could be retrieved]
Register all of the types of the objects that are registered with the module. Draws a 3p embed to the window.
Can we put this (and the one above, my apologies), in alphabetical order?
@@ -39,6 +39,7 @@ export default (state: ApplicationProfileState = initialState, action): Applicat return { ...state, ribbonEnv: data['display-ribbon-on-profiles'], + isMailEnabled: data['mailEnabled'], inProduction: data.activeProfiles.includes('prod'), isSwaggerEnable...
[No CFG could be retrieved]
The state of the application profile.
`data.mailEnabled`, use `data[]` only when the keys have special chars in it
@@ -21,6 +21,7 @@ import org.springframework.context.annotation.Configuration; * @since 5.2.0 */ @Configuration(value = "ldapPasswordManagementConfiguration", proxyBeanMethods = false) +@ConditionalOnProperty(prefix = "cas.authn.pm.ldap", name = "ldapUrl") @EnableConfigurationProperties(CasConfigurationProperties...
[LdapPasswordManagementConfiguration->[passwordChangeService->[getObject,LdapPasswordManagementService,getPrefix,getPm]]]
Creates a new LdapPasswordManagementConfiguration object.
This will not work. The setting is defined as `cas.authn.pm.ldap[x].ldapUrl` in master. To make things consistent between master and 6.1, I suggest that if an LDAP url is not defined, a new BeanCreationException should be thrown instead, rather than ignoring the configuration silently.
@@ -400,8 +400,9 @@ class CoreferenceResolver(Model): antecedent_scores += antecedent_log_mask # Shape: (batch_size, num_spans_to_keep, 1) - dummy_scores = util.get_zeros([antecedent_scores.size(0), antecedent_scores.size(1), 1], - antecedent_scores.is_cud...
[CoreferenceResolver->[forward->[_compute_negative_marginal_log_likelihood,_compute_pairwise_inputs,_generate_antecedents,_prune_and_sort_spans,_compute_span_representations,_compute_antecedent_gold_labels,_compute_antecedent_scores],from_params->[from_params],_compute_span_representations->[_compute_head_attention]]]
Compute the antecedent scores for each pair of spans. Returns the ccedent scores for the current node.
I'm not opposed to this, just wondering what the motivation is for not using `get_zeros`.
@@ -164,7 +164,7 @@ class CI_DB_pdo_dblib_driver extends CI_DB_pdo_driver { .sprintf($this->_like_escape_str, $this->_like_escape_chr); } - return $sql.' ORDER BY '.$this->escape_identifiers('name'); + return $sql .' ORDER BY '.$this->escape_identifiers('name'); } // ----------------------------------...
[CI_DB_pdo_dblib_driver->[_limit->[escape_identifiers,_compile_order_by,version],_list_columns->[escape],field_data->[query,escape,result_object],_delete->[_compile_wh],_insert_batch->[display_error,version],_list_tables->[escape_identifiers,escape_like_str],db_connect->[row_array,query]]]
List tables in the database.
... remove the space.
@@ -179,7 +179,13 @@ func (e *EKLib) newDeviceEKNeeded(ctx context.Context, merkleRoot libkb.MerkleRo s := e.G().GetDeviceEKStorage() maxGeneration, err := s.MaxGeneration(ctx) if err != nil { - return needed, err + switch err.(type) { + case *erasablekv.UnboxError: + e.G().Log.Debug(err.Error()) + return ...
[CleanupStaleUserAndDeviceEKs->[metaContext],checkLoginAndPUK->[NewMetaContext],NewMetaContext->[NewMetaContext],PrepareNewTeamEK->[NewTeamEKNeeded],NewUserEKNeeded->[metaContext],NewTeamEKNeeded->[metaContext],OnLogin->[KeygenIfNeeded],KeygenIfNeeded->[checkLoginAndPUK,metaContext],SignedDeviceEKStatementFromSeed->[De...
newDeviceEKNeeded checks if a deviceEK is needed.
Can we annotate these error messages more?
@@ -662,6 +662,10 @@ def main(): action="store_true", help="unlink a package") + p.add_option('--target-prefix', + default=sys.prefix, + help="target prefix (defaults to %default)") + p.add_option('-p', '--prefix', action="s...
[binary_replace->[replace->[PaddingError]],messages->[rm_rf],try_hard_link->[rm_empty_dir,rm_rf,_link],rm_extracted->[rm_rf,Locked],read_no_link->[yield_lines],extract->[Locked],main->[messages,try_hard_link,extracted,linked,extract,unlink,link],_link->[win_hard_link,win_soft_link],rm_fetched->[rm_rf,Locked],unlink->[n...
%prog main . fasta link packages_dir prefix with prefix.
This should be `%(default)s`.
@@ -330,10 +330,17 @@ namespace System.Reflection #endregion #region Invocation Logic(On MemberBase) + [MethodImpl(MethodImplOptions.AggressiveInlining)] private void CheckConsistency(object? target) { // only test instance methods - if ((m_methodAttr...
[RuntimeMethodInfo->[GetMethodBody->[GetMethodBody],InvokeArgumentsCheck->[CheckConsistency,ThrowNoInvokeException],GetHashCode->[GetHashCode],GetParameters->[FetchNonReturnParameters],IsDefined->[IsDefined],GetParametersNoCopy->[FetchNonReturnParameters],GetCustomAttributes->[GetCustomAttributes],ToString->[ToString],...
Checks if the object is a reserved object.
This is not a lazy initialization. Is splitting this method really improvement? Maybe mark the whole method with `AggressiveInlining` without spliting it?
@@ -1134,6 +1134,15 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { // input event on backspace, delete or cut if ($sniffer.hasEvent('input')) { element.on('input', listener); + + // On date-family inputs, we also need to listen for `keyup` in case the date is partially + //...
[No CFG could be retrieved]
Adds event listeners to the element that is responsible for the value. context menu in IE.
can this name be a bit more explicit, such as `browserSupportsType`?
@@ -104,6 +104,14 @@ describe Assignment do end describe 'custom validations' do + it 'should catch a zero group_min' do + expect{create(:assignment, group_min: 0)}.to raise_error(ActiveRecord::RecordInvalid) + end + + it 'should catch a negative group_min' do + expect{create(:assignment, gro...
[round,create,let,accepted_grouping_for,have_many,through,it,to,select,get_current_assignment,update_results_stats,each,marking_state,puts,context,clone_groupings_from,reload,and_return,be,match_array,to_csv,where,should,map,save!,today,drop,groupings,get_latest_result,due_date,id,once,not_to,save,class_name,new,add_cs...
Checks that a node has a parent assignment and that it has a peer review assignment. create a permission file for the given component.
You can delete this test and the next one (covered above in lines 58-63).
@@ -576,7 +576,7 @@ async def transitive_hydrated_targets(addresses: Addresses) -> TransitiveHydrate to_visit.extend(tht.dependencies) return TransitiveHydratedTargets( - tuple(tht.root for tht in transitive_hydrated_targets), closure + tuple(tht.root for tht in transitive_hydrated_targets...
[hydrate_sources->[HydratedField,_eager_fileset_with_spec],hydrate_sources_snapshot->[SourcesSnapshot],sources_snapshots_from_filesystem_specs->[SourcesSnapshots,SourcesSnapshot],transitive_hydrated_target->[TransitiveHydratedTarget],transitive_hydrated_targets->[TransitiveHydratedTargets],OwnersRequest->[validate->[In...
Given Addresses kicks off recursion on expansion of TransitiveHydratedTargets.
This does have a minor performance hit to convert from `OrderedSet` to `FrozenOrderedSet`. I looked at refactoring this code to use a comprehension so that we can use `FrozenOrderedSet`, but it doesn't seem possible with the `while` loop. We could choose to have `TransitiveHydratedTargets.closure` use `OrderedSet` inst...
@@ -298,11 +298,7 @@ describe AlaveteliPro::SubscriptionsController, feature: :pro_pricing do before do error = Stripe::RateLimitError.new StripeMock.prepare_error(error, :create_subscription) - post :create, 'stripeToken' => token, - 'stripeTokenType' => '...
[successful_signup->[email,post],email,create,new,let,be,describe,start,create_test_helper,first,it,create_pro_account,map,to,stripe_customer_id,plan_path,before,prepare_error,post,let!,prepare_card_error,require,signin_path,dirname,stop,shared_examples,enable_actor,generate_card_token,match,id,create_plan,enabled?,cus...
expects the customer to be a customer who has a new token Stripe API prepare_error prepare_subscription prepare_error prepare_coupon_code send_.
Line is too long. [157/80]
@@ -1,6 +1,8 @@ if (window.angular.bootstrap) { //AngularJS is already loaded, so we can return here... - console.log('WARNING: Tried to load angular more than once.'); + if (!!window.console) { + console.log('WARNING: Tried to load angular more than once.'); + } return; }
[log,bindJQuery]
This is a hack to avoid the angular. bootstrap call from the angular. js library.
Why not `if (window.console)`?
@@ -24,6 +24,7 @@ import org.apache.dubbo.remoting.telnet.TelnetHandler; import org.apache.dubbo.remoting.transport.ChannelHandlerAdapter; public class TelnetHandlerAdapter extends ChannelHandlerAdapter implements TelnetHandler { + private static volatile boolean enableTelnet = true; private final Extensi...
[TelnetHandlerAdapter->[telnet->[trim,getMessage,append,indexOf,hasExtension,replace,telnet,getParameterAndDecoded,contains,toString,StringBuilder,length],getExtensionLoader]]
Telephone command with optional prompt.
It is not a good way to close telnet. This property should be bound to URL.
@@ -42,7 +42,7 @@ final class IdentifiersExtractor implements IdentifiersExtractorInterface $this->resourceClassResolver = $resourceClassResolver; if (null === $this->resourceClassResolver) { - @trigger_error(sprintf('Not injecting %s in the CachedIdentifiersExtractor might introduce cach...
[IdentifiersExtractor->[getIdentifiersFromItem->[getValue,isResourceClass,create,getObjectClass,isIdentifier],getIdentifiersFromResourceClass->[isIdentifier,create]]]
Initializes the CachedIdentifiersExtractor.
It could be changed to use `__CLASS__` instead? And remove "the".
@@ -164,6 +164,7 @@ static void coco_cart_slot1_3(device_slot_interface &device) device.option_add("rs232", COCO_RS232); device.option_add("dcmodem", COCO_DCMODEM); device.option_add("orch90", COCO_ORCH90); + device.option_add("stereo_composer", COCO_STEREO_COMPOSER); device.option_add("ssc", COCO_SSC); devic...
[No CFG could be retrieved]
coco_cart_slot1_3 provides the basic functionality of the coco_ coco_multipak_device is the most important method to initialize the machine configuration.
Does the name here need to be this long? Most of the options here use terse, abbreviated names for the command line.
@@ -14,6 +14,7 @@ import ( // GenerateBuildFromConfig creates a new build based on a given BuildConfig. Optionally a SourceRevision for the new // build can be specified. Also optionally a list of image names to be substituted can be supplied. Values in the BuildConfig // that have a substitution provided will be ...
[Copy,Infof,GetByNamespace,V,Errorf,IsNotFound,LatestTaggedImage]
GenerateBuildFromConfig creates a new build based on a given BuildConfig and a SourceRevision. GenerateBuildFromBuild creates a new build based on the build s imageRepoReferences.
this is a worrisomely loose contract.
@@ -70,7 +70,7 @@ abstract class RestController extends FOSRestController * contains default translations for some fields * @var array */ - protected $fieldsDefaultTranslationKeys = array('id' => 'public.id', 'name' => 'public.name'); + protected $fieldsDefaultTranslationKeys = array('id' => 'pu...
[RestController->[getHalLinks->[all,getRequestUri,replaceOrAddUrlString,getPage,get,getParameterName,getLimit],createHalResponse->[getHalLinks],responseFields->[getMessage,handleview,get,getAllFields,view,addFieldAttributes],responseDelete->[view,toArray],responseList->[find,getHalLinks,getPage,get,getTotalPages,getLim...
Returns a response with all the fields of the given type. Get fields of a node - header.
@turbo-ele should we move that to config?
@@ -67,6 +67,9 @@ func (d *Delegate) BeforeJobDeleted(jb job.Job) { func (d *Delegate) ServicesForSpec(spec job.Job) ([]job.Service, error) { // TODO: we need to fill these out manually, find a better fix + if spec.PipelineSpec == nil { + spec.PipelineSpec = &pipeline.Spec{} + } spec.PipelineSpec.JobName = spec...
[ServicesForSpec->[ValueOrZero],spec->[RUnlock,RLock],BeforeJobDeleted->[Errorw,DeleteJob],RunJob->[ValueOrZero,Errorw,spec,CombinedContext,Run,With,NewVarsFrom,NewRun],Start->[addSpec],Close->[rmSpec],addSpec->[Lock,Unlock,Errorf],AfterJobCreated->[Notify,Errorw],rmSpec->[Lock,Unlock],New]
ServicesForSpec returns a list of services that can be run on the given job.
Was this an accidental commit?
@@ -35,6 +35,10 @@ func NewSTIBuildStrategy(stiBuilderImage string, tc TempDirectoryCreator, useLoc // CreateBuildPod creates a pod that will execute the STI build // TODO: Make the Pod definition configurable func (bs *STIBuildStrategy) CreateBuildPod(build *buildapi.Build) (*api.Pod, error) { + buildJson, err := j...
[setupTempVolume->[CreateTempDirectory],CreateBuildPod->[setupTempVolume],CreateTempDirectory->[TempDir]]
CreateBuildPod creates a pod with the given build.
As above re: encoding
@@ -2084,11 +2084,11 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m if_unmodified_since=kwargs.pop('if_unmodified_since', None), if_match=kwargs.pop('if_match', None), if_none_match=kwargs.pop('if_none_match', None)) - page_range = None ...
[BlobClient->[create_page_blob->[_create_page_blob_options],abort_copy->[_abort_copy_options],set_sequence_number->[_set_sequence_number_options],start_copy_from_url->[_start_copy_from_url_options,start_copy_from_url],resize_blob->[_resize_blob_options],upload_blob->[_upload_blob_options],upload_pages_from_url->[_uploa...
Returns a dict of options for page - range filtering.
So we will update the method **validate_and_format_range_headers** in another PR?
@@ -130,7 +130,7 @@ $sql = "UPDATE " . TABLE_BANNERS . " SET - date_scheduled = :scheduledDate, + date_scheduled = DATE_ADD(:scheduledDate, INTERVAL '00:00:00' HOUR_SECOND), expires_date = DATE_ADD(:expiresDate, INTERVAL '23:59:5...
[MoveNext,bindVars,Execute,display_count,parse,infoBox,add_session,updateObjectInfo,RecordCount,display_links,set_destination,add,save]
This function returns an array with the data about the banners. function to show a new node in the list of banners.
Doesn't this need something more, for when `$date_scheduled` is blank? Something similar to line 140? `if ($date_scheduled != '') {`
@@ -112,6 +112,7 @@ public class TestSqlTaskExecution private static final OutputBufferId OUTPUT_BUFFER_ID = new OutputBufferId(0); private static final CatalogName CONNECTOR_ID = new CatalogName("test"); private static final Duration ASSERT_WAIT_TIMEOUT = new Duration(1, HOURS); + public static final...
[TestSqlTaskExecution->[TestingBuildOperatorFactory->[Pauser],OutputBufferConsumer->[abort->[abort]],BuildStates->[setNoNewLookups->[setNoNewLookups]],TestingScanOperatorFactory->[TestingScanOperator->[getOutput->[await,finish]],Pauser],TestingCrossJoinOperatorFactory->[TestingCrossJoinOperator->[getOutput->[isFinished...
Returns the list of possible execution strategies for the given .
Does this reduce exception stacks printed during tests? or is it a separate change?
@@ -57,7 +57,7 @@ class AssignmentsController < ApplicationController def peer_review assignment = Assignment.find(params[:id]) @assignment = assignment.is_peer_review? ? assignment : assignment.pr_assignment - if @assignment.nil? || @assignment.is_hidden + unless current_user.visible_assessments(ass...
[AssignmentsController->[start_timed_assignment->[update],new->[new],create->[new],set_boolean_graders_options->[update]]]
shows a page with a nail node if the user has not submitted any of the.
This should still handle the case where `@assignment` is nil.
@@ -55,7 +55,7 @@ namespace static_assert(alignof(T) == 1, "T must have 1 byte alignment"); static_assert(sizeof(T) <= sizeof(source), "T is too large for source"); static_assert(sizeof(T) * 2 <= sizeof(expected), "T is too large for destination"); - std::memcpy(std::addressof(value), source, sizeof(T...
[is_formatted->[str],memset->[memcmp,memset,ASSERT_EQ],EXPECT_TRUE->[EXPECT_TRUE]]
Checks if the sequence of values in the source sequence are formatted.
`std::addressof(unwrap(unwrap(value))` ? Either way I thought `crypto::secret_key` was double wrapped.
@@ -15,7 +15,7 @@ import java.io.File; @Test(groups = "functional", testName = "query.blackbox.LocalCacheAsyncCacheStoreTest") public class LocalCacheAsyncCacheStoreTest extends LocalCacheTest { - private String indexDirectory = System.getProperty("java.io.tmpdir") + File.separator + "asyncStore"; + private fin...
[LocalCacheAsyncCacheStoreTest->[setup->[setup],teardown->[teardown]]]
Creates a cache manager based on the configuration.
why didn't you use `TestingUtil.tmpDirectory(getClass())` as in the other tests?
@@ -33,13 +33,16 @@ class Git(Base): GIT_DIR = ".git" def __init__(self, root_dir=os.curdir, repo=None): + """Git class constructor. + Requires `Repo` class from `git` module (from gitpython package). + """ super(Git, self).__init__(root_dir, repo=repo) - import git + ...
[Git->[is_dirty->[is_dirty],ignore->[_get_gitignore],install->[_install_hook],ignore_remove->[_get_gitignore],commit->[commit],cleanup_ignores->[ignore_remove],get_diff_trees->[_get_diff_trees],branch->[branch],_get_diff_trees->[get_tree,commit],tag->[tag],add->[add],checkout->[checkout]]]
Initialize a new Git object.
Is this git -> repo renaming necessary? Also, you are overwriting `self.repo` that is a dvc repo and set in SCMBase.
@@ -902,3 +902,8 @@ func (s *policyServer) setVersionForInterceptorSwitch(v api.Version) { s.vChan <- v } } + +func (s *policyServer) isBeta2p1() bool { + version := s.vSwitch.Version + return version.Major == api.Version_V2 && version.Minor == api.Version_V1 +}
[GetPolicy->[GetPolicy],PurgeSubjectFromPolicies->[PurgeSubjectFromPolicies],AddPolicyMembers->[AddPolicyMembers],CreateRole->[CreateRole],RemovePolicyMembers->[RemovePolicyMembers],DeletePolicy->[DeletePolicy],UpdateRole->[UpdateRole],UpdatePolicy->[UpdatePolicy],CreatePolicy->[CreatePolicy],ListRoles->[ListRoles],Get...
setVersionForInterceptorSwitch sets the version for interceptor switch.
This falls apart when we're using IAM v2 endpoints with authz-service running on v1. This is what our inspec tests have been doing for a while now.
@@ -811,9 +811,10 @@ public class BigtableIO { public final synchronized BigtableSource splitAtFraction(double fraction) { ByteKey splitKey; try { - splitKey = source.getRange().interpolateKey(fraction); + splitKey = rangeTracker.getRange().interpolateKey(fraction); } catch (Ille...
[BigtableIO->[BigtableWriter->[checkForFailures->[toString],close->[checkForFailures,close],write->[checkForFailures],open->[getTableId],getSink],BigtableReader->[getFractionConsumed->[getFractionConsumed],start->[start,createReader],close->[close],advance->[advance],splitAtFraction->[getRange,withStartKey,withEndKey],...
Splits this source at the specified fraction.
This is subtle, but I don't think that we want this change. If the Source's range is `[a,z)` and the first key is `d`, I think the source's range is still `[a, z)`. Leave the start key alone, but the rangeTracker will still keep the state the same. (The change above is still good)
@@ -1741,9 +1741,17 @@ void DataReaderImpl::notify_read_conditions() ReadConditionSet local_read_conditions = read_conditions_; ACE_GUARD(Reverse_Lock_t, unlock_guard, reverse_sample_lock_); + ConditionImpl* ci; for (ReadConditionSet::iterator it = local_read_conditions.begin(), end = local_read_cond...
[No CFG could be retrieved]
private static final int DCPS_DEBUG_LEVEL = 0 ; GUI return value.
Maybe declare ci within the loop?
@@ -61,7 +61,7 @@ namespace Dynamo.TestInfrastructure DynamoViewModel.ExecuteCommand(runCancel); })); - Thread.Sleep(100); + Thread.Sleep(0); writer.WriteLine("### - re-exec complete"); writer.Flush();
[CodeBlockNodeMutator->[RunTest->[Flush,Invoke,Mutate,ExecuteCommand,Data,RunEnabled,Count,WriteLine,ToString,Sleep,Undo,Add,GUID],Mutate->[Invoke,Code,ExecuteCommand,Next,Empty,Substring,NextDouble,Length,GUID]]]
Runs the readout undo and redo commands. read - back.
Can you explain why this `Thread.Sleep` call is present? There are different, guaranteed mechanisms for flushing the `Dispatcher`. For example, see `NodeViewCustomizationTests`.
@@ -13,7 +13,7 @@ describe("animations", function() { }; })); - afterEach(inject(function($$jqLite) { + afterEach(inject(function() { dealoc(element); }));
[No CFG could be retrieved]
The ngAnimateMock module provides a function to allow animations on the DOM element and a requires that the templateRequest is injected and initialized.
What is going on here? Do we actually need an `inject` call at all?
@@ -53,7 +53,8 @@ class RequestAnalyzerResolver implements RequestAnalyzerResolverInterface 'resourceLocatorPrefix' => $requestAnalyzer->getCurrentResourceLocatorPrefix(), 'resourceLocator' => $requestAnalyzer->getCurrentResourceLocator(), 'get' => $requestAnalyzer->ge...
[RequestAnalyzerResolver->[resolveForPreview->[getPortalInformations],resolve->[getCurrentPortalUrl,getCurrentResourceLocator,getLocalization,getCurrentPostParameter,getCurrentResourceLocatorPrefix,getCurrentGetParameter,getKey,getDefaultLocalization]]]
Resolves a sequence of keys from the current request analyzer to the current request analyzer.
Do we want to be adding vendor specific things in a core component? Could we not solve this with some sort of filter? /cc @danrot @chirimoya @wachterjohannes
@@ -186,7 +186,7 @@ public class GroupByBenchmark if (ComplexMetrics.getSerdeForType("hyperUnique") == null) { ComplexMetrics.registerSerde("hyperUnique", new HyperUniquesSerde(Hashing.murmur3_128())); } - executorService = Execs.multiThreaded(numSegments, "GroupByThreadPool"); + executorService ...
[GroupByBenchmark->[querySingleIncrementalIndex->[runQuery],setup->[setupQueries],querySingleQueryableIndex->[runQuery]]]
Setup the index. Benchmarks a group by query.
Most formats are with the thread enumeration after a dash rather than in brackets. Suggest keeping that here.
@@ -317,7 +317,7 @@ class IsolatedProcessTest(TestBase, unittest.TestCase): self.assertEqual( files_content_result.dependencies, - (FileContent("roland", b"European Burmese"),) + (FileContent("roland", b"European Burmese", False),) ) def test_exercise_python_side_of_timeout_implementat...
[IsolatedProcessTest->[test_javac_compilation_example_success->[JavacCompileRequest,JavacSources,BinaryLocation],rules->[create_javac_compile_rules,create_cat_stdout_rules],test_javac_compilation_example_failure->[JavacCompileRequest,JavacSources,BinaryLocation],test_javac_version_example->[JavacVersionExecutionRequest...
This test tests that the write of a file is the same as the write of a file.
Encouraged to use kwarg `is_executable` here.
@@ -124,6 +124,8 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) { f.DurationVar(&l.RulerEvaluationDelay, "ruler.evaluation-delay-duration", 0, "Duration to delay the evaluation of rules to ensure the underlying metrics have been pushed to Cortex.") f.IntVar(&l.RulerTenantShardSize, "ruler.tenant-shard-size", ...
[DropLabels->[getOverridesForUser],MaxGlobalSeriesPerMetric->[getOverridesForUser],RulerTenantShardSize->[getOverridesForUser],MaxLabelValueLength->[getOverridesForUser],MaxSamplesPerQuery->[getOverridesForUser],MaxLocalMetadataPerMetric->[getOverridesForUser],MaxQueriersPerUser->[getOverridesForUser],MinChunkLength->[...
RegisterFlags registers the limits for the command. This is a variable that can be used to configure the validation behavior. This function defines the maximum number of active series per user across the cluster.
**suggestion:** I think we should consider setting 0 as the default value for both new options. Otherwise this is a breaking change for some users. If we leave the default as is at least consider mentioning the new default value in the changelog.
@@ -151,13 +151,7 @@ class FastavroIT(unittest.TestCase): fastavro_records = \ fastavro_read_pipeline \ | 'create-fastavro' >> Create(['%s*' % fastavro_output]) \ - | 'read-fastavro' >> ReadAllFromAvro(use_fastavro=True) \ - | Map(lambda rec: (rec['number'], rec)) - - ...
[FastavroIT->[test_avro_it->[check->[assertEqual]]]]
Seed a PCollection with num_records records and an avro record with num_records records \ read - fastavro >> Read from avro and create a new file if it doesn.
The mechanics of this test was to run a pipeline with Avro and with FastAvro, and then check that the output was the same. Now we don't have Avro implementation, so such test scenario wouldn't work. We could instead verify that the checksum of the values that have bean read matches some pre-computed value.
@@ -0,0 +1,15 @@ +class AAL3Policy + def initialize(user, sp_session, session) + @user = MfaContext.new(user) + @sp_session = sp_session + @session = session + end + + def aal3_required? + @sp_session[:aal_level_requested] == 3 + end + + def aal3_used? + %w[webauthn piv_cac].include?(@session[:auth_...
[No CFG could be retrieved]
No Summary Found.
`sp_session` is inside of `session` (it's the `:sp` key) .... so passing in both is redundant IMO
@@ -420,12 +420,12 @@ public class ListenTCPRecord extends AbstractProcessor { getLogger().debug("Removing flow file, no records were written"); session.remove(flowFile); } else { - final String sender = getRemoteAddress(socketRecordReader); ...
[ListenTCPRecord->[getRemoteAddress->[getRemoteAddress]]]
This method is called when a trigger is triggered. This method is called from the main loop of the write process. This method is called when a new connection is received.
The docs for tcp.port say @WritesAttribute(attribute="tcp.port", description="The port that the processor accepted the connection on."), But possibly we should add another attribute like tcp.sender.port
@@ -49,13 +49,11 @@ public class PlanDeterminismChecker public void checkPlanIsDeterministic(Session session, String sql) { - IntStream.range(1, MINIMUM_SUBSEQUENT_SAME_PLANS) - .mapToObj(attempt -> getPlanText(session, sql)) - .map(planEquivalenceFunction) - ...
[PlanDeterminismChecker->[checkPlanIsDeterministic->[checkPlanIsDeterministic]]]
Checks if the plan is deterministic.
You can keep it the stream way, just replace `reduce` with `forEach`
@@ -240,7 +240,7 @@ public class CardContentProvider extends ContentProvider { /* Search for notes using direct SQL query */ String[] proj = sanitizeNoteProjection(projection); String sql = SQLiteQueryBuilder.buildQueryString(false, "notes", proj, selection, null, null...
[CardContentProvider->[getTemplateFromUri->[getModelIdFromUri],update->[shouldEnforceUpdateSecurity],insertMediaFile->[getType],bulkInsert->[shouldEnforceQueryOrInsertSecurity,bulkInsert],query->[shouldEnforceQueryOrInsertSecurity,query],insert->[shouldEnforceQueryOrInsertSecurity],answerCard->[answerCard]]]
Query the notes of a specific type. Returns a MatrixCursor that contains all the elements of the current note. retrieve a card template with specific ID return a cursor of cards that are not currently selected get full depart name and count of all depart nodes.
@Arthur-Milchior this broke the build. Please don't ever submit a PR that you haven't run `./gradlew clean jacocoTestReport` on
@@ -163,7 +163,7 @@ namespace System.Security.Cryptography tmp.CopyTo(destination); } - CryptographicOperations.ZeroMemory(tmp); + CryptographicOperations.ZeroMemory(tmp.Slice(0, bytesWritten)); } i...
[No CFG could be retrieved]
Reads the specified block of data and decrypts it. Check if the decryption method is present.
Wass this just for clarity? `tmp` is sliced above as `tmp = tmp.Slice(0, bytesWritten);`
@@ -158,6 +158,9 @@ class WPSEO_Twitter { if ( is_singular() ) { $meta_desc = $this->single_description(); } + elseif ( is_home() && ! is_front_page() ) { + $meta_desc = $this->single_description( get_option( 'page_for_posts' ) ); + } else { $meta_desc = $this->fallback_description(); }
[WPSEO_Twitter->[site_twitter->[output_metatag],fallback_title->[title],title->[output_metatag],image_output->[output_metatag],image_from_content_output->[image_output],description->[output_metatag],author->[get_twitter_id,output_metatag],image_thumbnail_output->[image_output],image_from_meta_values_output->[image_outp...
Get the description of the post.
Ok, so now I'm thinking `is_posts_page` should be a function of `WPSEO_Utils`
@@ -535,7 +535,7 @@ public class ProjectBuilder extends Builder { * version. */ protected void startBuild(Builder builder) { - project.versionMap.clear(); + project.versionMap.remove(builder.getBsn()); } /**
[ProjectBuilder->[getSourceFileFor->[getSourceFileFor],report->[getBaselineRepo,report,getReleaseRepo],getClasspath->[getClasspath,init],changedFile->[changedFile],getBaselineRepo->[getReleaseRepo],builds->[getExportedRuns,builds],lastModified->[lastModified]]]
Start the build.
Are these uses of versionMap safe? In some places Project, versionMap is synchronized before being mutated.
@@ -907,6 +907,18 @@ def remove_auth_from_url(url): return surl +def redact_password_from_url(url): + """Replace the password in a given url with ****""" + return transform_url(url, redact_netloc) + + +def remove_auth_from_url(url): + # Return a copy of url with 'username:password@' removed. + # us...
[dist_in_site_packages->[normalize_path],has_leading_dir->[split_leading_dir],get_installed_distributions->[editables_only_test->[dist_is_editable],editable_test->[dist_is_editable],user_test,editables_only_test,local_test,editable_test],captured_output->[from_stream],dist_in_usersite->[normalize_path],unzip_file->[ens...
Protection of pip. exe from modification on Windows On Windows ensuring that pip is run.
You need a period at the end of the sentence.
@@ -623,6 +623,9 @@ static bool ScheduleRun(EvalContext *ctx, Policy **policy, GenericAgentConfig *c DetectEnvironment(ctx); + Log(LOG_LEVEL_INFO, "Re-evaluating augments" ); + LoadAugments(ctx, config); + EvalContextClassPutHard(ctx, CF_AGENTTYPES[AGENT_TYPE_EXECUTOR], "cfe_internal...
[No CFG could be retrieved]
Reads a promise file and checks if it has any new promises and if so loads the promise Find the next non - empty class in the schedule that is defined at the given time.
VERBOSE please, no need to spam syslog with this.
@@ -8,6 +8,7 @@ public final class Constants { //Regex for acceptable logins public static final String LOGIN_REGEX = "^[_'.@A-Za-z0-9-]*$"; // Spring profile for development and production, see http://jhipster.github.io/profiles/ + public static final String SPRING_PROFILE_TEST = "test"; public ...
[No CFG could be retrieved]
Enumerates all application constants.
I don't like to have a specific "test" profile, which would be only for Cassandra. Indeed, we could create one, but not just for this specific case.
@@ -4,7 +4,7 @@ RSpec.describe ChatChannelMembership, type: :model do let(:chat_channel_membership) { FactoryBot.create(:chat_channel_membership) } describe "#channel_text" do - it "sets channel text using name, slig, and human names" do + it "sets channel text using name, slug, and human names" do ...
[create,let,describe,slug,join,it,to,elasticsearch_doc,with,destroy,require,sidekiq_assert_enqueued_with,to_s,receive,index_to_elasticsearch,gsub,id,hash_including,keys,have_received,chat_channel,eq,save,index_to_elasticsearch_inline]
Describe the chat channel membership adds the given hash to the elasticsearch index.
This really doesn't have to do with fixing the bug, but since it's just a quick typo fix related to the same subject of `ChatChannelMembership` I figured I'd just include it here.
@@ -186,6 +186,15 @@ class Pipeline(AbstractContextManager, Generic[HTTPRequestType, HTTPResponseType _ for _ in executor.map(prepare_requests, requests) ] + def _prepare_multipart(self, request): + # type: (HTTPRequestType) -> None + # This code is fine as long as HTTPR...
[Pipeline->[run->[send,_prepare_multipart_mixed_request,_TransportRunner],__init__->[_SansIOHTTPPolicyRunner,_TransportRunner],_prepare_multipart_mixed_request->[prepare_requests->[_await_result]],__exit__->[__exit__],__enter__->[__enter__]],_SansIOHTTPPolicyRunner->[send->[_await_result,send]],_TransportRunner->[send-...
Will execute the multipart policies. Will execute the multipart policies. Will execute.
Same method (but async) should be done on the AsyncPipline
@@ -827,4 +827,13 @@ class Article < ApplicationRecord ::Articles::DetectAnimatedImagesWorker.perform_async(id) end + + def delete_images + image_paths = body_markdown.scan(IMG_MARKDOWN_REGEX).flatten + main_image_path = main_image&.scan(IMG_MARKDOWN_REGEX) + image_paths << main_image_path if main_i...
[Article->[username->[username],evaluate_front_matter->[set_tag_list],update_notifications->[update_notifications],readable_edit_date->[edited?]]]
Detects an animated images on the article.
You are almost there. I'd you change this method to accept only a single string instead of an array. The same should be done with `Image::Delete` service
@@ -1331,7 +1331,9 @@ public class CardBrowser extends NavigationDrawerActivity implements private static String formatQA(String txt) { /* Strips all formatting from the string txt for use in displaying question/answer in browser */ - String s = txt.replace("<br>", " "); + String s = txt; ...
[CardBrowser->[updateList->[updatePreviewMenuItem],onCollectionLoaded->[getLastDeckId,onCollectionLoaded],onDestroy->[onDestroy],onNavigationPressed->[onNavigationPressed],onCreate->[onCreate],onOptionsItemSelected->[run->[getSelectedCardIds],onClick->[changeDeck],onOptionsItemSelected,getSelectedCardIds],onCheck->[upd...
Strips all formatting from the string txt for use in displaying question or answer in browser.
This is just for the small QA chunks and the template never passes through here right? I ask because it seems like 7 string copy / modification cycles is a bit much, but if the text is small performance is inconsequential vs code complexity If the expected text could be large though I wonder if we could do one pattern ...
@@ -488,14 +488,10 @@ public class SparkInterpreter extends Interpreter { */ try { - if (sc.version().startsWith("1.1") || sc.version().startsWith("1.2")) { + if (sparkVersion < 130) { Method loadFiles = this.interpreter.getClass().getMethod("loadFiles", Settings.class); loadFil...
[SparkInterpreter->[getProgress->[getJobGroup],interpretInput->[toString,interpret],getSQLContext->[useHiveContext,getSparkContext],getProgressFromStage_1_0x->[getProgressFromStage_1_0x],getProgressFromStage_1_1x->[getProgressFromStage_1_1x],close->[close],cancel->[getJobGroup],open->[getDependencyResolver,getSQLContex...
Opens the compiler. create a new compiler and a pool for the compiler The following methods are used to provide the necessary functionality to display the result of a query. add jar and file if it is not in the current context.
should we make 130 a class constant?
@@ -901,5 +901,12 @@ namespace MonoGame.Tools.Pipeline } } } + + public bool CopyOrLink(string file, bool exists, out int def, out bool applyforall) + { + def = 2; + applyforall = true; + return true; + } } }
[MainView->[UpdateMenus->[UpdateRecentProjectList],TreeViewOnKeyDown->[TreeViewShowContextMenu]]]
ItemExistanceChanged method.
@cra0zy - So this is where someone would hook in the dialog for Windows? What is `def`? Can you rename that to something more obvious?
@@ -194,13 +194,6 @@ function grunion_message_bulk_spam() { echo '<div class="updated"><p>' . __( 'Feedback(s) marked as spam', 'jetpack' ) . '</p></div>'; } -// remove admin UI parts that we don't support in feedback management -add_action( 'admin_menu', 'grunion_admin_menu' ); -function grunion_admin_menu() { - ...
[grunion_delete_spam_feedbacks->[get_posts],grunion_ajax_shortcode_to_json->[get_attribute],grunion_ajax_spam->[get_results]]
This function is used to display a message in bulk when the user is editing a message in.
Removed this piece of code since it seemed obsolete. After loading this file, we hook again into `admin_menu` for registering the feedback menu and submenus.
@@ -126,8 +126,14 @@ static int template_private_test(void) BIGNUM *bn = NULL, *bn_res = NULL; int res = 0; - if (!TEST_ptr(bld) - || !TEST_true(OSSL_PARAM_BLD_push_uint(bld, "i", 6)) + if (!TEST_ptr(data1 = OPENSSL_secure_malloc(data1_size)) + || !TEST_ptr(bld = OSSL_PARAM_BLD_new()...
[int->[OSSL_PARAM_BLD_push_long,TEST_time_t_eq,TEST_long_eq,TEST_str_eq,OSSL_PARAM_get_ulong,OSSL_PARAM_get_double,BN_new,TEST_true,TEST_ptr,OSSL_PARAM_BLD_push_int32,OSSL_PARAM_get_utf8_string,OSSL_PARAM_BLD_free,OSSL_PARAM_BLD_push_time_t,OSSL_PARAM_BLD_push_double,TEST_int_eq,OSSL_PARAM_get_long,OSSL_PARAM_BLD_new,B...
test if template private parameters are available Check if parameter i and p are in the next block of chain. Checks if the current parameter p is in a chain of chains.
Should there be some CRYPTO_secure_allocated() calls to test that the relevant params `i` and `bignumber` are securely allocated?
@@ -27,6 +27,10 @@ module Gobierto config.i18n.default_locale = :es config.i18n.available_locales = [:es, :en, :ca] + # Custom I18n fallbacks + config.after_initialize do + I18n.fallbacks = {ca: [:ca, :es, :en], es: [:es, :ca, :en], en: [:en, :es, :ca]} + end config.generators do |g| ...
[Application->[queue_adapter,join,load_path,field_error_proc,root,merge!,time_zone,select,generators,autoload_paths,eager_load_paths,to_s,default_locale,directory?,each,test_framework,proc,chdir,available_locales,require_dependency],groups,require_relative,require,require_dependency]
The main entry point for the railtie application. This method is used to configure the available strategies.
Space inside { missing.<br>Space inside } missing.
@@ -406,7 +406,7 @@ crt_ctx_epi_abort(d_list_t *rlink, void *arg) wait = 0; } else { D_MUTEX_UNLOCK(&ctx->cc_mutex); - rc = crt_progress(ctx, 1, NULL, NULL); + rc = crt_progress(ctx, 1); D_MUTEX_LOCK(&ctx->cc_mutex); if (rc != 0 && rc != -DER_TIMEDOUT) { D_ERROR("crt_progress failed, rc %d.\...
[No CFG could be retrieved]
aborts all RPCs in the queue -DER_INVAL - DESTROY - 1 - 1 - 1 - 1 -.
copyright dates need to be updated
@@ -3099,6 +3099,11 @@ namespace System.Diagnostics.Tracing } } + // Scoping the call to GetFields to a local function to limit the linker suppression + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2070:UnrecognizedReflectionPattern", + ...
[No CFG could be retrieved]
Creates an EventMetadata object for the given EventSource. missing type in event source.
(nit) The `Justification` line should be indented one level to the right. (nit) "safe from linker" sounds a bit like the linker is dangerous. How about "Nested type members will be preserved by the ILLinker with the parent annotation" ?
@@ -191,11 +191,12 @@ def write_jpeg(input: torch.Tensor, filename: str, quality: int = 75): write_file(filename, output) -def decode_image(input: torch.Tensor) -> torch.Tensor: +def decode_image(input: torch.Tensor, channels: int = 0) -> torch.Tensor: """ Detects whether an image is a JPEG or PNG an...
[encode_png->[encode_png],write_png->[encode_png,write_file],read_image->[read_file,decode_image],write_file->[write_file],decode_png->[decode_png],decode_jpeg->[decode_jpeg],encode_jpeg->[encode_jpeg],decode_image->[decode_image],write_jpeg->[encode_jpeg,write_file],read_file->[read_file]]
Detects whether an image is a JPEG or PNG and performs the appropriate appropriate operation to decode.
On user-facing APIs where the value can be used either as channels or components, we name them channels.
@@ -16,7 +16,7 @@ module ProgramDecoratorCommon path = h.work_path(work) h.link_to(work.title, path, target: "_blank") when :started_at - send(field).to_time.strftime("%Y-%m-%d %H:%M") + send(field).to_time.strftime("%Y/%m/%d %H:%M") else send(field) ...
[to_values->[inject,send,work_path,find,work_episode_path,strftime,title_with_number,work,link_to,title,name],included,extend]
Returns a hash of allDIFF fields with a value of .
Do not use `to_time` on Date objects, because they know nothing about the time zone in use.
@@ -127,6 +127,8 @@ module View obsolete_schedule[first.obsolete_on] = Array(obsolete_schedule[first.obsolete_on]).append(name) end + show_obsolete_schedule = obsolete_schedule.any? { |key, _value| !key.nil? } + rows = @depot.upcoming.group_by(&:name).map do |name, trains| ...
[GameInfo->[render->[depot,h,empty?],game_info->[class,h],render_body->[concat,any?],discarded_trains->[h,price,format_currency,name,map],upcoming_trains->[h,names_to_prices,size,append,zero?,with_index,include?,format_currency,map,class,any?,join,first,each,ordinal,rusts_on,available_on,obsolete_on],phases->[h,contras...
Returns a Hash of all upcoming and obsolete records grouped by name. Returns a list of missing nodes if any of the train s events are available.
this should be show_obsolete_schedule = obsolete_schedule.keys.any?
@@ -696,7 +696,10 @@ public abstract class ComponentMessageProcessor<T extends ComponentModel> extend @Override public boolean isAsync() { - return ComponentMessageProcessor.this.isAsync(); + // If the operation is blocking we cannot guarantee that the + // processor switc...
[ComponentMessageProcessor->[buildTransactionConfig->[supportsTransactions],createExecutionContext->[createExecutionContext],onEvent->[process],getExecutionCallbackForPolicyAndOperationWithTarget->[complete->[complete],error->[error]],prepareAndExecuteOperation->[mapped,isTargetWithPolicies,executeOperation],setOperati...
Starts the inner flux. onProcessor - > innerProcessor.
would be better to keep this method as is and instead add an `isBlocking` method in this class and its interface, for consistency with the owner class.
@@ -1282,9 +1282,12 @@ bool Game::createSingleplayerServer(const std::string &map_dir, } if (bind_addr.isIPv6() && !g_settings->getBool("enable_ipv6")) { - *error_message = "Unable to listen on " + - bind_addr.serializeString() + - " because IPv6 is disabled"; + const char *s = gettext("Unable to listen o...
[No CFG could be retrieved]
Create a single - player server and a client. Reads the network configuration from the network and returns true if the connection is successful.
two duplicate lines
@@ -602,15 +602,14 @@ namespace System.Xml.Schema { _StateHistory.Push(); _StateHistory[_StateHistory.Length - 1] = _CurState; - _CurState = _NextState; + _CurState = _NextState!; } private void Pop() { - _CurState = (XdrEn...
[XdrBuilder->[XDR_EndAttribute->[Reset],GroupContent->[],XDR_InitGroup->[PushGroupInfo],Push->[Push],PushGroupInfo->[Copy,Push],XDR_EndGroup->[PopGroupInfo],PopGroupInfo->[Pop],SendValidationEvent->[SendValidationEvent],Pop->[Pop]]]
private private void Push - Stack - Stack - Stack.
NIT: `?` or `!` redundant
@@ -17,7 +17,7 @@ module View if @tile.lawson? || @tile.paths.empty? h(Part::TownDot, town: town, tile: @tile, region_use: @region_use, color: color_for(town)) else - h(Part::TownRect, town: town, region_use: @region_use, color: color_for(town)) + h(Part::TownRec...
[Towns->[color_for->[paths,town,class,find_index,any?,paths_for,map],render->[h,empty?,lawson?,color_for,map],needs,freeze],require]
Renders a color - based tag for the top - level tile.
don't need this
@@ -114,7 +114,9 @@ quiet = partial( dest='quiet', action='count', default=0, - help='Give less output.') + help=('Give less output. Option is additive, and can be used up to 3' + ' times (corresponding to WARNING, ERROR, and CRITICAL logging' + ' levels).') log = partial( ...
[only_binary->[Option,set,FormatControl],_handle_only_binary->[getattr,fmt_ctl_handle_mutual_exclude],exists_action->[Option],trusted_host->[Option],extra_index_url->[Option],make_option_group->[add_option,option,OptionGroup],allow_unsafe->[Option],constraints->[Option],check_install_build_global->[getname->[getattr],a...
Create a list of options for the given sequence number. Proxy server for a single connection.
You've got a syntax error here, a closing parenthesis is missing
@@ -301,10 +301,10 @@ public class OpenApiConnectorGenerator extends ConnectorGenerator { private static void addGlobalParameters(final Connector.Builder builder, final OpenApiModelInfo info) { switch (info.getApiVersion()) { case V2: - Oas20ConnectorGeneratorSupport.addGlobalP...
[OpenApiConnectorGenerator->[addGlobalParameters->[addGlobalParameters],determineConnectorName->[determineConnectorName],determineConnectorDescription->[determineConnectorDescription],configureConnector->[createDescriptor]]]
Adds the global parameters to the connector builder.
And these also, we could cache them in a field instead of instantiating them.
@@ -63,12 +63,10 @@ func CreateTxAndAttempt( ) *models.Tx { tx := NewTx(from, sentAt) if err := store.Save(tx); err != nil { - logger.Fatal(err) + logger.Error(err) } _, err := store.AddAttempt(tx, tx.EthTx(big.NewInt(1)), sentAt) - if err != nil { - logger.Fatal(err) - } + mustNotErr(err) return tx }
[EthTx,Save,NewTime,NewJob,AddAttempt,NewString,StringFrom,Unix,ParseNullableTime,BytesToHash,ToLower,Read,Get,BytesToAddress,Cron,Sprintf,Unmarshal,NewInt,String,Fatal,Parse]
NewJob creates a new models. Job from a given sequence number. NewEthAddress returns a new ethernet address based on the given parameters.
`logger.Error` doesn't exit the program, but continues running. Do we want that? `Fatal` does. A failure to save shouldn't continue running imo
@@ -84,9 +84,13 @@ public class CombatUnitAbility { @Builder.Default boolean returnFire = true; /** When should this unit commit suicide on offense */ - @Builder.Default Suicide suicideOnOffense = Suicide.NONE; + @Getter(value = AccessLevel.NONE) + @Builder.Default + Suicide suicideOnOffense = Suicide.NONE;...
[CombatUnitAbility->[CombatValueType->[CombatValueType]]]
The name of this unit ability that will be shown in the Battle UI. Checks if a given side is a side of the current CombatUnit.
Side-note, `Suicide` sounds like a value object, perhaps could be renamed to `SuicideCondition` or `UnitSuicideCondition`
@@ -48,6 +48,14 @@ function fontColor(props, isHovered?: boolean, isActionText?: boolean) { case KIND.negative: return props.$theme.colors.tagNegativeFontDisabled; case KIND.custom: + console.log( + props.$color, + props.$theme.colors.tagFontDisabledRampUnit, + c...
[No CFG could be retrieved]
Custom on - ramp color function Colors for tag - aligned solid - font tags.
need to remove this `console.log`
@@ -701,6 +701,11 @@ function createInjector(modulesToLoad, strictDi) { instanceInjector.strictDi = strictDi; forEach(runBlocks, function(fn) { if (fn) instanceInjector.invoke(fn); }); + instanceInjector.loadNewModules = function(mods) { + forEach(loadModules(mods), function(fn) { if (fn) instanceInjector.i...
[No CFG could be retrieved]
Register a service with the angular module. Provides a value provider instance that can be used to provide the name of the instance.
Worth putting this in a method to avoid duplicating it a few lines down?
@@ -164,11 +164,14 @@ public class GeoEnrichIP extends AbstractProcessor { final DatabaseReader dbReader = databaseReaderRef.get(); final String ipAttributeName = context.getProperty(IP_ADDRESS_ATTRIBUTE).evaluateAttributeExpressions(flowFile).getValue(); final String ipAttributeValue = flowF...
[GeoEnrichIP->[init->[add,unmodifiableList,unmodifiableSet],onScheduled->[getValue,build,getDuration,stop,set,info,File,StopWatch],onTrigger->[getValue,getByName,getLatitude,toString,warn,put,city,getDuration,putAllAttributes,isEmpty,valueOf,transfer,getAttribute,StopWatch,stop,getCode,getSubdivisions,getName,getIsoCod...
On trigger. region Flow File Implementation.
minor typo here, will fix while merging
@@ -543,9 +543,16 @@ class CPUCallConv(BaseCallConv): def _get_excinfo_argument(self, func): return func.args[1] - def call_function(self, builder, callee, resty, argtys, args): + def call_function(self, builder, callee, resty, argtys, args, + attrs=None): """ ...
[ErrorModel->[fp_zero_division->[return_user_exc]],CPUCallConv->[decorate_function->[get_arguments,_get_arg_packer],check_try_status->[_get_try_state],return_value->[_return_errcode_raw],get_function_type->[get_return_type,_get_arg_packer],call_function->[_get_return_status,_get_return_argument,_get_arg_packer],return_...
Get the excinfo argument from the function.
Just noticed this docstring is wrong!
@@ -244,7 +244,7 @@ final class PlatformDependent0 { public Object run() { try { Class<?> bitsClass = - Class.forName("java.nio.Bits", false, PlatformDependent.getSystemClassLoader()); + Class.fo...
[PlatformDependent0->[getLong->[getLong],equals->[getLong,getInt],getInt->[getInt],getContextClassLoader->[run->[getContextClassLoader],getContextClassLoader],getByte->[getByte],freeDirectBuffer->[freeDirectBuffer],getSystemClassLoader->[run->[getSystemClassLoader],getSystemClassLoader],putShort->[putShort],objectField...
This method is called when the system is running.
This fixed a cycle reference
@@ -68,10 +68,13 @@ public interface ComponentEntityMerger<EntityType extends ComponentEntity & Perm if (clientEntity.getBulletins().size() > MAX_BULLETINS_PER_COMPONENT) { clientEntity.setBulletins(clientEntity.getBulletins().subList(0, MAX_BULLETINS_PER_COMPONENT)); } + ...
[merge->[getValue,getBulletins,setBulletins,size,sort,getPermissions,add,getKey,mergeComponents,mergePermissions,getCanRead,mergeBulletins,forEach,setComponent,entrySet,subList]]
Merge the client entity with the given entity map.
I think we need to continue to set the component to null when `canRead` is false. It may have been changed to accommodate an earlier iteration of this PR.
@@ -0,0 +1,18 @@ +package com.baeldung.core.modifiers.otherpackage; + +import com.baeldung.core.modifiers.Person; + +public class Sword { + Person wielder; + String name; + + public Sword(String wielderName, int wielderAge, String swordName) { + + name = swordName; + + // The constructor Person(S...
[No CFG could be retrieved]
No Summary Found.
The Weapon example, along with Forge and Blacksmith is missing