content
stringlengths
10
4.9M
/** * Returns true if {@code pathToTest} is a valid file name in Windows OS. */ private static boolean isValidWindowsFilename(String pathToTest) { Matcher matcher = ILLEGAL_WINDOWS_FILE_PATTERN.matcher(pathToTest); if (matcher.find()) { logger.log(Level.SEVERE, String.format(MESSAG...
. In the high-dose benzylpenicillin treatment of subacute bacterial endocarditis leucopenia can develop in rare cases. Often it is paralleled by anemia, sometimes also by a decrease in the number of platelets. Myalgia, gastric discomfort, or a sore threat deserve interest as premonitory symptoms. In every case this tr...
#!/usr/bin/env python3 # -*- coding: utf-8 -*-#! import sys def check(x): if x.count(' ') == len(x) or len(x) == 0: print("There are no word", file=sys.stderr) exit(1) if __name__ == '__main__': s = (input("Your text: ")) check(s) if ((' k' and ' к') not in s) and (s[0] != 'k' and s...
package serial import ( "fmt" "syscall" ) type port struct { handle syscall.Handle oldDCB c_DCB oldTimeouts c_COMMTIMEOUTS } // New allocates and returns a new serial port controller. func New() Port { return &port{ handle: syscall.InvalidHandle, } } // Open connects to the given serial port. func (p...
<filename>src/bin/tools/ValueOperations/BinaryOps.inl //////////////////////////////////////////////////////////////////////////////// // BinaryOp.inl //////////////////////////////////////////////////////////////////////////////// /*! @file // Implements componetwise binary ops on values. To be included by Value....
<reponame>shimech/higashi<filename>src/utils.py import os import shutil class Utils: @staticmethod def make_dir(dirname): if os.path.isdir(dirname): pass else: os.makedirs(dirname) return dirname @staticmethod def remove_dir(dirname): shutil.rmt...
/** * Note: This scheme is defined in the NCIP version 1 Implementation Profile 1. */ public class Version1PhysicalConditionType extends PhysicalConditionType { private static final Logger LOG = Logger.getLogger(Version1PhysicalConditionType.class); public static final String VERSION_1_PHYSICAL_CONDITION_TY...
{-# Language MagicHash #-} {-# Language ForeignFunctionInterface #-} {-# Language UnliftedFFITypes #-} {-# Language GHCForeignImportPrim #-} {-# Language UnboxedTuples #-} {-# Language CPP #-} -- | This module provides a small set of function for extremely fast @max@ and -- @min@ operations that are branchless. -- --...
import { Schema } from 'mongoose' import { TextSelectedValidation, TextValidationOptions, } from '../../../../../shared/types' import { WithCustomMinMax } from '../../../../types/field/utils/virtuals' export const TextValidationOptionsSchema = new Schema< WithCustomMinMax<TextValidationOptions> >( { custo...
// Return the backend representation of the boolean type. Btype* Boolean_type::do_get_backend(Gogo* gogo) { return gogo->backend()->bool_type(); }
/** * - Remove all indices from edges of an SCC which can't accept (e.g. if the SCC does not contain * all Inf sets of the pair). * - Identify Fin-only pairs and SCCs which trivially accept with them. * - Remove pairs which cannot accept globally (e.g. an Inf set does not occur) */ public static <S> ...
/** * Maps all JCR {@link Event}s concerning one JCR node to one {@link FedoraEvent}. Adds the types of those JCR events * together to calculate the final type of the emitted FedoraEvent. * TODO stop aggregating events in the heap, if possible * * @author ajs6f * @since Feb 27, 2014 */ public class AllNodeEvents...
LARGO — Officers arrested a man Monday accused of throwing a Molotov cocktail into his ex-girlfriend's home, police said. Samna Ngoun, 28, faces charges of first-degree arson, throwing a deadly missile into a building and violating a domestic violence injunction. According to arrest affidavits, Ngoun shattered a wind...
package com.girish.venecon.api.models; import com.google.gson.annotations.SerializedName; public class ExchangeData { // Note for Girish: I could've named the variable whatever I wanted, like myDate // And then I would need @SerializedName("date"), and GSON would know how to deserialize it // If the names...
Eternal Vigilance is the Price of Liberty Dear Friends, “At the stroke of the midnight hour, when the world sleeps, India will awake to life and freedom.”- Pandit Jawaharlal Nehru to the Constituent Assembly on 15th August 1947. But, at the stroke of midnight on 25th-26th June 1975 as the world slept, India awoke to...
<reponame>tmsBodnar/iaid-O-meter import { AfterContentInit, ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { MatCalendarCellCssClasses } from '@angular/material/datepicker'; import { MatDialog } from '@angular/material/dialog'; import { Keiko } from 'src/app/shared/models/Keiko'; import { AuthServ...
/** * Test of clone method, of class LinearMultiCategorizer. */ @Test public void testClone() { LinearMultiCategorizer<String> instance = new LinearMultiCategorizer<String>(); LinearMultiCategorizer<String> clone = instance.clone(); assertNotSame(instance, clone); asser...
<filename>test/system/cvc3_george.cpp<gh_stars>0 /********************* */ /*! \file cvc3_george.cpp ** \verbatim ** Original author: mdeters ** Major contributors: none ** Minor contributors (to current version): none ** This file is part of the CVC4 prototyp...
<filename>dump/typescript-type-declaration-files-2/TestCalculator.ts import { Calculator, test } from "./Calculator"; let c = new Calculator(); // test(c, "1+2*33/11="); test(c, "001+010=");
package creationalPatterns.prototypePattern.sheep; /* No need to create repetitive objects for manipulation simply create clones of your desired object. or If the object or some of the values are coming from DB why create again from DB. */ public class prototypePatternDemo { public static void main(String[] args)...
/** * Performs transform() on the provided model with predictTable, and adds sinks for * OnlineKMeansModel's transform output and model data. */ private void transformAndOutputData(OnlineKMeansModel onlineModel) { Table outputTable = onlineModel.transform(onlinePredictTable)[0]; tEnv.toDa...
/** * Wait The MemcacgeGateway Service Thread until Stop command called by * window services */ private void waitWindows() { while (!shutdown) { try { Thread.sleep(6000); } catch (InterruptedException e) { } } }
<gh_stars>1-10 #include <string.h> #include "seatest.h" static const char abcde[] = "abcde"; static const char abcdx[] = "abcdx"; static void test_strcat (void) { char s[] = "xx\0xxxxxx"; assert_true(sizeof(s) >= sizeof(abcde)); assert_true(sizeof(s) >= 8); assert_true(sizeof(s) >= sizeof(abcdx)); ...
/** * A special runtime exception with a basic message. The exception is * caught by the interpreter and its message is printed. * @author Nick * */ @SuppressWarnings("serial") public abstract class AyaRuntimeException extends RuntimeException implements AyaExceptionInterface { String msg; ArrayList<Stri...
<filename>fancy-garbling/benches/circuits.rs // // -*- mode: rust; -*- // // // // This file is part of fancy-garbling. // // Copyright © 2019 Galois, Inc. // // See LICENSE for licensing information. // //! Benchmark code of garbling / evaluating using Nigel's circuits. // use criterion::{criterion_group, criterion_...
<filename>KCCKit/KCCKit/KCTextContainerView.h // // KCTextContainerView.h // Jade // // Created by king on 16/6/7. // Copyright © 2016年 KC. All rights reserved. // #import <UIKit/UIKit.h> #import "KCTextLayout.h" @interface KCTextContainerView : UIView @property (nonatomic, weak) UIView *hostView; /// Debug op...
def vendor_passthru(ident, method, topic, data=None, driver_passthru=False): if not method: raise wsme.exc.ClientSideError(_("Method not specified")) if data is None: data = {} http_method = pecan.request.method.upper() params = (pecan.request.context, ident, method, http_method, data, t...
def slit2order(self, slit_spat_pos): order_spat_pos = np.array([0.08284662, 0.1483813 , 0.21158701, 0.27261607, 0.33141317, 0.38813936, 0.44310197, 0.49637422, 0.54839496, 0.59948157, 0.65005956, 0.70074477, ...
import { Logger } from './logger' import { WindowManager } from './window-manager' import { SpriteSheet } from './spritesheet' import { State, MainGame } from './states/index' export interface IGameOptions { width?: number; height?: number; canvasElementId?: string; spriteSheetUrl: string[]; timeScale: 1...
package teacher import ( "backend-qrcode/router" "backend-qrcode/teacher/handler" ) var ( admin = "admin" teacher = "teacher" student = "student" ) var Routes = router.RoutePrefix{ "/teachers", []router.Route{ router.Route{ "TeachersIndex", "GET", "", handler.Index, false, nil, }, ro...
The ultrasound risk stratification systems for thyroid nodule have been evaluated against papillary carcinoma. A meta-analysis Thyroid imaging reporting and data systems (TIRADS) are used to stratify the malignancy risk of thyroid nodule by ultrasound (US) examination. We conducted a meta-analysis to evaluate the pool...
// // Copyright (C) 2011 <NAME> // Copyright (C) 2013 <NAME> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later versio...
// // firfarrow_rrrf_example.c // // Demonstrates the functionality of the finite impulse response Farrow // filter for arbitrary fractional sample group delay. // #include <stdio.h> #include <stdlib.h> #include <math.h> #include <getopt.h> #include "liquid.h" #define OUTPUT_FILENAME "firfarrow_rrrf_example.m" // p...
// UnmarshalBinary implements encoding.BinaryUnmarshaler interface. func (p *SubmitSmResp) UnmarshalBinary(body []byte) error { var err error p.MessageID, p.Options, err = cStringOptsRespUnmarshal(body) return err }
Reproducibility of T-wave morphology assessment in patients with hypertrophic cardiomyopathy and in healthy subjects This study examined the reproducibility of T-wave morphology assessment in 54 patients with hypertrophic cardiomyopathy (HC) and 70 healthy subjects (HS). Studied indices included: the total cosine R-to...
def add_vote_history(self, user, project, topic, ip_address): topic_key = get_topic_key(project, topic) if not self.check_ip_voted(user, topic_key, ip_address): self.votes_history_table.put_item( Item={ "User": user, "TopicKey": topic_k...
/// Creates a regular, non-flex request with all fields necessary. pub fn request(req: KvRequest, collections_enabled: bool) -> BytesMut { let key = match req.key { Some(k) => { if collections_enabled { let cid = make_uleb128_32(k, req.collection_id); Some(cid) ...
// // HYServiceManager.h // HaoYuClient // // Created by 刘文强 on 2018/5/22. // Copyright © 2018年 LWQ. All rights reserved. // #import "HYBaseService.h" @interface HYServiceManager : HYBaseService /** 有加载动画的请求 */ - (void)postRequestAnWithurl:(NSString *)url paramters:(NSDictionary *)paramters ...
n = int(input()) D = [list(map(int, input().split())) for x in range(n*n)] H = [] V = [] L = [] for m in range(n*n): if D[m][0] not in H and D[m][1] not in V: H.append(D[m][0]) V.append(D[m][1]) L.append(m+1) for m in range(n): print(L[m], end=" ")
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.security.keyvault.certificates; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.policy.HttpLogDe...
def _read_data_packet(self): data, addr = self.data_socket.recvfrom(MAX_PACKET_SIZE) packet_num = struct.unpack('<1l', data[:4])[0] byte_count = struct.unpack('>Q', b'\x00\x00' + data[4:10][::-1])[0] packet_data = np.frombuffer(data[10:], dtype=np.int16) return packet_num, byte...
import sys sys.path.extend([".", ".."]) import os import shutil import argparse from sys import argv import gzip from skipatom import ElemNet, ElpasoliteNet import numpy as np from sklearn.model_selection import RepeatedKFold from tensorflow.keras.callbacks import Callback, CSVLogger, ModelCheckpoint, EarlyStopping fro...
The Republican presidential candidates turned their fire on Rep. Ron Paul at Thursday’s debate, showcasing what’s become the Texas Republican’s Achilles’ heel in the Republican primary: his foreign policy views. Paul’s positions on national security remain his biggest obstacle to a realistic chance at the GOP nominati...
/** * Test checks if the proxy provided by proxy selector * will be used for connection to the server */ @TestTargetNew( level = TestLevel.PARTIAL, notes = "Verifies if the proxy provided by proxy selector will be used for connection to the server.", method = "usingProxy", ...
/* * Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet", "code"]. Return true because "leetcode" can be segmented as "leet code". */ public class WordBreakI { public st...
<filename>src/QueryConverter/QueryCategorizeConverterV4.ts<gh_stars>0 import * as moment from 'moment/moment'; import { OrderBy, SearchType, Query } from '../Common'; import { QueryCategorizeConverterV3 } from './'; /** * Class to handle creating categorize lookups for restservice version 4. * Note: This is just a...
declare function require(moduleName: string): any; import { ZipCodeValidator as Zip } from "./ExportingDeclaration-001-input"; if (needZipValidation) { let ZipCodeValidator: typeof Zip = require("./ZipCodeValidator"); let validator = new ZipCodeValidator(); if (validator.isAcceptable("...")) { /* .....
def OnShowValues(self, event): self.wxapp.imagepanel.clearLabels() self.loadClearButton.Disable() self.wxapp.statusbar.SetStatusText("loading image data ...") if self.wxapp.loadValues() == False: self.loadClearButton.SetLabel("no data") self.wxapp.statusbar.SetSta...
/* note: 0 indicates either expired, or infinite duration */ uint32_t dcc_duration_seconds( void) { return DCC_Time_Duration_Seconds; }
// scan iterates through a specified index and calls user-defined iterator // function for each item encountered. // The desc param indicates that the iterator should descend. // The gt param indicates that there is a greaterThan limit. // The lt param indicates that there is a lessThan limit. // The index param tells ...
<gh_stars>0 {-# OPTIONS_GHC -fno-warn-tabs #-} import AES import Base64 import Common import System.IO main = do putStrLn "=== Challange7 ===" handle <- openFile "7.txt" ReadMode enc <- fmap (base64Decode . filter (/= '\n')) $ hGetContents handle putStr $ vecToStr $ decryptECB (strToVec "YELLOW SUBMARINE") enc
<reponame>arhat-dev/aranya /* Copyright 2020 The arhat.dev 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...
/// \ingroup base // /// \class ttk::MergeTree /// \author Charles Gueunet <charles.gueunet@lip6.fr> /// \date September 2016. /// ///\brief TTK structures for the contour tree /// /// \b Related \b publication \n /// "Contour Forests: Fast Multi-threaded Augmented Contour Trees" \n /// Charles Gueunet, Pierre Fortin, ...
has = input() may = input() ans = 0 def valid(cur): i = 0 j = 0 while i < len(cur) and j < len(may): if cur[i] == may[j]: j += 1 i += 1 return j == len(may) for i in range(len(has) + 1): for j in range(i, len(has) + 1): curr = has[:i] + has[j:] ...
You can now toast to the Iron Age with a 2,500-year-old brew. A team of researchers worked with a brewery in Milwaukee to recreate an ancient beer from remnants of the alcoholic beverage that were found at an Iron Age burial site in Germany, reported Milwaukee Public Radio (WUWM). Though the acidic soil had dissolved ...
<reponame>rafaelcoutinho/comendobemdelivery package br.copacabana.tasks; import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.persistence.NoResultException; import javax.servlet.ServletException; import javax.servlet.http.HttpSe...
def searchCl(exp,seq,terminate=False,extend=False): try: if extend: if '&' in exp: return all(searchCl(e.strip(),seq,terminate=False,extend=True) for e in exp.split('&')) if re.match('^[!~]',exp): return not searchCl(exp[1:],se...
Engulfment of Apoptotic Cells Is Negatively Regulated by Rho-mediated Signaling* The rapid and efficient phagocytosis of apoptotic cells plays a critical role in preventing secondary necrosis, inflammation as well as in tissue remodeling and regulating immune responses. However, the molecular details of engulfment are...
package cn.lcy.answer.log; /** * @author YueHub <<EMAIL>> * @github https://github.com/YueHub */ public class UserOperationLog extends Log { /** * 操作代码 相当于谓语 */ private int operationCode; /** * 操作对象 相当于宾语 */ private int operationObject; public int getOper...
// Tests stack frame ref register cleanup. TEST(VMStackTest, RefRegisterCleanup) { auto stack = std::make_unique<iree_vm_stack_t>(); iree_vm_state_resolver_t state_resolver = {nullptr, SentinelStateResolver}; IREE_EXPECT_OK(iree_vm_stack_init(state_resolver, stack.get())); dummy_object_count = 0; DummyObject:...
<filename>graph/bipartite_edge_coloring/sol/correct.cpp #include <iostream> #include <vector> #include <queue> #include <set> #include <deque> #include <assert.h> #include <random> #include <utility> #include <time.h> struct djset { std::vector<int> upper; std::vector<int> id; int n; djset(int n_) { n=n_; ...
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { Router } from '@angular/router'; import { AuthenticationService, UserInfo, UserService } from '@cea/util-security'; import { Observable } from 'rxjs'; @Component({ selector: 'cea-app-header', templateUrl: 'app-header.component.html', st...
import { CustomTransaction, NetworkSelectionRequest, } from '../services/common-interfaces'; export interface NonceRequest extends NetworkSelectionRequest { address: string; // the users public Ethereum key } export interface NonceResponse { nonce: number; // the user's nonce } export interface AllowancesRequ...
Automatic one-loop calculation of MSSM processes with GRACE We have developed the system for the automatic computation of cross-sections, {\tt GRACE/SUSY}, including the one-loop calculations for processes of the minimal supersymmetric extension of the the standard model. For an application, we investigate the process...
<reponame>CoreTrackProject/ZittelmenEngine #pragma once #include <vulkan/vulkan.h> #include <memory> class VulkanUtils { public: VulkanUtils() {}; ~VulkanUtils() {}; public: /* */ static void MapMemory(VkDevice logicalDevice, VkDeviceMemory devMemory, void *srcData, VkDeviceSize dataSize) { // Map data...
/** * Lists connected cameras. * @author Martin Vysny */ public class CameraList implements Closeable { public static final Pointer CONTEXT; static { CONTEXT = GPhoto2Native.INSTANCE.gp_context_new(); if (CONTEXT == null) { throw new RuntimeException("Failed to get context"); } } privat...
/** * Prueba para crear un Actividad. * @throws co.edu.uniandes.csw.idiomas.exceptions.BusinessLogicException */ @Test public void createActividadTest() throws BusinessLogicException { ActividadEntity newEntity = factory.manufacturePojo(ActividadEntity.class); CoordinadorEntity newCor...
/** * Checks if any threads are deadlocked. If any, print * the thread dump information. */ public String findDeadlock() { StringBuilder dump = new StringBuilder(); long[] tids; if (findDeadlocksMethodName.equals("findDeadlockedThreads") && tmbean.isSynchronizerUsa...
// NewResponse creates a new Cluster Discovery Response. func NewResponse(meshCatalog catalog.MeshCataloger, proxy *envoy.Proxy, _ *xds_discovery.DiscoveryRequest, cfg configurator.Configurator, _ *certificate.Manager, proxyRegistry *registry.ProxyRegistry) ([]types.Resource, error) { var clusters []*xds_cluster.Clust...
import sys n = int(input()) links = [set() for _ in [0] * n] for line in sys.stdin: u, v, w = map(int, line.split()) u -= 1 v -= 1 links[u].add((v, w)) links[v].add((u, w)) ans = [-1] * n q = [(0, 0, -1)] while q: v, d, p = q.pop() if d % 2 == 0: ans[v] = 0 else: ans[v] = 1 for u, w in links[v]: if u ==...
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
<filename>src/slib/math/bigint.cpp<gh_stars>100-1000 /* * Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO> * * 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 res...
def layer_norm(x, dim, epsilon=1e-6, name="layer_prepostprocess"): with tf.variable_scope(name + "/layer_norm"): scale = mtf.get_variable( x.mesh, "layer_norm_scale", mtf.Shape([dim]), initializer=tf.ones_initializer(), activation_dtype=x.dtype) bias = mtf.get_variable(...
// InitCMS initializes a CMS builder func InitCMS(content []byte, detached bool) *Builder { return &Builder{ data: content, dataDetached: detached, signers: make(map[string]*Signer), } }
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package rogeriolucon.locadora.service; import java.util.ArrayList; import rogeriolucon.locadora.interfaces.FinancialServiceInterface; ...
Junk Silver Premiums. Premiums on Junk Silver are at elevated levels. Pre 1965 dimes, quarters and half dollars sought after for their silver and barter value in times of economic uncertainty. During the Great Silver Shortage of 2015, premiums on junk silver and American Silver Eagles have surged to highs last seen ...
<reponame>salydu29/JAVA_ENSTA package ooconcepts.inherite.example; import java.util.Random; public class Apprentice extends Student { private Random r; public Apprentice(String name) { super(name); r = new Random(); } @Override public boolean succeedExam() { return r.nex...
def _find_resource(key: str, collection: Collection) -> Optional[CollectionRowBlock]: resource = None key_lowered = key.lower() for block in collection.get_rows(): if hasattr(block, "title") and block.title.lower().find(key_lowered) > -1: resource = block break return res...
/* * Mark a hardware queue and the request queue it belongs to as needing a * restart. */ static inline void blk_mq_sched_mark_restart_queue(struct blk_mq_hw_ctx *hctx) { struct request_queue *q = hctx->queue; if (!test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state)) set_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state); if...
import flattenKeyframes from '../../src/animation-mount/flatten-keyframes'; test('_ animation property.', () => { expect({ top: { 0: 100, 30: 200, 60: 200, 100: 100 } }).toEqual( flattenKeyframes([ { top: 100, _: [0, 100] }, { top: 200, _: [30, 60] }, ]).keyframes ); });
<reponame>fvazquezf/7542_TpFinal<gh_stars>0 #ifndef BUTTON_H #define BUTTON_H #include "sdlwrap/Area.h" #include "sdlwrap/SdlTexture.h" class Button { private: // dimension y posicion Area box; SdlTexture& hudTexture; // textura a mostrar en el boton SdlTexture& buttonTex; SDL_Rect textureS...
package no.nav.consumer.pensjon.pselv.brukerprofil.to; import no.stelvio.common.transferobject.ServiceRequest; import no.nav.domain.pensjon.common.brukerprofil.Epostmelding; public class SendEpostmeldingRequest extends ServiceRequest { private static final long serialVersionUID = -207881963862891282L; priva...
/***********************************************/ // Wait for a specified number of milliseconds // /***********************************************/ int waitr_delay_(int millis) { check_init(); if (millis > 0) { #ifdef _WIN32 Sleep(millis); #else usleep(millis * 1000); #endif } return (...
/*! * * @param pvParameters are currently not used, but part of the task declaration. */ static void enter_console_task(void *pvParameter) { char c; for (;;) { c = (char) fgetc(stdin); printf("%02x\r", c); if ((c == 0x03) || (c == 0x15)) { if (main_task_handle) vTaskSuspend...
# https://www.jianshu.com/p/9fb001daedcf from utils.card import action_space_category char2val = { "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "J": 11, "Q": 12, "K": 13, "A": 14, "2": 15, "*": 16, "$": 17 } cards_value = [] for c in range(len(action_space_category)): for a in ...
/** * Suggest names for a field. The name is computed from field's type * and possible prefixes or suffixes are added. * <p> * If the type of the field is <code>TypeName</code>, the prefix for field is <code>pre</code> * and the suffix for field is <code>suf</code> then the proposed names are <code>preTypeNam...
// UpdateLease resets the TTL on a master IP in storage func (s *storageLeases) UpdateLease(ip string) error { key := path.Join(s.baseKey, ip) return s.storage.GuaranteedUpdate(apirequest.NewDefaultContext(), key, &corev1.Endpoints{}, true, nil, func(input kruntime.Object, respMeta storage.ResponseMeta) (kruntime.Obj...
<reponame>Travingu/2021Robot<gh_stars>1-10 /*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRS...
import graphene from graphene_django import DjangoObjectType from .models import Donation from graphql import GraphQLError from protestId.models import Protest class Donations(DjangoObjectType): class Meta: model = Donation class Query(graphene.ObjectType): donations = graphene.List(Donations,id=gra...
def input(self, prompt, hidden=False): TODO: raw_input works only if stdin was not controlled by (e.g. if coming from annex). So we might need to do the same trick as get_pass() does while directly dealing with /dev/pty and provide per-OS handling with stdin bein...
// Populates the internal timing info structure with the timing info obtained // from the HDMI driver void HDMIDisplay::readConfigs() { int configIndex = 0; int pageNumber = MSM_HDMI_INIT_RES_PAGE; long unsigned int size = sizeof(msm_hdmi_mode_timing_info); while (true) { char configBuffer[PAGE_...
/** * The request for creating consumer API. * * @author Wuyi Chen * @date 05/16/2020 * @version 1.0 * @since 1.0 */ public class CreateConsumerRequest { private PersonName name; public CreateConsumerRequest() {} public CreateConsumerRequest(PersonName name) { this.name = name; } public Person...
{-# LANGUAGE DeriveDataTypeable #-} module Cheapskate.Types where import Data.Sequence (Seq) import Data.Text (Text) import qualified Data.Map as M import Data.Data -- | Structured representation of a document. The 'Options' affect -- how the document is rendered by `toHtml`. data Doc = Doc Options Blocks ...
/** * Class meant to <b>load</b> resources */ public class PMMLLoaderService { private static final Logger logger = LoggerFactory.getLogger(PMMLLoaderService.class); private PMMLLoaderService() { // Avoid instantiation } /** * @param kbuilderImpl * @param resourceWithConfiguration...
/** * Table to specify the SIP events to which the CPE MUST subscribe. * * @since TR104 v2.0 */ @CWMPObject(name = "VoiceService.{i}.SIP.Network.{i}.EventSubscribe.{i}.", uniqueConstraints = {@CWMPUnique(names = {"Alias"}, functional = false), @CWMPUnique(names = {"Event"})}) @XmlRootElement(name = "VoiceServi...
def descriptors(DataFrame,array): zarray = np.zeros(shape=(len(DataFrame),len(array))) words_df = pd.DataFrame(data=zarray,columns=array) for word in words_df.columns: for i in DataFrame.index: for column in DataFrame.columns: for string in DataFrame.at[i,column].split()...
Sweden's language watchdog has accused Google of trying to control the Swedish language in a dispute over the definition of the colloquial term "ungoogleable". The Swedish version of the word - "ogooglebar" - made the Language Council of Sweden's 2012 list of words that aren't in the Swedish dictionary but have entere...
Royal Society of Health Research Update housing, often with the relocation of communities to new high rise flats. A range of housing factors influence health. These include indoor air quality (including dust mites), damp/condensation and temperature, unsafe environments leading to accidents/fires at home, and inadequa...
# -*- coding: utf-8 -*- from ._analytic_rotation import target_rotation from ._gpa_rotation import oblimin_objective, orthomax_objective, CF_objective from ._gpa_rotation import ff_partial_target, ff_target from ._gpa_rotation import vgQ_partial_target, vgQ_target from ._gpa_rotation import rotateA, GPA __all__ = []...
On the number of tilings of a square by rectangles We develop a recursive formula for counting the number of rectangulations of a square, i.e the number of combinatorially distinct tilings of a square by rectangles. Our formula specializes to give a formula counting generic rectangulations, as analyzed by Reading in ...