content stringlengths 10 4.9M |
|---|
<gh_stars>10-100
// A visitor implementing the view on user namespaces and their owned
// namespaces, using the lxkns information model.
// Copyright 2020 <NAME>.
//
// 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 c... |
async def delete(
self,
option: _helpers.WriteOption = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
) -> Timestamp:
request, kwargs = self._prep_delete(option, retry, timeout)
commit_response = await self._client._firestore_api.commit(
... |
/** Duplicates a NUL-terminated string, allocated from a memory heap.
@param[in] heap, memory heap where string is allocated
@param[in] str) string to be copied
@return own: a copy of the string */
char*
mem_heap_strdup(
mem_heap_t* heap,
const char* str)
{
return(static_cast<char*>(mem_heap_dup(heap, str, strlen(st... |
__author__ = 'MoustaphaSaad'
shoes = map(int, raw_input().split())
d = dict()
count = 0
for i in xrange(0,len(shoes)):
if d.__contains__(shoes[i]):
d[shoes[i]] += 1
else:
d[shoes[i]] = 1
print 4 - len(d)
|
// Checks that the header data in the small buffer is valid. We may read cache
// entries that were written by a previous version of Chrome which use obsolete
// formats. These reads should fail and be doomed as soon as possible.
bool IsValidHeader(scoped_refptr<net::IOBufferWithSize> small_buffer) {
size_t buffer_si... |
/**
* @author Thomas Segismont
*/
public class CloseableIteratorCollectionStream<I, O> implements ReadStream<O> {
private static final int BATCH_SIZE = 10;
private final Context context;
private final Supplier<CloseableIteratorCollection<I>> iterableSupplier;
private final Function<I, O> converter;
priva... |
<filename>quesadiya/cli.py<gh_stars>1-10
import click
import os
import quesadiya
import quesadiya.commands.create
import quesadiya.commands.run
import quesadiya.commands.inspect
import quesadiya.commands.delete
import quesadiya.commands.export
import quesadiya.commands.modify
@click.group()
@click.version_option()
... |
/** Returns the associated {@link SRange} of the specified {@link SSheet} and area reference string (e.g. "A1:D4" or "NSheet2!A1:D4")
* note that if reference string contains sheet name, the returned range will refer to the named sheet.
*
* @param sheet the {@link SSheet} the Range will refer to.
* @param re... |
/**
* Test that update allow the garbage collection of the objects.
*/
public TestCase buildUpdateTest() {
MemoryLeakTestCase test = new MemoryLeakTestCase() {
public void test() {
EntityManager manager = createEntityManager();
((JpaEntityManager)manager).... |
#include<bits/stdc++.h>
using namespace std;
int main(){
char letter;
int position;
int ans;
int distance1, distance2;
position=0;
ans=0;
scanf("%c", &letter);
while(letter>=97){
if(abs(position-(letter-97))<26-abs(position-(letter-97))){
ans=ans+abs(pos... |
def plotUniform(name):
xrange = uniform(name)
lb = xrange[0,0]
ub = xrange[0,1]
xrange = np.linspace(0.5 * lb, 1.3 * ub, 100)
y = np.zeros_like(xrange)
for i, j in enumerate(xrange):
if (lb <= j <= ub):
y[i] = 1.0
else:
y[i] = 0.0
plt.xlabel('Head Th... |
def read_yaml2cls(yml_file):
with open(yml_file, "r") as stream:
data = yaml.safe_load(stream)
cls_data = munchify(data)
return cls_data |
Amino Acid Composition and Immunolabelling of a 42.5 KDA Protein from Phloem Exudate of Luffa Cylindrica Fruits
Phloem proteins are specifically presented in phloem tissues of monocotyledons and dicotyledons. Ultrastructural studies showed that they were filamentous, spherical, tubular, crystalline and amorphous in sh... |
/**
* Utility class for building a sample CommandHistory populated with dummy InputOutput data
* for testing purposes.
*/
public class TypicalCommandHistory {
// Defined explicitly instead of imported to reduce dependencies
public static final String SUCCESS_COMMAND_1 = "list";
public static final Strin... |
import asyncio
import json
from functools import partial
import aiohttp
import requests
import websockets
from .handler import RaceHandler
class Bot:
"""
The racetime.gg bot class.
This bot uses event loops to connect to multiple race rooms at once. Each
room is assigned a handler object, which you... |
/// Entry point of `cargo cov report` subcommand. Renders the coverage report using a template.
pub fn generate(config: &ReportConfig) -> Result<Option<PathBuf>> {
let report_path = &config.output_path;
clean_dir(report_path).chain_err(|| "Cannot clean report directory")?;
create_dir_all(report_path)?;
... |
// The base class calls this when a client sets the mute state
tCQCKit::ECommResults
TZoomPlayerSDriver::eSetMute(const tCIDLib::TBoolean bToSet)
{
return tCQCKit::ECommResults::Success;
} |
<gh_stars>1-10
import * as assert from 'assert';
import * as sinon from 'sinon';
import Enumerable from './Enumerable';
describe('finally()', () => {
it('should creates a sequence whose termination or disposal of an enumerator causes a finally action to be executed', () => {
const source1 = [1, 2, 3];
... |
// apply applies the delta b to the current version to produce a new
// version. The new version is consistent with respect to the comparer cmp.
//
// curr may be nil, which is equivalent to a pointer to a zero version.
//
// On success, a map of zombie files containing the file numbers and sizes of
// deleted files is... |
package org.osmdroid.samplefragments.events;
import android.content.Context;
import android.location.Location;
import android.widget.Toast;
import org.osmdroid.api.IGeoPoint;
import org.osmdroid.api.IMapController;
import org.osmdroid.samplefragments.BaseSampleFragment;
import org.osmdroid.util.GeoPoint;
import org.o... |
#include<stdio.h>
int main()
{
long long int n,m,a,b=0,c=0,d=0,e,f=0;
scanf("%I64d %I64d %I64d",&n,&m,&a);
e=a*a;
if(e==1)
{
f=m*n;
printf("%I64d",f);
goto end;
}
else if(m*n<e)
{
printf("1");
goto end;
}
if(n%a!=0)
{... |
def _trigger_project_creation(self, cr, uid, vals, context=None):
if context is None: context = {}
return vals.get('use_tasks') and not 'project_creation_in_progress' in context |
Using Automatic Vehicle Location System Data to Assess Impacts of Weather on Bus Journey Times for Different Bus Route Types
Weather has the largest collective effect on transport systems, affecting users of all modes at the same time over a wide area. The aim of the research is to use Automatic Vehicle Location Syste... |
a,b,c,d=map(int,input().split())
'''
if a>b:
x=a
else:
x=b
if c>d:
y=c
else:
y=d
print(x*y)
'''
print(max(a*c,a*d,b*c,b*d))
|
import copy
def d5_idx(arr, low, high):
return max((len(sorted(copy.deepcopy(arr[low:high]))) // 5) - 1, low)
def quicksort(arr):
def exchange(arr, a, b):
temp = arr[a]
arr[a] = arr[b]
arr[b] = temp
def partition(arr, low, high):
i = low
j = high - 1
while True:
pivot = arr[low]
while arr[... |
//
// UtilVoice.h
// 语音工具类
//
// Created by <NAME> on 13-10-24.
// Copyright (c) 2013年 iTensen. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "VoiceConverter.h"
typedef enum{
UtilVoiceStatus_Begin=1,
UtilVoiceStatus_Success=2,
UtilVoiceStatus_T... |
<filename>test/fixtures.ts<gh_stars>1-10
export default {
alphabets: {
base2: '01',
base16: '0123456789abcdef',
base58: '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',
},
valid: [
{
alphabet: 'base2',
hex: '000f',
string: '01111',
},
{
alphabet: 'base2... |
/// Delete the value at this cursor
///
/// Returns `true` if something was deleted, `false` otherwise.
///
pub fn delete(cursor: NP_Cursor, memory: &NP_Memory) -> Result<bool, NP_Error> {
if cursor.buff_addr == 0 {
return Ok(false)
}
if cursor.parent_type == NP_Cursor_Parent::Tupl... |
In 2004, Paul Sinton-Hewitt CBE led 13 of his running friends to Bushy Park in West London where they completed the first ever 5km parkrun. Now eleven and a half years later more than half a million runners are part of the parkrun organisation. I spoke to Tom Williams, the Managing Director of parkrun UK about how park... |
package org.ofbiz.webapp.event;
import java.util.Iterator;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.ofbiz.webapp.control.ConfigXMLReader.Event;
import org.ofbiz.webapp.control.ConfigXMLReader.RequestMap;
/**
* SCIPI... |
<gh_stars>0
import { GeoPoint } from '../src/geopoint';
import * as geolib from '../src/index';
describe("Geolib", () => {
it("longitude conversion deg->rad", () => {
let geoPoint = new GeoPoint(0, 90);
expect(geoPoint.lonrad).toBeCloseTo(Math.PI * 0.5);
});
it("latitude conversion deg->... |
/**
* The persistent class for the functions database table.
*
*/
@Entity
@Table(name = "functions")
@XmlRootElement(name = "functions")
public class Function extends POSNirvanaBaseClassWithoutGeneratedIds
{
private static final long serialVersionUID = 1L;
@Column(name = "display_name", nullable = false, length ... |
package com.tvd12.ezydata.database.test;
import java.util.Collection;
import java.util.List;
import com.tvd12.ezydata.database.EzyDatabaseContext;
import com.tvd12.ezydata.database.EzyDatabaseContextAware;
import com.tvd12.ezydata.database.EzyDatabaseRepository;
public class DbRepository<I,E>
implements EzyDataba... |
///
/// Returns the constant tuple semantic element.
///
fn constant(scope: Rc<RefCell<Scope>>, tuple: TupleExpression) -> Result<Element, Error> {
let mut result = TupleConstant::with_capacity(tuple.location, tuple.elements.len());
for expression in tuple.elements.into_iter() {
let expressi... |
<filename>typings/download-git-repo/index.d.ts
function download(
repo: string,
dest: string,
opts: { clone: boolean },
callback: (err?: string) => void
): void
function download(
repo: string,
dest: string,
callback: (err?: string) => void
): void
declare module "download-git-repo" {
export default d... |
/** Cup generated class to encapsulate user supplied action code.*/
class CUP$parser$actions {
/** Constructor */
CUP$parser$actions() { }
/** Method with the actual generated action code. */
public final Symbol CUP$parser$do_action(
int CUP$parser$act_num,
lr_parser CUP... |
/******************************************************************************
* Purpose: Print the number of coupon without repeating any of the coupon
*
* @author <NAME>
* @version 1.0
* @since 23-02-2018
*
******************************************************************************/
package com.... |
/**
* The basic implementation of DomainService.
* <p/>
* See /properties/domain/domain.xml
*/
public class ParameterServiceImpl implements ParameterService {
/**
* The serialization id.
*/
private static final long serialVersionUID = 2199606452890382789L;
/**
* {@link ParameterDaoServ... |
<filename>example/example.go
package main
import (
"time"
"github.com/aleasoluciones/gochecks"
)
func main() {
checkEngine := gochecks.NewCheckEngine([]gochecks.CheckPublisher{
gochecks.NewRiemannPublisher("127.0.0.1:5555"),
gochecks.NewLogPublisher(),
})
period := 5 * time.Second
googleCheck := gochecks.N... |
/*
* segment.c
* Represent a process image in a set of segments
*
* Created on: Dec 13, 2011
* Author: myan
*/
#include "segment.h"
/***************************************************************************
* Global variables
***************************************************************************/... |
// DoErrorUnary implerments a unary invocation with error handling
func DoErrorUnary(c calculatorpb.CalculatorServiceClient) {
log.Println("Starting to do a unary RPC for SquareRoot...")
numbers := []float64{14.14, 16.0, -64.0, 225., math.NaN(), 0.0}
for _, n := range numbers {
log.Printf("For number: %g", n)
r... |
Games have a seemingly supernatural ability to punt my heart into my mouth. Nothing compares, not the slow burn terror of Ridley Scott’s Alien, nor the sickening dread of watching a Dario Argento film. When games press the right buttons, they spark a physical, innate sense of threat, instantly sending the hard-wired fi... |
// debug version of reflect.DeepEqual
func DeepEqual(x, y interface{}) bool {
if x == nil || y == nil {
return x == y
}
v1 := reflect.ValueOf(x)
v2 := reflect.ValueOf(y)
if v1.Type() != v2.Type() {
fmt.Println(v1.Type(), " != ", v2.Type())
return false
}
if v1 != v2 {
fmt.Println(v1, " != ", v2)
return... |
After 10 years of baiting the “Calatrasaurus” — architect Santiago Calatrava’s years-behind-schedule, billions-of-dollars-over-budget World Trade Center Transportation Hub — I finally visited the belly of the beast.
I strolled through the football field-length Oculus, which I’d ridiculed as “elephantine excess” and li... |
/**
* gets all contents start with a tag "span"
*
* @param courseCode a nine-digit course code to be searched
* @return a list of elements, each represents a content with tag "span
* @throws IOException if gets wrong input
*/
public static Elements fullCourseToTags(String courseCode) throw... |
/**
* Pair of points. Used for serialising calibration points because IndependentPair
* is not serialisable.
* @author billy
*
*/
class PointPair implements Serializable {
private float firstX;
private float firstY;
private float secondX;
private float secondY;
/**
* Sole constructor.
* @param pair Inde... |
.
In this retrospective study we discuss 12 cases of cervical cancer diagnosed during pregnancy. At the time of diagnosis of cervical cancer 11/12 patients were older than 29 years. According to FIGO 3/12 cases were in stage Ia1 cervical carcinoma and 9/12 in stage Ib. After a follow up of at least 35 months no recurr... |
A California bill that would eliminate health insurance companies and provide government-funded health coverage for everyone in the state would cost $400 billion and require significant tax increases, legislative analysts said Monday.
Much of the cost would be offset by existing state, federal and private spending on ... |
<reponame>achilex/MgDev
/*
Copyright (C) 2004-2011 by Autodesk, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of version 2.1 of the GNU Lesser
General Public License as published by the Free Software Foundation.
This library is distributed in the hope th... |
def project_stars(self):
if self.trace_orbit_func is None:
raise UserWarning(
'Need to explicitly set trace orbit function '
'i.e. with mysynthdata.trace_orbit_func = trace_epicyclic_orbit')
for star in self.table:
mean_then = self.extract_... |
<filename>client/Gw2RestClient.py
import requests
import urllib
class Gw2RestClient:
def __init__(self):
self.root_api_endpoint = "https://api.guildwars2.com"
def validate_id_string(self):
regexp = "([\d]+,?)*\d+"
# TODO: complete regex validation
def get_request(self, endpoint, a... |
<gh_stars>1-10
# -*- coding: utf-8 -*-
"""
Functions necessary for fitting SEIR to data
"""
import datetime as dt
import numpy as np
import pandas as pd
from scipy.optimize import least_squares
from scipy import stats
import os
import datetime
from datetime import timedelta
import multiprocessing as mp
import pickle
i... |
/**
* @author Deivid Ferreira
*
*/
@SpringBootTest
public class FuncionarioServiceTest extends PontoInteligenteAbstractTests {
@MockBean
private FuncionarioRepository repository;
@Autowired
private FuncionarioService service;
@Before
public void setUp() {
BDDMockito.given(thi... |
// SetCACertificate gets which certificate the listener is using when spoofing TLS
func (listener *ProxyListener) GetCACertificate() *tls.Certificate {
listener.mtx.Lock()
defer listener.mtx.Unlock()
return listener.caCert
} |
• Former sworn enemies’ lobbyists hard at work expanding Israeli, Saudi influence across region
By Richard Walker
For the next six months Israel and its former enemy, Saudi Arabia, will use every dirty trick their intelligence services can devise to wreck the potential for a United States-led nuclear deal with Iran.
... |
package no.hials.vr;
import com.google.gson.Gson;
import com.oculusvr.capi.Hmd;
import static com.oculusvr.capi.OvrLibrary.ovrTrackingCaps.*;
import com.oculusvr.capi.OvrQuaternionf;
import com.oculusvr.capi.OvrVector3f;
import com.oculusvr.capi.TrackingState;
import java.io.IOException;
import java.net.InetSocketAdd... |
By: Producer/Director — Alfonso Pozzo. MLB Network
My History:
I’ve been producing documentaries for 17 years now. I worked for MLB Productions- the in-house production company for Major League Baseball, for quite some time. We have now moved over to MLB Network. I’ve personally directed and been lead producer on abo... |
import {createHash} from 'crypto';
import {writeFile} from 'fs';
import * as ical from 'ical-generator';
import {ISink} from './ISink';
import {IEvent} from '../core/IEvent';
const sha256 = (x) => createHash('sha256').update(x, 'utf8').digest('hex');
// ref. https://www.npmjs.com/package/ical-generator
export cla... |
The Macroeconomic Effects of Macroprudential Policy
Central banks increasingly rely on macroprudential measures to manage the financial cycle. However, the effects of such policies on the core objectives of monetary policy to stabilise output and inflation are largely unknown. In this paper we quantify the effects of ... |
<filename>src/ops/ingest_external_file.rs
use crate::ffi;
use crate::ffi_util::to_cpath;
use crate::{handle::Handle, ColumnFamily, Error, IngestExternalFileOptions};
use std::ffi::CString;
use std::path::Path;
pub trait IngestExternalFile {
fn ingest_external_file_full<P: AsRef<Path>>(
&self,
paths... |
Microsoft wants so very much to be open that it's created a brand new subsidiary to shoulder the work.
Called Microsoft Open Technologies, Inc., the company will be run by a longtime Microsoft standards player, Jean Paoli. The point is to "advance the company’s investment in openness – including interoperability, open... |
// Copy will create a copy/clone of the runtime.
//
// Copy is useful for saving some processing time when creating many similar
// runtimes.
//
// This implementation is alpha-ish, and works by introspecting every part of the runtime
// and reallocating and then relinking everything back together. Please report if you... |
// Move attempts to make a pseudo-legal move. The attempted move is assumed to be
// pseudo-legal and generated from the position. Returns false if not legal.
func (p *Position) Move(m Move) (*Position, bool) {
ret := *p
turn, piece, ok := p.Square(m.From)
if !ok {
return nil, false
}
ret.xor(m.From, turn, piece... |
/// Efficiently concatenate two strings.
/** This is a special case of concatenate(), needed because dependency
* management does not let us use that function here.
*/
[[nodiscard]] inline std::string cat2(std::string_view x, std::string_view y)
{
std::string buf;
auto const xs{std::size(x)}, ys{std::size(y)};
... |
def detect(self, rgb_image, depth_image=None):
hsv_image = cv2.cvtColor(rgb_image, cv2.COLOR_RGB2HSV)
lower = np.array([136, 87, 111], np.uint8)
upper = np.array([180, 255, 255], np.uint8)
color_mask = cv2.inRange(hsv_image, self.lower, self.upper)
color_mask = cv2.dilate(color_m... |
The Drosophila GAGA Factor Is Required for Dosage Compensation in Males and for the Formation of the Male-Specific-Lethal Complex Chromatin Entry Site at 12DE
Drosophila melanogaster males have one X chromosome, while females have two. To compensate for the resulting disparity in X-linked gene expression between the t... |
/** Calculates the median for the given vector
*/
double calcMed(
vector<double> vec)
{
double med = 0;
if (vec.size() == 0)
{
std::cout << "Warning: calcMed() given vector of size 0!" << std::endl;
med = 0;
}
else {
sort(vec.begin(), vec.end());
int size = vec.size();
if (size % 2 == 0)
{
med = ... |
from .dynamics import Dynamics,IntegratorControlSpace
from .objective import ObjectiveFunction
#from scipy.interpolate import RegularGridInterpolator
class OptimalControlProblem:
"""A standardized class for an optimal control problem.
Attributes:
x0 (array): the initial state.
dynamics (Inte... |
Coffee: So delicious, and yet so mysterious. Is it a naturally occurring earth-bound substance? Or could it perhaps be the work of ancient aliens? Our feature series is less funny now that this is around half of ViceTV’s schtick, but still we ask you to void your mind of all preconceived notions, as our Paranormal Theo... |
package org.ovirt.engine.core.bll;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.ejb.ConcurrencyManagement;
import javax.ejb.ConcurrencyManagementType;
import javax.ejb.EJB;
impor... |
<reponame>FGtatsuro/myatcoder
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
n = int(input())
ans = 0
for i in range(1, n+1):
j = n // i
ans += (j * (j+1) * i) // 2
print(ans)
|
THE Ministry of Defence has secretly warned that lawyers and UK ministers will need to be mobilised in response to the threat to Trident posed by the SNP.
It fears the SNP could jeopardise the UK's nuclear weapons programme.
In an internal report summarising the main risks to Westminster's plans to keep submarine-lau... |
<filename>dbservice/etcd/etcd_client_test.go
// Copyright 2019 Hewlett Packard Enterprise Development LP
package etcd
import (
"fmt"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestDBClientSuite(t *testing.T) {
// TODO: Uncomment this to run integration tests
// _TestAll(t)
}
func _TestAll(t... |
def update_stations_list(cur_stations_list, arch_stations_file):
cur_df = pd.DataFrame(cur_stations_list)
cur_df[['longitude', 'latitude']] = cur_df[['longitude', 'latitude']].astype(str)
if cur_df.shape != (0, 0):
cur_df.drop_duplicates(subset=['station_mac'], inplace=True)
try:
... |
TAXONOMIC REVISION AND NUMERICAL ANALYSIS OF HIBISCUS L. IN EGYPT
The present study undertakes a survey, taxonomical revision and numerical analysis of the genus Hibiscus L. in Egypt including wild and cultivated species. The taxonomic treatment based on collecting of fresh material from the studied species, in additi... |
<reponame>weeping-shadow/Hidden-Mod
package io.github.weeping_shadow.hidden.mixin.accessors;
import net.minecraft.network.packet.s2c.play.BlockUpdateS2CPacket;
import net.minecraft.util.math.BlockPos;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(BlockUpdateS2CPacke... |
// Test description:
// - Attach texture containing solid color to framebuffer.
// - Draw full screen quad covering the entire viewport.
// - Multiple assignments are made to the output color for fragments on the right vertical half of the screen.
// - A single assignment is made to the output color for fragments on th... |
/**
* Checks the keys in the Map on the model against a Set to ensure there are no values in the
* Map that aren't also in the Set
*/
protected void checkAttributesMap(
MessageContext context,
String basePath,
Set<String> swappableAttributes,
Map<String, At... |
<reponame>wanghy0411/recite-words<gh_stars>0
package org.noodle.service.dictionary;
import org.noodle.bean.dictionary.DictionarySaveRequest;
import org.noodle.beans.NoodleException;
import org.noodle.orm.mapper.DictionaryMapper;
import org.noodle.orm.mapper.UserDictionaryMapper;
import org.noodle.orm.mapper.UserInfoMa... |
The future of digital platforms: Conditions of platform overthrow
Are the digital platforms that we know here to stay? Both empirical insights and theoretical works suggest digital platform stability. Digital platforms such as Airbnb, Netflix and Taobao have experienced tremendous success, and the theoretical works on... |
// This function will be invoked when a Client-Library has detected an error.
// Before Client-Library routines return CS_FAIL, this handler will be called with additional error information.
CS_RETCODE
clientmsg_callback(CS_CONTEXT *context, CS_CONNECTION *conn, CS_CLIENTMSG *emsgp) {
sdblib::error << "client library ... |
<gh_stars>1000+
package kubernetesdiscovery
import (
"time"
"k8s.io/apimachinery/pkg/types"
"github.com/tilt-dev/tilt/pkg/apis"
"github.com/tilt-dev/tilt/pkg/apis/core/v1alpha1"
)
// nsKey is a tuple of Cluster metadata and the K8s namespace being watched.
//
// If multiple clusters are are in use, it's possibl... |
On the surface, the sight of “Make America Nazi-Free Again” offending some Americans should be a combination of frightening and disgusting. However, anyone with a passing knowledge of current events in America, and the integrity to dig past a thin fairy dusting of BS, can see why many, non-Nazi Americans would take gre... |
SPINNING AND BRANCHED CYCLIC COVERS OF KNOTSC
A necessary and suucient algebraic condition is given for a Z-torsion-free simple 2q-knot, q 3, to be the r-fold branched cyclic cover of a knot. This result is then used to give a necessary and suucient algebraic condition on a simple (2q ?1)-knot for its spun knot to be ... |
/**
* Initializes motors, servos, lights and sensors from a given hardware map
*
* @param ahwMap Given hardware map
*/
public void init(HardwareMap ahwMap, Telemetry telemetry) {
hwMap = ahwMap;
this.telemetry = telemetry;
/*
* eg: Initialize the hardware variables. ... |
Evaluation of Novel Probiotic Bacillus Strains Based on Enzyme Production and Protective Activity Against Salmonellosis
. Probiotic strains of Bacillus spp. are used in industrial poultry production because of their ability to produce enzymes enhancing the absorption of nutrients and to reduce the risk of Salmonella s... |
package memmetrics
import (
"time"
"github.com/FoxComm/vulcand/Godeps/_workspace/src/github.com/mailgun/timetools"
. "github.com/FoxComm/vulcand/Godeps/_workspace/src/gopkg.in/check.v1"
)
type CounterSuite struct {
clock *timetools.FreezedTime
}
var _ = Suite(&CounterSuite{})
func (s *CounterSuite) SetUpSuite(... |
from sncosmo.photdata import PHOTDATA_ALIASES
# Generate docstring: table of aliases
# Descriptions for docstring only.
_photdata_descriptions = {
'time': 'Time of observation in days',
'band': 'Bandpass of observation',
'flux': 'Flux of observation',
'fluxerr': 'Gaussian uncertainty on flux',
'zp... |
// GetRegionFromCtx gets the region from the context.
func (rm *MockRegionManager) GetRegionFromCtx(ctx *kvrpcpb.Context) (RegionCtx, *errorpb.Error) {
ctxPeer := ctx.GetPeer()
if ctxPeer != nil {
_, err := rm.GetStoreAddrByStoreID(ctxPeer.GetStoreId())
if err != nil {
return nil, &errorpb.Error{
Message: ... |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from argparse import Namespace
import os
import re
import unittest
from pathlib import Path
from tqdm import tqdm
from typing import List, Dic... |
Pelistega ratti sp. nov. from Rattus norvegicus of Hainan island.
Two strains (NLN63T and NLN82) of Gram-stain-negative, oxidase- and catalase-positive, bacilli-shaped organisms were isolated from the faecal samples of two separate Rattus norvegicus in Baisha county of Hainan Province, Southern PR China. Phylogenetic ... |
/**
* Have existing Limelight user to add to this project
*
* @param invitedPerson_Limelight_UserId
* @param invitedPersonAccessLevel
* @param projectId
* @param webserviceResult
* @throws Exception
*/
private void addExistingUserToProjectUsingProjectId(
int invitedPersonUserId,
int invitedPers... |
<filename>tests/SkLinearBitmapPipelineTest.cpp<gh_stars>1-10
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <algorithm>
#include <array>
#include <tuple>
#include <vector>
#include "SkLinearBitmapPipeline.h"
#incl... |
import React, {
FunctionComponent,
SyntheticEvent,
useContext,
useEffect,
useRef,
useState,
} from 'react'
import PaymentMethodContext from '#context/PaymentMethodContext'
import {
CardElement,
Elements,
useElements,
useStripe,
} from '@stripe/react-stripe-js'
import {
StripeCardElementOptions,
... |
package com.solvd.carina.gui.ios.component;
import com.qaprosoft.carina.core.foundation.webdriver.decorator.ExtendedWebElement;
import com.solvd.carina.gui.common.component.base.BaseCategoryProduct;
import com.solvd.carina.util.ContextSwitcher;
import com.solvd.carina.util.Parser;
import io.appium.java_client.function... |
/**
* <code>GenerationalSCNGenerator</code> is an implementation of the {@link SCNGenerator} that handles mastership change
* as monotonically increasing generation changes to create relay SCNs from local SCNs and host identifiers.
* This SCN generator works on the following assumptions/approach:
* <pre>
* <li>... |
package com.fincatto.nfe310.validadores.xsd;
import com.fincatto.nfe310.FabricaDeObjetosFake;
import com.fincatto.nfe310.NFeConfigFake;
import com.fincatto.nfe310.assinatura.AssinaturaDigital;
import org.junit.Assert;
import org.junit.Test;
public class XMLValidadorTest {
@Test
public void deveValidarLote() ... |
Metabolic flux interval analysis of CHO cells
Based on a detailed metabolic network of CHO-320 cells built using available information gathered from published reports, the flux distribution can be evaluated using tools of positive linear algebra (in particular, the algorithm METATOOL devised in T. Pfeiffer and Schuste... |
<gh_stars>1000+
package stripe
import (
"encoding/json"
)
// SetupIntentCancellationReason is the list of allowed values for the cancelation reason.
type SetupIntentCancellationReason string
// List of values that SetupIntentCancellationReason can take.
const (
SetupIntentCancellationReasonAbandoned Setu... |
Place-Based Policies and Agglomeration Economies: Firm-Level Evidence from Special Economic Zones in India
This paper exploits time and geographic variation in the adoption of Special Economic Zones in India to assess the direct and spillover effects of the program. We combine geocoded firm-level data and geocoded SEZ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.