content
stringlengths
10
4.9M
Learning Temporal Plan Preferences from Examples: An Empirical Study Temporal plan preferences are natural and important in a variety of applications. Yet users often find it difficult to formalize their preferences. Here we explore the possibility to learn preferences from example plans. Focusing on one preference at...
/* $Id: tstRTFileModeStringToFlags.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */ /** @file * IPRT Testcase - File mode string to IPRT file mode flags. */ /* * Copyright (C) 2013-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. Th...
/** * Adding a node to the Same Level as other leaves else add it to the left most * * @param node {@link BinaryTreeNode} to insert */ public void add(BinaryTreeNode<T> node) { if (root == null) { root = node; return; } Queue<BinaryTreeNode<T>> queue = new LinkedList<>(); queue.a...
/** * Creates a new instance from boundary ports. * Note that, the created instance will not be {@link #detach() detached}. * @param serialNumber the serial number * @param source the original flow graph * @param inputs the input ports of this block * @param outputs the output ports of thi...
def pp_fixture(request): dof = 6 np.random.seed(1) way_pts = np.random.randn(4, dof) * 0.6 N = 200 path = toppra.SplineInterpolator(np.linspace(0, 1, 4), way_pts) ss = np.linspace(0, 1, N + 1) vlim_ = np.random.rand(dof) * 10 + 10 vlim = np.vstack((-vlim_, vlim_)).T pc_vel = constr...
/* This slot is called when app is started. * It inits Kitchen objects so that food info * can be fetched according to the user selected Kitchen(s) * Sends a signal which indicates that kitchens are ready. */ void foodParser::parseInitData(const QByteArray &data) { QByteArray data2 = data; cleanJSON(data2, ...
/** * TWEnvironment * * @author michaellees Created: Apr 16, 2010 * * Copyright michaellees 2010 * * * Description: Contains the context of the environment and also creates * and removes objects at each time step. You don't need to modify this * but should look at the metho...
// Partition takes a message and partition count and chooses a partition func (c *CBPartitioner) Partition(message *sarama.ProducerMessage, numPartitions int32) (partition int32, err error) { partition = c.counter.Inc() % numPartitions if c.allPenalized.Load() { log.Print("all partition are penalized") return } ...
MANILA, Philippines — The Department of Environment and Natural Resources (DENR) on Thursday ordered the closure of 21 mining firms after they were found to have severely destroyed the environment of the local communities where they are operating. Another five mining companies were suspended also for various violation...
/// \brief A stream which composes a non-owning view over a contiguous block of memory. class span_istream final : public components::span_stream_base<const std::byte>, public binary_io::istream_interface<span_istream> { private: using super = components::span_stream_base<const std::byte>; public: using supe...
def should_call_prophecy(self, attribute_prophecy: AttributeProphecy): self.__mock_object._prophecies_to_call.append(attribute_prophecy)
/** * Populate child nodes for a single branch of the tree, and indicates * whether further expansion (to grandchildren) is possible. */ protected void addChildren(TreeItem ti, LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme, CodingSchemeVersionOrTag csvt, Str...
def export_data(self, phases=[], filename=None, filetype=None): import builtins project = self network = self.network if filename is None: filename = project.name + '_' + time.strftime('%Y%b%d_%H%M%p') if filetype is None: if '.' in filename: ...
TREATMENT OF FOUR INDUSTRIAL WASTEWATERS BY SEQUENCING BATCH REACTORS: EVALUATION OF COD, TKN AND TP REMOVAL Abstract This study investigated the ability of a sequencing batch reactor (SBR) system to treat four industrial wastewaters, namely, textile, landfill leachate, seafood and slaughterhouse effluents. The system...
def burst(time_now): global firework_step_time, burst_count, shower_count log("burst %d" % (burst_count)) if burst_count == 0: strip.brightness = 0.0 strip.fill(firework_color) elif burst_count == 22: shower_count = 0 firework_step_time = time_now + 0.3 return Tru...
#define NDEBUG #include <bits/stdc++.h> using namespace std; #ifdef NDEBUG # define debug(...) #else # include "debug.hh" #endif int static_init = []() { ios_base::sync_with_stdio(false), cin.tie(0), cout << fixed; return 0; }(); int cnt[26]; bool smallest(char c) { for (int i = c-'a'-1; i >= 0; i--) { ...
pub fn show_menu() { for i in 0..42 { print!("="); } print!(" 2048 Game "); for i in 0..42 { print!("="); } println!("\n"); } pub fn request_name() -> String { use std::io; println!("Please key in your name: "); let mut name = String::new(); io::stdin().read_l...
//! Test runner. //! //! This module implements the `TestRunner` struct which manages executing tests as well as //! scanning directories for tests. use crate::concurrent::{ConcurrentRunner, Reply}; use crate::runone; use std::error::Error; use std::ffi::OsStr; use std::fmt::{self, Display}; use std::path::{Path, Path...
/** * * * @author <a href="ryan@damnhandy.com">Ryan J. McDonough</a> * @version $Revision: 1.1 $ */ public class TestTwitterSearchApi extends AbstractExampleTest { private static final String SEARCH_BASE = "http://search.twitter.com/search.{format}"; private static final String SEARCH_PARAMS = "{?q,callbac...
/** * @author Gabriel Francisco - gabfssilva@gmail.com */ @ApplicationScoped public class ListenerRegister { @Inject @JmsListener(destination = "") private Instance<MessageListener> messageListeners; @Inject @Any private Instance<ExceptionListener> exceptionListeners; @Inject @JmsCon...
// Retry enables retryable writes for this operation. Retries are not handled automatically, // instead a boolean is returned from Execute and SelectAndExecute that indicates if the // operation can be retried. Retrying is handled by calling RetryExecute. func (at *AbortTransaction) Retry(retry driver.RetryMode) *Abort...
SAN JOSE, Calif. – With more than 11 MLS seasons under his belt as a head coach, San Jose Earthquakes boss Dominic Kinnear is too wily to fall for the “name your best XI” game. “You never want to look and go, ‘Well, if my team was fully healthy and nobody was called away, this is what we would be,’” Kinnear said. “I d...
<reponame>Jaylen0829/tornado-RESTfulAPI<filename>apps/public/models.py from base.models import BaseModel from peewee import *
def read_bytes_aligned(self, number_of_bytes): self.number_of_bits -= (self.number_of_bits % 8) return bytearray(self.read_bits(8 * number_of_bytes))
<gh_stars>1-10 import json from flask import request import werkzeug class RESTResource(object): """Represents a REST resource, with the different HTTP verbs""" _NEED_ID = ["get", "update", "delete"] _VERBS = {"get": "GET", "update": "PUT", "delete": "DELETE", "lis...
import { OnInit } from '@angular/core'; import { DataTable } from './DataTable'; export declare class DefaultSorter implements OnInit { private svTable; sortBy: string; isSortedByMeAsc: boolean; isSortedByMeDesc: boolean; constructor(svTable: DataTable); ngOnInit(): void; sort(): void; }
Copyright (C) 2010 by R. Winston Guthrie Photographs copyright (C) 2010 by Liza Gershman All rights reserved. Published in the United States by Clarkson Potter/Publishers, an imprint of the Crown Publishing Group, a division of Random House, Inc., New York. www.crownpublishing.com www.clarksonpotter.com CLA...
. Giant cell arteritis (Horton's disease) is an inflammatory panarteritis occurring most frequently in the elderly. Its common ocular manifestations are anterior ischemic optic neuropathy, choroidal ischemia and central retinal artery occlusion. We describe a case of Horton's disease revealed by a retinal detachment, ...
// Verify that the signature of the function matches the operation's operands // and results. static LogicalResult VerifySignature(GraphFuncOp func, Operation *op, TypeRange operands, TypeRange results, const Twine &func_name) { auto attach_fun...
/** * This reporter stores information in the same tree as the file cache. */ public class TreeSiteErrorReporter extends BaseSiteErrorReporter { final static Logger log = LoggerFactory.getLogger(TreeSiteErrorReporter.class.getName()); private URL testedurl; private File hostdir; private String filename; privat...
def apiversion(self, apiversion): self._apiversion = apiversion
/** * The main set of web services. */ @Named @Singleton public class DatasetAndServiceAndUserController extends Controller { private final DatasetAndUserRepository datasetAndUserRepository; private final ServiceAndUserRepository serviceAndUserRepository; private final DatasetRepository datasetRepository; priva...
<gh_stars>0 #ifndef IKMCRYPTO_H #define IKMCRYPTO_H #include <stdint.h> #include <cstddef> #include <vector> #include <string> #include <exception> #include <stdexcept> class ikmcrypto { public: virtual void set_key(const char *key, size_t byte_length); virtual void set_key_with_iv(const char *key, size_t by...
def load_json(path, keys_to_int=False): def convert_keys_to_int(x): return {int(k) if k.lstrip("-").isdigit() else k: v for k, v in x.items()} with open(path, "r") as f: if keys_to_int: content = json.load(f, object_hook=lambda x: convert_keys_to_int(x)) else: con...
def _set_date_in_calendar( self, calendar_locator: Tuple[Tuple[str, str], int], target_date: date, month_locator: Tuple[str, str], prev_month_locator: Tuple[str, str], day_locator: Tuple[str, str], day_class_check: Tuple[str, ...] = None) -> None: ...
use std::io; use structs::Worksheet; use super::driver::*; use super::XlsxError; pub(crate) fn write<W: io::Seek + io::Write>( worksheet: &Worksheet, arv: &mut zip::ZipWriter<W>, sub_dir: &str, ole_bin_id: &mut usize, ole_excel_id: &mut usize, ) -> Result<(), XlsxError> { for ole_object in wor...
/* Copyright 2020 CLOUD&HEAT Technologies GmbH * * 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...
// Helper to build a chunk. Caller takes ownership. std::unique_ptr<SBChunkData> BuildChunk( int chunk_number, ChunkData::ChunkType chunk_type, ChunkData::PrefixType prefix_type, const void* data, size_t data_size, const std::vector<int>& add_chunk_numbers) { std::unique_ptr<ChunkData> raw_da...
/** * Check ttl manager for memory leak. */ @RunWith(JUnit4.class) public class GridCacheTtlManagerLoadTest extends GridCacheTtlManagerSelfTest { /** * @throws Exception If failed. */ @Test public void testLoad() throws Exception { cacheMode = REPLICATED; final IgniteKernal g = ...
<filename>packages/client/src/context/stdioSocketContext.tsx /* eslint-disable no-console */ import { StdioMessage, StdioMessageDirection, StdioMessageType } from '@experiterm/shared'; import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; function formatMessage(ms...
/** * Remove domain name from roles except the hybrid roles (Internal,Application & Workflow). * * @param domainAwareRolesList list of roles assigned to a user. * @return String of multi attribute separated list of roles assigned to a user with domain name removed from roles. */ public static S...
/** * Main Terramap addon class * * @author SmylerMC */ public class TerramapAddon implements Module, Listener { public static TerramapAddon instance; public static final String TERRAMAP_MODID = "terramap"; public static final String MAPSYNC_CHANNEL_NAME = "terramap:mapsync"; public static final S...
/** Transaction test case. * * @author little-pan * @since 2019-09-26 * */ public class TransactionTest extends TestDbBase { public static void main(String args[]) throws SQLException { new TransactionTest().test(); } @Override protected void doTest() throws SQLException ...
/** Create a Visio fill style object * @param self a VDXRenderer * @param color a colour * @todo fillstyle */ static void create_Fill(VDXRenderer *renderer, Color *color, struct vdx_Fill *Fill) { memset(Fill, 0, sizeof(*Fill)); Fill->type = vdx_types_Fill; Fill->FillForegnd = *color; Fill->FillPatt...
/** * @brief Board::NewLevel * * Creates a new level by doing the following: * - Setting all board layeres to default values * - Generating new maze * - Instantiate Tiles * - Spawn enemies */ void Board::NewLevel(){ ClearEnemies(); std::vector< std::vector< std::vector<Tile*> > > temp_board = GenerateBl...
<reponame>microsoft/Odyss-e-de-Teams import React, { Component } from "react"; import { ListGroup, Form } from "react-bootstrap"; import { IMecaniqueQuestionProps, IReponse, IRemettreOrdreState, } from "models/Question"; import "./RemettreOrdre.scss"; class RemettreOrdre extends Component< IMecaniqueQuestion...
def print_leaves(treefile): count=0 tree = Tree(treefile) for leaf in tree: count+=1 print("{} : {} leaves".format(treefile, count))
/** * {@link org.springframework.security.oauth2.jwt.Jwt} token validator for GCP App Engine (both Flexible and Standard) * audience strings. * * @author Elena Felder * * @since 1.1 */ public class AppEngineAudienceProvider implements AudienceProvider { private static final String AUDIENCE_FORMAT = "/projects/...
<reponame>kms1212/bootldr #ifndef __DRIVERS_H__ #define __DRIVERS_H__ #include "type.h" #include "port.h" #define ATAPIO_STATUS_BSY 0x80 #define ATAPIO_STATUS_RDY 0x40 #define ATAPIO_STATUS_DRQ 0x08 #define ATAPIO_STATUS_DF 0x20 #define ATAPIO_STATUS_ERR 0x01 void* ATAPIORead(void* dest, ...
/** * DOM implementation of OpenDocument element {@odf.element text:object-index-source}. * */ public class TextObjectIndexSourceElement extends OdfElement { public static final OdfName ELEMENT_NAME = OdfName.newName(OdfDocumentNamespace.TEXT, "object-index-source"); /** * Create the instance of <code>TextObj...
Powerful: Alvaro Negredo has been offered to Tottenham on the cheap (Picture: Getty) La Liga side Sevilla have offered Tottenham a cut-price deal for striker Alvaro Negredo after suffering a financial crisis. The Andalusia-based club are currently reeling after it was revealed that they are almost £15million in debt,...
def _event_publisher(event): if event.origin != EventOrigin.local: return if event.event_type == EVENT_TIME_CHANGED: return if event.event_type in ignore_event: return if event.event_type == EVENT_CALL_SERVICE: if ( even...
module Window.InputState.Controls ( module Window.InputState.Alias , keyPressed , keyReleased , keyHold , keyPrevHold , keyNotHold , keyPrevNotHold , mousePressed , mouseReleased , mouseHold , mouseNotHold , mouseWheelScrollX , mouseWheelScrollY , gamepadPressed ...
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class BattleManager { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); Map<String, Integer> peopleMapHealth = new HashMap<>(); Map<S...
t=int(input()) for i in range(t): x,y=map(int,input().split()) a=0 b=0 x = x-1 if(x>y): a=x b =y elif(x==y): a=x b=y elif(x<y): a=x b=y print(a,b)
import { FC, useState, createElement, FormEventHandler, useEffect, } from "react" import Button from "@oly_op/react-button" import { Head } from "@oly_op/react-head" import SIGN_UP from "./sign-up.gql" import { useMutation } from "../../hooks" import { SignUpArgs, SignUpData, SignUpInput } from "./types" import ...
# -*- coding: utf-8 -*- """ Created on Fri Jan 5 12:35:54 2018 @author: ettor """ import pandas as pd import requests import requests_cache from collections import namedtuple import pandas as pd from SPARQLWrapper import SPARQLWrapper, JSON def get_wikidata_item(predicat, objet): """ Use the WDQ service t...
// replacement (and copy of) of flate.Read(): always allocates a buffer big // enough to fully return the block of uncompressed data func readBlock(f *flate.Decompressor) ([]byte, error) { for { if len(f.ToRead) > 0 { b := make([]byte, len(f.ToRead)) n := copy(b, f.ToRead) f.ToRead = f.ToRead[n:] return ...
def loadData(self): file_length = getFileLength(self.fileloc) with open(self.fileloc, 'r') as file: csvreader = list(csv.reader(file, delimiter=',')) self.type = csvreader[1][1] initial_time = int(csvreader[1][0]) printProgressBar(0, file_length-1, prefix ...
def process_payment(self, customer_id=None, payment_debug=False, **kwargs): final_dictionnary = dict( order_reference=self.order_reference ) try: cart_model = apps.get_model(settings.CART_MODEL) except: cart_model = apps.get_model('cart.Cart') ...
#include<iostream> #include<algorithm> #include<vector> #include<set> #include<map> #include<utility> using namespace std; typedef long long ll; const int MAX_N = 100005; const int INF = 1000 * 1000 * 1000; int odd[MAX_N][2], even[MAX_N][2], Q[MAX_N]; int n, m, koszt[MAX_N], W[MAX_N]; string S; map<int, int> DP[MAX_...
Gene flow signature in the S-allele region of cultivated buckwheat Background Buckwheat (Fagopyrum esculentum Moench.) is an annual crop that originated in southern China. The nutritious seeds are used in cooking much like cereal grains. Buckwheat is an outcrossing species with heteromorphic self-incompatibility due t...
Jeremy McConnell and Stephanie Davis could be set for a Celebrity Big Brother comeback this summer. The pair first appeared in last January's series where they hooked up before things quickly turned very messy on the outside. The former couple, who are currently embroiled in a paternity dispute over Stephanie's new b...
// CheckEtcdDataFileExists checks for the existance of an etcd db file. If the db exists we can assume this etcd // has previously started or is currently being recovered. If true we can not assume kube exists yet or will // during the life of this container. For example disaster recovery. // TODO organize into a gener...
<reponame>gabystern/capybara-webkit<filename>src/Node.cpp #include "Node.h" #include "WebPage.h" #include "WebPageManager.h" #include "JsonSerializer.h" #include "InvocationResult.h" Node::Node(WebPageManager *manager, QStringList &arguments, QObject *parent) : JavascriptCommand(manager, arguments, parent) { } void N...
// seek from name pointer to start of attributes. static const unsigned char *seekToAttrs(const unsigned char *current, u_int32_t flags) { DBXML_ASSERT(current); current += NsUtil::nsStringLen(current) + 1; int32_t skip; if (flags & NS_HASTEXT) { current += NsFormat::unmarshalInt(current, &skip); current +...
<gh_stars>10-100 /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit */ @interface _NSTableColumnAuxiliary : NSObject { _NSBindingAdaptor * _bindingAdaptor; struct { double x; double width; } _cachedPosition; NSString * _headerTool...
// // Copyright 2019 Insolar Technologies GmbH // // 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...
<filename>src/horoscopecli/horoscopecli/horoscopeScrapper.py from bs4 import BeautifulSoup import urllib.request import urllib.error import socket def getHoroscopeScrapper(sign: str, category: str): dic = {"love": 0, "work": 1, "finance": 2, "self": 3, "family": 4} urlpage = f"https://www.evozen.fr/horoscope/...
New Delhi: Sanjay Leela Bhansali's (SLB) ambitious project 'Padmavati' seems to be in trouble much before its release. After the untoward incident in Jaipur's 'Jaigarh Fort' where the film sets were vandalised and the filmmaker abused by Karni Sena members, comes yet another shocker for SLB. A Rajasthan minister said ...
<gh_stars>0 /****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************...
Iron ore mines leachate potential for oxyradical production. The ecotoxicological effects of mining effluents is coming under much greater scrutiny. It appears necessary to explore possible health effects in association with iron ore mining effluents. The present results clearly demonstrate that iron-ore leachate is n...
/// Starts a new beacon node `Client` in the given `environment`. /// /// Client behaviour is defined by the given `client_config`. pub async fn new( context: RuntimeContext<E>, mut client_config: ClientConfig, ) -> Result<Self, String> { let spec = context.eth2_config().spec.clone(); ...
Dallas Cowboys owner Jerry Jones, one of the few team owners to openly criticize the NFL’s ever-present national anthem protests, has a new target in his sights. According to reports, Jones is working to stall Commissioner Roger Goodell’s extension. According to reports, Jones led a secret conference call of a group o...
Monitoring of Hydrocarbon Gaseous Compounds formed During Bioleaching of Copper Sulphide Minerals with Mesophilic Microorganisms An experimental campaign was conducted for monitoring the formation of hydrocarbon gaseous compounds during bioleaching of copper sulphide ores with mesophilic microorganisms. Three differen...
def read(self, n=-1): self._unsupported("read")
Former Indiana State Trooper Brian Hamilton (Screenshot/ABC6) An Indiana state trooper who was fired for proselytizing people he pulled over during traffic stops spoke out an Saturday and said he accepts his firing because he is a “soldier for Jesus Christ.” Surrounded by praying supporters, Hamilton, who was fired o...
/** * A simple utility class that can be used by sinks to extract nested elements (e.g. nodes, types) * that should be persisted. * * @version 0.1 * @since 31.03.20 */ public final class Extractor { private static final Logger log = LoggerFactory.getLogger(Extractor.class); private Extractor() { throw n...
<filename>src/main/java/work/lince/commons/authentication/AuthenticationFilter.java package work.lince.commons.authentication; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.authentication.User...
WHILE the world worries about Greece, there’s an even bigger problem closer to home: China. A stock market crash there has seen $3.2 trillion wiped from the value of Chinese shares in just three weeks, triggering an emergency response from the government and warnings of “monstrous” public disorder. • LATEST: CHINESE ...
/** * Finds a method given its name and argument types in this class, superclass and all superinterfaces. */ private Method findMethod(Class<?> clazz, String methodName, Class<?>[] argTypes) { Method method = null; try { method = clazz.getDeclaredMethod(methodName, argTypes);...
<filename>sdk/go/azure/videoanalyzer/v20210501preview/videoAnalyzer.go // *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v20210501preview import ( "context" "reflect" "github.com/pkg/errors" "github.c...
<gh_stars>1-10 #include "mcp_can.h" #include <IFCT.h> #include <kinetis_flexcan.h> #undef rtr CAN_message_t storage_mcp_sim; /********************************************************************************************************* ** Function name: MCP_CAN ** Descriptions: Constructor ********...
def max_thread_dimensions(self): return json.loads(self._GetDeviceAttr(self.device_type, self.device_id, 8))
const flash = ({ message, status }) => { return ( <> <div className={`alert alert-${status} alert-dismissible fade show`} role="alert"> <strong>{message}</strong> </div> </> ); }; export default flash;
// UpdateStartingToRunning changes the host status from provisioning to // running, as well as logging that the host has finished provisioning. func (h *Host) UpdateStartingToRunning() error { if h.Status != evergreen.HostStarting { return nil } if err := UpdateOne( bson.M{ IdKey: h.Id, StatusKey:...
// GetSCMProvider gets the SCM provider by the type. func GetSCMProvider(scm *api.SCMConfig) (SCMProvider, error) { if scm == nil { err := fmt.Errorf("SCM config is nil") log.Error(err) return nil, err } scmType := scm.Type pFunc, ok := scmProviders[scmType] if !ok { return nil, fmt.Errorf("unsupported SCM...
/* * sa.c * System accounting of command execution * (in conjuction with acct system call.) */ #include <stdio.h> #include <ctype.h> #include <pwd.h> #include <acct.h> #include <sys/times.h> #include <sys/const.h> #include <dirent.h> #define MIN 60 /* Seconds in a minute */ #define MINHZ (MIN*HZ) /* HZ in a min...
import {mutationWithClientMutationId, toGlobalId} from 'graphql-relay'; import {GraphQLID, GraphQLList, GraphQLNonNull, GraphQLString} from 'graphql'; import {GraphQLUser} from '../nodes'; import {getUserOrThrow, removeCompletedTodos, User} from '../../database'; type Input = { userId: string; }; type Payload = { ...
// Parse config and return input/output filepaths // @return 1 => input filepath // @return 2 => output filepath // @return 3 => precision std::tuple<std::string, std::string, double> parse_config() { std::ifstream inConfig(CONFIG_PATH); if (!inConfig.is_open()) throw std::runtime_error("Could not open config file");...
// // Copyright 2019 <NAME> // // 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 agreed to in wr...
“It’s Doctor Who meets Harry Potter” And with those golden words, the BBC has signed up to a new Russell T Davies TV show, Aliens Vs Wizards for their children’s CBBC channel, something he has previously described as a “small committment”. Revealed by his agent’s website, he is also listed as creating the show with D...
<reponame>matth036/dsc<gh_stars>0 #include <iostream> #include <cmath> #include "AA2DCoordinate.h" #include "AACoordinateTransformation.h" #include "AADate.h" #include "extra_solar_transforms.h" #include "AANutation.h" #include "sexagesimal.h" #include "navigation_star.h" #include "solar_system.h" #include "AASidereal...
Printable Fluorescent Hydrogels Based on Self-Assembling Peptides Fluorescent hydrogels (FH) have a variety of potential applications in the field of soft electronics. However, fabrication of mechanically stable and printable fluorescent hydrogels remains challenging. Here, we report a kind of fluorescent hydrogel bas...
<gh_stars>100-1000 package smithereen.activitypub; import java.sql.SQLException; import smithereen.exceptions.BadRequestException; import smithereen.activitypub.objects.Activity; import smithereen.activitypub.objects.ActivityPubObject; import smithereen.activitypub.objects.Actor; public abstract class NestedActivity...
s1,s2,s3=input().split() s1=s1.capitalize() s2=s2.capitalize() s3=s3.capitalize() x=s1[0]+s2[0]+s3[0] print(x)
<reponame>thomasweng15/visual_foresight from .general_agent import GeneralAgent import numpy as np class OfflineAgent(GeneralAgent): def __init__(self, hyperparams): super().__init__(hyperparams) def _post_process_obs(self, env_obs, agent_data, initial_obs=False): # obs = super()._post_process...
/** * Container class for the response of a depseudonymization URL request. * Contains the depseudonymization URL and a list of the invalid pseudonyms from * the corresponding request. */ public class DepseudonymizationUrlResponse { /** * URL for the depseudonymization. */ private String url; /** * List ...
// AutocompleteVolumeFilters - Autocomplete volume ls --filter options. func AutocompleteVolumeFilters(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { local := func(_ string) ([]string, cobra.ShellCompDirective) { return []string{"local"}, cobra.ShellCompDirectiveNoFileCo...
// // Copyright (c) 2017 Open Whisper Systems. All rights reserved. // NS_ASSUME_NONNULL_BEGIN @interface OWSProvisioningCipher : NSObject @property (nonatomic, readonly) NSData *ourPublicKey; - (instancetype)initWithTheirPublicKey:(NSData *)theirPublicKey; - (nullable NSData *)encrypt:(NSData *)plainText; @end ...