content
stringlengths
10
4.9M
Integrated human physiology: breathing, blood pressure and blood flow to the brain The cerebral vasculature rapidly adapts to changes in perfusion pressure (cerebral autoregulation), regional metabolic requirements of the brain (neurovascular coupling), autonomic neural activity, and humoral factors (cerebrovascular r...
/* * Sets the value of the "stroke-width" attribute of this GraphicalPrimitive1D. */ int GraphicalPrimitive1D::setStrokeWidth(double strokeWidth) { mStrokeWidth = strokeWidth; mIsSetStrokeWidth = true; return LIBSBML_OPERATION_SUCCESS; }
The Effect of Organizational Commitment on Higher Education Services Quality Relationship between employee attitudes and services quality still unclear. Therefore, the aim of this study is to uncover the relationship between organizational commitment and service quality, by investigate under which mechanism that organ...
/* * Copyright (c) 2018 Faiz & Siegeln Software GmbH * * 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, m...
# Copyright (c) 2020 Club Raiders Project # https://github.com/HausReport/ClubRaiders # # SPDX-License-Identifier: BSD-3-Clause import json if __name__ == '__main__': with open('addresses.jsonl') as f: data = json.load(f) # Output: {'name': 'Bob', 'languages': ['English', 'Fench']} print(data)
package main // Options are things that are specified about the game upon table creation (before the game starts) // All of these are stored in the database as columns of the "games" table // A pointer to these options is copied into the Game struct when the game starts for convenience type Options struct { NumPlayer...
Instance Optimal Learning We consider the following basic learning task: given independent draws from an unknown distribution over a discrete support, output an approximation of the distribution that is as accurate as possible in $\ell_1$ distance (equivalently, total variation distance, or"statistical distance"). Per...
/** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public class MTSUtils { public static enum StreamType { RESERVED(0x0, false, false), VIDEO_MPEG1(0x01, true, false), VIDEO_MPEG2(0x02, true...
/** * <p>The device has presented incorrect entropy</p> */ public void incorrectEntropy() { Preconditions.checkState(SwingUtilities.isEventDispatchThread(), "Must be on EDT"); setOperationText(MessageKey.TREZOR_FAILURE_OPERATION); setDisplayVisible(false); setSpinnerVisible(false); }
<reponame>felipecesargomes/medical_sistema package br.com.medical_sistema.servlets; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest...
/** * Test whether a URL identifies a Fuseki server. This operation can not guarantee to * detect a Fuseki server - for example, it may be behind a reverse proxy that masks * the signature. */ public static boolean isFuseki(String datasetURL) { HttpRequest.Builder builder = H...
package saga.eventuate.tram.hotelservice.model; import javax.persistence.*; import java.util.Objects; @Embeddable public class HotelBookingInformation { @Embedded private Destination destination; @Embedded private StayDuration duration; private String boardType; private final long tripId; ...
The Reconceptualization of the City’s Ugliness Between the 1950s and 1970s in the British, Italian, and Australian Milieus The paper examines the reorientations of the appreciation of ugliness within different national contexts in a comparative or relational frame, juxtaposing the British, Italian, and Australian mili...
<gh_stars>100-1000 // Copyright 2019 The WPT Dashboard Project. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. //go:generate packr2 package webapp import ( "net/http" "text/template" "github.com/gobuffalo/packr/v2" "github.com/web-pla...
n,ab=list(map(int,input().split(" "))) l=list(map(int,input().split(" "))) d=l[:] c=[] # k=ab k=n-ab sum1=(n*(n+1))//2 sum2=(k*(k+1))//2 sum3=sum1-sum2 d={} # print(sum1) # print(sum2) for i in range(len(l)): d[l[i]]=i fin=sum3 print(fin,end=" ") # mini=[] # for i in range(n,n-k,-1):...
/** * If a transaction is active. * * @return {@code true} if the transaction is active. */ static boolean isActive() { try { return UserTransaction.userTransaction().getStatus() != Status.STATUS_NO_TRANSACTION; } catch (SystemException e) { throw new QuarkusT...
// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT use crate::BaseEffect; use crate::Extractable; use crate::MetaContainer; use crate::Operation; use c...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
The ecology of anxiety: situational stress and rate of self-stimulation in Turkey. Twelve community behavior settings in Ankara, Turkey, were ranked with high agreement by 30 judges (average r = .80, p less than .001) according to the amount of situational stress, defined as evaluative apprehension and uncertainty, ge...
/** * Tests for Account */ @RunWith(MockitoJUnitRunner.class) public class AWSEnvironmentTest { @Test public void testConstructorGetters() { String account = "Hello"; String region = "World"; AWSEnvironment awsEnvironment = new AWSEnvironment(account, region); Assert.assertEq...
package alertmanager import ( "net/http" "text/template" "github.com/go-kit/log/level" util_log "github.com/cortexproject/cortex/pkg/util/log" "github.com/cortexproject/cortex/pkg/util/services" ) var ( ringStatusPageTemplate = template.Must(template.New("ringStatusPage").Parse(` <!DOCTYPE html> <html> <h...
def process(self, beam_stack): self.beam_stack[beam_stack.attrs["source_name"]] = beam_stack return None
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { UsageComponent } from './usage.component'; import { UsageDownloadsComponent } from './pages/usage-downloads/usage-downloads.component'; import { UsageByOrganizationComponent } from './pages/usage-by-organization/u...
<gh_stars>1-10 package com.newer.kt.entity; import java.io.Serializable; import java.util.List; /** * Created by huangbo on 2016/10/3. */ public class AllSchoolBean implements Serializable{ /** * response : success * school_clubs_count : 12 * school_clubs_count_list : [{"name":"上海","count":3},...
def normalize(matrix): return sklearn.preprocessing.normalize(matrix, norm="l1", axis=0)
import { Action, createReducer, on } from '@ngrx/store'; import * as ScoreboardPageActions from '../actions/scoreboard-page.actions'; export interface State { home: number; away: number; } export const initialState: State = { home: 0, away: 0, }; export const scoreboardReducer = createReducer( initialState...
Friend, do you have doubts in your heart about the afterlife? Have you ever wondered if heaven is a real place? I myself had questions like these once, but a near-death experience erased my doubts forever. Why? Because during those few minutes when my heart stopped and the doctors worked to revive me, I saw God’s glori...
My kids LOVE their DIY Marshmallow Guns!! My sister made them for my kids, and every day they ask to have a Marshmallow Gun Fight. We may have had a few in the last week and I’m still randomly finding marshmallows through out the house. 😉 I convinced her to do a tutorial for you guys so that you could make some too. ...
/* Copyright 2020 <NAME> (https://github.com/adamgreen/) 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...
/** * Updates the "Press Menu for more options" hint based on the current * state of the Phone. */ private void updateMenuButtonHint() { if (VDBG) log("updateMenuButtonHint()..."); boolean hintVisible = true; final boolean hasRingingCall = !mRingingCall.isIdle(); final boo...
<reponame>pwcong/rc-component-x import React, { useState } from 'react'; import Icon from '@rc-x/icon'; import { classNames, getPrefixCls } from '@rc-x/utils'; import Input, { IInputProps } from '@rc-x/input'; import './style.scss'; const baseCls = getPrefixCls('input-number'); const defaultStep = 1; const defaultP...
Senior members of the Polish government have warned the European Union that the Islamist terror attack in Barcelona is further proof that encouraging millions of migrants to settle in its territory has undermined public safety. Polish Minister of the Interior Mariusz Błaszczak reminded listeners that “Poland is safe” ...
/** * * @author Ikasan Development Team * */ public class ExclusionEventActionImpl implements ExclusionEventAction<byte[]> { public static final String RESUBMIT = "re-submitted"; public static final String IGNORED = "ignored"; private Long id; private String moduleName; private String flowName; privat...
/// Add range constraints to the model. pub fn add_ranges(&mut self, names: &[&str], expr: &[LinExpr], lb: &[f64], ub: &[f64]) -> Result<(Vec<Var>, Vec<Constr>)> { let mut constrnames = Vec::with_capacity(names.len()); for &s in names.iter() { let name = try!(CString::new(s)); co...
<filename>codeforces/round-760-d3/src/bin/f.py def main(): a, b = map(int, input().split()) ba = bin(a)[2:] bb = bin(b)[2:] if ba == bb: return True if bb[-1] == "0": return False rba = ba[::-1] for ta in (ba, rba, "1" + rba): ta = ta.lstrip("0") if ta no...
package org.systems.dipe.srs.person; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.systems.dipe.srs.SrsDbTest; import org.systems.dipe.srs.person.config.Te...
/** * {@link BluetoothDevice} wrapper supporting extras available from Intents during specific * actions. For example, RSSI becomes available during discovery. * * @author kendavidson * */ public class NativeDevice implements MapWritable { private BluetoothDevice device; private Map<String,Object> extra...
/** * Update or initialize the records of the file's state. * * @param fireEvent if {@code true}, fire a change event on the listener * if state has changed */ protected void updateFileState(boolean fireEvent) { boolean newExists; long newTimeStamp; ...
// SaveStatus saves a status file to the root of both replicas. func (r *Result) SaveStatus() error { for i, fs := range []tree.Tree{r.fs1, r.fs2} { replica := r.rs.Get(i) if !replica.ChangedAny() { continue } err := r.serializeStatus(replica, fs) if err != nil { return err } } return nil }
Sporadic Intradural Extramedullary Hemangioblastoma Not Associated with von Hippel-Lindau Syndrome: A Case Report and Literature Review Hemangioblastomas are low-grade, highly vascular tumors that are usually associated with von Hippel-Lindau syndrome. Hemangioblastomas most commonly occur in the cerebellum, and intra...
// Converts output artifacts into expected command-line arguments. private List<String> outputArgs(Set<Artifact> outputs) { ImmutableList.Builder<String> result = new ImmutableList.Builder<>(); for (String output : Artifact.toExecPaths(outputs)) { if (output.endsWith(".o")) { result.add("-o", outp...
/** * Filter to log responses. */ public class ResponseLoggingFilter extends AbstractLoggingFilter { private static final Logger LOGGER = LoggerFactory.getLogger(RequestLoggingFilter.class); @Override public String filterType() { return "post"; } @Override public Object run() { ...
/** * dequeue - A function that fetches first item in queue * @q: queue * @peek: whether to perform dequeue or just a peek * Return: first item in queue on success, -1 on failure */ int dequeue(queue_t *q, int peek) { int item; if (q->rear == -1) { printf("queue_t is empty"); item = -1; } else { i...
/* api.h - Copyright (c) 2018, <NAME> (see LICENSE.md) */ #define TT_NLINES 24 #define TT_NCOLS 40 /* 3 color RGB */ enum ttcolor { TT_BLACK, TT_RED, TT_GREEN, TT_YELLOW, TT_BLUE, TT_MAGENTA, TT_CYAN, TT_WHITE }; enum tterr { TT_OK, TT_EARG, TT_ECURL, TT_EAPI, TT_EDATA }; struct ttattrs { enum ttcolor...
def process_checkpoints(checkpoints: List[Checkpoint]) -> List[OrderedDict]: result = [] for checkpoint in checkpoints: next_checkpoint = OrderedDict([(KEY_CHECKPOINT, checkpoint.name)]) if checkpoint.conditions: next_checkpoint[KEY_CHECKPOINT_SLOTS] = [ ...
// Copyright (C) 2018-2019, Cloudflare, Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright notice, // this...
/* * Copyright 2017 ThoughtWorks, Inc. * * 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 agr...
<filename>packages/contracts/test/connect-contracts.spec.ts import { ethers } from 'hardhat' import { Signer, Contract } from 'ethers' import { connectL1Contracts, connectL2Contracts, } from '../dist/connect-contracts' import { expect } from './setup' describe('connectL1Contracts', () => { let user: Signer con...
/** * This class holds O3 line from source file. * * @author Hudson Schumaker */ @Data public final class O3FileLine { private String data; private boolean classHeader; private boolean functionHeader; private boolean conditionalStatement; private boolean loopStatement; private boolean varia...
package main const Master = `<!DOCTYPE html> <html> <head> <title>{{ or .Title "Template Generation Demo"}}</title> </head> <body> <div id="topbar"> [[ call .Features "topbar" ]] </div> <div id="navbar"> [[ call .Features "navbar" ]] </div> {{ .Content }} <div id="footer"> [[ call .Features "footer" ]] <...
<reponame>brianmacdonald/ilodestone use std::fs::File; extern { fn lodestone_main(); } #[no_mangle] pub extern fn fopen(filename: String) -> String { unsafe { let mut f = File::open(filename).expect("file not found"); let mut contents = String::new(); f.read_to_string(&mut contents) ...
package com.script.fairy; import com.script.framework.AtFairyApp; import com.umeng.commonsdk.UMConfigure; public class YpApplication extends AtFairyApp { @Override public void onCreate() { super.onCreate(); UMConfigure.init(getApplicationContext(),UMConfigure.DEVICE_TYPE_PHONE,"611345aebc78af...
A Common Endocrine Signature Marks the Convergent Evolution of an Elaborate Dance Display in Frogs Unrelated species often evolve similar phenotypic solutions to the same environmental problem, a phenomenon known as convergent evolution. But how do these common traits arise? We address this question from a physiologic...
McAfee on Thursday announced its annual Threat Predictions report, highlighting the top security worries it predicts for 2013. Most of the forecasts are completely expected (mobile malware will become a bigger focus, crimeware and hacking as a service will expand, and large-scale attacks will increase) but one of them ...
def load_config(filename: str, config_dir: WindowsPath) -> pd.DataFrame: filename = filename + '.csv' if '.csv' not in filename else filename config_path = config_dir.joinpath(filename) return pd.read_csv(config_path)
// Helper function converting a seed string to a 128 bit binary key. string GenerateBinaryKey(const string& seed) { const unsigned char kBlockTEA_Salt[] = { 0x2A, 0x0C, 0x84, 0x24, 0x5B, 0x0D, 0x85, 0x26, 0x72, 0x40, 0xBC, 0x38, 0xD3, 0x43, 0x63, 0x9E, 0x8E, 0x56, 0xF9, 0xD7, 0x00 }; ...
package de.polocloud.wrapper.network; import de.polocloud.api.CloudAPI; import de.polocloud.network.NetworkType; import de.polocloud.network.client.NettyClient; import de.polocloud.network.packet.PacketHandler; import io.netty.channel.ChannelHandlerContext; public final class WrapperClient extends NettyClient { ...
def stop(self) -> None: if self.server_thread and self.server_thread.is_alive(): pexit = self.pilot_process.poll() if pexit is None: self.pilot_process.terminate() pexit = self.pilot_process.wait() self.logging_actor.debug.remote(self.worker_id...
def class_data(inputmodel_file, dataset, outfile=None): model, label_encoder, scaler, model_feature_names = load_model_from_file(inputmodel_file) if outfile: f = open(outfile, 'w') else: f = sys.stdout for sequences_file in dataset: res = write_csv(extract_features(sequences_file...
Frontiers of marine science On 9–13 October 2010 early career scientists from the UK and Australia across marine research fields were given the opportunity to come together in Perth, Australia to discuss the frontiers of marine research and exchange ideas. INTRODUCTION Many of the challenges that face twenty-first c...
<gh_stars>0 package com.nsfocus.orchestration.entity; import java.io.Serializable; /** * TriggerAppEntity:触发APP * EventAppEntity:事件APP * @author xpn * */ public class OrchestrationNode implements Serializable{ private static final long serialVersionUID = 8147419497697842072L; private TriggerAppEntity trigge...
export default class SecureCookies { private identifier; private secretKey; private enablementKey; private cryptography; private enablementCryptography; private options; private status; constructor(identifier: any, secretKey: any); readonly isEnabled: boolean; readonly cookies: a...
A scale and rotation invariant scheme for multi-oriented Character Recognition In printed stylized documents, text lines may be curved in shape and as a result characters of a single line may be multi-oriented. This paper presents a multi-scale and multi-oriented character recognition scheme using foreground as well a...
def convert_string(x): wanted = set() wanted.update(set(range(97, 123))) wanted.update(set(range(48, 58))) wanted.update({45, 95}) wanted.add(32) s = '' for c in x: if ord(c) in wanted: s += c elif 65 <= ord(c) <= 90: s += chr(ord(c) + 32) return s
<reponame>Jeanmilost/Visual-Mercutio /**************************************************************************** * ==> PSS_SelectPropertyDlg -----------------------------------------------* **************************************************************************** * Description : Provides a dialog box to select ...
async def lp_info(ctx, name0, name1): umanager = ctx.obj['umanager'] token0 = umanager.sl.get(name0 if name0 != 'OLT' else 'WOLT') token1 = umanager.sl.get(name1 if name1 != 'OLT' else 'WOLT') reserves = await umanager.get_reserves(token0, token1) if not reserves[0] or not reserves[1]: click...
About About Hi I'm Chase, but many of you may know me as retroshark. I created and have been hosting GBJAM for 5 years now and it has been the coolest thing for me to see how it has grown over the years. I have been hoping to create a whole new platform for GBJAM and it has been hard to do without the funds. I want ...
Robert Beck ​Editor’s Note: Peter King and the staff of The MMQB took over this week’s issue of Sports Illustrated magazine. In it, you’ll read the kind of feature stories that you’ve come to expect from The MMQB, plus an all-access behind-the-scenes look at one day in the life of the NFL, from inside the Texans’ team...
use claim::assert_some_eq; use testutils::assert_empty; use super::*; fn history_item_to_string(item: &HistoryItem) -> String { let range = if item.start_index == item.end_index { item.start_index.to_string() } else { format!("{}-{}", item.start_index, item.end_index) }; format!( "{:?}[{}] {}", item.oper...
def projectpoints(P, X): You code here return hom2cart(P.dot(cart2hom(X)))
<reponame>johnnywww/swd<filename>server/src/sysware.com/ivideo/server/http/template_func.go<gh_stars>0 package http import ( "fmt" "html/template" "strings" "sysware.com/ivideo/common" ) func getPageStartIndex(pageNo int) int { return pageNo*10 + 1 } func getPageEndIndex(pageNo int) int { return (pageNo + 1) *...
package net.minecraft.block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import java.util.*; public class BlockRedstoneTorch extends BlockTorch { private boolean field_1...
/** * The <i>rui_dlmodGetSymbol()</i> function shall locate symbol * information for target symbol in specified module. This will be the * mechanism for locating a target function within a module. The target * library module is specified by the ID/handle returned from the "open" * operation. * * @param dlmodId...
module AOC.BSTree.Strict where import Prelude hiding (elem) import qualified Data.List as DL import Data.Foldable (toList) data BSTree a = Empty | Branch !(BSTree a) !a !(BSTree a) deriving (Show, Eq) instance Foldable BSTree where foldMap f Empty = mempty foldMap f (Branch l o r) = foldMap f l <> f o <> foldMa...
<reponame>setrar/ghc -- LML original: <NAME>, 1990 -- Haskell translation: <NAME>, May 1991 module Geomfuns( mapx, mapy, col, row, lrinvert, antirotate, place, rotatecw, tbinvert, tile, t4, xymax) where import Mgrfuns import Drawfuns --CR strange instructions here! -- xymax should be in layout.m, and the func...
// return random integer between limits (inclusive) // uses Mersenne Twister algorithm int genRandInt(int min, int max) { std::uniform_int_distribution dist{min, max}; return dist(mersenne); }
<gh_stars>0 import { common } from '@app/helpers' import { Address, EthValue, Hash, Hex, HexNumber, HexTime, Tx } from '@app/models' import { Block as BlockLayout, BlockStats } from 'ethvm-common' import bn from 'bignumber.js' export class Block { public readonly id: string private readonly block: BlockLayout pr...
/** * {@link ConnectionStringBuilder} can be used to construct a connection string which can establish communication with ServiceBus entities. * It can also be used to perform basic validation on an existing connection string. * <p> Sample Code: * <pre>{@code * ConnectionStringBuilder connectionStringBuilder = ne...
from flask import Flask,render_template from article import Article #Router app = Flask("hello_world") posts = [ Article('title', 'subtitle' , 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostru...
<gh_stars>1-10 package bolt import ( "fmt" "os" "sort" "unsafe" ) var lmbytes uint32 = 0 var smbytes uint32 = 0 var ombytes uint32 = 0 const pageHeaderSize = int(unsafe.Offsetof(((*page)(nil)).ptr)) const minKeysPerPage = 2 const branchPageElementSize = int(unsafe.Sizeof(branchPageElement{})) const leafPageEle...
#include<stdio.h> int main() { int n,p,a,b; scanf ("%d%d%d",&n,&p,&a); int s=0; for (int i=1;i<n;i++) { scanf ("%d",&b); s=a-b>s?a-b:s; a=b; //printf ("%d\n",s); } s-=p; printf ("%d\n",s>0?s:0); return 0; }
#!/usr/bin/env python3 import rxcclib.io.Gaussian as rxgau import rxcclib.io.mol2 as rxmol2file import rxcclib.geometry.molecules as rxmol from rxcclib.ff.mol2 import Mol2 import subprocess import unittest, os, logging import numpy as np from io import StringIO rxgau.GauCOM.g09rt = 'g09' os.system( 'rm A* q* Q* p...
/* HPGL Command ER (Edge rectangle Relative) */ int hpgs_reader_do_ER (hpgs_reader *reader) { hpgs_point p,pp,cp; if (hpgs_reader_read_point(reader,&p,-1)) return -1; p.x += reader->current_point.x; p.y += reader->current_point.y; if (hpgs_reader_checkpath(reader)) return -1; reader->poly_buffer_size = 0; ...
<gh_stars>0 /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://w...
def check_os(): my_system = platform.system() return my_system
def property_widgets(self, widget=None, current_widget=False): result = list() if current_widget: widget = widget or self._stacked_widget.current_widget() else: widget = widget or self._stacked_widget for child in qtutils.iterate_children(widget, skip='skipChildre...
On Monday, November 6, major media-acquisition news landed: 21st Century Fox has reportedly held talks to sell all of its assets to Disney . CNBC's unnamed sources say those talks have since stalled, but the mere possibility got nerd tongues wagging. What would happen if those two media giants joined in unholy matrimon...
/** * Decode the specified Strings into cell constraints. */ private static CellConstraints[] decode(String[] cellConstraints) { CellConstraints[] decoded = new CellConstraints[cellConstraints.length]; for(int c = 0; c < cellConstraints.length; c++) { decoded[c]...
/* * File: bam_reader.cc * Author: <NAME> <thomas(at)bioinf.uni-leipzig.de> * * Created on January 20, 2016, 1:13 PM */ #include <deque> #include <string> #include <vector> #include <math.h> #include <queue> #include <boost/unordered/unordered_map.hpp> #include <tuple> #include <stdlib.h> #ifdef _OPENMP #inc...
def scheduled_operation_get(context, id, columns_to_join=[]): return IMPL.scheduled_operation_get(context, id, columns_to_join)
<filename>b2blaze/connector.py """ Copyright <NAME> 2018 """ import requests import datetime from requests.auth import HTTPBasicAuth from b2blaze.b2_exceptions import B2Exception, B2AuthorizationError, B2InvalidRequestType import sys from hashlib import sha1 from b2blaze.utilities import b2_url_encode, decode_error, ge...
from pathlib import Path import re html_file = Path(__file__).parent.parent/'index.html' text = '' with open(html_file, 'r') as f: text = f.readlines() out = []; write_line = True in_type = False for line in text: write_line = True if re.search('<section class=\'p2 mb2 clearfix bg-white minishadow\'>', line):...
<reponame>ckski/rgeometry<filename>src/orientation.rs<gh_stars>0 use std::cmp::Ordering; use crate::data::Vector; use crate::PolygonScalar; #[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Copy, Clone)] pub enum Orientation { CounterClockWise, ClockWise, CoLinear, } use Orientation::*; #[derive(PartialEq, Eq, P...
// PackTo packs zip file or an unpacked directory into a CRX3 file. func (e Extension) PackTo(dst string, pk *rsa.PrivateKey) error { if e.isEmpty() { return ErrPathNotFound } return Pack(e.String(), dst, pk) }
use bytes::Buf; use shared::{Deserializable, DeserializationError, Serializable}; /// A shorthand way of referring to a type of [Message](crate::Message). A `Command` is a single byte, while a [Message](crate::Message) is about 90 bytes. #[derive(Debug, Clone, Copy, PartialEq)] pub enum Command { Version, Vera...
Sheree Zielke does not want vengeance against the man who strangled her daughter to death. "I don't hate him, I hate what he did," Zielke said in an interview with CBC Radio's Edmonton AM. "I feel more a sense, I don't know if I can call it this, but maybe compassion," she said. "Because of the life he's carved out f...
#include<bits/stdc++.h> #define ll long long #define fi(a, b) for(int i=a; i<=b; i++) #define fd(a, b) for(int i=a; i>=b; i--) using namespace std; int main(){ ll n, m, sz, i, j, k, ans=0, a[5003]={0}, b[5003]={0},cnta=0, cntb=0; string s; cin>>s; sz=s.size(); for(i=0; i<sz; i++){ ...
If you’ve ever had a near death experience (NDE) or tried astral projection, you may have seen the silver cord. The silver cord is often referred to as the “life thread” because it supplies energy to the physical body. If the silver cord is severed, the physical body can no longer be sustained and dies. I had a conver...
def import_density_field(self, z_name, resolution): if resolution != 256 and resolution != 512: raise ValueError("Only resolution 256 or 512 is supported.") resStr = str(resolution) if z_name == '0': file_path= os.path.join(SIMS_DIR, 'dens'+resStr+'-z-0.0.csv.gz') ...
def add_permission(self, elements): elements = element_resolver(elements) self.data['granted_element'].extend(elements) self.update()