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
#pragma once namespace Rhi { /** * @brief * Abstract cube texture interface * * @note * - Common use case for cube texture: Environment cube maps */ class ITextureCube : public ITexture { // Public methods public: /** * @brief * Destructor */ inline virtual ~ITextureCube() override { #if...
21.35
65
(translation_unit) "#pragma once\n\nnamespace Rhi\n{\n /**\n* @brief\n* Abstract cube texture interface\n*\n* @note\n* - Common use case for cube texture: Environment cube maps\n*/\n class ITextureCube : public ITexture\n {\n\n // Public methods\n public:\n /**\n * @brief\n * Destructor\n */\n inline ...
227
13
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 21.35, "nodes": 127, "errors": 0, "source_hash": "1bed4dd831f5f96f849f01b37752f6e8b3d92dfeff5d6944c691975c830a934c", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,100
c
/*s: libc/port/runestrcat.c */ #include <u.h> #include <libc.h> /*s: function [[runestrcat]] */ Rune* runestrcat(Rune *s1, Rune *s2) { runestrcpy(runestrchr(s1, 0), s2); return s1; } /*e: function [[runestrcat]] */ /*e: libc/port/runestrcat.c */
20.17
12
(translation_unit) "/*s: libc/port/runestrcat.c */\n#include <u.h>\n#include <libc.h>\n\n/*s: function [[runestrcat]] */\nRune*\nrunestrcat(Rune *s1, Rune *s2)\n{\n\n runestrcpy(runestrchr(s1, 0), s2);\n return s1;\n}\n/*e: function [[runestrcat]] */\n/*e: libc/port/runestrcat.c */\n" (comment) "/*s: libc/port/...
55
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.17, "nodes": 34, "errors": 0, "source_hash": "d2187937570b5086494fe0c92f436406983119f099d7edfc86159a1d82db3593", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,101
c
#import <Foundation/Foundation.h> @interface CTNotificationButton : NSObject @property (nonatomic, copy, readonly) NSString *text; @property (nonatomic, copy, readonly) NSString *textColor; @property (nonatomic, copy, readonly) NSString *borderRadius; @property (nonatomic, copy, readonly) NSString *borderColor; @prop...
49.29
14
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface CTNotificationButton : NSObject\n\n@property (nonatomic, copy, readonly) NSString *text;\n@property (nonatomic, copy, readonly) NSString *textColor;\n@property (nonatomic, copy, readonly) NSString *borderRadius;\n@property (nonatomic, copy, readonly) N...
212
42
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 49.29, "nodes": 157, "errors": 0, "source_hash": "e0c37c4305b86588f1557b7bc9516103e6fba615479f7a4a5f1ca410593d0d71", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,102
c
#include <assert.h> #include <limits.h> #include <math.h> #include <stdio.h> #include "uniring_protocol.h" #ifndef FSM_COUNT_MAX #define FSM_COUNT_MAX 8 #endif int main() { static const unsigned fsm_count = FSM_COUNT_MAX; unsigned violation_count = 0; unsigned guess_count = 1; for (unsigned j = 0; j < fsm_cou...
31.14
37
(translation_unit) "#include <assert.h>\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include "uniring_protocol.h"\n\n#ifndef FSM_COUNT_MAX\n#define FSM_COUNT_MAX 8\n#endif\n\nint main() {\n static const unsigned fsm_count = FSM_COUNT_MAX;\n unsigned violation_count = 0;\n unsigned guess_count = 1;\n...
329
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.14, "nodes": 221, "errors": 0, "source_hash": "8f931bf541817d479d8d22b33a032138bbe2d9fe0227a56f9ed45597cd597cff", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,103
c
// // HMPhotoBrowserCollectionViewCell.h // photosFramework // // Created by HuminiOS on 15/11/12. // Copyright © 2015年 HuminiOS. All rights reserved. // #import <UIKit/UIKit.h> #import <Photos/Photos.h> #import "JCHATPhotoModel.h" @interface JCHATPhotoBrowserCollectionViewCell : UICollectionViewCell @property (w...
29.5
14
(translation_unit) "//\n// HMPhotoBrowserCollectionViewCell.h\n// photosFramework\n//\n// Created by HuminiOS on 15/11/12.\n// Copyright © 2015年 HuminiOS. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Photos/Photos.h>\n#import "JCHATPhotoModel.h"\n@interface JCHATPhotoBrowserCollectionViewCell : UIC...
64
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.5, "nodes": 42, "errors": 0, "source_hash": "42d87438b65b5a32f2cce1c9340157657362e550552f7e73a58a040e4074dd16", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
12,104
c
/****************************************************************** Copyright (C) 2017 - All Rights Reserved by 文 件 名 : beepwidget.h --- 作 者 : Niyh (QQ:393320854) 编写日期 : 2019 说 明 : 历史纪录 : <作者> <日期> <版本> <内容> 2019/9/28 ***************************************************...
24.03
72
(translation_unit) "/****************************************************************** \n Copyright (C) 2017 - All Rights Reserved by \n 文 件 名 : beepwidget.h --- \n 作 者 : Niyh (QQ:393320854) \n 编写日期 : 2019 \n 说 明 : \n 历史纪录 : \n <作者> <日期> <版本> <内容> \n 2019/9/28 \n**********************...
310
11
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.03, "nodes": 216, "errors": 0, "source_hash": "af525ac2c1e14b20808b504d99ff6965c5a58f7c39fd1e6332e590287be63500", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#inclu...
12,105
c
svector v1 (4); v1 << 1, 2, 3, 4; svector v2 (4); v2 << 1, 3, 2, 4; smatrix m1(2, 3); m1 << 1, 3, 5, 2, 4, 6; V(svector(m1), "{1, 2, 3, 4, 5, 6}") svector v3; v3 = -m1; V(v3, "{-1, -2, -3, -4, -5, -6}") svector v4; v4 = v1+v2; V(v4, "{2, 5, 5, 8}") v4 = v1; v4 += v2; V(v4, "{2, 5, 5, 8}") v4 = v1; v4 -= v2...
19.02
48
(translation_unit) "svector v1 (4);\nv1 << 1, 2, 3, 4;\nsvector v2 (4);\nv2 << 1, 3, 2, 4;\n\nsmatrix m1(2, 3);\nm1 << 1, 3, 5, \n 2, 4, 6;\n\nV(svector(m1), "{1, 2, 3, 4, 5, 6}")\n\nsvector v3;\nv3 = -m1;\nV(v3, "{-1, -2, -3, -4, -5, -6}")\n\nsvector v4;\nv4 = v1+v2;\nV(v4, "{2, 5, 5, 8}")\n\nv4 = v1;\nv4 += v2;\...
521
14
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 19.02, "nodes": 300, "errors": 0, "source_hash": "5e4e5d77a4f9d305166e499d487df51a59b14096a9cea6f4ae7392d4b1182dc5", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "svector ...
12,106
c
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <xok/env.h> #include <exos/cap.h> #include <exos/ipcdemux.h> #include <exos/vm-layout.h> #include <exos/vm.h> #include <exos/process.h> #include "fsrv.h" #define dprintf if (0) printf #de...
20.09
182
(translation_unit) "#include <stdlib.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <sys/stat.h>\n\n#include <xok/env.h>\n#include <exos/cap.h>\n#include <exos/ipcdemux.h>\n#include <exos/vm-layout.h>\n#include <exos/vm.h>\n#include <exos/process.h>\n\n#include "fsrv.h"\n\...
1,268
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 20.09, "nodes": 782, "errors": 0, "source_hash": "1917867536384cd312ef2fba9f1d6595798492e572fe6152b0d329214047ab5b", "categorized_nodes": 626}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,107
c
#ifndef SYMBOL_TABLE_H #define SYMBOL_TABLE_H #define TABLE_SIZE 256 #define EMPTY_SPOT -1 #define ID_SUBPROGRAM 0 #define ID_VARIABLE 1 // Data components of the symbol table. It contains the PC and the type of reference typedef struct { int address; int labelType; } Label; // Struct that defines ...
28.78
27
(translation_unit) "#ifndef SYMBOL_TABLE_H\n#define SYMBOL_TABLE_H\n\n#define TABLE_SIZE 256\n#define EMPTY_SPOT -1\n#define ID_SUBPROGRAM 0\n#define ID_VARIABLE 1\n\n// Data components of the symbol table. It contains the PC and the type of reference\ntypedef struct {\n int address;\n int labelType;\n}...
191
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.78, "nodes": 146, "errors": 0, "source_hash": "97dd3c1bd837ebe347d421448e6869c3e9ae247eac79de61c390c91347927284", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,108
c
/** ****************************************************************************** * @file USB_Host/CDC_Standalone/Src/cdc_send.c * @author MCD Application Team * @brief CDC Send state machine ****************************************************************************** * @attention * * Copyright...
26.21
291
(translation_unit) "/**\n ******************************************************************************\n * @file USB_Host/CDC_Standalone/Src/cdc_send.c\n * @author MCD Application Team\n * @brief CDC Send state machine\n ******************************************************************************\n * @a...
1,532
0
{"language": "c", "success": true, "metadata": {"lines": 291, "avg_line_length": 26.21, "nodes": 838, "errors": 0, "source_hash": "e959b0185c9bd4932b78a55aaab3a7d53a54ad228f8f7e2d1f5dea1f249d15e8", "categorized_nodes": 584}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,109
c
#ifndef v1beta1_cluster_role_list_TEST #define v1beta1_cluster_role_list_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define v1beta1_cluster_role_list_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h...
37.22
54
(translation_unit) "#ifndef v1beta1_cluster_role_list_TEST\n#define v1beta1_cluster_role_list_TEST\n\n// the following is to include only the main from the first c file\n#ifndef TEST_MAIN\n#define TEST_MAIN\n#define v1beta1_cluster_role_list_MAIN\n#endif // TEST_MAIN\n\n#include <stdlib.h>\n#include <string.h>\n#includ...
326
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 37.22, "nodes": 197, "errors": 0, "source_hash": "4e07135eae203cf57ff9acdcd4a102e0be2cc0922be1f5cd71a2642f8285fea1", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,110
c
#pragma once #include "os_hal_gpio.h" /** * @brief Map x described by in_min, in_max space into space described by out_min, out_max. * * @param x value to be mapped. * @param in_min minimum value that x can achieve. * @param in_max maximum value that x can achieve. * @param out_min minimum value that output should ac...
31.23
26
(translation_unit) "#pragma once\n\n#include "os_hal_gpio.h"\n\n/**\n* @brief Map x described by in_min, in_max space into space described by out_min, out_max.\n*\n* @param x value to be mapped.\n* @param in_min minimum value that x can achieve.\n* @param in_max maximum value that x can achieve.\n* @param out_min minim...
61
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.23, "nodes": 41, "errors": 0, "source_hash": "60cb6b26aedab0aa58165eef07b966d3cb93e645478255d18a9dcbb05de5a275", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,111
c
#define EXPERIMENTAL_FEATURES // Includes all the necessary libraries #include "../src/asciigl.h" #include "../atk/utils.h" int main() { // Sets the window title to "Baisc Program - asciiGL" atkSetWindowTitle("Baisc Program - asciiGL"); // Creates and initializes a framebuffer to use as asc...
26.03
37
(translation_unit) "#define EXPERIMENTAL_FEATURES \n \n// Includes all the necessary libraries \n#include "../src/asciigl.h" \n#include "../atk/utils.h" \n \n \nint main() \n{ \n // Sets the window title to "Baisc Program - asciiGL" \n atkSetWindowTitle("Baisc Program - asciiGL"); \n \n // Creates and initial...
137
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.03, "nodes": 66, "errors": 0, "source_hash": "172f17397a8cfc347744d3a8cbe9eae79fb9acb3bc03c16114e7962835a29384", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define EX...
12,112
c
/* * fake_poll_thread.h - poll thread for raw image * * Copyright (c) 2014-2015 Intel Corporation * * 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/lice...
29.83
48
(translation_unit) "/*\n * fake_poll_thread.h - poll thread for raw image\n *\n * Copyright (c) 2014-2015 Intel Corporation\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 * ...
171
6
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.83, "nodes": 107, "errors": 0, "source_hash": "5d5d24a2375f076bed6e88f504e11d7bc36ee318fc784be503ed48e3a3590758", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,113
c
/*BEGIN_LEGAL Copyright (c) 2019 Intel Corporation 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 a...
31.62
78
(translation_unit) "/*BEGIN_LEGAL \n\nCopyright (c) 2019 Intel Corporation\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 r...
575
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 31.62, "nodes": 325, "errors": 0, "source_hash": "1a81c0fb4af17bacea2ad52bece75e5103602cf6c7e6af08a8907d9bee578dbd", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,114
c
#ifndef ENGINE_H #define ENGINE_H #include <array> #include <vector> #include <memory> #include <iostream> #include "config.h" #include "display.h" #include "camera.h" #include "math.h" #include "vec3.h" #include "quaternion.h" #include "sphere.h" #include "plane.h" #include "triangle.h" #include "intersection.h" #inc...
21.14
44
(translation_unit) "#ifndef ENGINE_H\n#define ENGINE_H\n\n#include <array>\n#include <vector>\n#include <memory>\n#include <iostream>\n#include "config.h"\n#include "display.h"\n#include "camera.h"\n#include "math.h"\n#include "vec3.h"\n#include "quaternion.h"\n#include "sphere.h"\n#include "plane.h"\n#include "triangl...
289
4
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.14, "nodes": 181, "errors": 0, "source_hash": "21f20672f512e69c265494c55c03bd4c74f755586554f5ccd05faebe6baf9c2a", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,115
c
#ifndef LISH_H #define LISH_H struct Node{ int val; Node* next; Node* prev; }; void build(); void reverse(); Node* push_back(const int &x); Node* push_front(const int &x); void erase(Node *x); void pop_back(); void pop_front(); void pop_back(); Node* insert(const int &ID, const int &x); Node* find_next(Node *ptr, ...
20.62
24
(translation_unit) "#ifndef LISH_H\n#define LISH_H\n\nstruct Node{\n int val;\n Node* next;\n Node* prev;\n};\n\nvoid build();\nvoid reverse();\nNode* push_back(const int &x);\nNode* push_front(const int &x);\nvoid erase(Node *x);\nvoid pop_back();\nvoid pop_front();\nvoid pop_back();\nNode* insert(const int &ID, const...
261
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.62, "nodes": 162, "errors": 0, "source_hash": "6fe35cb9f9cd7ae0a17fb6fc66a4d5f5960cd10503afb7f597eb6cea50d88f58", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,116
c
#include<stdio.h> int main() { int i,j,n,loc,temp,min,a[10]; printf("Enter the number of elements:"); scanf("%d",&n); printf("Enter the elements\n"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<n-1;i++) { min=a[i]; loc=i; for(j=i+1;j<n;j++...
15
40
(translation_unit) "#include<stdio.h>\n \nint main()\n{\n int i,j,n,loc,temp,min,a[10];\n printf("Enter the number of elements:");\n scanf("%d",&n);\n printf("Enter the elements\n");\n \n for(i=0;i<n;i++)\n {\n scanf("%d",&a[i]);\n }\n \n for(i=0;i<n-1;i++)\n {\n min=a[i];\n ...
303
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 15.0, "nodes": 163, "errors": 0, "source_hash": "2786a6fd76a7b5a526541d9f9fb3d46733103597d0325084f919b15c206c870f", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,117
c
/** * This file is part of the Drift Unreal Engine Integration. * * Copyright (C) 2016-2021 Directive Games Limited. All Rights Reserved. * * Licensed under the MIT License (the "License"); * * You may not use this file except in compliance with the License. * You may obtain a copy of the license in the LICENSE file fo...
32.18
195
(ERROR) "/**\n* This file is part of the Drift Unreal Engine Integration.\n*\n* Copyright (C) 2016-2021 Directive Games Limited. All Rights Reserved.\n*\n* Licensed under the MIT License (the "License");\n*\n* You may not use this file except in compliance with the License.\n* You may obtain a copy of the license in th...
1,170
47
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 32.18, "nodes": 693, "errors": 0, "source_hash": "3655c51c49302888d6a8f65c7a601d3b583bc74ed18a536eb7515de23c14db91", "categorized_nodes": 524}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/**\n* This file is part...
12,118
c
#include<subdefs.h> int DLL_PUBLIC subfunc() { return 42; }
15
4
(translation_unit) "#include<subdefs.h>\n\nint DLL_PUBLIC subfunc() {\n return 42;\n}\n" (preproc_include) "#include<subdefs.h>\n" (#include) "#include" (system_lib_string) "<subdefs.h>" (function_definition) "int DLL_PUBLIC subfunc() {\n return 42;\n}" (primitive_type) "int" (ERROR) "DLL_PUBL...
20
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.0, "nodes": 12, "errors": 0, "source_hash": "598e8cdc51778250b6b1e07fc3cb50249c0c143e64c6e586e1f0f2791d7878bc", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include<...
12,119
c
#ifndef TREE_PRIVATE_H #define TREE_PRIVATE_H #include <Tree.h> #define MAX(x,y) ( (x > y) ? x : y ) #define MIN(x,y) ( (x < y) ? x : y ) int prune(Tree tree, SubTreeType branch); int updateStats(Tree tree); Tree verify(Tree tree); #endif
23
10
(translation_unit) "#ifndef TREE_PRIVATE_H\n#define TREE_PRIVATE_H\n\n#include <Tree.h>\n\n\n#define MAX(x,y) ( (x > y) ? x : y )\n#define MIN(x,y) ( (x < y) ? x : y )\n\nint prune(Tree tree, SubTreeType branch);\nint updateStats(Tree tree);\nTree verify(Tree tree);\n\n#endif\n" (preproc_ifdef) "#ifndef TREE_PRIVATE_...
68
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.0, "nodes": 51, "errors": 0, "source_hash": "24c707e139c745702bb4d5d156ab051ffce03d21df2c674b221755df3e762d15", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
12,120
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import <XXUnknownSuperclass.h> // Unknown library @class NSString; @interface iAPTransation : XXUnknownSuperclass { NSString* nsProductID; NSString* nsTransationI...
29.33
24
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import <XXUnknownSuperclass.h> // Unknown library\n\n@class NSString;\n\n@interface iAPTransation : XXUnknownSuperclass {\n NSString* nsPro...
175
18
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.33, "nodes": 119, "errors": 0, "source_hash": "ec2218dc1b55e5fe477fa29321fb8992ce72c101631ac3f6dfef623c535c6729", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,121
c
#pragma once #include "cinn/ir/ir.h" namespace cinn::optim { void IfSimplify(Expr* e); } // namespace cinn::optim
22
5
(translation_unit) "#pragma once\n#include "cinn/ir/ir.h"\n\nnamespace cinn::optim {\n\nvoid IfSimplify(Expr* e);\n\n} // namespace cinn::optim\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "cinn/ir/ir.h"\n" (#include) "#include" (...
34
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.0, "nodes": 21, "errors": 0, "source_hash": "25699c4bcb0fc6746a3597c4dc8014aaf73c0048f1ffc89f958c7552c802a432", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
12,122
c
#ifndef __3D_H__ #define __3D_H__ #include "sort.h" #include "2d.h" #include "pixmap.h" /* 3D transformations */ typedef struct { short u, v; } UVCoord; typedef struct { short x, y, z; short pad; } Point3D; typedef struct { short m00, m01, m02, x; short m10, m11, m12, y; short m20, m21, m22, z; } Matri...
31.01
94
(translation_unit) "#ifndef __3D_H__\n#define __3D_H__\n\n#include "sort.h"\n#include "2d.h"\n#include "pixmap.h"\n\n/* 3D transformations */\n\ntypedef struct {\n short u, v;\n} UVCoord;\n\ntypedef struct {\n short x, y, z;\n short pad;\n} Point3D;\n\ntypedef struct {\n short m00, m01, m02, x;\n short m10, m11, m...
825
21
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 31.01, "nodes": 624, "errors": 0, "source_hash": "cbc548d1ced3b3b3c94bc2b2611572169e57ebc30983f4ce65829927886a8af1", "categorized_nodes": 426}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,123
c
#include <host.h> #include <stdlib.h> #include <arpa/inet.h> #include <netdb.h> static int host__get_addr(char *s, struct sockaddr_in *dst, host_t *host) { struct addrinfo hints = {0}; struct addrinfo *info = NULL; hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CAN...
31.5
32
(translation_unit) "#include <host.h>\n\n#include <stdlib.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n\nstatic int host__get_addr(char *s, struct sockaddr_in *dst, host_t *host) {\n struct addrinfo hints = {0};\n struct addrinfo *info = NULL;\n hints.ai_family = AF_INET;\n hints.ai_socktype = SOCK_STREA...
337
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.5, "nodes": 223, "errors": 0, "source_hash": "ab543023584ce4a24cb21476d0c7786377e3fd27844cf859fb0f51840edd1131", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,124
c
// // TPJsCommandQueue.h // TPJsBridge // // Created by Tpphha on 2017/5/20. // Copyright © 2017年 Tpphha. All rights reserved. // #import <Foundation/Foundation.h> @class TPJsInvokedUrlCommand; @class TPJsService; @interface TPJsCommandQueue : NSObject - (instancetype)initWithService:(TPJsService *)servie; - (v...
25.64
14
(translation_unit) "//\n// TPJsCommandQueue.h\n// TPJsBridge\n//\n// Created by Tpphha on 2017/5/20.\n// Copyright © 2017年 Tpphha. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class TPJsInvokedUrlCommand;\n@class TPJsService;\n\n@interface TPJsCommandQueue : NSObject\n\n- (instancetype)initWithSe...
71
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.64, "nodes": 44, "errors": 0, "source_hash": "08296a9e3b05d98ecc4c6b68ec3e9102a8504b7e0978eb969fbd5618dc866afd", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
12,125
c
#import <Foundation/Foundation.h> #import "ASPObject.h" /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Do not edit the class manually. */ @protocol ASPExifData @end @interface ASPExifData : ASPObject @property(nonatomic) NSNu...
44.57
114
(translation_unit) "#import <Foundation/Foundation.h>\n#import "ASPObject.h"\n\n/**\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen\n * Do not edit the class manually.\n */\n\n\n\n@protocol ASPExifData\n@end\n\n@interface ASPExifData : ASP...
1,545
308
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 44.57, "nodes": 1228, "errors": 0, "source_hash": "e2df858078450150f08b689cdb87c6de9ba05a11810bd43966d57ab6cc5d9eaa", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impo...
12,126
c
#include <stdio.h> int main(void) { int inv1 = 100; //int inv2 = 100; float perc1 = 10; float perc2 = 5; float sum1 = 100, sum2 = 100; int i = 0; do { sum1 = sum1 + (inv1 * perc1) / 100; //base2 = base2 + (sum2 * perc2) / 100; sum2 = sum2 + (sum2 * perc2) / 100; ++i; //printf...
19.37
41
(translation_unit) "#include <stdio.h>\nint main(void)\n{\n\n int inv1 = 100; \n //int inv2 = 100;\n float perc1 = 10;\n float perc2 = 5;\n float sum1 = 100, sum2 = 100;\n int i = 0;\n \n do\n {\n sum1 = sum1 + (inv1 * perc1) / 100;\n //base2 = base2 + (sum2 * perc2) / 100;\n sum2 = sum2 + (s...
139
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 19.37, "nodes": 91, "errors": 0, "source_hash": "fac08de384617889aa4651d6bf04a95de416b2ca9135d5d37c7c48adda36bbdc", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,127
c
#pragma once #include <library/cpp/yt/misc/port.h> #include <library/cpp/yt/assert/assert.h> #include <library/cpp/ytalloc/api/ytalloc.h> #include <atomic> namespace NYT { //////////////////////////////////////////////////////////////////////////////// //! A technical base class for ref-counted objects and promi...
38.77
134
(translation_unit) "#pragma once\n\n#include <library/cpp/yt/misc/port.h>\n\n#include <library/cpp/yt/assert/assert.h>\n\n#include <library/cpp/ytalloc/api/ytalloc.h>\n\n#include <atomic>\n\nnamespace NYT {\n\n////////////////////////////////////////////////////////////////////////////////\n\n//! A technical base class...
644
35
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 38.77, "nodes": 399, "errors": 0, "source_hash": "8f3246253941473c327a6c24283ece31f9a4b4b3c2f9a10e4126b90624238778", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,128
c
#include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include "cmnalib/at_interface.h" #include "cmnalib/logger.h" #undef LOGGER_LEVEL #define LOGGER_LEVEL LOGGER_VERBOSE_INFO #define LINE_SEPARATOR "\n" s...
36
108
(translation_unit) "#include <stdlib.h>\n#include <errno.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n\n#include <stdio.h>\n\n#include "cmnalib/at_interface.h"\n#include "cmnalib/logger.h"\n\n#undef LOGGER_LEVEL\n#define LOGGER_LEVEL LOGGER_VERBOSE_INF...
979
2
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 36.0, "nodes": 564, "errors": 0, "source_hash": "3239838f958f4c0095263eca65ba6fe8b454394f7f4882bf6e62c404bc5a88a8", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,129
c
// This file contains global const that will be used by other files. #ifndef _GLOBALCONST_H_ #define _GLOBALCONST_H_ #define LOG_MODE (1) // flag for displaying runtime information #define EOF (-1) // END OF FILE #endif
35.67
6
(translation_unit) "// This file contains global const that will be used by other files.\n\n#ifndef _GLOBALCONST_H_\n#define _GLOBALCONST_H_\n\n#define LOG_MODE (1) // flag for displaying runtime information\n\n#define EOF (-1) // END OF FILE\n\n#endif" (comment) "// This file contains global const that will be used ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 35.67, "nodes": 15, "errors": 0, "source_hash": "0a009b99ec2c3e484c19975730ba3b1a23b6195c3f2ecf652e829217141b85bb", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _G...
12,130
c
#ifndef TOTHREAD_H #define TOTHREAD_H #include "logqueue.h" //#include "storethread.h" #include "logdao.h" #include "sexcept.h" #include <iostream> static LogQueue logqueue; class LogThread { public: LogThread(); virtual ~LogThread(); void start (void) throw (ThreadException); virtual void ru...
19.39
67
(ERROR) "#ifndef TOTHREAD_H\n#define TOTHREAD_H\n\n#include "logqueue.h"\n//#include "storethread.h"\n#include "logdao.h"\n#include "sexcept.h"\n#include <iostream>\n\nstatic LogQueue logqueue;\n\nclass LogThread\n{\npublic:\n LogThread();\n virtual ~LogThread();\n void start (void)\n throw (ThreadExcep...
406
19
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 19.39, "nodes": 242, "errors": 0, "source_hash": "1f81f29d2405fbe4e2feb859d6fad8ba0b4fc093b1c77c587c204c565d5c0f70", "categorized_nodes": 151}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TOTHREAD_H\n#defi...
12,131
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2008 Oracle. All rights reserved. */ #ifndef BTRFS_COMPRESSION_H #define BTRFS_COMPRESSION_H #include <linux/sizes.h> /* * We want to make sure that amount of RAM required to uncompress an extent is * reasonable, so we limit the total size in ram of a co...
36.74
115
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright (C) 2008 Oracle. All rights reserved.\n */\n\n#ifndef BTRFS_COMPRESSION_H\n#define BTRFS_COMPRESSION_H\n\n#include <linux/sizes.h>\n\n/*\n * We want to make sure that amount of RAM required to uncompress an extent is\n * reasonable, so we lim...
723
2
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 36.74, "nodes": 537, "errors": 0, "source_hash": "41493c3b2c65da5dc8459dd2fb18b1d89c1d95d2d22b374ce56600fc885a010d", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,132
c
/*****************************************************************-*-c-*-*\ * * * * ##### * Copyright (c) 2000 <NAME> * * ###### * http://staff.polito.it/giovanni.squillero/ * * ### \ * <EMAIL> ...
26.83
89
(translation_unit) "/*****************************************************************-*-c-*-*\\n* * *\n* ##### * Copyright (c) 2000 <NAME> *\n* ###### * http://staff.polito.it/giovanni.squillero/ *\n* #...
693
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 26.83, "nodes": 436, "errors": 0, "source_hash": "3b71192b97249a46c6ad597bb657e23b1aaccd0f100d2b37163f21d4b1ad165d", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,133
c
/**************************************************************************** ** ** Copyright (C) 2016 <NAME> ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the comme...
33.62
64
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2016 <NAME>\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of Qt Creator.\n**\n** Commercial License Usage\n** Licensees holding valid commercial Qt licenses may use this file in\...
290
13
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 33.62, "nodes": 158, "errors": 0, "source_hash": "e73d6dd8079bd35b9bfb25f0750b4624def5d45584182a1fdbd41c9376ad21eb", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,134
c
/** * @file llc_util.h * Header file for BL602 */ #ifndef __LLC_UTIL_H__ #define __LLC_UTIL_H__ enum llc_util_enc_state { LLC_ENC_DISABLED = 0, LLC_ENC_TX = 1, LLC_ENC_RX = 2, LLC_ENC_ENABLE = 3, LLC_ENC_TX_FLOW_OFF = 4, LLC_ENC_RX_FLOW_OFF = 8, LLC_ENC_FLOW_OFF = 12, LLC_ENC_REFRESH_PE...
20.72
18
(translation_unit) "/**\n* @file llc_util.h\n* Header file for BL602\n*/\n#ifndef __LLC_UTIL_H__\n#define __LLC_UTIL_H__\n\nenum llc_util_enc_state {\n LLC_ENC_DISABLED = 0,\n LLC_ENC_TX = 1,\n LLC_ENC_RX = 2,\n LLC_ENC_ENABLE = 3,\n LLC_ENC_TX_FLOW_OFF = 4,\n LLC_ENC_RX_FLOW_OFF = 8,\n LLC_ENC_FLO...
62
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.72, "nodes": 47, "errors": 0, "source_hash": "067deaa05519aac3eb85ed05c8aff0d6b08897c3761dd784a70a37995e88abc9", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,135
c
// // MyButton.h // CJRadioDemo // // Created by ciyouzen on 14-11-5. // Copyright (c) 2014年 dvlproad. All rights reserved. // #import <UIKit/UIKit.h> //参考:自定义UIButton http://blog.csdn.net/feisongfeiqin/article/details/50041003 typedef NS_ENUM(NSUInteger, MyButtonImagePosition) { MyButtonImagePositionNone, ...
25.14
21
(translation_unit) "//\n// MyButton.h\n// CJRadioDemo\n//\n// Created by ciyouzen on 14-11-5.\n// Copyright (c) 2014年 dvlproad. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n//参考:自定义UIButton http://blog.csdn.net/feisongfeiqin/article/details/50041003\ntypedef NS_ENUM(NSUInteger, MyButtonImagePosition) {\...
61
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.14, "nodes": 37, "errors": 0, "source_hash": "93f2022c8ae8790ea1b95c5d0a0b7bf84d163841830433ba21cce7124848bb76", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
12,136
c
#include "ldso.h" unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry) { ELF_RELOC *this_reloc; int symtab_index; //char *rel_tab; Elf32_Sym *sym_tab; char *str_tab; char *sym_name; char *sym_addr; char **reloc_addr; this_reloc = (ELF_RELOC *)tpnt->dynamic_i...
35.32
264
(translation_unit) "#include "ldso.h"\n\nunsigned long\n_dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry)\n{\n ELF_RELOC *this_reloc;\n int symtab_index;\n //char *rel_tab;\n Elf32_Sym *sym_tab;\n char *str_tab;\n char *sym_name;\n char *sym_addr;\n char **reloc_addr;\n\n this_rel...
2,336
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 35.32, "nodes": 1556, "errors": 0, "source_hash": "eeb3d712d89579bac138201eb7db9f76981c418465084711879ad4490e5e82fe", "categorized_nodes": 1044}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,137
c
void txl_frame_cfm(txdesc * txdesc); void txl_frame_dump(void); void txl_frame_evt(int dummy); txl_frame_desc_tag * txl_frame_get(int type, int len); void txl_frame_init(_Bool reset); void txl_frame_init_desc(txl_frame_desc_tag * frame, txl_buffer_tag * buffer, tx_hw_desc * hwdesc, txl_buffer_control * bufctrl); _Bool...
28.67
126
(translation_unit) "void txl_frame_cfm(txdesc * txdesc);\nvoid txl_frame_dump(void);\nvoid txl_frame_evt(int dummy);\ntxl_frame_desc_tag * txl_frame_get(int type, int len);\nvoid txl_frame_init(_Bool reset);\nvoid txl_frame_init_desc(txl_frame_desc_tag * frame, txl_buffer_tag * buffer, tx_hw_desc * hwdesc, txl_buffer_c...
982
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 28.67, "nodes": 687, "errors": 0, "source_hash": "4d0479b2d9180119fbae1775b699822ce9ce27301ff0c3f88e1518abe13cd039", "categorized_nodes": 437}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void tx...
12,138
c
#ifndef COMRAD_H #define COMRAD_H #include <QHash> #include <QSharedPointer> #include "qualification.h" class Comrad { public: Comrad(); void setQualification(QSharedPointer<Qualification> quali); private: //int m_id; // qualifications QHash <QString, QSharedPointer<Qualification> > m_qualifications; /...
20.73
22
(translation_unit) "#ifndef COMRAD_H\n#define COMRAD_H\n\n#include <QHash>\n#include <QSharedPointer>\n\n#include "qualification.h"\n\nclass Comrad\n{\npublic:\n Comrad();\n void setQualification(QSharedPointer<Qualification> quali);\nprivate:\n //int m_id;\n\n // qualifications\n QHash <QString, QSharedPointer<Qu...
82
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.73, "nodes": 49, "errors": 0, "source_hash": "80f7728c669abfb842bb5794b1dd3ece08fa0caf14ab45af76b7b2532a8c1b13", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,139
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" @class NSArray, NSString; @protocol IDETestableProvider <NSObject> @property(readonly) NSString *name; @property(readonly, copy) NSArray *testables; @property(r...
31.77
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "CDStructures.h"\n\n@class NSArray, NSString;\n\n@protocol IDETestableProvider <NSObject>\n@property(readonly) NSString *name;\n@property(readonly, copy)...
100
18
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.77, "nodes": 71, "errors": 0, "source_hash": "ffd3297dc6d6320a805b6e088adc3c60da5b6e5355874924c9bdb52caaef9ced", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,140
c
/* usage example: char buf[1024]; FILE *f; filename = find_file(buf, "input.txt",1024); f = fopen(filename,"r"); */ char *find_file(char *full_file_name, const char *env, const char *part_file_name, int nbuf);
30.86
7
(translation_unit) "/* usage example:\n char buf[1024];\n FILE *f;\n filename = find_file(buf, "input.txt",1024);\n f = fopen(filename,"r");\n*/ \nchar *find_file(char *full_file_name, const char *env, const char *part_file_name, int nbuf);\n\n" (comment) "/* usage example:\n char buf[1024];\n FILE *f;\n ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 30.86, "nodes": 25, "errors": 0, "source_hash": "411da21ccc3fd2be5347502fb73cbcb05edd83e3114cdc8ed6b3363be6380f7a", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char *find_...
12,141
c
#ifndef CLWL_cl_image_h #define CLWL_cl_image_h #include <iostream> #include "cl_mem.h" #include "cl_data.h" namespace CL{ template<int D = 2> class image{ private: //Dimensions size_t dim_[D]; //Device data CL::data data_; public: image(); i...
24.76
38
(translation_unit) "#ifndef CLWL_cl_image_h\n#define CLWL_cl_image_h\n\n#include <iostream>\n#include "cl_mem.h"\n#include "cl_data.h"\n\nnamespace CL{\n template<int D = 2>\n class image{\n private:\n //Dimensions\n size_t dim_[D];\n \n //Device data\n CL::data data_;\n ...
333
29
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.76, "nodes": 204, "errors": 0, "source_hash": "8b1c530890ce991be7c99341b7ba246ca394916e853ccbee71b7c4ffe6fbcabd", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,142
c
#ifndef LOWMC_128_128_20 #define LOWMC_128_128_20 #include <stdint.h> #include "mzd_additional.h" const mzd_local_t* lowmc_128_128_20_get_linear_layer(uint32_t r); const mzd_local_t* lowmc_128_128_20_get_round_key(uint32_t r); const mzd_local_t* lowmc_128_128_20_get_round_const(uint32_t r); const mzd_local_t* lowmc...
41.91
11
(translation_unit) "#ifndef LOWMC_128_128_20\n#define LOWMC_128_128_20\n\n#include <stdint.h>\n\n#include "mzd_additional.h"\n\n\nconst mzd_local_t* lowmc_128_128_20_get_linear_layer(uint32_t r);\nconst mzd_local_t* lowmc_128_128_20_get_round_key(uint32_t r);\nconst mzd_local_t* lowmc_128_128_20_get_round_const(uint32_...
86
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 41.91, "nodes": 57, "errors": 0, "source_hash": "697720ffdb17c18d24e79b34be59076cf5701cfe64adb4d14ecee15bb05545dc", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,143
c
// // FileDragView.h // FileMerge // // Created by Jakey on 2017/5/30. // Copyright © 2017年 Jakey. All rights reserved. // #import <Cocoa/Cocoa.h> typedef void (^DidDragEnd)(NSArray *result); @interface FileDragView : NSView<NSDraggingDestination> { DidDragEnd _didDragEnd; } -(void)didDragEndBlock:(DidDragEnd)...
21.4
15
(translation_unit) "//\n// FileDragView.h\n// FileMerge\n//\n// Created by Jakey on 2017/5/30.\n// Copyright © 2017年 Jakey. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\ntypedef void (^DidDragEnd)(NSArray *result);\n@interface FileDragView : NSView<NSDraggingDestination>\n{\n DidDragEnd _didDragEnd;\n}\n-...
70
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.4, "nodes": 43, "errors": 0, "source_hash": "678890cd95ff3e0382a3854121afe52ee3402ac15288a70f7429238bde401348", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Coco...
12,144
c
/** @file Copyright (C) 2016, The HermitCrabs Lab. All rights reserved. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http...
35.36
223
(translation_unit) "/** @file\n Copyright (C) 2016, The HermitCrabs Lab. All rights reserved.\n\n All rights reserved.\n\n This program and the accompanying materials\n are licensed and made available under the terms and conditions of the BSD License\n which accompanies this distribution. The full text of the lic...
933
13
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 35.36, "nodes": 550, "errors": 0, "source_hash": "8aa3bee759e050af6ee69e808002aaea054f8cb69c1ef50a4a5766dcd1f1b4cc", "categorized_nodes": 422}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,145
c
// // SimpleExtensions.h // SimpleExtensions // // Created by <NAME> on 6/6/18. // Copyright © 2018 Tap Light Software. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SimpleExtensions. FOUNDATION_EXPORT double SimpleExtensionsVersionNumber; //! Project version string for SimpleExt...
40.46
13
(translation_unit) "//\n// SimpleExtensions.h\n// SimpleExtensions\n//\n// Created by <NAME> on 6/6/18.\n// Copyright © 2018 Tap Light Software. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for SimpleExtensions.\nFOUNDATION_EXPORT double SimpleExtensionsVersionNumber;\n\n//! Pro...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.46, "nodes": 15, "errors": 0, "source_hash": "fabe5db46247ac8a1dc4488cf1a0a2e9fb556e106a26e1bef37d1837b171eeb7", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,146
c
/************************************************************************* 8080bw.h *************************************************************************/ #include "sound/discrete.h" #define CABINET_PORT_TAG "CAB" /*----------- defined in drivers/8080bw.c -----------*/ UINT8 polaris_get_cloud_pos(void);...
35.34
61
(translation_unit) "/*************************************************************************\n\n 8080bw.h\n\n*************************************************************************/\n\n#include "sound/discrete.h"\n\n\n#define CABINET_PORT_TAG "CAB"\n\n\n/*----------- defined in drivers/8080bw.c -----------*/\n\n...
421
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 35.34, "nodes": 233, "errors": 0, "source_hash": "a95c391a156bd9c07e12d09121e3c39a94459c3b5e2e56814fdc975c9655f8a9", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,147
c
/* Copyright (c) IBM Corporation 2000, 2018 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...
31.96
83
(translation_unit) "/*\nCopyright (c) IBM Corporation 2000, 2018\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\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or a...
486
9
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 31.96, "nodes": 305, "errors": 0, "source_hash": "5018a0157b8da2f23ec43c202daf00430fc73e23047e15be33f3b49c417714bf", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
12,148
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
37.57
105
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\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...
390
8
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 37.57, "nodes": 229, "errors": 0, "source_hash": "75c74b664d4821111b8fed162e0314957b372240689c7f1dca8d667b57413f7f", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,149
c
#pragma once #include <numeric> #include <stdexcept> #include <vector> #include <cpputil/Conversion.h> namespace rtp_plus_plus { namespace rto { template <typename T, typename R> class PredictorBase { public: virtual ~PredictorBase() { VLOG(15) << "History: " << ::toString(m_vHistory); VLOG(15) << "Predic...
26.17
83
(translation_unit) "#pragma once\n#include <numeric>\n#include <stdexcept>\n#include <vector>\n#include <cpputil/Conversion.h>\n\nnamespace rtp_plus_plus\n{\nnamespace rto\n{\n\ntemplate <typename T, typename R>\nclass PredictorBase\n{\npublic:\n virtual ~PredictorBase()\n {\n VLOG(15) << "History: " << ::toString...
793
36
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 26.17, "nodes": 462, "errors": 0, "source_hash": "a952eebb1cbfdaba7ed1e3b074f16ed6ac4a7f4691b6767eb991f65712b70c73", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,150
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SFCard.h" #import "CRCard.h" @class NSArray, NSSet, NSString; @interface SFCard (CRCard) <CRCard> + (id)_interactionsByIntentDataHashes; - (id)_interactionDataKey; - (id)under...
37.39
28
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "SFCard.h"\n\n#import "CRCard.h"\n\n@class NSArray, NSSet, NSString;\n\n@interface SFCard (CRCard) <CRCard>\n+ (id)_interactionsByIntentDataHashes;\n- (i...
298
33
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.39, "nodes": 196, "errors": 0, "source_hash": "394854a1dc14049c4c2a5decbbed14f265997bd6e6fddfa85dead2d1a2a7bb53", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,151
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef _DNX_DATA_INTERNAL_STG_H_ #define _DNX_DATA_INTERNAL_STG_H_ #include <soc/dnx/dnx_data/auto_generated/dn...
19.65
51
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n#ifndef _DNX_DATA_INTERNAL_STG_H_\n\n#define _DNX_DATA_INTERNAL_STG_H_\n\n#include <soc/dnx...
104
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 19.65, "nodes": 80, "errors": 0, "source_hash": "47bce481ef5ffdf837947ed08ac1349d3b85f663e58f2b3ddd941d480deac206", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,152
c
/* * * Copyright 2011, 2012 by the CALATK development team * * 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 a...
29.76
206
(translation_unit) "/*\n*\n* Copyright 2011, 2012 by the CALATK development team\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....
539
23
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 29.76, "nodes": 370, "errors": 0, "source_hash": "78af796a76e8beb598354b61ed0843ac063e4881ce8ecd32536fad4750b23d7c", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,153
c
#ifndef SCMIMPORTWINDOW_H #define SCMIMPORTWINDOW_H #include "DWindow.h" #include <Button.h> #include <CheckBox.h> #include <Menu.h> #include <MenuField.h> #include <MenuItem.h> #include <StringView.h> #include <TextView.h> #include "AutoTextControl.h" #include "SCMImporter.h" class SCMProjectImporter; class SCMIm...
19.98
44
(translation_unit) "#ifndef SCMIMPORTWINDOW_H\n#define SCMIMPORTWINDOW_H\n\n#include "DWindow.h"\n\n#include <Button.h>\n#include <CheckBox.h>\n#include <Menu.h>\n#include <MenuField.h>\n#include <MenuItem.h>\n#include <StringView.h>\n#include <TextView.h>\n\n#include "AutoTextControl.h"\n#include "SCMImporter.h"\n\ncl...
200
1
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 19.98, "nodes": 145, "errors": 0, "source_hash": "b9716fc149059c7065b2ada9d67e861edce144377e98180027e434f07f0aedd3", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,154
c
// // ZJNContent.h // 百思不得姐 // // Created by 曾嘉年 on 16/6/2. // Copyright © 2016年 zengjianian. All rights reserved. // #import <Foundation/Foundation.h> @class ZJNComment; @interface ZJNContent : NSObject /***** 服务器返回的帖子内容 *****/ /** 帖子id */ @property(nonatomic, copy) NSString *ID; /** 头像 */ @property(nonatomic, c...
29.64
78
(translation_unit) "//\n// ZJNContent.h\n// 百思不得姐\n//\n// Created by 曾嘉年 on 16/6/2.\n// Copyright © 2016年 zengjianian. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class ZJNComment;\n@interface ZJNContent : NSObject\n/***** 服务器返回的帖子内容 *****/\n\n/** 帖子id */\n@property(nonatomic, copy) NSString *ID...
632
132
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 29.64, "nodes": 442, "errors": 0, "source_hash": "8dce2c4ab0a29e108642c87e7335369f79e93a2f91c617e86599b7906598edd6", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/Founda...
12,155
c
/*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 <NAME> All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is distributed WITHOUT ANY ...
29.56
52
(translation_unit) "/*========================================================================= \n \n Program: GDCM (Grassroots DICOM). A DICOM library \n \n Copyright (c) 2006-2011 <NAME> \n All rights reserved. \n See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. \n \n This software...
224
13
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 29.56, "nodes": 121, "errors": 0, "source_hash": "5122f644d6e8cd24039e42e9ac2d5567ef0a6313c8472aed83bf56d0871e0e7c", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,156
c
/* mrwlock.h declares an interface to a multiple-reader, multiple-writer lock. * This lock was designed to control access to an index, and should be modified * as access policies change. * * Essentially, the lock allows multiple-readers to be active, * or multiple-writers, but not both. In addition, starvation is...
35.28
43
(translation_unit) "/* mrwlock.h declares an interface to a multiple-reader, multiple-writer lock.\n * This lock was designed to control access to an index, and should be modified\n * as access policies change.\n *\n * Essentially, the lock allows multiple-readers to be active,\n * or multiple-writers, but not both. I...
171
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 35.28, "nodes": 131, "errors": 0, "source_hash": "ebc75614c52f076d70618c9cadd57b1e358dacf491505e5e8d6cdd419712d07f", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,157
c
/* * vaapidisplay.h - abstract for VaContext * * Copyright (C) 2014 Intel Corporation * Author: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either v...
32.31
58
(translation_unit) "/*\n * vaapidisplay.h - abstract for VaContext\n *\n * Copyright (C) 2014 Intel Corporation\n * Author: <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public License\n * as published by the Free S...
249
7
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 32.31, "nodes": 135, "errors": 0, "source_hash": "c81a2199aca113d52c27353aef3119f387e76e2ed2f62e0614b0bd84c4de672d", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,158
c
/****************************************************************************** * * Copyright (C) 1998-1999 Microsoft Corporation. All Rights reserved. * * File: ResourceManager.h * * Contents: Resource manager interface * *****************************************************************************/ ...
31.95
64
(translation_unit) "/****************************************************************************** \n * \n * Copyright (C) 1998-1999 Microsoft Corporation. All Rights reserved. \n * \n * File: ResourceManager.h \n * \n * Contents: Resource manager interface \n * \n ***************************************************...
358
22
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 31.95, "nodes": 216, "errors": 0, "source_hash": "a81459d86e31037580360a6ca0a8cc43ec8d71a098f800bf76d895b3830dec4e", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,159
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSSecureCoding.h" @class NSArray, NSString; @interface NSTextAlternatives : NSObject <NSSecureCoding> { NSString *_primaryString; NSArray *_altern...
37.89
37
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSSecureCoding.h"\n\n@class NSArray, NSString;\n\n@interface NSTextAlternatives : NSObject <NSSecureCoding>\n{\n NSString *_p...
434
33
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.89, "nodes": 268, "errors": 0, "source_hash": "c2b5976d28743e92488d41e24912f62fa205f19235774d94d94196ce713b7197", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,160
c
/****************************************************************************** * Copyright (C) 2014 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************************...
35.31
142
(translation_unit) "/******************************************************************************\n* Copyright (C) 2014 - 2020 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/\n\n/****************************************...
353
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 35.31, "nodes": 238, "errors": 0, "source_hash": "a8dbdf2c2b517ff3da0b51ebe0ebaeea219f9c42f176d828b735d7724dafda59", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,161
c
// // // Howie 2017. // // // /********************************************************* ✞ 工具类作用:计算文件的大小 *********************************************************/ #import <Foundation/Foundation.h> @interface NSString (XHHFileSize) -(unsigned long long)fileSize; @end
15.47
17
(translation_unit) "//\n//\n// Howie 2017.\n//\n//\n//\n/*********************************************************\n \n ✞ 工具类作用:计算文件的大小\n \n *********************************************************/\n\n\n\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (XHHFileSize)\n-(unsigned long long)fileSize;\n@en...
38
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.47, "nodes": 22, "errors": 0, "source_hash": "1232592866533eb9047c2253e0f3d4ba5322c56600e7e8f98b00cb0bdab131de", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion.h>\n...
12,162
c
struct nested_struct { uint64_t member; struct nested_struct* another_struct; }; struct nested_struct* my_struct; uint64_t modify_member(struct nested_struct* parameter) { uint64_t previous; previous = parameter->another_struct->member; parameter->another_struct->member = 321; return previous; } int m...
27.75
20
(translation_unit) "struct nested_struct {\n uint64_t member;\n struct nested_struct* another_struct;\n};\n\nstruct nested_struct* my_struct;\n\nuint64_t modify_member(struct nested_struct* parameter) {\n uint64_t previous;\n\n previous = parameter->another_struct->member;\n\n parameter->another_struct->member = 3...
171
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.75, "nodes": 116, "errors": 0, "source_hash": "782ceb2c3633ebbf1ea967eb566185fb9c4aaa29264868bf665e49f268638b07", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "stru...
12,163
c
#ifndef __BRIDGE_H_ #define __BRIDGE_H_ #include <stdint.h> typedef struct x86emu_s x86emu_t; typedef struct bridge_s bridge_t; typedef struct box86context_s box86context_t; typedef void (*wrapper_t)(x86emu_t* emu, uintptr_t fnc); bridge_t *NewBridge(); void FreeBridge(bridge_t** bridge); uintptr_t AddBridge(bridge_...
39.25
20
(translation_unit) "#ifndef __BRIDGE_H_\n#define __BRIDGE_H_\n#include <stdint.h>\n\ntypedef struct x86emu_s x86emu_t;\ntypedef struct bridge_s bridge_t;\ntypedef struct box86context_s box86context_t;\ntypedef void (*wrapper_t)(x86emu_t* emu, uintptr_t fnc);\n\nbridge_t *NewBridge();\nvoid FreeBridge(bridge_t** bridge)...
268
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.25, "nodes": 209, "errors": 0, "source_hash": "324492f9754083ec8ae1fcd0906053e8309c1956c6ce788c9de88e5c72424d46", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,164
c
/* * This file is part of the coreboot project. * * Copyright 2014 The Chromium OS Authors. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License...
29.96
75
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright 2014 The Chromium OS Authors. All rights reserved.\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 Foundatio...
505
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 29.96, "nodes": 312, "errors": 0, "source_hash": "f927a9d1a543a6c54b5d1b7e42f5de848e7e53b26094b995ac0581e955040451", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,165
c
/** * @brief: uart_irq.c * @author: NXP Semiconductors * @author: <NAME> * @date: 2020/10/04 */ #include <LPC17xx.h> #include "uart_irq.h" #include "uart_polling.h" #ifdef DEBUG_0 #include "printf.h" #endif uint8_t g_buffer[]= "You Typed a Q\n\r"; uint8_t *gp_buffer = g_buffer; uint8_t g_send_char = 0; uint8_t...
33.33
209
(translation_unit) "/**\n * @brief: uart_irq.c \n * @author: NXP Semiconductors\n * @author: <NAME>\n * @date: 2020/10/04\n */\n\n#include <LPC17xx.h>\n#include "uart_irq.h"\n#include "uart_polling.h"\n#ifdef DEBUG_0\n#include "printf.h"\n#endif\n\n\nuint8_t g_buffer[]= "You Typed a Q\n\r";\nuint8_t *gp_buffer = g_buff...
738
2
{"language": "c", "success": true, "metadata": {"lines": 209, "avg_line_length": 33.33, "nodes": 426, "errors": 0, "source_hash": "d8e451e8ed9371c9dd936dc09aa9fd7adeab1064e222576cb2cf91ce3325a534", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,166
c
/* * This file is part of the Xilinx DMA IP Core driver for Linux * * Copyright (c) 2017-2019, Xilinx, Inc. * All rights reserved. * * This source code is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the...
28.96
121
(translation_unit) "/*\n * This file is part of the Xilinx DMA IP Core driver for Linux\n *\n * Copyright (c) 2017-2019, Xilinx, Inc.\n * All rights reserved.\n *\n * This source code is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * ve...
818
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 28.96, "nodes": 509, "errors": 0, "source_hash": "c4528a509fe6bae8599340ce92b88846092ca30d7b623ca8126dd09c9b23b98b", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,167
c
#include <core/Runtime.h> #include <dataTypes/Value.h> int runtime_i32_const(Stack* stack, int32_t value) { stack->entries->push(stack->entries, new_i32Value(value)); return 0; }
25.71
7
(translation_unit) "#include <core/Runtime.h>\n\n#include <dataTypes/Value.h>\n\nint runtime_i32_const(Stack* stack, int32_t value)\n{\n stack->entries->push(stack->entries, new_i32Value(value));\n return 0;\n}" (preproc_include) "#include <core/Runtime.h>\n" (#include) "#include" (system_lib_string) "<...
54
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.71, "nodes": 35, "errors": 0, "source_hash": "82d8cae99e12d1a1b11ba73c0212f6f83bf37d810b926201f3a9466db2b9fced", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,168
c
#pragma once #include <exception> #include <string> #ifdef __ANDROID__ #include <android/log.h> #define JACONNECT_INFO(...) {__android_log_print(ANDROID_LOG_INFO, "videoconnect", __VA_ARGS__);} #endif class DynamicLibrary { public: DynamicLibrary(const char *fileName); ~DynamicLibrary(); void *getFunction...
25.04
26
(translation_unit) "#pragma once\n\n#include <exception>\n#include <string>\n#ifdef __ANDROID__\n#include <android/log.h>\n#define JACONNECT_INFO(...) {__android_log_print(ANDROID_LOG_INFO, "videoconnect", __VA_ARGS__);}\n#endif\nclass DynamicLibrary\n{\npublic:\n DynamicLibrary(const char *fileName);\n ~DynamicL...
172
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.04, "nodes": 98, "errors": 0, "source_hash": "08d33cee119bd1d2ad124a8100921d5ca6f7ef321c54c549dd0c4733030d3ddb", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,169
c
#pragma once #include "../InputManager/InputManager.h" #include "../Input/Input.h" namespace TacosEngine { class InputManagerSFML : public InputManager { public: InputManagerSFML(); ~InputManagerSFML() override; void setProcessInput(Input &input) override; }; }
20.77
13
(translation_unit) "#pragma once\n\n#include "../InputManager/InputManager.h"\n#include "../Input/Input.h"\n\nnamespace TacosEngine\n{\n class InputManagerSFML : public InputManager\n {\n public:\n InputManagerSFML();\n ~InputManagerSFML() override;\n\n void setProcessInput(Input &input) override;\n };\n}...
70
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.77, "nodes": 36, "errors": 0, "source_hash": "a25a9abc1c396803f1a1d9a5f4f1f23a8dada298a1b61ff1e14923b3eb3726a5", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,170
c
/* * This program finds the number of zeros in an array that contains only * zeros and ones. The array is such that all the ones occur before all * the zeros in the array * TODO:CODE * TODO:DOC * TODO:TESTS */ #include<stdio.h> #include<string.h> #include<assert.h> /* * This funcion finds the number of zeros ...
32.91
128
(translation_unit) "/*\n * This program finds the number of zeros in an array that contains only\n * zeros and ones. The array is such that all the ones occur before all\n * the zeros in the array\n * TODO:CODE\n * TODO:DOC\n * TODO:TESTS\n */\n\n#include<stdio.h>\n#include<string.h>\n#include<assert.h>\n\n/*\n * This ...
943
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 32.91, "nodes": 543, "errors": 0, "source_hash": "cd9fe27de2e5fb9225c6185b725e6e9a77ff3e17a0bddefc3746e7aa61d3f850", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,171
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* tokenizer.c :+: :+: :+: ...
27.14
119
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* tokenizer.c ...
1,107
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 27.14, "nodes": 690, "errors": 0, "source_hash": "68f81529a2153eddbf910dbd048710d27c875932b99b6bbd6d26bca91e080ac5", "categorized_nodes": 501}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,172
c
/* * Copyright 2012 The Luvit Authors. 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 * * Unless requir...
35.3
154
(translation_unit) "/*\n * Copyright 2012 The Luvit Authors. 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.org/licenses/LICEN...
1,786
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 35.3, "nodes": 1081, "errors": 0, "source_hash": "f44c270dd4f5e719d61d2ff8268771678561de259f11a1863873460343883dcd", "categorized_nodes": 750}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,173
c
/* * Copyright (c) 2018, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include "platform/include/tfm_platform_system.h" #include "cmsis.h" void tfm_platform_hal_system_reset(void) { /* Reset the system */ NVIC_SystemReset(); }
20.23
13
(translation_unit) "/*\n * Copyright (c) 2018, Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n */\n\n#include "platform/include/tfm_platform_system.h"\n#include "cmsis.h"\n\nvoid tfm_platform_hal_system_reset(void)\n{\n /* Reset the system */\n NVIC_SystemReset();\n}\n\n" (...
34
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.23, "nodes": 16, "errors": 0, "source_hash": "a22fd56f71baa445a0411072d5b10170d047dcc3e526fdf532a0a6d3c9008b67", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,174
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <MetalTools/MTLToolsDepthStencilState.h> @interface MTLTelemetryDepthStencilState : MTLToolsDepthStencilState { } - (id)initWithBaseDepthStencilState:(id)arg1 device:(id)arg2 de...
30
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <MetalTools/MTLToolsDepthStencilState.h>\n\n@interface MTLTelemetryDepthStencilState : MTLToolsDepthStencilState\n{\n}\n\n- (id)initWithBaseDepthStencilS...
54
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.0, "nodes": 29, "errors": 0, "source_hash": "e8964be164743bf3f0aa9937bd4decd27b5e04e14cffd6d57805ddb68848f804", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <M...
12,175
c
#pragma once #include "DllSwitch.h" #include "MyClass.h" #include <memory> class SafeFactory { public: // Note that this function will not be not part of the DLL, so no std::unique_ptr // crosses a library boundary! It is going to be built in the client's translation // units, therefore it uses t...
28.64
25
(translation_unit) "#pragma once \n \n#include "DllSwitch.h" \n#include "MyClass.h" \n \n#include <memory> \n \nclass SafeFactory \n{ \npublic: \n // Note that this function will not be not part of the DLL, so no std::unique_ptr \n // crosses a library boundary! It is going to be built in the client's translation \...
97
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.64, "nodes": 48, "errors": 0, "source_hash": "d0f0f0c20568b0436920a0dc87fbcb199273662268bce6332641d3516c8cf875", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,176
c
#pragma once #include <vector> #include <fstream> #include <iostream> #include <string> #include <unordered_map> #include <Eigen/Dense> #include "json/json.h" using namespace Eigen; class G2pseq { private: std::vector<std::string> graphemes; std::vector<std::string> phonemes; std::unordered_map<std::string, size_t...
30.68
44
(translation_unit) "#pragma once\n#include <vector>\n#include <fstream>\n#include <iostream>\n#include <string>\n#include <unordered_map>\n#include <Eigen/Dense>\n#include "json/json.h"\n\nusing namespace Eigen;\n\nclass G2pseq {\nprivate:\n std::vector<std::string> graphemes;\n std::vector<std::string> phonemes;\n std...
544
36
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 30.68, "nodes": 345, "errors": 0, "source_hash": "e51770129c03621ac9c74ecaa0a58c4e89618dec101e787ecbe4629803b4f778", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,177
c
#include <stdio.h> #include "so_test.h" void test_a() { char* str= "this is in test_a..."; printf("%s\n",str); }
16.29
7
(translation_unit) "#include <stdio.h>\n#include "so_test.h"\n\nvoid test_a()\n{\n char* str= "this is in test_a...";\n printf("%s\n",str);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "so_test.h"\n" (#include) "#i...
46
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 16.29, "nodes": 25, "errors": 0, "source_hash": "5b6966286fd89d265a22409448f1c0b1a59c50b74b506137e69cc46c8032aada", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,178
c
/* * yase - Yet Another Sieve of Eratosthenes * wheel.c: wheel factorization tables * * Copyright (c) 2015 <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...
30.65
159
(translation_unit) "/*\n * yase - Yet Another Sieve of Eratosthenes\n * wheel.c: wheel factorization tables\n *\n * Copyright (c) 2015 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the ...
1,219
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 30.65, "nodes": 714, "errors": 0, "source_hash": "aed59948018495b25903faf2b841a3635376e084213946317402a9ffddbcc5b7", "categorized_nodes": 561}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,179
c
/* Copyright (C) 2001 Free Software Foundation, Inc. */ /* { dg-do compile } */ /* { dg-options "-std=c99" } */ /* This tests universal character sequences. <NAME>, 22 May 2001. <NAME>, 3 Apr 2002. */ #include <limits.h> #define unsigned +0 #define int +0 #define char +1 #def...
34.4
53
(translation_unit) "/* Copyright (C) 2001 Free Software Foundation, Inc. */\n\n/* { dg-do compile } */\n/* { dg-options "-std=c99" } */\n\n/* This tests universal character sequences.\n\n <NAME>, 22 May 2001.\n <NAME>, 3 Apr 2002. */\n\n#include <limits.h>\n\n#define unsigned +0\n#define int +0...
269
2
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 34.4, "nodes": 214, "errors": 0, "source_hash": "758cbc58b70720eb4ead7088602e75a917097715872d9231edd9b772ff0cff42", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,180
c
#include <stdio.h> #include <stdlib.h> #define max(a,b) a>b?a:b #define min(a,b) a<b?a:b int n; int M(int l,int r,int *a){ if(l==r)return a[r]%n; return ((a[r]%n)*M(l,r-1,a))%n; } int N(int l,int r,int *a){ int i,k=0; for(i=l;i<=r;i++){ k+=a[i]; } return k%n; } int H(int l,int r,int ...
18.84
32
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#define max(a,b) a>b?a:b\n#define min(a,b) a<b?a:b\n\nint n;\n\nint M(int l,int r,int *a){\n if(l==r)return a[r]%n;\n return ((a[r]%n)*M(l,r-1,a))%n;\n}\n\nint N(int l,int r,int *a){\n int i,k=0;\n for(i=l;i<=r;i++){\n k+=a[i];\n }\n ...
434
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.84, "nodes": 265, "errors": 0, "source_hash": "0a50896dba89d5be5dbe33cfce3ddbfcf72f620684686aeb61d1124f309597a5", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,181
c
#pragma once #include "CoreMinimal.h" #include "Objective.h" #include "ResourceBasedObjective.generated.h" UCLASS(Abstract, Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent)) class UResourceBasedObjective : public UObjective { GENERATED_BODY() public: UResourceBasedObjective(); };
29.9
10
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "Objective.h"\n#include "ResourceBasedObjective.generated.h"\n\nUCLASS(Abstract, Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))\nclass UResourceBasedObjective : public UObjective {\n GENERATED_BODY()\npublic:\n UResourceBa...
71
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.9, "nodes": 38, "errors": 0, "source_hash": "8dc07275209125846dcc180804de8616fd692a4e0c29e72632029f284f43c9dc", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,182
c
#ifndef JLNODE_ADDON_ARRAYS_H #define JLNODE_ADDON_ARRAYS_H #include <napi.h> #include "utils.h" extern "C" { napi_status create_external_arraybuffer(napi_env env, void *data, size_t byte_length, napi_value *ret); } #endif //JLNODE_ADDON_ARRAYS_H
29.88
8
(translation_unit) "#ifndef JLNODE_ADDON_ARRAYS_H\n#define JLNODE_ADDON_ARRAYS_H\n\n#include <napi.h>\n#include "utils.h"\n\nextern "C" {\n\nnapi_status create_external_arraybuffer(napi_env env, void *data, size_t byte_length, napi_value *ret);\n\n}\n\n#endif //JLNODE_ADDON_ARRAYS_H\n" (preproc_ifdef) "#ifndef JLNODE...
54
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.88, "nodes": 37, "errors": 0, "source_hash": "7fc22b45b0baaeb13e413fa4ffd40b3d6690683de25c78b291a2b0c9f468ad0d", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef J...
12,183
c
// porres 2018 #include "m_pd.h" #include <string.h> typedef struct _ctlout{ t_object x_ob; t_float x_channel; t_float x_n; }t_ctlout; static t_class *ctlout_class; static void ctlout_float(t_ctlout *x, t_float f){ if(f >= 0 && f <= 127){ t_int channel = (int)x->x_channel; if(ch...
30.16
50
(translation_unit) "// porres 2018\n\n#include "m_pd.h"\n#include <string.h>\n\ntypedef struct _ctlout{\n t_object x_ob;\n t_float x_channel;\n t_float x_n;\n}t_ctlout;\n\nstatic t_class *ctlout_class;\n\nstatic void ctlout_float(t_ctlout *x, t_float f){\n if(f >= 0 && f <= 127){\n t_int channel...
551
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 30.16, "nodes": 337, "errors": 0, "source_hash": "50a0c2d7b000f248a325fd44add95dc0e9609305e42194eb7c9b75398ce031ed", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,184
c
/* * FB driver for the ILI9320 LCD Controller * * Copyright (C) 2013 <NAME> * * 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 option) any l...
30.71
223
(translation_unit) "/*\n * FB driver for the ILI9320 LCD Controller\n *\n * Copyright (C) 2013 <NAME>\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 the License, o...
1,878
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 30.71, "nodes": 1055, "errors": 0, "source_hash": "e1b8d5c7dbf47346b77ad3cec58db1004044eb648b6b54e6449004f651310a0a", "categorized_nodes": 812}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,185
c
#include<stdio.h> #include<stdlib.h> int a[100],size=0; int builttree(int i) { char ch,temp; if(i!=-1) { int item; a[i]=item; printf("Whether node I requires left subtree?(y/n)\n"); scanf("%c",&ch); printf("Enter the item\n"); scanf("%d",&item); if(ch=='y') { builttree(2*i+1); size++; } e...
13.93
122
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\nint a[100],size=0;\nint builttree(int i)\n{ \n char ch,temp;\n if(i!=-1)\n {\n int item;\n a[i]=item;\n printf("Whether node I requires left subtree?(y/n)\n");\n scanf("%c",&ch);\n printf("Enter the item\n");\n scanf("%d",&item);\n if(ch=='y')\n {\n ...
986
4
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 13.93, "nodes": 567, "errors": 0, "source_hash": "46a7fa151ee3330186ea37169cb28f8b8e93c892d080119f7321081e636a8af8", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,186
c
#include "../../src/core/model/couchitemlist.h"
47
1
(translation_unit) "#include "../../src/core/model/couchitemlist.h"\n" (preproc_include) "#include "../../src/core/model/couchitemlist.h"\n" (#include) "#include" (string_literal) ""../../src/core/model/couchitemlist.h"" (") """ (string_content) "../../src/core/model/couchitemlist.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 47.0, "nodes": 3, "errors": 0, "source_hash": "1cc494cdec24e2081028d94b60c4bab25dec7c29b43ef605f92179d942976929", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
12,187
c
#include <SFML/Graphics/Shape.hpp> #include <ecm.h> using namespace std; class ShapeComponent : public Component { protected: std::shared_ptr<sf::Shape> _shape; public: ShapeComponent() = delete; explicit ShapeComponent(Entity* p); void Update(double dt) override; void Render() override; sf::Shape& getShape()...
24.88
17
(translation_unit) "#include <SFML/Graphics/Shape.hpp>\n#include <ecm.h>\n\nusing namespace std;\n\nclass ShapeComponent : public Component {\nprotected:\n std::shared_ptr<sf::Shape> _shape;\npublic:\n ShapeComponent() = delete;\n explicit ShapeComponent(Entity* p);\n\n void Update(double dt) override;\n void Render() ...
159
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.88, "nodes": 94, "errors": 0, "source_hash": "8cadbc5a0020377597c4ae24fb2f3c84558ec3e38879b7347eef4f3e3f686a73", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,188
c
#include <alsa/asoundlib.h> #include "../../lib/utils.h" #include "../../lib/linux-utils.h" #define SAMPLE_MAX 32767 #define SAMPLE_MIN (-32768) void mixSounds(int16_t* dst, int16_t* src, int32_t numFrames) { for (int32_t i = 0; i < numFrames * 2; ++i) { int32_t sample = dst[i] + src[i]; if (sampl...
31.33
78
(translation_unit) "#include <alsa/asoundlib.h>\n#include "../../lib/utils.h"\n#include "../../lib/linux-utils.h"\n\n#define SAMPLE_MAX 32767\n#define SAMPLE_MIN (-32768)\n\nvoid mixSounds(int16_t* dst, int16_t* src, int32_t numFrames) {\n for (int32_t i = 0; i < numFrames * 2; ++i) {\n int32_t sample = dst[i...
687
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 31.33, "nodes": 376, "errors": 0, "source_hash": "903d36389cbad3940a0fef23b404b7d24a0e2c498e97efc3f58a72b213f050f5", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,189
c
#include <default.h> #include <minimize.h> #include <network.h> #include <ran2.h> #include <simAnnealing.h> #include <time.h> long idum = -2; //struct to be fed to the adam minimizer typedef struct { int nX; double *x; multilayerD *net; } minim_par; // specified the potential to be used #include <harmonic_poten...
29.92
182
(translation_unit) "#include <default.h>\n#include <minimize.h>\n#include <network.h>\n#include <ran2.h>\n#include <simAnnealing.h>\n#include <time.h>\nlong idum = -2;\n\n//struct to be fed to the adam minimizer\ntypedef struct\n{\n int nX;\n double *x;\n multilayerD *net;\n} minim_par;\n\n// specified the potential...
1,810
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.92, "nodes": 1227, "errors": 0, "source_hash": "579fc5362411349ca2a348df64aa537fc81367d8664718723562ac7432ef4bc5", "categorized_nodes": 812}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,190
c
#include "bst.h" struct BST* insert(struct BST* root, struct client* person) { if (root == NULL) { struct BST* node = (struct BST*)malloc(sizeof(struct BST)); if (node == NULL) { printf("BAD MALLOC\n"); exit(FAILURE); } node->left = node->right = NULL; node->key.id = person->id; n...
22.39
106
(translation_unit) "#include "bst.h"\n\nstruct BST* insert(struct BST* root, struct client* person) {\n if (root == NULL) {\n struct BST* node = (struct BST*)malloc(sizeof(struct BST));\n if (node == NULL) {\n printf("BAD MALLOC\n");\n exit(FAILURE);\n }\n node->left = node->right = NULL;\n no...
1,069
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 22.39, "nodes": 641, "errors": 0, "source_hash": "59ccb1a22016e8910d41ef685b890bbbc6892c3cc54a053a568c6a68b9dd8a01", "categorized_nodes": 481}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,191
c
#include <stdio.h> void dfs(i, j); void sort(); char map[25][26]; int m; int count = 0; int count2[313] = { 0, }; int main() { scanf("%d", &m); for (int i = 0; i < m; i++) { scanf("%s", &map[i]); } for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { if (map[i][j] == '1') { dfs(i, j); ...
12.86
73
(translation_unit) "#include <stdio.h>\n\nvoid dfs(i, j);\nvoid sort();\n\nchar map[25][26];\nint m;\nint count = 0;\nint count2[313] = { 0, };\n\nint main()\n{\n scanf("%d", &m);\n\n for (int i = 0; i < m; i++)\n {\n scanf("%s", &map[i]);\n }\n\n for (int i = 0; i < m; i++)\n {\n for (int j = 0; j < m; j++)\n {\n ...
629
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 12.86, "nodes": 374, "errors": 0, "source_hash": "cc56c9f713e64c721dd649e4284372b26dc05fc390c4a47f8a4d14964537c9a3", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,192
c
/************************************************* CSCI-241 -Assignment 8- Spring 2017 Programmer: <NAME> Z-ID: z1818810 Section: 4 TA: <NAME> Date Due: 4/25/2017 Purpose: Contains template functions that read and manipulate data. *************************************************/ #ifndef SORTS_H #define...
22.24
135
(translation_unit) "/************************************************* \nCSCI-241 -Assignment 8- Spring 2017 \n \nProgrammer: <NAME> \nZ-ID: z1818810 \nSection: 4 \nTA: <NAME> \nDate Due: 4/25/2017 \n \nPurpose: Contains template functions that read and \nmanipulate data. \n*********************************************...
689
42
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 22.24, "nodes": 420, "errors": 0, "source_hash": "57838d722bc5d5fa4b4894fe551c592cce5a20ce59af1770fead0a853e5b98ac", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,193
c
#if !defined(_PETSCFPIMPL_H) #define _PETSCFPIMPL_H #include <petscviewertypes.h> #include <petscsys.h> /* Function pointer table that maps from function pointers to their string representation Does not use the PetscFunctionBegin/Return() because these routines are called within those macros */ typedef struct...
34.11
109
(translation_unit) "#if !defined(_PETSCFPIMPL_H)\n#define _PETSCFPIMPL_H\n#include <petscviewertypes.h>\n#include <petscsys.h>\n/*\n Function pointer table that maps from function pointers to their string representation\n\n Does not use the PetscFunctionBegin/Return() because these routines are called within thos...
1,059
5
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 34.11, "nodes": 653, "errors": 0, "source_hash": "edde2508ad042912d265b185b38117046167b8a6db46755a4e69b329487f3545", "categorized_nodes": 484}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
12,194
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 copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
35.6
58
(translation_unit) "// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. The ASF licenses this file\n// to you under the Apache License, Version 2.0 (th...
322
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 35.6, "nodes": 177, "errors": 0, "source_hash": "e92f871dd4f3a760285d9e7bd26aa24db070d96ce7b0ee388849c1f21e1f7bab", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,195
c
// // AIRBDClassroomTeacher4iPadViewController.h // StandardClassroomForTeachers // // Created by 君渡 on 2021/12/13. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AIRBDClassroomTeacher4iPadViewController : UIViewController -(instancetype) initWithUserID:(NSString*)userID userNick:(NSString*)userNi...
33.83
12
(translation_unit) "//\n// AIRBDClassroomTeacher4iPadViewController.h\n// StandardClassroomForTeachers\n//\n// Created by 君渡 on 2021/12/13.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AIRBDClassroomTeacher4iPadViewController : UIViewController\n\n-(instancetype) initWithUserID:(NSString*)...
84
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.83, "nodes": 54, "errors": 0, "source_hash": "ce1d24bf8c14a38810c1d61db76c7c80ec4dc8c294b3d28c3aecd46b9e9dbfba", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <UIKi...
12,196
c
/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.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.tizenopensource.org/license * * Unless required by applicable law or ...
28.19
89
(translation_unit) "/*\n * Copyright 2012 Samsung Electronics Co., Ltd\n *\n * Licensed under the Flora License, Version 1.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.tizenopensource.org/license\n *\n * Unless r...
514
1
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 28.19, "nodes": 301, "errors": 0, "source_hash": "f0c9821ad4a7fde1cc31da334876db78a8556008d78eedbbf3aa36224e34d76a", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,197
c
/* * Copyright 2016-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
35.57
63
(translation_unit) "/*\n * Copyright 2016-2017, Intel Corporation\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, ...
122
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.57, "nodes": 81, "errors": 0, "source_hash": "4ca5b9560192a78301603c64aa63e5cc367aa5637c23ebca46acc4170a8fed53", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,198
c
// File: amazonPriceChecker.h // Date: 2/17/2017 // Auth: <NAME> // Desc: Class for pulling prices from Amazon pages. #ifndef AMAZON_PRICE_CHECKER_H_ #define AMAZON_PRICE_CHECKER_H_ // Local headers #include "priceChecker.h" // Standard C++ headers #include <memory> class AmazonPriceChecker : public PriceChecke...
32.11
27
(translation_unit) "// File: amazonPriceChecker.h\n// Date: 2/17/2017\n// Auth: <NAME>\n// Desc: Class for pulling prices from Amazon pages.\n\n#ifndef AMAZON_PRICE_CHECKER_H_\n#define AMAZON_PRICE_CHECKER_H_\n\n// Local headers\n#include "priceChecker.h"\n\n// Standard C++ headers\n#include <memory>\n\nclass Amazo...
200
13
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.11, "nodes": 94, "errors": 0, "source_hash": "1317decca1f724c8046dc373a66bddd11c02226a1dabcc2a329ea2022c9ec714", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,199