content stringlengths 10 4.9M |
|---|
America is being watched from above. Government surveillance planes routinely circle over most major cities — but usually take the weekends off.
Each weekday, dozens of U.S. government aircraft take to the skies and slowly circle over American cities. Piloted by agents of the FBI and the Department of Homeland Securit... |
/**
* Serves as a base class for controls that contain and make use of other
* widgets.
*
* @author Lateef Ojulari
* @since 1.0
*/
@UplAttributes({ @UplAttribute(name = "components", type = UplElementReferences.class),
@UplAttribute(name = "valueMarker", type = String.class) })
public abstract cl... |
// switchAndFetchReplicaHead tries to pull the latest version of a branch. Will fail if the branch
// does not exist on the ReadReplicaDatabase's remote. If the target branch is not a replication
// head, the new branch will not be continuously fetched.
func switchAndFetchReplicaHead(ctx *sql.Context, branch string, db... |
def add_namespaces(self, cmd_dict):
j = get_registered_commands(self.logger, cmd_dict)
for namespace, cmds in j.items():
if namespace in self.namespaces:
self.logger.info(f'Replacing namespace {namespace}')
delattr(self, namespace)
else:
... |
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import tensorflow as tf
# from tensorflow import logging as tf_logging
from argo.core.argoLogging import get_logger
tf_logging = get_logger()
from argo.core.utils.argo_utils import create_concat_opts
impor... |
/**
* Created by ryu on 2/3/17.
*/
public class AlmostIntegerRockGarden {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
int i = 0;
for (int X = 1; X <= 12; X++) {
for (int Y = 1; Y <= X... |
<reponame>heyjcollins/cli<filename>api/cloudcontroller/ccv3/relationship.go
package ccv3
import (
"encoding/json"
"code.cloudfoundry.org/cli/api/cloudcontroller"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal"
)
// Relationship represents a one to one relationship.
// An empty GUID will be marshaled... |
import * as React from "react";
import { IValueBoxProps } from "@alethio/ui/lib/layout/content/box/ValueBox";
export interface IUncleHashBoxProps {
children: string;
variant?: IValueBoxProps["variant"];
linkTo?: string;
}
export declare class UncleHashBox extends React.Component<IUncleHashBoxProps> {
re... |
def save_admin(name, value, app=None):
from .models import Parameter
if app is None:
app = guess_extension_name()
__is_defined(app, 'A', name)
fullname = "%s.%s" % (app, name)
try:
p = Parameter.objects.get(name=fullname)
except Parameter.DoesNotExist:
p = Parameter()
... |
// Get VF PCI device associated with the given MAC.
// this method compares with administrative MAC for SRIOV configured net devices
// TODO: move this method to github: Mellanox/sriovnet
func GetVfPciDevFromMAC(mac string) (string, error) {
links, err := netlink.LinkList()
if err != nil {
return "", err
}
matchD... |
Big data epidemic prevention and control framework design based on 5G base station data fusion
Big data epidemic prevention and the control framework design based on 5G base station data fusion is studied in this paper. The system considers the organization of metadata, the storage method of metadata, and the applicat... |
Raw content
C O N F I D E N T I A L LA PAZ 000722 SIPDIS STATE FOR WHA A/S SHANNON, DAS BILL MCGLYNN NSC FOR DAN RESTREPO USAID FOR A/ADMINISTRATOR DEBBIE KENNEDY E.O. 12958: DECL: 05/19/2019 TAGS: SNAR, PGOV, PREL, EAID, ASEC, PTER, BL SUBJECT: SCENE SETTER FOR A/S SHANNON VISIT Classified By: Charge d'Affaires Kris ... |
package org.harmony.toddler.mybatis.groovy.demo.domain;
import lombok.Data;
import java.util.Date;
@Data
public class User {
private Integer id;
private String name;
private Integer age;
private String addr;
private Date createTime;
private Date updateTime;
} |
/**
*
* Do a lot of inserts / removes in patterns: remove n, insert n in random order
*
*/
@Test
public void testInsert() {
insert1(0);
valTime = 0L;
long startTime = System.nanoTime();
int ii = 0;
insert1(ii);
long v1 = (System.nanoTime() - startTime) / 1000000;
long v2 = va... |
<reponame>ashu-vyas-github/AndrewNg_MachineLearning_Coursera
import numpy
def estimate_gaussian(x_array):
"""
This function estimates the parameters of a Gaussian distribution
using a provided dataset.
Parameters
----------
x_array : array_like
The dataset of shape (m x n) with each n... |
A fan in Brazil traveled 80 miles from Guaratuba to Coritiba to watch his beloved team play, but the incredible thing is that he did it laying on a gatch bed. The sick man attended Coritiba's match hoping to see his club continue their epic victorious run in the tournament.
Soccer, an Alternative Healing Therapy for F... |
//
// SaveVM.h
// cepin
//
// Created by dujincai on 15/6/4.
// Copyright (c) 2015年 talebase. All rights reserved.
//
#import "BaseTableViewModel.h"
#import "SaveJobDTO.h"
#import "SaveCompanyModel.h"
@interface SaveVM : BaseTableViewModel
@property(nonatomic,retain)id deleteJobStateCode;
@property(nonatomic,retai... |
#include<bits/stdc++.h>
using namespace std;
int arr[100] , dp[100];
int n , sum = 0;
int calc(int x){
if(x == n + 1) return 0;
int &ret = dp[x]; if(ret != -(1<<30)) return ret;
ret = arr[x] - calc(x + 1);
int theta = 0;
for(int j = x ; j < n ; j++){
theta -= arr[j];
ret =... |
<reponame>elemprog-python/elemprog-exercices-corriges<gh_stars>0
# Exercice 9.2 : Répétitions dans les listes
## Question 1
from typing import List, Set, TypeVar
T = TypeVar('T')
def repetes(l : List[T]) -> Set[T]:
"""Retourne l'ensemble des éléments répétés dans L.
"""
# Eléments déjà vus
vus : Set... |
(CNN) After nearly four hours of deliberation, a jury ruled in favor of pop star Taylor Swift in her countersuit against former radio host David Mueller for alleged assault and battery.
Swift accused Mueller of groping her at a meet-and-greet event in June 2013. He will be required to pay $1 in damages to Swift.
The ... |
//** FreeRtChangeList - Frees a route-change notification list.
//
// Called to clean up a list of route-change notifications in the failure path
// of 'RTWalk' and 'IPRouteTimeout'.
//
// Entry: RtChangeList - The list to be freed.
//
// Returns: Nothing.
//
void
FreeRtChangeList(RtChangeList* Current... |
/// Parse a Graphic Control extension sub-block
fn parse_sub_block(&mut self, bytes: &[u8]) -> Result<()> {
if bytes.len() == 4 {
self.set_flags(bytes[0]);
let delay = u16::from(bytes[2]) << 8 | u16::from(bytes[1]);
self.set_delay_time_cs(delay);
self.set_transpar... |
Exogenous cannabinoids are structurally and pharmacologically diverse compounds that are widely used. The purpose of this systematic review is to summarize the data characterizing the potential for these compounds to act as substrates, inhibitors, or inducers of human drug metabolizing enzymes, with the aim of clarifyi... |
/**
* Create an Array with backtrace information for Kernel#caller
* @param level
* @param length
* @return an Array with the backtrace
*/
public IRubyObject createCallerBacktrace(int level, int length, Stream<StackWalker.StackFrame> stackStream) {
runtime.incrementCallerCount();
... |
import type { SetupContext } from '@vue/composition-api';
import type { App } from '~/entities';
export const useAddItemToQueueMenu = (
root: SetupContext['root'],
trackOrEpisode: App.SimpleTrackDetail | App.EpisodeDetail | undefined,
): App.MenuItem<'custom'> => {
const type = 'custom';
const name = '次に再生に追加'... |
import { BaseComponentContext } from '@microsoft/sp-component-base';
import { Guid } from '@microsoft/sp-core-library';
import { LambdaParser } from '@pnp/odata/parsers';
import { SharePointQueryableCollection, sp } from '@pnp/sp';
import '@pnp/sp/taxonomy';
import { ITermInfo, ITermSetInfo, ITermStoreInfo } from '@pnp... |
Adolescent Adjustment During COVID‐19: The Role of Close Relationships and COVID‐19‐related Stress
During the COVID‐19 pandemic, adolescents’ typical social support systems have been disrupted. The present study examined adolescent adjustment during the pandemic (summer, 2020) while controlling for pre‐pandemic adjust... |
<gh_stars>1-10
import React from 'react'
import {Col, Form} from 'react-bootstrap'
interface SpellFilterProps {
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void
}
const SpellFilter: React.FC<SpellFilterProps> = ({onChange}) => {
return (
<Col md={4}>
Filter by name:
<Form.Control typ... |
def energy_estimation(model,
x_test=None,
spiking_model: bool = True,
device_list: list = None,
n_timesteps: int = TIMESTEPS,
dt: float = DT,
verbose: bool = False):
if device_list is ... |
Environmental and Economic Effects of Changing to Shelf-Stable Dairy or Soy Milk for the Breakfast in the Classroom Program
Objectives To estimate economic and environmental effects of reducing milk waste from the US Breakfast in the Classroom (BIC) School Breakfast Program by replacing conventional milk with shelf-st... |
Achievement Evaluation in Electronic Teaching Material
Electronic teaching material drew up on the media material basis of s ound, pattern, three-dimensional and movie-television, is the carrier and repres enting form bringing about modern edu-technology, which distinctively differenti ate orthodoxy teaching material ... |
def dediac_xmlbw(s):
return _DIAC_RE_XMLBW.sub(u'', s) |
<reponame>tiana890/PJSIP-IOS-lib
/* $Id$ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 <NAME> <<EMAIL>>
*
* 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... |
def _onTabPopupMenu(self, view, event, plugin):
menu = self.Menu(plugin, view.get_toplevel())
if hasattr(event, 'button'):
menu.popup(None, None, None, None, event.button, event.time)
else:
tab = view.get_tab_label(plugin)
x, y, w, h = view.getTabAlloc(tab)
rect = gdk.Rectangle(x,... |
package scp_test
import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/viant/toolbox/storage/scp"
"io/ioutil"
"os"
"path"
"strings"
)
func TestService_List(t *testing.T) {
service := scp.NewService(nil)
assert.NotNil(t, service)
dir, home := path.Split(os.Getenv("HOME"))
objects, err := s... |
// NewSingleLineParser returns a new SingleLineParser.
func NewSingleLineParser(
outputFn func(*Message),
parser parsers.Parser) *SingleLineParser {
return &SingleLineParser{
outputFn: outputFn,
parser: parser,
}
} |
Metabolic and skeletal complications of HIV infection: the price of success.
Over the past 10 years, in conjunction with the broad availability of potent antiretroviral regimens, the care of human immunodeficiency virus (HIV)-infected patients has shifted from prevention and treatment of opportunistic infections and m... |
// check the longest broadcast time
func checkLongestBroadcastTime(msgs []string, statisticsClient *client.StatisticsClient) {
for _, tx := range msgs {
msgReport, err := statisticsClient.GetReportMessage(tx)
if err != nil {
fmt.Printf("failed to get tx %s's report info, as: %v", tx, err)
os.Exit(1)
}
va... |
<filename>testing/InputTestUtils.tsx<gh_stars>0
import React from "react";
import { cleanup, render } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import { configure, mount, ReactWrapper } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import { spy, SinonSpy } from "... |
<filename>CNNdroid Source Package/rs/convRolledInF8OutF2.rs
#pragma version(1)
#pragma rs_fp_relaxed
#pragma rs java_package_name(layers)
rs_allocation In_Blob;
rs_allocation Kernel_Blob;
rs_allocation Bias_Blob;
int c_i;
int h_i;
int w_i;
int n_k;
int c_k;
int h_k;
int w_k;
int h_o;
int w_o;
int pad... |
/**
* @author Giovanni Caire - TILAB
*/
class ConnectionPool {
private HashMap connections = new HashMap();
private TransportProtocol myProtocol;
private ConnectionFactory myFactory;
private int maxSize;
private int size;
private boolean closed = false;
private long hitCnt = 0;
private long missCnt = 0;
... |
<filename>cmd/bpxe/cmd/execute.go
// Copyright (c) 2021 Aree Enterprises, Inc. and Contributors
// Use of this software is governed by the Business Source License
// included in the file LICENSE
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will... |
# flake8: noqa
from rastervision.core.evaluation.evaluation_item import *
from rastervision.core.evaluation.class_evaluation_item import *
from rastervision.core.evaluation.evaluator import *
from rastervision.core.evaluation.evaluator_config import *
from rastervision.core.evaluation.classification_evaluation import ... |
/**
* The method checks the header for a keep-alive or close information in the connection field.
*
* @param header
* the header to check
* @return <code>false</code> if the connection has to be kept alive, <code>true</code> if not
*/
boolean isClosedByHeader(final HttpHeader h... |
/**
* Utility class for handling device ABIs
*/
public class AbiUtils {
/**
* The set of 32Bit ABIs.
*/
private static final Set<String> ABIS_32BIT = new HashSet<String>();
/**
* The set of 64Bit ABIs.
*/
private static final Set<String> ABIS_64BIT = new HashSet<String>();
/... |
// DetectError detects any possible errors in responses from Gremlin Server and generates an error for each code
func extractError(r interfaces.Response) error {
switch r.Status.Code {
case interfaces.StatusSuccess, interfaces.StatusNoContent, interfaces.StatusPartialContent:
return nil
case interfaces.StatusUnaut... |
<filename>ControlListener.h
#ifndef CONTROL_LISTENER_H
#define CONTROL_LISTENER_H
#include "Arduino.h"
class ControlListener {
public:
virtual void adjust(double x) = 0;
};
#endif
|
def destroy_classical_register(self, name):
if name not in self.__classical_registers:
raise QISKitError("Can't destroy this register: Not present")
else:
logger.info(">> classical register destroyed: %s", name)
del self.__classical_registers[name] |
<reponame>teilin/adventofcode2020<gh_stars>0
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"os"
"strconv"
"strings"
)
func readInput(inputString string) (int, []int) {
file, err := ioutil.ReadFile(inputString)
if err != nil {
log.Fatal(err)
}
tmp := strings.Split(string(file), "\n")
myTimeStamp, ... |
#!/usr/bin/env python
#
# Examples from the talk:
# <NAME> - Google I/O 2012 - Go Concurrency Patterns
# http://www.youtube.com/watch?v=f6kdp27TYZs
# http://code.google.com/p/go/source/browse/2012/concurrency.slide?repo=talks
from chan import Chan, chanselect, quickthread
from collections import namedtuple
from... |
<reponame>parampavar/vector<gh_stars>0
use metrics::counter;
use vector_core::internal_event::InternalEvent;
use super::prelude::{error_stage, error_type};
#[derive(Debug)]
pub struct RedisSendEventError<'a> {
error: &'a redis::RedisError,
error_code: String,
}
#[cfg(feature = "sinks-redis")]
impl<'a> RedisS... |
# Generated by Django 2.2.6 on 2020-01-06 13:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... |
// Author: <NAME>
// Email: <EMAIL>
// Project page: http://code.google.com/p/csgtestworld/
// Website: http://createuniverses.blogspot.com/
#include "ML_Maths.h"
void mlSinCos(mlAngle angle, mlFloat * sinResult, mlFloat * cosResult)
{
*sinResult = mlSin(angle);
*cosResult = mlCos(angle);
}... |
<gh_stars>0
import { useNavigate } from 'react-router-dom';
import { Add } from '@mui/icons-material';
import { Button, Container, Divider, Stack } from '@mui/material';
import Clients from './Clients';
const ClientsRouteComponent = () => {
const navigate = useNavigate();
return <Container maxWidth="md" sx={{ my... |
RESEARCH ARTICLE Boundary value methods with Crank-Nicolson preconditioner for option pricing model
Under a jump-difiusion process, the option pricing function satisfles a partial integrodifierential equation. A fourth order compact scheme is used to discretize the spatial variable of this equation. The boundary value... |
/**
* Created by nguyenbon on 10/18/16.
*/
public class CarPresenterImpl implements CarPresenter {
protected CarView mCarView;
protected CarInteractorImpl mCarInteractorImpl;
public CarPresenterImpl(CarView carView) {
this.mCarView = carView;
this.mCarInteractorImpl = new CarInteractorIm... |
Cybersecurity analysts say they have discovered a malware-infected version of Pokémon Go for Android devices, which is of particular concern to those in regions where the extremely popular game has not yet launched and users are installing versions downloaded from file-sharing sites.
Proofpoint researchers found an AP... |
t = int(input());
for test in range(t):
l,r = map(int,input().split());
bl = bin(r)[2:];
br = bin(l)[2:];
br = "0"*(len(bl)-len(br))+br;
mx = bl.count("1");
mxm = bl;
for i in range(len(bl)):
if(bl[i]!=br[i]):
temp = len(bl)-i-1+bl[0:i].count("1");
if(temp>=mx... |
/**
* Ensures that the list of builders is not null. If it's null, the list is created and
* initialized to be the same size as the messages list with null entries.
*/
private void ensureBuilders() {
if (this.builders == null) {
this.builders = new ArrayList<SingleFieldBuilder<MType, BType, IType>>(m... |
<reponame>fnrizzi/pressio-demoapps
/*
//@HEADER
// ************************************************************************
//
// rom_problem_members.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under ... |
Apple's "Think different" logo
"Think different." was an advertising slogan for Apple, Inc. (then Apple Computer, Inc.) in 1997 created by the Los Angeles office of advertising agency TBWA Chiat/Day.[1] The slogan has been widely taken as a response to IBM's slogan "Think".[2][3][4] It was used in a television commerc... |
<reponame>fx2003/OI
/*
ID: fx.yoyo1
LANG: C++
TASK: milk2
*/
#include<iostream>
#include<cstdio>
using namespace std;
struct list
{
long int l,r;
list *p,*q;
};
list *head=NULL;
void create(list *p=NULL)
{
list *q=NULL;
if(head==NULL)
{
head=p;
p->p=NULL;
p->q=NULL;
}
else
{
q=head;
while(q!=NULL)
... |
def _calc_global_pcs(self, drop_pc1=False):
df = self.df.xs('01', axis=1, level=1)
norm = ((df.T - df.mean(1)) / df.std(1)).T
U, S, vH = frame_svd(norm)
self.global_vars['pc1'] = vH[0]
self.global_vars['pc2'] = vH[1]
self.global_loadings['pc1'] = U[0]
self.global_... |
DENVER (AP) – A man imprisoned for 28 years after a woman said she dreamed that he raped her could be freed after a Denver judge overturned his conviction, saying he would likely be acquitted at a new trial because someone else confessed to the crime.
Clarence Moses-EL was convicted in 1988 and sentenced to 48 years i... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "nx.h"
#include "utils.h"
void nx_set_iv(nx_cbc_context* ctx,
u8 iv[16])
{
memcpy(ctx->iv, iv, 16);
}
void nx_init_cbc_encrypt(nx_cbc_context* ctx,
u8 key[16],
u8 iv[16])
{
mbedtls_aes_setkey_enc(&ctx->aes, key, 128);
nx_set_... |
package examples
import (
"context"
"fmt"
"net/http"
"testing"
"github.com/infobip-community/infobip-api-go-sdk/v2/pkg/infobip"
"github.com/infobip-community/infobip-api-go-sdk/v2/pkg/infobip/models"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
//const (
// apiKey = "your-... |
<filename>src/ff_api.c<gh_stars>0
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/eventfd.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
#incl... |
use std::fmt;
/// CmdArg contains information about an argument on the directive line. An
/// argument is specified in one of the following forms:
///
/// - key (no value)
/// - key= (empty value)
/// - key=() (empty value)
/// - key=a (single value)
/// - key=a,b,c (single value)
/// - key... |
/* These default values correspond to expected usage for the chip. */
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
host_callback *cb,
struct bfd *abfd,
char **argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
mn10300_callback = cb;
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
if (sim_cpu_allo... |
def nextPower(self, n, p):
m = 1
while m <= n:
m *= p
return m |
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
<filename>CalcFunctions.hs
module CalcFunctions(adds, subs, muls, divs, pis, validateUser, loadHistory, addToHistory, history2String, splitLines, loadFile, getUserHistory) where
import Prelude
import System.IO.Unsafe
import Control.Exception
import Numeric (showIntAtBase)
import Data.Char
{- functions for the... |
//
// XTlib.h
// XTlib
//
// Created by xtc on 2018/1/29.
// Copyright © 2018年 teason. All rights reserved.
//
// 在podfile中本地配置
//pod 'XTBase',:path => '../XTBase/'
//pod 'XTlib',:path => '../XTlib/'
//pod 'XTlib/Animations',:path => '../XTlib/'
//pod 'XTlib/CustomUIs',:path => '../XTlib/'
#ifndef XTlib_h
#define... |
We still know nothing about Robin Ventura, but we'll learn a lot about him when we find out where he plans to play Alex Rios.
Ozzie Guillen, of course, cemented Rios in center field. He also used Rios as a defensive replacement in center field, even if it meant shoving the superior defender Alejandro De Aza to a corne... |
/**
* Class to test CimMethod
* @author Sharad Singhal
*/
public class CimMethodTest {
private static boolean verbose = false;
static CimStructure struct; // Test_Struct
static StructureValue structValue, structValue2; // Test_Struct value
static CimClass cimClass; // Test_Struct.Test_Class
static... |
package com.inlym.lifehelper.common.constant;
/**
* 自定义请求属性值
*
* <h2>注意事项
* <li>在使用 {@code request.getAttribute} 和 {@code request.setAttribute} 方法时,不要直接操作字符串,应该直接当做常量存于此处。
*
* <pre class="code">
* request.setAttribute(CustomRequestAttribute.CLIENT_IP, clientIp);
* </pre>
*
* @author <a href="https://www.... |
package providercache
import (
"io/ioutil"
"log"
"path/filepath"
"sort"
"strings"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/internal/getproviders"
)
// Dir represents a single local filesystem directory containing cached
// provider plugin packages that can be both read from (to f... |
Using the Split Bregman Algorithm to Solve the Self-Repelling Snake Model
Preserving the contour topology during image segmentation is useful in manypractical scenarios. By keeping the contours isomorphic, it is possible to pre-vent over-segmentation and under-segmentation, as well as to adhere to giventopologies. The... |
So far we have learned many secrets of water revealed by Dr. Mantena Satyanarayana Raju through my previous updates on water. I haven’t seen anyone apart from Dr. Raju who has emphasized so much on drinking 5-6 liters of water a day. Many of you might have heard from your elder's that drinking water while eating is har... |
package run.yuyang.trotsky.service;
import run.yuyang.trotsky.model.conf.IntroConf;
import run.yuyang.trotsky.service.base.SerializableService;
public interface IntroService extends SerializableService {
boolean exist(String name);
IntroConf getIntro(String name);
boolean delIntro(String name);
bo... |
package org.realityforge.bazel.depgen.model;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.realityforge.bazel.depgen.AbstractTest;
import org.realityforge.bazel.depgen.config.ArtifactConfig;
import org.realityforge.bazel.depgen.config.JavaConfig;
import org.realityforge.bazel... |
/**
* Project Version State DTO object
*/
@ApiModel(description = "Project Version State DTO object")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-09T13:54:27.094-07:00")
public class ProjectVersionState {
@SerializedName("analysisResultsExist")
private Boo... |
package io.ray.streaming.runtime.worker.tasks;
import io.ray.streaming.runtime.core.processor.Processor;
import io.ray.streaming.runtime.worker.JobWorker;
/**
* Input stream task with 1 input. Such as: map operator.
*/
public class OneInputStreamTask extends InputStreamTask {
public OneInputStreamTask(int taskId... |
<reponame>jroimartin/orujo
// Copyright 2014 The orujo Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package basic implements basic auth mechanisms for orujo.
*/
package basic
import (
"crypto/sha256"
"crypto/subtle"
"fmt"
... |
Transient hot-strip (THS) method for measuring thermal conductivity of thermally insulating materials
The fast and precise transient hot-strip (THS) method is well suited for thermal conductivity measurements on solid materials. The THS method may, however, give large experimental errors when applied to thermally insu... |
N = int(input())
if 1 <= N <= 100:
for i in range(0,25):
for v in range(0,14):
if (4 * i) + (7 * v) == N:
print('Yes')
break
if (4 * i) + (7 * v) == N:
break
else:
print('No')
else:
print('No') |
//returns: false if the graph has cycles
public boolean isGraphReady() {
Initializer init = new Initializer(root, this);
this.vertices = init.initialize();
return !cycleWarning;
} |
def allocateSpace(self, nSteps):
self.listOfTimePositionAmplitudes = []
for i in range(self.dim):
self.listOfTimePositionAmplitudes.append(self.mySpace.functionSpacetimeZero(nSteps)) |
def inline_block_locals(comp, variable_names=None):
symbol_tree = transformation_utils.SymbolTree(
transformation_utils.ReferenceCounter)
transform_spec = InlineBlock(comp, variable_names)
return transformation_utils.transform_postorder_with_symbol_bindings(
comp, transform_spec.transform, symbol_tree... |
def model_evaluation(model_name, fc, bac_test, rcc_test, bac_train, rcc_train, ft, st):
evaluation['model'].append(model_name)
evaluation['feature_count'].append(fc)
evaluation['BAC_test'].append(bac_test)
evaluation['Recall_test'].append(rcc_test)
evaluation['BAC_train'].append(bac_train)
evalu... |
Dysnatremia in Gastrointestinal Disorders
The primary solute of the milieu intérieur is sodium and accompanying anions. The solvent is water. The kidneys acutely regulate homeostasis in filtration, secretion, and resorption of electrolytes, non-electrolytes, and minerals while balancing water retention and clearance. ... |
When people ask me how I’m doing, I always tell them, “I’m great,” bare minimum, I’m doing great. You know, you like positivity, right? Well then why settle for anything less? I tell people how great I’m doing and they like it, they appreciate the jolt of good vibes I’m sending their way. I even like to say it aggressi... |
<filename>test/csvGenerator.test.ts
import CSVGenerator from '../src/csvGenerator';
import {glossentryHandler} from '../src/ContentTypeHandlers/glossentry';
import * as ezdClient from '@jorsek/ezd-client';
// if you used the '@types/mocha' method to install mocha type definitions, uncomment the following line
// import... |
Presently, I'm serving as a branch chief supervisor where I'm supporting the space launch system program—known as the SLS—which replaces space vehicles and the retired space shuttles. In my branch, I am providing systems engineering and integration function, which is all the operations concepts for the design, developm... |
Over one year ago, days apart, I began to receive e-mail messages addressed to others. For weeks I worked diligently to try and put a stop to it. My requests fell on deaf ears. I receive regular reminders that it is happening still.
I began to receive many (or all) e-mail messages addressed to someone named Sandy, who... |
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner in = new Scanner (System.in);
PrintWriter out = new PrintWriter (System.out);
... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
pair<int,int> f[1005];
int n,k;
int main()
{
cin>>n>>k;
if(n*k>n*(n-1)/2)
{
puts("-1");
return 0;
}
for(int i=1;i<=n;i++)
{
f[i]... |
#include <mutex>
#include <sstream>
#include <string>
#include <utility>
//Include before spdlog headers to avoid conflicts with Windows types - Solokiller
#include "extdll.h"
#include <spdlog/spdlog.h>
#include <spdlog/details/null_mutex.h>
#include <spdlog/sinks/file_sinks.h>
#include <spdlog/sinks/null_sink.h>
#i... |
import torch
import torchvision
import torch.nn as nn
import torch.nn.functional as F
import math
from dope_selfsup.nets.resnet import resnet18
class DOPEProjector(nn.Module):
def __init__(self, in_dim, latent_dim, proj_dim):
super(DOPEProjector, self).__init__()
self.mlp = nn.Sequential(... |
def _organize_df(self) -> pd.DataFrame:
df = self.raw_df.copy()
if df.loc[0]['period'][0] == 'Q':
df['period'] = df['period'].str.replace('0', '')
df['date'] = df['year'].map(str)+ '-' +df['period'].map(str)
df['date'] = pd.to_datetime(df['date']).apply(lambda x: x.st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.