content
stringlengths
10
4.9M
The Representation of the “Other” in the Turkish TV Advertisements Turkey, which has a rich cultural mosaic, consists of the combination of many ‘Others’, including cultural, religious and ethnic the ‘Others’; the ‘Other’ as a gender role; as refugees, emigrants, etc. In such a multicultural climate, our research aim ...
<gh_stars>0 /* * Project Euler Solutions * Copyright (c) 2018 <NAME> * * LICENSE: * https://github.com/DominicRutkowski/Project-Euler/blob/master/LICENSE * * PROBLEM: * https://projecteuler.net/problem=14 */ package com.dominicrutkowski.projecteuler.solutions; import com.dominicrutkowski.projecteuler.Solutio...
def count_time_mask(array:np.ndarray)->bool: count_zero_columns = 0 for col_index in range(array.shape[1]): if array[0][col_index] == 0: if np.sum(array[:, col_index]) == 0: count_zero_columns += 1 return count_zero_columns
Effects of Radio-Frequency Sputtering Power on Low Temperature Formation of MoS₂ Thin Films on Soda-Lime Glass Substrates. For the realization of the economical and reliable fabrication process of molybdenum disulfide (MoS²) layers, MoS² thin films were directly formed a on soda-lime glass substrate by RF sputtering a...
/** * Returns a {@link CloudObjectTranslator} that produces a {@link CloudObject} that is of kind * "length_prefix". */ static CloudObjectTranslator<LengthPrefixCoder> lengthPrefix() { return new CloudObjectTranslator<LengthPrefixCoder>() { @Override public CloudObject toCloudObject(LengthPrefi...
// Exercises RunAsUser() with current user token. TEST(VistaUtilsTest, RunAsCurrentUserTest) { CString cmd_path = ConcatenatePath(app_util::GetSystemDir(), _T("cmd.exe")); EnclosePath(&cmd_path); CString exit_path = cmd_path + _T(" /c exit 702"); EXPECT_SUCCEEDED(vista::RunAsCurrentUser(exit_path, NULL, NULL));...
<gh_stars>100-1000 import os import re from typing import Dict import jinja2 def generate_config_from_template(template_path: str, config_path: str, remove_comments: bool = False, **template_kwargs: Dict[str, str]):...
L = input().split(" ") for i in range(len(L)): L[i] = int(L[i]) myiter = iter(L) k, n, w = [(myiter.__next__()) for i in range(3)] cost = 0 summe = 0 for i in range(1,w+1,1): summe += i * k if n >= summe: print("0") else: print(summe-n)
<gh_stars>1-10 package main import ( "fmt" "log" "net/http" "time" ) //给response添加cookie func setCookieHandle(w http.ResponseWriter, req *http.Request) { //设置到期时间 c1 := http.Cookie{ Name: "first_cookie", Value: "vanyar", HttpOnly: true, Expires: time.Now().Add(time.Hour), } //不设置到期时间,session型...
/** * Tupla con cuatro elementos. */ public static class T4<T,U,V,W> implements Serializable { /** * */ private static final long serialVersionUID = -1452077726779806296L; public final T _1; public final U _2; public final V _3; public final W _4; public T4(T t, U u, V v,...
// RemoveResource removes the resource of given kind to the set of owned objects func RemoveResource(name string, gk schema.GroupKind) { rc.mu.Lock() defer rc.mu.Unlock() delete(rc.resources[gk], name) }
/* write a lump of data at a specified offset */ static int tdb_write(TDB_CONTEXT *tdb, tdb_off offset, const char *buf, tdb_len len) { if (tdb_oob(tdb, offset + len) != 0) { return -1; } if (tdb->map_ptr) { memcpy(offset + (char *)tdb->map_ptr, buf, len); } else { if (lseek(tdb->fd, offset, SEEK_SET) != offs...
package io.virtualapp.abs.reflect; /** * @author Lody */ public class ReflectException extends RuntimeException { private static final long serialVersionUID = 663038727503637969L; public ReflectException(Throwable cause) { super(cause); } }
/** * Observe the duration of the already started timer with a specific name and timer ID. to start a timer, please use the startTimer method. * @param name * @param timerID * @return */ public static boolean observeDuration(String name, String timerID){ try { timersByName.g...
/// Note: Does not apply boundary conditions to the damping matrix itself pub fn compute_damping_matrix_into<D>( model: &dyn ElasticityModelParallel<f64, D>, u: DVectorSlice<f64>, stiffness_matrix: &mut CsrMatrix<f64>, damping_matrix: &mut CsrMatrix<f64>, mass_matrix: &CsrMatrix<f64>, mass_dampi...
t=int(input()) while 1: t=str(t) y=list(t) x=list(map(int,y)) p=sum(x) if p%4==0: z="".join(map(str,x)) print(z) break t=int(t)+1
//! get max params for this vertex inline void ScdVertexData::max_params(int &i, int &j, int &k) const { i = i_max(); j = j_max(); k = k_max(); }
// TestMultiRangeEmptyAfterTruncate exercises a code path in which a // multi-range request deals with a range without any active requests after // truncation. In that case, the request is skipped. func TestMultiRangeEmptyAfterTruncate(t *testing.T) { defer leaktest.AfterTest(t)() s, _ := startNoSplitServer(t) ctx :...
Complications of Distal Biceps Tendon Repairs Surgical repair is the most reliable method of restoring flexion and supination strength of the elbow and forearm after acute rupture of the distal biceps tendon. Although there may be small measurable deficits in power, endurance, and terminal forearm rotation when carefu...
/// Field is the field the filter is refering to and `value` is the passed filter. E.g. `where: { <field>: <value> }. /// `value` can be either a flat scalar (for shorthand filter notation) or an object (full filter syntax). fn extract_scalar_filters(field: &ScalarFieldRef, value: ParsedInputValue) -> QueryGraphBuilder...
package sommarengine.core; public interface Layer { void update(); Application getApplication(); }
/* * main.h * * Created on: 10/08/2011 * Author: bsr */ #ifndef MAIN_H_ #define MAIN_H_ #include <QtGui> #include <QWidget> #define VER "CPC Builder 0.2.0 (" __DATE__ ")" #endif /* MAIN_H_ */
/** * Rounds Person Days to the next higher Quarter of a Person Day. */ Double roundPersonDays(Double personDays) { Double roundedPersonDays = 0.0; roundedPersonDays = Math.ceil(personDays * 4.0) / 4.0; return roundedPersonDays; }
<filename>logs/get_nr_visits.py #!/usr/bin/env python import sys if (len(sys.argv) <= 1): sys.stderr.write("usage: " + sys.argv[0] + " <logfile ..>\n") sys.exit(1) nr_visits = 0 ips_already_seen = [] for logfile in sys.argv[1:]: print logfile fp = open(logfile, "r") line = fp.readline() while line: tokens...
// ConstructionCombine implements the /construction/combine endpoint. func (rs *RosettaService) ConstructionCombine(ctx context.Context, request *rtypes.ConstructionCombineRequest) (*rtypes.ConstructionCombineResponse, *rtypes.Error) { txn, err := decodeTxn(request.UnsignedTransaction) if err != nil { return nil, e...
. On the basis of experiences during 10 years with the cooperation of the departments of neurosurgery and maxillofacial surgery in the Province Hospital in Rzeszów the methods of surgical-orthopaedic management were assessed in craniofacial injuries. Out of 95 cases of craniofacial injuries treated in the years 1976-1...
package io.rebloom.client; import org.junit.Before; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.util.Pool; public class TestBase { private final Pool<Jedis> pool = new JedisPool(); protected final Client cl = new Client(pool); @Before public void clearD...
Locomotor depression by the opioid benzodiazepine tifluadom in mice. Several doses of tifluadom, an opioid benzodiazepine with affinity for opioid kappa receptors, were tested on analgesia and locomotor activity in two strains of mice, the C57BL/6 and the DBA/2. The analgesic properties of the compound were confirmed ...
def show_image_with_matches(self, result, save_to_disk = False): cv2.imshow("Matches between images", result) if save_to_disk: cv2.imwrite("matches_between_images.jpg", result) cv2.waitKey(0) cv2.destroyAllWindows()
def rescale(data): return data / 255.0
package com.pesna.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.pesna.Main; import com.pesna.entities.Bear; import com.pesna.entities.EnemyBot; import com.pesna.objects.ScreenObject; import java.util.LinkedList; public class ErrorScreen implements I...
/** * * @author michaelGRU * * Formatting with printf() */ public class StringFormating { public static void main(String[] args) { //format: %[flags][width][.precision]conversion //flags can 1. display numbers with comma separators (,) //2. Pad numbers with leading zeros (0) ...
Long term measurements from the M\'atra Gravitational and Geophysical Laboratory Summary of the long term data taking, related to one of the proposed next generation ground-based gravitational detector's location is presented here. Results of seismic and infrasound noise, electromagnetic attenuation and cosmic muon ra...
/// <reference path="../../typings/_custom.d.ts" /> import {bind, Inject, Injectable} from 'angular2/di'; import {GooglePlus} from './GooglePlusService'; interface IAccount { id:string; user:string; userName:string; profilePicture:string; } export class Account implements IAccount { id:string; user:string...
<filename>app/src/main/java/com/java/demo/widgets/BottomNavBar.java package com.java.demo.widgets; /* 自定义BottomNavigationBar */ import android.content.Context; import android.util.AttributeSet; import com.ashokvarma.bottomnavigation.BottomNavigationBar; import com.ashokvarma.bottomnavigation.BottomNavigationItem...
Finance Minister Mathias Cormann wants to help families get ahead, businesses to become more successful, while ensuring energy is reliable and as affordable as possible. But a ReachTEL poll reported in Fairfax Media of the electorates of Prime Minister Malcolm Turnbull and his predecessor Tony Abbott found many voters...
/** * Create a jid from pre-vetted and normalized parts. * * If length arguments are 0 and their associated strings are non-NULL, strings * are assumed to be null-terminated. */ static bool _create_jid_from_normalized_parts( jw_jid_ctx *ctx, const uint8_t *normal...
package view; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.util.TypedValue; import android.widget.ProgressBar; import com.hm.horizontalprogressbar.R; /** * Created by Administrat...
/** * Call it to do the parse work. */ public void parse() { Debugger.logI("Parse begin..."); if (null == mCursor) { Debugger.logW("Curosr is null."); return; } onParseStart(); try { while (mCursor.moveToNext()) { ++mP...
/* * Define an attribute, optionally with an interface (a locator list) * and a set of attribute-dependencies. * * Attribute dependencies MAY NOT be interface attributes. * * Since an empty locator list is logically different from "no interface", * all locator lists include a dummy head node, which we discard he...
<filename>img_demo.py import torch import cv2 from yolact import Yolact
# -*- coding:utf-8 -*- # filename: units/api.py # by スノル from locals import * from .has_unit import (BaseHasUnit, HasUnit, HasUnitComplex) from .bases import (Unit, genUnit) from .value_type import (ValueUnit, genValue) V = genValue
def send(self, address, amount, parent_window): dest_address = self.fetch_destination(address) if dest_address is None or not self.wallet.is_valid(dest_address): QMessageBox.warning(parent_window, _('Error'), _('Invalid Bitcoin Address') + ':\n' + address, _('OK')) ...
/* $Id: mode.c,v 1.28 2008/11/06 20:45:12 pekberg Exp $ ****************************************************************************** LibGGI Mode management. Copyright (C) 1997 <NAME> [<EMAIL>] Copyright (C) 1998 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of t...
/** * This controller contains an action to handle HTTP requests to the * application's home page. */ public class HomeController extends Controller { FormFactory formFactory; MessagesApi messages; @Inject public HomeController(FormFactory formFactory, MessagesApi messages) { super(); this.formFactory = fo...
/** * mtsdram - write controller register data * @dcr_host: A pointer to the DCR mapping. * @idcr_n: The indirect DCR register to write. * @value: The data to write. * * This routine writes the provided data to the controller's specified * indirect DCR register. */ static inline void mtsdram(const dcr_host_t *d...
/** * The handler used in health_check_type table. Performs health checks via URL's */ public class GlobalAWSHandler extends SurveillerHandler { private static final Logger logger = Logger.getLogger(GlobalAWSHandler.class); private static final String PARAM_KEY_URL = "URL"; /** * Get health check status via...
import { Table, Card } from 'antd'; import React, { ReactElement } from 'react'; const TableAmortizacion = ({ style = {} }): ReactElement => { const data = [ { cuota: '1', fecha: '5 de Febrero, 2020', capital: 32.15, interes: 0.15, balance: 5800.0 }, { cuota: '2', ...
#ifndef UNTITLED_PLAYER_H #define UNTITLED_PLAYER_H #include "../mesh/imageloader.h" #include "../mesh/objloader.h" #include <cmath> #include <iostream> #include <GL/glut.h> using namespace std; class Player { private: double radius, defaultRadius, halfRadius; double Bcolor; double x,y,z; bool underW...
n,x=map(int,input().split()) a,p=[1],[1] for i in range(n): a+=[a[i]*2+3]; p+=[p[i]*2+1] def f(n,x): return int(x>0) if n<1 else p[n-1]+1+f(n-1,x-2-a[n-1]) if x>a[n]//2 else f(n-1,x-1) print(f(n,x))
/** * If the file is determined to be already minified (by checking the file basename for a ".min" or "-min" suffix), * then it will copy the file to the destination. * * @param sourceFile Source file * @param destDir The output directory where the minified code should end up ...
<gh_stars>0 #pragma once //STD //LIBS //SELF #include "Window.hpp" #include "Renderer.hpp" namespace paperbag { class GUI { public: GUI(Window* window, Renderer* renderer); ~GUI(); void input(SDL_Event& event); void update(); void render(); private: Window* window; Renderer* renderer;...
// Acknowledge acknowledges a global alert. // // See more: https://docs.opsmanager.mongodb.com/current/reference/api/global-alerts/ func (s *GlobalAlertsServiceOp) Acknowledge(ctx context.Context, alertID string, body *atlas.AcknowledgeRequest) (*GlobalAlert, *Response, error) { if alertID == "" { return nil, nil, ...
import { KeyValue } from './key-value.interface'; export interface Template { path: string; var: KeyValue[]; }
<reponame>matthieu-m/stysh //! Syntactic pass, aka parsing. //! //! Expression parser. use std::{cell, fmt}; use crate::basic::mem; use crate::basic::com::{Range, Span, Store, MultiStore}; use crate::model::tt; use crate::model::ast::*; use super::{gen, typ}; use super::com::RawParser; pub fn parse_expression<'a, '...
/** * @brief Sends CAN messages from server to an in-memory FIFO queue */ int fixtureServerSendCAN(const uint32_t arbitration_id, const uint8_t *data, const uint8_t size) { assert(size <= 8); assert(g_clientRecvQueueIdx < CAN_MESSAGE_QUEUE_SIZE); struct CANMessage *msg = &g_clientRecvQueue[g_clientRecvQue...
/** Called when an "event" happens on an already-connected socket. This can only be an error or EOF. */ static void error_cb(struct bufferevent *bev, short what, void *arg) { conn_t *conn = arg; int errcode = EVUTIL_SOCKET_ERROR(); if (what & BEV_EVENT_ERROR) { log_debug("%s for %s: what=0x%04x errno=%d...
// Mounted checks if the given path is mounted as the fs type //Solaris supports only ZFS for now func Mounted(fsType FsMagic, mountPath string) (bool, error) { cs := C.CString(filepath.Dir(mountPath)) defer C.free(unsafe.Pointer(cs)) buf := C.getstatfs(cs) defer C.free(unsafe.Pointer(buf)) if (buf.f_basetype[0] !...
<reponame>henriquegemignani/urde #pragma once #include <string_view> #include "Runtime/GCNTypes.hpp" #include "Runtime/World/CActor.hpp" #include <zeus/CAABox.hpp> namespace urde { class CScriptAiJumpPoint : public CActor { private: float xe8_apex; zeus::CAABox xec_touchBounds; bool x108_24_inUse : 1 = false;...
package com.glmis.service.personnel; import com.glmis.domain.personnel.YesOrNo; import com.glmis.service.BasicService; import org.springframework.stereotype.Service; /** * Created by dell on 2016/11/17. */ @Service public class YesOrNoService extends BasicService<YesOrNo,Long>{ }
def _reset_gensym(): global _gensym_counter _gensym_counter = 0
#include <stdio.h> #include <string.h> #include "ipv6text.h" #ifdef _WIN32 #ifndef snprintf #define snprintf _snprintf #endif #endif void IPv6IPToString( char *pszOutText, const unsigned char *ip ) { // Find the longest run of consecutive zero quads. // If there's a tie, we want the leftmost one. int idxLongestRu...
President Donald Trump boards Air Force One at Chennault International Airport in Lake Charles, La., following a visit with those helping with the impacted of Hurricane Harvey, Saturday, Sept. 2, 2017. AP Photo/Susan Walsh President Donald Trump issued a set of tweets Sunday morning attacking North Korea after the coun...
<gh_stars>1-10 // AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from foo_listener.djinni #pragma once // python_cdef_ignore #include <stdbool.h> // python_cdef_ignore #include <stdbool.h> // python_cdef_ignore #include <stdint.h> // python_cdef_ignore struct DjinniWrapperFooListener; void foo...
<gh_stars>0 /* See LICENSE for license details */ /* */ #include <appl_status.h> #include <appl_types.h> #include <object/appl_object.h> #include <options/appl_options.h> #include <misc/appl_unused.h> #if defined APPL_DEBUG #include <debug/appl_debug_handle.h> #endif /* #if defined APPL_DEBUG */ // // // enum ...
/** * Initializes and creates an account corresponding to the specified * accountProperties and registers the resulting ProtocolProvider in the * <tt>context</tt> BundleContext parameter. This method has a persistent * effect. Once created the resulting account will remain installed until * rem...
def shorten(thelist, maxlen, shorten): if len(thelist) <= maxlen: return thelist if shorten == "right": return thelist[0:maxlen] elif shorten == "left": return thelist[-maxlen-1:-1] elif shorten == "both": excess = len(thelist) - maxlen; left = int(excess/2) ...
#!/usr/bin/env python # Apply a gaussian blur to a smearing matrix # By jba 09/18/18 # Usage: ./apply_blur.py <path-to-smearing-file.dat> <path-to-output-smearing-file.dat> [opt. blur size] # After running, the code will plot the mean and std dev. You can use this to confirm that you haven't # blurred too much. If th...
Back in September, TFB reader Brandon took us through the history and variations of Russian Kalashnikov magazine patterns in a two part article that’s well worth reading if you haven’t already. Having said that, if you don’t have the patience for articles or if you can’t get enough on AK magazine patterns, Ian McCollum...
Reconstruction of Protein-Protein Interaction Network of Insulin Signaling in Homo Sapiens Diabetes is one of the most prevalent diseases in the world. Type 1 diabetes is characterized by the failure of synthesizing and secreting of insulin because of destroyed pancreatic β-cells. Type 2 diabetes, on the other hand, i...
/** * Store information about read of given table. * * @param tableName read table */ public void addReadTable(String tableName) { if (!modifiedTables.contains(tableName.toUpperCase())) { readTables.add(tableName.toUpperCase()); } }
<filename>src/game_state/game_state.rs #[cfg(feature = "serde")] use serde::{Serialize, Deserialize}; use std::collections::hash_map::DefaultHasher; use std::fs::File; use std::hash::{Hash, Hasher}; use std::io::Read; use std::path::Path; use crate::{Cascades, Foundations, Freecells}; pub type GameStateId = u64; //...
// String converts planResults to a string func (p *planResults) String() string { s := "" for _, r := range p.ranges { if r.firstPort == r.lastPort { s += fmt.Sprintf("%d\t", r.firstPort) } else { s += fmt.Sprintf("%d:%d\t", r.firstPort, r.lastPort) } switch r.result { case planResultPass: s += fm...
Here's a trivia question: What state has installed more solar panels than any other except California? If you said New Jersey, your solar-energy IQ is brilliant. And if you know why several thousand huge mirrors are splayed across the Mojave Desert in California, consider yourself a solar energy genius, CBS News corre...
import sys import logging def setup_logging(): # Setup logging format logfmt = ( "[%(asctime)s] %(levelname)s - %(name)s (%(filename)s:%(lineno)d): %(message)s" ) datefmt = "%d/%m/%Y %H:%M:%S" # Setup log levels by module # asyncio logging.getLogger("asyncio").setLevel(logging.WAR...
The British Beer and Pub Association (BBPA) has revealed that 893 pubs were forced to call last orders for good in 2009. The statistics show that key services are disappearing from village life "at an alarming rate", according to the National Housing Federation. About 400 village shops closed in 2008 while rural scho...
Clinical Reasoning in Musculoskeletal Practice: Students’ Conceptualizations Background: Qualitative research on physical therapist students’ conceptualizations of clinical reasoning (CR) is sparse. Objectives: The purpose of this study was to explore CR from students’ perspectives. Design: For this study, a qualitati...
// CountCommits returns the number of commits in the OpenBuildService // repository saved at path for email. // It returns ErrNoChangesFileFound error in case it couldnt locate any // .changes file And forwards other errors that might occur. func CountCommits(path string, email string) (count int, err error) { var cha...
/** * Synchronous call from the RIL to us to return current radio state. * RADIO_STATE_UNAVAILABLE should be the initial state. */ static RIL_RadioState currentState() { return sState; }
/** * check local version * * @param expectedVersion * @return */ public Tuple<Boolean, Long> checkLocalCache(long expectedVersion) { final AtomicLong version = new AtomicLong(0); try { retryer.call( () -> { clientManagerAddressRepository.wakeup(); fetchCli...
import express from "express"; import { ImageUpload, PDFUpload, VideoUpload } from "./../../middlewares/fileStorage"; import { isAuth } from "./../../middlewares/isAuth"; import { uploadMultipleImgs, uploadMultipleVids, uploadSingleImg, uploadSinglePdf, uploadSingleVid } from "./controll...
/// A bridge that forwards all requests from certain TCP port to gpg-agent on Windows. /// /// `to_path` should point to the path of gnupg UDS. pub async fn bridge(from_addr: String, to_path: Option<String>) -> io::Result<()> { // Attempt to setup gpg-agent if it's not up yet. let _ = ping_gpg_agent().await; ...
def bounds_args(self): min_lat = self.lat_origin - ((self.nlats -1) * self['cellsize']) max_lon = self.lon_origin + ((self.nlons-1) * self['cellsize']) return (self.lat_origin,self.lon_origin,min_lat,max_lon)
package org.gradle.profiler.jfr; import org.gradle.profiler.InstrumentingProfiler; import org.gradle.profiler.JvmArgsCalculator; import org.gradle.profiler.ScenarioSettings; import java.io.File; import java.util.function.Consumer; public class JfrProfiler extends InstrumentingProfiler { private final JFRArgs jfr...
<filename>deps.ts export { soxa } from "https://deno.land/x/soxa@1.4/mod.ts";
// WithUpdateCallback defines the callback called upon recovering a message // from the log. func WithUpdateCallback(cb UpdateCallback) ProcessorOption { return func(o *poptions, gg *GroupGraph) { o.updateCallback = cb } }
def testBuildCpuUsageFilter(self): instances_filter = gcp_mocks.FAKE_MONITORING._BuildCpuUsageFilter( ['0000000000000000001', '0000000000000000002']) self.assertEqual( instances_filter, ('metric.type = "compute.googleapis.com/instance/' 'cpu/utilization" AND (resource.label.instance_id =...
1960 live album by Bob Newhart Professional ratings Review scores Source Rating Allmusic [2] The Button-Down Mind of Bob Newhart is a 1960 live album by comedian Bob Newhart. Recorded at the Tidelands Club in Houston, Texas, the debut album by Newhart was number one on the Billboard pop album chart and won Album of t...
/** * Created by lon on 12/3/16. */ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {EqualValidatorDirective} from '../services/equal-validator.directive'; import {FrontRoutingModule} from './...
package br.com.splessons.lesson12.security.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationExce...
/** * Test of getInssueDate method, of class Invoice. */ @Test public void testGetIssueDate() { String expected = "30/12/2019"; invoice.setIssueDate(expected); String obtained = invoice.getIssueDate(); assertEquals(expected, obtained); }
// FetchTxByShaList returns the most recent tx of the name fully spent or not func (db *LevelDb) FetchTxByShaList(txShaList []*btcwire.ShaHash) []*btcdb.TxListReply { db.dbLock.Lock() defer db.dbLock.Unlock() replies := make([]*btcdb.TxListReply, len(txShaList)) for i, txsha := range txShaList { tx, blockSha, hei...
/** * In addition to the normal base implementation, the <code>GameLoop</code> performs registered action at the required * time and tracks some detailed metrics. */ @Override protected void process() { if (this.getTimeScale() > 0) { super.process(); this.executeTimedActions(); } t...
/** * Pax Exam test wrapper which starts (and stops) an etcd test server via * launcher. We need to do this because jetcd-launcher uses Testcontainers, * which cannot run inside OSGi (due to the use of TCL loadClass(String) in * DockerClientProviderStrategy). And even if we were to use the launcher only * in the c...
<reponame>TheNexusCity/thoth /* eslint-disable no-console */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-nocheck import TopicDetection from 'topic-detection' let detector: TopicDetection export async function classifyText(input: any) { if (!detector || detector === undefined) { await in...
Dr Pavel Kravchenko holds a PhD in technical sciences and is the founder of Distributed Lab. In this opinion piece, the first of a two-part series, Kravchenko argues that tokenization of assets using blockchains will have more profound effects on the world’s markets than simply reducing back-office record-keeping cost...
<reponame>Chise1/fast-tmp2<filename>{{cookiecutter.project_slug}}/main.py # -*- encoding: utf-8 -*- """ @File : main.py @Time : 2021/2/26 9:26 @Author : chise @Email : <EMAIL> @Software: PyCharm @info : """ if __name__ == '__main__': print("Hello CookieCuttter")
// Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. func (o ClusterMasterInstanceFleetInstanceTypeConfigOutput) EbsConfigs() ClusterMasterInstanceFleetInstanceTypeConfigEbsConfigArrayOutput { return o.ApplyT(func(v ClusterMasterInstanceFleetInstanceTypeConfig) []C...
import sys import os.path import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt import pylab __mnist__ = input_data.read_data_sets("MNIST_data/", one_hot=True) def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0...
import { NodeDef } from "node-red"; declare namespace statusChart { interface appConfigBase { confsel: string; item: string; label: string; params: any; group: any; templateScope: string; width: number; height: number; tab: string;...