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
#pragma once #include "Event.h" #include "Framework/KeyCodes.h" namespace Immortal { class KeyEvent : public Event { public: KeyEvent(const int keyCode) : keyCode{ keyCode } { } KeyCode GetKeyCode() const { return ncast<KeyCode>(keyCode); } DEFINE_EVENT_CATEGORY(Categor...
20.45
71
(translation_unit) "#pragma once\n\n#include "Event.h"\n#include "Framework/KeyCodes.h"\n\nnamespace Immortal\n{\n\nclass KeyEvent : public Event\n{\npublic:\n KeyEvent(const int keyCode) :\n keyCode{ keyCode }\n {\n\n }\n\n KeyCode GetKeyCode() const\n {\n return ncast<KeyCode>(keyCode);\n...
417
33
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 20.45, "nodes": 199, "errors": 0, "source_hash": "aa1dd07d54380c35d249f627dcff24f6e305648ed8519b28230dbc3cd061be0f", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,300
c
// // OKInfoViewProperties.h // OKPoEMM // // Created by <NAME> on 2013-02-06. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface OKInfoViewProperties : NSObject @property (nonatomic, retain) NSMutableDictionary *properties; + (OKInfoViewProperties*) sharedInstanc...
28.81
16
(translation_unit) "//\n// OKInfoViewProperties.h\n// OKPoEMM\n//\n// Created by <NAME> on 2013-02-06.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface OKInfoViewProperties : NSObject\n\n@property (nonatomic, retain) NSMutableDictionary *properties;\n\n+ (OK...
118
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.81, "nodes": 70, "errors": 0, "source_hash": "3987f67288034c99e85b5384f927095e768c3691126e195de30c732c72f3c0f0", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,301
c
#pragma once #define PIN_ENCODER_SW 2 #define PIN_ENCODER_A 12 #define PIN_ENCODER_B 13 int encoder_get_delta(void); void encoder_reset_delta(void); void encoder_init(void); void encoder_process_input(void);
25
8
(translation_unit) "#pragma once\n\n#define PIN_ENCODER_SW 2\n#define PIN_ENCODER_A 12\n#define PIN_ENCODER_B 13\n\nint encoder_get_delta(void);\n\nvoid encoder_reset_delta(void);\n\nvoid encoder_init(void);\n\nvoid encoder_process_input(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 25.0, "nodes": 43, "errors": 0, "source_hash": "107034b4b565422a85dea0393e13ee3cf7dbc2fd010b22650b9e7e8fd6ac9fb0", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,302
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:40:14 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/ContactsFoundation.framework/ContactsFoundation * classdump-dyld is licensed under GPLv3, Copyright ...
29.61
18
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:40:14 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/ContactsFoundation.framework/ContactsFoundation\n* classdump-dyld is license...
103
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.61, "nodes": 55, "errors": 0, "source_hash": "7e6452b3d6883ab0f3501fe6d74376b3768351381de893ce35fc79f0ddf532f7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
7,303
c
#pragma once #include "cart.h" #include "fwd.h" using restbes::connectExec; using restbes::connectGet; namespace restbes { class Client { private: id_t m_id; std::string m_email; std::string m_name; Cart m_cart; public: Client() : m_id(0), m_cart(){}; explicit Client(id_t client_id) : m_id...
33.86
35
(translation_unit) "#pragma once\n\n#include "cart.h"\n#include "fwd.h"\n\nusing restbes::connectExec;\nusing restbes::connectGet;\n\nnamespace restbes {\n\nclass Client {\nprivate:\n id_t m_id;\n std::string m_email;\n std::string m_name;\n Cart m_cart;\n\npublic:\n Client() : m_id(0), m_cart(){};\n\n ...
416
22
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 33.86, "nodes": 231, "errors": 0, "source_hash": "dd57abf4aeac40689da0eb07d21161ed3ab1d3dcf31c59d9c91d2bc5756c4ff9", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,304
c
/*- * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)rdwr.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ /* * This routine is used to access the debuggee process from * outside the "process...
21.04
51
(translation_unit) "/*-\n * Copyright (c) 1980, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * %sccs.include.redist.c%\n */\n\n#ifndef lint\nstatic char sccsid[] = "@(#)rdwr.c 8.1 (Berkeley) 06/06/93";\n#endif /* not lint */\n\n/*\n * This routine is used to access the debuggee proc...
224
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 21.04, "nodes": 128, "errors": 0, "source_hash": "40b04534bb4f2f7f4b826552a5114223da675fb87ab11dca19e4e1093184da29", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,305
c
// // UIView+Extensions.h // UIView // // Created by DK-Li on 16/1/13. // Copyright (c) 2016年 DK-Li. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Extensions) /** * 位置 */ @property(nonatomic, assign) CGFloat x; @property(nonatomic, assign) CGFloat y; @property(nonatomic, assign) CGFloat cen...
22.95
38
(translation_unit) "//\n// UIView+Extensions.h\n// UIView\n//\n// Created by DK-Li on 16/1/13.\n// Copyright (c) 2016年 DK-Li. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (Extensions)\n/**\n * 位置\n */\n@property(nonatomic, assign) CGFloat x;\n@property(nonatomic, assign) CGFloat y;\n@pro...
244
50
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.95, "nodes": 163, "errors": 0, "source_hash": "d48da793ed41a5e669815d18b781abc43ca3816a9a2539a3a08aff41693cc6aa", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
7,306
c
// // JJWalletCell.h // PXH // // Created by louguoquan on 2018/7/25. // Copyright © 2018年 LouGuoQuan. All rights reserved. // #import <UIKit/UIKit.h> #import "JJWalletModel.h" @interface JJWalletCell : UITableViewCell @property (nonatomic,strong)JJWalletModel *model; @end
22.17
12
(translation_unit) "//\n// JJWalletCell.h\n// PXH\n//\n// Created by louguoquan on 2018/7/25.\n// Copyright © 2018年 LouGuoQuan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "JJWalletModel.h"\n\n@interface JJWalletCell : UITableViewCell\n\n@property (nonatomic,strong)JJWalletModel *model;\n\n@end\n" ...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.17, "nodes": 26, "errors": 0, "source_hash": "b16bf8b7ac1fb03263cafea9e7e954fa1443b5fa629cd618dc7b2dda81f20c44", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,307
c
// // ConfigDriverActions.h // RideDriver // // Created by <NAME> on 03/10/2018. // Copyright © 2018 FuelMe LLC. All rights reserved. // #import <Mantle/Mantle.h> @interface ConfigDriverActions : MTLModel <MTLJSONSerializing> @property (nonatomic) NSNumber *autoArriveDistanceToPickup; @property (nonatomic) NSNum...
33.57
14
(translation_unit) "//\n// ConfigDriverActions.h\n// RideDriver\n//\n// Created by <NAME> on 03/10/2018.\n// Copyright © 2018 FuelMe LLC. All rights reserved.\n//\n\n#import <Mantle/Mantle.h>\n\n@interface ConfigDriverActions : MTLModel <MTLJSONSerializing>\n\n@property (nonatomic) NSNumber *autoArriveDistanceToPic...
82
15
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.57, "nodes": 60, "errors": 0, "source_hash": "b204776c1b263be35961c5bc80875044fc86ff537bd6be358a8ed2b0da9b7b0c", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <M...
7,308
c
/** * The Forgotten Server - a free and open-source MMORPG server emulator * Copyright (C) 2019 <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 the ...
35.8
59
(translation_unit) "/**\n * The Forgotten Server - a free and open-source MMORPG server emulator\n * Copyright (C) 2019 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation...
343
13
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 35.8, "nodes": 183, "errors": 0, "source_hash": "81e0cbf2bbe8ab56895b0a3bf38b1f3102ef0e745cd058b077dfc65a4c074326", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,309
c
/** * \file * * \brief User board configuration template * */ #ifndef CONF_BOARD_H #define CONF_BOARD_H #define F_CPU 32000000UL #include <util/delay.h> #endif // CONF_BOARD_H
14.17
12
(translation_unit) "/**\n * \file\n *\n * \brief User board configuration template\n *\n */\n\n#ifndef CONF_BOARD_H\n#define CONF_BOARD_H\n#define F_CPU 32000000UL\n#include <util/delay.h>\n\n\n#endif // CONF_BOARD_H\n" (comment) "/**\n * \file\n *\n * \brief User board configuration template\n *\n */" (preproc_ifd...
17
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 14.17, "nodes": 14, "errors": 0, "source_hash": "207f7df1e6ef4f3f5d2fd8a6588b3114f948b066e2c13129d02ceb00e4204f53", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
7,310
c
#include "bandit/bandit.h" #include "phys_types/energy.hh" using namespace bandit; // const lest::test specification[] = { auto test_energy_units = []() { it("includes Joules", [&] () { Energy::Units joules = Energy::Units::Joule(); float val = static_cast<float>(joules); AssertThat(val, Equ...
39.9
42
(translation_unit) "#include "bandit/bandit.h"\n\n#include "phys_types/energy.hh"\n\nusing namespace bandit;\n\n// const lest::test specification[] = {\nauto test_energy_units = []() {\n\n it("includes Joules", [&] () {\n Energy::Units joules = Energy::Units::Joule();\n float val = static_cast<float>(joul...
705
34
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 39.9, "nodes": 354, "errors": 0, "source_hash": "471d7b243bb591f0e13036abe50ce4615e27e6aae256460f2b768a6244e7486b", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,311
c
#ifndef _AVALANCHE_LOGIN_MULTITOKENGENERATOR_H_ #define _AVALANCHE_LOGIN_MULTITOKENGENERATOR_H_ #include "AuthGenerator.h" #include <string> namespace avalanche { class MultiTokenGenerator : public AuthGenerator { private: struct UserToken { std::string username; mc::core::AuthToken token; ...
31.54
24
(translation_unit) "#ifndef _AVALANCHE_LOGIN_MULTITOKENGENERATOR_H_\n#define _AVALANCHE_LOGIN_MULTITOKENGENERATOR_H_\n\n#include "AuthGenerator.h"\n#include <string>\n\nnamespace avalanche {\n\nclass MultiTokenGenerator : public AuthGenerator {\nprivate:\n struct UserToken {\n std::string username;\n m...
214
17
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.54, "nodes": 118, "errors": 0, "source_hash": "65fae41b779a586c1439853bdd9ba124c66af2ad53fe0ebc62b090849053c283", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,312
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 MEDIA_GPU_VAAPI_TEST_VIDEO_DECODER_H_ #define MEDIA_GPU_VAAPI_TEST_VIDEO_DECODER_H_ namespace media { namespace vaapi_test { // VideoDecoder spe...
40.05
38
(translation_unit) "// 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 MEDIA_GPU_VAAPI_TEST_VIDEO_DECODER_H_\n#define MEDIA_GPU_VAAPI_TEST_VIDEO_DECODER_H_\n\nnamespace media {\nnamespace vaapi...
189
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 40.05, "nodes": 106, "errors": 0, "source_hash": "f885d844e002c340cf59630c3dfc51ded3915216b2f3c251418861724b24dbdb", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,313
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <UIKit/UIView.h> @class UIImageView, UILabel; @interface APTransNoticeBarView : UIView { UILabel *_marqueeLabel; UIImageVie...
33.42
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <UIKit/UIView.h>\n\n@class UIImageView, UILabel;\n\n@interface APTransNoticeBarView : UIView\n{\n UILabe...
153
16
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.42, "nodes": 91, "errors": 0, "source_hash": "c96a4b7161134101b92407dd3d54ae9e32ddb07b9a672681a6e2f534263f55b1", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,314
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> bool is_number(char *s) { while (*s == ' ') { ++s; } bool found_num = false; if (*s == '-' || *s == '+') { ++s; } while (isdigit(*s)) { found_num = true; ++s; } if (*s == '.') ...
18.17
66
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <ctype.h>\n\nbool is_number(char *s)\n{\n while (*s == ' ') {\n ++s;\n }\n bool found_num = false;\n if (*s == '-' || *s == '+') {\n ++s;\n }\n while (isdigit(*s)) {\n found_num = true;\n ...
502
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 18.17, "nodes": 298, "errors": 0, "source_hash": "505189653765d88f7df478fa8bd6b4ba1094fd562b447d14fa81dd0570b9fc5f", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,315
c
// // SWUtils.h // SkyWallet // // Created by PanYibin on 2018/3/17. // Copyright © 2018年 Facebook. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, ScreenType){ ScreenTypeiPhoneSmall,//iPhone 5, SE, etc ScreenTypeiPhoneMiddle, //iPhone 6, 7, etc ScreenTypeiPhonePlus, //...
29.7
20
(translation_unit) "//\n// SWUtils.h\n// SkyWallet\n//\n// Created by PanYibin on 2018/3/17.\n// Copyright © 2018年 Facebook. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSUInteger, ScreenType){\n ScreenTypeiPhoneSmall,//iPhone 5, SE, etc\n ScreenTypeiPhoneMiddle, //iPhone 6, 7...
119
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.7, "nodes": 71, "errors": 0, "source_hash": "b9daa8e51ed297154ac54987f0495911224574491afa2a8ab5e59f7f7425a1d6", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
7,316
c
// // ViewController.h // richnotificationsObjc // // Created by Pushwoosh // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
14.6
10
(translation_unit) "//\n// ViewController.h\n// richnotificationsObjc\n//\n// Created by Pushwoosh\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// richnotificationsObjc" (comment) "//" (comment) "//...
21
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.6, "nodes": 11, "errors": 0, "source_hash": "e30f4ba1eaca375977b411d3df3c36409ead7895211fce6e36f8b5e0cbcdd977", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
7,317
c
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Routines for verifying a firmware image's signature. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "2common.h" #in...
23.73
187
(translation_unit) "/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Routines for verifying a firmware image's signature.\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string...
1,217
1
{"language": "c", "success": true, "metadata": {"lines": 187, "avg_line_length": 23.73, "nodes": 681, "errors": 0, "source_hash": "ab064c9e531c3b1701cc15e332d511f45407c03b94e5eb4d79e02d99ddf2a995", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,318
c
// // TBVListFigureValidator.h // TBVListAdapterManager // // Created by tripleCC on 2017/11/4. // #import "TBVListValidator.h" NS_SWIFT_NAME(ListFigureValidator) @interface TBVListFigureValidator : TBVListValidator @end
21.4
10
(translation_unit) "//\n// TBVListFigureValidator.h\n// TBVListAdapterManager\n//\n// Created by tripleCC on 2017/11/4.\n//\n\n#import "TBVListValidator.h"\n\nNS_SWIFT_NAME(ListFigureValidator)\n@interface TBVListFigureValidator : TBVListValidator\n\n@end\n" (comment) "//" (comment) "// TBVListFigureValidator.h...
30
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.4, "nodes": 17, "errors": 0, "source_hash": "b56084b53f91220aec9c908cbc19f47a6f117fc613350929cadd71fda79491ed", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"T...
7,319
c
#ifndef CHINESE_CALENDAR_DB_H_INCLUDED #define CHINESE_CALENDAR_DB_H_INCLUDED #ifdef _MSC_VER #pragma once #endif #include <exception> #include <stdint.h> #include <utility> class JKChineseCalendarDB { private: static const int YEAR_BASE = 1901; // 阴历数据的起始年 static const int YEAR_NUM = 150; // 阴历数据...
30.85
141
(translation_unit) "#ifndef CHINESE_CALENDAR_DB_H_INCLUDED\n#define CHINESE_CALENDAR_DB_H_INCLUDED\n\n#ifdef _MSC_VER\n#pragma once\n#endif\n\n#include <exception>\n#include <stdint.h>\n#include <utility>\n\nclass JKChineseCalendarDB\n{\nprivate:\n \n static const int YEAR_BASE = 1901; // 阴历数据的起始年\n static c...
897
17
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 30.85, "nodes": 584, "errors": 0, "source_hash": "1f789acfa91f30eef61da3174ad6a8b867637e8a68999328a625e4654198e48f", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,320
c
/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - <NAME> * * RetroArch 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 Found- * ation, either version 3 of the License, or (at your option) any la...
43.5
143
(translation_unit) "/* RetroArch - A frontend for libretro.\n * Copyright (C) 2011-2017 - <NAME>\n * \n * RetroArch is free software: you can redistribute it and/or modify it under the terms\n * of the GNU General Public License as published by the Free Software Found-\n * ation, either version 3 of the License, o...
1,505
3
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 43.5, "nodes": 1063, "errors": 0, "source_hash": "9a2c08ce64ffd973a56a8fedd610117b21443fe906f035406f949905a578f19f", "categorized_nodes": 570}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,321
c
#ifndef HMAP_IMP_CHAD #define HMAP_IMP_CHAD #include <stdbool.h> #include <stdint.h> #include <stddef.h> typedef void (*destroy_cb)(void* data); typedef struct { size_t capacity; destroy_cb destroy; uint32_t size; void** list; }hmap; hmap* hmap_init(size_t capacity, destroy_cb destroy); bool hmap_ex...
26.86
21
(translation_unit) "#ifndef HMAP_IMP_CHAD\n#define HMAP_IMP_CHAD\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stddef.h>\n\ntypedef void (*destroy_cb)(void* data);\n\ntypedef struct\n{\n size_t capacity;\n destroy_cb destroy;\n uint32_t size;\n void** list;\n}hmap;\n\nhmap* hmap_init(size_t capaci...
211
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.86, "nodes": 157, "errors": 0, "source_hash": "82d77d1eea24bfe2a5ad6651729ed4d06c2bec8c8d06ebac71adf51aeee8c594", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,322
c
/* * Network Configuration Module * * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. 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.apac...
28.2
222
(translation_unit) "/*\n * Network Configuration Module\n *\n * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. 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 Licen...
1,666
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 28.2, "nodes": 923, "errors": 0, "source_hash": "37ae884d2d6dc2d2166537cbdd3532b7cbc433356be65b35d4866afb835e25f6", "categorized_nodes": 629}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,323
c
#pragma once #include <robmikh.common/DesktopWindow.h> struct DummyWindow : robmikh::common::desktop::DesktopWindow<DummyWindow> { static const std::wstring ClassName; static void RegisterWindowClass(); DummyWindow(std::wstring const& titleString); LRESULT MessageHandler(UINT const message, WPARAM const w...
36.21
14
(translation_unit) "#pragma once\n#include <robmikh.common/DesktopWindow.h>\n\nstruct DummyWindow : robmikh::common::desktop::DesktopWindow<DummyWindow>\n{\n static const std::wstring ClassName;\n static void RegisterWindowClass();\n DummyWindow(std::wstring const& titleString);\n LRESULT MessageHandler(UINT c...
156
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.21, "nodes": 80, "errors": 0, "source_hash": "c6c7e584f9372e96b100a64294a65f9552347cdd20bdd9d48a63a867f42ba198", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,324
c
/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */ #ifndef UTILS_MATH_H #define UTILS_MATH_H #include <cmath> //c++11 no longer defines M_PI, so add our own constant. #ifndef M_PI #define M_PI 3.14159265358979323846 #endif namespace cura { static constexpr float sqrt2 = 1.41421356237;...
35
23
(translation_unit) "/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */\n#ifndef UTILS_MATH_H\n#define UTILS_MATH_H\n\n#include <cmath>\n\n\n//c++11 no longer defines M_PI, so add our own constant.\n#ifndef M_PI\n#define M_PI 3.14159265358979323846\n#endif\n\nnamespace cura\n{\n\nstatic con...
159
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 35.0, "nodes": 113, "errors": 0, "source_hash": "c6250c54e08d6ccca0a3b07ebdb1e9e9d7993974bc1068a7875fd062e91d72c7", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,325
c
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause #include <stddef.h> #include <linux/in.h> #include <linux/if_ether.h> #include <linux/if_packet.h> #include <linux/ipv6.h> #include <linux/seg6.h> #include <linux/errno.h> /* HIKe Chain IDs and XDP eBPF/HIKe programs IDs */ #include "minimal.h" #include "hike_vm.h"...
30.65
108
(translation_unit) "// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause\n\n#include <stddef.h>\n#include <linux/in.h>\n#include <linux/if_ether.h>\n#include <linux/if_packet.h>\n#include <linux/ipv6.h>\n#include <linux/seg6.h>\n#include <linux/errno.h>\n\n/* HIKe Chain IDs and XDP eBPF/HIKe programs IDs */\n#include "m...
761
2
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 30.65, "nodes": 419, "errors": 0, "source_hash": "fda25eecd82eda986086897c6148ee4728487e4c0e0f52dad8a7b175c0637fcc", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,326
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Mondrian/MOMediaItem.h> @interface MOMediaFileSystemItem : MOMediaItem { } + (id)urlForFileURL:(id)arg1; - (id)thumbnailImageOperationForResolution:(unsigned long long)arg1 siz...
38.71
14
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <Mondrian/MOMediaItem.h>\n\n@interface MOMediaFileSystemItem : MOMediaItem\n{\n}\n\n+ (id)urlForFileURL:(id)arg1;\n- (id)thumbnailImageOperationForResolu...
157
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 38.71, "nodes": 90, "errors": 0, "source_hash": "85121655fac9b60e0007f876f097a06698feab2c9dd5d07675acfb35dabd0d64", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,327
c
#pragma once #define MAX_LOGS 1000 #define LOG_INFO 0 #define LOG_SUCESS 1 #define LOG_WARN 2 #define LOG_ERROR 3 #include <iostream> #include <string> #include <windows.h> struct Log { int level = LOG_INFO; std::string message = ""; }; struct Console { Console(); ~Console(); void WriteLine(int level, std::s...
18
29
(translation_unit) "#pragma once\n\n#define MAX_LOGS 1000\n#define LOG_INFO 0\n#define LOG_SUCESS 1\n#define LOG_WARN 2\n#define LOG_ERROR 3\n\n#include <iostream>\n#include <string>\n#include <windows.h>\n\nstruct Log\n{\n int level = LOG_INFO;\n std::string message = "";\n};\n\nstruct Console\n{\n Console();\n\n ~Con...
192
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.0, "nodes": 140, "errors": 0, "source_hash": "4038d7f442818c23b4efa8b292a2c1ccf08facee75e8e7337da56452e0b35446", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,328
c
/** @file exn.h @brief An implementation of exception handling in pure ANSI C. */ #ifndef EXN_H #define EXN_H #ifdef __cplusplus extern "C" { #endif #include "rt.h" #include <setjmp.h> typedef struct exn_t { const struct exn_t* p_parent; const char* name; } exn_t; typedef enum { EXN_BEGIN = 0, ...
28.3
67
(translation_unit) "/**\n @file exn.h\n @brief An implementation of exception handling in pure ANSI C.\n*/\n#ifndef EXN_H\n#define EXN_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "rt.h"\n#include <setjmp.h>\n\ntypedef struct exn_t {\n const struct exn_t* p_parent;\n const char* name;\n} exn_t;\n\n...
397
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 28.3, "nodes": 268, "errors": 0, "source_hash": "3ebf4e3bc4ee4988d5c22a0bd3188b8a423d3be8c2262e1e71ab13f70e5562ea", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,329
c
#ifndef LAMPCLIENT_H #define LAMPCLIENT_H #include <QTcpSocket> #include <QScopedPointer> #include <QObject> #include <QColor> // Интерфейс комманды struct Command { virtual ~Command() {} virtual bool operator ()(char type, const char *value) = 0; }; // Шаблонная комманда: // Type - тип комманды // Obj - объ...
29.43
80
(translation_unit) "#ifndef LAMPCLIENT_H\n#define LAMPCLIENT_H\n\n#include <QTcpSocket>\n#include <QScopedPointer>\n#include <QObject>\n#include <QColor>\n\n// Интерфейс комманды\nstruct Command\n{\n virtual ~Command() {}\n virtual bool operator ()(char type, const char *value) = 0;\n};\n\n// Шаблонная комманда:\...
539
31
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 29.43, "nodes": 360, "errors": 0, "source_hash": "1465fc3b51806c94d7d5e2412c4c19e0db75503454041a9b2a885085788921fa", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,330
c
#include "systemcalls.h" #include "errno.h" #include <stdlib.h> #include <syslog.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <fcntl.h> /** * @param cmd the command to execute with system() * @return true if the commands in ... with arguments @p...
26.21
261
(translation_unit) "#include "systemcalls.h"\n\n#include "errno.h"\n#include <stdlib.h>\n#include <syslog.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <sys/types.h>\n#include <sys/wait.h>\n#include <string.h>\n#include <fcntl.h>\n\n/**\n * @param cmd the command to execute with system()\n * @return true if the...
1,480
2
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 26.21, "nodes": 773, "errors": 0, "source_hash": "3035f11e521254ff44f7404227cbec7aa3a6c0a0e2be69cb9cd2a50264970565", "categorized_nodes": 536}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,331
c
#ifndef __MULTICHOOSE_H #define __MULTICHOOSE_H /* multichoose.h -- n multichoose k for generic vectors author: <NAME> <<EMAIL>> last revised: 2010-04-16 Copyright (c) 2010 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
32.65
63
(translation_unit) "#ifndef __MULTICHOOSE_H\n#define __MULTICHOOSE_H\n\n/* \n\nmultichoose.h -- n multichoose k for generic vectors\n\nauthor: <NAME> <<EMAIL>>\nlast revised: 2010-04-16\n\nCopyright (c) 2010 by <NAME>\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and...
409
10
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.65, "nodes": 258, "errors": 0, "source_hash": "9e8921818b883fa6552a1b0b6238f9f9fbb605f55f41823be02b5ff6d7581f4e", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,332
c
/*********************************************************************** * Copyright (c) 2021 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* *******************************...
38.74
84
(translation_unit) "/***********************************************************************\n * Copyright (c) 2021 <NAME> *\n * Distributed under the MIT software license, see the accompanying *\n * file COPYING or https://www.opensource.org/licenses/mit-license.php.*\n *******...
707
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 38.74, "nodes": 425, "errors": 0, "source_hash": "34209758218564808c52dbbb08db74c6e17990b05130c2226bcc0c3e2df2889a", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,333
c
// // CMSQuotesCustomTool.h // CMSPaaS // // Created by 李嘉 on 2021/2/22. // #import <Foundation/Foundation.h> #import "CMSQuotesCustomModuleViewModel.h" NS_ASSUME_NONNULL_BEGIN @interface CMSQuotesCustomTool : NSObject /// 更新自选A股自定义模块列表 + (BOOL)updateQuotesCustomList:(NSArray<NSString *> *)list; /// 自选A股自定义模块当前列表...
27.3
20
(translation_unit) "//\n// CMSQuotesCustomTool.h\n// CMSPaaS\n//\n// Created by 李嘉 on 2021/2/22.\n//\n\n#import <Foundation/Foundation.h>\n#import "CMSQuotesCustomModuleViewModel.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CMSQuotesCustomTool : NSObject\n/// 更新自选A股自定义模块列表\n+ (BOOL)updateQuotesCustomList:(NSArray<NSS...
76
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.3, "nodes": 49, "errors": 0, "source_hash": "c65dfbe62930fba7d9ef5cde7eee2dd1fe2b22675ca83cff09cdfe098c177a46", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Found...
7,334
c
#ifndef HANDWRITING_CANVAS_H #define HANDWRITING_CANVAS_H #include <QLabel> #include <QPoint> #include <vector> #include <string> class HandwritingEventHandler { public: virtual void OnFinishHandwriting(std::vector< std::vector<QPoint> > * points) = 0; }; class HandwritingCanvas : public QLabel { Q_OBJECT ...
26.95
42
(translation_unit) "#ifndef HANDWRITING_CANVAS_H\n#define HANDWRITING_CANVAS_H\n\n#include <QLabel>\n\n#include <QPoint>\n\n#include <vector>\n#include <string>\n\nclass HandwritingEventHandler\n{\npublic:\n virtual void OnFinishHandwriting(std::vector< std::vector<QPoint> > * points) = 0;\n};\n\nclass HandwritingCa...
347
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.95, "nodes": 243, "errors": 0, "source_hash": "fc8d0cf31bd76b02d0bd99207422c6b283f592fb97888aa82373999fcd36eb57", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef HANDWR...
7,335
c
// // HNWStatisticsDefines.h // HNWStatisticsSDK // // Created by Young on 2021/2/9. // #ifndef HNWStatisticsDefines_h #define HNWStatisticsDefines_h #import <Foundation/Foundation.h> /** 数据上报策略 */ typedef NS_OPTIONS(NSUInteger, HNWStatisticsReportPolicy) { /// App启动发送 HNWStatisticsReportPolicyLaunch ...
28.34
29
(translation_unit) "//\n// HNWStatisticsDefines.h\n// HNWStatisticsSDK\n//\n// Created by Young on 2021/2/9.\n//\n\n#ifndef HNWStatisticsDefines_h\n#define HNWStatisticsDefines_h\n\n#import <Foundation/Foundation.h>\n\n/** 数据上报策略 */\ntypedef NS_OPTIONS(NSUInteger, HNWStatisticsReportPolicy) {\n /// App启动发送\n H...
117
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.34, "nodes": 78, "errors": 0, "source_hash": "91dfd96808c1d6c7bb5e69df67fca3a0866bc798e53e9288b8142564dd91d431", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef HNWStati...
7,336
c
/** * @file * @author 单宝华 * @date 2014-11-22 */ #import <CoreGraphics/CoreGraphics.h> #import <Foundation/Foundation.h> #import <QuartzCore/QuartzCore.h> /** * @class CollectionView * @brief collectionView * @author 单宝华 * @date 2014-11-22 */ @interface CollectionView : UICollectionView @end
17.81
16
(translation_unit) "/**\n * @file\n * @author 单宝华\n * @date 2014-11-22\n */\n#import <CoreGraphics/CoreGraphics.h>\n#import <Foundation/Foundation.h>\n#import <QuartzCore/QuartzCore.h>\n\n/**\n * @class CollectionView\n * @brief collectionView\n * @author 单宝华\n * @date 2014-11-22\n */\n@interface CollectionView : UICol...
23
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.81, "nodes": 18, "errors": 0, "source_hash": "548ee7e510ab580e59723d27eaab55b97bf8b31c10b19611af0dfccf650acccd", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <CoreGra...
7,337
c
#pragma once #include <tuple> #include <string> #include <vector> #include <iostream> namespace bpftrace { typedef std::tuple<std::string, std::string> usdt_probe_pair; class USDTHelper { public: static usdt_probe_pair find(void *ctx, int pid, std::string name); }; struct DeprecatedName { std::string old_name;...
23.73
52
(translation_unit) "#pragma once\n\n#include <tuple>\n#include <string>\n#include <vector>\n#include <iostream>\n\nnamespace bpftrace {\n\ntypedef std::tuple<std::string, std::string> usdt_probe_pair;\n\nclass USDTHelper\n{\npublic:\n static usdt_probe_pair find(void *ctx, int pid, std::string name);\n};\n\nstruct Dep...
466
25
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 23.73, "nodes": 258, "errors": 0, "source_hash": "2411f3744dcb77ec7f9b01a8704a2090d2f8fa94ddf05a528107258bf29e7d3b", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,338
c
/* * Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME> and <NAME> * All rights reserved. * * KoMPoST is distributed under MIT license; * see the LICENSE file that should be present in the root * of the source distribution, or alternately available at: * https://github.com/KMPST/KoMPoST/ */ #ifndef EnergyMoment...
33.27
183
(translation_unit) "/*\n * Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME> and <NAME>\n * All rights reserved.\n *\n * KoMPoST is distributed under MIT license;\n * see the LICENSE file that should be present in the root\n * of the source distribution, or alternately available at:\n * https://github.com/KMPST/KoMPoS...
1,691
8
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 33.27, "nodes": 1032, "errors": 0, "source_hash": "46a5e8cdb2c85cb982b22230cac86d360263b6c6e50ef69bfab942cfa1e87e1c", "categorized_nodes": 746}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,339
c
#include <assert.h> int main() { int x; x = 3; x = x * 4; assert(x == 12); return 0; }
9.22
9
(translation_unit) "#include <assert.h>\n\nint main()\n{\n int x;\n x = 3;\n x = x * 4;\n assert(x == 12);\n\n return 0;\n}\n" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (function_definition) "int main()\n{\n int x;\n x = 3;\n x = x * 4;\n assert(x == 12...
48
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 9.22, "nodes": 31, "errors": 0, "source_hash": "79c989052d81bf33693a22ea89c514b045212e70beb4822c58c543c77927698f", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,340
c
// // DefaultVCFour.h // SGPageViewExample // // Created by apple on 2017/6/12. // Copyright © 2017年 Sorgle. All rights reserved. // #import <UIKit/UIKit.h> @interface DefaultVCFour : UIViewController @end
20
10
(translation_unit) "//\n// DefaultVCFour.h\n// SGPageViewExample\n//\n// Created by apple on 2017/6/12.\n// Copyright © 2017年 Sorgle. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DefaultVCFour : UIViewController\n\n@end\n" (comment) "//" (comment) "// DefaultVCFour.h" (comment) "// SGPa...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 12, "errors": 0, "source_hash": "e67f1f10b1b05e49dd17ce9071ab4a6d36b3d1d06e857296c618549a4cc5d58e", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
7,341
c
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
36.62
61
(translation_unit) "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2....
341
2
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.62, "nodes": 159, "errors": 0, "source_hash": "f54b50276dcdd52826e2d864e8edbd8ab0e5970284d699543a463d0393aef3cd", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,342
c
#ifndef _WIN32 #include <sys/stat.h> #endif int create_symlink(const char *oldname, const char *newname, const int is_dir) // returns 0 if successful { #ifdef _WIN32 wchar_t oldname_wc[PATH_MAX*2], newname_wc[PATH_MAX*2]; utf8_to_wchar(oldname, oldname_wc); utf8_to_wchar(newname, newname_wc); return CreateSymbol...
25.06
168
(translation_unit) "#ifndef _WIN32\n#include <sys/stat.h>\n#endif\n\nint create_symlink(const char *oldname, const char *newname, const int is_dir) // returns 0 if successful\n{\n #ifdef _WIN32\n wchar_t oldname_wc[PATH_MAX*2], newname_wc[PATH_MAX*2];\n\n utf8_to_wchar(oldname, oldname_wc);\n utf8_to_wchar(newname, new...
1,395
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 25.06, "nodes": 848, "errors": 0, "source_hash": "7b75edb05b3edff21b573b60ae9ba35c4d2d10e029a17fc5c2382351dfef1c30", "categorized_nodes": 608}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,343
c
#ifndef __NEURALNETWORK_H__ #define __NEURALNETWORK_H__ #include <Eigen/Eigen> #include "NNLayers.h" using namespace Eigen; /* * Class AffineLayer * * @desript A kind of Neural Network Layer. */ class NeuralNetwork { NNLayer *top_layer; NNLayer *last_layer; Matrix<float, Dynamic, Dynamic> output; public...
28.54
26
(translation_unit) "#ifndef __NEURALNETWORK_H__\n#define __NEURALNETWORK_H__\n\n#include <Eigen/Eigen>\n#include "NNLayers.h"\n\nusing namespace Eigen;\n\n/*\n * Class AffineLayer\n *\n * @desript A kind of Neural Network Layer.\n */\nclass NeuralNetwork {\n NNLayer *top_layer;\n NNLayer *last_layer;\n Matrix<float,...
214
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.54, "nodes": 146, "errors": 0, "source_hash": "dbcb1e570beb9b247e023420013b87f474b30ebf908961be0ec97271ca0df89d", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,344
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...
31.88
51
(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...
170
7
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 31.88, "nodes": 97, "errors": 0, "source_hash": "bfbb849880a5aed0dd441e2fabb69b40b0bc095ba023626e10af5b287d6f2006", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,345
c
#pragma once #include <glm/mat4x2.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/transform.hpp> class MathHelper { public: static glm::mat4 RotationFromDirection(const glm::vec3& direction) { float angle = std::atan2(direction.y, direction.x); glm::mat4 glmrotXY = glm::rotate(angle, glm::vec3(0.0f, 0.0f,...
36.53
19
(translation_unit) "#pragma once\n#include <glm/mat4x2.hpp>\n#define GLM_ENABLE_EXPERIMENTAL\n#include <glm/gtx/transform.hpp>\n\nclass MathHelper\n{\npublic:\n static glm::mat4 RotationFromDirection(const glm::vec3& direction)\n {\n float angle = std::atan2(direction.y, direction.x);\n glm::mat4 glmrotXY = glm::rota...
171
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.53, "nodes": 98, "errors": 0, "source_hash": "4cb9597d8a2c53ae71b7df06f9a209880313df2b144b73c07b7f91d892260eaf", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,346
c
// // Header.h // mcberepair // // Created by <NAME> on 11/5/20. // #ifndef Header_h #define Header_h #import "ChunkIndex.h" @interface KeyIterator : NSObject -(id)initWithPath:(NSString *) path; -(bool) isValid; -(void) next; -(struct ChunkIndex) chunk; -(bool) isOk; @end #endif /* Header_h */
16.59
17
(translation_unit) "//\n// Header.h\n// mcberepair\n//\n// Created by <NAME> on 11/5/20.\n//\n\n#ifndef Header_h\n#define Header_h\n\n#import "ChunkIndex.h"\n\n@interface KeyIterator : NSObject\n-(id)initWithPath:(NSString *) path;\n-(bool) isValid;\n-(void) next;\n-(struct ChunkIndex) chunk;\n-(bool) isOk;\n@end\n\...
88
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 16.59, "nodes": 53, "errors": 0, "source_hash": "0f02916793a5ed544988080cf2c5b75cc98796e8b6a09faf8e140114c3d879dd", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,347
c
/* * Copyright (c) 2019. <NAME> <EMAIL> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * */ #ifndef BITLOOM_LCD_H #define BITLOOM_LCD_H void lcd_init(void); #endif // BITLOOM_LCD_H
22.91
11
(translation_unit) "/*\n * Copyright (c) 2019. <NAME> <EMAIL>\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n *\n */\n#ifndef BITLOOM_LCD_H\n#define BITLOOM_LCD_H\n\nvoid lcd_init(void);\n\n#endif // BITLOOM_LCD_H\n" (comment) "/*\n * ...
20
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.91, "nodes": 14, "errors": 0, "source_hash": "412821b4196c8a7960788f55d45f8a1249954c89e4cb8a1701a971869b529dea", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
7,348
c
#include "repl_socket.h" static int max_receive_data_size = 100; int repl_socket_file_descriptor; extern int get_repl_socket_file_descriptor (void); extern void set_repl_socket_file_descriptor (int socket_file_descriptor); extern void initialize_repl_socket_file_descriptor (int socket_file_descriptor); extern void in...
36.54
90
(translation_unit) "#include "repl_socket.h"\n\nstatic int max_receive_data_size = 100;\nint repl_socket_file_descriptor;\n\nextern int get_repl_socket_file_descriptor (void);\nextern void set_repl_socket_file_descriptor (int socket_file_descriptor);\nextern void initialize_repl_socket_file_descriptor (int socket_file_...
803
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 36.54, "nodes": 474, "errors": 0, "source_hash": "7d6edab3f940c963fb30dbe97c42ff80f07adfb0abffc54a10911d1ddac9296f", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,349
c
/* * Copyright (c) 2018 <NAME> <<EMAIL>> * See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information */ #pragma once #include <CoreFoundation/CoreFoundation.h> #include <vector> #include <taglib/mp4tag.h> /*! @file AddMP4TagToDictionary.h @brief Utility method for adding \c TagL...
40.09
22
(translation_unit) "/*\n * Copyright (c) 2018 <NAME> <<EMAIL>>\n * See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information\n */\n\n#pragma once\n\n#include <CoreFoundation/CoreFoundation.h>\n#include <vector>\n#include <taglib/mp4tag.h>\n\n/*! @file AddMP4TagToDictionary.h @brief Ut...
76
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 40.09, "nodes": 47, "errors": 0, "source_hash": "2e9f229aba9dd8dd73c777469fc7ffe389bf666db5db32cdd8617db1ba686785", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,350
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <sys/utsname.h> #include <err.h> struct uname_args { unsigned machine : 1; unsigned nodename : 1; unsigned release : 1; unsigned sysname : 1; unsigned version : 1; }; static bool uname_print(const char *symbol, bool shouldwr...
21.78
86
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <unistd.h>\n#include <sys/utsname.h>\n#include <err.h>\n\nstruct uname_args {\n unsigned machine : 1;\n unsigned nodename : 1;\n unsigned release : 1;\n unsigned sysname : 1;\n unsigned version : 1;\n};\n\nstatic bool\nuname_pri...
737
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 21.78, "nodes": 476, "errors": 0, "source_hash": "661f311ed1a78ac5d8c3266f4da7d27739d40f5b3203df418bee8e678d07eb4a", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,351
c
// Purpose: Return lastname first initial from input // Author: <NAME> #import <stdio.h> #import <stdbool.h> #import <ctype.h> int main (void) { char ch; char first_initial = ' '; bool last_name = false; printf("Enter a sentence: "); while((ch = getchar()) != '\n') { if (ch != ' ') { ...
23.15
27
(translation_unit) "// Purpose: Return lastname first initial from input\n// Author: <NAME>\n\n#import <stdio.h>\n#import <stdbool.h>\n#import <ctype.h>\n\nint main (void)\n{\n char ch;\n char first_initial = ' ';\n bool last_name = false;\n\n printf("Enter a sentence: ");\n while((ch = getchar()) != '\...
185
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.15, "nodes": 108, "errors": 0, "source_hash": "2990be8615cc52ced80c560d166badacb81b4b7a9abd38d9770b37943822a4c1", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,352
c
/* Deccan Game Engine - C11 2D SDL Game Engine. * Copyright 2020, 2021 <NAME> * * This software is licensed under MIT License. * See LICENSE.md included with this package for more info. */ #include <deccanengine/core/file_sys.h> #include <deccanengine/core/utils.h> DE_IMPL SDL_RWops *deccan_fs_locate_file(const ...
34.66
38
(translation_unit) "/* Deccan Game Engine - C11 2D SDL Game Engine.\n * Copyright 2020, 2021 <NAME>\n *\n * This software is licensed under MIT License.\n * See LICENSE.md included with this package for more info.\n */\n\n#include <deccanengine/core/file_sys.h>\n#include <deccanengine/core/utils.h>\n\nDE_IMPL SDL_RWops...
319
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.66, "nodes": 189, "errors": 0, "source_hash": "96d966dff9d144130001795127152194558c10fd21246670cb0599f66b13723c", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,353
c
#ifndef IV_NOTFOUND_H_ #define IV_NOTFOUND_H_ #include <limits> #include <iv/detail/cstdint.h> namespace iv { namespace core { static const uint32_t kNotFound32 = std::numeric_limits<uint32_t>::max(); static const uint64_t kNotFound64 = std::numeric_limits<uint64_t>::max(); static const uint32_t kNotFound = kNotFound3...
33.09
11
(translation_unit) "#ifndef IV_NOTFOUND_H_\n#define IV_NOTFOUND_H_\n#include <limits>\n#include <iv/detail/cstdint.h>\nnamespace iv {\nnamespace core {\n\nstatic const uint32_t kNotFound32 = std::numeric_limits<uint32_t>::max();\nstatic const uint64_t kNotFound64 = std::numeric_limits<uint64_t>::max();\nstatic const ui...
95
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.09, "nodes": 57, "errors": 0, "source_hash": "d78a7c1b9f8328ab33054fbeb08b73efcee5d803d206d96c05b02b3a434b4d84", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,354
c
// // NSDate+PKUtils.h // PiKey // // Created by 唐华嶓 on 14-8-29. // Copyright (c) 2014年 piKey. All rights reserved. // #import <Foundation/Foundation.h> #define YMD @"yyyy-MM-dd" #define YMDHMS @"yyyy-MM-dd HH:mm:ss" @interface NSDate (PKUtils) /** * 获取格式化的日期字符串 * @param formatExp 格式化表达式,默认为yyyy-MM-dd */ - (...
21.82
22
(translation_unit) "//\n// NSDate+PKUtils.h\n// PiKey\n//\n// Created by 唐华嶓 on 14-8-29.\n// Copyright (c) 2014年 piKey. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#define YMD @"yyyy-MM-dd"\n#define YMDHMS @"yyyy-MM-dd HH:mm:ss"\n\n@interface NSDate (PKUtils)\n\n/**\n * 获取格式化的日期字符串\n * @param f...
93
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 21.82, "nodes": 59, "errors": 0, "source_hash": "fbae64233f3cdb8075ce11afdbf47c8fd1ad36831a251c1c0a26823d78d807a2", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<Foundati...
7,355
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class JceObjectV2; @interface QZCNetworkContext : NSObject { struct JceObjectV2 *_request; CDUnknownBlockType _successBlock; CDUnknownBlockType _failBl...
37.5
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class JceObjectV2;\n\n@interface QZCNetworkContext : NSObject\n{\n struct JceObjectV2 *_request;\n CDUnknownBlockType _successBloc...
127
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 37.5, "nodes": 77, "errors": 0, "source_hash": "e229488e48990ff282f796d8954f25b5a3b0609fb3e473f9835f6b86414901ce", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
7,356
c
#ifndef IO_H #define IO_H int readNumber(); void writeAnswer(int answer); #endif
15.2
5
(translation_unit) "#ifndef IO_H\n#define IO_H\n\nint readNumber();\nvoid writeAnswer(int answer);\n\n#endif\n" (preproc_ifdef) "#ifndef IO_H\n#define IO_H\n\nint readNumber();\nvoid writeAnswer(int answer);\n\n#endif" (#ifndef) "#ifndef" (identifier) "IO_H" (preproc_def) "#define IO_H\n" (#define) ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 15.2, "nodes": 20, "errors": 0, "source_hash": "c0c4ac18b8532a0211d2ccc3ce141668574c277eb99b5d336370f36ee9836c5d", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IO...
7,357
c
#pragma once #include "Engine/Graphics/Effects/Logic/OutputRendering/Impl/FrameDataHandlers/FrameDataHandler.h" #include "Engine/Graphics/Effects/Logic/State/RenderedData.h" #include "Engine/Graphics/Effects/Logic/FullscreenRendering/FullscreenEffect.h" #include "Engine/Graphics/Rendering/SharedMemoryVideoB...
32.06
51
(translation_unit) "#pragma once \n \n#include "Engine/Graphics/Effects/Logic/OutputRendering/Impl/FrameDataHandlers/FrameDataHandler.h" \n \n#include "Engine/Graphics/Effects/Logic/State/RenderedData.h" \n \n#include "Engine/Graphics/Effects/Logic/FullscreenRendering/FullscreenEffect.h" \n \n#include "Engine/Graphics/...
257
9
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.06, "nodes": 161, "errors": 0, "source_hash": "5af842f0c4d20f6e38723e88a3d4eaefea663112766caa99d33280d11f2495ed", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,358
c
#include "types.h" #include "user.h" int main(int argc, char *argv[]) { renice(getpid(), atoi(argv[1])); exec(argv[2], &(argv[3])); exit(); }
18.38
8
(translation_unit) "#include "types.h"\n#include "user.h"\n\nint main(int argc, char *argv[]) \n{\n renice(getpid(), atoi(argv[1]));\n exec(argv[2], &(argv[3]));\n exit();\n}" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_conte...
88
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.38, "nodes": 46, "errors": 0, "source_hash": "b54f9286b86803b9f2bb9ae3b501ff1086a9a489e5b30fd877dc8cb7c160ec9e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,359
c
#include <vtkSmartPointer.h> #include <vector> class vtkHandleWidget; class vtkSphereSource; class vtkPolyDataMapper; class vtkPoints; class vtkPolyData; class vtkGlyph3D; class vtkActor; class vtkLookupTable; namespace shapeworks { class Viewer; class LandmarkCallback; //! LandmarkWidget /*! * Widget to display...
27.52
44
(translation_unit) "#include <vtkSmartPointer.h>\n\n#include <vector>\n\nclass vtkHandleWidget;\nclass vtkSphereSource;\nclass vtkPolyDataMapper;\nclass vtkPoints;\nclass vtkPolyData;\nclass vtkGlyph3D;\nclass vtkActor;\nclass vtkLookupTable;\n\nnamespace shapeworks {\n\nclass Viewer;\nclass LandmarkCallback;\n\n//! La...
277
2
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.52, "nodes": 181, "errors": 0, "source_hash": "bf5c9db335ca47262a473d099b3d15effb4f20c1c3b50573d713eab9ca7c09e5", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,360
c
// // Impl_EEPixelViewerGitHub.h // OpenGLTesting // // Created by sbond75 on 5/10/20. // Copyright © 2020 sbond75. All rights reserved. // #import <AppKit/AppKit.h> #import "EEPixelViewer/EEPixelViewer.h" #import <CoreVideo/CoreVideo.h> @interface CustomView : EEPixelViewer { @public CVDisplayLinkRef display...
27.6
20
(translation_unit) "//\n// Impl_EEPixelViewerGitHub.h\n// OpenGLTesting\n//\n// Created by sbond75 on 5/10/20.\n// Copyright © 2020 sbond75. All rights reserved.\n//\n\n#import <AppKit/AppKit.h>\n#import "EEPixelViewer/EEPixelViewer.h"\n#import <CoreVideo/CoreVideo.h>\n\n@interface CustomView : EEPixelViewer {\n@pu...
97
9
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.6, "nodes": 58, "errors": 0, "source_hash": "33b989f83cb2ee4e891d56a2c468e9f3aa047f00b1bd6abdef38e07ca88a30eb", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Ap...
7,361
c
/* * IPv6 packet mangling table, a port of the IPv4 mangle table to IPv6 * * Copyright (C) 2000-2001 by <NAME> <<EMAIL>> * Copyright (C) 2000-2004 Netfilter Core Team <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version ...
29.19
252
(translation_unit) "/*\n * IPv6 packet mangling table, a port of the IPv4 mangle table to IPv6\n *\n * Copyright (C) 2000-2001 by <NAME> <<EMAIL>>\n * Copyright (C) 2000-2004 Netfilter Core Team <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU Gene...
2,514
5
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 29.19, "nodes": 1380, "errors": 0, "source_hash": "a4cc28d693b86ecd0445705e2c81f630cd1f36d7dc24cdfed79bd74195cf9b60", "categorized_nodes": 902}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,362
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "NSURLSessionConfiguration+Wormholy.h" #import "WormholyMethodSwizzling.h" FOUNDATION_EXPORT double Galileo_iOSVersi...
25.27
15
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "NSURLSessionConfiguration+Wormholy.h"\n#import "WormholyMethodSwizzling.h"\n\nFOUNDA...
58
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.27, "nodes": 48, "errors": 0, "source_hash": "f3a6cea23f19466173dff16fb6add8c5c6038149c4a6c08ac0272e16541cf255", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
7,363
c
// // CAEAGLLayerVC.h // CoreAnimationDemo // // Created by <NAME> on 17/2/14. // Copyright © 2017年 Rasping. All rights reserved. // #import <UIKit/UIKit.h> @interface CAEAGLLayerVC : UIViewController @end
20
10
(translation_unit) "//\n// CAEAGLLayerVC.h\n// CoreAnimationDemo\n//\n// Created by <NAME> on 17/2/14.\n// Copyright © 2017年 Rasping. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CAEAGLLayerVC : UIViewController\n\n@end\n" (comment) "//" (comment) "// CAEAGLLayerVC.h" (comment) "// Core...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 12, "errors": 0, "source_hash": "c3c9050ad688d4623de78b1da4efbfe1a4ea899d621c76ad2fb59b9c7aa9cbdf", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
7,364
c
#pragma once #include "IBEngineAPI.h" #include "IBMath.h" #include <stdint.h> /* Hello, welcome to the redenderer. I will be your guide. Using the IceBox renderer should be straightforward and have as minimal an API as possible. Arguments should generally be passed as a "Desc" type object, this allows for simple su...
34.61
175
(translation_unit) "#pragma once\n\n#include "IBEngineAPI.h"\n#include "IBMath.h"\n#include <stdint.h>\n\n/*\nHello, welcome to the redenderer. I will be your guide.\n\nUsing the IceBox renderer should be straightforward and have as minimal an API as possible.\n\nArguments should generally be passed as a "Desc" type ob...
1,190
64
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 34.61, "nodes": 769, "errors": 0, "source_hash": "ac840e4fee87a5dea64f55a767b10fa210f72a915d9755a42aa67e3d1e2104c1", "categorized_nodes": 540}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,365
c
#include<stdio.h> #include<string.h> struct nametype{ char first[50]; char last[50]; }; struct studenttype{ int id; struct nametype name; }; int main(){ int i,n; scanf("%d",&n); struct studenttype student[n]; for(i=0; i<n;i++){ scanf("%d",&student[i].id); ...
20.07
28
(translation_unit) "#include<stdio.h> \n#include<string.h> \nstruct nametype{ \n char first[50]; \n char last[50]; \n}; \nstruct studenttype{ \n int id; \n struct nametype name; \n}; \nint main(){ \n int i,n; \n scanf("%d",&n); \n struct studenttype student[n]; \n \n \n for(i=0; i<n;i++){ \n ...
261
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.07, "nodes": 142, "errors": 0, "source_hash": "99d83abd1a4660433b29cb548a44da1ff627365e1c4c98f5ebabed6cf59aa98a", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,366
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CFGetSNFrdListReq.h" @interface CFGetSNMyFrdListReq : CFGetSNFrdListReq { } - (char *)getRequestBuffer; - (id)serviceCmd; - (_Bool)updateData:(void *)arg1; @end
22.23
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "CFGetSNFrdListReq.h"\n\n@interface CFGetSNMyFrdListReq : CFGetSNFrdListReq\n{\n}\n\n- (char *)getRequestBuffer;\n- (id)serviceCmd;\n- (_Bool)updateData:...
63
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.23, "nodes": 37, "errors": 0, "source_hash": "4ce50328597ff0c60fcae26a26a1c30e2bb846e8b6337e8c233b4dee55d43403", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,367
c
/* A non-exhaustive test for some of the functions and macros declared in * hmap.h. */ #include <config.h> #include "hmap.h" #include <string.h> #include "hash.h" #include "util.h" #undef NDEBUG #include <assert.h> /* Sample hmap element. */ struct element { int value; struct hmap_node node; }; typedef siz...
26.9
241
(translation_unit) "/* A non-exhaustive test for some of the functions and macros declared in\n * hmap.h. */\n\n#include <config.h>\n#include "hmap.h"\n#include <string.h>\n#include "hash.h"\n#include "util.h"\n\n#undef NDEBUG\n#include <assert.h>\n\n/* Sample hmap element. */\nstruct element {\n int value;\n str...
2,146
5
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 26.9, "nodes": 1283, "errors": 0, "source_hash": "9bc6fda77656680bac2a12be1e2d02cd6d117f8b900d5f38691dc1d39361d125", "categorized_nodes": 939}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,368
c
/* ** Splint - annotation-assisted static program checker ** Copyright (C) 1994-2003 University of Virginia, ** Massachusetts Institute of Technology ** ** 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 Sof...
23.35
265
(translation_unit) "/*\n** Splint - annotation-assisted static program checker\n** Copyright (C) 1994-2003 University of Virginia,\n** Massachusetts Institute of Technology\n**\n** This program is free software; you can redistribute it and/or modify it\n** under the terms of the GNU General Public License as pu...
1,383
13
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 23.35, "nodes": 829, "errors": 0, "source_hash": "ae5235741338ceba0185ac28e920bd34070a66066c73496328ad08e50180ca2f", "categorized_nodes": 562}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# i...
7,369
c
/* DO NOT EDIT THIS FILE. It has been auto-edited by fixincludes from: "fixinc/tests/inc/mach-o/dyld.h" This had to be done to correct non-standard usages in the original, manufacturer supplied header file. */ #if defined( DARWIN_PRIVATE_EXTERN_CHECK ) extern int _dyld_func_lookup( const char *dyld...
34.82
11
(translation_unit) "/* DO NOT EDIT THIS FILE.\n\n It has been auto-edited by fixincludes from:\n\n "fixinc/tests/inc/mach-o/dyld.h"\n\n This had to be done to correct non-standard usages in the\n original, manufacturer supplied header file. */\n\n\n\n#if defined( DARWIN_PRIVATE_EXTERN_CHECK )\nextern int _dy...
37
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 34.82, "nodes": 26, "errors": 0, "source_hash": "d5e59e92b3231309fd1bcc69e69cb22f748d0d2942b79089bb05a410d2fde966", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined...
7,370
c
/* picoJava specific support for 32-bit ELF Copyright 1999, 2000, 2001, 2002, 2005, 2007 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>). This file is part of BFD, the Binary File Descriptor library. This program is free software; you can redistribute it and/or modify it under the ter...
35.23
306
(translation_unit) "/* picoJava specific support for 32-bit ELF\n Copyright 1999, 2000, 2001, 2002, 2005, 2007\n Free Software Foundation, Inc.\n Contributed by <NAME> (<EMAIL>).\n\n This file is part of BFD, the Binary File Descriptor library.\n\n This program is free software; you can redistribute it and/or...
1,580
5
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 35.23, "nodes": 884, "errors": 0, "source_hash": "88b051dd451aad77fc1038005074d59de391818399b273cf8f809234e9f74172", "categorized_nodes": 614}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,371
c
/******************************************************************************** * Copyright (c) 2020 AVL List GmbH and others * * This program and the accompanying materials are made available under the * terms of the Apache Software License 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2....
33.7
61
(translation_unit) "/********************************************************************************\n * Copyright (c) 2020 AVL List GmbH and others\n * \n * This program and the accompanying materials are made available under the\n * terms of the Apache Software License 2.0 which is available at\n * https://www.apach...
458
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 33.7, "nodes": 275, "errors": 0, "source_hash": "8caac337379767f416ceaddebd8cbc929d099d9c7e2281077eec4ee4868845e4", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,372
c
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_DEVELOPER_FEEDBACK_BOOT_LOG_CHECKER_TESTS_STUB_NETWORK_REACHABILITY_PROVIDER_H_ #define SRC_DEVELOPER_FEEDBACK_BOOT_LOG_CHECKER_TESTS_STUB_NETW...
41.94
33
(translation_unit) "// Copyright 2019 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SRC_DEVELOPER_FEEDBACK_BOOT_LOG_CHECKER_TESTS_STUB_NETWORK_REACHABILITY_PROVIDER_H_\n#define SRC_DEVELOPER_FEEDBACK_BOOT_LO...
268
11
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 41.94, "nodes": 146, "errors": 0, "source_hash": "79e161ba19417f6f0b955ca5fa8aa91a82dd38fcf15f138f7095a819d516e90c", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,373
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_WJQApi_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_WJQApi_ExampleVersionString[];
38.5
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_WJQApi_ExampleVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_WJQApi_ExampleVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 38.5, "nodes": 15, "errors": 0, "source_hash": "5a45b465c050efe8e6627d9e5971c8b794420adf0c9594a3517d82dc0d6a0673", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
7,374
c
#include <php.h> #include <git2.h> #include "php_git2_internal.h" PHP_FUNCTION(git_remote_push) { int libRet; zend_result zendParse; zend_result phpgitRet; zval *zremote; HashTable *zrefspecs; HashTable *zopts; zend_class_entry *ceRemote; struct php_git2_remote *remote; git_strarr...
29.48
50
(translation_unit) "#include <php.h>\n#include <git2.h>\n\n#include "php_git2_internal.h"\n\nPHP_FUNCTION(git_remote_push)\n{\n int libRet;\n zend_result zendParse;\n zend_result phpgitRet;\n zval *zremote;\n HashTable *zrefspecs;\n HashTable *zopts;\n zend_class_entry *ceRemote;\n struct php_gi...
393
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.48, "nodes": 247, "errors": 0, "source_hash": "ecefe14660aa8cc7be8960c82f689b43138fd58c2040617071ad13f023acb696", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,375
c
#include <stdio.h> void rotate( int arr[],int arr_size, int arr_rot); void print_arr(int arr[], int n); int main() { //code int test_case, arr_size, arr_rot,arr[100],i; printf("hello"); scanf("%d",&test_case); scanf("%d %d",&arr_size,&arr_rot); for(int i =0;i<arr_size-1;i++) { scanf("%d",&arr[i]...
16.7
53
(translation_unit) "#include <stdio.h> \nvoid rotate( int arr[],int arr_size, int arr_rot); \n void print_arr(int arr[], int n); \nint main() { \n //code \n int test_case, arr_size, arr_rot,arr[100],i; \n printf("hello"); \n scanf("%d",&test_case); \n scanf("%d %d",&arr_size,&arr_rot); \n for(int i =0;i<arr_size-1;i++)...
399
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 16.7, "nodes": 224, "errors": 0, "source_hash": "752cb20f0ac59ac937204402de7ae3470284c97e70ed08aaf27bfca3ce627ac1", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,376
c
/* * bmp085.c * * Created on: Dec 26, 2015 * Author: lim */ #include "bmp085.h" #include "timer1.h" #define I2C_READ 1 #define I2C_WRITE 0 void bmp085_writemem(uint8_t reg, uint8_t value) { i2c_start(BMP085_ADDR | I2C_WRITE); i2c_write(reg); i2c_write(value); i2c_stop(); } void bmp085_readmem(uint8_t...
30.08
158
(translation_unit) "/*\n * bmp085.c\n *\n * Created on: Dec 26, 2015\n * Author: lim\n */\n\n#include "bmp085.h"\n#include "timer1.h"\n\n#define I2C_READ 1\n#define I2C_WRITE 0\n\nvoid bmp085_writemem(uint8_t reg, uint8_t value) {\n i2c_start(BMP085_ADDR | I2C_WRITE);\n i2c_write(reg);\n i2c_write(value);\n i2c_s...
1,755
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 30.08, "nodes": 1080, "errors": 0, "source_hash": "8a6df0d96aa231221f3f440db6a037f34f7cb9356d9d23304076031d08c09505", "categorized_nodes": 767}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,377
c
// slang-json-value.h #ifndef SLANG_JSON_VALUE_H #define SLANG_JSON_VALUE_H #include "../core/slang-basic.h" #include "slang-source-loc.h" #include "slang-diagnostic-sink.h" #include "slang-json-parser.h" namespace Slang { typedef uint32_t JSONKey; struct JSONValue { enum class Kind { Invalid, ...
41.76
255
(translation_unit) "// slang-json-value.h\n#ifndef SLANG_JSON_VALUE_H\n#define SLANG_JSON_VALUE_H\n\n#include "../core/slang-basic.h"\n\n#include "slang-source-loc.h"\n#include "slang-diagnostic-sink.h"\n\n#include "slang-json-parser.h"\n\nnamespace Slang {\n\ntypedef uint32_t JSONKey;\n\nstruct JSONValue\n{\n enum ...
2,476
120
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 41.76, "nodes": 1477, "errors": 0, "source_hash": "3d637282c49ea9e412c33b642eff13970f2897cdb59c73a6536a3e4904b0277e", "categorized_nodes": 1124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
7,378
c
/* * lzw.h * * Lempel Ziv Welch implementation in C * * Author: srodk */ #ifndef SRC_LZW_H_ #define SRC_LZW_H_ #include <stdint.h> /* * The number of bits per dictionary entry decides the size of the dictionay, * and how many bytes we can compress. * With 10 bits, we can end up with (1024-256)*10/8=960...
34
34
(translation_unit) "/*\n * lzw.h\n *\n * Lempel Ziv Welch implementation in C\n *\n * Author: srodk\n */\n\n#ifndef SRC_LZW_H_\n#define SRC_LZW_H_\n\n#include <stdint.h>\n/*\n * The number of bits per dictionary entry decides the size of the dictionay,\n * and how many bytes we can compress.\n * With 10 bits, we ...
104
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.0, "nodes": 80, "errors": 0, "source_hash": "366369617d9238f35b6750ea8e7080787745aeb620418ad7bf8654ecfbbf4cb8", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
7,379
c
/* * Vulkan device class * * Encapsulates a physical Vulkan device and it's logical representation * * Copyright (C) 2016-2017 by <NAME> - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #pragma once #include "saiga/vulkan/CommandPool.h" #incl...
36.66
105
(translation_unit) "/*\n * Vulkan device class\n *\n * Encapsulates a physical Vulkan device and it's logical representation\n *\n * Copyright (C) 2016-2017 by <NAME> - www.saschawillems.de\n *\n * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)\n */\n\n#pragma once\n\n#include "s...
530
21
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 36.66, "nodes": 309, "errors": 0, "source_hash": "58442368c6770ae3d183a31fe772bd2914debcc68a4fb68ee429fdb503bd2370", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,380
c
// // TBBaseKitUtil.h // TBBaseKit // // Created by 石富才 on 2020/3/6. // #import <Foundation/Foundation.h> @interface TBBaseKitUtil : NSObject /** <#aaa#> */ @property(nonatomic,strong,class,readonly)UIImage *navigationBarBackArrow; @end
20.82
11
(translation_unit) "//\n// TBBaseKitUtil.h\n// TBBaseKit\n//\n// Created by 石富才 on 2020/3/6.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TBBaseKitUtil : NSObject\n\n/** <#aaa#> */\n@property(nonatomic,strong,class,readonly)UIImage *navigationBarBackArrow;\n\n@end\n" (comment) "//" (comment) "// TBBas...
40
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.82, "nodes": 25, "errors": 0, "source_hash": "1e0ea6b049cb86f29f9060b5bbd52ecbf43b8a4b8c0f6bbbea5da27bb067072a", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda...
7,381
c
#ifndef __AUDIO_H_ #define __AUDIO_H_ #include "xparameters.h" //Base addresses #define AUDIO_BASE XPAR_ZYBO_AUDIO_CTRL_0_BASEADDR //Slave address for the ADAU audio controller #define IIC_SLAVE_ADDR 0x1A //I2C Serial Clock frequency in Hertz #define IIC_SCLK_RATE 100000 //ADAU internal regist...
26.31
42
(translation_unit) "#ifndef __AUDIO_H_ \n#define __AUDIO_H_ \n \n#include "xparameters.h" \n \n//Base addresses \n#define AUDIO_BASE XPAR_ZYBO_AUDIO_CTRL_0_BASEADDR \n \n//Slave address for the ADAU audio controller \n#define IIC_SLAVE_ADDR 0x1A \n \n//I2C Serial Clock frequency in Hertz \n#define IIC_SCLK_RATE ...
154
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.31, "nodes": 121, "errors": 0, "source_hash": "df984be681e3fb190e80fd127730282fa61a3dc954fe66e6d15a39bb9abe4f20", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,382
c
#ifndef ETERMAL_TRIANGLE_H_INCLUDED #define ETERMAL_TRIANGLE_H_INCLUDED #include "../render/RModel.h" #include "../render/Color.h" // ../Resources namespace etm { class Resources; } namespace etm { /** * Represents a simple 2D triangle primitive. * This one is very different from @ref Rectangle * ho...
29.21
126
(translation_unit) "#ifndef ETERMAL_TRIANGLE_H_INCLUDED\n#define ETERMAL_TRIANGLE_H_INCLUDED\n\n#include "../render/RModel.h"\n#include "../render/Color.h"\n\n// ../Resources\nnamespace etm { class Resources; }\n\nnamespace etm {\n\n /**\n * Represents a simple 2D triangle primitive.\n * This one is very diffe...
249
2
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 29.21, "nodes": 142, "errors": 0, "source_hash": "80157996c7807ef8e0a93e6715b04a4e0be6fd69e5dc7fde0f256d0e7c09b77b", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,383
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:05:47 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/ITMLKit.framework/ITMLKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. *...
37.36
22
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:05:47 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/PrivateFrameworks/ITMLKit.framework/ITMLKit\n* classdump-dyld is licensed under GPLv3, Copyright...
150
14
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.36, "nodes": 86, "errors": 0, "source_hash": "64a0ba32a785ed0ac91b850bde3e397f03f567228b5570acd7cc1f324595b35b", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <I...
7,384
c
#include <stdio.h> #include <stdlib.h> int valid(int c) { int i, duplicate = 0, last = 10; while (c > 0) { i = c % 10; if (last < i) return 0; if (last == i) duplicate++; last = i; c /= 10; } return duplicate; } int complex_valid(int c) { int i, duplicate = 0, runsize = 0, last = 10; while (c...
15.73
66
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint\nvalid(int c)\n{\n int i, duplicate = 0, last = 10;\n\n while (c > 0) {\n i = c % 10;\n if (last < i)\n return 0;\n if (last == i)\n duplicate++;\n last = i;\n c /= 10;\n }\n\n return duplicate;\n}\n\nint\ncomplex_valid(int c)\n{\n int i, dupli...
480
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 15.73, "nodes": 286, "errors": 0, "source_hash": "e9825f7ccf224305a1ab6425cafd1aab192bf8a947d11c01915a2762f14ec04f", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,385
c
#pragma once #include <cstring> #include <iostream> #include <sstream> #include <string> #include <deque> #include <memory> #include "ATen/Utils.h" #include "aten/device/device.h" #include "aten/device/mlu_guard.h" #include "aten/device/queue.h" #include "aten/device/notifier.h" namespace torch_mlu { class CachingNot...
29.51
35
(translation_unit) "#pragma once\n#include <cstring>\n#include <iostream>\n#include <sstream>\n#include <string>\n#include <deque>\n#include <memory>\n#include "ATen/Utils.h"\n#include "aten/device/device.h"\n#include "aten/device/mlu_guard.h"\n#include "aten/device/queue.h"\n#include "aten/device/notifier.h"\n\nnamesp...
219
6
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.51, "nodes": 124, "errors": 0, "source_hash": "3c1b5cf8e89de3f14413691cfd3c5d42b72aebaf35b9b255cf56c3b605e8c5a3", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,386
c
/* * General configuration for HoverBot.ino * Tested on an Arduino Mega */ // HARDWARE #define PWM_CHANNEL_1 2 #define PWM_CHANNEL_2 3 #define PWM_CHANNEL_3 18 #define LEDPIN 13 #define MOTORDIR_0 -1 #define MOTORDIR_1 1 // CONTROLLER #define KP_POSITION 0.015 #define KP_STEERING 0.01 // RADIO CONTROL #define EN...
21.12
24
(translation_unit) "/*\n * General configuration for HoverBot.ino\n * Tested on an Arduino Mega\n */\n\n// HARDWARE\n#define PWM_CHANNEL_1 2\n#define PWM_CHANNEL_2 3\n#define PWM_CHANNEL_3 18\n#define LEDPIN 13\n\n#define MOTORDIR_0 -1\n#define MOTORDIR_1 1\n\n// CONTROLLER\n#define KP_POSITION 0.015\n#define KP_STEERI...
67
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.12, "nodes": 60, "errors": 0, "source_hash": "72d4a9572a5cfef373edd1ac882b67ee1f835ccd50bc0adb08c876cecb5b7b2b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define PW...
7,387
c
// // Copyright (c) 2006 by Autodesk, Inc. // // By using this code, you are agreeing to the terms and conditions of // the License Agreement included in the documentation for this code. // // AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS // OF THIS CODE OR ANY DERIVATIVE WORKS WHI...
23.4
104
(translation_unit) "// \n// Copyright (c) 2006 by Autodesk, Inc. \n// \n// By using this code, you are agreeing to the terms and conditions of \n// the License Agreement included in the documentation for this code. \n// \n// AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS \n// OF THIS CODE ...
233
6
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 23.4, "nodes": 115, "errors": 0, "source_hash": "6496ac73f34b1ae222b86e078fc30265dfdc9250378692c1896aa6861d817cf5", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,388
c
#include "driver.h" /* Sprites probably need to be delayed */ /* Some scroll layers may need to be offset slightly? */ /* Check Sprite Colours after redump */ /* Clean Up */ /* is theres a bg colour register? */ static tilemap *fg_tilemap,*fg2_tilemap,*fg3_tilemap; extern UINT32 *silkroad_vidram,*silkroad_vidram2,*si...
32.49
129
(translation_unit) "#include "driver.h"\n\n/* Sprites probably need to be delayed */\n/* Some scroll layers may need to be offset slightly? */\n/* Check Sprite Colours after redump */\n/* Clean Up */\n/* is theres a bg colour register? */\n\nstatic tilemap *fg_tilemap,*fg2_tilemap,*fg3_tilemap;\nextern UINT32 *silkroad...
1,292
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 32.49, "nodes": 764, "errors": 0, "source_hash": "b52cf76117bdd2e0bbf850f377722c724fde1b784221fac2add017244c28c169", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,389
c
/******************************************************************************* * Copyright (C) Marvell International Ltd. and its affiliates * * This software file (the "File") is owned and distributed by Marvell * International Ltd. and/or its affiliates ("Marvell") under the following * alternative licensing t...
30.24
278
(translation_unit) "/*******************************************************************************\n * Copyright (C) Marvell International Ltd. and its affiliates\n *\n * This software file (the "File") is owned and distributed by Marvell\n * International Ltd. and/or its affiliates ("Marvell") under the following\n ...
1,538
0
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 30.24, "nodes": 1005, "errors": 0, "source_hash": "837e4439735534173452501b8fde4bc411c21e07856465baec36ba2f0db6e6c2", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,390
c
// // DFUserModelTool.h // rongwei // // Created by zhangfuyu on 2019/9/19. // Copyright © 2019 zhangfuyu. All rights reserved. // #import "JSONModel.h" #import <Foundation/Foundation.h> #import "DFHomeNavModel.h" NS_ASSUME_NONNULL_BEGIN @interface DFUserModelTool : NSObject + (instancetype)shareInstance; /** ...
21.74
42
(translation_unit) "//\n// DFUserModelTool.h\n// rongwei\n//\n// Created by zhangfuyu on 2019/9/19.\n// Copyright © 2019 zhangfuyu. All rights reserved.\n//\n\n#import "JSONModel.h"\n#import <Foundation/Foundation.h>\n#import "DFHomeNavModel.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DFUserModelTool : NSObject\n\n...
218
22
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.74, "nodes": 132, "errors": 0, "source_hash": "2d459b7f8e739e3684bed52bba6d788930814f862552b1b0837b263e0cd05eb2", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
7,391
c
/* * Load firmware example * * Copyright(c) 2018 Xilinx Ltd. * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <platform_info.h> #include <common.h> extern struct image_store_ops mem_image_store_ops; struct mem_file { const void *base; }; static struct mem_file image = { .base = ...
25.55
159
(translation_unit) "/*\n * Load firmware example\n *\n * Copyright(c) 2018 Xilinx Ltd.\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#include <platform_info.h>\n#include <common.h>\n\nextern struct image_store_ops mem_image_store_ops;\n\nstruct mem_file {\n const void *base;\n};\n\nstat...
1,129
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 25.55, "nodes": 646, "errors": 0, "source_hash": "1a34d9f23499baa1cf2dfa7e371d154d80bdc2d6741d9ea0ed2d2459da03aa7f", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,392
c
/* pyh2o -- steam & water properties * (c) 2012 <NAME> * Released under the terms of the 2-clause BSD license */ #pragma once #ifndef _H2O_H #define _H2O_H 1 #include <Python.h> #include <h2o/h2o.h> typedef struct { PyObject_HEAD h2o_t _data; } H2O; extern PyTypeObject H2O_type; #endif /*_H2O_H*/
17.94
16
(translation_unit) "/* pyh2o -- steam & water properties\n * (c) 2012 <NAME>\n * Released under the terms of the 2-clause BSD license\n */\n\n#pragma once\n\n#ifndef _H2O_H\n#define _H2O_H 1\n\n#include <Python.h>\n\n#include <h2o/h2o.h>\n\ntypedef struct\n{\n PyObject_HEAD\n\n h2o_t _data;\n} H2O;\n\nextern PyTypeObje...
41
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.94, "nodes": 32, "errors": 0, "source_hash": "52e9a344bacaf987d57008893fdf2647a8eb0221ebf150c4950a3e6c54379ef6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,393
c
#if !defined(AFX_DLGSKEW_H__1450E80F_B2DF_4EB5_BEDC_4D8C6A609F7C__INCLUDED_) #define AFX_DLGSKEW_H__1450E80F_B2DF_4EB5_BEDC_4D8C6A609F7C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // DlgSkew.h : header file // #include "xTargetButton.h" //////////////////////////////////////////...
22.44
64
(translation_unit) "#if !defined(AFX_DLGSKEW_H__1450E80F_B2DF_4EB5_BEDC_4D8C6A609F7C__INCLUDED_) \n#define AFX_DLGSKEW_H__1450E80F_B2DF_4EB5_BEDC_4D8C6A609F7C__INCLUDED_ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif // _MSC_VER > 1000 \n// DlgSkew.h : header file \n// \n \n#include "xTargetButton.h" \n \n///////////...
214
5
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 22.44, "nodes": 133, "errors": 0, "source_hash": "5f33f8c6144aa139a0030f9c67405127759ee06fb0287362bd0bdb27b3024370", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
7,394
c
/* * This file is part of the "IdTool" utility app. * * MIT License * * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
34.28
107
(translation_unit) "/*\n * This file is part of the "IdTool" utility app.\n *\n * MIT License\n *\n * Copyright (c) 2019 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software witho...
586
9
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 34.28, "nodes": 385, "errors": 0, "source_hash": "4ca0bcc5df57db127f966356b9ff23540acc1345c3ead3ae9348aee10656ac92", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,395
c
#include "stm32f0xx.h" #include <stdint.h> #include "SysClock.h" static int hse_error = 0; int SysClockInit(void) { __IO int StartUpCounter; hse_error = 0; RCC->CR |= RCC_CR_CSSON; //Включаем систему безопасности тактирования //////////////////////////////////////////////////////////// ...
25.28
116
(translation_unit) "#include "stm32f0xx.h" \n#include <stdint.h> \n#include "SysClock.h" \n \nstatic int hse_error = 0; \n \nint SysClockInit(void) \n{ \n __IO int StartUpCounter; \n \n hse_error = 0; \n \n RCC->CR |= RCC_CR_CSSON; //Включаем систему безопасности тактирования \n \n ///////////////////////////...
481
1
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 25.28, "nodes": 289, "errors": 0, "source_hash": "5d15a275ab4848f82581e04cf79fa2696b5739b7ccbae6a4d2e79e5153882507", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,396
c
// math.h // #ifndef MATH_H #define MATH_H val math_add(pyr_cache *this_pyr, val a, val b); val math_neg(pyr_cache *this_pyr, val a); val math_sub(pyr_cache *this_pyr, val a, val b); val math_lattice_mul(pyr_cache *this_pyr, val a, val b); hword math_add_hword(pyr_cache *this_pyr, hword *a, mword size_a, hword *b, ...
34.92
12
(translation_unit) "// math.h\n// \n\n#ifndef MATH_H\n#define MATH_H \n\nval math_add(pyr_cache *this_pyr, val a, val b);\nval math_neg(pyr_cache *this_pyr, val a);\nval math_sub(pyr_cache *this_pyr, val a, val b);\nval math_lattice_mul(pyr_cache *this_pyr, val a, val b);\nhword math_add_hword(pyr_cache *this_pyr, hwor...
130
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.92, "nodes": 99, "errors": 0, "source_hash": "e2f2b95209ab27cfe142a25998d41f1b93b1d27059405058fb0c7c23ae6965c3", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,397
c
/* * Copyright 2014, General Dynamics C4 Systems * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(GD_GPL) */ /* * Kernel Profiler * * 2007 <NAME> * 2007 ...
28.01
154
(translation_unit) "/*\n * Copyright 2014, General Dynamics C4 Systems\n *\n * This software may be distributed and modified according to the terms of\n * the GNU General Public License version 2. Note that NO WARRANTY is provided.\n * See "LICENSE_GPLv2.txt" for details.\n *\n * @TAG(GD_GPL)\n */\n\n/*\n * Kernel Prof...
869
2
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 28.01, "nodes": 513, "errors": 0, "source_hash": "e7b89d42ee5f86c6aa20ffc0f21e75a88cf10a55a8faf54512ad6a9b0c262c01", "categorized_nodes": 376}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
7,398
c
/* ==== MYSQL trivial implementation =========================================== * * * * Compile with * - gcc -c -I/usr/include/mysql -Wall -Werror -pedantic -std=c99 version.c -o * version.obj * - gcc version.obj -L/usr/lib/mysql -lmysqlclient -o version * * * * * =============================...
24.51
53
(translation_unit) "/* ==== MYSQL trivial implementation ===========================================\n * \n * \n * \n * Compile with\n * - gcc -c -I/usr/include/mysql -Wall -Werror -pedantic -std=c99 version.c -o \n * version.obj\n * - gcc version.obj -L/usr/lib/mysql -lmysqlclient -o version\n * \n * \n * \n * \n ...
265
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 24.51, "nodes": 156, "errors": 0, "source_hash": "3aa1fd51fd57f8b517348ee67ecb02a67234c6ee7a47df3d8450d45b54f9276d", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,399