content
stringlengths
10
4.9M
package ru.stqa.pft.soap; import com.lavasoft.GeoIPService; import org.testng.Assert; import org.testng.annotations.Test; public class GeoIpServiceTests { @Test public void testMyIp() { String ipLocation = new GeoIPService().getGeoIPServiceSoap12().getIpLocation("192.168.0.15"); Assert.assert...
from dataclasses import dataclass, asdict, field, InitVar import random import collections import shutil from pathlib import Path import unittest from zensols.persist import ( DelegateDefaults, DirectoryCompositeStash, MissingDataKeys, PersistableError, ) class DcsTestStash(DirectoryCompositeStash): ...
#define DEBUG(...) /* Strip me down and go to town */ /* Lick me over upside down */ /* Pound and pound and pound and pound */ /* Baby make me make that sound ...
A Summary of the International Colloquium “French Theory in China” An international colloquium, “French Theory in China”, was held at Shanghai University from October 11 to 13 , 2019 . The colloquium was jointly organized by the Department of Chinese Language and Literature, Center for French Thought and Culture, and ...
def check_in_known_filters(istring, known_filters, exclude_filters): filter_splits = istring.split('-') if exclude_filters: all_known_filters = known_filters.union(exclude_filters) else: all_known_filters = known_filters return set(filter_splits).issubset(all_known_filters)
<reponame>SaladDais/LSO2-VM-Performance /** * @file llsdmessagereader.cpp * @brief LLSDMessageReader class implementation. * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it...
def _step_cog(self): def course_utm(df): df.reset_index(inplace=True) df["Step_Azimuth"] = azimuth_utm( df["geometry"].shift(), df.loc[1:, "geometry"] ) return df.set_index("index") self.gdf = self.grouped_trip.apply(course_utm) sel...
[The following text has been excerpted from Peter Schilling Jr.’s forthcoming book on the duck stories of Carl Barks, published by Uncivilized Books.] Carl Barks consistently referred to “Lost in the Andes” as his finest work, but I would counter with “The Golden Helmet.” “Helmet,” with its almost zen-like appraisal o...
Comparison of pressure standards in the range 10 kPa to 140 kPa This report summarizes the results obtained by twelve laboratories in a comparison of pressure measurement standards in the range 10 kPa to 140 kPa, carried out under the auspices of the Consultative Committee for Mass and Related Quantities. Measurements...
#ifndef LED_H #define LED_H namespace StatusLED { void blink(); void force_on(); void force_off(); } #endif
/** For Jetty, injects the filter into instances of Jetty's ServletHandler. * * We instrument the constructor of org.eclipse.jetty.servlet.ServletHandler to inject a call to * add the supplied filter. * * @author robertf */ public class JettyAdapter implements Adapter { private final InjectableFilter filte...
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 #ifndef HcalTestBeamData_HcalTB06BeamParameters_h #define HcalTestBeamData_HcalTB06BeamParameters_h #include "CondFormats/Serialization/interface/Serializable.h" #include <string> #include <vector> class HcalTB06BeamParameters { public: HcalTB06BeamParameters() = defaul...
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
Priscilla Foster has 20 full-time positions open at the McDonald’s restaurant she owns in Wexford. She’s having a hard time filling them because many applicants don’t have a car and cannot get bus service. “I can’t even tell you how many people can’t get to work because they don’t have a ride,” she said. Foster, who...
/** * Does a region registerInterest on a server described by the given connection * <p> * Note that this call by-passes the RegisterInterestTracker. * * @param conn the connection to do the register interest on. * @param key describes what we are interested in * @param interestType the {@link Inte...
/* * Copyright (C) 2019-2020 BiiLabs Co., Ltd. and Contributors * All Rights Reserved. * This is free software; you can redistribute it and/or modify it under the * terms of the MIT license. A copy of the license can be found in the file * "LICENSE" at the root of this distribution. */ #ifndef CONN_HTTP_H #defin...
JAK kinases are required for the bacterial RNA and poly I:C induced tyrosine phosphorylation of PKR. Discriminating the molecular patterns associated with RNA is central to innate immunity. The protein kinase PKR is a cytosolic sensor involved in the recognition of viral dsRNA and triggering interferon-induced signali...
/** Error messages related to {@link Multibinds @Multibinds} methods. */ static final class MultibindsMessages { static final String METHOD_MUST_RETURN_MAP_OR_SET = "@%s methods must return Map<K, V> or Set<T>"; static final String PARAMETERS = "@%s methods cannot have parameters"; private Multibi...
By Marshall Auerback, Stephanie Kelton and L. Randall Wray Should the federal government bailout Detroit? That’s the question everyone is debating. We think the discussion should be expanded well beyond this narrow question. Detroit is the canary in the coal mine, but it’s symptomatic of a bigger problem, which is the...
The E3 ubiquitin ligase Itch regulates tumor suppressor protein RASSF5/NORE1 stability in an acetylation-dependent manner Ras association (RalGDS/AF-6) domain family member RASSF5 is a non-enzymatic RAS effector super family protein, known to be involved in cell growth regulation. Expression of RASSF5 is found to be e...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String []args) { String balance; Scanner input=new Scanner(System.in); balance=input.next(); String[] arr=balance.split("\\|"); String weights; weights=input.next(); String a=""; String b=""; if(arr.length...
<gh_stars>1000+ /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * ...
Dye Precursor Molecules on NiO(001) Studied by Non-Contact Atomic Force Microscopy The properties of NiO, such as charge transport or optoelectronic characteristics, can be modified by functionalization with organic molecules. These kinds of organic/inorganic surfaces are of great interest, in particular, for the desi...
import * as sinon from 'sinon' import { expect } from 'chai' import * as peers from '../../../packages/shared/comms/peers' import { getVisibleAvatarsUserId } from '../../../packages/shared/sceneEvents/visibleAvatars' import { AvatarMessageType } from '../../../packages/shared/comms/interface/types' import * as sceneMan...
For his Record Club series, Beck gathers friends together to cover an entire album in a day, then posts the results to his website. So far, the Record Club choices have come from canonical or at least critically respected artists: the Velvet Underground, Skip Spence, INXS, Leonard Cohen. But now Beck and friends have ...
Canton of Switzerland Canton The canton of Appenzell Innerrhoden ( German: [ˈapənˌtsɛl ˈɪnərˌroːdən] (); in English sometimes Appenzell Inner-Rhodes) is the smallest canton of Switzerland by population and the second smallest by area, with canton of Basel-City being the smallest. It was the last Swiss canton to grant...
/** * Add a new pattern if pattern name is null * Update the pattern if a pattern name is provided * * @param patternName - patternName to be added or updated */ private void updateOrSave(String patternName) { InjectionPatternEntity patternEntity; if (null == patternName) {...
The New York Times reports that the Chrysler brinkmanship continues, with some small hedge funds acting as pigs in the hope of extracting yet more concessions from the government, as the bankruptcy deadline looms. The reason the funds can play such hardball is that the Administration does not want to BK Chrysler. Desp...
package orchi.HHCloud.provider; public class ProviderNotFoundException extends RuntimeException { public ProviderNotFoundException(){ super(); } public ProviderNotFoundException(String msg) { super(msg); } public ProviderNotFoundException(Exception e) { super(e); } }
<filename>dialer/quic/conn.go package quic import ( "context" "net" "github.com/lucas-clemente/quic-go" ) type quicSession struct { session quic.EarlyConnection } func (session *quicSession) GetConn() (*quicConn, error) { stream, err := session.session.OpenStreamSync(context.Background()) if err != nil { re...
/** * :: DeveloperApi :: * A fast hash map implementation for nullable keys. This hash map supports insertions and updates, * but not deletions. This map is about 5X faster than java.util.HashMap, while using much less * space overhead. * <p> * Under the hood, it uses our OpenHashSet implementation. */ class Ope...
def main(): ans = random_word() result = dash(len(ans)) turns = N_TURNS history = '' while True: if turns == 0 or ans == result: break else: print('The word looks like '+result) print('You have '+str(turns)+...
Fuzziness and PDE based models for the segmentation of medical image This paper presents a generic strategy to facilitate the segmentation of anatomical structures in medical images the segmentation of anatomical structures in medical images. The segmentation is performed using an adapted partial differential equation...
import functools import gc from abc import ABC from sources.datasets.client_dataset_definitions.client_dataset_loaders.client_dataset_loader import ClientDatasetLoader, DatasetComponents from sources.datasets.client_dataset_definitions.client_dataset_processors.client_dataset_processor import ClientDatasetProcessor fr...
<filename>src/main/java/com/jd/jdbc/planbuilder/MemorySortPlan.java /* Copyright 2021 JD Project Authors. Licensed under Apache-2.0. Copyright 2019 The Vitess Authors. 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...
// The HierarchyLinker class allows you to link nodes into a tree according to the hierarchy. // The knowledge of geometry only is used here. class HierarchyLinker { public: using Node = tree_node::TreeNode<HierarchyPlace>; using Tree4d = m4::Tree<Node::Ptr>; explicit HierarchyLinker(Node::Ptrs && nodes); Node:...
import * as gcp from "@pulumi/gcp"; import * as k8s from "@pulumi/kubernetes"; import * as pulumi from "@pulumi/pulumi"; import type {Config} from "./config"; export function makeKubernetes( config: Config, ): { cluster: gcp.container.Cluster; provider: k8s.Provider; kubeconfig: pulumi.Output<string>;...
/** * If we are around a planet, render that. * * @param curOrbitalAngle */ protected void renderParentPlanet(double curOrbitalAngle) { double distanceToParent = curBody.getRelativeDistanceFromCenter().unScaledDistance; double mainBodyOrbitalAngle = Math.PI-curOrbitalAngle; d...
/** * Check the results have a calibrated exposure time and pixel pitch. If not then show a dialog to * collect the calibration. * * @param results the results * @return True if calibrated */ private static boolean checkCalibration(MemoryPeakResults results) { if (results.getCalibration() == null ...
/** * Increments <code>count</code> and ends the initial phase if enough elements have been seen. */ private void incrementCount() { count++; if (count.equals(stepsUntilMerge)) { initialPhase = false; } }
/** * A parser and serializer for the 1.* JSON format. */ public final class CaV1JSONFormat implements CaDefinitionParserType, CaDefinitionSerializerType { private final ObjectMapper mapper; /** * Construct a new parser/serializer. * * @param in_mapper An object mapper */ public CaV1JSONFormat( ...
/** * Send a delayed message so that enemy is ready to attack again after some time. * Needs to be overridden by each specific enemy class to actually send a projectile ! */ public void throwProjectile() { throwingProjectile = false; MessageManager.getInstance().dispatchMessage(timeBetwee...
<filename>tests/test_generator/test_stereo.py """Stereo sound wave generators tests.""" import numpy as np import pytest from waves import Sound @pytest.mark.parametrize("fps", (44100, 22050), ids=("fps=44100", "22050")) @pytest.mark.parametrize( "frequencies", ((110, 220), (440, 880), (120, 360, 720)), ...
Law, Bureaucracy, and the Practice of Government and Rule This chapter explores the “logic of empire” in relation to law, bureaucracy, and the practice of government, from the Ancient world to the present. Beginning with the complex example of Haile Selassie I and the Ethiopian Empire, the chapter analyzes the many un...
/** One side synchronizing to local database method. * If the user select the get applicants from the remoted database, this method get the newer modified applicants from remoted database and storing or modifying in the local database. * @param event is select event with left mouse click on sync both-side (fr...
<reponame>dollarkillerx/RUST-Newcomer-Development-Program use salvo::prelude::*; use demo1::*; #[tokio::main] async fn main() { let router = router::router(); Server::new(router).bind(([0, 0, 0, 0], 7878)).await; }
import xlwings as xw import math # import pandas as pd import numpy as np import matplotlib.pyplot as plt # import sympy.physics.units as u from pint import UnitRegistry from catalogo import CheckList u = UnitRegistry() # wb = xw.Book() @xw.sub # only required if you want to import it or run it via UDF Server def mai...
/* returns void because it must not fail on valid LUKS2 header */ static void _load_backup_segments(struct luks2_hdr *hdr, struct luks2_reenc_context *rh) { int segment = LUKS2_get_segment_id_by_flag(hdr, "backup-final"); if (segment >= 0) { rh->jobj_segment_new = json_object_get(LUKS2_get_segment_jobj(hdr, segme...
def output(keybind="", command=""): headers = ['Keybind', 'Modifier', 'Command'] t_data = [] if binds: binds.sort() for l in binds: if keybind: if keybind in l[0].lower(): t_data.append(l) elif command: if command in...
/** * This data listener can be attached to a serial port. Whenever new data is * available, it retrieves a full line from the serial port and sends it to * {@link PrinterEmulator}. * * @author lukasklinger * */ public class DataListener implements SerialPortDataListener { private PrinterEmulator emula...
package com.soup.memo.netty.socket; import java.time.LocalDateTime; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import lombok.extern.slf4j.Slf4j; /** * <p> * Description: * </p> * * @author zhaoyi * @date 2019-01-03 17:54 */ @Slf4j public class SocketCli...
Iconic motorcycle brand Harley-Davidson is taken down a notch in this fun, simple new spot for Indian Motorcycle, which takes a hard left three-quarters of the way through. Great use of Willie Nelson by Minneapolis agency Colle+McVoy, for whom it must have been fun taking some lighthearted shots at a brand famously adv...
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("models", "5881_fileviewer"), ] operations = [ migrations.RunSQL( sql=""" DELETE FROM card_components WHERE componentid = '4e40b397-d6bc-4660-a398-4a72c90dba07'; ...
<gh_stars>1-10 #include "mlir/IR/DialectImplementation.h" #include "llvm/ADT/TypeSwitch.h" #include "Dialect/ZX/ZXDialect.h" #include "Dialect/ZX/ZXTypes.h" #define GET_TYPEDEF_CLASSES #include "Dialect/ZX/ZXOpsTypes.cpp.inc" using namespace mlir; using namespace mlir::ZX; Type ZXDialect::parseType(DialectAsmParser...
def add_relation(g: SemanticGraph): new_graphs = [] if len(g.edges) > 0 and not any(e.temporal for e in g.edges): add_args = [] sorting = 'MIN' if len(argmin_markers & set(g.tokens)) > 0: add_args = arg_relations['MIN'] sorting = 'MIN' elif len(argmax_mark...
<reponame>quickstrom/specstrom {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeApplications #-} module Specstrom.Gen where import qualified Data.Aeson as JSON import qualified Data.HashMap.Strict as HashMap import qualified Data.Text as Text import qualified Data.Vector as Vector import Hedgehog (Gen) import qual...
/** * Velocity LogSystem implementation for Jakarta Commons Logging. * Used by VelocityConfigurer to redirect log output. * @author Juergen Hoeller * @since 07.08.2003 * @see VelocityConfigurer */ public class CommonsLoggingLogSystem implements LogSystem { private Log logger = LogFactory.getLog(getClass...
Guidelines for writing a scientific paper: an address to beginners Summary: Although writing a publishable scientific paper does not require extraordinary writing talent, it does require adherence to a few basic principles. First, choosing a forum for publication is important, since books and journals tend to be highl...
Endocytosis and exocytosis of protein in capillary endothelium The transport of proteins across continuous capillary endothelium is believed to be mediated by micropinocytic vesicles which shuttle molecules between the lumenal and abluminal plasma membrane. We have studied the ability of capillary endothelial cells is...
<filename>slow-donkey-server/src/main/java/io/bumble/slowdonkey/server/data/SlowDonkeyDatabase.java package io.bumble.slowdonkey.server.data; import io.bumble.slowdonkey.common.model.network.client2server.WriteRequest; import io.bumble.slowdonkey.common.util.SingletonUtil; import io.bumble.slowdonkey.server.persistenc...
class Relationship: """A class representing a dcat:Relationship. Ref: `dcat:Relationship <https://www.w3.org/TR/vocab-dcat-2/#Class:Relationship>`_ Attributes: identifier (URI): a URI uniquely identifying the resource relation (Resource): A URI uniquely identifying related resource ...
<reponame>kmissoumi/demo-java<filename>selenium3-examples/src/test/java/com/saucelabs/selenium3/changes/CapabilitiesMergeTest.java package com.saucelabs.selenium3.changes; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.openqa.selenium.Pa...
/** * Logger for command line interface */ public class CommandLineLogger extends Logger { private PrintStream m_aOut; private int m_nLevel; /** Creates a new instance of CommandLineLogger * * @param aOut PrintStream for messages */ public CommandLineLogger( PrintStream aOut, int n...
/* * Created on 2012/02/16 * Copyright (c) 2010-2012, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, thi...
<gh_stars>1-10 package com.simple.creact.simple.app.data.datasource; import com.simple.creact.library.framework.datasource.impl.BaseDataFetcher; import retrofit2.Call; /** * @author:YJJ * @date:2016/3/10 * @email:<EMAIL> */ public abstract class RetrofitDataFetcher<R> extends BaseDataFetcher<R> { protected ...
Epidemiological role of birds in the transmission and maintenance of zoonoses. The risk of zoonoses spreading from birds to humans is lower, quantitatively speaking, than the risk of transmission between other host groups, because the two taxonomic groups share fewer pathogens. Nevertheless, birds have a number of epi...
// An agent which will be part of a chain. // This agent will mutate a data from received message. class chain_agent final : public so_5::agent_t { public : chain_agent(context_t ctx, std::string name, std::string prefix, std::string suffix, so_5::mbox_t next) : so_5::agent_t(std::move(ctx)) , m_name(std::mo...
<gh_stars>0 #include "Borg/List.h" #include "Borg/Ref.h" #include <gtest/gtest.h> using namespace Borg; TEST(List, Add) { Ref<IList<int>> numbers = CreateRef<List<int>>(); numbers->Add(10); } TEST(List, ForLoop) { //Ref<IList2<int>> numbers = CreateRef<List2<int>>(); auto numbers = CreateRef<List<int...
def fetch_tf_map(self, attribute, products):
/** * Simple POJO providing parameter details for {@link NamedOperation}s. */ @JsonDeserialize(builder = ParameterDetail.Builder.class) public class ParameterDetail implements Serializable { private static final long serialVersionUID = -883113279877131469L; private String description; private Object defau...
import adblock from confvar import * import bookmark import requests import favicon from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import PyQt5.QtWebEngineWidgets from PyQt5.QtWebEngineWidgets import * from PyQt5.QtPrintSupport import * from PyQt5.QtWebEngineCore import * privilege...
<gh_stars>0 package fnug.resource; import com.googlecode.jslint4java.JSLintResult; /** * Tagging interface for entities that has a JSLint result. * * @author <NAME> * */ public interface HasJSLintResult { /** * Returns the jslint result. If the entity does not have a lint result, null is returned. ...
<filename>src/version.cpp #include <date/tz.h> #include <cpp11/strings.hpp> // ----------------------------------------------------------------------------- [[cpp11::register]] cpp11::writable::strings tzdb_version_cpp() { const date::tzdb& db = date::get_tzdb(); cpp11::writable::strings out{db.version}; return...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/** * Simple example of extending XML Type. * @author jflute */ public class MyTypeOfXML extends TnAbstractValueType { public MyTypeOfXML() { super(Types.OTHER); } public Object getValue(ResultSet resultSet, int index) throws SQLException { String xmlString = resultSet.getStri...
<reponame>jamespayor/pdfium<gh_stars>1-10 // Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fxfa/parser/xfa_basic_...
<filename>client.go<gh_stars>0 package gomailer import ( "context" "errors" ) type Implementation int const ( Gomail = Implementation(iota) ) type Client interface { // Send will send email Send(msg *Message) error // SendContext provide context to send function SendContext(ctx context.Context, msg *Message)...
package de.isuret.polos.AetherOnePi.domain; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class VitalityObject { private Integer number; private Integer value; }
module Test.Day17 (tests) where import Common import Day17 (part1, part2) input = "target area: x=20..30, y=-10..-5" expected1 = "45" expected2 = "112" tests = createTests [ TestResult "Day 17 - Part 1" expected1 (part1 input), TestResult "Day 17 - Part 2" expected2 (part2 input) ]
<gh_stars>0 from ipaddress import IPv4Network, AddressValueError from CiscoIPScanner.general import mt from CiscoIPScanner.exceptions import ( InvalidVRF, NoVRFSpecifiedWithIntInVRF, InvalidIntfIPAddress, InvalidDeviceType, NoIntfIPSpecified, NoNXOSIntfIPSpecified, SubnetTooLarge, InvalidVlanID, InvalidNetworkI...
Good news, Sensies! Netflix has renewed Sense8 for a second season, and the show’s cast helped share the news. The streaming service made the announcement Saturday through a special video message posted to Twitter and Facebook. “Birthdays are just the beginning,” read the caption, as actors Aml Ameen, Jamie Clayton, D...
<reponame>typingtanuki/redmine-api package com.github.typingtanuki.redmine.api.auth; import org.jboss.resteasy.client.jaxrs.BasicAuthentication; /** * Use this authentication method if you want to log in with an API key. * <p> * Your API key can be found in your redmine profile after login in * * @author <NAME> ...
n=list(input()) if len(n)==1: print(''.join(n)) else: ans=[] for i in n: if i in '123': ans.append(i) ans.sort() xxx=ans[-1] ans=ans[:-1] for i in ans: print(i+'+', end='') print(xxx)
def _get_triggers(settings): try: triggers_list = settings["triggers"] except KeyError as e: raise SettingNotFound("%s setting not found" % e) triggers = list() for trigger_el in triggers_list: if isinstance(trigger_el, dict): for trigg...
//DatabaseInit creates a connection to the database func DatabaseInit(dbName, connectionstring string) { databaseName = dbName connectionString = connectionstring + dbName session, err = mgo.Dial(connectionString) if err != nil { panic(err) } }
Multiple reports have confirmed that YG Entertainment is planning to hold BIGBANG’s concert in April, but clarified news on WINNER and iKON’s guest appearance. According to numerous reports from an anonymous source on March 19th, BIGBANG has scheduled their comeback concert from April 24th to 26th at the Olympic Gymna...
Outcomes of a pharmacist-led medication review programme for hospitalised elderly patients. INTRODUCTION Elderly patients are at risk of drug-related problems. This study aimed to determine whether a pharmacist-led medication review programme could reduce inappropriate medications and hospital readmissions among geria...
Revolutionary Constitutional Lawmaking in Germany—Rediscovering the German 1989 Revolution Abstract Today, the 1989 Revolution in East Germany is recognized and celebrated as the event that abolished the German Democratic Republic (GDR) and brought about German unification. What is mostly overlooked, however, is that ...
class ReplaySampler: """ A sampler that records the generated values and then can replay the same outputs in the same order. One of the most interesting use cases for `ReplaySampler` is in conjunction with context free or graph grammars, for generating complex objects. You can pass a sam...
#include<iostream> #include<string> #include<algorithm> using namespace std; string a; string b; int t; int main() { cin >> a; t = a.size(); int x = t/2; while (x--) b += '7'; x = t/2; while (x--) b += '4'; if (t % 2) { reverse(b.begin(), b.end()); cout << "4"<<b<<"7"; return 0; }...
<gh_stars>10-100 """ File: chapter07/optocoupler_test.py Control an Optocoupler from a GPIO Pin. Dependencies: pip3 install pigpio Built and tested with Python 3.7 on Raspberry Pi 4 Model B """ import pigpio from time import sleep GPIO_PIN = 21 pi = pigpio.pi() try: # Note: Circuit is wired...
<reponame>ZYMoridae/plato package com.jz.nebula.dao; import com.jz.nebula.entity.Vendor; import org.springframework.data.jpa.repository.JpaRepository; public interface VendorRepository extends JpaRepository<Vendor, Long> { }
def measured_amps(self): return self.measured_current / 1e6
def _create_bounds_colliders(self, map_data: dict, game: Game) -> None: game.entity_manager.add_entity(Collider(-constants.TILE_SIZE, 0, constants.TILE_SIZE, map_data["pixel_height"])) game.entity_manager.add_entity(Collider(0, -constants.TILE_SIZE, ...
/** * Update pid & wait status of @ptracer's wait(2) for the given * @ptracee. This function returns -errno if an error occurred, 0 if * the wait syscall will be restarted (ie. the event is discarded), * otherwise @ptracee's pid. */ static int update_wait_status(Tracee *ptracer, Tracee *ptracee) { word_t address...
/** * HPI function saHpiResourcePowerStateGet() * * See also the description of the function inside the specification or header file. * Get the power state of a resource. * * @todo it fits better to implement it in class NewSimulatorResource * * @param res pointer on NewSimulatorResource to be used * @para...
Hyundai A-League's 10 greatest games of 2017: No.1 – Nine-goal thriller in the west Here it is! We’ve reached number 1 in the greatest games of 2017. And this was an absolute beauty between Perth Glory and Melbourne City in the final regular season game of the 2016/17 Season. There was extra incentive for Glory ahead...
<filename>src/test/ui/issues/issue-18464.rs<gh_stars>1000+ // run-pass #![deny(dead_code)] const LOW_RANGE: char = '0'; const HIGH_RANGE: char = '9'; fn main() { match '5' { LOW_RANGE..=HIGH_RANGE => (), _ => () }; }
/** * Helper class for JAXB binding. * Responsible for marshalling and unmarshalling using given schema and context. * @author loomchild */ public class Bind { private Marshaller marshaller; private Unmarshaller unmarshaller; /** * Creates Bind. * @param context JAXB context * @param schema XML schema ...
package manifest var wrapperTemplate = `#!/bin/sh if [ -f ~/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then source ~/.gpg-agent-info export GPG_AGENT_INFO else eval $(gpg-agent --daemon) fi export PATH="$PATH:/usr/local/bin" # required on MacOS/brew export GPG_TTY="$(tty)" %s jsonapi listen exit $?` // Defau...