content
stringlengths
10
4.9M
# author: <NAME> # contact: <EMAIL> # date: 2021-09-12 # version: 0.0.1 import numpy as np from mollab.atom import Atom, TemplateAtom from mollab.residue import Residue, TemplateResidue import pytest @pytest.fixture def templateCH4(): # H2 # | # H1 - C - H0 # | # H3 CH4 = T...
<filename>src/utils/syncUtils/common.tsx import axios from "axios"; import { config } from "../../constants/driveList"; import OtherUtil from "../otherUtil"; import BookModel from "../../model/Book"; import localforage from "localforage"; export function getParamsFromUrl() { var hashParams: any = {}; var e, r ...
#бегать по циклу и записывать не кол-во а индекса, и потом сравнивать их # ABBAuuuABjklBA ABAXXXAB "AB BA" import math s = input() ls = len(s) sA=0 sB=0 mA=[] mB=[] for i in range(ls-1): if (s[i] == "A" and s[i+1] == "B"): #or (s[i] == "B" and s[i+1] == "A"): #print("AB=",i,i+1) mA....
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll N=1e5+10,SQ=315; ll m[SQ+10][N],n,q,c,l,r,k,Lst,ld,rd,re,x,y,st,r2,b[N],s[SQ+10],ind[SQ+10]; vector <ll> v[SQ+10]; void upd(ll l,ll r) { ld=l/SQ; rd=r/SQ; l-=s[ld]; r-=s[rd]; if(ld-rd==0) { ...
<gh_stars>1-10 export enum ActionTypes { CHANGE_PAGE = '[Catalog/items] Load items', } // Change page export type TChangePage = { type: ActionTypes.CHANGE_PAGE; page: number; }; export const changePage = (page: number): TChangePage => { return { type: ActionTypes.CHANGE_PAGE, page, }; }; export type Actions...
<gh_stars>1-10 #!/usr/bin/env python # -*- coding: utf-8 -*- """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you unde...
/** * The game's main state. Contains most of the logic. */ #ifndef __PLAYSTATE_H__ #define __PLAYSTATE_H__ #include <base/error.h> /** Free all memory used by the playstate */ void playstate_clean(); /** Initialize and alloc the playstate */ err playstate_init(); /** Reset the playstate so it may start to run ag...
def _point_m_to_wkb(x, y, m): return pack('<3d', x, y, m)
SAT Heritage: A Community-Driven Effort for Archiving, Building and Running More Than Thousand SAT Solvers SAT research has a long history of source code and binary releases, thanks to competitions organized every year. However, since every cycle of competitions has its own set of rules and an adhoc way of publishing ...
/** * Requests a connection from each registered database, and runs the isValid check. * * @return A Map of registered databases to their status. True indicates the given database connection is valid, false indicates * the application was unable to communicate with the given database. */ public M...
package com.adam.food.domain.foodlist; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; /** * Created by adamlee on 2016/3/15. */ public class TgFoodListWrapper { @SerializedName("status") @Expose private Bo...
// Copyright 2021 The Rode 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 ...
package task; import org.processmining.plugins.declareanalyzer.AnalysisResult; import org.processmining.plugins.declareanalyzer.Tester; import javafx.concurrent.Task; public class DeclareAnalyzerTask extends Task<AnalysisResult>{ private String logFile; private String modelFile; public DeclareAnalyzerTask(S...
/** @file @author <EMAIL> / project daisy bell @details license: MIT */ #include "src/OpenType.h" GlyphOutline GlyphOutline_A() { // ** //! @todo flags repeat, Coodinates SHORT_VECTOR GlyphOutline outline = {0}; GlyphClosePath cpath0 = {0}; GlyphAnchorPoint apoints0[] = { {{ 50, 100},}, {{ 250, 600},...
Martin Joseph Fettman (B.S., D.V.M., M.S., Ph.D., Diplomate, ACVP) is an American pathologist and researcher who flew on NASA Space Shuttle mission STS-58 aboard the Space Shuttle Columbia as a Payload Specialist. Personal data [ edit ] Born December 31, 1956, Brooklyn, New York. Married to Heather Connally DVM MS DA...
<gh_stars>0 interface AppDefaultComponentProps { } interface AppComponentState { isOAuthReady: boolean, OSMOAuth: osmAuthInstance, isAuthenticated: boolean, isQuarifiedBrowser: boolean, } interface OSMLoggedInComponentProps { oauth: osmAuthInstance } interface OSMLoggedInComponentState { notes: any[], ...
def _SortInstancesForDisplay(instances): instances.sort(key=lambda ins: ins.createtime, reverse=True) instances.sort(key=lambda ins: ins.AdbConnected(), reverse=True) return instances
<filename>sklearn/pipeline.py #!/usr/bin/env python # -*- coding: utf-8 -*- from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LogisticRegression from sklearn.pipeline import make_pipeline from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from sk...
/// Default destructor /// Memory taken is released by the parent class destructor AliQnCorrectionsDetectorConfigurationTracks::~AliQnCorrectionsDetectorConfigurationTracks() { if (fQAQnAverageHistogram != NULL) delete fQAQnAverageHistogram; }
/** * Controller for the REST api exposing data types of domain model. * Controller returns response objects containing list of options * possible for each enumerable data type in application. * Returns objects wrapped in a structure for JTable. * @author Michal Jendrzejek */ @RestController @RequestMapping("api/...
<filename>InputSurface/GCControlSurface.h #ifndef _GCCONTROLSURFACE_H_ #define _GCCONTROLSURFACE_H_ #ifndef __COCOS2D_H__ #include "cocos2d.h" #endif #ifndef B2_MATH_H #include "Box2D.h" #endif #ifndef _GCTYPES_H_ #include "GamerCamp/Core/GCTypes.h" #endif #include "GamerCamp/EventSystem/IEventSource.h" #include "...
Query based event extraction along a timeline In this paper, we present a framework and a system that extracts events relevant to a query from a collection C of documents, and places such events along a timeline. Each event is represented by a sentence extracted from C, based on the assumption that "important" events ...
/** * @author hakonhall * @author bjorncs */ public class HostSuspensionRequestHandler extends RestApiRequestHandler<HostSuspensionRequestHandler> { private static final Logger log = Logger.getLogger(HostSuspensionRequestHandler.class.getName()); private final Orchestrator orchestrator; @Inject pu...
<reponame>tech-niche-biz/bacula-9.4.4<filename>src/dird/ua_prune.c<gh_stars>0 /* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2017 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file ...
/** * An abstract panel for editing a transport item. */ @SuppressWarnings("serial") public abstract class TransportItemEditingPanel extends JPanel { protected static Simulation sim = Simulation.instance(); protected static UnitManager unitManager = sim.getUnitManager(); protected static MarsClock marsClock = sim...
import { isFunction } from '../../misc/is/is-function'; import { IHTMLTemplate } from './template.type'; export function isHTMLTemplate<GTemplateArgument extends object>( value: unknown, ): value is IHTMLTemplate<GTemplateArgument> { return isFunction(value); }
<reponame>macguruGithub/spring-io-custom-start-spring-io<gh_stars>0 package io.spring.start.site.extension.dependency.jenkins; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import io.spring.initializr.generator.p...
package bundle import ( "archive/tar" "compress/gzip" "encoding/json" "fmt" "io" "io/ioutil" "os" "path/filepath" "strings" "github.com/ghodss/yaml" "github.com/pkg/errors" "github.com/sirupsen/logrus" "k8s.io/helm/pkg/chartutil" "k8s.io/helm/pkg/proto/hapi/chart" "github.com/kyma-project/kyma/compon...
/** * Contains commit information about a branch and its base revision. */ class Branch { /** * The commits to the branch */ private final ConcurrentSkipListMap<Revision, BranchCommit> commits; /** * The initial base revision of this branch. */ private final RevisionVector base; ...
#include "bml_utilities_distributed2d.h" #include "bml_allocate_distributed2d.h" #include "../bml_introspection.h" #include "../bml_utilities.h" #include "../bml_allocate.h" #include "../bml_parallel.h" #include "../bml_submatrix.h" #include "../bml_copy.h" #include "../ellblock/bml_types_ellblock.h" #include "../ellbl...
def find_gt_from_files_copy(img_location, gt_folder, gt_new_folder): files = [] gt_files = [] for dirname, dirnames, filenames in os.walk(img_location): for filename in filenames: files.append(filename) print('files = ', files) print('len(files) = ', len(files)) for dirname, ...
package medo.demo.spring.core; @FunctionalInterface public interface TransactionRunnable { void run(); }
// PutState puts the specified `key` and `value` into the transaction's // writeset as a data-write proposal. PutState doesn't effect the ledger // until the transaction is validated and successfully committed. // Simple keys must not be an empty string and must not start with null // character (0x00), in order to avoi...
def kalman_filter_detector(spec, spec_std, sig_t, A_0=None, sig_0=None): if A_0 is None: A_0 = spec.mean() if sig_0 is None: sig_0 = np.median(spec_std) spec = spec - np.mean(spec) cur_mu, cur_state_v = A_0, sig_0**2 cur_log_l = 0 for i in range(len(spec)): cur_z = spec...
/*========================================================================= Program: Visualization Toolkit Module: vtkQuadric.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is dist...
def sync_type(ks_name, type_model, connection=None): if not _allow_schema_modification(): return if not issubclass(type_model, UserType): raise CQLEngineException("Types must be derived from base UserType.") _sync_type(ks_name, type_model, connection=connection)
/** * This processor does nothing. It exists to show that one can use beans as * processors. * * @author Michael J. Simons * * @since 2016-12-15 */ @Component public class DefaultResourcePreProcessor implements ResourcePreProcessor { @Override public void process(Resource resource, Reader reader, Writer write...
def execute_clean_step(self, task, step): return execute_step(task, step, 'clean')
<filename>java401codechallenges/src/main/java/java401codechallenges/MultibracketValidation.java<gh_stars>0 package java401codechallenges; import java.util.HashMap; import java.util.HashSet; public class MultibracketValidation { private Stack<Character> stack; public MultibracketValidation() { this.st...
package list import ( "github.com/downflux/game/engine/curve/curve" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" gcpb "github.com/downflux/game/api/constants_go_proto" ) type List struct { curves map[gcpb.EntityProperty]curve.Curve properties []gcpb.EntityProperty } func New(curves []cur...
Theoretical modelling of high pressure argon arc radiation A one-dimensional, axisymmetric, high-pressure argon arc was modelled theoretically, and its radiation spectrum was calculated numerically from the equations of heat conductivity and radiation transfer. For a pressure of P = 15 atm, the coefficients of absorpt...
. The authors report a familial case of carnitine insufficiency presenting in two out of seven children as a severe, isolated, hypertrophic and hypokinetic cardiomyopathy. The etiology was confirmed by histological study and measurement of carnitine concentrations in the blood and muscle. The evolution was spectacular...
def onnx_similarity(model_1, model_2): graph_1 = model_1.graph graph_2 = model_2.graph input_same = (len(graph_1.input) == len(graph_2.input)) if input_same: input_1 = {item_1.name: item_1.type for item_1 in graph_1.input} input_2 = {item_2.name: item_2.type for item_2 in graph_2.input} ...
<gh_stars>0 import React from 'react'; import { Card, Space, Typography } from 'antd'; import { ProjProgress, ProjProgressProps } from './ProjProgress'; import { HashRouter, Link } from 'react-router-dom'; import { CampaignData } from '../CampaignPage'; import { useContractCall } from '@usedapp/core'; import { Interfa...
def main(): import argparse example_doc = """\ examples: 1. Returns plots for all datasets in the original report: $ python result.py 2. Only prints results and plots for dataset 2 (for every normalization method): $ python result.py -d=2 3. Only prints results and plots for dataset 2 ...
David is speaking tomorrow and Monday at New Living Expo with an all-star lineup — including Rev. Michael Beckwith, Don Miguel Ruiz, Giorgio Tsoukalous, William Henry, Dannion Brinkley, Foster Gamble and Corey Goode. We have received major new intel updates from Pete Peterson on the Antarctic Atlantis. We had hoped to...
class Job: """Azure Quantum Job that is submitted to a given Workspace. :param workspace: Workspace instance to submit job to :type workspace: Workspace :param job_details: Job details model, contains Job ID, name and other details :type job_details: JobDetails """ def __init__...
Huge Variety of Nuclides That Arise in the LENR Processes: Attempt at Explanation LENR studies have shown a wide variety of manifestations of this phenomenon. It manifests itself in metals with hydrogen dissolved in them, in plasma, in gas discharge, in electrolysis, and even in biological systems. In addition to ener...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma once...
<reponame>zhangzhen1979/JIMU-ConvertVideo<gh_stars>1-10 package com.thinkdifferent.convertvideo.consumer; import com.thinkdifferent.convertvideo.config.RabbitMQConfig; import com.thinkdifferent.convertvideo.service.ConvertVideoService; import com.thinkdifferent.convertvideo.task.Task; import net.sf.json.JSONObject; im...
import string def solve(): alp = string.ascii_lowercase mydict = dict(zip(alp, [False] * len(alp))) s = input() + '#' prev = '#' cnt = 0 for c in s: if c != prev: if cnt % 2 == 1: mydict[prev] = True prev = c cnt = 0 ...
def _simple_phrase(self, key, quoted=True): if not type(key) == str: key = key[0] if self[key] == None: return for unquoted in ['retention', 'size', 'bytes', 'address', bacula_tools.COMMENT]: if unquoted in key.lower(): quoted = False ...
def contains_non_vegan_ingredients(ingredients_to_check): ingredients_to_check = [i.strip().lower().replace(" ", "") for i in ingredients_to_check] non_vegan_list = [i.lower().strip().replace(" ","") for i in get_non_vegan_list()] return [i for i in ingredients_to_check if i in non_vegan_list]
<filename>base/src/main/java/com/yxlg/base/util/FileUtil.java /* * FileUtil.java * * Created Date: 2016年11月15日 * * Copyright (c) Yuandian Technologies Co., Ltd. * * This software is the confidential and proprietary information of * Yuandian Technologies Co., Ltd. ("Confidential Information"). You shall no...
<gh_stars>0 use std::net::IpAddr; use std::time::SystemTime; // Poll code use std::time::Duration; use tallystick::schulze::SchulzeTally; use tallystick::schulze::Variant; use tallystick::RankedCandidate; use crate::error::ErrorKind; #[derive(Debug, PartialEq, Clone)] pub struct RankedChoiceVote { /// idx 0 is...
<reponame>ezw21/RecreationServicesMap<filename>client/jimu-ui/advanced/lib/rich-text-editor/editor/plugins/bubble.d.ts /// <reference types="react" /> /** @jsx jsx */ import { React } from 'jimu-core'; import { Sources } from '../../type'; import { PopperProps } from 'jimu-ui'; import { RichPluginInjectedProps } from '...
<reponame>HSadeghein/FlappyBird<gh_stars>1-10 #include "pch.h" #include "Helper/helper.h" #include "Application.h" namespace Immortal { Application::Application() { } Application::~Application() { Terminate(); } void Application::Run() { //Initialization Application::Initialize(); GLFWwindow* windo...
<filename>src/main/java/com/thinkgem/jeesite/modules/hotel/entity/TbRoom.java /** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.hotel.entity; import java.util.Date; import java.util.List; import java.util.Map; impo...
/** * Comparator of a map containing QuadEdge as key * and Double as value (Double comparator). * * @author Eric Grosso * */ public class DoubleComparator implements Comparator<QuadEdge> { Map<QuadEdge,Double> map; /** * Constructor. * * @param map * map containing QuadEdge and Double */ publ...
// validateInput will validate all input before run task. func (t *ListStorageTask) validateInput() { if !t.ValidateService() { panic(fmt.Errorf("Task ListStorage value Service is invalid")) } if !t.ValidateStoragerFunc() { panic(fmt.Errorf("Task ListStorage value StoragerFunc is invalid")) } if !t.ValidateZon...
<reponame>AdityaDendukuri/IsingNucleation<filename>headers/simul.h #ifndef SIMUL_H #define SIMUL_H void run_sim_nucleation(int* LATTICE, int n, float J, float F, float beta); void ones(int* LATTICE, int n); void run_sim(int* LATTICE, int n, float J, float F, float beta); void validate_free_energy(int* LATT...
/** Called when our internal view of the directory has changed. This can be * when the authorities change, networkstatuses change, the list of routerdescs * changes, or number of running routers changes. */ void router_dir_info_changed(void) { need_to_update_have_min_dir_info = 1; rend_hsdir_routers_changed(); ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bookstore.ui; import bookstore.App; import bookstore.database.Database; import bookstore.database.tables.*; import java.awt....
export type Adapters = 'angular' | 'node' | 'react' | 'svelte' | 'vue' export type OutputFormats = 'TypeScript' | 'JavaScript' export type GeneratorConfig = { $schema?: string baseLocale?: string tempPath?: string outputPath?: string outputFormat?: OutputFormats typesFileName?: string utilFileName?: string ...
<reponame>zurutech/ashpy<gh_stars>10-100 # Copyright 2020 Zuru Tech HK Limited. All Rights Reserved. # # 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...
Continuing value of the VDRL test and biological false reactions Role of the VDRL test in the detection of schedule: an explanatory comment added syphilis to the issued report should overcome any such misunderstanding. Yours faithfully, Sir, H Young* In the paper by P Diggory (Br J Vener Dis D H H Robertson* 1983;59:8...
// Bytes serializes an SVB. func (s SVB) Bytes() []byte { u := make([]uint16, s.Size()+2) u[0] = s.MainAddress u[1] = 0xffff for i, c := range s.Constants { u[i+2] = c.Value } i := uint16(len(s.Constants)) + 2 for _, sub := range s.Subroutines { for _, op := range sub.Instructions { code := (op.Opcode << ...
Secure The main focus of this framework is to be secure. Banshee is protected against common attacks like SQL injection, Cross-Site Scripting, Cross-Site Request Forgery and session hijacking. The framework takes care of authenticating users in a transparent and secure way. While many other frameworks claim to be secur...
/* Daily Recipe Table */ static abstract class DailyRecipeTable { static final String TABLE_NAME = "daily_recipe"; static final TableColumn COLUMN_ID = new TableColumn(DataType.INTEGER, "daily_recipe_id"); static final TableColumn COLUMN_YEAR = new TableColumn(DataType.INTEGER, "year"); ...
// ClearedEdges returns all edge names that were cleared in this mutation. func (m *DiscordBotMutation) ClearedEdges() []string { edges := make([]string, 0, 3) if m.clearedaccount { edges = append(edges, discordbot.EdgeAccount) } if m.clearedproject { edges = append(edges, discordbot.EdgeProject) } if m.clear...
All other candidates seen as unacceptable by half or more of Republicans PRINCETON, NJ -- Newt Gingrich (62%) and Mitt Romney (54%) are the only two candidates Republicans say would be acceptable presidential nominees from their party, emphasizing the degree to which the GOP race has narrowed down to these two men at ...
def lat_r(self): self.LOGGER("Moving laterally right")
#include <bits/stdc++.h> #define ll long long #define F first #define S second #define SI size() #define pb push_back #define R return using namespace std; ll i,m,n,sum; pair<ll,ll>p[107]; ll a[1007][1007]; void dfs(pair<ll,ll>nod) { for (ll i = 1; i <= 1000; i++) { if (a[i][nod.second] == 1) { ...
<gh_stars>100-1000 // Copyright <NAME> 2015 - 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file ../LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /// \file /// \brief definition of `sg14::fixed_point` type #if !defined(SG14_FIXED_P...
<gh_stars>0 use ::geo::{Point, Size}; pub enum Origin { Center, TopLeft, TopRight, BottomLeft, BottomRight, } enum Side { Top(f32), Bottom(f32), Left(f32), Right(f32), } struct SideCollection { top: f32, bottom: f32, left: f32, right: f32 } impl SideCollection { pub fn new(top: f32...
The Republican National Committee changed leadership Thursday and that means a change in the fandom of the new RNC chair as well. At least at the RNC offices, it means out with the Green Bay Packers and in with the Detroit Lions. With Wisconsin native – and former RNC chair Reince Preibus – headed to the White House o...
def to_string(self, history=True, screen=True, remove_blank_end=True, formatter=None): lines = [] if history: lines.extend(map(self.fixup_line, self.history)) if screen: lines.extend(map(self.fixup_line, self.main_screen)) if not lines: ret...
Sen. Mike Lee spoke at the Heritage Foundation and spoke of the steps needed to develop a conservative reform agenda that will appeal to the broader electorate. Sen. Lee crouches his proposals in “moderate” or even left-of-center terminology. In contrast, his actual policy proposals themselves are right-of-center smal...
package dnsserver import ( "net" "strings" "github.com/coredns/coredns/plugin" "github.com/miekg/dns" ) type zoneAddr struct { Zone string Port string Transport string // dns, tls or grpc IPNet *net.IPNet // if reverse zone this hold the IPNet } // String return the string representation ...
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -- | This module provides constants the module ClickHouseDriver.Core.ServerProtocol where import Data.ByteString (ByteString) import Data.Vector (Vector, fromList, (!?)) -- Name, version, revision _HELLO :: Word _HELLO = 0 :: Word -- ...
The Rise And Fall Of Sloppy We knew going into the 2017 season that the year would be one of change here at Parsimonious Racing. We took on a new co-driver in Trevor, and made the move from STS to STR. The weapon of choice was a 2008 Mazda MX-5 named "Sloppy". Sloppy's path to us was not direct. It first showed up at a...
Endogenous physical regulation of population density in the freshwater protozoan Paramecium caudatum Studies confirm physical long-range cell-cell communication, most evidently based on electromagnetic fields. Effects concern induction or inhibition of cell growth. Their natural function is unclear. With the protozoan...
/** * @version $Rev$ $Date$ */ public class StaticJndiContextPlugin implements AppClientPlugin { private final Context context; public StaticJndiContextPlugin(Map context, Kernel kernel, ClassLoader classLoader) throws NamingException { // create ReadOnlyContext for (Iterator iterator = conte...
Capacity of 1-to-K Broadcast Packet Erasure Channels with Channel Output Feedback (Full Version) This paper focuses on the 1-to-K broadcast packet erasure channel (PEC), which is a generalization of the broadcast binary erasure channel from the binary symbol to that of arbitrary finite fields GF(q) with sufficiently l...
A national team of researchers has developed a first-of-its-kind, 3D-printed guide that helps regrow both the sensory and motor functions of complex nerves after injury. The groundbreaking research has the potential to help more than 200,000 people annually who experience nerve injuries or disease. Collaborators on th...
/** * @author Rob Winch * @since 5.1 */ @SpringBootTest @AutoConfigureWebTestClient @RunWith(SpringJUnit4ClassRunner.class) public class ServerOauth2ResourceApplicationTests { @Autowired private WebTestClient rest; @Test public void getWhenValidTokenThenIsOk() { String token = "eyJhbGciOiJSUzI1NiJ9.eyJzY29wZS...
/** * Add walking event in user's calendar, notify user changes */ public void addWalkingEvent() { Log.d(TAG, "Debugger: addWalkingEvent()"); /*Cursor c0 = myDatabase.rawQuery("SELECT count(*) FROM RecordMyActivities WHERE " + "activity = 'Walking' and time < datetime('now', '-...
<filename>PrivateFrameworks/HomeKitBackingStore/HMBMirrorInput.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "HMFObject.h" #import "HMFLogging.h" @class HMBLocalSQLContextInputBlock, HMBLocalZone, HMFActivity, NSString; ...
<filename>application/src/main/java/com/sanctionco/thunder/crypto/BCryptHashService.java package com.sanctionco.thunder.crypto; import at.favre.lib.crypto.bcrypt.BCrypt; /** * Provides the BCrypt implementation for the {@link HashService}. Provides methods to hash and to * verify existing hashes match. * * @see H...
package com.axzae.homeassistant.fragment.control; import android.annotation.TargetApi; import android.app.AlertDialog; import android.app.Dialog; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.content.re...
/** * Server socket that discards incoming messages and collects avg msg/sec statistic. Used in latency experiments. * Usage: java deltix.util.net.TCPNull port */ public class TCPNull { private final ServerSocket serverSocket; private volatile long reads; private volatile long bytes; TCPNull(String...
/** * The type Collection ascii table aware. * * @param <T> the type parameter */ public class CollectionASCIITableAware<T> implements IASCIITableAware { private List<ASCIITableHeader> headers; private List<List<Object>> data; /** * Instantiates a new Collection ascii table aware. ...
Want an urban lifestyle without spending a fortune on rent? These cities — and several other mid-size metropolises — are attracting a growing number of 20-somethings who want the benefits of city living without the high rental prices that come with larger urban oases like Chicago, San Francisco, or New York City. If y...
<reponame>drinkcoffee/codewitness package tech.pegasys.poc.witnesscodeanalysis.trace.dataset8m; public class TraceTransactionResult { // "result":{"gasUsed":"0x0","output":"0x"} String gasUsed; String output; }
/// Return `true` if any of the entities matches this type condition fn matches(&self, entities: &Vec<Node>) -> bool { use TypeCondition::*; match self { Any => true, On(name) => entities.iter().any(|entity| entity.typename() == name), } }
/** * Open an object that extends Storable and has been saved to the file system. * * @param <T> return type of object to open. * @param type class type of object to open. * @param uuid the ID of the object to open. * @return the opened object if it can be found and is not locked, otherwise null. */ publi...
<filename>src/components/mwcpl-dialog/mwcpl-dialog.tsx import { Component, ComponentInterface, h, Prop, Host } from '@stencil/core'; @Component({ tag: 'mwcpl-dialog', styleUrl: 'mwcpl-dialog.scss', shadow: true, }) export class MwcplDialog implements ComponentInterface { /** * The title of the dialog. *...
package android.support.v4.view; import android.content.Context; import android.os.Parcel; import android.os.Parcelable; import android.support.v4.os.ParcelableCompat; import android.support.v4.os.ParcelableCompatCreatorCallbacks; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget...
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use {argh::FromArgs, ffx_core::ffx_command}; #[ffx_command()] #[derive(FromArgs, Debug, PartialEq)] /// Interact with the tracing subsystem #[argh(subcomm...
def prepare_data(data): data = data.copy() data = _drop_unbalanced_matches(data) _check_data(data) return data