content
stringlengths
2
6.21k
label
stringclasses
16 values
itemSel; } else { //JOptionPane.showMessageDialog(this, "Selecione uma porta serial disponivel"); return null; } } private void initPorts() { PortasBalança.setModel(new javax.swing.DefaultComboBoxModel(SerialComm.getListPortIdentifier())); } public...
Java
appliedTo(mapOf( "maxstay" to oneHourStr, "maxstay:conditional" to "no @ ($ohStr)" )) ) } } private fun MaxStay.appliedTo(tags: Map<String, String>): Set<StringMapEntryChange> { val cb = StringMapChangesBuilder(tags) applyTo(cb) return cb.create().cha...
Kotlin
ighter.language.markdown.colorscheme.DarkBackgroundColorScheme class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityMainBinding.inflate(layoutInfla...
Kotlin
(); var documentItem = CreateTestDocument(source); await client.OpenDocumentAndWaitAsync(documentItem, CancellationToken); client.DidChangeTextDocument(new DidChangeTextDocumentParams { TextDocument = new OptionalVersionedTextDocumentIdentifier { Uri = documentItem.Uri, Ver...
C#
L, _T("Attempt to read word value of location %x\n"), sekAddress); } return 0; } static void __fastcall tekipakiWriteByte(UINT32 sekAddress, UINT8 byteValue) { switch (sekAddress) { case 0x180041: break; // (coin ctr stuff) default: bprintf(PRINT_NORMAL, _T("Attempt to write byte value %x to location %x\n")...
C++
nder, opt_typ) => LError::variant_payload( opt_binder, opt_typ, &scrut_type, *constr, pattern.span, ...
Rust
elem.nodeType === 8 ) { return; } var events = jQuery.data( elem, "events" ), ret, type, fn; if ( events ) { // Unbind all events for the element if ( types === undefined || (typeof types === "string" && types.charAt(0) === ".") ) { for ( type in events ) { this.remove( elem, type + (types ||...
JavaScript
}, // methods: { // 'attributes': (visitor, target, args, namedArgs) => (target as Element).attributes, // 'text': (visitor, target, args, namedArgs) => (target as Element).text, // 'querySelector': (visitor, target, args, namedArgs) => // (target as Element).querySelector(args[0] as Str...
Dart
var file = file if (!file.endsWith(".tsv")) { file += ".tsv" } println("Start save tsv file $file") // LHS,只保存了 val matrix = lhsEmbeddings.matrix val cols = matrix.col File(file).bufferedWriter().use { writer -> val size = dict.n...
Kotlin
1 = new JPopupMenu.Separator(); mnuMainMenu.add(separator1); miEditSelectAll = new JMenuItem(LanguageProperties.getString(LanguageProperties.MENUS_BUNDLE, "UIMenuEdit.selectAll")); //$NON-NLS-1$ miEditSelectAll.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_A, shortcutKey)); miEditSelectAll.setMnemonic((L...
Java
he screen'); _startMovement(_MonsterMovement( startingPosition: position.clone()..y -= moveDownHeight, targetPosition: position.clone(), totalSeconds: duration.inMilliseconds / 1000, )); } /// Moves the monster down to the next row void moveDown(Duration duration) { _startMovement(_...
Dart
/* * Copyright (c) 2013 Kevin Wolf <kwolf@redhat.com> * * 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 use, copy, modi...
C
r q[1]=q[1]*r q[2]=q[2]*r q[3]=q[3]*r q[4]=q[4]*t q[5]=q[5]*t q[6]=q[6]*t q[7]=q[7]*t q[8]=q[8]*s q[9]=q[9]*s q[10]=q[10]*s q[11]=q[11]*s q[12]=q[12] q[13]=q[13] q[14]=q[14] q[15]=q[15]}, aO:function(){var t=this.a t[0]=1 t[1]=0 t[2]=0 t[3]=0 t[4]=0 t[5]=1 t[6]=0 t[7]=0 t[8]=0 t[9]=0 t[10]=1 t[11]=0 t[12]=0 t[13]=0 t[1...
JavaScript
ersionSpecifierContext is an interface to support dynamic dispatch. type IVersionSpecifierContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures STRING() antlr.TerminalNode // IsVersionSpecifierContext differentiates from other interfaces. Is...
Go
6574495034888535765114961879601130"); /// /// let diff = (x - expected).abs(); /// assert!(diff < qd!(1e-60)); /// ``` #[inline] fn mul(self, other: &Quad) -> Quad { (*self).mul(*other) } } impl Mul<&Quad> for Quad { type Output = Quad; /// Multiplies this `Quad` by a refer...
Rust
elbow_chart(data, k_range) # Find the "elbow point" using simple heuristic sse_decrease = [sse_values[i - 1] - sse_values[i] for i in range(1, len(sse_values))] decreases = np.array(sse_decrease) normalized_decreases = decreases / decreases[0] # Find where the rate of decrease slows down optim...
Python
_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end86: .size tvmgen_default_fused_reshape_add_reshap...
Assembly
bit` Cmovns_r32_rm32 = 1197, /// `CMOVNS r64, r/m64` /// /// `o64 0F 49 /r` /// /// `CMOV` /// /// `64-bit` Cmovns_r64_rm64 = 1198, /// `CMOVP r16, r/m16` /// /// `o16 0F 4A /r` /// /// `CMOV` /// /// `16/32/64-bit` Cmovp_r16_rm16 = 1199, /// `CMOVP r32, r/m32` /// /// `o32 0F 4A /r` /// /// `CMOV...
Rust
9\u7f51", "time": "2014-08-09 08:06"}, {"weight": 0.5072971501763318, "title": "\u7f8e\u519b\u6218\u673a\u7a7a\u88adISIS\u70ae\u5175\u90e8\u961f", "url": "http://news.ifeng.com/a/20140808/41505444_0.shtml", "text": "\u7f8e\u519b\u6218\u673a\u7a7a\u88adISIS\u70ae\u5175\u90e8\u961f", "source": "\u51e4\u51f0\u7f51", "time...
JavaScript
EditorUIUtil.setupAntialiasing(cg) val lineShift = -myCacheFromY val shift = JBUIScale.scale(EDITOR_FRAGMENT_POPUP_BORDER) + myContentInsets val gutterAT = AffineTransform.getTranslateInstance(-shift.toDouble(), lineShift.toDouble()) val contentAT = AffineTransform.getTranslateInstance((gutterWidth ...
Kotlin
to_cache_prepared(&self) -> bool { true } } impl<T: QueryId, U> QueryId for Bound<T, U> { type QueryId = Bound<T::QueryId, ()>; fn has_static_query_id() -> bool { T::has_static_query_id() } } impl<T, U, QS> SelectableExpression<QS> for Bound<T, U> where Bound<T, U>: AppearsOnTable...
Rust
returns {PageComponent} */ export function createNotificationBanner({ bannerDefinitionKey, titleText, text, html, pageComponents }) { const bannerDefinition = notificationBannerDefinitions[bannerDefinitionKey]; return { type: 'notification-banner', parameters: { titleText: titleText || ('type' i...
JavaScript
icon.p-icon { width: 1rem; height: 1rem; } .p-rating .p-rating-item .p-rating-icon.p-rating-cancel { color: #f44435; } .p-rating .p-rating-item:focus { outline: 0 none; outline-offset: 0; box-shadow: none; } .p-rating .p-rating-item.p-rating-item-active .p-rating-icon { color: #C...
CSS
函数表类法=============== class BeeKeepera { hasMask = 'wang'; } //方法一 let FunClaOne: new() => BeeKeepera; FunClaOne = BeeKeepera; //方法二 interface claFunObj { new():BeeKeepera; } let FunClaTwo:claFunObj; FunClaTwo = BeeKeepera; let claDemoOne = new FunClaOne(); console.log(claDemoOne,11111) let claDemoTwo = new...
Typescript
/ TODO(#388): Fill in remaining tests for this activity. @Test fun testActivity_createIntent_verifyScreenNameInIntent() { val screenName = ExplorationActivity.createExplorationActivityIntent( ApplicationProvider.getApplicationContext(), ProfileId.newBuilder().apply { internalId = internal...
Kotlin
"] = "え", ["う"] = "ぅ", ["ぅ"] = "ゔ", ["ゔ"] = "う", ["お"] = "ぉ", ["ぉ"] = "お", ["か"] = "が", ["が"] = "か", ["き"] = "ぎ", ["ぎ"] = "き", ["く"] = "ぐ", ["ぐ"] = "く", ["け"] = "げ", ["げ"] = "け", ["こ"] = "ご", ["ご"] = "こ", ["さ"] = "ざ", ["ざ"] ...
Lua
setBlocks(15, 16, generator.structureLevel + 2, skywalkAt, 7, 9, wallMaterial); generateLadder(chunk, 15, generator.structureLevel, skywalkAt, 9, BlockFace.SOUTH); // fixed } } } private void generateLadder(RealBlocks chunk, int x, int y1, int y2, int z, BlockFace facing) { boolean doLadder = false; boo...
Java
rror */ retval = usb_register(&usb_storage_driver); if (retval == 0) { pr_info("USB Mass Storage support registered.\n"); usb_usual_set_present(USB_US_TYPE_STOR); } return retval; } static void __exit usb_stor_exit(void) { US_DEBUGP("usb_stor_exit() called\n"); /* Deregister the driver * This will cause d...
C
{ display: grid; margin: 4% auto; height: 100px; grid-template-columns: 30% 15% 10% 15% 30%; grid-template-rows: 100%; justify-items: center; align-items: center; z-index: 100; } .button-recorder { vertical-align: middle; width: 80px; height: 80px; border-radius: 50%; border: 2px solid #...
CSS
} st.verifyPAM(shards) } func TestShardedUnmappedReads(t *testing.T) { tempDir, cleanup := testutil.TempDir(t, "", "") defer cleanup() bamPath := testutil.GetFilePath("//go/src/grail.com/bio/encoding/bam/testdata/170614_WGS_LOD_Pre_Library_B3_27961B_05.merged.10000.bam") pamPath := filepath.Join(tempDir, "test")...
Go
size.height) @Stable data class PointF( var x: Float, var y: Float ) fun List<PointF>.copy(): List<PointF> = map { it.copy() }.toMutableList() @Stable class Parabola( point1: PointF, point2: PointF, point3: PointF ) { private val a: Float private val b: Float private val c: Float ...
Kotlin
ady loading".ToRed()); yield return null; } loadedScenes.Add(sceneName); AsyncOperation asyncOperation = SceneManager.LoadSceneAsync(sceneName, isAdditive ? LoadSceneMode.Additive : LoadSceneMode.Single); if (asyncOperation == null) yield return null; ...
C#
%r11, 2) prefetcht0 191(%r13, %r11, 2) prefetcht0 0(%r13, %r12) prefetcht0 64(%r13, %r12) prefetcht0 128(%r13, %r12) prefetcht0 191(%r13, %r12) #if MACRO_LEVEL>=1 .endm #else ret FUN_END(inner_prefetch0_24x8_lib) #endif // common inner routine with file scope // // prefetch // // input arguments: // r10 ...
Assembly
); rftc.btnToggleInfoN.setText(Messages.HandleFirstTab_24); } } /** * update limit fields (single mode) each time you enter a char * @param rftc */ public void updateLimitFieldsSingle(RabinFirstTabComposite rftc) { String strLowLim = rftc.txtLowLimPQSingle.getText(); String strUpperLim = rftc.txtU...
Java
/* === This file is part of Calamares - <https://calamares.io> === * * SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org> * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * * */ #ifndef UTILS_TRAITS_H #define UTILS_TRAITS_H #include...
C
d `OpVec` type /// aliases. #[derive(Debug, Clone)] pub enum ScalarOrVector<T> { Scalar(T), Vector(Vec<T>), } impl<T: fmt::Display> fmt::Display for ScalarOrVector<T> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { match self { ScalarOrVector::Scalar(scalar) => fmt::Displ...
Rust
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s // ------------------------------------------------------------------------- // // Invalid element width sqxtnt z0.b, z1.b // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width // CHECK-NEXT: sqxtnt z0.b, z1.b // CHECK-...
Assembly
return false; } } protected virtual string VerifiedNodesValueFactory() { var singleLocalNode = "localhost:29092"; if (TryConnect(singleLocalNode, out _)) return singleLocalNode; if (Url.Value.Length == 0) throw new InvalidOperationException($"Envi...
C#
', {'cost': 1}) private_delete_spot_order = privateDeleteSpotOrder = Entry('spot/order', 'private', 'DELETE', {'cost': 1}) private_delete_spot_order_client_order_id = privateDeleteSpotOrderClientOrderId = Entry('spot/order/{client_order_id}', 'private', 'DELETE', {'cost': 1}) private_delete_margin_position ...
Python
", "xsrf", "jwt") val merged = mutableMapOf<String, String>() val criticalCookies = mutableMapOf<String, String>() // 各Cookie文字列を処理(左から右へ、後勝ち) cookieStrs.forEach { cookieStr -> val parsed = parseCookieString(cookieStr) parsed.forEach { (key, value) -> ...
Kotlin
out.append(OC_rdreset) } out.append(be1...) out.appendValue(bv1) out.append(be2...) out.appendValue(bv2) out.append(be3...) out.appendValue(bv3) out.append(OC_ifelse) } } else { if bv1.ToB() { bv = bv2 } else { bv = bv3 } } case "ailevel": out.append(OC_a...
Go
s, and Terminal to allow for smoother troubleshooting. ### UI Improvements The UI will be improved to add tabs to a pod detail page. The tabs will include: - Details - Logs - Terminal End users can switch between the Details, Logs, and Terminal tabs without reloading the page. Users can switch tabs without ending a...
Markdown
.Info(fmt.Sprintf("Deleting network `%s`", networkName)) ctxDeleteNetwork, cancelNetwork := context.WithTimeout(context.Background(), time.Second*120) operation, err := sessions.Network.Delete(ctxDeleteNetwork, &computepb.DeleteNetworkRequest{ Project: options.ProjectID, Network: networkName, }) if err !=...
Go
("", ""); assertEquals("patch_make: Null case.", "", dmp.patch_toText(patches)); String text1 = "The quick brown fox jumps over the lazy dog."; String text2 = "That quick brown fox jumped over a lazy dog."; String expectedPatch = "@@ -1,8 +1,7 @@\n Th\n-at\n+e\n qui\n@@ -21,17 +21,18 @@\n jump\n-ed\n+...
Java
// // OpenCover - S Wilde // // This source code is released under the MIT License; see the accompanying license file. // using OpenCover.Framework.Model; namespace OpenCover.Framework.Service { /// <summary> /// Defines the tye of operations the profiler will make /// </summary> public interface IPr...
C#
22 {k6} {z}, zmm9, ymm12, 171 // CHECK: encoding: [0x62,0xc3,0xb5,0xce,0x1a,0xf4,0xab] vinsertf64x4 zmm22 {k6} {z}, zmm9, ymm12, 171 // CHECK: vinsertf64x4 zmm22, zmm9, ymm12, 123 // CHECK: encoding: [0x62,0xc3,0xb5,0x48,0x1a,0xf4,0x7b] vinsertf64x4 zmm22, zmm9, ymm12, 123 // CHECK: vinsertf64x4...
Assembly
| CSDN | GitHub | Hexo | |:----:|:------:|:----:| | [Aderstep--紫夜阑珊-青伶巷草](http://blog.csdn.net/gatieme) | [`AderXCoding/system/tools`](https://github.com/gatieme/AderXCoding/tree/master/system/tools) | [gatieme.github.io](https://gatieme.github.io) | <br> <a rel="license" href="http://creativecommons.org/licenses/by-...
Markdown
case uvc_vc_desc_subtype.UVC_VC_INPUT_TERMINAL: uvc_input_terminal? term; (ret, term) = uvc_parse_vc_input_terminal(usbDevPtr, info, block, block_size); info.ctrl_if?.input_term_descs = term; break; case uvc_vc_desc_subtype.UVC_VC_OUTPUT_TERMINAL: break; c...
Dart
icing-table2 .table-col.table-col-regular, .skin-violet .pricing-table2 .table-col .table-heading h5,.skin-violet .pricing-table3 .table-col .table-badge,.skin-violet .pricing-table3 .table-col .table-heading h5,.skin-violet .tab-style4 ul > li > a,.skin-violet .nav-pills .nav-link.active,.skin-violet .cd-horizontal-ti...
CSS
"https://netflix.com/idfl/wsmi/gkybuiu/kcnikt", #0 "https://cdn.shopify.com/ulwt/tamksdg/fotaubzv.woff2", #0 "https://wikipedia.org/mhubmuxn/doycsh/ourssv?utm_473=zvflkp&ref=805=keliur&utm_666=fybpbe/ads?/", #1 "https://youtube.com/waxwvp?ref=223=dqjrhh/ads?/" #1 # ...
Python
}, issueSerialization: function (value) { var i; if (value === undefined) { var result = []; for (i=0; i<this.issues.childNodes.length; i++) { var child = this.issues.childNodes[i]; if (child.getAttribute("data-issues-header")) { continue; } result.pus...
JavaScript
ta|Asia/Pontianak", "Asia/Jerusalem|Asia/Tel_Aviv", "Asia/Jerusalem|Israel", "Asia/Kamchatka|Asia/Anadyr", "Asia/Kamchatka|Etc/GMT-12", "Asia/Kamchatka|Kwajalein", "Asia/Kamchatka|Pacific/Funafuti", "Asia/Kamchatka|Pacific/Kwajalein", "Asia/Kamchatka|Pacific/Majuro", "Asia/Kamchatka|Pacific/N...
JavaScript
def barbacue(skewers): non_only = 0 only = 0 for skewer in skewers: if "x" in skewer: non_only +=1 else: only +=1 return [only, non_only] print(barbacue(["--xo--x--ox--", "--xx--x--xx--", "--oo--o--oo--", "--xx--x--ox--", "--xx--x--ox--", "--oooo-ooo--", "-...
Python
t be called right when the surface is created pub unsafe fn init(region: &wl_region::WlRegion) { region.set_user_data( Box::into_raw(Box::new(Mutex::new(RegionData::default()))) as *mut _, ) } /// Cleans the user_data of that surface, must be called when it is destroyed pub ...
Rust
imeFilterYenc")] pub struct FilterYenc(Object<ffi::GMimeFilterYenc, ffi::GMimeFilterYencClass>) @extends Filter; match fn { type_ => || ffi::g_mime_filter_yenc_get_type(), } } impl FilterYenc { #[doc(alias = "g_mime_filter_yenc_new")] pub fn new(encode: bool) -> FilterYenc { assert...
Rust
return marked[v]; } /** * Returns a path between the source vertex {@code s} and vertex {@code v}, or * {@code null} if no such path. * @param v the vertex * @return the sequence of vertices on a path between the source vertex * {@code s} and vertex {@code v}, as an Iterable ...
Java
` set to `hidden` in IE 8/9/10/11. */ button { overflow: visible; } /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `s...
CSS
stemInfo; import oshi.annotation.SuppressForbidden; import oshi.hardware.CentralProcessor; import oshi.hardware.GlobalMemory; import oshi.hardware.HardwareAbstractionLayer; /** * Demonstrates the use of Jackson's ObjectMapper to create JSON from OSHI objects */ public class Json { /** * <p> * main. ...
Java
/* * MIT License * * Copyright (c) 2019 Alexey Edelev <semlanik@gmail.com> * * This file is part of QtProtobuf project https://git.semlanik.org/semlanik/qtprotobuf * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Softwar...
C
companion object { @JvmStatic @Parameterized.Parameters fun parameters() = arrayOf( arrayOf(2, 2, 4), arrayOf(2, 4, 6), arrayOf(2, 10, 12) ) } }description = "Allure JOOQ Integration" val jooqVersion = "3.19.10" dependencies { api(project(":...
Kotlin
layer = srcLayer app.refresh() end } dlg:button { id = "cancel", text = "&CANCEL", focus = false, onclick = function() dlg:close() end } dlg:show { autoscrollbars = true, wait = false }
Lua
ableCalls(t *testing.T) { getPubSub := testingGrpc.TestServerFor(testLogger, func(s *grpc.Server, svc *server) { proto.RegisterPubSubServer(s, svc) }, func(cci grpc.ClientConnInterface) *grpcPubSub { client := proto.NewPubSubClient(cci) pubsub := fromConnector(testLogger, pluggable.NewGRPCConnector("/tmp/socket...
Go
: "ẋ", "ý": "ý", "ỳ": "ỳ", "ÿ": "ÿ", "ỹ": "ỹ", "ȳ": "ȳ", "ŷ": "ŷ", "ẏ": "ẏ", "ẙ": "ẙ", "ź": "ź", "ž": "ž", "ẑ": "ẑ", "ż": "ż", "Á": "Á", "À": "À", "Ä": "Ä", "Ǟ": "Ǟ", "Ã": "Ã", "Ā": "Ā", "Ă": "Ă", "Ắ": "Ắ", "Ằ": "Ằ", "Ẵ": "Ẵ", "Ǎ": "Ǎ", "Â": "Â", "Ấ": "Ấ", "Ầ": "Ầ", ...
JavaScript
][a] = 0 gtmp[a][b] = 1; gtmp[b][a] = 0 break time_end = time.time() time_cost = time_end - time_start print('running time is:', time_cost, 's') return pDAG, ind_test ''' matrix = [[[]]*5 for i in range(5)] print(matrix[4][1]) s=[4,5] t=[1,2,3...
Python
23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0...
CSS
8 }, { 5, 3, true, 0 }, { 5, 2, true, 0 }, { 4, 7, true, 1 }, { 4, 6, true, 6 }, { 4, 5, false, 0 }, { 4, 4, false, 0 }, { 4, 3, true, 6 }, { 4, 2, ...
Lua
u32, params: *mut f64); #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] pub fn glGetTexGenfv(coord: u32, pname: u32, params: *mut f32); #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] pub fn glGetTexGeniv(coord: u32, pname: u32, params: *mut i32); #[doc = "*Required features...
Rust
ns of original file, because we read from stdin, // using umask permissions if (!(gOutFile = fopen(opath, "w"))) die("can not open output file: %s: %s", opath, strerror(errno)); } else { // read permissions of original file, // use them to create / open output file ...
C
als: strings.Join([creds1, creds2], "\n") } creds1: "accessKeyID: " + parameter.ALICLOUD_ACCESS_KEY creds2: "accessKeySecret: " + parameter.ALICLOUD_SECRET_KEY l: { "config.oam.dev/catalog": "velacore-config" "config.oam.dev/type": "terraform-provider" "config.oam.dev/provider": "terraform-alibaba" } ...
Go
writer.write("<status>"); } else if (mode == 2) { writer.append('{').append('"').append("tomcat").append('"').append(':').append('{').println(); } } /** * Write the header body. XML output doesn't bother to output this stuff, since it's just title. * * @param writer ...
Java
if gw.Spec.KubernetesPublicAddr != nil { other.SetKubernetesPublicAddrs(*gw.Spec.KubernetesPublicAddr) } if gw.Spec.WebPublicAddr != nil { other.SetWebPublicAddrs(*gw.Spec.WebPublicAddr) } } // ApplyToTeleportConfig applies auth gateway settings to the provided config. func (gw *AuthGatewayV1) ApplyToTeleportCo...
Go
�者, 因循者", "procrastinatory":"a. =procrastinative", "Procrasturbating":"", "procreant":"a. 有生殖力的, 多产的, 生殖的", "procreate":"vt. 生, 生殖, 产生\\nvi. 生殖", "procreated":"v. 生(儿、女), 生育, 生殖( procreate的过去式和过去分词 )", "procreates":"v. 生(儿、女), 生育, 生殖( procreate的第三人称单数 )", "procreating":"v. 生(儿、女), 生育, 生殖( procreate的现在分词 )", "procreatio...
Typescript
-- English Locales['en'] = { ['you_are_on_location'] = 'You are on <strong>%s</strong>', ['date_format'] = { default = 'Today is <strong>%s of %s, %s</strong>', simple = 'Today is <strong>%s, %s</strong>', simpleWithHours = 'It is <strong>%s</strong>, <strong>%s, %s</strong>', withWeekday = 'Today is <strong...
Lua
== 'r9, qword ptr [r9]': if not r9_isptr: r9_isptr = True print(f'r9 = _stackslot{r9_value}_; //') result.append((0, 0, 0, 'mov', f'r9, _stackslot{r9_value}_')) continue else: ...
Python
#ifndef BITCOIN_NAMECLAIM_H #define BITCOIN_NAMECLAIM_H #include "amount.h" #include "script/script.h" #include "primitives/transaction.h" #include "uint256.h" #include <vector> // This is the minimum claim fee per character in the name of an OP_CLAIM_NAME command that must // be attached to transactions for it to b...
C
public override string Title() { return StringUtility.FallbackWhitespace(graph.title, graph.GetType().HumanName()); } [Assigns] [RequiresUnityAPI] public override string Summary() { return graph.summary; } [Assigns] [R...
C#
Y8TY4CMsyKdZ4=", "type": "channel_deposit_tx" } }, "version": 1 } ``` #### initiator ---> node ```javascript { "jsonrpc": "2.0", "method": "channels.message", "params": { "info": "Hello", "to": "ak_26jAbCjYM16ppbhFG6PCQhv6HkwRAri7QNJfoEtb1R8amLscpt" } } ``` #### responder <--- node ```ja...
Markdown
erver_RestAPI *restApiHandler; AsyncWebServer *httpServer; AsyncWebSocket *webSockerServer; #endif ESPStepperMotorServer_CLI *cliHandler; ESPStepperMotorServer_MotionController *motionControllerHandler; static ESPStepperMotorServer *anchor; //used for self-reference in ISR // the button status register for...
C
ht: -10px; scrollbar-position: absolute; scrollbar-width: thin; } #reviews:hover { overflow-y: scroll; } /* #write_review textarea { */ /* border-color: #00000050 */ /* } */ /* #write_review textarea::placeholder { */ /* color:white; */ /* opacity: 1; /* Firefox */ */ /* } */ /* #write_review...
CSS
// Bits of fields which would be set are actually bits of missed fields. missed := bits.OnesCount8(result) for bitN := 0; bitN < missed; bitN++ { bitIdx := bits.TrailingZeros8(result) fieldIdx := i*8 + bitIdx var name string if fieldIdx < len(jsonFieldsNameOfIoK8sApimachineryPkgApisMetaV1Conditio...
Go
_USED_INCORRECTLY = "Unfortunately, this block cannot be used in this way."; // untranslated Blockly.Msg.BOB3_READNUMBER_TOOLTIP = "Returns the previously stored number."; // untranslated Blockly.Msg.BOB3_RECALL_NUMBER = "recall number"; // untranslated Blockly.Msg.BOB3_REMEMBER_NUMBER = "remember number"; // untra...
JavaScript
//ArmPlatformGetPrimaryCoreMpId ( // VOID // ); ASM_PFX(ArmPlatformGetPrimaryCoreMpId): LoadConstantToReg (_gPcd_FixedAtBuild_PcdArmPrimaryCore, x0) ldrh w0, [x0] ret //UINTN //ArmPlatformIsPrimaryCore ( // IN UINTN MpId // ); ASM_PFX(ArmPlatformIsPrimaryCore): mov x0, #1 ret //UINTN //ArmPlatformG...
Assembly
(diff(RCSwitch::buftimings[3], RCSwitch::timings[1]) < 50 && diff(RCSwitch::buftimings[2], RCSwitch::timings[2]) < 50 && diff(RCSwitch::buftimings[1], RCSwitch::timings[3]) < 50 && changeCount > 25)) { // если его длительность отличается от первого импульса, // который...
C++
return output$; }) ); // Technically the `name` property on Function's are supposed to be read-only. // While some JS runtimes allow it anyway (so this is useful in debugging) // some actually throw an exception when you attempt to do so. try { ...
Typescript
64); err == nil { og.Music.Album.Disc = i } case "og:music:album:track": og.ensureHasMusic() if i, err := strconv.ParseUint(metaAttrs["content"], 10, 64); err == nil { og.Music.Album.Track = i } case "og:music:musician": og.ensureHasMusic() og.Music.Musicians = append(og.Music.Musicians, metaAttrs["...
Go
75 0 0 1-.75-.75Zm4.36 5.94-1.03.26a6.8 6.8 0 0 0 0 2.15l.98.23a2 2 0 0 1 1.45 2.52l-.32 1.1c.52.45 1.11.83 1.75 1.1l.85-.9a2 2 0 0 1 2.9 0l.85.9a6.2 6.2 0 0 0 1.75-1.09l-.34-1.16a2 2 0 0 1 1.44-2.5l1.03-.25a6.8 6.8 0 0 0 0-2.15l-.99-.23a2 2 0 0 1-1.45-2.51l.33-1.1a6.2 6.2 0 0 0-1.75-1.1l-.85.88a2 2 0 0 1-2.9 0l-.85-.9...
C#
iacr.org/2020/499 #[cfg(feature = "ipa-pc-as")] #[cfg_attr(docsrs, doc(cfg(feature = "ipa-pc-as")))] pub mod ipa_pc_as; /// An accumulation scheme for a NARK for R1CS. /// The construction is described in detail in [\[BCLMS20\]][bclms20]. /// /// [bclms20]: https://eprint.iacr.org/2020/1618 #[cfg(feature = "r1cs-nark-...
Rust
arm branch_20d938c: @ 20d938c :arm mov r0, #0x1 str r0, [sp, #0x28] .arm branch_20d9394: @ 20d9394 :arm mov r1, #0x0 mov r0, r8 mov r2, r1 add r4, r4, #0x1 blx r9 mov r1, r0 mov r0, #0x1 str r0, [sp, #0x18] b branch_20d9f10 @ 0x20d93b8 .arm branch_20d93b8: @ 20d...
Assembly
ST( TestMimeEnum ); CPPUNIT_TEST( TestMimeAssociate ); CPPUNIT_TEST( TestMimeFilename ); CPPUNIT_TEST( TestOsInfo ); CPPUNIT_TEST( TestPlatformInfo ); CPPUNIT_TEST( TestUserInfo ); CPPUNIT_TEST( TestStackWalk ); CPPUNIT_TEST( TestStandardPaths ); CPPUNIT_T...
C++
项目,其中 39% 的人使用类型提示。近 3 年里加入团队的人中,有 76% 使用类型提示。 9、[记一次用 Python 的 ast 模块将 Flask 项目转为 Quart 的尝试](https://juejin.cn/post/7304706387645071395) 作者为了使用 OpenAI 返回的异步迭代器内容,将不支持异步的 Flask 项目重构成了支持异步的 Quart。但手动修改的工作量太大,因此他想到通过解析 ast 来修改,提升项目转换的效率。 10、[Python NumPy 库的可视化解释](https://solothought.com/tutorial/python-numpy/) 文章使用了大...
Markdown
null) { $result.port = port; } if (address != null) { $result.address = address; } if (stsafe != null) { $result.stsafe = stsafe; } return $result; } InitiateRemoteSshResponse._() : super(); factory InitiateRemoteSshResponse.fromBuffer($core.List<$core.int> i, [$pb.Exten...
Dart
"Испепеляющий след"] = 2, [230403] = "Оскверненная душа", [305155] = "Подземное щупальце", [238595] = "Мстительный завоеватель", [177157] = "Кор'лок", [296964] = 6, [132103] = 5, [201733] = "Латосий", [119300] = "Темный шаман Корантал", [288774] = "\"Разряжатор\"", [280583] = 11, [197638] = 3, [...
Lua
class GetImagePageTest { private val scaffolding = WebPageTest() private val page = GetImagePage(scaffolding.webInterface) private val freenetRequest = scaffolding.freenetRequest private val response = scaffolding.response private val responseContent = scaffolding.responseContent @Test fun `page returns correc...
Kotlin
живается регистрация и использование предоставленных пользователем устройств аутентификации, таких как токены U2F или FIDO. | | ✓ | ✓ | 308 | 6.1.3 | | **2.3.3** | Убедитесь, что для обновления аутентификаторов с ограниченным сроком действия инструкции по их замене направляются заблаговременно. | | ✓ | ✓ | 287 | 6.1.4 ...
Markdown
Object BETWEEN57_tree=null; Object AND58_tree=null; RewriteRuleTokenStream stream_ROWS=new RewriteRuleTokenStream(adaptor,"token ROWS"); RewriteRuleTokenStream stream_AND=new RewriteRuleTokenStream(adaptor,"token AND"); RewriteRuleTokenStream stream_BETWEEN=new RewriteRuleTokenStream(ada...
Java
实 */ // println(metadataBytes.toString(Charsets.UTF_16LE)) // 读取剩余部分为压缩数据 val compressedData = ByteArray(rawBuffer.remaining()) rawBuffer.get(compressedData) // 解压缩数据 val decompressedOutput = ByteArrayOutputStream() val compressedInput = ByteArrayInputS...
Kotlin
r more /// information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> Opting Out of /// Certificate Transparency Logging</a>. </p> #[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] pub struct UpdateCertificateOptions { _private:...
Rust
.forEach(book => console.log(book)); // console.log(bookTitleTransform(getAllBooks()[0].title)); // console.log(bookTitleTransform(100)); // ======================================================================================================= // 04. Interfaces // const myBook: Book = { // id: 5, // title: ...
Typescript
TestAccPreCheck(t) }, ProviderFactories: acceptance.TestAccProviderFactories, CheckDestroy: nil, Steps: []resource.TestStep{ { Config: testDdmInstanceReadStrategy_basic(name, schemaName), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrPair(rName, "instance_id", "hua...
Go
byte" ld a,' ' + call print_char pop af call @print_byte pop af call @print_byte pop af call @print_byte ld a,'$' call print_char pop af call print_hex xor a ret @print_byte: push af ld a,'$' call print_char ...
Assembly