content
stringlengths
10
4.9M
Moscow: Russian President Vladimir Putin praised Fidel Castro, the socialist Cuban icon who has died aged 90, as the "symbol of an era," the Kremlin said in a statement on Saturday. "The name of this distinguished statesman is rightly considered the symbol of an era in modern world history," Putin said in a telegram t...
<reponame>chongbo2013/MediaPickerInstagram<filename>svideosdk/src/main/java/me/ningsk/svideo/base/widget/SizeChangedNotifier.java package me.ningsk.svideo.base.widget; import android.view.View; /** * <p>描述:尺寸变更通知<p> * 作者:ningsk<br> * 日期:2018/11/15 11 11<br> * 版本:v1.0<br> */ public interface SizeChangedNotifier {...
/** * Requests focus from the Shell then adds the corresponding * {@link gov.nasa.jpf.traceReporter.TopicPublisher TopicPublisher}s for * every trace printer defined (see * {@link gov.nasa.jpf.traceServer.printer.ConsoleTracePrinter * ConsoleTracePrinter} and * {@link gov.nasa.jpf.traceServer.printer.Generi...
def start_cache_isolation(cls): cache_settings = None if cls.CACHES is not None and cls.ENABLED_CACHES is not None: raise Exception( "Use either CACHES or ENABLED_CACHES, but not both" ) if cls.CACHES is not None: cache_settings = cls.CACHES ...
#include <vector> #include <iostream> #include <fstream> using namespace std; extern int block00[4][4]; extern int block01[4][4]; extern int block02[4][4]; extern int block03[4][4]; extern int block04[4][4]; extern int block05[4][4]; extern int block06[4][4]; extern int block07[4][4]; extern int block08[4][4]; extern...
import sciwing.constants as constants from sciwing.modules.embedders.bow_elmo_embedder import BowElmoEmbedder from sciwing.modules.embedders.word_embedder import WordEmbedder from sciwing.modules.embedders.concat_embedders import ConcatEmbedders from sciwing.models.simpleclassifier import SimpleClassifier from sciwing....
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { SpaceSquareService } from './space-square.service'; import { CreateSpaceComponent } from './component/create-sapce.component'; import { NzModalService, NzMessageService } from 'ng-zorro-antd'; import { SettingsService ...
from firebase import Firebase config = { "apiKey": "<KEY>", "authDomain": "quantadice-01.firebaseapp.com", "databaseURL": "https://quantadice-01.firebaseio.com", "storageBucket": "quantadice-01.appspot.com" } firebase = Firebase(config) db = firebase.database() def broadcastFirebase(channel, betId, user, pa...
#!/usr/bin/env python3.6 import os import asyncio import ssl import uuid import json from os import environ from socket import socketpair from threading import Thread import certifi import websockets class Handler: def __init__(self, filter_handlers): self.filter_handlers = filter_handlers # list of fi...
The pregnant adolescent--a group approach. This paper has described the groups for pregnant teenagers developed in the Rochester Adolescent Maternity Project. One and one-half year's experience with these groups has allowed the authors time to begin their study of groups and to write a descriptive paper of their evolu...
def startup_logger(self): if os.path.exists(LOGNAME): p = raw_input("Load last saved session in the current directory ([y]/n)? ") if (p.lower() == 'y') or (p == ''): ip.magic('run -i -e %s' %LOGNAME) return
Note: An update about this incident appears toward the bottom of this article. A military veteran reportedly having a mental health crisis climbed on top of the metal bear sculpture at the downtown Berkeley BART plaza Saturday and refused to come down, community members reported. The man climbed on top of the bear sc...
<gh_stars>0 import logging from cliff.command import Command from mscli import settings class Operations(Command): log = logging.getLogger( __name__ ) def take_action(self, parsed_args): if not settings.SERVER: self.log.error('Not connected') return for o in setting...
def mouse_random_pos(): global destination pos = _random_pos(destination) print INDENT + str(pos) mouse_pos(pos)
/** * A simple printf-style format helper. * <p> * The first param represents a format string and other params are arguments * (referenced by the format specifiers). * * <pre> * {{fmt 'Hello %s!' 'me'}} * </pre> * * A custom {@link Locale} can be set via options hash with * {@link OptionsHashKeys#LOCALE} key...
module Y2021.Day11Spec where import Test.Tasty.HUnit import Y2021.Day11 unit_Day11_computeTask1 :: Assertion unit_Day11_computeTask1 = computeTask1 input @?= 1588 unit_Day11_computeTask2 :: Assertion unit_Day11_computeTask2 = computeTask2 input @?= 517
<reponame>hintxiv/reassemble import {preserve} from 'utilities/types' import {Action, Debuff, Status} from '../types' export const ACTIONS = preserve<Action>()({ GAUSS_ROUND: { id: 2874, type: 'Ability', potency: 120, }, SPREAD_SHOT: { id: 2870, type: 'Weaponskill', ...
<filename>yearly_problem.py<gh_stars>0 #!/usr/bin/python import argparse solutions = {} def perm_iter(n, a, p): if n == 1: t = tuple(x for x in a) if t not in p: p.append(t) # store tuples return for i in range(n - 1): perm_iter(n - 1, a, p) if n % 2 == 0: a[i], a[n-1] = a[n-1], ...
/* * ObjectLab, http://www.objectlab.co.uk/open is sponsoring the ObjectLab Kit. * * Based in London, we are world leaders in the design and development * of bespoke applications for the securities financing markets. * * <a href="http://www.objectlab.co.uk/open">Click here to learn more</a> * __...
/* * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) a...
/*! *\brief Konstruktor parametryczny klasy Gora. */ Gora::Gora(Vector3D srodek, double x, double y, double z, std::string nazwa) { double tab[] = {x, y, z}; wymiary = std::make_shared<Vector3D>(tab); this->nazwa = nazwa; this->srodek = srodek; Vector3D punkt; punkt[0] = srodek[0] - (x / 2); punkt[1] = sr...
{-# LANGUAGE OverloadedStrings #-} module IMP.Parser ( Parser , parser -- Other exports for testing , stringLiteral , identifier ) where import IMP.AST import IMP.SourceLoc import IMP.Parser.Error import Control.Applicative hiding (many) import Control.Monad import Data.Char import Data.Foldable import Te...
/* Initializes all required high-level real/virtual serial port HAL drivers: */ void serialport_hal_init(void) { uart7_setup(); }
/** * This method instantiates a controller to run the store. */ public static void start() { Models.LOG.info("Starting Models..."); Models.controller = new ModelController(); Models.create(Settings.class); }
// paint hwnd into bmout, where bmout points at bmout_xpos,bmout_ypos in window coordinates void SWELL_internalLICEpaint(HWND hwnd, LICE_IBitmap *bmout, int bmout_xpos, int bmout_ypos, bool forceref) { if (hwnd->m_invalidated) forceref=true; if (forceref || hwnd->m_child_invalidated) { swell_gdpLocalContext c...
<gh_stars>0 package main import ( "bufio" "flag" "fmt" "github.com/nats-io/nats" "os" ) var natsServer = flag.String("s", "nats://127.0.0.1:4222", "nats server nats://127.0.0.1:4222") var topic = flag.String("t", "MQ channel", "-t dev-host.apache-logs") func main() { flag.Parse() for { cli, err := nats.Con...
Instead of 1 comic, have 2.AJ hating Fleur de lis's origin, wanting her hat back and does not want to partake in the epic dance.Wetmanes and Brunch.AJ and her family are the WORST sales ponies. As if we didn't see that when she gave everything to 'Bonbon'. [link] Now that I think of it, Applebloom would be GREAT, altho...
----------------------------------------------------------------------------- -- -- Module : a test for HTF framework -- insert {-@ HTF_TESTS @-} for each import ----------------------------------------------------------------------------- {-# OPTIONS_GHC -F -pgmF htfpp #-} {-# LANGUAGE FlexibleContexts #-}...
export * from "./src/util"; /** * Providers array is exported for cases where a custom module has to be constructed * to test a particular piece of code. This can happen, for example, if you are trying * to test dynamic component loading and need to specify an entryComponent for the testing * module. */ export dec...
// Copyright 2018 Rygaard Technologies, LLC // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the ...
<filename>tma/analyst/bill.py<gh_stars>1-10 # -*- coding: UTF-8 -*- import os import pandas as pd class BillAnalysis(object): """A股账户交易账单分析""" pass """ 国泰君安 - 对账单 - 分析 =============================================================================== """ # path = r"C:\ZB\Life\金融\对账单\国泰君安_对账单_20160329_20180522...
/** * Native bindings to the <a href="http://www.opengl.org/registry/specs/EXT/import_context.txt">GLX_EXT_import_context</a> extension. * * <p>This extension allows multiple X clients to share an indirect rendering context.</p> * * <p>Additional convenience procedures to get the current Display* bound to a cont...
/*********************************************************************************************************************** * Function Name: dtc_ctsu_xfer_addrs * Description : This function sets the non-static addresses for DTC transfers for the CTSU write and read interrupts. * Arguments : wr_int_src_addr - * ...
def end_time(self): if self.__end_time is None: PARSE_START_OFFSET = 3*1024*1024 pos = self.fd.tell() self.fd.seek(0, os.SEEK_SET) file_size = self.file_size() while True: if self.fd.tell() < file_size - PARSE_START_OFFSET: ...
Quantitative analysis of Cenozoic faults and fractures and their impact on groundwater flow in the bedrock aquifers of Ireland Faults and fractures are a critical store and pathway for groundwater in Ireland’s limestone bedrock aquifers either directly as conductive structures or indirectly as the locus for the develo...
/** * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE.txt file for details. */ public class Cpu { private long id; private long serviceId; private String description; private List<CpuFan> cpuFanList = new ArrayList<CpuFan>(); private List...
#!/usr/bin/env python3 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines h,w = map(int,input().split()) a = [] for i in range(h): a.append(input()) row = [] col = [] for i in range(h): if a[i] == "."*w: row.append(i) for j in range(w): flag =...
package main // ffget.h #ifndef __FFGET__ #define __FFGET__ /* DEFINES */ #ifndef FL #define FL __FILE__,__LINE__ #endif #define FFGET_VERSION "1.0.0.8" #define FFGET_LASTUPDATED "200811061423" #define FFGET_DNORMAL ((FFGET_debug >= FFGET_DEBUG_NORMAL )) #define FFGET_DPEDANTIC ((FFGET_debug >= FFGET_DEBUG_PEDAN...
package main import ( "fmt" ) type Trade struct { Symbol string Price float64 Volume int Buy bool } func NewTrade(symbol string, price float64, volume int, buy bool) (*Trade, error) { if symbol == "" { return nil, fmt.Errorf("Symbol cannot be null") } if volume <= 0 { return nil, fmt.Errorf("Volume c...
import matplotlib.pyplot as plt import numpy as np from ListToFreqDict import ListToFreqDict class AnalyzeTweets(object): """ """ def __init__(self, wordlist, top=25): """ """ worddict = ListToFreqDict(wordlist) self.freqdict = {} for word in worddict.keys(): ...
Read the full report (pdf) Download the executive summary (pdf) Video: William Schulz on China and human rights The relationship between the United States and China may well be the most important bilateral relationship in the world. In recognition of that fact, the Center for American Progress released a comprehensi...
package cases import ( "math/big" "strings" "fmt" "github.com/MetaLife-Protocol/SuperNode/cmd/tools/casemanager/models" "github.com/MetaLife-Protocol/SuperNode/pfsproxy" "github.com/ethereum/go-ethereum/common" ) // CasePFS : func (cm *CaseManager) CasePFS() (err error) { if cm.IsAutoRun { return ErrorSki...
// Mode returns the mode of the file in fs.FileMode format. func (e *TreeEntry) Mode() fs.FileMode { m := e.Blob().Mode() switch m { case git.EntryTree: return fs.ModeDir | fs.ModePerm default: return fs.FileMode(m) } }
<gh_stars>10-100 """Sensor platform for Chargeamps.""" import logging from homeassistant.components.sensor import ( STATE_CLASS_MEASUREMENT, STATE_CLASS_TOTAL_INCREASING, SensorEntity, ) from homeassistant.const import ( DEVICE_CLASS_ENERGY, DEVICE_CLASS_POWER, ENERGY_KILO_WATT_HOUR, POWER...
import contextlib import pathlib import re import uuid import pkg_resources import pytest from django.core.management import call_command from django.db import connection from migra import Migration from sqlalchemy.pool import NullPool from sqlbag import S from procrastinate import aiopg_connector, schema BASELINE =...
def forward_activation(self, Z: np.array) -> np.array: A = self.forward_activation_function(Z) return A
<filename>picross_generator/output_generators/CsvOutputGenerator.py<gh_stars>0 import csv import os from picross_generator.model.Image import Image from picross_generator import resources_dir def export_to_csv(image : Image): with open(os.path.join(resources_dir, 'csv', 'key', f'{image.name}.csv'), 'w', newl...
Parametric study of a 6‐column countercurrent solvent gradient purification (MCSGP) unit The novel “multicolumn countercurrent solvent gradient purification” (MCSGP) process has been modeled for the purification of a polypeptide mixture characterized by a strong non‐linear competitive adsorption isotherm. As a model s...
/* parse a vcf file to VCFtable and VCFline objects * @param filename of .vcf file */ void VCFtable::parse(string filename) { string line; ifstream file(filename); vector<string> tokens; const char DELIM = '\t'; while (getline(file, line)) { if (line.find('#') == 0) { ...
/* * Copyright 2000-2017 JetBrains s.r.o. * * 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 agre...
package uzuzjmd.competence.persistence.neo4j; /** * Created by carl on 16.12.15. */ public interface Requestable<T> { T doRequest(String queryType) throws Exception; }
Exploring the Link of Psycho-social Factors and Job Environment Taking Mutual Trust as Mediator This study aims to investigate the psycho-social factors responsible for the formation of perception about the job environment. The descriptive research design is used to carry out this study. The study’s independent variab...
'''input 2 1 2 2 1 2 ''' import math from collections import defaultdict as dd import heapq n = int(input()) a = [int(i) for i in input().split(" ")] m = int(input()) b = [int(i) for i in input().split(" ")] x = [a[0]] y = [b[0]] if sum(a) != sum(b): print(-1) else: for i in range(1, n): x...
import java.util.*; public class Wifi{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String drazil = scanner.next(); String dreamoon = scanner.next(); int sum1 = 0,sum2 = 0, count = 0; double p = 0.0; for (int i = 0; i < drazil.length(); i++) { if(drazil.charAt(i) ==...
import math def doit(a,b): c=b c=2*c small=-1 large=-1 if c<a: small=c large=a else: small=a large=c small=small+large-small area1=small*large c=a c=2*c small=-1 large=-1 if c<b: small=c large=b ...
/** * Movie Model entity for database and API */ @JsonTypeInfo(use = JsonTypeInfo.Id.NONE) @Entity(tableName = "upcomingMovies") public class UpcomingMovieDetailGenre extends IdProperty { @Nullable @ColumnInfo(name = "name") @JsonProperty("name") private String name; @Nullable public String ...
/* Creates and returns an activation function, given a string representing the activation function. Returns a non-nil error if the given string does not correspond to a valid activation function. */ func createActFunc(actfuncType string) (actfunc, error) { switch actfuncType { case "sigmoid": return sigmoid{}, nil ...
<gh_stars>1-10 // Copyright 2016 The Gofem Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore package main import ( "bytes" "github.com/cpmech/gofem/inp" "github.com/cpmech/gosl/chk" "github.com/cpmech/gosl/io" )...
Associated primes of local cohomology modules This is an expanded version of a lecture on finiteness properties of local cohomology modules given at the 48th Algebra Symposium held at Nagoya University in August 2003. introduction Throughout, R will denote a commutative Noetherian ring with a unit element. Let a be ...
// Make an assignment operation statement. Statement* Statement::make_assignment_operation(Operator op, Expression* lhs, Expression* rhs, Location location) { return new Assignment_operation_statement(op, lhs, rhs, location); }
With all the recent news about local car manufacturing, you could be forgiven for thinking Australia has only ever built Fords, Holdens and Toyotas. But in fact, we’ve got a long, varied – and often quite weird - car building history. From a bugeyed oddity spawned by a company who honed their skills on washing machine...
def isPalin(stri): flag = 1 for i in xrange(len(stri)/2): if stri[i]!=stri[len(stri)-i-1]: flag = 0 return flag def main(): stri = raw_input() k = input() if (len(stri)%k)!=0: print "NO" return n = len(stri) flag =1 i=0 while i<n: if not isPalin(stri[i:i+n/k]): flag = 0 break i+=n/k ...
<filename>src/main/java/seedu/address/model/util/SampleDataUtil.java package seedu.address.model.util; import java.util.Arrays; import java.util.Set; import java.util.stream.Collectors; import seedu.address.model.ContactList; import seedu.address.model.ReadOnlyContactList; import seedu.address.model.person.Email; imp...
// Query returns a query builder for DeviceToken. func (c *DeviceTokenClient) Query() *DeviceTokenQuery { return &DeviceTokenQuery{ config: c.config, } }
<reponame>op7ic/amphunt import sys import requests import configparser import time import gc # Ignore insecure cert warnings (enable only if working with onsite-amp deployments) from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) #...
#ifndef __EDITOR_MODES_H #define __EDITOR_MODES_H #include "SGP/Types.h" void SetEditorItemsTaskbarMode(UINT16 usNewMode); void SetEditorBuildingTaskbarMode(UINT16 usNewMode); void SetEditorTerrainTaskbarMode(UINT16 usNewMode); void SetEditorMapInfoTaskbarMode(UINT16 usNewMode); void SetEditorSmoothingMode(UINT8 ubNe...
/** * Static factory for creating commonly used flow execution listener criteria. * * @see FlowExecutionListenerCriteria * * @author Keith Donald * @author Erwin Vervaet */ public class FlowExecutionListenerCriteriaFactory { private static final WildcardFlowExecutionListenerCriteria WILDCARD_INSTANC...
<gh_stars>1-10 /* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.mtwilson.tag.rest.v2.resource; import com.intel.dcsg.cpg.io.UUID; import com.intel.dcsg.cpg.validation.ValidationUtil; import com.intel.mtwilson.My; import com.intel.mtwilson.core.common.tag.model....
import unittest import struct import hashlib import ecdsa import keyUtil import translationUtil def makeRaw(version, inputs, outputs, blockLockTime): """ Creates Raw Bitcoin Transaction """ def makeInput(data): inHash, inIndex, script, sequence = data return (inHash.decode('hex')[::-1].encode...
/** * At runtime, when the \b RTuinOS tasks compete for the display, strict synchronization is * required. All requests to write to the display are serialized by an \b RTuinOS mutex. * This private method is called by all the public print methods immediately before the * first access to the underlaying class Liquid...
class AnnotationNode: """ A single taxon or functional term and its associated intensity. Also provides members for npeptide and n_sample_children """ def __init__(self, id, intensity): """ create AnnotationNode object :param id: unique id for the term :param intensi...
<reponame>AlexRogalskiy/DevArtifacts<filename>master/src_code/src/java/com/birali/domain/Property.java<gh_stars>1-10 package com.birali.domain; public class Property { private Flag type; private Flag purpose; private String zipCode; private int yearBuilt; private double value; public void setType(Flag p){ th...
<gh_stars>0 import { Component, OnDestroy, OnInit } from '@angular/core'; import { combineLatest } from 'rxjs'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; import { OverviewService } from '../../shared/services/overview.service'; import { AuthService } from '../../shared/services/auth.service...
import { Logger } from "../../utils/Logger"; import { SQLManager } from "../../managers/SQLManager"; import * as Res from "../../services/response"; const log = Logger('leaderboard:global_stats'); interface GlobalStats { totalCraftCoins: number; totalVoteTokens: number; totalCraftTokens: number; totalVotes: numbe...
def run_file_retrieval(self): if self.has_error(): return LOGGER.debug('(1) Retrieve the file stream') file_access_url = self.dv_file_info.get_file_access_url() print('file_access_url: ', file_access_url) try: request = requests.get(file_access_url, ...
/** * Data serializes and then data de-serializes the given object and * asserts that the two objects satisfy o1.equals(o2) */ private void checkRoundTrip(Object o1) throws IOException, ClassNotFoundException { DataOutputStream out = getDataOutput(); DataSerializer.writeObject(o1, out); out.flu...
<filename>serve/route/index/resetpass/emailverify.go package resetpass import ( "net/http" "github.com/labstack/echo/v4" "github.com/lucky-byte/reactgo/serve/ctx" "github.com/lucky-byte/reactgo/serve/db" "github.com/lucky-byte/reactgo/serve/mailfs" "github.com/lucky-byte/reactgo/serve/sms" ) // 验证邮箱验证码 func e...
<filename>ombott/server_adapters.py import threading import sys ############################################################################### # Server Adapter ############################################################### ############################################################################### class Serve...
// Generated by github.com/temporalio/temporal-aws-sdk-generator // from github.com/aws/aws-sdk-go version 1.35.7 // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. package cloudhsmstub import ( "github.com/aws/aws-sdk-go/service/cloudhsm" "go.temporal.io/sdk/workflow" "go.temporal.io/aws-sdk/...
// Sign signs an envelope. func (s *Signer) Sign(envelope xdr.TransactionEnvelope) (string, xdr.DecoratedSignature, error) { hash, err := network.HashTransactionInEnvelope(envelope, s.NetworkPassphrase) if err != nil { return "", xdr.DecoratedSignature{}, errors.Wrap(err, "failed to hash transaction") } sig, err ...
/** * Updates the values of the color scale * @param min * @param max */ public void updateScale(double min, double max){ this.min = min; this.max = max; updateUI(); }
#pragma once namespace anton { // Integer_Sequence // template<typename T, T... Integers> struct Integer_Sequence { using type = Integer_Sequence<T, Integers...>; }; template<typename T, T... Integers> using integer_sequence = Integer_Sequence<T, Integers...>; // Make_Integer_...
import IdnadrevFileFilter, { filterFiles } from '../../filter/IdnadrevFileFilter'; import Task from '../../dto/Task'; import * as moment from 'moment'; import { FileId } from '../../dto/FileId'; export default interface TaskFilter extends IdnadrevFileFilter { finished?: boolean; state?: string; remainingTime?: n...
Hurricane Irma is expected to make a sharp turn toward Florida this weekend. Hurricane Wilma, 12 years ago, was the last big storm to hit Florida head-on. That Category 3 hurricane killed 23 people and caused around $20 billion in damage.While Irma is threatening all of the state, the low-lying islands of the Florida K...
/* * La funcion realiza la instruccion dada por el usuario */ void realizar_instruccion(juego_t* juego,char comando_ingresado){ switch(comando_ingresado){ case INICIAR_SIMULACION: system("clear"); simular(juego); mostrar_display(); solicitar_instruccion(&comando_ingresado); realizar_instruccio...
#include "color.h" #include <algorithm> using std::min; using std::max; // calulate a gradient between two colors sf::Color GeneticSimulation::calculate_gradient(const sf::Color& color1, const sf::Color& color2, float p) { p = min(1.f, max(0.f, p)); sf::Color result; result.r = color2.r * p + color1.r * (1 - p);...
The Consumption of Time and Space: Utopias and the English Romantic Garden Utopia has a far-off feel. As a futuristic 'fixing' of politics, it hardly offers itself as a subject to submit for the UK Research Assessment Exercise, far less seems a project to justify to friends and neighbours. Answering an everyday enquir...
#ifndef CALCULATOR_H #define CALCULATOR_H #include "Lexeme.h" #include "Scanner.h" #include "Parser.h" #include "CalcResult.h" #include "CalcError.h" #include "NumeralFormat.h" class Calculator { public: typedef double ValueType; typedef ResultHandler::ResultType ResultType; public: Calculator(Parser *p...
/** * The type Totara url dao. */ @Service @ConditionalOnExpression("!${demo.mode.enabled:false}") public class TotaraUrlDAOImpl implements TotaraUrlDAO { @Inject private JdbcTemplate totaraJdbcTemplate; @Override public List<TotaraUrlDTO> findByExternalUrlPathId( LearningLockerJobExecutionType lear...
/** * Converts the specified {@link JsonObjectBuilder} to a JSON string. * * @param writer The {@link Writer} to write to. * * @param builder The {@link JsonObjectBuilder} describing the object. * * @return The specified {@link Writer}. * */ public static <T extends Writer> T toJsonText(T ...
<gh_stars>0 package com.agrummer; import com.agrummer.entity.Airport; import com.agrummer.entity.FlightPlan; import com.agrummer.exception.InvalidAirportCodeException; import com.agrummer.exception.NoAircraftForFlightLoadException; import com.agrummer.service.AircraftService; import com.agrummer.service.AirportService...
/** * disables the main image for the action bar using a custom view. */ @Kroll.method public void disableActionbarImage() { Message message = getMainHandler().obtainMessage(MSG_DISABLE_ACTIONBAR_IMAGE); message.sendToTarget(); }
/** * Init. * * @param mockClasspath the mock classpath */ public static synchronized void init(String mockClasspath) { if (ExecuteOnceProcessor.executedCheck(DevOps.class)) { return; } logger.info("Init env ..."); initE...
<reponame>rekyungmin/biblebot-scraper<gh_stars>1-10 __all__ = ( "__title__", "__description__", "__url__", "__version__", "__author__", "__author_email__", "__license__", "__copyright__", "__contributors__", ) __title__ = "biblebot" __description__ = "Scraper for KBU students" __url...
Follow @nbcbayarea Someone may have seen Lynne Spalding a week before her dead body was found in a San Francisco General Hospital stairwell. According to the San Francisco Chronicle, a hospital orderly reported stepping over an unconscious woman sometime during the first week of October – days before Spalding’s body ...
# Copyright 2016 Adobe. All rights reserved. """ A collection of functions used by multiple AFDKO scripts. """ import argparse import os import subprocess import tempfile import zipfile __version__ = '1.3.7' LEN_CID_TOK = 31 # length of string '%!PS-Adobe-3.0 Resource-CIDFont' def validate_path(path_str): va...
#include<bits/stdc++.h> using namespace std; #define sd(x) scanf("%d",&x) #define slld(x) scanf("%lld",&x) #define ss(x) scanf("%s",x) #define ll long long #define mod 1000000007 #define bitcount __builtin_popcountll #define pb push_back #define fi first #define se second #define mp make_pair #define pi ...
// GetRect returns the current position of the rectangle, x, y, width, and // height. func (r *RadioButtons) GetRect() (int, int, int, int) { x, y, width, _ := r.Box.GetRect() optionsCount := len(r.options) if optionsCount == 0 { optionsCount = 1 } height := 1 if !r.horizontal { height = (optionsCount * (r.it...
from nornir import InitNornir from nornir_netmiko.tasks import netmiko_send_command from nornir_utils.plugins.functions import print_result from nornir_napalm.plugins.tasks import napalm_validate from nornir_napalm.plugins.tasks import napalm_get import os import subprocess import getpass from nornir_utils.plugins.task...
/** * Necessary information for decryption. */ public static class Triplet { public byte[] salt; public byte[] iv; public byte[] ciphertext; public Triplet(byte[] salt, byte[] iv, byte[] ciphertext) { this.salt = salt; this.iv = iv; this....