content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or hav... | Java |
e\x0c\x0e\x71\xf5\xb5\xb5\x55\x2a\x2d\x4e\x52\xd2\x51\x70\x0c\x09\x09\x0a\xae\xce\x4c\x09\x4b\xcd\x4b\xc9\x2f\xaa\xb5\xb5\x55\x32\xb4\x34\x34\x45\x92\x08\x28\xca\x4f\x29\x4d\x2e\x01\xc9\x98\x9b\x9b\x9b\x2b\xe9\x28\xf8\xfa\xbb\xb8\xda\x2a\x19\x98\x99\x99\x28\xe9\x28\xb8\x07\xf9\x87\x06\xd8\x2a\x15\xe4\x94\xa6\xa7\xa4\x9... | Go |
-signaled sources") {
context("Another endpoint's sources") {
shouldThrow<SourceDoesNotExistException> {
conferenceSources.tryToRemove(jid2, sourceSet)
}
}
context("A non-signaled source") {
... | Kotlin |
g; ++i) {
writeByte(0);
}
// Fixed-size ints at the end used as an index.
assert(_binaryOffsetForSourceTable >= 0);
writeUInt32(_binaryOffsetForSourceTable);
assert(_binaryOffsetForConstantTable >= 0);
writeUInt32(_binaryOffsetForConstantTable);
assert(_binaryOffsetForConstantTableInd... | Dart |
utput.vertices[masks][:, foot_idxs]
foot_disp = (foot_loc[1:] - foot_loc[:-1]).norm(2, dim=-1)
contact = foot_disp[:] < thr
pred_feet_loc = pred_output.vertices[:, foot_idxs]
pred_disp = (pred_feet_loc[1:] - pred_feet_loc[:-1]).norm(2, dim=-1)
error = pred_disp[contact]
return error.cpu().num... | Python |
info!("D = {}", esc.throttle(QuadMotor::D) * 100.0);
}
// User has set a throttle for an output
Ok(Some(Command::SetThrottle { output, percent })) => {
log::info!("SETTING '{:?}' = {}% throttle", output, percent);
esc.set_throttle(output, percent / 100... | Rust |
_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n //... | JavaScript |
>Returns TrackId
@override
Future<int?> upsert({bool ignoreBatch = true}) async {
try {
final result = await _mnTrack.rawInsert(
'INSERT OR REPLACE INTO Track (TrackId, Name, Composer, Milliseconds, Bytes, UnitPrice, MediaTypeId, GenreId, AlbumId) VALUES (?,?,?,?,?,?,?,?,?)',
[
... | Dart |
---------
defaultNumLowerBits 3.59ns 278.69M
slowDefaultNumLowerBits 10.88ns 91.90M
============================================================================
#endif
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv... | C++ |
内存泄漏。上面例子是 inner 直接挂在了 root 上,从而导致内存泄漏(bigData 不会释放)。
对于一些高水平的同学, 要求能清楚的了解 v8 内存 GC 的机制, 懂得内存快照等 (之后会在`调试/优化`的小结中讨论) 了. 比如 V8 中不同类型的数据存储的位置, 在内存释放的时候不同区域的不同策略等等.
我可能会接着问,如何排查内存泄露呢?
## 如何排查内存泄露
详见[《如何分析 Node.js 中的内存泄漏》](https://zhuanlan.zhihu.com/p/25736931)
这篇文章分析的相当到位,主要是有很清晰的案例,让你很快就能初步掌握排查内存泄露的方法。
快照工具推荐使用 hea... | Markdown |
.replace("%playername%", player.getName());
player.sendPacket(npcReply);
npcReply = null;
}
else
{
SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
sm.addString(res);
player.sendPacket(sm);
sm = null;
}
player = null;
}
return false;
}
/**
* Add the qu... | Java |
palette 2 address
movem.l (a0),d0-7
movem.l d0-7,$ffff8240.w
movem.l (a7)+,d0-7/a0
move.b d0,$ffff8a3c.w
move.b (a7)+,d0
b | Assembly |
MenuScene = Object:extend()
function MenuScene:new()
self.menuWorld = Concord.world()
self.optionsWorld = Concord.world()
self.backgroundMap = Map('assets/data/MenuBackground/MenuBackground_Background.csv')
self:createMenuEntities()
self.menuWorld:addSystems(RenderSystem, MenuSystem, FilterSystem)
... | Lua |
key.name")?.jsonPrimitive?.content
// TODO: make filter customizable
// filter swift class that starts with 'Kotlin'
swiftDeclarationName?.startsWith("Kotlin")?.not() == true &&
swiftDeclarationName?.startsWith("NS")?.not() == true // TODO: make it clean
}
... | Kotlin |
ary>
/// A bend that starts from an unbended string,
/// and also releases the bend after some time.
/// </summary>
BendRelease,
/// <summary>
/// Holds a bend that was started on an earlier note
/// </summary>
Hold,
/// <summary>
/// A bend that is already started before the n... | C# |
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
from sqlalchemy.ext.asyncio import async_sessionmaker
from sqlalchemy.orm import declarative_base
from app.settings import *
# Use asyncpg driver for PostgreSQL async support
SQLALCHEMY_DATABASE_URL = f'postgresql+asyncpg://{POSTGRES_USER}:{POSTGRES_... | Python |
t newElt = _newElement(childHtml);
_visit(path).children.add(newElt);
}
@override
void removeChild(String path, int index) {
_visit(path).childNodes[index].remove();
}
@override
num getClientWidth(String path) {
return _visit(path).clientWidth;
}
@override
num getClientHeight(String pat... | Dart |
pack(uint32(dllOffset))
bootstrap = append(bootstrap, dllOffsetBytes...)
// mov rbp, rsp
bootstrap = append(bootstrap, 0x48, 0x8B, 0xEC)
// sub rsp, 18h
bootstrap = append(bootstrap, 0x48, 0x83, 0xEC, 0x18)
// mov qword ptr [rbp+8], rax
bootstrap = append(bootstrap, 0x48, 0x89, 0x45, 0x08)
// call Reflectiv... | Go |
outs != nil {
if ps.Timeout != nil {
// can't have both at the same time
errs = errs.Also(apis.ErrDisallowedFields("timeout", "timeouts"))
}
// tasks timeout should be a valid duration of at least 0.
errs = errs.Also(validateTimeoutDuration("tasks", ps.Timeouts.Tasks))
// finally timeout should be a v... | Go |
);
}
}
///
/// Generated file. Do not edit.
///
// coverage:ignore-file
// ignore_for_file: type=lint, unused_import
part of 'strings.g.dart';
// Path: <root>
typedef TranslationsJa = Translations; // ignore: unused_element
class Translations implements BaseTranslations<AppLocale, Translations> {
/// Returns the c... | Dart |
Ok(Url::parse(&**self)?)
}
}
// impl<'a> IntoUrl for String {
// fn into_url(self) -> Result<Url, Error> {
// Ok(Url::parse(&*self)?)
// }
// }
// pub fn into_url<U: IntoUrl>(u: U) -> Result<Url, Error> {
// match u.into_url() {
// Ok(url) => Ok(url),
// Err(err) => Err(err),
... | Rust |
ners-secondary__th:last-child{border-right:none}.trnm-winners-secondary__tr{border-bottom:1px solid #323440}.trnm-winners-secondary__tr:last-child{border-bottom:none}.trnm-winners-secondary__td{color:#a9a8b3;padding:8px;font-size:12px;font-weight:500;line-height:1.4;text-overflow:ellipsis;overflow:hidden;border-right:1... | CSS |
nse, or
* (at your option) any later version.
*
* J2ME Polish 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 r... | Java |
me="initializtion"></param>
/// <param name="random"></param>
public void Initialize(int inputWidth, int inputHeight, int inputDepth, int batchSize,
Initialization initializtion, Random random)
{
InputWidth = inputWidth;
InputHeight = inputHeight;
InputDepth = inputDepth;
... | C# |
inches="tight", dpi=300)
plt.show()
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def extract_wall_boundary_numpy(field, threshold=1e-6):
"""
对每一列,从上往下找第一个大于 threshold 的值的索引
"""
wall_y = []
height, width = field.shape
for x in range(width):
col = field[:, x... | Python |
1011: // Divine Fortress
return 10;
case 1131: // Siel's Western Fortress
return 10;
case 1132: // Siel's Eastern Fortress
return 10;
case 1141: // Sulfur Fortress
return 10;
case 1221: // Krotan Refuge
return 10;
case 1231: // Kysis Fortress
return 10;
case 1241: // Miren For... | Java |
6l-224.5 263c-24.6 28.8-60.5 45.4-98.3 45.4l-9.1 0C101.8 432 48 378.2 48 311.8c0-8.8 1-17.5 2.9-26.1L75.3 176zM136 304a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm-8-56a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"],"square-2":[448,512,[],"e257","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.... | JavaScript |
量的食用油,下鸡块煸炒至变色。 | 加入酱油、料酒翻炒均匀,放入栗子,加入适量的清水烧开。 | 放入生姜、葱,小火焖煮至鸡肉熟软,栗子酥烂。 | 最后加入适量的盐和白糖调味,收汁后即可出锅食用。
# 蒜蓉空心菜
### 菜系
家常菜
### 食材
空心菜、大蒜、盐、生抽、食用油
### 烹饪步骤
1.将空心菜洗净,控干水分。把菜梗和菜叶切开,分别放置。
2.大蒜去皮,切成蒜末备用。
3.烧热锅,倒入适量的食用油,先放入一半的蒜末爆香。
4.先下菜梗,快速翻炒至变色。
5.再下菜叶,翻炒至菜叶变深绿色。
6.加入盐和生抽调味,翻炒均匀。
7.最后放入剩下的一半蒜末翻炒出水分即可出锅装盘。
# 蒜蓉空心菜
### 菜系... | Markdown |
^=perksModal] svg[class^=tierLock] {
color: var(--text-muted);
}
div[class^=perksModal] div[class*=selectedTier] div[class*=tierMarkerLabelText] {
color: var(--text-normal);
}
div[class^=perksModal] div[class^=tierHeaderLocked] {
background-color: #07070b;
color: var(--text-muted);
}
div[class^=perksModal] svg[... | CSS |
// ----------------------------------------------------------------------- //
//
// MODULE : DEditColors.h
//
// PURPOSE : Colors for classes to show up in DEdit.
//
// CREATED : 6/22/01
//
// (c) 2001 Monolith Productions, Inc. All Rights Reserved
// ------------------------------------------------------------------... | C |
l relrnTotal = relrnTime * counts.lrn
val revTotal = revTime * counts.rev
// Now we have to predict how many additional relrn cards are going to be generated while reviewing the above
// queues, and how many relrn cards *those* reps will generate (and so on, until 0).
// Every queue ha... | Kotlin |
transactions\n 74\t # or ability to defer constraint checks. Only concrete model classes\n 75\t # should be included, as the dependencies exist only between actual\n 76\t # database tables; proxy models are represented here by their concrete\n 77\t # parent.\n 78\t sel... | Markdown |
11288] = {"Сияние света", nil, {"Арес Поклявшийся, лежащий при смерти в Катакомбах Утгард, попросил вас вернуть священный артефакт.\n\nЭто задание ограничено по времени."}},
[11289] = {"Ведомый честью", nil, {"Верните священный артефакт лорду Ирулону Верный Клинок в Валгард."}},
[11290] = {"Военные планы Укротителей др... | Lua |
ic/eslint-plugin'
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirna... | JavaScript |
BТвоя помощь поистине неоценима, $N. Надеюсь, это не последняя наша встреча. Я горжусь нашей дружбой.",
["O"] = "Найдите в Штормграде Даториана Ралла и поговорите с ним.",
["T"] = "Фолиант Божественности",
},
[1789] = {
["D"] = "",
["O"] = "",
["T"] = "Знак Жизни",
},
[1790] = {
["D"] = ... | Lua |
font-size: 10px; line-height: 1.333;
text-shadow: none;
padding: 1px 5px;
background: rgba(0,0,0,0.3);
border-radius: 3px;
}
.lt-ie9 .irs-from, .lt-ie9 .irs-to, .lt-ie9 .irs-single {
background: #999;
}
.irs-grid-pol {
background: #99a4ac;
}
.irs-grid-text {
color: #99a4ac;
}
.irs-disa... | CSS |
ext->should_redraw) = 0;
}
#ifndef __EMSCRIPTEN__
Uint32 end = SDL_GetPerformanceCounter();
float seconds_elapsed = (end - start) / (float)SDL_GetPerformanceFrequency();
int ms_to_sleep = EXEC_BATCH_MS - (int)(seconds_elapsed * 1000);
// printf("Batch complete: %d states in %.6f s; sleeping for %d... | C |
wota kryptowaluty równa kwocie transakcji jest automatycznie rezerwowana z portfela obligacji sprzedającego $appName. Oznacza to, że jeśli sprzedawca ucieknie z Twoimi pieniędzmi i nie sfinalizuje transakcji, wsparcie $appName może skierować do Ciebie kryptowalutę znajdującą się w wekslu arbitrażowym. Jeśli sprzedajesz... | Dart |
0 + 600); // 0.6 ~ 2.4
let pwm = us * 4096 / 20000;
setPwm(num + 2, 0, pwm);
basic.pause(20);
}
else if (value_past < value) {
value_past + speed < value ? value_past += speed : value_past++;
... | Typescript |
. Fastpass 보고서에서 확인하는 것 중 하나는 색상 대비입니다. 실패한 요소에 대한 자세한 보고서를 받게 됩니다.
<figure>{% Img src="image/admin/CR21TFMZw8gWsSTWOGIF.jpg", alt="접근성 통계 보고서", width="800", height="473" %}</figure>
## 고급 지각 대비 알고리즘(APCA)
[APCA(Advanced Perceptual Contrast Algorithm)](https://w3c.github.io/silver/guidelines/methods/Method-font-char... | Markdown |
” or “{such and such} is not a function” are generally type errors. This is a very non-exhuastive list of solutions, to give you an idea of where to start looking.
i ) console.log(typeof offendingVariable) to see if it’s what you expect/need.
ii) check the formatting of your function — is it being called _on_ what ... | Markdown |
目失敗"
};
-- This is a prompt to the user to type in their product key (CD key,
-- authorization code, etc).
["Please enter your product key"] = {
cs = "Prosím, zadejte klíč produktu",
da = "Indtast venligst din produkt-nøgle",
de = "Bitte geben Sie Ihren Produktschlüssel ein",
... | Lua |
ript", desc =
[[This script is run when HeaterMeter signals any alarm before any
specific script below is executed. If the 'All' script returns non-zero
the alarm-specific script will not be run.
<a href="https://github.com/CapnBry/HeaterMeter/wiki/Alarm-Script-Recipes"
target="wiki">
Example s... | Lua |
using System;
using Xamarin.Forms;
namespace StackManipulation
{
public class PageBAlternative : ContentPage
{
public PageBAlternative()
{
Button button = new Button
{
Text = "Go to Page C",
FontSize = Device.GetNamedSize(NamedSize.Large,... | C# |
1wsw4vUQ4pF1dqka4l
Ioe0rxPX2l6oADBv1EFwB7cJa0E3NW/0OAIwE5y77TFShx0Whux3k1XL8sj3RSIT
Azr0FpS/I7CgYM2p1WX9bCdxY9jhwONCBDUGdfmiy7gRfSNBOuk/mSIhvvpQNZdS
QO0RAe4sutURdz9SWi085hE9qyQn6IsCegO+DochsRpF4e0WryuBjbZqHr80jh5n
oTekIprTtrfsayNZwxO1oblkgA8PlswN/ehJyt/GztnpYQ==
-----END RSA PRIVATE KEY-----
`
func Test_Check_PEMBlock... | Go |
xi_check(ufbxi_read_truncated_array(uc, &mesh->face_smoothing.data, &mesh->face_smoothing.count, n, ufbxi_Smoothing, 'b', mesh->num_faces));
} else {
ufbxi_check(ufbxi_warn_polygon_mapping(uc, ufbxi_Smoothing, mapping));
}
} else if (n->name == ufbxi_LayerElementVisibility) {
const char *mapping = "";
... | C++ |
3%B0%E6%98%8E)。
# Raintear_Cage
<!-- source html: G:\repos\THBWiki-Markdown-Builder\THBWikiMarkdown\Temp\main\1\14\ns0%3ARaintear_Cage.html -->
由 水月 创作的东方风自作曲,原名 レインティアケージ
本页是关于东方Project
**东方风自作曲** 的词条
## 目录
- [1 基本信息](#基本信息)
- [2 出现作品](#出现作品)
- [3 音乐文件](#音乐文件)
- [4 说明文本](#说明文本)
- [4.1 东方魔宝城](#东方魔宝城)
- [... | Markdown |
set")
}
return t.finalPutRes, t.err
}
type byTypeAndName []os.FileInfo
func (s byTypeAndName) Len() int { return len(s) }
func (s byTypeAndName) Less(i, j int) bool {
// files go before directories
if s[i].IsDir() {
if !s[j].IsDir() {
return false
}
} else if s[j].IsDir() {
return true
}
return s[i].... | Go |
객체의 형태로 변환)하도록 하기 위해서는 말그래도 Person 클래스에 텅 빈 기본 생성자를 만들어주면 될 것!
### 여기서 멈추지 않고..
deserialize라는 단어를 보니 이게 뭔가 싶으면서.. 하나의 글을 번역하기 시작했다.
<br>
Jackson이 나의 코드에서 이루지 못했던..
<br>
<b>직렬화, 역직렬화</b>는 무엇일까? 나아가 그 필요성과 고려사항에는 무엇이 있을지 알아보자!
## serialization(직렬화)
객체는 identity, state, behavior라는 크게 보면 세 가지의 주요 특성을 가진다. state는 객체의... | Markdown |
config.trigger = "~"
for (operation in list(BotOperation::class.java)) {
config.operations.add(operation.getName())
}
updateHistoryIndex(config.historyLength)
save(config)
return config
}
/*
override fun save(entity: Persistent) {
... | Kotlin |
id = 90046,
damage = "8 x 5",
base = 90040,
weapon_id = {
90046
}
},
[90047] = {
id = 90047,
damage = "8 x 5",
base = 90040,
weapon_id = {
90047
}
},
[90100] = {
name = "Single 138.6mm Mle 1929 Naval Gun",
speciality = "Lock",
type = 1,
tech = 1,
descrip = "No description",
value... | Lua |
settlement_cash_due_date);
memcpy(pOut->trade_info[i].settlement_cash_type, v_se->se_cash_type.data(),
v_se->se_cash_type.size());
if (pOut->trade_info[i].is_cash) {
const cash_transaction::key k_ct(pOut->trade_info[i].trade_id);
cash_transaction::value v_ct_temp;
TryVerifyRelaxed(... | C++ |
筑三化协调新格局,尤其是要实现2020年粮食生产能力达到1300亿斤的发展目标,必须始终保持清醒头脑,更加积摄主动地做好”三农”工作。
老多们说,凝冻发生以后的第二日(1月2日).高寨至龙岗往开阳,贵阳方向公路封闭中断。3日,多党委,政府立即组织党员和干部职工100余人撒盐化冰,铲冰除雪,打通了高寨通往龙岗21公里的”生命”交通主干道。这场羊群保卫战仍在进行着。
本报讯由四川省成都市商务局,成都市农业委员会主办,成农网,中国银联承办的2011成都造优质农产品新春年货网上购物节”(以下简称“网上购物节)于1月10日\~1月16日在成农网(www.m6158.com}上举行。
本次“网上购物节”是依托成燃的衣产品电子商... | Markdown |
lean TblEditing (const TablePtr table)
SYS_TRAP(sysTrapTblEditing);
extern FieldPtr TblGetCurrentField (const TablePtr table)
SYS_TRAP(sysTrapTblGetCurrentField);
extern void TblGrabFocus (const TablePtr table, const Word row,
const Word column)
SYS_TRAP(sysTrapTblGrabFocus);
extern vo... | C |
1 * SIZE(Y1)
addl INCY, Y1
decl J
jg .L11
ALIGN_4
.L999:
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
EPILOGUE | Assembly |
e fields are
* validated against their range of valid values. The week-of-week-based-year
* field is validated between 1 and 53, ignoring the week-based-year.
* If the week-of-week-based-year is 53, but the week-based-year only has
* 52 weeks, then the resulting date is in week 1 of the following we... | Java |
例如,大型语言模型在小规模(如所有的GPT-3模型)时不能通过上下文中的示例来覆盖先前从预训练中获取的知识,即,当示例中的真实标签被翻转时,模型的预测不会翻转。但是Wei等人(2023)显示更大的模型,如InstructGPT和PaLM-540B,在同样的设置中表现出覆盖先前知识的新能力。此外,输入分布的效果也未得到充分研究,Min等人(2022)将整个输入更改为随机单词,Wei等人(2023)则完全没有研究输入分布。
#### 核心贡献
- **提出了一个对比示例和显著图的研究方法**
- **挑战1:如何理解不同部分的示例对ICL预测的贡献**
此研究使用了NLP中的对比示例对构建的示例部分进行了定性和... | Markdown |
lVTMREwDwYDVQQHEwhOZXcgWW9yazEOMAwGA1UECxMFQ29yZGEx
FjAUBgNVBAoTDVIzIEhvbGRDbyBMTEMxGTAXBgNVBAMTEENvcmRhIERvb3JtYW4g
Q0EwHhcNMjAwNzI0MDAwMDAwWhcNMjcwNTIwMDAwMDAwWjAvMQswCQYDVQQGEwJH
QjEPMA0GA1UEBwwGTG9uZG9uMQ8wDQYDVQQKDAZQYXJ0eUEwWTATBgcqhkjOPQIB
BggqhkjOPQMBBwNCAASFze6k3tINqGLsKTi0a50RpOUCysno1/1lwIfEqaboauuj
o6Ecfu8X... | Go |
a linestring. This winds up yielding us slightly different results (shown in Figure 7.7).
Figure 7.7
Notice the slightly different representation of two objects based on the same series of points. Why are they different? Well, recall that a linestring is always considered one dimensional. Although they can curve and... | Markdown |
lg" : "none"}
borderRadius="xl"
px={transparent ? 2 : 0}
>
{mobileView && <DefaultNavbarMobile routes={routes} open={mobileNavbar} />}
</MKBox>
</MKBox>
{dropdownMenu}
{nestedDropdownMenu}
</Container>
);
}
// Setting default values for the props of... | JavaScript |
BIH WK0.00", 44.402004, 19.078640625, 3, 6,
"BIH X00.XX", 43.212464, 17.507749500, 3, 6,
"BIH XK0.00", 43.374104, 17.554391500, 3, 6,
"BIH Y00.XX", 43.422464, 17.837749500, 3, 4,
"BIH YK0.00", 44.134104, 17.363740625, 3, 4,
"BIH Z00.XX", 43.952464, 18.757406000, 3, 4,
"BIH ZK0.00", 44.424104, 18.003740625, 3, 4,
"BIH 0... | Dart |
/******************* THIS IS THE 2ND RTC HANDLER **************************/
ComputeStall:
/* Do the calculation */
neg eax
xor edx, edx
mov ecx, 125000 /* RTC fires every 125 ms */
div ecx
/* Is the remainder 0? */
cmp edx, 0
jz FoundFactor
/* Otherwise fix-up the loop count */
... | Assembly |
notChallengeX(String param) {
return 'لا يمكنك تحدي $param.';
}
@override
String challengeXDoesNotAcceptChallenges(String param) {
return '$param لا يقبل التحديات.';
}
@override
String challengeYourXRatingIsTooFarFromY(String param1, String param2) {
return 'تقييمك $param1 أعلى من $param2.';
... | Dart |
FileInfo file = new FileInfo(versionFileName);
if (file.Exists)
{
version = System.IO.File.ReadAllText(file.FullName, System.Text.Encoding.ASCII);
Monitor.Enter(serverLock);
foreach (ViewServer server in servers) server.StaticFileVersion = ... | C# |
�索尔元帅的下落。","狼狈不堪的约翰曾告诉你说温德索尔被关进了一个监狱。"}},
[4242] = {"被遗弃的希望", {"伯瓦尔是个笨蛋。我一直以来都在收集有关他的“证据”,要将他彻底打败。","他是个没脑子的小丑,证据在他面前堆了足有两英尺高而他却视而不见。","如果我能找到铁仇之锤并且走出这个该死的迷宫,那我要做的第一件事就是去暴风城,把那个卑鄙的家伙一劈为二。","离我远点,<name>。"}, {"把这个坏消息传达给麦克斯韦尔元帅。"}},
[4243] = {"找回A-Me 01", {"非常不幸,我的一项最伟大的发明出了点问题。你以前见过机械松鼠,对吗?嗯,为了接近安戈洛环形山的猿猴,我制造了一只机械猿猴混入它们的... | Lua |
* ```
* @param value the temporary move speed value.
*/
public fun setTempMoveSpeed(value: Int) {
checkCommunicationThread()
verify {
require(value in -1..2 || value == 127) {
"Unexpected temporary move speed: $value, expected values: -1, 0, 1, 2, 127"
... | Kotlin |
jectweb.asm.ClassVisitor;
import jdk.internal.org.objectweb.asm.ClassWriter;
import jdk.internal.org.objectweb.asm.MethodVisitor;
import jdk.internal.org.objectweb.asm.Opcodes;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.instrument.ClassFileTransformer;
imp... | Java |
的集合,即 $\text{Im}(f) = \{ f(a) \mid a \in R \}$。
### 1.1 环同态的性质
**性质1. 加法单位元的保持: $f(0_R) = 0_S$。**
<details><summary>点我展开证明👀</summary>
对于任意 $a \in R$,根据加法同态,有 $f(a) = f(a + 0_R) = f(a) \oplus f(0_R)$。因此有 $f(0_R) = 0_S$。证毕。
</details>
**性质2. 加法逆元的保持: $f(-a) = - f(a)$。**
<details><summary>点我展开证明👀</summary>
对于任... | Markdown |
pub command line tool to get the "
"packages.\nYou can track the issue at: "
"https://github.com/dart-lang/chromedeveditor/issues/2862.";
static const String SYMLINKS_ERROR_MSG =
"Operations on directories containing symlinks are not supported. Delete "
"directories containing symlinks using... | Dart |
{50, 0, -50, 0}),
expected: LineCrossLeft,
},
{
desc: "Two point lines, line2 directed right, line2 touches top vertex of line1",
line1: geom.NewLineStringFlat(geom.XY, []float64{0, -327, 0, 0}),
line2: geom.NewLineStringFlat(geom.XY, []float64{-50, 0, 50, 0}),
expected: LineNoCross,
},
... | Go |
a
│
├── 🚀 run.py # Projenin ana çalıştırma noktası (örn. FastAPI sunucusu burada başlar)
├── 🔐 .env # Ortam değişkenleri (gizli anahtar, veri yolu vb.)
├── 📄 .env.example # Ortam değişkenleri için örnek şablon dosya
├── 📄 .gitignore # Git'e... | Markdown |
�的键可以通过从根遍历到该节点获得。举个例子:
```
+-----------+
| |
| " " |
| |
+------+-----------+------+
| |
| |
+----v------+ +-----v-----+
| | ... | Markdown |
.p("pFragmentShadingRateAttachment")
VkExtent2D("shadingRateAttachmentTexelSize")
}
val VkPipelineFragmentShadingRateStateCreateInfoKHR = struct(Module.VULKAN, "VkPipelineFragmentShadingRateStateCreateInfoKHR") {
Expression("#STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR")..VkStructureTyp... | Kotlin |
Error>
where
W: io::Write,
{
match self {
Balance::Zero => write!(writer, "0"),
Balance::Amount(ref balance) => balance.write(writer, settings),
}
}
}
impl Serializer for CommodityPrice {
fn write<W>(&self, writer: &mut W, settings: &SerializerSettings) -... | Rust |
new());
let res = &data.db.add_post(&post).await;
match res {
Err(_) => {
return HttpResponse::InternalServerError().json(general::Error {
status_code: "500".to_string(),
error: "Error when adding to database.".to_string(),
});
}
... | Rust |
[t]=a[n[d]];e=e+1;n=z[e];break;end;l(n[h],n[s]);e=e+1;n=z[e];until true;else l(n[h],n[s]);e=e+1;n=z[e];end end else if o<5 then if o~=3 then l[n[h]]=f[n[s]];e=e+1;n=z[e];else t=n[h]l[t]=l[t](r(l,t+1,n[s]))e=e+1;n=z[e];end else if 1<o then repeat if o~=6 then t=n[h];a=l[n[s]];l[t+1]=a;l[t]=a[n[d]];e=e+1;n=z[e];break;end... | Lua |
sidebar-background);
}
.cm-s-markup-view pre {
line-height: 1.4em;
min-height: 1.4em;
}
/* Twisty and checkbox controls */
.theme-twisty, .theme-checkbox {
width: 14px;
height: 14px;
background-repeat: no-repeat;
background-image: url("chrome://devtools/skin/images/controls.png");
background-size: 56px ... | CSS |
ue` and `false`.
:param _builtins.str name: The name of the project.
:param _builtins.str parent_id: The parent of this project.
:param _builtins.str project_id: The id of the project. Conflicts with any of the
above arguments.
:param _builtins.str region: The region in which to obtain the V3... | Python |
CC(dest); \
}
/***************************************************************
* M_ADD
* Add source to destination
* Add with carry if WC flag of PSL is set
***************************************************************/
#define M_ADD(dest,_source) \
{ \
UINT8 source = _source;... | C++ |
O Operations)
# CHECK-UNKNOWN: 2f 7c 45 c0 <unknown>
vamomaxuei8.v x0, (a0), v4, v24
# CHECK-INST: vamomaxuei8.v x0, (a0), v4, v24
# CHECK-ENCODING: [0x2f,0x0c,0x45,0xe2]
# CHECK-ERROR: instruction requires the following: 'A' (Atomic Instructions), 'Zvamo'(Vector AMO Operations)
# CHECK-UNKNOWN: 2f 0c 45 e2 <unknown>
... | Assembly |
own-body [role='button']:focus-visible),
.dark :global(.markdown-body input[type='radio']:focus-visible),
.dark :global(.markdown-body input[type='checkbox']:focus-visible) {
outline: 2px solid #58a6ff;
outline-offset: -2px;
box-shadow: none;
}
.dark :global(.markdown-body a:not([class]):focus),
.dark :global(.m... | CSS |
le,
double dimscale,
ON_Xform& text_xform_out
) const
{
ON_3dVector view_x = nullptr == vp ? ON_3dVector::XAxis : vp->CameraX();
ON_3dVector view_y = nullptr == vp ? ON_3dVector::YAxis : vp->CameraY();
ON_3dVector view_z = nullptr == vp ? ON_3dVector::ZAxis : vp->CameraZ();
ON::view_projection projection = ... | C++ |
41 5.354-32.591 3.687-4.424-.827-4.285.595-4.901 2.597l-1.681 7.285c-.776 3.905-.483 5.166 5.2 7.284 22.641 5.993 46.638 4.552 55.011-9.864 4.991-9.07 3.862-24.67-6.148-30.448-6.433-3.987-14.035-4.562-20.157-5.553-6.314-1.25-10.4-1.526-10.183-5.433.338-5.15 2.92-5.552 13.164-5.037 10.898.436 19.062 2.497 20.577 1.531 1... | Dart |
或者 import语句 ts会把当前文件认为一个模块,否则为全局
export {}
class Person {
name: string;
getName(): void {
console.log(this.name);
}
}
let p1 = new Person();
p1.name = 'devan';
p1.getName()
{
// 属性存取器
class User {
// myName: string
constructor(public myName: string) {
// this.myName = myName
}
get... | Typescript |
https://github.com/londogard/londogard-nlp-toolkit/blob/main/LICENSE")
}
}
developers {
developer {
id.set("londogard")
name.set("Hampus Londögård")
email.set("hampus.londogard... | Kotlin |
pending: Command::None,
}
}
fn new_state_ok(&mut self, state: DFUState) {
self.new_state_status(state, DFUStatusCode::OK);
}
fn new_state_status(&mut self, state: DFUState, status: DFUStatusCode) {
self.status = status;
self.state = state;
}
fn stat... | Rust |
32)
x.collisions = structs.readU32.call(r, 36)
x.rxLengthErrors = structs.readU32.call(r, 40)
x.rxOverErrors = structs.readU32.call(r, 44)
x.rxCrcErrors = structs.readU32.call(r, 48)
x.rxFrameErrors = structs.readU32.call(r, 52)
x.rxFifoErrors = structs.readU32.call(r, 56)
x.rxMissedErrors ... | Typescript |
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
return {
{
"nvim-telescope/telescope.nvim",
dependencies = {
{
"nvim-telescope/telescope-live-grep-args.nvim",
version = "^1.0.0",
},
},
config = function() require("telescope").load_extension "l... | Lua |
ruff.set_instance_parameter(inst, SynthParameter::Attack, 0.0);
ruff.set_instance_parameter(inst, SynthParameter::Sustain, 1.0);
ruff.set_instance_parameter(inst, SynthParameter::Release, 0.0);
ruff.trigger(inst);
let out_1 = ruff.process(0.0, true);
let mut comp_1 = [0.0; 128]... | Rust |
ject(thisValue, value, deep)
break
default:
break;
}
break
default:
break
}
if (matchFound) return true
return false
}
function isEqual(thisValue:any, value:any, deep:boolean):boolean {
// recursive
if ((thisValue instanceof some && value instanceof some)
... | Typescript |
}
}
}
<reponame>hyperswine/novusk<gh_stars>1-10
#![no_std]
#[macro_use] extern crate tock_registers;
pub mod board;
pub use board::RaspberryPi;
pub mod common;
pub use common::*;
#[macro_use]
#[path = "../../../kernel/irq.rs"]
pub mod irq;
pub mod rpi2;
pub mod rpi3;
pub use rpi2::Rpi2;
pub use rpi3::Rp... | Rust |
.a5;
result += passStruct7BytesHomogeneousUint8x10_a4.a6;
result += passStruct7BytesHomogeneousUint8x10_a5.a0;
result += passStruct7BytesHomogeneousUint8x10_a5.a1;
result += passStruct7BytesHomogeneousUint8x10_a5.a2;
result += passStruct7BytesHomogeneousUint8x10_a5.a3;
result += passStruct7BytesHomogeneousU... | Dart |
ner,
.navbar-fixed-top .sui-container,
.navbar-fixed-bottom .sui-container {
width: 1190px;
}
.span12 {
width: 1190px;
}
.span11 {
width: 1090px;
}
.span10 {
width: 990px;
}
.span9 {
width: 890px;
}
.span8 {
width: 790px;
}
.span7 {
width: 690px;
}
.span6 {
... | CSS |
}
const msg = "An error occured trying to open the file."
console.error(msg, ex)
alert(msg)
return
}
try {
const data = songToMidi(song).buffer
await writeFile(fileHandle, data)
song.fileHandle = fileHandle
} catch (ex) {
const msg = "Unable to save file."
console.error(msg, ex... | Typescript |
loff', 0)
// CHECK: ('nlocrel', 0)
// CHECK: ('_indirect_symbols', [
// CHECK: # Indirect Symbol 0
// CHECK: (('symbol_index', 0x4),),
// CHECK: # Indirect Symbol 1
// CHECK: (('symbol_index', 0x0),),
// CHECK: # Indirect Symbol 2
// CHECK: (('symbol_index', 0x1),),
// CHECK: # Indirect ... | Assembly |
O> Ex<V0, V1, V2>.div(e: XXO) = Ex<XX, XX, V2>(Ops.ratio, null, this, e)
@JvmName("div:ttt") operator fun <V0: XO, V1: XO, V2: XO> Ex<V0, V1, V2>.div(e: XXX) = Ex<XX, XX, XX>(Ops.ratio, null, this, e)
operator fun <N: Number, V0: XO, V1: XO, V2: XO> N.div(e: Ex<V0, V1, V2>) = Ex<V0, V1, V2>(Ops.ratio, null, Nt(this), e... | Kotlin |
'
23: 0, // 'й'
11: 3, // 'к'
8: 3, // 'л'
12: 3, // 'м'
5: 3, // 'н'
1: 3, // 'о'
15: 0, // 'п'
9: 3, // 'р'
7: 2, // 'с'
6: 2, // 'т'
14: 3, // 'у'
39: 0, // 'ф'
26: 0, // 'х'
28: 1, // 'ц'
22: 2, // 'ч'
25: 1, // 'ш'
29: 0, // 'щ'
54: 2, // 'ъ'
18: 3, //... | Go |
Counter = null;
}
// random AO_XXX bits, decoded from the archive header
protected int archiveOptions;
// archiveSize1 sizes most of the archive [archive_options..file_bits).
protected long archiveSize0; // size through archive_size_lo
protected long archiveSize1; // size reported in archive_h... | Java |
local this = class("moduleAnnouncementRichText", G_UIModuleBase)
local replaceTable = {
{"<", "<"},
{">", ">"},
{""", "\""},
{"<br>", "\n"},
{"style=\"\">", "style=\"\"/>"}
}
function this.bind()
return {
announcementContent = {
moduleName = "pages/announcement/cellAnnouncementContent"
... | Lua |
d, "invalid", "valid"],
control: {
type: "select",
},
},
required: {
control: {
type: "boolean",
},
},
disabled: {
control: {
type: "boolean",
},
},
errorText: {
control: {
type: "text",
},
},
warning: {
control: {
type: "text",
},
... | Typescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.