content
stringlengths
10
4.9M
<gh_stars>0 #![allow(unused)] #![allow(dead_code)] use varlen::prelude::*; #[define_varlen] /// This struct contains two lengths and three arrays. pub struct CoolStruct { /// This length controls the first two arrays. #[controls_layout] pub small_len: u8, /// This length controls the last array. #[...
/// the timestamp of the last modification to the given file int fileModificationTimestamp( const String &fileName ) { struct stat fileInfo; if (stat( fileName.c_str(), &fileInfo) == -1) { warning( "fileModificationTimestamp: stat error" ); return 0; } return (int) fileInfo.st_mtime; }
Geometrically distributed one-dimensional photonic crystals for light-reflection in all angles. We demonstrate that a series of one-dimensional photonic crystals made of any dielectric materials, with the periods are distributed in a geometrical progression of a common ratio, r < rc (theta,P), where rc is a structural...
<filename>src/components/Poetry.tsx import styled from 'styled-components'; const PoetryDiv = styled.div` margin: 100px 0 100px 0; display: flex; justify-content: center; flex-direction: column; flex-flow: wrap; font-family: 'Cafe24SsurroundAir', cursive; font-size: 20px; `; const Column = styled.div` wi...
/// Will make the bot "remember" that you are a specified Tetr.io user. /// Useful for registration or for easy stat/player lookup /// It will retain the link, even if you change your username async fn link(ctx: &Context, msg: &Message, args: Args) -> CommandResult { let reply = match args.current() { None ...
/** * Prints out Statement in RangerIR. */ public class StmtPrintVisitor extends PrettyPrintVisitor{ StmtPrintVisitor() { super(); } @Override public Void visit(gov.nasa.jpf.symbc.veritesting.ast.def.SwitchInstruction c) { ind(); write(c.original.toString()); nl(); r...
package cmd import ( "testing" "github.com/drud/ddev/pkg/testcommon" "github.com/drud/drud-go/utils/system" "github.com/stretchr/testify/assert" ) // TestDescribeBadArgs ensures the binary behaves as expected when used with invalid arguments or working directories. func TestDescribeBadArgs(t *testing.T) { asser...
package org.jaewanyun.plasmidplanner; public class Overhang implements Comparable<Overhang> { private int hashCode = 0; private String overhang; // DNA sequence of overhang left from an enzyme /* * True if the overhang is a 3 prime overhang * False if the overhang is a 5 prime overhang * * Example: * C...
N=int(input()) days,last=[int(s) for s in input().split()] for i in range(N): x=1 a=int(input()) while x<=days: last+=1 x+=a print(last)
Hybrid materials – a review on co-dispersion, processing, patterning, and properties ABSTRACT Inorganic and organic hybrids are a class of new materials that are purposely designed and arranged at individual species levels (often at nanoscale) to provide new morphological attributes and properties. This review is inte...
<reponame>FOC-framework/framework /******************************************************************************* * Copyright 2016 <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 Lic...
def key_to_regular_number(self, counter, raw_key): for old_counter, old_raw_key in self.references_dict.items(): if old_raw_key == raw_key: self.duplicates += 1 return str(old_counter) counter_1_based = counter + 1 - self.duplicates self.references_dict[counter_1_based] = raw_key r...
/* This file is a part of NNTL project (https://github.com/Arech/nntl) Copyright (c) 2015-2021, Arech (<EMAIL>; https://github.com/Arech) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redi...
// ===================================================================================================================== // Create a subgroup clustered inclusive scan. // // @param groupArithOp : The group arithmetic operation. // @param value : An LLVM value. // @param inClusterSize : The expected cluster size. // @pa...
n=input() a=map(int,raw_input().split()) b=[] for j in range(n): b=[a[j]]+b c=[] d=[0]*1001 for j in range(len(a)): if d[b[j]]==0: d[b[j]]+=1 c=[b[j]]+c print len(c) for i in (c): print i,
// ByoipCidrState_Values returns all elements of the ByoipCidrState enum func ByoipCidrState_Values() []string { return []string{ ByoipCidrStatePendingProvisioning, ByoipCidrStateReady, ByoipCidrStatePendingAdvertising, ByoipCidrStateAdvertising, ByoipCidrStatePendingWithdrawing, ByoipCidrStatePendingDepro...
A couple models are currently on the same page regarding a potential storm heading our way late this week and into the weekend. Since this storm is 5/6 days away, it is impossible to say exactly when/where/how much at the moment, but since we haven’t had any storms yet, I can’t help being excited. Right now, this loo...
def prefix_search(field, prefix_query): prefix_query = _escape_wildcard(prefix_query) return Field.__pow__(field, NodeList((prefix_query + "%", SQL("ESCAPE '!'"))))
<reponame>tkeemon/visionworkbench<gh_stars>1-10 // __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #ifndef __VW_PLATE_PLATE_CARREE_PLATEMANAGER_H__ #define __VW...
def sizes(args): p = OptionParser(sizes.__doc__) opts, args = p.parse_args(args) if len(args) != 1: sys.exit(not p.print_help()) (bedfile,) = args assert op.exists(bedfile) sizesfile = bedfile.rsplit(".", 1)[0] + ".sizes" fw = must_open(sizesfile, "w", checkexists=True, skipcheck=Tru...
/** * Construct a key by parsing it's associated text. * * <p> The assumption is that the primary analyzer identifier is followed by an underscore ({@code '_'}) character, * and that subsequent options are delimited by a dash ({@code '-'}) character. </p> * <p> E.G.: "TST_f-x" = "TST" analyzer ...
/* Helper functions to create a single unary HSA operations out of calls to builtins. OPCODE is the HSA operation to be generated. STMT is a gimple call to a builtin. HBB is the HSA BB to which the instruction should be added. Note that nothing will be created if STMT does not have a LHS. */ static void g...
<filename>Strings/1272.py for k in range(int(input())): S = input().split() if S == []: print('') else: res = '' for k in S: res += k[0] print(res)
package client import ( "errors" "flag" "github.com/gen2brain/dlgs" "github.com/liqotech/liqo/apis/sharing/v1alpha1" "github.com/liqotech/liqo/pkg/crdClient" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes/fake" "k8s.i...
def write_mesh_vertices_rgb(filename, out_name, colors): with open(filename, 'rb') as f: plydata = PlyData.read(f) num_verts = plydata['vertex'].count plydata['vertex'].data['red'] = colors[:,0] plydata['vertex'].data['green'] = colors[:,1] plydata['vertex'].data['blue'] = co...
<reponame>elishakrasz1/effort<filename>server_dev/example_app/models.py from example_app.extensions import db from sqlalchemy import func from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.ext.associationproxy import association_proxy # user_role = db.Table( # "user_role", # db.metadata, # ...
Proceedings of the 2017 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation A warm welcome to SIGSIM PADS'17, the 5th ACM SIGSIM Conference on Principles of Advanced Discrete Simulation. SIGSIM PADS is the flagship conference of ACM's Special Interest Group on Simulation and Modeling (SIGSIM). It provi...
/*************************************** * Appends a relation to a JSON string. * * @param rJsonMessage The string builder * @param rRelation The relation * * @return TRUE if a relation has been appended */ private boolean appendRelation( StringBuilder rJsonMessage, Relation<?> rRelation) { ...
def validate_shapes(shapes): if len(shapes) == 0: raise ValueError(f'Must have at least one shape. Valid shapes are: {str_to_shape.keys()}') for shape in shapes: if shape not in str_to_shape: raise ValueError(f'{shape} is not a valid shape. Valid shapes are: {str_to_shape.keys()}')
/* Create a copy of a function's tree. OLD_DECL and NEW_DECL are FUNCTION_DECL tree nodes of the original function and the new copied function respectively. In case we want to replace a DECL tree with another tree while duplicating the function's body, TREE_MAP represents the mapping between these ...
<reponame>d-shaktiranjan/task_management from django.contrib import admin # Register your models here. from home.models import AllTask admin.site.register(AllTask)
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE PolyKinds #-} -- | This module contains some category classes similar to those in @ConCat.Category@, -- but without the @Ok@ constraints. This can improve the performance significantly, -- since we don't need to build the dictionaries for...
. This is to report the aging process of the acetabula studied as an aid to the investigation of the pathogenesis and progression of osteoarthritis of the acetabulum. The material consisted of 45 acetabula obtained from 45 fresh cadavers. Regarding the morphological changes of the labrum-cartilage junction of middle a...
Copley Square reopened Wednesday morning, more than a week after the Boston Marathon bombings. During the day, people returned to the area which had remained deserted as investigators combed the scene. Click through the gallery to see Copley Square’s first busy day since the attack. Pictured: Vehicles moved up Dartmout...
<filename>inc/hal/rfid.h /** * @file rfid.h * @author Violet - Initial version * @author RedoX <<EMAIL>> - 2015 - GCC Port, cleanup * @date 2015/09/07 * @brief RFID low level access */ #ifndef _RFID_H_ #define _RFID_H_ /********************/ /* SPECIFIC DEFINES */ /********************/ #define CRX1...
""" Contains IOManager for managing access to input, output, error, and debug file-like objects. """ """ Copyright 2011-2013 <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.ap...
Effect of non-surgical periodontal therapy on C-reactive protein, oxidative stress, and matrix metalloproteinase (MMP)-9 and MMP-2 levels in patients with type 2 diabetes: a randomized controlled study. BACKGROUND It is well accepted that glycemic control in patients with diabetes mellitus (DM) is affected by systemic...
<gh_stars>0 import { ISequence } from './interfaces/i-sequence'; import { Sequence } from './sequences/sequence'; import { DeclarrayError } from './errors/declarray-error'; export function of<T>(item: T): ISequence<T> { return new Sequence([item]); } export function empty(): ISequence<unknown> { return new Se...
Changes to the home food environment and parent feeding practices during the COVID-19 pandemic: A qualitative exploration The COVID-19 pandemic brought about many changes that potentially altered the home food environment, which has been associated with child eating patterns and dietary intake. There is also some evid...
GOCAD TSurf 1 HEADER { name:<NAME> *visible:false *solid*color:0.000000 0.666667 1.000000 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UNIT "m" "m" "m" ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM TFACE VRTX 1 1946373.03302902 5698655.64843440 20.83855316 VRTX 2 19...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
To: CITES Secretary General Ivonne Higuero and Member Nations, Greetings, The earth and its creatures, human and animal are at a crossroads; climate change is upon us, as is the escalating loss of wild places; droughts, floods and dwindling habitat are imposing hitherto unimagined stresses on the last remain populati...
// Clone duplicates the set s. func (s *Set) Clone() *Set { set := New() set.Merge(s) return set }
// Turns off the promo line permanently when it has been explicitly closed by // the user. class NewTabPageClosePromoHandler : public WebUIMessageHandler { public: NewTabPageClosePromoHandler() {} virtual ~NewTabPageClosePromoHandler() {} virtual void RegisterMessages(); void HandleClosePromo(const ListValue* ...
package com.dynamsoft.demo.dynamsoftbarcodereaderdemo; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Point; import android.graphics.Typeface; import and...
Comparison of a 5MW permanent magnet assisted synchronous reluctance generator with an IPMSG for wind application This article presents a performance comparison of a 5MW interior permanent magnet synchronous generator (IPMSG) with a 5 MW permanent magnet assisted synchronous reluctance generator (PMa-SynRG) with the s...
Promised and Actual Benefits in Mexican Social Security for the Transtion Generation This paper provides a set of measurements of the actual benefits and costs of the general old age retirement plan provided to individuals by the Mexican pension system (MPS), which is necessary to evaluate the decisions by workers to ...
/* * Copyright © 2021 peizhaoyou <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
import * as React from 'react' import {StateButtonBoxProps} from '../interfaces' export class StateButtonBox extends React.Component<StateButtonBoxProps> { constructor(props: StateButtonBoxProps) { super(props) } render() { return ( <div className="pathing-builder-statebtnbox"> <button ...
class Memory: """ Contains all the information infers from the input file. """ def __init__(self, strategy=defaultStrategy): """ Set the strategy to the given value and init all structures. """ # Strategy memory: a list of 3 ([global, position, twochain]) pondera...
The Locals: California Brings It On! ​ Vegas Brings The Heat! ​ ---​ A day devoted to eSports and Smash is invited? Time to get exited!, a PC gaming company that has worked with the likes of Intel, NVIDIA, AMD, Microsoft, Western Digital, Asus, Bethesda, MLG, and more, has decided to host the first ever iBUYPOWER eS...
N = int(input()) List = [] for i in range (2): List.append(list(map(int, input().split()))) sumList1 = [0]*N sumList2 = [0]*N for i in range(N): if i == 0: sumList1[i] = List[0][i] sumList2[N-1-i] = List[1][N-1-i] else: sumList1[i] = List[0][i]+sumList1[i-1] sumList2[N-1-i] = List[1][N-1-i]+sumLis...
// IterateEntries returns a list of saved entries starting with index low up to // index high with a max size of maxSize. func (mw *ShardedRDB) IterateEntries(ents []pb.Entry, size uint64, clusterID uint64, nodeID uint64, low uint64, high uint64, maxSize uint64) ([]pb.Entry, uint64, error) { idx := mw.partitioner.Ge...
def time_range(start_time, end_time, unit='m'): unit_dict = {'h': timedelta(hours=1), 'm': timedelta(minutes=1), 's': timedelta(seconds=1)} delta = unit_dict[unit] rng = [] t = datetime.combine(date.today(), start_time) while t <= datetime.combine(date.today(), end_time): rng.append(t.time()...
package sk.mimac.perun.android.sensors; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.hardware.Sensor; import android.hardware.SensorManager; import android.location.Location; import android.location.LocationMa...
<reponame>ivanjj22/performance-benchmark-stacks<filename>java/spring-boot-tomcat/src/main/java/co/com/bancolombia/controller/StatusController.java package co.com.bancolombia.controller; import co.com.bancolombia.models.Status; import org.springframework.http.MediaType; import org.springframework.web.bind.annotatio...
def testDenyAllowAccess(self): self.host.ContinueAuth() self.host.SignIn(self.account['username'], self.account['password']) self.host.DenyAccess() self.host.ContinueAuth() self.host.AllowAccess()
Dark Fluid: a complex scalar field to unify dark energy and dark matter In this article, we examine a model which proposes a common explanation for the presence of additional attractive gravitational effects -- generally considered to be due to dark matter -- in galaxies and in clusters, and for the presence of a repu...
<gh_stars>1-10 import { Component, ContentChild, ElementRef, Input, Renderer, ViewChild } from '@angular/core'; import { Subject } from 'rxjs/Subject'; @Component({ selector: 'modal-cancel-text', template: `<ng-content></ng-content>` }) export class ModalCancelText {} @Component({ selector: 'mini-mo...
<reponame>GaryHuangBD/go-drive package common import ( "errors" "flag" "fmt" "go-drive/common/registry" "os" "path" "path/filepath" "time" ) var ( version = "unknown" hash = "unknown" build = "unknown" ) const ( DbType = "sqlite3" DbFilename = "data.db" LocalFsDir = "local" Listen = ":808...
""" General utility """ from json import loads def required_field_validation(payload, require_fields): """ Validate required fields exists in payload or not :param payload: :param require_fields: :return: """ payload_fields = set(payload.keys()) intersect = set.intersection(payload_f...
// Fig. 23.24: BackgroundCalculator.java // SwingWorker subclass for calculating Fibonacci numbers // in a background thread. import javax.swing.SwingWorker; import javax.swing.JLabel; import java.util.concurrent.ExecutionException; public class BackgroundCalculator extends SwingWorker< Long, Object > { pr...
/** * Called when the ZXing Activity is cancelled * @author Ben Kennedy NCVT73 */ public void cancel() { if(takeBarcodeURL == null) { if(takeResult != null) { HashMap<String, Object> resultsMap = new HashMap<String, Object>(); resultsMap.put("barcode", ""); resultsMap.put("status", "cancel"...
<reponame>caicaiget/go-blog package models type Article struct { Model Tag Tag TagId int64 `json:"tagId"` Title string `json:"title" valid:"Required;MaxSize(16)"` Desc string `json:"desc" valid:"MaxSize(16)"` Content string `json:"content" valid:"Required"` State int64 `json:"state"` CreatedBy int64 Modifie...
<filename>include/newton_polinomial.h #ifndef NEWTON_POLINOMIAL_H #define NEWTON_POLINOMIAL_H class newton_polinomial { public: newton_polinomial(); virtual ~newton_polinomial(); void work(); float value_fx(); float value_coefficient(int i); float value_x(int a); ...
<reponame>Chexxo/Server<filename>src/server/ChexxoServer.ts<gh_stars>0 import { APIProvider } from "../api/APIProvider"; import { CertificateProvider } from "../certificate/CertificateProvider"; import { Logger } from "../shared/logger/Logger"; /** * Represents the chexxo server. Holds all server * components and in...
<filename>src/ptss_test.cpp #include <iostream> #include <vector> #include <set> #include <iterator> #include <cmath> #include <chrono> #include <exception> #include <queue> #include <boost/math/distributions/normal.hpp> #include <sys/time.h> #include "ptss_dse.hpp" #include "ptss_config.hpp" #include "ptss_pkmin.hpp" ...
<gh_stars>1000+ // Copyright (c) 2017-2021 Uber Technologies Inc. // 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, c...
// rewriteVersionList rewrites the version list in dir // after a new *.mod file has been written. func rewriteVersionList(dir string) { if filepath.Base(dir) != "@v" { base.Fatalf("go: internal error: misuse of rewriteVersionList") } listFile := filepath.Join(dir, "list") unlock, err := lockedfile.MutexAt(listFi...
SDN, Software-Defined Networking, the trending technology that some friends/colleagues of mine like to refer to it as “Still Does Nothing”. Let’s see if it does some thing. SDN has been a market hype for few years now. Out of laziness, I ignored it in the beginning then I had to catch up a bit later and learn what wa...
<reponame>minchd/cavestory<filename>src/game.cpp<gh_stars>0 /* * game.cpp * * Created on: Sep 1, 2018 * Author: minch.david */ #include <SDL2/SDL.h> #include "game.h" #include "graphics.h" #include "input.h" const int FPS = 50; const int MAX_FRAME_TIME = 5*1000 / FPS; Game::Game () { SDL_Init(SDL_INIT_E...
package com.betterx.android.dataModel; public class TransmissionSettings { public boolean isCharging; public boolean isWifiConnected; public TransmissionTime transmissionTime; }
/** * Implementation of the Abstract Syntax Tree node for a pointer type. * @author Marc Pantel * */ public class PointerTypeImpl implements Type { private Type element; public PointerTypeImpl(Type _element) { this.element = _element; } public Type getPointedType() { return this.element; } /* (non-Ja...
<reponame>npocmaka/Windows-Server-2003 /*****************************************************************/ /** Microsoft Windows NT **/ /** Copyright(c) Microsoft Corp., 1989-1992 **/ /*****************************************************************/ /* ...
/** * lock avoid multi task download single file */ private synchronized void download(String localPath, String remotePath) throws IOException { if (Files.notExists(Path.of(localPath))) { Stream<String> paths = storageAccessService.list((remotePath)); paths.collect(Collectors.t...
By Amateur radio seems to be enjoying a renaissance on college campuses around the country. Here in Ann Arbor, home of the University of Michigan, the U-M Amateur Radio Club was revived about ten years ago, and it’s still going strong. They hold regular meetings and have a great station. Their callsign, W8UM, is often...
export enum PageName { COURSES = 'courses', API_COURSES = 'api/courses', }
def plot_lightcurve( source: Source, vs_abs_min: float = 4.3, m_abs_min: float = 0.26, use_peak_flux: bool = True, ) -> Row: PLOT_WIDTH = 800 PLOT_HEIGHT = 300 flux_column = "flux_peak" if use_peak_flux else "flux_int" metric_suffix = "peak" if use_peak_flux else "int" measurements_q...
package main import ( "errors" "os" "path/filepath" "strings" "go.uber.org/zap" ) type linkCommand struct { Root string `long:"dir" env:"DOTFILES_ROOT" description:"root directory"` Home string `long:"home" description:"The home folder" env:"HOME" hidden:"true"` Config string `long:"xdg-config" descripti...
package other import "strconv" /* # Evaluate Reverse Polish Notation # https://leetcode.com/explore/interview/card/top-interview-questions-medium/114/others/823/ Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expr...
Nanostructured and Photochromic Material for Environmental Detection of Metal Ions Compared to conventional spectroscopy or chromatography analysis, chemical sensing based on colorimetric changes offers an alternative to monitor potential metal hazards in aqueous environment through rapid and low-cost colorimetric cha...
/** Most exceptions used by ftp package are subclasses of FTPException and inherit its features: <ul> <li> exception code can be used to more precisely identify the problem. Exception codes are defined within each exception class (look at the source code). For example, in ClientException, code 8 (ClientException.BAD_M...
def fetch(self, remote=None, prune=False, fetch_all=False): cmd = ['git', 'fetch'] if prune: cmd.append('--prune') if fetch_all: cmd.append('--all') if remote is not None: cmd.append(remote) return self._run(cmd)
module Data.Discrimination.Class ( Discriminating(..) -- * Joins , joining , inner , outer , leftOuter , rightOuter ) where import Control.Applicative import Control.Arrow import Data.Functor.Contravariant.Divisible import Data.Discrimination.Grouping import Data.Discrimination.Internal import Data.Dis...
package com.indigo.zabbix.utils; import com.google.gson.JsonElement; import com.indigo.zabbix.utils.beans.CmdbResponse; import com.indigo.zabbix.utils.beans.ProviderInfo; import com.indigo.zabbix.utils.beans.ServiceInfo; import feign.Param; import feign.RequestLine; /** * Created by jose on 8/02/17. ...
Epistaxis in hereditary haemorrhagic telangiectasia. Hereditary haemorrhagic telangiectasia (HHT) is characterized by easily bleeding telangiectases of the skin and mucosa. Epistaxis is the most common symptom of HHT. Larger arteriovenous malformations (AVM) occur in the lungs (in up to 33% of the patients), brain (in...
<reponame>polpo-studio/gen<filename>condition.go package gen import ( "fmt" "github.com/polpo-studio/gen/field" "gorm.io/datatypes" "gorm.io/gorm/clause" ) func Cond(exprs ...clause.Expression) []Condition { return exprToCondition(exprs...) } var _ Condition = &condContainer{} type condContainer struct { val...
<filename>work-app/src/main/java/com/suizhu/work/model/service/impl/ModelServiceImpl.java package com.suizhu.work.model.service.impl; import org.springframework.stereotype.Service; import com.suizhu.common.core.service.impl.ServiceImpl; import com.suizhu.work.entity.Model; import com.suizhu.work.model.mapper.ModelMap...
import sys import bisect as bi import random as rd import itertools as it import collections as cc input=sys.stdin.readline I=lambda:list(map(int,input().split())) def ch(ar): st=[] for i in ar: if not st: st.append(i) continue elif i==')' and st[-1]=='(': st.pop() else: st.append('(...
<filename>src/types/ObjectConfig.ts import { GraphQLNonNull, GraphQLLeafType, GraphQLFieldConfig } from 'graphql' import { FieldType } from 'jsforce' export const FIELD_KIND = Symbol('fieldKind') export const OBJECT_KIND = Symbol('objectKind') export interface ParentField { [FIELD_KIND]: 'parent' referenceTo: str...
/** * DTO that stores response context information of the Authorization code grant flow */ public class AuthResponseContext { private URI redirectUri; private Map<String, String> queryParams = new HashMap<>(); public Map<String, String> getQueryParams() { return queryParams; } public voi...
import { Directive, Input, HostBinding, ElementRef } from '@angular/core'; import { XotbInternalDate } from './util'; @Directive({ selector: 'td[xotbDay]' }) export class XotbDay { // tslint:disable-next-line @Input('xotbDay') readonly date: XotbInternalDate; @HostBinding('class.xotb-disabled-text') @HostBi...
// WithLevel sets the log level func WithLevel(level Level) Option { return func(o *options) { o.level = level } }
/** * A keyset update command is used to alter details of a keyset. * * <ul> * <li>{@link KeysetUpdateRequest#id} - an nsset handle</li> * <li>{@link KeysetUpdateRequest#add} - a list of items that will be added to this keyset, see {@link KeysetAddData}d</li> * <li>{@link KeysetUpdateRequest#rem} - a list of item...
Co-expression of 1α-hydroxylase and vitamin D receptor in human articular chondrocytes Background The aim was to investigate whether resident chondrocytes in human articular cartilage and in subculture express vitamin D receptor (VDR) and the enzyme that hydroxylates the prohormone 25(OH)D3 to the active hormone 1α,25...
Fluid overload in patients with septic shock and lactate clearance as a therapeutic goal: a retrospective cohort study Objective To assess whether fluid overload in fluid therapy is a prognostic factor for patients with septic shock when adjusted for lactate clearance goals. Methods This was a retrospective cohort stu...
<reponame>iamawebgeek/react-bubble-loading import React from 'react' import { BubbleLoading } from 'react-bubble-loading' const App = () => { return <BubbleLoading areaSize={500} /> } export default App
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:44:26 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/PodcastsUI.framework/PodcastsUI * classdump-dyld is licensed under GPLv3, Copyright ©...
def min_max(analysis): list_max = [] result = [] for key in analysis.keys(): current = CompGame.Attempt(key, 0) for value in analysis[key].values(): if value > current.amount: current.amount = value list_max.append(current) ...
/** * Contains all informations about a declared custom function. */ public class FunctionDeclaration { private final ImportStack importStack; private final Context context; /** * The libsass function signature. * * <p>e.g. hello($name: "world")</p> */ protected final String signature; /** ...