content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
out even the implied warranty of
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details.
* *
* * You should have received a copy of the GNU General Public License
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
packag... | Kotlin |
, xmm0
divss xmm3, xmm2
cvtss2si rax, xmm3
cvtsi2ss xmm3, rax
mov sil, al
/* oh man such hacks */
cmp sil, 10
jl 1f
mov sil, 9
1: add sil, 0x30
call printchar
mulss xmm3, xmm2
subss xmm0, xmm3
divss xmm2, [m_10]
/* how many until decimal */
sub r12, 1
jnz pr... | Assembly |
;
break;
case UT_LIGHTDIR:
u->SetValue( sky_vec.x, sky_vec.y, sky_vec.z );
break;
case UT_LIGHTDIFFUSE:
u->SetValue( sky_color.x, sky_color.y, sky_color.z );
break;
case UT_VIEWORIGIN:
u->SetValue( GetVieworg().x, GetVieworg().y, GetVieworg().z );
break;
case UT_FOGPARAMS:
u->SetValue( t... | C++ |
#pragma once
/*
Copyright (c) 2017 - 2018, Roland Bock
Copyright (c) 2023, Vesselin Atanasov
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copy... | C |
SplitSegment> {
val splitSegments = mutableListOf<SplitSegment>()
if (points.size < 3) return emptyList()
val extremums = getExtremums()
if (extremums.size < 2) return emptyList()
val accumulatedDistances = accumulatePointsDistance()
var prevExtremumIndex: Int? = null
var sp: SplitSegment? = null
va... | Kotlin |
));
IL.Food_Burger_Chum .set(addItem( 5013, "Chum Burger" , "Fum is Chum!" , new FoodStat( 6, 1.600F, 0, C+37, 0.10F, 0, 0, 20, 0, 0, EnumAction.eat, null , T, F, T, T, Potion.hun... | Java |
using System;
using System.IO;
using System.Runtime.CompilerServices;
using OpenSage.Data.Map;
using OpenSage.IO;
using OpenSage.Terrain.Roads;
using Xunit;
using static OpenSage.Terrain.Roads.RoadTextureType;
namespace OpenSage.Tests.Terrain.Roads;
public class RoadAlignmentTests
{
[Fact]
public void NoAlig... | C# |
0xc78, 0x003e0001,
0xc78, 0x003f0001,
0xc78, 0x38000002,
0xc78, 0x38010002,
0xc78, 0x38020002,
0xc78, 0x38030002,
0xc78, 0x38040002,
0xc78, 0x38050002,
0xc78, 0x38060002,
0xc78, 0x38070002,
0xc78, 0x38080002,
0xc78, 0x3c090002,
0xc78, 0x3e0a0002,
0xc78, 0x400b0002,
0xc78, 0x440c0002,
0xc78, 0x480d0002,... | C |
, "+1 kırmızı kalp konteynırı#Itemler kendisi ve rastgele bir yemek itemi arasında gidip gelir, biri seçilebilir#Yemek itemi almak geçici +3.6 hasar artışı ve 2 küçük kalıcı özellik artışı verir"}, -- Binge Eater
[665] = {"665", "Şerbet'in Gözü", "Kasaların, keselerin ve ateşlerin içindeki itemleri gösterir"}, -- Gu... | Lua |
expect(pipe.transform(inputValue, size)).toBe(outputValue);
});
});
import { FirebaseApp } from 'firebase/app'
import { getAuth } from 'firebase/auth'
import * as firebaseDatabase from 'firebase/database'
import type { DbPaths } from './index'
const presenceState = {
ONLINE: 'online',
OFFLINE: 'offline',
}... | Typescript |
direcciones (¿la URL final es diferente?).
* IPs y Dominios contactados durante la carga de la página (¡pueden ser IoCs adicionales!).
* Hashes de archivos descargados por la página.
3. **Expansión de Acortadores:**
* Si la URL original es acortada (ej. bit.ly), usa un expansor de URLs para obtene... | Markdown |
�化**: 外鍵索引、複合索引、查詢優化
* 外鍵 JOIN 查詢效能提升 **10-100 倍**
* 投票計數查詢效能提升 **20-50 倍**
* 權限檢查查詢效能提升 **2-10 倍**
#### 開發工具與文檔
* **開發環境**: FastAPI + PostgreSQL + uv 開發環境
* **程式碼品質**: SQLAlchemy ORM + Pydantic 資料驗證
* **文檔系統**: 完整的技術文檔和 API 文檔
* **5 個 ADR 文檔**: 重要架構決策記錄
* **開發指南**: 環境設定、測試、貢獻指南
* **API 文檔**: 完整的 REST API... | Markdown |
_1B5 = true;
}
if (_946) {
if (--_946 == 0x18) {
selectAction("スピン回復エフェクト");
stopEffectForce("スピンリング");
}
if (_946 == 0xd) {
_94C = 0x13;
}
}
}
}
void MarioActor::updateSwingAction()... | C++ |
" + material);
}
}
} catch (NoSuchMethodError e) {
}
}
if (data.getInt("Items." + item + ".Amount", 0) == 0) {
if (data.getInt("Items." + item + ".MinAmount", 0) == 0
&& data.getInt("Items." + item + ".MaxAmount") == 0) {
warning(reward, inject, "No a... | Java |
ame);
fprintf (fp, "package fontsvg;\n\n");
fprintf (fp, "import java.util.HashMap;\n");
fprintf (fp, "import java.util.Map;\n\n");
fprintf (fp, "public class %s {\n\n", cn);
fprintf (fp, " public class Metric {\n\n");
fprintf (fp, " public int xMin, xMax, yMin, yMax, adv;\n");
fprintf (fp, " pu... | C |
op_reply_57_1_2 = {
value = "と、撮る時は結構苦労しましたけどね…"
},
ins_58 = {
value = "#嘘ネタ#明石が隠し持っている教科書を発見したわ!"
},
ins_discuss_58_1 = {
value = "別に隠し持ってなんかないにゃ!"
},
ins_reply_58_1_1 = {
value = "(じーーー)"
},
ins_discuss_58_2 = {
value = "こんなにあるのでしたらとっくに放出してましたね…"
},
ins_reply_58_2_1 = {
value = "そうだにゃ!隠し持ってなんか... | Lua |
些适合我的旅游目的地 |
| 数据挖掘 | 分析Twitter上与“人工智能”相关的最新趋势 |
| 语音识别 | 将一段英语音频转换成文字,并将结果输出为文本文件 |
|自然语言处理|请列举现在主流使用的自然语言处理技术和它们各自的应用场景。|
|机器翻译|你能否解释一下机器翻译中的注意力机制是如何工作的?其对于翻译质量的影响是什么?|
|数据清洗|如果给你一个包含缺失值、重复行以及异常值的数据集,你会采取哪些方法进行数据清洗?|
|人工智能伦理|在开发人工智能应用程序时需要考虑哪些伦理问题?如何确保这些问题得到妥善解决?|
|图像识别|目前最先进的图像识别技术是什么?它们的准确率有多高?|
|推荐系统|推荐系统是怎么工作的?常用... | Markdown |
d 0%, #d6d6d6 77%, #e8e8e8 100%);background:-ms-linear-gradient(top, #ededed 0%, #d6d6d6 77%, #e8e8e8 100%);background:-o-linear-gradient(top, #ededed 0%, #d6d6d6 77%, #e8e8e8 100%);background:linear-gradient(to bottom, #ededed 0%, #d6d6d6 77%, #e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColors... | CSS |
(node.left, left, leftType, commonType, false);
right = compiler.maybeConvertValue(node.right, right, rightType, commonType, false);
leftType = rightType = resultType = commonType;
break;
// +=, -=, **=, *=, /=, %=, &=, |=, ^=
// prioritize left type, result is left type
default:
// c... | Typescript |
t(relativePos)
if (relativePos > 0) {
if (true != callback?.isScroll) return
if (relativeOffset >= ChapterProvider.visibleHeight) return
}
Logger.d("ContentTextView:selectEndMove:x=$x,y=$y")
relativePage(relativePos)?.let { page ->
... | Kotlin |
LogPrintf("AddLocal(%s,%i)\n", addr.ToString(), nScore);
{
LOCK(cs_mapLocalHost);
bool fAlready = mapLocalHost.count(addr) > 0;
LocalServiceInfo &info = mapLocalHost[addr];
if (!fAlready || nScore >= info.nScore) {
info.nScore = nScore + (fAlready ? 1 : 0);
... | C++ |
=yes TEST_PROVISION=no TEST_INSTALL_CAA=no make CLOUD_PROVIDER=azure TEST_PROVISION_FILE=azure_test.properties test-e2e
```
If your environment uses a pod VM image with restrict agent policy, then some of the e2e tests may fail.
You can use the following command to override the test pods with a relaxed agent policy al... | Markdown |
f the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under 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 spec... | Typescript |
calc(50% - (50px / 2));
border-bottom: 1px solid #e5e5e5
}
.uk-divider-icon::before {
right: calc(50% + (50px / 2));
width: 100%
}
.uk-divider-icon::after {
left: calc(50% + (50px / 2));
width: 100%
}
.uk-divider-small {
line-height: 0
}
.uk-divider-small::after {
content: "";
displ... | CSS |
an Cheng, Eunji Kim, Jong Hwan Ko|<http://arxiv.org/pdf/2407.20542v1>|**[link](https://github.com/cwc1260/handdagt)**
## 3D/CG
|Publish Date|Title|Title_CN|Authors|PDF|Code|
|---|---|---|---|---|---|
**2024-07-30**|**Mean of Means: A 10-dollar Solution for Human Localization with Calibration-free and Unconstrained Ca... | Markdown |
56', '', '', '', '', '', '', '', '11', '3', '', '', '', '60080', '1', '', '', '0.0333', '', ''},
{'20156', '', '', '', '', '', '', '', '12', '3', '', '', '', '50190', '1', '', '', '0.0333', '', ''},
{'20156', '', '', '', '', '', '', '', '13', '3', '', '', '', '40210', '1', '', '', '0.1004', '', ''},
{'20161', '活动池-袅韵池'... | Lua |
Dezentralisierung des Ethereum-Netzwerks bei
- Vertrauen Sie niemandem und geben Sie niemals den Zugang zu Ihren Geldern weiter
---
## Was ist Solo-Staking? {#what-is-solo-staking}
Solo-Staking ist das [Betreiben eines Ethereum-Knotens](/run-a-node/), der mit dem Internet verbunden ist, und das Hinterlegen von 32 ... | Markdown |
from dynamodb', async () => {
const { data } = await when.we_invoke_list_books(user, 25, null)
expect(data!.nextToken).toBeNull()
expect(data!.books).toHaveLength(1)
expect(data!.books[0]).toEqual(existingBook)
})
})
})
import { Identifier } from "@entities/Identifier";
import { InMemory... | Typescript |
8EF90000 */ lw $t9, ($s7)
/* B7F8D4 80108734 26217FFF */ addiu $at, $s1, 0x7fff
/* B7F8D8 80108738 872E0496 */ lh $t6, 0x496($t9)
/* B7F8DC 8010873C A42E63DB */ sh $t6, 0x63db($at)
.L80108740:
/* B7F8E0 80108740 02358021 */ addu $s0, $s1, $s5
/* B7F8E4 80108744 920F62FD */ lbu $t7, 0x62fd($s0)
/* B7F... | Assembly |
// 5: Matches the rest of the tag
// 6: Matches the tag name
+ "([a-z][a-z0-9_:]*)?"
+ "(?:[ \\t\\n\\r]+"
// 7: Matches an attr name
+ "([_:a-z][_:a-z0-9.]*)"
+ "((?:" // 8: Not empty if attr has a value
+ "[ \\t\\n\\r]*=[ ... | C# |
atusicons_PersonaStatusIcon_KxAI_.ingame .SVGIcon_SteamDeck path,
.personastatusicons_PersonaStatusIcon_KxAI_.ingame .SVGIcon_VRIcon path,
.personastatusicons_PersonaStatusIcon_KxAI_.ingame .SVGIcon_MobilePhone path,
.personastatusicons_PersonaStatusIcon_KxAI_.ingame .SVGIcon_BigPicture path {
fill: #80aa4d;
}
.perso... | CSS |
RandomBytes(t, 32),
}
underlayingORM.On("Update", mock.Anything, row).Return(nil).Once()
err = orm.Update(ctx, row)
assert.NoError(t, err)
// given the cache was invalidated this request will reach the underlaying orm implementation
underlayingORM.On("GetSnapshot", mock.Anything, fullAddressRange).Return(r... | Go |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
public class CommandBufferSetup : MonoBehaviour {
private CommandBuffer backFaceBuffer;
private RenderTexture backFaceRenderTexture;
private Camera mainCam;
public Shader backFaceShader;
p... | C# |
ocal(dragPoint, grabPoint);
// content.setPosition(grabPoint.x, grabPoint.y);
// }
//
// void onScaleUpdate(ScaleUpdateDetails details) {
// final focalPoint = GPoint.fromNative(details.localFocalPoint);
// final deltaX = focalPoint.x - dragPoint.x;
// final deltaY = focalPoint.y - dragPoint.y;
// ... | Dart |
"(12:34 error: unresolved interpolation sampling 'centre'
12:34 note: Did you mean 'center'?
Possible values: 'center', 'centroid', 'sample')");
}
TEST_F(ResolverUnresolvedIdentifierSuggestions, InterpolationType) {
Structure("s", Vector{
Member("m", ty.vec4<f32>(),
... | C++ |
tv2.ctag == "TVint"
return tval_btf(tv1.arg1 != tv2.arg1)
raise TypeError(pnm) # HX-2025-06-03: unsupported!
if (tm0.ctag == "TMapp"):
tm1 = tm0.arg1
tv1 = term_eval01(tm1, env)
assert tv1.ctag == "TVclo"
tm2 = tm0.arg2
tv2 = term_eval01(tm2, env)
... | Python |
uteData,
child: _i16.LoginScreen8(themeBloc: args.themeBloc));
},
LoginScreen9Route.name: (routeData) {
final args = routeData.argsAs<LoginScreen9RouteArgs>();
return _i19.MaterialPageX<dynamic>(
routeData: routeData,
child: _i17.LoginScreen9(themeBloc: args.themeBloc))... | Dart |
assert.EqualError(err, expErr.Error())
eth.err["TransactionByHash"] = nil
// Test no error - ErrReplacingMinedTx
eth.pending = false
tx, err = tm.replace(stubTx)
assert.Nil(tx)
assert.EqualError(err, ErrReplacingMinedTx.Error())
// Test error is ethereum.NotFound - fail at next step
eth.pending = true
gpm.m... | Go |
llection instead.")]
public IList<Interceptor> Interceptors { get; } = new List<Interceptor>();
/// <summary>
/// Gets a list of <see cref="InterceptorRegistration"/> instances used to configure a gRPC client pipeline.
/// </summary>
public IList<InterceptorRegistration> InterceptorRegistrations { ... | C# |
g dlopen multiple times on
* the same .so will simply increment a refcount (and not load
* a new copy of the library).
* We also assume that dlopen() is thread-safe.
*/
/* First try a property specific to the class and possibly instance */
snprintf(prop_name, sizeof(prop_name), "ro.hardware... | C |
= {"El Rey Exánime",nil},
[33442] = {"Campeón inmolado",nil},
[33443] = {"Vigilante Corazón Sabio",nil},
[33444] = {"Presagista Aphotic",nil},
[33445] = {"Centinela Avana",nil},
[33446] = {"Peon Lumber Bunny",nil},
[33447] = {"Escudero David",nil},
[33448] = {"Valeroso Argenta",nil},
[33450] = {"[ph] Tournament War Ko... | Lua |
257A0 00420CE0 81 9F 00 00 */ lwz r12, 0(r31)
/* 804257A4 00420CE4 7F E3 FB 78 */ mr r3, r31
/* 804257A8 00420CE8 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 804257AC 00420CEC 7D 89 03 A6 */ mtctr r12
/* 804257B0 00420CF0 4E 80 04 21 */ bctrl
/* 804257B4 00420CF4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 804257B8 00420CF8 83 ... | Assembly |
_ctx;
enum country_src cc_src;
uint8_t alpha2[REG_ALPHA2_LEN + 1];
pdev_priv = wlan_pdev_get_ospriv(pdev);
wiphy = pdev_priv->wiphy;
hdd_ctx = wiphy_priv(wiphy);
hdd_debug("process channel list update from regulatory");
fill_wiphy_band_channels(wiphy, chan_list, NL80211_BAND_2GHZ);
fill_wiphy_band_channels(w... | C |
.body;
const {id} = request.params;
console.log(id);
console.log(name);
console.log(description);
const updateCompanyUseCase = container.resolve(UpdateCompanyUseCase)
await updateCompanyUseCase.excute({description, name,id});
return response.status(201).send();
}
}import { ref, Ref, Unw... | Typescript |
**
* 获得用户编号
* <p>
* 虽然方法名获得的是 username,实际对应到项目中是用户编号
*
* @param token JmReport 前端传递的 token
* @return 用户编号
*/
@Override
public String getUsername(String token) {
Long userId = SecurityFrameworkUtils.getLoginUserId();
if (ObjectUtil.isNotNull(userId)) {
... | Java |
R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Transmit FIFO Buffer Available"]
#[inline(always)]
pub fn tb(&self) -> TB_R {
TB_R::new(((self.bits >> 7) & 0x01) != 0)
}
}
#[doc = "Channel Configuration Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API... | Rust |
)
CONSOLE.print(f":white_check_mark: Done loading checkpoint from {load_path}")
pipeline.models.to(pipeline.device)
return load_path, load_step
def ensemble_eval_setup(
config_paths: List[Path],
eval_num_rays_per_chunk: Optional[int] = None,
test_mode: Literal["test", "val", "infer... | Python |
.Yield()
.Appending(parameter.GetInterfaces())
.YieldMetadata()
.Where(x =... | C# |
* y * z
cmsub_p384(d_,12,xy2,9,x4p)
sub_p384(t1,t2,z2)
// y4 = y^4
montsqr_p384(y4,y2)
// z_3' = 2 * y * z
// dx2 = d * x2p
sub_p384(z_3,t1,y2)
montmul_p384(dx2,d_,x2p)
// x' = 4 * xy2 - d
cmsub41_p384(x_3,xy2,d_)
// y' = 3 * dx2 - 8 * y4
cmsub38_p384(y_... | Assembly |
2.756 7.161 4.989 16 4.989v-4.989c-8.839 0-16-2.24-16-4.989zm28.511 3.109L16 18.5v4.995l12.511 3.109C30.694 25.749 32 24.672 32 23.495V18.5c0 1.177-1.307 2.255-3.489 3.109zM16 13.511V18.5c-8.839 0-16-2.235-16-4.989V8.506c0-2.751 7.161-4.989 16-4.989 8.833 0 16 2.239 16 4.995v5c0 1.177-1.307 2.249-3.489 3.109L16 13.506... | Dart |
const value2 = right<Error, number>(5)
const value3 = left<Error, number>(new Error('test'))
const result1 = monad['>>'](value1, value2)
const result2 = monad['>>'](value1, value3)
const result3 = monad['>>'](value3, value1)
t.equal(getValue(result1), 5)
t.equa... | Typescript |
oldLocation.getY()!=location.getY())&&(oldLocation.getZ()!=location.getZ())) {
// add in bridge block for Tinker's Lumber Axe
bridgeLocation = new BlockPos(location.getX(),oldLocation.getY(),oldLocation.getZ());
this.placeLeavesBlock(world, bridgeLocation, this.leavesBlock, this.generateFlag,lig... | Java |
: Curves.easeInOut,
);
}
} finally {
// 延迟重置手动滚动标志,确保滚动动画完成后再重置
Future.delayed(const Duration(milliseconds: 350), () {
isManualScrolling.value = false;
});
}
}
void copyPost(Post post) {
Clipboard.setData(ClipboardData(
text: '${HttpConfig.baseUrl}${post.... | Dart |
"tabbar_home")
addChildViewController("MessageTableViewController", title: "消息", imageName: "tabbar_message_center")
addChildViewController("DiscoverTableViewController", title: "发现", imageName: "tabbar_discover")
addChildViewController("ProfileTableViewController", title: "我", imag... | Markdown |
&& !defined(LEFT) && !defined(TRANSA))
movl K, %eax
subl KKK, %eax
leal (,%eax, 8), %eax
leal (AA, %eax, 4), AA
leal (BB, %eax, 2), BB
#endif
#if defined(TRMMKERNEL) && defined(LEFT)
addl $8, KK
#endif
addl $8 * SIZE, C1
decl I
jg .L61
ALIGN_4
.L70:
movl M, I
testl $4, I
jle .L80
.L71:
#if !define... | Assembly |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using MeetingExtension_SP.Models;
using MeetingExtension_SP.Models.Sharepoint;
using MeetingExtension_SP.Repositories;
using MessageExtension_SP.Helpers;
using Microsoft.Extensions.Configuration;
using System.Collections.Ge... | C# |
contentView.addView(createStatusBarView(activity, color));
}
setRootView(activity);
}
/**
* 使状态栏半透明
* <p>
* 适用于图片作为背景的界面,此时需要图片填充到状态栏
*
* @param activity 需要设置的activity
*/
public static void setTranslucent(Activity activity) {
setTranslucent(activi... | Java |
d e,Enemy.var32
ld a,(de)
ld h,d
ld l,Enemy.yh
cp (hl)
jr nc,@reachedDestination
call objectApplySpeed
jr ambiGuard_animate
@reachedDestination:
ld a,(de)
ld (hl),a
jp ambiGuard_runMovementScript
; Moving right
ambiGuard_state9:
ld e,Enemy.xh
ld a,(de)
ld h,d
ld l,Enemy.var33
cp (hl)
jr nc,@reachedDe... | Assembly |
va.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
/**
* @author leichen
*/
@RestController
@RequestMapping("plugin")
public class PluginManagerController {
private Pf4jManagerProperties pf4jManagerProperties;
private PluginManager pluginManager;
@Autowir... | Java |
).
* See LICENSE for details.
*/
package com.almasb.fxgl.tools.dialogues
import com.almasb.fxgl.core.EngineService
import com.almasb.fxgl.core.collection.PropertyMap
import com.almasb.fxgl.core.serialization.Bundle
import com.almasb.fxgl.cutscene.dialogue.DialogueNodeType
import com.almasb.fxgl.dsl.getSaveLoadServi... | Kotlin |
WTEST_F(RSPropertiesTest, SetBoundsSize001, TestSize.Level1)
{
RSProperties properties;
Vector2f size{1.0f, 1.0f};
properties.SetBoundsSize(size);
properties.SetBackgroundShader(nullptr);
EXPECT_EQ(properties.GetBackgroundShader(), nullptr);
}
/**
* @tc.name: SetFrameSize001
* @tc.desc: test
* @... | C++ |
�의 행방을 밝힐 수 있기 때문에 및 저장, 그들의 여행 역사 지리적 위치 데이터는 일반적으로 민감한 간주. 따라서, 애플 리 케이 션의 개인 정보 보호 정책 뿐만 아니라 강력 하 게 좋습니다 (해당 되는 경우 장치 운영 체제 이렇게 이미 하지 않는) 응용 프로그램 위치 정보 데이터에 액세스 하기 전에 그냥--시간 통지. 그 통지는 (예를 들어, **확인** 및 **아니오**선택 제시) 하 여 사용자의 허가 취득 뿐만 아니라, 위에서 언급 된 동일한 정보를 제공 해야 합니다. 자세한 내용은 개인 정보 보호 가이드를 참조 하십시오.
이 플러그인 (플랫폼은 그렇지 않으... | Markdown |
e buffer to be converted to UTF8 data. The buffer
* is resized as appropriate. */
static void ConvertToUTF8(
std::vector<char> &data);
// -------------------------------------------------------------------
/** An utility for all text file loaders. It converts a file from our
* UTF8... | C |
tructC := StructC{Field1: 789, Field2: "Inner Struct C"}
innerStructC2 := StructC{Field1: 101112, Field2: "Another Inner Struct C"}
value := StructA{
Field5: true,
Field6: StructB{Field3: 3.14, Field4: &innerStructC},
Field7: &innerStructC,
Field8: []StructB{{Field3: 6.28, Field4: &innerStructC}, {Field3... | Go |
0.4;
}
.isax-autobrightness1 .path2:before {
content: "\ed3c";
margin-left: -1em;
color: rgb(41, 45, 50);
}
.isax-autobrightness1 .path3:before {
content: "\ed3d";
margin-left: -1em;
color: rgb(41, 45, 50);
}
.isax-award1 .path1:before {
content: "\ed3e";
color: rgb(41, 45, 50);
opacity: 0.4;
}
.isax... | CSS |
*/
const useActivity = (): ActivityReturn => {
const {user, isLoading } = useAuth();
const [activity, setActivity] = useState<Activity | null>(null);
const [dataLoading, setDataLoading] = useState<boolean>(false);
const loading = dataLoading || isLoading;
useEffect(() => {
if (!user) return;
setDat... | Typescript |
final priority in priorities) {
if (closureTimeHistogramAll[day]!.containsKey(priority)) {
closureTimeCumulativeSum[priority] =
closureTimeCumulativeSum[priority]! +
closureTimeHistogramAll[day]![priority]!;
}
}
}
summar... | Dart |
n errors.Wrapf(errBadOneStepProof, "could not get one step data: %v", err)
}
manager := et.chain.SpecChallengeManager()
if err = manager.ConfirmEdgeByOneStepProof(
ctx,
et.edge.Id(),
data,
beforeStateInclusionProof,
afterStateInclusionProof,
); err != nil {
return errors.Wrap(err, "could not confirm one... | Go |
a0)+
move.w d6,(a0)+
lea.l intin,a0
rept 53
clr.w d0
move.b (a6)+,d0
move.w d0,(a0)+
endr
addi.w #8,d6
movem.l d5-d6/a6,-(sp)
jsr vdi
movem.l (sp)+,d5-d6/a6
tst.b (a6)
bne loop
* refixe la taille des caracteres
lea.l contrl,a0
move.w #12,(a0)
move.w #1,2(a0)
move.w #0,6(a0)
move.w #1,12(a0)
lea... | Assembly |
(media->getOutputPath(), results);
}
delete media;
}
else
{
LOG_CORE_ERROR("{0} format is not supported", path.filename().string());
}
}
//Recursively analyze all files in folder except for subfolders which correspond to outputs
void processFolder(tik::Fonttik& fonttik, fs::path path, tik::Configuration& c... | C++ |
dynamic x) => x.publicMethod();
}
class Nsm {
int otherNsmCount = 0;
@override
noSuchMethod(Invocation invocation) {
return otherNsmCount++;
}
}
class Stubs implements Interface {
int stubsNsmCount = 0;
@override
noSuchMethod(Invocation invocation) {
return stubsNsmCount++;
}
}
// Copyright ... | Dart |
y: -moz-box;
display: -ms-flexbox;
display: flex;
align-items: center;
position: absolute;
border-radius: 25px;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
padding-left: 23px;
padding-bottom: 5px;
pointer-events: none;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
-moz-transit... | CSS |
ftp.ncbi.nlm.nih.gov/geo/samples/GSM733nnn/GSM733816/suppl/GSM733816.CEL.gz;\tftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM733nnn/GSM733816/suppl/GSM733816.chp.gz
## 2 ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM733nnn/GSM733817/suppl/GSM733817.CEL.gz;\tftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM733nnn/GSM733817/suppl/GSM733... | Markdown |
FlatSVGIcon("svg/subscribe.svg");
public static final Icon UNSUBSCRIBE_ICON = new FlatSVGIcon("svg/unSubscribe.svg");
public static final Icon PUBLISH_ICON = new FlatSVGIcon("svg/publish.svg");
public static final Icon TREE_KEY_ICON = new FlatSVGIcon("icons/tree_key.svg");
public static final Icon MQ_I... | Java |
inputStream = contentResolver.openInputStream(photoUri)
Drawable.createFromStream(inputStream, photoUri.toString())
} catch (e: Exception) {
e.printStackTrace()
null
}
}
//Creates a Material-style initials avatar with caching
private fun createTextAvatar... | Kotlin |
tsm.putCharacterStatValue(IndieCr, o3); //Indie
o4.nReason = skillID;
o4.nValue = si.getValue(indieAsrR, slv);
o4.tTerm = si.getValue(time, slv);
tsm.putCharacterStatValue(IndieAsrR, o4); //Indie
o5.nReason = skillID;
... | Java |
ction(_fill_with_strategy)
def _fill_constant(expr: Column, value: Column) -> Column:
return self._F.ifnull(expr, value)
return self._with_elementwise(_fill_constant, value=value)
def log(self, base: float) -> Self:
def _log(expr: Column) -> Column:
return (
... | Python |
ate the maximum depth texture
{
m_MaxDepthTextureHandle = g_pShaderAPI->CreateTexture( 1, 1, 1, IMAGE_FORMAT_RGBA8888, 1, 1, tcFlags, "[MAXDEPTH_TEXID]", TEXTURE_GROUP_OTHER );
g_pShaderAPI->ModifyTexture( m_MaxDepthTextureHandle );
g_pShaderAPI->TexMinFilter( SHADER_TEXFILTERMODE_LINEAR );
g_pShaderAPI->TexMa... | C++ |
"network.h"
#include "net_util.h"
#include "player.h"
#include "UnitPool.h"
#include "ArmyPool.h"
#include "Army.h"
#include "ArmyData.h"
#include "ctpai.h"
#include "net_info.h"
extern Player **g_player;
extern UnitPool *g_theUnitPool;
NetNewArmy::NetNewArmy(PLAYER_INDEX player, const ArmyList &army,
sint32... | C++ |
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This progra... | C |
#! /usr/bin/env python
###############################################################################
#
# simulavr - A simulator for the Atmel AVR family of microcontrollers.
# Copyright (C) 2001, 2002 Theodore A. Roth
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of th... | Python |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
us... | C# |
.isEmpty()) {
UndirectedGraphNode qNode = q.poll();
row.add(qNode.label);
for (UndirectedGraphNode neighbor : qNode.neighbors) {
if (visited.contains(neighbor)) continue;
q.offer(neighbor);
visited.add(neighbor);
}
}... | Markdown |
ion 64.
*/
static inline int fls64(unsigned long word)
{
unsigned long mask = 2 * BITS_PER_LONG - 1;
return (1 + (__flogr(word) ^ (BITS_PER_LONG - 1))) & mask;
}
/**
* fls - find last (most-significant) bit set
* @word: the word to search
*
* This is defined the same way as ffs.
* Note fls(0) = 0, fls(1) = 1,... | C |
coverage_steck,
path=plot_dir.joinpath(
f"genre_probability_cat_{topN}",
f"bars_{topN}_{distribution_type}_{alpha_steck_select}_cov.json",
),
)
write_json_file(
kl_system_level,
path=plot_dir.joinpath(
f"genre_probability_cat_{topN}",
f"bars_{topN}_{distribution_type}_{al... | Python |
e(self.raw, val);
}
self
}
/// See DBOptions doc
pub fn writable_file_max_buffer_size(self, val: usize) -> Self {
unsafe {
ll::rocks_envoptions_set_writable_file_max_buffer_size(self.raw, val);
}
self
}
// If not nullptr, write rate limiting is e... | Rust |
"SOURCE","STYLE","TITLE","WBR"]),t.i)
C.t=H.i(s([]),t.dG)
C.P=H.i(s([]),H.aa("G<m<k*>*>"))
C.b6=H.i(s([]),t.h2)
C.n=H.i(s([]),t.i)
C.b8=H.i(s([0,0,32722,12287,65534,34815,65534,18431]),t.V)
C.Q=H.i(s(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t.i)
C.R=H.i(s([0,0,65498,45055,65535,34815,65534,18431]),t.V)
C.S=H.i(s(["... | Dart |
8/21 ver.1.0b1
・公開版
---------------------------------------------------------------- */
/* 組み方向指定
---------------------------------------------------------------- */
/* 横組み用 */
html,
.hltr {
-webkit-writing-mode: horizontal-tb;
-epub-writing-mode: horizontal-tb;
}
/* 縦組み用 */
.vrtl {
-webkit-writing-mode: ver... | CSS |
StaticFunction();
}
return=c1;
}
return=a;
}
return =b;
}
return=d;
}
a1 = test(1);
a2 = test(0);
a3 = test(2);
";
string errmsg = "";
... | C# |
/* B212B8 800AA118 17000004 */ bnez $t8, .L800AA12C
/* B212BC 800AA11C 00000000 */ nop
/* B212C0 800AA120 AC206D20 */ sw $zero, %lo(gPadMgr+0x460)($at)
/* B212C4 800AA124 3C018016 */ lui $at, %hi(gPadMgr+0x464) # $at, 0x8016
/* B212C8 800AA128 AC206D24 */ sw $zero, %lo(gPadMgr+0x464)($at)
.L800AA12C:... | Assembly |
NoFilteredContactsItem()
}
itemsIndexed(filteredContactChats) { index, chat ->
val nextChatSelected = remember(chat.id, filteredContactChats) {
derivedStateOf {
chatModel.chatId.value != null && filteredContactChats.getOrNull(index + 1)?.id == chatModel.chatId.value
... | Kotlin |
, x*tile_size, jnp.array(0, dtype=jnp.int32)))
def render_row(carry, x):
img, y = carry
img = render_tile_at(img, y, x)
return (img, y), None
def render_grid_rows(img, y):
(img, y), _ = lax.scan(render_row, (img, y), jnp.arange(width))
return img, None
img, _ =... | Python |
.ColumnReference
import org.jetbrains.kotlinx.dataframe.columns.ColumnSet
import org.jetbrains.kotlinx.dataframe.columns.ColumnsResolver
import org.jetbrains.kotlinx.dataframe.columns.SingleColumn
import org.jetbrains.kotlinx.dataframe.columns.asColumnSet
import org.jetbrains.kotlinx.dataframe.columns.values
import org... | Kotlin |
4c,0x24,0x04]
vgf2p8mulb 4(%rsp), %ymm10, %ymm1
// CHECK: vgf2p8mulb 268435456(%rcx,%r14,8), %ymm10, %ymm1
// CHECK: encoding: [0xc4,0xa2,0x2d,0xcf,0x8c,0xf1,0x00,0x00,0x00,0x10]
vgf2p8mulb 268435456(%rcx,%r14,8), %ymm10, %ymm1
// CHECK: vgf2p8mulb -536870912(%rcx,%r14,8), %ymm10, %ymm1
// CHE... | Assembly |
{
float32: Float32Array;
uint8: Uint8Array;
int8: Int8Array;
uint16: Uint16Array;
int16: Int16Array;
int32: Int32Array;
int64: BigInt64Array;
string: string[];
bool: Uint8Array;
float16: never; // hold on using Uint16Array before we have a concret solution for float 16
floa... | Typescript |
die_ground") end)
},
})
CommonStates.AddWalkStates(states,
{
starttimeline = {TimeEvent(0, function(inst) StartFlap(inst) end)},
walktimeline = {TimeEvent(0, function(inst) StartFlap(inst) end)},
endtimeline = {TimeEvent(0, function(inst) StartFlap(inst) end)},
})
CommonStates.AddSleepStates(states,
{
starttimelin... | Lua |
vDateRangeMsg">
/// </next-prev-buttons>
///
// TODO(google): Use material-button instead of button. Maybe pull out an
// icon-button component.
@Component(
selector: 'next-prev-buttons',
changeDetection: ChangeDetectionStrategy.OnPush,
template: r'''
<button class="prev"
[class.disabled]="isPrevDisab... | Dart |
!!";
}
void LogBranch() {
LOG(INFO) << "Logging a branch...";
}
void LogTree() {
LOG(INFO) << "Logging the whole tree...";
}
void LogForest() {
LOG(INFO) << "Logging the entire forest.";
LOG(INFO) << "Logging the entire forest..";
LOG(INFO) << "Logging the entire forest...";
}
// The purpose of the follow... | C++ |
vendor('display', 'flex');
cursor: default;
list-style: none;
margin-left: (_size(element-margin) * -0.5);
padding-left: 0;
li {
padding: 0 0 0 (_size(element-margin) * 0.5);
vertical-align: middle;
}
&.special {
@include vendor('justify-content', 'center');
width: 100%;
margin-left: 0;
... | CSS |
er,
children: { [key: string]: BalanceTree },
acct?: Account,
};
export type BalanceSheet = {
name: string,
type: 'mkt' | 'tax',
date: Moment,
tree: BalanceTree,
};
export type QuarterBalanceSheet = {
name: string,
year: number,
quarter: number,
balancesheet: BalanceSheet,
}
export type AnnualBal... | Typescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.