content
stringlengths
10
4.9M
def _transform(self, mixture_specs, targets_specs_list): input_spectra = ( np.abs(mixture_specs) if np.iscomplexobj(mixture_specs) else mixture_specs ) if self.apply_log: input_spectra = np.log(np.maximum(input_spectra, EPSILON)) if self.mvn_dict: inpu...
/** * Manipulates the map once available. * This callback is triggered when the map is ready to be used. * This is where we can add markers or lines, add listeners or move the camera. In this case, * we just add a marker near Sydney, Australia. * If Google Play services is not installed on the ...
def mkdir(dir: str): os.makedirs(dir, mode=0o777, exist_ok=True)
import math as m class Tessellation(object): def __init__(self, type, xsize, ysize, zsize): self.type = type self.xsize = xsize self.ysize = ysize self.zsize = zsize def create_base_grid(self): return base_grid def base_brep(self): pass def get_ve...
<gh_stars>100-1000 export * from "./mockData"; export * from "./mockHttpClient"; export * from "./user";
<gh_stars>1-10 // Copyright (c) 2021 Terminus, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
Counselling: how should it be defined and evaluated? Counselling is becoming an increasingly popular approach among nurses working with people with mental health problems. This paper explores some basic questions about counselling. What is it? How does it differ from other conversations and from psychotherapy? Does it...
<gh_stars>1-10 //------------------------------------------------------------------------------ // Copyright (c) 2016 by contributors. 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 o...
// HistorySetMaxlen sets the maximum length for the history. // Truncate the current history if needed. func (l *Linenoise) HistorySetMaxlen(n int) { if n < 0 { return } l.historyMaxlen = n currentLength := len(l.history) if currentLength > l.historyMaxlen { l.history = l.history[currentLength-l.historyMaxlen:...
The Reagan Revolution: That works until the 1980s. Then our debt dynamics changed. What happens to change it? In 1980 we elect Ronald Reagan, the first of our non-depression peacetime deficit presidents. When Reagan was governor of California from 1966 to 1974, he was very much a balanced budget governor: he thought ...
#include <stdio.h> int main() { int n,m,a,mxh,mih,yoko[1001][3]; int i,t,e; for(scanf("%d%d%d",&n,&m,&a); n || m || a;scanf("%d%d%d",&n,&m,&a)) { mxh=0,mih=1000; for(i=1;i<=m;i++) { scanf("%d%d%d",&yoko[i][0],&yoko[i][1],&yoko[i][2]); if(yoko[i][0]>mxh)mxh=yoko[i][0]; if(yoko[i][0]<mih)mih=yoko...
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module Luna.Prim.DynamicLinker ( loadLibrary , loadSymbol , closeLibrary , Handle ) where import Prologue hiding (throwM) import qualified Data.EitherR as EitherR import qualified Data.List as Lis...
<reponame>itsvinayak/cracking_the_codeing_interview # Write a method to replace all spaces in a string with '%20'. You may assume that the string # has sufficient space at the end to hold the additional characters, and that you are given the "true" # length of the string. (Note: If implementing in Java, please use a ...
<filename>daemon/src/scope.rs<gh_stars>0 use futures_core::future::{Future, BoxFuture}; use futures_util::future::FutureExt; use futures_util::stream::{Stream, FuturesUnordered}; use pin_project::{pin_project, pinned_drop}; use std::marker::PhantomData; use std::pin::Pin; use std::task::{Context, Poll}; use tokio::task...
// CreateLoadBalancer creates loadbalancer by conf. func (a *ALBClient) CreateLoadBalancer(albConf *ALB) (*ALB, error) { var alb ALBArr alb.Loadbalancer = *albConf url := generateELBRoutePrefix(a.enableEPS, a.albClient.TenantId) + "/loadbalancers" req := NewRequest(http.MethodPost, url, nil, &alb) resp, err := DoR...
<filename>src/common/components/multiSelectCombobox/MultiSelectCombobox.tsx import { useTranslation } from "next-i18next"; import { MultiSelectProps } from "hds-react"; import { Option } from "../../../types"; import Combobox from "../combobox/Combobox"; type Props = Omit< MultiSelectProps<Option>, | "value" | ...
class ProcessContextOptions: """ Used to store process context data. Parameter Fields ---------------- request: Request The request that is the cause of the process loop. log: An acquisition log object The acquisition log model object related to this submission. Attribu...
<filename>Baekjoon/Cpp/14648.cpp #include <bits/stdc++.h> typedef long long ll; using namespace std; ll arr[1001]; ll sm(ll s, ll e) { ll su = 0; for (ll i = s; i <= e; i++) { su += arr[i]; } return su; } int main() { ios::sync_with_stdio(0); cin.tie(0); ll n, q, i, k, a, b, c, ...
/* SoftSerialParallelWrite.cpp - Library for parallel serial communication SoftSerialParallelWrite code. Created by <NAME>, 2018. Inspired by https://www.arduino.cc/en/Reference/SoftwareSerial */ // When set, _DEBUG co-opts pins 12 and 13 for debugging with an // oscilloscope or logic analyzer. Beware: it als...
package com.hashmapinc.tempus.WitsmlObjects.v20; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * Location of the well by latitude and longitude. * * <p>Java class for ...
// diffIDWithOpts compuates the digest of the Uncompressed layer content func (rl *RawLayer) diffIDWithOpts(opts ...LayerOperationOption) (regv1.Hash, error) { o := makeLayerOperationOpts(opts...) hasher := sha256.New() if o.Progress != nil { desc, err := rl.Descriptor() if err != nil { return regv1.Hash{}, e...
Mutations in Host Cell Factor 1 Separate Its Role in Cell Proliferation from Recruitment of VP16 and LZIP ABSTRACT Host cell factor 1 (HCF-1) is a nuclear protein required for progression through G1 phase of the cell cycle and, via its association with VP16, transcriptional activation of the herpes simplex virus immed...
/** * Encapsulates an input request. * * @since Ant 1.5 */ public class MultipleChoiceInputRequest extends InputRequest { private final LinkedHashSet<String> choices; /** * @param prompt The prompt to show to the user. Must not be null. * @param choices holds all input values that are allowed. ...
// ClearedFields returns all nullable fields that were cleared during this // mutation. func (m *ChunkMutation) ClearedFields() []string { var fields []string if m.FieldCleared(chunk.FieldLeaseExpiresAt) { fields = append(fields, chunk.FieldLeaseExpiresAt) } if m.FieldCleared(chunk.FieldSizeInput) { fields = ap...
Open source software maintenance process framework To identify the Open Source maintenance process two well known Open Source projects Apache HTTP server and Mozilla web browser were studied. The Open Source software maintenance process is formal even anyone can submit modifications or defect reports to Open Source so...
<filename>com.sabre.tn.redapp.example.workflow/web-src/com-sabre-tn-redapp-example-showcase-mod/src/code/views/cmdHelperForm/CmdHelperButton.ts import {CssClass} from 'sabre-ngv-core/decorators/classes/view/CssClass'; import {Initial} from 'sabre-ngv-core/decorators/classes/Initial'; import AbstractBootstrapPopoverBut...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import os from ...asn1crypto.pem import unarmor from ...asn1crypto.x509 import TrustedCertificate, Certificate from .._errors import pretty_message __all__ = [ 'extract_from_system', 'system_path', ] def sy...
<reponame>vanadium/core // Copyright 2015 The Vanadium Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package security import ( "fmt" "time" "v.io/v23/naming" "v.io/v23/vdl" ) // NewCall creates a Call. func NewCall(params *C...
/* Union returns a new set with elements from the set and the other set. */ func (s *Set) Union(other SetInterface) (SetInterface, error) { output, err := s.Copy() if err != nil { return nil, err } output.Combine(other) return output, nil }
/* * The Clear BSD License * Copyright 2016-2017 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source code m...
<filename>src/input.c #include "Hosebase/input.h" #include "Hosebase/os.h" #define INPUT_TEXT_SIZE 20 typedef struct { b8 any; InputState keys[Key_MaxEnum]; InputState mouse_buttons[MouseButton_MaxEnum]; char text[INPUT_TEXT_SIZE]; TextCommand text_commands[INPUT_TEXT_SIZE]; u32 text_command_count; v2 mous...
#include<stdio.h> int steviloDni(int mesec, int leto){ if(mesec == 4 || mesec == 6 || mesec == 9 || mesec == 11) { return 30; } else if(mesec == 2) { if((leto % 4 == 0 && leto % 100 != 0) || (leto % 100 == 0 && leto % 400 == 0)) { return 29; } return 28; } return 31; } int main() { int i,j,x,dnevi...
def invoke_server(self, request, _context): message = request.msg result = f'Sample server has started and received message {message} from client' result = { "msg":result, "rcvd":True, } return pb2.FetchResponse(**result)
"""Test coils.""" from mpf.platforms.interfaces.driver_platform_interface import PulseSettings, HoldSettings from mpf.tests.MpfTestCase import MpfTestCase from unittest.mock import MagicMock class TestDeviceDriver(MpfTestCase): def get_config_file(self): return 'config.yaml' def get_machine_path(se...
<gh_stars>100-1000 from collections import OrderedDict import torch import torch.nn as nn from .bn import ABN class DenseModule(nn.Module): def __init__(self, in_chns, squeeze_ratio, out_chns, n_layers, dilate_sec=(1, 2, 4, 8, 16), norm_act=ABN): super(DenseModule, self).__init__() self.n_layers...
Comment on R.T. Cook's Review of If A, Then B: How the World Discovered Logic PrefaceIntroduction: What Is Logic?1. The Dawn of Logic2. Aristotle: Greatest of the Greek Logicians3. Aristotle's System: The Logic of Classification4. Chrysippus and the Stoics: A World of Interlocking Structures5. Logic Versus Antilogic: ...
<gh_stars>100-1000 import * as React from 'react'; import { BaseIconProps, iconDefaultProps } from '../../utils/types'; const IconUserRoundWarning: React.FC<BaseIconProps> = ({ size, fill, ...props }) => ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}> <path d="M15.767 10.5a5.2...
package customersvc import ( "context" "github.com/go-kit/kit/endpoint" "github.com/google/uuid" ) // Endpoints are the actions we would like to offer to the outside world. // Because we implement a RESTful API on top of a CRUD service, our endpoints // look similar to our service. This does not always need to be...
package com.imademethink_webautomation.UtilGeneral; import java.awt.Image; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.awt.image.PixelGrabber; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.security.SecureRandom; im...
from fastapi import Depends, Response from fastapi.routing import APIRouter from pydantic import BaseModel # pylint: disable=E0611 from sqlmodel import Session, select from starlette.responses import JSONResponse from fastapi_server.database.database import get_session from fastapi_server.models.user import User log...
I loved my Grandpa Jack. He smoked. He drank. He enjoyed his coffee. And….he was perhaps the best Mormon I have ever known. He didn’t go to church. I never really had any long conversation with him. But, I knew the stories. He was a man’s man. Hardworking and generous. Today, I had a conversation with a Facebook frien...
import React from 'react'; import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; import mountTest from '../../../tests/mountTest'; import componentConfigTest from '../../../tests/componentConfigTest'; import Comment from '..'; import Avatar from '../../Avatar'; import Button from '../../Button'; ...
import numpy as np H,W = map(int,input().split()) N = int(input()) lsa = list(map(int,input().split())) ls2 = [] for i in range(N): ls2 += [i+1]*lsa[i] arr = np.array(ls2) arr = arr.reshape(H,W).tolist() arr2 = [] for i in range(H): if i % 2 == 0: arr2.append(arr[i]) else: arr[i].reverse() ...
package com.revature.controllers; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import java.util.Ar...
<reponame>ricardoekm/SandDance // Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the...
<filename>src/main/java/de/uni_leipzig/digital_text_forensics/preprocessing/DBLPXMLConstants.java package de.uni_leipzig.digital_text_forensics.preprocessing; public class DBLPXMLConstants { public static final String ARTICLE = "article"; public static final String AUTHOR = "author"; public static final St...
import os import numpy as np import sys import vtk import utils import label_io class Geometry(object): def __init__(self, vtk_poly, edge_size=1.): self.poly = vtk_poly self.edge_size = edge_size def getVolume(self): return utils.getPolydataVolume(self.poly) def writeSurfaceMesh(se...
<reponame>icedevml/webcrypto-rsa-login from flask import Flask, render_template from redis import Redis from redis_session import RedisSessionInterface from cryptoauth_blueprint import signature_login_poc class PublicKeyStorage: def __init__(self, redis): self.redis = redis def fetch_user_pem(self, ...
This week, Drs. Thomas Frieden and Anthony Fauci, director of the Centers for Disease Control and Prevention and director of the National Institute of Infectious Diseases respectively, doubled down on their propaganda, illogic and misrepresentations regarding the procedures for handling the Ebola virus and the dynamics...
/** * * @author Valdiney V GOMES */ @Service public class JobBuildGraphService { private final JobBuildRepository jobBuildRepository; private final AuditorService auditorService; @Autowired public JobBuildGraphService(JobBuildRepository jobBuildRepository, AuditorService auditorService) { t...
The National Hockey League has chosen the team of William Foley and the Maloof family as the owners of a Las Vegas expansion team, The Post has learned. The league has not determined a timetable for expansion, but two western US cities are expected to be selected for new franchises, according to reports. One of those...
package com.beltraoluis.intrachat.connection; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; import java.util.Date; /** * * @author beltraoluis */ public class TcpClient { public static Socket start() { try { Socket c...
<reponame>breedloj/aws-toolkit-vscode /*! * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as fs from 'fs' import { getLogger, Logger } from '../../../shared/logger' /** * @param {string} uniqueIdentifier - unique identifier of state machi...
<filename>gpc-web/src/locales/lang/pl.ts import { genMessage } from '../helper'; import antdLocale from 'ant-design-vue/es/locale/pl_PL'; // import momentLocale from 'moment/dist/locale/pl'; const modules = import.meta.globEager('./pl/**/*.ts'); export default { message: { ...genMessage(modules, 'pl'), antdL...
export class Tweet { public _id: string public description: string public user: string public images?: string[] public likes?: string[] public parent?: string public retweets?: string[] public replies?: string public timezone?: string public thread?: string[] public username?: string ...
Possibilities for VDD = 0.1V logic using carbon-based tunneling field effect transistors A systematic evaluation of the possibilities of low-voltage logic using carbon-based tunneling field effect transistors (TFET) is performed using the non-equilibrium green function (NEGF) formalism for device simulation and ring-o...
CRISPR/Cas9-Based Genome Editing in the Filamentous Fungus Fusarium fujikuroi and Its Application in Strain Engineering for Gibberellic Acid Production. The filamentous fungus Fusarium fujikuroi is well-known for its production of natural plant growth hormones: a series of gibberellic acids (GAs). Some GAs, including ...
/** * Replace one child with another at the same position. The parent of the * child is not changed * * @param child * the old child * @param newChild * the new child */ public void replaceChild(Operator<? extends Serializable> child, Operator<? extends Serializable> newC...
def _iref_and_ad_on_states(self, internal_ref_on, ad_on): INTERNAL_REF_ON_BIT = 0x08 AD_CONVERTER_ON_BIT = 0x04 INTERNAL_REF_ON_BIT = 0x00 if not internal_ref_on else INTERNAL_REF_ON_BIT AD_CONVERTER_ON_BIT = 0x00 if not ad_on else AD_CONVERTER_ON_BIT return INTERNAL_RE...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package common_test import ( "fmt" "chromium.googlesource.com/enterprise/cel/go/common" ) // Example of basic Trie usage. func ExampleTrie_basic() { ...
/** * The JVehicleCommander application class. When instantiated, this class creates * a JFrame and opens it with a JMap and other controls. * * Main frame GUI code goes in this class. If it's not GUI code, consider putting * it in another class. */ public class VehicleCommanderJFrame extends javax.swing.JFrame ...
/** * Password-based decrypter of {@link JWEObject JWE objects}. * Expects a password. * * <p>See RFC 7518 * <a href="https://tools.ietf.org/html/rfc7518#section-4.8">section 4.8</a> * for more information. * * <p>This class is thread-safe. * * <p>Supports the following key management algorithms: * * <ul> ...
"""Implementation of sample attack.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import warnings import numpy as np import tensorflow as tf from tensorflow.contrib.slim.nets import inception from PIL import Image from cleverhans.attacks im...
/** Removes the group and optionally the contacts of the specified contacts */ public void RemoveGroup(boolean deleteContacts, TreeMap<String, String> contacts) { CommandRemoveGroup cmdRemoveGroup = new CommandRemoveGroup(); cmdRemoveGroup.deleteContacts = deleteContacts; cmdRemoveGroup.Cont...
<reponame>dineshkummarc/ttdashboard<filename>server/gatherer/add_room.py from ids import FALSE_IDS import psycopg2 from settings import * import sys import random def main(): if len(sys.argv) < 2: print "Not enought params." return conn = psycopg2.connect("dbname='%s' user='%s' host='%s' password='...
The Prince of Wales said it was "more important than ever" to encourage young people to become entrepreneurs. Launching the latest campaign of his youth charity, The Prince's Trust, he said businesses should also do more to help reduce the number of young people out of work. Small firms are the "bedrock" of any econo...
// AllocRules allocate the match, nonmatch rule state in correspondence with the src state func (ps *State) AllocRules() { nlines := ps.Src.NLines() if nlines == 0 { return } if len(ps.Src.Lexs) != nlines { return } ps.Matches = make([][]MatchStack, nlines) ntot := 0 for ln := 0; ln < nlines; ln++ { sz :=...
// Test that sending sendResponse with an empty body and request // against malformed URL fails. func TestSendResponse(t *testing.T) { req := &Request{ ResponseURL: `h\t\t\p:\//wron.com?this=wrong?=this`, } if err := req.sendResponse(nil, 500); err != nil { if err.Error() != "Body of response can't be empty" { ...
/// Will read result set and write pending result into `self` (if any). pub(crate) async fn read_result_set<P>(&mut self) -> Result<()> where P: Protocol, { let packet = self.read_packet().await?; match packet.get(0) { Some(0x00) => self.set_pending_result(Some(P::result_set_...
/** * Implements the Graphical User Interface for the * Mediaplayer component * * @author Chris Veigl [ veigl@technikum-wien.at} * Date: 30.7.2013 */ public class GUI extends JPanel { private JPanel guiPanel; private Dimension guiPanelSize; private final MediaPlayerInstance owner...
/** * Ignite benchmark that performs query operations. */ public class IgniteSqlQueryBenchmark extends IgniteCacheAbstractBenchmark<Integer, Object> { /** Last salary. */ private static final String LAST_SALARY = "LAST_SALARY"; /** Salary step. */ private static final int SALARY_STEP = 1000; /**...
def validate(self): if not self.expression: raise ScheduleError("Task is missing a schedule") if self.expression.startswith("cron(") and self.expression.endswith(")"): self.expression = self._validate_cron() elif self.expression == "delete": pass els...
<gh_stars>0 package serp.bytecode; import serp.bytecode.visitor.BCVisitor; import serp.util.Strings; /** * A conversion opcode such as <code>i2l, f2i</code>, etc. * Changing the types of the instruction will automatically * update the underlying opcode. Converting from one type to the same * type will result in a...
import pytest from helpers.client import QueryRuntimeException from helpers.cluster import ClickHouseCluster from helpers.test_tools import assert_eq_with_retry cluster = ClickHouseCluster(__file__) node1 = cluster.add_instance( "node1", main_configs=["configs/config.d/clusters.xml"], user_configs=["config...
package com.quancheng.saluki.domain; import java.util.Set; import org.apache.commons.lang3.tuple.Pair; import com.google.common.collect.Sets; public class ApplicationDependcy { private String appName; private Set<SalukiAppDependcyParent> dependcyApps; public ApplicationDependcy(...
import React, { lazy, Suspense } from "react"; import { ThemeProvider } from "styled-components"; import { Reset } from "styled-reset"; import { theme } from "@template-barista/theme"; import { StyledGlobal } from "./styles/global.styled"; import { Loading } from "./Loading"; const LazyApp = lazy( () => import("@tem...
World Bulletin/News Desk Ankara will not accept the European Parliament decision on a resolution on a dispute between Turkey and the Greek Cypriot administration, Turkey's EU chief said on Thursday. The European Parliament is set to vote on a resolution Thursday on current tensions between Turkey and the Greek Cyprio...
package ch.heigvd.res.labs.roulette.net.client; import ch.heigvd.res.labs.roulette.data.EmptyStoreException; import ch.heigvd.res.labs.roulette.data.Student; import ch.heigvd.res.labs.roulette.net.protocol.RouletteV1Protocol; import ch.heigvd.schoolpulse.TestAuthor; import java.io.IOException; import java.util.LinkedL...
// RemoveLoginEventForUser removes one loginevents corresponding to id func (s *Doc) RemoveLoginEventForUser(ctx context.Context, eppn string) error { filter := bson.M{ "eppn": eppn, } _, err := s.loginEventsCollection.DeleteMany(ctx, filter) if err != nil { return err } return nil }
<reponame>pierreavn/angular-tabler-icons export const IconMapPins = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path stroke="none" d="M0 0h24v24H0z" fill="none"/> <path d="M10.828 9.828a4 4 0 1 0 -5.656 0l2.828 2.829l2.828 -2.829z" /> <line x1="8" y1="7" x2="8" y2="7.01" /> <path d="M18.828 1...
import fire import praw from config import config from tqdm import tqdm import time class AutoPublisher(object): """A simple publisher for reddit and hackernews""" def __init__(self): self.reddit = praw.Reddit(client_id=config['redditAuth']['client_id'], client_secre...
/** * This implementation uses strong references to the elements. * <p/> * * @author bennidi * Date: 2/12/12 */ public class StrongConcurrentSet<T> extends AbstractConcurrentSet<T>{ public StrongConcurrentSet() { super(new HashMap<T, ISetEntry<T>>()); } public Iterator<T> iterator()...
Ant McPartlin, one half of presenting duo Ant and Dec, has checked himself into rehab for a prescription drug and alcohol problem, according to The Sun on Sunday. The TV star says he has been going through a "difficult time" and the newspaper says he will now spend a couple of months getting treatment. "The first ste...
import { useCallback, useRef } from 'react'; import { createPxth, deepGet, isInnerPxth, Pxth, samePxth } from 'pxth'; import invariant from 'tiny-invariant'; import { BatchUpdate, Observer } from '../typings'; import { PxthMap } from '../typings/PxthMap'; import { ObserverArray, ObserverKey } from '../utils/ObserverAr...
/** * The Notification class is used to store the notifications that appear in the interface. * The only reason it is not in its own file is because it is dependent on NotificationClearTimerTask. */ class Notification{ private int area; private String sNotice; private Color cNoticeColor; private l...
/** * Manage elasticsearch index settings * @author David Pilato */ public class ElasticsearchIndexUpdater { private static final Logger logger = LoggerFactory.getLogger(ElasticsearchIndexUpdater.class); /** * Create a new index in Elasticsearch. Read also _settings.json if exists. * @param client Elasticsea...
An upgrade to neutral was all it took to send shares of Advanced Micro Devices Inc. surging in active trade Monday. Macquarie analyst Srini Pajjuri, who turned bearish on AMD’s AMD, -2.02% stock in May, wrote Monday that expectations for the company now look more reasonable. While he predicts headwinds for AMD’s crypt...
import React from 'react'; import styled from 'styled-components'; import Tag from '../Tag'; const StyledTag = styled(Tag).attrs({ className: 'tag--destructive', })` --t-tag-color: ${({ theme }) => theme.colors?.tagDestructiveColor}; --t-tag-background-color: ${({ theme }) => theme.colors?.tagDestructiveBackgroundC...
Time dependence of moments of an exactly solvable Verhulst model under random perturbations Explicit expressions for one point moments corresponding to stochastic Verhulst model driven by Markovian coloured dichotomous noise are presented. It is shown that the moments are the given functions of a decreasing exponent. ...
/** * This method creates and adds the AuditCluster to the Global AuditErrorMap. */ @SuppressWarnings("unchecked") protected void reportAndCreateAuditCluster() { if (auditErrors.size() > 0) { KNSGlobalVariables.getAuditErrorMap().put(CONTACTS_AUDIT_ERRORS, new AuditCluster(Constants.CO...
/** * @author Bassam Al-Sarori Base class representation for executing filters. For * executing user saved filter, the filter id should be set in * {@link FilterRequestRepresentation#filterId} property. For executing * dynamic filter, the filter representation should be set in * {@l...
from . import BaseComponent from ..constants import Method, Notification, PromptState from ..helpers import prepare_collect_params, prepare_media_list from ...event import Event from .decorators import stoppable, has_volume_control @stoppable @has_volume_control class Prompt(BaseComponent): def __init__(self, call,...
Evaluation of sleep in women with menopause: results of the Pittsburg Sleep Quality Index and polysomnography. OBJECTIVE To investigate subjective sleep quality among women in the menopausal period and to confirm and diagnose the possible sleep disturbances with polysomnographic (PSG) evaluation objectively. MATERIA...
#!/usr/bin/env python import sys import os import json import urllib2 import caffe import contextlib import numpy as np import classify_nsfw def make_transformer(nsfw_net): # Note that the parameters are hard-coded for best results transformer = caffe.io.Transformer({'data': nsfw_net.blobs['data'].data.shape...
def dataset_factory(type, id): if type == "strds": sp = SpaceTimeRasterDataset(id) elif type == "str3ds": sp = SpaceTimeRaster3DDataset(id) elif type == "stvds": sp = SpaceTimeVectorDataset(id) elif type == "rast" or type == "raster": sp = RasterDataset(id) elif type ...
<reponame>rlong/browser.app.vlc-control import {Router} from '@angular/router'; export class PageTestRoute { // public static readonly PATH = 'test'; // // static navigate( router: Router ) { // // router.navigate( [`/${PageTestRoute.PATH}`]); // } }
/** * Assist function for removing blocks from the set, where this function * checks the neighboring block from the insert position of the block to * remove to see if the low neighbor needs to be decimated. * * @param blockToRemove - the block to decimate with * @param locIndex - the...
package com.visitor.shop.service.impl; import java.util.List; import com.visitor.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.visitor.shop.mapper.MTeamMapper; import com.visitor.shop.domain.MTeam; import com.visitor.sho...
import 'firebase/auth' export const mapUserData = async (user) => { const { uid, email } = user const token = await user.getIdToken(true) const result = await user.getIdTokenResult(true) const isAdmin: boolean = result.claims.admin ? true : false const isVerified: boolean = user.emailVerified return { ...
<filename>qt-app/main.py import sys # modify the search path so we can import files from multiple directories sys.path.insert(0, './views') sys.path.insert(0, './models') from patientview import * from patientrepository import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * if _...