content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
że czatować","/paYH9":"Udostępnione dla","5CEceY":"Zaktualizowano model GPT","7JggXH":"Udostępnianie modelu GPT","B9pJ5o":"Tylko zaproszeni","Giaxt1":"Każda osoba w obszarze roboczym {workspaceName} z linkiem","JcA4/t":"Kategoria","Login.tryItFirst":"Najpierw wypr\xf3buj","NU0BOB":"Usuń","PjY9bi":"Publiczne","RF75o5":"... | JavaScript |
gth + ' subscribers.');
}
subscribe(callback: (data?: TData) => void) {
let subscription = new EventSubscription(callback, this);
this.subscriptions.push(subscription);
return subscription;
}
unsubscribe(subscription: EventSubscription) {
this.subscriptions = this.subscriptions.filter(s => s !... | Typescript |
ePath/img_logos_whatsapp_icon.png';
static String imgIcBaselinePlayArrow =
'$imagePath/img_ic_baseline_play_arrow.svg';
// About Us images
static String imgRectangle464 = '$imagePath/img_rectangle_46_4.png';
static String imgDfcLogo3RemovebgPreview70x70 =
'$imagePath/img_dfc_logo3_removebg_previe... | Dart |
,
IsStackDeallocate(RegBitWidth / 8)));
}
TEST_F(X86Core2Avx512TargetTest, SetRegToK0_64Bits) {
const uint64_t Value = 0xABCDABCDCABDCABDU;
const unsigned Reg = X86::K0;
const unsigned RegBitWidth = 64;
EXPECT_THAT(setRegTo(Reg, APInt(RegBitWidth, Value)), IsEmpty());
}
TEST_F(X86Cor... | C++ |
l 4(%esp), %eax
#endif
testl %eax, %eax
fstp %st(1)
jns 4f
fchs
4: ret
/* Return the argument. */
1: flds 4(%esp)
ret
END(__cbrtf)
libm_alias_float (__cbrt, cbrt) | Assembly |
egister int i;
register GC_thread p;
register int n_live_threads = 0;
register int result;
#ifdef GC_NETBSD_THREADS_WORKAROUND
int code;
#endif
# if DEBUG_THREADS
GC_printf0("World starting\n");
# endif
GC_world_is_stopped = FALSE;
for (i = 0; i < THREAD_TABLE_SZ; i++) {
for (p... | C |
b/resources.jar
file:/D:/dev/JDK/jre/lib/rt.jar
file:/D:/dev/JDK/jre/lib/sunrsasign.jar
file:/D:/dev/JDK/jre/lib/jsse.jar
file:/D:/dev/JDK/jre/lib/jce.jar
file:/D:/dev/JDK/jre/lib/charsets.jar
file:/D:/dev/JDK/jre/lib/jfr.jar
file:/D:/dev/JDK/jre/classes
```
<a name="HF4Id"></a>
### 2.2.2 扩展类加载器
- [x] Java语言编写,由sum.m... | Markdown |
urn (int)(long)GetWindowLongPtr64(hWnd, nIndex);
}
public static int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong)
{
if (IntPtr.Size == 4)
return (int)SetWindowLongPtr32(hWnd, nIndex, dwNewLong);
else
return (int)(long)SetWindowLon... | C# |
。殺死一些風翼貓頭鷹再來和我談談。","你可以在很多地方找到他們,但從西邊開始會是最好的方向。"}, {"殺死30隻風翼貓頭鷹再回到納葛蘭找奈辛瓦里狩獵隊的費茲。"}},
[9855] = {"風翼專精", {"如果你想要有一天可以追蹤最強大的獵物,那你一定要永遠督促自己!當你尚未準備好的時候,我會指引你走向正確的方向。","還有另一種風翼貓頭鷹是更致命的。尋求這個貪婪的風翼貓頭鷹來測試你的勇氣。你可以在納葛蘭中心的西邊和西南邊找到他們。"}, {"獵殺30隻飢餓的風翼貓頭鷹再回到納葛蘭找奈辛瓦里狩獵隊的費茲。"}},
[9856] = {"風翼專精", {"你準備好了,<class>。準備好挑戰所有風翼貓頭鷹的母親,卡特瑞普。 在... | Lua |
ook.douban.com/subject/4898712/](https://book.douban.com/subject/4898712/)
> **豆瓣评分**: 8.3
> **评分人数**: 3455 人
> **内容简介**: 北海道,暴风雪之夜,行驶于群山之中的列车。
枪声划破了寂静。在车厢连接处的卫生间里,一个小丑打扮的人横尸于此,尸体四周摇曳着烛光。可是,三十秒过后,尸体竟然...
### No.65 ABC谋杀案
> **图书名称**: [ABC谋杀案](https://book.douban.com/subject/1903164/)
> **豆瓣链接**: [https:/... | Markdown |
defined(__linux__) || defined(__FreeBSD__)
wxIcon ModelNode::get_bitmap(const wxString& color)
#else
wxBitmap ModelNode::get_bitmap(const wxString& color)
@@ -118,7 +118,7 @@ wxBitmap ModelNode::get_bitmap(const wxString& color)
wxBitmap bmp = get_solid_bmp_bundle(64, 16, into_u8(color))->GetBitmapFor(m_parent_... | C++ |
112,
742
]
},
{
"ArticleId": 2088163,
"Page": 2,
"Message": "dnflshsdbrcprhksrPfhrrkwrpehldjqtek",
"Score": 0.653949928946056,
"Rectangle": [
1062,
1020,
1134,
1168
]
},
{
"ArticleId": 2088163,
"Page": 3,
"Message": "rmenlehqnahsjadmlsn... | Markdown |
server/single.dart';
part 'systemd.freezed.dart';
part 'systemd.g.dart';
@freezed
abstract class SystemdState with _$SystemdState {
const factory SystemdState({
@Default(false) bool isBusy,
@Default(<SystemdUnit>[]) List<SystemdUnit> units,
@Default(SystemdScopeFilter.all) SystemdScopeFilter scopeFilter... | Dart |
turns a msgEventer which sends message events to the given
// feed
// 将消息事件发送到给定的feed
func newMsgEventer(rw MsgReadWriter, feed *event.Feed, peerID discover.NodeID, proto string) *msgEventer {
return &msgEventer{
MsgReadWriter: rw,
feed: feed,
peerID: peerID,
Protocol: proto,
}
}
// Read... | Go |
250Sbmain8722Sbpage => 'Vai alla pagina principale.';
@override
String get agoradesk250Sbguide250Sbsearch250Sbsearch8722Sbresults => 'Il sito elencherà i trader disponibili nella tua regione.';
@override
String get agoradesk250Sbguide250Sbsearch250Sbsell8722Sbtab8722Sbname => 'Vendere';
@override
String ... | Dart |
var PERSON_WITH_BLOND_HAIR_TYPE_5 = ["0x1f471", "0x1F3FE"];
var PERSON_WITH_BLOND_HAIR_TYPE_6 = ["0x1f471", "0x1F3FF"];
var OLDER_MAN = ["0x1f474"]; //https://www.emojibase.com/emoji/1f474/olderman //http://emojipedia.org/older-man/
var OLDER_MAN_TYPE_1_2 = ["0x1f474", "0x1F3FB"];
v... | JavaScript |
_FlushDataCacheSpecific
/* 80315178 00310DD8 2C 03 00 00 */ cmpwi r3, 0
/* 8031517C 00310DDC 7C 7E 1B 78 */ mr r30, r3
/* 80315180 00310DE0 41 82 00 20 */ beq lbl_803151A0
/* 80315184 00310DE4 3C 80 80 58 */ lis r4, lbl_8057F5C8@ha
/* 80315188 00310DE8 38 84 F5 C8 */ addi r4, r4, lbl_8057F5C8@l
/* 8031518C 00310DE... | Assembly |
27\2\0"+
"\5\2\1\3\1\0\1\3\1\16\1\17\3\2\1\30"+
"\6\2\1\30\23\2\1\31\16\2\1\30\1\2\1\30"+
"\40\2\1\30\15\2\1\6\1\32\1\6\3\23\1\6"+
"\2\10\1\33\7\2\1\34\4\1\1\35\4\1\6\0"+
"\14\2\10\0\5\2\1\17\1\0\37\2\1\31\45\2"+
"\1\30\2\2\1\30\7\2\1\6\1\10\7\2\2\34"+
"\7\1\4\0\1\35\4\0\11\2\2\0\1\36\2\0"+
... | Java |
}
if (OptionDialog.showYesNoDialog(gTree, "Confirm Archive Export",
"Export selected archive(s) using program " + program.getName() +
"'s compiler specification?") != OptionDialog.YES_OPTION) {
return;
}
exportToC(gTree, program.getDataTypeManager());
}
/**
* Writes the selection out to a file o... | Java |
const int repetitions = 10;
switch (level + 1)
{
case >= 2 when !(claw || wings || scm is not null && scm.hasWalljumpAny):
CreateMessage(
Localize("WARNING -- obtaining more than one nail upgrade before collecting one of Mantis Claw or Mo... | C# |
c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-... | JavaScript |
KEY = "\$kotlin_version"
}
override fun contains(other: ArtifactVersion) = true
override fun asNumber(): VersionNumber? = resolved
override fun resolve(version: VersionNumber): ArtifactVersion = KotlinVersion(version)
override fun toExportString(): String = "\$kotlin_version"
override fun toStr... | Kotlin |
anspose() * B;
* D.noalias() -= 2 * A * B.adjoint();
* \endcode
*
* On the other hand the following example will lead to a \b wrong result:
* \code
* A.noalias() = A * B;
* \endcode
* because the result matrix A is also an operand of the matrix product. Therefore,
* there is no alternative than evalua... | C |
asks we need to check dependencies between
firstTaskOfKernel, err := tss[1].Edge(snapstate.BeginEdge)
c.Assert(err, IsNil)
linkTaskOfKernel, err := tss[1].Edge(snapstate.MaybeRebootEdge)
c.Assert(err, IsNil)
acTaskOfKernel, err := tss[1].Edge(snapstate.MaybeRebootWaitEdge)
c.Assert(err, IsNil)
linkTaskOfBase, er... | Go |
{
var autoFocus = false
val listFocusMode = mParameters.supportedFocusModes
for (mode in listFocusMode) {
if (mode == focusMode)
autoFocus = true
log("相机支持的对焦模式: $mode")
}
return autoFocus
}
//切换摄像头
fun exchangeCamera() {
... | Kotlin |
fig user to use
-->
要使用的 kubeconfig 用户的名称。
</p></td>
</tr>
<tr>
<td colspan="2">--username string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
<!--
Username for basic authentication to the API server
-->
对 API 服务器进行基本身份验证时所用的用户名。
</p></td>
</tr>
<tr>
<td colspan="2">--version ver... | Markdown |
byte[payload.limit()];
payload.get(bytes);
System.out.println("value:"+currentOffset + ": " + new String(bytes, "UTF-8"));
//传给业务处理
chain.processMessagesToBlocks(bytes,currentOffset);
numRead++;
maxR... | Java |
image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23F44%22%20fill-rule%3D%22evenodd%22%20d%3D%22m1.522%209.147-.74-.477a1.71%201.71%200%200%201-.53-2.33l.48-.785c.197-.322.282-.7.24-1.076L.875%203.5... | CSS |
s 480023.0 69.0 480060.0
```
## gold farm

- **ID:** waystone-c2fee1c9-e825-43e6-bd56-ca871e6ae802
- **Owner (UUID):** bd9210c1-67c7-426f-ad80-b4ae4e482e10
- **Owner (Username):** Ultraman157
- **Position:** -1333.0, 130.0, -... | Markdown |
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"path"
"strings"
"time"
"google.golang.org/appengine/v2"
"google.golang.org/appengine/v2/memcache"
"google.golang.org/appengine/v2/urlfetch"
)
func main() {
appengine.Main()
}
func init() {
http.HandleFunc("/", handler)
}
func handler(w http... | Go |
g.info("wlan", "wifi connected info", t.ssid, t.password, t.bssid:toHex())
sys.wait(10*1000)
wlan.disconnect()
result, _ = sys.waitUntil("WLAN_STA_DISCONNECTED")
log.info("wlan", "WLAN_STA_DISCONNECTED", result)
log.info("wlan", "wlan_deinit", wlan.deinit())
end
)
sys.subs... | Lua |
iseconds: retryContext => {
//retryContext.previousRetryCount
//retryContext.elapsedMilliseconds
if (retryContext.previousRetryCount <= 3) {
var sen = 5;
if (retryContext.previousRetryCount === 0) {
$('#connS... | JavaScript |
44.611183905383434],[27.898727101152613,44.609268583326894],[27.913362526987243,44.616079370647284],[27.924134034156694,44.62716730762001],[27.925835972465908,44.637749086613],[27.903768584373935,44.647927391445215],[27.896424684759364,44.65755232279335],[27.89506371321379,44.673994841442415],[27.9328652821066,44.67463... | JavaScript |
let o=CL.isWindows(r),n=Xu.makeRe(String(t),{...r,capture:!0}).exec(o?CL.toPosixSlashes(e):e);if(n)return n.slice(1).map(u=>u===void 0?"":u)};Ii.makeRe=(...t)=>Xu.makeRe(...t);Ii.scan=(...t)=>Xu.scan(...t);Ii.parse=(t,e)=>{let r=[];for(let o of[].concat(t||[]))for(let a of y$(String(o),e))r.push(Xu.parse(a,e));return r... | JavaScript |
#2
lsl r0, r0, #0xa
str r0, [sp, #8]
b _02238832
_0223881C:
mov r0, #1
lsl r0, r0, #0xc
str r0, [sp, #8]
b _02238832
_02238824:
mov r0, #1
lsl r0, r0, #0xc
str r0, [sp, #8]
b _02238832
_0223882C:
mov r0, #2
lsl r0, r0, #0xc
str r0, [sp, #8]
_02238832:
lsr r1, r6, #0xb
add r0, sp, #0
strb r1, [r0, #0x12... | Assembly |
Mockito.mock(EventMessage.class);
test(
builder -> builder.disableBatchTrace(true),
factory -> factory.createProcessEventSpan(false, eventMessage),
expectedSpan("EventProcessor.process", TestSpanFactory.TestSpanType.HANDLER_CHILD)
.withMes... | Java |
ollectionProcessingChallenge? {
val start = List(fruitsNum) { fruits.random() }
var fruitsUsed = start.toSet()
var result: Any = start
var resultType: KType = typeOf<List<Fruit>>()
val chosenProcessors = mutableListOf<Processor>()
repeat(steps) {
val isLastStep = it == steps - 1
... | Kotlin |
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | Python |
存使用和效率
### Bugs修复
* 修复和优化xml解析模块
# RocketChat
The Ultimate Communication Hub. A solid option for self-hosted chat and collaboration.
- [Homepage](https://www.rocket.chat)
- [Documentation](https://docs.rocket.chat/docs/deploy-with-docker-docker-compose)
- [Github repo](https://github.com/rocketchat/)
<br>
## d... | Markdown |
t:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{margin-bottom:0}.custom-control-label:before{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color... | CSS |
was already set (by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToLast(e),this.orderByCalled_)},t.prototype.orderByChild=function(e){if(k("Query.orderByChild",1,1,arguments.length),"$key"===e)throw new Error('Query.orderByChild: "$key" is invalid. Us... | JavaScript |
other.type == type;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(albumId.hashCode) +
(assetId == null ? 0 : assetId!.hashCode) +
(comment == null ? 0 : comment!.hashCode) +
(type.hashCode);
@override
String toString() => 'ActivityCreateDto[albumId=$albumId, asset... | Dart |
noto sans,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}body{--color-white: #ffffff;--color-black: #000000;--color-border: rgb(var(--gray-3));--color-bg-popup: var(--color-bg-5);--color-bg-1: #ffffff;--color-bg-2: #ffffff;--color-bg-3: #ffffff;--color-bg-4: #ffffff;--color-bg-5: #ffffff;--color-bg-white: #f... | CSS |
p::And | Binop::Or => BinopType::BoolBoolBool,
}
}
/// Returns true if this integral function returns a `nat` on nonnegative inputs.
#[must_use] pub fn preserves_nat(self) -> bool {
match self {
Binop::Add | Binop::Mul |
Binop::Max | Binop::Min |
Binop::BitAnd | Binop::BitOr | Binop::Bi... | Rust |
/* -*- C++ -*- */
/**
* @file EC_Basic_Filter_Builder.h
*
* EC_Basic_Filter_Builder.h,v 1.10 2001/04/09 19:56:26 oci Exp
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*
* Based on previous work by Tim Harrison (harrison@cs.wustl.edu) and
* other members of the DOC group. More details can be found in:
*
... | C |
("Failed to parse time: $timeString ($e)");
return null;
}
}
if (widget.moonrise != null &&
widget.moonrise!.isNotEmpty &&
widget.moonrise!.toLowerCase() != 'no moonrise') {
moonrise = parseTime(widget.moonrise);
}
if (widget.moonset != null &&
widget.moonse... | Dart |
SHA(
0x0002, false, "SSL_RSA_WITH_NULL_SHA",
"TLS_RSA_WITH_NULL_SHA",
ProtocolVersion.PROTOCOLS_TO_12,
K_RSA, B_NULL, M_SHA, H_SHA256),
TLS_ECDH_ECDSA_WITH_NULL_SHA(
0xC001, false, "TLS_ECDH_ECDSA_WITH_NULL_SHA", "",
ProtocolVers... | Java |
();var M;z&&(x=r(10*x),y=r(10*y),D=r(10*D),I=r(10*I),A=r(10*A),B=r(10*B),C=r(10*C),u=r(10*u),b=r(10*b),l=r(10*l),c=r(10*c),f*=10,h*=10,k*=10,w*=10,1>Math.abs(g)&&1>=Math.abs(D-y)&&1>=Math.abs(C-B)&&(M=!0));g="";var P;q&&(H["fill-opacity"]=0,H["stroke-opacity"]=m["stroke-opacity"]/2,H.stroke=m.stroke);if(0<l){P=" M"+x+"... | JavaScript |
plain .mini-tabs-header
{
margin-bottom:0px;
}
.mini-tabs-body
{
position:relative;
overflow:auto;
height:100%;
}
.mini-tabs-hideOverflow
{
overflow:hidden;
}
.mini-tabs-bodys
{
position:relative;
border:solid 1px #999999;
border-top:0;
background:white;
padding:5px; ... | CSS |
tton(EDIT_BTN_ID, leftStartX, startPositionY + 24 * 3, 70, 20, translationButton("fontManager.edit"))
addButton = +GuiButton(ADD_BTN_ID, rightStartX, startPositionY + 24 * 1, 70, 20, translationButton("add"))
removeButton = +GuiButton(REMOVE_BTN_ID, rightStartX, startPositionY + 24 * 2, 70, 20, transla... | Kotlin |
to detect absolutely corrupt stack pointers
#endif
movq %rsi, %rsp
movq JB_R12(%rdi), %r12
movq JB_R13(%rdi), %r13
movq JB_R14(%rdi), %r14
movq JB_R15(%rdi), %r15
movq JB_RIP(%rdi), %rsi // jump destination
fldcw JB_FPCONTROL(%rdi) // restore FP control word
ldm... | Assembly |
the filename
string basePath = Path.GetDirectoryName(filename);
// Get the containing folder
string charName = Path.GetFileName(basePath);
if (charName.ToUpperInvariant() == "SYS")
{
string fileAndExtension = Path.GetFileName(filename);
if (fileAndExtension.ToUpperInvariant().Contains("MISC"))
// ... | C# |
{
continue
}
// all patch InstallPaths look like `patchFilePath("$COMPONENT")`
comp := unquote(installPath.Value.(*ast.CallExpr).Args[0].(*ast.BasicLit).Value)
log.Println("Generating kubeadm patch for", comp)
dataURL, err := generateKubeadmPatch(comp, u.k8sVersion)
if err != nil {
log.Fatalf... | Go |
public void dispose() {
}
public boolean isLabelProperty(Object element, String property) {
return false;
}
public void removeListener(ILabelProviderListener listener) {
}
public Image getColumnImage(Object element, int columnIndex) {
return null;
}
public String getColumnText(Object element,... | Java |
wayBasedProperties gatewayCfg;
WithNewAndLegacySet(@Autowired final GatewayBasedProperties gatewayCfg) {
this.gatewayCfg = gatewayCfg;
}
@Test
void shouldSetInterceptorsFromNew() {
final var expectedInterceptorCfg0 =
createInterceptorCfg("0IdNew", "0JarPathNew", "0ClassNameNew");... | Java |
RF_USBPHY1_CON11 0x082c
#define RK3228_GRF_USBPHY1_CON12 0x0830
#define RK3228_GRF_USBPHY1_CON13 0x0834
#define RK3228_GRF_USBPHY1_CON14 0x0838
#define RK3228_GRF_USBPHY1_CON15 0x083c
#define RK3228_GRF_USBPHY1_CON16 0x0840
#define RK3228_GRF_USBPHY1_CON17 0x0844
#define RK3228_GRF_USBPHY1_CON18 0x0848
#define RK3228_G... | C |
"" },
{ 23254, "INV_Shoulder_07", "=q3=Champion's Dragonhide Shoulders", "" },
{ 22877, "INV_Chest_Leather_07", "=q3=Legionnaire's Dragonhide Chestpiece", "" },
{ 22863, "INV_Gauntlets_25", "=q3=Blood Guard's Dragonhide Grips", "" },
{ 22878, "INV_Pants_06", "=q3=Legionnaire's Dragonhid... | Lua |
import subprocess
import sys
import os
def get_wallet_balances(datadir, num_wallets):
# Comando para obtener el saldo de una billetera
command_template = "bitcoin-cli -datadir={} -rpcwallet={} getbalance"
# Nombre del archivo de salida
output_file = "wallet_balances.txt"
# Obtener la ruta complet... | Python |
access.client.dto.request.message;
public final class UpdateMessageRequestOuterClass {
private UpdateMessageRequestOuterClass() {
}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/... | Java |
/ <returns></returns>
ProcessDescriptor this[Guid processId] { get; }
/// <summary>
///
/// </summary>
/// <param name="processId"></param>
/// <returns></returns>
bool ContainsProcess(Guid processId);
/// <summary>
///
/// </summary>
... | C# |
bool hasConnected = false;
if (StringUtil.isNotBlank(info.userPubkey)) {
hasConnected = true;
}
nostrSigner = NostrRemoteSigner(
settingProvider.relayMode != null
? settingProvider.relayMode!
: RelayMode.FAST_MODE,
info);
await (nostrSigne... | Dart |
subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *CelerLedgerCooperativeSettleIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return ... | Go |
es / 2);
double degreesPerSubCol = degreesPerSegment / binAnnotations[groupNum].length;
// iterate snps
for (int bin = 0; bin < binAnnotations[groupNum].length; bin++) {
double angle1 = (angle0 + (degreesPerSubCol * bin)) + (degreesPerSubCol / 2);
System.out.println("colvsangle 0:\t" + groupNum +... | Java |
}
}
/**
* The main functionality of tracker: check new chapters in [manga] comparing to the [track]
*/
private fun compare(track: MangaTracking, manga: Manga, branch: String?): MangaUpdates.Success {
if (track.isEmpty()) {
// first check or manga was empty on last check
return MangaUpdates.Success(manga... | Kotlin |
seInt(y.backgroundOpacity),h=p(i),v=vr(i.backgroundColor,h),S=p(c),A=vr(c.backgroundColor,S);return s(S8,{dateTimeISO:t,showDays:r,showHours:n,showMinutes:o,showSeconds:a,children:({days:y,hours:_,minutes:g,seconds:T})=>s(z7,{id:"countdown",color:i.color,marginBottom:l,marginTop:d,children:[r&&s("div",{id:"countdown-da... | JavaScript |
ImageProxy ->
// //获取图像
// val bitmap= image.toBitmap()
// //这里使用了mlkit分析是否包含面部数据,如果包含,则将面部图像裁剪下来
// MyFileProcessor.process(bitmap){
// it?.let {
// //将裁剪后的面部图像转换成特定尺寸bitmap
// val tmp = FaceDetection.convertBitmap(it)
//... | Kotlin |
ing_to: Some(b"foo".to_vec()) },
sme.status()
);
// Push a fake scan result into SME. We should not attempt to connect
// because no password was supplied for a protected network.
report_fake_scan_result(&mut sme, fake_protected_bss_description(b"foo".to_vec()));
ass... | Rust |
ash,若用commit hash创建AnnotatedCommit,ref()方法会返回null,亲测,即使有分支指向的那种commit也一样,只要创建AnnotateCommit时没传引用名(分支名),ac.ref()一律返回null,所以我在这里加了 ?:"" 用来使其和commit关联时返回空字符串,后面调用的方法处理了空字符串的情况,确保后面的一系列操作不会出错
var branchNameOrRefShortHash = getShortRefSpecByRefsHeadsRefSpec(ref) //ac.ref()返回的是完整refspec,例如 refs/heads/main,取出... | Kotlin |
from PIL import Image
import numpy as np
from modules import scripts_postprocessing, gfpgan_model
import gradio as gr
from modules.ui_components import FormRow
class ScriptPostprocessingGfpGan(scripts_postprocessing.ScriptPostprocessing):
name = "GFPGAN"
order = 2000
def ui(self):
with FormRow(... | Python |
PWD}:/workspace `
vulnetix/vulnetix:latest `
--org-id "your-org-id-here"
# Or Command Prompt
docker run --rm ^
-v %CD%:/workspace ^
vulnetix/vulnetix:latest ^
--org-id "your-org-id-here"
```
#### macOS
```bash
# Performance optimization for macOS
docker run --rm \
-v $(pwd):/workspace:delegated \
vulne... | Markdown |
[{product_id}] 的第 {qa_index+1}/{total_qa_for_product} 对QA生成")
return {
"id": product_id,
"question": question,
"answer": answer
}
async def save_qa_pairs(qa_pairs, output_file):
"""异步保存QA对到文件"""
async with aiofiles.open(output_file, 'w', encoding='utf-8') as f:
awai... | Python |
no_params(&format!(
"{}.{}",
ClientModule::api().name,
crate::client::get_api_reference_api().name
))
.unwrap();
assert_ne!(api.api.modules.len(), 0);
assert_eq!(api.api.version, env!("CARGO_PKG_VERSION"));
}
#[test]
fn test_invalid_params_error_secret_stripp... | Rust |
0 | (c >> 12)));
sb.append((char) (0x80 | ((c >> 6) & 0x6f)));
sb.append((char) (0x80 | (c & 0x6f)));
}
}
return sb.toString();
}
/**
* Returns the location of a byte sequence (conveniently wrapped in
* a String with all characters between \u0001 ... | Java |
s.common.rest_api.v1.SyncAdvise.CREATE_OR_MERGE;
case "JUST_CREATE_IF_NOT_EXISTS":
return de.metas.common.rest_api.v1.SyncAdvise.JUST_CREATE_IF_NOT_EXISTS;
case "READ_ONLY":
return de.metas.common.rest_api.v1.SyncAdvise.READ_ONLY;
default:
throw new AdempiereException("Invalid SyncAdvise: " + syncA... | Java |
, [r7, #116]
eor r0, r9, r0
vadd.i32 q9, q9, q5
ror r4, r4, #20
eors r1, r1, r3
vadd.i32 q10, q10, q6
ror r3, r2, #20
str r3, [r7, #108]
ldr r3, [r7, #112]
veor q3, q9, q3
ror r0, r0, #20
add r8, r4, fp
veor q2, q10, q2
add fp, r0, r3
ldr r3, [r7, #100]
ror r1, r1, #20
mov r2, r8
vshl.i32 q8, q3, #8
s... | Assembly |
2s:', () {
final algorithm = Blake2s();
test('hash length', () {
expect(algorithm.hashLengthInBytes, 32);
});
test('block length', () {
expect(algorithm.blockLengthInBytes, 32);
});
test('hashLengthInBytes: default is 32', () {
expect(Blake2s().hashLengthInBytes, 32);
})... | Dart |
date time 으로 제대로 들어가도록 하기 위함
export const getLocalDate = (value: Date) => {
const newDate = value;
var now_utc = Date.UTC(
newDate.getUTCFullYear(),
newDate.getUTCMonth(),
newDate.getUTCDate(),
newDate.getUTCHours(),
newDate.getUTCMinutes(),
newDate.getUTCSeconds()
);
return new Date(
... | Typescript |
ator = new(string)
*cln.CSVFieldSeparator = *eeOpts.CSVFieldSeparator
}
if eeOpts.Els != nil {
cln.Els = eeOpts.Els.Clone()
}
if eeOpts.SQL != nil {
cln.SQL = eeOpts.SQL.Clone()
}
if eeOpts.Kafka != nil {
cln.Kafka = eeOpts.Kafka.Clone()
}
if eeOpts.AMQP != nil {
cln.AMQP = eeOpts.AMQP.Clone()
}
if ... | Go |
nter;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;fo... | CSS |
vk::BufferCreateInfo {
size: std::mem::size_of::<DepthPyramidUniforms>() as u64,
usage: vk::BufferUsageFlags::TRANSFER_DST | vk::BufferUsageFlags::UNIFORM_BUFFER,
sharing_mode: vk::SharingMode::EXCLUSIVE,
..Default::default()
};
let uniform_buffer_gpu =
... | Rust |
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toLocalDateTime
@Suppress("unused")
class SchoolyearBasedTimePeriodProvider(private val timePeriodStart: MonthAndDay) :
TimePeriodProvider {
override fun getCurrentTimePeriod(clock: Clock): Int = getTimePeriodFor(clock.now())
override fun getReleva... | Kotlin |
, 'test file')
config = testutil.AppInfoFake(
runtime='python',
entrypoint='run_me_some_python!',
runtime_config=dict(python_version='3'))
cfg_files = self.generate_config_data(appinfo=config, deploy=True)
dockerfile = [f for f in cfg_files if f.filename == 'D... | Python |
octets
"1.2", // missing octets
"1.2.3", // missing octet
"1.2.3.4.5", // too many octets
"256.0.0.0", // first octet too large
"0.265.0.0", // second octet too large
"0.0.266.0", // third octet too large
"0.0.0.355", // fourth octet too large
"a.2.3.4", // first... | Java |
nd
// limitations under the License.
package master
import (
"github.com/getamis/alice/types"
)
func (m *Message) IsValid() bool {
switch m.Type {
case Type_Initial:
return m.GetInitial() != nil
case Type_OtReceiver:
return m.GetOtReceiver() != nil
case Type_OtSendResponse:
return m.GetOtSendResponse() !=... | Go |
oor]
world :: World
world = map (\n -> (5, mod n 8)) nums
-- | Render a single line.
draw :: Char -> String -> Position -> String
draw sep mid pos = "|" <> replicate pos sep <> mid <> replicate (7 - pos) sep <> "|\n"
-- | An empty line.
emptyLine :: String
emptyLine = draw ' ' " " 7
-- | Draw the world and check fo... | Markdown |
builder.append("| ").append(mapCatalog[classTag])
return builder.toString()
}
/**
* 递归目录拼接目录列表信息
* @param builder 拼接 Builder
* @param lists 目录列表
* @param lineNumber 行数
* @param classTag Class TAG 标记
* @param mapCatalog 对应目录注释
*/
private fun forCatalog... | Kotlin |
Button(
null,
roleId,
emoji,
null,
{
content = "Você definiu seu ícone para ${emoji.asMention}! Agora você finalmente se sente chique entre seu grupo de amigos"
},
{
content = "Você removeu seu ícone ${emoji.asMention}! Bem, eu *gostava* de... | Kotlin |
seq r5, #0xff0000
0x03,0x20,0xa0,0xe1 = mov r2, r3
0x03,0x20,0xb0,0xe1 = movs r2, r3
0x03,0x20,0xa0,0x01 = moveq r2, r3
0x03,0x20,0xb0,0x01 = movseq r2, r3
0x08,0xc0,0xa0,0xe1 = mov r12, r8
0x03,0x20,0xa0,0xe1 = mov r2, r3
0x08,0xc0,0xa0,0xe1 = mov r12, r8
0x03,0x20,0xa0,0xe1 = mov r2, r3
0x08,0xc0,0xa0,0xe1 = mov r12,... | C# |
(screen.main.uiPalette, this, this.camera)
init {
genericStage.run {
drawBackground = false
titleLabel.text = "Welcome to RHRE!"
titleLabel.isLocalizationKey = false
titleIcon.image = TextureRegion(AssetRegistry.get<Texture>("logo_256"))
backButto... | Kotlin |
if (this.autoInsert && u.length == 1 && n.finished) return this.insertMatch(u[0]);
this.openPopup(this.editor, s, e)
}.bind(this))
}, this.cancelContextMenu = function () {
this.editor.$mouseHandler.cancelContextMenu()
}, this.updateDocTooltip = functio... | JavaScript |
55BIT] = ((int) carry) & 0x03FFFFFF;
reduce(result, t2, 1);
}
/**
* Raise x to the power of (2^250 - 1).
*
* @param result The result. Must not overlap with x.
* @param x The argument.
*/
private void pow250(final int[] result, final int[] x) {
// The big-endi... | Java |
9108640015 + 529.6909650946 * t);
jupiter_r_0+=-Math.pow(t,0.0)* 5.20887429471* 0.0*Math.sin( 0.0 + 0.0 * t);
var jupiter_r_1 = 0.0;
jupiter_r_1+=Math.pow(t,0.0)*1.0* 0.01271801596*Math.cos( 2.64937511122 + 529.6909650946*t)-Math.po... | Kotlin |
// CustomData combine all custom fields into a struct for easier use
// by backlog and alarm
type CustomData struct {
Label string `json:"label"`
Content string `json:"content"`
}
// SIDPair defines the fields to include during PluginRule quick check
type SIDPair struct {
PluginID int
PluginSID []int
}
// Taxo... | Go |
(0, 0);
return childSize;
}
internal override void Draw(Size availableSpace)
{
var measurement = base.Measure(Size.Max);
if (measurement.Type is SpacePlanType.Empty or SpacePlanType.Wrap)
return;
var tran... | C# |
n(options, key));
}
/**
* mark the current rendering instance for asset resolution (e.g.
* resolveComponent, resolveDirective) during render
*/
let currentRenderingInstance = null;
let currentScopeId = null;
/**
* Note: rendering calls maybe nested. The function returns the parent rendering
* ... | JavaScript |
;
color: rgba(255, 255, 255, 0.6);
}
nav > ul li.selected > a,
nav > ul li.selected span {
color: #fff;
font-weight: 700;
}
nav > ul li.selected ul {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
height: 120%;
}
nav li > ul {
-webkit-transform: scale(0);
-ms-transform: scale(0);... | CSS |
NonTrivial(int v)
: val(v)
{}
~NonTrivial()
{
val = -1;
}
NonTrivial(const NonTrivial& other)
: val(other.val)
{}
NonTrivial& operator=(NonTrivial&& other)
{
val = other.val;
other.val = -1;
return *this;
}
int val;
};
TEST_SU... | C++ |
Entity.path, newPath);
} else if (copiedEntity is Directory) {
await _local.moveDirectory(copiedEntity.path, newPath);
}
pathToSelects.add(newPath.toRealPath());
}
await Pasteboard.writeFiles(const []);
_copiedEntities = {};
await currentExploreViewModel.refresh();
curren... | Dart |
if i < #messages then
task.wait(math.random(0.5, 1.2))
end
end
end
teleportService:Teleport(6872265039)
end,
Config = function()
for i,v in next, GuiLibrary.ObjectsThatCanBeSaved do
if v.Type == 'OptionsButton' and table.find(staffconfig.legitmodules, i:gsub('OptionsButton', ''))... | Lua |
Entry
import io.github.retrooper.packetevents.util.SpigotConversionUtil
import org.bukkit.entity.Player
import java.time.Duration
@Entry(
"particle_path_stream_display",
"Displaying a path stream with a custom particle",
Colors.MYRTLE_GREEN,
"material-symbols:blur-on"
)
class ParticlePathStreamDisplayE... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.