content
stringlengths
10
4.9M
How Google Sparsehash achieves two bits of overhead per entry using sparsetable Google Sparsehash was released in 2005 and offered two different hash table implementations - Densehash for speed and Sparsehash for space. The Sparsehash implementation remains one of the most space efficient hash tables available, requir...
/** * @author Mehdi WISSAD */ public class DishIngredient { private Ingredient ingredient; private int quantity; public DishIngredient(Ingredient ing, int quant){ ingredient = ing; quantity = quant; } public DishIngredient(){} public Ingredient getIngredient(){ return ingredient; } public int g...
I’ve not joined the “Twitter Generation” because somewhere deep down my leftist ideology believes that Marx really would not want a believer to go along with the technology pushed by large corporations. I may have to change my thinking after the news this morning that Venezuelan President Hugo Chavez has “tweeted.” Tw...
// reads a line from a file and returns a word struct S_WORD parse_line(char *string, char *delimiter) { char *token; char *next_token; int fld = 0; char arr[MAX_NR_FILES * 2 + 2][NAME_SIZE] = { 0x0 }; int i; token = strtok_s(string, delimiter, &next_token); while (token) { strcpy_s(arr[fld], strlen(token) + ...
N,M=map(int,input().split()) H=[0]+list(map(int,input().split())) A=[0]*(N+1) xy=[map(int,input().split()) for i in range(M)] x,y=[list(i) for i in zip(*xy)] for a,b in zip(x,y): for i in range(2): A[a]=max(A[a],H[b]) a,b=b,a print(sum(c>d for c,d in zip(H,A)))
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class sentance{ public static void main(String[]args) throws IOException{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.par...
<filename>src/event.ts import { createEvent } from "effector"; export const toggleEnableState = createEvent("Toggle extension enable state"); export const toggleShowProgressBarState = createEvent("Toggle show progress bar state"); export const setUserLanguage = createEvent("Set user language"); export const setLearnin...
def is_planted(self): return self._node_info_storage is not None
package main import ( "fmt" "io/ioutil" "log" "os" "regexp" "strconv" "strings" ) type Chemical struct { quantity int name string } type Reaction struct { reactants []Chemical product Chemical } func sliceToReaction(slice [][]string) Reaction { ...
use nix::errno::Errno; use nix::fcntl::AtFlags; use nix::sys::time::TimeSpec; use std::os::unix::io::RawFd; /// A file timestamp. #[derive(Clone, Copy, Debug)] pub enum UtimeSpec { /// File timestamp is set to the current time. Now, /// The corresponding file timestamp is left unchanged. Omit, /// ...
Image copyright AFP Image caption The US ratings agency has given Twitter's debt 'junk' status US ratings agency Standard & Poor's has given the debt of social media giant Twitter the rating "junk". S&P said Twitter's $1.8bn (£1.1bn) September debt issue - IOUs sold to investors in return for interest - were worthy o...
/** * Prints a help message. * The parameters correspond to program arguments. * * @param executable_name Name of the executable * @param log_file Name of the log file */ static void print_help_message(char* executable_name, char* log_file) { printf("Operating System Simulator\n\n...
def visit_Module(self, node): dict_id = dict() print "#" * 80 for element in ast.walk(node): if isinstance(element, ast.Name) and element.id not in dict_id: self.semantic.register_variable_id(element.id) dict_id[element.id] = 1 self.semantic.ne...
<filename>external/calcite-elasticsearch2-adapter/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchAggregationEnumerator.java package org.apache.calcite.adapter.elasticsearch; import org.apache.calcite.avatica.util.DateTimeUtils; import org.apache.calcite.linq4j.Enumerator; import org.apache.calcite...
<filename>test/log_heads_tails_test.go package test // import "berty.tech/go-ipfs-log/test" import ( "context" "fmt" "testing" "time" ipfslog "berty.tech/go-ipfs-log" "berty.tech/go-ipfs-log/entry" idp "berty.tech/go-ipfs-log/identityprovider" ks "berty.tech/go-ipfs-log/keystore" ds "github.com/ipfs/go-dat...
/// Convert the supplied str into the appropriate enum. /// @param[in] str A Ptr to a C-style string to be converted. /// @param[in] def The enum to return if no conversion was possible. /// @return The equivilent enum. stdAc::opmode_t IRac::strToOpmode(const char *str, const stdAc::op...
/** * Archives the Note with the unique ID specified. * * A note is a customizable text string that can be attached to various account attributes within Lockstep. You can use notes for internal communication, correspondence with clients, or personal reminders. The Note Model represents a note and a numbe...
from collections import deque N, K = map(int, input().split()) R, S, P = map(int, input().split()) T = input() hands = deque() score = 0 for i in range(N): hand = {'r': 'p', 's': 'r', 'p': 's'}[T[i]] if len(hands) == K: last = hands[0] if last == hand: hand = '*' hands.pop...
// parseV2Services parse services sections in yaml based procfile func parseV2Services(yaml *simpleyaml.Yaml, commands map[interface{}]interface{}, config *Config) ([]*Service, error) { var services []*Service commonOptions := &ServiceOptions{} err := parseV2Options(commonOptions, yaml) if err != nil { return nil...
An aircraft prepares to land at Suvarnabhumi Airport. Residents affected by aircraft noise have filed a series of complaints and lawsuits since the airport opened on Sept 28, 2006. (Bangkok Post file photo) The Central Administrative Court on Tuesday threw out a lawsuit filed by residents living near Suvarnabhumi airp...
def find_by_id(self, search_id, method='bfs'): method = method.lower() if method == 'bfs': return self._bfs(search_id) elif method == 'dfs': return self._dfs(search_id) else: raise ValueError('Unknown traversal method')
<reponame>kant/test-api # -*- coding: utf-8 -*- import random import uuid import silly def user_test_info(): set_id = str(uuid.uuid1()) rand_name: str = silly.noun() rand_num: int = random.randint(1, 10000) username: str = f"{rand_name}-{rand_num}" first_name: str = silly.verb() last_name: st...
n = str(input()).lower() m = str(input()).lower() # n_list = [] # m_list = [] # for char in n: # n_list.append(ord(char)) # for chara in m: # m_list.append(ord(chara)) # if sum(n_list) == sum(m_list): # print (0) # elif sum(n_list) > sum(m_list): # print (1) # else: # ...
// generate unique TypeInfos for each type, and also values that are valid for at least one of the TypeInfos for the matching row func generateTypeInfoArrays(t *testing.T) ([][]TypeInfo, [][]types.Value) { return [][]TypeInfo{ generateBitTypes(t, 16), {BoolType}, {DateType, DatetimeType, TimestampType}, ge...
// M E T H O D S ------------------------------------------------------------------------- @Override public void execute(Map<String,Object> transientVars, Map<String,String> args, PersistentVars persistentVars) throws WorkflowException { Object expected = args.get("expected"); Object actual = args....
import park env = park.make('cache') # env = park.make('load_balance') obs = env.reset() done = False while not done: # act = agent.get_action(obs) act = env.action_space.sample() obs, reward, done, info = env.step(act) print("act={}, obs={}, reward={}, done={}, info={}".format(act, obs, reward, done...
#ifndef __TEST_UTIL_H__ #define __TEST_UTIL_H__ #include "../jsmn.h" static int vtokeq(const char *s, jsmntok_t *t, unsigned long numtok, va_list ap) { if (numtok > 0) { unsigned long i; int start, end, size; jsmntype_t type; char *value; size = -1; value = NULL; for (...
import { Events } from 'src/Events/events.entity'; import { Invite } from 'src/Invite/invite.entity'; import { Entity, Column, PrimaryGeneratedColumn, OneToMany} from 'typeorm'; @Entity() export class User { @PrimaryGeneratedColumn() id: number; @Column() nome: string; @Column() sobrenome: str...
<filename>src/components/index.ts export * from './Head'; export * from './LiffProvider';
/** * * CLIENT CONSOLE * SHOW A MESSAGE FROM SERVER * * @author Leonardo * */ public class ClientConsole extends UnicastRemoteObject implements ClientConsoleInterface { //CLASS VARS private static final long serialVersionUID = 1L; private static int assignedToPlayer; /** * Scanner definition */ pri...
def show(self, package): command = f"pip show {package}" try: result = subprocess.check_output( command, shell=True, text=True, stderr=subprocess.STDOUT ) except subprocess.CalledProcessError as e: if "Package(s) not found:" in e.output: ...
// // Created by Mohammed on 07/01/2018. // #include <zconf.h> #include "Controleur.h" #include "Heros.h" #include "Salle.h" #include "VectorTemplate.h" #include "FactoryItem.h" #include "Object/Reward.h" Item *findItem(std::vector<Item *> *vec, Point *pos); Controleur::Controleur(Heros *heros) : heros(hero...
from cdislogging import get_logger logger = get_logger("gen3utils", log_level="info") def assert_and_log(assertion_success, error_message): """ If an assertion fails, logs the provided error message and updates the global variable "failed_validation" for future use. Args: assertion_success (...
A Rapid Dimension Hierarchical Aggregation Algorithm on High Dimensional Olap In the high dimensional DW, we full materialized the data cube impossibly. In this paper, we propose a novel aggregation algorithm, DHEPA, to vertically partition a high dimensional dataset into a set of disjoint low dimensional datasets cal...
package org.platformlayer; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.OutputStreamWriter; import org.apache.maven.plugin.MojoExecutionException; public class Utils { public static String capitaliz...
Your browser does not support HTML5 video tag.Click here to view original GIF The IXION windowless jet—which makes its interior transparent using display panels that cover most of the cabin—might look like an impossible sci-fi concept but the fact is that we are not very far from this. Check out the video. It's so coo...
//----------------------------------------------------------- /// Create an image in raw byte format /// /// @author S McGaw /// /// @param Image data in bytes /// @param Size of data in bytes /// @param [Out] Image resource //------------------------------------------------------------ void CreatePVRImageFromFile(cons...
Damnation Is Inevitable With Devil Survivor 2’s Devil Count By Ishaan . May 31, 2011 . 5:32pm In Devil Survivor 2, the thirteen protagonists sign a pact with a devil to become devil messengers. Like the first game, you can also bid on devils using a devil auction feature to add them to your forces. How many in total...
<reponame>LaudateCorpus1/mlctl<filename>mlctl/plugins/sagemaker/SagemakerTraining.py from mlctl.interfaces.Training import Training from mlctl.plugins.utils import parse_config import boto3 class SagemakerTraining(Training): def __init__(self, profile=None): if profile: boto3.setup_default_se...
Trump's Telecom Chief Is Ajit Pai, Critic Of Net Neutrality Rules Enlarge this image toggle caption Daniel Acker/Bloomberg/Getty Images Daniel Acker/Bloomberg/Getty Images Ajit Pai, the senior Republican on the Federal Communications Commission, will be the country's new chief telecommunications regulator. He's a pro...
import { createParser } from "./parser"; import { PullsListCommitsResponse } from "@octokit/rest"; describe("parser", () => { describe("integration tests", () => { test("Work well with Angular commits", async () => { const parser = createParser({}); const fixture: PullsListCommitsResponse = require("...
package rpc import ( // Stdlib "encoding/json" // RPC "github.com/leor-w/go-steem/interfaces" // Vendor "github.com/pkg/errors" ) func GetNumericAPIID(caller interfaces.Caller, apiName string) (int, error) { params := []interface{}{apiName} var resp json.RawMessage if err := caller.Call("call", []interfac...
# -*- coding: utf-8 -*- """ Created on Wed Nov 13 16:19:52 2019 @author: Hiroyasu """ """ Regression of P: R6 -> R6*6 """ import torch from torch.autograd import Variable import torch.nn.functional as F import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d import random class Net(torch...
Photoacoustic elastic oscillation and characterization Photoacoustic imaging and sensing have been studied extensively to probe the optical absorption of biological tissue in multiple scales ranging from large organs to small molecules. However, its elastic oscillation characterization is rarely studied and has been a...
/** * Removes a component from this container. * @param drawable Component */ public void remove(Drawable drawable) { components.remove(drawable); constraints.remove(drawable); layout(); }
<gh_stars>100-1000 import * as React from 'react'; function IconAttachSizeXs(props: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 12 12" {...props}> <path d="M7.579 10.78a3.999 3.999 0 01-5.657 0 3.999 3.999 0 010-5.657L6.165.88a2.996 2.996 0 014.242 0 2.996 2.996 0 010 4.243L6.165 9.366a2.00...
For other uses, see Milesians Myths & Legends of the Celtic Race, 1911 "The Coming of the Sons of Miled", illustration by J. C. Leyendecker in T. W. Rolleston's, 1911 In the Lebor Gabála Érenn, a medieval Irish Christian pseudo-history, the Milesians (Irish: gairthear Mílidh Easpáinne) are the final race to settle in...
. Antibodies against influenza viruses were detected by enzymimmunoassay (ELISA) in sera, lung lavage fluids and biles from Balb/c-mice infected by aerosol route or immunized subcutaneously and orally. In both immunized groups antibodies occurred in the bile. In infected animals first antibodies in sera were detectabl...
<reponame>IgorYevtushenkoUA/spring_team package com.example.faculty.database.dto.user; import lombok.Data; import javax.persistence.Lob; import javax.validation.constraints.*; @Data public class SignupRequest { @NotNull(message = "Field can't be null!") @NotEmpty(message = "Field can't be empty!") @Patt...
<reponame>jese1987/Dipper-Protocol package keys import ( "testing" "github.com/spf13/viper" "github.com/stretchr/testify/assert" "github.com/Dipper-Protocol/client/flags" "github.com/Dipper-Protocol/tests" ) func Test_runExportCmd(t *testing.T) { exportKeyCommand := exportKeyCommand() // Now add a temporary...
. In the hyperbaric chamber with the help of chromatographic, spectrophotometric and gravimetric methods the dynamics of the sorption of the volatile chemical matters (11 substances) on the activated charcoal and ion exchange fibrous material has been investigated. By the 30 kg/cm2 (He) the purifying speed of the gas ...
class MockStage: """A mock implemenation of a stepper motor driven linear stage""" MAX_POS = 100 MIN_POS = 0 def __init__(self): self._position = __class__.MIN_POS self.home() def home(self): """Move to home position""" LOGGER.info("Homing stage") self._posi...
def showRandom(mpids, ax=None, effMass=False, ktol=1e-1): mpid = mpids[int(np.random.rand()*len(mpids))] name = getFormula(mpid) if ax: kd, E, K, dc, pb = mpSpaghetti(mpid, El=(-4, 8), ktol=ktol, ax=ax) print('\n' + name) if effMass: ed.masses(kd, E, K, pb, dc, ax=ax)
import logging import os import pickle import cv2 import lmdb import numpy as np import torch.utils.data from PIL import Image from tensorpack.utils.compatible_serialize import loads from mlbench_core.dataset.util.tools import progress_download _logger = logging.getLogger("mlbench") # All available datasets _LIBSVM...
def query_email_and_ip_address(self, email, ip, **params): validation.assert_email(email) validation.assert_ip(ip) return self.query((email, ip), **params)
def has_certificate(domain): all_certs = fetch_domain_certs(domain) for cert in all_certs: if cert["name_value"] == domain: return cert
Replication of findings on the association of genetic variation in 24 hemostasis genes and risk of incident venous thrombosis A major obstacle to advancing knowledge of the genetic predictors of disease has been the failure to replicate findings when tested in new populations. In this letter, we present findings that ...
/****************************************************************************** * * MantaFlow fluid solver framework * Copyright 2014 <NAME>, <NAME> * * This program is free software, distributed under the terms of the * Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Simple imag...
#ifndef TENSORFLOW_CORE_KERNELS_VE_OPS_COMMON_H_ #define TENSORFLOW_CORE_KERNELS_VE_OPS_COMMON_H_ #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/tensor_types.h" #ifdef TENSORFLOW_USE_VE namespace tensorflow { class VEOpKernelHelper { ...
// CreateLocker create locker to registry with key/value func (r *Registry) CreateLocker(key string, value string, ttl string) (*consul.Locker, error) { if ttl == "" { ttl = "10s" } opts := &api.LockOptions{ Key: key, Value: []byte(value), SessionOpts: &api.SessionEntry{ Name: key, TTL: ttl,...
Getty Images Share Pinterest Email Yesterday, Ivanka Trump found time in her busy schedule of explaining how she has no obligation to be moral and her work helping to end equal pay efforts, to throw subtle shade at her baby nephew. Cuddling my little nephew Luke… the best part of an otherwise incredible day! pic.tw...
def listen(self): socket = self.ADDR[1] while True: try: with Resources(self.ADDR, authkey=self.SECRET) as message: counter = 0 while counter == 0: self.rec_queue.append(message) counter =...
This week it’s the Consumer Electronics Show in Las Vegas, an annual opportunity for tech companies to unveil their latest gizmos during January’s traditional slow news week, thereby picking up precious coverage that might otherwise be spent detailing something – anything – more important than an egg whisk with a USB p...
// Adaptor of Fibonacci class IterableFibonacci extends Fibonacci implements Iterable<Integer> { int n = 0; public IterableFibonacci(int n) { this.n = n; } @Override public Iterator<Integer> iterator() { return new Iterator<Integer>() { @Override public bool...
/** * Created by Pogman on 21.1.18. */ public class NightscoutStatus { private static final String TAG = NightscoutStatus.class.getSimpleName(); // recommend updating nightscout with versions older then this private final int NS_MAJOR = 0; private final int NS_MINOR = 10; private final int NS_POI...
class OdkChoices: """A class to represent a choice list defined in an XLSForm. Attributes: list_name (str): The name of the choice list. data (list): A list of choice options for the choice list. """ def __init__(self, list_name): """Initialize a choice list. Args: ...
// Code generated by mockery v1.0.0. DO NOT EDIT. package mocks import ( rsdb "github.com/realsangil/apimonitor/pkg/rsdb" mock "github.com/stretchr/testify/mock" rsmodel "github.com/realsangil/apimonitor/pkg/rsmodels" ) // Repository is an autogenerated mock type for the Repository type type Repository struct { ...
While out shopping for a friend’s birthday gift last weekend, I came upon an item I certainly wouldn’t mind having for myself—a DVD box set containing all 23 official James Bond films. As a huge 007 fan, I was amazed, and I got to thinking how great it would be to own every installment in the series. But then a difficu...
/** * C273 * @given a user with required permission * @when execute tx with SetAccountDetail command with inexistent user * @then there is no tx in block */ TEST_F(SetAccountDetail, NonExistentUser) { const std::string kInexistent = "inexistent@" + kDomain; IntegrationTestFramework(1) .setInitialState(kA...
<reponame>robotology/assistive-rehab /****************************************************************************** * * * Copyright (C) 2018 Fondazione Istituto Italiano di Tecnologia (IIT) * * All Rights Reserved. ...
/** * Does standard 'ok' clicked checking, and confirms overwrite before executing saver if * applicable * * @param parent * @param title * @param filter * @param defaultFileName * @param saver */ public static void doSaveDialog( Component parent, String title, FileFilter filter, String...
package br.com.bycoders.conversor.dto; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalTime; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import br.com.bycoders.conversor.model.Transacao; import lombok.Getter; import lombok.NoArgsConstruct...
John Kerry has been forced to delay visit to Pakist­an due to crisis in Syria, he will visit Pakist­an next month. ISLAMABAD: Advisor to Prime Minister on Foreign Affairs Sartaj Aziz informed the house Tuesday that drone attack issue would be raised with US Secretary of State John Kerry during his visit to Pakistan ne...
Exercise Training during Normobaric Hypoxic Confinement Does Not Alter Hormonal Appetite Regulation Background Both exposure to hypoxia and exercise training have the potential to modulate appetite and induce beneficial metabolic adaptations. The purpose of this study was to determine whether daily moderate exercise t...
def can_fit(m,n,x=0,y=0): move = 0 if (x + 2 <= m): move += can_fit(m,n,x+2,y) + 1 elif (y + 1 < n): move += can_fit(m,n,0,y+1) return move def domino_piling(): x = input() inp1,inp2 = x.split(' ') m = int(inp1) n = int(inp2) move = can_fit(int(m),int(n)) if m % 2 == 1: ...
/** * Useful tag to create a popup. * * @author JN RIBETTE */ public class PopupTag extends PanelTag { /** * Constants, indicating if the popup Js code has already been loaded or not. */ public static final String POPUP_KEY = "fr.improve.struts.taglib.layout.PopupTag.POPUP_KEY"; /** * Javascript id of t...
<gh_stars>1-10 import {assert, should, test} from 'gs-testing'; import {$intersect} from './intersect'; import {$pipe} from './pipe'; test('@tools/collect/intersect', () => { test('intersect', () => { should('create a set containing common entries', () => { assert($pipe(new Set([1, 2, 3]), $intersect(new ...
import numpy as np import pytest from scipy import sparse from sklearn.cluster import KMeans from sklearn.datasets import load_iris from sklearn.preprocessing import LabelBinarizer keras = pytest.importorskip("keras") from keras.layers import Dense # noqa: E402 from keras.models import Sequential # noqa: E402 from ...
<gh_stars>0 // @types/phaser/index.d.ts /// <reference path="../../node_modules/phaser/types/SpineGameObject.d.ts" /> /// <reference path="../../node_modules/phaser/types/SpinePlugin.d.ts" />
Our general interest e-newsletter keeps you up to date on a wide variety of health topics. Exercise for weight loss: Calories burned in 1 hour Being active can help you lose weight and keep it off. Find out how much you need. By Mayo Clinic Staff Being active is important for any weight-loss or weight-maintenance pro...
<filename>AlphaClient/AlphaGraph/CShaderD3D9.cpp<gh_stars>0 #include "stdafx.h" #include "CShaderD3D9.h" #include "CGraphicD3D9.h" CShaderD3D9::CShaderD3D9( CGraphic* pGraphic ): CShader(pGraphic), m_pShaderVertexShader(nullptr), m_pShaderPixelShader(nullptr) { } CShaderD3D9::~CShaderD3D9() { SAFE_RELEASE(m_pSha...
//+------------------------------------------------------------------------ // // Member: CHistoryLoadCtx::GetBindCtx // // Synopsis: Retrieves an addref'ed reference to the BindCtx for // recursive LoadHistories, if any // //------------------------------------------------------------------...
// AllocAndPack allocates a buffer and then packs the data inside it. func AllocAndPack(inputs ...Packable) []byte { var size uint for _, output := range inputs { size += output.Size() } buffer := make([]byte, size) var offset uint for _, output := range inputs { output.Pack(buffer[offset:]) offset += outpu...
def co_linear(edge_1, edge_2, tolerance_angel, tolerance_distance): if Edge.are_parallel(edge_1, edge_2, tolerance_angel): if Edge.shortest_distance(edge_1, edge_2) <= tolerance_distance: return True return False
/** * Builds a {@link SearchIndexClient} * * @return async service client */ private static SearchIndexClient createClient() { AzureKeyCredential searchApiKeyCredential = new AzureKeyCredential(ADMIN_KEY); return new SearchIndexClientBuilder() .endpoint(ENDPOINT) ...
Cryptanalysis of Zheng Et al.'s Pairing-Free Secure IBE Scheme Recently, Zheng et al. Proposed a provable secure IBE scheme without bilinear map under standard security model where it is claimed that their constructed scheme is secured against adaptively chosen cipher text attack. On cryptanalysis, we show through the...
def write(self, text, move=False): x, y = self._position x = x-1 item = self._canvas.create_text(x, y, text=str(text), anchor="sw", fill=self._color) self._items.append(item) if move: x0...
def list_zones(self): schema_params = SCHEMA_BUILDER_MAP.get('list_zones') attributes = schema_params.get('attributes') schema = api_schema_builder(schema_params.get('urn_nid'), schema_params.get('method'), attributes) ...
The Senate passed the USA Freedom Act today by 67-32, marking the first time in over thirty years that both houses of Congress have approved a bill placing real restrictions and oversight on the National Security Agency’s surveillance powers. The weakening amendments to the legislation proposed by NSA defender Senate M...
import styled from "styled-components/macro"; import IconButton from "../../components/IconButton/IconButton"; import { IconButtonStyle } from "../../components/IconButton/IconButton.styles"; import SettingsButton from "../../components/SettingsButton/SettingsButton"; import breakPoints from "../../style/breakpoints";...
import { createSequence } from './each' export const randInt = ( exclMax: number ) => Math.floor( Math.random() * exclMax ) export const randId = ( length = 24 ) => createSequence( length, () => randInt( 16 ).toString( 16 ) ).join( '' ) export const pick = <T>( arr: T[] ) => arr[ randInt( arr.length ) ...
Frank Karlitschek, ownCloud's founder and CTO, has resigned from his company. OwnCloud is a popular do-it-yourself infrastructure-as-a-service (IaaS) cloud. ownCloud In a public letter, Karlitschek first explained that he "founded the ownCloud project a little over 6 years ago with the goal to enable home users, comp...
def generate_server_report_formatted(self, target): server_ids = self.get_id_for_server_target(target) result = "" if len(server_ids) == 0: return "Unable to find server %s" % target for server_id in server_ids: Utility.log_stdout("ServerReport: Starting report fo...
def adaptive_batching(f: Callable[[InferenceRequest], Awaitable[InferenceResponse]]): @wraps(f) async def _inner(payload: InferenceRequest) -> InferenceResponse: wrapped_f = get_wrapped_method(f) if not hasattr(wrapped_f, "__self__"): raise InvalidBatchingMethod( wrap...
#include <cstdio> int n,m,d[100001],e[100001],sayac; bool mark[100001]; int main() { scanf("%d %d",&n,&m); for(int i=1;i<=n;i++) scanf("%d",&d[i]); for(int i=n;i>=1;i--) { if(!mark[d[i]]) { sayac++; mark[d[i]]=1; } e[i]=sayac; } for(int i=1;i<=m;i++) { int sorgu; scanf("%d",&sorgu); p...
/** * The DescribeDiskStoreFunction class is an implementation of a GemFire Function used to collect * information and details about a particular disk store for a particular GemFire distributed system * member. * * @see org.apache.geode.cache.DiskStore * @see org.apache.geode.cache.execute.Function * @see org.ap...
#include "nSoundListener.h" #include "nSoundSystem.h" #ifdef NEIA #include "../scene/nSceneCamera.h" #include "OgreCamera.h" #endif #include "AL/al.h" nSoundListener::nSoundListener(nSoundSystem * parent) : QObject(parent) { #ifdef NEIA m_camera = 0; #endif m_updating = true; } #ifdef NEIA void nSoundLis...
Arizona Sen. Jeff Flake is in trouble from all sides. With a dismal approval rating of 18 percent, he faces a primary challenge from former state Sen. Kelli Ward. At the federal level, President Trump torched Flake for being weak on borders, crime, and being a “non-factor” in the Senate. The president also called him t...
Flashback 1936: Sovereign Americans Pledged as Collateral on Government Debt to the Federal Reserve 0 May 17, 2016 Flashback 1936: Sovereign Americans Pledged as Collateral on Government Debt to the Federal Reserve A LOT MORE HAPPENED THAN JUST THE CONFISCATION OF THE PEOPLE’S GOLD! [The following is excerpted from ...
<reponame>cmeb45/YouTubePlaylist #!/usr/bin/python from nose.tools import * import unittest import re import unicodedata import pandas as pd import numpy as np import math import httplib2 import os import sys import prod_playlists as yt from apiclient.discovery import build from apiclient.errors import HttpError from...