language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "../common.h" #define IRQCTRL_BASE 0xA000b200 #define REG_IRQFlags ((vu32*)(IRQCTRL_BASE+0)) //[0..2], 0=base, 1=IRQ1, 2=IRQ2 #define REG_FIQCtrl (*(vu32*)(IRQCTRL_BASE+0xC)) #define REG_IRQEnable ((vu32*)(IRQCTRL_BASE+0x10)) //[0..2], 0=IRQ1, 1=IRQ2, 2=base #define REG_IRQDisable ((vu32*)(IRQCTRL_BASE+0x1C)...
22.22
51
(translation_unit) "#include "../common.h"\n\n#define IRQCTRL_BASE 0xA000b200\n\n#define REG_IRQFlags ((vu32*)(IRQCTRL_BASE+0)) //[0..2], 0=base, 1=IRQ1, 2=IRQ2\n#define REG_FIQCtrl (*(vu32*)(IRQCTRL_BASE+0xC))\n#define REG_IRQEnable ((vu32*)(IRQCTRL_BASE+0x10)) //[0..2], 0=IRQ1, 1=IRQ2, 2=base\n#define REG_IRQDisable ...
340
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 22.22, "nodes": 197, "errors": 0, "source_hash": "54e88bad00b09b834b70c0d0ba9c74c4d55093d42c986b9a0b4a85216577e6bc", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,700
c
#pragma once #include <string> #include <condition_variable> #include <IpAddress.h> #include <PcapLiveDeviceList.h> #include <DnsLayer.h> #include <argparse.hpp> struct Arguments { pcpp::IPv4Address targetIP; // IP Address of the victim pcpp::IPv4Address hostAddress; // IP Address to poison the cache with...
35.38
45
(translation_unit) "#pragma once\n\n#include <string>\n#include <condition_variable>\n\n#include <IpAddress.h>\n#include <PcapLiveDeviceList.h>\n#include <DnsLayer.h>\n\n\n#include <argparse.hpp>\n\n\nstruct Arguments\n{\n pcpp::IPv4Address targetIP; // IP Address of the victim\n pcpp::IPv4Address hostAddress; //...
412
27
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 35.38, "nodes": 245, "errors": 0, "source_hash": "24bd1432464a02a6522005fb760923aa2cfc744e56541b64e46521f662fb7f6d", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,701
c
// // SKYDEManger.h // SKYDEManger // // Created by yeven on 2017/2/4. // Copyright © 2017年 Skyworth. All rights reserved. // #import <Foundation/Foundation.h> #import "SKYDEConfig.h" /* 接收数据全部是异步的,回调均在子线程,请勿在回调中直接刷新UI */ //Notification //通信超时导致和设备断开连接,会发送此通知 static NSString * const _Nonnull SOCKET_NOTIFICATION_...
22.86
86
(translation_unit) "//\n// SKYDEManger.h\n// SKYDEManger\n//\n// Created by yeven on 2017/2/4.\n// Copyright © 2017年 Skyworth. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SKYDEConfig.h"\n\n/* 接收数据全部是异步的,回调均在子线程,请勿在回调中直接刷新UI */\n\n//Notification\n//通信超时导致和设备断开连接,会发送此通知\nstatic NSString * ...
208
18
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 22.86, "nodes": 127, "errors": 0, "source_hash": "f078a0ab6715cf8645b9278c716c750f9708e0c19b7d87846fd6de3f850dcefe", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
76,702
c
// // TweetCell.h // twitter // // Created by atalwar98 on 7/1/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "Tweet.h" NS_ASSUME_NONNULL_BEGIN @interface TweetCell : UITableViewCell @property(strong, nonatomic) Tweet *tweet; @property (weak, nonatomic) IBOutlet UIImageVi...
35.71
24
(translation_unit) "//\n// TweetCell.h\n// twitter\n//\n// Created by atalwar98 on 7/1/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Tweet.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TweetCell : UITableViewCell\n@property(strong, nonatomic) Tweet *tweet;\n@property (...
219
26
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.71, "nodes": 159, "errors": 0, "source_hash": "8c277e91f797df6bb6e28ac6622da8336f4f132067d2f24fffa2bfa1ca93b444", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
76,703
c
#ifndef MAINCONTROL_H #define MAINCONTROL_H #include <memory> #include<qobject.h> #include "Navigator.h" #include "DatasetList.h" #include "SearchManager.h" #include <QCommandLineParser> /** * @brief Entry point of the core library of this program. * @author <NAME> */ class MainControl : public QObject { Q_OB...
19.85
34
(translation_unit) "#ifndef MAINCONTROL_H\n#define MAINCONTROL_H\n\n#include <memory>\n#include<qobject.h>\n#include "Navigator.h"\n#include "DatasetList.h"\n#include "SearchManager.h"\n#include <QCommandLineParser>\n\n\n/**\n * @brief Entry point of the core library of this program.\n * @author <NAME>\n */\nclass Main...
138
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.85, "nodes": 81, "errors": 0, "source_hash": "88016c937f2b5483f57f941ea965e19d507a4541704b932e6706fbc80d1091f5", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,704
c
#define NO_SIGPIPE #define send_flags MSG_NOSIGNAL #include <misc/syslog.c>
24.33
3
(translation_unit) "#define NO_SIGPIPE\n#define send_flags MSG_NOSIGNAL\n\n#include <misc/syslog.c>\n" (preproc_def) "#define NO_SIGPIPE\n" (#define) "#define" (identifier) "NO_SIGPIPE" (preproc_def) "#define send_flags MSG_NOSIGNAL\n" (#define) "#define" (identifier) "send_flags" (preproc_arg) ...
11
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 24.33, "nodes": 10, "errors": 0, "source_hash": "c5ef2107b7e42adcd6448bd03d6912b9fb6757a51f4224d2dfa01b1bbcb57e1e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NO_S...
76,705
c
#include<stdio.h> #include<stdlib.h> int cal_num_days(int **arr , int n); // You have to use this function. int main() { // Insert your code here. int n; scanf("%d",&n); int **arr = (int **)malloc(n*sizeof(int *)); for(int i=0;i<n;i++) { *(arr+i) = (int *)malloc(n*sizeof(int)); ...
22.71
139
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n\nint cal_num_days(int **arr , int n); // You have to use this function.\nint main()\n{\n // Insert your code here.\n int n;\n scanf("%d",&n);\n int **arr = (int **)malloc(n*sizeof(int *));\n for(int i=0;i<n;i++)\n {\n *(arr+i) = (int ...
1,472
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 22.71, "nodes": 956, "errors": 0, "source_hash": "2e8adcbeee23f6351b1bf274d06afb35738cdcd09479fb4e9a394155c2a738c5", "categorized_nodes": 685}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,706
c
#ifndef LIB_PINOCCIO_CRC_H #define LIB_PINOCCIO_CRC_H #include <stdint.h> #include <stdlib.h> /* Generic CRC implementation, based on code generated by pycrc, using: * pycrc --xor-in=0 --reflect-in=false --reflect-out=false * --xor-out=0 --algorithm=bit-by-bit-fast --generate=c * poly parameter is the poly in hex...
27.76
38
(translation_unit) "#ifndef LIB_PINOCCIO_CRC_H\n#define LIB_PINOCCIO_CRC_H\n\n#include <stdint.h>\n#include <stdlib.h>\n\n/* Generic CRC implementation, based on code generated by pycrc, using:\n * pycrc --xor-in=0 --reflect-in=false --reflect-out=false\n * --xor-out=0 --algorithm=bit-by-bit-fast --generate=c\n * poly...
235
10
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 27.76, "nodes": 158, "errors": 0, "source_hash": "da6e931259691067cd028d8cc4d1c1a3bcfa721b2f552db1e168d0131630b400", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,707
c
/* packet-ncp-sss.h * Declarations of routines for Novell SecretStore Services * <NAME> <<EMAIL>> * Copyright (c) Novell, Inc. 2002-2004 * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 2000 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __PACKET_NCP_SSS_H__ #define...
32.22
18
(translation_unit) "/* packet-ncp-sss.h\n * Declarations of routines for Novell SecretStore Services\n * <NAME> <<EMAIL>>\n * Copyright (c) Novell, Inc. 2002-2004\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 2000 <NAME>\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n\n#ifn...
75
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.22, "nodes": 60, "errors": 0, "source_hash": "cde3dc9e74a531dc8da11d77cdee59e36be275d45799404737f5a68f72a8e87c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,708
c
/* ---------------------------------------------------------------------- * FILE: as31.h * PACKAGE: as31 - 8031/8051 Assembler. * * DESCRIPTION: * The sole header file for the 8031/8051 assembler package. * It defines several structures used by the yacc stack. * It defines several macros for testing the bitsize ...
28.63
161
(translation_unit) "/* ----------------------------------------------------------------------\n * FILE: as31.h\n * PACKAGE: as31 - 8031/8051 Assembler.\n *\n * DESCRIPTION:\n * The sole header file for the 8031/8051 assembler package.\n * It defines several structures used by the yacc stack.\n * It defines several macr...
830
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 28.63, "nodes": 604, "errors": 0, "source_hash": "a993f95eb722a0eac8ae7fbbbe00aceb0655330fcb4ccfae27ef6901a310c11d", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,709
c
#if !defined(SB_H) #define SB_H #include <stdlib.h> typedef struct { int count; int capacity; } buffer_header; #define buf_header(b) ((buffer_header *)(b)-1) #define buf_count_raw(b) buf_header(b)->count #define buf_cap_raw(b) buf_header(b)->capacity #define buf_count(b) ((b) == NULL ? 0 : buf_count_raw(b)) #defi...
38.03
35
(translation_unit) "#if !defined(SB_H)\n\n#define SB_H\n\n#include <stdlib.h>\n\ntypedef struct {\n int count;\n int capacity;\n} buffer_header;\n\n#define buf_header(b) ((buffer_header *)(b)-1)\n#define buf_count_raw(b) buf_header(b)->count\n#define buf_cap_raw(b) buf_header(b)->capacity\n#define buf_count(b) ((b) == ...
355
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 38.03, "nodes": 248, "errors": 0, "source_hash": "5319af0bc2d107278b3a3029c375924969dea563f55db5378c9678e567cf9031", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
76,710
c
/* * Copyright 2018-2019 OneCube * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
26.89
214
(translation_unit) "/* \n * Copyright 2018-2019 OneCube \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at \n * \n * http://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unles...
876
0
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 26.89, "nodes": 540, "errors": 0, "source_hash": "bb5f6fa69e99f53d84623103f7626e35d0d324506e8e878c9d370de08721247d", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,711
c
/**************************************************************************** * apps/industry/foc/float/foc_vel_opll.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copy...
34.54
213
(translation_unit) "/****************************************************************************\n * apps/industry/foc/float/foc_vel_opll.c\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional i...
891
18
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 34.54, "nodes": 573, "errors": 0, "source_hash": "40952cba52aea367c72e93c11ec87a278406f17ab27902d08e4266b5aba152f5", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,712
c
#include <errno.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> #include "mesh.h" #include "net_udp4.h" #include "ext.h" #include "unit_test.h" static uint8_t status = 0; // exit as soon as the link is up void link_check(link_t link) { status = link_up(li...
22.88
33
(translation_unit) "#include <errno.h>\n#include <stdio.h>\n#include <string.h>\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n\n#include "mesh.h"\n#include "net_udp4.h"\n#include "ext.h"\n#include "unit_test.h"\n\nstatic uint8_t status = 0;\n\n// exit as soon as the link is up\nvoid link_check(l...
251
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.88, "nodes": 149, "errors": 0, "source_hash": "834d5c47b79404d474a99a9394fe5fac5f5a20574478d36a566eb2d15046b617", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,713
c
#ifndef CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h #define CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h // -*- C++ -*- // // Package: CTPPSReadoutObjects // Class: CTPPSBeamParameters // /**\class CTPPSBeamParameters CTPPSBeamParameters.h CondFormats/CTPPSRedoutObjects/src/CTPPSBeamParamete...
33.22
109
(translation_unit) "#ifndef CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h\n#define CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h\n// -*- C++ -*-\n//\n// Package: CTPPSReadoutObjects\n// Class: CTPPSBeamParameters\n// \n/**\class CTPPSBeamParameters CTPPSBeamParameters.h CondFormats/CTPPSRedoutOb...
629
8
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 33.22, "nodes": 373, "errors": 0, "source_hash": "03442829a69ac247b646c54d5ad58e5cb4ef75ad044dca7608a6b1348449d2ae", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,714
c
#include <errno.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define PERROR fprintf(stderr, "%s:%d: error: %s\n", __FILE__, __LINE__, strerror(errno)) #define PERROR_GOTO(label) \ do { \ PERROR; \ goto label; \ } while (0) #define INIT_ARRAY(arr, label) \ do { \ if (!(arr)) ...
22.87
104
(translation_unit) "#include <errno.h>\n#include <omp.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define PERROR fprintf(stderr, "%s:%d: error: %s\n", __FILE__, __LINE__, strerror(errno))\n#define PERROR_GOTO(label) \\n do { \\n PERROR; \\n goto label; \\n } while (0)\n\n#define INIT_ARRAY(arr...
904
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 22.87, "nodes": 559, "errors": 0, "source_hash": "d4b6c1dd074c5a591c1e78734a8633fd81d8f186a724134be25e13536eb525de", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,715
c
#ifndef _WEB3_JSON_H_ #define _WEB3_JSON_H_ /* system includes */ #include <stddef.h> #include <stdint.h> /* local includes */ #include "helpers/uint256.h" #ifdef __cplusplus extern "C" { #endif typedef struct { int code; const char *message; } jsonrpc_error_t; typedef struct { const char *jsonrpc; ...
20.03
32
(translation_unit) "#ifndef _WEB3_JSON_H_\n#define _WEB3_JSON_H_\n/* system includes */\n#include <stddef.h>\n#include <stdint.h>\n\n/* local includes */\n#include "helpers/uint256.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef struct {\n int code;\n const char *message;\n} jsonrpc_error_t;\n\ntypedef...
158
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.03, "nodes": 103, "errors": 0, "source_hash": "455ee1f5455cc1c03c26b40cd9448041bb5e408245932f2266dec6ebf11db79f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,716
c
#pragma once #include <array> #include "compiler.h" #include "memory.h" #include "object.h" namespace Clox { constexpr auto FRAME_MAX = 64; constexpr auto STACK_MAX = FRAME_MAX * UINT8_COUNT; enum class InterpretResult { Ok, CompileError, RuntimeError }; struct CallFrame { const ObjClosure* closure = nullptr;...
28.96
76
(translation_unit) "#pragma once\n\n#include <array>\n\n#include "compiler.h"\n#include "memory.h"\n#include "object.h"\n\nnamespace Clox {\n\nconstexpr auto FRAME_MAX = 64;\nconstexpr auto STACK_MAX = FRAME_MAX * UINT8_COUNT;\n\nenum class InterpretResult\n{\n Ok,\n CompileError,\n RuntimeError\n};\n\nstruct CallFrame...
795
45
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 28.96, "nodes": 543, "errors": 0, "source_hash": "1bd654644080a8ef564fba2c2b2aaf529c1bc2d22a81e7230de2e29c09dfad29", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,717
c
/* $NetBSD: db_machdep.h,v 1.11 2004/02/13 11:36:17 wiz Exp $ */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * n...
35.78
111
(translation_unit) "/* $NetBSD: db_machdep.h,v 1.11 2004/02/13 11:36:17 wiz Exp $ */\n\n/*\n * Mach Operating System\n * Copyright (c) 1991,1990 Carnegie Mellon University\n * All Rights Reserved.\n *\n * Permission to use, copy, modify and distribute this software and its\n * documentation is hereby granted, provided ...
396
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 35.78, "nodes": 300, "errors": 0, "source_hash": "22dd509654bc3defb94560c2f94b2be28d71a813b2affaaae6b29ccc1900e2b5", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,718
c
#pragma once #include <Windows.h> #include <strsafe.h> #include "resource.h" #define INJECT_FAILURE 501 int print_log(const wchar_t* format, ...) { static wchar_t w_printf_buf[1024] = { 0 }; va_list args; va_start(args, format); StringCchVPrintf(w_printf_buf, sizeof(w_printf_buf), format, args); va_end(args); ...
23.2
15
(translation_unit) "#pragma once\n\n#include <Windows.h>\n#include <strsafe.h>\n#include "resource.h"\n\n#define INJECT_FAILURE 501\n\nint print_log(const wchar_t* format, ...)\n{\n static wchar_t w_printf_buf[1024] = { 0 };\n va_list args;\n va_start(args, format);\n StringCchVPrintf(w_printf_buf, sizeof(w_printf_buf)...
109
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.2, "nodes": 62, "errors": 0, "source_hash": "37c0f2ece31139e24d7cc05ee88b50d2fad5990d6897891eecb5b4359d02fdeb", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
76,719
c
// // UIView+HYDUIView.h // IOS_百思不得姐 // // Created by mac on 17/1/6. // Copyright © 2017年 mac. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (HYDUIView) @property (nonatomic,assign) CGSize size; @property (nonatomic,assign) CGFloat x; @property (nonatomic,assign) CGFloat y; @property (nonatom...
27.59
17
(translation_unit) "//\n// UIView+HYDUIView.h\n// IOS_百思不得姐\n//\n// Created by mac on 17/1/6.\n// Copyright © 2017年 mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (HYDUIView)\n@property (nonatomic,assign) CGSize size;\n@property (nonatomic,assign) CGFloat x;\n@property (nonatomic,assi...
135
32
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.59, "nodes": 93, "errors": 0, "source_hash": "e2238b704833a1da6a8893410e179adf9abbb07ce8d49161da062a5c7148c16a", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit.h...
76,720
c
/****************************************************************************** * Copyright (C) 2018 – 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /****************************************************************...
29.78
167
(translation_unit) "/******************************************************************************\n* Copyright (C) 2018 – 2020 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/\n\n/***************************************...
721
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 29.78, "nodes": 414, "errors": 0, "source_hash": "9be5abe8024d68684cf5a4f065621c2ec0f0fb2f5e3a85831c5602d6cd0b9f31", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
76,721
c
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * Copyright (c) 2016-2019 Intel Corporation * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #ifndef _MULTIAP_COMMON_H_ #define _MULTIAP_COMMON_H_ #include <mapf/local_bus.h> #include <mapf/transport/ieee19...
29.79
57
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause-Patent\n *\n * Copyright (c) 2016-2019 Intel Corporation\n *\n * This code is subject to the terms of the BSD+Patent license.\n * See LICENSE file for more details.\n */\n\n#ifndef _MULTIAP_COMMON_H_\n#define _MULTIAP_COMMON_H_\n\n#include <mapf/local_bus.h>\...
459
9
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 29.79, "nodes": 269, "errors": 0, "source_hash": "ba0533848c25743a08adb52652007d5a1c09381e23d5f8b351f6d4cf035d06d4", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,722
c
#ifndef SPMAT_H #define SPMAT_H #include "pmat.h" #define CLOCKWISE #define NL printf("\n") #define SP printf(" ") #define SPMAT_PPIX(m, i, j)\ m.pix.data[(i) * m.pix.N + ((j) >> 6)] #define SPMAT_PIX_SET(m, i, j) \ SPMAT_PPIX(m, i, j) |= 1ULL << ((j) & 63) #define SPMAT_PIX_DEL(m, i, j) \ SPMAT_P...
32.19
36
(translation_unit) "#ifndef SPMAT_H\n#define SPMAT_H\n\n#include "pmat.h"\n\n#define CLOCKWISE\n\n#define NL printf("\n")\n#define SP printf(" ")\n\n\n#define SPMAT_PPIX(m, i, j)\\n m.pix.data[(i) * m.pix.N + ((j) >> 6)]\n\n#define SPMAT_PIX_SET(m, i, j) \\n SPMAT_PPIX(m, i, j) |= 1ULL << ((j) & 63)\n\n#define ...
312
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.19, "nodes": 227, "errors": 0, "source_hash": "8818e79cfc7e3db8412ce9958aa852ee2156f8851424edcddcf52a87fe9533b3", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,723
c
// // MainVC.h // CocoaUtilsCategories // // Created by noughts on 2015/02/12. // Copyright (c) 2015年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface MainVC : UITableViewController @end
19.9
10
(translation_unit) "//\n// MainVC.h\n// CocoaUtilsCategories\n//\n// Created by noughts on 2015/02/12.\n// Copyright (c) 2015年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MainVC : UITableViewController\n\n@end\n" (comment) "//" (comment) "// MainVC.h" (comment) "// CocoaUtilsCa...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.9, "nodes": 12, "errors": 0, "source_hash": "59f59cb3c56202ec9204eba9e4c1876a777147e20a8256d26078fe73ac9b5d4d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
76,724
c
inherit NPC; void create() { set_name("店小二",({ "xiao er","xiao","er" }) ); set("gender", "男性" ); set("age", 22); set("long", "這是這家小客棧的店小二,每天忙來忙去。\n"); set("combat_exp", 200); set("no_get",1); set("str", 18); set("per", 22); set("attitude", "friendly"); setup(); carry_...
25.54
48
(translation_unit) "inherit NPC;\n\nvoid create()\n{\n set_name("店小二",({ "xiao er","xiao","er" }) );\n set("gender", "男性" );\n set("age", 22);\n set("long", "這是這家小客棧的店小二,每天忙來忙去。\n");\n \n set("combat_exp", 200);\n set("no_get",1);\n set("str", 18);\n set("per", 22);\n set("attitude", "...
542
1
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.54, "nodes": 250, "errors": 0, "source_hash": "7e800d623c6c1fe635045f435d1b6f72c71a4629f348916d076ef491455e0448", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit ...
76,725
c
/* ** circular.c for srv in /home/ledins_a/Dropbox/irc_lt_2017/server_source/sources/circular_buffer ** ** Made by ledins ** Login <<EMAIL>> ** ** Started on Sun Apr 27 13:41:09 2014 ledins ** Last update Sun Apr 27 13:41:14 2014 ledins */ #include <stdio.h> #include <stdlib.h> #include "server.h" void cbInit(Ci...
21.82
44
(translation_unit) "/*\n** circular.c for srv in /home/ledins_a/Dropbox/irc_lt_2017/server_source/sources/circular_buffer\n** \n** Made by ledins\n** Login <<EMAIL>>\n** \n** Started on Sun Apr 27 13:41:09 2014 ledins\n** Last update Sun Apr 27 13:41:14 2014 ledins\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#in...
354
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.82, "nodes": 229, "errors": 0, "source_hash": "9cc40864c4c345114e21bde3d7f14528bb67e86941c07a6940a2bac7100d6744", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,726
c
// // DynamsoftManager.h // DecodeWithAVCaptureSession // // Created by dynamsoft on 2022/3/21. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface DynamsoftManager : NSObject<NSCopying, NSMutableCopying> + (DynamsoftManager *)manager; - (void)showResult:(NSString *)title msg:(NSString *)msg...
29
14
(translation_unit) "//\n// DynamsoftManager.h\n// DecodeWithAVCaptureSession\n//\n// Created by dynamsoft on 2022/3/21.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DynamsoftManager : NSObject<NSCopying, NSMutableCopying>\n\n+ (DynamsoftManager *)manager;\n\n- (void)showResult:(N...
105
13
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.0, "nodes": 68, "errors": 0, "source_hash": "08f0af757b17895324d9a7cc22623ccf9e169aa6acc68395c88c000e841f7f04", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
76,727
c
#ifndef BASENEURON_H #define BASENEURON_H #include <QObject> class BaseNeuron : public QObject { public: explicit BaseNeuron(double a, double b, QObject *parent); virtual double output() = 0; signals: public slots: protected: virtual double derivativeA() = 0; virtual double derivativeB() = 0; ...
21.24
17
(translation_unit) "#ifndef BASENEURON_H\n#define BASENEURON_H\n\n#include <QObject>\n\nclass BaseNeuron : public QObject\n{\npublic:\n explicit BaseNeuron(double a, double b, QObject *parent);\n\n virtual double output() = 0;\n\nsignals:\n\npublic slots:\n\nprotected:\n virtual double derivativeA() = 0;\n ...
105
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.24, "nodes": 72, "errors": 0, "source_hash": "80c8daa778807b62bafe778ddf408cbde5fbfc9aff19df81eacfd8c9274932c9", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,728
c
#pragma once #include "State.h" #include "allegro5/allegro.h" class GameState : public State { public: GameState(); ~GameState(); virtual void update(); virtual void draw(); virtual void handleEvents(ALLEGRO_EVENT * event); };
16.92
13
(translation_unit) "#pragma once\n\n#include "State.h"\n#include "allegro5/allegro.h"\n\nclass GameState :\n public State\n{\npublic:\n GameState();\n ~GameState();\n\n virtual void update();\n virtual void draw();\n virtual void handleEvents(ALLEGRO_EVENT * event);\n};\n\n" (preproc_call) "#pragma once\n" (prepr...
82
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.92, "nodes": 48, "errors": 0, "source_hash": "2f95e9cfc8b7a655402dd609f35621b489f52e37cd1a1acf703c2c1fde2c2da6", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,729
c
#ifndef _TIME_NANOS_H_ #define _TIME_NANOS_H_ #include <iostream> #include <vector> struct Nano { long long val; // The timestamp // construct a Value from a long long constexpr explicit Nano(unsigned long long int x) : val(x) {} inline Nano operator+(const Nano& rhs) const; inline Nano operator-(const Nano& rh...
36.42
50
(translation_unit) "#ifndef _TIME_NANOS_H_\n#define _TIME_NANOS_H_\n\n#include <iostream>\n#include <vector>\n\nstruct Nano\n{\n long long val; // The timestamp\n // construct a Value from a long long\n constexpr explicit Nano(unsigned long long int x) : val(x) {}\n\n inline Nano operator+(const Nano& rhs) const;\n inl...
751
47
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 36.42, "nodes": 497, "errors": 0, "source_hash": "e38e960f89e7f3fd3bb08c5228d7c9fc9a655ff505fb755b5fe5a9ea5264d79b", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,730
c
#pragma once #include <libsystem/math/Vec2.h>
22
2
(translation_unit) "#pragma once\n\n#include <libsystem/math/Vec2.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <libsystem/math/Vec2.h>\n" (#include) "#include" (system_lib_string) "<libsystem/math/Vec2.h>"
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 22.0, "nodes": 6, "errors": 0, "source_hash": "37a8a15ea6799c54ef4f53c05e6fb88ed665f1a025ef213f28517205fa5c2d7b", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
76,731
c
#ifndef _VIRTUALSMC_H #define _VIRTUALSMC_H #include <IOKit/IOService.h> #include <IOKit/pci/IOPCIDevice.h> #include <IOKit/IOTimerEventSource.h> #include <IOKit/acpi/IOACPIPlatformDevice.h> #include "FakeSMCDevice.h" #include "FakeSMCKey.h" #include "definitions.h" class FakeSMC : public IOService { OSDeclareDefa...
27.22
23
(translation_unit) "#ifndef _VIRTUALSMC_H\n#define _VIRTUALSMC_H\n\n#include <IOKit/IOService.h>\n#include <IOKit/pci/IOPCIDevice.h>\n#include <IOKit/IOTimerEventSource.h>\n#include <IOKit/acpi/IOACPIPlatformDevice.h>\n#include "FakeSMCDevice.h"\n#include "FakeSMCKey.h"\n#include "definitions.h"\n\n\nclass FakeSMC : pu...
151
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.22, "nodes": 108, "errors": 0, "source_hash": "51407c65dce2ca24acc612ae316bd0f418bb87f431bf3fe18e2ea0e7cbee0450", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,732
c
#include <stdio.h> #include <stdbool.h> #include <SDL.h> const int WIDTH = 320; const int HEIGHT = 240; int main() { printf("Hello, world!\n"); if (SDL_Init(SDL_INIT_VIDEO) < 0) { printf("SDL initialisation error: %s\n", SDL_GetError()); return 42; } SDL_Surface *screen = SDL_SetVideoMode(WIDTH, HEIGHT, 32,...
22
40
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n#include <SDL.h>\n\nconst int WIDTH = 320;\nconst int HEIGHT = 240;\n\nint main() {\n printf("Hello, world!\n");\n\n if (SDL_Init(SDL_INIT_VIDEO) < 0) {\n printf("SDL initialisation error: %s\n", SDL_GetError());\n return 42;\n }\n\n SDL_Surface *screen = ...
297
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 22.0, "nodes": 166, "errors": 0, "source_hash": "0dccd6644ff8781cf54853cda8947cdb85fface67b711c805e419506ee2f2720", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
76,733
c
// // OMAssertionHandler.h // OMGFramework // // Created by <NAME> on 3/31/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface OMAssertionHandler : NSAssertionHandler @end
21.7
10
(translation_unit) "//\n// OMAssertionHandler.h\n// OMGFramework\n//\n// Created by <NAME> on 3/31/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface OMAssertionHandler : NSAssertionHandler\n\n@end\n" (comment) "//" (comment) "// OMAssertionHandler.h"...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.7, "nodes": 9, "errors": 0, "source_hash": "2b5f7c282e7382ba28d1dee1700bc56f6ac396cc4f8358fed0d6a52c5eb93873", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fou...
76,734
c
#ifndef _SPIN_LOCK_H_ #define _SPIN_LOCK_H_ #include <atomic> class spin_lock { public: spin_lock() noexcept { m_lock.clear(); } void lock() { while (m_lock.test_and_set(std::memory_order_acquire)) ; } void unlock() { m_lock.clear(std::memory_order_release); } spin_lock(const s...
26.78
18
(translation_unit) "#ifndef _SPIN_LOCK_H_\n#define _SPIN_LOCK_H_\n#include <atomic>\nclass spin_lock {\n public:\n spin_lock() noexcept { m_lock.clear(); }\n void lock() {\n while (m_lock.test_and_set(std::memory_order_acquire))\n ;\n }\n void unlock() { m_lock.clear(std::memory_order_rel...
159
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.78, "nodes": 83, "errors": 0, "source_hash": "f855a44a547f7a36b617c5dea891bda27dc460cfda3823f418a3792e7dcee0c8", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,735
c
#ifndef LIST_H #define LIST_H #include <stddef.h> struct list_node; typedef struct list_node list_t; int list_create(list_t **l); int list_delete(list_t **l); void *list_node_value(struct list_node *node); struct list_node *list_next(struct list_node *node); struct list_node *list_insert_after(struct list_node *...
32.83
12
(translation_unit) "#ifndef LIST_H\n#define LIST_H\n\n#include <stddef.h>\n\nstruct list_node;\ntypedef struct list_node list_t;\n\nint list_create(list_t **l);\n\nint list_delete(list_t **l);\n\nvoid *list_node_value(struct list_node *node);\n\nstruct list_node *list_next(struct list_node *node);\n\nstruct list_node *...
138
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.83, "nodes": 114, "errors": 0, "source_hash": "d3f5448a0819d4969cb023e1e2737025006b79574087088e74f662809961fb8e", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,736
c
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2021 <NAME> <<EMAIL>> */ /* Hardware definition of TSNEP and EtherCAT MAC device */ #ifndef _TSNEP_HW_H #define _TSNEP_HW_H #include <linux/types.h> /* type */ #define ECM_TYPE 0x0000 #define ECM_REVISION_MASK 0x000000FF #define ECM_REVISION_SHIFT 0 #define EC...
33.41
202
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/* Copyright (C) 2021 <NAME> <<EMAIL>> */\n\n/* Hardware definition of TSNEP and EtherCAT MAC device */\n\n#ifndef _TSNEP_HW_H\n#define _TSNEP_HW_H\n\n#include <linux/types.h>\n\n/* type */\n#define ECM_TYPE 0x0000\n#define ECM_REVISION_MASK 0x000000FF\n#defin...
755
0
{"language": "c", "success": true, "metadata": {"lines": 202, "avg_line_length": 33.41, "nodes": 678, "errors": 0, "source_hash": "ee420224725e9608c513b5cfb6adceab3353d99414ea5d893ae706438d8990d0", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,737
c
/* /usr16/stdevs/stdev0f/SLIBS/alr.dev/SCCS/s.convert.h */ /* alr support convert.h 3.1 97/03/23 */ int dgefa_(); int dgedi_(); int dscal_(); int daxpy_(); int dswap_(); doublereal ddot_(); doublereal dasum_(); int dgeco_XXY(); integer dgidamax_();
21.64
11
(translation_unit) "/* /usr16/stdevs/stdev0f/SLIBS/alr.dev/SCCS/s.convert.h */\n/* alr support convert.h 3.1 97/03/23 */\n\nint dgefa_();\nint dgedi_();\nint dscal_();\nint daxpy_();\nint dswap_();\ndoublereal ddot_();\ndoublereal dasum_();\nint dgeco_XXY();\ninteger dgidamax_();\n\n" (comment) "/* /usr16/stdevs/stde...
75
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.64, "nodes": 45, "errors": 0, "source_hash": "ec499fb776f96ffd4a45a9958971a50c88931069b19315a2bed00355b146125d", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int dgefa_...
76,738
c
/* * Copyright (C) 2000-2003 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your...
34.26
91
(translation_unit) "/*\n * Copyright (C) 2000-2003 <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of t...
708
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 34.26, "nodes": 575, "errors": 0, "source_hash": "07b44b166995efc3f60af406228b5352caae21de208598111934423c439e8d81", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,739
c
#include "stdafx.h" #include "afxmt.h" #include <vector> template <class X> class bTreeType; template <class X> class node_list; extern bTreeType<char*> *m_root; class text_object; void openDebugFiles (); void closeDebugFiles (); class event_list { public: std::vector<UINT> m_timestamp; std::vect...
22.55
77
(translation_unit) "#include "stdafx.h" \n#include "afxmt.h" \n#include <vector> \n \ntemplate <class X> class bTreeType; \ntemplate <class X> class node_list; \nextern bTreeType<char*> *m_root; \nclass text_object; \n \nvoid openDebugFiles (); \nvoid closeDebugFiles (); \n \nclass event_list \n{ \npublic: \n std::vect...
605
25
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 22.55, "nodes": 419, "errors": 0, "source_hash": "3d3cc2290c40d92d8e40437565618462c97028a7004ceb3bce583e3a3fcba623", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,740
c
// // ViewController.h // RMTableViewHeaderAnimation // // Created by Watson on 2016/12/22. // Copyright © 2016年 renming. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UITableViewController @end
19.91
11
(translation_unit) "//\n// ViewController.h\n// RMTableViewHeaderAnimation\n//\n// Created by Watson on 2016/12/22.\n// Copyright © 2016年 renming. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UITableViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController....
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.91, "nodes": 12, "errors": 0, "source_hash": "53352c27c76bfa51259047c7d561cae6821a051ac305c4e4292972b82f1b494e", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
76,741
c
//------------------------------------------------------------------------- /* Copyright (C) 2010-2019 EDuke32 developers and contributors Copyright (C) 2019 Nuke.YKT This file is part of NBlood. NBlood is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License versio...
35.65
37
(translation_unit) "//-------------------------------------------------------------------------\n/*\nCopyright (C) 2010-2019 EDuke32 developers and contributors\nCopyright (C) 2019 Nuke.YKT\n\nThis file is part of NBlood.\n\nNBlood is free software; you can redistribute it and/or\nmodify it under the terms of the GNU G...
135
3
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.65, "nodes": 94, "errors": 0, "source_hash": "aff278e4de17fefb1f849b0f356d26faa9f7ae843209a11c6595394c5528cf1d", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,742
c
/* * This file is part of the Nice GLib ICE library. * * (C) 2006-2007 Collabora Ltd. * Contact: <NAME> * (C) 2006-2007 Nokia Corporation. All rights reserved. * Contact: <NAME> * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file ex...
34.48
60
(translation_unit) "/*\n * This file is part of the Nice GLib ICE library.\n *\n * (C) 2006-2007 Collabora Ltd.\n * Contact: <NAME>\n * (C) 2006-2007 Nokia Corporation. All rights reserved.\n * Contact: <NAME>\n *\n * The contents of this file are subject to the Mozilla Public License Version\n * 1.1 (the "License");...
185
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 34.48, "nodes": 111, "errors": 0, "source_hash": "96b20f3f84519dd9bc47ea1f9d3a8920036f5032510c585152c5c6b378f6bf94", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
76,743
c
/* * Copyright (c) 2019 IOTA Stiftung * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ /** * @ingroup serialization_json * * @{ * * @file * @brief * */ #ifndef CCLIENT_SERIALIZATION_JSON_STORE_TRANSACTIONS_H #define CCLIENT_SERIALIZATION_JSON_STORE_TRANS...
26.11
44
(translation_unit) "/*\n * Copyright (c) 2019 IOTA Stiftung\n * https://github.com/iotaledger/entangled\n *\n * Refer to the LICENSE file for licensing information\n */\n\n/**\n * @ingroup serialization_json\n *\n * @{\n *\n * @file\n * @brief\n *\n */\n#ifndef CCLIENT_SERIALIZATION_JSON_STORE_TRANSACTIONS_H\n#define C...
99
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.11, "nodes": 59, "errors": 0, "source_hash": "8ea9da961c418d73ff0b3a378ed3632d808049641f0fe6b1e6eaa82480fef815", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,744
c
/** Given 3 numbers {1, 3, 5}, we need to tell the total number of ways we can form a number 'N' using the sum of the given three numbers. */ /** EXAMPLES Total number of ways to form 6 is: 8 1+1+1+1+1+1 1+1+1+3 1+1+3+1 1+3+1+1 3+1+1+1 3+3 1+5 5+1 */ #include <stdio.h> #include <st...
22.76
37
(translation_unit) "/** Given 3 numbers {1, 3, 5}, we need to tell the total number of ways we can form a number 'N' using the sum of the given three numbers. */\n\n/** EXAMPLES\n Total number of ways to form 6 is: 8\n 1+1+1+1+1+1\n 1+1+1+3\n 1+1+3+1\n 1+3+1+1\n 3+1+1+1\n 3+3\n 1+5\n 5+1\n*/\...
225
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.76, "nodes": 137, "errors": 0, "source_hash": "d744f8f94579f4a079b593a12b59dfaf9589ebb4179e764efd2a2a8d36551d4c", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,745
c
/* * dbDefs.h * * Created on: Jul 29, 2015 * Author: Robotics */ #ifndef SRC_DBDEFS_H_ #define SRC_DBDEFS_H_ /* Defines for calling DriveBase Encoder functions */ #define LEFT 0 #define RIGHT 1 #define MIDDLE 2 #define Y_AXIS 3 #endif /* SRC_DBDEFS_H_ */
16.8
15
(translation_unit) "/*\n * dbDefs.h\n *\n * Created on: Jul 29, 2015\n * Author: Robotics\n */\n\n#ifndef SRC_DBDEFS_H_\n#define SRC_DBDEFS_H_\n\n/* Defines for calling DriveBase Encoder functions */\n#define LEFT 0\n#define RIGHT 1\n#define MIDDLE 2\n#define Y_AXIS 3\n\n\n\n#endif /* SRC_DBDEFS_H_ */\n" (comme...
27
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 16.8, "nodes": 23, "errors": 0, "source_hash": "cf33faaf73addb27b3842ae7f356098580058ae3f105e64b88a3dd80a5bfe683", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SR...
76,746
c
/* * cocos2d-x http://www.cocos2d-x.org * * Copyright (c) 2010-2011 - cocos2d-x community * * Portions Copyright (c) Microsoft Open Technologies, Inc. * All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may...
35.91
53
(translation_unit) "/*\n* cocos2d-x http://www.cocos2d-x.org\n*\n* Copyright (c) 2010-2011 - cocos2d-x community\n* \n* Portions Copyright (c) Microsoft Open Technologies, Inc.\n* All Rights Reserved\n* \n* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
145
10
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 35.91, "nodes": 85, "errors": 0, "source_hash": "1d04e3d0bdd504a116fa1309105cd8e19a611538fdb2b3b022584d18e75f4f84", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,747
c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* $Id: keyhi.h,v 1.21 2012/04/25 14:49:41 gerv%gerv.net Exp $ */ #ifndef _KEYHI_H_ #define _KEYHI_H_ #include "p...
34.23
226
(translation_unit) "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n/* $Id: keyhi.h,v 1.21 2012/04/25 14:49:41 gerv%gerv.net Exp $ */\n\n#ifndef _KEYHI_H_\n#def...
860
1
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 34.23, "nodes": 637, "errors": 0, "source_hash": "9236f36c96e9d6cd1ef57989cbd4abc3af6e5f0454d13a7bbef88446ccf20167", "categorized_nodes": 381}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,748
c
/** * @file * * @date Jun 24, 2013 * @author: <NAME> */ #ifndef ERR_H_ #define ERR_H_ static inline void *err_ptr(int err_code) { return (void *) -err_code; } static inline int err(const void *res) { return (((int)res) < 0) && (((int)res) > -4096) ? ((int)res) : 0; } #endif /* ERR_H_ */
18.67
15
(translation_unit) "/**\n * @file\n *\n * @date Jun 24, 2013\n * @author: <NAME>\n */\n\n#ifndef ERR_H_\n#define ERR_H_\n\nstatic inline void *err_ptr(int err_code) {\n return (void *) -err_code;\n}\n\nstatic inline int err(const void *res) {\n return (((int)res) < 0) && (((int)res) > -4096) ? ((int)res) : 0;\n}\n\n#en...
111
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.67, "nodes": 69, "errors": 0, "source_hash": "568ecf13c3d32ff58c262a17c278ffa8cc3609e22ab9662d518b388b92c26c38", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,749
c
// // Use this file to import your target's public headers that you would like to expose to Swift. // //#import "AppDelegate.h" #import "YDRouter.h" #import "YDMultiLanguage.h" #import "YDMacro.h" #import "sqlite3.h" #import <time.h> #import "YDKit.h" #import <Foundation/Foundation.h>
25.09
11
(translation_unit) "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n//#import "AppDelegate.h"\n#import "YDRouter.h"\n#import "YDMultiLanguage.h"\n#import "YDMacro.h"\n#import "sqlite3.h"\n#import <time.h>\n#import "YDKit.h"\n#import <Foundation/Foundation.h>\n...
26
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.09, "nodes": 21, "errors": 0, "source_hash": "d5e6fe023875e358b90f14927773f258ffe6e31e64553f86ebea3b4718c2ee91", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
76,750
c
#pragma once typedef void (*autogen_cb_t)(void* shadow_base); extern "C" void __libhook_register_init_cb(autogen_cb_t cb);
40
3
(translation_unit) "#pragma once\n\ntypedef void (*autogen_cb_t)(void* shadow_base);\nextern "C" void __libhook_register_init_cb(autogen_cb_t cb);\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef void (*autogen_cb_t)(void* shadow_base);" ...
40
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 40.0, "nodes": 28, "errors": 0, "source_hash": "8b1f4b63924a82bb2a7036ba37cc4a1b2d7ed86865260d40a64be84e8ddae350", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
76,751
c
/* Copyright 2014 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
36.05
43
(translation_unit) "/*\n Copyright 2014 <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law o...
162
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.05, "nodes": 104, "errors": 0, "source_hash": "968035a84fda34c0dd77d8a5fb7a3162be40288d940463a6ddff64d0a99e1272", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,752
c
#pragma once #include <glm/glm.hpp> #include <vector> class SpimStack; struct Hourglass { // the XY coords of the axis = the center axis of the hourglass (always orthogonal to the XY plane) in pixel coords glm::vec2 centerAxis; // a list of z coords an radii of the circles making up the hourglass in pixel dime...
26.14
14
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include <vector>\n\n\nclass SpimStack;\n\nstruct Hourglass\n{\n // the XY coords of the axis = the center axis of the hourglass (always orthogonal to the XY plane) in pixel coords\n glm::vec2 centerAxis;\n\n // a list of z coords an radii of the circles maki...
58
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.14, "nodes": 35, "errors": 0, "source_hash": "3ee766c8cb5c19667e161540f9434675b0c445ce40b68b3c43399da812fbb9b0", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,753
c
#include <assert.h> #include <stdio.h> #include <stdlib.h> // compile with: gcc -Wall -Wextra -pedantic -Werror -std=c99 -o problem4 problem.c enum num_attr { NO_MULTIPLE_OF_TWO_OR_THREE, MULTIPLE_OF_TWO_ONLY, MULTIPLE_OF_THREE_ONLY, MULTIPLE_OF_TWO_AND_THREE, NUM_ATTR_NUMOF, }; const char *lookup_table[] = { ...
23.81
43
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n// compile with: gcc -Wall -Wextra -pedantic -Werror -std=c99 -o problem4 problem.c\n\nenum num_attr {\n NO_MULTIPLE_OF_TWO_OR_THREE,\n MULTIPLE_OF_TWO_ONLY,\n MULTIPLE_OF_THREE_ONLY,\n MULTIPLE_OF_TWO_AND_THREE,\n NUM_ATTR_NUMOF,\n};\n...
306
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.81, "nodes": 174, "errors": 0, "source_hash": "5e80ee9729db5795f1940ddd2f9a66c4ea92a5ec27ab4e1f57f66887842c2c43", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,754
c
#include "quads_cf.h" #include "ast.h" #include "parser.tab.h" #include "quads.h" #include "quads_print.h" #include "util.h" #include <stdio.h> BB root_bb = {0}; // should have no pred, no bb, only a succ BB* current_bb = &root_bb; unsigned bb_count = 0; BBL bb_root = {0}; struct cursor cursor = {0}; BB* bb_alloc...
28.86
180
(translation_unit) "#include "quads_cf.h"\n\n#include "ast.h"\n#include "parser.tab.h"\n#include "quads.h"\n#include "quads_print.h"\n#include "util.h"\n\n#include <stdio.h>\n\nBB root_bb = {0}; // should have no pred, no bb, only a succ\nBB* current_bb = &root_bb;\nunsigned bb_count = 0;\n\nBBL bb_root = {0};\n\nstruc...
1,646
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 28.86, "nodes": 1033, "errors": 0, "source_hash": "8029868ba41832dc56b1bfb9f23b57aa1214fd6355ede8773455f1e70ed57e63", "categorized_nodes": 718}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
76,755
c
// // MCalendarShortView.h // GoldCalendarFramework // // Created by Micker on 16/4/6. // Copyright © 2016年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface MCalendarShortView : UIView @property (nonatomic, strong, readonly) UIButton *preButton; @property (nonatomic, strong, readonly) UIButton ...
30.21
14
(translation_unit) "//\n// MCalendarShortView.h\n// GoldCalendarFramework\n//\n// Created by Micker on 16/4/6.\n// Copyright © 2016年 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MCalendarShortView : UIView\n@property (nonatomic, strong, readonly) UIButton *preButton;\n@property (nonato...
107
18
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.21, "nodes": 76, "errors": 0, "source_hash": "3e8c46cf437dc7e88fdb628a597b91b3279b5373ba26f3fa7611b4626bcc946e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
76,756
c
#include <iostream> template<typename T> class Vector { public: Vector(T data[] = NULL, int size = 0); Vector(const Vector& other); Vector<T>& operator=(const Vector<T>& other); ~Vector(); int getSize() const; const T& operator[](int index) const; T& operator[](int index); void append(const T& element); prot...
22.24
76
(translation_unit) "#include <iostream>\n\ntemplate<typename T>\nclass Vector {\npublic:\n Vector(T data[] = NULL, int size = 0);\n Vector(const Vector& other);\n Vector<T>& operator=(const Vector<T>& other);\n ~Vector();\n\n int getSize() const;\n const T& operator[](int index) const;\n T& operator[](int index);\n\n v...
862
53
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 22.24, "nodes": 549, "errors": 0, "source_hash": "6396695c9b9ded03583167ad50dc98b66cf1f9a8c183d2c941cfa1fdae565cf2", "categorized_nodes": 373}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,757
c
// // Licensed under the terms in License.txt // // Copyright 2010 <NAME>. All rights reserved. // #import "KiwiConfiguration.h" #import "KWMatcher.h" @interface KWBeKindOfClassMatcher : KWMatcher #pragma mark - Configuring Matchers - (void)beKindOfClass:(Class)aClass; @end
24
11
(translation_unit) "//\n// Licensed under the terms in License.txt\n//\n// Copyright 2010 <NAME>. All rights reserved.\n//\n\n#import "KiwiConfiguration.h"\n#import "KWMatcher.h"\n\n@interface KWBeKindOfClassMatcher : KWMatcher\n\n#pragma mark - Configuring Matchers\n\n- (void)beKindOfClass:(Class)aClass;\n\n@end\n" ...
42
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.0, "nodes": 25, "errors": 0, "source_hash": "a49e4143ed3a3d939421f64d5d5b8086fccb5bbf2ee139e6be90c1f1f85d2cde", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
76,758
c
#pragma once typedef struct vec2 { int x; int y; } vec2; typedef struct fvec2 { float x; float y; } fvec2;
10.18
11
(translation_unit) "#pragma once\n\ntypedef struct vec2\n{\n int x;\n int y;\n} vec2;\n\ntypedef struct fvec2\n{\n float x;\n float y;\n} fvec2;" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef struct vec2\n{\n int x;\n int y;\n...
40
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 10.18, "nodes": 27, "errors": 0, "source_hash": "97d218ec671a242162b517e2a5ec5c366a75563fd56dc36b0c21b4e76db5f719", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,759
c
// Copyright 2016-2019 <NAME>. All Rights Reserved. #pragma once #include "UObject/Class.h" #include "CoreMinimal.h" #include "CharacterAnimationTypes.h" #include "FGCharacterAnimInstance.h" #include "FGAnimPlayer.generated.h" /** * */ UCLASS() class FACTORYGAME_API UFGAnimPlayer : public UFGCharacterAnimInstance...
29.66
35
(translation_unit) "// Copyright 2016-2019 <NAME>. All Rights Reserved.\n\n#pragma once\n#include "UObject/Class.h"\n\n#include "CoreMinimal.h"\n#include "CharacterAnimationTypes.h"\n#include "FGCharacterAnimInstance.h"\n#include "FGAnimPlayer.generated.h"\n\n/**\n * \n */\nUCLASS()\nclass FACTORYGAME_API UFGAnimPlayer...
188
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.66, "nodes": 100, "errors": 0, "source_hash": "048e0711c983acb2b43ab7b6af00e161e9d9572f2c3d593cc1d0c18a9a277bf8", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
76,760
c
/* * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
33.23
31
(translation_unit) "/*\n * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.or...
69
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.23, "nodes": 50, "errors": 0, "source_hash": "efa56f72f95a5379ffdd408faa6a2f409470263e479007579807af0b29f5ec19", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,761
c
#include "ipq_list.h" #ifndef ITACHI_H #define ITACHI_H typedef struct { ipq_list_p queued_packets; } itachi_t, *itachi_p; itachi_p itachi_init(); void itachi_exit(itachi_p); ipq_packet_msg_t* itachi_add_ipq(itachi_p itachi, ipq_packet_msg_t * m); #endif
24.7
10
(translation_unit) "#include "ipq_list.h"\n\n#ifndef ITACHI_H\n#define ITACHI_H\n\ntypedef struct {\n ipq_list_p queued_packets;\n} itachi_t, *itachi_p;\n\nitachi_p itachi_init();\nvoid itachi_exit(itachi_p);\nipq_packet_msg_t* itachi_add_ipq(itachi_p itachi, ipq_packet_msg_t * m);\n\n#endif\n" (preproc_include) "#i...
68
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.7, "nodes": 48, "errors": 0, "source_hash": "6c540e7aea43e270b6cd5b10eec43531ef9e53edf5cc236f1afa184951dea332", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
76,762
c
// TestPoissonIPDG3D.h // // 2007/08/28 //--------------------------------------------------------- #ifndef NDG__TestPoissonIPDG3D_H__INCLUDED #define NDG__TestPoissonIPDG3D_H__INCLUDED #include "NDG3D.h" //--------------------------------------------------------- class TestPoissonIPDG3D : public NDG3D //-----------...
25.91
33
(translation_unit) "// TestPoissonIPDG3D.h\n// \n// 2007/08/28\n//---------------------------------------------------------\n#ifndef NDG__TestPoissonIPDG3D_H__INCLUDED\n#define NDG__TestPoissonIPDG3D_H__INCLUDED\n\n#include "NDG3D.h"\n\n//---------------------------------------------------------\nclass TestPoissonIPDG3...
106
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.91, "nodes": 45, "errors": 0, "source_hash": "86f46f2ee038c5988f060505fb2e80a8456eeed266194e132fcc45cf5d8ed1b0", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,763
c
#pragma once #include "geometrycentral/halfedge_mesh.h" #include "geometrycentral/geometry.h" #include <fstream> using namespace geometrycentral; class Tutte { public: Tutte(HalfedgeMesh* m, Geometry<Euclidean>* g); void computeTutteEmbedding(); private: HalfedgeMesh* mesh; ...
29.95
21
(translation_unit) "#pragma once\n\n#include "geometrycentral/halfedge_mesh.h"\n#include "geometrycentral/geometry.h"\n#include <fstream> \n\nusing namespace geometrycentral;\n\nclass Tutte {\n public:\n Tutte(HalfedgeMesh* m, Geometry<Euclidean>* g);\n void computeTutteEmbedding();\n\n private:\n ...
167
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.95, "nodes": 108, "errors": 0, "source_hash": "8626f36abb822166bb1c501b1fd41e06e175d0cc432ab733e16a11b2547ed07f", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
76,764
c
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "GameFramework/GameModeBase.h" #include "ShooterGameGameModeBase.generated.h" /** * */ UCLASS() class SHOOTERGAME_API AShooterGameGameModeBase : public AGameModeBase { GENERATED_BODY() public: int8 ...
18.88
25
(translation_unit) "// Copyright Epic Games, Inc. All Rights Reserved. \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "GameFramework/GameModeBase.h" \n#include "ShooterGameGameModeBase.generated.h" \n \n/** \n * \n */ \nUCLASS() \nclass SHOOTERGAME_API AShooterGameGameModeBase : public AGameModeBase \n{ \n...
100
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.88, "nodes": 58, "errors": 0, "source_hash": "5fa342fdd52a002a2e4b9360eef7705cd72287770960611d733199c746d61845", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,765
c
// // Copyright (c) 2019 Open Whisper Systems. All rights reserved. // #import <SignalMessaging/OWSViewController.h> NS_ASSUME_NONNULL_BEGIN @class SignalServiceAddress; @interface FingerprintViewController : OWSViewController + (void)presentFromViewController:(UIViewController *)viewController address:(SignalSer...
35.5
10
(translation_unit) "//\n// Copyright (c) 2019 Open Whisper Systems. All rights reserved.\n//\n\n#import <SignalMessaging/OWSViewController.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class SignalServiceAddress;\n\n@interface FingerprintViewController : OWSViewController\n\n+ (void)presentFromViewController:(UIViewController *)v...
52
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 35.5, "nodes": 32, "errors": 0, "source_hash": "3aef7f52fdf62cbb39a05636f66ec55bd7cd68d75bc8ad94480f15ba933ddb33", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <S...
76,766
c
// Copyright 2017, OpenCensus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
38.13
31
(translation_unit) "// Copyright 2017, OpenCensus Authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless require...
154
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 38.13, "nodes": 79, "errors": 0, "source_hash": "f239948982f2bf2648b1a617043763edb0ee9078f3692ef7e9a910f80b57d0f4", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,767
c
// // GifTabBarHeader.h // Pods // // Created by LBH on 2016/7/14. // // #ifndef GifTabBarHeader_h #define GifTabBarHeader_h #import "GifTabBarController.h" #import "GifTabBarItem.h" #endif /* GifTabBarHeader_h */
17.08
12
(translation_unit) "//\n// GifTabBarHeader.h\n// Pods\n//\n// Created by LBH on 2016/7/14.\n//\n//\n\n#ifndef GifTabBarHeader_h\n#define GifTabBarHeader_h\n\n#import "GifTabBarController.h"\n#import "GifTabBarItem.h"\n\n#endif /* GifTabBarHeader_h */\n" (comment) "//" (comment) "// GifTabBarHeader.h" (comment...
22
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.08, "nodes": 13, "errors": 0, "source_hash": "0de40a78fcd455d8df1e5127b638515a2994dfe0c7d2701cf668a00df3a19bd1", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
76,768
c
// // DDCUserManager.h // DDCommons // // Created by M.Jabbar on 08/01/2020. // #import <Foundation/Foundation.h> #import "DDCountryM.h" #import <DDCommons/DDCommons.h> #import <DDModels/DDModels.h> #import "DDAuthConstants.h" #import "DDLocationsManager.h" #import "DDAuthManager.h" #import <DDStorage/DDStorage.h> ...
32.41
32
(translation_unit) "//\n// DDCUserManager.h\n// DDCommons\n//\n// Created by M.Jabbar on 08/01/2020.\n//\n\n#import <Foundation/Foundation.h>\n#import "DDCountryM.h"\n#import <DDCommons/DDCommons.h>\n#import <DDModels/DDModels.h>\n#import "DDAuthConstants.h"\n#import "DDLocationsManager.h"\n#import "DDAuthManager.h"...
267
25
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.41, "nodes": 184, "errors": 0, "source_hash": "e615d761dd82e4c92cb9a35bd8bdfa1895e572737df334deb6bdc0beb04300e5", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
76,769
c
// // FuncInfo.h // SXIotSDK // // Created by ShimLin on 2019/7/30. // #import <Foundation/Foundation.h> #import "SXBaseInfo.h" NS_ASSUME_NONNULL_BEGIN @interface FuncInfo : SXBaseInfo @property(nonatomic, assign) long funcId; @property(nonatomic, assign) int itemIndex; @property(nonatomic, copy) NSString* funcC...
29
22
(translation_unit) "//\n// FuncInfo.h\n// SXIotSDK\n//\n// Created by ShimLin on 2019/7/30.\n//\n\n#import <Foundation/Foundation.h>\n#import "SXBaseInfo.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FuncInfo : SXBaseInfo\n\n@property(nonatomic, assign) long funcId;\n@property(nonatomic, assign) int itemIndex;\n@prope...
185
22
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.0, "nodes": 124, "errors": 0, "source_hash": "78add65c795ecaa8027c7aecce5f8a222a6a0a5e24691eb1430c7a13a6ec1474", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
76,770
c
#include <string.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <strings.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <fcntl.h> #include <sys/time.h> #include <netdb.h> #define BUF_SIZE 1000000 long getMicrotime(){ struct timeva...
25.31
100
(translation_unit) "#include <string.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <strings.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <fcntl.h>\n#include <sys/time.h>\n#include <netdb.h>\n#define BUF_SIZE 1000000\n\n\nlong ge...
838
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 25.31, "nodes": 479, "errors": 0, "source_hash": "e19b787dbba5553e4f15c80d1fdc5cbaac6f7c5f40638f1f9b728fb55620beb2", "categorized_nodes": 345}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,771
c
#ifndef CREATE_DOT_H #define CREATE_DOT_H #include "all_data.h" #include "dot_writer.h" bool CreateDot(AllData& alldata); #endif
17.57
7
(translation_unit) "#ifndef CREATE_DOT_H\n#define CREATE_DOT_H\n\n#include "all_data.h"\n#include "dot_writer.h"\n\n\nbool CreateDot(AllData& alldata);\n\n#endif\n\n" (preproc_ifdef) "#ifndef CREATE_DOT_H\n#define CREATE_DOT_H\n\n#include "all_data.h"\n#include "dot_writer.h"\n\n\nbool CreateDot(AllData& alldata);\n\...
33
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.57, "nodes": 21, "errors": 0, "source_hash": "8d7d991b0ea5739283ceeec53a206e2df5f036dbc1ce7c00fee37e2b6763d82f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
76,772
c
/* serial.c Copyright 2015-2016 <NAME> (time4tux at gmail dot com) MIT Licence (See LICENSE.txt for details) */ // Serial interface routines #include "serial.h" #include "commands.h" String inputString = ""; // incoming data boolean stringComplete = false; void SetupSerialInterface() { Serial.begi...
20.85
48
(translation_unit) "/* serial.c\n Copyright 2015-2016 <NAME> (time4tux at gmail dot com)\n MIT Licence (See LICENSE.txt for details) \n*/\n\n// Serial interface routines\n\n#include "serial.h"\n#include "commands.h"\n\nString inputString = ""; // incoming data\nboolean stringComplete = false; \n\n\nvoid Setu...
291
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 20.85, "nodes": 162, "errors": 0, "source_hash": "25d218b71a82a11468dd3be2c3727634cad5e1ec5668aeab5620e879f6071221", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,773
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <errno.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> #include <unistd.h> #include "socketcom.h" char *serialize_uint32_t(char *buffer, uint32_t val) { val = htonl(val); buffer[0] = val >> 24; buffer[1] = val >...
29.07
244
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdarg.h>\n#include <errno.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n#include <fcntl.h>\n#include <unistd.h>\n\n#include "socketcom.h"\n\nchar *serialize_uint32_t(char *buffer, uint32_t val) {\n val = htonl(val);\n buffer[...
2,566
2
{"language": "c", "success": true, "metadata": {"lines": 244, "avg_line_length": 29.07, "nodes": 1670, "errors": 0, "source_hash": "025ac0799bcac7c2b043fb1729ecb051ae95b171011efc5df986c86c03ccd44e", "categorized_nodes": 1192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
76,774
c
/*** * Copyright 2020 HAProxy Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
26.94
178
(translation_unit) "/***\n * Copyright 2020 HAProxy Technologies\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless ...
466
4
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 26.94, "nodes": 310, "errors": 0, "source_hash": "9a01be57330c0b0b1d2a457ee5cd1a789d72524e8c69a81c993170d7fe6b4542", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,775
c
/* X11buttons - buttons for X11 dialogs and windows */ /* XLISP-STAT 2.1 Copyright (c) 1990, by <NAME> */ /* Additions to Xlisp 2.1, Copyright (c) 1989 by <NAME> */ /* You may give out copies of this software; for conditions see the */ /* file COPYING included with this distrib...
37.09
208
(translation_unit) "/* X11buttons - buttons for X11 dialogs and windows */\n/* XLISP-STAT 2.1 Copyright (c) 1990, by <NAME> */\n/* Additions to Xlisp 2.1, Copyright (c) 1989 by <NAME> */\n/* You may give out copies of this software; for conditions see the */\n/* file COPYING in...
1,914
1
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 37.09, "nodes": 1115, "errors": 0, "source_hash": "19a57675bceb25f3805aab484ceaddbbfcd00fe371f81e3ce11ee9a1e2109510", "categorized_nodes": 859}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
76,776
c
/*! @file @brief assert関数 */ /* Copyright (C) 2007, kobake Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted t...
36.7
46
(translation_unit) "! @file\n @brief assert関数\n\n*/\n/*\n Copyright (C) 2007, kobake\n Copyright (C) 2018-2021, Sakura Editor Organization\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software...
87
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.7, "nodes": 62, "errors": 0, "source_hash": "7e3db6b94e3d7d718690cfb279a63cec1cae49aebc99c83fc4653912e9eb32b5", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f SAKURA_...
76,777
c
/* Copyright 2018 JDCLOUD.COM Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http:#www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
35.26
186
(translation_unit) "/* Copyright 2018 JDCLOUD.COM\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp:#www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to i...
1,636
225
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 35.26, "nodes": 1131, "errors": 0, "source_hash": "af586d1db1af6a700c4c469ccc483a54858ac41439da63ac88c182a961abcdd9", "categorized_nodes": 606}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
76,778
c
/************************************************************************** ** ** Copyright (c) 2013 <NAME> ** ** 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, in...
30.59
76
(translation_unit) "/************************************************************************** \n** \n** Copyright (c) 2013 <NAME> \n** \n** Permission is hereby granted, free of charge, to any person obtaining a copy of \n** this software and associated documentation files (the "Software"), to deal in \n** the Softwa...
208
4
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 30.59, "nodes": 127, "errors": 0, "source_hash": "585b1a63714088b19c203958fd807895f8934fb85db35be552a24c9da072cc76", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,779
c
#pragma once #if defined(SP_PLATFORM_WINDOWS) #ifdef SP_BUILD_DLL #define SPYDR_API __declspec(dllexport) //#else //#define SPYDR_API __declspec(dllimport) #endif #define SPYDR_API #elif defined(SP_PLATFORM_LINUX) #else #error SpydrEngine only supports Windows. #endif #ifdef SP_ENABLE_ASSERT...
27
28
(translation_unit) "#pragma once \n \n#if defined(SP_PLATFORM_WINDOWS) \n #ifdef SP_BUILD_DLL \n #define SPYDR_API __declspec(dllexport) \n //#else \n //#define SPYDR_API __declspec(dllimport) \n #endif \n #define SPYDR_API \n#elif defined(SP_PLATFORM_LINUX) \n \n#else \n #error SpydrEngine only supports Windows. \n...
110
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.0, "nodes": 81, "errors": 0, "source_hash": "3deb73236dd59b09b449264bab13c897a91c31714e832335f133d6746f2158ae", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
76,780
c
#ifndef CCPP_SAMPLE_GETPARAMETERS_REQUEST__H #define CCPP_SAMPLE_GETPARAMETERS_REQUEST__H #include "Sample_GetParameters_Request_.h" #undef OS_API #include "Sample_GetParameters_Request_Dcps.h" #undef OS_API #include <orb_abstraction.h> #include "Sample_GetParameters_Request_Dcps_impl.h" #endif /* CCPP_SAMPLE_GETPAR...
36.67
9
(translation_unit) "#ifndef CCPP_SAMPLE_GETPARAMETERS_REQUEST__H\n#define CCPP_SAMPLE_GETPARAMETERS_REQUEST__H\n\n#include "Sample_GetParameters_Request_.h"\n#undef OS_API\n#include "Sample_GetParameters_Request_Dcps.h"\n#undef OS_API\n\n#include <orb_abstraction.h>\n#include "Sample_GetParameters_Request_Dcps_impl.h"\...
36
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.67, "nodes": 25, "errors": 0, "source_hash": "412e9faca93a5351d1cdb021c92b34429807d37c7eae7051090d0a65ecc0645d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
76,781
c
#ifndef ANIMATIONCLIPMODEL_H #define ANIMATIONCLIPMODEL_H #include <QAbstractItemModel> #include <animationcurve.h> #include <animationclip.h> #include "undomanager.h" class AnimationController; class AnimationStateMachine; class AnimationClipModel : public QAbstractItemModel { Q_OBJECT public: AnimationC...
32.82
95
(translation_unit) "#ifndef ANIMATIONCLIPMODEL_H\n#define ANIMATIONCLIPMODEL_H\n\n#include <QAbstractItemModel>\n\n#include <animationcurve.h>\n#include <animationclip.h>\n\n#include "undomanager.h"\n\nclass AnimationController;\nclass AnimationStateMachine;\n\nclass AnimationClipModel : public QAbstractItemModel {\n ...
881
49
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 32.82, "nodes": 544, "errors": 0, "source_hash": "96f1683523604216dd0dfa875c353ae16c9b4fbcd66fd445c87a050c7ed62bc6", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ANIMAT...
76,782
c
#ifndef __GENERATOR_H__ #define __GENERATOR_H__ #include <WinSock2.h> #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <Windows.h> #include "../LibCore/cthread.h" #include "../LibDistrubutor/Context.h" #include "../VideoUtility/cudaEncoder.h" #include "../VideoUtility/FilterRGB2YUV.h" #include "...
39.35
168
(translation_unit) "#ifndef __GENERATOR_H__\n#define __GENERATOR_H__\n\n#include <WinSock2.h>\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#include <Windows.h>\n#include "../LibCore/cthread.h"\n#include "../LibDistrubutor/Context.h"\n#include "../VideoUtility/cudaEncoder.h"\n#include "../VideoUtil...
1,448
52
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 39.35, "nodes": 920, "errors": 0, "source_hash": "7771c3a5eca080d416f942d906fb37e531e83b35574e4c8a2fd1aea575d1880d", "categorized_nodes": 618}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,783
c
#include <getopt.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "shared.h" bool use_aes = false; bool out_bmp = false; int bit_setting = 0; #define usage() \ do { \ printf("Usage options:\n" \ ...
33.17
122
(translation_unit) "#include <getopt.h>\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "shared.h"\n\nbool use_aes = false;\nbool out_bmp = false;\nint bit_setting = 0;\n\n#define usage() \\n do { \\n ...
778
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 33.17, "nodes": 473, "errors": 0, "source_hash": "d57d3bf879e1d504ae77800bf5bf7e97ea3470ca8d9b74ab78c3cb743750f589", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,784
c
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the Apache 2.0 License. * See the accompanying LICENSE file for terms. */ // // SQLitePreparedStatement.h // squidb-ios // #import <Foundation/Foundation.h> #import <sqlite3.h> @interface SQLitePreparedStatement : NSObject @property sqlite3_stmt *stat...
24.47
15
(translation_unit) "/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the Apache 2.0 License.\n * See the accompanying LICENSE file for terms.\n */\n//\n// SQLitePreparedStatement.h\n// squidb-ios\n//\n\n#import <Foundation/Foundation.h>\n#import <sqlite3.h>\n\n@interface SQLitePreparedStatement : NSObj...
48
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.47, "nodes": 32, "errors": 0, "source_hash": "3c674b7e17f0971a07b63ddc42d3d4474b83bde6c4bdeef529e4766100e8d7a2", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
76,785
c
#include <glad/glad.h> #include "window.h" #include <malloc.h> #include <stdio.h> static void _errorCallback(int error, const char* description) { fprintf(stderr, "[Error]: code %d:\n%s\n", error, description); } struct window* mk_window(int width, int height, const char* title, int fullscreen) { /* all...
29.54
92
(translation_unit) "#include <glad/glad.h> \n#include "window.h" \n \n#include <malloc.h> \n#include <stdio.h> \n \nstatic void _errorCallback(int error, const char* description) { \n fprintf(stderr, "[Error]: code %d:\n%s\n", error, description); \n} \n \nstruct window* mk_window(int width, int height, const char* tit...
775
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 29.54, "nodes": 462, "errors": 0, "source_hash": "7f7e05be1b7c4d8b1959dc6def5fa060237ae5a5867fa968d3e61ce827d58749", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,786
c
/*========================================================================= Program: Visualization Toolkit Module: vtkCellSizeFilter.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITH...
37.84
158
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkCellSizeFilter.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This...
753
10
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 37.84, "nodes": 458, "errors": 0, "source_hash": "7141b68b37a32bbba8a36c6710e6d48f474ad0e4439bb6fbc184c31244b6f250", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,787
c
/************************************************************************************************************************** Copyright(C) 2014-2017 www.xionggf.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
25.73
146
(translation_unit) "/************************************************************************************************************************** \nCopyright(C) 2014-2017 www.xionggf.com \n \nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation \nfiles...
426
4
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 25.73, "nodes": 299, "errors": 0, "source_hash": "6783eaccd2221ef3a06d52149e0ab0fe3a76e423ea28dc1d3dff399606a4551e", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "lib_p...
76,788
c
#pragma once #include "core/payload/payloadiface.h" #include "gason/gason.h" namespace reindexer { class TagsMatcher; class WrSerializer; class JsonDecoder { public: JsonDecoder(TagsMatcher &tagsMatcher); Error Decode(Payload *pl, WrSerializer &wrSer, JsonValue &v); protected: void decodeJson(Payload *pl, WrSer...
29.28
18
(translation_unit) "#pragma once\n\n#include "core/payload/payloadiface.h"\n#include "gason/gason.h"\n\nnamespace reindexer {\n\nclass TagsMatcher;\nclass WrSerializer;\n\nclass JsonDecoder {\npublic:\n JsonDecoder(TagsMatcher &tagsMatcher);\n Error Decode(Payload *pl, WrSerializer &wrSer, JsonValue &v);\n\nprotected:\...
161
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.28, "nodes": 94, "errors": 0, "source_hash": "06d781e04a5d84cc6c25c8505696852cb5872792de479075094ad360690ba9e6", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,789
c
/************************************************************************ * Mapping a discretized state in the RNN as well as to move back * continuous values. * * Author: <NAME> * Organisation: IDIAP Research Institue * Date: Sept. 2011 ***********************************************************************/ #...
22.24
42
(translation_unit) "/************************************************************************\n * Mapping a discretized state in the RNN as well as to move back\n * continuous values.\n *\n * Author: <NAME>\n * Organisation: IDIAP Research Institue\n * Date: Sept. 2011\n ************************************************...
183
7
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.24, "nodes": 117, "errors": 0, "source_hash": "404ebe82b2cb604c0b999a1dd6470fdee1d238874b603b8bcc0050f5e9534b65", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,790
c
/* ModelOBJ - This code is part of CS/CPRE/ME 557 - Computer Graphics This class provides functions to load and render an 3D model stored as .obj file. However, it just loads the meshes from an obj file and renders them. Materials and a shader program must be manually assigned. Features: - Load all meshes from an...
24.05
79
(translation_unit) "/*\nModelOBJ - This code is part of CS/CPRE/ME 557 - Computer Graphics \n\nThis class provides functions to load and render an 3D model stored as .obj file. \nHowever, it just loads the meshes from an obj file and renders them. \nMaterials and a shader program must be manually assigned. \n\nFeatures...
207
5
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 24.05, "nodes": 131, "errors": 0, "source_hash": "271c6f7ba47eed8f0d6864309ba86b96c03d08b2f02386486ca8c76fee13774c", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,791
c
/* Copyright 2013 Active911 Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http: *www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
28.78
46
(translation_unit) "/* Copyright 2013 Active911 Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http: *www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
172
5
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.78, "nodes": 72, "errors": 0, "source_hash": "e964e5517171c1cf98f9632be990f401256a03f9e3042514d60545cb4d3a9181", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,792
c
//connect 4 V1 user v user //created by <NAME> //includes #include <stdio.h> #include <math.h> #include <stdlib.h> #include <time.h> //constants const int NUMROW = 6; const int NUMCOL = 6; const int SIDELENGTH = 7; void boardPrint(char array[], int SIDELENGTH){ //local 2D array for printing the GB char thic...
31.49
152
(translation_unit) "//connect 4 V1 user v user\n//created by <NAME>\n\n//includes\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n#include <time.h>\n//constants\n\nconst int NUMROW = 6;\nconst int NUMCOL = 6;\nconst int SIDELENGTH = 7;\n\nvoid boardPrint(char array[], int SIDELENGTH){ \n //local 2D arra...
1,938
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 31.49, "nodes": 1297, "errors": 0, "source_hash": "103213290391ebb04471e4ae359fcaccbdb384fe3736bef374ec01d69b77daf1", "categorized_nodes": 850}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
76,793
c
#include <stdio.h> int sum2 = 12; int add2(int i, int j) { return i + j; }
11.83
6
(translation_unit) "#include <stdio.h>\n\nint sum2 = 12;\n\nint add2(int i, int j)\n{\n return i + j;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "int sum2 = 12;" (primitive_type) "int" (init_declarator) "sum2 = 12" (identif...
35
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.83, "nodes": 25, "errors": 0, "source_hash": "06c76dccd22c55b07c68700acce91e6610d6a4c628a448ca67c5e5d04be59571", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
76,794
c
/************************************************************************* Atari Tetris hardware *************************************************************************/ /*----------- defined in video/atetris.c -----------*/ VIDEO_START( atetris ); VIDEO_UPDATE( atetris ); WRITE8_HANDLER( atetris_...
26.83
12
(translation_unit) "/************************************************************************* \n \n Atari Tetris hardware \n \n*************************************************************************/ \n \n/*----------- defined in video/atetris.c -----------*/ \n \nVIDEO_START( atetris ); \nVIDEO_UPDATE( atetris )...
27
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.83, "nodes": 12, "errors": 0, "source_hash": "edad7272172537792da39a554b4f6628c290ee3fea942d06c923b19c10c1deb7", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "VIDEO_S...
76,795
c
/* * Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
32.75
295
(translation_unit) "/*\n * Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licen...
2,770
3
{"language": "c", "success": true, "metadata": {"lines": 295, "avg_line_length": 32.75, "nodes": 1694, "errors": 0, "source_hash": "7902bba78338ab541bc3cab65444b31bc979567030c3809b668ca0f8ce577462", "categorized_nodes": 1167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
76,796
c
/* * Copyright (c) 2022 Renwei * * This is a free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #ifndef __DAVE_GENERAL_MAIN_H__ #define __DAVE_GENERAL_MAIN_H__ /* for MAINMSG_PYTHON_REQ message */ typedef struct { PythonFun fun; ub opt_para...
21.25
24
(translation_unit) "/*\n * Copyright (c) 2022 Renwei\n *\n * This is a free software; you can redistribute it and/or modify\n * it under the terms of the MIT license. See LICENSE for details.\n */\n\n#ifndef __DAVE_GENERAL_MAIN_H__\n#define __DAVE_GENERAL_MAIN_H__\n\n/* for MAINMSG_PYTHON_REQ message */\ntypedef struct...
77
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.25, "nodes": 54, "errors": 0, "source_hash": "549a607b2d402e686f4aa6e4bef20b7cadd51385b84b7ca771876a790e46f45b", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,797
c
#pragma once #include <string> enum : unsigned int { e_VertexShaderIndex = 0, e_FragmentShaderIndex = 1 }; namespace FileManager { extern std::string ReadFile(const char* const path, bool bAddEndLineChar); extern void ParseShader(const char* const path, std::string outShader[2]); }
23.58
12
(translation_unit) "#pragma once\n#include <string>\n\nenum : unsigned int\n{\n e_VertexShaderIndex = 0,\n e_FragmentShaderIndex = 1\n};\nnamespace FileManager\n{\n extern std::string ReadFile(const char* const path, bool bAddEndLineChar);\n extern void ParseShader(const char* const path, std::string outShader[...
92
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.58, "nodes": 59, "errors": 0, "source_hash": "a7619d600238ac59b56a176a26bf648cdf353e10bde3a660c632957d6fc9eef1", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,798
c
// // YKSearchHeader.h // YK // // Created by LXL on 2017/11/15. // Copyright © 2017年 YK. All rights reserved. // #import <UIKit/UIKit.h> @interface YKSearchHeader : UITableViewCell //FilterBlock //@property (nonatomic,copy)void (^filterTypeBlock)(NSInteger categoryId); //@property (nonatomic,copy)void (^filterS...
44.11
18
(translation_unit) "//\n// YKSearchHeader.h\n// YK\n//\n// Created by LXL on 2017/11/15.\n// Copyright © 2017年 YK. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YKSearchHeader : UITableViewCell\n\n//FilterBlock\n//@property (nonatomic,copy)void (^filterTypeBlock)(NSInteger categoryId);\n//@prope...
157
17
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 44.11, "nodes": 102, "errors": 0, "source_hash": "a1866178d764372475d8594cdf95ed111b7b0226c6d74af13a7f8683f27c17c8", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
76,799