content
stringlengths
10
4.9M
/** * Base class for all API, communication, or serialization related * exceptions. The idea is to provide an consistent interface * and shield dependent projects from having to have explicit source code * dependencies on Jersey and Jackson. * */ public class ApiException extends RuntimeException { public A...
Inverse spin Hall effect in a closed loop circuit We present measurements of inverse spin Hall effects (ISHEs) in which the conversion of a spin current into a charge current via the ISHE is detected not as a voltage in a standard open circuit but directly as the charge current generated in a closed loop. The method i...
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law ...
<reponame>ob-algdatii-20ss/leistungsnachweis-teammaze<gh_stars>0 package solver import ( "github.com/ob-algdatii-20ss/leistungsnachweis-teammaze/common" ) const ( Add = "ADD" Remove = "REMOVE" Visited = "VISITED" ) type Function = func(common.Labyrinth, common.Location, common.Location, bool) ([]common.Loca...
#ifndef GLMMAT4SERIALIZE_H_ #define GLMMAT4SERIALIZE_H_ #include <boost/serialization/serialization.hpp> #define GLM_FORCE_RADIANS #include <glm/glm.hpp> namespace boost { namespace serialization { template<class Archive> void serialize(Archive& ar, glm::mat4& m, unsigned int version) { for (glm::detail::uint32 i=...
<gh_stars>100-1000 package com.nilhcem.fakesmtp.log; import java.util.Observable; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.AppenderBase; /** * Logback appender class, which will redirect all logs to the {@code LogsPane} object. * * @author Nilhcem * @since 1.0 * @param <E> a L...
#include "NetGameEventListMessage.hpp" #include "BitIO/BitIOReader.hpp" #include "BitIO/BitIOWriter.hpp" #include "misc/Exceptions.hpp" #include "net/data/SourceConstants.hpp" #include "net/worldstate/WorldState.hpp" void NetGameEventListMessage::ReadElementInternal(BitIOReader& reader) { const auto eventsCount = re...
Identification of the Marginal Treatment Effect with Multivalued Treatments Heckman et al. (2008) examine the identification of the marginal treatment effect (MTE) with multivalued treatments by extending the local instrumental variable (LIV) approach of Heckman and Vytlacil (1999). Lee and Salani\'e (2018) study the ...
package main // program to create sqlite file used by the auth api // if no file specified it will create a file with the // default name of users.db // args: // 1) existing sqlite file name (optional) import ( "fmt" "github.com/satori/go.uuid" "golang.org/x/crypto/bcrypt" "golang.org/x/crypto/ssh/terminal" "gor...
/** * Key iterator implementation. */ private final class KeyIterator extends HashIterator implements Iterator<K>, Enumeration<K> { /** * @param asc {@code True} for ascending iterator. */ private KeyIterator(boolean asc) { super(asc); } /** {@inh...
def labels(self) -> List[Label]: if any([lnu for lnu in self._labelNeedsUpdate.values()]): self._updateLabels() return sorted(self._labels, key=str)
/** * Represents a JavaScript expression for array literals. */ public final class JsArrayLiteral extends JsLiteral { private final List<JsExpression> exprs = Lists.newArrayList(); private boolean internable = false; public JsArrayLiteral(SourceInfo sourceInfo, Iterable<JsExpression> expressions) { super...
Mike D’Antoni was officially named new coach of the Houston Rockets, and he has brought Jeff Bzdelik and Roy Rogers, two defensive-minded coaches, to help. Last season, Houston finished as the sixth-worst defense in the league by allowing 106.4 points per game and opponents shot 45.9 percent against them, slightly abov...
/* create rand unsign 64 bit by single number */ func RandByUInt64(n int64) (result int64) { s := rand.NewSource(n) result = rand.New(s).Int63() return }
package coinbase import ( "encoding/json" "io/ioutil" ) type Time struct { ISO string `json:"iso"` Epoch float64 `json:"epoch"` } // https://developers.coinbase.com/api/v2#time type timeService struct { client *CoinbaseClient } // https://docs.pro.coinbase.com/#time type timeProService struct { client *Coi...
/** * This class defines a MinHeap implementation using an ArrayList (based on Heap class in Y Daniel Liang's Introduction * To Java Programming 10th Edition Chapter 23) * * @author Drew Hans * @param <E> */ public class MinHeap<E extends Comparable> { private java.util.ArrayList<E> list = new java.util.Arra...
E-cadherin maintains the undifferentiated state of mouse spermatogonial progenitor cells via β-catenin Background Cadherins play a pivotal role in facilitating intercellular interactions between spermatogonial progenitor cells (SPCs) and their surrounding microenvironment. Specifically, E-cadherin serves as a cellular...
By Dana Gabriel BlacklistedNews.com In a move that went largely unnoticed, the U.S. government unveiled a new counter-narcotics strategy for the northern border which will work towards closer cooperation with Canada in the war on drugs. This includes both countries strengthening integrated cross-border intelligence s...
<gh_stars>0 // Copyright (c) 2019 Uber Technologies, 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 appl...
Turkish President Tayyip Erdogan addresses his supporters during a rally for the upcoming referendum in the Black Sea city of Rize, Turkey, April 3, 2017. REUTERS/Umit Bektas ANKARA (Reuters) - Turkish President Tayyip Erdogan on Tuesday called on Iraqi Kurds to lower the Kurdish flag in the northern Iraqi city of Kir...
Effect of surface energy on the growth of boron nanocrystals The surface energies of α-rhombohedral (α-rh), β-rhombohedral (β-rh), α-tetragonal (α-t), and β-tetragonal (β-t) boron were calculated from first principles to investigate their role in nano-scale crystal growth. Equilibrium shapes of boron crystals were obt...
/* Function that uses stat() to determine the timestamp to put in the * SOA serial for when we synthesize the SOA record; * JS_ERROR on error, JS_SUCCESS on success */ int csv2_set_soa_serial(csv2_add_state *state, js_string *filename) { char name[256]; struct stat buf; time_t t; qual_...
// FetchUpdate grabs the update indicated by the changeID. // // If empty changeID is provided, it grabs the default update. func FetchUpdate(changeID string) (*Response, error) { endpoint := StashAPIBase if changeID != "" { endpoint = fmt.Sprintf("%s?id=%s", StashAPIBase, changeID) } resp, err := http.Get(end...
import { Provider } from "@ethersproject/abstract-provider"; import { Signer } from "@ethersproject/abstract-signer"; import { BigNumber } from "@ethersproject/bignumber"; import { Contract, ethers } from "ethers"; import { PickleModel } from "../.."; import { Chains } from "../../chain/Chains"; import { JAR_LQTY } fro...
Antithrombotic effect of a recombinant von Willebrand factor, VCL, on nitrogen laser-induced thrombus formation in guinea pig mesenteric arteries. To assess the antithrombotic effectiveness of blocking the platelet glycoprotein (GP) Ib/IX receptor for von Willebrand factor (vWF), the antiaggregating and antithrombotic...
<reponame>Sanjeever/node-ts-mysql-demo<filename>src/app/server.ts import {execSQL} from "../db/mysql"; const sql: string = `select host,user from user;`; execSQL(sql).then((tablesData) => { console.log(tablesData); process.exit(); });
def parse_pcap(pcap, pcap_path, file_name): counter = 0 pcap_dict = {} for ts, packet in pcap: try: eth = dpkt.ethernet.Ethernet(packet) except dpkt.dpkt.NeedData: print("dpkt.dpkt.NeedData") if isinstance(eth.data, dpkt.ip.IP): ip = eth.data ...
<reponame>BNgoum/TapProject<filename>ANGclient/src/app/routes/user-page/user-page.component.ts /* Imports & definition */ // Imports import { Component, OnInit } from '@angular/core'; import { Router } from "@angular/router" // Inner import { AuthService } from "../../services/auth/auth-service.service"; i...
Does Board Structure in Banks Really Affect Their Performance? We study whether board structure (board size, independence and gender diversity) in banks relates to performance. Using a broad panel of large US bank holding companies over the period 1997–2011, we find that both board size and independent directors decre...
<reponame>Eric-Arellano/rust #![feature(box_syntax)] fn take(_x: Box<isize>) {} fn main() { let x: Box<isize> = box 25; loop { take(x); //~ ERROR use of moved value: `x` } }
/** * Open the javadoc location dialog or the source location dialog, and set the result * to the selected libraries. */ private void edit(IStructuredSelection selection, int type) { Object obj = selection.getFirstElement(); LibraryStandin standin = null; if (obj instanceof LibraryStandin)...
/* La classe Directory rappresenta una cartella nel filesystem, essa e' mutabile in quanto il suo contenuto * puo' cambiare (aggiungere file o cartelle) * * ABS FUN: ABS(name, size, path, content) = per rappresentare la una directory utilizziamo una stringa per * indicare il nome (name), un valore inter...
// Return true if vp is VVVV:PPPP where V and P are hex digits: // DLLEXPORT(bool) usbValidateVidPid(const char *vp) { int i; char ch; const size_t len = strlen(vp); bool hasDID; if ( !vp ) { return false; } if ( len == 9 ) { hasDID = false; } else if ( len == 14 ) { hasDID = true; } else { return fals...
/** * <p>Title: EditableStringConstraint </p> * * <p>Description: This constraint contains a list of values that user * can choose from. It also allows the user to provide his own value. * These can typically be presented in a GUI picklist. </p> * * @author Nitin Gupta and Vipin Gupta * @version 1.0 */ publi...
import UnknownImageSVG from './unknown-image.svg'; export { UnknownImageSVG };
import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {FacebookInitializerService} from './facebook-initializer.service'; import {FacebookIdentifyVerifierService} from './facebook-identity-verifier.service'; import {BehaviorSubject} from 'rxjs/BehaviorSubject'; import {Player} from '../player/player.mo...
Artist Carolina Fontoura Alzaga constructs impressive chandeliers using chains, wheels and other parts from old bicycles as part of a series she calls CONNECT. Alzaga has lived in Brazil and Mexico and now works out of a studio in Los Angeles where the Etsy Blog recently caught up with her to conduct the interview and ...
def residual_chaser_factory(y :Y_TYPE, s:dict, k:int, a:A_TYPE =None, t:T_TYPE =None, e:E_TYPE =None, f1=None, f2=None, r1=None, r2=None)->([float] , Any , Any): if k == 1: J = [1] else: J = [1,k] y0 = wrap(y)[0] if not s.get('s1'): s = {'sres': {}, ...
Family-centred services in the Netherlands: validating a self-report measure for paediatric service providers Objective: To validate the Dutch translation of the Canadian Measure of Processes of Care for Service Providers questionnaire (MPOC-SP) for use in paediatric rehabilitation settings in the Netherlands. Design:...
<filename>Ska/Shell/tests/test_shell.py # Licensed under a 3-clause BSD style license - see LICENSE.rst import os import pytest from six.moves import cStringIO as StringIO from Ska.Shell import (Spawn, RunTimeoutError, bash, tcsh, getenv, importenv, tcsh_shell, bash_shell) HAS_HEAD_CIAO = os.pat...
In what may be the largest study ever conducted on changes in Americans' religious involvement, researchers led by San Diego State University psychology professor Jean M. Twenge found that millennials are the least religious generation of the last six decades, and possibly in the nation's history. The researchers -- i...
def generate_right_side(self): self.rightSideWidget = QtWidgets.QWidget(self.app.searchTab) self.rightSideLayout = QtWidgets.QVBoxLayout() return self.rightSideWidget
Possibilities for formal models of smart environments This paper is devoted to a recently running project descript ion with a purpose to get some necessary feedback from the AmI community as to the project ambitions. The project intends to study possibilities of several formal approaches towards modeling intelligent e...
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/XXUnknownSuperclass.h> @class NSMutableArray; __attribute__((visibility("hidden"))) @interface OADStyleMatrix : XXUnknownSuperclass { @private NSMutable...
// Extract page setup from settings. GtkPageSetup* wxGtkPrintNativeData::GetPageSetupFromSettings(GtkPrintSettings* settings) { GtkPageSetup* page_setup = gtk_page_setup_new(); gtk_page_setup_set_orientation (page_setup, gtk_print_settings_get_orientation (settings)); GtkPaperSize *paper_size = gtk_print_se...
Rep. Charlie Dent (R-Pa.), a key House moderate from a swing district, announced Thursday that he would not seek reelection next year for an eighth term. "I've worked to instill stability, certainty, and predictability in Washington," Dent, a co-chairman of the moderate Tuesday Group, said in a statement. "Regrettabl...
<filename>src/hardware/platforms/M1/JointM1.h /** * \file JointM1.h * \author <NAME>, <NAME> borrowing heavily from <NAME> * \brief An M1 actuated joint * \version 0.1 * \date 2020-07-08 * * \copyright Copyright (c) 2020 * */ #ifndef JointM1_H_INCLUDED #define JointM1_H_INCLUDED #include <cmath> #include "Jo...
<reponame>tranquangduy/dranim import { ApolloContext, InMemoryCache } from '@masterthesis/shared'; import { graphql } from 'graphql'; import { addMockFunctionsToSchema } from 'graphql-tools'; import schema, { resolvers } from '../../../src/graphql/schema'; import { doTestWithDb, QueryTestCase } from '../../test-utils'...
def update_points(api: ApiClient, points_id, points, note): awarded_at = int(time.time()) api.update_shadow_assignment_points(points_id, points, note, awarded_at)
/** * tests cat. This one has IDREFs. */ public void testCat() throws Exception { Cat cat = new Cat(); Circle face = new Circle(); face.setRadius(20); cat.setFace(face); Triangle ear = new Triangle(); ear.setBase(5); ear.setHeight(10); ear.setId("earId"); cat.setEars(Arrays.as...
/** * Adds the given path component to the beginning of the current documentation path. * * @param pathComponent the path component to add */ public void addPath(String pathComponent) { if (pathComponent != null) { docPath.insert( 0, pathComponent ); ...
//===----------------------------------------------------------------------===// // WebAssembly ABI Implementation // // This is a very simple ABI that relies a lot on DefaultABIInfo. //===----------------------------------------------------------------------===// class WebAssemblyABIInfo final : public DefaultABIInfo ...
OFDM technology anti-multipath performance analysis in China Mobile Multimedia Broadcasting (CMMB) system The Orthogonal Frequency Division Multiplexing (OFDM) is one of the key technologies for new moblie communication. Multipath interference to send and receive signals. In the China Mobile Multimedia Broadcasting (C...
def check_setup(engine): with engine.connect() as conn: for row in conn.execute(select([Config]).where(Config.key == 'setup')): if row[2] == '1': quit(1) conn.close()
<filename>User/Include/BootServices.h /** @file Copyright (c) 2020, PMheart. All rights reserved. SPDX-License-Identifier: BSD-3-Clause **/ #ifndef OC_USER_BOOT_SERVICES_H #define OC_USER_BOOT_SERVICES_H #include <Uefi.h> #include <Library/UefiLib.h> #include <Library/UefiApplicationEntryPoint.h> #include <Librar...
<gh_stars>1-10 import * as HLS from '../../../../../src'; import * as utils from '../../../../helpers/utils'; describe('4_Playlists/4.3_Playlist-Tags/4.3.2_Media-Segment-Tags', () => { // It applies to every Media Segment that appears after it in the // Playlist until the next EXT-X-MAP tag or until the end of...
Interior Minister Chaudhry Nisar Ali Khan will not be able to hold his press conference today due to an extreme backache, said his spokesperson on Sunday. Chaudhry Nisar has been recommended complete bed rest, and the press conference has been rescheduled for Monday at 5pm, according to his spokesperson. Insisting th...
<gh_stars>0 import numpy as np import pathlib from .core import legendre2ggf, stress2ggf, stress2legendre # noqa: F401 from . import lut from . import stress from .stress.geometry import fiber_distance_capillary # noqa: F401 def get_ggf(model, semi_major, semi_minor, object_index, medium_index, effecti...
/** * The Class Machine. */ @Entity public class Machine extends Persistent { private String hostAddress; private String canonicalHostName; @ManyToOne private MachineGroup machineGroup; /** * Instantiates a new machine. */ protected Machine() { } /** * Instantiates a n...
def _check_ver_change(self, datapath): try: version = os.environ['SUGAR_BUNDLE_VERSION'] except KeyError: version = 'unknown' filename = 'version.dat' version_data = [] new_version = True try: file_handle = open(os.path.join(datapath, f...
<filename>code/CNN_LSTM/train.py import os import keras from keras.layers import concatenate from sklearn.metrics import cohen_kappa_score import math import random from keras import optimizers import numpy as np import scipy.io as spio from sklearn.metrics import f1_score, accuracy_score np.random.seed(0) from ker...
Microresonator for Microwave Cancer Therapy This paper presents a numerical analysis on metallic micro/nanoparticles as LC-circuit resonators at microwave frequencies and with strong absorption for cancer therapy. We pushed the LC -structure design to the limit to provide an optimized structure within desired size lim...
<filename>src/sam/fx/helpers/FxConstants.java package sam.fx.helpers; import javafx.geometry.Insets; public interface FxConstants { Insets INSETS_5 = new Insets(5); Insets INSETS_10 = new Insets(10); }
package com.baeldung.listassert; import org.apache.commons.collections4.CollectionUtils; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; import static org.juni...
Chitosan/Calcium–Alginate Encapsulated Flaxseed Oil on Dairy Cattle Diet: In Vitro Fermentation and Fatty Acid Biohydrogenation Simple Summary Most unsaturated fatty acids in the ruminant’s diet are hydrogenated in their rumen so that the composition of the fatty acids entering the rumen and their output is significan...
/** * @ClassName SpringConfiguration * @Author Leo * @Description //TODO * @Date: 2019/5/23 10:37 **/ @Configuration public class SpringConfiguration { @Bean public SpringBeanRegistry customBeanDefinitionRegistry() { return new SpringBeanRegistry(); } }
/** * This is the main connector class for the NATS Connector. * It operates as follows: * * It is entirely java properties driven - these can be set as parameters * to the JVM or passed in as a file. * * The Connector starts a thread which drives a DataFlowHandler. * The handler connects to NATS and invokes va...
Image copyright PA Image caption The first minister argued that the Scottish economy would suffer from continuing to be part of the UK The first minister has warned that rejecting independence would leave Scotland subject to continuing economic austerity. Alex Salmond said that spending cuts planned by the UK governm...
Effects of pupil size on canine visual evoked potential with pattern stimulation The purpose of this study was to investigate the effects of pupil diameter on canine visual evoked potentials with pattern stimulation (P-VEP). Atropine eye drop (1.0%) was applied to both eyes as a cycloplegic drug, and tafluprost eye dr...
import { Account } from '../Server/Model'; export enum AccessRight { CREATE, READ, UPDATE, DELETE } export interface UserCredentials extends Account { accessRights: AccessRight[] } export enum HTTP_CODES { OK = 200, CREATED = 201, BAD_REQUEST = 400, UNAUTHORIZED = 401, NOT_FO...
#ifndef METALLIC_PREC_EXPF_H #define METALLIC_PREC_EXPF_H #include "kernel/expf.h" #include "../double/shift.h" #include <math.h> static double expf_(double x) { const double minimum = -708.39641853226410622; const double maximum = 709.78271289338399684; const double log2e = 1.442695040888963407; con...
<reponame>afdaniele/run-batch<gh_stars>1-10 import os import sys import time import logging import threading from queue import Queue def get_logger(console): # create logger logging.basicConfig() logger = BrLogger(console, 'brun', logging.INFO) return logger class BrLogger(logging.Logger): def ...
/** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_vip * * @mbg.generated */ protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); ...
/** * @author: xquan * A Kad Server's information. * @since: 2018-6-29 **/ public class ServerInfo implements Serializable{ private String name; private String ip; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIp() { return ip; }...
// overly-simple dead-zoning for now. // really should wait until polling time, and then use // the matching axes per stick and magnitude checks like XINPUT gamepad does. static float MapCenteredAxis(int valueS16, int deadi) { const float value = (valueS16 / 32767.0f); const float deadZone = (deadi / 32767.0f);...
/** * DOM - Comment implementation. * * @author BaseX Team 2005-13, BSD License * @author Christian Gruen */ public final class BXComm extends BXChar implements Comment { /** * Constructor. * @param n node reference */ public BXComm(final ANode n) { super(n); } }
/** * Fog monitor meteo edit dialog * * <pre> * * SOFTWARE HISTORY * * Date Ticket# Engineer Description * ------------- -------- --------- -------------------------------------------- * Sep 21, 2016 5901 randerso Remove unused style parameter to super * const...
/* cpdma_chan_get_min_rate - get minimum allowed rate for channel * Should be called before cpdma_chan_set_rate. * Returns min rate in Kb/s */ u32 cpdma_chan_get_min_rate(struct cpdma_ctlr *ctlr) { unsigned int divident, divisor; divident = ctlr->params.bus_freq_mhz * 32 * 1000; divisor = 1 + CPDMA_MAX_RLIM_CNT; ...
def __check_for_duplicated_field(title: str, info: str, long_info: str, request: dict) -> dict: _tn = Translator(get_language_from_cookie(request)) error = _tn.get(_.duplicate) + ': ' title_is_duplicate = DBDiscussionSession.query(Issue).filter_by(title=title).all() info_is_duplicate = DBDiscussionSessi...
import { IEnumerable } from "../Enumerable/IEnumerable"; import { IQueryResult } from "../Query/IQueryResult"; import { ICacheItem } from "./ICacheItem"; import { ICacheOption } from "./ICacheOption"; import { IResultCacheManager } from "./IResultCacheManager"; export class DefaultResultCacheManager implements IResult...
<reponame>cherouvim/cicn-nrs<filename>ccnxlibs/libccnx-common/ccnx/common/ccnx_Interest.c /* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 a...
<filename>src/resolvers/userResolvers/index.ts export * as userMutations from './mutations/index' export * as userQueries from './queries/index'
// StringValue is a convenience to create a String value. If tt is nil, a value of // StringType is returned, otherwise requires tt must be of the String kind. func StringValue(tt *Type, x string) *Value { if tt == nil { tt = StringType } v := ZeroValue(tt) v.AssignString(x) return v }
// DashboardRowLayoutRowsWidgetsScorecardToProto converts a DashboardRowLayoutRowsWidgetsScorecard object to its proto representation. func MonitoringDashboardRowLayoutRowsWidgetsScorecardToProto(o *monitoring.DashboardRowLayoutRowsWidgetsScorecard) *monitoringpb.MonitoringDashboardRowLayoutRowsWidgetsScorecard { if o...
Parallel Selection with High Probability Given a set of n elements in some unknown order, parallel comparison algorithms to select the tth highest with probability $1- o(1)$ as $n \to \infty $ are considered, where each order is assumed to be equally likely. Such an algorithm is given using four rounds and $cn$ compar...
<reponame>haddocking/haddock3 """Running CNS scripts""" import os import shlex import subprocess from haddock.core.defaults import CNS_EXE, NUM_CORES from haddock.core.exceptions import CNSRunningError, JobRunningError from haddock.libs.libparallel import Scheduler class Job: """A job to be executed by the engin...
About This Game A classical fairy-tale springs to life in this charming, chalk-art puzzle/platformer! Dokuro puts players in command of a charming little skeleton who is fed up with his master, the Dark Lord, and resolves to rescue a recently kidnapped princess. The princess is blind to the various dangers and pitfall...
/** * identifies that this object can be destroyed */ export interface Destroyable { /** * destroys this object */ destroy(): void; }
The viewing figures got off to a solid start, and the early weekend coverage in the U.S. means the games have been given a chance to grow a fanbase. NBC's decision to bet big on soccer, signing a three-year deal to snatch U.S. rights for England's Premier League away from Fox, was considered one of the riskier rights ...
// Actions the card should do. @Override public void use(AbstractPlayer p, AbstractMonster m) { if (playedBySwarm && m.isDeadOrEscaped()){ m = AbstractDungeon.getMonsters().getRandomMonster((AbstractMonster)null, true, AbstractDungeon.cardRandomRng); } if (isHornet) { ...
/** * @brief Armazena float do topo da pilha de operandos no array de variaveis locais no indice 2 * @param *curr_frame Ponteiro para o frame atual * @return void */ void fstore_2(Frame* curr_frame) { Operand *op = curr_frame->operand_stack.top(); curr_frame->operand_stack.pop(); curr_frame->local_vari...
/// Run all schema migrations. /// /// When multiple `graph-node` processes start up at the same time, we ensure /// that they do not run migrations in parallel by using `blocking_conn` to /// serialize them. The `conn` is used to run the actual migration. fn migrate_schema(logger: &Logger, conn: &PgConnection) -> Resu...
{-# LANGUAGE TemplateHaskell #-} module Day10( solve1', solve2', ) where import Relude import Relude.Extra.Foldable1 import Data.Text (pack, unpack) import Control.Lens import qualified Data.Set as Set import Linear.V2 import Text.Megaparsec import Text.Megaparsec.Char import Text.Show (Show(..)) import Util...
// DisableThrottlerOptions suppresses the presence of throttler-related flags, // effectively disallowing external users to parametrize default throttling // behavior. This is useful mostly when a program creates multiple GH clients // with different behavior. func DisableThrottlerOptions() FlagParameter { return func...
// Write results to results_dir and return them as // an ActionOutput struct static ActionOutput write_download_results(const fs::path& results_dir, const int exit_code, const std::string& std_out, ...
// Unsubscribe is used to send an Unsubscribe request to the MQTT server. // It is passed a pre-prepared Unsubscribe packet and blocks waiting for // a response Unsuback, or for the timeout to fire. Any response Unsuback // is returned from the function, along with any errors. func (c *Client) Unsubscribe(ctx context.C...
The First Battle of Gettysburg: April 22, 1861 The fears of invasion voiced by the residents of south-central Pennsylvania prior to the Gettysburg Campaign are often the subject of ridicule in books and articles written on the battle. But to appreciate the events that occurred during the summer of 1863, it is necessar...
Links between the Orientation of Vascular Smooth Muscle and Microscopical Composition of Aortic Segments We analyzed histological data statistically describing the distribution of orientations of vascular smooth muscle cells (VSMC) within porcine aorta. The data were correlated with the fractions of actin, desmin, vim...
import numpy as np import pytest from neuraxle.steps.numpy import OneHotEncoder @pytest.mark.parametrize("n_dims", [1, 2, 3]) @pytest.mark.parametrize("no_columns", [10]) def test_one_hot_encode_should_encode_data_inputs(n_dims, no_columns): one_hot_encode = OneHotEncoder(nb_columns=no_columns, name='one_hot') ...
import io import os from collections import Counter, defaultdict, deque from heapq import heappush, heappop, heapify DEBUG = False def solve(N, X, Y, B): # Want X matching, and Y - X in derangement, and pad rest (pad possibly mixed with the derangements) match = X derange = Y - X if DEBUG: ...