language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public synchronized void start() throws ManagedProcessException { logger.info("Starting up the database..."); boolean ready = false; try { mysqldProcess = startPreparation(); ready = mysqldProcess.startAndWaitForConsoleMessageMaxMs(getReadyForConnectionsTag(), dbStartMaxW...
python
def to_add(self, citiao): ''' To Add page. ''' kwd = { 'cats': MCategory.query_all(), 'slug': citiao, 'pager': '', } self.render('wiki_page/page_add.html', kwd=kwd, userinfo=self.userinfo)
python
def run(self, definition): """Processing the pipeline.""" self.logger.info("Running with Python %s", sys.version.replace("\n", "")) self.logger.info("Running on platform %s", platform.platform()) self.logger.info("Current cpu count is %d", multiprocessing.cpu_count()) self.logger...
python
def parse(readDataInstance): """ Returns a new L{NETDirectory} object. @type readDataInstance: L{ReadData} @param readDataInstance: A L{ReadData} object with data to be parsed as a L{NETDirectory} object. @rtype: L{NETDirectory} @return: A new L{NETDirec...
java
public DescribeTasksRequest withTasks(String... tasks) { if (this.tasks == null) { setTasks(new com.amazonaws.internal.SdkInternalList<String>(tasks.length)); } for (String ele : tasks) { this.tasks.add(ele); } return this; }
python
def best(args): """ %prog best blastfile print the best hit for each query in the blastfile """ p = OptionParser(best.__doc__) p.add_option("-n", default=1, type="int", help="get best N hits [default: %default]") p.add_option("--nosort", default=False, action="store_true", ...
java
public List<CmsOrganizationalUnit> getOrgUnitsForRole(CmsDbContext dbc, CmsRole role, boolean includeSubOus) throws CmsException { String ouFqn = role.getOuFqn(); if (ouFqn == null) { ouFqn = ""; role = role.forOrgUnit(""); } CmsOrganizationalUnit ou = readOr...
python
def during(f): """Runs f during the decorated function's execution in a separate thread.""" def decorator(g): @wraps(g) def h(*args, **kargs): tf = Thread(target=f, args=args, kwargs=kargs) tf.start() r = g(*args, **kargs) tf.join() ret...
java
Block createNextBlock(@Nullable final Address to, final long version, @Nullable TransactionOutPoint prevOut, final long time, final byte[] pubKey, final Coin coinbaseValue, final int height) { Block b = new Block(params, version); ...
python
def read_data(header, fh=None, filename=None, index_order='F'): """Read data from file into :class:`numpy.ndarray` The two parameters :obj:`fh` and :obj:`filename` are optional depending on the parameters but it never hurts to specify both. The file handle (:obj:`fh`) is necessary if the header is attached...
java
private Optional<Data<Input, Output>> match_(Input input) { return Optional.ofNullable(recent_.get()) .filter((Data<Input, Output> data) -> equality_.test(data.getInput(), input)); }
java
protected void setDefaults() { // map.put("tsd.network.port", ""); // does not have a default, required // map.put("tsd.http.cachedir", ""); // does not have a default, required // map.put("tsd.http.staticroot", ""); // does not have a default, required default_map.put("tsd.mode", "rw"); default_map...
java
@Override public DescribeAvailabilityZonesResult describeAvailabilityZones(DescribeAvailabilityZonesRequest request) { request = beforeClientExecution(request); return executeDescribeAvailabilityZones(request); }
java
public static final long generateId() { long id = 0; // add new seed material from current time random.addSeedMaterial(ThreadLocalRandom.current().nextLong()); // get a new id byte[] bytes = new byte[16]; // get random bytes random.nextBytes(bytes); for (i...
python
def p_values(self, p): """values : | values value VALUE_SEPARATOR | values value""" if len(p) == 1: p[0] = list() else: p[1].append(p[2]) p[0] = p[1]
python
def _get_from_send_queue(self): ''' Get message from send queue, if one exists ''' try: packet = self.transmit.get(block=False) self.logger.info('Sending packet') self.logger.debug(packet) return packet except queue.Empty: pass ...
python
def map_gid2(self, tiled_gid): """ WIP. need to refactor the gid code :param tiled_gid: :return: """ tiled_gid = int(tiled_gid) # gidmap is a default dict, so cannot trust to raise KeyError if tiled_gid in self.gidmap: return self.gidmap[tiled_gid] ...
java
public void serviceName_modem_lan_lanName_dhcp_dhcpName_PUT(String serviceName, String lanName, String dhcpName, OvhDHCP body) throws IOException { String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}"; StringBuilder sb = path(qPath, serviceName, lanName, dhcpName); exec(qPath, "PUT", sb.toStri...
python
def hardware_port_group_mode_support_performance(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") hardware = ET.SubElement(config, "hardware", xmlns="urn:brocade.com:mgmt:brocade-hardware") port_group = ET.SubElement(hardware, "port-group") name_k...
java
public static INDArray reverseTimeSeriesMask(INDArray mask, LayerWorkspaceMgr workspaceMgr, ArrayType arrayType){ if(mask == null){ return null; } if(mask.rank() == 3){ //Should normally not be used - but handle the per-output masking case return reverseTimeSe...
java
public static IntArray getInstance(byte[] buffer, int offset, int length, int bitCount, ByteOrder order) { ByteBuffer bb = ByteBuffer.wrap(buffer, offset, length).order(order); switch (bitCount) { case 8: return getInstance(bb); case 16: ...
java
protected static Response scoreOne(Frame frame, Model score_model, boolean adapt) { return Frames.scoreOne(frame, score_model); }
java
public void setHttpProxy(String httpProxy) { this.httpProxy = httpProxy; if (httpProxy == null) { // throw new IllegalArgumentException("'httpProxy' cannot be null"); return; } String[] tokens = httpProxy.split(":"); int count = tokens.length; if (count == 1) { System.setProperty("http.proxyH...
java
void processInvalidListeners(Enumeration enum1, Connection nukerCon) throws Exception { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[PROCESS_INVALID_LIST...
python
def get_feature_report(self, size, report_id=0x00): """ Get a feature report from a HID device. Feature reports are sent over the Control endpoint as a Get_Report transfer. Parameters: size The number of bytes to read. report_id The report id to...
java
public static FutureRowCount fetchRowCount(MultivaluedMap<String, String> queryParams, Query query) { String reqTotalCount = getSingleParam(queryParams.get(REQ_TOTAL_COUNT_PARAM_NAME)); if (reqTotalCount != null && !"false".equalsIgnoreCase(reqTotalCount) && !"0".equals(reqTotalCount)) { ret...
java
public static String simpleTypeName(Class<?> clazz, boolean decapitalize) { if (clazz == null) { return "null"; } String className = clazz.getName(); final int lastDotIdx = className.lastIndexOf('.'); if (lastDotIdx >= 0) { className = className.substring...
java
public Observable<ServiceResponse<Page<JobStepInner>>> listByVersionNextWithServiceResponseAsync(final String nextPageLink) { return listByVersionNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<JobStepInner>>, Observable<ServiceResponse<Page<JobStepInner>>>>() { ...
python
def token_clean(self, length, numbers=True): """ Strip out non-alphanumeric tokens. length: remove tokens of length "length" or less. numbers: strip out non-alpha tokens. """ def clean1(tokens): return [t for t in tokens if t.isalpha() == 1 and len(t) > leng...
java
@Override public String copyContent(String srcSpaceId, String srcContentId, String destSpaceId, String destContentId) throws ContentStoreException { return copyContent(srcSpaceId, src...
python
def parse_reaction(reaction_def, default_compartment, context=None): """Parse a structured reaction definition as obtained from a YAML file Returns a ReactionEntry. """ reaction_id = reaction_def.get('id') _check_id(reaction_id, 'Reaction') reaction_props = dict(reaction_def) # Parse rea...
python
def verify_directory(dir): """create and/or verify a filesystem directory.""" tries = 0 while not os.path.exists(dir): try: tries += 1 os.makedirs(dir, compat.octal("0775")) except: if tries > 5: raise
python
def describe_api_resource(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, and an absolute resource path, returns the resource id for the given path. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe...
java
@Override public synchronized void stop(final StopContext stopContext) { final ExecutorService executorService = executor.getValue(); final Runnable task = new Runnable() { @Override public void run() { try { responseAttachmentSupport.shutd...
python
def get(url, **kwargs): """ Wrapper for `request.get` function to set params. """ headers = kwargs.get('headers', {}) headers['User-Agent'] = config.USER_AGENT # overwrite kwargs['headers'] = headers timeout = kwargs.get('timeout', config.TIMEOUT) kwargs['timeout'] = timeout kwargs...
java
@XmlElementDecl(namespace = "http://www.citygml.org/ade/sub/0.9.0", name = "_GenericApplicationPropertyOfAbstractTunnel") public JAXBElement<Object> create_GenericApplicationPropertyOfAbstractTunnel(Object value) { return new JAXBElement<Object>(__GenericApplicationPropertyOfAbstractTunnel_QNAME, Object.cla...
java
public Script parse(File file) throws CompilationFailedException, IOException { return parse(new GroovyCodeSource(file, config.getSourceEncoding())); }
java
private void drawYValues(Graphics2D chartGraphics) { if (!showYAxisValues) { return; } chartGraphics.setColor(axisValuesColour); for (int i = 0; i < yValues.length; i++) { if (i % yAxisValuesFrequency != 0) { continue; } String yValueStr = yValues[i].toString(); ...
java
@Override public IScan addScan(final IScan scan) { IScan oldScan = index.add(scan); // update available precursor m/z ranges map //Double avgWndMz = null; Interval1D<Double> si = null; // search interval if (scan.getMsLevel() == 1) { if (scan.getScanMzWindowLower() != null && scan.getScanM...
python
def get_args(self, state, all_params, remainder, argspec, im_self): ''' Determines the arguments for a controller based upon parameters passed the argument specification for the controller. ''' args = [] varargs = [] kwargs = dict() valid_args = argspec.ar...
java
public static <T> CloseableIterator<T> distinct(final CloseableIterator<T> iterator) { return wrap(Iterators2.distinct(iterator), iterator); }
java
public void doWithRows(Consumer<Row> doable) { Row row = new Row(this); while (row.hasNext()) { doable.accept(row.next()); } }
python
def isfieldvalue(bunchdt, data, commdct, idfobj, fieldname, value, places=7): """test if idfobj.field == value""" # do a quick type check # if type(idfobj[fieldname]) != type(value): # return False # takes care of autocalculate and real # check float thiscommdct = getfieldcomm(bunchdt, data, com...
java
public BitSet projectG1(BitSet set) { BitSet projection = new BitSet(firstGraphSize); RNode xNode = null; for (int x = set.nextSetBit(0); x >= 0; x = set.nextSetBit(x + 1)) { xNode = (RNode) graph.get(x); projection.set(xNode.rMap.id1); } return projectio...
java
@Override public final void setup( Mapper<INPUT_KEY, INPUT_VALUE, DatumWrapper<ITuple>, NullWritable>.Context context) throws IOException, InterruptedException { try { super.setup(context); Configuration conf = context.getConfiguration(); TupleMRConfig tupleMRConfig = TupleMRConfig.get(conf); t...
python
def read_numpy(fh, byteorder, dtype, count, offsetsize): """Read tag data from file and return as numpy array.""" dtype = 'b' if dtype[-1] == 's' else byteorder+dtype[-1] return fh.read_array(dtype, count)
python
def can_solve(cls, filter_): """Tells if the solver is able to resolve the given filter. Arguments --------- filter_ : subclass of dataql.resources.BaseFilter The subclass or ``BaseFilter`` to check if it is solvable by the current solver class. Returns ----...
java
private static KeyPair parsePrivateKeyFile(File keyFile) { if (keyFile == null) { return null; } try { JSch jsch = new JSch(); KeyPair key = KeyPair.load(jsch, keyFile.getAbsolutePath()); return key; } catch (JSchException ex) { ...
python
def _from_dict(cls, _dict): """Initialize a TrainingExampleList object from a json dictionary.""" args = {} if 'examples' in _dict: args['examples'] = [ TrainingExample._from_dict(x) for x in (_dict.get('examples')) ] return cls(**args)
java
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) { columns.add(new ColumnInfo("TIMESTAMP", VoltType.BIGINT)); columns.add(new ColumnInfo(VoltSystemProcedure.CNAME_HOST_ID, VoltSystemProcedure.CTYPE_ID)); columns.add(new ColumnInfo("HOSTNAME", ...
python
def cov_from_trace(self, trace=slice(None)): """Define the jump distribution covariance matrix from the object's stored trace. :Parameters: - `trace` : slice or int A slice for the stochastic object's trace in the last chain, or a an integer indicating the how many o...
python
def get_label_items(self, label_id, top=None, skip=None): """GetLabelItems. Get items under a label. :param str label_id: Unique identifier of label :param int top: Max number of items to return :param int skip: Number of items to skip :rtype: [TfvcItem] """ ...
java
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { if (iChangeType == DBConstants.AFTER_UPDATE_TYPE) { Map<String,Object> properties = ((PropertiesField)this.getOwner().getField(UserInfo.PROPERTIES)).getProperties(); if (properties != null) ...
java
public final void page(final Map<String, Object> pRqVs, final IRequestData pRqDt, final OnlineBuyer pBuyr) throws Exception { TradingSettings ts = (TradingSettings) pRqVs.get("tradSet"); //orders: int page; String pgSt = pRqDt.getParameter("pg"); if (pgSt != null) { page = Integer.parseInt...
java
public Callable<?> get(String id, Class<?> type) { Resolver callable = this.id2callableMap.get(id); if (callable == null) { callable = new Resolver(id, type); this.id2callableMap.put(id, callable); } return callable; }
java
private static long elapsedDays(int year) { int y = year - 1; return DAYS_IN_YEAR * (long)y + div(y, 400) - div(y, 100) + div(y, 4); }
java
public void setMigratePartitionLeaderStatus(boolean migratePartitionLeader) { if (!migratePartitionLeader) { m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; m_newLeaderHSID = Long.MIN_VALUE; return; } //The previous leader has already drai...
java
public final ActivationStrategy getActivationStrategy() { if (ivActivationStrategy == null) { if (home == null) ivActivationStrategy = EJSContainer.homeOfHomes.getActivationStrategy(); else ivActivationStrategy = home.getActivationStrategy(); ...
java
public static boolean stopLiveValidation(final Object target) { if (sLiveValidations == null || ! sLiveValidations.containsKey(target)) { return false; } final ViewGlobalFocusChangeListener removed = sLiveValidations.remove(target); final ViewTreeObserver treeObserver = removed.formContainer.getViewTreeObser...
python
def get_gene(self, gene_name=None, gene_symbol=None, gene_id=None, synonym=None, uniprot_id=None, pharmgkb_id=None, biogrid_id=None, alt_gene_id=None, limit=None, as_df=False): """Get genes :param bool as_df: if set to True result returns as `pandas.DataFrame` :param alt_gene_i...
python
def get(self, index, feature=None, params=None): """ The get index API allows to retrieve information about one or more indexes. `<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html>`_ :arg index: A comma-separated list of index names :arg allo...
python
def session_path(cls, project, session): """Return a fully-qualified session string.""" return google.api_core.path_template.expand( 'projects/{project}/agent/sessions/{session}', project=project, session=session, )
python
def colRowIsOnFgsPixel(self, col, row, padding=-50): """Is col row on a science pixel? #See Kepler Flight Segment User's Manual (SP0039-702) \S 5.4 (p88) Inputs: col, row (floats or ints) padding If padding <0, pixel must be on silicon and this many pixels...
java
public void setStatus(com.google.api.ads.adwords.axis.v201809.rm.UserListMembershipStatus status) { this.status = status; }
java
@Override public String getConfigPath() { return JKThreadLocal.getValue(JKContextConstants.JK_CONFIG_PATH, JKContextConstants.JK_CONFIG_PATH_DEFAULT).toString(); }
python
def gc_content_plot (self): """ Create the HTML for the FastQC GC content plot """ data = dict() data_norm = dict() for s_name in self.fastqc_data: try: data[s_name] = {d['gc_content']: d['count'] for d in self.fastqc_data[s_name]['per_sequence_gc_content']} ...
java
@Override public void delete(IPermission perm) throws AuthorizationException { Connection conn = null; try { conn = RDBMServices.getConnection(); String sQuery = getDeletePermissionSql(); PreparedStatement ps = conn.prepareStatement(sQuery); try { ...
python
def WriteUserNotification(self, notification, cursor=None): """Writes a notification for a given user.""" # Copy the notification to ensure we don't modify the source object. args = { "username_hash": mysql_utils.Hash(notification.username), "notification_state": int(...
java
@Override public void executeImpl(SensorContext context) { try { LOG.info("Searching reports by relative path with basedir '{}' and search prop '{}'", context.fileSystem().baseDir(), getReportPathKey()); List<File> reports = getReports(context.config(), context.fileSystem().baseDir(...
python
def acl_absent(name, id=None, token=None, consul_url='http://localhost:8500'): ''' Ensure the ACL is absent name Specifies a human-friendly name for the ACL token. id Specifies the ID of the ACL. token token to authenticate you Consul query consul_url : http://locahos...
java
protected Map<String, String> getExtra(Dsn dsn) { return Util.parseExtra(Lookup.lookup(EXTRA_OPTION, dsn)); }
java
void setTextFace(final int face) { int style = 0; if ((face & QuickDraw.TX_BOLD_MASK) > 0) { style |= Font.BOLD; } if ((face & QuickDraw.TX_ITALIC_MASK) > 0) { style |= Font.ITALIC; } // TODO: Other face options, like underline, shadow, etc... ...
python
def subclass(cls, *bases, **kwargs): """ Add bases to class (late subclassing) Annoyingly we cannot yet modify __bases__ of an existing class, instead we must create another subclass, see here; http://bugs.python.org/issue672115 >>> class A(object): pass >>> class B(object): pass >>> c...
java
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "topoVolumeProperty") public JAXBElement<TopoVolumePropertyType> createTopoVolumeProperty(TopoVolumePropertyType value) { return new JAXBElement<TopoVolumePropertyType>(_TopoVolumeProperty_QNAME, TopoVolumePropertyType.class, null, value); ...
java
boolean contains(Block block, DatanodeDescriptor datanode) { BlockInfo info = blocks.get(block); if (info == null) return false; if (-1 == info.findDatanode(datanode)) return false; return true; }
python
def is_sh(executable): """Determine if the specified executable is a .sh (contains a #! line)""" try: with io.open(executable, encoding='latin-1') as fp: magic = fp.read(2) except (OSError, IOError): return executable return magic == '#!'
java
@NonNull public Context createContext(@NonNull Object key, @NonNull Context baseContext) { return new FlowContextWrapper(keyManager.findServices(key), baseContext); }
python
def report(self, display=False): """Evaluation report Parameters ---------- display : bool, optional Set to True to print the report to stdout. Returns ------- report : pandas.DataFrame Dataframe with one column per metric component, one ...
java
public static LanguageTag parse(String languageTag, ParseStatus sts) { if (sts == null) { sts = new ParseStatus(); } else { sts.reset(); } StringTokenIterator itr; // Check if the tag is grandfathered String[] gfmap = GRANDFATHERED.get(LocaleUtil...
python
def ReadTrigger(self, trigger_link, options=None): """Reads a trigger. :param str trigger_link: The link to the trigger. :param dict options: The request options for the request. :return: The read Trigger. :rtype: dict ""...
python
def get_terminal_size(): """ Get the terminal size in width and height. Works on Linux, Mac OS X, Windows, Cygwin (Windows). :return: Returns a 2-tuple with width and height. """ import platform current_os = platform.system() tuple_xy = None if current_os == 'Windows': tuple...
java
public void marshall(WorkflowTypeConfiguration workflowTypeConfiguration, ProtocolMarshaller protocolMarshaller) { if (workflowTypeConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(work...
java
private void writeObject(ObjectOutputStream stream) throws IOException { Object resolvedObj = getResolvedObj(); boolean serializable = resolvedObj instanceof Serializable; if (resolvedObj != null && !serializable) { // the cause is of this type, since resolvedObj is not null ...
java
public static <T> T resolveValue(ValueExpression expression, Class<T> type, ELContext elContext) { if(expression == null) { return null; } else { return type.cast(expression.getValue(elContext)); } }
java
public static void generate(ConfigurationImpl configuration, ClassTree classtree) { ClassUseMapper mapper = new ClassUseMapper(configuration.root, classtree); ClassDoc[] classes = configuration.root.classes(); for (int i = 0; i < classes.length; i++) { ...
python
def dump_yaml(data, Dumper=_Dumper, default_flow_style=False): """Returns data as yaml-formatted string.""" content = yaml.dump(data, default_flow_style=default_flow_style, Dumper=Dumper) return content.strip()
java
public void setPrimitive(Type type, int val) { if (type.hasValue()) { this.type = type; this.value = val; this.left = null; this.right = null; this.query = null; } else { throw new IllegalArgumentException("Value provided for non-va...
java
@SuppressWarnings("unused") private static void buildSinCosTables(double[] SINE_TABLE_A, double[] SINE_TABLE_B, double[] COSINE_TABLE_A, double[] COSINE_TABLE_B, int SINE_TABLE_LEN, double[] TANGENT_TABLE_A, double[] TANGENT_TABLE_B...
java
public static double deriv(double pred, double y, double eps) { final double x = pred - y; if(eps < Math.abs(x)) return Math.signum(x); else return 0; }
python
def set_data_location(self, current_extent, start_extent): # pylint: disable=unused-argument # type: (int, int) -> None ''' A method to set the location of the data that this UDF File Entry points to. Parameters: current_extent - Unused start_extent - The star...
python
def extend_log(self, field, value): """A context wherein a specified extra field in log messages is populated with a fixed value. This affects all log messages within the context.""" self.__log_extensions.append((field, value)) try: yield except Exception as e: ...
java
@Override public int read(byte b[], int offset, int length) { if (b == null) { throw new NullPointerException(); } // avoid int overflow if (offset < 0 || offset > b.length || length < 0 || length > b.length - offset) { throw new IndexOutOfBoun...
java
private BeanSpec beanSpecOf(Field field, Type genericType) { return of(field, genericType, injector); // int len = typeArgs.size(); // for (int i = 0; i < len; ++i) { // if (genericType.equals(typeArgs.get(i))) { // return of(field, typeImpls.get(i), injector()); // ...
python
def delete_search_index(self, index): """ Fetch the specified Solr search index for Yokozuna. :param index: a name of a yz index :type index: string :rtype boolean """ if not self.yz_wm_index: raise NotImplementedError("Search 2.0 administration is n...
java
private boolean readMetaDataHeader(ReadStream is) throws IOException { long magic = BitsUtil.readLong(is); if (magic != KELP_MAGIC) { log.info(L.l("Mismatched kelp version {0} {1}\n", Long.toHexString(magic), _path)); return false; } i...
java
public ServletResponse getServletResponse() { RequestContext reqContext = peekRequestContext(); if (reqContext == null) return null; return reqContext._response; }
java
public Credentials getScopedCredentials() { Credentials credentialsToReturn = credentials; if (credentials instanceof GoogleCredentials && ((GoogleCredentials) credentials).createScopedRequired()) { credentialsToReturn = ((GoogleCredentials) credentials).createScoped(getScopes()); } return...
java
public static BigDecimal parsePrettyString(String numberStr) throws ParseException { return new BigDecimal(PRETTY_FORMAT.get().parse(numberStr).doubleValue()); }
java
public static String getConnectHost(ServiceType service, AlluxioConfiguration conf) { if (conf.isSet(service.mHostNameKey)) { String connectHost = conf.get(service.mHostNameKey); if (!connectHost.isEmpty() && !connectHost.equals(WILDCARD_ADDRESS)) { return connectHost; } } if (conf...
python
def make_zigzag(points, num_cols): """ Converts linear sequence of points into a zig-zag shape. This function is designed to create input for the visualization software. It orders the points to draw a zig-zag shape which enables generating properly connected lines without any scanlines. Please see the belo...