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
/* Verify correctness of the sum-of-square routines */ #include <stdio.h> #include <stdlib.h> #include <time.h> /* These values should trigger leading/trailing array fragment handling */ #define NSAMP 200002 #define OFFSET 1 long long sumsq_wq(signed short *in,int cnt); long long sumsq_wq_ref(signed short *in,int cnt...
25.48
33
(translation_unit) "/* Verify correctness of the sum-of-square routines */\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\n/* These values should trigger leading/trailing array fragment handling */\n#define NSAMP 200002\n#define OFFSET 1\n\nlong long sumsq_wq(signed short *in,int cnt);\nlong long sumsq_w...
322
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.48, "nodes": 210, "errors": 0, "source_hash": "aa39d67b8bf5cb82fa57931565e6223ca3aa83c1b3b15444b9974e18020a32fa", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,000
c
/* -*- Mode: C ; c-basic-offset: 2 -*- */ /* Copyright (c) 2014 <NAME> * See the file COPYING for copying permission. */ #include <gps.h> #include <stdio.h> #include <errno.h> #include <math.h> #include <string.h> int main(int argc, char ** argv) { int ret; struct gps_data_t gpsdata; struct timeval tv; int v...
18.34
106
(translation_unit) "/* -*- Mode: C ; c-basic-offset: 2 -*- */\n/* Copyright (c) 2014 <NAME>\n * See the file COPYING for copying permission. */\n\n#include <gps.h>\n#include <stdio.h>\n#include <errno.h>\n#include <math.h>\n#include <string.h>\n\nint main(int argc, char ** argv)\n{\n int ret;\n struct gps_data_t gpsd...
718
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 18.34, "nodes": 400, "errors": 0, "source_hash": "6f70b5651eae10ef34eabcdec7b21ea86b0a2b17d5296bef57ca05a4f4a54890", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,001
c
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Message Sequencer Module * ======================== * * Sequencer for re-ordering messages from the ITM according to timestamp * information in the flow. * * from https://static.docs.arm.com/ddi0403/e/DDI0403E_B_armv7m_arm.pdf */ #include <assert.h> #include <s...
39.31
116
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause */\n\n/*\n * Message Sequencer Module\n * ========================\n *\n * Sequencer for re-ordering messages from the ITM according to timestamp\n * information in the flow.\n *\n * from https://static.docs.arm.com/ddi0403/e/DDI0403E_B_armv7m_arm.pdf\n */\n\...
685
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 39.31, "nodes": 401, "errors": 0, "source_hash": "fe7e682e2c4ea810911cbb2e7fabbd69c52594ea78d981e44cdda36db6c44ffc", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,002
c
// // TTShowStarPhoto.h // TTShow // // Created by twb on 13-10-12. // Copyright (c) 2013年 twb. All rights reserved. // #import <Foundation/Foundation.h> /* "_id" = "/1251728/0914/f652c97dc9c395174731290f7e0da41a.jpg"; praise = 35; timestamp = 1379131583884; title = "psb (1)"; type = 0; "user_id" = 1251728;...
28.62
26
(translation_unit) "//\n// TTShowStarPhoto.h\n// TTShow\n//\n// Created by twb on 13-10-12.\n// Copyright (c) 2013年 twb. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/*\n "_id" = "/1251728/0914/f652c97dc9c395174731290f7e0da41a.jpg";\n praise = 35;\n timestamp = 1379131583884;\n title = "psb (1)"...
139
27
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.62, "nodes": 98, "errors": 0, "source_hash": "9b87642405277047a1b28e894e64d38f1de85bc59c3b6dc2f5ad0c199964b8fb", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
12,003
c
#ifndef CRECT2D_H #define CRECT2D_H #include "Geometry/geometry.h" namespace Geometry { /** This class is the same in the meaning with the MFC CRect class, but all coordinates are stored in double, so it can be used to store a real world rectangle. */ class CRect2D { public: CRect2D(); CRect2D(double...
26.96
27
(translation_unit) "#ifndef CRECT2D_H\n#define CRECT2D_H\n\n#include "Geometry/geometry.h"\n\nnamespace Geometry\n{\n /**\n This class is the same in the meaning with the MFC CRect class, but all\n coordinates are stored in double, so it can be used to store a real world\n rectangle.\n */\n class CRect2D \n {\n pub...
153
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.96, "nodes": 87, "errors": 0, "source_hash": "af98d55c0e71d421262cb6b67daeae81e3f9bdcbf832fe30a4529b875644d89b", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,004
c
void matmult_mnk(int M, int N, int K, double **A, double **B, double **C) { // init C matrix for (int l = 0; l < M*N; l++) { C[0][l] = 0; } // do calculations for (int m = 0; m < M; m++) { for (int n = 0; n < N; n++) { for (int k = 0; k < K; k++) { C[m][n] += A[m][k] * B[k][n]; } } } ...
22
14
(translation_unit) "void matmult_mnk(int M, int N, int K, double **A, double **B, double **C) {\n // init C matrix\n for (int l = 0; l < M*N; l++) {\n C[0][l] = 0;\n }\n // do calculations\n for (int m = 0; m < M; m++) {\n for (int n = 0; n < N; n++) {\n for (int k = 0; k < K; k++) {\n C[m][n] += A[m][k] *...
186
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.0, "nodes": 121, "errors": 0, "source_hash": "8a5954822b53be19ad47e1105668d997ab09dbf1a8b9c12f6ffbd4190cd5aa9e", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
12,005
c
#pragma once #include "IyathuumCoreLib/BaseTypes/glmAABB.h" #include "IyathuumCoreLib/BaseTypes/Color.h" #include "AhwassaGraphicsLib/Renderer/IBox.h" namespace Ahwassa { class Dot : public IBox { public: Dot(const glm::vec3& pos, const float& size, const Iyathuum::Color& clr); void setPosition(const glm...
29.87
23
(translation_unit) "#pragma once\n\n#include "IyathuumCoreLib/BaseTypes/glmAABB.h"\n#include "IyathuumCoreLib/BaseTypes/Color.h"\n#include "AhwassaGraphicsLib/Renderer/IBox.h"\n\nnamespace Ahwassa {\n class Dot : public IBox {\n public:\n Dot(const glm::vec3& pos, const float& size, const Iyathuum::Color& clr);\n\...
222
16
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.87, "nodes": 112, "errors": 0, "source_hash": "2020c80bca0d370d0674126a257c4884fc953edb8eca462af31d274a863233a8", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,006
c
#ifndef ORNCLIENT_H #define ORNCLIENT_H #include "ornapirequest.h" #include <QSet> #include <QVariant> class QSettings; class QTimer; class QQmlEngine; class QJSEngine; class OrnClient : public OrnApiRequest { friend class OrnBackup; friend class OrnApiRequest; Q_OBJECT Q_PROPERTY(bool authorised R...
35.12
69
(ERROR) "#ifndef ORNCLIENT_H\n#define ORNCLIENT_H\n\n#include "ornapirequest.h"\n\n#include <QSet>\n#include <QVariant>\n\nclass QSettings;\nclass QTimer;\nclass QQmlEngine;\nclass QJSEngine;\n\nclass OrnClient : public OrnApiRequest\n{\n friend class OrnBackup;\n friend class OrnApiRequest;\n\n Q_OBJECT\n ...
658
38
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 35.12, "nodes": 388, "errors": 0, "source_hash": "8caa4c86476411d2d1cdb43d4a7151909f4fa7f57f93087a5a5fc3a86dcc2179", "categorized_nodes": 278}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ORNCLIENT_H\n#def...
12,007
c
#include "irq.h" /* irq_register: register an isr, enable channel interrupt * * id : peripheral irq id * priority : priority (0 to 7 (greater priority)) * isr : ISR */ int irq_register(uint32_t id, uint32_t mode, Handler_t isr) { if (!(IRQ_ALL_INT & (1<<id))) return 0; mode = (mod...
21.11
38
(translation_unit) "#include "irq.h" \n \n/* irq_register: register an isr, enable channel interrupt \n * \n * id : peripheral irq id \n * priority : priority (0 to 7 (greater priority)) \n * isr : ISR \n */ \nint irq_register(uint32_t id, uint32_t mode, Handler_t isr) \n{ \n if (!(IRQ_ALL_INT & (1<<id...
183
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.11, "nodes": 114, "errors": 0, "source_hash": "b82942ea48f7737985b6b7a30042b40e0a10075edb2ad2d8ed8db36dee591851", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,008
c
#include "defines.h" #include "../include/event_data.h" #include "../include/item.h" #include "../include/constants/items.h" void DebugMenu_ProcessSetFlag(void) { u32 i; switch (gSpecialVar_LastResult) { case 0: //Badges for (i = FLAG_BADGE01_GET; i <= FLAG_BADGE08_GET; ++i) FlagSet(i); break; case 1:...
30.26
121
(translation_unit) "#include "defines.h"\n#include "../include/event_data.h"\n#include "../include/item.h"\n#include "../include/constants/items.h"\n\nvoid DebugMenu_ProcessSetFlag(void)\n{\n u32 i;\n\n switch (gSpecialVar_LastResult) {\n case 0: //Badges\n for (i = FLAG_BADGE01_GET; i <= FLAG_BADGE08_GET; ++i)\n ...
1,022
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 30.26, "nodes": 562, "errors": 0, "source_hash": "763d458bbeec224e979a74f8b48c62229c5e78435f54eae4634c2c93782bd917", "categorized_nodes": 432}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,009
c
/** * @file examples/megacmd/megacmdlogger.h * @brief MegaCMD: Controls message logging * * (c) 2013-2016 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules...
27.73
63
(translation_unit) "/**\n * @file examples/megacmd/megacmdlogger.h\n * @brief MegaCMD: Controls message logging\n *\n * (c) 2013-2016 by Mega Limited, Auckland, New Zealand\n *\n * This file is part of the MEGA SDK - Client Access Engine.\n *\n * Applications using the MEGA API must present a valid application key\n * ...
299
8
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.73, "nodes": 180, "errors": 0, "source_hash": "165d8a1ed76980f892f49b92117bb1a625088296bf07edcdb648fde9bfc60d68", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,010
c
#ifndef HERC_STRING_UTILS_H #define HERC_STRING_UTILS_H #include <stdbool.h> #include <stdlib.h> const char* string_drop_prefix(const char *prefix, const char *str); bool string_array_member(const char **array, size_t n, const char *elem); #endif
34.29
7
(translation_unit) "#ifndef HERC_STRING_UTILS_H\n#define HERC_STRING_UTILS_H\n\n#include <stdbool.h>\n#include <stdlib.h>\n\nconst char* string_drop_prefix(const char *prefix, const char *str);\n\nbool string_array_member(const char **array, size_t n, const char *elem);\n\n#endif\n" (preproc_ifdef) "#ifndef HERC_STRI...
70
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.29, "nodes": 50, "errors": 0, "source_hash": "aa6cdd17e1786ae732abaf4edbcdfc58bdbb8dffe1720892bf5e58efa53ff0bb", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
12,011
c
// // XWViewController.h // ModuleB // // Created by gaohongcheng on 09/12/2019. // Copyright (c) 2019 gaohongcheng. All rights reserved. // @import UIKit; @interface XWViewController : UIViewController @end
20.2
10
(translation_unit) "//\n// XWViewController.h\n// ModuleB\n//\n// Created by gaohongcheng on 09/12/2019.\n// Copyright (c) 2019 gaohongcheng. All rights reserved.\n//\n\n@import UIKit;\n\n@interface XWViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// XWViewController.h" (comment) "// ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 10, "errors": 0, "source_hash": "ad7fb1b4b58ec390f7ecd22114e00d109296d1bba373b6b992bd02bf27621b5d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
12,012
c
// // KSYNetworkVC.h // KSYPlayerDemo // // Created by 施雪梅 on 2017/1/4. // Copyright © 2017年 kingsoft. All rights reserved. // #import "KSYUIVC.h" #import <libksygpulive/KSYNetTracker.h> @interface KSYNetTrackerVC : KSYUIVC @end
20.18
11
(translation_unit) "//\n// KSYNetworkVC.h\n// KSYPlayerDemo\n//\n// Created by 施雪梅 on 2017/1/4.\n// Copyright © 2017年 kingsoft. All rights reserved.\n//\n#import "KSYUIVC.h"\n#import <libksygpulive/KSYNetTracker.h>\n\n@interface KSYNetTrackerVC : KSYUIVC\n\n@end\n" (comment) "//" (comment) "// KSYNetworkVC.h" ...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.18, "nodes": 13, "errors": 0, "source_hash": "b2d7ae8e27d3f6ddeebcfd0c3e1fbf3fcb8189edbd71831d9637c61ff9afb638", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "KSYUIVC.h\...
12,013
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); void mousePressEvent(QMouseEvent *events); void ddaLine(int,int,int,int,QRgb); ...
25.45
38
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n#include <QMainWindow>\n\nnamespace Ui {\nclass MainWindow;\n}\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n explicit MainWindow(QWidget *parent = 0);\n ~MainWindow();\n void mousePressEvent(QMouseEvent *events);\n void...
283
5
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.45, "nodes": 180, "errors": 0, "source_hash": "db0d574986c8a4709e7708890d9c3a885567a4e9a5764d02fb8205e133088a18", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,014
c
/* Copyright 2010 BartSimpson aka skindle Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
26.28
76
(translation_unit) "/*\n Copyright 2010 BartSimpson aka skindle\n \n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless requ...
693
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 26.28, "nodes": 452, "errors": 0, "source_hash": "330bbcd32e6b725cf23a07c14684addb0da979d36f9ac36df46d879af730054d", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,015
c
/* snakeUi - Snake Format user interface controls that are shared * between more than one CGI. */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #ifndef SNAKEUI_H #define SNAKEUI_H #include "cart.h" #include "trackDb.h" #def...
43.5
22
(translation_unit) "/* snakeUi - Snake Format user interface controls that are shared\n * between more than one CGI. */\n\n/* Copyright (C) 2013 The Regents of the University of California \n * See README in this or parent directory for licensing information. */\n#ifndef SNAKEUI_H\n#define SNAKEUI_H\n\n#include "cart.h...
103
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 43.5, "nodes": 85, "errors": 0, "source_hash": "55367f4cacec6ce11d5ddcd01e83b3edeef6a0b4dd9ce595415ea489c7a29b70", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
12,016
c
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <math.h> #include <string.h> double calculoQtIteracao(double raizA, double raizB, double testeParada) { return round((log10(raizB - raizA) - log10(testeParada)) / log10(2)); } double calculoC(double raizA, double raizB) { return (raizA + rai...
37.83
63
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <locale.h>\n#include <math.h>\n#include <string.h>\n\ndouble calculoQtIteracao(double raizA, double raizB, double testeParada) {\n return round((log10(raizB - raizA) - log10(testeParada)) / log10(2));\n}\n\ndouble calculoC(double raizA, double rai...
735
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 37.83, "nodes": 453, "errors": 0, "source_hash": "98f54507d75b22e6ae4ce8b5eea79b2f8ce874a903c07acc191b33c117b6131d", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,017
c
// // CRToastViewController.h // CRToastDemo // // Created by Daniel on 12/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class CRToast; @interface CRToastViewController : UIViewController @property (nonatomic, assign) BOOL autorotate; @property (nonatomic, weak) CRToast *n...
28.47
15
(translation_unit) "//\n// CRToastViewController.h\n// CRToastDemo\n//\n// Created by Daniel on 12/19/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class CRToast;\n\n@interface CRToastViewController : UIViewController\n\n@property (nonatomic, assign) BOOL autorotate;\n@pro...
94
17
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.47, "nodes": 61, "errors": 0, "source_hash": "68b02c6bcdf9edbaa4d5b63e0ebea2572967a7cb396377ac8fb077519ae42d36", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,018
c
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtWidgets module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licens...
37.56
215
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).\n** Contact: http://www.qt-project.org/legal\n**\n** This file is part of the QtWidgets module of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:LGPL$\n** Commer...
1,630
55
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 37.56, "nodes": 1009, "errors": 0, "source_hash": "424959baec32e2ed6b1c6e2033c2f1362dbad62294db697b3b9c765646bac273", "categorized_nodes": 706}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QAPP...
12,019
c
#pragma once #include "Order.h" #include <string> namespace OMS { class OrderListener { public: OrderListener(); virtual ~OrderListener(); //Event for order accepted virtual void OnAccept(const Order &order) = 0; // Event for order rejected virtual void OnReject(const Order &order) = 0; // Event w...
35.08
26
(translation_unit) "#pragma once\n#include "Order.h"\n#include <string>\n\nnamespace OMS {\n\n class OrderListener\n {\n public:\n OrderListener();\n virtual ~OrderListener();\n\n //Event for order accepted\n virtual void OnAccept(const Order &order) = 0;\n\n // Event for order rejected\n virtual void OnReject(co...
234
18
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.08, "nodes": 141, "errors": 0, "source_hash": "f5891fb30febf1f4112a1bd2f72dc5c90041fdf4c18e5b8261cea1fb9666bdce", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,020
c
#include <stdlib.h> #include "stack.h" struct node { int data; struct node *prox; }; typedef struct node Node; Stack *stack_create() { Stack *stack = (Stack *)malloc(sizeof(Stack)); if (stack != NULL) { *stack = NULL; } return stack; }
13.94
17
(translation_unit) "#include <stdlib.h>\n#include "stack.h"\n\nstruct node\n{\n int data;\n struct node *prox;\n};\n\ntypedef struct node Node;\n\nStack *stack_create()\n{\n Stack *stack = (Stack *)malloc(sizeof(Stack));\n\n if (stack != NULL)\n {\n *stack = NULL;\n }\n\n return stack;\n}" (preproc_include)...
100
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 13.94, "nodes": 66, "errors": 0, "source_hash": "b638f15cbf0ddbb9fdfa8be330ac9f92d5bd01cfb9f18ee65a2589fa27760f20", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,021
c
//===- OptParserEmitter.h - Table Driven Command Line Parsing ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
37.68
28
(translation_unit) "//===- OptParserEmitter.h - Table Driven Command Line Parsing ---*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
106
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.68, "nodes": 51, "errors": 0, "source_hash": "140833bdaaf2efc30939b5374a3b8a33e6b8046c788088195120e36984601a21", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,022
c
#include "hash.h" #include <string.h> size_t hash_integer(size_t val) { // <NAME>' 32 bit Mix Function val += (val << 12); val ^= (val >> 22); val += (val << 4); val ^= (val >> 9); val += (val << 10); val ^= (val >> 2); val += (val << 7); val ^= (val >> 12); // K...
22.61
69
(translation_unit) "#include "hash.h" \n#include <string.h> \n \nsize_t hash_integer(size_t val) \n{ \n // <NAME>' 32 bit Mix Function \n val += (val << 12); \n val ^= (val >> 22); \n val += (val << 4); \n val ^= (val >> 9); \n val += (val << 10); \n val ^= (val >> 2); \n val += (val << 7); \n ...
426
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 22.61, "nodes": 276, "errors": 0, "source_hash": "b25c19d642f4f1654463055d9013489bdb1bc0e0bd1ff6c8866b337b4b004888", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,023
c
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * NaCl Service Runtime. Secure RNG implementation. */ #include <errno.h> #include <string.h> #include <unistd.h> #include <sys/typ...
31.41
108
(translation_unit) "/*\n * Copyright (c) 2012 The Native Client 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\n/*\n * NaCl Service Runtime. Secure RNG implementation.\n */\n\n#include <errno.h>\n#include <string.h>\n\n#inc...
605
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 31.41, "nodes": 355, "errors": 0, "source_hash": "5eb2ace2bb561aa3cf8a36057f0bfe024cdabff1f36a5ef16247a0ac681e74a9", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,024
c
// commandlines.h // // Created on: May 28, 2018 // Author: Jeff #ifndef UTIL_ARGS_COMMANDLINES_H_ #define UTIL_ARGS_COMMANDLINES_H_ #include "util/args/commandline.h" void argconfig_compile(ArgConfig * const config); void argconfig_run(ArgConfig * const config); #endif /* UTIL_ARGS_COMMANDLINES_H_...
22.14
14
(translation_unit) "// commandlines.h \n// \n// Created on: May 28, 2018 \n// Author: Jeff \n \n#ifndef UTIL_ARGS_COMMANDLINES_H_ \n#define UTIL_ARGS_COMMANDLINES_H_ \n \n#include "util/args/commandline.h" \n \nvoid argconfig_compile(ArgConfig * const config); \nvoid argconfig_run(ArgConfig * const config); \n \n#e...
49
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.14, "nodes": 30, "errors": 0, "source_hash": "6ebeddfdbe9cd39cf7efae774043fad949571829c18b912fde84cbcf609c5dde", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,025
c
int Command_uuid(Command *cmd); int Command_route(Command *cmd);
31.5
2
(translation_unit) "int Command_uuid(Command *cmd);\n\nint Command_route(Command *cmd);\n\n" (declaration) "int Command_uuid(Command *cmd);" (primitive_type) "int" (function_declarator) "Command_uuid(Command *cmd)" (identifier) "Command_uuid" (parameter_list) "(Command *cmd)" (() "(" ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 31.5, "nodes": 20, "errors": 0, "source_hash": "2221a632a4c01c759156db628340e1dfd6b383bbf38a2c2fac392e24ced5cb7e", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int Command_...
12,026
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <errno.h> int url_from_config(const char *config_path, const char *key, char **value) { FILE *fp = NULL; fp = fopen(config_path, "r"); if(fp == NULL) { syslog(LOG_ERR, "load_config(): %s", strerror(errno)); return -1...
25
31
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <syslog.h>\n#include <errno.h>\n\nint url_from_config(const char *config_path, const char *key, char **value) {\n FILE *fp = NULL;\n\n fp = fopen(config_path, "r");\n if(fp == NULL) {\n syslog(LOG_ERR, "load_config(): %s", ...
262
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.0, "nodes": 159, "errors": 0, "source_hash": "02a9e21fe358bfbb0b3979a7342e207031afab3a7afbc3c1ba2797be7c414416", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,027
c
#pragma once #include <physics/interfaces/iPhysicsComponent.h> namespace nPhysics { class cPhysicsComponent : public iPhysicsComponent { public: ~cPhysicsComponent(); inline const eComponentType& GetComponentType() { return mComponentType; } void GetTransform(glm::mat4& transformOut); protected: cPhysic...
24.44
16
(translation_unit) "#pragma once\n\n#include <physics/interfaces/iPhysicsComponent.h>\n\nnamespace nPhysics\n{\n class cPhysicsComponent : public iPhysicsComponent\n {\n public:\n ~cPhysicsComponent();\n inline const eComponentType& GetComponentType() { return mComponentType; }\n\n void GetTransform(glm::mat4& trans...
94
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.44, "nodes": 51, "errors": 0, "source_hash": "0e01bd9cac567c13cf14699bd3bd03fe6e1b28921e4614d1c79c85c80dbb5c09", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,028
c
// // UIView+Extensions.h // Pitchfork // // Created by <NAME> on 8/11/12. // Copyright (c) 2012 Pitchfork. All rights reserved. // //////////////////////////////////////////////////////////////////////////////// #import <UIKit/UIKit.h> //////////////////////////////////////////////////////////////////////////...
26.6
20
(translation_unit) "//\n// UIView+Extensions.h\n// Pitchfork\n//\n// Created by <NAME> on 8/11/12.\n// Copyright (c) 2012 Pitchfork. All rights reserved.\n//\n\n\n////////////////////////////////////////////////////////////////////////////////\n\n#import <UIKit/UIKit.h>\n\n\n////////////////////////////////////////...
39
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.6, "nodes": 18, "errors": 0, "source_hash": "a2201b207f62f0b00ce57a6966575bade9c5d484e304fe5ffe3ebd16251584d0", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
12,029
c
#include <stdio.h> #include "./drivers/inc/audio.h" int main(){ int frequency = 100; int sampling_rate = 48000; int half_cycle_samples = sampling_rate/(frequency * 2); while(1){ int i; for(i = 0; i < half_cycle_samples;){ if(write_audio_data_ASM(0x00FFFFFF)){ i++; } } for(i = 0; i < half_cycle_...
18.19
21
(translation_unit) "#include <stdio.h>\n\n#include "./drivers/inc/audio.h"\n\nint main(){\n int frequency = 100;\n int sampling_rate = 48000;\n int half_cycle_samples = sampling_rate/(frequency * 2);\n while(1){\n int i;\n for(i = 0; i < half_cycle_samples;){\n if(write_audio_data_ASM(0x00FFFFFF)){\n i++;\n }\...
139
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.19, "nodes": 80, "errors": 0, "source_hash": "26550a805267df713f72282bba2934819ff54c7d2f341ed65d5761a83ad84757", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,030
c
// Copyright (c) 2015 <NAME> #pragma once #include "GameFramework/Actor.h" #include "Atomo.generated.h" UCLASS(minimalapi) class AAtomo : public AActor { GENERATED_BODY() protected: AAtomo(const FObjectInitializer& ObjectInitializer); UPROPERTY(Category = "Atomo", BlueprintReadOnly, VisibleAnywhere) class US...
27.41
54
(translation_unit) "// Copyright (c) 2015 <NAME>\n\n#pragma once\n#include "GameFramework/Actor.h"\n#include "Atomo.generated.h"\n\nUCLASS(minimalapi)\nclass AAtomo : public AActor\n{\n GENERATED_BODY()\n\n\nprotected:\n\n AAtomo(const FObjectInitializer& ObjectInitializer);\n\n\n UPROPERTY(Category = "Atomo", Blueprin...
365
12
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 27.41, "nodes": 213, "errors": 0, "source_hash": "8cb0a5294e885d67d666831770aa9390c541dc52ad2400a5fb640272997965b4", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,031
c
#pragma once #ifndef RESULT_H #define RESULT_H class SCENE; /** * @brief リザルトシーンクラス * @details シーンクラスの派生クラス */ class RESULT : public SCENE { private: protected: public: static bool Clear_Flag; RESULT() {} ~RESULT() { Uninit(); } void Init() override; void Draw() override; void Draw_DPP() override; voi...
18.38
45
(translation_unit) "ragma once\n\n#ifndef RESULT_H\n#define RESULT_H\n\nclass SCENE;\n\n/**\n* @brief リザルトシーンクラス\n* @details シーンクラスの派生クラス\n*/\nclass RESULT : public SCENE {\nprivate:\n\nprotected:\n\npublic:\n static bool Clear_Flag;\n\n RESULT() {}\n ~RESULT() {\n Uninit();\n }\n\n void Init() override;\n void Draw()...
214
9
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 18.38, "nodes": 127, "errors": 0, "source_hash": "8d6b5f5de294211aa5b4442b1036c86aac69627df856ba1e24af7b189e232e97", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
12,032
c
//============================================================================= /** * @file TP_Reactor_Test.h * * Define class needed for generating templates. IBM C++ requires this to * be in its own file for auto template instantiation. * * @author <NAME> <<EMAIL>> * @author <<EMAIL>> */ //==========...
31.68
152
(translation_unit) "//=============================================================================\n/**\n * @file TP_Reactor_Test.h\n *\n * Define class needed for generating templates. IBM C++ requires this to\n * be in its own file for auto template instantiation.\n *\n * @author <NAME> <<EMAIL>>\n * @author...
1,160
32
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 31.68, "nodes": 731, "errors": 0, "source_hash": "ecc28f9e07e91bd8a281ed6391b53840dd3f371435a8d566e42cd7a3761570ee", "categorized_nodes": 524}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,033
c
#ifndef HttpAnalysis_H #define HttpAnalysis_H #include <unordered_map> #include <string> class Buffer; enum HttpMethod { METHOD_GET, METHOD_HEAD, METHOD_INVALID }; enum HttpVersion { HTTP_10 = 0, HTTP_11 = 1, UNKNOWN }; class HttpMessage { public: HttpMessage() : method_(METHOD_INVALID), ...
17.02
104
(translation_unit) "#ifndef HttpAnalysis_H\n#define HttpAnalysis_H\n\n#include <unordered_map>\n#include <string>\n\nclass Buffer;\n\nenum HttpMethod\n{\n METHOD_GET,\n METHOD_HEAD,\n METHOD_INVALID\n};\nenum HttpVersion\n{\n HTTP_10 = 0,\n HTTP_11 = 1,\n UNKNOWN\n};\n\nclass HttpMessage\n{\npublic:\n HttpMessag...
588
17
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 17.02, "nodes": 318, "errors": 0, "source_hash": "712cc85221bb76af915a6ce165802be0d5ac71746ab000214bea3c4ceb7f2adf", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,034
c
// // OCLoadTheatersTask.h // ociney // // Created by <NAME> on 29/11/2014. // Copyright (c) 2014 bdc. All rights reserved. // #import <Foundation/Foundation.h> #import "AsyncTask.h" #import "AllocineResponse.h" @class OCLoadTheatersTask; @protocol OCLoadTheatersTaskDelegate <AsyncTaskDelegate> -(void)onTheate...
27.75
20
(translation_unit) "//\n// OCLoadTheatersTask.h\n// ociney\n//\n// Created by <NAME> on 29/11/2014.\n// Copyright (c) 2014 bdc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "AsyncTask.h"\n#import "AllocineResponse.h"\n\n\n@class OCLoadTheatersTask;\n\n@protocol OCLoadTheatersTaskDelegate <...
104
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.75, "nodes": 69, "errors": 0, "source_hash": "342c862248e98fd956aecfbe3c78e442853290ae71ada26660e711f1ed31dcb1", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,035
c
#pragma once #ifndef BLAZERT_BVH_AABB_H_ #define BLAZERT_BVH_AABB_H_ #include <blazert/bvh/node.h> #include <blazert/datatypes.h> #include <blazert/ray.h> #include <iostream> #include <limits> namespace blazert { /** * Tests whether a ray intersects with a node of the BVH. * * min_distance and max_distance need ...
37.51
70
(translation_unit) "#pragma once\n#ifndef BLAZERT_BVH_AABB_H_\n#define BLAZERT_BVH_AABB_H_\n\n#include <blazert/bvh/node.h>\n#include <blazert/datatypes.h>\n#include <blazert/ray.h>\n#include <iostream>\n#include <limits>\n\nnamespace blazert {\n\n\n/**\n * Tests whether a ray intersects with a node of the BVH.\n *\n *...
471
23
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.51, "nodes": 308, "errors": 0, "source_hash": "466d7f40ca35b509cc33051bf768148394a21175bb2fd9a96de52de6499fd772", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,036
c
/* * (C) Copyright 2007-2013 * Allwinner Technology Co., Ltd. <www.allwinnertech.com> * lixiang <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as...
30.41
71
(translation_unit) "/*\n * (C) Copyright 2007-2013\n * Allwinner Technology Co., Ltd. <www.allwinnertech.com>\n * lixiang <<EMAIL>>\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the ...
449
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 30.41, "nodes": 287, "errors": 0, "source_hash": "75c9ee396fff4e08856b67457d3b8a0ebc6ef0c9f36404a7d8a6c69e87edec6e", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,037
c
#ifndef _XSTRING_H_ #define _XSTRING_H_ class XString { unsigned char * m_Buffer; size_t m_CurrentBufferSize; size_t m_CurrentLength; size_t m_CurrentGrowFactor; void Reset(); void Grow(size_t NewSize); void Append_q(const unsigned char * lpSource,size_t cbSource); public: static const size_...
30.58
55
(translation_unit) "#ifndef _XSTRING_H_ \n#define _XSTRING_H_ \n \nclass XString \n{ \n unsigned char * m_Buffer; \n size_t m_CurrentBufferSize; \n size_t m_CurrentLength; \n size_t m_CurrentGrowFactor; \n \n void Reset(); \n void Grow(size_t NewSize); \n void Append_q(const unsigned char * lpSource,size_t cbSource); \...
599
30
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.58, "nodes": 378, "errors": 0, "source_hash": "f659579a4d4e6fdc65728737214217c35ef59fe124a0a34527a0fa4188b850e2", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,038
c
#ifndef HXTBUFF_H #define HXTBUFF_H // This file is a stub header file. #endif
18.75
4
(translation_unit) "#ifndef HXTBUFF_H\n#define HXTBUFF_H\n\n// This file is a stub header file.\n\n#endif\n" (preproc_ifdef) "#ifndef HXTBUFF_H\n#define HXTBUFF_H\n\n// This file is a stub header file.\n\n#endif" (#ifndef) "#ifndef" (identifier) "HXTBUFF_H" (preproc_def) "#define HXTBUFF_H\n" (#defi...
9
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.75, "nodes": 7, "errors": 0, "source_hash": "539b7d0493956593d3b099dd06c906ca9750a3a785c5dd5ea17e64c5a1eb70ed", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HXT...
12,039
c
#include <stdio.h> #include <pthread.h> #include <unistd.h> #include <time.h> #include <errno.h> #include <math.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/wait.h> #include "util/common.h" #include "util/linkedlist.c" #inc...
34.11
295
(translation_unit) "#include <stdio.h>\n#include <pthread.h>\n#include <unistd.h>\n#include <time.h>\n#include <errno.h>\n#include <math.h>\n#include <stdlib.h>\n#include <fcntl.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <sys/time.h>\n#include <sys/wait.h>\n#include "util/common.h"\...
2,689
0
{"language": "c", "success": true, "metadata": {"lines": 295, "avg_line_length": 34.11, "nodes": 1462, "errors": 0, "source_hash": "e3dceb83cdf614a1958d74066fe699d236d103b182f4049a1fd75ffb4080db37", "categorized_nodes": 1087}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,040
c
// // TQImageCAche.h // // // Created by <NAME> on 12-5-9. // Copyright (c) 2012年 blog.devtang.com. All rights reserved. // #import <Foundation/Foundation.h> @interface TQImageCache : NSObject @property (nonatomic, assign) NSInteger maxMemoryCacheNumber; - (id) initWithCachePath:(NSString*)path andMaxMemoryCach...
29.12
16
(translation_unit) "//\n// TQImageCAche.h\n//\n//\n// Created by <NAME> on 12-5-9.\n// Copyright (c) 2012年 blog.devtang.com. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TQImageCache : NSObject\n\n@property (nonatomic, assign) NSInteger maxMemoryCacheNumber;\n\n\n- (id) initWithCachePa...
123
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.12, "nodes": 73, "errors": 0, "source_hash": "b4dfe5fc1e7c7fe02364e230dfe36da26f082194c4e727788f286bf3d1dddbe0", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
12,041
c
/* * Copyright 2010-present Facebook. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
26.67
54
(translation_unit) "/*\n * Copyright 2010-present Facebook.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requir...
121
18
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 26.67, "nodes": 75, "errors": 0, "source_hash": "435d13f8fb90d1661715e1e6af9944f7a89a1e286753f9f58e96b16fed875f6d", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern con...
12,042
c
#ifndef _gameflow_h #define _gameflow_h 1 // allow a compile flag to switch system on and off // otherwise assert frenzy may ensue #include "gamedef.h" #include "system.h" extern BOOL GameFlowOn; typedef enum { IGFT_NewGame, IGFT_ResumeGame, }INITGAMEFLOWTYPE; typedef enum { MarineMission_NoneAsYet, MarineMissi...
21.29
102
(translation_unit) "#ifndef _gameflow_h\n#define _gameflow_h 1\n\n// allow a compile flag to switch system on and off\n// otherwise assert frenzy may ensue\n#include "gamedef.h"\n#include "system.h"\n\nextern BOOL GameFlowOn;\n\ntypedef enum\n{\n IGFT_NewGame,\n IGFT_ResumeGame,\n}INITGAMEFLOWTYPE;\n\ntypedef enum\n{\n...
358
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 21.29, "nodes": 241, "errors": 0, "source_hash": "500f59f7747ed748c1a305e9c289a33bc92fdb1e9fec7410a50e195cdd35800b", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,043
c
#ifndef _COLOR_H_ #define _COLOR_H_ #define COL_RED "\033[0;31m" #define COL_GREEN "\033[0;32m" #define COL_YELLOW "\033[0;33m" #define COL_BLUE "\033[0;34m" #define COL_CYAN "\033[0;36m" #define COL_GREY "\033[0;2m" #define COL_RESET "\033[0m" #endif
26
10
(translation_unit) "#ifndef _COLOR_H_\n#define _COLOR_H_\n\n#define COL_RED "\033[0;31m"\n#define COL_GREEN "\033[0;32m"\n#define COL_YELLOW "\033[0;33m"\n#define COL_BLUE "\033[0;34m"\n#define COL_CYAN "\033[0;36m"\n#define COL_GREY "\033[0;2m"\n#define COL_RESET "\033[0m"\n\n#endif\n\n" (preproc_i...
36
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.0, "nodes": 35, "errors": 0, "source_hash": "a2617f12e70761f51901f9adf6097154c10ed4a7dcc2416f074c33952723e6e6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
12,044
c
// // LoginViewModel.h // SHSIM // // Created by apple on 15/10/8. // Copyright (c) 2015年 SHSDeveloper. All rights reserved. // #import <Foundation/Foundation.h> @interface LoginViewModel : NSObject @property (nonatomic,copy) NSString *account; @property (nonatomic,copy) NSString *password; @property (nonatomi...
25.9
21
(translation_unit) "//\n// LoginViewModel.h\n// SHSIM\n//\n// Created by apple on 15/10/8.\n// Copyright (c) 2015年 SHSDeveloper. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface LoginViewModel : NSObject\n\n@property (nonatomic,copy) NSString *account;\n\n@property (nonatomic,copy) NSStri...
128
26
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.9, "nodes": 94, "errors": 0, "source_hash": "ce4a02ceaa57f0565a6ff9658f979b63e722df23101a9a88d39bffa9086f3505", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fou...
12,045
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 NSString, NSUndoManager; @interface ACSHPlistObject : NSObject { NSUndoManager *_undoManager; NSString *_identifier; BOOL _isInitializing; } + (...
37.72
29
(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 NSString, NSUndoManager;\n\n@interface ACSHPlistObject : NSObject\n{\n NSUndoManager *_undoManager;\n NSString *_identifier;...
308
27
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 37.72, "nodes": 186, "errors": 0, "source_hash": "79dcbe7d40a50d6a2bae73ddc66d97523c647cb2ecab57d558059ad003a5204d", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,046
c
// -*- C++ -*- // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten // Copyright (C) 2004 Forgotten and the VBA development team // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as publis...
31.59
131
(translation_unit) "// -*- C++ -*-\n// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.\n// Copyright (C) 1999-2003 Forgotten\n// Copyright (C) 2004 Forgotten and the VBA development team\n\n// This program is free software; you can redistribute it and/or modify\n// it under the terms of the GNU Genera...
580
25
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 31.59, "nodes": 353, "errors": 0, "source_hash": "9846ee20ec689d82dc1b61c9af95d28af27dc342e742cca74a07a22df2200a0d", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if !defined(...
12,047
c
/* $Id: nasm-parser-struct.h 2277 2010-01-19 07:03:15Z peter $ * NASM-compatible parser struct header file * * Copyright (C) 2002-2007 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
38.54
71
(translation_unit) "/* $Id: nasm-parser-struct.h 2277 2010-01-19 07:03:15Z peter $\n * NASM-compatible parser struct header file\n *\n * Copyright (C) 2002-2007 <NAME>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * ...
191
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 38.54, "nodes": 134, "errors": 0, "source_hash": "37f1a0bf02c1158d8baf0b746605d97178cfe246e4878895a2661eb6c8b0b7a6", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,048
c
// // ComplicationController.h // Watch Extension // // Created by WizJin on 2020/12/11. // #import <ClockKit/ClockKit.h> @interface ComplicationController : NSObject <CLKComplicationDataSource> @end
21.56
9
(translation_unit) "//\n// ComplicationController.h\n// Watch Extension\n//\n// Created by WizJin on 2020/12/11.\n//\n\n#import <ClockKit/ClockKit.h>\n\n@interface ComplicationController : NSObject <CLKComplicationDataSource>\n\n@end\n" (comment) "//" (comment) "// ComplicationController.h" (comment) "// Wat...
24
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.56, "nodes": 14, "errors": 0, "source_hash": "7e57d73c0cbe41cd9605253a56b032412d01907b1256ea4f8c3bf4ddef15d2b1", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Cl...
12,049
c
/* Copyright 2021 <NAME> Licensed under MIT ( https://github.com/xing1357/SimpleOS/blob/main/LICENSE ) */ #ifndef MATH_H #define MATH_H int add(int num1, int num2); int max(int num1, int num2); int sub(int num1, int num2); int mult(int num1, int num2); int div(int num1, int num2); int pow(int base, int power); #end...
23.62
13
(translation_unit) "/*\nCopyright 2021 <NAME> \nLicensed under MIT ( https://github.com/xing1357/SimpleOS/blob/main/LICENSE )\n*/\n\n#ifndef MATH_H\n#define MATH_H\n\nint add(int num1, int num2);\nint max(int num1, int num2);\nint sub(int num1, int num2);\nint mult(int num1, int num2);\nint div(int num1, int num2);\nin...
99
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.62, "nodes": 73, "errors": 0, "source_hash": "e60ffc42bcfe29184cc6c78f0bcf8ed01335fb6ada4ad038fc39dc9f0bd0ccf7", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,050
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UITableViewCell.h" @class UIView; @interface QUIAlertViewTableViewCell : UITableViewCell { _Bool _isEnabled; UIView *_lineView; } - (void).cxx_destruct; - (id)initWith...
29.89
18
(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 "UITableViewCell.h"\n\n@class UIView;\n\n@interface QUIAlertViewTableViewCell : UITableViewCell\n{\n _Bool _isEnabled;\n UIView *_lineView;\n}\n\n-...
122
16
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.89, "nodes": 74, "errors": 0, "source_hash": "979c0f8ee681e920b0fb98f6d93dcd70965802d5eb704d571e0de4235eb26ab7", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,051
c
// Copyright (c) 2020 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
36.02
43
(translation_unit) "// Copyright (c) 2020 LG Electronics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless requir...
152
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.02, "nodes": 94, "errors": 0, "source_hash": "732868b229f68e3cf09701a710ef677eac5fad0fff9c4fd097d20149b2a4c372", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,052
c
#ifndef __ZSET_H__ #define __ZSET_H__ #include "zhash.h" #ifdef __cplusplus extern "C" { #endif typedef zhash_t zset_t; typedef zhash_iterator_t zset_iterator_t; static inline zhash_t * zset_create (size_t keysz, uint32_t(*hash)(const void *a), int(*equals)(const void *a, const void *b)) {...
23.34
88
(translation_unit) "#ifndef __ZSET_H__\n#define __ZSET_H__\n\n#include "zhash.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef zhash_t zset_t;\ntypedef zhash_iterator_t zset_iterator_t;\n\nstatic inline zhash_t *\nzset_create (size_t keysz,\n uint32_t(*hash)(const void *a),\n int(*equal...
653
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 23.34, "nodes": 399, "errors": 0, "source_hash": "013bac1e011d92d8487d7967b2869db80ab79980d2da62ac403fc3f194fe32da", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,053
c
#ifndef __TEST_BASE_H__ #define __TEST_BASE_H__ #include <vector> #include <string> // Base class for test types. class TestBase { public: // Get the source of the test cases. virtual std::string TestFileName() const = 0; // Execute test based on the given lines. virtual bool Run(const std::vector<st...
25
14
(translation_unit) "#ifndef __TEST_BASE_H__\n#define __TEST_BASE_H__\n\n#include <vector>\n#include <string>\n\n// Base class for test types.\nclass TestBase\n{\npublic:\n // Get the source of the test cases.\n virtual std::string TestFileName() const = 0;\n\n // Execute test based on the given lines.\n vir...
75
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.0, "nodes": 46, "errors": 0, "source_hash": "9a1afcc3ef91f0b5f556927b5904bd968c316551e2817a9099e279bb5cb532c3", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
12,054
c
// Copyright 2020-2021 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
36.37
67
(translation_unit) "// Copyright 2020-2021 <NAME>\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless ...
574
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 36.37, "nodes": 347, "errors": 0, "source_hash": "0a1a0aad90368a4d0904359e4cb59ec44d527c3adde9e3555720d67c995b1e35", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,055
c
void f() { int a = 3; int b = 2; do { {{A}} a = 1; {{A}} } while (1); {{A}} while (1) { {{B}} a = 1; {{B}} } {{B}} if (1) { a = 2; } else { {{C}} a = 3; {{C}} } {{C}} {{D}} } /* * check-name: do/while vs while vs if vs if/else * obj-not-diff:...
17.43
23
(translation_unit) "void f() {\n int a = 3;\n int b = 2;\n do { {{A}}\n a = 1; {{A}}\n } while (1); {{A}}\n\n while (1) { {{B}}\n a = 1; {{B}}\n } {{B}}\n\n if (1) {\n a = 2;\n }\n else { {{C}}\n a = 3; {{C}}\n } {{C}}\n\n {{D}}\n}\n\n/*\n * check-name: do/while ...
164
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.43, "nodes": 63, "errors": 0, "source_hash": "586aeed316eebcef868827b539e3fe29516791e18965d4562d49c973323830c7", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
12,056
c
#pragma once #include "RemoteType.h" #include "pyextpublic.h" #include <memory> class ExtRemoteTyped; namespace PyExt::Remote { class PyFrameObject; /// Represents a PyInterpreterState instance in the debuggee's address space. /// @see https://github.com/python/cpython/blob/master/Include/pystate.h class PYEX...
35.65
26
(translation_unit) "#pragma once\n\n#include "RemoteType.h"\n#include "pyextpublic.h"\n\n#include <memory>\n\nclass ExtRemoteTyped;\n\nnamespace PyExt::Remote {\n\n class PyFrameObject;\n\n /// Represents a PyInterpreterState instance in the debuggee's address space.\n /// @see https://github.com/python/cpython/blob/ma...
209
21
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.65, "nodes": 107, "errors": 0, "source_hash": "9107b9d1a7b641850e2733f5dca67f892cc18a641786f3b9bfe6115aef2b61ad", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,057
c
/** ****************************************************************************** * @file blsp_common.c * @version V1.2 * @date * @brief This file is the peripheral case c file ****************************************************************************** * @attention * * <h2><center>&copy; COPY...
37.04
191
(translation_unit) "/**\n ******************************************************************************\n * @file blsp_common.c\n * @version V1.2\n * @date\n * @brief This file is the peripheral case c file\n ******************************************************************************\n * @attention\n *...
1,015
1
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 37.04, "nodes": 551, "errors": 0, "source_hash": "7d1f1e87450a331638ee97c8f20316ca2009156417d7a40fe3c2e497bb116b26", "categorized_nodes": 435}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,058
c
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Co., Ltd. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
33.97
117
(translation_unit) "/****************************************************************************\n Copyright (c) 2017-2018 <NAME> Co., Ltd.\n \n http://www.cocos2d-x.org\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Softwar...
609
24
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 33.97, "nodes": 372, "errors": 0, "source_hash": "ccb752fa73925d9c31a69d648907cd729ac345cca0f71c6ef3c2c616d8302f88", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __PER...
12,059
c
#pragma once #include "rendering/scene/SceneStructs.h" namespace math { // awful struct Frustum; } // namespace math struct Dirlight_Ubo { glm::vec4 front{}; // Lightmap glm::mat4 viewProj{}; glm::vec4 color{}; float intensity{}; float maxShadowBias{}; int32 samples{}; float sampleInvSpread{}; int32 hasS...
23.37
30
(translation_unit) "#pragma once\n#include "rendering/scene/SceneStructs.h"\n\nnamespace math {\n// awful\nstruct Frustum;\n} // namespace math\n\n\nstruct Dirlight_Ubo {\n glm::vec4 front{};\n\n // Lightmap\n glm::mat4 viewProj{};\n glm::vec4 color{};\n\n float intensity{};\n\n float maxShadowBias{};\n int32 samples{}...
228
13
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.37, "nodes": 118, "errors": 0, "source_hash": "57a17e70886c17a1092ceb90ee1169f9cd89b716556f10167bc0a6c28e197110", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,060
c
// GeorgeRaven:18/01/13 (yy/mm/dd) #ifndef RAVENVULKANEXPERIMENTS_VULKANENGINE_H #define RAVENVULKANEXPERIMENTS_VULKANENGINE_H #define WINDOW_NAME "So long and thanks for all the fish" #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #define GLM_FORCE_RADIANS #define GLM_FORCE_DEPTH_ZERO_TO_ONE #include <glm/vec4...
22.84
32
(translation_unit) "// GeorgeRaven:18/01/13 (yy/mm/dd)\n\n#ifndef RAVENVULKANEXPERIMENTS_VULKANENGINE_H\n#define RAVENVULKANEXPERIMENTS_VULKANENGINE_H\n#define WINDOW_NAME "So long and thanks for all the fish"\n\n#define GLFW_INCLUDE_VULKAN\n#include <GLFW/glfw3.h>\n\n#define GLM_FORCE_RADIANS\n#define GLM_FORCE_DEPTH_...
133
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.84, "nodes": 90, "errors": 0, "source_hash": "139cc75e68462b170c3220e4cbc742907b7b646af3a2b3e979cd5e0b0bfe0724", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,061
c
/** * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #ifndef NEM_SDK_INTERFACE_IPC_CLIENT_DEFINE_PROCHANDLER_H_ #define NEM_SDK_INTERFACE_IPC_CLIENT_DEFINE_PROCHANDLER_H_ #include "public_d...
34.83
30
(translation_unit) "/**\n * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n\n#ifndef NEM_SDK_INTERFACE_IPC_CLIENT_DEFINE_PROCHANDLER_H_\n#define NEM_SDK_INTERFACE_IPC_CLIENT_DEFINE_PROCHAND...
195
11
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.83, "nodes": 104, "errors": 0, "source_hash": "6619bb24a08938534eaa0fff3fd955061e98b25205ea80d56540b670fddf02fa", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,062
c
// eca2wav.c - write an audio elementary cellular automaton to a WAVE file #include <inttypes.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include "eca.h" #include "wafer.h" int main(int argc, char *argv[]) { uint8_t rule = 60; ...
28.12
77
(translation_unit) "// eca2wav.c - write an audio elementary cellular automaton to a WAVE file\n\n#include <inttypes.h>\n#include <limits.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <getopt.h>\n\n#include "eca.h"\n#include "wafer.h"\n\nint main(int argc, char *argv[...
741
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 28.12, "nodes": 471, "errors": 0, "source_hash": "a25a6f800d37155c398715d705c4c9109e3c2c43686eab5d18e12c19acc23bdc", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,063
c
// // RangeSlider.h // RangeSlider // // Created by <NAME> on 5/08/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @interface RangeSlider : UIControl @property(nonatomic) float distanceFromCenter; @property(nonatomic) float padding; @property(nonatomic) BOOL maxThumbOn; @...
31.12
25
(translation_unit) "//\n// RangeSlider.h\n// RangeSlider\n//\n// Created by <NAME> on 5/08/11.\n// Copyright 2011 __MyCompanyName__. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RangeSlider : UIControl\n\n@property(nonatomic) float distanceFromCenter;\n@property(nonatomic) float padding;\n@prop...
214
46
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.12, "nodes": 157, "errors": 0, "source_hash": "23c47f8aa90f486b1c160060fb86921f49e1957c8644cb7ec49cad541337507b", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,064
c
/* * SoftPwm.c * * Created on: Jan 3, 2016 * Author: jay */ #include "softPwm.h" #include "gpio.h" #include "treehopper.h" static SI_SEGMENT_VARIABLE(currentConfig[TREEHOPPER_NUM_PINS], softPwmPinConfig_t, SI_SEG_XDATA); static SI_SEGMENT_VARIABLE(newConfig[TREEHOPPER_NUM_PINS], softPwmPinConfig_t, SI_SEG_...
27.33
89
(translation_unit) "/*\n * SoftPwm.c\n *\n * Created on: Jan 3, 2016\n * Author: jay\n */\n\n#include "softPwm.h"\n#include "gpio.h"\n#include "treehopper.h"\n\nstatic SI_SEGMENT_VARIABLE(currentConfig[TREEHOPPER_NUM_PINS], softPwmPinConfig_t, SI_SEG_XDATA);\nstatic SI_SEGMENT_VARIABLE(newConfig[TREEHOPPER_NUM_PI...
664
2
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 27.33, "nodes": 381, "errors": 0, "source_hash": "c48503581eb5418cf7e10525e973b9f6af4a9cedc78c4edbd1989949b2b0bc33", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,065
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define CHILD_MESS "I want a cookie\n" #define PAR_MESS "testing.. \n" #define oops(m, x) {perror(m); exit(x);} int main(int argc, char *argv[]) { int pipefd[2]; int len; char buf[256]; int read_len; if(pipe(pipefd) == -1) { oop...
16.52
50
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define CHILD_MESS "I want a cookie\n"\n#define PAR_MESS "testing.. \n"\n#define oops(m, x) {perror(m); exit(x);}\n\nint main(int argc, char *argv[])\n{\n int pipefd[2];\n int len;\n char buf[256];\n int read_len...
330
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 16.52, "nodes": 183, "errors": 0, "source_hash": "8522e4cd66720f118cf57bf8b51a4dae5c3df682a0e4fb4b3534a274b879b1ed", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,066
c
/* +--------------------------------------------------------------------------+ | Zephir | | Copyright (c) 2013-present Zephir Team (https://zephir-lang.com/) | | | | T...
41.63
19
(translation_unit) "/*\n +--------------------------------------------------------------------------+\n | Zephir |\n | Copyright (c) 2013-present Zephir Team (https://zephir-lang.com/) |\n | ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 41.63, "nodes": 25, "errors": 0, "source_hash": "45c8607d81ab0b575f5cd817e8fc08ac6f2cdd4172f619dfd13807fdd4293325", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef H...
12,067
c
// // AXFullLayout.h // AXiOSKit // // Created by liuweixing on 16/6/20. // Copyright © 2016年 liuweixing. All rights reserved. // #import <UIKit/UIKit.h> /** * 有导航栏 和tableVC的 */ @interface AXFullLayout : UICollectionViewFlowLayout @end
17.62
13
(translation_unit) "//\n// AXFullLayout.h\n// AXiOSKit\n//\n// Created by liuweixing on 16/6/20.\n// Copyright © 2016年 liuweixing. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n/**\n * 有导航栏 和tableVC的\n */\n@interface AXFullLayout : UICollectionViewFlowLayout\n\n@end\n" (comment) "//" (comment) "// AXFul...
23
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 17.62, "nodes": 12, "errors": 0, "source_hash": "ea146723fc6c2641df0049ea90efadd5e14483ec3da23bbb8d5e80f9741c0230", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
12,068
c
// // SearchDeviceViewController.h // RobotBoardSDKDemo // // Created by JMS on 2017/2/21. // Copyright © 2017年 JMS. All rights reserved. // #import <UIKit/UIKit.h> @interface SearchDeviceViewController : UIViewController @end
22.1
10
(translation_unit) "//\n// SearchDeviceViewController.h\n// RobotBoardSDKDemo\n//\n// Created by JMS on 2017/2/21.\n// Copyright © 2017年 JMS. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SearchDeviceViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// SearchDeviceViewC...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.1, "nodes": 10, "errors": 0, "source_hash": "d41d92ded8fdd55d5fdd26643fa5a1ba7d114a0d48ddf5bf4a081145a5ee772f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
12,069
c
// Copyright (c) 2015-2018 <NAME> (at gmail dot com) // This file is distributed under the MIT License. #ifndef OFP_MPGROUPSTATS_H_ #define OFP_MPGROUPSTATS_H_ #include "ofp/durationsec.h" #include "ofp/groupnumber.h" #include "ofp/packetcounterlist.h" namespace ofp { class Writable; class MPGroupStats { public: ...
29.83
47
(translation_unit) "// Copyright (c) 2015-2018 <NAME> (at gmail dot com)\n// This file is distributed under the MIT License.\n\n#ifndef OFP_MPGROUPSTATS_H_\n#define OFP_MPGROUPSTATS_H_\n\n#include "ofp/durationsec.h"\n#include "ofp/groupnumber.h"\n#include "ofp/packetcounterlist.h"\n\nnamespace ofp {\n\nclass Writable;...
366
21
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.83, "nodes": 207, "errors": 0, "source_hash": "3829031d05a522743a573da3b99a36494dbabbe42e372277a2946616c52049ed", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef OFP_MP...
12,070
c
#include "gameobject.h" #include "store.h" int IsOverlapingPos(Vector pos, Vector size, GameObject* o2) { if (pos.y + size.y <= o2->PositionInt.y) return 0; if (pos.x + size.x <= o2->PositionInt.x) return 0; if (pos.y >= o2->PositionInt.y + o2->Size.y) return 0; if (pos.x >=...
28.22
41
(translation_unit) "#include "gameobject.h"\n#include "store.h"\n\n\nint IsOverlapingPos(Vector pos, Vector size, GameObject* o2)\n{\n if (pos.y + size.y <= o2->PositionInt.y)\n return 0;\n\n if (pos.x + size.x <= o2->PositionInt.x)\n return 0;\n\n if (pos.y >= o2->PositionInt.y + o2->Size.y)\n ...
435
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.22, "nodes": 282, "errors": 0, "source_hash": "f3b1db0fd3db840bea533d7ef01b380c2fb65892d3a1bcedd7f5fd133c25058c", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,071
c
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #pragma once #include <QAbstractItemModel> #include <QIcon> class QUndoStack; class Q...
28.65
55
(translation_unit) "/* \n * This source file is part of an OSTIS project. For the latest info, see http://ostis.net \n * Distributed under the MIT License \n * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) \n */ \n \n#pragma once \n \n#include <QAbstractItemModel> \n#include <QIcon> ...
345
24
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.65, "nodes": 206, "errors": 0, "source_hash": "21e18453d42353dfb1027b11852a856f733ebeb653d72fa28c1d8591df560d96", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,072
c
#ifndef PROGRAMMERFACTORY_H #define PROGRAMMERFACTORY_H #include "Container/Entity.h" #include "Entities/programmer.h" class ProgrammerFactory{ public: ProgrammerFactory(); Entity* createProgrammer(); }; #endif // PROGRAMMERFACTORY_H
23.2
10
(translation_unit) "#ifndef PROGRAMMERFACTORY_H\n#define PROGRAMMERFACTORY_H\n#include "Container/Entity.h"\n#include "Entities/programmer.h"\n\nclass ProgrammerFactory{\npublic:\n ProgrammerFactory();\n Entity* createProgrammer();\n};\n\n#endif // PROGRAMMERFACTORY_H\n" (preproc_ifdef) "#ifndef PROGRAMMERFACTO...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.2, "nodes": 26, "errors": 0, "source_hash": "7feec72c5230da69d716e1a031b28c17fbbd5c130dfaf989608a4c9f81b7d370", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
12,073
c
// // DetailViewController.h // MVCTest // // Created by zhanglei on 16/1/5. // Copyright © 2016年 zhanglei. All rights reserved. // #import "BaseViewController.h" @interface DetailViewController : BaseViewController @property (nonatomic,assign) NSInteger listid; @end
23.73
11
(translation_unit) "//\n// DetailViewController.h\n// MVCTest\n//\n// Created by zhanglei on 16/1/5.\n// Copyright © 2016年 zhanglei. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\n@interface DetailViewController : BaseViewController\n\n@property (nonatomic,assign) NSInteger listid;\n\n@end\n" (comm...
34
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.73, "nodes": 21, "errors": 0, "source_hash": "666aa8d8fa94d16fc9198a4241b776459a76e83cfc4355a6162ab78f220dfb1d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
12,074
c
// // UIViewController+RExt.h // GLRouter // // Created by liguoliang on 2020/10/12. // #import <UIKit/UIKit.h> #import <GLRouter/GLRouterProtocol.h> @interface UIViewController (RExt)<GLRouterProtocol> @end
20.1
10
(translation_unit) "//\n// UIViewController+RExt.h\n// GLRouter\n//\n// Created by liguoliang on 2020/10/12.\n//\n\n#import <UIKit/UIKit.h>\n#import <GLRouter/GLRouterProtocol.h>\n\n@interface UIViewController (RExt)<GLRouterProtocol>\n\n@end\n" (comment) "//" (comment) "// UIViewController+RExt.h" (comment) ...
29
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 19, "errors": 0, "source_hash": "f1a6126649efe66a8cfd02ee3505e9b3f1a1b8d396ffe1ac6e57f67c1ef5d008", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
12,075
c
#ifndef MESSENGERSERVER_H #define MESSENGERSERVER_H // main article for the server part is: // https://docs.microsoft.com/en-us/windows/win32/winsock/complete-server-code // there are a lot of information of why I used one over other methods and moreover // it's one and only one source of information about socket prog...
35.16
31
(translation_unit) "#ifndef MESSENGERSERVER_H\n#define MESSENGERSERVER_H\n\n// main article for the server part is:\n// https://docs.microsoft.com/en-us/windows/win32/winsock/complete-server-code\n// there are a lot of information of why I used one over other methods and moreover\n// it's one and only one source of inf...
106
2
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.16, "nodes": 58, "errors": 0, "source_hash": "0185cd36f603b3efa1ea0a074342e92f5b1b81ad381da7dd265fc7f9b67aa859", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,076
c
/* * File: lcd-driver-chip.h * Author: pesho * * Created on January 28, 2020, 9:09 PM */ #ifndef LCD_DRIVER_CHIP_H #define LCD_DRIVER_CHIP_H #ifdef _ILI9341_ #include "lcd-driver/chips/ILI9341.h" #endif #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif #endif /* LCD_DRIVER_CHIP_H */
16.39
18
(translation_unit) "/* \n * File: lcd-driver-chip.h\n * Author: pesho\n *\n * Created on January 28, 2020, 9:09 PM\n */\n\n#ifndef LCD_DRIVER_CHIP_H\n#define LCD_DRIVER_CHIP_H\n\n#ifdef _ILI9341_\n #include "lcd-driver/chips/ILI9341.h"\n#endif\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#ifdef __cplusplus\n}\n#...
39
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.39, "nodes": 27, "errors": 0, "source_hash": "930e4373b258500286d119c6c6d6d4f864ebd7bf2da870635417b0e6ccaede8f", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,077
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <FrontBoardServices/FBSSceneIdentity.h> @class NSString; @interface FBSMutableSceneIdentity : FBSSceneIdentity { } - (id)copyWithZone:(struct _NSZone *)arg1; // Remaining prop...
31.73
15
(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 <FrontBoardServices/FBSSceneIdentity.h>\n\n@class NSString;\n\n@interface FBSMutableSceneIdentity : FBSSceneIdentity\n{\n}\n\n- (id)copyWithZone:(struct ...
91
13
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.73, "nodes": 54, "errors": 0, "source_hash": "879f90d622699cc875b65e3470d11ea08c0d090e63e78953fd35a3a15af719ef", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,078
c
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. // Types #include "Types/CsTypes_Macro.h" // Log #include "Utility/CsLog.h" #pragma once // NCsFX::NParameter::IParameter CS_FWD_DECLARE_STRUCT_NAMESPACE_2(NCsFX, NParameter, IParameter) namespace NCsFX { namespace NParameter { namespace NCached ...
36.3
183
(translation_unit) "// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.\n\n// Types\n#include "Types/CsTypes_Macro.h"\n// Log\n#include "Utility/CsLog.h"\n#pragma once\n\n// NCsFX::NParameter::IParameter\nCS_FWD_DECLARE_STRUCT_NAMESPACE_2(NCsFX, NParameter, IParameter)\n\nnamespace NCsFX\n{\n namespace N...
739
39
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 36.3, "nodes": 388, "errors": 0, "source_hash": "42a24f4df430f70fdfe0b546d70ddaf91ea3dfc2e2873109ff6a6ed587a307cd", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,079
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #ifndef HASH_THREAD_SAFE_H_ #define HASH_THREAD_SAFE_H_ #include "platform.h" #include "crypto/hash.h" /** * Thread-safe wrapper for a hash instance. */ struct hash_engine_thread_safe { struct hash_engine base; /**<...
33.1
20
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n#ifndef HASH_THREAD_SAFE_H_\n#define HASH_THREAD_SAFE_H_\n\n#include "platform.h"\n#include "crypto/hash.h"\n\n\n/**\n * Thread-safe wrapper for a hash instance.\n */\nstruct hash_engine_thread_safe {...
90
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.1, "nodes": 62, "errors": 0, "source_hash": "7e2e35f14ed042d61aee601cb6012ced186b5a32ac38ddfc662c01f4eca21bd8", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
12,080
c
/* * File: pic32mm_pe.h * Author: Tim * * Created on February 17, 2017, 12:36 PM */ #ifndef PIC32MM_PE_H #define PIC32MM_PE_H #ifdef __cplusplus extern "C" { #endif #define PE_LOADER_SIZE 30 //22+8 #define PIC32MM_PE_SIZE 553 extern uint16_t pe_Loader[]; extern uint32_t pic32_PE_Version_MM; exte...
18.85
20
(translation_unit) "/* \n * File: pic32mm_pe.h\n * Author: Tim\n *\n * Created on February 17, 2017, 12:36 PM\n */\n\n#ifndef PIC32MM_PE_H\n#define PIC32MM_PE_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define PE_LOADER_SIZE 30 //22+8\n#define PIC32MM_PE_SIZE 553\n\n extern uint16_t pe_Loader[];\n extern ...
61
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.85, "nodes": 45, "errors": 0, "source_hash": "3426e83e7767c19c6bcb83157f5fe8e3f4cf9150cd4cc5855e85bb4bef75a606", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,081
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 "SDAirDropHandlerGenericFiles.h" __attribute__((visibility("hidden"))) @interface SDAirDropHandlerContacts : SDAirDropHandlerGenericFiles { } -...
35.6
15
(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 "SDAirDropHandlerGenericFiles.h"\n\n__attribute__((visibility("hidden")))\n@interface SDAirDropHandlerContacts : SDAirD...
93
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.6, "nodes": 48, "errors": 0, "source_hash": "32feabdcb36ef61e7811a270ab69526220e1a9e81bb684e6ab301220a3149d96", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
12,082
c
#ifndef IType_java_model_INCLUDED_INCLUDED #define IType_java_model_INCLUDED_INCLUDED #include "Member.h" using std::wstring; namespace Jikes { // Open namespace Jikes block namespace JavaModel{ class IField; class IMethod; class IPackageFragment; class IClassFile; class ICompilationUnit; class BaseJavaFi...
29.17
52
(translation_unit) "#ifndef IType_java_model_INCLUDED_INCLUDED\n#define IType_java_model_INCLUDED_INCLUDED\n#include "Member.h"\n\n\nusing std::wstring;\nnamespace Jikes { // Open namespace Jikes block\n\n\nnamespace JavaModel{\n \n class IField;\n class IMethod;\n class IPackageFragment;\n\n class IClassFile;\n class ...
375
18
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 29.17, "nodes": 244, "errors": 0, "source_hash": "1b81f0d55e0496ac75377bc16de03465cf8dfe8242c12c0a04d6031aa6377a34", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,083
c
/* * OpenBOR - http://www.chronocrash.com * ----------------------------------------------------------------------- * All rights reserved, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2014 OpenBOR Team */ #ifndef SOUNDMIX_H #define SOUNDMIX_H #include "types.h" /* ** Sound mixer. ** Now su...
34.68
77
(translation_unit) "/*\n * OpenBOR - http://www.chronocrash.com\n * -----------------------------------------------------------------------\n * All rights reserved, see LICENSE in OpenBOR root for details.\n *\n * Copyright (c) 2004 - 2014 OpenBOR Team\n */\n\n#ifndef SOUNDMIX_H\n#define SOUNDMIX_H\n\n#include "types.h...
567
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.68, "nodes": 418, "errors": 0, "source_hash": "0e66fc660edb34d9f4f5e0c508a91be92c97578a7c49e6896d6f97216e238785", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,084
c
/* Copyright (c) 2011 <NAME> */ /* Escape from the Master's Lair may be freely redistributed. See license for details. */ #ifndef object_h #define object_h #include "covering.h" #include <string> #include <vector> #include <stdint.h> //An object is anything that is going to be rendered in the world. This means the...
37.2
46
(translation_unit) "/* Copyright (c) 2011 <NAME> */\n/* Escape from the Master's Lair may be freely redistributed. See license for details. */\n\n#ifndef object_h\n#define object_h\n\n#include "covering.h"\n\n#include <string>\n#include <vector>\n#include <stdint.h>\n\n//An object is anything that is going to be rende...
193
3
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 37.2, "nodes": 116, "errors": 0, "source_hash": "5192fb5dd083a473cc5bfdeb97e5f91440d1eff4eec935d25471dcc3dff7bce4", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,085
c
#ifndef _VIDEO_CONFIG_ARM11_H_ #define _VIDEO_CONFIG_ARM11_H_ #if TARGET_CPU_ARM == 1 /* Default configuration for ARM11 (like iphone) platform */ #define DEFAULT_QUANTIZATION (6) #define MAX_NUM_MACRO_BLOCKS_PER_CALL (1) #define DEFAULT_INTERNAL_STREAM_SIZE (1024 * 8 * 2) #define VLIB_ALLOC_ALIGN ...
37.5
10
(translation_unit) "#ifndef _VIDEO_CONFIG_ARM11_H_\n#define _VIDEO_CONFIG_ARM11_H_\n\n#if TARGET_CPU_ARM == 1\n\n/* Default configuration for ARM11 (like iphone) platform */\n#define DEFAULT_QUANTIZATION (6)\n\n#define MAX_NUM_MACRO_BLOCKS_PER_CALL (1)\n\n#define DEFAULT_INTERNAL_STREAM_SIZE (1024 * 8 * 2)\n\...
35
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.5, "nodes": 31, "errors": 0, "source_hash": "6efc42d8406804389fb28f69e2265a3e63d2816cab8a22088e4678a1f87a628b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
12,086
c
// Copyright (c) 2009, Object Computing, Inc. // All rights reserved. // See the file license.txt for licensing information. #ifdef _MSC_VER # pragma once #endif #ifndef FIELDINSTRUCTIONASCII_H #define FIELDINSTRUCTIONASCII_H #include <Codecs/FieldInstruction.h> namespace QuickFAST{ namespace Codecs{ /// @brief I...
37.07
107
(translation_unit) "// Copyright (c) 2009, Object Computing, Inc.\n// All rights reserved.\n// See the file license.txt for licensing information.\n#ifdef _MSC_VER\n# pragma once\n#endif\n#ifndef FIELDINSTRUCTIONASCII_H\n#define FIELDINSTRUCTIONASCII_H\n#include <Codecs/FieldInstruction.h>\nnamespace QuickFAST{\n name...
769
85
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 37.07, "nodes": 421, "errors": 0, "source_hash": "8537699eace465798b0e4695e2cef7b6e34d3ca8d34a4c060cea8a99db9e1603", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
12,087
c
#if !defined(_MSC_VER) && !defined(__cdecl) #define __cdecl /* nothing */ #endif #include <assert.h> #include <errno.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #include <unistd.h> #include <signal.h> #include <sys/mman.h> #include <sys/signal.h> #define ZERO_...
22.94
157
(translation_unit) "#if !defined(_MSC_VER) && !defined(__cdecl)\n#define __cdecl /* nothing */\n#endif\n\n#include <assert.h>\n#include <errno.h>\n#include <setjmp.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stddef.h>\n#include <unistd.h>\n#include <signal.h>\n#include <sys/mman.h>\n#inc...
1,158
1
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 22.94, "nodes": 719, "errors": 0, "source_hash": "6b670b42ea40ff7c970dbeefd79bf073d2e2e018e63d839bc67b5dcbc67fed51", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
12,088
c
/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * *************************************...
42.17
65
(translation_unit) "/****************************************************************************\n *\n * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>\n *\n * QGroundControl is licensed according to the terms in the file\n * COPYING.md in the root of the source code directory.\n *\n **********...
462
8
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 42.17, "nodes": 295, "errors": 0, "source_hash": "a64b1a7ed78f9067eba42492de5415d23ebcdd8253491bdf618cc6d293fb52b9", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,089
c
#include "automatic-pool.h" #include "../uelt.h" #include <uevloop/utils/automatic-pool.h> #include <stddef.h> struct test_obj { int i; char c; }; static char *should_initialise_autopool() { UEL_DECLARE_AUTOPOOL_BUFFERS(struct test_obj, 2, test); uel_autopool_t pool; uel_autopool_init(&pool, 2, s...
32.08
113
(translation_unit) "#include "automatic-pool.h"\n#include "../uelt.h"\n\n#include <uevloop/utils/automatic-pool.h>\n#include <stddef.h>\n\nstruct test_obj {\n int i;\n char c;\n};\n\nstatic char *should_initialise_autopool() {\n UEL_DECLARE_AUTOPOOL_BUFFERS(struct test_obj, 2, test);\n uel_autopool_t pool;\...
1,019
6
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 32.08, "nodes": 576, "errors": 0, "source_hash": "ba81a0c56ecb0d92b78c4deeb0b81ad42a38102fe44033df6d0d9f4f9165ba80", "categorized_nodes": 409}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,090
c
#include <stdio.h> #include <string.h> #include "common.h" #include "arp.h" // Broadcast ethernet address. const uint8_t eth_Broadcast_Addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; // Null ethernet address. const uint8_t eth_Null_Addr[] = {0, 0, 0, 0, 0, 0}; /* * Sending an arp request to the targeted IP. * * ...
34.71
129
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include "common.h"\n#include "arp.h"\n\n// Broadcast ethernet address.\nconst uint8_t eth_Broadcast_Addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};\n\n// Null ethernet address.\nconst uint8_t eth_Null_Addr[] = {0, 0, 0, 0, 0, 0};\n\n\n/*\n * Sending an arp re...
1,008
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 34.71, "nodes": 594, "errors": 0, "source_hash": "91ef6f1d9c1884f114ab5c0bab976fc7c102df8bf4e1f4910e86e3abdd10bbe4", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,091
c
#pragma once #include "piRenderFont.h" #include "../../libRender/piRenderer.h" #include "../../libMath/piVecTypes.h" #include "../../libImage/piImage.h" namespace piLibs { class piRenderFont2D { public: piRenderFont2D(); ~piRenderFont2D(); bool Init(piRenderer *renderer, const int fontTytpe, const wchar...
36.65
43
(translation_unit) "#pragma once\n\n#include "piRenderFont.h"\n#include "../../libRender/piRenderer.h"\n#include "../../libMath/piVecTypes.h"\n#include "../../libImage/piImage.h"\n\nnamespace piLibs {\n\nclass piRenderFont2D\n{\npublic:\n piRenderFont2D();\n ~piRenderFont2D();\n\n bool Init(piRenderer *rendere...
436
2
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.65, "nodes": 285, "errors": 0, "source_hash": "72cc4879cd14edf3ccda9004e970f307bd27461d500f4a94b54984c59fa2d3f8", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,092
c
/* GooeyFiWidgetImpl.h MIT License Copyright (c) 2016 cbtek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
29.88
72
(translation_unit) "/*\n GooeyFiWidgetImpl.h\n \nMIT License\n\nCopyright (c) 2016 cbtek\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the r...
182
11
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 29.88, "nodes": 88, "errors": 0, "source_hash": "311abf1ba55dc71cc8c1c6e8c230687568996c3d692b46dab7a00e8f9a6114f9", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,093
c
#include <stdio.h> #include <stdlib.h> #include <locale.h> float calcularMedia(float *notas, int quantidadeNotas) { float total = 0.0; int i; for (i = 0; i < quantidadeNotas; i++) { total += notas[i]; } return total / quantidadeNotas; } int main() { setlocale(LC_ALL, "portuguese"); ...
23.61
18
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <locale.h>\n\nfloat calcularMedia(float *notas, int quantidadeNotas) {\n float total = 0.0;\n\n int i;\n for (i = 0; i < quantidadeNotas; i++) {\n total += notas[i];\n }\n\n return total / quantidadeNotas;\n}\n\nint main() {\n ...
156
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.61, "nodes": 92, "errors": 0, "source_hash": "cf4735ec1a19f141b2ac1180f935fdd34ac29e9f294dafca6e5f74c10bf69ab1", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,094
c
/*! \mainpage This is the documentation for PPR's internal libraries.i \section libgu A library of Generally Useful functions. In other words, this is a library of functions useful for general C programming and not just for PPR. \section libppr A library of functions used by PPR's programs. Most of them w...
33.27
15
(translation_unit) "/*! \mainpage\n\n This is the documentation for PPR's internal libraries.i\n\n \section libgu\n A library of Generally Useful functions. In other words, this is\n a library of functions useful for general C programming and not\n just for PPR.\n\n \section libppr\n A library of functions used by P...
2
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 33.27, "nodes": 0, "errors": 0, "source_hash": "820203f0124f3eddb1d0e396024df029de08243b43ab0e5580b171e060da904c", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
12,095
c
#include <stdio.h> #include <stdlib.h> #include <string.h> long read_long (FILE *fp); void write_long (FILE *fp, unsigned long x); long file_length (char *path); void write_short (FILE *fp, unsigned short x); void write_bmp (char *fname, int width, int height, unsigned char *pal, char *data, int red, int green, i...
20.64
130
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nlong read_long (FILE *fp);\nvoid write_long (FILE *fp, unsigned long x);\nlong file_length (char *path);\nvoid write_short (FILE *fp, unsigned short x);\nvoid write_bmp (char *fname, int width, int height, unsigned char *pal, \n char *...
1,290
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 20.64, "nodes": 778, "errors": 0, "source_hash": "85120ae5e9b5d518e2268ed4b676865425790a2aeda83b276870d1480a3a2c4f", "categorized_nodes": 550}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,096
c
/* Class used to return information regarding the MD force. L1 - The L1 norm of the force L2 - The L2 norm of the force Linf - The Linfinity norm of the force Placed print routine in this class to minimise rewriting if code evolves. */ #ifndef FORCE_ARG_H #define FORCE_ARG_H #include <config.h> #include <a...
26.63
38
(translation_unit) "/*\n Class used to return information regarding the MD force.\n L1 - The L1 norm of the force\n L2 - The L2 norm of the force\n Linf - The Linfinity norm of the force\n\n Placed print routine in this class to minimise rewriting if code evolves.\n*/\n\n#ifndef FORCE_ARG_H\n#define FORCE_ARG_H\n\...
291
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.63, "nodes": 178, "errors": 0, "source_hash": "5623b4e0305abf33a7e4e2352d15be15275a909545fbfdbee9ebe18ce96f9807", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,097
c
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2020 Intel Corporation. All rights reserved. * * Author: <NAME> <<EMAIL>> */ #ifndef __SOF_AUDIO_CODEC_ADAPTER__ #define __SOF_AUDIO_CODEC_ADAPTER__ #include <sof/audio/codec_adapter/codec/generic.h> #define MAX_BLOB_SIZE 8192 #endif /* __SOF_AUDIO_CODE...
29.09
11
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause\n *\n * Copyright(c) 2020 Intel Corporation. All rights reserved.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef __SOF_AUDIO_CODEC_ADAPTER__\n#define __SOF_AUDIO_CODEC_ADAPTER__\n\n#include <sof/audio/codec_adapter/codec/generic.h>\n\n#define MAX_BLOB_SIZE ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.09, "nodes": 14, "errors": 0, "source_hash": "5b2c64d181506a87a6cc113284599709257b5dfb631337db989fb2dd47db51e1", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
12,098
c
/* Open Tracker License Terms and Conditions Copyright (c) 1991-2000, Be Incorporated. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without...
33.55
157
(translation_unit) "/*\nOpen Tracker License\n\nTerms and Conditions\n\nCopyright (c) 1991-2000, Be Incorporated. All rights reserved.\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 r...
787
19
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 33.55, "nodes": 492, "errors": 0, "source_hash": "aa11309647d779c1cb2531f6e8681c10e67c690292dc9d7356d96e85e6be4607", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,099