content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
a > 0.0f) return 1.0f;
if (a < 0.0f) return -1.0f;
return 0.0f;
}
// taken from http://www.terathon.com/code/oblique.html
private static void MakeProjectionMatrixOblique(ref Matrix4x4 matrix, Vector4 clipPlane)
{
Vector4 q;
// Calculate the clip-space corner point oppos... | C# |
ok_ad = false;
}
}
}
else if(gt.isHomRef()) {
final int ad_not_ref= Arrays.stream(ad).skip(1L).sum();
if(ad_not_ref>0 && ad[0]+ ad_not_ref >0)
{
final double ratio = ad_not_ref/(double)(ad[0]+ad_not_ref);
if(ratio > this.hom_treshold) {
ok_ad = false;
... | Java |
;
let result = f(self);
self.scope = scope;
result
}
}
impl Reader for UperReader {
type Error = UperError;
#[inline]
fn read_sequence<
C: sequence::Constraint,
S: Sized,
F: Fn(&mut Self) -> Result<S, Self::Error>,
>(
&mut self,
f: F,... | Rust |
3, r1, 0x08
mr r4, r30
lis r5, PageNumber@ha
addi r5, r5, PageNumber@l
mr r6, r29
bl getCsvDataS32__2MRFPlPC8JMapInfoPCcl
lwz r3, 0x08(r1)
cmpw r3, r31
bne .__AllStarList_IsPageUnlocked_LoopContinue
addi r3, r1, 0x0C
mr r4, r30
lis r5, GalaxyName@ha
addi r5, r5, GalaxyName@l
mr r6, r29
bl getCsvDataStr__2MRFPPCcPC8JM... | Assembly |
): Mono<User> {
return null!!
}
@Test
fun fastestFlux() {
var repository1 = ReactiveUserRepository(MARIE, MIKE)
var repository2 = ReactiveUserRepository(250)
var flux = useFastestFlux(repository1.findAll(), repository2.findAll())
flux.test()
.expectNe... | Kotlin |
NAME="apollo-username"
export SPRING_CONFIG_DATASOURCE_PASSWORD="apollo-password"
# portal db
unset SPRING_SQL_PORTAL_INIT_MODE
export SPRING_PORTAL_DATASOURCE_URL="jdbc:mysql://your-mysql-server:3306/ApolloPortalDB?useUnicode=true&characterEncoding=UTF8"
export SPRING_PORTAL_DATASOURCE_USERNAME="apollo-username"
expor... | Markdown |
assert.NoError(t, err)
createdConfig, err := utils.FileRead(targetDockerConfigPath)
assert.Equal(t, customDockerConfig, string(createdConfig))
})
t.Run("failed to copy image", func(t *testing.T) {
t.Parallel()
config := imagePushToRegistryOptions{
SourceRegistryURL: "https://source.registry",
Sou... | Go |
["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
days: CalendarDay[] = [];
day: CalendarDay;
currentMonth: string;
currentMonthNumber: number;
currentYear: number;
constructor(private dateService: DateService) {}
ngOnInit() {
// test
this.currentMonth = this.date... | Typescript |
MAX_SATURATING_ADD_ONE, MAX);
const ZERO_SATURATING_SUB_ONE : Duration = ZERO.saturating_sub(ONE);
assert_eq!(ZERO_SATURATING_SUB_ONE, ZERO);
const MAX_SATURATING_MUL_TWO : Duration = MAX.saturating_mul(2);
assert_eq!(MAX_SATURATING_MUL_TWO, MAX);
}
fn main() {
duration();
}
/*
Break repeating-k... | Rust |
switch ( event->GetType() )
{
default:
break;
case CChoreoEvent::SUBSCENE:
{
// Just grab end time
CChoreoScene *scene = LoadScene( event->GetParameters() );
if ( scene )
{
event->SetEndTime( params.m_flStartTime + scene->FindStopTime() );
}
delete scene;
}
break;
cas... | C++ |
# LOE rbx r14 r15 r12d r13d
.cfi_endproc
# mark_end;
.type __jsvml_tanhf4_ha_ex,@function
.size __jsvml_tanhf4_ha_ex,.-__jsvml_tanhf4_ha_ex
..LN__jsvml_tanhf4_ha_ex.5:
.data
# -- End __jsvml_tanhf4_ha_ex
.text
.L_2__routine_start___jsvml_stanh_ha_cout_rare_internal_6:
# -- Begin __jsvml_stanh_ha_c... | Assembly |
trợ năng",contents:"Nội dung Hỗ trợ. Nhấn ESC để đóng hộp thoại.",legend:[{name:"Chung",items:[{name:"Thanh công cụ soạn thảo",legend:"Nhấn ${toolbarFocus} để điều hướng đến thanh công cụ. Nhấn TAB và SHIFT-TAB để chuyển đến nhóm thanh công cụ khác. Nhấn MŨI TÊN PHẢI hoặc MŨI TÊN TRÁI để chuyển sang nút khác trên than... | JavaScript |
gHook,
storeFinishedHook: storeFinishedHook,
cache: cache,
}
}
type fakeCatalog struct {
catalog.Catalog
stores map[string]*fakeSVIDStore
}
func (c *fakeCatalog) GetSVIDStoreNamed(name string) (svidstore.SVIDStore, bool) {
svidStore, ok := c.stores[name]
return svidStore, ok
}
type fakeCache st... | Go |
[i], new NumericNode(numbers[i], i + 1));
}
//Other numeric tokens
NumericNode[] tokens =
{
new NumericNode("a", 1),
new NumericNode("an", 1),
new NumericNode("half a", 0.5f),
new NumericNode("half of a", 0.5f),... | C# |
"""
Write a python function to interchange the first and last elements in a list.
assert swap_List([12, 35, 9, 56, 24]) == [24, 35, 9, 56, 12]
"""
def swap_list(input_list):
"""
This function takes a list as an argument and returns a new list with the first and last elements interchanged.
"""
if len(inp... | Python |
/* Spa */
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#include <string.h>
#include <stdio.h>
#include <spa/utils/defs.h>
#include <spa/param/audio/raw.h>
#define VOLUME_MIN 0.0f
#define VOLUME_NORM 1.0f
struct volume {
uint32_t cpu_flags;
const char *func_name;
... | C |
e
}
}
return false
}
}
package g3501_3600.s3507_minimum_pair_removal_to_sort_array_i
// #Easy #Array #Hash_Table #Heap_Priority_Queue #Simulation #Linked_List #Ordered_Set
// #Doubly_Linked_List #2025_04_09_Time_2_ms_(100.00%)_Space_43.35_MB_(97.44%)
class Solution {
fun minimumPai... | Kotlin |
amp; 0xf) == 0x4 || parseInt(backing_store_ptr & 0xf) == 0xc) `{`
faker[15] = p64(0x08042a31,0x7ffffffe);
faker[11] = p64(0x080426dd,0x08342195)
`}`
//获得伪造的对象
var arb_bufferArray = fakeObject(0x08342148);
var fake_doubleArr = fakeObject(0x08342170);
var offset;
if (parseInt(backing_store_ptr & 0xf) == 0... | Markdown |
lizeProp<P>(
IsarReader reader,
int propertyId,
int offset,
Map<Type, List<int>> allOffsets,
) {
switch (propertyId) {
case 0:
return (reader.readDateTime(offset)) as P;
case 1:
return (reader.readString(offset)) as P;
case 2:
return (_ExtensibleSettingsmodelTypeValueEnumMap[
... | Dart |
ующей версии
</div>
)}
</>
)}
</div>
);
};
export default BillingManager;
import React, { useState, useEffect } from 'react';
import {
Card,
Button,
Badge,
Input,
Select,
Label,
Textarea
} from '../ui/native';
import {
Plus,
Edit,
Trash2,
Pac... | JavaScript |
4 v5, v1, vcc_lo
// CHECK: [0x05,0x00,0x31,0xd1,0x01,0xd5,0x00,0x00]
v_min_u16_e64 v5, v1, vcc_hi
// CHECK: [0x05,0x00,0x31,0xd1,0x01,0xd7,0x00,0x00]
v_min_u16_e64 v5, v1, m0
// CHECK: [0x05,0x00,0x31,0xd1,0x01,0xf9,0x00,0x00]
v_min_u16_e64 v5, v1, exec_lo
// CHECK: [0x05,0x00,0x31,0xd1,0x01,0xfd,0x00,0x00]
v_min_u... | Assembly |
在本节中,我们介绍了通过异构文本网络来学习预测性文本嵌入的方法。 我们的方法首先通过将由自由文本构造的异构文本网络,嵌入到低维空间中,来学习单词的向量表示,然后基于所学习的单词向量推断文本嵌入。 由于异构文本网络由三个二分网络组成,我们首先介绍一种嵌入单个二分网络的方法。
### 4.1 二分网络嵌入
在我们之前的工作中,我们引入了 LINE 模型来学习大规模信息网络的嵌入 [27]。 LINE 主要用于同构网络,即具有相同类型节点的网络。 LINE 不能直接应用于异构网络,因为不同类型边上的权重不可比较。 在这里,我们首先调整 LINE 模型以嵌入二分网络。 基本思想是利用顶点之间的二阶邻近 [27],假设具有相似邻域的顶... | Markdown |
structsTest');
goog.require('goog.array');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.structs');
goog.require('goog.structs.Map');
goog.require('goog.structs.Set'); // needed for filter
goog.require('goog.testing.jsunit');
/*
This one does not test Map or Set
It tests Array, Ob... | JavaScript |
void,
errorCallback?: (fileError: NativeTimerError) => void): void;
stop(
successCallback: (status: number) => void,
errorCallback?: (fileError: NativeTimerError) => void): void;
checkState(
state: string,
errorCallback?: (fileError: NativeTim... | Typescript |
tate<T>(placeholderValue as T);
useEffect(() => {
const subscription = unit.subscribe(setValue);
return () => subscription.unsubscribe();
}, []);
return {
value,
dispatch: bind(unit.dispatch, unit),
resetValue: bind(unit.resetValue, unit),
};
}
const WebClient = require('@slack/client').WebClient;
impor... | Typescript |
{
PresenceChanged?.Invoke(this, args);
}
catch { }
}
internal void OnTypingChanged(List<InstaRealtimeTypingEventArgs> args)
{
try
{
TypingChanged?.Invoke(this, args);
}
catch { }
... | C# |
ap map[string]*sharedNT
sharedNTs []*sharedNT
}
func (snt *sharedNTs) newNT(fake *testing.FakeNTB) *sharedNT {
snt.lock.Lock()
defer snt.lock.Unlock()
newSNT := &sharedNT{
inUse: false,
fakeNTB: fake,
}
snt.sharedNTs = append(snt.sharedNTs, newSNT)
return newSNT
}
func (snt *sharedNTs) acquire(t testin... | Go |
(pixels:bytes(), color1:int, color2:int, start_pos:int, end_pos:int) -> nil
// Create a gradient fill in the buffer
int32_t be_animation_ntv_gradient_fill(bvm *vm);
int32_t be_animation_ntv_gradient_fill(bvm *vm) {
int32_t top = be_top(vm); // Get the number of arguments
size_t pixels_len = 0;
uint32_... | C++ |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | C |
3" json:"start_date,omitempty"`
// Date when the campaign experiment ends. By default, the experiment ends on
// the campaign's end date. If this field is set, then the experiment ends at
// the end of the specified date in the customer's time zone.
//
// Format: YYYY-MM-DD
// Example: 2019-04-18
EndDate *wrappe... | Go |
!干货很多 小空 : 干货满满[机智][机智]受益匪浅[奸笑][奸笑] 倪大胖 : Mark。长期发展上,我会成为一个企业咨询顾问。短期发展上,我会尝试把公司经营的那一整套方法论用在个体发展上,先成为个体创业的咨询顾问。
 # 小红书如何搜集笔记素材,解锁变现赛道选择自由度
> 原文:[`www.yuque.com/for_lazy/thfiu8/iu9kx81xggbgm5to`](https://www.yuque.com/for_lazy/thfiu8/iu9kx81xggbgm5to)
## (精华帖)(322 赞)小红书如何... | Markdown |
6, 0)
-- GuildFrameGuildListToggleButton:SkinButton()
GuildMemberDetailFrame:CreateBackdrop("Transparent")
T.SkinCloseButton(GuildMemberDetailCloseButton, GuildMemberDetailCloseButton.backdrop)
GuildMemberNoteBackground:CreateBackdrop("Overlay")
GuildMemberNoteBackground.backdrop:SetPoint("TOPLEFT", -5, -2)
G... | Lua |
(ProfilingMode)(1 >> index);
}
public void Log(ProfilingMode profilingMode, SystemInformation systemInformation)
{
float time = GlobalTime.Current.GetSecondsSinceStartToday();
if (!IsActive || time - lastTimeProfiled < pollingInterval)
return;
lastTimeProfiled = time;
LogProfilingModeValues(profi... | C# |
proj.GetComponent<Collider>().isTrigger = true;
proj.transform.localScale = new Vector3(.3f, .3f, .3f);
proj.AddComponent<NSTSampleProjectile>();
Rigidbody rb = proj.AddComponent<Rigidbody>();
rb.useGravity = useGravity;
rb.interpolation = RigidbodyInterpolation.Interpolate;
/// Since these aren't r... | C# |
BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
/* ---------------------------------------------------------------- */
/* ADDITIONAL DEFINITIONS */
/* ---------------------------------------------------------------- */
/* The following must be defined BEFORE system head... | C |
}
// connections
num := 10
// msg per connection
msgPerConn := 10
poller, err := NewPoller(0, time.Second)
require.NoError(t, err)
// start server
ln, err := net.Listen("tcp", "127.0.0.1:0")
require.NoError(t, err)
defer ln.Close()
go func() {
for {
conn, err := ln.Accept()
if err != nil {
... | Go |
},
{
"code": "9246",
"name": "Hartwood",
"crs": "HTW"
},
{
"code": "9250",
"name": "West Calder",
"crs": "WCL"
},
{
"code": "9251",
"name": "Breich",
"crs": "BRC"
},
{
"code": "9301",
"name": "Glenrothes With Thornton",
"crs": "GLT"
},
{
"code": "9... | Typescript |
tree_index_map = HashMap::<u64, u64>::new();
let mut tree_index_to_node_id_map = HashMap::<u64, u64>::new();
let contents = match §or.sector_contents {
Some(x) => x,
None => {
return Sector {
faces,
node_id_to_tree_index_map,
tree_i... | Rust |
)克劳斯(后略)-29" data-pos="["\uff08\u524d\u7565\uff09\u514b\u52b3\u65af\uff08\u540e\u7565\uff09",29]"><td id="克劳斯" class="tt-char" lang="zh"><div class="poem">克劳斯</div></td><td class="tt-ja" lang="ja"><div class="poem">考えてもみてもごらん? 『先駆者』とは<br>いつの世も『狂人』と呼ばれ『孤独』だったのさ</div></td><td class="tt-zh" lang="zh"><di... | Markdown |
y assumptions about the order of the feeds
if feeds[0].key != "feed key":
feeds.reverse()
assert feeds[0].key == "feed key"
assert feeds[0].title == "feed title"
assert feeds[0].description == "feed description"
assert feeds[0].link == "feed link"
assert feeds[0].last_build_date == "fee... | Python |
local Sweep_Mines = 10;
local Sweep_FlagsDown = 0;
local Sweep_NumExposed = 0;
local Sweep_GameIsOver = false;
function Sweep_OnLoad()
-- Register the slash command
SLASH_SWEEP1 = "/sweep";
SlashCmdList["SWEEP"] = function(msg)
Sweep_SlashCommand(msg);
end
Sweep_Write("Val's Sweep loaded. Type |cffff0000/sweep... | Lua |
(final pub in p.videoTrackPublications) {
if (pub.track is VideoTrack) { primary = pub.track as VideoTrack; break; }
}
if (primary != null) break;
}
if (primary != null) changed = true;
}
changed = true;
} else if (e is ParticipantDisconnectedEvent) {
changed = true;
} else if (e is... | Dart |
[CPTR1], #-4
ldr DVAL0, [DELAY, DOFF, lsl #2]
subs DOFF, DOFF, #32
addlt DOFF, DOFF, #320
ldr DVAL1, [DELAY, DOFF, lsl #2]
subs DOFF, DOFF, #32
addlt DOFF, DOFF, #320
smlal ULO0, UHI0, COEF0, DVAL0
smlal ULO1, UHI1, COEF1, DVAL1
... | Assembly |
{
return FusionDate.FUSION_BIRTHDAY;
}
break;
case Month.SEPTEMBER:
// Bonelab birthday is September 29th
// 4 days of leeway
if (Math.Abs(time.Day - 29) <= 4)
{
ret... | C# |
4= {}", 15 / 4);
println!("18%4= {}", 18 % 4);
}
fn scientific_calc() {
let neg_4 = -4i32;
println!("abs(-4)= {}", neg_4.abs());
println!("2^6 = {}", 2i32.pow(6));
println!("sqrt 9 = {}", 9f64.sqrt());
println!("27 cbrt 9 = {}", 27f64.cbrt());
println!("Round 1.45 = {}", 1.45f64.round());
... | Rust |
vale,48.36,69.74,50,0
.goto Ashenvale,48.43,70.14,50,0
.goto Ashenvale,48.93,70.82,50,0
.goto Ashenvale,49.49,70.76,50,0
.goto Ashenvale,50.21,70.36,50,0
.goto Ashenvale,50.47,70.43,50,0
.goto Ashenvale,50.54,71.08,50,0
.goto Ashenvale,50.74,71.31,50,0
.goto Ashenvale,51.42,70.86,50,0
.goto Ashenvale,52.13,71.... | Lua |
/bio/wiggletools
```
## Docker Installation
Pull the latest image from Dockerhub:
```
docker pull ensemblorg/wiggletools:latest
```
Run the resulting wiggletools executable, bind-mounting the current working directory into the container:
```
docker container run --rm --mount type=bind,source="$(pwd)",target=/mnt ens... | Markdown |
{
fail("Are the suitcases added to an object variable list?");
}
if (bagsInHold.contains(bag3)) {
fail("Make sure a hold does not add more suitcases than its maximum weight allows.");
}
} catch (Throwable t) {
junit.framework.Ass... | Java |
[0]
b := v.Block
typ := &b.Func.Config.Types
// match: (NeqPtr x y)
// result: (SNEZ (SUB <typ.Uintptr> x y))
for {
x := v_0
y := v_1
v.reset(OpRISCV64SNEZ)
v0 := b.NewValue0(v.Pos, OpRISCV64SUB, typ.Uintptr)
v0.AddArg2(x, y)
v.AddArg(v0)
return true
}
}
func rewriteValueRISCV64_OpOffPtr(v *Value) b... | Go |
}
#[no_mangle]
pub extern "C" fn virtio_dma_dealloc(pa: PhysAddr, pages: usize) -> i32 {
// not dropping queue??? mulit drop???
let mut ppn_base: PhysPageNum = pa.into();
for _ in 0..pages {
free_frame(ppn_base);
ppn_base.step();
}
0
}
#[no_mangle]
pub extern "C" fn virtio_phys_to... | Rust |
}
/// <reference path="../../common/app.module.ts" />
module app.muster {
'use strict';
let $filter: ng.IFilterService, musterModel: MusterModel, personnelModel: PersonnelModel;
export class MusterIcon {
constructor(private iconClass, private iconText, private listItem?) {
}
clickEvent($event) {
//Op... | Typescript |
ys...
const deviceInGladys = this.gladys.stateManager.get('deviceByExternalId', getExternalId(discoveredDevice));
if (deviceInGladys) {
logger.debug(`eWeLink: Device "${discoveredDevice.deviceid}" is already in Gladys !`);
} else {
const channels = await connection.getDeviceC... | JavaScript |
* You should have received a copy of the GNU General Public License
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
*/
package com.itsaky.androidide.inflater.internal.adapters
import android.widget.ImageSwitcher
import com.itsaky.androidide.annotations.inflater.ViewAdapter
import com.its... | Kotlin |
chema.json"] = 309,
["markdown-lint-check"] = 605,
mboats = 612,
["mimetypes.json"] = 316,
["mirrord-schema"] = 550,
["mta.yaml"] = 551,
["mtad.yaml"] = 552,
["mycode.json"] = 337,
["napari plugin manifest"] = 338,
neoload = 562,
["nest-cli"] = 343,
["ninjs (News in JSON) 1.3... | Lua |
::osgWeb()
{
}
///////////////////////////////////////////////////////////////////////////////
/// @brief osgWeb destructor.
///////////////////////////////////////////////////////////////////////////////
osgWeb::~osgWeb()
{
// This is optional, but if you reset m_api (the shared_ptr to your JSAPI
// root obj... | C++ |
/*
*************************************************************************
* Ralink Tech Inc.
* 5F., No.36, Taiyuan St., Jhubei City,
* Hsinchu County 302,
* Taiwan, R.O.C.
*
* (c) Copyright 2002-2007, Ralink Technology, Inc.
*
* This program is free software; you can redistribute it and/or modify *
* it u... | C |
doc1.add(newTextField("field", "foo bar", Field.Store.NO));
iw1.addDocument(doc1);
IndexReader reader1 = iw1.getReader();
iw1.close();
Directory dir2 = newDirectory();
RandomIndexWriter iw2 = new RandomIndexWriter(random(), dir2);
Document doc2 = new Document();
doc2.add(newTextField("field... | Java |
));
for (var e : edges) {
int a = e[0], b = e[1];
g[a].add(b);
g[b].add(a);
}
Deque<Integer> q = new ArrayDeque<>();
for (int i = 0; i < n; ++i) {
if (coins[i] == 0 && g[i].size() == 1) {
q.offer(i);
}
}
... | Java |
ormulaPicker.is-input-group .dark-FormulaPicker-input-variable{border:none;min-height:unset;line-height:1.125rem;padding-top:0;padding-bottom:0;}.amis-scope .dark-FormulaPicker.is-input-group .dark-FormulaPicker-toggler{color:#f7f8fa;}.amis-scope .dark-FormulaPicker.is-input-group .dark-FormulaPicker-toggler .icon-func... | CSS |
Column,
CreateDateColumn,
BaseEntity,
UpdateDateColumn,
OneToMany,
ManyToOne,
JoinColumn,
ManyToMany,
JoinTable,
Index,
} from 'typeorm';
import { Length, IsEmail } from 'class-validator';
import { Status } from './root/enums';
@Entity({ name: 'admins' })
export class Admin extends BaseEntity {
@... | Typescript |
* -1f)
piston.position.z = FireInterpolation.apply(0f, minZ, alpha)
if (alpha >= 1f) {
piston.animation = Neutral(piston)
piston.position.z = 0f
}
piston.tint?.set(playerTint)
}
... | Kotlin |
name string, start, kill, restart *exec.Cmd, urls []string, outputFileName string, monitorParent, restartOnExit bool) *server {
return &server{
name: name,
startCommand: start,
killCommand: kill,
restartCommand: restart,
healthCheckUrls: urls,
outFilename: outputFileName,
monitorPa... | Go |
|| tank.getTankType() != lastType) {
this.node = (FluidNode) UniNodespace.getNode(worldObj, xCoord, yCoord, zCoord, tank.getTankType().getNetworkProvider());
if(this.node == null || this.node.expired || tank.getTankType() != lastType) {
this.node = this.createNode(tank.getTankType());
UniNod... | Java |
reUnit);
/// glActiveVaryingNV
/// * `program` class: program
/// * `name` len: COMPSIZE(name)
pub type glActiveVaryingNV_t = unsafe extern "system" fn(program: GLuint, name: *const GLchar);
/// glAlphaFragmentOp1ATI
/// * `op` group: FragmentOpATI
pub type glAlphaFragmentOp1ATI_t = unsafe extern "system" fn(op: Frag... | Rust |
Fee(vSize: 356, feeRatePerKB: 900), 356);
// expect(doge?.estimateTxFee(vSize: 356, feeRatePerKB: 999), 356);
// expect(doge?.estimateTxFee(vSize: 356, feeRatePerKB: 1000), 356);
// expect(doge?.estimateTxFee(vSize: 356, feeRatePerKB: 1001), 712);
// expect(doge?.estimateTxFee(vSize: 356, feeRat... | Dart |
high,dividend.low);
modulus = this4;
}
if(divisor.high < 0) {
var high1 = ~divisor.high;
var low1 = ~divisor.low + 1 | 0;
if(low1 == 0) {
var ret1 = high1++;
high1 = high1 | 0;
}
var this5 = new haxe__$Int64__$_$_$Int64(high1,low1);
divisor = this5;
} else {
divisor = divisor;
}
... | JavaScript |
if sweepData:IsOpen() then
local OnBuyFunc = function()
UIUtil:OpenPurchaseView(nil, nil, cur, buy, cost, gets, payFunc)
end
CSAPI.OpenView("SweepView", {
id = cfgId
}, {
... | Lua |
{ x: 22, y: 13 };
export const txifolSize = { x: 2, y: 12 / 7 };
export default class Input{
constructor(){
window.addEventListener("keydown", (e) => {
this.Pressed.push(e.key);
})
window.addEventListener("keyup", (e) => {
let index = this.Pressed.indexOf(e.key);
... | Typescript |
->IncreaseDegree(degree);
Py_Return;
}
catch (Standard_Failure& e) {
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return nullptr;
}
}
PyObject* BSplineCurve2dPy::increaseMultiplicity(PyObject * args)
{
int mult=-1;
int start, end;
if (!PyArg_ParseTuple(a... | C++ |
.fa-tally-4 {
--fa: "\e297";
}
.fa-taxi-bus {
--fa: "\e298";
}
.fa-temperature-list {
--fa: "\e299";
}
.fa-ticket-airline {
--fa: "\e29a";
}
.fa-ticket-perforated-plane {
--fa: "\e29a";
}
.fa-ticket-plane {
--fa: "\e29a";
}
.fa-tickets-airline {
--fa: "\e29b";
}
.fa-tickets-perforated-plane {
-... | CSS |
import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
class Typos(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
driver = self.driver
driver.get('https://the-internet.herokuapp.com/')
driver.find_element(By.LINK_TEXT,... | Python |
682;115175;116694},
PvPSpells = {33786;339;20484;1513;982;64901;-605;5782;5484;10326;51514;118;12051;20066},
Tier11Interrupts = {-83703;-82752;-82636;-830 | Lua |
g a lot of these then maybe we are not cleaning
// banned peers up correctly?
if adapter.is_banned(self.peer_info.addr) {
debug!(
"handler: consume: peer {:?} banned, received: {}, dropping.",
self.peer_info.addr, message,
);
return Ok(Consumed::Disconnect);
}
let consumed = match message {
... | Rust |
{
// The actual file events.
Changes []FileEvent `json:"changes"`
} `json:"params"`
}
// PublishDiagnosticsNotification is a notification sent from the server to the
// client to signal results of validation runs.
type PublishDiagnosticsNotification struct {
NotificationMessageHeader
Params struct {
// The ... | Go |
openu.ac.il/home/hassner/projects/cnn_agegender/)
* **MNIST** - Predict handwritten (drawn) digits from images. [Download](https://github.com/ph1ps/MNIST-CoreML/raw/master/MNISTPrediction/MNIST.mlmodel) | [Demo](https://github.com/ph1ps/MNIST-CoreML) | [Reference](http://yann.lecun.com/exdb/mnist/)
* **EmotionNet** - P... | Markdown |
const h in b)b.hasOwnProperty(h)&&b[h]&&(d+=h+"="+b[h].toString().substring(0,
30)+"("+typeof h+"), ");return d}function M(b){let d=b.stylesheetInternal||null;if(!d){if(b.Gb)var h=na.ve(b.Gb);else if(b.stylesheetText)h=b.stylesheetText;else if(b.hc){if(na.ra())throw new F("Cannot supply stylesheetFileName in browser","... | JavaScript |
using Classes;
using Logging;
using System.Collections.Generic;
namespace engine
{
class ovr003
{
internal static void CMD_Exit()
{
VmLog.WriteLine("CMD_Exit: byte_1AB0A {0}", gbl.restore_player_ptr);
VmLog.WriteLine("");
if (gbl.restore_player_ptr == true)
... | C# |
// for secrets all the ca certificates will be bundle within a single profile
profileName := AS3NameFormatter(rsCfg.Virtual.Name + "_tls_client")
updateDataGroup(rsCfg.IntDgMap, getRSCfgResName(rsCfg.Virtual.Name, ReencryptServerSslDgName),
rsCfg.Virtual.Partition, tlsContext.namespace, sslP... | Go |
(t, err)
// - Requeue partition
err = q.PartitionRequeue(ctx, shard, qp, requeueTime, false)
require.NoError(t, err, "Failed to requeue partition on %s", serverType)
// Verify the item is available for leasing again after requeue
peekedAfterRequeue, err := q.Peek(ctx, qp, requeueTime.Add(5*time.Se... | Go |
/Knowledge/AcquisitionSession"],
"out.ogit/_type": ["ogit/Automation/AutomationIssue"],
},
],
},
],
},
};
const res = parseNested(filter);
const expected = {
"test-data": {
"ogit/_organization": "test_org",
"ogit/description": "test_desc",
... | Typescript |
loaded: null } }
const actual = remove(state, 2)
expect(actual).toStrictEqual(expected)
})
test("purges new entities completely", () => {
const state = deepFreeze({
[1]: track({ id: 1, value: 'original' }),
[2]: { current: { id: 2, ... | Typescript |
Deprecated'
// @has - '//span' 'sync'
pub use tag::Portability;
}
// @has foo/mod3/index.html
pub mod mod3 {
// @has - '//code' 'pub use tag::Both;'
// @has - '//span' 'Deprecated'
// @has - '//span' 'sync'
pub use tag::Both;
}
// @has foo/mod4/index.html
pub mod mod4 {
// @has - '//code' ... | Rust |
B05944 10400003 */ beq $v0, $zero, .L80B05954
/* 010B8 80B05948 8FA40018 */ lw $a0, 0x0018($sp)
/* 010BC 80B0594C 1000000A */ beq $zero, $zero, .L80B05978
/* 010C0 80B05950 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
.L80B05954:
/* 010C4 80B05954 848F03CE */ lh ... | Assembly |
SIZE(NEW_Y)
addi NEW_Y, NEW_Y, 8 * SIZE
FADD f8, f8, f0
FADD f9, f9, f1
FADD f10, f10, f2
FADD f11, f11, f3
FADD f12, f12, f4
FADD f13, f13, f5
FADD f14, f14, f6
FADD f15, f15, f7
STFD f8, 0 * SIZE(YY)
add YY, YY, INCY
STFD f9, 0 * SIZE(YY)
add YY, YY, INCY
STFD f10, 0 * SIZE(YY)
add YY, YY, INC... | Assembly |
namespace AngleSharp.Dom.Events
{
using AngleSharp.Attributes;
using System;
/// <summary>
/// Represents the event arguments for a keyboard event.
/// </summary>
[DomName("KeyboardEvent")]
public class KeyboardEvent : UiEvent
{
#region Fields
String _modifiers;
... | C# |
ute"
import { MeshGeometryTarget } from "./mesh-geometry-target"
/**
* Geometry with mesh data (i.e. positions, normals, uvs).
*/
export class MeshGeometry3D {
private _shaderGeometry: { [id: string]: Geometry } = {}
indices?: MeshGeometryAttribute
positions?: MeshGeometryAttribute
uvs?: MeshGeometryAttribu... | Typescript |
का दृश्य डिबग करें |
| [query params](https://github.com/storybookjs/addon-queryparams) | क्वेरी पैरामीटर का मॉक करें |
| [viewport](code/core/src/viewport/) | Storybook का उपयोग कर उत्तरदायी कंपोनेंट्स के... | Markdown |
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE 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 a... | C |
v1, $v1, 2
/* 0CA3C4 80169984 00E36021 */ addu $t4, $a3, $v1
/* 0CA3C8 80169988 8D8D0000 */ lw $t5, ($t4)
/* 0CA3CC 8016998C 3C01800E */ lui $at, 0x800e
/* 0CA3D0 80169990 00230821 */ addu $at, $at, $v1
/* 0CA3D4 80169994 000D7880 */ sll $t7, $t5, 2
/* 0CA3D8 80169998 00CFC021 */ addu $t8, $a2, $t7
/* 0... | Assembly |
extract_ps(V, 2);
}
#[cfg(all(_XM_SSE_INTRINSICS_, not(_XM_SSE4_INTRINSICS_)))]
unsafe {
let pDestination: *mut XMFLOAT3 = mem::transmute(pDestination);
_mm_store_sd(mem::transmute::<_, *mut f64>(pDestination), _mm_castps_pd(V));
let z: __m128 = XM_PERMUTE_PS!(V, _MM_SHUFFLE(2, 2, 2... | Rust |
"Can accumulate up to {0} Embers"
}
},
stats={
[1]="blazing_cluster_maximum_number_of_projectiles_allowed"
}
},
[3]={
[1]={
[1]={
[1]={
k="milliseconds_to_seconds_2dp_if_required",
v=1
},
limit={
[1]={
[1]="#",
[2]="#"
}
},
text="Hover duration {0}s... | Lua |
let x_coordinates = Array::linspace(screen_coordinates.x0, screen_coordinates.x1, width);
let x_coordinates_chunks = x_coordinates.iter().cloned().enumerate().chunks((width as f64 / threads as f64).ceil() as usize);
for x_coordinates_chunk in x_coordinates_chunks.into_iter() {
let img_thread = img_sco... | Rust |
.cke_specialchar:focus,a.cke_specialchar:active{background:#fff;outline:0}a.cke_smile:hover,a.cke_specialchar:hover{border-color:#888}a.cke_smile:focus,a.cke_smile:active,a.cke_specialchar:focus,a.cke_specialchar:active{border-color:#139ff7}.cke_dialog_contents a.colorChooser{display:block;margin-top:6px;margin-left:10... | CSS |
ством Альтерака во время войны погибла и огромнейшая библиотека. Жаль, что город разрушен, но вдвойне жаль, что пропал бесценный кладезь знаний! Мы должны восстановить все, что можем.","Южнобережье – ближайший к руинам Альтерака город. Отправляйтесь туда и поговорите с Хранителем мудрости Диббсом. Он направит вас к руи... | Lua |
= ::std::option::Option<
unsafe extern "C" fn(c: *const grib_context, stream: *mut ::std::os::raw::c_void) -> off_t,
>;
#[doc = " Grib data seek, format of a procedure referenced in the context that is used to seek the current position in a stream"]
#[doc = ""]
#[doc = " @param c : the context where th... | Rust |
right")
end
end)(row)
})
-- Add fill pattern buttons
table.insert(row_1_elements, vb_local:button{
text = "2",
width = 25,
tooltip = "Fill every 2 steps (1,3,5,7...)",
notifier = (function(current_row)
return function()
-- Highlight the row and select note column when inter... | Lua |
DownloadFileInfo.STATE_CANCELED
abort = true
}
override fun pause() {
info.state = DownloadFileInfo.STATE_PAUSED
abort = true
}
override fun abort() {
if (info.resumable) {
info.state = DownloadFileInfo.STATE_UNKNOWN_ERROR or DownloadFileInfo.STATE_PAUSED
... | Kotlin |
{
create *TaskCreateBulk
}
// UpdateNewValues updates the mutable fields using the new values that
// were set on create. Using this option is equivalent to using:
//
// client.Task.Create().
// OnConflict(
// sql.ResolveWithNewValues(),
// sql.ResolveWith(func(u *sql.UpdateSet) {
// u.SetIgnore(task.FieldID... | Go |
thought[:100]}...")
try:
agent = self._get_agent()
prompt = COMPLEXITY_ANALYSIS_PROMPT.format(thought=thought_data.thought)
# Get AI analysis
result = await agent.arun(input=prompt)
# Extract JSON response
response_text = self._extract_r... | Python |
force_crc.unwrap_or_else(|| self.crc()).to_be_bytes(),
b"\x50\xA0",
])
}
/// Create a frame to be sent trough serial port
///
/// This converts message to binary and adds header, footer and CRC
pub fn to_control_frame(&self) -> Vec<u8> {
self.to_control_frame_with(None)
... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.