content
stringlengths
10
4.9M
import { Component } from '@angular/core'; import { SingleStatView } from '../../../models/content'; import { AbstractViewComponent } from '../../abstract-view/abstract-view.component'; @Component({ selector: 'app-single-stat', templateUrl: './single-stat.component.html', styleUrls: ['./single-stat.component.scs...
// GetRequestTokens retrieves tokens from the request headers and/or cookies // Mobile Clients/Secure Servers: Access tokens must be provided as a Bearer token // in the "Authorization" header // Web Clients: Access tokens must be provided in the "rokwire-access-token" cookie // and CSRF tokens must be prov...
import * as data from "../../../data/loresheets"; import { zeroCost } from "../../models/character/costs"; import * as actions from "./loresheets"; const refLoresheetUid = "wulinsage"; describe("Testing loresheet action creators", () => { it("should create an open action", () => { const lsUid = data.getLoreshee...
Neuromyelitis Optica: An Antibody-Mediated Disorder of the Central Nervous System Neuromyelitis optica (NMO) is a recurrent inflammatory disease that preferentially targets the optic nerves and spinal cord leading to blindness and paralysis. The hallmarks of NMO include bilateral optic neuritis and longitudinally exte...
class TriAnalyzer: """ Define basic tools for triangular mesh analysis and improvement. A TriAnalyzer encapsulates a `.Triangulation` object and provides basic tools for mesh analysis and mesh improvement. Attributes ---------- scale_factors Parameters ---------- ...
def fetch_from_url(obj, url): plugins_cache_dir = obj["plugins_cache_dir"] force = obj["force"] _fetch_plugin_and_store_in_cache(url, plugins_cache_dir, force)
This is the second post in a group of tutorials on deploying Clojure applications on various cloud platforms. All posts in the series: Part 1: Google App Engine Part 2: Heroku All posts in the series: Heroku is a PaaS provider that supports multiple languages, including Clojure. Therefore, deploying a Clojure applica...
/** * The default {@link CacheKeyInvocationContext} implementation. * * @author Stephane Nicoll * @since 4.1 * @param <A> the annotation type */ class DefaultCacheKeyInvocationContext<A extends Annotation> extends DefaultCacheInvocationContext<A> implements CacheKeyInvocationContext<A> { private final CacheIn...
<reponame>maniaclee/kver<filename>src/main/java/maniac/lee/kver/Config.java package maniac.lee.kver; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.retry.RetryNTimes; import org.apache.zookeeper.CreateMode; import org.apache....
from modules import import_data as id from configparser import ConfigParser import os import sys from datetime import datetime from apscheduler.schedulers.background import BackgroundScheduler class ImportSettings(): """ Class which create file dev_import necessary to import data. Inside the file we have ...
from scipy.special import softmax from memreps import memreps from memreps import explicit def test_experts(): summaries = [ {'∈': 0.4, '∉': 0.6}, {'≺': 0.3, '≻': 0.4, '=': 0.1, '||': 1} ] hist = { '∈': {'∈': 3, '∉': 4}, '≺': {'≺': 2, '≻': 3, '=': 7, '||': 0}, } advi...
/* Here to allow other parts of the shell (like the trap stuff) to freeze and unfreeze the jobs list. */ int freeze_jobs_list () { int o; o = jobs_list_frozen; jobs_list_frozen = 1; return o; }
# coding=utf-8 import ConfigParser import unittest import telegram import telegram_commands.cric as cric class TestCric(unittest.TestCase): def test_cric(self): keyConfig = ConfigParser.ConfigParser() keyConfig.read(["keys.ini", "..\keys.ini"]) bot = telegram.Telegram.Bot(keyConfig.get('T...
def obtain_attrs(self): if not self.all_attrs: all_attrs = list(self.private_data.columns) try: all_attrs.remove(self.config['identifier']) except: pass self.all_attrs = all_attrs return self.all_attrs
// given values for a day, month and year, return if they represent a valid date public static boolean validateDateValues(String rawDay, String rawMonth, String rawYear) { try { int day = Integer.parseInt(rawDay); int month = Integer.parseInt(rawMonth) - 1; int year = Integer...
Gene-Targeted Deletion of Neurofibromin Enhances the Expression of a Transient Outward K+ Current in Schwann Cells: A Protein Kinase A-Mediated Mechanism Mutations in the neurofibromatosis type 1 gene predispose patients to develop benign peripheral nerve tumors (neurofibromas) containing Schwann cells (SCs). SCs from...
<filename>helper/helper.py import re import os, sys import json import csv import shutil import ctypes import logging import datetime import fileinput import subprocess import xml.etree.ElementTree as etree DEFAULT_HELPER_PATH = "helper" class Logger(object): def __init__(self): """Init me...
Human milk feeding protects very low-birth-weight infants from retinopathy of prematurity: a pre–post cohort analysis Abstract Objectives: To examine the effect of early human milk (HM) feeding on the incidence of retinopathy of prematurity (ROP) among very low-birth-weight (VLBW) infants. Methods: Observational cohor...
def sync_results_to_new_location(self, worker_ip): if worker_ip != self._log_syncer.worker_ip: logger.info("Syncing (blocking) results to {}".format(worker_ip)) self._log_syncer.reset() self._log_syncer.set_worker_ip(worker_ip) self._log_syncer.sync_up() ...
<gh_stars>0 package qj import ( "github.com/garyburd/redigo/redis" "log" "net/url" "os" "strings" "time" ) type settings struct { namespace string Pool *redis.Pool } var Settings *settings var managers = make(map[string]*manager) var Logger = log.New(os.Stdout, "=> ", log.Ldate|log.Lmicroseconds) func ...
#include<bits/stdc++.h> using namespace std; #define MAXSIZE 1000000 #define DIV 1000000007 long long frac[MAXSIZE]; long long inv[MAXSIZE]; long long mypow(long long x, long long n){ long long ret=1,p,l=1,p2=1; p=x; while(1){ if(n&p2) ret*=p; p*=p; ret%=DIV; p%=DIV; ...
Pitch-catch UGW-based multiple damage inference: a heterogeneous graph interpretation Ultrasonic guided waves (UGWs) have been extensively utilized in nondestructive testing and structural health monitoring (SHM) for detection and real-time monitoring of structural defects. By implementing multiple piezoelectric senso...
<filename>dm/dm.py # -*- encoding: utf-8 -*- import discord from discord.ext import commands from .utils import checks class Annoying: """Adds usefull custom crap""" def __init__(self, bot): self.bot = bot @commands.command(pass_context=True) @checks.serverowner_or_permissions(administrator=True) async def ...
import { DataFactory, Store } from 'n3'; import type { AccessCheckerArgs } from '../../../../src/authorization/access/AccessChecker'; import { AgentGroupAccessChecker } from '../../../../src/authorization/access/AgentGroupAccessChecker'; import { BasicRepresentation } from '../../../../src/http/representation/BasicRepr...
There is speculation that ace director Woody Allen has reportedly fired Bruce Willis from his new multi-starrer, yet-untitled movie, according to a report. Willis was the first actor chosen by Allen to cast in the film, which also stars Blake Lively, Parker Posey, Kristen Stewart, Jesse Eisenberg, Jeannie Berlin, Core...
import os import pandas as pd from base import BaseFeature from encoding_func import target_encoding from google.cloud import storage, bigquery from google.cloud import bigquery_storage_v1beta1 class CountEncodingPresentDomains(BaseFeature): def import_columns(self): return [ "tweet_id", ...
//+----------------------------------------------------------------------------- // // CDXTRadialWipeBase::_ScanlineIntervals // // A helper method that calculates the transition boundaries between the // two image regions on a scanline. Based on the type of transform, the scanline // consists of a series of alt...
<gh_stars>0 import IMongooseModel from './IMongooseModel'; import { IHttpActionModel } from '../../model/interfaces/IHttpActionModel'; export interface IHttpActionSchemaMongooseModel extends IMongooseModel, IHttpActionModel { }
def adjust_gain(self, gain): if self.signal is not None: return self.signal.adjust_gain(gain) return None
/** * enumeration of possible federate states */ public final class helics_federate_state { /** * when created the federate is in startup state */ public final static helics_federate_state helics_state_startup = new helics_federate_state("helics_state_startup", helicsJNI.helics_state_startup_get()); /**...
// BootstrapNetwork with HTTP p2p functionality func BootstrapNetwork(logger logrus.FieldLogger, genesisURL strfmt.URI, publicURL strfmt.URI, peerName string) (libnetwork.Network, error) { if genesisURL == "" { return nil, fmt.Errorf("No genesis URL provided in network configuration") } genesisURI, err := url.Pars...
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
<gh_stars>0 from sls.completion.item import CompletionItem from sls.document import Position, Range, TextEdit from sls.spec import CompletionItemKind, MarkupKind from .action import Action from .command import Command class Service(CompletionItem): """ An individual service """ def __init__(self, nam...
// Start starts running the subscription. It can be stopped with context cancellation. func (w *PostgresWatcher) Start(ctx context.Context) error { w.log.Debug("Starting Watch") isInRecovery, err := w.conn.IsInRecovery(ctx) if isInRecovery { return markTemporaryError(errors.New("database is in recovery mode")) } ...
<filename>handler/service.go package handler import ( "context" "encoding/json" "github.com/paulvasilenko/nats-http-adapter/nats" "github.com/pkg/errors" ) type Service struct { NATS nats.Conn } type NATSMessage struct { Subject string `json:"subject"` Type string `json:"type"` Data ...
Reproducibility and variability of digital thermal monitoring of vascular reactivity Background:  Previous studies demonstrated that digital thermal monitoring (DTM) of vascular reactivity, a new test for vascular function assessment, is well correlated with Framingham Risk Score, coronary calcium score and CT angiogr...
package models import "errors" var ( // ErrMissCache ... ErrMissCache = errors.New("cache not found") // ErrCache ... ErrCache = errors.New("cache error") )
def main(args): print("The observation tutorial will show you the various observation configurations available.") background_name = background_names[1] demo = args.load_demo = input('Input path to demo file, such as demos/Sawyer_7.pkl: ') if demo == '': demo = args.load_demo = 'demos/Sawyer_7.pk...
import os import sys import tempfile import unittest from subprocess import Popen, PIPE PATH_TO_JQ = os.getenv('PATH_TO_JQ', './jq/jq') class jv_parser_test(unittest.TestCase): def setUp(self): if not os.path.isfile(PATH_TO_JQ): msg = """ jq binary not found at '%s'. ...
There are not many people who can say they have been a Chelsea fan for a century but that is exactly what Doris Wilkinson is. The feisty lady turned 100-years-old on Tuesday (11) as she celebrated at a party with friends at the Chiswick Nursing Centre in Ravenscourt Gardens. Having lived all her life in Fulham, she r...
N, K=input().split() hp=input().split() j = sorted([int(x) for x in hp]) print(sum([j[x] for x in range(int(N) - int(K))])) if int(K) < int(N) else print(0)
""" """ import sys from sys import stdin tt = int(stdin.readline()) ansl = [] for loop in range(tt): n,q = map(int,stdin.readline().split()) s = stdin.readline()[:-1] for i in range(q): l,r = map(int,stdin.readline().split()) l -= 1 r -= 1 ans =...
<reponame>AlejandroSantorum/AUTLEN_Assignments #ifndef AFND_H #define AFND_H #include <stdio.h> #define INICIAL 0 #define FINAL 1 #define INICIAL_Y_FINAL 2 #define NORMAL 3 typedef struct _AFND AFND; AFND * AFNDNuevo(char * nombre, int num_estados, int num_simbolos); void AFNDElimina(AFND * p_afnd); void AFNDImpri...
<gh_stars>100-1000 import env from 'react-native-config'; import { Platform } from 'react-native'; import getAppVersion from '../../helpers/getAppVersion'; interface ReportIssueProps { email: string; name: string; body: string; } const OS_FIELD_KEY = '360033622032'; const OS_VERSION_FIELD_KEY = '360033618552'; ...
from django.urls import path from . import views app_name = "incidents" urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('<int:pk>/', views.IncidentView.as_view(), name='incident'), path('<int:pk>/update/', views.UpdateIncidentView.as_view(), name='update_incident'), path('<int:i...
The punitive California Air Resources Board (CARB) has figured out how Audi cheated on a particular run of “several hundred thousand” of their cars, according to a new report by the German newspaper BILD am Sonntag. This time we Americans have discovered a trick in the car’s software that relates to the steering wheel....
<commit_msg>Fix up rust example for 1.0 <commit_before>pub fn max_array(x: &mut[int, ..65536], y: &[int, ..65536]) { for i in range(0u, 65536) { if y[i] > x[i] { x[i] = y[i]; } } } <commit_after>pub fn max_array(x: &mut[i32; 65536], y: &[i32; 65536]) { for i in (0..65536) { if y[i] > x[i] { ...
/** * World is extensible in dynamic. * use this class, if want world generate system like minecraft. */ class World : public IWorld { public: using Instance = std::shared_ptr<World>; using Reference = std::weak_ptr<World>; static Instance create(ofShader& shader, int worldYSize); void computeBrightness(); int ...
/// Builds a context for creating, or building, the installer. pub fn build(&mut self) -> Execution { Execution { bin_path: self.bin_path.map(PathBuf::from), capture_output: self.capture_output, compiler_args: self .compiler_args .as_ref() ...
// Copyright (c) 2018-2020 MobileCoin Inc. //! Define DiscoveryHint buffer size, and serialization defs for it //! Also define `fake_onetime_hint` which samples the distribution that //! should be used for these hints when there is no discovery server. //! //! Note: Using generic array because rust has poor support fo...
import { createStyles } from "@material-ui/styles"; import Theme from "../../Theme"; const iconContainerSize = 200; const Styles = createStyles({ container: { position: "fixed", top: 0, right: 0, bottom: 0, left: 0, background: Theme.palette.background.default, }...
Evaluating the Robustness of Publish/Subscribe Systems In recent years, publish/subscribe (pub/sub) systems have evolved as serious candidates for the implementation of multicast communication. However, to date they have not been properly analysed with respect to the critical dimension of robustness. Indeed, the robus...
Multilevel Fast Multipole Acceleration for Fast ISAR Imaging based on Compressive Sensing In this paper, compressive sensing (CS) is introduced into an efficient numerical method multilevel fast multipole acceleration (MLFMA) for the electromagnetic scattering problem over a wide incident angle. The resulted data from...
def IgnoreMask(self): return self._get_attribute('ignoreMask')
<reponame>xzyJohn/blog_backend package com.blog.modules.system.service; import com.blog.modules.system.entity.Permission; import com.blog.modules.base.service.MyService; /** * * @Description: * @author zeyi * @since 2020-06-12 */ public interface PermissionService extends MyService<Permission> { }
import * as types from './types'; export const INITIAL_STATE: types.GasState = { estimates: null, isEstimating: false }; function fetchGasEstimates(state: types.GasState): types.GasState { return { ...state, isEstimating: true }; } function setGasEstimates( state: types.GasState, action: types.Se...
Design and properties of a sensor network embedded in thin fiber-reinforced composites So far, embedded sensor networks in composites have mostly been used for structure health monitoring. In contrast to that, in the present work a new stand-alone embedded sensor network for load monitoring of a composite component is...
import pytest from django.core.management import call_command @pytest.fixture() def tag(factory): return factory.tag() @pytest.fixture() def tags(factory): return factory.tags() @pytest.fixture() def create_tags_command_exec(): return call_command('create_tags')
<reponame>nkmakes/playgroundexpress_tft /************************************************************************** This is a test file for adafruit playground express accel and tft Displays a ball on the screen that moves depending on accel values Written by <EMAIL> *******************************************...
def select(self, token): return token['SUBTOKENS'][self._start:self._end]
<gh_stars>1-10 {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE FlexibleInstances #-} module Insert.Venues ( insertMissingVenues ) where import Database -- import qualified Schema.Currency as Currency import qualified Schema.Venue as Venue import Database.Beam import qualified Data...
<reponame>KennethDorji/CaesarCipher /* * 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 swing; import java.util.Scanner; import java.util.Random; /** * * @author juice */ ...
Factor Analysis of Service Expectation of Farmer Producer Organization from Agribusiness Incubator This paper aimed to study the service expectation of Farmer Producer Organization from the Agribusiness incubator. The study was carried out with 60 FPO’s in Tamil Nadu. The data was collected through survey method using...
Distribution of the Iowan Brood of Periodical Cicadas (Homoptera: Cicadidae: Magicicada spp.) in Illinois Abstract The distribution of the Iowan Brood of periodical cicadas in Illinois was determined in 1997 using a global positioning system receiver and mapping software. The area contained within the distribution der...
Association between tau H2 haplotype and age at onset in frontotemporal dementia. BACKGROUND The frontotemporal dementia (FTD) syndromes have been associated with the microtubule-associated tau protein since tau gene mutations have been demonstrated to be the cause of FTD and parkinsonism linked to chromosome 17. In c...
#pragma once #include "G4VUserActionInitialization.hh" #include <map> #include <string> class ActionInitialization : public G4VUserActionInitialization { public: explicit ActionInitialization(const std::string& mode); void BuildForMaster() const override; void Build() const override; using RunActi...
/* Class107_Sub1 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ final class Class107_Sub1 extends Class107 { private int[] anIntArray5086; private byte[][] aByteArrayArray5087; private int[] anIntArray5088; private int[] anIntArray5089; private int[] anIntArray5090; private Class163_Sub1 aClass16...
Laine, who will play for Team Finland at the tournament, had knee surgery following the NHL Scouting Combine in June. He signed a three-year, entry-level contract on July 3. Winnipeg Jets forward prospect Patrik Laine, selected No. 2 in the 2016 NHL Draft, has been training daily in preparation for the World Cup of Ho...
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; import java.util.TimeZone; public class a{ public static long getQuot(String time1, String time2){ long quot = 0; SimpleDateFormat ft = new SimpleDateFormat("yyyy:MM:dd"); ft.setTimeZon...
. Vitamin D2 (160 000-240 000 IU/kg) produced during 5 days pronounced hypercalciemia and metastatic calcification of internal organs. Subcutaneous injection of sodium selenite (10 mg/kg) brought down the level of calcium in the blood plasma and decreased calcification of internal organs. Conjoint introduction of sodi...
<gh_stars>1000+ import fs from "fs/promises"; import path from "path"; import { TransformStream } from "stream/web"; import { setImmediate, setTimeout } from "timers/promises"; import { useTmp } from "@miniflare/shared-test"; import { Watcher } from "@miniflare/watcher"; import anyTest, { ExecutionContext, Macro } from...
/******************************************************************************* * build_bin_img * create image in binary format and write it into output stream * INPUT: * opt user options * buf_in mmapped input file * OUTPUT: * none * RETURN: * 0 on s...
def runner( play_file_path: Union[Lintable, str], default_rules_collection: RulesCollection ) -> Runner: return Runner(play_file_path, rules=default_rules_collection)
// Package filters contains implementations of unilog filters. package filters
<filename>cmd/ls.go package cmd import ( "github.com/applinh/elephant/commands" "github.com/spf13/cobra" ) var listCmd = &cobra.Command{ Use: "ls", Short: "List all running stacks", Long: `List all running stacks`, Run: func(cmd *cobra.Command, args []string) { commands.List(db) }, } func init() { root...
Yes-Associated Protein Promotes Angiogenesis via Signal Transducer and Activator of Transcription 3 in Endothelial Cells Rationale: Angiogenesis is a complex process regulating endothelial cell (EC) functions. Emerging lines of evidence support that YAP (Yes-associated protein) plays an important role in regulating th...
/** * read a word from file * * @return the word we read * @throws IOException */ public String readWord() throws IOException { StringBuffer s = new StringBuffer(); char c; skipSpaces(); while (!Character.isWhitespace(c = get()) && !eol() && !eof()) { ...
/** * description: itext api client * * @author zhouxinlei */ @Slf4j public class ITextClient { public float top = 785; /** * 总宽度 */ public float totalWidth = 550; /** * 左边空白宽度 */ public float left = 55; /** * 当前左边距,随着文本的追加而增长 */ public float currLeft = 55...
/* * Predicate returning @c true if this SedSurface's "xDataReference" attribute * is set. */ bool SedSurface::isSetXDataReference() const { return (mXDataReference.empty() == false); }
Use of the resuscitation room for trauma. This study was designed to assess the use of the resuscitation room for trauma cases, the information being used to identify particular problem areas and put forward possible solutions. One hundred and fifty consecutive resuscitation room trauma patients were studied prospecti...
/* break an abstraction and copy some code for performance purposes */ static int local_book_besterror(codebook *book,float *a){ int dim=book->dim,i,k,o; int best=0; encode_aux_threshmatch *tt=book->c->thresh_tree; for(k=0,o=dim;k<dim;++k){ float val=a[--o]; i=tt->threshvals>>1; if(val<tt->quantthre...
mat=[[1,2,3,4,5,6,7,8,9], [2,4,6,8,0,2,4,6,8,0], [3,6,9,2,5,8,1,4,7,0], [4,8,2,6,0,4,8,2,6,0], [5,0,5,0,5,0,5,0,5,0], [6,2,8,4,0,6,2,8,4,0], [7,4,1,8,5,2,9,6,3,0], [8,6,4,2,0,8,6,4,2,0], [9,8,7,6,5,4,3,2,1,0]] k,r=map(int,input().split()) k=k%10 if(k==0): print(1)...
/** * Remove already registered values for the specified HTTP parameter, if any. * * @param sName * Parameter name * @return this */ @Nonnull public MockHttpServletRequest removeParameter (@Nonnull final String sName) { ValueEnforcer.notNull (sName, "Name"); m_aParameters.remove (sN...
/** * Set the state of the app to editing * the feature on the map. */ public void editOnMap(){ ArbiterState.getArbiterState().editingFeature(feature, layerId); mapListener.getMapChangeHelper().setEditMode(GeometryEditor.Mode.EDIT); dismiss(); }
export * from './Main'; export * from './NewDocument' export * from './PdfViewer' export * from './Products'
/* Copyright 2021 Telstra Open Source * * 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 la...
#include <QtGui/QApplication> #include "GUI/windowcontroller.h" #include "GuiServices/AccessControl.h" #include "GuiServices/PatientData.h" #include <iostream> using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv); AccessControl *ac = new AccessControl(); PatientData *pd = n...
/** * @author Rudenko, Latushkin * @created 24/09/2021 * @project Task24_09 */ public class Task24_09 { public static void main(String[] args) { Integer[] arrayOfInts = new Integer[6]; for (int i = 0; i < arrayOfInts.length; i++) { // генерация рандомных чисел от -15 до 15 arrayOfIn...
import networkx as nx import uuid from clang.cindex import CursorKind, TokenKind def is_namespace(node): if node.kind in [CursorKind.NAMESPACE]: return True return False def is_function(node): if node.kind in [CursorKind.FUNCTION_DECL, CursorKind.FUNCTION_TEMPLATE, ...
words, time = [int(i) for i in input().split()] seconds = [int(i) for i in input().split()] wordsOnDispl = 1 for i in range(1, words): if seconds[i]-seconds[i-1] <= time: # Same as b-a <= time wordsOnDispl += 1 else: wordsOnDispl = 0 wordsOnDispl += 1 print(wordsOnDispl)
Gold has been discovered in an Irish county and we want some of it Patience is a virtue. If you have a friend that always told you that there's good land in Monaghan then they've just been proven right. After years of soil sampling, trenching and core drilling the company Conroy Gold have finally struck a gold-in-so...
<reponame>VirtEngine/whmcs_go /* ** Copyright [2013-2016] [Megam Systems] ** ** 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 req...
/** * Tests shutting down the proxy. */ @Test @DisplayName("Tests shutting down the proxy.") void testShutdown() { JobExecution jobExecution = new JobExecution(); actionProxy.shutdown(jobExecution); verify(actionMock, times(1)).shutdown(jobExecution); }
def symmetryTable(self): fullPathName = self.fullPathName() if not mc.attributeQuery('symmetryTable', node=fullPathName, exists=True): mc.addAttr(fullPathName, longName='symmetryTable', dataType="string") mc.setAttr('%s.symmetryTable' % fullPathName, '{}', type="string") ...
<reponame>ruanmirandac/Python #Exercício Python 008: Escreva um programa que leia um valor em metros # e o exiba convertido em centímetros e milímetros. print(5*'=','VAMOS CONVERTER AS UNIDADES MÉTRICAS',5*'=') metro = float(input('Qual valor em metros? ')) dc = metro * 10 cm = metro * 100 mm = metro * 1000 print(f...
<gh_stars>1-10 """ ===================================== Plot the support vectors in LinearSVC ===================================== Unlike SVC (based on LIBSVM), LinearSVC (based on LIBLINEAR) does not provide the support vectors. This example demonstrates how to obtain the support vectors in LinearSVC. """ import ...
<filename>src/main/java/io/github/talelin/latticy/common/util/IpParseUtil.java package io.github.talelin.latticy.common.util; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import lombok.extern.slf4j.Slf4j; import org.lionsoul.ip2region.DataBlock; import org.lionsoul.ip2region.DbConfig; import org.lionsoul....
''' Non-parametric computation of entropy and mutual-information Adapted by G Varoquaux for code created by R Brette, itself from several papers (see in the code). These computations rely on nearest-neighbor statistics ''' import numpy as np from scipy.special import gamma,psi from scipy import ndimage from scipy.li...
// Clone the store with a cloned session func (mong *MongoStore) Clone() Store { nStore := NewMongoStore(mong.Server, mong.Database) nStore.Session = mong.Session.Clone() return nStore }
package com.example.myfavoritemovies.model; import androidx.annotation.NonNull; import androidx.databinding.BaseObservable; import androidx.databinding.Bindable; import androidx.databinding.library.baseAdapters.BR; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.Ignore; import androi...