patch
stringlengths
18
160k
callgraph
stringlengths
4
179k
summary
stringlengths
4
947
msg
stringlengths
6
3.42k
@@ -81,8 +81,8 @@ public final class AvailableGames { private static void populateFromZip(final File map, final Map<String, URI> availableGames, final Set<String> availableMapFolderOrZipNames) { try (InputStream fis = new FileInputStream(map); - ZipInputStream zis = new ZipInputStream(fis); - ...
[AvailableGames->[parse->[parse],newGameRepository->[GameRepository]]]
Populates the available maps with the names of the games in the given zip file.
`final` is redundant in a try-with-resources statement.
@@ -145,6 +145,9 @@ module.exports = class huobipro extends Exchange { 'api-signature-not-valid': AuthenticationError, // {"status":"error","err-code":"api-signature-not-valid","err-msg":"Signature not valid: Incorrect Access key [Access key错误]","data":null} 'base-record-invalid': Orde...
[No CFG could be retrieved]
Private API for handling errors in order. A dict of all possible currencies that can be used to create a new order.
@brandsimon is there an `err-code` corresponding to this error?
@@ -106,12 +106,12 @@ class CommandeApi extends DolibarrApi * @url GET /order/list * @return array Array of order objects */ - function getList($mode=0, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) { + function getList($mode=0, $societe = "", $sortfield = "s.rowi...
[CommandeApi->[getList->[plimit,fetch,query,num_rows,fetch_object,order],validOrder->[fetch,valid],get->[fetch,fetchObjectLinked,_cleanObjectDatas],post->[create,_validate],put->[fetch,get,update],delete->[fetch,delete]]]
Get a list of all records in the system Get all commande objects that match the conditions specified in the params.
If you introduce a new param of a function, you must add it at end. Otherwise this break compatibility of API i think.
@@ -15,8 +15,11 @@ #include <fstream> // External includes +#include "ghc/filesystem.hpp" // TODO after moving to C++17 this can be removed since the functions can be used directly // Project includes +#include "containers/model.h" +#include "includes/model_part.h" #include "testing/testing.h" #include "includ...
[dir_name->[KRATOS_CHECK_IS_FALSE],KRATOS_CHECK_STRING_EQUAL->[KRATOS_CHECK_STRING_EQUAL],base_dir_name->[KRATOS_CHECK_IS_FALSE],KRATOS_CHECK_IS_FALSE->[KRATOS_CHECK_IS_FALSE],file_name->[KRATOS_CHECK_IS_FALSE]]
Provides a basic example of how to read a single national network element from a network. Reads file name of dummy file and checks if file exists and is good.
In theory this is included in #include "includes/kratos_filesystem.h"
@@ -36,6 +36,8 @@ from .drvapi import API_PROTOTYPES from .drvapi import cu_occupancy_b2d_size, cu_stream_callback_pyobj, cu_uuid from numba.cuda.cudadrv import enums, drvapi, _extras +if config.CUDA_USE_CUDA_PYTHON: + from cuda import cuda as cuda_driver MIN_REQUIRED_CC = (3, 0)
[Device->[from_identity->[get_device,get_device_count],reset->[release_primary_context,reset]],host_memory_size->[host_memory_extents],Driver->[__new__->[__new__],is_available->[initialize],__getattr__->[initialize],reset->[reset],initialize->[_getpid,make_logger],__init__->[deref->[],find_driver],_check_error->[_getpi...
The implementation of the Resource interface. Create a logger that logs the Cuda object in the critical level.
I found this name (`cuda_driver`) a bit strange when reviewing the above files before I hit this location. Perhaps these should be referred to as something derived from "driver bindings" given this module is `driver` and contains a class `Driver`?
@@ -39,7 +39,7 @@ class RestartProcess(KratosMultiphysics.Process): self.model = Model # set up output frequency and format - self.output_frequency = self.settings["output_frequency"].GetDouble() + self.output_frequency = self.settings["output_interval"].GetDouble() self.o...
[RestartProcess->[CleanPosteriorFileType->[IsInt],__init__->[__init__]]]
Initialize the object with the specified model and custom settings. Return a sequence of Ready objects.
this process is heavily used, please also make it backward compatible I am surprised this even works in the tests, I thought I had tested it well
@@ -538,8 +538,14 @@ def _read_edf_header(fname, exclude): hour, minute, sec = [int(x) for x in re.findall(r'(\d+)', fid.read(8).decode())] century = 2000 if year < 50 else 1900 - meas_date = datetime(year + century, month, day, hour, minute, sec, - ...
[_read_gdf_header->[_parse_prefilter_string,_check_dtype_byte],read_raw_bdf->[RawEDF],_get_info->[_read_header],RawEDF->[_read_segment_file->[_read_segment_file]],_read_segment_file->[_read_ch],read_raw_edf->[RawEDF],RawGDF->[_read_segment_file->[_read_segment_file]],_read_edf_header->[_edf_str_int,_parse_prefilter_str...
Read header information from EDF + or BDF file. Read an EDF file and return the n - th . Parse the prefiltering string and return the EDF info and units.
we should have a consistent default date across readers. pb appeared in nirs format recently and anon has already 2 different defaults can you have a look?
@@ -151,10 +151,13 @@ <%= image_tag("three-dots.svg", class: "dropdown-icon", alt: "Toggle dropdown menu") %> </button> <div id="user-profile-dropdownmenu" class="profile-dropdownmenu"> - <button id="user-profile-dropdownmenu-block-button" data-profile-user-id="<%= @user.id %>" class="bloc...
[No CFG could be retrieved]
Renders the user s n - seqno UI. Displays a hidden hidden element that represents the last n - term in the system.
As discussed, this will need to be changed to client-side logic similar to how the block logic is created. Probably need to create an endpoint to ask whether someone has already reacted on a user. We could also scrap this part of it for now and make it only available on the `/mod` page. I think that would be at least a...
@@ -27,7 +27,6 @@ import ( buildv1 "github.com/openshift/api/build/v1" buildclientmanual "github.com/openshift/oc/pkg/helpers/build/client/v1" - buildapi "github.com/openshift/origin/pkg/build/apis/build" _ "github.com/openshift/origin/pkg/build/apis/build/install" )
[InstantiateBinary->[ReadAll,Errorf],HandlerFunc,TempFile,Close,Add,Error,NewBufferString,TestOnlyStaticRESTMapper,streamBuildLogs,NewBuildLogClient,New,NewTestIOStreamsDiscard,Errorf,NewTestIOStreams,NewTLSServer,Contains,Name,Remove,CreateHTTPClient,Fatalf,NewDecoder,Header,Write,Fprintf,NewServer,NewReader,Sprintf,N...
END of package startbuild missing imports the missing package and imports the missing package ClientClientConfig returns the client config and the error of the last known config object.
This is not addressed, and that's a major problem when you remove it that I'm currently handling.
@@ -171,4 +171,12 @@ var _ = Describe("Podman inspect", func() { Expect(imageData[0].HealthCheck.Interval).To(BeNumerically("==", 60000000000)) Expect(imageData[0].HealthCheck.Test).To(Equal([]string{"CMD-SHELL", "curl -f http://localhost/ || exit 1"})) }) + + It("podman inspect --latest with no container fails...
[InspectContainerToJSON,WaitWithDefaultTimeout,OutputToStringArray,Cleanup,ExitCode,InspectImageJSON,RunLsContainer,Contains,OutputToString,To,IsJSONOutputValid,SeedImages,Podman,Exit,Setup]
Expects that the image s health check interval is in milliseconds and that the image s health.
Do we have a test to make sure `podman image inspect --latest` fails when there is an image?
@@ -1523,6 +1523,11 @@ export class AmpStoryPlayer { case STORY_MESSAGE_STATE_TYPE.MUTED_STATE: this.onMutedStateUpdate_(/** @type {string} */ (data.value)); break; + case STORY_MESSAGE_STATE_TYPE.UI_STATE: + if (this.isDesktopPanelExperimentOn_) { + this.onUiStateUpdate_(/...
[No CFG could be retrieved]
Private method for handling the message. private private method for handling events coming from the story.
Just to make sure I follow: this is used for a window resized while the story is displayed, and the `getUiState_()` is used for Story to Story navigations?
@@ -30,6 +30,10 @@ module UserGuardian is_me?(user) || is_admin? end + def can_see_drafts?(user) + is_me?(user) || is_admin? + end + def can_silence_user?(user) user && is_staff? && not(user.staff?) end
[can_disable_second_factor?->[can_administer_user?],can_edit_email?->[can_edit?,sso_overrides_email?,enable_sso?,email_editable?,is_staff?],can_edit_name?->[can_edit?,enable_sso?,enable_names?,sso_overrides_name?,is_staff?],can_see_staff_info?->[is_staff?],can_anonymize_user?->[nil?,staff?,is_staff?],can_reset_bounce_s...
Check if a user can see notifications.
I think we need a spec for this as well :) Never know when we may regress.
@@ -553,6 +553,7 @@ $sync_settings_response = array( 'render_filtered_content' => '(int|bool=true) Set to 1 or true to render filtered content.', 'max_enqueue_full_sync' => '(int|bool=false) Maximum number of rows to enqueue during each full sync process', 'max_queue_size_full_sync' => '(int|bool=false) Maxim...
[No CFG could be retrieved]
This function returns a list of all the configuration options that can be used to configure the sync Jetpack_JSON_API_Sync_Get_Settings_Endpoint - Get sync.
You also need to add `full_sync_send_immediately_duration`
@@ -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()
@@ -129,7 +129,7 @@ public class QuietDownCommandTest { @Test public void quietDownShouldSuccessOnAlreadyQuietDownedJenkins() throws Exception { - j.jenkins.getActiveInstance().doQuietDown(); + j.jenkins.get().doQuietDown(); assertJenkinsInQuietMode(); final CLICommandInvoker...
[QuietDownCommandTest->[assertJenkinsInQuietMode->[assertJenkinsInQuietMode],assertJenkinsNotInQuietMode->[assertJenkinsNotInQuietMode]]]
Checks whether the quiet down of the Jenkins instance is in quiet mode.
Could this (and other occurences in tests) be changed to `Jenkins.get`?
@@ -3847,3 +3847,7 @@ function get_logs_data($maxToList = 'count') { $filetype = $file_parts[sizeof($file_parts) - 1]; return $filenum . "." . $filetype; } +function issetorArray(array $array, $key, $default = null) +{ + return isset($array[$key]) ? $array[$key] : $default; +}
[zen_build_subdirectories_array->[read,close],zen_get_language_name->[Execute],zen_get_products_master_categories_name->[Execute],zen_draw_order_status_dropdown->[Execute],zen_generate_category_path->[MoveNext,Execute],zen_cfg_select_coupon_id->[MoveNext,execute],zen_draw_products_pull_down->[MoveNext,prepare_input,for...
Get the uploaded file name from the name of the node.
This function exists in `DIR_FS_CATALOG . 'includes/functions/functions_general.php'` Maybe we can just move it over to `functions_general_shared.php` since the Admin loads that file already? And update the test `not_for_release/testFramework/unittests/testsSundry/IssetorArrayTest.php`
@@ -446,7 +446,16 @@ class DeeplinkSchemaMatch { } static bip21encode() { - return bip21.encode.apply(bip21, arguments); + const argumentsArray = Array.from(arguments); + for (const argument of argumentsArray) { + if (String(argument.label).replace(' ', '').length === 0) { + delete argument...
[No CFG could be retrieved]
- > - > - > - > - > - > - > - > - >.
nice! wheres the unit test for that?
@@ -60,7 +60,7 @@ describes.fakeWin('amp-story-request-service', {amp: true}, (env) => { }) .once(); - const config = await requestService.loadShareConfig(); + const config = await requestService.loadConfig(shareElement); expect(config).to.equal(fetchedConfig); xhrMock.verify(); });
[No CFG could be retrieved]
This test tests the load the share config. Fetches the AMPA config from the Share service.
Looks like you're using `loadShareConfig(shareElement)` below and `loadConfig(shareElement)` here. If this is unintentional, mind correcting the incorrect call?
@@ -49,11 +49,11 @@ class PasswordForm(SignupForm): self.fields['email'].widget = forms.HiddenInput() -class OrderNoteForm(forms.ModelForm): +class CustomerNoteForm(forms.ModelForm): + customer_note = forms.CharField( + max_length=250, required=False, strip=True, label=False, + widget=form...
[PasswordForm->[__init__->[HiddenInput,super]],PaymentDeleteForm->[save->[save],clean->[pgettext_lazy,error_class,get,filter,super],__init__->[super,pop],HiddenInput,IntegerField],PaymentMethodsForm->[ChoiceField,pgettext_lazy],OrderNoteForm->[Meta->[Textarea,pgettext_lazy]]]
Form for a OrderNote.
Aren't we missing a label here?
@@ -77,10 +77,12 @@ public class SelectorDimFilter implements DimFilter byte[] valueBytes = (value == null) ? new byte[]{} : StringUtils.toUtf8(value); byte[] extractionFnBytes = extractionFn == null ? new byte[0] : extractionFn.getCacheKey(); - return ByteBuffer.allocate(3 + dimensionBytes.length + valu...
[SelectorDimFilter->[getCacheKey->[getCacheKey],optimize->[optimize],equals->[equals],hashCode->[hashCode],getDimensionRangeSet->[getDimension,getExtractionFn,equals]]]
This method creates a cache key for the dimension value and extraction function.
nit: can we use `CacheKeyBuilder` here?
@@ -42,9 +42,17 @@ func newDestroyCmd() *cobra.Command { "all of this stack's resources and associated state will be gone.\n" + "\n" + "Warning: although old snapshots can be used to recreate a stack, this command\n" + - "is generally irreversable and should be used with great care.", + "is generally ir...
[Sprintf,Name,RunFunc,New,StringSliceVar,Colorization,StringVarP,VarP,IntVarP,QName,Destroy,Wrap,BoolVarP,PersistentFlags,BoolVar]
newDestroyCmd returns a new command that deletes an existing stack and its resources. uninstall - destroy a node with optional confirmation.
Perhaps "must be run interactively ..."?
@@ -104,8 +104,7 @@ func fetchSource(dockerClient DockerClient, dir string, build *api.Build, urlTim // remote repository failed to authenticate. // Since this is calling the 'git' binary, the proxy settings should be // available for this command. -func checkRemoteGit(gitClient GitClient, url string, timeout time.D...
[Error->[Sprintf],SetExclusionPattern,ExtractTarStreamWithLogging,TempFile,Close,GetInfo,TimedListRemote,Is,WriteFile,ValidCloneSpec,Copy,IsNotExist,CombinedOutput,Stat,New,CloneWithOptions,Checkout,Errorf,InspectImage,CreateContainer,NewHelper,Join,SubmoduleUpdate,Infof,Contains,Name,RemoveContainer,V,PullImage,Downlo...
extractGitSource extracts a git source from the specified build. Spec. checkRemoteGit checks the remote repository for a specific . It returns GitNotFoundError Git.
Don't display the first timeout duration, it's redundant. Just indicate the next interval.
@@ -28,6 +28,6 @@ bool WbDesktopServices::openUrl(const QString &url) { process.setArguments(QStringList() << url); return process.startDetached(); #else - return QDesktopServices::openUrl(QUrl(url, QUrl::StrictMode)); + return QDesktopServices::openUrl(QUrl(url)); #endif }
[openUrl->[QStringList,startDetached,setArguments,QUrl,setProgram]]
openUrl - open a URL in a browser.
The string url argument should already be encoded correctly otherwise it could also not work on Linux.
@@ -30,10 +30,11 @@ def main(): result = trainer.test(reader=paddle.reader.batched( paddle.dataset.mnist.test(), batch_size=256)) - print "Pass %d, Batch %d, Cost %f, %s, Testing metrics %s" % ( - event.pass_id, event.batch_id, event.cost, event....
[main->[event_handler->[isinstance,test,batched],train,infer,create,firstn,batched,init,fc,classification_cost,Adam,integer_value,map_readers,data,test,Softmax,shuffle,SGD,dense_vector],main]
This is the main function of the paddle training. print probs of missing items.
> Pass %d, Batch %d, Cost %.2f, %s, " > "Testing cost %.2f metrics %s" traintest? ~
@@ -22,10 +22,8 @@ export function initSearchData() { searchData.results = {}; searchData.noResults = false; searchData.term = undefined; - searchData.typeFilter = null; + searchData.typeFilter = "exclude_topics"; searchData.invalidTerm = false; - searchData.topicId = null; - searchData.afterAutocomplet...
[No CFG could be retrieved]
Imports the data structures for a single category tag. This method is called to retrieve the search results from the widget.
I'm wondering if we should move this to a constant like `DEFAULT_TYPE_FILTER` so that we don't duplicate this string across multiple places making it hard to change in the future.
@@ -374,8 +374,8 @@ export class AmpGeo extends AMP.BaseElement { } return { - ISOCountry: self.country_, - matchedISOCountryGroups: self.matchedGroups_, + ISOCountry: this.country_, + matchedISOCountryGroups: this.matchedGroups_, allISOCountryGroups: t...
[No CFG could be retrieved]
Adds the given token to the AMP body. Checks if the missing group or if any of the groups match it s a not defined error.
Since we move all to JsonObject, do you also want to change this one, so that we don't need to hoist its typedef in amp.extern.js
@@ -26,6 +26,7 @@ def older_db_file(database_base_path: str) -> typing.Optional[str]: continue if version < RAIDEN_DB_VERSION: - return expanded_name + old_db_filename = f'{database_base_path}/{expanded_name}' + return version, old_db_filename - return None ...
[older_db_file->[group,int,search,basename,expanduser,glob],compile]
Returns the path to a database file that belong to the previous version of the schema.
hummm, shouldn't we use the version recorded in the database instead of the file name?
@@ -248,11 +248,11 @@ static void _tree_group(GtkButton *button, dt_lib_module_t *self) GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(lm->treeview)); GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(lm->treeview)); - GList *items = g_list_first(gtk_tree_selection_get_select...
[No CFG could be retrieved]
tree_group creates a new group of the tree structure.
These (_tree_group, _tree_intersection etc) look like good candidates for some deduplication and refactoring. This loop could then be switched to `gtk_tree_selection_selected_foreach`. I could put that on my todo list if it feels too Gtk-y for you?
@@ -359,11 +359,11 @@ public class URIExtractionNamespace implements ExtractionNamespace @JsonTypeName("tsv") public static class TSVFlatDataParser implements FlatDataParser { - private final Parser<String, String> parser; + private final Parser<Object, String> parser; private final List<String> col...
[URIExtractionNamespace->[TSVFlatDataParser->[toString->[toString],equals->[equals,getColumns,getKeyColumn,getValueColumn,getDelimiter],toString,DelegateParser,setFieldNames],equals->[equals,getUriPrefix,getUri,getFileRegex,getNamespaceParseSpec],hashCode->[hashCode,getUriPrefix,getFileRegex,getUri],JSONFlatDataParser-...
Provides a list of key - value pairs that can be parsed into CSV. Check if this parser has the same key and value columns as the given parser.
Backwards compatibility again.
@@ -0,0 +1,15 @@ +/*global define*/ +define([ + '../Core/freezeObject' +], function( + freezeObject) { + 'use strict'; + + var Cesium3DTileColorBlendMode = { + HIGHLIGHT : 0, + REPLACE : 1, + MIX : 2 + }; + + return freezeObject(Cesium3DTileColorBlendMode); +});
[No CFG could be retrieved]
No Summary Found.
Needs reference doc.
@@ -76,4 +76,14 @@ abstract class BaseIO implements IOInterface } } } + + public function disablePackagist() + { + $this->disabledPackagist = true; + } + + public function isDisabledPackagist() + { + return $this->disabledPackagist; + } }
[BaseIO->[loadConfiguration->[setAuthentication]]]
Load configuration from config.
this does not belong to the IO class IMO
@@ -32,7 +32,7 @@ class MockJSONRPCClient: def __init__(self, address: Address): # To be manually set by each test self.balances_mapping: Dict[Address, TokenAmount] = {} - self.chain_id = ChainID(17) + self.chain_id = ChainID(UNIT_CHAIN_ID) self.address = address @st...
[make_raiden_service_mock->[MockChainState,MockRaidenService,MockTokenNetworkRegistry,MockTokenNetwork,MockChannelState],MockProxyManager->[payment_channel->[MockPaymentChannel],__init__->[MockJSONRPCClient,MockTokenNetworkProxy]],MockRaidenService->[on_message->[on_message],sign->[sign],__init__->[MockJSONRPCClient,Mo...
Initialize the object with the given address and chain ID.
The value of the the `chain_id` is used for the private chain and the Raiden configuration, passing the fixture value would require a lot of changes, so instead I just changed the hard coded value to match the fixture expected value.
@@ -160,6 +160,16 @@ func DeleteCommentReaction(doer *User, issue *Issue, comment *Comment, content s }) } +// LoadUser load user of reaction +func (r *Reaction) LoadUser() (*User, error) { + user, err := getUserByID(x, r.UserID) + if err != nil { + return nil, err + } + r.User = user + return user, nil +} + // ...
[loadUsers->[getUserIDs],LoadUsers->[loadUsers],toConds]
HasUser returns true if the given user is in the list.
We should check if user has been loaded.
@@ -120,6 +120,9 @@ func newMetricbeat(b *beat.Beat, c *common.Config, options ...Option) (*Metricbe applyOption(metricbeat) } + // List all registered modules and metricsets. + logp.Debug("modules", "Available modules and metricsets: %s", mb.Registry.String()) + if b.InSetupCmd { // Return without instanti...
[Run->[NewFactory,Stop,Add,Check,NewRunnerList,Wait,NewRunner,Connect,Start,NewReloader,Enabled,MustRegisterList,Run,Done],Modules->[NewWrapper,Unpack,NewGlobManager,LoadList,Enabled,Wrap,ListEnabled],NewWrapper,NewFactory,WithMaxStartDelay,Unpack,NewFactoryAdapter,Enabled,String,NewConnector,Err,WithServiceName,Wrap,W...
newMetricbeat creates a new Metricbeat instance. init creates a new static module and adds it to the list of modules to be used.
No big deal, but maybe we should split this up into static and "dynamic" light weight modules?
@@ -91,8 +91,12 @@ class VertxWebProcessor { } @BuildStep - public void kubernetes(HttpConfiguration config, BuildProducer<KubernetesPortBuildItem> portProducer) { - portProducer.produce(new KubernetesPortBuildItem(config.port, "http")); + public void kubernetes(BuildProducer<KubernetesPortBuil...
[VertxWebProcessor->[build->[write->[produce,GeneratedClassBuildItem],getValue,getMethod,getVertx,getLaunchMode,ClassOutput,toList,isPresent,ServiceStartBuildItem,produce,generateHandler,ReflectiveClassBuildItem,orElse,getBean,configureRouter,collect,put],validateBeanDeployment->[isClassBean,produce,methods,get,getAnno...
Build a Kubernetes port build item.
There's no guarantee that the value will be present at build time.
@@ -162,6 +162,8 @@ Scanner<EncodingPolicy>::Scanner(Parser* parser, HashTbl *phtbl, Token *ptoken, m_fYieldIsKeyword = false; m_fAwaitIsKeyword = false; + + m_typeAnnotationsOn = Js::Configuration::Global.flags.TypeAnnotations; } template <typename EncodingPolicy>
[No CFG could be retrieved]
Initializes the scanner with the given arguments. The next token in the source string is not consumed.
use CONFIG_FLAG macro here
@@ -27,7 +27,7 @@ module.exports = class coinmate extends Exchange { }, 'urls': { 'logo': 'https://user-images.githubusercontent.com/1294454/27811229-c1efb510-606c-11e7-9a36-84ba2ce412d8.jpg', - 'api': 'https://coinmate.io/api', + 'api': 'https://...
[No CFG could be retrieved]
Provides a description of a CoinMate exchange that is used to retrieve a single radingPairs - > radialPairs.
I think this is a wrong key to edit the doc url )
@@ -11,14 +11,14 @@ if (!defined('IS_ADMIN_FLAG')) die('Illegal Access'); $menuTitles = zen_get_menu_titles(); ?> -<nav class="navbar navbar-default" role="navigation"> +<nav class="navbar navbar-default"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button...
[No CFG could be retrieved]
Echos the contents of a . Zen - cart .
Why all the `&nbsp;` in several files of this PR? Is it because the markup is invalid without them? Or is it personal preference against having nothing inside the `span` or `i`/`icon` elements?
@@ -275,9 +275,9 @@ frappe.ui.Page = Class.extend({ return $('<li class="divider"></li>').appendTo(this.menu); }, - get_inner_group_button: function(label) { + get_inner_group_button: function(label, add_if_not_exists) { var $group = this.inner_toolbar.find('.btn-group[data-label="'+label+'"]'); - if(!$group...
[No CFG could be retrieved]
Menu for clear actions This method is used to add a button to a group.
better to break up add and get as special functions
@@ -1,8 +1,12 @@ +import re + from django.utils.translation import ugettext_lazy as _ from olympia.versions.compare import version_int as vint -from base import * # noqa +from base import ( + ADDON_EXTENSION, ADDON_THEME, ADDON_DICT, ADDON_SEARCH, ADDON_LPAPP, + ADDON_PLUGIN, ADDON_PERSONA, ADDON_STATICTHE...
[FIREFOX->[_],THUNDERBIRD->[_],SUNBIRD->[_],MOZILLA->[_],MOBILE->[_],ANDROID->[matches_user_agent->[groups,search,vint],_,compile],UNKNOWN_APP->[_],SEAMONKEY->[_],list,append,getattr,tuple,setdefault,values]
Checks if the user agent matches the request.
Just getting rid of an unnecessary `import *` here
@@ -283,8 +283,13 @@ class AmpAccordion extends AMP.BaseElement { // overidden. const target = dev().assertElement(event.target); const header = dev().assertElement(event.currentTarget); - const anchor = closest(target, e => e.tagName == 'A', header); - if (anchor === null) { + const anchorOrTap...
[No CFG could be retrieved]
Handles keydown and click events on an accordion header. Handles keyboard navigation events on the header element.
nit: Please add paranthesis around the `on` attribute related conditions?
@@ -6,4 +6,11 @@ module SearchHelper end experiments.uniq end + def sub_results(el) + elements = [] + el.each do |m| + elements << m + end + elements.uniq + end end
[experiments_results->[each,experiment,uniq]]
Returns an array of all the experiments that have been performed on the given tag.
Use empty lines between method definitions.
@@ -56,9 +56,13 @@ try { $username = clean($_REQUEST['username']); $password = $_REQUEST['password']; } elseif (isset($_SERVER['REMOTE_USER'])) { - $username = $_SERVER['REMOTE_USER']; - } elseif (isset($_SERVER['PHP_AUTH_USER']) && $config['auth_...
[getFile,getMessage,getLine]
This function checks if the user is logged in and if so sets the session variables. check if user has an .
Would this elseif check even trigger. PHP_AUTH_USER should always contain someone who is authenticated.
@@ -7,7 +7,7 @@ define(function() { * when {@link Clock#startTime} or {@link Clock#stopTime} is reached. * * @exports ClockRange - * + * @enum * @see Clock * @see ClockStep */
[No CFG could be retrieved]
JS functions for the module.
Unfortunately, marking these as `@enum` doesn't work, they don't show up in the doc. I actually have some changes in-progress in another branch that switch them to `@namespace` to fix some other issues. For now, I'd say just remove the new `@enum` tags.
@@ -16,6 +16,7 @@ def rules(): *additional_fields.rules(), *python_protobuf_subsystem.rules(), *python_rules(), + *write_codegen_goal.rules(), ]
[rules->[rules,python_rules]]
Return a list of rules for the given object.
Right now, I'm only activating this new goal if you have `pants.backend.codegen.protobuf.python` activated, rather than unconditionally. But I'm not sure if that makes sense. Where it matters is the `relocated_files` target. That uses codegen. Possibly, users want to be able to run `write-codegen` on that, even if they...
@@ -155,9 +155,9 @@ public class HandleHttpResponse extends AbstractProcessor { try { session.exportTo(flowFile, response.getOutputStream()); response.flushBuffer(); - } catch (final IOException ioe) { + } catch (final Exception e) { session.transfer(flowFil...
[HandleHttpResponse->[isNumber->[isDigit,length,charAt],onTrigger->[getValue,isDynamic,parseInt,warn,info,getKey,exportTo,isEmpty,transfer,getAttribute,error,complete,entrySet,setHeader,isNumber,getName,flushBuffer,getResponse,getOutputStream,get,setStatus,asControllerService],getSupportedPropertyDescriptors->[add],get...
On trigger. Attempts to complete the context identifier and transfer the response to the session.
Instead of changing this to blanket catching "Exception". Could another catch block that handles "FlowFileAccessException" be added, or just add it as another exception type caught in this block? Blanket catching Exception is considered bad form so unless there is a specific need for it, I tend to stay away from it.
@@ -276,9 +276,8 @@ ds_mgmt_tgt_setup(void) D_GOTO(err_newborns, rc = -DER_NOMEM); stored_mode = umask(0); - mode = S_IRWXU | S_IRWXG | S_IRWXO; /** create NEWBORNS directory if it does not exist already */ - rc = mkdir(newborns_path, mode); + rc = mkdir(newborns_path, S_IRWXU); if (rc < 0 && errno != EEXIST...
[No CFG could be retrieved]
Destroy all SPDK blobs for a NEWBORN pool. Creates the ZOMBIES directory if it does not exist already.
is different users allowed to use the same DAOS backend (like two users start their daos servers and share to use the same /mnt/daos)? if so 700 is not enough?
@@ -1,6 +1,6 @@ import EventEmitter from 'events'; -import { urlObjectToString } from '../../../react/features/base/util'; +import { urlObjectToString } from '../../../react/features/base/util/uri.js'; import { PostMessageTransportBackend, Transport
[No CFG could be retrieved]
Creates an object that represents the last id of the api object. Adds given number to the numberOfParticipants property of given APIInstance.
the extension is not needed, right?
@@ -30,8 +30,6 @@ class Analytics user.uuid end - # rubocop:disable Metrics/LineLength - AUTHENTICATION_MAX_2FA_ATTEMPTS = 'Authentication: user reached max 2FA attempts'.freeze EMAIL_AND_PASSWORD_AUTH = 'Email and Password Authentication'.freeze EMAIL_CHANGE_REQUEST = 'Email Change Request'.freeze ...
[Analytics->[track_event->[info,except,merge!],uuid->[uuid],request_attributes->[user_agent,remote_ip,host],attr_reader,freeze]]
Returns a UUID for a user or nil if not found.
hooray we have few enough of these to avoid the cop!
@@ -46,7 +46,12 @@ class FrozenBatchNorm2d(torch.nn.Module): are fixed """ - def __init__(self, num_features, eps=0., n=None): + def __init__( + self, + num_features: Tuple[int, ...], + eps: float = 0., + n: Optional[Tuple[int, ...]] = None, + ): # n=None for ba...
[ConvTranspose2d->[__init__->[super,warn]],BatchNorm2d->[__init__->[super,warn]],Conv2d->[__init__->[super,warn]],FrozenBatchNorm2d->[_load_from_state_dict->[super],forward->[,reshape],__init__->[register_buffer,super,ones,warn,zeros]]]
FrozenBatchNorm2d constructor.
nit: I would have expected `num_features` to be an `int`, not a tuple with a varying number of elements.
@@ -7,6 +7,16 @@ module GobiertoParticipation class ContributionContainerTest < ActiveSupport::TestCase include ::GobiertoCommon::HasVisibilityUserLevelsTest + def bowling_contributions + @bowling_contributions ||= gobierto_participation_contribution_containers(:bowling_group_contributions) + end +...
[ContributionContainerTest->[setup->[gobierto_participation_contribution_containers,setup_visibility_user_levels_test,users],contribution_container->[gobierto_participation_contribution_containers],test_destroy->[assert,include?,destroy],test_valid->[assert,valid?],include],require]
Initialize a new instance of the NestedNode class.
Line is too long. [107/80]
@@ -1111,5 +1111,6 @@ class TokenNetwork: ) raise RaidenRecoverableError( - 'Channel cannot be settled before closing', + "Settling this channel failed although the channel's current state " + "is closed. Maybe it was already settled by the ot...
[TokenNetwork->[all_events_filter->[events_filter],update_transfer->[channel_is_closed],_check_for_outdated_channel->[detail_channel],_check_channel_state_for_deposit->[_get_channel_state,detail_participants],detail_participants->[ParticipantsDetails,_inspect_channel_identifier,detail_participant],unlock->[channel_is_s...
Check channel state for settlement.
This broke master, `make lint` doesn't pass because of missing comma :/
@@ -19,6 +19,7 @@ class Podio(CMakePackage): tags = ["hep", "key4hep"] version('master', branch='master') + version('0.13', sha256='e9cbd4e25730003d3706ad82e28b15cb5bdc524a78b0a26e90b89ea852101498') version('0.12.0', sha256='1729a2ce21e8b307fc37dfb9a9f5ae031e9f4be4992385cf99dba3e5fdf5323a') ver...
[Podio->[url_for_version->[str],setup_run_environment->[prepend_path],cmake_args->[define,define_from_variant],depends_on,conflicts,version,patch,variant]]
Creates an object of type national_security_national_security_c1 n Create a config object for a specific sequence number.
Can we call this `0.13.0`? In this way we'll be consistent with the scheme of the other versions. Note that upstream don't use this numbering scheme, they instead use a weird `00-13`, `00-12`, ...
@@ -164,7 +164,7 @@ def get_local_url(): def get_ssh_url(): - return "ssh://{}@127.0.0.1:{}".format( + return "ssh://{}@127.0.0.1:22{}".format( getpass.getuser(), get_local_storagepath() )
[TestRemoteHDFSCLI->[_test->[get_hdfs_url,_test_cloud,main],_should_test->[_should_test_hdfs]],TestWarnOnOutdatedStage->[_test->[get_local_url,main],test->[_test],main->[main]],TestCompatRemoteS3CLI->[_test->[_test_cloud,get_aws_storagepath,main],_should_test->[_should_test_aws]],TestRemoteHDFS->[_should_test->[_should...
Returns a URL that can be used to access the SSH key.
Is this really needed? 22 should be used by default already.
@@ -16,14 +16,13 @@ */ package org.apache.dubbo.config.spring.beans.factory.annotation; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.apache.dubbo.config.AbstractInterfaceConfig; import org.apache.dubbo.config.ApplicationConfig; import org.apache.dubbo.config....
[AbstractAnnotationConfigBeanBuilder->[configureRegistryConfigs->[getBeans,setRegistries,resolveRegistryConfigBeanNames],build->[doBuild,checkDependencies,configureBean,info,isInfoEnabled],configureBean->[configureRegistryConfigs,configureMonitorConfig,preConfigureBean,configureModuleConfig,postConfigureBean,configureA...
Creates an instance of the AbstractAnnotationConfigBean class that is responsible for generating the configuration for Creates a config bean builder for the given annotation.
@mercyblitz should you import the codestyle/dubbo_codestyle_for_idea.xml into idea codestyle. The order of org.apache.dubbo is firstly.
@@ -46,11 +46,15 @@ window.LoginGov = window.LoginGov || {}; ] %> window.LoginGov.I18n = { + currentLocale: function() { return this.__currentLocale || (this.__currentLocale = document.querySelector('html').lang); }, strings: {}, - t: function(key) { return this.strings[key]; }, + t: function(key) { return th...
[No CFG could be retrieved]
region I18n Helper.
Will this pick up the locale if it's set via an Accept-Language header?
@@ -17,10 +17,15 @@ from mne.io.bti.bti import (_read_config, _process_bti_headshape, _read_data, _read_bti_header, _get_bti_dev_t, _correct_trans, _get_bti_info) from mne.io import read_raw_bti +from mne import pick_types +from mne.io.pick import pick_info +fr...
[test_no_conversion->[assert_array_equal,read_raw_bti,allclose,dict,assert_equal,_process_bti_headshape,eye,assert_true,startswith,_correct_trans,zip,enumerate,_read_bti_header],test_setup_headshape->[list,keys,_process_bti_headshape,reduce,assert_true,set],test_bytes_io->[assert_array_equal,read_raw_bti,BytesIO,read,r...
Get the header of a single header object. Test read bti config file.
put with existing `from mne import` line below
@@ -81,7 +81,7 @@ module GobiertoAdmin end def test_person_events_collection - with_javascript do + with(js: true) do with_signed_in_admin(admin) do with_current_site(site) do visit @path
[CollectionsTest->[site->[sites],process->[gobierto_participation_processes],event->[gobierto_calendars_events],test_create_collection->[visit,fill_in,with_signed_in_admin,author,has_message?,assert_equal,site_id,action,click_button,with_javascript,click_link,subject,destroy,assert,select_option,with_current_site,id,la...
Tests if a person has an event collection with a javascript object that can be used to find.
Block has too many lines. [26/25]
@@ -46,7 +46,8 @@ func (s *containerImageSignatureDownloader) DownloadImageSignatures(image *image signatures, err := source.GetSignatures(ctx) if err != nil { - return nil, err + glog.V(4).Infof("Failed to get signatures for %v due to: %v", source.Reference(), err) + return []imageapi.ImageSignature{}, GetSig...
[DownloadImageSignatures->[Infof,WithTimeout,Sprintf,GetSignatures,Now,Close,ParseReference,V,NewImageSource,Sum256,JoinImageStreamImage]]
DownloadImageSignatures downloads all the image signatures that are managed by the container.
Hrm, can we make this an ignorable error instead? I don't want to make it too complex, but would prefer to eat the error as late as possible. Another option is a rate limiter on this type of error (if rate exceeded, don't log). Maybe burst 100 rate 1/10s or something.
@@ -161,14 +161,14 @@ public class QueueQueryTest extends ActiveMQTestBase { QueueQueryResult queueQueryResult = server.queueQuery(fqqn); assertEquals(queueName, queueQueryResult.getName()); assertEquals(addressName, queueQueryResult.getAddress()); - Wait.assertEquals(1, server.que...
[QueueQueryTest->[testQueueQueryOnStaticQueueWithFQQN->[getName,getAddress,toSimpleString,createQueue,concat,queueQuery,toString,assertEquals],testQueueQueryDefaultsOnAutoCreatedQueue->[assertTrue,longValue,toSimpleString,createQueue,toString,createContext,getLastValueKey,isExclusive,AddressSettings,getFilterString,get...
This test method is used to test if a queue is auto - created with FQQN This method checks if the queue exists and has the required fields.
:: will get you the runable for getMessageCount. what is the issue?
@@ -1206,7 +1206,7 @@ namespace System.Xml.XPath return Evaluate(XPathExpression.Compile(xpath), null); } - public virtual object Evaluate(string xpath, IXmlNamespaceResolver resolver) + public virtual object Evaluate(string xpath, IXmlNamespaceResolver? resolver) { ...
[XPathNavigator->[Matches->[Matches,Clone],MoveToRoot->[MoveToParent],Evaluate->[Evaluate,Clone],BuildSubtree->[MoveToNextAttribute],PrependChildElement->[PrependChild],InsertElementBefore->[InsertBefore],InsertElementAfter->[InsertAfter],GetDepth->[MoveToParent],MoveToChild->[MoveToParent,MoveToFirstChild,MoveToNext],...
Evaluate the given XPath expression and return the first node that matches.
should all resolvers above also be nullable?
@@ -87,6 +87,11 @@ func (c *Container) prepare() (err error) { c.state.NetNS = netNS c.state.NetworkStatus = networkStatus } + + // Setup rootless networking, requires c.state.NetNS to be set + if rootless.IsRootless() { + rootlessSetupErr = c.runtime.setupRootlessNetNS(c) + } } }() // Mou...
[checkpoint->[exportCheckpoint,checkpointRestoreSupported,checkpointRestoreLabelLog],restore->[checkpointRestoreSupported,prepare,importCheckpoint,checkpointRestoreLabelLog]]
prepare prepares the container for use. This function is called by the network layer when it is ready to create a container.
Question: why isn't this fatal? Are we expecting a lot of spurious errors here? I would expect a slirp failure to prevent container creation
@@ -19,6 +19,7 @@ class Jetpack_Sync_Settings { 'disable' => true, 'render_filtered_content' => true, 'post_meta_whitelist' => true, + 'user_meta_whitelist' => true, 'comment_meta_whitelist' => true, 'max_enqueue_full_sync' => true, 'max_queue_size_full_sync'=> true,
[Jetpack_Sync_Settings->[update_settings->[reset]]]
Creates a Jetpack_Sync_Settings class. Get the value of a given setting.
are sync settings per site on a multisite install?
@@ -87,11 +87,13 @@ static int parse_name(OPENSSL_CTX *ctx, const char *t[], int create, int err = 0; size_t i = 0; const char *s = *t; + const char *start = *t; int user_name = 0; for (;;) { if (!ossl_isalpha(*s)) { PROPerr(PROP_F_PARSE_NAME, PROP_R_NOT_AN_IDENTIFIER...
[No CFG could be retrieved]
v - > v - > v - > v - > v - > v - > Parse property name and numeric values.
Here and throughout, you can just use `t` instead of storing it locally. `t` is updated only after successfully parsing something.
@@ -465,6 +465,13 @@ export class FriendlyIframeEmbed { } else { this.signals_.signal(CommonSignals.RENDER_START); } + + // TODO(ccordry): remove when no-signing launched. + if (!this.spec.skipHtmlMerge) { + // When not streaming renderStart signal is good enough. + this.renderComplete_...
[No CFG could be retrieved]
Replies if a child embed has been initialized. Initialize the object with the initial signal signal.
FYI: this class and this mode are used by most of our unit tests. So we'd need to switch them to streaming as well.
@@ -247,6 +247,7 @@ namespace cryptonote ADD_CHECKPOINT2(2257500, "99643c32f27b157c6952a67af7dbe07ca819e71df386fa9379a344686d2950cf", "0x11c2f448d4f8830"); ADD_CHECKPOINT2(2265000, "727a6228a71f5b35c899553ee19d60bfc10c126a009ffd633afb30666e8edbe6", "0x121a33e656ecad4"); ADD_CHECKPOINT2(2325000, "f6126199...
[No CFG could be retrieved]
2 - bit checkpoints Checks for a sequence of unique checkpoints. Checks if the checkpoints file is present and adds them to the blockchain hashfile.
What is the methodology of learning the proper values of these variables?
@@ -74,7 +74,15 @@ HenckyElasticPlastic3DLaw::~HenckyElasticPlastic3DLaw() bool HenckyElasticPlastic3DLaw::Has( const Variable<double>& rThisVariable ) { - return false; + if (rThisVariable == MP_DELTA_PLASTIC_STRAIN + || rThisVariable == MP_EQUIVALENT_PLASTIC_STRAIN + || rThisVariable == MP_DEL...
[CalculatePrincipalStressTrial->[CalculatePrincipalStressTrial],InitializeMaterial->[InitializeMaterial]]
Has method of HenckyElasticPlastic3DLaw.
I am not sure this should be put here. Can you put it in your law instead? Not all model has these I guess.
@@ -93,6 +93,10 @@ public class OidcCommonUtils { : 0; } + public static long getConnectionDelayInMillis(OidcCommonConfig oidcConfig) { + return getConnectionDelay(oidcConfig) * 1000; + } + public static Optional<ProxyOptions> toProxyOptions(OidcCommonConfig.Proxy proxyConfig) ...
[OidcCommonUtils->[getOidcEndpointUrl->[prependSlash],signJwt->[clientJwtKey]]]
Get connection delay from configuration.
@Yelzhasdev Or if you prefer to keep this function for millis specifically then still please consider reusing the one above it and only div by 1000 here...
@@ -570,9 +570,6 @@ class MatrixTransport(Runnable): self._stop_event.set() gevent.killall(self.greenlets) # kill children raise # re-raise to keep killed status - except Exception: - self.stop() # ensure cleanup and wait on subtasks - raise ...
[populate_services_addresses->[update_services_addresses],_RetryQueue->[enqueue->[_expiration_generator,_MessageData],_check_and_send->[message_is_in_queue],_run->[_check_and_send],enqueue_unordered->[enqueue]],MatrixTransport->[_send_with_retry->[enqueue,_get_retrier],_process_raiden_messages->[enqueue_unordered],_sen...
This method is the main method of the MatrixTransport class. It is called by the network Stop the client and wait on all greenlets and wait on all greenlets.
Previously, this would actually deadlock, if there were still items in the `broadcast_queue` -- the `broadcast_worker` would have been killed already, but `self.stop()` would call `broadcast_queue.join()`.
@@ -36,12 +36,13 @@ class Elfutils(AutotoolsPackage): homepage = "https://fedorahosted.org/elfutils/" depends_on('libtool', type='build') - depends_on('automake', type='build') - depends_on('autoconf', type='build') - version('0.163', - git='git://git.fedorahosted.org/git/elfutils.git'...
[Elfutils->[depends_on,version,provides]]
Returns a list of arguments to configure the Maintainer mode.
Can you sort these so that newer versions come first?
@@ -69,6 +69,8 @@ StateListenerRegistry.register( name })); dispatch(playSound(KNOCKING_PARTICIPANT_SOUND_ID)); + APP.API.notifyKnockingParticipant({ id, + name }); }); });
[No CFG could be retrieved]
Registers a change handler for the state. Handle the conference failed event and navigate the user to the lobby screen based on the.
maybe check whether `APP` is not undefined
@@ -753,10 +753,7 @@ class TestWebextensionIncompatibilities(ValidatorTestCase): class TestLegacyAddonRestrictions(ValidatorTestCase): - def setUp(self): - super(TestLegacyAddonRestrictions, self).setUp() - - def test_submit_legacy_addon_restricted(self): + def test_legacy_submissions_disabled(self...
[TestWebextensionIncompatibilities->[test_webextension_downgrade_only_warning_unlisted->[update_files],test_no_upgrade_annotation_no_version->[update_files],test_webextension_cannot_be_downgraded->[update_files],test_webextension_cannot_be_downgraded_ignore_deleted_version->[update_files]],TestRunAddonsLinter->[test_ru...
Test for legacy addons that are restricted by the legacy addons.
mmm? but they should, and they do - the validation results do contain an error with the `legacy_addons_unsupported` message.
@@ -173,7 +173,7 @@ namespace Dynamo.DSEngine // parameters are listed according to their type, not their name string paramTypesList = String.Join( ",", - member.Parameters.Select(x => x.Type.ToShortString()).Select(PrimitiveMap)....
[XmlDocumentationExtensions->[GetSummary->[GetSummary],GetDescription->[GetDescription],GetSearchTags->[GetSearchTags]]]
Get the name of the element that contains the given member.
Hi @aosyatnik, I just want to make sure this is absolutely safe to do. What are the differences between `ToShortString` and `ToString` here? Do you have an example for reference?
@@ -0,0 +1,16 @@ +class CreateOtpRequestsTracker < ActiveRecord::Migration + def change + create_table :otp_requests_trackers do |t| + t.text :encrypted_phone + t.timestamp :otp_last_sent_at + t.integer :otp_send_count, default: 0 + t.string :attribute_cost + t.string :phone_fingerprint, de...
[No CFG could be retrieved]
No Summary Found.
Can we add `t.timestamps` and an index on `updated_at`? That will let us have a periodic job to delete old records so the table doesn't grow too much
@@ -984,8 +984,8 @@ crt_req_send_internal(struct crt_rpc_priv *rpc_priv) rpc_priv->crp_hg_addr = NULL; rc = crt_req_ep_lc_lookup(rpc_priv, &uri_exists); if (rc != 0) { - D_ERROR("crt_grp_ep_lc_lookup() failed, rc %d, " - "opc: %#x.\n", rc, req->cr_opc); + RPC_ERROR(rpc_priv, + "crt_grp_ep_lc_lookup...
[No CFG could be retrieved]
This function is called from the HG_HG_request_handler function. It This function is called to send the to the controller.
(style) line over 80 characters
@@ -23,11 +23,15 @@ class Migrate(AutotoolsPackage): depends_on('automake') depends_on('libtool') depends_on('m4') + depends_on('zlib', type='link') depends_on('openmpi', type=('build', 'link', 'run'), when='+mpi') configure_directory = 'src' + def configure_args(self): + ret...
[Migrate->[build->[write,working_dir,replace,read,open,InstallError,make],install->[working_dir,mkdirp,make],variant,depends_on,version]]
Build a from a given package specification.
Can you switch these 4 to `type='build'`? They shouldn't be needed after installation.
@@ -111,6 +111,17 @@ public abstract class HoodieDataBlock extends HoodieLogBlock { return records; } + /** + * Batch get of keys of interest. Implementation can choose to either do full scan and return matched entries or + * do a seek based parsing and return matched entries. + * @param keys keys of i...
[HoodieDataBlock->[createRecordsFromContentBytes->[isPresent,inflate,deserializeRecords],getSchema->[getRecords],getContentBytes->[serializeRecords,isPresent,createRecordsFromContentBytes,get],getBlock->[HoodieException,HoodieAvroDataBlock,HoodieHFileDataBlock],getRecords->[createRecordsFromContentBytes,HoodieIOExcepti...
Returns the records in this index.
key based fetch not allowed?
@@ -187,6 +187,12 @@ func extractInternalError(c *request.Context, err error, withAuth bool) { body = authErrMsg(msg, agentcfg.ErrMsgReadKibanaResponse, withAuth) keyword = agentcfg.ErrMsgReadKibanaResponse + case strings.Contains(msg, agentcfg.ErrUnauthorized): + fullMsg := "APM Server is not authorized to co...
[Context,SetWithBody,CaptureError,Allow,Fetch,Set,NewFetcher,Error,Seconds,New,Errorf,SetDefault,Contains,GetVersion,Send,Get,FromReader,Query,Header,Write,IsAuthorizationConfigured,DefaultMonitoringMapForRegistry,Sprintf,SupportsVersion,String,NewRegistry,Replace]
extractInternalError extracts the error from the request and adds it to the response. msgMethodUnsupported - returns the name of the tag that was found in the response.
Would this error occur if the server had username/password configured, but the username didn't have the right privileges? If so, perhaps reword a bit, like: "APM Server is not authorized to query agent configuration via Kibana. Please configure apm-server.kibana.username and apm-server.kibana.password, and ensure the u...
@@ -58,6 +58,7 @@ try { BigNumber = requireFunction ('bignumber.js') // eslint-disable-line global-require // we prefer bignumber.js over BN.js // BN = requireFunction ('bn.js') // eslint-disable-line global-require + stableStringify = requireFunction ('json-stable-stringify') // eslint-disable...
[No CFG could be retrieved]
Creates an Exchange that fetches a single object. The number of seconds that the client should wait for a non - zero value.
We want to be very picky with the deps, so, I'd rather avoid adding another one. We'll see if we can avoid it, and, if not, then we will add it as a static dep. Can you, please, clarify the reason why would it be required?
@@ -0,0 +1,15 @@ +from allennlp.common.util import JsonDict +from allennlp.predictors import Predictor +from allennlp.common import Registrable + +class SaliencyInterpreter(Registrable): + """ + a ``SaliencyInterpreter`` interprets an AllenNLP Predictor's + outputs by assigning a saliency score to each input t...
[No CFG could be retrieved]
No Summary Found.
This needs a docstring similar to the one that the attacker has.
@@ -387,17 +387,6 @@ function finishBundle(srcFilename, destDir, destFilename, options) { } } -/** - * Returns array of relative paths to "devDependencies" defined in package.json. - * @return {!Array<string>} - */ -function devDependencies() { - const file = fs.readFileSync('package.json', 'utf8'); - const pac...
[No CFG could be retrieved]
Creates a new object. Compiles a given JavaScript file entry point with browserify and watches the for changes.
So much cleanup, yay.
@@ -240,7 +240,12 @@ class Trainer: self._train_data = train_dataset self._validation_data = validation_dataset - self._patience = patience + if patience == 0: + raise ValueError('0 is not a valid value for patience. If you want to stop the training after ' + ...
[Trainer->[_parameter_and_gradient_statistics_to_tensorboard->[add_train_scalar,is_sparse],train->[_enable_activation_logging,_validation_loss,_should_stop_early,_metrics_to_tensorboard,_enable_gradient_clipping,_metrics_to_console,_train_epoch,_get_metrics],_enable_activation_logging->[hook->[add_train_histogram]],_re...
Initialize a new object with the given parameters. Required parameter. This class is called to initialize the object with the given . Initialize the object with a cuda cuda device or cuda device.
Looks great overall, but I think it would be an improvement to require `patience > 0` and accept only `None` to disable it. Otherwise we'll get the question "What is `patience == -2`"!
@@ -253,7 +253,7 @@ public class SymbolTableTest { typeSymbol = (JavaSymbol.TypeJavaSymbol) result.symbol("NestedEnum"); assertThat(typeSymbol.owner()).isSameAs(interfaceSymbol); - assertThat(typeSymbol.flags()).isEqualTo(Flags.PUBLIC | Flags.ENUM); + assertThat(typeSymbol.flags()).isEqualTo(Flags.PUB...
[SymbolTableTest->[ConstructorDeclaration->[isNull,type,isEqualTo,hasSize,createFor,containsExactly,symbol,isSameAs],FieldTypes->[isEqualTo,createFor,isNotNull],Lambdas->[symbol,isEqualTo,createFor],MethodReference->[assertThatReferenceNotFound,isEqualTo,createFor,symbol,isSameAs],ThisReference->[symbol,isEqualTo,creat...
Test if InterfaceDeclaration is public interface or interface. Test if EnumDeclaration is defined in JavaDoc comment. This method checks if the symbol is public enum or interface and if so checks if the symbol Returns a string that represents the current state of the application.
Is there some tests to verify that an enum is NOT static in some cases ?
@@ -40,6 +40,9 @@ type AlertStore interface { // If configuration for the user doesn't exist, no error is reported. DeleteAlertConfig(ctx context.Context, user string) error + // ListUsersWithState returns the list of users which have had state written. + ListUsersWithState(ctx context.Context) ([]string, error) ...
[NewGCSObjectClient,Background,New,NewStore,Errorf,NewClient,NewAlertStore,NewBucketAlertStore,NewS3ObjectClient,NewBlobStorage]
Analyzer for all alertstores and rules. SetFullState stores the alertmanager state for the given user.
[nit] Should we call it `ListUsersWithFullState` for consistency with other function names?
@@ -45,6 +45,8 @@ const ( // DefaultParallelism is the default parallelism used by get-file // and put-file. DefaultParallelism = 10 + + createPipelineTracingEnvVar = "PACH_TRACING_TARGET_REPO" ) // Cmds returns a slice containing pfs commands.
[StringVar,Pull,PrintDetailedCommitInfo,SubscribeCommit,Acquire,CreateRepo,DeleteCommit,UintVar,Walk,RunFixedArgs,Flush,SetBranch,ReadFile,New,NewPutFileClient,StartCommit,ReadBytes,NewWriter,GetFile,Mount,Split,PutFile,WithCtx,Println,Finish,IntVarP,GlobalTracer,PushFile,BoolVar,NewBranch,FinishCommit,Close,PrintDetai...
Package names for all packages. Cmds returns a slice of pfs commands for the given user.
Is this env-var specific to `create-pipeline` tracing? If so why is it in the `pfs/cmds` file?
@@ -329,10 +329,6 @@ public class KsqlRestConfig extends RestConfig { final Function<URL, Integer> portResolver, final boolean replaceHost ) { - if (!replaceHost && listener.getPort() > 0) { - return listener; - } - final String host = replaceHost ? getLocalHostName() ...
[KsqlRestConfig->[getKsqlConfigProperties->[getOriginals],getPropertiesWithOverrides->[getOriginals],getCommandConsumerProperties->[getPropertiesWithOverrides],getInterNodeListener->[getInterNodeListener],getCommandProducerProperties->[getPropertiesWithOverrides]]]
Sanitize inter - node listener.
we can always sanitize - no reason not to (e.g. to remove the trailing slash)
@@ -147,7 +147,7 @@ class _TextSource(filebasedsource.FileBasedSource): def read_records(self, file_name, range_tracker): start_offset = range_tracker.start_position() - read_buffer = _TextSource.ReadBuffer('', 0) + read_buffer = _TextSource.ReadBuffer(b'', 0) next_record_start_position = -1
[_create_text_source->[_TextSource],ReadFromText->[__init__->[_TextSource]],WriteToText->[__init__->[_TextSink]],_TextSource->[read_records->[reset,ReadBuffer],_process_header->[reset],_read_record->[_find_separator_bounds]]]
Reads records from the specified file. A generator that yields a sequence of bytes from the file that is not a part of the.
Should we change line 86 as well?
@@ -0,0 +1,18 @@ +import h2o +from h2o.estimators import H2OXGBoostEstimator + + +from tests import pyunit_utils + +# Create many small models +def models_stress_test(): + data = h2o.import_file(pyunit_utils.locate("smalldata/testng/airlines_train.csv")) + + for i in range(0,1000): + xgb = H2OXGBoostEstima...
[No CFG could be retrieved]
No Summary Found.
should we mark this test as large?
@@ -5,7 +5,7 @@ require_relative '../corporation' module Engine module G1856 class Corporation < Corporation - attr_accessor :escrow, :presidents_share + attr_accessor :escrow, :presidents_share, :destinations CAPITALIZATION_STRS = { full: 'Full',
[Corporation->[_capitalization_type->[raise,include?],percent_to_float->[raise,include?],floated?->[percent_of],floatable?->[percent_of],escrow_share_buy!->[price,percent_of],freeze,attr_accessor],require_relative]
Creates a class which defines the attributes of a single non - terminal object. This is a hack to get the percent of a node in the core code for display.
we should be moving stuff away from the 1856 specific corporation, i think other games have destinations as well like 18AL
@@ -43,6 +43,10 @@ function parse_url_content(App $a) } } + if (isset($_GET['dataType']) && $_GET['dataType'] == 'json') { + $format = 'json'; + } + // Add url scheme if it is missing $arrurl = parse_url($url); if (empty($arrurl['scheme'])) {
[parse_url_content->[getHeader,isSuccess]]
Parse the content of a URL This function is used to fetch the content of a file. Get the page info from the webpage and add it to the attachment.
Why not call the parameter `format` as the variable that hold its value?
@@ -1115,7 +1115,8 @@ namespace Dynamo.Models long end = e.Task.ExecutionEndTime.TickCount; var executionTimeSpan = new TimeSpan(end - start); - if (Logging.Analytics.ReportingAnalytics) + //don't attempt to send these eve...
[DynamoModel->[InitializeNodeLibrary->[InitializeIncludedNodes],ForceRun->[ResetEngine],LoadNodeLibrary->[LoadNodeLibrary],Paste->[Paste,Copy],RemoveWorkspace->[Dispose],UngroupModel->[DeleteModelInternal],ResetEngine->[ResetEngine],ShutDown->[ShutDown],SetPeriodicEvaluation->[ResetEngine],ResetEngineInternal->[Registe...
This method is called when a task is in the state of an asynchronous task. It records.
is there a significant performance in checking `IsADPCollectionEnabled` here...rather than checking it directly in Analytics.NET.ADP ? Deferring the check to Analytics.NET.ADP would simplify the changes in Dynamo...but might be a bit slower...but not by much
@@ -0,0 +1,6 @@ +class AddAalAndIalToServiceProvider < ActiveRecord::Migration[5.1] + def change + add_column :service_providers, :aal, :integer + add_column :service_providers, :ial, :integer + end +end
[No CFG could be retrieved]
No Summary Found.
Are we going to be querying these columns? Do we need indexes?
@@ -171,7 +171,7 @@ public class <%= entityClass %> implements Serializable { <%_ } else { _%> <%_ if (relationships[relationshipId].ownerSide) { _%> @OneToOne - @JoinColumn(name = "<%= getColumnName(relationships[relationshipId].relationshipName) %>_id", unique = true) + @JoinColumn(unique = t...
[No CFG could be retrieved]
A private helper to create a unique id for a relationship. SQL or MongoDB.
is this handled automatically by Hibernate as well?
@@ -8,7 +8,5 @@ class Sampler(Registrable): An abstract class representing a multinomial sampler """ - def __call__( - self, logits: torch.Tensor, num_samples: int = 1, with_replacement: bool = True - ) -> torch.Tensor: + def __call__(self, logits: torch.Tensor, num_samples: int = 1) -> torc...
[No CFG could be retrieved]
Checks if a node is missing.
It looks like samplers actually take log probabilities, right? Not unnormalized log probabilities ("logits")?
@@ -92,6 +92,9 @@ public class SystemSchema extends AbstractSchema private static final String SERVER_SEGMENTS_TABLE = "server_segments"; private static final String TASKS_TABLE = "tasks"; + private static final long AVAILABLE_IS_OVERSHADOWED_VALUE = 0L; + private static final long PUBLISHED_IS_PUBLISHED_VALU...
[SystemSchema->[TasksTable->[getAuthorizedTasks->[iterator],scan->[TasksEnumerable->[enumerator->[close->[close]]],TasksEnumerable]],wrap->[close->[close],next->[next],hasNext->[close,hasNext]]]]
Imports the system schema. This is a utility method to create a new S_SIGNATURE object.
hm, if we use these, I think `IS_OVERSHADOWED_FALSE` would be clearer, and it should have `IS_OVERSHADOWED_TRUE` as well
@@ -34,5 +34,8 @@ return base.DeserializeObject(value, type); } + + static EnumAwareStrategy enumAwareStrategy; + public static EnumAwareStrategy Instance => enumAwareStrategy ?? (enumAwareStrategy = new EnumAwareStrategy()); } } \ No newline at end of file
[EnumAwareStrategy->[DeserializeObject->[DeserializeObject]]]
DeserializeObject override to handle Enum and Nullable types.
why not assigning a new instance to the static field and just return the reference from the property? This expression wouldn't be threadsafe theoretically?
@@ -54,7 +54,7 @@ class KeyVaultAccessControlClient(AsyncKeyVaultClientBase): assignment = await self._client.role_assignments.create( vault_base_url=self._vault_url, scope=role_scope, - role_assignment_name=kwargs.pop("role_assignment_name", None) or uuid4(), + ...
[KeyVaultAccessControlClient->[create_role_assignment->[create,uuid4,pop,str,_from_generated,RoleAssignmentCreateParameters,RoleAssignmentProperties],get_role_assignment->[str,_from_generated,get],delete_role_assignment->[str,_from_generated,delete],list_role_assignments->[_from_generated,list_for_scope],delete_role_de...
Create a role assignment.
`kwargs["role_assignment_name"]` could be a uuid.UUID
@@ -0,0 +1,2 @@ +# Initialize the custom Rails Instrumentation for Moderator +Moderator::Audit::Subscribe.instance
[No CFG could be retrieved]
No Summary Found.
What do you think about putting the `ActiveSupport::Notifications.subscribe` code into the initializer? Singleton seems redundant to me here.
@@ -214,7 +214,10 @@ class RsaKey(Key): # pylint:disable=too-many-public-methods return decryptor.transform(encrypted_key) def is_private_key(self): - return isinstance(self._rsa_impl, RSAPrivateKey) + # return isinstance(self._rsa_impl, RSAPrivateKey) + # TODO returning False here...
[RsaKey->[public_key->[public_key],from_jwk->[public_key,private_key],verify->[verify],generate->[RsaKey],sign->[sign]]]
Check if the key is a private key.
As we briefly discussed OOB, this makes me leery, even though I understand why we'd need to... I wonder if there's any way to expose this risk/let the user know that it's a lie, without spamming end users all over the place. (My only fear is that in the future some poor internal dev will be trying to figure out "WHY IS...
@@ -363,6 +363,15 @@ public final class KsqlRestApplication extends ExecutableApplication<KsqlRestCon log.error("Exception while closing security extension", e); } + if (apiServer != null) { + apiServer.stop(); + apiServer = null; + } + if (vertx != null) { + vertx.close(); + ...
[KsqlRestApplication->[onShutdown->[triggerShutdown],buildApplication->[buildApplication,KsqlRestApplication],displayWelcomeMessage->[getListeners,displayWelcomeMessage],loadSecurityExtension->[initialize],checkPreconditions->[KsqlFailedPrecondition]]]
This method is called when the agent shuts down.
should we try/catch these as well?