content
stringlengths
10
4.9M
// UnmarshalJSON implements json.Unmarshaler func (c *Claims) UnmarshalJSON(b []byte) error { if b == nil { return nil } var entries map[string]interface{} if err := json.Unmarshal(b, &entries); err != nil { return xerrors.Errorf("jwtutil: (*Claims).UnmarshalJSON: %w", err) } if c.Standard == nil { c.Standa...
// Warn if application exits without writing valid shim data AIEShimDebugWriter::~AIEShimDebugWriter() { if (!mWroteValidData) { std::string msg("No valid data found for AIE Shim status. Please run xbutil."); xrt_core::message::send(xrt_core::message::severity_level::warning, "XRT", msg); } }
When Walmart announced earlier this month that it would begin selling the iPhone 5 with a surprisingly affordable $45-per-month, unlimited everything plan, there was much rejoicing. After all, you could never get away with paying that little per month for such attractive benefits—particularly, unlimited data—on a contr...
s=str(input()) acont=0 #0101... bcont=0 #1010... for i in range(len(s)): if i%2==0: if s[i]=="0": bcont+=1 else: acont+=1 if i%2==1: if s[i]=="0": acont+=1 else: bcont+=1 print(min(acont,bcont))
<gh_stars>0 import { Component } from '@angular/core'; import { Config, ModalController, NavParams } from '@ionic/angular'; import { AppData } from '../../providers/app-data.service'; @Component({ selector: 'page-search-filter', templateUrl: 'search-filter.html', styleUrls: ['./search-filter.scss'], }) export ...
//========================================================= // CTestHull - ShowBadNode - makes a bad node fizzle. When // there's a problem with node graph generation, the test // hull will be placed up the bad node's location and will generate // particles //========================================================= v...
<reponame>KSNINJA/Agora-web-frontend import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { HttpErrorResponse } from '@angular/common/http'; import Swal from 'sweetalert2'; import { ElectionService } from '../services/election.service'; import { ElectionDa...
Multiplexed CRISPR/CAS9‐mediated engineering of pre‐clinical mouse models bearing native human B cell receptors Abstract B‐cell receptor (BCR) knock‐in (KI) mouse models play an important role in vaccine development and fundamental immunological studies. However, the time required to generate them poses a bottleneck. ...
/** * SimpleListAdapter * Created by hongfei.tao on 2017/9/21. */ public class SimpleListAdapter extends RecyclerView.Adapter<SimpleListAdapter.SimpleViewHolder> { private List<String> mDataList; public SimpleListAdapter(List<String> list) { this.mDataList = list; } @Override public Si...
import { HttpService, Injectable, Logger, NotFoundException, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { OnEvent } from '@nestjs/event-emitter'; import { InjectModel } from '@nestjs/mongoose'; import mongoose, { Model } from 'mongoose'; import { MongoPostRemoveEvent } from ...
/** Describes an automation rule condition that evaluates a property's value. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "conditionType") @JsonTypeName("Property") @Fluent public final class AutomationRulePropertyValuesCondition extends AutomationRuleCondition { @Jso...
Analysis of the Active Constituents and Evaluation of the Biological Effects of Quercus acuta Thunb. (Fagaceae) Extracts We evaluated the antioxidant and antibacterial activity of hexnane, ethyl acetate, acetone, methanol, ethanol, and water extracts of the Quercus acuta leaf. The antioxidant properties were evaluated...
<reponame>dolencd/js-sdk<gh_stars>100-1000 export enum EStateConsistency { CONSISTENCY_UNSPECIFIED = 0, CONSISTENCY_EVENTUAL = 1, CONSISTENCY_STRONG = 2 }
from torch.utils.data import DataLoader from monai.data import Dataset import pickle from .transforms import ( train_transforms, public_transforms, valid_transforms, tuning_transforms, unlabeled_transforms, ) from .utils import split_train_valid, path_decoder DATA_LABEL_DICT_PICKLE_FILE = "./train...
def cmpd_hull_output_data(self, compound): data = {} hull_data = self.hull_data stable_compounds = self.stable_compounds c = compound if c in stable_compounds: stability = True else: stability = False Ef = hull_data[c]['E'] Ed = sel...
// Stabilire se la somma delle cifre di un numero a tre cifre è > 10 package main import ( "fmt" ) func main() { var n, prima, seconda, terza, somma int fmt.Println("Inserisci un numero") fmt.Scan(&n) terza = n % 10 prima = (n - (n % 100)) / 100 seconda = ((n % 100) - terza) / 10 if prima != 0 { fmt.Printl...
<filename>src/OrbitGl/CallstackThreadBar.cpp // Copyright (c) 2020 The Orbit 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 "CallstackThreadBar.h" #include <absl/strings/str_format.h> #include <stddef.h> #include <algorit...
def overview(data): title('Data Shape') print('Number of columns: {}'.format(data.shape[1])) print('Number of rows: {}'.format(data.shape[0])) title('Missing Values') missing_values = data.isnull().sum().sort_values() print('Most values missing from column: {}'.format(missing_values[-1])) pr...
/** * Sorts players by rating, wins (descending) and loses (ascending) */ private class PlayerComparator implements Comparator<Player> { @Override public int compare(final Player p1, final Player p2) { // Rank descending int result = p2.getRank().compareTo(p1....
Measuring Interactivity in Video Games Video games are a popular form of new media, and their use is impacting multiple fields of study within the communication discipline. For instance, research programs in mass communication, health, instructional, feminist/gender, interpersonal, and intercultural communication have...
Integration of methods of theory of graphs in architectural-construction design . The article raises the problem of finding the field of application of the mathematical theory of graphs to solving problems of architectural and structural design and the possibilities of including this knowledge in the educational proce...
/** * Run a new thread and start consuming the own queue */ private void run() { new Thread(() -> { try { connection = connectionFactory.newConnection(); Channel channel = connection.createChannel(); channel.basicConsume(USER_QUEUE_PREFIX + u...
/** * Upvote class - represents a reddit upvote. Use it to get some coins! * @author Justin * @since 12/29/20 * @category objects/JustinWare */ public class Upvote extends Items { /** * Creates an upvote object * @param targetPlayer The main player inside gameNav.game * @throws Exception if Upvo...
<reponame>cromefire/fritzbox-cloudflare-dyndns package avm import ( "bytes" "errors" "gopkg.in/xmlpath.v2" "net" ) func parseGetExternalIPAddressResponse(xml []byte) (net.IP, error) { path := xmlpath.MustCompile("//NewExternalIPAddress") root, err := xmlpath.Parse(bytes.NewBuffer(xml)) if err != nil { retu...
<gh_stars>1-10 {-# LANGUAGE OverloadedStrings, NoMonomorphismRestriction, FlexibleContexts, MultiParamTypeClasses, ScopedTypeVariables, DeriveDataTypeable, DeriveGeneric #-} module EZCouch.Model.Error where import Prelude () import ClassyPrelude import GHC.Generics import Data.Aeson hiding (Error) data Error = Err...
<reponame>helderhernandez/apaw-practice package es.upm.miw.apaw_practice.adapters.mongodb.factory.daos; import es.upm.miw.apaw_practice.TestConfig; import es.upm.miw.apaw_practice.adapters.mongodb.factory.entities.DegreeEntity; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Auto...
#include<stdio.h> int gcd(int a, int b) { if(a==0) return b; return (gcd(b%a, a)); } int main() { float a, b, c, d; scanf("%f %f %f %f", &a, &b, &c, &d); if((a/b)>(c/d)) { int upper = a*d - c*b; int lower = a*d; int gc = gcd(upper, lower); ...
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester process = cms.Process("dqm") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.load("HLTriggerOffline.Egamma.EgammaValidationReco_cff") process.post=DQMEDProducer("EmDQMPostProcess...
/** * This class provides an example of how to build a {@link HashTrees} object, * and using it. * * Read the following functions sequentially. * */ public class HashTreesUsage { /** * First of all a {@link HashTrees} is maintained for set of data(for * example a database). Using hash trees of primary and...
package me.shoutto.sdk.internal.http; import android.util.Log; import org.json.JSONException; import org.json.JSONObject; /** * Parse a response from the Shout to Me service that contains a "count" integer in the "data" JSON node */ public class CountResponseAdapter implements StmHttpResponseAdapter<Integer> { ...
<gh_stars>0 /** @file HIPFilterLibsB1-0-8.h * * @class HIPFilterLibsB1-0-8 * * @brief Class to allow modification of Heavy Ion Filter parameters via Job Options * * @authors <NAME> * * $Header: /nfs/slac/g/glast/ground/cvs/OnboardFilter/src/HIPFilterLibsB1-1-2.h,v 1.1 2008/09/20 18:14:22 usher Exp $ */ #ifndef __HIPF...
/** * This method generates the xor verifier for word documents &lt; 2007 (method 2). * Its output will be used as password input for the newer word generations which * utilize a real hashing algorithm like sha1. * * @param password the password * @return the hashed password * * ...
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim:ts=4:sw=4:expandtab import pygame from pygame.locals import * def update(time_passed): for t in Timer.timers: t.update(time_passed) class Timer: timers = [] def __init__(self, interval, oneshot, cb): print "initiating timer" self.ti...
<reponame>codegods/blo import { createStyles, Theme } from "@material-ui/core/styles"; export let RootStyles = (theme: Theme) => createStyles({ heading: { fontFamily: "'Comfortaa', cursive", padding: theme.spacing(1), }, grid: { padding: theme.spacing(1),...
Build a CI/CD Pipeline with Kubernetes and Rancher 2.0 Recorded Online Meetup of best practices and tools for building pipelines with containers and kubernetes. Watch the training Since I started playing with Docker I have been thinking that its network implementation is something that will need to be improved before ...
def juju_ssh_single_line(cmd: List[str]) -> str: output = subprocess.check_output(cmd).decode('UTF-8') lines = output.split('\n') for line in lines: stripped = line.strip() if stripped: return stripped return ''
/** * Add another mail credentials. * @param mailCredentials */ private static void addMailCredential(MailCredentials mailCredentials) { boolean isEquals = false; for (MailCredentials mc : mailCredentialsList) { if (mc.equals(mailCredentials)) { isEquals = true...
<gh_stars>0 #include "FaceQuality.h" #include <opencv2/imgproc/types_c.h> using namespace std; using namespace Vision_FaceAlg; FaceQuality::FaceQuality() { srand((unsigned)time(NULL)); } FaceQuality::~FaceQuality() { } //---------------------------------------- // 质量判定函数 // input: input_image 输入图像, // ...
Tucked away behind a psychic readings storefront, Employees Only, the West Village memorial to the speakeasy, celebrated last night not just the 81st anniversary of the end of Prohibition, but also its own 10th anniversary. Between the libations, the jazz band and the burlesque dancers, revelers might have forgotten wh...
use crate::cpp_data::*; use crate::cpp_ffi_data::*; use crate::cpp_ffi_generator::NewFfiFunctionKind; use crate::cpp_function::*; use crate::cpp_type::*; use itertools::Itertools; #[test] fn cpp_method_kind() { assert!(!CppFunctionKind::Constructor.is_destructor()); assert!(CppFunctionKind::Constructor.is_cons...
We know that many of you are concerned about the status of YAPC::NA::2016. Let us assure you, we are working hard towards next year's event. Planning began approximately a month before YAPC::NA::2015 was over, however we've hit a number of roadblocks along the way. We haven't really been able to say much, until now, an...
Kuma Report, February 2017 Here’s what happened in February in Kuma, the engine of MDN: Added Demo deployments in AWS Promoted the Sauce Labs partnership Packaged MDN data Shipped tweaks and fixes Here’s the plan for March: Ship read-only maintenance mode Test examples at the top of reference pages Ship the sa...
<gh_stars>100-1000 #include "Statistics.hpp" #include "GfxDevice.hpp" #include <chrono> namespace Statistics { int drawCalls = 0; int barrierCalls = 0; int fenceCalls = 0; int shaderBinds = 0; int renderTargetBinds = 0; int createConstantBufferCalls = 0; int allocCalls = 0; int totalAll...
package psidev.psi.mi.jami.json.elements; import psidev.psi.mi.jami.json.MIJsonUtils; import psidev.psi.mi.jami.model.CvTerm; import psidev.psi.mi.jami.model.Organism; import java.io.IOException; import java.io.Writer; /** * Json writer for Host organisms. It writes celltype, tissue and compartment * * @author <N...
/** * <p>The CMET binding metadata associated with a MIF file. Derived from a coremif file with root=DEFN and artifact=IFC. * * @author <a href="http://www.intelliware.ca/">Intelliware Development</a> */ @Root public class CmetBinding implements Documentable { @Attribute(required=false) private String cmetName...
/** * A way to quickly get a cursor for the folder's state. Unlike {@link * DbxUserFilesRequests#listFolder(String)}, {@link * DbxUserFilesRequests#listFolderGetLatestCursor(String)} doesn't return * any entries. This endpoint is for app which only needs to know about new * files and modificati...
Michael Kruse is a senior staff writer for Politico. JOHNSTOWN, Pa.—Pam Schilling is the reason Donald Trump is the president. Schilling’s personal story is in poignant miniature the story of this area of western Pennsylvania as a whole—one of the long-forgotten, woebegone spots in the middle of the country that gave...
<gh_stars>10-100 package composite import ( "testing" ) func TestRelationNameConflict(t *testing.T) { t.Logf("success (compiling means succeeded)") }
// TestClient_ValidateSRVRecord will test the method ValidateSRVRecord() func TestClient_ValidateSRVRecord(t *testing.T) { client, err := newTestClient() assert.NoError(t, err) assert.NotNil(t, client) t.Run("valid cases", func(t *testing.T) { var tests = []struct { name string srv *net.SRV port...
/** * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a> * */ public class EmbeddedScpWagonTest extends AbstractEmbeddedScpWagonTest { @Override protected Wagon getWagon() throws Exception { ScpWagon scpWagon = (ScpWagon) super.getWagon(); scpWagon.setInteractive(...
import assert from 'assert' import { SafeEngine, OracleRelayer, ContractApis, StabilityFeeTreasury, } from '@reflexer-finance/geb-contract-api' import { ContractList, GebProviderInterface, } from '@reflexer-finance/geb-contract-base' import { NULL_ADDRESS, ETH_A, ONE_ADDRESS } from './../const'...
// duplicate declaration of methods here to avoid trait import in certain existing cases // at time of addition. impl KeyValueDB for Database { fn get(&self, col: &str, key: &[u8]) -> io::Result<Option<DBValue>> { Database::get(self, col, key) } fn get_by_prefix(&self, col: &str, prefix: &[u8]) -> ...
def _validate_label_image_weights(self, proposal): value = proposal['value'] value = np.array(value, dtype=np.float32) if self.rendered_label_image: labels = len(np.unique(itk.array_view_from_image(self.rendered_label_image))) if labels != len(value): rais...
#pragma once #include "Config.h" #include <lrcpp/Components.h> #include <SDL.h> class Video : public lrcpp::Video { public: Video(); bool init(Config* config, lrcpp::Logger* logger); void destroy(); double getCoreFps() const; void clear(); void present(); // lrcpp::Video virtual ...
#include <sstream> #include <c_types.h> #include <base_type.h> #include "smt_conv.h" #include "smt_tuple.h" #include "smt_tuple_flat.h" /* An optimisation of the tuple flattening technique found in smt_tuple_sym.cpp, * where we separate out tuple elements into their own variables without any * name mangling, and ...
#! /usr/bin/env python """ arast-client -- commandline client for Assembly RAST """ import argparse import errno import json import logging import os import sys import time from ConfigParser import SafeConfigParser from assembly import asmtypes from assembly import auth from assembly import client from assembly impo...
package org.queryman.builder.command.impl; import org.junit.jupiter.api.Test; import org.queryman.builder.BaseTest; import org.queryman.builder.Query; import org.queryman.builder.command.select.SelectFromStep; import org.queryman.builder.command.select.SelectJoinStep; import org.queryman.builder.token.Expression; imp...
<reponame>ravage84/phpinspectionsea<filename>src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/UnsetConstructsCanBeMergedInspector.java package com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage; import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.Problem...
def create_task(self, coro: Coroutine): async def _schedule_task(): await self._queue.put(coro) return asyncio.run_coroutine_threadsafe(_schedule_task(), loop=self.loop)
def log_switch(self, level, response): switch_dict = {"INFO": logging.info, "ERROR": logging.error, "WARNING": logging.warning }.get(level, logging.info)(msg=response)
The Union government has spent over Rs 1,100 crore in two and a half years on advertisements featuring Prime Minister Narendra Modi, a Right to Information (RTI) query revealed. This expenditure was between 1 June, 2014 and 31 August, 2016, according to information provided by the Union Information and Broadcasting Min...
//----------------------------------------------------------------------------- // Purpose: Appled on shield add/remove. //----------------------------------------------------------------------------- void CTFPlayerShared::UpdateResistanceShield(void) { #ifdef CLIENT_DLL bool bDisplayShield = false; if (m_pOuter->m_S...
package com.redisgeek.functions.redis.leapahead.string; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Component; import java.util.Map; import java.util.function.Function; @Component public class Set implements Function<Map<String,String>, String> { private ...
/** * This is a demo class illustrating the usage of the benchmark * functions. * * @param params * the parameters which are completely ignored ^^ */ public static final void main(final String[] params) { final Function f; final double[] best, cur; final int dim; final double...
On Wednesday, Minnesota woman Anmarie Calgaro gave a press conference where she announced her intention to sue her 17-year-old transgender child who is seeking gender reassignment. Calgaro is represented by attorney Erick Kaardal and Thomas More Society, the latter of whom is notorious for defending David Daleiden, cr...
Studying the Reliability Implications of Line Switching Operations This paper proposes a method for studying the reliability implications of line switching operations in power systems. Two case studies are conducted on RTS and IEEE 118-bus system to illustrate this method. This method is designed to explore previously...
ES Lifestyle Newsletter Enter your email address Please enter an email address Email address is invalid Fill out this field Email address is invalid You already have an account. Please log in or register with your social account Tonight The Book of Mormon, the wildly acclaimed Broadway musical from South Park creators...
<filename>lucet-runtime/lucet-runtime-internals/src/sysdeps/linux.rs use libc::{c_void, ucontext_t, REG_RIP}; #[derive(Clone, Copy, Debug)] pub struct UContextPtr(*const ucontext_t); impl UContextPtr { #[inline] pub fn new(ptr: *const c_void) -> Self { assert!(!ptr.is_null(), "non-null context"); ...
package seclang import ( "fmt" "github.com/senghoo/modsecurity-go/modsecurity" "github.com/senghoo/modsecurity-go/seclang/parser" ) func init() { RegisterDire(new(DireRequestBodyAccess)) RegisterDire(new(DireResponseBodyAccess)) RegisterDire(new(DireRuleEngine)) } // DireRequestBodyAccess type DireRequestBody...
// findNode populates update with nodes that constitute the path to the // node that may contain key. // // The candidate node will be returned. If update is nil, it will be not used // (the candidate node will still be returned). If update is not nil, but it // doesn't have enough height (levels) for all the nodes i...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkConstexprMath_DEFINED #define SkConstexprMath_DEFINED #include "SkTypes.h" #include <limits.h> template <uintmax_t N, uintmax_t B> struct SK_LOG { //! Compile-...
<filename>tests/mocks/UserDatabaseMock.ts import { User } from "../../src/model/User"; export const userDatabase = { createUser: jest.fn(async (user: User) => {}), };
def mlooked_path(path, looks, crop_out): base, ext = splitext(path) return "{base}_{looks}rlks_{crop_out}cr{ext}".format( base=base, looks=looks, crop_out=crop_out, ext=ext)
#include <bits/stdc++.h> using namespace std; int C(int N, vector<int>& X) { int s, d; s = 0; d = round((double) accumulate(X.begin(), X.end(), 0) / N); for (int& x: X) s += (x - d) * (x - d); return s; } int main() { int N; cin >> N; vector<int> X(N); for (int i = 0; i < N; i++) cin >> X[i]; cout <...
/** * Can return any int, positive or negative, of any size permissible in a 32-bit signed integer. * @return any int, all 32 bits are random */ public final int nextInt() { final int s0 = stateA; final int s1 = stateB ^ s0; stateA = (s0 << 26 | s0 >>> 6) ^ s1 ^ (s1 << 9); ...
def matches_AMOUNT(self, terminal: "BIN_Terminal") -> bool: _, iso, cases, genders = cast(AmountTuple, self.t2) if terminal.startswith("amount"): if terminal.num_variants >= 1 and terminal.variant(0).upper() != iso: return False if terminal.num_variants >= 2: ...
<gh_stars>0 {-# OPTIONS_GHC -Wall #-} {-# LANGUAGE OverloadedStrings #-} module Elm.Compiler.Imports ( addDefaults ) where import qualified Data.Name as Name import qualified AST.Source as Src import qualified Elm.ModuleName as ModuleName import qualified Reporting.Annotation as A -- ADD DEFAULTS addDefau...
<filename>dcm-work-spark/src/main/java/com/imooc/java/MoreParallelismJava.java package com.imooc.java; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.Function2; import org.apache.spark.api.java.fu...
The development of analytical psychology in Chinese mainland: A Chinese perspective To give a comprehensive account of the development of analytical psychology in the Chinese mainland, this article reviews the developmental history, analyses the status quo and features and identifies some contemporary problems. Analyt...
def gp_fan(gp,fan,ALL): global L2 if len(gp) < 2: print "single node group for entire graph" return [[]] gp_map = get_map(gp) print 'gp_map done' assert not -1 in gp_map, '-1 at location %d'%gp_map.index(-1) gpfan = [] L2 = set([i for i in range(len(gp)) if len(gp[i]) > 1]) ...
#ifndef GTFS_H #define GTFS_H #include "../grab.h" namespace transit::gtfs { void init(); bool loop(); // Update every minute constexpr static auto gtfs_grabber = grabber::make_refreshable_grabber( grabber::make_https_grabber(init, loop, pdMS_TO_TICKS(90*1000)), slots::protocol::GrabberID::TRANSIT ); } #...
package com.youngmanster.collection_kotlin.recyclerview.tree.exception; import com.youngmanster.collection_kotlin.recyclerview.tree.base.Tree; /** * @author: WelliJohn * @time: 2018/8/6-17:12 * @email: <EMAIL> * @desc: 递归跳出的异常 */ public class StopMsgException extends RuntimeException { private Tree tree; ...
def main(): script = sys.argv[0] for filename in sys.argv[1:]: histogram_by_video(filename)
// 189. Rotate Array // right rotate func rotateRight(nums []int, k int) { k %= len(nums) reverse(nums, 0, len(nums)-1) reverse(nums, 0, k-1) reverse(nums, k, len(nums)-1) }
/** * Logging util which uses java.util.logging. * Needs access to the client configuration, so make sure the config exist either in the default location or path is * specified by system property "com.secucard.connect.config". * * @see SecucardConnect.Configuration#get() */ public class Log { private final Log...
The debut of Magento Commerce wasn’t simply the appearance of a new system in ecommerce. It was not by chance that it became one of the most popular systems in an incredibly short period of time, and it got the immediate attention of the major brands as well. The previous systems, no matter whether they were open-sou...
<reponame>mono83/query package types import "strings" // IsFloat returns true if underlying given data type // can hold or produce float values. func IsFloat(v interface{}) bool { if v == nil { return false } switch x := v.(type) { case float32, float64: return true case *float32, *float64: return true c...
def _PerCentroidNormalization(self, unnormalized_vector): unnormalized_vector = tf.reshape( unnormalized_vector, [self._codebook_size, self._feature_dimensionality]) per_centroid_norms = tf.norm(unnormalized_vector, axis=1) visual_words = tf.reshape( tf.where( tf.greater(...
// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #ifndef LISTITEMCONTAINER_H #define LISTITEMCONTAINER_H #include <QGraphicsWidget> #include <QColor> #include "abstractitemcontainer.h" class QGraphicsLinearLayout; class Abstract...
package com.klinker.android.messaging_sliding.emoji_pager.adapters; import android.content.Context; import android.util.TypedValue; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.klinker.android.messaging_donate.R; public class PeopleEmojiAdapter extends BaseEmoji...
//zirzamin ba ye ESTEDADE KHAS hme jaro migireo ESTESMARE FAZ #include <bits/stdc++.h> #define put(x) cerr << #x << ": " << x << '\n' #define line() cerr << "**************\n" //#define mul(x, y) ((x * y) %mod) using namespace std; typedef long long ll; typedef long double ld; const int maxn = 1e5 + 10; int n; int ...
import React, { FC, ReactNode, useRef, useState, useEffect } from 'react'; import { FlatList, GestureResponderEvent, ScrollView, StyleProp, View, ViewProps, ViewStyle, Dimensions, TextStyle, I18nManager } from 'react-native'; import Animated from 'react-nativ...
<gh_stars>0 package httpheader import ( "net/http" "reflect" ) const ( tagIdentifier = "header" ) // An InvalidBindError describes an invalid argument passed to Bind. // (The argument to Bind must be a non-nil pointer.) type InvalidBindError struct { Type reflect.Type } func (e *InvalidBindError) Error() string...
package vgu //#cgo darwin LDFLAGS: -L../host/lib/macosx/ub/gle/standalone -lAmanithVG //#cgo windows LDFLAGS: -L../host/lib/win/x86_64/gle/standalone -lAmanithVG //#cgo rpi LDFLAGS: -L/opt/vc/lib -lOpenVG -lEGL -lGLESv2 //#include "VG/vgu.h" import "C" import "github.com/JamesDunne/golang-openvg/vg" type ErrorCodeEn...
<reponame>sknyuki/Homework public class Homework04 { public static void main(String[] args) { float rand1 = (float) Math.random(); float rand2 = (float) Math.random(); System.out.println("1번 랜덤값 : " + rand1); System.out.println("2번 랜덤값 : " + rand2); } }
/** * Verifies the mail address by creating it with EasyPost. Uses strict verification that returns error details. * * <p>See https://www.easypost.com/docs/api/java#create-and-verify-addresses * * @param address the address to verify * @return result with verified address, or error details...
Urinary Nitric Oxide in Newborns with Infections Background: Neonatal sepsis is a major problem in newborn nurseries because of the difficulty in early diagnosis and because of the high morbidity and mortality. The objective of the present study was to investigate whether urinary nitric oxide (NO) levels could be usef...
A United Nations panel responsible for enforcing anti-drug treaties just issued a stark warning to the U.S., Canada and other countries where marijuana legalization is being considered and enacted. Countries are prohibited from legalizing cannabis — except for medical and scientific purposes — under three drug control...
How Does the Power Protector Work? The circuit is designed to cut power to a circuit under test if the current flowing is too big or the current leaving the device is not equal to the current entering the device. Overcurrent is done with a simple current sense circuit whereas the current imbalance is done with an elec...
A Study of TP53 RNA Splicing Illustrates Pitfalls of RNA-seq Methodology. TP53 undergoes multiple RNA-splicing events, resulting in at least nine mRNA transcripts encoding at least 12 functionally different protein isoforms. Antibodies specific to p53 protein isoforms have proven difficult to develop, thus researchers...