content
stringlengths
10
4.9M
def notify_user_interaction_required(self, user_name, rp_id): if user_name: request_string = "\nAuthentication request for user: {0}".format( user_name) else: request_string = "\nAuthentication request" print(request_string) print("From service: {0...
def put_pixel(self, x: int, y: int, color): qcolor = _to_qcolor(color) self._image.setPixel(x, y, qcolor.rgba()) self._mask.setPixel(x, y, MASK_BLACK.rgba()) self._updated()
/** * Validate and parse a hostname or hostname/port * * If port_out is not null, accepts a port as well. This is * stored in *port_out. If no port is given, a 0 is stored. * If an invalid port is given, -1 is stored. * * If the hostname is invalid, null is returned and no value * is written to *port_out. * *...
<reponame>tsigalko18/apogen package abstractdt; /** * Class Edge represents a state connection as it is * retrieved by Crawljax * @author tsigalko18 * */ public class Edge { private String from, to, text, via, element, event; /** * default constructor for the Edge class * @param from * @param to */ p...
def reissue(old_certificate_name, notify, commit): if commit: print("[!] Running in COMMIT mode.") print("[+] Starting certificate re-issuance.") status = FAILURE_METRIC_STATUS try: old_cert = validate_certificate(old_certificate_name) if not old_cert: for certificate...
def zonalStats(rast, zones, **runivarargs): if 'flags' in runivarargs: runivarargs['flags'] += 't' else: runivarargs['flags'] = 't' lines = grass.read_command( 'r.univar', map=rast, zones=zones, **runivarargs).split('\n') stats = np.array([tuple(s.split('|')) for s in lines[1:-1]...
def edi_resample(src, w, h, edi=None, kernel='spline16', a1=None, a2=None, sx=None, sy=None, invks=False, taps=4, invkstaps=4, **kwargs): name = 'edi_resample' valid_edis = { 'eedi2': ['mthresh', 'lthresh', 'vthresh', 'estr', 'dstr', 'maxd', 'map', 'nt', 'pp'], 'eedi3': ['alpha'...
#include "516_input.h" #define DELAY(X) {unsigned int _i = X; while(_i--);} /* description: get the pressed key and stores the result into the given variable and return the result of the read reaction. parameters: record <unsigned char *>: the address of the variable to store the key code; return: ...
/* * Copyright 2020 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrD3DGpuDescriptorTableManager_DEFINED #define GrD3DGpuDescriptorTableManager_DEFINED #include "src/gpu/d3d/GrD3DDescriptorHeap.h" class GrD3DCommandList; class GrD3D...
{-| Module : Calculi Description : Definitions of sequent calculi for use in logix. Copyright : (c) <NAME>, 2017 License : BSD3 Maintainer : <EMAIL> Stability : experimental This module is where we define the actual Calculi for logix. It can be edited to customize the software. -} module Calculi ( ca...
// Set the current frame of animation // @param newFrame The frame to jump to in the animation // todo: check bounds on newFrame bool ar3DS::setFrame(int newFrame) { _currentFrame = newFrame; return true; }
<filename>KERN/nke/sctp_nke/Leopard/netinet/sctp_lock_windows.h /*- * Copyright (c) 2001-2006, Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2012, by <NAME>. All rights reserved. * Copyright (c) 2008-2012, by <NAME>. All rights reserved. * Copyright (c) 2008-2012, by <NAME>. All rights reserved. * ...
import tensorflow as tf """tf.conj(x, name=None) 功能:返回x的共轭复数。""" a = tf.constant([1 + 2j, 2 - 3j]) z = tf.conj(a) sess = tf.Session() print(sess.run(z)) sess.close() # z==>[1.-2.j 2.+3.j]
def remove_context_menu_items(self): context_menu = component.get('MenuBar').torrentmenu context_menu.remove(self.cmenu_item_toggle) context_menu.remove(self.cmenu_item_run) context_menu.remove(self.cmenu_item_run_all) context_menu.remove(self.sep_1) context_menu.remove(s...
// RenderPresetters render preset config with current context // and save into context func RenderPresetters(ctx *Context, pcs []types.PresetConfig) error { ps := make([]Presetter, 0, len(pcs)) for _, pc := range pcs { p := Presetter{ Name: pc.Name, } if len(pc.Args) != 0 { p.Args = map[string]string{} ...
/// Notifies all watchers of a change fn notify_all<T>(shared: &Shared<T>) { let watchers = shared.watchers.lock().unwrap(); for watcher in watchers.iter() { // Notify the task watcher.waker.wake(); } }
// FileContractHistory returns the set of revisions made to the specified // contract. func (w *SeedWallet) FileContractHistory(id types.FileContractID) []FileContract { w.mu.Lock() defer w.mu.Unlock() return w.store.FileContractHistory(id) }
def files_to_clean(limit=7): for dirf in ('store','stats'): cache_f = os.path.join(CACHE_ROOT, dirf) now = datetime.datetime.now() for root, dirs, files in os.walk(cache_f): for fpath in files: fullfpath = os.path.join(root, fpath) time_m = datetim...
/** * Calculates the enharmonic equivalent and returns it as a note object. * Returns null if there is no enharmonic for the given note. * * @param direction The higher or lower enharmonic. * @param note The note used for calculating. * @return The enharmonic note object or null. */ p...
/** * Non-persistent enum-like composite entity that is used in CentreUpdaterTest for testing centre diff serialisation; used as property value in {@link TgCentreDiffSerialisation}. * * @author TG Team * */ @KeyType(DynamicEntityKey.class) @KeyTitle("Key") @CompanionObject(ITgCentreDiffSerialisationNonPersistentCo...
<gh_stars>0 package jp.sinya.swipeback.demo.library3.core.debug; /** * 为了调试时 查看栈视图 * Created by YoKeyword on 16/2/21. */ @Deprecated public class DebugFragmentRecord { // public CharSequence fragmentName; // public List<DebugFragmentRecord> childFragmentRecord; // // public DebugFragmentRecord(CharSequence...
import { composeModules } from "microinject"; import ConfigModule from "./config/module"; import WutWotModule from "./services/WutWot/module"; import ReplModule from "./services/Repl/module"; export default composeModules(ConfigModule, WutWotModule, ReplModule);
#!/usr/bin/python # FSEvents Parser Python Script # ------------------------------------------------------ # Parse FSEvent records from allocated fsevent files and carved gzip files. # Outputs parsed information to a tab delimited txt file and SQLite database. # Errors and exceptions are recorded in the exceptio...
Biography The English rock trio Muse consists of guitarist/vocalist Matthew Bellamy, bassist Chris Wolstenholme, and drummer Dominic Howard. Bored by the sleepy life provided by their hometown of Teignmouth, Devon, the three friends began playing music together. They started the first incarnation of their band when th...
/** * Serializer/Deserializer for ulong(csharp)'s counterpart BigInteger. * Note that only value below between [0, 18446744073709551615(max ulong value in csharp)] is supported. * * Created by marsqing on 21/03/2017. */ @SuppressWarnings("serial") public class BigIntegerCustomizationFactory implements TypeCustomiz...
Animals don't handle stress well. I'm not talking about acute stressors, the predator charging at you through the brush, you run away and it's over. We handle that stress very well indeed. But severe stress, losing a job, a divorce, a death in the family, these can really wear us down. Severe life stressors can not onl...
<gh_stars>1-10 """ Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically """ import functools import inspect import warnings def deprecated(reason): """ This is a decorator which can be used to mark functions as deprecated. It will result in a w...
/** * Read different types of input parameters and set them in PreparedStatement * @param i index of the parameter * @param ps associated ps * @param drdaType drda type of the parameter * * @exception DRDAProtocolException, SQLException */ private void readAndSetExtParam( int i, DRDAStatement stmt, ...
import React, { useState, useEffect, useRef } from "react"; import { useParams } from "react-router-dom"; import SubmissionListItem from "../components/SubmissionListItem"; import Submission from "../models/Submission"; import request from "../helpers/request"; import CodeMirror, { EditorFromTextArea } from "codemirror...
/** * An analog to * {@link #reduceSuccessions(Function, BiFunction, Duration)} * to use outside of JavaFX application thread. * * @param initialTransformation function to transform a single event * from this stream to an event that can be emitted from the returned * stream. * @p...
/*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ import { Equatable } from './Stubs'; /** An immutable inclusive interval a..b */ export declare class Interval implements Equatable { a: number;...
/// if numeric - returns numeric value, else return: InvalidNumericKeyCode ( -1 ) [[nodiscard]] inline auto toNumeric(KeyCode key) -> int { switch (key) { case KeyCode::KEY_0: return 0; case KeyCode::KEY_1: return 1; case KeyCode::KEY_2: return 2; ...
// Find position of next character which is not whitespace func nextToken(data []byte) int { for i, c := range data { switch c { case ' ', '\n', '\r', '\t': continue default: return i } } return -1 }
// Added this code from Image, as it has less dependencies here. // Warning: duplicate code. inline const char* NameForTextureFormat(ETEX_Format ETF) { switch (ETF) { case eTF_Unknown: return "Unknown"; case eTF_R8G8B8A8S: return "R8G8B8A8S"; case eTF_...
import java.io.*; import java.util.*; public class Main { static StreamTokenizer in; static PrintWriter out; static void solve(StreamTokenizer in, PrintWriter out) throws Exception{ int a = nextInt(); int b = nextInt(); int n = nextInt(); int i = 1; whi...
def make_position_dialog(self, type_='object'): min_x = 0.35 min_y = 0.18 w, h = (0.09, 0.18) if type_ == 'object': a = 0.045 else: a = 0.06 rax = plt.axes([min_x, min_y + a - h, w, h], axisbg=self.radio_boxcolor) rax...
<reponame>wan-nyan-wan/xv6_for_internet_os #include "types.h" #include "param.h" #include "memlayout.h" #include "arch/riscv.h" #include "spinlock.h" #include "proc.h" #include "defs.h" #include "memlayout.h" #include "pci.h" #define MAX_PCI_DEVICE_NUM 32 struct pci_dev_raw { uint32_t id; volatile uint32_...
<gh_stars>10-100 /* ** resolver.h ** ** name resolver library header ** */ #ifndef __RESOLVER_H #define __RESOLVER_H /* ** resolver_lookup ** ** resolves a hosts name from it's ip address ** or ** resolves an ip address from it's host name ** ** returns a pointer to buff, or NULL if an error occured ** */ #ifdef _m...
def mock_device_tracker_conf(): devices = [] async def mock_update_config(path, id, entity): devices.append(entity) with patch( "openpeerpower.components.device_tracker.legacy" ".DeviceTracker.async_update_config", side_effect=mock_update_config, ), patch( "openpe...
Visualization and Detection of Changes in Brain States Using t-SNE Dimensionality reduction techniques are used primarily for visualization purposes. With sophisticated visualization techniques like t-distributed Stochastic Neighbor Embedding (t-SNE), we can preserve the original neighborhood information even in lower...
// dockHeight returns the height of the entire dock area func (o *output) dockHeight(area dockArea) uint16 { var height uint16 for _, f := range o.dockAreas[area] { height += f.height } return height }
#include<stdio.h> int pk(int x,int y) { int s1,s2,d1,d2; s1=x/10; s2=x%10; d1=y/10; d2=y%10; if(s1==d2 && s2==d1) return 1; return 0; } void bilmemne(int x,int y) { char s1,s2,d1,d2; s1=x/10; s2=x%10; d1=y/10; d2=y%10; printf("%d%d:%d%d\n",s1,s2,d1,d2); } int main () { char s1,s2,c,d1,d2; int i,s,d; s...
package ch.uzh.ifi.seal.soprafs20.rest.dto.move; import ch.uzh.ifi.seal.soprafs20.entity.game.cards.DevelopmentCard; public class CardMoveDTO extends MoveDTO { private DevelopmentCard developmentCard; public DevelopmentCard getDevelopmentCard() { return developmentCard; } public void setDev...
#include<iostream> #include<vector> #include<string> #include<cctype> using namespace std; #define MAX 72 #define INV (-1) struct Dig{ vector<char> s; void push( char c ){ s.push_back( c ); } void pop(){ s.pop_back(); } void simplify(){ while( true ){ if( s.size() == 1 ) break; if( s[0] == '0' )...
package earth.eu.jtzipi.jbat.ui; import earth.eu.jtzipi.jbat.ui.node.PathNodeFX; import earth.eu.jtzipi.jbat.ui.task.SearchTask; import earth.eu.jtzipi.modules.node.path.IPathNode; import javafx.beans.property.BooleanProperty; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleBooleanPrope...
/** * Encodes this {@code DnsMessage} in binary format. * * @return bytes */ final byte[] encode() { try (final MessageOutputStream output = new MessageOutputStream()) { output.writeShort((short) 0); output.writeShort(flags); output.writeShort((short) ques...
def save_feed(user, name, new): feed = DmsFeed() feed.name = name feed.title = new['title'] feed.description = new['text'] feed.link = new['url_more'] feed.general_mode = new['section'] feed.owner = User.objects.get(username=user) feed.is_deleted = False feed.la...
Ryan Kerrigan celebrates. (Patrick Smith/Getty Images) Ryan Kerrigan's postgame persona is usually "relaxed manila folder." He's among the Redskins' most popular players but also among their least expressive, at least in front of cameras. Late Sunday night, though, here came Kerrigan striding through the locker room, ...
Analysis of dielectric Rod Antenna with an infinite ground plane The Analysis of dielectric Rod Antenna integrated with Dual mode reciprocal phase shifter for phased array application has been presented. The analysis of the structure has been presented as the dielectric rod antenna structure used in phased array appli...
Effects of lossy, layered filler particles on the bulk permittivity of a composite material The ability to control the frequency at which a dielectric material exhibits maximum loss (the relaxation frequency) is of interest in telecommunications and radar absorption. A theoretical investigation of the behaviour of the...
#include<stdio.h> int gcd(int a,int b) { if(b==0) return a; return (gcd(b,a%b)); } int main() { int maxm=-1,gcdval,i,t; scanf("%d",&t); int d[t]; for(i=0;i<t;i++) { scanf("%d",&d[i]); if(d[i]>maxm) maxm=d[i]; } gcdval=d[0]; for(i=1;i<t;i++) gcdval=gcd(gcdval,d[i]); if((maxm/gcdval-t)%2==0)...
Adaptive Pricing in Insurance: Generalized Linear Models and Gaussian Process Regression Approaches We study the application of dynamic pricing to insurance. We view this as an online revenue management problem where the insurance company looks to set prices to optimize the long-run revenue from selling a new insuranc...
/** * Populates subcomponent solution nodes for the highest level security GSN and also creates the * lower threat-level fragments * * @param subCompId * @param cutsets * @param acceptableProb * @param cyberReqId * @return * @throws IOException */ public GsnNode populat...
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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...
//----------------------------------------------------------------------------- // // AIFFBehavior::getRealSize(...) // // Purpose: Validate the passed in size value, identify the valid size if the // passed in isn't valid and return the valid size. // Throw an exception if the passed in size isn't valid and the...
/** * Contains integration tests (interaction with the Model) for {@code SearchCommand}. */ public class SearchCommandTest { private Model model = new ModelManager(getTypicalKanBugTracker(), new UserPrefs()); private Model expectedModel = new ModelManager(getTypicalKanBugTracker(), new UserPrefs()); @Tes...
/** * The parse() method is the parser of the formatter input file. It is * called at the beginning of the IO format definition file, and it consumes * the entire input file while building an internal representation of the * I/O format * * @param args * - file name to parse expected in args[0]...
def inverse_transform_lemmas(self, predictions): pred_lemmas = [] if self.include_lemma == 'generate': for pred in predictions: pred_lem = '' for positions in pred: top_idx = np.argmax(positions) c = self.lemma_char_idx...
<gh_stars>0 package resourcequota import ( "errors" "github.com/kubernetes/dashboard/src/app/backend/api" "github.com/kubernetes/dashboard/src/app/backend/resource/dataselect" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8sClient "k8s.io/client-go...
<filename>remote/getCert/getCert.go package main import ( "fmt" "gopkg.in/alecthomas/kingpin.v2" "os" "os/exec" "strings" ) const version = "0.1.0" func main() { app := kingpin.New( "remotePlugin", "remote part of the wattsPluginMyproxySSH", ) wattsUID := app.Arg("WaTTS User ID", "").Required().String() ...
//! Реализует простую сериализацию и десериализацию структур, наиболее близкую к их //! представлению в памяти. //! //! # Пример //! Читаем заголовок GFF файла (формат Bioware, используемый для хранения данных в //! таких играх, как Neverwinter Nights, Neverwinter Nights 2 и Ведьмак): //! ```rust //! # extern crate byt...
<reponame>jeremyevans6/Rocket.Chat.ReactNative import React, { forwardRef, useImperativeHandle, useState } from 'react'; import { InteractionManager, StyleSheet, Text, View } from 'react-native'; import Modal from 'react-native-modal'; import { connect } from 'react-redux'; import I18n from '../../i18n'; import Button...
<gh_stars>0 {-# LANGUAGE OverloadedStrings #-} module Main where import Prelude() import Relude import qualified Data.Text as T import qualified Chronos as Ch import qualified Data.CaseInsensitive as CI import qualified Network.HTTP.Types as H import qualified Network.Wai as W import qualified Options.Applicative as O...
With taxpayers continuing to throng the GST Network (GSTN) portal over the last few days, finance minister Arun Jaitley on Wednesday urged the assessees to avoid last-minute rush for tax filing. With taxpayers continuing to throng the GST Network (GSTN) portal over the last few days, finance minister Arun Jaitley on W...
<reponame>hpedrorodrigues/Researcher package com.hpedrorodrigues.imagesearch.data.event_tracker; import com.hpedrorodrigues.imagesearch.data.remote.api.Api; import javax.inject.Inject; public class EventTracker { @Inject public FabricAnswer answer; @Inject public AnalyticsTracker tracker; @Inj...
<gh_stars>0 import LayerStyle from '../../layers/layer-style'; import { Viewport2d } from '../../viewport'; export class Shape { public visible: boolean; public style: LayerStyle; public role: string; private _className: string; constructor(className: string) { this.visible = true; this.style = nul...
<reponame>filippietruszynski/furtive-server import cors from "cors"; import express from "express"; import morgan from "morgan"; import { json, urlencoded } from "body-parser"; import { logInUser, signUpUser } from "./controllers/auth.controllers"; import { protectRoutes } from "./middleware/auth.middleware"; import {...
x1, x2, x3, x4=input().split() x1=int(x1) x2=int(x2) x3=int(x3) x4=int(x4) s=input() n1=s.count('1') n2=s.count('2') n3=s.count('3') n4=s.count('4') print(n1*x1 + n2*x2 + n3*x3 + n4*x4)
/** * GlobalPlan for a query applied to all the pruned segments. * * */ public class GlobalPlanImplV0 extends Plan { private static final Logger LOGGER = LoggerFactory.getLogger(UResultOperator.class); private InstanceResponsePlanNode _rootNode; private DataTable _instanceResponseDataTable; public GlobalP...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by The MIT License // found in the accompanying LICENSE file. package lg15 import ( "fmt" "strings" "gopkg.in/inconshreveable/log15.v2" ) var Log = lgr{log15.New("lib", "ora")} type lgr struct { log15.Logger } func (s lgr) I...
<filename>mad_gui/plot_tools/plots/video_plot.py<gh_stars>1-10 """This module keeps a class to create plots with IMU data and annotations. The annotations are kept in a separate class.""" import numpy as np import pandas as pd from mad_gui.models.local import PlotData from mad_gui.models.ui_state import MODES from ma...
//Findset : Return representative element //O(1) Comlplexity int findset(int ele , node **adr) { node * temp = adr[ele]; return (temp->rep)->data; }
def parseSite(self): print('Beginning MangaFox check: %s' % self.manga) url = 'http://mangafox.me/manga/%s/' % self.fixFormatting( self.manga ) if self.verbose_FLAG: print(url) source, redirectURL = getSourceCode(url, self.proxy, True) if (redirectURL != url or source is None or 'the page you have requeste...
Mayor Gregor Robertson has announced Vancouver will move forward on taxing empty homes as the affordability crisis grows larger and rental vacancy rates shrink to unprecedented lows. "Vancouver housing is first and foremost for homes, not a commodity to make money with," he said. "We need a tax on empty homes to encou...
/** * Encodes the given bytes based on this tree's structure, writing the * resulting bits to the given output stream. * * @throws IOException If there is a problem writing to stream. */ public void encode(byte[] bytes, BitWriter out) throws IOException { if (this.root == null) { return; ...
Structure-Based Mutagenesis of the Human Immunodeficiency Virus Type 1 DNA Attachment Site: Effects on Integration and cDNA Synthesis ABSTRACT Sequences at the ends of linear retroviral cDNA important for integration define the viral DNA attachment (att) site. Whereas determinants of human immunodeficiency virus type ...
<gh_stars>10-100 # Copyright (c) 2019 Ezybaas by <NAME>. # CTO @ Susthitsoft Technologies Private Limited. # All rights reserved. # Please see the LICENSE.txt included as part of this package. from . import config from . import constants from . import utils from . import baas from .models import MetaModel, App, DbSett...
/* OSPPTNProbeConnect - connect socket to specific address for probes */ int OSPPTNProbeConnect( OSPTIPADDR ipAddr) { int fdSocket; int uErr = OSPC_ERR_NO_ERROR; struct timeval timeout; OSPTSSLSESSION *sslsess = OSPC_OSNULL; OSPM_UDP_SOCKET(fdSocket, uErr); timeout.tv_sec = OSPC_DE...
/** * Called to add all entries that use the ore_name * * @param ore_name - ore dictionary group of the item * @param weight - weight of entries * @param function - logic to use for adding the entry */ protected void addEntries(final String ore_name, final int weight, final Function<Item...
/* Copyright (C) CFEngine AS This file is part of CFEngine 3 - written and maintained by CFEngine AS. 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; version 3. This program is di...
def attribute_dependencies(self): attributes = self.all_attributes + self.all_aggregate_attributes return {attr.ref:attr.dependencies for attr in attributes}
/** * * @author Administrator * @date 2018/11/9 */ @Service public class OrderServiceImpl implements OrderService{ @Reference(version = "1.0") UserService userService; @Override public void insertUser(UserModel model) { userService.insertUser(model); } }
// init registers constructor functions for dynamically creating elements based off the XML namespace and name func init() { gooxml.RegisterConstructor("urn:schemas-microsoft-com:office:word", "CT_Border", NewCT_Border) gooxml.RegisterConstructor("urn:schemas-microsoft-com:office:word", "CT_Wrap", NewCT_Wrap) gooxml...
moves = [] n=int(input()) for _ in range(0, n): d = int(input()) moves.append(d) g=999999999 for i in range(0, 2**n): res=0 t = '0'*(n-len(bin(i)[2 : ])) + bin(i)[2 : ] # print(t) for j in range(0, n): if t[j] == '1': res+=moves[j] res%=360 else: res-=moves[j] res%=360 g=min(g, res) if g == 0: ...
/** * Creates an interval with the total extents of the two given intervals. */ INTERVAL *mergeIntervals(INTERVAL *inter1, INTERVAL *inter2) { INTERVAL *interval; POSTGIS_DEBUGF(2, "mergeIntervals called with %p, %p", inter1, inter2); interval = lwalloc(sizeof(INTERVAL)); interval->max = FP_MAX(inter1->max, inter...
/** * Equip location determines whether the item can be equipped * and, if so, in which location it may be equipped. An * equip location of 07 indicates the item cannot be equipped. * Equip location values of 01 to 06 indicate the item * may be equipped in the relevant slot. Items * given an equip location value ...
#!/usr/bin/env python3 """ Generates test points for FFT pip dependencies: numpy==1.13.3 numfi==0.2.4 """ import cmath from cmath import e, pi from numpy import fft SHOW_DEBUG_INFO = False # prints out step-by-step generation of test points IOWidth = 16 # IOWidth from Tail.scala bp = 8 # BP from ...
<reponame>reespozzi/fact-api package uk.gov.hmcts.dts.fact.controllers.admin; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import...
/** * A base class for mod registries */ public abstract class CommonRegistry { /** * Registration event */ public abstract void register(); protected static ConfiguredFeature<?, ?> createConfiguredFeature(Block oreBlock, int veinSize) { return Feature.ORE.configure(new OreFeatureConfig...
/******************************************************************************* * Copyright 2016, 2017 ARM Ltd. * * 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.apac...
/** * @file client.cpp * @author <NAME> (<EMAIL>) * @brief * @version 1.0.2 * @date 2022-03-24 * * @copyright Copyright (c) 2022 * */ // Adding the libraries #include "client.h" #include "server.h" Client::Client(std::string _id, const Server& _server) : id { _id } , server { &_server } { /** ...
/// /// Coroutine awaiter which waits for a handle to be signaled. /// class handle_awaiter : public signal_observer { public: handle_awaiter(signal_context &context, HANDLE h) : handle(h), context(&context) {} bool await_suspend(std::coroutine_handle<> coro) { coroutine = std::move(coro); ...
""" A command line interface to create reporec data. """ import argparse import json import os import pandas as pd import requests import yaml import reporec # Options parser = argparse.ArgumentParser(description='A CLI for the Repository Record.') parser.add_argument("config_file", help="A configuration file to use...
/** * Adds a block of perl code which scans a log file for supplied strings. * The test will pass if there is *any* number of matches found for the supplied * string. It will fail if no occurrence of the given string is found in the log. * * It does this by creating a while loop which opens a log and does...
import * as React from 'react'; const TextboxAlignTop24RegularIcon = () => { return( <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M21 5.75C21 4.23122 19.7688 3 18.25 3H5.75C4.23122 3 3 4.23122 3 5.75V18.25C3 19.7688 4.23122 21 5.75 21H18.25C19.7688 2...
<filename>examples/convolutional.py from krikos.data.loader import * from krikos.nn.layer import Convolutional, Flatten, ReLU, BatchNorm2d, MaxPooling from krikos.nn.network import Sequential from krikos.nn.regularization import L2 from krikos.data.utils import * from krikos.nn.loss import SoftmaxCrossEntropy loader ...
Cloning of 87 kDa outer membrane protein gene of Pasteurella multocida P52. Pasteurella multocida serotype B:2 is the causative agent of haemorrhagic septicaemia, a fatal disease of cattle and buffaloes. Formalin inactivated whole cell bacterin is used to prepare vaccines in India. However, outer membrane proteins (OM...
//Se muestran todas las bases de datos public void listaDB(){ Optional<List<Document>> databases = controller.getDataBases(); System.out.println("Todos las bases de datos existentes"); databases.ifPresent(documents -> documents.forEach(db -> System.out.println(db.toJson()))); }
<reponame>bsairline/hamonize /* * AccessControlRule.cpp - implementation of the AccessControlRule class * * Copyright (c) 2016-2021 <NAME> <<EMAIL>> * * This file is part of Veyon - https://veyon.io * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General ...
<filename>pkg/reader/frm/internal/types.go // Package internal holds the frm file struct definitions. // NOTE: all the number is stored as little-endian. package internal // FrmFileHeader defines the frm file header struct. // NOTE: the header always been 64 bytes and padding to 4096 bytes length (4KB). type FrmFileHe...