content stringlengths 10 4.9M |
|---|
If you didn't care so much, you wouldn't have to defend your ideas, try to talk around them, or walk off interview sets like O'Donnell did on Piers Morgan last night. Honestly. Just live and let live.
Listen up, Christine O'Donnell, Mr. and Mrs. Michele Bachmann, and every other like-minded member of the GOP: When it ... |
<reponame>microsoft/powerbi-report-viewer
//import { IAppAuthContext } from '@msx/platform-types';
import { trackPromise } from 'react-promise-tracker';
export async function httpGet(token: string, url: string, onSuccessCallback: any, onErrorCallback: any) {
try {
let response = await trackPromise(fet... |
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main ()
{
string s,sub;
while (cin>>s>>sub)
{
ll i,ans=0,j,k;
k=0;
for(i=0;i<s.size();i++)
{
if(s[i]==sub[0])
{
k=i;
for(j=0;j<sub.size... |
Cholinergic Drugs for Alzheimer's Disease Enhance in Vitro Dopamine Release
Alzheimer's disease is a neurodegenerative disorder associated with a decline in cognitive abilities. Patients also frequently have noncognitive symptoms, such as anxiety, depression, apathy, and psychosis, that impair daily living. The most c... |
/**
* Make hash from internal state.
*
* @return Long hash value.
*/
private long makeHash() {
h1 ^= len;
h2 ^= len;
h1 += h2;
h2 += h1;
h1 = fmix64(h1);
h2 = fmix64(h2);
h1 += h2;
h2 += h1;
return h1;
} |
I’ve made some changes to my fat bike this summer and fall I’m pretty jazzed about it. The planed changes were simple enough of moving to a one by drivetrain with Shimano XTR bits and adding Shimano XTR brakes for good measure too.
While adding the Shimano XTR brakes and rotors my old Carver carbon fork didn’t want to... |
/***********************************************************************/
/* This function loads each POFF file specified on the command line,
* merges the input POFF data, and generates intermediate structures
* to be used in the final link.
*/
static void loadInputFiles(poffHandle_t outHandle)
{
poffHandle_t inH... |
<gh_stars>10-100
//Recursive code
class Solution
{
public:
//Function to find the length of longest common subsequence in two strings.
//<NAME>
//<NAME>
//<NAME>
//<NAME>, <NAME>, <NAME>, <NAME>
int lcs(int x, int y, string s1, string s2)
{
// your code here
if(x == 0... |
<reponame>i-novation/ng-rapidforms<gh_stars>1-10
import {Directive} from '@angular/core';
@Directive({
selector: '[nrfGlobalErrorOutput]'
})
export class GlobalErrorOutputDirective {
}
|
/**
Simulation framework for event driven simulation.
*/
class Simulation
{
public:
void schedule_event(Event* new_event);
void run();
private:
priority_queue<Event*, vector<Event*>, EventComparison> event_queue;
} |
#pragma once
#include <fiblib/fiblib_api.h>
namespace fiblib
{
/**
* @brief
* Calculator of fibonacci numbers
*/
class FIBLIB_API Fibonacci
{
public:
/**
* @brief
* Constructor
*/
Fibonacci();
/**
* @brief
* Destructor
*/
virtual ~Fibonacci();
/**
* ... |
GOOD training and state-of-the-art equipment saved the lives of two Dubbo men who walked away from a light plane crash near Gilgandra. Pilot John Nixon and passenger Tom Warren were standing next to the wreckage of a Cirrus SR22-G3 single-engine, four-seater aircraft when rescue responders arrived on the scene at Leech... |
/// Construct a new workspace from an input stream representing a Calyx
/// program.
pub fn construct(
file: &Option<PathBuf>,
lib_path: &Path,
) -> CalyxResult<Self> {
Self::construct_with_all_deps(file, lib_path, false)
} |
package com.github.vvorks.builder.client.common.ui;
public interface EventHandler {
int onKeyDown(UiNode target, int keyCode, int charCode, int mods, int time);
int onKeyPress(UiNode target, int keyCode, int charCode, int mods, int time);
int onKeyUp(UiNode target, int keyCode, int charCode, int mods, int time);
... |
/// Take a HTML string and encapsulate with the correct tags. Will also add the stylesheet.
pub fn encapsulate_bare_html(
content: String,
config: &Configuration,
title: String,
) -> Result<String> {
let mut data = Map::new();
data.insert(
"stylesheet".to_string(),
Json::Array(
... |
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//used in non-critical section
bool ComIsTxBufFull()
{
bool f;
SysDI();
f= (((tbin+1)& (TX_BUF_SIZE-1))==tbout);
SysEI();
return f;
} |
// GetGitAuthor returns the author name and email
func GetGitAuthor() (string, string, error) {
name, err := runCmd("git", []string{"config", "--get", "user.name"})
if err != nil {
return "", "", errors.Wrap(err, string(name))
}
email, err := runCmd("git", []string{"config", "--get", "user.email"})
if err != nil... |
/**
* TODO: Add class description
*/
public class deleteAllVisibleCookies extends AbstractWebDriverModule
{
/**
* {@inheritDoc}
*/
@Override
protected void doCommands(final String...parameters) throws Exception
{
final Open_ExamplePage _open_ExamplePage = new Open_ExamplePage();
... |
/**
* A {@link CorsRequestContext} that delegates what it can to a provided {@link RequestContext}.
*
* @author Michael Irwin
*/
public class DelegatingCorsRequestContext implements CorsRequestContext {
private final RequestContext requestContext;
public DelegatingCorsRequestContext(RequestContext requestCont... |
/**
* show the selected parameter's graph
* @param position the position of all the elements in the selected sequence
* @param parameterValues parameter's value of all the elements
* @param keypath the key path of parameter which is selected
*/
public void showPlot( final List<Double> position, final List<D... |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, timedelta
from odoo.addons.digest.tests.common import TestDigestCommon
from odoo.tools import mute_logger
class TestCrmDigest(TestDigestCommon):
@classmethod
@mute_logger('odoo.m... |
/**
* Create a reusable {@link JsonFormatter} bound to a {@link DisconnectedOutputStream}.
*
* @return {@link JsonFormatter} writing JSON content in the output stream
*/
private JsonFormatter createJsonFormatter() {
try {
DisconnectedOutputStream outputStream = new DisconnectedO... |
<reponame>random-geek/MapEditr<filename>src/commands/set_param2.rs
use super::{Command, ArgResult};
use crate::unwrap_or;
use crate::spatial::{Vec3, Area, InverseBlockIterator};
use crate::instance::{ArgType, InstArgs, InstBundle};
use crate::map_block::MapBlock;
use crate::utils::{query_keys, to_bytes, to_slice, fmt_... |
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
// import Test from '../views/Test'
import Home from '../views/Home'
const routes: Array<RouteRecordRaw> = [
// {
// path: '/',
// name: 'Test',
// component: Test,
// },
{
path: '/',
name: 'Home',
component: Home... |
<reponame>chelladurai89/next-share<filename>src/components/buttons/RedditShareButton.ts
import transformObjectToParams from '../../utils';
import createShareButton from '../../hocs/createShareButton';
function redditLink(url: string, { title }: { title?: string }) {
return (
'https://www.reddit.com/submit' +
... |
from django.conf.urls import patterns, url
from .views import SubmitFAQ, SubmitFAQThanks,QuestionDetail, QuestionList
urlpatterns = patterns('',
url(r'^$', QuestionList.as_view(), name='faq_question_list'),
url(r'^(?P<slug>[\w-]+)$', QuestionDetail.as_view(), name='faq_question_detail'),
# TODO: anonymous... |
<gh_stars>1-10
import { IDetailsColumnStyleProps, IDetailsColumnStyles } from './DetailsColumn.types';
export declare const getStyles: (props: IDetailsColumnStyleProps) => IDetailsColumnStyles;
|
/**
* Displays a message indicating that there are not enough resources to build
* a structure and what the missing resources are.
*/
void resourceShortageMessage(ResourcePool& _rp, StructureID sid)
{
const ResourcePool& cost = StructureCatalogue::costToBuild(sid);
ResourcePool missing;
if (_rp.commonMetals() < c... |
The following farms and ranches have certified that they meet Eatwild's criteria for producing grassfed meat, eggs and dairy products. Contact them directly for additional information or to buy their products:
8 O'clock Ranch loves to eat, and eat well! How about you? You are here looking for humanely raised, antibiot... |
def score(self, measurements):
if len(self.rules) == 0:
raise ValueError("No rules to apply")
score = self.rules[0].score(measurements)
for rule in self.rules[1:]:
partial_score = rule.score(measurements)
if partial_score.shape[0] > score.shape[0]:
... |
<reponame>lineuman/biliob-spider
# coding=utf-8
import scrapy
from scrapy.http import Request
from biliob_spider.items import VideoOnline
import time
import json
import logging
from pymongo import MongoClient
import datetime
from scrapy_redis.spiders import RedisSpider
from biliob_tracer.task import SpiderT... |
<reponame>whunmr/msgrpc
#ifndef MSGRPC_SI_BASE_H
#define MSGRPC_SI_BASE_H
#include <msgrpc/core/cell/cell.h>
#include <msgrpc/core/service_discovery/default_service_resolver.h>
#include <msgrpc/util/type_traits.h>
namespace msgrpc {
template<typename SERVICE_RESOLVER, typename SI_FUNCTION, typename REQ>
auto... |
// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMMON_EVENT_TRACER_H_
#define COMMON_EVENT_TRACER_H_
extern "C" {
typedef const unsigned char* (*GetCategoryEnabledFlagFunc)(const cha... |
''''''
'''
@Author: <NAME> (<EMAIL>)
@Date: 2020-03-01
@Copyright: Copyright (C) <NAME> 2020. All rights reserved. Please refer to the license file.
@LastEditTime: 2020-05-27
@LastEditors: <NAME>
@Description: This file contains functions related to GRIC computation
'''
import numpy as np
def compute_fundamental_res... |
<filename>boost/boost/uuid/name_generator.hpp<gh_stars>10-100
// Boost name_generator.hpp header file ----------------------------------------------//
// Copyright 2010 <NAME>.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LI... |
use std::convert::TryFrom;
use crate::{ffi, script, CodePoint, Buffer, Tag, Script, Font};
use crate::buffer::BufferClusterLevel;
use crate::map::Map;
use crate::unicode::GeneralCategory;
#[derive(Clone, Copy, PartialEq)]
enum Consonant {
NC = 0,
AC,
RC,
DC,
NotConsonant,
}
fn get_consonant_type(... |
# import sys
# sys.stdin = open('input.txt', 'r')
# sys.stdout = open('output.txt', 'w')
testCases = int(input())
x, y, z = [], [], []
for _ in range(testCases):
xyz = list(map(int, input().split(" ")))
x.append(xyz[0])
y.append(xyz[1])
z.append(xyz[2])
if sum(x) == 0 and sum(y) == 0 and... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define FIO ios_base::sync_with_stdio(false), cin.tie(NULL);
#define N
int n,k;
int main(){
FIO;
cin >> n >> k;
vector<int> ans(32,0);
int bits = __builtin_popcount(n);
for(int i = 0 ; i < 31 ; i++){
if((n>>i)&1) ans[i] = 1... |
/* --------------------------------------------------------------------------
Search the parameters array for a given option and return the value
provided by the parse-option callback.
- Parameters -------------------------------------------------------------
INT argc : startup parameters count.
PSZ* arg... |
Three men have been arrested after allegedly stealing $300,000 worth of avocados from their employer.
Police arrested Joseph Valenzuela, 38, Carlos Chavez, 28 and Rahim Leblanc, 30, on suspicion of 'grand theft avocado.'
They are accused of stealing the fruit from their employer, Mission Produce, in Ventura County, C... |
package graphs
import (
"bufio"
"errors"
"io"
"strconv"
"strings"
)
// Graph represents an undirected graph.
type Graph struct {
nodes map[uint64]*Node
}
// New returns a Graph instance, populated according to the input string.
// Each input line represents an edge where U and V are Nodes of the graph:
// `U [... |
/**
* Ensure can specify {@link OfficeGovernance} for a {@link OfficeSubSection}.
*/
public void testLinkOfficeGovernanceForOfficeSubSection() {
this.replayMockObjects();
OfficeSection section = this.addSection(this.node, "SECTION", null);
OfficeSubSection subSection = section.getOfficeSubSection("SUB_SECTION... |
// onMessage is called when the Slack API emits a MessageEvent.
func (s *ClassicAdapter) onMessage(event *slack.MessageEvent, info *adapter.Info) *adapter.ProviderEvent {
switch event.Msg.SubType {
case "":
if event.Channel[0] == 'D' {
return s.onDirectMessage(event, info)
}
return s.onChannelMessage(event,... |
Inhibition of IL-1 Signaling by Antisense Oligonucleotide-mediated Exon Skipping of IL-1 Receptor Accessory Protein (IL-1RAcP)
The cytokine interleukin 1(IL-1) initiates a wide range of proinflammatory cascades and its inhibition has been shown to decrease inflammation in a variety of diseases. IL-1 receptor accessory... |
/**
* This class tests methods in the PersonService class. TODO: Test all methods in the PersonService
* class.
*/
public class PersonServiceTest extends BaseContextSensitiveTest {
protected static final String CREATE_PATIENT_XML = "org/openmrs/api/include/PatientServiceTest-createPatient.xml";
protected stati... |
def fit(self, signal):
if signal.ndim == 1:
self.signal = signal.reshape(-1, 1)
else:
self.signal = signal
n_samples, _ = self.signal.shape
strides = (self.signal.itemsize, self.signal.itemsize)
shape = (n_samples - self.order, self.order)
lagged =... |
from __future__ import absolute_import
# Import python libs
import copy
import logging
import os
# Import salt libs
import salt.loader
import salt.utils
import salt.utils.gitfs
import salt.utils.dictupdate
import salt.pillar.git_pillar
import salt.ext.six as six
from salt.exceptions import SaltException
try:
fro... |
/**
* Created by fabianterhorst on 18.05.16.
*/
public class LayoutConverters {
private List<LayoutConverter> converters;
public LayoutConverters() {
}
public void setAll(List<LayoutConverter> converters) {
this.converters = converters;
}
public LayoutAttribute convert(String attri... |
Do older veterans experience change in posttraumatic cognitions following treatment for posttraumatic stress disorder?
OBJECTIVE
It is unclear whether PTSD treatments improve negative posttraumatic cognitions (NPCs) and if changes in NPCs mediate treatment outcomes in older veterans. The current study examined if prol... |
<filename>lenstools/utils/__init__.py
from .algorithms import *
from .misc import *
from .mpi import *
from .fft import * |
/*[clinic input]
preserve
[clinic start generated code]*/
#if defined(HAVE_GETSPNAM)
PyDoc_STRVAR(spwd_getspnam__doc__,
"getspnam($module, arg, /)\n"
"--\n"
"\n"
"Return the shadow password database entry for the given user name.\n"
"\n"
"See `help(spwd)` for more on shadow password database entries.");
#define SPWD... |
<filename>assignment_3/3_generative/part3/distributions.py<gh_stars>0
"""
This file contains classes for a bimodal Gaussian distribution and a
multivariate Gaussian distribution with diagonal covariance matrix.
Author: Deep Learning Course, C.Winkler | Fall 2020
Date Created: 2020-11-25
"""
import numpy as np
import ... |
import * as core from '@actions/core'
import * as github from '@actions/github'
import {EnvVariables, Inputs, Label, Metadata, Octokit, Results} from './types'
export const handleEvent = async (): Promise<void> => {
const {accessToken} = getEnvVariables()
const octokit = github.getOctokit(accessToken)
const meta... |
At some point yesterday, you probably read about soon-to-be-NFL-quarterback Teddy Bridgewater giving his mom a pink Cadillac, thus fulfilling a promise that he made to her when he was nine. It was a sweet story, the kind that's designed to make us all feel good about sports and moms and America. It was also essentially... |
<gh_stars>0
import * as tf from '@tensorflow/tfjs';
import * as tfvis from '@tensorflow/tfjs-vis'
import LabelData from '../data/labelData.json'
import LabelData2 from '../data/labelData2.json'
import LabelData3 from '../data/labelData3.json'
const modelName = "localstorage://number-model'"
class TFUtil {
model: ... |
import { InMemoryDbService } from 'angular-in-memory-web-api';
import { IDepartment } from './departments';
export class DepartmentData implements InMemoryDbService {
createDb(): { departments: IDepartment[]} {
const departments: IDepartment[] = [
{
id: 1,
departmentName: 'Netwo... |
/// Constructs a new `Cuboid` with the given dimensions.
pub fn new(x_size: Scalar, y_size: Scalar, z_size: Scalar) -> Cuboid {
let half_x = x_size / 2.0;
let half_y = y_size / 2.0;
let half_z = z_size / 2.0;
Cuboid {
dimensions: Vec3D::new(x_size, y_size, z_size),
... |
{-# LANGUAGE DataKinds #-}
import Options.Declarative
test :: Cmd "verbosity test" ()
test = do
logStr 0 "verbosity level 0"
logStr 1 "verbosity level 1"
logStr 2 "verbosity level 2"
logStr 3 "verbosity level 3"
main :: IO ()
main = run_ test
|
<gh_stars>10-100
package model
import (
"encoding/json"
"errors"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
"strings"
)
//
type UpdateAlarmRequestBody struct {
// 告警名称,只能包含0-9/a-z/A-Z/_/-或汉字。
AlarmName *string `json:"alarm_name,omitempty"`
// 告警描述,长度0-256。
AlarmDescription *string `json... |
Beating heart versus conventional mitral valve surgery.
OBJECTIVES
The present study aimed to compare the results of beating heart technique and conventional mitral valve surgery (MVS).
METHODS
Three hundred and nineteen patients who underwent MVS between April 2005 and December 2006 were enrolled in the study. Whil... |
/** Authenticate principal against credential
* @param principal - the user id to authenticate
* @param credential - an opaque credential.
* @return Always returns true.
*/
private boolean authenticate(Principal principal, Object credential)
{
boolean authenticated = true;
return... |
/**
* Sign extends variable bit-width integer.
* @param x variable bit-width integer
* @param w bit width (32)
*/
function signExtend(x: number, w: number=32): number {
w = 32-w;
return (x<<w)>>w;
}
export default signExtend;
|
<gh_stars>0
package com.icepoint.framework.core.flow.dsl;
import com.icepoint.framework.core.flow.ResultContainer;
import com.icepoint.framework.core.flow.Source;
import com.icepoint.framework.core.util.MessageTemplates;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.util.Assert... |
/**
* Search all hops for a hop where a certain transform is at the end.
*
* @param toTransform The transform at the end of the hop.
* @return The hop or null if no hop was found.
*/
public PipelineHopMeta findPipelineHopTo(TransformMeta toTransform) {
int i;
for (i = 0; i < nrPipelineHops(); i++... |
/**
* @author Konstantin Bulenkov
*/
public class SearchEverywhereUI extends BorderLayoutPanel {
private SETab mySelectedTab;
public SearchEverywhereUI(@Nullable SearchEverywhereContributor selected) {
}
private class SETab extends JLabel {
public SETab(String tabName) {
super(tabName);
}
... |
<filename>src/settings.ts
import { HtmlUtility, RectangleSize } from "@fal-works/creative-coding-core";
/**
* The id of the HTML element to which the canvas should belong.
*/
export const HTML_ELEMENT_ID = "FarEast";
/**
* The HTML element to which the canvas should belong.
*/
export const HTML_ELEMENT = HtmlUtil... |
<reponame>dimafirsov/jira-templator<gh_stars>0
import { MainPagePo as main } from './MainPage.po';
import { SettingsPagePo as settings } from './SettingsPage.po';
describe('Main Page > ', () => {
beforeEach(() => {
cy.visit('/');
});
it('should contain expected text', () => {
cy.contains(m... |
<reponame>hafeez3000/vitess<gh_stars>0
// Copyright 2013, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package hourglass
import (
"container/heap"
"sync"
"testing"
"time"
)
// sandboxEvent abstracts sandboxTimer and sandb... |
#ifndef Music_h
#define Music_h
// Serial speed. match on the other side.
#define SERIAL_SPEED 19200 // baud
// LED pin to show we're playing
#define LED_PIN 13
// minimum volume to set [0-255]. 0 is loudest
#define MIN_MP3_VOL 100
// See: https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-play-and-r... |
/**
* Class encapsulating what the Cluster Controller knows about a distributor node. Most of the information is
* common between Storage- and Distributor- nodes, and stored in the base class NodeInfo.
*
* @author hakonhall
*/
public class DistributorNodeInfo extends NodeInfo {
public DistributorNodeInfo(Cont... |
Professional identity formation of medical students: A mixed-methods study in a hierarchical and collectivist culture
Background Professional identity formation (PIF) has been recognized as an integral part of professional development in medical education. PIF is dynamic: it occurs longitudinally and requires immersio... |
// Handover decides if a node should transfer its current role to another
// node. This is typically run when the node is shutting down and is hence going to be offline soon.
//
// Return the role that should be handed over and list of candidates that
// should receive it, in order of preference.
func (c *RolesChanges)... |
/**
* A serialization capability entry consisting of format and schema.
*
* @author Stefan Haun (stefan.haun@ovgu.de)
*
*/
@Immutable
public class SerializationCapability {
private final String format;
private final String schema;
public SerializationCapability(String format, String schema) {
super();
th... |
<reponame>std282/dmf2smps
package freqs
import "math"
var smpsFMtable = [12]int{
//0x25E, // B
0x284, // C
0x2AB, // C#
0x2D3, // D
0x2FE, // D#
0x32D, // E
0x35C, // F
0x38F, // F#
0x3C5, // G
0x3FF, // G#
0x43C, // A
0x47C, // A#
0x4BC, // B
}
// getEquFreqFM returns equivalent matched FM frequency
fu... |
/**
* Salesforce v1 stores the Cotrainer with the Trainee record and not the Trainer record... #hackamania
* @param batchTrainer
* @return
*/
public Trainer transformCoTrainer(SalesforceTrainee batchTrainer) {
Trainer trainer = new Trainer();
if (batchTrainer == null) {
return null;
}
trainer.setName... |
"""
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of ... |
CLOSE Robert Lewis Dear, the suspect in the November Colorado Springs Planned Parenthood shooting, also tried to blow up the building where patients and staff were hiding according to new documents. Wochit
FILE - In this Dec. 9, 2015, file photo, Robert Dear, center, talks during a court appearance in Colorado Springs... |
Blood Lead Levels In Victorian Children
A recent study of lead levels in the blood of Sydney schoolchildren purported to show “an alarming situation of epidemic proportions”, with up to 24% of children in one survey having blood lead levels greater than 25 μg/100 mL (1.21 μmol/L). In the present study, 446 Victorian c... |
def authcode_post(self, path, **kwargs):
kwargs.setdefault('data', {})['authcode'] = self.authcode
return self._session.okc_post(path, **kwargs) |
The Operative: “Are you willing to die for that belief?” Capt. Malcolm “Mal” Reynolds: “I am… but it ain’t exactly Plan A." —Serenity
Passion matters. If there’s a lesson to be drawn from many of the films in the New Cult Canon—specifically the ones that died in theaters, only to find a following down the line—it’s th... |
#!/usr/bin/python3
import setup_run_dir # this import tricks script to run from 2 levels up
from amrlib.graph_processing.amr_plot import AMRPlot
from amrlib.graph_processing.amr_loading import load_amr_entries
if __name__ == '__main__':
input_file = 'amrlib/data/LDC2020T02/test.txt'
snum = 4 # id... |
/**
* SCOPE
* A report provider, for example, a transfer agent, fund accountant or market data provider, sends the PriceReportCancellation message to the report recipient, for example, a fund management company, transfer agent, market data provider, regulator or any other interested party to cancel previously sent pr... |
// Parameters returns the parameters to be passed into a environment CloudFormation template.
func (e *EnvStackConfig) Parameters() ([]*cloudformation.Parameter, error) {
httpsListener := "false"
if len(e.in.ImportCertARNs) != 0 || e.in.App.Domain != "" {
httpsListener = "true"
}
return []*cloudformation.Paramete... |
import FWCore.ParameterSet.Config as cms
# Coincidence of HF towers above threshold
from HeavyIonsAnalysis.Configuration.hfCoincFilter_cff import *
# Selection of at least a two-track fitted vertex
primaryVertexFilter = cms.EDFilter("VertexSelector",
src = cms.InputTag("hiSelectedVertex"),
cut = cms.string("!... |
import Icon from 'antd/lib/icon';
import React, { Children } from 'react';
import Tooltip from 'antd/lib/tooltip';
import { connectField, filterDOMProps, joinName } from 'uniforms';
import ListItemField from './ListItemField';
import ListAddField from './ListAddField';
const List = ({
children,
error,
errorMess... |
use libc::fork;
use std::fs;
use std::{ffi::CString, process::exit};
#[macro_use]
extern crate log;
extern crate simple_logger;
use crate::debugger::Debugger;
pub mod breakpoint;
pub mod command;
pub mod debugger;
pub mod expr;
pub mod utils;
fn main() {
simple_logger::init_with_level(log::Level::Info).unwrap()... |
// Copyright (c) 2019, <NAME> <<EMAIL>>
// See LICENSE for licensing information
package main
import (
"flag"
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
"github.com/rogpeppe/go-internal/goproxytest"
"github.com/rogpeppe/go-internal/gotooltest"
"github.com/rogpeppe/go-internal/tests... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Project } from "ts-morph";
import { getAutorestOptions } from "../../autorestSession";
export function generateRollupConfig(project: Project) {
const { generateMetadata } = getAutorestOptions();
if (!generateMetadata) {
retur... |
Substrate Metabolism under Cold Stress in Seasonally Acclimatized Dark-Eyed Juncos
Seasonally acclimatized dark-eyed juncos were exposed to one of three temperature regimes: 30° C (thermoneutrality), - 12° C (moderate cold), or 2° C in a 20.9% oxygen/79.1% helium gas mixture (severe cold), for 2 h or until they became... |
import { JsonFetchWrapper } from "../../../utils";
import { gBifBaseApiUrlV1 } from "../../../lib/constants";
import { gbifLimitKingdom, gbifLimitPhylum } from "../../../lib/settings";
export const getTaxonKeyBySciName = ({
sciName,
}: {
sciName: string;
}): Promise<{ scientificName: string; taxonKey: number } | n... |
State and Metropolitan Variation in Lack of Health Insurance among Working-Age Adults, Behavioral Risk Factor Surveillance System, 2006
Objective. Lack of health insurance coverage for working-age adults is one of the most pressing issues facing the U.S. population, and it continues to be a concern for a large number ... |
A robot would be the best placekicker of all time. A human kicker learns a few motions — one for kickoffs, one for field goals, one for onside kicks, one for pooches — and then tries to repeat those motions the same way every time. We call the good kickers “automatic,” praising them for becoming as robotic as humanly p... |
// Callback for notifications from blockdag. It notifies clients that are
// long polling for changes or subscribed to websockets notifications.
func (s *Server) handleBlockDAGNotification(notification *blockdag.Notification) {
switch notification.Type {
case blockdag.NTBlockAdded:
data, ok := notification.Data.(*b... |
t=int(input())
for _ in range(t):
n=int(input())
arr=list(map(int,input().split()))
c=[0,0,0]
for i in arr:
if(i%3==0):
c[0]+=1
elif(i%3==1):
c[1]+=1
else:
c[2]+=1
ans=0
avg=sum(c)//3
for j in range(3):
for i in range(3):
if(c[(i+1)%3]<avg and c[i]>c[(i+1)%3]):
t=min(c[i]... |
/**
* @(#)SoundDriver.java
*
* @author David Navarro, Nicholas Hernandez
* @version 1.01 5/6/2014
*
*/
public class SoundDriver {
private Clip[] clips;
private int[] framePosition;
private boolean[] isPlaying;
private FloatControl gainControl;
public SoundDriver(String[] aCl... |
// Reconcile kicks off the state synchronization for every target group inside this TargetGroups
// instance. It returns the new TargetGroups its created and a list of TargetGroups it believes
// should be cleaned up.
func (t TargetGroups) Reconcile(rOpts *ReconcileOptions) (TargetGroups, TargetGroups, error) {
var ou... |
School districts around the Bay Area are spying on their own students — often with private investigators — just to make sure the kids really live where they say they do.
Sometimes, private eyes surreptitiously photograph the youngsters as they come and go from homes suspected of being fronts. Sometimes, they lie about... |
<gh_stars>0
// Lean compiler output
// Module: Init.Lean.Delaborator
// Imports: Init.Lean.KeyedDeclsAttribute Init.Lean.Parser.Level Init.Lean.Elab
#include "runtime/lean.h"
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GN... |
class TestPassthruBasics:
"""Tests basic PassthruQNode properties."""
def test_always_mutable(self, mock_qnode):
"""PassthruQNodes are always mutable."""
assert mock_qnode.mutable
def test_repr(self, mock_qnode):
"""String representation."""
assert repr(mock_qnode) == "<Pas... |
/**
* Represents the result of fetching the results for a query for a specific library
*/
public class FetchResult {
private final String fetcherName;
private final BibDatabase fetchResult;
public FetchResult(String fetcherName, BibDatabase fetcherResult) {
this.fetcherName = fetcherName;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.