content
stringlengths
10
4.9M
/** * @author <a href="mailto:matejonnet@gmail.com">Matej Lazar</a> */ public class BuildExecutionConfigurationMock { public static final String DEFAULT_SYSTEM_IMAGE_ID = "abcd1234"; public static BuildExecutionConfiguration mock() { return BuildExecutionConfiguration.build( 1, ...
<gh_stars>0 use elvis::Colors as ElvisColors; use wasm_bindgen::prelude::*; /// `Colors` interface #[wasm_bindgen] #[derive(Clone, Copy)] pub struct Colors(ElvisColors); impl Default for Colors { fn default() -> Colors { Colors(ElvisColors::Black) } } impl std::convert::Into<ElvisColors> for Colors {...
/** * Method takes as parameters from GUI all possible search criteria. * It then checks, which is valid or if both are, then * sends a query-request to database-class instance accordingly. * As it receives the search result, it then returns the list to GUI * @param subject sought after subject...
Photo by Goh Iromoto In 1993, then-Finance Minister Glen Clark tabled a controversial BC Budget, featuring a wide range of tax changes. A one-point increase in the provincial sales tax was the largest measure, tempered by the introduction of a refundable sales tax credit. Most of the budget measures increased taxes on...
Carroll, Iowa: Where The Childhood Paper Route Is Alive And Well toggle caption Noah Adams for NPR This story began in 2012 while I was working on a story in Iowa. I was taking pictures on a foggy afternoon and saw a young girl on a blue bicycle, a newspaper bag slung across her shoulder. She stopped and held up a co...
<gh_stars>0 package handlers import ( "fmt" log "github.com/sirupsen/logrus" "github.com/w0rm1995/covid19_telegram_bot/models" tb "gopkg.in/tucnak/telebot.v2" ) // HandleGlobal ** func (b *Bot) HandleGlobal(m *tb.Message) { current := models.CurrentCase{} resp, err := current.GetCurrentCovid19() if err != n...
import json import shutil import glob from os import makedirs from os import listdir from os.path import isdir from os.path import basename from datetime import datetime class DBmanage: def __init__(self): self.databasePath = './database/' self.subFolderPath = self.databasePath + self.getCrawlDat...
Melbourne transport and planning expert Paul Mees has died following a 15-month battle with cancer. Professor Mees, who taught at RMIT, was aged 52 and died on Wednesday in a Melbourne hospital. Paul Mees. Credit:Michael Clayton-Jones An international authority in his field, Professor Mees for more than two decades ...
/* SPDX-License-Identifier: MIT */ /* * Copyright(c) 2021 Sanpe <<EMAIL>> */ #ifndef __CSKY_SETJMP_H__ #define __CSKY_SETJMP_H__ #define JMP_BUF_SP 0 #define JMP_BUF_L0 1 #define JMP_BUF_L1 2 #define JMP_BUF_L2 3 #define JMP_BUF_L3 4 #define JMP_BUF_L4 5 #define JMP_BUF_L5 6 #define JMP_BUF_GB...
export default function Custom404() { return ( <div className="mt-16 lg:mt-4 md:h-(screen-60) flex justify-center items-center"> <div className="flex flex-col justify-center items-center max-w-3xl prose-sm lg:prose dark:prose-dark mx-12"> <img className="w-24 lg:w-64 animate-wiggle hover:a...
#include <stdio.h> #include <algorithm> using namespace std; const int maxs = 1000050, maxss = maxs * 10, mm = 1e7, mm1 = 1e6, mm2 = 1e5; long long n, K, ans = -1; int num1[maxs], s1 = 0, num2[maxs], s2 = 0; int hs = 0, he[maxss], ne[maxs], cnt[maxs]; long long st[maxs]; long long chg(int x, int y, long long z) { retur...
// ReadUserByCredentials reads a user by username and password. func (user *User) ReadUserByCredentials(db *sql.DB, uname string, upass string) (found bool) { stmt, err := db.Prepare(` select id, username, password from user where username = ?`) if err != nil { panic(err) } defer stmt.Close() var hashedPassw...
def decoding_checker(topology): for key, decoder in topology['decoding'].items(): if key not in topology['outputs']: raise ConfigException('Output "{}" of decoder does not exist.'.format(key)) if 'scheme' in decoder and decoder['scheme'] not in reg.decoders: raise ConfigExcep...
The heritage industry: Britain in a climate of decline the heritage industry britain in a climate of decline download pdf the heritage industry britain in a climate of the heritage industry britain in a climate of decline free reviews the william morris society in the us the v&a, the destruction of the country house a...
Duke researchers say a protein in breast milk may be a key in preventing babies from contracting HIV from their infected mothers. The protein Tenascin-C is produced by the body to aid in helping wounds heal. Doctors found after isolating the breast milk component that it neutralizes HIV transfer even as breast-fed bab...
<reponame>imjacobclark/Recify {-# LANGUAGE OverloadedStrings #-} module Types.RecentlyPlayed where import qualified Data.ByteString.Lazy as L import qualified Data.Vector as V import Data.Aeson import Data.Either data Artist = Artist { id :: String , href :: String , artistName :: String } derivi...
<reponame>djz332/fieldkit """ Identify and characterize domains. """ from __future__ import division import numpy as np import networkx from fieldkit.mesh import Domain def digitize(field, threshold): """ Digitize a :py:class:`~fieldkit.mesh.Field`. A scalar :py:class:`~fieldkit.mesh.Field` is converted i...
<reponame>eminence/wasm-bindgen<gh_stars>1-10 extern crate base64; extern crate tempfile; use std::collections::{HashMap, HashSet}; use std::fs; use std::io; use std::process::Command; use failure::{Error, ResultExt}; use parity_wasm::elements::*; pub struct Config { base64: bool, wasm2asm: bool, fetch_p...
Despite being named to the Seahawks’ 53-man roster in December 2014, wide receiver Chris Matthews became a household name — at least in Seattle — in just a mere two months. The 6-foot-5, 218-pound wide receiver made arguably two of the biggest plays of the Seahawks’ 2014 season with his onside kick recovery during the...
typedef struct s s; int main(void) { s a; return 0; } struct s { int x; };
NUREMBERG, Germany SUSE® today announced Dr. Thomas Di Giacomo has joined the company in the new role of chief technology officer, the latest addition to SUSE’s executive leadership team. Di Giacomo will report directly to SUSE CEO Nils Brauckmann. This new executive role further bolsters the rapid innovation, growth ...
// CreateEpinioUser creates a new "user" BasicAuth Secret labeled as an Epinio User. func (m *Machine) CreateEpinioUser() (string, string) { user, password := catalog.NewUserCredentials() secretData := fmt.Sprintf(`apiVersion: v1 stringData: username: "%s" password: "%s" kind: Secret metadata: labels: epini...
Houston Rockets center Dwight Howard is hoping this is the year the Rockets contend for a title. (Photo11: Jaime Valdez, USA TODAY Sports) This time a year ago, Dwight Howard was at the center of the NBA free agency frenzy that was just about to get under way. Now, he's on the outside looking in. For now. The Housto...
/** Tries to handle an ack intent. Returns {@code true} iff the intent is an ack intent. */ private boolean tryHandleAckIntent(Intent intent) { byte[] data = AndroidListenerIntents.findAckHandle(intent); if (data == null) { return false; } getClient().acknowledge(AckHandle.newInstance(data)); ...
/** * Method that update an CryptoTransmissionMetadata in the data base. * * @throws CantUpdateRecordDataBaseException */ public void changeState(UUID transaction_id, TransactionTransmissionStates transactionTransmissionStates) throws CantUpdateRecordDataBaseException { if (transaction_id ==...
<reponame>MyLanPangzi/fullstack<gh_stars>0 /** * 1,多态性this,类的方法可以返回this,this的指向变得很灵活,既可以指向父类也可以指向子类 * 2,可以用来构造fluent API,链式编程 */ class BasicCalculator { constructor(protected value: number = 0) { } add(x: number) { this.value += x; return this; } sub(x: number) { this.v...
Mendelian Randomization Analysis of Hemostatic Factors and Their Contribution to Peripheral Artery Disease—Brief Report Supplemental Digital Content is available in the text. Background and Objective: Peripheral artery disease (PAD) is the third most common form of atherosclerotic vascular disease and is characterized...
United States Supreme Court case Sorrell v. IMS Health Inc., 564 U.S. 552 (2011),[1] is a United States Supreme Court case in which the Court held that a Vermont statute that restricted the sale, disclosure, and use of records that revealed the prescribing practices of individual doctors violated the First Amendment.[...
/** * Creates a Distributed Region * * @param vm */ protected AsyncInvocation checkManagerView(final VM vm, final DistributedMember oneManager) { SerializableRunnable createRegion = new SerializableRunnable( "Check Manager View") { public void run() { GemFireCacheImpl cache ...
from math import * n=int(input()) l=floor(sqrt(n))+1 ans=[0]*n def f(a,b,c): return a*a+b*b+c*c+a*b+b*c+c*a for x in range(1,l+1): for y in range(1,l+1): for z in range(1,l+1): g=f(x,y,z) if g<=n: ans[g-1]+=1 for i in range(n): print(ans[i])
#ifndef HELLO_LIB_H #define HELLO_LIB_H int exampleIncrement(int i); #endif
// Move Reticle to mouse cursor position when it moves int Reticle::eventHandler(const df::Event *p_e) { if (p_e->getType() == df::MSE_EVENT) { const df::EventMouse *p_mouse_event = dynamic_cast <const df::EventMouse *> (p_e); if (p_mouse_event->getMouseAction() == df::MOVED) { setPosition(p_mou...
// Devuelve el objeto edificio. Modificacion para poder reutilizar la funcion. public Edificio detectarEdificio(String unEdificio){ if(unEdificio.equals("Banco")){ return this.banco; } if(unEdificio.equals("Aeropuerto")){ return this.aeropuerto; } return t...
<gh_stars>1-10 package dk.in2isoft.onlineobjects.test.model; import static org.junit.Assert.assertEquals; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.l...
Synthesis and Preclinical Evaluation of SP94 for Micro-PET Imaging of GRP78 Expression in Hepatocellular Carcinoma. Glucose-regulated protein 78 (GRP78) is overexpressed in a wide variety of solid tumors, serving as a well-characterized target for tumor imaging or therapy. In this work, we developed a GRP78-responsiv...
package command import ( "github.com/jcalmat/bob/cmd/cli/ui" "github.com/jcalmat/bob/pkg/config" ) type Command struct { ConfigApp config.App Screen *ui.Screen }
Kaspars Gorkss: Linked with a loan move to Leeds Gorkss has found himself out of favour at Reading in recent weeks and has not featured for Brian McDermott's men since the Premier League defeat to Arsenal in December. The 31-year-old is thought to be interested in a move away from Reading in search of regular first-t...
class ShortOrderKitchenMixin: """Provides cook() method to create food. Also provides brew() to provide basic coffee. Expects class to have `self.ready` attribute of type Dict[str, List[str]] """ def cook(self, order, customer): print(f"Cooking {order} for {customer}") self.ready[cu...
<gh_stars>10-100 class DataContentProvider: """ Interface class for getting content of files """ def read(self, filepath: str) -> str: """ Return <file content>: usual case None: data source could not be found/opened """ raise Exception ("implement in subclass") def write(self, f...
def temporal_filter_date(self, mpd_df, filterdate): raw_collection = mpd.TrajectoryCollection(mpd_df, 'track.id', min_length=1) traj_collection = raw_collection.split_by_date('day') filterday_tracks = [] for traj in traj_collection.trajec...
High-sensitivity immunoassay using a novel upconverting phosphor reporter A new class of reporter label, consisting of rare earth elements embedded in a crystalline particle, has been developed for in vitro diagnostic applications. These unique labels upconvert low energy (IR) radiation to high energy light by a multi...
Association between sleep duration and obesity is age- and gender-dependent in Chinese urban children aged 6–18 years: a cross-sectional study Background Information on the relationship between sleep duration and obesity among children in urban Guangzhou, China is limited. This study aims to examine the relationship b...
/** * The main view contains a button and a click listener. */ @Route("") public class MainView extends VerticalLayout { @Inject GreetService greetService; public MainView() { Chart chart = new Chart(ChartType.COLUMN); Configuration conf = chart.getConfiguration(); conf.setTitle...
The Anti Defamation League calls for calm and for government action in wake of attacks on African refugees. The statement includes some racism of its own: While we recognize the complexity involved in properly addressing this issue, and sympathize with Israeli citizens whose personal security has been compromised by t...
<reponame>Ezeer/VegaStrike_win32FR // Copyright (c) 2006 <NAME> // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_BESSEL_K0_HPP #define BOOST_MATH_BESSEL_K0_H...
/** * Asynchronous task for saving edited photo as a new copy. */ public class SaveCopyTask extends AsyncTask<Bitmap, Void, Uri> { /** * Callback for the completed asynchronous task. */ public interface Callback { void onComplete(Uri result); } private static final String TIME_STA...
// Shutdown stops a node and cleansup func (n *Node) Shutdown() { if n.client != nil { n.client.Shutdown() } if err := n.Stop(); err != nil { log.Printf("%s: Cannot stop node: %v", n, err) } if err := n.Cleanup(); err != nil { log.Printf("%s: Cannot cleanup: %v", n, err) } log.Printf("%s: Shutdown", n) }
Rheological and Thermal Analysis of Bentonites for Water Base Drilling Fluids The objective of this research is to investigate the rheological and thermal properties of bentonites for water base drilling fluids. Rheological experiments were performed with 4 different bentonite samples and clay percentages, cation-exch...
<gh_stars>10-100 package com.benjaminwan.chinesettstflite.utils; import android.util.Log; import androidx.annotation.Nullable; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util...
#include "stdafx.h" #include "ForceGenerators.h" #include "RigidBodySimulator.h" namespace sg { namespace physics { //============================================================================= GravityGenerator::GravityGenerator(float3 const& gravity) : m_gravity(gravity) { } //'''''''''''''''''''...
/** * Applies all generic strategies to a given function * * @param cxxFun * the function to analyze * @param options * JSON with HLS options */ public static void applyGenericStrategies(AFunction cxxFun, String options) { ClavaLog.info("HLS API: applyin...
from solver import solver import solver_tools as st class FAS(solver): def __init__(self, pre_smoother, pre_n, post_smoother, post_n, restriction, interpolation, coarse_solver, J_min, tol=None, verbose=False): self._pre_smoother = pre_smoother self._post_smoother = post_smoother ...
<reponame>Ampil1/globus-soft-oauth<gh_stars>0 import { Schema } from 'mongoose'; export enum Provider { FACEBOOK = 'FACEBOOK', GOOGLE = 'GOOGLE', } export const UserSchema = new Schema({ fullNmae: { type: String }, email: { type: String, trim: true, lowercase: true, sparse: true }, password: { type: Str...
/** * @param args the command line arguments */ public static void main(String[] args) { ArrayList<Vehiculo> vehiculos = new ArrayList<>(); int op; do{ op = menu(); switch(op){ case 1: registrarVehiculo(vehiculos); break; ...
<reponame>jmlopez-rod/tslint-eslint-rules /// <reference path='../../../typings/mocha/mocha.d.ts' /> import { runTest, IScripts } from './helper'; /** * Borrowing tests from eslint: * https://github.com/eslint/eslint/blob/master/tests/lib/rules/no-multi-spaces.js */ const rule = 'no-multi-spaces'; const scripts:...
package main import ( "bindings" "flag" "fmt" "github.com/google/uuid" "log" "math/rand" "runtime" "state" "time" ) var clientId string = *flag.String("id", "", "the id of the client. Default is RFC 4122 nodeID.") var masterAddr *string = flag.String("maddr", "", "Master address. Defaults to localhost") var ...
/** * This function tries to parse the text from a text field into a number, * if it fails false is returned otherwise true * @param textField the field which should be checked * @return true if text is a number otherwise false */ private boolean canParseNumber(TextField textField) { tr...
<filename>src/model/Type.d.ts export interface Position { lng: string, lat: string } export interface Sign { id?: string, foreignId: string, // 外键id eid: number | string, // 客户id sourceId: number, // 签到来源,1巡检,2试验,3消缺,4值守 type: number, // 1签到,2签出 longitude: string, // 经度 latitude: string, // 纬度 rema...
<reponame>ekkrym/CovidTrendModel """ To run the retrospective forecasts based on the data available at each day between "2020-04-01" and "2021-12-15" The results are saved in TrendForecast folders in the folders data/paper/horison_*i*_week/JHU_*type*/ where i=1,2, type is "cases" or "deaths" python sou...
<gh_stars>1000+ // Copyright (c) 2018-2021, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this software. package docs // Plugin command usage. ...
// CacheFile stores the file in the cache path func CacheFile(file string, img *Image, cfg *Config) { f, err := os.Create(cfg.CachePath + "/" + file) if err == nil { defer f.Close() img.Write(f) if cfg.Verbose { fmt.Println("vermittler: storing file `" + file + "` in cache") } } else { panic(err.Error()...
So around the time Warner Bros. announced that Justice League was coming as the follow-up to Batman V Superman: Dawn of Justice, word came down that there were nine films currently in development at various stages at Warner Bros. Obviously, we already know a couple of them...and there will likely be at least one more a...
Jake “The Snake” Roberts is eating a hamburger. He’s sitting down, slouching a bit to his right, maybe, but you can tell how tall he is. His fast food takeout bag is wadded up on the table in front of him, on top of his 8 x 10 glossies. He grins to himself between chews. A fan approaches for a photo — one that he’ll pa...
<gh_stars>0 """@package This package enables the project usage for the database. """ import re from datetime import date from src.models.type import Type from src.models import EmployeeDataAccess, GuideDataAccess, LikeDataAccess def extract_text(html): """ Removes the tags from a HTML string. :param html...
a,b,c=map(int,input().split()) d={"a":a,"b":b,"c":c} for i in range(int(input())+1): if d["a"]<d["b"]<d["c"]: print("Yes") exit() elif d["a"]>=d["c"]: d["c"]*=2 elif d["a"]>=d["b"]: d["b"]*=2 elif d["b"]>=d["c"]: d["c"]*=2 print("No")
<gh_stars>0 package betterquesting.client.gui2.tasks; import betterquesting.api.api.QuestingAPI; import betterquesting.api2.client.gui.misc.GuiAlign; import betterquesting.api2.client.gui.misc.GuiRectangle; import betterquesting.api2.client.gui.misc.GuiTransform; import betterquesting.api2.client.gui.misc.IGuiRect; im...
<filename>apiv1/cloud_props_test.go package apiv1_test import ( "encoding/json" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/cloudfoundry/bosh-cpi-go/apiv1" ) type FakeCPs struct { CP string `json:"cp1"` } var _ = Describe("CloudPropsImpl", func() { It("allows customized unmarshaling",...
<gh_stars>0 /* * This file is part of the uv_hal distribution (www.usevolt.fi). * Copyright (c) 2017 <NAME>. * * * MIT License * * Copyright (c) 2019 usevolt * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
Pathogenesis of Dyspepsia Functional dyspepsia (FD) is a highly prevalent and heterogeneous disorder. Although recent studies have investigated various pathophysiological mechanisms, the pathogenesis of FD remains obscure. Pathophysiological mechanisms currently proposed to be involved in FD symptom generation include...
/// Prunes expired deploy information from an individual deploy collection, returns the total /// deploys pruned pub(super) fn prune_deploys( deploys: &mut HashMap<DeployHash, DeployHeader>, current_instant: Timestamp, ) -> usize { let initial_len = deploys.len(); deploys.retain(|_hash, header| !header....
<filename>code/contract_read_erc20.go package main import ( "fmt" "log" "math" "math/big" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" token "./contracts_erc20" // for demo ) func main() { client, err := ethclient.D...
<gh_stars>10-100 # -*- coding: utf-8 -*- # Copyright (c) 2020 <NAME> # Copyright (c) 2020 Instituto Nacional de Tecnologïa Industrial # License: Apache 2.0 # Project: KiAuto (formerly kicad-automation-scripts) """ Tests for eeschema_do miscellaneous stuff. For debug information use: pytest-3 --log-cli-level debug """...
def _handle_data(self, model_name, payload): if self._message_count == 1: expected_type = self._response_type() expected_name = expected_type._model_name() if model_name != expected_name: msg = "Unexpected response type: {}, expected: {}".format(model_name, ex...
/** * Abstraction of a vertical sidebar displayed on the left side. */ public class NavigationSidebarLeft extends UiPart<VBox> { private static final String FXML = "components/SidebarLeft.fxml"; private final MainWindow mainWindow; public NavigationSidebarLeft(MainWindow mainWindow) { super(FXML...
/** * @file ref_mesh_builder.h * * @authors <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * @brief Reference (sequential) implementation of "BaseMeshBuilder". * * @date 29 October 2019, 21:00 **/ #ifndef REF_MESH_BUILDER_H #define REF_MESH_BUILDER_H #include <vector> #include "base_mesh_builder.h" ...
/** * Support reading our credential from the wire or disk. * * NOTE: If we aren't on the master, we expect the embedded credential * to be provided, along with a module we can use to establish identity. */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ...
import { generateUUID } from '@common/helpers/UUID'; import Comment from './Comment'; import Confiability from './Confiability'; import Estabelishment from './Estabelishment'; import Product from './Product'; class Publishment { public id: string; public price: number; public condition: any; public createdAt?: Dat...
/** * Implementation of the {@link Session} interface for Server Message Block (SMB) * also known as Common Internet File System (CIFS). The Samba project set out to * create non-Windows implementations of SMB. Often Samba is thus used synonymously to SMB. * * SMB is an application-layer network protocol that mana...
#include <stdio.h> #define __STDC_FORMAT_MACROS #include <inttypes.h> static int _ai[1000]; int main() { int N; int64_t K; scanf("%d %"PRId64 "\n", &N,&K); if(K >= N) K = N-1; for(int i = 0 ; i < N ; ++i) scanf("%d\n", &_ai[i]); // we will never need more than N-1 wins (consider strongest player) and we ...
/* Search for a key specification entry. If SSH_NAME is not NULL, search for an entry whose "ssh_name" is equal to SSH_NAME; otherwise, search for an entry whose "name" is equal to NAME. Store found entry in SPEC on success, return error otherwise. */ static gpg_error_t ssh_key_type_lookup (const char *ssh_n...
/** * Reads a TemporalDataset and either tries to automatically detect the temporal * column or use a given data format specification. * * <p> * Added: 2011-09-27 / AR<br> * Modifications: 2013-03-25 / AR / autoGranularity * </p> * * @author Alexander Rind */ public class TextTableTemporalDatasetR...
{-# LANGUAGE TemplateHaskell #-} module Phoityne.VSCode.TH.SetBreakpointsResponseJSON where import Data.Aeson.TH import Phoityne.VSCode.Utility import Phoityne.VSCode.TH.SetBreakpointsRequestJSON import Phoityne.VSCode.TH.SetBreakpointsResponseBodyJSON -- | -- Response to "setBreakpoints" request. -- Retur...
With less than a week to go not only before Apple's Worldwide Developers Conference keynote, but also a forthcoming 7-for-1 stock split, investors pushed shares of the iPhone maker to a new 52-week high on Tuesday. The New York Stock Exchange, credit Carlos Delgado via Wikipedia. Shares of Apple closed the day at $62...
Association of limited valence patchy particles in two dimensions We investigate theoretically the phase behavior of particles with limited valence in two dimensions, by solving the first-order Wertheim theory form. As previously found for three dimensions, in two dimensions also the valence has a strong impact on the...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef DrawMode_h #define DrawMode_...
def process(self, labels): strings = "".join(labels) for s in strings: if s not in self.char2index: self.char2index[s] = self.grapheme_count self.index2char[self.grapheme_count] = s self.grapheme_count += 1
def exclude_native_if_dot1x(self): exclude_ports = set() for port in self.untagged: if port.dyn_dot1x_native_vlan is None: continue if port.dyn_dot1x_native_vlan != self: exclude_ports.add(port) return exclude_ports
/* ============================================================================== AdsrComponent.cpp Created: 7 Feb 2021 2:28:49pm Author: <NAME> ============================================================================== */ #include <JuceHeader.h> #include "AdsrComponent.h" //======...
// canExecuteConcurrently determines if the cocurrency settings allow our job // to be started. We start jobs with a limited concurrency in order, oldest // first. This allows us to get away without any global locking by just looking // at the jobs in the cluster. func (r *reconciler) canExecuteConcurrently(pj *prowv1....
**Editorial** Rob Franek, Editor-in-Chief Casey Cornelius, VP Content Development Mary Beth Garrick, Director of Production Selena Coppock, Managing Editor Meave Shelton, Senior Editor Colleen Day, Editor Sarah Litt, Editor Aaron Riccio, Editor Orion McBean, Associate Editor **Penguin Random House Publishin...
<reponame>Sheldan/abstracto package dev.sheldan.abstracto.core.service; import dev.sheldan.abstracto.core.listener.ListenerService; import dev.sheldan.abstracto.core.listener.async.entity.AsyncCacheClearingListener; import dev.sheldan.abstracto.core.models.listener.VoidListenerModel; import lombok.extern.slf4j.Slf4j; ...
<gh_stars>1-10 package com.github.seratch.jslack.api.model; import com.github.seratch.jslack.api.model.block.LayoutBlock; import com.google.gson.annotations.SerializedName; import lombok.AccessLevel; import lombok.Data; import lombok.Getter; import lombok.Setter; import java.util.List; @Data public class MatchedItem...
/** * Shows all of the applications by playing an animation on the grid. */ private void showApplications(boolean animate) { if (mBlockAnimation) { return; } mBlockAnimation = true; if (mShowLayoutAnimation == null) { mShowLayoutAnimation = AnimationUtil...
/** * Serve a read request of arbitrary size at an arbitrary offset. * Stitches together multiple blocks to serve large requests, drops * data from the front of the first block if the request is not aligned. * Always requests aligned data of the size of one block or less from the * lower layer. * Returns the numb...
def getNext(s): l=len(s)-1 lg=len(s) while(l>=0 and s[l]=='Z'):l=l-1 if l<0 : return 'A'*(lg+1) s=s[:l]+chr(ord(s[l])+1)+'A'*(lg-l-1) return s def isRC(s): ct=0 for i in range(1,len(s)): if(s[i].isdigit() and s[i-1].isalpha()):ct=ct+1 if(ct>1):return True re...
/* !========================================================================== elemental function gsw_pt_from_pot_enthalpy_ice (pot_enthalpy_ice) !========================================================================== ! ! Calculates the potential temperature of ice from the potential enthalpy ! of ice. The refer...
/** * This call will do validation for all incoming request data. * * @author Manzarul */ public final class RequestValidator { private static final int ERROR_CODE = ResponseCode.CLIENT_ERROR.getResponseCode(); private RequestValidator() {} /** * This method will validate bulk user upload requested data....
def geo_file_info(self): if not libFile.exists(self.geoListPath): raise RuntimeError("No geo has been exported to this path") return libFile.load_json(self.geoListPath)
/** * Simple logger for gRPC outgoing calls before they are dispatched by a {@link Channel}. */ @Slf4j public class LogClientInterceptor implements ClientInterceptor { @Override public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(MethodDescriptor<ReqT, RespT> method, ...
/** * prepare some tables for testing. */ public void registerTables() { registerTable("create table MyTable (a int, b bigint, c varchar(32)) " + "with ('connector' = 'filesystem', 'path' = '/non')"); registerTable("create table MyOtherTable (a int, b bigint) " + "with ('connector' = 'filesystem', 'path...