content
stringlengths
10
4.9M
/** * Run fuzz tests with Defensics and publish resulting HTML report. * * @param jenkinsRun Jenkins run that started this. * @param workspace Workspace of Jenkins job. * @param launcher Launcher of Jenkins run. * @param testPlan Fuzz testing is don...
// Figure out how much fuel can be generated, given <ore> int64_t Formula::compute_fuel(int64_t ore) { int64_t fuel_min(ore / compute("ORE", 1)), fuel_max(ore); while ((fuel_max - fuel_min) > 1) { int64_t mid = (fuel_min + fuel_max) / int64_t(2); if (compute("ORE", mid) <= ore) { fuel_min = mid; }...
/** * Characterizes the features that a particular {@link IndexProvider} implementation supports * * @author Matthias Broecheler (me@matthiasb.com) */ public class IndexFeatures { private final boolean supportsDocumentTTL; public IndexFeatures(boolean supportsDocumentTTL) { this.supportsDocumentTT...
def gather_conjurations(card: Card) -> List[Card]: conjurations = card.conjurations if card.conjurations else [] for conjuration in conjurations: conjurations = conjurations + gather_conjurations(conjuration) return conjurations
#!/usr/bin/env python3 # Copyright (c) 2019-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running bitcoind with multiple custom chains with different genesis blocks """ from test_framewo...
// Database reads a fasta database and generates a gene ID to gene name map func Database(filename string, ignoreInvalid bool) ([]types.Protein, map[string]string) { file, err := fs.Instance.Open(filename) if err != nil { log.Fatalln(err) } defer file.Close() geneMap := make(map[string]string, 0) proteins := ma...
<reponame>NurbsOtter/OttBot2<filename>telegram/usercommands.go package telegram import ( "OttBot2/models" "OttBot2/settings" "fmt" "strconv" "strings" tgbotapi "gopkg.in/telegram-bot-api.v4" ) //Handles non-command messages to record user information/changes func HandleUsers(upd tgbotapi.Update, bot *tgbotapi....
On 29 May, a Ukrainian military helicopter carrying military and nonmilitary service personnel was shot down by fighters near Slovyansk in the Donetsk region of eastern Ukraine. At least twelve men were killed, including one general from Lviv and six members of Ministry of Internal Affairs units, who were from the Ivan...
package com.github.uniliva.restutils.dto; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpHeaders; import com.github.uniliva.commonsutils.dto.BaseDTO; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @No...
<gh_stars>0 import React from 'react'; import Head from 'next/head'; export default function Financials() { return ( <main className="main"> <Head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>CU Giving 2019 - Financials</title> </Head> <div className="js-fin-slider fi...
/** * @brief Show the dialog with the exit question * @return The new dialog * @details Show the dialog with the exit question */ private Dialog exitDialog() { final String titleExit = getString(R.string.DialogTitleExit); final String question = getString(R.string.DialogQuestion); return new AlertDi...
/* Copyright 2020 Freerware * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
/* eslint-disable @typescript-eslint/camelcase */ import { DataSource } from "@app/data-source/data-source"; export class Clinic { constructor( public id: number, public city: string, public house: string, public street: string, public aviariesQuantity: number, ) {} ...
<gh_stars>0 {-# LANGUAGE DataKinds , FlexibleInstances , GADTs , KindSignatures , OverloadedStrings , StandaloneDeriving #-} module Generator where import Control.Monad import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString...
/** A TagCount object's fields are read from the file. They are read from * the current position and the file is not closed afterwards. */ public static TagCount readTagCount(DataInputStream rf) { try { TagCount tc = new TagCount(); int numTags = rf.readInt(); tc.map = Generics.newHashMap(n...
// AccessReview returns the target 'access_review' resource. // // Reference to the resource that is used to submit access review requests. func (c *Client) AccessReview() *AccessReviewClient { return NewAccessReviewClient( c.transport, path.Join(c.path, "access_review"), ) }
Abstract 3206: IQuery: A tool aggregating multiple gene set analysis methods, based on networks and pathways in a community-driven public data repository The investigation of gene sets identified in experiments and analyses is a common task for biologists. This includes identification of relevant pathway networks, nei...
def update_launch_plan(self, update_request): return self._stub.UpdateLaunchPlan(update_request)
package nav import ( "bytes" "context" "encoding/gob" "fmt" "sync" "time" "github.com/google/uuid" "github.com/modernice/goes/event" ) // ReadCache is a read-cache for Navs. type ReadCache struct { repo Repository mux sync.RWMutex cache map[uuid.UUID][]byte } // NewReadCache returns a new ReadCache. f...
// Gateways returns all gateways associated with this Installation func (i Installation) Gateways() ([]Gateway, error) { var g gatewayListWrapper err := i.api.get(fmt.Sprintf("installations/%d/gateways", i.Id), &g) if err != nil { return nil, err } for index := range g.Data { g.Data[index].api = i.api } retu...
<reponame>nlowe/aoc2019<gh_stars>0 package day4 import ( "fmt" "strconv" "strings" "github.com/nlowe/aoc2019/challenge" "github.com/nlowe/aoc2019/util" "github.com/spf13/cobra" ) const maxPasswordLength = 6 var A = &cobra.Command{ Use: "4a", Short: "Day 4, Problem A", Run: func(_ *cobra.Command, _ []stri...
Simulation of a computer communication network with GPSS & SIMSCRIPT: report on a case-study project for students The results and experiences of a simulation case-study conducted in a seminar for advanced students of applied computer science are reported.A simulation model of a hypothetical teleprocessing network link...
def swav_resnet50(pretrained=True, **kwargs): model = __resnet50(pretrained=False, **kwargs) model.fc = torch.nn.Identity() if pretrained: state_dict = torch.hub.load_state_dict_from_url( url="https://www.robots.ox.ac.uk/~vgg/research/pass/pretrained_models/swav_200ep.pth.tar", ...
ERCP in post-Billroth II gastrectomy patients: emphasis on technique Objective: Endoscopic retrograde cholangiopancreatography (ERCP) in post-Billroth II (BII) gastrectomy is more difficult due to anatomical changes. The difficulties include entrance to the afferent loop and selective cannulation. Our aim here is to r...
// updateServiceRecords will apply the records for the specified service. // It returns the key that was set (or "" if no key was set) func (c *ServiceController) updateServiceRecords(service *v1.Service) string { var records []dns.Record specExternal := service.Annotations[AnnotationNameDNSExternal] specInternal :=...
def createmark(pro_name, marks): pdf_buf = BytesIO() pdf_buf = fileSystem.open_file_bytes_io(f'{pro_name}/type1/template.pdf') pdf_input = PdfFileReader(pdf_buf, strict=False) page = pdf_input.getPage(0) width = float(page['/MediaBox'][2]) height = float(page['/MediaBox'][3]) tmp_mark = Byte...
<filename>PatarnRightTringle.java import java.util.Scanner; public class PatarnRightTringle { public static void main(String[] args) { Scanner input=new Scanner(System.in); int i,row,clo; System.out.println("how many row u want: "); row=input.nextInt(); for(i=1;i<=ro...
/** * Representation of a holder for a proper path and its corresponding schema. */ public class SchemaPathHolder { /** * Schema context for the path. */ private InstanceIdentifierContext insId; /** * Formatted path. */ private String uri; /** * Constructs schema path h...
// FIXME: avoid passthrough methods impl<P> TOutputProtocol for TMultiplexedOutputProtocol<P> where P: TOutputProtocol, { fn write_message_begin(&mut self, identifier: &TMessageIdentifier) -> ::Result<()> { match identifier.message_type { // FIXME: is there a better way to override identifier here...
def waypointProxSup(row, col, d, conf_map): p = np.concatenate((row[...,None], col[...,None]), axis=-1) indices_all = [] indices_good = set() for index_1, p_1 in enumerate(p): indices_temp = [] indices_all.append(index_1) indices_temp.append((index_1, conf_map[p_1[0], p_1[1]])) ...
A Geometric Proof of the Feigin-Frenkel Theorem We reprove the theorem of Feigin and Frenkel relating the center of the critical level enveloping algebra of the Kac-Moody algebra for a semisimple Lie algebra to opers (which are certain de Rham local systems with extra structure) for the Langlands dual group. Our proof...
NOTE: XFINITY.com is the place to be for all of your “Survivor: Worlds Apart” scoop! I delved deep into the Nicaraguan wilderness on a mission to bring you all kinds of stuff including behind-the-scenes tidbits, pre-game interviews with the cast, insights from “Survivor” host Jeff Probst and Challenge Producer John Kir...
package com.marcelsouzav.udemy.music.upload.api.service; import com.marcelsouzav.udemy.music.upload.api.gateway.json.MusicUploadJson; import org.apache.kafka.clients.producer.ProducerRecord; import org.apache.kafka.common.header.internals.RecordHeader; import org.apache.kafka.common.utils.Bytes; import org.springfram...
/* Copyright (C) 2011-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published b...
<gh_stars>0 #include "vtkFrameRegistration.h" // VTK header files #include "vtkTransformPolyDataFilter.h" #include "vtkTimerLog.h" #include "vtkObjectFactory.h" #include "vtkImageData.h" #include "vtkMath.h" #include "vtkTransform.h" #include "vtkMatrixToLinearTransform.h" #include "vtkMatrix4x4.h" #include "vtkImageR...
def sent_embed(x, word2vec): sent_vec = np.zeros((300,)) for word in x: if word in word2vec: sent_vec = np.add(sent_vec, np.array(word2vec[word])) return sent_vec
#!/usr/bin/env python # coding: utf-8 # In[ ]: get_ipython().run_line_magic('matplotlib', 'inline') import numpy as np import matplotlib.pyplot as plt from PIL import Image import cv2 # In[ ]: content = 'hiking.jpg' ### ENTER IMAGE NAME HERE ### style = 'fractal.jpg' ### ENTER IMAGE NAM...
<reponame>gitter-badger/CB-Apps-Bots-Framework /** Represents a cast vote */ type vote = [string, string]; /** * Manages votes and ballots */ namespace votes { "use strict"; /** * The cast votes */ let casts: vote[] = []; /** * The current ballot */ let ballot: string[] = []; /** * Cast or change ...
You might have been lucky to be mentored by someone who knew the inner operations of the workforce and taught you how to succeed in working with others however, for most people, they find out the hard way through experience. Office politics are usually blamed for those who have been caught in the middle of problems at...
def group_values(df,col1,agg1,col2): groupby_weather = df.groupby(col2).agg({col1:agg1}) plt.figure(figsize=(20,5)) plt.bar(groupby_weather.index,groupby_weather[col1]) plt.xticks(rotation = 90) plt.show()
/** * Adds an object to the current bulk insert * * @param dataObject * an object of type {@link T} to be inserted when * {@link IDataBaseAdapter#commitBulkInsert(Context)} is called */ public void addToBulkInsert(T dataObject) { if (bulkList == null) { throw new IllegalStateExcep...
<reponame>EmmanuelJohnson/Economic-Contributions-of-Fisher-Women-App import { Component, OnInit } from '@angular/core'; import Chart from 'chart.js'; import { SibobsService } from './../../services/sibobs.service'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { ques } from "./../.....
// createLogExporter creates a logs exporter based on this config. func createLogsExporter(ctx context.Context, set component.ExporterCreateSettings, cfg config.Exporter) (component.LogsExporter, error) { exporterConfig := cfg.(*Config) exporterConfig.setClientOptions() gcpExporter, err := gcpFactory.CreateLogsExpor...
<gh_stars>1-10 // Copyright 2016 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fcntl.h> #include <stdlib.h> #include <base/files/file_path.h> #include <base/files/file_util.h> #include <base/files/scoped...
/* * Copyright 2020 HPB Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Available on November 22, 2016 DVD | BLU-RAY About Gatchaman Crowds insight You can’t keep a good Gatchaman down, especially when a new organization called VAPE (short for Violent Ape) starts hijacking CROWDS technology. The ensuing wave of “Red CROWDS” incidents targeting high profile targets like the Prime Ministe...
import java.util.*; import java.lang.*; import java.io.*; public class G2 { public static void main(String[] Args){ Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int m=scan.nextInt(); int ta=scan.nextInt(); int tb=scan.nextInt(); int k=scan.ne...
/** * Represents a single template object. */ public class TemplateView { private final String id; private final DateTime createdAt; private final DateTime modifiedAt; private final DateTime lastUsed; private final String name; private final Optional<String> description; private final Imm...
<filename>jani/core/config/JaniDeploymentConfig.cpp //////////////////////////////////////////////////////////////////////////////// // Filename: DeploymentConfig.cpp //////////////////////////////////////////////////////////////////////////////// #include "JaniDeploymentConfig.h" Jani::DeploymentConfig::DeploymentCon...
<gh_stars>0 import matplotlib.pyplot as plt import numpy as np import pandas as pd import os import statsmodels.api as sm from scipy import stats import pylab def main(): #folder = "../mia-results-10-10/" folder = "../mia-results-final/" data_dice, data_hdr, labels, dirs = loadData(folder) #plotDice...
/** * Decode a TLV8 item * * @param pp_data payload pointer, got update to next item when done * @param p_len len of payload, got updated to remaining item when done * * @return TLV8 item. * * @note If the decoded payload > 255, function will automatically malloced * a continuous buffer to assembly data...
Image segmentation based upon topological operators: real-time implementation case study In miscellaneous applications of image treatment, thinning and crest restoring present a lot of interests. Recommended algorithms for these procedures are those able to act directly over grayscales images while preserving topology...
// TEST DISABLED because Exc fn not functional rn. // Also big integrated tests probably need rethinking. func __TestSandboxExecFn(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() dir, err := ioutil.TempDir("", "") if err != nil { t.Error(err) } defer os.RemoveAll(dir) socketsDir := ...
// DeleteWorkingDir removes harness working directory func (harness *Harness) DeleteWorkingDir() error { dir := harness.WorkingDir fmt.Println("delete: " + dir) err := os.RemoveAll(dir) return err }
Trends in the Development of Machinery and Associated Technology ” TMT 2012 , Dubai , UAE , 10-12 September 2012 VERIFICATION OF DESIGNED PARAMETERS OF PLANT FOR ELECTROCHEMICAL INVESTIGATIONS This work presents the general principes of design and operation the plant for electrochemical investigations in Mining and Me...
package kubescaler import ( "context" "errors" "fmt" "github.com/theredrad/kubescaler/nodepoolmanager" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/watch" "math" "time" ) var ( ErrNotEnoughResources = errors.New("not enough resources") ) type Config struct { NodeSelector string MinimumNode int Maxim...
/** * User agent collector * * @see <a href="https://techblog.willshouse.com/2012/01/03/most-common-user-agents/">Most Common User Agents - Tech Blog (wh)</a> * @see <a href="https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/org/apache/commons/math3/distribution/EnumeratedDistribution.html">Enumerat...
A new shelter for LGBT young adults, originally slated to be hosted in a church, is in the works for downtown San Antonio. But there are now discussions to house it as a separate unit within Haven for Hope, a city center that offers services and shelter for the homeless. For San Antonio’s displaced LGBT youth, among th...
/** * A class used to construct the GetToken request to the sample Cognito * developer authentication application. */ public class GetTokenRequest extends Request { private final String endpoint; private final String uid; private final String key; private final boolean useSSL; private final Map<...
<reponame>devonfw-forge/mts-gigaspaces<filename>spring-data-gigaspaces/src/main/java/org/springframework/data/gigaspaces/repository/config/GigaspacesRepositoriesRegistrar.java package org.springframework.data.gigaspaces.repository.config; import org.springframework.data.repository.config.RepositoryBeanDefinitionRegist...
// ChooseTemplate - Use a simple numeric selector to select templates for Windows systems func ChooseTemplate(tp *types.Templates) (template types.Template) { var templates []types.Template size := 0 for _, t := range tp.Template { size = size + 1 templates = append(templates, t) } output := []string{ "ID | ...
/** Returns true iff {@code configuration}'s artifacts contain linkage errors. */ private boolean findLinkageErrors(Configuration configuration) throws IOException { ClassPathResult classPathResult = createClassPathResult(configuration.getResolvedConfiguration()); ImmutableList.Builder<ClassPathEntry> c...
<filename>functions/node_modules/@types/lodash/collection/invokeMap.d.ts import _ = require("../index"); declare module "../index" { interface LoDashStatic { /** * Invokes the method named by methodName on each element in the collection returning * an array of the results of each invoke...
async def configuration_manager( *, reason: causes.WebhookType, selector: references.Selector, registry: registries.OperatorRegistry, settings: configuration.OperatorSettings, insights: references.Insights, container: aiovalues.Container[reviews.WebhookClientConfi...
Atheists are getting organized politically, to the point of forming a Political Action Committee that will endorse candidates, give them money, and organize grass-root support for their campaigns. Already the PAC, known as the Freethought Equality Fund, has endorsed four Congressional candidates. From Atheist PAC make...
/** *** Writes the specified String to the specified socket's output stream *** @param socket The socket which's output stream to write to *** @param val The String to write to the socket output stream. *** @throws IOException if an error occurs **/ protected static void socketWriteString(Socket so...
import { SortingHatUser } from './sorting-hat-user.entity'; describe('SortingHatUserEntity', () => { it('should be defined', () => { expect(new SortingHatUser()).toBeDefined(); }); });
The function of integrin linked-kinase (ILK) in normal and activated stellate cells–implications for fibrogenesis in wound healing Integrin-linked kinase (ILK) is a multidomain focal adhesion protein implicated in signal transduction between integrins and growth factor/extracellular receptors. We have previously shown...
def prep_data(raw,storemap,scat_op_club): valid_ref_doc_nums = [ 50, 2115, 8, 51, 2307, 3438, 2705, 263432, 3227, 82, 2901, 3413, 54, 3238] ref_doc_dict = { 50:'Bereavement', 2115:'Disaster', 8:'Holiday Bonus', 51:'Jury Duty', 2307:'Lump Sum Hourly', 3438:'Non-worked Hours', 2705:'OT pay Hist Awa...
/* SPDX-License-Identifier: MIT * * lda.rs * * Contains functions for performing LDA instructions * * Copyright (C) 2021 <NAME> <<EMAIL>> */ use cpu; use mem; use address; use setflags; /* * Executes the LDA instruction * * @param cpu The cpu onto which the instruction will be executed * * @param mem The ...
By Emily Hannon New data from the National Center for Health Statistics has found that life expectancy in the United States for 2015 has fallen for the first time in over two decades. One of the most alarming aspects of the fall is that it has no obvious, singular cause. Unlike the three other drops we’ve had in the p...
/** * Calculates the weighted position vega of interest rate future options using a Black surface and curves constructed using the discounting method. */ public class BlackDiscountingWeightedVegaIRFutureOptionFunction extends BlackDiscountingIRFutureOptionFunction { /** Property name for the number of base days. */...
def pearson_def(x, y): assert len(x) == len(y) n = len(x) assert n > 0 avg_x = average(x) avg_y = average(y) diffprod = 0 xdiff2 = 0 ydiff2 = 0 for idx in range(n): xdiff = x[idx] - avg_x ydiff = y[idx] - avg_y diffprod += xdiff * ydiff xdiff2 += xdiff...
// public API // core export { BarcodeFormat } from '@zxing/library'; // common export * from './common/HTMLCanvasElementLuminanceSource'; export * from './common/HTMLVisualMediaElement'; export * from './common/IScannerControls'; // readers export * from './readers/BrowserAztecCodeReader'; export * from './readers/...
// AddSync adds a component to the manager that should be initialized synchronously func (m *Manager) AddSync(component Component) { m.components = append(m.components, component) compName := reflect.TypeOf(component).Elem().Name() m.sync[compName] = struct{}{} }
import { Injectable } from '@angular/core'; import { State, initialState, Status, Class, Partisan, Group } from './app.definitions'; import getRandomName from './getRandomName'; @Injectable({ providedIn: 'root' }) export class StoreService { state: State = initialState; constructor() {} addStock(source: stri...
// ListForUser returns all of a user's dests, ordered by creation date. func (s *DestStore) ListForUser(ctx context.Context, userID eventdb.UserID, opts eventdb.DestListRequest) ([]eventdb.Dest, error) { const pageSize = 10 offset := opts.Page * pageSize limit := pageSize return s.list(ctx, ` WHERE user_id = $1 ...
/// Generates independent [SyntaxSet]s after analyzing dependencies between syntaxes /// in a [SyntaxSetBuilder], and then prints the reults. pub(crate) fn print_syntax_dependencies(syntax_set_builder: &SyntaxSetBuilder) { println!("Constructing independent SyntaxSets..."); let independent_syntax_sets = build_i...
<reponame>TimMikeladze/haloapi.dev const parseIp = (req: any) => req.headers[`x-forwarded-for`]?.split(`,`).shift() || req.socket?.remoteAddress; export default parseIp;
Parker Kligerman will return to the NASCAR Camping World Truck Series in 2017, but with a different look. The part-time racer is going old-school, partnering with Henderson Motorsports to compete in the organization’s No. 75 truck for at least eight to 10 races. Kligerman attempted to make his debut with the organizat...
. OBJECTIVE To compare the efficacy of psychological counseling for smokers in a cessation program in comparison with treatment based only on providing information about damage caused by tobacco and advice for quitting, and to determine the reasons patients started to smoke. PATIENTS AND METHODS We studied 249 patie...
// InspectService on a given directory, filtering by format func InspectService(format, directory string) (string, error) { var servicePath, service, cerr = getServicePackage(directory) switch { case os.IsNotExist(cerr): return "", errwrap.Wrapf("inspection failure: can't find service", cerr) case cerr != nil: ...
use crate::argument::ArgumentList; use crate::attribute::ExtendedAttributeList; use crate::common::{Identifier, Parenthesized}; use crate::types::{AttributedType, ReturnType}; /// Parses namespace members declaration pub type NamespaceMembers<'a> = Vec<NamespaceMember<'a>>; ast_types! { /// Parses namespace membe...
Increased training load and the beta-adrenergic-receptor system on human lymphocytes. The influence of increased training on the sympathoadrenergic system was investigated. Moderately trained male subjects (n = 15) increased their training within 10 wk by 60%; eight of the subjects increased their training volume, and...
n = int(input()) s = list(input()) colored = True way2 = False if s[0] == "?" or s[-1] == "?": way2 = True for i in range(2, n): if s[i - 1] == "?" and (s[i - 2] == s[i]): way2 = True for i in range(1, n): if s[i] != "?" and s[i - 1] == s[i]: colored = False if s[i] == ...
/** * Informational description of a Geofence. Unable to perform Geofence computations but easier to transfer over the network * or deserializer from disk. Can be converted into a normal Geofence instance using a GeofenceFactory */ public class GeofenceDescription { // Non-functional fields, but useful for a...
package com.shejiaomao.weibo.service.cache; import com.shejiaomao.weibo.db.LocalAccount; import com.shejiaomao.weibo.service.adapter.CommentsListAdapter; import com.shejiaomao.weibo.service.adapter.DirectMessagesListAdapter; import com.shejiaomao.weibo.service.adapter.MentionsListAdapter; import com.shejiaomao.w...
package userMeta import ( "testing" "github.com/stretchr/testify/assert" "github.com/ZeroTechh/UserService/core/utils" ) func TestMeta(t *testing.T) { assert := assert.New(t) meta := NewMeta() // Testing that meta can create, add and get user meta data data, _ := utils.GetMockUserData() meta.Create(data.U...
n=int(input()) home=[] away=[] for i in range(n): a,b=list(map(int,input().split())) home.append(a) away.append(b) x=0 for i in range(len(home)): if home[i] in away: x+=away.count(home[i]) print(x)
def save(self, *args, **kwargs): self.address_1 = self.address_1.rstrip(string.whitespace+',') self.address_2 = self.address_2.rstrip(string.whitespace+',') self.city = self.city.rstrip(string.whitespace+',').title() self.raw = '{},\n{},\n{}-{},\n{},\n{}\n'.format( self.a...
How do People Sort by Ratings? Sorting items by user rating is a fundamental interaction pattern of the modern Web, used to rank products (Amazon), posts (Reddit), businesses (Yelp), movies (YouTube), and more. To implement this pattern, designers must take in a distribution of ratings for each item and define a sensi...
<filename>src/test/java/users/UserControllerTest.java package users; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.converter.Htt...
<filename>MARCCTEST/MARCC_Analysis.py # -*- coding: utf-8 -*- """ Created on Sun Jul 10 10:58:24 2016 @author: login """ import matplotlib.pyplot as plt results = {} class MARCCRun(object): def __init__(self, job_num): self.job_num = job_num self.nodes = None self.calls = None sel...
Hal is now a responsible monarch as Henry V, his rejection of Falstaff hastening the latter's death. Told by courtiers that,through Edward III, he has a claim to the French throne he makes overtures to the Dauphin but is sent a humiliating present of tennis balls. He prepares an expeditionary force to cross the Channel...
<reponame>bassages/home-server package nl.homeserver.klimaat; import static nl.homeserver.klimaat.KlimaatBuilder.aKlimaat; import static org.assertj.core.api.Assertions.assertThat; import java.time.LocalDateTime; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; impor...
Aromatase/Seladin-1 Interactions in Human Neuronal Cell Culture, the Hippocampus of Healthy Rats and Transgenic Alzheimer’s Disease Mice Background/Aims: Decreasing levels of aromatase and seladin-1 could be one of the molecular mechanisms of Alzheimer’s disease (AD). Aromatase is an enzyme that catalyzes estrogen bio...
/* sshthreadedmbox.c Author: <NAME> <<EMAIL>> Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved Threaded message box interface implementation. This implementation is platform-independent, and relies on the sshmutex.h, sshcondition.h and sshthreadpool.h abstractions. *...
/** * This is the software fallback for Driver.GetCompressedTexImage(). * All error checking will have been done before this routine is called. */ void _mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level, GLvoid *img, const struct gl_te...
<gh_stars>1-10 /** * @Auther: 封玉书 FYS * @Date: 2019.11.16 22:24 * @Description: */ public class A64 { public static void main(String[] args) { A64 a64 = new A64(); int[][] grid = new int[][]{ {1, 3, 4, 8}, {3, 2, 2, 4}, {5, 7, 1, 9}, ...
A Secure Visual-thermal Fused Face Recognition System Based on Non-Linear Hashing In this paper, we propose a secure visual-thermal fused face recognition system using non-linear hashing. To extract features from both thermal and visible facial images, a deep neural network model pre-trained by visible images, namely ...