content
stringlengths
10
4.9M
The Only Way To Guarantee Your Music Is Heard By A Film/TV Music Supervisor With recorded music revenue in shambles as the transition from digital downloads to streaming takes place, one area where artists can still make some good money is from licensing. Placements. Sync. Whatever you want to call it, there is money ...
// close current package because it failed private void closePackage(ActivityPackage activityPackage, String message, Throwable throwable, boolean sendToPackageHandler) { final String packageMessage = activityPackage.getFailureMessage(); final String handlerMessage = packageHandler.getFailureMessage(); ...
I came home from work the other day to a package. It wasn't your usual Amazon box like is typically waiting when I get home. This package was different. In fact it was a bag not a box at all. What could it be? I wasn't expecting anything. Then I read the label. It was addressed to marcusbellius. That's weird, who knows...
<gh_stars>100-1000 package us.ihmc.robotics.math.trajectories; import us.ihmc.euclid.interfaces.Settable; import us.ihmc.euclid.tools.EuclidCoreFactories; import us.ihmc.euclid.tuple3D.interfaces.Point3DReadOnly; import us.ihmc.euclid.tuple3D.interfaces.Tuple3DReadOnly; import us.ihmc.euclid.tuple3D.interfaces.Vector3...
def validate_value(value, validation): if validation is None: return True validation = auto_valid(validation) if callable(validation): res = validation(value) if not res: raise ValueError("value {value} failed validation".format(value=value)) elif isinstance(validatio...
/** * Created by babak on 6/18/15. */ public class Graph { final AddressTable addressTable; final EdgeTable edgeTable; final NodeTypeTable nodeTypeTable; final NodeIdTable nodeIdTable; public Graph( AddressTable addressTable, EdgeTable edgeTable, NodeTypeTab...
def _load_model_params(self): self.seq_length = self.mapper_dict['seq_length'] self.vocab_size = self.mapper_dict['vocab_size'] self.momentum = 0.9
package com.criteo.hadoop.garmadon.reader.helper; /** * Reader helper classes */
Learning Dynamic Generator Model by Alternating Back-Propagation Through Time This paper studies the dynamic generator model for spatialtemporal processes such as dynamic textures and action sequences in video data. In this model, each time frame of the video sequence is generated by a generator model, which is a non-...
// Code generated by go-swagger; DO NOT EDIT. package data_set_management // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" "github.com/go-openap...
def authenticate(self, request, username=None, password=None): user = None try: crowd_logger.debug("Authenticate user '%s'..." % username) self.check_client_and_app_authentication() self.crowdClient.authenticate(username, password) user = self.create_or_up...
""" ====================== Masking the solar disk ====================== This example shows how to mask off emission from the disk. """ import numpy as np import numpy.ma as ma import matplotlib.pyplot as plt import astropy.units as u import sunpy.map from sunpy.data.sample import AIA_171_IMAGE ####################...
<gh_stars>1000+ // Copyright 2020 Makani Technologies LLC // // 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 ap...
(CNN) The White House just can't get its story straight about why President Trump decided to fire FBI Director James Comey. When the move was initially announced -- just before 6 p.m. ET on Tuesday night -- the White House pointed to a memo written by deputy Attorney General Rod Rosenstein that made the case that Come...
/* * This program is free software: you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be usefu...
/*************************************************************************** * Copyright (C) 2019 Clearpath Robotics. All rights reserved. * Unauthorized copying of this file, via any medium, is strictly prohibited * Proprietary and confidential **********************************************************************...
// NewUnregisterBrokerRequest returns a default UnregisterBrokerRequest // This is a shortcut for creating a struct and calling Default yourself. func NewUnregisterBrokerRequest() UnregisterBrokerRequest { var v UnregisterBrokerRequest v.Default() return v }
/// \brief Postprocess builtin cm_imul. /// /// template <typename T, int SZ> /// vector<T, SZ> __cm_intrinsic_impl_imul(vector<T, SZ> src0, /// vector<T, SZ> src1); llvm::Value *CGCMRuntime::HandleBuiltinIMulImpl(CMCallInfo &CallInfo) { QualType T = CallInfo.CE->getType(); assert(T->isCMVectorMatrixType()); T = ...
#pragma once #include <c10/core/Backend.h>
<reponame>pepsi7959/OpenstudioThai /********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
import { Injectable } from '@angular/core'; import { CategoryQuantityService, CategoryUtilService, Club, ClubEntity, ClubModel, ClubUtilService, EntityQuantity, EntityQuantityEnum, StateUtilService, } from '@zsport/api'; @Injectable() export class ClubUtilServiceImpl extends ClubUti...
<filename>include/system/vix_platform.h<gh_stars>0 #ifndef VIX_PLATFORM_h #define VIX_PLATFORM_H #endif
// Package exercice models the content (question, explanation, hints,..) // of an exercice. // An exercice is roughly a list of questions, and a question is represented // in this package in 3 forms: // - as written by a teacher, containing random parameters // - instanciated, where random parameters are generated // -...
/** * Base class for return router statistics * */ public class SegmentRouterTunnelResource extends ServerResource { protected final static Logger log = LoggerFactory.getLogger(SegmentRouterTunnelResource.class); @Post("json") public String createTunnel(String tunnelParams) { log.deb...
<reponame>hhandika/pretty-header mod handler; use handler::PrettyHeader; fn main() { let title = "PROCESSING LSUMZ1234"; let title_2 = "PROCESS"; let title_3 = "PROCESSORY"; let length = 98; let sym = '='; let mut header = PrettyHeader::new(title, sym, length); header.print_header().unwrap...
#ifndef PPOINT_HPP #define PPOINT_HPP #include "DPoint.hpp" #include <cmath> template<typename _Tp> class PPoint_ { public: // various constructors PPoint_(); template<typename _Tp2> PPoint_(Angle _angle, _Tp2 _radius); PPoint_(const PPoint_& pt); //! DPoint is converted to PPoint_; template<ty...
<reponame>Lukazoid/uom<filename>src/si/electric_current.rs //! Electric current (base unit ampere, A). quantity! { /// Electric current (base unit ampere, A). quantity: ElectricCurrent; "electric current"; /// Dimension of electric current, I (base unit ampere, A). dimension: ISQ< Z0, // le...
/** * Created by Administrator on 2017/7/2. * product information * one product maybe exist in the shop but not existed in the stock * */ public class Product { private String no; private String name; private PRODUCT_STATUS status; //product status ONSALE ==on market else the product cannot be sal...
class _Node: """ @brief A _Node object references a key, a value, and left and right children _Node objects. An OrderedSymTable object is composed of _Node objects. """ def __init__(self, key, value): # Reference to key. self.key = key ...
The decision may deepen Nawaz Sharif's rift with the ruling PPP Pakistan's Supreme Court has upheld bans on former prime minister and opposition leader Nawaz Sharif and his brother, Shahbaz, from elected office. Nawaz Sharif's PML-N party holds power in Punjab province. His brother is chief minister but must now step d...
def normalize_(vec, norm=1): if not torch.is_tensor(norm): norm = torch.tensor(norm, dtype=vec.dtype, device=vec.device) new_norm = norm / torch.norm(vec, dim=-1) vec.view(vec.size(0), -1).mul_(new_norm.unsqueeze(-1)) return vec
Christianity's increasingly multicultural face revealed in Australian church survey Posted More than a third of Australian churchgoers were born overseas, according to the latest National Church Life Survey report. Featuring data from more than 280,000 church attendees, it's the largest survey in the country after t...
<filename>3DRenderer/3DRenderer/src/Rendering/InputLayout.h #pragma once #include "Bindable.h" class InputLayout : public Bindable { public: InputLayout(Renderer& renderer, const std::vector<D3D11_INPUT_ELEMENT_DESC>& layout, ID3DBlob* pVertexShaderBytecode); virtual void bind(Renderer& renderer) override; virtua...
Bovine respiratory microbiota of feedlot cattle and its association with disease Bovine respiratory disease (BRD), as one of the most common and costly diseases in the beef cattle industry, has significant adverse impacts on global food security and the economic stability of the industry. The bovine respiratory microb...
/** * Handles redispatching of an event so that recursion of * dispatch requests does not occur. Event dispatch methods * within this manager (<code>dispatchEvent()</code>) and * the key event dispatchers should use this method to handle * dispatching rather than the dispatch method of the target * c...
/** * @brief Initialize I2S hardware interface * * This is a required implementation. * * @param pDev : Pointer to device private data to be initialized * @param pCfg : Pointer to configuration data * * @return true - Initialization success */ bool I2SInit(I2SDEV * const pDev, const I2SCFG * const pCfgData) { ...
# -*- coding: utf-8 -*- __author__ = 'gzp' from rest_framework.pagination import PageNumberPagination class APIPagination(PageNumberPagination): page_size = 10 page_size_query_param = 'page_size' page_query_param = 'page' max_page_size = 40
Interacting electrons in a random medium: a simple one-dimensional model The present paper is devoted to the study of a simple model of interacting electrons in a random background. In a large interval $\Lambda$, we consider $n$ one dimensional particles whose evolution is driven by the Luttinger-Sy model, i.e., the i...
Effect of hydrogen bond formation on the NMR properties of microhydrated ortho-aminobenzoic acid The influence of the hydrogen bond formation on the nuclear magnetic resonance parameters has been investigated in the case of microhydrated ortho-aminobenzoic acid (o-Abz) in the gas-phase. DFT-B3LYP/aug-cc-pVDZ predicted ...
Structural Elucidation of Suberin from the Bark of Cultivated Willow (Salix sp.). Although extractives have been symbolized as major bioactive pharmacological compounds fromSalix(Salicaceae) bark, we speculated that these pharmaceutical effects cannot be solely attributed to phenolic components and their derivatives, ...
South Korea's Sex Ed Guidelines Suggest Victims Are To Blame For Date Rape Enlarge this image toggle caption Jung Yeon-je/AFP/Getty Images Jung Yeon-je/AFP/Getty Images As the #MeToo movement spread across the Internet, with women coming forward sharing tales of sexual assault and harassment, South Korean women were ...
<filename>lolusers-master/vendor/google.golang.org/genproto/googleapis/api/serviceconfig/context.pb.go // Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/serviceconfig/context.proto // DO NOT EDIT! package google_api import proto "github.com/golang/protobuf/proto" import fmt "fmt...
/** * regmap_raw_write(): Write raw values to one or more registers * * @map: Register map to write to * @reg: Initial register to write to * @val: Block of data to be written, laid out for direct transmission to the * device * @val_len: Length of data pointed to by val. * * This function is intended to ...
<reponame>dryxtech/grade<gh_stars>0 /* * Copyright (c) 2021 DRYXTECH * * 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 requ...
//each number in array can appear multiple times public List<List<Integer>> combinationSum(int[] candidates, int target) { List<List<Integer>> result = new ArrayList<>(); findCombination(0, candidates, target, result, new ArrayList<>()); return result; }
def build_newsletter(self): env = Environment(loader=FileSystemLoader(os.path.join( self.home_dir, "templates"))) try: template = env.get_template(name=TEMPLATE_FILE_NAME) except TemplateNotFound: msg = "Unable to find template file '{tf}'!".format( ...
def button_state(self, int_capture_pin_val): if not int_capture_pin_val: self.is_pressed = True self.start = time.time() else: self.end = time.time() delta_t = self.end - self.start if delta_t < 0.5: if self.menu.current_node is self.menu.root: logger.info(self.menu.current_node.name + "...
// Create working sample data to test if the legacy // functions cause a runtime crash or return an error func TestLegacy(t *testing.T) { s := []float64{-10, -10.001, 5, 1.1, 2, 3, 4.20, 5} d := []stats.Coordinate{ {1, 2.3}, {2, 3.3}, {3, 3.7}, {4, 4.3}, {5, 5.3}, } _, err := stats.VarP(s) if err != nil ...
/* Copyright (C) GridGain Systems. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define ull unsigned long long #define pi pair<ll,ll> #define vi vector<ll> #define sc second #define ft first #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() #define sz(s) s.size() const ll N=2e5+5,MOD=1e9+7,INF = LONG_M...
Universal bitting depth key decoding utility Enter bitting depth measurements of a key to get some handy analysis. Use thousandths of an inch, and omit the decimal point. Many non-numerical characters are accepted as delimiters. system (no selection) A2 SFIC (Arrow, Falcon, Eagle, Best) A3 SFIC (Arrow, Falcon, Eagle,...
package net.hycrafthd.easy_crafting_book.mixin; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; import net.minecraft.client.options.KeyBinding; import net.minecraft.client.util.InputUtil; @Mixin(KeyBinding.class) public interface KeyBindingMixin { @Accessor("boundKey") ...
/// Hoisting Docs pub mod hosting;
<reponame>p3nt4/Amber /* This is just a simple payload delivery system similar to metasploits reverse TCP handler. It first sends the size of the payload in a 4 byte packet then sends the actual payload. */ package main import "github.com/fatih/color" import "encoding/binary" import "io/ioutil" import "strcon...
<reponame>chrishoen/Dev_CCLib //****************************************************************************** //****************************************************************************** //****************************************************************************** #include "stdafx.h" #include "ccCounter.h" ...
// --------------------------------------------------- // Used to handle a bug : the speed bug // MGY - 22-nov-2002 // Return True if the tank is on Convoyor. // --------------------------------------------------- int CLTank::TestIfConvCanMoveTank() { switch (Game.PF[Game.Tank.X][Game.Tank.Y]) { case 15: if ...
# coding=utf-8 import numpy as np import cv2 from math import (floor, ceil) import matplotlib.pyplot as plt def interpolate(first_value: float, second_value: float, ratio: float) -> float: """Interpolate with a linear weighted sum.""" return first_value * (1 - ratio) + second_value * ratio def get_array_v...
<commit_msg>Make this header file self-contained git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12480 91177308-0d34-0410-b5e6-96231b3b80d8 <commit_before>//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file w...
package com.alibaba.cobar.client.test.services; import java.util.List; import org.springframework.transaction.annotation.Transactional; import com.alibaba.cobar.client.entities.Offer; import com.alibaba.cobar.client.support.vo.BatchInsertTask; public class NormalOfferService extends AbstractOfferService { @Tra...
// -- copyright // OpenProject is an open source project management software. // Copyright (C) 2012-2021 the OpenProject GmbH // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which i...
def psd_rebin(vdf, phi, energy0, energy1, step_table): if isinstance(energy0, xr.DataArray): energy0 = energy0.data else: pass if isinstance(energy1, xr.DataArray): energy1 = energy1.data else: pass step_table = step_table.data energy_r = np.sort(np.hstack([energy...
/** * Implementation note: this function caches the results of each lookup so that subsequent * can be made faster. * @param c * @return * @throws IOException */ public boolean isConfluence(Coordinate c) throws IOException { if (confluenceCache.containsKey(c)) { return confluenceCache.get(c); } P...
int LNx65 , Mi, P3kk,QvxC3//n1 ,k87omut , Xna, Hi , pG, myLE , Pdveh ,j ,au, //7 xeau ,/*sMx*/ Dr, ZI , dbVP, Wjsy , B,g7W ,lewE/*PL*/,m , zz2A5 , KRypU, H8 , gSU ,Xsb,J4P , //E KPs ,zG , G7Wr , vp2 , lm ,S8vz , RY, L47/**/,O2 ,oR , OZ, As ,Hl // , v , Iu , nrg ,dNTSdP ,M, NL ,og ,/*J...
package com.tv.ui.metro.model; import java.io.Serializable; public class Image implements Serializable { private static final long serialVersionUID = 3L; public static class Position implements Serializable{ private static final long serialVersionUID = 1L; public int x; public int y; ...
class CephConnection: """Helper class to abstract API state for RADOS and RBD, with only a single cluster/pool/image opened at the same time. Improves structuring and reasoning about edge cases/closing handles""" rados_id: str # will be admin if None key: bytes # will be base64 encoded config: st...
<reponame>ttakuya50/xo<filename>internal/github_com-goccy-go-yaml.go // Code generated by 'yaegi extract github.com/goccy/go-yaml'. DO NOT EDIT. package internal import ( "context" "github.com/goccy/go-yaml" "go/constant" "go/token" "reflect" ) func init() { Symbols["github.com/goccy/go-yaml/yaml"] = map[strin...
# Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: Apache-2.0 # DeepSpeed Team from torch import nn from deepspeed.model_implementations.transformers.ds_bloom import DeepSpeedBloomInference from deepspeed.model_implementations.transformers.ds_gpt import DeepSpeedGPTInference from deepspeed.model_implem...
/* * Using static globals for simplicity. Use your own DI method however you want. */ public class Exchange { public static interface BodyImpl extends ContentTypeSenders , JsonSender , JsonParser , HtmlTemplateSender {}; private static final BodyImpl BODY = new BodyImpl(){}; ...
/** * There are sometimes line elements which have fewer cells than other line elements within * a lines element; this element exists to fill those out. */ public class PlaceHoldingLayoutElement implements TableJoiningWithHeader { private int colSpan; /** * Constructs a PlaceHoldingLayoutElement,...
def create_previews(self): self.storage.prepare() chdir(self.tmp_folder) preview_folder = path.join(self.tmp_folder, 'previews') self.pages = self.get_num_pages() if self.pages < self.max_previews: self.max_previews = self.pages pages = '1-%s' % self.max_pre...
package com.company.revise.Day05; public class Text_EmpJavaBean { public static void main(String[] args) { EmpJavaBean empJavaBean = new EmpJavaBean("ldd", 18, "llll", 1111111); System.out.println(empJavaBean.getName()+empJavaBean.getAge()+empJavaBean.getEmp()+empJavaBean.getSal()); } }
2 Variable Clustering in High-Dimensional Linear Regression : The R Package clere Dimension reduction is one of the biggest challenge in high-dimensional regression models. We recently introduced a new methodology based on variable clustering as a means to reduce dimensionality. We introduce here an R package that imp...
Microstrip dual-mode triangular patch resonator bandpass filters with two or four transmission zeros An in-line feed-line configuration for design microstrip dual-mode triangular patch resonator bandpass filters (BPFs) is presented in this paper. By properly arranging the feed-line positions, it generates two or four ...
// UnsecuredKubeletConfig returns a KubeletConfig suitable for being run, or an error if the server setup // is not valid. It will not start any background processes, and does not include authentication/authorization func UnsecuredKubeletConfig(s *options.KubeletServer) (*KubeletConfig, error) { hostNetworkSources, e...
<filename>ffmpegDemo/class/PlayerVC.h // // PlayerVC.h // ffmpegDemo // // Created by 天明 on 2017/11/30. // Copyright © 2017年 天明. All rights reserved. // #import <Foundation/Foundation.h> #import "OpenGLView20.h" @interface PlayerVC : NSObject @property (nonatomic, strong) OpenGLView20 *glView; - (instancetype)init...
// Open & close ops // Blocking calls void BingAlignedFileReader::open(const std::string &fname, bool enable_writes, bool enable_create) { m_filename = fname; this->register_thread(); }
package helm func BuildHelmChart() {}
// UnmarshalDateTime unmarshals time.Time from the SOAP "dateTime" type. This // returns a value in the local timezone. func UnmarshalDateTime(s string) (result time.Time, err error) { dateStr, timeStr, zoneStr, err := splitCompleteDateTimeZone(s) if err != nil { return } if len(zoneStr) != 0 { err = fmt.Errorf...
// B.L method for voter authentication public String validateVoter() { System.out.println("validate voter " + email + " " + password); try { details = dao.authenticateVoter(email, password); status = details.getRole() +" , "+details.getEmail()+ ", login Successful "; if (details.getRole().equals("voter")...
class Superclass: """A lightweight superclass descriptor.""" __slots__ = ('verb', 'fqcn', 'package', 'name') def __init__(self, verb, fqcn): """Initialize the object.""" self.verb = verb self.fqcn = fqcn if fqcn.find(':') >= 0: split_fqcn = fqcn.split(sep=':') ...
package hyj.weinxin_chat.flowWindow; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import android.widget...
/** * Descriptor for File type sinks. * * @author Nick Collier */ public class FileSinkDescriptor extends AbstractTextSinkDescriptor { private String fileName = "ModelOutput.txt"; private boolean addTimeStamp = true; /** * Creates a {@link FileSinkDescriptor} * * @param name */ public FileSi...
Security contractors recently discovered pre-installed software in some Android phones that secretly sends all the user's text messages to China every 72 hours, The New York Times reported. Kryptowire, the security firm that discovered the clandestine feature, said the software was written by the China's Shanghai Adup...
import Console from '@utils/tools/console'; class Translation { public checkJoin(defaultValue: string, text: string, seperator: string) { const bad = text.split(seperator).find(entry => entry === defaultValue); const regex = new RegExp('/(w+)(W+)?/gm'); if (bad && bad.length !== 0) { Console.trans...
As someone who does a bit of graphics programming in his day job and as a hobby, it can be said that I'm a fan of graphics technology. Despite that, I think it's long past the time where PC developers should stop worrying about graphical spectacle, because the pursuit of graphics is doing us more harm than good. In th...
/** * An exception representing that opentelemetry protobuf data type was unable to * be converted to java Object. * * @since 1.3 */ public class OTelDecodingException extends RuntimeException { public OTelDecodingException(Throwable cause) { super(cause); } public OTelDecodingException(String...
/** * Calls {@link Collection#add(Object)} on the underlying {@link Collection} * and returns itself * * @param e * the element to add * @return the {@link CollectionBuilder} itself * @see Collection#add(Object) */ public CollectionBuilder<E, T> add(final E e) { _inte...
Acrylonitrile induction of rodent neoplasia: Potential mechanism of action and relevance to humans Acrylonitrile, an industrial chemical, is a multisite carcinogen in rats and mice, producing tumors in four tissues with barrier function, that is, brain, forestomach, Zymbal’s gland, and Harderian gland. To assess mecha...
// NOLINT(namespace-envoy) #include <string> #include <unordered_map> #include <vector> #ifndef NULL_PLUGIN #include "proxy_wasm_intrinsics.h" #include "source/extensions/common/wasm/ext/envoy_proxy_wasm_api.h" #else #include "source/extensions/common/wasm/ext/envoy_null_plugin.h" #endif START_WASM_PLUGIN(CommonWasmT...
<reponame>Jordanh1996/sql-books import React, { useState, useCallback, useEffect } from 'react'; import { promises as fs } from 'fs'; import clsx from 'clsx'; import styles from './BooksPage.css'; import { BookList } from '../../components/books/book-list/BookList'; import { BookForm } from '../../components/books/book...
def mdt_parallel_keys(request): letters_limit = 2 suggestions_limit = 8 valid_call = True autocomplete_req = None docrule_id = None key_name = None doc_mdts = {} resp = [] try: docrule_id = request.session['indexing_docrule_id'] except KeyError: pass try: ...
<reponame>MyPureCloud/platform-client-sdk-cli package models import ( "encoding/json" "strconv" "strings" ) var ( TopicrequestMarshalled = false ) // This struct is here to use the useless readonly properties so that their required imports don't throw an unused error (time, etc.) type TopicrequestDud ...
import { GrpcDelegationDelegatorReward, GrpcDelegationResponse, GrpcReDelegationResponse, GrpcUnbondingDelegation, GrpcValidator, GrpcValidatorCommission, GrpcValidatorDescription, } from '@injectivelabs/chain-consumer' import { BigNumberInWei } from '@injectivelabs/utils' import { DecCoin } from '@inject...
def interpret(self, bytecode): self.bytecode = bytecode self.scopes = [] global_scope = ir.Scope(parent=None, loc=self.loc) self.scopes.append(global_scope) self.cfa = controlflow.ControlFlowAnalysis(bytecode) self.cfa.run() if config.DUMP_CFG: self.cf...
<gh_stars>1-10 use std::ffi::CString; use nix::errno::Errno; use rust_honeybee_sys::*; pub struct HoneyBeeHive { hive: *mut hb_hive, } type ErrnoResult<T> = std::result::Result<T, Errno>; impl Drop for HoneyBeeHive { fn drop(&mut self) { unsafe { hb_hive_free(self.hive) } } }...
def memory_use(self): local_mem = self.detdata.memory_use() for iname, it in self.intervals.items(): if len(it) > 0: local_mem += len(it) * ( sys.getsizeof(it[0]._start) + sys.getsizeof(it[0]._stop) + sys.getsizeof(i...
/** * public method to compare if this timer matches with the key attributes passed. * @param quest : Quest instance to which the timer is attached * @param name : Name of the timer * @param npc : Npc instance attached to the desired timer (null if no npc attached) * @param player : Player instance attached t...
def environment(self, enviro: str) -> Union[sandbox, production]: if isinstance(enviro, str): if enviro in ["sandbox", "production"]: if enviro == "sandbox": self.urls = sandbox() else: self.urls = production() p...
class MelScalingConfig: """Parameters for mel frequency scaling. https://en.wikipedia.org/wiki/Mel_scale """ num_mel_bins: int = 128 """Number of frequency bins in the scaled spectrogram.""" lower_edge_hz: float = 50.0 """Lower bound of frequency bin centers.""" upper_edge_hz: Optional[float] = None...
/** * Testing class for {@link ReleaseDateFlipStrategy} class. * * @author <a href="mailto:cedrick.lunven@gmail.com">Cedrick LUNVEN</a> */ public class ReleaseDateFlipStrategyTest { // initialize ff4j FF4j ff4j = new FF4j("ff4j-strategy-releasedate.xml"); @Test public void testReleaseDateStrateg...