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
#ifndef TOG_TREE_H #define TOG_TREE_H #include <string> #include <unordered_map> #include "blob.h" #include "handle.h" #include "object.h" namespace tog { class Tree : public TogObject { public: Tree(std::unordered_map<std::string, Handle<Blob>> &&blobs, std::unordered_map<std::string, Handle<Tree>> &&...
30.04
27
(translation_unit) "#ifndef TOG_TREE_H\n#define TOG_TREE_H\n\n#include <string>\n#include <unordered_map>\n\n#include "blob.h"\n#include "handle.h"\n#include "object.h"\n\nnamespace tog {\n\nclass Tree : public TogObject {\npublic:\n Tree(std::unordered_map<std::string, Handle<Blob>> &&blobs,\n std::unordere...
271
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.04, "nodes": 169, "errors": 0, "source_hash": "db575b19c278e4305ee1d2ac7c0c768891de01a4643707c2fa9732caf010c189", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,500
c
#ifndef __ORTHOGRAPHICCAMERA_H__ #define __ORTHOGRAPHICCAMERA_H__ #include "Camera.h" class OrthographicCamera : public Camera { public: OrthographicCamera(); virtual ~OrthographicCamera(); void CalcProjection() override; void OnViewportResize() override; }; #endif // !__ORTHOGRAPHICCAMERA_H__
24
12
(translation_unit) "#ifndef __ORTHOGRAPHICCAMERA_H__\n#define __ORTHOGRAPHICCAMERA_H__\n\n#include "Camera.h"\n\nclass OrthographicCamera : public Camera\n{\npublic:\n OrthographicCamera();\n virtual ~OrthographicCamera();\n\n void CalcProjection() override; \n void OnViewportResize() override;\n};\n\n#endif // !__ORTH...
67
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.0, "nodes": 38, "errors": 0, "source_hash": "8c60c3bb847e6aa0ea9ec796866a4562038b8103c7ffa8be33efe00ca74c3e9c", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,501
c
/* { dg-do run } */ /* { dg-options "-O2 -mavx512f" } */ /* { dg-require-effective-target avx512f } */ #define AVX512F #include "avx512f-helper.h" #define SIZE (AVX512F_LEN / 32) #include "avx512f-mask-type.h" #include "string.h" static void CALC (UNION_TYPE (AVX512F_LEN, i_d) s1, int *res_ref, int mask) { memset...
25.02
46
(translation_unit) "/* { dg-do run } */\n/* { dg-options "-O2 -mavx512f" } */\n/* { dg-require-effective-target avx512f } */\n\n#define AVX512F\n\n#include "avx512f-helper.h"\n\n#define SIZE (AVX512F_LEN / 32)\n#include "avx512f-mask-type.h"\n#include "string.h"\n\nstatic void\nCALC (UNION_TYPE (AVX512F_LEN, i_d) s1, i...
433
2
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.02, "nodes": 258, "errors": 0, "source_hash": "242c44d192a8065bc7d8e55db82b2d2c0ba45e7a9c30a2a6adfeacb8c189eb83", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
8,502
c
#ifndef _NICEHERO_NOCOPY_H #define _NICEHERO_NOCOPY_H namespace nicehero { class NoCopy { protected: NoCopy(); ~NoCopy(); private: NoCopy(const NoCopy &); NoCopy & operator=(const NoCopy &); }; inline NoCopy::NoCopy() { } inline NoCopy::~NoCopy() { } } #endif
12.29
21
(translation_unit) "#ifndef _NICEHERO_NOCOPY_H\n#define _NICEHERO_NOCOPY_H\n\nnamespace nicehero\n{\n class NoCopy\n {\n protected:\n NoCopy();\n ~NoCopy();\n private:\n NoCopy(const NoCopy &);\n NoCopy & operator=(const NoCopy &);\n };\n\n inline NoCopy::NoCopy()\n {\n }\n\n inline NoCopy::~NoCopy()\n {\n }\n}\n\n...
106
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 12.29, "nodes": 53, "errors": 0, "source_hash": "3b899a9c8bbda660373ff167b8c02b650b01d2b4ab9be8379242c4b56d5ecae1", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,503
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/dataexchange/DataExchange_EXPORTS.h> #include <aws/dataexchange/DataExchangeRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { n...
39.03
134
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/dataexchange/DataExchange_EXPORTS.h>\n#include <aws/dataexchange/DataExchangeRequest.h>\n#include <aws/core/utils/memory/stl/AWSString.h>\n#include <u...
838
40
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 39.03, "nodes": 513, "errors": 0, "source_hash": "74b4bff0ffd20cb795ed0a732c151a482678e581ca9c49662265d3ac2626c38f", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
8,504
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. /* * quest.c: Quest UI for NPCs - see which quests are available, * start new que...
35.26
323
(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 * quest.c: Quest UI for NPCs - see which quests are a...
2,531
2
{"language": "c", "success": true, "metadata": {"lines": 323, "avg_line_length": 35.26, "nodes": 1501, "errors": 0, "source_hash": "612e9154bd79a82d24f12ea2578376a36b9ecd44ecd3e084f21075c284b673df", "categorized_nodes": 1120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
8,505
c
#include "lwip/debug.h" #define assert(x) LWIP_ASSERT("there is a bug",x);
36.5
2
(translation_unit) "#include "lwip/debug.h"\n#define assert(x) LWIP_ASSERT("there is a bug",x);\n\n\n" (preproc_include) "#include "lwip/debug.h"\n" (#include) "#include" (string_literal) ""lwip/debug.h"" (") """ (string_content) "lwip/debug.h" (") """ (preproc_function_def) "#define asser...
15
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 36.5, "nodes": 9, "errors": 0, "source_hash": "5c6eb0ec0efd27ab97d716a3d11e688d078bf2a4cb4d68d40f25df49fc896b90", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
8,506
c
#pragma once #include <string> #include "glm/glm.hpp" #include "pixelboost/file/fileHelpers.h" #include "pixelboost/graphics/device/device.h" namespace pb { class Texture { protected: Texture(); virtual ~Texture(); public: enum TextureFormat { kTextureFormatRGB, kTextureFor...
21.73
51
(translation_unit) "#pragma once\n\n#include <string>\n\n#include "glm/glm.hpp"\n\n#include "pixelboost/file/fileHelpers.h"\n#include "pixelboost/graphics/device/device.h"\n\nnamespace pb\n{\n \nclass Texture\n{\nprotected:\n Texture();\n virtual ~Texture();\n \npublic:\n enum TextureFormat\n {\n ...
252
10
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 21.73, "nodes": 158, "errors": 0, "source_hash": "e53037ccd2a1110a403adcfe66ebee206a2dc35d52b43b93a454c31af1829259", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,507
c
/* ======================================== * * Copyright YOUR COMPANY, THE YEAR * All Rights Reserved * UNPUBLISHED, LICENSED SOFTWARE. * * CONFIDENTIAL AND PROPRIETARY INFORMATION * WHICH IS THE PROPERTY OF your company. * * ======================================== */ #ifndef PARAMETERS_H #define PARAMETERS...
34.5
52
(translation_unit) "/* ========================================\n *\n * Copyright YOUR COMPANY, THE YEAR\n * All Rights Reserved\n * UNPUBLISHED, LICENSED SOFTWARE.\n *\n * CONFIDENTIAL AND PROPRIETARY INFORMATION\n * WHICH IS THE PROPERTY OF your company.\n *\n * ========================================\n*/\n\n#ifndef...
301
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 34.5, "nodes": 215, "errors": 0, "source_hash": "8c3a490a7d7beb48e0d6078cae77d904e6d3670146d05cd0ae33c2f685c6b53c", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,508
c
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <time.h> #include <math.h> #include <stdbool.h> #include <string.h> #include <sys/stat.h> #ifndef prjListaVinculada_H # define prjListaVinculada_H #define ESC 27 #define and && extern int i, j; extern char opcion; typedef struct Lista{ in...
17.95
58
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <windows.h>\n#include <time.h>\n#include <math.h>\n#include <stdbool.h>\n#include <string.h>\n#include <sys/stat.h>\n\n#ifndef prjListaVinculada_H\n# define prjListaVinculada_H\n \n #define ESC 27\n #define and &&\n\n extern int i, j;\n extern char o...
371
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 17.95, "nodes": 268, "errors": 0, "source_hash": "3546b4e48737d9eac72d63c975b047fe732f94f73665ed1de2d39af38cf88a89", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,509
c
#include <CZXSpectrum.h>
24
1
(translation_unit) "#include <CZXSpectrum.h>\n" (preproc_include) "#include <CZXSpectrum.h>\n" (#include) "#include" (system_lib_string) "<CZXSpectrum.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 24.0, "nodes": 3, "errors": 0, "source_hash": "800c22df1b6e39e39d002fbb8e235f8f7b3c731d5aaaa1365ff25d612b24384d", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
8,510
c
#ifndef UI_SYSTEM_H #define UI_SYSTEM_H #include <SDL2/SDL.h> #include <SDL2_ttf/SDL_ttf.h> #include <string> #include <utility> #include <vector> #include "PhysicsManager.h" #include "RenderManager.h" class UISystem { public: static UISystem& get(); void add_static_text(SDL_Rect location, std::string cons...
30.3
33
(translation_unit) "#ifndef UI_SYSTEM_H\n#define UI_SYSTEM_H\n#include <SDL2/SDL.h>\n#include <SDL2_ttf/SDL_ttf.h>\n\n#include <string>\n#include <utility>\n#include <vector>\n\n#include "PhysicsManager.h"\n#include "RenderManager.h"\n\n\nclass UISystem {\npublic:\n static UISystem& get();\n\n void add_static_tex...
299
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.3, "nodes": 184, "errors": 0, "source_hash": "b6e95cb67f820bfc1fae0eab0fad0cc66bb8048884a8e77007e5ec9e16344166", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,511
c
/* $Id: UIGlobalSettingsExtension.h $ */ /** @file * VBox Qt GUI - UIGlobalSettingsExtension class declaration. */ /* * Copyright (C) 2010-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can r...
37.66
77
(translation_unit) "/* $Id: UIGlobalSettingsExtension.h $ */\n/** @file\n * VBox Qt GUI - UIGlobalSettingsExtension class declaration.\n */\n\n/*\n * Copyright (C) 2010-2012 Oracle Corporation\n *\n * This file is part of VirtualBox Open Source Edition (OSE), as\n * available from http://www.virtualbox.org. This file i...
304
12
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 37.66, "nodes": 170, "errors": 0, "source_hash": "3e170fdfa265a2f47ce6eaafd2a95da26485605420211556ce0d6b753876b281", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,512
c
/* A partir da idade informada de um cidadão, diga se ele não pode votar (idade inferior a 16), ou se o voto é facultativo (idade igual a 16 ou 17 ou ainda maior do que 70), ou ainda se o voto é obrigatório para idades entre 18 e 70 (incluindo estes valores) */ #include <stdio.h> int main() { int idade=0, falta=0...
24.18
38
(translation_unit) "/* A partir da idade informada de um cidadão, diga se ele não pode votar (idade inferior a 16),\nou se o voto é facultativo (idade igual a 16 ou 17 ou ainda maior do que 70),\nou ainda se o voto é obrigatório para idades entre 18 e 70 (incluindo estes valores)\n*/\n\n#include <stdio.h>\n\nint main()...
178
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.18, "nodes": 89, "errors": 0, "source_hash": "841c1751d99568b305f194fb2e522216f9b22dffba51f4f38dbdb9f953931869", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ude <s...
8,513
c
// // DatePicker.h // rsaTest // // Created by commet on 16/11/17. // Copyright © 2016年 commet. All rights reserved. //日期选择 // #import <UIKit/UIKit.h> typedef void(^dateConfirmBlock)(NSDate *selectedDate); typedef void(^dateCancelBlock)(void); typedef void(^monPickerCteateBlock)(NSDate *currentDate); @interface D...
35.67
24
(translation_unit) "//\n// DatePicker.h\n// rsaTest\n//\n// Created by commet on 16/11/17.\n// Copyright © 2016年 commet. All rights reserved.\n//日期选择\n//\n\n#import <UIKit/UIKit.h>\ntypedef void(^dateConfirmBlock)(NSDate *selectedDate);\ntypedef void(^dateCancelBlock)(void);\ntypedef void(^monPickerCteateBlock)(NSD...
194
19
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.67, "nodes": 123, "errors": 0, "source_hash": "47688d0bfad3744e586e73dc8f5c75b6b6c78b263add57609fd5cf7daac88cce", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKi...
8,514
c
#include <stdio.h> #include <stdlib.h> #include <process.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> int main(int argc, char *argv[]) { char *feeds[] = { "http://www.cnn.com/rss/celebs.xml", "http://www.rollingstone.com/rock.xml", "http://eonline.com...
25.34
35
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <process.h>\n#include <string.h>\n#include <errno.h>\n#include <unistd.h>\n#include <sys/types.h>\n\nint main(int argc, char *argv[])\n{\n char *feeds[] = {\n "http://www.cnn.com/rss/celebs.xml",\n "http://www.rollingstone.com/rock.x...
273
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.34, "nodes": 154, "errors": 0, "source_hash": "f67c0cb80fc6346e300748a2b14b1163a3bbd03cff2e56be313e74099b07b01c", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,515
c
#pragma once #include <sck/server.h> #include <sck/logic_interface.h> #include <sck/connected_client.h> #include <sck/client_writer.h> #include <lm/logger.h> namespace app { class example_logic: public sck::logic_interface { public: example_logic(sck::server&, lm::logger*); virtual void handle_ne...
34.62
24
(translation_unit) "#pragma once\n\n#include <sck/server.h>\n#include <sck/logic_interface.h>\n#include <sck/connected_client.h>\n#include <sck/client_writer.h>\n\n#include <lm/logger.h>\n\nnamespace app {\n\nclass example_logic:\n public sck::logic_interface {\n\n public:\n\n example_logic(sck::server&, lm::...
263
32
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 34.62, "nodes": 134, "errors": 0, "source_hash": "4ec97b50d4d68a4fdfcb938cb5dbc3e6381f1337356e3fcb0060b1ab299cf1c3", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,516
c
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
30.93
42
(translation_unit) "//============================================================================\n// Copyright (c) Kitware, Inc.\n// All rights reserved.\n// See LICENSE.txt for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS...
232
21
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.93, "nodes": 145, "errors": 0, "source_hash": "6fc441e9ea7637a832556551c6f77e7edad1a5edd93b6af0cfb44ffeba6de133", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,517
c
// // ViewController.h // GitSubModuleTset // // Created by dolway on 21/5/28. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
15
10
(translation_unit) "//\n// ViewController.h\n// GitSubModuleTset\n//\n// Created by dolway on 21/5/28.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// GitSubModuleTset" (comment) "//" (comment) "// ...
21
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.0, "nodes": 11, "errors": 0, "source_hash": "4bba8b474abb0a3870e6c62b662c8310f337e638f17e8f8036d2ed381ab2da86", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
8,518
c
#include "menu.h" #include "video.h" #include <string.h> typedef struct { SDL_Texture* texture; int selection; bool inited; } menu_t; static menu_t menu; void menu_init() { menu.texture = load_texture_from_file("tileset.png"); menu.selection = 0; menu.inited = true; } void menu_on_key_event(game_t* game, struc...
23.48
89
(translation_unit) "#include "menu.h"\n#include "video.h"\n#include <string.h>\n\ntypedef struct {\n SDL_Texture* texture;\n int selection;\n bool inited;\n} menu_t;\n\nstatic menu_t menu;\n\nvoid menu_init() {\n menu.texture = load_texture_from_file("tileset.png");\n menu.selection = 0;\n menu.inited = true;\n}\nvoid ...
820
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 23.48, "nodes": 542, "errors": 0, "source_hash": "24316a0d1b0739628777d0605d5ed8d51e494a126c64d8eb082b101c5449b9dc", "categorized_nodes": 378}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,519
c
// // SGBaseTableViewController.h // SGCC // // Created by wangpo on 2018/6/8. // Copyright © 2018年 SGCC. All rights reserved. // #import "SGBaseViewController.h" #import "UIScrollView+Placeholder.h" #import "NSError+SGCC.h" #import "UITableView+FDTemplateLayoutCell.h" typedef NS_ENUM(NSInteger, ELoadType) { ...
22.44
55
(translation_unit) "//\n// SGBaseTableViewController.h\n// SGCC\n//\n// Created by wangpo on 2018/6/8.\n// Copyright © 2018年 SGCC. All rights reserved.\n//\n\n#import "SGBaseViewController.h"\n#import "UIScrollView+Placeholder.h"\n#import "NSError+SGCC.h"\n#import "UITableView+FDTemplateLayoutCell.h"\n\ntypedef NS_...
238
19
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 22.44, "nodes": 146, "errors": 0, "source_hash": "020fe7da17e31f52254eb70bc5dce50ebf29b03eab3081908f5746d4b9d9aec7", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"S...
8,520
c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> /*int lojas[200][200][2]; int conta[200];*/ int main() { int i = 0; int numero; int posX, posY; char dest[4]; char tempNome[4]; int tempX, tempY; int tempID; int minimumX = 0, minimumY = 0, square = -1; ...
25.39
41
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\n/*int lojas[200][200][2];\nint conta[200];*/\n\nint main()\n{\n int i = 0;\n int numero;\n int posX, posY;\n char dest[4];\n\n\n char tempNome[4];\n int tempX, tempY;\n int tempID;\n\n int mini...
328
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 25.39, "nodes": 206, "errors": 0, "source_hash": "df61f13933b5f27a756d2be63e672d95f7f1612f26997738c9e55f6d7c0e8c61", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,521
c
// // LiteraryHeaven-Bridging-Header.h // LiteraryHeaven // // Created by SanW on 2017/7/19. // Copyright © 2017年 ONON. All rights reserved. // #import <UIKit/UIKit.h> #import "NSString+SWExt.h" #import "PTKeyChainStore.h" #import <MJExtension/MJExtension.h> //#import <MJRefresh/MJRefresh.h>
23.75
12
(translation_unit) "//\n// LiteraryHeaven-Bridging-Header.h\n// LiteraryHeaven\n//\n// Created by SanW on 2017/7/19.\n// Copyright © 2017年 ONON. All rights reserved.\n//\n#import <UIKit/UIKit.h>\n#import "NSString+SWExt.h"\n#import "PTKeyChainStore.h"\n#import <MJExtension/MJExtension.h>\n//#import <MJRefresh/MJRef...
21
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.75, "nodes": 12, "errors": 0, "source_hash": "39c74ac217054ec91ec426704f3a84ede7525a3c3fcc491c2fb701224b9fe4bc", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
8,522
c
/* This file was generated by the "svnrev" utility. * You should not modify it manually, as it may be re-generated. * * $Revision: 3664$ * $Date: 2006-11-08$ */ #ifndef SVNREH_H #define SVNREV_H #define SVN_REV 3664 #define SVN_REVSTR "3664.samp" #define SVN_REVDATE "2006-11-08" #define SVN_REVSTAMP 20061108L ...
25.08
13
(translation_unit) "/* This file was generated by the "svnrev" utility.\n * You should not modify it manually, as it may be re-generated.\n *\n * $Revision: 3664$\n * $Date: 2006-11-08$\n */\n\n#ifndef SVNREH_H\n#define SVNREV_H\n\n#define SVN_REV 3664\n#define SVN_REVSTR "3664.samp"\n#define SVN_REVDATE "2006-11-08"\...
26
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.08, "nodes": 23, "errors": 0, "source_hash": "8b121c945f68339b96f59bb1c3051681321802e6badee8656f8c1ab3d0bed4b8", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
8,523
c
#include <u.h> #include <libc.h> #include <libg.h> #include "m.h" extern Mouse mouse; enum{ Margin=3, /* outside to text */ Border=2, /* outside to selection boxes */ Blackborder=1, /* width of outlining border */ Vspacing=1 /* extra spacing between lines of text */ }; Rectangle menurect(Rectangle, int); int menu...
24.17
96
(translation_unit) "#include <u.h>\n#include <libc.h>\n#include <libg.h>\n#include "m.h"\n\nextern Mouse mouse;\nenum{\n Margin=3, /* outside to text */\n Border=2, /* outside to selection boxes */\n Blackborder=1, /* width of outlining border */\n Vspacing=1 /* extra spacing between lines of text */\n};\n\nRectangle m...
1,293
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 24.17, "nodes": 837, "errors": 0, "source_hash": "b75b3b9a32bfcfcfd8c83bfc93326cf8a624e7a0382eb0cdfb8ee98256e2c549", "categorized_nodes": 691}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,524
c
#ifndef STATEMENT_CODEGEN_H #define STATEMENT_CODEGEN_H void stmt_cg_expression(struct statement *st); void stmt_cg_compound(struct statement *st); void stmt_cg_if(struct statement *st); void stmt_cg_if_else(struct statement *st); void stmt_cg_for(struct statement *st); void stmt_cg_while(struct statement *st); void s...
38.83
12
(translation_unit) "#ifndef STATEMENT_CODEGEN_H\n#define STATEMENT_CODEGEN_H\n\nvoid stmt_cg_expression(struct statement *st);\nvoid stmt_cg_compound(struct statement *st);\nvoid stmt_cg_if(struct statement *st);\nvoid stmt_cg_if_else(struct statement *st);\nvoid stmt_cg_for(struct statement *st);\nvoid stmt_cg_while(s...
144
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.83, "nodes": 115, "errors": 0, "source_hash": "6c6d9cd88883af4ba4306eb1a0bd0f87e8526d27473ec2a3550fa21ac081ea0f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,525
c
/* FUNCTION <<assert>>---macro for debugging diagnostics INDEX assert ANSI_SYNOPSIS #include <assert.h> void assert(int <[expression]>); DESCRIPTION Use this macro to embed debuggging diagnostic statements in your programs. The argument <[expression]> should be an expression which evaluates to true (nonzero) ...
31.39
71
(translation_unit) "/*\nFUNCTION\n<<assert>>---macro for debugging diagnostics\n\nINDEX\n assert\n\nANSI_SYNOPSIS\n #include <assert.h>\n void assert(int <[expression]>);\n\nDESCRIPTION\n Use this macro to embed debuggging diagnostic statements in\n your programs. The argument <[expression]> should be an\n expression ...
300
1
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 31.39, "nodes": 162, "errors": 0, "source_hash": "d099573c2b71adafc500d0b3d1caadbb19d18adee6f253103d1eea32bb538dad", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,526
c
// // UIView+Additions.h // Jikebaba // // Created by lyons on 2018/1/23. // Copyright © 2018年 cookcreative. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Additions) @property (nonatomic ,strong)UIViewController *viewController; @end
22.55
11
(translation_unit) "//\n// UIView+Additions.h\n// Jikebaba\n//\n// Created by lyons on 2018/1/23.\n// Copyright © 2018年 cookcreative. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (Additions)\n@property (nonatomic ,strong)UIViewController *viewController;\n@end\n" (comment) "//" (comm...
41
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.55, "nodes": 27, "errors": 0, "source_hash": "dc2de8dcae1c72ea13c62249cd6cb37be6cf9b33152ca97e102e69823440e2ab", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
8,527
c
// // GrowlTicketDatabaseAction.h // Growl // // Created by <NAME> on 3/2/12. // Copyright (c) 2012 The Growl Project. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #import "GrowlTicketDatabasePlugin.h" @class GrowlTicketDatabaseCompoundAction, GrowlTicketDatabaseTicket; ...
38.08
25
(translation_unit) "//\n// GrowlTicketDatabaseAction.h\n// Growl\n//\n// Created by <NAME> on 3/2/12.\n// Copyright (c) 2012 The Growl Project. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n#import "GrowlTicketDatabasePlugin.h"\n\n@class GrowlTicketDatabaseCompoundAct...
224
39
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 38.08, "nodes": 152, "errors": 0, "source_hash": "7a442219431898b375c1136cc2eed025f0d41396348f2c2e82678f417b1a07ca", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
8,528
c
/** * Exercitiul 2. * Afisarea divizorilor nebanali pentru un numar sau mesajul PRIM. */ #include <stdio.h> #include <stdbool.h> int main() { int x, i, primes = 0; bool prim; while(scanf("%d", &x) && x > 0) { prim = true; printf("OUT: "); for (i = 2; i < x; i++) { if...
20.93
29
(translation_unit) "/**\n * Exercitiul 2.\n * Afisarea divizorilor nebanali pentru un numar sau mesajul PRIM.\n */\n#include <stdio.h>\n#include <stdbool.h>\n\nint main()\n{\n int x, i, primes = 0;\n bool prim;\n\n while(scanf("%d", &x) && x > 0) {\n prim = true;\n printf("OUT: ");\n for (...
197
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.93, "nodes": 104, "errors": 0, "source_hash": "8c4e61fd5ff4121e3cba68dc15d55baefa15fa05945782e9874320bcd2af8254", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,529
c
/*! @header EMGroup.h @abstract 群组对象类型 @author EaseMob Inc. @version 1.00 2014/01/01 Creation (1.00) */ #import <Foundation/Foundation.h> @class EMError; /*! @class @brief 聊天消息类 */ @interface EMGroup : NSObject /*! @property @brief 群组ID */ @property (nonatomic, strong, readonly) NSString *groupId; /*! ...
17.8
75
(translation_unit) "/*!\n @header EMGroup.h\n @abstract 群组对象类型\n @author EaseMob Inc.\n @version 1.00 2014/01/01 Creation (1.00)\n */\n\n#import <Foundation/Foundation.h>\n\n@class EMError;\n\n/*!\n @class\n @brief 聊天消息类\n */\n@interface EMGroup : NSObject\n\n/*!\n @property\n @brief 群组ID\n */\n@property (nonatomic, st...
241
46
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 17.8, "nodes": 170, "errors": 0, "source_hash": "ffd0658b3f68fb53a243da9b4f61c70d7868d24106a9301ae1e39b580adb77f0", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ndation/F...
8,530
c
#ifndef IROUTER_H #define IROUTER_H #include "iroute.h" #define ROUTE(func,...) [&](IRequest *req, IRoute::Match params) -> IResponse* { return func(req,##__VA_ARGS__); } #define INT(x) params.captured(#x).toInt() #define UINT(x) params.captured(#x).toUInt() #define STR(x) params.captured(#x) #define ROUTE_FN [&](IRe...
36.88
17
(translation_unit) "#ifndef IROUTER_H\n#define IROUTER_H\n\n#include "iroute.h"\n\n#define ROUTE(func,...) [&](IRequest *req, IRoute::Match params) -> IResponse* { return func(req,##__VA_ARGS__); }\n#define INT(x) params.captured(#x).toInt()\n#define UINT(x) params.captured(#x).toUInt()\n#define STR(x) params.captured(...
124
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.88, "nodes": 88, "errors": 0, "source_hash": "af66512406bb862004b4504daf836602ee812068b51fd9a82f92bda943493bd5", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,531
c
#ifndef _LED_H #define _LED_H #include "stm32f10x.h" void LED_Configuration(void); #endif
14.17
6
(translation_unit) "#ifndef _LED_H\n#define _LED_H\n\n#include "stm32f10x.h"\n\nvoid LED_Configuration(void);\n\n\n#endif\n\n" (preproc_ifdef) "#ifndef _LED_H\n#define _LED_H\n\n#include "stm32f10x.h"\n\nvoid LED_Configuration(void);\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "_LED_H" (preproc_def) "#d...
24
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 14.17, "nodes": 17, "errors": 0, "source_hash": "9cef96e766b54083cb116debb2117c5255e74754a59c859458dd9045203640fb", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,532
c
// kv_heap_dictionary.h /*====== This file is part of Percona Server for MongoDB. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. Percona Server for MongoDB is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, v...
45.02
80
(translation_unit) "// kv_heap_dictionary.h\n\n/*======\nThis file is part of Percona Server for MongoDB.\n\nCopyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.\n\n Percona Server for MongoDB is free software: you can redistribute\n it and/or modify it under the terms of the GNU Affero G...
803
50
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 45.02, "nodes": 423, "errors": 0, "source_hash": "57c020f6cb6ac25be30ffa476de29e869c217c19985f45d522194580cb01fa58", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,533
c
// Copyright (c) 2015 <NAME>. See License.txt regarding use. /* O(1) block allocator. It can also be used as an index allocator if ** the block size is sizeof(uint32_t). */ #pragma once #include <stdint.h> #if defined(__cplusplus) extern "C" { #endif typedef struct fba__ {}* fba_t; /* returns bytes to manage num_...
37.16
37
(translation_unit) "// Copyright (c) 2015 <NAME>. See License.txt regarding use.\n\n/* O(1) block allocator. It can also be used as an index allocator if \n** the block size is sizeof(uint32_t).\n*/\n\n#pragma once\n#include <stdint.h>\n\n#if defined(__cplusplus)\nextern "C" {\n#endif\n\ntypedef struct fba__ {}* fba_t;...
315
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.16, "nodes": 224, "errors": 0, "source_hash": "e99b88f9c6bcf4560138ec606267d51dcede3fdc3cdf77f648d1e94f78074c4a", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,534
c
#pragma once #include <glm/glm.hpp> #include <spdlog/spdlog.h> #include "../LuaModule.h" #include "../../core/EventHandler.h" namespace spice { namespace lua_module { class Window : public LuaModule { public: Window(SDL_Window* window); void init_module(std::shared_ptr<sol::state> lua_state); private: ...
17.32
19
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include <spdlog/spdlog.h>\n\n#include "../LuaModule.h"\n#include "../../core/EventHandler.h"\n\nnamespace spice\n{\nnamespace lua_module\n{\n\n class Window : public LuaModule\n {\n public:\n Window(SDL_Window* window);\n void init_module(std::shared_ptr...
90
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.32, "nodes": 53, "errors": 0, "source_hash": "36b374bdc19a8d63b8c3c4d7df7b0eaeb363c1ac7a35440c38779f1fdfda1331", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,535
c
#include "utils.h" #include "interface.h" int main() { startpump(HELPMSSGE); menu(MENU_STATE1); return 0; }
12.1
10
(translation_unit) "#include "utils.h" \n#include "interface.h" \n \n \nint main() \n{ \n startpump(HELPMSSGE); \n menu(MENU_STATE1); \n return 0; \n} \n" (preproc_include) "#include "utils.h" \n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" ...
43
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.1, "nodes": 21, "errors": 0, "source_hash": "bb9febea7b5f3b23df5e6a918366a1761fc7719d4720d834ec7593fd9bd26830", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
8,536
c
#pragma once #include "engine/core/base/type_def.h" namespace Echo { class Buffer { public: Buffer(); Buffer(ui32 size, void* pData = nullptr, bool bAutoFree = false); virtual ~Buffer(); virtual void allocate(ui32 size); virtual void clear(); virtual void set(ui32 size, void *pData, bool bAutoFree = f...
22.83
23
(translation_unit) "#pragma once\n\n#include "engine/core/base/type_def.h"\n\nnamespace Echo\n{\n class Buffer\n {\n public:\n Buffer();\n Buffer(ui32 size, void* pData = nullptr, bool bAutoFree = false);\n virtual ~Buffer();\n\n virtual void allocate(ui32 size);\n virtual void clear();\n virtual void set(ui32 si...
200
17
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.83, "nodes": 131, "errors": 0, "source_hash": "a5a8e7eb5d6e26d80c31e8944c455884e286220e472e2845f2de789528d2b041", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,537
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSString.h" @interface NSString (Addition) - (_Bool)isEqualIgnoreCaseToString:(id)arg1; - (id)stringByDecodingURLFormat; - (id)md5; @end
24.27
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSString.h"\n\n@interface NSString (Addition)\n- (_Bool)isEqualIgnoreCaseToString:(id)arg1;\n- (id)stringByDecodingURLFormat;\n- (id)md5;\n@end\n\n" (...
59
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.27, "nodes": 33, "errors": 0, "source_hash": "2579b30b3f916b5423c3c46adac2f5265411d15383979bbfce5134a9ac310cf4", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
8,538
c
/*s: xalloc.c */ /*s: kernel basic includes */ #include <u.h> #include "../port/lib.h" #include "../port/error.h" #include "mem.h" #include "dat.h" #include "fns.h" /*e: kernel basic includes */ /*s: xalloc.c forward decl */ void xhole(ulong, ulong); /*e: xalloc.c forward decl */ //****************************...
28.26
282
(translation_unit) "/*s: xalloc.c */\n/*s: kernel basic includes */\n#include <u.h>\n#include "../port/lib.h"\n#include "../port/error.h"\n#include "mem.h"\n#include "dat.h"\n#include "fns.h"\n/*e: kernel basic includes */\n\n/*s: xalloc.c forward decl */\nvoid xhole(ulong, ulong);\n/*e: xalloc.c forward decl */...
2,308
4
{"language": "c", "success": true, "metadata": {"lines": 282, "avg_line_length": 28.26, "nodes": 1389, "errors": 0, "source_hash": "a3b1a33f23e9e402ca87e80de046aa296e40209bc04dcf5a4c5816feb658e86a", "categorized_nodes": 1075}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
8,539
c
/* ZBreakout Project Copyright (c) 2018 <NAME> (Telegram @MrOnlineCoder | github.com/MrOnlineCoder | <EMAIL>) All rights reserved. Only original author is allowed to edit and share this file. Unauthorized copying or editing this file, via any medium is strictly prohibited Proprietary and confidential */ #ifndef INVE...
24.71
24
(translation_unit) "/*\nZBreakout Project\n\nCopyright (c) 2018 <NAME> (Telegram @MrOnlineCoder | github.com/MrOnlineCoder | <EMAIL>)\nAll rights reserved.\n\nOnly original author is allowed to edit and share this file.\nUnauthorized copying or editing this file, via any medium is strictly prohibited\nProprietary and c...
62
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.71, "nodes": 36, "errors": 0, "source_hash": "65513e821b505cf3152c3b4bf87d78d287cd23d16af28f178abd7e4333388a15", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,540
c
/** * \file PnlWzskObjDetail.h * API code for job PnlWzskObjDetail (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifndef PNLWZSKOBJDETAIL_H #define PNLWZSKOBJDETAIL_H #include "ApiWzsk_blks.h" #define Ve...
31.04
185
(translation_unit) "/**\n * \file PnlWzskObjDetail.h\n * API code for job PnlWzskObjDetail (declarations)\n * \copyright (C) 2016-2020 MPSI Technologies GmbH\n * \author <NAME> (auto-generation)\n * \date created: 5 Dec 2020\n */\n// IP header --- ABOVE\n\n#ifndef PNLWZSKOBJDETAIL_H\n#define PNLWZSKOBJDETAIL_H\n\n#incl...
1,792
118
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 31.04, "nodes": 1000, "errors": 0, "source_hash": "abd24f35d4712b1513943a352bbcbd20b392a501e3eb7884778bd7430b94864b", "categorized_nodes": 606}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
8,541
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 "MBPeerMessagable-Protocol.h" @class NSString; @interface MBPeerPreflightRequest : NSObject <MBPeerMessagable> { ...
43.38
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 "MBPeerMessagable-Protocol.h"\n\n@class NSString;\n\n@interface MBPeerPreflightRequest : N...
217
25
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 43.38, "nodes": 144, "errors": 0, "source_hash": "bcc1884a8b2f9b9ca5f4556e75f299f9893c3905caddb80db1d1931a0b7ffcb5", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
8,542
c
/** Program to store 9 number With constant value in two dimension Array that is three into matrix and print in matrix form. **/ #include<stdio.h> #include<conio.h> void p18() { printf("\n\t\t(Program to store 9 number With constant value in two dimension Array that is three into matrix and pri...
33.21
19
(translation_unit) "/** Program to store 9 number With constant value in two dimension Array that is three into matrix and print in matrix form. **/ \n \n #include<stdio.h>\n #include<conio.h>\n void p18()\n {\n printf("\n\t\t(Program to store 9 number With constant value in two dimension Array that is three in...
185
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.21, "nodes": 105, "errors": 0, "source_hash": "1229b0a9b1f12021d1732ea1fd4038cfe0a10eb72a8641ee66ec88b59350b7f9", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,543
c
#ifndef _EXALGO_MEMINFO_H #define _EXALGO_MEMINFO_H #include <common/output.h> #include <cstdint> #include <set> #include <vector> // directions #define MEM_INPUT 0x1 #define MEM_OUTPUT 0x2 #define MEM_INTERMEDIATE 0x3 // linking mode #define GREEDY 1 #define DYNAMIC_PROG 2 /* input typedef */ struct mem_input_t {...
38.56
86
(translation_unit) "#ifndef _EXALGO_MEMINFO_H\n#define _EXALGO_MEMINFO_H\n\n#include <common/output.h>\n\n#include <cstdint>\n#include <set>\n#include <vector>\n\n// directions\n#define MEM_INPUT 0x1\n#define MEM_OUTPUT 0x2\n#define MEM_INTERMEDIATE 0x3\n\n// linking mode\n#define GREEDY 1\n#define DYNAMIC_PROG 2\n\n/*...
836
43
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 38.56, "nodes": 587, "errors": 0, "source_hash": "598fb66ffa0004308a25eb2e4234ebad64d72eac704735181a61e6441d5eba12", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,544
c
// // OrviboLockAddUser.h // HomeMateSDK // // Created by liqiang on 2017/12/13. // Copyright © 2017年 orvibo. All rights reserved. // #import "BaseCmd.h" @interface OrviboLockAddUserCmd : BaseCmd @property (nonatomic, strong)NSString * extAddr; @property (nonatomic, strong)NSString * userId; @property (nonatomic,...
29.94
16
(translation_unit) "//\n// OrviboLockAddUser.h\n// HomeMateSDK\n//\n// Created by liqiang on 2017/12/13.\n// Copyright © 2017年 orvibo. All rights reserved.\n//\n\n#import "BaseCmd.h"\n\n@interface OrviboLockAddUserCmd : BaseCmd\n@property (nonatomic, strong)NSString * extAddr;\n@property (nonatomic, strong)NSString...
122
26
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.94, "nodes": 89, "errors": 0, "source_hash": "c0c3bc9d78363a3cadf9a1426e757b18c25fda04358982185ec90651cb776d3b", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
8,545
c
// Copyright (c) 2021, <NAME> - SW Consulting. All rights reserved. // For the licensing terms see LICENSE file in the root directory. For the // list of contributors see the AUTHORS file in the same directory. #ifndef KWCTOOLKIT_NET_ADDRESS_IPV6_H_ #define KWCTOOLKIT_NET_ADDRESS_IPV6_H_ #include <arpa/inet.h> #inclu...
38.23
64
(translation_unit) "// Copyright (c) 2021, <NAME> - SW Consulting. All rights reserved.\n// For the licensing terms see LICENSE file in the root directory. For the\n// list of contributors see the AUTHORS file in the same directory.\n\n#ifndef KWCTOOLKIT_NET_ADDRESS_IPV6_H_\n#define KWCTOOLKIT_NET_ADDRESS_IPV6_H_\n\n#i...
543
19
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 38.23, "nodes": 301, "errors": 0, "source_hash": "be47e0e6853075fc7877efd10676995095037ce5fcec23bf64eb83678429fc14", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,546
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:46:22 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME...
38
13
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:46:22 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore\n* classdump-dyld is licensed under GPLv3, Copyr...
66
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.0, "nodes": 40, "errors": 0, "source_hash": "9879a9881182d6a833773d3bd0fdbeea37e6d9100fd171270239492214190047", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol _UITextS...
8,547
c
#include <crypt.h> #include <stdio.h> #include <unistd.h> int main(void) { char salt[256]; char *password; printf("Insira o sal: "); scanf("%s", salt); password = crypt(getpass("Digite a senha: "), salt); puts(password); return 0; }
19.58
12
(translation_unit) "#include <crypt.h>\n#include <stdio.h>\n#include <unistd.h>\n\nint main(void) {\n char salt[256];\n char *password;\n\n printf("Insira o sal: ");\n scanf("%s", salt);\n password = crypt(getpass("Digite a senha: "), salt);\n\n puts(password);\n return 0;\n}\n" (preproc_include) "#include <cr...
93
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.58, "nodes": 52, "errors": 0, "source_hash": "a8d1b1185a6be43244d20adf0c59556a0c466446bb19c0d376c43a4b4a48f525", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,548
c
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIB_ZXIO_INCLUDE_LIB_ZXIO_INCEPTION_H_ #define LIB_ZXIO_INCLUDE_LIB_ZXIO_INCEPTION_H_ #ifndef __cplusplus #error This header file must be used fro...
40.7
10
(translation_unit) "// Copyright 2021 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef LIB_ZXIO_INCLUDE_LIB_ZXIO_INCEPTION_H_\n#define LIB_ZXIO_INCLUDE_LIB_ZXIO_INCEPTION_H_\n\n#ifndef __cplusplus\n#error This ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 40.7, "nodes": 17, "errors": 0, "source_hash": "5b689caa50eeb5fd9650b6267c37db8101320ae55f305aee686c2a3c9e15f8a2", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
8,549
c
int unlzss(unsigned char *out, int a2, int a3);
47
1
(translation_unit) "int unlzss(unsigned char *out, int a2, int a3);\n" (declaration) "int unlzss(unsigned char *out, int a2, int a3);" (primitive_type) "int" (function_declarator) "unlzss(unsigned char *out, int a2, int a3)" (identifier) "unlzss" (parameter_list) "(unsigned char *out, int a2, int ...
24
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 47.0, "nodes": 18, "errors": 0, "source_hash": "cdd3384a6cf5a1ba31efcde94f8fbbbb5e3d562616ed7620f45fb87418fb8062", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int unlzss(u...
8,550
c
#import <Foundation/Foundation.h> @interface TGBridgePeerNotificationSettings : NSObject <NSCoding> @property (nonatomic, assign) int32_t muteFor; @end
37
4
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface TGBridgePeerNotificationSettings : NSObject <NSCoding>\n\n@property (nonatomic, assign) int32_t muteFor;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" ...
30
6
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.0, "nodes": 23, "errors": 0, "source_hash": "ed896804a3d89a436b8246611775fea1fd55deeafa4afc2b798aa3830cdb93fa", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
8,551
c
// // AppDelegate.h // SampleTravisCI // // Created by <NAME> on 1/22/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end
18.82
11
(translation_unit) "//\n// AppDelegate.h\n// SampleTravisCI\n//\n// Created by <NAME> on 1/22/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n\n\n@end\n\n" (comment) "//" (comment) "// AppDelegate.h" (comment) ...
25
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.82, "nodes": 14, "errors": 0, "source_hash": "74cfa70caeeb1442be32767744adf0a1f209effee8bac346674c992091ded2f6", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Co...
8,552
c
#define TMR_CASCADE (1 << 2) #define TMR_IRQ (1 << 6) #define TMR_ENB (1 << 7) uint32_t tmr_icnt[4]; uint8_t tmr_enb; uint8_t tmr_irq; uint8_t tmr_ie; void timers_clock(uint32_t cycles);
23.75
8
(translation_unit) "#define TMR_CASCADE (1 << 2)\n#define TMR_IRQ (1 << 6)\n#define TMR_ENB (1 << 7)\n\nuint32_t tmr_icnt[4];\n\nuint8_t tmr_enb;\nuint8_t tmr_irq;\nuint8_t tmr_ie;\n\nvoid timers_clock(uint32_t cycles);" (preproc_def) "#define TMR_CASCADE (1 << 2)\n" (#define) "#define" (identifie...
44
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 23.75, "nodes": 34, "errors": 0, "source_hash": "18c9f3548c625abf87c5522abbffcb0c09307982cc2ee2e16f9ec1be126eae4b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define TMR...
8,553
c
// // Created by <NAME> on 2021-06-10. // #ifndef UCENTRALSEC_DAEMON_H #define UCENTRALSEC_DAEMON_H #include <iostream> #include <cstdlib> #include <vector> #include <set> #include "Poco/Util/Application.h" #include "Poco/Util/ServerApplication.h" #include "Poco/Util/Option.h" #include "Poco/Util/OptionSet.h" #inclu...
36.23
44
(translation_unit) "//\n// Created by <NAME> on 2021-06-10.\n//\n\n#ifndef UCENTRALSEC_DAEMON_H\n#define UCENTRALSEC_DAEMON_H\n\n#include <iostream>\n#include <cstdlib>\n#include <vector>\n#include <set>\n\n#include "Poco/Util/Application.h"\n#include "Poco/Util/ServerApplication.h"\n#include "Poco/Util/Option.h"\n#inc...
358
11
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.23, "nodes": 188, "errors": 0, "source_hash": "71677a1113b53408e7daa58f60aa658d3eaa92b9c2c6b1043b2e5a016310048a", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,554
c
#include <string.h> #include <stdlib.h> #include <err.h> #include "hashmap.h" struct node { char *key; void *value; struct node *next; }; unsigned long hash(char *str) { unsigned long hash = 5381; int c; while ((c = *str++)) { hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ }...
25.91
131
(translation_unit) "#include <string.h>\n#include <stdlib.h>\n#include <err.h>\n#include "hashmap.h"\n\nstruct node {\n char *key;\n void *value;\n struct node *next;\n};\n\nunsigned long\nhash(char *str)\n{\n unsigned long hash = 5381;\n int c;\n\n while ((c = *str++)) {\n hash = ((hash << 5) ...
1,131
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 25.91, "nodes": 746, "errors": 0, "source_hash": "b3b713e0be8ef293f96cd97ec7b1312c5d66b9838c25a00e456db51a1f3802ad", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,555
c
#include "BlockingQueue.h" #include "queue_impl.h" #include "cyclic_buffer.h" void blocking_queue_init(blocking_queue* queue, int capacity) { queue->is_open = 1; queue->capacity = capacity; cb_init(&queue->q, 10000, sizeof(packaged_task)); PRERR(pthread_mutex_init(&queue->mutex, NULL)); PRERR(pthre...
34.16
76
(translation_unit) "#include "BlockingQueue.h"\n#include "queue_impl.h"\n#include "cyclic_buffer.h"\n\nvoid blocking_queue_init(blocking_queue* queue, int capacity) {\n queue->is_open = 1;\n queue->capacity = capacity;\n cb_init(&queue->q, 10000, sizeof(packaged_task));\n PRERR(pthread_mutex_init(&queue->mu...
934
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 34.16, "nodes": 538, "errors": 0, "source_hash": "d6dd5d190cd2767c639ae38738c2a8f05ac8671e14af108af4eb408479d13f5a", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,556
c
/****************************************************************************** Copyright (C) 2013 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without lim...
31.32
220
(translation_unit) "/******************************************************************************\nCopyright (C) 2013 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without restricti...
677
44
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 31.32, "nodes": 372, "errors": 0, "source_hash": "624a24bf7a632fc4c66f69e440b80bb69afa81beed298803e9bea677667cdb19", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,557
c
#ifndef _STDINT_H_INCLUDED #define _STDINT_H_INCLUDED #include "arch.h" #endif
18.75
4
(translation_unit) "#ifndef _STDINT_H_INCLUDED\n#define _STDINT_H_INCLUDED\n\n#include "arch.h"\n\n#endif\n" (preproc_ifdef) "#ifndef _STDINT_H_INCLUDED\n#define _STDINT_H_INCLUDED\n\n#include "arch.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "_STDINT_H_INCLUDED" (preproc_def) "#define _STDINT_H_INCLUD...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.75, "nodes": 10, "errors": 0, "source_hash": "c02256efc0af65129287cec194395a29ae6e8560057f41029c7bf7dd6894bb79", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _S...
8,558
c
/* * clone.c * by WN @ Jul. 25, 2010 */ #include "syscall_handler.h" #include <common/debug.h> #include <xasm/tls.h> #include <xasm/syscall.h> #include <xasm/string.h> #include <xasm/utils.h> #include <interp/arch_signal.h> #include <interp/checkpoint.h> #include <linux/futex.h> /* from: linux/sched */ #define CS...
27.76
278
(translation_unit) "/* \n * clone.c\n * by WN @ Jul. 25, 2010\n */\n\n#include "syscall_handler.h"\n#include <common/debug.h>\n#include <xasm/tls.h>\n#include <xasm/syscall.h>\n#include <xasm/string.h>\n#include <xasm/utils.h>\n#include <interp/arch_signal.h>\n#include <interp/checkpoint.h>\n#include <linux/futex.h>\n\...
1,530
0
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 27.76, "nodes": 942, "errors": 0, "source_hash": "3c49cb4344a047583384a28bd4534a2f8d8bc438215e132fc49411c6156a881d", "categorized_nodes": 667}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,559
c
#ifndef MARKTREEVIEW_H #define MARKTREEVIEW_H #include <QTreeView> #include <QTableView> #include "model/markmodel.h" class MarkModel; class QAction; class QMenu; class TreeItem; class QGraphicsItem; /** * \brief This class is used to view \a MarkModel * */ class MarkTreeView:public QTreeView { Q_OBJECT public:...
27.29
70
(translation_unit) "#ifndef MARKTREEVIEW_H\n#define MARKTREEVIEW_H\n\n#include <QTreeView>\n#include <QTableView>\n#include "model/markmodel.h"\n\nclass MarkModel;\nclass QAction;\nclass QMenu;\nclass TreeItem;\nclass QGraphicsItem;\n\n/**\n * \brief This class is used to view \a MarkModel\n * \n */\nclass MarkTreeView...
457
26
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 27.29, "nodes": 270, "errors": 0, "source_hash": "2a09f3dbbb8b42154d925a2700c0e85ba95616c49087a556272f9fbdd8875226", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MARKTR...
8,560
c
/* ----------------------------------------------------------------------------- * fragment.c * * This file manages named code fragments. Code fragments are typically * used to hold helper-code that may or may not be included in the wrapper * file (depending on what features are actually used in the ...
34.05
57
(translation_unit) "/* ----------------------------------------------------------------------------- \n * fragment.c\n *\n * This file manages named code fragments. Code fragments are typically\n * used to hold helper-code that may or may not be included in the wrapper\n * file (depending on what features ...
304
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.05, "nodes": 170, "errors": 0, "source_hash": "17bc33d63fa429e6316bc5d29125370a7a8cbd98848a0fd57b39ba32625559d9", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char cvs...
8,561
c
#define SPARC_RET_VOID 0 #define SPARC_RET_STRUCT 1 #define SPARC_RET_UINT8 2 #define SPARC_RET_SINT8 3 #define SPARC_RET_UINT16 4 #define SPARC_RET_SINT16 5 #define SPARC_RET_UINT32 6 #define SP_V9_RET_SINT32 7 /* v9 only */ #define SP_V8_RET_CPLX16 7 /* v8 only */ #define SPARC_RET_INT64 8 #define SPARC...
28.15
26
(translation_unit) "#define SPARC_RET_VOID 0 \n#define SPARC_RET_STRUCT 1 \n#define SPARC_RET_UINT8 2 \n#define SPARC_RET_SINT8 3 \n#define SPARC_RET_UINT16 4 \n#define SPARC_RET_SINT16 5 \n#define SPARC_RET_UINT32 6 \n#define SP_V9_RET_SINT32 7 /* v9 only */ \n#define SP_V8_RET_CPLX16 7 /* v8 only */ \n#define SPAR...
94
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.15, "nodes": 88, "errors": 0, "source_hash": "dd21b513ebdcce97b1d4db1deec1e85e920a914265593f11431eb75136680959", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SP...
8,562
c
#include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "common.h" #include "squeue.h" #define STRMEMCPY(dest, src) \ memcpy(dest, src, strlen(src) > sizeof(dest) ? sizeof(dest) :...
27.12
156
(translation_unit) "#include <errno.h>\n#include <fcntl.h>\n#include <signal.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n#include "common.h"\n#include "squeue.h"\n\n#define STRMEMCPY(dest, src) \\n memcpy(dest, src, strlen(sr...
1,349
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 27.12, "nodes": 701, "errors": 0, "source_hash": "16ab37ba446e6628678ef56257da601579935ebd9482b1bbfa47f0c6418e4a15", "categorized_nodes": 528}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,563
c
//===--- InputFile.h --------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
36.33
67
(translation_unit) "//===--- InputFile.h --------------------------------------------*- C++ -*-===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\...
365
16
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 36.33, "nodes": 193, "errors": 0, "source_hash": "80cd7227758a4644feec66b721197d06efadf3e06233a0865e81e638b2889709", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,564
c
#include <stdio.h> #include <stdlib.h> struct node *head; struct node { int data; struct node* next; }; void awal() { struct node *ptr; int data; ptr = (struct node*) malloc(sizeof(struct node*)); if (ptr==NULL) { printf("Overflow!"); } else { ...
20.13
271
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n \nstruct node *head; \n \nstruct node { \n int data; \n struct node* next; \n}; \n \nvoid awal() \n{ \n struct node *ptr; \n int data; \n \n ptr = (struct node*) malloc(sizeof(struct node*)); \n if (ptr==NULL) \n { \n printf("Ov...
1,593
0
{"language": "c", "success": true, "metadata": {"lines": 271, "avg_line_length": 20.13, "nodes": 826, "errors": 0, "source_hash": "1f5338dedd0680fd6b342e19113f7c7f5980fea40deb9e7ab997e5f6992a3b84", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,565
c
/* * Copyright (c) 2020 Libre Solar Technologies GmbH * * SPDX-License-Identifier: Apache-2.0 */ /* * @addtogroup test_dac_loopback * @{ * @defgroup t_dac_basic_loopback test_dac_loopback * @brief TestPurpose: read back DAC driver output with ADC * @} */ #include <drivers/dac.h> #include <drivers/adc.h> #in...
31.23
159
(translation_unit) "/*\n * Copyright (c) 2020 Libre Solar Technologies GmbH\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n * @addtogroup test_dac_loopback\n * @{\n * @defgroup t_dac_basic_loopback test_dac_loopback\n * @brief TestPurpose: read back DAC driver output with ADC\n * @}\n */\n\n#include <drivers/d...
809
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 31.23, "nodes": 553, "errors": 0, "source_hash": "a9b46bd3bfb54b843ad2b359cd5b2f245b43785b35ca067da3bb0e16aa93d888", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,566
c
/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
25.89
140
(translation_unit) "/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. \n * \n * The information contained herein is property of Nordic Semiconductor ASA. \n * Terms and conditions of usage are described in detail in NORDIC \n * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. \n * \n * Licensees are gr...
518
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 25.89, "nodes": 258, "errors": 0, "source_hash": "96f8df5cb631172fc20aaa0c8fd39676ccbb2982966cae55c1e31dedf6cb0197", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,567
c
// // MyNextPasswordTableViewCell.h // Vendetta // // Created by <NAME> on 15/8/16. // Copyright (c) 2015年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "GlobalHeader.h" @interface MyNextPasswordTableViewCell : UITableViewCell @property (nonatomic, strong) UIView *customBackgroundView; @proper...
31.67
18
(translation_unit) "//\n// MyNextPasswordTableViewCell.h\n// Vendetta\n//\n// Created by <NAME> on 15/8/16.\n// Copyright (c) 2015年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "GlobalHeader.h"\n \n@interface MyNextPasswordTableViewCell : UITableViewCell\n\n@property (nonatomic, strong) UIVi...
139
26
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.67, "nodes": 102, "errors": 0, "source_hash": "27acc3acdb1f3d4635b7d9e5c6544c8f5384ce057ee249dd71964f20b9af5a85", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
8,568
c
#pragma once #include <string> // This can be used to parse and retrieve startup/command arguments of the application namespace wi::arguments { void Parse(const wchar_t* args); void Parse(int argc, char *argv[]); bool HasArgument(const std::string& value); }
28.44
9
(translation_unit) "#pragma once\n\n#include <string>\n\n// This can be used to parse and retrieve startup/command arguments of the application\nnamespace wi::arguments\n{\n void Parse(const wchar_t* args);\n void Parse(int argc, char *argv[]);\n bool HasArgument(const std::string& value);\n}\n" (preproc_call) "#p...
71
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.44, "nodes": 45, "errors": 0, "source_hash": "5b93f0ac552dee99e573b364ecb47a293182e75f331a89655be6a56364de7039", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,569
c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. * * File: main.c * Purpose: API mode test driver */ #include <stdio.h> #include <stdlib.h> #include...
23.17
72
(translation_unit) "/* \n * \n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2019 Broadcom Inc. All rights reserved.\n *\n * File: main.c\n * Purpose: API mode test driver\n */\n\n#include <stdio.h...
439
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.17, "nodes": 242, "errors": 0, "source_hash": "0ca02877cd2a03c22f1df16fcf4aac808bebc79d50978edd93995f58e68b15a8", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,570
c
#pragma once #include <SFML/Graphics.hpp> #include "Juego.h" #include "Personaje.h" namespace Alfheim { class Interfaz { public: Interfaz(DatosJuegoRef datos); void Pintar(); void Update(float dt); private: sf::Clock _clock; sf::Font txtFont; sf::Text _txtVida; sf::Text _txtMana; ...
16.2
20
(translation_unit) "#pragma once\n\n#include <SFML/Graphics.hpp>\n#include "Juego.h"\n#include "Personaje.h"\n\nnamespace Alfheim\n{\n\nclass Interfaz {\npublic:\n Interfaz(DatosJuegoRef datos);\n void Pintar();\n void Update(float dt);\n \nprivate:\n sf::Clock _clock;\n sf::Font txtFont;\n sf::Tex...
114
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 16.2, "nodes": 65, "errors": 0, "source_hash": "e807111079958c9a4192634ba564ccec70be537ce1ad31bd0247aad6883cf6eb", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,571
c
#ifndef QEDITOR_ITEMS_WIDGET_H #define QEDITOR_ITEMS_WIDGET_H #include <vector> #include <QTreeWidget> #include <QWidget> #include <QIcon> #include "MapQPixmapGenerator.h" #include <QMouseEvent> class QEditorItemsWidget : public QTreeWidget { Q_OBJECT public: QEditorItemsWidget(QWidget* parent); private: ...
22.44
16
(translation_unit) "#ifndef QEDITOR_ITEMS_WIDGET_H\n#define QEDITOR_ITEMS_WIDGET_H\n#include <vector>\n#include <QTreeWidget>\n#include <QWidget>\n#include <QIcon>\n#include "MapQPixmapGenerator.h"\n#include <QMouseEvent>\n\nclass QEditorItemsWidget : public QTreeWidget {\n Q_OBJECT\n\npublic:\n QEditorItemsWidge...
69
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.44, "nodes": 46, "errors": 0, "source_hash": "c08853c428a86839db775e6abd0ab3b1565d6d8f5ab99ad494e92c1cc34aa2cf", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,572
c
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. * * \brief A simple wrapper for accessing data in R object. * * \note * Due to license issue, we cannot include R's header file, so use this simple ...
24.3
159
(translation_unit) "/*!\n * Copyright (c) 2017 Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See LICENSE file in the project root for license information.\n *\n * \brief A simple wrapper for accessing data in R object.\n *\n * \note\n * Due to license issue, we cannot include R's heade...
1,062
2
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 24.3, "nodes": 750, "errors": 0, "source_hash": "526e93760974c3605abba176e472569829f4f1e14d1628b5ffd0a6c624df1c49", "categorized_nodes": 505}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,573
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "IRadarSearchExt.h" #import "WeChat-Structs.h" #import "MMUIViewController.h" #import "PBMessageObserverDelegate.h" #import "UIScrollViewDelegate.h" @class UI...
32.96
96
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "IRadarSearchExt.h"\n#import "WeChat-Structs.h"\n#import "MMUIViewController.h"\n#import "PBMessageObserverDelegate.h"\n#import "UIS...
1,008
53
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 32.96, "nodes": 635, "errors": 0, "source_hash": "a59357121f02b42076ad935cd56fac2dbf0d124e020fedaba62fe7e5b2030bfe", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
8,574
c
/* * File: include/asm-blackfin/mach-bf548/bf548.h * Based on: * Author: * * Created: * Description: System MMR register and memory map for ADSP-BF548 * * Modified: * Copyright 2004-2007 Analog Devices Inc. * * Bugs: Enter bugs at http://blackfin.uclinux.org/ * * This program...
26.87
110
(translation_unit) "/*\n * File: include/asm-blackfin/mach-bf548/bf548.h\n * Based on:\n * Author:\n *\n * Created:\n * Description: System MMR register and memory map for ADSP-BF548\n *\n * Modified:\n * Copyright 2004-2007 Analog Devices Inc.\n *\n * Bugs: Enter bugs at http://blackfin....
307
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 26.87, "nodes": 288, "errors": 0, "source_hash": "58c378bd244760d39c4979b79b92ab7763d0c0e9ec06764cb402ac98b6f81a92", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,575
c
/* * Copyright (c) 2000-2007 Apple Inc. All rights reserved. */ /* * Copyright (C) 1990, NeXT, Inc. * * File: next/kern_machdep.c * Author: <NAME> * * Machine-specific kernel routines. */ #include <sys/types.h> #include <mach/machine.h> #include <kern/cpu_number.h> #include <machine/exec.h> #include <pexpert...
21.22
170
(translation_unit) "/*\n * Copyright (c) 2000-2007 Apple Inc. All rights reserved.\n */\n/*\n * Copyright (C) 1990, NeXT, Inc.\n *\n * File: next/kern_machdep.c\n * Author: <NAME>\n *\n * Machine-specific kernel routines.\n */\n\n#include <sys/types.h>\n#include <mach/machine.h>\n#include <kern/cpu_number.h>\n#include...
567
0
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 21.22, "nodes": 339, "errors": 0, "source_hash": "a692ef4a89d589dc50ee035fc938917435782c51964599649fe46c915c6a24fb", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,576
c
// // ModuleListObject.h // Eloquent // // Created by <NAME> on 01.01.08. // Copyright 2008 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> @class SwordModule; @class SwordInstallSource; // tasks typedef enum _ModuleTaskId { TaskNone = 0, TaskInstall, TaskRemove, TaskUpdate }Mo...
23.68
25
(translation_unit) "//\n// ModuleListObject.h\n// Eloquent\n//\n// Created by <NAME> on 01.01.08.\n// Copyright 2008 __MyCompanyName__. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class SwordModule;\n@class SwordInstallSource;\n\n// tasks\ntypedef enum _ModuleTaskId {\n TaskNone = 0,\n TaskInstall...
135
23
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.68, "nodes": 91, "errors": 0, "source_hash": "0bbb54e483384a77a6d7f61918071dee68fd84575d13b572f98df42927f78a74", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,577
c
//work out a function to output the larger number #include <stdio.h> int comparation(int *a, int *b){ int max; if(*a > *b){ max = *a; }else{ max = *b; } return max; } int main(){ printf("Please input to numbers to compare them: "); int a = 0, b = 0, max = 0; scanf("%d %d",&a,&b); max = com...
18.47
19
(translation_unit) "//work out a function to output the larger number\n\n#include <stdio.h>\n\nint comparation(int *a, int *b){\n int max;\n if(*a > *b){\n max = *a;\n }else{\n max = *b;\n }\n return max;\n}\n\nint main(){\n printf("Please input to numbers to compare them: ");\n int a = 0, b = 0, max = 0;...
163
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 18.47, "nodes": 95, "errors": 0, "source_hash": "e6d502d88d10c38939e1357bac0e5444702e41ee995a8384377f3943d92fae6d", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,578
c
/* $Log: ivfilt.c,v $ Revision 1.2 2006/08/01 13:06:50 rjongbloed Added a raft of unvalidated audio codecs from OpenH323 tree Revision 1.1.2.1 2006/07/22 14:03:16 rjongbloed Added more plug ins Revision 1.1.2.1 2006/05/08 13:49:57 rjongbloed Imported all the audio codec plug ins from OpenH323 Revision 1.1 20...
32.64
117
(translation_unit) "/*\n\n$Log: ivfilt.c,v $\nRevision 1.2 2006/08/01 13:06:50 rjongbloed\nAdded a raft of unvalidated audio codecs from OpenH323 tree\n\nRevision 1.1.2.1 2006/07/22 14:03:16 rjongbloed\nAdded more plug ins\n\nRevision 1.1.2.1 2006/05/08 13:49:57 rjongbloed\nImported all the audio codec plug ins f...
527
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 32.64, "nodes": 335, "errors": 0, "source_hash": "769ead16e51c642373e836ae500b2f9750a76890299db9c28d8eeb77c41a6280", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
8,579
c
#include <stdio.h> int main() { int A, B, C, D, diferenca; scanf("%i", &A); scanf("%i", &B); scanf("%i", &C); scanf("%i", &D); diferenca = A * B - C * D; printf("DIFERENCA = %i\n", diferenca); return 0; }
14.35
17
(translation_unit) "#include <stdio.h>\n \nint main() {\n int A, B, C, D, diferenca;\n \n scanf("%i", &A);\n scanf("%i", &B);\n scanf("%i", &C);\n scanf("%i", &D);\n \n diferenca = A * B - C * D;\n \n printf("DIFERENCA = %i\n", diferenca);\n \n \n return 0;\n}" (preproc_include) "#...
119
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.35, "nodes": 60, "errors": 0, "source_hash": "47ca6d9438163b25538d255746f84fed6445e33af7151c47755f605386615a32", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,580
c
/* ** EPITECH PROJECT, 2017 ** proto.h ** File description: ** prototypes for a particular program */ #include <stdarg.h> #ifndef PROTO_H_ #define PROTO_H_ #define STOP_SHELL 4 #define DISP_PATH 3 typedef struct env_s { char *env_name; char *env_value; struct env_s *next; struct env_s *prev; } env_t; void redir...
30.77
99
(translation_unit) "/*\n** EPITECH PROJECT, 2017\n** proto.h\n** File description:\n** prototypes for a particular program\n*/\n#include <stdarg.h>\n#ifndef PROTO_H_\n#define PROTO_H_\n\n#define STOP_SHELL 4\n#define DISP_PATH 3\n\ntypedef struct env_s {\n char *env_name;\n char *env_value;\n struct env_s *next;\n str...
1,340
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 30.77, "nodes": 1035, "errors": 0, "source_hash": "24147ee4b495ce4edcd1fbc125d8e2ebd22cbfa1b87871236a66e132bdaff153", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,581
c
#pragma once #include "NNScene.h" #include "NNZip.h" #include "NNXML.h" #include "NNSprite.h" #include "NNSound.h" class ZipSample : public NNScene { public: ZipSample(); virtual ~ZipSample(); void Render(); void Update( float dTime ); NNCREATE_FUNC(ZipSample); private: NNZip *m_loadZip; NNXML *m_TestXML; ...
17.25
20
(translation_unit) "#pragma once\n\n#include "NNScene.h"\n#include "NNZip.h"\n#include "NNXML.h"\n#include "NNSprite.h"\n#include "NNSound.h"\n\nclass ZipSample : public NNScene\n{\npublic:\n ZipSample();\n virtual ~ZipSample();\n\n void Render();\n void Update( float dTime );\n\n NNCREATE_FUNC(ZipSample);\n\nprivate:\...
120
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.25, "nodes": 71, "errors": 0, "source_hash": "31b4e2216f44a7c7a3765d3c447dadd9d341b53019a66b761aa21cfd033cd02d", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,582
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSPersistentStoreDescription, WFDatabase; @protocol VCDatabaseProvider <NSObject> @property(readonly, copy, nonatomic) NSPersistentStoreDescription *storeDes...
34
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSPersistentStoreDescription, WFDatabase;\n\n@protocol VCDatabaseProvider <NSObject>\n@property(readonly, copy, nonatomic) NSPersi...
64
12
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 34.0, "nodes": 45, "errors": 0, "source_hash": "80ee5e0f82f957e108a04adca91a45a17fb2844af1a5dec3c56254d3973d09af", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
8,583
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
34.69
126
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* vim: set ts=8 sts=2 et sw=2 tw=80: */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at ht...
304
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 34.69, "nodes": 245, "errors": 0, "source_hash": "90ab2fe1b5fedb6e74488a6ef00fd29257fe6165e2506f06d831e032fa359172", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,584
c
/** Copyright (c) 2016, Ubiquity Robotics All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
37.4
134
(translation_unit) "/**\nCopyright (c) 2016, Ubiquity Robotics\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list...
653
16
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 37.4, "nodes": 436, "errors": 0, "source_hash": "aedd43460541735ba779dfee0a49650efefcb94963a14acc0eff38adcfd7494e", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,585
c
#ifndef ARMANAIVE_H #define ARMANAIVE_H #include "../util/Base.h" #include "../util/FileUtil.h" #include "../util/Conf.h" #include "../util/Monitor.h" #include "../util/Logger.h" #include "../structs/VectorElement.h" namespace ArmaNaive { vector<vector<VectorElement> > results; int index = 0; int size; ...
41.14
135
(translation_unit) "#ifndef ARMANAIVE_H\n#define ARMANAIVE_H\n\n#include "../util/Base.h"\n#include "../util/FileUtil.h"\n#include "../util/Conf.h"\n#include "../util/Monitor.h"\n#include "../util/Logger.h"\n#include "../structs/VectorElement.h"\n\nnamespace ArmaNaive {\n\n vector<vector<VectorElement> > results;\n ...
1,695
73
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 41.14, "nodes": 989, "errors": 0, "source_hash": "c96366be45ee9cb81dafdb8168b986d3141efd2590309e96c19e2d651d2147d9", "categorized_nodes": 696}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,586
c
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
31.46
61
(translation_unit) "/*\n * Copyright (C) 2021 Huawei Device Co., Ltd.\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...
343
15
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 31.46, "nodes": 204, "errors": 0, "source_hash": "69f48c7d247c80ac4ff805ee99d88b359c213dd762707e2cfa26b1b36ce03dd3", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,587
c
/** * * \section COPYRIGHT * * Copyright 2013-2017 Software Radio Systems Limited * * \section LICENSE * * This file is part of srsLTE. * * srsLTE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundat...
27.22
79
(translation_unit) "/**\n *\n * \section COPYRIGHT\n *\n * Copyright 2013-2017 Software Radio Systems Limited\n *\n * \section LICENSE\n *\n * This file is part of srsLTE.\n *\n * srsLTE is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * publis...
255
7
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 27.22, "nodes": 154, "errors": 0, "source_hash": "b88d7d4636812b51c56982fc597103a230534b71fe79cb186d803d6917944727", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,588
c
//header /* Write double value-return function named add_to_double_1 that accepts a double parameter */ double add_to_double_1(double num); /* Write double value-return function named add_to_double_2 that accepts a double parameter */
28.38
8
(translation_unit) "//header\n/*\nWrite double value-return function named add_to_double_1 that accepts a double parameter\n*/\n\ndouble add_to_double_1(double num);\n/*\nWrite double value-return function named add_to_double_2 that accepts a double parameter\n*/\n\n" (comment) "//header" (comment) "/*\nWrite doubl...
15
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 28.38, "nodes": 8, "errors": 0, "source_hash": "c31160af92538a9f368ac9eb25569689e7bb607391a4da5c245a6e088ff3e2e3", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "double add_to...
8,589
c
#pragma once #include <iostream> #include <vector> struct Node { int val = 0; Node* next = nullptr; }; typedef bool (*IntListDelegate)(Node* node); class IntList { public: void append(int val); void insert(int val, int pos); int count() const; Node* at(int index); void reverse(); ...
23.29
68
(translation_unit) "#pragma once\n#include <iostream>\n#include <vector>\n\nstruct Node\n{\n int val = 0;\n Node* next = nullptr;\n};\n\ntypedef bool (*IntListDelegate)(Node* node);\n\nclass IntList\n{\n public:\n void append(int val);\n void insert(int val, int pos);\n int count() const;\n Node* a...
489
15
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 23.29, "nodes": 312, "errors": 0, "source_hash": "ad0bdd66394e37b94350ef88372da3e81fd9cda4e64a003c414c4f8840cc8d41", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,590
c
// // main.c // WebSocketCore // // Created by <NAME> on 07/03/2011. // Copyright 2011 Inteliv Ltd. All rights reserved. // #include "WebSocket.h" void myread(WebSocketRef webSocket, WebSocketClientRef client, CFDataRef data) { CFStringRef string = CFStringCreateWithBytes(NULL, CFDataGetBytePtr(data), CFDataGet...
27.47
51
(translation_unit) "//\n// main.c\n// WebSocketCore\n//\n// Created by <NAME> on 07/03/2011.\n// Copyright 2011 Inteliv Ltd. All rights reserved.\n//\n\n#include "WebSocket.h"\n\nvoid myread(WebSocketRef webSocket, WebSocketClientRef client, CFDataRef data) {\n CFStringRef string = CFStringCreateWithBytes(NULL, CF...
164
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 27.47, "nodes": 73, "errors": 0, "source_hash": "0c7cc06d84932ba2dfd77ac1d9e52730ee4fb9c2918b04db7a28280800b35a6d", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,591
c
/*========================================================= * fort.h * header file for auxilliary routines for conversion * between MATLAB and FORTRAN complex data structures. * * Copyright 1984-2008 The MathWorks, Inc. *=======================================================*/ #include "stddef.h" /* * Convert...
30.39
31
(translation_unit) "/*=========================================================\n * fort.h\n * header file for auxilliary routines for conversion\n * between MATLAB and FORTRAN complex data structures.\n *\n * Copyright 1984-2008 The MathWorks, Inc.\n *=======================================================*/\n\n#inclu...
62
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.39, "nodes": 42, "errors": 0, "source_hash": "44346920cac6b7880707818a88f17f97231942a2589f122aad1415c803bf6e8b", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,592
c
/* ISC License Copyright (c) 2016-2017, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copie...
36.13
93
(translation_unit) "/*\n ISC License\n\n Copyright (c) 2016-2017, Autonomous Vehicle Systems Lab, University of Colorado at Boulder\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted, provided that the above\n copyright notice and this permission...
626
27
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 36.13, "nodes": 406, "errors": 0, "source_hash": "db5ac8c516c9b1b16e904d70e5c45d3b496f6aa6076da17ea716fee21cfe7f59", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,593
c
/** * @file nvme_ioctl_ioctl.h * @author <NAME> <<EMAIL>> * @date 2020/08/10 * @copyright Copyright (C) 2020 jc-lab.\n * This software may be modified and distributed under the terms * of the Apache License 2.0. See the LICENSE file for details. */ #ifndef JCU_DPARM_SRC_PLAT_LINUX_DRIVERS...
25.49
92
(translation_unit) "/**\n * @file nvme_ioctl_ioctl.h\n * @author <NAME> <<EMAIL>>\n * @date 2020/08/10\n * @copyright Copyright (C) 2020 jc-lab.\n\n * This software may be modified and distributed under the terms\n * of the Apache License 2.0. See the LICENSE file for details.\n */\n\n#ifndef JCU...
438
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 25.49, "nodes": 313, "errors": 0, "source_hash": "6d2f39db7b91200fc82a5a9310ff250017e215634d57caf0bf0e45531ad43b5b", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,594
c
#include "lib.h" #define DATA \ { 79, 8, 6, 93, 59, 84, 55, 9, 71, 33, 16 } #define DATA_LEN 11 void doHeapSort() { int records[DATA_LEN] = DATA; HeapList list = {DATA_LEN, records}; heapSort(&list); for (int i = 0; i < DATA_LEN; i++) prin...
28.14
35
(translation_unit) "#include "lib.h"\n#define DATA \\n { 79, 8, 6, 93, 59, 84, 55, 9, 71, 33, 16 }\n#define DATA_LEN 11\n\nvoid doHeapSort() {\n int records[DATA_LEN] = DATA;\n HeapList list = {DATA_LEN, records};\n heapSort(&list);\n for (int i = 0...
386
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.14, "nodes": 235, "errors": 0, "source_hash": "47fc583e221de4819472a4b9b549df96024714af522880c3dcba5a8b4983dd27", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,595
c
#ifndef LWIP_PING_H #define LWIP_PING_H extern int ping(char* target_name, uint32_t times, size_t size); #endif /* LWIP_PING_H */
31.5
4
(translation_unit) "#ifndef LWIP_PING_H\n#define LWIP_PING_H\n\nextern int ping(char* target_name, uint32_t times, size_t size);\n\n#endif /* LWIP_PING_H */\n" (preproc_ifdef) "#ifndef LWIP_PING_H\n#define LWIP_PING_H\n\nextern int ping(char* target_name, uint32_t times, size_t size);\n\n#endif" (#ifndef) "#ifnde...
32
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 31.5, "nodes": 25, "errors": 0, "source_hash": "17f3ef6a9fec7f3e6eabfdf06a67a21c5a251a8df4475b218e829cf2937f19d0", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LW...
8,596
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/ashchauhan/Desktop/SampleApp/OnePoint/Player/Web/WebControls/NavBar.java // // Created by ashchauhan on 3/21/14. // @class QueryManager; @protocol IControl; #import "Control.h" @interface NavBar :Control { } - (id)initWithIControl:(id<ICon...
26.43
14
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: /Users/ashchauhan/Desktop/SampleApp/OnePoint/Player/Web/WebControls/NavBar.java\n//\n// Created by ashchauhan on 3/21/14.\n//\n\n@class QueryManager;\n@protocol IControl;\n\n#import "Control.h"\n\n@interface NavBar :Control {\n}...
66
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.43, "nodes": 41, "errors": 0, "source_hash": "9819dd08215ee327c986c4cd7092391024935c1995d44a816d4a73784a45c34d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
8,597
c
// RUN: %ucc -c %s -DPRE= -DPOST= // RUN: %ucc -c %s -DPRE='main(){' -DPOST='}' PRE char x[] = "hello"; char y[] = { 'a', 'b' }; char *z = "yo"; int q[sizeof x]; // 6 POST
20.5
8
(translation_unit) "// RUN: %ucc -c %s -DPRE= -DPOST=\n// RUN: %ucc -c %s -DPRE='main(){' -DPOST='}'\n\nPRE\nchar x[] = "hello";\nchar y[] = { 'a', 'b' };\nchar *z = "yo";\n\nint q[sizeof x]; // 6\nPOST\n" (comment) "// RUN: %ucc -c %s -DPRE= -DPOST=" (comment) "// RUN: %ucc -c %s -DPRE='main(){' -DPOST='}'" (dec...
65
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.5, "nodes": 39, "errors": 0, "source_hash": "3c787db9121a1f874f7844fcc360e5516e7cede16892fbdda87efebd77c8ed19", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "PRE\nchar x[...
8,598
c
#pragma once class Quad : public Transform { protected: typedef VertexUVNormalTangent VertexType; Material* material; Mesh* mesh; vector<VertexType> vertices; vector<UINT> indices; WorldBuffer* worldBuffer; Float2 size; public: Quad(float width = 1.0f, float height = 1.0f); ~Quad(); void Render(); vo...
18.43
21
(translation_unit) "#pragma once\n\nclass Quad : public Transform\n{\nprotected:\n typedef VertexUVNormalTangent VertexType;\n\n Material* material;\n Mesh* mesh;\n\n vector<VertexType> vertices;\n vector<UINT> indices;\n\n WorldBuffer* worldBuffer;\n\n Float2 size;\n\npublic:\n Quad(float width = 1.0f, float height = ...
141
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.43, "nodes": 91, "errors": 0, "source_hash": "a330dd04c67800ce8a19dfd83b7fbee509567fe27ef4fea23311f204a2ad318c", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,599