content
stringlengths
10
4.9M
// NewStateStore creates a new persistent state storage. func NewStateStore(path string, l logging.Logger) (storage.StateStorer, error) { db, err := leveldbDriver.Open(path, "") if err != nil { if !ldberr.IsCorrupted(err) { return nil, err } } s := &store{ db: db.(driver.BatchDB), logger: l, } if e...
Universal Home Entertainment is bringing the action-thriller Eliminators to Blu-ray & DVD (read our review) on December 6, 2016. The film stars Scott Adkins (Close Range, Hard Target 2) and former WWE champ Wade Barrett. The film is directed by James Nunn, who previously worked with Adkins in Green Street 3: Never Back...
<reponame>QianJianhua1/spack<filename>var/spack/repos/builtin/packages/scitokens-cpp/package.py # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * clas...
def u_decay(self, value): if not isinstance(value, int): warnings.warn('''"u_decay should be an integer''') value = int(value) if value not in range(0, 2 ** 12 - 1): raise ValueError('''v_decay should be between 0 and 2**12-1''') self._u_decay = value
Hydrogen Sulfide and Glucose Homeostasis: A Tale of Sweet and the Stink. SIGNIFICANCE Among many endogenous mediators, the gasotransmitter hydrogen sulfide (H2S) plays an important role in the regulation of glucose homeostasis. In this article we discuss different functional roles of H2S in several metabolic organs/ti...
Advanced male breast cancer treatment with the LH‐RH analogue buserelin alone or in combination with the antiandrogen flutamide Ten men with advanced breast cancer were evaluated for response to treatment with the luteinizing hormone‐releasing hormone (LH‐RH) analogue, buserelin, alone or in combination with the antia...
// Close closes the datastore and releases all db resources. func (s *nutsDBStore) Close() error { s.log.Debugf("closing store at path: %s", s.path) err := s.db.Close() s.db = nil s.log.Info("store closed") return s.logError("close", err) }
#include <iostream> #include <algorithm> using namespace std; int main() { int n , c1 = 0 , c2 = 0 , c3 = 0 , n1 = 0 , n2 = 0 , n3 = 0 , counter = 0 ; cin >> n ; int arr[n] ; for(int i = 0 ; i < n ; i++){ cin >> arr[i] ; if(arr[i] == 1){ n1++; }e...
/** * Removes a role from a member * * @param argument * the name of the role to remove * @param member * the member to modify */ private void removeRole(String argument, Member member) { try { List<Role> guildRoles = guild.getRolesByName(argument, false); if (guildRoles....
Over the past two weeks, word has begun to spread that Big Dairy is shelling out lawsuit dollars to American consumers of milk, yogurt, and other creamy products. But while 'free' money is often sweet news by itself, the story behind this relatively slim settlement has a distinctly more sour and, for milk cows, far dea...
#include "mainwindow.h" #include <QApplication> using namespace std; #define DLL_PUBLIC __attribute__ ((visibility ("default"))) extern "C" DLL_PUBLIC void initializeWindow(Configuration configuration); extern "C" DLL_PUBLIC int execute(); extern "C" DLL_PUBLIC void sendToBrowser(const char* text); extern "C" DLL_PUB...
#include <opencv2/core/core.hpp> #include "baseapi.h" #include <leptonica/allheaders.h> #include <iostream> #include <string> #include <regex> #include <utility> #include <fstream> using namespace std; void deleteAllMark(string &s, const string &mark) { size_t nSize = mark.size(); while (1) { size_t p...
An Analysis of the Spatial Distribution of Soil Erosion in Shitai County Spatial distribution of soil erosion is studied in Shitai County, based on the universal soil loss equation and the GIS spatial analysis, the relationships between soil erosion, terrain, soil types, and land uses have been investigated in this pa...
import java.util.Scanner; import java.util.Arrays; import java.lang.Math; public class CF1003DD3{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int q = in.nextInt(); int [] coins = new int [33]; for(int i = 0; i < n; i++){ int input = in.nextInt...
/// trigger an Alert, for anything security related fn error_level(&self) -> Level { match self { MessageError::InvalidAddress(_) => Level::Error, MessageError::UnknownSender(_) => Level::Error, MessageError::ForbiddenSender(_) => Level::Alert, MessageError::Unkno...
On power control in cellular communication using ANFIS Transmitter power is an important resource in cellular mobile radio systems. Effective power control can increase system capacity and quality of service. A commonly used measure of the quality of service is the Carrier to Interference Ratio (CIR) at the receiver. ...
/** * Test method for adding a brand new group to the system. It verifies if after * adding group, the group is redirected to the group management page; if this * group now exists in the groups list; and if the number of groups existing was * incremented by one. */ @Test public void testAddGroup() { logger...
<gh_stars>1-10 #!/usr/bin/env python3 class ctruncate: ''' Pointless Wrapper ''' def __init__(self,mtzin,mtzout, showcommand=False, log=None, logview=None): # Generate timestamp import datetime timestamp = datetime.datetime.now().strftime("%y%m%d-%H%M%S") # Assign general inp...
def remove_pose(self): for i in range(len(self.shape_box)): window.remove(self.shape_box[i]) self.shape_box.clear() window.remove(self.eye)
// ReverseResolve resolves an address in to an ENS name // This will return an error if the name is not found or otherwise 0 func ReverseResolve(client *ethclient.Client, input *common.Address) (name string, err error) { if input == nil { err = errors.New("No address supplied") return } nameHash := NameHash(inpu...
Epidemiology, Prevention, Diagnosis, and Management of Venous Thromboembolism in Gastrointestinal Cancers Venous thromboembolism (VTE) is a leading cause of cardiovascular death and is associated with significant morbidity. Patients with cancer, and gastrointestinal (GI) malignancies in particular, are at increased ri...
export const c_menu_m_drilldown_c_menu_Transition: { "name": "--pf-c-menu--m-drilldown--c-menu--Transition", "value": "transform 250ms, visibility 250ms", "var": "var(--pf-c-menu--m-drilldown--c-menu--Transition)" }; export default c_menu_m_drilldown_c_menu_Transition;
def train_subject_specific(subject, epochs=500, batch_size=32, lr=0.001, silent=False, plot=True, **kwargs): train_samples, train_labels = get_data(subject, training=True) test_samples, test_labels = get_data(subject, training=False) train_loader = as_data_loader(train_samples, tr...
|| || || Meadowind was kind enough to make most of the brushes Photoshop Friendly! Here's a link! Meadow ended up deactivating. Have no fear though! You can still install the brushes using this method Download brushes individually here EDIT 3: Here 's a link to the brush installation tutorial!EDIT 2:EDIT: OOPS I f...
import java.io.*; import java.util.*; public class problem339D { public static int pow (int base, int exp){ int ans=1; for (int i=1; i<=exp; i++){ ans*=base; } return ans; } public static void main (String[]args)throws IOException{ BufferedReader x=new BufferedReader(new InputStreamRe...
import argparse import json from datetime import datetime from typing import Dict import pathlib parser = argparse.ArgumentParser() parser.add_argument('--first_step_dir', type=str, default=None) parser.add_argument('--target_dir', type=str, default=None) args = parser.parse_args() def get_timestamp() -> str: r...
def top(self, category=0): return Top(self.base_url, category)
def map_scale(self): return self.gxmap.get_map_scale()
/* Author: <NAME>, Coventry University */ #pragma once #include <stdint.h> // PI*2 constexpr double pi2 = 3.14159 * 2; /** * @brief Get microseconds since the ESP started. */ int64_t getMicros(); /** * @brief Get milliseconds since the ESP started. */ int64_t getMillis(); /** * @brief Get the next integer ...
package com.app.chenyang.sweather.network; import com.app.chenyang.sweather.entity.HeWeather; import com.app.chenyang.sweather.global.MyConst; import java.util.concurrent.TimeUnit; import okhttp3.OkHttpClient; import retrofit2.Retrofit; import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory; import retrofit2.conve...
Hillary Clinton divulged Top Secret nuclear security intelligence to tens of millions of worldwide television audience viewers Wednesday night during the third presidential debate, according to high-ranking Department of Defense personnel. Clinton, responding to opponent Donald Trump and a question posed by debate mod...
<gh_stars>0 package chapter.android.aweme.ss.com.homework; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widge...
Tolerability of four‐drug antiretroviral combination therapy in primary HIV‐1 infection Objectives Rapid initiation of antiretroviral therapy (ART) is important for individuals with high baseline viral loads, such as in primary HIV‐1 infection (PHI). Four‐drug regimens are sometimes considered; however, data are lacki...
<gh_stars>1-10 package net.andreinc.carsandpolice.query; import net.andreinc.carsandpolice.query.utils.KsqlDbStreamingQuery; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.messaging.simp.SimpMessagingTemplate; import org.springframework.stereotype.Component; import javax.ann...
/** * Combines the results of a join between ExpandIntermediateResults and an edge embedding by growing * the intermediate result. * Before growing it is checked whether distinctiveness conditions would still apply. */ @FunctionAnnotation.ForwardedFieldsFirst("f0") @FunctionAnnotation.ForwardedFieldsSecond("f2") pu...
<filename>src/unwinder/sentry_unwinder_libunwindstack.cpp extern "C" { #include "sentry_boot.h" #include "sentry_core.h" } #include <memory> #include <ucontext.h> #include <unwindstack/Maps.h> #include <unwindstack/Memory.h> #include <unwindstack/Regs.h> #include <unwindstack/RegsGetLocal.h> #include <unwindstack/Unwi...
# -*-coding:Latin-1 -* from emoji import get_emoji_regexp from re import sub # Defining function to remove emojis def remove_emoji(text): return get_emoji_regexp().sub(u'', text) def clean_data(input): # Removing emojis output = input.map( lambda my_text: remove_emoji(my_text) ) # Encoding into asci...
The bulk of the book’s second half spends time slowly setting the table of the world immediately surrounding Nazarick. I liked that we immediately got the sense of a living and breathing world with people going about their lives that existed independently of Momonga’s little fiefdom. We also get introduced to the polit...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------------------...
package com.freetmp.mbg.merge.expression; import com.freetmp.mbg.merge.AbstractMerger; import com.github.javaparser.ast.expr.DoubleLiteralExpr; /** * Created by LiuPin on 2015/5/13. */ public class DoubleLiteralExprMerger extends AbstractMerger<DoubleLiteralExpr> { @Override public DoubleLiteralExpr doMerge(Doub...
/**************************************************************************** Function ES_PostToServiceLIFO Parameters uint8_t : Which service to post to (index into ServDescList) ES_Event : The Event to be posted Returns boolean : False if the post function failed during execution Description Posts,...
# -*- coding: utf-8 -*- """ This file contains the Qudi Interface file for control wavemeter hardware. Qudi 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) an...
<filename>python-algorithm/leetcode/problem_524.py """524. Longest Word in Dictionary through Deleting https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/ """ import bisect from typing import List class Solution: def find_longest_word(self, s: str, dictionary: List[str]) -> str: map...
256×256, 100kfps, 61% Fill-factor time-resolved SPAD image sensor for microscopy applications A 256×256 Single Photon Avalanche Diode (SPAD) image sensor operating at 100kfps with fill factor of 61% and pixel pitch of 16μm is reported. An all-NMOS 7T pixel allows high uniformity gated operation down to 4ns and ∼600ps ...
Syracuse, N.Y. — Popular Syracuse Crunch defenseman J.P. Cote said Tampa Bay has told him it will not re-sign him for the 2015-16 season. Cote, on an NHL deal, will be an unrestricted free agent on July 1. Cote, 33, was a heart-and-soul defenseman for Syracuse who helped build winning cultures in Norfolk and Syracuse...
/************************************* * * DSK board DSP32C I/O handlers * *************************************/ void harddriv_state::hd68k_dsk_dsp32_w(offs_t offset, uint16_t data) { m_dsk_pio_access = true; if (m_dsp32.found()) m_dsp32->pio_w(offset, data); m_dsk_pio_access = false; }
/// Class does some book keeping for timing an interval /// Resolution: 1 second. /// class IntervalTimer { private: time_t _timeout; time_t _start_time {0}; bool _running {false}; public: IntervalTimer( time_t to ) : _timeout(to) { } bool expired() { return (_running a...
package bayern.steinbrecher.woodpacker.data; import java.util.Collection; import java.util.Collections; /** * @author <NAME> * @since 0.1 */ public class CuttingPlan { private final Collection<PlankSolutionRow> rows; private final BasePlank basePlank; private final int oversize; public CuttingPlan...
/** * Navigation to specified point split by axis for int[] destination * * @param currentPoint Current point tile coordinates * @param targetPoint Target location in tile coordinates */ public synchronized static void navigateToPoint(double currentPoint[], int targetPoint[]) { double distXToP...
/** * returns privilege entities by code collection * * @param * @return List<Privilege> * @author umit.kas */ @Override public List<Privilege> findAllByCode(List<Long> codes) throws DataNotFoundException { List<Privilege> entities = privilegeRepository.findAllByCodeIn(codes); ...
package io.microconfig.core.properties.templates.definition.parser; import io.microconfig.core.properties.Property; import io.microconfig.core.properties.templates.TemplateDefinition; import io.microconfig.core.properties.templates.TemplateDefinitionParser; import io.microconfig.core.properties.templates.TemplatePatte...
/* ** EPITECH PROJECT, 2020 ** PSU_42sh_2019 ** File description: ** init */ #include <stdlib.h> /* getcwd */ #include <unistd.h> /* strdup */ #include <string.h> #include "hasher/insert_data.h" #include "proto/shell/local_variables.h" #include "types/local_variables.h" static void local_variables_add(struct hasher_...
<reponame>gengxiaoyun/test package metadata import ( "github.com/romberli/go-util/config" "github.com/romberli/das/pkg/message" ) func init() { initDebugMonitorSystemMessage() initInfoMonitorSystemMessage() initErrorMonitorSystemMessage() } const ( // debug DebugMetadataGetMonitorSystemAll = 100601 D...
// Run executes kube-test given an artifact directory, and sets settings // required for kubetest to work with Cluster API. JUnit files are // also gathered for inclusion in Prow. func Run(ctx context.Context, input RunInput) error { if input.ClusterProxy == nil { return errors.New("ClusterProxy must be provided") ...
import { AboutPage } from './AboutPage' export default AboutPage
/** * @param initialSettings a map with settings to be present in the config. * @return a configuration with default values augmented with the provided <code>initialSettings</code>. */ @Nonnull public static Config defaults( @Nonnull final Map<String,String> initialSettings ) { return bui...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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/LICENSE2.0 * * Unless required by applicable law o...
// ProgressWriter reports the write progress. func ProgressWriter(op *operations.Operation, key string, description string) func(io.WriteCloser) io.WriteCloser { return func(writer io.WriteCloser) io.WriteCloser { if op == nil { return writer } progress := func(progressInt int64, speedInt int64) { progress...
If Bill Nye loves space so much, how come he's never gone into it? It's not for lack of trying. In a recent interview at AOL headquarters in New York, America's beloved "Science Guy" and the CEO of The Planetary Society said that he had applied to join the astronaut corps four times, but NASA rejected him. "The kind ...
// make sure we don't crash on highly nested expressions // or rather, crash in a controlled way fn recursion_check(&self) -> RecursionGuard { // this is just a guesstimate, it should probably be configurable #[cfg(debug_assertions)] const MAX_DEPTH: usize = 50; #[cfg(not(debug_assertion...
<filename>pkg/client/secrets.go package client import ( "context" "fmt" "github.com/consensys/quorum-key-manager/src/stores/api/types" ) const secretsPath = "secrets" func (c *HTTPClient) SetSecret(ctx context.Context, storeName, id string, req *types.SetSecretRequest) (*types.SecretResponse, error) { secret :=...
Efficient estimation of human immunodeficiency virus incidence rate using a pooled cross‐sectional cohort study design Development of methods to accurately estimate human immunodeficiency virus (HIV) incidence rate remains a challenge. Ideally, one would follow a random sample of HIV‐negative individuals under a longi...
/** * This class will be used when order is not change so not need to update the row */ public class DummyRowUpdater implements SortTempRowUpdater { private static final long serialVersionUID = 5989093890994039617L; @Override public void updateSortTempRow(IntermediateSortTempRow intermediateSortTempRow) { /...
/** * The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean * constants. This class should not be used for any other purpose. All constants should be declared * globally (i.e. public static). Do not put anything functional in this class. * * <p>It is advised to staticall...
<filename>array/sum.go<gh_stars>0 package array // Sum takes array as input, and returns the sum of all of them. func Sum(numbers []int) int { sum := 0 for _, number := range numbers { sum += number } return sum } // SumAll compute sum all the given slices, and return this in new slice. func SumAll(numbersToSum...
The Department of Veterans Affairs’ top health official on Monday told a House committee hearing into “preventable deaths” at VA medical facilities that the incidents represented “serious but not systemic” problems for the department. The hearing, held in Pittsburgh at the Allegheny County Courthouse, featured testimo...
<reponame>LX-s-Team/CookingLevel-Forge package net.minecraft.advancements; import com.google.gson.JsonObject; import net.minecraft.advancements.critereon.DeserializationContext; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.PlayerAdvancements; public interface CriterionTrigger<T extends...
import {Client as DiscordClient, Message} from "discord.js"; import fetch from "node-fetch"; import * as dcu from '../discordbot/discordUtil' import {formatFile} from "./pasteFormatter"; import {createPaste} from "./pasteApi"; const ALLOWED_SUFFIXES = [ '.txt', '.log', '.cfg', '.json', '.json5', '.iml', '.xml', '.yml...
from typing import Optional import pandas as pd import numpy as np from .common.helpers.helpers import Frame from .settings import default_ticker, PeriodLength, _MONTHS_PER_YEAR from .api.data_queries import QueryData from .api.namespaces import get_assets_namespaces class Asset: """ A financial asset, that...
// Describe a local image with the highest confidence guess. func (c *Client) Describe(localImagePath string) (*computervision.ImageCaption, error) { if c.loud { fmt.Printf("Trying to describe %s\n", localImagePath) } var localImage io.ReadCloser localImage, err := os.Open(localImagePath) if err != nil { retur...
/// Create and configure config instance. fn configure<F>(f: F) -> Self::Config where F: FnOnce(Self::Config) -> Self::Config, { f(Self::Config::default()) }
/** * Performs linear interpolation to compute value of a point given a list of x and y coordinates * @param point Point at which the interpolation value is needed * @param x X-coordinates of the data points (must be increasing) * @param y Y-coordinates of the data points * @return double The e...
// Some values are custom and specific to Denizen public static CuboidBlockSet fromSpongeStream(InputStream is) { CuboidBlockSet cbs = new CuboidBlockSet(); try { NBTInputStream nbtStream = new NBTInputStream(new GZIPInputStream(is)); NamedTag rootTag = nbtStream.readNamedTag();...
// SendReply sends a reply to the caller func (r *Request) SendReply(resp proto.Message, withError *Error) error { if r.StreamedReply() { r.KeepStreamAlive.Stop() if withError == nil { return r.sendReply( nil, &Error{Type: Error_EOS, MsgCount: r.StreamMsgCount}, ) } } return r.sendReply(resp, withErr...
Bioactive four-membered heterocyclic compounds: the anti --> syn interconversion in dithietane-1,3-dioxide. The anti-dithietane-1,3-dioxide --> syn-dithietane-1,3-dioxide isomerization reaction has been theoretically studied on the frame of MO theory both in the gas phase and in solution. In the gas phase the anti (II...
<gh_stars>0 package com.tiscon.service; import com.tiscon.code.OptionalServiceType; import com.tiscon.code.PackageType; import com.tiscon.dao.EstimateDao; import com.tiscon.domain.Customer; import com.tiscon.domain.CustomerOptionService; import com.tiscon.domain.CustomerPackage; import com.tiscon.dto.UserOrderDto; imp...
March 13th, 2015 Linus Under Wraps, Fedora Tests Wayland & More… FOSS Week in Review To be honest, I’m really not finished going through all the materials I picked up at the Open Compute Project 2015 U.S. Summit this week in San Jose. There is a lot of interesting stuff here to wade through, and I’m still going thro...
<filename>crates/erooster_imap/src/commands/noop.rs<gh_stars>1-10 use crate::commands::CommandData; use futures::{channel::mpsc::SendError, Sink, SinkExt}; use tracing::instrument; pub struct Noop; impl Noop { #[instrument(skip(self, lines, command_data))] pub async fn exec<S>( &self, lines: &...
<reponame>mraitmaier/pyrus """ testresult.py - a script implementing TestResult and TestStatus classes The former is the main class (as the name of the file suggests...) and it is a container for test result. The latter is just a simple helper class serving as a enum for available test result values. ...
The first thing that comes to mind for some former Creighton players about new Purdue assistant coach Steve Lutz: "Toughness." Cole Huff and Geoffrey Groselle each played for the Bluejays during Lutz' seven years with Greg McDermott's program. Both tabbed "toughness" above all else when asked to describe him, but with...
def _compute_contiguity_geom(self, region_id=None, params={}): nx, ny = self.borders[0].shape[0]-1, self.borders[1].shape[0]-1 if region_id is not None: return compute_contiguity_grid(region_id, (nx, ny)) iss, jss, dts = [], [], [] for i in range(nx): for j in ran...
In 2011, Google and Apple spent more on patent litigation than research, the author says. | AP Photos Throw (patent) trolls under bridge When America’s system of patent litigation has gotten so dysfunctional that President Barack Obama and Republican Judiciary Chairman Bob Goodlatte agree on the need for reform, somet...
def data_load_essentia(filename, duration=None, offset=0.0, sr=22050, mono=True, **kwargs): assert type(filename) is str and filename is not None and filename != '', 'filename argument {0} / {1} is invalid'.format(filename, type(filename)) l.debug('Loading ({2}) {0} s of audio file {1}'.format(duration, filenam...
/* * Copyright (c) 2019, 2021 Oracle and/or its affiliates. * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.examples.tls; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io....
<reponame>jiaruixu/Detectron #!/usr/bin/python # # Converts the polygonal annotations of the Cityscapes dataset # to images, where pixel values encode the ground truth classes and the # individual instance of that classes. # # The Cityscapes downloads already include such images # a) *color.png : the clas...
/** A queue of all as yet unattributed classes. * * <p><b>This is NOT part of any supported API. * If you write code that depends on this, you do so at your own risk. * This code and its internal interfaces are subject to change or * deletion without notice.</b> */ public class Todo extends AbstractQueue<Env<...
"""Act as a proxy for the Foo instance in this thread's context.""" from ThreadLocalStorage import currentContext class FooProxy: """Act as a proxy for the Foo instance in this thread's context. This is based on the ThreadLocalStorage module. """ def __getattr__(self, attr): retur...
<reponame>braposo/braid-design-system<filename>lib/components/private/ThemeContext.ts<gh_stars>1-10 import { createContext, useContext } from 'react'; import { Theme } from './../../themes/theme'; const themeContext = createContext<Theme | null>(null); export const useTheme = () => { const theme = useContext(themeC...
Evidence of eosinophil extracellular trap cell death in COPD: does it represent the trigger that switches on the disease? In spite of the numerous studies on chronic obstructive pulmonary disease (COPD), the cellular and molecular basis of the disease’s development remain unclear. Neutrophils and eosinophils are known...
/** * Returns whether the specified plug-in is installed. * * @param shortName * the plug-in to check * @return <code>true</code> if the specified plug-in is installed, <code>false</code> if not. */ public static boolean isPluginInstalled(final String shortName) { Hudson...
#ifndef DataFormats_Common_EndPathStatus_h #define DataFormats_Common_EndPathStatus_h namespace edm { class EndPathStatus { public: EndPathStatus() {} }; } #endif
import Promise = require('any-promise'); import { Request, Response, PopsicleError } from 'popsicle'; declare function popsicleRetry(retries?: (error: PopsicleError, response: Response, iter: number) => number): (request: Request, next: () => Promise<Response>) => Promise<any>; declare namespace popsicleRetry { ...
package tr.cobanse.batak.server.action; import java.util.List; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import tr.cobanse.batak.common.RequestMessage; import tr.cobanse.batak.common.ResponseMessage; import tr.cobanse.batak.common.ResponseType; import tr.cobanse.bat...
def plot_twinboundary_shear_bandstructures( self, npoints:int=51, with_eigenvectors:bool=False, use_reciprocal_lattice:bool=True): from twinpy.common.band_path \ import get_labels_band_paths_from_seekpath from twinpy.plot.band_structure imp...
/* In the name of Allah */ #include<bits/stdc++.h> using namespace std; const int N = 1 << 18; int n, cnt[N], par[N]; long long ans; int get_par(int u) { return par[u] < 0? u: par[u] = get_par(par[u]); } bool merge(int u, int v) { if ((u = get_par(u)) == (v = get_par(v))) return false; if (par[u] < par[v]) sw...
/* If mktime_ok failed, display the failed time values, and provide possible hints. Example output: date: error: invalid date/time value: date: user provided time: '(Y-M-D) 2006-04-02 02:45:00' date: normalized time: '(Y-M-D) 2006-04-02 03:45:00' date: ...
UPDATED ‘Perpetuating an Islamophobic, hostile campus climate …’ The president of the San Diego State College Republicans is facing threats and demands for his resignation over a letter from the political club calling on the school’s Muslim Student Association to condemn the recent terror attack in Barcelona. The le...
def last_modified(file_or_folder: str) -> arrow.Arrow: try: return max( mtime(f) for f in iter_files(file_or_folder) if not os.path.islink(f) ) except ValueError: raise CommandError(f"no files in folder: {file_or_folder}")
/** * Creates a new PatternConverter. * * @param converterId converterId. * @param currentLiteral literal to be used if converter is unrecognized or following converter * if converterId contains extra characters. * @param rules map of stock pat...
/** * Helper class to register JSR-310 specific {@link Converter} implementations in case the we're running on Java 8. * * @author Mark Paluch */ public abstract class Jsr310Converters { private static final boolean JAVA_8_IS_PRESENT = ClassUtils.isPresent("java.time.LocalDateTime", Jsr310Converters.class.getC...