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
/** * Copyright (c) 2021 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include <Eigen/Geometry> /** * Just a reminder how Eigen quaternions work: * * The Eigen::Quaternion is stored internally as (x,y,z,w). * The first three element (x,y,z) are the imagina...
28.76
34
(translation_unit) "/**\n * Copyright (c) 2021 <NAME>\n * Licensed under the MIT License.\n * See LICENSE file for more information.\n */\n\n#pragma once\n\n#include <Eigen/Geometry>\n\n/**\n * Just a reminder how Eigen quaternions work:\n *\n * The Eigen::Quaternion is stored internally as (x,y,z,w).\n * The first thr...
174
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 28.76, "nodes": 108, "errors": 0, "source_hash": "c09ec5f4d249bac26fbff26cb681e3f693c52e21051bb4f368d3b61a01c7f63a", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,700
c
/* * Multi2Sim * Copyright (C) 2012 <NAME> (<EMAIL>) * * This module is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
33.77
57
(translation_unit) "/*\n * Multi2Sim\n * Copyright (C) 2012 <NAME> (<EMAIL>)\n *\n * This module is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your opti...
363
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 33.77, "nodes": 202, "errors": 0, "source_hash": "470ee837d2f40d69148fd1515ab10b0e9628eb580f6bbf68bdd7db89510e5a66", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,701
c
// // FunctionViewController.h // TJDBluetoothSDKDemoOC // // Created by tjd on 2019/1/8. // Copyright © 2019年 tjd. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FunctionViewController : UIViewController @end NS_ASSUME_NONNULL_END
21.67
12
(translation_unit) "//\n// FunctionViewController.h\n// TJDBluetoothSDKDemoOC\n//\n// Created by tjd on 2019/1/8.\n// Copyright © 2019年 tjd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FunctionViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (c...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.67, "nodes": 16, "errors": 0, "source_hash": "86a705b9505d99a4624791ed32ce27f3500256544d41950895e71baba2897b08", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
12,702
c
#ifndef point3dH #define point3dH #include <math.h> class Matrix; class Point3D{ public: double X; double Y; double Z; Point3D(); Point3D(double X, double Y, double Z); void aplly(Matrix * t); Matrix * asMatrix(); }; double dist(Point3D * p1, Point3D * p2); #endif
16.19
16
(translation_unit) "#ifndef point3dH\n#define point3dH\n\n#include <math.h>\n\nclass Matrix;\n\nclass Point3D{\n\npublic:\n double X;\n double Y;\n double Z;\n Point3D();\n Point3D(double X, double Y, double Z);\n\n void aplly(Matrix * t);\n Matrix * asMatrix();\n};\n\ndouble dist(Point3D * p1, Point3D * p2);\n\n#en...
105
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.19, "nodes": 71, "errors": 0, "source_hash": "36930d8a6ff1c1c9d661fa1ac301d42bbaa6f254b2ba18170ccf6925d8507248", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,703
c
/* * Copyright (C) AlexWoo(<NAME>) <EMAIL> */ #ifndef _NGX_NETCALL_H_INCLUDE_ #define _NGX_NETCALL_H_INCLUDE_ #include <ngx_core.h> #include "ngx_http_client.h" typedef struct ngx_netcall_ctx_s ngx_netcall_ctx_t; typedef void (* ngx_netcall_handler_pt)(ngx_netcall_ctx_t *ctx, ngx_int_t code); struct ngx_netc...
32.64
36
(translation_unit) "/*\n * Copyright (C) AlexWoo(<NAME>) <EMAIL>\n */\n\n\n#ifndef _NGX_NETCALL_H_INCLUDE_\n#define _NGX_NETCALL_H_INCLUDE_\n\n\n#include <ngx_core.h>\n#include "ngx_http_client.h"\n\n\ntypedef struct ngx_netcall_ctx_s ngx_netcall_ctx_t;\n\ntypedef void (* ngx_netcall_handler_pt)(ngx_netcall_ctx_t *ctx...
205
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.64, "nodes": 156, "errors": 0, "source_hash": "675ce184cb326035a9a444e0a83a12cff197b6f39108f65ddb2b17355fabf32c", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,704
c
#ifndef CTL_MODEMODIFYSTORAGEPOOL_H_ #define CTL_MODEMODIFYSTORAGEPOOL_H_ #include <modes/Mode.h> class ModeModifyStoragePool : public Mode { public: ModeModifyStoragePool(): Mode() { } virtual int execute(); static void printHelp(); }; #endif /* CTL_MODEMODIFYSTORAGEPOOL_H_ */
22.85
13
(translation_unit) "#ifndef CTL_MODEMODIFYSTORAGEPOOL_H_\n#define CTL_MODEMODIFYSTORAGEPOOL_H_\n\n#include <modes/Mode.h>\n\nclass ModeModifyStoragePool : public Mode\n{\n public:\n ModeModifyStoragePool():\n Mode() { }\n\n virtual int execute();\n\n static void printHelp();\n};\n\n\n#endif /* ...
62
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.85, "nodes": 34, "errors": 0, "source_hash": "4fa91ab82c6345cfc05d87d330fc7c703ba764b10924528be85d9e2fe6c24361", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,705
c
#ifndef WEBSOCKETTRANSPORT_H #define WEBSOCKETTRANSPORT_H #include <QObject> #include <QWebChannelAbstractTransport> #include <QJsonParseError> #include <QJsonDocument> #include <QJsonObject> #include <QDebug> namespace LTDev { class WebSocketTransport : public QWebChannelAbstractTransport { Q_OBJECT public: ...
29.24
41
(translation_unit) "#ifndef WEBSOCKETTRANSPORT_H\n#define WEBSOCKETTRANSPORT_H\n\n#include <QObject>\n#include <QWebChannelAbstractTransport>\n#include <QJsonParseError>\n#include <QJsonDocument>\n#include <QJsonObject>\n#include <QDebug>\n\nnamespace LTDev {\n\n\nclass WebSocketTransport : public QWebChannelAbstractTr...
285
11
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.24, "nodes": 166, "errors": 0, "source_hash": "d23d50550e4d65a5205ec3c8fb15e2f6ec744ad1d5455d811de7ef29c2dd253f", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,706
c
#pragma once #include "AVPlay/AVPlayer.h" // IDW_INBOX_PANEL enum TabPage { ENUM_CALL_PAGE = 0, ENUM_MISS_PAGE, ENUM_VOICE_MAIL_PAGE, ENUM_RECORD_PAGE }; struct ItemUserData { TAG_RECENT *m_pContactInfo; long m_nHistoryDataID; }; class CInboxCanvasHandler : public CWLWndHandler { public: CInb...
30.71
173
(translation_unit) "#pragma once \n#include "AVPlay/AVPlayer.h" \n// IDW_INBOX_PANEL \n \nenum TabPage \n{ \n ENUM_CALL_PAGE = 0, \n ENUM_MISS_PAGE, \n ENUM_VOICE_MAIL_PAGE, \n ENUM_RECORD_PAGE \n}; \nstruct ItemUserData \n{ \n TAG_RECENT *m_pContactInfo; \n long m_nHistoryDataID; \n}; \nclass CInboxCanvasHandler : pub...
1,180
13
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 30.71, "nodes": 849, "errors": 0, "source_hash": "6cd09f78d9aa8e64bfc8a00393a7377b921880604b3cde1ad382c6afe8e3d564", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,707
c
/* * ops-vr41xx.c, PCI configuration routines for the PCIU of NEC VR4100 series. * * Copyright (C) 2001-2003 MontaVista Software Inc. * Author: <NAME> <<EMAIL> or <EMAIL>> * Copyright (C) 2004-2005 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the ...
28.39
108
(translation_unit) "/*\n * ops-vr41xx.c, PCI configuration routines for the PCIU of NEC VR4100 series.\n *\n * Copyright (C) 2001-2003 MontaVista Software Inc.\n * Author: <NAME> <<EMAIL> or <EMAIL>>\n * Copyright (C) 2004-2005 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/...
656
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 28.39, "nodes": 425, "errors": 0, "source_hash": "7237a7d6e6696c8d6445b77f0637491569306a4f3a3f57075c1e3ecd8ce37ba1", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,708
c
#include <stdio.h> int main() { int b, a, h; /*a = 1/2 * b * h; a is Area b is base h is Height */ scanf("%d %d", &b, &a); h = 2*a/b ; int t; while(1){ t = 1/2 * b * h; if(t>=a) break; h++; } printf("%d", h); return 0; }
13.71
21
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int b, a, h;\n /*a = 1/2 * b * h;\n a is Area\n b is base\n h is Height\n */\n scanf("%d %d", &b, &a);\n h = 2*a/b ;\n int t;\n while(1){\n t = 1/2 * b * h;\n if(t>=a)\n break;\n h++;\n }\n prin...
116
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 13.71, "nodes": 68, "errors": 0, "source_hash": "630de1f0b59ace25d357d6f77ce0b251359523c24b9c39ddbe4d6a6b04ff109f", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,709
c
#ifndef SQLITE_DATA_BASE_H #define SQLITE_DATA_BASE_H #include "sqlite3.h" #include <string> #include "cursor.h" #include <vector> #include <stdint.h> namespace search { class SqliteDB { public: SqliteDB(); SqliteDB(const SqliteDB& db); SqliteDB& operator=(const SqliteDB& db); ~SqliteDB(); public: /** * @bri...
24.02
60
(translation_unit) "#ifndef SQLITE_DATA_BASE_H\n#define SQLITE_DATA_BASE_H\n#include "sqlite3.h"\n#include <string>\n#include "cursor.h"\n#include <vector>\n#include <stdint.h>\n\nnamespace search {\n\n\nclass SqliteDB {\npublic:\n SqliteDB();\n SqliteDB(const SqliteDB& db);\n SqliteDB& operator=(const SqliteDB& db);\n...
467
10
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 24.02, "nodes": 280, "errors": 0, "source_hash": "6328c3bfd0322a9509be7f141f79fb45b6142628b0cc79d705335763dfdc4924", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,710
c
#include "lists.h" /** * find_listint_loop - finds the loop in a linked list. * @head: head of a list. * * Return: the address of the node where the loop starts. */ listint_t *find_listint_loop(listint_t *head) { listint_t *p2; listint_t *prev; p2 = head; prev = head; while (head && p2 && p2->next) { hea...
16.22
37
(translation_unit) "#include "lists.h"\n\n/**\n * find_listint_loop - finds the loop in a linked list.\n * @head: head of a list.\n *\n * Return: the address of the node where the loop starts.\n */\nlistint_t *find_listint_loop(listint_t *head)\n{\n listint_t *p2;\n listint_t *prev;\n\n p2 = head;\n prev = head;\n whil...
202
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.22, "nodes": 126, "errors": 0, "source_hash": "0725cad116ba360c22f5f3371f298218e1623350c28d3cc9217ae3c1afecacb9", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,711
c
// Copyright (c) 2011-2021 by <NAME> (gevorkyan.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 Software without restriction, including without limitation the rights // to use, copy, modify...
36.39
96
(ERROR) "// Copyright (c) 2011-2021 by <NAME> (gevorkyan.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 "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use...
717
61
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 36.39, "nodes": 448, "errors": 0, "source_hash": "177e3fdf4a4538a3f54c52e003c9054091340fe9d2cb341b5bf1549f3eac6c89", "categorized_nodes": 319}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\tCopyright (c) 2011-20...
12,712
c
/* * mode4/SMS renderer * (C) notaz, 2009-2010 * * This work is licensed under the terms of MAME license. * See COPYING file in the top-level directory. */ /* * TODO: * - TMS9918 modes? * - gg mode? * - column scroll (reg 0 bit7) * - 224/240 line modes * - doubled sprites */ #include "pico_int.h" static v...
27.78
252
(translation_unit) "/*\n * mode4/SMS renderer\n * (C) notaz, 2009-2010\n *\n * This work is licensed under the terms of MAME license.\n * See COPYING file in the top-level directory.\n */\n/*\n * TODO:\n * - TMS9918 modes?\n * - gg mode?\n * - column scroll (reg 0 bit7)\n * - 224/240 line modes\n * - doubled sprites\n ...
2,457
0
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 27.78, "nodes": 1558, "errors": 0, "source_hash": "ad600a8f1617b552cab4974ce73ce4840f7e4ceb4a0297480e00900409cd3536", "categorized_nodes": 1143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,713
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/GameMode.h" #include "KGBaseGameMode.generated.h" /** * */ UCLASS() class KINGSGUARD_API AKGBaseGameMode : public AGameMode { GENERATED_UCLASS_BODY() public: UPROPERTY(EditDefaultsOnly, Blueprin...
26.76
17
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "GameFramework/GameMode.h"\n#include "KGBaseGameMode.generated.h"\n\n/**\n * \n */\nUCLASS()\nclass KINGSGUARD_API AKGBaseGameMode : public AGameMode\n{\n GENERATED_UCLASS_BODY()\n\npublic:\n\n...
99
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.76, "nodes": 51, "errors": 0, "source_hash": "3350838fed2cee36bebb4ced26f625184fc01afe1f7f6cc07069954d9b616b70", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,714
c
#ifndef VTKIMAGINGCORE_EXPORT_H #define VTKIMAGINGCORE_EXPORT_H #ifdef VTKIMAGINGCORE_STATIC_DEFINE # define VTKIMAGINGCORE_EXPORT # define VTKIMAGINGCORE_NO_EXPORT #else # ifndef VTKIMAGINGCORE_EXPORT # ifdef vtkImagingCore_EXPORTS /* We are building this library */ # define VTKIMAGINGCORE_EXPORT ...
30.6
30
(translation_unit) "#ifndef VTKIMAGINGCORE_EXPORT_H\n#define VTKIMAGINGCORE_EXPORT_H\n\n#ifdef VTKIMAGINGCORE_STATIC_DEFINE\n# define VTKIMAGINGCORE_EXPORT\n# define VTKIMAGINGCORE_NO_EXPORT\n#else\n# ifndef VTKIMAGINGCORE_EXPORT\n# ifdef vtkImagingCore_EXPORTS\n /* We are building this library */\n# ...
76
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.6, "nodes": 73, "errors": 0, "source_hash": "dac8a761bb6e6d76a660c33713ab029319b5d6eaffc55ba311d7f40384c8cf68", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef V...
12,715
c
#ifndef ngspice_COM_HARDCOPY_H #define ngspice_COM_HARDCOPY_H void com_hardcopy(wordlist *wl); #endif
19.6
5
(translation_unit) "#ifndef ngspice_COM_HARDCOPY_H\n#define ngspice_COM_HARDCOPY_H\n\n\nvoid com_hardcopy(wordlist *wl);\n\n#endif\n" (preproc_ifdef) "#ifndef ngspice_COM_HARDCOPY_H\n#define ngspice_COM_HARDCOPY_H\n\n\nvoid com_hardcopy(wordlist *wl);\n\n#endif" (#ifndef) "#ifndef" (identifier) "ngspice_COM_H...
21
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 19.6, "nodes": 17, "errors": 0, "source_hash": "99059cf29cac517cad9e71b1e1b2fb39e772df6c68e9f6427f912e0a45cb23ed", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ng...
12,716
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 GEONavdCacheDBReader, GEONavdCacheDBWriter, NSObject<OS_dispatch_queue>; __attribute__((visibility("hidden"))) @interface GEONavdCachePersistenceManager : NS...
34.24
33
(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 GEONavdCacheDBReader, GEONavdCacheDBWriter, NSObject<OS_dispatch_queue>;\n\n__attribute__((visibility("hidden")))\n@interface GEON...
354
25
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.24, "nodes": 212, "errors": 0, "source_hash": "579aa29f44b63ec760d1e66ef72559cc28b7273c3193038b5a937818a4341d7e", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,717
c
/* * file: keypad.h * description: These routines handle input from a keypad * author: <NAME> */ #include <stdint.h> #ifndef KEYPAD_H_ #define KEYPAD_H_ //Define GPIO clock address and offsets #define RCC_AHB1ENR (volatile uint32_t*) 0x40023830 #define GPIOCEN 2 //Characters that the key codes map to...
20.5
52
(translation_unit) "/* \n * file: keypad.h \n * description: These routines handle input from a keypad \n * author: <NAME> \n */ \n#include <stdint.h> \n \n#ifndef KEYPAD_H_ \n#define KEYPAD_H_ \n \n//Define GPIO clock address and offsets \n#define RCC_AHB1ENR (volatile uint32_t*) 0x40023830 \n#define GPIOCEN 2 \n//Cha...
71
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 20.5, "nodes": 47, "errors": 0, "source_hash": "3e658706a26a56f0edac60704c9fb5d7b4f233c9323f765d0720e70be8ddd0e4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,718
c
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef _FPDFXFA_PAGEVIEW_H_ #define _FPDFXFA_PAGEVIEW_H_ class CPDFXFA_Page ...
33.2
56
(translation_unit) "// Copyright 2014 PDFium 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef _FPDFXFA_PAGEVIEW_H_\n#define _FPDFXFA_PAGEV...
367
3
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 33.2, "nodes": 239, "errors": 0, "source_hash": "b1e85dedc6b0abe4be4e3685e79950fe8edabb59c70305cf5f991eed39380f33", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,719
c
// // SmvpImageDownloader.h // SmvpClient // // Created by julien on 13-12-27. // Copyright (c) 2013年 smvp. All rights reserved. // /*! @header SmvpImageDownloader @abstract 图片加载类; @author smvp @version 1.3.1 */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /*! @class @abstract 主要用于图片加载; */ @i...
16.16
43
(translation_unit) "//\n// SmvpImageDownloader.h\n// SmvpClient\n//\n// Created by julien on 13-12-27.\n// Copyright (c) 2013年 smvp. All rights reserved.\n//\n\n/*!\n @header SmvpImageDownloader\n @abstract 图片加载类;\n @author smvp\n @version 1.3.1\n */\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n/*...
93
14
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 16.16, "nodes": 59, "errors": 0, "source_hash": "4544e518934a94ba45d9b5820ea6447f63188087ca441c662f39c623b986d1d9", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ation/Fou...
12,720
c
#pragma once #include "common.h" int validate_ip(const char* ip); int validate_port(int port); char* get_ip_by_name(const char* hostname); int set_data(char** data, const char* fileName);
30.33
6
(translation_unit) "#pragma once\n#include "common.h"\n\nint validate_ip(const char* ip);\nint validate_port(int port);\nchar* get_ip_by_name(const char* hostname);\nint set_data(char** data, const char* fileName);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (prepro...
76
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.33, "nodes": 53, "errors": 0, "source_hash": "8ed4b71cd7b7b6ce281faa2128c75a8e6ff6e6c15300bad20d1a4df4efc5e9f1", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,721
c
// The MIT License (MIT) // Copyright (c) 2013 lailongwei<<EMAIL>> // // 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 /...
36.75
215
(translation_unit) "// The MIT License (MIT)\n\n// Copyright (c) 2013 lailongwei<<EMAIL>>\n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy of \n// this software and associated documentation files (the "Software"), to deal in \n// the Software without restriction, including without l...
828
66
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 36.75, "nodes": 463, "errors": 0, "source_hash": "e8fd429806cfbc2529e2e10d47de63bcb05140bc9745d5e91c04d09ed52b1e56", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __LLB...
12,722
c
/* list.h * * Created By: <NAME> */ struct EntityList_Node { Entity *Value; EntityList_Node *Next; EntityList_Node *Previous; }; struct Entity_List { EntityList_Node *Head; EntityList_Node *Tail; }; void EntityList_Add(Entity_List *CurrentList, Entity *NewEntity) { Assert(CurrentList); // check if the head...
15.84
61
(translation_unit) "/* list.h\n *\n * Created By: <NAME>\n */\n\nstruct EntityList_Node\n{\n Entity *Value;\n EntityList_Node *Next;\n EntityList_Node *Previous;\n};\n\nstruct Entity_List\n{\n EntityList_Node *Head;\n EntityList_Node *Tail;\n};\n\nvoid\nEntityList_Add(Entity_List *CurrentList, Entity *NewEntity)\n{\n A...
288
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 15.84, "nodes": 180, "errors": 0, "source_hash": "6a44cb859536beab287947ecb9b0285fedbcd7a63f584fb5b912a14f5220c0ed", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "str...
12,723
c
#ifndef NEWSBOAT_LOGGER_H_ #define NEWSBOAT_LOGGER_H_ #include <fstream> #include <mutex> #include <config.h> #include <strprintf.h> namespace newsboat { /* Be sure to update loglevel_str array in src/logger.cpp if you change this * enum. */ enum class level { NONE = 0, USERERROR, CRITICAL, ERROR, WARN, INFO...
26.96
74
(translation_unit) "#ifndef NEWSBOAT_LOGGER_H_\n#define NEWSBOAT_LOGGER_H_\n\n#include <fstream>\n#include <mutex>\n#include <config.h>\n\n#include <strprintf.h>\n\nnamespace newsboat {\n\n/* Be sure to update loglevel_str array in src/logger.cpp if you change this\n * enum. */\nenum class level {\n NONE = 0,\n USERERR...
663
28
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 26.96, "nodes": 372, "errors": 0, "source_hash": "b8b55fedf16d2c7234d3165f79591f1b7c881749050d5cb5b7a2c6af57798289", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,724
c
#include <stdlib.h> #include <stdio.h> #define true 1 #define false 0 typedef int bool; typedef struct aux { int id; float prioridade; struct aux* ant; struct aux* prox; } ELEMENTO, * PONT; typedef struct { int maxElementos; PONT fila; PONT* arranjo; } FILADEPRIORIDADE, * PFILA; PFILA criarFila(int ma...
25.83
23
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#define true 1\n#define false 0\n\ntypedef int bool;\n\ntypedef struct aux {\n int id;\n float prioridade;\n struct aux* ant;\n struct aux* prox;\n} ELEMENTO, * PONT;\n\ntypedef struct {\n int maxElementos;\n PONT fila;\n PONT* arranjo;\n} FILADEPRIORI...
196
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.83, "nodes": 148, "errors": 0, "source_hash": "e24a705b4b6b4620578043b0ebb11cd729d9251cc824898b1640d6734214c01c", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,725
c
/* Copyright 2017-2018 CNRS-AIST JRL and CNRS-UM LIRMM * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the foll...
38.03
180
(translation_unit) "/* Copyright 2017-2018 CNRS-AIST JRL and CNRS-UM LIRMM\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice,\n* this list ...
606
35
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 38.03, "nodes": 337, "errors": 0, "source_hash": "8616edf2442b6e08c8ab64a052b2e746c7c9a45be3108d81bf19ebb60afb813e", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,726
c
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
37.27
37
(translation_unit) "/*\n* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or\n* its licensors.\n*\n* For complete copyright and license terms please see the LICENSE at the root of this\n* distribution (the "License"). All use of this software is governed by the License,\n* or, if provided,...
192
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.27, "nodes": 119, "errors": 0, "source_hash": "5ee88f4b86022a5db1314889deb358d3cda38b965a6539a1f92c4235fdc3724f", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,727
c
#include <stdio.h> int main() { int i; int len, chord, mark; char s[100005], ans[100005]; scanf("%s", s); chord = 0; for ( i = 0; s[i] != '\0'; i++ ) chord = s[i]-'a'>chord ? s[i]-'a' : chord; len = mark = 0; while ( chord >= 0 ) { for ( i = mark; s[i] != '\0'; i++ )...
20.24
25
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int i;\n int len, chord, mark;\n char s[100005], ans[100005];\n scanf("%s", s);\n chord = 0;\n for ( i = 0; s[i] != '\0'; i++ )\n chord = s[i]-'a'>chord ? s[i]-'a' : chord;\n len = mark = 0;\n while ( chord >= 0 )\n {\n f...
242
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.24, "nodes": 155, "errors": 0, "source_hash": "b1dc931c942641b445712b7187ea4478f6357bbdefe459e84a03829e07287aa8", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,728
c
//===- VXXIRDowngrader.h - SYCL V++ IR Downgrader pass -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------------------------------...
33.14
21
(translation_unit) "//===- VXXIRDowngrader.h - SYCL V++ IR Downgrader pass -----------===//\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//===------------------------------------...
49
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.14, "nodes": 23, "errors": 0, "source_hash": "71c702b027c2717aa06f81d67a74821732f683d819074636f648fce4acc73456", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,729
c
/* * error.h * * Created on: Jun 9, 2018 * Author: Jeff */ #ifndef EXTERNAL_ERROR_H_ #define EXTERNAL_ERROR_H_ #include "../element.h" Element token__(VM *vm, Thread *t, ExternalData *ed, Element *argument); #endif /* EXTERNAL_ERROR_H_ */
16.87
15
(translation_unit) "/* \n * error.h \n * \n * Created on: Jun 9, 2018 \n * Author: Jeff \n */ \n \n#ifndef EXTERNAL_ERROR_H_ \n#define EXTERNAL_ERROR_H_ \n \n#include "../element.h" \n \nElement token__(VM *vm, Thread *t, ExternalData *ed, Element *argument); \n \n#endif /* EXTERNAL_ERROR_H_ */ \n" (comment) "/...
47
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 16.87, "nodes": 35, "errors": 0, "source_hash": "d07b2387c6d3d8baf25464aa2eba6780dab781047be83906a9a092206e2f499d", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,730
c
/** @file dsm-common.h * @author <NAME> <<EMAIL> * @date 20/10/2014 */ #ifndef __DSM_COMMON_H #define __DSM_COMMON_H #include <stdint.h> #define NUM_OF_STILL_BUF 2 /** @struct dsm_common_data * @brief Defines the common data (shared) between the gstreamer plugin part * and the vehicle-dsm module. */ struct ds...
35.51
39
(translation_unit) "/** @file dsm-common.h\n * @author <NAME> <<EMAIL>\n * @date 20/10/2014\n */\n\n#ifndef __DSM_COMMON_H\n#define __DSM_COMMON_H\n\n#include <stdint.h>\n\n#define NUM_OF_STILL_BUF 2\n\n/** @struct dsm_common_data\n * @brief Defines the common data (shared) between the gstreamer plugin part\n * and the...
151
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.51, "nodes": 96, "errors": 0, "source_hash": "315caed5ee9433d52db46dcebc384a4b832ab4bc729e6992e40b7335626330b0", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,731
c
// // Created by jessevw on 24.03.20. // #ifndef RTT_HALT_H #define RTT_HALT_H #include "stp/Role.hpp" namespace rtt::ai::stp::role { class Halt : public Role { public: /** * Ctor that sets the name of the role and creates a state machine of tactics * @param name name of the role */ Halt(s...
22.18
17
(translation_unit) "//\n// Created by jessevw on 24.03.20.\n//\n\n#ifndef RTT_HALT_H\n#define RTT_HALT_H\n\n#include "stp/Role.hpp"\n\nnamespace rtt::ai::stp::role {\n\nclass Halt : public Role {\n public:\n /**\n * Ctor that sets the name of the role and creates a state machine of tactics\n * @param name ...
65
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.18, "nodes": 30, "errors": 0, "source_hash": "8afe9001a75424fd512d93a50333f96f6d92bbc99f3ea530321b304b92af6aba", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,732
c
#pragma once #include <string> #include "core/type_consts.h" #include "estl/h_vector.h" #include "estl/span.h" #include "estl/string_view.h" #include "tools/errors.h" namespace reindexer { using std::string; class WrSerializer; struct FacetResult { FacetResult(const h_vector<std::string, 1> &v, int c) : values(v), ...
26.22
27
(translation_unit) "#pragma once\n\n#include <string>\n#include "core/type_consts.h"\n#include "estl/h_vector.h"\n#include "estl/span.h"\n#include "estl/string_view.h"\n#include "tools/errors.h"\n\nnamespace reindexer {\nusing std::string;\nclass WrSerializer;\n\nstruct FacetResult {\n FacetResult(const h_vector<std::s...
237
15
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.22, "nodes": 148, "errors": 0, "source_hash": "9ef7aab705069521e9e578a1762efcb646d2c2dbbd2e4f52e8e687b652fa00aa", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,733
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:39:08 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/QuartzCore.framework/QuartzCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. ...
38.45
20
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:39:08 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Frameworks/QuartzCore.framework/QuartzCore\n* classdump-dyld is licensed under GPLv3, Copyrigh...
132
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 38.45, "nodes": 88, "errors": 0, "source_hash": "907fc68732aa3c042958beebdd91b8979d09fe10ee6bf4530525d4d9c22ccf47", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
12,734
c
//+--------------------------------------------------------------------------- // // File: msnssp.h // // Contents: MSNSSP specific parameters and characteristics // // History: SudK Created 7/13/95 // //---------------------------------------------------------------------------- #ifndef _MS...
29.56
57
(translation_unit) "//+--------------------------------------------------------------------------- \n// \n// File: msnssp.h \n// \n// Contents: MSNSSP specific parameters and characteristics \n// \n// History: SudK Created 7/13/95 \n// \n//-------------------------------------------------------------...
114
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 29.56, "nodes": 97, "errors": 0, "source_hash": "f09c96c146b88bd1c97048ffd93aa7e3060511590464516c146125d1e9bd23ca", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,735
c
#pragma once namespace XorCompileTime { constexpr auto time = __TIME__; constexpr auto seed = static_cast<int>(time[7]) + static_cast<int>(time[6]) * 10 + static_cast<int>(time[4]) * 60 + static_cast<int>(time[3]) * 600 + static_cast<int>(time[1]) * 3600 + static_cast<int>(tim...
27.35
116
(translation_unit) "#pragma once\n\nnamespace XorCompileTime\n{\n constexpr auto time = __TIME__;\n constexpr auto seed = static_cast<int>(time[7]) +\n static_cast<int>(time[6]) * 10 +\n static_cast<int>(time[4]) * 60 +\n static_cast<int>(time[3]) * 600 +\n static_cast<int>(time[1]) * 3600 +...
1,085
41
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 27.35, "nodes": 696, "errors": 0, "source_hash": "f2672c490c871308fecf5a05e397f8ccb0f33d7563ba51665ea87f9013243418", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,736
c
#pragma once #include <chrono> class Timer { public: void Start(); // In seconds double TimePoint(); private: std::chrono::high_resolution_clock::time_point m_start; };
17.5
10
(translation_unit) "#pragma once\n\n#include <chrono>\n\nclass Timer {\npublic:\n void Start();\n // In seconds\n double TimePoint();\n\nprivate:\n std::chrono::high_resolution_clock::time_point m_start;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (p...
57
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.5, "nodes": 29, "errors": 0, "source_hash": "5dd906f36b6b860424e6d87719bb7267502ff7c83ae775fc9e78c0b30ef6276e", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,737
c
#pragma once #include <map> #include "HealthLevel.h" #include "SpriteTable.h" class HealthLevelSprites : public tggd::common::SpriteTable<HealthLevel> { protected: HealthLevel StringToIdentifier(const std::string&); public: HealthLevelSprites(tggd::common::FinishManager&); };
24.36
11
(translation_unit) "#pragma once\n#include <map>\n#include "HealthLevel.h"\n#include "SpriteTable.h"\nclass HealthLevelSprites : public tggd::common::SpriteTable<HealthLevel>\n{\nprotected:\n HealthLevel StringToIdentifier(const std::string&);\npublic:\n HealthLevelSprites(tggd::common::FinishManager&);\n};\n\n" (pre...
83
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.36, "nodes": 40, "errors": 0, "source_hash": "1843a5f0b651d6c0d7611caca3cabb3a43dfdfa0dc9f99f0904f7edd6426c739", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,738
c
/* { dg-do compile } */ /* { dg-options "-O -Wall" } */ void foo() { while (1) for (;;({ continue; })) ; }
13.88
8
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O -Wall" } */\n\nvoid foo()\n{\n while (1)\n for (;;({ continue; }))\n ;\n}\n" (comment) "/* { dg-do compile } */" (comment) "/* { dg-options "-O -Wall" } */" (function_definition) "void foo()\n{\n while (1)\n for (;;({ continue; }))\n ...
36
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.88, "nodes": 12, "errors": 0, "source_hash": "2aabca746cc44b3c68add99030adcc923912c4b45698856524509a6c0c6e1bdf", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void...
12,739
c
// // XYQProgress.h // XYQPlayer // // Created by 夏远全 on 2017/4/7. // Copyright © 2017年 夏远全. All rights reserved. // #import <UIKit/UIKit.h> /************************************************************************************************** 自定义时间进度条 *******************...
27.5
34
(translation_unit) "//\n// XYQProgress.h\n// XYQPlayer\n//\n// Created by 夏远全 on 2017/4/7.\n// Copyright © 2017年 夏远全. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**************************************************************************************************\n ...
119
18
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.5, "nodes": 70, "errors": 0, "source_hash": "ea969f76b56010e8d08c37bb0f20bfc5dca9c4ec8461dd5ee00a62fee310ae21", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n...
12,740
c
#pragma once #include <QGraphicsPathItem> class PwEndpoint; /// class PwConnectorPrivate; class PwConnector : public QObject, public QGraphicsPathItem { Q_OBJECT; Q_DECLARE_PRIVATE(PwConnector); QScopedPointer<PwConnectorPrivate> d_ptr; public: PwConnector(PwEndpoint *src, PwEndpoint *dst, QG...
26.81
16
(translation_unit) "#pragma once\n#include <QGraphicsPathItem>\n\nclass PwEndpoint;\n///\n\nclass PwConnectorPrivate;\nclass PwConnector : public QObject, public QGraphicsPathItem {\n Q_OBJECT;\n\n Q_DECLARE_PRIVATE(PwConnector);\n QScopedPointer<PwConnectorPrivate> d_ptr;\n\n public:\n PwConnector(PwEndpoint *src,...
112
3
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.81, "nodes": 69, "errors": 0, "source_hash": "bd63f7bcb6df9e6bb95b350d9304586e754df97410436e63f050e9523c74cd1b", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,741
c
/* * Copyright 2017 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef CAMERA_COMMON_CAMERA_ALGORITHM_ADAPTER_H_ #define CAMERA_COMMON_CAMERA_ALGORITHM_ADAPTER_H_ #include <memory> #include <string> #inclu...
37.4
42
(translation_unit) "/*\n * Copyright 2017 The Chromium OS 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#ifndef CAMERA_COMMON_CAMERA_ALGORITHM_ADAPTER_H_\n#define CAMERA_COMMON_CAMERA_ALGORITHM_ADAPTER_H_\n\n#include <memo...
216
9
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 37.4, "nodes": 127, "errors": 0, "source_hash": "68e9cc8180698a1a88689713bf2dcb096426ac9c5597cd088bd56803cd81a03e", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,742
c
#include "contiki.h" #include "contiki-lib.h" #include "contiki-net.h" #include "net/ipv6/multicast/uip-mcast6.h" #include "dev/leds.h" #include "sys/compower.h" #include "sys/etimer.h" #include <string.h> #define DEBUG DEBUG_PRINT #include "net/ip/uip-debug.h" #include "dev/cc2420/cc2420.h" static uint8...
30.08
343
(translation_unit) "#include "contiki.h" \n#include "contiki-lib.h" \n#include "contiki-net.h" \n#include "net/ipv6/multicast/uip-mcast6.h" \n#include "dev/leds.h" \n#include "sys/compower.h" \n#include "sys/etimer.h" \n#include <string.h> \n#define DEBUG DEBUG_PRINT \n#include "net/ip/uip-debug.h" \n#include "dev/cc24...
2,397
0
{"language": "c", "success": true, "metadata": {"lines": 343, "avg_line_length": 30.08, "nodes": 1271, "errors": 0, "source_hash": "dfaeee2a5a701b5f57a0f4038cfd8a72fe461cb8361061bc192c18407afaf53f", "categorized_nodes": 984}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,743
c
#include <stdio.h> #include "directory.h" /* Function to create directory */ bool create_directory(void){ FILE *dir = NULL; /* Info for user */ printf("INFO: Creating empty directory\n"); dir = file_open(DIRECTORY, "w"); printf("INFO: Empty directory created successfully\n"); file_close(d...
26.08
12
(translation_unit) "#include <stdio.h>\n#include "directory.h"\n\n/* Function to create directory */\nbool create_directory(void){\n FILE *dir = NULL;\n \n /* Info for user */ \n printf("INFO: Creating empty directory\n");\n dir = file_open(DIRECTORY, "w");\n printf("INFO: Empty directory created succe...
82
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.08, "nodes": 44, "errors": 0, "source_hash": "0a21f69ddd1f1f6b76586bd709c3e60b02843840427b8f8c7a9af1b147be8744", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,744
c
/*- * Copyright (c) 2017--2018, 2020 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
30.55
98
(translation_unit) "/*-\n * Copyright (c) 2017--2018, 2020 <NAME>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *...
587
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 30.55, "nodes": 339, "errors": 0, "source_hash": "13e735d1f20810e9ad0305238bb3aba27b1a700b12a75de029287e7d813a36cc", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
12,745
c
/* * Name: kassert.h * Purpose: * Author: King * Company: * Created: 03/27/2011 15:33:40 * Copyright: */ #ifndef _KASSERT_H_ #define _KASSERT_H_ #include "kdefines.h" EXTERN_C_BEGIN( ) int AssertFailure( const char *file, int line ); int AssertFailureMessage( const char *file, int line, const char *mes...
32.91
43
(translation_unit) "/*\n * Name: kassert.h\n * Purpose:\n * Author: King\n * Company:\n * Created: 03/27/2011 15:33:40\n * Copyright:\n */\n\n#ifndef _KASSERT_H_\n#define _KASSERT_H_\n\n\n#include "kdefines.h"\n\n\nEXTERN_C_BEGIN( )\n\nint AssertFailure( const char *file, int line );\n\nint AssertFailureMessage( con...
230
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.91, "nodes": 157, "errors": 0, "source_hash": "e2adc32e3338789cc28c2f8de52bff6089dbe760c82257d4414d5814c77ec22f", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,746
c
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
36.6
42
(translation_unit) "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by...
89
3
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 36.6, "nodes": 48, "errors": 0, "source_hash": "714606e24d50fdf529af3a7d7a99bd1beb0fcab2a36ed859c24fd4af080320f0", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
12,747
c
#import <Foundation/Foundation.h> #import "TLObject.h" #import "TLMetaRpc.h" @class TLChat; @interface TLmessages_Chat : NSObject <TLObject> @property (nonatomic, retain) TLChat *chat; @property (nonatomic, retain) NSArray *users; @end @interface TLmessages_Chat$messages_chat : TLmessages_Chat @end
26.36
11
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import "TLObject.h"\n#import "TLMetaRpc.h"\n\n@class TLChat;\n\n@interface TLmessages_Chat : NSObject <TLObject>\n\n@property (nonatomic, retain) TLChat *chat;\n@property (nonatomic, retain) NSArray *users;\n\n@end\n\n@interface TLmessages_Chat$messages_chat : T...
70
15
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.36, "nodes": 55, "errors": 0, "source_hash": "2129a2aa30c6b918419c71247902c17786f66bb6bfc8853d81c1bc0b93a244c4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,748
c
#pragma once #include <array> #include <qwidget.h> #include <qtimer.h> #include <qwheelevent> #include "NoteGraphicsItem.h" #include "PianoRollScene.h" #include "PianoRollView.h" #include <chrono> #include "VSTplugin.h" #include "MIDIEvent.h" #include "Track.h" enum class Mode { Playback, Recording, Idle }; c...
21.44
45
(translation_unit) "#pragma once\n\n#include <array>\n\n#include <qwidget.h>\n#include <qtimer.h>\n#include <qwheelevent>\n\n#include "NoteGraphicsItem.h"\n#include "PianoRollScene.h"\n#include "PianoRollView.h"\n\n#include <chrono>\n\n#include "VSTplugin.h"\n#include "MIDIEvent.h"\n#include "Track.h"\n\nenum class Mod...
308
15
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 21.44, "nodes": 192, "errors": 0, "source_hash": "9df87c427067aa9bc46d8903e6f1e4492880523434282b9da4f58cd25717be74", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,749
c
#include "Include.h" M_Int32 StartTimei; M_Int32 LogoTimei; M_Int32 i; M_Int32 j; M_Int32 BollCheck; void LogoFC() { switch(Check) { case Set: LogoState(); break; case Play: LogoUpdate(); LogoDraw(); break; case SetEnd: LogoDestroy(); break; } } void LogoState() { G...
12.06
66
(translation_unit) "#include "Include.h" \n \nM_Int32 StartTimei; \nM_Int32 LogoTimei; \nM_Int32 i; \nM_Int32 j; \nM_Int32 BollCheck; \n \n \nvoid LogoFC() \n{ \n switch(Check) \n { \n case Set: \n LogoState(); \n break; \n \n case Play: \n LogoUpdate(); \n LogoDraw(); \n break; \n \n case SetEnd: \n LogoDestroy();...
337
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 12.06, "nodes": 188, "errors": 0, "source_hash": "1662aa8736d8a6eaabe246903a9286bc593c6ec1f0969b950f26bd81b94d4f84", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,750
c
/********************************************************************************** * iniPropertyInsert * * ************************************************** * This code was created by <NAME> @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ------------------------------------------...
31.64
44
(translation_unit) "/**********************************************************************************\n * iniPropertyInsert\n *\n *\n **************************************************\n * This code was created by <NAME> @ CodeByDesign.\n * Released under LGPL 28.JAN.99\n *\n * Contributions from...\n * -------------...
273
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.64, "nodes": 171, "errors": 0, "source_hash": "c4145997c970a1fd3423ebca9dc03f6fccecaa0c0045f7faa82fca520357e6d4", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,751
c
// // BlockAlertsDemoViewController.h // BlockAlertsDemo // // Created by <NAME> on 9/1/12. // Copyright (c) 2012 CodeCrop Software. All rights reserved. // #import <UIKit/UIKit.h> @interface BlockAlertsDemoViewController : UIViewController <UITextFieldDelegate> - (IBAction)showAlert:(id)sender; - (IBAction)show...
33.65
20
(translation_unit) "//\n// BlockAlertsDemoViewController.h\n// BlockAlertsDemo\n//\n// Created by <NAME> on 9/1/12.\n// Copyright (c) 2012 CodeCrop Software. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BlockAlertsDemoViewController : UIViewController <UITextFieldDelegate>\n\n- (IBAction)showAl...
186
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.65, "nodes": 107, "errors": 0, "source_hash": "b36991910a7a1e1e2ecc020c9e94e8062fc8b5262b3a70e49620946c15ab94bb", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,752
c
/* PURPOSE: (Matrix addition) ASSUMPTIONS AND LIMITATIONS: ((3x3 Matrix implementation)) PROGRAMMERS: (((<NAME>) (NASA/Johnson Space Center) (Jan 1990) (v1.0) (Init Release))) */ #include "trick/trick_math.h" void dm_add(double sum[3][3], /* Out: Sum of the two matrices */ double mat1[3][3], ...
39.4
20
(translation_unit) "/*\n PURPOSE: (Matrix addition)\n\n ASSUMPTIONS AND LIMITATIONS: ((3x3 Matrix implementation))\n\n PROGRAMMERS: (((<NAME>) (NASA/Johnson Space Center) (Jan 1990) (v1.0) (Init Release))) */\n\n#include "trick/trick_math.h"\n\nvoid dm_add(double sum[3][3], /* Out: Sum of the two matrices */\n ...
356
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.4, "nodes": 201, "errors": 0, "source_hash": "361e4575f320821c4e0be55be59dac66f5e297b1c451cfe5faccbbeb6c89d2ca", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,753
c
#pragma once #include "iflag.h" #include "optioninfo.h" #include "configaccess.h" #include "format.h" #include <gsl/gsl> #include <cmdlime/customnames.h> #include <memory> #include <functional> #include <utility> namespace cmdlime::detail{ class Flag : public IFlag{ public: enum class Type{ Normal, ...
26.13
102
(translation_unit) "#pragma once\n#include "iflag.h"\n#include "optioninfo.h"\n#include "configaccess.h"\n#include "format.h"\n#include <gsl/gsl>\n#include <cmdlime/customnames.h>\n#include <memory>\n#include <functional>\n#include <utility>\n\nnamespace cmdlime::detail{\n\nclass Flag : public IFlag{\npublic:\n enum...
836
41
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 26.13, "nodes": 466, "errors": 0, "source_hash": "adf7b30c7632e2f6cfdb9375bd8b14147d45446d60aacd57b35cd1db604ec9d8", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,754
c
// // SongTableViewController.h // NetMusic // // Created by xsdlr on 14/12/6. // Copyright (c) 2014年 xsdlr. All rights reserved. // #import <UIKit/UIKit.h> #import "QCBSongModel.h" @interface SongTableViewController : UITableViewController<UITableViewDataSource,UITableViewDelegate> /** * 频道id */ @property(str...
16.34
53
(translation_unit) "//\n// SongTableViewController.h\n// NetMusic\n//\n// Created by xsdlr on 14/12/6.\n// Copyright (c) 2014年 xsdlr. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "QCBSongModel.h"\n\n@interface SongTableViewController : UITableViewController<UITableViewDataSource,UITableViewDelegate>...
167
15
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 16.34, "nodes": 100, "errors": 0, "source_hash": "cdf44eb22e6ff636a63d3f10cb4f0e22bbd076f1d27841f4e35b9658268378f1", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
12,755
c
#pragma once #pragma warning(disable:4996) // Pre Definitions #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <Windows.h> #include <SDKDDKVer.h> #include <appmodel.h> #include <stdlib.h> #include <string> #include <vector> // Steam Headers #include <steam_api.h> #include <steam_gameserver.h>
20.13
15
(translation_unit) "#pragma once\n\n#pragma warning(disable:4996)\n\n// Pre Definitions\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n\n#include <Windows.h>\n#include <SDKDDKVer.h>\n#include <appmodel.h>\n#include <stdlib.h>\n#include <string>\n#include <vector>\n\n// Steam Headers\n#include <steam...
40
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.13, "nodes": 37, "errors": 0, "source_hash": "7ff5fa86940bae97cc7b8f1d036fc76a3557b74ba5574fc054177a26a0b07e1b", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,756
c
#pragma once struct ShaderException { const char* what() const throw () { return "Shader Error"; } };
12.38
8
(translation_unit) "#pragma once\nstruct ShaderException\n{\n const char* what() const throw ()\n {\n return "Shader Error";\n }\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (struct_specifier) "struct ShaderException\n{\n const char* what() const throw ()\n {\n r...
40
3
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 12.38, "nodes": 19, "errors": 0, "source_hash": "87f731af156ff5dbb9ff241b65f7a534292121b1d9625863c4fe2dad24daca4a", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,757
c
#ifndef LIBWEBP_NO_SRC #include "../../libwebp_src/src/dsp/yuv.c" #endif
23.33
3
(translation_unit) "#ifndef LIBWEBP_NO_SRC\n#include "../../libwebp_src/src/dsp/yuv.c"\n#endif\n" (preproc_ifdef) "#ifndef LIBWEBP_NO_SRC\n#include "../../libwebp_src/src/dsp/yuv.c"\n#endif" (#ifndef) "#ifndef" (identifier) "LIBWEBP_NO_SRC" (preproc_include) "#include "../../libwebp_src/src/dsp/yuv.c"\n" ...
11
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 23.33, "nodes": 7, "errors": 0, "source_hash": "93afa853acbfe84006aa4ed03a4720458c8e4824b63d3b4f6de1ab3320257d26", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LIB...
12,758
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_MSHYPER_H #define _ASM_X86_MSHYPER_H #include <linux/types.h> #include <linux/nmi.h> #include <linux/msi.h> #include <asm/io.h> #include <asm/hyperv-tlfs.h> #include <asm/nospec-branch.h> #include <asm/paravirt.h> typedef int (*hyperv_fill_flush_list_func)( st...
33.92
230
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_MSHYPER_H\n#define _ASM_X86_MSHYPER_H\n\n#include <linux/types.h>\n#include <linux/nmi.h>\n#include <linux/msi.h>\n#include <asm/io.h>\n#include <asm/hyperv-tlfs.h>\n#include <asm/nospec-branch.h>\n#include <asm/paravirt.h>\n\ntypedef int (*hy...
1,955
20
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 33.92, "nodes": 1198, "errors": 0, "source_hash": "c225639896f7c95b77d7e2f5a36208c18848e99a20238f23690b4d66a47f160f", "categorized_nodes": 795}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
12,759
c
/* * Copyright (c) 2014-2018 Cesanta Software Limited * All rights reserved * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
29.6
92
(translation_unit) "/*\n * Copyright (c) 2014-2018 Cesanta Software Limited\n * All rights reserved\n *\n * Licensed under the Apache License, Version 2.0 (the ""License"");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org...
579
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 29.6, "nodes": 355, "errors": 0, "source_hash": "3c5c7d1fd1c3e960f87baa22d2076d75cd9c7f0834b92f868caceeef748bb8b1", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,760
c
// // NSObject+TLKVO.h // Pods-Tourelle_Example // // Created by 朱衡 on 2018/8/11. // #import <Foundation/Foundation.h> @interface NSObject (TLKVO) typedef void(^TLObservingBlock)(id newValue); - (void)observeWithBlock:(TLObservingBlock)block; - (void)removeObserve; - (void)addObserver:(NSObject *)observer ...
28.68
19
(translation_unit) "//\n// NSObject+TLKVO.h\n// Pods-Tourelle_Example\n//\n// Created by 朱衡 on 2018/8/11.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSObject (TLKVO)\n\ntypedef void(^TLObservingBlock)(id newValue);\n\n- (void)observeWithBlock:(TLObservingBlock)block;\n- (void)removeObserve;\n\n- (void)ad...
164
19
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.68, "nodes": 105, "errors": 0, "source_hash": "8c596ecc5f367fca16a0535350f49fe07203d7e6ed31f3116136378a6d69e589", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Fou...
12,761
c
#include <sys/socket.h> #include <sys/un.h> #include <string.h> #include <unistd.h> int create_server(const char *path) { struct sockaddr_un name_sock; int fd; name_sock.sun_family = AF_UNIX; strncpy(name_sock.sun_path, path, sizeof(name_sock.sun_path)); fd = socket(AF_UNIX, SOCK_DGRAM, 0); bind(fd, (str...
26.28
18
(translation_unit) "#include <sys/socket.h>\n#include <sys/un.h>\n#include <string.h>\n#include <unistd.h>\n\nint create_server(const char *path) {\n struct sockaddr_un name_sock;\n int fd;\n\n name_sock.sun_family = AF_UNIX;\n strncpy(name_sock.sun_path, path, sizeof(name_sock.sun_path));\n\n fd = socket(AF_UNIX,...
173
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.28, "nodes": 108, "errors": 0, "source_hash": "00985eddf40741398fe5062f7f01b2215fca63752c0d47075de00f0ae434616a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,762
c
#ifndef HT_H #define HT_H /***************************************************************************** * * File: ht.h * Author: <NAME> * Created: April 2009 * * Declarations for separate chaining hash table. * * * $Id: ht.h 4556 2013-01-13 02:20:29Z astivala $ * **************************************...
33.49
49
(translation_unit) "#ifndef HT_H\n#define HT_H\n/*****************************************************************************\n * \n * File: ht.h\n * Author: <NAME>\n * Created: April 2009\n *\n * Declarations for separate chaining hash table.\n * \n *\n * $Id: ht.h 4556 2013-01-13 02:20:29Z astivala $\n *\n *****...
228
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.49, "nodes": 152, "errors": 0, "source_hash": "c095d2797629105dae29c3292950fb6ebfb3a99f1695d738ab8ac40b25979c39", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,763
c
// // OPViewConfigModel.h // OneLoginSDK // // Created by 刘练 on 2020/2/10. // Copyright © 2020 geetest. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "OLVViewMacro.h" NS_ASSUME_NONNULL_BEGIN extern NSString * const OPHintSlideToVerifyString; extern NSString * const OPH...
23.29
164
(translation_unit) "//\n// OPViewConfigModel.h\n// OneLoginSDK\n//\n// Created by 刘练 on 2020/2/10.\n// Copyright © 2020 geetest. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "OLVViewMacro.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\nextern NSString * const OPHintSlideToVerifyS...
717
143
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 23.29, "nodes": 519, "errors": 0, "source_hash": "43623007edfecd1042f94738157d30735127a1939cf5cb55c73ca6ac1fe170c2", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Fo...
12,764
c
// // WeeklyReportContentViewController.h // OSChina // // Created by sky on 15/7/27. // Copyright (c) 2015年 bluesky. All rights reserved. // #import "HorizonalTableViewController.h" @interface WeeklyReportContentViewController : HorizonalTableViewController - (instancetype)initWithTeamID:(int)teamID; @end
27.36
11
(translation_unit) "//\n// WeeklyReportContentViewController.h\n// OSChina\n//\n// Created by sky on 15/7/27.\n// Copyright (c) 2015年 bluesky. All rights reserved.\n//\n\n#import "HorizonalTableViewController.h"\n\n@interface WeeklyReportContentViewController : HorizonalTableViewController\n\n- (instancetype)initWi...
38
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.36, "nodes": 20, "errors": 0, "source_hash": "f4841e2b13bd58750dbb93fdb1d3cc0ae776b14acbaff8207c6723df899bad96", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"H...
12,765
c
#include <stdio.h> #define SIZE 4 int n = SIZE; int A[SIZE*SIZE], x[SIZE]; void hpcg(){ int i, j, sum; for(i=0; i<SIZE; i++) { sum = 0; for(j=0; j<SIZE; j++) { #ifdef CGRA_COMPILER please_map_me(); #endif sum += A[i*SIZE+j] * x[j];...
18.84
43
(translation_unit) "#include <stdio.h>\n#define SIZE 4\n\nint n = SIZE;\n\nint A[SIZE*SIZE], x[SIZE];\nvoid hpcg(){\n int i, j, sum;\n\n\n for(i=0; i<SIZE; i++) {\n sum = 0;\n for(j=0; j<SIZE; j++) {\n \n #ifdef CGRA_COMPILER\n please_map_me();\n #endif\n ...
422
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 18.84, "nodes": 260, "errors": 0, "source_hash": "c9f4b3c7140a504ce80fe54666c2a15452f2a631a56a16aa06039df971f36492", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,766
c
#ifndef FLAX_ROUND_ROBIN_SCHEDULER_H #define FLAX_ROUND_ROBIN_SCHEDULER_H #include "Flax/Scheduler.h" #include <algorithm> #include <cassert> #include <deque> namespace flax { /*! * Round robin Fiber scheduler. */ class RoundRobinScheduler : public Scheduler { public: RoundRobinScheduler() : scheduledFib...
32.84
51
(translation_unit) "#ifndef FLAX_ROUND_ROBIN_SCHEDULER_H\n#define FLAX_ROUND_ROBIN_SCHEDULER_H\n\n#include "Flax/Scheduler.h"\n\n#include <algorithm>\n#include <cassert>\n#include <deque>\n\nnamespace flax {\n\n/*!\n * Round robin Fiber scheduler.\n */\nclass RoundRobinScheduler : public Scheduler {\npublic:\n RoundR...
534
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.84, "nodes": 315, "errors": 0, "source_hash": "074276a829a3bcee2f977c92b85aec34868f2c429ecb5e7b5d5f46b078842313", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,767
c
// // TADMicrophoneDetector.h // javascriptCall // // Created by Kuan-Wei on 2016/6/28. // Copyright © 2016年 TaiwanMobile. All rights reserved. // #import <Foundation/Foundation.h> @interface TADMicrophoneDetector : NSObject @property (nonatomic) int currentDecibel; @property (nonatomic) int maxDecibel; + (inst...
27.44
16
(translation_unit) "//\n// TADMicrophoneDetector.h\n// javascriptCall\n//\n// Created by Kuan-Wei on 2016/6/28.\n// Copyright © 2016年 TaiwanMobile. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TADMicrophoneDetector : NSObject\n\n@property (nonatomic) int currentDecibel;\n@property (no...
93
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.44, "nodes": 57, "errors": 0, "source_hash": "4e738df98b4f1f3e86a9d2a69234503cbac871d4ecf2d0e18849d4af9b68b79a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
12,768
c
#include "sound.h" typedef struct sound_queue_element sound_queue_element_t; struct sound_queue_element { uint16_t frequency; uint32_t duration; sound_queue_element_t* next_element; }; static sound_queue_element_t* soundQueueHead = NULL; void _timer2_isr() { uint32_t flags = TIMER2->IFC; if(fla...
33.28
99
(translation_unit) "#include "sound.h"\n\ntypedef struct sound_queue_element sound_queue_element_t;\n\nstruct sound_queue_element {\n uint16_t frequency;\n uint32_t duration;\n sound_queue_element_t* next_element;\n};\n\nstatic sound_queue_element_t* soundQueueHead = NULL;\n\nvoid _timer2_isr()\n{\n uint32_...
735
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 33.28, "nodes": 450, "errors": 0, "source_hash": "9d8af9d8c576014f8a484f4164c9a1019cad7dbdd9fe713c86de53de8ba9b2e1", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,769
c
#pragma once #include "Actor.h" /// An Actor that is part of a Skeleton class Bone : public Actor { public: /// Constructor; sets an actor for start frame and an actor for end frame Bone(Actor startFrame, Actor endFrame); /// Default deconstructor ~Bone() {} /// Updates position and rotation bool update(double ...
23.45
20
(translation_unit) "#pragma once\n#include "Actor.h"\n\n/// An Actor that is part of a Skeleton\nclass Bone : public Actor\n{\npublic:\n /// Constructor; sets an actor for start frame and an actor for end frame\n Bone(Actor startFrame, Actor endFrame);\n /// Default deconstructor\n ~Bone() {}\n\n /// Updates position a...
92
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.45, "nodes": 47, "errors": 0, "source_hash": "798d89b81470b122a98d150f16ebc343f2fe5f9ccfb213ff8c7d9de491c102fb", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,770
c
inherit "obj/armour"; start() { set_slot("belt"); set_name("belt"); set_short("Belt of the master bard"); set_long("This belt is made of sturdy leather. It was given to\n"+ "Celebmir to honour his skills as a bard. It has a silver\n"+ "buckle shaped like a harp. The belt...
31.47
15
(translation_unit) "inherit "obj/armour";\n\nstart() {\n set_slot("belt");\n set_name("belt");\n set_short("Belt of the master bard");\n set_long("This belt is made of sturdy leather. It was given to\n"+\n "Celebmir to honour his skills as a bard. It has a silver\n"+\n "buckle ...
139
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.47, "nodes": 57, "errors": 0, "source_hash": "7db29e62d3b46d6c215f0bf1a780e35b1e0f662de905ca8ed0a5991f54ecbbac", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
12,771
c
#include "pico/stdlib.h" #define GPIO_GET(gpio) gpio_get(gpio) #define GPIO_PUT(gpio, value) gpio_put(gpio, value) #define GPIO_PUT(gpio, value) gpio_put(gpio, value) #define SLEEP_US(us) sleep_us(us) #define SLEEP_MS(us) sleep_ms(us) #define _GPIO_OUT GPIO_OUT #define _GPIO_IN GPIO_IN #define GPIO_INIT_W_DIR(gpio, ...
37.8
10
(translation_unit) "#include "pico/stdlib.h"\n\n#define GPIO_GET(gpio) gpio_get(gpio)\n#define GPIO_PUT(gpio, value) gpio_put(gpio, value)\n#define GPIO_PUT(gpio, value) gpio_put(gpio, value)\n#define SLEEP_US(us) sleep_us(us)\n#define SLEEP_MS(us) sleep_ms(us)\n#define _GPIO_OUT GPIO_OUT\n#define _GPIO_IN GPIO_IN\n\n#...
69
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.8, "nodes": 50, "errors": 0, "source_hash": "273f67a9ddeee5d1d4d491da9cc7c82bfc7f574f8bad93c162eb767fb49becca", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,772
c
/* tcap: Unix V5, V7 and BS4.2 Termcap video driver for MicroEMACS */ #define termdef 1 /* don't define "term" external */ #include <stdio.h> #include "estruct.h" #include "edef.h" #if TERMCAP #define NROW 24 #define NCOL 80 #define MARGIN 8 #define SCRSIZ 64 #define BEL 0x07 #define ESC 0x...
19.39
134
(translation_unit) "/* tcap: Unix V5, V7 and BS4.2 Termcap video driver\n for MicroEMACS\n*/\n\n#define termdef 1 /* don't define "term" external */\n\n#include <stdio.h>\n#include "estruct.h"\n#include "edef.h"\n\n#if TERMCAP\n\n#define NROW 24\n#define NCOL 80\n#define MARGIN 8\n#define SCRSIZ 64\n#de...
922
4
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 19.39, "nodes": 536, "errors": 0, "source_hash": "c6cc0d9e3fddc2fa797576b95a51f4948978a032e2c98246039fc8aaced67a83", "categorized_nodes": 338}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
12,773
c
#ifndef _PROXY_THREAD_H_ #define _PROXY_THREAD_H_ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <pthread.h> #include <vector> using namespace std; namespace ProxyThread { #define REQ_QUEUE_MAX (5) #define DATA_SIZE (32) typedef enum { EN_REQ_TYPE_E...
20.29
101
(translation_unit) "#ifndef _PROXY_THREAD_H_\n#define _PROXY_THREAD_H_\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <errno.h>\n#include <pthread.h>\n\n#include <vector>\n\nusing namespace std;\n\n\nnamespace ProxyThread {\n\n#define REQ_QUEUE_MAX (5)\n#define DATA_SIZE...
660
20
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 20.29, "nodes": 430, "errors": 0, "source_hash": "867caf500a2541cbb5fa2837802604ccc26aad38014cca94708a5a41132e0fc5", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,774
c
/******************************************************************************* * Copyright (c) 2018, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
29.03
178
(translation_unit) "/*******************************************************************************\n * Copyright (c) 2018, <NAME>.\n * All rights reserved. \n * \n * Redistribution and use in source and binary forms, with or without \n * modification, are permitted provided that the following conditions \n * are...
1,095
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 29.03, "nodes": 653, "errors": 0, "source_hash": "67297c99994be279c9fe431eb8b4ac007a5627d3be78af07fa312de8dedbd958", "categorized_nodes": 444}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,775
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "libjsonp_helper.h" #include "libjsonp_config.h" size_t jsonp_memcnt(void *m, int c, size_t n) { size_t i; unsigned char *mem = m; size_t r = 0; for(i = 0; i < n; ++i) if(mem[i] == c) ++r; return r; } void jsonp_memsh(v...
19.87
141
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n#include "libjsonp_helper.h"\n#include "libjsonp_config.h"\n\nsize_t jsonp_memcnt(void *m, int c, size_t n)\n{\n size_t i;\n unsigned char *mem = m;\n size_t r = 0;\n\n for(i = 0; i < n; ++i)\n if(mem[i] == c)\n ++...
1,148
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 19.87, "nodes": 778, "errors": 0, "source_hash": "c959cbc859f41428df01144bf5347e6c433bcdc4209c4e09679f12cbf137bbcd", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,776
c
void pong(int q); int ping() { // pong(1); return 0; } int main(int argc, char **argv) { int i; for(i = 0; i < 10; i++) { sleep(3); ping(); } return 0; }
12.62
13
(translation_unit) "void pong(int q);\n\nint ping() {\n// pong(1);\n return 0;\n}\n\nint main(int argc, char **argv) {\n int i;\n\n for(i = 0; i < 10; i++) {\n sleep(3);\n ping();\n }\n return 0;\n}\n" (declaration) "void pong(int q);" (primitive_type) "void" (function_declarator) "pong(int q)...
91
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 12.62, "nodes": 54, "errors": 0, "source_hash": "6cc83598df6a06dcda8c61f15ac773d40aeff4cc2f40c0b8279d61f18a5fceee", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void pong(...
12,777
c
#ifndef GRAPPIX_SHADER_H #define GRAPPIX_SHADER_H #include "color.h" //#include <coreutils/log.h> #include <coreutils/mat.h> #include <memory> #include <stdexcept> #include <string> #include <unordered_map> namespace grappix { using GLuint = uint32_t; using GLenum = uint32_t; using GLint = int32_t; using GLboolean =...
33.02
110
(translation_unit) "#ifndef GRAPPIX_SHADER_H\n#define GRAPPIX_SHADER_H\n\n#include "color.h"\n//#include <coreutils/log.h>\n#include <coreutils/mat.h>\n#include <memory>\n#include <stdexcept>\n#include <string>\n#include <unordered_map>\n\nnamespace grappix {\n\nusing GLuint = uint32_t;\nusing GLenum = uint32_t;\nusing...
1,082
60
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 33.02, "nodes": 623, "errors": 0, "source_hash": "93605f54e248538c90a3d41081db849f2e44ecd82fa7e764b7592d1b6cc3fb40", "categorized_nodes": 436}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,778
c
#ifdef __cplusplus extern "C" { #endif #ifndef _CFHX_DEFINES #define _CFHX_DEFINES #define E_NO_MEM() val_throw(alloc_string("out of memory")) #define THROW(x) val_throw(alloc_string(x)) #ifdef NEKO_WINDOWS # include <windows.h> # define MUTEX_CREATE(x) CRITICAL_SECTION x # define MUTEX_INIT(x) InitializeCriticalSe...
28.38
37
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#ifndef _CFHX_DEFINES\n#define _CFHX_DEFINES\n\n#define E_NO_MEM() val_throw(alloc_string("out of memory"))\n#define THROW(x) val_throw(alloc_string(x))\n\n\n#ifdef NEKO_WINDOWS\n# include <windows.h>\n# define MUTEX_CREATE(x) CRITICAL_SECTION x\n# define ...
184
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.38, "nodes": 139, "errors": 0, "source_hash": "b681bc9d97dc6dd71e9342d54939b1694ab39e802646269ade66e13d91d335c2", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
12,779
c
#pragma once //---- include section ------ #include <string> #include "TableLayout.h" #include "MapCellView.h" #include "Timer.h" #include "LevelInfo.h" //---- using section -------- using std::string; /* * EditMapView class */ class EditMapView : public GUI::TableLayout<MapCellView> { public: // edit mode enu...
27.28
64
(translation_unit) "#pragma once\n//---- include section ------\n#include <string>\n#include "TableLayout.h"\n#include "MapCellView.h"\n#include "Timer.h"\n#include "LevelInfo.h"\n\n//---- using section --------\nusing std::string;\n\n/*\n * EditMapView class\n */\nclass EditMapView \n : public GUI::TableLayout<MapCell...
386
14
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 27.28, "nodes": 215, "errors": 0, "source_hash": "b85622838a4a9a5b0c1a1ebbf4d483b4bf23820caa97e3da55f59847121f692f", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,780
c
// This file was generated automatically during the make process // and it will be remade automatically
51
2
(translation_unit) "// This file was generated automatically during the make process\n// and it will be remade automatically\n" (comment) "// This file was generated automatically during the make process" (comment) "// and it will be remade automatically"
3
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 51.0, "nodes": 0, "errors": 0, "source_hash": "3a8de8fae4b89f4de37cfc862fdc11be4520b14081fbe2d98136f51c417bd0f2", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": []...
12,781
c
char *errmsg[] = { [Enevermind] "never mind", [Eformat] "unknown format", [Eio] "I/O error", [Enomem] "server out of memory", [Enonexist] "file does not exist", [Eperm] "permission denied", [Enofilsys] "no file system device specified", [Eauth] "authentication failed", };
27.4
10
(translation_unit) "char *errmsg[] = {\n [Enevermind] "never mind",\n [Eformat] "unknown format",\n [Eio] "I/O error",\n [Enomem] "server out of memory",\n [Enonexist] "file does not exist",\n [Eperm] "permission denied",\n [Enofilsys] "no file system device specified",\n [Eauth] "authentication failed",\n};\n" (d...
95
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.4, "nodes": 41, "errors": 0, "source_hash": "2dfa5154b9309a17a22e40092ebc7161de806275717f20b43263f993b8e77e83", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char *errms...
12,782
c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
36.12
130
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */\n/*\n * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2005 The ...
522
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 36.12, "nodes": 330, "errors": 0, "source_hash": "b3aa9282c7f51ffaba77cf9d979ef4c8dbadfb77e54e20d2b6aac1dd027ee9e3", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,783
c
// // Copyright (c) 2020, <NAME> // All rights reserved. // #ifndef WEATHERSTATION_UTILS_H #define WEATHERSTATION_UTILS_H std::string doubleToString(double number) { std::ostringstream stream; stream << number; return stream.str(); } #endif //WEATHERSTATION_UTILS_H
20.38
13
(translation_unit) "//\n// Copyright (c) 2020, <NAME>\n// All rights reserved.\n//\n\n#ifndef WEATHERSTATION_UTILS_H\n#define WEATHERSTATION_UTILS_H\n\nstd::string doubleToString(double number)\n{\n std::ostringstream stream;\n stream << number;\n return stream.str();\n}\n\n#endif //WEATHERSTATION_UTILS_H\n" ...
56
2
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.38, "nodes": 32, "errors": 0, "source_hash": "049f95bd1655ae1b122ebaff0f374bf6bb6eece05576f13fa88ac3b6c7e667c5", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,784
c
#ifndef _COMBOBOX_H #define _COMBOBOX_H #pragma once #include "UIWindow.h" #include <types.hpp> class DllImport ComboBox : public UIWindow { public: ComboBox(class ComboBox const&); ComboBox(class UIWindow*, int, int, int, bool); ~ComboBox(void); class ComboBox& operator=(class ComboBox const&); ...
30.55
20
(translation_unit) "#ifndef _COMBOBOX_H\n#define _COMBOBOX_H\n\n#pragma once\n#include "UIWindow.h"\n\n#include <types.hpp>\n\nclass DllImport ComboBox : public UIWindow {\npublic:\n ComboBox(class ComboBox const&);\n ComboBox(class UIWindow*, int, int, int, bool);\n ~ComboBox(void);\n class ComboBox& opera...
216
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.55, "nodes": 141, "errors": 0, "source_hash": "91a14352716fcda1fd9a3c701ac81c15aa0840514f8ea3783dc22120c507569e", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,785
c
/* * Copyright 2008-2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
31.18
132
(translation_unit) "/*\n * Copyright 2008-2016 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by...
517
4
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 31.18, "nodes": 328, "errors": 0, "source_hash": "5f9e6f70530986879e87de27780a16707cd1dea90cf4381e2dd0958d8f976b75", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,786
c
// https://www.codewars.com/kata/57f24e6a18e9fad8eb000296 #include <stddef.h> // NULL #include <stdio.h> const size_t num_phrases = 6; const char *phrases[num_phrases] = { "not at all", "I love you", "a little", "a lot", "passionately", "madly", }; const char* how_much_i_love_you(int nb_petals) { int i...
22
16
(translation_unit) "// https://www.codewars.com/kata/57f24e6a18e9fad8eb000296\n\n#include <stddef.h> // NULL\n#include <stdio.h>\n\nconst size_t num_phrases = 6;\nconst char *phrases[num_phrases] = {\n "not at all",\n "I love you",\n "a little",\n "a lot",\n "passionately",\n "madly",\n};\n\nconst char* how_much_...
100
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.0, "nodes": 51, "errors": 0, "source_hash": "03fd50a38cc6ee9d86a08e44de0c8856e6720451dc79e7c719637c4cd070ed24", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,787
c
// // Created by marius on 15/04/2016. // #ifndef SURVIVAL_GAME_AGENT_H #define SURVIVAL_GAME_AGENT_H #include <ostream> struct Pozitie { int x, y; friend std::ostream &operator<<(std::ostream &os, const Pozitie &pozitie); }; class Agent { protected: Pozitie pozitie; unsigned char tip = '\0'; public...
29.33
27
(translation_unit) "//\n// Created by marius on 15/04/2016.\n//\n\n#ifndef SURVIVAL_GAME_AGENT_H\n#define SURVIVAL_GAME_AGENT_H\n\n#include <ostream>\n\nstruct Pozitie {\n int x, y;\n friend std::ostream &operator<<(std::ostream &os, const Pozitie &pozitie);\n};\n\nclass Agent {\nprotected:\n Pozitie pozitie;\...
286
15
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.33, "nodes": 169, "errors": 0, "source_hash": "838fed8c18b649eca4fdf4aaacd30840fd1dc12f3a5e36cdc5921fe3fdc2329e", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,788
c
#include <stdio.h> int main(void) { int shares; float commission, commission2, price, value; printf("Enter number of shares: "); scanf("%d", &shares); printf("Enter price per share: $"); scanf("%f", &price); value = price * shares; if(value < 2500.00f) { commission = 30.00f + .017f * value;...
20.39
46
(translation_unit) "#include <stdio.h>\n\nint main(void)\n{\n int shares;\n float commission, commission2, price, value;\n\n printf("Enter number of shares: ");\n scanf("%d", &shares);\n\n printf("Enter price per share: $");\n scanf("%f", &price);\n\n value = price * shares;\n \n if(value < 2500.00f)\n {\n ...
326
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 20.39, "nodes": 192, "errors": 0, "source_hash": "e20e4cd7a30ecfee9084d735ef3901d66d93ddbcbdb69db5223763c53237fd7b", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,789
c
#ifndef ALIHLTTPCSPLINE2D3D_H #define ALIHLTTPCSPLINE2D3D_H //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* See cxx source for full Copyright notice * /** @file AliHLTTPCSplin...
31.87
163
(ERROR) "#ifndef ALIHLTTPCSPLINE2D3D_H\n#define ALIHLTTPCSPLINE2D3D_H\n\n//* This file is property of and copyright by the ALICE HLT Project * \n//* ALICE Experiment at CERN, All rights reserved. *\n//* See cxx source for full Copyright notice *\n\n/** @file ...
1,587
79
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 31.87, "nodes": 992, "errors": 0, "source_hash": "67c6273059fb592cc5f28ac54355bec10d1f3ccf02ba58283cecd16d281c2b41", "categorized_nodes": 652}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ALIHLTTPCSPLINE2...
12,790
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <Foundation/NSMutableAttributedString.h> @interface NSMutableAttributedString (TFNDynamicColor) - (void)tfn_setLink; - (void)tfn_set...
37.82
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <Foundation/NSMutableAttributedString.h>\n\n@interface NSMutableAttributedString (TFNDynamicColor)\n- (void...
82
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 37.82, "nodes": 48, "errors": 0, "source_hash": "bffa87147e6d6b3bbaaeaad7bf459006b96b8dc711ed56feb13e7a40e71f79cf", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,791
c
struct stat; struct rtcdate; // system calls int fork(void); int exit(void) __attribute__((noreturn)); int wait(void); int pipe(int*); int write(int, void*, int); int read(int, void*, int); int close(int); int kill(int); int exec(char*, char**); int open(char*, int); int mknod(char*, short, short); int unlink(char*); ...
21.8
40
(translation_unit) "struct stat;\nstruct rtcdate;\n\n// system calls\nint fork(void);\nint exit(void) __attribute__((noreturn));\nint wait(void);\nint pipe(int*);\nint write(int, void*, int);\nint read(int, void*, int);\nint close(int);\nint kill(int);\nint exec(char*, char**);\nint open(char*, int);\nint mknod(char*, ...
540
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.8, "nodes": 391, "errors": 0, "source_hash": "f714e2e31902ce138890b52e31eff059a4f272ade4db8205b87fbd6fdc0f8237", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "stru...
12,792
c
#ifndef _ATCUtils_ #define _ATCUtils_ #include <ctime> // timeval #include <unistd.h> // STDIN_FILENO #include <termios.h> // tcgetattr #include <sys/select.h> // fd_set struct termios oldterm, newterm; void set_unbuffered ( void ) { tcgetattr( STDIN_FILENO, &oldterm ); newterm = old...
27.84
32
(translation_unit) "#ifndef _ATCUtils_\n#define _ATCUtils_\n\n#include <ctime> // timeval\n#include <unistd.h> // STDIN_FILENO\n#include <termios.h> // tcgetattr\n#include <sys/select.h> // fd_set\n\nstruct termios oldterm, newterm;\nvoid set_unbuffered ( void ) {\n tcgetattr( STDIN_FILEN...
238
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.84, "nodes": 144, "errors": 0, "source_hash": "f86bc85ae3d90c98de9890c6510477361b19739b2c6b401d7655444a3cc5bc67", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,793
c
#ifndef MIXNUM_H #define MIXNUM_H #include <ucw/lib.h> #include <stdint.h> #include "types.h" /*! * @abstract Library for manipulating with mixed numbers * * @discussion This file provides several useful functions for manipulating * with mixed numbers. * * */ /*! * @abstract Print mixed number to stdout with...
24.77
48
(translation_unit) "#ifndef MIXNUM_H\n#define MIXNUM_H\n\n#include <ucw/lib.h>\n#include <stdint.h>\n#include "types.h"\n\n/*!\n * @abstract Library for manipulating with mixed numbers\n *\n * @discussion This file provides several useful functions for manipulating \n * with mixed numbers.\n *\n * */\n\n/*!\n * @abstra...
187
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.77, "nodes": 129, "errors": 0, "source_hash": "f99d1b07e81bf02262b23bd1e5815548e5968eee3fc6aaa36c5d7c699e63bf58", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,794
c
/* SPDX-License-Identifier: ISC */ #include "libcfg.h" #include <string.h> #include <stdio.h> #include <ctype.h> static const cfg_param_t *find_param(rdline_t *rd, const char *name, const cfg_param_t *params, size_t count) { size_t i; for (i = 0; i < count; ++i) { if (!strcmp(params[i].key, name)) re...
22.49
77
(translation_unit) "/* SPDX-License-Identifier: ISC */\n#include "libcfg.h"\n\n#include <string.h>\n#include <stdio.h>\n#include <ctype.h>\n\nstatic const cfg_param_t *find_param(rdline_t *rd, const char *name,\n const cfg_param_t *params, size_t count)\n{\n size_t i;\n\n for (i = 0; i < count; ++i) {\n if (!s...
750
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 22.49, "nodes": 466, "errors": 0, "source_hash": "32ff891f3c609ca154d677550ad9d93375fc5f39f954e88d5f7e00313b0b6516", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,795
c
#pragma bss-name(push, "ZEROPAGE") unsigned char arg1; unsigned char arg2; unsigned char pad1; unsigned char pad1_new; unsigned char temp, i, temp_x, temp_y, temp_char, temp_attr, temp_bank; unsigned int temp_int, temp_int_x, temp_int_y; #pragma bss-name(pop)
31.5
8
(translation_unit) "#pragma bss-name(push, "ZEROPAGE")\nunsigned char arg1;\nunsigned char arg2;\nunsigned char pad1;\nunsigned char pad1_new;\nunsigned char temp, i, temp_x, temp_y, temp_char, temp_attr, temp_bank;\nunsigned int temp_int, temp_int_x, temp_int_y;\n#pragma bss-name(pop)\n" (preproc_call) "#pragma bss-...
59
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 31.5, "nodes": 44, "errors": 0, "source_hash": "d56aa500a43a759b44140d47932ec356d4df6e81fd0c4c827866ff6137bae8fb", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma bss...
12,796
c
#include "clingo/container/CBitVec.h" #include "clingo/lang/expect.h" TEMP_SLICE_DEF_C_( test, { CBitVec* vec; char const* fmt; char const* exp; } ) #define t_( ... ) ((test){__VA_ARGS__}) int main( void ) { init_tap_c_(); CBitVec* vec1 = bit_vec_from_cstr_c( "0000111111" ...
32.19
53
(translation_unit) "#include "clingo/container/CBitVec.h"\n#include "clingo/lang/expect.h"\n\nTEMP_SLICE_DEF_C_(\n test,\n {\n CBitVec* vec;\n char const* fmt;\n char const* exp;\n }\n)\n#define t_( ... ) ((test){__VA_ARGS__})\n\nint main( void )\n{\n init_tap_c_();\n\n CBitVec* vec1 = bit_vec_...
469
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 32.19, "nodes": 232, "errors": 0, "source_hash": "af796d1433d5fbbd00aa3c0ef308a3184051836f1576f1534a62d3aa67bf38fe", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,797
c
#ifndef __KEY_POINTS_DETECTOR_VALIDATOR_h_ #define __KEY_POINTS_DETECTOR_VALIDATOR_h_ // OpenCV includes #include <opencv2/core/core.hpp> // System includes #include <vector> // Local includes #include "PAW.h" using namespace std; namespace KeyPointsDetector { class Validator { public: // What type of...
36.16
79
(translation_unit) "#ifndef __KEY_POINTS_DETECTOR_VALIDATOR_h_\n#define __KEY_POINTS_DETECTOR_VALIDATOR_h_\n\n// OpenCV includes\n#include <opencv2/core/core.hpp>\n\n// System includes\n#include <vector>\n\n// Local includes\n#include "PAW.h"\n\nusing namespace std;\n\nnamespace KeyPointsDetector\n{\n\nclass Validator\...
566
31
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 36.16, "nodes": 381, "errors": 0, "source_hash": "9b2b6da830da8cf29d722ba565fc4f4351e733b682dc876fc4bfb05a031af9fd", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,798
c
#ifndef MODULEINPUT_H #define MODULEINPUT_H #include "Module.h" #include "Globals.h" #include <vector> #define MAX_MOUSE_BUTTONS 5 enum EventWindow { WE_QUIT = 0, WE_HIDE = 1, WE_SHOW = 2, WE_COUNT }; enum KEY_STATE { KEY_IDLE = 0, KEY_DOWN, KEY_REPEAT, KEY_UP }; class ModuleInput : public Module { public:...
18.93
95
(translation_unit) "#ifndef MODULEINPUT_H\n#define MODULEINPUT_H\n\n#include "Module.h"\n#include "Globals.h"\n#include <vector>\n\n#define MAX_MOUSE_BUTTONS 5\n\nenum EventWindow\n{\n WE_QUIT = 0,\n WE_HIDE = 1,\n WE_SHOW = 2,\n WE_COUNT\n};\n\nenum KEY_STATE\n{\n KEY_IDLE = 0,\n KEY_DOWN,\n KEY_REPEAT,\n KEY_UP\n};\n...
541
19
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 18.93, "nodes": 324, "errors": 0, "source_hash": "1960296253c2718aaf94df31dae55d71b126addaec2810d1ca518aa028166838", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,799