content
stringlengths
2
6.21k
label
stringclasses
16 values
case GL_LABEL_OBJECT_HANDLE_SW: case GL_LABEL_OBJECT_HANDLE_W: x0 += x2 - w; /* y unchanged */ break; default: g_print ("Invalid handle.\n"); /* Should not happen! */ ...
C
- end-user-doc --> * @generated * @ordered */ int CONSTRAINT_USAGE__NESTED_CALCULATION = OCCURRENCE_USAGE__NESTED_CALCULATION; /** * The feature id for the '<em><b>Nested Constraint</b></em>' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int CONSTRAIN...
Java
1_gtp_v24_4.system_event_message.fields(buffer, offset, packet, parent) end end -- Payload lseg_turquoise_level1_gtp_v24_4.payload = {} -- Size: Payload lseg_turquoise_level1_gtp_v24_4.payload.size = function(buffer, offset, message_type) -- Size of System Event Message if message_type == 0x53 then return l...
Lua
2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 0, 0, 9, 2, 9, 9, 9, 9, 9, 9, 9, 0, 9, 9, 9, 0, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 2, 9, 9, 0, 0, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; lineBreakProperties[26] = new byte[] { 0, 0, 9...
Java
24 24' fill='none' stroke='rgb(200.25, 79.25, 72.25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E")}:host(:not([data-theme=dark]))...
CSS
�](https://github.com/JakeWharton/timber/blame/a6b2e220a33da939da181de37a5cd68be843f63a/README.md#L16-L17)。 这篇文章有趣不?记得在[Medium](https://medium.com/@simonpercic), [Twitter](https://twitter.com/simonpercic) 或 [GitHub](https://github.com/simonpercic)关注我哦。 #Android UI 自动化测试 * 原文链接 : [Automating User Interface Testing on ...
Markdown
)0xc4, (byte)0xc5, (byte)0xc6, (byte)0xc7, (byte)0xc8, (byte)0xc9, (byte)0xca, (byte)0xcb, (byte)0xcc, (byte)0xcd, (byte)0xce, (byte)0xcf, (byte)0xd0, (byte)0xd1, (byte)0xd2, (byte)0xd3, (byte)0xd4, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xd8, (byte)0xd9, (...
Java
<<1>>", -- SI_ACTIVITY_FINDER_REWARD_NAME_FORMAT "<<1>> XP", -- SI_ACTIVITY_FINDER_REWARD_XP_FORMAT "Free <<1>>", -- SI_ACCOUNCEMENT_REWARD_BANNER_TEXT_FREE_FORMATTER "Claim", -- SI_CLAIM_TILE_CLAIM "View All", -- SI_CLAIM_TILE_VIEW_ALL "Zone Guide", -- SI_ZONE_STORY_INFO_HEADER "<<t:1>>", -- SI...
Lua
272] = "Theka, o Mártir", [7273] = "Gahz\'rilla", [7274] = "Carrasco Zangareia", [7275] = "Sacerdote Sombrio Diz\'ieh", [7276] = "Herói Morto de Zul\'Farrak", [7286] = "Zumbi de Zul\'Farrak", [7287] = "Capataz Biela", [7288] = "Capataz-chefe Puzik Gallywix", [7290] = "Atirador de Elite de Umbraforja", ...
Lua
已經成為我們名人行列中的一員。", [3] = "由於您的醫院在過去一年中使每一位來訪貴賓都感到了員工的工作熱情,特此頒發貴賓滿意獎。", }, }, hosp_value = { penalty = { [1] = "您的醫院價值太低了。您的理財能力太爛了。記住一個好的醫院通常也是價值最高的醫院。", }, awards = { [1] = "由於您的醫院價值不菲,因此衛生署向您表示恭喜。", }, regional = { [1] = "您真是一個理財高手。您的醫院的價值比其他醫院的總和還要多。", }, }, ...
Lua
fpath.__unicode__.return_value = '/tmp/000.jpg' fpath.__str__.return_value = '/tmp/000.jpg' camera.target_page = 'odd' camera.capture(fpath) cap_args = tuple(camera._device.shoot.mock_calls[0])[-1] assert cap_args['dng'] @mock.patch('spreadsplug.dev.chdkcamera.JPEGImage') def test_capture_noprep...
Python
log.trace("audioHead: {}", audioHead / 1000000d); } while (!eofm); } }, "AudioMux@" + name); feeder.setDaemon(true); feeder.start(); } public void stop() { eofm = true; clear(); facade.getSegment().setLast(true); } /** * Perform muxing of tracks and feed them to the facade. * * @pa...
Java
slot = self.current_inventory.slots[self.selected_slot] if slot.is_empty(): return item_instance = slot.item_instance if item_instance is None: return item = item_manager.get_item(item_instance.item_id) # タイトル title_text ...
Python
�", ["MONKEY_MEDIUMHAT"] = "船长的三角帽", ["MONKEYTAIL"] = "猴尾草", ["GOLDENAXE"] = "黄金斧头", ["OCEANFISH_SMALL_7_INV"] = "花朵金枪鱼", ["PALMCONE_SEED"] = "棕榈松果树芽", ["BLUE_CAP"] = "采摘的蓝蘑菇", ["DUG_BANANABUSH"] = "香蕉丛", ["BANANABUSH"] = "香蕉丛", ["SEEDS"] = "种子", ["REEDS"] = "芦苇", ["OCEANFISH_SMALL_9"] = "口水鱼", ["BIRD_EGG_C...
Lua
ndexBot"); spider.put("AhrefsBot", "AhrefsBot"); spider.put("ezooms.bot", "ezooms.bot"); spider.put("Java", "Java程序"); spider.put("Mnogosearch", "MnoGoSearch搜索引擎(PHP)"); spider.put("Morfeus Fucking Scanner", "PHP漏洞扫描器"); spider.put("project25499", "Project 25499扫描器"); ...
Java
n. // Mauve is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // alon...
Java
ETHODCALLTYPE *pasteText )( IAccessibleEditableText * This, /* [in] */ long offset); HRESULT ( STDMETHODCALLTYPE *replaceText )( IAccessibleEditableText * This, /* [in] */ long startOffset, /* [in] */ long endOffset, /* [in] */ B...
C
0.2, 1);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes show{0%{opacity:0}to{opacity:1}}@-moz-keyframes show{0%{opacity:0}to{opacity:1}}@-o-keyframes show{0%{opacity:0}to{opacity:1}}@keyframes show{0%{opacity:0}to{opacity:1}}.Popup--closing .Popup__overlay{backgr...
CSS
unpermuted_global_hidden.scatter_add( 0, global_local_map, unpermuted_local_hidden ) if self.add_bias: unpermuted_global_bias = torch.zeros_like(unpermuted_global_hidden) output_bias_total = unpermuted_global_bias.scatter_add( 0...
Python
# Copyright 2019 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
ch("ok") then cover:set({ background = { height = COVER_SIZE, image = { string = ART_PATH, scale = COVER_SCALE, corner_radius = COVER_RADIUS }, }, }) end ensure_visible() end) end) end local function loop() refresh_once() sbar.delay(POLL_SECONDS, loop) end -- small delay at lo...
Lua
def print_abs_stats(task_name, alpha, num_true, num_false, num_abstain, max_abs ): total = num_true + num_false tot_pred = total - num_abstain abs_frac = num_abstain / total abs_acc = 1.0 if tot_pred > 0: abs_acc = num_true / tot_pred print( ' task, alpha, tr...
Python
.build(); startMigrationWorkflow(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a previously created migration workflow. I.e., the state transitions from DRAFT to * RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the * state is anythi...
Java
import bpy outdated_types = {"game.arm" : "game.limbs.arm", "game.basic_spine" : "game.spines.basic_spine", "game.basic_tail" : "game.spines.basic_tail", "game.copy_chain" : "game.basic.copy_chain", "game.front_paw" : "game.limbs.front_paw...
Python
CK_SI_OFFSET(_sigchld); CHECK_SI_SIZE (_sigchld, 8*sizeof(int)); static_assert(offsetof(siginfo_t, si_pid) == 0x10); static_assert(offsetof(siginfo_t, si_uid) == 0x14); static_assert(offsetof(siginfo_t, si_status) == 0x18); static_assert(offsetof(siginfo_t, si_utime) == 0x20); static_assert(offsetof(siginfo_t, ...
C
import os import random import sys from maths.greatest_common_divisor import gcd_by_iterative from . import cryptomath_module, rabin_miller def main() -> None: print("Making key files...") make_key_files("rsa", 1024) print("Key files generation successful.") def generate_key(key_size: int) -> tuple[tu...
Python
学习小结 <center>赵晴岳 2019010974</center> ## Python 数学工具(cont.) 1. 积分模块 - scipy.integrate - Monte Carlo 2. 符号运算<br> sympy ## Python高性能计算 1. numexpr通过直接解析字符串实现比numpy更快的计算 2. 并行计算包multiprocessing 3. 通过编译Python来加速 - Numba动态编译 - Cython静态编译 ## 如何获取Alpha alpha即绝对收益 ### Alpha实操框架 1. 股票型alpha策略:做空IF、IC等股指期货,做多股票 ...
Markdown
____ ____ * _____ _(_) |_ __ _| _ \| __ ) * / _ \ \ / / | __/ _` | | | | _ \ * | __/\ V /| | || (_| | |_| | |_) | * \___| \_/ |_|\__\__,_|____/|____/ * * Copyright (c) 2023-2024 * * Licensed under the Business Source License, Version 1.1 (the...
Java
在 y 与 x 中间,总共 $y - x - 1$ 个数字,从$x - 2$ 个数字中随机选取即可。这样问题变成了仅考虑第一部分的新的子问题。这样不停地继续做下去即可。 # F. **题目大意:** 给定一个大小为 n 的排列,然后给出 q 个询问,每个询问输入两个值,分别是 l 与 r。求出满足如下要求的子序列数量: + 子序列中的元素的下标均在 $[l, r]$ 内。 + 子序列中相邻元素中,后一个是前一个的整数倍。 **题解:** 估算一次查询的结果大小,以某个元素为起点,则最长的序列长度为 $\log{n}$,则答案最大为 $n * \log{n} * \log{n}$。果能确定序列的第一个元素,则很容易求以这个...
Markdown
self.showElements_ = allElements end function SettingKeyLoopItem:hideElementContainers() self.uiBinder.Ref:SetVisible(self.uiBinder.cont_key_custom1.Ref, false) self.uiBinder.Ref:SetVisible(self.uiBinder.cont_key_custom2.Ref, false) end function SettingKeyLoopItem:setKeyContainerState(container, isInput) contai...
Lua
(d->cond == C_UNCOND) { printf("cond: unconditional\n"); } else if(d->cond != C_INVLD) { printf("cond: C_%s\n", darm_condition_name(d->cond, 0)); } #define PRINT_REG(reg) if(d->reg != R_INVLD) \ printf("%-5s %s\n", #reg ":", darm_register_name(d->reg)) PR...
C
list_observer) instruments_list_observer = nil end if dialog_idle_watcher and renoise.tool().app_idle_observable:has_notifier(dialog_idle_watcher) then renoise.tool().app_idle_observable:remove_notifier(dialog_idle_watcher) end dialog_idle_watcher = nil end end if not ren...
Lua
// @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2...
C
题 * (t.`stars` = ? OR t1.`order` = ?) AND t1.`id` = ? AND (t.`stars` = ? OR (t.`create_time` = ? OR t1.`content` LIKE ?)) * <blockquote><pre> * {@code * .where((t1, t2) -> { * t1.and(()->{ * t1.eq(Topic::getStars, 1).or(); * ...
Java
/* * CocosBuilder: http://www.cocosbuilder.com * * Copyright (c) 2012 Zynga Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
C
]]) output1 = qnn.forward(x) output2 = qnn.forward(x) np.testing.assert_array_almost_equal(output1, output2) def test_vqe_parameter_sensitivity(self): """Test VQE parameter sensitivity.""" vqe = VQE(n_qubits=2) # Small parameter change ...
Python
er(uri); if (contributer != null) { converter = contributer.getConverter(dim[1]); } } if (converter != null) { HashMap<String, String> attrMap = new HashMap<String, String>(); FuzzyXMLAttribute[] attrs = element.getAttributes(); for (int i = 0; i < attrs.len...
Java
lif defined (__sh__) # define __NR_inotify_init 290 # define __NR_inotify_add_watch 291 # define __NR_inotify_rm_watch 292 #elif defined (__sh64__) # define __NR_inotify_init 318 # define __NR_inotify_add_watch 319 # define __NR_inotify_rm_watch 320 #elif defined (__sparc__) || defined (__sparc64__) # define __NR_ino...
C
00.net/docs/vt510-rm/DECXCPR says // the response is "${CSI}${LINE};${COLUMN};${PAGE}R" while xterm (http://invisible-island.net/xterm/ctlseqs/ctlseqs.html) // drops the question mark. Expect xterm behaviour here. assertEnteringStringGivesResponse("\033[?6n", "\033[?" + (i + 1) + ";" + (j + 1) + ";1R"); ...
Java
--[[ fates admin - 24/3/2025 ]] local game = game local GetService = game.GetService if (not game.IsLoaded(game)) then local Loaded = game.Loaded Loaded.Wait(Loaded); end local _L = {} _L.start = start or tick(); local Debug = true do local F_A = getgenv().F_A if (F_A) then local Notify, Ge...
Lua
then g_numerrors = inf printf("Too many errors (%d), aborting...", g_maxerrors) end end function perrprintf(pos, fmt, ...) printf("%s %s: error: "..fmt, g_filename, pos and linecolstr(pos) or "???", ...) increment_numerrors() end function errprintf(fmt, ...) perrprintf(g_las...
Lua
import torch from torch import nn import torch.nn.functional as F from configs.paths_config import model_paths class MocoLoss(nn.Module): def __init__(self): super(MocoLoss, self).__init__() print("Loading MOCO model from path: {}".format(model_paths["moco"])) self.model = self.__load_mod...
Python
st + scope info */ struct ip6ctlparam { struct mbuf *ip6c_m; /* start of mbuf chain */ struct icmp6_hdr *ip6c_icmp6; /* icmp6 header of target packet */ struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */ int ip6c_off; /* offset of the target proto header */ struct sockaddr_in6 *ip6c_src; /* srcaddr w/...
C
import numpy as np #translate generalized velocity b into cartesian velocity v #Input derivative of the spline, b, and the number of path sections def translate_velocity(spline_diff, b,N_discretization): #discretization lenght deltatheta = 1/(N_discretization-1) #midpoints discretization d...
Python
, but not the type. */ if (isExact) return SetResponse.ofType(SetResponse.NXRRSET); } if (hasWild) { for (int i = 0; i < labels - olabels; i++) { tname = name.wild(i + 1); types = exactName(tname); if (types == null) continue; rrset = oneRRset(types, type); if (rrset != null) { sr = n...
Java
.offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;display:-webkit-flex;flex-grow:0;-webkit-flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color: rgb(84.32, 84.66, 85);--bs-navbar-hover-color: rgba(30, 66, 135, 0.8);--bs-navbar-disabled-...
CSS
느껴 호드를 떠났던 적이 있네. 그 후 인간 무리에 포로로 잡혔었는데 대족장님께서 나를 구해 주셨다네. 나는 대족장님의 뜻에 공감하여 다시 돌아왔다네. 그분께서는 주술사들의 지도하에 악마의 세력에서 벗어난 자유로운 호드를 꿈꾸셨지.","동굴 막사에 있는 고르넥이 자네에게 앞으로의 훈련 내용을 자세히 알려줄 걸세."}, {"동굴 막사에 있는 고르넥과 대화하십시오."}}, [788] = {"몸 풀기", {"우선 당신의 굳어진 몸을 풀어줄 만한 일부터 시작하도록 하지. 사실 곧바로 불모의 땅으로 보내 코도를 잡아오라고 하고 싶지만 그러다 당신이 죽어버리기라도 하면 곤란한 ...
Lua
#!/usr/bin/python3 """Unittest for max_integer([..])""" import unittest max_integer = __import__('6-max_integer').max_integer class TestMaxInteger(unittest.TestCase): def test_value(self): """ Test random order list """ self.assertEqual(max_integer([65, 54, 98, 51, 0, -65]), 98) """ Test ...
Python
Efficiency(diffs) assertEquivalent({ {DIFF_DELETE, 'abxyzcd'}, {DIFF_INSERT, '12xy34z56'} }, diffs) -- High cost elimination. dmp.settings{Diff_EditCost = 5} diffs = { {DIFF_DELETE, 'ab'}, {DIFF_INSERT, '12'}, {DIFF_EQUAL, 'wxyz'}, {DIFF_DELETE, 'cd'}, ...
Lua
[Use only the latest supported OpenSSL version](doc/RULES.md#beginner-use-only-the-latest-supported-openssl-version) * [Force all connections over TLS](doc/RULES.md#beginner-force-all-connections-over-tls) * [Use min. 2048-bit for RSA and 256-bit for ECC](doc/RULES.md#beginner-use-min-2048-bit-for-rsa-and-256-bit-...
Markdown
// Copyright 2023 Google 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
C
.c-list--recovery-word--important { display: block; margin: 0.5rem auto; } .c-recoveryInput { display: block; /* full width minus the counter */ width: calc(100% - 4em); text-align: left; color: var(--fg, currentColor); height: calc(1em * var(--rs-line)); /* fixes layout-shifts in safari when inpu...
CSS
1 = "air", torpedo_ammo = 0, property_rate = {}, ammo_icon = {}, ammo_info = {}, equip_info = { 6 }, weapon_id = {}, skill_id = { 6070 }, part_main = { 6, 7, 10 }, part_sub = { 6, 7, 10 }, equip_parameters = {}, label = { "DEV" } }, [2101] = { id = 2101, ...
Lua
return tuple(result_lines) except ValueError: return ("", "", "", "", "") #======提取特定行 class ExtractSpecificLines: @classmethod def INPUT_TYPES(cls): return { "required": { "input_text": ("STRING", {"multiline": True, "default": ""}), "...
Python
floads = kvzalloc(sizeof(*br_offloads), GFP_KERNEL); if (!br_offloads) return ERR_PTR(-ENOMEM); INIT_LIST_HEAD(&br_offloads->bridges); xa_init(&br_offloads->ports); br_offloads->esw = esw; esw->br_offloads = br_offloads; return br_offloads; } void mlx5_esw_bridge_cleanup(struct mlx5_eswitch *esw) { struct m...
C
DESCR constexpr auto #else /* Simpler C++11 implementation based on run-time memory allocation and copying */ class descr { public: PYBIND11_NOINLINE descr(const char *text, const std::type_info * const * types) { size_t nChars = len(text), nTypes = len(types); m_text = new char[nChars]; ...
C
sh_timestamp - (now_timestamp + 7200)) < 2 def test_nbf_is_present_by_default(app): with app.test_request_context(): access_token = create_access_token("username", fresh=True) decoded = decode_token(access_token) assert "nbf" in decoded def test_disable_nbf_encoding(app): app.config[...
Python
3 & 0xffffffff)) # 0b11111111111111111111111111111101 print(bin(0xfffffffd)) # 0b11111111111111111111111111111101 print(0xfffffffd) # 4294967293 ``` 是不是很颠覆认知,我们从结果可以看出: - Python中`bin`一个负数(十进制表示),输出的是它的原码的二进制表示加上个负号,巨坑。 - Python中的整型是补码形式存储的。 - Python中整型是不限制长度的不会超范围溢出。 所以为了获得负数(十进制表示)的补码,需要手动将其和十六进制数`0xfff...
Markdown
.km-actionsheet-title,.km-meego .km-popup .k-item,.km-meego .km-actionsheet>li>a{font-size:1.05rem;line-height:2.2em;border-width:0;padding:0 1.2em;color:#fff;display:block;text-decoration:none;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}.km-meego .km-popup .k-state-focused,.km-meego .km-popup .k-stat...
CSS
# Test start ####################"); long old = Util.now_f(); ChannelFuture f = b.connect("127.0.0.1", 8300).sync(); System.out.println(f.isSuccess()); AttributeKey<String> key = AttributeKey.valueOf("test"); Channel channel = f.channel(); ...
Java
a filename or a stream"); RETURN_FALSE; } } else if (argc > 1 && file != NULL) { stream = php_stream_open_wrapper(file, "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_WIN, NULL); if (stream == NULL) { RETURN_FALSE; } } else { ctx = ecalloc(1, sizeof(gdIOCtx)); ctx->putC = _php_image_output_putc; ctx-...
C
}, [4] = { ["CLSID"] = "{5CE2FF2A-645A-4197-B48D-8720AC69394F}", ["num"] = 8, }, [5] = { ["CLSID"] = "{A111396E-D3E8-4b9c-8AC9-2432489304D5}", ["num"] = 11, }, [6] = { ["CLSID"] = "{600gal+CFT Fuel Left 1500lb}", ["num"] = 4, }, [7] = { ["CLSID"] = "{600gal...
Lua
#include "./common.h" #include "r3d.h" #include "raylib.h" #include "raymath.h" /* === Resources === */ static R3D_Mesh plane = { 0 }; static R3D_Mesh sphere = { 0 }; static R3D_Material material = { 0 }; static Camera3D camera = { 0 }; static Matrix* transforms = NULL; static R3D_Light lights[100] = { 0 }; /* ===...
C
PCONF_ERR_ARG; goto prm_dra7xx_dump_end; } if (id > PRM_DRA7XX_MODS_COUNT) { fprintf(stderr, "%s(): id (%u) > PRM_DRA7XX_MODS_COUNT!!! (%u)\n", __func__, id, PRM_DRA7XX_MODS_COUNT); err = OMAPCONF_ERR_ARG; goto prm_dra7xx_dump_end; } autoadjust_table_init(table); row = 0; if (id != PRM_DRA7XX_MOD...
C
izeUniversalDefaults","generalizedModifiers"]}});function Cu(i){(()=>{if(i.purge||!i.content||!Array.isArray(i.content)&&!(typeof i.content=="object"&&i.content!==null))return!1;if(Array.isArray(i.content))return i.content.every(t=>typeof t=="string"?!0:!(typeof t?.raw!="string"||t?.extension&&typeof t?.extension!="str...
CSS
dows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US * Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US ## File Metadata * Original Filename: securekernel.exe * Product Name: Microsoft Windows Operating System * Company Name: Microsoft Corporation * Fil...
Markdown
# Copyright 2025 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
Python
memory_utilization = mem_info.used / mem_info.total * 100 gpu_utilization[i].pop(0) power_management_limit = int( nvidia_smi.nvmlDeviceGetPowerManagementLimit( nvidia_smi.nvmlDeviceGetHandleByIndex(i) ) / 1000 ) power_usage = int( ...
Python
Results for ViT backbones pretrained (or distilled) on web (LVD-1689M)* <table> <tr> <th></th> <!-- <th></th> --> <th colspan="4">Global Tasks</th> <th colspan="5">Dense Tasks</th> </tr> <tr> <th>Model</th> <!-- <th>Dataset</th> --> <th>IN-ReaL</th> <th>IN-R</th> <th>Obj.Net</...
Markdown
_PENALTY // or // SA submitted answers 0 points as one correct and one false -> PROPORTIONAL_WITHOUT_PENALTY else if (submittedAnswer instanceof DragAndDropSubmittedAnswer || submittedAnswer instanceof ShortAnswerSubmittedAnswer) { assertThat(submittedAnswer.getSc...
Java
pin 7 & 8 of PORT E */ bfin_write_PORTE_FER(0x180 | bfin_read_PORTE_FER()); bfin_write_PORTE_MUX(0x3C000 | bfin_read_PORTE_MUX()); #endif #ifdef CONFIG_SERIAL_BFIN_UART1 /* Enable UART1 RX and TX on pin 0 & 1 of PORT H */ bfin_write_PORTH_FER(0x3 | bfin_read_PORTH_FER()); bfin_write_PORTH_MUX(~0xF & bfin_read_PO...
C
run, placeholder, unicode); } /** * select[命令合成-子流程] <br/> * 构造查询主体 * @param runtime 运行环境主要包含驱动适配器 数据源或客户端 * @param builder 有可能合个run合成一个 所以提供一个共用builder * @param run 最终待执行的命令和参数(如JDBC环境中的SQL) */ @Override public Run fillQueryContent(DataRuntime runtime, StringBuilder buil...
Java
-- -- Hideous Destructor-centric cover walls -- PREFABS.Wall_HD_crate_pile = { file = "wall/gtd_wall_hideous_cover.wad" map = "MAP01" is_hideous_destructor_fab = true on_liquids = "never" prob = 15 env = "building" where = "edge" height = 128 deep = 48 bound_z1 = 0 bound_z2 = 128 ...
Lua
you do not have permission to interact with docker. You must enable sudoless docker, follow the steps outlined [here](https://docs.docker.com/install/linux/linux-postinstall/) ## Exception around ADB If you see an exception along the following lines: ```python Traceback (most recent call last): File containers, l...
Markdown
/* * SPDX-FileCopyrightText: 2011 Dmitry Kazakov <dimula73@gmail.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __KIS_FULL_REFRESH_WALKER_H #define __KIS_FULL_REFRESH_WALKER_H #include "kis_merge_walker.h" #include "kis_refresh_subtree_walker.h" class KisFullRefreshWalker : public KisRefreshSub...
C
NettyMocks.postQuery(tsdb, "/api/uid/uidmeta", "{\"type\":\"metric\",\"displayName\":\"Hello!\"}"); rpc.execute(tsdb, query); } @Test (expected = BadRequestException.class) public void uidPostMissingType() throws Exception { setupUID(); HttpQuery query = NettyMocks.postQuery(tsdb, "/api/u...
Java
ate, .clk_set_parent = NULL, .clk_get_parent = NULL, }; int __init mpc5121_clk_init(void) { struct device_node *np; np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-clock"); if (np) { clockctl = of_iomap(np, 0); of_node_put(np); } if (!clockctl) { printk(KERN_ERR "Could not map clock control regi...
C
ut, neutral_tone_with_five=True) == 'shang5' assert to_tone3(input, v_to_u=True) == 'shang' assert to_tone3(input, v_to_u=True, neutral_tone_with_five=True) == 'shang5' assert to_finals(input) == 'ang' assert to_finals(input, v_to_u=True) == 'ang' assert to_finals_tone(input) =...
Python
i=1 total=0 while i<=10: total= total+i i+=1 print(total ) """ start end Print how many even numbers are there """ def countEven(start, end): i = start count = 0 sum=0 while i <= end: if i % 2 == 0: count = count + 1 i += 1 sum+=i return count pri...
Python
and self._address not in range(1101088686080, 1101105463296) # IPv4 multicast and self._address not in range(56294136348672, 56298431315968) # IPv6 multicast and self._address != 281474976710655 # broadcast ) @property def is_multicast_ip4(self) -...
Python
# Store even partial entries for analysis log_entries.append(entry) except Exception as e: print(f"Error processing line {idx+1}: {str(e)}") continue if not log_entries: raise ...
Python
/* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright noti...
C
return { map_id = 10001, id = 1425001, stages = { { stageIndex = 1, failCondition = 1, timeCount = 300, backGroundStageID = 1, passCondition = 1, totalArea = { -80, 20, 90, 70 }, playerArea = { -80, 20, 45, 68 }, enemyArea = {}, fleetCorrdinate = { ...
Lua
Specie> inline Foam::incompressiblePerfectGas<Specie> Foam::operator+ ( const incompressiblePerfectGas<Specie>& ipg1, const incompressiblePerfectGas<Specie>& ipg2 ) { if (notEqual(ipg1.pRef_, ipg2.pRef_)) { FatalErrorInFunction << "pRef " << ipg1.pRef_ << " for " << (ipg...
C
(Case element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }</pre> */ public final UnaryCallable<ListCasesRequest, ListCasesPagedResponse> listCasesPagedCallable() { return stub.listCasesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Re...
Java
import csv with open("13.ARCHIVOS\\txt_csv\\texto.csv", encoding="utf-8") as archivo: #print(archivo.read()) SE EJECUTA reader = csv.reader(archivo) #para recorrerlo for row in reader: #esto va a recorer fila por fila print(row)
Python
X_AUTH_BYTES, XDR_ENCODE); if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) || (! xdr_opaque_auth(xdrs, &(auth->ah_verf)))) warnx("%s: Fatal marshalling problem", __func__); else au->au_mpos = XDR_GETPOS(xdrs); XDR_DESTROY(xdrs); } static const struct auth_ops * authunix_ops(void) { static struct auth_ops ...
C
Object PoolMgr.GetInstance():ReturnPrefab("ChatFrame/" .. slot1.name, slot1.name, slot1) slot0.isLoadChatBg = false end slot0.data = nil end function slot0.OnChatFrameLoaded(slot0, slot1) end return slot0
Lua
te); setContentView(R.layout.activity_main); /** * 初始化操作 */ // 初始化所有按钮 btnConnect = (Button) findViewById(R.id.connect); btnDisconnect = (Button) findViewById(R.id.disconnect); btnSend = (Button) findViewById(R.id.send); mEdit = (EditText) find...
Java
h of the splitters between panes */ padding: 5px; } .claro .dijitSplitContainer-child, .claro .dijitBorderContainer-child { /* By default put borders on all children of BorderContainer, * to give illusion of borders on the splitters themselves. */ border: 1px @border-color solid; } .claro .dijitBorderContaine...
CSS
({ hint = gae_hint, config = { invoke_on_body = true, hint = { position = "middle-right", }, }, name = "Change case", mode = "n", body = "<leader>ge", heads = { { "[", cmd("TextCaseOpenTelescope") }, operator("u", "to_upper_case", "to_upper...
Lua
ualAttributeProvider method. } /** * {@inheritDoc} */ @Override() public void initializeVirtualAttributeProvider( PasswordPolicySubentryVirtualAttributeCfg configuration) throws ConfigException, InitializationException { // No initialization is required. } /** * {@in...
Java
rivate List<Number> numbers; } @Test public void createFunctionChatCompletion() { // SchemaBuilder objectSchemaBuilder2 = objectSchema() // .property("location", stringSchema() // .withKeyword("description", "The city and state, e.g. San Francisco, CA")) // ...
Java
on *m_update_profession; QAction *m_super_labors; QAction *m_assign_labors; QAction *m_assign_skilled_labors; QAction *m_remove_labors; QAction *m_unassign_squad; QAction *m_clear; QAction *m_commit; static const int MAX_STR_LEN = 16; QString ask_name(const QString &msg, const QS...
C
error("Undefined symbol."); exit(1); } return value; } break; case T_PAIR: { Value *verb = CAR(form); if (verb == quote_sym) { return CADR(form); } else if (verb == lambda_sym) { ...
C
def minSubArraySum(nums): """ Given an array of integers nums, find the minimum sum of any non-empty sub-array of nums. Example minSubArraySum([2, 3, 4, 1, 2, 4]) == 1 minSubArraySum([-1, -2, -3]) == -6 """ if not nums: return 0 min_sum = float('inf') current_sum = 0 ...
Python
, [29840] = {"후손을 위하여", nil, {"기록가 바키니가 드라카리 역사 서판 6개를 가져다 달라고 부탁했습니다."}}, [29841] = {"지형 파", nil, {"주변 지역을 탐험해야 합니다. 레벨 10 비취 숲"}}, [29842] = {"답을 구하려", nil, {"피의 돌제단에서 촛불을 사용하여 명상해야 합니다. 레벨 10 비취 숲"}}, [29844] = {"후손을 위하여", nil, {"군드락에 있는 톨마르가 드라카리 역사 서판 6개를 가져다 달라고 부탁했습니다."}}, [29848] = {"쓸쓸한 순찰대원", nil, {"돌의 전당에 있는...
Lua
nfo = (VisInfo *) Tcl_GetHashValue(hashPtr); } else { info = (VisInfo *) ckalloc(sizeof(VisInfo)); info->screen = screen; /* Workaround to support non-default visuals */ #if 0 info->visual = XDefaultVisualOfScreen(screen); info->depth = XDefaultDepthOfScreen(screen); info->colormap = XDefaultColormapOfScreen(...
C
* GeodesicDiameter gd = new GeodesicDiameterFloat(weights); * ResultsTable table = gd.analyseImage(inputLabelImage); * table.show("Geodesic Diameter"); * } * </pre> * * @deprecated since 1.3.5, use inra.ijpb.measure.region2d.GeodesicDiameter instead * @see inra.ijpb.measure.region2d.GeodesicDiameter * * ...
Java
ages sent by the host. * We can optimize host to guest signaling by ensuring: * 1. While reading the channel, we disable interrupts from * host. * 2. Ensure that we process all posted messages from the host * before returning from this callback. * 3. Once we return, enable signaling from the hos...
C