content stringlengths 10 4.9M |
|---|
a = raw_input()
b = raw_input()
can_be_solved = True
aa = []
bb = []
for i in a.split(' '):
aa.append(int(i))
for i in b.split(' '):
bb.append(int(i))
av = aa[2]
while av < aa[1]:
if len(bb) == 0:
can_be_solved = False
break
maximum = max(bb)
bb.remove(maximum)... |
/// Free an existing allocation, return how much was removed, if any.
pub fn free_allocation(&mut self, process: ProcessUid, address: usize) -> Option<usize> {
// Before we reduce memory, let's check if we've previously hit a peak:
self.check_if_new_peak();
if let Some(removed) = self
... |
def parse_autxt(self):
self.autxtauids = dict()
for i, line in enumerate(self.autxtlines):
if '.reserved.' not in line:
continue
pluginid, dot, aukey = line.rpartition('.reserved.')[0].partition('org.lockss.au.')[2].partition('.')
auid = '%s&%s' % (plu... |
/**
* Created by rnkrsoft.com on 2019/9/19.
*/
public class Bopomofo4jTest {
@Test
public void testPinyin1() throws Exception {
{
String py = Bopomofo4j.pinyin("在这里输入你要转换的中文,然后点下面APM(Actions Per Minute)是一个在游戏领域常见的概念", ToneType.WITHOUT_TONE, null, null, null);
Assert.assertEqual... |
/*
* Copyright 2005-2021 the original author or 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
def read_uniprot(verbose,file,uniprot_to_transporters):
uniref_to_uniprot={}
try:
file_handle=gzip.open(file)
line=file_handle.readline()
except EnvironmentError:
sys.exit("Unable to read file: " + file)
count=0
while line:
data=line.rstrip().split(COLUMN_DELIMITER)
... |
// Validate ensures the CreateOrderMsg is valid
func (m CreateOrderMsg) Validate() error {
var errs error
errs = errors.AppendField(errs, "Metadata", m.Metadata.Validate())
errs = errors.AppendField(errs, "TraderID", m.Trader.Validate())
errs = errors.AppendField(errs, "OrderBookID", validateID(m.OrderBookID))
if ... |
'use strict';
import * as path from 'path';
import * as fsutils from './Utilities/FsUtils';
import * as os from 'os';
import * as dns from 'dns';
import { IConfig, RunMode } from './IConfig';
import { argv as clArgs } from 'yargs';
export let config: IConfig = undefined;
const configFilePath: string = path.resolve( '.... |
/**
this function should be called before the app. exits to stop
the service
*/
void NTService::Stop(void)
{
SetStatus(SERVICE_STOP_PENDING,NO_ERROR, 0, 1, 60000);
StopService();
SetStatus(SERVICE_STOPPED, NO_ERROR, 0, 1, 1000);
} |
// Print all successfully completed jobs
func printCompletedJobs(js []*libferry.Job) {
header := []string{
"Status",
"Completed",
"Duration",
"Execution time",
"Description",
}
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader(header)
table.SetBorder(false)
i := 0
for _, j := range js {
if i ... |
package main
import (
"github.com/chippydip/go-sc2ai/api"
"github.com/chippydip/go-sc2ai/botutil"
"github.com/chippydip/go-sc2ai/client"
"github.com/chippydip/go-sc2ai/runner"
)
func main() {
// Play a random map against a medium difficulty computer
runner.SetComputer(api.Race_Random, api.Difficulty_Medium, api... |
// NewGenerator create default implementation of `jobsolver.TCGenerator`
func NewGenerator() jobsolver.TCGenerator {
return &defaultGenerator{
sandbox: sandbox.New(),
compiler: compiler.New(),
}
} |
package com.codepath.rmulla.gridimagesearch.models;
import java.io.Serializable;
/**
* Created by rmulla on 9/24/15.
*/
public class ImageFilter implements Serializable{
public String imageSize;
public String colorFilter;
public String imageType;
public String siteFilter;
}
|
def _check_input_parameters(Hc, gamma, meta_classifier):
if not isinstance(Hc, (float, int)):
raise ValueError('Parameter Hc should be either a number. Currently Hc = {}'.format(type(Hc)))
if Hc < 0.5:
raise ValueError('Parameter Hc should be higher than 0.5. Currently Hc = {}'.f... |
def run(sniffer_instance=None, wait_time=0.5, clear=True, args=(),
debug=False):
if sniffer_instance is None:
sniffer_instance = ScentSniffer()
if debug:
scanner = Scanner(
sniffer_instance.watch_paths,
scent=sniffer_instance.scent, logger=sys.stdout)
else:
... |
/**
* The Film class is responsible for writing
* the final image of the ray tracer to a JPG file
* @author Abdullah Emad
* @version 1.0
*/
public class Film {
private BufferedImage image;
private int nCommited;
private boolean[][] pixelCommited;
private String outputFileName = "out.png";
/**
... |
// returns minimum capacity to hold
// size characters and count table
// entries, including alignment.
std::size_t
headers::
bytes_needed(
std::size_t size,
std::size_t count) noexcept
{
return align_up(size +
count * sizeof(
detail::fitem));
} |
<filename>src/utils/Assertion.ts
import { Assertion } from '../models/QuestionDetailResponse';
export const checkAssertion = (results: any[], code: string, assertions: Assertion[]) => {
const failedAssertions: string[] = [];
assertions.forEach((assertion) => {
switch (assertion.assertion) {
case "'+' in ... |
Intracranial pressure changes during infusions of verapamil as compared with sodium nitroprusside.
S ODIUM nitroprusside and nitroglycerine increase intracranial pressure, and thus may compromise cerebral perfusion or even cause herniation of brain tissue in patients with an already elevated intracranial pressure. 1-4... |
/**
* Referenced from: Dr. Marzieh Ahmadzadeh,
* ALSU Dragon Book (by: Alfred V. Aho,
* Monica S. Lam,
* Ravi Sethi,
* Jeffrey D. Ullman)<br/><br/>
* Symbol Object
* @author Michael Valdron
* @version March 6, 2017
*
*/
private static class Symbol... |
<filename>libs/laya/particle/shader/value/ParticleShaderValue.ts
import { ParticleShader } from "../ParticleShader"
import { Value2D } from "../../../webgl/shader/d2/value/Value2D";
import { RenderState2D } from "../../../webgl/utils/RenderState2D";
import { ShaderValue } from "../../../webgl/shader/ShaderValue";
/**... |
package com.williballenthin.HexView;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener;
import javax.swing.text.BadLocationException;
import javax.swing.text.DefaultHighlighter;
import javax.swing.text.JTextComponent;
import java.aw... |
use std::io::BufRead;
use std::str::FromStr;
use quick_xml::events::BytesStart;
use quick_xml::Reader;
use crate::error::Error;
use crate::error::InvalidValue;
use crate::parser::utils::attributes_to_hashmap;
use crate::parser::utils::decode_attribute;
use crate::parser::utils::get_evidences;
use crate::parser::FromX... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author msi
*/
public class Lloc {
int lloc;
String lloc_bloc;
String lloc_passadis;
String ... |
/**
* Wrapper to ensure task executes on the runtime thread
*
* @param locationProviders list of location providers to enable by registering
* the providers with the OS
*/
public void enableLocationProviders(final HashMap<String, LocationProviderProxy> locationProviders)
{
if (!TiApplication.... |
<reponame>liuhc8/Aperture<gh_stars>10-100
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.concurrent.ExecutionExceptio... |
/**
* @author: Alexander Zagniotov
* Created: 4/25/13 11:16 PM
*/
public class NullHandlingStrategy implements AdminResponseHandlingStrategy {
@Override
public void handle(final HttpServletRequest request, final HttpServletResponseWithGetStatus wrapper, final StubbedDataManager stubbedDataManager) throws IOEx... |
<commit_msg>Make xmvn-resolve print resolved artifact files
<commit_before>/*-
* Copyright (c) 2012 Red Hat, 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.apa... |
<filename>render/engine/template/view.go<gh_stars>0
// Copyright 2014 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package template
import (
"html/template"
"io"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"strings"
"sync"... |
# -*- coding: utf-8 -*-
# Copyright (c) 2019 SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import codecs
import datetime
import logging
import logging.config
import os
import re
import time
import numpy as np
import sharkpylib
... |
<gh_stars>1-10
package argocd
import (
"context"
"github.com/projectsyn/lieutenant-api/pkg/api"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/klog"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
var (
argoLabels = map[string]string{
"app.kubernetes.io/part-of": "argocd",
"argocd.argopr... |
Quantum transport simulation of the two-dimensional GaSb transistors
Owing to the high carrier mobility, two-dimensional (2D) gallium antimonite (GaSb) is a promising channel material for field-effect transistors (FETs) in the post-silicon era. We investigated the ballistic performance of the 2D GaSb metal–oxide–semic... |
def zip(i):
if i.get('data_uoa', '') != '':
del(i['data_uoa'])
ruoa = i.get('repo_uoa', '')
if ruoa != '':
if ruoa.find('*') < 0 and ruoa.find('?') < 0:
i['data_uoa'] = ruoa
else:
del(i['repo_uoa'])
i['module_uoa'] = cfg['module_repo_name']
i['data'] =... |
Traffic on Interstate in Salt Lake City, ahead of the Memorial Day weekend May 23, 2014. (Photo: Rick Bowmer, AP)
Drivers, start your engines.
The 99th running of the iconic Indianapolis 500 roars to start Sunday, but the nation's highways were already filling up Thursday for Memorial Day weekend.
AAA starts countin... |
Minerva Reefs
The Minerva Reefs (Tongan: Ongo Teleki) are a group of two mostly submerged atolls located in the Pacific Ocean south of Fiji and Tonga.
Name [ edit ]
The reefs were named after the whaleship Minerva, wrecked on what became known as South Minerva after setting out from Sydney in 1829. Many other ships ... |
package influx
type runOption func(*influxDB) error
// WithUsername causes Run to use a given username to connect to DB.
func WithUsername(u string) runOption {
return func(idb *influxDB) error {
idb.username = u
return nil
}
}
// WithPassword causes Run to use a given password to connect to DB.
f... |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
const int maxn =... |
/**
* Read the global command completion coalescing ports register.
*/
static int HbaCccPorts_r(PAHCI ahci, uint32_t iReg, uint32_t *pu32Value)
{
Log(("%s: read regHbaCccPorts=%#010x\n", __FUNCTION__, ahci->regHbaCccPorts));
#ifdef LOG_ENABLED
Log(("%s:", __FUNCTION__));
unsigned i;
for (i = 0; i < ah... |
TokyoGirls'Update
The Mayu Tomita Stabbing Incident and the Problem of Protecting Stalking Victims in Japan
Sponsored Links
Mayu Tomita, 20-year old singer-songwriter and former idol was tragically stabbed in the neck and chest by Tomohiro Iwazaki, 27, shortly before she was to take the stage at Event Space Solid in... |
#ifndef IMAGE_PATTERN_HEX_H_
#define IMAGE_PATTERN_HEX_H_
const uint8_t image_pattern[7168] =
{
0xf0, 0x0f, 0x00, 0x20, 0x11, 0x1c, 0x00, 0x00, 0x0f, 0x22, 0x00, 0x00, 0x57, 0x22, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00... |
// find handles GET /person/name/:name requests and return the Person.
func (p *Person) find(c *gin.Context) {
name := c.Param("name")
person, err := p.Controller.Find(name)
if err != nil {
c.JSON(
http.StatusInternalServerError,
gin.H{
"message": fmt.Sprintf("Failed to find %s", name),
"error": er... |
/// Insert an element in the matrix. If the element is already present,
/// its value is overwritten.
///
/// Warning: this is not an efficient operation, as it requires
/// a non-constant lookup followed by two `Vec` insertions.
///
/// The insertion will be efficient, however, if the elements are inserted
/// accordi... |
rs = 0
cs = 0
for i in range(5):
r = list(map(int, input().split()))
if r.count(1) > 0:
rn = i
p = r.index(1)
if rn <= 2 :
rs = 2 -rn
else :
rs = abs(2 -rn)
if p <=2:
cs = 2 -p
else:
cs = abs(2 -p)
print(rs + cs)
|
<reponame>EmmanuelOga/virgil<filename>test/c.java
package virgil;
public class Test extends ATest {
public Test() { super(); }
public int magicNumber() {
return super.magicNumber();
}
}
|
<gh_stars>1-10
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for HostListSummar... |
/**
* Subscriptions admin page
* @author tina, bwolf, aseem, michael
*
*/
public class CNSSubscriptionPageServlet extends AdminServletBase {
private static final long serialVersionUID = 1L;
private static Logger logger = Logger.getLogger(CNSSubscriptionPageServlet.class);
@Override
public void doGe... |
<reponame>StarlitGhost/GBOxide
use std::str;
pub fn str_from_u8_null_utf8(utf8_src: &[u8]) -> Result<&str, str::Utf8Error> {
let null_range_end = utf8_src.iter()
.position(|&c| c == b'\0')
.unwrap_or(utf8_src.len());
str::from_utf8(&utf8_src[0..null_range_end])
}
|
Clinical Features of Kidney Transplant Recipients Admitted to the Intensive Care Unit
Introduction: There is a paucity of data regarding the complications in kidney transplant patients who may require intensive care unit (ICU) management, despite being the most common solid organ transplant worldwide. Objective: To id... |
/*
* unregister a network filesystem from the cache
* - all cookies must have been released first
*/
void __fscache_unregister_netfs(struct fscache_netfs *netfs)
{
_enter("{%s.%u}", netfs->name, netfs->version);
down_write(&fscache_addremove_sem);
list_del(&netfs->link);
fscache_relinquish_cookie(netfs->primary_... |
On differentially demodulated CPFSK
This paper develops a differential encoder for differentially demodulated continuous phase frequency shift keying (CPFSK). CPFSK schemes with modulation index h=K/P, where K and P are relatively prime positive integers, can be represented by a decomposed model consisting of a contin... |
<gh_stars>10-100
/*
* $Id$
*
* Copyright (c) 2004-2005, 2011, Juniper Networks, Inc.
* All rights reserved.
* This SOFTWARE is licensed under the LICENSE provided in the
* ../Copyright file. By downloading, installing, copying, or otherwise
* using the SOFTWARE, you agree to be bound by the terms of that
* LICE... |
package com.github.gogy.monitor.jvm;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StringUtils;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import java.io.IOException;
/**
* @author yuanyi
* @date 2018/1/29
*/
@Slf4j
public class JVMMetricHelper {
pr... |
<gh_stars>1-10
mod two;
use rand::seq::SliceRandom;
use std::fs;
use std::io::Result;
use std::path::PathBuf;
use std::vec::Vec;
/// Generate <num_pairs> pairs of character images.
pub fn random_pairs(dataset: &str, num_pairs: usize) -> Result<Vec<(PathBuf, PathBuf)>> {
let scripts = fs::read_dir(dataset)?
... |
/**
* @brief hash function for sources
* Hash value is the pointer location of corresponding phrase
*/
class SourceEqual{
public:
bool operator()(const Source * s1, const Source * s2) const
{
if (s1->p == s2->p){
return true;
}
else return false;
}
} |
<gh_stars>10-100
package database
// Code generated by cdproto-gen. DO NOT EDIT.
// EventAddDatabase [no description].
type EventAddDatabase struct {
Database *Database `json:"database"`
}
|
An understanding of the electrophilic/nucleophilic behavior of electro-deficient 2,3-disubstituted 1,3-butadienes in polar diels-alder reactions. A density functional theory study.
The electrophilic/nucleophilic behavior of dimethyl 2,3-dimethylenesuccinate 1, an electron-deficient 2,3-disubstituted 1,3-butadiene, in ... |
The Steady‐State Dipole‐Flow Test for Characterization of Hydraulic Conductivity Statistics in a Highly Permeable Aquifer: Horkheimer Insel Site, Germany
Over the last decade the dipole‐flow test (DFT) evolved from the general idea of using recirculatory flow to evaluate aquifer properties, to the development of proto... |
def media_discoverer_new(self, psz_name):
return libvlc_media_discoverer_new(self, str_to_bytes(psz_name)) |
Intelligent Reflecting Surface Enhanced Wireless Network: Two-timescale Beamforming Optimization
Intelligent reflecting surface (IRS) has drawn a lot of attention recently as a promising new solution to achieve high spectral and energy efficiency for future wireless networks. By utilizing massive low-cost passive refl... |
<gh_stars>0
import os
DEBUG = False
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'sqlite:///data.db')
|
def min_max_normalize(image, clip=False):
if not np.issubdtype(image.dtype, np.floating):
logging.info('Converting image dtype to float')
image = image.astype('float32')
if not len(np.shape(image)) == 4:
raise ValueError('Image must be 4D, input image shape was'
' {}... |
//uses original deploymentId (not vid)
func RemoveProcess(deploymentId string) (err error) {
count, err := getDeploymentCount(deploymentId)
if err != nil {
return err
}
if count.Count == 0 {
return nil
}
client := &http.Client{}
url := Config.ProcessEngineUrl + "/engine-rest/deployment/" + deploymentId + "?c... |
package http
import (
"bytes"
"encoding/gob"
"io/ioutil"
gohttp "net/http"
"time"
"github.com/plopezm/kaiser/core"
"github.com/plopezm/kaiser/core/types"
"github.com/robertkrimen/otto"
)
func init() {
core.RegisterPlugin(new(Plugin))
}
var netClient = &gohttp.Client{
Timeout: time.Second * 10,
}
// Respo... |
def groupX(categ):
N = len(categ)
p = len(np.unique(categ))
if np.max(categ) > p - 1:
raise Exception("the maximum category number should not exceed one minus the number of categories")
X = np.zeros((N,p))
for I in np.arange(N):
X[I, int(categ[I])] = 1
return X |
A central Florida school district may ban extracurricular student clubs in an attempt to prevent the formation of a Gay-Straight Alliance at a local middle school.
The Lake County School District discussed amending the rules regarding student clubs in order to blockade a Gay-Straight Alliance at Carver Middle School i... |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll T,n,m,ans,min;
char c;
cin>>T;
vector<int>row,col;
while(T--){
cin>>n>>m;
min=n+m;
int a[n][m];
row.clear();
col.clear();
ans=0;
... |
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- Implementation details can be found in the technical report 'http://arxiv.org/pdf/1010.1128v3.pdf'.
-- | This module provides the \EpoStar\ processor.
module Tct.Trs.Processor.EpoStar
( epoStarDeclaration
, epoStar
, epoStar'
, ExtCom... |
// Not relevant, WsebConnector always uses /cbm (mixed frames binary encoding)
@Specification("binary.frames.only/text.encoding/response.header.content.type.has.unexpected.value/downstream.response")
void shouldCloseConnectionWhenBinaryFramesOnlyTextDownstreamResponseContentTypeHasUnexpectedValue()
thro... |
/**
* Container Object of a Task
*/
public class TaskVO {
/**
* Description of the Task
*/
private String description;
/**
* Date of the task. A string in format DDMM (Day, Month)
*/
private String date;
/**
* Asignee of the task. If its a General Task, this String is empt... |
<filename>util/pre-get_training_data/setup_datautil.py
from distutils.core import setup, Extension
module = Extension('DataProcess', sources = ['datautil.cpp'],
library_dirs = ['/usr/local/cuda-8.0/lib64','./build'],
libraries = ['cudart','datautil'],
language = 'c')
setup(name = 'DataProcess', version = '1.0'... |
export enum DraftTypes {
AMENDMENT_STATEMENT = 'AMENDMENT_STATEMENT',
CHANGE_STATEMENT = 'CHANGE_STATEMENT',
FINANCING_STATEMENT = 'FINANCING_STATEMENT'
}
|
/** Base {@link Provider} implementation for providing the target thread pool. */
abstract class BaseThreadPoolProvider implements Provider<ExecutorServiceT> {
abstract ExecutorService createThreadPool(
int coreSize,
int maxSize,
long keepAliveSeconds,
ThreadFactory factory,
... |
<gh_stars>100-1000
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005-2014 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (a... |
/**
* Builds a Gaggle DataMatrix data object containing the expression values from
* experiment in the locations specified by rows and columns. Broadcasts this matrix
* to the Gaggle network.
* @author eleanora
*
*/
public void broadcastGeneClusterToGenomeBr... |
/**
* Starts layouting in a parallel thread; or stops the current layouter
* thread if one is running.
*/
@Override
public void start() {
SpringLayouter.this.damper = 1.0;
prepare(false);
long currentTime = System.currentTimeMillis();
while (SpringLayouter.this.damper ... |
<filename>model/BarLeft.py
import pygame
from model.Bar import Bar
from model.BarVertical import BarVertical
class BarLeft(BarVertical):
def __init__(self, screen_size, max_speed):
BarVertical.__init__(self, screen_size, max_speed)
self.surface = pygame.image.load('imgs/bar_left.png')
sel... |
// should be called when there are no more moves or a player has won.
void update_score(tt_game * game) {
if(game->data->winner == game->data->player_char) {
game->scores->player++;
}
else {
game->scores->computer++;
}
} |
On the evening of Friday, February 10, Ruddy shared a drink with the president at Mar-a-Lago. Two days later, he went on Brian Stelter’s CNN show and delivered a shot across the bow to the president’s chief of staff. "I think Reince Priebus, good guy, well-intentioned, but he clearly doesn't know how the federal agenci... |
def _edit(self) -> None:
editor = os.getenv("VISUAL") or os.getenv("EDITOR") or "vim"
subprocess.run([editor, self._config_file]) |
def add_timeslice(self, name: str, category: str, duration: float) -> None:
slices = self.timeslices().set_index("name")
if name in slices.index:
msg = "timeslice `{}` already defined with duration {}"
existing_duration = slices.loc[name].duration
if not np.isclose(du... |
<reponame>armcknight/RZPlotView<gh_stars>1-10
//
// RZBaseStreamingPlotView-Private.h
// RZPlotView
//
// Created by <NAME> on 3/21/14.
// Copyright (c) 2014 raizlabs. All rights reserved.
//
#ifndef RZPlotView_RZBaseStreamingPlotView_Private_h
#define RZPlotView_RZBaseStreamingPlotView_Private_h
@interface RZBas... |
/**
*
* @author Christian Wagner
*/
public class GenT2z_Antecedent
{
private Input input;
private String name;
private GenT2zMF_Interface set;
private final boolean DEBUG = false;
/**
* Creates a new instance of Antecedent which uses an Input object.
*
*/
p... |
Body Odor Disgust sensitivity predicts stronger moral harshness towards moral violations of purity.
Detecting pathogen threats and avoiding disease is fundamental to human survival. The Behavioral Immune System (BIS) framework outlines a set of psychological functions that may have evolved for this purpose. Disgust is... |
<gh_stars>0
import { QueryCond } from '../../shared/model/query-cond.model';
export interface QuestionQueryCond extends QueryCond {
catId: string;
isSingleAnswer: boolean;
levelId: number;
}
|
def recover(self, job, job_wrapper):
job_id = job.get_job_runner_external_id()
galaxy_id_tag = job_wrapper.get_id_tag()
if job_id is None:
self.put(job_wrapper)
return
cjs = CondorJobState(job_wrapper=job_wrapper, files_dir=job_wrapper.working_directory)
c... |
The research on description method of computer operational geographic information in wargame
Computer wargame system presents a new convenient and efficient method to simulate and research war, which realizes the computerization from the traditional manual wargame map to the digital wargame map. And exact operational ... |
// ConnectWithOptions connects to a local or remote Task Scheduler service. This
// function must run before any other functions in taskmaster can be used. If the
// serverName parameter is empty, a connection to the local Task Scheduler service
// will be attempted. If the user and password parameters are empty, the c... |
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { isUpstream } from '../../../utils/common';
import {
CENTOS,
CENTOS_EXAMPLE_CONTAINER,
FEDORA_EXAMPLE_CONTAINER,
RHEL,
RHEL_EXAMPLE_CONTAINER,
} from '../../../utils/strings';
type ContainerSourceHelpProps = {
imageNam... |
<gh_stars>0
import { Controller, Get, Render } from '@nestjs/common';
import NextService from './next.service';
interface AboutProperties {
message: string;
}
export interface IndexProperties {
message: string;
}
@Controller()
export default class NextController {
readonly aboutPageMessage = 'About Page.';
... |
Sick of fighting Uber, the taxi industry has decided to join them at their own game – by putting a fleet of unlicensed taxis on the road.
The new cabs look and feel just like a taxi, and charge the same for a trip. But they don't have taxi licences, and pay no taxi registration fee to the government. As recently as Se... |
/**
* Client object is a useful tool to handle any http interaction between client and Kloudless API
* Server.
*/
public abstract class BaseHttpClient {
static Gson gson = new GsonBuilder().setPrettyPrinting().create();
/**
* Get the prefix of URL
*
* @return String url prefix
*/
ab... |
Charlatans. It's been a bull market for fake populists the past few years. With wages stagnant, households feel like inflation is higher than it is, and they keep hearing that it is from fact-challenged fraudsters. If it's not pop historian Niall Ferguson putting on his tinfoil hat and saying inflation is "really" 10 p... |
/**
* @author Florian Weger
*/
public class TestNavigator {
private static Artifact ARTIFACT;
private static CollectionArtifact COLLECTION;
private static Container CONTAINER;
private static Project PROJECT;
private static MapArtifact MAP;
private static MetaModel META_MODEL;
private static String LON... |
// Initializes an Execution Engine object depending on the parameters.
public static ExecutionEngine initializeEngine(Parameters parameters, List<JoiningNetworkOfTupleSets> candidateNetworks,
SchemaGraph schemaGraph, SQLDatabase database, List<TupleSet> tupleSets) {
ExecutionEngine executionEngine = nul... |
def text_in_page(tmp_proj, page_path, text):
page = tmp_proj / "site" / page_path
assert page.exists(), "%s does not exist" % page_path
contents = page.read_text(encoding="utf-8")
return re.search(text, contents) |
<reponame>gregorwolf/sap-business-one-odata-cap
export declare enum EmployeeTransferStatusEnum {
ets_New = "ets_New",
ets_Processing = "ets_Processing",
ets_Sent = "ets_Sent",
ets_Received = "ets_Received",
ets_Accepted = "ets_Accepted",
ets_Error = "ets_Error"
}
//# sourceMappingURL=EmployeeTra... |
def upload(self, localpath, path=None, interactive=False):
if path is None:
if localpath.startswith(self._config.getLocalRoot()):
path = localpath[len(self._config.getLocalRoot()):]
else:
path = '/'
self._folder_count = 1
self._num_folders ... |
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
long long arr[100005],l[100005],r[100005],d[100005],ans[100005],q[100005];
int main() {
long long int t,n,m,k,x,y,i,j,count=0;
cin>>n>>m>>k;
for(i=1;i<=n;i++){
cin>>arr[i];
}
for (i = 1; i <= m; i++){
cin >> l[i] >> r[i] >>... |
#!/usr/bin/env python3
import os
import random
import time
import unittest
from collections import defaultdict
from functools import wraps
import cereal.messaging as messaging
from cereal import car
from common.params import Params
from common.spinner import Spinner
from common.timeout import Timeout
from panda import... |
import React from 'react'
import Message from './Message'
import { backgroundColor } from '../../globalStyles'
interface Props {
visible: boolean
banner?: string
message?: string
onPress?: () => void
}
const Pending: React.FC<Props> = ({ visible, banner, message, onPress }) => {
return (
<Message
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.