content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
timeF(n)
runtime.GC()
t2 := timeF(2 * n)
// should be 2x (linear); allow up to 3x
if t2 < 3*t1 {
if false {
fmt.Println(typ, "\t", time.Since(t0))
}
return
}
// If n ops run in under a second and the ratio
// doesn't work out, make n bigger, trying to reduce
// the effect that a constant ... | Go |
ier d'entrée a une BOM.</p>
<p>Unix2dos écrit par défaut une BOM dans le fichier de sortie quand le fichier d'entrée a une BOM. Utilisez l'option <code>-r</code> pour supprimer la BOM.</p>
<p>Dos2unix et unix2dos écrivent toujours une BOM quand l'option <code>-m</cod... | HTML |
string': 'some text',
'my_list': [4, 5, 6],
'my_map': {'sub': 73},
'my_complex': [
{
'sub': [
{
'inner': [7, 8, 9],
},
],
},
],
},
],
... | Dart |
.extraArgs) << "\"\n";
os << " },\n";
// metrics aggregate
os << " \"metrics\": {\n";
os << " \"avg_mrr\": " << std::fixed << std::setprecision(6) << rep.avg_mrr << ",\n";
os << " \"avg_ndcg\": {";
bool first = true;
for (const auto& [k, v] : rep.avg_ndcg_at_k) {
if (!first)... | C++ |
pseudo-input-label',
PAGE_NUMBER_SELECT_ICON: 'platforms-page-number-select-icon',
FIRST_PAGE_ARROW_BUTTON: 'platforms-first-page-arrow-button',
PREVIOUS_PAGE_ARROW_BUTTON: 'platforms-previous-page-arrow-button',
NEXT_PAGE_ARROW_BUTTON: 'platforms-next-page-arrow-button',
LAST_PAGE_ARROW_BUTTON: 'pl... | JavaScript |
ght: 25px !important; width: 150px;}
#dashboard .block.wide {border-radius: 5px;}
#dashboard .dashboard_tabcontent {width: 100%; padding: 0; margin: 0; }
#dashboard .dashboard_widget {border-radius: 8px; float: left;}
#dashboard .dashboard_widgethelper {background-color: #111111; }
#dashboard .dashboard_widgetheader... | CSS |
ne][2],newWeakLine})
syncScrollBars(memo,1)
end
dgsSetData(memo,"caretPos",{newIndex,newLine})
local isReadOnlyShow = true
if eleData.readOnly then
isReadOnlyShow = eleData.readOnlyCaretShow
end
if not noselect or not isReadOnlyShow then
dgsSetData(memo,"selectFrom",{newIndex,newLine})
end
else
... | Lua |
кий защитник",nil},
[19000] = {"Высший эльф - следопыт",nil},
[19001] = {"Талаара","Торговка оружием"},
[19002] = {"Гардок Рваная Пасть",nil},
[19003] = {"Аллерийский всадник",nil},
[19004] = {"Водесиин","Реагенты"},
[19005] = {"Зловещий повелитель",nil},
[19006] = {"Магистр из Луносвета",nil},
[19007] = {"Гномрегански... | Lua |
pullquote .mntl-sc-block-callout-heading{font-family:Rubik,Arial,sans-serif;color:#9b2eb1}.is-window-loaded .mntl-sc-block-callout.theme-pullquote .mntl-sc-block-callout-body{padding:0 2rem}.is-window-loaded .mntl-sc-block-callout.theme-pullquote .mntl-sc-block-callout-body p{font-style:italic}.is-window-loaded .mntl-s... | HTML |
using System;
using System.Diagnostics;
using CoordinateSharp;
using CoordinateSharp.Debuggers;
using CoordinateSharp.Magnetic;
namespace Benchmarks
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Starting .NET FRAMEWORK 4.5 Benchmarks, this test may take a w... | C# |
self.set("theme_mode", mode)
def get_window_settings(self) -> Dict[str, int]:
"""Get window size settings"""
return {
"width": self.get("window_width", 1000),
"height": self.get("window_height", 800)
}
def set_window_settings(self, width: int, hei... | Python |
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>Open</th>
<th>High</th>
<th... | HTML |
32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
impl Signer for LedgerEthereum {
type Error = LedgerError;
/// Signs the hash of the provided message after prefixing it
async fn sign_message<S: Send + Sync + AsRef<[u8]>>(
&self,
message: S,
) -> Result<Si... | Rust |
kageInfo.applicationInfo.sourceDir);
LogUtil.i("WebView logo " + packageInfo.applicationInfo.logo + ",icon " + packageInfo.applicationInfo.icon + ", labelRes " + packageInfo.applicationInfo.labelRes);
//TODO 由于目前的资源id分组方案是限制宿主范围,插件使用原生范围,因此如果webview也使用了原生的范围,则会和插件冲突
//为避免... | Java |
w_char_to_string;
/* The two arrays 'const unsigned char to_lower_case[][]' and
** 'const unsigned char to_upper_case[][]' each hold a number
** of pairs of characters, being respectively {upper,lower}
** and {lower,upper}. The pairs are stored in ascending
** order, and are terminated by {0,0}.
*/
extern const... | C |
input type="hidden" name="relationship_type" value="concerts">
<input type="hidden" name="subject_id" value="6806704">
<input type="hidden" name="subject_type" value="Artist">
<input type="hidden" name="success_url" value="/artists/3976856-years-and-years">
<input type="hidden" name="auto_signup_redirec... | HTML |
.PieceStore()
assert.Nil(t, result)
}
func TestGfSpBaseApp_SetPieceStore(t *testing.T) {
g := setup(t)
ctrl := gomock.NewController(t)
g.SetPieceStore(piecestore.NewMockPieceStore(ctrl))
}
func TestGfSpBaseApp_PieceOp(t *testing.T) {
g := setup(t)
result := g.PieceOp()
assert.Nil(t, result)
}
func TestGfSpBas... | Go |
e;
});
it(`fetches images by setting the "src" property`, () => {
ImageAssets.getImageInfoAsync('https://example.com/example.png');
expect((Image as jest.Mock<HTMLImageElement>).mock.instances.length).toBe(1);
const mockImage = (Image as jest.Mock<HTMLImageElement>).mock.instances[0];
expect(mockIm... | Typescript |
6/3R4/1k2N2q/2N1K3/5R2/8/8/8 b - - 11 20"
},
#endif
#ifdef THREECHECK
{
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 3+3 0 1",
"r1bqkb1r/ppp1pppp/2n2n2/3p4/Q7/2P2N2/PP1PPPPP/RNB1KB1R w KQkq - 3+3 0 1"
},
#endif
#ifdef TWOKINGS
{
"rnbqkknr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKKNR w KQkq - 0 1",
... | C++ |
/* Select */
// Projects the result into any desired sequence
var integersPlusOne = Enumerable.Range(0, 10).Select(n => n * 2);
var currentNumberSelect = 0;
foreach (var integer in integersPlusOne)
{
Assert.AreEqual(integer, currentNumberSelec... | C# |
�눠 넣고 싶은가? 아니면 큰 서랍 몇 개를 두고 모두를 던져 넣고 싶은가?”
[인용 문구, 사진 - 우아한 형제들 기술 블로그 :첫 Java 프로젝트의 생생한 후기](http://woowabros.github.io/experience/2016/08/02/first_java_project.html)
# Transactional 테스트
## Case 1 :
```java
@GetMapping
public A create(){
final A a = aService.aCreate();
bService.bCreate(a);
retu... | Markdown |
}
}
public static void SendStringEx(string str, int interval, params VirtualKeys[] extra)
{
foreach (var SubKey in extra)
VirtualKeyDown(SubKey);
SendString(str, interval);
foreach (var SubKey in extra)
VirtualKeyUp(SubKey)... | C# |
.094 2.69-4.973 2.063-7.56l3.563-3.564c1.737.208 3.513-.293 4.78-1.56l.688-.72-.687-.72-7.5-7.5-.75-.717zm.218 3.062 5.687 5.688c-.825.466-1.716.758-2.625.53l-.563-.155-.406.406-4.186 4.187-.438.44.188.593c.587 1.762.315 3.75-.844 5.375L9.312 14.5c1.455-1 3.206-1.46 4.844-1.03l.53.155.408-.406 4.625-4.626.28-.28v-.408c... | Dart |
__copyright__ = "Copyright 2017 Birkbeck, University of London"
__author__ = "Martin Paul Eve & Andy Byers"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck Centre for Technology and Publishing"
from django.contrib import admin
from utils import admin_utils
from copyediting import models
class CopyeditAdmin(admin... | Python |
returns>If the stream's current position contains
/// a serialized TaggedPropIdGroupTypedPropInfo, return true, else false.</returns>
public static new bool Verify(FastTransferStream stream)
{
return LexicalTypeHelper.IsTaggedPropertyID(stream.VerifyUInt16(2));
}
//... | C# |
具体是在干什么,从而针对性优化。同时对应用四大组件消息执行过程进行监控,便于对这类消息的调度及耗时情况进行跟踪和记录。另外对当前正在调度的消息及消息队列中待调度消息进行统计,从而在发生问题时,可以回放主线程的整体调度情况。此外,该库将系统服务的CheckTime机制迁移到应用侧,应用为线程CheckTime机制,以便于系统信息不足时,从线程调度及时性推测过去一段时间系统负载和调度情况。因此该工具用一句话来概括就是:由点到面,回放过去,现在和将来。
细说一下线程 Checktime:通过借助其他子线程的周期检测机制,在每次调度前获取当前系统时间,然后减去我们设置延迟的时间,即可得到本次线程调度前的真实间隔时间,如设置线程每隔300... | Markdown |
�料,企图向革命群众“秋后算帐”。他们在军区设立政治避难所,妄图使省委内一小撮走资派蒙混过关。他们纵容,指使了省委“消防队”——杭州市大中学校红卫兵司令部(红一司)的一小撮坏家伙,公然践踏十六条、镇压学生运动。他们又明目张胆地庇护杀人凶手,严重地破坏了党纪国法。他们几次挑动解放军斗革命群众、学生,制造军民纠纷,把大批群众,学生打成“反革命”。
</p>
<p>
1月19日
</p>
<p>
根据周恩来总理电话通知,浙江派了一个代表团去北京。代表团由省军区政委龙潜,副司令阮贤榜和造反派刘英、石耘、黄永才、赵大林、陈吉义以及首都三司驻杭联络站林岗、韩向东等十六人组成。在会谈期间,周总理为了要了解省委领导干部情... | HTML |
nodeRegistrationProto_NamenodeRoleProto {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CheckpointSignatureProto {
// message fields
blockPoolId: ::protobuf::SingularFi... | Rust |
Impl
/**
*/
package dev.abunai.confidentiality.analysis.model.uncertainty.pcm.impl;
import dev.abunai.confidentiality.analysis.model.uncertainty.impl.UncertaintyScenarioImpl;
import dev.abunai.confidentiality.analysis.model.uncertainty.pcm.PCMConnectorUncertaintyScenarioInEntryLevelSystemCall;
import dev.abunai.conf... | Java |
versionLabelName := conf.IstioLabels.VersionLabelName
if appLabelName == "" {
appLabelName = "app"
versionLabelName = "version"
}
t1, _ := time.Parse(time.RFC822Z, "08 Mar 18 17:44 +0300")
return []apps_v1.Deployment{
{
TypeMeta: meta_v1.TypeMeta{
APIVersion: kubernetes.Deployments.GroupVersion().Stri... | Go |
word-spacing:-1.4px;}
#t1g_169{left:128px;bottom:805px;letter-spacing:1.4px;word-spacing:-1.4px;}
#t1h_169{left:146px;bottom:805px;letter-spacing:1.4px;word-spacing:-1.4px;}
#t1i_169{left:183px;bottom:805px;letter-spacing:-3.7px;}
#t1j_169{left:195px;bottom:805px;letter-spacing:2.8px;}
#t1k_169{left:205px;bottom:805px;... | HTML |
, U+9A32-9A35, U+9A39, U+9A3B,
U+9A3D, U+9A3F, U+9A46, U+9A48, U+9A4B-9A4C, U+9A50, U+9A52-9A54, U+9A58-9A59, U+9A5C, U+9A60,
U+9A66, U+9A69, U+9A6B, U+9A72, U+9A83, U+9A8D-9A8E, U+9A94-9A95, U+9AA6, U+9AAC-9AAE,
U+9AB2-9AB3, U+9AB5, U+9AB9, U+9ABB, U+9ABE-9ABF, U+9AC3-9AC4, U+9AC6-9AC9, U+9AD0, U+9AD9-9ADE... | CSS |
Ok(isolate) => isolate,
Err(_) => return Err(runtime!("`isolate` must be a string.")),
};
// 🤔
let code = code.trim_matches('"');
let isolate = isolate.trim_matches('"');
let result = internal::execute_js(code, isolate);
Ok(ByondValue::from_string(result).unwrap())
}
#[hook("... | Rust |
限性进行反思。
## 分析工具箱(核心方法论)
1. 自顶向下分解分析 (Top-Down Deconstructive Analysis):
* 核心思想: 从目标概念出发,逐层分解其构成要素和存在前提,直到抵达不可再分的基础层。
* 适用领域: 技术系统、科学理论、组织结构等可以被清晰拆解的对象,旨在探寻其“第一性原理”。
2. 网络关系溯源 (Network Relationship Tracing):
* 核心思想: 将概念视为网络中的一个节点,分析其意义和功能是如何由其与其他节点的连接关系所定义的。分析路径是向外扩散和向内追溯的。
* 适用领域: 社交网络、知识图谱... | Markdown |
.4-17.9 57.9-45.6 70.2L384 381.7l0 34.3c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64L32 64zM384 311.6l56.4-25.1c4.6-2.1 7.6-6.6 7.6-11.7l0-102.1c0-7.1-5.7-12.8-12.8-12.8L384 160l0 151.6zM160 144c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224zm64 0c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 22... | JavaScript |
.OKEX, "btm_eth", 8, 3,1.0));
this.add(TAConfigs.build(OrgsInfoEnum.OKEX, "qtum_eth", 8, 4,0.001));
this.add(TAConfigs.build(OrgsInfoEnum.OKEX, "neo_eth", 4, 4,0.01));
this.add(TAConfigs.build(OrgsInfoEnum.OKEX, "trx_eth", 6, 2,10.0));
this.add(TAConfigs.build(OrgsInfoEnum.OKEX, "ltc_btc... | Java |
canvas, Size size) {
if (size.width <= 0 || size.height <= 0) return;
final paint = Paint()
..color = color
..style = PaintingStyle.stroke
..strokeWidth = visualSize
..strokeCap = StrokeCap.round
..strokeJoin = StrokeJoin.round;
final path = Path();
final double checkSiz... | Dart |
_namespace(std::string& s);
void stats();
bool get_line();
bool skip_comment(size_t& pos);
bool is(const char *s);
bool br(size_t pos, const char *s = NULL);
bool as(size_t& pos, const char *s);
bool ws(size_t& pos);
bool eq(size_t& pos);
bool ... | Rust |
y 64 bytes
sub r8,4 # subtract rows remaining
jae .LCopyPackB.ProcessNextRowLoopNUnaligned
.LCopyPackB.ProcessRemainingRowsNUnaligned:
add r8,4
jz .LCopyPackB.ReduceColumnSumVectorNUnaligned
//
// Process the less than 4 remaining rows where the ... | Assembly |
Type {
default:
o = 0
if Thearch.Archreloc(r, s, &o) < 0 {
Diag("unknown reloc %d", r.Type)
}
case obj.R_TLS:
if Linkmode == LinkExternal && Iself && HEADTYPE != obj.Hopenbsd {
r.Done = 0
r.Sym = Ctxt.Tlsg
r.Xsym = Ctxt.Tlsg
r.Xadd = r.Add
o = r.Add
break
}
if Linkmode... | Go |
_string(indent) for child in self.children]
result = result + "".join([s for s in children_strings if s])
return result
def property_string(self) -> str:
properties = []
for node_property in self.properties:
try:
if node_property["name"] in _IGNORED_A... | Python |
message1 = self.test_handler.messages[0]
self.assert_(isinstance(message1, messages.TabList))
self.assertEquals(message1.type, 'feed')
self.check_info_list(message1.toplevels, [self.feed1,
self.feed_folder])
self.check_info_list(message1... | Python |
ttp://bootstrap-table.wenzhixin.net.cn/)
- [datatables](https://www.datatables.net/)
## 在线演示
- [js 在线编辑 - runjs](http://runjs.cn/)
- [js 在线编辑 - jsbin](http://jsbin.com/)
- [js 在线编辑 - codepen](http://codepen.io/)
- [js 在线编辑 - jsfiddle](http://jsfiddle.net/)
- [java 在线编辑 - runjs](http://ideone.com/)
- [js 在线编辑 - hchart... | HTML |
LE and plot
modelOLS = linregFit(Xtrain, ytrain, 'preproc', pp);
[ypredTest] = linregPredict(modelOLS, Xtest);
figure;
scatter(xtrain, ytrain,'b','filled'); hold on;
plot(xtest, ypredTest, 'k', 'linewidth', 3);
title('MLE')
%% compute train/test error for each lambda using lasso
NL = 20;
lambdaMax = lambdaMaxLasso(... | HTML |
xytag: member="day_of_week" ref="a1536eaff4b2a880782128fc127f40d3aaefcf18fd66bcbbac887950c40d5e039b" args="" -->day_of_week</em> </td><td>
<p>Day of week, Sunday=1, Monday=2,..., Saturday=7. Note that updating this value respects local day of week, so for example, If first day of week is Monday and the current day... | HTML |
return instanceNode;
}
@override
void onParentChanged(ActorNode? from, ActorNode? to) {
super.onParentChanged(from, to);
from?.findLayerEffect();
to?.findLayerEffect();
findEffects();
}
@override
void resolveComponentIndices(List<ActorComponent?> components) {
super.resolveComponen... | Dart |
age,
event:: ResumedEvent, gateway::Ready},
prelude::{TypeMapKey, Context, EventHandler, Client},
};
use tokio::sync::Mutex;
use tracing::{error, info};
use tracing_subscriber::{
FmtSubscriber,
EnvFilter,
};
use commands::{
meta::*,
dev::*,
config::*,
tags::*,
};
struct CommandCou... | Rust |
a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first t... | HTML |
.406-.281 1.295 1.295 0 00-.594-.125 1.85 1.85 0 00-.812.187 2.176 2.176 0 00-.688.5c-.2.233-.348.525-.468.844-.12.32-.188.671-.188 1.063 0 .38.058.738.156 1.062.097.325.208.604.375.813.17.215.392.354.625.468.233.114.481.188.75.188.183 0 .333-.011.438-.031.107-.022.22-.05.343-.094.11-.036.19-.071.282-.125.088-.054.189-... | Dart |
_UTIL.add_tag('tag_negative')
card:juice_up()
return true
end
})
-- Creates the spectral card
PB_UTIL.try_spawn_card { set = 'Spectral' }
-- Make Ghost Cola extinct
G.GAME.pool_flags.ghost_cola_can_spawn = false
end
... | Lua |
final int code;
final Uint8List bytes;
UnknownMessage(this.code, this.bytes);
@override
int get hashCode {
return bytes.hashCode;
}
@override
bool operator ==(dynamic other) {
if (bytes != null) {
if (bytes.length != other.bytes.length) {
return false;
}
for (var i =... | Dart |
项目会记录最近 30 条消息,以便保持历史记录简洁。
<strong>问题解决能力</strong>:能够处理包括“草莓计数”问题在内的多种推理任务。
<strong>API 灵活性</strong>:通过简单修改 API 密钥和端点,用户能易于切换不同的 LLM 提供商。
<strong>简易设置</strong>:项目不需要复杂的数据库或后端设置,用户只需搭建一个简单的本地网页服务器。
<strong>可下载的聊天记录</strong>:用户能够将聊天记录下载为 JSON 格式,便于参考或进一步处理。
<strong>聊天记录清除</strong>:用户可以轻松清除聊天历史。</p>
<p>地址:https://github.c... | HTML |
исок номеров туристических[\s\S]*?<tbody[^>]*>([\s\S]*?)<\/tbody>/i);
if (!table)
throw new AnyBalance.Error("Не удалось найти список номеров!");
var tr;
var lines = table.split(/<\/tr>\s*<tr[^>]*>/g);
var reNum = new RegExp('\\s*<td[^>]*>[\\s\\S]*?<\\/td>\\s*<td[^>]*>' + num + '<\\/td>', 'i');
for... | JavaScript |
}.awesomplete ul{background:#fff !important}.list-widget{width:100%;min-width:275px}.map-widget{display:flex}.map-widget .map-wrapper{z-index:3;height:480px;width:600px}.map-widget .leaflet-pm-toolbar .icon-map-validate{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciI... | CSS |
ttings::debugMode > 0) {
T ag = objective.angle(dxx.back(), dg.back());
if (ag <= 0) {
ZIRAN_WARN("detects irregular angle, press to begin system matrix & preconditioning matrix SPD sanity check!");
objective.BCprojectionSanityCheck... | C |
const std::string& filename,
Givaro::Integer& coprimeV,
size_t method=0) {
// method for valence squarization:
// 0 for automatic, 1 for aat, 2 for ata
// Blackbox provides the Integer matri... | C |
0, 0), CellOffset(4, 0)),
);
expect(
terminal.mainBuffer.getWordBoundary(CellOffset(5, 0)),
BufferRangeLine(CellOffset(5, 0), CellOffset(7, 0)),
);
});
});
test('does not delete lines beyond the scroll region', () {
final terminal = Terminal();
terminal.resize(10, 10)... | Dart |
data, msgCanMessage.len);
canFrame.identifier = (msgCanMessage.id & ((1 << 29) - 1));
canFrame.isExtendedFrame = (NTCAN_20B_BASE == (msgCanMessage.id & NTCAN_20B_BASE));
canFrame.timestamp_us = msgCanMessage.timestamp * 1000000 / timestampFreq + timestampOffset;
retVal = true;
}
else
{
std::this_th... | C++ |
6, %g1
ba,pt %xcc, __restore_asi
add %i2, %g1, %i0
ENDPROC(NG_ret_i2_plus_g1_minus_16)
ENTRY(NG_ret_i2_plus_g1_minus_24)
sub %g1, 24, %g1
ba,pt %xcc, __restore_asi
add %i2, %g1, %i0
ENDPROC(NG_ret_i2_plus_g1_minus_24)
ENTRY(NG_ret_i2_plus_g1_minus_32)
sub %g1, 32, %g1
ba,pt %xcc, __restore_asi
add %i2, %g1, ... | Assembly |
HashPath(urlPath);
final childRef = storageRef.child(hashPath);
return _downloadUrlsByUrlPath?[urlPath] = await childRef.getDownloadURL();
} on FirebaseException catch (e) {
// https://firebase.google.com/docs/storage/flutter/handle-errors
debugPrint("FirestoreStorageService#getDownloadURL ... | Dart |
margin: 0;
padding: 0;
}
pre{
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
body{
overflow-y:scroll;
}
.big{
color:#E0676D;
}
.feature{
color:#7BB18F;
}
.warning{
colo... | HTML |
2
L1_2 = 4
return L1_2
end
_ENV["CDFF0C36963EBCAA9"]["prototype"]["FDA98E87C57449F00"] = function(A0_2, A1_2)
local L2_2, L3_2
L2_2 = C5648AAEE3425CE6C
L2_2 = L2_2.SFB730E13EADA7545
L2_2 = L2_2()
if L2_2 then
L2_2 = C3FF6D1CD4C470E22
L2_2 = L2_2.S6C886FC694510481
L2_2 = L2_2()
if L2_2 th... | Lua |
::before,input[type=checkbox].ace+.lbl:hover::before,input[type=radio].ace+.lbl:hover::before{border-color:#ff893c}input[type=checkbox].ace:active+.lbl::before,input[type=radio].ace:active+.lbl::before,input[type=checkbox].ace:checked:active+.lbl::before,input[type=radio].ace:checked:active+.lbl::before{box-shadow:0 1p... | CSS |
"),
opcodes = listOf(
Opcode.IGET_OBJECT,
Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT_OBJECT,
),
customFingerprint = { method, _ ->
method.definingClass.endsWith("/SettingsHeadersFragment;") &&
method.name == "onCreate"
}
)
internal val baseHostActivityOnCr... | Kotlin |
tTalk to |cRXP_FRIENDLY_Crusader Rhydalla|r
.goto IcecrownGlacier,69.43,23.02
.turnin 13663 >> Turn in The Black Knight's Orders
.target Crusader Rhydalla
step
>>|Tinterface/worldmap/chatbubble_64grey.blp:20|tTalk to |cRXP_FRIENDLY_Crusader Rhydalla|r
>>NOTE: Accepting this quest requires you to be a |cRXP_WARN_Ch... | Lua |
本。
## 1.12.2+39
- 添加俄语翻译。 (#169, 感谢 @yurtpage 的贡献)
- 添加意大利语翻译。 (来自 Weblate,感谢 @spar34vi 的翻译)
- 添加对 Windows 支持。 (#164)
- 添加对 macOS 上 dmg 支持。 (#168, 感谢 @rxzheng 的贡献)
- 添加 `pre-release` 版本构建流程。 (#171)
- 修复了通过 `OpenContainer` 导航时, 如果启用 `Tooltips` 会引发异常的问题。 (#166)
- 更新 iOS 依赖版本。
- 优化代码质量。
## 1.12.0+37
- 新增批量打卡功能
长按选择多个... | Markdown |
!= nil {
slog.Warn("[UDP] Listen", "err", err)
continue
}
go c.udpRead(conn)
c.udpConns = append(c.udpConns, conn)
}
slog.Info("[UDP] Listen 256 ports on hard side")
}
return nil
}
func (c *UDPConn) mainUDP() (*net.UDPConn, error) {
c.udpConnsMutex.RLock()
defer c.udpConnsMutex.RUnlock()
if ... | Go |
�◌̀◌̕b; a◌֮◌࣬◌̀◌̕b; a◌֮◌࣬◌̀◌̕b; a◌֮◌࣬◌̀◌̕b; ) LATIN SMALL LETTER A, ARABIC TONE LOOP ABOVE, COMBINING COMMA ABOVE RIGHT, COMBINING GRAVE ACCENT, HEBREW ACCENT ZINOR, LATIN SMALL LETTER B
0061 059A 0316 302A 08ED 0062;0061 302A 0316 08ED 059A 0062;0061 302A 0316 08ED 059A 0062;0061 302A 0316 08ED 059A 0062;0061 302A 031... | Kotlin |
mmand(Command::DefineFun), (0, 9))],
);
assert_input(
"define-fun-rec",
vec![(TokenKind::Command(Command::DefineFunRec), (0, 13))],
);
assert_input(
"define-funs-rec",
vec![(TokenKind::Command(Command::DefineFunsRec), (0, 14))],
);
... | Rust |
KNOWN
listOf("ongoing").any { it.contains(element, ignoreCase = true) } -> SManga.ONGOING
listOf("completed").any { it.contains(element, ignoreCase = true) } -> SManga.COMPLETED
else -> SManga.UNKNOWN
}
// Chapters
override fun chapterListSelector(): String = "div.season_start"
... | Kotlin |
%s created by %s). '+'Attempts to access this ref will fail.',ref,componentName,this.getName()):void 0;}var refs=inst.refs===emptyObject?inst.refs={}:inst.refs;refs[ref]=publicComponentInstance;},detachRef:function detachRef(ref){var refs=this.getPublicInstance().refs;delete refs[ref];},getName:function getName(){var ... | HTML |
using System.Text.Json.Serialization;
using Square;
using Square.Core;
namespace Square.Locations.CustomAttributeDefinitions;
public record CreateLocationCustomAttributeDefinitionRequest
{
/// <summary>
/// The custom attribute definition to create. Note the following:
/// - With the exception of the `Sel... | C# |
TerrainAttackCancelString
printstring 0x184
waitmessage DELAY_1SECOND
goto BS_MOVE_END
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
BattleScript_MoveUsedPowderPrevents:
attackstring
ppreduce
pause DELAY_HALFSECOND
playanimation BANK_ATTACKER ANIM_POWDER_EXPLOSION 0x0
jumpifability BANK_ATTACKER ABILITY_MAGICGUARD Sk... | Assembly |
8e93;--vp-c-text-light-1: rgba(60, 60, 67);--vp-c-text-light-2: rgba(60, 60, 67, .75);--vp-c-text-light-3: rgba(60, 60, 67, .33);--vp-c-text-dark-1: rgba(255, 255, 245, .86);--vp-c-text-dark-2: rgba(235, 235, 245, .6);--vp-c-text-dark-3: rgba(235, 235, 245, .38);--vp-c-green: #10b981;--vp-c-green-light: #34d399;--vp-c-... | CSS |
html)
* [Zhongming Shi](http://www.systems.arch.ethz.ch/about-us/team/team-singapore/zhongming-shi.html)
* [Bhargava Krishna Sreepathi ](http://www.systems.arch.ethz.ch/about-us/team/team-singapore/sreepathi-bhargava-krishna.html)
* [Daren Thomas](http://www.systems.arch.ethz.ch/about-us/team/team-zurich/da... | Markdown |
,
result: OctantWrapper<T>[]): void {
if(tx1 >= 0.0 && ty1 >= 0.0 && tz1 >= 0.0) {
const keyDesign = octree.keyDesign;
if(octant.data !== null) {
const cellSize = octree.getCellSize(level, u);
const octantWrapper = new OctantWrapper<T>(octant);
octantWrapper.id.set(keyDesign.packKey(keyX, keyY, keyZ)... | Typescript |
# Copyright (c) 2010-2022 openpyxl
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Typed,
Sequence,
Alias
)
from openpyxl.descriptors.excel import ExtensionList
from openpyxl.descriptors.nested import (
NestedNoneSet,
NestedBool,
)
from ._chart import ... | Python |
var t =EndTime.getTime() - NowTime.getTime();
/*var d=Math.floor(t/1000/60/60/24);
t-=d*(1000*60*60*24);
var h=Math.floor(t/1000/60/60);
t-=h*60*60*1000;
var m=Math.floor(t/1000/60);
t-=m*60*1000;
var s=Math.floor(t/1000);*/
var d=Math.floor(t/1000/60/60/24)... | JavaScript |
)+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",un="uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*... | JavaScript |
3, %l6, %l3
ld [%l3], %l7
st %l7, [%l3]
P3118: !DWST [12] (maybe <- 0x83001b) (Int)
mov %l4, %l6
sllx %l6, 32, %l6
stx %l6, [%i3 + 0 ]
add %l4, 1, %l4
P3119: !DWLD [15] (Int)
ldx [%i3 + 192], %o2
! move %o2(upper) -> %o2(upper)
P3120: !LD [4] (Int)
lduw [%i0 + 64], %l6
! move %l6(lower) -> %o2(lower)
srlx %o2, ... | Assembly |
import django_filters
from django_filters import ChoiceFilter
from .models import Property
class PropertyFilter(django_filters.FilterSet):
district = django_filters.NumberFilter(field_name="district__id", lookup_expr="exact")
municipality = django_filters.NumberFilter(field_name="municipality__id", lookup_expr... | Python |
InIdp) {
this.userIdInIdp = userIdInIdp;
}
public Object getUserInfoInIdp() {
return userInfoInIdp;
}
public void setUserInfoInIdp(Object userInfoInIdp) {
this.userInfoInIdp = userInfoInIdp;
}
public String getAccessToken() {
return accessToken;
}
public... | Java |
8px;width:calc(100% + 24px)}.text-button-light-gray-small-H6_2ZGVv .background-H6_2ZGVv{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-8px;width:calc(100% + 16px)}.text-button-light-gray-small-H6_2ZGVv.with-start-icon-H6_2ZGVv:after{heigh... | CSS |
(rgb.r, math.max(rgb.g, rgb.b));
final delta = max - min;
final v = max;
final s = max == 0 ? 0.0 : delta / max;
if (delta == 0) {
return HsvComponents(0, s, v);
}
double h;
if (max == rgb.r) {
h = (rgb.g - rgb.b) / delta;
} else if (max == rgb.g) {
h = 2 + (rgb.b - ... | Dart |
r] = _v[x] ~/ 100;
_memory[_ir + 1] = (_v[x] % 100) ~/ 10;
_memory[_ir + 2] = _v[x] % 10;
break;
case 0x0055:
for (int i = 0; i <= x; i++) {
_memory[_ir + i] = _v[i];
}
break;
case 0x0065:
for (int i = ... | Dart |
g) + (p.y + padding + y) * atlasW + (p.z + padding + z) * atlasW * atlasH];
atlasPixels[(p.x + padding + w) + (p.y + padding + y) * atlasW + (p.z + padding + z) * atlasW * atlasH] =
atlasPixels[(p.x + padding + w - 1) + (p.y + padding + y) * atlasW + (p.z + paddi... | C# |
(this._pomeloIsReconnect) this._pomeloIsReconnect = false;
// if (this._checkTimer == null) {
// this._checkTimer = setInterval(() => {
// this._checkReq();
// }, 3000);
// }
// ModuleMgr.getInstance().closeModule("juhua");
}
// 在LoginMgr重连后清空pomelo的请求
public clearPomeloReqs(): void {
// console.log("... | Typescript |
"""Fix function attribute names (f.func_x -> f.__x__)."""
# Author: Collin Winter
# Local imports
from .. import fixer_base
from ..fixer_util import Name
class FixFuncattrs(fixer_base.BaseFix):
BM_compatible = True
PATTERN = """
power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'... | Python |
the inspector.
The most useful program to use with the inspector is the widget factory though. Which shows you basically every widget. Run `sudo apt install gtk-3-examples`, then run `gtk3-widget-factory` That will open the widget factory, then you can open the inspector with <kbd>CTRL</kbd> + <kbd>Shift</kbd> + <kbd... | Markdown |
{ opacity: 1 },
buttonRemoveItem: { opacity: 1 },
info: { translateX: calculateFileInfoOffset },
status: { opacity: 1 },
},
DID_START_ITEM_REMOVE: {
processProgressIndicator: { opacity: 1, align: getRemoveIndicatorAligment },
info: { translateX: calculateFileInfoOffset },... | JavaScript |
import re
from modules.patterns import isIncludePattern_regex, regexify, withoutSurroundingSlashes
COMMENT_PREFIX: str = "#"
PORT_PREFIX: str = ":"
PIPE: str = "|"
REGEX_COMMENT: re.Pattern = re.compile(r"\#.*$")
def rulesIn(text: str) -> list[str]:
return list(filter(
lambda s: s != "",
map(with... | Python |
vibrant .codecolorer .br0, .vibrant .codecolorer .sy0,
code.vibrant .br0, code.vibrant .sy0
{ color: #FFFFFF; }
.vibrant .codecolorer.xml .re1, .vibrant .codecolorer.xsl .re1, .vibrant .codecolorer.xml .re2, .vibrant .codecolorer.xsl .re2,
code.vibrant.xml .re1, code.vibrant.xsl .re1, code.vibrant.xml .re2, code.... | CSS |
}},noslash:{encodePath:g,decodePath:m},slash:{encodePath:m,decodePath:m}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(k(window.location.href)+"#"+e)}var A=n(48),I=n.n(A);fun... | HTML |
/**
* @file integrator_bs.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2021 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of t... | C |
.id)
UnlockCrop("Giant Rice", parent.id)
end,
OnInitEffect = function (self, city, parent)
LockCrop("Rice", parent.id)
LockCrop("Vegetables", parent.id)
LockCrop("Kelp", parent.id)
LockCrop("Corn", parent.id)
LockCrop("Fruit Trees", parent.id)
LockCrop("Quinoa", parent.id)
LockCrop("Giant Corn", parent.id)
LockCrop("... | Lua |
ar<Vt.features.length;ar++)lr(tr,Vt.features[ar],_t,ar);else Vt.type==="Feature"?lr(tr,Vt,_t):lr(tr,{geometry:Vt},_t);return tr}function lr(Vt,_t,tr,ar){if(_t.geometry){var Er=_t.geometry.coordinates,Zr=_t.geometry.type,ri=Math.pow(tr.tolerance/((1<<tr.maxZoom)*tr.extent),2),$r=[],zi=_t.id;if(tr.promoteId?zi=_t.propert... | HTML |
AppropriateBondToOxideAndAdjustCharges(elementaryAtom, oxideAtom);//e.g. carbon dioxide
int chargeOnAtom =elementaryAtom.getCharge();
if (chargeOnAtom>=2){
elementaryAtom.setCharge(chargeOnAtom-2);
}
continue mainLoop;
}
else{
List<Atom> atomList = groupToModify.getAtomList();
... | Java |
_base_ = [
'../../_base_/models/semfpn_semask_swin.py', '../../_base_/datasets/semask/ade20k_640x640.py',
'../../_base_/default_runtime.py', '../../_base_/schedules/schedule_80k.py'
]
model = dict(
backbone=dict(
embed_dim=192,
depths=[2, 2, 18, 2],
num_heads=[6, 12, 24, 48],
... | Python |
#region License Information
/* HeuristicLab
* Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab 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 So... | C# |
ontent.Res;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using SampleBrowser.SfDataGrid.Droid;
using Xamarin.Forms;
[assembly: Dependency(typeof(DataGridDependencyService))]
namespace SampleBrowser.SfDataGrid.Droid
{
/// <summary>
/// A dependency Service for DataGrid Sa... | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.