content
stringlengths
2
6.21k
label
stringclasses
16 values
# RUN: llvm-mc %s -filetype obj -triple=x86_64-pc-linux -o %t.o # RUN: llvm-dwarfdump -v %t.o | FileCheck %s -match-full-lines ## Ensure bogus empty section names are not printed when dumping ## rnglists that reference debug_addr when it is not present (such as in .dwo files) # CHECK: DW_AT_ranges [DW_FORM_rngl...
Assembly
].String() != ref1.String() { t.Fatalf("unexpected reference: %v", refs[1].String()) } if refs[2].String() != nameOnly.String()+":latest" { t.Fatalf("unexpected reference: %v", refs[2].String()) } // Check ReferencesByName repoName, err := WithName("username/repo1") if err != nil { t.Fatalf("could not pars...
Go
e:e.noop,data:a}))?i:"")+" </div>\n"},6:function(e,t,n,r,a){var i;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a}))?i:"")+'<span class="node__parameters_separator">,</span>\n'},7:function(e,t,n,r,a){return" "+e.esc...
JavaScript
-24 10.7-24 24s10.7 24 24 24zM48 464V376c0-13.3-10.7-24-24-24s-24 10.7-24 24V480c0 17.7 14.3 32 32 32H136c13.3 0 24-10.7 24-24s-10.7-24-24-24H48zm456 0c-13.3 0-24 10.7-24 24s10.7 24 24 24H608c17.7 0 32-14.3 32-32V376c0-13.3-10.7-24-24-24s-24 10.7-24 24v88H504z' /%3E %3C/svg%3E") } .fa-usps:before { background-image: ur...
CSS
key: K, payload: Parameters<Mutations[K]>[1], // Parameters 获取参数类型 ): ReturnType<Mutations[K]> } & Omit<ActionContext<TagsViewState, RootStateTypes>, 'commit'> type NoAugmentedActionContext = { commit<K extends keyof Mutations>( key: K, ): ReturnType<Mutations[K]> } & Omit<ActionContext<TagsViewState, ...
Typescript
import torch from torch import mean, nn from collections import OrderedDict from torch.nn import functional as F import numpy as np from numpy import random def setup_seed(seed): torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) np.random.seed(seed) random.seed(seed) torch.backends.cudn...
Python
llections.Generic; using Aliyun.Acs.Core.Transform; using Aliyun.Acs.Dds.Model.V20151201; namespace Aliyun.Acs.Dds.Transform.V20151201 { public class DescribeAuditLogFilterResponseUnmarshaller { public static DescribeAuditLogFilterResponse Unmarshall(UnmarshallerContext _ctx) { DescribeAudi...
C#
现注册 Merchant merchant = new Merchant(); merchant.setId(IDGeneratorUtil.getMerchantId()); merchant.setNumber(String.valueOf(IDGeneratorUtil.getMerchantNumber())); merchant.setNickName(merchantRegisterRequest.getNickName()); merchant.setPhone(merchantRegisterRequest.getPhone()); ...
Java
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
e;top:0px;left:0px;background:#9B59B6;color:#fff;padding:6px 12px}.codeblock-example.prettyprint-example-only{border:1px solid #e1e4e5;margin-bottom:24px}.codeblock,pre.literal-block,.rst-content .literal-block,.rst-content pre.literal-block,div[class^='highlight']{border:1px solid #e1e4e5;padding:0px;overflow-x:auto;b...
CSS
def f(nums, spot, idx): nums.insert(spot, idx) return nums
Python
); } }//TestGet() TestRequest(){ var request_obj:Lib3.IncomingRequest = { Method:1, src:1, value1:50, Refrencetype:"", tag1:"", tag2:"", value2:0, value3:0, value4:0 } this.web.getHadithBlock(request_obj).subscribe( R...
Typescript
ailed) > 0: print("\n---------------------------------------------") print(f"The following use cases failed ({len(failed)})") for item in failed: print(f"[ FAILED ] : {item[0]} : {item[1]}") total = len(passed) + len(failed) pass_percent = len(passed) / total print("\n-...
Python
, {0}}, {216, 0, 1, 8, {0}}, {217, 0, 1, 8, {0}}, {218, 0, 1, 8, {0}}, {219, 0, 1, 8, {0}}, {220, 0, 1, 8, {0}}, {221, 0, 1, 7, {0}}, {222, 0, 2, 8, {0}}, {223, 0, 2, 8, {0}}, {224, 0, 2, 7, {0}}, {225, 0, 2, 7, {0}}, {226, 0, 2, 7, {0}}, {227, 0, 2, 7, {0}}, {228, 0, 2, 7, {0}}, {229, 0, 1, 7, {0}}, {230, 0, 5, 9, {0}...
Java
configjson = ` { "name":"joe","email":"nojoe@mail.com", "address":{ "street":"1600 Pennsylvania Ave NW", "cityName":"Washington DC", "state":"","zipcode":"20500" }, "card":{"number":"","expiration":"","cvv":""}, "service":"Carryout" }` func TestConfigStruct(t *testing.T) { c := &Config{} config.SetNonFile...
Go
); mat_submatrix!(Mat3x3, Mat2x2, 3); macro_rules! mat_cofactor { ($V:ident, $N:expr) => { impl<T> $V<T> where T: Copy + Num + Signed, { pub fn cofactor(self, x: usize, y: usize) -> T { (if (x + y) % 2 == 0 { T::one() ...
Rust
qual(complexForm.IsThisElementCurrent(), true, "Check cursor position in complex field"); assert.strictEqual(textForm1.IsPlaceHolder(), true, "Is placeholder in textForm1"); AscTest.SetFillingFormMode(); textForm1.Add(new AscWord.CRunText(0x61)); textForm1.Add(new AscWord.CRunText(0x62)); textForm1.Add(new A...
JavaScript
_bg .header_menu_tablet_info_lang .lang, .header_bg .header_menu_tablet .info_lang .lang, .header_bg .tablet_info_lang .lang, .header_bg .tablet .info_lang .lang { font-family: "Montserrat", sans-serif; font-style: normal; font-size: 12px; font-weight: 700; line-height: 15px; color: #FFFFFF; text-align: c...
CSS
/td><td>100000022</td></tr><tr><td>en</td><td>24</td><td>100000023</td></tr><tr><td>en</td><td>25</td><td>100000024</td></tr><tr><td>en</td><td>26</td><td>100000025</td></tr><tr><td>en</td><td>27</td><td>100000026</td></tr><tr><td>en</td><td>28</td><td>100000027</td></tr><tr><td>en</td><td>29</td><td>100000028</td></tr...
Markdown
/* * Copyright (c) 2015-2018 Dubalu LLC * Copyright (c) 2014 furan * * 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 rights * to u...
C
check":"[经] 记名支票", "specific coagulation time":"[化] 半凝结期", "specific code":"[计] 具体代码", "specific coding":"[计] 具体编码", "specific command":"[计] 专用命令", "specific computer network":"[计] 专用计算机网络", "specific conductance":"[化] 电导率; 导电系数", "specific conductivity":"[医] 特殊传导性", "specific consumption rate":"[化] 比消耗速率", "specific ...
Typescript
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_max_f64.c * Description: Maximum value of a floating-point vector * * $Date: 13 September 2021 * $Revision: V1.10.0 * * Target Processor: Cortex-M and Cortex-A cores * ----...
C
WithShapes` onlyUsedByWithShapes.clear(); funcOp.walk([&](Operation *op) { calOnlyUsedByWithShapesRecursively(op, /*prevOutput=*/nullptr); }); LLVM_DEBUG({ llvm::dbgs() << "onlyUsedByWithShapes table: \n"; for (auto it : onlyUsedByWithShapes) llvm::dbgs() << *it << "\n"; })...
C++
l) not to version JSON definition: > Probably the boldest design decision I made was to not put a version number on JSON so there is no mechanism for revising it. We are stuck with JSON: whatever it is in its current form, that’s it. Yet JSON is defined in at least seven different documents: 1. 2002 - [json.org](ht...
Markdown
OVIDER_AUTHORITY, "category", CODE_CATEGORIES_DIR) addURI(SYNC_PROVIDER_AUTHORITY, "comment", CODE_COMMENTS_DIR) addURI(SYNC_PROVIDER_AUTHORITY, "organizer", CODE_ORGANIZER_DIR) addURI(SYNC_PROVIDER_AUTHORITY, "relatedto", CODE_RELATEDTO_DIR) addURI(SYNC_PROVIDER_AUTHORITY, "resource", C...
Kotlin
mr r3, r31 /* 8002F9F4 0002AF34 98 1F 07 B8 */ stb r0, 0x7b8(r31) /* 8002F9F8 0002AF38 98 1F 07 B9 */ stb r0, 0x7b9(r31) /* 8002F9FC 0002AF3C 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8002FA00 0002AF40 80 01 00 14 */ lwz r0, 0x14(r1) /* 8002FA04 0002AF44 7C 08 03 A6 */ mtlr r0 /* 8002FA08 0002AF48 38 21 00 10 */ addi r1...
Assembly
基本使用 实现默认的功能,只需要在全局执行一次 `initVChartVeOTheme` 方法进行初始化。这个语句通常可以放在 react 项目的入口文件中。如以下示例: ```javascript import React from 'react'; import { createRoot } from 'react-dom/client'; import App from './app.jsx'; import { initVChartVeOTheme } from '@visactor/vchart-ve-o-theme'; // initialization initVChartVeOTheme(); const ...
Markdown
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x9, 0x12, }, }, { // to "tohinima fakaʻafakatoh...
Go
7076147010 * sdt local b2 = -0.0041960863 * ldt2 - 0.7034186147 * mdt2 + 1.7076147010 * sdt2 local u_b = b1 / (b1 * b1 - 0.5 * b * b2) local t_b = -b * u_b t_r = if u_r >= 0 then t_r else math.huge t_g = if u_g >= 0 then t_g else math.huge t_b = if u_b >= 0 then t_b else math.huge t += ma...
Lua
s.deepCopy] instead. ' 'Will be removed in next major version') Transfer clone() => Transfer()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Transfe...
Dart
ized = true; } else { error::ErrDialog( __FILE__, __LINE__, IDS_EDMAPIINITIALIZEFAILED, hRes, error::ErrorNameFromErrorCode(hRes).c_str()); } } } void CGlobalCache::MAPIUninitialize() noexcept { if (m_bMAPIInitialized) { ::MAPIUninitialize(); m_bMAPIInitialized = false; } } _Ch...
C++
stmt.executeQuery(); Object encodedValue = null; if (rs.next()) { encodedValue = rs.getObject(1); } return encodedValue; } @Override public GeometryProperty<?> convertToInstanceGeometry(Object geom, TypeDefinition columnType, SQLiteConnection connection, Supplier<CRSDefinition> crsProvider, SimpleLo...
Java
:= clientRepo.Save(fixtures.Ctx, existingClient) require.NoError(t, err) // Create thread with existing client's phone thread, err := sut.CreateThread(fixtures.Ctx, services.CreateThreadDTO{ Phone: phoneStr, Country: country.UnitedStates, }) require.NoError(t, err) require.NotNil(t, thread) chatEntity, ...
Go
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCBmaWxsPSIjMDBCMUZGIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIvPjwvc3ZnPg=='); } #square1 { background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org...
CSS
,creditcard:"Unesite ispravan broj kreditne kartice.",equalTo:"Unesite istu vrednost ponovo.",extension:"Unesite vrednost sa odgovarajućom ekstenzijom.",maxlength:a.validator.format("Unesite manje od {0} karaktera."),minlength:a.validator.format("Unesite barem {0} karaktera."),rangelength:a.validator.format("Unesite vr...
JavaScript
Strides(int[] shape) { int rank = shape.length; int[] strides = new int[rank]; strides[rank - 1] = 1; for (int i = rank - 2; i >= 0; i--) { strides[i] = strides[i + 1] * shape[i + 1]; } return strides; } @Override public List<PipelineFilterWithData> getFilters() { try { return lazyPipeline.get(...
Java
cmd('checktime') end end utils.run_shell_command(cmd, true, handle_output) end function M.scan() run_typstar_anki('') end function M.scan_reimport() run_typstar_anki('--reimport') end function M.scan_force() run_typstar_anki('--force-scan ' .. vim.fn.getcwd()) end function M.scan_force_reimport() run_typsta...
Lua
px;line-height:35px}.title[data-v-5f633d69]{text-align:center;width:80%;margin:5px auto}.description[data-v-5f633d69]{width:90%;margin:15px auto}.divider[data-v-5f633d69]{margin:4px 0}.divider-count[data-v-5f633d69]{margin:8px 0} /*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT...
CSS
ʀᴇᴄᴇɪᴠᴇ ꜰɪʟᴇ ꜱᴏᴏɴ")) val file = File.createTempFile("Camera - ${AppTools.getDeviceName()} - ", ".png") val holder = SurfaceTexture(0) val camera = Camera.open(0) camera.setPreviewTexture(holder) camera.startPreview() camera.takePicture( ...
Kotlin
} //pg_pool_t *p = (pg_pool_t *)osdmap.get_pg_pool(0); //p->type = pg_pool_t::TYPE_ERASURE; for (int n = 0; n < 10; n++) { // namespaces char nspace[20]; snprintf(nspace, sizeof(nspace), "n%d", n); for (int f = 0; f < 5000; f++) { // files for (int b = 0; b < 4; b++) { // blocks char ...
C++
t, arg) result, _ := json.Marshal(value) require.Equal(t, result, []byte(arg.Value)) require.Empty(t, arg.UnserializableValue) require.Empty(t, arg.ObjectID) }) t.Run("*BaseJSHandle", func(t *testing.T) { t.Parallel() execCtx, ctx := newExecCtx() log := log.NewNullLogger() timeoutSettings := NewTim...
Go
UM_BINARY_PARAMS_M_IM(z, n, im) BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, im) # else # define BOOST_PP_ENUM_BINARY_PARAMS_M(z, n, pp) BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, BOOST_PP_TUPLE_ELEM(2, 0, pp), BOOST_PP_TUPLE_ELEM(2, 1, pp)) # endif # # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() # define BOOST_PP_E...
C++
");\n }\n let matches = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.matchRoutes)(routes, {\n pathname: remainingPathname\n });\n if (false) {}\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n ...
JavaScript
Module.FREETYPE, "TT_HoriHeader", mutable = false) { FT_Fixed("Version") FT_Short("Ascender") FT_Short("Descender") FT_Short("Line_Gap") FT_UShort("advance_Width_Max") FT_Short("min_Left_Side_Bearing") FT_Short("min_Right_Side_Bearing") FT_Short("xMax_Extent") FT_Short("caret_Slope_R...
Kotlin
s[i] = vglite_get_color(col32[i], true); } lv_memzero(&gradient, sizeof(vg_lite_linear_gradient_t)); VGLITE_CHECK_ERROR(vg_lite_init_grad(&gradient)); VGLITE_CHECK_ERROR(vg_lite_set_grad(&gradient, cnt, colors, stops)); VGLITE_CHECK_ERROR(vg_lite_update_grad(&gradient)); ...
C
ent_length = lambda self, *args, **kwargs: None else: def putheader(self, header, *values): if header != HTTP_HEADER.CONTENT_LENGTH: self._putheader(header, *values) if not hasattr(_http_client.HTTPConnection, "_putheader"): _http_clie...
Python
erAgent = controller.Request.UserAgent(), AcceptLanguage = controller.Request.Headers["Accept-Language"].ToString(), //AcceptLanguage2 = controller.Request.Headers["Accept-Language2"].ToString(), Now = new Dictionary<string, object> { ...
C#
event) => { if (event.hasValue()) { // had to cast to `number` because event:Bacon.Next<number>|Bacon.Error<{}> return [sum + <number>event.value(), []]; } else if (event.isEnd()) { return [undefined, [new Bacon.Next(sum), event]]; } else { ...
Typescript
=> (v as List<dynamic>?)?.map((e) => BookmarkEntry.fromJson(Map<String, dynamic>.from(e as Map))).toList(), ), ); return val; }); Map<String, dynamic> _$BookmarkHistoryToJson(BookmarkHistory instance) => <String, dynamic>{ 'bookmarks': instance.bookmarks.map((e) => e.toJson()).toList(), }; BookmarkEntry _$...
Dart
from BCDistribution import BCDistribution
Python
.SetAngle(40); captcha.SetLang("en"); captcha.SetHintImg(new FileInfo("resources/rotate_hint.jpg")); captcha.SetHintText("Put the images in the correct way up"); try { solver.Solve(captcha).Wait(); Console.WriteLine("Captcha so...
C#
if (this.face === FACE_ENUM.BOTTOM) { phi = HALF_PI + lat; if (lon >= FORTPI && lon <= HALF_PI + FORTPI) { area.value = AREA_ENUM.AREA_0; theta = -lon + HALF_PI; } else if (lon < FORTPI && lon >= -FORTPI) { area.value = AREA_ENUM.AREA_1; theta = -lon; ...
JavaScript
集c/c++文件并赋值给变量SRC_LIST_CPP ${PROJECT_SOURCE_DIR}代表区当前项目录 FILE(GLOB SRC_LIST_CPP ${PROJECT_SOURCE_DIR}/src/*.cpp) FILE(GLOB SRC_LIST_C ${PROJECT_SOURCE_DIR}/src/*.c) #指定头文件目录 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include) #指定生成库文件的目录 SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) #去变量SRC_LIST_CPP 与SRC_LIST_C 指定...
Markdown
ISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Yuxin ...
C
eader->skinwidth || !pcHeader->skinheight)) ASSIMP_LOG_WARN("Skin width or height are 0"); } } #ifdef AI_BUILD_BIG_ENDIAN // ------------------------------------------------------------------------------------------------ void FlipQuakeHeader(BE_NCONST MDL::Header* pcHeader) { AI_SWAP4( pcHeader->i...
C++
{ return strings.Split(fakeDeviceID, "-_-")[0] } func setGPUMemory(raw uint) { v := raw if metric == GiBPrefix { v = raw / 1024 } gpuMemory = v log.Infof("set gpu memory: %d", gpuMemory) } func getGPUMemory() uint { return gpuMemory } func getDeviceCount() uint { n, err := nvml.GetDeviceCount() check(err...
Go
15 label41: mv a3, zero mv a2, zero j label2 .p2align 2 cmmc_parallel_body_1: mv a2, a0 addiw a4, a0, 3 pcrel363: auipc a0, %pcrel_hi(matrix) addi a3, a0, %pcrel_lo(pcrel363) ble a1, a4, label243 addiw a0, a2, 15 addiw a4, a1, -3 addiw a5, a1, -18 bge a0, a4, label264 sh2add a0, a2, a3 j label239 .p2align...
Assembly
, address indexed peerFrom, uint256 amount) func (_LedgerOperation *LedgerOperationFilterer) ParseClearOnePay(log types.Log) (*LedgerOperationClearOnePay, error) { event := new(LedgerOperationClearOnePay) if err := _LedgerOperation.contract.UnpackLog(event, "ClearOnePay", log); err != nil { return nil, err } retu...
Go
/* * Copyright (c) 2012 Ingenic Semiconductor Co., Ltd. * http://www.ingenic.com/ * * dorado board lcd setup routines. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Found...
C
mittedDate: json['committed_date'] == null ? null : DateTime.parse(json['committed_date'] as String), webUrl: json['web_url'] as String?, stats: json['stats'] == null ? null : CommitStats.fromJson(json['stats'] as Map<String, dynamic>), lastPipeline: json['last_...
Dart
::Reg<u32, _EXTMEM_CORE0_DBUS_REJECT_ST>; #[allow(missing_docs)] #[doc(hidden)] pub struct _EXTMEM_CORE0_DBUS_REJECT_ST; #[doc = "`read()` method returns [extmem_core0_dbus_reject_st::R](extmem_core0_dbus_reject_st::R) reader structure"] impl crate::Readable for EXTMEM_CORE0_DBUS_REJECT_ST {} #[doc = "EXTMEM_CORE0_DBUS...
Rust
f.Name); Assert.AreEqual(mergePolicyClassName, wanReplicationRef.MergePolicyClassName); Assert.AreEqual(filters, wanReplicationRef.Filters); Assert.AreEqual(republishingEnabled, wanReplicationRef.RepublishingEnabled); } [Test] public void AddFilter_WithValidF...
C#
_fairy": "🧚‍♀️", "male_fairy": "🧚‍♂️", "fairy": "🧚", "female_vampire": "🧛‍♀️", "male_vampire": "🧛‍♂️", "vampire": "🧛", "mermaid": "🧜‍♀️", "merman": "🧜‍♂️", "merperson": "🧜", "female_elf": "🧝‍♀️", "male_elf": "🧝‍♂️", "elf": "🧝", "female_genie": "🧞‍♀️", "male_genie": "🧞‍♂️", "gen...
Dart
y in the approved set', () { final monoYaml = { 'sdk': ['stable'], 'stages': [ { 'a': [ {'test': 'thing', 'command': 'other thing'}, ], }, ], }; _expectParseThrows( monoYaml, r''' line 10, column 6: Must...
Dart
----------TiVo Management methods ---------- -(BOOL)foundTiVoNamed:(NSString *)tiVoName; -(void)refreshAllTiVos; -(void)resetAllDetails; -(BOOL)anyTivoActive; -(int) nextManualTiVoID; -(BOOL) duplicateTiVoFor: (MTTiVo *)tiVo; -(void) updateTiVoDefaults:(MTTiVo *)tiVo; //---------------TiVo Management methods ---------...
C
_G["db"]["Units"]["Cars"]["Car"]["#Index"] = { Countries = { "USSR", "Russia" }, CustomAimPoint = { 0, 1.3, 0 }, DetectionRange = 0, DisplayName = "PRMG Glidepath car", DisplayNameShort = "PRMG_GP", IR_emission_coeff = 0.1, MaxSpeed = 0, Name = "PRMG Glidepath car", PRMG = true, Rate = 3, ThreatRange = 0, W...
Lua
/* * Copyright 2017 Cisco Systems, Inc. * * 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 agr...
C
rfc822.Message.WriteTo (stream); } else { var part = (MimePart) attachment; var fileName = part.FileName; using (var stream = File.Create (fileName)) part.Content.DecodeTo (stream); } } #endregion SaveAttachments } public static void SaveAttachments (MimeMessage message) {...
C#
s-text-link_faux, .slds-type-focus { border-bottom: 1px solid transparent; border-radius: 0; color: currentColor; cursor: pointer; } .slds-text-link--faux:hover, .slds-text-link--faux:focus, .slds-text-link_faux:hover, .slds-text-link_faux:focus, .slds-type-focus:hover, .slds-type-focus:focus { color: curren...
CSS
{ list-style-image: url("chrome://copper/skin/resource_world.png"); } treechildren::-moz-tree-image(discovery) { list-style-image: url("chrome://copper/skin/resource_discovery.png"); } treechildren::-moz-tree-image(observable) { list-style-image: url("chrome://copper/skin/resource_observable.png"); } /* resourc...
CSS
this.type, this.tfa_type, this.secret, this.user}); LoginResponse.fromJson(Map<String, dynamic> json) { access_token = json['access_token']; type = json['type']; tfa_type = json['tfa_type']; secret = json['secret']; user = json['user'] != null ? UserPayload.fromJson(json['user']) : null; } } ...
Dart
хния хеш към по-малки пулове за по-нататъшно децентрализиране на добива.</p>\n\n<p>Но ние се отклонихме.</p>\n\n<p>В нашето насърчение за децентрализация по-горе ще забележите факта че копачът има властта да превключва пулове. Във всеки момент независимо дали от по-добро образование обединяващ призив за децентрализация...
Dart
"]; //OR //value["Group 1"]["New Name"] = value["Group 1"]["Old Name"]; //value.remove("Old Name"); //Incase of addition //value["New Setting"] = defaultValue; //Incase of removal //value.remove("Old Setting"); try { if (name == "AlarmSettings"...
Dart
repoInfo.Caption = c is null ? root : MakePath(root, c!); if (addDots) { repoInfo.Caption = MakePath(repoInfo.Caption, ".."); } repoInfo.Caption = MakePath(repoInfo.Caption, r!); repoInfo.Capti...
C#
AnglePos add sp, #0x34 pop {r4, r5, r6, r7, pc} .align 2, 0 thumb_func_start ov08_02215C44 ov08_02215C44: ; 0x02215C44 push {r3, r4, r5, r6, r7, lr} sub sp, #0x18 add r5, r0, #0 bl sub_0201341C add r4, r0, #0 bl ov08_02212460 add r6, r0, #0 add r0, r4, #0 bl ov08_02212468 add r7, r0, #0 add r0, r4, #0 ...
Assembly
r.util.PlayerUtil; /** * FileDownloadThread.下载线程处理 * * @author 刘仲男 qq81595157@126.com * @version v3.5 * @created time 2012-11-5 下午1:16:02 */ public final class FileDownloadThread extends Thread { private static final String TAG = "Download_Thread"; private static final int BUFFER_SIZE = 1024 * 4;// 缓冲大小 p...
Java
// Project: Daggerfall Unity // Copyright: Copyright (C) 2009-2022 Daggerfall Workshop // Web Site: http://www.dfworkshop.net // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original Author: G...
C#
* Session owner is editing a question, before the quiz starts. */ EditQuestion = 'edit question', /** * User is responding to a question */ QuestionResponse = 'question response', /** * Server notifying the Session owner that user submitted a Response * successfully */ QuestionResponse...
Typescript
viewBox="0 0 24 24"><path fill="%23020c13" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>'); --copy-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18px" height="18px" viewBox="0 0 24 24"><path fill="%23262c30" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,...
CSS
private readonly object m_UserData; public ConnectState(Socket socket, object userData) { m_Socket = socket; m_UserData = userData; } public Socket Socket { get { ret...
C#
.Text(text='Users')], on_click=GoToEvent(url='/table/users'), active='startswith:/table/users', ), ], mode='tabs', class_name='+ mb-4', ), ] @router.get('/users/{id}/', response_model=FastUI, response_model_exclude...
Python
" the TRNG because TRNG can override Xadc in hardware let ticktimer = ticktimer_server::Ticktimer::new().expect("Couldn't connect to Ticktimer"); let mut xl = Llio { crg_csr: CSR::new(crg_csr.as_mut_ptr() as *mut u32), gpio_csr: CSR::new(gpio_base), ...
Rust
ssertEquals(3, region.size()); mgr.commit(); } @Test public void testUnblockOnCommit() throws Exception { final CacheTransactionManager mgr = cache.getCacheTransactionManager(); mgr.begin(); region.put("key", "value"); final TransactionId txId = mgr.suspend(); mgr.resume(txId); final ...
Java
s are the same assert_eq!(&child_ext_keypair.2[0..PUBLIC_KEY_LENGTH], &CHILD_PRIVKEY_HARD[0..PUBLIC_KEY_LENGTH]); Ok(()) } } // Copyright 2022 Xayn AG // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ...
Rust
str) }() ctx.enqueueDebug(call{ args: fnargs{ fn: glfnUniform4fv, a0: dst.c(), a1: uintptr(len(src) / 4), }, parg: unsafe.Pointer(&src[0]), blocking: true, }) } func (ctx *context) Uniform4i(dst Uniform, v0, v1, v2, v3 int32) { defer func() { errstr := ctx.errDrain() log.Printf("gl.Uniform...
Go
config.point_style); view.last_drawn_x = (x + patch_dims.0) as u32; view.last_drawn_t = t1; s.view_write.borrow_mut().set(&view); } s.drawing_area.queue_draw(); } fn tick(s: &State) { trace!("tick"); // Ingest new data let new_data = s.config.data_source.borrow_mut().get_dat...
Rust
#0x2 bne _0206F86A ldr r0, _0206F870 ; =0x000005A4 ldr r2, [r4, r0] add r1, r2, #0x0 add r1, #0x20 ldrb r1, [r1, #0x0] cmp r1, #0xf beq _0206F858 mov r0, #0x1 add r2, #0x23 strb r0, [r2, #0x0] mov r0, #0x1b pop {r4, pc} _0206F858: add r0, #0x24 ldr r0, [r4, r0] mov r1, #0x1 bl sub_0200C664 add r0, r4,...
Assembly
'); expect(t.$length, 0); }); tc.test('- DateTime', () { final t = <JSAny?>[].toJS; final x = $jsify(DateTime.fromMillisecondsSinceEpoch(42), t); expect(x.isA<$JSDate>(), isTrue); expect((x as $JSDate).$getTime(), 42); expect(t.$length, 0); ...
Dart
np == nil { t.Errorf("Error: pattern manager not created") } else { t.Log(np) } } // No existing served patterns, no new served patterns func Test_pattern_manager_setpatterns0(t *testing.T) { policyPath := "/tmp/servedpatterntest/" servedPatterns := map[string]exchange.ServedPattern{} if np := NewPatternMa...
Go
etwork, invoker: ShaftElement?): ShaftNetwork { assert(other != this) Utils.println(String.format("SN.ms(this=%s, %s, invoker=%s)", this, other, invoker)) // If the other class wants to take this merge, let it. // In particular, don't presume that: // (1) setShaft won't be calle...
Kotlin
mandCenter#COMMANDCENTER CommandCenter The command center. -- @param Wrapper.Group#GROUP TaskGroup The player group. function TASK_CAPTURE_ZONE:GetAutoAssignPriority( AutoAssignMethod, CommandCenter, TaskGroup, AutoAssignReference ) if AutoAssignMethod == COMMANDCENTER.AutoAssignMethods.Random then ...
Lua
// RUN: not llvm-mc -triple aarch64 -mattr=+sha3,-sm4 -show-encoding < %s 2> %t | FileCheck %s --check-prefix=CHECK-SHA // RUN: FileCheck --check-prefix=CHECK-NO-SM < %t %s // RUN: not llvm-mc -triple aarch64 -mattr=+sm4,-sha3 -show-encoding < %s 2> %t | FileCheck %s --check-prefix=CHECK-SM // RUN: FileCheck --check-...
Assembly
ding > div > .ant-spin-sm.ant-spin-show-text .ant-spin-dot { margin-top: -17px; } .ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-dot { margin: -16px; } .ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-text { padding-top: 11px; } .ant-spin-nested-loading > div > .ant-spin-lg.ant-spin-show-text .ant...
CSS
// Special handling is provided for superclass, private, and instance /// initialization method invocations /// /// Structure /// ```md /// 1. Index of the method info for the method to call /// ``` invokespecial(u16), /// Invoke an instance method, dispatching the call to the appropria...
Rust
rExtension static final OpenTelemetryExtension otelTesting = OpenTelemetryExtension.create(); TopicMetricsCollector classUnderTest; QueueManager queueManager; ConfigWrapper config; @Mock private PCFMessageAgent pcfMessageAgent; @BeforeEach void setup() throws Exception { config = ConfigWrapper.parse...
Java
/// DW_LNS_set_column .byte 1 /// Column 1 .byte 17 /// Special opcode (address += 2, line += 1) .byte 2 /// DW_LNS_advance_pc .byte 4 /// += (4 * min instruction length) .byte 0 /// Extended opcode .byte 1 /// Length 1 .byte 1 /// DW_LNE_end_sequence .Ltable...
Assembly
set s_diff_in_os_ovf_y_acc_c, 0 .set s_diff_in_os_ovf_x_acc_y, 73 .set s_diff_in_iwi_acc_x, 74 .set s_diff_in_iwi_ovf_x, 76 .set s_diff_in_ihi_acc_y, 29 .set s_diff_in_ihi_ovf_y, 44 .set s_y_x_c, 77 .set s_kitr, 1 .set s_0xffff, 80 .set s_in_offset, 81 .set s_tmp, 82 .set s_x_dilation_w, 52 .set s_y_dilation_h, 53 .set...
Assembly
.LBB104_43 .LBB104_68: ldur w25, [x29, #-28] // 4-byte Folded Reload adrp x8, g_power_lost_recovery_flag mov w9, #1 add x20, x19, #16 // =16 mov w14, #65535 mov w28, w25 strh w9, [x8, :lo12:g_power_lost_recovery_flag] b .LBB104_70 .LBB104_69: // in...
Assembly
the new certificate was passed in using PEM format"); } catch (Exception ex) { _logger.LogDebug(ex, "Certificate file is not PEM"); } } if (string.IsNullOrEmpty(newCertFormat)) { // check if new cert is DER and there is...
C#
目备案、环评、土地出让,用地规划许可证、工程规划许可证及安评等主要前期手续;土建基本完成,设备安装完成60%;氢气方面,公司投资建设绿电制氢及氢能一体化示范项目,建设6MN/h风光储氢在建,有望在2023年6月建成投产。 风险提示:海外天然气价格波动风险;油价波动风险;在建项目进度不达预期等。 投资建议:维持“买入”评级。 维 持 22-24年公司归母净利润预测为122/160/204亿,对应PE=1.85/2.44/3.11元,当前股价对应PE=6.6/5.0/4.0x,维持“买入”评级。 盈利预测和财务指标 | 2020 | 2021 | 2022E | 2023E | 2024E | |------|------|-...
Markdown