content
stringlengths
10
4.9M
a = '''Hello Am rachit this is a little program and i hope its help for kids to do it.''' print(a)
def J(self, name, q, x=[0, 0, 0]): if self._J.get(name, None) is None: print('Generating Jacobian function for %s' % name) self._J[name] = self._calc_J( name, x=x) parameters = tuple(q) + tuple(x) return np.array(self._J[name](*parameters))
//used in an "emergency" where no keyboard config could be loaded from the inputmanager config file //allows the user to select to reconfigure in menus if this happens without having to delete es_input.cfg manually void InputManager::loadDefaultKBConfig() { InputConfig* cfg = getInputConfigByDevice(DEVICE_KEYBOARD); ...
<reponame>alocquet/wasmer-js // The Wasm Terminal import { Terminal, ITerminalOptions, IBufferLine } from "xterm"; // tslint:disable-next-line import * as fit from "xterm/lib/addons/fit/fit"; // tslint:disable-next-line Terminal.applyAddon(fit); import { WebLinksAddon } from "xterm-addon-web-links"; import WasmTerm...
Chronic cough: a respiratory viewpoint Purpose of reviewThis article reviews the common causes and investigation of chronic cough and explores unexplained cough and its relationship to cough hypersensitivity. Recent findingsCough plays a critical role in airway protection and clearance of secretions. Chronic cough, ho...
package com.appacitive.khelkund.model.events; /** * Created by sathley on 4/1/2015. */ public class LogoSelectedEvent { public int Position; }
Facial recognition can be used for things like capturing criminals, tagging photos on social media platforms, and figuring out if hospital patients are in pain. One professor thought that he could take this software development a step further, which is why he created facial recognition software to read CEOs’ minds. An...
/** * Basic logging class that allows you to log messages to the console. * * @author Kyle Williamson * */ public class Logger { private static final String console = "CONSOLE-LOG:"; private static final String info = "INFO:"; private static final String err = "ERROR:"; private static final String deb...
def create_str_elem_grouped_bar_plot(pos_str_stats_dic, neg_str_stats_dic, out_plot, disable_title=False, theme=1): assert pos_str_stats_dic, "given dictionary pos_str_stats_dic empty" assert neg_str_stats_dic, "given dictionary neg_str_s...
from abc import ABC, abstractmethod from typing import Any from blurr.core import logging from blurr.core.base import BaseSchema, BaseItem from blurr.core.evaluation import Expression, EvaluationContext from blurr.core.schema_loader import SchemaLoader class FieldSchema(BaseSchema, ABC): """ An individual fi...
/* _______ _______ __ __ | _|| || | | | Fast CSV Parser for Modern C++ | | | _____|| |_| | http://github.com/p-ranav/csv | | | |_____ | | | | |_____ || | | |_ _____| | | | |_______||_______| |___| Licensed under the MIT License <http://opensource.org/license...
// convert to a map for output // do not include password or client private key func (ref *RemoteClusterReference) ToMap() map[string]interface{} { ref.mutex.RLock() defer ref.mutex.RUnlock() uri := base.UrlDelimiter + base.RemoteClustersPath + base.UrlDelimiter + ref.Name_ validateUri := uri + base.JustValidatePos...
Shoot Growth, Gamma-Terpinene and Essential Oil Content of Satureja hortensis L. in Response to Foliar Application of FeSO4 and Citric Acid Background: Summer savory (Satureja hortensis L.) is one of the most important medicinal and spice plants cultivated in many parts of the world. Objective: A greenhouse experiment...
import psycopg2 from typing import Union from ..data import UserDataAdapter from ...entities.user import User class PostgresUserAdapter(UserDataAdapter): """Wakeboard SQLite data adapter class Attributes: connection: A SQLite connection instance. """ columns = ( ...
<reponame>Custards1/zin_lib #[macro_use] pub mod debug; #[macro_use] pub mod zstring; pub mod types; #[macro_use] pub mod error; pub mod api; pub mod object; pub mod stringify; pub const VERSION:&'static str = env!("CARGO_PKG_VERSION");
/** * @file * * @brief Adapter implementation for the Poco json parser library. * * Include this file in your program to enable support for Poco json. * * This file defines the following classes (not in this order): * - PocoJsonAdapter * - PocoJsonArray * - PocoJsonValueIterator * - PocoJsonFrozenValue...
<filename>src/extension/background/index.ts import { BackgroundMessageController, IBackgroundMessage, BackgroundMessageType, ConnectionPort } from './../types'; import { browser, Runtime, Tabs } from 'webextension-polyfill-ts'; import { WalletManager } from './wallet-manager'; import { Response, IRespon...
/*################################################################################ ## ## Copyright (C) 2011-2018 <NAME> ## ## This file is part of the MCMC C++ library. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the ...
def run(self, progress_callback): try: progress_callback(0) local_groups = self.client.validate_groups() progress_callback(1) group_members = self.client.get_group_members() progress_callback(2) self.client.assert_group_not_empty(group_memb...
<reponame>trakt-tools/universal-trakt-sync<filename>src/modules/history/components/HistoryListItemCard.tsx import { Suggestion } from '@apis/CorrectionApi'; import { I18N } from '@common/I18N'; import { Shared } from '@common/Shared'; import { Utils } from '@common/Utils'; import { Center } from '@components/Center'; i...
/** * Base {@link ModelProvider} implementation. Decorates a Provider that gets injected by GIN. * * Provides a model to something, usually preparing it along the way. * * TODO rename BaseModelProvider * * @param <M> model type being provided */ public abstract class TabModelProvider<M extends HasEntity> implem...
MILTON — the Santa Rosa County School District has entered an agreement with the Pregnancy Resource Center in Milton to provide sex education to high school students. “Our agreement with the Pregnancy Resource Center to provide relationship and sexually transmitted disease education to high school students will assist...
import { Command } from "../utils/commandsutil"; import { Message } from "discord.js"; export const command = new Command ({ aliases: ['clean'], command: async (message: Message): Promise<Message> => { let count: number = 0; let Messages = await message.channel.messages.fetch({ limit: 100 }); ...
<gh_stars>0 import { StringSchema } from "./StringSchema.js"; import { OPTIONAL } from "./OptionalSchema.js"; /** * Define a valid database key. * * - Minimum key length is 1 character. * - Maximum key length is 64 characters. */ export class KeySchema extends StringSchema { override readonly multiline = false; ...
<filename>src/composite_fns.rs use crate::checking_fns::*; use crate::replacing_fns::*; pub type Check = dyn Fn(Vec<i32>, i8, i32, i8, i32) -> bool + Send; pub type Replace = dyn Fn(Vec<i32>, i8, i32, i8, i32) -> (Vec<i8>, Vec<i32>) + Send; /// # Arguments in Vectors /// Check Args: interval, lower_limit, upper_limit,...
A CMOS 2.45-GHz radio frequency identification tag IC with read/write memory A 2.45-GHz RFID tag chip was designed on standard 0.25- /spl mu/m CMOS process. Using only MOS devices, the low-Vt rectifier circuit produces 100 /spl mu/W of power with 2 dBm input. The tag IC with bidirectional communication and anti-collis...
package xyz.gupton.nickolas.beepsky.fun.commands; import discord4j.core.object.entity.Guild; import discord4j.core.object.entity.MessageChannel; import discord4j.core.object.entity.User; import java.awt.Color; import java.util.Random; import xyz.gupton.nickolas.beepsky.BotUtils; import xyz.gupton.nickolas.beepsky.Comm...
// TestImport adds a test dependency to the package graph, // indicating that a package imports another in its tests. func (p Packages) TestImport(exp, imp string) { if isBuiltin(imp) { return } p.TestImports.Add(exp, imp) p.CoTestImports.Add(imp, exp) p.All.Add(imp) p.All.Add(exp) }
package jsonpath import ( "fmt" "regexp" "github.com/oliveagle/jsonpath" "github.com/gojek/merlin/pkg/transformer/spec" "github.com/gojek/merlin/pkg/transformer/types" ) const ( Prefix = "$." RawRequestPrefix = "$.raw_request" ModelResponsePrefix = "$.model_response" ) var ( sourceJsonPattern = regexp...
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: tower.py import tensorflow as tf import six from abc import abstractmethod, ABCMeta from ..utils.argtools import call_only_once, memoized from ..utils.develop import deprecated from ..graph_builder.predict import SimplePredictBuilder from ..input_source import Pla...
#include<iostream> using namespace std; void insertion_sort(int a[],int n){ for(int i=1;i<=n-1;i++){ int current=a[i]; int prev=i-1; while(prev>=0 and a[prev]>current){ a[prev + 1] = a[prev]; prev = prev - 1; } a[prev+1]=current; } } int main() { int arr[10]; int n; cout<<"enter the value of n :"<<...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------...
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements source, a buffered rune reader // specialized for scanning Go code: Reading // ASCII characters, maintaining current (line, col) // posi...
<filename>libs/ab/src/lib/interfaces.ts<gh_stars>0 export interface ABOptions { versions: string[]; domain?: string; versionForCrawlers?: string; scope?: string; expiration?: number; weights?: { [x: string]: number; }; } export interface GuardData { ab: GuardDataTest | GuardData...
/** * removes a user defined block to the message (if the block does not exists, nothing is done) * * @param blockName the block name to remove * @throws IllegalArgumentException if parameter blockName is null * @throws IllegalArgumentException if parameter blockName is invalid * @since 5....
// Copyright 2014 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package seq import ( "github.com/dmiller/go-seq/iseq" "testing" ) func TestConsCtors(t *testing.T) { c := NewCons("abc", nil) if c.Meta() != nil { t.Error("New...
<gh_stars>0 #include "run_async.h" #include <nan.h> namespace { NAN_MODULE_INIT(init) { using Nan::GetFunction; using Nan::New; using Nan::Set; using v8::String; using v8::FunctionTemplate; Set(target, New<String>("run").ToLocalChecked(), GetFunction(New<FunctionTemplate>(ruff...
def dummiefication(self, dataframe): dummify = dataframe.loc[:, dataframe.dtypes == object] for col in dummify.columns: logger.log("Dumify column {}".format(col), logging.DEBUG) if len(dataframe[col].unique()) < 10: df = pd.get_dummies(dataframe[col], drop_first=T...
<gh_stars>1-10 #include "Importer.h" bool FileParser::read_OffPly2(const char* filename, Mesh* mesh, int err) { //SimpleMeshBuilder b(mesh); cout << "read off: " << filename << endl; RepeatingMeshBuilder b(mesh); Ply2Reader r(&b); return r.read(filename); } bool FileParser::read_Obj(const char* ...
Adding Constraints and Flexible Preferences in Travel Reservation Systems Preferences play an important role in many applications. This paper focuses on the use of preferences in travel agency systems such as E-travel system. We show that adding flexible constraints and preferences allows to reach solutions that bette...
Stress pathways to spontaneous preterm birth: the role of stressors, psychological distress, and stress hormones. The authors investigated a large number of stressors and measures of psychological distress in a multicenter, prospective cohort study of spontaneous preterm birth among 5,337 Montreal (Canada)-area women ...
//To store value of device state, subclass the following type class boolCharacteristics: public characteristics { public: bool _value; std::function<void(bool, bool)> valueChangeFunctionCall = NULL; boolCharacteristics(int _type, int _permission): characteristics(_type, _permission) {} boolCharacteristi...
<filename>loadOBJ.h #pragma once #include "material.h" #include "hittable.h" #define TINYOBJLOADER_IMPLEMENTATION // define this in only *one* .cc #include "libs/tiny_obj_loader.h" struct shapeData { int size; tinyobj::index_t* indices; }; struct objData { shapeData* shapes; float* vertices; float* normals; i...
def load_basic_song_data(self, _id, downloader=None) -> Dict: if not downloader: downloader= Downloader(setup.get_spotify_username()) return downloader.fetch_track_by_id(_id)
<reponame>unipept/unipept-web-components import NcbiResponse from "./NcbiResponse"; import { NcbiId } from "./../../../ontology/taxonomic/ncbi/NcbiTaxon"; import NetworkConfiguration from "./../../NetworkConfiguration"; import NetworkUtils from "./../../NetworkUtils"; export default class NcbiResponseCommunicator { ...
/** * This method guarantees that the window is closed by overriding the KEEP_OPEN action-on-close * and will fire a WindowClosing event to be captured by the GWindow$GWindowAdapter object. <br> * There are 2 possible actions depending on the currently specified action-on-close. <br> * GWindow.KEEP_OPEN - close...
// If the lease cannot be obtained because the descriptor is in the process of // being dropped or offline, the error will be of type inactiveTableError. // The boolean returned is true if this call was actually responsible for the // lease acquisition. func acquireNodeLease(ctx context.Context, m *LeaseManager, id sql...
// add appends the record to the buffer for the probe, keeping it within bufferSize. func (p *Probe) addRecord(r Record) { p.recordsLock.Lock() p.records = append(p.records, r) if len(p.records) >= bufferSize { over := len(p.records) - bufferSize glog.V(2).Infof("[%s] buffer is over %d, reslicing it\n", p.Name, ...
<gh_stars>0 import c from 'chalk' import _ from 'lodash' import sqlFormatter from 'sql-formatter' global.pauseSQLLogging = false export default function logger(a, time) { if (global.pauseSQLLogging) return if (a.startsWith('Executed') || a.startsWith('Executing')) { // Query. console.log(c.gray(sqlFormatt...
def ray_tracing_availability(self) -> ScanResult: Datagram = namedtuple( 'Datagram', 'id critical error_message alternatives' ) rt_datagrams = [ Datagram( 'I', False, "Warning: installation parameters are missing...
def from_dict(cls, stream: Dict[str, Any]): return cls( tap_stream_id=stream["tap_stream_id"], stream=stream.get("stream"), replication_key=stream.get("replication_key"), key_properties=stream.get("key_properties"), database=stream.get("database_name")...
Recognition of Multi-Pose Head Gestures in Human Conversations We address the problem of recognizing multi-pose head nodding and shaking gestures in human conversations. Existing methods mainly recognize head gestures in restricted environments like human robot interaction, where face poses are near frontal and head m...
// insertUpdatePvcStatus will check if Service status changed, if yes then and update it func (r *ReconcileDatabase) insertUpdatePvcStatus(pvc *corev1.PersistentVolumeClaim, db *v1alpha1.Database) error { if !reflect.DeepEqual(pvc.Status, db.Status.PVCStatus) { db.Status.PVCStatus = pvc.Status if err := r.client.S...
BANBURY, a little English town best known for a walk-on part in a nursery rhyme and as the eponymous origin of a fruitcake, is an unlikely fulcrum for the balance of power in the world of telecoms. But the “Cyber Security Evaluation Centre” set up there by Huawei, a Chinese telecoms giant, in 2010 marks a new way of pe...
# -*- coding: utf-8 -*- """ Created on Mon Sep 28 09:55:19 2015 @author: Ben """ import config as cfg import pandas as pd import util import numpy as np import inspect from util import DfOper from shared_classes import StockItem import logging import pdb from energyPATHWAYS.generated import schema from unit_converter ...
<gh_stars>10-100 """ Distrax distributions. """ from typing import Tuple import chex import jax import jax.numpy as jnp from distrax import Distribution, Normal from distrax._src.distributions.distribution import PRNGKey Numeric = chex.Numeric Array = chex.Array PRNGKey = chex.PRNGKey class SquashedNormal(Distrib...
Published 04.05.2016 19:15 GMT+3 | Author Pavel Lysenkov The Calder Trophy candidate arrived in Russia for the World Championship and immediately gave us a very funny interview. The season with the Chicago Blackhawks was hard. Are you not tired? To be honest, we were given plenty of rest. I don't know how much the o...
/** * Business class of the time slot * * @author Laurent Payen * */ @JsonIgnoreProperties( ignoreUnknown = true ) public final class TimeSlot implements Serializable { /** * Serial version UID */ private static final long serialVersionUID = 3543470088706843432L; /** * Id of the time ...
def update_iscore_targets() -> None: storage.set('last_iscore_update', int(time())) try: r = requests.get(get_url() + 'servicestatus', headers={'Content-Type': 'application/json'}) r.raise_for_status() r = r.json() except MissingSchema: send_msg('IScorE update failed. Check t...
def load(fn: (Path, str), load_header:bool): metadata = {'0008|103E': ['faimed3d TensorDicom3D, pixeldata might have been modified'], 'filename' : [str(fn)]} if isinstance(fn, str): fn = Path(fn) if fn.is_dir(): sitk.ProcessObject_SetGlobalDefaultThreader('PLATFOR...
/** * Copyright 2015 Acquia, 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 agreed t...
<gh_stars>0 package org.jwybw.battlecity.image; import java.awt.*; import java.awt.image.BufferedImage; import java.util.Locale; public class ImageStringBuilder { private final ImageEngine imageEngine; public String string; public Color backcolor = new Color(0, 0, 0, 0); public Color fontcolor = Color.BLACK; //字...
// ReadCache read cached conf from disk for the given key and returns data in byte array func ReadCache(key string) ([]byte, error) { path := getKeyPath(key) data, err := ioutil.ReadFile(path) if err != nil { return nil, fmt.Errorf("failed to read container data in the path(%q): %v", path, err) } return data, er...
<filename>geometer/utils/__init__.py from .math import ( null_space, hat_matrix, is_multiple, orth, adjugate, det, inv, matmul, matvec, roots, ) from .indexing import posify_index, normalize_index, sanitize_index def distinct(iterable): """A simple generator that returns on...
ADVERTISEMENT If you've watched any reality competition TV programs like The Bachelor, Survivor, or Top Chef — or a certain show starring an over-inflated real estate developer — you're familiar with the climax of nearly every episode. The contestants gather, facing the judges (or whoever is rendering a decision on wh...
/** * * @author Mario Josue Solis Solorzano */ public class Lexema { public String regex = null; public String lexema = null; public Lexema(String regex, String lexema) { this.lexema = lexema; this.regex = regex; } }
/// Determine if the underlying child process has exited /// and return the exit error if so. pub fn status(&self) -> Result<(), io::Error> { let status = { self.proc.lock().unwrap().try_wait()? }; match status { Some(code) => Err(io::Error::from(Error::TunnelProcessExited( c...
/* PR/11658 The error message was quite mysterious for gcc up to 3.4.x */ struct a { int x; }; int bug_if(struct a a) { if (a) return 1; else return 0; } /* { dg-error "struct type" } */ int bug_while(struct a a) { while (a); } /* { dg-error "struct type" } */ int bug_do_while(struct a a) { do ; while (a); } /*...
Herpes zoster in an immunocompetent infant with a history of varicella in early infancy and after a minor injury - case report and literature review Introduction. Chickenpox is a common pediatric disease, while herpes zoster (HZ) is rare among children, especially among infants. HZ in infancy may appear after intrau...
<reponame>VitalPointAI/subgraph-ref-finance import { near, log, BigInt, json, JSONValueKind } from "@graphprotocol/graph-ts"; import { Account, Swap, AddLiquidity } from "../generated/schema"; export function handleReceipt(receipt: near.ReceiptWithOutcome): void { const actions = receipt.receipt.actions; for (l...
import { GetStaticProps } from 'next' import getPageProps from './getPageProps' import { AppPageProps } from '../../typings/app' import { getBaseProps } from './getBaseProps' export const getStaticPropsError: GetStaticProps<AppPageProps> = async ( context ) => { const { locale, defaultLocale, locales } = context ...
// add ip to ban table if not exist func AddToDb(table string, name string, var1 int) (error) { var exists string var err error err = db.QueryRow("select ip from ban where ip=$1", name).Scan(&exists) if err != nil && err != sql.ErrNoRows { logging("", ("- AddToDb - Error while reading from db " + err.Error(...
// Handles inventory and slots public class HarvesterContainer extends MachineContainer { private int energy; public HarvesterContainer(InventoryPlayer player, HarvesterTileEntity tileEntity) { super(tileEntity, player, tileEntity.itemHandler, 1, 1); } @Override public void addMachineSlots(IItemHandler handler...
def _attr_op(self, key): assert isinstance(key, str) return RLambda( inputs=self._inputs, body=AttributeOperation(self._body, key) )
<reponame>jsilhan/django-pynotify from unittest.mock import MagicMock from django.contrib.auth.models import User from django.test import TestCase from pynotify.models import AdminNotificationTemplate from pynotify.notify import notify class MockDispatcher: dispatch = MagicMock() class NotifyTestCase(TestCase...
<reponame>moneydance/typed<filename>packages/math/src/pow/index.ts import { curry2 } from '@typed/functions' /** * Applies a base to the exponent power. * @name pow(exponent: number, base: number): number */ export const pow: Pow = curry2(__pow) export type Pow = { (exponent: number, base: number): number (exp...
use std::io; use std::str::FromStr; fn main() { let (n, l) = { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); let mut it = buf.split_whitespace(); (usize::from_str(it.next().unwrap()).unwrap(), i32::from_str(it.next().unwrap()).unwrap()) }; l...
def is_alive(self): if not self.started: return False if self.popen is None: if self.time_of_death is None: self.time_of_death = time.time() return False self.exit_code = self.popen.poll() if self.exit_code is not None: if s...
/** * fm10k_free_tx_resources - Free Tx Resources per Queue * @tx_ring: Tx descriptor ring for a specific queue * * Free all transmit software resources **/ void fm10k_free_tx_resources(struct fm10k_ring *tx_ring) { fm10k_clean_tx_ring(tx_ring); vfree(tx_ring->tx_buffer); tx_ring->tx_buffer = NULL; if (!tx_rin...
<reponame>AlekNS/tinyrstats<gh_stars>0 package endpoints import ( "github.com/alekns/tinyrstats/internal/config" "github.com/alekns/tinyrstats/internal/monitor/app" "github.com/go-kit/kit/endpoint" "github.com/go-kit/kit/log" kittracing "github.com/go-kit/kit/tracing/opentracing" opentracing "github.com/opentrac...
//currentUserID returns authenticated user ID func currentUserID(c *gin.Context) uint64 { if u, exists := c.Get("user"); exists { if user, ok := u.(models.User); ok { return user.ID } } return 0 }
Polymyxin antibiotics for gram-negative infections. PURPOSE The role of polymyxin antibiotics in the treatment of multidrug-resistant gram-negative infections is reviewed. SUMMARY Antimicrobial resistance is an increasing problem across hospitals worldwide, especially in intensive care settings, where nosocomial inf...
The Bill, Hillary, and Chelsea Clinton Foundation improperly exploited its tax status to expand in size and stature, Daily Caller News Foundation investigations indicate. TheDCNF’s Mark Tapscott and Richard Pollock reported in recent weeks that the Clinton Foundation deceived the IRS with respect to its tax status, an...
def nested_list(n): lis = [] for i in range(n): if i==0: lis.append(i) else: lis.append(nested_item(i,i)) return lis
def calculate_secondaryecho_levels(**kwargs): if kwargs['bats_xy'].shape[0] >= 3: try: secondary_echopaths = calculate_echopaths('secondary_echoes', **kwargs) secondary_echoes = calculate_echoreceived_levels(secondary_echopaths, ...
// start another process painlessly via ::CreateProcess. Use the // ShellExecuteProcessXXX variants instead of these methods where possible, // since ::ShellExecuteEx has better behavior on Windows Vista. // When using this method, avoid using process_name - see // http://blogs.msdn.com/oldnewthing/archive/2006/05/15/5...
<filename>mdns/libphidgets22/src/plat/labview/phidget_labview.gen.c #ifdef COMPILE_PHIDGETS_LABVIEW void CCONV Phidget_OnAttach_LaviewHandler(PhidgetHandle ch,void *ctx) { LVUserEventRef ev = *(LVUserEventRef *)ctx; MgErr ret = 0; lvPhidgetAttachArgs *lvdata; lvdata = (lvPhidgetAttachArgs *)DSNewPtr(sizeof(lvPhidg...
Nitric oxide synthases: domain structure and alignment in enzyme function and control. Nitric Oxide Synthases are a family of enzymes that produce NO from arginine, oxygen and reducing power in the form of NADPH; they function as signal generators and as producers of cytotoxic levels of NO (e.g., in immune defense). E...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { MDAppModule } from '../../core/src/core/md.module'; import { SharedModule } from '../../core/src/shared/shared.module'; import { EntityCatalogModule } from '../../store/src/entity-catalog.module'; import { generateCFEnti...
/** * This file is part of Magma, licensed under the MIT License (MIT). * * Copyright (c) 2013-2014 ObsidianBox <http://obsidianbox.org/> * * 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 Softw...
In the last ten days, it seems that more political heads have rolled than in any time since the French Revolution, and Nigel Farage’s has now joined them, albeit voluntarily. Even many of those reluctant to praise him admit that he, more than any other individual, is responsible for getting the United Kingdom out of th...
/** * Tests that ImmutableAttributeMap map is serializable * * @throws Exception * something went wrong */ @Test public void serialization() throws Exception { assertIsSerializable(new Attributes.ImmutableAttributeMap(Attributes.singleton( SizeAttrib...
Original Game Play – Version 1 Racing Tank Racing Tank appearing seems to attract almost racing smartphone game fans, especially on iOS platform. Unlike racing military tanks, tanks in this game are designed impressively colorful with 5 various styles: LZ25, AT11, AP01, FT02, GB26. Each type holds a group of 3 differ...
from django.core.management.base import BaseCommand from django.conf import settings from datetime import datetime, date import json import csv from activities_class.constraints import TYPE_CHOICES as CLASS_TYPE_CHOICES from activities_class.activities_global.models import GlobalClassActivity from activities_score.co...
def retreive_meetup_events(self): retriever = self.meetup_events_retriever json_events = retriever.retrieve_events_json() converter = self.event_list_converter return converter.convert_meetup_events(json_events)
//bitset + matrix /*#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 100 + 3; int n, dp[N][N]; bitset <20> a[N]; LL k; int main(){ scanf("%d%lld", &n, &k); for (int i = 1; i <= n; i++){ dp[i][1] = 1; int t; scanf("%d", &t); a[i] = t; } for (int c = 2; c <= k...
// Ues a operator in the stack, which means pop it and do calculate. // Throw exception if there is any mistack when using a operator. void Calculator::useOp() { double a, b; char c = m_ops.top(); switch (c) { case '+': if (m_nums.empty()) { throw -1; } else { a = m_nums.top(); } m_nums.pop(...
<reponame>jis93/nyaa package client import ( "testing" "github.com/ory/fosite" "github.com/stretchr/testify/assert" ) func TestClient(t *testing.T) { c := &Client{ ID: "foo", RedirectURIs: []string{"foo"}, Scope: "foo bar", } assert.EqualValues(t, c.RedirectURIs, c.GetRedirectURIs()) a...
/// Based on the selected issue, either checks out an existing branch matching the name or creates /// a new one, prompting for which branch to base it on. pub(crate) fn switch_branches(state: State) -> Result<State> { let data = match state { State::Initial(..) => return Err(eyre!("You must SelectIssue fir...
<reponame>jdguzmans/electron-auth0-login<gh_stars>0 export interface PKCEPair { verifier: string; challenge: string; } export declare function getPKCEChallengePair(): PKCEPair;