content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
# Import the regular expression engine
import re
# Our string
test = "Hello, World!"
# Match
if re.match("e", test):
print("re.match says it has an e in it.")
# Search
if re.search("e", test):
print("re.search says it has an e in it.")
| Python |
g.hpp>
#
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
#
# /* BOOST_PP_INC */
#
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
# define BOOST_PP_INC(x) BOOST_PP_INC_I(x)
# else
# define BOOST_PP_INC(x) BOOST_PP_INC_OO((x))
# define BOOST_PP_INC_OO(par) BOOST_PP_INC_I ## par
# endif
#
# defin... | C++ |
ca;
--dark-accent: #394151;
--deep-dark-accent: var(--note);
--accent2-lite: var(--text-dl);
--headers: var(--text);
--code-text: var(--text);
--i-at: var(--text-faint);
--inactive: #586477;
--tag-text: var(--accent2-lite);
--code-bg: #232831;
--aside-bg: var(--note);
--embed-bg: var(--note);
--... | CSS |
//
// TGReplyObject.h
// Telegram
//
// Created by keepcoder on 11.03.15.
// Copyright (c) 2015 keepcoder. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TGReplyObject : NSObject
@property (nonatomic,strong,readonly) NSAttributedString *replyHeader;
@property (nonatomic,strong,readonly) TGI... | C |
/examples/address-book/index.html) ([source](https://github.com/winjs/react-winjs/tree/master/examples/address-book)): demonstrates how to use react-winjs components to build an adaptive app which works well on mobile, tablet, and desktop computers.
## Installation
```
npm install react-winjs --save
```
## Usage
In... | Markdown |
'-desc'] = $.fn.dataTableExt.oSort['string-desc'];
},
implementation: function(tgt, st, opt) {
$(tgt).empty().append(opt.textFormat.call(this, st.value, st, opt));
}
});
Dashboard.registerGlobalAddIn("Table", "colType", formattedText);
return formattedText;
});
/*! ************************... | JavaScript |
.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>File: ejava.rb</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" ... | HTML |
gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJ... | CSS |
{
assignExpressionToRegister(value, RegisterOrPair.AY, false)
assignRegisterpairWord(target, RegisterOrPair.AY)
return
}
// No more special optimized cases yet. Do the rest via more complex evaluation
// note: cannot use assignTypeCastedValue because that is... | Kotlin |
: Msg ) -> Error
{
Error { msg : msg.into() }
}
pub fn msg( &self ) -> &String
{
&self.msg
}
}
impl core::fmt::Display for Error
{
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result
{
write!( f, "{}", self.msg )
}
}
impl std::error::Error for Error
{
fn description( &self ... | Rust |
_FOO_H_',
'',
].join('\n'));
});
});
test('fixes a file with no header guard', () {
final String input = <String>[
'// 1.',
'// 2.',
'// 3.',
'',
"#import 'flutter/shell/platform/darwin/Flutter.h'",
'',
'@protocl Flut... | Dart |
.include "../src/data.s"
.include "../src/consts.s"
.include "../src/macros.s"
.text
jal INIT_VIDEO
GAME:
li a0, 0x09090909
JAL DRAW_BACKGROUND
jal DRAW_CURSOR
jal INPUT
jal SWAP_FRAMES
j GAME
INPUT:
li t1, KBD_CONTROL # carrega o endere�o de controle do KDMMIO
lw t0, 0(t1) # Le bit de... | Assembly |
so.receiveTOSEnabled) != 0
}
// SetReceiveTOS sets value for IP_RECVTOS option.
func (so *SocketOptions) SetReceiveTOS(v bool) {
storeAtomicBool(&so.receiveTOSEnabled, v)
}
// GetReceiveTClass gets value for IPV6_RECVTCLASS option.
func (so *SocketOptions) GetReceiveTClass() bool {
return atomic.LoadUint32(&so.rece... | Go |
// Read chunk size
final int sz = EntropyUtils.readVarInt(this.bitstream) & (MAX_CHUNK_SIZE - 1);
// Read initial ANS state
int st0 = (int) this.bitstream.readBits(32);
int st1 = (this.order == 0) ? (int) this.bitstream.readBits(32) : 0;
if (sz != 0) {
// Add some padding... | Java |
+a1_main.b1_0.c2_0.sum+a1_main.b1_0.c3_0.sum);
int result = a1_main.sum + a1_main.b1_0.sum + a1_main.b2_0.sum + a1_main.b3_0.sum + a1_main.b4_0.sum + a1_main.b1_0.c1_0.sum + a1_main.b1_0.c2_0.sum + a1_main.b1_0.c3_0.sum;
//System.out.println("RC-Testing_Result="+result);
if (result == 5048)
... | Java |
== false)
{
displayDistanceOverlay = true;
std::cout << "Depth detection overlay: ON\n";
std::cout << "Red dots represent depth probe locations.\n";
std::cout << "Green dot is the closest location.\n";
}
else if (tolower(key) == 'd' && displayDist... | C++ |
let _crc = reader.read_u32_be()?;
}
}
},
Err(_) => {
let warnings = ImgWarnings::add(None,Box::new(
PngWarning::new("Data crruption after image datas".to_string())));
if option.debug_flag > 1 {
... | Rust |
#include "constants/scrcmd.h"
#include "fielddata/script/scr_seq/event_R47.h"
#include "msgdata/msg/msg_0407_R47.h"
.include "asm/macros/script.inc"
.rodata
scrdef scr_seq_R47_000
scrdef scr_seq_R47_001
scrdef scr_seq_R47_002
scrdef scr_seq_R47_003
scrdef scr_seq_R47_004
scrdef_end
scr_seq_R47_000:
setvar V... | Assembly |
},
[8639] = {
["D"] = "Императоры-близнецы... Их непрестанный шепот в моих ушах потихоньку сводит меня с ума. Они смеются надо мной, зная, что я не сумею вступить в их владения, чтобы спасти моего брата Аригоса.$B$BЯ вижу их безобразные головы, увенчанные могущественными коронами. Но я отомщу им... эти символы вл... | Lua |
ока № 5215 из 8350. Ищем для <a target="_blank" rel="noopener noreferrer" href="https://finance.yahoo.com/quote/NH/analysis?p=NH">NH</a>.</li><li>Cтрока № 5216 из 8350. Ищем для <a target="_blank" rel="noopener noreferrer" href="https://finance.yahoo.com/quote/NHA/analysis?p=NHA">NHA</a>.</li><li>Cтрока № 5217 из 8350.... | HTML |
t to have much confidence about, but which fit the models we've
// constructed perfectly and which we ought to mark. This class is used to
// "smear" our models over the text.
class ParagraphModelSmearer {
public:
ParagraphModelSmearer(std::vector<RowScratchRegisters> *rows, int row_start, int row_end,
... | C |
}
socketServer.nodesConfig = ipPortNodes;
channelIoHandler = new ChannelIoHandler(socketIoDispatcher);
socketServer.usePooledBuff = usePooledBuff;
socketServer.useEpollForLinux = useEpollForLinux;
socketServer.childChannelInitializer = new ChildChannelHandler();
... | Java |
bject.accessed = reader.readDateTime(offsets[0]);
object.changed = reader.readDateTime(offsets[1]);
object.id = id;
object.mode = reader.readLong(offsets[3]);
object.modified = reader.readDateTime(offsets[4]);
object.path = reader.readString(offsets[5]);
object.size = reader.readLong(offsets[6]);
object.t... | Dart |
copyX[i + 12], 6, 1700485571);
d = md5Ii(d, a, b, c, copyX[i + 3], 10, -1894986606);
c = md5Ii(c, d, a, b, copyX[i + 10], 15, -1051523);
b = md5Ii(b, c, d, a, copyX[i + 1], 21, -2054922799);
a = md5Ii(a, b, c, d, copyX[i + 8], 6, 1873313359);
d = md5Ii(d, a, b, c, copyX[i + 15], 10, -30611744);
... | Dart |
/* $NetBSD: game.c,v 1.11 2003/08/07 09:37:42 agc Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. 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... | C |
+;if(g===undefined)g=this.q[c]=
0;this.q[c]=(this.q[c]+1)%this.b.length;switch(typeof a){case "number":if(b===undefined)b=1;this.b[g].update([d,this.u++,1,b,f,1,a|0]);break;case "object":c=Object.prototype.toString.call(a);if(c==="[object Uint32Array]"){e=[];for(c=0;c<a.length;c++)e.push(a[c]);a=e}else{if(c!=="[object ... | HTML |
/* Not implemented */
}
deletePages() {
/* Not implemented */
}
deleteSound() {
/* Not implemented */
}
embedDocAsDataObject() {
/* Not implemented */
}
embedOutputIntent() {
/* Not implemented */
}
encryptForRecipients() {
/* Not implemented */
}
encryptUsingPolicy() {... | JavaScript |
("2d");
let size = 20;
let arr = [];
let time_delay = 1000;
let merged_arr = [];
init();
// Utility
function init() {
generate_arr();
add_listeners()
}
function generate_arr() {
max = 100;
min = 0;
for(let i=0; i<size; i++) {
let a = Math.floor(Math.random() * (max - min) + min);
let b = a +... | HTML |
eax,%eax
jge syscall_ok
neg %eax
mov %eax,errno
mov $-1,%eax
syscall_ok:
movl %ebp,%esp
popl %ebp
ret
.endif
# CALL gettimeofday 78 2
.ifdef L_gettimeofday
.globl gettimeofday
.type gettimeofday,@function
gettimeofday:
pushl %ebp
movl %esp,%ebp
pushl %ebx
mov 8(%ebp),%eb... | Assembly |
w== 126135
0LDQu9GC0YvQvQ== 126136
IGZyeWluZw== 126137
xYJvcw== 126138
zrrOuc69 126139
IHNhaWI= 126140
IEphbmE= 126141
Vml0YW1pbg== 126142
IHByb2llY3Q= 126143
IEhhemVs 126144
IHVyZ2Vz 126145
IOC4oOC4suC4qeC4sg== 126146
IGJvbWVu 126147
IHlvdWxs 126148
4LGH4LC34LGN 126149
X2NvbnRyb2xz 126150
LmRqYW5nb3Byb2plY3Q= 126151
I... | Kotlin |
KTi1ycRx0ysD/RsQEAEREAYYYCBlYArIdrst8cHU0P/U4Bl7xgww8D8MRDdiDZvNZhjHcX99fV2urq4se8AAAwwwcNRAtCKaEe0YFovF/uND+fhQXl5eLHvAAAMMMHDUQLQimhHtGOKtI/7g+fnZsgcMMMAAA1UD0YxoxyEg4iGeDDDAAANzDAiIScPwwAADDKQMTAGJ1xHLHjDAAAMMtBoQEOE0ODDAAAMpAwICTgpO64TiPNMsA/0aEBABERAGGGAgZWAKyNPTU7HsAQMMMMBAqwEBEU6DAwMMMJAyMAVkvV4Xyx4wwAADDLQaEBDh... | CSS |
import json
import os
import random
import re
from collections import Counter, defaultdict
from loguru import logger as eval_logger
from lmms_eval.tasks._task_utils.file_utils import generate_submission_file
PROMPT = {
"task_instructions": [
"请回答以下多项选择题,并选出正确选项。这些题目可能包括单选和多选题型。如果所提供的信息不足以确定一个明确的答案,那么请根据可... | Python |
:
``seconds'', ``minutes'', ``hours'', and ``days''. Positive durations
expand the coverage of the output SPK file -- the SPK coverage stop
time will be later as compared to the time of the last input two-line
elements set -- while zero durations set the start of the coverage of
the output SPK file to be exactly the ti... | HTML |
usize));
assert_eq!(500 as u16, u16::checked_from(500 as usize));
#[cfg(any(target_pointer_width = "64", target_pointer_width = "128"))]
assert_eq!(
4_300_000_000 as u64,
u64::checked_from(4_300_000_000 as usize)
);
#[cfg(target_pointer_width = "128")]
... | Rust |
FFER}</td><td>{@link #GL_DISPATCH_INDIRECT_BUFFER DISPATCH_INDIRECT_BUFFER}</td></tr><tr><td>{@link #GL_SHADER_STORAGE_BUFFER SHADER_STORAGE_BUFFER}</td><td>{@link ARBIndirectParameters#GL_PARAMETER_BUFFER_ARB PARAMETER_BUFFER_ARB}</td></tr></table>
* @param internalFormat the internal format with which the data w... | Kotlin |
!== undefined) {
recalculateNavigationVisibility();
return CACHE[pageSlug];
}
// Make the nav buttons go transparent
NUM_ACTIVE_REQUESTS += 1;
recalculateNavigationVisibility();
// Execute the request
const response = await fetch("/comic/data/" ... | JavaScript |
ted */
Gnum veloval;
partval = parttax[vertnum];
partlst = -1; /* Invalid part to recompute distance */
distlst = -1; /* To prevent compiler from yelling */
#ifdef SCOTCH_DEBUG_KGRAPH2
i... | C |
p></div><div class='page'><a name="eration--Initial_Recon--General_methodology--Content_Discovery--Automation_workflow--Automation_Scripts_and_Oneliners--LFI_Automation_726.html"></a><h1 class='title level-8'>LFI Automation</h1><br/><p><span style="color:#3f4043;">Single target:</span></p><p>paramspider -d <a href="htt... | HTML |
4YzAtNi42MjctNS4zNzMtMTItMTItMTJoLTI4Yy02LjYyNyAwLTEyIDUuMzczLTEyIDEydjI4YzAgNi42MjcgNS4zNzMgMTIgMTIgMTJoMjhjNi42MjcgMCAxMi01LjM3MyAxMi0xMnptLTk4IDE1OHYtMTZjMC02LjYyNy01LjM3My0xMi0xMi0xMkgxODBjLTYuNjI3IDAtMTIgNS4zNzMtMTIgMTJ2MTZjMCA2LjYyNyA1LjM3MyAxMiAxMiAxMmgyMTZjNi42MjcgMCAxMi01LjM3MyAxMi0xMnoiIGZpbGw9ImN1cnJlbnRDb2x... | CSS |
import pl.szczodrzynski.edziennik.data.db.entity.Teacher.Companion.TYPE_OTHER
import pl.szczodrzynski.edziennik.data.db.entity.Teacher.Companion.TYPE_PARENT
import pl.szczodrzynski.edziennik.data.db.entity.Teacher.Companion.TYPE_STUDENT
import pl.szczodrzynski.edziennik.data.db.entity.Teacher.Companion.TYPE_TEACHER
imp... | Kotlin |
什么结论。
</p>
<p>
(十二)关于藏、回族及其他民族干部的审查处理问题:
</p>
<p>
1、安置在机关的上层统战对象,一律不进行审查;在西藏地区吸收的副县长以下(不含副县长)的藏、回族及其他民族干部,也不正式列入此番审干范围内进行审查,但应结合人事审查,根据他们的具体情况,采取适当的方式,积极弄清一部分人的问题,如果本人已具备一定的觉悟程度或本人要求审查的,可以由有关部门在负责同志亲自主持下进行审查;要求入党的,可以作为建党中的工作进行审查,如果本人的觉悟程度还不具备,历史上或社会关系上有某些问题不清,涉及到使用的,可由组织掌握进行内部审查;本人已交待的问题,一般不要再向本人追究,组织上已掌握... | HTML |
local string = string
local surface = surface
local math = math
local Color = Color
local tostring = tostring
local color_white = color_white
module( "draw" )
--[[---------------------------------------------------------
Constants used for text alignment.
These must be the same values as in the markup module.
-----... | Lua |
> cls, int type, int... groups){
// Get annotation field
Field[] fs = cls.getDeclaredFields();
for (Field f : fs){
ExcelField ef = f.getAnnotation(ExcelField.class);
if (ef != null && (ef.type()==0 || ef.type()==type)){
if (groups!=null && groups.length>0){
boolean inGroup = false;
for (int g... | Java |
CAddTable())
-- model:add(nn.ReLU())
model:add(nn.Sigmoid())
return model
end
------------------------- forward backward -----------------------------
function ConvRNN:updateOutput(input)
--print(#input)
local prevOutput
if self.step == 1 then
prevOutput = self.userPrevOutput or self.zeroTen... | Lua |
a3_224)), 224) }
if matches.opt_present("sha3-256") { set_or_crash("SHA3-256", Box::new(Sha3::new(Sha3Mode::Sha3_256)), 256) }
if matches.opt_present("sha3-384") { set_or_crash("SHA3-384", Box::new(Sha3::new(Sha3Mode::Sha3_384)), 384) }
if matches.opt_present("sha3-512") ... | Rust |
p.
pub async fn shutdown(&mut self) {
use std::os::unix::fs::OpenOptionsExt;
if let Some(listener) = self.listener.take() {
listener.abort();
listener.await.ok();
// Open fifo for write to unblock pending open for read operation that prevents tokio runtime
... | Rust |
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | C |
SuitesIntersection = if (cipherSuitesAsString != null) {
sslSocket.enabledCipherSuites.intersect(cipherSuitesAsString, CipherSuite.ORDER_BY_NAME)
} else {
sslSocket.enabledCipherSuites
}
val tlsVersionsIntersection = if (tlsVersionsAsString != null) {
sslSocket.enabledProtocols.intersect(... | Kotlin |
ansaction_hex\", \"params\":{\"trx\":{\"ref_block_num\":1097,\"ref_block_prefix\":2181793527,\"expiration\":\"2016-03-24T18:00:21\",\"operations\":[{\"type\":\"pow_operation\",\"value\":{\"worker_account\":\"cloop3\",\"block_id\":\"00000449f7860b82b4fbe2f317c670e9f01d6d9a\",\"nonce\":3899,\"work\":{\"worker\":\"STM7P5T... | HTML |
HADD dAccV0, dAccV0, dSrc1
VRHADD dAccV2, dAccV2, dSrc3
VRHADD dAccV1, dAccV1, dSrc2
VRHADD dAccV3, dAccV3, dSrc4
ADD Temp, pDst, dstStep, LSL #1
VST1 dResultV0[0], [pDst], dstStep
VST1 dResultV2[0], [Temp], dstStep
VST1 ... | Assembly |
.Document {
}
export const MessageModel = mongoose.model<Message>('Message', MessageSchema);
import { Handler } from '../handler';
export type CodePipelineCloudWatchPipelineHandler = Handler<CodePipelineCloudWatchPipelineEvent, void>;
export type CodePipelineState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | '... | Typescript |
-grey-rest);
--edge-text-blue-hover: #0070C6;
--edge-text-blue-rest: #0061AB;
--edge-text-blue-pressed: #1081D7;
--edge-text-grey-rest: #6F6F6F;
--edge-white: #FFFFFF;
--edge-primary-button-focus-shadow: 0 0 0 2px inset #F2F8FD;
--edge-focus-outline: 2px solid var(--edge-focus-color);
background: var(--... | HTML |
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Incrementador em código de Gray</title>
</head>
<body bgcolor="FFFFFF">
<h1>Incrementador em código de Gray</h1>
<p> Cada componente incluído em uma biblioteca é definido através da criação de
uma subclasse de <code> InstanceFactor... | HTML |
;
//----------------------------------------
// Calculamos la distancia de cada paso
xStep = this.level.tamTile;
// Si val a la izquierda, invertimos
if(left)
xStep = - xStep;
yStep = this.level.tamTile * Math.tan(this.angel);
if((!down &... | Typescript |
p>
<p> </p>
</div>
<h3 class="function"><a name="cloudi_service_terminate-3">cloudi_service_terminate/3</a></h3>
<div class="spec">
<p><tt>cloudi_service_terminate(Reason, Timeout, State) -> any()</tt></p>
<p> </p>
</div>
<hr>
<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspac... | HTML |
reference to the object's extensions.
fn extensions(&self) -> &ExtensionSequence;
/// Obtain a reference to the object's volume.
fn volume(&self) -> &Self::Volume;
/// Move the volume out of the object, discarding the
/// header and extensions.
fn into_volume(self) -> Self::Volume;
}
/// Gen... | Rust |
ation</a></p><p><a href="https://gist.github.com/Andross/bf990e87f3594dff58feb385e96c6b12">https://gist.github.com/Andross/bf990e87f3594dff58feb385e96c6b12</a></p><p><a href="https://github.com/evets007/OSCP-Prep-cheatsheet/blob/master/windows-privesc.md#startups-and-autoruns">https://github.com/evets007/OSCP-Prep-chea... | HTML |
71
movq %rbp, %rsi
movq %rbx, %rdi
call *%rax
jmp .L3371
.cfi_endproc
.LFE14400:
.size _ZN5boost6detail30future_async_shared_state_baseIiE4waitERNS_11unique_lockINS_5mutexEEEb, .-_ZN5boost6detail30future_async_shared_state_baseIiE4waitERNS_11unique_lockINS_5mutexEEEb
.section .text._ZN5boost6detail12shared_state... | Assembly |
top:-5px;border-width:5px 0 5px 5px;border-left-color:#141b20}.otktooltip-bottom .otktooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#141b20}.otktooltip-bottom-left .otktooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#141b20}.otktooltip-bottom-right .otkt... | CSS |
Name = "ModifiedTextLabel"
created.TextColor3 = Color3.new(1, 0, 0)
expect(prettyFormatResult(created)).toEqual(
"TextLabel {\n" .. ' "Name": "ModifiedTextLabel",\n' .. ' "TextColor3": Color3(1, 0, 0),\n' .. "}"
)
end)
it("serializes nested Instances", function()
created.Name = "ParentInstanc | Lua |
.185 3.849 0.53l-0.1-0.024c2.849-1.939 4.105-1.537 4.105-1.537 0.285 0.642 0.451 1.39 0.451 2.177 0 0.642-0.11 1.258-0.313 1.83l0.012-0.038c0.953 1.032 1.538 2.416 1.538 3.937 0 0.031-0 0.061-0.001 0.091l0-0.005c0 5.761-3.505 7.029-6.842 7.398 0.632 0.647 1.022 1.532 1.022 2.509 0 0.093-0.004 0.186-0.011 0.278l0.001-0.... | JavaScript |
l,{13736,13737,13738,13739,13740},64,nil,1,0,0,15,2},
[45037] = {'Epic Purple Shirt',nil,nil,nil,nil,nil,128,nil,1,0,0,4,0},
[45038] = {'Fragment of Val\'anyr',{33449,33692,33693,33694,33724,33885,33955,34003,34175},{194201,194308,194822},nil,nil,nil,66624,nil,80,80,0,0,0},
[45039] = {'Shattered Fragments of Val\'anyr'... | Lua |
tain('****')
})
})
test('trimTwoOrMoreLines works as intended', () => {
// Remember that some empty lines have spaces over them
const input =
`zero empty lines
one empty line
two empty lines
four empty lines
\t\t
\t\t
- First item
- Second item
\t
\t
- Third item
- Fourth item
`
co... | Typescript |
ble %s", b->key);
for (j=0; j < c->u.t.sz; j++) {
fprintf (fp, " %d", c->u.t.u.i[j]);
}
fprintf (fp, "\n");
break;
case CONFIG_TABLE_REAL:
fprintf (fp, "real_table %s", b->key);
for (j=0; j < c->u.t.sz; j++) {
fprintf (fp, " %g", c->u.t.u.r[j]);
}
fprintf (fp, "\n");
break;
case CONFIG_TABL... | C |
SIZE="4" COLOR="#FFFFFF" FACE="Comic Sans MS"><B>C'est quoi c'te merde, j'ai faim, je m'en tape que tu
sois ok:</B></FONT></P>
<P><FONT SIZE="4" COLOR="#FF0000" FACE="Comic Sans MS"><B>2112</B></FONT></P>
<P><FONT SIZE="4" COLOR="#0099FF" FACE="Comic Sans MS"><B>Check ditributor okay !</B></FONT></P>
<P><FONT SIZE=... | HTML |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import os, sys, re
from prjxray impo... | Python |
PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
=============================================... | C++ |
ion.functionProperties[FiniteBinaryOperationPropertyKeys.Identity] = true
} else {
newOperation.functionProperties[FiniteBinaryOperationPropertyKeys.Identity] = false
}
}
}
return newOperation
}
}
export type numeric_t = number;
export type int_t = number;
export type uint_t ... | Typescript |
'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a',
1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 1, 'a', 0
};
Name e =
Name.fromString(
"a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.... | Java |
source:null,params:null}),[h]=await a.resolver.getCandidates(G.makeDescriptor(e,p),r,a);if(u.reference!==h.reference)continue}n.push(u)}}return{locators:n,sorted:!1}}async resolve(e,r){throw new Error("Unreachable")}};var JC={};Kt(JC,{getGitHead:()=>yvt,getPublishAccess:()=>eve,getReadmeContent:()=>tve,makePublishBody:... | JavaScript |
tent: flex-end;
}
&-space-between {
justify-content: space-between;
}
&-space-around {
justify-content: space-around;
}
&-top {
align-items: flex-start;
}
&-middle {
align-items: center;
}
&-bottom {
align-items: flex-end;
}
}
.@{colClassPrefix} {
position: relative;
displ... | CSS |
MBB->dump(););
Changed |= propagateLocalCopies(MBB);
LLVM_DEBUG(dbgs() << "MBB After Canonical Copy Propagation:\n"; MBB->dump(););
LLVM_DEBUG(dbgs() << "MBB Before Scheduling:\n"; MBB->dump(););
unsigned IdempotentInstCount = 0;
Changed |= rescheduleCanonically(IdempotentInstCount, MBB);
LLVM_DEBU... | C++ |
) return new SolidColorBrush(OPAQUE);
GradientStopCollection gradientStops = new GradientStopCollection();
if (top)
{
gradientStops.Add(new GradientStop(TRANSPARENT, 0.0));
gradientStops.Add(new GradientStop(TRANSPARENT, transparencyFactor));
... | C# |
box
for idx in range(count):
obj = detector.get_object(idx) if hasattr(detector, 'get_object') else detector[idx]
top_left = (int(w * obj.x), int(h * obj.y))
bottom_right = (int(w * (obj.x + obj.w)), int(h * (obj.y + obj.h)))
color = colors[idx]
cv2.rectangle(img, top_left,... | Python |
em = context.em
historyEntryMap.entries.forEach { entry ->
val historyEntry = entry.value
val historyEntryId = entry.key
val attrs = historyAttrMap[historyEntryId]
if (em.find(HistoryEntryDO::class.java, historyEntryId) == ... | Kotlin |
e false",type:"Boolean"},example:['\n <div class=\'norender\'><code>\n // The following short XML file called "mammals.xml" is parsed\n // in the code below.\n //\n // <?xml version="1.0"?>\n // <mammals>\n // <animal id="0" species="Capra hircus">Goat</animal>\n // <animal id="1" species="Panther... | JavaScript |
199px){.slider-height{min-height:700px}}@media only screen and (min-width: 768px) and (max-width: 991px){.slider-height{min-height:550px}}@media only screen and (min-width: 576px) and (max-width: 767px){.slider-height{min-height:500px}}@media (max-width: 575px){.slider-height{min-height:410px}}.slider-height2{min-heigh... | CSS |
ce")
support.CheckSize(k, CryptoStreamSalsa2012KeyBytes(), "key")
c := make([]byte, clen)
exit := int(C.crypto_stream_salsa2012(
(*C.uchar)(&c[0]),
(C.ulonglong)(clen),
(*C.uchar)(&n[0]),
(*C.uchar)(&k[0])))
return c, exit
}
func CryptoStreamSalsa2012XOR(m []byte, n []byte, k []byte) ([]byte, int) {
supp... | Go |
iconUrl!);
if (isNetWork) {
return Image.network(
iconUrl!,
color: color, //?? textStyle.color,
width: iconSize,
height: iconSize,
fit: BoxFit.scaleDown,
);
}
return Image.asset(
iconUrl!,
color: color, //?? textStyle.... | Dart |
//
// VVAudioChannelLayout.h
// VVAudioKit
//
// Created by David Lublin on 8/12/15.
// Copyright (c) 2015 VIDVOX. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//#import <VVBasics/VVBasics.h>
#import <CoreAudio/CoreAudio.h>
#import <CoreAudio/AudioHardware.h>
#import <CoreAudio/CoreAudioTypes.h>
/*
This is a... | C |
xf4,%esi
402007: e8 f4 ec ff ff callq 400d00 <memset@plt>
40200c: 48 8b 05 8d 34 20 00 mov 0x20348d(%rip),%rax # 6054a0 <stdin@@GLIBC_2.2.5>
402013: 48 39 05 b6 34 20 00 cmp %rax,0x2034b6(%rip) # 6054d0 <infile>
40201a: 75 14 jne 402030 <launch+0x5c>
40201c: be... | Assembly |
},
{ "totals_mode", new EnumSettingValue<TotalsMode>(TotalsMode.AfterHavingExclusive) },
{ "totals_auto_threshold", new FloatSettingValue(0.5f) },
/* Включена ли компиляция запросов. */
{ "compile", new BoolSettingValue(false) },
/* Количество одинаковых по структуре запросов пе... | C# |
st_pidl(LPITEMIDLIST pidl);
static void free_pidl(LPITEMIDLIST pidl);
static std::string get_key_for_pidl(LPITEMIDLIST pidl);
static FileItem* get_fileitem_by_fullpidl(LPITEMIDLIST pidl, bool create_if_not);
static void put_fileitem(FileItem* fileitem);
#else
static FileItem* get_fileitem_by_path(const std::... | C++ |
ov_b32 s[s_p_in+2], 0xffffffff
s_mov_b32 s[s_p_in+3], 0x27000
s_mul_i32 s[s_out_stride_k_k0_k1_diff], 24, s[s_out_stride_k]
s_mul_i32 s[s_wei_stride_k_k0_k1_diff], 24, s[s_wei_stride_k]
s_mul_i32 s[s_out_stride_k_k1], s[s_move_slice_k_k1], s[s_out_stride_k] ; might be 0 or larger
s_mul_i32 s[s_wei_... | Assembly |
/**********************************************************************
* Copyright (c) 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | C |
$hAlignSpec = function (align) {
switch (align.$) {
case 1:
return $elm$json$Json$Encode$string('left');
case 0:
return $elm$json$Json$Encode$string('center');
case 2:
return $elm$json$Json$Encode$string('right');
default:
var sig = align.a;
return $elm$json$Json$Encode$object(
_List_fromArr... | JavaScript |
ex_count / 3));
printf("target: %d cells, %d triangles\n", int(target_cell_count), int(target_index_count / 3));
#endif
unsigned int* vertex_ids = allocator.allocate<unsigned int>(vertex_count);
const int kInterpolationPasses = 5;
// invariant: # of triangles in min_grid <= target_count
int min_grid = 0;
int m... | C++ |
�分子,就会少数突出包办。这并不是说把老基础一脚踢开,而是分别吸收好的分子,并在斗争中考验干部,以便去假留真,去坏留好,在运动中改造其作风,使他更好的联系群众。这一点是很重要的。因为乡村里干部与我工作干部有了一层历史的联系,有了相当深厚的感情,我干部易于忽视其缺点,不加分别,一律信任。
</p>
<p>
第二种,是不经过发现个别积极分子,从而了解本乡真实情况,然后有准备召开代表会,而是一般宣传之后,就冒然无准备的召开农代会或贫代会,并在群众完全或大部没有觉悟的情况下,选举代表,选举农协领导机关。这样产生的干部或代表是有危险性的,有很大可能选上狗腿流氓。即使选上好人,也因为没有觉悟,不愿干,不敢干,认为是“捉大头”。这样... | HTML |
(opacity=60)}.bootstrap-tagsinput .tag [data-role=remove]{box-shadow:none;font-family:arial}.bootstrap-tagsinput .tag [data-role=remove]:after{font-family:arial}.bootstrap-tagsinput .tag [data-role=remove]:hover{text-decoration:none;box-shadow:none}.mt-bootstrap-tables .mt-btm-transform .bars{height:auto}.CSSAnimationC... | CSS |
。
</td>
</tr>
<tr>
<td>
`ss`
</td>
<td>
分の開始から経過した完全な秒数を 00 から 59 までの 2 桁の 10 進数で表したもの。
</td>
</tr>
<tr>
<td>
`.`
</td>
... | HTML |
type(x) is amd_dev.signal_t
assert type(y) is nv_dev.signal_t
def test_multidevice_p2p(self):
try:
amd_dev = Device["AMD"]
if not issubclass(type(amd_dev.iface), PCIIfaceBase): self.skipTest("Not a pci dev")
except Exception: self.skipTest("no AMD device, test skipped")
try:
nv_dev... | Python |
吴××是一个“后生仔”,做事很主观急躁,有“火车头”之称。公方夏××水平很低,我简直看不起他,他们象军事化,太严谨。布置工作又不通过我,干部情况不向我会报,因此处理事情有困难。
</p>
<p>
合营后降低工资问题,责任不是我,而是他们(指公方)不按中央合营后六个月基本不动方针,他们一错再错,我向他提意见无效。管理部“软的深绑,硬的浅掘”。
</p>
<p>
梁奇:人事安排私提公批,公司不应派干部来抓。公私关系搞得不好,完全是公方责任。私方有职无权,文件秘书不给看,自己要争取。对公方要尖锐提意见,如不给文件看,就晤晒理,只要有胆量,不然被公方揸死。
</p>
<p>
彭裕伯:工艺品出口公司话... | HTML |
el(), linux_kmap_atomic_vaddr, NULL));
vaddr = linux_kmap_atomic_vaddr;
pmap_kenter_pa(vaddr, paddr, (VM_PROT_READ | VM_PROT_WRITE), 0);
pmap_update(pmap_kernel());
return (void *)vaddr;
}
void
kunmap_atomic(void *addr)
{
const vaddr_t vaddr = (vaddr_t)addr;
#ifdef __HAVE_MM_MD_DIRECT_MAPPED_PHYS
{
paddr_t... | C |
Light, themeLight)
);
};
const isSimilarImages = (image, themeImage): Boolean => image === themeImage;
const isSameStyles = (colors, styles) => {
if (colors.length !== styles.length) return;
if(colors[0].type !== styles[0].type) return;
let flag = colors.length;
for (let index = 0; index < colors.length;... | Typescript |
.7344 30.5664-68.3008 68.3008-68.3008h575.6928c37.7344 0 68.3008 30.5664 68.3008 68.3008v174.7968a32.256 32.256 0 1 1-64.6144 0V215.296a3.6864 3.6864 0 0 0-3.6864-3.6864H223.8976z m91.648 120.1664a32.256 32.256 0 1 0 0 64.6144h392.4992a32.3072 32.3072 0 1 0 0-64.6144H315.4944z m0 157.0304a32.256 32.256 0 1 0 0 64.6144h... | JavaScript |
th the general registers. We also see many
/// special-purpose register subsets, such as tail-call and Thumb
/// encodings. Generating all possible overlapping sets is combinatorial and
/// overkill for modeling pressure. Ideally we could fix this statically in
/// tablegen by (1) having the target define register clas... | C++ |
} else if strings.HasPrefix(part, "Y") {
if strings.HasSuffix(part, ";") {
part = part[:len(part)-len(";")]
}
coord.Y, err = strconv.ParseFloat(part[1:], 64)
if err != nil {
panic(err)
}
coord.Y = -coord.Y
} else if strings.HasPrefix(part, "Z") {
if strings.HasSuffix(... | Go |
e: "TOR enabled but node set to clearnet only",
);
}
} else {
if (netOption == TorPlainNetworkOption.tor) {
throw NodeTorMismatchConfigException(
message: "TOR off but node set to TOR only",
);
}
}
return super.request(request, timeout);
}
}
import 'pac... | Dart |
hat you can feel that<br>
he's bluffing or do you just tell<br>
it to your captain?</p>
<p> Troi reacts, on the defensive...</p>
<p> TROI<br>
That's different. It's a matter<br>
of protection...</p>
<p> DEVINONI<br>
Your protection... your captain,<br>
your crew... your edge.<br>
(beat... | HTML |
/*
ucg_init.c
Universal uC Color Graphics Library
Copyright (c) 2013, olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retai... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.