content
stringlengths
10
4.9M
/* * This file Copyright (C) 2009-2014 Mnemosyne LLC * * It may be used under the GNU Public License v2 or v3 licenses, * or any future license endorsed by Mnemosyne LLC. * * $Id: hig.cc 14225 2014-01-19 01:09:44Z jordan $ */ #include <iostream> #include <QCheckBox> #include <QGridLayout> #include <QHBoxLayout...
def js_lint_format(file_list=None): logger.info("Begin js_lint_format") eslint_path = get_node_modules_bin('eslint') get_prettier_path() js_file_list = get_js_files(file_list) js_file_list = [x for x in js_file_list if '/javascript/example-project/' not in x] results = run_formatter([eslint_pa...
// RegisterMessageHandler registers the message handler func (msgr *Messenger) RegisterMessageHandler(msgHandler p2pl.MessageHandler) { channelIDs := msgHandler.GetChannelIDs() for _, channelID := range channelIDs { if msgr.msgHandlerMap[channelID] != nil { logger.Errorf("Message handler is already added for cha...
import path from 'path' import { compile } from '../src/compiler' import { readTsConfig } from '../src/utils/readTsconfig' describe('react class component', () => { const testFile = path.resolve(__dirname, 'test-react.jsx') const dir = path.resolve(__dirname) const options = readTsConfig(dir) const result = c...
/** * Handles the AutoExpand Mode. This means the first erroneous group is automatically expanded, until the user leaves * the auto expand mode or nor more such group exists. * * @param configData * current configuration * @param uiStatus * current UI status * @return group to expand...
<filename>backend/src/core/queries/SetPowerLimitPercentageQuery.hpp<gh_stars>1-10 #pragma once #include "Query.hpp" namespace core { class SetPowerLimitPercentageQuery : public Query { public: class Result : public Query::Result { public: std::string serialize( void ) const final { auto object = serializeDevic...
<reponame>foxbit19/server<filename>ui/src/common/Container.tsx import Paper from '@material-ui/core/Paper'; import {withStyles, WithStyles} from '@material-ui/core/styles'; import * as React from 'react'; const styles = () => ({ paper: { padding: 16, }, }); interface IProps extends WithStyles<'paper'>...
<reponame>ModelingValueGroup/JiraRestClient package de.micromata.jira.rest.client; import java.util.*; import java.util.concurrent.*; import de.micromata.jira.rest.core.domain.*; import de.micromata.jira.rest.core.domain.filter.*; import de.micromata.jira.rest.core.jql.*; /** * User: <NAME> Email: <EMAIL> Date: 31...
Comparison of the selective aromatase inhibitor formestane with tamoxifen as first-line hormonal therapy in postmenopausal women with advanced breast cancer. A total of 409 postmenopausal patients with advanced metastatic breast cancer were randomized to receive either formestane (Lentaron) 250 mg every 2 weeks by int...
// newRegistry creates a new instance of registry. func newRegistry() *registry { reg := new(registry) reg.keyManagers = NewKeyManagerMap() return reg }
/** * The style SVG element allows style sheets to be embedded directly within SVG content. * * @author Megatron King * @since 2017/1/4 10:26 */ public class Style extends SvgNode { public String cssStyle; @Override public void toPath() { // nothing to do } @Override ...
def par_fit(dict_, data): if "SIMULATION" not in dict_ or "seed" not in dict_["SIMULATION"]: seed_ = randint(0, 9999) np.random.seed(seed_) else: np.random.seed(dict_["SIMULATION"]["seed"]) _, X1, X0, Z1, Z0, Y1, Y0 = process_data(data, dict_) num_treated = dict_["AUX"]["num_cova...
#ifndef KATANA_LIBGALOIS_KATANA_ANALYTICS_MATRIXCOMPLETION_MATRIXCOMPLETION_H_ #define KATANA_LIBGALOIS_KATANA_ANALYTICS_MATRIXCOMPLETION_MATRIXCOMPLETION_H_ #include <fstream> #include <iostream> #include "katana/Properties.h" #include "katana/PropertyGraph.h" #include "katana/analytics/Plan.h" namespace katana::an...
def check_certificate_status(self, context, order_id, project_id, request_id): message = "Processing check certificate status on order: " \ "order ID is '%(order)s' and request ID is '%(request)s'" LOG.info(message, {'order': order_id, 'request': reques...
/** * Module to perform a Cohort Study. * * The module outputs patient level data containing information about comorbidities, measurements, * prescriptions etc before or during cohort time. The search windows around cohort start can be defined on item level. * If multipleValueMeasurements is set for each value o...
Signup to receive a daily roundup of the top LGBT+ news stories from around the world Mayor of London Sadiq Khan has announced plans to pour thousands into research on keeping London’s LGBT venues thriving and open. £10,000 will be invested into a research project which will explore why venues are closing and what ca...
<filename>packages/components/subject/src/Subject.tsx<gh_stars>0 import * as React from 'react'; import Dropdown from '@synerise/ds-dropdown'; import Icon, { ShowM } from '@synerise/ds-icon'; import SubjectTrigger from './SubjectTrigger/SubjectTrigger'; import { SubjectProps } from './Subject.types'; import * as S from...
// NewX509TokenManager returns a new X.509 backed manipulate.SelfTokenManager. func NewX509TokenManager( sourceNamespace string, sourceName string, opts ...Option, ) manipulate.SelfTokenManager { cfg := newConfig() for _, o := range opts { o(&cfg) } t := &x509TokenManager{ PeriodicTokenManager: &PeriodicToke...
class ExecutionTable: """ Represents execution result as a table. This is a convenience wrapper for executions constructed using the following convention: - all attributes are in the first dimension - all metrics are in the second dimension - if the execution is attribute- or metric-less, th...
def _calculate_rotated_fiber_params(phi, alpha, t_rel, array_matrices, tau): number_of_tilts = array_matrices.shape[0] orientation_vec = _create_orientation_vector(phi, alpha) tiltangles = np.linspace(0, 2 * np.pi, number_of_tilts + 1)[:-1] tilted_params = np.zeros((number_of_tilts + 1, 2)) for tilt...
Dimensional Spacetime with q-deformed Extra Space An attempt to get a non-trivial-mass structure of particles in a Randall-Sundrum type of 5-dimensional spacetime with q-deformed extra dimension is discussed. In this spacetime, the fifth dimensional space has no boundary, but there arises an elastic potential preventi...
export type Post = { slug: string title: string body: string images: string[] categories: string[] createdAt: Date }; export type Posts = Post[];
Rare courage against a sadly less rare occurrence. To the Editor: The Kurjak plagiarism case, and the current debate about its handling, offer research institutions around the world an opportunity for continued learning. Before exploring this – we comment on the current situation in Croatia. First and foremost it seem...
/** * At this point we undo the work that was done during * {@link #onCreateView(Context, ViewGroup)}, which basically means removing the root view * from the hierarchy. */ @SuppressWarnings("WeakerAccess") @UiThread protected void onDestroyView() { View root = getRootView(); ...
for tc in range(int(input())): pstn_1, pstn_2, a, b = map(int,input().split()) if((pstn_2 - pstn_1)%(a + b)): print(-1) else: print((pstn_2 - pstn_1)//(a + b)) # for tc in range(int(input())): # pstn_1, pstn_2, a, b = map(int,input().split()) # flag = False # time = 0 # for...
<filename>app/renderer/components/navigation.tsx import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { navigationLinks } from '../utils/navigationLinks'; import styled from 'styled-components'; const links = navigationLinks.filter(({ header }) => header); const Nav = styled.nav` ...
- Law Enforcement Lectures and Classes DOWNLOAD A PRINTABLE BROCHURE HERE Noreen has lectured and given classes at a wide variety of law enforcement agencies and criminal justice institutions. A partial list: Florida Division of International Association for Identification Orlando, Florida The 2nd International Semina...
/** * Tool class providing CLI methods. * * @author ActiveViam */ public class Tools { public static int main(final String[] args) { if ("extract".equals(args[0])) { extractSnappyFileOrDirectory(args[1]); return 0; } else { System.err.println("Unsupported command. Got " + Arrays.toStrin...
"""Host API required Work Files tool""" import os import shutil from . import lib from avalon import api def file_extensions(): return api.HOST_WORKFILE_EXTENSIONS["harmony"] def has_unsaved_changes(): if lib.server: return lib.server.send({"function": "scene.isDirty"})["result"] return False ...
// Thread zum errechnen der Darstellung mithilfe des Mandelbrot-Moduls void calculationThread() { while(!end) { brot->computeImage(colorBuffer, res, calcArea, iterationen, samples); SDL_UpdateTexture(tex, NULL, (void*)colorBuffer, res.x * sizeof(mandelbrot::color)); std::unique_lock<std:...
#include <bits/stdc++.h> using namespace std; __attribute__((constructor)) void _() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); std::cerr.tie(nullptr); } #define read(type) readNumber<type>() #define prec(n,a) fixed << setprecision(n) << a #define FORI(i, a, b, in) for ...
def _mongod_layer(self) -> Layer: layer_config = { "summary": "mongod layer", "description": "Pebble config layer for replicated mongod", "services": { "mongod": { "override": "replace", "summary": "mongod", ...
Evaluation of the intention to use the electronic medical record (EMR) by health professionals in healthcare facilities of Libreville and Owendo in Gabon Abstract Introduction Health systems in several countries have integrated information and communication technologies into their operations. Electronic medical record...
/** * Contains the path to a model to draw. This actor also hold the model bone coordinates given by the view. These coordinates may be useful in the model. IE : * Only the view knows where is the canon muzzle bone where the projectile needs to appear. */ public class ModelActor extends Actor { private static...
<reponame>zhao943018529/BlogClient import * as React from 'react'; import { Card, CardContent, CardHeader, CardActions, Avatar, makeStyles, createStyles, Theme, Chip, Button, Dialog, Slide, DialogTitle, DialogContent, DialogActions, TextField, } from '@material-ui/core'...
/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/** * Created by xschen on 29/7/2017. * * summary: * Related to question Excel Sheet Column Title * Given a column title as appear in an Excel sheet, return its corresponding column number. * * link: https://leetcode.com/problems/excel-sheet-column-number/description/ */ public class ExcelSheetColumnNumbers { ...
BOISE, ID --(Marketwired - February 09, 2017) - To recognize and celebrate Idaho's growing craft beer industry, Idaho Brewers United and Idaho Tourism have proclaimed April 2017 as the first official Idaho Craft Beer Month. Throughout the month of April, producers, brewers, restaurants, and retailers will come together...
import React from 'react' import {useStore} from 'effector-react' import styled from 'styled-components' import {getPercentsFromStats} from 'lib/get-percents-from-stats' import {$statsByType} from '../../models/stats' import {KanaType} from '../../types' const StatsByGlyphType = () => { const stats = useStore($st...
/** * Engine for the Tasi prediction tool. Takes a srna file and a genome as input * and detected phased 21nt sRNAs indicative of TAS loci. Uses a modified version * of the algorithm described by Chen et al. * @author Dan Mapleson */ public final class TasiAnalyser extends RunnableTool { private final static S...
/** * Data Transfer Object representation of <code>no.stelvio.common.security.SecurityContext</code>. * * This object must always be WS-I and Java 1.4 compliant */ public class SecurityContextDto implements Serializable { private static final long serialVersionUID = 3211042935264797058L; private String...
<reponame>mingruimingrui/Transformer2 import os import logging from six import string_types logger = logging.getLogger() __all__ = [ 'get_log_dir', 'get_data_dir', 'get_data_filepath', 'get_checkpoint_dir', 'get_output_dir', 'get_spm_model_prefix', 'get_output_processing_steps_file', '...
import { TimelineObject } from 'superfly-timeline' import { DateObj } from './util' import { ScheduleElement, LiveMode, BuildTimelineResult, ResolvedElement, ScheduleType, FolderSort } from './interface' import { getFirstExecution } from './resolver' export class RecurrenceParser { schedule: Array<ScheduleElement> c...
Surface-plasmon sensor for absorption-sensitivity enhancement. A method to enhance the absorption sensitivity of a sample by utilizing surface-field enhancement with surface-plasmon resonance is proposed. The experimental setup is based on the configuration for the attenuated total internal reflection (ATR) method but...
<reponame>iggy12345/emerson_seed_object_detection<filename>PyCharm/pmd_implementation/video_util/display_util/img_depth.py from data_structures.lists import LinkedList # Required even though it's never used, it registers the '3d' perspective for plt.axes from mpl_toolkits.mplot3d import Axes3D import pyximport; pyximpo...
<reponame>cyriux/monoids-with-PBT-java package pbt; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test; import org.junit.runner.RunWith; import com.pholser.junit.quickcheck.From; import com.pholser.junit.quickcheck.Property; import com.pholser.junit.quickche...
// NewHash returns the crypt(3) NT Hash hash of the password. func NewHash(password string) (string, error) { b, err := Key(encodePassword(password)) if err != nil { return "", err } scheme := scheme{HashPrefix: Prefix} hex.Encode(scheme.Sum[:], b) return crypthash.Marshal(scheme) }
// on the command without re-registering it. public abstract class Command { public ArrayList<String> registeredNames; private KittyRole roleLevel; private KittyRating contentRating; public Command(KittyRole roleLevel, KittyRating contentRating) { this.registeredNames = new ArrayList<String>(); this.roleLev...
Hearing impairment in Engelmann disease. There are several hyperostosis diseases of the skull that are accompanied by hearing impairment. In this article a case of Engelmann disease is presented. Currently > 130 cases of Engelmann disease are reported in literature. About 18% of these cases reported hearing impairment...
Variation of Parameters Method for Initial and Boundary Value Problems In this paper, we apply the Variation of Parameters Method (VPM) for solving initial and boundary value problems of diversified physical nature. The analytical results are calculated in terms of convergent series with easily computable components. ...
/** * Test to create a client from file. * * Make sure credentials are fetched and that at least basic values are included. * */ @Test public void testCreateClientFromFile() { try { fileToRead = clientUtil.getCredentialsFile(); client = WebpayAdminCamelClient.buildClientFromFile(fileToRead.getAbso...
/** * * This stream reader reads raw bytes creating a single message. * @author peter * */ public class CambriaRawStreamReader implements reader { /** * This is the constructor of CambriaRawStreamReader, it will basically the read from Input stream * @param is * @param defPart * @throws CambriaApiExcepti...
/** * Compares haystack and needle taking into the account that the needle may contain any number of * ANY_MATCHER occurrences, that will be matched to any substring in haystack, i.e. "Show _ANY_ * more..." will match anything like "Show 1 more...", "Show 2 more..." and so on. * * @param haystack the tex...
<reponame>xerothermic/vpp<gh_stars>0 /* * Copyright (c) 2022 Cisco and/or its affiliates. * 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Tests for the library """ import unittest from .model import Faces, Suits, Deck, Pile, Card, CardError, PileError from copy import deepcopy class TestCard(unittest.TestCase): def test_getters_setters(self): """Test that the card object has v...
<filename>Server/src/main/java/de/businesscode/bcdui/binding/SimpleBindingItem.java<gh_stars>0 /* Copyright 2010-2017 BusinessCode GmbH, Germany 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 ...
package org.heigit.ors.fastisochrones.partitioning; import com.graphhopper.config.Profile; import com.graphhopper.routing.util.CarFlagEncoder; import com.graphhopper.routing.util.EncodingManager; import com.graphhopper.storage.GraphHopperStorage; import org.heigit.ors.routing.RoutingProfile; import org.heigit.ors.rout...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/datapipeline/DataPipeline_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/datapipeline/model/Operator.h> #include <utility> namespace Aws { namesp...
import React, { useState, useEffect } from 'react' import { useRouter } from 'next/router' import Fade from 'react-reveal/Fade' // Icons import import { FiMenu } from 'react-icons/fi' import { GiSwordman, GiUpgrade, GiFlamingo } from 'react-icons/gi' import { AiFillInfoCircle } from 'react-icons/ai' import { IoIosApps...
// GetCodec returns an avro codec based on the provided schema id func (c *SchemaRegistryClient) GetCodec(ctx context.Context, id uint) (*goavro.Codec, error) { var codec *goavro.Codec codecIface, ok := c.cache.Load(id) if ok { codec = codecIface.(*goavro.Codec) } else { schema, err := c.GetSchema(ctx, id) if...
<filename>projects/ng2-smart-table/src/components/thead/rows/titles-row.component.ts<gh_stars>0 import { AfterViewInit, Component, Input, OnChanges, OnDestroy, ViewChild } from '@angular/core'; import { fromEvent, of, Subject } from 'rxjs'; import { Grid } from '../../../grid-libs/grid'; import { CdkDragDrop, moveItemI...
// // Zero column to_col of problem tp. // Displacement for constraints in to_conj are start_EQ and start_GEQ. // Number of constraints to zero are no_EQ and no_GEQ. // void zero_column(Problem *tp, int to_col, int start_EQ, int start_GEQ, int no_EQs, int no_GEQs) { assert(start_E...
/** * Servlet Filter that blocks specefied urls if cookies are not enabled */ public class CookieEnabledFilter implements Filter { /** * List of of url that are filtered */ private List<String> filteredUrls; public void destroy() { } public void doFilter(ServletRequest request, ServletResponse response, ...
x, y, a, b, c = map(int, input().split()) red = sorted(list(map(int, input().split())), reverse=True) green = sorted(list(map(int, input().split())), reverse=True) white = sorted(list(map(int, input().split())), reverse=True) red_index = x-1 green_index = y-1 white_index = 0 while white_index < c: if red[red_index] ...
<filename>packages/next/build/compiler.ts import webpack from 'webpack' export type CompilerResult = { errors: Error[] warnings: Error[] } export function runCompiler( config: webpack.Configuration[] ): Promise<CompilerResult> { return new Promise(async (resolve, reject) => { const compiler = webpack(conf...
import uuid from django.conf import settings from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy from django.utils.decorators import method_decorator from django.views.generic import TemplateView, RedirectView, CreateView from kubernetes import client from kubernetes.client i...
<filename>dht11.py<gh_stars>0 #------------------------------------------------------------------------------ import sys import Adafruit_DHT import csv import random import datetime #------------------------------------------------------------------------------ with open('data.csv', mode='w') as data_file: data_file =...
/* * Get the ASN.1 representation of this <code>DistinguishedName</code>. * @see org.webpki.asn1 */ public ASN1Sequence toASN1() { if (asn1Representation == null) { BaseASN1Object[] t = new BaseASN1Object[components.size()]; for (int i = 0; i < t.length; i++) { ...
Changing climates, moving people: framing migration, displacement and planned relocation Different policies are required for different types of human mobility related to climatic changes. Hence, it is necessary to distinguish between migration, displacement and planned relocation in climate policy and operations. The ...
import { TableColumn } from 'typeorm'; const textColumnMixin = (options: Partial<TableColumn> = {}): TableColumn => new TableColumn({ type: 'text', ...(options as TableColumn), }); export { textColumnMixin };
<filename>nematus/nmt_dual_client.py #!/usr/bin/env python # -*- coding: utf-8 -*- """ Build a neural machine translation model with soft attention """ import copy import os import sys import time import logging from copy import deepcopy import Pyro4 import numpy from theano.tensor.shared_randomstreams import RandomS...
. OBJECTIVE The aim of this work was to evaluate the stereovision and the stereoacuity of the preschool children and to compare various stereotests. MATERIAL AND METHODS The test group consisted of 118 children who were divided into 3 age groups: 2-3 year-old group (22.03%), 4-5 year-old group (43.22%) and 6-7 year-...
import { existsSync, readFileSync } from "fs"; import path from "path"; import { exec, ExecOptions } from "./exec"; import { assertNoSingleQuotes, mkPackageManagerCmds, mkPrBranchName, Outputs, } from "./util"; import { create, setMetadata } from "create-plasmic-app"; export type RunAction = "init" | "sync" | ...
#include<bits/stdc++.h> #include<string> using namespace std; int main() { int n,i,l; char a[1000]; scanf("%d",&n); while(n--) { cin>>a; l=strlen(a); if(l>10) printf("%c%d%c\n",a[0],l-2,a[l-1]); else puts(a); } }
/** * * @author Daniel Babativa */ @Stateless public class CelularPersistence { /** * PERSISTENCE CONTEXT */ @PersistenceContext(unitName = "telefonosPU") protected EntityManager em; /** * crea un celular * @param celularEntity que se va a crear * @return e...
<gh_stars>0 package multi import ( "github.com/thehivecorporation/log" "github.com/thehivecorporation/log/telemetry" ) type writerImpl struct { telemetry.Common writers []log.Writer } func (w *writerImpl) WriteLog(payload *log.Payload) { for _, wr := range w.writers { wr.WriteLog(payload) } } func New(ws .....
<gh_stars>0 // export by github.com/goplus/interp/cmd/qexp package json import ( "encoding/json" "github.com/goplus/interp" ) func init() { interp.RegisterPackage("encoding/json", extMap, typList) } var extMap = map[string]interface{}{ "(*encoding/json.Decoder).Buffered": (*json.Decoder).Buffered,...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.yamba; public final class R { public static final class array { public static final int delayNames=0x7f08...
//// { "compiler": { "target": 99 }, "order": 1 } // Did you know there is a limit to how big of a number you // can represent in JavaScript when writing ? const maxHighValue = 9007199254740991; const maxLowValue = -9007199254740991; // If you go one over/below these numbers // then you start to get into dangerous ...
<filename>src/commands/open.rs<gh_stars>0 use crate::commands::UnevaluatedCallInfo; use crate::context::AnchorLocation; use crate::data::meta::Span; use crate::data::Value; use crate::errors::ShellError; use crate::parser::hir::SyntaxShape; use crate::parser::registry::Signature; use crate::prelude::*; use std::path::{...
QR Code Link to This Post Location: Gaults Gulch it's NOT ok to contact this poster with services or other commercial interests Kim. We smoked a lot of weed and drank all the time. I don't remember much.Sarah. You were hot. But a total bitch. I could have done better. You treated me like shit. I put up with it becau...
#include<bits/stdc++.h> #include<iostream> #include<string> #include<cstring> #include<algorithm> #define pb push_back #define ll long long #define PI 3.14159265 #define ls l,m,rt<<1 #define rs m+1,r,rt<<1|1 #define eps 1e-7 const int mod=1e9+7; const int maxn=1e5+5; using namespace std; set<pair<int,int>...
// newTestChain generates a new instance of *Chain with a free TCP port configured as the RPC port func newTestChain(t *testing.T, tc testChain) *ry.Chain { _, port, err := server.FreeTCPAddr() require.NoError(t, err) return &ry.Chain{ Key: "testkey", ChainID: tc.chainID, RPCAddr: fmt....
<filename>server/app/errors.py """ This module defines how exceptions are handled by the web service. """ from typing import Any from blacksheep import Request, Response from blacksheep.server.application import Application from blacksheep.server.responses import json, text from essentials.exceptions import ( Acce...
/** * @author <a href="mailto:pftx@live.com">Lex Xie</a> * @version 1.0.0 * @since Nov 1, 2017 */ @Data @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(Include.NON_NULL) @JsonPropertyOrder({ "@url", "@type", "info" }) public class GenericResponse<T> { private static final String _TYPE = "generic"; ...
WASHINGTON — A missile strike from an American military drone in a remote region of Yemen on Thursday was aimed at killing Anwar al-Awlaki, the radical American-born cleric believed to be hiding in the country, American officials said Friday. The attack does not appear to have killed Mr. Awlaki, the officials said, bu...
**EARLY BIRD BOOKS** **FRESH EBOOK DEALS, DELIVERED DAILY** LOVE TO READ? LOVE GREAT SALES? GET FANTASTIC DEALS ON BESTSELLING EBOOKS DELIVERED TO YOUR INBOX EVERY DAY! The Galaxy's Greatest Newsletter Delivered to Your Inbox Get awesome tales of fantasy and science fiction once a week. Visit us at www.thep...
/// Convert an unsigned byte into an Algorithm (if valid) pub fn from_u8(byte: u8) -> Result<Self, Error> { Ok(match byte { 0x01..=0x08 | 0x19..=0x1c => Algorithm::Rsa(rsa::Algorithm::from_u8(byte)?), 0x09..=0x12 | 0x2e | 0x2f => { Algorithm::Asymmetric(asymmetric::Algori...
// ReflectionClassData contains php reflection data used by the runtime library public static class RuntimeStaticCompanion extends BaseMatcher.RuntimeStaticCompanion { private static final MethodHandles.Lookup staticCompanionLookup = MethodHandles.lookup(); @ConvertedMethod @ConvertedParameter...
// NewConsumer creates a new vCenter event driver func NewConsumer(vcenterURL string, insecure bool) (eventdriver.Consumer, error) { defer trace.Trace("")() vClient, err := newVCenterClient(context.Background(), vcenterURL, insecure) if err != nil { return nil, err } manager := event.NewManager(vClient.Client) ...
Preparation of a Clay Composite Containing Poly(o-toluidine) and Halloysite, and Examining of Its Performance as a Humidity Sensor This study outlines the production of an electrically conductive clay-based composite containing the halloysite as clay mineral and poly(o-toluidine) (POT) as a conductive filler. In the s...
import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Input, OnDestroy, Output, QueryList, ViewChild, forwardRef, } from '@angular/core'; import { SkyGridColumnComponent, SkyGridColumnDescriptionModelChange, SkyGridColumnHeadingModelChange, SkyGridCo...
def complete_registration(name=None): u = _get_user() with auth_db.thread_lock: r = user_registration(u) if cookie.unchecked_get_value(_COOKIE_METHOD) is METHOD_GUEST: assert name is None, \ 'Cookie method is {} and name is {}. Expected name to be None'.format(METHOD_...
package platform // Error is a domain error encountered while processing chronograf requests. type Error string // Error returns the string of an error. func (e Error) Error() string { return string(e) }
/** * Evaluate escapes such as \" and \\ * @param str The string containing escapes * @return The str with escapes evaluated */ public static String evaluateEscapes(final String str) { final StringBuilder sBuilder = new StringBuilder(str.length()); final int len = str.length(); for (int i = 0; i < len; i+...
<reponame>kofnego-jw/igwee-wikidiff<gh_stars>0 package at.ac.uibk.igwee.lucene.impl.searching; import at.ac.uibk.igwee.lucene.api.Constants; import at.ac.uibk.igwee.lucene.api.LuceneException; import at.ac.uibk.igwee.lucene.api.indexing.FacetContent; import at.ac.uibk.igwee.lucene.api.indexing.IndexSetting; import at....
def _step(acc, inputs): LL, _ = acc AA, BB = inputs CC = tf.transpose(tf.matrix_solve(LL, BB), perm=[0, 2, 1]) DD = AA - tf.matmul(CC, tf.transpose(CC, perm=[0, 2, 1])) LL = tf.cholesky(DD) return [LL, CC]
// Provides a common facility for doing a POST with a file on a Wit resource. // // result, err := postFile("https://api.wit.ai/messages", message) func postFile(resource string, request *MessageRequest) ([]byte, error) { if request.File != "" { file, err := os.Open(request.File) if err != nil { return nil, er...
/** * Returns the closest int to the argument. */ public static int round(float a) { if (a < ROUND_FLOAT_MIN || a > ROUND_FLOAT_MAX) return (int) a; return (int) Math.floor(a + 0.5); }
// UpdateDomainRecords replaces all of the existing records for the provided domain func (c *Client) UpdateDomainRecords(customerID, domain string, records []*DomainRecord) error { for _, t := range supportedTypes { typeRecords := c.domainRecordsOfType(t, records) if IsDisallowed(t, typeRecords) { continue } ...