content
stringlengths
10
4.9M
import './gateway/server'; import './popularity/server'; import './product/server';
/**Looks (multiplier)cyclo/spiro/cyclo tags before chain * and replaces them with a group with appropriate SMILES * Note that only simple spiro tags are handled at this stage i.e. not dispiro * @param group A group which is potentially a chain * @throws ComponentGenerationException */ private void processRing...
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:35:41 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/CoreServices.framework/CoreServices * classdump-dyld is licensed under GPLv3, Copyright © 20...
/** * Retrieves the subdirectories of this directory. * * @return Pointer to an array of subdirectories. (MUST BE FREED LATER) */ vector<Directory> Directory::GetSubDirectories() { HANDLE hFind; WIN32_FIND_DATA fndData; vector<Directory> arr; hFind = FindFirstFile(this->Concatenate(L"\\*").ToString(), &fndData)...
<reponame>opium-pro/master-hook export const mediators = {} export const actions = {}
<gh_stars>100-1000 package com.dtstack.taier.develop.service.develop.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONPath; import com.dtstack.taier.common.enums.EScheduleJobType; import com.dtstack.taier.dao.domain.BatchTaskParam; import com.dtstack.taier...
<gh_stars>1-10 package com.edgar.module.sys.dao; import com.edgar.core.repository.AbstractDaoTemplate; import com.edgar.module.sys.repository.domain.SysMenuRoute; import com.edgar.module.sys.repository.querydsl.QSysMenuRoute; import com.mysema.query.sql.RelationalPathBase; import org.springframework.stereotype.Reposit...
More characters Mutsuki, Koharu Main Torii, Akira Main Ninomiya, Natsuki Supporting Sasagase, Mika Supporting More reviews Jul 12, 2014 24 of 24 chapters read Overall Rating : 4 CrayonPop420 (All reviews) 39 people found this review helpful Overall 4 Story 5 Art 6 Character 5 Enjoyment 3 Koharu no Hibi is a romance ...
// NewAuthService returns implementation of authorization service. func NewAuthService(rateLimiter *limiter.RateLimiter, ipList repository.IPStorable) service.AuthService { return &authService{ rl: rateLimiter, ipList: ipList, } }
Dame Judi Dench has said that pursuing a healthy sex life should not be neglected by her fellow octogenarians. The 82-year-old actor is once again taking on the role of Queen Victoria in her latest film Victoria and Abdul, which explores the relationship the monarch struck up with an Indian clerk, Abdul Karim, in the ...
def name2sid(index, name, filename): match = fuzzy.find(name, index) logging.info('matches for %s : %s' % (name, str(match))) if match and match[0][1] > 1: return '%06d' % int(match[0][0]) raise ValueError("Could not find sid for '%s' in %s" % (name, filename))
<gh_stars>0 import { Component, OnInit, OnDestroy } from '@angular/core'; import { AuthService } from 'src/app/services/auth.service'; import { IdentityProvider } from 'src/app/model/identityProvider'; import { UtilService } from 'src/app/services/util.servcie'; import { takeUntil } from 'rxjs/operators'; import { Subj...
import React from 'react'; import Thumbs from '../Thumbs'; import { CarouselProps, CarouselState } from './types'; export default class Carousel extends React.Component<CarouselProps, CarouselState> { private thumbsRef?; private carouselWrapperRef?; private listRef?; private itemsRef?; private timer...
<reponame>jdcloud-apigateway/jdcloud-sdk-java /* * Copyright 2018 JDCLOUD.COM * * 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 * * Unl...
import { of } from "rxjs"; // tslint:disable-next-line:no-var-requires const stripJsonComments = require("strip-json-comments"); import { SettingsService } from "app/services"; // tslint:disable-next-line:no-var-requires const defaultSettings = JSON.parse(stripJsonComments(require("app/components/settings/default-set...
def range(self): return Stats.range(self.sample)
Vitamin D hydroxylases CYP2R1, CYP27B1 and CYP24A1 in renal cell carcinoma There is increasing evidence that vitamin D metabolites influence carcinogenesis. Besides its role in mineral homoeostasis, calcitriol, the active metabolite of vitamin D (1,25(OH)2D3), is known to possess antiproliferative, proapoptotic and im...
<filename>Ikala-Graphics/src/com/ikalagaming/graphics/graph/Transformation.java package com.ikalagaming.graphics.graph; import com.ikalagaming.graphics.SceneItem; import org.joml.Matrix4f; import org.joml.Vector3f; /** * Bundles together the projection and world matrix. * * @author <NAME> * */ public class Tran...
// SetCurrentLimit specifies the output current limit in Amperes. // // SetCurrentLimit implements the setter for the read-write IviDCPwrBase // Attribute Current Limit described in Section 4.2.1 of IVI-4.4: IviDCPwr // Class Specification. func (ch *Channel) SetCurrentLimit(limit float64) error { if ch.currentLimitBe...
#include<cstdio> using namespace std; int main(){ int n,ans=0; scanf("%d",&n); ans+=n/100; n-=ans*100; if(n==0){ printf("%d",ans); return 0; } ans+=n/20; n-=n/20*20; if(n==0){ printf("%d",ans); return 0; } ans+=n/10; n-=n/10*10; if(n==0){ printf("%d",ans); return 0; } ...
<reponame>kprotty/yaar<filename>yaar/src/runtime/platform/mod.rs use super::scheduler::Worker; use yaar_lock::ThreadEvent; #[cfg(feature = "time")] use super::time::Clock; #[cfg(feature = "io")] use yaar_reactor::Reactor; pub trait Platform: Sync + Sized + 'static { type CpuAffinity; type ThreadEvent: ThreadE...
guti01 A B guti01 C D
/** Run selected function as many times as needed * with the array sizes chosen by the user * @param choice the function to be run * @return 2-D table with array size and time of each run */ private static long[][] processMenuChoice(int choice) throws InterruptedException { StopWatch timer = new StopWa...
/** * Eviction period. * * @param evictionPeriod the eviction period * @return the off heap cache builder */ public OffHeapCacheBuilder evictionPeriod(final long evictionPeriod) { checkPositive(evictionPeriod, "eviction period must be positive"); this.evictionPeriod = evictionPeriod; return t...
/** * Created by wilsonsouza on 10/6/16. */ public class DeviceAdapter extends BaseAdapter { private java.util.List<DeviceNode> m_NodeList; //-----------------------------------------------------------------------------------------------------------------// public DeviceAdapter() { m_NodeList = new ...
# -*- coding: utf-8 -*- """ Pygments string assert utility tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import unittest from string_asserts import StringTests class TestStringTests(StringTests, unit...
/* Answer non-zero on success */ uintptr_t try_scan(char **scan_start, const char *search_string) { char *scan_string = *scan_start; size_t search_length = strlen(search_string); if (strlen(scan_string) < search_length) { return 0; } if (0 == j9_cmdla_strnicmp(scan_string, search_string, search_length)) { *sc...
import math a = input() b = a d = "".join(list(reversed(b))) ans = 0 c = math.floor(len(a)/2) if len(a) % 2 == 0: for i in range(c): if not b[i] == d[i]: ans += 1 else: for i in range(c): if not b[i] == d[i]: ans += 1 print(ans)
def from_esc50(cls, spec, data_path): assert isinstance(spec, audio_spec.YAMNetSpec) return NotImplemented
<reponame>romnnn/vagrantutil package vagrantutil import "testing" const version174 = ` 1459267732,,version-installed,1.7.4 1459267732,,version-latest,1.8.1 ` const version181 = ` 1459268273,,ui,output,Installed Version: 1.8.1 1459268273,,version-installed,1.8.1 1459268273,,ui,output,Latest Version: 1.8.1 1459268273,...
Applying Innovative Models for Forecasting Small-Area Peak Electrical Loads The number of Distributed generators is currently increasing, and the electrical industry is trending toward regional supply-and-demand and resource integration. Thus, a model that can forecast small-area peak electrical loads is an indispensa...
package profile import ( "github.com/labstack/echo" "net/http" ) func Assemble(e *echo.Echo, man Manager) { h := &handler{ man: man, } g := e.Group("/profile") g.GET("/reviews", h.reviews) } type handler struct { man Manager } func (h *handler) reviews(c echo.Context) error { ctx := c.Request().Context(...
/** * Checks if <code>this</code> property can be developed. * @return <code>true</code> if property can be developed. */ public boolean canDevelop() { /* Get each color the player owns and check its hotel count */ boolean canDevelop = true; if(this.getHouseCount()...
/*input 5 3 1 2 motarack 2 mike 1 2 light */ #include <bits/stdc++.h> #define pii pair<int, int> #define F first #define S second #define int long long using namespace std; const int MX = 5e5 + 100, oo = 1ll << 60; pair<int, string> que[MX]; int GG[100][100]; main () { ios_base::sync_with_stdio(false...
/* * Open a subcommand with suitable error messaging */ static FILE * popen_check(const char *command, const char *mode) { FILE *cmdfd; fflush(stdout); fflush(stderr); errno = 0; cmdfd = popen(command, mode); if (cmdfd == NULL) fprintf(stderr, _("%s: could not execute command \"%s\": %s\n"), progname, ...
/* ---------------------------------------------------------------------------- * Copyright (C) 2021 European Space Agency * European Space Operations Centre * Darmstadt * Germany * --------------------------------------------------------...
Parameter Correlation of Proximate Analysis and Ultimate Analysis of the Calorific Value of Coal Jambi Province is an area that has abundant coal potential, this is due to its location in the Jambi Sub-basin, part of the South Sumatra Basin. As one of the coal mining companies in Jambi Province, PT Kamalindo Sompurna ...
<gh_stars>0 #pragma once namespace parsium { struct {} constexpr recursive; }
<reponame>eblanton/hasensor<filename>hasensor/sensors/system.py import json from typing import Dict, List import psutil # type: ignore from ..sensor import ArgDict, Sensor class SystemSensor(Sensor): _argtypes: ArgDict = { "partitions": str, "diskthresh": float } ...
Side Splitting Failure of RC Beams and Columns under Seismic Action As a Form of Shear Failure Recently bond splitting failure prior to the yielding of stirrups has attracted more attention for reinforced concrete (RC) structures located in seismic areas due to the increased popularity of high strength steel. However,...
<filename>01_Auth/Hash_password/main.go<gh_stars>0 package main import ( "fmt" "log" "golang.org/x/crypto/bcrypt" ) func main() { pass := "<PASSWORD>" hashedPass, err := hashPassword(pass) if err != nil { panic(err) } fmt.Println("Hash: ", hashedPass) if err := comparePassword(pass, hashedPass); err !=...
def create_console_string_writer(stream=None, encoding='utf-8'): stream = stream or sys.stdout return codecs.getwriter(encoding)(stream.buffer)
class QuotecastParser: """Handle the payload returned from this endpoint : "https://degiro.quotecast.vwdservices.com/CORS/{session_id}" OVERALL EXPLANATION The endpoint aforementioned returns financial data measurement such as : * LastPrice of a Stock * LastVolume of a Stock ...
<filename>src/components/Page/Page.stories.tsx import type { Story, Meta } from "@storybook/react" import React from "react" import { withContainer, argTypes, argHidden } from "../../helpers/stories" import Page, { PageProps, PageTitle, Heading1, Heading2, Heading3, ColumnBreak, } from "./Page" export de...
import java.util.HashMap; import java.util.Map; import java.util.Scanner; /** * Created by Lux on 17.07.2017. */ public class Alphabet { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] str1 = sc.nextLine().toCharArray(); char[] str2 = sc.n...
/** * Inclusive: Only files of this type will be considered! If an inclusive * type is added, the exclusive types won't be regarded anymore. * * For example: text/plain, image/gif, video/mpeg, audio/mid, * application/msword * * @param mimeType */ public void addInclusiveMimeType(String mimeType) { ...
<reponame>Blueberryy/GrimoireOfGaia package gaia.block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; public class BlockVanilla extends BlockBase { public BlockVanilla(Material material, String blockName, float hardness, float resistance, SoundType soundType) { super(material...
<reponame>axeld/haiku /* * Copyright 2005, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. * * Implements the MessagingTargetSet interface for AppInfoLists, so that * no other representation (array/list) is needed to feed them into the * MessageDeliverer. */ #ifndef APP_INFO_LIST_MESSAGING_TAR...
#!/usr/bin/python3 # -*- coding:utf-8 -*- from queue import deque def main(): h, w = map(int, input().strip().split()) c_h, c_w = map(int, input().strip().split()) d_h, d_w = map(int, input().strip().split()) maze = [list(input().strip()) for _ in range(h)] visited = [[0] * w for _ in range(h)] def bfs...
// Helper for {batch,layer,group}_norms below only // Computes the jvp for `input * weight + bias` where weight and bias may be undefined // Possibly modifies the input inplace static Tensor _affine_jvp( const c10::optional<Tensor>& input_p, Tensor& input_t, const Tensor& weight_p, const Tensor& weight_t, c...
Home | Databases | WorldLII | Search | Feedback High Court of Australia Transcripts Ceremonial - Farewell to French CJ - Melbourne [2016] HCATrans 281 (18 November 2016) Last Updated: 18 November 2016 [2016] HCATrans 281 H I G H C O U R T O F A U S T R A L I A FAREWELL TO THE HONOURABLE CHIEF JUSTICE ROBERT SHENT...
<reponame>fengzhongye/LogiAM import React, { useState, useEffect } from 'react'; import { AutoComplete, Modal, Form, Input, Divider, Select, Button, Tooltip, Row, Col, InputNumber, Collapse } from 'antd'; import * as actions from '../../actions'; import '../../container/agent-management/index.less'; import { connect } ...
// NewSyncInstrument implements metric.MeterImpl. func (u *uniqueInstrumentMeterImpl) NewSyncInstrument(descriptor metric.Descriptor) (metric.SyncImpl, error) { u.lock.Lock() defer u.lock.Unlock() impl, err := u.checkUniqueness(descriptor) if err != nil { return nil, err } else if impl != nil { return impl.(me...
Applebee’s build-your-sampler offers a combo platter of two to five appetizers. If you order the combination of cheeseburger egg rolls, pretzels and beer cheese dip, chicken quesadillas, boneless buffalo wings and spinach and artichoke dip, you’re staring down a whopping 3,390 calories , 11,650 milligrams of sodium and...
package net.coding.program; import android.app.ActivityManager; import android.app.Application; import android.content.Context; import android.util.Log; import com.baidu.mapapi.SDKInitializer; import com.loopj.android.http.AsyncHttpClient; import com.loopj.android.http.JsonHttpResponseHandler; import com.nostra13.uni...
Extension Method of Safety Evaluation and Its Application The extension method based on entropy weight is a new safety evaluation method. Entropy weight, which is an objective weight, was ascertained by entropy theory. As a result, the subjectivity in ascertaining the weights of more factors in lower hierarchy was avo...
// DeleteObjects will take one or more paths, and delete them from the s3 file system func (s3fs *S3FS) DeleteObjects(path ...string) error { svc := s3.New(s3fs.session) objects := make([]*s3.ObjectIdentifier, 0, len(path)) for _, p := range path { s3Path := strings.TrimPrefix(p, "/") object := &s3.ObjectIdentif...
/** * A version of InvWrapper which can handle the special requirements of WorldlyContainers in addition to still handling regular Containers */ private static class WorldlyInvWrapper extends InvWrapper{ //Because WorldlyContainer adds extra methods to control item movement, we need to adjust the wrapper to use ...
/* * OnlineIndexerBuildIndexTest.java * * This source file is part of the FoundationDB open source project * * Copyright 2015-2019 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
/** * Holds instances of given service &lt;T&gt; and allows their instantiation, reuse and disposal. * * Leverages JMS queue to store number of messages corresponding to limit of how many services can be created for given push network. * * The message is borrowed from this queue when new service is created.The mes...
Oral Explanations in University Teaching: The Role of Projector Constructions in Spoken German This study explores the nature of oral explanations in German university teaching and focuses particularly on projections, which are a widely-used feature in order to guide the students’ attention. Projector constructions fa...
<filename>org.spoofax.interpreter.core/src/main/java/org/spoofax/interpreter/library/ssl/SSL_fgetc.java /* * Created on 11. jan.. 2007 * * Copyright (c) 2005, <NAME> <<EMAIL> near strategoxt.org> * * Licensed under the GNU Lesser General Public License, v2.1 */ package org.spoofax.interpreter.library.ssl; impor...
//Initialising the possibilities and pointers. //And also it finds squares where only one number is //available to fit in, we can then permamently fix //these numbers in their respective squares. void init_board(single board[][SIDE]){ int i, j, poss_num; for (i = 0; i < SIDE ; i++){ for (j = 0 ; j < SIDE ; ...
export class AccountInfo { public address: string; public balance: number; public label: string; constructor() { this.address = null; this.balance = null; this.label = null; } }
<filename>src/test/ui/lint/trivial-casts-featuring-type-ascription.rs #![deny(trivial_casts, trivial_numeric_casts)] #![feature(type_ascription)] fn main() { let lugubrious = 12i32 as i32; //~^ ERROR trivial numeric cast let haunted: &u32 = &99; let _ = haunted as *const u32; //~^ ERROR trivial cas...
// Init initializes service configurator. func (sc *ServiceConfigurator) Init() error { sc.natGlobalCfg = &nat.Nat44Global{ Forwarding: true, } return nil }
# ETL JSON files into CSV and PostgreSQL # run once # pip install csvkit # initdb datamena # postgres -D datamena/ # createdb tweetreplies import os, csv, json tweets = os.listdir('./all_tweets') with open('./all_tweets/origin_tweets.csv', 'w') as csv1: originTweets = csv.writer(csv1) originTweets.w...
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/** * Integration tests showing basic CRUD operations through * {@link org.springframework.data.couchbase.core.ReactiveCouchbaseOperations}. * * @author Mark Paluch * @author Denis Rosa */ @RunWith(SpringRunner.class) @SpringBootTest public class ReactiveJavaCouchbaseOperationsIntegrationTests { @ClassRule // ...
/* Code decompiled incorrectly, please refer to instructions dump. */ private static void restoreAppSessionInformation(android.content.Context r8) { /* java.lang.Object r0 = staticLock monitor-enter(r0) boolean r1 = isLoaded // Catch:{ all -> 0x00a9 } ...
/** * Represent a bridge between two islands in the game Bridges. * <p> * Defined as immutable object, following: * https://docs.oracle.com/javase/tutorial/essential/concurrency/imstrat.html * * @author Maik Messerschmidt */ final public class Bridge implements Comparable<Bridge> { final private Island first...
<gh_stars>0 import classnames from 'classnames'; import styles from './Badge.module.css'; type BadgeProps = { content: string; size?: 'small' | 'medium'; rectangular?: boolean; backgroundColor: string; }; /** * A Badge with test included. * * @param content Text to show on the Badge * @param size Can be `...
/** * Adapts a BitstampBalance to an AccountInfo * * @param bitstampBalance The Bitstamp balance * @param userName The user name * @return The account info */ public static AccountInfo adaptAccountInfo(BitstampBalance bitstampBalance, String userName) { final BigDecimal usdWithdrawing = bitstampBa...
import classNames from 'classnames'; import type { PropsWithChildren } from 'react'; type FooterProps = PropsWithChildren<{ className?: string; }>; const Footer = ({ children, ...props }: FooterProps) => { const className = classNames('p-4 pt-6', props.className); return ( <footer className={clas...
// N -> No. of stattes, M -> Size of input alphabet // finds the epsilon closure of the NFA state "state" and stores it into "closure" void epsilonClosure(int state, bitset<MAX_NFA_STATES> &closure) { for (int i = 0; i < N && NFAstates[state].transitions[0][i] != -1; i++) if (closure[NFAstates[state].tran...
/** * Returns an effectively unlimited stream of pseudorandom {@code * long} values from this generator and/or one split from it. * * @implNote This method is implemented to be equivalent to {@code * longs(Long.MAX_VALUE)}. * * @return a stream of pseudorandom {@code long} values ...
<gh_stars>0 """ Copies in a lot of code from discord.py because I want direct access to rate limit information Working with stuff I shouldn't be accessing, so hopefully discord.py updates with getting rate-limit info sometime soon """ import asyncio import datetime import logging import discord import discord.http fr...
<filename>common/util/ptr_vec.hpp #pragma once #include <cassert> #include <memory> #include <type_traits> #include <vector> #include "algorithm.hpp" namespace cloth::util { /// An iterator wrapper that dereferences twice. template<typename Iter> struct double_iterator { using wrapped = Iter; using va...
Improvements and Future Challenges for the Research Infrastructure in the Field 'Measuring Cognitive Ability' The assessment of cognitive abilities is critical in large-scale survey studies that aim at elucidating the longitudinal interplay between the individual’s cognitive potential and socio-economic variables. The...
Mattel's Attempt To Claim Ownership Of Bratz Comes Back To Bite Them: Now They May Owe $88.5 Million from the blowback dept Wow. For years, we've been following the legal battle between toy giant Mattel and toy upstart MGA concerning the ownership of Bratz dolls -- the first dolls in years to seriously compete with M...
Panel Session 4: Mobile Web Services Trend Perspectives Web services are finding their way into mobile devices in several disparate islands: We can find WS proxies connected via proprietary wireless connectors to mobile devices (Blackberry MDS), the beginnings of a Web service consumer stack in mobile Java (JSR172), W...
/** * Contains configuration data for the UnboundID provider. * * @author Middleware Services */ public class UnboundIDProviderConfig extends ProviderConfig<Control> { /** Connection options. */ private LDAPConnectionOptions connectionOptions; /** socket factory for ldap connections. */ private SocketFac...
#include<stdio.h> #include<string.h> int main() { char s[200001]; int t,i,e,f,j,k,n,a,b,c,d,u,T; scanf("%d",&t); for(i=0;i<t;i++){ n=0; T=0; u=0; a=0; b=0; c=0; d=0; e=1000000; f=1000000; scanf("%s",s); ...
# 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, software # distributed under t...
<reponame>billyeatcookies/Biscuit from .diff_viewer import DiffViewer from .editor import Editor from .image_viewer import ImageViewer
//EqualPvcLists Compare two PersistentVolumeClaim lists. When ignoreRandomPostfixInName=true - last 6 chars of the name (e.g.'-abc12') are ignored during comparison func EqualPvcLists(pvcList1, pvcList2 *[]corev1.PersistentVolumeClaim, ignoreRandomPostfixInName bool) (bool, error) { if len(*pvcList1) != len(*pvcList2)...
/** * Each assertion name now points to a typechecked Expr rather than an * untypechecked Exp. */ private JoinableList<Err> resolveAssertions(A4Reporter rep, JoinableList<Err> errors, List<ErrorWarning> warns) throws Err { Context cx = new Context(this, warns); for (Map.Entry<String,Expr>...
def environment_overrides(self, architecture): options = [architecture, 'x86_'+architecture, 'amd64_'+architecture] configuration = next(option for option in options if os.path.exists(os.path.join(self.__vc_root(), 'bin', option))) with TempDir() as d: path = os.path.join(d, 'script....
package systemstat import ( "fmt" "strconv" ) // FreeBsdTop Top version FreeBSD func FreeBsdTop() (cpu *Cpu, memory *Memory, err error) { freeBsdTop := &freeBsdTopParser{ cpu: &Cpu{}, memory: &Memory{}, } err = newCommand(`(CPU\s+(\d+)?:\s+(\d+)(?:\.(\d+))?% user,\s+(\d+)(?:\.(\d+))?% nice,\s+(\d+)(?:\.(\...
/** * @since 2020 * @author Huawei DTSE India */ public class CourseContentDataModel implements Parcelable { private String courseName; /** * The Course url. */ private String courseUrl; /** * The Course id. */ private String courseId; /** * Instantiates a new Course...
import pandas as pd from ..core.project_manager import ProjectManager from uquake.grid.nlloc import VelocityGrid3D, VelocityGridEnsemble from uquake.nlloc.nlloc import Srces, Site, Observations from uquake.core.event import (Catalog, Origin, Arrival, Pick, WaveformStreamID, Ray, Resource...
<filename>src/main/java/com/jmsoftware/datastructuresandalgorithms/DataStructuresAndAlgorithmsApplication.java package com.jmsoftware.datastructuresandalgorithms; import com.jmsoftware.datastructuresandalgorithms.common.configuration.ProjectProperty; import com.jmsoftware.datastructuresandalgorithms.common.configurati...
// Do executes WebAuthn.getCredentials against the provided context. // // returns: // credentials func (p *GetCredentialsParams) Do(ctx context.Context) (credentials []*Credential, err error) { var res GetCredentialsReturns err = cdp.Execute(ctx, CommandGetCredentials, p, &res) if err != nil { return nil, err ...
<filename>apiMangos/src/main/java/cl/vk/api/mangos/dao/ConfigurationDao.java package cl.vk.api.mangos.dao; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import cl.vk.api.mangos.conf.ServerParam; import cl.vk.api.mangos.dto.Configuration; import cl....
/** * Test that exception is thrown for missing endTime attribute in test_case_3.xml. */ TEST(XMLReader, test_case_missing_endtime) { EXPECT_THROW(XMLReader<2> reader("../../tests/XMLReader/input/test_case_endtime.xml"), std::invalid_argument); EXPECT_THROW(XMLReader<3> reader("../../tests/XMLReader/input/test_cas...
/** * The XML implementation of an SnapshotSerializer. It is capable of * transforming a Snapshot object into a serialized XML representation. * * @date Oct 20, 2004 */ public class SnapshotSerializerXML implements SnapshotSerializer{ @Override public String serializeSnapshot(Snapshot snapshot) throws T...
/* * Remove \DDD constructs from the input. See RFC 1035, section 5.1. */ static size_t zoctet(char *text) { char *s; char *p; for (s = p = text; *s; ++s, ++p) { assert(p <= s); if (s[0] != '\\') { *p = *s; } else if (isdigit((int)s[1]) && isdigit((int)s[2]) && isdigit((int)s[3])) { int val = (hexdigi...
/** * Match an Resolvable to a Rule. * @param object resolvable * @return true if rule matches */ public final boolean match(final Resolvable object) { if (object != null) { try { return (evaluator.match(expr, object)); } catch (ExpressionParserException e) { e.printStackTrace(); } } retu...
def formatGazeData(input_dir): raw_df = pd.read_table(join(input_dir, 'SMI_raw.txt')) ts = raw_df['Time']/1000 vid = cv2.VideoCapture(join(input_dir, 'SMI_worldCamera.avi')) if OPENCV3: vidSize = (int(vid.get(cv2.CAP_PROP_FRAME_WIDTH)), int(vid.get(cv2.CAP_PROP_FRAME_HEIGHT))) else: ...
<reponame>aviarytech/dids import { SecretTypeNotFound } from "../src/Secret"; import { JSONSecretResolver } from "../src"; import { JsonWebKey } from "@aviarytech/crypto-core"; test("secret resolver can resolve a JsonWebKey2020 JSON file", async () => { const secretFile = require("../__fixtures__/JsonWebKey2020.exam...