content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
from padHexToValue import padTo
from displayBits import getBits
from roundToEvenInt import roundEven
def output(n, e, d):
# convert to hex for display and pad to appropriate values
n, e, d = hex(n), hex(e), hex(d)
# pad to appropriate byte formats for display
n, e, d = padTo(n, roundEven(len(n) - 2)), padTo(e, 6... | Python |
4C 002A0821 */ addu $at, $at, $t2
/* 20C8B0 801E1D50 10000048 */ b .L801E1E74
/* 20C8B4 801E1D54 AC209FE0 */ sw $zero, %lo(D_800E9FE0)($at)
.L801E1D58:
/* 20C8B8 801E1D58 8E0B0000 */ lw $t3, 0x0($s0)
/* 20C8BC 801E1D5C 3C0F800E */ lui $t7, %hi(D_800E1B50)
/* 20C8C0 801E1D... | Assembly |
IsErrWillRetry(err))
expectedNext = now.Add(4 * initialRetryDelay)
assert.WithinDuration(t, expectedNext, mocked.NextRetry(), time.Millisecond)
// Call before time expiration
now = now.Add(4*initialRetryDelay - 1*time.Millisecond)
err = mocked.TriggerRetry()
assert.True(t, IsErrWillRetry(err))
assert.WithinDur... | Go |
{
dateFormat: 'yyyy-MM-dd',
extra: 0,
...options,
};
const [schedule, frequency, firstDelivery] = parseCommand(opts.command);
const date = DateTime.fromFormat(opts.strDate, opts.dateFormat);
const dates = DeliveryDates(date, schedule, frequency, firstDelivery, opts.extra);
return dates.map(d ... | Typescript |
/ AccountId::from(hex_literal::hex!("c225ec79661cdd770f68ae0047af6545fea12b77752aa2f314e0d8cc736b592a")),
// AccountId::from(hex_literal::hex!("<KEY>")),
// AccountId::from(hex_literal::hex!("04a8faeb34bbe3149737cee6c353aff5d607a7b3d297e17ad012d990d9b86771")),
// AccountId::from(hex_literal::hex!("e8e1289d24... | Rust |
lsTag Tag { get; set; }
}
private class ProductDetailsTag
{
public int Id1 { get; set; }
public int Id2 { get; set; }
public ProductDetails Details { get; set; }
public ProductDetailsTagDetails TagDetails { get; set; }
}
private class ProductDetailsTagDetails
... | C# |
DEPIN5_R = crate::pac::generic::R<bool, ENDEPIN5_A>;
impl ENDEPIN5_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ENDEPIN5_A {
match self.bits {
false => ENDEPIN5_A::DISABLED,
true => ENDEPIN5_A::ENABLED,
}
}
#[doc = "... | Rust |
local server = require('luatest.server')
local t = require('luatest')
local g = t.group()
g.before_all(function()
g.server = server:new({alias = 'datetime'})
g.server:start()
g.server:exec(function()
box.execute([[SET SESSION "sql_seq_scan" = true;]])
local fmt1 = {{'i', 'integer'}, {'dt',... | Lua |
ting.storage.FakeMechanism();
var clock = new goog.testing.MockClock(true);
var storage = new goog.storage.CollectableStorage(mechanism);
goog.storage.collectableStorageTester.runBasicTests(mechanism, clock,
storage);
}
// Copyright 2009 The Closure Library Authors. All Rights Reserved.
//
// Licensed unde... | JavaScript |
widget.lesson.homeworkEnabled ?
new FlatButton(
child: new Text(S.of(context).homework),
onPressed: () {
Navigator.of(context).pop();
return showDialog(
barrierDismissible: true,
context: context,
builder: (BuildContext ... | Dart |
// Fetch the Id.
mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::id, mId);
// If we have an Id, cache the Id as an atom.
if (!mId.IsEmpty()) {
mAtom = NS_Atomize(mId);
}
// Cache our index.
nsTreeUtils::GetColumnIndex(mContent, &mIndex);
const nsStyleVisibility* vis = frame->StyleVisibility();
/... | C++ |
// belongs).
buf_alloc: u32,
// Number of bytes the sender has received and consumed (for the connection to which this packet
// belongs). For instance, for our Unix backend, this counter would be the total number of bytes
// we have successfully written to a backing Unix socket.
fwd_cnt: u32,
... | Rust |
0.5-45.8-45.8-45.8c-25.3 0-45.8 20.5-45.8 45.8s20.5 45.8 45.8 45.8z"],reacteurope:[576,512,[],"f75d","M250.6 211.7l5.8-4.1 5.8 4.1-2.1-6.8 5.7-4.3-7.1-.1-2.3-6.8-2.3 6.8-7.2 .1 5.7 4.3zm63.7 0l5.8-4.1 5.8 4.1-2.1-6.8 5.7-4.3-7.2-.1-2.3-6.8-2.3 6.8-7.2 .1 5.7 4.3zm-91.3 50.5h-3.4c-4.8 0-3.8 4-3.8 12.1 0 4.7-2.3 6.1-5.8 ... | JavaScript |
D90D8)
/* 209EE4 801DF384 AF2A008C */ sw $t2, 0x8C($t9)
.L801DF388:
/* 209EE8 801DF388 8E080000 */ lw $t0, 0x0($s0)
/* 209EEC 801DF38C 3C0E800E */ lui $t6, %hi(D_800DFBD0)
/* 209EF0 801DF390 00002825 */ move $a1, $zero
/* 209EF4 801DF394 8D0C0000 */ lw $t4, 0x0($t0)
/* 209... | Assembly |
balance;
_balanceXmr = resXmr.right.balance;
} else {
handleApiError(resBtc.left, context);
}
}
Future getBtcFees({String? address}) async {
// reloadPaymentMethods = true;
loadingFees = true;
final res = await _walletService.getBtcFees(address);
loadingFees = false;
if (res... | Dart |
using LazyAPI.Attributes;
using LazyAPI.ConfigFiles;
namespace AdditionalPylons;
[Config]
internal class Configuration : JsonConfigBase<Configuration>
{
protected override string Filename => "AdditionalPylons";
[LocalizedPropertyName(CultureType.Chinese, "丛林晶塔数量上限")]
[LocalizedPropertyName(CultureType.E... | C# |
self.entries[index]
end
end
function ZO_CircularBuffer:Clear()
self.index = 0
self.entries = {}
end
function ZO_CircularBuffer:Size()
return #self.entries
end
function ZO_CircularBuffer:MaxSize()
return self.maxSize
end
function ZO_CircularBuffer:IsFull()
return self.maxSize == #self.entries... | Lua |
= true,
start_minimized = false,
text = T(9240, --[[PopupNotificationPreset Tutorial1_Popup5_UnloadRocket text]] "<goal>Place a Universal Depot near your Rocket."),
title = T(9238, --[[PopupNotificationPreset Tutorial1_Popup5_UnloadRocket title]] "Unloading the Payload"),
voiced_text = T(9239, --[[voice:narrator]] ... | Lua |
g>,
callback: Option<String>,
<<<<<<< HEAD
context: &C) -> Result<TestEndpointParametersResponse, ApiError>
{
let context = context.clone();
info!("test_endpoint_parameters({}, {}, \"{}\", {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", number, d... | Rust |
push(`"${k}": ${kvStrMap[k]}`)
}
} else {
maxKeyLen += 3; // "abc": -> "":
const headComma = !conf.tailComma;
for (let i = 0; i < keys.length; i++) {
const k = keys[i];
if (headComma && i === 0) {
const first = M... | Typescript |
ors.black : null,
gradient: isBlack
? null
: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomCenter,
colors: isDark
? [
const Color(0xFF152D57),
const Color(... | Dart |
ed
* promise.catch(badName => {});
* promise.then(undefined, badName => {});
*
* // ✅ Correct
* try {} catch (error) {}
* promise.catch(error => {});
* promise.then(undefined, error => {});
* try {} catch (_) { console.log(foo); } // `_` is allowed when it's not used
* try {... | JavaScript |
comeMessage = true;
Timer? loaderTimer;
DemoWindow() : super('Hello');
@override
void draw() {
super.draw();
if (loaderTimer != null) {
loaderTimer!.cancel();
}
if (showWelcomeMessage) {
writeCentered('Welcome!');
} else {
Console.centerCursor();
Console.moveToCol... | Dart |
line));
ASSERT_STRING_EQUAL(wktout, wkt);
lwfree(wktout);
lwline_free(line);
}
/*
** Used by the test harness to register the tests in this file.
*/
void ptarray_suite_setup(void);
void ptarray_suite_setup(void)
{
CU_pSuite suite = CU_add_suite("ptarray", NULL, NULL);
PG_ADD_TEST(suite, test_ptarray_append_p... | C |
it("is lazy with loads in same batch", async () => {
const loader = mock.fn(async keys => keys);
const batcher = new DataBatcher(loader);
const loadA = batcher.load(1);
const loadB = batcher.load(1);
expect(loadA).toBe(loadB);
await Promise.all([loadA, loadB]);
expect(loader).toHaveBeenCalledWith([1]);
}... | Typescript |
# @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_9:
.byte 1... | Assembly |
T);
};
}
}
import { Component, OnInit } from '@angular/core';
import { Movie } from '../models/Movie';
import { MoviesService } from '../services/movies.service';
@Component({
selector: 'app-movies',
templateUrl: './movies.component.html',
styleUrls: ['./movies.component.scss'],
})
export class MoviesComponen... | Typescript |
S_BIG.add(new Font(name, Font.BOLD, BIG_SIZE));
TYPES_HUGE.add(new Font(name, Font.BOLD, HUGE_SIZE));
}
}
}
package utils_use.logger;
import android.util.Log;
import dev.utils.app.logger.DevLogger;
import dev.utils.app.logger.LogConfig;
import dev.utils.app.logger.LogLevel;
import dev.utils.co... | Java |
4NTkgNC44OTc3OUM3LjkzOTcyIDUuNDk2NDcgOC4zNzk0NyA2LjIxMDMgOC42NTg1OSA3SDlDOS41ODc1MiA3IDEwLjE0NTUgNi44NzMzMyAxMC42NDggNi42NDU4MUMxMC4yMjc0IDUuMjc3NzIgOS40NDk3MyA0LjA2NTk2IDguNDIzODEgMy4xMTkyOEM5LjUyNDM5IDEuODIyNzUgMTEuMTY2MSAxIDEzIDFIMTVWM1oiIGZpbGw9IiMwMDAwMDAiLz4KPC9zdmc+");
}
/* - [p] Pros */
div.HyperMD-task-... | CSS |
"keywords": ["征集"],
"wiki_url": "https://thedream.feishu.cn/wiki/YIK6wvyxuiER1MkWDUjcv1WfnQb",
"as_subpage": True
},
{
"keywords": ["南门茶话会"],
"wiki_url": "https://thedream.feishu.cn/wiki/B3sUwGL9oiD6oNkTzzkcMm4fnKd"... | Python |
eturn this._targetRay;
},
getGripSpace: function () {
if ( this._grip === null ) {
this._grip = new Group();
this._grip.matrixAutoUpdate = false;
this._grip.visible = false;
}
return this._grip;
},
dispatchEvent: function ( event ) {
if ( this._targetRay !== null ) {
this._... | JavaScript |
oyProxy.(*appsv1.Deployment)
var replicas = r.Config.Spec.EnvoyProxy.Replicas
deployment.Spec.Replicas = &replicas
deployment.Spec.Selector = &metav1.LabelSelector{
MatchLabels: map[string]string{kubelb.LabelAppKubernetesName: appName},
}
deployment.Spec.Template = r.getEnvoyProxyPodSpec(namespace, appName... | Go |
d: expr.VerdictJump,
Chain: "leak-chain",
},
&expr.Verdict{
Kind: expr.VerdictReturn,
},
},
})
if err := conn.Flush(); err != nil {
return fmt.Errorf("Could not create base chain: %v", err)
}
packet_leak_path()
// Recover entries from set
elems, err := conn.GetSetElements(&leakSet)
if e... | Go |
BasedUserSecurity,
grantingPriviledges: Array<Privilege>): boolean {
let hasAccess = false;
const userPrivileges = roleSecurity.privileges;
for (const grantingPrivilege of grantingPriviledges) {
hasAccess = userPrivileges.includes(grantingPrivilege);
if (hasAccess) {
//if one match is found, we ... | Typescript |
uper
setWindowTitle "Toolbar"
init_ui
resize 250, 150
move 300, 300
show
end
def init_ui
newpi = Qt::Icon.new "new2.png"
openpi = Qt::Icon.new "open2.png"
quitpi = Qt::Icon.new "exit2.png"
toolbar = addToolBar "main toolbar"
t... | Markdown |
\001" +
"(\001\"a\n\035RollSitePullGetHeaderResponse\022@\n\006h" +
"eader\030\001 \001(\01320.com.webank.eggroll.core.tr" +
"ansfer.RollSiteHeader\"E\n%RollSitePullGet" +
"PartitionStatusRequest\022\013\n\003tag\030\001 \001(\t\022\017\n\007t" +
"imeout\030\002 \001(\001\"\240\006\n&Roll... | Java |
TestResultByTesterStaffId = (testResults: Map<string,ITestResult[]>, staffIds: string[]): Map<string, ITestResult> => {
const mostRecentTestResults = new Map<string, ITestResult>();
staffIds.forEach((id) => {
const mostRecentTestResult = maxBy(testResults.get(id), getTestResultEndDateTime) as ITestResult;
... | Typescript |
criptions that decribe a
* MAC with an embedded MDIO controller but have no "mdio"
* child node. Automatically scan the MDIO bus for available
* PHYs.
*/
priv->use_ncsi = false;
err = ftgmac100_setup_mdio(netdev);
if (err)
goto err_setup_mdio;
err = ftgmac100_mii_probe(netdev);
if (err) {
d... | C |
223aa84 - 2
.hword branch_223aa8c - Jumppoints_223aa84 - 2
.hword branch_223aa90 - Jumppoints_223aa84 - 2
.hword branch_223aa90 - Jumppoints_223aa84 - 2
.thumb
branch_223aa8c: @ 223aa8c :thumb
mov r0, #0x3
bx lr
@ 0x223aa90
.thumb
branch_223aa90: @ 223aa90 :thumb
cmp r1, #0x0
bne branch_223aa98
m... | Assembly |
sans-serif}.tk-intro:lang(ja){line-height:1.42863;font-family:"SF Pro JP","SF Pro Display","SF Pro Icons","Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3","メイリオ","Meiryo","MS Pゴシック","Helvetica Neue","Helvetica","Arial",sans-serif}.tk-intro:lang(ko){font-family:"SF Pro KR","SF Pro Display","SF Pro Icons","Apple Gothic","HY Gu... | CSS |
});
break;
case TypeLeafKind::LF_MFUNC_ID:
Refs.push_back({TiRefKind::TypeRef, 0, 2});
break;
case TypeLeafKind::LF_STRING_ID:
Refs.push_back({TiRefKind::IndexRef, 0, 1});
break;
case TypeLeafKind::LF_SUBSTR_LIST:
Count = support::endian::read32le(Content.data());
if (Count > 0)
... | C++ |
if (ret < 0)
return ret;
for (i = 0; i < num; i++) {
pmsg = &msgs[i];
if (i) {
ret = diolan_i2c_repeated_start(dev);
if (ret < 0)
goto abort;
}
ret = diolan_i2c_put_byte_ack(dev,
i2c_8bit_addr_from_msg(pmsg));
if (ret < 0)
goto abort;
if (pmsg->flags & I2C_M_RD) {
for (j = 0; ... | C |
= "",
type = 1,
title = "海空を切裂く",
condition = "「奔る彩帆の青」SP2開始",
story = "HUAPOHAIKONGZHIYI4",
id = 1389,
icon = "memory_huapohaikongzhiyi",
is_open = 0
},
[1390] = {
mask = "bg/bg_memory",
subtitle = "",
type = 1,
title = "迎え撃つ",
condition = "「奔る彩帆の青」SP2ボスに遭遇",
story = "HUAPOHAIKONGZHIYI5",
... | Lua |
\"))]
pub password: String,
#[validate(must_match = \"password\")]
pub password_confirmation: String,
}
#[derive(Serialize, Deserialize, FromForm)]
pub struct Login {
pub email: String,
pub password: String,
}
#[derive(Debug)]
pub struct CurrentUser(i32);
impl<'a, 'r> FromRequest<'a, 'r> for Curr... | Rust |
;cursor:grab}[dir=rtl] .owl-carousel.owl-rtl{direction:ltr}[dir=rtl] .owl-carousel.owl-rtl .owl-item{float:left}[dir=rtl] .no-js .owl-carousel{display:block}[dir=rtl] .owl-carousel .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}[dir=rtl] .owl-caro... | CSS |
ventListener("timeout",m),e.reportProgress&&(r.removeEventListener("progress",C),null!==o&&r.upload&&r.upload.removeEventListener("progress",F)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(te(AE))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const kx=new ye("XSRF_ENABLED... | JavaScript |
0);k.setEnd(c,3==c.nodeType?c.length:c.childNodes.length);h.addRange(k)}else h.selectAllChildren(c)}else if(k=c.ownerDocument.body.createTextRange(),k.moveToElementText(c),!e)try{k.select()}catch(n){}};
this.selectElement=function(c,e){c=y.byId(c);if(a.getSelection){var h=a.getSelection();var k=a.createRange();h.remove... | JavaScript |
32 = 0
resultMat4.m33 = cos
resultMat4.m34 = 0
break
}
case('z'):
case('Z'): {
resultMat4.m11 = cos
resultMat4.m12 = sin
resultMat4.m13 = 0
resultMat4.m14 = 0
resultMat4.m21 = -sin
resultMat4.m22 = cos
resultMat4.m23 = 0
... | Typescript |
",nil, {"Джорин Мертвый Глаз из Гарадара в Награнде просит вас убить 15 сокрушителей и 15 мистиков из клана Тяжелого Кулака."}},
[9907] = {"Дерзкий набег",nil, {"Джорин Мертвый Глаз из Гарадара в Награнде просит вас убить 25 воинов и 25 магов из клана Тяжелого Кулака."}},
[9910] = {"Страх и уважение",nil, {"Установите ... | Lua |
.97,56.17c-2.31,-0.35 -0.79,-1.58 0,0z M2.14,66.59c-1.38,-1.11 -0.95,-1.35 0.46,-0.36 -0.18,-0.08 -0.27,0.6 -0.46,0.36z m168.23,-6.32c-0.28,-1.85 2.85,0.02 0.03,0l-0.03,0z M7.85,51.96c-0.57,-0.92 1.55,0.27 0,0z m1.18,-1.63C7.41,50.26 7.17,48.77 8.95,49.87 10,50.07 10.77,49.96 9.03,50.33z M184.09,37.53c-0.77,-1.48 -1.43... | JavaScript |
0; j < 4; j++ {
if i != j {
msg := channel.TripleRatchetDecrypt(
generated.TripleRatchetStateAndEnvelope{
RatchetState: trs[peers[j].pubKeyB64].RatchetState,
Envelope: send.Envelope,
},
)
trs[peers[j].pubKeyB64].RatchetState = msg.RatchetState
if !bytes.Equal(msg.Message, [... | Go |
"Failed to process {Cinema} movie list.", _cinema);
return astorMovies;
}
}
[GeneratedRegex(@"Sprache:\s*(.*)\s*", RegexOptions.IgnoreCase, "de-DE")]
private static partial Regex SpracheRegex();
} | C# |
function PrepareZone(name, zone)
zone.height = zone.height or (Config?.Editor?.DefaultHeight or 2.0)
zone.altitude = zone.altitude or 0.0
zone.points, zone.triangles = Triangulate(zone.points or {})
zone.centroid = Centroid(zone.points)
zone.color = zone.color or {
outside = {255, 255, 0, 20... | Lua |
d(cors)
all_cors.append(cors)
test_df["correct"] = cors
for j in range(probs.shape[1]):
choice = choices[j]
test_df["choice{}_probs".format(choice)] = probs[:, j]
test_df.to_csv(
os.path.join(
args.save_dir,result_dir, f"{subject}.csv"... | Python |
ner,
tracks = tracks,
queueEntry = queueEntry,
url = url,
)
}
data class PlayableMediaStream(
override val identifier: String,
override val conversionMethod: MediaConversionMethod,
override val container: MediaStreamContainer,
override val tracks: Collection<MediaStreamTrack>,
val queueEntry: QueueEntry,
... | Kotlin |
ConnectFee: 12,
Rate: 3,
RateUnit: "4s",
RateIncrement: "6s",
GroupIntervalStart: "1s",
},
},
},
}
if err := tpRatesMigrator.storDBIn.StorDB().SetTPRates(tpRates); err != nil {
t.Error("Error when setting TpRate ", err.Error())
}
currentVersion :... | Go |
StepType::Activity || step.step_type == StepType::Timer
}
}
/// 并行优化器
pub struct ParallelOptimizer;
impl StepOptimizer for ParallelOptimizer {
fn optimize(
&self,
workflow: &WorkflowDefinition,
) -> Result<WorkflowDefinition, ConversionError> {
let mut optimized = workflow.clone()... | Markdown |
collapse-already-in-library': false,
'enhancement-hide-install-button': true,
}, ( items ) =>
{
if( ( items[ 'steamdb-last-update' ] || items[ 'online-stats' ] ) && !document.querySelector( '.game_area_dlc_bubble' ) )
{
DrawOnlineStatsWidget( items );
}
if( items[ 'steamdb-lowest-price' ] )
{
DrawL... | JavaScript |
namespace BossMod.Endwalker.Savage.P12S2PallasAthena;
// TODO: allow invulning instead
// TODO: not sure at what point target is snapshotted - assume first hit is on primary target when cast starts, second on current main target?..
class PalladianGrasp(BossModule module) : Components.CastCounter(module, default)
{
... | C# |
</a>)</small></td></tr></tbody></table>
Reverse Noise(同人社团,同人志社团) - Reverse Noise ,于 2003 年成立,主要制作 同人志 的日本同人社团,主催是 やむっ,当前状态为 活动
## 成员名单
- [やむっ](./やむっ.md)
: [Twitter: @yamu_RN](https://twitter.com/yamu_RN), [Pixiv ID: 23621](https://www.pixiv.net/users/23621)
## 作品列表
### 同人志
[](./Milky_Way(同人志).md)[Milky Way](./Mi... | Markdown |
.parseStanza(blockContactPushIQExample);
BlockContactsIQ blockContactIQ = (BlockContactsIQ) iq;
assertEquals(JidCreate.from("romeo@montague.net"), blockContactIQ.getJids().get(0));
assertEquals(JidCreate.from("pepe@montague.net"), blockContactIQ.getJids().get(1));
}
}
/*
*
* Copyright 201... | Java |
options: BundleProcessingOptions,
**kwd,
) -> str:
value_translation_by_data_table_column = bundle_description.value_translation_by_data_table_column
value = kwd.get(column_name)
if (
data_table_name in value_translation_by_data_table_column
and column_name in value_translation_by_dat... | Python |
:人力資源科技的演變 - 從紙質文件到AI驅動洞察**
人力資源技術的發展歷程為當前人才分析中的AI革命提供了背景:
1. **1960-70年代**:引入基本的電腦化系統用於工資和記錄保存。
2. **1980年代**:人力資源信息系統(HRIS)出現,用於更全面的員工數據管理。
3. **1990年代**:企業資源規劃(ERP)系統興起,將人力資源與其他業務功能整合。
4. **2000年代**:基於網絡的人力資源系統實現員工自助服務和更高效的人力資源流程。
5. **2010年代**:基於雲的人力資源平台和數據驅動的人力資源實踐開始受到重視。
6. **2020年起**:AI和機器學習開始將人力資源轉變為戰略性、... | Markdown |
abstract class Produto {
constructor(public nome: string,
public preco: number,
public desconto: number = 0.1,
private status: boolean = true) {
}
private calcularDesconto: () => number = () => this.preco * this.desconto
public aplicarDesconto: () => void = () => this.preco -= ... | Typescript |
import os
# Debug True/False
DEBUG = True
# Database connection
DATABASE = 'bombolone'
# ~
ENV = "home"
# ~
PATH = 'http://0.0.0.0:5000'
# ~
PATH_API = 'http://0.0.0.0:5000/api/1.0'
# ~
PATH_LAYOUT = 'http://0.0.0.0:5000/static/layout/'
# ~
PROJECT_DIR = os.path.dirname(__file__)
# ~
STATIC = os.path.join(PROJE... | Python |
tex_shader,
pub tex_rgbx: wlr_gles2_tex_shader,
pub tex_ext: wlr_gles2_tex_shader,
}
#[repr(C)]#[derive(Copy, Clone)]
pub struct C2RustUnnamed_2 {
pub program: GLuint,
pub proj: GLint,
pub color: GLint,
}
#[repr(C)]#[derive(Copy, Clone)]
pub struct C2RustUnnamed_3 {
pub program: GLuint,
pu... | Rust |
0 || runDif.g > 1.0, dbgNodeName, ST::format("Bad runtime color (g) on mat {}", name)).CheckAndAsk();
fErrorMsg->Set(runDif.b < 0.0 || runDif.b > 1.0, dbgNodeName, ST::format("Bad runtime color (b) on mat {}", name)).CheckAndAsk();
// Color col = dif - amb;
Color col = dif;
if( passBase->GetDiffuseColorL... | C++ |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2017 VMware, Inc. or its affiliates.
//
// @filename:
// CParseHandlerScalarArrayCoerceExpr.h
//
// @doc:
//
// SAX parse handler class for parsing ArrayCoerceExpr operator.
//
// @owner:
//
// @test:
... | C |
r second cache in group</li>
* <li>Load data for second cache in group</li>
* <li>Kill single node, delete index.bin, start node.</li>
* <li>Make sure that index rebuild count is in range of total new index size and 0 and decreasing</li>
* <li>Create index for new column in second ca... | Java |
ServerProt.LOC_MERGE
override fun encode(
buffer: JagByteBuf,
message: LocMerge,
) {
// The function at the bottom of the LOC_MERGE has a consistent order,
// making it easy to identify all the properties of this packet:
// loc_merge(level, x, z, shape, rotation, layer, ... | Kotlin |
很重要?有时,上传目录包含“特殊规则”。例如,我见过服务器管理员通过在
.htaccess
文件中配置特定目录来完全禁用 PHP 对特定目录的支持的情况。在这种情况下,我们应该尝试将“../”添加到我们的请求中,就添加在在文件名之前,并尝试将我们的 webshell 上传到服务器上的其他位置。

... | Markdown |
ontext, EarlyLintPass, LintContext};
use rustc_middle::lint::in_external_macro;
use rustc_session::{declare_tool_lint, impl_lint_pass};
declare_clippy_lint! {
/// **What it does:** Warns if a long integral or floating-point constant does
/// not contain underscores.
///
/// **Why is this bad?** Reading... | Rust |
[TestFixture]
[UseReporter(typeof(DiffReporter))]
public class LockDownTests
{
public string Echo(params int[] i) =>
i.ToReadableString();
[Test]
public void TestLockDown()
{
int[] n = [1, 2];
CombinationApprovals.VerifyAllCombinations((a, b, c, d, e, f, g, h, i) => Echo(a, b, ... | C# |
{
givenSuccessfulPhotosLoading(anyPhotos)
activityRule.launch()
RecyclerViewInteraction.onRecyclerView<Photo>(withId(R.id.photoList))
.withItems(anyPhotos)
.check { photo, view, e ->
matches(hasDescendant(withText("AuthorName${photo.id}"))).check(view, e)
}
}
@Test
... | Kotlin |
.kind(get_vdev_type(raid_name))
.health(health)
.disks(inner.map(get_disk_from_disk_line).collect())
.error_statistics(error_statics)
.reason(reason)
.build()
.expect("Failed to bu... | Rust |
いて、<a href="https://github.com/WICG/turtledove/issues">より多くのフィードバック</a>をお待ちしております。</td>
</tr>
<tr>
<td>prebid.js</td>
<td>FLEDGE で prebid.js をサポートする予定はありますか?</td>
<td>FLEDGE モジュールをサポートするのは、Prebid.js のバージョン 7.14 以降のみです。テストに関心のあるサイト運営者は、FLEDGE モジュールを追加し、Prebid インスタンスをアップグレードする必要があります。</td>
<... | Markdown |
':owner_id': ownerAddress },
ExpressionAttributeNames: { "#owner": "owner" }
};
const res = await this.dbClient.query(query).promise();
const addressList = res.Items as LinkAddress[];
return addressList.map(address => address.address);
}
async createAddress(linkaddr... | Typescript |
Common: TypeCommon{TypeName: "fs_opt[\"aname\", stringnoz]", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"aname"}, NoZ: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", Fld... | Go |
/*
* Copyright (C) 2001 MandrakeSoft S.A.
*
* MandrakeSoft S.A.
* 43, rue d'Aboukir
* 75002 Paris - France
* http://www.linux-mandrake.com/
* http://www.mandrakesoft.com/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | C |
Pokémon von deiner Hand spielst und auf deine Bank legst, kannst du dein Deck nach bis zu 3 Pokémon-EX (außer Hoopa-EX) durchsuchen, sie deinem Gegner zeigen und auf deine Hand nehmen. Mische anschließend dein Deck."
},
},
],
attacks: [
{
cost: [
"Psychic",
"Psychic",
"Psychic",
],
name:... | Typescript |
[2].GetInner())
br = ba.CreateReply()
br.Txn = ba.Txn
// No keys locked, no keys returned.
return br, nil
})
br, pErr = tp.SendLocked(ctx, ba)
require.Nil(t, pErr)
require.NotNil(t, br)
require.Equal(t, 0, tp.ifWrites.len())
require.Equal(t, 0, len(tp.lockFootprint.asSlice()))
// The second time it is... | Go |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComponentBind;
using Microsoft.Xna.Framework;
using Lemma.Util;
using System.Xml.Serialization;
namespace Lemma.Components
{
public class CameraController : Component<Main>, IUpdateableComponent
{
private Noise3D noise;
... | C# |
,"ProjectsDropdown|Sorry, no projects matched your search":["\u691c\u7d22\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f"],"ProjectsDropdown|This feature requires browser localStorage support":["\u3053\u306e\u6a5f\u80fd\u306b\u306f\u30... | JavaScript |
ror;
LIMIT(pid_output, 0, PID_MAX);
}
#else // PID_OPENLOOP
const float pid_output = constrain(temp_hotend[ee].target, 0, PID_MAX);
#endif // PID_OPENLOOP
#if ENABLED(PID_DEBUG)
if (ee == active_extruder) {
SERIAL_ECHO_START();
... | C++ |
OtherNianHaoStart: "泰始",
Dynasty: "南朝宋",
},
{
Year: 457,
Emperor: "宋孝武帝",
Nianhao: "大明",
Dynasty: "南朝宋",
},
{
Year: 454,
Emperor: "宋孝武帝",
Nianhao: "孝建",
Dynasty: "南朝宋",
},
{
Year: 424,
Emperor: "宋文帝",
OtherNianHaoStart: "元嘉",
... | Go |
nder the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.agent.resource.virtualnetwork.model;
import org.apache.cloudsta... | Java |
xOptions_Config_AnchorTo, settings.Anchor.to);
DL_Init_MenuControl(DAB_CBoxOptions_Config_TextAnchorPoint, settings.TextAnchor.point);
DL_Init_MenuControl(DAB_CBoxOptions_Config_TextAnchorTo, settings.TextAnchor.to);
DL_Init_MenuControl(DAB_CBoxOptions_Config_Font, settings.font);
DL_Init_MenuControl(DAB_CBoxOption... | Lua |
-header">
<h4>📋 Headers</h4>
<button type="button" id="rhino-addHeader" class="rhino-add-btn">+ Add</button>
</div>
<div id="rhino-headersContainer" class="rhino-headers-container"></div>
... | JavaScript |
P, 2 + BASE_SHIFT
add.d AO, AORIG, L
add.d BO, B, TEMP
#endif
#if defined(LN) || defined(LT)
LD b1, BO, 0 * SIZE
LD b2, BO, 1 * SIZE
LD b3, BO, 2 * SIZE
LD b4, BO, 3 * SIZE
SUB c11, b1, c11
SUB c21, b2, c21
SUB c31, b3, c31
SUB c41, b4, c41
#else
LD b1, AO, 0 * SI... | Assembly |
r"""##gues""": 21973,
r"""##zuka""": 21974,
r"""translating""": 21975,
r"""reacher""": 21976,
r"""##gley""": 21977,
r"""##ła""": 21978,
r"""aleppo""": 21979,
r"""##agi""": 21980,
r"""tc""": 21981,
r"""orchards""": 21982,
r"""trapping""": 21983,
r"""linguist""": 21984,
r"""versatile""": 21985,
... | Dart |
{
Uri selfLink;
Assert.True(client.TryGetUri(model, out selfLink));
client.UpdateObject(model);
var response = await client.SaveChangesAsync();
Assert.Equal(200, response.Single().StatusCode);
}
}
[Fact]
... | C# |
4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 ... | JavaScript |
standard Vmess URI string to parse
* @return the parsed ProfileItem object, or null if parsing fails
*/
fun parseVmessStd(str: String): ProfileItem? {
val allowInsecure = MmkvManager.decodeSettingsBool(AppConfig.PREF_ALLOW_INSECURE, false)
val config = ProfileItem.create(EConfigType.VMESS... | Kotlin |
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local App = Packages.UIBlox.App
local Images = require(App.ImageSet.Images)
local PrimaryContextualButton = require(App.Button.PrimaryContextualButton)
local PrimarySystemButton = require(App.Button.PrimarySystemBut... | Lua |
"
#include "caffe/util/math_functions.hpp"
namespace caffe {
SyncedMemory::SyncedMemory()
: cpu_ptr_(NULL), gpu_ptr_(NULL), size_(0), head_(UNINITIALIZED),
own_cpu_data_(false), cpu_malloc_use_cuda_(false), own_gpu_data_(false) {
#ifndef CPU_ONLY
#ifdef DEBUG
CUDA_CHECK(cudaGetDevice(&device_));
#endif
#endif
... | C++ |
referred_transactions.lock().unwrap();
let transaction_unreferred: Vec<String> = transaction_unreferred_
.iter()
.map(|h| h.to_string())
.collect();
drop(transaction_unreferred_);
// proposer number
let mut proposer_number: usize = 0;
let mut ... | Rust |
f)
case 't':
t.addToken(string(t.tmp))
}
t.starts = t.starts[:len(t.starts)-1]
t.handler.ArrayEnd()
t.exkey = 0 < len(t.starts) && t.starts[len(t.starts)-1] == objectStart
t.mode = valueMap
case numDot:
if 0 < len(t.num.BigBuf) {
t.num.BigBuf = append(t.num.BigBuf, b)
t.mode = dotMap
... | Go |
iew = new UIView (new RectangleF (0, 0, 200, 200)) {
AutoresizingMask = UIViewAutoresizing.All
};
// Creating the background
var imgView = new UIImageView (new RectangleF (-20, -90, 240, 380)) {
Image = UIImage.FromBundle ("page"),
ContentMode = UIViewContentMode.Center
};
it... | C# |
// They are added manually by the passport framework.
//
/**
* Authenticate `user`, with optional `info`.
*
* Strategies should call this function to successfully authenticate a
* user. `user` should be an object supplied by the application after it
* has been given an opportunity to verify cred... | Typescript |
loss_fn(config)
print("Put model on device")
model = model.to(device)
print("Initialize labels")
if config['dataset'] == 'temca':
labels = torch.cat([x[1].unsqueeze(0).to('cpu') for x in iter(dataset)], dim=0)
outputs = torch.cat([model(x[0].unsqueeze(0).to(device)).to('cpu') for x in iter(d... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.