content
stringlengths
2
6.21k
label
stringclasses
16 values
import asyncio import logging import sys import os import config from handlers.handlers import router from aiogram.enums import ParseMode from aiogram.client.default import DefaultBotProperties from aiogram import Bot, Dispatcher, types from aiogram.types import ReplyKeyboardMarkup, KeyboardButton #инициализация asy...
Python
"Trago Restaurador de Reinaldo", [22629] = "Ordens Seladas dos Sin'dorei", [22630] = "Atiesh, Grande Cajado do Guardião", [22631] = "Atiesh, Grande Cajado do Guardião", [22632] = "Atiesh, Grande Cajado do Guardião", [22633] = "Fetiche Troll", [22634] = "Minério Telúmino", [22635] = "Guarda Selvagem", [22636] = "Guardaf...
Lua
ват Мар Алома", [12548] = "Воля Магни", [12549] = "Клеть разума", [12550] = "Кандалы рунического голема", [12551] = "Плащ каменного щита", [12552] = "Пупырчатый плащ", [12553] = "Сапоги скорохода", [12554] = "Краги великого глашатая", [12555] = "Наголенники рвущегося в бой", [12556] = "Сапоги верховной жрицы", [12557] ...
Lua
/* Hey EMACS -*- linux-c -*- */ /* $Id$ */ /* TiLP - Tilp Is a Linking Program * Copyright (C) 1999-2006 Romain Lievin * * This program 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 versio...
C
from struct import calcsize as size from typing import Final __all__ = ( # bool size "BOOL_SIZE", # int sizes "I8_SIZE", "U8_SIZE", "I16_SIZE", "U16_SIZE", "I32_SIZE", "U32_SIZE", "I64_SIZE", "U64_SIZE", # float sizes "F32_SIZE", "F64_SIZE", # bool bits "...
Python
------------------------------------------------------------------------------- print '==> initializing...' local cmd = torch.CmdLine() cmd:text() cmd:text('tofu runnable') cmd:text() cmd:text('Options:') cmd:option('-nocuda', false, 'Whether to disable cuda') cmd:option('-gpuID', 1, ...
Lua
o-mail-DiscussSidebarCategory-im-status { transform: scale(0.75); } } .o-mail-DiscussSidebar-item { &:hover .o-mail-DiscussSidebarChannel-commands { display: flex !important; } } .o-mail-DiscussSidebarChannel-threadIcon { font-size: xx-small; width: 13px; height: 13px; } .o-mail...
CSS
{ return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; }; // Mem_fun adaptor helper functions. There are only two: // mem_fun and mem_fun_ref. template<typename _Ret, typename _Tp> inline mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)()) { return mem_fun_t<_Ret, _Tp>(_...
C
obtainable Tabards" AL["Wands"] = "Wands" AL["Wild Onyx Serpent"] = "Wild Onyx Serpent" AL["World Epics"] = "World Epics" AL["
Lua
//***************************************************************************** // +--+ // | ++----+ // +-++ | // | | // +-+--+ | // | +--+--+ // +----+ Copyright (c) 2009 Code Red Technologies Ltd. // // font.h - header file for font data contained in system_fixed_be_8_15...
C
"provided_direction_relative", "provided_direction_world", }, }, use_health_extension_health = { category = "DO NOT USE - IS HACK", ui_name = "use_health_extension_health", ui_type = "check_box", value = false, }, collectible_section_id = { category = "Collectibles", decimals = 0, min = 0, u...
Lua
opened on Android Q / SDK 29 or higher devices for the user to manually disable wifi. #### Author Patches Barrett #### Since 12/2022, version 5.0.0 #### See also | | |---| | [DisableWifiResult.Success](../index.md) | ## Functions | Name | Summary | |---|---| | [equals](../../../-is-wifi-enabled-result/-false/i...
Markdown
os.exit(1) end print "Socket info:" for k, v in pairs(server:info()) do io.write(k..": "..tostring(v)..", ") end sock = server:info("socket") print("\nSocket: "..sock.family.." "..sock.addr..":"..sock.port) repeat ready = ls.select {server} str, addr, port = server:recvfrom() if str ~= nil then str = string...
Lua
.w3.org/2000/svg'%3E%3Cpath d='M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C...
CSS
// SPDX-License-Identifier: GPL-2.0-only /* * Corrupt the XSTATE header in a signal frame * * Based on analysis and a test case from Thomas Gleixner. */ #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sched.h> #include <signal.h> #include <err.h> #include <unistd.h> #inclu...
C
3, .cm-s-erlang-dark span.cm-type { color: #ccc; } .cm-s-erlang-dark span.cm-error { color: #9d1e15; } .cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; } .cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } table.dataTable.dtr-inline.collapsed...
CSS
&-title { display: block; } &-price { margin-right: ms(-1); opacity: 0.5; } &-button { margin-left: auto; } } img { max-width: ms(6); margin: 0 ms(2) 0 0; padding: 3px; border: 1px solid rgba(#000, 0.1); } .star-rating { display: inline-block; margin: 0;...
CSS
ocks // private InterviewCompletionService interviewCompletionService; // // private WebHookRequest.Payload.Meeting meeting; // private Interview interview; // private User interviewer; // private User candidate; // // @BeforeEach // void setUp() { // meeting = WebHookRequest.Payload.Meeting.builder() // ...
Java
ce_dist) / initial_dist pulling_reward = 3.0 * pulling_progress * tool_positioned # Combine rewards with staging and grasping dependency reward = reaching_reward + grasping_reward reward += positioning_reward * is_grasping reward += pulling_reward * is_grasping # Penalt...
Python
aqui em Vento Norte e nunca estive em tal desordem desde a Primeira Guerra. Gnolls, orcs e Ferro Negro vagueiam por nossas colinas pacíficas e semeiam o caos por onde passam. Até os bandidos Defias buscam se beneficiar de tudo isso. Esses brutais bandidos ousaram assaltar nosso acampamento madeireiro não muito longe da...
Lua
# This script was generated by an AI model and has not been reviewed by a human expert. Please use with caution. from sunpy.net import Fido, attrs as a from astropy import units as u # Define the observation period as mentioned in the context start_date = '2013-09-01' end_date = '2022-11-27' # Time range for the ent...
Python
0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-la...
CSS
end args = _args end return true, cmd, args end function Robot:run_cmd(cmd, args) print('[COMMAND]', cmd, args) if cmd == 'login' then return login("dg56vs38", 1, true) end local ok, err = pcall(self.send_request, self, cmd, args) if not ok then print('run c...
Lua
%); } &.dtfc-scrolling-left { tr > .dtfc-fixed-left::after { box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.2); } } &.dtfc-scrolling-right { tr > { .dtfc-fixed-right::after { box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.2); ...
CSS
es) # ------- 補助モデル -------- class BatchNormalization(Model): """BatchNormalization class Args: momentum (float): 学習モーメント gamma (float): gamma 初期値 beta (float): beta 初期値 fix_gamma (bool): gamma を固定する(学習させない) fix_beta (bool): beta を固定する(学習させない) bin_dtype (DType...
Python
font-weight: bold; } } div.jtable-busy-message { .border-radius(3px); .box-shadow(2px 2px 4px rgba(50, 51, 50, 0.75)); padding: 5px; color:none; } } //////////////////////////////////////////////////////////////// .jtable_jqueryui_base(); // jTable Metro Style Them...
CSS
C+JQuBamKM6H/4TXx+IY5owyNfmdQHvi2bBZqrGxWRxKjTSoRSG5hW4ENWeSsPfRYCAB5rKzM+C7IgteskOsSRlqS8P2BtzYiFCEdQXMbydwHrZBIDiI6zVQB87HPTkbbi/AqP3oo7tS19DQA1lEouGKEFyA3iTDeR+IyS2S37903m1QPTqbAOGKdMyiOstPSQhImJ6ekA2Z2N2U6bqsYySAEYhtfAglPfHEeR6daYgssIctXRo7TcEeIz1ADGILXkdHN3m9am2zRkpCIDdbW9tkNQUUkP6ls2PsDdCLSiclyABc6hAvdXU9JXtIsqXY...
CSS
s.remove(Class.forName("sun.nio.cs.JIS_X_0208_Solaris")); charsets.remove(Class.forName("sun.nio.cs.JIS_X_0212_Solaris")); } // report the charsets that are implemented but not available if (charsets.size() > 0) { charsets.stream() .forEach( clz -> ...
Java
am[in] lp low power enable flag * * @api */ #define rccEnableUART5(lp) rccEnableAPB1(RCC_APB1ENR_USART5EN, lp) /** * @brief Disables the UART5 peripheral clock. * * @api */ #define rccDisableUART5() rccDisableAPB1(RCC_APB1ENR_USART5EN) /** * @brief Resets the UART5 peripheral. * * @api */ #defin...
C
/* Copyright 2022 - 2022 Stephane Cuillerdier(aka aiekick) 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 applicable law or agreed t...
C
l().replace(RequestConst.PAGE_REPLACE,listRule.getPageStartRule()+""); String sourceUrlHtmlStr = HttpUtil.get(baseUrl); Html sourceUrlHtml = new Html(sourceUrlHtmlStr); List<Selectable> bookUrlNodes = sourceUrlHtml.xpath(listRule.getGetUrlListRule()).nodes(); if(CollectionUtil.isEmpty(bo...
Java
month, int date, int hrs, int min, int sec) { GregorianCalendar cal = new GregorianCalendar(year + 1900, month, date, hrs, min, sec); cal.set(Calendar.ZONE_OFFSET, 0); cal.set(Calendar.DST_OFFSET, 0); return cal.getTimeInMillis(); } /** * Gets the time represented by this object. ...
Java
eui-MATERIAL-REGULAR: rgba(37, 37, 37, .6);--weui-MATERIAL-THICK: rgba(34, 34, 34, .9);--weui-MATERIAL-THIN: rgba(95, 95, 95, .4);--weui-MATERIAL-TOOLBAR: rgba(35, 35, 35, .93);--weui-ORANGE-100: #C87D2F;--weui-ORANGE-120: #A06425;--weui-ORANGE-170: #3B250E;--weui-ORANGE-80: #D39758;--weui-ORANGE-90: #CD8943;--weui-ORA...
CSS
nal_out[:32] if s.out_mmsg.op32: s.out_temp.result.v = sext(s.out_32, XLEN) elif s.out_mmsg.variant == MVariant.M_VARIANT_N or s.out_mmsg.variant == MVariant.M_VARIANT_U: s.out_temp.result.v = s.fuse_internal_out[:XLEN] else: s.out_temp.result.v = s.fuse_internal_out[XLEN:XLEN_...
Python
"""Add change interval type Revision ID: 46b0c793fa65 Revises: 56dd70ab525b Create Date: 2024-07-30 07:24:48.068829 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa import sqlmodel # revision identifiers, used by Alembic. revision: str = "46b0c793fa65" down_revision: Union[str...
Python
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" # SOURCE: https://github.com/mozman/svgwrite/blob/master/examples/ltattrie/length_units.py # pip install svgwrite import svgwrite def create_svg(name): svg_size = 900 font_size = 20 title1 = "Example of units of length" title2...
Python
rive up, and a // squad of policemen arrest an entire regiment of frat // boys. You hear cries of "She told me she was 18, // bra!" and "I told you, I didn't hit her with a // roofing shingle!" as they're dragged off the // battlefield. // "regiment", // You see a regiment of ...
Java
width: 100%; text-align: left; padding: 0; margin-right: 5px; } .hc-cart .hc-coupons > div input { margin-bottom: 18px; line-height: 12px; padding: 7px; font-size: 12px; } .hc-cart .hc-coupons > div input[type='text'] { width: 30%; } .hc-cart .hc-coupons li { font-weight: bold; } .hc-cart .hc-totals {...
CSS
<li><a href=\"deprecated-list.html\">Deprecated</a></li>" + "<li><a href=\"index-all.html\">Index</a></li>" + "<li class=\"navBarCell1Rev\">Help</li>" + "</ul>" + "<div class=\"aboutLanguage\"><em>GWT 2.5.1</em></div>" + "</div>" + "<div class=\"subNav\">" + "<ul ...
Java
["Forgemaster Morug"] = "鍛造大師莫爾洛克", ["Silroth"] = "希洛斯", ["Infernal Attacker"] = "煉獄火攻擊者", ["Scorchshell Pincer"] = "熱殼螯蝎", ["Felboar"] = "惡魔野豬", ["Vilewing Chimaera"] = "邪惡之翼奇美拉", ["Shadow Serpent"] = "暗影毒蛇", ["Felfire Diemetradon"] = "惡魔烈焰雙帆龍", ["Shadowmoon Harbinger"] = "影月先驅", ["...
Lua
s/step - loss: 0.0597 - acc: 0.9803 - val_loss: 1.8652 - val_acc: 0.5901 6436/6436 [==============================] - 376s 58ms/step - loss: 0.0455 - acc: 0.9849 - val_loss: 1.9099 - val_acc: 0.6025 6436/6436 [==============================] - 594s 92ms/step - loss: 0.0476 - acc: 0.9828 - val_loss: 1.83...
Python
可适配平台 方舟,Python,Cursor,Trae ## 服务开通链接 https://console.volcengine.com/organization ## 鉴权方式 支持Oauth鉴权,需要提供三方OAuth服务器,如GitHub Oauth应用 ## 系统依赖 - 安装 Python 3.11 或者更高版本 - 安装 uv ### 安装 uv 方法 **Linux/macOS:** ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` **Windows:** ```bash powershell -ExecutionPolicy ByPass...
Markdown
-right.fc-prev-button, .form-actions button.fc-agendaDay-button.fc-state-default.fc-corner-right.fc-next-button, .form-actions button.fc-agendaDay-button.fc-state-default.fc-corner-right.fc-today-button, .form-actions button.btn-success.fc-month-button.fc-state-default.fc-corner-left, .form-actions butt...
CSS
nt-multi-column-column-outer { width: 33.3333%; } .aphront-multi-column-fluid .aphront-multi-column-4-up .aphront-multi-column-column-outer { width: 25%; } .aphront-multi-column-fluid .aphront-multi-column-5-up .aphront-multi-column-column-outer { width: 20%; } .aphront-multi-column-fluid .aphront-multi-co...
CSS
6000.0F); break; case 140: f1 = this.field_175336_F.heightScale = MathHelper.clamp_float(f, 1.0F, 6000.0F); break; case 141: f1 = this.field_175336_F.stretchY = MathHelper.clamp_float(f, 0.01F, 50.0F); break; ...
Java
rtant; /* Original: 16px */ height: var(--urlbarView-favicon-width) !important; /* Original: 16px */ } .urlbarView-row[dynamicType="quickactions"] .urlbarView-label { font-size: 0.95em !important; /* Original: 11px */ } } @media (-moz-bool-pref: "userChrome.urlView.as_commandbar") { :root[uidensity="tou...
CSS
_base_ = './fcn_r50-d8_512x1024_80k_cityscapes.py' model = dict( pretrained='torchvision://resnet18', backbone=dict(type='ResNet', depth=18), decode_head=dict( in_channels=512, channels=128, ), auxiliary_head=dict(in_channels=256, channels=64))
Python
the operation. * ****************************************************************************/ int aio_fsync(int op, FAR struct aiocb *aiocbp) { FAR struct aio_container_s *aioc; int ret; DEBUGASSERT(op == O_SYNC /* || op == O_DSYNC */); DEBUGASSERT(aiocbp); /* The result -EINPROGRESS means that the tran...
C
of window height. In this case, .win-contentdialog-column0or1 will be in column 1 allowing the dialog's body to fill the height of the window. - Size to content otherwise. In this case, .win-contentdialog-column0or1 will be in column 0 preventing the dialog's body f...
CSS
ap(function(name, props) if not ( (type(props) == 'table' and props.enable) or (type(props) == 'boolean' and props) ) then return end return name end) :totable() ) if config.editor.override_terminal then require '...
Lua
> * <td>Optional padding at the end of the packet.</td></tr> * </table></blockquote> * * <h4>DHCP Option</h4> * * The following options are codes are supported: * <pre> * DHO_SUBNET_MASK(1) * DHO_TIME_OFFSET(2) * DHO_ROUTERS(3) * DHO_TIME_SERVERS(4) * DHO_NAME_SERVERS(5) * DHO_DOMAIN_NAME_SERVERS(6...
Java
, 54%; --color-red: var(--color-base-red), 54%; --color-yellow: var(--color-base-yellow), 59%; } :root { --theme-accent: hsla(var(--color-blue), 1); --theme-text-accent: hsla(var(--color-blue), 1); --theme-accent-opacity: 0.15; --theme-divider: hsla(var(--color-gray-95), 1); --theme-text: hsla(var(--colo...
CSS
from leetcode._0443 import Solution def test_1(): string = ["a", "a", "b", "b", "c", "c", "c"] length = Solution().compress(string) assert length == 6 assert string[:length] == ["a", "2", "b", "2", "c", "3"] def test_2(): string = ["a"] length = Solution().compress(string) assert length ...
Python
'11', '436', '8117', '3020001', '1', '90102711,90102712,90102713,90102714'}, {'537', '537', '覃锐思', '11', '436', '8117', '3020001', '2', '90102711,90102712,90102713,90102714'}, {'538', '538', '睦访烟', '11', '436', '8117', '3020001', '3', '90102711,90102712,90102713,90102714'}, {'539', '539', '寒雪卉', '11', '436', '8117', '3...
Lua
local thisFileLocation = ... if thisFileLocation == nil then thisFileLocation = '.' end thisFileLocation = path.getdirectory( thisFileLocation ) require( thisFileLocation .. '/premake' ) Helium.RequiredFbxVersion = '2020.2' Helium.GetFbxSdkLocation = function() local fbxLocation = os.getenv( 'FBX_SDK' ) if n...
Lua
/ self:GetMap():GetCanvasScale()); end function AdventureMapInsetMixin:GetMap() return self.mapCanvas; end function AdventureMapInsetMixin:SetLocalPinPosition(pin, normalizedX, normalizedY) pin:ClearAllPoints(); if normalizedX and normalizedY then local canvas = self.ExpandedFrame; local scale = pin:GetScale()...
Lua
/* * @(#)JDWP.h 1.33 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ #ifndef JDWP_JDWP_H #define JDWP_JDWP_H #include "JDWPCommands.h" /* * JDWPCommands.h is the javah'ed version of all the cons...
C
GNATURE)]; __le32 MessageType; /* NtLmChallenge = 2 */ SECURITY_BUFFER TargetName; __le32 NegotiateFlags; __u8 Challenge[CIFS_CRYPTO_KEY_SIZE]; __u8 Reserved[8]; SECURITY_BUFFER TargetInfoArray; /* SECURITY_BUFFER for version info not present since we do not set the version is present flag */ } __attribute...
C
import cv2 import torch import numpy as np import bad.utils.models as models class SingleInf: def __init__(self, path_to_inf_model, device, pix_array): print() self.path_to_model = path_to_inf_model self.device = device self.pa = pix_array self.load_model_struct() ...
Python
import torch from PIL import Image from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler from diffusers.utils import load_image device = "cuda" if torch.cuda.is_available() else "cpu" controlnet = ControlNetModel.from_pretrained( "lllyasviel/sd-controlnet-openpose", ...
Python
fore eagerly forcing it back down [npc2.her] throat.", "With [npc.a_sob+], [npc.name] [npc.verb(try)] to pull [npc.her] [npc.tail(true)] away from [npc2.name]," + " but [npc2.she] quickly [npc2.verb(grab)] it and eagerly [npc2.verb(force)] it back down [npc2.her] throat.", "Tears start to well up...
Java
irst-of-type th:first-of-type.esm-ltr) { direction: ltr; } /* Helper styles for debugging */ /* .cm-line[dir="rtl"] { */ /* border-right: dashed; */ /* border-right-color: blue; */ /* } */ /* .cm-line[dir="ltr"] { */ /* border-right: dashed; */ /* border-right-color: red; */ /* } */ @media print { sp...
CSS
用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口等 - 调试接口,标准 JTAG/SWD 开发板更多详细信息请参考【NXP】 [MIMXRT1064-EVK开发板介绍](https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/mimxrt1064-evk-i.mx-rt1064-evaluation-kit:MIMXRT1064-EVK)。 ## 外设支持 本 BSP 目前对外设的支持情况如下: | **板载外设** ...
Markdown
qCL2EpMO44iYIXNaFyMlFeu3t7Zq78ugeBbZz2d4RX2mBa/oFTRPLQs+ggfBlGA/gYV09hYvQR5eScRvF+Zt7iOm92JjMxU9snam3kLXPALvWYHlsoztBmgjtIGiazkMhw6ABC4+GpADa/QuA5bJ+Temn5sv/f4gSo/c5YNfYKd9kGVBdOCmO5hI1pkAC3t1uExKfmwTbFfoL4HACDlN/y5p+RZLfU/Fvs+BgbK1psLBXAjhR+qauh2unTfRdAa8N4D5pqQL+nwADAKGFDQ//Deb9AAAAAElFTkSuQmCC') no-repeat;-webkit-ma...
CSS
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck -check-prefix CHECK-PRECISE %s // RUN: %clang_cc1 -triple x86_64-unknown-unknown -menable-no-nans -emit-llvm -o - %s | FileCheck -check-prefix CHECK-NO-NANS %s // RUN: %clang_cc1 -triple x86_64-unknown-unknown -menable-no-infs -emit-llvm -...
C
caredACTIVE = false end) CrouchRocket.MouseButton1Click:connect(function() ScaredACTIVE = not ScaredACTIVE if ScaredACTIVE then local u = Instance.new("RocketPropulsion") u.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart u.Name = "CrouchRocket" u.Target = game.Players.LocalPlayer.Character.Head ...
Lua
45.op) c:RegisterEffect(e2) end function c85562745.con(e,tp,eg,ep,ev,re,r,rp) return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and not re:GetHandler():IsCode(85562745) end function c85562745.tg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(1-tp) Duel.SetTargetParam(300) Duel....
Lua
manpages/{codename}/en/' + \ # f'man{section}/{page}.{section}.html' # Specifies a reST snippet to be prepended to each .rst file # This defines a :center: role that centers table cell content. # This defines a :h2: role that styles content for use with PDF generation. rst_prolog = """ .. role:: center :class...
Python
a_i[:,:,:,[1,2,0]])*si[:,:,:,[2,0,1]]) # if ∃i,|si| ≤ ε, set wi to 0. coplaner with T but outside # ignore coplaner outside triangle # alternative check # (B,F,3,3) # triangle_points = torch.gather(vertices.unsqueeze(1).expand(-1,F,-1,-1), 2, faces.unsqueeze(-1).expand(-1,-1,-1,3)) # # (B,P,F,3)...
Python
rning("선택 오류", "유효한 요약 모델을 선택해주세요.", parent=dialog) def on_cancel(): result["model"] = None dialog.destroy() dialog.protocol("WM_DELETE_WINDOW", on_cancel) model_combo.focus_set() _grab_and_wait(dialog) return result["model"] def show_new_novel_dialog(parent_root): """새 소설 생성...
Python
#!/usr/bin/env python3 import rclpy from rclpy.node import Node import numpy as np from time import gmtime, strftime import os #import tf from os.path import expanduser from numpy import linalg as LA from tf_transformations import euler_from_quaternion from nav_msgs.msg import Odometry class WaypointsLogger(Node): ...
Python
{ pointer-events: none; width: 32px; height: 32px; } .boomcity__bet-heading:before { -webkit-filter: blur(10rem); filter: blur(10rem); } .boomcity__bet-heading.x1 { background: linear-gradient(263.88deg, #e59d6d 0%, #bd5719 104.75%); } .boomcity__bet-heading.x2 { background: linear-gradient(263.88deg,...
CSS
aw_text): feedback.append("🔘 Use bullet points (• or -) instead of paragraphs for experience descriptions.") if not re.search(r'\d{4}\s*-\s*(?:\d{4}|Present|Current)', raw_text, re.IGNORECASE): feedback.append("📅 Format dates consistently (e.g., '03/2020 - Present' or 'January...
Python
/* * keycodes.c * * Copyright 2015 Edward V. Emelianov <eddy@sao.ru, edward.emelianoff@gmail.com> * * This program 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 2 of the License, or * ...
C
Notifiers, Widgets and Bots * [lunch-money-widget: An iOS Widget for LunchMoney Statuses](https://github.com/berndsalewski/lunch-money-widget) - Overview at a glance - (by Bernd Salewski). * [LunchMoneyBudgetNotifier: Uses the Lunch Money API to Retrieve the Current Credit Card Balances and send a Push Notification on...
Markdown
class StandardTests { @BeforeAll static void initAll() { } @BeforeEach void init() { } @Test void succeedingTest() { } @Test void failingTest() { fail("a failing test"); } @Test @Disabled("for demonstration purposes") void skippedTest() { // not executed } @Test void abortedTest() { assu...
Markdown
Garion bei Tabethas Hof möchte, dass Ihr das erbeutete Totem an 10 scheckigen Staubsuhlerkrokilisken oder Staubsuhlerdolchrachen ausprobiert."}}, [11171] = {"Hexlord? Pah!",nil, {"Budd Winterhäldler in den Axthügeln möchte, dass Ihr Hexlord Malacrass in Zul'Aman tötet."}}, [11172] = {"Der Zeppelinabsturz",nil, {"Sprech...
Lua
#include <stdlib.h> #include <grass/gis.h> #include <grass/raster.h> #include "globals.h" /* This routine closes up the cell maps, frees up the row buffers and use a less than perfect way of setting the color maps for the output to grey scale. */ int closefiles(char *r_name, char *g_name, char *b_name, int fd_...
C
mber of affected agent units and noise damage costs....."); } calculateNoiseImmissionsAndDamages(); if (writeOutput()) { log.info("Writing to files..."); NoiseWriter.writeNoiseEmissionStatsPerHour(this.noiseContext, outputDirectory, useCompression, vehicleTypes); NoiseWriter.writeNoiseImmissionStatsPerH...
Java
/* * Copyright (c) 2018-2024 Free Software Foundation, Inc. * * This file is part of Wget * * Wget 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)...
C
arameters.orderBy = orderField updateURLText() end function onSortButtonClick(sortOrder) parameters.sort = sortOrder updateURLText() end local urlEncodeTable = { [" "] = "%20", ["!"] = "%21", ["\""] = "%22", ["#"] = "%23", ["$"] = "%24", ["%"] = "%25", ["&"] = "%26", ["'"] = "%27", ["("] = "%28", [")...
Lua
QuestInfo_ShowType", -- [42096] "QuestIsDaily", -- [42097] "QuestIsFromAdventureMap", -- [42098] "QuestIsFromAreaTrigger", -- [42099] "QuestIsWeekly", -- [42100] "QuestLogButtonTypes", -- [42101] "QuestLogHeaderCodeMixin", -- [42102] "QuestLogMicroButton", -- [42103] "QuestLogMicroButtonMixin", -- [42104] "Que...
Lua
register(&pdev->dev, &clkdata->xtal_hw); if (IS_ERR(clkdata->xtal)) return PTR_ERR(clkdata->xtal); clkdata->fll_hw.init = &wm831x_fll_init; clkdata->fll = devm_clk_register(&pdev->dev, &clkdata->fll_hw); if (IS_ERR(clkdata->fll)) return PTR_ERR(clkdata->fll); clkdata->clkout_hw.init = &wm831x_clkout_init; c...
C
-- -- Code snippit to check/add LSUIElement to Hammerspoon's Info.plist file -- if running 10.8, since this entry is required for HS to be able to toggle -- the dock icon. Surprisingly it isn't in later versions... -- -- Save this file as LSUIElementCheck.lua in ~/.hammerspoon/ and add: -- -- dofile("LSUIElementChec...
Lua
return false; } lockList.add(program); saveList.add(program); } else if (isAnalysisTool(program)) { if (!acquireSaveLock(program, "Close")) { return false; } lockList.add(program); } } return saveChangedPrograms(saveList); } finally { for (Program p : lock...
Java
orts?$") or option:match("interfaces?$") then if option:match("s$") then if type(value) ~= "table" then fixed[option] = { value }; end else if type(value) == "table" and #value > 1 then fixed[option] = nil; fixed[option.."s"] = value; end end end end config[host] = fixed; end...
Lua
/* * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center * * This file is part of the MARS simulation framework. * * MARS is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either versio...
C
# Copyright 2021 The Matrix.org Foundation C.I.C. # # 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 applicable law or a...
Python
// SPDX-License-Identifier: GPL-2.0-or-later /* * Cirrus Logic CLPS711X clocksource driver * * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru> */ #include <linux/clk.h> #include <linux/clockchips.h> #include <linux/clocksource.h> #include <linux/interrupt.h> #include <linux/io.h> #include <linux/of_addres...
C
run_inference(model, args.prompt, args.max_tokens, args.temperature, args.top_k) # **Perplexity Evaluation on input text (before quantization)** perplexity_before = None if args.eval_text: logging.info(f"Evaluating Perplexity on text (before quantization): '{args.eval_text}'") perplexi...
Python
of Defense"] = "Elixir de Defesa" L["Elixir of Demonslaying"] = "Elixir de Demonicídio" L["Elixir of Detect Demon"] = "Elixir de Detecção de Demônios" L["Elixir of Detect Lesser Invisibility"] = "Elixir de Detectar Invisibilidade Inferior" L["Elixir of Detect Undead"] = "Elixir de Detecção de Mortos-vivos" L["Elixir of...
Lua
tStringHelper; import org.kendar.buffers.BBuffer; import org.kendar.protocol.messages.ProtoStep; import java.util.Iterator; public class ConnectionOpenOk extends Connection { private String reserved1; public ConnectionOpenOk() { super(); } public ConnectionOpenOk(Class<?>... events) { ...
Java
ept = { IConcept.CONTAINER, IConcept.GEOMETRY }) @doc ( value = "For internal use only. Corresponds to the implementation, for geometries, of the access to containers with [index]", masterDoc = true) @no_test public static Object internal_at(final IScope scope, final IShape shape, final IList indices) throw...
Java
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser_utils2.c :+: :+: :+: ...
C
et + 3*stride/4 +1][1] = v2; } else if(w==16) { int v1 = (short)(val & 0x0ffff); int v2 = (short)((val & 0xffff0000) >>> 16); for(int i=0;i<4;i++) { vp[p_offset + i + 0*stride/4][0] = v1; vp[p_offset + i + 0*stride/4][1] = v2; vp[p_offset + i + 1*stride/4][0] = v1; ...
Java
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
C
import optuna import numpy as np from counterfit.core import Counterfit from counterfit import CFTarget, CFAttack from rich import print # Optimization function def max_abs_change(cfattack: CFAttack) -> np.ndarray: batch_size = len(cfattack.results) i_0 = np.atleast_2d(cfattack.samples) i_f = np.array(cfat...
Python
// -------------------------------------------------- // // This file is autogenerated by pioasm; do not edit! // // -------------------------------------------------- // #pragma once #if !PICO_NO_HARDWARE #include "hardware/pio.h" #endif // -------------- // // dshot_parallel // // -------------- // #define dshot_...
C
�원이 충분한지 확인하세요! </Tip> ```py (string, rq) = await q.get() strings = [] queues = [] while True: try: (string, rq) = await asyncio.wait_for(q.get(), timeout=0.001) # 1ms except asyncio.exceptions.TimeoutError: break strings.append(string) queues.append(rq) strings outs = pipe(strings, ba...
Markdown
/* $NetBSD: cgsixvar.h,v 1.13 2012/07/12 01:20:22 macallan Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Paul Kranenburg. * * Redistribution and use in source and binary forms, with or without...
C