content
stringlengths
10
4.9M
// Called every time the scheduler runs while the command is scheduled. @Override public void execute() { double currentConveyPos = MotorControl.getSparkEncoderPosition(storage.conveyorEncoder); double powerMod = RobotContainer.activeBallCount * .075; powerMod = RobotContainer.activeBallCount >= 4 ? power...
There will be some changes made: A survivor perspective on post-acquired brain injury residential transition Abstract Primary objective: Brain injury survivors experience many transitions post-injury and it is important that they experience these in the most supportive and integrative ways possible. This study provide...
<filename>osm_mon/collector/infra_collectors/vmware.py # -*- coding: utf-8 -*- ## # Copyright 2016-2019 VMware Inc. # This file is part of ETSI OSM # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtai...
def _build_invoker_sess(self, runtime_name, memory, route): if self._invoker_sess is None or route != self._invoker_sess_route: logger.debug('Building invoker session') target = self._get_service_endpoint(runtime_name, memory) + route credentials = (service_account ...
import { JavaLog4JConfiguredPractice } from './JavaLog4JConfiguredPractice'; import { PracticeEvaluationResult, ProgrammingLanguage } from '../../model'; import { TestContainerContext, createTestContainer } from '../../inversify.config'; import { pomXMLContents } from '../../detectors/__MOCKS__/Java/pomXMLContents.mock...
<reponame>diminishedprime/weight-training import { Box, Button, TableCell, TableRow } from '@mui/material'; import * as React from 'react'; import { editExerciseUrlFor } from '@/components/pages/EditExercise'; import { DumbbellAPI } from '@/components/pages/Exercise/AddExercise/useDumbbellWeight'; import { PlatesAPI } ...
Plot Edit Cast Edit Production Edit Reception Edit Release Edit Home media Edit When the film was first screened for a preview audience, a producer demanded that director Landis cut 25 minutes from the film.[42] After trimming 15 minutes, it was released in theaters at 132 minutes. It was first released on VHS and...
Dynamic Forces in Educational Development: A long-run comparative view of France and Germany in the 19th and 20th centuries Since World War II, much of the economic growth literature has focused on the contribution of human capital to national development. Two assumptions have remained largely unexamined: (i) economic...
NEW DELHI: With six defeats in as many games, nothing seems to be going right for the Delhi Daredevils this season, but they could have managed the biggest eye-grabbing move of this T20 league when they announced the inclusion of West Indian great Vivian Richards to their staff on Saturday.The original master blaster -...
/** * Processes this directive * @param assembler (sub)assembler context * @param textLine contains the basic parse into fields/subfields - we cannot drill down further, as various directives * make different usages of the fields - and $INFO even uses an extra field * @param lab...
/** * A test for WSS-62: "the crypto file not being retrieved in the doReceiverAction * method for the Saml Signed Token" * * https://issues.apache.org/jira/browse/WSS-62 */ @Test public void testWSS62() throws Exception { SAML2CallbackHandler callbackHandler = new SAML2CallbackHand...
<filename>kinova.py import os, inspect # currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # parentdir = os.path.dirname(os.path.dirname(currentdir)) # os.sys.path.insert(0,parentdir) import pybullet as p import numpy as np import copy import math import pybullet_data class Kin...
<reponame>pombredanne/vulnerability-assessment-kb<filename>prospector/api/routers/nvd.py # This file is based on the rest-nvd module that is part of Eclipse Steady. import json import os from fastapi import APIRouter, HTTPException from fastapi.responses import JSONResponse import log.util _logger = log.util.init_l...
<gh_stars>0 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { DomSanitizer, SafeUrl } from "@angular/platform-browser"; import { Image } from './ngx-image-upload-base64.model'; @Component({ selector: 'ngx-image-upload-base64', templ...
/*! * Write an unsigned integer in a string with a defined number of digits. * * \warning This function does not allocate memory nor resize the destination string. * It is up to the user of the function to allocate memory in advance. * * \param dst The string where to write in * \param len The number of char to ...
Jarvis: Moving Towards a Smarter Internet of Things The deployment of Internet of Things (IoT) combined with cyber-physical systems is resulting in complex environments comprising of various devices interacting with each other and with users through apps running on computing platforms like mobile phones, tablets, and ...
/** * Removes all these objects in the following order: * <ol> * <li>Solution and all generated meshes; * <li>Plots, Monitors and Reports; * <li>Regions; * <li>Mesh Operations and Continuas; * <li>Parts and 3D-CAD models; * <li>Coordinate Systems; * <li>Update Events; *...
/// quick test to determine if string is valid uuid // avoids dependency on regex lib pub(crate) fn is_uuid(s: &str) -> bool { if s.len() != 36 { return false; } for buf in s.split('-') { match buf.len() { 8 => { if u64::from_str_radix(&buf, 16).is_err() { ...
/** * Create {@link MappingStats} from the given cluster state. */ public static MappingStats of(ClusterState state) { Map<String, IndexFeatureStats> fieldTypes = new HashMap<>(); for (IndexMetadata indexMetadata : state.metadata()) { Set<String> indexFieldTypes = new HashSet<>(); ...
use hacspec_gimli::*; use hacspec_lib::prelude::*; /* - Non-KAT test cases in this file have been generated randomly - Python code to generate a random test case of `inlen` length: inlen = 16 # length of random input inp = array.create_random(inlen, uint8) print("Input Array:", inp) print(...
<gh_stars>0 https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/ class Solution { boolean canShip(int[] weights,int mid,int d){ int sum=0,dr=1; for(int i=0;i<weights.length;i++){ sum+=weights[i]; if(weights[i]>mid) return false; if(sum>mid)...
A new study released Monday challenges experts’ long-held notion that a majority of campus rapes are committed by serial predators. Yet the research shows more men in college have committed rape than previously believed ― and efforts to prevent sexual assault need to begin long before students arrive on campus. “We’r...
def remove_solution(self, old_solution: Solution): self.solutions.remove(old_solution)
import request from "supertest"; import type { Server } from "http"; import { createServer } from "test/factory/server"; import { ServerControl } from "services"; let server: Server; let control: ServerControl; beforeAll(async () => { control = await createServer(); server = control.server; }); afterAll(async () =...
// toPrecision converts a number to a string, taking an argument specifying a // number of significant figures to round the significand to. For positive // exponent, all values that can be represented using a decimal fraction will // be, e.g. when rounding to 3 s.f. any value up to 999 will be formated as a // decimal,...
// GetRepoHash return the hash of the branch for a given repository. func GetRepoHash(module ModuleConfig) string { cmd := exec.Command("git", "ls-remote", module.Url) output, err := cmd.CombinedOutput() if err != nil { return "" } lines := strings.Split(string(output), "\n") for _, line := range lines { re, ...
When Hillary Clinton conceded the presidential race to Donald Trump, her speech was dignified, but also tinged with a little sadness at the fact that the U.S. would have to keep waiting for its first female president. However, a group of young women in California seized upon her words of hope for women everywhere and ...
<reponame>etnetera/Email-Validator package cz.etn.emailvalidator; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.directory.InitialDirContext; import java.util.ArrayList; import java.util.List; imp...
/** * Copyright 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, ...
The Daily 202: Kentucky governor, not sold on Trump, embraces his role as a Clinton foil From:email@e.washingtonpost.com To: kaplanj@dnc.org Date: 2016-05-13 11:09 Subject: The Daily 202: Kentucky governor, not sold on Trump, embraces his role as a Clinton foil The Daily 202 from PowerPost Sponsored by Qualcomm | Why...
def hvac_mode(self) -> str: mode = self._azc_zone.mode if self._azc_zone.is_on: if mode in ["air-cooling", "radiant-cooling", "combined-cooling"]: return HVAC_MODE_COOL if mode in ["air-heating", "radiant-heating", "combined-heating"]: return HVAC_...
/** * This is an enumerated class that defines legal values for * XML tags. * <p> * This file derived from a ccc/rmw version which was generated. * However, this one is NOT generated - this is the master. */ public class XMLPagesTag extends EnumBase { /** * Keep track of each final object create...
package Assignment3; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class ZeckendorNumber { @SuppressWarnings({ "resource", "unchecked" }) public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); ArrayList<Integer> ns = new...
<gh_stars>0 import { ApiProperty } from "@nestjs/swagger"; export class CreateCategoryDto { @ApiProperty({example:'This is category name',description:'Product name'}) readonly name:string; @ApiProperty({example:'This is description',description:'Description product'}) readonly description:string; }
/** * Created by ergunerdogmus on 26.03.2017. */ public class CreateEventRepositoryTest { @Test public void getFieldsMapForEvent() throws Exception { Location location = new Location("deneme", 123, 123); String locationJson = new Gson().toJson(location); System.out.println(locationJs...
def read_runs(self, runs): perfs = {} confs = {} for run in runs: try: perfs[run] = pd.read_csv(os.path.join( run, 'performance.csv')).set_index('step') perfs[run]['type'] = perfs[run]['type'].str.strip() confs[run] ...
def render_image(plugin, **kwargs): return format_html('<img src="{}" alt="">', plugin.image.url)
/** Apply a transform to the instance. * <p>The instance must be a (D-1)-dimension sub-hyperplane with * respect to the transform <em>not</em> a (D-2)-dimension * sub-hyperplane the transform knows how to transform by * itself. The transform will consist in transforming first the * hyperplane a...
/** * Creates a ResourceMap object based on a set of <tt>&lt;resource&gt;</tt> elements: * <pre> * &lt;resource location="..." key="..."/&gt;* * </pre> */ public class ResourceMapFactory { private static final Log log = LogFactory.getLog(ResourceMapFactory.class); public static ResourceMap createResou...
<reponame>danhuyle508/data-structures-and-algorithms class Stack(): head = None def push(self, val): new_node = Node(val) new_node._next = self.head self.head = new_node def peek_stack(self): if self.head == None: return False else: retu...
Economic Development Policy in the Canton of Neuchatel After having experienced a period of steady economic and demographic growth in the 1960s, the Canton of Neuchatel was very severely hit by the crisis of 1975 and subsequently by that of 1982. Industrial activity suffered the consequences of these two successive re...
import { DirTreeElement, DirTreeNode, DirTree } from './main-files'; import { MoveFolderEvent } from './src/app/move-folder/move-folder.component'; export function removeBySubpath(paths: DirTreeElement[], subPath: string, prefix = false): DirTreeElement[] { paths = paths.filter((element) => { if (prefix) { ...
/** * Get the devliery semantics type from {@link ConfigurationKeys#DELIVERY_SEMANTICS}. * The default value is {@link Type#AT_LEAST_ONCE}. */ public static DeliverySemantics parse(State state) { String value = state.getProp(ConfigurationKeys.GOBBLIN_RUNTIME_DELIVERY_SEMANTICS, AT_LEAST_ONCE.toStri...
/** * Determine whether the given user-name is unique in current database table. * @param username - user-name used to check unique user-name. * @param userId - check unique user-name excluded the user instance of the given userId. * @return if the user-name is unique (excluded the user instance of the given us...
// NewWriter returns a new writer for the passed-in value, expecting a // struct pointer. It returns an error if the value is invalid or no // matching codec was found. func (s *Set) NewWriter(dst interface{}) (*Writer, error) { reader, err := s.NewReader(dst) if err != nil { return nil, err } return newWriter(ds...
// Register sets an update notifier. func (m *ExternalResourceMonitor) Register(ctx context.Context, notifier ResourceUpdateNotifier) { stream, err := m.ResourceReaderClient.Subscribe(ctx, &SubscribeRequest{}) if err != nil { klog.Errorf("grpc error while subscribing: %s", err) } go func() { for { _, err := ...
/** * Secure the operational API endpoints behind a confidential client grant flow with Azure AD (AAD) */ @Order(1) @Configuration @Profile("default | dev") public static class AzureAdSecurityConfiguration extends AadResourceServerWebSecurityConfigurerAdapter { @Override protected void configur...
Interrelationships Between Professional Virtual Communities and Social Networks, and the Importance of Virtual Communities in Creating and Sharing Knowledge This chapter presents the interrelationships between professional virtual communities and social networks, and analyzes how, and in what ways, these communities p...
package com.schlenz.blackjack; public interface Card { Suit getSuit(); Value getValue(); String getName(); }
/** * Paints this panel's children and then displays the initial message * (in the message area) if any. * This method is overridden so that this panel receives a notification * immediately after the children components are painted - it is necessary * for computation of space needed by the mess...
/***************************************************************************** * * Exosite_GetCIK * * \param pointer to buffer to receive CIK or NULL * * \return 1 - CIK was valid, 0 - CIK was invalid. * * \brief Retrieves a CIK from flash / non volatile and verifies the CIK * format is valid * **********...
package test // this package contains adoc file with various features that are verified to be supported by Libasciidoc // i.e., they should produce the same output as Asciidoctor
Cognitive models for panic disorder with agoraphobia: A study of disaggregated within-person effects. OBJECTIVE The purpose of this study was to test 2 cognitive models of panic disorder with agoraphobia (PDA)-a catastrophic cognitions model and a low self-efficacy model-by examining the within-person effects of model...
def summarize(posterior, digits=3, prob=0.9): mean = np.round(posterior.mean(), 3) ci = posterior.credible_interval(prob) print (mean, ci)
<filename>WebApps/Client Interface/OnTimeEvidence/src/main/java/com/web/cyneuro/user/users.java package com.web.cyneuro.user; import javax.persistence.Entity; import java.util.Date; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.T...
// maasify turns a completely untyped json.Unmarshal result into a JSONObject // (with the appropriate implementation of course). This function is // recursive. Maps and arrays are deep-copied, with each individual value // being converted to a JSONObject type. func maasify(client Client, value interface{}) JSONObjec...
/** * Used by the LCM C API to dispatch a Lua handler. This function invokes a * Lua handlers, which is stored in the subscribtion userdata, which was * created by the subscribe method. * * In order to do its work, this function need a pointer to the Lua stack * used by the handle function, a lcm_subscription_t p...
#include <stdio.h> #include <math.h> #define S(num) ((num) * (num)) typedef struct { float vertical; float horizontal; float height; } DATA; int main(void) { DATA cheese; float min_line; float in_circle; int n; int i; while (1){ scanf("%f %f %f", &cheese.vertical, &cheese.horizontal, &cheese.height); ...
Training and Certifying Behavior Analysts Proper professional certification and training of behavior analysts who work with individuals with autism is critical in ensuring that those individuals receive the highest quality behavior analytic services. This article discusses the current issues surrounding certification ...
async def run_module(self, module: BaseModule): await self.start_module(module)
/* * Common routine for all rcm calls which require daemon processing */ static int rcm_common(int cmd, rcm_handle_t *hd, char **rsrcnames, uint_t flag, void *arg, rcm_info_t **infop) { int i; if (hd == NULL) { errno = EINVAL; return (RCM_FAILURE); } if (getuid() != 0) { errno = EPERM; return (RCM_FAI...
/** * Changes the reference to one of the commands, which is specified by {@code commandWord}. */ private void changeCommandDetails(String fullCommandWord) { assert CommandDictionary.hasFullCommandWord(fullCommandWord); CommandDetails oldDetails = commandDetails; commandDetails = Comma...
<reponame>dphAndroid/dph_kjj package kj.dph.com.util.logUtil; import android.util.Log; import kj.dph.com.common.Constants; /** * Created by zhangyong on 2015/7/5. */ public class LogUtil { /** Log等级:上打印Log, 上线后改为此级别 */ public static final int NONE = -1; public static final int VERBOSE = 0; public static fina...
def _track_objects(self, contour_imgs): imm = self._track_material(contour_imgs[self.material_num_label]) imf = self._track_finger(contour_imgs[self.finger_num_label]) return imm, imf
Medical explanations of bewitchment, especially as exhibited during the Salem witch trials but in other witch-hunts as well, have emerged because it is not widely believed today that symptoms of those claiming affliction were actually caused by bewitchment. The reported symptoms have been explored by a variety of resea...
/** * Runs the server * @param args ignored * @throws ServerInitializeException when the server initialization failed * @throws ServerExecutionException when the server execution failed */ public static void main(final String[] args) throws ServerInitializeException, ServerExecutionException { ...
<gh_stars>1-10 import constate from "constate"; import { useMemo } from "react"; import type { PagePair } from "../comparator"; import { useIsDiffPagesOnlyState } from "./is-diff-pages-only"; import { usePagePairs } from "./page-pairs"; function useFilteredPagePairsInner(): PagePair[] | undefined { const pagePairs =...
Computer systems design is based on many commonly-held beliefs and heuristics, many of which have never been challenged: Thousands of server farm “load balancing” policies do exactly that: they aim to balance the load among the servers. But is load balancing necessarily a good thing? Consider a choice between a singl...
// Sets physics body shape transform based on radians parameter public void SetPhysicsBodyRotation(PhysicsBody body, float radians) { if (body != null) { body.orient = radians; if (body.shape.type == PHYSICS_POLYGON) { body.shape.transform = MathMatFromRadians(radians); ...
Most of us are familiar with the pounding headaches, drowsiness, stomach-turning nausea and "did-I-get-run-over-by-a-bus" sensation that comes with that most dreaded of morning-after ailments: the hangover. To alleviate the suffering, chugging coffee, downing Advil or simply choosing to forego the wretched day altoget...
// SHSymbolsLoaded // // Purpose: Checks to see if the symbols are loaded for an HEXE // // Input: HEXE for which to load symbols BOOL SHSymbolsLoaded( HEXE hexe, SHE * pshe ) { HEXG hexg; LPEXE lpexe; LPEXG lpexg; BOOL fRet = FALSE; if (pshe != NULL) { ...
PR55α regulatory subunit of PP2A inhibits the MOB1/LATS cascade and activates YAP in pancreatic cancer cells PP2A holoenzyme complexes are responsible for the majority of Ser/Thr phosphatase activities in human cells. Each PP2A consists of a catalytic subunit (C), a scaffold subunit (A), and a regulatory subunit (B). ...
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<ctime> #include<cmath> #include<iostream> #include<fstream> #include<string> #include<vector> #include<queue> #include<map> #include<algorithm> #include<set> #include<sstream> #include<stack> #include<assert.h> using n...
<gh_stars>10-100 package br.com.correios.api.postagem.xml; import java.io.StringReader; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import com.google.common.base.Optional; import br.com.correios.api.postagem.exception.PlpException; public class XmlPlp...
THU0338 Googling Ankylosing Spondylitis: Internet Search Activity from French Population Background The aims of the study are first to evaluate the most sought keywords in Google related to ankylosing spondylitis in 2013 in France and to compare it with those of other rheumatic diseases and to examine the scope and na...
<reponame>Alex-Hu2020/imx-optee-os- /* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright 2017-2018 NXP */ #ifndef __IMX7_DDRC_REGS__ #define __IMX7_DDRC_REGS__ #define IMX_DDR_TYPE_DDR3 BIT32(0) #define IMX_DDR_TYPE_LPDDR2 BIT32(2) #define IMX_DDR_TYPE_LPDDR3 BIT32(3) /* DDR Controller */ #define MX7_DDRC_...
// Package flags handles flag parsing package flags import ( "os" "strings" ) // Parse converts command line arguments into an interface. Argument // can have any number of leading dashes and be separated from their // value by an equal sign or white space. Equal signs must not be present // anywhere other than bet...
{-# LANGUAGE BangPatterns #-} {-| Macroscopic parameters calculation. We use regular spatial grid and time averaging for sampling. Sampling should start after particle system has reached steady state. Samples are then collected in each cell for a certain number of time steps. Sampling is performed in 'MacroSampling...
def new_material(self): current_mat, _ = self.get_current_material() new_mat = current_mat.copy() new_mat.name = new_mat.name + "_copy" new_mat.path = new_mat.path[:-5] + "_copy.json" if self.current_dialog is not None: self.current_dialog.close() self.current...
DATE: Oct 18, 2014 | BY: Brent McKnight | Category: Sci-Fi It’s no secret that we hated the character Andrea on AMC’s The Walking Dead, which is too bad, because in the comics that serve as the source material, she’s consistently been one of the best characters for years. They fucked her up royally on the hit zombie d...
/** * A dedicated value class ensures safe sorting, as otherwise there's a risk that the inflight AtomicInteger * might change mid-sort, leading to undefined behaviour. */ static final class ScoreSnapshot { private final int score; private final int inflight; private final Channel...
. Combined hepatocellular-cholangiocarcinoma is a rare form of primary liver cancer, featuring both hepatocellular and biliary epithelial differentiations. An intrahepatic tumor may be considered as a metastatic lesion. It has been suggested in the literature that the likelihood of metastasis in the cirrhotic liver is...
Mining Maximal Frequent Patterns in Molecular Data with Lookahead Pruning Mining maximal frequent patterns in large database is now a well attended problem in data mining field. In this paper we present an algorithm which mines maximal frequent substructures in a molecular data. The algorithm uses bottom-up depth firs...
<reponame>madame-rachelle/Raze //------------------------------------------------------------------------- /* Copyright (C) 1996, 2003 - 3D Realms Entertainment Copyright (C) 2017-2019 Nuke.YKT This file is part of Duke Nukem 3D version 1.5 - Atomic Edition Duke Nukem 3D is free software; you can redistribute it and/...
//! Represents a set of hyperparameters to optimize. use crate::model::google_cloud_ml_v1_parameter_spec::GoogleCloudMlV1__ParameterSpec; #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct GoogleCloudMlV1__HyperparameterSpec { /// Optional. The number of failed trials that need to ...
/** * Where part of query. * * @author Stanislav Dvorscak * */ public class QueryWhere extends DefaultQueryNode implements QueryTerm { /** * @see #QueryWhere(QueryCriterion) */ private final QueryCriterion whereCriterion; /** * Constructor. * * @param where * ...
/** * NET-VS: Settings screen */ @Override public boolean onSetting(GameEngine engine, int playerID) { if((netCurrentRoomInfo != null) && (playerID == 0) && (!netvsIsWatch())) { netvsPlayerExist[0] = true; engine.displaysize = 0; engine.enableSE = true; engine.isVisible = true; if((!netvsIsReady...
package io.github.xiaolei.transaction.viewmodel; /** * Represents the transaction filter type. */ public enum TransactionFilterType { BY_DAY, BY_WEEK, BY_MONTH, BY_YEAR, UNKNOWN }
<reponame>Anorlondo448/copilot-cli // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package cursor import ( "io" "strings" "testing" "github.com/AlecAivazis/survey/v2/terminal" "github.com/stretchr/testify/require" ) func TestEraseLine(t *testing.T) {...
/** * @author Anirudh Sharma */ public class BestTimeToBuyAndSellStockIV { public int maxProfit(int k, int[] prices) { // Special case if (prices == null || prices.length < 2 || k < 1) { return 0; } // Array for buying prices int[] buyingPrices = new int[k]; ...
<gh_stars>1-10 import React from 'react'; import { render, screen } from '@testing-library/react'; import { checkAccessibility, itSupportsFocusEvents, itSupportsSystemProps, itSupportsInputIcon, itConnectsLabelAndInput, itSupportsInputWrapperProps, } from '@mantine/tests'; import userEvent from '@testing-li...
<reponame>Legyver/fenxlib<gh_stars>1-10 package com.legyver.fenxlib.core.impl.icons; import com.jfoenix.svg.SVGGlyphLoader; import com.legyver.core.exception.CoreException; import com.legyver.fenxlib.core.api.icons.GlyphAccessData; import com.legyver.fenxlib.core.api.icons.IconService; import com.legyver.utils.adaptex...
def prepareGraphRepresentation(self): print("---------------------") print("Preparing graph:") print("---------------------") print " - Expanding and decomposing hierarchy..." if isinstance(self.root, TaskGroup): self.root = self.root.expand(True) else: ...
<reponame>sz-piotr/ethereum-test-provider import { expect } from 'chai' import { TestProvider } from '../src/TestProvider' import { utils } from 'ethers' describe('TestProvider.getWallets', () => { it('returns ten wallets', async () => { const provider = new TestProvider() const wallets = provider.getWallets...
#include <setjmp.h> #include <png.h> #include "gfx.h" #ifndef png_jmpbuf # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) #endif gfx_t *gfx_load_png(char *filename) { gfx_t *gfx = 0; int i, x, y; png_structp png_ptr = NULL; png_infop info_ptr = NULL; png_infop end_info = NULL; png_uint_32 width, heig...
# Map from listeners proto, with holes where filter config fragments should go, and # a list of filter config fragment protos, to a final listeners.pb with the # config fragments converted to the opaque Struct representation. import sys # Some evil hack to deal with the fact that Bazel puts both google/api and # goog...
The early reaction to the Nexus 6P from both critics and owners has been mostly positive, but a few new owners seem to be encountering serious problems. Specifically, the glass panel on the rear of the phone, which covers the camera, LED flash, and laser autofocus module, is reportedly cracking and breaking on its own....
#ifndef __PCAOPTIONS_HH__ #define __PCAOPTIONS_HH__ #include <cstdlib> #include <iostream> namespace hashpca { const char* help="Usage: pca [options] input [input2]\nAvailable options:\n\ -b <int> : size of feature hash (default: 65535)\n\ -k <int> : rank of approximation ...
/** * Checks recursively if some item will be rewritten. * * @param firstFile the file to be copied * @param secondDir the directory to which will be the file copied */ public static void checkRewrite(final File firstFile, final File secondDir) throws SomethingWrongException { for (Fil...
/** * A backpointer. * <p> * This is used to facilitate traceback after the Viterbi computation. * * @author Matthew Pocock */ public class BackPointer { /** * The state with which this backpointer is associated. */ public final State state; /** * The previous backpointer (towards origin of DP matr...