content
stringlengths
2
6.21k
label
stringclasses
16 values
ris r7, r7, (TEXASR_FS)@h mtspr SPRN_TEXASR, r7 /* * We need to load up the checkpointed state for the guest. * We need to do this early as it will blow away any GPRs, VSRs and * some SPRs. */ mr r31, r3 addi r3, r31, VCPU_FPRS_TM bl load_fp_state addi r3, r31, VCPU_VRS_TM bl load_vr_state mr r3, r31 ...
Assembly
clude "weapon/weapon.h" #include "parse/sexp/sexp_lookup.h" #ifndef NDEBUG #include "hud/hudmessage.h" #endif // Stupid windows workaround... #ifdef MessageBox #undef MessageBox #endif // legacy references // -------------------------------------------------------------------------------- #define SEXP_CONDITIONAL_O...
C++
1855474/000101376223000456/FilingSummary.xml", "instance": "https://www.sec.gov/Archives/edgar/data/1855474/000101376223000456/fs42023a1_poweranddig2_htm.xml", "id": "0001013762-23-000456", "html": [ "https://www.sec.gov/Archives/edgar/data/1855474/000101376223000456/fs42023a1_poweranddig2.htm" ], "filing_...
JavaScript
let mut values: Vec<Value> = Vec::with_capacity(length); for _ in 0..length { values.push(c.v.clone()); } CollKind::WrappedColl { elem_tpe: c.tpe, items: values, } }), ...
Rust
ree to full and utter discretion.\n\n<effect>An Anomaly has appeared next to a malfunctioned vehicle.'), 'image', "UI/Messages/marsgate_mystery_01.tga", 'choice1', T(6266, --[[Scenario Mystery 6 choice1]] "An interesting opportunity has presented itself."), }), PlaceObj('SA_AppendToLog', { 'register', "_Ma...
Lua
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "VAM-PDU-Descriptions" * found in "VAM-PDU-Descriptions.asn" */ #ifndef _VruClusterOperationContainer_H_ #define _VruClusterOperationContainer_H_ #include "asn_application.h" /* Including external dependencies */ #include "DeltaTimeQ...
C
return @"<!DOCTYPE html> <html><head> <meta charset=""utf-8""> <meta name = ""viewport"" content = ""width=device-width, initial-scale=1.0"" > <title> TV Rename - Show Summary</title> <link href=""https://cdn.jsdelivr.net/npm/bootstrap@5...
C#
t.b 4(%a7) bpl ld3 neg.l %d0 ld3: rts lmul: move.l 4(%a7),%d0 bpl lm1 neg.l %d0 lm1: move.l 8(%a7),%d1 bpl lm2 neg.l %d1 eor.b #0x80,4(%a7) lm2: bsr i_lmul /* d0 = d0*d1 */ tst.b 4(%a7...
Assembly
grantham_score==GranthamScore.getDefaultScore()?0:(int)((grantham_score/255.0)*1000.0));//score bedPeReport.print('\t'); final Transcript kg= this.knownGenes.getOverlapping(new Interval(v1.getContig(),v1.genomicPosition1-1,v1.genomicPosition1+1)). stream(). flatMap(L->L.stream()). ...
Java
1DC2FC153D75F5693DB5481B90F50819F5", "TDKQKs0>=G\\1?4@?.O8TTz0Z6m{o:Q%+Z#g{cFck*8K`ftnLB]Z%T,J.=~i'ah}$E+H+$3`9r"}, {"9B4DDD5A0A579A773482F903BBD00BBC4594EA7D4763A8BACB110A92032B5B9E", "U'tHcy*pHr2^[.k [Ah7Iv&{sEVwH2F#u1xmNGW2)/A>*cC&X7`3;VCkw[0;Zd[Z^0B*_[_mYx"}, {"71C2730EBF53B8F847F7BBEB59525F6AFDA732EBE73B6B85...
Java
let mut v: Vec<isize> = vec![1, 2, 3]; takes_imm_elt(&v[0], || {}) } fn has_mut_vec_but_tries_to_change_it() { let mut v: Vec<isize> = vec![1, 2, 3]; takes_imm_elt( &v[0], || { //~ ERROR cannot borrow `v` as mutable v[1] = 4; }) } fn main() { } // message files will inc...
Rust
b jump_6b0a switch_6b60: /*0x6b60*/ add sp, #0x10 /*0x6b62*/ .short 0x1f00 /* subs r0, r0, #4 */ /*0x6b64*/ pop.w {r4, r5, r6, r7, r8, lr} /*0x6b68*/ uxtb r0, r0 /*0x6b6a*/ b.w jump_3ad8 jump_6b6e: /*0x6b6e*/ cmp r0, #7 /*0x6b70*/ bls jump_6b0a /*0x6b72*/ ...
Assembly
} constexpr int maxTreeDepth = 32; NodeId nodesStack[maxTreeDepth]; int currentNode = 0; nodesStack[0] = tree.rootNodeId(); ConvertToIntVector convToInt; ConvertToFloatVector convToFloat; Vector3f dP, eP; std::array<PreciseVertCoords, 5> pvc; if constexpr ( std::is_same_v<T, d...
C++
//===- MergedLoadStoreMotion.h - merge and hoist/sink load/stores ---------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C
= ObjectField.OBJECT_END + 0x4, CORPSE_FIELD_ITEMS = ObjectField.OBJECT_END + 0x5, CORPSE_FIELD_SKINID = ObjectField.OBJECT_END + 0x18, CORPSE_FIELD_FACIAL_HAIR_STYLE_ID = ObjectField.OBJECT_END ...
C#
** * If during the refinement one or more points of the shadow register are added * to the actual grid then we have to remove these points from the shadow * storage. */ void PrewaveletGridGenerator::consolidateShadow() { GridStorage temp(storage.getDimension()); for (size_t i = 0; i < shadowstorage.getSize(); ...
C++
document LICENCE forfull licence text * * Luka Rahne */ Utf8Encoder RedisSerializeEncoder = Utf8Encoder(); class RedisBulk { Iterable<int> iterable; /// This clase enables sending Iterable<int> /// as bulk data on redis /// it can be used when sending files for example RedisBulk(this.iterable) {} } t...
Dart
from . import _base from ._axes import Axes # Backcompat. Subplot = Axes class _SubplotBaseMeta(type): def __instancecheck__(self, obj): return (isinstance(obj, _base._AxesBase) and obj.get_subplotspec() is not None) class SubplotBase(metaclass=_SubplotBaseMeta): pass def subplot_...
Python
import torch import torch.nn as nn import torch.distributed as dist import torch.multiprocessing as mp import os def setup(rank, world_size): """初始化每个进程的分布式环境""" os.environ["MASTER_ADDR"] = "localhost" os.environ["MASTER_PORT"] = "29500" dist.init_process_group("gloo", rank=rank, world_size=world_size)...
Python
opt) || nla_put_string(skb, TCA_DEF_DATA, d->tcfd_defdata)) goto nla_put_failure; tcf_tm_dump(&t, &d->tcf_tm); if (nla_put_64bit(skb, TCA_DEF_TM, sizeof(t), &t, TCA_DEF_PAD)) goto nla_put_failure; spin_unlock_bh(&d->tcf_lock); return skb->len; nla_put_failure: spin_unlock_bh(&d->tcf_lock); nlmsg_trim(...
C
pertinoEcDer p384 = CupertinoEcDer( name: 'P-384', numberLength: 48, privateKeyPrefix: [ 0x30, 0x81, 0xb6, 0x02, 0x01, 0x00, 0x30, 0x10, // 0..7 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, // 8..15 0x01, 0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22, // 16..23 0x04, 0x81, 0x9e, 0x30, ...
Dart
le(kt, params, &synctcloud.SyncRouteTableOption{}) if err != nil { logs.Errorf("sync tcloud route-table failed, err: %v, rid: %s", err, kt.Rid) return nil, err } return res, nil } func convertTCloudSubnetCreateReq(data *adtysubnet.TCloudSubnet, accountID string, bizID int64) cloud.SubnetCreateReq[cloud.TCloud...
Go
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using ICSharpCode.SharpZipLib.Zip; using Microsoft.WindowsAPICodePack.Dialogs; namespace JarInfectionScanner { public partial class Form1 : Form { static List<byte[]> kSi...
C#
ort matplotlib.pyplot as plt augmentations = Compose([Scale(512), RandomRotate(10), RandomHorizontallyFlip()]) local_path = "/home/meet/datasets/NYUv2/" dst = NYUv2Loader(local_path, is_transform=True, augmentations=augmentations) bs = 4 trainloader = data.DataLoader(dst, batch_size=bs, num_worker...
Python
Exists = File.Exists(filePath) }; // 尝试加载图片为Bitmap对象 if (imageInfo.Exists) { try { imageInfo.ImageBitmap = new Bitmap(filePath); } catch { // 如果加载失败,ImageBitmap保持为null ima...
C#
VR0PAQH/BAQDAgTwMIHlBgNVHSABAf8EgdowgdcwgdQGCSqGSIb3LwEC" + "ATCBxjCBkAYIKwYBBQUHAgIwgYMagYBUaGlzIGNlcnRpZmljYXRlIGhhcyBi" + "ZWVuIGlzc3VlZCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEFjcm9iYXQgQ3Jl" + "ZGVudGlhbHMgQ1BTIGxvY2F0ZWQgYXQgaHR0cDovL3d3dy5nZW90cnVzdC5j" + "b20vcmVzb3VyY2Vz...
Java
CheckFunc( testAccCheckHerokuAccountFeatureStatus("heroku_account_feature.foobar", &accountFeature), resource.TestCheckResourceAttr("heroku_account_feature.foobar", "enabled", "true"), testAccCheckHerokuAccountFeatureDescription(&accountFeature, "An overview page for an app"), ), }, }, }) } fu...
Go
class Solution: def minOperations(self, nums: List[int], k: int) -> int: heap = nums heapify(heap) count = 0 while len(heap) >= 2 : x, y = heappop(heap), heappop(heap) if x >= k and y >= k: return count else: ...
Python
n Task.CompletedTask; } public async Task OnSessionMessageAsync(SessionContext context, ReadOnlyMemory<byte> payload, CancellationToken cancellationToken) { var text = Encoding.UTF8.GetString(payload.Span); var reply = await context.CallAsync<string>(_echo, new EchoRequest(text), cancellationToken: cancell...
C#
.9 3.25,11.47 3.43,12L1.06,10.5L3.1,8.28C3,8.93 2.97,9.61 3.04,10.3M12,18.91C12.59,19.82 13,20.63 13,21A1,1 0 0,1 12,22A1,1 0 0,1 11,21C11,20.63 11.41,19.82 12,18.91M12,15.62C12,15.62 9,19 9,21A3,3 0 0,0 12,24A3,3 0 0,0 15,21C15,19 12,15.62 12,15.62Z",mdiWeatherPartlySnowy:"M6,19.03A2,2 0 0,1 4,17.03C4,15.92 4.9,15.03 ...
JavaScript
ed - Check browser console (F12) for errors - Ensure AWS credentials have proper permissions ### Recording Not Working - Verify S3 bucket exists and is accessible - Check IAM permissions for S3 operations - Ensure the execution role has appropriate permissions ### Session Replay Issues - Verify recordings exist in S3...
Markdown
dfWriter.PDF_VERSION_1_3; case PdfWriter.VERSION_1_4: return PdfWriter.PDF_VERSION_1_4; case PdfWriter.VERSION_1_5: return PdfWriter.PDF_VERSION_1_5; case PdfWriter.VERSION_1_6: return PdfWriter.PDF_VERSION_1_6; case PdfWriter.VERSION_1_7: return PdfWriter.PDF_VERSION_1_7; default: return PdfWr...
Java
esent) events &= via2[rSIER]; else events &= ~via2[vDirA]; } while (events); } /* * Register the interrupt dispatchers for VIA or RBV machines only. */ void __init via_register_interrupts(void) { if (via_alt_mapping) { /* software interrupt */ irq_set_chained_handler(IRQ_AUTO_1, via1_irq); /* via1 i...
C
, 0x10($s0) /* 16B1680 800840B8 14000292 */ lbu $v0, 0x14($s0) /* 16B1684 800840BC 15000392 */ lbu $v1, 0x15($s0) /* 16B1688 800840C0 FCFF4224 */ addiu $v0, $v0, -0x4 /* 16B168C 800840C4 140002A2 */ sb $v0, 0x14($s0) /* 16B1690 800840C8 0600622C */ sltiu $v0, $v1, 0x6 /* 16B1694 800...
Assembly
int printable = 0; for(int i = 0; i < total; i++) { char c = body.charAt(i); if((c >= 0x20 && c <= 0x7F) || Character.isWhitespace(c)) printable += 1; } return ((printable * 100) / total > 90); } private static ImageData binaryToImageData(byte[] binaryData) { try { return new ImageData(new Byte...
Java
id.startsWith("makeover_mage") } player.talkWith(mage) if (!changed) { npc<Quiz>("That is no different from what you already have. I guess I shouldn't charge you if I'm not changing anything.") return@interfaceOption } when (random.nextInt(...
Kotlin
ve ??= _dylib.lookupFunction<_c_TerminateEnclave, _dart_TerminateEnclave>( 'TerminateEnclave'))( lpAddress, fWait, ); } _dart_TerminateEnclave? _TerminateEnclave; int DeleteEnclave( ffi.Pointer<ffi.Void> lpAddress, ) { return (_DeleteEnclave ??= _dylib.looku...
Dart
gitlab-ci-template.png) #### Koding Use GitLab's [Koding integration][67] to run your entire development environment in the cloud. This means that you can check out a project or just a merge request in a full-fledged IDE with the press of a button. 可以使用 GitLab 的 [Koding 集成][67]功能在云端运行你的整个云端开发环境。这意味着你可以轻轻一键即可在一个完整的 I...
Markdown
the extra button is clicked. * @param negativeButton The button that will be used as a negative button. * @param onNegativeClick The listener that is invoked when the negative button is clicked. * @param positiveButton The button that will be used as a positive button. * @param onPositiveClick The ...
Kotlin
_TABLE_+0x210> 807bc33: 48 8b 00 mov (%rax),%rax 807bc36: 48 89 c7 mov %rax,%rdi 807bc39: 4c 89 d2 mov %r10,%rdx 807bc3c: b8 00 00 00 00 mov $0x0,%eax 807bc41: e8 01 f2 ff ff callq 807ae47 <tcc_assemble_inline> 807bc46: 48 8b 05 6b 22 01 00 mov ...
Assembly
t types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ComputeNetworkEndpoint, err error) { obj, err := c.Fake. Invokes(testing.NewPatchSubresourceAction(computenetworkendpointsResource, c.ns, name, pt, data, subresources...), &v1alpha1.ComputeNetworkEndpoint{}) if obj == n...
Go
0_jac9_32_1_merged3340_4360 read pattern: { jac9_32_1_merged3340[root = 0, jac9_32_0, jac9_32_1] -> stg14_FIFO_buf60[8 + 32jac9_32_1, jac9_32_0] : 0 <= jac9_32_0 <= 1079 and 0 <= jac9_32_1 <= 59 } // Read schedule : { jac9_32_1_merged3340[d0 = 0, d1, d2] -> [0, 15 + d1, 15 + d2, 48] : 0 <= d1 <= 1079 and 0 <= d2 <= 5...
C++
U_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); } CYBOZU_TEST_AUTO(reg8) { struct Code : Xbyak::CodeGenerator { Code() { adc(r17b, al); adc(r17b, cl); adc(r17b, dl); adc(r17b, bl); adc(r17b, spl); adc(r17b, bpl); adc(r17b, sil); adc(r17b, dil); adc(r17b, r8b); adc(r17b, r9b); adc(r17b, r10b); adc(r17b, r11b); adc(...
C++
a7, a7, 31, 1 slli xh, xh, 1 ssai 1 src xh, a7, xh j .Lmul_done .Lmul_ynan_or_inf: /* If x is zero, return NaN. */ bnez xl, .Lmul_returny slli a8, xh, 1 bnez a8, .Lmul_returny movi a7, 0x80000 /* make it a quiet NaN */ or xh, yh, a7 j .Lmul_done .align 4 .global __muldf3 .type __muldf3, @function __mul...
Assembly
0, 0 }, { 6, 7, "1x2YWIsland_1", -7, 40 }, { 6, 3, "1x3YWIsland_2", 0, 0 }, { 5, 8, "1x1YWIsland_1", 0, 0 }, { 4, 7, "1x3YWIsland_1", 0, 0 }, { 3, 3, "1x1YWIsland_2", 0, 5 } }, am...
Lua
on); //var ttt = BeamWeapnProcessor.TimeToTarget(range, launchingEntity.)) //tempory timetotarget double ttt = range / projectileSpeed; //this should be the closing speed (ie the velocity of the two, the beam speed and the range) double missChance = ttt * ( 1 - baseHitChance); r...
C#
", SET_FLAGS_DEFAULT); EXPECT_EQ("third", FLAGS_test_str3); // not changed (was set) SetCommandLineOptionWithMode("test_str3", "fourth", SET_FLAG_IF_DEFAULT); EXPECT_EQ("third", FLAGS_test_str3); // not changed (was set) SetCommandLineOptionWithMode("test_str3", "fourth", SET_FLAGS_VALUE); EXPECT_EQ("four...
C++
e {o}Additional Runecloth{} quest. Reach Exalted Reputation with the Ironforge Faction |complete rep("Ironforge") == Exalted |goto Ironforge/0 43.22,31.57 ]] ) ZygorGuidesViewer:RegisterGuide( 'Reputation Guides\\Reputations\\Stormwind City', {}, [[ step _NOTE:_ Farm or Buy Cloth |tip {o}Farm{} the following {o}c...
Lua
/** * This file is part of sally. * Copyright (C) 2015 SRI International. * * Sally 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 versi...
C
sole.log('got ' + locPath) console.log('migrating to ' + liFile) console.log('which is sourceKey ' + liKey) const liSource = path.join(process.cwd(), 'src', 'shared', 'sources', liFile) let cmd = '' if (fs.existsSync(liSource)) { console.log(`already have ${liKey}, skipping migration helper ...`) } else { cmd = ...
JavaScript
from subprocess import DEVNULL, STDOUT, Popen, getoutput, check_output, check_call, PIPE, call, run as _run from traceback import TracebackException def printEx(e): print("".join(TracebackException.from_exception(e).format())) def run(command, **kawrgs): return _run(command, **kawrgs) def returnCode(command,...
Python
ape4 dc.lshape5,shape6,shape7,shape8 schrittrechts: dc.lshape8,shape7,shape6,shape5 dc.lshape4,shape3,shape2,shape1 buffer: blk.b516,0 ; ; jetzt kommen die 8 Phasen ; shape1: blk.b256,255 shape2: blk.b256,255 shape3: blk.b256,255 shape4: blk.b256,255 shape5: blk.b256,255 shape6: blk.b256,255 shape7: blk.b256,255 sha...
Assembly
REGDMA_SYSTIMER_LINK(0x0b), SYSTIMER_COMP2_LOAD_REG, SYSTIMER_TIMER_COMP2_LOAD, SYSTIMER_TIMER_COMP2_LOAD, 1, 0), .owner = ENTRY(0) | ENTRY(2) }, [12] = { .config = REGDMA_LINK_WRITE_INIT(REGDMA_SYSTIMER_LINK(0x0c), SYSTIMER_TARGET0_CONF_REG, 0, SYSTIMER_TARGET0_P...
C
_buffer, { desc = "git Reset buffer" }) map("n", "<leader>hp", gs.preview_hunk, { desc = "preview git hunk" }) map("n", "<leader>hb", function() gs.blame_line({ full = false }) end, { desc = "git blame line" }) map("n", "<leader>hd", gs.diffthis, { desc = "git diff against index" }) map("n", "<...
Lua
require.NoError(t, rdb.Del(ctx, "points").Err()) require.NoError(t, rdb.GeoAdd(ctx, "points", &redis.GeoLocation{Name: "Washington", Longitude: -77.0369, Latitude: 38.9072}, &redis.GeoLocation{Name: "Baltimore", Longitude: -76.6121893, Latitude: 39.2903848}, &redis.GeoLocation{Name: "New York", Longitude:...
Go
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "Subcontract with Barcode", 'summary': "Allows the subcontracting process with the barcode views", 'category': 'Hidden', 'version': '1.0', 'description': """ This bridge module is auto-insta...
Python
_t3_glyph(fz_context *ctx, fz_font *font, int cid, fz_matrix trm, fz_colorspace *model); fz_pixmap *fz_render_ft_stroked_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_matrix ctm, fz_stroke_state *state); fz_pixmap *fz_render_glyph(fz_context *ctx, fz_font*, int, fz_matrix, fz_colorspace *model); fz_p...
Lua
RpcError, RpcResult?> { // TODO : Implement assert(false) return Right(null) } override fun help() : String = """listreceivedbyaccount ( minconf includeempty includeWatchonly) | |DEPRECATED. List balances by account. | |Arguments: |1. minconf (numeric, optional, de...
Kotlin
="qh-c.htm#geom" >-------------------------------</a><a name="getcentrum">-</a> qh_getcentrum( facet ) returns the centrum for a facet as a new point notes: allocates the centrum */ pointT *qh_getcentrum(facetT *facet) { realT dist; pointT *centrum, *point; point= qh_getcenter(facet->vertices);...
C++
1 0; } } @media (min-width: 992px) { .single-content-lg { display: flex; min-height: 0 !important; flex: 1 1 0; } } @media (min-width: 1200px) { .single-content-xl { display: flex; min-height: 0 !important; flex: 1 1 0; } } @media (min-width: 1400px) { .single-content-xxl { d...
CSS
image. Range // [-180,180]. PanAngle float32 `protobuf:"fixed32,5,opt,name=pan_angle,json=panAngle,proto3" json:"pan_angle,omitempty"` // Pitch angle, which indicates the upwards/downwards angle that the face is // pointing relative to the image's horizontal plane. Range [-180,180]. TiltAngle float32 `protobuf:"fi...
Go
the endianism. * * \return Value resulting from \a u16 with toggled endianism. * * \note More optimized if only used with values unknown at compile time. */ #if (defined __GNUC__) #define swap16(u16) ((U16)__builtin_bswap_16((U16)(u16))) #elif (defined __ICCAVR32__) #define swap16(u16) ((U16)__swap_bytes_in_ha...
C
#pragma once #include <stdint.h> #include <memory> #include <thread> #include <vector> #include <rtl-sdr.h> #include "source.h" class RTLSDR : public Source { public: static std::unique_ptr<RTLSDR> open(uint32_t index = 0); explicit RTLSDR(rtlsdr_dev_t* dev); ~RTLSDR(); const std::vector<int>& getTunerGa...
C
: false, "suspended_by": { "login": "l", "id": 1, "avatar_url": "a", "gravatar_id": "g", "name": "n", "company": "c", "blog": "b", "location": "l", "email": "e", "hireable": true, "bio": "b", "twitter_username": "t", "public_repos": 1, "followers": 1, "foll...
Go
.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 writing, software * distributed under the License is distributed on an "AS IS" BASI...
Kotlin
e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-v...
CSS
m[mOffset + 3] = 0.0f; m[mOffset + 4] = 0.0f; m[mOffset + 6] = 0.0f; m[mOffset + 7] = 0.0f; m[mOffset + 8] = 0.0f; m[mOffset + 9] = 0.0f; m[mOffset + 11] = 0.0f; } /** * Define a projection matrix in terms of six clip planes * * @param m ...
Java
&ResourceRecordType::Owned) } pub fn is_expired(&self) -> bool { match self { ResourceRecordType::Owned => false, ResourceRecordType::Expirable(exp_info) => exp_info.expire_at < Instant::now(), } } pub fn should_refresh(&self) -> bool { match self { ...
Rust
if err != nil { logger.Logger().Errorf("fail to marshal crd body: %v, err: %v\n", body, err) return } err = json.Unmarshal(nbBytes, &notebook) if err != nil { logger.Logger().Errorf("fail to unmarshal crd body to notebook, bytes: %v, err: %v\n", body, err) return } // check resource //todo status = "N...
Go
f to_arrow(self: Self) -> Any: return self._native_frame def sample( self: Self, n: int | None = None, *, fraction: float | None = None, with_replacement: bool = False, seed: int | None = None, ) -> Self: import numpy as np # ignore-banned-import...
Python
tr><tr class="tt-lyrics-sep" id="=-16" data-pos="&#91;&quot;=&quot;,16&#93;"><td class="tt-sep" lang="zh"><div class="poem"></div></td><td class="tt-text" lang="zh"><div class="poem"></div></td><td class="tt-tran" lang="zh"><div class="poem"></div></td></tr><tr class="tt-main-ja" id="=-17" data-pos="&#91;&quot;=&quot;,...
Markdown
byte 0x3 .align 3 LEFDE9: .globl _unwind_test_x86_64_unusualrbx_pad_r12.eh _unwind_test_x86_64_unusualrbx_pad_r12.eh: LSFDE13: .set L$set$27,LEFDE13-LASFDE13 .long L$set$27 LASFDE13: .long LASFDE13-EH_frame1 .quad LFB8-. .set L$set$28,LFE8-LFB8 .quad L$set$28 .byte 0x0 .byte 0x4 .set L$set$29,LCFI16-LFB8 .long L$set$2...
Assembly
#----------------------------------------------------------------------------- # Demonstrate the use of the code generator from crcmod import Crc g8 = 0x185 g16 = 0x11021 g24 = 0x15D6DCB g32 = 0x104C11DB7 def polyFromBits(bits): p = 0 for n in bits: p = p | (1 << n) return p # The following is fr...
Python
NC_OP_VOID_RETURN(ec); } } // namespace local } // namespace asio } // namespace boost #include <boost/asio/detail/pop_options.hpp> #endif // defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) // || defined(GENERATING_DOCUMENTATION) #endif // BOOST_ASIO_LOCAL_CONNECT_PAIR_HPP // // detail/null_reactor.hpp // ~~~~~~~~~~...
C++
top: -3px; right: -3px; background: url("../images/ribbon-sale.png") no-repeat transparent; width: 81px; height: 81px; } .product-grid, .product-list { margin-bottom: 20px; } .product-grid .product-box, .product-list .product-box { margin-bottom: 30px; } .product-list .product-box { position: relative; ...
CSS
ick_prefix_records == HA_POS_ERROR) quick->quick_prefix_select = nullptr; /* Can't construct a quick select. */ else { /* Make a QUICK_RANGE_SELECT to be used for group prefix retrieval. */ quick->quick_prefix_select = get_quick_select(param, param_idx, index_tree, HA_MRR_SORTE...
C++
wModel, itemTaxiViewModel) taxiViewHolder.binding.executePendingBindings() taxiViewHolder.itemView.setOnLongClickListener { listener.onStartDrag(taxiViewHolder) false } } } } override fun getItemId(posi...
Kotlin
if(*pMsgId == protocol7::NETMSGTYPE_SV_EMOTICON) { *pMsgId = NETMSGTYPE_SV_EMOTICON; protocol7::CNetMsg_Sv_Emoticon *pMsg7 = (protocol7::CNetMsg_Sv_Emoticon *)pRawMsg; ::CNetMsg_Sv_Emoticon *pMsg = (::CNetMsg_Sv_Emoticon *)s_aRawMsg; pMsg->m_ClientId = pMsg7->m_ClientId; pMsg->m_Emoticon = pMsg7->m_Emotico...
C++
10, 5}, false); child_wdgt.setGeometry({-2, -2}, {20, 50}, false); CPPUNIT_ASSERT ( root_wdgt.getGeometry() == finalcut::FRect(finalcut::FPoint(3, 3), finalcut::FSize(10, 5)) ); CPPUNIT_ASSERT ( child_wdgt.getGeometry() == finalcut::FRect(finalcut::FPoint(1, 1), finalcut::FSize(20, 50)) ); CPPUNIT_ASSERT ( root...
C++
from ipaddress import ip_address, ip_network for a in range(256): net = ip_network(f'192.214.{a}.184/255.255.255.224', False) cnt = 0 for ip in net: ip = f'{int(ip):032b}' if ip.count('1') > 15: cnt += 1 if cnt == net.num_addresses: print(a) break
Python
tion(N * C, self.eps) self.bn:type(self:type()) self.prev_N = N end -- Set params for BN self.bn.weight:repeatTensor(self.weight, N) self.bn.bias:repeatTensor(self.bias, N) local input_view = input:view(1, N * C, H, W) self.bn:training() self.output = self.bn:forward(input_view):viewAs(input) ...
Lua
t()); somethingComposite.setSomejsonobject(new JsonObject().put("key", "value")); return somethingComposite; } @Override protected Somethingcomposite newPojo(JsonObject json) { return new Somethingcomposite(json); } } package io.github.jklingsporn.vertx.jooq.generate.rx3.jdbc.g...
Java
о",yje="Конкретний час",bje="конкретні дати",wje="конкретний день (дні) тижня",Sje="конкретний день тижня",xje="конкретні години",kje="конкретні хвилини",Cje="конкретні місяці",$je="конкретні секунди",Tje="час",Eje="до",Oje="майстер",Dje="все",Aje="Астродень",Ije="Астро ніч",Nje="Світанок",Mje="Сутінки",Rje="Золота год...
JavaScript
Game(id: doc.id, user: user); } else { // Create a new public game if no open games are found return createGame(user); } }); } on CustomError catch (e, s) { _logger.error('findGame - $e', stack: s); return Result.error(e); } catch (e, s) { _logger.erro...
Dart
using UnityEngine; using NUnit.Framework; using System.Collections.Generic; using UnityEngine.EventSystems; public class PhysicsRaycasterTests { GameObject m_CamGO; GameObject m_Collider; [SetUp] public void TestSetup() { m_CamGO = new GameObject("PhysicsRaycaster Camera"); m_Colli...
C#
} ``` **Correct** code for this rule: ```proto // Correct. rpc UpdateBook(UpdateBookRequest) returns (Book) { option (google.api.http) = { patch: "/v1/{book.name=publishers/*/books/*}" body: "book" }; } ``` ## Disabling If you need to violate this rule, use a leading comment above the method. Remember ...
Markdown
color: #cddc39; position: absolute; z-index: 400; } .sort-option:hover { color: #0aaeef; } .sort-option__pinned { display: inline-block; right: 20px; color: #cddc39; position: absolute; z-index: 400; } .sort-function{ position: relative; } .sort-function__dropdown-menu { cursor: pointer; po...
CSS
GES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using ICSharpCode.ILSpy; using Reflexil.Wrappers; namespace Reflexil.Plugins.ILSpy { internal class ILSpyAssemblyWrapper : IAssemblyWra...
C#
CLOCK", "category": "folderol" }, { "name": "clock7", "unicode": "1F556", "shortcode": "clock7", "description": "CLOCK FACE SEVEN OCLOCK", "category": "folderol" }, { "name": "clock8", "unicode": "1F557", "shortcode": "clock8", "description": "CLOCK FACE EIGHT OCLOCK", ...
JavaScript
local useDebug = Config.Debug local autoIdentifyRhd = Config.AutoIdentifyRhd if not Config.OxLib then if useDebug then print('^3 OxLib is not enabled for CW gearbox. Creating Core Object') end QBCore = exports['qb-core']:GetCoreObject() end local SETGEARNATIVE = GetHashKey('SET_VEHICLE_CURRENT_GEAR') & 0xFFFF...
Lua
#20 add v22.4s,v22.4s,v23.4s ror w12,w12,#20 eor v24.16b,v1.16b,v2.16b add w5,w5,w9 eor v25.16b,v5.16b,v6.16b add w6,w6,w10 eor v26.16b,v9.16b,v10.16b add w7,w7,w11 eor v27.16b,v13.16b,v14.16b add w8,w8,w12 eor v28.16b,v17.16b,v18.16b eor w17,w17,w5 eor v29.16b,v21.16b,v22.16b eor w19,w19,w6 ushr v1.4s,v...
Assembly
Person {name:{name}}) RETURN p") } """ GraphSchemaScanner.storeIdl(db!!, schema) val graphQL = GraphSchema.getGraphQL(db!!) val query = """query { Person(name:"Jane") {name} }""" val result = graphQL.execute(query, GraphQLContext(db!!)) println(result) assertEquals(mapOf...
Kotlin
val list = mutableListOf<Pair<StarrySkyInterceptor, String>>() list += interceptors list += appInterceptors interceptorService.attachInterceptors(list) } /** * 是否跳过播放队列 */ fun attachSkipMediaQueue(isSkipMediaQueue: Boolean) = apply { this.isSkipMediaQueue = ...
Kotlin
_id[neighbor1], orientation1, tiles_id[neighbor2], orientation2)); } for (unsigned test = 0; test < 10; test++) { int seed = get_random_seed(); TilingWFC<Color> wfc(tiles, neighbors_ids, height, width, {periodic_output}, seed); // For the...
C++
: 'Poppins', sans-serif; display: flex; flex-direction: column; overflow: hidden; z-index: 1000; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); will-change: transform, opacity; transform-origin: bottom right; opacity: 1; transform: scale(1) translateY(0); } .chat-container[...
CSS
}; slideFillFunc(sus.slides, false); slideFillFunc(sus.guides, true); std::vector<Tempo> tempos; tempos.reserve(sus.bpms.size()); for (const auto& tempo : sus.bpms) tempos.push_back(Tempo(tempo.tick, tempo.bpm)); std::map<int, TimeSignature> timeSignatures; for (const auto& sign : sus.barlengths) ...
C++
# -*- coding: utf-8 -*- # # @File: distributed.py # @Author: NVIDIA # @Date: 2023-04-29 11:50:12 # @Last Modified by: Haozhe Xie # @Last Modified at: 2023-04-29 12:18:02 # @Email: root@haozhexie.com # @Ref: https://github.com/NVlabs/imaginaire import ctypes import math import os import pynvml import torch import ...
Python
give path. */ public async json(method: HttpMethod, path: string, body?: object): Promise<Response> { return this.run(path, { method: method.toUpperCase(), headers: { 'content-type': 'application/json', accept: 'application/json', }, body: JSON.stringify(body), }); ...
Typescript
beta_ARR_1_4 * math.sin(8*pi*t/24.) + beta_ARR_1_8 * math.cos(8*pi*t/24.) end local function sdep_1(t) return beta_DEP_1_1 * math.sin(2*pi*t/24.) + beta_DEP_1_5 * math.cos(2*pi*t/24.) + beta_DEP_1_2 * math.sin(4*pi*t/24.) + beta_DEP_1_6 * math.cos(4*pi*t/24.) + beta_DEP_1_3 * math.sin(6*pi*t/24.) + beta_DEP_1_7 * mat...
Lua
testWeekOfMonth(year, month, nth, dow, day); } } static Koyomi cal = new Koyomi(); static void testDayOfWeekInMonth(int year, int month, int nth, int dow, int expected) { // don't call clear() here cal.set(YEAR, year); cal.set(MONTH, month); // Set DAY_O...
Java