patch
stringlengths
18
160k
callgraph
stringlengths
4
179k
summary
stringlengths
4
947
msg
stringlengths
6
3.42k
@@ -97,11 +97,15 @@ public class DefaultFileRegion extends AbstractReferenceCounted implements FileR @Override protected void deallocate() { try { - file.close(); + if (file != null) { + file.close(); + } } catch (IOException e) { ...
[DefaultFileRegion->[deallocate->[isWarnEnabled,warn,close],transferTo->[IllegalArgumentException,transferTo],NullPointerException,getInstance,IllegalArgumentException]]
Deallocate a from the file.
`file = null;` in the `finally` block is evaluated even when `file` is `null`. I would move the null-check out of the try block and return early when `file` is `null`.
@@ -3923,6 +3923,17 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv volPath = physicalDisk.getPath(); } + // check for disk activity, if detected we should exit because vm is running elsewhere + if (_diskActivityCheckEnabled && ph...
[LibvirtComputingResource->[getInterfaces->[getInterfaces],isSnapshotSupported->[executeBashScript],getNetworkStats->[networkUsage],doPingTest->[execute],cleanupVMNetworks->[getAllVifDrivers],cleanupNetworkElementCommand->[vifHotUnPlug,VifHotPlug,getBroadcastUriFromBridge],getVPCNetworkStats->[VPCNetworkUsage],can_brid...
Creates a VBD. Private method to find the matching device in the system. find and add the data disk get data store.
Wouldn't this block best be refactored into a separate method?
@@ -220,7 +220,7 @@ int MainWrappers<Scalar,LocalOrdinal,GlobalOrdinal,Node>::main_(Teuchos::Command tm = Teuchos::null; if (solverName == "Belos") { - auto tm2 = TimeMonitor(*TimeMonitor::getNewTimer("Maxwell: 2 - Build Belos solver etc")); + auto tm2 = TimeMonitor::getNewTimer("Maxwell: 2 - B...
[No CFG could be retrieved]
Maxwell add function. Turns a Belos operator into a Belos linear problem.
I don't think this would work like you think -- getNewTimer doesn't start the retrieved Teuchos::Time object, it just gets a pointer to it. The result is that you wouldn't end up timing the thing. You would just get a zero time.
@@ -724,7 +724,14 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito } /** - * @param array $packageNames array of package name => ConstraintInterface|null - if a constraint is provided, only packages matching it will be loaded + * @param array<string, ConstraintInte...
[ComposerRepository->[createPackages->[getRepoName,configurePackageTransportOptions,loadPackages],addPackage->[configurePackageTransportOptions],getPackageNames->[getPackages],initializePartialPackages->[loadRootServerFile],loadIncludes->[loadIncludes],loadRootServerFile->[getPackagesJsonUrl],loadProviderListings->[loa...
Loads packages asynchronously. Load packages from the repository. Returns an array of namesFound packages and metadataComplete when all promises are resolved.
this is `array{namesFound: array<string, true>, packages: array<string, BasePackage>}`
@@ -25,6 +25,17 @@ function getNewAudioOutputDevice(newDevices) { d.deviceId === selectedAudioOutputDeviceId)) { return 'default'; } + + const settings = APP.store.getState()['features/base/settings']; + const preferredAudioOutputDeviceId = settings.userSelectedAudioOutputDeviceId; + + ...
[No CFG could be retrieved]
Determines if currently selected audio output device should be changed after the list of available devices has been if returns the label of the first available device.
Shouldn't we include this logic to the logic above somehow?
@@ -72,4 +72,11 @@ public interface Pool<T> { */ int getAllocatedCount(); + /** + * Close the pool; returned items will be destroyed. + * @since 4.3.23 + */ + default void close() { + } + }
[No CFG could be retrieved]
Returns the number of allocated memory in the pool.
The `default` is not going to work for Java 6, but we may not just introduce this method into the `Pool` interface for backward bytecode compatibility.
@@ -0,0 +1,15 @@ +package org.baeldung.conditionalflow.step; + +import org.baeldung.conditionalflow.model.NumberInfo; +import org.springframework.batch.core.StepExecution; +import org.springframework.batch.item.ItemProcessor; + +public class NumberInfoClassifierWithDecider + implements ItemProcessor<NumberInfo, ...
[No CFG could be retrieved]
No Summary Found.
Formatting is off on this class
@@ -137,7 +137,12 @@ class GraphLock(object): total.extend(node.requires.values()) roots = set(self._nodes).difference(total) assert len(roots) == 1 - return self._nodes[roots.pop()] + root_node = self._nodes[roots.pop()] + if root_node.path: + return root_...
[GraphLockNode->[from_dict->[loads,GraphLockNode],as_dict->[dumps]],GraphLock->[from_dict->[GraphLock,from_dict],update_check_graph->[_closure_affected],__init__->[GraphLockNode],find_consumer_node->[get_node],as_dict->[as_dict]],GraphLockFile->[dumps->[dumps],loads->[loads,GraphLockFile],save->[save],load->[load]]]
obtain the root node in the graph that is not depended by anyone else.
Idem about `copy_clear_revs()`
@@ -17,7 +17,11 @@ _LOGGER = logging.getLogger(__name__) class ServiceBusSessionReceiver(ServiceBusReceiver, SessionReceiverMixin): """The ServiceBusSessionReceiver class defines a high level interface for - receiving messages from the Azure Service Bus Queue or Topic Subscription. + receiving messages fr...
[ServiceBusSessionReceiver->[__init__->[ServiceBusSession,super,_populate_session_attributes],from_connection_string->[super]],getLogger]
Creates a new ServiceBusSessionReceiver object that can be used to receive messages from the Service.
Are you getting tired of typing this yet? ;)
@@ -210,6 +210,17 @@ def message_about_scripts_not_on_PATH(scripts): else: msg_lines.append(last_line_fmt.format("these directories")) + # Add a note if any directory starts with ~ + warn_for_tilde = any([ + i[0] == "~" for i in os.environ.get("PATH", "").split(os.pathsep) if i + ]) + ...
[_raise_for_invalid_entrypoint->[MissingCallableSuffix],install_unpacked_wheel->[record_installed->[normpath],clobber->[record_installed],open_for_csv,root_is_purelib,message_about_scripts_not_on_PATH,sorted_outrows,clobber,get_entrypoints,PipScriptMaker,get_csv_rows_for_installed],Wheel->[get_formatted_file_tags->[for...
Determines if any scripts are not on PATH and format a warning. Returns a formatted multiline message of the last n - tuples in the CSV file.
You can drop the list: ``` warn_for_tilde = any( i[0] == "~" for i in os.environ.get("PATH", "").split(os.pathsep) if i )
@@ -23,6 +23,8 @@ import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.locks.Lock; +import com.google.common.collect.ImmutableList; +import lombok.extern.slf4j.Slf4j; import org.apache.hadoop.fs.FileAlreadyExistsException; import org.apache.hadoop.fs.FileSystem; ...
[ParallelRunner->[deletePath->[call->[deletePath]],renamePath->[call->[renamePath]],movePath->[call->[movePath]]]]
Creates a new instance of a n - ary type in a thread pool. This method is called to perform serialization of a single .
Order of imports.
@@ -165,8 +165,8 @@ public class PCollectionViews { throw new RuntimeException("Unexpected IOException: ", e); } } + return defaultValue; } - return defaultValue; } @Override
[PCollectionViews->[PCollectionViewBase->[fromIterableInternal->[fromElements],toString->[toString],equals->[getTagInternal,equals]],SingletonPCollectionView->[fromElements->[getDefaultValue]]]]
Returns the default value of the PCollection.
I think the prior code is also fine, as it is lazy init. But it makes no real difference so this is fine too.
@@ -65,7 +65,7 @@ func testTLSRequest(t *testing.T, testURL string, extraConfig map[string]interfa jobs, endpoints, err := create("tls", config) require.NoError(t, err) - job := jobs[0] + job := monitors.WrapCommon(jobs, "tls", "", "http")[0] event := &beat.Event{} _, err = job(event)
[CertToTempFile,Compose,HelloWorldHandler,AvailableTCP4Port,NewConfigFrom,Test,RespondingTCPChecks,NewUnstartedServer,Close,Hostname,StartTLS,URLFields,ReadOpen,ParseCertificate,MustCompile,NewTLSServer,BuildNameToCertificate,TLSChecks,Join,Equal,BaseChecks,Name,Strict,Remove,ErrorChecks,SizedResponseHandler,NoError,Ne...
testRequest tests the given request. testRequest returns server event and minimum response.
Ideally we wouldn't have this in tests, and the call to `create` above would be a different call that would do the wrapping. Unfortunately `newMonitor`, where this happens now would need a refactor for this to be clean. This PR has enough scope, so I'd like to defer that refactor.
@@ -173,7 +173,7 @@ func DeleteIssueLabel(ctx *context.APIContext) { label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { - if models.IsErrLabelNotExist(err) { + if models.IsErrRepoLabelNotExist(err) { ctx.Error(http.StatusUnprocessableEntity, "", err) }...
[ReplaceLabels,Status,ClearLabels,IsErrIssueNotExist,GetIssueByIndex,Error,ParamsInt64,ToLabelList,CanWriteIssuesOrPulls,NotFound,GetLabelInRepoByID,IsErrLabelNotExist,GetLabelsInRepoByIDs,LoadAttributes,GetLabelsByIssueID,RemoveLabel,AddLabels,JSON]
Remove a label from an issue Replace an issue s labels.
I think org labels should be considered here as well?
@@ -653,10 +653,9 @@ public class IsmReaderImpl<V> extends IsmReader<V> { try (Closeable readerCloser = readCounter.enter()) { int shardId = coder.encodeAndHash( - ImmutableList.builder() - .addAll(keyComponents) - .addAll(additionalKeyCo...
[IsmReaderImpl->[ShardAwareIsmPrefixReaderIterator->[getLast->[initializeForKeyedRead,getBlock],start->[start],getCurrent->[getCurrent],close->[close],advance->[start,advance],iterator],WithinShardIsmReaderIterator->[start->[advance],getCurrent->[get]],WithinShardIsmPrefixReaderIterator->[start->[advance],advance->[fet...
Get a windowed value from the cache.
Why is this change necessary?
@@ -33,6 +33,7 @@ class ComputeDragProcess(KratosMultiphysics.Process): "model_part_name" : "", "interval" : [0.0, 1e30], "write_drag_output_file" : true, + "output_folder" : "TimeBasedAsciiResults", ...
[ComputeDragProcess->[ExecuteFinalize->[GetCommunicator,close],ExecuteFinalizeSolutionStep->[write,_PrintToScreen,str,format,GetCommunicator,_GetCorrespondingDragForce],_GetFileHeader->[Exception],_PrintToScreen->[Exception],_GetCorrespondingDragForce->[Exception],ExecuteInitialize->[_GetFileHeader,TimeBasedAsciiFileWr...
Initialize the object with the given model and parameters.
why not "DragResults"?
@@ -11,7 +11,9 @@ def read_invalid_file(): hdfs_path = 'hdfs:///user/jenkins/tests/invalid' h2o.import_file(hdfs_path) assert False, "Read of file, which does not exists was sucessfull. This is impossible" - except ValueError: + except ValueError as ve: + print(ve) + assert str(ve) == "...
[read_invalid_file->[import_file],standalone_test,read_invalid_file,insert,join]
Read invalid file.
I guess the // gets removed on server side, just weird to have this server processing necessary to get the test passing.
@@ -117,6 +117,10 @@ namespace System.Xml.Schema Write(writer, null); } + [DynamicDependency(TrimmerConstants.PublicMembers, typeof(XmlSchema))] + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", + Justification = "Supressing warning...
[XmlSchema->[GetExternalSchemasList->[GetExternalSchemasList],Read->[Read,XmlSchema],CompileSchemaInSet->[Compile],Write->[Write]]]
Writes this object to the given writer.
This is not enough unfortunately. Serialization is recursive - the dynamic dependency you added will only work on `XmlSchema` itself, not any of the other types the serializer will get to by recursively serialization data on the schema. @sbomer and/or @LakshanF are working on adding some support for `XmlSerializer` bas...
@@ -31,7 +31,11 @@ public class JacksonMessageBodyReader extends AbstractJsonMessageBodyReader { @Override public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOExc...
[JacksonMessageBodyReader->[doReadFrom->[readValue],readFrom->[abortWith,build,IllegalStateException,getInputStream,doReadFrom],reader]]
Override readFrom to handle a missing entity.
Looks like the original exception is lost here
@@ -581,7 +581,6 @@ public class QueueTest { * Make sure that the running build actually carries an credential. */ @Test public void accessControl() throws Exception { - r.configureUserRealm(); FreeStyleProject p = r.createFreeStyleProject(); QueueItemAuthenticatorConfiguration...
[QueueTest->[queueApiOutputShouldBeFilteredByUserPermission->[equals],TestTask->[hashCode->[hashCode],createExecutable->[run->[doRun]]],pendingsConsistenceAfterErrorDuringMaintain->[equals,getName,getDisplayName],testBlockBuildWhenUpstreamBuildingLock->[save],permissionSensitiveSlaveAllocations->[getACL->[getACL]],shou...
Test whether Jenkins has access control.
These code was no-op because it is ignoring the return value.
@@ -66,6 +66,15 @@ export function isCanary(win) { return !!(win.AMP_CONFIG && win.AMP_CONFIG.canary); } +/** + * Returns runtime type, e.g., canary, control, or production. + * @param {!Window} win + * @return {string} + */ +export function getRuntimeType(win) { + return (win.AMP_CONFIG && win.AMP_CONFIG.type) ...
[No CFG could be retrieved]
Enables the experiment from a given token. - Encodes the token and returns a Promise.
I'm adding @erwinmombay and @rsimha-amp for review since they own this overall. My recommendation, however, is to call it something other than "runtime type" - we already have that concept for "single doc" vs "shadow mode" vs "in-a-box". Maybe "binary type"? Or "coarse version"? Or???
@@ -245,13 +245,16 @@ namespace System.IO } } - private unsafe void ParseEventBufferAndNotifyForEach(byte[] buffer) + private unsafe void ParseEventBufferAndNotifyForEach(byte[] buffer, uint numBytes) { Debug.Assert(buffer != null); Debug.Assert(b...
[FileSystemWatcher->[Monitor->[IsHandleInvalid],ReadDirectoryChangesCallback->[IsHandleInvalid,Monitor]]]
This is the callback which is called when a file or directory change is received. This method is called when a file action is about to be handled. It asserts that no This method is called when a file or directory change has been detected.
This should be stronger than an Assert. Since we're guarding against Windows giving us garbage we should guard against this being invalid as well. We should take min of numBytes and buffer.Length below.
@@ -3,7 +3,7 @@ var $controllerMinErr = minErr('$controller'); -var CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/; +var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; function identifierForController(controller, ident) { if (ident && isString(ident)) return ident; if (isString(controller)) {
[No CFG could be retrieved]
Provides a controller provider for the action. A string which is used to retrieve the controller constructor.
Perhaps only allow `$` at the beginning or is that being too strict?
@@ -410,6 +410,7 @@ define([ */ CesiumMath.toRadians = function(degrees) { //>>includeStart('debug', pragmas.debug); + Check.defined('degrees', degrees); if (!defined(degrees)) { throw new DeveloperError('degrees is required.'); }
[No CFG could be retrieved]
Integrity number of radians in degrees and arc second. This function converts a negative value to a positive value in the range [ - Math. PI.
remove this developer error
@@ -43,16 +43,13 @@ public class FilebasedSchemaProvider extends SchemaProvider { private static final String TARGET_SCHEMA_FILE_PROP = "hoodie.deltastreamer.schemaprovider.target.schema.file"; } - private final FileSystem fs; - private final Schema sourceSchema; private Schema targetSchema; pub...
[FilebasedSchemaProvider->[getTargetSchema->[getTargetSchema]]]
Provides a schema provider that reads off files on DFS. Returns the target schema if any.
Will we always reuse the config option from `deltastreamer`? Let us think about it with more insight?
@@ -33,7 +33,7 @@ class PodcastTag < LiquidTagBase end def render(_context) - ActionController::Base.new.render_to_string( + ApplicationController.render( partial: PARTIAL, locals: { episode: @episode,
[PodcastTag->[render->[render_to_string],parse_link->[gsub,count],fetch_podcast->[podcast_id,parse_link,find_by,last,id],raise_error->[raise],initialize->[overcast_url,android_url,new,itunes_url,to_sym,feed_url,cloudinary,fetch_podcast],attr_reader,freeze,include],register_tag]
Renders a with a partial and locals.
Had to make this change so that it can access `ApplicationHelper`. I'm going to make this change to the rest of liquid tag in a different PR.
@@ -106,6 +106,10 @@ export class AmpImg extends BaseElement { if (!IS_ESM) { guaranteeSrcForSrcsetUnsupportedBrowsers(this.img_); } + + if (AmpImg.V1() && !this.img_.complete) { + this.onReadyState(ReadyState.LOADING); + } } }
[No CFG could be retrieved]
This method is called when the element has a size attribute and has a width attribute. Create the actual image element and set up instance variables.
nonblocking nit: I explained the logic more fully in the design doc, but I think a slightly better `setReadyState`
@@ -0,0 +1,18 @@ +/* +Copyright (c) 2018 Uber Technologies, Inc. + +This source code is licensed under the MIT license found in the +LICENSE file in the root directory of this source tree. +*/ +// @flow +export {default as Slider} from './slider'; +export {default as StatefulSlider} from './stateful-slider'; +export {d...
[No CFG could be retrieved]
No Summary Found.
`StyledTickBar` was added in the RFC but is not exported here
@@ -1206,6 +1206,7 @@ known_config_types = ( 'MNE_SKIP_TESTING_DATASET_TESTS', 'MNE_STIM_CHANNEL', 'MNE_USE_CUDA', + 'MNE_TESTING', 'SUBJECTS_DIR', )
[set_config->[get_config_path,warn,_load_config],get_config->[get_config_path,_load_config],estimate_rank->[warn],object_diff->[_sort_keys,object_diff],_load_config->[warn],_get_stim_channel->[get_config],deprecated->[_decorate_class->[deprecation_wrapped->[warn]],_decorate_fun->[deprecation_wrapped->[warn]]],_get_ftp-...
This function is used to configure memmap of large arrays. Load a MNE - Python config file and return a dictionary.
We have others of the form `MNE_SKIP_*`, so maybe `MNE_SKIP_FLASH_CALL` or something would be better. Although in this case, we want the default behavior when running `nosetests mne/tests/test_bem.py` to skip the FreeSurfer call, since it takes forever. Your current code will still make the call to FreeSurfer by defaul...
@@ -1269,3 +1269,8 @@ func templateSafeString(value string) error { _, err := strconv.Unquote(`"` + value + `"`) return err } + +func isPem(data []byte) bool { + block, _ := pem.Decode(data) + return block != nil +}
[loadIngresses->[Itoa,Join,GetService,Warn,shouldProcessIngress,HasPrefix,GetIngresses,Sprintf,FormatInt,Warnf,JoinHostPort,updateIngressStatus,Errorf,GetEndpoints,getWeight,addGlobalBackend,Debugf],Init->[Init],loadConfig->[Error,GetConfiguration],newK8sClient->[Infof,Sprintf,Parse,Errorf,Getenv],updateIngressStatus->...
Get the id of the node.
since according to RFC 7468 PEM blocks must begin with `-----BEGIN`, could you not first do a comparison to the first bytes in the slice to see if they contain a valid header, and fail fast without having to decode the whole dataset first?
@@ -224,11 +224,11 @@ if ($device['os'] === 'f5' && (version_compare($device['version'], '11.2.0', '>= } } -if ($config['enable_ports_etherlike']) { - echo 'dot3Stats '; - $port_stats = snmpwalk_cache_oid($device, 'dot3StatsEntry', $port_stats, 'EtherLike-MIB'); -} elseif ($device['os'] != 'asa') { +if ($...
[addDataset]
Get the network - specific information for a given device. ADSL - LINE - MIB.
We don't use any of this table.
@@ -286,11 +286,13 @@ seeder.create_if_none(Broadcast) do } broadcast_messages.each do |type, message| + broadcastable = WelcomeNotification.create + Broadcast.create!( title: "Welcome Notification: #{type}", processed_html: message, - type_of: "Welcome", active: true, + b...
[Seeder->[create_if_none->[none?,pluralize,puts,join]],email,create_with_users,sentence,create,new,max,bs,slug,to_a,current,at,create!,join,first,name,order,city,rand,freeze,hex_color,quote,chomp,concat,perform_async,paragraph_by_chars,username,last,company,sample,word,to_s,logo,with_index,times,paragraph,url,take,prod...
You can start a new tag page with your content. A function to create a welcome thread from a specific neccesary object.
any reason not to use `create!` here? I suspect if you _did_ use it here, then this would fail, since the `WelcomeNotification` would want/need the `Broadcast` to exist before the `WelcomeNotification` was created
@@ -763,6 +763,13 @@ def plot_trans(info, trans='auto', subject=None, subjects_dir=None, opacity=alphas[key], figure=fig) if key != 'helmet': surface.actor.property.backface_culling = True + if brain and 'lh' not in surfs: # one layer sphere + ...
[_plot_mpl_stc->[_handle_time,_limits_to_control_points,_smooth_plot],plot_source_estimates->[_plot_mpl_stc,_limits_to_control_points,_handle_time],_sensor_shape->[_make_tris_fan],_dipole_changed->[_plot_dipole],plot_trans->[_fiducial_coords,_create_mesh_surf]]
Plots the head sensor and source space alignment in 3D. Plot a single - part of a sequence of CNA - specific objects. Missing nanomagical index. Return a object if the source spaces have a non - zero n - node cycles.
You aren't using the standard system here -- you should apply `head_trans` here (with no conditional). The current code won't work, for example, when the user plots in the MEG device coord frame.
@@ -410,8 +410,12 @@ zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) &child, &children); if (children == 0) { - char *path = zpool_vdev_name(g_zfs, zhp, nvroot, B_FALSE); - fnvlist_add_boolean(res, path); + char *path = zpool_vdev_name(g_zfs, zhp, nvroot, + VDEV_NAME_PATH); ...
[zpool_do_clear->[usage],zpool_do_checkpoint->[usage],list_callback->[print_list_stats],zpool_do_detach->[usage],zpool_do_reopen->[usage],zpool_do_iostat->[print_cmd_columns,usage],zpool_do_split->[usage],zpool_do_add->[usage],zpool_do_create->[usage],zpool_do_online->[usage],zpool_do_resilver->[usage],zpool_do_export-...
collects all leaves of the node in the zpool.
I think it is good that we are changing this function to not include indirect vdevs, at the same time I'm thinking if that's something that we should explicitly test though. Just thinking out loud.
@@ -727,7 +727,12 @@ function conversation_fetch_comments($thread_items, $pinned) { && ($row['thr-parent'] == $row['parent-uri']) && ($row['received'] > $received) && Contact::isSharing($row['author-id'], $row['uid'])) { $direction = ['direction' => 3, 'title' => DI::l10n()->t('%s reshared this.', $row['aut...
[localize_item->[t,match,attributes],conversation_fetch_comments->[t,get],item_photo_menu->[t],builtin_activity_puller->[match],conv_get_blocklist->[get],conv_sort->[get],conversation_add_children->[get],format_like->[t],visible_activity->[match,isHidden],status_editor->[t,getQueryString,get],conversation->[determineCa...
Fetch comments from a conversation return array of comments.
The href value must be HTML encoded as well.
@@ -133,8 +133,7 @@ class GUFunc(object): # at this point we know the gufunc is a dynamic one ewise = self._get_ewise_dtypes(args) if not (self.ufunc and ufunc_find_matching_loop(self.ufunc, ewise)): - self._is_dynamic = True sig = self._get_signature(*args) ...
[GUFunc->[__call__->[_num_args_match,_get_signature,build_ufunc,add,_get_ewise_dtypes],_get_signature->[_get_ewise_dtypes],build_ufunc->[build_ufunc],add->[add]]]
Call the underlying gufunc with the given arguments.
This is odd. Is this fixing an oversight unrelated to kwarg processing?
@@ -1412,7 +1412,7 @@ Generator.prototype.generateKeyStore = function() { `-dname "CN=Java Hipster, OU=Development, O=${this.packageName}, L=, ST=, C="` , function(code) { if (code !== 0) { - parent.env.error(chalk.red(`\nFailed to create a KeyStore with \'keytool\'`), ...
[No CFG could be retrieved]
Generates a new KeyStore. ██████ ██║ ██� �═╝ �═�.
we should have used `parent.error` here without needing to use chalk here. could you plz change it as part of this PR
@@ -19,11 +19,8 @@ use Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface; use Sulu\Bundle\MediaBundle\Media\Exception\CollectionNotFoundException; use Sulu\Bundle\MediaBundle\Media\Exception\CollectionTypeNotFoundException; use Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface; -use Sulu\Compo...
[DefaultCollectionManager->[modifyCollection->[getById]]]
<?php Create a new object from a non - empty array. Provides access to the object manager and the user repository.
Would it be a lot of work to rename this to just to `CollectionManager`? We never use this Default-prefix anywhere else...
@@ -77,14 +77,16 @@ func (o *CreateRouteSubcommandOptions) Complete(f kcmdutil.Factory, cmd *cobra.C return err } - o.KubeClient, err = f.ClientSet() + clientConfig, err := f.ToRESTConfig() if err != nil { return err } - clientConfig, err := f.ToRESTConfig() + + o.CoreClient, err = corev1client.NewForConf...
[Complete->[ToRESTConfig,GetDryRunFlag,ToRawKubeConfigLoader,NewForConfig,ToRESTMapper,Namespace,ClientSet,ToPrinter,Complete],DefaultSubCommandRun,Sprintf,LongDesc,Errorf,WithTypeSetter,AddCommand,NewPrintFlags]
Complete completes the command line options for CreateRouteSubcommand.
How about using more narrow client? I'm shooting core (without looking at code), which should suffice here.
@@ -432,7 +432,7 @@ func hasOrgVisible(e Engine, org *User, user *User) bool { return true } - if org.Visibility == structs.VisibleTypePrivate && !org.isUserPartOfOrg(e, user.ID) { + if org.IsOrganization() && (org.Visibility == structs.VisibleTypePrivate || user.IsRestricted) && !org.isUserPartOfOrg(e, user.ID)...
[RepoIDs->[cond],MirrorRepos->[MirrorRepoIDs],CountRepos->[cond],accessibleReposEnv->[getUserTeamIDs],GetUserTeamIDs->[getUserTeamIDs],MirrorRepoIDs->[cond],GetTeams->[getTeams],GetUserTeams->[getUserTeams],GetTeam->[getTeam],getOwnerTeam->[getTeam],GetOwnerTeam->[getOwnerTeam],Repos->[RepoIDs],RemoveOrgRepo->[removeOr...
GetOrgByName returns organization by given name. Delete deletes the user and unit if it exists.
Why is `org.IsOrganization()` needed?
@@ -944,6 +944,10 @@ public class ExpressionAnalyzer windowFunctions.add(NodeRef.of(node)); } + if (node.isDistinct() && extractAggregateFunctions(List.of(node), metadata).isEmpty()) { + throw semanticException(NOT_SUPPORTED, node, "DISTINCT is not supported for...
[ExpressionAnalyzer->[analyzeExpressions->[getTypeOnlyCoercions,getSubqueryInPredicates,getScalarSubqueries,getWindowFunctions,analyze,getExpressionTypes,getExpressionCoercions,getExistsSubqueries,getQuantifiedComparisons,getColumnReferences],Context->[getFunctionInputTypes->[isExpectingLambda],notInLambda->[Context],i...
Determines if a function call has a window function or not. Resolves a function call node and checks if it can be found. DISTINCT can only be applied to comparable types.
The error should be `FUNCTION_NOT_AGGREGATE` instead of `NOT_SUPPORTED`
@@ -823,7 +823,7 @@ function photos_post(App $a) { $limit = service_class_fetch($a->data['user']['uid'],'photo_upload_limit'); if ($limit) { - $r = q("select sum(octet_length(data)) as total from photo where uid = %d and scale = 0 and album != 'Contact Photos' ", + $r = q("SELECT SUM(OCTET_LENGTH(`data`)) AS `t...
[photos_content->[set_pager_itemspage,set_pager_total],photos_post->[scaleImage,getExt,getWidth,rotate,getHeight,get_hostname,orient,imageString,store,is_valid]]
post a photo to the current user This function is called by the page_setup_photo_callback function. It checks if This function is used to delete a photo album and all its photos. It will also check remove the associated photos and remove the associated item This function is called by the administration functions to upd...
Standards: Can you please add a space after commas?
@@ -82,14 +82,15 @@ public class DbTaskStorage implements TaskStorage { handle.createStatement( String.format( - "INSERT INTO %s (id, created_date, payload, status_code, status_payload) VALUES (:id, :created_date, :payload, :status_code, :status_payloa...
[DbTaskStorage->[addAuditLog->[withHandle],getRunningTaskIds->[withHandle],getAuditLogs->[withHandle],removeLock->[withHandle],setStatus->[withHandle],getStatus->[withHandle],addLock->[withHandle],getTask->[withHandle],getLocksWithIds->[withHandle]]]
Inserts a new task in the task table.
"runnable" and "active" don't always mean the same thing to me (runnable means it could be run but isn't necessarily running. active often means that it is actively running). Is there more explanation of the semantics/a different (and hopefully better) set of namings that could convey what the state is?
@@ -0,0 +1,16 @@ +package io.quarkus.arc.deployment; + +import io.quarkus.runtime.annotations.ConfigGroup; +import io.quarkus.runtime.annotations.ConfigItem; + +@ConfigGroup +public class ArcTestConfig { + + /** + * If set to true then disable {@code StartupEvent} and {@code ShutdownEvent} observers declared on ...
[No CFG could be retrieved]
No Summary Found.
I am wondering if it makes sense to disable the `ShutdownEvent` as well
@@ -278,10 +278,17 @@ if ( ! class_exists( 'Jetpack_Simple_Payments_Widget' ) ) { $errors->add( 'post_title', __( "People need to know what they're paying for! Please add a brief title.", 'jetpack' ) ); } - if ( empty( $params['price'] ) || floatval( $params['price'] ) <= 0 ) { + if ( empty( $params['pri...
[Jetpack_Simple_Payments_Widget->[form->[defaults],widget->[defaults],get_product_from_post->[defaults],update->[defaults,get_product_from_post,get_latest_field_value]]]
Validates the ajax request parameters.
Is there a reason why we're using `strcmp` instead of `===`?
@@ -409,17 +409,7 @@ public class MetadataInfo implements Serializable { } public String toDescString() { - return this.getMatchKey() + getMethodSignaturesString() + new TreeMap<>(getParams()); - } - - private String getMethodSignaturesString() { - SortedSet<Strin...
[MetadataInfo->[ServiceInfo->[toDescString->[getParams,getMatchKey],equals->[equals,getName,getProtocol,getVersion,getGroup],getMethodSignaturesString->[toString],hashCode->[getProtocol,getName,getVersion,getGroup],getMethodParameter->[getMethodParameter],hasMethodParameter->[getMethodParameter],getParameters,getParame...
This method returns a String that can be used to describe this consumer.
The following two parts have the same meaning `name + group + version + path + protocol` `getServiceKey()`
@@ -362,14 +362,14 @@ public class LocalExchange bufferCount = defaultConcurrency; checkArgument(partitionChannels.isEmpty(), "Arbitrary exchange must not have partition channels"); } - else if (partitioning.equals(FIXED_HASH_DISTRIBUTION)) { - bufferCount = defaultC...
[LocalExchange->[LocalExchangeFactory->[getLocalExchange->[LocalExchange]],getBufferedBytes->[getBufferedBytes],LocalExchangeSinkFactory->[createSink->[createSink],close->[sinkFactoryClosed],duplicate->[createSinkFactory],noMoreSinkFactories->[noMoreSinkFactories]]]]
Compute the number of buffers to be used for the given partitioning.
nit: again is moving out of here and after FIXED_PASSTHROUGH_DISTRIBUTION case intentional?
@@ -463,6 +463,7 @@ public class PlatformLevel4 extends PlatformLevel { org.sonar.server.rule.ws.ShowAction.class, org.sonar.server.rule.ws.CreateAction.class, org.sonar.server.rule.ws.DeleteAction.class, + org.sonar.server.rule.ws.ListAction.class, TagsAction.class, RuleMapping....
[PlatformLevel4->[configureLevel->[add,newMetadata,get,addAll],start->[start,getContainer,getComponentByType,installExtensions]]]
Configures the level. This is a private method that can be called by the server side to provide a list of This method is called from the server side of the WsServerFactory. It is called by This method is called by the server code to register a bunch of actions that are not part This is a public method that can be acces...
it would be nice to put the rule actions in a module
@@ -8,8 +8,8 @@ describe Encryption::Encryptors::AttributeEncryptor do before do allow(AppConfig.env).to receive(:attribute_encryption_key).and_return(current_key) - allow(AppConfig.env).to receive(:attribute_encryption_key_queue).and_return( - [{ key: retired_key, cost: retired_cost }].to_json, + ...
[to,context,let,to_not,describe,decrypt,to_json,before,encrypt,eq,it,require,raise_error,and_return]
A basic encryption algorithm that uses a single key to encrypt some text. returns true if old key used to decrypt and we turn on new encryption.
should we set `options: { symbolize_names: true }` on this one?
@@ -16,6 +16,10 @@ class WPCOM_REST_API_V2_Endpoint_Podcast_Player extends WP_REST_Controller { * Constructor. */ public function __construct() { + if ( ! class_exists( 'Jetpack_Podcast_Helper' ) ) { + jetpack_require_lib( 'class-jetpack-podcast-helper' ); + } + $this->namespace = 'wpcom/v2'; $this->r...
[WPCOM_REST_API_V2_Endpoint_Podcast_Player->[get_player_data->[get_player_data]]]
Initialize the object.
Just curious. Why did you remove checking the class existence?
@@ -56,7 +56,7 @@ def test_user_agent(): def test_request_url(authority): """the credential should accept an authority, with or without scheme, as an argument or environment variable""" - tenant_id = "expected_tenant" + tenant_id = "expected-tenant" access_token = "***" parsed_authority = urlpar...
[test_request_url->[mock_send->[startswith,urlparse,mock_response],get_token,VisualStudioCodeCredential,dict,patch,Mock,urlparse],test_policies_configurable->[send->[build_aad_response,mock_response],get_token,Mock,VisualStudioCodeCredential,patch],test_credential_unavailable_error->[get_token,raises,VisualStudioCodeCr...
test_request_url - test that the request URL is correct.
Does the constructor for `VisualStudioCodeCredential` need to validate the tenant ID as well, since it accepts a `tenant_id` keyword argument?
@@ -69,14 +69,14 @@ public class JdkVersionUtilsTestCase extends AbstractMuleTestCase assertTrue(JdkVersionUtils.isSupportedJdkVersion()); setJdkVersion("1.7"); assertTrue(JdkVersionUtils.isSupportedJdkVersion()); + setJdkVersion("1.8"); + assertTrue(JdkVersionUtils.isSupportedJdkVersion()); //not...
[JdkVersionUtilsTestCase->[testRecommendedJdkVersion->[setJdkVersion],testValidateJdk5->[setJdkVersion],testValidateJdk->[setJdkVersion],testValidateJdk8->[setJdkVersion],testUndefinedJdkPreferences->[setJdkVersion],setJdkPreferences->[setManifest],testIsSupportedJdkVersion->[setJdkVersion]]]
Test if the specified JDK versions are supported.
this belongs in another PR
@@ -1339,12 +1339,12 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', "//]]>\n" . "</script>"; } - echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link; - echo '</div>'; + $retval .= $edit_link . $explain_l...
[PMA_showMessage->[getLevel,addMessage,display],PMA_getImage->[getPath],PMA_ajaxResponse->[getDisplay],PMA_selectUploadFile->[display],PMA_getSupportedDatatypes->[getTypeDescription,getColumns],PMA_showHint->[getLevel,getHash],PMA_getFunctionsForField->[getTypeClass,getAllFunctions,getFunctions]]
Display a message in the browser Checks if a node is missing a node and if so displays it parse the SQL query and return the base query of a node that can be used to display appends limit clause to the query base and appends limit clause to the query base Basic url query part of a node - type query Generates a link to ...
Reverted. Same for the above one.
@@ -339,6 +339,13 @@ func (m *MetricSet) Cleanup() { m.log.Warnf("Failed to remove KProbes on exit: %v", err) } } + if m.mountedFS != nil { + if err := m.mountedFS.unmount(); err != nil { + m.log.Errorf("Failed to umount %s: %v", m.mountedFS, err) + } else { + m.log.Debugf("Unmounted %s", m.mountedFS) + ...
[Cleanup->[Close,UninstallIf,Warnf],clockSyncLoop->[NewTicker,Stop],isKernelFunctionAvailable->[UninstallInstalled,Has,Install,Count],Run->[CreateProcess,Warn,Warnf,Wrap,Info,Done,Atoi,LostC,C,Error,clockSyncLoop,Errorf,Processes,Debug,AddUint64,Cleanup,Infof,User,Update,ErrC,String,Run],Setup->[WithTID,Wrap,WithBuffer...
Cleanup cleans up the metric set after the process exits.
If another application starts using kprobes after Auditbeat mounts this will it unmount? On one hand it's good to clean up something Auditbeat mounts, on the other hand we can't know if anything else is using it after Auditbeat mounts it. Not requesting any change here.
@@ -275,7 +275,14 @@ func (sg *stepGenerator) GenerateSteps(event RegisterResourceEvent) ([]Step, *re // Determine whether the change resulted in a diff. d, diffErr := sg.diff(urn, old.ID, oldInputs, oldOutputs, inputs, prov, allowUnknowns) if diffErr != nil { - return nil, result.FromError(diffErr) + ...
[GenerateDeletes->[V,Infof],GenerateSteps->[Analyze,GetProvider,Diag,ParseReference,DependingOn,Analyzer,Errorf,Assert,Olds,issueCheckErrors,diff,IsProviderType,Infof,V,Bail,generateURN,GetAnalyzeResourceFailureError,GetDuplicateResourceURNError,FromError,Replace,Check,NewState,Goal],GenerateReadSteps->[ID,Infof,Provid...
GenerateSteps generates the necessary steps for a checkpoint Check if a resource has a provider reference and if so return it. This function is called by the engine to analyze a resource and perform the necessary actions.
We have the URN of the provider from the provider reference, right? can we issue the warning for that URN and not this resource? I think it would make more sense for this message to be attached to the provider since the message directly pertains to it.
@@ -83,7 +83,10 @@ class PkgConfigGenerator(Generator): ["-D%s" % d for d in cpp_info.defines]])) if cpp_info.public_deps: - public_deps = " ".join(cpp_info.public_deps) + pkg_config_names = [] + for public_dep in cpp_info.public_deps: + pkg_confi...
[PkgConfigGenerator->[content->[single_pc_file_contents,lower],compiler->[get_safe],single_pc_file_contents->[get_safe,format_frameworks,append,_concat_if_not_empty,extend,format_framework_paths,replace,join,_generate_dir_lines,rpath_flags]],_concat_if_not_empty->[strip,join],_generate_dir_lines->[relpath,append,starts...
Generate a single PC file. Returns a string representation of the .
I think that this will break previous behavior.
@@ -1248,6 +1248,13 @@ namespace System.Security.Cryptography.X509Certificates.Tests.RevocationTests chain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot; chain.ChainPolicy.VerificationFlags |= X509VerificationFlags.IgnoreCertificateAuthorityRevocationUnknown; + ...
[DynamicRevocationTests->[BuildPrivatePki->[BuildPrivatePki]]]
RunWithInconclusiveIntermediateRevocation.
I believe the PartialChain part is out of date.
@@ -74,12 +74,12 @@ public class ObjectDecoder extends LengthFieldBasedFrameDecoder { * if the length of the received object is greater * than this value, {@link StreamCorruptedException} * will be raised. - * @param classLoader ...
[ObjectDecoder->[decode->[decode,readObject],extractFrame->[slice]]]
Decodes a sequence number from a channel buffer.
Could we keep this constructor? It could simply call `this(maxObjectSize, ClassResolvers.weakCachingResolver(classLoader))`. And then let's backport it to 3.2. I'm tempted to include this in 3.2.7. :-) Thanks a lot for a quality patch!
@@ -613,7 +613,7 @@ public class DefaultJobBundleFactory implements JobBundleFactory { // These will be closed in the reverse creation order: try (AutoCloseable envCloser = environment; AutoCloseable provisioningServer = serverInfo.getProvisioningServer(); - AutoCloseable retrievalServ...
[DefaultJobBundleFactory->[createServerInfo->[create],prepare->[PreparedClient],getTimerReceivers->[create],WrappedSdkHarnessClient->[unref->[close],wrapping->[WrappedSdkHarnessClient]],getOutputReceivers->[create],create->[DefaultJobBundleFactory],getEnvironmentExpirationMillis->[getEnvironmentExpirationMillis],create...
Closes the server which is currently running.
Shouldn't we also close `retrievalServer`?
@@ -138,7 +138,7 @@ public class HotRodTestingUtils { return startHotRodServer(manager, host, port, delay, false, builder); } - public static HotRodServer startHotRodServer(EmbeddedCacheManager manager, String host, int port, long delay, Boolean perf, HotRodServerConfigurationBuilder builder) { + publi...
[HotRodTestingUtils->[startHotRodServerWithDelay->[startHotRodServer],k->[k],withClientListener->[withClientListener,assertStatus],assertHashTopology10Received->[assertHashTopology10Received],startHotRodServer->[createTopologyCacheConfig->[createTopologyCacheConfig],startHotRodServer,serverPort],v->[v,k],assertNoHashTo...
Start a hot - raod server.
Thanks, darn scala conversion I missed
@@ -64,6 +64,13 @@ const getPastEvents = memoize( debug('Skipped loading event from IPFS cache.') } + // Paranoia check. + if (!instance.contract || !instance.contract.options.address) { + throw new Error( + `EventCache.getPastEvents failure. Contract ${this.prefix} missing address!` + ...
[No CFG could be retrieved]
Reads events from IPFS and adds them to the backend. This interface is used to define the interface for EventCache backends.
There's no `this` in this function. Use `instance`
@@ -1,6 +1,11 @@ module Admin class OverviewController < Admin::ApplicationController layout "admin" - def index; end + def index + @open_abuse_reports_count = + FeedbackMessage + .where(status: "Open", feedback_type: "abuse-reports") + .count + end end end
[OverviewController->[layout]]
Returns the index of the object.
could we make this a scope instead or a class method on Feedback message? `scope open_abuse_reports` or `def self.open_abuse_report_count` It's might easier to avoid duplication later if we don't keep this logic in the controller. The diff gets a little larger though :wink:
@@ -356,8 +356,8 @@ async function esbuildCompile(srcDir, srcFilename, destDir, options) { let map = result.outputFiles.find(({path}) => path.endsWith('.map')).text; if (options.minify) { - ({code, map} = await minify(code, map)); - map = await massageSourcemaps(map, options); + ({code, map: ...
[No CFG could be retrieved]
Builds a single from the given input files. remap - dependencies.
nit: why the rename?
@@ -436,6 +436,12 @@ class TestMultiScaleRoIAlign: ) assert repr(t) == expected_string + @pytest.mark.parametrize("device", cpu_and_gpu()) + def test_feature_extractor(self, device): + op_obj = TestMultiScaleRoIAlign.make_obj().to(device=device) + return_nodes = get_graph_node_na...
[TestPSRoIPool->[expected_fn->[get_slice],test_boxes_shape->[_helper_boxes_shape]],TestBoxIou->[test_iou->[iou_check]],TestMasksToBoxes->[test_masks_box->[masks_box_check,_create_masks,_get_image]],TestBoxArea->[test_box_area->[area_check]],TestDeformConv->[test_forward->[get_fn_args,expected_fn],test_backward->[script...
Test for the MSROialign repr of the nms object.
same here, unclear why we do static calls if the base-class defines `make_obj()` as a non-static method.
@@ -141,9 +141,8 @@ func (t *tether) stopReaper() { signal.Reset(syscall.SIGCHLD) // just closing the incoming channel is not going to stop the iteration - // so we use done channel to signal it - log.Debugf("Signalling the child reaper loop") - close(t.done) + // so we use the context cancellation to signal it +...
[stopReaper->[End,Reset,Debugf,Begin],childReaper->[Printf,handleSessionExit,RawSyscall,Unlock,Debug,removeChildPid,Warnf,Exited,Notify,ExitStatus,Lock,Errorf,Info,Wait4,Signaled,Debugf],Copy,SplitList,Done,Stat,IsDir,Begin,Sprintf,Contains,End,Start,TrimPrefix,Errorf,Debugf,HasPrefix,Add,Mode]
stopReaper stops the reaper loop.
I thought that was what the `cancel` function did -- close a channel?
@@ -25,6 +25,10 @@ func newEnvInitCmd() *cobra.Command { return errors.New("missing required environment name") } + if _, staterr := os.Stat(workspace.EnvPath(tokens.QName(args[0]))); staterr == nil { + return fmt.Errorf("environment '%v' already exists", args[0]) + } + return lumiEngine.InitEnv(a...
[InitEnv,New,RunFunc]
Initialization of environment variables.
Random aside: as I am burning the ships, I keep running into tokens. It feels like a useless abstraction in a world where we don't have a runtime. And in fact, we freely cast (like this) everywhere and seldom check invariants like I had originally intended. It feels like unidiomatic Go. Do you vote to rip and remove th...
@@ -16,7 +16,7 @@ class Foo < AbstractFoo end end -class SomeClass +class SomeClass # error: The super class `AnotherModule::NestedModule` of `SomeClass` does not derive from `Class` include HelperMethods # ^ usage: HelperMethods extend StaticHelperMethods
[SomeClass->[include,extend],type_alias]
The file filtering logic in LSPQueryBySymbol is used to filter out the type of.
Extremely slight bummer that this error locates here when the actual offense is down below when we reopen the class. (But I guess one sees it down there as well, and I dunno if there's any way to make this not happen.)
@@ -170,9 +170,4 @@ public interface Query<T> { return withOverriddenContext(ImmutableMap.of(QueryContexts.LANE_KEY, lane)); } - - default VirtualColumns getVirtualColumns() - { - return VirtualColumns.EMPTY; - } }
[withLane->[withOverriddenContext],withPriority->[withOverriddenContext]]
withLane method.
I'm assuming this change has nothing to do with the bug fix correct?
@@ -743,8 +743,13 @@ class MachineManager(QObject): if extruder_stacks: # Add an extra entry for the global stack. - result.append({"stack": global_container_stack, "quality": result[0]["quality"], - "quality_changes": empty_quality_changes}) + glo...
[MachineManager->[createMachineManager->[MachineManager],getQualityVariantId->[getQualityDefinitionId],setActiveVariant->[setActiveMaterial],_updateQualityContainer->[getQualityDefinitionId,getQualityVariantId],_updateMaterialContainer->[getQualityDefinitionId,getQualityVariantId],renameMachine->[_createUniqueName]]]
Determines the quality and quality_changes for a given quality type.
I think we should add a log entry here. It could happen that we mess things up that all extruders do have a quality profile, but the global is empty.
@@ -253,4 +253,12 @@ public interface ChannelConfig { * to detect the size of a message. */ ChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator); + + /** + * Set the {@link WriteBufferWaterMark} which is used for set the high and low + * water mark of the write buffer. + ...
[No CFG could be retrieved]
Sets the message size estimate.
maybe we could `@deprecated` the old methods and `ChannelConfig` ? I think users should always us the new one.
@@ -5882,7 +5882,7 @@ inline void gcode_M17() { KEEPALIVE_STATE(IN_HANDLER); } - static void resume_print(const float& load_length = 0, const float& initial_extrude_length = 0, int max_beep_count = 0) { + static void resume_print(const float& load_length = 0, const float& initial_extrude_length = 0, int8_t ...
[No CFG could be retrieved]
This is a private method that is called by the UI thread and is called by the UI This is the main method that is called when the user tries to print the image.
Should the &s be moved to be next to the variable name since you made that change to pause_print?
@@ -410,6 +410,10 @@ var nodeProps = ` "deprecations_count": { "type": "integer", "null_value": 0 + }, + "created": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" } }`
[Sprintf]
NodeState is the representation of the node - state object Node state configuration.
Adding the created date to be able to count how many nodes existed at a past time period.
@@ -22,6 +22,8 @@ namespace Dynamo.Interfaces List<string> RecentFiles { get; set; } List<string> BackupFiles { get; set; } List<string> PackageDirectoriesToUninstall { get; set; } + List<string> CustomNodeFolders { get; set; } + List<string> PackageFolders { get; set; } ...
[No CFG could be retrieved]
This method serializes the preferences of a specific into a file.
Is it not better to use `IEnumerable` in interface definitions?
@@ -94,6 +94,8 @@ public abstract class AbstractPort implements Port { private final Lock readLock = rwLock.readLock(); private final Lock writeLock = rwLock.writeLock(); + protected PublicPort publicPort; + public AbstractPort(final String id, final String name, final ProcessGroup processGroup, fin...
[No CFG could be retrieved]
Creates a new instance of AbstractPort.
There exists a getter and setter for this already. Should keep the member variable private.
@@ -175,6 +175,7 @@ public class ExecRemoteInterpreterProcess extends RemoteInterpreterManagedProces @Override public void waitForReady(int timeout) { + this.waitForThread = Thread.currentThread(); synchronized (this) { long startTime = System.currentTimeMillis(); long timeoutT...
[ExecRemoteInterpreterProcess->[isRunning->[isRunning],getErrorMessage->[getErrorMessage],stop->[stop],InterpreterProcessLauncher->[onProcessFailed->[onProcessFailed],onProcessRunning->[onProcessRunning]],processStarted->[processStarted]]]
Wait for the ready state.
Wouldn't it be better to be inside the synchronized block? And is it okay to not assign `this.waitForThread` to null again?
@@ -185,9 +185,12 @@ func (m *medianFetcher) Fetch() (decimal.Decimal, error) { } } - errorRate := float64(len(fetchErrors)) / float64(len(m.fetchers)) + fetchersCount := len(m.fetchers) + fetchErrorsCount := len(fetchErrors) + errorRate := float64(fetchErrorsCount) / float64(fetchersCount) if errorRate >= 0.5...
[Fetch->[Slice,Wrap,Fetch,Set,Add,Error,Post,New,LessThan,Errorf,Combine,WithLabelValues,NewFromInt,NewDecoder,ErrorIfCalling,NewReader,Sprintf,Result,Decode,Debugw,Div,String,Float64],String->[Sprintf,Join,String],InstrumentRoundTripperDuration,Sprintf,Valid,New,Duration,NewID,TrimSpace]
Fetch fetches the median price from all the fetcher s peers and returns the result.
Why not put the rate in the error message? Instead of saying `at least 50% of..` just say `67% of fetchers failed`
@@ -58,6 +58,15 @@ class NamespaceConfig(object): def __setattr__(self, name, value): setattr(self.namespace, name, value) + def __str__(self): + s = list() + for k, v in self.__dict__.items(): + s.append("{}='{}'".format(k, v)) + return "< NamespaceConfig {} >".format...
[check_config_sanity->[,enforce_domain_sanity,ConfigurationError],NamespaceConfig->[server_path->[,urlparse],renewal_hooks_dir->[join],__getattr__->[getattr],in_progress_dir->[join],__init__->[check_config_sanity,abspath,__setattr__],renewal_configs_dir->[join],backup_dir->[join],key_dir->[join],renewal_pre_hooks_dir->...
Set attribute on the object.
Mainly a choice of style and speed, `s = []` is faster. Generally, literals are better for speed and probably also more pythonic.
@@ -1755,6 +1755,10 @@ class Archiver: The version of borg, only major, minor and patch version, e.g.: 1.0.8 + If literal curly braces need to be used, double them for escaping:: + + borg create /path/to/repo::{{literal_text}} + Examples:: borg create /path/to/...
[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...
The full name of the machine. level 6 - level compression.
hmm, does a (non-coding) reader understand "literal" and "escaping"?
@@ -88,6 +88,9 @@ def histogram_fixed_width_bins(values, # map tensor values within the open interval value_range to {0,.., nbins-1}, # values outside the open interval will be zero or less, or nbins or more. indices = math_ops.floor(nbins_float * scaled_values, name='indices') + + if value_range[...
[histogram_fixed_width_bins->[clip_by_value,cast,truediv,name_scope,reshape,convert_to_tensor,floor,shape],histogram_fixed_width->[name_scope,_histogram_fixed_width],tf_export]
Bins the given values for a histogram into which each element of values would be bin Convert nbins to tensor.
tensor.numpy() is only available when eager execution is enabled (not while building graph functions) So please write this using array_ops.where or control_flow_ops.cond
@@ -607,8 +607,10 @@ export class FixedLayer { if (!this.transfer_ || this.fixedLayer_) { return this.fixedLayer_; } - this.fixedLayer_ = this.ampdoc.win.document.createElement('body'); - this.fixedLayer_.id = '-amp-fixedlayer'; + const doc = this.ampdoc.win.document; + const bodyId_ = doc....
[No CFG could be retrieved]
Determines the fixed - layer element based on the given element definition. MISSING - INVISIBLE - INVISIBLE - INVISIBLE - INVISIBLE - INVISIBLE.
Remove `_`. It should be instead `const bodyId = doc.body.id;`
@@ -14,6 +14,10 @@ namespace Dynamo.Graph.Nodes /// </summary> public enum PortType { Input, Output }; + /// <summary> + /// PortModel represents Dynamo ports. Dynamo port is little square on node. + /// User can connect and disconnect ports and therefore change value of the node. + /// </summar...
[PortModel->[Disconnect->[ValidateConnections,Contains,Count,Remove,OnPortDisconnected],SetPortData->[RaisePropertyChanged,DefaultValue],Connect->[Add,OnPortConnected],DestroyConnectors->[Any,Delete],OnPortConnected->[RaisePortConnectedEvent],OnPortDisconnected->[RaisePortDisconnectedEvent],PortHeightInPixels,RaiseProp...
A port model is a node in DynamoDb and is used by a DynamoDb region Node Origin.
PortModel represents Dynamo ports. Remove : Dynamo port is little square on node
@@ -397,12 +397,14 @@ func printComment(w io.Writer, comment, deprecationMessage, indent string) { fmt.Fprintf(w, "%s */\n", indent) } -func (mod *modContext) genPlainType(w io.Writer, name, comment string, properties []*schema.Property, input, readonly bool, level int) { +func (mod *modContext) genPlainType(w io....
[sdkImports->[getRelativePath],typeAst->[resourceType,details,typeAst,objectType],getImportsForResource->[getTypeImports,getTypeImportsForResource],resourceType->[tokenToModName,namingContext],genResourceModule->[resourceFileName],getTypeImportsForResource->[getTypeImports],objectType->[tokenToModName,namingContext],ge...
genPlainType generates the plain type definition for the given properties.
Would it be possible to factor out the `defaults` generation into a separate func? I'm squinting at this and I don't see how the `defaults` computation and code emission does not interact with the previous func much if at all. Also.. `genPlainType` had too many bool parameters before the change, but now after the chang...
@@ -16,14 +16,14 @@ from numba.core.compiler_lock import global_compiler_lock class _CFuncCompiler(_FunctionCompiler): def _customize_flags(self, flags): - flags.set('no_cpython_wrapper', True) - flags.set('no_cfunc_wrapper', False) + flags.no_cpython_wrapper = True + flags.no_cfunc_...
[CFunc->[_compile_uncached->[compile],__init__->[_CFuncCompiler]]]
Customize flags.
At some point, I think some of this should be renamed so that double-negatives aren't present e.g. `flags.cpython_wrapper` is `True` if it's needed, `False` if it's not.
@@ -147,4 +147,14 @@ public class ClientCredentialsGrantType extends AbstractGrantType implements Ini { this.tokenManager = tokenManager; } + + public ProxyConfig getProxyConfig() + { + return proxyConfig; + } + + public void setProxyConfig(ProxyConfig proxyConfig) + { + ...
[ClientCredentialsGrantType->[shouldRetry->[refreshAccessToken,getRefreshTokenWhen],refreshAccessToken->[refreshAccessToken],getRefreshTokenWhen->[getRefreshTokenWhen]]]
set token manager.
This is what I mean.
@@ -61,7 +61,15 @@ export function createShadowRoot(hostElement) { // Native support. const shadowDomSupported = getShadowDomSupportedVersion(); if (shadowDomSupported == ShadowDomVersion.V1) { - return hostElement.attachShadow({mode: 'open'}); + const shadowRoot = hostElement.attachShadow({mode: 'open'}...
[No CFG could be retrieved]
Creates a shadow root for the specified host element. Creates a ShadowRoot element for a given .
Unfortunately, everywhere we use this property is via array access. E.g. `x.styleSheets[0]`. I'm thinking maybe let's use array instead? Or any other idea?
@@ -59,6 +59,8 @@ namespace Dynamo.DSEngine liveRunnerServices = new LiveRunnerServices(dynamoModel, this, geometryFactoryFileName); liveRunnerServices.ReloadAllLibraries(libraryServices.ImportedLibraries); + codeCompletionServices = new CodeCompletionServices(LiveRunnerCore); + ...
[EngineController->[ImportLibrary->[ImportLibrary],UpdateGraph->[UpdateGraph],ShowRuntimeWarnings->[GetRuntimeWarnings],ShowBuildWarnings->[GetBuildWarnings],GetRuntimeWarnings->[GetRuntimeWarnings],LibraryLoaded->[GetFunctionGroups],ConvertNodesToCode->[ConvertNodesToCode],GetBuildWarnings->[GetBuildWarnings],Dispose-...
private static final int MAX_SHORT_VAR_COUNT ; This function is called by the library libraryCore. It disposes the library services and cle.
Just as we instantiate it here, I would recommend setting it to `null` in `EngineController.Dispose` method (this way if some code happens to access it after `EngineController` is disposed of, then things will crash and we'll find out problems in a more visible way.
@@ -389,9 +389,8 @@ public abstract class Label extends Actionable implements Comparable<Label>, Mod @Exported public List<AbstractProject> getTiedJobs() { List<AbstractProject> r = new ArrayList<>(); - for (AbstractProject<?,?> p : Jenkins.get().allItems(AbstractProject.class)) { - ...
[Label->[contains->[contains],getDescription->[getNodes,getClouds],equals->[matches],hashCode->[hashCode],getTotalConfiguredExecutors->[getNodes],doChildrenContextMenu->[getNodes],isEmpty->[isEmpty],isSelfLabel->[getNodes],onBinary->[accept],isOffline->[getNodes,isOffline],getSortedNodes->[getNodes,NodeSorter],getSearc...
Get the tied jobs.
I don't think it improves performance that much, but you could stream the result from allItems() and collect it into a list, avoiding the for loop.
@@ -114,17 +114,6 @@ public final class TableElements implements Iterable<TableElement> { throwOnDuplicateNames(keyColumns, "KEY"); throwOnDuplicateNames(valueColumns, "non-KEY"); - final long numKeyColumns = keyColumns.size(); - - if (numKeyColumns > 1) { - throw new KsqlException("KSQL does not...
[TableElements->[stream->[stream],equals->[equals],splitByElementType->[of],build->[of,TableElements,build],toString->[toString],iterator->[iterator]]]
Build a TableElements from the given elements.
These checks here are not needed?
@@ -120,7 +120,7 @@ func (eb *ethBroadcaster) monitorEthTxs() { for { pollDBTimer := time.NewTimer(databasePollInterval) - keys, err := eb.store.Keys() + keys, err := eb.store.SendingKeys() if err != nil { logger.Error(errors.Wrap(err, "monitorEthTxs failed getting key"))
[monitorEthTxs->[Stop],tryAgainWithHigherGasPrice->[handleInProgressEthTx]]
monitorEthTxs polls the database for new keys and blocks until all keys have been.
Did you also check EthConfirmer? Might be worth grepping the whole codebase for uses of `Keys`. Or, even better, remove `Keys()` method entirely and create two different methods to replace it - `AllKeys` and `SendKeys`. This seems safest.
@@ -485,7 +485,7 @@ ECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group, ECPARAMETERS_free(ret->value.parameters); } - if (EC_GROUP_get_asn1_flag(group)) { + if (EC_GROUP_get_asn1_flag(group) == OPENSSL_EC_NAMED_CURVE) { /* * use the asn1 OID to describe the el...
[No CFG could be retrieved]
get the elliptic curve parameters from an EC_GROUP - - - - - - - - - - - - - - - - - -.
Shouldn't this be `&` not `==` here and throughout? Existing code uses both forms: `==` once and `&` twice.
@@ -34,6 +34,11 @@ function addAdiantUnit(hostname, global, data) { ins.setAttribute('data-tag-type', 1); global.document.getElementById('c').appendChild(ins); + ins.parentNode.addEventListener( + 'eventAdbladeRenderStart', + global.context.renderStart() + ); + // run our JavaScript code to display t...
[No CFG could be retrieved]
Adds an adiant unit to the page.
for better readability, could you indent extra two spaces for this line and the following line, that's what we do if they should originally fall in one line. aka, here we should make them indented 6 spaces here.
@@ -209,7 +209,16 @@ public class PageCursorProviderImpl implements PageCursorProvider { } page.open(); final long startedReadPage = System.nanoTime(); - List<PagedMessage> pgdMessages = page.read(storageManager); + List<PagedMessage> pgdMessages; + if (indexCache =...
[PageCursorProviderImpl->[resumeCleanup->[scheduleCleanup],flushExecutors->[waitForFuture,flushExecutors],getMessage->[getMessage],onPageModeCleared->[onPageModeCleared],onDeletePage->[cloneSubscriptions,onDeletePage],stop->[stop],processReload->[processReload],getPageCache->[getMessage],finishCleanup->[close]]]
Reads a page from the storage manager. get cache if not found.
If this has to stay, Can we use a primitive map variant.
@@ -128,6 +128,6 @@ class BlobStorageUpload(Task): client = blob_service.get_blob_client(container=container, blob=blob_name) - client.upload_blob(data) + client.upload_blob(data,overwrite=True) return blob_name
[BlobStorageDownload->[__init__->[super],run->[download_blob,get_blob_client,ValueError,Secret,from_connection_string],defaults_from_attrs],BlobStorageUpload->[__init__->[super],run->[upload_blob,uuid4,get_blob_client,str,ValueError,Secret,from_connection_string],defaults_from_attrs]]
This method is called by the task to upload a specific lease.
Hey @4bhishek10 , given that the default behavior of Azure Storage is to not overwrite, I think we want the default to not, but be configurable by users. Could you try making the function accept this argument and then passing it to this call? And then add the relevant docstring? Also for any given task, we try to make ...
@@ -295,11 +295,13 @@ class StaticRNN(object): """ StaticRNN class. - The StaticRNN can process a batch of sequence data. The length of each - sample sequence must be equal. The StaticRNN will have its own parameters - like inputs, outputs, memories. **Note that the first dimension of inputs - r...
[Switch->[default->[ConditionalBlock,ConditionalBlockGuard],case->[ConditionalBlock,ConditionalBlockGuard]],IfElseBlockGuard->[__exit__->[__exit__],__enter__->[__enter__],__init__->[block]],DynamicRNN->[_parent_block_->[block],block->[array_write,block,increment,less_than,array_to_lod_tensor],static_input->[_assert_in_...
This class is used to create a link between two memory cells of a StaticRNN. StaticRNN unfolds the sequence into time steps and returns the result.
A tiny issue. "user need to" should be changed to "user needs to" or "users need to" because "need" is the primary verb here. (When "need" is an auxiliary verb, we can say "user need define xxx", but infinitive "need to define" has to be a third person form here)
@@ -133,6 +133,9 @@ func (e *loginProvision) Run(ctx *Context) error { e.G().KeyfamilyChanged(e.arg.User.GetUID()) + // check to make sure local files stored correctly + e.verifyLocalStorage() + return nil }
[gpgImportKey->[gpgClient],makeEldestDevice->[makeDeviceKeys,makeDeviceWrapArgs],matchingGPGKeys->[gpgPrivateIndex],tryPGP->[pgpProvision],tryGPG->[makeDeviceKeysWithSigner],chooseDevice->[paper,deviceWithType]]
Run executes the loginProvision command.
shouldn't we error out if this doesn't work?
@@ -63,7 +63,7 @@ import static org.apache.nifi.processor.util.list.AbstractListProcessor.REL_SUCC public class ListedEntityTracker<T extends ListableEntity> { private final ObjectMapper objectMapper = new ObjectMapper(); - private volatile Map<String, ListedEntity> alreadyListedEntities; + protected vola...
[ListedEntityTracker->[trackEntities->[fetchListedEntities,persistListedEntities],fetchListedEntities->[getCacheKey],persistListedEntities->[getCacheKey],clearListedEntities->[getCacheKey]]]
Creates a ListedEntityTracker which tracks the list of entities. Gzipped JSON string.
The implementation is always a concurrent hashmap which is thread-safe. Is it need to be volatile?
@@ -171,10 +171,10 @@ class Tag extends ApiEntity /** * Set creator * - * @param \Sulu\Component\Security\UserInterface $creator + * @param \Sulu\Component\Security\Authentication\UserInterface $creator * @return Tag */ - public function setCreator(\Sulu\Component\Security\UserIn...
[No CFG could be retrieved]
set creator of node.
This should be "used". Is this a deliberate ommission?
@@ -4491,6 +4491,13 @@ def program_guard(main_program, startup_program=None): Layer functions in the Python `"with"` block will append operators and variables to the new main programs. + Args: + main_program(Program): New main program inside `"with"` statement. + startup_program(Program): N...
[cuda_places->[is_compiled_with_cuda,_cuda_ids],Program->[_construct_from_desc->[Program,_sync_with_cpp,Block],__repr__->[__str__],parse_from_string->[Program,_sync_with_cpp,Block],to_string->[_debug_string_,to_string],_version->[_version],_prune_with_input->[Program,_sync_with_cpp,Block],_copy_param_info_from->[global...
Context manager for program guarding.
I guess this can be optional?
@@ -227,9 +227,7 @@ define([ */ Rectangle.fromCartographicArray = function(cartographics, result) { //>>includeStart('debug', pragmas.debug); - if (!defined(cartographics)) { - throw new DeveloperError('cartographics is required.'); - } + Check.typeOf.object(cartograp...
[No CFG could be retrieved]
Creates a smallest possible rectangle that encloses all positions in the provided cartographics. region Position Functions.
`cartographics` is an array
@@ -38,7 +38,7 @@ def sync(repo_name, importer_name): """ importer = models.Importer.objects.get(name=importer_name, repository__name=repo_name).cast() if not importer.feed_url: - raise ValueError_("An importer must have a 'feed_url' attribute to sync.") + raise ValueError(_("An importer mu...
[sync->[working_dir_context,ValueError_,get,sync],delete->[filter],shared_task]
Sync on the given importer.
I would have sworn this was fixed.