content
stringlengths
10
4.9M
<reponame>apcs-assignments-fall2020/s00-shuffle-magiccoder890 public class MyMain { // Shuffles an array, using the perfect shuffle algorithm public static int[] perfectShuffle(int[] arr) { int[] mylist = new int[arr.length]; int start = 0; for (int i = 0; i < arr.length; i++){ ...
/** * Pokes the given url with the given JSON data. */ public class HttpPoker { private static final String TAG = "HttpPoker"; private String mUrl; public HttpPoker(String url) { mUrl = url; } public HttpResponse doPut(JSONObject json) { return doPut(json.toString()); ...
package io.kuo.tahoe; import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; import io.kuo.support.jersey.JsonObjectMapperProvider; import io.kuo.support.jersey.filter.CORSResponseFilter; import org.glassfish.jersey.filter.LoggingFilter; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish...
/** * @author Pierre Sutra */ public class Utils { private static Random rand = new Random(System.currentTimeMillis()); public static final long YEAR_IN_MS = 365L * 24L * 60L * 60L * 1000L; public static Employee createEmployee(int i) { Employee employee = Employee.newBuilder().build(); employee.setSs...
/* * Copyright 2014 <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...
<reponame>rstyro/AQS-demo package top.lrshuai.aqs.semaphore; import top.lrshuai.aqs.commons.ThreadPool; import java.util.Vector; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Semaphore; import java.util.concurrent.ThreadPoolExecutor; public class SemaphoreDemo { public static void main(...
/** * This factory is used to test if a string is a valid JSON string. * <p>No actual object is created by this factory.</p> * * @ibm-api */ public class JsonEmptyFactory implements JsonFactory { public static final JsonEmptyFactory instance = new JsonEmptyFactory(); public boolean supportFeature(int featur...
/** * Returns the immediate mode of the component. * <p> * Since Vaadin 8, the default mode is immediate. * * @return true if the component is in immediate mode (explicitly or * implicitly set), false if the component if not in immediate mode */ public boolean isImmediate() { ...
We all saw “Free Willy,” we all loved “Free Willy.” But what happened to the real Willy? In a tragic, confounding dose of irony, Keiko, the whale-actor who played Willy, was languising in a marine park in Mexico after filming. He was underweight, covered in skin lesions, suffering a drooping dorsal fin and predicted to...
package utils import ( "github.com/magiconair/properties/assert" "testing" ) func TestSnakeString(t *testing.T) { assert.Equal(t, "snake_string", SnakeString("SnakeString")) } func TestCamelString(t *testing.T) { assert.Equal(t, "SnakeString", CamelString("snake_string")) }
<gh_stars>0 /* * The MIT License * * Copyright (c) 2018-2022, qinglangtech Ltd * * 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 ...
<reponame>PrabhuLoganathan/Collection-of-Python-Scripts import twitter import json import re # replace 'default' with twitter user user = 'default' # path to json file with your twitter credentials (see https://python-twitter.readthedocs.io/en/latest/) creds = 'creds.json' file_name = 'tweets.txt' def init_twitter()...
/** * @author Jose Molina Colmenero */ public class LaunchFS { public static void main(String[] args) throws FuseException { if (args.length < 2) { System.err.println("Please specify url of the repository " + "and the mount point"); } String repoUrl = args[...
import { expect } from 'chai' import { Scanner } from '../../../src/parser/scanner/Scanner' import { TokenKind } from '../../../src/parser/tokens' import { token } from '../utils' export function keywords () { it('keywords', () => { const keywords: [TokenKind, string][] = [ [TokenKind.FUNCTION, 'function']...
<filename>realbrowserlocusts/core.py # pylint:disable=too-few-public-methods """ Core Selenium wrapping functionality """ import time from selenium.webdriver.support.ui import WebDriverWait from locust import events from locust.exception import StopUser def wrap_for_locust(request_type, name, func, *args, **kwargs): ...
/** * Parameters definitions for Elasticsearch. */ public class ElasticsearchParameters { /** * Elasticsearch server host. */ private String host; /** * Elasticsearch server port. */ private int port; /** * Elasticsearch server scheme. * Optional. If not provided, defaults to http. *...
/** * Converts a 4-byte array into an int32 * * @param src Source array * @param byteOrder Byte order * @return Integer result */ public static int byteToInt(byte[] src, ByteOrder byteOrder) { if (src.length != 4) { throw new IllegalArgumentException("Attempted to...
/* * Compares one file path to another. */ int osys_path_cmp(const char *path1, const char *path2) { #if defined OSYS_DOS_OS2 return stricmp(path1, path2); #elif defined OSYS_WINDOWS return lstrcmpiA(path1, path2); #elif OSYS_PATH_ICASE return strcasecmp(path1, path2); #else return strcmp(path1, p...
<filename>test/Benchmarking/CrossPlatform/src/ntakl.java // NTAKL -- The TAKeuchi function using lists as counters, // rewriting the boolean expression as statements. class Pair { // A Java compiler ought to generate inline code for these. public static Pair cons (int n, Pair y) { return new Pair(n, y); } pub...
While toddling through Shawlands this week, I chanced across the Labour's Glasgow South candidate, Tom Harris, campaigning outside the local Co-op. Having politely explained that I wasn't with him in this election, I took the opportunity to ask him about a letter which has been circulating in the constituency, inviting...
/** * @author Max Bechtold * */ public class FunctionTest extends XQueryBaseTest { private DBCompileChain chain = new DBCompileChain(metaDataMgr, tx); @Test public void createPathIdxTestOneArg() throws QueryException { Sequence result = new XQuery(chain, "bdb:create-path-index('test.xml')").exec...
n = input() cards = map(int, raw_input().split()) pos = {} for i in xrange(n): card = cards[i] pos[card] = pos.get(card, []) + [i+1] cards.sort() for i in xrange(n/2): first = cards.pop(0) last = cards.pop() print pos[first].pop(0), pos[last].pop(0) if first in pos and len(pos[first]) == 0: ...
def log_contains_count(self, msg, logfile=None, ignore_case=False): is_regexp = isinstance(msg, REGEXP_TYPE) counter = 0 if ignore_case: msg = msg.lower() if logfile is None: logfile = self.beat_name + "-" + self.today + ".ndjson" print("logfile", logfile,...
High nitrogen atom yield downstream of an atmospheric pressure flowing Ar-N2 microwave discharge A large yield of nitrogen atoms can be achieved at atmospheric pressure, from an Ar-N2 surface-wave-induced microwave discharge with half the microwave power needed with a pure N2 discharge. The dissociation of N2 molecule...
def func_lookup(type='device', action='list'): if action == 'query': func = action else: func = '_'.join((type, action)) try: return func_map[func]() except: print('Error: invalid argument combination: -t {}, -a {}'.format( arguments['type'], arguments['acti...
/** * The download state should trigger changes in the UI --- it may be useful * to show the state as being indeterminate at times. This sample can be * considered a guideline. */ @Override public void onDownloadStateChanged(int newState) { if (mState != newState) { mState = new...
AT&T, Whose Ex-CEO Promised To Wreck Net Neutrality, Insists It Won't Do Anything To Net Neutrality from the yeah,-nice-try dept AT&T is the latest big broadband player to try to suggest that everyone just calm down a little about this whole thing where the FCC destroys net neutrality. And, sure, some of the reports ...
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 ...
package main import ( "bufio" "flag" "fmt" "log" "os" "regexp" "strings" ) var ( getURL = flag.Bool("c", false, "get novel url to a file.") getNovel = flag.Bool("n", false, "get novel content from files.") modNovel = flag.Bool("m", false, "modify novel title.") ) func main() { chapterURL := config.URL +...
import { ICommandHandlerRegister, ICommandService } from "./command"; import { CommandHandlerRegister } from "./command/model/CommandHandlerRegister"; import { CommandService } from "./command/model/CommandService"; import { IEventHandlerRegister, IEventService } from "./event"; import { StandardEventHandlerRegister } ...
// used in place of assert.Equal(t, want, actual) to avoid failures due to // scheduler.lastAdvanced timestamp inequalities. func checkSameScheduler(t *testing.T, want *scheduler, actual *scheduler) { assert.Equal(t, want.initHeight, actual.initHeight) assert.Equal(t, want.height, actual.height) assert.Equal(t, want...
// NewHandler creates an sdk.Handler for all bitcoin type messages func NewHandler(k types.BTCKeeper, v types.Voter, signer types.Signer, n types.Nexus, snapshotter types.Snapshotter) sdk.Handler { server := keeper.NewMsgServerImpl(k, signer, n, v, snapshotter) h := func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, er...
package com.general.service; import com.general.dto.ErrorDTO; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class ApplicationServiceImpl implements ApplicationService { //postApplication public ErrorDTO submitTopicAppli...
<reponame>johnhenry/std export default (path: string, append: boolean = false) => (data: string) => Deno.writeTextFileSync(path, data, { append });
/** * R905 [Element] Connect Specification */ public void connect_spec(Token id) { FortranTree id_Node = new FortranTree(0, "NULL"); FortranTree connect_spec_Node = new FortranTree(905, "ConnSpec"); if (id != null) id_Node = new FortranTree("ConnID", getCToken(id)); connect_spec_Node.addChild(id_Node); ...
/** * Batch delete dictionary data * * @param ids the data to be deleted * @return result */ @Override public int deleteDictDataByIds(String ids) { int row = dictDataMapper.deleteDictDataByIds(Convert.toStrArray(ids)); if (row > 0) { DictUtils.clearDictCache(); } return row; }
<filename>receiver.go<gh_stars>1-10 package opinionatedevents import "fmt" type OnMessageHandler func(msg *Message) error type Receiver struct { onMessage map[string]OnMessageHandler } func (r *Receiver) Receive(data []byte) error { msg, err := ParseMessage(data) if err != nil { return err } if onMessageHan...
def categoriesCountPlot(self): for folder in self.classes: path = os.path.join(self.dataset_dir ,self.data_dir, folder) count = len(os.listdir(path)) self.class_counts[folder] = count print("Counts per each category") for key in self.class_counts.keys(): print(f"Category {key}: {self...
/******************************************************************************* * tests/sort_parallel_mergesort_test.cpp * * String sorting test program * * Part of tlx - http://panthema.net/tlx * * Copyright (C) 2014-2018 <NAME> <<EMAIL>> * * All rights reserved. Published under the Boost Software License, V...
Collins Need to Know? Kama Sutra Dr J Rogiere Contents Cover Title Page Introduction Getting in the Mood Kama Sutra Positions Tantra and You Tantra and the Single Person Pleasure Enhancers Sharing Kama Sutra Sex Safer Sex Glossary of terms Need to Know More? Searchable Terms _Co...
/** * Subscription on guava BUS. * * @param youTubeVideoAdded * new video added */ @Subscribe public void onYouTubeVideoCreation(Video youTubeVideoAdded) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("[NewVideoEvent] Processing for video {} ", youTubeVideoAdded.getV...
<gh_stars>1-10 import { TestData } from '../pages/testdata'; import { Panel } from '../pages/panel'; import { Graph } from '../pages/graph'; import { componentFactory } from '../support'; import { Dashboard } from '../pages/dashboard'; export const Components = { DataSource: { TestData, }, Panels: { Pane...
/** * * @author Le Nhut Nam */ public class ServerMainForm extends javax.swing.JFrame { // Properties SimpleDateFormat simpleDateFormat = new SimpleDateFormat("hh:mm:ss a"); Thread thread; ServerThread serverThread; /** Chat List **/ public Vector socketList = new Vector(); public Vect...
//! ## Memory Layout //! //! ```ignore //! +-------+-------------+------------+--------------+---------------+----------+ //! | ... | Dynamic (1) | Static (2) | FP (3) (i32) | Constant Pool | Heap ... | //! o-------o-------------o------------+--------------o---------------o----------+ //! | | ...
// handler for the main page func homeHandler(response http.ResponseWriter, request *http.Request) { response.Header().Set("Content-type", "text/html") webpage, err := ioutil.ReadFile("home.html") if err != nil { http.Error(response, fmt.Sprintf("home.html file error %v", err), 500) } fmt.Fprint(response, string...
/** * Pushes the queued client ops into the unacked ops, clearing the queued ops. * @return see {@link #unackedClientOps()} */ public List<M> pushQueuedOpsToUnacked() { Preconditions.checkState(unackedClientOps.isEmpty(), "Queue contains unacknowledged operations: %s", unackedClientOps); unacke...
<reponame>Eric-Arellano/rust<filename>src/test/ui/issues/issue-8709.rs // run-pass macro_rules! sty { ($t:ty) => (stringify!($t)) } macro_rules! spath { ($t:path) => (stringify!($t)) } fn main() { assert_eq!(sty!(isize), "isize"); assert_eq!(spath!(std::option), "std::option"); }
Autologous chondrocyte implantation versus matrix-induced autologous chondrocyte implantation for osteochondral defects of the knee: a prospective, randomised study. Autologous chondrocyte implantation (ACI) is used widely as a treatment for symptomatic chondral and osteochondral defects of the knee. Variations of the...
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+100; struct node{ ll s,x; node(ll xx,ll yy){ s=xx;x=yy; } }; ll n,S; vector<node> a,b; ll sum1=0,sum2=0,sum=0; bool cmp(node p,node q){ return p.x<q.x; } bool check(){ ll x1=sum1/S,x2=sum...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.oastem.frc.pid; import org.oastem.frc.pid.PIDGainOutput; import edu.wpi.first.wpilibj.PIDOutput; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.Victor; import org.oastem.frc.ascent.Rob...
Story highlights Joe Biden met with black clergy in South Carolina on Tuesday Biden to ministers: "This is not your father's Republican Party" South Carolina is an early presidential primary state Washington (CNN) Vice President Joe Biden, in a closed-door meeting with black clergy in South Carolina on Tuesday, refe...
<reponame>tusharchoudhary0003/Custom-Football-Game package com.mopub.nativeads; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.mopub.common.Preconditions; import com.mopub.common.VisibleForTesting; import java.util.WeakHashMap; p...
/** * TestNodeDispatcherService is ... * * @author Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a> */ public class TestNodeDispatcherService extends AbstractBaseTest { private static final String PROJ_NAME = "TestNodeDispatcherService"; private File resourcesfile; private ...
"""Testes para as rotas de users""" def test_get_users(client_users_with_one_user): """Testando a rota get_users""" url = "/api/users/" response = client_users_with_one_user.get(url=url) assert response.status_code == 200 assert isinstance(response.json(), dict) assert isinstance(response.j...
def media_images_height_max(self): return self._media_images_height_max
<reponame>superxuzj/eqimManeger package com.boliangshenghe.eqim.common.datasource; import com.alibaba.cobar.client.transaction.MultipleDataSourcesTransactionManager; public class MultiDataSourceTransactionManager extends MultipleDataSourcesTransactionManager { /** * */ private static final long ser...
def ensure_security_groups(req_context, brickconfig): g_id = [] exists = False sec_groups = opencrack.api_request( 'compute', req_context.auth_token, req_context.tenant_id, '/os-security-groups', method='GET' ).json() for group in sec_groups['security_groups']: if group['name...
/** * Agency recruitment service. * * @author swindle */ public class AgencyRecruitmentServiceImpl implements RecruitmentService { /* (non-Javadoc) * @see net.swindle.springdemo.service.RecruitmentService#recruitEmployees(java.lang.String, * java.lang.String, int) */ @Override public Stri...
package parser import ( "errors" "github.com/graphql-go/graphql" "github.com/graphql-go/graphql/language/ast" ) type namedDefintion interface { ast.Definition GetName() *ast.Name } func customDefinition(p *Parser, d ast.Definition) (gt graphql.Type, err error) { t, ok := d.(namedDefintion) if !ok { return ...
<gh_stars>0 /** * Copyright (C) 2019, <NAME>. * All right reserved. * @author xiongfa.li * @version V1.0 * Description: */ package generator import ( "fmt" "github.com/xfali/gobatis-cmd/pkg/common" "github.com/xfali/gobatis-cmd/pkg/config" "github.com/xfali/gobatis-cmd/pkg/io" "strings" ) ...
<filename>config.go package jccclient import ( "io/ioutil" "os" "gopkg.in/yaml.v2" ) // ClientConfig - type ClientConfig struct { ServAddr string Token string Tags []string } // Config - config type Config struct { //------------------------------------------------------------------ // clients Clie...
dic={} for i in range(100002): dic[i]=0 input() for n in map(int,input().split()): dic[n]+=1 m=0 for i in range(0,100000): m=max(m,dic[i]+dic[i+1]+dic[i+2]) print(m)
<reponame>Pandaaaa906/product_spider<filename>product_spider/spiders/bdg_spider.py import re from string import ascii_lowercase from more_itertools import first from scrapy import Request from product_spider.items import RawData from product_spider.utils.spider_mixin import BaseSpider p_cas = re.compile(r'\d+-\d{2}...
def run_ice(number, env, ref=False): name = "IceXI" description = "Ice XI 8 molecules DZP diagonalisation" grid_cutoff = 80.0 xc = "PBE" kpts = [9,9,9] basis = {'H' : {'file' : 'H_DZP_v323_PBE.ion'}, 'O' : {'file' : 'O_DZP_v323_PBE.ion'}} env.set_nprocs(4) cell = [4.137266, 7.298682, 6.740787...
class WizardBreakableContext: """ Context that can be broken by a 'Break' expression. """ @abstractmethod def break_(self) -> WizardInterpreterContext: """ Called when a 'Break' instruction is encountered, should usually return the parent. Returns: The ...
/** * Process notification of character data received from the body of * an XML element. * * @param buffer The characters from the XML document * @param start Starting offset into the buffer * @param length Number of characters from the buffer * * @throws SAXException if a parsin...
def artist(self, artist_id: str) -> dict: artist_id = _get_id("artist", artist_id) return self._get("artists/" + artist_id)
/** * Adds a <modules><module name=deployment.${moduleName}/></modules> to the cacheManager in the server configFile * in case it does not exist. */ public static void addCacheManagerModuleDep(File configFile, String moduleName) throws Exception { Document doc = buildDoc(configFile); Node...
#include <stdio.h> #define ROUND 4 /* 小数点以下第ROUND位を四捨五入 */ /*--- 四捨五入 ---*/ double round(double num) { int i, cmp; for (i = 0; i < ROUND; i++) /* 四捨五入する値を1の位にもってくる */ num *= 10; cmp = (int)num; /* int型にキャストしたものをcmpに代入 */ while (cmp > 10) /* 一桁の数にして */ cmp %= 10; if (cmp >= 5) /* その値が5より大きけ...
/** * Configures the stateTimer's actionPerformed event and delay. * The stateTimer is set to not repeat and have 500ms delay. * When the timer triggers it will find all matches on the board, * then update and start the timer again. Once there are no more matches, * the game state is swapped ba...
#pragma once #include <string> #include "clock.h" #include "channel.h" class TimeSlave { private: Clock _clock; Channel *_channel; std::string _name; public: TimeSlave(std::string name, int hours, int minutes, int seconds, bool monotone); void set_clock_speed(int speed) { _clock.set_clock_speed_offs...
/** * A collection of task groups, where a task group is a collection of tasks that are known to be * equal in the way they schedule. This is expected to be tasks associated with the same job key, * who also have {@code equal()} {@link ITaskConfig} values. * <p> * This is used to prevent redundant work in trying t...
/* * ArrayReference.cpp * * Created on: 2020/02/15 * Author: iizuka */ #include "instance/instance_array/ArrayReference.h" #include "instance/instance_array/VmArrayInstance.h" #include "instance/AbstractVmInstance.h" #include "instance/VmInstanceTypesConst.h" #include "instance/instance_gc/GcManager.h" #...
Engineers at Nasa’s Jet Propulsion Laboratory (JPL) in Pasadena, California, have the ultimate iPhone app. But it’s not something you will find in the App Store. With a few taps on the screen, I can send a replica of Nasa’s Curiosity rover trundling - at a slow walking pace - across the rocky terrain of JPL’s outdoor t...
/** * This is the milk-standard extension to <code>EventObject</code>. It adds * type and argument fields, a <code>sendTo()</code> method, and a couple * other goodies. * * @author Dan Bornstein, danfuzz@milk.com * @author Copyright 1999 Dan Bornstein, all rights reserved. */ abstract public class BaseEvent ext...
// // TCP*Sockets. // Note that these will TCP*Socket::open() will *use* its existing file descriptor, // on the theory that the caller may have prepared it specially (e.g. to make it nonblocking). // void TCPClientSocket::open(const IPSockAddress &peer, int fdFlags) { prepare(fdFlags, AF_INET, SOCK_STREAM); co...
/** * Measure the distance between two comments. * @param mutComment * @param testTargetComment * @return double * @date 2020/4/22 1:36 PM * @author sunweisong */ public static double measureDistanceBetweenTwoComments(String mutComment , String testTargetComment) { ...
Collision identification between convex polyhedra using neural networks Collision identification between convex polyhedra is a major research focus in computer-aided manufacturing and path planning for robots. This paper presents a collision-identification neural network (CINN) to identify possible collisions between ...
import * as statistics from '../util/statistics'; import { RowData } from '../helper'; export interface AggregateParams { as: string[]; fields?: string[]; groupBy?: string | string[]; op: Array<keyof typeof statistics>; } export declare function aggregate(rows: RowData[], options: AggregateParams): RowD...
<reponame>crccheck/atx-bandc # Generated by Django 3.0.2 on 2020-01-19 03:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("agenda", "0003_auto_20160124_1941"), ] operations = [ migrations.AlterField( model_name="document",...
/** * Configure a new tape loading it from console user input. * * @throws IOException Signals that an I/O exception has occurred. */ public void configureTape(String white) throws IOException { if (tape == null) throw new NullPointerException("tape is null"); tape.clear(); System.out.print("Add a ne...
package jei.collections2; public interface Bag<T> { void add(T value); }
<filename>src/shims/panic.rs<gh_stars>0 //! Panic runtime for Miri. //! //! The core pieces of the runtime are: //! - An implementation of `__rust_maybe_catch_panic` that pushes the invoked stack frame with //! some extra metadata derived from the panic-catching arguments of `__rust_maybe_catch_panic`. //! - A hack i...
/// this method is called in one pass over all drawables after finish frame void antialias::after_finish(cgv::render::context& ctx) { if (multi_pass_ignore_finish(ctx)) return; glReadBuffer(GL_BACK); glAccum(GL_ACCUM, 1.0f/nr_samples); if (multi_pass_terminate(ctx)) { glAccum(GL_RETURN, 1.0f); restore_view(c...
package fi.kapsi.kosmik.javamididecoder; import fi.kapsi.kosmik.javamididecoder.MidiMetaM.MidiChannelPrefixM; import fi.kapsi.kosmik.javamididecoder.MidiMetaM.MidiEndOfTrackM; import fi.kapsi.kosmik.javamididecoder.MidiMetaM.MidiKeySignatureM; import fi.kapsi.kosmik.javamididecoder.MidiMetaM.MidiMetaMVisitor; import f...
/** * This is a subclas of PGgeometry that uses hex encoded EWKB to communicate * with the backend, which is much more efficient, but only works with Lwgeom * enabled PostGIS (1.0.0 and up). */ public class PGgeometryLW extends PGgeometry { /* JDK 1.5 Serialization */ private static final long serialVersion...
'The more things change…': Barriers to community services utilisation in Queensland Community services are central to the lives of many elderly Australians or Australians with disabilities if they are to remain in the community. Over the past two decades, significant advances have been made in policy and associated pr...
The Impact of Level of Education, Teaching Experience and Gender on Professionalism and Performance: The Case Study of Universitas Muhammadiyah Palembang’s Academic Teaching Staffs This study investigates the impact of education level, teaching experience and gender on professionalism and performance of academic teach...
// -*- C++ -*- // // Package: SimMuon/MCTruth // Class: MuonToTrackingParticleAssociatorEDProducer // /**\class MuonToTrackingParticleAssociatorEDProducer MuonToTrackingParticleAssociatorEDProducer.cc SimMuon/MCTruth/plugins/MuonToTrackingParticleAssociatorEDProducer.cc Description: [one line class summary]...
Orf in Britain. law courts. By the time that stage is reached the recollection of the caller may have been blurred (as may that of the doctor) so that the service committee or judge has to decide which of two conflicting accounts to believe as to the precise questions asked by the doctor, the information given to him,...
/** * Implementation of a class Random to generate random int, double, pair * or vector * * The methode "getInstance" is used to initialize the instance of * class Random, the methode "getDouble" is used to generate a double * randomly,the methode "getInt" is used to generate an int between * ]"a", "b"[randomly,...
def is_defun(fn): return isinstance( fn, ( function._DefinedFunction, function._OverloadedFunction ))
use std::env; use std::process::Command; use std::fs::File; use std::path::Path; #[cfg(target_os = "windows")] const PYTHON: &'static str = "python"; #[cfg(not(target_os = "windows"))] const PYTHON: &'static str = "python3"; fn main() { let decoders = [ "src/cpu/arm.decoder", "src/cpu/thumb.decod...
# -*- coding:utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
/* Copyright (c) 2021 PaddlePaddle Authors. 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. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
<gh_stars>0 #!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import subprocess import sys def exe(*args): if os.name == 'posix': cmd = 'gpsbabel' flags = 0 else: assert(os.name == 'nt') cmd = 'C:\Program Files (x86)\GPSBabel\gpsbabel.exe' flags = subprocess.CREA...
<reponame>parthw/funCoding<filename>react/burger-builder/src/components/Burger/BuildControls/BuildControl/BuildControl.tsx<gh_stars>1-10 import React from "react"; import styles from "./BuildControl.module.css"; type BuildControlType = { label: string; addIngredient: React.MouseEventHandler; removeIngredient: Re...
def run_connector(self, in_opts=None): opts = in_opts or self.get_connector_opts() conn = connector.Connector(opts) container = proton.reactor.Container(conn) container.run() return conn.get_messages()
/** * Randomly pick an object from an array of objects. * @param <T> generic type of the array elements. * @param objects an array of objects, one of whom is to be picked. * @param probabilities the probabilities of selecting each of the objects. * @return a random element from ...
/** * @author Spencer Gibb */ @RunWith(SpringRunner.class) @SpringBootTest(properties = { "spring.application.name=testConsulLoadBalancer", "spring.cloud.consul.discovery.prefer-ip-address=true", "spring.cloud.consul.discovery.tags=foo=bar", }, webEnvironment = RANDOM_PORT) public class ConsulLoadbalancerClient...