text string | label_name string | labels int64 |
|---|---|---|
Pallet, Call, Event} = 19,
// Oracle
//
// NOTE: OperatorMembership must be placed after Oracle or else will have race condition on initialization
// DexOracle: dex_oracle::{Pallet, Storage, Call}, = 20
SetheumOracle: orml_oracle::<Instance1>::{Pallet, Storage, Call, Event<T>} = 21,
OperatorMembershipSethe... | Rust | 0 |
s DataMessage(_message.Message):
__metaclass__ = _reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DATAMESSAGE
# @@protoc_insertion_point(class_scope:DataMessage)
class ColumnMessage(_message.Message):
__metaclass__ = _reflection.GeneratedProtocolMessageType
DESCRIPTOR = _COLUMNMESSAGE
# @@protoc_in... | Python | 1 |
hnologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// 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 applica... | Rust | 0 |
::{channel, Receiver};
use std::thread::{sleep, spawn};
use std::time::Duration;
#[derive(Debug)]
pub struct Event {
pub x: u16,
pub y: u16,
}
pub fn spawn_thread(interval_ms: u64) -> Receiver<Event> {
let interval = Duration::from_millis(interval_ms);
let (tx, rx) = channel();
spawn(move || loop ... | Rust | 0 |
scaling=scaling,
base_layer=self.get_base_layer(),
base_result=base_result,
)
if requires_conversion:
result = result.to(expected_dtype)
return result
def __re... | Python | 1 |
output buffer to send events to host
#[repr(C)]
pub struct OutgoingEvents {
num_events: i32,
_reserved: isize,
event_ptrs: [*mut MidiEvent; OUTPUT_BUFFER_SIZE],
events: [MidiEvent; OUTPUT_BUFFER_SIZE],
}
impl OutgoingEvents {
pub fn new() -> Self {
// create placeholders, ownership stays h... | Rust | 0 |
* ( 0 as * const nvmlBridgeChipHierarchy_st ) ) .
bridgeCount as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
nvmlBridgeChipHierarchy_st ) , "::" , stringify ! (
bridgeCount ) ));
assert_eq! (unsafe {
... | Rust | 0 |