content stringlengths 10 4.9M |
|---|
def mapping_sense(metrics_df, cohort_s=None, cohort_order=None, cohort_colors=None, date_s=None, width=0.8,
dl=0.75, aw=4, dr=1.5, db=0.5, ah=2, dt=0.25, ds=0.066, dc=0.1):
sorted_ix = sort_samples(metrics_df.index, cohort_s=cohort_s,
cohort_order=cohort_order, date_s=... |
/**
* Try to place the given {@code tree} somewhere before or after this tree within its
* parent.
*
* @param tree the offered tree.
* @throws NullPointerException if the given {@code tree} is null.
* @throws IllegalTreeException if the given {@code tree} is not a valid sibling
* ... |
export const validatePassword = (value: string) => {
switch (true) {
case !value:
return `Password is required`;
case value.length < 3:
return `Password is too short`;
case value.length > 100:
return `Password is too long`;
default:
return "";
}
};
|
<gh_stars>1-10
#dicionário:
#exemplo,
aluno = {
'nome' : 'vinicius',
'idade' : 19,
'vivo' : True,
#podendo adicionar mais coisas
}
print(aluno)
#vai me resultar um nome, idade e o falor true ou f#
#print específico
print(aluno['idade'])
print(aluno['nome'])
print(aluno['vivo'])
print(aluno.get('nome'))
#fo... |
<reponame>hmcts/cmc-claim-submit-domain<filename>src/test/java/uk/gov/hmcts/reform/cmc/submit/domain/samples/SamplePayment.java
package uk.gov.hmcts.reform.cmc.submit.domain.samples;
import uk.gov.hmcts.reform.cmc.submit.domain.models.payment.ReferencePayment;
import java.math.BigDecimal;
public class SamplePayment ... |
/**
* Initialize this instance with some algorithm-specific parameters.
*
* @param params The parameters.
* @throws InvalidAlgorithmParameterException If the supplied parameters
* are inappropriate for this instance.
*/
public final void init(ManagerFactoryParameters params)
throws InvalidAlgori... |
# -*-coding:utf8-*-#
import os
import pytest
import tempfile
from ffman.ffmpeg.avsubtitle import AVSubtitle
def test_addSubtitle():
pass
if __name__ == "__main__":
pytest.main() |
'''
Takes my table model and mixes them with the spotify API to grab data.
'''
# Importing what I need
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials, SpotifyOAuth
import pandas as pd
# TODO: Create Evoiroment variables for the ids...
CLIENT_ID = '305996eeec9c42cb807aebcd48a82b29'
ID = '36... |
/*
* Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
/**
* Extracts the nodeID using the service names.
* By configuration the Node Exporter (and all other) services always are named as following "node-exporter-<NODE-ID>".
* The suffix <NODE-ID> is an arbitrary string.
* @return The nodeId of this node
*/
public String extractNodeId() {
S... |
def detect_public_nested_mappings(contract):
results = []
for state_variable in contract.variables:
if state_variable.contract != contract:
continue
if state_variable.visibility != "public" or not isinstance(
state_variable.type, MappingType
):
continu... |
Arsenal Football Club paid tribute to the last link to Bedford Town’s most famous football match who died peacefully with his family around him at his home in Putnoe, aged 90.
Bernard Moore wrote his name into the annals of sporting achievement by scoring the equaliser for the non-league Eagles against the mighty Arse... |
// PrintFirst print the Person structure First value
func PrintFirst(p Person) string {
println(p.First)
return p.First
} |
/***********************************************************************
* FileRestoreWorkingDir
***********************************************************************
* SYNOPSIS: Restore the DOS working directory to what it was
* on start-up, since what we do affects our parent...
* CALLED BY: ... |
def generate_lobbyists():
all_rows = []
lobbyists = {}
SOPR_store = from_dataset_index_by(DATASET_PATH_TO['LOBBYISTS'], 3, 0)
for LID in SOPR_store.keys():
CUID_lobbyist = str(uuid.uuid4())
lobbyists[LID] = CUID_lobbyist
values = SOPR_store[LID]
SOPR_store[LID] = ';'.join... |
<reponame>huhan-123/guns
package com.stylefeng.guns.rest.common.util;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.... |
Polymorphisms of the SCN10A Gene in Patients With Sick Sinus Syndrome.
PURPOSE
To study association of rs6795970 polymorphism of SCN10A gene with development of idiopathic sick sinus syndrome (ISSS).
MATERIALS AND METHODS
We examined 109 patients with ISSS, 59 their healthy 1-st-, 2-nd-, and 3-rd-degree relatives, a... |
/**
* TestNG test case listener
*
* @author prat3ik
*
*/
public class TestcaseListener extends TestListenerAdapter {
private ScreenshotUtils screenShot;
public TestcaseListener() {
screenShot = new ScreenshotUtils();
}
@Override
public void onTestFailure(ITestResult tr) {
screenShot.takeScreenShot(tr)... |
<reponame>cseeger-epages/markdown2confluence
package main
import (
"fmt"
"io/ioutil"
"log"
"github.com/c-seeger/markdown2confluence"
)
func main() {
// initialize your confluence api
api, err := goconfluence.NewAPI("https://<your-domain>.atlassian.net", "<username>", "<password>")
if err != nil {
log.Fatal(... |
/*
* Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
*/
public void start() {
{
switch (state)
{
case 0:
setDirectionForwardColor();
state++;
break;
case 1:
... |
/**
* Process a Suspect request from another member. This may cause this member to become the new
* membership coordinator. it will to final check on that member and then it will send remove
* request for that member
*/
void processMessage(SuspectMembersMessage<ID> incomingRequest) {
if (isStopping) {
... |
// ComputeDiff allows you also write differences between objects on update operations.
// ComputeDiff not reads records from db, it used only as cache on plugin side.
// So it does not track changes outside plugin.
func ComputeDiff() Option {
return func(options *options) {
options.computeDiff = true
}
} |
<gh_stars>1-10
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
module Hasgel.Resources (
Resources(..), HasResources(..),
Programs, ProgramDesc, ShaderDesc,
withResources, emptyPrograms, loadProgram, freePrograms,
getDrawable, putDrawable, reloadFbo
) where
import Foreign (nullPtr)
i... |
import { Headers } from 'apollo-server-env';
import { GraphQLSchema } from 'graphql';
import { Trace } from 'apollo-engine-reporting-protobuf';
import { AddTraceArgs, EngineReportingOptions, SendValuesBaseOptions, VariableValueOptions } from './agent';
import { ApolloServerPlugin } from 'apollo-server-plugin-base';
exp... |
/**
* Decode an ARGB #Color from a String of either the format
* <code>#AARRGGBB</code> or <code>#RRGGBB</code>.
*
* @param s String to parse
* @return the #Color corresponding to the String.
* @throw IllegalArgumentException if the given String does not represent a #Color.
*/
public ... |
<gh_stars>0
// +build unix
package main
import (
"bytes"
"io/ioutil"
"net"
"net/url"
"os"
"testing"
)
func TestReadSocket(t *testing.T) {
tmpfile, err := ioutil.TempFile("", "")
if err != nil {
t.Fatal(err)
}
_ = tmpfile.Close()
if err := os.RemoveAll(tmpfile.Name()); err != nil {
t.Fatal(err)
}
soc... |
<filename>machine/op/microcode.go
package op
import (
"Go-SAP3/machine/types"
)
// Microcodes is the lookup table of 8085 Op Codes to cmd microinstructions.
// See Appendix 6 for full listing of 8085 Op Codes.
var Microcodes = [][]types.OctupleWord{
ACI: mcACI,
ADC_A: mcADC_A,
ADC_B: mcADC_B,
ADC_C: ... |
#include <bits/stdc++.h>
using namespace std;
const int MX = 1e6;
int t;
int a[MX + 10];
long long sum(long long n, long long m, long long x, long long s0) {
long long ss = n * s0 + m * (x*(x - 1) / 2 + (n - x) * (n - x + 1) / 2);
return ss;
}
long long sum0(long long m, long long y) {
long long s0 = y*(y-... |
// update disk status should remove old index and insert new index
func (d *DiskTable) UpdateDiskStatus(diskID proto.DiskID, status proto.DiskStatus) error {
key := proto.EncodeDiskID(diskID)
value, err := d.tbl.Get(key)
if err != nil {
return errors.Info(err, "get disk failed").Detail(err)
}
info, err := decode... |
For the word “Muzak,” the long elevator ride is finally over.
Not that lilting instrumentals or mixes of pop hits are likely to disappear from restaurants, shops and offices. But the Muzak name — long part of the American vernacular, if sometimes as the butt of jokes — will be retired this week as part of a reorganiza... |
Special Issue on Histotripsy: approaches, mechanisms, hardware, and applications
Histotripsy is a therapeutic ultrasound technology to liquefy tissue into acellular debris using sequences of high-power focused ultrasound pulses. Research on histotripsy has been rapidly growing in the past decade; newer applications ar... |
<filename>src/api/flow/launched/list.ts
import request from "@/api/client";
import { DraftFlowListItem, LatestRun, SearchOptions } from "../common";
export type LaunchedFlowListItem = DraftFlowListItem & {
latest_run: LatestRun;
};
export function getList({ contains = "" }: Partial<SearchOptions>) {
return request... |
<reponame>nagasudhirpulla/wrldc_temp_monitoring<filename>src/app/sendSmsToPerson.py
from src.config.appConfig import PersonInfo
from src.services.smsSender import SmsApi
def sendSmsToPerson(smsUsername: str, smsPass: str, prsn: PersonInfo, messageBody: str) -> bool:
"""Send SMS to a Person
Args:
smsU... |
def _adjust_truism(t):
if t.args[0].cardinality == 1 and t.args[1].cardinality > 1:
swapped = Balancer._reverse_comparison(t)
return swapped
return t |
def SetRDFProperties(self, subject, propertylist=None, ignorepredicates=None, namespacelist=None):
logger = logging.getLogger("pynt.input")
subjecturi = rdflib.URIRef(subject.getURIdentifier())
tuples = list(self.graph.predicate_objects(subjecturi))
logger.debug("Found %d RDF predicates ... |
//package CodeforcesCodes.PracticeProblems;
import java.util.Scanner;
public class ThereAreTwoTypesOfBurgers {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int test = sc.nextInt();
while(test>0)
{
int buns=sc.nextInt();
... |
#include <bits/stdc++.h>
#define debug(...) {fprintf(stdout, __VA_ARGS__);}
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
#define pb push_back
const int N =1e5+7;
char str[2][N];
int n[2];
int main () {
scanf(" %s %s", str[0], str[1]);
n[0] = strlen(str[0]);
n[1] = strlen(st... |
Hawaii passed a law making it the first state to put gun owners on a federal criminal record database and monitor them.
Hawaii Governor David Ige signed the bill Thursday, which allows police to enroll firearms applicants and individuals who are registering their firearms into “Rap Back,” a Federal Bureau of Investiga... |
/**
* Simulates a simple Redis subscriber.
*/
public class RedisSubscriber extends TestClient implements Runnable
{
boolean checkPayload = true;
JedisPool jedisPool = new JedisPool();
Jedis jedis = null;
String channel = null;
RedisSubscriber(String id, Str... |
def message_acceptable(self, dest_address):
if self.state != j1939.ControllerApplication.State.NORMAL:
return False
if dest_address == j1939.ParameterGroupNumber.Address.GLOBAL:
return True
return (self.device_address == dest_address) |
/*
* 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 ... |
package com.simibubi.create.content.contraptions.components.saw;
import java.util.List;
import java.util.Set;
import java.util.function.Supplier;
import javax.annotation.ParametersAreNonnullByDefault;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllRecipeTypes;
import com.simibubi.create.compat.r... |
package com.hectorlopezfernandez.pebble.boot.test;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
... |
def handleTrackButton(self):
if self.trackToggle == TrackToggle.OFF:
self.trackToggle = TrackToggle.ON
print("Track Toggle ON")
self.parent().drive.track()
elif self.trackToggle == TrackToggle.ON:
self.trackToggle = TrackToggle.OFF
print("Track... |
<filename>generators/interface/templates/interface.ts
/**
* Interface for classes that represent a <%= name %>.
* @interface <%= name %>
<% properties.forEach( function(property){ %> * @property {<%= property.type %>} <%= property.name %> - <%= property.description %>
<% } ); %>*
* @author <%= author %>
* @copyrigh... |
/**
*
* @param jvmArgs the jvm args to add
* @return the {@link Builder}
*/
public Builder jvmArgs(List<String> jvmArgs)
{
config.jvmArgs = jvmArgs;
return this;
} |
/*
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
// GetEnumerations from the CMS based on enumerations defined in your config
func (g *GraphCMS) GetEnumerations() map[string]interface{} {
enums := make(map[string]interface{})
enumConfig := viper.GetStringSlice("backups.enumerations")
for _, name := range enumConfig {
enums[name] = g.GetEnumeration(name)
}
retu... |
def addHandler(cls, handler, *args):
logger.debug("Adding handler {}.{}{} to '{}'".format(handler.im_class.__name__, handler.__name__, args, cls.__name__,))
@wraps(handler)
def eventHandler(ev):
params = []
for arg in args:
params.append(ev.__getattribute_... |
<gh_stars>10-100
#include "TestUtil.h"
#include <array>
#include <iostream>
#include <string>
#include <unordered_set>
#include <vector>
#include "OsVersion.h"
#include "NtHandleQuery.h"
#include "RemoteHandle.h"
#include "RemoteWorker.h"
#include "UnicodeConversions.h"
#include "Util.h"
#include <DebugClient.h>
#in... |
/**
* Test equals and hash code methods.
*/
public void testEquals()
{
PersonName name1 = new PersonName();
name1.setFamilyName("familyName");
name1.setForename("forename");
name1.setInitials("n.d.s");
name1.setMiddleName("MiddleName");
name1.setNumeration("III");
name1.setSurname("surname");
Per... |
/**
* Created by arkady on 29/02/16.
*/
public class Images extends UserProfileController<MrBlackUserProfile> {
private S3 s3;
@Inject
public Images(S3 s3) {
this.s3 = s3;
}
@RequiresAuthentication(clientName = "IndirectCookieClient,ParameterClient")
public Result upload() {
Http.MultipartFormData body =... |
/**
* @return {@code true} if {@link #LAST_TEST_SYMBOL} found at the last index in {@link #testClasses}.
*/
private boolean isQueueFull()
{
Both lines can be Java Concurrent, but the last operation is atomic with optimized search.
Searching index of LAST_TEST_SYMBOL in the only last few ... |
Yesterday, we discussed how dreadful Miami’s secondary was a year ago. Today, we move over to the skill players on the other side of the ball.
The Dolphins’ passing attack wasn’t inept in 2012, but they did possess one of the blandest corps of pass catchers in the entire league.
Not being able to stop the pass and la... |
/**
* About UI component. Creates the about UI and handles its minimal logic.
*
* @author Boehrsi
* @version 1.1
*/
public class About {
final MainUi.OnWindowCloseListener onWindowCloseListener;
public About(Language language, MainUi.OnWindowCloseListener onWindowCloseListener) {
this.onWindowClos... |
package events
type Emitter map[EventType][]func(EventInterface)
func (e Emitter) On(eventType EventType, listener func(event EventInterface)) {
e[eventType] = append(e.Listeners(eventType), listener)
}
func (e Emitter) Emit(eventType EventType, event EventInterface) {
for _, listener := range e.Listeners(eventTyp... |
<filename>test/RenamingSpec.hs<gh_stars>1-10
module RenamingSpec (main, spec) where
import Test.Hspec
import Language.Haskell.Refact.Refactoring.Renaming
import TestUtils
import System.Directory
-- import Language.Haskell.GhcMod
-- ---------------------------------------------------------------------
m... |
/**
* Test the starting index mappings.
*/
public void testStartMappings() {
assertEquals(0, collectionList.childStartingIndex(0));
Jesse Wilson
assertEquals(DEV_ROB.length(), collectionList.childStartingIndex(1));
Jesse WilsonKevin Maltby
assertEquals(DEV_ROB.length() + DEV_JESSE.length(),
collectio... |
// VideoStreams returns all the
// video streams of the media file.
func (media *Media) VideoStreams() []*VideoStream {
videoStreams := []*VideoStream{}
for _, stream := range media.streams {
if videoStream, ok := stream.(*VideoStream); ok {
videoStreams = append(videoStreams, videoStream)
}
}
return videoSt... |
/**
* Create a (currently very simple) XLSX workbook that contains given data.
*
* @param headers
* if null, header will be omitted
* @param rows
* @param headerStyle
* CellStyle to be used for header cells. If null, a default will
* be used.
* @param cellSty... |
Since the middle of 2015, meteorologists have warned that El Niño could bring unusually wet weather to Paraguay, Uruguay, Argentina, and southern Brazil. The warnings have proven to be prescient.
In December and January, heavy summer rains swamped this part of South America causing the Uruguay, Paraguay and Paraná riv... |
def pre_processing(task):
premises = []
for i in range(0, len(task)-1):
premises.append('and')
for sublist in task:
for items in sublist:
premises.append(items)
return premises |
<reponame>Coly010/router
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { asyncScheduler, EMPTY as empty, of } from 'rxjs';
import {
catchError,
debounceTime,
map,
skip,
switchMap,
takeUntil,
} from 'rxjs/operators';
import { Book } from '... |
// Computes and returns block nominal speed based on running condition and override values.
// NOTE: All system motion commands, such as homing/parking, are not subject to overrides.
float plan_compute_profile_nominal_speed(plan_block_t* block) {
float nominal_speed = block->programmed_rate;
if (block->motion.r... |
As Justice Antonin Scalia has said, the court’s job is to ascertain “objective law,” not determine “some kind of social consensus,” which I believe is the job of the judges on American Idol.
At VDARE.com, we wrote a fair amount about Antonin Scalia, nothing more incisive than Ann Coulter's comment In the light of Scal... |
/**
* @param key The key to create the node for
* @param value The value to create the node for
* @return A new node for the tree
*/
default N createNode(K key, V value) {
N ret = createNode(key);
ret.getValue().setValue(value);
return ret;
} |
package resources
var AllFileNames = []string{
"/editor.html",
"/viewer.html",
"/js/ace/theme-chrome.js",
"/js/ace/mode-javascript.js",
"/js/ace/LICENSE",
"/js/ace/mode-html.js",
"/js/ace/ace.js",
"/js/ace/mode-css.js",
"/js/editor.js",
}
|
<gh_stars>0
//
// このファイルは自動生成です。
// 変更したい場合は ruby_scripts/domain/dairy_converter.rb を更新してください。
//
import React from 'react';
import { Link } from 'react-router-dom';
import 'components/diary.scss';
import 'components/syntaxHighlight.scss';
const Diary20190626: React.FC = () => {
return (
<div className='diary'>
... |
use std::sync::Arc;
use txrx::traits::{Receiver, Scheduler, Sender, Work};
pub use rayon;
#[derive(Clone)]
pub struct PoolScheduler {
pool: Arc<rayon::ThreadPool>,
}
impl PoolScheduler {
#[inline]
pub fn new(pool: Arc<rayon::ThreadPool>) -> Self {
Self { pool }
}
}
impl Sender for PoolSchedu... |
<reponame>microsoftgraph/msgraph-beta-sdk-go
package virtualendpoint
import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
... |
<reponame>WhackoJacko/Jetee
# coding=utf8
from __future__ import absolute_import
import sys
import argparse
import warnings
from ansible import utils
from jetee.common.shell import SSHClient
from jetee.service.deployment_managers import DockerServiceDeploymentManager
from jetee.project.deployment_managers import Proj... |
# coding=utf-8
# Copyright 2021 The Uncertainty Baselines 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 ap... |
<filename>main_.py<gh_stars>1-10
from aiogram.dispatcher.filters import Text
from aiogram.dispatcher import Dispatcher
from aiogram import types
from misc import bot
from config import USERID
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.servi... |
def package_count_for_source(source_id):
fq = 'harvest_source_id:"{0}"'.format(source_id)
search_dict = {'fq': fq}
context = {'model': model, 'session': model.Session}
result = logic.get_action('package_search')(context, search_dict)
return result.get('count', 0) |
/// Check if `block_header_time` is less than or equal to
/// 2 hours in the future, according to the node's local clock (`now`).
///
/// This is a non-deterministic rule, as clocks vary over time, and
/// between different nodes.
///
/// "In addition, a full validator MUST NOT accept blocks with nTime
/// more than tw... |
Quantum Mechanics/Molecular Mechanics Study on the Photoreactions of Dark- and Light-Adapted States of a Blue-Light YtvA LOV Photoreceptor.
The dark- and light-adapted states of YtvA LOV domains exhibit distinct excited-state behavior. We have employed high-level QM(MS-CASPT2)/MM calculations to study the photochemica... |
def workflow_stddft(config: DictConfig) -> None:
return select_orbitals_type(config, run_workflow_stddft) |
/**
* The type Product controller.
* @author yu 2021/7/24.
*/
@RestController
@RequestMapping("/api/v1")
public class ProductController {
@Resource
private ProductRepository productRepository;
/**
* Create Product.
*
* @param product the Product
* @return The Product
*/
@Pos... |
/** @jsx h */
import { h } from 'preact'
import styles from './icon.scss'
export interface IconProps {
children: string
}
export function Icon({ children }: IconProps): h.JSX.Element {
return (
<svg class={styles.icon} xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d={children} fill-rule... |
// Dictionary returns discionary for given market.
func (a *assetPairs) Dictionary(market string) (*Dictionary, error) {
var d Dictionary
if err := get(a.client, requestPath+"AssetPairs/dictionary/"+market, &d); err != nil {
return nil, err
}
return &d, nil
} |
<reponame>ghe-saml-test-2/TypeScript-examples
import { Drawable } from './ex2-interfaces';
enum Color { Red, Green, Blue }
let check = true;
const defaultColor: Color = Color.Red;
function draw(target: Node, ...items: Drawable[]): void { }
|
<reponame>counterbeing/pact-stub-server
use quickcheck::{TestResult, quickcheck};
use rand::Rng;
use super::{integer_value, regex_value};
use expectest::prelude::*;
use pact_matching::s;
#[test]
fn validates_integer_value() {
fn prop(s: String) -> TestResult {
let mut rng = ::rand::thread_rng();
if... |
<gh_stars>1-10
import * as React from 'react'
import { findDOMNode } from 'react-dom'
import * as classnames from 'classnames'
import moment from 'moment'
import { Tooltip, Icon } from 'antd'
import Draggable from 'libs/react-draggable'
import Video from 'components/Video'
// @TODO contentMenu
// import Dropdown from... |
/**
* XACML 3 implementation of <code>AbstractResult</code>
*/
public class Result extends AbstractResult {
/**
* Set of applicable policy references
*/
Set<PolicyReference> policyReferences;
/**
* Set of attributes that returns to PEP. mainly used in multiple decision
* profile
*/
Set<Attributes> att... |
Dynamical star-disk interaction in the young stellar system V354 Mon
The main goal of this work is to characterize the mass accretion and ejection processes of the classical T Tauri star V354 Mon, a member of the young stellar cluster NGC 2264. In March 2008, photometric and spectroscopic observations of V354 Mon were... |
def machine_name_validator(provider, name):
if not name and provider != Provider.EC2.value:
raise MachineNameValidationError("machine name cannot be empty")
if provider is Container_Provider.DOCKER:
pass
elif provider in {Provider.RACKSPACE_FIRST_GEN.value,
Provider.RAC... |
/**
* Handler which creates tracing data for all server requests. It should be added to
* {@link io.vertx.ext.web.Route#handler(Handler)} and {@link io.vertx.ext.web.Route#failureHandler(Handler)} as the
* first in the chain.
*
* @author Pavol Loffay
*/
public class TracingHandler implements Handler<RoutingContex... |
#import "XDGPUImageFilter.h"
@interface XDGPUImageBrightnessFilter : XDGPUImageFilter
{
GLint brightnessUniform;
}
// Brightness ranges from -1.0 to 1.0, with 0.0 as the normal level
@property(readwrite, nonatomic) CGFloat brightness;
@end
|
def walkSaveSet( self ):
for fn in self._files:
fnf = join(self.rootpath,fn)
for sfn in glob(fnf):
fna = abspath( sfn )
if not self.checkExclude(fna):
yield sfn,fna
else:
_log.debug( 'Exclude %s',... |
<reponame>Teaspot-Studio/epsylon<filename>src/client/Game.hs<gh_stars>0
{-# LANGUAGE Arrows #-}
module Game(
mainWire
, Game(..)
) where
import Control.Wire
import Prelude hiding ((.), id)
import Data.Int
import qualified Graphics.UI.GLFW as GLFW
import Control.Monad.IO.Class
import Linear
import Game.Core
i... |
Ab initio
Investigation of Interfacial Thermal Transport for HMX‐PVDF Interface
: The theoretical investigation of heat dissapition for polymer-bonded explosives (PBXs) is in high demand in explosive design in terms of safety and realibility, particularly as lack of effective expreimental measurments. Here, we invest... |
use crate::ast::CodeGen;
use crate::ast::statements::assign_object::AssignObject;
use crate::ast::statements::break_object::BreakObject;
use crate::ast::statements::call_object::CallObject;
use crate::ast::statements::if_object::IfObject;
use crate::ast::statements::let_object::LetObject;
use crate::ast::statements::lo... |
# coding=utf8
from typing import Dict, Any
from overrides import overrides
from torch.optim.lr_scheduler import MultiStepLR
from allennlp.training.learning_rate_schedulers import LearningRateScheduler
class PyTorchMultiStepLearningRateSchedulerWrapper(LearningRateScheduler):
def __init__(self, lr_scheduler: Mu... |
package net.avalara.avatax.rest.client;
import net.avalara.avatax.rest.client.enums.DocumentType;
import net.avalara.avatax.rest.client.models.ErrorResult;
public class AvaTaxClientException extends Exception {
private ErrorResult errorResult = null;
private Object erroneousRequest;
public AvaTaxClientE... |
def _load_config(self, resource_type, resource_sub_types, config_data):
in_dir = os.path.join(os.path.dirname(__file__), "config")
for sub_type in resource_sub_types:
config_file = os.path.join(in_dir, f"{resource_type}-{sub_type}.config.json")
with open(config_file, "r") as conf... |
package org.jboss.as.quickstarts.tasks;
import javax.ejb.Stateful;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;
/**
* This class uses CDI to... |
Comparing Outcomes of Active Student and Observer Roles in Nursing Simulation.
BACKGROUND
Because of large class sizes and limited resources, students participating in high-fidelity simulation experiences may be assigned to an observer role as opposed to an active nursing role.
PURPOSE
Educators need to determine if... |
//: Exclude a Z order layer from display.
bool GUIMarkupCanvasBodyC::GUIExcludeZOrder(IntT zOrder) {
RavlAssertMsg(Manager.IsGUIThread(),"Incorrect thread. This method may only be called on the GUI thread.");
bool ok = removeZOrder.Insert(zOrder);
if(ok)
{
GUIRefresh();
}
return ok;
} |
def _run(self, args: List[str], sim_file: Path,
as_stdin: bool = False) -> Result:
cwd = Path.cwd()
try:
sim_file = sim_file.relative_to(cwd)
except ValueError:
pass
if not as_stdin:
result = run([str(self._sc_path), *args, str(sim_file)],... |
Pembrolizumab-Induced Autoimmune Grade 4 Neutropenia in a Patient With Advanced Bladder Cancer: A Case Report
Neutropenia is amongst the rare, but potentially life-threatening complications of immune checkpoint inhibitors (ICI). Awareness about this dangerous toxicity and its adequate treatment since early detection i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.