content
stringlengths
10
4.9M
. The aim of this work was to compare the outcome of the questionnaire survey of low back pain with data on related sickness absenteeism. The questionnaire was responded by 585 (88.8%) employees. Of these number 288 (49.2%) respondents complained of low back pain. Sick leaves were given to 48 (16.7%) persons who had r...
//loads data for the next turn in another thread public void loadTurn() { usableBlocksThread = new Thread() { public void run() { ArrayList<Vector2> path = findPath(player.x, player.y, levelConfig.endX, levelConfig.endY, blocks); if (path != null) { ArrayList<Block> nonPathBlocks = new ArrayList<Block...
/** * Checks recursively if object or its subobjects has a property with specified * name. * <p> * The object can be a user defined object, map or array. The property name * correspondently must be object property, map key or array index. * * @param obj an object to introspect. ...
// New returns a configuration struct with content from the exercism.json file func New(path string) (*Config, error) { c := &Config{} err := c.load(path) return c, err }
package org.hibernate.tool.internal.reveng; import org.hibernate.mapping.Property; import org.hibernate.mapping.Table; import org.hibernate.mapping.Value; import org.hibernate.tool.api.reveng.ReverseEngineeringStrategy; import org.jboss.logging.Logger; public class PropertyBinder { private static final Lo...
#include <stdio.h> int main(void){ int w,h,n,x,y,a,max1=0,min2,max3=0,min4,ans; scanf("%d%d%d",&w,&h,&n); min2=w; min4=h; for(int i=0;i<n;i++){ scanf("%d%d%d",&x,&y,&a); if(a==1&&max1<x)max1=x; else if(a==2&&min2>x)min2=x; else if(a==3&&max3<y)max3=y; else if(...
. The aim of this paper was to describe the geographic distribution of mortality resulting from external causes during 1991 within the city of Salvador, Bahia, Brazil. Mortality indicators were calculated in terms of deaths from external causes and in terms of specific types of violence. Of the deaths in that year, 15...
def format_folia(lemma: str, pos_tag: str, word: str) -> str: return '[ @folia {0} {1} {2} ]'.format(lemma, pos_tag, word) if word else ''
/** * Currently, this method is only used for pin node get from mNodeCache. Pin MNode in memory makes * the pinned node and its ancestors not be evicted during cache eviction. The pinned MNode will * occupy memory resource, thus this method will check the memory status which may trigger cache * eviction or ...
Nearly nine in 10 businesses worldwide are worried about the threat of cyberattacks, according to a new survey. Cyberattacks, followed by data breaches and unplanned IT and telecom outages are the leading causes of concern regarding operations among businesses globally, according to a study from the Business Continuit...
import java.util.Scanner; public class A116 { static Scanner sc = new Scanner (System.in); static int stops = sc.nextInt(); public static void main(String[] args) { System.out.println(Solver()); } private static int Solver() { int min_kap=0; int aktuell=0; while(stops>0) { ...
def current_url(self): idx = self.widget.currentIndex() return self.widget.tab_url(idx)
// Store in the same structure as client, just under BasePath func mediaPath(sha string, config *Config, path string) (string, error) { abspath := filepath.Join(config.BasePath, path, sha[0:2], sha[2:4]) if err := os.MkdirAll(abspath, 0744); err != nil { return "", fmt.Errorf("Error trying to create local media dir...
module suncore { /** * 缓动服务类,专门用于管理缓动 */ export class TweenService extends BaseService { static readonly NAME: string = "suncore.TweenService"; /** * 缓动对象列表 */ private $tweens: ITween[] = []; /** * 避免添加或移除缓动对象时对正在执行的缓动列表产生干扰 */ ...
import { PopupBg, PopupButton, PopupContainer, PopupStyled } from './Popup.style' interface PopupViewProps { hideCallback: () => void } export const PopupView = ({ hideCallback }: PopupViewProps) => { return ( <PopupStyled> <PopupBg /> <PopupContainer> <svg onClick={() => hideCallback()}> ...
/** * Class denoting a stream variable, which will contain a type and a name. */ public static class StreamVariable extends Operand { private String name; StreamVariable(String name, Attribute.Type type) { this.name = name; this.type = type; } /** ...
<gh_stars>1-10 /****************************************************************************** * Copyright (c) 2004 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ #ifndef XIL_XARMV8_H_ /* prevent circular inclusion...
<reponame>matsumotory/mod_vhost_maxclients /* ** mod_vhost_maxclients - Max Clients per VitualHost ** ** Copyright (c) <NAME> 2015 - ** ** 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 with...
def show_text(msg, color, x_coord, y_coord): screen_text = font.render(msg, True, color) screen.blit(screen_text, (x_coord, y_coord))
/** * Bluetooth ACL connection state changed callback */ void bt_acl_state_changed_callback(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state) { Tracer trc("bt_acl_state_changed_callback"); bt_bdaddr_t *bda = remote_bd_addr; ALOGV("bt_acl_state_changed_callback. status=%d state=%sconnect...
An Optimal Spatiotemporal Noise Filter for NI/OCT Imaging A novel spatiotemporal filtering formalism is proposed as means to further improve SNR realization in Near-Infrared Optical Coherence Tomography (NI/OCT) imaging applications. As is well known noise filtering on such images is rendered more difficult with prese...
<gh_stars>1-10 package handlers import ( "github.com/aklinker1/miasma/internal/server/database" "github.com/aklinker1/miasma/internal/server/gen/restapi/operations" "github.com/aklinker1/miasma/internal/server/services/plugin_service" "github.com/aklinker1/miasma/internal/server/utils/constants" "github.com/aklin...
from gstats import start_request, end_request _collector_addr = 'tcp://127.0.0.2:2345' _prefix = b'my_app' def pre_request(req, worker): start_request(req, collect=True, collector=_collector_addr, prefix=_prefix) def post_request(req, worker): end_request(req, collector=_collector_addr, prefix=_prefix)
const LOOKUP_TABLE: [char; 64] = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2'...
// Address returns the tcp (local) address of this MemoryRedis server func (server *Server) Address() string { if server == nil { return "" } return server.addr }
{-# language StandaloneDeriving #-} {-# options_ghc -fno-warn-orphans #-} module Graphics.Vulkan.HL.Internal.Orphan where import Graphics.Vulkan deriving instance Show CommandPool deriving instance Show DebugReportCallback deriving instance Show Extent2D deriving instance Show Extent3D deriving instance Show Image d...
#include<stdio.h> int d[100001][2]={0}; int school[100001][2]={0}; int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d %d",d[i],d[i]+1); school[d[i][0]][1]+=d[i][1]; } int max=0;int maxI=0; for(int j=1;j<100001;j++){ if(max<school[j][1]){ max=school[j][1];maxI=j;} } printf("%d %d"...
def convert2idx(self, sentence): idx = [] for word in sentence: if word in self.word2idx.keys(): idx.append(self.word2idx[word]) else: idx.append(0) return idx
<reponame>kfsone/tinker """ Factorio's recipe tree is written in Lua, we want it in Python. """ import argparse import collections import glob import json import logging import os import sys try: from .slpp import slpp except (ValueError, ImportError): from slpp import slpp # Subdirectory within Factorio whe...
/** * A class representing the state of a single audited contest for * across multiple counties * */ @Entity @Cacheable(true) @Table(name = "comparison_audit") @SuppressWarnings({"PMD.ImmutableField", "PMD.ExcessiveClassLength", "PMD.CyclomaticComplexity", "PMD.GodClass", "PMD.ModifiedCyclomaticComplexity", ...
from __future__ import print_function import argparse import copy import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import os import time import numpy as np start_time = time.time() class Net(...
/** * A GuacamoleProperty whose value is a byte array. The bytes of the byte array * must be represented as a hexadecimal string within the property value. The * hexadecimal string is case-insensitive. * * @author Michael Jumper */ public abstract class ByteArrayProperty implements GuacamoleProperty<byte[]> { ...
def convert_to_float64(self, channel=None): if hasattr(self, "data_list"): if channel is None: for i, _data in enumerate(self.data_list): self.data_list[i] = _data.astype("float64") else: _data = self.data_list[channel] ...
/** * The Magnum class. * @author Adriano Pereira Rezende */ public class Magnum extends Gun { // Constants private static final int MAX_BULLETS = 6; private static final int MAX_DAMAGE = 2; // Sound Constants private static final String SHOOT_ID = "shootSE"; private static final String RELOAD_ID = "reload...
<filename>src/app/app.component.ts import { Component } from '@angular/core'; import { v4 as uuidv4 } from 'uuid'; class Todo { id: string; description: string; isDone: boolean; } @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], }) export class A...
def timit2ipa(x): x = x.upper() if x in _timit2ipa: return(_timit2ipa[x]) else: return(_arpabet2ipa[x])
use std::collections::HashMap; use crate::stdx::IterExt; const INPUT: &'static str = include_str!("../inputs/14.txt"); pub fn run() { println!("day 14, output 1: {}", parse1(INPUT)); println!("day 14, output 2: {}", parse2(INPUT)); } pub fn parse1(s: &str) -> usize { let (input, rules) = s.split_once("\...
<reponame>asmsuechan/minute import { parse } from './parser'; import { generate } from './generator'; import { analize } from './lexer'; export const convertToHTMLString = (markdown: string) => { const mdArray = analize(markdown); const asts = mdArray.map((md) => parse(md)); const htmlString = generate(asts); ...
<gh_stars>0 from precise.skaters.managers.schurmanagerfactory import schur_vol_vol_ewa_manager_factory,schur_diag_diag_buf_emp_manager_factory # Stands for <NAME> # Some Hierarchical Risk-Parity managers very loosely based on some literature # Original Hierarchical Risk Parity approach # (Note that seriation may be ...
def _add_block(self, block: Type[Block]): self._blocks.append(block)
<filename>components/MobileMenu.tsx import { WidthWrapper } from "@/components/core/Layout"; import { IconButton, Flex } from "@chakra-ui/react"; import HamburgerMenu from "react-hamburger-menu"; import useStore from "@/src/store"; import { ReactElement, useRef } from "react"; import NavOverlay from "@/components/NavOv...
Development of an in vivo method to identify mutants of phage T4 lysozyme of enhanced thermostability An M13 bacteriophage‐based in vivo screening system has been developed to identify T4 lysozyme mutants of enhanced thermal stability. This system takes advantage of easy mutagenesis in an M13 host, the production of f...
Lessons from Personhood's Defeat: Abortion Restrictions and Side Effects on Women's Health State personhood laws pose a puzzle. These laws would establish fertilized eggs as persons and, by doing so, would ban all abortions. Many states have consistently supported laws restricting abortion care. Yet, thus far no perso...
/** * (Mock)Test JobTracker.removeJobTasks() which is called only when the job * retires. */ public void testJobRemoval() throws Exception { MiniMRCluster mr = null; try { JobConf conf = new JobConf(); mr = startCluster(conf, 0); JobTracker jobtracker = mr.getJobTrackerRunner().getJo...
I don’t have to tell you there’s a sort of Podcast Renaissance taking place (again). But here’s what you might not know — there’s a Renaissance happening in Public Radio too. I’m not talking about new companies making new kinds of stories for a new(ish) medium, although this success should be applauded. I’m talking abo...
<reponame>cholcombe973/isilon<filename>src/models/pools_pool_rule_create_params.rs<gh_stars>1-10 #[allow(unused_imports)] use serde_json::Value; #[derive(Debug, Serialize, Deserialize)] pub struct PoolsPoolRuleCreateParams { /// Description for the provisioning rule. #[serde(rename = "description")] pub de...
/** * A storage of pages in files. * <p> * All pages passed into this store are restricted to be {@link SerializedPage}s. * <p> * While {@link DiskPageStore} uses a single file per session, this implementation stores each page * in its own file. This improves on a {@link DiskPageStore disadvantage of DiskPageStor...
<gh_stars>1-10 #include "Filter.h" #include "Cpp/Warnings.h" #include "Container/Sequential/Array.h" #include "Types.h" #include "Range/Mutation/Transform.h" #include "Range/Reduction.h" #include <stdio.h> INTRA_PUSH_DISABLE_REDUNDANT_WARNINGS namespace Intra { namespace Audio { namespace Synth { FilterCoeffs Filt...
from django.template import Library from django.template.defaultfilters import stringfilter from typing import List register = Library() @register.filter(is_safe=True) def hexlist(value: List[int]): return ', '.join('0x{:02x}'.format(x) for x in value)
##################################################### # Copyright (c) <NAME> [GitHub D-X-Y], 2021.03 # ##################################################### # pytest tests/test_synthetic_utils.py -s # ##################################################### import sys, random import unittest import pytest from p...
import { Injectable } from '@angular/core'; import { CanActivate } from '@angular/router'; import { NbAuthService } from '@nebular/auth'; import { tap } from 'rxjs/operators'; import { NbToastrService } from '@nebular/theme'; @Injectable({ providedIn: 'root', }) export class AuthGuardService implements CanActivate {...
// Note: Contact points are used for calculating the distance from the centre of mass to the contact point. // I believe this is necessary for rotational components. It is unclear how the contact point should be calculated. // Sometimes the contact point is on the boundary of one object and not the other, and it is not...
def hold(job, clean_job=False, clean_logs=False, hold_children=True): if not job.state in db.STATES_ACTIVE: return False log.info("Holding job: %s-%d", str(job), job.id) set_state(job, db.STATE_HOLD, cleanup=clean_job) db.update_job_states(get_group_jobs(job)) if len(job.pipe_from) == 0: ...
Facebook has been trying to get India to fall in love with its Free Basics service for several months since it launched in February. CEO Mark Zuckerberg even visited the capital of New Delhi last week and attempted to address concerns about it during a Townhall Q&A session. But he still doesn’t get why Indians are opp...
use { crate::{ core::Terrain, persist::Level, pos::*, }, super::{ drawing_action::*, ink::*, }, }; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PenShape { Dot, Line, Rect, } pub static PEN_SHAPES: &[PenShape] = &[PenShape::Dot, PenShape::Line...
package cmdx_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/w6d-io/x/cmdx" ) var _ = Describe("Command functions testing", func() { Context("Variables is not empty", func() { It("Version responds correctly", func() { By("Set variables") version := "v0.1.0-test" commit ...
//go:build !tinygo // +build !tinygo package gfx import "math" // HunterLab represents a color in Hunter-Lab. type HunterLab struct { L float64 A float64 B float64 } // XYZ converts from HunterLab to XYZ. // // Reference-X, Y and Z refer to specific illuminants and observers. // Common reference values are avail...
/** * @return MobileCoreJsonConfig * @throws IOException if reading the stream fails * @throws JSONException if the json document is malformed */ public MobileCoreConfiguration parse() throws IOException, JSONException { JSONObject jsonConfig = new JSONObject(readJsonStream(jsonStream)); ...
The problem of polyfunctionality in the traditional and computational linguistics This article describes in detail the study of multifunctional words in traditional linguistics by world and Uzbek scientists. Its relation to concomitant phenomena – homonymy and polysemy is expressed. It is noted that in computational l...
/** * Used to unmarshal json using specified type and class binding. In case if json have @type or @class attribute classBinding and type will be replaced with * more suitable for this case. * * @param json json to unmarshal. * @param typeOfT type to use during unmarshal. * @param classBin...
package servicefabric import ( "errors" "strings" "text/template" "github.com/containous/traefik/log" "github.com/containous/traefik/provider" "github.com/containous/traefik/provider/label" "github.com/containous/traefik/types" sf "github.com/jjcollinge/servicefabric" ) func (p *Provider) buildConfiguration(...
/** * Writes a message to the logs. * This may cause older messages to be pushed out. * Warning: Due to the memory shifting done on the log, logging is expensive. */ void write_log(const char* message) { #if LOG_ENABLED == 1 int len = strlen(message) + 1; for (int i = LOG_LENGTH - len; i >= 0; i--) { logs[i + l...
/** * Preforms cleanup before exiting via interrupt */ void signalhandler(int signum) { if (signum == SIGINT) { sigint_flag = 1; } if (signum == SIGUSR1) { environment_flag = 1; } if (signum == SIGUSR2) { camera_timeout_flag = ...
Pressure to allow Ottawa businesses to open on holidays appears to be building, with retailers and their advocates saying stores should have the option to open regardless of where they are located. Last month, the Ontario Municipal Board upheld an Ottawa city council decision granting the Glebe an exemption from provi...
Q,H,S,D=list(map(int,input().split())) N=int(input()) ans=0 min_tea=min(Q*8,H*4,S*2,D) ans+= (N//2) * min_tea N-=(N//2)*2 min_tea=min(Q*4,H*2,S*1) ans+= (N//1) * min_tea print(ans)
/** creates fully formatted address based on inputted seed. If seed is empty then a randomly generated seed is used by libsodium the format of the return is: pay:sov:{32 byte address}{4 byte checksum} */ fn indy_create_key(&self, wallet_id: IndyHandle, config: PaymentAddressConfig) ...
<gh_stars>10-100 #include <cassert> #include <vector> #include <string> #include <algorithm> using namespace std; #include "nextCombination.h" /////////// For Testing /////////////////////////////////////////////////////// #include <time.h> #include <cassert> #include <iostream> #include "../common/iostreamhelper.h...
/** * Data Access Object (DAO) for policy groups. * <p> * * @see <a href="http://www.corej2eepatterns.com/Patterns/DataAccessObject.htm">Core J2EE Patterns - Data Access * Object</a> */ @Preamble(description = "Data Access Object (DAO) for policy groups.") public class PolicyGroupDao extends AbstractModelDa...
It’s the holidays and I want me some good ol’ fashioned shepherd’s pie (*insert southwestern accent). 🙂 Well, almost “good ol’ fashioned.” 😛 This vegetarian shepherd’s pie is vegan and made with lentils and sweet potato. Oh, and it’s absolutely satisfying! Unfortunately, even though I LOVE sweet potato, my tummy do...
#include "RobotParameters.h" namespace RobotParameters { const EigenVectord3 zeroVec{0, 0, 0}; const EigenVectord3 ex{1,0,0}; const EigenVectord3 ey{0,1,0}; const EigenVectord3 ez{0,0,1}; const double scalarGravity = 9.81; const EigenVectord3 gravity{scalarGravity * ez}; const EigenVector...
<filename>jp.atcoder/abc185/abc185_f/28632173.py import typing # import dataclasses S = typing.TypeVar("S") # @dataclasses.dataclass class Monoid(typing.Generic[S]): op: typing.Callable[[S, S], S] e: typing.Callable[[], S] def __init__(self, op, e) -> None: self.op = op se...
#include "Endstop.h" Endstop::Endstop(byte pin) { _pin = pin; pinMode(_pin, INPUT_PULLUP); } bool Endstop::isClicked() { if (digitalRead(_pin) == LOW) return true; else return false; }
<reponame>wwjiang007/fuchsia-1 // Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use crate::agent::earcons::agent::CommonEarconsParams; use crate::agent::earcons::sound_ids::{VOLUME_CHANGED_SOUND_ID, VOLUM...
Politicians in city and county governments across California are thumbing their noses at federal law in order to harbor illegal aliens, including criminal illegal aliens like Kate Steinle’s alleged killer in San Francisco. These deadly sanctuary policies not only violate federal law…they are killing innocent people, de...
export default sap.ui.model.odata.ODataMetaModel;
def _device_status_status(value: DeviceStatus) -> Sensor.Status: if value == DeviceStatus.OK: return Sensor.Status.NOMINAL elif value == DeviceStatus.DEGRADED: return Sensor.Status.WARN else: return Sensor.Status.ERROR
def pairLevelsDispersion(d, N, D, singlyOccupiedList): pairEnergies, singleEnergies = [[] for i in singlyOccupiedList], [[] for i in singlyOccupiedList] for j in range(len(singlyOccupiedList)): for i in range(N): if testBit(singlyOccupiedList[j], N-i-1)==0: pairEnergies[j].append(eps(i, d, D)) else: ...
Subscribers to the CWO newsletter (both American and beyond) have been sharing some of their favorite British crime stories with us. Writing from Pennsylvania, Breanne’s favourite (see was we did there?) is Grantchester: Hot priest turns sleuth. Women swoon. Lily from Portland, ME says we should check out Robbie Colt...
def __check_service(service_object): svc = service_object() if not isinstance(svc, StackInABoxService): raise TypeError( "Service is not a Stack-In-A-Box Service" )
/** * Add results to the total results, * this will not allow adding results beyond the maxItemsToReturn (max) number * * @param searchResult the result to add * @return true if the item was added OR false if it was null or the max number is already added */ public boolean addResult(Searc...
<reponame>xswz8015/infra # Copyright 2019 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. """Special logic of pre compile analysis. Build with compile failures will be pre-processed to determine if a new compile analysis i...
def assertConstructHeaderDatasetName( self, _map: HDFMapDigiTemplate, _group: h5py.Group ): kwargs_list = [] for cname, config in _map.configs.items(): for adc in config["adc"]: for conn in config[adc]: brd = conn[0] chs = c...
def delete(models, **kwargs): delete_async(models, **kwargs).get_result()
from collections import defaultdict def read_in(): polymer = input() input() rules = {} while value := input(): k, v = value.split(' -> ') rules[k] = v return polymer, rules def run_for_n_rounds(polymer, rules, n): p_map = defaultdict(int) e_count = defaultdict(int) f...
<reponame>xavaz/androidtv-Leanback<gh_stars>0 package com.example.android.tvleanback.ui; import android.Manifest; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.media.Medi...
/** * Diamond, which represents the position that player have to move Crate to */ public class Diamond extends AbstractGameObject { private transient Image DIAMOND_IMAGE; /** * Instantiates a new Diamond. * * @param linksTo the links to * @param atX the at x * @param atY the...
Cambridge city council leader says he regrets following 'bureaucratic guideline' to remove punctuation from street signs A council has been praised for its "sensible decision" to reverse a policy of banning apostrophes on street signs. Cambridge city council faced criticism from self-declared defenders of grammar for...
/// Block execution of activity, preventing ANY kind of message not specified in the `wait_for` argument. /// Once `wait_for` clause is satisfied, the function returns. /// /// Returns the message which satisfied the clause /// /// NOTE: The view is redrawn as usual pub(super) fn wait_for_pending_msg(&mut self, wait_fo...
package virtualmachine import ( . "github.com/onsi/gomega" "testing" "github.com/orbs-network/go-scaffold/utils/logger" _statestorage "github.com/orbs-network/go-scaffold/services/statestorage" "github.com/orbs-network/go-scaffold/types/services/statestorage" "errors" ) var transferTable = []struct{ to string ...
/* Copyright (C) 2014-2017 Carl Leonardsson * * This file is part of Nidhugg. * * Nidhugg is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later...
def org_organisation_requires(updateable=False, required=False): requires = IS_ONE_OF(current.db, "org_organisation.id", org_organisation_represent, updateable = updateable, orderby = "org_organisation.name", ...
#include "./LibraryMainFunct.h" void SetConfig(const MainConfig cfg) { FILE * config = fopen(MAIN_CONFIG_FILE, "wt"); if(config) { fprintf(config, "%u ", cfg.AutoLoad); fprintf(config, "%u ", cfg.MaxDays); fprintf(config, "%u ", cfg.Books); fprintf(config, "%u ", cfg.Users);...
/** * Resets the Method for reusablility. * @param method Method to reset. */ void releaseConnection(HttpRequestBase method) { if (method != null) { method.reset(); } }
Piperidino Substituted Borametallocenophanes. Synthesis, Reactivity, and Structure ansa-Metallocenes and related complexes have considerable potential as catalyst precursors in the Ziegler-Natta type olefin polymerization. In the present paper we report about the synthesis of piperidinyl-substituted borametallocenop...
package service import ( "context" "fmt" "sync" "time" "github.com/titpetric/factory" "github.com/cortezaproject/corteza-server/pkg/auth" ) type ( recordSet []*RecordImportSession importSession struct { l sync.Mutex records recordSet } ImportSessionService interface { FindByID(ctx context.Co...
def read( self: HDF_File, group_name: str = None, dataset_name: str = None, attr_name: str = None, return_dataset_shape: bool = False, return_dataset_dtype: bool = False, return_dataset_slice: slice = slice(None), swmr: bool = False, ): with h5py.File(self.file_name, "r", swmr=swmr) ...
package functions import ( "github.com/stretchr/testify/assert" "testing" ) func TestChr(t *testing.T) { assert.Equal(t, "a", Chr(97)) assert.Equal(t, "c", Chr(99)) // Overflow behavior //assert.Equal(t, "a", Chr(-159)) // Overflow behavior //assert.Equal(t, "A", Chr(833)) // Overflow behavior }
/** * Copyright 2017 SPeCS. * * 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 in writing,...
use crate::types::{RevertContext, RevertWitness}; use anyhow::{anyhow, Result}; use ckb_types::prelude::Reader; use ckb_types::prelude::{Builder, Entity}; use gw_common::smt::Blake2bHasher; use gw_common::H256; use gw_types::core::Status; use gw_types::offchain::{CellInfo, RollupContext}; use gw_types::packed::BlockMe...
package workers import ( "bytes" "testing" "github.com/kilgaloon/leprechaun/config" "github.com/kilgaloon/leprechaun/context" "github.com/kilgaloon/leprechaun/log" "github.com/kilgaloon/leprechaun/recipe" ) var ( configs = config.NewConfigs() ConfigWithSettings = configs.New("test", "../...