content stringlengths 10 4.9M |
|---|
<filename>plugins/default/arcadePhysics2D/components/ArcadeBody2DUpdater.ts<gh_stars>0
import ArcadeBody2DMarker from "./ArcadeBody2DMarker";
import { ConfigPub } from "../componentConfigs/ArcadeBody2DConfig";
export default class ArcadeBody2DUpdater {
projectClient: SupClient.ProjectClient;
bodyRenderer: A... |
SALT LAKE CITY — Authorities say a Utah woman pulled two of her son’s teeth in a Walmart restroom.
Prosecutors said Monday that the 47-year-old woman bought hand sanitizer and needle-nose pliers from the store, then took them into the restroom and pulled two of her 7-year-old son’s teeth.
Police in American Fork, Uta... |
// Match returns true if the given path matches the any pattern. If the
// pattern is meant for directories only, and the path is not a directory,
// Match will return false. The matching is performed by recursively applying
// fnmatch() with flags set to FNM_PATHNAME. It is assumed path is relative to
// the base path... |
Protecting children from smoke exposure in disadvantaged homes.
INTRODUCTION
Smoke-free legislation and shifting norms in many countries have reduced secondhand smoke (SHS) exposure, but many children, particularly from disadvantaged homes, have high levels of exposure in homes and cars. We explored the particular cha... |
<gh_stars>0
package leveldb
import (
"sync"
"time"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
)
const (
_DefaultCleanTimeout = time.Hour
_DefaultMaxAge = time.Second * 31556926
)
// Interface is an interface
type Interface interface {
// Load loads the values
Load(... |
00:00:00 John Donvan:
What did Martin Luther King, Jr. have in common with Richard Nixon and with 18th century revolutionary Thomas Paine, author of Common Sense? Well, all three thought it was common sense to guarantee to every citizen who breathes a set amount of cash of every year, essentially as a right, and first... |
def __cpu_arch(self):
if hpccm.config.g_cpu_arch == cpu_arch.AARCH64:
self.__arch_directory = 'Linux_aarch64'
if StrictVersion(self.__version) < StrictVersion('20.11'):
self.__cuda_multi = False
elif hpccm.config.g_cpu_arch == cpu_arch.PPC64LE:
self._... |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
<gh_stars>1-10
use crate::{
actor::{Actor, ActorContainer},
bot::{Bot, BotKind},
control_scheme::ControlScheme,
effects,
item::{Item, ItemContainer, ItemKind},
jump_pad::{JumpPad, JumpPadContainer},
leader_board::LeaderBoard,
message::Message,
player::Player,
projectile::{Project... |
/**
* Convenience class for exception when loading Bitmaps.
*/
private static class BitmapLoadException extends Exception {
public BitmapLoadException(String msg) {
super(msg);
}
} |
Differences in peripheral nerve degeneration/regeneration between wild‐type and neuronal nitric oxide synthase knockout mice
Nitric oxide (NO), a unique biological messenger molecule, is synthesized by three isoforms of the enzyme NO synthase (NOS) and diffuses from the site of production across cellular membranes. A ... |
package repository
import (
"context"
"fmt"
"testing"
"github.com/calmato/gran-book/api/server/user/internal/domain/user"
"github.com/calmato/gran-book/api/server/user/pkg/database"
"github.com/calmato/gran-book/api/server/user/pkg/test"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"g... |
<reponame>jackiehanyang/anomaly-detection
/*
* 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 f... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.knowledge.qnamaker;
import com.microsoft.... |
import { Component, OnInit, Input, Output, EventEmitter, ViewChild } from '@angular/core';
import { StringValidation } from '../../../../resources/stringValidation';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { UtilitiesDate } from '../../../../models/utilities/utilitiesDate';
@Compone... |
<gh_stars>0
package com.xu.myapplication;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.util.LruCache;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.android.volley... |
import pprint as pp
import floodsystem.geo as geo
import floodsystem.stationdata as sd
stations = sd.build_station_list()
cam_centre_pos = (52.2053, 0.1218)
if __name__ == "__main__":
print("\n*** Task 1B: CUED Part IA Flood Warning System ***\n")
stations_by_dist = \
list(map(lambda r:
... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-team',
templateUrl: './team.component.html',
styleUrls: ['./team.component.css']
})
export class TeamComponent implements OnInit {
public teams: any[];
constructor() {
this.teams = new Array<Object>();
for (let i = 0; i... |
<gh_stars>10-100
#ifndef CHIPMUNK_BODY_H
#define CHIPMUNK_BODY_H
#include <chipmunk/chipmunk.h>
#include <memory>
#include <functional>
namespace cp
{
class Shape;
class Space;
class Arbiter;
class Body
{
public:
static const struct StaticTag {} Static;
static const struct... |
class SegmentCollection:
"""
Class managing a collection of segments
"""
# paths
save_dir = "../sav/" if EXEC_FROM_SOURCE else "sav/"
backup_dir = "../sav/backup/" if EXEC_FROM_SOURCE else "sav/backup/"
taxo_dir = "../tax/" if EXEC_FROM_SOURCE else "tax/"
csv_dir = "../csv/" if EXEC_FROM... |
/**
* @author Ovidiu Feodorov <ovidiu@novaordis.com>
* @since 7/29/16
*/
public class AsynchronousCsvLineWriterTest extends DataConsumerTest {
// Constants -------------------------------------------------------------------------------------------------------
private static final Logger log = LoggerFactory... |
A proof of the fundamental theorem of curves in space and its applications
We give a necessary and suficente condition for the existence of a space curve with curvature $\kappa$ and torsion $\tau$ finding a solution of a nonlinear differential equation of second order and some applications are given for the general he... |
Resistance to Oncolytic Myxoma Virus Therapy in Nf1−/−/Trp53−/− Syngeneic Mouse Glioma Models Is Independent of Anti-Viral Type-I Interferon
Despite promising preclinical studies, oncolytic viral therapy for malignant gliomas has resulted in variable, but underwhelming results in clinical evaluations. Of concern are t... |
/**
* Details of the movement instructions.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MovementInstruction1", propOrder = {
"mvmntGnlInf",
"undrlygSctiesMvmntDtls",
"undrlygCshMvmntDtls",
"prcdsMvmntDtls"
})
public class MovementInstruction1 {
@XmlElement(name = "MvmntG... |
<gh_stars>10-100
/**
* Copyright (C) 2016 <NAME> (<EMAIL>)
*
* 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 ... |
#include "minunit.h"
#include <list.h>
#include <assert.h>
static List *list = NULL;
char *test1 = "test1 data";
char *test2 = "test2 data";
char *test3 = "test3 data";
char *test_create()
{
list = List_create();
mu_assert(list != NULL, "Failed to create list.");
return NULL;
}
char *test_destroy()
{
... |
/*
Copyright ⓒ 2015 grabbag contributors.
Licensed under the MIT license (see LICENSE or <http://opensource.org
/licenses/MIT>) or the Apache License, Version 2.0 (see LICENSE of
<http://www.apache.org/licenses/LICENSE-2.0>), at your option. All
files in the project carrying such notice may not be copied, modified,
or... |
<gh_stars>0
#
# Copyright 2018 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 appli... |
class BlacklistEntry:
"""Defines a import blacklist entry."""
def __init__(self, alternative, modules_only=False, names=None, ignore_paths=None):
"""
:type alternative: str
:type modules_only: bool
:type names: tuple[str] | None
:type ignore_paths: tuple[str] | None
... |
/**
* Indents the next text.
* @throws IOException I/O exception
*/
final void indent() throws IOException {
if(!indent) return;
if(item) {
item = false;
} else {
if(!suppress.isEmpty() && !tags.isEmpty()) {
for(final byte[] s : suppress) {
if(tags.contains(s)) return;... |
package gfu
import (
"bufio"
"fmt"
"io"
//"log"
)
type Writer bufio.Writer
type WriterType struct {
BasicType
}
func NewWriter(in io.Writer) *Writer {
return (*Writer)(bufio.NewWriter(in))
}
func (_ *Writer) Type(g *G) Type {
return &g.WriterType
}
func (_ *WriterType) Dump(g *G, val Val, out *bufio.Writer... |
<reponame>GoldenHammerSoftware/GH
// Copyright <NAME>
#pragma once
#include "GHBulletBtInclude.h"
class GHBulletBroadphaseFilter : public btOverlapFilterCallback
{
public:
virtual bool needBroadphaseCollision(btBroadphaseProxy* proxy0, btBroadphaseProxy* proxy1) const;
};
|
<filename>packages/client-web/src/Container/LoginModal/index.tsx
import React from 'react'
import {Modal} from 'antd'
import {Tabs} from 'antd'
// import { Modal, Button, message } from 'antd'
// import { throttle } from 'Utils/functions'
import LoginSection from './LoginSection'
import RegisterSection from './Register... |
/**
* Mutate the constant nodes of an Encog program. This mutation only changes
* values and does not alter the structure.
*/
public class ConstMutation implements EvolutionaryOperator {
/**
* The frequency that constant nodes are mutated with.
*/
private final double frequency;
/**
* The sigma value used... |
class MEPSystemClassification(Enum,IComparable,IFormattable,IConvertible):
"""
This enumeration is used to classify MEP connectors and systems
and drives certain behavior for a particular system type
enum MEPSystemClassification,values: CableTrayConduit (32),Communication (14),CondensateDrain (15),Cont... |
EVIDENCE FOR GENTLY SLOPING PLASMA DENSITY PROFILES IN THE DEEP CORONA: TYPE III OBSERVATIONS
Type III radio bursts are produced near the local electron plasma frequency fp and near its harmonic 2fp by fast electrons ejected from the solar active regions and moving through the corona and solar wind. The coronal bursts... |
A quantitative review of European stenonoid horses
The taxonomy of the European stenonoid horses is revised using multivariate statistical techniques in this paper. The objectives are: to identify the taxonomic status of this group; to revise the specific and subspecific diagnoses, and the valid taxa; and to analyze t... |
/**
* Refreshes all <code>FileObject</code> that represent files <code>File.listRoots()</code>
* and their children recursively.
* @since 7.7
*/
public static void refreshAll() {
final RequestProcessor.Task taskToWaitFor;
synchronized (REFRESH_RP) {
if (refreshTask != ... |
import { jsx } from '../../../../src';
import { Polar, Rect } from '../../../../src/coord';
import { Canvas, Chart } from '../../../../src';
import { Interval, Axis, Legend, Tooltip } from '../../../../src/components';
import { createContext, delay } from '../../../util';
const data = [
{ type: 'a', genre: 'Sports',... |
<gh_stars>1-10
package htpasswd
import (
"bufio"
"fmt"
"io"
"sort"
"strings"
// Namespace imports
. "github.com/djthorpe/go-errors"
)
///////////////////////////////////////////////////////////////////////////////
// TYPES
type Htgroups struct {
groups map[string][]string
users map[string][]string
}
////... |
/**
* Default correlation manager implementation works on simple in memory map for storing objects.
* Correlation key is the map key. Clients can access objects in the store using the correlation key.
*
* @author Christoph Deppisch
* @since 2.0
*/
public class DefaultCorrelationManager<T> implements CorrelationMa... |
<gh_stars>1-10
import React from 'react';
import {tSwitchTarget_app} from './index'
import ListItemInSwitch from './commons/listItemInSwitch';
import ListItemInTextField from './commons/listItemInTextField';
import Box from '@material-ui/core/Box';
import Paper from '@material-ui/core/P... |
package io.scalecube.services;
import static java.util.stream.Collectors.toMap;
import com.codahale.metrics.MetricRegistry;
import io.scalecube.services.ServiceCall.Call;
import io.scalecube.services.discovery.ServiceScanner;
import io.scalecube.services.discovery.api.ServiceDiscovery;
import io.scalecube.services.di... |
Use of Alternative Treatments by People with Multiple Sclerosis
The prevalence, predictors, and description of alternative treatment use among peo ple with multiple sclerosis (MS) have not been well studied despite interest and con cern about such use among health care professionals and people with MS. The goal of thi... |
import type { RouteMatcher } from '../route-matcher';
import type { MatrixRoute } from './matrix-route';
/**
* Builds matrix route matcher that matches a matrix attribute.
*
* @param name - Required matrix attribute.
* @param value - A value the attribute should have. Or nothing to just require the attribute to pr... |
<filename>gen/transports/grpc/grpc.go
package kafka_grpctransport
import (
"fmt"
grpctransport "github.com/go-kit/kit/transport/grpc"
context "golang.org/x/net/context"
endpoints "github.com/moul/kafka-gateway/gen/endpoints"
pb "github.com/moul/kafka-gateway/gen/pb"
)
// avoid import errors
var _ = fmt.Errorf
... |
<filename>net/diagnostics/netdiag/tfschar.h
//============================================================================
// Copyright (C) Microsoft Corporation, 1997- 1999
//
// File: tfschar.h
//
// String functions that are used in general for TFS code.
//
// History:
//
// 05/28/97 <NAME> Created.
//... |
////////////////////////////////////////////////////////////////////
// Function: Filename::set_extension
// Access: Published
// Description: Replaces the file extension. This is everything after
// the rightmost dot, if there is one, or the empty
// string if there is not.
////... |
// Single delete should not cancel out values that not visible to the
// same set of snapshots
TEST_F(CompactionIteratorWithSnapshotCheckerTest,
SingleDeleteAcrossSnapshotBoundary) {
AddSnapshot(2, 1);
RunTest({test::KeyStr("a", 2, kTypeSingleDeletion),
test::KeyStr("a", 1, kTypeValue)},
... |
n,m,k=map(int,raw_input().split());
print n%2*min(min(list(map(int,raw_input().split()))[0::2]),m/(n/2+1)*k)
|
// EndModule closes the current module definition if the module is a child module and clears the generator's module
// field.
func (g *generator) EndModule(m *il.Graph) error {
if !g.isRoot() {
g.Indent = g.Indent[:len(g.Indent)-4]
g.Printf("};\n")
}
g.module = nil
return nil
} |
/*
* File: main.cpp
* Author: andrew
*
* Created on 17 Февраль 2012 г., 19:58
*/
#include<stdio.h>
#include <iostream>
#include<algorithm>
#include <vector>
#define Forn(i,n) for(int i=0;i<(n);i++)
using namespace std;
struct info
{
string nm;
int girl,pizza,taxi;
};
int mgir... |
<reponame>calmsacibis995/minix
/* $NetBSD: test_engine_dso.c,v 1.1.1.2 2014/04/24 12:45:30 pettai Exp $ */
/*
* Copyright (c) 2006 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... |
#include <iostream>
using namespace std;
int main()
{
int q,w,e,r,t,n,m,c;
cin>>n>>m>>r;
int a[51],s[51];
c=r; t=0; w=10001;
for (q=1; q<=n; q++) cin>>a[q];
for (q=1; q<=m; q++) cin>>s[q];
for (q=1; q<=m; q++) if (s[q]>t) t=s[q];
for (q=1; q<=n; q++) if (c<t*(r/a[q])+r%a[q]) c=t*(r/a[q])+r%a[q];
cout<<... |
<reponame>xhunmon/AFPlayer
/**
* description: 使用ffmpeg对音频数据进行重采样 <br>
*
* @author 秦城季
* @email <EMAIL>
* @blog https://qincji.gitee.io
* @date 2021/2/10
*/
#include "audio_swr.h"
AudioSwr::AudioSwr(AVCodecContext *d, Global *g) {
decCtx = d;
global = g;
}
bool AudioSwr::isNeedSwr() {
bool needSa... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common_untrusted.gypi',
'ipc.gypi',
],
'conditions': [
['disable_na... |
/**
* Generates a visualized object between the two corners and destroys the source
*
* @param player player
* @return Rendered object
*/
public Selection renderAndDestroy(Player player) {
if (!this.manager.getWorldEditController().getLeftClickLocation(player).isPresent() || !this.manag... |
def read(self, split=None, read_options={}):
if self.splits and split is None:
raise ValueError(
"The training dataset has splits, please specify the split you want to read"
)
return self._training_dataset_engine.read(self, split, read_options) |
<reponame>Pintulalmeena/Projects
14 uid=311598
27 mtime=1430738578.001251
27 atime=1430738578.000251
|
<reponame>Mike-Neto/json-api-rs<filename>src/value/collections/map.rs
//! A hash map implementation with consistent ordering.
//!
//! The types in this module are commonly used as the underlying data structure
//! of arbitrary objects found in JSON API data.
use std::fmt::{self, Debug, Formatter};
use std::hash::Hash;... |
/**
* Change the inventory source (dangerous).
*
* @param source new inventory source
* @return this SettingsBuilder.
* @see Settings.InventorySettings#source
*/
public SettingsBuilder inventorySource(String source)
{
inventorySource = source;
return this;
} |
<gh_stars>10-100
import { ethers } from "ethers";
import { Contract } from "./Contract";
import { Sep20 } from "./Sep20";
import { RegTestSmartBchWallet } from "./SmartBchWallet";
describe(`Test Ethereum functions`, () => {
test.skip("Test eth mainnet contract", async () => {
const abi = Sep20.abi;
const co... |
package com.g2forge.enigma.bash.model.statement.redirect;
import org.junit.Test;
import com.g2forge.alexandria.test.HAssert;
import com.g2forge.enigma.bash.convert.BashRenderer;
import com.g2forge.enigma.bash.model.BashScript;
import com.g2forge.enigma.bash.model.statement.BashCommand;
import com.g2forge.enigma.bash.... |
#!/usr/bin/env python
# coding: utf-8
# In[1]:
'''
All labeled videos in PA-HMDB51 are used as testing set.
The rest videos in HMDB51 are used as training set.
This script gets the file names of PA_HMDB51 dataset.
'''
import numpy as np
import matplotlib.pyplot as plt
plt.style.use(['/Users/wuzhenyu/.matplotlib/st... |
<gh_stars>0
import { DiscoveryService } from '@golevelup/nestjs-discovery'
import { Injectable, Logger, OnModuleInit } from '@nestjs/common'
import { ModuleRef } from '@nestjs/core'
import { AmqpConnectionManager } from 'amqp-connection-manager'
import {
PUBLISH_EXCHANGE_CONTEXT_METADATA_TOKEN,
PUBLISH_EXCHANGE_MET... |
/**
* Determine if MobileDirectory should use mock data sources
*
* @return True if MobileDirectory should use mock data sources
*/
public boolean isMocking() {
boolean res = getIsMocking();
Log.d(C.TAG, "Using mock data: " + res);
return res;
} |
from autoarray.util import array_util as array
from autoarray.util import binning_util as binning
from autoarray.util import fit_util as fit
from autoarray.util import grid_util as grid
from autoarray.util import mask_util as mask
from autoarray.util import sparse_util as sparse
from autoarray.util import pixeliz... |
/**
* Add a single card to this set. The hand parser will keep track of the suit and value.
*
* @param card
*/
public void addCard(final Card card) {
final int suit = card.getSuit().ordinal();
final int height = card.getHeight().ordinal();
decks[suit][height]++;
suitCount[suit]++;
valueCount[h... |
**Begin Reading**
Table of Contents
A Preview of _Murder in the House of Angels_
Copyright Page
In accordance with the U.S. Copyright Act of 1976, the scanning, uploading, and electronic sharing of any part of this book without the permission of the publisher constitute unlawful piracy and theft of the author's i... |
<filename>todos/audioFilesWork/concatAudios.py
'''
author: @sunil-dhaka
todo: use tqdm to show fancy progress bar for file reading and concatening
added: automatically convert non-wav files into wav for wave method << done
todo: add low quality options for wav conversion in toWAV()
'''
from moviepy.editor import conca... |
A 16-year-old science genius believes he may have made a breakthrough in treating an aggressive form of breast cancer.
Krtin Nithiyanandam from Epsom has claimed to have found a way to make triple negative breast cancer, a subset of the disease that affects about 7,500 women every year, respond to traditional cancer d... |
//
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
//
// GENERATED USING @colyseus/schema 1.0.28
//
import { Schema, type, ArraySchema, MapSchema, SetSchema, DataChange } from '@colyseus/schema';
import { Card } from './Card'
import { CardCollection } fro... |
<gh_stars>0
#!/usr/bin/env python
"""
A simple tool to select certain parts of the Chinese Treebank.
cat `tools/filerange.py 271-300:528-554:594-596:1040-1042 ctb/chtb_*.conll` >ctb/test.conll
"""
import sys
import re
RE_NUMBER = re.compile(r'(\d+)')
ranges = [xrange(int(s.split("-")[0]), int(s.split("-")[1])+1)
... |
/// Returns the selection of language(s) (standard and choosen) that a
/// specific race is supposed to comprehend.
pub fn from_race(race: Race) -> Selections<Language> {
let mut s = Selections::new(
vec![Language::Common], 0, Language::all());
match race {
Race::Aasimar => s.a... |
import {
prints,
printui,
print, printString, printArray, printHex, printi,
printI128,
printU128,
printsf,
printdf,
printqf,
printn,
Float128,
Contract,
} from "as-chain";
@contract
class MyContract extends Contract{
@action("test")
testPrint(
a1: Float128
... |
// We have "USE local => use" in this module. If attr was added locally
// (i.e. on local but not on use), also write it out in the mod file.
void ModFileWriter::PutUseExtraAttr(
Attr attr, const Symbol &local, const Symbol &use) {
if (local.attrs().test(attr) && !use.attrs().test(attr)) {
PutLower(useExtraAt... |
<reponame>eashman/kittentest<filename>src/components/menu/index.ts
export {
LayoutsList,
LayoutsListProps,
LayoutsListItemData,
} from './layoutsList';
export {
ComponentsList,
ComponentsListProps,
ComponentsListItemData,
} from './componentsList';
|
<reponame>danbirle/ionic-cli
describe('@ionic/utils-process', () => {
describe('createProcessEnv', () => {
describe('non-windows', () => {
const mock_terminal = { TERMINAL_INFO: { windows: false } };
jest.resetModules();
jest.mock('@ionic/utils-terminal', () => mock_terminal);
const pro... |
<reponame>ozanh/yaegi
package interp
import (
"fmt"
"go/ast"
"go/parser"
"go/scanner"
"go/token"
"reflect"
"strconv"
"sync/atomic"
)
// nkind defines the kind of AST, i.e. the grammar category
type nkind uint
// Node kinds for the go language
const (
undefNode nkind = iota
addressExpr
arrayType
assignStm... |
[Haskell-cafe] Haskell opportunity at investment bank
Hello, I'm looking for a developer with expertise in Haskell for an investment bank in London. The role will involve working on a multi-asset, multi-region, pricing, risk and trade lifecycle solution for the wholesale banking division. Solutions are developed using... |
<filename>src/testing/servermanager.py
import subprocess
import time
import requests
import requests.exceptions
class ServerManager:
####################################################################################################################
# Constructor.
########################################... |
/**
* Stop Service
* Clears and removes auth listener
* Should be called in Activities onStop() method
*/
@Override
public void stop() {
if (mAuthListener != null) {
mAuth.removeAuthStateListener(mAuthListener);
}
} |
<filename>src/actions/list/delete-list.action.ts
import "source-map-support/register";
import ResponseModel from "../../models/response.model";
import DatabaseService, {
DeleteItem,
QueryItem,
} from "../../services/database.service";
import {
createChunks,
databaseTables,
validateRequest,
} from "../../util... |
/**
* 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 licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/// Returns a reference to the slot at the given SlotIndex
/// if such a slot exists. Otherwise, an error is returned.
pub fn slot(&self, index: &SlotIndex) -> Result<&Option<u32>, Error> {
self.items
.get(index)
.map(|i| Ok(i))
.unwrap_or_else(|| Err(Error::InvalidSlotIndex)... |
/**
* A listener that will subscribe to test execution and dump
* informational info about the progress to the console or a text
* file.
*/
@SuppressWarnings("resource")
public class TextReport implements AggregatedEventListener {
/*
* Indents for outputs.
*/
private static final String indent = " ... |
Contrast transesophageal echocardiography using the Acunav ultrasound catheter through the mouth way as a guide to percutaneous closure of patent foramen ovale.
AIM
Contrast-enhanced transesophageal echo-cardiography (c-TEE) represents the gold standard in the diagnosis of patent foramen ovale (PFO) but it is not alwa... |
Being With the Patient: The Use of “Clinical Evidence,” Reconsidered
Abstract Our objective was to review the use in psychiatry of data arising from interaction with the patient, here called “clinical evidence.” We conducted a clinical and historical review. Data from interactions with patients are increasingly margin... |
/// Creates a new CryptoConfig in a temporary directory for testing.
/// The directory has the permissions required for storing crypto state (see
/// [`Self::check_dir_has_required_permissions`]) and will be automatically
/// deleted when the returned `TempDir` goes out of scope.
/// Panics if creating the directory or... |
Highly malignant disease in childhood-onset arrhythmogenic right ventricular cardiomyopathy
Abstract Aims This study aimed to explore the incidence of severe cardiac events in paediatric arrhythmogenic right ventricular cardiomyopathy (ARVC) patients and ARVC penetrance in paediatric relatives. Furthermore, the phenot... |
/*
* Copyright: Copyright 2015 (c) Parametric Technology GmbH
* Product: PTC Integrity Lifecycle Manager
* Author: <NAME>, Senior Consultant ALM
* Purpose: Custom Developed Code
* ************** File Version Details **************
* Revision: $Revision$
* Last changed: $Date$... |
#ifndef split_h
#define split_h
#include <vector>
#include "fpClassTotals.h"
#include "growingTreeElement.h"
#include "fpSplitInfo.h"
namespace fp {
template<typename T>
class fpSplit{
protected:
double overallImpurity;
fpClassTotals leftClasses;
fpClassTotals rightClasses;
std::vector<in... |
<filename>src/np/blockchain/session1/CeaserCipher.java
package np.blockchain.session1;
import np.blockchain.session1.Cipher;
public class CeaserCipher extends Cipher{
byte shift_value;
CeaserCipher(int shift){
shift=(byte)shift;
}
@Override
public byte[] encrypt(byte[] data) {
... |
//
// Get a value from a register.
//
uint8_t DS3234RealTimeClock::GetRegisterValue(const Registers reg)
{
uint8_t result;
m_Port->ChipSelect(LOW);
m_Port->WriteRead(reg);
result = m_Port->WriteRead(0x00);
m_Port->ChipSelect(HIGH);
return(result);
} |
/**
* :: DeveloperApi ::
* A SparkListener that prepares information to be displayed on the BlockManagerUI.
* <p>
* This class is thread-safe (unlike JobProgressListener)
*/
public class StorageListener extends org.apache.spark.storage.BlockStatusListener {
public StorageListener (org.apache.spark.storage.Sto... |
4-Vinylpyridine-Modified Nickel and Cobalt Dibenzoylmethanates as New Hosts: Inclusions with Carbon Tetrachloride and Chlorobenzene
Abstract Bis(4-vinylpyridine)bis(dibenzoylmethanato)metal(II), (M = Ni(II), Co(II); ViPy = 4-Vinylpyridine; DBM = C6H5COCHCOC6H5 −, dibenzoylmethanate) is a new metal-complex host. Its ... |
<reponame>harrybrwn/vine
package logging
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"os"
"os/exec"
"regexp"
"strconv"
"strings"
"github.com/harrybrwn/config"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"gopkg.in/natefinch/lumberjack.v2"
)
// NewLogCmd creates a new log command from a log f... |
def normalize(vectors, axis=-1):
n = norm(vectors, axis=axis, keepdims=True)
return np.where(n <= 0, 0, vectors / n) |
RANCHI: The place British used to execute freedom fighters in pre-independent India now hosts world's largest tricolour on tallest flag-post, the 66x99 feet flag, 493 feet above surface on a 293 feet mast at Ranchi's popular Pahari Mandir. The flag, defence minister Manohar Parrikar hoisted on Saturday, flutters in the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.