language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "gamepad.h" #include "asm_decl.h" #include <xc.h> void HIGH() { CLR(); _delay(8); SET(); _delay(32); } void LOW() { CLR(); _delay(32); SET(); _delay(8); } uint8_t pack_byte(int8_t* r) { uint8_t x = 0; for (uint8_t m = 0x80; m; m >>= 1) { if (*r++ >= 0) ...
14.96
23
(translation_unit) "#include "gamepad.h"\n#include "asm_decl.h"\n#include <xc.h>\n\nvoid HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}\nvoid LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}\n\nuint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m;...
161
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 14.96, "nodes": 91, "errors": 0, "source_hash": "6de932a61873838b3aa2cb052849c48820130d6f0ff93b5ebf36a8adfa1ed7ef", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,200
c
// Copyright 2022 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
25.76
62
(translation_unit) "// Copyright 2022 <NAME>\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicab...
309
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 25.76, "nodes": 195, "errors": 0, "source_hash": "75d7a38e6b8b0af6e727301c60e542be367827e344520a3296a35ff2b074e441", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,201
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSDictionary, NSString; @interface GIPLocale : NSObject { NSDictionary *_appleLanguageToGoogleLanguage...
34
37
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDictionary, NSString;\n\n@interface GIPLocale : NSObject\n{\n NSDictionary...
361
23
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.0, "nodes": 216, "errors": 0, "source_hash": "d8aba2fc61318c6b1b3fb8e01a314e01d091a742bc02baca8da1b44cee8fad86", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
80,202
c
// // ComputerOpponent.h // ReversiGame // // Created by <NAME> on 02/01/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "ReversiBoardDelegate.h" #import "ReversiBoard.h" /** A simple computer opponent. */ @interface ComputerOpponent : NSObject<ReversiBoardDel...
27.29
17
(ERROR) "//\n// ComputerOpponent.h\n// ReversiGame\n//\n// Created by <NAME> on 02/01/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ReversiBoardDelegate.h"\n#import "ReversiBoard.h"\n\n/** A simple computer opponent. */\n@interface ComputerOpponent : NS...
65
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.29, "nodes": 39, "errors": 0, "source_hash": "0b366d0ec994aa851a9285bc786f263be0989f62420b840511c5131679252da8", "categorized_nodes": 21}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ComputerOpponent.h\...
80,203
c
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * right...
35.73
122
(translation_unit) "/*\n * The MIT License\n *\n * Copyright (c) 1997-2021 The University of Utah\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to\n * deal in the Software without restriction, including with...
402
14
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 35.73, "nodes": 263, "errors": 0, "source_hash": "ff9dcd18d282f9fdbb6a83350627fd3bf56b726d71d97d923ac8f01edc8f8fde", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,204
c
#pragma once #include<list> #include "Globals.h" #include "Module.h" class ModuleRender; class ModuleWindow; class ModuleTextures; class ModuleInput; class ModuleRenderExercise; //class ModuleTriangle; class ModuleProgramShader; class ModuleTexture; class ModuleEditor; class ModuleEditorCamera; class ModuleModelLoade...
22.05
37
(translation_unit) "#pragma once\n\n#include<list>\n#include "Globals.h"\n#include "Module.h"\n\nclass ModuleRender;\nclass ModuleWindow;\nclass ModuleTextures;\nclass ModuleInput;\nclass ModuleRenderExercise;\n//class ModuleTriangle;\nclass ModuleProgramShader;\nclass ModuleTexture;\nclass ModuleEditor;\nclass ModuleE...
222
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.05, "nodes": 150, "errors": 0, "source_hash": "f1fa8903e83d6476f0f6c496ea8fe5f15fa091753a2b8e46230bd0a21929d262", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,205
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaCorePreDeclares.h" #include "Core/Siren/SirenHeader.h" USING_MEDUSA; //SIREN_HEADER_INCLUDE_BEGIN //SIREN_HEADER_INCLUDE_END class Logi...
22.66
53
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "MedusaCorePreDeclares.h"\n#include "Core/Siren/SirenHeader.h"\nUSING_MEDUSA;\n\n//SIREN_HEADER_INCLUDE_BEGIN\n//SIREN_H...
265
8
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 22.66, "nodes": 131, "errors": 0, "source_hash": "bf9590cc0822b8778891be79d0d395d09f8664b17b912e569717ca7ed7db8b77", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,206
c
/* // @(#) addr_range.h // @(License-CC0) */ # if !defined( ADDR_RANGE_H) # define ADDR_RANGE_H # include "netaddr.h" enum { MAXRANGES = 63, }; typedef struct addr_range addr_range_t; struct addr_range { haddr_t addr; int mask; }; typedef struct range_list range_list_t; struct range_list { size_t nranges; add...
23.63
27
(translation_unit) "/*\n// @(#) addr_range.h\n// @(License-CC0)\n*/\n\n# if !defined( ADDR_RANGE_H)\n# define ADDR_RANGE_H\n\n# include "netaddr.h"\n\nenum { MAXRANGES = 63, };\n\ntypedef struct addr_range addr_range_t;\nstruct addr_range {\n haddr_t addr;\n int mask;\n};\n\ntypedef struct range_list range_list_t;\nstr...
197
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.63, "nodes": 134, "errors": 0, "source_hash": "9d8ce8c83abb4845e2de41eb33d510291cbda4da19c823f957de0bf4bbccd4c9", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "# if\t!def...
80,207
c
#include <stdio.h> typedef struct { int x; int y; void * z; } st_t; st_t * st_alloc(int x, int y){ st_t * t = (st_t *) malloc(1 * sizeof(st_t)); __ESBMC_assume(t); if ( x > 0 && y > 0){ t -> x = x; t -> y = y; t -> z = NULL; } else { t -> x = 0; t -> y = 0; t -> z = (void *)...
17.22
49
(translation_unit) "#include <stdio.h>\n\ntypedef struct {\n\n int x;\n int y;\n void * z;\n\n} st_t;\n\nst_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0...
424
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 17.22, "nodes": 269, "errors": 0, "source_hash": "a082555fea199a43f5edc554bec84f9afccbdc4f83e451d6226de96db7eba13c", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,208
c
/* hosts/amiga/signal_rr.c ** ** Just the exception catcher -- it needs registerized args (-mRR) which ** are not used elsewhere. ** ** 28-Feb-93 [lars] Done for DICE 2.07.53 */ #include <exec/types.h> #ifdef INCLUDE_VERSION #include <dos/dos.h> #else #include <libraries/dos.h> #endif #include "nsignal.h" extern __...
32.36
42
(translation_unit) "/* hosts/amiga/signal_rr.c\n**\n** Just the exception catcher -- it needs registerized args (-mRR) which\n** are not used elsewhere.\n**\n** 28-Feb-93 [lars] Done for DICE 2.07.53\n*/\n\n#include <exec/types.h>\n#ifdef INCLUDE_VERSION\n#include <dos/dos.h>\n#else\n#include <libraries/dos.h>\n#end...
201
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.36, "nodes": 125, "errors": 0, "source_hash": "17ba6ae00d286b1989b8532a1edb52d64b6862e82404e7204838c82857282db2", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,209
c
/* * packet_private.h * simplepgp * * Created by <NAME> on 11/11/11. * * Copyright 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
23.29
208
(translation_unit) "/*\n * packet_private.h\n * simplepgp\n *\n * Created by <NAME> on 11/11/11.\n *\n * Copyright 2011 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n...
718
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 23.29, "nodes": 515, "errors": 0, "source_hash": "ab39a3d439928010fbd840dae09fb4f1f520570bdb9996ac63d6ca29baee67c1", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,210
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" @class NSDictionary, NSMutableArray; @interface VCPVoiceDetector : NSObject { NSDictionary *_model; struct AudioStreamBasicDescription _audioStream; int...
36.97
32
(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@class NSDictionary, NSMutableArray;\n\n@interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasic...
315
20
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.97, "nodes": 195, "errors": 0, "source_hash": "58b2b6800b0309fc702a1a872ddb2147ac3d15899dd20ed736cc508b921526c0", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,211
c
/* * ACPI INT3403 thermal driver * Copyright (c) 2013, Intel Corporation. * * This program 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 Free Software Foundation. * * This program is distributed in ...
28.65
200
(translation_unit) "/*\n * ACPI INT3403 thermal driver\n * Copyright (c) 2013, Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the Free Software Foundation.\n *\n * Thi...
1,454
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 28.65, "nodes": 920, "errors": 0, "source_hash": "6c1b597d1c37baa14a53e758b8cd17d5ad344296b6858504950756021a65ad59", "categorized_nodes": 643}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,212
c
// // ABUtils.h // ABUtils // // Created by <NAME> on 2/16/14. // Copyright (c) 2014 AB. All rights reserved. // #import <Foundation/Foundation.h> #ifndef _ABUTILS_ #define _ABUTILS_ #import "UIFont+ABUtils.h" #import "UIAlertView+ABUtils.h" #import "UIColor+ABUtils.h" #import "UIView+ABUtils.h" #import "ABColl...
20.78
18
(translation_unit) "//\n// ABUtils.h\n// ABUtils\n//\n// Created by <NAME> on 2/16/14.\n// Copyright (c) 2014 AB. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\n#ifndef _ABUTILS_\n#define _ABUTILS_\n\n#import "UIFont+ABUtils.h"\n#import "UIAlertView+ABUtils.h"\n#import "UIColor+ABUtils.h"\n#impo...
37
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.78, "nodes": 28, "errors": 0, "source_hash": "fc17b034ef9232951bac0b81872d94fdc74a391ae6d2144fbebfcaa0d7498a51", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,213
c
// // CC98AboutViewController.h // CC98Lite // // Created by S on 15/7/16. // Copyright (c) 2015年 zju. All rights reserved. // #import <UIKit/UIKit.h> #import "CC98BlockDataDelegate.h" @interface CC98AboutViewController : UIViewController <CC98BlockDataDelegate> - (void)displayAboutContent; - (void)displayNotice...
24.46
13
(translation_unit) "//\n// CC98AboutViewController.h\n// CC98Lite\n//\n// Created by S on 15/7/16.\n// Copyright (c) 2015年 zju. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "CC98BlockDataDelegate.h"\n\n@interface CC98AboutViewController : UIViewController <CC98BlockDataDelegate>\n\n- (void)displayAb...
48
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.46, "nodes": 27, "errors": 0, "source_hash": "401486e2ae4382368515e7ac8dc59de9f6f94e6b1b3b39a37aa9fff75559784e", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
80,214
c
/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * dcache.c * * dentry cache handling code * * Copyright (C) 2002, 2004 Oracle. 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 a...
30.46
76
(translation_unit) "/* -*- mode: c; c-basic-offset: 8; -*-\n * vim: noexpandtab sw=8 ts=8 sts=0:\n *\n * dcache.c\n *\n * dentry cache handling code\n *\n * Copyright (C) 2002, 2004 Oracle. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the G...
435
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 30.46, "nodes": 258, "errors": 0, "source_hash": "0d4e6809cc9c58bd4daa62472334bd68f3322efce1805faa52b10500d33077c9", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,215
c
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2019 RDK Management * * 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 ...
32.16
61
(translation_unit) "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2019 RDK Management\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the ...
235
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 32.16, "nodes": 181, "errors": 0, "source_hash": "8d4a80c6c437064bc4db89fcd0dcb89aa5ec8a98ce761b3b4b7d2300783539c6", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,216
c
// // CardView.h // YFLDragCardViewProject // // Created by Cherish on 2018/9/18. // Copyright © 2018年 Cherish. All rights reserved. // #import "YFLDragCardView.h" @interface CardView : YFLDragCardView - (void)setAnimationwithDriection:(ContainerDragDirection)direction; - (void)setImage:(NSString*)imageName tit...
27.5
12
(translation_unit) "//\n// CardView.h\n// YFLDragCardViewProject\n//\n// Created by Cherish on 2018/9/18.\n// Copyright © 2018年 Cherish. All rights reserved.\n//\n\n#import "YFLDragCardView.h"\n\n@interface CardView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)direction;\n\n- (void...
66
11
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.5, "nodes": 42, "errors": 0, "source_hash": "8ea1e929c9d35132b64991fb72356a6d7d2ddf63b11da816cfc7fcf3370288d3", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"YFL...
80,217
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> main() { int domain, type, protocol; int socketfd; int novo_socketfd; struct sockaddr_in end_local; struct sockaddr_in end_remoto; int tam_end_local; int tam_...
22.67
70
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\nmain()\n{\n int domain, type, protocol;\n int socketfd;\n int novo_socketfd;\n\n struct sockaddr_in end_local;\n struct sockaddr_in end_re...
506
1
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.67, "nodes": 292, "errors": 0, "source_hash": "1667987ea3dffa8dc91f90dad2b24f45731ff00e69dfb0fe0f009c6a6dbf777b", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,218
c
#ifndef COOKIEPRASETOOLSPRIVATE_H #define COOKIEPRASETOOLSPRIVATE_H #include <QObject> #include <QString> #include <QNetworkCookie> class CookiePraseToolsPrivate { public: CookiePraseToolsPrivate(); static QString escape(const QString& unescaped); static QString unescape(const QString& escaped); static...
31.73
15
(translation_unit) "#ifndef COOKIEPRASETOOLSPRIVATE_H\n#define COOKIEPRASETOOLSPRIVATE_H\n#include <QObject>\n#include <QString>\n#include <QNetworkCookie>\n\nclass CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(cons...
108
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.73, "nodes": 58, "errors": 0, "source_hash": "27699b4ac2416891555b9697db70230b89c6add3c2e11534d0c2446d0557d152", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,219
c
// // JXTAlertViewController.h // JXTAlertView // // Created by JXT on 16/3/7. // Copyright © 2016年 JXT. All rights reserved. // // // *** // * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos // * 博客:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles // * 邮箱:<EMAIL> // *** #import <UIKit/UIKi...
28.38
21
(translation_unit) "//\n// JXTAlertViewController.h\n// JXTAlertView\n//\n// Created by JXT on 16/3/7.\n// Copyright © 2016年 JXT. All rights reserved.\n//\n//\n// ***\n// * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos\n// * 博客:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles\n// * 邮箱:<EMAIL...
94
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.38, "nodes": 53, "errors": 0, "source_hash": "27a803dbf5cd325c8ab27b2629d15a2e0a12ed273b7243b44f1ec2843584616c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
80,220
c
/* * mpower.c * * Created on: 19 feb. 2019 * Author: <NAME> */ #include "declareFunctions.h" /* * This is the almost the same as powe, power on every element, but the difference is that this function * does not take power on each element, it does A^n * A will be size row x row. It must be square!!! * A...
26.16
32
(translation_unit) "/*\n * mpower.c\n *\n * Created on: 19 feb. 2019\n * Author: <NAME>\n */\n\n#include "declareFunctions.h"\n\n/*\n * This is the almost the same as powe, power on every element, but the difference is that this function\n * does not take power on each element, it does A^n\n * A will be size row ...
245
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 26.16, "nodes": 129, "errors": 0, "source_hash": "86f7cd53b47fc42d2de382548fcd91a39722d1ac858e99edce73ff4948996d41", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,221
c
// // HomeViewController.h // ZKTimerServiceDemo // // Created by bestdew on 2019/3/4. // Copyright © 2019 bestdew. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface HomeViewController : UIViewController @end NS_ASSUME_NONNULL_END
21.33
12
(translation_unit) "//\n// HomeViewController.h\n// ZKTimerServiceDemo\n//\n// Created by bestdew on 2019/3/4.\n// Copyright © 2019 bestdew. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HomeViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comme...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.33, "nodes": 14, "errors": 0, "source_hash": "760761d5ececeeb51867efa8eda26a1d47197fce8ad74f3fa2f87fba8e80c11b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
80,222
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject.h" #import "DVTInvalidation-Protocol.h" @class DVTStackBacktrace; @interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation> { ...
33.47
17
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSObject.h"\n\n#import "DVTInvalidation-Protocol.h"\n\n@class DVTStackBacktrace;\n\n@interface _IDESourceControlInfoConflictDetectorCancellationToken...
87
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.47, "nodes": 59, "errors": 0, "source_hash": "dccbefb702919bfda0889dcccdd633fc5d70fe7f3d2eac8737db8808d71fa0d5", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
80,223
c
#ifndef __LIST_H_ #define __LIST_H_ #include <pthread.h> typedef struct list_elem { struct list_elem *prev; struct list_elem *next; void *info; } list_elem; typedef struct thread_info_list { list_elem *head; list_elem *tail; pthread_mutex_t lock; } thread_info_list; /* Compute the size of a l...
29.42
26
(translation_unit) "#ifndef __LIST_H_ \n#define __LIST_H_ \n \n#include <pthread.h> \n \ntypedef struct list_elem { \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n} list_elem; \n \ntypedef struct thread_info_list { \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n} thread_inf...
157
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.42, "nodes": 116, "errors": 0, "source_hash": "cea641e9c427cdb419f010c53552fd291423c1546bae0b00798fb0581b396a32", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,224
c
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd 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 ...
34.8
40
(translation_unit) "/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd 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.apach...
134
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 34.8, "nodes": 80, "errors": 0, "source_hash": "6c5ea998a9d391128621db931037c559bd969c276ad5d89de29c6c3d7e93c30e", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
80,225
c
// // PlayView.h // TestDemo // // Created by Multak on 2018/6/13. // Copyright © 2018年 Multak. All rights reserved. // //#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> typedef NS_ENUM(NSUInteger, PlayViewState) { PlayViewStateSmall, PlayViewStateAnimating, PlayViewStateFullscreen, }; @interface Vie...
22.94
18
(translation_unit) "//\n// PlayView.h\n// TestDemo\n//\n// Created by Multak on 2018/6/13.\n// Copyright © 2018年 Multak. All rights reserved.\n//\n\n//#import <UIKit/UIKit.h>\n#import <GLKit/GLKit.h>\n\ntypedef NS_ENUM(NSUInteger, PlayViewState) {\n PlayViewStateSmall,\n PlayViewStateAnimating,\n PlayViewS...
75
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.94, "nodes": 42, "errors": 0, "source_hash": "92955f5d7ec029f46170309350be55b0d1f9b2ce50034f7b13bbd81041533700", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <GLK...
80,226
c
// // Created by <NAME> on 6/24/18. // #ifndef LJUS_ENCRYPTCOOKIES_H #define LJUS_ENCRYPTCOOKIES_H #include <vector> #include <string> #include <cookie/CookieJar.h> #include <http/utils/Request.h> #include <http/utils/Response.h> using namespace std; namespace Ljus { class EncryptCookies { public: ...
28.7
30
(translation_unit) "//\n// Created by <NAME> on 6/24/18.\n//\n\n#ifndef LJUS_ENCRYPTCOOKIES_H\n#define LJUS_ENCRYPTCOOKIES_H\n\n#include <vector>\n#include <string>\n#include <cookie/CookieJar.h>\n#include <http/utils/Request.h>\n#include <http/utils/Response.h>\n\nusing namespace std;\n\nnamespace Ljus {\n class En...
212
13
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.7, "nodes": 136, "errors": 0, "source_hash": "628f1cd4516ac955616e685d88e7ad5f44b6504c5e9ac5d7877ca9bd3338d160", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,227
c
/** * @file property_definition.h * @date 08/21/2020 04:34:28 PM CST * @brief "" * * Copyright (C) 2020 NIIC EDA * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_ #d...
29.87
126
(translation_unit) "/** \n * @file property_definition.h\n * @date 08/21/2020 04:34:28 PM CST\n * @brief ""\n *\n * Copyright (C) 2020 NIIC EDA\n * All rights reserved.\n *\n * This software may be modified and distributed under the terms\n * of the BSD license. See the LICENSE file for details.\n */\n\n#ifndef EDI_...
682
21
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 29.87, "nodes": 394, "errors": 0, "source_hash": "a3410d1a465b789a70242ba24f3866b9ab80ce0db77519dce9de8616b999536a", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,228
c
/* * Copyright 2017 The Native Object Protocols Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
33.97
156
(translation_unit) "/*\n * Copyright 2017 The Native Object Protocols Authors\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
1,689
73
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 33.97, "nodes": 1017, "errors": 0, "source_hash": "543691b6ca0c9203670cb138e7ba75923cd79897abd16788ee25ba31637523d4", "categorized_nodes": 709}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LIBN...
80,229
c
// // OwenViewController.h // OwenMD5 // // Created by owen-pravite-fields on 03/31/2019. // Copyright (c) 2019 owen-pravite-fields. All rights reserved. // @import UIKit; @interface OwenViewController : UIViewController @end
22
10
(translation_unit) "//\n// OwenViewController.h\n// OwenMD5\n//\n// Created by owen-pravite-fields on 03/31/2019.\n// Copyright (c) 2019 owen-pravite-fields. All rights reserved.\n//\n\n@import UIKit;\n\n@interface OwenViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// OwenViewController...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.0, "nodes": 10, "errors": 0, "source_hash": "6107e7dd478de32ec5fa5d2df40779bdbe4ff0f9ad03dce0b65fd7e628967d37", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
80,230
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" @class NSMutableDictionary, NSObject<OS_dispatch_queue>; @interface IPAAutoRegistry : NSObject { NSObject<OS_dispatch_queue> *_serializer; NSMutableDictiona...
41.57
23
(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@class NSMutableDictionary, NSObject<OS_dispatch_queue>;\n\n@interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_s...
264
23
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.57, "nodes": 159, "errors": 0, "source_hash": "ca6c06aff92e60cad76eb49f00b9cb63580e17aeee36fe1c8231ccca54dfefe0", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,231
c
typedef struct e { void *key; void *value; } Element; typedef struct v { unsigned count; unsigned size; Element *elements; } Vector; typedef struct h { unsigned size; Vector *data; unsigned (* hash) (void *, unsigned); int (*cmpKeys) (void *, void *); void *(* copyKey) (void *); void *(* copyVal...
26.36
22
(translation_unit) "typedef struct e {\n void *key;\n void *value;\n} Element;\n\ntypedef struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n} Vector;\n\ntypedef struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* c...
291
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.36, "nodes": 214, "errors": 0, "source_hash": "8e3c12a9540de92e4c7af4190700b43f220729ac46af78a7baeb50813cab6bff", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typed...
80,232
c
// // MetronomeBeatChangedPerceivable.h // Metronome // // Created by 呂宗錡 on 2019/10/13. // Copyright © 2019年 Positive Grid. All rights reserved. // #import <Foundation/Foundation.h> @protocol MetronomeBeatChangedPerceivable <NSObject> - (void) onBeatChanged:(NSUInteger)beat; @end
25
11
(translation_unit) "//\n// MetronomeBeatChangedPerceivable.h\n// Metronome\n//\n// Created by 呂宗錡 on 2019/10/13.\n// Copyright © 2019年 Positive Grid. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@protocol MetronomeBeatChangedPerceivable <NSObject>\n- (void) onBeatChanged:(NSUInteger)beat;\n@end\...
39
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.0, "nodes": 22, "errors": 0, "source_hash": "ba1f0ed2780dcf8303b23c48dda339224f31ff40f89efcecbfd2394357537db5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundation...
80,233
c
#ifndef TEST_UTILS_H #define TEST_UTILS_H #include "bayesnet/factor.h" #include "gtest/gtest.h" #include <vector> namespace Bayes { template <class T> void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001) { for (size_t i = 0; i < result.size(); ++i) { EXPECT_...
27.78
18
(translation_unit) "#ifndef TEST_UTILS_H\n#define TEST_UTILS_H\n\n#include "bayesnet/factor.h"\n#include "gtest/gtest.h"\n#include <vector>\n\nnamespace Bayes \n{\n template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n {\n for (size_t i = 0; i < ...
172
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.78, "nodes": 115, "errors": 0, "source_hash": "d6773ded31d6c7cef9771b352218333a450a8f67964c14f0d3fc3eb93d139568", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,234
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libft.h :+: :+: :+: ...
40.69
190
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* libft.h ...
2,111
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 40.69, "nodes": 1552, "errors": 0, "source_hash": "7bd7b621d94848d50b24c4e0752f24c99b43d18b16b80df1cd6f4c83ec64678d", "categorized_nodes": 783}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
80,235
c
// // Created by qlu on 2019/1/10. // #ifndef MD_GATEWAY_CTP_H #define MD_GATEWAY_CTP_H #include <string> #include <map> #include <kungfu/yijinjing/common.h> #include <kungfu/wingchun/msg.h> #include <kungfu/wingchun/gateway/marketdata.h> #include "ThostFtdcMdApi.h" namespace kungfu { namespace wingchun { ...
43.54
71
(translation_unit) "//\n// Created by qlu on 2019/1/10.\n//\n\n#ifndef MD_GATEWAY_CTP_H\n#define MD_GATEWAY_CTP_H\n\n#include <string>\n#include <map>\n\n#include <kungfu/yijinjing/common.h>\n#include <kungfu/wingchun/msg.h>\n#include <kungfu/wingchun/gateway/marketdata.h>\n\n#include "ThostFtdcMdApi.h"\n\nnamespace ku...
537
32
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 43.54, "nodes": 339, "errors": 0, "source_hash": "08300edac639b78481929973eceb27770413f3c788e146d3d43d285434de0ef4", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,236
c
#pragma once #include <stdint.h> #include "bat_data_type.h" #include "bat_read.h" #include "bat_write.h"
20
5
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include "bat_data_type.h"\n#include "bat_read.h"\n#include "bat_write.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string)...
25
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.0, "nodes": 15, "errors": 0, "source_hash": "ccaa7581da3eb45b3c35bf4a5d55fac07441580b534d2bf11161df419dae4bda", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
80,237
c
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main (){ int n; int a[100001]={0}; int k; int i ,j; scanf("%d",&n); while(n--){ scanf("%d",&i); a[i]++; } scanf("%d",&k); for(i=9...
15.52
27
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n/* run this program using the console pauser or add your own getch, system("pause") or input loop */\n\n \n int main (){\n int n;\n int a[100001]={0};\n int k;\n int i ,j;\n scanf("%d",&n);\n while(n--){\n scanf("%d",&i);\n a[i]...
194
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.52, "nodes": 102, "errors": 0, "source_hash": "ea6d78cb3281ec81f41d5baf52d366462fe0f5e031d18e597f9f4c34425f5199", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,238
c
#pragma once #include <map> typedef struct _TRANS_STATUS { WCHAR strSPath[255]; WCHAR strCPath[255]; UINT64 nTotal; UINT64 nCurPos; BOOL isDown; }TRANS_STATUS,*PTRANS_STATUS; typedef std::map<int,TRANS_STATUS> TransStatusVector;
20.27
11
(translation_unit) "#pragma once\n#include <map>\n\ntypedef struct _TRANS_STATUS\n{\n WCHAR strSPath[255];\n WCHAR strCPath[255];\n UINT64 nTotal;\n UINT64 nCurPos;\n BOOL isDown;\n}TRANS_STATUS,*PTRANS_STATUS;\n\ntypedef std::map<int,TRANS_STATUS> TransStatusVector;" (preproc_call) "#pragma once\n" (preproc_dire...
64
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.27, "nodes": 45, "errors": 0, "source_hash": "5b2f3c0798487e257014d846a65c8741a1a59cda56cfb9029511f889f28469b0", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,239
c
#ifndef __WATCHDOG_H__ #define __WATCHDOG_H__ #include "stdtypes.h" #define WATCHDOG_TIMER_DEAD 5 typedef struct { /** * the timer the watchdog increments * everytime it is called * see watchdog_ping for more info */ _uint32_t _timer; /** * determines whether the watchdog should * force a reset even i...
22.88
48
(translation_unit) "#ifndef __WATCHDOG_H__\n#define __WATCHDOG_H__\n\n#include "stdtypes.h"\n\n#define WATCHDOG_TIMER_DEAD 5\n\ntypedef struct {\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watch...
104
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.88, "nodes": 69, "errors": 0, "source_hash": "5df8ce7ab1b64aae63cc85d9c7c53cbc8a3acdb5bf1028d80eabce36c23f8a44", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,240
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ @interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject - (void)destroyNativeObject; - (void)setupNativeObject; @end
38
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI\n */\n\n@interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject\n\n- (void)destroyNativeObject;\n- (void)setupNativeObject;\n\n@end\n" (comment) ...
31
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 38.0, "nodes": 19, "errors": 0, "source_hash": "a8780349f5f2a911ffa4d79563925e12f31dc3dd3cf123c83950f8b24dbb3175", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SUScript...
80,241
c
// // Created by ajey on 5/7/16. #include "nss_http.h" #include <nss.h> #include <pwd.h> #include "nss_http-passwd.c" int main(int argc, char *argv[]) { int retval=0; const char *command="nobody"; char host_name[255]; char token[255]; get_config_host(host_name, token); printf("host %s token %...
25.76
38
(translation_unit) "//\n// Created by ajey on 5/7/16.\n\n#include "nss_http.h"\n#include <nss.h>\n#include <pwd.h>\n#include "nss_http-passwd.c"\n\nint main(int argc, char *argv[])\n{\n int retval=0;\n const char *command="nobody";\n char host_name[255];\n char token[255];\n get_config_host(host_name, to...
316
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.76, "nodes": 185, "errors": 0, "source_hash": "fbdfb4c72e7762819a16eeb5c670fcc73392eb1c7f5afb0031b93e60824c67d2", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,242
c
#ifndef KLB_H #define KLB_H #ifdef __cplusplus extern "C" { #endif #include <ImageIO.h> extern PTRIMAGE_FORMAT createKlbFormat(); #ifdef __cplusplus } #endif #endif
12.83
12
(translation_unit) "#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <Image...
40
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.83, "nodes": 30, "errors": 0, "source_hash": "37272aa185db303ef2633f08809b4b4520d7e9ff8bb37a17b6a607f31c518557", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,243
c
/** \file misc.h \brief Miscelaneous map operations. */ #ifndef _STARRY_MISC_H_ #define _STARRY_MISC_H_ #include "utils.h" #include "wigner.h" namespace starry { namespace misc { using namespace utils; /** Compute the Ylm expansion of a spot at a given latitude/longitude on the map. */ template <class Scalar> in...
33.93
175
(translation_unit) "/**\n\file misc.h\n\brief Miscelaneous map operations.\n\n*/\n\n#ifndef _STARRY_MISC_H_\n#define _STARRY_MISC_H_\n\n#include "utils.h"\n#include "wigner.h"\n\nnamespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on t...
2,594
22
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 33.93, "nodes": 1865, "errors": 0, "source_hash": "8e0534c88949ba5a3d6a14c9bf409c36684b4e4b5a5a1aed36a7ebec4ff9298e", "categorized_nodes": 1322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
80,244
c
// // TSMenuCell.h // Malmoo // // Created by Jennifer on 12/1/14. // Copyright (c) 2014 Folse. All rights reserved. // #import <UIKit/UIKit.h> @interface TSMenuCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *nameLabel; @property (weak, nonatomic) IBOutlet UILabel *descriptionLabel; @propert...
30.36
14
(translation_unit) "//\n// TSMenuCell.h\n// Malmoo\n//\n// Created by Jennifer on 12/1/14.\n// Copyright (c) 2014 Folse. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TSMenuCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UI...
101
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.36, "nodes": 72, "errors": 0, "source_hash": "4121cb0249f0835313c7fd10ee36ec542a310d08895bc583faaa611081cdc615", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,245
c
// // UITableViewController+VisibleArea.h // TTTFramework // // Created by jia on 2017/1/11. // Copyright © 2017年 jia. All rights reserved. // #import <UIKit/UIKit.h> @protocol UITableViewControllerVisibleAreaProtocol <NSObject> @property (nonatomic, readonly) UIView *visibleAreaView; @property (nonatomic, reado...
34
15
(translation_unit) "//\n// UITableViewController+VisibleArea.h\n// TTTFramework\n//\n// Created by jia on 2017/1/11.\n// Copyright © 2017年 jia. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol UITableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UIView *visibleAreaV...
80
15
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.0, "nodes": 59, "errors": 0, "source_hash": "7cfa7eaa977fd6b130c471b849fadee74622c79c6a733dfdd77df57727d0e1eb", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
80,246
c
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag // Based on 01/35. extern int __VERIFIER_nondet_int(); #include <assert.h> void main() { int i = __VERIFIER_nondet_int(); if (i - 1) { // only implies i - 1 != 0 (i != 1) // doesn't imply i - 1 == 1 (i == 2) // doesn't ...
28.54
13
(translation_unit) "// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag\n// Based on 01/35.\nextern int __VERIFIER_nondet_int();\n\n#include <assert.h>\n\nvoid main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 =...
64
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.54, "nodes": 36, "errors": 0, "source_hash": "6954fe55f50d6af7aef604fd875e299899601cd8ce4e2570f5551d772b13995c", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int...
80,247
c
#include "evas_common.h" #if 0 Regionbuf * evas_common_regionbuf_new(int w, int h) { Regionbuf *rb; rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan))); if (!rb) return NULL; rb->spans = (Regionspan **)(rb + sizeof(Regionbuf)); rb->w = w; rb->h = h; return rb; } void evas_common_regionb...
24.2
340
(translation_unit) "#include "evas_common.h"\n\n#if 0\nRegionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n retur...
2,409
0
{"language": "c", "success": true, "metadata": {"lines": 340, "avg_line_length": 24.2, "nodes": 1437, "errors": 0, "source_hash": "bc6cee90d37283739519d25bdd7dcd2aa05761c826d507de673d6dca8c8dabd3", "categorized_nodes": 1087}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,248
c
#include "9pm.h" enum { Hashmul = 151, Hashmod = 1000000007, }; static void addrlock(RWlock *q); static void subrlock(RWlock *q); void rlock(RWlock *q) { Thread *t; for(;;) { lock(&q->lk); if(q->hold == 0) break; q->nwait++; pm_queue(q); unlock(&q->lk); pm_tsleep(); } q->readers++; addrloc...
12.23
194
(translation_unit) "#include "9pm.h"\n\nenum {\n Hashmul = 151,\n Hashmod = 1000000007, \n};\n\nstatic void addrlock(RWlock *q);\nstatic void subrlock(RWlock *q);\n\nvoid\nrlock(RWlock *q)\n{\n Thread *t;\n\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\...
1,465
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 12.23, "nodes": 898, "errors": 0, "source_hash": "2513ba3957e57c0a92613ef66b9bde1fd9d25d76438568f1b8e737631659c4cb", "categorized_nodes": 675}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,249
c
#ifndef MATH_H #define MATH_H int add_demo(int a, int b); #endif
15.25
4
(translation_unit) "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif\n" (preproc_ifdef) "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif" (#ifndef) "#ifndef" (identifier) "MATH_H" (preproc_def) "#define MATH_H\n" (#define) "#define" (identifier) "...
23
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.25, "nodes": 18, "errors": 0, "source_hash": "030bc2213335a2e3e4618e46ecae0e199789d1b37d88538f8b57fbc0505d9deb", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
80,250
c
#ifndef CODE_bam_cat #define CODE_bam_cat #include "htslib/htslib/sam.h" int bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam); #endif
31
5
(translation_unit) "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include "htslib/htslib/sam.h"\n\nint bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);\n\n#endif\n" (preproc_ifdef) "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include "htslib/htslib/sam.h"\n\nint bam_cat(int nfn, char * ...
51
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 31.0, "nodes": 35, "errors": 0, "source_hash": "d730a66e4059292b7fc2d00b4666facb3eb28637a89fef8754ba6189f7f2ebc7", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CO...
80,251
c
extern int getenv(const char *name); extern int foo(); extern int bar(); int main() { int taint = foo() == 0 ? getenv("gude") : bar(); int a = taint; int nt; if (nt == 0) { int a = 0; } return 0; }
15.43
14
(translation_unit) "extern int getenv(const char *name);\nextern int foo();\nextern int bar();\n\nint\nmain()\n{\n int taint = foo() == 0 ? getenv("gude") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}\n\n" (declaration) "extern int getenv(const char ...
113
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.43, "nodes": 74, "errors": 0, "source_hash": "0f5327bd93c5225f13040e95ac0ca0d0dba3c55a367b6173ebc4acf97660d9f8", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int...
80,252
c
// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD #include "mh-timer.c" #include "mh-lcd.c" int main() { uint32_t f; lcd_init(); f = set_sqr_tc2(1500); lcd_put_long(f); return 0; }
19
11
(translation_unit) "// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD\n#include "mh-timer.c"\n#include "mh-lcd.c"\n\nint main()\n{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}\n" (comment) "// Attempts to set 1500 Hz squarewave on OC2 (PD7)...
58
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.0, "nodes": 30, "errors": 0, "source_hash": "aa00e634d0af4ad1b40b6e637b386b82015cc74341285694c38cd670ba388c35", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,253
c
#ifndef QAK_ENV_PRIVATE_H #define QAK_ENV_PRIVATE_H #include <QDebug> #include <QStandardPaths> #include <QDir> #include <QFile> #include <QVariant> #include <QMoveEvent> #include <QWindow> #include <QApplication> #include <QResource> #include <QTranslator> #include <QQuickItem> #include <QQmlEngine> #include <QQmlCon...
35.19
86
(translation_unit) "#ifndef QAK_ENV_PRIVATE_H\n#define QAK_ENV_PRIVATE_H\n\n#include <QDebug>\n#include <QStandardPaths>\n#include <QDir>\n#include <QFile>\n#include <QVariant>\n#include <QMoveEvent>\n#include <QWindow>\n#include <QApplication>\n#include <QResource>\n#include <QTranslator>\n#include <QQuickItem>\n#incl...
842
71
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 35.19, "nodes": 496, "errors": 0, "source_hash": "ca2f00a4d5154a9adf7f770ab91fb622c44c8d126231bc7332c0457990c71dab", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QAK_EN...
80,254
c
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <string.h> #include <signal.h> #include <stdint.h> #include <sys/wait.h> #ifdef SDK_NEW #define WPS_OFF 8 #endif void terminate_apps(char *appname,int forcekill) { int ret=-1; uint8_t first_time = 0; char cmd[64]=""; ...
30.24
135
(translation_unit) "#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <syslog.h>\n#include <string.h>\n#include <signal.h>\n#include <stdint.h>\n#include <sys/wait.h>\n#ifdef SDK_NEW\n#define WPS_OFF 8\n#endif\n\nvoid terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t firs...
1,344
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 30.24, "nodes": 691, "errors": 0, "source_hash": "fa08e9cb7ce4c9c3e56f872ecd77de72ac487df408c90392ad64bc0091d07613", "categorized_nodes": 493}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,255
c
// // Created by <NAME> on 31.5.2018 г.. // #ifndef ARDUINOMID_ADTFUNC_H #define ARDUINOMID_ADTFUNC_H #include <Arduino.h> /////////////////////////////////////////////////////////// //// DRL /////////////////////////////////////////////////////////// #ifndef DRL_PWM_PIN #define DRL_PWM_PIN 7 #endif #ifndef DRL_PWR_...
22.84
176
(translation_unit) "//\n// Created by <NAME> on 31.5.2018 г..\n//\n\n#ifndef ARDUINOMID_ADTFUNC_H\n#define ARDUINOMID_ADTFUNC_H\n\n#include <Arduino.h>\n\n///////////////////////////////////////////////////////////\n//// DRL\n///////////////////////////////////////////////////////////\n#ifndef DRL_PWM_PIN\n#define DRL_...
932
2
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 22.84, "nodes": 484, "errors": 0, "source_hash": "cf2a50be322154ef4cd7a1ff383e83509e9988df3cf8e7a7fe812a052eff5d84", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifnde...
80,256
c
#include<stdio.h> #include<stdlib.h> typedef struct stack { int top; unsigned capacity; int *array; } ST; ST* create() { int cap; printf("What is the stack capacity: "); scanf("%d", &cap); ST *s = (ST*)malloc(sizeof(ST)); s->top = -1; s->capacity = cap; int *arr = (int*)mallo...
20.04
71
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct stack {\n int top;\n unsigned capacity;\n int *array;\n} ST;\n\n\n\nST* create() {\n int cap;\n printf("What is the stack capacity: ");\n scanf("%d", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capac...
662
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 20.04, "nodes": 380, "errors": 0, "source_hash": "5ff35256d85f3055c05275ba77ed2f6186e7600054b49c76c7355bb32e86c911", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,257
c
#import <Cocoa/Cocoa.h> @interface ArtHUDView : NSWindow @property (nonatomic, assign) CGFloat cornerRadius; @end
27.5
4
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n@interface ArtHUDView : NSWindow\n@property (nonatomic, assign) CGFloat cornerRadius;\n@end\n" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (ERROR) "@interface ArtHUDView : NSWindow\n@property (nonatom...
27
6
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.5, "nodes": 20, "errors": 0, "source_hash": "8f34bbdfcdfb97e16ecb0bf3d208b2a8d28a431307d562cc2b5cf608db1a5285", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Co...
80,258
c
// Copyright (c) 2019-2020 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
32.74
261
(translation_unit) "// Copyright (c) 2019-2020 LG Electronics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless r...
883
47
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 32.74, "nodes": 502, "errors": 0, "source_hash": "711566eb4a5aae1e2105b027c1b8b60389394d82285b6bc6cc797e4c81ab5f30", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
80,259
c
#ifndef CHIP8THREAD_H #define CHIP8THREAD_H #include <QtGui> #include "Cpu.h" class Chip8Thread : public QThread { Q_OBJECT public: Chip8Thread(QObject *parent, Cpu *chip8); //constructeur void run(); // this is virtual method, we must implement it in our subclass of QThread private: Cp...
18.11
18
(translation_unit) "#ifndef CHIP8THREAD_H \n#define CHIP8THREAD_H \n \n#include <QtGui> \n#include "Cpu.h" \n \nclass Chip8Thread : public QThread \n{ \n Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur \n void run(); // this is virtual method, we must implement it in our subcl...
70
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.11, "nodes": 44, "errors": 0, "source_hash": "7efaef3c0e87c55fef7f04879753e890b30a009db1b5903ffde11cff45df708a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,260
c
#include <stdio.h> #include <mpi.h> #define MASTER 1 int main(int argc, char **argv) { MPI_Init(&argc, &argv); int rank, world; MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &world); int info[] = {1, 2, 3, 4, 5, 6}; int total_size = sizeof(info) / sizeof(info[0]); int...
24.29
28
(translation_unit) "#include <stdio.h>\n#include <mpi.h>\n\n#define MASTER 1\n\nint main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(...
221
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.29, "nodes": 132, "errors": 0, "source_hash": "4672279d69d030ceb3b02d57733ef0de83243246a0a8af105d1d872e8e831892", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,261
c
#pragma once #include "ofxXmlSettings.h" #include "ofConstants.h" #include "ofRectangle.h" #include "ofImage.h" #include "ofEvents.h" class ofxBaseGui{ public: ofxBaseGui(); virtual ~ofxBaseGui(); virtual void mouseMoved(ofMouseEventArgs & args) = 0; virtual void mousePressed(ofMouseEventArgs & args) = 0; vi...
27.42
52
(translation_unit) "#pragma once\n\n#include "ofxXmlSettings.h"\n#include "ofConstants.h"\n#include "ofRectangle.h"\n#include "ofImage.h"\n#include "ofEvents.h"\n\n\nclass ofxBaseGui{\npublic:\n ofxBaseGui();\n \n virtual ~ofxBaseGui();\n\n virtual void mouseMoved(ofMouseEventArgs & args) = 0;\n virtual void mousePress...
470
5
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.42, "nodes": 295, "errors": 0, "source_hash": "310a5d4077db9b64654699d16c94a56b019900aecfb5322ab8dbf3293b52619e", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,262
c
/* The Jinx library is distributed under the MIT License (MIT) https://opensource.org/licenses/MIT See LICENSE.TXT or Jinx.h for license details. Copyright (c) 2016 <NAME> */ #pragma once #ifndef JX_MEMORY_H__ #define JX_MEMORY_H__ namespace Jinx { // Stand-alone global allocation functions void * MemAllocate(size_...
41.06
69
(translation_unit) "/*\nThe Jinx library is distributed under the MIT License (MIT)\nhttps://opensource.org/licenses/MIT\nSee LICENSE.TXT or Jinx.h for license details.\nCopyright (c) 2016 <NAME>\n*/\n\n#pragma once\n#ifndef JX_MEMORY_H__\n#define JX_MEMORY_H__\n\nnamespace Jinx\n{\n // Stand-alone global allocation fu...
950
63
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 41.06, "nodes": 603, "errors": 0, "source_hash": "4c7d806d299b2a84c0b2924cc712ac623652ad27b10d69737dd87e390c54006f", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,263
c
// // SCTRole.h // SceytChat // // Copyright © 2021 Sceyt LLC. All rights reserved. // #import <Foundation/Foundation.h> #import "SCTTypes.h" NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(Role) @interface SCTRole : NSObject /// The role name. @property (nonatomic, readonly, nonnull) NSString *name; /// init is unavaila...
21.59
17
(translation_unit) "//\n// SCTRole.h\n// SceytChat\n//\n// Copyright © 2021 Sceyt LLC. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SCTTypes.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(Role)\n@interface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) N...
64
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.59, "nodes": 42, "errors": 0, "source_hash": "4d49acd3146ed2e616f4775b7a3fe0835f86bfbe2a240b5c4184ec44c5b962a2", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
80,264
c
#include <stdio.h> #include <stdlib.h> int main (void) { printf ("Hello, I'm __GNUC__ %d\n", __GNUC__); #ifdef __CYGWIN__ printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__); #if defined(__x86_64__) printf ("On '__x86_64__'\n"); #endif #endif return (0); }
19.23
13
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main (void)\n{\n printf ("Hello, I'm __GNUC__ %d\n", __GNUC__);\n\n#ifdef __CYGWIN__\n printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);\n#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif\n\n#endif\n\n return (0);\n}\n\n" (preproc_i...
79
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.23, "nodes": 44, "errors": 0, "source_hash": "ece0f4402315ef15d9fc84cffb8e27e5627693cdd1ac91f1ab3d5172c1676d16", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,265
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MTGenericActionFactory.h" @interface MTTVEpisodeActionFactory : MTGenericActionFactory { } + (id)viewDescriptionAction; // IMP=0x0000000100006ff4 + (id)viewAction; // IMP=0x000...
33.53
17
(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 "MTGenericActionFactory.h"\n\n@interface MTTVEpisodeActionFactory : MTGenericActionFactory\n{\n}\n\n+ (id)viewDescriptionAction; // IMP=0x0000000100006ff...
102
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.53, "nodes": 54, "errors": 0, "source_hash": "4e877695dd4495eacdfc02bec7b327f225e9301733dc61e4fce7f710236f773e", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
80,266
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSDate, NSSet, NSString; @interface QEngineBizlog : NSObject { NSSet *_observers; NSString *_qe_tr...
37.14
22
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDate, NSSet, NSString;\n\n@interface QEngineBizlog : NSObject\n{\n NSSet *...
185
19
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.14, "nodes": 116, "errors": 0, "source_hash": "ecca3aa0fdb2f0ba5ab4317c9e78dd133a9e47a8e45360afc840fe2dc99ebab6", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
80,267
c
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2018 <NAME>. All rights reserved. *...
39.19
70
(translation_unit) "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2018 <NAME>. All rights reserved. ...
538
16
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 39.19, "nodes": 336, "errors": 0, "source_hash": "fc9cc072d970d92c6a9a0e4783f2e5fc656cd4240322ad2d6c31855dc0d98abb", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,268
c
// // XJPlayManager.h // XJPlayer // // Created by 江鑫 on 2018/5/1. // Copyright © 2018年 XJ. All rights reserved. // #import <Foundation/Foundation.h> @interface XJPlayManager : NSObject @end
18.5
10
(translation_unit) "//\n// XJPlayManager.h\n// XJPlayer\n//\n// Created by 江鑫 on 2018/5/1.\n// Copyright © 2018年 XJ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XJPlayManager : NSObject\n\n@end\n" (comment) "//" (comment) "// XJPlayManager.h" (comment) "// XJPlayer" (commen...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.5, "nodes": 10, "errors": 0, "source_hash": "9eb4a57bc8079ea554b0e52dd894b285b8f2f69c92af5d2998b4db3e600c9cd2", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundatio...
80,269
c
// -*- C++ -*- $Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $ #ifndef _SCALESAL_H_ #define _SCALESAL_H_ #include <Segmentation.h> #include <stdio.h> // #include <fftw3.h> namespace picsom { class XYS{ public: XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; short int x; short int y; short...
26.21
183
(translation_unit) "// -*- C++ -*- $Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $\n\n#ifndef _SCALESAL_H_\n#define _SCALESAL_H_\n\n#include <Segmentation.h>\n#include <stdio.h>\n// #include <fftw3.h>\n\nnamespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n shor...
1,650
69
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 26.21, "nodes": 981, "errors": 0, "source_hash": "2f725711b3f252739b1aa997f1e00e130688b05b0afdb778a21fc2c91426a85f", "categorized_nodes": 672}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,270
c
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
27.61
214
(translation_unit) "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS ...
1,562
57
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 27.61, "nodes": 976, "errors": 0, "source_hash": "9e64c3e083954c645986f8cc1ff10e341b7809785b59a185908f004e9ced5e43", "categorized_nodes": 592}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,271
c
/* * isblank() and iswblank() are not available with many pre-XSH6 * systems. Check whether isblank was defined, and assume it is * not available if not. */ /* Sccsid @(#)blank.h 1.3 (gritter) 5/1/04 */ #ifndef __dietlibc__ #ifndef LIBCOMMON_BLANK_H #define LIBCOMMON_BLANK_H 1 #include <ctype.h> #include <wctype....
20.41
32
(translation_unit) "/*\n * isblank() and iswblank() are not available with many pre-XSH6\n * systems. Check whether isblank was defined, and assume it is\n * not available if not.\n */\n/* Sccsid @(#)blank.h 1.3 (gritter) 5/1/04 */\n\n#ifndef __dietlibc__\n#ifndef LIBCOMMON_BLANK_H\n#define LIBCOMMON_BLANK_H 1\n\n#incl...
124
2
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.41, "nodes": 94, "errors": 0, "source_hash": "b3b9e39eeaa9ac6727a17e92d3bf2aac12cd823506e6fafcf2e833e0cdaa5613", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
80,272
c
/* capng_c */ /* Copyright 2020- <NAME>*/ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ /* You may obtain a copy of the License at */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* Unless required by applicable...
31.16
55
(translation_unit) "/* capng_c */\n/* Copyright 2020- <NAME>*/\n/* */\n/* Licensed under the Apache License, Version 2.0 (the "License"); */\n/* you may not use this file except in compliance with the License. */\n/* You may obtain a copy of the License at */\n/* http://www.apache.org/licenses/LICENSE-2.0 */\n/* Un...
277
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.16, "nodes": 203, "errors": 0, "source_hash": "52f4962d6985f9a4ff8f00c26f7c75247fabf929e4a731a3fe29a81a82118ed2", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,273
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <uthash.h> #include "utils.h" #include "base_seq_repr.h" #include "htslib/synced_bcf_reader.h" struct cosm_count_table { // the following two fields form the key uint32_t pos; uint32_t b5alt; // value uint32_t count; UT_h...
25.17
82
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <stddef.h>\n#include <uthash.h>\n\n#include "utils.h"\n#include "base_seq_repr.h"\n\n#include "htslib/synced_bcf_reader.h"\n\nstruct cosm_count_table {\n // the following two fields form the key\n uint32_t pos;\n uint32_t b5alt;\...
704
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 25.17, "nodes": 438, "errors": 0, "source_hash": "d08ed16e36d9dfa67a5a03ca042254dd5598c7d254b70095238de006aa4aa263", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,274
c
#ifndef _INCLUDE_EC_PRV_B66_UTIL_H #define _INCLUDE_EC_PRV_B66_UTIL_H #include <cstdint> #include <span> #include <vector> namespace ec_prv::b66::util { auto unpack(uint32_t n) -> std::vector<uint8_t>; auto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void; auto pack(std::span<uint8_t> src) -> uint32_t; auto ...
35.42
12
(translation_unit) "#ifndef _INCLUDE_EC_PRV_B66_UTIL_H\n#define _INCLUDE_EC_PRV_B66_UTIL_H\n\n#include <cstdint>\n#include <span>\n#include <vector>\n\nnamespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<...
125
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.42, "nodes": 87, "errors": 0, "source_hash": "16ae0f9be4ad7a24bb0106536753bf49f8cf6a045595ed84468237bd4f4755e7", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,275
c
__global__ void bucketsort (const float* input , const int* indice, float* output, const unsigned int* prefixoffsets, const unsigned int* offsets, const int listsize) { const int grp_id = blockIdx.x; const int gid = blockIdx.x * blockDim.x + threadIdx.x; const int lid = threadIdx.x; const i...
34.59
27
(translation_unit) "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)\n{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const in...
333
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.59, "nodes": 227, "errors": 0, "source_hash": "7326a6edad0f9acc7e103f29308c4311109ad6ca0ed40d463d371e1b51d4ca23", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
80,276
c
#ifndef SQUID_MMAPPEDFILE_H #define SQUID_MMAPPEDFILE_H #include "cbdata.h" #include "DiskIO/DiskFile.h" #include "DiskIO/IORequestor.h" class MmappedFile : public DiskFile { public: void *operator new(size_t); void operator delete(void *); MmappedFile(char const *path); ~MmappedFile(); virtual v...
33.69
36
(translation_unit) "#ifndef SQUID_MMAPPEDFILE_H\n#define SQUID_MMAPPEDFILE_H\n\n#include "cbdata.h"\n#include "DiskIO/DiskFile.h"\n#include "DiskIO/IORequestor.h"\n\nclass MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\...
291
18
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.69, "nodes": 188, "errors": 0, "source_hash": "6c59505fa89831a15a6bdfc6050aff84b2ce61c08d86a2d35bc210b731d791a5", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,277
c
// For conditions of distribution and use, see copyright notice in LICENSE #pragma once #include "WebSocketServerApi.h" #include "Win.h" #include "FrameworkFwd.h" #include "WebSocketFwd.h" #include "kNetFwd.h" #include "WebSocketServer.h" #include "SyncState.h" #include "UserConnection.h" namespace ...
29.77
39
(translation_unit) "// For conditions of distribution and use, see copyright notice in LICENSE \n \n#pragma once \n \n#include "WebSocketServerApi.h" \n#include "Win.h" \n \n#include "FrameworkFwd.h" \n#include "WebSocketFwd.h" \n#include "kNetFwd.h" \n \n#include "WebSocketServer.h" \n#include "SyncState.h" \n#include...
245
15
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.77, "nodes": 140, "errors": 0, "source_hash": "771e7ba45d64395dfcd2d625797ce3365dd5357e85b1a1f44ce7d484c8eaf194", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,278
c
/* header file for LnxMP.c */ void MP_Init(int *nproc, int *irc); void MP_Taskwait(int *taskid); int MP_Sndsig(int *taskid); int MP_Waitsig(int *taskid); void MP_Killtask(int *taskid); void MP_End(); void MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...); void MP_Taskinit(int *taskid, void (*...
34
15
(translation_unit) "/* header file for LnxMP.c */\n\nvoid MP_Init(int *nproc, int *irc);\n \nvoid MP_Taskwait(int *taskid);\n\nint MP_Sndsig(int *taskid);\n\nint MP_Waitsig(int *taskid);\n\nvoid MP_Killtask(int *taskid);\n\nvoid MP_End();\n\nvoid MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...);\n\nv...
234
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.0, "nodes": 165, "errors": 0, "source_hash": "63957e92f6454253fc1d61885ab15d60ae64d8d93527a93600aa17a9935d3375", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void MP_In...
80,279
c
#include<stdio.h> main() { printf("A"); sleep(1); printf("B"); }
8.29
7
(translation_unit) "#include<stdio.h>\nmain()\n{\nprintf("A");\nsleep(1);\nprintf("B");\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (expression_statement) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" ...
44
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 8.29, "nodes": 18, "errors": 0, "source_hash": "a2f4b360bebc71e13bfc85d83be39269c51334793cac28db3d9ba5c2cf436163", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
80,280
c
/* This file is part of Lwt, released under the MIT license. See LICENSE.md for details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */ #include "lwt_config.h" #if !defined(LWT_ON_WINDOWS) #include <caml/alloc.h> #include <caml/memory.h> #include <caml/mlvalues.h> #include <caml/socketaddr.h...
23.88
197
(translation_unit) "/* This file is part of Lwt, released under the MIT license. See LICENSE.md for\n details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */\n\n\n\n#include "lwt_config.h"\n\n#if !defined(LWT_ON_WINDOWS)\n\n#include <caml/alloc.h>\n#include <caml/memory.h>\n#include <caml/mlvalues...
1,619
2
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 23.88, "nodes": 1010, "errors": 0, "source_hash": "b87feb1dc1dd1ec3438a5c3ea639fbe58608bcd0e25e2ac2eaa511af62edfb25", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,281
c
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
37.26
89
(translation_unit) "/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * Copyright 2018 Couchbase, Inc\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of th...
468
21
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 37.26, "nodes": 271, "errors": 0, "source_hash": "ce9e4e394f8204e625089599f852c2b1932815c19ed177ce91b26d1fc49763e7", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,282
c
//////////////////////////////////////////////////////////////////////////////// // // Package: RoadNarrows Robotics Application Tool Kit // // Link: https://github.com/roadnarrows-robotics/rnr-sdk // // Library: librnr_appkit // // File: CmdFormDef.h // /*! \file * * \brief Command line command form de...
27.87
288
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// Package: RoadNarrows Robotics Application Tool Kit\n//\n// Link: https://github.com/roadnarrows-robotics/rnr-sdk\n//\n// Library: librnr_appkit\n//\n// File: CmdFormDef.h\n//\n/*! \file\n *\n * \br...
594
29
{"language": "c", "success": true, "metadata": {"lines": 288, "avg_line_length": 27.87, "nodes": 284, "errors": 0, "source_hash": "51f05ca9ebe6dda81baf4295de408ce664fc9d3fe3e5d5f99f607b784ba16660", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,283
c
#ifndef NODE_H #define NODE_H #include "MVector.h" class Node { private: MVector weights; double bias; double z; double activation; public: Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); double getBias() const { return bias; }; ...
24.48
29
(translation_unit) "#ifndef NODE_H \n#define NODE_H \n \n#include "MVector.h" \n \n \nclass Node { \nprivate: \n MVector weights; \n double bias; \n double z; \n double activation; \npublic: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); \n double getBi...
250
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.48, "nodes": 139, "errors": 0, "source_hash": "7477b3f45fe6bf4d60ef92c01b45b908a62b103abb92a65caa9a192712f4a0cc", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,284
c
// // MMHTTPRequestHandler.h // Demo // // Created by Tank on 08/06/2017. // Copyright © 2017 Tank. All rights reserved. // #import <Foundation/Foundation.h> #import "MMHTTPConfig.h" @interface MMHTTPRequestHandler : NSObject @property(nonatomic, readonly) ZGHTTPRequestHead *requestHead; @property(nonatomic, re...
32.23
40
(translation_unit) "//\n// MMHTTPRequestHandler.h\n// Demo\n//\n// Created by Tank on 08/06/2017.\n// Copyright © 2017 Tank. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MMHTTPConfig.h"\n\n\n@interface MMHTTPRequestHandler : NSObject\n\n@property(nonatomic, readonly) ZGHTTPRequestHead *re...
360
55
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.23, "nodes": 221, "errors": 0, "source_hash": "d1435bed4f405f324204f7dca4e0e2a6a7e91e839c47ae8e080472825c2a3d1d", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
80,285
c
#include <stdio.h> #include <cs50.h> int main(void) { printf("minutes:\n"); int min = GetInt(); int bottles = min * 12; printf("bottles: %i\n", bottles); }
18.11
9
(translation_unit) "#include <stdio.h>\n#include <cs50.h>\n\nint main(void)\n{\n printf("minutes:\n");\n int min = GetInt();\n int bottles = min * 12;\n printf("bottles: %i\n", bottles);\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_i...
66
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.11, "nodes": 41, "errors": 0, "source_hash": "f7936a94874998bdc93df200cf67facc1ddfbb75dfd8429f209ab86d2c394f43", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,286
c
// // RecommendHeaderView.h // Live // // Created by Cheng on 2017/5/9. // Copyright © 2017年 Joe. All rights reserved. // #import <UIKit/UIKit.h> @interface RecommendHeaderView : UICollectionReusableView @property (weak, nonatomic) IBOutlet UIImageView *iconImageView; @property (weak, nonatomic) IBOutlet UILabel ...
26.58
12
(translation_unit) "//\n// RecommendHeaderView.h\n// Live\n//\n// Created by Cheng on 2017/5/9.\n// Copyright © 2017年 Joe. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RecommendHeaderView : UICollectionReusableView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;\n@property (we...
59
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.58, "nodes": 41, "errors": 0, "source_hash": "d7206f7414d95a328ed5ccb456a4d0411947b39676ccd2c0147ddcd69ed3a83c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
80,287
c
// Generated by generate_test_data.py using TFL version 2.6.0 as reference. #pragma once #define CONV_2_OUT_CH 4 #define CONV_2_IN_CH 2 #define CONV_2_INPUT_W 6 #define CONV_2_INPUT_H 3 #define CONV_2_DST_SIZE 72 #define CONV_2_INPUT_SIZE 36 #define CONV_2_OUT_ACTIVATION_MIN -101 #define CONV_2_OUT_ACTIVATION_MAX 127 #...
28.22
23
(translation_unit) "// Generated by generate_test_data.py using TFL version 2.6.0 as reference.\n#pragma once\n#define CONV_2_OUT_CH 4\n#define CONV_2_IN_CH 2\n#define CONV_2_INPUT_W 6\n#define CONV_2_INPUT_H 3\n#define CONV_2_DST_SIZE 72\n#define CONV_2_INPUT_SIZE 36\n#define CONV_2_OUT_ACTIVATION_MIN -101\n#define CO...
89
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.22, "nodes": 87, "errors": 0, "source_hash": "52ff89e25f1712d0ba2f29da2c5bc3be7d00162ea96b74c9d4d87f8b158391ba", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,288
c
@import Cocoa; @interface NotificationWindowManager : NSObject @property(nonatomic) NSString* text; @end
25.25
4
(translation_unit) "@import Cocoa;\n\n@interface NotificationWindowManager : NSObject\n\n@property(nonatomic) NSString* text;\n\n@end\n" (ERROR) "@" (ERROR) "@" (declaration) "import Cocoa;" (type_identifier) "import" (identifier) "Cocoa" (;) ";" (ERROR) "@interface NotificationWindowManager : NSO...
30
8
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.25, "nodes": 22, "errors": 0, "source_hash": "6f5e75eaea42f9d9043beb8d97c603f8833abb1b33089f6bf09b5b6eb0bb5f93", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
80,289
c
/* * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $ */ #pragma once AbstractEditWnd *createEdit( HWND hwndParent, LPCTSTR pszText, bool bWordWrap ); // end of file
24.57
7
(translation_unit) "/*\n * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $\n */\n\n#pragma once\n\nAbstractEditWnd *createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap );\n\n// end of file\n" (comment) "/*\n * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $\n */" (preproc_call) "#pragm...
27
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.57, "nodes": 19, "errors": 0, "source_hash": "717d30c2db9f35e76b03c2b79e39f5b641e280078df093e2c9210bbedb35595a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,290
c
// This file is part of the Peano project. For conditions of distribution and // use, please see the copyright notice at www.peano-framework.org #ifndef _MATRIXFREE_SOLVER_STENCIL_H_ #define _MATRIXFREE_SOLVER_STENCIL_H_ #include "peano/utils/Globals.h" #include "tarch/la/Vector.h" #include "tarch/la/Matrix.h" #incl...
43.97
37
(translation_unit) "// This file is part of the Peano project. For conditions of distribution and\n// use, please see the copyright notice at www.peano-framework.org\n#ifndef _MATRIXFREE_SOLVER_STENCIL_H_\n#define _MATRIXFREE_SOLVER_STENCIL_H_\n\n#include "peano/utils/Globals.h"\n\n#include "tarch/la/Vector.h"\n#includ...
270
20
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 43.97, "nodes": 173, "errors": 0, "source_hash": "b71840e7ce294e25993c6868a2434b3df58c1bb234708aa00720a86e83abcc1b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,291
c
#pragma once #include <led.h> #include <stdint.h> #define LED_R_PIN PORTD.PODR.BIT.B2 //R #define LED_G_PIN PORTD.PODR.BIT.B3 //G #define LED_B_PIN PORTD.PODR.BIT.B4 //B namespace umouse { /////////////////////////////////////////////////////////////////// class LED_R : public LED { public: ...
27.28
65
(translation_unit) "#pragma once\n\n#include <led.h>\n#include <stdint.h>\n\n#define LED_R_PIN PORTD.PODR.BIT.B2 //R\n#define LED_G_PIN PORTD.PODR.BIT.B3 //G\n#define LED_B_PIN PORTD.PODR.BIT.B4 //B\n\nnamespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LED_R : pub...
507
10
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.28, "nodes": 283, "errors": 0, "source_hash": "3eda8b70295d3dc82d0a1b7e1156c3e452255bf0d6af96bb2e9c3f3f9f2343ac", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,292
c
// Scene.h: interface for the Scene class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) #define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ #include <GL/gl.h> #include <GL/glu.h> // #i...
26.41
273
(translation_unit) "// Scene.h: interface for the Scene class. \n// \n////////////////////////////////////////////////////////////////////// \n#if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) \n#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ \n \n \n \n \n#include <GL/gl.h...
2,322
30
{"language": "c", "success": true, "metadata": {"lines": 273, "avg_line_length": 26.41, "nodes": 1389, "errors": 0, "source_hash": "1371d2d2ca0c6b93d14fb836088c4a9b632b67e671437e9816fdc5c1442d9412", "categorized_nodes": 976}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !de...
80,293
c
#ifeq($(.Name),Optional||Nillable) #ifneq($($aStaffIncludes.!match/$(.Name).h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h] #ifeqend #ifeqend // optional or nillable \ #ifeq($(.Namespace),std::) \ #var sCurrCheckType $(.Name) #ifeq($($sCurrCheckType),multimap) #var sCurrCheckType map #ifeqend ...
28.11
46
(translation_unit) "#ifeq($(.Name),Optional||Nillable)\n#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n#ifeqend\n#ifeqend // optional or nillable\n\\n#ifeq($(.Namespace),std::)\n\\n#var sCurrCheckType $(.Name)\n#ifeq($($sCurrCheckType),multimap)\n#va...
129
2
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.11, "nodes": 121, "errors": 0, "source_hash": "46e77292787b268db249e12f76d2fdff5268818aa77db55d5e595569ef638d72", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#ifeq($(...
80,294
c
#ifndef SCENETEXTURE_H #define SCENETEXTURE_H #include "scene.h" #include "glslprogram.h" #include "cube.h" #include <glm/glm.hpp> class SceneTexture : public Scene { private: GLSLProgram prog; Cube cube; float angle; void setMatrices(); void compileAndLinkShader(); publi...
14.55
31
(translation_unit) "#ifndef SCENETEXTURE_H \n#define SCENETEXTURE_H \n \n#include "scene.h" \n#include "glslprogram.h" \n#include "cube.h" \n \n#include <glm/glm.hpp> \n \nclass SceneTexture : public Scene \n{ \nprivate: \n GLSLProgram prog; \n \n Cube cube; \n \n float angle; \n \n void setMatrices(); \n ...
123
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 14.55, "nodes": 74, "errors": 0, "source_hash": "ca56f47b00b197c097b5511cb0fd639687fdb8dd9d55d8ad69b59965c8fc7548", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,295
c
#pragma once template <typename T> struct MaxHeap { // O(N) static void heapify(T data[], int size) { for (int i = (size - 2) / 2; i >= 0; i--) siftDown(data, i, size); } static void heapify(vector<T>& data) { heapy(data.data(), int(data.size())); } // O(NlogN) ...
26.05
41
(translation_unit) "#pragma once\n\ntemplate <typename T>\nstruct MaxHeap {\n // O(N)\n static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }\n\n static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size(...
459
5
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.05, "nodes": 281, "errors": 0, "source_hash": "a863ed287f7bbc4a50b71151cfad20d629836c166f244eaf3068c1dbf0717ed9", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,296
c
/*************************************************************************** * * * DynELA Project * * * * (c) Copy...
36.5
121
(translation_unit) "/***************************************************************************\n * *\n * DynELA Project *\n * ...
608
16
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 36.5, "nodes": 401, "errors": 0, "source_hash": "d227d42ee42b1929671d951f839c9e21b7df6e385a031f4c45f81d99ec81a884", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,297
c
#pragma once #ifndef STARDUST_I_NONCOPYABLE_H #define STARDUST_I_NONCOPYABLE_H namespace stardust { class INoncopyable { protected: INoncopyable() = default; INoncopyable(const INoncopyable&) = delete; INoncopyable& operator =(const INoncopyable&) = delete; ~INoncopyable()...
22.6
15
(translation_unit) "#pragma once\n#ifndef STARDUST_I_NONCOPYABLE_H\n#define STARDUST_I_NONCOPYABLE_H\n\nnamespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = ...
87
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.6, "nodes": 49, "errors": 0, "source_hash": "65f9dc5d534eb083f0e03529741be489f17ce16890fe44b68f05fe09895efb6c", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,298
c
// // Created by xvzezi on 2019/3/25. // #ifndef HELLOCLION_QXHEADER_H #define HELLOCLION_QXHEADER_H #include "qxworld.h" #endif //HELLOCLION_QXHEADER_H
20.86
7
(translation_unit) "//\n// Created by xvzezi on 2019/3/25.\n//\n\n#ifndef HELLOCLION_QXHEADER_H\n#define HELLOCLION_QXHEADER_H\n\n#include "qxworld.h"\n\n#endif //HELLOCLION_QXHEADER_H\n" (comment) "//" (comment) "// Created by xvzezi on 2019/3/25." (comment) "//" (preproc_ifdef) "#ifndef HELLOCLION_QXHEADER_H\...
18
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.86, "nodes": 10, "errors": 0, "source_hash": "aa7a34c891842ce312a4f6059b030aab1e3a0770fae18840a7c60878e8c37223", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HE...
80,299