content stringlengths 10 4.9M |
|---|
package gov.healthit.chpl.validation.pendingListing.reviewer.duplicate;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnno... |
<reponame>stackbuilders/token-bucket
{-|
Module : Network.TokenBucket.Client
Description : Client for Token Bucket Server
Copyright : (c) Stack Builders Inc. 2014
License : MIT
Maintainer : <EMAIL>
Stability : experimental
Portability : unknown
Connects to a Token Bucket Server and requests tokens from ... |
<reponame>LaserFlash/qcyc-usagemaintenancetracker
import { Injectable } from '@angular/core';
import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/firestore';
import { KnownBoatsService } from '../../../../core/constants/known-boats/known-boats.service';
import { UsageInfo, UsageInfoID } from '.... |
#ifndef CONSOLE_H
#define CONSOLE_H
void start_console(int cmdline_length);
void stop_console();
void write_console(char* message);
#endif /* CONSOLE_H */
|
<reponame>CestLaGalere/eaufrance
"""Support for the EauFrance service."""
from datetime import datetime, timedelta, time
import pytz
import logging
import ast
#from typing import Any, Callable, Dict, Optional
import voluptuous as vol
from homeassistant import config_entries, core
from homeassistant.componen... |
// Used to create shallow copies of accounts for transfer
// from opts to real accounts in server struct.
func (a *Account) shallowCopy() *Account {
na := NewAccount(a.Name)
na.Nkey = a.Nkey
na.Issuer = a.Issuer
na.imports = a.imports
na.exports = a.exports
return na
} |
On March 11, a hiker near North Bend on the slopes of the Cascade Mountains in Washington state found a sick bat lying on the trail. He took the little brown bat, Myotis lucifugus, to the Progressive Animal Welfare Society where it died two days later.
Related Content The Little Brown Bat’s Mighty Talent
At the time,... |
Energy Efficient Phosphorus Recovery by Microbial Electrolysis Cell Induced Calcium Phosphate Precipitation
Phosphorus (P) removal and recovery from waste streams is essential for a sustainable world. Here, we updated a previously developed abiotic electrochemical P recovery system to a bioelectrochemical system. The ... |
def add_date(date_uri, year, g, month=None, day=None, label=None):
if year and str(year) != "1900":
g.add((date_uri, RDF.type, VIVO.DateTimeValue))
if day and month:
g.add((date_uri, VIVO.dateTimePrecision, VIVO.yearMonthDayPrecision))
g.add((date_uri, VIVO.dateTime,
... |
/* The caller must lock the context. */
static void falcon_push(GQueue *queue, falcon_object_t *object)
{
GList *l = NULL;
g_return_if_fail(queue);
l = g_queue_find_custom(queue, falcon_object_get_name(object),
falcon_object_compare);
if (!l)
g_queue_push_tail(queue, object);
} |
#include <bits/stdc++.h>
#define endl "\n"
#define test \
int t; \
cin >> t;
#define ll long long
#define er cout << "<-----Darshan Hear----->" << endl;
#define puru return 0;
using namespace std;
int main()
{
int n, ans = 0;
cin>>n;
int p[n],q[n];
for (int i = 0; i < n; i++)
... |
package koopa.cobol.grammar.directives;
import koopa.core.data.markers.Start;
import koopa.core.parsers.ParserCombinator;
import koopa.core.parsers.FutureParser;
import static koopa.core.parsers.combinators.Opt.NOSKIP;
import static koopa.core.grammars.combinators.Scoped.Visibility.PUBLIC;
import static koopa.core.gr... |
/**
* Set this query's projection
*
* @param select the {@link Projection} to set
* @return this
*/
public SubSelect select(Projection select) {
this.select = select;
return this;
} |
/**
* allows the user to pay
* @param orderNum
* @return: price to pay
*/
public double pay(int orderNum){
Table barTable= allTables.get(findTable(bar));
double price= barTable.getOrderPrice(orderNum);
barTable.removeOrder(orderNum);
int current= barTable.getFilledSea... |
# Python side of the support for xmethods.
# Copyright (C) 2013-2017 Free Software Foundation, Inc.
# 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 3 of the License, or
# (at you... |
<gh_stars>1-10
/* eslint no-undef: off */
/* eslint no-new: off */
import path from "path";
import Store from "../src";
test("Ensure the store can determine its age.", () => {
const store = Store.from(path.resolve("./test/age.store.json"));
expect(typeof store.age).toBe("number");
});
|
// SetHostTimer sets the number of generations for the host to
// remain in its current status.
func (sim *SequenceNodeEpidemic) SetHostTimer(id, interval int) {
sim.Lock()
defer sim.Unlock()
sim.timers[id] = interval
} |
<reponame>Deepak2417/algorithms
import java.util.*;
// We use Disjoint Set Union to help us in constructing the MST, and checking cycles in MST
public class KruskalAlgorithm {
static class Edge implements Comparable<Edge> {
int src, dest, weight;
public Edge(int src, int dest, int weight) {
... |
<reponame>purebase/tsdx-react-with-storybook-starter<gh_stars>0
import React from "react";
import {FC} from "react";
export const GreenButton:FC = (props) => {
return (
<button style={{backgroundColor: '#00ff00'}}>
{props.children}
</button>
);
} |
def _add_is_control_and_control_id(df, ctrl_id):
if 'Experiment_Id' not in df:
return df
if ctrl_id is None:
if 'Is_Control' not in df and 'Control_Id' in df and 'Experiment_Id' in df:
df['Is_Control'] = df['Control_Id'] == df['Experiment_Id']
return df
if not isinstance(ctrl_id, dict):
df['... |
/**
* Performs a move where the src piece captures the dest piece,
* removing the dest piece form the board.
*
* @param src the source piece.
* @param dest the dest piece.
*/
protected void movePiece(ArrayPiece src, ArrayPiece dest)
{
assert(src != null);
assert(dest != null);
movePiece... |
/**
* Sets the status of a received Cloudlet to {@link Cloudlet.Status#READY}
* so that the Cloudlet can be selected to start running as soon as possible
* by a {@link CloudletScheduler}.
*
* <p>This tag is commonly used when Cloudlets are created
* from a trace file such as a {@link Googl... |
/**
* Created by tatyanasoldatkina on 3/25/15.
*/
public class Like implements Serializable {
@SerializedName("id")
private long id;
@SerializedName("created_at")
private Date createdAt;
@SerializedName("user")
private User user;
@SerializedName("shot")
private Shot shot;
publ... |
def create_boilerplate_semantics_files(neurons: List[int]):
with open("input_semantics.csv", "w") as f:
for i in range(neurons[0]):
f.write("input neuron %i\n" % i)
with open("output_semantics.csv", "w") as f:
for i in range(neurons[-1]):
f.write("output neuron %i\n" % i) |
/**
* Main class to represent transaction of money between {@link org.nipu.jmt.account.Account}.
*
* @author Nikita_Puzankov
*/
public class Transaction {
private final Long fromAccountNumber;
private final Long toAccountNumber;
private final BigDecimal amount;
public Transaction(Long fromAccountNu... |
<filename>rustfst/src/tests_openfst/test_weights.rs
use std::fs::read_to_string;
use anyhow::Result;
use serde::{Deserialize, Serialize};
use crate::semirings::{
GallicWeight, GallicWeightLeft, GallicWeightMin, GallicWeightRestrict, GallicWeightRight,
LogWeight, ProductWeight, ReverseBack, SerializableSemirin... |
/**
* Performs the passed-in closure with the write lock locked and unlocks the write lock automatically
* after the closure finishes.
*
* @param cl The closure to perform with the write lock held
*/
public void withWriteLock(final Closure cl) {
writeLock().lock();
try {
... |
<gh_stars>1-10
#pragma once
#include <cinttypes>
#include <limits>
#include <ostream>
#include <set>
#include <string>
#include <vector>
#include "cista/containers/hash_map.h"
#include "cista/containers/hash_set.h"
#include "cista/containers/vector.h"
namespace soro {
using pixel_coord_t = uint32_t;
using distance_... |
// TLSALPNChallengeBlocks returns PEM blocks (certPEMBlock, keyPEMBlock) with the acmeValidation-v1 extension
// and domain name for the `tls-alpn-01` challenge.
func TLSALPNChallengeBlocks(domain, keyAuth string) ([]byte, []byte, error) {
zBytes := sha256.Sum256([]byte(keyAuth))
value, err := asn1.Marshal(zBytes[:sh... |
n = int(input())
MOD = 10 ** 9 + 7
ans1 = 1
ans2 = 1
for i in range(1,n+1):
ans1 *= i
ans1 %= MOD
for i in range(n-1):
ans2 *= 2
ans2 %= MOD
print((ans1 - ans2) % MOD) |
The Adelphi University men’s lacrosse team takes the field to audio of a Donald Trump campaign speech.
Barstool Sports posted a video of the team going onto the field with one player carrying the American flag.
The following is the excerpt from a Trump speech used in the audio along with music building up in the back... |
#include "../../cudaGraph/graph/graph.hpp"
namespace cudaGraph
{
void graphToCSV(Graph &g)
{
std::vector<int> sources;
std::vector<int> destinations;
std::vector<int> weights;
for (int i = 0; i < g.vertices.size(); i++)
{
int startIndex = g.startIndices[i];
... |
<reponame>a313008430/fairygui-wx
import { Stage, broadcastEvent } from "../core/Stage";
export enum ScaleMode {
ConstantPixelSize,
ScaleWithScreenSize,
ConstantPhysicalSize
}
export enum ScreenMatchMode {
MatchWidthOrHeight,
MatchWidth,
MatchHeight
}
export class UIContentScaler {
public ... |
import torch.optim.lr_scheduler as lr_scheduler
import utils.saver
class ReduceLROnPlateau(lr_scheduler.ReduceLROnPlateau, utils.saver.Saver):
name = "scheduler-ReduceLROnPlateau"
def __init__(self, optimizer, mode="min", factor=0.1, patience=10,
min_lr=1e-8, threshold=1e-6, threshold_mode="abs"... |
def _make_request(session, resource, json_data=None, stream=False, use_http_get=False):
url = session.get_url(resource)
if use_http_get:
response = _requests_session.get(
url, verify=session.verify_ssl_certs, stream=stream
)
else:
if json_data is None:
json_da... |
Rumor: Not A Hero is Resident Evil 7’s True Ending, Includes Real Final Boss
Man, today has just been awesome for RE news.
Resident Evil 7‘s Gold Edition, along with the final release date of the long anticipated DLC chapters Not A Hero and End of Zoe, were finally announced today with some minor details, but thanks ... |
/*!
* Copyright 2021 Cognite AS
*/
import { callActionWithIndicesAsync } from './callActionWithIndicesAsync';
describe('test callActionWithIndicesAsync', () => {
it('calls an action with specified indices range', async () => {
const start = 10;
const end = 100000;
const timesToCall = end - start + 1;
... |
<gh_stars>1-10
/* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.storage;
import org.geogit.api.ObjectId;
import com.google.common.annotations.Beta;
import com.google.common.base.Optional;
im... |
<reponame>water-gulugulu/avw
package request
import (
"github.com/dgrijalva/jwt-go"
uuid "github.com/satori/go.uuid"
)
// Custom claims structure
type CustomClaims struct {
UUID uuid.UUID // 唯一标示
ID uint // 用户ID
Username string // 用户名
NickName string // 用户名
AuthorityId string ... |
<gh_stars>10-100
// TODO: Use WTF-8 rather than UTF-16
#![allow(clippy::type_complexity)]
mod local;
use async_trait::async_trait;
use futures::{future::LocalBoxFuture, ready};
use pin_project::pin_project;
use std::{
convert::TryFrom, error::Error, ffi, fmt, future::Future, io, pin::Pin, sync::Arc, task::{Context,... |
<gh_stars>10-100
from SpheralCompiledPackages import PhysicalConstants
#-------------------------------------------------------------------------------
# MKS units.
#-------------------------------------------------------------------------------
class MKS(PhysicalConstants):
def __init__(self):
PhysicalCon... |
/*
EXAMPLE osmium_tiles
Convert WGS84 longitude and latitude to Mercator coordinates and tile
coordinates.
DEMONSTRATES USE OF:
* the Location and Coordinates classes
* the Mercator projection function
* the Tile class
LICENSE
The code in this example file is released into the Public Domain.
*/
... |
// Print all entries of 2D DMDA global vector to stdout, including which
// processor each entry lives on, and the corresponding subscripting
// indices
PetscErrorCode printf_DM_2d(const Vec gvec, const DM dm)
{
PetscErrorCode ierr = 0;
#if VERBOSE > 2
PetscPrintf(PETSC_COMM_WORLD,"Starting main::printf_DM_2d in ... |
<reponame>Unity-Technologies/drone-pose-estimation-navigation
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import torch
import torchvision
import os
import sys
sys.path.append('../model/pose_estimation')
from PIL import Image, ImageOps
from model import PoseEstimationNetwork
from util import con... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { BuildBuildStatus } from "./globalTypes";
// ====================================================
// GraphQL query operation: Builds
// ===================================================... |
Technical Requirements Analysis of Power Grid Development for High Proportion of Renewable Energy
At present, China’s energy and power system is in a critical period of upgrading and transformation, and new energy power generation will occupy an increasingly important position in the energy field. In the future, new e... |
import { Box, useColorModeValue } from '@chakra-ui/react';
import { useTranslation } from 'next-i18next';
import React from 'react';
const Footer = () => {
const { t } = useTranslation();
return (
<Box py={14} alignItems='center' textAlign='center' color={useColorModeValue('black', 'grey')}>
{new ... |
/****************************************************************************
ePMC - an extensible probabilistic model checker
Copyright (C) 2017
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 Softw... |
/**
* This is a subclass of JInternalFrame which displays documents.
*
* @author Steve Wilson
*/
@SuppressWarnings("serial")
public class MetalworksDocumentFrame extends JInternalFrame {
static int openFrameCount = 0;
static final int offset = 30;
public MetalworksDocumentFrame() {
super("", t... |
<gh_stars>0
import { Person } from './person.entity';
import { Body, Controller, Delete, Get, Param, Patch, Post, Query, UseGuards } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { PeopleService } from './person.service';
import { PersonDto, PersonParams, PersonQuery } from './person.d... |
import type { NextPage } from "next";
import Image from "next/image";
import { motion } from "framer-motion";
import Square from "./../assets/vector/square.svg";
import Triangle from "./../assets/vector/triangle.svg";
import Circle from "./../assets/vector/circle.svg";
import Code from "./../assets/vector/code-bg.svg";... |
/**
* Returns a new effect that repeats this effect the specified number of times
* or until the first failure. Repeats are in addition to the first execution,
* so that `io.repeatN(1)` yields an effect that executes `io`, and then if
* that succeeds, executes `io` an additional time.
*
* @tsplus fluent ets/Effec... |
// NewSubmodule creates a new entry in the Submodule list of the
// OpenconfigModuleCatalog_Organizations_Organization_Modules_Module_Submodules struct. The keys of the list are populated from the input
// arguments.
func (t *OpenconfigModuleCatalog_Organizations_Organization_Modules_Module_Submodules) NewSubmodule(Nam... |
export * from './Binding';
export * from './Expression';
export * from './StringTemplate';
export * from './View';
export * from './SubscribableView';
export * from './Store';
export * from './ExposedRecordView';
export * from './ExposedValueView';
export * from './ReadOnlyDataView';
export * from './ZoomIntoPropertyVi... |
<reponame>ieugen/calcite<filename>core/src/main/java/org/apache/calcite/util/TimeString.java
/*
* 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... |
/* Input: string1, string2
* Output: boolean (true/false)
*
*/
class OneAway {
public static boolean areStringsOneOrZeroEditsAway(String string1, String string2) {
int string1Length = string1.length();
int string2Length = string2.length();
if(Math.abs(string1Length - string2Length) > 1) {
return false;
... |
<reponame>dingjingmaster/graceful-grub<gh_stars>0
#include <string.h>
#include <grub/elf.h>
#include <grub/module_verifier.h>
#include <grub/util/misc.h>
#if defined(MODULEVERIFIER_ELF32)
# define SUFFIX(x) x ## 32
# define ELFCLASSXX ELFCLASS32
# define Elf_Ehdr Elf32_Ehdr
# define Elf_Phdr Elf32_Phdr
# define Elf_N... |
package com.github.mufanh.filecoin.backend.filscan;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.*;
import com.github.mufanh.jsonrpc4j.*;
import lombok.extern.slf4j.Slf4j;
import okhttp3.OkHttpClient;
import org.springfra... |
// GetNamespaces - Return list of all namespaces in cluster
func GetNamespaces(w http.ResponseWriter, r *http.Request) {
namespaces, err := clientset.CoreV1().Namespaces().List(metav1.ListOptions{})
if err != nil {
fmt.Println("### Kubernetes API error", err.Error())
http.Error(w, err.Error(), http.StatusInternal... |
<reponame>Owl66/Physics3D
#pragma once
#include <cstddef>
namespace P3D {
void* aligned_malloc(std::size_t size, std::size_t align);
void aligned_free(void* ptr);
};
|
package com.nineeyes.jp.flutter_ui_examples.platform_view_example.plugins.simple;
import android.content.Context;
import android.content.Intent;
import io.flutter.Log;
import io.flutter.plugin.common.EventChannel;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flu... |
#include<iostream>
#include<cstdio>
using namespace std;
long long t,n,a,b;
char c[2000001];
int main(){
long long t,cnt1,cnt;
long long ans;
scanf("%lld",&t);
while(t--){
scanf("%lld%lld%lld",&n,&a,&b);
scanf("%s",c);
ans=0;
cnt=0;
cnt1=0;
long long now=0,now1=0;
for(int i=0;i<=n-1;i+... |
Russian River Brewing maxes out
On Sunday, the unthinkable happened at Russian River Brewing's restaurant in Santa Rosa: it ran out of beer, at least the stuff in a bottle.
"We had a crazy weekend and we had already allocated everything out (to other stores and restaurants) so we didn't have any more beer," owner Nat... |
/**
* Description not yet available.
* \param
*/
double boundpin(const prevariable& xx, double fmin, double fmax,const double& s)
{
double tinv;
double x=value(xx);
if (x < fmin)
{
if (ad_printf)
(*ad_printf)("variable out of bounds in boundpin: variable = %lg", x);
if (ad_printf) (*ad_printf)(... |
/**
* Creates ExtSource and UserExtSource if necessary for the purpose of joining users identities.
*
* @param user User to add UES to
* @param actor Actor to add
* @param extSourceName ExtSource name to add
* @param extSourceType ExtSource type to add
* @param loa loa in ext source
* @throws PerunExcep... |
Effective Coordination Numbers in Ultrathin Metallic Films
Nanostructures have become a major field in a material science. With molecular beam epitaxy it is possible to engineer multilayers with unusual anisotropic properties and metastable strucutres. For ultrathin films, or particles of small size, the coordination ... |
<reponame>devyn/fai
extern crate fai;
extern crate env_logger;
extern crate getopts;
extern crate byteorder;
use std::env;
use std::io::prelude::*;
use std::fs::File;
use std::process::exit;
use std::time::Duration;
use std::str::FromStr;
use getopts::Options;
use byteorder::*;
use fai::data::State;
use fai::machi... |
// Get removes an exact number of items from the channel and blocks until that
// number of items are available. If the channel is closed then an error is
// returned.
func Get(queue <-chan byte, number int) ([]byte, error) {
var result []byte
ReadLoop:
for {
select {
case i, ok := <-queue:
if ok {
result ... |
// GetNSPath inspects a container by its name/id and returns an netns path using the pid of a container
func (c *DockerRuntime) GetNSPath(ctx context.Context, containerId string) (string, error) {
nctx, cancelFn := context.WithTimeout(ctx, c.config.Timeout)
defer cancelFn()
cJSON, err := c.Client.ContainerInspect(nc... |
.
The paper deals with the influence of glutaminic acid on the functional activity of the sympatho-adrenal system and the concentration of calcium in urine under conditions of the alcoholic abstinence syndrome development. Changes in the functional activity of sympatho-adrenal system and in the concentration of calciu... |
/**
* Created by MrFu on 15/3/21.
*/
public class Trace {
private static String TAG = "MrFu";
public static void debug(String content){
if(!TextUtils.isEmpty(content))
Log.i(TAG, content);
}
public static void debug(int content) {
Log.i(TAG, "" + content);
}
public... |
<gh_stars>1-10
from collections import defaultdict
import random
def fix_word(word):
n = ""
for l in range(len(word)):
if str(l).isalnum() or l == '!' or l == "." or l == '?' or l == "," or l == "'":
n += word[l]
return(n)
def create_markov_chain(text):
words = text.split()
m... |
<gh_stars>0
package testcomponent.heyongrui.com.base.injection.component;
import dagger.Component;
import testcomponent.heyongrui.com.base.base.BaseActivity;
import testcomponent.heyongrui.com.base.injection.annotation.PerActivity;
import testcomponent.heyongrui.com.base.injection.module.ActivityModule;
/**
* This... |
import React, { useState } from 'react';
import { Formik, Form } from 'formik';
import { Wrapper } from '../components/Wrapper';
import withApollo from '../utils/apollo/withApollo';
import { InputField, Button } from '../components/htmlElements/';
import { useForgotPasswordMutation } from '../generated/graphql';
impo... |
Iteration strategies for successful positioning of innovative products into new markets
We have studied the experience and practice of entrepreneurs and their respective firms in Portugal to position innovative products into the United States (US) and other markets. Employing a case study approach, we examined the man... |
<reponame>MilosKatic/Angular-Graphics-Card-Shop
import { Component, OnInit } from '@angular/core';
import { CardService } from './services/card.service';
import { CardList } from './model/card-list';
@Component({
selector: 'app-graphic-cards',
templateUrl: './graphic-cards.component.html',
styleUrls: ['./graphi... |
<gh_stars>1000+
import numpy as np
import torchvision.datasets as datasets
from torch.utils.data import DataLoader, SubsetRandomSampler
class mnist_data(object):
def __init__(
self,
shuffle,
transform_train,
transform_test,
num_workers=0,
create_validation_set=True,... |
<filename>array1/sum3_test.go
package array1
import "testing"
func TestSum3(t *testing.T) {
expected := 6
actual := sum3([]int{1, 2, 3})
if expected != actual {
t.Fatalf("expected %d but actual is %d", expected, actual)
}
} |
High temperature fretting tribometer – study of the dynamic behaviour and tangential load measurement
– Experimental approaches to study fretting are heavily dependent on the performances of the test devices, especially considering the extensive use of quantitative parameters extracted from fretting loops. The dynamic... |
<reponame>Tengda-He/trace-analytics
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for det... |
Blackrock Depths Heroic Guides, The Pinnacle 4, Deck Talk: BRM Theorycraft
Founder's Pack Last Chance - Goes Away April 7th, Matchmaking Discussion
Azeroth Armory: Forging Gorehowl
Era 3 Has Started (NA)
The second Era of 2015 has begun on the NA servers, and the previous leaderboards have been archived. Bear in mi... |
/*
Synchronously wait on our semaphore for data to be published that matches
our subscription's "glob", but also respond to out-of-band signals, typically
indicating "end of data".
This is deprecated now in favor of the lighter-weight Wait2, but will be
retained for some time to be used possibly for diagnostics/t... |
/**
* Wrapped vertex of a triangular, cartesian 2D domain.
*
* @since 0.1.0
*/
class TriangularCartesian2D_Vertex
{
TriangularCartesian2D_Vertex_t *vertex;
public:
TriangularCartesian2D_Vertex(TriangularCartesian2D_Vertex_t &initial_vertex);
PointCartesian2D to_point();
TriangularCartesian2D_Vertex_t & get_... |
// create queue owner=client # success
public void testCreateClientQueueSuccess() throws Exception
{
String queueOwner = "client";
_jmx.createQueue("test", QUEUE_NAME, queueOwner, true);
} |
Off-label drug use in human immunodeficiency virus disease.
We wished to determine the extent to which drugs used to treat HIV disease and its clinical manifestations are prescribed for conditions other than those listed on the U.S. Food and Drug Administration's approved drug label, how such "off-label" use varies by... |
(Above) The Fender 60th Anniversary Classic Player 50s Strat was the winner last year. Who will take this prestigious prize in 2015?
There's been a slew of impressive new electric guitars released over the past 12 months, but now Guitarist magazine wants you to choose your favourite by placing your vote for the electr... |
Classification of Sonar Targets in Air: A Neural Network Approach
Ultrasonic sonar sensors are commonly used for contactless distance measurements in application areas such as automotive and mobile robotics. They can also be exploited to identify and classify sound-reflecting objects (targets), which may then be used ... |
<reponame>Romanski1/serenity<filename>LibHTML/CSS/StyleValue.cpp
#include "StyleValue.h"
StyleValue::StyleValue(Type type)
: m_type(type)
{
}
StyleValue::~StyleValue()
{
}
NonnullRefPtr<StyleValue> StyleValue::parse(const StringView& str)
{
return adopt(*new PrimitiveStyleValue(str));
}
|
/**
* Unbind context.
*
* \param dpy the display handle.
* \param scrn the screen number.
* \param draw drawable.
* \param read Current reading drawable.
* \param gc context.
*
* \return \c GL_TRUE on success, or \c GL_FALSE on failure.
*
* \internal
* This function calls __DriverAPIRec::UnbindContext, an... |
A moment nearly six years in the making. Fire and flame returned to the historic LC-39A launch pad at the Kennedy Space Center as SpaceX conducted the static fire of its Falcon 9 rocket tasked with lofting the SpX-10 Dragon resupply mission to the International Space Station. The ignition of the Falcon 9’s engines occu... |
<filename>backend/api/corona_tweet_analysis/views.py
import mongoengine
from json import loads, dumps
from django.shortcuts import render
from django.core.exceptions import PermissionDenied
from corona_tweet_analysis.utils.base_view import BaseViewManager
from corona_tweet_analysis.utils.responses import send_response
... |
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 31 17:26:48 2022
@author: kakdemi
"""
import pandas as pd
#reading 2018 load values
load_2018 = pd.read_excel('Hourly_demand_2018.xlsx',header=0)
#reading solar behind the meter timeseries
Solar_ISO_BTM_2012 = pd.read_excel('../ISONE_data_file/Scenarios/Renewable_times... |
def optimize(self, migrations=[], iterations=3):
if iterations == 0:
return migrations
for subject in reversed(sorted(self.enabled_hypervisors,
key=lambda h: abs(h.score))):
if subject.score < 0:
improvement = self.right_dive... |
<reponame>koddsson/island.is<filename>apps/judicial-system/api/src/app/modules/auth/auth.controller.spec.ts
import { mock } from 'jest-mock-extended'
import { Test, TestingModule } from '@nestjs/testing'
import { Logger, LOGGER_PROVIDER } from '@island.is/logging'
import { AuthController } from './auth.controller'
i... |
def ellipsoidal_area(a, b, x1, y1, x2, y2):
if x2 < x1:
reverse = -1
else:
reverse = 1
_, x1, y1, x2, y2 = _canonical_configuration(x1, y1, x2, y2)
phi1 = y1*pi/180.0
phi2 = y2*pi/180.0
lambda12 = (x2-x1)*pi/180.0
az, baz, _ = ellipsoidal_inverse(a, b, x1, y1, x2, y2)
alp... |
Intelligent polymeric micelles: development and application as drug delivery for docetaxel
Abstract Recent years, docetaxel (DTX)-loaded intelligent polymeric micelles have been regarded as a promising vehicle for DTX for the reason that compared with conventional DTX-loaded micelles, DTX-loaded intelligent micelles n... |
#!/usr/bin/env python
"""Main framework for running BAI algorithms"""
__author__ = "<NAME>"
__copyright__ = "Copyright 2021, USC"
import time
import numpy as np
from numpy.linalg import inv, norm, eig, svd, qr
import pandas as pd
from itertools import product, repeat
import math
import os
import sys
... |
<filename>python_research/experiments/sota_models/utils/monte_carlo.py
from random import shuffle
import numpy as np
from python_research.experiments.sota_models.utils.sets_prep import generate_samples, prep_dataset, unravel_dataset
def prep_monte_carlo(args) -> tuple:
"""
Finds the size of the smallest pop... |
<gh_stars>10-100
// Copyright 2020 the Blobloom 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 appli... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args) throws IOException
{
//Enter data using BufferReader
BufferedReader reader =
new BufferedReader(new Inpu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.