content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
://www.python.org/downloads/`
1. Download the `CheckRoyalCaribbeanPrice.py` from this repo or `git clone https://github.com/jdeath/CheckRoyalCaribbeanPrice.git`
1. `pip install requests Apprise bs4`
## Install (Windows 10/11 Only)
1. Download `CheckRoyalCaribbeanPrice.exe` from release assets `https://github.com/jdeat... | Markdown |
بێت.","invalidCellSpacing":"بۆشایی خانه دەبێت ژمارەکی درووست بێت.","invalidCols":"ژمارەی ئەستوونی دەبێت گەورەتر بێت لەژمارەی 0.","invalidHeight":"درێژی خشته دهبێت تهنها ژماره بێت.","invalidRows":"ژمارەی ڕیز دەبێت گەورەتر بێت لەژمارەی 0.","invalidWidth":"پانی خشته دەبێت تەنها ژماره بێت.","menu":"خاسیەتی خشتە","row":{"m... | JavaScript |
t,
* r4 (access) is re-useable, we use it for the new HPTE flags
*/
/* Load the hidx index */
rldicl r25,r3,64-12,60
BEGIN_FTR_SECTION
cmpdi r9,0 /* check segment size */
bne 3f
END_FTR_SECTION_IFSET(CPU_FTR_1T_SEGMENT)
/* Calc va and put it in r29 */
rldicr r29,r5,28,63-28 /* r29 = (vsid << 28) */
rldi... | Assembly |
ING_EXTENSIONS
| Cr4::CR4_ENABLE_MACHINE_CHECK;
cr4_write(new_cr4);
if !new_cr4.contains(old_cr4) {
warn!("UEFI has too many CR4 features enabled, so we disabled some: new cr4 {:?}, uefi cr4 was = {:?}", new_cr4, old_cr4);
}
debug!("Switched to new page-table.");... | Rust |
var keep_3 = typeof x !== 'undefined' || x
var keep_3 = typeof x != 'undefined' || x
var keep_3 = typeof x === 'undefined' && x
var keep_3 = typeof x == 'undefined' && x
var keep_3 = 'undefined' !== typeof x ? null : x
var keep_3 = 'undefined' != typeof x ? null : x
var keep_3 = 'undefined'... | Go |
: sizeof (WAVEFORMATEX));
}
//==============================================================================
class WASAPIDeviceBase
{
public:
WASAPIDeviceBase (const ComSmartPtr<IMMDevice>& d, const bool exclusiveMode)
: device (d),
sampleRate (0),
defaultSampleR... | C++ |
utput 的所有资源
* 这个方法会停止 output 的 flushing 线程并且释放当前
* output 序列器当前的所有缓存
*/
public void releaseOutputs() {
for (RecordWriterOutput<?> streamOutput : streamOutputs) {
streamOutput.close();
}
}
/**
* 获取头部操作符
*/
public OP getHeadOperator() {
return headOperator;
}
/**
* 获取所有操作符的数量
*/
public int... | Java |
r"""distrust""": 28251,
r"""##athan""": 28252,
r"""##zle""": 28253,
r"""c2""": 28254,
r"""ronin""": 28255,
r"""zac""": 28256,
r"""##pse""": 28257,
r"""celaena""": 28258,
r"""instrumentalist""": 28259,
r"""scents""": 28260,
r"""skopje""": 28261,
r"""##mbling""": 28262,
r"""comical""": 28263,
... | Dart |
LITY IDEOGRAPH-2F9BC
2F9BD;876B;876B;876B;876B; # (蝫; 蝫; 蝫; 蝫; 蝫; ) CJK COMPATIBILITY IDEOGRAPH-2F9BD
2F9BE;8786;8786;8786;8786; # (螆; 螆; 螆; 螆; 螆; ) CJK COMPATIBILITY IDEOGRAPH-2F9BE
2F9BF;45D7;45D7;45D7;45D7; # (䗗; 䗗; 䗗; 䗗; 䗗; ) CJK COMPATIBILITY IDEOGRAPH-2F9BF
2F9C0;87E1;87E1;87E1;87E1; # (蟡; 蟡; 蟡; 蟡; 蟡; ) CJK COMPA... | Kotlin |
static void SWELL__dlg_cf__##recid(HWND view, int wflags) { \
SWELL_MakeSetCurParms(__swell_dlg_scale__##recid,__swell_dlg_scale__##recid * (SWELL_DLG_SCALE_AUTOGEN_YADJ),0,0,view,false,!(wflags&SWELL_DLG_WS_NOAUTOSIZE)); \
S... | C |
NodeB = bodyJointNodeArray[sbB];
while (startJointNodeB>=0)
{
int j1 = jointNodeArray[startJointNodeB].jointIndex;
int cj1 = jointNodeArray[startJointNodeB].constraintRowIndex;
if (j1<c)
{
int numRowsOther = cj1 < m_tmpSolverNonContactConstraintPool.size() ? m_tmpConstraintSizesPool[... | C++ |
t[z.lk_shift][ms->kind];
z.g_fn = I8(g_count);
z.zb = GET_DIST_ZED;
*(__INT_T *)rb = 0;
I8(__fort_red_scalar)(&z, rb, mb, (char *)GET_DIST_TRUE_LOG_ADDR,
rs, ms, (F90_Desc *)&mask_desc, NULL, __COUNT);
}
/* dim present */
void ENTFTN(COUNT, count)(char *rb, char *mb, char *db, DECL_HDR_PTRS(rs),
... | C |
= ReadSegment(stream, mRef);
if (NS_FAILED(rv)) return rv;
rv = NS_ReadOptionalCString(stream, mOriginCharset);
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::Write(nsIObjectOutputStream *stream)
{
nsresult rv;
rv = stream->Write32(mURLType);
if (NS_FAILED(rv)... | C++ |
43.8 0H1507c-91.9 0-167.1 74.7-167.1 165.9v37.2c0-91.2 75.2-165.9 167.1-165.9h3536.8c91.9 0 167.1 74.7 167.1 165.9v-37.2C5210.8 74.7 5135.7 0 5043.8 0z"/>
<path fill="#EA4335" d="M2198.2 3529.1c-23.9 89.1 23.8 180 106 202l3275.8 881c82.2 22 169-32.9 192.8-122l771.7-2880c23.9-89.1-23.8-180-106-202l-3275.8-881c-82.2-22... | Dart |
return an
* HRESULT are codes from DirectDrawEx concerning the results of the action
* requested by DirectDrawEx.
*
*==========================================================================*/
/*
* An attempt was made to load ddraw.dll
*/
#define DDERR_LOADFAILED MAKE_DDHRESULT( 901 )
/... | C |
{
return (MF.getSubtarget<ARMSubtarget>().hardenSlsBlr()) ? ARM::tBLXr_noip
: ARM::tBLXr;
}
unsigned llvm::getBLXpredOpcode(const MachineFunction &MF) {
return (MF.getSubtarget<ARMSubtarget>().hardenSlsBlr()) ? ARM::BLX_pred_noip
... | C++ |
ew
import com.tongji.build_logic.depend.dependLifecycleKtx
import org.gradle.api.Project
import com.tongji.build_logic.project.base.BaseApplicationProject
import org.gradle.api.artifacts.ProjectDependency
class ModuleDebugProject(project: Project) : BaseApplicationProject(project) {
override fun initProjectIntern... | Kotlin |
ers', 'get', this.produceNewsData())
console.log('test')
}
}
export default new MockDefault()
import Configs from './configs';
import { Skycons, SkyconsConfigs } from './skycons';
export default class SkyconfsActions {
static ClearDay(ctx: CanvasRenderingContext2D, t: number, color: SkyconsConfigs, caller: S... | Typescript |
GraphExposedInputs_ExecuteUbergraph_EN2211_00_Ogre_StandardEnd2_Animation_AnimGraphNode_TransitionResult_828B768640CB203E6956E49797E06D82();
void EvaluateGraphExposedInputs_ExecuteUbergraph_EN2211_00_Ogre_StandardEnd2_Animation_AnimGraphNode_TransitionResult_33538ED041304467A8E420B9C3FE9421();
void EvaluateGraphExpos... | C++ |
\r\n<TITLE>IBM Infoprint Color (\d+)</TITLE>| p/IBM Infoprint Color $1 ippd/ d/printer/ cpe:/h:ibm:infoprint_color_$1/
match ipp m|^HTTP/1\.1 301 Moved Permanently\r\nServer: Virata-EmWeb/R([\w_]+)\r\nLocation: https://[\d.]+/\r\nContent-Type: text/html\r\nContent-Length: 90\r\n\r\nMoved\r\n| p/Virata-EmWeb/ v/$SUBST(1... | Go |
.418278,16 8,16 C3.581722,16 0,12.418278 0,8 Z M8,5.02857143 C8.72564752,5.03138642 9.32350762,5.59898692 9.36397433,6.32351069 C9.40444104,7.04803446 8.87350647,7.67868136 8.15268571,7.76228571 C7.72754286,7.80982857 7.31428571,8.16457143 7.31428571,8.68571429 L7.31428571,9.82857143 L8.68571429,9.82857143 L8.68571429,... | CSS |
stdout = process.inputStream
var result = ""
stdout.bufferedReader().use {
result = it.readText()
}
return result
}
fun winCompatiblePathOf(path: String): Path {
if (path.get(2) == ':' && path.get(0) == '/') {
// Strip leading '/' when dealing with paths on Windows
return P... | Kotlin |
32-32c6.2-6.2 6.2-16.4 0-22.6z"],
"cart-flatbed-suitcase": [640, 512, ["luggage-cart"], "f59d", "M0 32C0 14.3 14.3 0 32 0H48c44.2 0 80 35.8 80 80V368c0 8.8 7.2 16 16 16H608c17.7 0 32 14.3 32 32s-14.3 32-32 32H541.3c1.8 5 2.7 10.4 2.7 16c0 26.5-21.5 48-48 48s-48-21.5-48-48c0-5.6 1-11 2.7-16H253.3c1.8 5 2.7 10.4 2.7 ... | JavaScript |
Config`
[<来源>](https://github.com/huggingface/transformers/blob/v4.37.2/src/transformers/models/sam/configuration_sam.py#L237)
```py
( vision_config = None prompt_encoder_config = None mask_decoder_config = None initializer_range = 0.02 **kwargs )
```
参数
+ `vision_config`(Union[`dict`, `SamVisionConfig`],*可选*)—用于... | Markdown |
t.memories = Memories::deserialize_no_header(r);
continue;
}
r.skip_payload(tagid);
}
return result;
}
Brain Brain::deserialize(std::istream &in) {
minecpp::nbt::Reader r(in);
auto peek = r.peek_tag();
if (peek.id != minecpp::nbt::TagId::Compound) {
return {};
}
return B... | C++ |
earch-result-index .page-title h1 {
border-bottom: none;
}
.category-image {
margin-bottom: 1.5em;
}
.products-list .action .button,
.products-grid .actions .button {
white-space: normal;
}
/* -------------------------------------------- *
* Product Name
*/
h2.product-name,
h3.product-name,
h4.product-name,
... | CSS |
.CreateFromTo(targ, propName, ease, start, end, dur, option));
tween.Play();
return tween;
}
#endregion
#region Special Types
private struct TokenPairing
{
public object Target;
public object TokenUid;
public TokenPa... | C# |
println!(" Avg score: {:.4}",
results.iter().map(|r| r.score).sum::<f32>() / results.len() as f32
);
}
// 验证结果
assert!(results.len() <= 10, "Should return at most 10 results");
for result in &results {
asser... | Markdown |
b/trans-websocket.js
/*
* ***** BEGIN LICENSE BLOCK *****
* Copyright (c) 2011-2012 VMware, Inc.
*
* For the license see COPYING.
* ***** END LICENSE BLOCK *****
*/
var WebSocketTransport = SockJS.websocket = function(ri, trans_url) {
var that = this;
var url = trans_url + '/websocket';
if (url.slice... | JavaScript |
# The MIT License (MIT)
#
# Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
#
# 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 ... | Python |
xec(int address)
{
char cmd[3] = { 0x22, address>>8, address&0xFF };
ikbd_write(cmd, 3);
}
/* Status inquiries (0x87-0x9A) not yet implemented */
/* Set the state of the caps lock led. */
void atari_kbd_leds(unsigned int leds)
{
char cmd[6] = {32, 0, 4, 1, 254 + ((leds & 4) != 0), 0};
ikbd_write(cmd, 6);
}
/*
... | C |
================
idAASFileLocal::ParseFaces
================
*/
bool idAASFileLocal::ParseFaces( idLexer &src ) {
int numFaces, i;
aasFace_t face;
numFaces = src.ParseInt();
faces.Resize( numFaces );
if ( !src.ExpectTokenString( "{" ) ) {
return false;
}
for ( i = 0; i < numFaces; i++ ) {
src.ParseInt();
... | C++ |
) –– 你可以参考其中了解详细信息。简而言之,应确保在可能的情况下,视觉内容具有替代文本,供屏幕阅读器拾取和读取给其用户。
示例:
```html
<img
src="dinosaur.png"
alt="A red Tyrannosaurus Rex: A two legged dinosaur standing upright like a human, with small arms, and a large head with lots of sharp teeth." />
```
## 可访问的音频和视频控件
基于 Web 的音频/视频执行控件不应该成为问题,对吗?让我们来调查一下。
### 本地 H... | Markdown |
the SQL command
cursor.execute(delete_query)
# Commit the changes to save the deletion
connection.commit()
print(f'{playlist_name} is deleted from the database.')
print('Disconnected from playlists.db (delete) \n')
... | Python |
ciated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit ... | Dart |
ayer it is attached to). Only report the
// checkerboard once per composite though.
return;
}
mLastCheckerboardReport = aSampleTime;
bool recordTrace = StaticPrefs::apz_record_checkerboarding();
bool forTelemetry = Telemetry::CanRecordExtended();
uint32_t magnitude = GetCheckerboardMagnitude(aClipped... | C++ |
symbols.")},a.getHumanizedTimesince=function(e,t){var n=1e3,r=6e4,o=36e5,s=864e5,c=6048e5,u=31536e6,d=new Date(e),p=(new Date).getTime()-d.getTime(),f=Math.floor(p/1e3),m=Math.floor(p/6e4),h=Math.floor(p/36e5),_=Math.floor(p/864e5),b=Math.floor(p/6048e5),g=Math.floor(p/31536e6);return g>0?t?i.c(a._("{{ years }}y","Abb... | JavaScript |
renderer != null) {
renderer!.srcObject = event;
} else {
initRenderer();
}
}
Future<void> initRenderer() async {
if (stream.stream?.getVideoTracks().isNotEmpty == true) {
var r = RTCVideoRenderer();
await r.initialize();
r.srcObject = stream.stream!;
renderer = r;
... | Dart |
await queryRunner.delete('white_card', {
text: `A Godzilla attack.`,
watermark: `ANX1`
});
await queryRunner.delete('white_card', {
text: `Eating KFC on Christmas day.`,
watermark: `ANX1`
});
await queryRunner.delete('white_card', {
text: `Hello Kitty! pregnancy doujins.`... | Typescript |
er::with_splitter(8, NoHyphenation);
/// assert_eq!(wrapper.wrap("foo bar-baz"), vec!["foo", "bar-baz"]);
/// ```
///
/// [`Wrapper.splitter`]: struct.Wrapper.html#structfield.splitter
#[derive(Clone, Debug)]
pub struct NoHyphenation;
/// `NoHyphenation` implements `WordSplitter` by not splitting the
/// word at all.
... | Rust |
aryValue(0, 99, SDL_FALSE) returns 100<br/>
/// RandomUint32BoundaryValue(0, 0xFFFFFFFF, SDL_FALSE) returns 0 (with error set)<br/>
/// <br/>
/// <br/>
/// </summary>
public static uint TestRandomUint32BoundaryValue(uint boundary1, uint boundary2, SDLBool validDomain)
{
uint ret = TestRandomUint32Boundar... | C# |
be in the range 1024-2047 (incl.)
type EventType uint16
const (
CRASH EventType = 1024
CONFIG_CHANGE EventType = 1025
QUOTA_EXCEEDED EventType = 1026
)
var eventDescription = map[EventType]string{
CRASH: "Service crashed",
CONFIG_CHANGE: "Configuration changed",
QUOTA_EXCEEDED: "Request mem... | Go |
rrogate(zzBuffer[zzEndRead - 1])) {
--zzEndRead;
zzFinalHighSurrogate = 1;
}
}
/* potentially more input available */
return false;
}
/* numRead < 0 ==> end of stream */
return true;
}
/**
* Closes the input stream.
*/
public final void yyclos... | Java |
.fuse();
let log = slog::Logger::root(drain, o!("application" => application));
let this = Self {
_scope_guard: slog_scope::set_global_logger(log),
_log_guard: slog_stdlog::init().unwrap(),
};
... | Rust |
match &**decl {
Decl::FnDecl(fn_decl) => {
let idx =
compiler.scope.current_mut().set_symbol(
fn_decl.name.0.clone(),
fn_decl.to_type(),
);
let wasm_type_param... | Rust |
a:depends("jsonpath", "/usr/share/serverchan/api/qywx_markdown.json")
a = s:taboption("basic", Value, "userid", translate('帐号(userid)'))
a.rmempty = true
a.description = translate("群发到应用请填入 @all ")
a:depends("jsonpath", "/usr/share/serverchan/api/qywx_mpnews.json")
a:depends("jsonpath", "/usr/share/serverchan/api/qywx... | Lua |
drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});
onstart && eve.on("raphael.drag.start." + this.id, onstart);
onmove && eve.on("raphael.drag.move." + this.id, onmove);
onend && eve.on("raphael.drag.end." + this.id, onend);
... | JavaScript |
...
5f29a: 00 halt
5f29b: 00 halt
5f29c: 72 00 00 mnegd $0x0 [d-float],$0x0 [d-float]
5f29f: 00 halt
5f2a0: 71 00 00 cmpd $0x0 [d-float],$0x0 [d-float]
5f2a3: 00 halt
5f2a4: 36 00 00 00 cvtpl $0x0,$0x0,$0x0
5f2a8: 10 00 bsbb 5f2aa <op+0x4... | Assembly |
0-2])[0-5][0-9])) *AM|(((0?[1-9]|1[0-2]):[0-5]?[0-9])|((0[1-9]|1[0-2])[0-5][0-9])) *PM) *$','i');
// 12 hour format time strings for the autocomplete functionality
for(var i=0;i<24;i++)
for(var j=0;j<minelems.length;j++)
timelist.push((i==0 ? 12 : (i<13 ? i : i-12)).pad(2)+':'+minelems[j].pad(2)+(i<12 ? ' AM... | JavaScript |
return isValid(measuredNeutralFormula);
}
@Override
public boolean isValid(MolecularFormula measuredNeutralFormula, PrecursorIonType ionType) {
MolecularFormula compoundMF = ionType.measuredNeutralMoleculeToNeutralMolecule(measuredNeutralFormula);
if (!compoundMF.isAllPositiveOrZero... | Java |
not enough data"]
#[doc = " received, PROPERTY_LIST_SERVICE_E_RECEIVE_TIMEOUT when the connection times out,"]
#[doc = " PROPERTY_LIST_SERVICE_E_PLIST_ERROR when the received data cannot be"]
#[doc = " converted to a plist, PROPERTY_LIST_SERVICE_E_MUX_ERROR when a"]
#[doc = " commun... | Rust |
{content:'';content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;... | CSS |
folderInfo.attribute[i] = new FolderInfoAttribute();
folderInfo.attribute[i].name = themesInfoArr[i].LayerName;
if (themesInfoArr[i].ThemeArr !== null && themesInfoArr[i].ThemeArr.length > 0) {
var res = []; //new FolderInfoAttribute[themesInfoArr[i].ThemeArr.Length]... | JavaScript |
2) int {
return LexicographicalCompareThreeWayBy(first1, last1, first2, last2, __cmp[T])
}
// LexicographicalCompareThreeWayBy lexicographically compares two ranges [first1,
// last1) and [first2, last2) using three-way comparison. The result will be 0
// if [first1, last1) == [first2, last2), -1 if [first1, last1) <... | Go |
parameters
#[serde(flatten)]
pub custom_params: T,
}
// general parameters in response, encapsuled in ServerRawResponse
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "PascalCase")]
pub struct GeneralResponse<T> {
// request id is always required
request_id: String,
// error is not ... | Rust |
teLength);
return {
byteLength,
glTf: JSON.parse(decoder.decode(jsonChunkContent))
};
}
/**
* Loads glb binary buffer.
* Based on [Binary glTF Layout - Binary buffer](https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#binary-buffer)
*
* @param glb
* @param json
*/
const lo... | Typescript |
Z+UXinKlfJdey5uwTIXj0igjQ81e
I4WmQh7VsVbt5z8+DAP+7YdQMfm88iQXBefblFIBzHPtzPXSKrj+YN+rB/vDRWGe
7rafqqBrKWRc27Rq5iJ+xzJJ3Dztyp2Tjl8jSeZQVdaeaBmON4bPaQRtgKWg0mbt
aEjosRZNJv1nDEl5qG9XN3FC9zb5FrGSFmTTUvR4f4tUHr7wifNSS2dtgQ6+jU6f
m9o6fukaP7t5VyOXuV7FIO/Hdg2lqW+xU1LowZpVd6ANZ5rAZXtMhWe3+mjfFtju
TAnR
-----RAQ PREGVSVPNGR-----`... | Go |
/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL
/// on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.
/// </dd> <dt>RDS for Oracle</dt> <dd>
/// For information, see <a
/// href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracl... | Dart |
", "ShowModel", ms_showModel, "Show Leap Motion controller model").OnValueChanged += OnAnyEntryUpdate;
ReloadSettings();
}
public static void ReloadSettings()
{
ms_enabled = MelonLoader.MelonPreferences.GetEntryValue<bool>("LME", "Enabled");
ms_trackingMode ... | C# |
id.Errors?
function ChartdiffKey:validate()
return validate_chartdiff_key(self)
end
---@param key sea.ChartdiffKey
---@return boolean
function ChartdiffKey:equalsChartdiffKey(key)
return self:equalsChartmetaKey(key) and self:equalsChartdiffKeyPart(key)
end
---@param chartdiff_key sea.ChartmetaKey
function Chartdiff... | Lua |
version++;
bool computed_checksum_matches =
peer_checksum_value != "" && module_checksum.checksum == peer_checksum_value;
if (peer_checksum_epoch != 0 && computed_checksum_matches) {
module_checksum.epoch = peer_checksum_epoch;
} else {
module_checksum.epoch = new_epoch;
}
}
/**
* @brief Updates the globa... | C++ |
: CaptureManager | None,
formatter: Formatter,
level: int,
start: float | None,
) -> None:
self._reporter = reporter
self._capture_manager = capture_manager
self._formatter = formatter
self._level = level
self._start = start
def __call__(self, msg... | Python |
subj | [] |
| agarrou | verbo | agarrar | parataxis | [-, Ele, coisa, mão, depois, -] |
| aquela | determinante | aquele | det | [] |
| coisa | nome | coisa | obj | [aquela] |
| com | proposição | com | case | [] |
| a | determinante | o | det | [] |
| mão | nome | mão | obl | [com, a] |
| depois | advérbio | depois | ... | Markdown |
from django.contrib import admin
from shop.models import Category, Product, Commande
# Register your models here.
#custom admin side
admin.site.site_header = "ECOMMERCE"
admin.site.site_title = "SHOP"
admin.site.index_title = "Manager"
class AdminProduct(admin.ModelAdmin):
list_display = ('title', 'category', 'pri... | Python |
l.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.TAG_ID.FORM):r&&e.openElements.remove(r))}function $6(e){e.openElements.hasInButtonScope(l.TAG_ID.P)||e._insertFakeElement(l.TAG_NAMES.P,l.TAG_ID.P),e._closePElement()}function X6(e){e.openElements.hasInListItemScope(l.TAG... | JavaScript |
{
1,
0.000328,
-0.000501,
0,
-0.000327,
0.999998,
0.001963,
0,
0.000502,
-0.001963,
0.999998,
0,
-0.000162,
0.154359,
-0.120153,
1,
},
[1.1333333333333333] = {
1,
0.000175,
-0.000229,
0,
-0.000174,
0.999999,
0.001621,
0,
0.00023,
-0.001621,
0.999999,
0,
-0.000... | Lua |
"한국어"
},
{
"code": "kr",
"name": "Kanuri",
"native": "Kanuri"
},
{
"code": "ks",
"name": "Kashmiri",
"native": "कश्मीरी / كشميري",
"rtl": 1
},
{
"code": "ku",
"name": "Kurdish",
"native": "Kurdî / كوردی",
"rtl": 1
},
{
"code": "kv",
"name": "Komi",
... | JavaScript |
12
.word 0x8f932000 ! 1883: WRPR_TL_I wrpr %r12, 0x0000, %tl
.word 0xb20c0000 ! 1884: AND_R and %r16, %r0, %r25
.word 0xf4350000 ! 1887: STH_R sth %r26, [%r20 + %r0]
.word 0xfe750000 ! 1893: STX_R stx %r31, [%r20 + %r0]
.word 0xf8250000 ! 1896: STW_R stw %r28, [%r20 + %r0]
.word 0xfa34c000 ! 1897: STH_R st... | Assembly |
# coding=utf-8
import logging
import pickle
from functools import wraps
import redis
from webspider import setting
redis_pool = redis.ConnectionPool(host=setting.REDIS_CONF['host'],
port=setting.REDIS_CONF['port'])
redis_instance = redis.Redis(connection_pool=redis_pool)
def simpl... | Python |
🦼",16,52),
("👨🏻🦽",16,54),
("👨🏼🦽",16,55),
("👨🏽🦽",16,56),
("👨🏾🦽",17,0),
("👨🏿🦽",17,1),
("👨🏻⚕️",17,3),
("👨🏼⚕️",17,4),
("👨🏽⚕️",17,5),
("👨🏾⚕️",17,6),
("👨🏿⚕️",17,7),
("👨🏻⚖️",17,9),
("👨🏼⚖️",17,10),
("👨🏽⚖️",17,11),
("👨🏾⚖️",17,12),
("👨🏿⚖️",17,13),
("👨🏻✈️",17,15),
("👨🏼✈️",... | CSS |
#include "../nfc_magic_app_i.h"
void nfc_magic_scene_gen4_show_cfg_widget_callback(
GuiButtonType result,
InputType type,
void* context) {
NfcMagicApp* instance = context;
if(type == InputTypeShort) {
view_dispatcher_send_custom_event(instance->view_dispatcher, result);
}
}
void nfc_m... | C |
/*
* linux/arch/sh/boards/se/7300/irq.c
*
* Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
*
* SH-Mobile SolutionEngine 7300 Support.
*
*/
#include <linux/config.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/mach/se7300.h>
/*
* In... | C |
beq t0, t1, blocked_loop
nop
#endif
move s7, a1 # Store newthread
/*
* Switch to new context.
*/
GET_CPU_PCPU(a3)
PTR_S a1, PC_CURTHREAD(a3)
PTR_L a2, TD_PCB(a1)
PTR_S a2, PC_CURPCB(a3)
PTR_L v0, TD_KSTACK(a1)
#if defined(__mips_n64)
PTR_LI s0, MIPS_XKSEG_START
#else
PTR_LI s0, MIPS_KSEG2_START # If Uarea a... | Assembly |
#pragma once
#include <ctime>
namespace das {
struct Time {
time_t time;
Time() = default;
Time(int64_t t) : time(time_t(t)) {}
explicit operator int64_t () const {
return int64_t(time);
}
};
template <>
struct cast<Time> {
static __forcein... | C |
::Depth24Stencil8 => {
if params.sampler {
gl::FramebufferTexture2D(
gl::FRAMEBUFFER,
gl::DEPTH_STENCIL_ATTACHMENT,
gl::TEXTURE_2D,
id,
0,
);
... | Rust |
import time
from urllib.parse import urlparse, urljoin
import string
import random
import os,sys
def current_time():
current_time = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
return current_time
def write_log(logstr):
timestr = current_time()
logmsg = f"[{str(timestr)}]: {str(logst... | Python |
rowIdx].String()
}
} else {
// Fetch the primary index values from the secondary index row data,
// because no primary index was found. The secondary index columns
// are offset by the length of the distinct columns, as the first
// set of columns is for the primary index.
for rowIdx, col := range o.column... | Go |
come_shell);
share::SCN rec_scn(share::SCN::max_scn());
ret = tablet->get_mds_table_rec_scn(rec_scn);
ASSERT_EQ(OB_SUCCESS, ret);
ASSERT_FALSE(rec_scn.is_max());
}
TEST_F(TestEmptyShellHandler, migrate_transfer_out_deleted_tablet)
{
int ret = OB_SUCCESS;
// create tablet
const common::ObTabletID tablet_... | C++ |
rr(method='pearson')
user = pd.DataFrame(list(Myrating.objects.filter(user=request.user).values())).drop(['user_id','id'],axis=1)
user_filtered = [tuple(x) for x in user.values]
movie_id_watched = [each[0] for each in user_filtered]
similar_movies = pd.DataFrame()
for movie,rating in user_filtered... | Python |
toBe('tag');
expect(frag.first.nodes[2].raw).toEqualFrag({name: 'ul', attrs: {class: 'list'}});
});
describe('const', () => {
it('base', () => {
const frag = exilityParser('const value = 123 * 2 + "!"');
expect(frag.length).toBe(1);
expect(frag.first.raw).toEqualFrag({
name: 'const',
attrs: {
... | Typescript |
using GenShin_Launcher_Plus.Service.IService;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using System.Windows;
using GenShin_Launcher_Plus.ViewModels;
using GenShin_Launcher_Plus.Helper;
namespace GenShin_Launcher_Plus.Service
{
public class... | C# |
pxor %xmm2,%xmm2
pxor %xmm3,%xmm3
pxor %xmm4,%xmm4
pxor %xmm5,%xmm5
xorl %eax,%eax
popl %ebx
popl %ebp
ret
.align 2,0x90
L093bad_pointer:
movl $-1,%eax
popl %ebx
popl %ebp
ret
.align 2,0x90
L097bad_keybits:
pxor %xmm0,%xmm0
movl $-2,%eax
popl %ebx
popl %ebp
ret
.globl _aes_hw_set_encrypt_key
.private_... | Assembly |
import re
from typing import Dict, Any, List, Optional, Iterable
from langchain.base_language import BaseLanguageModel
from langchain.chains.base import Chain
from langchain.chains.llm import LLMChain
from langchain.prompts import BasePromptTemplate, PromptTemplate
from langchain.callbacks.manager import CallbackManage... | Python |
rn
}
func (me augmentationOperation) getCurPeersAndDone() (ret peerSet, done bool) {
select {
case ret = <-me.curPeers:
case <-me.doneAnnouncing:
ret = copyPeerSet(me.finalPeers)
done = true
}
return
}
// Adds peers from new that aren't in orig. Modifies both arguments.
func addMissing(orig []PeerInfo, new p... | Go |
using System;
using UnityEngine;
using UnityEngine.TextCore;
namespace TMPro
{
/// <summary>
/// The visual representation of the sprite character using this glyph.
/// </summary>
[Serializable]
public class TMP_SpriteGlyph : Glyph
{
/// <summary>
/// An optional reference to t... | C# |
.PhysicsLOD1Pointer);
this.PhysicsLOD2 = reader.ReadBlockAt<FragPhysicsLOD>(this.PhysicsLOD2Pointer);
this.PhysicsLOD3 = reader.ReadBlockAt<FragPhysicsLOD>(this.PhysicsLOD3Pointer);
//if (Unknown_04h != 1)
//{ }//no hit
//if (Unknown_08h != 0)
//{... | C# |
[r10, :64]
vshl.s8 d3, d1, d5 // L >> sharp[0]
.ifc \type, y
vtst.32 d15, d15, d16 // if (vmask[2] & bits)
.endif
vmov.i8 d7, #2
vmin.u8 d3, d3, d6 // imin(L >> sharp[0], sharp[1])
vadd.i8 d0, d1, d7 // L + 2
vmax.u8 ... | Assembly |
trace('OAMADDR write', hex(v))
OAMADDR = v
return
elseif i == OAMDATA_addr then
trace('OAMRW write '..hex(v)..' to OAM addr '..hex(OAMADDR))
poke(n9_OAM_addr + OAMADDR, v)
OAMADDR = u8(OAMADDR + 1)
return
elseif i == PPUScrollAddr then
trace('PPUScroll write', hex(v))
-- TODO FIXME
if PPUScrollReadX the... | Lua |
jector
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding.recyclerView.adapter = adapter
binding.recyclerView.layoutManager = LinearLayoutManager(this)
adapter.onItemClicked = {
actionCreator.showRepoDetailDialog(this, ownerName, it.name)
}
... | Kotlin |
(amikbd_dev, scancode, down);
}
input_sync(amikbd_dev);
} else /* scancodes >= 0x78 are error codes */
printk(amikbd_messages[scancode - 0x78]);
return IRQ_HANDLED;
}
static int __init amikbd_init(void)
{
int i, j, err;
if (!AMIGAHW_PRESENT(AMI_KEYBOARD))
return -ENODEV;
if (!request_mem_region(CIA... | C |
ext =
"""
FROM $baseImage
COPY resources $resourcesPath
RUN /bin/bash
""".trimIndent()
val some =
"""
some $foo test
$start another value
... | Kotlin |
rce_addr: Ipv4Addr,
dest_addr: Ipv4Addr,
source_port: u16,
dest_port: u16,
}
impl PartialEq for TCPSessionIdentifier {
/// It's the same session if 4 tuple is same/opposite.
fn eq(&self, other: &TCPSessionIdentifier) -> bool {
self.source_addr == other.source_addr
&& self.dest_a... | Rust |
#nullable enable
using StateSmith.Output;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
using StateSmith.Common;
using System;
namespace StateSmith.SmGraph.TriggerMap;
/// <summary>
/// Parses an trigger map like `ALL => *`.
/// https://github.com/StateSmith/StateSmith/is... | C# |
, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
self.w
}
}
impl R {
#[doc = "Bit 8 - If set, leapyear is forced off. Useful for years divisible by 100 but not by 400"]
#[inline(always)]
pub fn force_notleapyear(&self) -> FORCE_NOTLEAPYEAR_R {
... | Rust |
expected_sum = int(input())
payment = 0
card_sum = 0
cash_sum = 0
total_sum = 0
people_card = 0
people_cash = 0
while total_sum < expected_sum:
command = input()
if command == "End":
print(f"Failed to collect required money for charity.")
break
money = int(command)
payment += 1
... | Python |
/*
* Copyright(c) 2025 Samsung Electronics Co., Ltd.
*
* 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 ... | C# |
)
print("2. guardar nuevo contacto")
print("3. actualizar contacto")
print("4. eliminar contacto")
print("5. salir")
opciones = input("\nPor favor selecciona cual operacion deseas realizar: ")
match opciones:
case "1":
nombre = input(f"Ingresa el nombre del contacto. ")
i... | Python |
/*
* window-tracker-backend: Window tracker backend providing special functions
* for different windowing and clutter backends.
*
* Copyright 2012-2021 Stephan Haller <nomad@froevel.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | C |
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import pytest
from haystack.components.builders.chat_prompt_builder import ChatPromptBuilder
from haystack.components.converters import OutputAdapter
from haystack.components.joiners import StringJoiner
from ... | Python |
psis;white-space:nowrap;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.mdui-panel-item-arrow{position:absolute;top:12px;right:24px;color:rgba(0,0,0,.54);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .3s cubic-bezier(.4,0,.2,1);transi... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.