language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef PGHBA_HOST_TYPE_H_ #define PGHBA_HOST_TYPE_H_ #include <wx/wx.h> class PgHbaHostType { public: PgHbaHostType(); PgHbaHostType( const wxString &type, const wxString &database, const wxString &user, const wxString &address, const wxString &subnet, const wxString &method ); void SetT...
23.78
37
(translation_unit) "#ifndef PGHBA_HOST_TYPE_H_\n#define PGHBA_HOST_TYPE_H_\n\n#include <wx/wx.h>\n\nclass PgHbaHostType {\n\n public:\n PgHbaHostType();\n PgHbaHostType(\n const wxString &type,\n const wxString &database,\n const wxString &user,\n const wxString &address,\n const wxString &subnet,\n const...
265
21
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 23.78, "nodes": 144, "errors": 0, "source_hash": "e425ff3ec7d5dc15e30a9b07d8a1835f837b9b8352e11a581143c3452b78bc77", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,700
c
/** * Copyright (c) 2014 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
36.39
31
(translation_unit) "/**\n * Copyright (c) 2014 <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
118
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.39, "nodes": 74, "errors": 0, "source_hash": "770e3cc1fd0a5c7934d0e0e2750d7bc5f89b7e6a83c14becdcab9a8120a56e91", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,701
c
// Copyright (c) 2015 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <infix_internal.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <stdio.h> static int whitespace(char c); static int isop(char *st...
21.99
86
(translation_unit) "// Copyright (c) 2015 <NAME>. 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#include <infix_internal.h>\n\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n#include <stdio.h>\n\nstatic int whitespace(cha...
924
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 21.99, "nodes": 541, "errors": 0, "source_hash": "dde2365216779dd830e5b0ff09c39a6666f5bbd2a1c96d821348b4df33ad0161", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,702
c
#ifndef HARNESS_H #define HARNESS_H #ifdef UNTRUSTED_APP #include "runtime/DiggiUntrustedRuntime.h" #include "datatypes.h" #include "threading/ThreadPool.h" #include "runtime/DiggiAPI.h" #include "network/Connection.h" #include "network/HTTP.h" #include <signal.h> #include <unistd.h> #include <stdio.h> #include <fstre...
22.24
17
(translation_unit) "#ifndef HARNESS_H\n#define HARNESS_H\n#ifdef UNTRUSTED_APP\n\n#include "runtime/DiggiUntrustedRuntime.h"\n#include "datatypes.h"\n#include "threading/ThreadPool.h"\n#include "runtime/DiggiAPI.h"\n#include "network/Connection.h"\n#include "network/HTTP.h"\n#include <signal.h>\n#include <unistd.h>\n#i...
73
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.24, "nodes": 47, "errors": 0, "source_hash": "d444ae9dc09d2717ff35c219071fa9d5826d2582dca48c1f316742a9f6715131", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,703
c
/* * Button header file * Copyright (c) 2009, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program is distributed in ...
31.66
50
(translation_unit) "/*\n * Button header file\n * Copyright (c) 2009, Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU Lesser General Public License,\n * version 2.1, as published by the Free Software Foundation.\n *\n * Thi...
257
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.66, "nodes": 207, "errors": 0, "source_hash": "7f6b05de47da4855a64f7a629d8e1e71f6071a2cf059bba937b4c0af05a27377", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,704
c
/* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)dbm.h 5.1 (Berkeley) 3/27/86 */ #ifndef NULL /* * this is lunacy, we no longer use it (and never should have * uncond...
23.52
25
(translation_unit) "/*\n * Copyright (c) 1980 Regents of the University of California.\n * All rights reserved. The Berkeley software License Agreement\n * specifies the terms and conditions for redistribution.\n *\n * @(#)dbm.h 5.1 (Berkeley) 3/27/86\n */\n\n#ifndef NULL\n/*\n * this is lunacy, we no longer use it (a...
77
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.52, "nodes": 53, "errors": 0, "source_hash": "d815b29d1aa36f38a9c7165b54008e456f5fccb768836da9857c0d4424646ac6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,705
c
#pragma once // Other #include <v8.h> class V8Point { public: V8Point(v8::Isolate* isolate) : isolate_(isolate) { } v8::Handle<v8::Object> Forge(Point* point, v8::Handle<v8::Context> context); v8::Handle<v8::ObjectTemplate> MakeBlueprint(); static void GetPointX( v8::Local<v8::String> name, con...
31.48
27
(translation_unit) "#pragma once\n\n// Other\n#include <v8.h>\n\nclass V8Point {\npublic:\n V8Point(v8::Isolate* isolate) : isolate_(isolate) { }\n\n v8::Handle<v8::Object> Forge(Point* point, v8::Handle<v8::Context> context);\n\n v8::Handle<v8::ObjectTemplate> MakeBlueprint();\n\n static void GetPointX(\n v8:...
318
17
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.48, "nodes": 188, "errors": 0, "source_hash": "42ac4f9bb23ce985ad539f28fe6722f8976ee52d5ecf9ec0dcde29c574b36be8", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,706
c
#pragma once #include "External/Dx12Helpers/d3dx12.h" namespace DirectxPlayground { struct RenderContext; class Model; class UploadBuffer; class Tonemapper { public: Tonemapper() = default; ~Tonemapper(); void InitResources(RenderContext& ctx, ID3D12RootSignature* rootSig); void Render(RenderContext...
25.75
48
(translation_unit) "#pragma once\n\n#include "External/Dx12Helpers/d3dx12.h"\n\nnamespace DirectxPlayground\n{\nstruct RenderContext;\nclass Model;\nclass UploadBuffer;\n\nclass Tonemapper\n{\npublic:\n Tonemapper() = default;\n ~Tonemapper();\n\n void InitResources(RenderContext& ctx, ID3D12RootSignature* roo...
345
17
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.75, "nodes": 207, "errors": 0, "source_hash": "85b6230edb771f9027ca0128de28e41184992824b0cceb50489ca3a590e9ea6b", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,707
c
/* * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 2001 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <string.h> #include <ftypes-int.h> #include <epan/ipv4.h> #include <epan/addr_and_mask.h> #include <epan/addr_resolv.h> static void set_uinteger...
26.49
216
(translation_unit) "/*\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 2001 <NAME>\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n\n#include "config.h"\n\n#include <string.h>\n\n#include <ftypes-int.h>\n#include <epan/ipv4.h>\n#include <epan/addr_and_mask.h>\n#include <epan/addr_...
1,663
7
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 26.49, "nodes": 1018, "errors": 0, "source_hash": "2b57dc96e8e0a7ebf669d4544207802262b49fa08dd3b98ca558b400051a77fe", "categorized_nodes": 782}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,708
c
// // DetailViewController.h // EbatesCC_StoryBoard // // Created by <NAME> on 1/9/19. // Copyright © 2019 EbatesInterview. All rights reserved. // #import <UIKit/UIKit.h> @class RecentPhotoInfo; @interface PhotoDetailVC : UIViewController @property (strong, nonatomic) RecentPhotoInfo *detailItem; @property (str...
27.85
13
(translation_unit) "//\n// DetailViewController.h\n// EbatesCC_StoryBoard\n//\n// Created by <NAME> on 1/9/19.\n// Copyright © 2019 EbatesInterview. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class RecentPhotoInfo;\n\n@interface PhotoDetailVC : UIViewController\n\n@property (strong, nonatomic) RecentPhot...
63
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.85, "nodes": 43, "errors": 0, "source_hash": "32f0ede660a6b8ce57a4e9b8c8647ca87047ad7e8b410316d8c7b91893181019", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
7,709
c
// // LLProduct.h // LLLottery // // Created by 李学林 on 16/2/2. // Copyright © 2016年 Upriver. All rights reserved. // #import <Foundation/Foundation.h> @interface LLProduct : NSObject @property(nonatomic, copy) NSString *title; @property(nonatomic, copy) NSString *icon; @property(nonatomic, copy) NSString *scheme;...
29.59
17
(translation_unit) "//\n// LLProduct.h\n// LLLottery\n//\n// Created by 李学林 on 16/2/2.\n// Copyright © 2016年 Upriver. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface LLProduct : NSObject\n@property(nonatomic, copy) NSString *title;\n@property(nonatomic, copy) NSString *icon;\n@property(n...
138
26
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.59, "nodes": 88, "errors": 0, "source_hash": "e06c6b933d2f4aa82821c2fbb35ee680d9e4e6ea5928131a15a33ca3e5a54825", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
7,710
c
#include <string.h> #include <stdio.h> int main (void) { short int t[4]; // set all bytes to 0 memset(t, 0, sizeof(t)); printf("%d %d %d %d\n", t[0], t[1], t[2], t[3]); // set all bytes to 1 // this operation makes print function to show 257 257 257 257 // beacuse using shor int there...
26
17
(translation_unit) "#include <string.h>\n#include <stdio.h>\n\nint main (void)\n{\n short int t[4];\n\n // set all bytes to 0\n memset(t, 0, sizeof(t));\n printf("%d %d %d %d\n", t[0], t[1], t[2], t[3]);\n \n // set all bytes to 1\n // this operation makes print function to show 257 257 257 257\n ...
144
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.0, "nodes": 72, "errors": 0, "source_hash": "a501f8aaeb4c5cfdf64300366360c1905df1e4d040bcdf24895593bfd2f66025", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,711
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" @interface TextInputUtilities : NSObject { } + (void)open:(long long)arg1 showElement:(id)arg2; + (void)open:(long long)arg1; + (id)_xmlStringFromDictionary:(id)arg...
24
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 "NSObject.h"\n\n@interface TextInputUtilities : NSObject\n{\n}\n\n+ (void)open:(long long)arg1 showElement:(id)arg2;\n+ (void)open:(long long)arg1;\n+ (i...
86
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.0, "nodes": 49, "errors": 0, "source_hash": "663ee3ed8f1709372fd9201c57b7f4db341a39e80c69b80825213ae3f75b3830", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
7,712
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UICollectionViewCell.h" @class MBCircularProgressBarView, UIImageView, UILabel, UIView; @interface QZLVThemeSelectCell : UICollectionViewCell { MBCircularProgressBarView *_...
34.37
30
(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 "UICollectionViewCell.h"\n\n@class MBCircularProgressBarView, UIImageView, UILabel, UIView;\n\n@interface QZLVThemeSelectCell : UICollectionViewCell\n{\n...
275
21
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.37, "nodes": 167, "errors": 0, "source_hash": "65d91d42ef2601e1ccc619ad960c80f2371b0dad4293946e9d5f165335ae8914", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,713
c
#ifdef _WIN32 __declspec(dllexport) #endif int func1(void) { return 42; }
11.67
6
(translation_unit) "#ifdef _WIN32\n__declspec(dllexport)\n#endif\nint func1(void) {\n return 42;\n}\n" (preproc_ifdef) "#ifdef _WIN32\n__declspec(dllexport)\n#endif" (#ifdef) "#ifdef" (identifier) "_WIN32" (ERROR) "__declspec(dllexport)" (ms_declspec_modifier) "__declspec(dllexport)" (__dec...
27
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.67, "nodes": 17, "errors": 0, "source_hash": "e84ffd945c1477e6275c83649c562982cc3c10aa0c20c28de762f6ae3253c101", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _W...
7,714
c
// // rAppDelegate.h // Things to do // // Created by <NAME> on 1/6/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface rAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.45
11
(translation_unit) "//\n// rAppDelegate.h\n// Things to do\n//\n// Created by <NAME> on 1/6/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface rAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.45, "nodes": 25, "errors": 0, "source_hash": "4359f77ca2c63f426e8125c87feffa33f698431271970023a2de203dbd60904d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,715
c
#include "mt19937-jump.h" #include "mt19937.h" /* 32-bits function */ /* return the i-th coefficient of the polynomial pf */ unsigned long get_coef(unsigned long *pf, unsigned int deg) { if ((pf[deg >> 5] & (LSB << (deg & 0x1ful))) != 0) return (1); else return (0); } /* 32-bit function */ /* ...
26.23
137
(translation_unit) "#include "mt19937-jump.h"\n#include "mt19937.h"\n\n/* 32-bits function */\n/* return the i-th coefficient of the polynomial pf */\nunsigned long get_coef(unsigned long *pf, unsigned int deg)\n{\n if ((pf[deg >> 5] & (LSB << (deg & 0x1ful))) != 0)\n return (1);\n else\n return (0)...
1,504
0
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 26.23, "nodes": 972, "errors": 0, "source_hash": "6cb5bb3a7b388768ae95416d034844d09418a27cbf9a7192c357d0ee9d5005a2", "categorized_nodes": 717}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,716
c
#include <stdio.h> #include <string.h> //é pra retornar o vetor no return?, por ex: "return vetor"? Não ficou claro. void ler3Palavras(char str[3][20]){ for (int i = 0; i < 3; i++) { printf("Informe a %iº palavra: \n", i+1); scanf("%s", str[i]); } } int main(int argc, char const *argv[]) ...
16
31
(translation_unit) "#include <stdio.h> \n#include <string.h> \n//é pra retornar o vetor no return?, por ex: "return vetor"? Não ficou claro. \n \nvoid ler3Palavras(char str[3][20]){ \n \n \n for (int i = 0; i < 3; i++) \n { \n printf("Informe a %iº palavra: \n", i+1); \n scanf("%s", str[i]); \n } \n \n} \n \nint m...
195
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 16.0, "nodes": 101, "errors": 0, "source_hash": "e560e84713a9fb89ced91add668e82abbb6771d357ca9b3964eed7b7294c42f8", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,717
c
// // ActionViewController.h // Athena // // Created by <NAME> on 7/5/11. // Copyright 2011 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @class Action; @class BaseObject; @interface ActionViewController : NSViewController { Action *actionObj; IBOutlet NSObjectController *actionController; } @pr...
27.48
21
(translation_unit) "//\n// ActionViewController.h\n// Athena\n//\n// Created by <NAME> on 7/5/11.\n// Copyright 2011 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n@class Action;\n@class BaseObject;\n\n@interface ActionViewController : NSViewController {\n Action *actionObj;\n IBOutlet NSObjectC...
153
20
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.48, "nodes": 95, "errors": 0, "source_hash": "3d4dc9fe5ee0d3eac3cf178d0d5981d0ac4a3067eb29f9ecdc3b8e3083d1085e", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,718
c
// // AudioFileWriter.h // SineGen // // Created by uriadmin on 6/20/13. // Copyright (c) 2013 New York University. All rights reserved. // #import <Foundation/Foundation.h> #import <AudioToolbox/AudioToolbox.h> @interface AudioFileWriter : NSObject @property (assign, nonatomic) BOOL isClosed; - (void)loadFileW...
30.76
17
(translation_unit) "//\n// AudioFileWriter.h\n// SineGen\n//\n// Created by uriadmin on 6/20/13.\n// Copyright (c) 2013 New York University. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <AudioToolbox/AudioToolbox.h>\n\n@interface AudioFileWriter : NSObject\n\n@property (assign, nonatomic) ...
104
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.76, "nodes": 61, "errors": 0, "source_hash": "d67b6696661ccb7c22289df7b4fa69233a455e1f03f0f63b4fc773bbeeb95a2d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,719
c
/** * Copyright 2019-2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
31.66
83
(translation_unit) "/**\n * Copyright 2019-2020 Huawei Technologies Co., Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n *...
362
18
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 31.66, "nodes": 211, "errors": 0, "source_hash": "1e42bea82e549cdcee2b0b28e0750a5cfba5d540eb33b0382d16dfd250f9aae8", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,720
c
#ifndef list_h #define list_h #include "bool.h" typedef struct { /* Points to the void* array in memory */ void** ptrs; int num_items; /* number of possible item slots (according to the memory allocated */ int num_slots; /* memory block size and number of memory blocks */ int b...
19.33
43
(translation_unit) "#ifndef list_h \n#define list_h \n \n#include "bool.h" \n \ntypedef struct { \n \n /* Points to the void* array in memory */ \n void** ptrs; \n \n int num_items; \n \n /* number of possible item slots (according to the memory allocated */ \n int num_slots; \n \n /* memory block size and ...
276
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 19.33, "nodes": 209, "errors": 0, "source_hash": "e1b8795e018e4c49d82b4a17b375ada63477333dfde10c3cff3cf2504311410e", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,721
c
#include <rtosc/rtosc.h> #include <stdio.h> #include <string.h> #include "common.h" char buffer[1024]; int err = 0; #define CHECK(x) \ if(!(x)) {\ fprintf(stderr, "failure at line %d (" #x ")\n", __LINE__); \ ++err;} //Check sanity with buffer offset k and within message offset j #define CheckSani...
43.6
45
(translation_unit) "#include <rtosc/rtosc.h>\n#include <stdio.h>\n#include <string.h>\n#include "common.h"\n\nchar buffer[1024];\nint err = 0;\n#define CHECK(x) \\n if(!(x)) {\\n fprintf(stderr, "failure at line %d (" #x ")\n", __LINE__); \\n ++err;}\n\n//Check sanity with buffer offset k and within me...
374
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 43.6, "nodes": 210, "errors": 0, "source_hash": "23c3e4bb60a96441efe7ce5c38e363db365897275f88e23f14a23c82d6b7dd81", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,722
c
/* eeprom.h * * Header file for eeprom.c. * * Copyright (C) 2005, 2009 Linear Systems Ltd. * * 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 License, or (at yo...
37.29
31
(translation_unit) "/* eeprom.h\n *\n * Header file for eeprom.c.\n *\n * Copyright (C) 2005, 2009 Linear Systems Ltd.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either Version 2\...
93
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 37.29, "nodes": 75, "errors": 0, "source_hash": "6cb774069e0d157e195827bfc04b701f912645998ec4e47945b72c0011f51456", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,723
c
/********************************************************************** ** ** Copyright (C) 2018 Luxoft Sweden AB ** ** This file is part of the FaceLift project ** ** Permission is hereby granted, free of charge, to any person ** obtaining a copy of this software and associated documentation files ** (the "Software"),...
37.38
142
(translation_unit) "/**********************************************************************\n**\n** Copyright (C) 2018 Luxoft Sweden AB\n**\n** This file is part of the FaceLift project\n**\n** Permission is hereby granted, free of charge, to any person\n** obtaining a copy of this software and associated documentation...
921
32
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 37.38, "nodes": 523, "errors": 0, "source_hash": "8dd72c53a85a10349ec13ab22469b867bdf833d8f4d923917a20dca3bcfc9faf", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,724
c
#include<stdio.h> #include<string.h> #include<algorithm> #define ll long long #define mmset(a,b) memset(a,b,sizeof(a)) using namespace std; const int N = 2e5 + 10; int data[N]; int n; int main() { scanf("%d",&n); for(int i = 1; i <= n; i++) { scanf("%d",&data[i]); } sort(data + 1, data + 1 + n); int i = 1; i...
13.26
42
(translation_unit) "#include<stdio.h>\n#include<string.h>\n#include<algorithm>\n#define ll long long \n#define mmset(a,b) memset(a,b,sizeof(a))\nusing namespace std;\nconst int N = 2e5 + 10;\nint data[N];\nint n;\nint main()\n{\n scanf("%d",&n);\n for(int i = 1; i <= n; i++)\n {\n scanf("%d",&data[i]);\n }\n sort(dat...
301
1
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 13.26, "nodes": 192, "errors": 0, "source_hash": "7ad706efef2426f465210ac48b4bf1fbe54cbcc24cf49fb67fc99cd0e7e307ae", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,725
c
#ifndef _UAPI_ALPHA_TYPES_H #define _UAPI_ALPHA_TYPES_H /* * This file is never included by application software unless * explicitly requested (e.g., via linux/types.h) in which case the * application is Linux specific so (user-) name space pollution is * not a major issue. However, for interoperability, librarie...
35.15
13
(translation_unit) "#ifndef _UAPI_ALPHA_TYPES_H\n#define _UAPI_ALPHA_TYPES_H\n\n/*\n * This file is never included by application software unless\n * explicitly requested (e.g., via linux/types.h) in which case the\n * application is Linux specific so (user-) name space pollution is\n * not a major issue. However, for...
17
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.15, "nodes": 14, "errors": 0, "source_hash": "622b2bcc70eeee9d1af2b2944e8ead79f7be9ea5d2b641909eb94c44ff994586", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,726
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "QZBaseEngine.h" @interface QZExtraEngine : QZBaseEngine { } + (id)instance; - (long long)adaptVideo:(id)arg1; - (long long)getDeviceInfo; - (long long)setUserTailWithDeviceInfo...
22.79
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 "QZBaseEngine.h"\n\n@interface QZExtraEngine : QZBaseEngine\n{\n}\n\n+ (id)instance;\n- (long long)adaptVideo:(id)arg1;\n- (long long)getDeviceInfo;\n- (...
83
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.79, "nodes": 48, "errors": 0, "source_hash": "a8f011b88fd2f53fa9e3a9a36ab967a00b7a736b9714b4405c9a786df726aff9", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,727
c
// Copyright (c) 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_EPOLL_H_ #define QUICHE_QUIC_PLATFORM_API_QUIC_EPOLL_H_ #include "common/platform/api/quiche_epoll.h" namespac...
47.23
13
(translation_unit) "// Copyright (c) 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef QUICHE_QUIC_PLATFORM_API_QUIC_EPOLL_H_\n#define QUICHE_QUIC_PLATFORM_API_QUIC_EPOLL_H_\n\n#include "common/platform/ap...
69
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 47.23, "nodes": 45, "errors": 0, "source_hash": "b357258591d274fb1dee1f1b8076123168ece3b6db658503f8858ad37a93ba07", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,728
c
/* * Copyright 2007-2010 (C) - Frictional Games * * This file is part of OALWrapper * * For conditions of distribution and use, see copyright notice in LICENSE */ #ifndef _OAL_STREAM_H #define _OAL_STREAM_H #include "OAL_AudioData.h" //----------------------------------------------------------------------------...
39.63
46
(translation_unit) "/*\n * Copyright 2007-2010 (C) - Frictional Games\n *\n * This file is part of OALWrapper\n *\n * For conditions of distribution and use, see copyright notice in LICENSE\n */\n#ifndef _OAL_STREAM_H\n#define _OAL_STREAM_H\n\n#include "OAL_AudioData.h"\n\n//--------------------------------------------...
412
6
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 39.63, "nodes": 260, "errors": 0, "source_hash": "ac5c5450efd943461378198d829a6c46af8f1c0e65f213cc77afb8c2b398f608", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,729
c
#import <UIKit/UIKit.h> typedef void(^CompletionBlock)(void); @interface SDCircleProgressButton : UIButton //轨道颜色 @property (nonatomic,strong)UIColor *trackColor; //进度条颜色 @property (nonatomic,strong)UIColor *progressColor; //背景色 @property (nonatomic,strong)UIColor *fillColor; //进度条宽度 @property (n...
24.18
22
(translation_unit) "#import <UIKit/UIKit.h>\n\ntypedef void(^CompletionBlock)(void);\n\n\n@interface SDCircleProgressButton : UIButton\n\n//轨道颜色\n@property (nonatomic,strong)UIColor *trackColor;\n\n//进度条颜色\n@property (nonatomic,strong)UIColor *progressColor;\n\n//背景色\n@property (nonatomic,strong)UIColor *fillC...
139
25
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.18, "nodes": 97, "errors": 0, "source_hash": "9470e805167d88d9d8972f7a0ecf335c0ae997a04ad7a39231c4c6357f8d7fe3", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,730
c
#ifndef BINARYTIMESERIES_H #define BINARYTIMESERIES_H #include <algorithm> #include <fstream> #include <iostream> #include <QDebug> #include <QString> // from https://stackoverflow.com/questions/3823921/convert-big-endian-to-little-endian-when-reading-from-a-binary-file template <class T> void endswap(T *objp) { u...
27.05
58
(translation_unit) "#ifndef BINARYTIMESERIES_H\n#define BINARYTIMESERIES_H\n\n#include <algorithm>\n#include <fstream>\n#include <iostream>\n\n#include <QDebug>\n#include <QString>\n\n// from https://stackoverflow.com/questions/3823921/convert-big-endian-to-little-endian-when-reading-from-a-binary-file\ntemplate <class...
442
15
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.05, "nodes": 262, "errors": 0, "source_hash": "54b066c1365161d5458063af8e9b060356f1a67f8e2a5300f1f231bf484cdd74", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,731
c
// // Checklist.h // Todo // // Created by <NAME> on 2015-09-20. // Copyright © 2015 <NAME>. All rights reserved. // #import "BackboneUITableViewCollection.h" #import "ChecklistItem.h" @interface Checklist : BackboneUITableViewCollection @end
21.45
11
(translation_unit) "//\n// Checklist.h\n// Todo\n//\n// Created by <NAME> on 2015-09-20.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import "BackboneUITableViewCollection.h"\n#import "ChecklistItem.h"\n\n@interface Checklist : BackboneUITableViewCollection\n\n@end\n" (comment) "//" (comment) "// ...
25
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.45, "nodes": 13, "errors": 0, "source_hash": "973d45ec1e60b8afa7ee86b784970d6c8c7a3dd769d8b042965c504d35f2dde5", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"B...
7,732
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GPU_EXTENSIONS_3D_UTIL_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GPU_EXTENSIONS_3D_UTIL...
42.56
43
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GPU_EXTENSIONS_3D_UTIL_H_\n#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHI...
324
14
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 42.56, "nodes": 177, "errors": 0, "source_hash": "3b8b2c1232929b4283ae6196d40ec809292e14e67235346c90a7510f576e15ed", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,733
c
/* * Copyright (c) 2010 Apple Inc. All rights reserved. * * @APPLE_LLVM_LICENSE_HEADER@ */ /* * driver.h * ClosureTest * * Created by <NAME> on 1/25/08. * Copyright 2008 __MyCompanyName__. All rights reserved. * */ #include <stdio.h> #include "../Block.h" #include "../Block_private.h" // test routines...
26.31
42
(translation_unit) "/*\n * Copyright (c) 2010 Apple Inc. All rights reserved.\n *\n * @APPLE_LLVM_LICENSE_HEADER@\n */\n\n/*\n * driver.h\n * ClosureTest\n *\n * Created by <NAME> on 1/25/08.\n * Copyright 2008 __MyCompanyName__. All rights reserved.\n *\n */\n\n#include <stdio.h>\n#include "../Block.h"\n#include "...
198
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.31, "nodes": 134, "errors": 0, "source_hash": "4730eb6971de0fd204025eb117c0b8200b81159684ebb4ba00dcadf7caeb0841", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,734
c
/** ****************************************************************************** * @file stm3210e_eval.c * @author MCD Application Team * @version V7.0.0 * @date 14-April-2017 * @brief This file provides a set of firmware functions to manage Leds, * push-button and COM ports for STM321...
31.79
194
(translation_unit) "/** \n ****************************************************************************** \n * @file stm3210e_eval.c \n * @author MCD Application Team \n * @version V7.0.0 \n * @date 14-April-2017 \n * @brief This file provides a set of firmware functions to manage Leds, \n * push-butt...
549
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 31.79, "nodes": 304, "errors": 0, "source_hash": "4491b3fc73e4d84c421dd436a49d28c8c9d41adddcdbd9c756788af104c74047", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,735
c
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyr...
30.65
120
(translation_unit) "/*\n * Copyright (c) 1983, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code ...
640
1
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 30.65, "nodes": 405, "errors": 0, "source_hash": "34ad8ad0d2687996a4136264b446f439490f160f081e254a32139e30e3a6efed", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defi...
7,736
c
// // MapController.h // NuvIoT DJI Proxy // // Created by <NAME> on 5/12/18. // Copyright © 2018 Software Logistics, LLC. All rights reserved. // #ifndef MapController_h #define MapController_h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import "AircraftAnnotation.h" @interface MapController : NSObject @...
25.3
40
(translation_unit) "//\n// MapController.h\n// NuvIoT DJI Proxy\n//\n// Created by <NAME> on 5/12/18.\n// Copyright © 2018 Software Logistics, LLC. All rights reserved.\n//\n\n#ifndef MapController_h\n#define MapController_h\n#import <UIKit/UIKit.h>\n#import <MapKit/MapKit.h>\n#import "AircraftAnnotation.h"\n\n@int...
169
17
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 25.3, "nodes": 99, "errors": 0, "source_hash": "bab70925ea0b5f4ee506a10e46dcd890f69554bfddb8d99857e8758557a360f0", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef Ma...
7,737
c
/* Copyright (c) 2018, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include <stdio.h> #include <stdbool.h> #include <string.h> ...
28.91
35
(translation_unit) "/*\n Copyright (c) 2018, Electrux\n All rights reserved.\n Using the BSD 3-Clause license for the project,\n main LICENSE file resides in project's root directory.\n\n Please read that file and understand the license terms\n before using or altering the project.\n*/\n\n#include <stdio.h>\n#include <...
245
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.91, "nodes": 140, "errors": 0, "source_hash": "5f04318884461128d9dc3f60ef58c3dba0e6517d0171d5929a840ca5f0ecd705", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,738
c
#ifndef DEMO_PANDORA_CONTROLLERS_CHAIN_FOLLOW_CONTROLLER_H #define DEMO_PANDORA_CONTROLLERS_CHAIN_FOLLOW_CONTROLLER_H #include <set> #include <glm/glm.hpp> #include <ros/ros.h> #include "PlannerAction.h" class AUV; class Chain; namespace DreadedPE { class Line; class SceneManager; class SceneNode; class Scene...
24.39
54
(translation_unit) "#ifndef DEMO_PANDORA_CONTROLLERS_CHAIN_FOLLOW_CONTROLLER_H\n#define DEMO_PANDORA_CONTROLLERS_CHAIN_FOLLOW_CONTROLLER_H\n\n#include <set>\n#include <glm/glm.hpp>\n\n#include <ros/ros.h>\n\n\n#include "PlannerAction.h"\n\nclass AUV;\nclass Chain;\n\nnamespace DreadedPE\n{\n class Line;\n class SceneMa...
346
15
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.39, "nodes": 215, "errors": 0, "source_hash": "78607d5de88c3d904cac6435a4c08ea95c44073cfde62ac8e8b7f673a5515e3f", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,739
c
// // TuSDKCircularProgressView.h // TuSDKCircularProgressView // // Created by <NAME> on 16/7/14. // Copyright © 2016年 tusdk.com. All rights reserved. // #import <UIKit/UIKit.h> #import "TuSDKGeeV1Import.h" /** 自定义视图 环状进度条 - returns: 一个进度条 */ @interface TuSDKCircularProgressView : UIView /** * 自定义进度条初始化方法...
18.24
37
(translation_unit) "//\n// TuSDKCircularProgressView.h\n// TuSDKCircularProgressView\n//\n// Created by <NAME> on 16/7/14.\n// Copyright © 2016年 tusdk.com. All rights reserved.\n//\n\n\n#import <UIKit/UIKit.h>\n#import "TuSDKGeeV1Import.h"\n/**\n 自定义视图 环状进度条\n \n - returns: 一个进度条\n */\n@interface TuSDKCircularProgr...
86
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.24, "nodes": 47, "errors": 0, "source_hash": "a9aff44c0a43b7e2c190a8f5987a2e414ed2c35ffbaa2c5ec3440da489916188", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,740
c
// // SJSQLiteErrors.h // Pods-SJSQLite3_Example // // Created by 畅三江 on 2019/7/30. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXTERN NSError * sqlite3_error_make_error(NSString *error_msg); FOUNDATION_EXTERN NSError * sqlite3_error_get_table_failed(Class cls); FOUNDATION_EXPORT NSE...
25.76
17
(translation_unit) "//\n// SJSQLiteErrors.h\n// Pods-SJSQLite3_Example\n//\n// Created by 畅三江 on 2019/7/30.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nFOUNDATION_EXTERN NSError *\nsqlite3_error_make_error(NSString *error_msg);\n\nFOUNDATION_EXTERN NSError *\nsqlite3_error_get_table_failed...
76
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.76, "nodes": 54, "errors": 0, "source_hash": "c0ed2cc6067a573e39ac0634f03a341835240eae458499ca8765c60cb1886a98", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda...
7,741
c
/** * \file * * \brief QTouch Sensor interface * * Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It...
33.73
169
(translation_unit) "/**\n * \file\n *\n * \brief QTouch Sensor interface\n *\n * Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Subject to your compliance with these terms, you may use Microchip\n * software and any derivatives exclusivel...
669
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 33.73, "nodes": 383, "errors": 0, "source_hash": "7b1a24c96f244e38c4d812ecfe87f76e67824be15fcec748808894417fe1bebd", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,742
c
#pragma once #include<geDE/Keyword.h> #include<glm/glm.hpp> #include<glm/gtc/matrix_transform.hpp> #include<glm/gtc/type_ptr.hpp> #include<glm/gtc/matrix_access.hpp> namespace ge{ namespace de{ class Kernel; template<>inline std::string keyword<glm::vec3>(){return ge::de::keyword<float[3]>();} template<...
39
16
(translation_unit) "#pragma once\n\n#include<geDE/Keyword.h>\n#include<glm/glm.hpp>\n#include<glm/gtc/matrix_transform.hpp>\n#include<glm/gtc/type_ptr.hpp>\n#include<glm/gtc/matrix_access.hpp>\n\nnamespace ge{\n namespace de{\n class Kernel;\n template<>inline std::string keyword<glm::vec3>(){return ge::de::keyw...
265
19
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.0, "nodes": 163, "errors": 0, "source_hash": "aa60bb835cd00f8ca51e79436f364d1eb1d83d3509a475dbd863712657a78369", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,743
c
/* * The ELepHant Reasoner * * Copyright (C) <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
30.3
134
(translation_unit) "/*\n * The ELepHant Reasoner\n *\n * Copyright (C) <NAME> (<EMAIL>)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE...
980
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 30.3, "nodes": 534, "errors": 0, "source_hash": "68949ceca4105528d4dce42c645ec392dfd6b4ad84bca113222c71f90c393bf7", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,744
c
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
25.97
176
(translation_unit) "/**\n * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or\n * more contributor license agreements. See the NOTICE file distributed\n * with this work for additional information regarding copyright ownership.\n * Green Energy Corp licenses this file to you under the Apache License,...
1,262
48
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 25.97, "nodes": 787, "errors": 0, "source_hash": "b601ffd723c762b5678e22e8b9c0857f71c39241b00e2bf1c33ae0622cd85a2a", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,745
c
/* BEGIN_LEGAL # The MIT License (MIT) # # Copyright (c) 2022, National University of Singapore # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
36.92
48
(translation_unit) "/* BEGIN_LEGAL\n# The MIT License (MIT)\n#\n# Copyright (c) 2022, National University of Singapore\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the "Software"), to deal\n# in the Software without restrictio...
113
2
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 36.92, "nodes": 64, "errors": 0, "source_hash": "5857fa82063e45ddf0b52f90254b39ee247027cb999045bb97b7a4fcd752b5bc", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,746
c
/* * Copyright (C) 2013-2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
31.32
216
(translation_unit) "/*\n * Copyright (C) 2013-2015 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * n...
1,212
30
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 31.32, "nodes": 690, "errors": 0, "source_hash": "741983fab9504b45e6ce23d7efe14c2ae32695788ea3d32df46e8a4e6e2fde0c", "categorized_nodes": 535}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,747
c
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright (C) 2018,2019 IBM Corp. */ #ifndef _CLK_H #define _CLK_H #include "soc.h" #include <stdint.h> enum clksrc { clk_arm, clk_ahb, clk_uart3 }; struct clk { struct soc *soc; struct soc_region scu; }; int clk_init(struct clk *ctx, struct soc *soc); void clk_destr...
28.35
17
(translation_unit) "/* SPDX-License-Identifier: Apache-2.0 */\n/* Copyright (C) 2018,2019 IBM Corp. */\n\n#ifndef _CLK_H\n#define _CLK_H\n\n#include "soc.h"\n\n#include <stdint.h>\n\nenum clksrc { clk_arm, clk_ahb, clk_uart3 };\n\nstruct clk {\n struct soc *soc;\n struct soc_region scu;\n};\n\nint clk_init(struct clk *...
156
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 28.35, "nodes": 120, "errors": 0, "source_hash": "4aa52142a9441fa0cbe76cfaccc0ff788d0923b60aa65e2e981c7ffcb12766e3", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,748
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "WeChat-Structs.h" #import "WCSnsFreePasswdSettingViewControllerDelegate.h" #import "MMUIView.h" @class UILabel, UIView, NSString, UIButton, ZCWScrollNumView;...
32.7
43
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "WeChat-Structs.h"\n#import "WCSnsFreePasswdSettingViewControllerDelegate.h"\n#import "MMUIView.h"\n\n@class UILabel, UIView, NSStri...
383
24
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.7, "nodes": 244, "errors": 0, "source_hash": "97f6a755e4bdfecaa75ae8673ad76ecd16ec98ca6e422488dda7ccaa1ef4c4ad", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,749
c
/* * Copyright 2016, Imagination Technologies Limited and/or its * affiliated group companies. * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu * ...
20.51
61
(translation_unit) "/*\n * Copyright 2016, Imagination Technologies Limited and/or its\n * affiliated group companies.\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n */\n\n/**...
120
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 20.51, "nodes": 80, "errors": 0, "source_hash": "2fe67246c9c578d223b46bc9c247457827c4ecbb82f6582d49cdb5857afcf7d8", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,750
c
/* Copyright (c) 2010, <NAME> Please see the license.txt file included with this source distribution for more information. */ #ifndef __PHTRACKINVARIANT__ #define __PHTRACKINVARIANT__ #include "config.h" namespace phoenix { //! Key-Based Invariant /*! An Invariant is a object whose value does...
18.85
132
(translation_unit) "/* \n \nCopyright (c) 2010, <NAME> \n \nPlease see the license.txt file included with this source \ndistribution for more information. \n \n*/ \n \n#ifndef __PHTRACKINVARIANT__ \n#define __PHTRACKINVARIANT__ \n \n#include "config.h" \n \nnamespace phoenix \n{ \n \n//! Key-Based Invariant \n/*! \n An...
362
18
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 18.85, "nodes": 187, "errors": 0, "source_hash": "048608bc7d17dd3f45c1989a3c31fd39c111b706d25478f2a707e5fbcc75a205", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,751
c
// // LocationManager.h // SYDE351-iOS // // Created by <NAME> on 2015-07-08. // Copyright (c) 2015 karanthukral. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> @interface LocationManager : NSObject <CLLocationManagerDelegate> + (LocationManager *)sharedManager; -...
25.71
14
(translation_unit) "//\n// LocationManager.h\n// SYDE351-iOS\n//\n// Created by <NAME> on 2015-07-08.\n// Copyright (c) 2015 karanthukral. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreLocation/CoreLocation.h>\n\n@interface LocationManager : NSObject <CLLocationManagerDelegate>\n\n+ (L...
61
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.71, "nodes": 37, "errors": 0, "source_hash": "68a7b3f56165ad5a5fe6bb83cafcd65091dd820f3f2adfdf7056801b8708fcbd", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,752
c
#ifndef SRC_ESTRUCTURAS_H_ #define SRC_ESTRUCTURAS_H_ #include "serializer.h" #include <semaphore.h> typedef enum {SIN_BLOQUEO, REPARTIDOR_CANSADO, PEDIDO_SIN_TERMINAR} t_bloqueo; // Repartidor typedef struct { t_posicion* posicion; int id; int frecuencia_descanso; int tiempo_descanso; int libre; void* pedidoA...
20.31
62
(translation_unit) "#ifndef SRC_ESTRUCTURAS_H_\n#define SRC_ESTRUCTURAS_H_\n\n#include "serializer.h"\n#include <semaphore.h>\n\ntypedef enum {SIN_BLOQUEO, REPARTIDOR_CANSADO, PEDIDO_SIN_TERMINAR} t_bloqueo;\n\n// Repartidor\ntypedef struct {\n t_posicion* posicion;\n int id;\n int frecuencia_descanso;\n int tiempo_des...
312
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 20.31, "nodes": 233, "errors": 0, "source_hash": "506a437fba537d836afe657755be4bb980525dc9089a47348bdbdb86479b0ec1", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,753
c
#pragma once #include <Tracy.hpp> #include <algorithm> #include <array> #include <iostream> #include <map> #include <set> #include <vector> namespace wmtk { template <class T> inline std::vector<T> set_intersection(const std::vector<T>& v1, const std::vector<T>& v2) { std::vector<T> v; v.reserve(std::m...
23.41
79
(translation_unit) "#pragma once\n\n#include <Tracy.hpp>\n\n#include <algorithm>\n#include <array>\n#include <iostream>\n#include <map>\n#include <set>\n#include <vector>\n\nnamespace wmtk {\n\ntemplate <class T>\ninline std::vector<T> set_intersection(const std::vector<T>& v1, const std::vector<T>& v2)\n{\n \n s...
957
49
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 23.41, "nodes": 573, "errors": 0, "source_hash": "41db3a3d241797e5fb495b6b8daf97ac70fdb9607c8b52485597dbbd45b9e894", "categorized_nodes": 393}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,754
c
#include <string.h> #include "../mnemo/mnemo.h" //describe 'mne_tos()' do // // it 'turns longs to mnemonic strings' do // // Mne.mne_tos(0).should == 'a' // Mne.mne_tos(1).should == 'i' // Mne.mne_tos(47).should == 'ia' // Mne.mne_tos(-1).should == 'wii' // Mne.mne_tos(1234567).should == 'shirerete' ...
23.56
43
(translation_unit) "#include <string.h>\n#include "../mnemo/mnemo.h"\n\n//describe 'mne_tos()' do\n//\n// it 'turns longs to mnemonic strings' do\n//\n// Mne.mne_tos(0).should == 'a'\n// Mne.mne_tos(1).should == 'i'\n// Mne.mne_tos(47).should == 'ia'\n// Mne.mne_tos(-1).should == 'wii'\n// Mne.mne_tos(1...
298
3
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.56, "nodes": 145, "errors": 0, "source_hash": "2d6a835d8c3328b6aaa81a3aaa9942837ae817078704856d898d236c18b12ea9", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,755
c
#ifndef TFT_LCD_H #define TFT_LCD_H #include <TFT_eSPI.h> #include "ScreenConfig.hpp" #ifndef FIRMWARE_MINIMAL #include "Canvas/Canvases.hpp" #else #include "Canvas/Canvas.hpp" #endif #ifndef FIRMWARE_MINIMAL #include "HomeAssistant/Components/Components.hpp" #include "HomeAssistant/HomeAssistantManager.hpp" #endif ...
31.82
108
(translation_unit) "#ifndef TFT_LCD_H\n#define TFT_LCD_H\n\n#include <TFT_eSPI.h> \n#include "ScreenConfig.hpp"\n#ifndef FIRMWARE_MINIMAL\n#include "Canvas/Canvases.hpp"\n#else\n#include "Canvas/Canvas.hpp"\n#endif\n#ifndef FIRMWARE_MINIMAL\n#include "HomeAssistant/Components/Components.hpp"\n#include "HomeAssistant/Ho...
593
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 31.82, "nodes": 488, "errors": 0, "source_hash": "0bed4b337bfb5a18b4612f9eb89f23f82defd28b9f2f4eeee0fa23cd04ac0e64", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,756
c
/******************************************************************************* NAME PAKSZ PURPOSE: This function converts a packed DMS angle to seconds. The standard packed DMS format is: degrees * 1000000 + minutes * 1000 + seconds Example: ang = 120025045.25 yields deg = 12...
26.45
94
(translation_unit) "/*******************************************************************************\nNAME PAKSZ \n\nPURPOSE: This function converts a packed DMS angle to seconds. The\n standard packed DMS format is:\n\n degrees * 1000000 + minutes * 1000 + seconds\n\n Example: ang = 1200...
364
21
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 26.45, "nodes": 217, "errors": 0, "source_hash": "74f36aa659add64c804b7bbed343a4aff66455529f4098251ce6be7d6fa2107e", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,757
c
#ifndef ART_POINT_H #define ART_POINT_H #include <Art/Types.h> #include <Art/Size.h> namespace Art { class Point { public: Point(); Point(const Point& p); Point(Word x, Word y); void assign(Word x, Word y); void assign(const Point& p); void adjust(Word dx, Word dy); void adjustX(Word delta); void a...
17.18
142
(translation_unit) "#ifndef ART_POINT_H\n#define ART_POINT_H\n\n#include <Art/Types.h>\n#include <Art/Size.h>\n\nnamespace Art\n{\n class Point\n {\n public:\n Point();\n Point(const Point& p);\n Point(Word x, Word y);\n void assign(Word x, Word y);\n void assign(const Point& p);\n void adjust(Word dx, Word dy);\...
1,135
54
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 17.18, "nodes": 692, "errors": 0, "source_hash": "2ee46609a8036d2ea16f457740dac0efd9599c65473469a0b225fff88f92b05b", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ART_P...
7,758
c
#include <string.h> #include <kuroko/vm.h> #include <kuroko/object.h> #include <kuroko/memory.h> #include <kuroko/util.h> static KrkClass * set; /** * @brief Mutable unordered set of values. * @extends KrkInstance */ struct Set { KrkInstance inst; KrkTable entries; }; #define IS_set(o) krk_isInstanceOf(o,set) #...
31.1
230
(translation_unit) "#include <string.h>\n#include <kuroko/vm.h>\n#include <kuroko/object.h>\n#include <kuroko/memory.h>\n#include <kuroko/util.h>\n\nstatic KrkClass * set;\n\n/**\n * @brief Mutable unordered set of values.\n * @extends KrkInstance\n */\nstruct Set {\n KrkInstance inst;\n KrkTable entries;\n};\n\n#defin...
2,602
5
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 31.1, "nodes": 1444, "errors": 0, "source_hash": "64b1046ede9de7ef8f0df092a4d3fe656deabbdeae4fa60a9e4d85a946981172", "categorized_nodes": 1106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,759
c
/* * Lua RTOS, ADC internal driver * * Copyright (C) 2015 - 2017 * IBEROXARXA SERVICIOS INTEGRALES, S.L. & CSS IBÉRICA, S.L. * * Author: <NAME> (<EMAIL> / <EMAIL>) * * All rights reserved. * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and withou...
31.58
95
(translation_unit) "/*\n * Lua RTOS, ADC internal driver\n *\n * Copyright (C) 2015 - 2017\n * IBEROXARXA SERVICIOS INTEGRALES, S.L. & CSS IBÉRICA, S.L.\n * \n * Author: <NAME> (<EMAIL> / <EMAIL>)\n * \n * All rights reserved. \n *\n * Permission to use, copy, modify, and distribute this software\n * and its documenta...
497
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.58, "nodes": 309, "errors": 0, "source_hash": "9e8244bf5660ccf3b12e7625176d9ebe2e518d10ad0b9ea5b46f06fdc811010f", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
7,760
c
/** * FreeRDP: A Remote Desktop Protocol Implementation * * Copyright 2014 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
30.07
54
(translation_unit) "/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n *\n * Copyright 2014 <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:...
231
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.07, "nodes": 120, "errors": 0, "source_hash": "898c03cd59efd37ed199a0429f7e01756ad21fa6d65a2ce85620088d869d0875", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
7,761
c
#ifndef _ACTORS_H_ #define _ACTORS_H_ #pragma once #include <GF/GameFramework.h> #include "../World/World.h" #include "Player.h" class Actors : public GameModule { private: Player m_Player; SceneNode m_ActorsRoot; World* m_World = nullptr; public: void Init() final override; void Deinit() final override; void ...
22.72
25
(translation_unit) "#ifndef _ACTORS_H_\n#define _ACTORS_H_\n#pragma once\n#include <GF/GameFramework.h>\n#include "../World/World.h"\n#include "Player.h"\n\nclass Actors : public GameModule\n{\nprivate:\n Player m_Player;\n SceneNode m_ActorsRoot;\n World* m_World = nullptr;\n\npublic:\n void Init() final override;\n v...
168
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.72, "nodes": 109, "errors": 0, "source_hash": "46a4af559b08b14d6a79121056f76d092104235c609b26fce6234967a630efba", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,762
c
//Arrays using Pointers (18/9/19) #include <stdio.h> #include <conio.h> void main(){ printf("18BCAN024\n\n"); int *p, a[5], i; p = a; //base address of array printf("Enter 5 elements in Array:\n"); for(i = 0; i < 5; i++){ scanf("%d", p+i); } printf("Elements of Array:\n"); for(i = 0; i < 5; i++){ printf("...
19.47
17
(translation_unit) "//Arrays using Pointers (18/9/19)\n\n#include <stdio.h>\n#include <conio.h>\n\nvoid main(){\n printf("18BCAN024\n\n");\n int *p, a[5], i;\n p = a; //base address of array\n printf("Enter 5 elements in Array:\n");\n for(i = 0; i < 5; i++){\n scanf("%d", p+i);\n }\n printf("Elements of Array:\n");\n ...
160
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.47, "nodes": 86, "errors": 0, "source_hash": "e883eaa11a23a1df7ecb1a11a70e233cc43fca3f3161394270bec02a17371174", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,763
c
// // BaseWebVC.h // HaiTao // // Created by Damon on 15/12/10. // Copyright © 2015年 HaiShang. All rights reserved. // #import <UIKit/UIKit.h> #import "BaseVC.h" @interface BaseWebVC : BaseVC{ UIWebView *_webView; } @property(nonatomic,strong)NSString *urlStr; @property(nonatomic,strong)NSString *navTitleStr;...
20.6
15
(translation_unit) "//\n// BaseWebVC.h\n// HaiTao\n//\n// Created by Damon on 15/12/10.\n// Copyright © 2015年 HaiShang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BaseVC.h"\n\n@interface BaseWebVC : BaseVC{\n UIWebView *_webView;\n}\n@property(nonatomic,strong)NSString *urlStr;\n@property(nona...
72
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.6, "nodes": 45, "errors": 0, "source_hash": "85d0e03eef51e1571cf69ec4ce1978f62c883bdb66e27826febbd5f5a94ffdd1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
7,764
c
#include <math.h> bool judgeSquareSum(int c){ int m = (int)sqrt(c); for (int a = 0; a <= m; a++) { double b = sqrt(c - a*a); if (b == (int)b) { return true; } } return false; }
19.82
11
(translation_unit) "#include <math.h>\n\nbool judgeSquareSum(int c){\n int m = (int)sqrt(c);\n for (int a = 0; a <= m; a++) {\n double b = sqrt(c - a*a);\n if (b == (int)b) {\n return true;\n }\n }\n\n return false;\n}\n\n" (preproc_include) "#include <math.h>\n" (#incl...
99
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.82, "nodes": 65, "errors": 0, "source_hash": "303f76871ca83937112f3d9cb5ca9a2d72bca2cabf32484ff0bfd4e83080fc27", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,765
c
void rotate(int N, int A[N], int B[N]) { #pragma scop for (int i = 0; i < N; ++i) A[i] = i == 0 ? B[N - 1] : B[i - 1]; #pragma endscop }
19
7
(translation_unit) "void rotate(int N, int A[N], int B[N])\n{\n#pragma scop\n for (int i = 0; i < N; ++i)\n A[i] = i == 0 ? B[N - 1] : B[i - 1];\n#pragma endscop\n}\n" (function_definition) "void rotate(int N, int A[N], int B[N])\n{\n#pragma scop\n for (int i = 0; i < N; ++i)\n A[i] = i == 0 ? B[N - 1] : B[i - 1];\...
87
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.0, "nodes": 61, "errors": 0, "source_hash": "9b252b1794564a88e1b1eeeb4c240e4c4e8c845bfad4804128f6f47ab08fe878", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void...
7,766
c
// <NAME> 2021 #pragma once #ifndef WORLDDATA_H #define WORLDDATA_H #include "olcPixelGameEngine.h" #include "ConstantData.h" #include "debugger.h" struct WorldGenerationData { public: float* fallOffMapA = nullptr; float* fallOffMapB = nullptr; float* perlinNoise = nullptr; float* noiseSeed = nullptr; bool w...
25.04
80
(translation_unit) "// <NAME> 2021\n\n#pragma once\n\n#ifndef WORLDDATA_H\n#define WORLDDATA_H\n\n#include "olcPixelGameEngine.h"\n#include "ConstantData.h"\n#include "debugger.h"\n\nstruct WorldGenerationData\n{\npublic:\n float* fallOffMapA = nullptr;\n float* fallOffMapB = nullptr;\n\n float* perlinNoise = nullptr;\...
602
17
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 25.04, "nodes": 412, "errors": 0, "source_hash": "b291ae28bafdf6f58c22ba0a69a44e518645f83c6c482bafab439d66eb670580", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,767
c
#pragma once #include "../Common.h" #include "../CPU/PortConnector.h" #include <Logger.h> #include <vector> #include <deque> using emul::PortConnector; using emul::WORD; using emul::BYTE; namespace fdc { class DeviceFloppy : public PortConnector { protected: DeviceFloppy(WORD baseAddress, size_t clockSpeedHz); ...
31.83
222
(translation_unit) "#pragma once\n\n#include "../Common.h"\n#include "../CPU/PortConnector.h"\n#include <Logger.h>\n#include <vector>\n#include <deque>\n\nusing emul::PortConnector;\nusing emul::WORD;\nusing emul::BYTE;\n\nnamespace fdc\n{\n class DeviceFloppy : public PortConnector\n {\n protected:\n DeviceFloppy(WOR...
2,012
64
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 31.83, "nodes": 1156, "errors": 0, "source_hash": "f0d66e4420e235a0a15e504ed23b4d620792c2417dc43717b5e1ef3b163c30de", "categorized_nodes": 778}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
7,768
c
#ifndef HEAP_VIEW_H #define HEAP_VIEW_H #include <list> #include <unordered_map> // A heap view is an imaginary overlay for a memory buffer so it can be treated like // a stand-alone heap. // In other words, it is a guide telling the caller where to allocate a request in an // actual buffer. The heap view itself ass...
34.97
38
(translation_unit) "#ifndef HEAP_VIEW_H\n#define HEAP_VIEW_H\n\n#include <list>\n#include <unordered_map>\n\n// A heap view is an imaginary overlay for a memory buffer so it can be treated like\n// a stand-alone heap.\n\n// In other words, it is a guide telling the caller where to allocate a request in an\n// actual bu...
142
5
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.97, "nodes": 82, "errors": 0, "source_hash": "ba2e78adcdc78e90c82b51e0b56afb17fb3d58ed24d848b240f60fc00a7b5f65", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,769
c
#import <BaiduMapAPI_Map/BMKAnnotationView.h> @interface RCTCustomMarker: BMKAnnotationView @property (nonatomic, copy) UILabel *communityLabel; @property (nonatomic, copy) UILabel *houseCountLabel; @end
39.8
5
(translation_unit) "#import <BaiduMapAPI_Map/BMKAnnotationView.h>\n\n@interface RCTCustomMarker: BMKAnnotationView\n\n@property (nonatomic, copy) UILabel *communityLabel;\n@property (nonatomic, copy) UILabel *houseCountLabel;\n\n@end" (preproc_call) "#import <BaiduMapAPI_Map/BMKAnnotationView.h>\n" (preproc_direc...
47
10
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 39.8, "nodes": 36, "errors": 0, "source_hash": "0b24bce2f5d3eb316c8caa8ce0e9e29752f33883357f77021e4cde35ab5af178", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Ba...
7,770
c
#ifndef MRUBY_SDL2_MESSAGEBOX_H #define MRUBY_SDL2_MESSAGEBOX_H #include "sdl2.h" #include <SDL_stdinc.h> #include <SDL_messagebox.h> #ifdef __cplusplus extern "C" { #endif extern void mruby_sdl2_messagebox_init(mrb_state *mrb); extern void mruby_sdl2_messagebox_final(mrb_state *mrb); #ifdef __cplusplus } #endif #...
24.57
14
(translation_unit) "#ifndef MRUBY_SDL2_MESSAGEBOX_H\n#define MRUBY_SDL2_MESSAGEBOX_H\n\n#include "sdl2.h"\n#include <SDL_stdinc.h>\n#include <SDL_messagebox.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern void mruby_sdl2_messagebox_init(mrb_state *mrb);\nextern void mruby_sdl2_messagebox_final(mrb_state *mrb);...
70
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.57, "nodes": 53, "errors": 0, "source_hash": "bc37b527204df686aa8f4c6ffdc6333f86b82aa26a2030642f29b1017ec1a132", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,771
c
// Copyright (c) 2006- Facebook // Distributed under the Thrift Software License // // See accompanying file LICENSE or visit the Thrift site at: // http://developers.facebook.com/thrift/ #ifndef _THRIFT_TREFLECTIONLOCAL_H_ #define _THRIFT_TREFLECTIONLOCAL_H_ 1 #include <stdint.h> #include <cstring> #include <protoco...
31.45
67
(translation_unit) "// Copyright (c) 2006- Facebook\n// Distributed under the Thrift Software License\n//\n// See accompanying file LICENSE or visit the Thrift site at:\n// http://developers.facebook.com/thrift/\n\n#ifndef _THRIFT_TREFLECTIONLOCAL_H_\n#define _THRIFT_TREFLECTIONLOCAL_H_ 1\n\n#include <stdint.h>\n#inclu...
345
10
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 31.45, "nodes": 208, "errors": 0, "source_hash": "e9c11231212d9eccd22cb0a3c03fecbc2c8abed3cd6facc2b1c051875f682d51", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,772
c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
28.35
62
(translation_unit) "/*\n * (C) Copyright 1996- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
373
18
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 28.35, "nodes": 219, "errors": 0, "source_hash": "7f2f459e0826fabfcfc7dbcde75c3b83fa86497e203574e5e7d6f51a0294b234", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,773
c
#ifndef _UTILS_H_ #define _UTILS_H_ #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define FILE_LINE __FILE__ ":" TOSTRING(__LINE__) const int MAX_BUF = 1024; const char* SOCK_NAME="/tmp/myfifo"; #endif
25.62
8
(translation_unit) "#ifndef _UTILS_H_\n#define _UTILS_H_\n\n#define STRINGIFY(x) #x\n#define TOSTRING(x) STRINGIFY(x)\n#define FILE_LINE __FILE__ ":" TOSTRING(__LINE__)\n\nconst int MAX_BUF = 1024;\nconst char* SOCK_NAME="/tmp/myfifo";\n\n#endif\n" (preproc_ifdef) "#ifndef _UTILS_H_\n#define _UTILS_H_\n\n#define STRI...
51
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 25.62, "nodes": 37, "errors": 0, "source_hash": "6f24fb8df2fa5cde420d62766996915995d5f547619850d5ec6eefa912cf5dc3", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,774
c
#include<stdio.h> #include<errno.h> #include<unistd.h> #include<string.h> extern int errno; int main(){ long sysArgMax = 0; long sysChildMax = 0; long sysFileMax = 0; sysArgMax = sysconf(_SC_ARG_MAX); sysChildMax = sysconf(_SC_CHILD_MAX); sysFileMax = sysconf(_SC_OPEN_MAX); if(sysArgMax=...
31.65
26
(translation_unit) "#include<stdio.h>\n#include<errno.h>\n#include<unistd.h>\n#include<string.h>\n\nextern int errno;\n\nint main(){\n long sysArgMax = 0;\n long sysChildMax = 0;\n long sysFileMax = 0;\n\n sysArgMax = sysconf(_SC_ARG_MAX);\n sysChildMax = sysconf(_SC_CHILD_MAX);\n sysFileMax = sysconf...
234
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.65, "nodes": 138, "errors": 0, "source_hash": "67a8caa7c8348b9d33b18f0b2fd425fe1e603e1434d7de20dd46d54cb4eec795", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,775
c
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // publish...
22.25
75
(translation_unit) "// Emacs style mode select -*- C++ -*-\n//-----------------------------------------------------------------------------\n//\n// $Id:$\n//\n// Copyright (C) 1993-1996 by id Software, Inc.\n//\n// This source is available for distribution and/or modification\n// only under the terms of the DOOM Sourc...
265
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 22.25, "nodes": 174, "errors": 0, "source_hash": "d8d848707565cb6f2479dc81e38618d52f825854d362ddfc2c24ec686d2f04d4", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,776
c
#include "graphics/graphics.c" #include "graphics/font.c" #include "input.c" #include "main.c"
22.75
4
(translation_unit) "#include "graphics/graphics.c"\n#include "graphics/font.c"\n#include "input.c"\n#include "main.c"" (preproc_include) "#include "graphics/graphics.c"\n" (#include) "#include" (string_literal) ""graphics/graphics.c"" (") """ (string_content) "graphics/graphics.c" (") """ ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 22.75, "nodes": 12, "errors": 0, "source_hash": "ef7deacddf0e2287a0e31880fcc97db28363cca1d6cd992cc6d645de9758e6b9", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,777
c
/* Author: <NAME> a.k.a. Gauss <NAME> Contacts: [<EMAIL>, <EMAIL>] See for more information LICENSE.md. */ #pragma once #include "TypeDef.h" #include "Types.h" #include "ILexema.h" namespace nsCppParser { class DllExport TVariableDeclarationLexema : public ILexema { public: std:...
20.74
35
(translation_unit) "/* \nAuthor: <NAME> a.k.a. Gauss \n<NAME> \nContacts: [<EMAIL>, <EMAIL>] \nSee for more information LICENSE.md. \n*/ \n \n#pragma once \n \n#include "TypeDef.h" \n#include "Types.h" \n#include "ILexema.h" \n \nnamespace nsCppParser \n{ \n class DllExport TVariableDeclarationLexema : public ILexem...
168
8
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.74, "nodes": 90, "errors": 0, "source_hash": "630f33aecdfd188d3ad13f056716933cf4dd63c06a9203e033f97790931a9e1c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,778
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { if(argc < 3) { return -1; } const char* file1Name = argv[1]; const char* file2Name = argv[2]; int writeAmount = argc >= 4 ? atoi(argv[3]) : 15; FILE *f1ptr = fopen(file1Name, "rb"); fseek(f1ptr, 0, SEEK_END);...
39.96
49
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char **argv) {\n if(argc < 3) {\n return -1;\n }\n\n const char* file1Name = argv[1];\n const char* file2Name = argv[2];\n int writeAmount = argc >= 4 ? atoi(argv[3]) : 15;\n\n FILE *f1ptr = fopen(file1Name, "rb")...
560
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 39.96, "nodes": 361, "errors": 0, "source_hash": "fdd21a5071a3e6a760cf95d61468e2c239ac3bc6b529ec71f5bbca491fbde180", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,779
c
/* MIT License Copyright (c) 2018 <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 without limitation the rights to use, copy, modify, merge, publish, distrib...
34.05
55
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2018 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, mod...
215
1
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 34.05, "nodes": 122, "errors": 0, "source_hash": "fd086ce637c54a0a500e9d4d63faf5ebdf647b948804a347abae081336499a1e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,780
c
#ifndef _RESP_WAVE_XML_H_ #define _RESP_WAVE_XML_H_ extern WND_TREE g_resp_wave_view_children[]; #endif
25
4
(translation_unit) "#ifndef _RESP_WAVE_XML_H_\n#define _RESP_WAVE_XML_H_\n\nextern WND_TREE g_resp_wave_view_children[];\n\n#endif\n\n" (preproc_ifdef) "#ifndef _RESP_WAVE_XML_H_\n#define _RESP_WAVE_XML_H_\n\nextern WND_TREE g_resp_wave_view_children[];\n\n#endif" (#ifndef) "#ifndef" (identifier) "_RESP_WAVE_...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.0, "nodes": 13, "errors": 0, "source_hash": "ebb8c020b5133747c0e22a5267cf1cbcbfbc0fb86edf7509f38e27f3f135366d", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RE...
7,781
c
#include <stdio.h> #include <stdlib.h> #include "voz.h" /* Open File */ /* Returns number of particles read */ long openfile(char *filename, FILE **f) { long np; *f = fopen(filename, "r"); if (f == NULL) { printf("Unable to open position file %s\n\n", filename); exit(0); } /* Read...
33.68
189
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "voz.h"\n\n/* Open File */\n/* Returns number of particles read */\nlong openfile(char *filename, FILE **f) {\n long np;\n\n *f = fopen(filename, "r");\n if (f == NULL) {\n printf("Unable to open position file %s\n\n", filename);\n ...
2,931
1
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 33.68, "nodes": 1723, "errors": 0, "source_hash": "3dafff377a37fe543e75b680ccc8abc84602c77c829e5c40bc0fb32d30953c76", "categorized_nodes": 1276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
7,782
c
/***** includes *****/ #include "lfds700_hash_addonly_internal.h" /****************************************************************************/ int lfds700_hash_a_get_by_key( struct lfds700_hash_a_state *has, void *key, struct lfds700_hash_a_element **...
28.73
26
(translation_unit) "/***** includes *****/\n#include "lfds700_hash_addonly_internal.h"\n\n\n\n\n\n/****************************************************************************/\nint lfds700_hash_a_get_by_key( struct lfds700_hash_a_state *has,\n void *key,\n st...
175
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.73, "nodes": 118, "errors": 0, "source_hash": "5655ff8d02f9c473fb6205d24e34d7569c41b082d1954a4bf06174b2a4eccb76", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,783
c
#include<stdio.h> void main( ) { int a , b , c, sum; sum = (a=8,b=7,c=9,a+b+c); printf("Sum %d\n",sum); }
14.14
7
(translation_unit) "#include<stdio.h>\nvoid main( )\n{\nint a , b , c, sum;\nsum = (a=8,b=7,c=9,a+b+c);\nprintf("Sum %d\n",sum);\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "void main( )\n{\nint a , b , c, sum;\nsum = (a=8,b=7,c=9...
71
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 14.14, "nodes": 46, "errors": 0, "source_hash": "4832a3d11c05b46568b19709515f2a2b3f516f85a9490fe91f03b3baaf9d3331", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,784
c
// Copyright 2015-present 650 Industries. All rights reserved. #import <ReactABI24_0_0/ABI24_0_0RCTBridgeModule.h> #import <ReactABI24_0_0/ABI24_0_0RCTExceptionsManager.h> @interface ABI24_0_0EXFrameExceptionsManager : NSObject <ABI24_0_0RCTBridgeModule> - (instancetype)initWithDelegate:(id<ABI24_0_0RCTExceptionsMan...
56.67
6
(translation_unit) "// Copyright 2015-present 650 Industries. All rights reserved.\n\n#import <ReactABI24_0_0/ABI24_0_0RCTBridgeModule.h>\n#import <ReactABI24_0_0/ABI24_0_0RCTExceptionsManager.h>\n\n@interface ABI24_0_0EXFrameExceptionsManager : NSObject <ABI24_0_0RCTBridgeModule>\n\n- (instancetype)initWithDelegate:(i...
43
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 56.67, "nodes": 29, "errors": 0, "source_hash": "1e8a2e370b247e7979de8ab6192e813ff7b4638bb65f1d019b2fae5447c6f3e2", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <R...
7,785
c
#pragma once #include <FalconEngine/Core/Macro.h> #if defined(FALCON_ENGINE_API_DIRECT3D) #include <FalconEngine/Platform/Direct3D/Direct3DLib.h> namespace FalconEngine { void Direct3DDebugInitialize(const Microsoft::WRL::ComPtr<ID3D11Device>& device); } #endif
25.2
10
(translation_unit) "#pragma once\n\n#include <FalconEngine/Core/Macro.h>\n\n#if defined(FALCON_ENGINE_API_DIRECT3D)\n#include <FalconEngine/Platform/Direct3D/Direct3DLib.h>\n\nnamespace FalconEngine\n{\n\nvoid\nDirect3DDebugInitialize(const Microsoft::WRL::ComPtr<ID3D11Device>& device);\n\n}\n\n#endif" (preproc_call)...
49
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 25.2, "nodes": 33, "errors": 0, "source_hash": "441c1c02827d3e1b8b05fc7251eab16e8baa9a221b66676ac20322d3cb88668a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,786
c
// // Created by daniel on 30/07/2021. // #ifndef GLPKTEST_CONVEXPOLYHEDRON_H #define GLPKTEST_CONVEXPOLYHEDRON_H #include <vector> #include "StlStream.h" #include "glpkpp.h" #include "agents/PredPreyAgent.h" class ConvexPolyhedron: public std::vector<glp::Constraint> { public: ConvexPolyhedron(): std::vector<...
35.64
102
(translation_unit) "//\n// Created by daniel on 30/07/2021.\n//\n\n#ifndef GLPKTEST_CONVEXPOLYHEDRON_H\n#define GLPKTEST_CONVEXPOLYHEDRON_H\n\n\n#include <vector>\n#include "StlStream.h"\n#include "glpkpp.h"\n\n#include "agents/PredPreyAgent.h"\n\nclass ConvexPolyhedron: public std::vector<glp::Constraint> {\npublic:\n...
1,128
59
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 35.64, "nodes": 635, "errors": 0, "source_hash": "871e7bbb9a1ad9f293543f61caa0a04814062e301abd8d7bfc35489ee68e0d79", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,787
c
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once #if !defined(XL_UTILITY_API) #define XL_UTILITY_API #endif
27.11
9
(translation_unit) "// Copyright 2015 XLGAMES Inc.\n//\n// Distributed under the MIT License (See\n// accompanying file "LICENSE" or the website\n// http://www.opensource.org/licenses/mit-license.php)\n\n#pragma once\n\n#if !defined(XL_UTILITY_API)\n #define XL_UTILITY_API\n#endif\n\n" (comment) "// Copyright 2015...
23
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.11, "nodes": 15, "errors": 0, "source_hash": "f15988e4eddc6cd9e5744a1ed8a83ac11189f8b45b09ee8a67197f149b470791", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,788
c
#ifndef CPFPHIG_PUBLISHER_CREATE_H #define CPFPHIG_PUBLISHER_CREATE_H #include "cpfphig/cpfphig.h" #include "cpfphig/publisher.h" cpfphig cpfphig_publisher_create( struct cpfphig_publisher* Publisher, CPFPHIG_OPTIONAL struct cpfphig_error* Error ); #endif
36.88
8
(translation_unit) "#ifndef CPFPHIG_PUBLISHER_CREATE_H\n#define CPFPHIG_PUBLISHER_CREATE_H\n\n#include "cpfphig/cpfphig.h"\n#include "cpfphig/publisher.h"\n\ncpfphig\ncpfphig_publisher_create( struct cpfphig_publisher* Publisher,\n CPFPHIG_OPTIONAL struct cpfphig_error* Err...
44
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 36.88, "nodes": 33, "errors": 0, "source_hash": "1e69b74775a35d4f25237794d47bbecb6eaed784871ef90d9213d69b9db894ce", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
7,789
c
/* * Copyright 2014-2018, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
32.23
210
(translation_unit) "/*\n * Copyright 2014-2018, Intel Corporation\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, ...
900
0
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 32.23, "nodes": 649, "errors": 0, "source_hash": "f9a65db2cc0699b6ba0301b0ca983a793cb9b2c50c60ad6d443ea270de922f79", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,790
c
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:class_statics_util.h ****/ #pragma once #include "interfaces/class_statics.h" namespace pmod { namespace library { inli...
19.7
23
(translation_unit) "/*** \n* Copyright (C) Microsoft. All rights reserved. \n* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. \n* \n* File:class_statics_util.h \n****/ \n#pragma once \n \n#include "interfaces/class_statics.h" \n \n \nnamespace pmod \n{ \n names...
60
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.7, "nodes": 33, "errors": 0, "source_hash": "6672e1d4943d2a8bc63c3494cdb66f3ab930ebf06e9d46ff2d98665d82da65e9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,791
c
/* * File: CScreen.h * Author: amunak * * Created on May 18, 2014, 9:05 PM */ #ifndef CSCREEN_H #define CSCREEN_H #include "CCoord.h" /** * Simplifies access to screen and its drawing */ class CScreen { public: CScreen(); CScreen(const CScreen& orig); virtual ~CScreen(); /** * Ret...
17.35
31
(translation_unit) "/* \n * File: CScreen.h\n * Author: amunak\n *\n * Created on May 18, 2014, 9:05 PM\n */\n\n#ifndef CSCREEN_H\n#define CSCREEN_H\n\n#include "CCoord.h"\n\n/**\n * Simplifies access to screen and its drawing\n */\nclass CScreen {\npublic:\n CScreen();\n CScreen(const CScreen& orig);\n virt...
85
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 17.35, "nodes": 42, "errors": 0, "source_hash": "480242a73ab449eff5161ab379e6d442e6adfb5ef2c3ccd450ea63b159f0ac9b", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,792
c
#pragma once class Item { const char* name; public: Item(); ~Item(); const char* getName(); virtual const char* getInfo()=0; void setName(const char* n); };
13.82
11
(translation_unit) "#pragma once\nclass Item\n{\n const char* name;\npublic:\n Item();\n ~Item();\n const char* getName();\n virtual const char* getInfo()=0;\n void setName(const char* n);\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class It...
83
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.82, "nodes": 48, "errors": 0, "source_hash": "0ed5f93dfc0fded57a56b78a44c3274b9016c9a335e5541fae9f2977a60a42e5", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,793
c
#pragma once #include "core/icpu.h" #include "core/immu.h" #include <memory> namespace geemuboi::core { std::unique_ptr<ICpu> create_cpu(IMmu& mmu, ICpu::Registers& regs); }
18.56
9
(translation_unit) "#pragma once\n\n#include "core/icpu.h"\n#include "core/immu.h"\n\n#include <memory>\n\nnamespace geemuboi::core {\n\n\nstd::unique_ptr<ICpu> create_cpu(IMmu& mmu, ICpu::Registers& regs);\n\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc...
60
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.56, "nodes": 36, "errors": 0, "source_hash": "33115fcb12291e4b15f0ccb216e9669fb1164d94bb637283865d5df4bbb77f45", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,794
c
// // UIView+RBUIKit.h // // // Created by baxiang on 17/6/13. // // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * 对 view.frame 操作的简便封装,注意 view 与 view 之间互相计算时,需要保证处于同一个坐标系内。 */ @interface UIView (RBUIKit) /// 等价于 CGRectGetMinY(frame) @property(nonatomic, assign) CGFloat ...
27.53
36
(translation_unit) "//\n// UIView+RBUIKit.h\n//\n//\n// Created by baxiang on 17/6/13.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\nNS_ASSUME_NONNULL_BEGIN\n/**\n * 对 view.frame 操作的简便封装,注意 view 与 view 之间互相计算时,需要保证处于同一个坐标系内。\n */\n@interface UIView (RBUIKit)\n\n/// 等价于 CGRectGetMinY(frame)\n...
218
46
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.53, "nodes": 153, "errors": 0, "source_hash": "863a15dfbcb69428f8fd6a0624f6d90d76194332710476c8379e0823b2f2c8a7", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,795
c
#ifndef ALITPCTASKQA_H #define ALITPCTASKQA_H // ROOT includes #include <TList.h> #include <TH1.h> #include <TH2.h> // AliRoot includes #include <AliAnalysisTask.h> #include <AliESDEvent.h> #include <AliESDfriend.h> #include <AliESDtrack.h> #include <AliESDfriendTrack.h> #include <AliTPCseed.h> #include <TString.h> c...
25.87
52
(translation_unit) "#ifndef ALITPCTASKQA_H\n#define ALITPCTASKQA_H\n\n// ROOT includes\n#include <TList.h>\n#include <TH1.h>\n#include <TH2.h>\n\n// AliRoot includes\n#include <AliAnalysisTask.h>\n#include <AliESDEvent.h>\n#include <AliESDfriend.h>\n#include <AliESDtrack.h>\n#include <AliESDfriendTrack.h>\n#include <Al...
321
10
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 25.87, "nodes": 196, "errors": 0, "source_hash": "a7fe0e784beb21235ffce471258fafdf76809632fb63c2037635d15deef23ae1", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,796
c
/* Copyright 2008 Uppsala University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
32.45
199
(translation_unit) "/* Copyright 2008 Uppsala University\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at \n * \n * http://www.apache.org/licenses/LICENSE-2.0 \n *\n * Unless...
841
3
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 32.45, "nodes": 659, "errors": 0, "source_hash": "583d41f74c5f7d8b68088aba2ae4b6c58c3f4b64098d2115d70ce17f8459c976", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,797
c
/******************************************************************** * * LIL Is a Language * * AUTHORS: <NAME> * * COPYRIGHT: ©2020-today: All Rights Reserved * * LICENSE: see LICENSE file * * This file implements a character in LIL * **********************************************...
31.37
54
(translation_unit) "/********************************************************************\n *\n * LIL Is a Language\n *\n * AUTHORS: <NAME>\n *\n * COPYRIGHT: ©2020-today: All Rights Reserved\n *\n * LICENSE: see LICENSE file\n *\n * This file implements a character in LIL\n *\n **************...
474
32
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.37, "nodes": 296, "errors": 0, "source_hash": "88798be936d2eaf28193cba2ff98a081a906785c94606e2878cb98176c58d177", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
7,798
c
// CIS 330 // Project 3E // // <NAME> // 951472606 // <EMAIL> // #include "filter.h" #ifndef IMAGE_H #define IMAGE_H class Source; struct Pixel { unsigned char r, g, b; }; class Image { public: Image(); virtual ~Image(); int GetWidth(); int GetHeight(); Pixel *GetBuffer(); void SetWidt...
16.09
33
(translation_unit) "// CIS 330\n// Project 3E\n//\n// <NAME>\n// 951472606\n// <EMAIL>\n//\n#include "filter.h"\n\n#ifndef IMAGE_H\n#define IMAGE_H\n\nclass Source;\n\nstruct Pixel {\n unsigned char r, g, b;\n};\n\nclass Image {\npublic:\n Image();\n virtual ~Image();\n\n int GetWidth();\n int GetHeight(...
190
1
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.09, "nodes": 119, "errors": 0, "source_hash": "e6c6f4adcf314bb4ec5725fecac63aa9b00824ec0be6c870e05d4872cc19fa0d", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,799