content
stringlengths
2
6.21k
label
stringclasses
16 values
+ " } ]\n" // + " } ]\n" // + " }\n" // + "}"); // } @Test public void testListPlot003() { // assumeTrue(System.getProperty("os.name").contains("Windows")); EvalEngine.resetModuleCounter4JUnit(); ObjectNode messageJSON = TestPods.createJUnitRes...
Java
/* * libjingle * Copyright 2013, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
C
度规范化||[1]|| AITD-01050|Local Curvature|局部曲率||[1]|| AITD-01051|Local Descent|局部下降||[1]|| AITD-01052|Local Invariances|局部不变性||[1]|| AITD-01053|Local Kernel|局部核||[1]|| AITD-01054|Local Markov Property|局部马尔可夫性||[1]|| AITD-01055|Local Maxima|局部极大值||[1]|| AITD-01056|Local Maximum|局部极大点||[1]|| AITD-01057|Local Minima|局部极小||[1...
Python
import torch import numpy as np def lr_decay_mine(optimizer, lr_now, gamma): lr = lr_now * gamma for param_group in optimizer.param_groups: param_group['lr'] = lr return lr def orth_project(cam, pts): """ :param cam: b*[s,tx,ty] :param pts: b*k*3 :return: """ s = cam[:, ...
Python
:get('recordings', 'recording_silence_seconds', 'numeric') or 3; --create the call scree file name call_sreen_name = 'call_screen.'..uuid..'.'..record_ext; --make sure the recording directory exists if (not file_exists(record_path)) then mkdir(record_path); end --set callback function for when a calle...
Lua
E_DOCK_MARKER_2010_OUTER_OUT_LEFT 30791 #define IDB_EXT_RESIZABLE_DOCK_MARKER_2010_OUTER_OUT_RIGHT 30792 #define IDB_EXT_RESIZABLE_DOCK_MARKER_2010_OUTER_OUT_TOP 30793 #define IDB_EXT_RESIZABLE_DOCK_MARKER_2010_OUTER_IN_BOTTOM 30794 #define IDB_EXT_RESIZABLE_DOCK_MARKER_20...
C
ce() if .specifier is 'fail' .out "throw new Error(", .expr,")" else .out "throw ", .expr ### Append to class Grammar.ReturnStatement ### method produce() .out "return" if .expr .out " ",.expr ### Append to class Grammar.FunctionCall ### ...
Markdown
.addJoint(scsShoulderPitch); scsShoulderPitch.setLink(scsUpperArmLink); scsShoulderPitch.addJoint(scsElbowPitch); scsElbowPitch.setLink(scsLowerArmLink); scsElbowPitch.addJoint(scsWristPitch); scsWristPitch.setLink(scsWristPitchLink); scsWristPitch.addJoint(scsWristRoll); scsWr...
Java
et('host', '')) f.write(f"https://t.me/proxy?server={host}&port={data['port']}\n") except Exception as e: print(f"Error in get_mtproto: {e}") def cleanup_old_files(): for dir_path in ['Seperated_by_protocol', 'proxy', 'telegram_proxy', 'mix']: if os.path.exists(dir_path): ...
Python
=True) success = a_plugin.build_from_hamiltonian(hamiltonian_system) if success: print("\n" + "="*60) print("🎯 ANSATZ BUILD SUCCESS!") print("="*60) # Get info info = a_plugin.get_ansatz_info() print(f"✅ VQE Ready: {info['vqe_ready']}") prin...
Python
BehaviorIdentifiers, policy: Policy ) -> None: """ Adds policy to trainer. """ pass def get_policy(self, name_behavior_id: str) -> Policy: """ Gets policy associated with name_behavior_id :param name_behavior_id: Fully qualified behavior name :ret...
Python
#pragma once /* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later ve...
C
/******************************************************************** created: 2013/03/09 filename: EditorSystem.h author: Crazii purpose: system for editor framework it's currently almost empty *********************************************************************/ #ifndef __Blade_EditorSystem_h__ #define __Blade...
C
dark .bp5-editable-text.bp5-intent-warning.bp5-editable-text-editing:before{box-shadow:inset 0 0 0 1px #fbb360,0 0 0 2px #fbb3604d,inset 0 0 0 1px #fff3,inset 0 -1px 1px #8f99a8}.bp5-dark .bp5-editable-text.bp5-intent-danger .bp5-editable-text-input::-moz-placeholder{color:#fa999c}.bp5-dark .bp5-editable-text.bp5-inten...
CSS
The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURP...
Java
/* * Utility functions for printing error messages and other things. */ #define _GNU_SOURCE #include <termios.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include <fcntl.h> #include <assert.h> #include "utils.h" /* Utility function for utils_fatal_error and ...
C
from fastapi.openapi.models import SecurityBase as SecurityBaseModel class SecurityBase: model: SecurityBaseModel scheme_name: str
Python
FILTER_FLAG_ALLOW_FRACTION) { filter_map_update(&map, 2, (const unsigned char *) "."); } if (flags & FILTER_FLAG_ALLOW_THOUSAND) { filter_map_update(&map, 3, (const unsigned char *) ","); } if (flags & FILTER_FLAG_ALLOW_SCIENTIFIC) { filter_map_update(&map, 4, (const unsigned char *) "eE"); } filter_map_a...
C
import cv2 import numpy as np import random def pixel_jitter(src, p=0.5, max_=5.): src = src.astype(np.float32) pattern = (np.random.rand(src.shape[0], src.shape[1], src.shape[2]) - 0.5) * 2 * max_ img = src + pattern img[img < 0] = 0 img[img > 255] = 255 img = img.astype(np.uint8) return ...
Python
table tr td span.active:active,.datetimepicker table tr td span.active:hover:active,.datetimepicker table tr td span.active.disabled:active,.datetimepicker table tr td span.active.disabled:hover:active,.datetimepicker table tr td span.active.active,.datetimepicker table tr td span.active:hover.active,.datetimepicker t...
CSS
_ontop_button_focus_active -- @usebeautiful beautiful.titlebar_ontop_button_focus_active_hover -- @usebeautiful beautiful.titlebar_ontop_button_focus_active_press -- @usebeautiful beautiful.titlebar_ontop_button_normal_inactive -- @usebeautiful beautiful.titlebar_ontop_button_normal_inactive_hover -- @usebeautiful beau...
Lua
@ApiField("scale_score") private String scaleScore; /** * 摘要组 */ @ApiField("search_doc_abstract") private SearchDocAbstractBO searchDocAbstract; /** * 分数组 */ @ApiField("search_score_info") private SearchScoreInfoBO searchScoreInfo; /** * 来源信息 */ @ApiField("source") private String source; /** ...
Java
pg = pg or {} slot0 = pg slot0.word_template_16 = {} slot1 = slot0.word_template_16 function temp() uv0["ボ"] = { ["ケ"] = { this = true }, ["ン"] = { ["デ"] = { ["ー"] = { ["ジ"] = { this = true } } } } } end temp() function temp() uv0["ホ"] = { ["ス"] = { ["ト"] = { this...
Lua
ch * <br>Mandatory: true * <br>Virtual Column: false */ void setAD_Org_ID (int AD_Org_ID); /** * Get Organisation. * Organisational entity within client * * <br>Type: Search * <br>Mandatory: true * <br>Virtual Column: false */ int getAD_Org_ID(); String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; /*...
Java
import heapq def dijkstra(graph, start, end): d, q, prev = [float('inf')] * len(graph), [(0, start)], [None] * len(graph) d[start] = 0 while q: dist, u = heapq.heappop(q) if dist > d[u]: continue if u == end: break for w, v in graph[u]: alt = dist + w ...
Python
rame Covariates used to estimate propensity scores. Y_series : pd.Series Outcome variable. A_series : pd.Series Treatment assignment indicator (0 or 1). Returns ------- tuple[float, float] A tuple containing the estimated effect and its bootstrap standard error. ...
Python
/* * iplink_hsr.c HSR device support * * 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 (at your option) any later version. * * Authors: Arvid Br...
C
()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(0, 0, bounds.width, bounds.height); paintArrow(g, bounds.width, bounds.height); // paint a border manually - I tried using a real (custom) Border // but couldn't get it to stay set for the button, something was // o...
Java
([class*='xs-12']) .video-cover iframe { min-height: 550px; } @media all and (max-width: 990px) { div[class*='col-'][class*='-12']:not([class*='xs-12']) .video-cover iframe { min-height: 350px; } } div[class*='col-'][class*='-10'] .video-cover iframe { min-height: 450px; } div[class*='col-'][class*='-8'] .v...
CSS
print(p->z); } int ep4_size_bin(const ep4_t a, int pack) { ep4_t t; int size = 0; ep4_null(t); if (ep4_is_infty(a)) { return 1; } RLC_TRY { ep4_new(t); ep4_norm(t, a); size = 1 + 8 * RLC_FP_BYTES; //TODO: implement compression properly } RLC_CATCH_ANY { RLC_THROW(ERR_CAUGHT); } RLC_FINALLY { ...
C
EXTGREEN: #259C5C;--weui-BRAND: #07C160;--weui-BLUE: #10AEFF;--weui-INDIGO: #1196FF;--weui-PURPLE: #8183FF;--weui-LINK: #7D90A9;--weui-REDORANGE: #FF6146;--weui-TAG-BACKGROUND-BLACK: rgba(255, 255, 255, .05);--weui-FG: #fff;--weui-WHITE: rgba(255, 255, 255, .8);--weui-FG-5: rgba(255, 255, 255, .1);--weui-TAG-BACKGROUND...
CSS
:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{appearance:none;background:none;border:...
CSS
def InputFunction(): n = int(input("Enter the number :")) return n def EvenOddFunction(n): if n % 2 == 0 : print (f"{n} is even number") else : print (f"{n} is odd number") def EvenOddFunctionWithoutModule(n): if (n/2) == ((n+1)/2): print (f"{n} is odd number") else: ...
Python
* @version 0.1 */ public final class SchemaDescriptor extends TupleDescriptor implements UniqueTupleDescriptor, Provider, Externalizable { /* ** When we boot, we put the system tables in ** in 'SYS', owned by user DBA. ** '92 talks about two system schemas: ** ** Information Schema: ...
Java
(TAG, "Exception creating ArCore session", exception); return false; } } try { if (!m_async) { Config config = new Config(session); config.setUpdateMode(Config.UpdateMode.LATEST_CAMERA_IMAGE); session.configure(config); } session.resume(); } catch (CameraNotAvailableException e) { ...
Java
local locale = {} local localeKey = exports["lb-phone"]:GetConfig().DefaultLocale local rawContent = LoadResourceFile(GetCurrentResourceName(), ('locales/%s.json'):format(localeKey)) if not rawContent then lib.print.warn(('Unable to load %s locale as it doesn\'t exist in @%s/locales/'):format(localeKey, GetCurre...
Lua
me } private File lameExe; private JTextField saveAsField; private JTextField titleField; private JCheckBox addLotroCheckbox; private JTextField artistField; private JTextField albumField; private ButtonGroup qualityButtonGroup; private JRadioButton[] qualityButtons; private Preferences prefs; private Tab...
Java
ncols = image.getNumCols (); int nrows = image.getNumRows (); int nslices = image.getNumSlices (); col = ncols/2; row = nrows/2; slice = nslices/2; time = 0; rects = packRects(nrows, ncols, nslices); updateBounds(rects); textureImage = BufferUtilities...
Java
f (value == 0x2) { unknown0C |= 0x2; } } private void setUnknown08(int value) { unknown08 = value; switch (value) { case 0x0030: case 0x1E00: case 0x2000: case 0xC100: case 0xC101: case 0xC120: case 0xC122: case 0xC123: case 0xC124: case 0xC12C: case 0xC13E: case 0xC140:...
Java
//===-- Utility class to test the signbit macro [f|l] -----------*- C++ -*-===// // // 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
= "Instilled", "(55-68)% increased Armour and Energy Shield", statOrder = { 478 }, level = 30, group = "DefencesPercent", master = "Haku", masterLevel = 5, types = { ["Gloves"] = true, ["Boots"] = true, ["Body Armour"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Brawler's", "(40-52)...
Lua
9900] = {"加瓦克希",nil, {"杀死沃舒古附近的加瓦克希,然后向纳格兰埃瑞斯码头的瑟利德复命。"}}, [9901] = {"遗留事务",nil, {"泰雷多尔的勘探员柯纳尔要求你干掉孢子之翼。"}}, [9902] = {"沼光湖的恐怖",nil, {"杀死恐爪,然后向奥雷柏尔营地的普尔鲁复命。"}}, [9903] = {"多头蛇之王",nil, {"杀死穆拉格什,然后向萨布拉金的苏尔加亚复命。"}}, [9904] = {"猎杀恐爪",nil, {"杀死恐爪,然后向萨布拉金的苏尔加亚复命。"}}, [9905] = {"玛克图的复仇",nil, {"找到穆拉格什并杀死他,然后返回奥雷柏尔营地向玛克图复命。"}},...
Lua
金子的话,还待在这里干什么?$B$B我相信我已经把事情说得很直白了,咳咳。$B$B加基森在等待你!祝你好运!", ["O"] = "把灌魔的骸骨碎片和15枚金币交给加基森的克林科·好钢。", ["T"] = "昂贵的模具", }, [5621] = { ["D"] = "我需要你的帮助,$N。我因为要在这里训练别的学生而无法分身,但是你可以帮我去救助多兰纳尔南边的一位受伤的哨兵。她在小镇附近巡逻的时候受伤了,急切地需要我们的帮助。她的名字叫莎恩雅。$B$B你找到她之后就治疗她的伤口,然后使用你的法术帮助她恢复健康,这至少可以让她轻松一些。如果你完成了这一使命,就回到我这里来。", ["O"] ...
Lua
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/HashMap.h> #include <AudioServer/AudioClientEndpoint.h> #include <AudioServer/AudioServerEndpoint.h> #include <LibAudio/Queue.h> #include <LibCore/EventLoop.h> #include <LibIPC...
C
ameConstraints"), entry("43", "timeSpecification"), entry("44", "cRLScope"), entry("45", "statusReferrals"), entry("46", "freshestCRL"), entry("47", "orderedList"), entry("48", "attributeDescriptor"), entry("49", "userNotice"), entry("50", ...
Java
, { triggerType = 8, key = true, waveIndex = 900, preWaves = { 104 }, triggerParams = {} } } } }, fleet_prefab = {} }
Lua
, buf_addr_info->info0); sw_mon_entries->mon_status_paddr = (((u64)FIELD_GET(BUFFER_ADDR_INFO1_ADDR, status_buf_addr_info->info1)) << 32) | FIELD_GET(BUFFER_ADDR_INFO0_ADDR, status_buf_addr_info->info0); sw_mon_entries->mon_dst_sw_cookie = FIELD_GET(BUFFER_ADDR_INFO1_SW_COOKIE, ...
C
# -*- coding: utf-8 -*- # Part of Fothz. See LICENSE file for full copyright and licensing details. { 'name': 'Purchase Requisition Sale', 'description': "Bridge module for Purchase requisition and Sales. Used to properly create purchase requisitions for subcontracted services", 'version': '1.0', 'cate...
Python
unparsed |= data.unparsed; } public DORAListDeploymentsRequest data(DORAListDeploymentsRequestData data) { this.data = data; this.unparsed |= data.unparsed; return this; } /** * The JSON:API data. * * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclud...
Java
skip, html, xml, perl, java, subchar} * * Specify the way that nkf handles unassigned characters. * Without this option, --fb-skip is assumed. * * === --prefix= <code>escape character</code> <code>target character</code> .. * * When nkf converts to Shift_JIS, * nkf adds a specified escape character to spec...
C
RAID_TOGGLE_MAP = { [DifficultyUtil.ID.PrimaryRaidNormal] = { DifficultyUtil.ID.Raid10Normal, DifficultyUtil.ID.Raid25Normal }, [DifficultyUtil.ID.PrimaryRaidHeroic] = { DifficultyUtil.ID.Raid10Heroic, DifficultyUtil.ID.Raid25Heroic }, [DifficultyUtil.ID.PrimaryRaidMythic] = {}, } function NormalizeLegacyDifficulty...
Lua
地方。maven的本地仓库,在安装maven后并不会创建,它是在第一次执行maven命令的时候才被创建。maven本地仓库的默认位置:在用户的目录下都只有一个.m2/repository/的仓库目录;可以修改。 **中央仓库**:包含了绝大多数流行的开源Java构件,以及源码、作者信息、SCM、信息、许可证信息等。开源的Java项目依赖的构件都可以在这里下载到。 中央仓库的地址:http://repo1.maven.org/maven2/ **私服**:是一种特殊的远程仓库,它是架设在局域网内的仓库。 **没有使用私服的仓库构件下载** ![](https://javapub-common-oss.oss-cn-b...
Markdown
FALSE = perfect transformation not possible * (may use custom action then) */ GLOBAL(boolean) jtransform_perfect_transform(JDIMENSION image_width, JDIMENSION image_height, int MCU_width, int MCU_height, JXFORM_CODE transform) { boolean result = ...
C
local PLUGIN = PLUGIN if (SERVER) then AddCSLuaFile() end ENT.Type = "anim" ENT.PrintName = "Scavenging Source" ENT.Author = "Experiment Redux" ENT.Spawnable = false ENT.AdminOnly = true ENT.Model = Model("models/props_junk/trashcluster01a.mdl") ENT.IsScavengingSource = true function ENT:SetupDataTables() self...
Lua
#include "libforest/gbi_extensions.h" #include "PR/gbi.h" #include "evw_anime.h" #include "c_keyframe.h" #include "ac_npc.h" #include "ef_effect_control.h" u8 ef_kore_tex[] ATTRIBUTE_ALIGN(32) = { #include "assets/ef_kore_tex.inc" }; Vtx ef_kore_v[] = { #include "assets/ef_kore_v.inc" }; Gfx ef_kore_modelT[] = { ...
C
@MODEL_WRAPPER_REGISTRY.register(model_name='resnext29_2x64d', dataset_name ='cifar100', task_type='classification') def resnext29_2x64d_cifar100(pretrained=False, num_classes=100): return _resnext('resnext29_2x64d', num_classes=num_classes, num_blocks= [3, 3, 3], cardinality=2, bottleneck_width=64, pre...
Python
concebida por primera vez durante la Segunda Guerra, en Dalaran, para ayudar a contrarrestar el poder profano de los caballeros de la muerte de Gul\'dan.$B$BSolo puede ser preparada con un implemento alquímico específico comúnmente utilizado en la transmutación conocido como la Piedra Filosofal. Que, desafortunadamente...
Lua
} .-top {} .\-top {} #\#test {} .grid { display: flex; flex-wrap: wrap; } .grid.\-top { align-items: flex-start; } .grid.-top { align-items: flex-start; } .grid.\-middle { align-items: center; } .grid.\-bottom { align-items: flex-end; } .u-m\00002b {} .u-m00002b {} #u-m\+ {} body { font-family: '微软...
CSS
require('vstudio') premake.api.register { name = "unitybuild", scope = "config", kind = "boolean", default_value = "off", } premake.api.register { name = "dontincludeinunity", scope = "config", kind = "boolean", default_value = "off", } local function enable_unitybuild(cfg) if cfg.unitybuild then --print...
Lua
# -*- coding: utf-8 -*- """ ChatGee Module Class Object """ import queue as q import threading import time from datetime import datetime import requests import tiktoken from base.module_database import ChatGee_DB from base.module_openai import ChatGee_OpenAI from base.module_kakaotalk import ChatGee_KakaoTalk from b...
Python
ans, Helvetica Neue, Helvetica, Arial, sans-serif' !default; $heading: 'PT Serif, Times New Roman, Times, serif' !default; $monospace: 'Inconsolata, Consolas, Monaco, monospace;' !default; $print: 'PT Serif, Times New Roman, Times, serif' !default; @function is-variable-font($font-name) { $static-fonts: ('PT Serif')...
CSS
l(processes=self.num_workers) sessions = [(k,v) for k,v in audio_info['ihm'].items()] print ("Processing IHM sessions....") tot_success=0 for f in tqdm.tqdm(pool.imap(pool_recording_worker, sessions), total=len(sessions)): tot_success...
Python
/* Free Download Manager Copyright (c) 2003-2014 FreeDownloadManager.ORG */ static const unsigned char odd_parity[256]={ 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, 16, 16, 19, 19, 21, 21, 22, 22, 25, 25, 26, 26, 28, 28, 31, 31, 32, 32, 35, 35, 37, 37, 38, 38, 41, 41, 42, 42, 44, 44, 47, 47...
C
r(xME*100.0); yME = math.floor(yME*100.0); if ((xME > 0) or (yME > 0)) then if(WatchTower_ReportCoordinates) then tMessage = tMessage .. "at ("..xME..","..yME..") "; end end end if(GankReport == true) then tMessage = tMessage .. "WARNING: This player is ganking low level " .. Un...
Lua
HomeSelectedLoopItem:OnRefresh(data) self.data_ = data if data.IsGroup then self.uiBinder.rimg_icon:SetImage(groupPath) else local configId = self.homeEditorData_.HouseItemUUidMap[data.EntityUid] if configId then local path = self.itemsVm_.GetItemIcon(configId) self.uiBinder.rimg_icon:SetI...
Lua
/************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availab...
C
2, dtype="handle", ), s1_2, "row_major", dtype="handle", ) ) # fmt: on # pylint: en...
Python
21/2016 online version: https://learn.microsoft.com/powershell/module/dism/remove-appxprovisionedpackage?view=windowsserver2019-ps&wt.mc_id=ps-gethelp schema: 2.0.0 title: Remove-AppxProvisionedPackage --- # Remove-AppxProvisionedPackage ## SYNOPSIS Removes an app package (.appx) from a Windows image. ## SYNTAX ###...
Markdown
#!/usr/bin/env python #Author: p1nk import os import json import base64 def parse_log(inpath): with open(inpath, 'r') as file: for line in file: # convert line to json jline = json.loads(line) source = jline.get('source', '[no source]') data = jline.get(...
Python
new GeoRectangle(PlanetModel.SPHERE, 0.1, 0.0, -0.1, 0.0); assertEquals(GeoArea.OVERLAPS, rect.getRelationship(p)); rect = new GeoRectangle(PlanetModel.SPHERE, 0.2, 0.1, -0.2, -0.1); assertEquals(GeoArea.DISJOINT, rect.getRelationship(p)); // Check if overlap at endpoints behaves as expected next r...
Java
vate final TemplateContext initialContext = new TemplateContext(); private final List<Part> parts = new ArrayList<>(); public FilesystemTemplate(String filename) { this.filename = filename; } @Override public TemplateContext getInitialContext() { loadTemplate(); return initialContext; } private void loa...
Java
_end = 110, }, jump = true, sounds = { war_cry = "mobs_die_yell", death = "default_death", attack = "default_punch2", }, attacks_monsters = true, peaceful = true, group_attack = true, step = 1, }) mobs:register_spawn("lottmobs:nazgul", {"default:stone"}, 2, -1, 20000, 3, -50) mobs:register_mob("lottmobs:...
Lua
[2] }, ["N"] = "Kalidartreestumps", }, -- [9] { ["T"] = { "MooWellWaterFX.m2", -- [1] }, ["N"] = "Moonwellwater", }, -- [10] { ["T"] = { "OracleTree.m2", -- [1] "OracleTreeBank.M2", -- [2] ...
Lua
border-radius: 3px; border-radius: var(--popup-local-corner, 3px); -webkit-box-shadow: none; -webkit-box-shadow: var(--popup-local-shadow, none); box-shadow: none; box-shadow: var(--popup-local-shadow, none); } .next-cascader-select-dropdown *, .next-cascader-select-dropdown ...
CSS
equivalent to MatrixBase::operator*=(). * * Example: \include MatrixBase_applyOnTheRight.cpp * Output: \verbinclude MatrixBase_applyOnTheRight.out */ template<typename Derived> template<typename OtherDerived> inline void MatrixBase<Derived>::applyOnTheRight(const EigenBase<OtherDerived> &other) { other.deriv...
C
A\010reque" + "sts\202\323\344\223\002\037\"\032/v1p2beta1/images:annotate:\001*\022\351\001\n" + "\027AsyncBatchAnnotateFiles\022=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateF" + "ilesRequest\032\035.google.longrunning.Operation\"p\312A4\n" + "\037AsyncBatchAnnotateFilesRes...
Java
import os import dj_database_url # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'postgres', }, 'atomic': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', ...
Python
the enumeration be updated to reflect the current * record set. Useful for when a MIDlet * makes a number of changes to the record store, and then wants an * existing RecordEnumeration to enumerate the new changes. * <P> * * @see #keepUpdated(boolean) */ void rebuild(); /** * Used to set whether the...
Java
from deeplite_torch_zoo.src.object_detection.yolo.flexible_yolo.yolov6_model import YOLOv6 from deeplite_torch_zoo.api.models.object_detection.helpers import ( make_wrapper_func, get_project_root, load_pretrained_model ) from deeplite_torch_zoo.api.datasets.object_detection.yolo import DATASET_CONFIGS __all__ = [...
Python
/* * sactstring.h: SACTの文字列操作関連 * * Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp> * 1998- <masaki-c@is.aist-nara.ac.jp> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General...
C
kWriteMinidumpToFile, kWriteMinidumpToFd, kWriteMicrodumpToConsole }; // Specifies the dump mode (see DumpMode). DumpMode mode_; // The file descriptor where the minidump is generated. int fd_; // The directory where the minidump should be generated. string directory_; // The full path ...
C
/** * Copyright 2014 Social Robotics Lab, University of Freiburg * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * # Redistributions of source code must retain the above copyright * notice, this list of condi...
C
}, { type = differ.constants.unchanged, value = "cc" }, { type = differ.constants.unchanged, value = "dd" }, { type = differ.constants.removal, value = "ll" }, { type = differ.constants.addition, value = "yy" }, { type = differ.constants.unchanged, val
Lua
/* * Copyright (c) 2012 Justin Ruggles * * This file is part of FFmpeg. * * FFmpeg 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 * version 2.1 of the License, or (at your option) any la...
C
/* Copyright 1999-2007 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. obtain a copy of the License at http://www.imagemagick.org/script/license.php Unless required ...
C
px 0;}label>input{visibility:hidden;position:absolute;}label>input+img{cursor:pointer;border:2px solid transparent;}label>input:checked+img{background-color:#4169e1;padding:5px;-ms-border-radius:15px;border-radius:15px;border:2px solid #6495ed;}label>h3,label>h4{cursor:pointer;}/*! * Bootstrap v4.6.2 (https://getboots...
CSS
// // TWRChartView.h // ChartJS // // Created by Michelangelo Chasseur on 21/04/14. // Copyright (c) 2014 Touchware. All rights reserved. // typedef void(^TWRAnimationCompletionBlock)(BOOL finished); #import <UIKit/UIKit.h> @class TWRBarChart; @class TWRLineChart; @class TWRCircularChart; @interface TWRChartView...
C
ите внимание: мы начинаем выражение `defmodule` с `Mix.Tasks` и имени, при помощи которого мы хотим вызывать нашу команду. На второй строке мы используем `use Mix.Task`, чтобы добавить поведение `Mix.Task` в наше пространство имён. Далее напишем функцию, которая пока не принимает аргументы. Внутри этой функции вызовем ...
Markdown
同志|自由花|唐书琛|守护天使不离不弃|达明一派|今天我愿你平安|今天我愿你平安阿门|诸神的黄昏|皇后大盗|排名不分先后左右忠奸|无大无细超|十个救火的少年|讲0野)'}, {'61938', '刘ke清', '刘ke清'}, {'61939', '刘可清', '刘可清'}, {'61940', '刘克qing', '刘克qing'}, {'61941', '劉ke清', '劉ke清'}, {'61942', '劉可清', '劉可清'}, {'61943', '劉尅qing', '劉尅qing'}, {'61944', '时间化作滚滚长江,汇入黑框眼镜', '时间化作滚滚长江,汇入黑框眼镜'}, {'61945', '時間化作滾滾長...
Lua
close(); long time = System.nanoTime() - start; System.out.println(lines + " lines processed, " + (time / 1000000 / 1000) + " seconds"); } private static byte[] getSegment(ArrayList<Long> keys) { long[] array = new long[keys.size()]; for (int i = 0; i < keys.size(); i++) { ...
Java
for _, Part in pairs(Selection.Parts) do table.insert(XVariations, Support.Round(Part.Size.X, 3)); table.insert(YVariations, Support.Round(Part.Size.Y, 3)); table.insert(ZVariations, Support.Round(Part.Size.Z, 3)); end; local CommonX = Support.IdentifyCommonItem(XVariations); local CommonY = Support.IdentifyCo...
Lua
-- $Id: Ribbons.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- --// only works with >=77b1 if (Game.ve...
Lua
} catch (IOException e) { // ignore } } } public static void startPage(StringBuffer buf, String title, ImageDescriptor descriptor) { boolean hasTitle = !StringUtils.isEmpty(title); String imageSrcPath = getImageURL(descriptor); if (!hasTitle && StringUtils.isEmpty(imageSrcPath)) { return; } in...
Java
fruits = ["apple", "banana"] if "apple" in fruits: print("Yes, apple is a fruit!")
Python
{"Peguei uma!", nil, {"Capture uma mascote de batalha. Uma"}}, [31556] = {"Pegando o jeito", nil, {"Vença uma batalha de mascotes. Uma"}}, [31557] = {"Coisas sofisticadas", nil, {"Entregue as mercadorias solicitadas a qualquer membro da Sociedade do Tesouro de Pandária no Vale das Flores Eternas. Uma"}}, [31558] = {"C...
Lua
s.get(configID)); } /** * @return Returns the set of configuration IDs that exist in the SSLSocketFactoryFactory. */ // public String[] getConfigurationIDs() { // Set s = this.configs.keySet(); // String[] configs = new String[s.size()]; // configs = (String[]) s.toArray(configs); // return configs; // } /...
Java
char c = (char)waitKey(25); if(c==27) // ESC break; } cap.release(); destroyAllWindows(); return 0; } ``` 在前面的代码中,首先,我们使用默认摄像头的索引创建`VideoCapture`的实例,然后测试摄像头是否成功打开。 如果打开,则进入无限循环。 在循环中,我们从`VideoCapture`实例读取图像到`Mat`实例。 随着循环的进行,将从网络摄像头读取连续的图像并将它们组成视...
Markdown
def car_race_collision(n: int): """ Imagine a road that's a perfectly straight infinitely long line. n cars are driving left to right; simultaneously, a different set of n cars are driving right to left. The two sets of cars start out being very far from each other. All cars move in the same spe...
Python
finishScriptUserdata; // Userdata to pass to the 'finish' script action }; #endif void T_PlatRaise(plat_t& plat) noexcept; bool EV_DoPlat(line_t& line, const plattype_e platType, const int32_t moveAmount) noexcept; #if PSYDOOM_MODS bool EV_DoCustomPlat(sector_t& sector, const CustomPlatDef platDef) ...
C
* * public static void stack(Context ctx) { * final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder() * .name("foobar") * .build()); * * } * } * } * </pre> * */ public static Output<GetHcVpnG...
Java