content
stringlengths
10
4.9M
<filename>src/yb/util/ctr_cipher_stream-test.cc // Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless...
Secondary non-Hodgkin's lymphoma after treatment for childhood cancer. To determine the risk and pertinent features of non-Hodgkin's lymphoma (NHL) as a second malignancy, medical records were searched of 5484 consecutive children treated for various malignancies at a single institution during a 27 year period. Of the...
// MustAddCasSpec adds a CasSpec to the TasksCfgBuilder and panics on failure. func (b *TasksCfgBuilder) MustAddCasSpec(name string, c *CasSpec) { if err := b.AddCasSpec(name, c); err != nil { sklog.Fatal(err) } }
def splice(self): self.history.loc['2012'] = self.history.loc['2011'] self.tab = self.history.append(self.prospect, sort=True)
<reponame>DragonStuff/actor-platform package im.actor.android;/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Properties; import im.actor.model.LocaleProvider; public class AndroidLocale imp...
/* * Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package com.openiot.cloud.projectcenter.controller.amqp; import com.fasterxml.jackson.databind.ObjectMapper; import com.openiot.cloud.base.common.model.TokenContent; import com.openiot.cloud.base.help.ConstDef; im...
def permission(self, permission): if permission is None: raise ValueError("Invalid value for `permission`, must not be `None`") allowed_values = ["generic_all", "generic_read", "generic_write", "generic_exec", "std_delete", "std_read_dac", "std_write_dac", "std_write_owner", "std_synchroni...
//===--- ClangTidyCheck.cpp - clang-tidy ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
def print_map(self, filename: str = "map", text: bool = False, wells: bool = True): if self._solved: grid = self._head_results vmin = np.nanmin(grid) vmax = np.nanmax(grid) for x, y in self.contam_coords: grid[y][x] = vmax + 1 current_c...
The Hindustan Times Group owned by the Bhartias set up a company in Bermuda, Go4i.com (Bermuda) Ltd, through HTBC Ltd, which is one of the three shareholders of the offshore entity, Appleby records show. The other two shareholders of Go4i.com (Bermuda) Ltd are Swaminn Investments, registered in Cayman Islands, and Indo...
<filename>nmapscan/func/nmap.py import ipaddress from operator import attrgetter from datetime import datetime from ipaddress import IPv4Network, IPv4Address from libnmap.process import NmapProcess from libnmap.parser import NmapParser, NmapParserException from nmapscan.db.model import NmapHost, NmapService, TargetFor...
<gh_stars>1-10 package template var vagrantfile = `# -*- mode: ruby -*- # vi: set ft=ruby : # {{.ForceUpdate}} Vagrant.configure(2) do |config| config.vm.box = "centos/7" # config.vm.hostname = "name.192.168.12.x.xip.io" # config.vm.network "private_network", ip: "192.168.12.x" # config.vm.network "forwarded...
Personal experiences in direct ultrasound-guided injection of thrombin into the lumen of pseudoaneurysm as a method of treatment in case of iatrogenic femoral artery damage. Summary Background: Pseudoaneurysms constitute a quite common complication of procedures requiring puncture of the common femoral artery. The ris...
#include <iostream> using namespace std ; struct Node { int Data ; Node *Next ; } ; class Dynamic_Queue { Node *Rear , *Front ; public : Dynamic_Queue() { Front = Rear = NULL ; } void Insert() { Node *Temp = new Node ; cout << "E...
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines X,A = map(int,read().split()) answer = 0 if X < A else 10 print(answer)
/** * Compare function which is used for sorting * @param c * @return */ @Override public int compareTo(Object c) { Double tf = fitness; return tf.compareTo(((WeightPair) c).getFitness()); }
<filename>app/src/main/java/com/grafixartist/gallery/retrogram/model/UserInPhoto.java package com.grafixartist.gallery.retrogram.model; public class UserInPhoto { private Position position; private User user; public Position getPosition() { return position; } public User getUser() { ...
<gh_stars>0 import { Algorithm, ChainId } from "@iov/bcp"; import { Slip10RawIndex } from "@iov/crypto"; import { UserProfile, WalletId } from "@iov/keycontrol"; import { AccountInfo, AccountManager } from "./index"; export interface SoftwareAccountManagerChainConfig { readonly chainId: ChainId; readonly algorith...
// // Gemini.h // Gemini // // Created by <NAME> on 2/25/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import <GLKit/GLKit.h> #include "lua.h" #include "lualib.h" #include "lauxlib.h" #import "GemPhysics.h" #import "GemFileNameResolver.h" #import "GemSoundM...
/** * Starts the application. * @param args an array of command-line arguments */ public static void main(java.lang.String[] args) { ODESolverResultSetColumnDescription testNot = new ODESolverResultSetColumnDescription ("variable"); ODESolverResultSetColumnDescription testOne = new ODESolverResultSetColumnDescr...
def find_avg_height(): try: connection = psycopg2.connect(database=database, user=user, password=password) except Exception as e: print(e) exit() try: cursor = connection.cursor() query = '''SELECT contests.sport, AVG(athletes.height) FROM contests...
<reponame>wmelvin/smb-conf-csv<gh_stars>0 #!/usr/bin/env python3 """ This console application reads a Samba configuration file (smb.conf) and writes some information about the shares to CSV format. """ import sys from datetime import datetime from textwrap import dedent from pathlib import Path app_version = "211...
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="visible", parent_name="layout.geo", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
<gh_stars>1-10 from sklearn.neighbors import BallTree, DistanceMetric import json import os import numpy as np def RGB_to_HEX(rgb): return '%02x%02x%02x' % rgb # Special metric based on human's sensitivity to red, green and blue def dist(rgbx, rgby): dR = rgbx[0] - rgby[0] dG = rgbx[1] - rgby[1] dB ...
/** * Creates an XDLRC file based on the currPartName. */ protected void generateBriefXDLRCFile(String partName, File file) { try { Process p = Runtime.getRuntime().exec("xdl -report " + partName + " " + file.getAbsolutePath()); p.waitFor(); } catch (IOException e) { ...
<reponame>meateam/permission-service<gh_stars>1-10 package service import ( "context" "fmt" "time" pb "github.com/meateam/permission-service/proto" "github.com/sirupsen/logrus" ) // Service is a structure used for handling Permission Service grpc requests. type Service struct { controller Controller logger ...
import { createDailyInterval, createDailyIntervalWithDayNumberAndName, } from "../date" describe("date test suite", () => { it("should return all dates from today", () => { jest.useFakeTimers("modern") jest.setSystemTime(new Date("2020-01-03").getTime()) const dates = createDailyInterval(7) ex...
/** * A simple {@link Fragment} subclass. */ public class PrepItemFragment extends Fragment { RecyclerView itemPrepRecycleView; private Map<String, Set<String>> conditionToItemsMap; private Set<String> choosenActivities; public PrepItemFragment(Map<String, Set<String>> ConditionToItemMap, Set<Strin...
/** * method used to decrease the number of occurrences of resources to be moved to / from the extra depots * It is performed when minusResourceExtra button is pressed */ @FXML public void minusDepotOcc() { if(occ > 1) { occ--; depotExtraOcc.setText("" + oc...
//////////////////////////////////////////////////////////////////////// // find cache device with largest amount of space int MaxCACHEDevice (UINT NeededSpace) { unsigned int Max = 0, iMax, Index; int Device = -1; Index = 0; while ( Index < CACHEDevices) { iMax = CheckFreeStoreOnCACHEDevice(Index); if(iM...
import os from django.conf import settings from django.template import TemplateDoesNotExist from django.core.exceptions import ImproperlyConfigured from dbtemplates.models import Template, backend def load_template_source(template_name, template_dirs=None): """ Tries to load the template from the dbtemplates ...
/** * callback to invoke when there is a change in cluster state specified by on( * notificationTypes) This callback must be idempotent which means they should * not depend on what changed instead simply read the cluster data and act on * it. * * @param callback * @return */ public HelixCustomCo...
ASSESSMENT OF THE EFFECT OF PLANT GROWTH REGULATORS ON IN VITRO MICROPROPAGATION AND METABOLIC PROFILES OF MELISSA OFFICINALIS L. (LEMON BALM) In this study the effectiveness of plant growth regulators on micropropagation, total phenol content and metabolic profiles of Melissa officinalis L., important medicinal herb ...
//-------------------------------------------------------------------------- // Remove a certain type of section. //-------------------------------------------------------------------------- int RemoveSectionType(int SectionType) { int a; for (a=0;a<SectionsRead-1;a++){ if (Sections[a].Type == SectionTy...
Biodegradation of petroleum by bacteria isolated from fishes of Indian Ocean. In this study, oil degrading bacteria discovered from fish living near the oil ports at Karachi in Pakistan were characterized. The bacteria isolated from skin, gills, and gut in fish could consume crude oil as a source of carbon and energy....
package org.microbule.metrics.core; import com.codahale.metrics.Timer; import org.junit.Before; import org.junit.Test; import org.microbule.config.api.Config; import org.microbule.config.core.MapConfig; import org.microbule.container.core.SimpleContainer; import org.microbule.metrics.spi.TimingStrategy; import org.mic...
#!/usr/bin/env node import { CommandLineParser } from '@microsoft/ts-command-line'; import { Logger } from './log'; import { ActionRotate } from './rotate/rotate.action'; export class ActionRotateCommandLine extends CommandLineParser { verbose = this.defineFlagParameter({ parameterLongName: '--verbose', ...
def verify(self, object_guid: str, secret: str) -> None: if object_guid.lower() != self._username.lower(): raise DigestMismatchError("Digest mismatch: username mismatch") if self._original_uri is not None and self._original_uri != self._uri: raise DigestMismatchError("Digest mism...
/** * Creates the index. * * @param graphId * the graph id * @param indexProperties * the index properties * @param request * the request */ public static void createIndex(String graphId, List<String> indexProperties, Request request) { if (StringUtils.isBlank(graphI...
/** * Run the registered test cases and return the accumulated results. * * @return OpenMetadataWorkbenchResults bean */ public OpenMetadataTestWorkbenchResults runTests() { List<OpenMetadataOriginTestCase> testCases = this.getTestCases(); OpenMetadataTestWorkbenchResults workb...
/** * Implementation of Exclude which matches names exactly. */ private static class ExcludeName implements Exclude { private final String name; private final boolean ignoreCase; private ExcludeName(final String name, final boolean ignoreCase) { this.name = name; ...
package web import ( "github.com/gin-gonic/gin" "mgd-check/core" "net/http" ) func InitWeb() { // 初始化gin & 注册路由 r := gin.Default() r.LoadHTMLGlob("web/template/*") r.GET("/", func(c *gin.Context) { c.HTML(http.StatusOK, "index.html", gin.H{}) }) r.POST("/register", func(c *gin.Context) { info := core....
<reponame>glines/shelltoy /* * Copyright (c) 2016-2017 <NAME> * <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the ...
package com.dampcake.gson.immutable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import org.junit.Rule; import org.junit.rules.ExpectedException; public abstract class BaseTest { protected final Gson gson = new GsonBuilder() .registerTypeAdapterFactory(ImmutableAdapterFactory.for...
<filename>inventory/crypto.go package inventory import "bytes" import "encoding/hex" import "encoding/json" import "errors" import "golang.org/x/crypto/ed25519" type agentSignaturePackage struct { Manifest ProjectManifest `json:"license"` LicensorSignature string `json:"licensorSignature"` } // C...
class qCirc: """Quantum circuit class Separates state preparation, unitary evolution and measurement into separate sections and applies them onto a qiskit circuit Attributes: ----------- nqubits: number of qubits input_state: initial state settings for the simulation V: list of GateObj...
from rackattack.common import globallock from inaugurator.server import server import logging class Inaugurate: def __init__(self, bindHostname): self._registered = {} self._server = server.Server( bindHostname=bindHostname, checkInCallback=self._checkIn, doneCallback=self._done) ...
/** * Re-register all current registrations for the port. */ int reregister_traps(struct omgt_port *port) { int ret; int status = -1; if (omgt_lock_sem(&port->lock)) { OMGT_OUTPUT_ERROR(port, "failed to acquire lock (status: %d)\n", status); return status; } omgt_sa_registration_t ...
def build_server(started, stopped, stopping): def server(port, wsgi_app): try: httpd = wsgiref.simple_server.make_server(self._host, port, wsgi_app) except socket.error: httpd = wsgiref.simple_server.make_server( self._host, port, wsgi_app, server_class=WsgiServer...
#!/usr/bin/env python # -*- coding: utf-8 -*- import tweepy from tweepy.parsers import JSONParser import requests # temporary, but it's a pain in the ass requests.packages.urllib3.disable_warnings() class TweepyWrapper(object): """Tweepy Wrapper.""" def __init__(self, configfile): """initialize ...
def UpdateObject(self, collection, keys, doc): assert collection and keys and doc assert elita.util.type_check.is_string(collection) assert elita.util.type_check.is_dictlike(keys) assert elita.util.type_check.is_dictlike(doc) paths = elita.util.paths_from_nested_dict(doc) ...
package caevo.sieves; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import caevo.SieveDocument; import caevo.SieveDocuments; import caevo.SieveSentence; import caevo.TemporalContext; import caevo.TextEvent; import caevo.tlink.EventEventLink; import caevo.tlin...
module PDDL where -- A first order logic formula data Form = Atom Predicate | And [Form] | Or [Form] | Not Form | Imply Form Form | Forall [TypedVars] Form | ForallWhen [TypedVars] Form Form | Exists [TypedVars] Form | Knows String For...
//! A data producer represents an endpoint capable of injecting data messages into a mediasoup //! [`Router`](crate::router::Router). //! //! A data producer can use [SCTP](https://tools.ietf.org/html/rfc4960) (AKA DataChannel) to deliver //! those messages, or can directly send them from the Rust application if the da...
. Nifurtimox (Nfx) is a chemotherapeutic agent used in the treatment of acute Chagas' disease. Clinical and experimental studies with this nitroheterocyclic compound evidenced serious undesirable side effects. These were correlated with Nfx nitroreduction to a nitroanion radical followed by superoxide anion generation...
IoT Event Classification Based on Network Traffic The Internet of Things (IoT) consists of sensors and actuators that facilitate many aspects of our daily life. Compared to typical computing devices such as laptops and smartphones, these devices have a very limited set of functionalities and states. Researchers have s...
def has_voted(user_id, review_id): last_revision = db_revision.get(review_id, limit=1)[0] with db.engine.connect() as connection: result = connection.execute(sqlalchemy.text(""" SELECT count(*) FROM vote WHERE revision_id = :revision_id AND user_id =...
Image copyright AFP Image caption Farc negotiator Ivan Marquez says the agreement includes reparations for victims of coca plantation spraying Colombia's government and the Farc, the country's largest rebel group, have agreed on a plan to deal with the illegal drug trade. Both parties agreed to eliminate all illicit ...
from abc import ABC import abc import numpy as np from federatedml.ensemble.boosting.boosting import Boosting from federatedml.feature.homo_feature_binning.homo_split_points import HomoFeatureBinningClient, \ HomoFeatureBinningServer from federatedml.util.classify_label_checker import ClassifyLabelChecker, Regressi...
#ifndef INCLUDING_MPL_FOLD_VV_HPP #define INCLUDING_MPL_FOLD_VV_HPP #include <tuple> #include "mpl_drop_v.hpp" namespace mpl { namespace detail::fold_vv { template<typename TFunctor, typename TAccumulator, typename TList> struct impl { }; template<typename TFunctor, typename TAccumulator> struct impl<TFun...
<reponame>EasternEdgeRobotics/2019<gh_stars>1-10 import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg # keeping here just in case pixel function doesn't work #def cannon_volume(r1, r2, r3, l): # vol_out = (1/3) * np.pi * (r3**2 + r3*r1 + r1**2) * l # vol_in = np.pi * r2**2 * l # ...
// List returns category list. func List(w http.ResponseWriter, r *http.Request) { r.ParseForm() typ := strings.TrimSpace(r.FormValue("Type")) db, err := server.Mongo() if err != nil { helper.WriteJSON(w, err.Error()) return } docs := []Model{} if server.Config.Authority.Enabled { user, _ := server.GetCurr...
package api import ( gin "github.com/gin-gonic/gin" ) // API api 路由注册 type API interface { Register(router *gin.RouterGroup) }
// LookupFederationNodesSyncByNodeIDModuleIDSyncTypeSyncStatus searches for activity by node, type and status // // It returns sync activity func (s Store) LookupFederationNodesSyncByNodeIDModuleIDSyncTypeSyncStatus(ctx context.Context, node_id uint64, module_id uint64, sync_type string, sync_status string) (*types.Nod...
/** GemStoneAddition - an object to monitor connection progress */ class ConnectTimerTask extends TimerTask implements ConnectionWatcher { Socket watchedSocket; volatile boolean cancelled; public void beforeConnect(Socket sock) { watchedSocket = sock; if (connectionTimer != null) { ...
// Retrieve the emulated processor's current Endianness. func (d *Debugger) Endianness() (Endianness, error) { regs, err := d.ReadRegAll() if err != nil { return LittleEndian, err } return d.arch.endianness(regs), nil }
As California descends ever deeper into a potentially devastating drought, with residents facing unprecedented demands to cut water use, everybody is looking for somebody else to blame. But perhaps the most high-profile scapegoat in the parched Golden State is not a somebody but a something: the highly nutritious, incr...
// Fill ground point density in cylindrical neighbourhood void Utils::ground_density(vector<probfeatnode>&probfeatVal) { }
<gh_stars>1-10 package com.hits.shield; public class CorChar { private String ychar; private String repchar; public String getYchar() { return ychar; } public void setYchar(String ychar) { this.ychar = ychar; } public String getRepchar() { return repchar; } public void setRepchar(String re...
RODEO: Replay for Online Object Detection Humans can incrementally learn to do new visual detection tasks, which is a huge challenge for today's computer vision systems. Incrementally trained deep learning models lack backwards transfer to previously seen classes and suffer from a phenomenon known as $"catastrophic fo...
Effect of some process parameters on geometric errors in twopoint incremental forming for Al-Cu-Mg Aluminum Alloy Two point incremental forming receives widespread study with its advantages of economy and flexibility in small batch products, such as aircraft parts. Aircraft parts, however, are rigorous in their shape ...
/* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of t...
Turkey-Russia-Iran meet in Ankara for ‘de-escalation zones’ in Syria ANKARA AFP photo Delegations from Turkey, Russia and Iran met in Ankara on May 18 for discussions to declare “de-escalation zones” in rebel-held areas of Syria, another round of talks will be held in Iran on May 21, Foreign Minister Mevlüt Çavuşoğl...
<reponame>anishgollakota/ArticleBiasChromeExtension import pandas as pd from pandas import DataFrame import re from nltk.corpus import stopwords import nltk article = pd.read_csv('../data/train.csv') article.drop(['id', 'title', 'author'], axis = 1, inplace = True) #print(tweets.Tweet[0]) # for d in article['text']:...
def iter_outputs(entity): if 'connections' not in entity: return connections = entity['connections'] countForOutputValue = {} for output, values in connections.items(): if isinstance(values, str): values = [values] assert isinstance(values, list) for value in ...
def decode(self, serialized_example): pass
<filename>headers/compiler/pipeline.h #ifndef pipeline_h #define pipeline_h #include <stdio.h> #include "compiler/compiler.h" #include "compiler/bytecode.h" #include "keywords.h" typedef struct pipeline_state pipeline_state; struct pipeline_state { // redirects to the last stage of the pipeline compiler_inf...
By Jonathan Fildes Technology reporter, BBC News, Oxford Desert sands, and the dunes that they form, are constantly on the move A plan to build a 6,000km-long wall across the Sahara Desert to stop the spread of the desert has been outlined. The barrier - formed by solidifying sand dunes - would stretch from Mauritan...
package ui import ( "fyne.io/fyne" "fyne.io/fyne/layout" "fyne.io/fyne/theme" "fyne.io/fyne/widget" "github.com/gohouse/go4rdm/event" "sync" ) type Rdm struct { ui *UI tabgroup *widget.TabContainer rdmkl *RdmKeylist //rdmc *RdmConnections //rdmct *RdmContent } var rdmOnce sync.Once var rdmObj *Rdm func N...
<filename>types/globalize-compiler/globalize-compiler-tests.ts<gh_stars>1000+ import * as ESTree from "estree"; import globalize = require("globalize"); import * as globalizeCompiler from "globalize-compiler"; let extractsArray: globalizeCompiler.FormatterOrParserFunction[]; const templateFunction: (options: globaliz...
/** * Checks a class path entry to see whether it can contain widgets and * widgetsets. * * All directories are automatically accepted. JARs are accepted if they * have the "Vaadin-Widgetsets" attribute in their manifest or the JAR file * name contains "vaadin-" or ".vaadin.". * ...
//! Trigger für auslösen eines Interrupt-Events use std::fmt::{Display, Formatter, Result}; use serde::{Deserialize, Serialize}; #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] pub enum Trigger { Disabled, RisingEdge, FallingEdge, Both, } impl Display for Trigger { fn fmt(&s...
def _line_segments_intersect(pt0, pt1, pt2, pt3): def validate(entry): if not isinstance(entry, numpy.ndarray): entry = numpy.array(entry) if entry.ndim != 1 or entry.size != 2: raise ValueError('all inputs must be numpy array of shape (2, )') return entry P = val...
def create_sample_data(params, min_seq_len=3, max_seq_len=10, scalar=True, shuffle=False): vocabSize = params['embed_dim'] output_dim = params['output_dim'] batch_size = params['batch_size'] seq_len = torch.randint(min_seq_len, max_seq_len, (batch_size,)) if shuffle is False: print("Sh...
<filename>src/client_runtime/mod.rs /* This module wraps the UdpSocket objects such that a user can run sending and receiving concurrently as tasks, receive downlink packets and send uplink packets easily */ use crate::{ pull_data, pull_resp, push_data, Down, MacAddress, Packet, ParseError, SerializablePac...
/* Try to expire a few timed out keys. The algorithm used is adaptive and * will use few CPU cycles if there are few expiring keys, otherwise * it will get more aggressive to avoid that too much memory is used by * keys that can be removed from the keyspace. * * No more than CRON_DBS_PER_CALL databases are tested ...
def RecordAccuracy(self, _train_accuracy, _test_accuracy): print("Epoch ", self.cur_epoch, " | Accuracy ", _test_accuracy * 100, " | Training ", _train_accuracy * 100) is_best_epoch = False if _test_accuracy > self.best_accuracy: self.best_accuracy = _test_accuracy self.l...
/** * Basic File Configuration Assistor. * <pre> * It reads XML format document configuration from file (/conf/common.xml) * </pre> */ public class NConfigulator { private static NXml conf; private static Map<String, String> cached = new HashMap<>(); static { loadXml(); } /** * Get chil...
/** * This is not a production Dynamic HTTP Server. It is intended for TEACHING * purposes. * * Use at your own risk! */ public class ProcessAndArgsOrder { private String process; private List<String> argumentOrder; ProcessAndArgsOrder() { argumentOrder = new ArrayList<String>(); } public void setProcess...
We lay low in the shell holes for there are no proper trenches any longer. The continuous bombardments reduced their depth in some areas to less than three feet. It is enough to lie down and close one’s eyes and wait for the next shell to claim him. Kat and I never stay in one place too long. We move from hole to hole...
class ReportFileWriter: """ Collects data needed to display a local report document, and generates the local HTML """ template: t.Optional[Template] = None assets: Path logo: str dev_mode: bool = False def _setup_template(self): """ Jinja template setup for local rendering """ ...
#include <gtest/gtest.h> #include "drake/common/test_utilities/eigen_matrix_compare.h" #include "drake/solvers/gurobi_solver.h" #include "drake/solvers/mathematical_program.h" #include "drake/solvers/mosek_solver.h" #include "drake/solvers/test/add_solver_util.h" #include "drake/solvers/test/mathematical_program_test_...
// Returns your open orders for a given market. func (c *Client) OpenOrdersFor(market string) ([]OpenOrder, error) { var orders []OpenOrder args := map[string]string{ "currencyPair": market, } err := c.callTradingApi("returnOpenOrders", args, &orders) return orders, err }
<reponame>joeyciechanowicz/typescript-compliation-benchmark export const THING_0 = 'THING_0'; export const THING_1 = 'THING_1'; export const THING_2 = 'THING_2'; export const THING_3 = 'THING_3'; export const THING_4 = 'THING_4';
<gh_stars>100-1000 package org.araymond.joal.core.bandwith.weight; import org.araymond.joal.core.bandwith.Peers; public class PeersAwareWeightCalculator { public double calculate(final Peers peers) { if (peers.getSeeders() == 0) { return 0.0; } final double leechersRatio = peer...
Development of Lithium-ion Batteries from Micro-Structured to Nanostructured Materials: Its Issues and Challenges Lithium-ion batteries are the systems of choice, offering high energy density, flexibility, lightness in weight, design and longer lifespan than comparable battery technologies. A brief historical review i...
class MqttClient: """Wrapper around the paho mqtt client.""" def __init__(self, broker_address): logging.info("MqttClient: Starting connection to {}".format(broker_address)) self.client = paho.mqtt.client.Client() self.client.connect(broker_address) def publish(self, topic, value):...
RETWINE: a new distributed environment for microelectronics instrumentation learning and measurement The paper proposes an original new way for integrating training of advanced measurement equipment in continuing education for students or engineers. It uses some of the WWW features such as the ability to have multimed...
/** * @author David Turanski **/ @ConfigurationProperties public class DataflowTaskLauncherSinkProperties { private TriggerProperties trigger = new TriggerProperties(); /** * The Spring Cloud Data Flow platform to use for launching tasks. */ private String platformName = "default"; public String getPlatfor...
I just found this site this morning, and I’m glad I did. It helps to read stories similar to what I have went through. My daughter starts preschool in a week, and I am worried for her. She is a big girl. She’s considered obese, even though her height is in the 99th percentile as well as her weight. Yes, she has a litt...