content
stringlengths
10
4.9M
/******************************************************************************* * * Function avct_l2c_config_cfm_cback * * Description This is the L2CAP config confirm callback function. * * * Returns void * ******************************************************************************/ ...
async def _update_phising_urls(self): urls = await self.client.api.fetch_phising_url_list() self.client.logger.info("Updated phising url list") self.phising_urls = urls
import { IMock, IPlayable } from "../moq"; import { PresetBuilder } from "./preset-builder"; import { ExpectedExpressions } from "../expected-expressions/expected-expressions"; import { MimicsPreset } from "../presets/mimics.preset"; import { ReturnsPreset } from "../presets/returns.preset"; import { ThrowsPreset } fro...
// AddRouteToMonitoring adds a new route to the config. func (a *API) AddRouteToMonitoring(w http.ResponseWriter, r *http.Request) { var ( t inputRequest decoder = json.NewDecoder(r.Body) ) if err := decoder.Decode(&t); err != nil { panic(err) } requestInstance := request.New(t.URL, t.Headers, t.Params...
<filename>examples/simple.c #pragma scop for (int i = 0; i < N; i++) for (int j = 0; j < N; j++) { A[i][j] = 0; } #pragma endscop
/** * If the resource serving servlet context is available and the resource * is available in the context, create a URL to the resource in that context. * If not, create a local URL for the requested resource. */ protected String resolveResourceContextPath(HttpServletRequest request, String resource...
<reponame>epicbytes/next-template<filename>src/components/fields/password/password.tsx import { FC } from "react" import { useField } from "react-final-form" import type { PasswordProps } from "./password.d" import { composeValidators } from "@/lib/form-errors" import cc from "classcat" export const Password: FC<Passw...
/** Multi delete query pre-check. @param thd Thread handler @param tables Global/local table list @retval FALSE OK @retval TRUE error */ bool multi_delete_precheck(THD *thd, TABLE_LIST *tables) { SELECT_LEX *select_lex= thd->lex->first_select_lex(); TABLE_LIST *aux_tables= thd->lex->auxiliar...
/** * {@link InterfaceCriteria} that tests whether a given network interface and * address satisfy <i>any</i> of a contained set of {@link InterfaceCriteria}. * * @author Brian Stansberry */ public class AnyInterfaceCriteria implements InterfaceCriteria { private static final long serialVersionUID = 338450006...
Michigan high students are fighting a state bill that would let employers pay workers under 20 less than the minimum wage. High School Democrats of America has collected 100 signatures against the proposal by the state's Senate Commerce Committee, according to local media reports. "I just want to make sure that people...
<filename>app/src/main/java/org/fundacionparaguaya/adviserplatform/jobs/SyncJob.java<gh_stars>0 package org.fundacionparaguaya.adviserplatform.jobs; import android.support.annotation.NonNull; import android.util.Log; import com.evernote.android.job.Job; import com.evernote.android.job.JobManager; import com.ev...
<gh_stars>0 from mediapub_extensions.ApiWrappers.Wordpress import Wordpress from mediapub_extensions.ApiWrappers.Snowflake import Snowflake from mediapub_extensions.ApiWrappers.Snowflake import GoogleAnalytics from mediapub_extensions.ApiWrappers.BigQuery import BigQuery from mediapub_extensions.ApiWrappers.SQLServer i...
Bringing the brain into the test tube: an experiment illustrating the effect of ethanol on nerve terminal viability Ethanol is primarily responsible for the behavioural effects of acute alcoholic beverage consumption, which involves central nervous system dysfunction. The mechanisms of ethanol action in the nervous sy...
Chuck E. Cheese's fined for child-labor violations BAY AREA Nine Chuck E. Cheese's pizza parlors in the Bay Area have been fined a total of more than $28,000 for violating federal child-labor laws by having teenagers operate dangerous equipment, authorities said Tuesday. Restaurants in Cupertino, Redwood City, Brentw...
/******************************************************************************* FREE.C Author: <NAME> Date: 07-MAY-90 Copyright (c) 1992-5 MusculoGraphics, Inc. All rights reserved. Portions of this source code are copyrighted by MusculoGraphics, Inc. Description: Routines: free_mod...
<reponame>mikedig/cdb-productivity-api #include "cdb_tile/Tile.h" #include <algorithm> #include <iostream> #include <iomanip> #include <sstream> #include <math.h> namespace cognitics { namespace cdb { std::string get_uref_subdir(uint32_t uref) { std::stringstream ss; ss...
import { getLoggerFor } from '../../logging/LogUtil'; import { InternalServerError } from '../errors/InternalServerError'; import type { AsyncHandler } from './AsyncHandler'; import { findHandler } from './HandlerUtil'; /** * A composite handler that tries multiple handlers one by one * until it finds a handler that...
/** * Tries to transform the given object to match the given target type. * <p> * The class is only transformed if it implements the {@link Transformable} interface. * <p> * Transformations are done recursively until a matching transformation happens or the class tried * to transform does ...
#include "Window.h" #include "glm\glm.hpp" #include "glm\gtc\matrix_transform.hpp" #include "glm\gtc\matrix_access.hpp" #include "ResourcesLoader.h" #include "Random.h" #include "Quad.h" #include "Shader.h" #include "Camera.h" #include "Cube.h" #include "Sphere.h" #include "Utils.h" #include "TextRenderer.h" #include...
a=map(int, raw_input().split()) b=map(int, raw_input().split()) c=input() r1=a[0]+a[1]+a[2] r2=b[0]+b[1]+b[2] res= r1//5 + r2//10 if r1%5!=0: res+=1 if r2%10!=0: res+=1 if res<=c: print "YES" else: print "NO"
/* * Output a message in the lower left corner of the screen * and wait for carriage return. */ void error(const char *fmt, PARG *parg) { int col = 0; static char return_to_continue[] = " (press RETURN)"; errmsgs++; if (any_display && is_tty) { if (!oldbot) squish_check(); at_exit(); clear_bot(); at_...
/** * 1.2 Retrieve service provider config w/ authz */ @Test public void testRetrieveSPConfigWithAuth() { Response<JsonObject> resp = client.getSrvProvConf(); assertResponse(resp); }
Proposal by Australian Muslim group to allow 'safe spaces' for young Muslims to discuss 'inflammatory' issues causes some to think. A Muslim group in Australia is demanding taxpayer funds be diverted from anti-terrorism programs to create a “safe space” for angry young Muslims to express “inflammatory” comments that t...
<gh_stars>10-100 package com.etheller.warsmash.units; /** * A hashable wrapper object for a String that can be used as the key in a * hashtable, but which disregards case as a key -- except that it will remember * case if directly asked for its value. The game needs this to be able to show * the original case of a...
<gh_stars>0 import { Injectable } from '@angular/core'; import { HttpClient, HttpErrorResponse, } from '@angular/common/http'; import { Subject } from 'rxjs'; import { environment } from 'src/environments/environment'; export interface APIQueryResult { row_count: number; column_names?: string[]; rows?: any[]...
<filename>packages/map-editor/src/main.ts<gh_stars>1-10 /** * @license * Copyright 2021 piyoppi * SPDX-License-Identifier: MIT */ export { GridImageGenerator } from './GridImageGenerator' export { CallbackItem } from './CallbackItem' export { MapCanvas } from './MapCanvas' export { Projects, Project } from './Proj...
def register(seconds, all_users): participants = [] started_message = "New%20session%20started.%20Type%20'register'%20to%20enter." api.post_message(started_message) api.post_message("After%2060%20seconds%20a%20loser%20will%20be%20chosen%20to%20bring%20coffee%20for%20the%20winners!") time.sleep(5*sec...
/******************************************************************************** * Copyright (c) 2020 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made...
package com.notronix.lw.impl.method.auth; import com.google.gson.Gson; import com.notronix.lw.impl.method.AbstractLinnworksAPIMethod; import java.time.Instant; public class GetServerUTCTimeMethod extends AbstractLinnworksAPIMethod<Instant> { @Override public String getURI() { return "Auth/...
Ronald A. Fisher and the improvement of humankind In this paper we argue that the motif underlying Ronald Aylmer Fisher (1890-1962) scientific endeavors was eugenics and the notion of differential fertility. Fisher’s contribution to Neo-Darwinian synthesis and the development of several basic concepts of modern statis...
# --*-coding:utf-8-*-- def f(str): s = {} s[0] = 0 pat = 0 bits = [2**i for i in range(26)] lenOfStr = len(str) for c in str: pat ^= bits[ord(c)-97] s[pat] = min( min(s.get(pat^bit, lenOfStr) + 1 for bit in bits), s.get(pat, lenOfStr)) if pat == 0...
<reponame>Istarnion/RGB-D-Lauchpad #ifndef FILES_H_ #define FILES_H_ typedef struct { int width; int height; unsigned int *pixels; // 3-channel RGB } Image; char *LoadTextFile(const char *filename); void FreeTextFile(char *file_data); Image *LoadImage(Image *img, const char *filename); void FreeImage(Ima...
Effectiveness of the addition of therapeutic alliance with minimal intervention in the treatment of patients with chronic, nonspecific low back pain and low risk of involvement of psychosocial factors: a study protocol for a randomized controlled trial (TalkBack trial) Background The stratified model of care has been ...
<reponame>LoganDark/BetterFoliage package mods.betterfoliage.mixin; import mods.betterfoliage.Hooks; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.util.math.BlockPos; import net.minecraft.world.BlockView; import org.spongepowered...
Linda Horan sued state for card to let her buy marijuana in Maine An Alstead woman who successfully fought to get a medical marijuana ID card in New Hampshire before state dispensaries opened has died.Linda Horan, 64, sought medical marijuana to help relieve the pain and nausea that she experienced from stage 4 lung c...
/** * Executes the specified method on the provided cached object. * @param cache The cached object on which the method is executed. * @param methodName The method to execute. * @param paramTypes An array containing the types of the parameters of the method (used to distinguish similar * ...
/** * Server part of oracle program * * @author Alexander Savchenko * @version 1.0 * @since 2019-07-23 */ public class Server { private static final Logger LOG = LoggerFactory.getLogger(Server.class); private static final Map<String, Command> COMMANDS = StreamEx.of(Command.values()).toMap(Comm...
"""Execution workers.""" import asyncio import sys, os, json import re from tempfile import gettempdir from pathlib import Path from shutil import copyfile import concurrent.futures as cf from .core import TaskBase from .helpers import get_available_cpus, read_and_display_async, save, load_and_run import logging lo...
/** * SchedulerFactoryBean instance providing quartz bean to the spring. * * @return a SchedulerFactoryBean instance */ @Bean public SchedulerFactoryBean schedulerFactoryBean() { final SchedulerFactoryBean factory = new SchedulerFactoryBean(); factory.setJobFactory(springBeanJobFactory()); fac...
<gh_stars>0 import crcmod from selfdrive.car.hyundai.values import CAR, CHECKSUM hyundai_checksum = crcmod.mkCrcFun(0x11D, initCrc=0xFD, rev=False, xorOut=0xdf) def make_can_msg(addr, dat, alt): return [addr, 0, dat, alt] def create_lkas11(packer, car_fingerprint, bus, apply_steer, steer_req, cnt, enabled, lkas11,...
<reponame>adisadi/mmbot import * as moment from "moment"; import { Argv, CommandModule } from "yargs"; import { Database } from "../db/db"; import { CandleCollection, ICandle, ITrade } from "../util/common"; // tslint:disable-next-line:no-var-requires const status = require("node-status"); const console = status.co...
Rolling Stone journalist made enemies in FBI, CIA Paul Joseph Watson Infowars.com June 20, 2013 The revelation that Rolling Stone journalist Michael Hastings was working on a story about the CIA before his death and had contacted a Wikileaks lawyer about being under investigation by the FBI hours before his car exp...
/** * Add connection. * * @param remoteAddress remote address * @param trafficCounter counter */ public void mapChannel(InetSocketAddress remoteAddress, ChannelTrafficShapingHandler trafficCounter) { LOGGER.debug("mapping " + remoteAddress); connectionMap.put(remoteAddress, new Connection(...
/** * Returned when some type of error occurred checking a parameter. This provides * the key name and display name (if set) of the parameter where the error occurred, * as well as the error type ({@link ApiErrorType}), optionally an error message * (may be default message for the given error type), an exception if...
def main(): parser = argparse.ArgumentParser(description=' This modules brings basic statistics of the metadata files from all ' ' the experiments. It outputs the % for each label and the distribution' ' of the cartesi...
def make_index(base_dir: str, _start: bool = True) -> None: if _start: logger.info("Generating package index") index_path = os.path.join(base_dir, "Packages") index_gzip_path = os.path.join(base_dir, "Packages.gz") with open(index_path, "w") as index_file, gzip.open( index_gzip_path, "wt...
<gh_stars>1-10 #!/usr/bin/env python import argparse from pathlib import Path from Bio import SeqIO, SearchIO import pandas as pd import numpy as np from itertools import combinations def parse_args(): parser = argparse.ArgumentParser(description='Calculate scores for a set of pVOG interactions, ' ...
Block-modular constructor as a tool of the learning community of teachers for designing educational events The purpose of the article is to substantiate a block-modular constructor as a tool to overcome the costs of the traditional approach to design lessons. It is noted that it is applicable not only in the individua...
# -*- coding: utf-8 -*- import os import re import time import os.path as path from sys import argv cid_list = [52267372,52267430,52267483,52267549,52267604,52267668,52267742,52267813,52267917,52267967,52268008,52268067,52268136,52268220,52268272,52268352,52268401,52268468,52268517,52268570,52268627,52268687,52268823]...
By Joe Conason - February 21, 2013 Savvy Republicans know that something is deeply wrong with the GOP -- frequently mocked these days by Republicans themselves as "the stupid party" -- which has lost the popular vote in five of the last six presidential elections. Some have noticed as well that their congressional maj...
<filename>sql/dml/update_test.go /* Sniperkit-Bot - Status: analyzed */ // Copyright 2015-present, Cyrill @ Schumacher.fm and the CoreStore contributors // // 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 ...
<reponame>deanandreakis/atl-demo-ios-app // // ATRKalmanSmoothingStrategy.h // AtriusLocation // // Created by <NAME> on 5/18/17. // Copyright © 2017 Acuity Brands. All rights reserved. // #import <UIKit/UIKit.h> #import "ATRISmoothingStrategy.h" @interface ATRKalmanSmoothingStrategy : NSObject<ATRISmoothingStrat...
import * as React from "react"; import { makeStyles } from "@material-ui/core/styles"; import { Theme } from "@material-ui/core/styles"; import { Icon, Grid, IconButton } from "@material-ui/core"; import { DragHandle } from "@material-ui/icons"; import { subscribeChapterById_chapter_components } from "queries/__gener...
Blogger Mohamed Cheikh Ould Mohamed in 2012 in Nouadhibou, Mauritania. (Photo provided by Aysha Ould Mohamed) Sherif Mansour is the Middle East and North Africa Program Coordinator for the Committee to Protect Journalists. This week’s assassination of Jordanian commentator Nahed Hattar as he went to court to face bla...
Low Profile Dual Band H-Slotted DGS Based Antenna Design Using ANN for K/Ku Band Applications In this manuscripts, H-slotted DGS based antenna configuration for K/Ku applications is designed, fabricated and measured using ROHDE & SCHWARZ ZVB20 network analyzer. Simulation studies are performed using Electromagnetic Si...
<gh_stars>0 ''' hardcoded values match Example 6.5 in the book ''' from matplotlib.animation import FuncAnimation import matplotlib.pyplot as plt import numpy as np class WindyGridworld: def __init__(self) -> None: self.alpha = 0.1 self.epsilon = 0.1 # set start state self.start = ...
<gh_stars>0 import { Signal2D, Values } from '../../types'; import { PathLength } from '../../types/spectrum/pathLength'; import { findLinksBySignalID } from './findLinksBySignalID'; export function setPathLength( correlations: Values, signalID: string, pathLength: PathLength | undefined, ): Values { const li...
Lateral Collateral Ligament and Proximal Tibiofibular Joint Reconstruction for Tibiofibular Instability Instability of the proximal tibiofibular joint (PTFJ) can be post-traumatic or due to accumulative injuries and may also be underdiagnosed pathology that can present with symptoms of lateral and/or medial knee pain....
Rick Westhead TSN Senior Correspondent Follow|Archive Several of hockey's most prominent player agents — whose companies collectively represent about one-third of active NHLers — say the Canadian Hockey League needs to relax its policy of voiding educational scholarships 18 months after a player's over-age season in m...
def addFriendship(self, userID, friendID): if userID == friendID: print("WARNING: You cannot be friends with yourself") elif friendID in self.friendships[userID] or userID in self.friendships[friendID]: print("WARNING: Friendship already exists") else: self.fr...
/** * Contains common attributes to a local variable table attribute structure. * * @author <a href="mailto:vitor.carreira@gmail.com">Vitor Carreira</a> * @version $Revision: 1.1 $ $Date: 2005/11/01 13:18:24 $ */ public abstract class LocalVariableCommonAttribute extends AttributeInfo { protected static ...
Ready to fight back? Sign up for Take Action Now and get three actions in your inbox every week. You will receive occasional promotional offers for programs that support The Nation’s journalism. You can read our Privacy Policy here. Sign up for Take Action Now and get three actions in your inbox every week. Thank you ...
/* The execution, it returns * when code runs out */ int Interpreter::Execute() { ObjectInstance *Instance = NULL; CodeObject *EntryObj = m_pPool->LookupObject("__maciaentry"); if (EntryObj == NULL) { printf("Failed to locate program entry point\n"); return -1; } return ExecuteCode(Instance, EntryObj->GetCod...
<gh_stars>0 import os import zipfile from pathlib import Path import streamlit as st import pandas as pd import shutil import pickle import numpy as np from source.bracket_pdf_parser import load_or_generate_bracket_data, create_empty_score_csv_from_directory from source.bracket_outcomes import load_or_generate_outcome...
import { ICollisionResolution } from "./CollisionResolution"; interface ICollisionResponse { resolveA: ICollisionResolution; resolveB: ICollisionResolution; } export { ICollisionResponse }
Warp speed design: a rapid design method for use with children This paper introduces a new design method - Warp Speed Design - for use with older children (aged 9+) for the design of workable tangible games. The rationale for the method is presented and then a workshop, in which the method was evaluated, is described....
package unicap.uber.model; import java.util.List; public interface IRepositorioCorridas { public double criaCorrida(IPassageiro passDaCorrida, IMotorista motDaCorrida, String origem, String destino); public List<String> listarCorridas(int telefone); }
/** The configuration mode for the robot. */ class ConfigState : public State { protected: Flag m_reread; Flag m_strengthLo, m_strengthMd, m_strengthHi; Flag m_kickRest, m_kickCocked; Flag m_shoulderStowed, m_shoulderRaised, m_shoulderGTFU; Flag m_elbowTarget, m_elbowMin, m_elbowMax; public: ConfigState(BossRobot...
The video will start in 8 Cancel Get the biggest Everton FC stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email Ronald Koeman has only been at Everton five minutes - but he is already falling victim to the tran...
def bbox_flip(bboxes, img_shape, direction='horizontal'): version = 'oc' assert bboxes.shape[-1] % 5 == 0 assert direction in ['horizontal', 'vertical', 'diagonal'] flipped = bboxes.clone() if direction == 'horizontal': flipped[:, 0] = img_shape[1] - bboxes[:, 0] - 1 elif direction == 'v...
def from_zipped( cls, *setters_and_weights: Union[StateSetter, Tuple[RewardFunction, float]] ) -> "WeightedSampleSetter": rewards = [] weights = [] for value in setters_and_weights: if isinstance(value, tuple): r, w = value else...
Feilhaber ready to make most of a national team second chance he had given up on A year after seemingly giving up on a future with the U.S. national team, Benny Feilhaber is back in the fold after Jurgen Klinsmann's departure. CARSON, Calif. — Almost exactly a year after he appeared to light a match and torch his cha...
Molecular analysis of the androgen receptor gene in 52 patients with complete or partial androgen insensitivity syndrome: a collaborative study. In patients with androgen insensitivity syndrome (AIS), RFLP study of the androgen receptor gene made it possible to analyze whether deletions or mutations could be responsib...
/** * {@code assert} that no errors have been logged. */ public void assertNoErrors() { if (!getErrors().isEmpty()) { throw new Error(getErrors().toString()); } }
Global biogeography of autotroph chemistry: is insolation a driving force? Synthesis The tissue chemistry of plants can influence ecosystem processes including growth, herbivory, and decomposition. Our comparison of nitrogen and phosphorus in over 1700 autotroph taxa demonstrates that latitudinal trends in tiss...
// ********************************************************************** // // Copyright (c) 2001-2004 // StarMiddleware.net // www.StarMiddleware.net // // All Rights Reserved // // Author: <NAME> <EMAIL> // Author: <NAME> <EMAIL> // Author: <NAME> <EMAIL> // // *********************************************...
/* * Author: <NAME> * Nearest neighbor search algorithm demo */ #ifndef SORT_H #define SORT_H #include <globals.hpp> #include <vector> struct KeyValuePair { int cellID; // Grid cell int index; // Particle index }; class NNS { private: // Depending on use case make more things pr...
/* * Return the ext insert location. This will also validate the input xid * if latest insert point is not for the same transaction id then this will * return Invalid Undo pointer. */ UndoRecPtr UndoLogGetNextInsertPtr(UndoLogNumber logno, TransactionId xid) { UndoLogControl *log = get_undo_log_by_number(logno); ...
/* Copyright 2019 The Kubernetes 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 agreed to in writing, ...
Differential Expression of Sphingosine-1-Phosphate Receptors in Abdominal Aortic Aneurysms Objective. Inflammation plays a key role in the pathophysiology of abdominal aortic aneurysms (AAAs). Newly discovered Sphingosine-1-Phosphate Receptors (S1P receptors) are critical in modulating inflammatory response via prosta...
import { Vec3, SkillId, Customize, PacketBase } from '../lib/Common' export class C_VISIT_NEW_SECTION_1 extends PacketBase { mapId: number guardId: number unk: number }
def symbols(self, symbols): if not symbols: return {} assert type(symbols) == dict return symbols
Using a molybdenite complex and thePY5Me2 ligand, Berkeley Lab researchers synthesized a molecule that mimics catalytically active triangular molybdenum disulfide edge-sites. The result is an entire layer of catalytically active material. Molybdenum atoms are shown as green, sulfur as yellow. Credit: Courtesy of Berkel...
<gh_stars>1-10 package com.uicode.smallchat.smallchatserver.messaging; import com.uicode.smallchat.smallchatserver.model.messagingnotice.AbstractNotice; import io.vertx.core.eventbus.MessageConsumer; import io.vertx.core.json.JsonObject; public class PackageMsgNotice<T extends AbstractNotice> { private T notice...
class ImgurEndpoints: """Class to get the endpoint URLs of imgur API.""" URL = "https://api.imgur.com/3/" @staticmethod def get_upload_url(): """ Get the full URL of the image uploading endpoint. :return: full endpoint URL to upload an image """ return ImgurEnd...
import java.util.*; public class schedule{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int d = sc.nextInt(); int sumhrs = sc.nextInt(); int minm[] = new int[d]; int maxm[] = new int[d]; int minsum = 0,maxsum = 0; for(int i=0;i<d;i++){ minm[i] = sc.nextInt(); minsum ...
<filename>crypto/RsaContext.cpp /* * * Copyright 2013 Netflix, Inc. * * 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...
/*========================================================================= Program: ParaView Module: vtkCPTestDriver.h Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY;...
<filename>spincast-plugins/spincast-plugins-date-formatter-parent/spincast-plugins-date-formatter/src/main/java/org/spincast/plugins/dateformatter/RelativeDateFormatType.java package org.spincast.plugins.dateformatter; /** * The type of format from PrettyTime. */ public enum RelativeDateFormatType { DEFAULT, ...
n = int(input()) ai = [-1] + list(map(int,input().split())) ai2 = [str(int(ai[i] > ai[i-1])) for i in range(1,n+1)] ai2 = "".join(ai2) num = ai2.find("0") num2 = num + 1 + ai2[num+1:].find("1") num3 = ai2[num2+1:].find("0") if num == -1: print("yes") print(1,1) elif num2 == num: num2 = n ai ...
// register all available, exported methods to handlers if possible. func (c *ControllerActivator) parseMethods() { n := c.Type.NumMethod() for i := 0; i < n; i++ { m := c.Type.Method(i) c.parseMethod(m) } }
// Min returns the minimum integer in the slice. func Min(n []int) (int, error) { if len(n) == 0 { return 0, fmt.Errorf("slice %#v has no elements", n) } if len(n) == 1 { return n[0], nil } min := n[0] for _, num := range n[1:] { if num < min { min = num } } return min, nil }
// GetListRecommendationsSortByEnumValues Enumerates the set of values for ListRecommendationsSortByEnum func GetListRecommendationsSortByEnumValues() []ListRecommendationsSortByEnum { values := make([]ListRecommendationsSortByEnum, 0) for _, v := range mappingListRecommendationsSortBy { values = append(values, v) ...
import { Card } from '../../../interfaces' import Set from '../Darkness Ablaze' const card: Card = { name: { en: "Ariados", fr: "Migalos", es: "Ariados", it: "Ariados", pt: "Ariados", de: "Ariados" }, illustrator: "<NAME>", rarity: "Uncommon", category: "Pokemon", set: Set, hp: 110, types: [ "D...
<reponame>GithubActionTest/rssbot use std::sync::Arc; use either::Either; use pinyin::{Pinyin, ToPinyin}; use tbot::{contexts::Command, types::parameters}; use tokio::sync::Mutex; use crate::data::Database; use crate::messages::{format_large_msg, Escape}; use super::{check_channel_permission, update_response, MsgTar...
# File : espnet.py # Author : Zhengkun Tian # Email : zhengkun.tian@outlook.com import json import torch import logging import kaldiio as kio from otrans.data import load_vocab, UNK_TOKEN from otrans.data.augment import spec_augment from torch.utils.data import Dataset class ESPNetDataset(Dataset): def __init...
Most guns used in crimes in New York state between 2010 and 2015 came from other places. That is the biggest takeaway from a report released recently by Eric Schneiderman, New York’s attorney general. “Target on Trafficking: Analysis of New York Gun Crimes” found that 74 percent of guns used in a crime recovered in Ne...
The researchers deploy concrete slabs to support the heated settlement panels. Credit: Gail Ashton Credit: Sabrina Heiser Featured image courtesy of Gail Ashton. In the next 50 years, ocean temperatures are expected to increase by 1°C. To get a sense of how rising temperatures will impact marine communities, researc...
async def _status(self): while not self._response_status.empty(): self._response_status.get_nowait() retries = 3 response_status = ResponseStatus.FAILURE while retries: await self._get_status_command.async_send() try: response_status = ...
def vis_layer(model, layer, channel): num_channels = dla_lucid.LAYERS[layer][1] all_vis = [] for i in range(num_channels): if channel is True: vis = vis_channel(model, layer, i) else: vis = vis_neuron(model, layer, i) all_vis.append(vis) all_vis_array = np...