content
stringlengths
10
4.9M
/** * Incremental version of the artist indexer * @param location */ private synchronized void incrementalIndexArtists(final String location) { final Song song = engine.getSongGivenLocationInMemoryVersion(location); final TimeSignature signature = song.getMetadata().getTimeSignature(); ...
import React from 'react'; import cx from 'clsx'; import Typography, { TypographyProps } from '@material-ui/core/Typography'; import { useStyleCtx } from './Info'; const InfoCaption = ({ className, children, ...props }: TypographyProps) => { const styles = useStyleCtx(); return ( <Typography className={c...
<reponame>dramdass/vm-operator-1 // Copyright (c) 2019-2020 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package contentsource_test import ( "context" "fmt" "net/http" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "sigs.k8s.io/controller-runtime/pkg/client" apiErrors "k8s....
<gh_stars>0 /** * */ package com.tlys.dic.dao; import java.util.List; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.criterion.Example; import org.hibernate.criterion.MatchMode; import org.springframework.orm.hibernate3.HibernateCallback; import org.springframework.ster...
//*********************************************************************************************** // // Copyright (c) 2005 Molecular Devices. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //****************************************************...
guidebookstreetcarstreet carchronicle A streetcar travels down St. Charles Avenue at night. Just before midnight on Sunday June 21, a 25-year-old woman was hit by a stray bullet, after she disembarked from the street car. (Chris Granger, NOLA.com | The Times-Picayune) By day, Brittany George works at a downtown hote...
//! Class and function declarations. use super::expr::assign_expr; use super::pat::pattern; use super::typescript::*; use crate::syntax::function::function_body; use crate::{SyntaxKind::*, *}; pub const BASE_METHOD_RECOVERY_SET: TokenSet = token_set![ T!['['], T![ident], T![yield], T![await], T![;], T!['}'], J...
package main //go:generate ./download-vibs.sh // OFF: sh -c "cd process ; GOARCH=${GOHOSTARCH} GOOS=${GOHOSTOS} go build -o ../process-content" // OFF: ./process-content //go:generate sh -c "cd content ; drpcli contents bundle ../content.go" //go:generate sh -c "cd content ; drpcli contents bundle ../content.yaml" //g...
package com.javayh.leetcode.math; /** * <p> * 来源:https://leetcode-cn.com/problems/reverse-integer/ * </p> * * @author Dylan * @version 1.0.0 * @since 2021-02-23 */ public class ReverseInteger { /** * 给你一个 32 位的有符号整数 x ,返回 x 中每位上的数字反转后的结果。 * 如果反转后整数超过 32 位的有符号整数的范围 [−231,  231 − 1] ,就返回 0。 ...
import heapq from collections import deque from enum import Enum import sys import math from _heapq import heappush, heappop import copy from test.support import _MemoryWatchdog BIG_NUM = 2000000000 HUGE_NUM = 99999999999999999 MOD = 1000000007 EPS = 0.000000001 sys.setrecursionlimit(100000) SIZE = 3001 MID = 1500 ...
<gh_stars>10-100 /* * 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 *...
/** * Execute the command, masrshall the results. */ @Override public void execute() { super.execute(); try { data = new Node(); data.name = name; data.op = "EQUALS"; data.operand = ""; data.operand_ordinal = ""; data.operand_type = ""; return; } catch (Exception err) { ...
Enhanced Heart Rate Prediction Model Using Damped Least-Squares Algorithm Monitoring a patient’s vital signs is considered one of the most challenging problems in telehealth systems, especially when patients reside in remote locations. Companies now use IoT devices such as wearable devices to participate in telehealth...
// RemovePkcs7 removes pkcs7 padding from previously padded byte array func RemovePkcs7(padded []byte, blockSize int) []byte { dataLen:=len(padded) paddingCount:=int(padded[dataLen-1]) if(paddingCount > blockSize || paddingCount <= 0) { return padded } padding := padded[dataLen-paddingCount : dataLen-1] for...
def load_ref_system(): return psr.make_system(""" H 1.8853 -0.0401 1.0854 C 1.2699 -0.0477 0.1772 H 1.5840 0.8007 -0.4449 H 1.5089 -0.9636 -0.3791 C -0.2033 0.0282 0.5345 H -0.4993 -0.8287 ...
package com.logginghub.logging.frontend.telemetry; import java.util.HashMap; import java.util.Map; import java.util.Timer; import java.util.concurrent.TimeUnit; import javax.swing.JPanel; import javax.swing.SwingUtilities; import javax.swing.border.TitledBorder; import net.miginfocom.swing.MigLayout; i...
Last week during my interview on the Nick Givas Radio Show, the host, himself a conservative Catholic, asserted that the Obama administration has offended American Catholics by mandating that health insurance plans cover contraception, and now has a duty to placate them by making whatever legislative changes they deman...
Influence of the Connection Mode for the Vibration Characteristics of a Plate-Shell Coupled System As direct connection of a floor and the cylindrical shell would reduce sound stealth performance of underwater vehicles, an indirect connection mode is proposed. To compare the effect of connection mode on vibration tran...
/* * @Author: tblgsn * @Date: 2021-10-27 13:54:13 * @Description: 有道翻译的头文件 * @FilePath: /Translator/src/youdao_translator.h */ #ifndef _TRANSLATOR_SRC_YOUDAO_TRANSLATOR_H_ #define _TRANSLATOR_SRC_YOUDAO_TRANSLATOR_H_ #include <string> #include "translator.h" class Youdao_translator : public Translator { private: ...
from django.conf.urls import url from main import views urlpatterns = [ url(r'^parse$', views.parse, name='parse'), url(r'^reading$', views.reading, name='reading'), ]
<reponame>aectaan/scd4x-rs use embedded_hal::blocking::delay::DelayMs; use hal::{Delay, I2cdev}; use linux_embedded_hal as hal; use scd4x::scd4x::Scd4x; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); let mut sensor = Scd4x::new(dev, Delay); sensor.wake_up(); sensor.stop_periodic_measuremen...
Does psychiatric disorder predict violent crime among released jail detainees? A six-year longitudinal study. The authors examined whether jail detainees with schizophrenia, major affective disorders, alcohol or drug use disorders, or psychotic symptoms (hallucinations and delusions) are arrested more often for violen...
// Options common to sources and targets void node_address(terminus &t, option<std::string> &addr, option<bool> &dynamic, option<bool> &anonymous) { if (dynamic.set && dynamic.value) { pn_terminus_set_dynamic(unwrap(t), true); pn_terminus_set_address(unwrap(t), NULL); } else if (anonymous.set &&...
def sel_perc_and_deg(self): self.slope_map.set('B')
package ua.com.fielden.platform.eql.metadata; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.apache.commons.lang.StringUtils; import ua.com.fielden.platform.eql.metadata.Table.ColumnData; public class PersistedEntity { private final String className; private final S...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/jni_string.h" #include "jni/MandolineActivity_jni.h" #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" #i...
‘Madman Liang’ – Liang Kai (梁楷) (c. 1140 – c. 1210) ‘Liang Kai treasured his ink as if it were gold, but when he got drunk, their drops could suddenly turn into a downpour.’ – Chan Monk Beijian, 1246 A master of spontaneous technique, Liang Kai, or ‘Madman Liang’, is often credited with the creation of the Chan or...
/** * Ejemplo de lectura de datos XML usando un parser tipo DOM */ public class ParserDOM { // REF: Tutorial: https://www.journaldev.com/898/read-xml-file-java-dom-parser public static void main(String[] args) { System.out.println("--- DOM (lectura) ---\n"); try { DocumentBuild...
/*! Reset a cligen buffer. That is, restart it from scratch. * @param[in] cb Cligen buffer */ void cbuf_reset(cbuf *cb) { cb->cb_strlen = 0; cb->cb_buffer[0] = '\0'; }
def split_by_rand_pct(self, valid_pct:float=0.2, seed:int=None)->'ItemLists': if valid_pct==0.: return self.split_none() if seed is not None: np.random.seed(seed) rand_idx = np.random.permutation(range_of(self)) cut = int(valid_pct * len(self)) return self.split_by_idx(rand_idx[:...
<reponame>xiangrumei/nbp<gh_stars>1-10 /* Copyright 2017 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 a...
He’s always been very serious and very driven. I’m not at all surprised that he’s reached his goal. I remember when he was a kid, and we’d watch Herning’s games on video, and he’d ask about the technical and tactical details and the small things that make a difference… – Frits Nielsen, Frans Nielsen’s Father Could the...
<reponame>clearlyspam23/JAnGLE package com.clearlyspam23.GLE.basic.properties; import com.clearlyspam23.GLE.PropertyDefinition; import com.clearlyspam23.GLE.basic.gui.properties.IntegerPanel; public class IntPropertyDefinition extends PropertyDefinition<IntegerPanel, IntPropertyTemplate> { @Override public...
/** * Copyright (c) 2019 Yodlee, Inc. All Rights Reserved. * * Licensed under the MIT License. See LICENSE file in the project root for license information. */ package com.yodlee.sdk.test.clientcredential; import org.databene.benerator.anno.Source; import org.testng.annotations.Test; import com.yodlee.sdk.api.Prov...
// // If a template pack, this is called to preload the driver map. We'll create a list of // string lists. The first string in each list is the original moniker in the template, // followed by any potential replacements in the current system. // tCIDLib::TBoolean TImportPackDlg::bLoadDriverMap() { const TCQCPac...
// Starts a background task for the Esp32WiFiManager. void Esp32WiFiManager::start_wifi_task() { LOG(INFO, "[WiFi] Starting WiFi Manager task"); os_thread_create(&wifiTaskHandle_, "Esp32WiFiMgr", WIFI_TASK_PRIORITY, WIFI_TASK_STACK_SIZE, wifi_manager_task, this); }
/** * Main application window. Creates a ControlPane (in a JScrollPane) and a * FractalPane with default parameters. * * @author Fred * */ public class FractalWindow extends JFrame { /* The aspect ratio of the fractal. Set to default Mandelbrot view * ((-2.5, -1), (1, 1)) */ privat...
def remove_equipment(self, index_to_remove, count=None, container_stack=[] ): item = self.equipment.get_item_by_index(index_to_remove, container_stack) ...
<filename>Godeps/_workspace/src/github.com/bmizerany/pat/mux_test.go package pat import ( "github.com/bmizerany/assert" "net/http" "net/http/httptest" "net/url" "sort" "strings" "testing" ) func TestPatMatch(t *testing.T) { params, ok := (&patHandler{"/", nil}).try("/") assert.Equal(t, true, ok) params, ok...
// CatchP catch panic to error func CatchP(f func()) (rerr error) { defer P2E(&rerr) f() return nil }
/** * Unbinds an external export prefix from an application name. * <p> * No error is thrown if the bound did not exist. * </p> * * @param externalExportPrefix an external export prefix (not null) * @param applicationName an application name (not null) * @return true if bindings were modified, false if ...
An Assessment of the Factors that Impact the Well-Being of Handicrafts in India Loss of any support system among the craftsmen community hurts their livelihood. Various organizations undertake efforts to stop this from happening. However, it is difficult to keep track of the situation among various crafts across the c...
// Retrieve vehicle type from database and parse json, builder is parsed to stop serialization error public static class VehicleEnricher extends RichMapFunction<Tuple5<Long, String, Float, Float, Integer>, String> { public VehicleEnricher() { } @Override public String map(Tuple5<Long...
text = input() space = text.index(' ') a = int(text[0: space]) b = int(text[space:]) ans = 0 while True: ans += 1 a *= 3 b *= 2 if a > b: break print(ans)
/** * Events based editing session. * * @author Ales Justin */ public class EventsEditingSession extends AbstractEditingSession implements IEditingSessionExt { private final EventsHandler handler; public EventsEditingSession(String designId, EventsHandler handler) { super(designId); this.h...
Should a patient be allowed to die? In considering the patient's right to a certain quality of dying, this essay outlines how the legal and ethical justifications for passive euthanasia depend on the doctrine of acts and omissions. It is suggested that this doctrine is untenable and that alternative justifications are...
package ubot import ( "strconv" "strings" "unicode" ) func ParseMsg(content string) []MsgEntity { r := make([]MsgEntity, 0, 4) var curData strings.Builder inBracket := false var curType string start, count := 0, 0 var i int var args = make([]string, 0, 1) var namedArgs map[string]string var isNamedArg boo...
use std::io::Read; use encoding::DecoderTrap::Replace; use encoding::Encoding; use encoding::all::WINDOWS_31J; use crate::dictionary::DictionaryWriter; use crate::errors::{AppError, AppResultU}; use crate::loader::Loader; use crate::parser::gene::parse_line; #[derive(Default)] pub struct GeneLoader(); impl Load...
// recursively identify each incorrect position during every shuffle void trytrytry(int i) { int j, save[52]; dfs = differents(card, correct[i]); if (dfs > i) return; if (!i) { if (errors < best) { best = errors; memcpy(ans, err, sizeof(err)); } return; } memc...
// Copyright © 2016-2019 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pu...
/** * Tracking state at a given absolute time (describes predicted HMD pose etc). Returned by {@link OVR#ovr_GetTrackingState}. * * <h3>Member documentation</h3> * * <ul> * <li>{@code HeadPose} &ndash; * Predicted head pose (and derivatives) at the requested absolute time. The look-ahead interval is equal to ...
def wait_for_sync(self, timeout=4): logging.info('Waiting for replica to catch up to primary') primary_rev = self.auth_service.client.json_request( '/auth/api/v1/server/state').body['replication_state']['auth_db_rev'] deadline = time.time() + timeout while time.time() < deadline: replica_r...
import json import os import re import requests import sys from .cli_utils import az_cli from azure.cli.core._environment import get_config_dir from azure.cli.core.commands import CliCommandType from azure.cli.core.util import get_file_json from datetime import datetime, timedelta from knack.log import get_logger from...
<gh_stars>1-10 '''---------------------------------------------------------------------------------------------- This moduile maintains any globals or constants used in the skill ----------------------------------------------------------------------------------------------''' debug = True # this can be overriden with ...
import React, { useState } from "react"; import { View, ViewProps, StyleSheet, Animated, ScrollView, Dimensions, Image } from "react-native"; const { width, height, scale } = Dimensions.get("window"); interface IProps extends ViewProps { } export const GestureAnimScreen = (props: IProps) => { const [xoffset, setXo...
<reponame>ybkimm/homepage package compilers type Compiler interface { ContentType() string Compile(src []byte) ([]byte, error) }
<reponame>Cinegy/Cinecoder.Samples class C_CinecoderErrorHandler : public ICC_ErrorHandler { STDMETHOD(QueryInterface)(REFIID riid, void**p) { if(p == 0) return E_POINTER; if(riid != IID_ICC_ErrorHandler && riid != IID_IUnknown) return E_NOINTERFACE; *p = this; return S_OK; ...
/* GDB routines for supporting auto-loaded scripts. Copyright (C) 2010-2017 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
def model_load( model_file, model ): model_wrapped = torch.nn.Module() model_wrapped.module = model model_dict = torch.load(model_file, map_location=lambda storage, loc: storage) model_wrapped.load_state_dict(model_dict['state_dict'])
<reponame>mcginty/netlink // SPDX-License-Identifier: MIT use crate::{ nlas::{NlaBuffer, NlasIterator}, DecodeError, }; pub const TC_HEADER_LEN: usize = 20; buffer!(TcMessageBuffer(TC_HEADER_LEN) { family: (u8, 0), pad1: (u8, 1), pad2: (u16, 2..4), index: (i32, 4..8), handle: (u32, 8..12)...
// Binds the actual this pointer of the method. // In the EE this always returns the runtime this pointer, // even in the case of anonymous methods EXPR * FUNCBREC::bindRealThis(BASENODE * tree, int flags) { LOCVARSYM * relevantThisPointer; relevantThisPointer = thisPointer; EXPR * thisExpr; if (!releva...
def run_saved_query(self, id): return self._find_resource(Wiql, ids=id)
/** * Decorate a WebDriver so that it can handle the certificate * error page that IE displays when navigating to a website * with https, but with an invalid certificate (e.g. self-signed). * See also e.g. http://stackoverflow.com/questions/7710619 */ public class WebDriverFactoryDecoratorHandleCertErrOnIE extends...
Lattice Dynamics and Ferroelectric Properties of SrTiO3 (100) Thin Film in a Nonempirical Model of Polarizable Ions The result of the lattice dynamics calculation of SrTiO3,thin film in framework Gordon-Kim model, accounting for polarizability of ions is presented. It was obtained that film, in contrast to bulk crysta...
<filename>main/plugins/org.talend.repository.generic/src/main/java/org/talend/repository/generic/ui/common/GenericWizardDialog.java // ============================================================================ // // Copyright (C) 2006-2021 Talend Inc. - www.talend.com // // This source code is available under agreeme...
<filename>resize-by-width.java import java.io.FileOutputStream; import java.net.URL; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; public class JavaRethumbExample { public static void main(String [] args) throws Exception { String paramOperation = "width"; int...
We are excited to extend our lead in standards-based Industrie 4.0 cloud solutions using the industrial interoperability standard OPC UA, with several new product announcements at SPS IPC Drives 2017 in Nuernberg, Europe’s leading industrial automation exhibition, which takes place next week. We continue to be the onl...
<reponame>beautytiger/brigade<filename>brig/cmd/brig/commands/rerun.go package commands import ( "errors" "io" "io/ioutil" "os" "github.com/spf13/cobra" "github.com/brigadecore/brigade/pkg/brigade" "github.com/brigadecore/brigade/pkg/decolorizer" "github.com/brigadecore/brigade/pkg/script" ) const rerunUsag...
#!/usr/bin/python3 import math, os, pickle import pandas as pd import numpy as np import sys sys.path.append("..") import utilities from style import style from prediction.neural_network import prediction def load_fit(clf, framework, direction, opt_epochs=500, train_epochs=1000, path=""): if clf == "lr": fit = ...
<reponame>sign-in-canada/OIDC-RP-Simulator<filename>src/rp-server.ts import express from 'express'; import createError from 'http-errors'; import { Issuer } from 'openid-client'; import expressSession from 'express-session'; import passport from 'passport'; import { oidc_clients, sessionSecret, ui_config } from '../con...
/// Clears the screen to the color specified using DMA3. /// /// Takes ~61,500 frames (~73% of VBlank) pub fn dma_clear_to(color: Color) { use crate::io::dma::DMA3; let color32 = color.0 as u32; let bulk_color = color32 << 16 | color32; unsafe { DMA3::fill32(&bulk_color, VRAM_BASE_USIZE as *mut u3...
package com.astronet.oms.entity; /** * @author: <NAME> * @date 3/2/21 5:09 PM */ import com.astronet.oms.entity.auditor.Auditable; import com.astronet.oms.enums.OfferStatusEnum; import lombok.*; import org.hibernate.annotations.DynamicInsert; import javax.persistence.*; import javax.validation.constraints.Min; i...
/** * Provides Service spec schema related implementation to {@link SpecSchemaValidator} * */ @Component public class HSpecSchemaValidator extends SpecSchemaValidator { private static final Logger logger = LoggerFactory.getLogger(HSpecSchemaValidator.class); @Override public HyscaleSpecType getReferenc...
As I pass through the E-gates in the passport hall at Changi airport the screen flashes up the personalized message: “Welcome Home Kenneth Andrew Jeyaretnam." Changi still wins awards as the world’s best airport (given by magazines to which Singapore state-owned companies like Singapore Airlines are major advertising c...
/********************************************************************** vector3.h - Handle 3D coordinates. Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc. Some portions Copyright (C) 2001-2006 by <NAME> Some portions Copyright (C) 2006 by <NAME> This file is part of the Open Babel project. For more infor...
<reponame>mpbarnwell/lightstep-tracer-cpp #include "event_base.h" #include <cassert> #include <sstream> #include <stdexcept> #include "common/utility.h" #include <event2/event.h> namespace lightstep { //------------------------------------------------------------------------------ // constructor //-----------------...
DYNAMIC IDENTIFICATION OF THE SANSEPOLCRO (ITALY) MUSEUM AND THE WALL SUPPORTING THE RESURRECTION OF CHRIST BY PIERO DELLA FRANCESCA Dynamic identification is considered a powerful technique for testing the conservation status of buildings as their natural frequencies, damping and modal shapes are directly related to ...
The Effects of 180 years of Aging on the Physical and Seismic Properties of Partially Saturated Sands Constraining how the physical properties and seismic responses of recently deposited sands change with time is important for understanding earthquake site response, subsurface fluid flow, and early stages of lithifica...
/** * Returns if the given class is instance of the given <code>type</code>, * whereby <code>type</code> may be a superclass. * * @param type the type this class should be a subclass of * @return <code>true</code> if this class is a subclass of * <code>type</code>, <code>false...
package cache import ( "errors" "sync" ) type IOTDevice struct { ID string `json:"id"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` } var defaultCache sync.Map func Set(d *IOTDevice) error { if d == nil { return errors.New("nil") } defaultCache.Store(d.ID, d) return nil ...
import json import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences import csv import numpy as np import matplotlib.pyplot as plt import os import random # with open("ExtractedTweets.csv", 'r', encoding='utf-8') as f: # d...
/** * Convert Blueprint's comparison operators to Titan's * * @param comp Blueprint's comparison operator * @return */ public static final Cmp convert(Query.Compare comp) { switch(comp) { case EQUAL: return EQUAL; case NOT_EQUAL: return NOT_EQUAL; cas...
/** * Helper method to check whether necessary permissions are provided * * @return boolean expression based on whether permissions are provided */ private boolean hasPermissions() { boolean containsPermission = true; if (getApplicationContext() != null && PERMISSIONS != null) { ...
/** * Gera o tempo de processamento em millisegundos apartir do tempo inicial * * @param aTempoInicio tempo em nanosegundos */ public static double gerarTempoProcessamento(long aTempoInicio) { long lTempoFinal = System.nanoTime(); double lTempoProcessamento = (lTempoFinal - aTempoInicio) / 1000000d; ...
def _mft(array, Na, Nb, m, inverse=False): if (inverse is True): sign = 1 else: sign = -1 coeff = m / (Na * Nb) x = np.linspace(-0.5, 0.5, Na, endpoint=False, dtype=np.double) y = x u = m * np.linspace(-0.5, 0.5, Nb, endpoint=False, dtype=np.double) v = u A1 = np.exp(sign...
Behind the twenty-first century Intifada Aufheben #10, September 2001 [german translation] Introduction As we go to press, the USA is making a serious effort to salvage the Oslo 'peace process', as a central part of their strategy to mobilize and impose a unity on the world bourgeoisie behind 'the war on terrorism'...
Fans may have noticed in the March 2015 solicitations from Marvel Comics that Darth Vader #3 features the introduction of a new character, complete with her supporting cast of Droids. The obvious question, with the old Expanded Universe bordering on its official expiration date when Marvel gets the rights to Star Wars...
<gh_stars>10-100 package com.cyfonly.thriftj.failover; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import org.apach...
/** * Extends the peer server client info to contain an avatar. */ public class BangClientInfo extends CrowdClientInfo { /** The player's unique identifier. */ public int playerId; /** This player's avatar (used for pardner purposes). */ public AvatarInfo avatar; }
/** * Adds all the groups from the provided set to the builder's set of groups. * * @param groups the groups to add * @return the builder */ public Builder addGroups(final Set<String> groups) { if (groups != null) { this.groups.addAll(groups); ...
export class AutomataNode { public colour: string; public tileColumnId: number; public tileRowId: number; }
import { RecordRepositoryClass } from '../repository/record'; import { IActiveRecord, Storable } from './base'; export declare class Record extends Storable { constructor(options: any, ...args: any[]); } export declare class SaveableRecord extends Record implements IActiveRecord { private readonly __debug...
Aaron Rodgers was chosen by his peers as the finest player in the land in NFL Network's "Top 100: Players of 2012." A recent report out of Green Bay suggests the quarterback might have some in-house competition. Bob McGinn of the Milwaukee Journal Sentinel tweeted Wednesday that Packers wideout Jordy Nelson has been t...
/** * Title: Graph * Version: * Copyright: Copyright (c) 2001 * Author: <NAME> * Company: Condast B.V. * Description: This package implements a number of * classes that implement graphs */ package org.aieonf.commons.graph; //J2SE imports import java.util.*; /**...
// since rocksDBStorage use put with TBB // this function set m_encryptHandler into the parallel field to impove the performance Status BasicRocksDB::PutWithLock( WriteBatch& batch, std::string const& key, std::string const& value, tbb::spin_mutex& mutex) { if (m_encryptHandler) { std::string encryp...
def GetFile(filename): try: ifp = open(filename) lines = ifp.readlines() ifp.close() except: print "Couldn't read '%s'" % filename sys.exit(1) dict = {} for line in lines: if ignore_whitespace: dict[string.strip(line)] = line else: ...
/** * NOTE: Based on LdapAuthenticationProvider originally written by Luke Taylor. * * This takes an LDAP token and prevents the DAO and LDAP authentcations from both being tried for a login * * An {@link org.springframework.security.providers.AuthenticationProvider} implementation that authenticates * a...
<reponame>XYPB/SpecVQGAN import torch import json import os from tqdm import tqdm ALL_FEAT_PATH = 'greatesthit/feature_r2plus1d_dim1024_15fps/feature_r2plus1d_dim1024_15fps.pkl' ALL_FEAT = torch.load(ALL_FEAT_PATH) print(ALL_FEAT.shape) meta = json.load(open('info_r2plus1d_dim1024_15fps.json', 'r')) assert len(meta[...
/** * Unzip the data to the target directory. * * @param data The compressed data to unzip. * * @throws IOException Thrown if there is problem during decompression */ public void unzip(final byte[] data) throws IOException { try (final ByteArrayInputStream bais = new ByteArrayInputStream(data)) { ...
/** * Borra una ubicacion con el id dado * @param id * @throws co.edu.uniandes.csw.boda.exceptions.BusinessLogicException */ public void removeUbicacion(Long id) throws BusinessLogicException { LOGGER.info("Inicia proceso de eliminar una Ubicacion"); if (persistence.f...