content
stringlengths
10
4.9M
<gh_stars>1-10 package scheduler import "go-learn/spider/zhenaiwang/v3/engine" type SimpleScheduler struct { workerChan chan engine.Request } func (s *SimpleScheduler) Submit(request engine.Request) { // send request down to worker chan go func() { s.workerChan <- request }() } // 把初始请求发送给 Scheduler func (s *...
<filename>src/main/java/com/github/xfslove/smssp/message/sgip12/UnBindRespMessage.java package com.github.xfslove.smssp.message.sgip12; import com.github.xfslove.smssp.message.Sequence; import io.netty.buffer.ByteBuf; /** * @author hanwen * created at 2018/8/28 */ public class UnBindRespMessage implements SgipMess...
The former captain of the Etowah County, Alabama Rescue Squad, has been charged with criminally negligent homicide in the death of fellow rescuer Vicky Ryan in a April 25 water rescue attempt. Michael Bettis, 49, faces the Class A misdemeanor charge and was booked into jail Tuesday. Bond was set at $2,500. More: Capta...
// public virtual [base kpTool] void kpToolColorPicker::releasedAllButtons () { setUserMessage (haventBegunDrawUserMessage ()); }
# python 2/3 compatibility from __future__ import division, print_function import sys import os.path import numpy import pandas import copy import difflib import scipy import collections import json # package imports import rba from .rba import RbaModel, ConstraintMatrix, Solver from .rba_SimulationData import RBA_Simu...
/** * Reads the response out to String */ public String readResponse(HttpResponse response) throws ParseException, IOException { String responseEntity = EntityUtils.toString(response.getEntity()); LOG.debug("readResponse entity : {}", responseEntity); return responseEntity; }
#include <iostream> #include <algorithm> #include <functional> using namespace std; int main() { int n, a[100], s = 0, ms = 0, c; cin >> n; for (c = 0; c < n; ++c) { cin >> a[c]; s += a[c]; } sort(a, a + n, greater<int>()); for (c = 0; ms <= s; ++c) { ms ...
Share Shadow of Evil casts up to four players as classic film noir archtypes — the Magician, the Femme Fatale, the Cop, and the Boxer — who are pulled into strange and terrible circumstances by a mysterious figure known as the Shadow Man. Jeff Goldblum (Jurassic Park, The Fly), Heather Graham (The Hangover I-III, Boog...
Attenuating Catastrophic Forgetting by Joint Contrastive and Incremental Learning In class incremental learning, discriminative models are trained to classify images while adapting to new instances and classes incrementally. Training a model to adapt to new classes without total access to previous class data, however,...
// GetNotifications reads all notifications for a given user from the database. func (store *Store) UnseenNotificationsCount(userID globalid.ID) (int, error) { count := 0 err := store.Get(&count, `SELECT COUNT(*) FROM notifications WHERE user_id=$1 AND deleted_at IS NULL AND seen_at IS NULL`, userID) if err != nil {...
def between_segments(cls, start, finish): for segment in cls.between_dates(start.start, finish.start, start.num_segments): yield segment
def optimalRescaling(trajs): N = trajs.shape[0] FF = np.tensordot(trajs, trajs, (1, 1)) NFF = FF - N*np.eye(N)*FF w = scipy.linalg.inv(NFF) @ np.ones(N) return w / np.sum(w)
def main(): n, m = map(int, input().split()) ab = [list(map(int, input().split())) for _ in [0]*m] q = int(input()) vdc = [list(map(int, input().split())) for _ in [0]*q] g = [[] for _ in [0]*n] [g[a-1].append(b-1) for a, b in ab] [g[b-1].append(a-1) for a, b in ab] dist = [[0]*11 for ...
Mar 13 2016 by Tessa Green Many college students use Rate My Professor as a tool to create the perfect schedule with the best professors. It is a site where students anonymously rate their professors from their college; however, many students do not realize that this site might be discrediting many well qualified fema...
<filename>app/services/student.py<gh_stars>1-10 from app.models.answers import Answers from app.models.student_test import StudentTest, student_test_schema from app import db from flask import request, jsonify from ..models.student import Student, student_schema, students_schema # Create a student def post_student(): ...
The equivalence of the transient behaviour formulae for the single server queue It is indeed obvious to expect that the different results obtained for some problem are equal, but it needs to established. For the M/M/1/N queue, using a simple algebraic approach we will prove that the results obtained by Takâcs and Sh...
async def async_notify_update(self, update_type): LOGGER.debug("Hub {update_type.name} updated") if update_type == aiopulse.UpdateType.rollers: await update_devices(self.hass, self.config_entry, self.api.rollers) self.hass.config_entries.async_update_entry( self.c...
After years of inquiry, $40m in expenses and an unprecedented clash with the Central Intelligence Agency, the Senate intelligence committee voted on Thursday to declassify portions of a study into the agency's use of torture on detainees suspected of being involved in terrorism. The landmark 11-3 vote now places the O...
More than planned: Implementation intention effects in non-planned situations Forming implementation intentions (i.e., if-then planning) is a powerful self-regulation strategy that enhances goal attainment by facilitating the automatic initiation of goal-directed responses upon encountering critical situations. Yet, l...
JODHPUR: It was at about 11.30 am when a MiG-27 upgrade aircraft on a routine mission sortie crashed in the residential area of Mahavir Nagar, Kudi Housing Board. While the pilot, Flying Officer Kandpal, ejected safely, seconds before the aircraft crashed, there was no loss to the human lives at the spot.Two houses and...
def checkWin(self, playerIdentity): for r in range(3): if (self.gameBoard[r][0] == playerIdentity and self.gameBoard[r][1] == playerIdentity and self.gameBoard[r][2] == playerIdentity): return True for c in range(3): if (self.gameBoard[0][c] == playe...
// ToQueryString generates a query string to be provided as part of the URL in a sync command func (c *Command) ToQueryString() string { commandStringAsJSON, _ := json.Marshal(c.Commands) commandString := string(commandStringAsJSON) commandStringAsQueryString := url.QueryEscape(commandString) return fmt.Sprintf("to...
// HandleAsyncWebhookRequest will take an HTTP request and return the // WebhookRequest object or an error. This is used as a part of the async flow // for the TrueLayer api. // // params // - req - the http request to handle // // returns // - the webhook request // - error if an error occurs func (t *TrueLayer)...
/** * update the player Typ after load a Game from a savegame */ public void updatePlayerTyp() { switch (this.playerBlack.getPlayerType()) { case KI_LEVEL1: this.playerBlack = new KI(this.playerBlack.getColor(), Level.LEVEL1); break; case KI_LEVE...
import express from "express"; import {AuthController} from "../controllers/auth/auth.controller"; import {UserController} from "../controllers/dashboard/user.controller"; // Define routes /api/v1 const wrapper = () => { const router = express.Router(); const controller = new AuthController(); const userCo...
<reponame>nvpro-samples/gl_vk_meshlet_cadscene /* * Copyright (c) 2016-2021, NVIDIA CORPORATION. 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://ww...
def trade(self, symbol: str, id: int, callback, **kwargs): self.live_subscribe("{}@trade".format(symbol.lower()), id, callback, **kwargs)
// Repeated queries, ds design public class WordDistance { Map<String, List<Integer>> map = new HashMap<>(); public WordDistance(String[] words) { for (int i=0; i<words.length; i+=1) { if (map.containsKey(words[i])) map.get(words[i]).add(i); else map.put(words...
With a few notable exceptions, it's widely accepted that we're now living through a golden age of TV, to the point that even in a year where we've had the likes of Narcos 3, Stranger Things (upcoming), another season of Walking Dead, Glow and many more, some argue that the quality is flagging slightly. Whatever the sc...
Two people chat by a chilled fruit machine, among other vending machines, in 1959. Underwood Archives/Getty Images It’s 4 p.m. at work, and your stomach is rumbling. It’s too early for dinner, and too late to justify a trip to the corner store for a snack. So you rustle around your pockets for change and head to the v...
/** * Created by David Lempia on 8/2/2015. * * Copy this template and rename it with the name of your event. i.e. Event_ButtonX. * Inputs and Outputs are put in the Behaviors_xx file. Access them using gd.xx * Add the event to the Behaviors_xx file. * Add inputs and outputs to the Behaviors_xx file. * Pas...
/* Copyright 2020 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, ...
-- | Common pitch representation. module Music.Pitch.Common ( module Music.Pitch.Common.Semitones, module Music.Pitch.Common.Quality, module Music.Pitch.Common.Number, module Music.Pitch.Common.Interval, module Music.Pitch.Common.Pitch, module Music.Pitch.Common.Spell, module Music.Pitch.Commo...
async def _find_one(self, query, pipe0=[], pipe1=[], check=True): pipe = pipe0 + [{'$match': query}] + pipe1 logger.debug("pipe") for stage in pipe: logger.debug(f" {stage}") c = self.coll.files.aggregate(pipe) try: d = next(c) except StopIterat...
<gh_stars>0 // Copyright 2020 The jackal 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 l...
<gh_stars>1-10 static void solve(int a, int b) { ans[a][b] = 'X'; Queue<pair> q = new LinkedList<>(); q.add(new pair(a, b)); while (q.size() > 0) { int i = q.peek().f, j = q.peek().s; q.poll(); if (i > n || i == 0 || j > n || j == 0) { continue; } for ...
<filename>website/docusaurus.d.ts declare module '@docusaurus/*' { const something: any; export = something; } declare module '@theme/*' { const something: any; export = something; } declare module '*.md' { // eslint-disable-next-line import/order import { ComponentType } from 'react'; const Component: ...
/** * Serialize an array of byte arrays into a single byte array. Used * to pass through a set of bytes arrays as an attribute of a Scan. * Use {@link #toByteArrays(byte[], int)} to convert the serialized * byte array back to the array of byte arrays. * @param byteArrays the array of byte arra...
While hundreds of apps for the Apple Watch have been announced and detailed, screenshots of most of the major applications have yet to be revealed, until now. Developer Steven Troughton-Smith has created a tool to view screenshots of Apple Watch applications by pasting in the link to the existing iPhone application. Be...
import requests from typing import Dict from .exceptions import AcrossException __all__ = ["AcrossException", "AcrossAPI"] class AcrossAPI: BASEURL = "https://across.to/api" def suggested_fees( self, l2Token: str, chainId: int, amount: int ) -> Dict[str, int]: """get suggested fees for...
def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): return cls.stripe_class.list(api_key=api_key, **kwargs).auto_paging_iter()
package app import ( "github.com/go-playground/validator/v10" "gorm.io/gorm" "myapp/util/logger" ) const ( appErrDataCreationFailure = "data creation failure" appErrDataAccessFailure = "data access failure" appErrDataUpdateFailure = "data update failure" appErrJsonCreationFailure = "json creat...
<reponame>ecmwf/pyeccodes import pyeccodes.accessors as _ def load(h): h.add(_.Unsigned('isFillup', 1)) h.alias('local.isFillup', 'isFillup') h.add(_.Unsigned('yearOfForecast', 2)) h.add(_.Unsigned('monthOfForecast', 1)) h.add(_.Unsigned('dayOfForecast', 1)) h.add(_.Unsigned('hourOfForecast',...
Ms. Yang Huiyan, China's richest woman with a net worth of 5.7 bln usd. Photo: icxoYang Huiyan, at just 32, is back atop the list of China’s richest women, with a net worth of nearly six billion usd. Her property-developer father -- Yang Guoqiang -- gifted his daughter with 70% of the shares of his firm, Country Garde...
package com.jd.blockchain.tools.initializer; import com.jd.blockchain.consensus.ConsensusProvider; import com.jd.blockchain.consensus.ConsensusSettings; import com.jd.blockchain.consensus.service.ConsensusServiceProvider; import com.jd.blockchain.crypto.asymmetric.PrivKey; import com.jd.blockchain.crypto.hash.HashDige...
import java.io.*; import java.util.*; public class E { int[]len=new int[]{3,4,5,4,3}; int[][]getGet; boolean[]cached; boolean[]answer; void solve() throws Exception { cached=new boolean[1<<19]; answer=new boolean[1<<19]; getGet=new int[5][5]; for(int r=0;r<5;r++) for(int c=0;c<5;c++) ...
<reponame>justinhsg/AoC2020 package day1; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.HashSet; import java.util.List; import java.util.Set; import utils.AoCSolvable; import utils.NoSolutionException; public class Solution implements AoCSolvable { private stat...
Optimising pharmacotherapy in older cancer patients with polypharmacy Abstract Objective Polypharmacy is frequent among older cancer patients and increases the risk of potential drug‐related problems (DRPs). DRPs are associated with adverse drug events, drug‐drug interactions and hospitalisations. Since no standardise...
// ApplyBlock executes the block, then commits and updates the mempool atomically func (s *State) ApplyBlock(eventSwitch types.EventSwitch, block *types.Block, partsHeader types.PartSetHeader, mempool types.IMempool, round int) error { err := s.ExecBlock(eventSwitch, block, partsHeader, round) if err != nil { retur...
n = int(input()) s = input() list_s = [] for i in range(n): list_s.append(s[i]) for i in range(n): try: while list_s[i] == list_s[i+1]: if list_s[i] == list_s[i+1]: list_s.pop(i+1) except IndexError: continue print(len(list_s))
package cmd import "testing" func TestRootCmd(t *testing.T) { cmd := NewRootCmd("test") t.Run("execute", func(t *testing.T) { if err := cmd.Execute(); err != nil { t.Error(err) } }) t.Run("print version", func(t *testing.T) { cmd.SetArgs([]string{"-v"}) if err := cmd.Execute(); err != nil { t.Err...
def superimpose_all(self): i = 1 while i < len(self.str_object_list): self.str_object_list[i] = self.superimpose_n_ca_c(self.str_object_list[0], self.str_object_list[i]) i += 1
/** Changes just the color of a given point from the map. First index is 0. * \exception Throws std::exception on index out of bound. */ void CColouredPointsMap::setPointColor(size_t index, float R, float G, float B) { if (index >= m_x.size()) THROW_EXCEPTION("Index out of bounds"); this->m_color_R[index] = R; thi...
<reponame>automl/HPO_for_RL<filename>pbt/exploitation/constant.py class Constant: def __init__(self): """ Constant mechanism which doesn't exploit any member """ pass def __call__(self, own_name: str, scores: dict) -> str: """ Return the name of the given member ...
<reponame>leongaban/redux-saga-exchange<gh_stars>1-10 import * as React from 'react'; import block from 'bem-cn'; import { connect } from 'react-redux'; import { ILastPrice, OrderBookWidgetType } from 'shared/types/models'; import { IAppReduxState, Omit } from 'shared/types/app'; import { floorFloatToFixed } from 'sha...
Interest in 'keeper but he is close to signing new deal at Town Bartosz Bialkowski says he has received interest in him from other clubs but is close to signing a new contract at Portman Road. The 28-year-old ‘keeper’s current deal expires in the summer but the former Southampton stopper has told the Club website tha...
<filename>src/client/videostreaming/index.tsx<gh_stars>1-10 export { RemotePeerVideo } from "./RemotePeerVideo"; export { MyVideo } from "./MyVideo"; // TODO: remove this line and all occurrences of StreamSelectorWrapper export { StreamSelectorWrapper } from "./StreamSelectorWrapper";
Episode 677: The Experiment Experiment toggle caption uniinnsbruck/Flickr A few years back, a famous psychologist published a series of studies that found people could predict the future — not all the time, but more often than if they were guessing by chance alone. The paper left psychologists with two options. "Ei...
<gh_stars>1-10 /* * Copyright (c) 2013, Sierra Wireless, * Copyright (c) 2014, Zebra Technologies, * * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of sourc...
/// <reference types="cypress" /> import { ActionRest } from '../actions/ActionRest' import { GeraDoc } from '../utils/docs' const action = new ActionRest const doc = new GeraDoc const { Given, When, Then } = require("cypress-cucumber-preprocessor/steps"); let name let username let password let id //Create User ...
/** * Class to sort code owners based on their scorings on different {@link CodeOwnerScore}s. * * <p>To determine the sort order the scorings are weighted based on the {@link * CodeOwnerScore#weight()} of the {@link CodeOwnerScore} on which the scoring was done. */ @AutoValue public abstract class CodeOwnerScoring...
// mkArgs prepares a list of paths for the command line func mkArgs(paths []string) string { escaped := make([]string, len(paths)) for i, s := range paths { escaped[i] = quotePath(realRel(s)) } return strings.Join(escaped, " ") }
package com.graphhopper.storage; import com.graphhopper.routing.util.TraversalMode; import com.graphhopper.routing.weighting.AbstractWeighting; import com.graphhopper.routing.weighting.Weighting; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Specifies all properties...
OTTAWA — Parks Canada is proposing new lockage fees for the Rideau Canal that would nearly triple the cost of a boat trip from Ottawa to Kingston. Canal users greeted the huge fee increases, posted to Parks Canada’s website late Friday, with fury and consternation. If they proceed, they warn, the new fees will effecti...
Outside Lands 2014 Listening Guide Part 3 Nahko and Medicine for the People Acoustic Thump-Hop Hailing from the music melting pool that is Portland, OR, the band draws influence from genres like hip hop, folk, jazz and tribal. You’ll note traces of inspiring acts like Erykah Badu and Digable Planets in their sound. ...
/** * Applies itself to the input * @param input The input for the function * @return The output of the function */ public double activate(double input) { switch(this) { case TANH: return Math.tanh(input); case SIGMOID: return 1 / (1 + Math.exp(-input)); ...
Development of 2-D and 3-D Double-Population Thermal Lattice Boltzmann Models In this paper, an incompressible two-dimensional (2-D) and three- dimensional (3-D) thermohydrodynamics for the lattice Boltzmann scheme are de- veloped. The basic idea is to solve the velocity fleld and the temperature fleld using two difie...
import iseg.static_strings as ss from absl import flags FLAGS = flags.FLAGS # System settings flags.DEFINE_string("cuda_visible_devices", None, "visible cuda devices") # Common settings flags.DEFINE_enum("mode", ss.TRAIN, [ss.TRAIN, ss.VAL, ss.TEST_DIR], "mode") flags.DEFINE_string("tensorboard_dir", None, "Path of...
Reporter's Notebook: France's Unexpected Political Revival NPR's Eleanor Beardsley reviews the dramatic changes that have occurred on her beat this year, including the election of Emmanuel Macron and France's resurgence in global politics. ROBERT SIEGEL, HOST: As our foreign correspondents pass through NPR headquart...
With media day taking place on Monday, Detroit Pistons fans were given their first real opportunity to hear from, and about, many of their new faces. There was one piece of news that they definitely weren’t expecting though. Pistons center Aaron Gray will miss training camp and is out indefinitely after sustaining a “...
PHILADELPHIA, Feb 14 (Reuters) - Harrisburg, Pennsylvania, moved a step closer to defaulting on a bond payment when its city council passed a 2010 budget that does not include $68 million in debt repayments on an incinerator. Without the debt provision in the $65 million budget, the state capital may miss a March 1 pa...
""" Geo-miners are recipes that extract data and metadata from geographic resources. """ from os import stat from owslib.wms import WebMapService from osgeo.gdal import Open from osgeo.osr import SpatialReference, CoordinateTransformation from .base import Miner class WMS(Miner): """Tiny wrapper around OWSLib....
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
// Run runs a timeoutRunner job func (g timeoutRunner) Run(job Job, ctx *Ctx) (interface{}, error) { time.Sleep(time.Duration(time.Second * 3)) return nil, nil }
package com.lipata.forkauthority.data.user; import android.content.Context; import androidx.test.core.app.ApplicationProvider; import androidx.test.ext.junit.runners.AndroidJUnit4; import com.lipata.forkauthority.R; import com.lipata.forkauthority.api.yelp3.entities.Business; import org.junit.Before; import org.jun...
<reponame>Justson/Contacts_Helper package com.qypt.just_syn_asis_version1_0.activity; import java.util.ArrayList; import java.util.List; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Imag...
/** * Infers the format name from the profile. * Introduced for backwards compatibility. Can be removed after * the external framework is no longer supported * * @return the inferred format name */ public String inferFormatName() { if (!StringUtils.isBlank(profile) && profile.conta...
/* * Finds packets that have been sent erlier and are now acked. * Notifies the listener that the packet was succesfully delivered. * Removes the packet and returns it to the pool. */ void PacketManagerBase::HandleAcks(const TSet<uint32>& ackedPackets) { TArray<uint32> ackedReliableUIDs; GetReliableUIDsFromAck...
q=int(input()) l=[list(map(int,input().split())) for i in range(q)] def jud(i): #iの素数判定 num=int(i**0.5)+1 for k in range(2,num): if i%k==0: return 0 return 1 s=[0]*(10**5+1) for i in range(2,10**5+1): if i%2==0: s[i]=s[i-1] else: if jud(i)*jud((i+1)//2)==1: ...
<filename>app/src/test/java/com/kickstarter/libs/utils/StringUtilsTest.java package com.kickstarter.libs.utils; import com.kickstarter.KSRobolectricTestCase; import org.junit.Test; public class StringUtilsTest extends KSRobolectricTestCase { @Test public void testIsEmail() { assertTrue(StringUtils.isEmail("...
Labour is attempting to rig the election against Jeremy Corbyn by “purging” genuine supporters on spurious grounds, one of the party’s former MPs has suggested. Andrew Mackinlay said reports Left-wing supporters who expressed admiration for politicians from other parties are being kicked off the ballot could be a “rus...
/** * ehcache don't provide direct values access in the api. Values are encapsulated into {@link Element}<br/> * so for performance reason, this code is no very efficient if cache contains a lot of items. <br/> * And moreover on a distributed caching configuration. */ @SuppressWarnings("unchecked") @...
def hook_recenter(modifier=''): pass
def category_ratio(database, columns_to_check=None, num_categories=5): category_ratio_df = pd.DataFrame() if not columns_to_check: columns_to_check = database.columns for column_name in columns_to_check: name = database[column_name].value_counts(normalize=True).index ...
<filename>doc.go /*Package gotest provides rich assertions for use within and beyond Go's `testing` package. Quickstart Grab the package and import it: go get github.com/kindrid/gotest import "github.com/kindrid/gotest" import "github.com/kindrid/gotest/should" Code normal `testing`-style tests, but use `gote...
/** * List of template locations in form of RegEx located by custom locators that must not be validated as custom * locators are not available at build time. */ public final class CustomTemplateLocatorPatternsBuildItem extends SimpleBuildItem { private final Collection<Pattern> locationPatterns; public Cus...
<gh_stars>1-10 /* Copyright 2017 <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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
Electromagnetic horizons and convex-spherical reflectionless absorber coatings We mathematically demonstrate the necessity of an electromagnetic (EM) horizon to facilitate prescription of geometrically convex, spherically-shaped material shells whose doubly-anisotropic material blueprints correspond to reflectionless ...
/** * Zoom map to the specified location. * * @param latlng * @param zoomLevel */ protected void zoomMapToLocation(LatLng latlng, @Nullable Float zoomLevel) { CameraUpdate center = CameraUpdateFactory.newLatLng(latlng); if (zoomLevel == null) { zoomLe...
A sense of rhythm, in my opinion, is the single most important aspect to guitar playing which separates the good guitarists from the bad ones. I even feel that rhythm is more important than the choice of notes, believe it or not. After all, it’s not what you play that’s important – but how you play it. You could play t...
<reponame>zerofo/sdu-face-alignment<filename>test_rec_nme.py<gh_stars>100-1000 import argparse import cv2 import sys import os import numpy as np import mxnet as mx import datetime import img_helper from config import config import matplotlib.pyplot as plt from essh_detector import ESSHDetector from metric import LossV...
// TODO: Need to add tests for repeated POSTs == updates. @Test public void testPost() { DCAEServiceTypeRequest minimalFixture = new DCAEServiceTypeRequest(); minimalFixture.setTypeName("abc"); minimalFixture.setTypeVersion(1); minimalFixture.setOwner("tester"); minimalFixtur...
package br.com.alura.leilao.api.retrofit.client; public interface RespostaListener<T> { void sucesso(T resposta); void falha(String mensagem); }
Research and Optimization of Computer Intelligent Evaluation Model under C2C Mode by Fuzzy Matter-Element This paper discusses the establishment of credit evaluation model suitable for the characteristics of C2C e-commerce, taking the C2C model as an example, so as to reduce the risk cost in e-commerce trade. This mod...
The Woman Envelope is alluringly oversized, a creamy hue like an invitation to a wedding or other formal event. The return address is “Official Campaign Headquarters” in an engraved typeface: Women Like Fancy Parties! Underneath is Clinton’s full signature in an autograph-style typeface. Women Like Personal Touches! It...
Mythgard Institute is offering 2 FREE online lectures in their Guest Speaker Series, but virtual seating in the webinars is limited, so be sure to visit the Mythgard Institute Guest Speaker series site to register. Here’s more info (from the Mythgard site): David Brin will give his talk “Can Science Fiction Change th...
<reponame>King0987654/windows2000<filename>private/net/sockets/winsock2/dll/ws2_rp/msrlsp/dcatitem.h<gh_stars>10-100 /*++ Copyright c 1996 Intel Corporation All Rights Reserved Permission is granted to use, copy and distribute this software and its documentation for any purpose and w...
/** * This method removes all the assertions where the item specified is * a subject or an object. * * @param item the item related to the statements to remove. * @return all the removed statements. */ protected Set<Statement> removeAllAssertions(EARMARKItem item) { Set<Statement> result = new HashSet<St...
def crop_vardict_to_period(vardict,sdate,edate): for key in vardict: if (key != 'time_unit' and key != 'meta' and key != 'datetime'): vardict[key] = list(np.array(vardict[key])[ \ ( (np.array(vardict['datetime'])>=sdate) & (np.arra...
package ovh import ( "context" "fmt" "io/ioutil" "path/filepath" "strings" "time" "github.com/minectl/pkg/update" ovhsdk "github.com/dirien/ovh-go-sdk/pkg/sdk" "github.com/minectl/pkg/automation" "github.com/minectl/pkg/common" minctlTemplate "github.com/minectl/pkg/template" ) type OVHcloud struct { c...