language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def WriteClientGraphSeries( self, graph_series, client_label, timestamp, cursor=None, ): """Writes the provided graphs to the DB with the given client label.""" args = { "client_label": client_label, "report_type": graph_series.report_type.SerializeToDataStore(), ...
java
@Override public CommerceDiscountUserSegmentRel findByPrimaryKey( Serializable primaryKey) throws NoSuchDiscountUserSegmentRelException { CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel = fetchByPrimaryKey(primaryKey); if (commerceDiscountUserSegmentRel == null) { if (_log.isDebugEnabled()) { ...
java
public void connect() throws Exception { if (connection != null && !connection.isOpen()) { connection.open(); transaction = connection.getModbusTransport().createTransaction(); ((ModbusSerialTransaction) transaction).setTransDelayMS(transDelay); setTransaction(tra...
python
def add_column(conn, table, column_name, default_value=None, schema=None): """ Adds given column to `activity` table jsonb data columns. In the following example we reflect the changes made to our schema to activity table. :: import sqlalchemy as sa from alembic import op ...
java
@Override public void onConnect(int rst, HuaweiApiClient client) { if (client == null || !ApiClientMgr.INST.isConnect(client)) { HMSAgentLog.e("client not connted"); onPushTokenResult(rst, null); return; } PendingResult<TokenResult> tokenResult = ...
python
def roc(y_true, y_score, ax=None): """ Plot ROC curve. Parameters ---------- y_true : array-like, shape = [n_samples] Correct target values (ground truth). y_score : array-like, shape = [n_samples] or [n_samples, 2] for binary classification or [n_samples, n_classes] for m...
java
public boolean handleActivityResult(int requestCode, int resultCode, Intent data) { IabResult result; if (requestCode != mRequestCode) return false; checkNotDisposed(); checkSetupDone("handleActivityResult"); // end of async purchase operation that started on launchPurchaseFlow...
python
async def StartUnitCompletion(self, entities, message): ''' entities : typing.Sequence[~Entity] message : str Returns -> typing.Sequence[~ErrorResult] ''' # map input types to rpc msg _params = dict() msg = dict(type='UpgradeSeries', req...
python
def subtract(self, val): """ Subtract a constant value or an image from all images. Parameters ---------- val : int, float, or ndarray Value to subtract. """ if isinstance(val, ndarray): if val.shape != self.value_shape: ra...
java
public static Finder<WebElement, WebDriver> first(final Finder<WebElement, WebDriver> finder) { return new BaseFinder<WebElement, WebDriver>() { @Override public Collection<WebElement> findFrom(WebDriver context) { Collection<WebElement> collection = super.findFrom(context); if (!collec...
python
def _get_groups(network_id, template_id=None): """ Get all the resource groups in a network """ extras = {'types':[], 'attributes':[]} group_qry = db.DBSession.query(ResourceGroup).filter( ResourceGroup.network_id==network_id, ...
python
def get_raw_entry(self, variant_line=None, variant_dict=None, vcf_header=None, individual_id=None, dict_key=None): """Return the raw entry from the vcf field If no entry was found return None Args: variant_line (str): A vcf formated variant ...
java
@Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case Ifc4Package.IFC_ACTION_REQUEST: return (EObject) createIfcActionRequest(); case Ifc4Package.IFC_ACTOR: return (EObject) createIfcActor(); case Ifc4Package.IFC_ACTOR_ROLE: return (EObject) createIfcActorRo...
java
public int writeHeader(RiffChunkHeader hriff_header) { if (fmode != RFM_WRITE) { return DDC_INVALID_CALL; } int status = writeHeader_internally(hriff_header); if (status==DDC_SUCCESS) riff_header.ckSize+=8; return status; }
java
protected static CPRange calculateMinCP(int[] block, int blockLen, int ca2len, int minCPlength) { CPRange range = new CPRange(); // Find the cut point within the alignment. // Either returns the index i of the alignment such that block[i] == ca2len, // or else returns -i-1 where block[i] is the first element >...
python
def add_instruments(self, *instruments): """ add instruments after initialization """ for instrument in instruments: if isinstance(instrument, ezibpy.utils.Contract): instrument = self.ibConn.contract_to_tuple(instrument) contractString = self.ibConn.contractS...
java
public ConfigurationProviderBuilder withMetrics(MetricRegistry metricRegistry, String prefix) { this.prefix = requireNonNull(prefix); this.metricRegistry = metricRegistry; return this; }
java
protected Object actuallyEvaluate(String exp, Map<String, ? extends Object> contextMap, LaContainer container, String firstName, Object firstComponent) { final ScriptEngine engine = prepareScriptEngineManager().getEngineByName("javascript"); if (firstName != null) { engine.put(fi...
python
def reply(self, text): """POSTs reply to message with own message. Returns posted message. URL: ``http://www.reddit.com/api/comment/`` :param text: body text of message """ data = { 'thing_id': self.name, 'id': '#commentreply_{0}'.format...
python
def is_full_overlap(self1): """true if they are a full overlap :return: is full overlap :rtype: bool """ if len(self1.overs) == 0: return False if len(self1.dif1) > 0: if max(self1.dif1) != 1 or max(self1.dif2) != 1: return False if self1.start1 and self1.end1 and self...
java
public static ArchiveEntryConfig createLooseArchiveEntryConfig(LooseConfig looseConfig, File looseFile, BootstrapConfig bootProps, String archiveEntryPrefix, boolean isUsr) throws IOException { File usrRoot = bootProps.getUserRoot(); int...
java
private static long[] finalMix128(long h1, long h2, final long lengthBytes, final long[] hashOut) { h1 ^= lengthBytes; h2 ^= lengthBytes; h1 += h2; h2 += h1; h1 = finalMix64(h1); h2 = finalMix64(h2); h1 += h2; h2 += h1; hashOut[0] = h1; hashOut[1] = h2; return hashOut; ...
python
def parse(trigger_word_file): """Parse the file for source and sink definitions. Returns: A definitions tuple with sources and sinks. """ with open(trigger_word_file) as fd: triggers_dict = json.load(fd) sources = [Source(s) for s in triggers_dict['sources']] sinks = [ Si...
java
public synchronized int getPrimaryMasterIndex(int timeoutMs) throws TimeoutException, InterruptedException { final FileSystem fs = getFileSystemClient(); final MasterInquireClient inquireClient = getMasterInquireClient(); CommonUtils.waitFor("a primary master to be serving", () -> { try { ...
java
public ConfigurationMetadataRepositoryJsonBuilder withJsonResource( InputStream inputStream, Charset charset) throws IOException { if (inputStream == null) { throw new IllegalArgumentException("InputStream must not be null."); } this.repositories.add(add(inputStream, charset)); return this; }
java
public void updateButtonVisibilty(CmsInlineEntityWidget inlineWidget) { int minOccurrence = 0; int maxOccurrence = 0; if (isChoiceHandler()) { minOccurrence = 0; maxOccurrence = getEntityType().getChoiceMaxOccurrence(); } else { minOccurrence ...
python
def run(host: Optional[str] = None, port: Optional[int] = None, *args, **kwargs) -> None: """Run the NoneBot instance.""" get_bot().run(host=host, port=port, *args, **kwargs)
python
def retrieve_logs(room, start_date=None, end_date=None): """Retrieves chat logs :param room: the `Chatroom` :param start_date: the earliest date to get logs for :param end_date: the latest date to get logs for :return: logs in html format """ from indico_chat.plugin import ChatPlugin b...
python
def validate_template_syntax(source): """ Basic Django Template syntax validation. This allows for robuster template authoring. """ try: Template(source) except (TemplateSyntaxError, TemplateDoesNotExist) as err: raise ValidationError(text_type(err))
java
@Override public CreateDynamicThingGroupResult createDynamicThingGroup(CreateDynamicThingGroupRequest request) { request = beforeClientExecution(request); return executeCreateDynamicThingGroup(request); }
python
def _serialize(self): """ Serialize the ResponseObject. Returns a webob `Response` object. """ # Do something appropriate if the response object is unbound if self._defcode is None: raise exceptions.UnboundResponse() # Build the response res...
python
async def all( self, *, details: bool = False, include_inactive: bool = False) -> list: """Return all zones (with optional advanced properties).""" endpoint = 'zone' if details: endpoint += '/properties' data = await self._request('get', endpoint) ...
python
def save_df_output( df_output: pd.DataFrame, freq_s: int = 3600, site: str = '', path_dir_save: Path = Path('.'),)->list: '''save supy output dataframe to txt files Parameters ---------- df_output : pd.DataFrame output dataframe of supy simulation freq_s : in...
python
def visibility_changed(self, enable): """DockWidget visibility has changed""" SpyderPluginWidget.visibility_changed(self, enable) if self.dockwidget is None: return if self.dockwidget.isWindow(): self.dock_toolbar.show() else: self.dock...
python
def get_paginated_response(self, data): """ Annotate the response with pagination information. """ return Response({ 'next': self.get_next_link(), 'previous': self.get_previous_link(), 'count': self.page.paginator.count, 'num_pages': self.p...
java
private static boolean secureSaveAuthentication(URL url, String postBody) throws IOException { SSLSocketFactory sslsocketfactory = SecureWebConnections .getFullTrustSSLFactory(); int port = url.getPort() == -1 ? 443 : url.getPort(); SSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket( url...
python
async def _download_photo(self, photo, file, date, thumb, progress_callback): """Specialized version of .download_media() for photos""" # Determine the photo and its largest size if isinstance(photo, types.MessageMediaPhoto): photo = photo.photo if not isinstance(photo, types...
python
def on_privmsg(self, connection, event): """ Got a message from a channel """ sender = self.get_nick(event.source) message = event.arguments[0] if sender == 'NickServ': logging.info("Got message from NickServ: %s", message) if "password" i...
python
def width(self, width=None): """Returns or sets (if a value is provided) the chart's width. :param width: If given, the chart's width will be set to this.""" if width is None: return self._width else: if not is_numeric(width): raise TypeError("wi...
java
@SuppressWarnings("unchecked") public Result<Set<Resource>> lookupRelatedResource(IncludeRequest request, Collection<Resource> sourceResources, ResourceField relationshipField) { if (sourceResources.isEmpty()) { return resultFactory.just(Collections.emptySet()); } // directly load where relat...
python
def cluster_list(verbose=False): ''' Return a list of cluster of Postgres server (tuples of version and name). CLI Example: .. code-block:: bash salt '*' postgres.cluster_list salt '*' postgres.cluster_list verbose=True ''' cmd = [salt.utils.path.which('pg_lsclusters'), '--no...
java
private Number convert(UIComponent component, Float value) { return convert((Class<? extends Number>) getValueType(component), value); }
python
def _call_handler(self, key, insert_text): """ Callback to handler. """ if isinstance(key, tuple): for k in key: self._call_handler(k, insert_text) else: if key == Keys.BracketedPaste: self._in_bracketed_paste = True ...
python
def messages(self, query, **kwargs): """ https://api.slack.com/methods/search.messages """ self.url = 'https://slack.com/api/search.messages' return super(Search, self).search_from_url(query, **kwargs)
java
@Override public ReadResultEntry next() { Exceptions.checkNotClosed(this.closed, this); // If the previous entry hasn't finished yet, we cannot proceed. Preconditions.checkState(this.lastEntryFuture == null || this.lastEntryFuture.isDone(), "Cannot request a new entry when the previous one ...
java
public DeleteFleetsResult withSuccessfulFleetDeletions(DeleteFleetSuccessItem... successfulFleetDeletions) { if (this.successfulFleetDeletions == null) { setSuccessfulFleetDeletions(new com.amazonaws.internal.SdkInternalList<DeleteFleetSuccessItem>(successfulFleetDeletions.length)); } ...
python
def _legacy_symbol_table(build_file_aliases): """Construct a SymbolTable for the given BuildFileAliases. :param build_file_aliases: BuildFileAliases to register. :type build_file_aliases: :class:`pants.build_graph.build_file_aliases.BuildFileAliases` :returns: A SymbolTable. """ table = { alias: _make...
java
public static String timeToString(long start, long finish) { Duration duration = new Duration(finish - start); // in milliseconds PeriodFormatter formatter = new PeriodFormatterBuilder().appendDays().appendSuffix("d") .appendHours().appendSuffix("h").appendMinutes().appendSuffix("m").appendSeconds(...
python
def emergencySetup(BearerCapability_presence=0): """EMERGENCY SETUP Section 9.3.8""" a = TpPd(pd=0x3) b = MessageType(mesType=0xe) # 00001110 packet = a / b if BearerCapability_presence is 1: c = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0) packet = packet / c return packet
java
@Override public void setTitle(String title) { addField(ConfigureNodeFields.title, FormField.Type.text_single); setAnswer(ConfigureNodeFields.title.getFieldName(), title); }
java
public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) { return convert(BigDecimal.class, value, defaultValue); }
java
public void setSplitId(String splitId) { Validate.isTrue(StringUtils.isEmpty(getSplitId()), "not allowed to overwrite split id"); contextMap.put(NEW_SPLIT_ID, splitId); }
python
def start(self): """Starts the advertise loop. Returns the result of the first ad request. """ if self.running: raise Exception('Advertiser is already running') if self.io_loop is None: self.io_loop = tornado.ioloop.IOLoop.current() self.running ...
python
def first(thing, n=0): """ get the first element of a list >>> lst = [1, 2, 3, 4, 5] >>> first(lst) 1 >>> first(lst, 3) [1, 2, 3] >>> first(lst, 10) [1, 2, 3, 4, 5] >>> first({"key": "value"}) {'key': 'value'} >>> first(("a", "b", "c")...
python
def extract_rows(self, result={}, selector='', table_headers=[], attr='', connector='', default='', verbosity=0, *args, **kwargs): """ Row data extraction for extract_tabular """ result_list = [] try: values = self.get_tree_tag(selector) if len(table_headers) >= len(values): from itertools import i...
python
def synthesize_using_websocket(self, text, synthesize_callback, accept=None, voice=None, timings=None, customi...
python
def mkdir(self, parent, name): """ Create a directory :param parent: the parent directory :param str name: the name of the new directory :return: the new directory :rtype: :class:`.Directory` """ pid = None cid = None if isinstance(parent...
java
@SuppressWarnings("unchecked") private IResource[] getSelectedResources(IStructuredSelection selection) { ArrayList<Object> selectedResources = new ArrayList<Object>(); for (Iterator<Object> i = selection.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof IResource) { selectedResources.ad...
java
private void eatExpression() { List segments = new ArrayList(); eatSplicedRange(segments); list.add(segments); if (tokenizer.hasMoreTokens()) {// ∈ tokenizer.peekToken(0, TokenKind.COMMA); tokenizer.nextToken(); eatExpression(); } }
java
public com.google.api.ads.adwords.axis.v201809.cm.AppConversionAppConversionType getAppConversionType() { return appConversionType; }
java
public void encode(DerOutputStream out, byte tag) throws IOException { byte[] bytes = id.toByteArray(); int excessBits = bytes.length*8 - id.length(); out.write(tag); out.putLength(bytes.length + 1); out.write(excessBits); out.write(bytes); }
java
public static <S> State<S, Unit> put(S s) { return new State<>(constantly(tuple(UNIT, s))); }
java
public void setMaxStrokeWidth(float width) { maxStrokeWidth = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, getResources().getDisplayMetrics()); }
java
@NullSafe public static String createPath(String... pathElements) { String fileSeparator = (SystemUtils.isWindows() ? WINDOWS_FILE_SEPARATOR : File.separator); StringBuilder buffer = new StringBuilder(fileSeparator); for (String pathElement : ArrayUtils.nullSafeArray(pathElements, String.class)) { ...
java
public ListClustersResponse getClusters() { logger.info("Reading clusters."); return client.listCluster( ListClustersRequest.newBuilder().setParent(instanceName.getInstanceName()).build()); }
java
public ItemRequest<Project> createInTeam(String team) { String path = String.format("/teams/%s/projects", team); return new ItemRequest<Project>(this, Project.class, path, "POST"); }
java
public static RateLimiterExports ofIterable(String prefix, Iterable<RateLimiter> rateLimiters) { return new RateLimiterExports(prefix, rateLimiters); }
java
public static <S> PAreaSizeBD<S> toPAreaSizeBD(final AreaSizeBD a) { Objects.requireNonNull(a, "area size"); return PAreaSizeBD.of(a.sizeX(), a.sizeY()); }
java
@SuppressWarnings("unchecked") protected void fireEntryRemoved(K key, V value) { if (this.listeners != null) { for (final DMapListener<? super K, ? super V> listener : this.listeners.getListeners(DMapListener.class)) { listener.entryRemoved(key, value); } } }
java
protected void calculateBounds(float _Width, float _Margin) { float maxValue = 0; int last = 0; for (BarModel model : mData) { if(model.getValue() > maxValue) { maxValue = model.getValue(); } } int valuePadding = mShowValues ? (int)...
python
def remove(self, item): """Remove an item from the set. Inverts the add operation. >>> from ngram import NGram >>> n = NGram(['spam', 'eggs']) >>> n.remove('spam') >>> list(n) ['eggs'] """ if item in self: super(NGram, self).remove(item) ...
python
def get_hosts_dict(self) -> Dict: """ Returns serialized dictionary of hosts from inventory """ return { k: deserializer.inventory.InventoryElement.serialize(v).dict() for k, v in self.hosts.items() }
python
def smart_cloud(self,input,max_text_size=72,min_text_size=12,exclude_words = True): '''Creates a word cloud using the input. Input can be a file, directory, or text. Set exclude_words to true if you want to eliminate words that only occur once.''' self.exclude_words = exclude_words...
java
public static ImmutableList<File> loadFileListRelativeTo(File fileList, File basePath) throws IOException { checkNotNull(basePath); final ImmutableList.Builder<File> ret = ImmutableList.builder(); for (final String filename : Files.readLines(fileList, Charsets.UTF_8)) { if (!filename.isEmpty() ...
java
public static xen_health_monitor_voltage[] get_filtered(nitro_service service, String filter) throws Exception { xen_health_monitor_voltage obj = new xen_health_monitor_voltage(); options option = new options(); option.set_filter(filter); xen_health_monitor_voltage[] response = (xen_health_monitor_voltage...
python
def _findroot(self, x): """Internal MIBDict function used to find a partial OID""" if x.startswith("."): x = x[1:] if not x.endswith("."): x += "." max = 0 root = "." root_key = "" for k in six.iterkeys(self): if x.startswith(k ...
python
def unix_time(self, dt): """Returns the number of seconds since the UNIX epoch for the given datetime (dt). PARAMETERS: dt -- datetime """ epoch = datetime.utcfromtimestamp(0) delta = dt - epoch return int(delta.total_seconds())
java
public static void addCronJobForInterval(ExecutableJobQueue executableJobQueue, CronJobQueue cronJobQueue, int scheduleIntervalMinute, final JobPo finalJobPo, ...
java
protected ModelAndView resolveErrorView(HttpServletRequest request, HttpServletResponse response, HttpStatus status, Map<String, Object> model) { for (ErrorViewResolver resolver : this.errorViewResolvers) { ModelAndView modelAndView = resolver.resolveErrorView(request, status, model); if (modelAndView != nul...
python
def draw_bmp(bmp_filepath): """Draws bitmap""" def draw(grid, attr, dc, rect): bmp = wx.EmptyBitmap(100, 100) try: dummy = open(bmp_filepath) dummy.close() bmp.LoadFile(bmp_filepath, wx.BITMAP_TYPE_ANY) dc.DrawBitmap(bmp, 0, 0) except: return return draw
python
def _consolidate_binds(local_binds, remote_binds): """ Fill local_binds with defaults when no value/s were specified, leaving paramiko to decide in which local port the tunnel will be open """ count = len(remote_binds) - len(local_binds) if count < 0: raise Va...
java
public final void setValidField(final int field, final boolean valid) { if (field < 0 || field >= FIELD_MASKS.length) throw new KNXIllegalArgumentException("illegal field"); setBit(0, FIELD_MASKS[field], !valid); }
python
def reset_stats(self, pattern): """Reset VM statistics. in pattern of type str The selection pattern. A bit similar to filename globbing. """ if not isinstance(pattern, basestring): raise TypeError("pattern can only be an instance of type basestring") se...
python
def run(self, args, pipeline_command): """ Invokes the pipeline with the defined command. Command line arguments, and the command need to be set with arg_builder, and command_builder respectively before this method can be invoked. """ # output that must be moved but not ...
java
public boolean hasOneTag(Tag... tags) { for(Tag t : tags) { if (this.tags.contains(t)) return true; } return false; }
python
def add_term_occurrence(self, term, document): """ Adds an occurrence of the term in the specified document. """ if document not in self._documents: self._documents[document] = 0 if term not in self._terms: if self._freeze: return ...
java
public EClass getIfcClassificationNotationSelect() { if (ifcClassificationNotationSelectEClass == null) { ifcClassificationNotationSelectEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(941); } return ifcClassificationNotationSelectEClass; }
python
def activate_language(instances, language): """ Activates the given language for the given instances. """ language = ( language if language in get_supported_languages() else get_fallback_language() ) for instance in instances: instance.activate_language(language)
java
public static byte[] combine(byte[] hashKeyBytes, byte[] rangeKeyBytes) { byte[] result = new byte[8 + hashKeyBytes.length + rangeKeyBytes.length]; System.arraycopy(ByteBuffer.allocate(4).putInt(hashKeyBytes.length).array(), 0, result, 0, 4); System.arraycopy(hashKeyBytes, 0, result, 4, hashKeyBytes.length)...
java
public void setVRESOL(Integer newVRESOL) { Integer oldVRESOL = vresol; vresol = newVRESOL; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.IMAGE_SIZE__VRESOL, oldVRESOL, vresol)); }
python
def send_audio_url(self, recipient_id, audio_url, notification_type=NotificationType.regular): """Send audio to specified recipient using URL. Audio must be MP3 or WAV https://developers.facebook.com/docs/messenger-platform/send-api-reference/audio-attachment Input: recipient...
python
def visualize(hog, grid=(10, 10), radCircle=None): ''' visualize HOG as polynomial around cell center for [grid] * cells ''' s0, s1, nang = hog.shape angles = np.linspace(0, np.pi, nang + 1)[:-1] # center of each sub array: cx, cy = s0 // (2 * grid[0]), s1 // (2 * grid[1]) ...
python
def ready(self): '''Called by Django when the app is ready for use.''' # set up the options self.options = {} self.options.update(DEFAULT_OPTIONS) for template_engine in settings.TEMPLATES: if template_engine.get('BACKEND', '').startswith('django_mako_plus'): ...
python
def percentiles(a, pcts, axis=None): """Like scoreatpercentile but can take and return array of percentiles. Parameters ---------- a : array data pcts : sequence of percentile values percentile or percentiles to find score at axis : int or None if not None, computes score...
java
private static boolean implementsInterface(final Object o) { final boolean retVal; retVal = (o instanceof Serializable) || (o instanceof Externalizable); return retVal; }
java
protected void writeProperty(CmsResource res, String propName, String propValue, CmsProperty currentProperty) throws CmsException { // check if current property is not the null property if (currentProperty.isNullProperty()) { // create new property object currentProperty = n...
java
@Override public GetStatusResult getStatus(GetStatusRequest request) { request = beforeClientExecution(request); return executeGetStatus(request); }
java
public LifecycleCallbackType<WebFragmentType<T>> getOrCreatePreDestroy() { List<Node> nodeList = childNode.get("pre-destroy"); if (nodeList != null && nodeList.size() > 0) { return new LifecycleCallbackTypeImpl<WebFragmentType<T>>(this, "pre-destroy", childNode, nodeList.get(0)); } ...
python
def compute_loss_curves_maps(filename, builder, rlzi, monitor): """ :param filename: path to the datastore :param builder: LossCurvesMapsBuilder instance :param rlzi: realization index :param monitor: Monitor instance :returns: rlzi, (curves, maps) """ with datastore.read(filename) as ds...
python
def merge(self, graph, witness_sigil, witness_tokens, alignments={}): """ :type graph: VariantGraph """ # NOTE: token_to_vertex only contains newly generated vertices token_to_vertex = {} last = graph.start for token in witness_tokens: vertex = alignme...