language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef JSTD_ITERATOR_H #define JSTD_ITERATOR_H #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #include <stdint.h> #include <cstddef> #include <memory> #include <type_traits> namespace jstd { // iterator stuff (from <iterator>) // iterator tags (from <iterator>) struct input_iterator_tag { //...
32.94
77
(translation_unit) "#ifndef JSTD_ITERATOR_H\n#define JSTD_ITERATOR_H\n\n#if defined(_MSC_VER) && (_MSC_VER >= 1020)\n#pragma once\n#endif\n\n#include <stdint.h>\n#include <cstddef>\n#include <memory>\n#include <type_traits>\n\nnamespace jstd {\n\n// iterator stuff (from <iterator>)\n// iterator tags (from <iterator>)\n...
534
39
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 32.94, "nodes": 348, "errors": 0, "source_hash": "7ff61eb0c8d33dcf66d19ed1ea3338313f8c2f222f4f089f696e04dfb44de49a", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
700
c
// // NSObject+Category.h // DJkit // // Created by DennisDeng on 12-8-7. // Copyright (c) 2012年 DennisDeng. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (Category) /** * Additional performSelector signatures that support up to 7 arguments. */ - (nullable id)performSelector:(no...
39.97
64
(translation_unit) "//\n// NSObject+Category.h\n// DJkit\n//\n// Created by DennisDeng on 12-8-7.\n// Copyright (c) 2012年 DennisDeng. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSObject (Category)\n\n/**\n * Additional performSelector signatures that support up to 7 arguments.\n */\...
764
72
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 39.97, "nodes": 467, "errors": 0, "source_hash": "9d1b4711308e9060bf407491e2568a53d58fed3dc9163c19e27ca3a328abd5de", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
701
c
#ifndef CABALLO_H #define CABALLO_H #include "pieza.h" class Caballo:public Pieza { public: Caballo(QString team, QGraphicsItem *parent=0); void setImage(); void moves(); }; #endif // CABALLO_H
15.92
13
(translation_unit) "#ifndef CABALLO_H \n#define CABALLO_H \n \n#include "pieza.h" \nclass Caballo:public Pieza \n{ \npublic: \n Caballo(QString team, QGraphicsItem *parent=0); \n void setImage(); \n void moves(); \n}; \n \n#endif // CABALLO_H \n" (preproc_ifdef) "#ifndef CABALLO_H \n#define CABALLO_H \n \n#i...
66
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.92, "nodes": 39, "errors": 0, "source_hash": "172c2ea383482887ad3028e4ce312559481eb6d4712ff339618ab657c38aa130", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
702
c
#ifndef _INPUT_MANAGER_H #define _INPUT_MANAGER_H #include "XboxPad.h" #include "WinKeyboard.h" #include "HashTable.h" #include <string> #include <vector> namespace ish { enum SaveOption; class DECLSPEC InputManager { private: InputManager(void); // return value options enum VALUE_TYPE { VT_POSITIVE = ...
26.05
128
(translation_unit) "#ifndef _INPUT_MANAGER_H\n#define _INPUT_MANAGER_H\n\n#include "XboxPad.h"\n#include "WinKeyboard.h"\n#include "HashTable.h"\n#include <string>\n#include <vector>\n\nnamespace ish\n{\n\nenum SaveOption;\n\nclass DECLSPEC InputManager\n{\n private:\n InputManager(void);\n\n // return value options\...
949
36
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 26.05, "nodes": 610, "errors": 0, "source_hash": "e5061b15046ce3b004c15c80867b9e77b29af7e704591d995c6f3fe59b6b832b", "categorized_nodes": 436}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
703
c
#ifndef DATABASECONNECTION_H #define DATABASECONNECTION_H #include<QSql> #include <QSqlQuery> #include<QSqlError> class databaseConnection { public: databaseConnection(); void connectToDatabase(); }; #endif // DATABASECONNECTION_H
17.14
14
(translation_unit) "#ifndef DATABASECONNECTION_H \n#define DATABASECONNECTION_H \n#include<QSql> \n#include <QSqlQuery> \n#include<QSqlError> \n \nclass databaseConnection \n{ \npublic: \n databaseConnection(); \n void connectToDatabase(); \n}; \n \n#endif // DATABASECONNECTION_H \n" (preproc_ifdef) "#ifndef DA...
44
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.14, "nodes": 27, "errors": 0, "source_hash": "b51a79e65900442268289127cc614ec04be878e10f967b475c92eaaebad7ed25", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
704
c
#ifndef DDG_REAL_H #define DDG_REAL_H namespace DDG { class Real { public: Real( double x = 0. ); // constructs real number with value x operator double( void ) const; // type cast to double void operator+=( double x ); // increment void ope...
25.86
35
(translation_unit) "#ifndef DDG_REAL_H\n#define DDG_REAL_H\n\nnamespace DDG\n{\n class Real\n {\n public:\n Real( double x = 0. );\n // constructs real number with value x\n\n operator double( void ) const;\n // type cast to double\n\n void operator+=( double x );\n ...
170
11
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.86, "nodes": 96, "errors": 0, "source_hash": "e27d79514df47fe432df6b67795a58cef57bdb6c7ab072bc1c1f467804c82416", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
705
c
#include "RNACI.h" #include "../../../src/bib.h" SEXP bib_mmprod_(SEXP x, SEXP y) { dmatrix_t in1, in2, out; const int m = nrows(x); const int n = ncols(x); const int k = ncols(y); SEXP ret; newRmat(ret, m, k, "dbl"); setmat(m, n, REAL(x), &in1); setmat(n, k, REAL(y), &in2); setmat(m, k, REAL(ret...
19.35
23
(translation_unit) "#include "RNACI.h"\n#include "../../../src/bib.h"\n\n\nSEXP bib_mmprod_(SEXP x, SEXP y)\n{\n dmatrix_t in1, in2, out;\n const int m = nrows(x);\n const int n = ncols(x);\n const int k = ncols(y);\n SEXP ret;\n newRmat(ret, m, k, "dbl");\n \n setmat(m, n, REAL(x), &in1);\n setmat(n, k, REAL(...
221
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.35, "nodes": 122, "errors": 0, "source_hash": "946b76de985cbde4438477b632015a660fa8b8234ffbcf5f89cf33640ed35d8f", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
706
c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE129_rand_83.h Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE129.label.xml Template File: sources-sinks-83.tmpl.h */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: rand Set data to resul...
25.69
61
(translation_unit) "/* TEMPLATE GENERATED TESTCASE FILE \nFilename: CWE121_Stack_Based_Buffer_Overflow__CWE129_rand_83.h \nLabel Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE129.label.xml \nTemplate File: sources-sinks-83.tmpl.h \n*/ \n/* \n * @description \n * CWE: 121 Stack Based Buffer Overflow \n * BadSo...
139
3
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.69, "nodes": 74, "errors": 0, "source_hash": "2f76f7a9a44c61c17edc9118672d9db5a1b16e88ece0d9c6dfc8143f8db0743b", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
707
c
struct myStruct { int a; int b; }; void foo(struct myStruct *s) { s->b = 123; } int main() { struct myStruct s; s.a = 77; s.b = 66; foo(&s); return s.b; }
11.21
14
(translation_unit) "struct myStruct {\n int a;\n int b;\n};\n\nvoid foo(struct myStruct *s) {\n s->b = 123;\n}\n\nint main() {\n struct myStruct s;\n s.a = 77;\n s.b = 66;\n foo(&s);\n return s.b;\n}\n" (struct_specifier) "struct myStruct {\n int a;\n int b;\n}" (struct) "struct" (type_identifier) "...
93
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 11.21, "nodes": 58, "errors": 0, "source_hash": "e583390dbc44984a7dc26df4365fdbb9f63ddc450415d625558643bfbba7b7ba", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
708
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 <UIKit/UITableViewCell.h> #import "NICell-Protocol.h" @class NSString, UIView; @interface NIDrawRectBlockCell : UITableViewCell <N...
36.3
23
(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 <UIKit/UITableViewCell.h>\n\n#import "NICell-Protocol.h"\n\n@class NSString, UIView;\n\n@interface NIDrawRe...
212
25
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.3, "nodes": 134, "errors": 0, "source_hash": "a7e509e7d5c9ab216b1b768ecf53e03016295096b92a10b816ddf6fcefcd8639", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
709
c
/* * arch/arm/mach-orion5x/rd88f6183-ap-ge-setup.c * * Marvell Orion-1-90 AP GE Reference Design Setup * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/gpi...
26.02
120
(translation_unit) "/*\n * arch/arm/mach-orion5x/rd88f6183-ap-ge-setup.c\n *\n * Marvell Orion-1-90 AP GE Reference Design Setup\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is licensed "as is" without any\n * warranty of any kind, whether express or impli...
708
12
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 26.02, "nodes": 429, "errors": 0, "source_hash": "6ab9de79b27d6daaa0fec05d74203296f3e3ad2d3dc50782f3351f5424fb6532", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
710
c
// // TLTabBarController.h // TLChat // // Created by 李伯坤 on 16/1/23. // Copyright © 2016年 李伯坤. All rights reserved. // #import <UIKit/UIKit.h> @interface TLTabBarController : UITabBarController @end
19.4
10
(translation_unit) "//\n// TLTabBarController.h\n// TLChat\n//\n// Created by 李伯坤 on 16/1/23.\n// Copyright © 2016年 李伯坤. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TLTabBarController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// TLTabBarController.h" (comment) "// TLCha...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.4, "nodes": 10, "errors": 0, "source_hash": "ceea8125efcaff83b3e2626cb9174dec9f8c64010f3dcbde771dd1679f515c9e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n\...
711
c
#include <stdio.h> int main() { int i,n,t; printf("Enter your decimal value:"); scanf("%d",&n); for(i=12;i>=0;i-=4) { t=(n>>i)&15; if(t<=10) printf("%d",t); else printf("%c",t+55); } return 0; }
15.94
16
(translation_unit) "#include <stdio.h>\nint main()\n{\n int i,n,t;\n printf("Enter your decimal value:");\n scanf("%d",&n);\n\n for(i=12;i>=0;i-=4)\n {\n t=(n>>i)&15;\n if(t<=10)\n printf("%d",t);\n else\n printf("%c",t+55);\n }\n return 0;\n\n}\n" (prep...
128
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.94, "nodes": 68, "errors": 0, "source_hash": "25cf0a17ad554783c804f3a500262825008fa7ce3e5289c201a4881229288af6", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
712
c
#pragma once #include "core/common.h" #include "core/event.h" #include "opengl_texture.h" #include "game/world.h" #include <glm/glm.hpp> #include <vector> #include <mutex> #include <atomic> namespace minecraft { struct Platform; struct Camera; struct Opengl_Shader; enum BlockFaceId : u32 { ...
37.31
117
(translation_unit) "#pragma once\n\n#include "core/common.h"\n#include "core/event.h"\n\n#include "opengl_texture.h"\n#include "game/world.h"\n\n#include <glm/glm.hpp>\n#include <vector>\n#include <mutex>\n#include <atomic>\n\nnamespace minecraft {\n\n struct Platform;\n struct Camera;\n struct Opengl_Shader;\...
833
38
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 37.31, "nodes": 530, "errors": 0, "source_hash": "6ebf52964aad8926c2a9540e552ec7d5b0638cb118fd5ab918d8c118e2fef011", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
713
c
#pragma once #include <wx/wx.h> #include "ChronoFrame.h" class App: public wxApp { public: App(); virtual bool OnInit(); };
13.33
9
(translation_unit) "#pragma once\n\n#include <wx/wx.h>\n#include "ChronoFrame.h"\n\nclass App: public wxApp\n{\npublic:\n App();\n virtual bool OnInit();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <wx/wx.h>\n" (#include) "#inclu...
45
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.33, "nodes": 24, "errors": 0, "source_hash": "143bc107bd3d161be8e2026893fe4aa5b9f42d87391418d3fc6b736adc990ab4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
714
c
/* * soft_spi.h * * Created on: 2016-06-25 * Author: <NAME> <<EMAIL>> */ #ifndef SOFT_SPI_H_ #define SOFT_SPI_H_ extern unsigned char soft_spi_transmit_frame(unsigned char *p_buff, unsigned int num); extern unsigned char soft_spi_receive_frame(unsigned char *p_buff, unsigned int num); extern void soft_spi...
28.58
12
(translation_unit) "/*\n * soft_spi.h\n *\n * Created on: 2016-06-25\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef SOFT_SPI_H_\n#define SOFT_SPI_H_\n\nextern unsigned char soft_spi_transmit_frame(unsigned char *p_buff, unsigned int num);\nextern unsigned char soft_spi_receive_frame(unsigned char *p_buff, unsigned ...
72
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.58, "nodes": 58, "errors": 0, "source_hash": "79d98830dbe299564b93dbcf2b171135d797677cf788c15cfeca7f3e1ca1fa96", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
715
c
/* Copyright 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in suppor...
29.76
96
(translation_unit) "/*\n\nCopyright 1988, 1998 The Open Group\n\nPermission to use, copy, modify, distribute, and sell this software and its\ndocumentation for any purpose is hereby granted without fee, provided that\nthe above copyright notice appear in all copies and that both that\ncopyright notice and this permiss...
475
1
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 29.76, "nodes": 260, "errors": 0, "source_hash": "d5097513d83ad1701701cf6953e4dfe521ca1102a4cc6bdc7c2e1988df932c2c", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
716
c
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2013 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in th...
27.11
80
(translation_unit) "/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */\n/*\n * Copyright (c) 2013\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation;\n *\n * This ...
225
12
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 27.11, "nodes": 126, "errors": 0, "source_hash": "6b0e31fa5383b501146a58a8824d7655467995a2266bf0e3869793743130d930", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
717
c
/* Generated by RuntimeBrowser Image: /System/Library/TextInput/libTextInputCore.dylib */ @interface TIWordSearchOperation : NSOperation - (void)main; - (void)perform; @end
24.29
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/TextInput/libTextInputCore.dylib\n */\n\n@interface TIWordSearchOperation : NSOperation\n\n- (void)main;\n- (void)perform;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/TextInput/libTextInputCore.dylib\n */...
31
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.29, "nodes": 19, "errors": 0, "source_hash": "1046a2843edc5be78c1880bc0a1fd0df0c04a3a40ddfcd05779f2f4d8f47be73", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface TIWordS...
718
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "loadelf.h" #include "loader.h" #include "packet.h" #include "PLoadLib.h" #include "p1image.h" #include "p2image.h" #include "osint.h" uint8_t *BuildInternalImage(BoardConfig *config, ElfContext *c, uint32_t *pStart, int *pImageSize, int *pCogImagesSi...
30.72
108
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "loadelf.h"\n#include "loader.h"\n#include "packet.h"\n#include "PLoadLib.h"\n#include "p1image.h"\n#include "p2image.h"\n#include "osint.h"\n\nuint8_t *BuildInternalImage(BoardConfig *config, ElfContext *c, uint32_t *pStart, int...
867
1
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 30.72, "nodes": 531, "errors": 0, "source_hash": "10195a67abdf18b373a14e5918ee9beeb1fc1ebdfe97afbfc9a9033c8f487246", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
719
c
#pragma once #include "BaseApplication.h" #include <Ogre.h> #include "accidentalnoise/include/anl.h" using namespace anl; enum class BlockType { Air, Grass, Soil, Rock, Max }; typedef unsigned char LightValue; #define lengthof(x) (sizeof(x) / sizeof(*(x))) struct Block { BlockType type; LightValue light; }; st...
30.85
92
(translation_unit) "#pragma once\n\n#include "BaseApplication.h"\n#include <Ogre.h>\n#include "accidentalnoise/include/anl.h"\n\nusing namespace anl;\n\nenum class BlockType {\n Air, Grass, Soil, Rock, Max\n};\n\ntypedef unsigned char LightValue;\n#define lengthof(x) (sizeof(x) / sizeof(*(x)))\n\nstruct Block {\n Block...
964
20
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 30.85, "nodes": 555, "errors": 0, "source_hash": "e0c3b6d7b19aea53b17d11f41a040d6c86e75639693af9fff3d3f0967d0bd487", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
720
c
// WimHandler.h #ifndef __ARCHIVE_WIM_HANDLER_H #define __ARCHIVE_WIM_HANDLER_H #include "../../../Common/MyCom.h" #include "WimIn.h" namespace NArchive { namespace NWim { static const Int32 kNumImagesMaxUpdate = (1 << 10); class CHandler: public IInArchive, public IArchiveGetRawProps, public IArchiveGetRo...
28.89
83
(translation_unit) " WimHandler.h\n\n#ifndef __ARCHIVE_WIM_HANDLER_H\n#define __ARCHIVE_WIM_HANDLER_H\n\n#include "../../../Common/MyCom.h"\n\n#include "WimIn.h"\n\nnamespace NArchive {\nnamespace NWim {\n\nstatic const Int32 kNumImagesMaxUpdate = (1 << 10);\n\nclass CHandler:\n public IInArchive,\n public IArchiveGe...
564
15
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 28.89, "nodes": 358, "errors": 0, "source_hash": "639fff1bc9d4541d47c057a9ed387c9ddc3c5cb0943b2730f07cfea6f3c90413", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "fndef __ARCHIV...
721
c
#ifndef SIMPLEFVM_FVMSOLVER_COEFFSPARTSCOMMON_CELLNUMBERS_CELLNUMSSETS_H #define SIMPLEFVM_FVMSOLVER_COEFFSPARTSCOMMON_CELLNUMBERS_CELLNUMSSETS_H #include <memory> #include "FVMSolver/Tools/LocalAdt/MapAdt.cpp" #include "FVMSolver/Tools/DataSets/SetsCreator.cpp" #include "FVMSolver/DataReciever/DataManager.h" #includ...
37.31
26
(translation_unit) "#ifndef SIMPLEFVM_FVMSOLVER_COEFFSPARTSCOMMON_CELLNUMBERS_CELLNUMSSETS_H\n#define SIMPLEFVM_FVMSOLVER_COEFFSPARTSCOMMON_CELLNUMBERS_CELLNUMSSETS_H\n\n#include <memory>\n\n#include "FVMSolver/Tools/LocalAdt/MapAdt.cpp"\n#include "FVMSolver/Tools/DataSets/SetsCreator.cpp"\n#include "FVMSolver/DataReci...
156
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 37.31, "nodes": 95, "errors": 0, "source_hash": "5a75bce6aa9c844e51028b7c9110cc91e85d5fa88d0acd89ee3653064df471ba", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
722
c
#pragma once #include "Entity.h" namespace Violet { class VIOLET_API Script { public: virtual ~Script() = default; template<typename T> T& getComponent() { return m_entity.getComponent<T>(); } template<typename T> bool hasComponent() { return m_entity.hasComponent<T>(); } protected: virtu...
21.28
25
(translation_unit) "#pragma once\n#include "Entity.h"\n\nnamespace Violet {\n \n class VIOLET_API Script {\n public:\n virtual ~Script() = default;\n\n template<typename T>\n T& getComponent() {\n return m_entity.getComponent<T>();\n }\n\n template<typename T>\n bool hasComponent() {\n return m_entity.hasComp...
167
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.28, "nodes": 100, "errors": 0, "source_hash": "6b4577e333ec9d4a0c8f9a23129eb2191f558131a2f9ae235a1b064323b1f236", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
723
c
#pragma once #include "common/ForwardDecl.h" #include "gui/objects/Color.h" #include "gui/objects/Point.h" #include "objects/geometry/Vector.h" #include "objects/utility/EnumMap.h" #include "objects/wrappers/ExtendedEnum.h" #include "objects/wrappers/Function.h" #include "system/Settings.h" NAMESPACE_SPH_BEGIN enum ...
29.17
182
(ERROR) "#pragma once\n\n#include "common/ForwardDecl.h"\n#include "gui/objects/Color.h"\n#include "gui/objects/Point.h"\n#include "objects/geometry/Vector.h"\n#include "objects/utility/EnumMap.h"\n#include "objects/wrappers/ExtendedEnum.h"\n#include "objects/wrappers/Function.h"\n#include "system/Settings.h"\n\nNAMESP...
1,003
30
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.17, "nodes": 630, "errors": 0, "source_hash": "06fe41852670d3e362afe7f12967d730c4d69fea20d9c81d979d783a2155d2cb", "categorized_nodes": 507}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include...
724
c
#include <stdio.h> /* Add `int max_of_four(int a, int b, int c, int d)` here. */ int max_of_four(int a, int b, int c, int d); int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); int ans = max_of_four(a, b, c, d); printf("%d", ans); return 0; } int max_of_four(int a, int b, int...
21.91
23
(translation_unit) "#include <stdio.h>\n/*\nAdd `int max_of_four(int a, int b, int c, int d)` here.\n*/\n\nint max_of_four(int a, int b, int c, int d);\n\nint main() {\n int a, b, c, d;\n scanf("%d %d %d %d", &a, &b, &c, &d);\n int ans = max_of_four(a, b, c, d);\n printf("%d", ans);\n \n return 0;\n}\...
214
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.91, "nodes": 127, "errors": 0, "source_hash": "b4b1d67a44c87886887adb1783aad569bd0ddb0f1b2f407b2d76e0472a753b3e", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
725
c
#ifndef _LED_H #define _LED_H #include "stm32f1xx_hal.h" #define LED1(a) if(a) \ HAL_GPIO_WritePin(GPIOC,GPIO_PIN_12,GPIO_PIN_RESET);\ else \ HAL_GPIO_WritePin(GPIOC,GPIO_PIN_12,GPIO_PIN_SET); #define LED2(a) if(a) \ HAL_GPIO_WritePin(GPIOD,GPIO_PIN_2,GPIO_PIN_RESET);\ els...
40.14
21
(translation_unit) "#ifndef _LED_H\n#define _LED_H\n\n#include "stm32f1xx_hal.h"\n\n\n#define LED1(a) if(a) \\n HAL_GPIO_WritePin(GPIOC,GPIO_PIN_12,GPIO_PIN_RESET);\\n else \\n HAL_GPIO_WritePin(GPIOC,GPIO_PIN_12,GPIO_PIN_SET);\n\n#define LED2(a) if(a) \\n HAL_GPIO_WritePin(GPIOD,GPIO_PIN...
88
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 40.14, "nodes": 71, "errors": 0, "source_hash": "b08de21dcc1553d6c3268ca7498913923de28c9c40c4fc54d9b7da4ef0d9d5e0", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
726
c
#include <stdio.h> #include "GLEStrace.h" static char s_strbuf[512]; // [FIXME] thread safe static char * get_config_attrib_name (EGLint attribute) { switch (attribute) { case EGL_ALPHA_SIZE : return "EGL_ALPHA_SIZE"; case EGL_ALPHA_MASK_SIZE : return "EGL_ALPHA_MASK_SIZE"; case EGL_B...
40.02
48
(translation_unit) "#include <stdio.h>\n#include "GLEStrace.h"\n\n\nstatic char s_strbuf[512]; // [FIXME] thread safe\n\nstatic char *\nget_config_attrib_name (EGLint attribute)\n{\n switch (attribute)\n {\n case EGL_ALPHA_SIZE : return "EGL_ALPHA_SIZE";\n case EGL_ALPHA_MASK_SIZE : return "EGL_...
398
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 40.02, "nodes": 198, "errors": 0, "source_hash": "58b5bc577f32ce34f3a4bc4806fead29c3819bf4a553673ff19f4f9acb4d2f57", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
727
c
/** @file usbcdc.h * @brief Module to provide an USB CDC (USB serial interface) * * @page USBusage USB CDC module - usage * * This module can be used to access all Chibios-commands via a USB-UART. <br/> * * <code> * static const ShellCommand commands[] = {<br/> * { "mem", cmd_mem },<br/> * ...
26.36
89
(translation_unit) "/** @file usbcdc.h\n * @brief Module to provide an USB CDC (USB serial interface)\n *\n * @page USBusage USB CDC module - usage\n *\n * This module can be used to access all Chibios-commands via a USB-UART. <br/>\n *\n * <code>\n * static const ShellCommand commands[] = {<br/>\n * { "me...
104
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 26.36, "nodes": 63, "errors": 0, "source_hash": "3c621be95d115f5c7dc92dd0e3857fa66d7fac47057a9b06966a3dd5b977340e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
728
c
#include "INCLUDE.H" #include "Datagram.h" #include "Client.h" #include "Packet.h" #include "IP4.h" #include "IP6.h" #include "Address4.h" #include "Address6.h"
20
8
(translation_unit) "#include "INCLUDE.H" \n#include "Datagram.h" \n#include "Client.h" \n#include "Packet.h" \n#include "IP4.h" \n#include "IP6.h" \n#include "Address4.h" \n#include "Address6.h" \n \n" (preproc_include) "#include "INCLUDE.H" \n" (#include) "#include" (string_literal) ""INCLUDE.H"" (") "...
49
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.0, "nodes": 24, "errors": 0, "source_hash": "480b5c37c5538e51803d1941220ab15d2e8aee7f1446be5252dbb531543499ec", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
729
c
// Copyright 2015 The Chromium 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 CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_UTIL_H_ #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_UTIL_H_ #include "content...
43.42
19
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_UTIL_H_\n#define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_TYPE_U...
87
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 43.42, "nodes": 50, "errors": 0, "source_hash": "e49f181c845d1292e2203e86a420f18f35afb577c10b78143adcc16d3beb4aab", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
730
c
#include "test_bit_ops.h" #include "test_numeric_ops.h" int main(void) { int result = 0; result |= test_bit_ops_run_tests(); result |= test_numeric_ops_run_tests(); return result; }
21
9
(translation_unit) "#include "test_bit_ops.h"\n#include "test_numeric_ops.h"\n\nint main(void)\n{\n int result = 0;\n result |= test_bit_ops_run_tests();\n result |= test_numeric_ops_run_tests();\n return result;\n}\n" (preproc_include) "#include "test_bit_ops.h"\n" (#include) "#include" (string_l...
56
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.0, "nodes": 33, "errors": 0, "source_hash": "ba695faf91fd57b51143e4f5b97a43f9b2253c7ac54ebd2804decf2d3b94c246", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
731
c
#ifndef CWANNIER_BAND_ENERGY #define CWANNIER_BAND_ENERGY #include <stdbool.h> #include <stdio.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_sort_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_eigen.h> #include "HTightBinding.h" #include "ctetra/sum.h" double BandEnergy(double *E_Fermi, HTightBinding *Hrs...
34.75
12
(translation_unit) "#ifndef CWANNIER_BAND_ENERGY\n#define CWANNIER_BAND_ENERGY\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <gsl/gsl_vector.h>\n#include <gsl/gsl_sort_vector.h>\n#include <gsl/gsl_matrix.h>\n#include <gsl/gsl_eigen.h>\n#include "HTightBinding.h"\n#include "ctetra/sum.h"\n\ndouble BandEnergy(dou...
84
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.75, "nodes": 66, "errors": 0, "source_hash": "71bcc8e29da26c67287cbdb8ff3a1fd42393c24627d946f06b050892e2c1a0c1", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
732
c
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
30.09
54
(translation_unit) "/*===================================================================\n\nBlueBerry Platform\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without\neven the implied warranty ...
188
8
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.09, "nodes": 98, "errors": 0, "source_hash": "aad8df21aefa903abba8c3200d68ba731a8793f2e3d5b09b986d3b14c1e3bca7", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
733
c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "rbtree.h" int *get_keys(int keys_qty) { int *keys = malloc(sizeof(int) * keys_qty); srand(time(NULL)); for(int i = 0; i < keys_qty; ) { bool is_key_repeated = true; int new_key = rand(); for(int j = i - 1; j >= 0 && i...
27.15
96
(translation_unit) "#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\n#include "rbtree.h"\n \nint *get_keys(int keys_qty) {\n int *keys = malloc(sizeof(int) * keys_qty);\n\n srand(time(NULL));\n\n for(int i = 0; i < keys_qty; ) {\n bool is_key_repeated = true;\n int new_key = rand();...
945
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 27.15, "nodes": 577, "errors": 0, "source_hash": "b527d76403b7d3f1175726110070bcc1fb21e521638f0cc611c82a02d1b580c5", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
734
c
@import ctypes.bits;
20
1
(translation_unit) "@import ctypes.bits;\n" (ERROR) "@" (ERROR) "@" (declaration) "import ctypes.bits;" (type_identifier) "import" (identifier) "ctypes" (ERROR) ".bits" (.) "." (identifier) "bits" (;) ";"
10
3
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 20.0, "nodes": 6, "errors": 0, "source_hash": "bf22f03c06ae78ab868055b310b08b94a8220d08306a55ee2ed94cdd1ce37c10", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, ...
735
c
#ifndef cycle_h #define cycle_h #include "gc.h" #include <pony.h> #include <platform.h> #include <stdint.h> #include <stdbool.h> PONY_EXTERN_C_BEGIN void ponyint_cycle_create(pony_ctx_t* ctx, uint32_t min_deferred, uint32_t max_deferred, uint32_t conf_group); void ponyint_cycle_block(pony_ctx_t* ctx, pony_actor_t...
32.71
17
(translation_unit) "#ifndef cycle_h\n#define cycle_h\n\n#include "gc.h"\n#include <pony.h>\n#include <platform.h>\n#include <stdint.h>\n#include <stdbool.h>\n\nPONY_EXTERN_C_BEGIN\n\nvoid ponyint_cycle_create(pony_ctx_t* ctx, uint32_t min_deferred,\n uint32_t max_deferred, uint32_t conf_group);\n\nvoid ponyint_cycle_b...
142
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.71, "nodes": 112, "errors": 0, "source_hash": "8e4df3df82072951c6ed5b203689f6095d72cacc8ec583d92a0b05499d48b4da", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
736
c
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "KeyButton.h" #include <LibGUI/Button.h> #include <LibKeyboard/CharacterMapData.h> class KeyboardMapperWidget final : public GUI::Widget { C_OBJECT(Ke...
33.38
39
(translation_unit) "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n * Copyright (c) 2022, the SerenityOS developers.\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include "KeyButton.h"\n#include <LibGUI/Button.h>\n#include <LibKeyboard/CharacterMapData.h>\n\nclass KeyboardMapperWidget final : pub...
287
22
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 33.38, "nodes": 178, "errors": 0, "source_hash": "4861c2aa19dec22cd66d1a2e720b38fe501bbfb2d63a71341f75ce6c6375ed51", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
737
c
// // WGClassifyFilterCondition.h // WeygoIPhone // // Created by muma on 2017/1/22. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import "WGObject.h" @interface WGClassifyFilterCondition : WGObject //品牌 id @property (nonatomic, strong) NSArray *keyWordArray; //种类 @property (nonatomic, strong) NSArray ...
22.87
15
(translation_unit) "//\n// WGClassifyFilterCondition.h\n// WeygoIPhone\n//\n// Created by muma on 2017/1/22.\n// Copyright © 2017年 <EMAIL>. All rights reserved.\n//\n\n#import "WGObject.h"\n\n@interface WGClassifyFilterCondition : WGObject\n\n//品牌 id\n@property (nonatomic, strong) NSArray *keyWordArray;\n\n//种类\n@p...
68
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.87, "nodes": 43, "errors": 0, "source_hash": "e8c399df50861d16ae687b235161f8b6dd70831cc0a4bd04bae64dfd01ce692a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"WG...
738
c
// // VOKAssetCollectionsViewController.h // VOKMultiImagePicker // // Created by <NAME> on 12/8/14. // Copyright (c) 2014 VOKAL LLC. All rights reserved. // #import "VOKBaseViewController.h" @import Photos; @interface VOKAssetCollectionsViewController : VOKBaseViewController @property (nonatomic, readonly) UIT...
27.5
12
(translation_unit) "//\n// VOKAssetCollectionsViewController.h\n// VOKMultiImagePicker\n//\n// Created by <NAME> on 12/8/14.\n// Copyright (c) 2014 VOKAL LLC. All rights reserved.\n//\n\n#import "VOKBaseViewController.h"\n\n@import Photos;\n\n@interface VOKAssetCollectionsViewController : VOKBaseViewController\n\n@...
42
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.5, "nodes": 26, "errors": 0, "source_hash": "8422eeef5de0d38b183f5cb2b092bb787957528f1b647666ba5eebb464ded141", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
739
c
// // WyhArrowMenuAlertStyle.h // Arm // // Created by <NAME> on 2019/7/3. // Copyright © 2019 iTalkBB. All rights reserved. // #import <Foundation/Foundation.h> @interface WyhArrowMenuAlertStyle : NSObject @property (nonatomic, strong) UIColor *backgroundColor; @property (nonatomic, assign) BOOL showSeparateLi...
35.71
17
(translation_unit) "//\n// WyhArrowMenuAlertStyle.h\n// Arm\n//\n// Created by <NAME> on 2019/7/3.\n// Copyright © 2019 iTalkBB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface WyhArrowMenuAlertStyle : NSObject\n\n@property (nonatomic, strong) UIColor *backgroundColor;\n\n@property (nona...
136
30
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.71, "nodes": 96, "errors": 0, "source_hash": "6ec1aef572fccce4e1c8efbcdbb30930a519581ee27183f782484b8c5e09c733", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
740
c
" \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" "\n" "type Coord = sint32 ;\n" "\n" "type Bool = uint8 ;\n" "\n" "Bool True = 1 ;\n" "\n" "Bool False = 0 ;\n" "\n" "struct Place\n" " {\n" " Coord x;\n" " Coord y;\n" " Coord dx;\n" " Coord dy;\n" " \n" " Bool ok = False ;\n" " };\n" "\n" "s...
9.92
37
(translation_unit) "" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n" \n"\n"\n"\n"type Coord = sint32 ;\n"\n"\n"\n"type Bool = uint8 ;\n"\n"\n"\n"Bool True = 1 ;\n"\n"\n"\n"Bool False = 0 ;\n"\n"\n"\n"struct Place\n"\n" {\n"\n" Coord x;\n"\n" Coord y;\n"\n" Coord dx;\n"\n" Coord dy;\n"\...
182
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 9.92, "nodes": 75, "errors": 0, "source_hash": "39e6217935883729088ca66f91f857e0212412775c444cb7d27ff1b7a6e080e8", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "\" ...
741
c
// // PythonEditorView.h // Computable // // Created by <NAME> on 09.02.14. // Copyright (c) 2014 microLARGE. All rights reserved. // #import "PythonInputAccessoryView.h" #import "../EditorView.h" typedef NS_ENUM(NSUInteger, PythonEditorCommand) { PythonEditorCommandRun, }; @protocol PythonEditorDelegate; @...
27.24
21
(translation_unit) "//\n// PythonEditorView.h\n// Computable\n//\n// Created by <NAME> on 09.02.14.\n// Copyright (c) 2014 microLARGE. All rights reserved.\n//\n\n#import "PythonInputAccessoryView.h"\n#import "../EditorView.h"\n\ntypedef NS_ENUM(NSUInteger, PythonEditorCommand)\n{\n PythonEditorCommandRun,\n};\n...
99
16
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.24, "nodes": 65, "errors": 0, "source_hash": "5bfe3906b1d266f0385cea67e604d3f701a65e2467009195a7b438938818b882", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
742
c
/* errors.c <NAME> (<EMAIL>), 01 Mar 2016 FreeBSD-style copyright and disclaimer apply */ #include "errors.h" // ----------------------------------------------------------------------------- // error // ----------------------------------------------------------------------------- __thread struct optics_error o...
31.99
126
(translation_unit) "/* errors.c\n <NAME> (<EMAIL>), 01 Mar 2016\n FreeBSD-style copyright and disclaimer apply\n*/\n\n#include "errors.h"\n\n// -----------------------------------------------------------------------------\n// error\n// -----------------------------------------------------------------------------\n\...
1,238
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 31.99, "nodes": 722, "errors": 0, "source_hash": "671b60c1e801a0856b7169c39372d0ca5eaa3da6b1349e8daa4c2da2e63cc087", "categorized_nodes": 491}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
743
c
#ifdef __cplusplus extern "C" { #endif #include "tc_iot_inc.h" int tc_iot_yabuffer_init(tc_iot_yabuffer_t *yabuffer, char *buf, int len) { IF_NULL_RETURN(yabuffer, TC_IOT_NULL_POINTER); IF_NULL_RETURN(buf, TC_IOT_NULL_POINTER); IF_EQUAL_RETURN(len, 0, TC_IOT_INVALID_PARAMETER); yabuffer->data = buf; ...
34.59
63
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "tc_iot_inc.h"\n\nint tc_iot_yabuffer_init(tc_iot_yabuffer_t *yabuffer, char *buf, int len) {\n IF_NULL_RETURN(yabuffer, TC_IOT_NULL_POINTER);\n IF_NULL_RETURN(buf, TC_IOT_NULL_POINTER);\n IF_EQUAL_RETURN(len, 0, TC_IOT_INVALID_PARAMETER)...
561
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 34.59, "nodes": 353, "errors": 0, "source_hash": "ebc6429f284d1e0b892800a6f8b7d990ea492d84ae9542895fddf1dd033ad2d5", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
744
c
/* * Copyright (C) 2017 <NAME>. All Rights Reserved. */ #include "renderer_data.h" u32 findVert( vec3 tofind, vec3* to_find_in, u32 amount ) { for ( u32 i = 0; i < amount; i++ ) { if ( ( tofind[0] == to_find_in[i][0] ) && ( tofind[1] == to_find_in[i][1] ) && ( tofind[2] =...
32.75
124
(translation_unit) "/*\n * Copyright (C) 2017 <NAME>. All Rights Reserved.\n */\n\n#include "renderer_data.h"\n\nu32 findVert( vec3 tofind, vec3* to_find_in, u32 amount )\n{\n for ( u32 i = 0; i < amount; i++ ) {\n if ( ( tofind[0] == to_find_in[i][0] )\n && ( tofind[1] == to_find_in[i][1] )\n ...
1,103
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 32.75, "nodes": 642, "errors": 0, "source_hash": "523f346557e2d8c08882ed88a028dcbe4459324ad423e3885e2c55e4dbb31c75", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
745
c
/************************************************************************ File: 2D_DT_Library.c Author(s): <NAME> Created: 24 May 2000 Last Revision: $Date$ Description: $Revision$ $Log$ Copyright (c) 2000 by <NAME>, Centre for Intelligent Machines, McGill Univ...
28.75
126
(translation_unit) "/************************************************************************ \n \n File: 2D_DT_Library.c \n \n Author(s): <NAME> \n \n Created: 24 May 2000 \n \n Last Revision: $Date$ \n \n Description: \n \n $Revision$ \n \n $Log$ \n \n \n Copyright (c) 2000 by <NAME>, Centre for ...
1,592
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 28.75, "nodes": 1085, "errors": 0, "source_hash": "c21cc7d560c9931d3f8c7f33b47239478128d485e565e98e8d092f1a78c18cad", "categorized_nodes": 784}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
746
c
#pragma once case 0: return 0; #if defined(EACCES) return 5; #endif #if defined(EAGAIN) return 89; #endif #if defined(EBADF) return 6; #endif #if defined(EBADRQC) return 1; #endif #if defined(EBUSY) return 32; #endif #if defined(ECHILD) return 128; #endif #if defined(ECOMM) return 233; #endif #if defined(ECONNREFUSED) ...
12.02
131
(translation_unit) "#pragma once\ncase 0: return 0;\n#if defined(EACCES)\nreturn 5;\n#endif\n#if defined(EAGAIN)\nreturn 89;\n#endif\n#if defined(EBADF)\nreturn 6;\n#endif\n#if defined(EBADRQC)\nreturn 1;\n#endif\n#if defined(EBUSY)\nreturn 32;\n#endif\n#if defined(ECHILD)\nreturn 128;\n#endif\n#if defined(ECOMM)\nretu...
571
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 12.02, "nodes": 395, "errors": 0, "source_hash": "ada4751b3a8ac3c0d7d4e378622122ac1355e6682ebe684b5aab9d4274d87bba", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
747
c
// // CDADownloadableEntityProtocol.h // Pods // // Created by <NAME> on 13/04/16. // // #import <Foundation/Foundation.h> typedef enum{ CDADownloadableEntityStateCorrect, CDADownloadableEntityStateIncorrect }CDADownloadableEntityState; @protocol CDADownloadableEntityProtocol <NSObject> @property (nullable, non...
24.62
16
(translation_unit) "//\n// CDADownloadableEntityProtocol.h\n// Pods\n//\n// Created by <NAME> on 13/04/16.\n//\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef enum{\n CDADownloadableEntityStateCorrect,\n CDADownloadableEntityStateIncorrect\n}CDADownloadableEntityState;\n\n@protocol CDADownloadableEntityProtocol ...
75
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.62, "nodes": 52, "errors": 0, "source_hash": "d79a8e6ca5054584b89e3b2176b4fb5d9d98e335a85cb5b05919443254a5d0c6", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
748
c
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Google Inc. * Copyright (C) 2017 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of ...
28.6
94
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2014 Google Inc.\n * Copyright (C) 2017 Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Softwa...
479
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 28.6, "nodes": 305, "errors": 0, "source_hash": "d77e014b50d6f4ece1e547b0bd39db0a8f89a3cf0b1107000064585fbc21f4b3", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
749
c
/****************************************************************************** Copyright (C), 2005-2014, CVTE. ****************************************************************************** File Name : spi_common.c Version : Initial Draft Author : qiuweibo Created : 2015/9/4 Last ...
36.87
54
(translation_unit) "/******************************************************************************\n\n Copyright (C), 2005-2014, CVTE.\n\n ******************************************************************************\n File Name : spi_common.c\n Version : Initial Draft\n Author : qiuweibo\n Crea...
83
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 36.87, "nodes": 42, "errors": 0, "source_hash": "cda93d903d9d330b852672379dfd0a30d729c121db7fc9aedfaaabd2799b5f66", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
750
c
/* * See the file LICENSE for redistribution information. * * Copyright (c) 2000,2009 Oracle. All rights reserved. * */ #ifndef COMMON_UTILS_H #define COMMON_UTILS_H #ifdef __cplusplus extern "C" { #endif void dbxml_util_siginit(); int dbxml_util_interrupted(); void dbxml_util_reset_interrupted(); void dbxml_...
19.79
38
(translation_unit) "/*\n * See the file LICENSE for redistribution information.\n *\n * Copyright (c) 2000,2009 Oracle. All rights reserved.\n *\n */\n\n#ifndef COMMON_UTILS_H\n#define COMMON_UTILS_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n \nvoid dbxml_util_siginit();\nint dbxml_util_interrupted();\nvoid dbxml_u...
183
5
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 19.79, "nodes": 108, "errors": 0, "source_hash": "2c236f0b985f43807bcac6bbe05f3e8fcb8d6ca84188af66e0685d7c54795789", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef COMMON_...
751
c
/* * Copyright 2017, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #ifndef CONSTANTS_H #define CONSTANTS_H #define kAppSignature "application/x-vnd.haiku-softwareupdater" #define kSettingsFilename "SoftwareUpdater_settings" enum { ACTION_...
27.38
63
(translation_unit) "/*\n * Copyright 2017, Haiku, Inc. All Rights Reserved.\n * Distributed under the terms of the MIT License.\n *\n * Authors:\n * <NAME> <<EMAIL>>\n */\n#ifndef CONSTANTS_H\n#define CONSTANTS_H\n\n#define kAppSignature "application/x-vnd.haiku-softwareupdater"\n#define kSettingsFilename "SoftwareUpd...
360
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.38, "nodes": 263, "errors": 0, "source_hash": "03a945642a882a140aab8bce0f56c563e4a98aa6d07602c26f3858c4e1b77631", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
752
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #ifndef AZCORE_JOBS_JOBCOMPLETION_SPIN_H #define AZCORE_JOBS_JOBCOMPLETION_SPIN_H 1 #include <AzCore...
33.24
58
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.\n * \n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n#ifndef AZCORE_JOBS_JOBCOMPLETION_SPIN_H\n#define AZCORE_JOBS_JOBCOMPLETION...
196
7
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.24, "nodes": 106, "errors": 0, "source_hash": "e4e6eafe6bd483afcdc0bc84338f6b567827ceca666c622067c96c03051d5795", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
753
c
// // SPay.h // SPay // // Created by 何飞江 on 15/9/1. // Copyright (c) 2015年 何飞江. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "SPayError.h" @protocol SPayDelegate <NSObject> - (void)paymentResult:(NSString *)result error:(SPayError *)error; @end @interface SPay : N...
26.59
66
(ERROR) "//\n// SPay.h\n// SPay\n//\n// Created by 何飞江 on 15/9/1.\n// Copyright (c) 2015年 何飞江. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "SPayError.h"\n\n\n@protocol SPayDelegate <NSObject>\n\n- (void)paymentResult:(NSString *)result error:(SPayError *)error;\n\...
275
26
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 26.59, "nodes": 170, "errors": 0, "source_hash": "4ca8d4b280060265d6514c6868c966c9e0a8a1c6c3062e0fe92141dda1e4e240", "categorized_nodes": 98}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SPay.h\n// SPay\n...
754
c
#include <stdio.h> //precisa acertar a entrada da função int soma_diagonal_abaixo(int a[5][5]); int main(void) { int i,j,m,sum=0; int mat[m][m]; printf("Quantidade de colunas e linhas:\n"); scanf("%d",&mat[m][m]); soma_diagonal_abaixo(mat); return 0; } int soma_diagonal_abaixo(int mat[5][5]){ int i,j...
22.33
24
(translation_unit) "#include <stdio.h>\n//precisa acertar a entrada da função\nint soma_diagonal_abaixo(int a[5][5]);\n\nint main(void) {\n int i,j,m,sum=0;\n int mat[m][m];\n\n printf("Quantidade de colunas e linhas:\n");\n scanf("%d",&mat[m][m]);\n soma_diagonal_abaixo(mat);\n\n \nreturn 0;\n}\n\nint soma_diagona...
261
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.33, "nodes": 122, "errors": 0, "source_hash": "616eb676d776ee380c9537dcf8f24a92bf4f57f3d2736a3ece075dc72ff962b1", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
755
c
/**************************************************************************** Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
30.78
199
(translation_unit) "/****************************************************************************\n Copyright (c) 2015 Chukong Technologies Inc.\n \n http://www.cocos2d-x.org\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Sof...
1,212
46
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 30.78, "nodes": 719, "errors": 0, "source_hash": "de9b9047f9c670f380e2d55e14cd9912a604034f303de03ac51fbbb8e73fca06", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
756
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import <XXUnknownSuperclass.h> // Unknown library @class NSString; @interface WebviewAuthorizationInfo : XXUnknownSuperclass { NSString* _appId; NSString* _url; ...
29.61
28
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import <XXUnknownSuperclass.h> // Unknown library\n\n@class NSString;\n\n@interface WebviewAuthorizationInfo : XXUnknownSuperclass {\n NSSt...
231
24
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.61, "nodes": 158, "errors": 0, "source_hash": "bde4d2325ebbd7273a460255f841acf7eab9bb9e879e5803fd8ac5dd6c108488", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
757
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 MOLRUCache; @interface MOMediaSectionsCache : NSObject { long long _memoryStatus; id _memoryPressureMonitor; MOLRUCache *_mediaSectionsCache; ...
33.38
26
(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 MOLRUCache;\n\n@interface MOMediaSectionsCache : NSObject\n{\n long long _memoryStatus;\n id _memoryPressureMonitor;\n MO...
211
18
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.38, "nodes": 137, "errors": 0, "source_hash": "fe29f7d88fad5fabd9f2eeb06d38eca7eb440741da54ca97dd452d0cb5d51dfe", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
758
c
/** * @file: k_msg.c * @brief: kernel message passing routines * @author: <NAME> * @date: 2020/10/09 */ #include "k_msg.h" #ifdef DEBUG_0 #include "printf.h" #endif /* ! DEBUG_0 */ int k_mbx_create(size_t size) { #ifdef DEBUG_0 printf("k_mbx_create: size = %d\r\n", size); #endif /* DEBUG_0 */ retur...
24.35
34
(translation_unit) "/**\n * @file: k_msg.c\n * @brief: kernel message passing routines\n * @author: <NAME>\n * @date: 2020/10/09\n */\n\n#include "k_msg.h"\n\n#ifdef DEBUG_0\n#include "printf.h"\n#endif /* ! DEBUG_0 */\n\nint k_mbx_create(size_t size) {\n#ifdef DEBUG_0\n printf("k_mbx_create: size = %d\r\n", si...
201
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.35, "nodes": 118, "errors": 0, "source_hash": "92d6cdcc0359034cac5ae25123c9d0482433d72cc7bb1f199d04e95abcd1672f", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
759
c
#include "inc/data/hwaa_running_apps.h" #include <linux/hashtable.h> #include <linux/slab.h> #include "inc/base/hwaa_utils.h" static DEFINE_HASHTABLE(g_running_apps, 12); static struct running_app_t *get_running_app(uid_t uid) { struct running_app_t *running_app = NULL; hash_for_each_possible(g_running_apps, runn...
24.89
162
(translation_unit) "#include "inc/data/hwaa_running_apps.h"\n#include <linux/hashtable.h>\n#include <linux/slab.h>\n#include "inc/base/hwaa_utils.h"\n\nstatic DEFINE_HASHTABLE(g_running_apps, 12);\n\nstatic struct running_app_t *get_running_app(uid_t uid)\n{\n struct running_app_t *running_app = NULL;\n\n hash_for_each...
1,216
1
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 24.89, "nodes": 752, "errors": 0, "source_hash": "0408ccc9b29ff189e24cc66481104b3dd0ab92212bb2d809bef53e98d041220b", "categorized_nodes": 535}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
760
c
// Generated by gencpp from file camera_control_msgs/SetBrightnessResponse.msg // DO NOT EDIT! #ifndef CAMERA_CONTROL_MSGS_MESSAGE_SETBRIGHTNESSRESPONSE_H #define CAMERA_CONTROL_MSGS_MESSAGE_SETBRIGHTNESSRESPONSE_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serializatio...
34.96
183
(translation_unit) "// Generated by gencpp from file camera_control_msgs/SetBrightnessResponse.msg\n// DO NOT EDIT!\n\n\n#ifndef CAMERA_CONTROL_MSGS_MESSAGE_SETBRIGHTNESSRESPONSE_H\n#define CAMERA_CONTROL_MSGS_MESSAGE_SETBRIGHTNESSRESPONSE_H\n\n\n#include <string>\n#include <vector>\n#include <map>\n\n#include <ros/typ...
1,569
111
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 34.96, "nodes": 920, "errors": 0, "source_hash": "ec0f6b4d0f158085f15fbd92e720c801e2dfc36abb7f73ad6cec68b5cdb1f077", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
761
c
#include <stdio.h> #include <threads.h> thread_local int val = 10; // 线程本地变量 void print_var(void) { printf("var = %d\n", val); } int func(void *); // 线程回调函数 int main(void) { thrd_t th1; if (thrd_create(&th1, func, NULL) != thrd_success) { fprintf(stderr, "Error creating thread.\n"); return 0xff; } ...
23.22
23
(translation_unit) "#include <stdio.h>\n#include <threads.h>\n\nthread_local int val = 10; // 线程本地变量\n\nvoid print_var(void) { printf("var = %d\n", val); }\n\nint func(void *); // 线程回调函数\n\nint main(void) {\n thrd_t th1;\n if (thrd_create(&th1, func, NULL) != thrd_success) {\n fprintf(stderr, "Error creating threa...
200
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.22, "nodes": 108, "errors": 0, "source_hash": "f993fc7696f3cf50a22eb301e9bcc3dd3e34c56aed55b1ef657079e532289364", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
762
c
#ifndef TTF_RENDER_H #define TTF_RENDER_H #include <tiny3d.h> int TTFLoadFont(int set, char * path, void * from_memory, int size_from_memory); void TTFUnloadFont(); void TTF_to_Bitmap(u8 chr, u8 * bitmap, short *w, short *h, short *y_correction); int Render_String_UTF8(u16 * bitmap, int w, int h, u8 *string, int s...
39.12
25
(translation_unit) "#ifndef TTF_RENDER_H\n#define TTF_RENDER_H\n\n#include <tiny3d.h>\n\n\nint TTFLoadFont(int set, char * path, void * from_memory, int size_from_memory);\nvoid TTFUnloadFont();\n\nvoid TTF_to_Bitmap(u8 chr, u8 * bitmap, short *w, short *h, short *y_correction);\n\nint Render_String_UTF8(u16 * bitmap, ...
239
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 39.12, "nodes": 183, "errors": 0, "source_hash": "3ab66048e218c6ffd07c4f4d4fe9c64df6d1ac0e4713f3467dadde8bf40c3ec4", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
763
c
#include <stdio.h> int main() { int cha, a, b, c, d, e, resposta; scanf("%d", &cha); scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (cha == a) resposta++; if (cha == b) resposta++; if (cha == c) resposta++; if (cha == d) resposta++; if (cha == e) resposta++; printf("%d\n", resposta); return 0; }
23.46
13
(translation_unit) "#include <stdio.h>\n\nint main() {\n int cha, a, b, c, d, e, resposta;\n scanf("%d", &cha);\n scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);\n if (cha == a) resposta++;\n if (cha == b) resposta++;\n if (cha == c) resposta++;\n if (cha == d) resposta++;\n if (cha == e) resposta++;\n printf("%d...
164
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.46, "nodes": 90, "errors": 0, "source_hash": "9ae07b006af7db8c7bfe5e557b99930953cb73fcd63caebe905549d7e599767c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
764
c
#include <stdio.h> int main (){ /* 32. Leia um numero inteiro e imprima a soma do sucessor de seu triplo com o antecessor de ´ seu dobro. */ int n; printf ("Digite um numero inteiro: "); scanf ("%d", &n); printf ("Numero digitado: %d \nSucessor de seu tripo: %d \nAntecessor de seu d...
31.31
13
(translation_unit) "#include <stdio.h>\n\nint main (){\n\n /*\n 32. Leia um numero inteiro e imprima a soma do sucessor de seu triplo com o antecessor de ´\n seu dobro.\n */\n\n int n;\n\n printf ("Digite um numero inteiro: ");\n scanf ("%d", &n);\n\n printf ("Numero digitado: %d \nSucessor de s...
114
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.31, "nodes": 60, "errors": 0, "source_hash": "336e4f20ec48faea2f26073bfa63df6697c9e62890c4fbce04ac9022765d0030", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
765
c
/* * BoundingBoxRenderer.h * * Copyright (C) 2019 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #ifndef MEGAMOLCORE_BOUNDINGBOXRENDERER_H_INCLUDED #define MEGAMOLCORE_BOUNDINGBOXRENDERER_H_INCLUDED #include "mmcore/CalleeSlot.h" #include "mmcore/CallerSlot.h" #include "mmcore/api/MegaMolCore.std...
35.54
119
(translation_unit) "/*\n * BoundingBoxRenderer.h\n *\n * Copyright (C) 2019 by Universitaet Stuttgart (VIS).\n * Alle Rechte vorbehalten.\n */\n\n#ifndef MEGAMOLCORE_BOUNDINGBOXRENDERER_H_INCLUDED\n#define MEGAMOLCORE_BOUNDINGBOXRENDERER_H_INCLUDED\n\n#include "mmcore/CalleeSlot.h"\n#include "mmcore/CallerSlot.h"\n#inc...
441
26
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 35.54, "nodes": 230, "errors": 0, "source_hash": "0a19b116a7a39b535395e288d714aa24c81d6bb94ff72af59d03b68544d92d83", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
766
c
#include "tst.h" const char *g_pszName = "b"; MY_IMPORT(int) FuncA(void); MY_EXPORT(int) FuncB(void) { return FuncA(); }
16.86
7
(translation_unit) "#include "tst.h"\nconst char *g_pszName = "b";\n\nMY_IMPORT(int) FuncA(void);\n\nMY_EXPORT(int) FuncB(void)\n{\n return FuncA();\n}\n\n" (preproc_include) "#include "tst.h"\n" (#include) "#include" (string_literal) ""tst.h"" (") """ (string_content) "tst.h" (") """ (...
61
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 16.86, "nodes": 35, "errors": 0, "source_hash": "cb267471fdd3075104c79e0263a89199aecbcafdcdcd9c0cde0e389618833ad2", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
767
c
// Copyright 2014 The Chromium 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 IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CONTROLLER_H_ #define IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CONTROLLER_H_ #import <Foun...
49
10
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CONTROLLER_H_\n#define IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CON...
26
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 49.0, "nodes": 19, "errors": 0, "source_hash": "c6cab34b73508d871163dd18a223d0409e56bea2e126f3f45e89993f3b72b2c2", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
768
c
// // Created by knavy on 02-Dec-20. // #ifndef FINAL_PROJECT_SERVERSTUB_H #define FINAL_PROJECT_SERVERSTUB_H #include <iostream> #include <vector> using namespace std; class PeerInfo { private: int peer_unique_id; std::string peer_ip; int peer_port; public: PeerInfo(); bool...
18.89
62
(translation_unit) "// \n// Created by knavy on 02-Dec-20. \n// \n \n#ifndef FINAL_PROJECT_SERVERSTUB_H \n#define FINAL_PROJECT_SERVERSTUB_H \n \n#include <iostream> \n#include <vector> \n \nusing namespace std; \n \nclass PeerInfo { \nprivate: \n int peer_unique_id; \n std::string peer_ip; \n int peer_port; \...
300
13
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 18.89, "nodes": 188, "errors": 0, "source_hash": "4e4fb8a207a4d4140ad32b5dd9a4b5d29ab3bf773970ab0e80353d37d6cc9190", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
769
c
/**************************************************************************** * Copyright (C) 2009-2015 EPAM Systems * * This file is part of Indigo toolkit. * * This file may be distributed and/or modified under the terms of the * GNU General Public License version 3 as published by the Free Software * Founda...
20.43
88
(translation_unit) "/****************************************************************************\n * Copyright (C) 2009-2015 EPAM Systems\n * \n * This file is part of Indigo toolkit.\n * \n * This file may be distributed and/or modified under the terms of the\n * GNU General Public License version 3 as published by t...
458
17
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 20.43, "nodes": 259, "errors": 0, "source_hash": "6e097592128c7de3fd07a5ba59b5fbb2c10004706621b2e0c3f09b17fdb635bc", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
770
c
#ifndef AIXA_SRC_MAINLIB_STREAM_SYNTHETIC_SYNTHETICSTREAMFACTORY_H #define AIXA_SRC_MAINLIB_STREAM_SYNTHETIC_SYNTHETICSTREAMFACTORY_H #include <mainlib/stream/StreamFactory.h> class SyntheticStreamFactory : public StreamFactory { public: SyntheticStreamFactory(const std::string& path) : StreamFactory() {} s...
38.09
11
(translation_unit) "#ifndef AIXA_SRC_MAINLIB_STREAM_SYNTHETIC_SYNTHETICSTREAMFACTORY_H\n#define AIXA_SRC_MAINLIB_STREAM_SYNTHETIC_SYNTHETICSTREAMFACTORY_H\n\n\n#include <mainlib/stream/StreamFactory.h>\n\nclass SyntheticStreamFactory : public StreamFactory {\npublic:\n SyntheticStreamFactory(const std::string& path)...
73
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 38.09, "nodes": 39, "errors": 0, "source_hash": "8bcf2802a84e46f36216117a76deebf7c04194d3112f79b9d462fa4949685806", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
771
c
#ifndef EMULATOR_H #define EMULATOR_H #include <QString> #include "elfreader.h" #include "memorymapmodel.h" #include "registermapmodel.h" class Emulator : public QObject { Q_OBJECT public: Emulator(QString filePath); ~Emulator(); QString nextInstruction(); RegisterMapModel* getRegisterMapModel(); ...
20.49
35
(translation_unit) "#ifndef EMULATOR_H\n#define EMULATOR_H\n\n#include <QString>\n#include "elfreader.h"\n#include "memorymapmodel.h"\n#include "registermapmodel.h"\n\nclass Emulator : public QObject\n{\n Q_OBJECT\npublic:\n Emulator(QString filePath);\n ~Emulator();\n QString nextInstruction();\n Regist...
207
3
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.49, "nodes": 127, "errors": 0, "source_hash": "23a9ff0a56b9e2a4e42101ddd4852e7b64473ef97ffc93c1980cf8c8df83c284", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
772
c
/* * Copyright 2013–2020 Kullo GmbH * * This source code is licensed under the 3-clause BSD license. See LICENSE.txt * in the root directory of this source tree for details. */ #pragma once #include <cstdint> #include <string> namespace DesktopUtil { class KulloVersion { public: KulloVersion(const std::stri...
35.94
36
(translation_unit) "/*\n * Copyright 2013–2020 Kullo GmbH\n *\n * This source code is licensed under the 3-clause BSD license. See LICENSE.txt\n * in the root directory of this source tree for details.\n */\n#pragma once\n\n#include <cstdint>\n#include <string>\n\nnamespace DesktopUtil {\n\nclass KulloVersion\n{\npubli...
273
21
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.94, "nodes": 178, "errors": 0, "source_hash": "3c88a1788e224a587d35072e73592bf78d941839fb090ae54a5773624128b6d8", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
773
c
/* * libm/acosf.c */ #include <xboot/module.h> #include <math.h> static const float one = 1.0000000000e+00, pi = 3.1415925026e+00, pio2_hi = 1.5707962513e+00, pio2_lo = 7.5497894159e-08, pS0 = 1.6666667163e-01, pS1 = -3.2556581497e-01, pS2 = 2.0121252537e-01, pS3 = -4.0055535734e-02, pS4 = 7.9153501429e-04...
21.73
74
(translation_unit) "/*\n * libm/acosf.c\n */\n\n#include <xboot/module.h>\n#include <math.h>\n\nstatic const float\n one = 1.0000000000e+00,\n pi = 3.1415925026e+00,\n pio2_hi = 1.5707962513e+00,\n pio2_lo = 7.5497894159e-08,\n pS0 = 1.6666667163e-01,\n pS1 = -3.2556581497e-01,\n pS2 = 2.0121252537e-01,\n pS3 = -4.0055...
789
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 21.73, "nodes": 561, "errors": 0, "source_hash": "79efc0c8811a792db33bb3b05f88d918fac98004ec4199f28c03cf414014ae72", "categorized_nodes": 395}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
774
c
#ifndef PERSISTENCIA_H_ #define PERSISTENCIA_H_ #include<iostream> #include<string> #include<fstream> #include"Matriz.h" class Persistencia{ public: Persistencia(); Persistencia(std::string const &nomeArquivo); ~Persistencia(){}; static void atribuirMatrizArquivo(Matriz const &matriz,...
27.95
21
(translation_unit) "#ifndef PERSISTENCIA_H_\n#define PERSISTENCIA_H_\n#include<iostream>\n#include<string>\n#include<fstream>\n#include"Matriz.h"\n\nclass Persistencia{\n public:\n Persistencia();\n Persistencia(std::string const &nomeArquivo);\n ~Persistencia(){};\n \n static void atribuirMa...
144
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.95, "nodes": 73, "errors": 0, "source_hash": "87cbd244bd223e4d7de8d6afdd589a2ad42cbcd49a75833275be04e6196eabe9", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
775
c
/* $Id$ */ /* * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* Author: <NAME> */ #include "pc.h" void _nfa(int bool) { if (!bool) _trp(EFUNASS); }
21.08
12
(translation_unit) "/* $Id$ */\n/*\n * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.\n * See the copyright notice in the ACK home directory, in the file "Copyright".\n */\n\n/* Author: <NAME> */\n\n#include "pc.h"\n\nvoid _nfa(int bool)\n{\n if (!bool)\n _trp(EFUNASS);\n}\n" (comment) "/*...
39
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.08, "nodes": 20, "errors": 0, "source_hash": "127edc001cc3911b01a46cd0e9556006b50e556fd2e41dededa1ee104abefcc4", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
776
c
#define alv 0x00000001 #define apr 0x00000002 #define bck 0x00000004 #define blb 0x00000008 #define cnt 0x00000010 #define dnt 0x00000020 #define fnt 0x00000040 #define frc 0x00000080 #define glt 0x00000100 #define hgh 0x00000200 #define lat 0x00000400 #define lbd 0x00000800 #define lbv 0x00001000 #define lmd 0x0000200...
29.97
31
(translation_unit) "#define alv 0x00000001\n#define apr 0x00000002\n#define bck 0x00000004\n#define blb 0x00000008\n#define cnt 0x00000010\n#define dnt 0x00000020\n#define fnt 0x00000040\n#define frc 0x00000080\n#define glt 0x00000100\n#define hgh 0x00000200\n#define lat 0x00000400\n#define lbd 0x00000800\n#define lbv ...
121
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.97, "nodes": 120, "errors": 0, "source_hash": "38782b840ca269316106e6d56deda4916edf617b238c2577da147c5a72e6b0b9", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define a...
777
c
//-------------------------------------------------------------------------------------- // SimpleLightingUWP.h // // Advanced Technology Group (ATG) // Copyright (C) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #pragma once...
31.57
93
(translation_unit) "//-------------------------------------------------------------------------------------- \n// SimpleLightingUWP.h \n// \n// Advanced Technology Group (ATG) \n// Copyright (C) Microsoft Corporation. All rights reserved. \n//-----------------------------------------------------------------------------...
568
34
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 31.57, "nodes": 340, "errors": 0, "source_hash": "7347a79dafe67071f800dabd50d87962909c51735d1a23032d56301566af7541", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
778
c
#pragma once #include "unirender/ShaderType.h" #include <shadertrans/ShaderTrans.h> namespace ur { class Adaptor { public: static shadertrans::ShaderStage ToShaderTransStage(ShaderType type); }; // Adaptor }
18
11
(translation_unit) "#pragma once\n\n#include "unirender/ShaderType.h"\n\n#include <shadertrans/ShaderTrans.h>\n\nnamespace ur\n{\n\nclass Adaptor\n{\npublic:\n static shadertrans::ShaderStage ToShaderTransStage(ShaderType type);\n\n}; // Adaptor\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
48
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.0, "nodes": 25, "errors": 0, "source_hash": "41642e2c96a61daefe8a96d10944ec7b783f8f0c9d2fdaf88fc6ccfaa7a24440", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
779
c
/* packet-eapol.c * Routines for EAPOL 802.1X authentication header disassembly * (From IEEE Draft P802.1X/D11; is there a later draft, or a * final standard? If so, check it.) * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can red...
36.86
294
(translation_unit) "/* packet-eapol.c\n * Routines for EAPOL 802.1X authentication header disassembly\n * (From IEEE Draft P802.1X/D11; is there a later draft, or a\n * final standard? If so, check it.)\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 1998 <NAME>\n *\n * This program ...
2,112
2
{"language": "c", "success": true, "metadata": {"lines": 294, "avg_line_length": 36.86, "nodes": 1115, "errors": 0, "source_hash": "48fcceed78eac98a9a9068073ecc70e873a440e9bed31026d55e656e88d3c664", "categorized_nodes": 753}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
780
c
#pragma once #include "ParamsWidgets.h" #include "TFEditor.h" #include "VSection.h" class TFMapGroupWidget; class TFMapInfoGroupWidget; class TFMappingRangeSelector; class TFOpacityMap; class TFHistogramMap; class TFColorMap; class TFIsoValueMap; namespace VAPoR { class DataMgr; class ParamsMgr; class RenderParams; ...
29.91
35
(translation_unit) "#pragma once\n\n#include "ParamsWidgets.h"\n#include "TFEditor.h"\n#include "VSection.h"\n\nclass TFMapGroupWidget;\nclass TFMapInfoGroupWidget;\nclass TFMappingRangeSelector;\nclass TFOpacityMap;\nclass TFHistogramMap;\nclass TFColorMap;\nclass TFIsoValueMap;\n\nnamespace VAPoR {\nclass DataMgr;\nc...
185
7
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.91, "nodes": 113, "errors": 0, "source_hash": "6d05d31463ecb64a9afecaf1d50ad9d9a81af42b734cf9b0100cffe2f9ce87ce", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
781
c
// Copyright 2016 The Chromium 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 SlotScopedTraversal_h #define SlotScopedTraversal_h #include "core/CoreExport.h" namespace blink { class Element; class HTMLSlotElement; class...
35.57
21
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SlotScopedTraversal_h\n#define SlotScopedTraversal_h\n\n#include "core/CoreExport.h"\n\nnamespace blink {\n\nclass Element...
165
8
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.57, "nodes": 83, "errors": 0, "source_hash": "2c243c0f8b7714473cb8539e4efac161834eb9305aa15f9d0c7cdf78d824d72d", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
782
c
/* * $Id: TransportClient.h 6893 2015-01-29 15:27:49Z wilsonj $ * * * Distributed under the OpenDDS License. * See: http://www.opendds.org/license.html */ #ifndef OPENDDS_DCPS_TRANSPORT_CLIENT_H #define OPENDDS_DCPS_TRANSPORT_CLIENT_H #include "dds/DCPS/dcps_export.h" #include "TransportConfig_rch.h" #include "...
37.86
238
(translation_unit) "/*\n * $Id: TransportClient.h 6893 2015-01-29 15:27:49Z wilsonj $\n *\n *\n * Distributed under the OpenDDS License.\n * See: http://www.opendds.org/license.html\n */\n\n#ifndef OPENDDS_DCPS_TRANSPORT_CLIENT_H\n#define OPENDDS_DCPS_TRANSPORT_CLIENT_H\n\n#include "dds/DCPS/dcps_export.h"\n#include "T...
1,618
75
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 37.86, "nodes": 931, "errors": 0, "source_hash": "3272627cb5bf897f92fb67bd114bb295688577963e3091b19de6dd477a16141a", "categorized_nodes": 684}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
783
c
#pragma once #include <functional> #ifndef _MSC_VER #define __thiscall #endif namespace vczh { template<typename TResult, typename ...TArgs> class YBuilder { private: std::function<TResult(std::function<TResult(TArgs...)>, TArgs...)> partialLambda; public: YBuilder(std::function<TResult(std::function<TResu...
30.79
53
(translation_unit) "#pragma once\n\n#include <functional>\n\n#ifndef _MSC_VER\n#define __thiscall\n#endif\n\nnamespace vczh\n{\n template<typename TResult, typename ...TArgs>\n class YBuilder\n {\n private:\n std::function<TResult(std::function<TResult(TArgs...)>, TArgs...)> partialLambda;\n\n public:\n YBuilder(std:...
584
66
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 30.79, "nodes": 353, "errors": 0, "source_hash": "b43d271e2f5e609c3ce29c79082b48b94338cc7547f93109b84ca7abcf6e5988", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
784
c
#ifndef _ANIMATION2DDATA_H_ #define _ANIMATION2DDATA_H_ #include "CA_Export.h" #include "Datas/FrameData.h" #include "Datas/AnimationData.h" #include <cereal/access.hpp> namespace CasaEngine { class CA_EXPORT Animation2DData : public AnimationData { public: Animation2DData(); Animation2DData(const Animation...
24.82
38
(translation_unit) "#ifndef _ANIMATION2DDATA_H_\n#define _ANIMATION2DDATA_H_\n\n#include "CA_Export.h"\n#include "Datas/FrameData.h"\n#include "Datas/AnimationData.h"\n\n#include <cereal/access.hpp>\n\nnamespace CasaEngine\n{\n class CA_EXPORT Animation2DData :\n public AnimationData\n {\n public:\n Animation2DData()...
337
21
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.82, "nodes": 183, "errors": 0, "source_hash": "fb7ed207c92c354dac767a4f2b9f3279d1f0132ddd93c55e7e2e1bce46d90828", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
785
c
/* * Copyright (c) 2021 BrainCo Inc. * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT st_stm32_hsem_mailbox #include <zephyr/device.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/ipm.h> #include <zephyr/drivers/clock_control/stm32_clock_control.h> #include "stm32_hsem.h" #...
34.07
168
(translation_unit) "/*\n * Copyright (c) 2021 BrainCo Inc.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#define DT_DRV_COMPAT st_stm32_hsem_mailbox\n\n#include <zephyr/device.h>\n#include <zephyr/drivers/clock_control.h>\n#include <zephyr/drivers/ipm.h>\n#include <zephyr/drivers/clock_control/stm32_clock_control...
1,042
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 34.07, "nodes": 654, "errors": 0, "source_hash": "09f772d9c30682a8d84da4dfdd8eefe9114a6145c92a84f0c7ae124dc5bbbf75", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
786
c
/* * Classic "Hello, world" demonstration program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: GPL-2.0 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Soft...
29.55
60
(translation_unit) "/*\n * Classic "Hello, world" demonstration program\n *\n * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved\n * SPDX-License-Identifier: GPL-2.0\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as pub...
271
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.55, "nodes": 162, "errors": 0, "source_hash": "513f2c915619cbd35783beee45ce5cd1c72040adae58d8192244217d1cae023f", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
787
c
// ============================================================================= // High Performance ParalleX Library (libhpx) // // Copyright (c) 2013-2017, Trustees of Indiana University, // All rights reserved. // // This software may be modified and distributed under the terms of the BSD // license. See the C...
33.3
69
(translation_unit) "// =============================================================================\n// High Performance ParalleX Library (libhpx)\n//\n// Copyright (c) 2013-2017, Trustees of Indiana University,\n// All rights reserved.\n//\n// This software may be modified and distributed under the terms of the B...
613
6
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.3, "nodes": 360, "errors": 0, "source_hash": "a8bb2d4d9a3fee9f4374d11931cdfcf91cb3d0bbe2de5293b25a50d26e089b60", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
788
c
#include <linux/config.h> #include <linux/module.h> #include <asm/io.h> #include <asm/arch/svinto.h> /* Export shadow registers for the CPU I/O pins */ EXPORT_SYMBOL(genconfig_shadow); EXPORT_SYMBOL(port_pa_data_shadow); EXPORT_SYMBOL(port_pa_dir_shadow); EXPORT_SYMBOL(port_pb_data_shadow); EXPORT_SYMBOL(port_pb_dir_s...
32.33
15
(translation_unit) "#include <linux/config.h>\n#include <linux/module.h>\n#include <asm/io.h>\n#include <asm/arch/svinto.h>\n\n/* Export shadow registers for the CPU I/O pins */\nEXPORT_SYMBOL(genconfig_shadow);\nEXPORT_SYMBOL(port_pa_data_shadow);\nEXPORT_SYMBOL(port_pa_dir_shadow);\nEXPORT_SYMBOL(port_pb_data_shadow)...
87
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.33, "nodes": 48, "errors": 0, "source_hash": "5fe51bed94039ce55d6e293c69f47dafe5f962ac551e231cdf1066f5c70a1db0", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
789
c
#ifndef REPORTMANAGER_H #define REPORTMANAGER_H /************************************************************************** ReportManager.h **************************************************************************/ /*Copyright 2002-2014 e-foto team (UERJ) This file is part of e-foto. e-foto is free software...
35.47
210
(translation_unit) "#ifndef REPORTMANAGER_H\n#define REPORTMANAGER_H\n/**************************************************************************\n ReportManager.h\n**************************************************************************/\n/*Copyright 2002-2014 e-foto team (UERJ)\n This file is part of e-foto.\n\...
547
34
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 35.47, "nodes": 320, "errors": 0, "source_hash": "44095fcd4ea396156bdac074aa2f281f709b26cda1bb158f4403358503faf869", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
790
c
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * 2017 HAW Hamburg, <NAME> * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup drivers_periph * @{ * * @file * @...
23.93
122
(translation_unit) "/*\n * Copyright (C) 2016 <NAME> <<EMAIL>>\n * 2017 HAW Hamburg, <NAME>\n *\n * This file is subject to the terms and conditions of the GNU Lesser General\n * Public License v2.1. See the file LICENSE in the top level directory for more\n * details.\n */\n\n/**\n * @ingroup drivers...
720
2
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 23.93, "nodes": 438, "errors": 0, "source_hash": "b548fc335644f6d6597730fd7c6428aea189794d7e177d76f41a375cfe77d31f", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
791
c
#pragma once #include "CommonProcessors/BypassProcessor.h" #include "CommonProcessors/InputBufferProcessor.h" #include "CommonProcessors/OutputStageProcessor.h" #include "CommonProcessors/ToneFilterProcessor.h" #include "GainStageML/GainStageMLProc.h" #include "GainStageProcessors/GainStageProc.h" class ChowCentaur ...
40.1
42
(translation_unit) "#pragma once\n\n#include "CommonProcessors/BypassProcessor.h"\n#include "CommonProcessors/InputBufferProcessor.h"\n#include "CommonProcessors/OutputStageProcessor.h"\n#include "CommonProcessors/ToneFilterProcessor.h"\n\n#include "GainStageML/GainStageMLProc.h"\n#include "GainStageProcessors/GainStag...
424
23
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 40.1, "nodes": 292, "errors": 0, "source_hash": "e7d8a5afcbc59d42366f258289a75983d758196a83a12762a6eed354865a21aa", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
792
c
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ /* * Copyright(c) 2016 Intel Corporation. */ #if !defined(__RVT_TRACE_TX_H) || defined(TRACE_HEADER_MULTI_READ) #define __RVT_TRACE_TX_H #include <linux/tracepoint.h> #include <linux/trace_seq.h> #include <rdma/ib_verbs.h> #include <rdma/rdmavt_qp.h> #undef TR...
32.24
142
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */\n/*\n * Copyright(c) 2016 Intel Corporation.\n */\n#if !defined(__RVT_TRACE_TX_H) || defined(TRACE_HEADER_MULTI_READ)\n#define __RVT_TRACE_TX_H\n\n#include <linux/tracepoint.h>\n#include <linux/trace_seq.h>\n\n#include <rdma/ib_verbs.h>\n#includ...
987
41
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 32.24, "nodes": 670, "errors": 0, "source_hash": "440d05080524d3794cace162ca4224770d87ae60d9c3a1f311e3d77efeb14e4b", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
793
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * SiFive L2 Cache Controller header file * */ #ifndef __SOC_SIFIVE_L2_CACHE_H #define __SOC_SIFIVE_L2_CACHE_H extern int register_sifive_l2_error_notifier(struct notifier_block *nb); extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb); #define SIFIVE...
32.67
12
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * SiFive L2 Cache Controller header file\n *\n */\n\n#ifndef __SOC_SIFIVE_L2_CACHE_H\n#define __SOC_SIFIVE_L2_CACHE_H\n\nextern int register_sifive_l2_error_notifier(struct notifier_block *nb);\nextern int unregister_sifive_l2_error_notifier(struct notifi...
53
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.67, "nodes": 43, "errors": 0, "source_hash": "6509e102faaf5d00ab062e085249c0823d9b10275e16f8bc134e9e4b3318985f", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
794
c
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME> **********/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" #include "asrcdefs.h" #include "ngspice/sperror.h" int ASRCtemp(GENmodel *inModel, CKTcircuit *ckt) { ASRCmodel *model = (ASRCmodel *...
31.3
30
(translation_unit) "/**********\nCopyright 1990 Regents of the University of California. All rights reserved.\nAuthor: 1985 <NAME>\n**********/\n\n#include "ngspice/ngspice.h"\n#include "ngspice/cktdefs.h"\n#include "asrcdefs.h"\n#include "ngspice/sperror.h"\n\n\nint\nASRCtemp(GENmodel *inModel, CKTcircuit *ckt)\n{\n ...
210
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.3, "nodes": 121, "errors": 0, "source_hash": "ee6591de93b1f86008eb38fccedff36d01482a7b8ed793fc0af38d7131869d7c", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
795
c
// // UITextField+YXDExtension.h // YXDExtensionDemo // // Copyright © 2016年 YangXudong. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,UITextFieldInputCharacterType) { UITextFieldInputCharacterTypeDefault, //默认 不限制 UITextFieldInputCharacterTypeNumber, ...
38.52
33
(translation_unit) "//\n// UITextField+YXDExtension.h\n// YXDExtensionDemo\n//\n// Copyright © 2016年 YangXudong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger,UITextFieldInputCharacterType) {\n UITextFieldInputCharacterTypeDefault, //默认 不限制\n UITextFieldInputCha...
130
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 38.52, "nodes": 69, "errors": 0, "source_hash": "4bfec3e3fa499f48775f6042f94aea16d9be345ca27d15d7862800cd524072be", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
796
c
/**CFile**************************************************************** FileName [mpmLib.c] SystemName [ABC: Logic synthesis and verification system.] PackageName [Configurable technology mapper.] Synopsis [DSD manipulation for 6-input functions.] Author [<NAME>] Affiliation [UC Berkele...
34.33
58
(translation_unit) "/**CFile****************************************************************\n\n FileName [mpmLib.c]\n\n SystemName [ABC: Logic synthesis and verification system.]\n\n PackageName [Configurable technology mapper.]\n\n Synopsis [DSD manipulation for 6-input functions.]\n\n Author [<NAME>...
204
1
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.33, "nodes": 120, "errors": 0, "source_hash": "915e0ee03f97ead15554f0e1f9fc474ccd9084a8d3ab4f48475aad45aa2f5c7a", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
797
c
// // UIView+CHAnimation.h // CHCategories // // Created by CHwang on 2019/1/25. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (CHAnimation) #pragma mark - Shake /** 左右Shake动画 */ - (void)ch_shake; @end NS_ASSUME_NONNULL_END
14.75
16
(translation_unit) "//\n// UIView+CHAnimation.h\n// CHCategories\n//\n// Created by CHwang on 2019/1/25.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIView (CHAnimation)\n\n#pragma mark - Shake\n/**\n 左右Shake动画\n */\n- (void)ch_shake;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
41
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 14.75, "nodes": 26, "errors": 0, "source_hash": "3bd5a33aae8d9ab4f967fc793c4d8194baf01f5fe3c5c2d9661b900370d0b574", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
798
c
#include "dns.h" #include "device.h" #include "sys.h" #include "tcpip.h" #include "udp.h" #include <endian.h> #include <list.h> #include <resea/malloc.h> #include <string.h> static udp_sock_t udp_sock; static ipaddr_t dns_server_ipaddr; error_t dns_query(uint16_t id, const char *hostname) { struct dns_header head...
30.66
123
(translation_unit) "#include "dns.h"\n#include "device.h"\n#include "sys.h"\n#include "tcpip.h"\n#include "udp.h"\n#include <endian.h>\n#include <list.h>\n#include <resea/malloc.h>\n#include <string.h>\n\nstatic udp_sock_t udp_sock;\nstatic ipaddr_t dns_server_ipaddr;\n\nerror_t dns_query(uint16_t id, const char *hostn...
1,202
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 30.66, "nodes": 704, "errors": 0, "source_hash": "e907e1fec46aa51af2a6fa0fc812e97c67c0d9ebc9e8dec20c044d2526b87751", "categorized_nodes": 515}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
799