content
stringlengths
10
4.9M
/* * The MIT License * * Copyright 2010 Sony Ericsson Mobile Communications. All rights reserved. * Copyright 2013 Sony Mobile Communications AB. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the...
/** * Configures the email sending layer using provided properties. * * @param properties properties containing email configuration. * @return email configuration. * @throws ConfigurationException if any property value was invalid. */ @Override public MailConfiguration configure(final ...
// Let's just say writing the template boilerplate gets real annoying // after a while. func renderTemplate(w http.ResponseWriter, filename string, data interface{}) { templates = template.Must(template.ParseFiles(filename, mainlayout)) err := templates.ExecuteTemplate(w, "base", data) if err != nil { ...
Energy dependence of bound-electron-positron pair production at very-high-energy ion-ion transits. The problem of calculating the cross section for bound-electron\char21{}positron pair creation in very-high-energy heavy-ion colliders (100 GeV/u or higher, an effective \ensuremath{\gamma}\ensuremath{\gtrsim}2\ifmmode\t...
def _upgrade_logging_config_section(config_dict: dict) -> dict: latest = {} for k, val in config_dict.items(): if isinstance(val, dict) and not val.get('type'): key = k.replace('Handler', '').lower() new_conf = {key: deepcopy(val)} new_conf[key]['type'] = k ...
class RealTimeVehicle: """ A vehicle that's spawned on a server can have a corresponding real time vehicle object to track it. :param Id: Refractor id of the vehicle. :param position: Position of the vehicle as numpy array. :param rotation: Rotation of the vehicle...
<reponame>denosawr/ucat-bot // Require the necessary discord.js classes import { Bot } from "./bot"; require("source-map-support").install(); import { Client, Intents, Interaction, BaseCommandInteraction, } from "discord.js"; // import type { Interaction } from "discord.js"; // configure environment params re...
Overview of Properties, Features and Developments of PM HIP 316L and 316LN PM HIP 316L is an alloy that is of increased intere st for nuclear applications since its recent ASME code case approval. Over the years, com prehensive data and understanding of the properties and features have been collected and evaluated whi...
def _find_bad_frames(fnames, cutout_size=2048, corner_check=False): quality = np.zeros(len(fnames), int) warned = False log.info("Extracting quality") for idx, fname in enumerate(fnames): try: quality[idx] = fitsio.read_header(fname, 1)["DQUALITY"] except KeyError: ...
// doFold performs a "fold" by transposing any coordinates on the far side of it func doFold(points []Point, fold Fold) []Point { newPoints := make([]Point, 0) for _, point := range points { newPoint := point if fold.dir == "y" && point.y > fold.line { newPoint.y = fold.line - (point.y - fold.line) } else if...
He arrested me, and while searching my bag found documents that bore my real name and date of birth but a made-up Social Security number. I needed these to apply for a third job — on top of the two, as a house cleaner and a janitor, I was already doing. I pleaded guilty to a third-degree misdemeanor for attempted posse...
/** Binary Trees With Factors Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree using these integers, and each number may be used for any number of times. Each non-leaf node's value should be equal to the product of the values of its children. Return t...
Just when we are getting used to the idea of having a mix of public and private schools in Australia, along comes a development with the potential to upset everything once again. Over the years our federal and state governments, apparently without comparing notes, have raised private school funding to the point where t...
package com.bootslee.leetcode; import java.util.HashSet; public class SingleNumber136 { /** * 给定一个非空整数数组,除了某个元素只出现一次以外, * 其余每个元素均出现两次。找出那个只出现了一次的元素。 * @param nums * @return */ public int singleNumber(int[] nums) { int num = 0; for(int i=0;i<nums.length;i++){ ...
"""Helper function to setup the run from the command line. Adapted from https://github.com/atomistic-machine-learning/schnetpack/blob/dev/src/schnetpack/utils/script_utils/setup.py """ import os import logging from shutil import rmtree from nff.utils.tools import to_json, set_random_seed, read_from_json __all__ = ["...
#include<stdio.h> #include<stdlib.h> void Prime_Fact(unsigned int); void Rec_Prime_Fact1(unsigned int); void Rec_Prime_Fact2(unsigned int,unsigned int); int main() { unsigned int Num; //clrscr(); printf("Program to obtain the prime factors of the number\n"); printf("\nEnter a Positive No. : "); s...
/** * Methode steuert User-Eingabe und f&uumlhrt die entsprechenden Operationen aus. * @param input die Eingabe */ private static void selectInput(int input) { switch (input) { case PUSH: Student newStudi = null; try { newStudi = studentInput(); studentStack.push(newStudi); } catch (IllegalAr...
<gh_stars>100-1000 package com.github.tdurieux.repair.maven.plugin; import fr.inria.astor.core.entities.ProgramVariant; import fr.inria.main.evolution.AstorMain; import org.apache.maven.artifact.Artifact; import org.apache.maven.model.Build; import org.apache.maven.plugin.MojoExecutionException; import org.apache.mave...
/** * Create a copy of the source table with the specified columns materialized. * * Other columns are passed through to the output without changes. * * @param source the input table * @param columnNames the columns to materialize in the output * * @return a copy of the source ta...
def find_first_match(search, source): for i in range(len(source) - len(search)): if source[i:(i + len(search))] == search: return i return -1
/** * A method to strip out common packages and a few rare type prefixes from types' string * representation before being used in error messages. * * <p>This type assumes a String value that is a valid fully qualified (and possibly * parameterized) type, and should NOT be used with arbitrary text, especi...
<reponame>gilsonsf/oauth-fiware<filename>oauth-manager/src/main/java/com/gsf/executor/api/service/ManagerService.java package com.gsf.executor.api.service; import com.gsf.executor.api.entity.UserTemplate; import com.gsf.executor.api.enums.AttackTypes; import com.gsf.executor.api.event.ClientCaptureEventObject; import ...
Customer Experience: Extracting Topics From Tweets The ubiquity of social media platforms facilitates free flow of online chatter related to customer experience. Twitter is a prominent social media platform for sharing experiences, and e-retail firms are rapidly emerging as the preferred shopping destination. This stu...
<reponame>dlecocq/nsq-py<gh_stars>10-100 '''Base socket wrapper''' class SocketWrapper(object): '''Wraps a socket in another layer''' # Methods for which we the default should be to simply pass through to the # underlying socket METHODS = ( 'accept', 'bind', 'close', 'connect', 'fileno', 'getp...
/// map a scalar into some other item. pub fn map<F, U>(self, f: F) -> Field<U> where F: FnOnce(T) -> U { match self { Field::Scalar(x) => Field::Scalar(f(x)), Field::BackReference(req, idx) => Field::BackReference(req, idx), } }
<reponame>BearerPipelineTest/m3 // Copyright (c) 2017 Uber Technologies, Inc. // // 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 right...
New Bio-Marker Gene Discovery Algorithms for Cancer Gene Expression Profile Several hybrid gene selection algorithms for cancer classification that employ bio-inspired evolutionary wrapper algorithm have been proposed in the literature and show good classification accuracy. In our recent previous work, we proposed a n...
/** * Invokes a rollback on the connection if auto-commit is turned off */ public static void rollback(Connection conn) throws SQLException { if (conn != null && !conn.isClosed()) { if (!conn.getAutoCommit()) conn.rollback(); } else { LOG.error("Invoking a rollback after the connec...
Two-order-parameter phenomenological theory of the phase diagram of liquid helium. A two order-parameter phenomenological theory is proposed to explain some essential features of the phase diagram of liquid {sup 4}He. Among other things, the theory (i) distinguishes the liquid phase from the gas phase in the {ital P}-...
// GetPostByID : gets post by postid func GetPostByID(postid string) (Post, error) { var err error result := Post{} if database.CheckConnection() { session := database.Mongo.Copy() defer session.Close() c := session.DB(database.ReadConfig().Database).C("post") if bson.IsObjectIdHex(postid) { err = c.FindI...
<reponame>jonrzhang/MegEngine<gh_stars>1-10 /** * \file dnn/src/fallback/batched_matrix_mul/opr_impl.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * soft...
def list_projects(cls) -> None: config = cls._load_config() if len(config) == 0: print("No projects registered!") for project_hint in config: print("{}: {}".format(project_hint, config[project_hint]['path']))
// Search for label. Create if nonexistant. If created, give it flags "Flags". // The label name must be held in GlobalDynaBuf. label_t* Label_find(zone_t zone, int flags) { node_ra_t* node; label_t* label; bool node_created; int force_bits = flags & MVALUE_FORCEBITS; node_created = Tree_hard_scan(&node, Label_f...
from fastapi import HTTPException from sqlalchemy.orm import Session from sqlalchemy.exc import IntegrityError from models import model from schemas import schema from pydantic import ValidationError def get_atividade(db: Session, id_atividade: int): return db.query(model.Atividade).filter(model.Atividade....
Immune Response Characterization after Controlled Infection with Lyophilized Shigella sonnei 53G Correlate(s) of immunity have yet to be defined for shigellosis. As previous disease protects against subsequent infection in a serotype-specific manner, investigating immune response profiles pre- and postinfection provid...
// Tests if all timer digits are zero bool IsTimerValueZero(const TTimerValue* pTimerValue) { return ((pTimerValue->secLSValue == 0) && (pTimerValue->secMSValue == 0) && (pTimerValue->minLSValue == 0) && (pTimerValue->minMSValue == 0)); }
def invite_create(): return "/api/ops/invite"
Hitting to an extraordinary length in Dubai today, Andy Murray completely dismantled the game of the man who has dominated world tennis for the last 14 months. The Scot, who recovered from a wobble when serving for the match, outplayed Novak Djokovic 6-2 7-5 to reach the final of the Desert Classic. Murray got off to ...
Week two of the Chucktown Check-In! We recap the Battery's 0-0 draw against Orlando City B and get the latest news and notes from our man in Charleston, our Battery beat reporter, Seamus Grady. The Charleston Battery came away with a disappointing draw against Orlando City B after OCB went down a man just five minutes...
<gh_stars>1000+ #include "caffe/layers/warp_ctc_loss_layer.hpp" #ifdef USE_WARP_CTC #include <ctcpp.h> #include <limits> using namespace CTC; namespace caffe { template <typename Dtype> WarpCTCLossLayer<Dtype>::WarpCTCLossLayer(const LayerParameter& param) : LossLayer<Dtype>(param), T_(0), N_(0)...
pub use crate::traits::errors::PSP22TokenTimelockError; use brush::traits::{ AccountId, Timestamp, }; #[brush::wrapper] pub type PSP22TokenTimelockRef = dyn PSP22TokenTimelock; #[brush::trait_definition] pub trait PSP22TokenTimelock { /// Returns the token address #[ink(message)] fn token(&self) -...
/** * Config for rate limiter, which is used to control write rate of flush and * compaction. */ public class GenericRateLimiterConfig extends RateLimiterConfig { private static final long DEFAULT_REFILL_PERIOD_MICROS = (100 * 1000); private static final int DEFAULT_FAIRNESS = 10; public GenericRateLimite...
int(input()) l=list ( map(int,input().split())) mn =abs(min(l))+abs(max(l)) mx =0 for i in range(len(l)): if i !=0 and i != (len(l)-1) : mn=min(abs(l[i]-l[i+1]),abs(l[i]-l[i-1])) mx=max(abs(l[i]-l[0]),abs(l[i]-l[-1])) elif(i ==0 ): mn=abs(l[i]-l[i+1]) mx=abs(l[i]-l[-...
t=int(input()) for _ in range(t): n,k=map(int,input().split()) s=input() s=sorted(s) if k == n: print("".join(map(str,s[-1]))) else: if s[0]==s[k-1]: ans=[s[k-1]] if s[k]==s[n-1]: times=(n-1-k+1)//k if (n-1-k+1)%k is...
<reponame>calewis/ClusterableExample #include "Clusterable.h" #include "common.h" #include "molecule.h" #include <boost/optional.hpp> #include <iostream> // Center for our molecule class. Vector center(Molecule const& m) { return libint2::center(m.atoms()); } // Specialization of Collapse needed to collapse the Mole...
/** * Handles the persistence of LimboPlayers. */ public class LimboPersistence implements SettingsDependent { private final Factory<LimboPersistenceHandler> handlerFactory; private LimboPersistenceHandler handler; @Inject LimboPersistence(Settings settings, Factory<LimboPersistenceHandler> handler...
import pytest from flask import Blueprint from flask_controller_bundle import Controller, Resource from flask_controller_bundle.attr_constants import ( CONTROLLER_ROUTES_ATTR, FN_ROUTES_ATTR) from flask_controller_bundle.decorators import route as route_decorator from flask_controller_bundle.routes import ( c...
class DownloadLink: def __init__(self, folder_name: str, file_name: str) -> None: self.folder_name = folder_name.replace('\\\\', '\\') self.file_name = file_name def download_path(self): return f'/Simulate/Download?folderName={self.folder_name}&fileName={self.file_name}'
package compiler import ( "io" "strings" "github.com/adnsv/go-build/compiler/clang" "github.com/adnsv/go-build/compiler/gcc" "github.com/adnsv/go-build/compiler/msvc" "github.com/adnsv/go-build/compiler/toolchain" ) type Installation interface { PrintSummary(w io.Writer) } func DiscoverInstallations(types []...
<reponame>spremi/build-smith<gh_stars>1-10 // // [build-smith-client] // // <NAME> <<EMAIL>> // // Available under terms of the BSD-3-Clause license. // import { initEmailNotification, EmailNotification } from './notifications'; import { ProjectRepo } from './repo'; import { initTriggers, Triggers } from './triggers';...
package com.github.hiwepy.soap.type; import java.util.Arrays; import java.util.List; public enum SoapTypes { string("字符串(string,java.lang.String)", new StringSoapType()), number("数字(number,java.lang.Integer,java.lang.Long,java.math.BigDecimal)", new NumberSoapType()), date("时间/日期(date,java.util.Date,da...
// MustHaveResponse checks the Response field, panics if the field is not initialized. func (s *ApiState) MustHaveResponse() { if s.Response == nil { PanicApiError(s, nil, "ApiState.Response not initialized") } }
// Repr return cluster string representation according to format func (c *Cluster) Repr(format string) (s string) { switch format { case "yaml", "y": return c.YAML() case "json", "j": return c.JSON() case "detail", "d", "summary", "s": return c.Summary() default: return c.String() } }
<filename>src/storage/f2fs/inline.cc<gh_stars>100-1000 // Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <dirent.h> #include "src/storage/f2fs/f2fs.h" namespace f2fs { namespace { inline Inline...
//Confirm that the active FSN has 1 x US acceptability == preferred private void fixFsnAcceptability(Concept c) throws TermServerScriptException { List<Description> fsns = c.getDescriptions(Acceptability.BOTH, DescriptionType.FSN, ActiveState.ACTIVE); if (fsns.size() != 1) { String msg = "Concept has " + fsns.si...
declare namespace Browser { interface Aptitude { listenNavigation: Common.Listenable<NavigationDetails>; listenTextSelection: Common.Listenable<string>; openTab: Common.ReadableWithParam<string, number>; openWindow: Common.ReadableWithParam<string, number>; } interface NavigationDetails { fra...
<gh_stars>0 // sheetView use super::BooleanValue; use super::EnumValue; use super::Pane; use super::Selection; use super::SheetViewValues; use super::UInt32Value; use quick_xml::events::{BytesStart, Event}; use quick_xml::Reader; use quick_xml::Writer; use reader::driver::*; use std::io::Cursor; use writer::driver::*; ...
def make_event(self, start_time, end_time, places=[]): self.event_count += 1 return Event( meetup_id = "m{:06d}".format(self.event_count), name = "Event {}".format(self.event_count), start_time = start_time, end_time = end_time, places = places...
/** * Created by Eric on 7/7/16. */ public class ScheduleServlet extends MainServlet { public static final String SERVLET_NAME = "dataModelViewSchedule"; private static final String PARAM_VIEW = "view"; private static final String PARAM_SCHED_NAME = "scheduleName"; private static final String PARAM_ANTIGEN_...
<gh_stars>1-10 {-# LANGUAGE TemplateHaskell #-} module Types.Player( Player(..), playerSnippet, alive, moveToEntity ) where import Data.Default import Control.Lens import Data.List(intercalate) import Data.Direction import Types.Consumable import Types.Item import Types.Block import Types.Enemy import Types.Je...
// InvokeCallThatMightExit run passed function, catching any calls to mocked os.Exit(). func (emh *OsExitHarness) InvokeCallThatMightExit(wrapped func() error) error { defer func() { if r := recover(); r != nil { if v, ok := r.(*OsExitHarness); !ok || (v != emh) { panic(r) } } }() return wrapped() }
def _std_prm(self, prm, shape): backend = dict(dtype=prm.dtype, device=prm.device) trl_factor = torch.as_tensor(shape, **backend) / 2. rot_factor = 1. / (3. if self.mode == 'classic' else 2.) zom_factor = 0.5 if self.mode == 'classic' else 0.2 shr_factor = 1. if self.grou...
Indexing for Visual Recognition from a Large Model Base This paper describes a new approach to the model base indexing stage of visual object recognition. Fast model base indexing of 3D objects is achieved by accessing a database of encoded 2D views of the objects using a fast 2D matching algorithm. The algorithm is s...
<reponame>mewa/haskell-server {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module Types.Event where import Types.Imports data Event = Event { eventId :: Maybe Int, eventName :: String, creator :: Int } deriving (Show, Generic) instance HasId Event where getId a = eventId a setI...
def fail(self, msg="internal error", ret=1): self.logger.error(msg) self._deinit() sys.exit(ret)
<reponame>Tea-n-Tech/chia-tea from chia.rpc.harvester_rpc_client import HarvesterRpcClient from chia.util.config import load_config from chia.util.default_root import DEFAULT_ROOT_PATH from chia.util.ints import uint16 from ....models.ChiaWatchdog import ChiaWatchdog from ....utils.logger import log_runtime_async from...
Produced by Carol Brown and the Online Distributed Proofreading Team at http://www.pgdp.net (This file was produced from images generously made available by The Internet Archive) The Cure of Rupture BY Paraffin Injections ...
Exploitation of Ontology Languages for Both Persistence and Reasoning Purposes - Mapping PLIB, OWL and Flight Ontology Models Ontologies are seen like the more relevant way to solve data understanding problem and to allow programs to perform meaningful operations on data in various domains. However, it appears that no...
Investigation of the early-age performance and microstructure of nano-C–S–H blended cement-based materials Nano calcium silicate hydrate (nano-C–S–H) has become a novel additive for advanced cement-based materials. In this paper, the effect of nano-C–S–H on the early-age performance of cement paste has been studied,...
Evaluation of a Particle Filter to Track People for Visual Surveillance Previously a particle filter has been proposed to detect colour objects in video . In this work, the particle filter is adapted to track people in surveillance video. Detection is based on automated background modelling rather than a manually-gen...
A House subcommittee on Wednesday approved a bill that would cut the Internal Revenue Service’s budget by nearly one-quarter for fiscal 2014. The measure would give the IRS $9 billion for fiscal 2014, representing a 24-percent reduction compared to the previous budget cycle and the lowest amount of funding for the age...
def generate_point_set(n_list, random_seed = 42): points_list = [] np.random.seed(random_seed) for n in n_list: points_list.append(np.random.rand(n,2)) return points_list
def assess_gradient(self, pixel_a, pixel_b): diff = np.abs(pixel_a - pixel_b).sum() return diff
#include <iostream> #include <vector> using namespace std; int n, x, d[(1 << 20) + 5]; vector<int> ans; int main(int argc, const char * argv[]) { cin >> n >> x; if (x == 0) { if (n == 2) { cout << "NO"; return 0; } if (n % 3 == 2)...
<filename>petstagram/petstagram/accounts/tests.py import logging from datetime import date from django import test as django_test from django.contrib.auth import get_user_model from django.urls import reverse from petstagram.accounts.models import Profile from petstagram.main.models import Pet, PetPhoto UserModel = ...
#!/usr/bin/env python3 import os import argparse from pygithub3 import Github def main(): gh = Github(user='acemod', repo='ACE3') pull_requests = gh.pull_requests.list().all() for request in pull_requests: files = gh.pull_requests.list_files(request.number).all() for fi...
package com.twist.mqtt.pojo; import java.io.Serializable; /** * @description: PUBREL重发消息存储 * @author: chenyingjie * @create: 2019-01-07 21:19 **/ public class DupPubRelMessageStore implements Serializable { private static final long serialVersionUID = -7663550911852542322L; private String clientId; ...
def _is_index(self, data, payload): return payload["name"] == settings.STATICPAGES_INDEX_NAME
def location_search_to_csv(data): return meta_data_in_row_to_csv(data, LOCATION_SEARCH_META_FIELDS, SEARCH_DATA_FIELDS)
def convolution2d(image, kernel): im_h, im_w = image.shape ker_h, ker_w = kernel.shape out_h = im_h - ker_h + 1 out_w = im_w - ker_w + 1 output = np.zeros((out_h, out_w)) for out_row in range(out_h): for out_col in range(out_w): current_product = 0 for i in range(ker_h): for j in ran...
In the last installment of this series, I looked at the math behind attack rolls in Warmachine. This time, I’m going to move onto damage rolls, as once you scratch the surface and get past the notion that “average dice equals seven,” there is some interesting stuff going on in the probabilities. For the uninitiated, W...
def create(self, schema, bases=None): if not bases: bases = [] extra_bases = [] if schema['id'] == 'ProjectSchema': extra_bases = [ftrack_api.entity.project_schema.ProjectSchema] elif schema['id'] == 'Location': extra_bases = [ftrack_api.entity.locatio...
package net.floodlightcontroller.sos; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ScheduledFuture; imp...
/** * log instance is defined in Solution interface * this is how slf4j will work in this class: * ============================================= * if (log.isDebugEnabled()) { * log.debug("a + b = {}", sum); * } * ============================================= */ class Solution2 implements Solutio...
So are we heading for a Mad Max-style future? I don’t think so. After having lived through Donald Trump we’ll surely just call him Max. Trump is behaving so strangely, we’re probably about a month away from not being allowed to make jokes about him. He’s gone past Charlie Sheen and we’re now entering the bald Britney p...
Plants grow on houses in the abandoned fishing village of Houtouwan on the island of Shengshan July 26, 2015. Just a handful of people still live in a village on Shengshan Island east of Shanghai that was once home to more than 2,000 fishermen. Every...more Plants grow on houses in the abandoned fishing village of Hou...
// HTTPClient is a Client option that sets the http.Client used. func HTTPClient(client *http.Client) Option { return func(c *Client) error { l, err := dns.New(client) if err != nil { return err } return DNSService(l)(c) } }
package teamroots.embers.block; import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyDirection; import net.mine...
/** * Represents an extension of a Path. Always uses slashes to simplify application development. * * Empty segments are accepted but not encouraged which allows parsing of things like S3 keys that might have double * slashes, * * Strange characters are allowed by not encouraged which allows parsing paths that y...
/** * Creates the Display. * * @throws LWJGLException * If the display couldn't be created. * @since 14.03.30 */ public static void createDisplay() throws LWJGLException { Display.setTitle( "Voxel Testing" ); Display.setDisplayMode( new DisplayMode( 640, 480 ) )...
<filename>front-web/src/Home/index.tsx<gh_stars>0 import React from "react"; import { Link } from "react-router-dom"; import Footer from "../Footer"; import Logo from "./logo.svg"; import GirlImage from "./girl.svg"; import BackImage from "./fundo.svg"; import IconExclamation from "./icon_exclamation.svg"; import IconP...
<filename>store.go package ymsql import ( "fmt" "io/ioutil" "path/filepath" "strings" "sync" "gopkg.in/yaml.v2" ) type Store interface { MergeVariables(vals map[string]string) map[string]string SETEnv(name string, value string) Load(name string) (Scripting, error) Store(bytes []byte) error StoreFromFile(p...
/// Creates a distance in meters. pub fn meters(value: f64) -> Distance { if !value.is_finite() { panic!("Bad Distance {}", value); } Distance(trim_f64(value)) }
package decrypt import ( "github.com/debba/anticaptcha" "infoimprese-scraping-tool/settings" "log" "os" "time" ) func GetCaptcha(autoSetting settings.AutoSetting, url string) (string, error) { log.Printf("[CHECKING] captcha (url = %s)", url) log.Printf("[CHECKING] captcha (siteKey = %s, apiKey = %s)", autoSett...
Virginia’s Gubernatorial Race: Where Things Stand with Less Than a Month to Go It’s no surprise that 2017’s top race is competitive Geoffrey Skelley, Associate Editor, Sabato's Crystal Ball The November of the year following a presidential election is always relatively quiet on the electoral front, with only regular...
package io.boodskap.iot.model; import java.util.Date; import io.boodskap.iot.dao.BillingInvoiceDAO; public interface IBillingInvoice extends IDomainObject { public static BillingInvoiceDAO<IBillingInvoice> dao(){ return BillingInvoiceDAO.get(); } public static IBillingInvoice create(String domainKey, String t...
package org.d3ifcool.finpro.dosen.activities.detail; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.RecyclerView; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.Menu; import ...
// Drop the reference count immediately if the value has no uses. static LogicalResult dropRefIfNoUses(Value value, unsigned count = 1) { if (!value.getUses().empty()) return failure(); OpBuilder b(value.getContext()); if (Operation *op = value.getDefiningOp()) b.setInsertionPointAfter(op); else b.s...
/** * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a> * @version $Revision: 1556 $ */ public class LayoutFactory extends AbstractSwtFactory { private Class beanClass; /** * @param beanClass */ public LayoutFactory(Class beanClass) { this.beanClass = beanClass; ...
/** * Method to generate the AAI model for a Service or Resource. * * @param model * Java object model representing an AAI {@link Service} or {@link Resource} model * @return XML representation of the model in String format * @throws XmlArtifactGenerationException */ public...