content
stringlengths
10
4.9M
<gh_stars>10-100 import pytest from slackclient._channel import Channel from slackclient._server import Server from slackclient._client import SlackClient @pytest.fixture def server(monkeypatch): myserver = Server('xoxp-1234123412341234-12341234-1234', False) return myserver @pytest.fixture def slackclient(se...
import java.io.*; import java.math.*; import java.util.*; public class Solution { static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) throws Exception{ StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); int[] size = ...
/** * Returns an iterator for the elements of BAG. */ @LispMethod(comment = "Returns an iterator for the elements of BAG.") public static final SubLObject new_bag_iterator_alt(SubLObject v_bag) { SubLTrampolineFile.checkType(v_bag, BAG_P); return new_bag_contents_iterator(bag_struct_unique...
<reponame>cxMiguelSilva/kics package testcases // E2E-CLI-013 - KICS root command list-platforms // should return all the supported platforms in the CLI func init() { //nolint testSample := TestCase{ Name: "should list all supported platforms [E2E-CLI-013]", Args: args{ Args: []cmdArgs{ []string{"list-plat...
<filename>src/main/java/com/restteam/ong/controllers/dto/AuthenticationResponse.java package com.restteam.ong.controllers.dto; import lombok.Data; @Data public class AuthenticationResponse{ private String jwt; public AuthenticationResponse(String jwt) { this.jwt = jwt; } public Authenticati...
<filename>vk_parser/vk_parser.py import vk_api from private_configurations import LOGIN, PASSWORD, AUTH2CODE class VKAuthHandler: def __init__(self, login: str, password: str, auth2step=False): """ :param login: str :param password: str :param auth2step: bool """ se...
Giants Agree to Minor-League Deal With Kensuke Tanaka by Eric He Breaking Down the Grizzlies’ Mauling of the Warriors Breaking Down the Grizzlies’ Mauling of the Warriors by Michael Springer In an under-the-radar move, the A’s acquired right-handed relief pitcher Chris Resop from the Pittsburgh Pirates this off-seas...
s=input() vowel=['a','e','o','u','y','i'] strings=s.lower() new_strings=[] for i in range(len(strings)): if strings[i] not in vowel: new_strings.append(strings[i]) string='.'.join(new_strings) print('.',string,sep='')
/** * Called by <code>FlxG.drawPlugins()</code> after the game state has been drawn. * Cycles through cameras and calls <code>drawDebug()</code> on each one. */ @Override public void draw() { FlxCamera camera = FlxG.getActiveCamera(); if (cameras == null) cameras = FlxG.cameras; if (!cameras.conta...
A panel discussion on Wednesday night’s episode of the Republican talk show “Hannity” ended with everyone agreeing that President Barack Obama must have used the Internal Revenue Service to steal the 2012 election, keeping tea partiers so busy with filling out documents to obtain tax exempt status that they were unable...
// READ (List of Customers) public List<PlaneModel> read(String planeManufacturerId) throws SQLException { String sqlQuery = "select t01.id" + " , t01.label" + " , t02.id as plane_manufacturer_id" + " , t02.label as plane_manufacturer_label" + " from plane_models t01,...
// TestEstablish sets up a basic BGP connection and confirms that traffic is forwarded according to // it. func TestEstablish(t *testing.T) { t.Logf("Start DUT config load:") dut := ondatra.DUT(t, "dut") t.Logf("Start DUT interface Config") configureDUT(t, dut) t.Logf("Start DUT BGP Config") dutConfPath := dut.Co...
<gh_stars>10-100 //--------------------------------------------------------------------------- // // This file is the copyrighted property of Tableau Software and is protected // by registered patents and other applicable U.S. and international laws and // regulations. // // You may adapt this file and modify it to fit...
Firstly, thank you all *so much* for your support. It means a great deal to me that you're willing to support the development and maintenance of the CKAN, and I want to be able to return that kindness by keeping you informed on my progress. April was the first month of my Patreon campaign, and marked my first dedicated...
def _plot_one_example( orig_radar_matrix, translated_radar_matrix, rotated_radar_matrix, noised_radar_matrix, output_dir_name, full_storm_id_string, storm_time_unix_sec): dummy_heights_m_agl = numpy.array([1000, 2000, 3000, 4000], dtype=int) concat_radar_matrix = numpy.concatenate(( ...
<reponame>Thanduriel/StableNN<gh_stars>0 #pragma once #include <functional> #include <torch/torch.h> #include "hyperparam.hpp" namespace nn { // network output, target, data using LossFn = std::function<torch::Tensor(const torch::Tensor&, const torch::Tensor&, const torch::Tensor&)>; torch::Tensor lpLoss(const t...
<reponame>NyBatis/NyBatisCore package org.nybatis.core.file.handler; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectWriter; import org.nybatis.core.exception.unchecked.UncheckedIOException; import org.nybatis.core.exception.unchecked.JsonIOException; import org.n...
package objects_and_classes_primer.Exercises; import java.util.Scanner; public class Exercise12 { private static final Scanner sc = new Scanner(System.in); public static void main(String[] args){ System.out.print("Enter the endpoints of the first line segment: "); double x1 = sc.nextDouble();...
import * as path from "path"; import * as chai from "chai"; import * as deepEql from "deep-eql"; import { getCommands } from "../src/projectBuilder"; const inputPath = path.join(__dirname, "..", "..", "test", "inputs"); const xcmlPath = path.join(inputPath, "helloworld_Model.xcml"); const xcbuildPath = "/xcbuild"; con...
/** * Better, but still hard to read. Failed assertion messages are ok. * * Framework hasn't been updated in a while. No longer bundled in JUnit 5 like it was in JUnit 4. */ @Test void objectHasPropertyHamcrest() { MatcherAssert.assertThat(dummyFruits, Matchers.anyOf(Matc...
<gh_stars>0 // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT ...
/* * This file is part of the Jikes RVM project (http://jikesrvm.org). * * This file is licensed to You under the Common Public License (CPL); * You may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.opensource.org/licenses/cpl1.0.php *...
package flag import ( "testing" beaconcommon "github.com/protolambda/zrnt/eth2/beacon/common" "github.com/spf13/pflag" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestRoot(t *testing.T) { root := beaconcommon.Root{} f := pflag.NewFlagSet("test", pflag.ContinueOnError) Ro...
package utils import ( "strings" "path/filepath" "github.com/spf13/viper" log "github.com/sirupsen/logrus" ) // Get configuration file's path structure. func GetConfigFile(configFileName string) (string, string, string) { path := filepath.Dir(configFileName) file := filepath.Base(configFileName) ctype := file...
def debug_compilation_time(message): global _tic if message and global_config.print_compilation_time: print(f"compile_pipeshard_executable::{message}: " f"{time.time() - _tic:.2f} s") _tic = time.time()
def esp_to_anymail_event(self, esp_event): esp_type = getfirst(esp_event, ['event', 'type'], 'unknown') if esp_type == 'inbound': assert self.signal is not tracking self.signal = inbound return self.mandrill_inbound_to_anymail_event(esp_event) else: ...
package com.example.myapplicationvalidation; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { EditText Num1; EditText Num2; TextView R...
<reponame>iqb-berlin/testcenter import { BookletConfigData } from 'testcenter-common/classes/booklet-config-data.class'; export class BookletConfig extends BookletConfigData { setFromKeyValuePairs(config: { [key: string]: string }): void { Object.keys(config) .forEach(key => { if (this[key]) { ...
OTTAWA — Last October, the House of Commons agreed to send “military assets,” in the form of CF-18 fighters, to Iraq to battle the Islamic State. The resolution presented by the government said Canada would not deploy troops on the ground in combat operations. Yet in a briefing to media on Monday by Lieutenant-General...
/** * Created by Abhishek on 5/13/2016. */ public class editAdapter extends RecyclerView.Adapter<editAdapter.listHolder> { Context context; List<GalleryPhotoAlbum> albumList; int imgwidth; ArrayList<Integer> countList; public editAdapter(Context baseContext, List<GalleryPhotoAlbum> albumList, Arr...
<reponame>dot-cat/shp_android_clients package space.dotcat.assistant.di.activitiesComponents.roomsActivity; import dagger.Subcomponent; import space.dotcat.assistant.di.activitiesComponents.ActivityScope; import space.dotcat.assistant.screen.roomList.RoomsActivity; @Subcomponent(modules = RoomsModule.class) @Activity...
<gh_stars>1-10 fn main() { println!("Run example tests: cargo test --example=at24c04-test1 -- --test-threads=1"); } #[cfg(test)] mod test { use eeprom24x::Eeprom24x; use eeprom24x::SlaveAddr; use ftdi_embedded_hal as hal; use ftdi_embedded_hal::x232h::FTx232H; use std::thread::sleep; use st...
/** * Created by "iqos_jay@outlook.com" on 2018/8/27. */ public class SelectContactsPresenter extends BasePresenter<SelectContactsView> { public static final String SELECTED_CONTACTS = "selected_contacts"; private List<ContactsInfo> mContactsInfoList = new LinkedList<>(); /** * Constructor of BasePr...
<reponame>OIEIEIO/ombre-working-old-chain-before-for-test<gh_stars>100-1000 // Copyright (c) 2014-2018, The Monero Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistrib...
<filename>include/dtc/utility/chrono.hpp<gh_stars>10-100 /****************************************************************************** * * * Copyright (c) 2018, <NAME> and <NAME>, * * University of Illinois at Urbana-Champai...
/** * An 'id' -> a string of characters that are all "id like", normally * [a-zA-Z_][a-zA-Z0-9_]+, followed by a non id-like character. * * The definition of what is id-like can be configured when creating your * grammar with the 'idchars' keyword argument. * * Returns the number of characters consumed (0 for in...
/* Calculate the mousepointer from 2 IR sources (Default) */ void CWiiRemote::CalculateMousePointer(int x1, int y1, int x2, int y2) { int x3, y3; x3 = ( (x1 + x2) / 2 ); y3 = ( (y1 + y2) / 2 ); x3 = (int)( ((float)x3 / (float)CWIID_IR_X_MAX) * m_MaxX); y3 = (int)( ((float)y3 / (float)CWIID_IR_Y_MAX) * m_MaxY)...
<reponame>ourstudio-se/ouretl-abstractions<gh_stars>0 package ouretl // DataMessage is a wrapper abstraction for the raw message provided // to the DataHandlerPlugins. Apart from the actual data // content, the message has an `Origin` field containing // a WorkerPlugin name and an `ID` field with a unique // message I...
Police in California have arrested a man this week for spray-painting “Taste likes hate” on the side of a Chick-fil-A restaurant in West Hollywood. The graffiti was accompanied by an image of a cow holding a paint brush—a dig at the company’s “Eat Mor Chikin” campaign. Artist Manuel Castro was arrested on Wednesday af...
// Searching using Search Bar Filter in React Native List View // https://aboutreact.com/react-native-search-bar-filter-on-listview/ // import React in our code import React, {useState, useEffect} from 'react'; //import {funcGetSelBusStop} from '../../function/funcGetSelBusStop'; import {Text, StyleSheet, View, FlatLi...
/* Copyright (c) 2011, TrafficLab, Ericsson Research, Hungary * Copyright (c) 2012, CPqD, Brazil * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must ...
/* * Copyright (c) 2019 Bixbit - <NAME>. All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.oauth.as.console; import java.util.List; import java.util.function.Function; import pl.edu.icm.unity.oauth.as.token.OAuthTokenEndpoint; import pl.edu.icm.unity.oauth.as.webau...
package com.github.gpluscb.toni.statsposting.dbots; public class StatsResponse { private final int shardCount; private final long guildCount; public StatsResponse(int shardCount, long guildCount) { this.shardCount = shardCount; this.guildCount = guildCount; } public int getShardCo...
import os import json from utils import initlogger from API.tickerprice import StockTicker class Variables: logger = initlogger.getloggerobj(os.path.basename(__file__)) logger.info("Logger init") ticker = StockTicker() SYMBOL, PRICE, DELETE = range(3) sym, thresh = "", 0 nifty_stocks = json.l...
Genetically high angiotensin-converting enzyme concentrations causally increase asthma risk: A meta-analysis using Mendelian randomization Objectives This meta-analysis aimed to test the association of angiotensin-converting enzyme (ACE) gene I/D polymorphism with asthma risk and circulating ACE changes. Methods Publi...
<reponame>franderg/PULPino<gh_stars>10-100 /* FreeRTOS V8.2.2 - Copyright (C) 2015 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute...
Dynamic bloodflow studies of space-occupying lesions in the liver. Blood flow to space-occupying lesions in the liver was studied by scintillation camera in a series of 170 patients after injection of 113m In-colloid. The curves obtained show a biphasic curve over the normal liver, absence of portal flow over a malign...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Team-XBMC # # 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 3 of the License, or # (at your option...
package hdfs import ( "errors" "github.com/argoproj/argo-events/common" gwcommon "github.com/argoproj/argo-events/gateways/common" "github.com/ghodss/yaml" corev1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes" ) // EventSourceExecutor implements Eventing type EventSourceExecutor struct { Log *common.ArgoE...
/** * Check if this DIDDocument is expired. * * @return true if expired, false otherwise */ public boolean isExpired() { Calendar now = Calendar.getInstance(Constants.UTC); Calendar expireDate = Calendar.getInstance(Constants.UTC); expireDate.setTime(expires); return now.after(expireDate); }
/** * This class is designed to compute one kind * of food that is different from any kind of * food in "last five meals", according to the * probability of every level of foods. * * @author Shuolin Yang * */ public class GetFood { public GetFood(FoodsToChoose foodsInput) { foods = foodsInput; } pu...
// // main.cpp // 116A // // Created by Parsa Alimohammadi on 3/23/1399 AP. // Copyright © 1399 Parsa Alimohammadi. All rights reserved. // #include <iostream> using namespace std; int main() { int n,sum=0,maxs=0; cin >> n; for (int a,b; n>0; n--) { cin >> a >> b; sum += ...
Structural stability and non-catalytic nucleation inhibition effect of Si–Zr–B mould coating on undercooled superalloy melt Abstract The investment moulding technique was first adopted to prepare a SiO2–ZrO2–B2O3 (Si–Zr–B) substrate layer on the inner surface of the mould, by employing SiO2 glass dust and ZrO2 powder,...
def openapi_types(): return { 'object_id': (str,), 'display_name': (str,), 'street_side': (str,), 'business_name': (str,), 'address_line1': (str,), 'address_line2': (str,), 'address_line3': (str,), 'cit...
/** * Configuration properties relating to the sns service for gatekeeper */ @Component @ConfigurationProperties(prefix="gatekeeper") public class GatekeeperSnsProperties { private SnsProperties sns; public SnsProperties getSns() { return sns; } public GatekeeperSnsProperties setSns(SnsProperties sns) ...
/** * Obtains an instance from the specified currency pair. * <p> * If a currency pair does not have an implementation, an FX index will be created. * * @param currencyPair the currency pair * @return the index */ public static FxIndex of(CurrencyPair currencyPair) { ArgChecker.notNull(currency...
Polymorphisms in the IL‐1 gene cluster influence systemic inflammation in patients at risk for acute‐on‐chronic liver failure Acute‐on‐chronic liver failure (ACLF) in cirrhosis is an increasingly recognized syndrome characterized by acute decompensation, organ failure(s) and high short‐term mortality. Recent findings ...
<filename>Pythonteste/test/calculadoradeporcentagem.py valor = float(input('Digite o Valor que quer aplicar o desconto: R$')) desci = float(input('Digite o desconto que quer aplicar: ')) descf = desci / 100 final = valor - (descf * valor) print('O valor R${} com {}% de desconto será R${:.2f}'.format(valor, desci, final...
/** * Test that a chain can be created for an account other than the HD account 0 of the BIP32 spec. * In this test a chain pointing to account 44 is created and some addresses tested. * This is a BIP44/ Trezor compatible chain. See https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki * * In th...
/** * Unit tests for {@link AnnotatedControllerConfigurer}, focusing on detection * and mapping of handler methods to schema fields. * * @author Rossen Stoyanchev */ @SuppressWarnings({"rawtypes", "unused"}) public class BatchMappingDetectionTests { private final BatchLoaderRegistry batchLoaderRegistry = new Def...
/** * Test cube dim. * * @throws Exception the exception */ @Test(dependsOnGroups = "first") public void testCubeDim() throws Exception { CubeMetastoreClient client = CubeMetastoreClient.getInstance(conf); String dimTblName = "ziptableMeta"; List<FieldSchema> dimColumns = new ArrayList<FieldSc...
Joseph Niemeyer (Photo: Provided/Kenton County Detention Center) KENTON COUNTY, KY (FOX19) – A former youth pastor and school volunteer will spend at least 17 years behind bars after admitting guilt on charges of sexual abuse and sodomy of a minor. Joseph Niemeyer, 56, worked with youth at the Banklick Baptist Church...
<gh_stars>0 // Copyright (c) 2004-present Facebook All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code generated by entc, DO NOT EDIT. package ent import ( "context" "fmt" "github.com/facebook/ent/dialect/sql" "github.com/facebook/...
Microstrip lowpass filters with improved frequency responses using coupled-line hairpin resonators In this paper, microstrip lowpass filters (LPFs) with improved frequency responses are developed by cascading a coupled-line hairpin resonator with quarter-wavelength microstrip lines. The equivalent transmission line ci...
<filename>OClusterMapView+Sample/OCDistanceCalculationPerformance.h // // OCDistanceCalculationPerformance.h // OClusterMapView+Sample // // Created by Markus on 25.09.13. // // #import <Foundation/Foundation.h> @interface OCDistanceCalculationPerformance : NSObject + (void)testDistanceCalculationPerformance; @e...
N, K = map(int, input().split()) As = list(map(int, input().split())) mem = [0]*N mem[0] = 1 pos = 0 cic = 0 j = 0 for k in range(1,K+1): pos = As[pos] - 1 if mem[pos] == 0: mem[pos] = 1 else: j = k cic = pos break if k == K: print(pos+1) exit() pos = 0 if cic == pos: i = 0 else: ...
<gh_stars>0 /* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Discovers files relevant to the build of a given crate, and //! prints out a determistic SHA-256 of the entire crate contents. use anyhow::Result; use clap::Parser; use file_list::FileLi...
/// Delete generated pos files for jobs at the provided data dir pub fn delete_pos_files(jobs: &Vec<Job>, data_dir: String) { for job in jobs { let file_name = job.file_name(); let path = Path::new(data_dir.clone().as_str()).join(file_name); info!("deleting post file {}...", path.display());...
/** * Update the progressbar with a new value * * @param val Value */ public void progressChanged(int val) { for (IProgressObserver listener : listeners) { listener.progressChanged(val); } }
Referendum was born from similar feeling to UK’s Brexit vote, but what Viktor Orbán wants is more of a threat to EU’s future Hungarian right does not want to leave the EU. It wants to subvert it On walls across Budapest this week, a witty opposition poster mocked how the Hungarian government wanted to take European U...
Toyota, Australia's last remaining automotive manufacturer, this afternoon has confirmed what many have suspected for some time: it's pulling out of Australia in 2017. First Ford pulled out, then Holden, now Toyota. The Australian manufacturing industry is now in quite a state. The company issued a statement today, s...
/** * This class handles the pyramid floor generation * * @author Tyluur<itstyluur@gmail.com> * @since February 15th, 2015 */ public class PyramidFloor implements PyramidHunterConstants { /** * Constructs a new {@link PyramidFloor} {@code Object} */ public PyramidFloor() { this.boundChunks = RegionBuilder...
Republican presidential candidate Donald Trump speaks as Wisconsin Gov. Scott Walker listens during the first Republican presidential debate Aug. 6 in Cleveland. On Saturday, Trump attacked Walker during the business mogul’s visit to the Iowa State Fair. Credit: Andrew Harnik By of the Billionaire businessman Donald ...
/** * @brief Get data from terminal state * * @param s : a terminal state * * @return the data associated with the terminal state @a s, * or TRIE_DATA_ERROR if @a s is not a terminal state * */ TrieData trie_state_get_terminal_data (const TrieState *s) { TrieIndex tail_index; TrieIndex...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; bool if_possible(vector<ll> &a, vector<ll> &b,ll round) { ll n=b.size(); ll comp=round-n; ll considering_rounds=round-round/4; ll first=0; if(comp>=considering_rounds) first+=considering_rounds*100; els...
<filename>src/Game/Value/Internal.hs module Game.Value.Internal ( GameValue(..) ) where import DSpies.Prelude newtype GameValue = GameValue {leftUtility :: Double} deriving (Eq, Show)
/** * vcalendar. 2018 * * @author Eduard Maximovich <edward.vstock@gmail.com> */ public class App extends Application { @Override public void onCreate() { super.onCreate(); VCalendar.initialize(this, true); } }
Google is about to make its biggest push yet to get Glass in the hands of as many people as possible. The Verge has obtained documents indicating that the company will open up its "Explorer Program" and make Glass available to anyone who wants to purchase a pair, possibly as soon as next week. It’ll be a limited-time o...
/*** * Test for {@code EOabs} * checks if the base value is returned as a non-negative number */ @Test void EOabs() { final EOfloat left = new EOfloat(-12.0); final EOfloat absolute = left.EOneg(); MatcherAssert.assertThat( absolute._getData().toFloat(), ...
package exec import ( "amp/back-go/common" "amp/back-go/protocol" "errors" "fmt" "github.com/golang/protobuf/proto" "github.com/yddeng/dnet" "github.com/yddeng/dnet/drpc" "github.com/yddeng/utils/task" "log" "math/rand" "net" "time" ) type Config struct { Name string `json:"name"` Inet string `j...
def exec_maven(mvn_args=()): run_cmd([os.path.join(SPARK_HOME, "build", "mvn")] + mvn_args)
def distance_to(self, other, radius=EARTH_RADIUS): return radius * math.acos( math.sin(self.rad_lat) * math.sin(other.rad_lat) + math.cos(self.rad_lat) * math.cos(other.rad_lat) * math.cos(self.rad_lon - other.rad_lon) )
<filename>src/app/cells/options-cell/options-cell.component.ts import { Component, Input } from '@angular/core'; import { CellComponent, ColumnConfig } from 'material-dynamic-table'; import { Product } from '../../product'; @Component({ selector: 'ld-options-cell', templateUrl: './options-cell.component.html' ...
<gh_stars>100-1000 # dockerpty: test_tty.py. # # Copyright 2014 <NAME> <<EMAIL>> # # 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 ...
def edge_type(self, u, v): if self.has_edge(u, v): return EdgeType.arrow.value elif self.has_bidirected_edge(u, v): return EdgeType.bidirected.value elif self.has_circle_edge(u, v): return EdgeType.circle.value else: return None
// createMetricNamespace returns metric namespace based on given `ns` which is used as a prefix; all dynamic elements // in the `metricName` are defined based on content of map `dynamicElements` func (creator *nsCreator) createMetricNamespace(ns snap.Namespace, metricName string) (snap.Namespace, error) { metricName =...
// Copyright (c) 2019,CAOHONGJU All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package cache import ( "sync" "github.com/cnotch/ipchub/av/codec/hevc" "github.com/cnotch/ipchub/av/format/rtp" "github.com/cnotch/queue" ) // HevcCache 画面...
year=int(input())+1 def setelement(arr): arr=str(arr) return len(list(set(arr))) for i in range(1000): if setelement(year)!=4: year=year+1 continue else: print(year) break
#include <stdio.h> #include "zip.h" int deanonymize; int main(int argc, char **argv) { if (argc < 2) { printf("Usage: %s <path_to_DOCX>\n", argv[0]); printf("Optionaly provide output file as second argument.\n"); printf("-d as second argument will deanonymize given file. You can optionaly provide output file a...
import os import argparse import tqdm from itertools import chain from collections import OrderedDict import torch import torchvision import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import math import pdb from PIL import Image import numpy as np from...
<gh_stars>10-100 /* Finish access to a mmap'd malloc managed region. Copyright 1992 Free Software Foundation, Inc. Contributed by <NAME> at Cygnus Support. <EMAIL> This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU L...
Children and careers takes the best part of a year. This is little use to someone who needs to respond quickly to a domestic crisis, and if you become pregnant shortly after the closing date your application is unlikely to be sorted out before the baby is 10 months old and not within the limits of maternity leave. Sec...
/// Build a new Martian adapter with the given registry of Martian stages /// Arguments: /// - `stage_map`: names and implementations of the Martian stages that can be run by this binary. pub fn new(stage_map: HashMap<String, Box<dyn RawMartianStage>, S>) -> MartianAdapter<S> { MartianAdapter { sta...
def contactChangedNick(self, person, newnick): oldname = person.name if oldname in self.contacts: del self.contacts[oldname] person.name = newnick self.contacts[newnick] = person if oldname in self.onlineContacts: del self.onlineContacts[ol...
# Argumentos posicionais def describle_pet(animal_type, pet_name): """[Exibe informações sobre o animal de estimação] Args: animal_type ([string]): [Qual o tipo do animal] pet_name ([string]): [Nome do animal] """ print(f"\nI have a {animal_type}.") print(f"My {animal_type}'s name ...
Calling All Android Users: Open Alpha! Alright, I’m super excited to be able to invite you guys to alpha test the official Android app! But before you get to excited let’s go over a few things: The only features that currently work are: Just and Similar searches. Tap the search icon in the top bar to open the modal....
/** * The implementation of {@link IncomingWebhook}. */ public class IncomingWebhookImpl extends WebhookImpl implements IncomingWebhook { private final String token; /** * Creates a new incoming webhook. * * @param api The discord api instance. * @param data The json data of the webhook...
<gh_stars>0 /* Import2: An RPG */ package studio.ignitionigloogames.twistedtrek.import2.maze.objects; import studio.ignitionigloogames.randomrange.RandomRange; import studio.ignitionigloogames.twistedtrek.import2.maze.Maze; import studio.ignitionigloogames.twistedtrek.import2.maze.abc.AbstractGround; import studio.ign...
/** * Setup the Video preview. * @param texture */ public void SurfaceTextureCreatedCallback(SurfaceTexture texture) { try { videoService.showPreview(texture); if (this.videoService.canStart()) { this.videoService.start(); } else { ...
Laying the Foundation for Foundational Technologies The authors of “Patenting Foundational Technologies: Lessons From CRISPR and Other Core Biotechnologies” (Feeney et al. 2018) propose significant guidelines to ensure both that emerging technologies profit the inventor(s), and that medical breakthroughs coming from s...