content
stringlengths
10
4.9M
A closed simple head model:experimental and numerical analysis k t the Technische Universiteit Eindnoven a research program is set up with the title "Determination of the dynamical behavior of brain tissue during impact loading". A numerical head model is developed in MADYMO, to determine the local response during an ...
def make_row_group(f, data, schema, compression=None, stats=True): rows = len(data) if rows == 0: return if isinstance(data.columns, pd.MultiIndex): if any(not isinstance(c, (bytes, str)) for c in itertools.chain(*data.columns.values)): raise ValueError('Column names must be mult...
package logkit import ( "context" "testing" "time" ) /* logkit.Debug(ctx, "blfdjaklfdjlkdfsjkafjkldfjafds klfdsj aklfd ", args...) logkit.Debugf(ctx, "blfdjaklfdjlkdfsjkafjkldfjafds klfdsj aklfd ", args...) logkit.Info(ctx, "blfdjaklfdjlkdfsjkafjkldfjafds klfdsj aklfd ", args...) logkit.Infof(ctx, "blfdjaklfd...
#include <iostream> using namespace std; long long int sn=0,sh=0,f=0,p=0,c=0,b=0,m,i,t,n,a,z; // string h;vector <pair<int,int>> d; int main(){ long long int x[2000000]; cin>>n;b=n-1;z=n; for(int i=0;i<n;i++) cin>>x[i]; while(c<b){ a=x[c]; x[c]=x[b]; ...
/** * Assert actual data type segment is correct with expected date type. * * @param assertContext assert context * @param actual actual data type statement * @param expected expected data type */ public static void assertIs(final SQLCaseAssertContext assertContext, final DataTypeSegment a...
/* Shut down PBX by freeing it from memory. */ void pbx_shutdown(PBX *pbx) { for (int i = 0; i < PBX_MAX_EXTENSIONS + 4; i++) { if ((pbx -> client_TUs[i]) != NULL) { shutdown((pbx -> client_TUs[i]) -> extension_num, SHUT_RDWR); } } P(&(pbx -> mutex)); while(pbx ->...
/** * Wrapper extension to {@link DynamicCollection} which prevents duplicates. * * @see DynamicCollection * @see Set * @author Costin Leau * */ public class DynamicSet<E> extends DynamicCollection<E> implements Set<E> { public DynamicSet() { super(); } public DynamicSet(Collection<? extend...
/* * makeAlias - * creates an Alias node * * NOTE: the given name is copied, but the colnames list (if any) isn't. */ Alias * makeAlias(const char *aliasname, List *colnames) { Alias *a = makeNode(Alias); a->aliasname = pstrdup(aliasname); a->colnames = colnames; return a; }
# Author: <NAME> (<EMAIL>) import sys import re TOC_LIST_PREFIX = "-" # TOC_LIST_PREFIX = "*" HEADER_LINE_RE = re.compile("^(#+)\s*(.*?)\s*(#+$|$)", re.IGNORECASE) HEADER1_UNDERLINE_RE = re.compile("^-+$") HEADER2_UNDERLINE_RE = re.compile("^=+$") # Dictionary of anchor name to number of instances found so far anch...
<reponame>gseteamproject/smartfactory package productionBehaviours; import basicClasses.CrossAgentData; import basicClasses.Order; import common.AgentDataStore; import interactors.AskBehaviour; import interactors.ResponderBehaviour; public class ProductionAskBehaviour extends AskBehaviour { private static final lon...
package net.oschina.j2cache.hibernate5; import net.oschina.j2cache.CacheChannel; import net.oschina.j2cache.hibernate5.strategy.NonstopAccessStrategyFactory; import net.oschina.j2cache.hibernate5.regions.*; import net.oschina.j2cache.hibernate5.strategy.J2CacheAccessStrategyFactory; import net.oschina.j2cache.hibernat...
import java.io.*; import java.util.*; import java.math.*; public class CF153PermutationSequence { public static void main(String[] args) throws IOException { new CF153PermutationSequence().run(); } StreamTokenizer in; int nextInt() throws IOException { in.nextToken(); return (int)in.nval; ...
Paleoenvironmental evolution of the coastal plain of Southern Brazil: palynological data from a Holocene core in Santa Catarina State. This paper presents a paleoenvironmental reconstruction from palynological analyses of a sedimentary core of Holocene age, drilled at municipality of Garopaba (Santa Catarina), Souther...
package repository; import models.PersonalPhoto; import javax.inject.Inject; import static java.util.concurrent.CompletableFuture.supplyAsync; import java.sql.Timestamp; import java.time.Duration; import java.time.Instant; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletionStage; ...
It sounds simplistic, but the greatest thing to realize is that your thoughts create your reality. Once you have really internalized this truth, you can go so much further with the law of attraction than you ever could have imagined. In this post, I want to go a lot deeper than usual. I’ve had a technique I’ve been wo...
<reponame>pjc0247/rookie.lang<filename>compiler/text_processor.h /* text_processer.h Rookie's Lexer and S-exper. */ #pragma once #include <string> #include <regex> #include <vector> #include <list> #include "token.h" struct lexer_token { std::wstring raw; token_type type; int priority; lexer_...
# from typing import Optional # from snr.core import * # from snr.prelude import * # from . import video_receiver, video_source # from .camera_config import CameraConfig # class VideoSourceFactory(LoopFactory): # def __init__(self, config: CameraConfig): # super().__init__(video_source) # self.c...
package worker import ( "context" "fmt" "math/big" "strings" "sync" "time" "github.com/SparkNFT/key_server/abi" "github.com/SparkNFT/key_server/chain" "github.com/SparkNFT/key_server/config" "github.com/SparkNFT/key_server/model" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereu...
from sklearn.metrics import precision_recall_fscore_support import numpy as np import tensorflow as tf def sequence_binary_tagging_metric_fn(per_example_loss, label_ids, logits, input_mask, is_real_example): predictions = tf.where(tf.logical_and(logits >= 0, input_mask == 1), tf.ones(tf.shape(logits)), ...
// checkNames takes the root step and runs through all child steps in order // to check if the mentioned service name exists. It returns an appropriate // ParseError on the first missing/invalid service name. func (m Manager) checkNames(st step) error { if st.srvc != "" { if _, ok := m.srvcs[st.srvc]; !ok { retur...
"""Test the Litter-Robot sensor entity.""" from unittest.mock import MagicMock from homeassistant.components.sensor import DOMAIN as PLATFORM_DOMAIN, SensorDeviceClass from homeassistant.const import PERCENTAGE, STATE_UNKNOWN from homeassistant.core import HomeAssistant from .conftest import setup_integration WASTE_...
/// /// Displays the scope hierarchy. /// /// Is used for testing purposes. /// pub fn show(&self, level: usize) { println!("{}==== Scope <{}> ====", " ".repeat(level), self.name); for (name, item) in self.items.borrow().iter() { println!("{}{}: {}", " ".repeat(level), name, item.borro...
/** * Created by hzqiujiadi on 15/11/18. * hzqiujiadi ashqalcn@gmail.com */ public class ChromeLikeLayout extends ViewGroup implements IOnExpandViewListener { private static final String TAG = "ChromeLikeView"; private static final float sMagicNumber = 0.55228475f; private static final int sDefaultCircle...
// Copyright 2016-2019, Pulumi Corporation. All rights reserved. import * as aws from "@pulumi/aws"; import * as pulumi from "@pulumi/pulumi"; // Create the role for the Lambda to assume const lambdaRole = new aws.iam.Role("lambdaRole", { assumeRolePolicy: { Version: "2012-10-17", Statement: [ { ...
/** * Adds NBT tag to YAML section. * @param yaml YAML section to add tag to. * @param name Name of the tag. * @param tag Tag to add. * @throws ReflectiveOperationException Thrown when something went wrong while accessing reflection classes in Minecraft code (usually when class was not properly...
import cn from 'classnames' import * as React from 'react' import { CapUIFontWeight, CapUILineHeight } from '../../styles' import { BoxProps } from '../box' import { DropdownListItem as DropdownListItemStyled } from './Dropdown.styles' export type DropdownListItemProps = BoxProps & { active?: boolean } const Dropdow...
<filename>src/melee_combat_system.rs<gh_stars>10-100 use super::{components::*, gamelog::GameLog, particle_system::ParticleBuilder, skill_bonus}; use legion::prelude::*; use rltk::{console, RandomNumberGenerator}; pub fn build() -> Box<(dyn Schedulable + 'static)> { SystemBuilder::new("melee_combat") .with...
<gh_stars>0 /** * \file protocol.h * * \brief Header file of the protocol component. This file provides a platform-agnostic API to * receive APDUs and send the response. * * This module is initialized by calling \ref protocol_init. Once initialized, the rest of the API * can be safely used. */ #ifndef PROTOCOL_...
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.sayee.sxsy.modules.epidemic.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.sayee.sxsy.modules.epidemic.dao.EgressInfoDao; impor...
<filename>NGSpice/ngspice-30/src/spicelib/devices/bsim3v32/bsim3v32def.h /********** Copyright 2001 Regents of the University of California. All rights reserved. Author: 1995 <NAME> and <NAME>. Author: 1997-1999 <NAME>. Author: 2001 <NAME> Modified by <NAME> 2002 and Dietmar Warning 2003 File: bsim3v32def.h **********...
/** * @author Mariana Azevedo * @since 29/06/2019 * * Question 1.3.36 (page 155) - Choose the appropriate option when attempting to compile * and run the following file: * * class A { * public static void main(String[] args) { * switch(10) { * case < 10: * System.out.println("<"); * default: *...
#if not defined(YALR_YASSERT_HPP) #define YALR_YASSERT_HPP #include <cstdio> #include <cstdlib> [[noreturn]] inline void _yassert(const char* expression, const char *mesg, const char* file, int line) noexcept { fprintf(stderr, "Assertion '%s' failed, file '%s' line '%d': %s\n", expression, file, line...
/* * Get the outbound dest port for display and logging purposes. */ uint16_t cgn_sess2_port(struct cgn_sess2 *s2) { struct cgn_session *cse; cse = cgn_sess_from_cs2(s2->s2_cs2); if (cgn_session_is_alg_pptp_child(cse)) return cgn_alg_pptp_peer_call_id(cse); return s2->s2_sentry[CGN_DIR_OUT].s2e_key.k_port; }
Cosmo Goss, the executive chef of Chicago’s popular and award-winning Publican restaurants, was fired after ownership said he failed to take disciplinary action when a “personal” and “inappropriate” photo of a female employee was shared among staff without her permission. One Off Hospitality Group, The Publican’s paren...
. Public and private accident insurance companies have in common that the insurance risk is the damage to health caused by trauma. Otherwise, they are fundamentally different. Public accident insurance as part of social law has the function of providing compensation for damage. Functional impairment due to trauma is c...
/** * Hosted version of {@link CollectionAdapterManager} * * @author abhinavk@gmail.com (Abhinav Khandelwal) */ public class FeedServerAdapterManager extends CollectionAdapterManager { public FeedServerAdapterManager(Abdera abdera, ServerConfiguration config) { super(abdera, config); } /** * Gets a ...
Treatment with human immunoglobulin G improves the early disease course in a mouse model of Duchenne muscular dystrophy Duchenne muscular dystrophy (DMD) is a severe hereditary myopathy. Standard treatment by glucocorticosteroids is limited because of numerous side effects. The aim of this study was to test immunomodu...
/** * This will be called for every importer configuration section for this importer type. * * @param props Properties defined in a configuration section for this importer */ public final void configure(Properties props, FormatterBuilder formatterBuilder) { Map<URI, ImporterConfig> confi...
/** An instance of this class represents a parsing context within a node. Data is written to the supplied output stream in utf-8 format. */ public class XMLOutputStreamParsingContext extends XMLWriterParsingContext { /** The writer */ protected OutputStream outputStream; /** Full constructor. Used for individu...
/** * Abstract implementation of IExtVisitor that adds an invariant implementation of * storing commands associated with each case in a dictionary indexed by the * case's associated index value. * When a particular case is called, the associated command is retrieved and * executed. The return value is ...
/* write GPIO OUT value to pin 'gpio' */ int gpio_set_value(unsigned gpio, int value) { debug("gpio_set_value: pin = %d (port %d:bit %d), value = %d\n", gpio, GPIO_FULLPORT(gpio), GPIO_BIT(gpio), value); set_level(gpio, value); return 0; }
<reponame>Deanosim/universal-trakt-scrobbler<filename>src/services/goplay-be/goplay-be.ts import '@/goplay-be/GoplayBeParser'; import { init } from '@service'; void init('goplay-be');
<filename>base/ntos/ke/aligntrk.c /*++ Copyright (c) 1990 Microsoft Corporation Copyright (c) 1993, 1994 Digital Equipment Corporation Module Name: aligntrk.c Abstract: This module implements the code necessary to dispatch exceptions to the proper mode and invoke the exception dispatcher....
import { Uint64LE } from 'int64-buffer' import { OutPacketBase } from 'packets/out/packet' /** * tells an user to join a host's match * @class OutHostJoinHost */ export class OutHostJoinHost { public static build(hostUserId: number, outPacket: OutPacketBase): void { outPacket.writeUInt32(hostUserId) ...
<reponame>phillipahereza/mattermost-server<gh_stars>1000+ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package plugin import ( "bufio" "errors" "net" "net/http" "net/rpc" "time" ) const ( hijackedConnReadBufSize = 4096 ) var ( ErrNotHijacked...
#include<stdio.h> int main( ) { int a,b,d[10],i,c,u,v,h,m; scanf("%d %d",&a,&b); for(i=0;i<10;i++) { d[i]=0; } for(i=a;i<=b;i++) { m=i; while(m>0) { c=m%10; d[c]++; m=m/10; } } v=d[2]+d[3]+d[5]; u=d[6]+d[9]+d[0]; h=(v*5)+(u*6)+(d[1]*2)+(d[4]*4)+(d[7]*3)+(d[8]*7); printf("%d\n",h); return 0; }
/* * Copyright (C) 2021 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
<filename>src/main/java/org/joelson/mattias/turfgame/statistics/Statistics.java package org.joelson.mattias.turfgame.statistics; import java.io.Serializable; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Locale; import java.util.Objects; import java.util.Set; public c...
/* ============================================================================== This file is part of the JUCE library - "Jules' Utility Class Extensions" Copyright 2004-11 by Raw Material Software Ltd. ------------------------------------------------------------------------------ JUCE can be r...
JAISALMER: There are 436 villages in Jaisalmer where crimes do not take place. In last three years, not a single crime has been reported in these villages. Adjoining the 477-km long border with Pakistan, these villages have a population of around 3 lakh and are an example of peace and harmony.Jaisalmer is the only dist...
/// Compute the min and max for each column. Actually compute the min and /// max of each attribute and write out a new metadata file for the data /// partition. void ibis::part::computeMinMax() { for (columnList::iterator it=columns.begin(); it!=columns.end(); ++it) { (*it).second->computeMinMax(); } ...
def import_chem_wizard(cls, name, temp, type): gxapi_cy.WrapGUI._import_chem_wizard(GXContext._get_tls_geo(), name.encode(), temp.encode(), type)
<filename>cmd/remove.go package cmd import ( "os" "path/filepath" "github.com/absfs/afero" "github.com/spf13/cobra" ) var removeCommand = &cobra.Command{ Use: "remove", Aliases: []string{"rm"}, Args: cobra.MinimumNArgs(1), Short: "Remove a file or directory", RunE: makeRunE(runRemoveCommandE), }...
<filename>herder/herder.go package herder import ( "encoding/json" "fmt" "html/template" "net/http" "github.com/Webstrates/golem-herder/golem" "github.com/gorilla/mux" "github.com/spf13/viper" ) // TemplateContext is the context which gets used when constructing the emet js init file type TemplateContext stru...
import React, { useState, useCallback, useContext, useMemo } from 'react'; import { _cs, isDefined, doesObjectHaveNoData, } from '@togglecorp/fujs'; import MapStyleContext, { MapStyle } from '#components/LayerContext'; import LayerSwitcher from '#components/LayerSwitcher'; import TextOutput from '#componen...
/** * A reactive logout success handler for initiating OIDC logout through the user agent. * * @author Josh Cummings * @since 5.2 * @see <a href="https://openid.net/specs/openid-connect-session-1_0.html#RPLogout">RP-Initiated Logout</a> * @see org.springframework.security.web.server.authentication.logout.ServerLo...
import { Token } from '../../src/models/token'; import { TokenType } from '../../src/models/tokentypes'; export const createToken = <T extends TokenType>( type: T, lexeme: string, literal?: any, ): Token => { return new Token( type, lexeme, literal, { line: 0, character: 0, }, ...
<filename>source/dawn/PlatformContextDawn.h // // Copyright (c) 2020 The Aquarium 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 PLATFORMCONTEXTDAWN_H #define PLATFORMCONTEXTDAWN_H #include "dawn/dawn_wsi.h" #in...
/** * Displays an item in the slot. * @param item The item, never {@code null}. */ private void asItem(final Item item) { item.getIcon() .ifPresent(this::installIcon); if (isShowTooltip()) { final ItemWrapper wrapper = new ItemWrapper(item, null); f...
Beef up your international deal-making skills. crossculture.com You can't expect negotiations with the French to be like negotiations with Americans, and the same holds true for every culture around the world. British linguist Richard D. Lewis charted communication patterns as well as leadership styles and cultural id...
/** * Guesses package and class name, and {@code %include} files, based on this grammar definition. * * @param lexFileReader reader for lex spec to process * @param lexFile the lex spec to process, used for relative path name resolution of {@code * %incude}s. * @return collected info about this le...
Samo jedan od navednih redosleda je tačna proporcija brojeva @numb[out[1]]@, @numb[out[2]]@, @numb[out[3]]@ i @numb[out[4]]@. Oboj kružić pored tačnog odgovora. @vspace@ @center@ @lib.check_one_option_radio(answ,ind, true)@
<reponame>sqall01/LSMS from typing import List class PasswdException(Exception): pass class SystemUser: def __init__(self, name: str, password: str, uid: int, gid: int, info: str, home: str, ...
package cn.edu.hit.tumorcnv; /** * * @author <NAME> */ import htsjdk.samtools.SAMReadGroupRecord; import htsjdk.samtools.SamReader; import htsjdk.samtools.util.IntervalList; import htsjdk.samtools.util.SamLocusIterator; import htsjdk.samtools.util.SamLocusIterator.LocusInfo; import java.util.Collection; ...
/* * zset_testcase.cpp * * Created on: 2013-4-9 * Author: yinqiwen */ #include "db.hpp" #include <string> using namespace ardb; void test_zsets_addrem(Ardb& db) { DBID dbid = 0; db.ZClear(dbid, "myzset"); db.ZAdd(dbid, "myzset", ValueData((int64) 3), "v0"); db.ZAdd(dbid, "myzset", ValueDat...
/* register the pinctrl interface with the pinctrl subsystem */ static int exynos5440_pinctrl_register(struct platform_device *pdev, struct exynos5440_pinctrl_priv_data *priv) { struct device *dev = &pdev->dev; struct pinctrl_desc *ctrldesc; struct pinctrl_dev *pctl_dev; struct pinctrl_pin_desc *pindesc, *pdesc...
<reponame>fusion-jena/OAPT<gh_stars>0 package fusion.oapt.model; public class Constant { public static final String OWL_NS = "http://www.w3.org/2002/07/owl#"; public static final String RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; public static final String RDFS_NS = "http://www.w3.org/2000/01/rdf-...
def field2nullable(self, field, ret): attributes = {} if field.allow_none: if self.openapi_version.major < 3: attributes["x-nullable"] = True elif self.openapi_version.minor < 1: attributes["nullable"] = True else: attri...
def _make_link(volume_path, backup_path, vol_id): try: utils.execute('ln', volume_path, backup_path, run_as_root=True, check_exit_code=True) except processutils.ProcessExecutionError as exc: err = (_('backup: %(vol_id)s failed to create device hardlink...
Integrated inference and evaluation of host–fungi interaction networks Fungal microorganisms frequently lead to life-threatening infections. Within this group of pathogens, the commensal Candida albicans and the filamentous fungus Aspergillus fumigatus are by far the most important causes of invasive mycoses in Europe...
/** * Asserts Editor content and selection is as expected * * @param msg * @param expected * @param actualEditor */ protected void assertEditorContent(String msg, ContentWithSelection expected, Editor actualEditor) { EditorAssert.assertXmlEquals(msg, expected.content, Content...
// Edge Ctrl Listener port should use ZITI_EDGE_CONTROLLER_PORT if it is set func TestListenerAddressWhenEdgeCtrlPortAndListenerHostPortNotSet(t *testing.T) { myPort := "1234" expectedListenerAddress := "0.0.0.0:" + myPort _ = os.Unsetenv("ZITI_CTRL_EDGE_LISTENER_HOST_PORT") _ = os.Setenv("ZITI_EDGE_CONTROLLER_PORT...
<reponame>parsa/cheap<gh_stars>10-100 /* libcheap.cpp enables easy use of regions invoke `region_begin(...)` --> all subsequent `malloc`s use the buffer, `free`s are ignored invoke `region_end()` --> back to normal `malloc`/`free` behavior see the C++ API in cheap.h */ #include <heaplayers.h> #inc...
/// Parse a single NamedHeader value. pub fn parse_named_field_value<'a, E: ParseError<&'a [u8]>>( input: &'a [u8], ) -> IResult<&'a [u8], (Option<String>, Uri), E> { let (input, name) = opt(parse_name)(input)?; let (input, _) = opt(take_while(is_space))(input)?; let (input, _) = opt(char('<'))(input)?;...
//---------------------------------------------------------------------------------------- // THIS CODE AND INFORMATION IS PROVIDED "AS-IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. ...
''' For the table results aggregate results across context sizes But then generate a plot for each of the dataset size that shows performance for these tasks does not depend much on the context size ''' import numpy as np import joblib from collections import defaultdict import os.path as osp context_sizes = [1,2,3,4]...
package com.worldbiomusic.allgames.games.solobattle; import java.util.ArrayList; import java.util.List; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.Particle; import org.bukkit.Sound; import org.bukkit.entity.Arrow; import org.bukkit.entity.Entity; import org....
<gh_stars>1-10 package envs import ( "bufio" "fmt" "log" "os" "strconv" "strings" ) type EnvConfig map[string]string // Get returns an environment variable value as a string func (c EnvConfig) Get(key string, defaultValue ...string) string { value, ok := c[key] if !ok && len(defaultValue) > 0 { return defa...
If humans are going to get to Mars, they're going to need rockets with some serious liftoff power. NASA’s Space Launch System is the most powerful rocket in the world—it has twin five-segment solid rocket boosters, four liquid propellant engines, and a minimum of 70 metric tons of lifting power—but engineers won’t know...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Format.h> #include <Kernel/Arch/x86/Processor.h> #include <Kernel/CommandLine.h> #include <Kernel/KSyms.h> #include <Kernel/Panic.h> namespace Kernel { [[noreturn]] static void __reset() { // FIXME: This works...
package gae import "testing" func runtest(t *testing.T, name, exp, act string) { if exp != act { t.Errorf("expect '%v' to return\n'%v'; got\n'%v'", name, exp, act) } } func TestErrors2(t *testing.T) { ea1 := DuplicateError{} runtest(t, "DuplicateError.Error - basic", "Duplicate value", ea1.Error()) ea2 := Dup...
/** * Http header check. * @param headers * MAP storing Http header */ private void checkHeaders(Map<String, String> headers) { String contentType = headers.get(HttpHeaders.CONTENT_TYPE); if (!"application/zip".equals(contentType)) { throw PersoniumCoreException.BarInstal...
Reliability of multimodal MRI brain measures in youth at risk for mental illness Abstract Introduction A new generation of large‐scale studies is using neuroimaging to investigate adolescent brain development across health and disease. However, imaging artifacts such as head motion remain a challenge and may be exacer...
DALLAS — A same-sex couple was granted a marriage license Monday within hours of filing a federal lawsuit against a county clerk in Texas who cited religious opposition when denying them a license last week. Jim Cato and Joe Stapleton filed the lawsuit against Hood County Clerk Katie Lang, saying they repeatedly were ...
import { GenerateCommonPipelineFilesProcessor } from "../GenerateCommonPipelineFilesProcessor"; import { GenerateCommonPipelineFilesArguments } from "../GenerateCommonPipelineFilesArguments"; import { GenerateFileFromTemplateArguments, GenerateFileFromTemplateExecutor } from "../../GenerateFileFromTemplate"; import S f...
package com.amyliascarlet.lib.thread; public enum Status { Ready,Running,Started,Stop,Remove }
package com.lagou.edu.rpc.provider.handler; import com.lagou.edu.rpc.common.RpcRequest; import com.lagou.edu.rpc.common.RpcResponse; import com.lagou.edu.rpc.common.annotations.RpcService; import com.lagou.edu.rpc.common.idle.Beat; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInb...
/* * Copyright 2002-2015 <NAME> * * 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 applicable la...
def build_get_schema_request(submitter_did: Optional[str], schema_id: str) -> Request: handle = RequestHandle() did_p = encode_str(submitter_did) schema_id_p = encode_str(schema_id) do_call("indy_vdr_build_get_schema_request", did_p, schema_id_p, byref(handle)) return Request(handle)
package ch.bailu.tlg_awt; import java.awt.Color; import java.io.File; import ch.bailu.tlg.PlatformContext; import ch.bailu.tlg.StateRunning; import ch.bailu.tlg.TlgPoint; import ch.bailu.tlg.TlgRectangle; public class BaseContext extends PlatformContext { private static final int PALETTE_RESERVED=5; private ...
/** * A builder for {@link PutBlobOptions} objects. */ public class PutBlobOptionsBuilder { private boolean chunkUpload = false; private long maxUploadSize = Long.MAX_VALUE; private RestRequest restRequest = null; /** * @param chunkUpload {@code true} to indicate that this is an upload of a data chunk of ...
import AdminList from "./AdminList"; export default AdminList;
As usual, Betsey Johnson's spring 2015 collection was raunchy, girly, loud, and — above all — fun. While all of her shows are beauteous spectacles, this one was especially great: it was a ruffly, lacy, glittery celebration of marriage equality. Backstage, Johnson said that the show is part of "the whole world of strai...
// Copyright 2018 The gVisor 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 applicable law or agree...
//#define DEBUG 1 /* MIT License Copyright (c) 2017 <NAME> <<EMAIL>> <<EMAIL>> 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...
/* * Return the smallest component index in 'p' whose value is non-zero */ int First_Non_Zero(Value *p,unsigned length) { Value *cp; int i; cp = p; for (i=0;i<length;i++) { if (value_notzero_p(*cp)) break; cp++; } return((i==length) ? -1 : i ); }
def invoke(self, job_name, **params): inv = _SingleJobInvocation(self, self.securitytoken, self.job_name_prefix, self.max_tries, job_name, params, self.propagation, self.secret_params_re, self.allow_missing_jobs) self.invocations.append(inv) return inv
package p; interface I1 { void /*target*/m(List l); } interface I2 { void /*ripple*/m(List l); } class I implements I1, I2 { void /*ripple*/m(List l); }
/// Returns the event that this cursors points and advances it to the next one. pub fn pop_next_event(&self, cursor: &mut BindingCursor) -> Option<&(Lit, BindTarget)> { let ret = self.binding_events.get(cursor.0); if ret.is_some() { cursor.0 += 1; } ret }
/** * This models a "Healing Touch" spells, which restores a number of health * points to the target creature. * @author Alex Ghita */ public class HealingTouch extends Spell { private static final int HEALING_INCREASE = 4; private static final int MANA_COST_INCREASE = 3; private int healing; private int he...