content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
W -160,-20,0
DC.W 100,20,-15
DC.W 100,-20,-15
DC.W 60,-20,18
DC.W 60,20,18
.PPARTS
DC.L .PARTA
DC.L .PARTB
DC.L .PARTC
DC.L .PARTD
DC.L .PARTE
DC.L .PARTF
DC.L .PARTG
DC.L .PARTH
DC.L .PARTI
DC.L .PARTJ
DC.L .PARTK
DC.L .PARTL
DC.L .PARTM
.PARTA DC.W 1
DC.W 4,4,4,2,1,0
DC.... | Assembly |
n
>>> Post.objects.filter(title__startswith='Why').exists()
False
```
### Explanation:
1. **QuerySet Creation**:
- `Post.objects.filter(title__startswith='Why')` creates a QuerySet to filter posts where the `title` starts with "Why".
2. **Checking Existence**:
- `.exists()` checks if the QuerySet contains any r... | Markdown |
p.Location, loc)
}
sloc = append(sloc, loc)
}
p.Sample = append(p.Sample,
&Sample{
Value: []int64{int64(count), int64(count) * p.Period},
Location: sloc,
})
}
// Reached the end without finding the EOD marker.
return b, locs, nil
}
// parseHeap parses a heapz legacy or a growthz profile a... | Go |
label)
.replaceAll("\\\\w", "(\\\\d+?)")
.replaceAll("\\\\h", "(\\\\d+?)")
.replaceAll("\\\\s", "(\\\\d+?)")
.replaceAll("\\\\u", "(.+?)"));
if (sizePos == -1) {
imgPosList.add(new ImgPos(widthPos, heightPos, url... | Java |
( property != null )
{
indexes = filter( index -> indexOf( property, index.getPropertyKeys() ) != -1, indexes );
}
return indexes;
}
private Iterable<ConstraintDefinition> constraintsByLabelAndProperty( org.neo4j.graphdb.schema.Schema schema,
final Label[] label... | Java |
6, r7}
pop {r0}
bx r0
.align 2, 0
_02009484: .4byte 0x68736D53
thumb_func_start MPlayPanpotControl
MPlayPanpotControl: @ 0x02009488
push {r4, r5, r6, r7, lr}
mov r7, sb
mov r6, r8
push {r6, r7}
adds r4, r0, #0
lsls r1, r1, #0x10
lsrs r7, r1, #0x10
lsls r2, r2, #0x18
lsrs r6, r2, #0x18
ldr r3, [r4, #0x34]... | Assembly |
r13d, 8
jz short loc_494E2B
cmp r14b, 0FFh
jnz short loc_494E2B
lea rcx, ds:5[r13]
add rcx, rbp
add r13, 1
cmp rcx, rbx
jb short loc_494E00
jmp loc_494EB6
loc_494E2B:
cmp r14b, 0FFh
jz loc_494EB6
lea rdi, [rax+r13]
... | Assembly |
open settings and grant storage permission to ReFreezer.':
'Απαιτείται άδεια αποθήκευσης για τη λήψη περιεχομένου.\nΑνοίξτε τις ρυθμίσεις και παραχωρήστε άδεια αποθήκευσης στο ReFreezer.',
'Open system settings': 'Ανοίξτε τις ρυθμίσεις συστήματος',
'Application Log': 'Αρχείο καταγραφής εφαρμογής',
... | Dart |
//
// The MIT License (MIT)
//
// Copyright (c) 2024 Advanced Micro Devices, Inc.,
// Fatalist Development AB (Avalanche Studio Group),
// and Miguel Petersen.
//
// All Rights Reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentat... | C# |
| null;
}
/**
* Hash Table List Node type.
*/
export type HashTableListNode<T> = SinglyLinkedListNode<KeyValueObject<T>>;
/**
* Hash Table List type.
*/
export type HashTableList<T> = SinglyLinkedList<KeyValueObject<T>>;
/**
* Hash Table Cell interface.
*/
export interface Table<T> {
[key: number]: HashTa... | Typescript |
lass="sr-only" type="radio" name="theme" value="{{key}}" {% if loop.first %}checked{% endif %} @change="debouncedPreview">
<div class="border border-[var(--border)] rounded-lg overflow-hidden hover:shadow transition group-hover:translate-y-[-1px]">
<img src="{{ desc['preview'] }}" clas... | Python |
/ skip to the next row
buf.position += dstPitch - srcPitch
}
buf.flip()
}
// prep the image for the fragment shader
transitionImage(IntFlags.of(Access.ShaderRead), Image.Layout.ShaderReadOnlyOptimal)
}
private fun Image.Allocated.transitionImage(access: IntFlags<Access>, layout: Image.Layout)... | Kotlin |
'package:namida/core/icon_fonts/broken_icons.dart';
import 'package:namida/core/namida_converter_ext.dart';
import 'package:namida/core/translations/language.dart';
import 'package:namida/core/utils.dart';
import 'package:namida/ui/pages/subpages/indexer_missing_tracks_subpage.dart';
import 'package:namida/ui/widgets/... | Dart |
7, 0xf000
/* B6E6E0 800F7540 0000C812 */ mflo $t9
/* B6E6E4 800F7544 01195021 */ addu $t2, $t0, $t9
/* B6E6E8 800F7548 954B0000 */ lhu $t3, ($t2)
/* B6E6EC 800F754C 316CF000 */ andi $t4, $t3, 0xf000
/* B6E6F0 800F7550 170C003D */ bne $t8, $t4, .L800F7648
/* B6E6F4 800F7554 00000000 */ nop
/* B6E6F8 800... | Assembly |
ImageSparseMemoryRequirements)
val sparseMemoryRequirementCount = pSparseMemoryRequirementCount()
val sparseMemoryRequirements = stack.ncalloc(VkSparseImageMemoryRequirements.ALIGNOF, sparseMemoryRequirementCount, VkSparseImageMemoryRequirements.SIZEOF)
callPJPPV(adr, image.L, pSparseMemoryRequi... | Kotlin |
# -*- coding: utf-8 -*-
# @Author : Erm
# @Time : 2024/4/9 17:35
# @Desc : 微博保存图片类
import pathlib
from typing import Dict
import aiofiles
from base.base_crawler import AbstractStoreImage
from tools import utils
class WeiboStoreImage(AbstractStoreImage):
image_store_path: str = "data/weibo/images"
as... | Python |
----
REBOOT jsr driveon
jsr bootbuilder
jmp warmbuild
*-------------------------------
*
* Q U I C K R E L O A D S
*
* (for game development)
*
*-------------------------------
* Reload 1: reload images
RELOAD1
jsr driveon
jsr loadgame2
jmp driveoff
*-------------------------------
* Reload 2: relo... | Assembly |
idth == 0) {
_photoWidth = Constant.MAX_PHOTO_WIDTH;
_photoHeight = Constant.MAX_PHOTO_HEIGHT;
} else if (_photoWidth < Constant.MIN_PHOTO_WIDTH && _photoHeight < Constant.MIN_PHOTO_HEIGHT) {
_photoWidth = Constant.MIN_PHOTO_WIDTH ;
_photoHeight = _photoWidth / scale;
} else if (_photoWi... | Dart |
char _0x009C84C0[] = "HFogData_Z";
UNDEFADDRESS(0x009C84CC);
EXTERN_C const char _0x009C84CC[] = "Emiter_Z";
UNDEFADDRESS(0x009C84D8);
EXTERN_C const char _0x009C84D8[] = "Tree_Z";
UNDEFADDRESS(0x009C84E0);
EXTERN_C const char _0x009C84E0[] = "CollisionVol_Z";
UNDEFADDRESS(0x009C84F0);
EXTERN_C const char _0x009C84F0[]... | C++ |
5.72-9.86a1.28 1.28 0 00-2.21 0Z" class="clr-i-solid--alerted clr-i-solid-path-6--alerted clr-i-alert"/><path fill="currentColor" d="M0 0h36v36H0z"/></svg>';
static const String group_solid_badged =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="36" height="36" preser... | Dart |
TL
*/
boolean isRTL();
}
/*
*
* Copyright (C) 2007-2015 Licensed to the Comunes Association (CA) under
* one or more contributor license agreements (see COPYRIGHT for details).
* The CA licenses this file to you under the GNU Affero General Public
* License version 3, (the "License"); you may not use this fil... | Java |
twork i:type=\"x:string\" xmlns=\"\">10.0.0.0/8</IPNetwork>{Environment.NewLine}</IPNetwork2>";
Assert.AreEqual(expected, result);
}
/// <summary>
/// Test Deserilaization.
/// </summary>
[TestMethod]
public void Test_Deserialize_DataContract()
{
var ipnetwork = IPNetwork2.P... | C# |
{
step();
}
DynamicalVariable var = getVar(n);
return var.getIntegral(start, finish);
}
// get average of indexed variable between times start and finish
// dynamically extend trace
public double getAverage(int index, double start, double finish) {
while (curr... | Java |
row new HinemosUnknown("type error : " + info.getClass() + "!=JobSchedule");
}
// スケジュールと判定された場合は事前ジョブセッション生成フラグと設定の有効無効を退避
beforeSessionPremakeFlg = bean.getSessionPremakeFlg();
beforeValidFlg = bean.getValidFlg();
JobSchedule jobSchedule = (JobSchedule)info;
// ジョブセッション事前生成用フラグ反転
if (!jo... | Java |
the Amazon plugin to work:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:AttachVolume",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CopyImage",
"ec2:CreateImage",
"ec2:CreateKeyPair",
"ec2:CreateSecurityGroup",... | Markdown |
/*
* AES-based functions
*
* - AES Key Wrap Algorithm (128-bit KEK) (RFC3394)
* - One-Key CBC MAC (OMAC1) hash with AES-128
* - AES-128 CTR mode encryption
* - AES-128 EAX mode encryption/decryption
* - AES-128 CBC
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This program is free software; you ca... | C |
x-height: calc(95vh - ( var(--kb-patterns-sidebar-general-spacing, 24px ) + 32px + var(--kb-patterns-outer-wrap-spacing, 45px ) + 32px + var(--kb-patterns-sidebar-general-spacing, 24px ) + var(--kb-patterns-sidebar-general-spacing, 24px ) + 36px + var(--kb-patterns-sidebar-general-spacing, 24px ) + 50px ) );
// paddi... | CSS |
mark>
<mark style="background:#BABD00;">Advantages:</mark>
- Lo-fi representations, such as sketches, differ from the final product in interaction design, visual appearance, and/or level of details. The method is quick and cheap, which encourages iterative design idea tryouts between/during usability tests
- Quick lo-... | Markdown |
exists locally)
}
if (author.name === undefined) {
author.name = yield getGitConfigInfo('user.name');
}
if (author.email === undefined) {
author.email = yield getGitConfigInfo('user.email');
}
}
const keys = [{
key: 'name',
question: 'name',
de... | JavaScript |
EL: {
Rect ir = r.Shrink(WidgetDimensions::scaled.framerect);
if (this->selected_type == INVALID_INDUSTRYTYPE) {
DrawStringMultiLine(ir, STR_FUND_INDUSTRY_MANY_RANDOM_INDUSTRIES_TOOLTIP);
break;
}
const IndustrySpec *indsp = GetIndustrySpec(this->selected_type);
if (_game_mode != GM_EDI... | C++ |
KAGE)
ZTD_USE(ZTD_CUNEICODE_API_LINKAGE)
void __cnc_default_deallocate(void* __ptr, size_t __ptr_size, size_t __alignment, void* __user_data)
ZTD_USE(ZTD_NOEXCEPT_IF_CXX) {
(void)__ptr_size;
(void)__user_data;
(void)__alignment;
if (__ptr == static_cast<void*>(&__heap_magic_value)) {
return;
}
free(__ptr);... | C++ |
# Generated by Django 5.1 on 2024-08-09 13:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("exchange", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="ExchangeRate",
fields=[
(
... | Python |
(),
}
glib::Continue(true)
});
}
/// Actually start the UI, blocking the main thread.
///
pub fn run(&mut self) {
self.connect_events();
self.window.show_all();
gtk::main();
self.assets.clean_up();
}
fn load_content(&mut self, c... | Rust |
/* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
AnnoyMethods, /* tp_methods */
py_annoy_members, /* tp_membe... | C++ |
ix \"Continue\", waxaana lagu tusi doonaa dalabyada khuseeya ee ku habboon shuruudahaaga. Haddii liisku madhan yahay, isku day inaad hagaajiso tirada. Sicirka beddelka ayaa loo soo bandhigi doonaa dalab kasta, iyo haddii la aqbali karo, waxa kaliya ee aad u baahan tahay inaad sameyso waa inaad riixdo \"Ganacsiga\", ogg... | Dart |
LE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
2. Run in a terminal that has access to your AWS environment variables:
```bash
defang --provider=aws compose up
```
---
Title: C# & ASP.NET Core
Short Description: A simple task manager application using C# and ASP.NET Core.
Tags: ASP... | Markdown |
var atName = before.match(/([^\s\u00a0=<>\"\']+)=$/), atValues;
if (!atName || !attrs.hasOwnProperty(atName[1]) || !(atValues = attrs[atName[1]])) return;
if (typeof atValues == 'function') atValues = atValues.call(this, cm); // Functions can be used to supply values for autocomplete widget
i... | JavaScript |
n",
opaque_p("pUserData"),
size_t("size"),
VkInternalAllocationType("allocationType"),
VkSystemAllocationScope("allocationScope"),
nativeType = "PFN_vkInternalAllocationNotification"
) {}
}
val PFN_vkInternalFreeNotification = Module.VULKAN.callback {
void(
"Vk... | Kotlin |
ull;
mCamera.stopPreview();
//这句要在stopPreview后执行,不然会卡顿或者花屏
mCamera.setPreviewDisplay(null);
mHolder = null;
isPreviewing = false;
mCamera.release();
mCamera = null;
// destroyCameraInterface();... | Java |
v_dKYB5.ttf",!0),A.af("Noto Sans Old Persian","notosansoldpersian/v16/wEOjEAbNnc5caQTFG18FHrZr9Bp6-8CmIJ_tqOlQfx9CjA.ttf",!0),A.af("Noto Sans Old Sogdian","notosansoldsogdian/v16/3JnjSCH90Gmq2mrzckOBBhFhdrMst48aURt7neIqM-9uyg.ttf",!0),A.af("Noto Sans Old South Arabian","notosansoldsoutharabian/v16/3qT5oiOhnSyU8TNFIdhZT... | JavaScript |
class EcsEphemeralStorage {
/// The total amount, in GiB, of ephemeral storage to set for the task. The
/// minimum supported value is <code>21</code> GiB and the maximum supported
/// value is <code>200</code> GiB.
final int sizeInGiB;
EcsEphemeralStorage({
required this.sizeInGiB,
});
factory EcsE... | Dart |
nt img_to_gp_28_ld13, int dynamic_address) {
img_FIFO_buf12.img_FIFO_buf12_img_to_gp_28_ld13_merged823_825_merged_banks_6.push(img_FIFO_buf12_img_to_gp_28_ld13_merged823_825);
}
inline void img_FIFO_buf12_img_to_gp_28_ld13_merged823_826_write(hw_uint<16>& img_FIFO_buf12_img_to_gp_28_ld13_merged823_826, img_FIFO_buf1... | C++ |
eck.invalidAST(s.Pos(), "incorrect form of type switch guard")
return
}
lhs, _ = guard.Lhs[0].(*ast.Ident)
if lhs == nil {
check.invalidAST(s.Pos(), "incorrect form of type switch guard")
return
}
if lhs.Name == "_" {
// _ := x.(type) is an invalid short variable declaration
check.s... | Go |
t ltc data index
int currentIndexData = roughnessIndex + thetaIndex * tableResolution;
ltcData = ltcDataArray[currentIndexData];
GetRoughnessAndAngle(roughnessIndex, thetaIndex, tableResolution, parametrization, out alpha, out cosTheta);
... | C# |
import torch
import torch.nn as nn
from models.CropTypeMapping.modelling.util import initialize_weights
from models.CropTypeMapping.modelling.clstm import CLSTM
from models.CropTypeMapping.modelling.attention import ApplyAtt, attn_or_avg
class CLSTMSegmenter(nn.Module):
""" CLSTM followed by conv for segmentation ... | Python |
add r0, r6, #0x0
bl sub_02036E08
b _02035484
_02035390:
add r0, r6, #0x0
bl sub_02036F1C
b _02035484
_02035398:
add r0, r5, #0x0
bl sub_020464A4
cmp r0, #0x0
beq _02035484
ldr r0, [r5, #0x34]
bl MapObjectManager_PauseAllMovement
add r0, r6, #0x0
bl sub_0203549C
add r0, r6, #0x0
bl sub_02035734
mov r0, #... | Assembly |
@override String get started => 'মুছে ফেলার প্রক্রিয়া শুরু হয়েছে।';
@override String get inProgress => 'মুছে ফেলার কাজ চলছে';
}
// Path: misskey.ad_
class _TranslationsMisskeyAdBnBd extends TranslationsMisskeyAdEnUs {
_TranslationsMisskeyAdBnBd._(TranslationsBnBd root) : this._root = root, super.internal(root);
... | Dart |
u8>, base64::DecodeError> {
let mut rng = StdRng::seed_from_u64(key);
let random_value: u8 = rng.gen();
let alphabet =
alphabet::Alphabet::new(ALPHABET).unwrap();
let crazy_config = engine::GeneralPurposeConfig::new()
.with_decode_allow_trailing_bits(true)
.with_encode_padding(tr... | Markdown |
he mutability of a Vec is not necessary. Unfortunately,
// const generics are necessary to do this, and while they now exist, they do not allow
// inference (i.e., if you have a Pin that has a reference to a Device<const P: usize,
// const R: usize>, you can't have that reference just be a DeviceRef<_, _> e... | Rust |
'../../lib/imageData/cars'
import { shuffle } from '../../lib/shuffle'
import { animalImages } from '../../lib/imageData/animals'
export type CardData = {
selectedImages: {
first: number
second: number
}
images: Image[]
matchesFound: string[]
}
export type Image = {
name: string
}
const initialSta... | Typescript |
):
metadata: Dict = self.metadata_list[index]
scene_name = metadata["scene_name"]
cache_file = osp.join(self.cache_dir, f"{scene_name}.pkl")
if osp.exists(cache_file):
batch_list, labels, inv_indices, raw_labels = load_pickle(cache_file)
else:
batch_list,... | Python |
using FastAndFurious.ConsoleApplication.Common.Enums;
using FastAndFurious.ConsoleApplication.Contracts;
using FastAndFurious.ConsoleApplication.Models.Tunnings.Turbochargers.Abstract;
namespace FastAndFurious.ConsoleApplication.Models.Tunnings.Turbochargers
{
public class ZX8ParallelTwinTurbocharger : Turbocharg... | C# |
ease-out;
&:hover {
background-color: var(--ax-bg-neutral-moderate-hoverA);
}
&:focus-visible {
outline: 3px solid var(--ax-border-focus);
outline-offset: 0;
z-index: 1;
}
&[aria-expanded="false"][data-state="active"] {
background-color: var(--ax-bg-neutral-moderateA);
&:hover {
... | CSS |
8,
)
..arcToPoint(
const Offset(1077.46, 1452.8099999999997),
radius: const Radius.elliptical(66.04, 66.04),
)
..cubicTo(
1063.3500000000001,
1459.9999999999998,
1044.8600000000001,
1459.9999999999998,
1007.9000000000001,
1459.99999... | Dart |
6 179.2 76.8l44.8 44.8-25.6 25.6-19.2-19.2-128 128 128 128 51.5-51.5-77.1-76.5 25.6-25.6zM332.8 76.8L230.4 179.2l102.4 102.4 25.6-25.6-77.1-76.5 51.5-51.5 128 128-128 128-19.2-19.2-25.6 25.6 44.8 44.8L512 256 332.8 76.8z"],dhl:[640,512,[],"f790","M238 301.2h58.7L319 271h-58.7L238 301.2zM0 282.9v6.4h81.8l4.7-6.4H0zM172.... | JavaScript |
= report.Repository;
report.ExecutionContext = toResult ? ReportExecutionContext.WebOutput : ReportExecutionContext.WebReport;
report.SecurityContext = WebUser;
report.CurrentViewGUID = report.ViewGUID;
//set connections
foreach (var source in report.Sources... | C# |
r.SetBool("Moving", agent.velocity != Vector3.zero);
// shoot
if (Input.GetKeyDown(shootKey))
{
CmdFire();
}
RotateTurret();
}
}
// this is called on the server
[Command]
vo... | C# |
diff = (int) Math.floor(nonroundedPerc * drawWidth); // for the position relative to min and maxX
String tickLabelFormatted = null;
if (unitX > 10000 || unitX < 0.001) {
tickLabelFormatted = new DecimalFormat("0.#E0").format(tickX);
} else {
... | Java |
ident(IncidentDefOf.RaidEnemy, null, parms));
}
}
}
public void SpawnMechInvasionHere()
{
mechanoidsSummoned = true;
Find.LetterStack.ReceiveLetter(TranslatorFormattedStringExtensions.Translate("SoS.SatelliteMechAttack"), TranslatorFormattedStringExtensions.Translate("SoS.SatelliteMechAttackDesc"), ... | C# |
models.BirdClasses.objects.all()]
class birdinfo_edit_form(forms.Form):
eng_species = forms.CharField()
chi_species = forms.CharField()
eng_description = forms.CharField(required=False)
chi_description = forms.CharField(required=False)
wiki_url = forms.CharField(required=False)
bird_class = fo... | Python |
,v8,v5,v11,v4,v9,v1,v2,v7,v6,v12);
assertOutSC1(v10,v3,v8,v5,v11,v4,v9,v1,v2,v7,v6,v12);
assertOutSC2(v10,v3,v8,v5,v11,v4,v9,v1,v2,v7,v6,v12);
assertOut(v10,v3,v8,v5,v11,v4,v9,v1,v2,v7,v6,v12);
assertInSC1(v9,v3,v8,v5,v11,v4,v1,v2,v7,v6,v10,v12);
assertInSC2(v9,v3,v8,v5,v11,v4,v1,v2,v7,v6,v10,v12);
assertI... | Java |
|
| Time & metrics | `chrono`, `indicatif` |
| Markdown | `pulldown‑cmark` |
| Docker inspection | `bollard` (async Docker API) |
| Testing | `assert_cmd`, `tempfile`, `insta... | Markdown |
_path)?;
return Ok(ra_path);
static TAG_FOR_EQ_1_47: &str = "2021-07-12";
static TAG_FOR_GEQ_1_48: &str = "2021-08-09";
fn curl(url: &str, cwd: &Path, shell: &mut Shell) -> anyhow::Result<Vec<u8>> {
let curl_exe = which::which("curl").map_err(|_| anyhow!("command not found: curl"))?;
P... | Rust |
1.42L13.6 2.6a.5.5 0 0 0-.05-.04 2.07 2.07 0 0 0-.34-.25l-.05-.03-.05-.03-.16-.09c-.2-.08-.41-.12-.63-.14h-.06a.6.6 0 0 0-.08-.01H6a2 2 0 0 0-2 2v7.5c.47-.2.98-.34 1.5-.42V4c0-.27.22-.5.5-.5h6V8c0 1.1.9 2 2 2h4.5v10a.5.5 0 0 1-.5.5Zm-.62-12H14a.5.5 0 0 1-.5-.5V4.62l3.88 3.88Zm-4.38 9c0 .52-.06 1.02-.17 1.5h2.42c.97 0 1... | C# |
0x0018($sp)
/* 00520 80A57720 3C0F80A6 */ lui $t7, %hi(func_80A58028) ## $t7 = 80A60000
/* 00524 80A57724 240E0005 */ addiu $t6, $zero, 0x0005 ## $t6 = 00000005
/* 00528 80A57728 25EF8028 */ addiu $t7, $t7, %lo(func_80A58028) ## $t7 = 80A58028
/* 0052C 80A5772C A4CE0194 */ sh $t6... | Assembly |
### 状态转换图
```
┌─────────┐
│ FETCH │
└────┬────┘
│
▼
┌─────────┐
│ DECODE │
└────┬────┘
│
▼
┌─────────┐
│ EXECUTE │
└────┬────┘
│
┌──▼──┐
│LW/SW│
└──┬──┘
│
▼
┌─────────┐ ┌─────────────┐
│ MEMORY │───►│ WRITEBA... | Markdown |
,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0... | CSS |
(!rest.hasEmptyPath) {
if (route.isParent) {
if (!route.generator!.hasMatch(rest.path)) {
return null;
}
} else {
return null;
}
}
// passing args to the last destination
// when pushing deep links
var args = _settings?.argument... | Dart |
02: continued
case 3:
{
// //# 03: compile-time error
{
// //# 03: continued
nop(x); // //# 03: continued
continue; // Continue loop. //# 03: continued
... | Dart |
tr><td><a href="./隣人.md" title="隣人">隣人</a></td><td><a href="./ZYTOKINE.md" title="ZYTOKINE">ZYTOKINE</a></td><td>Tr.1</td></tr></tbody></table>
Illustration
: [蒲焼鰻](./蒲焼鰻.md)
## 试听
[X Sample](https://twitter.com/lin__jin/status/1724036060093858198)
## 曲目列表
<table><tbody><tr><td id="1" class="infoO"><b>01</... | Markdown |
Kind != AnyKind && pattern.Kind != kind.Kind {
return false
}
return true
}
func (m PriorityRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (mapping *RESTMapping, err error) {
mappings, originalErr := m.Delegate.RESTMappings(gk, versions...)
if originalErr != nil && len(mappings) == 0 {
retur... | Go |
, U+fc, U+2192, U+25bc, U+3000, U+3137, U+3145, U+315c, U+7f8e, U+ac13, U+ac71, U+ac90, U+acb8, U+ace7, U+ad7f, U+ae50, U+aef4, U+af34, U+afbc, U+b048, U+b09a, U+b0ad, U+b0bc, U+b113, U+b125, U+b141, U+b20c, U+b2d9, U+b2ed, U+b367, U+b369, U+b374, U+b3cb, U+b4ec, U+b611, U+b760, U+b81b, U+b834, U+b8b0, U+b8e1, U+b989, ... | CSS |
CreateBlendState, direct3d11.id3d11device_createblendstate
req.header: d3d11.h
req.include-header:
req.target-type: Windows
req.target-min-winverclnt:
req.target-min-winversvr:
req.kmdf-ver:
req.umdf-ver:
req.ddi-compliance:
req.unicode-ansi:
req.idl:
req.max-support:
req.namespace:
req.assembly:
req.type-li... | Markdown |
,d6
.end:
muls #320,d6
add.l #160,d6
ext.l d5
sub.l d5,d6
add.l physbase,d6
move.l d6,image
rts
.lb0:
cmp #241,d0
bmi.s .lb1
move.l #planes_display,d7
rts
.lb1:
move.l #planes_disp_double,d7
tst.b switched
bne.s .lb2 ; we switch, no cmd coords
tst.b cmd_coord
beq.s .lb2 ; no coords anyway
rts ; el... | Assembly |
using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace Unity.MLAgents.Sensors
{
/// <summary>
/// A SensorComponent that creates a <see cref="CameraSensor"/>.
/// </summary>
[AddComponentMenu("ML Agents/Camera Sensor", (int)MenuGroup.Sensors)]
public class CameraSensorComponent... | C# |
em;
}
/* ==========================================================================
* * Lists
* * ========================================================================== */
/**
* * Address margins set differently in IE 6/7. */
dl, menu, ol, ul {
margin: 1em 0;
}
dd {
margin: 0 0 0 40px;
}
/**
* * Address ... | CSS |
A"
},
},
},
modtype = "module",
description = [[Read from an audio file
Expects a 1-channel file matching the project samplerate. Diskin should be able to read any file format that libsndfile supports.]],
ninputs = 0,
noutputs = 1,
inputs = {
{
na... | Lua |
to get it.
// This should be split into 2 tests, with and without GC.Collect.
static bool TestCore1(bool testWithCollection)
{
const string name = "GetAllocatedBytesForCurrentThread";
var typeInfo = typeof(GC).GetTypeInfo();
var method = typeInfo.GetMethod(name, BindingFlags.Static |... | C# |
it-db.com/exploits/18917 (18917) / https://github.com/bmuller/mod_auth_openid/pull/30 / https://github.com/bmuller/mod_auth_openid/blob/master/ChangeLog / http://secunia.com/advisories/49247 (49247) / http://www.osvdb.org/82139 (82139) / http://www.securityfocus.com/bid/53661 (53661) / http://packetstormsecurity.org/fi... | Markdown |
answers) / sizeof (answers[0]))
/*
* Transmit the invitation and process the response
*/
void
announce_invite(void)
{
CTL_RESPONSE response;
current_state = "Trying to connect to your party's talk daemon";
ctl_transact(his_machine_addr, msg, ANNOUNCE, &response);
remote_id = response.id_num;
if (response.answe... | C |
FileDialog1.ShowDialog() == DialogResult.OK)
{
string file = saveFileDialog1.FileName;
switch (saveFileDialog1.FilterIndex)
{
case 1:
SaveToXml(file);
... | C# |
= new CountDownLatch( 30 );
final VirtualMemoryService store = new VirtualMemoryService();
store.start();
for (int j = 0; j < 2; j++) {
Thread t = new Thread( new Runnable(){
@Override
public void run() {
for (int i =1;i<=100000;i++) {
Message msg = new Message();
... | Java |
e(45);
expect(endState[2].age).toBe(22)
});
test("correct sorting of people over 18 years old", () => {
const startState: Array<StateType> = [
{id: v1(), name: "Vasya", age: 18},
{id: v1(), name: "Kolya", age: 12},
{id: v1(), name: "Anton", age: 45},
{id: v1(), name: "Olga", ag... | Typescript |
#!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# 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 applicab... | Python |
llo');
});
it('should invoke function when cache is not available', async () => {
// given
const mockGetClient = jest.fn();
RedisCacheStorage.prototype.getClient = mockGetClient;
mockGetClient.mockReturnValue(Promise.resolve(null));
const testee = new FakeJsonLogger();
... | Typescript |
oString() => '<default FloatingActionButton tag>';
}
const double _kMenuDividerHeight = 16.0;
const Color _kColor = Color(0xA0B71C1C);
const double _kHeight = 12.0; // height of banner
const TextStyle _kTextStyle = TextStyle(
color: Color(0xFFFFFFFF),
fontSize: _kHeight * 0.85,
fontWeight: FontWeight.w900,
hei... | Dart |
.GetBinaryLiteral().ToString()
}
case KindMysqlJSON:
s = d.GetMysqlJSON().String()
default:
return invalidConv(d, target.Tp)
}
s, err := ProduceStrWithSpecifiedTp(s, target, sc, true)
ret.SetString(s, target.Collate)
if target.Charset == charset.CharsetBin {
ret.k = KindBytes
}
return ret, errors.Trace(... | Go |
/ the effective ammount store will be 1(one) because ther is only one valid element but whem we initialize the collection
// it will have 2 elements (the first with null)
using (ISession s = OpenSession())
using (ITransaction t = s.BeginTransaction())
{
var entity = s.CreateQuery("from Parent").Uni... | C# |
uction> instrs = method.Body.Instructions;
for (int instri = 0; instri < instrs.Count; instri++) {
Instruction instr = instrs[instri];
if (instr.OpCode == OpCodes.Newobj && (instr.Operand as MethodReference)?.GetID() == "System.Void Celeste.OverworldLoader::.ctor(Celeste.Ove... | C# |
struktur tipe data objectnya
### Kode : Alias
```typescript
export type Category = {
id: string;
name: string;
}
export type Product = {
id: string;
name: string;
price: number;
category: Category;
}
```
### Kode : Test Alias
```typescript
const category: Category = {
id: "1",
name: ... | Markdown |
from datetime import datetime
import pandas as pd
TZ = datetime.now().astimezone().tzinfo
def normalize_news(df: pd.DataFrame) -> pd.DataFrame:
cols = ["date","time","headline","source","link","summary"]
df = df[cols].copy()
df["headline"] = df["headline"].fillna("").str.strip()
df["summary"] = df["su... | Python |
# security_api/core/domain/services.py
import logging
from typing import List, Dict, Optional
from .entities import GoogleDorkResult, DnsRecord, WhoisInfo, NmapHost
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
class GoogleDorkService:
def __init__(self, scanner_adapt... | Python |
t(reorderList(makeLinkList([1, 2, 3, 4]))).toEqual(
makeLinkList([1, 4, 2, 3])
);
expect(reorderList(makeLinkList([1, 2, 3, 4, 5]))).toEqual(
makeLinkList([1, 5, 2, 4, 3])
);
});
test('2.addTwoNumbers', () => {
const addTwoNumbers = require('../src/linkList/2.addTwoNumbers');
const ... | Typescript |
"""Init and utils."""
from zope.i18nmessageid import MessageFactory
import logging
__version__ = "1.1.1.dev0"
PACKAGE_NAME = "cs_flickrgallery"
_ = MessageFactory(PACKAGE_NAME)
logger = logging.getLogger(PACKAGE_NAME)
ANNOTATION_KEY = "cs_flickrgallery"
| Python |
{
readonly words: WordList;
readonly grid: WordSeekGrid;
static generateGrid(
wordList: WordList,
fixedWidth?: number,
fixedHeight?: number
): WordSeekGrid {
let currGrid = new WordSeekGrid([], fixedWidth, fixedHeight);
let currWordList = wordList;
let currWord = currWordList.getRandom... | Typescript |
Byte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SubTask(
id: fields[0] as String,
name: fields[1] as String?,
completed: fields[2] as bool,
);
}
@override
void write(BinaryWriter writer, SubTask obj) ... | Dart |
6_2
function L2_3()
local L0_4, L1_4
L0_4 = nil
L1_4 = A0_2
L1_4 = L1_4[16]
L1_4 = L1_4.isRun
if L1_4 then
L0_4 = 0.83333240626084
else
L0_4 = 1.3157899808825
end
return L0_4... | Lua |
#ifndef NMTKIT_ERROR_CORRECTING_CODE_H_
#define NMTKIT_ERROR_CORRECTING_CODE_H_
#include <vector>
#include <nmtkit/serialization_utils.h>
namespace nmtkit {
// Base class of error correcting code.
class ErrorCorrectingCode {
ErrorCorrectingCode(const ErrorCorrectingCode &) = delete;
ErrorCorrectingCode(ErrorCorr... | C |
-folds 交叉验证
* *损失更新(Loss Update)*
* 对冲和提升算法
* *混合更新(Mixing Update)*
* Bousquet & Warmuth 算法(Bousquet & Warmuth,2002)
* 快速恢复 IDS 的性能
* 记住过去的平均权重矢量
* 监督学习框架
* 综合基本 IDS 的结果
* 获取当前样本的真实标签
* 衡量预测值和真实值之间的损失
* 维护基本 IDS 的权重
### 混合算法
#### 记号
* $$T$$,样本数量
* $$t$$,$$(t=1,...,T)$$,一个时段或一个实验
*... | Markdown |
=====================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--=======================... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.