content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
);
}
@Test
public void run4() throws Throwable {
runTest("test", 4);
}
}
/*
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify i... | Java |
y)(s),d=r.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRout... | JavaScript |
0,0,0.05);box-shadow:0 2px 3px rgba(0,0,0,0.05);font-size:13px;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}.v-cal-button.is-rounded{border-radius:4px}.v-cal-button.v-cal-button--is-active{background-color:#fff;color:#3B86FF}.v-cal-button:hover{color:#3B86FF;background-color:#fcfcfc}.v-cal-bu... | CSS |
ELLATION),
/**
* Marks a request as a one doesn't suspend and returns a flow.
*/
NON_SUSPENDING_SERVER_FLOW_MARKER(5, KrpcPlugin.NON_SUSPENDING_SERVER_FLOWS),
/**
* Represents the update to the window size from the peer endpoint.
*/
WINDOW_UPDATE(6, KrpcPlugin.BACKPRESSURE),
/... | Kotlin |
a])}return e},l=e("create-react-class"),n=e("prop-types"),r=e("react"),c=e("./touchStyles");s.exports=function(e){return l({displayName:"Tappable",mixins:e,propTypes:{component:n.any,className:n.string,classBase:n.string,classes:n.object,style:n.object,disabled:n.bool},getDefaultProps:function(){return{component:"span"... | CSS |
as to be the first element to be stored
ar << _pageType;
ar.flush();
int floatViewsNotToSaveCnt = 0;
for (size_t i = getRegularViewCount(); i < _allViews.size(); i++)
{
if (_allViews[i]->getDoNotSaveFloatingView())
floatVie... | C++ |
Ω(n log(n))` | `Θ(n log(n))` | `O(n log(n))` |
[See example](https://github.com/khusnetdinov/ruby.fundamental/blob/master/algorithms/sort/merge.rb) | [Read wiki](https://en.wikipedia.org/wiki/Merge_sort)
#### Quick sort
When carefully implemented, quick sort is robust and has low overhead. When a stable sort is not ... | Markdown |
# logical operators (abd, or, not) = used to check if two or more conditional are true
temp = int(input("What is the temperature outside?: "))
if not(temp >= 0 and temp <= 30):
print("The temperature is bad today!")
print("Stay insside brrrrrr!")
#print("The temperature is good today!")
#rint("Go out... | Python |
: <Widget>[
Row(
children: <Widget>[
InkWell(
onTap: entity.committer == null ? null : () {
Navigator.pushNamed(
context, ProfilePage.ROUTE_NAME,
arguments: ProfilePageArgs(
... | Dart |
.focus()
addAriaPressed = false
}
}
if (addAriaPressed) {
this._element.setAttribute('aria-pressed',
!this._element.classList.contains(ClassName.ACTIVE))
}
if (triggerChangeEvent) {
$(this._element).toggleClass(ClassName.ACTIVE)
}
}
di... | JavaScript |
Err(_) => None,
};
Ok(Expression::If(test, csq, alt))
}
fn analyze_cond(exprs: List) -> Result<Expression, Error> {
let mut clauses = Vec::new();
let mut else_clause = None;
let mut next = exprs;
while let Ok((car, cdr)) = next.unpack() {
if let Ok((test, body)) = car.list()?.unpack() {... | Rust |
title: "Search for tag",
command: 'noteSearcher.searchForTag',
arguments: [this.name]
};
}
const LOCALSTORAGE_CART_NAME = 'cart';
export const addItem = (item: any, next: any) => {
let cart: any = [];
if (typeof window !== 'undefined') {
// get item from local storage
if (localStorage.getI... | Typescript |
#ifndef xSlicerInterpreter_h
#define xSlicerInterpreter_h
//#include <xeus/xinterpreter.hpp>
#include <xeus-python/xinterpreter.hpp>
#include <QStringList>
//using xpyt::interpreter;
class qSlicerJupyterKernelModule;
class xSlicerInterpreter : public xpyt::interpreter
{
public:
xSlicerInterpreter();
vir... | C |
0, 0, 0, 0.175);
box-sizing: content-box;
overflow: initial;
}
.e-popup.e-multi-select-list-wrapper .e-list-item.e-active {
border-bottom: 1px solid transparent;
border-left: 1px solid rgb(117, 117, 255);
border-right: 1px solid rgb(117, 117, 255);
border-top: 1px solid #142f46;
}
.e-popup.e-multi-select-... | CSS |
to hide this note.
///
String? workingDir;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ExecConfig &&
other.attachStdin == attachStdin &&
other.attachStdout == attachStdout &&
other.attachStderr == attachStderr &&
_deepEqual... | Dart |
StoreTypeEnum, percentile: Double): Double {
var value = 0.0
// 获取组件类型的总数
val count = storeStatisticTotalDao.getCountByType(dslContext, storeType)
// 计算出要查找的百分位索引
val index = (count + 1) * percentile
if (index >= 1) {
value += storeStatisticTotalDao.getStoreP... | Kotlin |
std::vector<std::string> TargetLibRegistry::checkBitcodeLibs() const {
std::vector<std::string> missedFiles = {};
if (!g->isSlimBinary) {
return missedFiles;
}
for (ISPCTarget target = ISPCTarget::sse2_i32x4; target < ISPCTarget::error; target++) {
for (TargetOS os = TargetOS::windows; ... | C++ |
Obj.getBlock(xCoord + dir.offsetX, yCoord, zCoord + dir.offsetZ).isReplaceable(worldObj, xCoord + dir.offsetX, yCoord, zCoord + dir.offsetZ)) {
worldObj.setBlock(xCoord + dir.offsetX, yCoord, zCoord + dir.offsetZ, ModBlocks.gas_radon_dense);
}
}
}
if("oreAsbestos".equals(name)) {
for(int j ... | Java |
def dump_to_str(self, obj, **kwargs):
kwargs.setdefault('Dumper', Dumper)
return yaml.dump(obj, **kwargs)
| Python |
-v12.0-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/releases) -->
Irisは、高速でシンプルでありながら、十分な機能を備えた、非常に効率的なGo用Webフレームワークです。
あなたの次のウェブサイトやAPIのために、美しく表現力豊かで使いやすい基盤を提供します。
[Irisについての他の人々の意見](https://www.iris-go.com/#review)を学び、このオープンソースプロジェクトに **[スターをつけて](https://github.com/kataras/iris/stargazers)** 、そ... | Markdown |
transform: rotateY(0deg) }
to { transform: rotateY(360deg) }
}
/* This is a compiled file, to make changes persist, consider editing under the templates directory */
.pace {
-webkit-pointer-events: none;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
z-index:... | CSS |
y;var I=r.getUint8(0);if(w++,y.encoding=63&I,y.encoding>3)throw"Invalid block encoding ("+y.encoding+")";if(2!==y.encoding){if(0!==I&&2!==I){if(I>>=6,y.offsetType=I,2===I)y.offset=r.getInt8(1),w++;else if(1===I)y.offset=r.getInt16(1,!0),w+=2;else{if(0!==I)throw"Invalid block offset type";y.offset=r.getFloat32(1,!0),w+=... | JavaScript |
,
[39301] = "佐尔玛兹要塞宝箱",
[39302] = "企鹅雕文",
[39303] = "迅捷飞毯",
[39304] = "自然力量雕文",
[39305] = "蒂基妖术消除棒",
[39306] = "抚慰板甲手套",
[39307] = "耐久铁戒",
[39308] = "仁慈束带",
[39309] = "教官的护腿",
[39310] = "开拓思绪衬肩",
[39311] = "低语幽魂权杖",
[39312] = "Monster - Sword2H, Ragglesnout X'Caliboar (High Red Flame)",
[39313] = "亚拉的剑",
[39314] = "蒂基面... | Lua |
ight: 4px;
border-radius: 3px;
}
._3DeO92O5aVkcdwEBCJDjWm._3fLo166MlaNqP8r8tTyRz {
background: unset !important;
margin-bottom: 0;
}
._3Y87YQY56ZCOqhgcZFaDc5 {
padding: 12px;
border-radius: 8px;
background-color: rgb(var(--st-color-2));
}
/*
! Play/Install/... button
*/
._1FnJ6dPuknQFQ2RTp... | CSS |
ndow is closed
done = true;
}
if(Keyboard.isKeyDown(Keyboard.KEY_F1) && !f1) { // Is F1 Being Pressed?
f1 = true; // Tell Program F1 Is Being Held
switchMode(); // Toggle Fullscreen / Windowed M... | Java |
return
}
// Strip markdown characters
const oldContent = oldMessage.content.replace(/\*|~|_|\||`/g, '')
const updatedContent = newMessage.content.replace(/\*|~|_|\||`/g, '')
// Get the difference between the two messages
const changes = await diffWords(oldC... | Typescript |
induction variable increments. This has to be
/// reevaluated. Generally, IV scheduling should be done before coalescing.
void ScheduleDAGInstrs::addVRegDefDeps(SUnit *SU, unsigned OperIdx) {
const MachineInstr *MI = SU->getInstr();
unsigned Reg = MI->getOperand(OperIdx).getReg();
// Singly defined vregs do not... | C++ |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* button.c :+: :+: :+: ... | C |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* This program 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 Software Foundation; either version 2 of the License, or
* (at your o... | C |
?.any { annotation -> annotation.text.trim('"') == name }
?: false)
}
private fun ASTNode.findOffsetByLine(line: Int, positionByOffset: (Int) -> Pair<Int, Int>): Int {
val currentLine = this.getLineNumber()
val currentOffset = this.startOffset
var forwardDirect... | Kotlin |
= 0.5
}
)
}
},
{
type = "corpse",
name = "cryogenic-plant-remnants",
icon = "__space-age__/graphics/icons/cryogenic-plant.png",
flags = {"placeable-neutral", "not-on-map"},
hidden_in_factoriopedia = true,
subgroup = "production-machine-remnants",
order = "i[cryogenic-plant]... | Lua |
if(!file.getParentFile().exists()){
file.getParentFile().mkdirs();
}
FileCopyUtils.copy(invotebg.getBytes(), file);
tempInviteData.setConsult_invite_bg(fileName);
}
invite.save(tempInviteData) ;
inviteData = tempInviteData ;
}
}else{
... | Java |
+) {
Arrays.fill(dp[f], 0);
}
dp[st][0] = 1;
dp[st][1] = 0;
while(st != ed){
st = (st+1) % len;
if(s[st] == s[(st-1+len) %len]) {
dp[st][0] = dp[ (st-1 + len) %len][0] + dp[(st-1+len) %len][1];
dp[st][1] = 0;
}else if(s[st] == s[(st-1+len) %len] + 1) {
... | Java |
s;
return qr;
}
/// Rotate a vector
#if AGGRESSIVE_INLINING
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#endif
public static b2Vec2 b2Mul(b2Rot q, b2Vec2 v)
{
b2Vec2 b;
b.x = q.c * v.x - q.s * v.y;
b.y = q.s * v.x + q.c * v... | C# |
的社区,同时又能取得商业上的成功(我认为这对整个项目的成功是必要的,因为钱必须来自某处),**那么预先考虑如何将核心层和商业层分开是极其重要的**。这样做的实用性和策略会因项目和技术的不同而不同,但我相信专注于强大的 API / 扩展性的分割是一个富有成效的策略。
### 基金会是很棘手的
在现代的开源讨论中,有很多关于基金会的作用的讨论。我不打算对这一话题做大量的评论,**但我的主要建议是不要被基金会和它们可能提供的理论利益所干扰**。相反,要积极地关注产品的市场适应性,生产高质量的软件,并为用户提供价值。如果这些事情得以实现,其余的事情就会自然而然地发生。
对于非常成功的项目来说,基金会,更确切地说,中立的商标持有地,是非... | Markdown |
56(84) bytes of data.
64 bytes from 100-42-212-8.static.webnx.com (100.42.212.8): icmp_seq=1 ttl=50 time=177 ms
64 bytes from 100-42-212-8.static.webnx.com (100.42.212.8): icmp_seq=2 ttl=50 time=178 ms
64 bytes from 100-42-212-8.static.webnx.com (100.42.212.8): icmp_seq=3 ttl=50 time=174 ms
64 bytes from 100-42-212-8.... | Markdown |
cli_keybinding"`
P interface{} `json:"default_ptime"`
}{S: resp1.Data, C: resp2.Data, P: resp3.Data}}
//Request:{"event":"UpdatePostSwitchParameter","data":{"token":"3c2f3200f73699a28c96783a15dff1d7","param":{"id":6,"enabled":true}}}
//Response:{"MessageType":"UpdatePostSwitchParameter","data":{"id":6,"position"... | Go |
ot0.miniGameHubDataDic[slot3] = MiniGameHubData.New({
id = slot3
})
end
return slot0.miniGameHubDataDic[slot3]
end
function slot0.UpdataHubData(slot0, slot1)
slot3 = slot0:GetHubByHubId(slot1.id)
slot3:UpdateData(slot1)
slot0.facade:sendNotification(uv0.ON_HUB_DATA_UPDATE, slot3)
end
function slot0.Reques... | Lua |
(minEpochPeriod, common.Big1))
require.Error(r.T, err)
require.Equal(r.T, "execution reverted: epoch period is too small", err.Error())
r.NoError(
r.Autonity.SetEpochPeriod(r.Operator, minEpochPeriod),
)
})
RunWithSetup("voting period respects both current and new epoch period", setup, func(r *Runner) {
... | Go |
.s16 q11, q11, q5
.if \ox || \oy
vpop {q6-q7}
.endif
vqadd.s16 q0, q0, q8 // *src + noise
vqadd.s16 q1, q1, q9
vqadd.s16 q2, q2, q10
vqadd.s16 q3, q3, q11
vmax.s16 q0, q0, q14
vmax.s16 q1, q1, q1... | Assembly |
using NUnit.Framework;
using Rubberduck.CodeAnalysis.Inspections.Concrete;
using Rubberduck.CodeAnalysis.QuickFixes;
using Rubberduck.CodeAnalysis.QuickFixes.Concrete;
using Rubberduck.Parsing.VBA;
namespace RubberduckTests.QuickFixes
{
[TestFixture]
public class RemoveExplicitCallStatementQuickFixTests : Qui... | C# |
invalidInput = (): void => {
throw new Error("Invalid input DNA.");
};
toRna = (strand: string): string =>
strand
.split("")
.map((n) => this.transcription[n] || this.invalidInput())
.join("");
}
type Transcription = {
[key: string]: string;
};
import { FieldExpressionEntry, isFieldExp... | Typescript |
t { get } from 'lodash';
import { basename, dirname, join } from 'path';
import * as fs from 'fs';
const exiftool = new ExifTool();
const makeAllDirsInPath = promisify(mkdirp);
export const getAllFiles = (dir: string, ignore: string[] = []) => {
return fs.readdirSync(dir).reduce((files, file) => {
// if (junk.... | Typescript |
data keys themselves, using a customer
/// master key (CMK), and then stores the encrypted data keys alongside your
/// encrypted content. Use this setting to specify which AWS service manages the
/// CMK. For simplest set up, choose Amazon S3. If you want your master key to
/// be managed by AWS Key Managemen... | Dart |
,0,0,.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(0,0,0,.25)}.slicknav_menu:after,.slicknav_menu:before{content:" ";display:table}.slicknav_menu:after{clear:both}.slicknav_nav li,.slicknav_nav ul{display:block}.slicknav_nav .slicknav_arrow{font-size:.8em;margin:0 0 0 .4em}.slicknav_nav .slicknav... | CSS |
Range(range: IntRange) = this.apply { this.shouldNotBeInRange(range.first, range.last) }
infix fun <T : Comparable<T>> T.shouldNotBeInRange(range: ClosedFloatingPointRange<T>) =
this.assertIsNotInFloatingRange(range)
infix fun <T : Comparable<T>> T.shouldNotBeInRange(range: ClosedRange<T>) = this.assertIsNotInFlo... | Kotlin |
OST "http://localhost:8000/auth/login" \
-d "username=user@example.com&password=yourpassword"
```
- Response: `{"access_token": "your-jwt-token", "token_type": "bearer"}`
- **Protected Endpoints**: Include the JWT in the `Authorization` header:
```
Authorization: Bearer your-jwt-token
```
### Roles
... | Markdown |
Null(xsB)
assertNotNull(ysA)
assertNotNull(ysB)
}
@Test
fun guideSmoothGatherGroupedDataIntoDF() {
// SampleStart
// Gather them into `DataFrame` with "A" and "B" keys in "category" column
val valuesDF = dataFrameOf(
"time" to xsA + xsB,
"valu... | Kotlin |
jquery object
each($collection, function( el, i ) {
// This works because the transition-property: transform, opacity;
el.style[ TRANSITION_DELAY ] = '0ms,' + ((i + 1) * this.sequentialFadeDelay) + 'ms';
}, this);
};
Shuffle.prototype._getItems = function() {
return this.$el.children( this.itemSelector... | JavaScript |
fileNeedsPassword(XFile file) async {
try {
final Map<String, dynamic> json = jsonDecode(await file.readAsString()) as Map<String, dynamic>;
return json['servicesEncrypted'] != null;
} catch (e) {
return false;
}
}
Future<List<ProcessorResult<Token>>> processEncryptedFile({String? js... | Dart |
this.blockState.getBaseState().withProperty(VARIANT, BlockStone.EnumType.STONE));
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
/**
* Gets the localized name of this block. Used for the statistics page.
*/
public String getLocalizedName()
{
return I18n.translateToLocal(... | Java |
{
reportAnalog=0x00;
}
else
{
reportAnalog=0xFF;
}
return;
}
}
//finally, this could be a "/pinmode/ message"
if(strncmp(msg,prefixPinmode,strlen(prefixPinmode))==0)
{
outPin = atoi(msg+strlen(prefixPinmode));
if(outPin>=FIRST_DIGITAL_P... | C++ |
m.fluffy.global.exception.ForbiddenException
import com.fluffy.global.exception.NotFoundException
import com.fluffy.global.response.PageResponse
import com.fluffy.global.web.Accessor
import com.fluffy.reaction.domain.Like
import com.fluffy.reaction.domain.LikeQueryService
import com.fluffy.reaction.domain.LikeTarget
im... | Kotlin |
=> [@"c"]},
"body" => (++ true {"Expr" "struct_expr":
"component_name" => [@"c"], "component" => [@"c"]})}),
env.clone(),
qenv.clone(),
ast!({"Type" "type_apply" :
"type_rator" => (,expr_type.clone()), "arg" => [{ "Type" "struct" :
... | Rust |
instead. */
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String> getLabels();
/**
*
*
* <pre>
* Optional. The labels with user-defined metadata for the request.
*
* Label keys and values can be no longer than 63 characters
* (Unicode codepoints), can only contain lowercase... | Java |
tils/dio_client/cus_http_request.dart';
import '../../../../models/life_tools/food/nutritionix/nix_natural_exercise_resp.dart';
import '../../../../models/life_tools/food/nutritionix/nix_natural_nutrient_resp.dart';
import '../../../../models/life_tools/food/nutritionix/nix_search_instant_resp.dart';
import '../../../g... | Dart |
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun sliding_isCorrect() {
val offsetY = 10f
val itemHeight = 100f
val offsetToSlide = 10f
va... | Kotlin |
`a < const / a` ~~> `ite(a == 0, false, a < sqrt(const))` ~~> `a!=0 && a < sqrt(const)`
*/
PatternHandler(
name = "sqrtByDiv4",
pattern = {
lSym256(A) symmLt (c(C1) / lSym256(B))
},
handle = {
runIf(src(A) == src(B) && C1.n >= BigInteger.ZERO) {
... | Kotlin |
/* Pagination centred wrapper */
.pagination-centered {
@include pagination-container(true);
ul.pagination {
@include pagination(true, false);
}
}
}
}
// Foundation by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source
@import "global";
@import "buttons";
//
// @vari... | CSS |
}
._2KhPXikozxMpbIRo_6jPxW ._21WhTy6kEJ0Jjogpkqw-u3 {
position: absolute;
opacity: 0.45;
font-size: 9px;
right: 4px;
bottom: 4px;
}
._2KhPXikozxMpbIRo_6jPxW ._21WhTy6kEJ0Jjogpkqw-u3._3FZukK3yuHnaZ_X3yujMNS {
top: 4px;
}
._2KhPXikozxMpbIRo_6jPxW ._21WhTy6kEJ0Jjogpkqw-u3._1lPIY112HFrhgxudf9wTOJ {
opacity: 0... | CSS |
urn value.replace(/,/g, '.').replace(/\s/g, '').replace(/%/g, '');
};
export const getFloatFromString = (value: string | undefined): number | undefined => {
if (value !== undefined && value !== null && value.length > 0 && numberRegExp.test(value)) {
const trimmedValue = trimNumberValue(value);
cons... | Typescript |
&RefCell<Box<FnMut(&T, &FrameClock) -> Continue + 'static>> = transmute(func);
(&mut *func.borrow_mut())(
&Widget::from_glib_borrow(this).downcast_unchecked(),
&from_glib_borrow(frame_clock)
).to_glib()
}
unsafe extern "C" fn destroy_closure<T>(... | Rust |
× [0.3] HIRAGANA LETTER SMALL A (CJ_NS) × [9.0] COMBINING DIAERESIS (CM1_CM) × [13.03] SOLIDUS (SY) ÷ [0.3]
× 3041 × 0308 × 0020 × 002F ÷ # × [0.3] HIRAGANA LETTER SMALL A (CJ_NS) × [9.0] COMBINING DIAERESIS (CM1_CM) × [7.01] SPACE (SP) × [13.02] SOLIDUS (SY) ÷ [0.3]
× 3041 × 2060 ÷ # × [0.3] HIRAGANA LETTER SMALL ... | Dart |
xor <x1=%rdx,<x2=%rcx
xor %rdx,%rcx
# qhasm: x3 ^= x2
# asm 1: xor <x2=int64#4,<x3=int64#6
# asm 2: xor <x2=%rcx,<x3=%r9
xor %rcx,%r9
# qhasm: r36 = x0
# asm 1: movq <x0=int64#2,>r36=stack64#44
# asm 2: movq <x0=%rsi,>r36=344(%rsp)
movq %rsi,344(%rsp)
# qhasm: r37 = x1
# asm 1: movq <x1=int64#3,>r37=stack64#45
... | Assembly |
l2)
out[15] = byte(t.l2 >> 8)
out[16] = byte(t.l2 >> 16)
out[17] = byte(t.l2 >> 24)
out[18] = byte(t.l2 >> 32)
out[19] = byte(t.l2 >> 40)
out[20] = byte(t.l2 >> 48)
out[21] = byte(t.l3)
out[22] = byte(t.l3 >> 8)
out[23] = byte(t.l3 >> 16)
out[24] = byte(t.l3 >> 24)
out[25] =... | Go |
ow.com/q/44313966">C xtest emitting key presses for every Unicode character</a>
*/
private static void sendTextViaX11(String text) throws LinuxException {
if (StringUtils.isEmpty(text))
return;
if (X11 == null)
throw new LinuxException("X11 library was not loaded.");
... | Java |
hObjConn::find_relation(node, MeshObj::ELEMENT);
while (el != node.Relations.end() && el->obj->get_type() == MeshObj::ELEMENT){
MeshObj &elem=*(el->obj);
// Loop sides
const MeshObjTopo *etopo = GetMeshObjTopo(elem);
for (UInt s = 0; s < etopo->num_sides; s++) {
... | C |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import re
import time
from urllib.parse import urljoin, urlparse, parse_qs
import json
def test_with_proxy():
"""使用代理测试登录流程"""
print("=== 使用代理测试登录流程 ===")
# 方法1: 使用不同的请求头
print("\n方法1: 使用不同的请求头...")
# 创建全新的会话,使用不同的请求头
ses... | Python |
Operator.LEFT_SHIFT_SINCE, BitwiseOperator.TYPE_ID, keyWordsList);
addKeyWord(BitwiseOperator.RIGHT_SHIFT_STR, BitwiseOperator.RIGHT_SHIFT_DESC, BitwiseOperator.RIGHT_SHIFT_ID, BitwiseOperator.RIGHT_SHIFT_SYN, BitwiseOperator.RIGHT_SHIFT_SINCE, BitwiseOperator.TYPE_ID, keyWordsList);
addKeyWord(... | Java |
26.459.059.899-.426.981-1.08.084-.655-.221-1.232-.681-1.291m7.752 4.237c-.208-2.109 1.813-3.384 1.813-3.384-1.064-.135-2.269.827-2.431 2.105-.111.886.618 1.279.618 1.279"/></svg>';
static const String person_bowing =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" ... | Dart |
.46);
@ease-out-circ : cubic-bezier(0.08, 0.82, 0.17, 1);
@ease-in-circ : cubic-bezier(0.6, 0.04, 0.98, 0.34);
@ease-in-out-circ : cubic-bezier(0.78, 0.14, 0.15, 0.86);
@ease-out-quint : cubic-bezier(0.23, 1, 0.32, 1);
@ease-in-quint : cubic-bezier(0.755, 0.05, 0.855, 0.06);
@ease-in-out-quin... | CSS |
d{
pipelineRefWhereClause,
sq.Eq{"version": from},
})
if !initiallyPaused {
// The set_pipeline step creates pipelines that aren't initially
// paused (unlike `fly set-pipeline`). In this case, we should keep
// previously paused pipelines as paused, but we should unpause any
// formerly archi... | Go |
rices.push();
RenderSystem.enableBlend();
this.minecraft.getTextureManager().bindTexture(field_238703_a_);
int i = this.width / 2 - 62;
int j = this.height / 2 - 30 - 27;
blit(matrices, i, j, 0.0F, 0.0F, 125, 75, 128, 128);
matrices.pop();
... | Java |
x0, 0x24, 0xd8, 0xb6);
private static final DLSID DLSID_SampleMemorySize = new DLSID(0x178f2f28,
0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
private static final DLSID DLSID_ManufacturersID = new DLSID(0xb03e1181,
0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xd... | Java |
249, 253, 13, 221, 212, 6, 253, 65, 120, 209, 221, 48, 86, 23, 110, 51, 56, 97, 90, 13, 45, 163, 74, 233, 204, 193, 100, 173, 57, 83, 196, 16, 252, 172, 147, 35, 125, 156, 67, 74, 211, 249, 102, 224, 254, 194, 239, 39, 76, 255, 28, 39, 60, 186, 129, 57, 63, 246, 153, 23, 180, 124, 249, 1, 99, 104, 200, 21, 134, 255, 10... | C# |
BufferedInputStream(create(), byteArrayPool)
}
/**
* A factory that creates a new [InputStream] for the given [Uri] each time [create] is called.
*/
class UriInputStreamFactory(
private val context: Context,
private val uri: Uri
) : InputStreamFactory {
companion object {
private val TAG = Log.tag(UriInput... | Kotlin |
POCKETWATCH_WEAPON = {
GENERIC = "Did I hear \"one o'clock sharp\", or \"one sharp clock\"? Hyuyu!",
--fallback to speech_wilson.lua DEPLETED = "only_used_by_wanda",
},
POCKETWATCH_PARTS = "Ooohoohoo, someone's been naughty!",
POCKETWATCH_DISMANTLER = "The tools of a time tinkerer.",
... | Lua |
InfoPiholeServer value, $Res Function(InfoPiholeServer) _then) = _$InfoPiholeServerCopyWithImpl;
@useResult
$Res call({
InfoHost? host, InfoSensor? sensor, InfoSystem? system, InfoVersion? version
});
$InfoHostCopyWith<$Res>? get host;$InfoSensorCopyWith<$Res>? get sensor;$InfoSystemCopyWith<$Res>? get system;$InfoV... | Dart |
c_0() {}
pub fn ret_nop_0() {}
pub fn ret_shutdown_0() {}
pub fn ret_fail_0() {}
pub fn ret_fail_1() {}
pub fn ret_fail_2() {}
pub fn ret_failthru_0() {}
pub fn ret_failthru_1() {}
pub fn ret_failthru_2() {}
pub fn fail_0() {}
pub fn fail_1() {}
pub fn fail_2() {}
pub fn stop_0() {}
pub fn kill_0() {}
pub fn kill_1() {... | Rust |
f14, TASK_FPR_14(r3)
lfd f15, TASK_FPR_15(r3)
lfd f16, TASK_FPR_16(r3)
lfd f17, TASK_FPR_17(r3)
lfd f18, TASK_FPR_18(r3)
lfd f19, TASK_FPR_19(r3)
lfd f20, TASK_FPR_20(r3)
lfd f21, TASK_FPR_21(r3)
lfd f22, TASK_FPR_22(r3)
lfd f23, TASK_FPR_23(r3)
lfd f24, TASK_FPR_24(r3)
lfd ... | Assembly |
3), 3ULL, AlwaysTruePredicate{}};
static_assert(2 == *IT1);
}
{
constexpr ItType IT1{IntegerRange::closed_open(0, 3), 2ULL, AlwaysTruePredicate{}};
static_assert(1 == *IT1);
}
{
constexpr ItType IT1{IntegerRange::closed_open(0, 3), 1ULL, AlwaysTruePredicate{}};
s... | C++ |
.warning('响应拦截器 "$name" 执行超时,继续执行');
_executeResponseChain(index - 1, response, handler);
} else {
NetworkLogger.interceptor.warning('响应拦截器 "$name" 执行超时,中断执行');
handler.reject(DioException(
requestOptions: response.requestOptions,
error: TimeoutException('拦截... | Dart |
e.b d1,d2
lsr.w #8,d1
cmp.w d0,d1
ble.s .ok
jmp (a1)
.ok: subq.b #1,d2
cmp.b (a4,d1.w),d2
ble.s .ok2
jmp (a1)
.ok2: dbra d7,.loop
.rts rts
******** INTERRUPTS ********
NEWVBL: addq.l #1,$466.w
movem.l d0-a6,-(sp)
movea.l music_irq(pc),a0
jsr (a0)
movea.l palirq(pc),a0
jsr (a0)
movem.l (sp)+,d0-a6
rte
m... | Assembly |
ember();
void __DefineEvent();
void __SetClassLayout();
void __DeleteClassLayout();
void __SetFieldMarshal();
void __DeleteFieldMarshal();
void __DefinePermissionSet();
void __SetRVA();
int GetTokenFromSig(byte* voidPointerSig, int byteCountSig);
... | C# |
legan_celebahq_eyeglasses_w_boundary.npy`: Eyeglasses.
- StyleGAN model trained on FF-HQ dataset:
- Single boundary in $\mathcal{Z}$ space:
- `stylegan_ffhq_pose_boundary.npy`: Pose.
- `stylegan_ffhq_smile_boundary.npy`: Smile (expression).
- `stylegan_ffhq_age_boundary.npy`: Age.
- `stylegan_ffhq_ge... | Markdown |
();
_internalState[posA].sumReg(r
..set(_internalState[posB])
..sumReg(m1));
_internalState[posD]
..xor(_internalState[posA])
..rotr(32);
_internalState[posC].sumReg(_internalState[posD]);
_internalState[posB]
..xor(_internalState[posC])
..rotr(24);
_internalStat... | Dart |
#region License
/*
Copyright © 2014-2025 European Support Limited
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 law or a... | C# |
ID, 用于多点触控时辨别按下的是第几个手指,
* 一般情况下第一只手指按下时 pointer 为 0, 手指未抬起前又有一只手指按下, 则后按下的手指 pointer 为 1。
* 同一只手指的 按下(touchDown), 拖动(touchDragged), 抬起(touchUp)属于同一次序列动作(pointer 值相同),
* pointer 的值在 按下 时被确定, 之后这只手指产生的的 拖动 和 抬起 动作将会把该已确定的 pointer 值传递给其事件方法
* touchDr... | Markdown |
、地域経済の活性化に貢献している一方で、いわゆる「観光公害」と呼ばれる問題や、現場のオペレーション負荷増大といった課題も顕在化しています。
じゅんさんからは、特に飲食店の現場において、外国人観光客への対応には言語や文化の違いから、日本人顧客対応と比較してより多くのコミュニケーションコストや心理的負担が発生する場合があるとのご指摘がありました。
この状況に対し、
* AI翻訳やAIを活用した接客システムなどを導入することで、多言語対応をスムーズに行い、従業員の負担を軽減する。
* 外国人向けに異なる価格設定を導入することを検討し、増加する対応コストの一部を補填する。これにより、日本人顧客へのサービス品質維持や、適正な価格で... | Markdown |
43a1f1.pth) \| [log](https://download.openmmlab.com/mmsegmentation/v0.5/twins/twins_svt-b_uperhead_8x2_512x512_160k_ade20k/twins_svt-b_uperhead_8x2_512x512_160k_ade20k_20211202_040826.log.json) |
| FPN | Twins-SVT-L | 512x512 | 80000 | 11.20 | 17.80 | V100 | 46.55 | 47.74 ... | Markdown |
ss",[a("strong",[t._v(t._s(t.company.name))]),a("br"),t._v("\n "+t._s(t.company.address.address_1)),a("br"),t._v("\n "+t._s(t.company.address.address_2)),a("br"),t._v("\n "+t._s(t.company.address.city)),a("br"),t._v("\n ... | JavaScript |
<C> {
@override
int length = 0;
@override
C operator [](int index) => throw UnimplementedError();
@override
void operator []=(int index, C value) {}
}
void testFunction4<T4 extends List<T4>>() {
debugger(); // LINE_A
print('T4 = $T4');
}
void testFunction3<T3, S3 extends T3>() {
debugger(); // LINE_... | Dart |
IsClosed());
TEST_CHECK(&server->GetCore() == &core);
server->PostClose();
// Any IPv4.
host = mg::net::HostMakeAllIPV4(0);
server = mg::aio::TCPServer::NewShared(core);
TEST_CHECK(server->Bind(host, err));
uint16_t port = server->GetPort();
TestTCPServerSubscription sub;
TEST_CHECK(server->Listen(mg... | C++ |
filecoin_proofs_v1::constants::get_parameter_data(&id);
ensure!(params.is_some(), "missing params for {}", &id);
Ok(params.expect("param cid failure").cid.clone())
}
}
}
pub fn into_winning_post(self) -> RegisteredPoStProof {
use RegisteredPoStProof... | Rust |
_s * np.exp(-1 * exponent)
class IsothermalProfile(DMProfile):
r"""Isothermal Profile.
.. math:: \rho(r) = \frac{\rho_s}{1 + (r/r_s)^2}
Parameters
----------
r_s : `~astropy.units.Quantity`
Scale radius, :math:`r_s`.
References
----------
* `Begeman et al. (1991), "Extended ... | Python |
# Copyright 2024 THU-BPM MarkLLM.
#
# 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 law or agreed to in writ... | Python |
6.1001Z"></path>
</svg>
</button>
</div>
</div>
{/* Casino */}
<div
className="mt-1 rounded-lg"
style={{ backgroundColor: "#323738" }}
>
<div className="toggle-link-item flex h-11 w-full cursor-pointe... | JavaScript |
{'16359', '瞧瞧我的主页签名', '瞧瞧我的主页签名'},
{'16360', '码字工', '码字工'},
{'16361', '诚招', '诚招'},
{'16362', '瞧一眼我的签名', '瞧一眼我的签名'},
{'16363', '申请Q', '申请Q'},
{'16364', '拿钻红包', '拿钻红包'},
{'16365', '签名有惊喜', '签名有惊喜'},
{'16366', '关注你啦谢谢', '关注你啦谢谢'},
{'16367', '看下我的个性签名', '看下我的个性签名'},
{'16368', '市政当局', '市政当局'},
{'16369', '涉台', '涉台'},
{'1637... | Lua |
.sidebar-divider {
border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.sidebar-dark .sidebar-heading {
color: rgba(255, 255, 255, 0.4);
}
.sidebar-dark .nav-item .nav-link {
color: rgba(255, 255, 255, 0.8);
}
.sidebar-dark .nav-item .nav-link i {
color: rgba(255, 255, 255, 0.3);
}
.sidebar-dark .nav-item .n... | CSS |
) { resultCode, intent ->
// if (resultCode == RESULT_OK) {
// //处理成功
// val result = intent.get<String>("Result")
// editText.setText(result)
// } else {
// //未成功处理
// Toast.makeText(this, "Cancelled", Toast.LENGTH_SHORT).... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.