content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
import time
import io, os, sys
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append('{}/third_party/AcademiCodec'.format(ROOT_DIR))
sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
import numpy as np
from flask import Flask, request, Response
import torch
import torchaudio
from cosyvoic... | Python |
heroes/hero_life_stealer/life_stealer_infested_unit.vpcf", PATTACH_OVERHEAD_FOLLOW, self:GetParent(), self:GetCaster())
end
self:AddParticle(infest_overhead_particle, false, false, -1, true, false)
-- IMBAfication: Chestburster
if self:GetCaster():GetTeamNumber() ~= self:GetParent():GetTeamNumber() and self:Get... | Lua |
� | 给我一个句子或段落,让我将其翻译成另一种语言,例如英语、法语或德语等。 |
| 情感分析 | 给我一段中文文本,让我分析出其中所表达的情感,如积极、消极或中性等。 |
| 电影评论生成 | 给我一部电影的标题和简介,让我自动生成一些与该电影相关的评价或评论。 ... | Markdown |
short )5000, m_ErrInfoVstrPt ) == 0 ) //如果初始化本端高级Udp协议服务端套接字成功。
{
if( m_AudpSrvrSoktPt.SetSendBufSz( 1024 * 1024, m_ErrInfoVstrPt ) != 0 )
{
String p_InfoStrPt = "服务端线程:设置本端高级Udp协议服务端套接字的发送缓冲区大小失败。原因:" + m_ErrInfoVstrPt.GetStr();
if( m_IsPrintLogcat != 0 ) Log.e( m_CurClsNameStrPt, p_InfoStrP... | Java |
ts: 902), 3:d3 (ts: 902),
// 0:e0 (ts: 903), 1:e1 (ts: 903), 2:e2 (ts: 903), 3:e3 (ts: 903),
// 0:f0 (ts: 1000), 1:f1 (ts: 1000), 2:f2 (ts: 1000), 3:f3 (ts: 1000),
// 0:g0 (ts: 1001), 1:g1 (ts: 1001), 2:g2 (ts: 1001), 3:g3 (ts: 1001) }
tim... | Java |
box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.5);
}
.modal-content .modal-header {
border-bottom: none;
padding-top: 24px;
padding-right: 24px;
padding-bottom: 0;
padding-left: 24px;
}
.modal-content .modal-header button {
position: absolute;
right: 27px;
top: 30px;
outline: 0;
}
.modal-content .mo... | CSS |
.form-item--editor-format .form-element--editor-format {
min-width: 1px;
}
.form-item--editor-format .form-item__label,
.form-item--editor-format .form-item__prefix,
.form-item--editor-format .form-item__suffix {
margin-right: var(--space-xs); /* LTR */
}
[dir="rtl"] .form-item--editor-format .form-item__label,
[... | CSS |
#pragma once
#include "mc/_HeaderOutputPredefine.h"
// auto generated inclusion list
#include "mc/deps/puv/CerealUpgraderBase.h"
namespace Puv::internal {
struct AlterationScopeHandler {
public:
// member variables
// NOLINTBEGIN
::ll::UntypedStorage<8, 8> mUnk6db354;
::ll::UntypedStorage<8, 8> mUnk... | C |
l, new BigDecimal("12.34"), "#.000##", "12.340");
// "Standard" must use thousands separator, and round
checkFormat(
null, new BigDecimal("1234567.89"), "Standard", "1,234,568");
// must use correct alternate for 0
checkFormat(null, new BigDecimal("0"), "$#,##0;;\\Z\\e\\r\\... | Java |
end)
t_it("table.sort_ex custom compare func", function()
local tbl = {5, 3, 6, 9, 9, 4, 3, 5, 3}
table.sort_ex(tbl, function(a, b)
return a < b
end)
t_equal(tbl, {9, 9, 6, 5, 5, 4, 3, 3, 3})
end)
end)
t_describe("util.head test", function()
local MaxHeap = req... | Lua |
###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c), 2013-2025, John McNamara, jmcnamara@cpan.org
#
from xlsxwriter.workbook import Workbook
from ..excel_comparison_test import ExcelComparisonTest
class... | Python |
5 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path id="MJX-25-TEX-N-31" d="M213 578L200 573... | Markdown |
from enum import Enum
Conference = Enum('Conference', ['']) | Python |
}
static void fcopy_on_reset(void)
{
/*
* The daemon has exited; reset the state.
*/
fcopy_transaction.state = HVUTIL_DEVICE_INIT;
if (cancel_delayed_work_sync(&fcopy_timeout_work))
fcopy_respond_to_host(HV_E_FAIL);
complete(&release_event);
}
int hv_fcopy_init(struct hv_util_service *srv)
{
recv_buffer ... | C |
/*
* Copyright (c) 2018 Mellanox Technologies. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sou... | C |
farm conditions..."):
recommendations = {}
for season, season_crops in crop_seasons.items():
best_crop, best_profit, best_yield = None, -float('inf'), 0
for crop in season_crops:
predicted_yield = predict_crop_yield(crop, soil_ph, nitrogen, rainfall, temperature)
... | Python |
ictions */
/* None. */
/* $ Literature_References */
/* None. */
/* $ Author_and_Institution */
/* N.J. Bachman (JPL) */
/* $ Version */
/* - Beta Version 1.1.0, 18-JUN-1999 (WLT) */
/* Removed an unbalanced call to CHKOUT. */
/* - Beta Version 1.0.0, 10-OCT-1995 (NJB) */
/* -& */
... | C |
/* $NetBSD: netgroup.h,v 1.3 1996/08/30 18:45:30 thorpej Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
* All rights reserved.
*
* 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 c... | C |
/* Libart_LGPL - library of basic graphic primitives
* Copyright (C) 1998 Raph Levien
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at yo... | C |
whAS610cgsYw6261+61nnd551ansJvKgah63m\n" +
"Eat3LC6WcHwkwDBBHLj3HpdHQrh/v07tb5Nnrq4hPC2H7BjFE13iJbkqEs5Jt9RkE1sFj3aiqqyK\n" +
"Nt/IjTzdNMR9V5WLFL33RkbS9H0SAkx+FCOiP+zbkBV13KP1g03dIzMFx7uRELw+AonYfbVDlr6L\n" +
"MOpY7WGrdURuWE9csKZv8eJeRfyJCaRBPDT8Q0jIocMdcoUll7IQ9AmBpA0Fqy... | Java |
.", "pl"),
("M. Nowak, czy mogę zadać pytanie?", "pan Nowak, czy mogę zadać pytanie?", "pl"),
# Czech
("P. Novák", "pan Novák", "cs"),
("Dr. Vojtěch", "doktor Vojtěch", "cs"),
# Dutch
("Dhr. Jansen", "de heer Jansen", "nl"),
("Mevr. de Vries", "mevrouw de Vries", ... | Python |
#include "libultra_internal.h"
#include "osContInternal.h"
void __osPackRequestData(u8);
void __osContGetInitData(u8 *, OSContStatus *);
u32 _osContInitialized = 0; // probably initialized
extern u64 osClockRate;
// these probably belong in EEPROMlongread or something
u8 _osLastSentSiCmd;
u8 _osContNumControllers;
... | C |
margin-right: auto !important;
}
.share-button {
color: #fff;
background-color: #888;
font-size: 16px;
width: 200px;
height: 50px;
position: fixed;
right: 0;
top: 0;
border-radius: 8px 0 0 8px;
transform: translateX(150px);
transition: transform 0.4s ease-out;
cursor: pointer;
box-sizing: border-box;
pa... | CSS |
, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
portLabel = new JLabel();
portLabel.setText(" 目标端口");
ipPanel.add(portLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstrai... | Java |
elpg \\v\\c<Left><Left>', { desc = 'Search help (very magic, case-insensitive)' })
-- Easy filetype switching
vim.keymap.set('n', 'ftm', ':set ft=markdown<CR>', { desc = 'Set filetype: markdown' })
vim.keymap.set('n', 'ftp', ':set ft=python<CR>', { desc = 'Set filetype: python' })
vim.keymap.set('n', 'ftw', ':set ft=w... | Lua |
nIdentifiersStatics>
{
IValuePatternIdentifiersStatics(std::nullptr_t = nullptr) noexcept {}
IValuePatternIdentifiersStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {}
};
struct WINRT_IMPL_EMPTY_BASES IWindowPatt... | C |
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... | Java |
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | C |
VolumeDB;
public static boolean localPlaying, localPlayerBuffering;
public static Song localSong;
private static MediaPlayerBase localPlayer;
private static class CoreHandler extends Handler {
public CoreHandler() {
super(looper);
}
@Override
public void dispatchMessage(@NonNull Message msg) {
switc... | Java |
from django.urls import path, include, re_path
from rest_framework import routers
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView
from women import views
# router = routers.DefaultRouter()
# router.register(r'women', views.WomenViewSet, basename='women')
urlpatterns ... | Python |
def add_a_book(book_list):
try:
title = input("Book name / Title? ")
author = input("Who wrote it / Author? ")
isbn = input("Book number / Serial ? ")
genre = input("What kind of book / Genre? ")
price = float(input("How much / price? "))
quantity = int(input("Total q... | Python |
lot of stuff is still broken/incomplete,
//and there's still mixed C code in there. I suggest you load everything up in
//Eclpise and see what gives from there.
//
//A good place to start is the testers/ directory, where you can get an idea of
//how a few of the implemented stuff works.package data;
import static data... | Java |
lways write a multiple of blksize bytes, so that
losetup works. */
offset = ((offset - 1) | (blksize - 1)) + 1;
printf("Everything: %d kilobytes\n", offset >> 10);
/* Write the superblock now that we can fill in all of the fields. */
write_superblock(root_entry, rom_image+opt_pad, offset);
printf("Supe... | C |
SparseFormat() && DMLScript.SPARSE_INTERMEDIATE) {
LibSpoofPrimitives.cleanupSparseThreadLocalMemory();
LibSpoofPrimitives.cleanupThreadLocalMemory();
} else {
LibSpoofPrimitives.cleanupThreadLocalMemory();
}
if( flipOut ) {
fixTransposeDimensions(out);
out = LibMatrixReorg.transpose(out, new ... | Java |
workspace "XboxRainDroplets"
configurations { "Release", "Debug" }
architecture "x86"
location "build"
cppdialect "C++latest"
kind "SharedLib"
language "C++"
targetextension ".asi"
linkoptions "/SAFESEH:NO"
buildoptions { "/Zc:__cplusplus /utf-8" }
flags { "MultiProcessorCompile" }
defi... | Lua |
ayısından büyük bir tam sayı girmesini isteyelim, eğer 5 sayısından küçük girerse de `false` komutu yardımıyla “1” çıkış kodunu döndürmesini sağlayalım.
```bash
read -p "Lütfen pozitif bir tam sayı girin:" sayi
if [[ $sayi -gt 5 ]]
then
echo "Girdiğiniz sayı:$sayi uygundur."
else
... | Markdown |
import frappe
from frappe.query_builder import DocType
from frappe.model.workflow import get_transitions, apply_workflow
@frappe.whitelist()
def get_checkin_actions(name):
doc = {
"name": name,
"doctype": "Employee Checkin Request"
}
workflow = get_transitions(doc)
return workflow
... | Python |
le)
# 添加基本统计信息
numeric_cols = df.select_dtypes(include=['number']).columns
if len(numeric_cols) > 0:
content_parts.append("### 数据统计")
stats_data = []
for col in numeri... | Python |
tries": len(SEARCH_CACHE),
"epoch": INDEX_EPOCH,
}
return {"results": hits, "insight": insight_text, "provider": os.getenv("LLM_PROVIDER", "gemini"), "timings": timings}
except Exception as e:
return JSONResponse(
{
"error": "LLM call failed",
... | Python |
},
}
local item = messageIdList[ messageId ]
if item then
s10200_enemy.RouteSetEnable( true, s10200_enemy.routeSets.mafr_hillNorth_ob.sneak_day[ item.group ] )
s10200_enemy.RouteSetEnable( true, s10200_enemy.routeSets.mafr_hillNorth_ob.sneak_night[ item.group ] )
s10200_enemy.InitialRouteSetGroup( ite... | Lua |
#ifndef _ECORE_EO_H
#define _ECORE_EO_H
/* This include has been added to support Eo in Ecore */
#include <Eo.h>
/**
* @addtogroup Ecore_Timer_Group
*
* @{
*/
#include "efl_loop_timer.eo.h"
/**
* @}
*/
#include "efl_loop_message_future.eo.h"
#include "efl_loop_message_future_handler.eo.h"
/**
* @addtogrou... | C |
is works for all values of x and w within a doubleword.
*/
#if (BITMAP_BIT_ORDER == MSBFirst)
#define getstipplepixels( psrcstip, x, w, ones, psrcpix, destpix ) \
{ \
unsigned int q; \
int m; \
if ((m = ((x) - ((PPW*PSZ)-4))) > 0) { \
q = (*(psrcstip)) << m; \
if ( (x)+(w) > (PPW*PSZ) ) \
q |... | C |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import gettext_lazy as _
from .models import *
class UserAdmin(BaseUserAdmin):
ordering = ["email"]
model = User
list_display = [
"pkid",
"id",
"email",
... | Python |
// Copyright 2018 Open Source Robotics Foundation, 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 appli... | C |
}
}
}
inline void GetTranspose(Matrix3x2<TYPE> &M) const {
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 3; ++j) {
M[j][i] = m_data[i][j];
}
}
}
static inline void AddAbTo(const Matrix2x3<TYPE> &A, const AlignedVector3f &b, float *Ab) {
Ab[0] += A.m00() * b.v0() + A.m... | C |
4 *)PA_TO_DM(0xe4805e04) = 0x185600f0;
*(volatile u64 *)PA_TO_DM(0xe4805e18) = 0x156;
*(volatile u64 *)PA_TO_DM(0xe4805e1c) = 0x500000f0;
*(volatile u64 *)PA_TO_DM(0xe4805e30) = 0x156;
*(volatile u64 *)PA_TO_DM(0xe4805e34) = 0x014510f0;
uart_write_str("kexec: About to relocate and jump to kernel\n"... | C |
/*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* (C) 2000 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
*
* This library ... | C |
'我咊他旅行了'},
{'52659', '我和他旅行了', '我和他旅行了'},
{'52660', '1萬7000英裏', '1萬7000英裏'},
{'52661', '1万7000英里', '1万7000英里'},
{'52662', '20da會', '20da會'},
{'52663', '19da會', '19da會'},
{'52664', '20da会', '20da会'},
{'52665', '19da会', '19da会'},
{'52666', 'zg20big', 'zg20big'},
{'52667', 'zg19big', 'zg19big'},
{'52668', '獷電總菊', '獷電總菊'},... | Lua |
;
content: "";
height: 100%;
left: 80px;
position: absolute;
top: 0;
width: 5px;
}
.single-history {
margin-bottom: 50px;
padding-left: 125px;
position: relative;
}
.single-history .history-year {
font-size: 18px;
font-weight: 700;
left: 0;
position: absolute;
t... | CSS |
/*
题目描述:
Jaanai最近知道了质数的定义是指有且只有两个因数的自然数。而Jaanai在写数学题的时候,她突然发现有很多自然数刚好拥有3个因数,她感到非常神奇,于是便把这种数命名为“Jaanai数”。但是现在她碰到一个难题,想让你帮她判断一个数是否为“Jaanai数”。
(提示:建议使用并修改质数筛函数)
输入格式:
一行输入n个正整数(可能出现1)。
输出格式:
n行,第i行代表第i个数是否为“Jaanai数”。如果是,输出“TQL!”;如果不是,输出“TCL!”。
样例输入:
4 9 16 25 36 49 64 81 100
*/
#include <stdio.h>
#include <stdlib.... | C |
tEquals(2, series.getItemCount());
assertEquals(3L, series.getY(1));
old = series.addOrUpdate(Long.valueOf(1L), Long.valueOf(99L));
assertEquals(new XYDataItem(Long.valueOf(1L), Long.valueOf(2L)), old);
assertEquals(2, series.getItemCount());
assertEquals(99L, series.getY(0));
... | Java |
.idMinimapOnPress,
})
)
end
-- map name for title/image
local current_map
local function MapName()
if current_map then
return current_map
else
current_map = GetMapName(GetMap())
return current_map
end
end
local screenshot_taken
function OnMsg.LoadGame()
current_map = false
screenshot_taken = false
end
... | Lua |
fels' Zuflucht."}},
[12965] = {"Lokens Gaben", nil, {"Zerstört Lokens Wut, Lokens Kraft und Lokens Gunst und kehrt dann zu Bergfels dem Steinformer nach Bergfels' Zuflucht zurück."}},
[12966] = {"Ihr könnt ihn nicht verpassen", nil, {"König Jokkum in Dun Niffelem möchte, dass Ihr zu Fjorns Amboss geht und Njormeld such... | Lua |
}
else
{
makeAdjVerticalQuad(builder, adjCol, adjSameDetailLevel, caveCullingMaxY, EDhDirection.WEST, minX, minY, minZ, zSize, ySize,
color, irisBlockMaterialId, blockLight);
}
}
// EAST face
{
ColumnArrayView adjCol = adjData[EDhDirection.EAST.ordinal() - 2];
boolean adjSameDetail... | Java |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | C |
/*
Copyright 1988, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... | C |
or PRO_CPU.
* Make sure that this function is used only PRO_CPU.
*
* @param[in] partition App partition description. Can be NULL, in this case rtc_retain_mem.partition is not updated.
* @param[in] reboot_counter If true then update reboot_counter.
*
*/
void bootloader_common_update_rtc_retain_mem(esp_p... | C |
リズムである。
---
# SMAWK algorithm
## 説明
### 概要
SMAWK algorithm とは、totally monotone な $H \times W$ 行列 $f$ に対し、それぞれの行 $y$ の最小値の位置 (のひとつ) $x \in \mathrm{argmin} _ x f(y, x)$ をまとめて効率よく求めるアルゴリズムである。愚直には行列全体を走査して $O(HW)$ であるが、これを $O(H + W)$ で行う。仮定を強めることで monotone minima をより高速にしたようなアルゴリズムである。
入力となる行列のそれぞれの行は distinct (重複を持たな... | Markdown |
softmax(torch.mm(W5, out) + b5.view(-1, 1))
predicted = torch.argmax(out, dim=0)
correct += (predicted == labels).sum().item()
total += labels.size(0)
accuracy = (correct / total) * 100
print(f"Test Accuracy: {accuracy:.2f}%")
return accuracy
# Training... | Python |
, b, a)
setMenuProperty(id, 'menuFocusColor', { r, g, b, a or menus[id].menuFocusColor[4] })
end
function JayMenu.SetMenuButtonPressedSound(id, name, set)
setMenuProperty(id, 'buttonPressedSound', { ['name'] = name, ['set'] = set })
end | Lua |
:46px;height:46px;text-indent:-9999px;background-color:grey; background-image:url(../_dark//svg/options/edit.svg);border-radius:100%;position:absolute;z-index:31;left:50%;top:50%;transform:translate(-50%,-50%);background-repeat:no-repeat;background-size:30px;background-position:center}
.mfn-ui .mfn-global-wrap a.bt... | CSS |
�感兴趣的饮品。'},
{'1001', '1001', '', '', '34', '267', '不仅能够获得听觉上的享受,破裂的泡泡从视觉上也给人带来一种转瞬即逝的美。'},
{'1001', '1001', '', '', '35', '280', '然后像这样喝上一口......气泡噼里啪啦地在嘴里绽开......'},
{'1001', '1001', '', '', '36', '292', '和短暂虚幻的印象相反,舒畅而甜美的刺激通过喉咙滑下......'},
{'1001', '1001', '', '', '37', '304', '没错,就这样继续沉浸在快乐之中......♡'},
{'1001', '1001... | Lua |
i_gl9750_ops,
#ifdef CONFIG_PM_SLEEP
.resume = sdhci_pci_gli_resume,
#endif
};
static const struct sdhci_ops sdhci_gl9763e_ops = {
.set_clock = sdhci_set_clock,
.enable_dma = sdhci_pci_enable_dma,
.set_bus_width = sdhci_set_bus_width,
.reset = sdhci_gl9763e_reset,
.set_uhs_signaling = sdhci_set_gl97... | C |
pChannels, 0);
end
setDensityNewTypeIndexMode(firstEntry.id, 0);
setDensityTypeIndexCompareMode(firstEntry.id, 0);
end
for i=1, table.getn(g_currentMission.dynamicFoliageLayers) do
local id = g_currentMission.dynamicFoliageLayers[i];
local numChannels = getTerrainDetailNumChannels(id);
local x, z, wid... | Lua |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
############################################################
#
# Copyright (C) 2020 SenseDeal AI, Inc. All Rights Reserved
#
# Description:
# pass
#
# Author: Li Xiuming, Xu Zhiang
# Last Modified: 2020-10-29
############################################################
... | Python |
(albumArtist not in [None, ""]):
albumArtistFilter = '{"operator": "is", "field": "albumartist", "value": "%s"}' % albumArtist
filterValues.append(albumArtistFilter)
if (artist not in [None, ""]):
artistFilter = '{"operator": "is", "field": "artist", "value": "%s"}' % artis... | Python |
/** The painter to remove from the error bar policy. */
private final IErrorBarPainter m_errorBarPainter;
/**
* Create an instance that accesses the error bar policy to remove a painter
* from it with the given action String.
*
* @param errorBarPolicy
* the target the action will work on... | Java |
ataContext.METADATA_LIST_CACHE_NAMESPACE);
// CacheStore listCache = ServiceRegistry.getRegistry().getService(CacheService.class).getCache(listCacheNs, false);
String defListCacheNs = namespace.replace(MetaDataContext.METADATA_CACHE_NAMESPACE, MetaDataContext.METADATA_DEF_LIST_CACHE_NAMESPACE);
CacheStore defListC... | Java |
s to retrieve in one batch; we are encouarged to make fewer API calls, so
* setting this number high is good. 50 seems to take several seconds to retrieve, so it
* was chosen.
*/
private static final int BOOKS_PER_PAGE = 50;
/**
* Constructor
*/
public ImportAllTask(boolean isSync) {
super(BookCatalogu... | Java |
_NWPSERIAL 85
/* MAX3100 */
#define PORT_MAX3100 86
/* Timberdale UART */
#define PORT_TIMBUART 87
/* Qualcomm MSM SoCs */
#define PORT_MSM 88
/* BCM63xx family SoCs */
#define PORT_BCM63XX 89
/* Aeroflex Gaisler GRLIB APBUART */
#define PORT_APBUART 90
/* Altera UARTs */
#define PORT_ALTERA_JTAGUART 91
#de... | C |
d(T7, 1), 0x20);
tmp.packet[14] = _mm256_permute2f128_pd(_mm512_extractf64x4_pd(T4, 1),
_mm512_extractf64x4_pd(T6, 1), 0x31);
tmp.packet[15] = _mm256_permute2f128_pd(_mm512_extractf64x4_pd(T5, 1),
_mm512_extractf64x4_pd(T7, 1), 0x31... | C |
0, 0, 0 )
local cur_pos = reaper.GetCursorPosition()
local start_time, end_time = reaper.GetSet_ArrangeView2( 0, 0, 0, 0 )
-- Insert or Remove
reaper.GetSet_LoopTimeRange( 1, 1, 0, space, false )
if space > 0 then
reaper.Main_OnCommand(40200, 0) -- Insert empty space at time selection (moving later ite... | Lua |
traintSet} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>spread</code></td><td>0</td><td></td></tr>
<tr><td><code>spread_inside</code... | Java |
rch .next-select-values>em+.next-select-trigger-search{filter:alpha(opacity=0);font-size:0}.next-select-in-ie.next-select-trigger.next-no-search .next-select-trigger-search input{color:inherit}.next-select.next-select-multiple[dir=rtl] .next-select-compact .next-select-tag-compact{left:0;right:auto;padding:0 16px 0 4px... | CSS |
Result = rocketMQTemplate.syncSend(userTopic, new User().setUserAge((byte) 18).setUserName("Kitty"));
System.out.printf("syncSend1 to topic %s sendResult=%s %n", userTopic, sendResult);
sendResult = rocketMQTemplate.syncSend(userTopic, MessageBuilder.withPayload(
new User().setUserAge((byte... | Java |
{
unsigned long lastMillis;
if((unsigned long)(millis() - lastMillis) >= DEBOUNCE_MILLIS)
{
lastMillis = millis();
pressedStatus = true;
}
}
private:
volatile bool pressedStatus;
const unsigned long DEBOUNCE_MILLIS = 100;
unsigned long last... | Markdown |
IsSKS then
PressAndReleaseMouseButton(1)
end
Sleep(7 + targetingoftime)
ShotTime = ShotTime + 7 + targetingoftime
MoveMouseRelative(0, 2 + targetingofmove)
if not click then
F_Stopclick()
elseif click then
SetMKeyState(1)
end
end
choujiji = true
function F_Stopclick()
ReleaseMouseButton(1)
click = fal... | Lua |
ontext()
if mvars.fob_addMemverLog then
DebugTextPrint(context, {1.0, 0.5, 0.5}, mvars.fob_addMemverLog )
end
end
if DebugMenu then
if mvars.fobDebug.forceClearGoal then
mvars.fobDebug.forceClearGoal = false
TppMission.ReserveMissionClear {
missionClearType = TppDefine.MISSION_CLEAR_TYPE.FOB_GO... | Lua |
0 1em;
}
/*
* end cover image block
*/
/**
*-----------------------------------------------------
* @subsection 5.1.1 - item-header Groups
*
* Group Specific Item Header
*-----------------------------------------------------
*/
.groups-header .bp-group-type-list {
font-size: 18px;
margin: 0;
color: #333;
display:... | CSS |
/*
* Copyright 2012 Red Hat 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 rights to use, copy, modify, merge, publish, d... | C |
// Copyright (c) 2016 Google 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 applicable law or agreed to... | C |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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 la... | C |
{{ '/docs/installation/' | relative_url }}).
2. Install the jekyll and bundler [gems]({{ '/docs/ruby-101/#gems' | relative_url }}).
```sh
gem install jekyll bundler
```
3. Create a new Jekyll site at `./myblog`.
```sh
jekyll new myblog
```
4. Change into your new directory.
```sh
cd myblog
```
5. Build the site and mak... | Markdown |
List1=[2,4,-6,-8,9,7]
List2=[i for i in List1 if(i>0)];
print (f"positive list = {List2}")
| Python |
E = "portal:active"
# 抽奖池UI
RAFFLE_UI = "raffle:ui"
# 总抽奖池
RAFFLE_POOLS = "raffle:pools"
# 抽奖池内物品
RAFFLE_POOL_ITEMS = "raffle:items"
# 彈性拋射物
Elasticity_Projectile = "elasticity:projectile"
# 彈性拋射物特效
Elasticity_Projectile_Particle = "elasticity:projectileParticle"
# 自动发放物品
... | Python |
g_keyBindings_break1_;
LH_Qt_QString *setup_heading_keyBindings_break2_;
LH_Qt_bool *setup_media_keys_VLC_;
LH_Qt_InputState *setup_input_play_pause_;
LH_Qt_InputState *setup_input_stop_;
LH_Qt_InputState *setup_input_next_;
LH_Qt_InputState *setup_input_prev_;
LH_Qt_InputState *setup_input_... | C |
'''
Aim: To check if the entered numbers are prime or not.
'''
# importing necessary library
from math import sqrt
# getting the number of test cases as input
T = int(input().strip())
# checking condition
for t in range(0,T):
# getting each number as input
n = int(input().strip())
p = 0
if n == 1:
... | Python |
import argparse
import dataclasses
import os
import unittest
import medaka.medaka
import medaka.options
class ParseDictArgTest(unittest.TestCase):
def test_001_basic_counting(self):
parser = argparse.ArgumentParser()
parser.add_argument('--dict', action=medaka.medaka.StoreDict, nargs='+')
... | Python |
new int[]{-50, 60, 50});
String rampantDesc = "Rampant Mode changes glyphid behavior and spawning to be more aggressive, changes include:\n"
+ "\n"
+ "Glyphid Scouts will naturally spawn alongside normal mobs if soot levels are above a certain threshold\n"
+ "Glyphids will always have the extended targe... | Java |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2023 ARM Limited
*
* Verify that the TPIDR2 register context in signal frames is restored.
*/
#include <signal.h>
#include <ucontext.h>
#include <sys/auxv.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <asm/sigcontext.h>
#include "test_signals_utils.h... | C |
hor_bsz, tgt_size**2, dtype=torch.long, device=device)
nn_distances = torch.full((bsz, anchor_bsz, tgt_size**2), float('inf'), dtype=features.dtype, device=device)
for i in range(bsz):
for j in range(anchor_bsz):
nearest_neighbor_indices, nearest_neighbor_distances = gen_nn_... | Python |
esult: " .. (valid1b and "✅ VALID" or "❌ INVALID"))
add_text("Reason: " .. reason1b)
add_text("")
-- Test filename type
add_text("**Test 2: filename validation**")
local valid2, reason2 = mcp.validate_type("config.json", "filename")
add_text("Input: 'config.json'")
add_text("Result: " .. (valid2 and "✅ VALID" ... | Lua |
FF6;
border: 1px solid #A3B4D7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px; }
.mempage {
width: 100%; }
.memitem {
font-family: monospace;
padding: 0;
margin-bottom: 10px;
margin-right: 5px;
-webkit-transition: none;
-moz-transition: none;
-ms-transition: none;
-o-tr... | CSS |
}
for(int i = 0; i < arg.length; i++){
if(arg[i].charAt(0) == '-'){
String name = arg[i].substring(1);
switch(name){
case "width" -> width = Strings.parseInt(arg[i + 1], width);
... | Java |
,
["𩏤"] = "韋自冫隹",
["𩏥"] = "韋口口十",
["𩏦"] = "韋夂田灬",
["𩏧"] = "艹一艹韋",
["𩏨"] = "韋亠乡隹",
["𩏩"] = "韋亼口人",
["𩏪"] = "韋罒土",
["𩏫"] = "韋土人口",
["𩏬"] = "韋亻人ㄅ",
["𩏭"] = "韋金木一",
["𩏮"] = "韋士冖木",
["𩏯"] = "韋⺿甫寸",
["𩏰"] = "韋日幺灬",
["𩏱"] = "韋匚貝",
["𩏲"] = "韋丰丰心",
... | Lua |
the line numbers that each symbol starts and ends on in the file:
%s
Prompt the user if you need to see more than the symbolic outline.
]],
selected.relative_path or selected.path,
ft,
content
)
end
self.Chat:add_message({
role = config.constants.USER_ROLE,
content = description, | Lua |
MTi-G).
XDOF_EnableAhs = 0x00000010, //!< When set to 1, the MTi will have Active Heading Stabilization (AHS) enabled.
XDOF_EnableOrientationSmoother = 0x00000020, //!< When set to 1, the MTi will have Orientation Smoother enabled. Only applicable to MTi-G-710, MTi-7, MTi-670 and MTi-680
XDOF_EnableConfigurabl... | C |
itial_run.source.num_frames)
for frame in range(interstitial_run.source.num_frames):
data = interstitial_run.compute(frame)
displacement[frame, :] = data.attributes["Total displacement 0"]
time[frame] = timestep * data.attributes["Timestep"]
msd = msd_fft_cross(displacement, di... | Python |
ruct ath_softc *sc);
void ath9k_reload_chainmask_settings(struct ath_softc *sc);
u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate);
void ath_start_rfkill_poll(struct ath_softc *sc);
void ath9k_rfkill_poll_state(struct ieee80211_hw *hw);
void ath9k_ps_wakeup(struct ath_softc *sc);
void ath9k_ps_... | C |
;
}
.x-dlg .x-dlg-hd-left {
background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat 0 -41px;
}
.x-dlg .x-dlg-hd-right {
background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat right 0;
}
.x-dlg .x-dlg-dlg-body{
background:#efefec;
border:1px solid #b3b6b0;
border-top:0 none;
}
.x-dlg .x-t... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.