patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -39,6 +39,14 @@ function initPlayer(data) {
container: '#c',
desiredOffset: 50,
gid: data.gid,
+ onError: () => {
+ global.context.noContentAvailable();
+ },
+ onLoad: () => {
+ const height = global.document.getElementsByClassName('nr-player')[0]
+ ./* OK */ offsetHeight;
+ ... | [No CFG could be retrieved] | Seed the object with the current data. | you need pass `global` object as function param |
@@ -466,7 +466,9 @@ class RegionProposalNetwork(torch.nn.Module):
anchors = self.anchor_generator(images, features)
num_images = len(anchors)
- num_anchors_per_level = [o[0].numel() for o in objectness]
+ num_anchors_per_level_shape_tensors = [o[0].shape for o in objectness]
+ n... | [concat_box_prediction_layers->[permute_and_flatten],AnchorGenerator->[forward->[set_cell_anchors,cached_grid_anchors],set_cell_anchors->[generate_anchors],cached_grid_anchors->[grid_anchors]],RegionProposalNetwork->[_get_top_n_idx->[pre_nms_top_n,_onnx_get_num_anchors_and_pre_nms_top_n],forward->[concat_box_prediction... | Forward computation of the n - node - specific clustering problem. Computes the loss of a . | This line will be replaced by: # num_anchors_per_level = [torch.prod(shape_as_tensor(o[0])) for o in objectness] |
@@ -83,7 +83,7 @@ public class CliBroker extends ServerRunnable
binder.bind(TimelineServerView.class).to(BrokerServerView.class).in(LazySingleton.class);
binder.bind(Cache.class).toProvider(CacheProvider.class).in(ManageLifecycle.class);
- JsonConfigProvider.bind(binder, "druid.br... | [CliBroker->[getModules->[configure->[addResource,to,bind,register,in],Module,of],Logger]] | Provides modules that are used by the Druid broker. | revert this plesae |
@@ -2548,7 +2548,7 @@ bool Inline::InlineApplyTarget(IR::Instr *callInstr, const FunctionJITTimeInfo*
const auto inlineCacheIndex = applyTargetLdOpnd->AsPropertySymOpnd()->m_inlineCacheIndex;
const auto inlineeData = inlinerData->GetLdFldInlinee(inlineCacheIndex);
- if (!isArrayOpndArgumentsObject || Ski... | [No CFG could be retrieved] | Checks if a target can be inlined. Check if a fixed - point call is possible. | > (argsCount == 2) [](start = 40, length = 16) u might want to assert for this, instead of being a pre-condition. The call site already handles argsCount == 1 case. #Resolved |
@@ -74,6 +74,10 @@ public class DependencyContext {
return rep;
}
+ public void addCredential(String reponame, String user, String password) {
+ auths.put(reponame, new Authentication(user, password));
+ }
+
public void reset() {
dependencies = new LinkedList<Dependency>();
repositories = ne... | [DependencyContext->[fetch->[isDist,File,getGroupArtifactVersion,fetchArtifactWithDep,isLocalFsArtifact,add,getFile],addRepo->[add,Repository],fetchArtifactWithDep->[inferScalaVersion,addRepository,setPolicy,isSnapshot,andFilter,classpathFilter,getExclusions,getName,RemoteRepository,DependencyRequest,Dependency,Default... | Adds a repository to the repository list. | I think you need to clear this in reset() |
@@ -638,8 +638,11 @@ class RestAPI: # pragma: no unittest
reveal_timeout=reveal_timeout,
)
+ confirmed_block_identifier = views.state_from_raiden(self.raiden_api.raiden).block_hash
try:
- token = self.raiden_api.raiden.proxy_manager.token(token_address)
+ t... | [endpoint_not_found->[api_error],RestAPI->[initiate_payment->[api_error,api_response],get_raiden_internal_events_with_timestamps->[api_response],connect->[api_error,api_response],get_connection_managers_info->[api_response],get_raiden_events_payment_history_with_timestamps->[api_error,api_response,get_raiden_events_pay... | Open a channel with a specific lease. Deposit a specific token in a channel. | I see this quite often, maybe might be useful to write a view for it |
@@ -1703,6 +1703,15 @@ def _compute_scalings(scalings, inst):
% (key, value))
continue
this_data = data[ch_types[key]]
+ if remove_dc:
+ length = 10 # length of segments (in seconds)
+ # truncate data so that we can divide into segmen... | [_annotation_radio_clicked->[_get_active_radiobutton],tight_layout->[tight_layout],_handle_change_selection->[_set_radio_button],_annotate_select->[_get_active_radiobutton],_onclick_new_label->[_setup_annotation_fig,_set_annotation_radio_button],_helper_raw_resize->[_layout_figure],_mouse_click->[_plot_raw_time,_handle... | Compute the necessary scalings for each channel type automatically. Random nanoseconds are the most likely to be the last n_epochs epochs. | how do you know it's seconds if you don't use sfreq? |
@@ -638,8 +638,9 @@ public class RegisterMinionEventMessageAction implements MessageAction {
branchIdGroupName + "\")! Aborting registration.");
}
- SystemManager.addServerToServerGroup(minion, terminalsGroup);
- SystemManager.addServerToServerGroup(minion, branchIdGroup);
... | [RegisterMinionEventMessageAction->[registerMinion->[registerMinion],getContactMethod->[getContactMethod],migrateOrCreateSystem->[extractHwAddresses],getOsRelease->[unknownRHELVersion],findMatchingEmptyProfiles->[findMatchingEmptyProfiles]]] | Prepares a minion for saltboot. Generate the pillar. | should the object also be a class field? |
@@ -59,6 +59,8 @@ public abstract class AsyncHttpWriterBuilder<D, RQ, RP> extends FluentDataWriter
protected int queueCapacity = AbstractAsyncDataWriter.DEFAULT_BUFFER_CAPACITY;
@Getter
protected int maxAttempts = AsyncHttpWriter.DEFAULT_MAX_ATTEMPTS;
+ @Getter
+ protected SharedResourcesBroker<GobblinScopeT... | [AsyncHttpWriterBuilder->[writeTo->[writeTo],build->[validate,build]]] | Abstract class for creating a new . region Public Methods. | This should probably be `final`, as well as most of the instance variables in this method. |
@@ -4972,7 +4972,16 @@ def nce_layer(input,
"""
if isinstance(input, LayerOutput):
input = [input]
+ assert not isinstance(param_attr, collections.Sequence)
+ param_attr = [param_attr]
+ else:
+ if isinstance(param_attr, collections.Sequence):
+ assert len(input) ==... | [priorbox_layer->[LayerOutput],fc_layer->[LayerOutput],recurrent_group->[mixed_layer,identity_projection,is_single_input,targetInlink_in_inlinks,memory],scaling_layer->[LayerOutput],last_seq->[LayerOutput],img_cmrnorm_layer->[__img_norm_layer__],seq_concat_layer->[LayerOutput],conv_shift_layer->[LayerOutput],out_prod_l... | NCE layer with noisy noise. Adds a n - class non - zero n - class non - zero n - class non. | please add simple usage in annotation when input is not LayerOutput, i.e, add simple usage for else branch. |
@@ -76,7 +76,7 @@ calls it with the rendered model.
console.log("Bokeh: BokehJS loaded, going straight to plotting");
Bokeh.embed.embed_items(docs_json, render_items, websocket_url);
} else {
- load_lib(bokehjs_url, function() {
+ load_libs({{ js_urls }}, function() {
console.log("Bokeh: Bokeh... | [No CFG could be retrieved] | Embeds the docs_json into the embed window. | if we changed to `if (typeof(window._bokeh_is_loading) !== undefined && window._bokeh_is_loading == 0` would that be more robust? Or else `if (typeof(Bokeh) !== undefined && typeof(Bokeh.SomeWidget) !== undefined)` maybe? |
@@ -23,7 +23,7 @@ import { toast } from 'react-toastify';
const addErrorAlert = (message, key?, data?) => {
<%_ if (enableTranslation) { _%>
key = key ? key : message;
- toast.error(translate(key, data));
+ toast.error(translate(key, data), { className: key });
<%_ } else { _%>
toast.error(message);
<... | [No CFG could be retrieved] | Provides a middleware that will show a message if the action is not a promise. finds the first alert in the headers and if it s not found it will show a. | what are the class names for? |
@@ -240,6 +240,15 @@ class ProductVariant(models.Model, Item):
return stock.cost_price
+@python_2_unicode_compatible
+class StockLocation(models.Model):
+ location = models.CharField(
+ pgettext_lazy('Stock item field', 'location'), max_length=100)
+
+ def __str__(self):
+ return se... | [ProductVariant->[as_data->[get_price_per_item],get_first_image->[get_first_image],get_absolute_url->[get_slug],display_product->[display_variant],get_cost_price->[select_stockrecord]],Product->[is_in_stock->[is_in_stock],ProductManager],Stock->[StockManager]] | Allocate a stock item. | Can we call this `name`? `location` suggests geospatial fields. |
@@ -58,9 +58,10 @@ class Resolver(object):
self.use_user_site = use_user_site
self.use_pep517 = use_pep517
- self._discovered_dependencies = defaultdict(list)
+ self._discovered_dependencies = defaultdict(list) # type: DefaultDict[str, List] # noqa: E501
def resolve(self, requ... | [Resolver->[_resolve_one->[add_req,_get_abstract_dist_for],get_installation_order->[schedule->[schedule],schedule],_check_skip_installed->[_set_req_to_reinstall,_is_upgrade_allowed],_get_abstract_dist_for->[_check_skip_installed,_set_req_to_reinstall,_is_upgrade_allowed]]] | Initialize the resolver. This function is called when a link type is not found. | Break this line but don't put a `# noqa: E501`. |
@@ -165,12 +165,12 @@ module Dependabot
updated_reqs.first[:requirement]
end
- # TODO: Look into bringing this in line with existing library checks that
- # we do in the update checkers, which are also overriden by passing an
- # explicit `requirements_update_strategy`.
+ # TODO: B... | [PullRequestCreator->[BranchNamer->[package_manager->[package_manager],ref_changed?->[new_ref,previous_ref]]]] | Returns the requirement of a new library or gem if there is no requirement that was updated. | Not sure about this yet, might be better to only use the requirement if it's changed instead if inferring change based on `library?` |
@@ -1123,7 +1123,7 @@ namespace System.Xml
// Creates a XmlNode with the specified XmlNodeType, Prefix, Name, and NamespaceURI.
- public virtual XmlNode CreateNode(XmlNodeType type, string prefix, string name, string namespaceURI)
+ public virtual XmlNode CreateNode(XmlNodeType type, string? ... | [XmlDocument->[Save->[Save],XmlAttribute->[SetDefaultNamespace],WriteContentTo->[WriteTo],Validate->[Validate],CanInsertAfter->[HasNodeTypeInNextSiblings,HasNodeTypeInPrevSiblings],Load->[Load],XmlTextReader->[XmlResolver],CanInsertBefore->[HasNodeTypeInNextSiblings,HasNodeTypeInPrevSiblings],LoadXml->[Load],XmlElement... | This method creates a node of the specified type. | `string? namespaceURI` also can be null, here and for below 2 overloads |
@@ -59,6 +59,8 @@ import static org.apache.hudi.common.table.timeline.TimelineMetadataUtils.serial
public class FileCreateUtils {
+ private static final Logger LOG = LogManager.getLogger(FileCreateUtils.class);
+
private static final String WRITE_TOKEN = "1-0-1";
private static final String BASE_FILE_EXTENS... | [FileCreateUtils->[createDeltaCommit->[createMetaFile],createInflightRollbackFile->[createMetaFile],deleteInflightCommit->[removeMetaFile],createRequestedCompaction->[createAuxiliaryMetaFile],createCommit->[createMetaFile],createInflightCommit->[createMetaFile],createInflightCleanFile->[createMetaFile],createInflightRe... | Returns the base file name for the given file. | to align with the new design, we should later aim to restrain its use. This can be useful for testing low-level file-manipulation logic. HoodieTestTable should leverage more src code path. |
@@ -302,9 +302,16 @@ def convert_var_shape_simple(x):
return x.shape
-def eval_if_exist_else_none(name):
+def eval_if_exist_else_none(name, local_symbol_table):
+ """
+ Args:
+ name([str]): Expression passed into `eval`.
+ local_symbol_table(dict): Specified from `locals()`. DO NOT use ... | [choose_shape_attr_or_api->[has_negative],convert_shape_compare->[reduce_compare,convert_logical_and],_slice_tensor_array->[false_fn,cond],convert_var_shape->[has_negative]] | Evaluate a nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan. | high -> higher variabels -> variables hide way -> hide away? |
@@ -555,6 +555,7 @@ expect_pool_get_capas_flags_invalid(uint64_t invalid_flags)
d_iov_t valid_cred;
struct ownership valid_owner;
uint64_t result = 0;
+ char *machine;
valid_owner.user = "root@";
valid_owner.group = "admins@";
| [int->[mock_drpc_connect_teardown,mock_drpc_call_teardown,mock_drpc_connect_setup,mock_drpc_call_setup,mock_drpc_close_setup],void->[expect_cont_capas_with_owner_perms,ds_sec_pool_can_delete_cont,daos_acl_create,printf,assert_ptr_equal,free_drpc_call_resp_body,expect_cont_get_capas_owner_invalid,daos_ace_free,assert_in... | expects the list of capability flags invalid. | (style) please, no space before tabs |
@@ -458,6 +458,7 @@ $config['rancid_ignorecomments'] = 0;
// Ignore lines starting with #
// $config['collectd_dir'] = '/var/lib/collectd/rrd';
// $config['smokeping']['dir'] = "/var/lib/smokeping/";
+$config['smokeping']['pings'] = 10;
// $config['oxidized']['enabled'] ... | [No CFG could be retrieved] | Configuration for all configuration options Map ugly locations to pretty locations. | Why the change in default behavior and not keeping the `old` value like people are used to? |
@@ -873,6 +873,7 @@ def time_generalization(epochs_list, clf=None, cv=5, scoring="roc_auc",
and Stanislas Dehaene, "Two distinct dynamic modes subtend the detection of
unexpected sounds", PLOS ONE, 2013
"""
+ from ..io.pick import channel_type, pick_types
from sklearn.base import clone
from ... | [_sliding_window->[find_time_idx],GeneralizationAcrossTime->[score->[predict],predict->[_DecodingTime],fit->[f],__init__->[_DecodingTime]],_time_gen_one_fold->[fit],_fit_slices->[fit],_predict->[predict]] | Fit decoder at each time instant and test at all others. PLOS ONE 2013 . | I moved the lib here because this function is going to be deprecated |
@@ -119,7 +119,7 @@ def create_theme(name, **extra_kwargs):
return theme
-def generate_themes(num, owner):
+def generate_themes(num, owner, app=None):
"""Generate `num` themes for the given `owner`."""
# Disconnect this signal given that we issue a reindex at the end.
post_save.disconnect(update... | [generate_addons->[_yield_name_and_cat,create_addon],generate_themes->[_yield_name_and_cat,create_theme]] | Generate num themes for the given owner. | The method doesn't use `app`, so why add it as a parameter? |
@@ -182,7 +182,7 @@ function api_login(App $a)
list($consumer, $token) = $oauth1->verify_request($request);
if (!is_null($token)) {
$oauth1->loginUser($token->uid);
- Hook::callAll('logged_in', $a->user);
+ Session::set('allow_api', true);
return;
}
echo __FILE__.__LINE__.__FUNCTION__ . "<pre>";... | [api_oauth_access_token->[fetch_access_token,getMessage],api_oauth_request_token->[fetch_request_token,getMessage],api_friendica_notification->[getAll],api_error->[getMessage,getCode],api_call->[saveLog,getCode,getLogger],api_friendica_notification_seen->[getByID,setSeen],api_statusnet_config->[getHostName],api_statuse... | login with oauth This method is called by the API when a user is authenticated. It will check if the. | Is the hook "logged_in" in use by some addon? If yes, we cannot easily remove it. |
@@ -131,15 +131,15 @@ class Jetpack_My_Community_Widget extends WP_Widget {
*
* @return array Updated safe values to be saved.
*/
- function update( $new_instance, $old_instance ) {
+ public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedV... | [Jetpack_My_Community_Widget->[form->[get_field_id,get_field_name],get_community->[fetch_remote_community],widget->[get_community]]] | Updates an existing language object. | Since there's a cast to int on line 141, it should be safe to make this strict. |
@@ -71,7 +71,7 @@ var (
DisableFlagsInUseLine: true,
}
- logLevel = "error"
+ logLevel = "warn"
useSyslog bool
requireCleanup = true
)
| [Root,Context,StartSpanFromContext,StartCPUProfile,StringVar,IsRootless,StopCPUProfile,GetContextWithOptions,ImageEngine,SetExitCode,Warnf,StringSliceVar,Close,Setenv,SetGlobalTracer,DefaultAPIAddress,LookupEnv,MarkHidden,Wrap,Traverse,SetUsageTemplate,Exit,Set,ReadCustomConfig,IntVar,Error,Warning,NumCPU,Init,ContextW... | Initialize a command that can be run on the command line. PersistentPreRunE is a pre - run hook that is called before a command is executed. | Is this something we let the user toggle via containers.conf? |
@@ -481,6 +481,12 @@ namespace MonoGame.Tools.Pipeline
private void DoBuild(string commands)
{
+ if(!Environment.Is64BitOperatingSystem)
+ {
+ View.OutputAppend("Build failed: Content can only be compiled from a 64 bit OS.");
+ return;
+ ... | [PipelineController->[LoadTemplates->[GetFiles],GetFiles->[GetFiles],ResolveTypes->[ResolveTypes],Include->[Include],DoBuild->[FindMGCB],AskSaveProject->[SaveProject],Undo->[Undo],SaveProject->[SaveProject],OpenProject->[OpenProject],IncludeFolder->[IncludeFolder],DirectoryCopy->[DirectoryCopy],GetDirectories->[GetDire... | Do the build. | Note that this isn't true on Mac where the pipeline still runs in 32bit because of the whole MonoMac issue. So we need to allow for that here. |
@@ -263,9 +263,9 @@ Rails.application.routes.draw do
end
scope '/verify', module: 'idv', as: 'idv' do
get '/come_back_later' => 'come_back_later#show'
- get '/confirmations' => 'confirmations#show'
- post '/confirmations' => 'confirmations#update'
- get '/download_personal_key' => 'confi... | [draw,namespace,root,scope,enable_gpo_verification?,redirect,get,enable_test_routes,post,devise_scope,join,patch,devise_for,each,match,put,delete] | This method is used to provide a list of actions that can be performed on the user s POST a new confirmation to the OTP. | We'll want to keep the old routes for backwards compatibility during the deploy |
@@ -80,6 +80,7 @@ createTask('test-report-upload', 'testReportUpload', 'test-report-upload');
createTask('unit', 'unit', 'unit');
createTask('update-packages', 'updatePackages', 'update-packages');
createTask('validator', 'validator', 'validator');
+createTask('validator-cpp-test', 'validatorCppTest', 'validator');
... | [No CFG could be retrieved] | Creates all the tasks in the system. | usability / consistency nit: Almost all these task names are tests, so I think we should drop the `test` suffix and call this just `validator-cpp`. |
@@ -146,7 +146,7 @@ public class TestOMFileCreateRequest extends TestOMKeyRequest {
// Check open table whether key is added or not.
- omKeyInfo = omMetadataManager.getOpenKeyTable().get(openKey);
+ omKeyInfo = verifyPathInOpenKeyTable(keyName, id, true);
Assert.assertNotNull(omKeyInfo);
List... | [TestOMFileCreateRequest->[testValidateAndUpdateCacheWithNonRecursive->[addKeyToTable,toString,testNonRecursivePath,getOzoneKey,delete],testValidateAndUpdateCacheWithVolumeNotFound->[validateAndUpdateCache,createFileRequest,getStatus,OMFileCreateRequest,assertEquals,preExecute],testValidateAndUpdateCacheWithNonRecursiv... | Test whether the specified key is added or removed in the cache. Assert that the keyLocation and the keyLocationInfo are equal. | assertNotNull check can be removed as we already check this in verifyPathInOpenKeyTable. |
@@ -90,7 +90,7 @@ export class AmpAdExit extends AMP.BaseElement {
* @return {function(string): string}
*/
getUrlVariableRewriter_(args, event, target) {
- const vars = {
+ const substitutionFunctions = {
'CLICK_X': () => event.clientX,
'CLICK_Y': () => event.clientY,
};
| [No CFG could be retrieved] | Provides a function that can be used to rewrite a URL variable in a navigation target. Issues a request to a specific URL in the page. | Ignore changes to this file - it was changed in #10714 and will be rebased away. |
@@ -198,6 +198,7 @@ public abstract class ClassLoaderLeakTestCase extends AbstractDeploymentTestCase
@Test
@Issue("MULE-18480")
+ @Ignore("MULE-18520")
@Description("When an artifact is redeployed through the deployment service by name, objects associated to the original deployment are released befroe deplo... | [ClassLoaderLeakTestCase->[assertRededeployment->[MuleRuntimeException,JUnitLambdaProbe,get,check,onRedeploymentSuccess],redeployByNamePreviousAppEagerlyGCd->[assertRededeployment,DeploymentStatusTracker,getApplicationFileBuilder,prepareScenario,redeploy,spy],prepareScenario->[addPackedAppFromBuilder,isAppDeployed,addD... | Redeploys an application by name. | are released befroe -> are released before. |
@@ -135,10 +135,15 @@ public class FormatFactoryTest {
@Test
public void shouldNotThrowWhenCreatingFromSupportedProperty() {
// Given:
- final FormatInfo formatInfo = FormatInfo.of("AVRO", ImmutableMap.of("fullSchemaName", "1"));
+ final FormatInfo formatInfo = FormatInfo.of("AVRO", ImmutableMap.of("sc... | [FormatFactoryTest->[shouldThrowWhenCreatingFromUnsupportedProperty->[getMessage,of,assertThat,assertThrows,containsString],shouldThrowOnEmptyAvroSchemaName->[getMessage,of,assertThat,assertThrows,containsString],shouldThrowOnUnknownFormat->[getMessage,of,assertThat,assertThrows,containsString],shouldCreateFromNameWith... | Checks if there is no format info for the missing schema property. | Is "fullSchemaName" missing for protobuf and json? |
@@ -15,6 +15,11 @@
*/
+// Triple zero width space.
+// This is added to assert error messages, so that we can later identify
+// them, when the only thing that we have is the message. This is the
+// case in many browsers when the global exception handler is invoked.
+export const ASSERT_SENTINEL = '\u200B\u200B\... | [No CFG could be retrieved] | A function to assert if a value is trueish. - - - - - - - - - - - - - - - - - -. | just for my own knowledge, how is this any more reliable than a super random sentinel+prefix? |
@@ -555,7 +555,7 @@ void WbSimulationView::startVideoCapture(const QString &fileName, int codec, int
void WbSimulationView::stopVideoCapture(bool canceled) {
WbVideoRecorder::instance()->stopRecording(canceled);
- restoreFastModeIfNecessary();
+ restore3dViewIfNecessary();
if (mWasMinimized) {
WbMainWin... | [No CFG could be retrieved] | Initializes the video recording. Stop and record a movie. | Currently there are for example this function `restore3dViewIfNecessary` and another one `is3DViewShown`. We should be consistent in the variable and function name and always use `3D` or `3d`. it would probably be better to always use `3D`. |
@@ -53,8 +53,14 @@ var (
// adapters have this minimum requirement.
type BaseAdapter interface {
Perform(models.RunInput, *store.Store) models.RunOutput
+ // Validate returns an error if there's something inconsistent about this task
+ Validate() error
}
+type NoValidationCheckAdapter struct{}
+
+func (a *NoVali... | [MustNewTaskType,MinIncomingConfirmations,MarshalJSON,Unmarshal,FindBridge,Errorf] | TaskTypeHTTPPost is the identifier for the HTTP post adapter. TaskSpec - TaskSpec. | Might be clearer to call this a Mixin, e.g. NoValidationAdapterMixin. Thoughts? |
@@ -44,13 +44,11 @@ public interface DoFnInvoker<InputT, OutputT> {
/**
* Invoke the {@link DoFn.ProcessElement} method on the bound {@link DoFn}.
*
- * @param c The {@link DoFn.ProcessContext} to invoke the fn with.
* @param extra Factory for producing extra parameter objects (such as window), if nece... | [No CFG could be retrieved] | Invoke the process continuation. | At this point, we are ready to rename `ExtraContextFactory` to `Arguments`. |
@@ -1691,6 +1691,8 @@ namespace DotNetNuke.Security.Membership
user.IsDeleted,
UserController.Instance.GetCurrentUserInfo().UserID);
+ EventManager.Instance.OnUserUpdated(new UpdateUserEventArgs {User = user, OldUser = oldUser});
+... | [AspNetMembershipProvider->[UnLockUser->[GetCacheKey],GetPassword->[AutoUnlockUser,GetPassword],UserInfo->[AutoUnlockUser,GetCacheKey,FillUserMembership,UpdateUser],RemoveUser->[RemoveUser,DeleteMembershipUser],UpdateUsersOnline->[UpdateUsersOnline],RestoreUser->[RestoreUser],ChangePasswordQuestionAndAnswer->[ChangePas... | Updates a user in the database. | Should we fire this update event from UserController like other user events? |
@@ -648,12 +648,12 @@ if (is_dir(DIR_FS_CATALOG_IMAGES)) {
}
?>
<tr onclick="document.location.href = '<?php echo zen_href_link(FILENAME_CATEGORY_PRODUCT_LISTING, zen_get_path($category['categories_id'])); ?>'" role="button">
- <td class="text-right"><... | [Execute,display_count,get_allow_add_to_cart,get_handler,infoBox,add_session,display_links,RecordCount,add] | List all categories Zen_js function to render the . | Id column is not hidden in product, and header. |
@@ -35,9 +35,9 @@ public interface OOoManagerService {
OfficeDocumentConverter getDocumentConverter();
- void stopOOoManager();
+ void stopOOoManager() throws Exception;
- void startOOoManager() throws IOException;
+ void startOOoManager() throws Exception;
boolean isOOoManagerStarted();
... | [No CFG could be retrieved] | Get the document converter. | Seems unused, please remove it. |
@@ -108,6 +108,10 @@ public class TestKsqlRestApp extends ExternalResource {
private KsqlExecutionContext ksqlEngine;
private KsqlRestApplication ksqlRestApplication;
+ static {
+ // Increase the default - it's low (100)
+ System.setProperty("sun.net.maxDatagramSockets", "1024");
+ }
private TestKs... | [TestKsqlRestApp->[closePersistentQueries->[buildKsqlClient,getPersistentQueries],Builder->[withEnabledKsqlClient->[buildBaseConfig,defaultServiceContext],build->[TestKsqlRestApp],buildBaseConfig,defaultServiceContext],dropSourcesExcept->[buildKsqlClient],getActualVertxPort->[getActualVertxPort],getPersistentQueries->[... | Creates an instance of the class that implements the REST interface for KSQL REST API Get the base config. | Having trouble understanding what this property means... how come it needs to be increased here? |
@@ -379,9 +379,9 @@ namespace Dynamo.ViewModels
{
get
{
- string executingAssemblyPathName = System.Reflection.Assembly.GetExecutingAssembly().Location;
- string rootModuleDirectory = System.IO.Path.GetDirectoryName(executingAssemblyPathName);
- ... | [DynamoViewModel->[CanZoomOut->[CanZoomOut],SaveAs->[SaveAs],ExportToSTL->[ExportToSTL],ShowOpenDialogAndOpenResult->[Open,CanOpen],ShowSaveDialogIfNeededAndSave->[SaveAs,Save],ImportLibrary->[ImportLibrary],ReportABug->[ReportABug],ClearLog->[ClearLog],Escape->[CancelActiveState],ShowSaveDialogIfNeededAndSaveResult->[... | Observes the list of recent files and their associated components. Tenant ID is a unique identifier for the user. | If there's no change here, please revert this file. |
@@ -2269,7 +2269,7 @@ export class AmpStory extends AMP.BaseElement {
const historyNavigationPath =
getHistoryState(this.win, HistoryState.NAVIGATION_PATH);
if (historyNavigationPath) {
- this.storyNavigationPath_ = historyNavigationPath;
+ this.storyNavigationPath_.push(historyNavigationPath... | [AmpStory->[onBookendStateUpdate_->[BOOKEND_ACTIVE,setHistoryState],isBrowserSupported->[Boolean,CSS],isStandalone_->[STANDALONE],onUIStateUpdate_->[DESKTOP_PANELS,DESKTOP_FULLBLEED,MOBILE,isExperimentOn],closeOpacityMask_->[dev,toggle],initializeStoryNavigationPath_->[NAVIGATION_PATH,getHistoryState],updateBackground_... | Initialize story navigation path. | @rsimha this is not logically equivalent, and I think could break history in stories. A better bet might be `concat`, but before we go there, what was wrong with what was there before? |
@@ -1858,7 +1858,7 @@ out:
if (process_holes && rc == 0) {
rc = agg_process_holes(entry);
} else if (update_vos && rc == 0) {
- if (rc == 0 && ec_age2p(entry) > 1) {
+ if (ec_age2p(entry) > 1) {
/* offload of ds_obj_update to push remote parity */
rc = agg_peer_update(entry, write_parity);
if (rc... | [No CFG could be retrieved] | query parity for stripe Returns the subrange of the RECX that lies within the current stripe. | why remove the "rc == 0" check? for example if above agg_process_partial_stripe() failed, due to ENOMEM or hit ISAL error. Do we still need to call agg_peer_update() to update the possibly incorrect parity data? |
@@ -1461,8 +1461,12 @@ class Database
$row = $this->fetchFirst($sql, $condition);
- // Ensure to always return either a "null" or a numeric value
- return is_numeric($row['count']) ? (int)$row['count'] : $row['count'];
+ if (!isset($row['count'])) {
+ $this->logger->notice('Invalid count.', ['table' => $tab... | [Database->[processlist->[toArray,p],isResult->[numRows],getVariable->[fetchFirst],reconnect->[disconnect,connect],p->[p,reconnect,replaceParameters,anyValueFallback],lastInsertId->[lastInsertId],close->[close],select->[p],lock->[e],selectFirst->[fetch],toArray->[fetch],unlock->[e],update->[e,replace],count->[fetchFirs... | Count the number of records matching the given conditions. | I just realized that the `$row` value is not part of the logging. Could you add it to the log? it could be helpful for debugging. |
@@ -22,9 +22,9 @@ public final class ContextPropagationDebug {
ContextKey.named("thread-propagation-locations");
private static final boolean THREAD_PROPAGATION_DEBUGGER =
- Boolean.getBoolean("otel.threadPropagationDebugger");
+ Boolean.getBoolean("otel.javaagent.experimental.thread-propagation-d... | [ContextPropagationDebug->[debugContextLeakIfEnabled->[isThreadPropagationDebuggerEnabled],debugContextPropagation->[getLocations]]] | Returns true if the thread propagation debugger is enabled. | What do you think about `otel.javaagent.debug.thread-propagation.enabled` instead? We could also set its default value to `Config.isAgentDebugEnabled()` |
@@ -2394,6 +2394,7 @@ void AddVarsToScope(ParseNode *vars, ByteCodeGenerator *byteCodeGenerator)
if (sym->IsThis())
{
funcInfo->SetThisSymbol(sym);
+ funcInfo->GetParsedFunctionBody()->SetHasThis(true);
}
else if... | [No CFG could be retrieved] | MapFormalsFromPattern maps formal variables from pattern to function scope. Visits the parse nodes that contain a non - null nop function and calls the action function. | So is the this symbol created only when there's a reference to this? |
@@ -205,6 +205,15 @@ class MyModule < ApplicationRecord
.count
end
+ def assigned_repositories_list
+ my_module_repository_rows.joins(repository_row: :repository)
+ .select('
+ repositories.name,
+ ... | [MyModule->[navigable?->[navigable?],space_taken->[space_taken],viewable_by_user->[viewable_by_user]]] | count the number of repository rows in the system. | Does it return collection of Repository models? |
@@ -179,11 +179,11 @@ def pip_src(tmpdir_factory):
ignored.extend(fnmatch.filter(names, pattern))
return set(ignored)
- pip_src = Path(str(tmpdir_factory.mktemp('pip_src'))).join('pip_src')
+ pip_src = Path(str(tmpdir_factory.mktemp('pip_src'))).joinpath('pip_src')
# Copy over our sou... | [wheel_install->[_common_wheel_editable_install],InMemoryPip->[pip->[InMemoryPipResult]],with_wheel->[install_egg_link],virtualenv_template->[install_egg_link],in_memory_pip->[InMemoryPip],setuptools_install->[_common_wheel_editable_install]] | pip_src returns the path of the pip source directory where pip can find a node. | missing a str() wraparound |
@@ -2086,7 +2086,7 @@ class ExtraFields
$value_key = '';
}
}
- elseif (in_array($key_type, array('price', 'double')))
+ elseif (in_array($key_type, array('price', 'double', 'html')))
{
$value_arr = GETPOST("options_".$key, 'alpha');
$value_key = price2num($value_arr);
| [ExtraFields->[create->[lasterror,query,DDLAddField,lasterrno],fetch_name_optionals_label->[lasterror,fetch_object,query,num_rows],addExtraField->[create,create_label],update_label->[query,rollback,begin,escape,commit,idate],showSeparator->[trans],showOutputField->[fetch,query,getNomUrl,trans,fetch_object,lasterror,esc... | Set options from POST Check if the field is required and if so add the required field to the object This function is used to set the value of an option in the object. | You apply the method price2num on a html field ? |
@@ -143,8 +143,9 @@ public class GobblinTaskRunner implements StandardMetricsBridge {
protected final FileSystem fs;
private final List<Service> services = Lists.newArrayList();
- private final String applicationName;
- private final String applicationId;
+ protected final String applicationName;
+ protecte... | [GobblinTaskRunner->[saveConfigToFile->[saveConfigToFile],ParticipantShutdownMessageHandlerFactory->[getMessageTypes->[getMessageType],ParticipantShutdownMessageHandler->[handleMessage->[run->[stop]]]],createTaskStateModelFactory->[getReceiverManager],addInstanceTags->[getReceiverManager],addShutdownHook->[run->[stop],... | Creates a GobblinTaskRunner object. Build container metrics. | Are we spilling implementation details (e.g. yarn for here) into a generic-purpose class (`GobblinTaskRunner`) by doing this? |
@@ -399,7 +399,9 @@ namespace System.Linq.Parallel
}
_mergeHelper._consumerWaiting[producer] = true;
+#pragma warning disable CA1416 // Validate platform compatibility, it might not reachable on browser, suppressing for now
Monitor.Wait(buffer... | [OrderPreservingPipeliningMergeHelper->[ProducerComparer->[Compare->[Compare]],OrderedPipeliningMergeEnumerator->[Dispose->[Dispose]]]] | TryWaitForElement - Wait for an element from the buffer. | This needs real fix |
@@ -392,6 +392,18 @@ public class CppCompletionRequest
else
insertText = insertText + "(";
}
+ else if (completion.getType() == CppCompletion.DIRECTORY)
+ {
+ insertText += "/";
+ Scheduler.get().scheduleDeferred(new ScheduledCommand()
+ {
+ @Ov... | [CppCompletionRequest->[getRangeForDiagnostic->[getRangeForSpecializedDiagnostic],applyValue->[terminate],onResponseReceived->[updateUI],onError->[showCompletionPopup],asLintArray->[getRangeForDiagnostic],getRangeForSpecializedDiagnostic->[createRangeFromMatch]]] | Applies a value to the completion. | The goal here is to automatically pop up a new set of completions after inserting a directory completion -- is there a cleaner way? |
@@ -156,6 +156,8 @@ namespace Dynamo.PackageManager
{
_searchState = value;
RaisePropertyChanged("SearchState");
+ RaisePropertyChanged("SearchBoxPrompt");
+ RaisePropertyChanged("ShowSearchText");
}
}
| [PackageManagerSearchViewModel->[Refresh->[Sort],SetSortingKey->[Sort],SearchAndUpdateResults->[ClearSearchResults,AddToSearchResults,SearchAndUpdateResults],Sort->[Sort],Search->[Sort],PackageOnExecuted->[JoinPackageNames],KeyHandler->[SelectPrevious,SelectNext],RefreshAndSearch->[Refresh],SetSortingDirection->[Sort]]... | The base class for all of the properties that are used by the package manager. Retrieve the current download handles for a given package. | you should be able to use `nameof` here |
@@ -605,7 +605,6 @@ def test_scraper(tmpdir):
rst = scraper(block, block_vars, gallery_conf)
out_html = op.join(app.builder.outdir, 'auto_examples', 'my_html.html')
assert not op.isfile(out_html)
- os.makedirs(op.join(app.builder.outdir, 'auto_examples'))
scraper.copyfiles()
assert op.isfile... | [test_add_slider_to_section->[_get_example_figures],test_open_report->[_get_example_figures],test_add_or_replace->[_get_example_figures],test_remove->[_get_example_figures],test_scraper->[_get_example_figures]] | Test report scraping. Check if there is a 6 - element element in rst. | this line is the one that creates `op.join(app.builder.outdir, 'auto_examples')` (which then leads to a `FileExists` error on the deleted line) |
@@ -1,12 +1,13 @@
# Authors : Alexandre Gramfort, alexandre.gramfort@telecom-paristech.fr (2011)
# Denis A. Engemann <denis.engemann@gmail.com>
+# Mikolaj Magnuski <mmagnuski@swps.edu.pl>
# License : BSD 3-clause
import numpy as np
from ..parallel import parallel_func
from ..io.pick import... | [psd_array_welch->[_check_nfft],psd_welch->[_check_psd_data,psd_array_welch],psd_multitaper->[_check_psd_data]] | Aux function. | I'm not sure if I should add myself here :) If so - there are probably other people I should add here. |
@@ -1772,9 +1772,9 @@ rebuild_fail_all_replicas(void **state)
static void
multi_pools_rebuild_concurrently(void **state)
{
-#define POOL_NUM 6
-#define CONT_PER_POOL 4
-#define OBJ_PER_CONT 256
+#define POOL_NUM 4
+#define CONT_PER_POOL 2
+#define OBJ_PER_CONT 8
test_arg_t *arg = *state;
test_arg_t *args... | [run_daos_rebuild_test->[MPI_Barrier,run_daos_sub_tests,ARRAY_SIZE],rebuild_setup->[test_setup],void->[daos_obj_layout_get,daos_kill_server,rebuild_add_back_tgts,rebuild_change_leader_cb,test_get_leader,rebuild_io_obj_internal,D_ASSERT,MPI_Barrier,test_teardown,rebuild_destroy_pool_internal,test_pool_get_info,dts_oid_g... | rebuild_concurrently - rebuilds all objects in a pool in parallel - - - - - - - - - - - - - - - - - -. | (style) trailing whitespace |
@@ -51,6 +51,12 @@ const PREVIOUS_SCREEN_AREA_RATIO = 0.25;
*/
const PROTECTED_SCREEN_EDGE_PX = 48;
+/** @private @const {number} */
+const PAGE_ATTACHMENT_SAFETY_AREA_PX = 104;
+
+/** @private @const {number} */
+const CTA_SAFETY_AREA_PERCENTAGE = 0.2;
+
const INTERACTIVE_EMBEDDED_COMPONENTS_SELECTORS = Object.v... | [No CFG could be retrieved] | A simple base class for AMP story - store - service and AMP story - analytics Config for the next and previous state of a node. | I can remove these values as they're no longer used |
@@ -40,6 +40,7 @@ class JvmTarget(Target, Jarable):
services=None,
platform=None,
strict_deps=None,
+ exports=None,
fatal_warnings=None,
zinc_file_manager=None,
# Some subclasses can have both .java and .scala ... | [JvmTarget->[resources->[isinstance],get_jar_dependencies->[collect_jar_deps->[isinstance,update],OrderedSet,walk],has_resources->[len],subsystems->[super],traversable_dependency_specs->[global_plugin_dependency_specs,super],platform->[global_instance],__init__->[Payload,SetOfPrimitivesField,create_sources_field,Primit... | Initialize a new object. Initialize the jvm target. This is only used for generating resources. It should not affect resources. | I wonder if this could even go on `Target` itself? There's nothing intrinsically JVM-y about the concept, that I can see. The same is true for `strict_deps` itself, of course, but I wouldn't expect you to move that in this change. Or is there some reason why it makes more sense for this to be only on JVM targets? |
@@ -576,7 +576,7 @@ namespace System.Xml.Serialization
WriteNullTagLiteral(name, null);
}
- protected void WriteNullTagLiteral(string name, string ns)
+ protected void WriteNullTagLiteral(string? name, string? ns)
{
if (name == null || name.Length == 0)
... | [XmlSerializationWriterCodeGen->[WriteArrayTypeCompare->[WriteArrayTypeCompare],GenerateTypeElement->[WriteEncodedNullTag,WriteEmptyTag,WriteLiteralNullTag],WriteEnumMethod->[GetStringForEnumLongValue,Add,WriteEnumCase,WriteQuotedCSharpString,WriteLocalDecl],WriteEnumCase->[WriteEnumCase],WriteLiteralNullTag->[WriteTag... | Write a tag literal if the tag is null. | `name` should be nullable on above method (line 577) also. |
@@ -53,8 +53,8 @@ After this import statement
* transform classes are available as beam.FlatMap, beam.GroupByKey, etc.
* Pipeline class is available as beam.Pipeline
-* text source/sink classes are available as beam.io.TextFileSource,
- beam.io.TextFileSink
+* text source/sink transforms are available as beam.io.R... | [RuntimeError] | The main entry point for the programming model. | typo in Read |
@@ -125,7 +125,11 @@ public class CompositeSourcePolicy extends
*/
@Override
protected Publisher<CoreEvent> processPolicy(Policy policy, Processor nextProcessor, CoreEvent event) {
- return just(event).transform(sourcePolicyProcessorFactory.createSourcePolicy(policy, nextProcessor));
+ return just(event... | [CompositeSourcePolicy->[processPolicy->[createSourcePolicy,transform],process->[just,orElse,left,onErrorResume,SourcePolicyFailureResult],processNextOperation->[getMessage,error,doOnError],concatMaps->[putAll],getLogger]] | Process the given policy with the given processor. | Should have different messages for the start and the end of the policy execution. Right now is always just showing `Processing` |
@@ -41,7 +41,12 @@ if ($route === '/import-status') {
require_once ROOT_PATH . 'libraries/common.inc.php';
$routes = require ROOT_PATH . 'libraries/routes.php';
-$dispatcher = simpleDispatcher($routes);
+/** @var \PhpMyAdmin\Config|null $config */
+$config = $GLOBALS['PMA_Config'];
+$dispatcher = cachedDispatcher($... | [get,setHttpResponseCode,dispatch,display] | Handle the action. | I don't think we should use the temp dir. I think a `cache` dir should be created somewhere, and warm up the cache for the release. We can use the same cache dir later for the Twig cache (#14604). |
@@ -100,6 +100,10 @@ func (cfg *HATrackerConfig) RegisterFlags(f *flag.FlagSet) {
"distributor.ha-tracker.update-timeout",
15*time.Second,
"Update the timestamp in the KV store for a given cluster/replica only after this amount of time has passed since the current stored timestamp.")
+ f.DurationVar(&cfg.Updat... | [checkKVStore->[Time,Sub,FromTime,CAS],stop->[cancel],loop->[Time,WatchPrefix,Unlock,Seconds,Observe,Lock,Inc,WithLabelValues,Since,Set,SplitN],RegisterFlags->[DurationVar,RegisterFlagsWithPrefix,BoolVar],checkReplica->[Time,WithLabelValues,Error,GetCode,Sprintf,checkKVStore,RUnlock,Now,RLock,Log,HTTPResponseFromError,... | RegisterFlags registers flags that are specific to the HATracker. | We probably want to enforce that `FailoverTimeout > UpdateTimeout+UpdateTimeoutJitter` by at least `time.Second`. Check in `newClusterTracker` where we already enforce that `Failover > Update`. |
@@ -526,16 +526,10 @@ func (ta *TestApplication) Stop() error {
// cleans up only in test.
// FIXME: TestApplication probably needs to simply be removed
err := ta.ChainlinkApplication.StopIfStarted()
- if err != nil {
- return err
- }
if ta.Server != nil {
ta.Server.Close()
}
- if ta.wsServer != nil {
- ... | [NewBox->[NewBox],Get->[Get],Delete->[Delete],NewClientAndRenderer->[MustSeedNewSession],NewHTTPClient->[MustSeedNewSession],Start->[Start],Post->[Post],Import->[Import],Patch->[Patch],Put->[Put],Stop,Get,Delete,FailNow,NewHTTPClient,Post] | Stop stops the application and all of its child applications. | `ta.wsServer` was unused, and I think we always want to close the `ta.Server`, no? |
@@ -630,6 +630,11 @@ func resourceSqlDatabaseInstanceRead(d *schema.ResourceData, meta interface{}) e
return err
}
+ // In the import case name won't be set yet
+ if _, ok := d.GetOk("name"); !ok {
+ d.Set("name", d.Id())
+ }
+
instance, err := config.clientSqlAdmin.Instances.Get(project,
d.Get("name").(st... | [Printf,GetChange,MatchString,GetOk,UniqueId,Do,Sprintf,Partial,HasChange,List,TrimPrefix,Delete,Insert,Errorf,SetId,Get,Set,Update] | resourceSqlDatabaseInstanceRead deletes the user associated with the given instance. if there are any authorized_gae applications in the backup_configuration. | Instead of setting `name` here, let's use d.Id() in the `Get` below, and `d.Set` `name` using the `Name` property of `instance` later. That way, both refresh and import run through the same code |
@@ -116,6 +116,9 @@ class MSBuild(object):
if toolset:
command.append('/p:PlatformToolset="%s"' % toolset)
+ if verbosity:
+ command.append('/verbosity:%s' % verbosity)
+
if props_file_path:
command.append('/p:ForceImportBeforeCppTargets="%s"' % props_file... | [MSBuild->[_get_props_file_contents->[get_safe,list,append,get,vs_std_cpp,copy,filter,format,join,%,vs_build_type_flags],build->[_get_props_file_contents,environment_append,get_command,vcvars_command,run,save],get_version->[ConanException,Version,decode_text,Popen,vcvars_command,compile,format,match],get_command->[get_... | Get the command to build a single node configuration. This function returns the command to create a object. | This condition will be always `True`? |
@@ -56,6 +56,7 @@ def test_it(request):
pass
-def _ps(powershell_str, capture_stdout=False):
+def _ps(powershell_str: str, capture_stdout: bool = False) -> Any:
fn = subprocess.check_output if capture_stdout else subprocess.check_call
- return fn(['powershell.exe', '-c', powershell_str], universal_... | [_ps->[fn],test_it->[time,sleep,AssertionError,_ps,check_output,strip,read,join,open,getmtime,match,check_call],skipIf] | Run powershell with the given string. | Is `Any` due to the pain of rewriting `test_it` to type this differently? |
@@ -220,7 +220,7 @@ class Openblas(MakefilePackage):
arch_name = openblas_arch_map.get(arch_name, arch_name)
args.append('ARCH=' + arch_name)
- if microarch.vendor == 'generic':
+ if microarch.vendor == 'generic' and microarch.family.name != 'riscv64':
# Us... | [Openblas->[make_defs->[_microarch_target_args],_microarch_target_args->[_read_targets]]] | Given a spack microarch and a list of targets found in OpenBLAS Get the arguments for the call. | Why use `micro arch.family.name` here and `micro arch.name` at line 242? |
@@ -38,6 +38,7 @@ import java.util.List;
*/
public class InMemoryCompressedLongs implements IndexedLongs
{
+ public static final CompressedObjectStrategy.CompressionStrategy COMPRESSION = CompressedObjectStrategy.CompressionStrategy.LZ4;
private final CompressedLongBufferObjectStrategy strategy;
private fina... | [InMemoryCompressedLongs->[addAll->[add],loadBuffer->[get],get->[size,get],fill->[size,get],add->[add],close->[close]]] | Creates a new instance of InMemoryCompressedLongs that contains all the data in the LongBuffer Creates a compressed buffer for the given long value. | is there a more common place we can put this static? |
@@ -242,7 +242,7 @@ public class ItemsTest {
.withRedirectEnabled(false)
.withThrowExceptionOnFailingStatusCode(false);
WebResponse webResponse = wc.getPage(new WebRequest(new URL(wc.getContextPath() + "createItem?name=" + target + "&mode=hudson.model.F... | [ItemsTest->[allItemsPredicate->[allItems],overwriteNonexistentTarget->[overwriteTargetSetUp],getAllItems->[getAllItems],overwriteHiddenTarget->[cannotOverwrite],overwriteKnownTarget->[cannotOverwrite],allItems->[allItems],getAllItemsPredicate->[getAllItems],overwriteVisibleTarget->[cannotOverwrite],cannotOverwrite->[o... | Create a new item in the project. | What would be the motivation behind this? |
@@ -42,12 +42,14 @@ describe('Profile reducer tests', () => {
const payload = {
data: {
'display-ribbon-on-profiles' : 'awesome ribbon stuff',
- activeProfiles : [ 'prod' ]
+ activeProfiles : [ 'prod' ],
+ 'mailEnabled': false
}
};
expect(pr... | [No CFG could be retrieved] | Demonstrates how to use the License for a single object. The action middleware that handles the action - related stuff. | dont quote the key when its camelcased |
@@ -513,9 +513,11 @@ export class AmpAutocomplete extends AMP.BaseElement {
renderResults_(filteredData, container, input) {
let renderPromise = Promise.resolve();
this.resetActiveElement_();
- if (this.templateElement_) {
- renderPromise = this.templates_
- .renderTemplateArray(this.templat... | [No CFG could be retrieved] | Filters the given data according to the given input and renders it into the given container element. Apply the filter to the given data based on the given input. | This call is duplicated. Do we expect its return value to change? |
@@ -8,8 +8,10 @@ import (
"testing"
"time"
- "github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-01-01/consumption"
"github.com/Azure/go-autorest/autorest/date"
+
+ "github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-10-01/consumption"
+ //"github.com/Azure/go-autorest/autorest/date"... | [HasKey,Equal,NewFromFloat,GetValue,Parse] | TestEventMapping creates a test event mapping from the given . prop2 is the properties of the last 2 events in the series. | Maybe this can be completely removed if not needed? |
@@ -690,6 +690,8 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
switch (drawtype) {
default:
case NDT_NORMAL:
+ material_type = (alpha == 255) ?
+ TILE_MATERIAL_OPAQUE : TILE_MATERIAL_ALPHA;
solidness = 2;
break;
case NDT_AIRLIKE:
| [removeNode->[getId],addNameIdMapping->[set],getIdFromNrBacklog->[getId],getNodeBoxUnion->[boxVectorUnion],applyTextureOverrides->[getId],allocateId->[ContentFeatures],getId->[getId],getIdsFromNrBacklog->[getIds,getId],nodeResolveInternal->[clear],reserve->[reserve],serializeOld->[serialize],updateTextures->[correctAlp... | This function is called by the UI thread when a node is added to a scene. n - t - n - t - n - t - n - t - n - The node shader is the node shader and the tile shader is the shaders that are read all the data in the specified file and fill in the tile attributes This function is used to convert nodeboxes to meshes. | The default for alpha is 255, but i'm not sure any mod nodes other than liquids use the 'alpha' nodedef, they seem to use 'use texture alpha' instead. Also, semi-translucency is buggy in MT so not really usable on normal nodes. So perhaps this check is not needed? |
@@ -138,13 +138,7 @@ def test_plot_topomap_animation():
plt.close('all')
# Test plotting of fnirs types
- montage = make_standard_montage('biosemi16')
- ch_names = montage.ch_names
- ch_types = ['eeg'] * 16
- info = create_info(ch_names=ch_names, sfreq=20, ch_types=ch_types)
- evoked_data = n... | [test_plot_tfr_topomap->[AverageTFR,linspace,rand,_onselect,pick_info,channel_indices_by_type,copy,read_raw_fif,randn,list,MouseEvent,len,RandomState,close,plot_psds_topomap,gcf,plot_topomap,gca,arange,subplots,array],test_plot_topomap_animation->[randn,read_evokeds,_func,set_channel_types,len,make_standard_montage,Evo... | Test topomap plotting. | it's weird that _gen_nirs_data gets you some data with no NIRS channel. Can you put the set_channel_types in the private function _gen_nirs_data? |
@@ -158,5 +158,6 @@ function cleanupOldServerFiles(generator, javaDir, testDir, mainResourceDir, tes
}
if (generator.isJhipsterVersionLessThan('5.2.2')) {
generator.removeFile(`${javaDir}config/ElasticsearchConfiguration.java`);
+ generator.removeFile('gradle/liquibase.gradle');
}
}
| [No CFG could be retrieved] | Missing configuration file. | @jdubois Is this the right place to remove the file? I am a bit confused by the version number |
@@ -761,6 +761,13 @@ namespace Dynamo.Wpf.ViewModels.Watch3D
DeleteGeometries(geometryModels, requestUpdate);
}
+ protected override void OnRenderPackagesUpdated(NodeModel node, IEnumerable<IRenderPackage> packages)
+ {
+ RemoveGeometryForNode(node);
+ base.O... | [HelixWatch3DViewModel->[SetSelection->[FindAllGeometryModel3DsForNode],OnSceneItemsChanged->[UpdateSceneItems,OnRequestViewRefresh],OnWorkspaceCleared->[OnWorkspaceCleared],RemoveGeometryForUpdatedPackages->[DeleteGeometryForIdentifier],SaveCamera->[LogCameraWarning],OnWorkspaceSaving->[SerializeCamera],OnNodeProperty... | Delete all geometries for the given identifier. | @mjkkirschner I don't think we need to override `OnRenderPackagesUpdated` here anymore as we have already made the necessary changes to it in the base class above. |
@@ -80,6 +80,8 @@ public class SCMStateMachine extends BaseStateMachine {
// and reinitialize().
private DBCheckpoint installingDBCheckpoint = null;
+ private Daemon leaderReady;
+
public SCMStateMachine(final StorageContainerManager scm,
SCMHADBTransactionBuffer buffer) {
this.scm = scm;
| [SCMStateMachine->[close->[close],initialize->[initialize],getLatestSnapshot->[getLatestSnapshot]]] | The SCM state machine is a base class that represents a state machine for the SCMR Returns the latest snapshot of the State Machine. | leaderReady -> leaderReadyDetector |
@@ -74,9 +74,15 @@ import java.util.concurrent.TimeUnit;
@SeeAlso(GetHDFS.class)
public class PutHDFS extends AbstractHadoopProcessor {
- public static final String REPLACE_RESOLUTION = "replace";
- public static final String IGNORE_RESOLUTION = "ignore";
- public static final String FAIL_RESOLUTION = "fai... | [PutHDFS->[changeOwner->[getValue,warn,setOwner],onScheduled->[getValue,parseShort,FsPermission,getProperty,setUMask,isSet,getConfiguration,abstractOnScheduled],onTrigger->[process->[create,flush,BufferedInputStream,copy,close,createOutputStream,delete],getValue,Path,longValue,getDefaultBlockSize,getInt,IOException,toS... | Creates a new putHDFS relationship that copies FlowFiles to HDFS. Indicates what should happen when a file with the same name already exists in the output directory. | Pierre; I understand why/what you did here, but given the fact that both the class and the variable names are `public`, this constitutes a breaking change. |
@@ -308,7 +308,9 @@ DataReaderImpl::add_association(const RepoId& yourId,
//get message block from octet seq then deser to a type info
XTypes::TypeInformation ti;
- XTypes::deserialize_type_info(ti, writer.serializedTypeInfo);
+ DCPS::OctetSeq seq;
+ copy(seq, writer.serializedTypeInfo);
+ XTypes::deseriali... | [No CFG could be retrieved] | This method extracts the message block from the writer and adds it to the list of associations. Associates a transport layer with a data reader. | Looks costly to each time copy the buffer just to pass it to a different operation which expects a OctetSeq in a different namespace |
@@ -117,9 +117,8 @@ public abstract class Telemetry implements ExtensionPoint {
*
* This method is called periodically, once per content submission.
*
- * @return The JSON payload
+ * @return The JSON payload, or null if no content should be submitted.
*/
- @Nonnull
public abstra... | [Telemetry->[TelemetryReporter->[execute->[createContent,isDisabled,getId]]]] | Get all telemetry extensions. | You could add `@Nullable` or `@CheckForNull` (not sure what the difference is). |
@@ -653,7 +653,8 @@ function createBaseCustomElementClass(win) {
getSizer_() {
if (
this.sizerElement === undefined &&
- this.layout_ === Layout.RESPONSIVE
+ (this.layout_ === Layout.RESPONSIVE ||
+ this.layout_ === Layout.INTRINSIC)
) {
// Expect sizer to exi... | [No CFG could be retrieved] | Updates the layoutBox and returns the sizerElement. Method Query - Gets the attribute of the element. | Is this not the `sizer` variable? |
@@ -61,6 +61,8 @@ class CmdDataStatus(CmdDataBase):
logger.info(json.dumps(st))
elif st:
self._show(st, indent)
+ elif not self.repo.stages:
+ logger.info(self.EMPTY_PROJECT_MSG)
else:
logger.info(self.UP_TO_DATE_MSG)... | [CmdDataStatus->[run->[_show],_show->[_normalize,_show]]] | Checks if a is available in the repository. | Nice, thanks @DDR0 ! We should check whether this affects any command line sample blocks in docs... |
@@ -155,6 +155,16 @@ export function getElement(selector, el, selectionMethod) {
if (!el) {
return null;
}
+
+ // Special case for root selector.
+ if (selector == ':host' || selector == ':root') {
+ const elWin = el.ownerDocument.defaultView;
+ const parentEl = elWin.frameElement && elWin.frameEleme... | [No CFG could be retrieved] | Gets the element that matches the given selector. A class that allows a caller to specify conditions to evaluate when an element is in the viewport. | So this case now should also support `!selector`, right? |
@@ -267,7 +267,7 @@ int ipc_buffer_new(struct ipc *ipc, struct sof_ipc_buffer *desc)
buffer = buffer_new(desc);
if (buffer == NULL) {
trace_ipc_error("ipc_buffer_new() error: buffer_new() failed");
- rfree(ibd);
+
return -ENOMEM;
}
| [No CFG could be retrieved] | create a buffer for a given component region Buffer management. | At this point ibd is NULL, because of the if statement few lines above. |
@@ -459,11 +459,13 @@ class InstallCommand(RequirementCommand):
if options.target_dir:
self._handle_target_dir(
- options.target_dir, target_temp_dir, options.upgrade
+ options.target_dir, target_temp_dir, options.upgrade,
+ options.prefix_path
... | [InstallCommand->[run->[build_wheels]],build_wheels->[is_wheel_installed]] | Run the command. Initialize a missing dependency. This function is called by the command line when it is called from the command line. It Handle the necessary functionality of the command. Find the missing libraries and files. | Doesn't this *only* handle `--prefix=""` in the case where `--target` is specified? What about other cases where the user might want to reset a globally-set prefix? |
@@ -13,7 +13,14 @@ def get_list(text):
return [item.strip() for item in text.split(',')]
-DEBUG = ast.literal_eval(os.environ.get('DEBUG', 'True'))
+def get_bool(name, default_value):
+ if name in os.environ:
+ value = os.environ[name]
+ return ast.literal_eval(value)
+ return default_value... | [get_list->[strip,split],get_host->[get_current],get_currency_fraction,literal_eval,bool,int,_,parse,append,get_list,dirname,insert,get,getenv,config,setdefault,repr,join,normpath] | Load a specific object. This function is a static helper function that returns a list of all possible unique identifiers. | I wonder if we can find more descriptive name for this. `get_env_variable_value`? I'd look for something not too long, but providing enough information. |
@@ -154,13 +154,12 @@ class PreferencesService(BaseService):
def update_session_prefs(self, updates, existing_session_preferences, session_id):
session_prefs = updates.get(_session_preferences_key)
if session_prefs is not None:
- for k in ((k for k, v in session_prefs.items() if k not ... | [PreferencesService->[enhance_document_with_default_prefs->[update],email_notification_is_enabled->[get_user_preference],update->[find_one,update]]] | Update session preferences and user preferences. | any idea why this was here? it prevented local updates to session preferences which got only modified using response but it was in form `{'session_preferences': {'session_id': {'key': 'va'}}}` which was not handled by prefs service @amagdas @mugurrus @ioanpocol @akintolga @marwoodandrew @sivakuna-aap @mdhaman |
@@ -61,6 +61,9 @@ MAILING_LISTS_VIEW = AclPermission('MailingLists', 'View')
# Can moderate add-on ratings submitted by users.
RATINGS_MODERATE = AclPermission('Ratings', 'Moderate')
+# Can access advanced reviewer features.
+REVIEWS_EDIT = AclPermission('Reviews', 'Edit')
+
# All permissions, for easy introspecti... | [AclPermission,namedtuple,isinstance,vars] | Can moderate add - on ratings submitted by users?. | This description is a little vague, and the naming implies they can actually edit reviewer reviews (which I don't think it what it allows) |
@@ -39,14 +39,16 @@ func (projectStrategy) NamespaceScoped() bool {
return false
}
-func (projectStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
+func (projectStrategy) PrepareForCreate(_ context.Context, obj runtime.Object) {
project := obj.(*core.Project)
project.Generation = 1
proj... | [Validate->[ValidateProject],ValidateUpdate->[ValidateProjectStatusUpdate,ValidateProjectUpdate],PrepareForUpdate->[DeepEqual]] | PrepareForCreate clears fields that are not namespace scoped and will not be set by end users. | Can you simplify the computation of the roles for the new members? I think, it would be easier to read, if you would drop these lines and drop `memberToNewRoles` and rather loop over the keys of `oldMembersToRoles` for each member at the end. |
@@ -214,7 +214,7 @@ class ServerSession(object):
self._current_patch = message
self._current_patch_connection = connection
try:
- message.apply_to_document(self.document)
+ message.apply_to_document(self.document, self.id)
finally:
self._current_pat... | [ServerSession->[_wrap_session_callbacks->[_wrap_session_callback],pull->[_handle_pull],_wrap_session_callback->[_wrap_document_callback],patch->[_handle_patch],push->[_handle_push],_wrap_document_callback->[wrapped_callback->[with_document_locked]],__init__->[current_time],_session_callback_added->[_wrap_session_callb... | Handles a patch message. | a minor detail but I think you could use simply `self` rather than `self.id` as long as you then test `getattr(event, 'setter_id', None) is self` (`is` rather than `==`). |
@@ -370,11 +370,16 @@ public class ExpansionService extends ExpansionServiceGrpc.ExpansionServiceImplB
private @MonotonicNonNull Map<String, TransformProvider> registeredTransforms;
private final PipelineOptions pipelineOptions;
+ private String allowlistFile = "";
public ExpansionService() {
this(ne... | [ExpansionService->[expand->[getTransform,apply,expand],loadRegisteredTransforms->[knownTransforms],ExternalTransformRegistrarLoader->[payloadToConfigSetters->[decodeRow],payloadToConfigSchema->[decodeRow]],main->[ExpansionService],NotRunnableRunner->[fromOptions->[NotRunnableRunner]],apply->[extractOutputs,getTransfor... | Provides a way to configure the expansion service. This method is used to register the external transforms. | Drop this member variable. |
@@ -11,12 +11,13 @@ class Aspect(CMakePackage):
Earth's mantle and elsewhere."""
homepage = "https://aspect.geodynamics.org"
- url = "https://github.com/geodynamics/aspect/releases/download/v2.0.0/aspect-2.0.0.tar.gz"
+ url = "https://github.com/geodynamics/aspect/releases/download/v2.1.0/as... | [Aspect->[setup_environment->[set],variant,depends_on,version]] | Parallel extendible finite element code to simulate convection in the Earth s Set the aspect directory prefix. | You can actually rename this to master now if you want. |
@@ -6,6 +6,16 @@ var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
var os = require('os');
+const constants = require('../generators/generator-constants'),
+ TEST_DIR = constants.TEST_DIR,
+ CLIENT_MAIN_SRC_DIR = constants.CLIENT_MAIN_SRC_DIR,
+ CLIENT_TEST_SRC_DIR = constants.CL... | [No CFG could be retrieved] | Define the describe function This file contains all the possible authorities that are available in the liquibase. | Is this 4 space ? All Js files should be 4 space as per our editorconfig |
@@ -69,6 +69,18 @@ public class CSVParseSpec extends ParseSpec
return columns;
}
+ @JsonProperty
+ public boolean isHasHeaderRow()
+ {
+ return hasHeaderRow;
+ }
+
+ @JsonProperty("skipHeaderRows")
+ public Integer getSkipHeaderRows()
+ {
+ return skipHeaderRows;
+ }
+
@Override
public voi... | [CSVParseSpec->[withTimestampSpec->[CSVParseSpec],withColumns->[CSVParseSpec],withDimensionsSpec->[CSVParseSpec]]] | check if there are no columns in the list and throw an exception if there are no columns. | Could be a primitive `int` |
@@ -4,7 +4,7 @@ from typing import TYPE_CHECKING, Callable, List, Optional
from django.db import transaction
-from ..payment.interface import TokenConfig
+from ..payment.interface import PaymentData, TokenConfig
from ..plugins.manager import get_plugins_manager
from . import GatewayError, PaymentError, Transacti... | [list_payment_sources->[list_payment_sources],payment_refund_or_void->[void,refund],get_client_token->[get_client_token]] | Decorator to wrap a function to provide a function that can be called to create a new token Process a Payment object. | Unused import :policeman: |
@@ -89,6 +89,15 @@ def typeof_type(val, c):
if issubclass(val, tuple) and hasattr(val, "_asdict"):
return types.NamedTupleClass(val)
+ try:
+ tp = numpy_support.from_dtype(val)
+ except NotImplementedError:
+ pass
+ else:
+ return types.ValueDType(tp)
+
+
+
@typeof_impl.re... | [_typeof_enum->[typeof_impl],_typeof_list->[typeof_impl],_typeof_tuple->[typeof_impl],_typeof_enum_class->[typeof_impl],_typeof_set->[typeof_impl],typeof_array->[typeof_impl]] | Type of the object. | I think you should check if `issubclass(val, numpy.generic)` |
@@ -734,14 +734,15 @@ func (ss *StateSync) SyncLoop(bc *core.BlockChain, worker *worker.Worker, willJo
ss.RegisterNodeInfo()
}
ticker := time.NewTicker(SyncLoopFrequency * time.Second)
+Loop:
for {
select {
case <-ticker.C:
otherHeight := ss.getMaxPeerHeight()
currentHeight := bc.CurrentBlock().N... | [SyncLoop->[purgeAllBlocksFromCache,getMaxPeerHeight,purgeOldBlocksFromCache,RegisterNodeInfo,ProcessStateSync],GetBlockHashesConsensusAndCleanUp->[getHowManyMaxConsensus,cleanUpPeers],GetBlocks->[GetBlocks],purgeAllBlocksFromCache->[ForEachPeer],getMaxConsensusBlockFromParentHash->[ForEachPeer],getMaxPeerHeight->[ForE... | SyncLoop is a long running goroutine that will process the state of the given block chain. | wont this create infinite loop? how does this fix the issue? |
@@ -332,7 +332,7 @@ public class QueryRegistryImpl implements QueryRegistry {
);
}
- private class ListenerImpl implements QueryMetadata.Listener {
+ private class ListenerImpl implements QueryMetadataImpl.Listener {
@Override
public void onError(final QueryMetadata queryMetadata, final QueryError... | [QueryRegistryImpl->[close->[close,getAllLiveQueries],createSandbox->[QueryRegistryImpl],ListenerImpl->[onClose->[onClose,unregisterQuery],onError->[onError],onStateChange->[onStateChange]]]] | Notifies all registered listeners that an error occurred. | Should we still implement `QueryMetadata.Listener` here? |
@@ -2133,3 +2133,15 @@ func validateGameliftOperatingSystem(v interface{}, k string) (ws []string, erro
}
return
}
+
+func validateGuardDutyIpsetFormat(v interface{}, k string) (ws []string, errors []error) {
+ value := v.(string)
+ validType := []string{"TXT", "STIX", "OTX_CSV", "ALIEN_VAULT", "PROOF_POINT", "FIR... | [MatchString,Sprintf,Contains,NormalizeJsonString,ToLower,String,Parse,Errorf,ParseCIDR,MustCompile,HasSuffix,Query] | Get the object. | Nitpick: Can you use the SDK provided constants please? e.g. `guardduty.IpSetFormatAlienVault` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.