content
stringlengths
10
4.9M
// prepare block for the step ticker, called everytime the block changes // this is done during planning so does not delay tick generation and step ticker can simply grab the next block during the interrupt void Block::prepare() { float inv = 1.0F / this->steps_event_count; for (uint8_t m = 0; m < n_actuators; ...
<reponame>SorcererX/SepiaStream #include <sepia/comm/observer.h> #include <sepia/util/threadobject.h> #include "commtester_messages.pb.h" class ReceiveTester : public sepia::comm::Observer< commtester_msgs::Test > , public sepia::util::ThreadObject { public: ReceiveTester(); ~ReceiveTester(); Recei...
use crate::{ convert::{ToPyObject, TryFromObject}, object::{AsObject, PyObjectRef, PyResult}, VirtualMachine, }; #[derive(result_like::OptionLike)] pub enum PyArithmeticValue<T> { Implemented(T), NotImplemented, } impl PyArithmeticValue<PyObjectRef> { pub fn from_object(vm: &VirtualMachine, ob...
#include<bits/stdc++.h> #define pi pair<int,int> #define mk make_pair #define N 1000005 using namespace std;pi d[N]; int n,Q,x,y,kk,opt,p[N],sz[N],dep[N],rel[N],top[N],head[N],tmppp[N],father[N],heavyson[N]; struct Tree{int nxt,to;}e[N]; inline void link(int x,int y){e[++kk].nxt=head[x];e[kk].to=y;head[x]=kk;} ...
/*NewCdpClient create plugin */ func NewCdpClient(ctx *core.PluginCtx, initJson []byte) *core.PluginBase { o := new(PluginCdpClient) fastjson.Unmarshal(initJson, &o.init) o.InitPluginBase(ctx, o) o.RegisterEvents(ctx, cdpEvents, o) nsplg := o.Ns.PluginCtx.GetOrCreate(CDP_PLUG) o.cdpNsPlug = nsplg.Ext...
<reponame>brennanxyz/Deep-Lynx /* * DataStagingStorage encompasses all logic dealing with the manipulation of the * data_staging table in storage. Note that records should be inserted manually * with caution. There are database triggers and other automated processes in place * for taking data from the imports table and...
Joint Base Station Cooperative Transmission and ON-OFF Mechanism in Internet of Things Networks The ultra-dense networks in the fifth generation of wireless networks (5G) guarantee a high-speed transmission of data for the internet of things networks. The decreased cell radius can improve the received signal strength,...
def run_init(self): inputs = self.ctx.inputs inputs.settings['ONLY_INITIALIZATION'] = True inputs.options = update_mapping(inputs['options'], get_default_options()) process = PwCalculation.process() inputs = self._prepare_process_inputs(process, inputs) running = self.sub...
<reponame>i386x/abcdoc # -*- coding: utf-8 -*- #! \file ~/doit_doc_template/builders.py #! \author <NAME>, <<EMAIL> AT <EMAIL>> #! \stamp 2018-08-26 14:39:35 +0200 #! \project DoIt! Doc: Sphinx Extension for DoIt! Documentation #! \license MIT #! \version Se...
/** * Utilities for working with {@link SummaryConfusionMatrix}es. In particular, to build a {@link * SummaryConfusionMatrix}, use {@link #builder()}. * * <p>Other useful things: computing F-measures ({@link #FMeasureVsAllOthers(SummaryConfusionMatrix, * Symbol)}) and pretty-printing ({@link #prettyPrint(SummaryCo...
def __get_trim_iters( self, tolerance: float = 0.1, max_trim: float = 0.5, max_iters: int = 7, show_progress: bool = False, **smoother_kwargs: Any, ) -> List[DataFrame]: eigs = np.copy(self._untrimmed) trim_iters = [TrimIter(eigs, eigs, tolerance, **sm...
from luigi import Parameter, WrapperTask from tasks.meta import OBSColumn, current_session from tasks.tags import SectionTags, SubsectionTags, LicenseTags, UnitTags from tasks.us.epa.huc import HUCColumns, SourceTags, HUC from tasks.util import (DownloadUnzipTask, shell, ColumnsTask, TableTask, ...
# -*- coding: utf-8 -*- # Authors: <NAME> <<EMAIL>> import unittest from .. import SingleElementinaSortedArray class test_SingleElementinaSortedArray(unittest.TestCase): solution = SingleElementinaSortedArray.Solution() def test_singleNonDuplicate(self): self.assertEqual(self.solution.singleNonDup...
// --- Viem model converter functions --- func (c *EntryController) createListViewModel(userContract *model.UserContract, workSummary *model.WorkSummary, pageNum int, cnt int, entries []*model.Entry, entryTypesMap map[int]*model.EntryType, entryActivitiesMap map[int]*model.EntryActivity) *vm. ListEntries { lesvm :=...
Survival benefit of solid-organ transplant in the United States. IMPORTANCE The field of transplantation has made tremendous progress since the first successful kidney transplant in 1954. OBJECTIVE To determine the survival benefit of solid-organ transplant as recorded during a 25-year study period in the United Net...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Derived Parameters ------------------ The engineering archive has pseudo-MSIDs that are derived via computation from telemetry MSIDs. All derived parameter names begin with the characters "DP_" (not case sensitive as usual). Otherwise there is no di...
// Invoked when device is mounted (configured) void tuh_mount_cb (uint8_t daddr) { printf("Device attached, address = %d\r\n", daddr); tuh_descriptor_get_device(daddr, &desc_device, 18, print_device_descriptor, 0); }
import time from dataclasses import dataclass from typing import List, Iterable, Optional import numpy as np from numpy import log, exp, log10 @dataclass class TrialGrid: """Stores trial grid parameters""" size: int period_min: float period_max: float @dataclass class Result: """ Stores fit re...
/** * * @author Hishan Kavishka */ public class SQlConnection { String sourceURL = null; public SQlConnection() { try { // Load JDBC driver Class.forName("com.mysql.jdbc.Driver"); // Connection URL. //sourceURL = new String("jdbc:mysql://localhost:330...
#include <bits/stdc++.h> #define ll long long #define llu unsigned long long #define ui unsigned int #define MAX(a, b, c) max(a, max(b, c)) #define MIN(a, b, c) min(a, min(b, c)) #define FOR(from, n) for (int i = from; i < n; ++i) #define FORJ(from, n) for (int j = from; j < n; ++j) #define FORR(from, to) for (int i =...
// readFileInfo applies build constraints to an input file and returns whether // it should be compiled. func readFileInfo(bctx build.Context, input string) (fileInfo, error) { fi := fileInfo{filename: input} if ext := filepath.Ext(input); ext == ".C" { fi.ext = cxxExt } else { switch strings.ToLower(ext) { ca...
/** * Command for listing available variables. */ public class ShowKeys extends AbstractCommand<VoidResult> { public ShowKeys() { super("keys", VoidResult.class); } @Override public String getDescription() { return "Returns the available variable names that can be set in the session....
Contextualising institutional complementarity. How long‐term unemployment depends on employment protection legislation, active labour market policies and the economic climate This study investigated if and how active labour market policies (ALMPs) and employment protection interact with each other in light of long‐ter...
import gym import gym_sokoban from algorithms.sarsa import run_sarsa from algorithms.montecarlo import run_montecarlo from algorithms.qlearning import run_qlearning from sokoban_utils.policy import run_policy from sokoban_utils.utils import * from sokoban_utils.global_configs import GlobalConfigs import numpy as np en...
/** * The CreateKeyTransferResponse contains either key Transfer attributes * or any faults that prevented the application key transfer. * * @author rbhat */ @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class KeyTransferResponse extends AbstractResponse { private String status; private String oper...
/** * Test of startGame method, of class PebbleGame. * Tests the startGame method with 100 players. */ @Test(timeout=10000) public void testStartGameHundredPlayer() { setUp(100); ecm1414_ca.PebbleGame pg = new ecm1414_ca.PebbleGame(this.players, this.pebbleValues); pg.start...
N = int(input()) s = [] for _ in range(N): s.append(int(input())) s = sorted(s) ans = sum(s) i = 0 #print(s) while ans % 10 == 0: ans = sum(s) #print(i) ans -= s[i] i += 1 if i >= N: ans = 0 break print(ans)
/** * Post processor implementation for registration of all found annotated methods inside collector. * * @param <T> annotation type * @author Vyacheslav Rusakov * @since 27.11.2018 */ public class SimpleAnnotationProcessor<T extends Annotation> implements MethodPostProcessor<T> { private final MethodsCollec...
/** * Remove the given <code>row</code> from the table. * * @param row */ public void removeRow(OutputRow row) { if (row.getPair() instanceof DiagnosticPair) { mDiagnosticRows.remove(row); } else { mCommandRows.remove(row); } updateAdapter(); ...
The media's insatiable desire to sensationalize stories has resulted in a lot of misinformation around bitcoin. For business owners who aren't properly educated, this misinformation – understandably – leaves them with inaccurate opinions, and the reality of bitcoin is left somewhere behind. Those who understand bitcoi...
// TODO: this looping code can be combined into a single loop function that accepts an additional // function argument. In Fein's case it would be Feis and in Fynd's case it would be Tail. func Fein(arg string) (*big.Int, error) { v, ok := big.NewInt(0).SetString(arg, 10) if !ok { return nil, fmt.Errorf(ugi.ErrInva...
import torch import torch.utils.data import torchvision.transforms as transforms import Datasets import numpy as np import os import scipy.io as sio def extract_features_MARS(model, scale_image_size, info_folder, data, extract_features_folder, logger, batch_size=128, workers=4, is_tencrop=False): logger.info('Be...
/* * Copyright (c) 2011 Research In Motion Limited. * * 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 app...
The Need for Cultural Competency in Health Care. PURPOSE To highlight the importance of cultural competency education in health care and in the medical imaging industry. METHODS A comprehensive search of the Education Resource Information Center and MEDLINE databases was conducted to acquire full-text and peer-revie...
<filename>plugins/homekit/src/types/lock.ts import { Lock, LockState, ScryptedDevice, ScryptedDeviceType, ScryptedInterface } from '@scrypted/sdk'; import { addSupportedType, bindCharacteristic, DummyDevice, HomeKitSession } from '../common'; import { Characteristic, CharacteristicEventTypes, CharacteristicSetCallback,...
// NOTE: this is not name length. This is length of whole entry int entry_length (struct item_head * ih, struct reiserfs_de_head * deh, int pos_in_item) { if (pos_in_item) return (deh_location (deh - 1) - deh_location (deh)); return (ih_item_len (ih) - deh_location (deh)); }
<filename>nets/dilated.py """ Code reproduced from: https://github.com/divelab/dilated/blob/master/dilated.py Texas A&M DIVELab """ import tensorflow as tf import numpy as np import six import sys """ This script provides different 2d dilated convolutions. I appreciate ideas for a more efficient implementation of t...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
def _resetState(self) -> None: while self.serverClient.receive(): pass self.serverClient._buffer = b'' self.serverClient._decodedBuffer = "" self._roomId = "" self._turn = 0
Abstract 2749: Defining structure activity relationships for GPCR engagement and anti-cancer efficacy of imipridone small molecules G protein-coupled receptors (GPCRs) represent the most widely exploited superfamily of drug targets for FDA-approved therapies for many diseases, however, these receptors are underexploit...
/** * The base class for all common exception.<br/> * <p> * </p> * * @author * @version 28-May-2016 */ public class ServiceException extends Exception { /** * default exception id. */ public static final String DEFAULT_ID = "framwork.remote.SystemError"; /** * Serial number. */ ...
import { useEffect, useRef } from 'react'; import gsap from 'gsap'; const useSlideUp = (element: string, duration: number) => { useEffect(() => { gsap.fromTo( element, { opacity: 0, yPercent: 200, }, { opacity: 1, yPercent: 0, ease: 'back.out(1)', ...
def refreshCredentialsUI(self): self.credentialsCollapsibleButton.collapsed = self.isUserLogged self.mainCollapsibleButton.collapsed = not self.isUserLogged self.rememberCredentialsCheckBox.visible = self.loginButton.visible = not self.isUserLogged self.logoutButton.visible = not self.isUser...
package test import ( "fmt" "main/internal/stgo" "main/internal/tforgo" "testing" ) func TestMain(t *testing.T) { fmt.Println("Test for package Main") tforgo.Tmain() stgo.Smain() }
The Greek state secretary for industry in the run-up to its debt crisis, who supervised a 5.5bn euro recession loan plan, has an MBA from a bogus university, Channel 4 News reveals. George Anastasopoulos, the state secretary for communications and later industry between 2007-2009, widely cites his MBA qualification fr...
//////////////////////////////////////////////////////////////////// // Function: BitArray::read_datagram // Access: Public // Description: Reads the object that was previously written to a Bam // file. //////////////////////////////////////////////////////////////////// void BitArray:: read_da...
On April 2, a wildcat strike broke out in a metalworks in Chorzow, Poland. Tomorrow police and private security will try to violently break it. On April 2, a few hundred metalworkers at Huta Batory ironworkers started a wildcat strike against planned reductions and the use of temporary workers on trash contracts. The ...
def flag_clipped(ref_p, tile_p): tile_clip = np.where(tile_p >= rfe_clip) ref_p[tile_clip] = np.nan tile_p[tile_clip] = np.nan return (ref_p, tile_p)
/** * Created by zhangbing on 16/6/20. */ public abstract class BaseServletWithSession extends HttpServlet{ private static final Logger LOG = LoggerFactory.getLogger(BaseServletWithSession.class); @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, I...
/* * Copyright 2003-2020 JetBrains s.r.o. * * 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 agre...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import React, { Fragment, useRef, useState, useCallback, useEffect, useMemo } from 'react'; import formatMessage from 'format-message'; import { PrimaryButton, DefaultButton } from '@fluentui/react/lib/Button'; import { Stack, StackItem } from ...
use diesel::sql_types::{Array, Date, Double, Interval, Text, Timestamp}; sql_function!(#[aggregate] fn array_agg<T>(x: T) -> Array<T>); sql_function!(fn canon_crate_name(x: Text) -> Text); sql_function!(fn to_char(a: Date, b: Text) -> Text); sql_function!(fn lower(x: Text) -> Text); sql_function!(fn date_part(x: Text,...
<reponame>Tasemo/intellij-community import lombok.Singular; import java.util.Set; @lombok.experimental.SuperBuilder public class SingularSet<T> { @Singular private Set rawTypes; @Singular private Set<Integer> integers; @Singular private Set<T> generics; @Singular private Set<? extends Number> extendsGenerics; }
#include <stdio.h> #include "header.h" int main() { int v[20]; int n; printf("Numarul de elemente : "); scanf("%d",&n); citire(v,n); printf("Vectorul este: "); afisare(v,n); printf("\n minimul: %d",minim(v,n)); printf("\n maximul: %d",maxim(v,n)); printf("\n media aritmetica: %.2f",aritmetica(v,n)); printf("...
/// Returns if an priority update will be issued pub fn maybe_update_priority(&mut self, priority: Priority) -> bool { if priority == self.priority { false } else { self.priority = priority; true } }
// // Copyright © 2018 Aljabr, Inc. // // 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 ...
. The differential-diagnostic importance of some ECG criteria and results of orthoclinostatic test in distinguishing functional form organic extrasystolic arrhythmias in childhood is appraised. Among the electrocardiographic indices the coupling interval is of great importance in differential diagnosis. Left-ventricul...
<filename>src/include/public/SLA.h #ifndef SLA_H_INCLUDED #define SLA_H_INCLUDED #include "SLAStdint.h" /* バージョン文字列 */ #define SLA_VERSION_STRING "1.0.0" /* フォーマットバージョン */ #define SLA_FORMAT_VERSION 1 /* ヘッダのサイズ */ #define SLA_HEADER_SIZE 43 /* ブロックヘッダのサイズ */ #define SLA_BLOCK_HEADER_SIZE ...
pub mod bgp; pub mod error; pub use error::MyBgpError; pub use error::MyError;
def upload_file(f): name, ext = os.path.splitext(f.name) name = "%s%s" % (str(uuid.uuid4()), ext) path = date.today().strftime("%Y") filepath = os.path.join(settings.MEDIA_ROOT, path) if not os.path.exists(filepath): os.makedirs(filepath) filepath = os.path.join(filepath, name) with ...
<filename>tools/mailer/src/generators/index.ts import { generateReleaseMailText } from './release/generateReleaseMailText'; export const mailGenerators = { release: generateReleaseMailText, };
from clustviz.clarans import compute_cost_clarans import pandas as pd def test_compute_cost_clarans(): X = pd.DataFrame([[1, 1], [6, 5], [6, 6]]) assert compute_cost_clarans(X, [0, 2]) == (1.0, {0: [0], 2: [1, 2]})
package math func SatoshisToXBT(sats int) (xbts float64) { fSats := float64(sats) return fSats / 100000000 }
async def generate_async(self, args): raise NotImplementedError('generate method is required')
1 of 1 2 of 1 The mayor’s Vision Vancouver party has named its youngest candidate in its history to run in the October 14 council by-election. Diego Cardona is just 21 years old but already has a long life story. He moved to Vancouver in 2005 with his mother and younger sister. They arrived as refugees from Colombia ...
/* Monitor MQTT topic, produce on the queue when receiving one */ public void run() { int qos = 2; try { client = new MqttClient(broker, clientId); MqttConnectOptions connOpts = new MqttConnectOptions(); connOpts.setCleanSession(true); client....
package listadoble; public class DobleLista { private NodoDoble inicio; private NodoDoble fin; //************************************************************************************************************** //Constructor Por defecto inicializa la Lista public DobleLista () { inic...
<reponame>saumyasingh048/hacktoberithms def sum_all(num_list): num_list = sorted(num_list) diff = num_list[1] - num_list[0] count = 0 while diff > num_list[0] and diff > 0: count += diff diff -= 1 return num_list[0] + num_list[1] + count print(sum_all([1, 4]))
/// Tries to create a GridIndex with the given value. /// A value in the range of [0, 8] will return a valid GridIndex. /// A value outside of that range will return a TooBigIndex error. pub const fn try_new(value: u8) -> Result<Self, TooBigIndex> { if value < 9 { Ok(GridIndex(value)) } else...
// NewHashed returns a new instance of KeyMutex which hashes arbitrary keys to // a fixed set of locks. `n` specifies number of locks, if n <= 0, we use // number of cpus. // Note that because it uses fixed set of locks, different keys may share same // lock, so it's possible to wait on same lock. func NewHashed(n int)...
<gh_stars>0 import { getRandStr, TCromwellBlockData, TCromwellBlockProps, TGallerySettings } from '@cromwell/core'; import clsx from 'clsx'; import { ButtonBack, ButtonNext, CarouselContext, CarouselInjectedProps, CarouselProvider, CarouselStoreInterface, DotGroup, Image as CarouselImage...
/** * Created by Ridiculous on 2016/7/14. */ @Controller public class pageAction { @RequestMapping("payAction") public ModelAndView pageAction(HttpServletRequest request) { ModelAndView view = new ModelAndView(); int index = Integer.parseInt(request.getParameter("index")); String titl...
// Hash computes a (non-cryptographic) hash. This hash is the same for all permutations of edges func (e *Edges) Hash() uint64 { if e.hash != nil { return *e.hash } var output uint64 e.hashMux.Lock() if e.hash == nil { for i := range e.Slice() { h := fnv.New64a() bs := make([]byte, 8) binary.LittleEn...
Kabul, Afghanistan (CNN) -- Afghanistan's interior minister and director of national security have resigned in the wake of an attack on a high-level peace conference last week, a spokesman for President Hamid Karzai said Sunday. Karzai demanded an explanation of the security breach from Interior Minister Hanif Atmar a...
import { Alert, Button, Card, CardBody, CardFooter, CardHeader, Input, } from '@retail-ui/core' import { useSession } from 'next-auth/client' import React, { useState } from 'react' import AccessDeniedIndicator from '@/components/AccessDeniedIndicator' import { useInsertFeedMutation } from '@/generated/g...
def done(self, done_options=""): self.__log("done %s" % (self.property("initialized"))) if not self.isOpen(): return -1 opts = _utils.tomap(done_options) timeout = 10000000 if "timeout" in opts: timeout = int(opts["timeout"]) timeout *= 1E-6 if property("initializ...
/** * This XML output returns a complete representation of the differences. * * <p>It is a bit more verbose than the default output, but can be used to produce both input XML. * * @author Christophe LAuret * @version 0.9.0 * @since 0.9.0 */ public final class CompleteXMLDiffOutput extends XMLDiffOutputBase impl...
<filename>tools/federation/src/main/java/org/eclipse/rdf4j/federated/evaluation/iterator/GroupedCheckConversionIteration.java /******************************************************************************* * Copyright (c) 2019 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying mater...
/** * Commands representing the General Authenticate commands in gemSpec_COS#14.7.2 */ public class GeneralAuthenticateCommand extends AbstractHealthCardCommand { private static final Logger LOG = LoggerFactory.getLogger(GeneralAuthenticateCommand.class); private static final int CLA_COMMAND_CHAINING = 0x10...
/* * Generate a test signal and compute the theoretical FFT. * * The test signal is specified by |signal_type|, and the test signal * is saved in |x| with the corresponding FFT in |fft|. The size of * the test signal is |size|. |signalValue| is desired the amplitude * of the test signal. * * If |real_only| is...
def hilbert_envelope(signal): signal = np.asarray(signal) N_orig = signal.shape[-1] N = next_pow_2(N_orig) y_h = hilbert(signal, N) return np.abs(y_h[..., :N_orig])
Thanks to two fast-acting teenagers, Monty the service dog is back on the job. His owner, Sue Anderson, shared the story with CTV Ottawa. "There's so many stories you hear about bad choices teenagers make," Anderson said, "that you don't hear of good choices they're making and this was one of the good choices." For ...
#include "sha1.hpp" #include <cstdio> #include <cstring> #include <iostream> int main() { Digest::SHA1 sha1; char str[] = "Hello World"; sha1.update(str, strlen(str)); const uint8_t *msgDigest = sha1.digest(); for (int i = 0; i < 20; ++i) { printf("%02x", (uint32_t)msgDigest[i]); } std::cout << std::...
/** * Used with operators require list of elements, * such as {@link Operator#$in} and {@link Operator#$nin} */ public static Expression of(String field, Operator operator, Temporal... values) { return new ListExpression(field, operator, Arrays.stream(values).map(Object::toStri...
<reponame>latticework/proto-goquiles-server-todo<gh_stars>0 package api import ( "errors" "net/http" "net/url" "os" "github.com/latticework/proto-goquiles-server-todo/goquilessvr/command" ) var ( errRedirect = errors.New("redirect") ) type Config struct { Address string HttpClient *http.Client } func Defau...
// Copyright 2020 <NAME> // Distributed under the Boost license, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See https://github.com/danielaparker/jsoncons for latest version #ifndef JSONCONS_JSONSCHEMA_KEYWORD_VALIDATOR_FACTORY_HPP #define JSONCONS_JSONSC...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeApplications #-} -- | -- Main module for running the interpreter module Main where import Control.Monad ( void ) import Data.Interpreter ( runProgram ) import Data.List ( isSuffixOf ) import Data.Machine ( initialize ) import Data.Proxy ...
def check_import_of_config(physical_line, logical_line, filename): excluded_files = ["./rally/common/cfg.py"] forbidden_imports = ["from oslo_config", "import oslo_config"] if filename not in excluded_files: for forbidden_import in forbidden_imports: if logical_l...
"""Native adapter for serving CherryPy via mod_python Basic usage: ########################################## # Application in a module called myapp.py ########################################## import cherrypy class Root: @cherrypy.expose def index(self): return 'Hi there, Ho there, Hey there' # ...
<gh_stars>0 #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}.transformer; import org.apache.log4j.Logger; import org.finra.datagenerator.consumer.DataPipe; import org.finra.datagenerator.consumer.DataTransformer; import java.util.Map; import java.util.Random; p...
/************************************************************************** * make_cs1_contiguous() - for es2 and above remap cs1 behind cs0 to allow * command line mem=xyz use all memory with out discontinuous support * compiled in. Could do it at the ATAG, but there really is two banks... * Called as part of 2...
package lesson; /** * Created by igor on 19.07.2015. */ public class SimpleEvents { public static void main(String[] args) { PrintReport printReport = new PrintReport(); printReport.addEventListener( new PrintEvent() { @Override ...
/*----------------------------------------------------------------------------- Talking BIOS device driver for the AT&T PC6300. Copyright (C) <NAME> 1987 This software may be freely used and distributed for any non-profit purpose. *----------------------------------------------------------------------------- */ ...
#include <bits/stdc++.h> #define FOR(i, u, v) for (int i = u; i <= v; i++) #define ll long long #define pii pair<ll, ll> #define mp make_pair #define F first #define S second #define PB push_back #define N 105 using namespace std; int n, a[N]; int main() { ios_base::sync_with_stdio(0); cin.tie(0)...
<filename>base/solution/SolutionGroupMetaData.cpp /* * File: SolutionGroupMetaData.cpp * */ #include "SolutionGroupMetaData.h" #include <time.h> #include <sys/time.h> using namespace khe; using sgmd = SolutionGroupMetaData; sgmd::SolutionGroupMetaData(const std::string &contrib, const std::string &pdate, cons...
/******************************************************************************* * Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1...
/** * Handles the {@link ClientRequestAdapter}. This method should be called when new client * request is created. * * @param <C> * type of carrier adapter is providing * @param requestAdapter * {@link ClientRequestAdapter} providing necessary information. * @return Created span ...
/** * Deletes all invalid Files from the HDD and the cache. */ private void cleanup(){ Iterator<Map.Entry<String, Long>> it = uploadIds.entrySet().iterator(); while (it.hasNext()){ Map.Entry<String, Long> entry = it.next(); if(!isTimestampValid(entry.getValue())){ ...
<gh_stars>1-10 package com.zheng.user.dao.model; import java.io.Serializable; public class VerifyCode implements Serializable { private Integer verifyId; private String phone; private String code; private Long createTime; /** * 更新时间,如使用或者激活时间 * * @mbg.generated */ priva...
Formatting may be lacking as a result. If this article is un-readable please report it so that we may fix it. Posted on June 28, 2011, CJ Miozzi Diggity on eSports: StarCraft 2, League of Legends, NASL Finals (Interview) With Europe’s DreamHack setting records for the world’s largest LAN festival, and South Korea’s t...