content
stringlengths
10
4.9M
. BACKGROUND The use of new, high-priced therapies in intensive care medicine should be assessed by a questionnaire. METHODS Questionnaires were sent to 849 intensive care units in Germany. The use of three new strategies were asked: treatment of methicilline resistant staphylococcus aureus (MRSA) patients (using li...
<filename>pkg/controllers/health.go package controllers import ( "fmt" "net/http" "github.com/cechaney/burrow/pkg/core" ) func healthHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html") w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "OK") } //GetHealthController build...
// ReplaceFailedProcessGroups flags failed processes groups for removal and returns an indicator // of whether any processes were thus flagged. func ReplaceFailedProcessGroups(log logr.Logger, cluster *fdbtypes.FoundationDBCluster, adminClient fdbadminclient.AdminClient) bool { logger := log.WithValues("namespace", cl...
Update on the SKA offset optics design for the U.S. Technology Development Project The U.S. design concept for the Square Kilometre Array (SKA) program is based on utilizing a large number of small-diameter dish antennas in the 12 to 15 meter diameter range. 12The Technology Development Project (TDP) is planning to de...
/** * Adds a user provider. * * @param userProvider * the user provider to add */ @Reference( name = "userProviders", cardinality = ReferenceCardinality.AT_LEAST_ONE, policy = ReferencePolicy.DYNAMIC, unbind = "removeUserProvider" ) protected synchronized void addUser...
<gh_stars>10-100 package server import ( "github.com/504dev/logr/config" . "github.com/504dev/logr/logger" "github.com/gin-contrib/static" "github.com/gin-gonic/gin" "io" "os" ) func ListenHTTP() error { gin.ForceConsoleColor() gin.DefaultWriter = io.MultiWriter(os.Stdout, GinWritter) // TODO react r := N...
/// A custom widget containing all the fields necessary for configuring one boundary condition of a simulation class BCSelector : public Gtk::Frame { private: Gtk::Grid grid; Gtk::Label pressureTypeLabel; Gtk::ComboBoxText pressureTypeSelector; AnnotatedEntry pEntry; Gtk::Label velocityTypeLabel; Gtk::ComboBoxTex...
def parse_data(content, raincontent, latitude=52.091579, longitude=5.119734, timeframe=60, usexml=False): if usexml: return parse_xml_data(content, raincontent, latitude, longitude, timeframe) else: return parse_json_data(content, raincontent, ...
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
/** * A convenience class to make constructor parameters less opaque. */ public static class Builder { private double openAtGoodRatio = 0.5; private double closeAtGoodRatio = 0.75; private int minSliceCount = 10; private int evalEveryNMillis = 100; private int resetAfte...
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed ...
Bishop John Magee faced criticism over his handling of allegations of sex abuse in his diocese [PA Wire] Bishop John Magee faced criticism over his handling of allegations of sex abuse in his diocese [PA Wire] "As I depart, I want to offer once again my sincere apologies to any person who has been abused by any pries...
It's unsettled, unpredictable and wide open. This election campaign is not only a three-way race – most voters are still up for grabs. Only 40 per cent of Canadians have picked a party and say that's the only one they'll consider. Most voters, three-fifths of the electorate, are still considering voting for two or mor...
from mongoframes import * from __init__ import build_test_data, connect_to_db, time_it # Define models class Company(Frame): _fields = { 'name', 'departments', 'address', 'tel', 'website_url' } class Department(SubFrame): _fields = { 'name', ...
/** * Send resume signal request to a given worker * * @param workerId id of the worker to send the resume signal to */ private void sendResumeSignal(int workerId) { if (maxOpenRequestsPerWorker == 0) { LOG.warn("sendResumeSignal: method called while the max open requests " + "for worker...
/** * Saves emails and notifies components so they can refresh their views with new data. * * @author Nilhcem * @since 1.0 */ public final class MailSaver extends Observable { private static final Logger LOGGER = LoggerFactory.getLogger(MailSaver.class); private static final String LINE_SEPARATOR = System.getPr...
Dosage reduction and discontinuation of biological disease-modifying antirheumatic drugs in patients with rheumatoid arthritis, psoriatic arthritis and axial spondyloarthritis: protocol for a pragmatic, randomised controlled trial (the BIOlogical Dose OPTimisation (BIODOPT) trial) Introduction The The BIOlogical Dose ...
/** * This class represents a color weighting for a Symbol. Only mana Symbols will have nonzero weights * for any type of mana. For any given mana Symbol, the sum of all of its color weights should be * 1. * <p> * This class is simply a data structure that holds a {@link ManaType} and its weight for a symbol to ...
<reponame>treely/boemly import { Box, useMediaQuery } from '@chakra-ui/react'; import React, { ReactNode, useEffect } from 'react'; import { useAnimation } from 'framer-motion'; import { useMeasure } from 'react-use'; import { BREAKPOINT_MD_QUERY } from '../../constants/breakpoints'; import useResizeEventListener from ...
/** * Checks for events. Only used if checkForIncomingEvents() has not * been overridden. * * @deprecated Use checkForIncomingEvents() instead. * @return list of events */ @Deprecated protected List<String> checkForEvents() { return Collections.emptyList(); }
// BrailleCircleCellOpts sets options on the cells that contain the circle. // Cell options on a braille canvas can only be set on the entire cell, not per // pixel. func BrailleCircleCellOpts(cOpts ...cell.Option) BrailleCircleOption { return brailleCircleOption(func(opts *brailleCircleOptions) { opts.cellOpts = cO...
extern crate skim; use skim::prelude::*; /// This example illustrates downcasting custom structs that implement /// `SkimItem` after calling `Skim::run_with`. #[derive(Debug, Clone)] struct Item { text: String, } impl SkimItem for Item { fn text(&self) -> Cow<str> { Cow::Borrowed(&self.text) } ...
import requests import json auth_data = { "grant_type": "client_credentials", "client_id": "86092afbdb44404fa54b97442e7c8c6a", "client_secret": "bb640134957816330efd8adfaf150e30c5907c63d757169377573bc4dd259018", "scope": "read_product_data" } # create session instance session = requests.Session() aut...
// lineDiff lists the differences in the lines of a and b. func lineDiff(t *testing.T, a, b string) { aslice := strings.Split(a, "\n") bslice := strings.Split(b, "\n") if len(aslice) != len(bslice) { t.Fatal("Can't diff text, mismatched number of lines.\n") return } for i, s := range aslice { if s != bslice[...
from math import log2,ceil,pow N,K = map(int,input().split()) ans = 0 for n in range(1,N+1): num = ceil(log2(ceil(K/n))) rate = (1/N)*pow(1/2,num) ans += rate print(ans)
/** * The LocationComponent on android implements both location tracking and display of user's current location. * LocationComponentManager attempts to separate that, so that Camera can ask for location tracking independent of display of user current location. * And NativeUserLocation can ask for display of user's c...
/** * Stores the JVM property value of https.cipherSuites and sets its * value to an empty string. * This ensures that the value https.cipherSuites does * not affect the result of tests. */ static void storeHttpsCipherSuites() { String cipherSuites = System.getProperty(HTTPS_CIPHER_SUITES_KEY); i...
There were a lot of smiling faces in the Canadiens’ locker room following a rare Sunday morning practice in Brossard. The players had reason to be feeling good after Saturday night’s 3-0 win over the Buffalo Sabres at the Bell Centre with Carey Price stopping all 36 shots he faced in his first game back in goal after ...
/******************************************************************************* * Copyright (c) 2009, 2021 IBM Corp., Ian Craggs * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 * and Eclipse Distribution License v1.0 whic...
import { CellPosition, toCursor } from "app/client/components/CellPosition"; import { Disposable, dom, Emitter, Holder, IDisposable, IDisposableOwner, IDomArgs, MultiHolder, styled, TagElem } from "grainjs"; import { GristDoc } from "app/client/components/GristDoc"; import { ITooltipControl, showTooltip, tooltipClo...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <ctype.h> int correspond (char); char correspond2 (int); void conversaoAB (char*, int); void conversaoBA (char*, int); int main (void) { int numCasos, tamEntrada; int i, j; char *entrada = NULL, tipo; scanf ("%d ", &numCasos);...
<reponame>versionwen/faststart package com.wenxin.learn.faststart.web.service; import com.wenxin.learn.faststart.web.entity.LoginLog; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 后台用户登录日志表 服务类 * </p> * * @author version * @since 2020-10-10 */ public interface LoginLogService extends ...
class Solution { public: int minOperations(vector<int>& target, vector<int>& arr) { vector<int> v; map<int, int> m; for (int i = 0; i < target.size(); i++) { m[target[i]] = i+1; } for (int i = 0; i < arr.size(); i++) { if (m.find(arr[i]) == m.end()) continue; int val = m[arr[i]]; auto it = lower_bound(v...
N = int(input()) A = list(map(int,input().split())) a_add=[] a_2=[] a_4=[] for a in A: if a%2 != 0: a_add.append(a) if a%4 == 0: a_4.append(a) elif a%2 == 0: a_2.append(a) # print(a_add,a_2,a_4) ans='No' if len(a_4) >= len(a_add): ans='Yes' elif len(a_2)==0 ...
/** * @deprecated Since v3.5.0, use the LongSparseBooleanArray in gto-support-androidx-collection instead */ @Deprecated public class LongSparseBooleanArray extends LongSparseArray<Boolean> implements Parcelable { public static final Parcelable.Creator<LongSparseBooleanArray> CREATOR = new Parcelable....
def gradient(r, mu): r1 = norm(r) return np.outer(r, r) * (3.0 * mu / r1**5) - np.identity(3) * (mu / r1**3)
It’s hard to appreciate just how quickly and thoroughly Twitter has taken over the world. Just seven years ago, in 2006, it was an idea sketched out on a pad of paper. Now, the service is used by an estimated 554 million users—a number that amounts to nearly 8 percent of the all humans on the planet—and an estimated 17...
from setuptools import setup, find_packages from setuptools.command.test import test from multiprocessing import freeze_support import os import sys import unittest def discover_and_run_tests(): # get setup.py directory setup_file = sys.modules['__main__'].__file__ setup_dir = os.path.abspath(os.path.dirn...
// ParseTyped processes the given data and returns a map containing the values // of all named fields converted to their corresponding types. If no typehint is // given, the value will be converted to string. // The given pattern is compiled on every call to this function. // If you want to call this function more than...
/* Anki:未済 作成日:①2020/03/14・2020/03/15 */ #include <stdio.h> int main(void) { long h, w, result; scanf( "%ld %ld", &h, &w ); if (h == 1 || w == 1) { printf( "1\n" ); return 0; } else if ( h % 2 == 0) { result = ( h / 2 ) * w; } else if( w % 2 == 0 ) { ...
from unittest.mock import Mock import pytest from pip._internal.cli.status_codes import ERROR, SUCCESS from pip._internal.commands import commands_dict, create_command from pip._internal.exceptions import CommandError from tests.conftest import InMemoryPip from tests.lib import PipTestEnvironment def test_run_metho...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package fabricconfig import ( "fmt" "io/ioutil" "time" "gopkg.in/yaml.v2" "github.com/hyperledger/fabric-test/tools/operator/launcher/nl" "github.com/hyperledger/fabric-test/tools/operator/networkspec" "github.com/hyperledger...
def copy(self, ID, CAS=None, **data): new = super().__new__(self.__class__) getfield = getattr setfield = setattr for field in self.__slots__: value = getfield(self, field, None) setfield(new, field, copy_maybe(value)) for field in _names[:-1]: ...
N = int(input()) a = list(map(int, input().split())) brick = [0] number = 1 import sys if min(a) > 1: print('-1') sys.exit() for i in range(N): if a[i] == number: brick.append(number) number += 1 print(N - max(brick))
package common import ( "errors" "github.com/aws/aws-sdk-go/aws/credentials" "log" "os" ) func GetCredentialsFromEnvironment(accessKeyId, secretKey string) (*credentials.Credentials, error) { accessKeyVal := os.Getenv(accessKeyId) secretKeyVal := os.Getenv(secretKey) if accessKeyVal == "" || secretKeyVal == "...
<filename>server/memfs.py #!/usr/bin/env python """In-memory filesystem, pre-populated with a couple of files. Not complete (e.g. you can remove directories which aren't empty), but works well enough to use emacs and gcc.""" # This file should be available from # http://www.pobox.com/~asl2/software/Pinefs # and is l...
/** * JAXB adapter for {@link Geometry}, in order to integrate the value in an element complying with OGC/ISO standard. * The geometry element names are usually prefixed by {@code gml:}. * * <p>The default implementation does almost nothing. The geometry objects will <strong>not</strong> * create the expected {@li...
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// this call to the parent scope. public class LexicalSearchConstInstr extends OneOperandResultBaseInstr implements FixedArityInstr { private RubySymbol constantName; // Constant caching private final ConstantLookupSite site; public LexicalSearchConstInstr(Variable result, Operand definingScope, RubyS...
def threaded_reader(items_to_read, reader, max_threads=4): thread_pool = [] def thread_process(): try: source = source_queue.pop(0) except IndexError: source = None while source: source_reader = reader.read_from_source(source) for chunk in ...
import EncodingDown from "encoding-down"; import {LevelDb} from "level"; import {CodecOptions} from "level-codec"; import {LevelUp} from "levelup"; declare function level<K, V>(location: string, options?: CodecOptions): LevelDb<K, V>; declare namespace level { type LevelDb<K = unknown, V = unknown> = LevelUp<Enc...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package kg.apc.perfmon.metrics.jmx; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * @author undera */ public class JmxSuite extends TestCase { public JmxSuit...
// Copyright 2017 The Walk Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "github.com/dearzhp/walk" . "github.com/dearzhp/walk/declarative" ) func main() { MainWindow{ Title: "Walk GradientComposite Ex...
<filename>libdtn-common/src/main/java/io/left/rightmesh/libdtn/common/data/UnknownExtensionBlock.java package io.left.rightmesh.libdtn.common.data; import io.left.rightmesh.libdtn.common.data.blob.Blob; /** * UnknownExtensionBlock is used to create a generic Extension CanonicalBlock in case when a block * type is u...
#ifndef HTTPD_HTTPD_REQ_PARSER_H #define HTTPD_HTTPD_REQ_PARSER_H #include <glib.h> #define REQ_PARSER_PARSE_OK 0 #define REQ_PARSER_PARSE_PARTIAL_REQUEST 1 #define REQ_PARSER_PARSE_INVALID_REQUEST 2 #define REQ_PARSER_METHOD_INVALID -1 #define REQ_PARSER_METHOD_GET 0 #define REQ_PARSER_METHOD_HEAD...
<reponame>AnimeshRy/erashare-frontend<gh_stars>1-10 export const sizeInMb = (bytes: number): string => { const marker = 1024; // Change to 1000 if required const decimal = 2; // Change as required let kiloBytes = marker; // One Kilobyte is 1024 bytes let megaBytes = marker * marker; // One MB is 1024 KB...
def _checkConvObjective(self, traj): if len(self._optPointHistory[traj]) < 2 or (self._convergenceCriteria['objective'] < 0): return False o1, _ = self._optPointHistory[traj][-1] o2, _ = self._optPointHistory[traj][-2] delta = o2[self._objectiveVar]-o1[self._objectiveVar] converged = abs(delta...
async def _register_verifiers(self, client: IndyClient, limit_agents: set): verifiers = [] verifier_ids = [] config_verifiers = self.services_config("verifiers") if not config_verifiers: LOGGER.debug("No verifiers defined by configuration") for verifier_key, verifier_...
<reponame>morgances/matchmaking<gh_stars>0 /* * Revision History: * Initial: 2018/10/15 <NAME> */ package handler import ( "time" "github.com/TechCatsLab/apix/http/server" log "github.com/TechCatsLab/logging/logrus" "github.com/dgrijalva/jwt-go" "github.com/morgances/matchmaking/backend/constant" ...
Hello again, apparently i disappear for ages and come back in spurts, just yesterday i did a small blog post talking about a few issues i´ve encountered recently, you can read Skin Deep here. And today i´m at it again, writing stuff and things, tho it´s not my strong. We are after all here to help each others and shar...
/* * MIT License * * Copyright (c) 2019 Matt * * 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, mer...
/** write a 32bit int in LittleEndian */ public void writeIntLE(int i) throws IOException { outputStream.writeByte(i); outputStream.writeByte(i >> 8); outputStream.writeByte(i >> 16); outputStream.writeByte(i >> 24); }
<gh_stars>0 #[cfg(test)] #[derive(Debug)] pub struct CounterAddOp(pub i32); #[cfg(test)] impl Absorb<CounterAddOp> for i32 { fn absorb_first(&mut self, operation: &mut CounterAddOp, _: &Self) { *self += operation.0; } fn sync_with(&mut self, first: &Self) { *self = *first } } #[cfg(te...
Tim Lincecum needed 148 pitches for his first career no-hitter Saturday night. The Detroit Tigers might be interested in a smaller workload from "The Freak." FoxSports.com's Jon Morosi says the Tigers are among teams that have inquired about acquiring Lincecum from the San Francisco Giants, presumably to be used out ...
Optimum filter design for partial-response class-IV transmission systems The design of a mixed digital/analog transmit filter and a variable analog receive filter for partial-response class-IV signaling over metallic cables is discussed. Optimum filters are analytically determined for maximum cable length and additive...
def take_dep(): departments = ["AE", "AG", "AR", "BT", "CE", "CH", "CS", "CY", "EC", "EE", "EX", "GG", "HS", "IE", "IM", "MA", "ME", "MF", "MI", "MT", "NA", "PH", "QD"] dep = raw_input("Enter Department (e.g \"CE\" for civil) : ") dep = dep.upper() while dep not in departments: print "Please en...
def predict(self, x): o, s = self.forward_propagation(x) return np.argmax(o, axis=1)
/* SampleEnergyField.hpp energy field with values computed and stored on the samples <NAME> 06/15/2009 */ #ifndef _SAMPLE_ENERGY_FIELD_HPP #define _SAMPLE_ENERGY_FIELD_HPP #include "DiscreteEnergyField.hpp" #include "EnergySampleStore.hpp" class SampleEnergyField : public DiscreteEnergyField { public: ...
So I really loved that Leonard Balsera came up with some cool beer names for the Beer Baron in episode one of Titansgrave. It appears that the Internet agrees with me, and a lot of folks have asked me if we’re going to release a homebrew recipe for The Old Chaotic Neutral. I would love to do that, but I’m not sure wh...
// Writes into section on specified offset // If offset points beyond section, it is resized to contain it void WriteAsRaw(std::string& data, uint64_t number, int64_t offset) { if (offset < 0) { LOG(FATAL) << "Trying to Write raw on negative offset"; } if (static_cast<std::string::size_type>(offset) + 3 >= da...
def new_file(self, event=None): tracing.user_is_interacting() file_editor = PyEditorFrame(self.editor_list) self.editor_list.add(file_editor, self.main_view.editor_widget, text=file_editor.get_file_name()) tracing.send_statement("created", "file")
class TestQuantityMimics: """Test Quantity Mimics that are not ndarray subclasses.""" @pytest.mark.parametrize('Mimic', (QuantityMimic, QuantityMimic2)) def test_mimic_input(self, Mimic): value = np.arange(10.) mimic = Mimic(value, u.m) q = u.Quantity(mimic) assert q.unit == ...
@Test public void testConfigureCacheUpdatePeriodWithPropertiesFileSet(){ factory=new PropertiesAndFilterConfigWroConfigurationFactory(filterConfig){ @Override protected Properties newDefaultProperties(){ final Properties props=new Properties(); props.put(ConfigConstants.cacheUpdatePeriod.name(),"15");...
/** * A transformation that computes the complement of an automaton. * <p> * This transformation computes the complement of an automaton: Terminal states * are inverted and missing transitions are added. * * @author nono * @version $Id: Complement.java 2 2006-08-24 14:41:48Z oqube $ */ public class Complement<...
//bwas25q2 #include <bits/stdc++.h> using namespace std; int t,b[400000],s0[400000],s1[400000],cnt1,cnt0; char a[400000]; int main() { scanf("%d",&t); for(int s=1;s<=t;s++) { cnt1=0,cnt0=0; cin>>a; int len=strlen(a); for(int i=0;i<len;i++) b[i+1]=a[i]-'0'; for(int i=1;i<=len;i++) { ...
package listener import ( "context" "net" "sync" "time" "github.com/dynamicgo/mesh" "github.com/dynamicgo/mesh-libp2p-network/netwrapper" "github.com/dynamicgo/slf4go" host "github.com/libp2p/go-libp2p-host" inet "github.com/libp2p/go-libp2p-net" protocol "github.com/libp2p/go-libp2p-protocol" manet "gith...
# Lint as: python3 """Tests for main_heatmap.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl.testing import absltest from absl.testing import parameterized import main_heatmap import numpy as np import pandas as pd SAMPLE_LOGS_LINK = 'https:/...
The Mall of America has 520 stores, 18,000 parking spaces, shark tanks and amusement park rides. Starting this week, it also has a poet. Twenty-seven-year-old Brian Sonia-Wallace beat out 4,000 others for a shot at the Mall of America writer in residence position, celebrating the Bloomington, Minnesota, mall's 25th bi...
Lynnfield, MA – Out of an abundance of caution and with an emphasis on its customers' wellness and safety, HP Hood LLC is voluntarily recalling certain code dates of protein drinks from its Sacramento, CA, facility, due to the potential for premature product spoilage. HP Hood is voluntarily recalling specific products...
package cn.edu.sysu.workflow.activiti.admission.timewheel; import com.netflix.loadbalancer.RandomRule; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.util.MultiValueMap; import org.springframework.web.client.RestTemplate; import java...
<gh_stars>1-10 misspell_inverted_index_file = "./misspell_inverted_index.string" misspell_keywords_file = "./misspells.txt" RASA_API_SERVER = "http://localhost:8000/webhooks/rest/webhook" session_ending_message = "/restart" session_restart_signal = session_ending_message ############################## # Default Resp...
from django.core.exceptions import ImproperlyConfigured class MissingStorageModule(ImproperlyConfigured): pass class MissingStorageClass(ImproperlyConfigured): pass class NoFileStorageConfigured(ImproperlyConfigured): pass
<reponame>gabrielboliveira/mqtt-temperature<filename>src/config_sample.h<gh_stars>0 #define DEBUG_ENABLED true #define FLASH_BUILTIN_LED true #define READING_DELAY 10000 // reading delay in milliseconds // Wifi: SSID and password const PROGMEM char* WIFI_SSID = "Wifi-SSID"; const PROGMEM char* WIFI_PASSWORD = "<PASSWO...
def allergen_get_name_list_from_id_list(allergen_id_list): allergen_name_list = [] for allergen in allergen_id_list: allergen_name = mongo.db.allergens.find_one( {"_id": allergen})["name"] allergen_name_list.append(allergen_name) return allergen_name_list
import { IMailSendPasswordResetDTO } from "./IMailSendPasswordResetDTO"; export interface IMailRepositoryDTO { sendPasswordReset(data: IMailSendPasswordResetDTO): Promise<boolean>; }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/// Converts a list of feedback answers to the format expected by the TMC server. pub fn prepare_feedback_form(feedback: Vec<FeedbackAnswer>) -> HashMap<String, String> { let mut form = HashMap::new(); for (i, answer) in feedback.into_iter().enumerate() { form.insert( format!("answers[{}][qu...
def subsetFileMapping(self, file_type=None, sample_id=None): subset = self.sampleFileMapping subset = utils.subsetBy(subset, "FILE_TYPE", file_type) subset = utils.subsetBy(subset, "ID", sample_id) return subset
/* * USE - UML based specification environment * Copyright (C) 1999-2010 <NAME>, University of Bremen * * 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; either version 2 of the * License, ...
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
<reponame>alfaz-003/nestjs_Project-API-<filename>src/account/account-purchase/account-purchaseSchema.ts import * as mongoose from 'mongoose'; export const accountPurchase = new mongoose.Schema({ p_order : {type: mongoose.Schema.Types.ObjectId , ref: 'PurcahseOrder'} }) export interface accountPurchase extends mo...
/** * @author <a href="mailto:mjobanek@redhat.com">Matous Jobanek</a> */ public class PomEquippedEmbeddedMavenForJarSampleTestCase { @Test public void testJarSampleBuild() { BuiltProject builtProject = EmbeddedMaven .forProject(pathToJarSamplePom) .setGoals("clean", "verify") ...
<filename>form_generator/Button.py from PIL import ImageFont, ImageDraw from form_generator.tools import get_class_id from form_generator.Box import Box class Button: def __init__(self, width, height, arc_radius, form_background_color, label_inside, label_inside_color, font_size): self.width = width ...
// MutationEffectFromString returns a MutationEffect from the provided string func MutationEffectFromString(mutationString string) (MutationEffect, error) { switch strings.ToLower(mutationString) { case "inventory": return MutationEffectInventory, nil case "xray": return MutationEffectXRay, nil case "increasedv...
/** * Created by BANGALORE on 5/13/2016. */ public class UserSymptomInput extends AppCompatActivity{ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.user_symptom_input); // super.onCreateDrawer(); //setContent...
def wait(self) -> None: time_between_calls = random.choice(self.delays) time_elapsed_between_last_call = round(time.time(), 2) - self.last_call_timestamp if time_elapsed_between_last_call < time_between_calls: time.sleep(round(time_between_calls - time_elapsed_between_last_call, 2))
/* Problem : You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate doubly linked list. These child lists may have one or more children of their own, and so on, to produce a multilevel data structure, as shown in t...
/** * Command that finds a target, spins up the shooter, aims, and shoots at a the correct speed for the target distance. */ public class ShootCommand extends CommandBase { private final ShooterSubsystem shooterSubsystem; private final ShooterLimelightSubsystem limelightSubsystem; private final DriveTrainSub...
<filename>wrappers/serial/calibration/modelpartition.py """ Radio interferometric calibration using an expectation maximisation algorithm See the SDP document "Model Partition Calibration View Packet" """ from processing_components.calibration.modelpartition import create_modelpartition from processing_components.cal...
# This script extracted from https://github.com/socialize/django-tastypie/commit/6a98aa4ff344105f8b5090a2d4f2d407bccae089 # Inheriting django-tastypie LICENSE for this file only # Copyright (c) 2010, <NAME> # All rights reserved. # The following notice applies to this file only, and has no bearing # on other material...