language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#pragma once #include "afxwin.h" class CClipButton : public CButton { public: CClipButton(); ~CClipButton(); CBitmap m_NormalBitmapDC; CBitmap m_DisabledBitmapDC; COLORREF m_TextColor; CString m_BtnText; BOOL m_IsHot; void SetSkin(UINT uiNormal, UINT uiDisabled, COLORREF clrTextColor); void SetText(CString ...
26.54
24
(translation_unit) "#pragma once\n#include "afxwin.h"\nclass CClipButton :\n public CButton\n{\npublic:\n CClipButton();\n ~CClipButton();\n\n CBitmap m_NormalBitmapDC;\n CBitmap m_DisabledBitmapDC;\n COLORREF m_TextColor;\n CString m_BtnText;\n BOOL m_IsHot;\n\n void SetSkin(UINT uiNormal, UINT uiDisabled, COLORREF cl...
193
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.54, "nodes": 132, "errors": 0, "source_hash": "32a0df7addba2bf7945d3f1906004009e54b97431738a845872fe1f8e3d9c652", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,000
c
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
30.49
200
(translation_unit) "/*\n * Copyright (C) 2012 BMW Car IT GmbH\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 re...
839
46
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 30.49, "nodes": 446, "errors": 0, "source_hash": "741406b47527bdd92ff9676bb2e350d2f07dd897a77ccf6fe81e8608e5ec2b02", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,001
c
// // QIMDaysmatterModel.h // qunarChatIphone // // Created by 李露 on 2018/3/19. // #import "QIMCommonUIFramework.h" typedef NS_ENUM(NSUInteger, QTDaysmatterType) { QTDaysmatterTypeFestival = 0, QTDaysmatterTypeBirth, QTDaysmatterTypeYear, }; @interface QIMDaysmatterModel : NSObject @property (nonatom...
23.69
16
(translation_unit) "//\n// QIMDaysmatterModel.h\n// qunarChatIphone\n//\n// Created by 李露 on 2018/3/19.\n//\n\n#import "QIMCommonUIFramework.h"\n\ntypedef NS_ENUM(NSUInteger, QTDaysmatterType) {\n QTDaysmatterTypeFestival = 0,\n QTDaysmatterTypeBirth,\n QTDaysmatterTypeYear,\n};\n\n@interface QIMDaysmatterM...
84
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.69, "nodes": 56, "errors": 0, "source_hash": "98e99e66dc3047e9121231036a328c57d13a3d3a19628703a5cf170b2a572fdc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort \"QIM...
6,002
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <float.h> #include <ctype.h> #include <stdarg.h> #include "json.h" #define PAGE_SIZE 4096 /* generated by running: * $ perl -ne '/payload_(start|new)_\w+\(\w+, \"(\w+)\"/ && print "$2\n"' *.c | sort -u | gperf -m 10000 -H hash_output_key -N in_outpu...
28.94
225
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include <float.h>\n#include <ctype.h>\n#include <stdarg.h>\n#include "json.h"\n\n#define PAGE_SIZE 4096\n\n/* generated by running:\n * $ perl -ne '/payload_(start|new)_\w+\(\w+, \"(\w+)\"/ && print "$2\n"' *.c | sort -u | gperf -m 10000...
2,781
1
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 28.94, "nodes": 1742, "errors": 0, "source_hash": "504e51cb4ac33baf8438daa7a3b73e16ae57f37a6911023f593c2de663c68918", "categorized_nodes": 1218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,003
c
/*============================================================================= | @(#)Array.h 1.2 96/02/23 17:48:35 | | Array Class Specification. | Copyright (C) Jet Propulsion Laboratory. | Alaska SAR Facility (ASF) Project. | *============================================================================*/ ...
24.14
29
(translation_unit) "/*=============================================================================\n | @(#)Array.h 1.2 96/02/23 17:48:35\n |\n | Array Class Specification.\n | Copyright (C) Jet Propulsion Laboratory.\n | Alaska SAR Facility (ASF) Project.\n |\n *====================================================...
108
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.14, "nodes": 76, "errors": 0, "source_hash": "d41f9925fcc0f135947475bffb8e8439f88618765d688d8281e8d9e51582aa44", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
6,004
c
#pragma once #include <iostream> #include "../output/output_classes.h" void print_cell_output_usage() { std::cerr << " --out filename write lists of all cells into an HDF5 file" << std::endl; }
32.33
6
(translation_unit) "#pragma once\n\n#include <iostream>\n\n#include "../output/output_classes.h"\n\nvoid print_cell_output_usage() {\n std::cerr << " --out filename write lists of all cells into an HDF5 file" << std::endl;\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "o...
43
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.33, "nodes": 25, "errors": 0, "source_hash": "a4e103ff98c6047812433ba0a1e8bbd106683d90ee40def0fac2c4f13bea8a83", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,005
c
// Name - <NAME> // Roll no. - CED19I028 // Question - Write a program to create a thread. The thread is created by passing an array which // contains more than two integers as input from the main process. The two or more array // elements will be added in the thread and will return the result to the ...
27.47
38
(translation_unit) "// Name - <NAME>\n// Roll no. - CED19I028\n// Question - Write a program to create a thread. The thread is created by passing an array which\n// contains more than two integers as input from the main process. The two or more array\n// elements will be added in the thread and will r...
306
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 27.47, "nodes": 187, "errors": 0, "source_hash": "f20dd0b0436adfd25eef4a273b390f31a65f73a7d6787cd21bc8918dd4010053", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,006
c
/**************************************************************************//** * Copyright (c) 2016 by Silicon Laboratories Inc. All rights reserved. * * http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt ***********************************************************************...
28.88
245
(translation_unit) "/**************************************************************************//**\n * Copyright (c) 2016 by Silicon Laboratories Inc. All rights reserved.\n *\n * http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt\n ***********************************************...
1,389
4
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 28.88, "nodes": 817, "errors": 0, "source_hash": "4925eed4cf881202e7984c0c49048f7b12c61d7688813ec28269d6f69e77106b", "categorized_nodes": 609}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,007
c
#pragma once #define VK_USE_PLATFORM_WIN32_KHR #include <vulkan/vulkan.h> #include <vector> #include "VulkanDebug.h" /* */ struct VulkanInstanceCreateInfo { bool enableValidation; }; /* */ class VulkanInstance { public: VulkanInstance(VulkanInstanceCreateInfo createInfo); ~VulkanInstance(); VkInstance Get...
17.74
27
(translation_unit) "#pragma once\n\n#define VK_USE_PLATFORM_WIN32_KHR\n#include <vulkan/vulkan.h>\n\n#include <vector>\n\n#include "VulkanDebug.h"\n\n/*\n\n*/\nstruct VulkanInstanceCreateInfo {\n bool enableValidation;\n};\n\n\n/*\n\n*/\nclass VulkanInstance\n{\n\npublic:\n VulkanInstance(VulkanInstanceCreateInfo creat...
112
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 17.74, "nodes": 69, "errors": 0, "source_hash": "ea26aa9359aa08ac3aec42c21956047d90a045fe6359f67ad2c90b3f055607ed", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,008
c
#pragma once #include "core_reflect/ClassInfo.h" #include "core_reflect/FunctionTraits.h" namespace RF::reflect::builder { /////////////////////////////////////////////////////////////////////////////// template<class T> void CreateClassInfo( ClassInfo& classInfo ); template<typename T> void CreateFreeStandingVari...
42.79
19
(translation_unit) "#pragma once\n\n#include "core_reflect/ClassInfo.h"\n#include "core_reflect/FunctionTraits.h"\n\n\nnamespace RF::reflect::builder {\n///////////////////////////////////////////////////////////////////////////////\n\ntemplate<class T>\nvoid CreateClassInfo( ClassInfo& classInfo );\n\ntemplate<typenam...
170
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 42.79, "nodes": 115, "errors": 0, "source_hash": "4b9abacd90edb8cbc79693037cee9b4c0fd556ea4deb134bf3aa6b1c1348987e", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,009
c
//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifnd...
30.6
15
(translation_unit) "////////////////////////////////////////////////////////////////////////////////////////////////////\n// NoesisGUI - http://www.noesisengine.com\n// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.\n/////////////////////////////////////////////////////////////////////////////////////...
43
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.6, "nodes": 30, "errors": 0, "source_hash": "b887aa7f7430e186e1edea2524c21de05b558dc62b48e173a80543b27b2d8c9d", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,010
c
// -*- mode: mr32asm; tab-width: 4; indent-tabs-mode: nil; -*- //---------------------------------------------------------------------------- // Copyright (c) 2021 <NAME> // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages aris...
36.2
41
(translation_unit) "// -*- mode: mr32asm; tab-width: 4; indent-tabs-mode: nil; -*-\n//----------------------------------------------------------------------------\n// Copyright (c) 2021 <NAME>\n//\n// This software is provided 'as-is', without any express or implied warranty.\n// In no event will the authors be held li...
172
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 36.2, "nodes": 78, "errors": 0, "source_hash": "59752607dd1b51b02c0fc92e3e641e758dec8c6f091b40a4de609a905e2cdc3a", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,011
c
#pragma once #include "../eterLib/TextFileLoader.h" #include "EffectElementBase.h" #include "EmitterProperty.h" #include "ParticleProperty.h" //#include "ParticleInstance.h" class CParticleInstance; class CParticleSystemData : public CEffectElementBase { public: virtual ~CParticleSystemData(); CParticleSyste...
30.07
29
(translation_unit) "#pragma once\n\n#include "../eterLib/TextFileLoader.h"\n\n#include "EffectElementBase.h"\n#include "EmitterProperty.h"\n#include "ParticleProperty.h"\n//#include "ParticleInstance.h"\n\nclass CParticleInstance;\n\nclass CParticleSystemData : public CEffectElementBase\n{\n public: \n virtual ~CParti...
203
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.07, "nodes": 121, "errors": 0, "source_hash": "7d8a2afdee36d87e80a7885dbabfa81ad01897149fc9cd9f36af73087c4c0462", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,012
c
/* * Generic Helper Functions * Author: <NAME> * * These are generic helper functions that can be used in any project. */ #ifndef __NATHANPRINGLE_HELPER_FUNCTIONS_H_ #define __NATHANPRINGLE_HELPER_FUNCTIONS_H_ // Place this define above including math.h #define _USE_MATH_DEFINES #include <math.h> #include <iostream>...
26.6
175
(translation_unit) "/*\n* Generic Helper Functions\n* Author: <NAME>\n*\n* These are generic helper functions that can be used in any project.\n*/\n\n#ifndef __NATHANPRINGLE_HELPER_FUNCTIONS_H_\n#define __NATHANPRINGLE_HELPER_FUNCTIONS_H_\n\n// Place this define above including math.h\n#define _USE_MATH_DEFINES\n\n#inc...
836
22
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 26.6, "nodes": 513, "errors": 0, "source_hash": "e5f32142bfc400eb2a6e4fe24a419a4143a5066f61c149009c43f968b9c9d2d4", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,013
c
// // HHBFirstLetter.h // // Created by DylanHu on 2015/2/27. // Copyright © 2017年 DylanHu. All rights reserved. // #ifndef HHBFirstLetter_h #define HHBFirstLetter_h #include <stdio.h> char getFirstLetter(unsigned short chineseString); #endif /* QLFirstLetter_h */
23.36
11
(translation_unit) "//\n// HHBFirstLetter.h\n//\n// Created by DylanHu on 2015/2/27.\n// Copyright © 2017年 DylanHu. All rights reserved.\n//\n\n#ifndef HHBFirstLetter_h\n#define HHBFirstLetter_h\n\n#include <stdio.h>\n\nchar getFirstLetter(unsigned short chineseString);\n\n#endif /* QLFirstLetter_h */\n" (comment)...
31
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.36, "nodes": 20, "errors": 0, "source_hash": "2204f2e0bb72c3a21255683d53a603dfedd6a386e9f4a267bb7c8447cfd85337", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef HHB...
6,014
c
/* Copyright (C) 2006,2007,2008 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but ...
34.83
138
(translation_unit) "/* Copyright (C) 2006,2007,2008 MySQL AB\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; version 2 of the License.\n\n This program is distributed in the hope that ...
722
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 34.83, "nodes": 401, "errors": 0, "source_hash": "6b295c007357760fe890a690abaae1a48ffb2b60a0c8004ed8acd71dd4fdf3de", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,015
c
#import <AddressBook/AddressBook.h> @class BBAction, BBSectionParameters, BBSectionSubtypeParameters; typedef NS_ENUM(NSUInteger, BBBulletinAccessoryStyle) { BBBulletinAccessoryStyleNone, BBBulletinAccessoryStyleVIP = 4, }; @interface BBBulletin : NSObject @property (nonatomic, retain) NSString *bulletinID; @prop...
44.33
30
(translation_unit) "#import <AddressBook/AddressBook.h>\n\n@class BBAction, BBSectionParameters, BBSectionSubtypeParameters;\n\ntypedef NS_ENUM(NSUInteger, BBBulletinAccessoryStyle) {\n BBBulletinAccessoryStyleNone,\n BBBulletinAccessoryStyleVIP = 4,\n};\n\n@interface BBBulletin : NSObject\n\n@property (nonatomic, reta...
349
55
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 44.33, "nodes": 247, "errors": 0, "source_hash": "d886655ce963bba1ef0b2e25189cdc511d9056d5979c4129fc3dd01fc7fdedb5", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
6,016
c
#include "emscripten.h" #include "gmp.h" #include "mpfr.h" size_t EMSCRIPTEN_KEEPALIVE sizeof_unsigned_long() { return sizeof(unsigned long); } size_t EMSCRIPTEN_KEEPALIVE sizeof_mpfr_struct() { return sizeof(__mpfr_struct); } mpfr_sign_t EMSCRIPTEN_KEEPALIVE get_mpfr_sign(mpfr_t rop) { return rop[0]._mp...
28.94
33
(translation_unit) "#include "emscripten.h"\n#include "gmp.h"\n#include "mpfr.h"\n\nsize_t EMSCRIPTEN_KEEPALIVE sizeof_unsigned_long() {\n return sizeof(unsigned long);\n}\n\nsize_t EMSCRIPTEN_KEEPALIVE sizeof_mpfr_struct() {\n return sizeof(__mpfr_struct);\n}\n\nmpfr_sign_t EMSCRIPTEN_KEEPALIVE get_mpfr_sign(mpf...
298
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.94, "nodes": 181, "errors": 0, "source_hash": "d34f36f7217d063124b956ab80386d97203f48eca2655c1889566e18591f9c6e", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,017
c
#pragma once #include "Interface/PackageServiceInterface.h" #include "Kernel/ServiceBase.h" #include "Kernel/Factory.h" #include "Package.h" namespace Mengine { class PackageService : public ServiceBase<PackageServiceInterface> { public: PackageService(); ~Package...
32.3
57
(translation_unit) "#pragma once \n \n#include "Interface/PackageServiceInterface.h" \n \n#include "Kernel/ServiceBase.h" \n#include "Kernel/Factory.h" \n \n#include "Package.h" \n \nnamespace Mengine \n{ \n class PackageService \n : public ServiceBase<PackageServiceInterface> \n { \n public: \n ...
412
32
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.3, "nodes": 201, "errors": 0, "source_hash": "ec261c312de5bcb81cdcb0b7ea03e9cfa92b07c9f22d7a4d19379bbb040abbe1", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,018
c
#ifndef COSMO_ENGINE_ACTOR_H #define COSMO_ENGINE_ACTOR_H #include "defines.h" #include "tile.h" #define MAX_ACTORS 410 typedef struct ActorData { int actorInfoIndex; int frame_num; int x; int y; int update_while_off_screen_flag; int can_update_if_goes_off_screen_flag; int non_blocking_fl...
31.14
63
(translation_unit) "#ifndef COSMO_ENGINE_ACTOR_H\n#define COSMO_ENGINE_ACTOR_H\n\n#include "defines.h"\n#include "tile.h"\n\n#define MAX_ACTORS 410\n\ntypedef struct ActorData\n{\n int actorInfoIndex;\n int frame_num;\n int x;\n int y;\n int update_while_off_screen_flag;\n int can_update_if_goes_off_s...
455
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.14, "nodes": 344, "errors": 0, "source_hash": "0289db9025cdfe2f7d8a07a3d1516ea5599654cb2486ebd24045cefec05784d9", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,019
c
#include "sort.h" void qSort(int* array, int size) { int left = 0; int right = size - 1; const int pivot = array[(left + right) / 2]; while (left <= right) { while (array[left] < pivot) { left++; } while (array[right] > pivot) { right-...
19.06
34
(translation_unit) "#include "sort.h"\n\nvoid qSort(int* array, int size)\n{\n int left = 0;\n int right = size - 1;\n const int pivot = array[(left + right) / 2];\n while (left <= right)\n {\n while (array[left] < pivot)\n {\n left++;\n }\n while (array[right] > pi...
234
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.06, "nodes": 139, "errors": 0, "source_hash": "5a42dcd43295979dcbddf074d30e8b5c53b9877f59ba76e2c7ade25d87427194", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,020
c
/* * Copyright (C) 2016 Red Hat, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your opt...
30.09
188
(translation_unit) "/*\n * Copyright (C) 2016 Red Hat, Inc.\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of th...
1,813
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 30.09, "nodes": 1054, "errors": 0, "source_hash": "4dad5605247f31655fe7fb5136bcce184362361ace09dc7c08f98dde7288e48b", "categorized_nodes": 673}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
6,021
c
// // LCProfileViewController.h // LeanCloud // // Created by Mac on 15/11/16. // Copyright © 2015年 Macmini. All rights reserved. // #import <UIKit/UIKit.h> @interface LCProfileViewController : UIViewController @end
21
10
(translation_unit) "//\n// LCProfileViewController.h\n// LeanCloud\n//\n// Created by Mac on 15/11/16.\n// Copyright © 2015年 Macmini. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LCProfileViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LCProfileViewController.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "26fdb2e8fb4398689ecbe9cd12d74f3aa45c23a88e140e67ec7b51257f20dd5f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
6,022
c
/** *Licensed to the Apache Software Foundation (ASF) under one *or more contributor license agreements. See the NOTICE file *distributed with this work for additional information *regarding copyright ownership. The ASF licenses this file *to you under the Apache License, Version 2.0 (the *"License"); you may n...
38.53
75
(translation_unit) "/**\n *Licensed to the Apache Software Foundation (ASF) under one\n *or more contributor license agreements. See the NOTICE file\n *distributed with this work for additional information\n *regarding copyright ownership. The ASF licenses this file\n *to you under the Apache License, Version 2.0 (th...
507
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 38.53, "nodes": 316, "errors": 0, "source_hash": "ed3102f0999e17bf3ed04525fafa65ecc758b9e6a9d187e23abd285928fe4474", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,023
c
/* taken from https://github.com/google/sanitizers/wiki/AddressSanitizerIntelMemoryProtectionExtensions */ /* array write out of bounds */ #include <stdio.h> #include <stdlib.h> int g[10]; __attribute__((noinline)) int dummy(int* p) { return *p; } int main(int argc, char **argv) { g[11] = 42; int r = dummy(g)...
22.6
15
(translation_unit) "/* taken from https://github.com/google/sanitizers/wiki/AddressSanitizerIntelMemoryProtectionExtensions */\n/* array write out of bounds */\n#include <stdio.h>\n#include <stdlib.h>\n\nint g[10];\n\n__attribute__((noinline)) \nint dummy(int* p) {\n return *p;\n}\n\nint main(int argc, char **argv) {\...
107
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.6, "nodes": 67, "errors": 0, "source_hash": "b91d3e39d66342937e6337d3930f7842e79f0244882a04c5b3035ebfcb190752", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,024
c
// // Created by chiliu on 5/12/18. // #ifndef MYSLAM_CONFIG_H #define MYSLAM_CONFIG_H #include "common_include.h" namespace myslam { class Config { private: static std::shared_ptr<Config> config_; cv::FileStorage file_; Config(){} // private construction makes a singleton p...
25.11
27
(translation_unit) "//\n// Created by chiliu on 5/12/18.\n//\n\n#ifndef MYSLAM_CONFIG_H\n#define MYSLAM_CONFIG_H\n\n#include "common_include.h"\n\nnamespace myslam\n{\n class Config\n {\n private:\n static std::shared_ptr<Config> config_;\n cv::FileStorage file_;\n\n Config(){} // private...
156
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.11, "nodes": 78, "errors": 0, "source_hash": "2380f6aa19486def87235d3a4c01faaa9dcd604bce9e192dd0b88e13d17a2d32", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,025
c
/* Copyright 2020-2021 MultiMC Contributors * * 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.31
55
(translation_unit) "/* Copyright 2020-2021 MultiMC Contributors\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...
333
17
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 32.31, "nodes": 208, "errors": 0, "source_hash": "14d5efff5a082377d96a0a8a32fb27cbb753c509438d8d8ab2969149bd6eb1df", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,026
c
/** * Ti.Bump Module * Copyright (c) 2010-2013 by Appcelerator, Inc. All Rights Reserved. * Please see the LICENSE included with this distribution for details. */ #import "TiModule.h" #import "BumpAPI.h" #import "BumpAPIUI.h" @interface TiBumpModule : TiModule<BumpAPIDelegate> { BumpAPI *bump; BumpAPIUI *bu...
22.64
14
(translation_unit) "/**\n * Ti.Bump Module\n * Copyright (c) 2010-2013 by Appcelerator, Inc. All Rights Reserved.\n * Please see the LICENSE included with this distribution for details.\n */\n\n#import "TiModule.h"\n#import "BumpAPI.h"\n#import "BumpAPIUI.h"\n\n@interface TiBumpModule : TiModule<BumpAPIDelegate> \n{\n ...
43
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.64, "nodes": 32, "errors": 0, "source_hash": "1e122519460292de4f6b8410c48e56b026274e11155b481c2b0d732f6892c87c", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,027
c
#ifndef LEDS_H_ #define LEDS_H_ #include <sys/types.h> #include "devices.h" #include "ioport.h" #include <drv_ioport.h> #define IS_OUTPUT_TYPE(port) #define IOPORT_GET_BIT(drv,port,bit) \ ioport_get_value(drv,port) & (1 << bit) \ // #if IS_OUTPUT_TYPE(port) \ #error Cannot Get value of an OUTP...
49.75
16
(translation_unit) "#ifndef LEDS_H_\n#define LEDS_H_\n\n#include <sys/types.h>\n#include "devices.h"\n#include "ioport.h"\n#include <drv_ioport.h>\n\n#define IS_OUTPUT_TYPE(port)\n\n#define IOPORT_GET_BIT(drv,port,bit) \\n ioport_get_value(drv,port) & (1 << bit) \\n// #if IS_OUTPUT_TYPE(port) \\n #e...
90
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 49.75, "nodes": 63, "errors": 0, "source_hash": "0f8d709ec27d7d022b998179d2e2fb633b6b87c68b426227a2d52faed4c35b8e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,028
c
/* * DO NOT include any system include files here. */ void setpgrp_hack( int jobcode) ; /* Problem: 1. On some systems, setpgrp() takes parameters and on others it does not. 2. Mac OSX 10.4 and Mac OSX 10.5 are different, but there does not appear to be a way to tell the difference at compile time. Solution: In...
27.68
22
(translation_unit) "/*\n* DO NOT include any system include files here.\n*/\nvoid setpgrp_hack( int jobcode) ;\n\n\n/*\n\nProblem:\n\n1. On some systems, setpgrp() takes parameters and on others it does not.\n\n2. Mac OSX 10.4 and Mac OSX 10.5 are different, but there does not\nappear to be a way to tell the difference...
37
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.68, "nodes": 21, "errors": 0, "source_hash": "499022145be5e8c56b4b5f145ffe940a2ef9a3011109e59361821be53d463eef", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void setpg...
6,029
c
#include <stdio.h> int nimSum(unsigned int* heaps) { return heaps[0] ^ heaps[1] ^ heaps[2]; } int main() { int i; unsigned int heaps[] = {1,2,3}; unsigned int limit = 1<<30; int numLosses = 0; for (i=0; i<limit; i++) { numLosses += nimSum(heaps)==0; heaps[0] += 1; heaps...
21.44
18
(translation_unit) "#include <stdio.h>\n\nint nimSum(unsigned int* heaps) {\n return heaps[0] ^ heaps[1] ^ heaps[2];\n}\n\nint main() {\n int i;\n unsigned int heaps[] = {1,2,3};\n unsigned int limit = 1<<30;\n int numLosses = 0;\n for (i=0; i<limit; i++) {\n numLosses += nimSum(heaps)==0;\n ...
177
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.44, "nodes": 114, "errors": 0, "source_hash": "4483338438ebc89d346f49e5f4c6781eb143c1a19128f6ab94183324e2d784d5", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,030
c
#ifndef DSP_TEAM_PROJECT_ATTRIBUTES_H #define DSP_TEAM_PROJECT_ATTRIBUTES_H class color { public: static const int BLACK = 30; static const int RED = 31; static const int GREEN = 32; static const int YELLOW = 33; static const int BLUE = 34; static const int MAGENTA = 35; static const int CYAN = 36; static cons...
29.22
27
(translation_unit) "#ifndef DSP_TEAM_PROJECT_ATTRIBUTES_H\n#define DSP_TEAM_PROJECT_ATTRIBUTES_H\n\nclass color {\npublic:\n static const int BLACK = 30;\n static const int RED = 31;\n static const int GREEN = 32;\n static const int YELLOW = 33;\n static const int BLUE = 34;\n static const int MAGENTA = 35;\n static co...
239
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.22, "nodes": 132, "errors": 0, "source_hash": "b279f2009bdace131ca858c005dc6f4c8b453445d2464b6ebc51bff51e5cfe97", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,031
c
#pragma once //#define CM_DEBUG #include "engine/AlicaClock.h" #include "engine/allocationauthority/AllocationDifference.h" #include "engine/containers/AllocationAuthorityInfo.h" #include <mutex> #include <thread> #include <vector> #include <yaml-cpp/yaml.h> namespace alica { class RunningPlan; class PlanRepository;...
29.56
61
(translation_unit) "#pragma once\n//#define CM_DEBUG\n\n#include "engine/AlicaClock.h"\n#include "engine/allocationauthority/AllocationDifference.h"\n#include "engine/containers/AllocationAuthorityInfo.h"\n\n#include <mutex>\n#include <thread>\n#include <vector>\n#include <yaml-cpp/yaml.h>\n\nnamespace alica\n{\nclass ...
374
13
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 29.56, "nodes": 223, "errors": 0, "source_hash": "bc4caeccf6d1ff7fd587d8077352220c79422e380d10a660a2f05b2bec341caa", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,032
c
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2008 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2008-10-22 // Updated : 20...
41.06
18
(translation_unit) "///////////////////////////////////////////////////////////////////////////////////////////////////\n// OpenGL Mathematics Copyright (c) 2005 - 2008 G-Truc Creation (www.g-truc.net)\n///////////////////////////////////////////////////////////////////////////////////////////////////\n// Created : 200...
35
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 41.06, "nodes": 16, "errors": 0, "source_hash": "c58cf49bcbabe60bf5843ce684520ccfd6b0596405dc8a5c6336bc20251cd675", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,033
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define TDIM 64 #define VCTL 100 int main(int argc, char * argv[]){ int i, llg, m, code, vct; char logs[TDIM]; int val[TDIM]; bzero( logs,TDIM); i = getlogin_r( logs,TDIM); if (i != 0) { printf("Entrez votre nom...
18.37
54
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <unistd.h> \n#include <string.h> \n \n#define TDIM 64 \n#define VCTL 100 \n \nint main(int argc, char * argv[]){ \n \n int i, llg, m, code, vct; \n char logs[TDIM]; \n int val[TDIM]; \n \n bzero( logs,TDIM); \n i = getlogin_r( logs,TDIM); \n if (i...
507
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 18.37, "nodes": 303, "errors": 0, "source_hash": "fa99edf22f0fabf08b8a9c2d127cdedc41e4da5484464647b5f34703a77b518b", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,034
c
#pragma once #include <QOpenGLWidget> #include <QOpenGLFunctions_3_3_Core> #include <QKeyEvent> #include <QTimer> #include <QTime> #include <glm/glm.hpp> #include <chrono> class Window; class GLWidget : public QOpenGLWidget, protected QOpenGLFunctions_3_3_Core { public: explicit GLWidget(Window* parent = 0, Qt::W...
20.08
64
(translation_unit) "#pragma once\n\n#include <QOpenGLWidget>\n#include <QOpenGLFunctions_3_3_Core>\n#include <QKeyEvent>\n#include <QTimer>\n#include <QTime>\n\n#include <glm/glm.hpp>\n\n#include <chrono>\n\nclass Window;\n\nclass GLWidget : public QOpenGLWidget, protected QOpenGLFunctions_3_3_Core\n{\npublic:\n explic...
371
15
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 20.08, "nodes": 254, "errors": 0, "source_hash": "f941737d558435a372c7176aae585e90209e2a5bcd3fa9119881495b4df59cae", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,035
c
#pragma once #include <stdint.h> #ifdef __cplusplus extern "C" { #endif void plic_enable_interrupt(int prio, int irq); uint32_t plic_claim(); void plic_complete(uint32_t irq); #ifdef __cplusplus } #endif
17.55
11
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid plic_enable_interrupt(int prio, int irq);\nuint32_t plic_claim();\nvoid plic_complete(uint32_t irq);\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (pr...
60
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.55, "nodes": 43, "errors": 0, "source_hash": "2b74802e703222ca42b8109021f600d3ce384c3b2d62be8879bf730395d5d3f4", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,036
c
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2020 The ShroudX Project developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef ACTIVESHROUDNODE_H #define ACTIVESHROUDNODE_H #include "net.h"...
32.13
63
(translation_unit) "// Copyright (c) 2014-2017 The Dash Core developers\n// Copyright (c) 2020 The ShroudX Project developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef ACTIVESHROUDNODE_H\n#define ACTIVESHRO...
341
6
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.13, "nodes": 194, "errors": 0, "source_hash": "ca936992483b176e371d7982cc009e3eeef37bb8e4e91bb48d9787deaaf8e0ff", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,037
c
#ifdef __cplusplus extern "C" { #endif int fun3(){ int a = 2; return a; } #ifdef __cplusplus } #endif
10
10
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif\n\nint fun3(){\n int a = 2;\n return a;\n}\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\nint fun3(){\n int a = 2;\n return a;\n}\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (iden...
41
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 10.0, "nodes": 26, "errors": 0, "source_hash": "adb64d4ba33e1de55e45dfc7b948c4dfc84356bcef5fbbe93e7e52c47e8dcb86", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
6,038
c
/////////////////////////////////////////////////////////////////////////////// // $Id$ // // 3DimViewer // Lightweight 3D DICOM viewer. // // Copyright 2008-2016 3Dim Laboratory s.r.o. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with ...
31.65
125
(translation_unit) "/////////////////////////////////////////////////////////////////////////////// \n// $Id$ \n// \n// 3DimViewer \n// Lightweight 3D DICOM viewer. \n// \n// Copyright 2008-2016 3Dim Laboratory s.r.o. \n// \n// Licensed under the Apache License, Version 2.0 (the "License"); \n// you may not use this fi...
472
17
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 31.65, "nodes": 243, "errors": 0, "source_hash": "4fe92b01468137aee997f7952b3897a30c49dc1c29313a8cd4a3068812d79a8a", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,039
c
/*COPYRIGHT** Copyright (C) 2005-2020 Intel Corporation. All Rights Reserved. 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...
32.77
82
(translation_unit) "/*COPYRIGHT**\n Copyright (C) 2005-2020 Intel Corporation. All Rights Reserved.\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 deal\n in the Software without restriction, includi...
274
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 32.77, "nodes": 213, "errors": 0, "source_hash": "251dd4c01e9c5a0638f87b77cf1f75eb6c53a2fc6193a5cbce8e8884a38ce91e", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,040
c
#ifndef CONCURRENCPP_PRODUCER_CONTEXT_H #define CONCURRENCPP_PRODUCER_CONTEXT_H #include <exception> #include <cassert> namespace concurrencpp::details { template<class type> class producer_context { union storage { type object; std::exception_ptr exception; stor...
36.81
205
(translation_unit) "#ifndef CONCURRENCPP_PRODUCER_CONTEXT_H\n#define CONCURRENCPP_PRODUCER_CONTEXT_H\n\n#include <exception>\n\n#include <cassert>\n\nnamespace concurrencpp::details {\n template<class type>\n class producer_context {\n\n union storage {\n type object;\n std::exception...
1,966
114
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 36.81, "nodes": 1110, "errors": 0, "source_hash": "0ece9ee5924d1d4fbe3a16f6bcd2d3b1ccae8bf01b8f57996cf5fd4650d9d7be", "categorized_nodes": 758}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
6,041
c
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * msgbox.c: Display error and information messages in MessageBoxes. */ #include...
32.63
266
(translation_unit) "// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.\n// All rights reserved.\n//\n// This software is distributed under a license that is described in\n// the LICENSE file that accompanies it.\n//\n// Meridian is a registered trademark.\n/*\n * msgbox.c: Display error and information messages in...
1,901
5
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 32.63, "nodes": 1092, "errors": 0, "source_hash": "0ac8fc108cf8eba3c2a3552e7775ea5a67b205dd2a7c474c99720b83ed6ef75e", "categorized_nodes": 840}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,042
c
#ifndef APPROVALTESTS_CPP_COMMANDLINEREPORTER_H #define APPROVALTESTS_CPP_COMMANDLINEREPORTER_H #include "ApprovalTests/core/Reporter.h" #include "ApprovalTests/utilities/SystemUtils.h" #include <string> namespace ApprovalTests { class ClipboardReporter : public Reporter { public: static std::string getCommandL...
39.08
52
(translation_unit) "#ifndef APPROVALTESTS_CPP_COMMANDLINEREPORTER_H\n#define APPROVALTESTS_CPP_COMMANDLINEREPORTER_H\n\n#include "ApprovalTests/core/Reporter.h"\n#include "ApprovalTests/utilities/SystemUtils.h"\n\n\n#include <string>\n\nnamespace ApprovalTests {\nclass ClipboardReporter : public Reporter {\npublic:\n ...
380
15
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.08, "nodes": 195, "errors": 0, "source_hash": "26f0f3594b4d32a72d58863dcdf1a702874d0b17290b2c57ad6d720e8d8a864d", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,043
c
#pragma once // Windows #include <d3dcompiler.h> #include <dwrite_3.h> // Vendor #include <libpng/png.h> // FF #include <ff.dx12.h> #include <ff.resource.h> // DirectWrite interace usage using IDWriteFactoryX = typename IDWriteFactory7; using IDWriteFontCollectionX = typename IDWriteFontCollection3; using IDWriteF...
32.06
16
(translation_unit) "#pragma once\n\n// Windows\n#include <d3dcompiler.h>\n#include <dwrite_3.h>\n\n// Vendor\n#include <libpng/png.h>\n\n// FF\n#include <ff.dx12.h>\n#include <ff.resource.h>\n\n// DirectWrite interace usage\n\nusing IDWriteFactoryX = typename IDWriteFactory7;\nusing IDWriteFontCollectionX = typename ID...
77
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.06, "nodes": 66, "errors": 0, "source_hash": "45c035a8fedad3b33185fc857dc657fbd293857ee8efb349f42a9db579ed903a", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,044
c
/* * This file comes from the jsoncvt-1.0.9 distribution, and is covered by * the following license: * * Copyright ⓒ 2014, 2015 <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * “Software”), to deal in the Softw...
31.37
156
(translation_unit) "/*\n * This file comes from the jsoncvt-1.0.9 distribution, and is covered by\n * the following license:\n *\n * Copyright ⓒ 2014, 2015 <NAME>.\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * “Soft...
769
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 31.37, "nodes": 488, "errors": 0, "source_hash": "277394ec2508247e0eaa76353baf91cb9ac635ab5bcb0cf089f8c27e236d6386", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "OSIX_C_...
6,045
c
#ifndef __FD_H__ #define __FD_H__ #include <atomic> #include <memory> #include <functional> #include <unistd.h> namespace ssync { namespace fs { // TODO: templatize it for inlining optimization // template <typename FOpen, typename FClose> typedef std::function<int(void)> FOpen; typedef std::function<void(int)...
34.2
89
(translation_unit) "#ifndef __FD_H__\n#define __FD_H__\n#include <atomic>\n#include <memory>\n#include <functional>\n\n#include <unistd.h>\n\nnamespace ssync {\nnamespace fs {\n\n // TODO: templatize it for inlining optimization\n // template <typename FOpen, typename FClose>\n \n typedef std::function<int(void)> FOpen...
551
22
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 34.2, "nodes": 312, "errors": 0, "source_hash": "8db99d857db35e41acfdf965b6ab85df2718f32bd9771759b32d2338b1b13525", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,046
c
#ifndef loop_h #define loop_h /* loop is a 1 bar or 2, or 4 bar loop of time for a live "recording" loop It mainly is expressed in its milliseconds time, the types of things it can do, and the array of loopevents it holds. */ #endif /* loop_h */
34.71
7
(translation_unit) "#ifndef loop_h\n#define loop_h\n\n/*\n loop is a 1 bar or 2, or 4 bar loop of time for a live "recording" loop\n It mainly is expressed in its milliseconds time, the types of things it can do, and the array of loopevents it holds.\n*/\n\n#endif /* loop_h */\n" (preproc_ifdef) "#ifndef loop_h\n#d...
10
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.71, "nodes": 7, "errors": 0, "source_hash": "08b2ced350d7eb9dc84cb4432b612ae05b25d38bf300d8ce489e20394e9eeda2", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef loo...
6,047
c
// // RSMResourceConsoler.h // Luna // // Created by <NAME> on 31/10/2016. // Copyright © 2016 dianping. All rights reserved. // #import <Foundation/Foundation.h> extern NSString *const RSMResourceConsoleLogChanged; @interface RSMResorceEntity : NSObject @property (nonatomic, strong) NSURLRequest *request; @pro...
32.05
22
(translation_unit) "//\n// RSMResourceConsoler.h\n// Luna\n//\n// Created by <NAME> on 31/10/2016.\n// Copyright © 2016 dianping. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nextern NSString *const RSMResourceConsoleLogChanged;\n\n@interface RSMResorceEntity : NSObject\n\n@property (nonatomic, s...
185
34
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.05, "nodes": 134, "errors": 0, "source_hash": "60a5e724168863d8a8775c96dbd3e9821b30615bf6d57d063ee8608ea8574e29", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
6,048
c
// Final Project COMP 310 // Your Name: // <NAME>: // // DISK_driver_problem2.h // int closeInDisk(int aftIndex);
17.14
7
(translation_unit) "// Final Project COMP 310\n// Your Name:\n// <NAME>: \n//\n// DISK_driver_problem2.h\n//\n\nint closeInDisk(int aftIndex);\n" (comment) "// Final Project COMP 310" (comment) "// Your Name:" (comment) "// <NAME>: " (comment) "//" (comment) "// DISK_driver_problem2.h"...
18
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.14, "nodes": 8, "errors": 0, "source_hash": "e268e47b7aab9afe77583722e25ba0dfe99a33871fe7a5553a33c64df1f807a8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int closeInDi...
6,049
c
#pragma once #include "Game.h" #include "Rectangle.h" namespace Library { class KeyboardComponent; class Box2DComponent; } namespace SimpleCollision { class DebugDraw; class SimpleCollisionGame : public Library::Game { public: SimpleCollisionGame(std::function<void*()> getWindowCallback, std::function<void...
29.96
74
(translation_unit) "#pragma once\n\n#include "Game.h"\n#include "Rectangle.h"\n\nnamespace Library\n{\n class KeyboardComponent;\n class Box2DComponent;\n}\n\nnamespace SimpleCollision\n{\n class DebugDraw;\n\n class SimpleCollisionGame : public Library::Game\n {\n public:\n\n SimpleCollisionGame(std::function<void*()...
732
26
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 29.96, "nodes": 453, "errors": 0, "source_hash": "5e0a8ae4639ed189517969553b0efc40181bad7eb342dfb9566df266eaff20ec", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,050
c
/* Copyright 2017 <NAME> <<EMAIL>>. * Licensed under the 2-clause BSD license, see LICENSE for details. */ #include <dirent.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "error.h" #include "fileutil.h" #define STAT_PATH_LEN 32 static bool is_numeric (const char *str) ...
22.4
105
(translation_unit) "/* Copyright 2017 <NAME> <<EMAIL>>.\n * Licensed under the 2-clause BSD license, see LICENSE for details. */\n\n#include <dirent.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "error.h"\n#include "fileutil.h"\n\n#define STAT_PATH_LEN 32\n\n\nstatic...
848
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 22.4, "nodes": 523, "errors": 0, "source_hash": "ec4d6ae6f676ae8ae5ef3efd00944afa4acf5399ce711d5d76365c68824934af", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,051
c
/* * Copyright (c), <NAME>. * * MIT License (MIT), http://opensource.org/licenses/MIT * Full license can be found in the LICENSE file */ #include "../../../include/agk.h" #include "../../common.h" GkMaterial* agkMetalRough(AgkContext * __restrict ctx, AkContext * __restrict actx,...
36.04
24
(translation_unit) "/*\n * Copyright (c), <NAME>.\n *\n * MIT License (MIT), http://opensource.org/licenses/MIT\n * Full license can be found in the LICENSE file\n */\n\n#include "../../../include/agk.h"\n#include "../../common.h"\n\nGkMaterial*\nagkMetalRough(AgkContext * __restrict ctx,\n AkCont...
197
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.04, "nodes": 128, "errors": 0, "source_hash": "0e86eb1fca42377b8f9d525653ee6e2635cd68a61c003d7701b6fe19f43be852", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,052
c
// // Lexer.h // FrontEnd // // Created by <NAME> on 14-1-30. // Copyright (c) 2014 <NAME>. All rights reserved. // #ifndef __FrontEnd__Lexer__ #define __FrontEnd__Lexer__ #include <map> #include <fstream> #include "Token.h" struct cmp_cls { bool operator() (const char *a, const char *b) const { retu...
17.97
39
(translation_unit) "//\n// Lexer.h\n// FrontEnd\n//\n// Created by <NAME> on 14-1-30.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#ifndef __FrontEnd__Lexer__\n#define __FrontEnd__Lexer__\n\n#include <map>\n#include <fstream>\n#include "Token.h"\n\nstruct cmp_cls {\n bool operator() (const char *a,...
210
5
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 17.97, "nodes": 127, "errors": 0, "source_hash": "a639af8f4ac6d1497e1cafed2b8e6500a45d704ef463bf6404984343be21e862", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,053
c
#ifndef _INT_GL_1_5_REM_3_1_H #define _INT_GL_1_5_REM_3_1_H #ifdef __cplusplus extern "C" { #endif //__cplusplus #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 #define GL_TEXTURE_C...
29.54
35
(translation_unit) "#ifndef _INT_GL_1_5_REM_3_1_H\n#define _INT_GL_1_5_REM_3_1_H\n\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif //__cplusplus\n\n\n#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896\n#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897\n#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898\n#define GL_INDEX_ARRAY_BUFFER_BI...
118
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.54, "nodes": 108, "errors": 0, "source_hash": "7c16c07e303e2bda7963f85188c3163cb7cd8da3a3209476341700007e0f7e7a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,054
c
#ifndef _APP_DELEGATE_H_ #define _APP_DELEGATE_H_ #include "cocos2d.h" USING_NS_CC; class AppDelegate : Application { public: AppDelegate(); virtual ~AppDelegate(); void initGLContextAttrs() override; bool applicationDidFinishLaunching() override; void applicationDidEnterBackground() override;...
25.67
15
(translation_unit) "#ifndef _APP_DELEGATE_H_\n#define _APP_DELEGATE_H_\n\n#include "cocos2d.h"\nUSING_NS_CC;\n\nclass AppDelegate : Application\n{\npublic:\n AppDelegate();\n virtual ~AppDelegate();\n\n void initGLContextAttrs() override;\n bool applicationDidFinishLaunching() override;\n void applica...
86
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.67, "nodes": 50, "errors": 0, "source_hash": "400cee3d8fcb7394a156fdc32d8257a282dc3b0ecf6fad7e8222be9fd3fd8fea", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,055
c
#pragma once #include "program.h" #include "shader.h" #include <map> class Script:public Program{ public: void compile(const std::string& vertSrc, const std::string& fragSrc) { Shader temp = Shader::createCompiled(Shader::VERTEX, vertSrc); attach(temp); temp = Shader::createCompiled(Shader::F...
18.82
61
(translation_unit) "#pragma once \n \n#include "program.h" \n#include "shader.h" \n \n#include <map> \n \nclass Script:public Program{ \npublic: \n void compile(const std::string& vertSrc, const std::string& fragSrc) \n { \n Shader temp = Shader::createCompiled(Shader::VERTEX, vertSrc); \n attach(temp); \n \n temp ...
435
19
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 18.82, "nodes": 241, "errors": 0, "source_hash": "20b8cd44a0f52ebe4cd3dfc7ba481d0d0a15fa8f3a18d0092cff52a9d829ddcc", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,056
c
// // KAViewController.h // KAPieChart // // Created by <NAME> on 11/17/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface KAViewController : UIViewController @end
20
10
(translation_unit) "//\n// KAViewController.h\n// KAPieChart\n//\n// Created by <NAME> on 11/17/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface KAViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// KAViewController.h" (comment) "// K...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 9, "errors": 0, "source_hash": "7be79fe9a23ae4432866dc3e5caa022d4aadb10294bda0e589d4747015a42360", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
6,057
c
// // PeopleData.h // Notepad // // Created by Mac on 2017/11/26. // Copyright © 2017年 Mac. All rights reserved. // #import <Foundation/Foundation.h> #import "People+CoreDataClass.h" @interface PeopleData : NSObject { NSManagedObjectContext *_context; NSPersistentStoreCoordinator *_persistentStoreCoordinat...
26.81
32
(ERROR) "//\n// PeopleData.h\n// Notepad\n//\n// Created by Mac on 2017/11/26.\n// Copyright © 2017年 Mac. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "People+CoreDataClass.h"\n@interface PeopleData : NSObject\n{\n NSManagedObjectContext *_context;\n NSPersistentStoreCoordinator *_pe...
198
7
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 26.81, "nodes": 113, "errors": 0, "source_hash": "38e6ab97f8aa6f06886c3219e18d644693d2abf9317c77d8d48d843f9108aeff", "categorized_nodes": 68}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// PeopleData.h\n// ...
6,058
c
#define miINT8 1 // (null) #define miUINT8 2 // (null) #define miINT16 3 // (null) #define miUINT16 4 // (null) #define miINT32 5 // (null) #define miUINT32 6 // (null) #define miSINGLE 7 // (null) #define miDOUBLE 9 // (null) #define miINT64 12 // (null) #define miUINT64 13 // (null) #define miMATRIX 14 // (null) #def...
28.07
15
(translation_unit) "#define miINT8 1 // (null)\n#define miUINT8 2 // (null)\n#define miINT16 3 // (null)\n#define miUINT16 4 // (null)\n#define miINT32 5 // (null)\n#define miUINT32 6 // (null)\n#define miSINGLE 7 // (null)\n#define miDOUBLE 9 // (null)\n#define miINT64 12 // (null)\n#define miUINT64 13 // (null)\n#def...
61
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.07, "nodes": 60, "errors": 0, "source_hash": "e251d9102a523b8dda220c3e9951112774ef18310e11abe13e9d4f0ecdcebb24", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define mi...
6,059
c
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002-2004 <NAME>, <NAME>, * <NAME>, <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versio...
34.14
70
(translation_unit) "/*\n * jabberd - Jabber Open Source Server\n * Copyright (c) 2002-2004 <NAME>, <NAME>,\n * <NAME>, <NAME>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Softwar...
502
17
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.14, "nodes": 377, "errors": 0, "source_hash": "bfadb663d5ad0a031cfa431cb70d5777792db3097251c9185488bb5f42260de3", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,060
c
// Copyright (c) 2017-2018 The CDC developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SEARCHOPTIONWIDGET_H #define SEARCHOPTIONWIDGET_H #include <QWidget> namespace Ui { class SearchOptionWidget; }...
18.97
36
(translation_unit) "// Copyright (c) 2017-2018 The CDC developers \n// Distributed under the MIT software license, see the accompanying \n// file COPYING or http://www.opensource.org/licenses/mit-license.php. \n \n \n#ifndef SEARCHOPTIONWIDGET_H \n#define SEARCHOPTIONWIDGET_H \n \n#include <QWidget> \n \nnamespace Ui {...
114
5
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 18.97, "nodes": 67, "errors": 0, "source_hash": "d6d18505d0c1da2be84e280d8f9af52a92b85e20b217c17a12aa2cfe674658dd", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,061
c
#ifndef APPSMODEL_H #define APPSMODEL_H #include <QAbstractListModel> #include "app.h" class AppsModel : public QAbstractListModel { Q_OBJECT public: enum AppRoles { NameRole = Qt::UserRole + 1, UrlRole, IdxRole }; Q_ENUM(AppRoles) explicit AppsModel(QObject *pare...
28.24
29
(translation_unit) "#ifndef APPSMODEL_H\n#define APPSMODEL_H\n\n#include <QAbstractListModel>\n\n#include "app.h"\n\nclass AppsModel : public QAbstractListModel\n{\n Q_OBJECT\n\npublic:\n enum AppRoles {\n NameRole = Qt::UserRole + 1,\n UrlRole,\n IdxRole\n };\n Q_ENUM(AppRoles)\...
253
18
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.24, "nodes": 158, "errors": 0, "source_hash": "66e1d42cc89d73fd21472010775c236df71e4b21c9ffc41ecbfc891d7618fe13", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef APPSMO...
6,062
c
/* xpformat.c 1.2 86/01/21 */ /* /* format disk on Xylogics controller - fsd/smd/fujitsu type */ /**/ #include "../machine/mtpr.h" #include "param.h" #include "inode.h" #include "saio.h" #include "../tahoevba/vbaparam.h" #include "../tahoevba/xpreg.h" char disk[10] ; /* disk type (smd/fsd/fuj) */ char drive[10] ; ...
25.14
208
(translation_unit) "/* xpformat.c 1.2 86/01/21 */\n/*\n/* format disk on Xylogics controller - fsd/smd/fujitsu type */\n/**/\n\n#include "../machine/mtpr.h"\n#include "param.h"\n#include "inode.h"\n#include "saio.h"\n\n#include "../tahoevba/vbaparam.h"\n#include "../tahoevba/xpreg.h"\n\nchar disk[10] ; /* disk type (...
1,922
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 25.14, "nodes": 1107, "errors": 0, "source_hash": "850ae07816aef7fd0cc0d5d7722f7109ac3d9b1b822de00c56f2503c0e0a9e21", "categorized_nodes": 819}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,063
c
#include <stdio.h> #include <stdint.h> #include <unistd.h> #include <acp.h> int value; int result; acp_ga_t get_dst_ga(void *ptr) { acp_atkey_t key; key = acp_register_memory(ptr, sizeof(int), 0); return acp_query_ga(key, ptr); } acp_ga_t get_src_ga(int rank, void *ptr) { void *p; acp_atkey_t key; acp_ga...
23.03
73
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <unistd.h>\n#include <acp.h>\n\nint value;\nint result;\n\nacp_ga_t get_dst_ga(void *ptr)\n{\n acp_atkey_t key;\n key = acp_register_memory(ptr, sizeof(int), 0);\n return acp_query_ga(key, ptr);\n}\n\nacp_ga_t get_src_ga(int rank, void *ptr)\n{\n ...
624
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 23.03, "nodes": 364, "errors": 0, "source_hash": "ee93c622a384fbbfb4c4bb579ced7b294c6582f749c4f86bf556550200bfbb5c", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,064
c
// // YNSelfSizingCollectionView.h // YNSelfSizingCollectionView // // Created by wangya on 2018/1/26. // Copyright © 2018年 Yanni. All rights reserved. // #import <UIKit/UIKit.h> #import "YNSelfSizingCollectionViewCell.h" @interface YNSelfSizingCollectionView : UICollectionView - (CGSize)sizeForCellWithIdentifie...
35.57
14
(translation_unit) "//\n// YNSelfSizingCollectionView.h\n// YNSelfSizingCollectionView\n//\n// Created by wangya on 2018/1/26.\n// Copyright © 2018年 Yanni. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YNSelfSizingCollectionViewCell.h"\n\n@interface YNSelfSizingCollectionView : UICollectionView\n\n-...
66
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.57, "nodes": 41, "errors": 0, "source_hash": "fcf13ed530bf7dc03d7a48c9466b9152bb4d2ffecbbfee913d7ae585365ea05e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
6,065
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> #import "AXAssertionCoordinatorDelegate-Protocol.h" @class AXAssertionCoordinator, NSString; @interface HNDActiveClientHelpe...
42.71
24
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n#import "AXAssertionCoordinatorDelegate-Protocol.h"\n\n@class AXAssertionCoordinator, NSString;\n\...
197
23
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 42.71, "nodes": 122, "errors": 0, "source_hash": "65cbfb900c00e8905f322a3481ab91a240c32afce8a13938e1d2d91ac7f2e35e", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,066
c
#import <Foundation/Foundation.h> #import <Mantle/Mantle.h> @interface ListCausesRequestModel : MTLModel <MTLJSONSerializing> @property(strong, nonatomic) NSDate *startDate; @property(strong, nonatomic) NSDate *finalDate; @end
36.83
6
(translation_unit) "#import <Foundation/Foundation.h>\n#import <Mantle/Mantle.h>\n\n@interface ListCausesRequestModel : MTLModel <MTLJSONSerializing>\n\n@property(strong, nonatomic) NSDate *startDate;\n@property(strong, nonatomic) NSDate *finalDate;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" ...
54
10
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 36.83, "nodes": 43, "errors": 0, "source_hash": "62fa2d65491b68b731577184381767698a54f9a70bd5a3d6e4148a2ab388ca3e", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
6,067
c
@class ASIHTTPRequest; @protocol ASIHTTPRequestDelegate <NSObject> @optional - (void)requestStarted:(ASIHTTPRequest *)request; - (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders; - (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL; - (void)r...
36.67
18
(translation_unit) "@class ASIHTTPRequest;\n\n@protocol ASIHTTPRequestDelegate <NSObject>\n\n@optional\n\n\n\n- (void)requestStarted:(ASIHTTPRequest *)request;\n- (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders;\n- (void)request:(ASIHTTPRequest *)request willRedirectToU...
218
37
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.67, "nodes": 134, "errors": 0, "source_hash": "25acc3fa8f0ab533adeba98136617f32461773de7225c2feba7f31285d408061", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
6,068
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 <NAME> <<EMAIL>> */ #ifndef __FW_CFG__ #define __FW_CFG__ #include <linux/list.h> enum qemu_fwcfg_items { FW_CFG_SIGNATURE = 0x00, FW_CFG_ID = 0x01, FW_CFG_UUID = 0x02, FW_CFG_RAM_SIZE = 0x03, FW_CFG_NOGRAPHIC = 0x04, FW_CFG_NB_CPUS = 0x05, ...
28.13
157
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * (C) Copyright 2015 <NAME> <<EMAIL>>\n */\n\n#ifndef __FW_CFG__\n#define __FW_CFG__\n\n#include <linux/list.h>\n\nenum qemu_fwcfg_items {\n FW_CFG_SIGNATURE = 0x00,\n FW_CFG_ID = 0x01,\n FW_CFG_UUID = 0x02,\n FW_CFG_RAM_SIZE = 0x03,\n FW_CFG_NOGRAPHI...
672
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 28.13, "nodes": 488, "errors": 0, "source_hash": "3ecafa1ea16449c3bc138860d23c01bf3ade4f43b6e0cfcd692377ed6277fd49", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,069
c
#pragma once #include <vector> #include <stdint.h> class JPEGCodec { public: static size_t decode(const std::vector<uint8_t>& src, uint8_t* dst_data); };
14.9
10
(translation_unit) "#pragma once\n\n#include <vector>\n#include <stdint.h>\n\n\nclass JPEGCodec\n{\npublic:\n\n static size_t\n decode(const std::vector<uint8_t>& src, uint8_t* dst_data);\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include ...
50
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.9, "nodes": 30, "errors": 0, "source_hash": "7b3a77673727d2749836f382d3f2ea3df4570125fa729814e9d256fad3d26ad4", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,070
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> /* An XOR linked list is a more memory efficient doubly linked list. Instead of each node holding next and prev fields, it holds a field named both, which is an XOR of the next node and the previous node. Implement an XOR linked list; it has an add(element) wh...
27.93
76
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n\n/*\nAn XOR linked list is a more memory efficient doubly linked list.\nInstead of each node holding next and prev fields, it holds a field named both,\nwhich is an XOR of the next node and the previous node. Implement an XOR linked list...
667
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 27.93, "nodes": 441, "errors": 0, "source_hash": "5f869fdb2eddc118b2cdcfa6c66422e9dda5a98dff78fc9412e86fe833d27541", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,071
c
#include <time.h> #include <cilk/cilk.h> long v3_cilk( int * csc_row, int * csc_col, int * c, int M) { //The Variables used to time the function struct timespec ts_start; struct timespec ts_end; //Initialization of c for(int i=0; i<M; i++) c[i] = 0; //Start the clock cloc...
35.08
25
(translation_unit) "#include <time.h>\n\n#include <cilk/cilk.h>\n\nlong v3_cilk( int * csc_row, int * csc_col,\n int * c, int M) \n{\n //The Variables used to time the function\n struct timespec ts_start;\n struct timespec ts_end;\n\n //Initialization of c\n for(int i=0; i<M; i++) c[i] = 0;...
284
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.08, "nodes": 192, "errors": 0, "source_hash": "1b39abefa2fbfceaf1f2c2854bef754a2e8c6fe06dc50bd29b1ca546a0a5407b", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,072
c
/** @file segment.h @brief TODO: Describe this file */ #ifndef SEGMENT_H #define SEGMENT_H #include <stdint.h> #include <stdbool.h> #define NUM_BLOCKS (256u) #define BLOCKMAP_SIZE ((sizeof(uint16_t) * 8) + 1) typedef struct segment_t { struct segment_t* next; uintptr_t blocksize; uint16_t blockma...
28
25
(translation_unit) "/**\n @file segment.h\n @brief TODO: Describe this file\n*/\n#ifndef SEGMENT_H\n#define SEGMENT_H\n\n#include <stdint.h>\n#include <stdbool.h>\n\n#define NUM_BLOCKS (256u)\n\n#define BLOCKMAP_SIZE ((sizeof(uint16_t) * 8) + 1)\n\ntypedef struct segment_t {\n struct segment_t* next;\n uintp...
172
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.0, "nodes": 132, "errors": 0, "source_hash": "9cb97bacd931f0d301a6e54d406a9c62bfec56c06009bcafddb96e50dabe609d", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,073
c
#ifndef EMC_CALIBRATION_H #define EMC_CALIBRATION_H #include <iostream> //#include <fstream> using namespace std; class l3EmcTowerInfo { public: l3EmcTowerInfo(); inline float getPhi() { return phi; }; inline float getEta() { return eta; }; inline float getEtaMin() { return etamin; }; inline flo...
24.49
98
(translation_unit) "#ifndef EMC_CALIBRATION_H\n#define EMC_CALIBRATION_H\n\n#include <iostream>\n//#include <fstream>\n\nusing namespace std;\n\nclass l3EmcTowerInfo\n{\npublic:\n l3EmcTowerInfo();\n\n inline float getPhi() { return phi; };\n inline float getEta() { return eta; };\n inline float getEtaMin()...
845
13
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 24.49, "nodes": 522, "errors": 0, "source_hash": "212510e2ae5afb8d3a385efb312ecbf83432ab4ad159827e1f1342cbef08812e", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,074
c
// // compute_resources.h // #ifndef compute_resources_h #define compute_resources_h // UPDATE_FREQ_NONE RES(Tex2D(float), depthBuffer, UPDATE_FREQ_NONE, t1, binding = 1); RES(Tex2D(float4), normalBuffer, UPDATE_FREQ_NONE, t2, binding = 2); RES(Buffer(float4), BVHTree, UPDATE_FREQ_NONE, t3, binding...
39.46
24
(translation_unit) "//\n// compute_resources.h\n//\n\n#ifndef compute_resources_h\n#define compute_resources_h\n\n// UPDATE_FREQ_NONE\nRES(Tex2D(float), depthBuffer, UPDATE_FREQ_NONE, t1, binding = 1);\nRES(Tex2D(float4), normalBuffer, UPDATE_FREQ_NONE, t2, binding = 2);\nRES(Buffer(float4), BVHTree, ...
288
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 39.46, "nodes": 159, "errors": 0, "source_hash": "d7d5117a4fedc0d73deead1125ae918d5f961eeea7632fd06eeeb69d491e1247", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,075
c
#pragma once #include <string> struct Set; ///function that creates set Set* createSet(); ///delete set void deleteSet(Set* set); ///check if set already contains element, is it empty bool addToSet(Set* set, int const data); ///check if set is empty, if it contains element we want to delete bool removeFromSet(S...
32.84
19
(translation_unit) "#pragma once\n\n#include <string> \n\nstruct Set;\n\n///function that creates set\nSet* createSet();\n\n///delete set\nvoid deleteSet(Set* set);\n\n///check if set already contains element, is it empty\nbool addToSet(Set* set, int const data);\n\n///check if set is empty, if it contains element we ...
148
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.84, "nodes": 99, "errors": 0, "source_hash": "d7a5e9db3e4eaa105d9a4d024f46020bf96341f55852451c006962ec2d134ebc", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,076
c
#ifndef _FS_MUTEX_H_ #define _FS_MUTEX_H_ #include <pthread.h> #include "FsMacros.h" NS_FS_BEGIN class Mutex { public: Mutex(); virtual ~Mutex(); public: int lock(); int trylock(); int unlock(); private: pthread_mutex_t m_mutex; }; NS_FS_END #endif /* _FS_MUTEX_H_ */
12.67
21
(translation_unit) "#ifndef _FS_MUTEX_H_\n#define _FS_MUTEX_H_\n\n#include <pthread.h>\n#include "FsMacros.h"\n\nNS_FS_BEGIN\n\nclass Mutex \n{\n public:\n Mutex();\n virtual ~Mutex();\n\n public:\n int lock(); \n int trylock();\n int unlock();\n private:\n pthread_mutex_t m_mutex;\n};\n\n\nNS_FS_END\n\n\n\n#endi...
84
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 12.67, "nodes": 48, "errors": 0, "source_hash": "58509aff15349c541bcc839803161067a607d98ca07aeb046dc09866ed48a92d", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,077
c
#ifndef LREXPORTS_ #define LREXPORTS_ #define LR_SCREENWIDTH 640 #define LR_SCREENHEIGHT 400 #define LR_SCREENASPECT 16.0 / 10.0 #define LR_SCREENFPS 60.0 #define LR_SOUNDRATE 44100.0 #define LR_CORENAME "Neko Project II" #define LR_LIBVERSION "0.86+" #define LR_VALIDFILEEXT "d98|zip|98d|fdi|fd...
32.79
14
(translation_unit) "#ifndef LREXPORTS_\n#define LREXPORTS_\n\n#define LR_SCREENWIDTH 640\n#define LR_SCREENHEIGHT 400\n#define LR_SCREENASPECT 16.0 / 10.0\n#define LR_SCREENFPS 60.0\n\n#define LR_SOUNDRATE 44100.0\n\n#define LR_CORENAME "Neko Project II"\n#define LR_LIBVERSION "0.86+"\n#define LR_VAL...
52
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 32.79, "nodes": 51, "errors": 0, "source_hash": "31ddfa20daf9dda0eb1ab408cac8d95c920253f3bfad081b82e3955a4c6109d2", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,078
c
#ifndef OAHTTSLF_H #define OAHTTSLF_H /***************************************************************************** * * File: oahttslf.h * Author: <NAME> * Created: April 2009 * * Declarations for open addressing thread-safe lock-free hash table. * * * $Id: oahttslf.h 3148 2009-12-27 04:15:31Z alexs $ ...
34.55
56
(translation_unit) "#ifndef OAHTTSLF_H\n#define OAHTTSLF_H\n/*****************************************************************************\n * \n * File: oahttslf.h\n * Author: <NAME>\n * Created: April 2009\n *\n * Declarations for open addressing thread-safe lock-free hash table.\n * \n *\n * $Id: oahttslf.h 3148...
215
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 34.55, "nodes": 151, "errors": 0, "source_hash": "fb804fccdd86430cb6d5dd70a329c80212ee764f6fd92761806b05dbcee3da21", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,079
c
#include "syscall.h" #define BSIZE 30 int main(int arg, char * argv[]) { int i = 0; do { Write("Tik\n-->", 7, CONSOLE_OUTPUT); for (i = 0; i < 15000; i++); } while (1); Exit(0); }
16.67
12
(translation_unit) "#include "syscall.h"\n#define BSIZE 30\n\nint\nmain(int arg, char * argv[])\n{\n int i = 0;\n\n do {\n Write("Tik\n-->", 7, CONSOLE_OUTPUT);\n for (i = 0; i < 15000; i++);\n } while (1);\n Exit(0);\n}\n" (preproc_include) "#include "syscall.h"\n" (#include) "#include"...
95
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.67, "nodes": 53, "errors": 0, "source_hash": "94423fc9e562c3595f717489cc215836a769945b08143d4bec73ee647512df14", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,080
c
#include <iostream> #include <mutex> #include <condition_variable> #include <unistd.h> #include <map> #include <algorithm> #include <utility> #include <thread> #include <typeindex> #include <queue> class Taskmap { public: void insert_task(int priority, std::function<void()> func); bool empty(); std::functi...
22.34
32
(translation_unit) "#include <iostream>\n#include <mutex>\n#include <condition_variable>\n#include <unistd.h>\n#include <map>\n#include <algorithm>\n#include <utility>\n#include <thread>\n#include <typeindex>\n#include <queue>\n\nclass Taskmap {\npublic:\n void insert_task(int priority, std::function<void()> func);\...
263
16
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.34, "nodes": 164, "errors": 0, "source_hash": "872a358b4604cd6885044cd81a84a36f6404d5fd88f1ae9c1d2295ada66cd14d", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,081
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2008 Extreme Engineering Solutions, Inc. */ #ifndef __PCA953X_H_ #define __PCA953X_H_ #define PCA953X_IN 0x00 #define PCA953X_OUT 0x01 #define PCA953X_POL 0x02 #define PCA953X_CONF 0x03 #define PCA953X_OUT_LOW 0 #define PCA953X_OUT_HIGH 1 #define PCA953X_P...
28.67
21
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright 2008 Extreme Engineering Solutions, Inc.\n */\n\n#ifndef __PCA953X_H_\n#define __PCA953X_H_\n\n#define PCA953X_IN 0x00\n#define PCA953X_OUT 0x01\n#define PCA953X_POL 0x02\n#define PCA953X_CONF 0x03\n\n#define PCA953X_OUT_LOW 0\n#define PC...
119
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.67, "nodes": 97, "errors": 0, "source_hash": "b6cd6415f61a216f7bd0268e228ae3816977c8cdc5b2b0802006aead80a22f6c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,082
c
#pragma once #define MAP_FAILED ((void *) -1) #define MAP_ANONYMOUS (1 << 0) #define MAP_SHARED (1 << 1) #define MAP_PRIVATE (1 << 2) #define MAP_ACCESS_MASK (3 << 1) #define MAP_FIXED (1 << 3) #define PROT_READ (1 << 0) #define PROT_WRITE (1 << 1)
33.89
9
(translation_unit) "#pragma once\n#define MAP_FAILED ((void *) -1)\n#define MAP_ANONYMOUS (1 << 0)\n#define MAP_SHARED (1 << 1)\n#define MAP_PRIVATE (1 << 2)\n#define MAP_ACCESS_MASK (3 << 1)\n#define MAP_FIXED (1 << 3)\n\n#define PROT_READ (1 << 0)\n#define PROT_...
36
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 33.89, "nodes": 35, "errors": 0, "source_hash": "2116fbba2ceb89d0448813b8e8e2d653b4aecc90d941c408a5551a97f590bcbd", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
6,083
c
#pragma once #include "ITask.h" class CCustomTaskExample : public ITask { public: CCustomTaskExample(CController& controller) : ITask(controller), mController(controller){} void Execute() const override { mController.Print("owo"); mController.GetConsoleInput(); } void Close() const override { } private:...
19.41
17
(translation_unit) "#pragma once\n#include "ITask.h"\n\nclass CCustomTaskExample : public ITask\n{\npublic:\n CCustomTaskExample(CController& controller) :\n ITask(controller), \n mController(controller){}\n\n void Execute() const override {\n mController.Print("owo");\n mController.GetConsoleInput();\n }\n\n void Cl...
112
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.41, "nodes": 54, "errors": 0, "source_hash": "c802be3739a6dc626d9cd46fa87c2b91395dfd018b342b4234a95dd4ec73f3de", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,084
c
#ifndef _XQUEUE_H #define _XQUEUE_H #include "stl_allocator.h" #include <queue> #include <list> template<class _Tp, class _Sequence = std::list<_Tp, stl_allocator<_Tp> > > class xqueue : public std::queue<_Tp, _Sequence> { }; #endif
20.42
12
(translation_unit) "#ifndef _XQUEUE_H\n#define _XQUEUE_H\n\n#include "stl_allocator.h"\n#include <queue>\n#include <list>\n\ntemplate<class _Tp,\n class _Sequence = std::list<_Tp, stl_allocator<_Tp> > >\n class xqueue\n : public std::queue<_Tp, _Sequence>\n {\n };\n\n#endif\n\n" (preproc_ifdef) "#i...
76
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.42, "nodes": 53, "errors": 0, "source_hash": "5c65bde182f42c8693b703111ad55a905121d9dfe27dd12a35784ba4b03e81ac", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,085
c
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
33.8
41
(translation_unit) "/*=============================================================================\n\n NifTK: A software platform for medical image computing.\n\n Copyright (c) University College London (UCL). All rights reserved.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied wa...
176
6
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 33.8, "nodes": 111, "errors": 0, "source_hash": "bf798279841f170def5742c00cc5521a323ee697106d493cecff7c5340e549d2", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,086
c
double divide_numbers(double a, double b) { return a / b; } double multiply_numbers(double a, double b) { return a * b; } int main(int argc, char** argv) { return -1; }
17.2
10
(translation_unit) "double divide_numbers(double a, double b) {\n return a / b;\n}\n\ndouble multiply_numbers(double a, double b) {\n return a * b;\n}\n\n\nint main(int argc, char** argv) {\n return -1;\n}" (function_definition) "double divide_numbers(double a, double b) {\n return a / b;\n}" (primiti...
74
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.2, "nodes": 49, "errors": 0, "source_hash": "9d1bcc427340016392181d71c765af23dd12d94aba54fc4b3c664e9df0f4edd1", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "dou...
6,087
c
#ifndef __UTILS_OBF__ #define __UTILS_OBF__ #include "llvm/IR/Function.h" #include "llvm/IR/Instructions.h" #include "llvm/Transforms/Utils/Local.h" // For DemoteRegToStack and DemotePHIToStack #include <stdio.h> #include <sstream> #include <map> #include <set> using namespace std; using namespace llvm; void fixStac...
33.53
19
(translation_unit) "#ifndef __UTILS_OBF__\n#define __UTILS_OBF__\n\n#include "llvm/IR/Function.h"\n#include "llvm/IR/Instructions.h"\n#include "llvm/Transforms/Utils/Local.h" // For DemoteRegToStack and DemotePHIToStack\n#include <stdio.h>\n#include <sstream>\n#include <map>\n#include <set>\n\nusing namespace std;\nusi...
174
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.53, "nodes": 126, "errors": 0, "source_hash": "5ed424e7f299cb4d141f19148dc200d037c8954415aed2daa942b921e2585ce2", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,088
c
// // Quest.h // ARIS // // Created by <NAME> on 9/3/09. // Copyright 2009 University of Wisconsin - Madison. All rights reserved. // #import <Foundation/Foundation.h> @interface Quest : NSObject { int questId; NSString *name; NSString *qdescription; NSString *exitToTabName; int mediaId; int iconMedi...
26.5
30
(translation_unit) "//\n// Quest.h\n// ARIS\n//\n// Created by <NAME> on 9/3/09.\n// Copyright 2009 University of Wisconsin - Madison. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface Quest : NSObject {\n int questId;\n NSString *name;\n NSString *qdescription;\n NSString *exitToTabN...
207
23
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.5, "nodes": 135, "errors": 0, "source_hash": "9d6b49d80bacb9610ec9749049bae57bd868e48c3ca635c61db9d92439258436", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,089
c
/* * connector.h * * 2004-2005 Copyright (c) <NAME> <<EMAIL>> * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your ...
30.3
69
(translation_unit) "/*\n * connector.h\n * \n * 2004-2005 Copyright (c) <NAME> <<EMAIL>>\n * All rights reserved.\n * \n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of ...
161
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 30.3, "nodes": 128, "errors": 0, "source_hash": "4a596cc7a719b09deb9dfa621fb9d10dbce3bdb248026af7ad4f1a9b28c3ce11", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,090
c
// The MIT License (MIT) // // Copyright (c) 2014 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, mo...
41.02
46
(translation_unit) "// The MIT License (MIT)\n//\n// Copyright (c) 2014 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the "Software"), to deal in\n// the Software without restriction, including without limitation the ...
281
4
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 41.02, "nodes": 171, "errors": 0, "source_hash": "03f7f5d8309bb140ee6a18e04d15215bed33bd062ddc893cbcf183d10f9517f9", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "(FlatCol...
6,091
c
/** @file Provides some data structure definitions used by the SD/MMC host controller driver. Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _SD_MMC_TUNING_LIB_PRIVATE_H_ #define _SD_MMC_TUNING_LIB_PRIVATE_H_ #include <Uefi/Uef...
32.04
53
(translation_unit) "/** @file \n \n Provides some data structure definitions used by the SD/MMC host controller driver. \n \nCopyright (c) 2015, Intel Corporation. All rights reserved.<BR> \nSPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#ifndef _SD_MMC_TUNING_LIB_PRIVATE_H_ \n#define _SD_MMC_TUNING_LIB_PR...
131
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 32.04, "nodes": 107, "errors": 0, "source_hash": "9b658e0d015e2c00b33a0b614f28489970c44033dfd36622530aeb86824daa26", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,092
c
// // CYHTTPService.h // Cheneyee // // Created by <NAME> on 2019/6/29. // Copyright © 2019 <NAME>. All rights reserved. // 全局用来网络请求的类 #import <AFNetworking/AFNetworking.h> #import "AFHTTPSessionManager+CYSupport.h" #import "CYHTTPRequest.h" #import "CYHTTPResponse.h" NS_ASSUME_NONNULL_BEGIN /// 所有 CYHTTPServic...
39.79
28
(translation_unit) "//\n// CYHTTPService.h\n// Cheneyee\n//\n// Created by <NAME> on 2019/6/29.\n// Copyright © 2019 <NAME>. All rights reserved.\n// 全局用来网络请求的类\n\n#import <AFNetworking/AFNetworking.h>\n#import "AFHTTPSessionManager+CYSupport.h"\n#import "CYHTTPRequest.h"\n#import "CYHTTPResponse.h"\n\nNS_ASSUME_N...
191
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 39.79, "nodes": 129, "errors": 0, "source_hash": "d5fe5500d3a74192f12e7b51b029c276a47d0c6645a751eb98bc03d7c50603b2", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/AFNetwo...
6,093
c
/* +-----------------------------------------------------------+ | Copyright (c) 2017 <NAME> | +-----------------------------------------------------------+ | This source file is subject to version the BDS license, | | that is bundled with this package in the file LICENSE | +---...
35.7
27
(translation_unit) "/*\n +-----------------------------------------------------------+\n | Copyright (c) 2017 <NAME> |\n +-----------------------------------------------------------+\n | This source file is subject to version the BDS license, |\n | that is bundled with this package in the ...
92
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.7, "nodes": 57, "errors": 0, "source_hash": "b1713c06b709f2b9f714805c7d86d48648400be5ae2372025444e9b07ec0b748", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,094
c
/* This file is part of TACS: The Toolkit for the Analysis of Composite Structures, a parallel finite-element code for structural and multidisciplinary design optimization. Copyright (C) 2010 University of Toronto Copyright (C) 2012 University of Michigan Copyright (C) 2014 Georgia Tech Research Corporatio...
33.57
88
(translation_unit) "/*\n This file is part of TACS: The Toolkit for the Analysis of Composite\n Structures, a parallel finite-element code for structural and\n multidisciplinary design optimization.\n\n Copyright (C) 2010 University of Toronto\n Copyright (C) 2012 University of Michigan\n Copyright (C) 2014 Georg...
537
6
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 33.57, "nodes": 344, "errors": 0, "source_hash": "e48571d445ef1daf9828c5c5dfc3e91529afdc138c8752f66aaf8fae743ce8ca", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,095
c
#include "wt.h" char * show_site() { char *site = malloc(15 * sizeof(char)); strcpy(site, "123.abcd.456"); return site; }
16
8
(translation_unit) "#include "wt.h"\n \nchar * show_site()\n{\n char *site = malloc(15 * sizeof(char));\n strcpy(site, "123.abcd.456");\n return site;\n}" (preproc_include) "#include "wt.h"\n" (#include) "#include" (string_literal) ""wt.h"" (") """ (string_content) "wt.h" (") """ ...
58
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.0, "nodes": 33, "errors": 0, "source_hash": "8932167b79204ca20ad11c02b94dc044fd35d4d45d653f5c041459aa3763c4a3", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
6,096
c
/***************************************** Copyright 2008 Google 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 requir...
34.1
30
(translation_unit) "/*****************************************\n Copyright 2008 Google 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/LI...
175
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.1, "nodes": 113, "errors": 0, "source_hash": "df67dd58d2b384e7f07c204d1f47e5fb73b6a7cb1bc2beb7cba1ef73fad2a172", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,097
c
/* <NAME> 10770072*/ #include"modo11.h" #include"fornecido.h" #include"grafo.h" //Função que organiza e executa o modo 11 void modo11() { //Continuar com a leitura char nome_arq_pessoa[30], nome_arq_index[30], nome_arq_segue[30], nomeCelebridade[40]; le_entradas_modo11(nome_arq_pessoa, nome_arq_index, nom...
33.03
93
(translation_unit) "/* <NAME> 10770072*/\n\n#include"modo11.h"\n#include"fornecido.h"\n#include"grafo.h"\n\n//Função que organiza e executa o modo 11\nvoid modo11()\n{\n //Continuar com a leitura\n char nome_arq_pessoa[30], nome_arq_index[30], nome_arq_segue[30], nomeCelebridade[40];\n le_entradas_modo11(nome_...
736
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 33.03, "nodes": 409, "errors": 0, "source_hash": "1500de68097170136b87cd07e9c83cb8212db3dc05465d9c9020d81077f0804b", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,098
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <sys/socket.h> #include <unistd.h> #include <arpa/inet.h> int main(int argc, char **argv) { int s; int r; if (argc != 3) { fprintf(stderr, "%s <ip> <port>\n", argv[0]); exit(EXIT_FAILURE); } ...
24.58
33
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <assert.h>\n#include <sys/socket.h>\n\n#include <unistd.h>\n#include <arpa/inet.h>\n\nint main(int argc, char **argv) {\n\n int s;\n int r;\n\n if (argc != 3) {\n fprintf(stderr, "%s <ip> <port>\n", argv[0]);\n ...
311
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.58, "nodes": 180, "errors": 0, "source_hash": "c65ae2895fa5a4ff81534f710ad1eadab6bf1b00221255ba05caf3fb939555ad", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,099