content
stringlengths
10
4.9M
def align(self, z, origin=0., dx=0., dy=0., retries=2, wait=False, timeout=5.0): logger.debug("Rotating point {} on the detector axis about point {}" "".format(z, origin)) model = Stand.model(self) model_fixed = StandPoint((model.detector.position.x, ...
/* Note: dealing with floating-point values is tricky; not sure if * we can really use equality tests here... JDK does have decent * conversions though, to retain accuracy and round-trippability. * But still... */ public void testFloat() throws Exception { double[] values = new double[] ...
/// Create Instance of OpenGL Texture without data /// @param width width of texture /// @param height height of texture OpenGLTexture::OpenGLTexture(uint32_t width, uint32_t height) : m_Width(width), m_Height(height), m_InternalFormat(GL_RG16F), m_DataFormat(GL_RG) { PROFILE(); IK_CORE_INFO("Creating Open GL T...
<filename>src/inversify.config.ts import { Container, interfaces } from 'inversify'; import * as socketio from 'socket.io'; import * as socketioJwt from 'socketio-jwt'; import * as winston from 'winston'; import { Application } from './app/application'; import { Logger } from './app/logger/logger'; import { IoSocket } ...
def abort_not_exist(_id, _type): abort(404, message="{} {} does not exist. Please try again with a different {}".format(_type, _id, _type))
<gh_stars>1-10 class BLAKE2s { private h : number[]; // hash state private t0 : number; // counter private t1 : number; private f0 : number; // finalization flags private f1 : number; private x : number[]; // buffer for unprocessed data private nx : number; // number of by...
/* * v2d_multiply() * Multiplies a vector by a scalar */ v2d_t v2d_multiply(v2d_t u, float h) { v2d_t v = { h * u.x , h * u.y }; return v; }
Solid lipid nanoparticles: a possible vehicle for zinc oxide and octocrylene. An efficient sunscreen formulation shows good absorption in the relevant UV range. Efficacy also means that the UV absorber must be easily incorporated in any kind of formulation. In this study, a chemical absorber, octocrylene, and one of t...
/* * Copyright 2014-2019 Logo Business Solutions * (a.k.a. LOGO YAZILIM SAN. VE TIC. A.S) * * 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....
/* * Prints the given String in the logging area * @param {JTextArea} log - the log to print to * @param {String} str - the message to print */ private void addLogText(JTextArea log, String str) { String newLine = (log.getText().isEmpty()) ? "" : "\n"; log.setText(log.getText() +...
<gh_stars>10-100 #include "podofo/base/PdfArray.h" #include "podofo/base/PdfCompilerCompat.h" #include "podofo/base/PdfDefines.h" #include "podofo/base/PdfEncoding.h" #include "podofo/base/PdfObject.h" #include "podofo/base/PdfString.h" #include "podofo/base/PdfVariant.h" #include "podofo/doc/PdfFontMetrics.h" #include...
The effects of exposure to physical environmental stressors on African American children: A review and research agenda Although exposure to physical environmental stressors poses risks for all human beings, African Americans, and particularly African American children, are disproportionately exposed to such stressors....
Israeli security forces have kept steady contacts with the Syrian rebels over the past 18 months, mainly treating wounded fighters but possibly supplying them with arms, UN observers at the Israeli-Syrian border reported. In a series of reports to the UN Security Council by the United Nations Disengagement Observer Fo...
// FIXME: Alias should be a feature that is easily turned off. private static String resolveAlias(final String detectorName) throws IOException { String name = detectorName; for (int i = 0;; i++) { String alias = aliases.getProperty(name); if (alias == null) { bre...
/** * Tests that when a {@link PCollectionView} is actually available in a * {@link DataflowSideInputReader}, the read succeeds and has the right size. */ @Test public void testDataflowSideInputReaderFilteredRead() throws Exception { assertTrue(defaultSideInputReader.contains(DEFAULT_LENGTH_VIEW)); S...
/** * @author Oleg Ilyenko */ public class ScumdNamespaceHandler extends NamespaceHandlerSupport { public static final String GIT_SSH_SERVER_ELEM = "git-ssh-server"; public static final String SIMPLE_USER_DAO_ELEM = "simple-user-dao"; public static final String ACL_ELEM = "acl"; public static ...
def example_create_building(): from teaser.project import Project prj = Project(load_data=True) prj.name = "BuildingExample" from teaser.logic.buildingobjects.building import Building bldg = Building(parent=prj) bldg.name = "SuperExampleBuilding" bldg.street_name = "AwesomeAvenue42" bldg...
def _add_files_user_as_dedicated(archive, host, process_control): _add_config_info(host, archive, with_version=True) scion_config.create_gen(host, archive, process_control) _add_vpn_client_configs(host, archive) _add_vpn_server_config(host, archive) archive.add("README.md", _hostfiles_path("README_d...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // Automatically generated from modules_success/NATIVE_MODULE_WITH_WITH_ALIASES.flow.js // (/react-native/packages/react-native-codegen/src/parsers/flow/modules/__test_fixtures__/fixtures.js) import {TurboModule} from 'react-native-tscodegen-t...
/** * A convenience class used in the REST API to POST a new group Member Trigger. * <p> * A group-level condition uses dataId tokens for the dataIds defined in the condition. The group members * must then replace the tokens with actual dataIds. For example, we may define a group ThresholdCondition like * ( $Sys...
def list_package(self, label, arch, distro, repo_ids=None): cmd = "repoquery -q -a " params = self._build_params(arch, distro, repo_ids) cmd += params + label proc = komand.helper.exec_command(cmd) if proc["rcode"] != 0 or proc["stdout"] == "": self.logger.error("List...
<reponame>gcherian/reladomo /* Copyright 2016 <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...
// DeleteVoteByPostIdHandle handle delete a Vote but postId func DeleteVoteByPostIdHandle(db interface{}) func(server.Request) (handler.Response, error) { return func(req server.Request) (handler.Response, error) { postId := req.GetParamByName("postId") if postId == "" { errorMessage := fmt.Sprintf("Post Id is ...
/** * @author Andrew Woods * Date: Mar 28, 2010 */ public class SecurityAdviceTest { private SecurityAdvice securityAdvice; private Securable securable; private SecurityContextUtil securityContextUtil; private Method method; @Before public void setUp() throws NoSuchMethodException { ...
Grass-fed beef is becoming a more recognizable term when shopping for meat. But there’s some confusion between the definitions grass-fed and grass-finished. If grass-fed beef describes meat from cattle that ate grass, what does the term “grass-finished” mean? Don’t they both mean the same thing? Not quite.Simply put, g...
// newLinkObject creates a fs.Object that represents a link a google docs drive.File func (f *Fs) newLinkObject(remote string, info *drive.File, extension, exportMimeType string) (fs.Object, error) { t := linkTemplate(exportMimeType) if t == nil { return nil, errors.Errorf("unsupported link type %s", exportMimeType...
<filename>Uva/11518.cpp #include <iostream> #include <algorithm> #include <string> #include <queue> #include <vector> using namespace std; typedef long long LL; int main() { ios_base::sync_with_stdio(0); int t, n, m, l, a, b, fk; cin>>t; for(int gg=1;gg<=t;++gg) { bool chk[10010]; in...
def bio(name): path = 'https://littlesis.org/api/entities/search?q={}'.format(name) response = requests.get(path) response = response.json() ID = response['data'][0]['id'] path2 = 'https://littlesis.org/api/entities/{}'.format(ID) response2 = requests.get(path2) response2 = response2.json()...
The broadband industry's fight against net neutrality rules is also targeting new privacy regulations that Internet service providers really don't want to follow. The new privacy rules haven't even been formulated yet. When the Federal Communications Commission reclassified broadband providers as common carriers in or...
<reponame>LucasHelal/data-science import numpy as np # Create an array arr = np.arange(5) # Saving array on disk in binary format (file extension .npy) np.save('my_array', arr) # Change arr arr = np.arange(10) # Lets see the original saved copy np.load('my_array.npy') # Saving multiple arrays into a zip file np.sa...
package com.github.jitwxs.addax.core.verify.impl; import com.github.jitwxs.addax.common.enums.GatherEnum; import com.github.jitwxs.addax.core.verify.VerifyInstance; import com.github.jitwxs.addax.core.verify.comp.BaseComp; import com.github.jitwxs.addax.provider.ConvertProvider; import com.github.jitwxs.addax.provider...
package org.mtc.pattern.abstractfactory.drawer; import java.awt.Color; import org.mtc.pattern.abstractfactory.UIDrawer; import org.mtc.pattern.abstractfactory.drawer.drawerdo.UIDrawerDo; /** * 红色主题的UI的绘制器,实现工厂之一 */ public class RedUIDrawer implements UIDrawer { private UIDrawerDo _drawer = new UIDrawerDo(); @...
/** * Test tabled calls with aliased local vars in the call. */ public void testTabled7() { doTest("[r1: (?a q ?b) <- (?a p ?b)]" + "[r2: (?a q ?a) <- (?a s ?a)]" + "[r2: (?a r ?z) <- (?a q ?a)]", new Node[] { }, new Triple[] { ...
#include<bits/stdc++.h> #define rep(i,a,n) for(int i=a;i<n;i++) #define pb push_back #define ll long long using namespace std; int main() { int n,x,y,count=0; cin>>n>>x>>y; int a[n]; rep(i,0,n)cin>>a[i]; rep(i,0,n) {count=0; int j = 1; while(j<=x) { ...
. INTRODUCTION While an individual sleeps, the pneumotaxic nerve centres take over control of the breathing, instead of those that perform this function during the waking state. The respiratory disorder during sleep commonly known as sleep apnea, refers to the alterations in the breathing pattern in sleep which, when ...
Suzanne Regier purchased the Oldsmobile Coupe new in 1948 after the death of her husband. Relatives think she drove the car only once, to get her first driver�s license. After that, she would walk to the courthouse to renew the license. It was her grandchildren who put the 47,000 miles on the car, and it�s said it re...
/** * Spin through all object actions of the service adapter, and add to the provided List of {@link LogicalServiceAction}s. */ private static void collateServiceActions(final ObjectAdapter serviceAdapter, ActionType actionType, List<LogicalServiceAction> serviceActions) { final ObjectSpecification se...
# _S = input() # T = input() # _S = list("?tc????") # T = list("coder") # _S = list("??p??d??") # T = list("abc") _S = list(input()) T = list(input()) def calculate(_S,T): _sl = len(_S) tl = len(T) result = [] for startIndex in range(0,_sl - tl + 1): isOk = True for j in range(tl)...
/** * Test a race condition when updating the JMX cache (HADOOP-12482): * 1. Thread A reads the JMX metric every 2 JMX cache TTL. It marks the JMX * cache to be updated by marking lastRecs to null. After this it adds a * new key to the metrics. The next call to read should pick up this new * key...
import sys from collections import Counter sys.setrecursionlimit(10**6) n=int(input()) a=[int(i) for i in input().split()] b=[] for i in range(n): b.append(a[i]) b.append(a[i]+1) b.append(a[i]-1) c = Counter(b).most_common(1) print(c[0][1])
/* Code decompiled incorrectly, please refer to instructions dump. */ public final /* synthetic */ void mo23856a(java.io.OutputStream r10, java.lang.Object r11) throws java.io.IOException { /* r9 = this; com.flurry.sdk.e r11 = (com.flurry.sdk.C7510e) r11 if (r10 == 0) goto L_...
/** * Removes the character array from the list used for entry validation. * @param characters the character array */ public void removeCharacters (Character[] characters) { for (int i = 0; i < characters.length; i++) { removeCharacter(characters[i]); } }
{-# OPTIONS_GHC -O2 -optc-O3 -optc-ffast-math -funfolding-use-threshold=16 -fexcess-precision -funbox-strict-fields #-} module Main where import qualified Data.ByteString.Char8 as B import Data.Array.Unboxed import Control.Monad main = do B.getLine as <- fmap readInts B.getLine bs <- fmap readInts B.g...
<reponame>AIandSocialGoodLab/FeatureDeceptionGame<gh_stars>0 from nn import NN import numpy as np import torch import copy class LearnNN: def __init__(self, game, numData): self.n = game.n self.K = game.K self.K2 = game.K2 self.K3 = game.K3 self.seed = game.seed self...
<reponame>snwallet/rust-b2b2c use chrono::prelude::*; use crypto::digest::Digest; use crypto::md5::Md5; // #[allow(dead_code)] pub fn get_timestamp() -> i64 { let dt = Local::now(); dt.timestamp() } pub fn md5<S:Into<String>>(input: S) -> String { let mut md5 = Md5::new(); md5.input_str(&input.into...
import sys n=int(input()) s=sys.stdin.read() s=s.split('\n') s.remove(s[len(s)-1]) x=0 for i in s: ch=[int(j) for j in i.split()] x=ch[0]%ch[1] if x==0: print(0) else: print(ch[1]-x)
<filename>hellosign_test.go package hellosign import ( "log" "net/http" "os" "testing" "github.com/dnaeon/go-vcr/cassette" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" ) func TestCreateEmbeddedSignatureRequestSuccess(t *testing.T) { // Start our recorder vcr := fixture("fixtures/...
<gh_stars>1-10 import { html, customElement, property, LitElement } from '@lion/core'; import { SdkConfigAccess } from '../../../helpers/config_access'; import { format } from '../../../helpers/formatters/'; // NOTE: you need to import ANY component you may render. import '../Operator'; // import the component's styl...
// ServeHTTP implements the http.Handler interface for a HttpServe func (h *httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if hookHandler != nil { hookHandler(w, r) } var controllerName, actionName string pathInfo := strings.Split(strings.Trim(r.URL.Path, "/"), "/") if len(pathInfo) > 0 { con...
<gh_stars>0 {-# LANGUAGE ScopedTypeVariables, ViewPatterns #-} -- | Eliminate common subexpressions by keeping a hashmap of terms to -- binding sites and recursively deduplicating each one-valued let. module Core.Optimise.CommonExpElim (csePass) where import qualified Data.HashMap.Strict as Map import qualified Data.V...
Crystal structures of recombinant histones HMfA and HMfB from the hyperthermophilic archaeon Methanothermus fervidus. The hyperthermophilic archaeon Methanothermus fervidus contains two small basic proteins, HMfA (68 amino acid residues) and HMfB (69 residues) that share a common ancestry with the eukaryal nucleosome ...
def application(): web_app = threading.Thread(name="Web App", target=thread_flask_app) web_app.setDaemon(True) web_app.start() url = "http://" + HOST + ":" + str(PORT) if not is_server_running(TIMEOUT, url): raise RuntimeError("time out %d seconds, server not up" % TIMEOUT) yield url
//1636. Sort Array by Increasing Frequency private static int[] frequencySort(int[] nums){ int[] cnts=new int[201]; for (int n: nums){ cnts[n+100]++; } for (int i=0;i<nums.length;i++){ nums[i]=201*cnts[nums[i]+100]-nums[i]+100; } Arrays.sort(nums);...
/** * Test of getLearningRate method, of class FactorizationMachineStochasticGradient. */ @Test public void testGetLearningRate() { this.testSetLearningRate(); }
<filename>sep2018/maven/eg4_jpa_sandbox/demo/src/main/java/net/codetojoy/models/Value.java package net.codetojoy.models; import javax.persistence.*; import java.io.Serializable; @Entity @Table(name="value") public class Value implements Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) ...
/** * the class of the combo items * @author ITRIS, Jordi SUC */ protected class ComboItem{ /** * the value and the label of the combo item */ private String value="", label=""; /** * the constructor of the class * @param value the value of the combo item */ private ComboItem(String v...
Incidence of hepatic hamartomas in tuberous sclerosis. Hepatic hamartomas were thought to be a rare finding in patients with tuberous sclerosis. The purpose of this study was to assess their incidence in children with tuberous sclerosis and to review the literature. During 1984-90 we examined 51 children by ultrasonog...
/// If the operator's precedence is less than that of the /// operators at the top of the stack or the precedences are equal /// and the operator is left associative, then that operator is /// popped off the stack and added to the output fn should_pop(&self, top_operator: &Self) -> bool { if self.associativity(...
Get the biggest Everton FC stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email Everton FC boss Roberto Martinez is rumoured to be in France this week to secure a deal for Marseille winger Andre Ayew. The Spania...
// GetGetVoiceResult : Retrieve result of GetVoice operation func (textToSpeech *TextToSpeechV1) GetGetVoiceResult(response *core.DetailedResponse) *Voice { result, ok := response.Result.(*Voice) if ok { return result } return nil }
Influence of Kotodamaism on Japanese Journalism This study was conducted to investigate the way in which Japanese media is affected by ‘Kotodamaism’. Kotodamaism is a belief held by many Japanese people that words, sentences and conversations contain a spirit which can influence reality. While most Japanese people do ...
def timeseries(self, symbol: str, date_range: str, **kwargs) -> dict: return self.chart(symbol, date_range, **kwargs)
Share. The greatest heroes of two worlds are drawn into battle. The greatest heroes of two worlds are drawn into battle. DC has done a great job of tapping into He-Man nostalgia with their recent Masters of the Universe books. In hindsight, it was only a matter of time before Eternia's mightiest heroes crossed paths w...
package com.study.yang.lifehelper.model; import com.study.yang.lifehelper.contract.VoiceContract; /** * Created by Administrator on 2017/04/10 */ public class VoiceModelImpl implements VoiceContract.Model{ }
use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] pub struct LegPaymentScheduleGrp { /// NoLegPaymentSchedules #[serde(skip_serializing_if = "Option::is_none")] #[serde(rename = "40374")] pub leg_payment_schedules: Option<fix_common::RepeatingValues<LegPaymen...
<gh_stars>1-10 import gql from 'graphql-tag'; export const CelesteCourtConfigEntitiesQuery = gql` query courtConfigs($first: Int, $skip: Int) { courtConfigs(first: $first, skip: $skip) { id feeToken { id name symbol decimals } settleFee } } `; export...
package avro import ( "bytes" "math/rand" "testing" ) //this makes sure the given value remains the same after encoding and decoding const testTimes = 1000 func TestNullSerialization(t *testing.T) { buf := &bytes.Buffer{} NewBinaryEncoder(buf).WriteNull(nil) if decoded, err := NewBinaryDecoder(buf.Bytes()).Re...
import React, { FC, ComponentProps } from 'react'; import { Box } from '@chakra-ui/core'; const LI: FC<ComponentProps<typeof Box>> = props => { return <Box as="li" pb="4px" {...props} />; }; export default LI;
/** * Created by luis rafael on 20/05/19. */ @kotlin.Metadata(mv = {1, 1, 15}, bv = {1, 0, 3}, k = 1, d1 = {"\u0000\u00d6\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\...
// This is a helper function that takes a statement object and prints it in a // human-readable way. We specifically try to limit the length of the statement // to 80 characters so the entire statement is easily viewable in a terminal // environment. pub fn print_statement(stmt: &Statement) { match stmt { /...
/** * pop up window that will be used to display statistics calculated */ public class StatisticsWindow extends UiPart<Stage> { private static final String FXML = "StatisticsWindow.fxml"; private XYChart.Series<String, Number> axisSeries; @FXML private CategoryAxis xAxis; @FXML private NumberA...
// Info: This print method is used to remove unnecessary information (e.g. type) instead of JsonUtil.marshal(resp) private void printResponse(String responseType, ResponseEntity<?> resp) { Map<String, Object> message = new HashMap<>(); message.put("status", resp.getStatusCode()); message.put("he...
def test_django_admin(admin_client): resp = admin_client.get('/admin/testapp/post/add/') assert b'/static/trix/trix.css' in resp.content assert b'/static/trix/trix.js' in resp.content assert b'/static/trix/trix-django.js' in resp.content assert b'<trix-editor' in resp.content def test_template(...
def matches(self, filename, contents): for signature in [re.compile(s) for s in self.signatures]: if signature.search(filename): return True for line in contents.split('\n'): if signature.search(line): return True return False
<reponame>lalapapauhuh/Python<filename>Turtle/folha.py import turtle wn = turtle.Screen() wn.bgcolor('LightGrey') risco = turtle.Turtle() risco.color('DimGrey') risco.pensize(12) for size in range(1,31,1): risco.forward(size) risco.right(26) risco.left(160) risco.forward(50) ris...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Workrave(AutotoolsPackage): """Workrave is a program that assists in the recovery and prev...
/* a string or liest of strings test */ static int is_string_or_list_of_strings (PyObject *obj, const char *var, const char **values, int nvalues) { if (obj) { if (PyList_Check(obj)) { for (int i = 0; i < PyList_Size(obj); i ++) { PyObject *item = PyList_GetItem (obj, i); if (!is_a_stri...
Share this post @hypnotoaded Jolla Launcher's production & launch schedules have moved a bit, as we have some other cool stuff cooking up - more news soon! — Jolla (@JollaHQ) September 16, 2014 [Video] Jolla Launcher running on Moto X (Android 4.2.2 KitKat) Original Jolla-launcher by Jolla (Android 4.3 or later) 1...
Common sense would suggest the spread of technologies designed to pinpoint potential sex partners would make getting laid a whole lot easier. According to some estimates, the location-based dating app Tinder has around 50 million users, worldwide. A report conducted by the Pew Research Center finds that the online dati...
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { SharedService } from './../services/shared.service'; import { Card } from '../interfaces'; @Component({ selector: 'card-component', templateUrl: './card.component.html', host: {'(window:keydown)': 'hotkeys($event)'}, ...
Google hasn't provided a clear answer on whether Chromecast will eventually let users stream their own local videos and music to the TV screen. But if early updates for the $35 dongle are any indication, the company doesn't want third-party developers trying to deliver that functionality. The most recent Chromecast upd...
/** * Sends a message to the channel, determining who should be the recipent. * * @param sender * @param message */ @Override public void sendChatMessage(Chatter oSender, String message) { ArrayList<Chatter> recipents = ChatPlugin.getPlugin().getChatterManager().getChatters(); ...
package com.ettrema.http.caldav.demo; import com.bradmcevoy.common.Path; import com.bradmcevoy.http.Resource; import com.bradmcevoy.http.ResourceFactory; import com.bradmcevoy.http.values.HrefList; import java.util.Calendar; import java.util.List; /** * For iCal, start off by opening a calendar at * * ...
/** * Implements Korea Post Barcode. Input should consist of of a six-digit * number. A Modulo-10 check digit is calculated and added, and should not form * part of the input data. */ public class KoreaPost extends Symbol { String[] koreaTable = { "1313150613", "0713131313", "0417131313", "15061313...
def ndcg_score_at_k(ground_truth, predictions, k=5, pos_label=1, device='cpu'): dcg_at_k = dcg_score_at_k(ground_truth, predictions, k, pos_label, device) best_dcg_at_k = dcg_score_at_k(ground_truth, ground_truth, k, pos_label, device) dcg_at_k[(best_dcg_at_k == 0).nonzero()] = 0 best_dcg_at_k[(best_dcg...
A customer at the Modern Taco Company at Grant Park Shopping Centre brazenly stole a smartphone left on a table by manager Morgan Wowk on Sunday. What the woman didn’t know is that both the theft and the image of her taking it was caught on the restaurant’s surveillance camera. "Yeah, it sucks," Wowk said Wednesday. ...
// Called when the game starts or when spawned void AEtherealEnemyManager::BeginPlay() { Super::BeginPlay(); for (TActorIterator<AEtherealPlayerMaster> ActorItr(GetWorld()); ActorItr; ++ActorItr) { Player = *ActorItr; } }
<filename>test/GEOSTest.cpp #include "GEOS.h" #include "TestDefs.h" #include <geos/io/WKTReader.h> #include <geos/version.h> #include <regression/tframe.h> using namespace std; #if GEOS_VERSION_MAJOR == 3 #if GEOS_VERSION_MINOR < 7 geos::geom::GeometryFactory* factory = new geos::geom::GeometryFactory(); #define WKT...
// Executes all the cleanups added in LIFO order func (jirix *X) RunCleanup() { for _, fn := range jirix.cleanupFuncs { defer fn() } }
from build_sourcemap import build_source_map from modular_build import read_file import sys try: import simplejson as json except ImportError: import json if len(sys.argv) < 3: raise Exception('Usage: gensm.py source1.txt source2.txt ... generated.txt') source_files = sys.argv[1:-1] generated_file = sys....
<reponame>denisab85/dishes<gh_stars>0 package com.denisab85.dishes.repositories; import com.denisab85.dishes.entities.Dish; import com.denisab85.dishes.repositories.naturalid.NaturalRepository; public interface DishRepository extends NaturalRepository<Dish, String> { }
#ifndef BASIC_TEST_VAL_PARAMETER_H_ #define BASIC_TEST_VAL_PARAMETER_H_ #include "../type/Parameter.h" #include "../type/param/Element.h" #include <utility> #include <type_traits> namespace basic { namespace test { namespace val { template<typename... TArgs> class Parameter { public: Parameter(); Parameter(...
// Compara, com base no id, dois Objetos de Classes que extendam Pessoa @Override public int compareTo(Object o) { Pessoa p = (Pessoa) o; return this.getId() - p.getId(); }
Penicillinase-producing Neisseria gonorrhoeae isolated in Surabaya. Although penicillinase-producing strains of Neisseria gonorrhoeae (PPNG) were discovered in 1976 in neighbouring countries, not until 1980 were such strains isolated and identified in Indonesia. In that year PPNG were detected in three male patients w...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.util.Random; import java.util.StringTokenizer; public class A { public static void main(String[] args) { Scanner fs=new Scanner(System.in); int T=fs.nextInt(); for (int tt=...
<filename>vendor/github.com/terraform-providers/terraform-provider-random/random/resource_integer.go package random import ( "fmt" "strconv" "strings" "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) func resourceInteger() *schema.Resource { return &schema.Resource{ ...
/** * Returns a transformation context specific to the current action. Use this to create columns (see * {@link ActionContext#column(String, Function)} for more details. * * @param action The action to create the context for. * @param rowMetadata The {@link RowMetadata row description} when the...
package com.github.benignbeppe.smashupcompanion; import android.content.Context; import android.media.MediaPlayer; /** * Created by sebastian on 2015-11-28. */ public class Sound { public static void play(Context context, int id) { MediaPlayer mediaPlayer = MediaPlayer.create(context, id); media...
/** * Tests the getUserTweets method which gets the user's latest tweets from Twitter * @throws TwitterException * @throws ExecutionException * @throws InterruptedException * @author Group V4 */ @Test public void testgetUserTweets() throws TwitterException, ExecutionException, InterruptedException { List...
#!/usr/bin/env python n=int(raw_input()) s=raw_input() soldiers=s.split() height=[] maxi=0 mini=101 for k in soldiers: height.append(int(k)) last=len(height)-1 for i,k in enumerate(reversed(height)): if k>=maxi: maxi=k max_idx=last-i for j,k in enumerate(height): if k<=m...