content
stringlengths
10
4.9M
import {MINUTE_IN_SECONDS} from '../math/timestamp-constants' export const PURCHASING_FACTOR = 0.95 export const MINIMAL_TALENT = 0.001 export const EMPLOYMENT_PROTECTION_SECONDS = 30 * MINUTE_IN_SECONDS export const MALL_MIN_PEOPLE = 3 export const MALL_MAX_PEOPLE = 7
<gh_stars>1-10 package juice import ( "github.com/stretchr/testify/assert" "strings" "testing" ) var Html = ` <html> <head> <title>Newsletters</title> </head> <body> <div class="container"></div> </body> </html> ` var Css = []byte(` body { margin: 0; } .container { font-size: 21px; } body .c...
GETTY Kylian Mbappe reveals admiration for Real Madrid manager Zinedine Zidane Mbappe has emerged as one of the hottest prospects in Europe going into the summer transfer window after a stunning breakthrough campaign at Monaco. The 18-year-old striker hit 26 goals in his 44 appearances to help Monaco to their first Li...
<gh_stars>0 /* * Copyright (C) 2014 The Android Open Source Project * * 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 req...
/** * A {@link ResourceResolver} that replaces the //BLC-SERVLET-CONTEXT and //BLC-SITE-BASEURL" * tokens before serving the BLC.js file. * * This component modifies the path and works in conjunction with the {@link BLCJSResourceResolver} * which loads the modified file. * * The processes were split to allow ...
// You are guaranteed that Reactor will only be tested against types that are Copy + PartialEq. impl<'a, T: Copy + PartialEq + std::fmt::Debug> Reactor<'a, T> { pub fn new() -> Self { Reactor { input_cells: Vec::new(), compute_cells: Vec::new(), } } // Creates an inp...
def mock_datagram_client(recv_response): mock_datagram_client = MagicMock() mock_datagram_client.connect = AsyncMock() mock_datagram_client.recv = recv_response mock_datagram_client.send = AsyncMock() mock_datagram_client.close = MagicMock() with patch("asyncio_dgram.connect", return_value=mock_...
def watch(self): rev = self.client.rev().rev def watchjob(rev): change = None while True: try: change = self.client.wait("%s/**" % self._folder, rev) except Timeout: rev = self.client.rev().rev ...
// NewS2EProtocol creates a new S2EProtocol struct from the passed BFV parameters. func NewS2EProtocol(params bfv.Parameters, sigmaSmudging float64) *S2EProtocol { s2e := new(S2EProtocol) s2e.CKSProtocol = *NewCKSProtocol(params, sigmaSmudging) s2e.params = params s2e.encoder = bfv.NewEncoder(params) s2e.zero = rl...
import {Component, OnInit} from '@angular/core'; import {AnimalListService} from '../animal-list.service'; import {AnimalListDashboardListStore} from '../animal-list-dashboard-list.store'; import {AnimalListStoreService} from '../animal-list.store'; import {AnimalList} from '../animal-list.model'; @Component({ sele...
/** * Helper function to recover Identifier based on the conventions used in earlier versions before identifiers were introduced */ std::string ExternalLoads::createIdentifier(OpenSim::Array<std::string>&oldFunctionNames, const Array<std::string>& labels) { if (oldFunctionNames.getSize()==0) return ""; std::s...
<gh_stars>1-10 package com.awsick.productiveday.directories.repo; import com.awsick.productiveday.directories.repo.room.DirectoryDatabase; import com.awsick.productiveday.tasks.repo.TasksRepo; import dagger.Module; import dagger.Provides; import dagger.hilt.InstallIn; import dagger.hilt.android.components.ApplicationC...
package com.dutianze.algs.leetcode.string; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** * @author dutianze * @date 2022/4/4 */ class N_1528_ShuffleStringTest { private final N_1528_ShuffleString solution = new N_1528_ShuffleString(); @Test void restoreString() { ...
use crate::types::{IPLDLink, IPNSAddress}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] pub struct Identity { /// Public choosen name. pub display_name: String, /// Mime-typed image link. pub avatar: Option<IPLDLink>, /// IPNS address. #[ser...
<reponame>mklickman/ngx-airtable import { OperatorFunction, Observable } from 'rxjs'; import { Executioner } from '../interfaces/executioner'; // private _eachPage(offset?: string, previous?: Observable<any>): RunAction { // // private _eachPage(offset?: string, previous?: Observable<any>): Observable<any> { // co...
// EditMedia edits already sent media with known recipient and message id. // // If edited message is sent by the bot, returns it, // otherwise returns nil and ErrTrueResult. // // Use cases: // // b.EditMedia(m, &tb.Photo{File: tb.FromDisk("chicken.jpg")}) // b.EditMedia(m, &tb.Video{File: tb.FromURL("http://v...
<reponame>tyler569/MCHPRS use regex::Regex; use serde::Serialize; use std::lazy::SyncLazy; static URL_REGEX: SyncLazy<Regex> = SyncLazy::new(|| { Regex::new("^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$").unwrap() }); fn is_valid_hex(ch: char) -> bool { ch.is_numeric() || ('a'..='f').contains(&ch) ...
/* * Copyright 2019 Google LLC * * Licensed under both the 3-Clause BSD License and the GPLv2, found in the * LICENSE and LICENSE.GPL-2.0 files, respectively, in the root directory. * * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ #include <list> #include <vector> #include "asm/measurereadlatency.h" #in...
// NewTokenBucket allocates and returns a new TokenBucket rate limiter. // // capacity is the token bucket capacity. // refillInterval is the bucket refill interval. func NewTokenBucket(capacity int32, refillInterval time.Duration) *TokenBucket { underlying := &tokenBucket{ capacity: capacity, refillInterval...
def analyze(): df = facebookFetch() df['epoch_int'] = pd.DatetimeIndex(df['created_time']).astype(np.int64) df['epoch_int'] /= 10 ** 9 df = df[df.epoch_int > last_run_time()] for index, row in df.iterrows(): if len(str(row['message'])) != 0: print('Sending Row to Watson for Revie...
// Read template from the file, convert it and check if it has valid structure. // Then save converted template to file. func Convert(context *context.Context) error { rawTemplate, err := ioutil.ReadFile(*context.CliArguments.TemplatePath) if err != nil { return err } format := detectFormatFromContent(rawTemplate...
/** * Test that Jackson is picked * * @throws Exception */ @Test public void testJacksonXmlString() throws Exception { ClientRequest request = new ClientRequest(generateURL("/jxml/products/333")); ClientResponse<String> response = request.get(String.class); System.out.println...
package com.clashsoft.stocksim.model; import com.clashsoft.stocksim.data.StockAmount; import java.util.Collection; public interface Portfolio { Player getPlayer(); long getCash(); Collection<Stock> getStocks(); Collection<StockAmount> getStockAmounts(); long getStockAmount(Stock stock); long getStocksValu...
extern crate trust_dns_resolver; extern crate curl; extern crate serde_json; extern crate clap; extern crate syslog; #[macro_use] extern crate log; #[macro_use] extern crate lazy_static; use clap::Clap; use std::{thread, time}; use std::cmp::min; use libc::getpid; use syslog::{Facility, Formatter3164, BasicLogger}; us...
Pulsed radiofrequency ablation of median nerve in a patient with soft tissue sarcoma Pulsed radiofrequency (PRF) is a novel therapeutic modality with many potential applications in pain management. A 14-year-old male patient with soft tissue sarcoma of right hand in the first and second interdigital cleft came with co...
package SimpleGameUseJava; public class PlayerHand { String plHand = "Scissors"; public PlayerHand(Integer num) { if (num.intValue() == 1) { this.plHand = "Scissors"; } else if (num.intValue() == 2) { this.plHand = "Rock"; } else { this.plHand = "Pap...
Treasury Secretary Steve Mnuchin listens as President Donald Trump speaks during a meeting on tax policy with business leaders in the Roosevelt Room of the White House, Tuesday, Oct. 31, 2017, in Washington. (AP Photo/Evan Vucci) “Drain the Swamp! Drain the Swamp! Drain the Swamp!” That was the catch phrase that Donal...
/** * Check for deadlocked states where none of the generators we are (indirectly) * dependent on can run. */ public void checkForCompletions() { HashSet<Generator> visited = new HashSet<Generator>(); if (runCompletionCheck(visited) != LFlag.LIVE) { postCompletionCheckScan(vis...
On the arithmetic of weighted complete intersections of low degree A variety is rationally connected if two general points can be joined by a rational curve. A higher version of this notion is rational simple connectedness, which requires suitable spaces of rational curves through two points to be rationally connected...
#ifndef MESSAGE_QUEUE_H_ #define MESSAGE_QUEUE_H_ #include <mutex> #include <atomic> #include <glib-2.0/glib.h> namespace expr { class MessageQueue { public: ~MessageQueue(); static MessageQueue* getInstance(); GAsyncQueue* get_listenerQueue(); GAsyncQueue* ...
package nft import ( . "github.com/kaifei-bianjie/msg-parser/modules" "strings" ) type DocMsgIssueDenom struct { Id string `bson:"id"` Name string `bson:"name"` Sender string `bson:"sender"` Schema string `bson:"schema"` Symbol string `bson:"symbol"` Min...
/** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class BibtexPackageImpl extends EPackageImpl implements BibtexPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bibTeXFileEClass = nul...
<reponame>mhoffrog/onedev-commons<filename>commons-codeassist/src/test/java/io/onedev/commons/codeassist/TestCodeAssist2.java package io.onedev.commons.codeassist; import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.List; import org.junit.Test; import io.onedev.commons.codeassi...
The diverse and delicious fragrances of flowers brighten our days and inspire poetry. The more practical reason that flowers produce scent is to attract pollinating insects to the flowers' reproductive organs, thereby ensuring the continued existence of plant species. To do this, flowers assemble a mixture of dozens, a...
/****************************************************************************** * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) ***************************************...
/** * Common point for generating the canonical group name when a new group * or material is encountered. */ inline std::string groupMaterialName( const std::string& group_base_name, const std::string& material_name ) { std::stringstream ss_group_material_name; ...
HAWAII VOLCANOES NATIONAL PARK – The episode 61g lava flow from Puʻu ʻŌʻō continues to enter the ocean in a fascinating “firehose” formation at Kamokuna, and is also feeding surface flows above the pali. Scientists with the USGS Hawaiian Volcano Observatory published new photos and a map produced on March 16. Among t...
def nouns_adj(text): is_noun_adj = lambda pos: pos[:2] == 'NN' or pos[:2] == 'JJ' tokenized = word_tokenize(text) nouns_adj = [word for (word, pos) in pos_tag(tokenized) if is_noun_adj(pos)] return ' '.join(nouns_adj)
def check_not_forbidden(self, forbidden_name_value_pairs, modifiable_config): not_forbidden = True for forbidden_clause in forbidden_name_value_pairs: sum_forbidden = 0 for key in modifiable_config: if key in forbidden_clause: at_ = forbidden_c...
<reponame>mdelapenya/generated-crud-play package controllers; import com.avaje.ebean.Ebean; import controllers.mdrrule.MdrruleFormData; import models.mdrrule.Mdrrule; import play.data.Form; import play.mvc.Controller; import play.mvc.Result; import views.html.mdrrule.mdrrule; import views.html.mdrrule.mdrrules; ...
#include <stdio.h> int main(void) { int a,b,c,d,e[1000],f,i,j,toal; scanf("%d",&a); scanf("%d %d",&b,&c); scanf("%d",&d); for(i=0;i<a;i++){ scanf("%d",&e[i]); } for(i=0;i<a;i++){ for(j=i;j<a;j++){ if(e[i]<e[j]){ f=e[i]; e[i]=e[j]; e[j]=f; } } } toal=d/b; for(i=0;i<a;i++){ d=d+e[i]; ...
<gh_stars>0 /* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package node const CoreTemplate = `--- # Logging section logging: # Spec spec: {{ Topology.Logging.Spec }} # Format format: {{ Topology.Logging.Format }} fsc: # The FSC id provides a name for this node instance and i...
<gh_stars>0 package com.edvard.poseestimation; import org.opencv.core.KeyPoint; import java.util.ArrayList; import java.util.Arrays; import java.lang.Math; public class SmoothingFilter { private int num_frames_for_filter; private int num_lowest_removed; private ArrayList<ArrayList<Keypoint>> arraylist_al...
News events across from distant countries can feel so far away, it is difficult to grasp their importance. But that may change as journalists create reports with virtual reality, so that viewers feel as if they are witnesses to the unfolding action. Nonny de la Pena, senior research fellow at the University of Souther...
import PostPreview from './post-preview'; type NodeProps = { node: any; }; type MoreStoriesProps = { posts: any; }; export default function MoreStories({ posts }: MoreStoriesProps) { return ( <section> <h2 className='mb-8 text-6xl md:text-6xl font-bold tracking-tighter leading-tight'> More Posts </h2>...
/** Add geofence dialog fragment. */ public class AddGeofenceDialogFragment extends BaseDialogFragment<AddGeofenceDialogFragment.AddGeofenceDialogListener> { /** Radius pattern. */ private static final Pattern RADIUS_PATTERN = Pattern.compile("\\d+"); /** Double. Geofence location latitude. */ public s...
// SourceBuffers returning attribute 'sourceBuffers' with // type SourceBufferList (idl: SourceBufferList). func (_this *MediaSource) SourceBuffers() *SourceBufferList { var ret *SourceBufferList value := _this.Value_JS.Get("sourceBuffers") ret = SourceBufferListFromJS(value) return ret }
/** * Accept a visitor to iterate through the connections attached to the key specified * * @param key * the key * @param visitor * the visitor */ public void accept(String key, $.Function<WebSocketConnection, ?> visitor) { ConcurrentMap<WebSocketConnection, We...
Opening weekend challenge is just around the corner. This will be the first post in a 4-post series where we look at each position to try to find value players who are priced less than what last year’s production says they should be priced. Points Per Start Veterans of my Stats Summary articles will know that I’ve lo...
package edu.ucsf.rbvi.scNetViz.internal.tasks; import java.io.File; import java.util.Arrays; import org.cytoscape.work.AbstractTask; import org.cytoscape.work.ObservableTask; import org.cytoscape.work.TaskMonitor; import org.cytoscape.work.Tunable; import org.cytoscape.work.util.ListSingleSelection; import edu.ucsf...
<filename>internal/core/services/get/project.go package service import ( "github.com/apenella/gitlabcli/internal/core/domain" "github.com/apenella/gitlabcli/internal/core/ports" ) type GetProjectService struct { gitlab ports.GitlabProjectRepository } func NewGetProjectService(gitlab ports.GitlabProjectRepository)...
/** * Notifies the listeners on the space creation. * * @param space reference to the created space. * @param isLocalCreation indicates if the space was initially created on the current kernel. */ protected void fireSpaceCreated(Space space, boolean isLocalCreation) { for (final SpaceRepositoryListener list...
//this class produces either Hcal isolation or H for H/E depending if doEtSum=true or false //H for H/E = towers behind SC, hcal isolation has these towers excluded //a rho correction can be applied class EgammaHLTBcHcalIsolationProducersRegional : public edm::stream::EDProducer<> { public: explicit EgammaHLTBcHcalI...
You need no better proof of how the anti-Israel Boycott, Divest and Sanctions movement poisons everything it touches than the story of how anti-Israel activists turned a once-respected medical journal, The Lancet, into a BDS platform. Just like Ohio University student senate president Megan Marzec hijacked the purpose...
<reponame>kevinmcguinness/traintrack from .debug import DebugTracker from .tensorboard import TensorboardTracker from .sqlite import SqliteTracker from .console import ConsoleTracker from .slack import SlackTracker from .logfile import LogfileTracker from .progress import ProgressTracker from .dataframe import DataFram...
def publishResults(self): print("\n\nPublishing results...") mqttClient = CalvinToSpark.mqttc while True: while not (CalvinToSpark.queue): sleep(CalvinToSpark.slidingInterval) data = CalvinToSpark.queue.popleft() print(data) mqttCli...
t=int(input()) for _ in range(t): n=int(input()) a=list(map(int,input().split())) l=["abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn"] cur=26 ...
<reponame>cryptoscope/go-muxrpc<filename>debug/debug.go // SPDX-FileCopyrightText: 2021 <NAME> // // SPDX-License-Identifier: MIT package debug import ( "bytes" "io" "net" "sync" multierror "github.com/hashicorp/go-multierror" "github.com/pkg/errors" "go.mindeco.de/log" "go.cryptoscope.co/muxrpc/v2/codec" )...
declare global { interface Window { Kakao: any; } } export const checkKaKaoSDK = () => { if(!window.Kakao.Channel) { window.Kakao.init('c34808e364deec1dd37ab8c69230579e') } } export const handleClickChatChannel = () => { checkKaKaoSDK() window.Kakao.Channel.chat({ channelPublicId: <KEY>', }) ...
<reponame>anderr8/Curso_de_Cpp_Intermediario<gh_stars>0 #include <iostream> using namespace std; int main(int argc, char const *argv[]) { /* Operadores Lógicos: (&& = E) = se as duas ou mais condições forem verdadeiras. (|| = OU) = se uma condição for verdadeira. (! = Não) = se o argumento da direita for par. */ ...
/** * Extract a Wikipedia-Corpus for Interwiki-Linked data for a certain central * page CN and all linked pages with link depth ld=2 (secondary neighbours). * * @author root */ public class ExtractIWLinkAdvanced implements Runnable { public static String studie = null; public static String[] wiki =...
Category: Cussin' In Tongues Created on Friday, 27 November 2015 Written by Steve It's a holiday weekend and I've still got 7000 or so words to write by Monday, so here's a dumb table for your super-hero game. The characters are forced to attend an awkward holiday gathering with a PC's family. The PCs have to plan th...
package com.curtisnewbie.module.auth.processing; import com.curtisnewbie.common.vo.Result; import com.curtisnewbie.module.auth.config.ModuleConfig; import com.curtisnewbie.service.auth.remote.exception.PasswordIncorrectException; import com.curtisnewbie.service.auth.remote.exception.UserDisabledException; import com.c...
<filename>api_text.go<gh_stars>1-10 package shortpaste import ( "encoding/json" "fmt" "html" "io/ioutil" "net/http" "os" "path" "strings" "text/template" ) func (app *App) handleText(w http.ResponseWriter, r *http.Request) { switch r.Method { case "GET": app.handleGetText(w, r) default: w.WriteHeader(...
/** * Computes the number of circles to be drawn * * @param maxRecursion the maximum recursion depth * @param childCount the child count * @return the number of circles */ public long calculateExpectedCirclesCount(int maxRecursion, int childCount) { long calculatedCircleCount; ...
/** * DefaultProperty - read-and-write access on MessageLite and MessageLite.Builder * * @author David Yu * @created Aug 26, 2009 */ public class DefaultProperty extends Property { public static final Property.Factory<DefaultProperty> FACTORY = new Property.Factory<DefaultProperty>() ...
The White House is disputing former White House aide Sebastian Gorka's claims that former chief strategist Stephen Bannon helped write President Trump's Tuesday speech to the United Nations General Assembly. "The individual who wrote that speech — and it's not the person they normally say it is — came to Steve [Bannon...
/** * <p> * An abstract base class for creating layout constraints objects. * </p> * <p> * The task of this tag and its concrete sub classes is to create and initialize * a layout constraints object of a specific type and to pass this object to the * component tag this tag is nested into. From there it will be u...
def sync_files(source_fs, source_files, target_fs, target_files, delete_missing=False, processes=0, verbosity=0): actions = _get_sync_actions( source_files, target_files, ) if not delete_missing: actions = (action for action in actions if action[0] is not delete_file) if processe...
package guri import ( "errors" "io" "log" "time" ) // StdioRemote stdio endpoint type StdioRemote struct { reader io.Reader writer io.Writer channel chan []byte done chan interface{} } // ConnectStdio create a new stdio connection func ConnectStdio(input io.Reader, output io.Writer) (*StdioRemote, error...
import 'dotenv/config'; import express, { Express } from 'express'; import { resolve } from 'path'; import cors from 'cors'; import { errors } from 'celebrate'; import routes from './routes'; class App { server: Express; constructor() { this.server = express(); this.middlewares(); this.routes(); ...
<reponame>zy2324/go-admin<filename>plugins/admin/modules/table/tmpl.go package table var tmpls = map[string]string{"choose_table_ajax": `{{define "choose_table_ajax"}} NProgress.start(); let info_table = $("tbody.fields-table"); info_table.find("tr").remove(); let tpl = $("template.fiel...
def build_auth_code_route(authenticator, provider): async def auth_code( request: Request, settings: BaseSettings = Depends(get_settings), ): request.state.endpoint = "auth" username = await authenticator.authenticate(request) if not username: raise HTTPExcept...
/** * Converts string to a long value. * * @param stringContainingANumber * string containing a number * @param defaultValue * default long value to consider if string parsing failed * @return long contained in string or default value if parsing failed */ pu...
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry): def token_saver(token): _LOGGER.debug("Saving updated token") entry.data[CONF_TOKEN] = token hass.config_entries.async_update_entry(entry, data={**entry.data}) entry.data[CONF_TOKEN]["expires_in"] = -1 session ...
def build_parts_db(): print("Building Parts Database...") next_urls, meta, finished = fetch_status() if finished is not None: next_crawl_at = finished + timedelta(weeks=1) if next_crawl_at > datetime.now(): return else: meta = None if meta is None: ...
def scene_prefixes(dataset_path): dataset_prefixes = [] for root, dirs, files in os.walk(dataset_path): rgb_filename = SUBFOLDER_MAP_SYNTHETIC['rgb-files']['postfix'] for filename in fnmatch.filter(files, '*' + rgb_filename): dataset_prefixes.append(filename[0:0 - len(rgb_filename)])...
// Code contributed by Felix Weninger // Gaussian noise generator double cVectorOperation::gnGenerator() { static bool haveNumber = false; static double number = 0.0; if (haveNumber) { haveNumber = false; return number; } else { double q = 2.0; double x, y; while (q > 1.0) { x = ((...
/** * This class is used for selecting ID modifiers in the editor, it ensires the * id of the object is unique * * @author booksaw * */ public class ObjectIDModifier extends StringModifier { private transient GameManager manager; private transient GameObject object; public ObjectIDModifier(GameManager manag...
Do Student-Produced Videos Enhance Engagement and Learning in the Online Environment Student engagement in online learning remains a challenge for the design of effective coursework.  Additionally, few analyses have focused on student-produced activities in the online mode nor upon how such class activity affect stude...
Effect of prenatal exposure to ethanol on brains of kittens: I. Changes of neurons in lateral geniculate nucleus. Our investigations try to reveal the morphological changes found postnatally at different levels and centres of central nervous system of kittens of cats chronically treated with ethanol during their pregn...
def run_trace(trace, parameters, max_ops): try: with open(trace) as f: trace_data = f.read() except FileNotFoundError: print("Could not find {}".format(trace)) return None if count_ops(trace_data) > max_ops: print("{} contains too many instructions, use a maximum ...
/** * Creates a mocked {@link IPublishSubscribeMessagingFlow} containing a scenario with the given * scenario name. Flow type is source. * * @param scenarioName the scenario name * @return a mocked IPublishSubscribeMessagingFlow */ public static IPublishSubscribeMessagingFlow newPubSubFlowSourc...
BOVINE TUBERCULOSIS IN THE NORTH OF BRAZIL Bovine tuberculosis (BTB) is an infectious disease worldwide distributed, caused by Mycobacterium bovis, which affects cattle and other animals, including humans. In Brazil, BTB is endemic and causes economic losses by reducing the productivity of livestock and loss of carcas...
On the global structure of the Pomeransky–Senkov black holes We construct analytic extensions of the Pomeransky-Senkov metrics with multiple Killing horizons and asymptotic regions. We show that, in our extensions, the singularities associated to an obstruction to differentiability of the metric lie beyond event horiz...
<filename>src/lib/Scenes/Onboarding/Onboarding.tsx import { NavigationContainer } from "@react-navigation/native" import { CardStyleInterpolators, createStackNavigator, TransitionPresets } from "@react-navigation/stack" import { ArtsyKeyboardAvoidingView, ArtsyKeyboardAvoidingViewContext } from "lib/Components/ArtsyKey...
package main import ( "bytes" "fmt" "sort" "strings" ) type Scrubber interface { AddSensitiveKey(string) AddSensitiveValue(string) Discover(string) Obscure(string) string Scrub(string) string } func NewScrubber(mask string) Scrubber { return &scrubber{ scanners: make([]Scanner, 0, 64), keys: NewStr...
<reponame>iamzken/aliyun-openapi-cpp-sdk /* * Copyright 2009-2017 Alibaba Cloud 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 obtain a copy of the License at * * http://www.apache.org/li...
/** * * @author Rajavarpu Lingarao * */ public class RoundingAmountOption extends AbstractPreferenceOption { SelectCombo accountsCombo; SelectCombo roundingMethodCombo; TextItem roundingLimitItem; CheckboxItem trackroundingAmountCheckBox; CheckboxItem removeifZeroCheckBox; StyledPanel hidePanel; StyledPan...
Continuous-time random walks with reset events: Historical background and new perspectives In this paper, we consider a stochastic process that may experience random reset events which relocate the system to its starting position. We focus our attention on a one-dimensional, monotonic continuous-time random walk with ...
Image copyright Matt Young Image caption Thomas's father said he "has not stopped talking about" his cameo in goal A five-year-old Oldham Athletic fan who offered to take over when the club's goalkeeper finished his loan spell has been given a "trial". Thomas Young was worried about Connor Ripley's return to Middlesb...
__all__ = ['mcsolve', "MCSolver"] import numpy as np from ..core import QobjEvo, spre, spost, Qobj, unstack_columns from .multitraj import MultiTrajSolver from .solver_base import Solver, Integrator from .result import McResult, McTrajectoryResult from .mesolve import mesolve, MESolver import qutip.core.data as _data ...
def combine(path1, path2): if not path1: return path2.lstrip() return "{}/{}".format(path1.rstrip("/"), path2.lstrip("/"))
<filename>server/scripts/exampleSetAllSchemas.ts<gh_stars>10-100 import { connectToMongoose, disconnectFromMongoose } from '../utils/database' import { createSchema } from '../services/schema' import model_schema from './example_schemas/minimal_upload_schema.json' import deploy_schema from './example_schemas/minimal_d...
Formulation of visual secret sharing schemes encrypting multiple images Secret sharing is a method of generating multiple shares from secret information so that only a qualified set of shares can be employed to recover this secret information. Visual secret sharing (VSS) is an example of secret sharing; its decryption...
class TestAlabasterCustomizedBlocks: """ Use a custom layout.html template to fill some blocks in the contract """ def test_doctype(self, page): doctype = [item for item in page.contents if isinstance(item, bs4.Doctype)][0] assert 'html' == doctype def test_extrahead(self, page): e...
def translate_ethosu_tir_extern_call(tir_extern_call): supported_extern_calls = { "ethosu_conv2d": translate_ethosu_conv2d, "ethosu_copy": translate_ethosu_copy, "ethosu_depthwise_conv2d": translate_ethosu_depthwise_conv2d, } ext_call_type = tir_extern_call.args[0].value assert e...
/* * Class ARRAYED_LIST_ITERATION_CURSOR [INTEGER_8] */ #include "eif_macros.h" #ifdef __cplusplus extern "C" { #endif static const EIF_TYPE_INDEX egt_0_674 [] = {0xFF01,232,0xFFFF}; static const EIF_TYPE_INDEX egt_1_674 [] = {0xFF01,245,673,188,0xFFFF}; static const EIF_TYPE_INDEX egt_2_674 [] = {0xFF01,673,188,...
#pragma once #include <algorithm> #include <vector> class Vector { private: void resize(); int capacity; int size; int* values; public: Vector(int capacity); int& operator [] (int idx); int operator [] (int idx) const; Vector(); ~Vector(); void add(int v); bool remove(int v); int find(int v); in...
/** Return true if and only if the bit representing <code>2<sup>n</sup></code> is set in <code>this</code>. */ public boolean testBit(int n) { if (n < 0 || n >= 64) return false; return ((this.value & (1L << n)) != 0); }