content
stringlengths
10
4.9M
<reponame>adamcvj/SatelliteTracker #------------------------------------------------------------------------------ # # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistrib...
Prince Albert made a public apology for the role of the Monegasque police in the Second World War during visit to a Monaco cemetery on Thursday. Here, Albert unveiled a memorial for those who were deported out of Monaco to Nazi concentration camps during WWII. During a speech at the unveiling, the Prince took the opp...
def button_empty(self, timeout=5): if not self.dev_mode: state = [0] while len(state) > 0: state = self.device.read(NUM_KEYS+1, timeout_ms=timeout) elif self.dev_mode: self.dev_button_empty()
<reponame>ruizhaoz1/Neuron-Android package com.cryptape.cita_wallet.event; import com.cryptape.cita_wallet.item.App; public class AppHistoryEvent { public App app; public AppHistoryEvent(App app, long timestamp) { this.app = app; this.app.timestamp = timestamp; } }
// // Load up the unit list from the current config, optionally selecting an initial // unit id. // tCIDLib::TVoid TZWaveLevi2CWnd::LoadUnits() { tCIDLib::TStrList colCols(m_c4ColInd_Name + 1); for (tCIDLib::TCard4 c4Index = 0; c4Index <= m_c4ColInd_Name; c4Index++) colCols.objAdd(TString::strEmpty())...
import mock import os import pandas as pd from datetime import datetime from flexmock import flexmock from sportsreference import utils from sportsreference.constants import HOME from sportsreference.nba.constants import BOXSCORE_URL, BOXSCORES_URL from sportsreference.nba.boxscore import Boxscore, Boxscores MONTH = ...
package octopus import ( "testing" ) /* * Integration tests */ // Get machine by Id (successful). func Test_Client_GetMachine_Success(test *testing.T) { testClientRequest(test, &ClientTest{ APIKey: "my-test-api-key", Request: func(test *testing.T, client *Client) { machine, err := client.GetMachine("Machi...
/** * @Author: Kooo * @Date: Created in 2018/9/2 * @Modified By: * @Decription: */ @SpringBootApplication @EnableZuulProxy @EnableEurekaClient @EnableDiscoveryClient public class ApigatewayApplication { public static void main(String[] args) { SpringApplication.run(ApigatewayApplication.class, args); ...
def plot_equity_and_debt(self, additional_monthly_payment): results, _ = self.calculate_all(additional_monthly_payment) fig, ax = plt.subplots(figsize=(10,5)) years = [month / 12.0 for month in results['months']] ax.plot(years, results['debts'], label='Debt', color='r') ax.plot(y...
import { AzureRequest } from './azure-request'; import { AzureReply } from './azure-reply'; export function createHandlerAdapter(handler) { return context => { context.res = context.res || {}; const req = new AzureRequest(context); const res = new AzureReply(context); handler(req, res); }; }
<reponame>cloew/kanji-stroke-scraper from distutils.core import setup setup(name='kanji_stroke_scraper', version='0.3.01', #description='Kao Tessur Deck Package', author='<NAME>', author_email='<EMAIL>', #url='http://www.python.org/sigs/distutils-sig/', packages=['kanji_stro...
class OmnivoxSemester: """ Represents a semester. """ def __init__(self, semester_id: str, semester_name: str, current: bool): """ Initializes a semester instance. :param semester_id: The ID of the semester. The format is usually Year(+)Index, e.g. 20181 :param semester_...
Transcatheter closure of very large secundum atrial septal defects: long-term follow-up study Aims To evaluate the efficacy and safety of transcatheter closure of very large secundum atrial septal defects (ASD) with long-term follow-up results. Methods and results From June, 2001 to June, 2008, 74 patients diagnosed a...
/// Enable the memory pattern optimization /// /// The idea is if the input shapes are the same, we could trace the internal memory allocation and generate a memory pattern for future request. So next time we could just do one allocation with a big chunk for all the internal memory allocation /// /// Note: Memory patte...
from gyb_syntax_support import SYNTAX_TOKEN_MAP, create_node_map, SYNTAX_NODES from gyb_syntax_support.kinds import SYNTAX_BASE_KINDS from gyb_syntax_support.kinds import lowercase_first_word from ExpressibleAsConformances import SYNTAX_BUILDABLE_EXPRESSIBLE_AS_CONFORMANCES from utils import flat_documentation class S...
/** * Background dialog * @author Jacek Furmankiewicz */ public class BackgroundDialog { private Shell shell; @SuppressWarnings("unused") private Label progressLabel; @SuppressWarnings("unused") private ProgressBar progressBar; private BackgroundEvent event = null; /** * Constructor * ...
/** * Adds updated values from the sound settings menu into preferences while * updating them in-game. * * @param musicVolume * 0 to 100 maximum * @param effectsVolume * 0 to 100 maximum */ public void updateVolume(float musicVolume, float effectsVolume) { Preferences pref = Gdx...
def click_record_link(self, get_url: str, component: Dict[str, Any], context: Dict[str, Any], label: str = None, headers: Dict[str, Any] = None, locust_label: str = "") -> Dict[str, Any]: if '_recordRef' not in component: component = component.get('link', "") record...
<reponame>openharmony-gitee-mirror/account_os_account /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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/license...
<gh_stars>0 // Copyright 2021 Matrix Origin // // 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 o...
export async function promiseOrCallback<T = void>(action: () => Promise<T>, cb: (err?: Error, result?: T) => void) { let caught: Error; let res: T; try { res = await action(); if (!cb) { return res; } } catch (err) { caught = err; if (!cb) { throw err; } } finally { if ...
To help, local comedians are coming together to throw a benefit party. The event will feature a star-studded lineup, including Louie Anderson, Mystery Science Theater 3000 star Joel Hodgson, Mary Jo Pehl, Alex Jackson, Tom Baumgartner, and Kristin Andersen. "Joe Minjares has been a good friend and creative presence i...
Hibiki Kono had a dream — he wanted to be like his hero, Spiderman. Most little kids would have their parents buy them a costume that they could wear to school. Not Kono — the 13 year-old set to work making his dream a reality. He’s used two 1,400-watt recycled vacuum cleaners and a little bit of elbow grease to make a...
<gh_stars>1-10 /* * Copyright 2019 The gRPC 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 applicab...
<reponame>GeliuZhou/OOP-Test-2021-Starter<gh_stars>0 package ie.tudublin; import java.util.ArrayList; import processing.core.PApplet; public class ScoreDisplay extends PApplet { String score = "DEFGABcd"; //String score = "D2E2F2G2A2B2c2d2"; //String score = "DEF2F2F2EFA2A2B2AFD2E2D2D2D2"; ArrayLi...
<reponame>trussworks/edd """ Custom database fields to use on EDD models. """ from django import forms from django.db import models class VarCharField(models.TextField): """ Take advantage of postgres VARCHAR = TEXT, to have unlimited CharField, using TextInput widget (<input type="text"> instead of <tex...
/** * The parentheses in a string are balanced if and only if these 2 conditions are met: * There are the same number of "(" and ")" in the string. * Scanning through the string from left to right and counting how many "(" and ")" there are so far, * there should never be a time where there are more ")" than "("....
class ChunkWriterStdOut: """ Write the generated source code chunks into stdout. """ name = 'stdout' def write(self, source_file, chunk_iterable, mark=None): hdr, inl, src = CodeChunk.join(chunk_iterable) print(hdr) print() print(inl) print() print(sr...
The Decline of Human Capital in Ukrainian Education and Science: Experience of Reversal Preservation and enhancement of the quality of education should be a priority in the development of any society. But the Ukrainian higher education system has ceased to be competitive, and to date has continued to reduce the presti...
package com.lsm; import java.util.Arrays; public interface ListSortMerger { static int[] createResultArray(InsertPosition insertPosition, int[] left, int[] right) { if (insertPosition == InsertPosition.BACK) { // result array = left + right int[] result = Arrays.copyOf(le...
/** * Create a custom domain for your fax services * * REST: POST /me/fax/customDomains * @param domain [required] The custom domain of your fax services */ public OvhMailDomain2Service fax_customDomains_POST(String domain) throws IOException { String qPath = "/me/fax/customDomains"; StringBuilder sb = pa...
Efficacy of Melatonin on Postoperative Outcomes after Hysterectomy: A Randomized, Double-blind, Placebo-controlled Trial Background: Melatonin became a part of multimodal analgesia in several recent studies because of its analgesic, anxiolytic and anti-inflammatory properties. Incidence of anxiety and pain in patients...
/** * True if these statistics satisfy the given threshold statistics. * <p> * Specifically, compares the values of the following attributes: * <ul> * <li>{@link #addedEdges()} * <li>{@link #addedEdgeWeight()} * <li>{@link #maxCliqueSize()} * <li>{@link #maxCliqueCardinality()} * </ul...
package vn.techmaster.relation.model.manymany.noextracolumns; import java.util.ArrayList; import java.util.List; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.M...
/** * Splits the current object into an array of RiTexts, one per word, * maintaining the x and y position of each. Note: In most cases the original * RiText should be disposed manually to avoid text a doubling effect (via * RiText.dispose(originalRiText)). */ public RiText[] splitWords() { Object ...
n=int(input()) s=str((input())) l=list(map(int,s)) # print(l) req = n//3 saw = [0,0,0] got = [0,0,0] for num in l: got[num]+=1 # print(got) def do_work(num): for i in range(n): if(got[num] < req and l[i] > num and got[l[i]] > req): got[l[i]]-=1 got[nu...
PD06-07 PROSPECTIVE ANALYSIS OF OBESITY AND THE EFFECT OF BARIATRIC SURGERY ON URINARY INCONTINENCE INTRODUCTION AND OBJECTIVES: Introduction Epidemiological studies have shown that obesity is an independent risk factor for prevalent and incident incontinence. The prevalence of incontinence has been reported to be as ...
def stepsize(name=None,templates=None): queryDiagnostic("Step",name,templates)
/** * @author oktfolio oktfolio@gmail.com * @date 2020/06/08 */ public class AuthorityGroup { private AuthorityGroupEnum group; private List<Authority> authorities; public AuthorityGroup(AuthorityGroupEnum group, List<Authority> authorities) { this.group = group; this.authorities = auth...
/** * To cancel the already generated notification. * * @param context of the class. * @param id the id */ public static void cancelNotify(Context context, int id) { try { NotificationManager nMgr = (NotificationManager) context .getSystemService(Con...
import { produce } from 'immer' import { Reducer } from 'redux' import * as actionTypes from './actionTypes' export interface ISnapshotState { snapshotData: any[] // 编辑器快照数据 snapshotIndex: number // 快照索引 } export const defaultState = { snapshotData: [], // 编辑器快照数据 snapshotIndex: -1, // 快照索引 } const reducer:...
def process_weddings(date, weddings): for wedding_date, couples in weddings.items(): if wedding_date.month == date.month and wedding_date.day == date.day: for couple in couples: yield dict( names=' & '.join(couple), age=date.year - wedding_...
/** * Performs those allocations that are absolutely necessary for local initiation * It initializes a table of chunk tables and the PINS model. */ model_t global_and_model_init () { model_t model; global_create (HRE_PROCS); model = create_pins_model (); global_init (model, SPEC_REL_PERF,...
TV Reviews All of our TV reviews in one convenient place. It’s relatively rare for Doctor Who to comment directly on contemporary issues. The classic series was only occasionally interested in situating itself in terms of present-day controversies, and these instances are mostly confined to the Earthbound adventures o...
Second-Harmonic Generation As A Probe Of Thin Film And Monolayer Microstructure In recent years second-harmonic generation (SHG) has gained popularity as a surface analytical technique. Its intrinsic surface sensitivity can make it useful for studying thin films, or even monolayers. In particular, numerous works have ...
//----------------------------------------------------------------------------- // Protect the page where we put the marker if a debugger is attached. That way, you get an AV right away // when you blow the guard when running under a debugger. //--------------------------------------------------------------------------...
import { ECDSAParameters, SigningAlgorithm } from "./securityParameters"; const stableStringify = require("json-stable-stringify"); interface TransactionPayload { sender: string; recipient: string; amount: number; message?: string; tags?: string[]; } interface SignedTransaction extends TransactionPayload { ...
Not to be confused with Bank PIN A Player identification number (often referred to as PID) is a unique identification number that each player possesses. It previously determined the priority between two or more players when simultaneously performing tasks throughout RuneScape. The update on 17 September 2013 removed t...
#include <stdio.h> #include<string.h> int main() { int a=0,b=0,i,m; char n[105]; scanf("%s",n); m=strlen(n); for(i=0;i<m;i++) { if( n[i]>='A' && n[i]<='Z' ) a++; else b++; } if(a>b) { for(i=0;i<m;i++) { printf("%c",toupper(n[i]) ); } } else for(i=0;i<m;i++) { printf("%c"...
import pytest from nuage_metroae_config.variable_reader import VariableReader QUERY_NESTED_RANGE_SORT_CASES = [ ({}, ["a1", "a3", "a5", "a2", "a4"]), ({"%end": 3}, ["a1", "a3", "a5"]), ({"%end": 99}, ["a1", "a3", "a5", "a2", "a4"]), ({"%end": 0}, []), ({"%end": -2}, ["a1", "a3", "a5"]), ({"%en...
“ Liberty is the only thing you cannot have unless you are willing to give it to others.” Wm. Allen White, [1868-1944], 1923 Pulitzer prize winner known as the ‘sage of Emporia’, gained national fame in the election of 1896 by his ferocious anti-populist edictorial, ‘What’s the Matter with Kansas.’ “We must keep our l...
def print_qbin(program, file = sys.stdout, *args, **kwargs): if hasattr(program, '__call__'): program = assemble(program, *args, **kwargs) code = memoryview(program).tobytes() code = map(ord, code) if type(code) is str else code assert(len(code) % 8 == 0) for i in range(len(code) // 8): ...
n = int(input()) ar = list(map(int,input().split())) ma = max(ar) mi = min(ar) v1 = 0 v2 = 0 for i in range(n): if mi == ar[i]: v1 = i for i in range(n): if ma == ar[i]: v2 = i break if v1 < v2: print(n -v1 + v2-2) else: print(n - v1-1 +v2)
// Echo responds with the message that was sent to it func (c *Host) Echo(message *string, reply *command.EchoResponse) error { cmd := command.NewHostEcho(*message) utils.LogInfo(cmd.String()) *reply = command.EchoResponse{ ID: cmd.ID, Error: "", Message: cmd.Body.(string), } return nil }
class SourceRef: """ Reference to a segment of source. This is used to provide useful context to the original RDL source when reporting compiler messages. """ def __init__(self, start=None, end=None, filename=None, seg_map=None): #: SegmentMap object that provides character coordinate ...
Intrinsic Certified Robustness of Bagging against Data Poisoning Attacks In a \emph{data poisoning attack}, an attacker modifies, deletes, and/or inserts some training examples to corrupt the learnt machine learning model. \emph{Bootstrap Aggregating (bagging)} is a well-known ensemble learning method, which trains mu...
def prevent_default(self): self._run_default = False
Introduction Critics of SkyTrain as a technology and rapid transit option are everywhere. Largely motivated by a fear of all megaprojects with high capital costs, SkyTrain critics are vocal, active, and will stop at nothing to act on this fear. They deny the productivity and developmental benefits that the system has ...
def convert_to_ast(sdl: str): sdl = re.sub(GQL_SCHEMA_TYPE, "", sdl) return parse(sdl)
El Niño has always been a key player in Australia’s climate. And as temperatures in the tropical Pacific Ocean show, the current El Niño event is the most significant since 1997. For many countries in the western equatorial Pacific, most notably our neighbours in Papua New Guinea, El Niño has brought significant droug...
def mergesort(lyst): if len(lyst) <= 1: return lyst ind = len(lyst)//2 return merge(mergesort(lyst[:ind]), mergesort(lyst[ind:]))
def Platform(): if platform.system() == 'Windows': os.system('cls') main_dir = os.path.join('C:/' 'Users', 'joshs', 'Documents', 'Masters_Project') if platform.system()...
Media Independent Handover Network Signalling Layer Protocol (MIH NSLP) This memo defines the Media Independent Handover Network Signalling Layer Protocol (MIH NSLP) for the transport of messages from the IEEE 802.21 standard using the Next Steps in Signalling (NSIS) framework. The MIH NSLP is responsible for the tran...
/** * Generates Objective-C header files from compilation units. * * @author Tom Ball */ public class ObjectiveCHeaderGenerator extends ObjectiveCSourceFileGenerator { /** * Generate an Objective-C header file for each type declared in a specified * compilation unit. */ public static void generate(Gen...
import numpy as np import pandas as pd from utils import * from sklearn.feature_selection import SelectKBest, SequentialFeatureSelector from sklearn.feature_selection import chi2, f_classif, mutual_info_classif from sklearn.neighbors import KNeighborsClassifier def chi_square_test(data, Y, k = 5): fs = SelectKBest...
The Barcelona state prosecutor said on Friday it was not opposed to substituting a 21-month prison sentence for a fine for tax fraud handed down to Lionel Messi, as long as the fine was the maximum allowed under law. The maximum fine would be €255,000, on top of a nearly €2m fine paid by the 29-year-old as part of las...
// Check that we compute the "datapresent" string correctly for the given // |available_types|. TEST(FormStructureTest, CheckDataPresence) { FormData form; form.method = ASCIIToUTF16("post"); FormField field; field.form_control_type = ASCIIToUTF16("text"); field.label = ASCIIToUTF16("First Name"); field.nam...
#include "bitcalc.h" size_t bitcalc::bits_to_bytes(size_t const bits){ return (bits>>3)+(((bits%2)>0)?(1):(0)); }
#include "libultra_internal.h" extern u64 osClockRate; extern u8 D_80365D20; extern u8 _osCont_numControllers; extern OSTimer D_80365D28; extern OSMesgQueue _osContMesgQueue; extern OSMesg _osContMesgBuff[4]; // exactly the same as osEepromLongRead except for osEepromWrite call s32 osEepromLongWrite(OSMesgQueue *mq, ...
/** * Do any of our (top level) children have the given recordId? * * @param recordId the recordId of the child * * @return true, if any child has the given recordId */ public boolean hasChildOfType(short recordId) { for (EscherRecord r : this) { if(r.getRecordId() == r...
package main // Runtime: 32 ms, faster than 96.77% of Go online submissions for Capacity To Ship Packages Within D Days. // Memory Usage: 6.2 MB, less than 95.16% of Go online submissions for Capacity To Ship Packages Within D Days. // https://leetcode.com/submissions/detail/449378694/ func shipWithinDays(weights []i...
// Fill out your copyright notice in the Description page of Project Settings. #include "TestingGuyCCharacter.h" // Sets default values ATestingGuyCCharacter::ATestingGuyCCharacter() { // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActo...
<reponame>ma2bd/fastpay // Copyright (c) Facebook Inc. // SPDX-License-Identifier: Apache-2.0 use super::*; #[test] fn test_handle_transfer_order_bad_signature() { let (sender, sender_key) = get_key_pair(); let recipient = Address::FastPay(dbg_addr(2)); let mut authority_state = init_state_with_account(se...
/** * OAuthHttpServletRequest is a custom implementation of the {@link HttpServletRequest} that implements the * bare minimum methods to handle OAuth 2.0 requests. * <p/> * The methods supported are delegated to the wrapped {@link HttpRequest} instance. * * @since 1.0.RC */ public class OAuthHttpServletRequest i...
/** Locates and extracts Cloud Hypervisor SMBIOS data @return Address of extracted Cloud Hypervisor SMBIOS data **/ UINT8 * GetCloudHvSmbiosTables ( VOID ) { SMBIOS_TABLE_3_0_ENTRY_POINT *CloudHvTables = (VOID *)CLOUDHV_SMBIOS_ADDRESS; if ((CloudHvTables->AnchorString[0] == '_') && ...
/** @author <NAME> Reference- https://www.interviewbit.com/problems/kth-row-of-pascals-triangle/ */ import java.util.*; import java.lang.*; import java.io.*; public class Solution { public ArrayList<Integer> getRow(int A) { ArrayList<Integer> list=new ArrayList<>(); int C=1; for(int ...
import * as admin from 'firebase-admin'; export function firebaseApp( authMock: jest.Mock, firestoreMock: jest.Mock ): admin.app.App { return { name: '', options: {}, firestore: firestoreMock, securityRules: authMock, storage: authMock, delete: authMock, remoteConfig: authMock, pro...
Anilah – Shamanic Healing Music Anilah sounds to me like a mix of Wardruna, Dead Can Dance, Progressive Rock and Shamanic chanting. Anilah is the musical project of vocalist and composer Dréa Drury, a musician who hails from the Selkirk Mountains of Western Canada. Her music is influenced by traditional shamanic soun...
def evaluate(self, nodes, relation, constants): return self.evaluate_aux({}, nodes, relation, constants)
//MOVE CONSTRUCTORS /** * @brief Construct from the name and a moved string */ InvokeParameter(const std::string &name, std::string &&str) { this->name = name; this->type = "string"; this->str = move(str); }
package com.wow.wowmeet.utils.googleapi; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.Log; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.Api; import...
#include <bits/stdc++.h> using namespace std; int n, m; int xc, yc; using ll = long long; bool checkin(ll x, ll y) { return (1 <= x && x <= n && y <= m && y >= 1); } int go(int dx, int dy, int &xc, int &yc) { int st = 0, en = 1e9+100; while (en - st > 1) { int mid = en + st >>...
<reponame>AiLuoLiuCenYu/hello-word import { Button, Checkbox, Form, Icon, Input, message } from 'antd'; import * as React from 'react'; import rootStore from '../../rootStore'; import { storage } from '../../utils/helper'; import logo from './logo.svg'; import styles from './style.module.less'; const FormItem = Form.I...
/** A Modulation which implements a classic ADSR envelope with an additional Delay at the front. DADSR is common in many synths, such as the Oberheim Matrix series. You get to specify the delay level and time (this is a time-based envelope, not a rate-based envelope), the attack level and time, the decay t...
package com.summithillsoftware.ultimate.model; import static com.summithillsoftware.ultimate.model.Action.Callahan; import static com.summithillsoftware.ultimate.model.Action.Catch; import static com.summithillsoftware.ultimate.model.Action.Drop; import static com.summithillsoftware.ultimate.model.Action.Goal; import ...
Bioprinting of Organ-on-Chip Systems: A Literature Review from a Manufacturing Perspective : This review discusses the reported studies investigating the use of bioprinting to develop functional organ-on-chip systems from a manufacturing perspective. These organ-on-chip systems model the liver, kidney, heart, lung, gu...
<gh_stars>100-1000 use super::{get_lit_str, get_meta_items, parse_lit_into_path, parse_lit_str}; use proc_macro2::TokenStream; use serde_derive_internals::Ctxt; use syn::{Expr, ExprLit, ExprPath, Lit, Meta, MetaNameValue, NestedMeta, Path}; pub(crate) static VALIDATION_KEYWORDS: &[&str] = &[ "range", "regex", "con...
<reponame>syukri21/Paperid-Golang-Testcase package migration import ( "github.com/jinzhu/gorm" "github.com/sirupsen/logrus" "github.com/syukri21/Paperid-Golang-Testcase/src/database/entity" ) // AutoMigration is auto migrate database func AutoMigration(conn *gorm.DB) { conn.AutoMigrate(entity.User{}) if conn.Ha...
/** VBSearched - check to see if virtual base hase already been searched * * flag = VBSearched (type) * * Entry type = type index of virtual base * * Exit none * * Returns TRUE if virtual base has already been searched * FALSE if virtual base has not been sear...
Lower motor unit discharge rates in gastrocnemius lateralis, but not in gastrocnemius medialis or soleus, in runners with Achilles tendinopathy: a pilot study Objectives Deficits in muscle performance could be a consequence of a reduced ability of a motor neuron to increase the rate in which it discharges. This study ...
def train(self, X, y): for c in set(y): self.class_words[c] = [] for _element, _class in zip(X,y): _element = self.transform_ngrams(_element) print(_element) for w in _element: if w not in self.corpus_words: self.corpus_...
The Reserve Bank says its limits on low-deposit home loans will stay until late this year, dousing expectations the temporary measures could go soon. The central bank said that loan to value ratio (LVR) limits brought in last year "are achieving their purpose" with signs the housing market is cooling down. "Without t...
package utils import ( "math" "sort" ) type PFunc func([]float64) float64 func Max(data []float64) float64 { max := math.SmallestNonzeroFloat32 for _, n := range data { if n > max { max = n } } return max } func Min(data []float64) float64 { min := math.MaxFloat32 for _, n := range data { if n < mi...
#!/usr/bin/env python """ (c) 2020, <NAME> (c) 2014, <NAME>, <NAME>, <NAME>, <NAME>. shader code adapted from Vispy's example molecular_viewer.py: https://github.com/vispy/vispy/blob/master/examples/demo/gloo/molecular_viewer.py Distributed under the terms of the new BSD License. """ # external dependencies: from v...
Election Blu-ray Review Reviewed by Dr. Svet Atanasov, December 16, 2017 The best candidate The dark humor that makes Alexander Payne'sattractive comes from the same place where many of Todd Solondz's films reside. It is an odd place that can make one feel very uneasy, at times even nauseated, but there are a lot of...
def is_chromedriver_too_old(self): self.__check_scope() self.__fail_if_not_using_chrome("is_chromedriver_too_old()") if int(self.get_chromedriver_version().split(".")[0]) < 73: return True return False
import sys s=sys.stdin.readline().strip() n=int(s[0]) data={} data['A']=2**31-1 data['B']=2**31-1 data['C']=2**31-1 data['AC']=2**31-1 data['AB']=2**31-1 data['BC']=2**31-1 data['ABC']=2**31-1 s=sys.stdin.readline().strip() while s!='': s=s.split() s[0]=int(s[0]) if len(s[1])==1: if ...
// add the contents of filename to allPush and allPushSources. func add(filename string, allPush packages.PackageConfig, allPushSources map[string]string) error { config, err := packages.LoadPackageConfig(filename) if err != nil { sklog.Fatalf("Failed to load PackageConfig file: %s", err) } for k, v := range conf...
use std::{ env, fs::File, io::{BufReader, BufWriter}, path::{Path, PathBuf}, thread::sleep, time::Duration, }; use tracing::{span, Level}; use tracing_flame::FlameLayer; use tracing_subscriber::{prelude::*, registry::Registry}; static PATH: &str = "flame.folded"; fn setup_global_subscriber(dir...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "SceneOutlinerModule.h" #include "Modules/ModuleManager.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Framework/Application/SlateApplication.h" #include "SceneOutlinerSettings.h" #include "SSceneOutliner.h" #include "SceneOutlinerActor...