content
stringlengths
10
4.9M
/** * Sets reminders for an assignment identified using it's displayed index from ProductiveNus. */ public class RemindCommand extends Command { public static final String COMMAND_WORD = "remind"; public static final String MESSAGE_USAGE = "Format: " + COMMAND_WORD + " INDEX [MORE_INDEXES] (must...
#include <iostream> #include <vector> #include <algorithm> #include <math.h> #include <map> #include <limits.h> #define ll long long #define pii pair<int,int> #define vi vector<int> #define map_it map<int,int> :: iterator #define mod 1000000007 using namespace std; int main() { ll n,k; cin>>n>>k;...
/* * @file * @copyright defined in meycoin/LICENSE.txt */ package raftsupport import ( "context" "encoding/binary" "github.com/meeypioneer/mey-library/log" "github.com/meeypioneer/meycoin/consensus" "github.com/meeypioneer/meycoin/p2p/p2pcommon" "github.com/meeypioneer/meycoin/p2p/p2putil" "github.com/meeyp...
n = int(input()) prices = list(map(int, input().split())) sorted_prices = sorted(prices) print(prices.index(sorted_prices[n-1])+1, end=' ') print(sorted_prices[n-2], end=' ')
A Pakistani immigrant who tried to set off a car bomb in Times Square was sentenced Tuesday to life in prison by a judge who said she hopes he spends time behind bars thinking "carefully about whether the Quran wants you to kill lots of people." A defiant Faisal Shahzad smirked as he was given a mandatory life term th...
<gh_stars>0 // Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. package process import "time" // Config for fine tuning new process ty...
def find_matching_allele_frequency(variant, population_vcf_reader, ref_reader, padding_bases=0): query_region = ranges.make_range( chrom=variant.reference_name, start=variant.start - padding_bases, ...
/** * Reruns the workflow from a specific task * * @param workflowId the id of the workflow * @param rerunWorkflowRequest the request containing the task to rerun from * @return the id of the workflow */ public String rerunWorkflow(String workflowId, RerunWorkflowRequest rerunWorkflowReque...
def validated(self, base): for d in self.decisions: if "strategy" in d: del d["strategy"] return sorted(self.decisions, key=_sort_key, reverse=True)
/** * This mojo provides access to the Groovy sources (including stubs). * * @author Keegan Witt * @since 1.0-beta-3 */ public abstract class AbstractGroovyStubSourcesMojo extends AbstractGroovySourcesMojo { /** * Gets the set of stub files in specified directory. * * @param outputDirectory the...
<filename>modules/audio_coding/neteq/random_vector.h /* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant...
import { FindOneOptions, SimpleEntityRepository, } from 'src/internals/databases/simple-entity/simple-entity.repository'; import { DatedEntity } from './dated.entity'; import { FindOptions } from '../simple-entity/simple-entity.repository'; import { EntityManager } from 'typeorm'; export abstract class DatedEntity...
/** * this is Template Method child has Implement your own logic. * * @param exchange exchange the current server exchange {@linkplain ServerWebExchange} * @param chain chain the current chain {@linkplain ServerWebExchange} * @param rule rule {@linkplain RuleZkDTO} * @return {@c...
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of BCGControlBar Library Professional Edition // Copyright (C) 1998-2012 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only unde...
<reponame>blefaudeux/salina # # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # import copy import time import gym import hydra import torch import torch.nn as nn import torch.nn.functional...
CleanTechnica Climate change deniers are getting angrier and angrier because there is less and less ground that they can even moderately stand upon. They are being forced off of multiple positions and the world is ignoring their opinions en masse. People used to be able to believe that warming wasn’t an occurring sce...
package jotnar type logConfig struct { FilePath string Level string Format string // text or json Timeformat string IsPretty bool } var defualtLogConfig *logConfig func (j *Jotnar) InitLogger() *Jotnar { switch CurrentConfigType { case "default": logReadFromDefault() case "viper": logReadFro...
(Reuters) - A federal appeals court said the Environmental Protection Agency should not have been ordered by a lower court judge to assess how its air regulations affect coal industry jobs, in a defeat for Murray Energy Corp, a large coal miner. The 4th U.S. Circuit Court of Appeals in Richmond, Virginia, ruled on Thu...
Arnold‐Chiari malformation associated with sleep apnea and central dysregulation of arterial pressure The natural history of symptomatic adult type I Arnold‐Chiari (ACM1) malformation is variable. Patients with this condition frequently develop corticospinal and sensory deficits, together with cerebellar signs and low...
<gh_stars>10-100 #ifndef rosic_EllipseOscillator_h #define rosic_EllipseOscillator_h namespace rosic { class rsEllipseOscillator : public RAPT::rsEllipseOscillator<double> { public: //----------------------------------------------------------------------------------------------- // \name Setup void setFrequ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package diagramas.logico; import controlador.Editor; import controlador.apoios.TreeItem; import controlador.inspector.InspectorProperty; import desenho.FormaElementar; import java.awt.AlphaComposite; import java.awt.Bas...
<filename>src/check.rs //! Provides functionality for checking the availablility of URLs. use std::collections::HashSet; use std::fmt; use std::fs::read_to_string; use std::path::{Path, PathBuf}; use log::{debug, warn}; use once_cell::sync::Lazy; use regex::Regex; use url::Url; use cached::cached_key_result; use cach...
/** * Acts as if heat was shared, returns shared heat<br/> * Note: This methods drains heat from the component. * The more conducts tends to zero, the more energy will be shared to it * @param conduct * @return */ public default double shareHeat(float conduct) { if (conduct < 0) conduct = 0; double s...
/** * @author Edgar Gonzalez * */ public class FieldNotFoundException extends Exception { /** * */ private static final long serialVersionUID = 2153202784256590692L; /** * * @param pojo * @param field */ public <T extends PrestaShopPojo> FieldNotFoundException(Class<T> pojo, String field) { sup...
The efficiency of different chemoradiotherapy regimens in patients with paediatric nasopharynx cancer: review of 46 cases The purpose of this study was to evaluate the role of combined modality treatment in patients with paediatric nasopharynx cancer (NPC). Forty‐six patients with paediatric NPC were retrospectively a...
<gh_stars>0 /* src/form/fieldtypes/alphabetic.rs Copyright (c) 2019-2022 <NAME> All rights reserved. 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, incl...
package com.github.freegeese.easymybatis.core.meta; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; public class MetaLambdaCache { private static Map<String, MetaLambda> cache = new ConcurrentHashMap<>(); public static MetaLambda get(Function function)...
package gotabcmd import ( "context" "fmt" "os" "os/exec" "testing" "time" ) func TestNewTabcmd(t *testing.T) { type args struct { commandTimeout time.Duration } tests := []struct { name string args args want *tabcmd }{ {"timeout setting", args{5 * time.Hour}, &tabcmd{timeout: 5 * time.Hour, comman...
// Tests that ObjectAdded is forwarded to a multiplexer with the correct // additional service name parameter. TEST_F(ObjectManagerInterfaceMultiplexerTest, ObjectAdded) { EXPECT_CALL( *interface_multiplexer_, ObjectAdded(kTestServiceName1, dbus::ObjectPath(kTestRootServicePath), kTestIn...
<reponame>shuxs/bootstrap package config import ( "context" ) type Loader interface { Watch(ctx context.Context, cfg Config) error }
/** * Maven goal which generates the metadata ending up in the package like {@code META-INF/MANIFEST.MF} as well as the * files ending up in {@code META-INF/vault} like {@code filter.xml}, {@code properties.xml}, {@code config.xml} and * {@code settings.xml}. Those files will be written to the directory given via pa...
<gh_stars>1-10 #!/usr/bin/python ''' This script imports users and groups from json to KYPO AAI database. JSON files were generated by perun-service named kypo_portal. author: <NAME> date: 2016-05-02 version: 1.0.0 2016-05-13: In getting data from DB added code to ignore testing DB entries with no external_id '...
Carl Hannah Slaying Suspects.jpg Arshakia Chanae Walker and Fernando Gulley are charged with manslaughter in the beating death of 56-year-old Carl Hannah Jr. (Jefferson County Jail) A man and a woman are charged with manslaughter in the beating death of a 56-year-old man earlier this year. A Jefferson County grand ...
#ifndef __CMD_PROC__ #define __CMD_PROC__ #ifdef __cplusplus extern "C" { #endif //***************************************************************************** typedef struct { char *buffer; int length; } CmdResponse; typedef int (*CmdHandler)(const char *argument, CmdResponse *resp); typedef const struct { co...
The Impact of Drug Metabolism Gene Polymorphisms on Therapeutic Response and Survival in Diffuse Large B-Cell Lymphoma Patients. BACKGROUND Diffuse large B-cell lymphoma (DLBCL) accounts for 30% of all non-Hodgkin lymphomas (NHL) and 80% of agressive lymphomas. Besides the traditional International Prognostic Index (I...
<reponame>tiddlyweb/tiddlywebplugins.markdown<gh_stars>1-10 """ Markdown extensions for freelinks and wikilinks, with optional @target handling. """ import re from markdown import util, inlinepatterns from markdown.extensions.wikilinks import (WikiLinkExtension, WikiLinks) from tiddlyweb.fixups import quote ...
//____________________________________________________________ // // detect if it's a tape, rewind if so // and set the buffer size // DESC NT_tape_open(const char* name, ULONG mode, ULONG create) { HANDLE handle; TAPE_GET_MEDIA_PARAMETERS param; DWORD size = sizeof(param); BurpGlobals* tdgbl = BurpGlobals::getSpec...
<reponame>smooch/amqp-ts import * as lodash from "lodash"; import * as winston from "winston"; function normalizeError(error: any, level: string): void | Error | object { if (lodash.isString(error)) { return new Error(error); } if (!(error instanceof Error)) { return; } const normalizedError: any =...
<filename>nodes/ue07_navigation_amcl/turtlebot3_move_base_action_client.py #!/usr/bin/env python3 # ################################################################################ # edited WHS, OJ , 12.12.2020 # # usage # $1 roslaunch turtlebot3_gazebo turtlebot3_house.launch # $2 roslaunch turtlebot3_navigation...
#!/usr/bin/env python3 import torch import speechbrain as sb from torch.utils.data import DataLoader from speechbrain import Stage from tqdm.contrib import tqdm import os import pandas as pd import wandb import numpy as np import json import losses.eval_metrics as em class SpoofSpeechClassifier(sb.Brain): def co...
On the mechanisms of genotoxicity and metabolism of quercetin. Quercetin has been the subject of numerous studies on its genetic toxicity and carcinogenicity. Despite its well-proven genetic damaging activity for various genetic end-points (reverse mutations, induction of SOS functions, induction of sister chromatid e...
A Courtenay resident has been arrested after a 25-year-old man was found dead outside of a home Friday. Police were called to the home, in the 500-block of 6th Street, early in the morning. They found the deceased 25-year-old Courtenay man outside of the residence and then arrested the 37-year-old suspect, who remain...
Complete wheels are very rare 3,000 year old wheel found in Cambridgeshire Experts say it rivals the finds at Pompeii Three Bronze Age houses found with their contents intact The news Archaeologists in the UK have unearthed what is thought to be the largest and oldest example of a wheel from the Bronze Age. We've...
// Copyright (c) 2019 PaddlePaddle Authors. 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...
<gh_stars>1-10 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import json import os import subprocess import sys from pathlib import Path from .utils import load_cluster_details START_SERVICE_COMMAND = '''\ systemctl --user daemon-reload systemctl --user start maro-master-a...
export * from "./Progress.model"; export * from "./ProgressLog.model";
An Open-Source Toolkit To Expand Bioinformatics Training in Infectious Diseases ABSTRACT As access to high-throughput sequencing technology has increased, the bottleneck in biomedical research has shifted from data generation to data analysis. Here, we describe a modular and extensible framework for didactic instructi...
/** * Combine this {@link FilterContext} with another * @param context the {@link FilterContext} to merge * @return the merged {@link FilterContext} */ public FilterContext merge(FilterContext context) { FilterContext filterContext = new FilterContext(); filterContext.getProperties()...
def from_structure( structure: Structure, material_id: str, fields: Optional[List[str]] = None, **kwargs ) -> "MaterialsDoc": meta = StructureMetadata.from_structure(structure, fields=fields) ordering = CollinearMagneticStructureAnalyzer(structure).ordering ...
// // JGNRReachability.h // JGNetworkReachability // // Created by 梅继高 on 2018/6/12. // Copyright © 2018年 MeiJigao. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * 网络连接类型 */ typedef NS_ENUM(NSInteger, JGNRReachabilityStatus) { JGNRReachabilityStatusNotReachable = 1, ...
If it’s up to Robotbase, you’ll soon be coming home and a robot will greet you at the door. While you were away, the Robotbase Personal Robot patrolled your home, made sure the temperature was lowered when you left, maybe locked the door after you were gone and, through its built-in camera, allowed you to check in on y...
package io.cattle.platform.framework.encryption.impl; import io.cattle.platform.framework.encryption.handler.impl.TransformationServiceImpl; import io.github.ibuildthecloud.gdapi.model.Transformer; import java.security.SecureRandom; import org.apache.commons.codec.binary.Hex; import org.apache.commons.lang3.StringUt...
<gh_stars>0 package base import ( "github.com/labstack/echo" "github.com/labstack/echo/middleware" "github.com/pavel-kiselyov/echo-logrusmiddleware" log "github.com/sirupsen/logrus" ) // SetupEcho creates a new Echo instance for HTTP func SetupEcho() (*echo.Echo, error) { e := echo.New() e.HideBanner = true ...
Variable Depth Bragg Peak Method for Single Event Effects Testing The Variable Depth Bragg Peak (VDBP) method for measuring the Single Event Effects (SEE) cross-section of an integrated circuit (IC) in a closed package as a function of ion linear energy transfer (LET) is described. The method uses long-range, high-ene...
def resolve(): n, l = map(int, input().split()) alist =[l+i for i in range(n)] total = sum(alist) minimum = 10000 j = 0 for i in range(n): diff = abs(alist[i]) if minimum > diff: minimum = diff j = i print(total-alist[j]) resolve()
//! Weechat Hook module. //! //! Weechat hooks are used for many different things, to create commands, to //! listen to events on a file descriptor, add completions to weechat, etc. //! This module contains hook creation methods for the `Weechat` object. #[cfg(feature = "unstable")] mod signal; mod bar; mod commands;...
<reponame>murillozampieri/whatsapp-button<gh_stars>0 import { LitElement } from 'lit-element'; declare class SnapbotButton extends LitElement { icon: string; hash: string; preview: boolean; title: string; message: string; titleFeedback: string; messageFeedback: string; type: string; ...
/* * Copyright 2018 IBM Corp. * * 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 ofthe License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
def trim_silence(audio, threshold): energy = librosa.feature.rmse(audio) frames = np.nonzero(np.array(energy > threshold)) indices = librosa.core.frames_to_samples(frames)[1] audio_trim = audio[0:0] left_blank = audio[0:0] right_blank = audio[0:0] if indices.size: audio_trim = audio[...
Applying Improved Multiscale Fuzzy Entropy for Feature Extraction of MI-EEG Electroencephalography (EEG) is considered the output of a brain and it is a bioelectrical signal with multiscale and nonlinear properties. Motor Imagery EEG (MI-EEG) not only has a close correlation with the human imagination and movement int...
t = int(input()) def is_zero(x): return abs(x) < 1e-9 def EV(x, y, z, v): if is_zero(x) and is_zero(y): return 1 elif is_zero(x): step = min(y, v) return 1 + y * EV(x, y - step, z + step, v) elif is_zero(y): step = min(x, v) return 1 + x * EV(x - step, y, z + st...
/** * AMQPNotificationProcessor handles AMQP-specific notification processing. */ public class AMQPNotificationProcessor { private static final Logger logger = LoggerFactory.getLogger(AMQPNotificationProcessor.class); private boolean amqpEnabled = false; private AMQPSender amqpSender = null; ...
def agent_next_turn(self, record_training_data=True): if self.fallback: sentence = 'I cannot understand. Can please repeat?' elif self.task_complete: self.conv_over= True sentence = 'Have nice day!!!!\n\n\n**************************************************************...
class EventStream: """Represents a stream of events for an output plugin to process. Properties: _plugin: A reference to the plugin using this EventStream. _plugin_api: An instance of a class implementing PluginAPI. Usually the PluginSandbox of this plugin. _count: The number of event...
/** * Split an input string using the pattern as a token separator. * * @param input * Input sequence to tokenize * @param limit * If positive, the maximum number of tokens to return. If * negative, an indefinite number of tokens are returned. If * zero, an i...
/** * Set current payment request and go to the index page. * * @return Index page URL. */ public String savePayment() { main: { if (payment == null) { break main; } if (clientId == null) { break main; ...
import User from './user/User' export { default as IUser} from './user/IUser' const userStore = new User() export { userStore }
package com.datastax.fixmessage; import java.util.concurrent.BlockingQueue; import com.datastax.fixmessage.model.FixMessage; import com.datastax.session.dao.FixMessageDao; public class FixMessageWriter implements Runnable{ private BlockingQueue<FixMessage> insertQueue; private FixMessageDao dao; public FixMess...
<gh_stars>1-10 /* MIT License * * Copyright (c) 2019 - 2020 <NAME> <<EMAIL>> * * 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 righ...
<filename>src/components/avatargroup/AvatarGroup.d.ts import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export interface AvatarGroupProps { } export interface AvatarGroupSlots { } export declare type AvatarGroupEmits = { } declare class AvatarGroup extends ClassComponent<AvatarGroupProps, ...
<reponame>SpriteOvO/teloxide-core use serde::{Deserialize, Serialize}; /// Identifier of a user. #[derive(Clone, Copy)] #[derive(Debug, derive_more::Display)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Serialize, Deserialize)] #[serde(transparent)] pub struct UserId(pub u64); impl UserId { /// Retur...
<reponame>JLLeitschuh/ephemerals<filename>core/src/main/java/com/liveperson/ephemerals/deploy/unit/DeploymentUnit.java package com.liveperson.ephemerals.deploy.unit; import com.liveperson.ephemerals.deploy.DeploymentPort; import com.liveperson.ephemerals.deploy.probe.Probe; import com.liveperson.ephemerals.deploy.volu...
<gh_stars>1-10 #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h> #include "parasite.h" #define PARASITE_CMD_GETFD PARASITE_USER_CMDS static void print_vmsg(unsigned int lvl, const char *fmt, va_list parms) { printf("\tLC%u: ", lvl); vprint...
/* * 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 may ...
Former President Bill Clinton might want to keep the racism accusations to himself from now on -- after ripping Donald Trump for a slogan he's used repeatedly since his 'Comeback Kid' days. The 42nd president on Wednesday, while stumping in Orlando for Hillary Clinton, suggested Trump’s campaign rallying cry, “Make Am...
package mirror; import java.lang.reflect.Constructor; import java.lang.reflect.Field; public class RefConstructor<T> { private Constructor<?> ctor; public RefConstructor(Class<?> cls, Field field) throws NoSuchMethodException { if (field.isAnnotationPresent(MethodParams.class)) { Class<?>...
/** * Accept. * * @param axioms the axioms * @param logicGraphVersion the logic graph version */ @Override public void accept(Set<Axiom> axioms, LogicalExpressionImpl logicGraphVersion) { if (this.conceptSequences.get(logicGraphVersion.getConceptBeingDefinedNid())) { axioms.addAll(...
<filename>mediasoup-client/deps/webrtc/src/build/android/bytecode/java/org/chromium/bytecode/AssertionEnablerClassAdapter.java // Copyright 2017 The Chromium 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 org.chromium.byteco...
/** Preprocessor listener, used to instantiate objects of interest found by the parser. <p>This listener is used extensively in preprocessing, where symbolics are resolved according to arcane rules. */ public class PPListener extends JCLPPParserBaseListener { private Logger LOGGER = null; private TheCLI CLI = null;...
// vhost device i2c // // Copyright 2021 Linaro Ltd. All Rights Reserved. // <NAME> <<EMAIL>> // // SPDX-License-Identifier: Apache-2.0 use log::warn; use std::mem::size_of; use std::sync::Arc; use std::{convert, io}; use thiserror::Error as ThisError; use vhost::vhost_user::message::{VhostUserProtocolFeatur...
def convert(bsigs, grpkey, bldkey, msg=ffi.NULL, mgrkey=ffi.NULL): _csigs = [ lib.groupsig_blindsig_init(grpkey.scheme) for i in range(len(bsigs)) ] csigs = ffi.new("groupsig_blindsig_t* []", _csigs) if lib.groupsig_convert(csigs, bsigs, len(bsigs), grpkey, mgrkey, bldkey, msg) == lib.IERROR: ...
// New creates a new instance of `IstioCAServiceServer`. func New(ca ca.CertificateAuthority, hostname string, port int) *Server { authenticators := []authenticator{&clientCertAuthenticator{}} aud := fmt.Sprintf("grpc://%s:%d", hostname, port) if jwtAuthenticator, err := newIDTokenAuthenticator(aud); err != nil { ...
Harmonic mitigation for a megawatt grid-tied fuel cell system This research deals with the design of an LCL filter for a grid tied megawatt fuel cell stack. In the adopted configuration, the LCL filter links a three-level neutral clamped point inverter with the grid. A typical inverter is a source of harmonics as in g...
<filename>travel-buddy-app/src/03-components/ActivityDetail.tsx import React from 'react'; import { Col, Row } from 'reactstrap'; import { Activity } from '../api'; import { formatDate, getDurationHours, TIME_FORMAT } from '../utils'; export interface ActivityDetailProps { activities: Activity[]; } export const Act...
By PoliceOne Staff DULUTH, Ga. — Dash cam video has been released capturing a dangerous pursuit of two burglary suspects. According to the Gwinnett Daily Post, two burglars broke into a hardware store Monday. A nearby officer was alerted to an alarm sounding at the store and began to pursue the suspects. The suspect...
def _calc_breach_prob_per_particle( self, shorezone: ShoreZone, convert_lon: bool = True, ) -> np.ndarray: with xr.open_dataset(self.path) as ds: stranded_flag = utils.get_stranded_flag_from_status(ds) nvessels = len(ds.trajectory) breach_prob_per_...
/** * Removes/Destroys a guild audio manager, stopping players from just laying dormant and using resources. * @param guild {@link Guild} */ public static void destroyGuildAudioManager(Guild guild) { if(guildManagers.containsKey(guild.getId())) { guildManagers.get(guild.getId()).destr...
L.A. County Sheriff's Department intends to fire seven deputies The seven belong to a secret law enforcement clique that allegedly celebrated shootings and branded members with matching tattoos. The Sheriff's Department has a long history of secret cliques with members of the groups having reached high-ranking positi...
// run initializes local config and installs MinIO Operator to Kubernetes cluster. func (v *expandCmd) run() error { client, err := helpers.GetKubeOperatorClient() if err != nil { return err } if v.tenantOpts.NS == "" || v.tenantOpts.NS == helpers.DefaultNamespace { v.tenantOpts.NS, err = getTenantNamespace(cli...
<reponame>CanalTP/stomp-the-rabbit package webstomp import ( "net" "net/url" "golang.org/x/net/websocket" ) // Dial creates a client connection to the given target func Dial(target string, protocol string) (net.Conn, error) { u, err := url.Parse(target) if err != nil { return nil, err } origin, err := u.Par...
/** * This test class apes on a bare essential What Spring TestNG provides as a base class in terms of * running Spring based tests. The following methods have been duplicated from * org.springframework.test.context.testng.AbstractTestNGSpringContextTests to simulate the bug. 1. * throwAsUncheckedException() 2. get...
<gh_stars>0 package database import "github.com/jinzhu/gorm" // Subscription model type Subscription struct { gorm.Model UserID uint `gorm:"primary_key;not null"` Address string `gorm:"primary_key;not null"` Network string `gorm:"primary_key;not null"` Alias string WatchMask uint SentryDSN string ...
a,b=map(int,input().split(' ')) c=[] for i in range(a): c.append(b-i) for i in range(a): c.append(b+i) m=set(c) m=list(m) m.sort() for i in m: print(i,end=' ')
/* * Request for new transaction from light client. Builds a transaction without sign. * Returns also list of previous transactions selected for input. it is used for signature on client side */ func (s *NodeServerRequest) handleTxRequest() error { s.HasResponse = true var payload nodeclient.ComRequestTransaction e...
SPRINGFIELD, Ill. (AP) — Historic votes Tuesday in the Illinois Legislature positioned that state to become the largest in the heartland to legalize gay marriage, following months of arduous lobbying efforts by both sides in President Barack Obama’s home state. Under the measure, which the state House approved 61-54 b...
# Copyright 2020 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 law or a...
Comparative analysis using WP and TOPSIS method to find the best mountain for hiking Mountain activities or outdoor activities located in the mountains is one form of ecotourism that is popular for many people. One type of mountaineering that is often done is mountain climbing (mountain hiking) because of the many mou...
/** * Handles event distribution and listeners. * @author Daniel */ public class EventSystem { private final Map<Class<? extends Event>, List<EventListener>> listeners = new HashMap<>(); private final Queue<Event> events = new ArrayDeque<>(); /** * Registers an event, adds it to the queue of e...
<filename>packages/amnis-display/src/Skeleton/index.ts export * from './Skeleton'; export * from './Skeleton.types'; export * from './Skeleton.schema';
/** * returns true if If-Range specs match reply, false otherwise */ static int clientIfRangeMatch(ClientHttpRequest * http, HttpReply * rep) { const TimeOrTag spec = http->request->header.getTimeOrTag(HDR_IF_RANGE); if (!spec.valid) return 0; if (spec.tag.str) { ETag rep_tag = rep->header...