sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
165f811c01b1064370313dce042afba3806ee28aaa20d7257a8f78b84b6da13d
C/C++
163
9
#ifndef __setjmp_h__ #define __setjmp_h__ typedef long jmp_buf[20]; void longjmp(jmp_buf jmpb, int retval); int setjmp(jmp_buf jmpb); #endif /* __setjmp_h__ */
bfafe065b1c890e186de22ae20f0f4cd6af3cc4b6c00a0139a1be22d965d60ef
C/C++
168
13
# ifndef _WAVE_H_ # define _WAVE_H_ # define P_Wave 0 # define SV_Wave 1 # define SH_Wave 2 typedef struct { int type; double slowness; } Wave; # endif
b2b6692145b11c7c2774db106078c97575a47d18e80c7783c68566475325ebb4
C/C++
187
5
// This file is only provided for compatibility and may be removed in future // versions. Use fmt/base.h if you don't need fmt::format and fmt/format.h // otherwise. #include "format.h"
96ab058fdc033a42da75091c424c72726cb20e9724d6aacafe0eeba748a93033
C/C++
220
12
#ifndef LINUX_COMIPLER_H_ #define LINUX_COMIPLER_H_ #ifndef __always_inline # define __always_inline inline #endif #ifndef noinline # define noinline __attribute__((__noinline__)) #endif #endif // LINUX_COMIPLER_H_
f83209e3fe00e04a071190e26a599f27d616222a8d94088edea01c9aa4caa930
C/C++
226
15
#ifndef TIME_STUB_H #define TIME_STUB_H #include <winsock.h> //For timeval defn struct timezone { int tz_minuteswest; int tz_dsttime; }; int gettimeofday(struct timeval *tv, struct timezone *tz); #endif
d2e21b36558d0697364ca5ab05459f2526208a6595224eaba4244b9b8fa58786
C/C++
234
11
/** * Copyright 2022-2024, XGBoost Contributors */ #ifndef XGBOOST_TESTS_CPP_FILESYSTEM_H #define XGBOOST_TESTS_CPP_FILESYSTEM_H #include <xgboost/windefs.h> #include "dmlc/filesystem.h" #endif // XGBOOST_TESTS_CPP_FILESYSTEM_H
cd9ef99b5b99d1dfae723e82a7f722204f67e2d5ce5b18bd8843ca86fa050510
C/C++
245
13
#ifndef LAMBDA_CALC_H #define LAMBDA_CALC_H #include <vector> double calculate_lambda( const double** raw_mat_b, const int alpha_size, std::vector<double>& final_p, std::vector<double>& final_q, double eps = 1e-12 ); #endif
c8e12cbafa6593a98fc4d1a82019d94cb0767444e72edf81901a0c014e85987e
C/C++
259
8
/* assert.h */ #undef assert #ifdef NDEBUG #define assert(p) ((void)0) #else #define assert(p) ((p) ? (void)0 : (void) _assertfail("Assertion failed: ",#p, __FILE__, __LINE__ )) int _assertfail(char *__msg, char *__cond, char *__file, int __line); #endif
e54640df694d96234fc1ea2c4151de9585da835f9f0e36922c0f05496405561d
C/C++
262
10
#ifndef _SIZE_T_DEFINED typedef unsigned long long size_t; #define _SIZE_T_DEFINED #endif void * _alloca(size_t size); void * calloc(size_t num, size_t size); void free(void *memblock); void * malloc(size_t size); void * realloc(void *memblock, size_t size);
264aeacf9ca6a70ee41d018b665e358b4168842f5a41a5b88358e037a4322c78
C/C++
264
19
#import <Metal/Metal.h> #import <MetalKit/MetalKit.h> #import "Renderer.h" #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end #else #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end #endif
eabe9a4224ae6f35f2d9821fa19f160769903121444b509f0508db1263695185
C/C++
274
8
#ifndef DEFINE_GUID #error initguid: must include objbase.h first. #endif #undef DEFINE_GUID #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ EXTERN_C const GUID name \ = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
92e295ac04e5e46070bd7d320822ad1d997bb27536d45de1e6ff21a695ef34be
C/C++
284
8
/* minimal set of defines required to generate zstd.res from zstd.rc */ #define VS_VERSION_INFO 1 #define VS_FFI_FILEFLAGSMASK 0x0000003FL #define VOS_NT_WINDOWS32 0x00040004L #define VFT_DLL 0x00000002L #define VFT2_UNKNOWN 0x00000000L
d5e683944ef8b90118818620e3f60541a15fdaf26f66074ca14b9b21fc0c4ecb
C/C++
288
11
/** * Copyright 2019-2023 by XGBoost contributors */ #ifndef XGBOOST_VERSION_CONFIG_H_ #define XGBOOST_VERSION_CONFIG_H_ #define XGBOOST_VER_MAJOR 3 /* NOLINT */ #define XGBOOST_VER_MINOR 1 /* NOLINT */ #define XGBOOST_VER_PATCH 0 /* NOLINT */ #endif // XGBOOST_VERSION_CONFIG_H_
533e974897822d892e52d510907eb81b4b7f9eda8cf83d6611899028b6e60cdf
C/C++
297
18
#import <TargetConditionals.h> #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end #else #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end #endif
dbc11635d7b1ba1887adf40df5b83d634e9c3ab0bee34510c71528bb4d73602a
C/C++
302
15
// // Generated file. Do not edit. // // clang-format off #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_ #include <flutter/plugin_registry.h> // Registers Flutter plugins. void RegisterPlugins(flutter::PluginRegistry* registry); #endif // GENERATED_PLUGIN_REGISTRANT_
00f93bb5b1faefdede8f6065df327522900fb0b8efee86bacf424fd947ed14bb
C/C++
303
15
// // Generated file. Do not edit. // // clang-format off #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_ #include <flutter_linux/flutter_linux.h> // Registers Flutter plugins. void fl_register_plugins(FlPluginRegistry* registry); #endif // GENERATED_PLUGIN_REGISTRANT_
0cb20586eec2cdfa853eb56b1430d4cb18dc5e7b1e1c58dfc6fb454a12cd1efc
C/C++
308
19
#ifndef _LCC_TIMEB #define _LCC_TIMEB #ifndef _TIME_T_DEFINED typedef long time_t; #define _TIME_T_DEFINED #endif #define timeb _timeb /* current definition */ struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; void _ftime(struct _timeb *); #endif /* _LCC_TIMEB */
0cb61c06b50f955a217557f6ea8af531c9ccd33936680d9f58d856b83cef46ef
C/C++
312
15
#ifndef MIIC_CONFIDENCE_CUT_H_ #define MIIC_CONFIDENCE_CUT_H_ #include "environment.h" namespace miic { namespace reconstruction { void setConfidence(structure::Environment&); void confidenceCut(structure::Environment&); } // namespace reconstruction } // namespace miic #endif // MIIC_CONFIDENCE_CUT_H_
a2761fdbd4c8925741ddea678ee8398de930207e447666bc6a76d5f72684c04f
C/C++
314
8
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
01c50c58126738469c32b59a2e12c74ec6c9d9ed3801d99afc20a2489a7674f0
C/C++
321
5
/*---------------------------------------------------------------------------*/ /* crt.h - C runtime base include file */ /*---------------------------------------------------------------------------*/ #include <time.h> /* includes time.h, locale.h and crtdef.h */ ...
7517fa1b0ca26265c7a75039ce37ef328e67508cf0b74673631a6a2663d08603
C/C++
321
14
#ifndef MIIC_R_CPP_INTERFACE_H_ #define MIIC_R_CPP_INTERFACE_H_ #include <Rcpp.h> #include "environment.h" namespace miic { namespace utility { void setEnvironmentFromR( const Rcpp::List&, const Rcpp::List&, structure::Environment&); } // namespace utility } // namespace miic #endif // MIIC_R_CPP_INTERFACE_H_...
72e5bbf6ea34842031b097067feb56b5e63b72dfab196c8e5b883e0f09bc9618
C/C++
329
8
// This file was GENERATED by command: // pump.py gmock-generated-actions.h.pump // DO NOT EDIT BY HAND!!! #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ #define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_AC...
976aaa85089f285bcb542055f30ba250e59ea6a32a71e75ce806ba257e05966b
C/C++
331
19
#ifndef _LSONG_RSCAF_DEFS_HEADER #define _LSONG_RSCAF_DEFS_HEADER #include <stdint.h> #define MAX_SEG_COUNT 127 struct _pair { int64_t a, b ; } ; char nucToNum[26] = { 0, -1, 1, -1, -1, -1, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1 } ; char numToNuc[26] = {'A', 'C', 'G', 'T'...
6b0699dfacabac0cdcd267398aadb01113e7bb8141e9c1c4739176cc65721a12
C/C++
336
16
#ifndef __STDDEF_H #define __STDDEF_H #ifndef _SIZE_T_DEFINED typedef unsigned long long size_t; #define _SIZE_T_DEFINED #endif typedef long long ptrdiff_t; #define offsetof(s,m) (long long)&(((s *)0)->m) #ifndef NULL #define NULL (void *)0 #endif #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t...
1819748a55486130afebca0c496b057a73a7598b37991e260543e341f1ea5478
C/C++
342
17
#include<R.h> #include<Rdefines.h> #include "Matrix.h" int *random_idx(const int n); int shuffle(double tmp[], int const idx[], const int n); void random_index_init(int perm, int n_unit); void random_index_free(); int shuffle_index(double *tmp, int index, int length); int get_perm_idx(int i, int j); const int *ge...
b84d14727e31b7840295ce83fe9aadc21d1e7ed9d0ec2f456507237cf1d67a04
C/C++
342
15
#ifndef __safelib_h__ #define __safelib_h__ int ConstraintFailed( const char *fn, const char *reason, void *reserved ); #define __STDC_LIB_EXT1__ #ifndef _ERRNO_T_DEFINED typedef int errno_t; #define _ERRNO_T_DEFINED #endif #define L_tmpnam_s 512 #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef unsigned int rs...
624eab979168603019eada9253bd06f703e6552cd9bbfe7904686a2b13f735ff
C/C++
350
13
#ifndef _INC_UTIME #define _INC_UTIME #pragma pack(push,8) struct _utimbuf { long actime; /* access time */ long modtime; /* modification time */ }; #define utimbuf _utimbuf int _utime(const char *, struct _utimbuf *); int _futime(int, struct _utimbuf *); int _wutime(const short *, struct _utimbuf *); #pragma pack...
347b636244802e167d1cec78e3a3b66b79e272d0cf4d286ce2ce147a3b805702
C/C++
353
17
/** * Copyright 2020-2024 by XGBoost Contributors */ #ifndef XGBOOST_TEST_QUANTILE_OBJ_H_ #define XGBOOST_TEST_QUANTILE_OBJ_H_ #include <xgboost/context.h> // for Context namespace xgboost { void TestQuantile(const Context* ctx); void TestQuantileIntercept(const Context* ctx); } // namespace xgboost #endif /...
3d61a270767626d176388bcd78f3cdff5b41fa893a2fc4ef2b1dd5e5c3510baf
C/C++
369
30
/*++ Module Name: exit.h Abstract: Header for SNAP soft exit function Authors: Bill Bolosky, February, 2013 Environment: User mode service. Revision History: --*/ #pragma once #define soft_exit(n) soft_exit_function(n, __FILE__, __LINE__) void soft_exit_no_print(int n); void soft_exit_fun...
8d48da794f3476c97a79b83ee87e1e70a76a6641eaf1647504d5e7e4a15c0b4c
C/C++
371
14
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // TODO: refere...
9eb5e1866ca1ea076b0c310497ed90f705ca0551ba3994e8478b6530fcbb785d
C/C++
376
21
#ifndef __winresrc__ #define __winresrc__ #ifndef WINVER #define WINVER 0x0500 #endif #ifndef _WIN32_IE #define _WIN32_IE 0x0501 #endif #ifndef _WIN32_WINDOWS #define _WIN32_WINDOWS 0x0410 #endif #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0500 #endif #include <winuser.h> #include <commctrl.h> #include <dde.h> #include...
a044da4b485c93d0e1a79c62356b22c8856dd2bab537ffb6a9446fc905131316
C/C++
388
18
#ifndef FLUTTER_MY_APPLICATION_H_ #define FLUTTER_MY_APPLICATION_H_ #include <gtk/gtk.h> G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, GtkApplication) /** * my_application_new: * * Creates a new Flutter-based application. * * Returns: a new #MyApplication. */ MyAppli...
76f53d8b607116299c9a4c8153df4ef8f0e1fbe3213a3135b50fd1202034a93e
C/C++
394
10
#ifndef LINUX_MODULE_H_ #define LINUX_MODULE_H_ #define EXPORT_SYMBOL(symbol) \ void* __##symbol = symbol #define MODULE_LICENSE(license) static char const *const LICENSE = license #define MODULE_DESCRIPTION(description) \ stat...
6a12bd8b5981258752224c93ce75e674a0a0fb0162783e9dca0f87b9057dfc57
C/C++
410
24
#ifndef PHP_A3M_READER_H #define PHP_A3M_READER_H #include <cstddef> #include <vector> #include <string> class A3mReader { public: A3mReader(std::string a3m); std::string getFasta(); private: void addSequence(const std::string& sequence); bool columnHasInsertion(size_t col); std::vector<std::s...
b12f6faa126eba1a0b8b952d2aba81d6daa74267aaf6befc1efcbbd7f2769b8d
C/C++
412
15
#ifndef DEFINITIONS_H #define DEFINITIONS_H #define PROTOCOL_I2C -2 #define PROTOCOL_SPI -3 #define SEND_COMMAND_VALUE_H -5 #define SEND_COMMAND_VALUE_L -6 #define SEND_COMMAND_VALUE -6 #define SEND_COMMAND_VALUE_H16 -7 #define SEND_COMMAND_VALUE_H24 -8 #define SEND_COMMAND_VALUE2_H -9 #de...
bc8d34957ccc6cf35dccd018c2331ec886f818a0ca832120cc097a0594aa6aef
C/C++
412
34
/*++ Module Name: Error.h Abstract: Header for SNAP error-message writer Authors: Bill Bolosky, Feburary, 2014 Environment: User mode service. Revision History: --*/ #pragma once #include "Compat.h" void WriteErrorMessage(const char *message, ...); void WriteStatusMessage(const cha...
a69ed97253c59a94e3687854b34ea27f725f0b5a47c1833e1554c78a545546ee
C/C++
413
15
#include <string> #include <vector> #include <map> #include <bitset> #include <algorithm> #include <stdlib.h> #include <cstdint> namespace scutil{ int hamming_distance(const std::string &A, const std::string &B); double edit_distance(const std::string& A, const std::string& B); unsigned int edit_distance1(...
c847bc414d9b2902e0eac687461560e752da710f3737f49180b91322f181d72f
C/C++
419
19
#ifndef BAM_POOL_H #define BAM_POOL_H #include "htslib/hts.h" #include "htslib/sam.h" struct bam_pool { int n, m; bam1_t *bam; sam_hdr_t *hdr; void *extend; }; extern struct bam_pool *bam_pool_create(); extern struct bam_pool *bam_pool_init(int size); extern void bam_read_pool(struct bam_pool *p, hts...
59bc0df9bfcf61e81716bfe3a69c99329f5fdaa492fb98bc76d63e10f8456ba4
C/C++
423
6
/* ZDICT_trainFromBuffer_legacy() : * issue : samplesBuffer need to be followed by a noisy guard band. * work around : duplicate the buffer, and add the noise */ size_t ZDICT_trainFromBuffer_legacy(void* dictBuffer, size_t dictBufferCapacity, const void* samplesBuffer, const size_t...
97cfa6177f763d1acd3236338c059d56a3840fd24c3c24ec7748b437687518c1
C/C++
428
24
#ifndef UMI_CORR_H #define UMI_CORR_H #include <stdlib.h> struct block_umi; struct corr_tag { int n, m; struct block_umi *umi; void *dict; }; struct corr_tag *corr_tag_build(); void corr_tag_destory(struct corr_tag *C); void corr_tag_push(struct corr_tag *C, char const *n, char const *u); char *corr_...
1fa98588b04561590ba1cf0521ab86a9db4a878312f21c9d5861d965ddd8d1ae
C/C++
432
16
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Runner.rc // #define IDI_APP_ICON 101 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE ...
ed2e5d4b0d6a51646168810bea1691d333d6ac65267a6b4ec24920b1dffe10d2
C/C++
437
14
#ifndef __BLAST_UTILS_H__ #define __BLAST_UTILS_H__ #include <inttypes.h> #include <stdio.h> FILE *open_file(const char *filename, const char *mode); void *alloc_memory(void *data, uint32_t element_size, uint32_t old_size, uint32_t new_size); uint32_t nlz(uint32_t x); uint32_t next_power_of_2(uint32_t n); uint32_t r...
d34e185014435526e7f2137a92041515e3c0f13668eecd4d250d2696bbd4716a
C/C++
440
17
#ifndef MIIC_RECONSTRUCT_H_ #define MIIC_RECONSTRUCT_H_ #include "biconnected_component.h" #include "environment.h" namespace miic { namespace reconstruction { bool initializeSkeleton(structure::Environment&); bool setBestContributingNode(structure::Environment&, BiconnectedComponent&); bool searchForConditionalInde...
15a526e53ab3546dad9ef2a366cbba32dff0e29c0b5ccdbc9b09f48780c81ef6
C/C++
442
21
#ifndef REGION_IDX_H #define REGION_IDX_H struct region_index; struct region_itr { int n; void **rets; }; struct region_index *region_index_create(); void region_index_destroy(struct region_index *idx); void index_bin_push(struct region_index *idx, uint32_t start, uint32_t end, void *new); struct region_i...
ccfc293de698fb8a43d26adbebdeaa4258204962cb26ee080ca2a516e76888af
C/C++
444
27
// // Created by hoseok on 11/3/18. // #ifndef EXAM_SIMPLEMOTION_H #define EXAM_SIMPLEMOTION_H #include <string> #include <vector> #include "Eigen/Core" namespace MASS { class SimpleMotion { public: SimpleMotion(); std::vector<std::pair<int, double>> getPose(double ratio); std::vector<int> idx; std::vec...
d28d8bcc7bac0249a5634a492039ef480ee3311763cb6e22f7876450c95244f9
C/C++
445
19
#ifndef MIIC_ORIENTATION_PROBABILITY_H_ #define MIIC_ORIENTATION_PROBABILITY_H_ #include <string> #include <vector> #include "environment.h" namespace miic { namespace reconstruction { void updateAdj(structure::Environment&, int, int, double, double); std::vector<std::vector<std::string>> orientationProbability( ...
7f4657cceecbe1fa28660c349da976c38fad80ef111c96c6873d4fd755842452
C/C++
459
12
/*---------------------------------------------------------------------------*/ /* share.h - file sharing constants */ /*---------------------------------------------------------------------------*/ #define A_NORMAL 0x0000 #define A_RDONLY 0x0001 #define SH_COMPAT...
8efebdb4bfcc4fb2c1bb492f47db84dfbaf8cd9b90ae2e4ffefce841f3fab65f
C/C++
459
30
#ifndef BED_HEADER #define BED_HEADER #include "utils.h" struct bed { int start; int end; char *name; void *data; }; struct bed_chr { int id; int n, m; struct bed *b; }; struct bedaux { int n, m; char **names; struct bed_chr *c; void *name2id; }; extern struct bedaux *be...
0995e58e5d8ba0e2b28187150feb46a12c9b7ee2bf27be43b00926cd1c9a9c31
C/C++
461
23
// Simimarity Search of short DNA sequences 10~16bp #ifndef SIM_SEARCH_HEADER #define SIM_SEARCH_HEADER typedef uint64_t base64_t; typedef uint32_t base32_t; typedef struct similarity_search_aux ss_t; extern void set_levenshtein(); extern void set_hamming(); extern void set_mix(); extern ss_t *ss_init(); extern c...
b811f0765d258a042c3fa25d5a9d2a373bc19bee5eb5a09e8283db83056f97fc
C/C++
466
24
#ifndef NUCLEOTIDE_MATRIX_H #define NUCLEOTIDE_MATRIX_H #include "SubstitutionMatrix.h" class NucleotideMatrix : public SubstitutionMatrix { public: NucleotideMatrix(const char *scoringMatrixFileName, float bitFactor, float scoreBias); virtual ~NucleotideMatrix(); using BaseMatrix::getBitFactor; vo...
7fe016b8be3c8b679c45a74d695b34449df7e8df87885243c46fbed36aa1e585
C/C++
471
36
/*++ Module Name: WindowsFileMapper.h Abstract: Header for support code for file mapping on Windows Authors: Bill Bolosky, November, 2012 Environment: User mode service. Revision History: --*/ #pragma once #ifdef _MSC_VER class WindowsFileMapper { public: WindowsFileMapper(); ...
8c0ba721c64fdf594bb2a0ccbafcfb811898579558636b216b437a362642b415
C/C++
483
16
// // Created by Martin Steinegger on 6/21/20. // #ifndef MMSEQS_MEMORYTRACKER_H #define MMSEQS_MEMORYTRACKER_H #include "stddef.h" class MemoryTracker{ public: static size_t getSize() { return totalMemorySizeInst;}; protected: static size_t totalMemorySizeInst; static void incrementMemory(size_t memorySiz...
01e3697c109b358c45cddb8af75066b3de5499f2064f844ffa3c86a8691e6516
C/C++
488
22
#ifndef BAM_REGION_H #define BAM_REGION_H #include "utils.h" #include "bed.h" #include "region_index.h" #include "htslib/hts.h" #include "htslib/sam.h" struct bam_region_itr { struct bed_spec *bed; hts_idx_t *idx; hts_itr_t *itr; int i_bed; }; struct bam_region_itr *bri_init(htsFile *fp, const char *...
0d98e9621a2518edbffb7608a99c1e432a4b16fd2f43effcfd126de3c8a9e189
C/C++
492
29
/*++ Module Name: CommandProcessor.h Abstract: Header for running the top-level commands of SNAP Authors: Bill Bolosky, November, 2014 Environment: User mode service. Revision History: --*/ #pragma once #include "Compat.h" extern void ProcessTopLevelCommands(int argc, const char **argv); extern...
89c4d6cf27f1e83a5cc6f55ce1b64d1a47473ba790e1a8d03b0ccb92c465d0f0
C/C++
494
25
#include <assert.h> #include <complex.h> #include <ctype.h> #include <fenv.h> #include <float.h> #include <inttypes.h> #include <limits.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #in...
35f7e4c875587ac9451821c89725b45c690e1a3342ef5ba903914e84dabe28d0
C/C++
497
22
#ifndef MMSEQS_COMMANDCALLER_H #define MMSEQS_COMMANDCALLER_H #include <cstddef> #include <string> #include <vector> class CommandCaller { public: CommandCaller(); void addVariable(const char* key, const char* value); int callProgram(const char* program, size_t argc, const char **argv); static unsi...
fec843fad67c0a1b6496992bbdc660cde5e3f59322feebe75b3fe38d48c87d18
C/C++
501
17
#ifndef ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3....
ff854b2abd44bbb7c3a0f0e557068d2613e6a9dbcbf38ccd563942a7bb0ff1c2
C/C++
502
16
#ifndef EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correc...
bc95dcef26b914ebab15dec896ca3349e21a2a61609567c8d1e64785682c677f
C/C++
505
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * rtwtypes.h * * Code generation for function 'multitaper_spectrogram_coder' * */ #pragma once /* Include f...
de43d96a94d7b70b874df235229e6fb968e77a79e1195e48347dacea91af69d3
C/C++
507
21
#ifndef BARCODE_LIST_H #define BARCODE_LIST_H #include <stdio.h> #include <stdlib.h> struct barcode { char *s; void *data; }; struct barcode_list { struct barcode *b; int n, m; void *hash; }; extern struct barcode_list *barcode_init(); extern int barcode_read(struct barcode_list *lb, const char *f...
dd19cd477379648c56f5640f58ac9ab2d89e8374bdd96d023dbd484492fbd480
C/C++
510
16
#ifndef VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correctly ...
64b806862f827a01b6d021d700c7075f64ab5c5f6c3c028f2c8dc198fbe1730f
C/C++
518
19
#ifndef XGBOOST_COMMON_PSEUDO_HUBER_H_ #define XGBOOST_COMMON_PSEUDO_HUBER_H_ /*! * Copyright 2022, by XGBoost Contributors */ #include "xgboost/parameter.h" namespace xgboost { struct PesudoHuberParam : public XGBoostParameter<PesudoHuberParam> { float huber_slope{1.0}; DMLC_DECLARE_PARAMETER(PesudoHuberParam)...
87b587fe7e3865be515a732d506cada8436389015f49762e0df5fb22d622f714
C/C++
519
36
/*++ Module Name: Directions.h Abstract: Definitions for basic read directions (forward & reverse compliment) Authors: Bill Bolosky, January, 2013 Environment: User mode service. Revision History: --*/ #pragma once const int NUM_DIRECTIONS = 2; // Forward and reverse compliment type...
3ef28d593bb11df52974ca12844d6d0d742a346e4b9a360797f8b9585d7a5ea9
C/C++
524
20
#ifndef MMSEQS_INDEXTYPES_H #define MMSEQS_INDEXTYPES_H #include <cstdint> #include <cstddef> #include <limits> #ifdef MMSEQS_INT64_IDS using DBKeyType = uint64_t; using DBLocalId = uint64_t; #else using DBKeyType = uint32_t; using DBLocalId = uint32_t; #endif static constexpr DBKeyType DB_KEY_INVALID = std::numeric...
2386ba26318b06bc62c4304025f2f57fd0f9341a7339e3c47184698c682c4a3c
C/C++
526
31
#ifndef MMSEQS_TIMER_H #define MMSEQS_TIMER_H #include <sys/time.h> #include <string> class Timer { public: Timer() { reset(); }; std::string lapProgress(); std::string lap(); double getTimediff(){ struct timeval end; gettimeofday(&end, NULL); double timediff = (...
006c8d0b80170f6074149b1cffbc66d85181fcac6a1b754f7e9d5bb7a96e8bca
C/C++
538
29
// // Created by Martin Steinegger on 10/1/21. // #ifndef MMSEQS_DOWNLOADDATABASE_H #define MMSEQS_DOWNLOADDATABASE_H #include <vector> #include <string> struct EnvironmentEntry { const char* key; const char* value; }; struct DatabaseDownload { const char *name; const char *description; const ch...
7c119ed9473d2312ed89dbba472b175f49a4fd072171db95abe516a0ee11f967
C/C++
540
20
#define AHK_NAME "AutoHotkey" #define T_AHK_NAME _T(AHK_NAME) #ifndef RAW_AHK_VERSION // Fallback version string for when `git describe` fails during build. #define RAW_AHK_VERSION "2.0" #endif #ifdef RC_INVOKED #define AHK_VERSION RAW_AHK_VERSION #ifndef AHK_VERSION_N #define AHK_VERSION_N 2,0,0,0 #endif #else...
58d709085b46f31eef29fd8074d1c6d1657d3ebd4fb393b1c06a73cef69e6e48
C/C++
541
16
#ifndef EMITTERDEF_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define EMITTERDEF_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correctly ...
905478618ff08d57c536e0c4f9ba1f141fa169e78eb550ed259546f815ddf366
C/C++
542
26
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * nextpow2.h * * Code generation for function 'nextpow2' * */ #pragma once /* Include files */ #include "rt...
7f6648c39d2b4496bf27adcaccd4e1ab9c66359b208a33b9c5c03235474ab9e1
C/C++
547
16
/****************************************************************** * * * Copyright by Joachim Saul <saul@gfz-potsdam.de> * * * ***********************************************...
08555d3fce66bfe3a76f4845726a5854db27324bc279a893bf375b594288c4d5
C/C++
548
26
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * warning.h * * Code generation for function 'warning' * */ #pragma once /* Include files */ #include "rtwt...
0c3bf7813a06eaf40c89653c66a322826eeab17032677c5f6e1fb7e52792f335
C/C++
556
11
//----------------------------------------------------------------------------- // COMPILE-TIME OPTIONS FOR DEAR IMGUI ALLEGRO 5 EXAMPLE // See imconfig.h for the full template // Because Allegro doesn't support 16-bit vertex indices, we enable the compile-time option of imgui to use 32-bit indices //------------------...
4cd8e84bd7681c5aff0d57e774bfb6919851f6e4ee6b6f6d06787fe8768217ad
C/C++
563
25
/** * Copyright 2024, XGBoost Contributors * * @brief RAII guard, simplified version of absl::Cleanup */ #pragma once #include <functional> // for function #include <utility> // for forward namespace xgboost::common { class Cleanup { std::function<void()> cb_; public: template <typename Callback> expl...
e2aa5d958f8b0088a96210ba2b2f8be58c9d577584cc7230f7c1a012d51d7c2e
C/C++
591
32
// // Created by annika on 09.11.22. // #ifndef MMSEQS_SEQUENCEWEIGHTS_H #define MMSEQS_SEQUENCEWEIGHTS_H #include "IndexTypes.h" class SequenceWeights{ public: struct WeightIndexEntry { DBKeyType id; float weight; static bool compareByIdOnly(const WeightIndexEntry &x, const WeightIndexE...
4929f568f1595f8c8762b37b14e05d27216c85a9230b2e814eb9643ae846848b
C/C++
603
16
#ifndef MMSEQS_INDEXBUILDER_H #define MMSEQS_INDEXBUILDER_H #include "IndexTable.h" #include "ExtendedSubstitutionMatrix.h" class IndexBuilder { public: static void fillDatabase(IndexTable *indexTable, SequenceLookup **externalLookup, BaseMatrix &subMat, S...
644e0820933c19a8b743ba6ece451b1477071775a6961dafc00e501503d9084d
C/C++
609
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * issorted.h * * Code generation for function 'issorted' * */ #pragma once /* Include files */ #include "mu...
488b89e8c4dd152a713db4b8780507dd1b6f1b469705111a85361b66d24609cf
C/C++
610
23
/* * Copyright 2013-2023, Derrick Wood <dwood@cs.jhu.edu> * * This file is part of the Kraken 2 taxonomic sequence classification system. */ #ifndef KRAKEN2_AA_TRANSLATE_H_ #define KRAKEN2_AA_TRANSLATE_H_ #include "kraken2_headers.h" namespace kraken2 { void initLookUpTables(); // Translates a span of bases int...
2cd19709b9c19b3891d159dcb8c5725a02644100d39a34008cfd4ba2667b34c5
C/C++
612
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * trisolve.h * * Code generation for function 'trisolve' * */ #pragma once /* Include files */ #include "rt...
9361bf6e0799bc741487766eec1e7ea898ec08281adadb4e0e09463fa80da195
C/C++
614
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * any.h * * Code generation for function 'any' * */ #pragma once /* Include files */ #include "multitaper_s...
ce69140441cd91aeefd4e9f3c8c85c43b10a5302407404ecd059dca7639d9e00
C/C++
614
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * all.h * * Code generation for function 'all' * */ #pragma once /* Include files */ #include "multitaper_s...
6960b01908f737c0e1b16eb8ba9da01e06d8140e4b1913e1fb647bbbc1266872
C/C++
627
19
#ifndef SCANTAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define SCANTAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since ...
40ac33a53145e0f82f6321856e9d2abb6887125afa7d8101e124abefc8d358b8
C/C++
630
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * mtimes.h * * Code generation for function 'mtimes' * */ #pragma once /* Include files */ #include "multit...
bb98286b11db1253da6ed0bf7d9a70e6ec3c0c4d8f56947a703ca1c66bbb055b
C/C++
630
28
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * any1.h * * Code generation for function 'any1' * */ #pragma once /* Include files */ #include <cmath> #in...
c4b4956d2d6a15d457271431232e558c7659ec9d97d3df4f186f334887fc0270
C/C++
638
26
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * eml_int_forloop_overflow_check.h * * Code generation for function 'eml_int_forloop_overflow_check' * */ #p...
6f2e448c27d9c6abd7dc63587d1127d19ecad2e1217fff9d9a930c0f3cd369a3
C/C++
639
23
#ifndef FASTSORT_H #define FASTSORT_H #include <algorithm> #ifdef ENABLE_IPS4O # include "simde/hedley.h" # if defined(HEDLEY_GCC_VERSION) && HEDLEY_GCC_VERSION_CHECK(0,0,0) && !HEDLEY_GCC_VERSION_CHECK(5,1,0) && defined(__cplusplus) # define is_trivially_default_constructible has_trivial_default_constructor # endif ...
5525b24fd2ed2b760fb00cc922b1c025be23190e3a954f147e32986f990faf96
C/C++
641
24
#ifndef INCLUDE_CAFFE_UTIL_SIGNAL_HANDLER_H_ #define INCLUDE_CAFFE_UTIL_SIGNAL_HANDLER_H_ #include "caffe/proto/caffe.pb.h" #include "caffe/solver.hpp" namespace caffe { class SignalHandler { public: // Constructor. Specify what action to take when a signal is received. SignalHandler(SolverAction::Enum SIGINT_a...
d21fd2ecdc449d9fb8157ecd870b3c8d755e3652ef5832aec8ef234c75c41c11
C/C++
641
22
#ifndef FQ_TAG #define FQ_TAG #include <stdio.h> #include <stdlib.h> #include "dict.h" #include "fastq.h" #define MAX_ID_LENGTH 254 struct dict *str2tag(const char *seq); int fname_query_tag(const char *p, const char *tag); char *fname_pick_tag(const char *p, const char *tag); char *fname_concat_tag(char *p, const c...
c01aa6cbb62586e125916f5a805be069d76c27d03907e9546d6d7fa009fd78a2
C/C++
644
28
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * mean.h * * Code generation for function 'mean' * */ #pragma once /* Include files */ #include "multitaper...
120aedf6b79ab4d72f6ca68a9e20390da8f5da0f9ff1a344c03e5f585db89b63
C/C++
645
26
#ifndef MMSEQS_HEADERSUMMARIZER_H #define MMSEQS_HEADERSUMMARIZER_H #include <string> #include <vector> class HeaderSummarizer { public: virtual std::string summarize(const std::vector<std::string>& headers) = 0; virtual ~HeaderSummarizer() {}; }; class UniprotHeaderSummarizer : public HeaderSummarizer { pub...
557d9c2383c3bcae5624a115c00dfacb87285090c1c9be757d0e29795ba572c9
C/C++
649
27
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * indexShapeCheck.h * * Code generation for function 'indexShapeCheck' * */ #pragma once /* Include files *...
ffb59ac19485bd953d698f9e1c690fa9264a4258fcefa8744f49cb5252e225b2
C/C++
652
28
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * find.h * * Code generation for function 'find' * */ #pragma once /* Include files */ #include "multitaper...
5c89b4038ce82b7414d4f81bdf4c107a74a21a04712aeb29a8d7b5d127c33941
C/C++
654
23
/* WG14/N869 January 18, 1999 Page 257 7.16 Boolean type and values <stdbool.h> 1 The header <stdbool.h> defines four macros. 2 The macro bool expands to _Bool. 3 The remaining three macros are suitable for use in #if preprocessing directives. They are true which expands to the integer constant 1, false which expands ...
005e112d7be5f48e93f9fcade687c446420145dabe439e4c37e4b8b1a3e9cab4
C/C++
659
35
#ifndef FASTQ_TD #define FASTQ_TD #include <stdio.h> #include <stdlib.h> #include "dict.h" struct read { char *name; int l0, l1; char *s0; char *q0; char *s1; char *q1; }; struct read_block { char *name; struct read *b; int n, m; int pair_mode; }; struct thread_dat { int n...
32a4b404a153ac039b4ea576f182f15e4149902a565b0f04fcb1d22b538745b8
C/C++
659
28
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * fft.h * * Code generation for function 'fft' * */ #pragma once /* Include files */ #include "multitaper_s...
01f29fee33e548d8dc797d8f526793ba4e0884e0e686b8be2760d7773ff480ad
C/C++
660
26
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * multitaper_spectrogram_coder_initialize.h * * Code generation for function 'multitaper_spectrogram_coder_init...
7234e8f8de6cda7d9798def855b1511a7f48520facb08f66e8017eadcb79471e
C/C++
663
22
/* * Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
b6b07b868f7c8dfe86e5c646abb01c222c48466c9c51763b0feacba8533a1e87
C/C++
666
29
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * power.h * * Code generation for function 'power' * */ #pragma once /* Include files */ #include "multitap...
2f4a1fdc8a5d7ff5646e04e26f225598c7527450c23cc7fe42d5c3e16d7707c6
C/C++
671
43
/*++ Module Name: AlignmentAdjuster.h Abstract: Header for code to adjust alignments to avoid indels at ends, or overhanging contig boundaries Authors: Bill Bolosky, May, 2016 Environment: User mode service. Revision History: Pulled out of other places in SNAP --*/ #pragma once #include "Ge...
95a7f7dddb832997cefa937a96f89472332277e75734a5de553610760b744b03
C/C++
672
19
#ifndef RUNNER_UTILS_H_ #define RUNNER_UTILS_H_ #include <string> #include <vector> // Creates a console for the process, and redirects stdout and stderr to // it for both the runner and the Flutter library. void CreateAndAttachConsole(); // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::strin...
ab20e7ec9536863664f4363a07811537ed5252a569e28609db2d14a1aadea15b
C/C++
673
28
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * repmat.h * * Code generation for function 'repmat' * */ #pragma once /* Include files */ #include "multit...