content
stringlengths
10
4.9M
Research on search probability and camera footprint of region coverage for UAVs This paper investigates the search probability and camera footprint of region coverage for UAVs. Two kinds of search probability by using the UAV camera are proposed. Moreover, the relationship between the UAV altitude and the camera footp...
<filename>src/js/comps/Home.tsx import React, { useContext, Fragment } from "react"; import values from "lodash.values"; import Spinner from "./Spinner"; import SpinnerContext from "../spinnerContext/spinnerContext"; import { FormContext } from "../formContext/FormContext"; import { KeywordsContext } from "../keywordsC...
package layout // DirectEdge is straight line from center of one node to another. func DirectEdge(from, to Node) Edge { return Edge{ Path: [][2]int{ { from.XY[0] + (from.W / 2), from.XY[1] + (from.H / 2), }, { to.XY[0] + (to.W / 2), to.XY[1] + (to.H / 2), }, }, } } // DirectEdgesLayo...
The party and network are both scrambling to dim loud, partisan voices voices. | AP Photos The GOP, Fox political purge Republicans and Fox News are moving to purge the controversial political creatures they created. Both were damaged badly in 2012 by loud, partisan voices that stoked the base — but that scared the h...
/** * Shader parameters for the Post-processing shader program. * * @author Benjamin Glatzel */ public class ShaderParametersSSAO extends ShaderParametersBase { public static final int SSAO_KERNEL_ELEMENTS = 32; public static final int SSAO_NOISE_SIZE = 4; private final Random random = new FastRandom(...
Sources have brought me up to speed on the details of Allen/Mayo I, and judging by the fruit of this fight -- a black eye for O.J. Mayo and a fine for Tony Allen -- there will not be a rematch. I'm told the two Memphis Grizzlies players, who are actually friends, scuffled over a debt of $7,500 that Mayo owed to Allen ...
<filename>app/src/main/java/com/skywalkers/cosapa/models/doctor/BppProvider.java package com.skywalkers.cosapa.models.doctor; import java.util.List; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class BppProvider { @SerializedName("id") @Expose priv...
# -*- coding: utf-8 -*- import xarray as xr import xskillscore as xs import numpy as np def get_score_spatial( pred: xr.DataArray, target: xr.DataArray, clim_mean: xr.DataArray, clim_std: xr.DataArray, ) -> dict: """Score rmse, nrmse, cc, acc, ncc""" pred_anom = pred.groupby("time.month") - c...
/** * paint founded boxes on an image * @param threshed * @param boxes */ public void paintBoxes(Mat threshed, ArrayList<Rect> boxes){ Random ran = new Random(); for (Rect r : boxes){ Imgproc.rectangle(threshed, r.tl(), r.br(), new Scalar(127, 127, 127), -1); } ...
// abo, byq, yt final class yz extends abo implements byq { private yz() { // 0 0:aload_0 // 1 1:invokespecial #10 <Method void abo()> // 2 4:return } yz(yt yt) { this(); // 0 0:aload_0 // 1 1:invokespecial #13 <Method void yz()> // 2 ...
<filename>platform/windows/Corona.Native.Library.Win32/Interop/Graphics/FontSizeConverter.cpp ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https...
<reponame>choryuidentify/price-parser # -*- coding: utf-8 -*- """ Currency information. ``CURRENCIES`` data is from https://github.com/StorePilot/coinify, which is supposed to provide combined data from * https://gist.github.com/Fluidbyte/2973986 * https://en.wikipedia.org/wiki/ISO_4217 * http://www.iotafinance.com/e...
/** * Normalizes a vector represented as a Map. * @param vector * @return the initial length of the vector. */ protected double normalize( Map<Node,Double> vector ) { double sum = 0; for ( Node node : vector.keySet() ) { Double d = vector.get( node ); ...
class PeriodicTable: """A data container for the periodic table information for an element.""" group: int period: int block: str category: str
Athletic fields for a private prep school and a dog park, but not veterans (Washington, DC) – Judicial Watch announced today that it filed a Freedom of Information Act (FOIA) lawsuit against the U.S. Department of Veterans’ Affairs (VA) to for information regarding an agreement to turn a VA campus in Los Angeles into ...
#pragma once #include "BroadphaseProxy.h" #include "BroadphaseInterface.h" namespace BulletSharp { ref class OverlappingPairCache; public ref class SimpleBroadphaseProxy : BroadphaseProxy { internal: SimpleBroadphaseProxy(btSimpleBroadphaseProxy* native); public: SimpleBroadphaseProxy(); ...
<filename>src/com/classes/model/Favorito.java package com.classes.model; import java.io.Serializable; import javax.persistence.*; /** * @author - <NAME> * @since - 02/12/2014 */ @Entity @Table(name = "FAVORITO") public class Favorito implements Serializable { private static final long serialVers...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to b...
<reponame>Farsene1/sdk_java<gh_stars>0 package com.bunq.sdk.context; import com.bunq.sdk.exception.BunqException; import com.bunq.sdk.model.core.BunqModel; import com.bunq.sdk.model.core.SessionServer; import com.bunq.sdk.model.generated.endpoint.UserApiKey; import com.bunq.sdk.model.generated.endpoint.UserCompany; im...
async def async_step_detect(self, user_input=None): errors = {} if user_input is not None: if user_input[CONF_DEVICE] == self.MANUAL_PATH_VALUE: return await self.async_step_manual(None) if await self.validate_enocean_conf(user_input): return self....
BOSTON – In the past couple of weeks, we have seen Jaylen Brown’s athleticism provide a few, ‘how-the-hell-did-he-do-that?' moments for the Boston Celtics. First there was the acrobatic lob against the Los Angeles Lakers in which he caught it with his left hand and, while still in the air, switched it to his right and...
Effect of Operating Conditions on Olefin Distribution in FCC Gasoline as Part of an Olefin Reduction Process The effects of operating conditions on the distribution of olefins in the FCC gasoline, obtained during catalytic cracking reaction in the presence of the GOR-Q catalyst and conventional MLC-500 catalyst, have ...
import { FastifyRequest, FastifyReply } from 'fastify'; import { Success, Catch, Failed } from '@dustinrouillard/fastify-utilities/modules/response'; import { Debug } from '@dustinrouillard/fastify-utilities/modules/logger'; import { Upload } from 'helpers/uploader'; export async function UploadImageHandler(req: Fas...
/** * Returns whether or not the response is an error. Because of the invariant condition, whether or not the exception * is null can be used to indicate an error. * * @return whether or not the response is an error. */ @Override @Deprecated public boolean isErrorResponse() { return _responseEn...
<gh_stars>0 import math from ...shader_base import Nodes from ..source1_shader_base import Source1ShaderBase class Cable(Source1ShaderBase): SHADER = 'cable' @property def basetexture(self): texture_path = self._vavle_material.get_param('$basetexture', None) if texture_path is not None: ...
/** * Init and start netty server * * @throws Throwable */ @Override protected void doOpen() throws Throwable { bootstrap = new ServerBootstrap(); bossGroup = createBossGroup(); workerGroup = createWorkerGroup(); final NettyServerHandler nettyServerHandler = creat...
// DTR pin // output (shared pin with PHY link status) void init_flowcontrol_dtr_pin(void) { GPIO_Configuration(DTR_PORT, DTR_PIN, GPIO_Mode_OUT, DTR_PAD_AF); GPIO_ResetBits(DTR_PORT, DTR_PIN); }
/** * * @author Jayashanka Deshan */ public class Properties extends javax.swing.JInternalFrame { /** * Creates new form Properties */ public Properties() { initComponents(); this.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); Basi...
/** * Factory class to create JSF exception handler {@link DefaultExceptionHandler}. * * @author ova / last modified by $Author: ovaraksin@gmail.com $ * @version $Revision: 90 $ */ public class DefaultExceptionHandlerFactory extends ExceptionHandlerFactory { private ExceptionHandlerFactory parent; public ...
def pickTypeIsolate(prefix, names): db_name = prefix + '/' + os.path.basename(prefix) + '.h5' hdf_in = h5py.File(db_name, 'r') min_prop_n = 1.0 type_isolate = None try: read_grp = hdf_in['sketches'] for dataset in read_grp: if hdf_in['sketches'][dataset].attrs['missing_ba...
<filename>src/basic.hpp<gh_stars>1-10 /// [[Index]] /// # {{Basic}} #ifndef NBLIB_BASIC_HPP #define NBLIB_BASIC_HPP /// ### block\(expr\) /// Prevents the expression from being optimised into the code around it. e.g. /// ```c++ /// LedPin::output(LedPin::Value::high); /// LedPin::output(LedPin::Value::low); /// ``` ...
def first_available_or_next(values: Iterable[int], start: int = 0) -> int: stop = max(values, default=0) + 2 if start >= stop: stop = start + 1 return min(set(range(start, stop)) - set(values))
// ReadGlobalConfiguration reads the general config file into a tConfig struct. func (c *tConfig) ReadGlobalConfiguration() error { var ( err error tmpByte []byte TmpConfig tConfig ) _, err = ioutil.ReadFile(c.HomeDir + "/.gotp/config") if err != nil { if err.Error() == "open "+c.HomeDir+"/.gotp/con...
The bank had serious security problems like a bad firewall and aging equipment, which let hackers steal credentials and penetrate the servers. Once inside, they created a sophisticated attack that may have included a customized version of a tool called "evtdiag.exe" to delete SWIFT transactions. Researchers spotted the...
def _get_statistical_moments(cls, property_extractor, statistical_moments = [mean, std, median], **kwargs): cls.statistical_moments = [i.__name__ for i in statistical_moments] fp = {} prop = property_extractor(**kwargs) for i in prop: fp[i] = [] tmp = array(prop[i...
def initialize(data, cfg, rank=None, null=False): a0 = cfg['prior']['a0'] b0 = cfg['prior']['b0'] verbose = cfg['estimation_params']['verbose'] y = data['y'] region_list = data['region_list'] region_ids = data['region_ids'] region_sizes = data['region_sizes'] n_regions = region_ids.max()...
def drilling_and_mining_support(self, bea_bls_output, value_added, nea_elec, nea_fuels, sector_estimates): factor = 0.001 col = 'Support Activities' bea_bls_output = \ bea_bls_output.rename( columns={'Support activities for mining':...
def check_for_illegal_rr_ttl(self, field_name='fqdn', rr_value=None): if not rr_value: rr_value = getattr(self, field_name) for record in self.__class__.objects.filter(**{field_name: rr_value}): if self.pk and record.pk == self.pk: continue if self.ttl...
/** * Switches to forward checking if possible. */ private void switchToForward() { assert(state == State.ITER_CHECK_BWD || (state == State.ITER_IN_FCD_SEGMENT && pos == limit) || (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); ...
import React from "react" import styles from "./button.module.scss" interface ButtonProps { className?: string onClick: () => void type: "button" | "submit" | "reset" | undefined text: string } const Button: React.FC<ButtonProps> = (props) => { return ( <button type={props.type} className={props.type !==...
To Decipher the Mycoplasma hominis Proteins Targeting into the Endoplasmic Reticulum and Their Implications in Prostate Cancer Etiology Using Next-Generation Sequencing Data Cancer was initially considered a genetic disease. However, recent studies have revealed the connection between bacterial infections and growth o...
Textual history and structure Historical context Synopsis Themes Just war The Mahābhārata offers one of the first instances of theorizing about dharmayuddha, "just war", illustrating many of the standards that would be debated later across the world. In the story, one of five brothers asks if the suffering caused b...
def _create_preparation_layouts(self, plate_specs): prep_shape = self._picked_assigner.preparation_reservoir_specs.\ rack_shape self.__translator_store.set_prep_shape(prep_shape) number_sectors = _TranslatorStore.get_number_sectors(prep_shape) for label, plate_contai...
"""Functions for fixing specific issues with datasets.""" from ._fixes.shared import ( add_altitude_from_plev, add_plev_from_altitude, add_sigma_factory, ) __all__ = [ 'add_altitude_from_plev', 'add_plev_from_altitude', 'add_sigma_factory', ]
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
The first email calling me a “b‑‑‑‑” for my Pinocchio rating came early in the election season, when there were so many presidential candidates it was hard to keep track. I showed it to my colleague and editor Glenn Kessler. He was surprised; people don’t really call him that. Over the next 18 months or so, “b‑‑‑‑” bec...
Image caption Brian Hogg's ear has been made with a piece of his own rib A piece of rib and a bone conduction implant have been used in a pioneering operation to treat an Edinburgh man's hereditary deafness. Brian Hogg, 29, was fitted with an implant called a Bonebridge and given the new ear by NHS Lothian surgeons. ...
// Returns the ptoken_id of the related asset // // Returns `Err` if market does not exist. pub fn ptoken_id(asset_id: AssetIdOf<T>) -> Result<AssetIdOf<T>, DispatchError> { if let Ok(market) = Self::market(asset_id) { Ok(market.ptoken_id) } else { Err(Error::<T>::MarketDoesNotEx...
/** * Service a request to this servlet using a MadnessWriter for output. * * @param request a servlet request * @param response a servlet response * @param session the user's session * @param out a MadnessWriter for output */ protected void doBoth(HttpServletRequest request, HttpServletResponse re...
/** * Open the chooser window and allow the user to open the wanted file. After * choosing the wanted file, load all the needed data: image, ground truth * etc. */ private void chooseLoadFile() { String newFile; open the custom file chooser CustomFileChooser fileChoo...
CHICAGO (AP) - Fast-food workers organized by the Fight for $15 group say they will join the Chicago Teachers Union when its members shut down schools April 1. Fight for $15 organizers say planning is still underway and it hasn't been determined how many workers or restaurants will be involved. The Fight for $15 camp...
You might say that Outlander’s Claire Fraser has overcome a few obstacles in her day: She’s become a seasoned, albeit unwitting, time-traveler; has endured the heartbreak of delivering a stillborn daughter; and single-handedly nursed her 18th-century Scottish Highlander husband, Jamie Fraser, back to both physical and ...
<reponame>marcoazza/django-csp-reports # -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-07-07 09:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cspreports', '0002_auto_20141011_1800'), ] o...
<filename>src/plt/Property.cpp // // Created by calebcintary on 3/17/22. // #include "pyplot_cpp/plt/Property.hpp" #include <utility> #include <stdexcept> const std::string &pyplot_cpp::plt::Property::getName() const { return name; } const std::string &pyplot_cpp::plt::Property::getValue() const { return va...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: dapper.proto package dapperlib import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compi...
Modeling Spatiotemporal Patterns of Ecosystem Metabolism and Organic Carbon Dynamics Affecting Hypoxia on the Louisiana Continental Shelf. The hypoxic zone on the Louisiana Continental Shelf (LCS) forms each summer due to nutrient enhanced primary production and seasonal stratification associated with freshwater disch...
Physical and Structural Properties of Pad-Dry-Cure, Core-, and Skin-Crosslinked Fabrics1 Core crosslinking has been shown to enhance abrasion resistance; the extent of improvement depends on the method employed to remove the surface resin. To better understand the relationship between types of crosslinking and abrasio...
PITTSBORO, N.C. LIKE her name, Siglinda Scarpa seems to be from another world. And not just Italy, where she was born. But one in which you can hear the animals speak, and everyone gets along. Ms. Scarpa, 72, lives in a wooden house painted robin’s egg blue, in the middle of an open woodland, with old oaks and pines ...
from struct import pack, unpack from array import array from model import Recording import wave def save_recording(path, recording): """Records from the microphone and outputs the resulting data to 'path'""" packed_data = pack('<' + ('h'*len(recording.sound_data)), *recording.sound_data) wf = wave.open(pa...
/** * Thrown to indicate that the SQLite database used is full. * * @author Vasilis Poulimenos */ class SQLiteStoreFullException extends StoreFullException { /** * Constructs a new {@code SQLiteStoreFullException} with a default detail message. */ SQLiteStoreFullException() { super(); ...
extern crate bls_sigs_ref_rs; extern crate bls_sigs_test; extern crate pairing_fork; use bls_sigs_test::{get_vecs, test_sig_basic}; use pairing_fork::bls12_381::G2; use std::io::Result; fn main() -> Result<()> { for vec in get_vecs("sig_g2_basic")? { test_sig_basic::<G2>(vec?, 96)?; } Ok(()) }
/** * Vungle integration. * * @author Mikolaj Gucki */ public class AEVungle { /** The logcat tag. */ private static final String TAG = "AE/Vungle"; /** The activity. */ private static Activity activity; /** Vungle. */ private static VunglePub vunglePub; ...
def _get_value(variable: "definitions.EnvironmentVariable"): if variable.preserve: return existing.get(variable.name) return variable.get_value(function_name)
<filename>src/dash2_test.rs use arbitrary::{self, unstructured::Unstructured, Arbitrary}; use dashmap::DashMap; use rand::{prelude::random, rngs::SmallRng, Rng, SeedableRng}; use std::{ cmp, fmt, mem, ops::{Add, Mul, Rem}, thread, }; use super::*; trait Key: Copy + Sized + Eq + Add<Output...
/** * @file Automatically generated by barrelsby. */ export * from './cache/index'; export * from './canvas/index'; export * from './components/index'; export * from './events/index'; export * from './gltf/index'; export * from './loader/index'; export * from './material/index'; export * from './math/index'; export ...
t = int(input()) for z in range(t): n,k = map(int, input().split()) extra = (n-k)%3 temp_str = "acb" fin_string = "b"*k+temp_str*((n-k)//3)+temp_str[:extra] print(fin_string)
// Just a specialized version of lookup_resource(). resource *resource_manager::lookup_font(const char *name) { resource *r; for (r = resource_list; r; r = r->next) if (r->type == RESOURCE_FONT && strlen(name) == (size_t)r->name.length() && memcmp(name, r->name.contents(), r->name.length()) == 0) return...
<gh_stars>1-10 package arity import ( "fmt" "testing" "github.com/obsidiandynamics/libstdgo/check" "github.com/stretchr/testify/assert" ) func TestRepack(t *testing.T) { cases := []struct { input interface{} expect []interface{} err error }{ {[...]int{0, 1, 2}, []interface{}{0, 1, 2}, nil}, {[]in...
<gh_stars>1-10 #!/usr/bin/env python3 import os import sys import ipfshttpclient from broker import cfg from broker._utils._log import c, log from broker._utils.tools import get_gpg_fingerprint, is_byte_str_zero, is_gpg_published, print_tb from broker._utils.web3_tools import get_tx_status from broker._utils.yaml im...
<reponame>vigoo/barlang-hs import Language.Barlang.Test.Parser import Test.QuickCheck main :: IO () main = do putStrLn "Running checks..." check printedTypeIsParsable check printedExpressionIsParsable check printedStatementIsParsable
/** * A {@link MessageDecoder} for the {@link MagicOnPlayerMessage} * * @author Stuart */ public final class MagicOnPlayerMessageDecoder extends MessageDecoder<MagicOnPlayerMessage> { @Override public MagicOnPlayerMessage decode(GamePacket packet) { GamePacketReader reader = new GamePacketReader(packet); in...
<filename>pkcs11/src/cryptoki/structs.rs use std::{mem, ptr, slice}; use std::borrow::Cow; use std::marker::PhantomData; use pkcs11_sys as sys; use super::{from_ck_long, to_ck_long}; use super::{AttributeType, SlotId, State}; use super::{MechanismFlags, SessionFlags, SlotFlags, TokenFlags}; //------------ Attribute ...
/* Can successfully push onto a stack Can successfully push multiple values onto a stack Can successfully pop off the stack Can successfully empty a stack after multiple pops Can successfully peek the next item on the stack Can successfully instantiate an empty stack */ @Test public voi...
In the memoir, Ms Gillard confesses to multiple errors of judgment during her three years and three days as the country's first female prime minister, but asserts they were largely a product of circumstances beyond her control. Julia Gillard says that Kevin Rudd asked to be reinstated as foreign affairs minister after ...
class Context: def __init__(self, display_name, parent=None, parent_entry_pos=None): self.display_name = display_name self.parent = parent # 上层 self.parent_entry_pos = parent_entry_pos # 上层的位置;调用链 self.symbol_table = None
def time_locked(self, time_locked): self._time_locked = time_locked
<gh_stars>1-10 extern crate env_logger; extern crate image; extern crate lime_render as render; extern crate shrev; extern crate specs; extern crate winit; use std::fs::File; use image::png::PNGEncoder; use image::ColorType; use render::{d2, Color, ImageTarget}; use shrev::EventChannel; use specs::prelude::*; struct...
def predictMP(self,smilesstring): try: calcdesc = pd.DataFrame(self.calc(smilesstring)).to_numpy().reshape(1,-1) except: return "Calculator Error: Make sure valid model has been selected" try: return "Predicted Melting Point: "+str(self.model.predictSingle(cal...
<filename>wire/handshake.py """ Handshake: https://wiki.theory.org/BitTorrentSpecification#Handshake <pstrlen><pstr><reserved><info_hash><peer_id> """ from collections import namedtuple from struct import pack from struct import unpack SIZE = 68 PSTR = b"BitTorrent protocol" FORMAT = '>{}p8x20s20s'.format(len(PSTR...
<reponame>miso-develop/obniz export interface StepperMotorOptions { a: number; b: number; aa: number; bb: number; common?: number; } export type StepType = '1' | '2' | '1-2'; export interface StepperMotor { currentStep: number; rotationStepCount: number; milliMeterStepCount: number; currentRotation()...
Islamabad: Pakistan on Wednesday summoned Indian Deputy High Commissioner JP Singh after two civilians were killed and six others injured in alleged ceasefire violations along the Line of Control by Indian troops. Foreign ministry spokesman Nafees Zakaria said Indian security forces resorted to firing in Baroh and Tan...
// Return the number of bytes scanned func (b *Benchmark) Bytes() (sum int) { for _, pkt := range b.packets { sum += len(pkt) } return }
A radical and rare experiment is unfolding, hinging on the idea that renters are not merely transients in a city; they are citizens and stakeholders. For Cincinnati, where this is all taking place, it’s not a moment too soon. A report dating back to 1960 by the American Planning Association named Cincinnati the sevent...
<gh_stars>0 package com.demo.algorithm.heap; /** * Given scores of N athletes, find their relative ranks and the people with the top three * highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal". * Note: * N is a positive integer and won't exceed 10,000. * All the scores of ...
<filename>shield/pkg/shield/util_mutation.go // // Copyright 2020 IBM Corporation // // 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 // // Un...
<reponame>aymanapatel/my-notes-algolia import os import csv import json from algoliasearch.search_client import SearchClient client = SearchClient.create("T81G59BI39", "<KEY>") index = client.init_index("my-notes") def remove_objects(): index.clear_objects() if __name__ == "__main__": remove_objects...
/* { dg-do run } */ #include <stdio.h> #include "init9.h" #include "dump.h" int main (void) { struct R1 Local_R1; struct R2 Local_R2; put ("My_R1 :"); dump (&My_R1, sizeof (struct R1)); new_line (); /* { dg-output "My_R1 : 18 2d 44 54 fb 21 09 40.*\n" } */ put ("My_R2 :"); dump (&My_R2, si...
/** * Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. Args: world, * x, y, z, startVec, endVec */ public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3) { MovingObjectPosi...
/* Public function to parse SIP message. */ PJ_DEF(pjsip_msg*) pjsip_parse_msg( pj_pool_t *pool, char *buf, pj_size_t size, pjsip_parser_err_report *err_list) { pjsip_msg *msg = NULL; pj_scanner scanner; pjsip_parse_ctx context; pj_scan_init(&scanner, buf, si...
import { getType } from 'typesafe-actions'; import { ContainerState, ContainerActions } from './types'; import { setTxInProgress } from './actions'; /* * * App reducer * */ export const initialState: ContainerState = { txInProgress: false, }; function AdminProjectReviewReducer(state = initialState, action: Con...
// HasAnnotationWithValue verifies that the MasterUserRecord has // an annotation with the given key and value func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion { err := a.loadUaAssertion() require.NoError(a.t, err) require.Contains(a.t, a.masterUserRecord.Annotations, key) assert.Equal(a.t, ...
import JsonServices from '../JsonServices'; import JsonEndpoints, { HttpMethod } from '../JsonEndpoints'; import JsonAuthorizers, { JsonAuthorizersEntry } from '../JsonAuthorizers'; import { execSync } from 'child_process'; import * as TestUtils from '../TestUtils'; import { RateUnit } from '../JsonSchedules'; const P...
<reponame>vitorespindola/ari-proxy package bus import ( "testing" "time" "github.com/inconshreveable/log15" "github.com/CyCoreSystems/ari/v5" ) func TestMatchEvent(t *testing.T) { key := &ari.Key{ Kind: ari.ChannelKey, ID: "testA", Node: "0test0", App: "testApp", } e := &ari.StasisEnd{ EventDat...
<reponame>xmba15/yolov3_pytorch #!/usr/bin/env python # -*- coding: utf-8 -*- import os import cv2 import numpy as np import tqdm import multiprocessing as mp from ctypes import c_int32 from abc import abstractmethod _counter = mp.Value(c_int32) _counter_lock = mp.Lock() class DatasetConfigBase(object): def __i...
/* Copyright 2021 The Kubernetes Authors. 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 required by applicable law or agreed to in writing, ...
from keyvi.dictionary import Dictionary @profile def mem(): D = Dictionary("_temp/kv/g_word_utf8.txt") print(type(D)) if __name__ == '__main__': mem()
def analyze_conversion( self ): noise_lims = [0,400] noise_q2 = self.cc.metrics['noise_q2'] if noise_q2 < 100: noise_lims = [0,150] elif (noise_q2 >= 100) and (noise_q2 < 200): noise_lims = [50,250] elif (noise_q2 >= 200) and (noise_q2 < 300): ...
<reponame>Iamvirgin/Drive export interface GrowCardItem { icon: string; title: string; value: number; total: number; color: string; action: string; } export const growCardList: GrowCardItem[] = [ { title: '访问数', icon: 'visit-count|svg', value: 2000, total: 120000, color...
DALLAS -- The fight night drama started early on Friday afternoon in Dallas, as Johny Hendricks nearly missed weight for his pivotal welterweight clash against Robbie Lawler ahead of UFC 171. For Hendricks, and for the UFC, a botched weight cut would've been a catastrophic turn of events for a welterweight division lo...
<gh_stars>1-10 package ku.message.service; import ku.message.model.Product; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.*; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import java.util.Arrays; import java.util.List...