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
/* $Id$ */ /* Abstract: ARP protocol stuff. */ /* Author: <NAME> <<EMAIL>> */ /* Copyright 1999-2000 chaos development. */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 o...
37.56
59
(translation_unit) "/* $Id$ */\n/* Abstract: ARP protocol stuff. */\n/* Author: <NAME> <<EMAIL>> */\n\n/* Copyright 1999-2000 chaos development. */\n\n/* This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License as\n published by the Free Software Fo...
266
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 37.56, "nodes": 184, "errors": 0, "source_hash": "c449e9e53018b49068346d7cbedc4b31c651f23a4da19505c0f47c4dd2c3366e", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,100
c
#pragma once #include "CommonInclude.h" namespace wiWindowRegistration { #ifndef WINSTORE_SUPPORT typedef HWND window_type; #else typedef Windows::UI::Core::CoreWindow^ window_type; #endif window_type GetRegisteredWindow(); void RegisterWindow(window_type wnd); bool IsWindowActive(); };
21.54
13
(translation_unit) "#pragma once\n#include "CommonInclude.h"\n\nnamespace wiWindowRegistration\n{\n#ifndef WINSTORE_SUPPORT\n typedef HWND window_type;\n#else\n typedef Windows::UI::Core::CoreWindow^ window_type;\n#endif\n\n window_type GetRegisteredWindow();\n void RegisterWindow(window_type wnd);\n bool IsWindowActiv...
72
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.54, "nodes": 46, "errors": 0, "source_hash": "45cb0fb7abd959f88efee99d9d2c1e8dcd7945134f9b4e99cf8934228afd9ebe", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,101
c
// Copyright 2020 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 CHROME_UPDATER_LAUNCHD_UTIL_H_ #define CHROME_UPDATER_LAUNCHD_UTIL_H_ #include <string> #include "base/callback_forward.h" #include "chrome/upda...
39.07
28
(ERROR) "// Copyright 2020 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 CHROME_UPDATER_LAUNCHD_UTIL_H_\n#define CHROME_UPDATER_LAUNCHD_UTIL_H_\n\n#include <string>\n\n#include "base/callback_forward.h"\n#i...
110
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 39.07, "nodes": 60, "errors": 0, "source_hash": "716efd01745612c3b2782bc94962842158f7a56f5d6822df619b8d5eef2e8a68", "categorized_nodes": 46}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright 2020 The Chrom...
1,102
c
#include "types.h" #include "stat.h" #include "user.h" #include "ticketlock.h" #define PGSIZE 0x1000 // glabal variable int sharedVal = 0; int numAdditions = 200; struct ticketlock lock; void child_func(void *sleep_s) // TODO: WHAT ARE THE UNITS OF SLEEP? { int pid = getpid(); sleep((int) sleep_s); for (int i...
21.81
64
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n#include "ticketlock.h"\n\n#define PGSIZE 0x1000\n\n// glabal variable\nint sharedVal = 0;\nint numAdditions = 200;\nstruct ticketlock lock;\n\nvoid child_func(void *sleep_s) // TODO: WHAT ARE THE UNITS OF SLEEP?\n{\n int pid = getpid();\n ...
543
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 21.81, "nodes": 297, "errors": 0, "source_hash": "bde73d99ebb627ed761bdb941bbba73b43ec8aa2bc34c73275f8dbdbb9352727", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,103
c
/*********************************************************************** *Copyright 2010-20XX by 7ymekk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
24.9
156
(translation_unit) "/*********************************************************************** \n*Copyright 2010-20XX by 7ymekk \n* \n* Licensed under the Apache License, Version 2.0 (the "License"); \n* you may not use this file except in compliance with the License. \n* You may obtain a copy of the License at \n*...
779
12
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 24.9, "nodes": 502, "errors": 0, "source_hash": "938d7d8fe746b6e0c4b2a3a514c1cf90023185275f95c6379ff9a29b0e009779", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,104
c
#pragma once #include <prism/actorhandler.h> #include <prism/mugendefreader.h> ActorBlueprint getOsuHandler(); int isOsuHandlerActive(); int shouldPlayOsuMusicInTheBeginning(); void startPlayingOsuSong(); void resetOsuHandler(); void setOsuFile(const char* tPath); void stopOsuHandler(); void loadOsuParametersFromSc...
32.73
11
(translation_unit) "#pragma once\n\n#include <prism/actorhandler.h>\n#include <prism/mugendefreader.h>\n\nActorBlueprint getOsuHandler();\n\nint isOsuHandlerActive();\nint shouldPlayOsuMusicInTheBeginning();\nvoid startPlayingOsuSong();\nvoid resetOsuHandler();\nvoid setOsuFile(const char* tPath);\nvoid stopOsuHandler(...
94
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 32.73, "nodes": 64, "errors": 0, "source_hash": "b479ad4591f3d153a62d18fb091bbba1d1a62808b0491b3a7bf85497fa9c6fe4", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,105
c
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
40.85
34
(translation_unit) "/*\n * Copyright (c) 2017-2019 Cisco and/or its affiliates.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at:\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *...
258
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 40.85, "nodes": 190, "errors": 0, "source_hash": "3547e338e9881cf441b284000795bb1c9e3daf535f58ba1a76435b14e3cc5459", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,106
c
#ifndef TENSORLIBRARY_ROITERATORONEDIM_H #define TENSORLIBRARY_ROITERATORONEDIM_H #include <vector> #include <iostream> #include <tuple> #include <memory> #include "Utility.h" using namespace std; template <class T, int R> class ROTensor; template <class T, int R> class ROIteratorOneDim { private: ...
27.61
173
(translation_unit) "#ifndef TENSORLIBRARY_ROITERATORONEDIM_H \n#define TENSORLIBRARY_ROITERATORONEDIM_H \n \n#include <vector> \n#include <iostream> \n#include <tuple> \n#include <memory> \n#include "Utility.h" \n \nusing namespace std; \n \ntemplate <class T, int R> \nclass ROTensor; \n \ntemplate <class T, int R> \nc...
873
40
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 27.61, "nodes": 491, "errors": 0, "source_hash": "3686932ded57ec5cda3a46627bf98c26b8094f799403040f24c7abd0a5350d69", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,107
c
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" FLA_Error FLA_Givens1_ch...
38.41
32
(translation_unit) "/*\n\n Copyright (C) 2014, The University of Texas at Austin\n\n This file is part of libflame and is available under the 3-Clause\n BSD license, which can be found in the LICENSE file at the top-level\n directory, or at http://opensource.org/licenses/BSD-3-Clause\n\n*/\n\n#include "FLAM...
241
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.41, "nodes": 141, "errors": 0, "source_hash": "33e0da35d9aa6a309a4856ca8a335b88b6bf3a89a718d92be9c2993723ee256b", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,108
c
#pragma once #include <JavaScriptCore/SubspaceInlines.h>
27.5
2
(translation_unit) "#pragma once\n#include <JavaScriptCore/SubspaceInlines.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <JavaScriptCore/SubspaceInlines.h>\n" (#include) "#include" (system_lib_string) "<JavaScriptCore/SubspaceInl...
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 27.5, "nodes": 6, "errors": 0, "source_hash": "bb07b38529a9ca62c9ccc3806239d67d624e6632965c906ce4ccd7dfa1bbaed7", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
1,109
c
/* * 玩家的值 */ #define PLAYER_BLACK 0 #define PLAYER_WRITE 1 /* * 当前玩家 */ int currplayer; /* * 行棋方变换 */ void chplayer(); /* * 判断胜负 */ int check();
7.56
18
(translation_unit) "/*\n * 玩家的值\n */\n#define PLAYER_BLACK 0\n#define PLAYER_WRITE 1\n\n/*\n * 当前玩家\n */\nint currplayer;\n\n/*\n * 行棋方变换\n */\nvoid chplayer();\n\n\n/*\n * 判断胜负\n */\nint check();\n" (comment) "/*\n * 玩家的值\n */\n#define" (preproc_def) "PLAYER_BLACK 0\n#define " (#define) "PLAYER_" (identifi...
33
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 7.56, "nodes": 21, "errors": 0, "source_hash": "2e2aa762688baba9492cd65050dbd983a850be6113288ec4d5be29eb31dc0d12", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "PLAYER_BLAC...
1,110
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) 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 o...
38.03
30
(translation_unit) "/*===================================================================\n\nThe Medical Imaging Interaction Toolkit (MITK)\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...
89
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 38.03, "nodes": 44, "errors": 0, "source_hash": "ae38601c4fada59b87643f06e875cb660fc88a124daac4492af3124204cecee0", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,111
c
#ifndef LINEEXTEND_H #define LINEEXTEND_H #include "gp_Pnt.hxx" #include <math.h> /* Cross calculation to find point C. Given point A,B & lenght AC. A-----------B------------C (Xa,Ya) (Xb,Yb) (Xc,Yc) AB = sqrt( (Xb - Xa)² + (Yb - Ya)² ) AC = 1000 ...
29.83
48
(translation_unit) "#ifndef LINEEXTEND_H\n#define LINEEXTEND_H\n\n#include "gp_Pnt.hxx"\n#include <math.h>\n\n/*\n Cross calculation to find point C. Given point A,B & lenght AC.\n\n A-----------B------------C\n (Xa,Ya) (Xb,Yb) (Xc,Yc)\n\n AB = sqrt( (Xb - Xa)² + (Yb...
404
6
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.83, "nodes": 211, "errors": 0, "source_hash": "a013a262e1e624f14e24aac31867d69c132a35af37cd63c5679de5883a9d89cd", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,112
c
#include "file.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> /** * \brief Afficher la file * \details Le nom de la file est afficher suivi d'un signe '=' avant * le contenu de la file. * Comme nous n'avons pas accès à des opérations de parcours de la liste, * on extraie ses éléments pour les affic...
27.66
47
(translation_unit) "#include "file.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\n/**\n * \brief Afficher la file\n * \details Le nom de la file est afficher suivi d'un signe '=' avant\n * le contenu de la file.\n * Comme nous n'avons pas accès à des opérations de parcours de la liste,\n * on extra...
410
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.66, "nodes": 220, "errors": 0, "source_hash": "e52dd375013c660179c33cf95de3850c5593e0d86ba1f7951eec3dc2e8688f9b", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,113
c
// // PNAudioRecorder.h // podXMPP // // Created by 刘攀妞 on 2019/4/1. // Copyright © 2019年 刘攀妞. All rights reserved. // 录音单例 #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface PNAudioRecorder : NSObject + (instancetype)shareInstance; /// 开始录音 - (void)startRecord; /// 停止录音 - (void)stopRecordSuc...
25.95
19
(translation_unit) "//\n// PNAudioRecorder.h\n// podXMPP\n//\n// Created by 刘攀妞 on 2019/4/1.\n// Copyright © 2019年 刘攀妞. All rights reserved.\n// 录音单例\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface PNAudioRecorder : NSObject\n+ (instancetype)shareInstance;\n/// 开始录音\n- (void)startReco...
143
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.95, "nodes": 88, "errors": 0, "source_hash": "f91c0a8c13863faf174eb969ef0a585bb2e56d75ffbe714a93a2d0d89f01ee6a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ndation.h...
1,114
c
#ifndef __CAN2_H #define __CAN2_H #include "stm32f4xx.h" void CAN2_Mode_Init(u8 tsjw,u8 tbs2,u8 tbs1,u16 brp,u8 mode); #endif
17.43
7
(translation_unit) "#ifndef __CAN2_H\n#define __CAN2_H\n\n#include "stm32f4xx.h"\n\nvoid CAN2_Mode_Init(u8 tsjw,u8 tbs2,u8 tbs1,u16 brp,u8 mode);\n \n\n\n#endif\n\n\n\n" (preproc_ifdef) "#ifndef __CAN2_H\n#define __CAN2_H\n\n#include "stm32f4xx.h"\n\nvoid CAN2_Mode_Init(u8 tsjw,u8 tbs2,u8 tbs1,u16 brp,u8 mode);\n \n\...
41
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.43, "nodes": 30, "errors": 0, "source_hash": "f638276b30faa2d390a7310b59f415a575a507ea31d78a042a7d839f75a2b11f", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,115
c
/* * ITermVisitor.h * * Created on: Jun 16, 2014 * Author: psp */ #ifndef ITERMVISITOR_H_ #define ITERMVISITOR_H_ #include <memory> using namespace std; namespace autodiff { class Abs; class And; class Atan2; class Constant; class ConstPower; class ConstraintUtility; class Cos; class Exp; class ...
27.01
69
(translation_unit) "/*\n * ITermVisitor.h\n *\n * Created on: Jun 16, 2014\n * Author: psp\n */\n\n#ifndef ITERMVISITOR_H_\n#define ITERMVISITOR_H_\n\n#include <memory>\n\nusing namespace std;\n\nnamespace autodiff\n{\n class Abs;\n class And;\n class Atan2;\n class Constant;\n class ConstPower;\n class Constrain...
657
5
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 27.01, "nodes": 465, "errors": 0, "source_hash": "74ab23315839f961bc3b142784c918d5c7ca865fef00736768b07b32403698fd", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,116
c
#if !defined(AFX_DLGALARMHOSTLOGSEARCH_H__09841B14_3B4D_43B7_AB27_DFF4542750FA__INCLUDED_) #define AFX_DLGALARMHOSTLOGSEARCH_H__09841B14_3B4D_43B7_AB27_DFF4542750FA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // DlgAlarmHostLogSearch.h : header file // ///////////////////////////////////////...
33.84
74
(translation_unit) "#if !defined(AFX_DLGALARMHOSTLOGSEARCH_H__09841B14_3B4D_43B7_AB27_DFF4542750FA__INCLUDED_)\n#define AFX_DLGALARMHOSTLOGSEARCH_H__09841B14_3B4D_43B7_AB27_DFF4542750FA__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n// DlgAlarmHostLogSearch.h : header file\n//\n\n//////////...
412
13
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 33.84, "nodes": 259, "errors": 0, "source_hash": "a82b9a903ac1340260915b118c70eb7c57b79216ad7e5e98021d1270e728e04d", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
1,117
c
/* * Copyright (c) 2017, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of cond...
34.03
65
(translation_unit) "/*\n * Copyright (c) 2017, Intel Corporation\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright n...
169
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 34.03, "nodes": 99, "errors": 0, "source_hash": "218898f5e702bf5a60e0b02e38ce5687cc6c98c94e70a9b702b36eefad700c8a", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,118
c
/* eui64.c - EUI64 routines for IPv6CP. Copyright (C) 1999 <NAME> <<EMAIL>> Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other ...
37.73
33
(translation_unit) "/*\n eui64.c - EUI64 routines for IPv6CP.\n Copyright (C) 1999 <NAME> <<EMAIL>>\n\n Redistribution and use in source and binary forms are permitted\n provided that the above copyright notice and this paragraph are\n duplicated in all such forms and that any documentation,\n advert...
145
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 37.73, "nodes": 78, "errors": 0, "source_hash": "458d819a38aec73d9146078f63f6d6849d3cb5fbd357d4ae944f55cdb4fa35e6", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define RC...
1,119
c
// // NSString+StringFormatter.h // JKNews // // Created by NEVER.FADE.SOUL on 25/07/2017. // Copyright © 2017 people.cn. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (StringFormatter) + (NSString *)tagString:(NSString *)string; + (NSString *)pictureCountWithNumber:(NSInteger)cou...
36.78
18
(translation_unit) "//\n// NSString+StringFormatter.h\n// JKNews\n//\n// Created by NEVER.FADE.SOUL on 25/07/2017.\n// Copyright © 2017 people.cn. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (StringFormatter)\n\n+ (NSString *)tagString:(NSString *)string;\n+ (NSString *)pict...
176
19
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.78, "nodes": 96, "errors": 0, "source_hash": "058c0cd1a2ec380dde621507c065b137e1582435326cd11a364a2cfb21a8a2a8", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
1,120
c
// // HybridDebuggerLogger.h // FastDevTools // // Created by TimmyYan on 2019/10/24. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface HybridDebuggerLogger : NSObject /** 初始化 DebugServer 单例对象 */ + (instancetype)sharedInstance; /** 开启日志 */ - (void)startLogger; /** 以DebugServer为载体,记录日...
18.33
27
(translation_unit) "//\n// HybridDebuggerLogger.h\n// FastDevTools\n//\n// Created by TimmyYan on 2019/10/24.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HybridDebuggerLogger : NSObject\n/**\n 初始化 DebugServer 单例对象\n */\n+ (instancetype)sharedInstance;\n\n/**\n 开启日志\n */\n- (void...
116
11
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.33, "nodes": 72, "errors": 0, "source_hash": "7942e290a259e3003b0b7d1b4b5049503cac1e1adab452281503a36560d50cda", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,121
c
#import <CoreGraphics/CoreGraphics.h> #import <ImageIO/ImageIO.h> CGImageRef __cf_non_null_alloc(CGImageRef); CGImageRef __cf_alloc(CGImageRef); void __objc_release_cf(CGImageRef); CGImageRef CGImageSourceCreateImageAtIndex ( CGImageSourceRef isrc, size_t index, CFDictionaryRef options ) { CGImageRef c; retur...
35.48
65
(translation_unit) "#import <CoreGraphics/CoreGraphics.h>\n#import <ImageIO/ImageIO.h>\n\nCGImageRef __cf_non_null_alloc(CGImageRef);\nCGImageRef __cf_alloc(CGImageRef);\nvoid __objc_release_cf(CGImageRef);\n\nCGImageRef CGImageSourceCreateImageAtIndex ( CGImageSourceRef isrc, size_t index, CFDictionaryRef options )\n{...
401
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 35.48, "nodes": 255, "errors": 0, "source_hash": "7e9e1a791b88088422d275c07d33177d463db858112d6438e092e6cea317773a", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
1,122
c
// // tuple.h // stdext // // Created by <NAME> on 12/25/15. // Copyright © 2015 <NAME>. All rights reserved. // #ifndef STDEXT_TUPLE_INCLUDED #define STDEXT_TUPLE_INCLUDED #pragma once #include <stdext/meta.h> #include <tuple> #include <cstddef> namespace stdext { template <typename T, typename IndexList...
38.65
63
(translation_unit) "//\n// tuple.h\n// stdext\n//\n// Created by <NAME> on 12/25/15.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#ifndef STDEXT_TUPLE_INCLUDED\n#define STDEXT_TUPLE_INCLUDED\n#pragma once\n\n#include <stdext/meta.h>\n\n#include <tuple>\n\n#include <cstddef>\n\n\nnamespace stdext\n{\n ...
718
68
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 38.65, "nodes": 503, "errors": 0, "source_hash": "defaeb767c26e6e1a55986927060ab986d92964cc0d88cc8080e4bc1d6698510", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
1,123
c
/* Test that save/restore and locals do not overlap in the activation record. */ #include "config.h" #include <assert.h> #include <stdio.h> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif #ifdef STDC_HEADERS #include <unistd.h> #include <stdlib.h> #endif #include "../config.h" #include "dill.h" #ifdef USE_MMAP_CODE_SE...
24.15
128
(translation_unit) "/* Test that save/restore and locals do not overlap in the activation record. */\n#include "config.h"\n#include <assert.h>\n#include <stdio.h>\n#ifdef HAVE_MALLOC_H\n#include <malloc.h>\n#endif\n#ifdef STDC_HEADERS\n#include <unistd.h>\n#include <stdlib.h>\n#endif\n\n#include "../config.h"\n#include...
1,266
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 24.15, "nodes": 714, "errors": 0, "source_hash": "6129de71c9b73546abaa0f96d617c1c6bf1ce86cd88b4b747e61ec7fb033fea2", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,124
c
/* * SAMSUNG EXYNOS USB HOST EHCI Controller * * Copyright (C) 2012 Samsung Electronics Co.Ltd * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of *...
33.98
58
(translation_unit) "/*\n * SAMSUNG EXYNOS USB HOST EHCI Controller\n *\n * Copyright (C) 2012 Samsung Electronics Co.Ltd\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Founda...
185
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.98, "nodes": 153, "errors": 0, "source_hash": "989d79e8927da636285466657e3478fdb6bc32848a5dda18d8aed211309f9452", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,125
c
// // ViewController.h // KJEmitterView // // Created by 杨科军 on 2018/11/26. // Copyright © 2018 杨科军. All rights reserved. // https://github.com/yangKJ/KJEmitterView #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
21.27
11
(translation_unit) "//\n// ViewController.h\n// KJEmitterView\n//\n// Created by 杨科军 on 2018/11/26.\n// Copyright © 2018 杨科军. All rights reserved.\n// https://github.com/yangKJ/KJEmitterView\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.27, "nodes": 12, "errors": 0, "source_hash": "3916bd4e40cb1f2082773c9bddf14bd6f4d553b379b81b8f0924849b7020f996", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit.h>...
1,126
c
#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #include <strtoint.h> #define BACKWARD //#undef BACKWARD float getfloat(const char *ch) { int i=0,l,f=0,x=0; float y=0; l=strlen(ch); while (ch[i]!='.') { x=x*10+cint(ch[i]); i++; if (i==l) ...
18.31
39
(translation_unit) "#include <stdio.h>\n#include <conio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <strtoint.h>\n\n#define BACKWARD\n//#undef BACKWARD\n\nfloat getfloat(const char *ch)\n{\n int i=0,l,f=0,x=0;\n float y=0;\n l=strlen(ch);\n while (ch[i]!='.')\n {\n x=x*10+cint(ch[i]);\n...
317
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.31, "nodes": 214, "errors": 0, "source_hash": "44dd7c9fd834bb425425f81efd7d489318d02395485eda7fb8af479258969c20", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,127
c
#ifndef SPA_SUBSCRIPTION_REQUEST #define SPA_SUBSCRIPTION_REQUEST #include <messages/op_codes.h> #include <stdint.h> #include <spa_message.h> struct SubscriptionRequest { SubscriptionRequest( LogicalAddress destination, LogicalAddress source, LogicalAddress mA) : spaMessage(0,0,0, desti...
22
70
(translation_unit) "#ifndef SPA_SUBSCRIPTION_REQUEST\n#define SPA_SUBSCRIPTION_REQUEST\n\n#include <messages/op_codes.h>\n#include <stdint.h>\n#include <spa_message.h>\n\nstruct SubscriptionRequest\n{\n SubscriptionRequest(\n LogicalAddress destination,\n LogicalAddress source,\n LogicalAddress mA)\n : spaMe...
351
11
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.0, "nodes": 231, "errors": 0, "source_hash": "2e0b9a3176fe14773e42dccc61e47cab4727c8a72ba7f1c71d5b9026f3f2bb09", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,128
c
/** * @file * @brief * * @author <NAME> * @date 07.08.2014 */ #include <errno.h> #include <string.h> #include <stdio.h> #include <util/math.h> #include <kernel/irq.h> #include <hal/reg.h> #include <net/netdevice.h> #include <net/inetdevice.h> #include <net/l0/net_entry.h> #include <net/l2/ethernet.h> #includ...
33.91
205
(translation_unit) "/**\n * @file\n * @brief\n *\n * @author <NAME>\n * @date 07.08.2014\n */\n\n#include <errno.h>\n#include <string.h>\n#include <stdio.h>\n#include <util/math.h>\n#include <kernel/irq.h>\n#include <hal/reg.h>\n#include <net/netdevice.h>\n#include <net/inetdevice.h>\n#include <net/l0/net_entry.h>\...
1,735
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 33.91, "nodes": 1048, "errors": 0, "source_hash": "f902952c093454b52894d4778976e160eefb48139629f618f52510d6a5151599", "categorized_nodes": 789}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,129
c
#include <src/interpreter.h> #include <src/tokenizer.h> #include <src/unicode.h> #include <src/utf8.h> #include <stdbool.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "utils.h" static char *unicode_to_utf8_ending_with_0(struct UnicodeString unicode) { char *utf8; size_t utf8len; buttert(u...
32.1
62
(translation_unit) "#include <src/interpreter.h>\n#include <src/tokenizer.h>\n#include <src/unicode.h>\n#include <src/utf8.h>\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdlib.h>\n#include <string.h>\n#include "utils.h"\n\n\nstatic char *unicode_to_utf8_ending_with_0(struct UnicodeString unicode)\n{\n char *...
720
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 32.1, "nodes": 416, "errors": 0, "source_hash": "c57e23e172c3f94551f7d413053947a8ba05b0f4c0785483f200ec8d8ce7eb61", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,130
c
#pragma once #include <memory> #include <rdm/service/Service.h> #include <rdm/command/Options.h> class Client : public rdm::Service { public: Client(); ~Client() override; bool onInit() override; void onRun() override; bool onExit() override; private: rdm::Options op_; };
20.21
14
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include <rdm/service/Service.h>\n#include <rdm/command/Options.h>\n\nclass Client : public rdm::Service {\npublic:\n Client();\n ~Client() override;\n\n bool onInit() override;\n void onRun() override;\n bool onExit() override;\n\nprivate:\n rd...
87
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.21, "nodes": 52, "errors": 0, "source_hash": "cc413193ed9917b0fb1876ff30f885b4f3c457115c75a258ced6d46bf34b4b26", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,131
c
#ifndef cetlib_search_path_h #define cetlib_search_path_h // ====================================================================== // // search_path: Seek filename or pattern in a given list of pathnames // // ====================================================================== #include "cetlib/container_algorithm...
39.9
92
(translation_unit) "#ifndef cetlib_search_path_h\n#define cetlib_search_path_h\n\n// ======================================================================\n//\n// search_path: Seek filename or pattern in a given list of pathnames\n//\n// ======================================================================\n\n#includ...
560
40
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 39.9, "nodes": 265, "errors": 0, "source_hash": "48378ed4d1f2fbdc2deb806e6c3e163bc501d62298638fe8aed2a1942678d3bf", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef cetlib_...
1,132
c
#pragma once #include <lemon/syscall.h> #include <Lemon/Types.h> #include <stddef.h> namespace Lemon{ ///////////////////////////// /// \brief WaitForKernelObject (object) /// /// Wait on one KernelObject /// /// \param object Object to wait on /// /// \return negative error code on f...
31.67
43
(translation_unit) "#pragma once\n\n#include <lemon/syscall.h>\n#include <Lemon/Types.h>\n\n#include <stddef.h>\n\nnamespace Lemon{\n /////////////////////////////\n /// \brief WaitForKernelObject (object)\n ///\n /// Wait on one KernelObject\n ///\n /// \param object Object to wait on\n ///\n /...
168
2
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 31.67, "nodes": 82, "errors": 0, "source_hash": "990d52014e49b7e87b5a50f243dd9addb6b7a1b5f85939e3997f964eee058048", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,133
c
#include "sum_between_negative.h" int sum_between_negative(int* array, int arraySize) { int sum = 0; int begin = index_first_negative(array, arraySize); int end = index_last_negative(array, arraySize); if (begin == -1 || end == -1) return -1; for (int i = begin; i < end; i++) sum += abs(array[i]); retu...
22.5
14
(translation_unit) "#include "sum_between_negative.h"\n\nint sum_between_negative(int* array, int arraySize) {\n int sum = 0;\n int begin = index_first_negative(array, arraySize);\n int end = index_last_negative(array, arraySize);\n \n if (begin == -1 || end == -1)\n return -1;\n \n for (int i = begin; i < end; i++)\n...
118
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.5, "nodes": 75, "errors": 0, "source_hash": "6836e168172f4278b50f30d8a2afff6a592de447e7215251812b1528a396231a", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,134
c
// // Created by liming on 1/2/18. // #ifndef MARKERSENSOR_TIMER_H #define MARKERSENSOR_TIMER_H #include <sys/time.h> #define TIME_BEGIN() {timeval t_b, t_e; gettimeofday(&t_b, 0); #define TIME_END(TAG) gettimeofday(&t_e, 0); printf("=== %s time: %lf s\n", TAG, (t_e.tv_sec - t_b.tv_sec) + (t_e.tv_usec - t_b.tv_usec)...
38.67
9
(translation_unit) "//\n// Created by liming on 1/2/18.\n//\n\n#ifndef MARKERSENSOR_TIMER_H\n#define MARKERSENSOR_TIMER_H\n\n#include <sys/time.h>\n\n#define TIME_BEGIN() {timeval t_b, t_e; gettimeofday(&t_b, 0);\n#define TIME_END(TAG) gettimeofday(&t_e, 0); printf("=== %s time: %lf s\n", TAG, (t_e.tv_sec - t_b.tv_sec)...
30
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 38.67, "nodes": 21, "errors": 0, "source_hash": "69d818c8ca68e69d58b1b4262ae7222506e8f90377c3e09d6709223e47f59273", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
1,135
c
// Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved. /************************************************************************* ------------------------------------------------------------------------- $Id$ $DateTime$ Description: -------------------------------------------------------------...
34.07
28
(translation_unit) "// Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.\n\n/*************************************************************************\n -------------------------------------------------------------------------\n $Id$\n $DateTime$\n Description: \n \n ---------------------------------...
118
6
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.07, "nodes": 76, "errors": 0, "source_hash": "7ddc08d96d5208050c2025144db0544bc985e9630879ffd8e16de1cf55befc64", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,136
c
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed...
33.17
186
(translation_unit) "/*\n * GPL HEADER START\n *\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\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 only,\n * as published by the Free Software Foundation.\n *\n ...
1,496
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 33.17, "nodes": 859, "errors": 0, "source_hash": "0423eda7098dcbaa52fe865ccc81a54a243c1cfba748386643ddc4bc6256667c", "categorized_nodes": 643}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
1,137
c
///////////////////////////////////////////////////////////////////// // Mapper 18 class NES_mapper18 : public NES_mapper { friend void adopt_MPRD(SnssMapperBlock* block, NES* nes); friend int extract_MPRD(SnssMapperBlock* block, NES* nes); public: NES_mapper18(NES* parent) : NES_mapper(parent) {} ~NES_mapper...
27.68
22
(translation_unit) "/////////////////////////////////////////////////////////////////////\n// Mapper 18\nclass NES_mapper18 : public NES_mapper\n{\n friend void adopt_MPRD(SnssMapperBlock* block, NES* nes);\n friend int extract_MPRD(SnssMapperBlock* block, NES* nes);\n\npublic:\n NES_mapper18(NES* parent) : NES_mapp...
167
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.68, "nodes": 104, "errors": 0, "source_hash": "0821b750cf5aa9c67231e4f7271d039ddadda6b6d45dd16e7f35742f9c42eb2c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
1,138
c
#ifndef SOCKET_H_ #define SOCKET_H_ #include "MDM.h" /** Socket file descriptor and select wrapper */ class Socket { public: Socket() { _socket = -1; _timeout_ms = MDMParser::TIMEOUT_BLOCKING; _mdm = NULL; } void set_blocking(bool blocking, unsigned int t...
21.2
44
(translation_unit) "#ifndef SOCKET_H_ \n#define SOCKET_H_ \n \n#include "MDM.h" \n \n/** Socket file descriptor and select wrapper \n */ \nclass Socket { \npublic: \n Socket() { \n _socket = -1; \n _timeout_ms = MDMParser::TIMEOUT_BLOCKING; \n _mdm = NULL; \n } \n \n void set_blo...
246
9
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.2, "nodes": 146, "errors": 0, "source_hash": "a3f9f0439304df6ede989dee0602719dd61d4437ca1390649da2cac35c3ceb50", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,139
c
/************************************************************************ * drwtbl.h * * * * This file contains structure definitions used by GEMPAK to store * * drawing settings for ...
20.49
84
(translation_unit) "/************************************************************************\n * drwtbl.h *\n * *\n * This file contains structure definitions used by GEMPAK to store *\n...
261
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 20.49, "nodes": 177, "errors": 0, "source_hash": "2f0f1a93f9a6e9d30cff66a867ac113764782132dd69c6aee249dbc0bd783ae3", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
1,140
c
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #ifndef _GENIE_RESET_H_ #define _GENIE_RESET_H_ #define GENIE_RESET_BY_REPEAT_COUNTER 4 #define GENIE_RESET_BY_REPEAT_TIMEOUT (3*1000) #define GENIE_RESET_BY_REPEAT_FLASH_COUNTER 5 #define GENIE_RESET_BY_REPEAT_FLASH_DURATION 500 #define GENIE_RES...
30.43
21
(translation_unit) "/*\n * Copyright (C) 2018-2020 Alibaba Group Holding Limited\n */\n\n#ifndef _GENIE_RESET_H_\n#define _GENIE_RESET_H_\n\n#define GENIE_RESET_BY_REPEAT_COUNTER 4\n#define GENIE_RESET_BY_REPEAT_TIMEOUT (3*1000)\n#define GENIE_RESET_BY_REPEAT_FLASH_COUNTER 5\n#define GENIE_RESET_BY_REPEAT_FLASH_DURA...
72
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 30.43, "nodes": 55, "errors": 0, "source_hash": "c34c1f2447be423b6906356681ef4afea5fe0d1d1d74c0256e54a12534a15249", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,141
c
// // NoxBannerView.h // TestFBAds // // Created by Chong on 2019/1/5. // Copyright © 2019年 Chong. All rights reserved. // #import <UIKit/UIKit.h> #import <Noxmobi/NoxBannerViewDelegate.h> #import <Noxmobi/NoxAdSize.h> #import <Noxmobi/NoxTemplateStyle.h> NS_ASSUME_NONNULL_BEGIN @interface NoxBannerView : UIView...
26.37
67
(translation_unit) "//\n// NoxBannerView.h\n// TestFBAds\n//\n// Created by Chong on 2019/1/5.\n// Copyright © 2019年 Chong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Noxmobi/NoxBannerViewDelegate.h>\n#import <Noxmobi/NoxAdSize.h>\n#import <Noxmobi/NoxTemplateStyle.h>\n\nNS_ASSUME_NONNULL_BEGIN\n...
272
23
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 26.37, "nodes": 170, "errors": 0, "source_hash": "f8288a697537eefd75af72c18af834736ed2c648ce4f060f09688c19921da2c3", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
1,142
c
// // WLWeightLayoutDemoViewController.h // LWZCollectionViewComponents_Example // // Created by changsanjiang on 2021/11/25. // Copyright © 2021 <EMAIL>. All rights reserved. // // 每个 item 按所占比重布局 // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface WLWeightLayoutDemoViewController : UIViewController ...
23.57
14
(translation_unit) "//\n// WLWeightLayoutDemoViewController.h\n// LWZCollectionViewComponents_Example\n//\n// Created by changsanjiang on 2021/11/25.\n// Copyright © 2021 <EMAIL>. All rights reserved.\n//\n// 每个 item 按所占比重布局\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WLWeightLayoutDemo...
29
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.57, "nodes": 16, "errors": 0, "source_hash": "2df4a85aedd8408a13efad6bbf4d2553d27773b4a4d11ccb499d7487c3d17df1", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t.h>\n\nNS...
1,143
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "header_file.h" #define ERROR_MINA_ENCONTRADA 1 #define ERROR_ESPACIO_YA_DESCUBIERTO 2 #define NINGUNO 3 #define COLUMNS 10 //definimos la cantidad de columnas para el tablero #define ROWS 10 //definimo...
28.1
50
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <unistd.h> \n#include "header_file.h" \n \n#define ERROR_MINA_ENCONTRADA 1 \n#define ERROR_ESPACIO_YA_DESCUBIERTO 2 \n#define NINGUNO 3 \n \n \n#define COLUMNS 10 //definimos la cantidad de columnas para el tablero \n#define ROW...
348
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.1, "nodes": 192, "errors": 0, "source_hash": "d3cfed98e2803ab48fc259a966e56cb509c76c8c36f885c2945ff28cba891507", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,144
c
/*<NAME> *SE3377.002 */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include "y.tab.h" //global int yylex(void); int yyparse(void); int main(int argc, char **argv){ //change the behavior by the argument 0, either scanner or parser char *SCANNER = "./scanner"; char *argv0 = argv[0]; if(strc...
22.12
88
(translation_unit) "/*<NAME>\n *SE3377.002\n */\n\n\n#include <string.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include "y.tab.h"\n\n//global \nint yylex(void);\nint yyparse(void);\n\nint main(int argc, char **argv){\n //change the behavior by the argument 0, either scanner or parser\n char *SCANNER = "./scanner"...
565
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 22.12, "nodes": 304, "errors": 0, "source_hash": "7d45fbd5c46bfe770f8819906d3c000b77376eb1aca27ae28a87211678069024", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,145
c
/** Copyright (c) 2014-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. */ #import <pop/POPDecayA...
35.33
15
(translation_unit) "/**\n Copyright (c) 2014-present, Facebook, Inc.\n All rights reserved.\n\n This source code is licensed under the BSD-style license found in the\n LICENSE file in the root directory of this source tree. An additional grant\n of patent rights can be found in the PATENTS file in the same directory.\n...
35
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.33, "nodes": 22, "errors": 0, "source_hash": "2291f7b41f9ab5da721f4cf124b77965cde5809db717cc449f3ea61381dfa8b3", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,146
c
/* * keypad.c * * Created on: Jul 7, 2020 * Author: pola */ #include "OS.h" #include "Queue.h" #include "keypad.h" #include "stdlib.h" #include "dio.h" #include "port.h" #define KEYPAD_ASSERTION_LEVEL DIO_RESET typedef enum{ KEYPAD_ROW_NO_0 = KEYPAD_ROW_0, KEYPAD_ROW_NO_1, KEYPAD_ROW_NO_2, KEYPAD_ROW_...
24.92
131
(translation_unit) "/*\n * keypad.c\n *\n * Created on: Jul 7, 2020\n * Author: pola\n */\n\n#include "OS.h"\n#include "Queue.h"\n#include "keypad.h"\n#include "stdlib.h"\n#include "dio.h"\n#include "port.h"\n\n#define KEYPAD_ASSERTION_LEVEL DIO_RESET\n\ntypedef enum{\n KEYPAD_ROW_NO_0 = KEYPAD_ROW_0,\n KEYPAD_RO...
866
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 24.92, "nodes": 514, "errors": 0, "source_hash": "0147d687d9399765db76cc7ef72255633ec1b7e4bfaf28eea11299bb51569342", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,147
c
// Copyright 2019 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 ASH_PUBLIC_CPP_NOTIFIER_SETTINGS_OBSERVER_H_ #define ASH_PUBLIC_CPP_NOTIFIER_SETTINGS_OBSERVER_H_ #include <vector> #include "ash/public/cpp/ash...
36.81
31
(translation_unit) "// Copyright 2019 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 ASH_PUBLIC_CPP_NOTIFIER_SETTINGS_OBSERVER_H_\n#define ASH_PUBLIC_CPP_NOTIFIER_SETTINGS_OBSERVER_H_\n\n#include <vector>\n\...
142
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.81, "nodes": 74, "errors": 0, "source_hash": "6c31d9baf31f6d04dc2e1edd918bd3b922f1007379935124d281ef65bf5b13a0", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,148
c
// Register names from <NAME>'s Microtouch code #define ILI932X_START_OSC 0x00 #define ILI932X_DRIV_OUT_CTRL 0x01 #define ILI932X_DRIV_WAV_CTRL 0x02 #define ILI932X_ENTRY_MOD 0x03 #define ILI932X_RESIZE_CTRL 0x04 #define ILI932X_DISP_CTRL1 0x07 #define ILI932X_DISP_CTRL...
31.71
185
(translation_unit) "// Register names from <NAME>'s Microtouch code \n#define ILI932X_START_OSC 0x00 \n#define ILI932X_DRIV_OUT_CTRL 0x01 \n#define ILI932X_DRIV_WAV_CTRL 0x02 \n#define ILI932X_ENTRY_MOD 0x03 \n#define ILI932X_RESIZE_CTRL 0x04 \n#define ILI932X_DISP_CTRL1 0x07 ...
650
0
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 31.71, "nodes": 648, "errors": 0, "source_hash": "44cfda2210104442b253efe0ef5853611e9facbedee705d6a96da877beb9c2f1", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
1,149
c
/* * Configuration for Compiling. * Written by ..., 2014/9/19 */ #ifndef _CONFIG_H_ #define _CONFIG_H_ // #define WINDOWS #define LINUX #define RELEASE #endif
11.07
15
(translation_unit) "/* \n * Configuration for Compiling. \n * Written by ..., 2014/9/19 \n */ \n \n#ifndef _CONFIG_H_ \n#define _CONFIG_H_ \n \n// #define WINDOWS \n#define LINUX \n \n#define RELEASE \n \n \n#endif \n" (comment) "/* \n * Configuration for Compiling. \n * Written by ..., 2014/9/19 \n */" (preproc_if...
16
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 11.07, "nodes": 13, "errors": 0, "source_hash": "b2a64cad7ba824a3a32d061fe68a98852cbfd673d199879a1df94598b4ec4f7f", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,150
c
#ifndef _VCU0_TYPES_H_ #define _VCU0_TYPES_H_ //############################################################################# //! \file include/vcu0/vcu0_types.h //! //! \brief Type definitions for the VCU0 algorithms //! //! \date Apr 7, 2011 // // Group: C2000 // Target Family: F2837x // //#################...
35.62
144
(translation_unit) "#ifndef _VCU0_TYPES_H_\n#define _VCU0_TYPES_H_\n//#############################################################################\n//! \file include/vcu0/vcu0_types.h\n//!\n//! \brief Type definitions for the VCU0 algorithms\n//!\n//! \date Apr 7, 2011\n//\n// Group: C2000\n// Target Family:...
431
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 35.62, "nodes": 281, "errors": 0, "source_hash": "760d71222ef0c9cefcb798bbf037cec733cae7e5e4152d32c9f681ad62713f3d", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,151
c
#ifndef _GUI_H #define _GUI_H #include "gfx.h" typedef enum guiPage { DISPLAY_PAGE, MAIN_PAGE } guiPage; // Widget handles extern GHandle ghContainer; extern GHandle ghBarBlue; extern GHandle ghBarRed; extern GHandle ghBarGreen; #ifdef __cplusplus extern "C" { #endif bool_t guiInit(void); void guiShowPage(guiP...
16.67
21
(translation_unit) "#ifndef _GUI_H\n#define _GUI_H\n\n#include "gfx.h"\n\ntypedef enum guiPage {\n DISPLAY_PAGE,\n MAIN_PAGE\n} guiPage;\n\n// Widget handles\nextern GHandle ghContainer;\nextern GHandle ghBarBlue;\nextern GHandle ghBarRed;\nextern GHandle ghBarGreen;\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n bool...
95
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.67, "nodes": 69, "errors": 0, "source_hash": "45dd3933bf3632793a352ac2ddcb3e09ff8c7e4b0b271beb824a422899844f73", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,152
c
#ifndef WIND_STACk_H #define WIND_STACk_H #include "WindObject.h" #include "Instruction.h" #include <stdlib.h> #define WindStack_INIT(name, length) \ WindStack name; \ name.begin = malloc(sizeof(StackNode) * length); \ name.mark = name.begin; \ name.end = name.begin + length; #defin...
29.16
44
(translation_unit) "#ifndef WIND_STACk_H\n#define WIND_STACk_H\n\n#include "WindObject.h"\n#include "Instruction.h"\n#include <stdlib.h>\n\n\n#define WindStack_INIT(name, length) \\n WindStack name; \\n name.begin = malloc(sizeof(StackNode) * length); \\n name.mark = name.begin; \\n name.end...
157
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 29.16, "nodes": 109, "errors": 0, "source_hash": "12f3e9e3811351457da8290c5a4d3effbae115a7dfe2c4fdbaf48efbe2726965", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,153
c
/* Copyright <NAME> 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef QSBOOST_PREDEF_OS_AIX_H #define QSBOOST_PREDEF_OS_AIX_H #include <qsboost/predef/version_number.h> #include <qsboost/predef/make.h...
32.85
52
(translation_unit) "/*\nCopyright <NAME> 2008-2015\nDistributed under the Boost Software License, Version 1.0.\n(See accompanying file LICENSE_1_0.txt or copy at\nhttp://www.boost.org/LICENSE_1_0.txt)\n*/\n\n#ifndef QSBOOST_PREDEF_OS_AIX_H\n#define QSBOOST_PREDEF_OS_AIX_H\n\n#include <qsboost/predef/version_number.h>\n...
182
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.85, "nodes": 148, "errors": 0, "source_hash": "66a965c1a699ac57f9c29652f0db2e4486cb4f348c5c399e0bc83fde6e1fe02c", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,154
c
//***************************************************************************** // //! @file iom_task.c //! //! @brief Task to handle iom operations. //! //! AM_DEBUG_PRINTF //! If enabled, debug messages will be sent over ITM. //! //***************************************************************************** //*****...
35.8
260
(translation_unit) "//*****************************************************************************\n//\n//! @file iom_task.c\n//!\n//! @brief Task to handle iom operations.\n//!\n//! AM_DEBUG_PRINTF\n//! If enabled, debug messages will be sent over ITM.\n//!\n//*********************************************************...
1,024
0
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 35.8, "nodes": 588, "errors": 0, "source_hash": "2b24b360d01efac6681be7d6ea2ec7b0eb5a564ef373220e79b9b0a14e1c98a7", "categorized_nodes": 390}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,155
c
// SPDX-License-Identifier: MIT #include "buffer.h" #include "compiler.h" #include "kalloc.h" #include "shout.h" #include <stdint.h> // allocate buffer and buffer area buffer_t *buffer_allocate(uint32_t size, uint32_t prefix_size) { void *area = kalloc_size(size); buffer_t *buf = kalloc(buffer_t); buf->ar...
32.63
27
(translation_unit) "// SPDX-License-Identifier: MIT\n\n#include "buffer.h"\n#include "compiler.h"\n#include "kalloc.h"\n#include "shout.h"\n#include <stdint.h>\n\n// allocate buffer and buffer area\nbuffer_t *buffer_allocate(uint32_t size, uint32_t prefix_size) {\n void *area = kalloc_size(size);\n buffer_t *buf ...
275
3
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.63, "nodes": 179, "errors": 0, "source_hash": "d99daf8ef39504ffb2c648a56de08a4ebd727b4d458ae292b45a73726907698e", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,156
c
// // YSDevice.h // YSRun // // Created by moshuqi on 15/12/17. // Copyright © 2015年 msq. All rights reserved. // #import <Foundation/Foundation.h> @interface YSDevice : NSObject + (BOOL)isPhone6Plus; @end
18.09
11
(translation_unit) "//\n// YSDevice.h\n// YSRun\n//\n// Created by moshuqi on 15/12/17.\n// Copyright © 2015年 msq. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface YSDevice : NSObject\n\n+ (BOOL)isPhone6Plus;\n\n@end\n" (comment) "//" (comment) "// YSDevice.h" (comment) "// YSRun"...
32
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.09, "nodes": 17, "errors": 0, "source_hash": "c7a670ffc4b3868a0fe069493bbf19aef36e5a55a00543e9bd550c26d0642418", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
1,157
c
/* * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
28.16
37
(translation_unit) "/*\n * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/license...
144
3
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.16, "nodes": 84, "errors": 0, "source_hash": "906a47252bafd85d122fbe5a5384eeae8018376276e0316d1fb610ba85f2a125", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,158
c
/*------------------------------------------------------------------------- * * nodeFuncs.h * Various general-purpose manipulations of Node trees * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgs...
34.57
21
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * nodeFuncs.h\n * Various general-purpose manipulations of Node trees\n *\n * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of Califor...
82
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.57, "nodes": 59, "errors": 0, "source_hash": "bc15d7a66f48403c043be870d79bbc85ad5dc4116c41c6a1d4d36247aed476aa", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,159
c
#pragma once #include <QtCore/qglobal.h> #if defined(TPLBASE_LIBRARY) # define TPLBASE_EXPORT Q_DECL_EXPORT #else # define TPLBASE_EXPORT Q_DECL_IMPORT #endif
22
7
(translation_unit) "#pragma once\n\n#include <QtCore/qglobal.h>\n\n#if defined(TPLBASE_LIBRARY)\n# define TPLBASE_EXPORT Q_DECL_EXPORT\n#else\n# define TPLBASE_EXPORT Q_DECL_IMPORT\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <Qt...
26
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.0, "nodes": 23, "errors": 0, "source_hash": "f2f7adfd5449cbb6d23b18794f49fe475e8a414f1e2eaed18085fe0c0f920828", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
1,160
c
#pragma once #include <optional> #include <SFML/Graphics/Image.hpp> #include <vob/aoe/api.h> #include <vob/aoe/common/render/OpenGl.h> namespace vob::aoe::common { class VOB_AOE_API Texture { public: // Types struct State { GraphicObjectId m_textureId; }; // Attributes mutable std::optional<State...
17.5
42
(translation_unit) "#pragma once\n\n#include <optional>\n\n#include <SFML/Graphics/Image.hpp>\n\n#include <vob/aoe/api.h>\n#include <vob/aoe/common/render/OpenGl.h>\n\nnamespace vob::aoe::common\n{\n class VOB_AOE_API Texture\n {\n public:\n // Types\n struct State\n {\n GraphicObjectId m_textureId;\n };\n\n // ...
224
12
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 17.5, "nodes": 124, "errors": 0, "source_hash": "2c5ae68ad3d1772f87f5e6cbba44a86ba402341f26840e5805f8b9f0e3183119", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,161
c
#include <array> #include <string> template<class T, int n> char randomChoice(std::array<T, n> choices); std::string generatePassword(int length, bool lowerLettersEnabled, bool upperLettersEnabled, bool numbersEnabled, bool specialsEnabled);
34.71
7
(translation_unit) "#include <array> \n#include <string> \n \ntemplate<class T, int n> \nchar randomChoice(std::array<T, n> choices); \n \nstd::string generatePassword(int length, bool lowerLettersEnabled, bool upperLettersEnabled, bool numbersEnabled, bool specialsEnabled); \n" (preproc_include) "#include <array> \n...
74
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.71, "nodes": 54, "errors": 0, "source_hash": "54b5c36a658a1611df08662a65429b910f30856f761958ffb42f8dae80dd1e1d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,162
c
#if (__LSB_VERSION__ >= 41 ) #ifndef _CUPS_HTTP_H_ #define _CUPS_HTTP_H_ #include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> #include <netdb.h> #include <netinet/in.h> #include <sys/un.h> #include <stdint.h> #include <cups/cups.h> #if !defined(LSB_DECL_DEPRECATED) #if defined(__GNUC__) && !defined(...
31.14
157
(translation_unit) "#if (__LSB_VERSION__ >= 41 )\n#ifndef _CUPS_HTTP_H_\n#define _CUPS_HTTP_H_\n\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <sys/select.h>\n#include <netdb.h>\n#include <netinet/in.h>\n#include <sys/un.h>\n#include <stdint.h>\n#include <cups/cups.h>\n\n#if !defined(LSB_DECL_DEPRECATED)\n...
1,225
3
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 31.14, "nodes": 921, "errors": 0, "source_hash": "f0d98cbecbf6f1779125dbfea3f26b9ed692163fe4293bacaef0b825113a0ce5", "categorized_nodes": 580}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if (__LSB_VE...
1,163
c
// // TFCodeScanningView.h // TFQRCode // // Created by 张永强 on 2018/2/26. // Copyright © 2018年 张永强. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger , TFCornerLocation) { //默认与边框线同中心点 TFCornerLocationDefault, //在边框线内部 TFCornerLocationInside, //在边框线外部 TFCornerLocati...
26.16
49
(translation_unit) "//\n// TFCodeScanningView.h\n// TFQRCode\n//\n// Created by 张永强 on 2018/2/26.\n// Copyright © 2018年 张永强. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger , TFCornerLocation) {\n //默认与边框线同中心点\n TFCornerLocationDefault,\n //在边框线内部\n TFCornerLocationInsid...
241
26
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.16, "nodes": 140, "errors": 0, "source_hash": "e34b80c977e6b0d6ec9e9530a9e0ebfb48eded011749bf98005f9b6a094d8c2c", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>...
1,164
c
#ifndef _JIMI_LANG_OBJECT_H_ #define _JIMI_LANG_OBJECT_H_ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #include "jimi/basic/stddef.h" //#include "jimi/lang/Throwable.h" //#include "jimi/lang/Exception.h" #include "jimi/lang/Cloneable.h" #include "jimi/io/Closeable.h" #include "jimi/lang/CloneNotSu...
24.47
85
(translation_unit) "#ifndef _JIMI_LANG_OBJECT_H_\n#define _JIMI_LANG_OBJECT_H_\n\n#if defined(_MSC_VER) && (_MSC_VER >= 1020)\n#pragma once\n#endif\n\n#include "jimi/basic/stddef.h"\n//#include "jimi/lang/Throwable.h"\n//#include "jimi/lang/Exception.h"\n#include "jimi/lang/Cloneable.h"\n#include "jimi/io/Closeable.h"\...
643
27
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 24.47, "nodes": 338, "errors": 0, "source_hash": "eaeaef10b08fa388e9a0a4531a879424b80dcf44365e2a2e242f70df20609ec3", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _JIMI_...
1,165
c
/// \file /// \brief Объявления функций для алгоритмов /// \details Объявления функций для алгоритмов поиска наибольшего /// значения и среднего. #ifndef LIB_H #define LIB_H /// Ищет значение максимального элемента в массиве. /// \param array Указатель на массив. /// \param count Кол-во элементов в массиве. /// \retu...
37.71
17
(translation_unit) "/// \file\n/// \brief Объявления функций для алгоритмов\n/// \details Объявления функций для алгоритмов поиска наибольшего\n/// значения и среднего.\n\n#ifndef LIB_H\n#define LIB_H\n\n/// Ищет значение максимального элемента в массиве.\n/// \param array Указатель на массив.\n/// \param count Кол-во ...
59
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.71, "nodes": 35, "errors": 0, "source_hash": "0c311822d97cc10bfc982d649d61bd010607f1fcbb9c3502579fa77d680cfb23", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ray \u04...
1,166
c
#pragma once #include "Utils/utils.h" namespace FireCube { /** * A 2d vector. */ class FIRECUBE_API vec2 { public: vec2() {} /** * Constructs a vector for the specified value. */ vec2(float nx, float ny) { x = nx; y = ny; } /** * Constructs a vector for the specified value. *...
16.08
318
(translation_unit) "#pragma once \n \n#include "Utils/utils.h" \n \nnamespace FireCube \n{ \n/** \n* A 2d vector. \n*/ \nclass FIRECUBE_API vec2 \n{ \npublic: \n vec2() {} \n \n /** \n * Constructs a vector for the specified value. \n */ \n vec2(float nx, float ny) \n { \n x = nx; \n y = ny; \n } \n \n /** \n * Cons...
1,081
59
{"language": "c", "success": true, "metadata": {"lines": 318, "avg_line_length": 16.08, "nodes": 608, "errors": 0, "source_hash": "4ff48b56c3efbc1bd9a5181553ac65cdd8641cd35d6a1939fe5d6ca78a0c1f17", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,167
c
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #include "pik/image.h" namespace pik { constexpr size_t kNumBilinearParams = 8; struct BilinearParams { Biline...
36.89
18
(translation_unit) "// Copyright 2018 Google Inc. All Rights Reserved.\n//\n// Use of this source code is governed by an MIT-style\n// license that can be found in the LICENSE file or at\n// https://opensource.org/licenses/MIT.\n\n#include "pik/image.h"\n\nnamespace pik {\n\nconstexpr size_t kNumBilinearParams = 8;\n\n...
130
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.89, "nodes": 86, "errors": 0, "source_hash": "c34aacdb590d8c0265b91be83c2314a74dbaa5a5dca3a43bb4496d8dc21b3140", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,168
c
// --rclsid.h------------------------------------------------------------------ // // Defines the identifiers for the Rules Class. // // Identifiers defined: // // LIBID_rulecls // // IID_IExchangeFolderRules // // Copyright 1986 - 1998 Microsoft Corporation. All rights reserved...
31.16
25
(translation_unit) "// --rclsid.h------------------------------------------------------------------ \n// \n// Defines the identifiers for the Rules Class. \n// \n// Identifiers defined: \n// \n// LIBID_rulecls \n// \n// IID_IExchangeFolderRules \n// \n// Copyright 1986 - 1998 Microsoft Cor...
97
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.16, "nodes": 48, "errors": 0, "source_hash": "f4c20d3639bb5c6d8a80196b80cb7f19b1680c1ce3a28ce4c2fca3e8282a8e19", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
1,169
c
/* ******************************************************************* * * Copyright 2016 Intel Corporation All rights reserved. * *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
30.27
301
(translation_unit) "/*\n *******************************************************************\n *\n * Copyright 2016 Intel Corporation All rights reserved.\n *\n *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use t...
2,070
0
{"language": "c", "success": true, "metadata": {"lines": 301, "avg_line_length": 30.27, "nodes": 1224, "errors": 0, "source_hash": "5305adab0d637c74fa285c68e7fe969660fe80e513f59001622c19c33e891181", "categorized_nodes": 855}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,170
c
/*********************************************************************** * FILENAME : spi_mc.h * * PURPOSE : * Header for SPI module * Initialization of SPI master mode * * FUNCTIONS : * void SPI_MC_Initialize(void); * void SPI_MC_Close(void); * BYTE SPI_MC_Write(BYTE data_out); * *...
26.21
42
(translation_unit) "/***********************************************************************\n* FILENAME : spi_mc.h\n*\n* PURPOSE :\n* Header for SPI module\n* Initialization of SPI master mode\n*\n* FUNCTIONS :\n* void SPI_MC_Initialize(void);\n* void SPI_MC_Close(void);\n* BYTE SP...
75
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.21, "nodes": 57, "errors": 0, "source_hash": "c8c2337a8c606284cb5df4be669b128df2084d6b9b8d29c2e9a1c467d20d7e66", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,171
c
/* * stringify.c * Turns input from stdin into a C string definition written on * stdout. Adds quotes, newline characters, and backslashes as * needed. * * Copyright (c) 2007 <NAME> * See the file COPYING for copying permissions */ #include <stdio.h> #include <stdlib.h> void stringify(const char* name...
22.24
42
(translation_unit) "/*\n * stringify.c\n * Turns input from stdin into a C string definition written on\n * stdout. Adds quotes, newline characters, and backslashes as\n * needed.\n *\n * Copyright (c) 2007 <NAME>\n * See the file COPYING for copying permissions\n */\n#include <stdio.h>\n#include <stdlib.h>\n\n...
303
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.24, "nodes": 179, "errors": 0, "source_hash": "901df5b31e212fc27073f2d1802a5be305de2203e75895392feab9fbdfd949f2", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,172
c
// -*- C++ -*- // $Id: Session.h 96986 2013-04-11 16:39:42Z mesnier_p $ // #ifndef LOG_WALKER_SESSION_H #define LOG_WALKER_SESSION_H #include "ace/Hash_Map_Manager.h" #include "ace/RB_Tree.h" #include "ace/Functor.h" #include "ace/SString.h" #include "ace/Synch.h" class Log; class HostProcess; class Endpoint; type...
33.19
47
(translation_unit) "// -*- C++ -*-\n\n// $Id: Session.h 96986 2013-04-11 16:39:42Z mesnier_p $\n//\n\n#ifndef LOG_WALKER_SESSION_H\n#define LOG_WALKER_SESSION_H\n\n#include "ace/Hash_Map_Manager.h"\n#include "ace/RB_Tree.h"\n#include "ace/Functor.h"\n#include "ace/SString.h"\n#include "ace/Synch.h"\n\nclass Log;\nclass...
426
16
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.19, "nodes": 271, "errors": 0, "source_hash": "381677c9822ee61f541b67e91b675663b0c687e4846e6ef57fd736e9a5b3a27b", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,173
c
/** * @file queue.c */ #include <stdio.h> #include <stdlib.h> #include "queue.h" void initialize_queue(Queue *pq) { pq->front = pq->rear = NULL; pq->items = 0; } int queue_is_full(const Queue *pq) { return pq->items == MAXQUEUE; } int queue_is_empty(const Queue *pq) { return pq->items == 0; } int queue_item...
19.45
64
(translation_unit) "/**\n * @file queue.c\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "queue.h"\n\nvoid initialize_queue(Queue *pq)\n{\n pq->front = pq->rear = NULL;\n pq->items = 0;\n}\n\nint queue_is_full(const Queue *pq)\n{\n return pq->items == MAXQUEUE;\n}\n\nint queue_is_empty(const Queue *pq)\n{\...
430
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 19.45, "nodes": 261, "errors": 0, "source_hash": "e474c9a593bf33b7b582f61ecf838d13f26bd2dbafd85914bf34e6caa8e3b088", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,174
c
#ifndef __MACHINE_BASE_H__ #define __MACHINE_BASE_H__ #include "include/linked_list.h" #include <cuda.h> #include <cuda_runtime.h> #include <include/job_base.h> typedef struct MachineBase MachineBase; MachineBase * newMachineBase(unsigned int machine_no); struct MachineBase{ LinkedListElement * root; LinkedListEl...
35.67
30
(translation_unit) "#ifndef __MACHINE_BASE_H__\n#define __MACHINE_BASE_H__\n\n#include "include/linked_list.h"\n#include <cuda.h>\n#include <cuda_runtime.h>\n#include <include/job_base.h>\n\ntypedef struct MachineBase MachineBase;\n\nMachineBase * newMachineBase(unsigned int machine_no);\n\nstruct MachineBase{\n Linked...
349
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.67, "nodes": 266, "errors": 0, "source_hash": "c948fe9c10513239a1d238fbf2156faf3a98017960b3a21abf209bc92a104b03", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,175
c
#pragma once #include <string> #include <vector> using std::string; using std::vector; namespace nocg { unsigned int loadShaders(vector<string> shaderFiles); // loads texture and returns texture id unsigned int loadTexture(const string& fileName, bool repeat); } // namespace nocg
17.88
16
(translation_unit) "#pragma once \n \n#include <string> \n#include <vector> \n \nusing std::string; \nusing std::vector; \n \nnamespace nocg { \n \nunsigned int loadShaders(vector<string> shaderFiles); \n \n// loads texture and returns texture id \nunsigned int loadTexture(const string& fileName, bool repeat); \n \n} /...
72
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.88, "nodes": 49, "errors": 0, "source_hash": "af467b2d68c5d05fe4e7e420e952cd38c5296e4ffd39dabcdcb8f544cdcfce2c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,176
c
/*read 15 no but sum only +ve*/ #include<stdio.h> void main() { int n, sum, i; sum = 0; for(i=0;i<15;i++){ printf("\nEnter the value of n:"); scanf("%d",&n); if(n>0) sum+=n; else continue; } }
11.87
15
(translation_unit) "/*read 15 no but sum only +ve*/\n#include<stdio.h>\nvoid main()\n{\nint n, sum, i;\nsum = 0;\nfor(i=0;i<15;i++){\nprintf("\nEnter the value of n:");\nscanf("%d",&n);\nif(n>0)\nsum+=n;\nelse\ncontinue;\n}\n}\n" (comment) "/*read 15 no but sum only +ve*/" (preproc_include) "#include<stdio.h>\n" ...
96
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 11.87, "nodes": 53, "errors": 0, "source_hash": "cb0aaefcbd72d9eed40b8c3ec4820b34a8fb95b40c3fb1fe25c0a8b693d8a9c1", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,177
c
#ifndef _AVR_INTERRUPT_H_ #define _AVR_INTERRUPT_H_ #include "io.h" #define ISR(vector,...) void vector(void); \ void vector(void) extern "C" { void cli(void); void sei(void); } #endif
13.43
14
(translation_unit) "#ifndef _AVR_INTERRUPT_H_ \n#define _AVR_INTERRUPT_H_ \n \n#include "io.h" \n \n#define ISR(vector,...) void vector(void); \ \nvoid vector(void) \n \nextern "C" { \nvoid cli(void); \nvoid sei(void); \n} \n \n#endif \n" (preproc_ifdef) "#ifndef _AVR_INTERRUPT_H_ \n#define _AVR_INTERRUPT_H_ \n \n#in...
53
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 13.43, "nodes": 33, "errors": 0, "source_hash": "cf7373fc7c51704978eff10a83249eb1dddf4cc36f31d6a7440d4a8cf979687f", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,178
c
/* * gpio - GPIO driver * * Copyright (c) 2018, Archos S.A. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notic...
31.2
166
(translation_unit) "/*\n * gpio - GPIO driver\n *\n * Copyright (c) 2018, Archos S.A.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain t...
1,267
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 31.2, "nodes": 841, "errors": 0, "source_hash": "3dacaceb9c4da5fe5b25790baa51db25ea73febf089c3c8a488819944515e4b6", "categorized_nodes": 611}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,179
c
// // HKRefusingGoodsViewController.h // HongKZH_IOS // // Created by wanghui on 2018/9/6. // Copyright © 2018年 hkzh. All rights reserved. // #import "HKBaseViewController.h" @interface HKRefusingGoodsViewController : HKBaseViewController @property (nonatomic, copy)NSString *orderNumber; @property (nonatomic,assi...
28.5
12
(translation_unit) "//\n// HKRefusingGoodsViewController.h\n// HongKZH_IOS\n//\n// Created by wanghui on 2018/9/6.\n// Copyright © 2018年 hkzh. All rights reserved.\n//\n\n#import "HKBaseViewController.h"\n\n@interface HKRefusingGoodsViewController : HKBaseViewController\n@property (nonatomic, copy)NSString *orderNu...
52
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.5, "nodes": 35, "errors": 0, "source_hash": "891df6b8849dfa26964705257b4cc6e73754864ee54b2e97c724f2a4edc36111", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"HKB...
1,180
c
#ifndef __UART_H__ #define __UART_H__ #include <stdint.h> #include "tm4c1294ncpdt.h" void Uart_Init(void); void Uart_Transmit(uint32_t value); #endif
17.88
8
(translation_unit) "#ifndef __UART_H__\n#define __UART_H__\n\n#include <stdint.h>\n#include "tm4c1294ncpdt.h"\n\nvoid Uart_Init(void);\n\nvoid Uart_Transmit(uint32_t value);\n\n\n#endif\n" (preproc_ifdef) "#ifndef __UART_H__\n#define __UART_H__\n\n#include <stdint.h>\n#include "tm4c1294ncpdt.h"\n\nvoid Uart_Init(void...
38
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.88, "nodes": 28, "errors": 0, "source_hash": "2ea1fe310d8a9f06f12feaaf50fcd40f4464b7a7ddcc99c16639b9ff266dc579", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,181
c
/* ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
33.1
69
(translation_unit) "/*\n##########################################################################\n# If not stated otherwise in this file or this component's LICENSE\n# file the following copyright and licenses apply:\n#\n# Copyright 2019 RDK Management\n#\n# Licensed under the Apache License, Version 2.0 (the "Licens...
403
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.1, "nodes": 264, "errors": 0, "source_hash": "8dc6ea3e0f9fb847f2a38abf9fb08e31390ba078f494a53ca0a883c317e9c670", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,182
c
/****************************************************************************/ /// @file GUIDialog_AppSettings.h /// @author <NAME> /// @author <NAME> /// @date Mon, 08.03.2004 /// @version $Id$ /// // The application-settings dialog /****************************************************************************/...
34.21
81
(translation_unit) "/****************************************************************************/\n/// @file GUIDialog_AppSettings.h\n/// @author <NAME>\n/// @author <NAME>\n/// @date Mon, 08.03.2004\n/// @version $Id$\n///\n// The application-settings dialog\n/*************************************************...
208
2
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 34.21, "nodes": 114, "errors": 0, "source_hash": "0dec7b35e9c35aff5534ee7c77c691127d4a46676cf227db5b0508cfddb435ab", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,183
c
//octal to decimal #include <stdio.h> int main() { int oct,i=1,dec=0,d,p=1; printf("Give any Octal Number Input between 0-7 : "); scanf("%d",&oct); for(int j=oct;j>0;j=j/10) { d = j%10; if(i==1) { p=p*1; } else{ p=p*8; } ...
16.91
23
(translation_unit) "//octal to decimal\n\n#include <stdio.h>\n\nint main()\n{\n int oct,i=1,dec=0,d,p=1;\n printf("Give any Octal Number Input between 0-7 : ");\n scanf("%d",&oct);\n for(int j=oct;j>0;j=j/10)\n {\n d = j%10;\n if(i==1)\n {\n p=p*1;\n }\n else{...
169
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 16.91, "nodes": 101, "errors": 0, "source_hash": "6485c8e29df29f634c39590c101e763976a082c55c27a5301d6d4b384dc897fc", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,184
c
/* * scaleg_main: main program for image scaling * * This program is a hack from the 'zoom' program by <NAME>, UC Berkeley * The zoom program was modified to work with the Hips file format. * Since Hips file are not color, most (but not all) of the code for * handling color has been thrown out. Input and outpu...
27.04
249
(translation_unit) "/*\n * scaleg_main: main program for image scaling\n *\n * This program is a hack from the 'zoom' program by <NAME>, UC Berkeley\n * The zoom program was modified to work with the Hips file format.\n * Since Hips file are not color, most (but not all) of the code for\n * handling color has been t...
2,798
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 27.04, "nodes": 1674, "errors": 0, "source_hash": "d33abcf4f518ea7bb68100398faa6138fa3e34d4166790c07e8c5ccb5991c03f", "categorized_nodes": 1262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,185
c
/** * @file llstringtable.h * @brief The LLStringTable class provides a _fast_ method for finding * unique copies of strings. * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribut...
25.03
190
(translation_unit) "/** \n * @file llstringtable.h\n * @brief The LLStringTable class provides a _fast_ method for finding\n * unique copies of strings.\n *\n * $LicenseInfo:firstyear=2001&license=viewerlgpl$\n * Second Life Viewer Source Code\n * Copyright (C) 2010, Linden Research, Inc.\n * \n * This library is free ...
1,229
41
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 25.03, "nodes": 764, "errors": 0, "source_hash": "015b1b9dec24037c147e37c792a0e59146efe36416d5cbe1c47a69abfd0566b3", "categorized_nodes": 502}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,186
c
/* * module_serial.h * * Created on: Dec 26, 2016 * Author: kolban */ #ifndef MAIN_INCLUDE_MODULE_SERIAL_H_ #define MAIN_INCLUDE_MODULE_SERIAL_H_ #include <duktape.h> duk_ret_t ModuleSerial(duk_context *ctx); #endif /* MAIN_INCLUDE_MODULE_SERIAL_H_ */
22.91
11
(translation_unit) "/*\n * module_serial.h\n *\n * Created on: Dec 26, 2016\n * Author: kolban\n */\n\n#ifndef MAIN_INCLUDE_MODULE_SERIAL_H_\n#define MAIN_INCLUDE_MODULE_SERIAL_H_\n\n#include <duktape.h>\n\nduk_ret_t ModuleSerial(duk_context *ctx);\n\n#endif /* MAIN_INCLUDE_MODULE_SERIAL_H_ */\n" (comment) "/*\...
26
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.91, "nodes": 20, "errors": 0, "source_hash": "c43e8cf6adaede98b6ef9796dd2b136d8b59f2e3a671b110f710698b281ac950", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,187
c
#pragma once #include <vector> #include <stdlib.h> #include "..\effects\screen_filter.h" #include "..\core\timer.h" #include "..\camera.h" #include "tree.h" #include "squirrel.h" #include "gravel.h" #include "guard_rail.h" #include "car.h" #include "bike.h" #include "pinecone.h" #include "rain.h" #include "boulder.h" #...
32.74
54
(translation_unit) "#pragma once\n#include <vector>\n#include <stdlib.h>\n#include "..\effects\screen_filter.h"\n#include "..\core\timer.h"\n#include "..\camera.h"\n#include "tree.h"\n#include "squirrel.h"\n#include "gravel.h"\n#include "guard_rail.h"\n#include "car.h"\n#include "bike.h"\n#include "pinecone.h"\n#includ...
575
17
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 32.74, "nodes": 381, "errors": 0, "source_hash": "a4737b55f54c5ad0fb65a33b06b51ef8a899d388c666db63f892e9799bf793e2", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,188
c
/* Copyright (C) 2006, <NAME>. All Rights Reserved. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your o...
31.14
85
(translation_unit) "/*\n Copyright (C) 2006, <NAME>.\n All Rights Reserved.\n\n This file is part of GtkRadiant.\n\n GtkRadiant is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of t...
589
5
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 31.14, "nodes": 376, "errors": 0, "source_hash": "aca9c1b02570e540ac93eb71f595f79e9bc167e0cf4411ef5ca22a56182ac7e8", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
1,189
c
// // WelcomeVC.h // TRProject // // Created by Jian on 2016/11/30. // Copyright © 2016年 Tedu. All rights reserved. // #import <UIKit/UIKit.h> @interface WelcomeVC : UIViewController @end
18.2
10
(translation_unit) "//\n// WelcomeVC.h\n// TRProject\n//\n// Created by Jian on 2016/11/30.\n// Copyright © 2016年 Tedu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface WelcomeVC : UIViewController\n\n@end\n" (comment) "//" (comment) "// WelcomeVC.h" (comment) "// TRProject" (comment) "//...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.2, "nodes": 12, "errors": 0, "source_hash": "adca1b6f9d183340a47c7ec58b50bf8f2e4940555b17af4ba8681cc6bf7e7232", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
1,190
c
#include "main.h" int main(int argc, char const *argv[]) { // Windows size. const unsigned screenWidth = 1080; const unsigned screenHeight = 600; // The first thing. Init the window. InitWindow(screenWidth, screenHeight, APP_NAME); SetTargetFPS(60); game_start(); CloseWi...
20.38
16
(translation_unit) "#include "main.h"\n\nint main(int argc, char const *argv[])\n{\n // Windows size.\n const unsigned screenWidth = 1080;\n const unsigned screenHeight = 600;\n\n // The first thing. Init the window.\n InitWindow(screenWidth, screenHeight, APP_NAME);\n SetTargetFPS(60);\n \n gam...
91
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.38, "nodes": 49, "errors": 0, "source_hash": "f758f438836990b1c0eaa633b6219fd2ffb7eae9ae4c1bebdfc85c8f705ac641", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,191
c
#ifndef INTR_IDT_H #define INTR_IDT_H #include <types.h> typedef struct idt_desc { u16 size; // Size of IDT - 1 u32 offset; // Location of IDT } __packed idt_desc_t; extern void idt_lidt(idt_desc_t *desc); typedef struct idt_entry { u16 off_low; // Lower 16-bits of offset u16 sel; // Selecto...
40.53
34
(translation_unit) "#ifndef INTR_IDT_H\n#define INTR_IDT_H\n\n#include <types.h>\n\ntypedef struct idt_desc {\n u16 size; // Size of IDT - 1\n u32 offset; // Location of IDT\n} __packed idt_desc_t;\n\nextern void idt_lidt(idt_desc_t *desc);\n\ntypedef struct idt_entry {\n u16 off_low; // Lower 16-bits of of...
214
2
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 40.53, "nodes": 148, "errors": 0, "source_hash": "44a95a24de20a6fde898277758e7bfbb420b0051d0f78fa023ed410eb12cf2c5", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,192
c
// Copyright 2018 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 BASE_TASK_SEQUENCE_MANAGER_LAZY_NOW_H_ #define BASE_TASK_SEQUENCE_MANAGER_LAZY_NOW_H_ #include "fldserver/base/optional.h" #include "fldserver/ba...
30.75
40
(translation_unit) "// Copyright 2018 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 BASE_TASK_SEQUENCE_MANAGER_LAZY_NOW_H_\n#define BASE_TASK_SEQUENCE_MANAGER_LAZY_NOW_H_\n\n#include "fldserver/base/optiona...
188
7
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.75, "nodes": 102, "errors": 0, "source_hash": "c80566c847a99f01394567264b3a4f91f10e0468b6f598d8cadf5abdf35f51f9", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,193
c
/* * imconn.h * * Created on: 2013-6-5 * Author: ziteng */ #ifndef IMCONN_H_ #define IMCONN_H_ #include "netlib.h" #include "util.h" #include "impdu.h" #define SERVER_HEARTBEAT_INTERVAL 5000 #define SERVER_TIMEOUT 30000 #define CLIENT_HEARTBEAT_INTERVAL 5000 #define CLIENT_TIMEOUT 30000 #define REA...
26.76
49
(translation_unit) "/*\n * imconn.h\n *\n * Created on: 2013-6-5\n * Author: ziteng\n */\n\n#ifndef IMCONN_H_\n#define IMCONN_H_\n\n#include "netlib.h"\n#include "util.h"\n#include "impdu.h"\n\n#define SERVER_HEARTBEAT_INTERVAL 5000\n#define SERVER_TIMEOUT 30000\n#define CLIENT_HEARTBEAT_INTERVAL 5000\n#define...
364
15
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.76, "nodes": 248, "errors": 0, "source_hash": "c24f2aa8792acbb9db159930fc817595c0653c098b05cbdb8fdd6fcd04d04984", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,194
c
/** ****************************************************************************** * @file : main.c * @author : Auto-generated by STM32CubeIDE * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy...
32.91
55
(translation_unit) "/**\n ******************************************************************************\n * @file : main.c\n * @author : Auto-generated by STM32CubeIDE\n * @brief : Main program body\n ******************************************************************************\n * @attenti...
216
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 32.91, "nodes": 146, "errors": 0, "source_hash": "c6c490e845376d5baffe56faaa8a8d72e24fee15811e6233e6770c63ecf22bfc", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,195
c
/** * @file oneM2M.h * * @brief oneM2M API header * * Copyright (C) 2016. SK Telecom, All Rights Reserved. * Written 2016, by SK Telecom */ #ifndef _oneM2M_H_ #define _oneM2M_H_ #include "config.h" #ifdef __cplusplus extern "C" { #endif /* **************************************** * Enumerations ********...
26.7
60
(translation_unit) "/**\n * @file oneM2M.h\n *\n * @brief oneM2M API header\n *\n * Copyright (C) 2016. SK Telecom, All Rights Reserved.\n * Written 2016, by SK Telecom\n */\n\n#ifndef _oneM2M_H_\n#define _oneM2M_H_\n\n#include "config.h"\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n/*\n *************************...
271
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 26.7, "nodes": 201, "errors": 0, "source_hash": "f9e0935f38c94fb19c0bbdd1a64136621733a343967b5be314b33b1179668065", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,196
c
/* * Day 1, Challenge 2 - Parens error detector. * 2015-06-12 (December 6, 2015) * <NAME> (wastevensv) */ #include <stdio.h> int main( int argc, char *argv[]) { char c = '\0'; // Current character in buffer. int n = 0; // Floor number. int p = 1; // Position counter. while(c ...
30
22
(translation_unit) "/*\n * Day 1, Challenge 2 - Parens error detector.\n * 2015-06-12 (December 6, 2015)\n * <NAME> (wastevensv)\n */\n#include <stdio.h>\n\nint main( int argc, char *argv[]) {\n char c = '\0'; // Current character in buffer.\n int n = 0; // Floor number.\n int p = 1; // ...
153
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.0, "nodes": 91, "errors": 0, "source_hash": "0e8540884ac62caff3d09e6cda245acd4222e2ca23b749ed9c562a588acc5137", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,197
c
/**************************************************************************** * * (c) 2017 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ******************************************...
41.04
45
(translation_unit) "/****************************************************************************\n *\n * (c) 2017 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>\n *\n * QGroundControl is licensed according to the terms in the file\n * COPYING.md in the root of the source code directory.\n *\n ***************...
319
17
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 41.04, "nodes": 175, "errors": 0, "source_hash": "51ac6fb0fc6a9c9aa56044136837bacd52f42fe49695dc660beba63d24f746df", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,198
c
/* i830.h -- Intel I830 DRM template customization -*- linux-c -*- * Created: Thu Feb 15 00:01:12 2001 by <EMAIL> * * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associ...
41.65
118
(translation_unit) "/* i830.h -- Intel I830 DRM template customization -*- linux-c -*-\n * Created: Thu Feb 15 00:01:12 2001 by <EMAIL>\n *\n * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.\n * All Rights Reserved.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy ...
187
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 41.65, "nodes": 163, "errors": 0, "source_hash": "700ca82bc79e961b87b5c4554d7fb47fca23aff0466da2503bad0fa7775e6672", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,199