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
/* Unix SMB/CIFS implementation. RFC2478 Compliant SPNEGO implementation Copyright (C) <NAME> <<EMAIL>> 2003 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...
31.89
53
(translation_unit) "/* \n Unix SMB/CIFS implementation.\n\n RFC2478 Compliant SPNEGO implementation\n\n Copyright (C) <NAME> <<EMAIL>> 2003\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Fo...
155
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.89, "nodes": 123, "errors": 0, "source_hash": "d84ef6348e46e8f6fa334675f15e6d3381f94ce361f85fc89e568c2869517633", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
300
c
// // BZCommonAlertView.h // Project // // Created by sins on 16/7/11. // Copyright © 2018 益萃网络科技(中国)有限公司. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface BZCommonAlertView : NSObject + (void)showAlterWillDismiss:(NSString *)alterText; @end
23.17
12
(translation_unit) "//\n// BZCommonAlertView.h\n// Project\n//\n// Created by sins on 16/7/11.\n// Copyright © 2018 益萃网络科技(中国)有限公司. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface BZCommonAlertView : NSObject\n\n+ (void)showAlterWillDismiss:(NSString *)alterText;...
43
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 23, "errors": 0, "source_hash": "dc9f68115e2665f962af4797ee596395f31243e064e7a395df5fdd27b3254073", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "n.h>\n#im...
301
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once class MY_OBJ { public: MY_OBJ(PCWSTR pstr) : _pstr(pstr) {} PCWSTR GetString() { return _pstr; } private: PCWSTR _pstr; }; class MY_HASH : public HASH_TABLE<...
15.19
53
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n#pragma once\n\nclass MY_OBJ\n{\n public:\n MY_OBJ(PCWSTR pstr)\n : _pstr(pstr)\n {}\n\n PCWSTR GetString()\n {\n return _pstr;\n }\n\n private:\n PCWSTR _pstr;\...
196
6
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 15.19, "nodes": 110, "errors": 0, "source_hash": "eb9614d0bf06c9767e52aca7aedaa0b79be78c7438cc20ffe8b5317c8c1f3c35", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
302
c
#ifndef __wasilibc_sys_uio_h #define __wasilibc_sys_uio_h #include <__struct_iovec.h> #endif
22.25
4
(translation_unit) "#ifndef __wasilibc_sys_uio_h\n#define __wasilibc_sys_uio_h\n\n#include <__struct_iovec.h>\n\n#endif\n" (preproc_ifdef) "#ifndef __wasilibc_sys_uio_h\n#define __wasilibc_sys_uio_h\n\n#include <__struct_iovec.h>\n\n#endif" (#ifndef) "#ifndef" (identifier) "__wasilibc_sys_uio_h" (preproc_...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 22.25, "nodes": 10, "errors": 0, "source_hash": "223fb0f1cfbb9449cd90c306fd72216c3d6879d944ffcb3146806701cf8f9cfe", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
303
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ScopedGlobalRef.h" #include "ScopedLocalRef.h" namespace facebook { namespace yoga { namespace vanillajni {...
32.65
68
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n#include "ScopedGlobalRef.h"\n#include "ScopedLocalRef.h"\n\nnamespace facebook {\nnamespa...
291
4
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 32.65, "nodes": 182, "errors": 0, "source_hash": "7bd060323c889b6b11d2aa4375bddb6c36008c6e91104ba7393425f8514ad8cc", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
304
c
// Copyright 2005,2006,2007 <NAME>, <NAME> // $Id: ExprLabeler.h,v 1.4 2008-06-26 08:08:09 gergo Exp $ #ifndef H_EXPRLABELER #define H_EXPRLABELER #include <satire_rose.h> #include "cfg_support.h" #include "IrCreation.h" // preorder -- but it doesn't really matter class ExprLabeler : public AstSimpleProcessing { pu...
22.55
22
(translation_unit) "// Copyright 2005,2006,2007 <NAME>, <NAME>\n// $Id: ExprLabeler.h,v 1.4 2008-06-26 08:08:09 gergo Exp $\n\n#ifndef H_EXPRLABELER\n#define H_EXPRLABELER\n\n#include <satire_rose.h>\n\n#include "cfg_support.h"\n#include "IrCreation.h"\n\n// preorder -- but it doesn't really matter\nclass ExprLabeler :...
110
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.55, "nodes": 63, "errors": 0, "source_hash": "ce952a4bd00650d99ea3f620a3e7c56de90fbe633555c1cbf60a16093c93cf16", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
305
c
#ifndef COMPLIANT_MAPPING_PAIRINGMULTIMAPPING_H #define COMPLIANT_MAPPING_PAIRINGMULTIMAPPING_H #include "AssembledMultiMapping.h" #include <Compliant/config.h> #include "../utils/map.h" namespace sofa { namespace component { namespace mapping { /** natural pairing between two vector dofs: \[ f(x...
29.74
116
(translation_unit) "#ifndef COMPLIANT_MAPPING_PAIRINGMULTIMAPPING_H\n#define COMPLIANT_MAPPING_PAIRINGMULTIMAPPING_H\n\n#include "AssembledMultiMapping.h"\n#include <Compliant/config.h>\n\n#include "../utils/map.h"\n\nnamespace sofa {\n\nnamespace component {\n\nnamespace mapping {\n\n\n/** \n\n natural pairing betw...
1,050
23
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 29.74, "nodes": 631, "errors": 0, "source_hash": "def78f6ed3b8d5b52452f3d20e2bdc57584c2d29e18a00f113cd5e38eb26fa2c", "categorized_nodes": 459}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
306
c
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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 ...
26.52
151
(translation_unit) "/* \n * MikroSDK - MikroE Software Development Kit \n * Copyright© 2020 MikroElektronika d.o.o. \n * \n * Permission is hereby granted, free of charge, to any person \n * obtaining a copy of this software and associated documentation \n * files (the "Software"), to deal in the Software without re...
687
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 26.52, "nodes": 468, "errors": 0, "source_hash": "3369c0a454b7b09f4672b421a0b7c700c749bd3373ca084323eea2cfb956a0fa", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
307
c
#include "triangle_helper.h" #include "triangle_internal.h" int triangle_check_context(context* ctx) { if (ctx == NULL) { return TRI_FAILURE; } if (ctx->b == NULL || ctx->m == NULL) { return TRI_FAILURE; } return TRI_OK; } int triangle_check_behavior(behavior* b) { if (b->fixedarea && b->maxarea <= 0.0) {...
27.57
83
(translation_unit) "#include "triangle_helper.h"\n#include "triangle_internal.h"\n\nint triangle_check_context(context* ctx)\n{\n if (ctx == NULL) {\n return TRI_FAILURE;\n }\n if (ctx->b == NULL || ctx->m == NULL) {\n return TRI_FAILURE;\n }\n\n return TRI_OK;\n}\n\nint triangle_check_behavior(behavior* b)\n{\n if (...
765
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 27.57, "nodes": 496, "errors": 0, "source_hash": "0bca8264c47bc42b047c8804594433d299bf6bb9af9d860996c276834b6ff0ce", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
308
c
#include "headers.h" #include "utils.h" static uint64_t freq = 0; static uint64_t get_cpu_freq(void) { if(freq) return freq; FILE *fd; float freqf = 0; char *line = NULL; size_t len = 0; fd = fopen("/proc/cpuinfo", "r"); if (!fd) { fprintf(stderr, "failed to get cpu frequency\n"); ...
23
52
(translation_unit) "#include "headers.h"\n#include "utils.h"\n\nstatic uint64_t freq = 0;\nstatic uint64_t get_cpu_freq(void) {\n if(freq)\n return freq;\n\n FILE *fd;\n float freqf = 0;\n char *line = NULL;\n size_t len = 0;\n\n fd = fopen("/proc/cpuinfo", "r");\n if (!fd) {\n fprintf(stderr, "...
480
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 23.0, "nodes": 288, "errors": 0, "source_hash": "b436489b3c41a2ee0c2034d1527127be67976465f12779bbd64cd9ef6dcb6935", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
309
c
#ifndef SolveSimpleLinearInequalityListFunction_H #define SolveSimpleLinearInequalityListFunction_H #include <limits> #include "type_defs.h" #include "double_vec.h" // DoubleVec, DoubleVec_IT, DoubleVec_ConstIT class DeltaRange { public: const bool SolutionExists; const double MinDelta; const double Ma...
31.71
17
(translation_unit) "#ifndef SolveSimpleLinearInequalityListFunction_H\n#define SolveSimpleLinearInequalityListFunction_H\n\n\n#include <limits>\n\n#include "type_defs.h" \n#include "double_vec.h" // DoubleVec, DoubleVec_IT, DoubleVec_ConstIT\n\nclass DeltaRange\n{\npublic:\n const bool SolutionExists;\n const dou...
103
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.71, "nodes": 51, "errors": 0, "source_hash": "1d22bede3d0abf767998cc5a838aaadeff0db6fd71ea0432bf3ae39ae4cee372", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
310
c
/** *Copyright (c) 2000-2001, <NAME> *All rights reserved. *Redistribution and use in source and binary forms, with or without *modification, are permitted provided that the following conditions *are met: * Redistributions of source code must retain the above copyright * notice, this list of conditions and the f...
25.42
171
(translation_unit) "/** \n*Copyright (c) 2000-2001, <NAME> \n*All rights reserved. \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* Redistributions of source code must retain the above copyright \n* notice, this l...
786
36
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 25.42, "nodes": 511, "errors": 0, "source_hash": "005109128a018569bfc2c7be0f237a233541656d82ed659d8d82cfd3c2101ed6", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef DEFAU...
311
c
#include "Queue.h" queue_t * create_queue(uint32_t capacity){ queue_t * queue = (queue_t *)malloc(sizeof(queue_t)); if(queue == NULL){ return NULL; } queue -> capacity = capacity; queue -> front_index = 0; queue -> back_index = queue -> capacity - 1; queue -> size = 0; queue ...
27.79
75
(translation_unit) "#include "Queue.h"\n\nqueue_t * create_queue(uint32_t capacity){\n\n queue_t * queue = (queue_t *)malloc(sizeof(queue_t));\n\n if(queue == NULL){\n return NULL;\n }\n\n queue -> capacity = capacity;\n queue -> front_index = 0;\n queue -> back_index = queue -> capacity - 1;\n...
700
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.79, "nodes": 431, "errors": 0, "source_hash": "397957d591ab83d2391a34b599d1e784ecc3027378546c18c24684ec2104b64d", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
312
c
#pragma once #ifdef __cplusplus extern "C" { #endif typedef unsigned (*checkRestart_t)(); typedef void (*reportSuccess_t)(mpz_t, unsigned); void rh_oneTimeInit(reportSuccess_t, checkRestart_t); void rh_search(mpz_t); #ifdef __cplusplus } #endif
21.27
11
(translation_unit) "#pragma once\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef unsigned (*checkRestart_t)();\ntypedef void (*reportSuccess_t)(mpz_t, unsigned);\n\nvoid rh_oneTimeInit(reportSuccess_t, checkRestart_t);\nvoid rh_search(mpz_t);\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_call) "#pragma once\n" ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.27, "nodes": 56, "errors": 0, "source_hash": "893a7d5cf505f2a73545963361bed47bb347b79dbc4b55d5a98e5456a276524c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
313
c
/* vglyph - library for visualize glyphs * * File: vglyph-format.h * Copyright (C) 2016 <NAME> */ #ifndef VGLYPH_FORMAT_H #define VGLYPH_FORMAT_H #include "vglyph-object.h" typedef struct _vglyph_format_backend { vglyph_uint32_t (*get_bits_per_pixel)(vglyph_format_t* format); } vglyph_format_backend_t; str...
26.82
67
(translation_unit) " vglyph - library for visualize glyphs\n *\n * File: vglyph-format.h\n * Copyright (C) 2016 <NAME>\n */\n\n#ifndef VGLYPH_FORMAT_H\n#define VGLYPH_FORMAT_H\n\n#include "vglyph-object.h"\n\ntypedef struct _vglyph_format_backend\n{\n vglyph_uint32_t (*get_bits_per_pixel)(vglyph_format_t* format);\n...
401
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 26.82, "nodes": 273, "errors": 0, "source_hash": "a9f4fdf77a4754e6e15a0a30c3cda0da31c59f5ef632734978e131e693403516", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
314
c
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
26.08
130
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE...
632
42
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 26.08, "nodes": 396, "errors": 0, "source_hash": "2caa8d51f31a4d7269ecf63a14d408eb105e254b645c07d999e755dfad07aab4", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
315
c
// // Created by Administrator on 2018/5/6. // #ifndef SAMPLE7_5_OBJOBJECTUT_H #define SAMPLE7_5_OBJOBJECTUT_H #include <vulkan/vulkan.h> #include "vulkan_wrapper.h" #include <string> class ObjObjectUt { public: float * pushConstantData; VkDevice* devicePointer; float* vdata; int vCount; VkBuffer ...
30.74
23
(translation_unit) "//\n// Created by Administrator on 2018/5/6.\n//\n\n#ifndef SAMPLE7_5_OBJOBJECTUT_H\n#define SAMPLE7_5_OBJOBJECTUT_H\n#include <vulkan/vulkan.h>\n#include "vulkan_wrapper.h"\n#include <string>\n\nclass ObjObjectUt {\npublic:\n float * pushConstantData;\n VkDevice* devicePointer;\n float* vd...
138
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.74, "nodes": 89, "errors": 0, "source_hash": "6c490d860322f7e1aaa1d812d0a8e74536fc2293f7ad90425b472bc34f14cd66", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
316
c
#ifndef __PETSCMATHYPRE_H #define __PETSCMATHYPRE_H #include <petscmat.h> #include <_hypre_parcsr_mv.h> PETSC_EXTERN PetscErrorCode MatCreateFromParCSR(hypre_ParCSRMatrix*,MatType,PetscCopyMode,Mat*); PETSC_EXTERN PetscErrorCode MatHYPREGetParCSR(Mat,hypre_ParCSRMatrix**); #endif
39.14
7
(translation_unit) "#ifndef __PETSCMATHYPRE_H\n#define __PETSCMATHYPRE_H\n\n#include <petscmat.h>\n#include <_hypre_parcsr_mv.h>\n\nPETSC_EXTERN PetscErrorCode MatCreateFromParCSR(hypre_ParCSRMatrix*,MatType,PetscCopyMode,Mat*);\nPETSC_EXTERN PetscErrorCode MatHYPREGetParCSR(Mat,hypre_ParCSRMatrix**);\n\n#endif\n" (p...
58
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 39.14, "nodes": 47, "errors": 0, "source_hash": "af6362c37c1d7bbd8cd9b8e950cdd1ff332a5569ab4dfaab583f7540db60ea59", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
317
c
// Copyright (c) 2013 NovaCoin Developers // #ifndef PBKDF2_H #define PBKDF2_H #include <openssl/sha.h> #include <stdint.h> class pbkdf2 { private: pbkdf2(); pbkdf2(const pbkdf2 &); pbkdf2 &operator=(const pbkdf2 &); typedef struct HMAC_SHA256Context { SHA256_CTX ictx; SHA256_CTX ...
30.96
27
(translation_unit) "// Copyright (c) 2013 NovaCoin Developers\n//\n#ifndef PBKDF2_H\n#define PBKDF2_H\n\n#include <openssl/sha.h>\n#include <stdint.h>\n\nclass pbkdf2\n{\nprivate:\n pbkdf2();\n pbkdf2(const pbkdf2 &);\n pbkdf2 &operator=(const pbkdf2 &);\n\n typedef struct HMAC_SHA256Context\n {\n ...
247
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.96, "nodes": 153, "errors": 0, "source_hash": "1a417421245bb3894baa48cc247625edda21c8861ab141e3ec9007ab562d8302", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
318
c
#ifndef __MRTP_CALLBACKS_H__ #define __MRTP_CALLBACKS_H__ #include <stdlib.h> typedef struct _MRtpCallbacks { void * (MRTP_CALLBACK * malloc) (size_t size); void (MRTP_CALLBACK * free) (void * memory); void (MRTP_CALLBACK * no_memory) (void); } MRtpCallbacks; extern void * mrtp_malloc(size_t); extern void mrtp_...
29.42
12
(translation_unit) "#ifndef __MRTP_CALLBACKS_H__\n#define __MRTP_CALLBACKS_H__\n\n#include <stdlib.h>\n\ntypedef struct _MRtpCallbacks\n{\n void * (MRTP_CALLBACK * malloc) (size_t size);\n void (MRTP_CALLBACK * free) (void * memory);\n void (MRTP_CALLBACK * no_memory) (void);\n} MRtpCallbacks;\n\nextern void * mrtp_mal...
107
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.42, "nodes": 80, "errors": 0, "source_hash": "68c1890847110613477a7d10e91a1f25548144b8cf7118159f5c95fd579a565c", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
319
c
#include <stdio.h> #include <math.h> /* * transcendental functions: pow */ double pow(x,y) /* x to the power y */ double x,y; { return exp(log(x)*y); }
14.5
10
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\n/*\n * transcendental functions: pow\n */\n\ndouble pow(x,y) /* x to the power y */\ndouble x,y;\n{\n return exp(log(x)*y);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#in...
45
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.5, "nodes": 28, "errors": 0, "source_hash": "113b9d91598c0a88e4e099e241e08bb5db3833964f1d3cef14a776bb85a57ee9", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
320
c
// Created by Oleg on 6/16/16. // Copyright © 2016 <NAME>. All rights reserved. // /** * Represents protocol types that can be used during session. */ typedef NS_ENUM(NSUInteger, OHProtocolType) { /** * Default connection. */ OHProtocolTypeDefault, /** * TCP/IP connection to local or ...
22
16
(translation_unit) "// Created by Oleg on 6/16/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n/**\n * Represents protocol types that can be used during session.\n */\ntypedef NS_ENUM(NSUInteger, OHProtocolType) {\n /**\n * Default connection.\n */\n OHProtocolTypeDefault,\n /**\n ...
28
3
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.0, "nodes": 13, "errors": 0, "source_hash": "0d405a40000f5721a58409f10e18141b2476a0e3557df2193b59edf77eeaba45", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "ypedef N...
321
c
#ifndef BTREE_H #define BTREE_H #include <stdio.h> #include <stdlib.h> #define false 0 #define true 1 #define nil NULL #define and && #define or || #define is == typedef enum { PRE_ORDER = 1, IN_ORDER, POST_ORDER, LEVEL_ORDER } TraverseType; typedef struct { char c; } BTreeItem; ty...
21.05
41
(translation_unit) "#ifndef BTREE_H\n#define BTREE_H\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#define false 0\n#define true 1\n#define nil NULL\n#define and &&\n#define or ||\n#define is == \n\ntypedef enum {\n PRE_ORDER = 1,\n IN_ORDER,\n POST_ORDER,\n LEVEL_ORDER\n} TraverseType;\n\ntyped...
283
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 21.05, "nodes": 218, "errors": 0, "source_hash": "556cebd90c175809b07c407c18a491e2144b6b73a89881fe85ec0ca19e238045", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
322
c
/** * @file base_mesh.h * @brief This is the base classes of mesh, which describe ordered and indexed * data sets. Depending on application, there are different data * saved on the mesh. The intersection points of mesh lines are called * grid points, the element enclosed by mesh lines (2D) or faces (3D) cal...
34.88
113
(translation_unit) "/**\n* @file base_mesh.h\n* @brief This is the base classes of mesh, which describe ordered and indexed\n* data sets. Depending on application, there are different data \n* saved on the mesh. The intersection points of mesh lines are called \n* grid points, the element enclosed by mesh lin...
527
25
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 34.88, "nodes": 301, "errors": 0, "source_hash": "39b49c097a0f26962f42a02ea7433bebd07cbc00bd56b7425ee9ccce2a700770", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
323
c
#ifndef WebApiConnector_HG #define WebApiConnector_HG #include <QObject> #include <cldef.h> #include <QNetworkAccessManager> #include <QUrl> #include <QMap> #include <QList> #include <QSharedPointer> #include <QNetworkReply> class CLIB_EXPORT WebApiConnector : public QObject { Q_OBJECT QNe...
23.6
47
(translation_unit) "#ifndef WebApiConnector_HG \n#define WebApiConnector_HG \n \n#include <QObject> \n#include <cldef.h> \n#include <QNetworkAccessManager> \n#include <QUrl> \n#include <QMap> \n#include <QList> \n#include <QSharedPointer> \n#include <QNetworkReply> \n \n \nclass CLIB_EXPORT WebApiConnector : public QOb...
256
7
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.6, "nodes": 162, "errors": 0, "source_hash": "06c553af6e1eb885879365034faabddd8d88ba17bd001d6f8b7e7f1bae1f8165", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
324
c
#include <stdio.h> #include "reserved_words.h" /* * Adds a reserved word to the reserved word table. * * Arguments: word -> Literal of the word to be added. * type -> Token type associated with the reserved word. * attr -> Token attribute associated with the reserved word. * * Returns: A p...
34.11
71
(translation_unit) "#include <stdio.h>\n#include "reserved_words.h"\n\n/*\n * Adds a reserved word to the reserved word table.\n *\n * Arguments: word -> Literal of the word to be added.\n * type -> Token type associated with the reserved word.\n * attr -> Token attribute associated with the reser...
428
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.11, "nodes": 257, "errors": 0, "source_hash": "6b2df6ff9f30592c00e7714297c7d923f9c19790631fa8cb4f63cfc8fe1e6d49", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
325
c
// // SFModelCheck.h // SFKit // // Created by <NAME> on 12/15/17. // Copyright © 2017 Moore Development. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface SFModelCheck : NSObject /// Boolean value indicating if the current device is an iPhone X. + (BOOL)is_iPhoneX NS_...
24.86
14
(translation_unit) "//\n// SFModelCheck.h\n// SFKit\n//\n// Created by <NAME> on 12/15/17.\n// Copyright © 2017 Moore Development. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SFModelCheck : NSObject\n\n/// Boolean value indicating if the current device is a...
41
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.86, "nodes": 22, "errors": 0, "source_hash": "d3bc05c42658265f9b9f3b6d8be0aa59bf57666b889c6d63e5672ed96a0a9f41", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
326
c
// Released under the MIT License. See LICENSE for details. #ifndef BALLISTICA_GRAPHICS_TEXT_TEXT_GRAPHICS_H_ #define BALLISTICA_GRAPHICS_TEXT_TEXT_GRAPHICS_H_ #include <list> #include <mutex> #include <set> #include <string> #include <unordered_map> #include <vector> #include "ballistica/core/object.h" #include "ba...
36.57
91
(translation_unit) "// Released under the MIT License. See LICENSE for details.\n\n#ifndef BALLISTICA_GRAPHICS_TEXT_TEXT_GRAPHICS_H_\n#define BALLISTICA_GRAPHICS_TEXT_TEXT_GRAPHICS_H_\n\n#include <list>\n#include <mutex>\n#include <set>\n#include <string>\n#include <unordered_map>\n#include <vector>\n\n#include "ballis...
866
31
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 36.57, "nodes": 567, "errors": 0, "source_hash": "dc1ceff166425b56e613498a90fa43e8b23c3b491798fddfaecb9bf1bd9e2b73", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BALLIS...
327
c
#ifndef __WINDOW_H_ #define __WINDOW_H_ #include <iostream> #include <sstream> #include <fstream> #include <QWidget> #include <QDesktopWidget> #include <QPainter> #include <QGuiApplication> #include <QApplication> #include <QScreen> #include <QTimer> #include <QImage> #include <QMouseEvent> #include <QDebug> class Q...
19.42
33
(translation_unit) "#ifndef __WINDOW_H_\n#define __WINDOW_H_\n\n#include <iostream>\n#include <sstream>\n#include <fstream>\n\n#include <QWidget>\n#include <QDesktopWidget>\n#include <QPainter>\n#include <QGuiApplication>\n#include <QApplication>\n#include <QScreen>\n#include <QTimer>\n#include <QImage>\n#include <QMou...
145
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 19.42, "nodes": 108, "errors": 0, "source_hash": "13b0e43b981ceaeeaa93397b7a66be3d130b87e9c74cbd86e4c21331da425ce8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
328
c
#ifndef HXCOMM_H #define HXCOMM_H // This file is a stub header file. #endif
18.25
4
(translation_unit) "#ifndef HXCOMM_H\n#define HXCOMM_H\n\n// This file is a stub header file.\n\n#endif\n" (preproc_ifdef) "#ifndef HXCOMM_H\n#define HXCOMM_H\n\n// This file is a stub header file.\n\n#endif" (#ifndef) "#ifndef" (identifier) "HXCOMM_H" (preproc_def) "#define HXCOMM_H\n" (#define) "#...
9
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.25, "nodes": 7, "errors": 0, "source_hash": "e44224187f9a2966a688e271c80eca88cbb3077a1a911110a10dcb6cf4d2732c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HXC...
329
c
/* * Copyright (C) 2017 by <NAME> <<EMAIL>> * Copyright (C) 2017 by <NAME> <<EMAIL>> * Copyright (C) 2017 by <NAME> <<EMAIL>> * * Licensed under the MIT License: * See the LICENSE file at the top-level directory of this distribution. */ #include <string.h> int charDistance(char a, char b) { return abs(a - b); }...
31.19
26
(translation_unit) "/*\n * Copyright (C) 2017 by <NAME> <<EMAIL>>\n * Copyright (C) 2017 by <NAME> <<EMAIL>>\n * Copyright (C) 2017 by <NAME> <<EMAIL>>\n *\n * Licensed under the MIT License:\n * See the LICENSE file at the top-level directory of this distribution.\n */\n\n#include <string.h>\nint charDistance(char a, ...
271
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.19, "nodes": 194, "errors": 0, "source_hash": "b0465669363d28bf5d9a9b0a1b9163e32e8f6a3c56abaf298db850524a0c02d7", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
330
c
#include <vcl.h>
16
1
(translation_unit) "#include <vcl.h>\n" (preproc_include) "#include <vcl.h>\n" (#include) "#include" (system_lib_string) "<vcl.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 16.0, "nodes": 3, "errors": 0, "source_hash": "808538738a12cc35212487cb0ef4492b9275789dee888504041ddccc337f8c22", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
331
c
#ifndef __MESYTEC_MCPD_INT_TYPES_H__ #define __MESYTEC_MCPD_INT_TYPES_H__ #include <cstdint> namespace mesytec { namespace mcpd { typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; } } #endif /* ...
18.22
18
(translation_unit) "#ifndef __MESYTEC_MCPD_INT_TYPES_H__\n#define __MESYTEC_MCPD_INT_TYPES_H__\n\n#include <cstdint>\n\nnamespace mesytec\n{\nnamespace mcpd\n{\n\ntypedef uint8_t u8;\ntypedef uint16_t u16;\ntypedef uint32_t u32;\ntypedef uint64_t u64;\n\ntypedef int8_t s8;\ntypedef int16_t s16;\ntypedef int32_t s32;\...
64
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.22, "nodes": 48, "errors": 0, "source_hash": "0be23154a1acb4970bb3b841eb91f75bd12d2d85603eda33610b9bffbd623429", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
332
c
#include <stdio.h> #define MAXTITL 64 #define MAXAUTH 64 struct book{ char title[MAXTITL]; char auth[MAXAUTH]; float value; }; int main(int argc, char *argv[]) { struct book abook; printf("Please enter the book title : "); gets(abook.title); printf("Now enter the author : "); gets(abook.auth); printf...
21.04
23
(translation_unit) "#include <stdio.h>\n#define MAXTITL 64\n#define MAXAUTH 64\n\nstruct book{\n char title[MAXTITL];\n char auth[MAXAUTH];\n float value;\n};\n\n\nint main(int argc, char *argv[]) \n{\n struct book abook;\n printf("Please enter the book title : ");\n gets(abook.title);\n printf("Now enter the aut...
180
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.04, "nodes": 99, "errors": 0, "source_hash": "9ad3e5b0d6989cb8a0367b335ed45475a53fa156f60303464685af34822f157c", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
333
c
#pragma once #include <chrono> #include <iostream> // Is used to measure time class Timer { public: Timer() : start_(std::chrono::high_resolution_clock::now()) { } // returns time in [us] since instantiation int elapsed() { const auto finish = std::chrono::high_resolution_clo...
24.3
20
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <iostream>\n\n// Is used to measure time \nclass Timer\n{\npublic:\n Timer()\n : start_(std::chrono::high_resolution_clock::now())\n {\n }\n\n // returns time in [us] since instantiation\n int elapsed()\n {\n const auto fini...
149
9
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.3, "nodes": 77, "errors": 0, "source_hash": "6881181e26d0a908fe750811c1bd1d02c1a09b8c541e112630ae42fb653f7716", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
334
c
 #ifndef __NGX_MEMORY_H__ #define __NGX_MEMORY_H__ #include <stddef.h> //NULL //内存相关类 class CMemory { private: CMemory() {} //构造函数,因为要做成单例类,所以是私有的构造函数 public: ~CMemory(){}; private: static CMemory *m_instance; public: static CMemory* GetInstance() //单例 { if(m_instance == NULL) { //锁 if(m_inst...
16.38
47
(translation_unit) "fndef __NGX_MEMORY_H__\n#define __NGX_MEMORY_H__\n\n#include <stddef.h> //NULL\n//内存相关类\nclass CMemory \n{\nprivate:\n CMemory() {} //构造函数,因为要做成单例类,所以是私有的构造函数\n\npublic:\n ~CMemory(){};\n\nprivate:\n static CMemory *m_instance;\n\npublic: \n static CMemory* GetInstance() //单例\n { \n if(m_instan...
222
6
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 16.38, "nodes": 119, "errors": 0, "source_hash": "527e6b21cf454fbac92743181c5a198493b197936a21e8e9f9e153434766ee94", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef _...
335
c
#include<stdio.h> void main() { int a; printf("a :"); scanf("%d", a); printf("%s\n", (a < 20) ? "true" : "false"); printf("%s\n", (a > 20) ? "true" : "false"); printf("%s\n", (a <= 20) ? "true" : "false"); printf("%s\n", (a >= 20) ? "true" : "false"); printf("%s\n", (a == 20) ? "true" :...
28.38
13
(translation_unit) "#include<stdio.h>\n\nvoid main()\n{\n int a;\n printf("a :");\n scanf("%d", a);\n printf("%s\n", (a < 20) ? "true" : "false");\n printf("%s\n", (a > 20) ? "true" : "false");\n printf("%s\n", (a <= 20) ? "true" : "false");\n printf("%s\n", (a >= 20) ? "true" : "false");\n prin...
228
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.38, "nodes": 104, "errors": 0, "source_hash": "5a7f1e9fbf757d53446e7355688950b3e18b220117d6264c760d2cf1b104f013", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
336
c
#ifndef RBCLOGICUNIT_H #define RBCLOGICUNIT_H 1 // Include files #include "L1Trigger/RPCTechnicalTrigger/interface/LogicTool.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RPCLogicUnit.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RBCLogic.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RBCInput.h" ...
30
34
(translation_unit) "#ifndef RBCLOGICUNIT_H\n#define RBCLOGICUNIT_H 1\n\n// Include files\n#include "L1Trigger/RPCTechnicalTrigger/interface/LogicTool.h"\n#include "L1Trigger/RPCTechnicalTrigger/interface/RPCLogicUnit.h"\n#include "L1Trigger/RPCTechnicalTrigger/interface/RBCLogic.h"\n#include "L1Trigger/RPCTechnicalTrig...
257
12
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 30.0, "nodes": 142, "errors": 0, "source_hash": "b099083d4138dbecde708b39fe3f6246b5ba5e784ac3345abb95a9843a3aecea", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
337
c
// // LCMetersRecordingView.h // Antenna // // Created by Lc on 16/4/8. // Copyright © 2016年 HHLY. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, subTitleStatues) { subTitleStatuesDefault, subTitleStatuesCancel, }; @interface LCMetersRecordingView : UIView // 根据 状态更改 显示的内容 + (v...
21.5
18
(translation_unit) "//\n// LCMetersRecordingView.h\n// Antenna\n//\n// Created by Lc on 16/4/8.\n// Copyright © 2016年 HHLY. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, subTitleStatues) {\n subTitleStatuesDefault,\n subTitleStatuesCancel,\n};\n@interface LCMetersRecordingV...
83
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.5, "nodes": 47, "errors": 0, "source_hash": "78ce0ea635ea745dd19377f34066d520729ac6fee9117a897a6916913f226a23", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
338
c
#ifndef LIVING_H_INCLUDED #define LIVING_H_INCLUDED #include <string> #include <vector> #include "Spell.h" #include "Item.h" using namespace std; class Living { protected: string name; int level, healthPower; int base_health; public: Living(string n, int h); ...
30.39
128
(translation_unit) "#ifndef LIVING_H_INCLUDED \n#define LIVING_H_INCLUDED \n \n#include <string> \n#include <vector> \n#include "Spell.h" \n#include "Item.h" \n \nusing namespace std; \n \nclass Living \n{ \n protected: \n string name; \n int level, healthPower; \n int base_health; \n public:...
979
70
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 30.39, "nodes": 578, "errors": 0, "source_hash": "874446791c4098dc1c65b68a5bd4cd731b55b2b6b313b8a5ef8d84eb0f2e6e24", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
339
c
/* * zcl_adc.c * * Created on: 31 Jan 2022 * Author: BigBob */ /* * zcl_light.c * * Created on: 27 Jan 2022 * Author: BigBob */ /* * zcl_temp_humid.c * * Created on: 26 Jan 2022 * Author: BigBob */ /********************************************************************...
31.62
191
(translation_unit) "/* \n * zcl_adc.c \n * \n * Created on: 31 Jan 2022 \n * Author: BigBob \n */ \n/* \n * zcl_light.c \n * \n * Created on: 27 Jan 2022 \n * Author: BigBob \n */ \n \n/* \n * zcl_temp_humid.c \n * \n * Created on: 26 Jan 2022 \n * Author: BigBob \n */ \n/*****************************...
925
2
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 31.62, "nodes": 549, "errors": 0, "source_hash": "8c17d7814b23f5612b739a8d26988eaf95ad28252e5f331f5261574824864ba7", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
340
c
// // Created by <NAME> on 2020-07-04. // #ifndef MATPLOTPLUSPLUS_SURFACE_H #define MATPLOTPLUSPLUS_SURFACE_H #include <array> #include <matplot/core/figure.h> #include <matplot/util/concepts.h> #include <matplot/util/handle_types.h> #include <optional> #include <matplot/core/axes_object.h> #include <matplot/core/li...
40.49
191
(ERROR) "//\n// Created by <NAME> on 2020-07-04.\n//\n\n#ifndef MATPLOTPLUSPLUS_SURFACE_H\n#define MATPLOTPLUSPLUS_SURFACE_H\n\n#include <array>\n#include <matplot/core/figure.h>\n#include <matplot/util/concepts.h>\n#include <matplot/util/handle_types.h>\n#include <optional>\n\n#include <matplot/core/axes_object.h>\n#i...
1,831
124
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 40.49, "nodes": 949, "errors": 0, "source_hash": "44e6a4f716113a2bbc8ade7739eb1e2f2cdc18f1bca0adcca659cf02eb0ca857", "categorized_nodes": 620}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Created by <NAME>...
341
c
// // UIView+MCShorthand.h // Pods // // Created by <NAME> on 4/5/14. // // #import <UIKit/UIKit.h> #import "MCShorthand.h" @interface UIView (MCShorthand) @property (assign, nonatomic) CGFloat pop_scaleX; @property (assign, nonatomic) CGFloat pop_scaleY; @property (assign, nonatomic) CGPoint pop_scaleXY; @end ...
27.04
26
(translation_unit) "//\n// UIView+MCShorthand.h\n// Pods\n//\n// Created by <NAME> on 4/5/14.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import "MCShorthand.h"\n\n@interface UIView (MCShorthand)\n\n@property (assign, nonatomic) CGFloat pop_scaleX;\n@property (assign, nonatomic) CGFloat pop_scaleY;\n@property (assign, nona...
175
26
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.04, "nodes": 122, "errors": 0, "source_hash": "dc58cb754661ce8238a958d89669d857c0a0a6c6c6711de5ae300f23f9f5bd4f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
342
c
/* * Copyright 2013-2019 Automatak, LLC * * Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak * LLC (www.automatak.com) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Green Energy Co...
27.35
63
(translation_unit) "/*\n * Copyright 2013-2019 Automatak, LLC\n *\n * Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak\n * LLC (www.automatak.com) under one or more contributor license agreements.\n * See the NOTICE file distributed with this work for additional information\n * regarding copyright ...
230
5
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.35, "nodes": 149, "errors": 0, "source_hash": "a9eb30fad424cc86141e090c9d5a80a0d7e193534fae2b9f3abf2894f3257fae", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
343
c
#ifndef PROGRESS_H #define PROGRESS_H #include "time.h" using namespace std; const int BAR_BUF_SIZE = 28; const char SYMBOL = '*'; class ProgressBar { char _bar_buf[BAR_BUF_SIZE]; string _process; long double _num_complete; long double _tot_num; int _num_updates; int _num_remaining; public: ProgressBar() {...
23.17
101
(translation_unit) "#ifndef PROGRESS_H\n#define PROGRESS_H\n\n#include "time.h"\n\nusing namespace std;\n\nconst int BAR_BUF_SIZE = 28;\nconst char SYMBOL = '*';\n\nclass ProgressBar\n{\n char _bar_buf[BAR_BUF_SIZE];\n string _process;\n long double _num_complete;\n long double _tot_num;\n int _num_updates;\n int _num_...
815
3
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 23.17, "nodes": 507, "errors": 0, "source_hash": "9f87884567880cb519878f6d8ed7ac70a5d13587f72efd47a546bbd649fdc752", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
344
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...
37.32
259
(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,314
41
{"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 37.32, "nodes": 762, "errors": 0, "source_hash": "3f0cca24f667cbbbc809afc45868025f3e6d58a8123c0ee8d7a93afb47dd2ebf", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
345
c
/******************************** * * Copyright © 2016-2018 <NAME> * * MIT Licence - Full licence details can be found in the file 'LICENSE' or in the Pods-{yourProjectName}-acknowledgements.markdown * * This file is included with CDSCoreDataSolutions * ************************************/ #import <CDSCoreD...
36.15
20
(translation_unit) "/********************************\n *\n * Copyright © 2016-2018 <NAME>\n *\n * MIT Licence - Full licence details can be found in the file 'LICENSE' or in the Pods-{yourProjectName}-acknowledgements.markdown\n *\n * This file is included with CDSCoreDataSolutions\n *\n ******************************...
104
20
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.15, "nodes": 78, "errors": 0, "source_hash": "87736389ae589499fe539c382afc18abb2d0ddfbfad39dd0bb136c10d6d839f5", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
346
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putstr.c :+: :+: :+: ...
33.82
44
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_putstr.c ...
352
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 33.82, "nodes": 205, "errors": 0, "source_hash": "200efd231f7f4f2cbfd6e5d5bedf8ef887c93dacc52625676d8db90e50b9ae4d", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
347
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_UPDATE_OBSERVER_H_ #define CHROME_BROWSER_EXTENSIONS_UPDATE_OBSERVER_H_ #include <string> namespace extensions { clas...
36.72
18
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_EXTENSIONS_UPDATE_OBSERVER_H_\n#define CHROME_BROWSER_EXTENSIONS_UPDATE_OBSERVER_H_\n\n#include <string>\n\...
86
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.72, "nodes": 49, "errors": 0, "source_hash": "f77e797306646a6c7a24a9841963e6dbfb932fa21cc36e46a649800aefab756d", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
348
c
//===-- CodeGen/MachineJumpTableInfo.h - Abstract Jump Tables --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
34.49
95
(translation_unit) "//===-- CodeGen/MachineJumpTableInfo.h - Abstract Jump Tables --*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
554
25
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 34.49, "nodes": 314, "errors": 0, "source_hash": "2cbf89bf00bb302d2a2b8c52338abd05abe83490dc4ed193c838da602b6aa0b4", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
349
c
#include <stdio.h> #include <cs50.h> #include <string.h> int main(void) { printf("What do you want to display? "); string s = get_string(); int len = strlen(s); for (int i = 0; i < len; i++) { printf("%c\n", s[i]); } printf("\n"); }
17.27
15
(translation_unit) "#include <stdio.h>\n#include <cs50.h>\n#include <string.h>\n\nint main(void)\n{\n printf("What do you want to display? ");\n string s = get_string();\n int len = strlen(s);\n \n for (int i = 0; i < len; i++)\n {\n printf("%c\n", s[i]);\n }\n printf("\n");\n}" (prepro...
107
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.27, "nodes": 64, "errors": 0, "source_hash": "e62d8eadb9eb5dd82d289e01f851d2c22efc783a4f708ae19bd48c12625cc249", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
350
c
// // InnoConfig.h // InnoPlayer_iOS_SDK // // Created by <NAME> on 03/09/20. // Copyright © 2020 MNC Innovation Center. All rights reserved. // #import <Foundation/Foundation.h> #import "InnoPlaylistItem.h" #import "InnoAdConfig.h" #import <InnoPlayer_iOS_SDK/InnoMenusStyle.h> @class InnoPlaylistItem; /** * Co...
31.95
83
(translation_unit) "//\n// InnoConfig.h\n// InnoPlayer_iOS_SDK\n//\n// Created by <NAME> on 03/09/20.\n// Copyright © 2020 MNC Innovation Center. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "InnoPlaylistItem.h"\n#import "InnoAdConfig.h"\n#import <InnoPlayer_iOS_SDK/InnoMenusStyle.h>\n\n@c...
337
61
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 31.95, "nodes": 235, "errors": 0, "source_hash": "97717f312fc5bb1bb85b7438d9d014505e9afed4d1e1326364df5a5a874d0222", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
351
c
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ /****************************************************************************** * @file reboot.c * @brief source file for the reboot * @version V1.0 * @date 04. April 2019 ******************************************************************...
29.62
26
(translation_unit) "/*\n * Copyright (C) 2019-2020 Alibaba Group Holding Limited\n */\n\n/******************************************************************************\n * @file reboot.c\n * @brief source file for the reboot\n * @version V1.0\n * @date 04. April 2019\n *************************************...
119
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.62, "nodes": 77, "errors": 0, "source_hash": "ebbfa33f20ccbf9fa0e719083f517f1c27c64f909fabd729af549962ec34b38d", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
352
c
// // InfoImportantNewsViewController.h // PanGu // // Created by 张琦 on 2017/7/10. // Copyright © 2017年 Security Pacific Corporation. All rights reserved. // #import "BaseViewController.h" #import "LoopScrollView.h" @interface InfoImportantNewsViewController : BaseViewController @end
23.17
12
(translation_unit) "//\n// InfoImportantNewsViewController.h\n// PanGu\n//\n// Created by 张琦 on 2017/7/10.\n// Copyright © 2017年 Security Pacific Corporation. All rights reserved.\n//\n\n#import "BaseViewController.h"\n#import "LoopScrollView.h"\n\n@interface InfoImportantNewsViewController : BaseViewController\n\n...
22
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 13, "errors": 0, "source_hash": "6262328887e1b7700ec28d510248fa218d50051986876c11afb055e7f120d553", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"BaseVie...
353
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 "PBMessageObserverDelegate.h" #import "WebviewJSEventHandlerBase.h" #import "MMWebViewDelegate.h" @class NSString; @interface WebviewJSEventHandler_openEnter...
36.91
22
(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 "PBMessageObserverDelegate.h"\n#import "WebviewJSEventHandlerBase.h"\n#import "MMWebViewDelegate.h"\n\n@class NSString;\n\n@interfac...
197
21
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.91, "nodes": 123, "errors": 0, "source_hash": "0e743d8661894ab00d9983f5bf2ed423ed94ced2e7a853b7c6a775f3e5e7afde", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
354
c
/* orderc.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* $Procedure ORDERC ( Order of a character array ) */ /* Subroutine */ int orderc_(char *array, integer *ndim, integer *iorder, ftnlen array_len) { ...
41.41
207
(translation_unit) "/* orderc.f -- translated by f2c (version 19980913).\n You must link the resulting object file with the libraries:\n -lf2c -lm (in that order)\n*/\n\n#include "f2c.h"\n\n/* $Procedure ORDERC ( Order of a character array ) */\n/* Subroutine */ int orderc_(char *array, integer *ndim, integer *iord...
501
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 41.41, "nodes": 223, "errors": 0, "source_hash": "65da4137aeb35a99602d5b93ed25f10007d373024548b8667316b0a1b2170a84", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
355
c
#ifndef ORGADD_H #define ORGADD_H #include <QDir> #include <QFile> #include <QString> #include <QIODevice> #include <QDebug> #include <stdio.h> #include <Windows.h> #define MAX_SIZE_PACKET 1024*10 class orgadd { public: orgadd(char* parpall); private: void loadoui(); QString orglib; }; #endif ...
13
23
(translation_unit) "#ifndef ORGADD_H\n#define ORGADD_H\n\n\n#include <QDir>\n#include <QFile>\n#include <QString>\n#include <QIODevice>\n#include <QDebug>\n\n#include <stdio.h>\n#include <Windows.h>\n\n\n#define MAX_SIZE_PACKET 1024*10\n\n\nclass orgadd\n{\npublic:\n\n orgadd(char* parpall);\n\n\n\nprivate:\n\n v...
71
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 13.0, "nodes": 51, "errors": 0, "source_hash": "aefa91e68ced33d9b3c0bf4a209f071c1ea9f83f92a030b5ac57c99d0fa5dfc3", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef O...
356
c
#pragma once #include "LuaBaseValue.h" // Lua Base Value // author by <NAME> // 2017/06/14 //string Value Type class LuaStringValue :public LuaBaseValue { public: virtual std::string toString() { return std::string(getCStringValue()); }; const char* getCStringValue() { return static_cast<const c...
21.8
15
(translation_unit) "#pragma once \n#include "LuaBaseValue.h" \n// Lua Base Value \n// author by <NAME> \n// 2017/06/14 \n \n//string Value Type \nclass LuaStringValue :public LuaBaseValue \n{ \n public: \n virtual std::string toString() { \n return std::string(getCStringValue()); \n }; \n const char* getCStringVal...
94
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.8, "nodes": 44, "errors": 0, "source_hash": "6806315a4e9cb24cff8d49f9089f2462764f6530c8c80cb1fe56c98c41c81e86", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
357
c
#include "drone.h" #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include "util.h" #include "client.h" #include "dashboard.h" #include "client_message.h" #include "drone_message.h" #include "mothership.h" #include "mothership_message.h" static bool process_message(Drone* drone, DroneMessage* message); s...
37.28
177
(translation_unit) "#include "drone.h"\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <unistd.h>\n\n#include "util.h"\n#include "client.h"\n#include "dashboard.h"\n#include "client_message.h"\n#include "drone_message.h"\n#include "mothership.h"\n#include "mothership_message.h"\n\nstatic bool process_message(Drone...
1,951
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 37.28, "nodes": 1133, "errors": 0, "source_hash": "84a12a79f327268e160eae5aa97197babce3d417d01703b3a4b76e0a50309bb1", "categorized_nodes": 883}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
358
c
/* The MIT License Copyright (c) 2008 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
45.53
43
(translation_unit) "/*\nThe MIT License\n\nCopyright (c) 2008 <NAME> <<EMAIL>>\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 ...
119
1
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 45.53, "nodes": 84, "errors": 0, "source_hash": "841a4ae94f1416ca642665fd3ded343f9dd36ddebb0638186f4536c5c8bf8b0c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
359
c
#include "linsched.h" #include <assert.h> /* for in_sched_functions() */ char __sched_text_start[1]; char __sched_text_end[1]; static struct rcu_head *rcu_head; static struct rcu_head **rcu_curtail = &rcu_head; /* 'rcu' */ void call_rcu_sched(struct rcu_head *head, void (*func)(struct rcu_head *rcu)) { head->func = ...
25.66
162
(translation_unit) "#include "linsched.h"\n#include <assert.h>\n\n/* for in_sched_functions() */\nchar __sched_text_start[1];\nchar __sched_text_end[1];\n\nstatic struct rcu_head *rcu_head;\nstatic struct rcu_head **rcu_curtail = &rcu_head;\n/* 'rcu' */\nvoid call_rcu_sched(struct rcu_head *head, void (*func)(struct rc...
1,188
2
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 25.66, "nodes": 776, "errors": 0, "source_hash": "825a1172372062599ded2059eddd1409b95c6d3ee806c0dd6ab3e90cbd871b86", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
360
c
/* * malloc.h * * definitions & function prototype declarations for "malloc.c" */ #define BUFUNIT 32 #define b_size(n, type) ((((n) / BUFUNIT) + 1) \ * BUFUNIT * sizeof(type)) #define b_realloc(ptr, n, type) (((n) % BUFUNIT) ? ((type *)(ptr)) \ : (type *)Xrealloc(ptr, b_size(n, type))) extern char *Xma...
42.11
18
(translation_unit) "/*\n * malloc.h\n *\n * definitions & function prototype declarations for "malloc.c"\n */\n\n#define BUFUNIT 32\n#define b_size(n, type) ((((n) / BUFUNIT) + 1) \\n * BUFUNIT * sizeof(type))\n#define b_realloc(ptr, n, type) (((n) % BUFUNIT) ? ((type *)(ptr)) \\n : (type *)Xrealloc(ptr, b_siz...
218
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 42.11, "nodes": 148, "errors": 0, "source_hash": "def59c115e46ac53b46208407cb6432c38a015595f4f681bc0d8b63accf1da95", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define\t...
361
c
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
34.15
170
(translation_unit) "//============================================================================\n// Copyright (c) Kitware, Inc.\n// All rights reserved.\n// See LICENSE.txt for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS...
1,614
78
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 34.15, "nodes": 1015, "errors": 0, "source_hash": "71ad6a50154b9d0bb81652702e8c1091e29d65211f6bd629d3c7517f447e3706", "categorized_nodes": 747}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
362
c
#include<stdio.h> int main(){ int x,i,j,k; for(x=100;x<1000;x++){ i=x/100; j=(x-i*100)/10; k=(x-i*100-j*10); if(x==i*i*i+j*j*j+k*k*k){ printf("%d\n",x); } } }
13.67
12
(translation_unit) "#include<stdio.h> \n\nint main(){\n int x,i,j,k;\n for(x=100;x<1000;x++){\n i=x/100;\n j=(x-i*100)/10;\n k=(x-i*100-j*10);\n if(x==i*i*i+j*j*j+k*k*k){\n printf("%d\n",x);\n }\n }\n}\n" (preproc_include) "#include<stdio.h>" (#include) "#include" (system_lib_string) "<stdio.h>" (fun...
142
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 13.67, "nodes": 100, "errors": 0, "source_hash": "d2254052e35ddef3c3022e0dd0128b5b7401a3938d9d7353a626fac10d2946d9", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
363
c
// // YCBaseModel.h // YCTestDemo // // Created by 陈煜钏 on 2017/1/19. // Copyright © 2017年 陈煜钏. All rights reserved. // #import <Foundation/Foundation.h> //protocol #import "YCModelProtocol.h" @interface YCBaseModel : NSObject <YCModelProtocol, NSCoding> + (instancetype)modelWithJSONDictionary:(NSDictionary *)JS...
28.19
16
(translation_unit) "//\n// YCBaseModel.h\n// YCTestDemo\n//\n// Created by 陈煜钏 on 2017/1/19.\n// Copyright © 2017年 陈煜钏. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//protocol\n#import "YCModelProtocol.h"\n\n@interface YCBaseModel : NSObject <YCModelProtocol, NSCoding>\n\n+ (instancetype)modelWi...
95
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.19, "nodes": 57, "errors": 0, "source_hash": "764315f4571f2e05144a31d22af8c375eff326e90a222c05dd2fa1827d15a18f", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Foun...
364
c
#include <stdio.h> int main() { int size; printf("Enter a number: "); scanf("%d", &size); int a[size]; printf("Enter %d numbers: ", size); for(int i = 0; i<size; i++) { scanf("%d", &a[i]); } printf("\nThe numbers entered are: "); for(int i = 0; i<size; i++) { printf("%d ", a[i]); } int max = a...
17.96
23
(translation_unit) "#include <stdio.h>\n\nint main() {\n\n int size; \n printf("Enter a number: ");\n \n scanf("%d", &size);\n\n int a[size];\n printf("Enter %d numbers: ", size);\n for(int i = 0; i<size; i++) {\n scanf("%d", &a[i]);\n }\n\n printf("\nThe numbers entered are: ");\n for(int i = 0; i<size; i++) {\n ...
230
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.96, "nodes": 121, "errors": 0, "source_hash": "f2a164be8c2de4fbb0522e423204a3a6ece05856715c34fe40c6828341fff08b", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
365
c
// // AliyunCoverPickView.h // qusdk // // Created by Worthy on 2017/11/7. // Copyright © 2017年 Alibaba Group Holding Limited. All rights reserved. // #import <UIKit/UIKit.h> @protocol AliyunCoverPickViewDelegate - (void)pickViewDidUpdateImage:(UIImage *)image; @end @interface AliyunCoverPickView : UIView @proper...
30.5
18
(translation_unit) "//\n// AliyunCoverPickView.h\n// qusdk\n//\n// Created by Worthy on 2017/11/7.\n// Copyright © 2017年 Alibaba Group Holding Limited. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@protocol AliyunCoverPickViewDelegate\n- (void)pickViewDidUpdateImage:(UIImage *)image;\n@end\n\n@interface Ali...
122
26
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.5, "nodes": 88, "errors": 0, "source_hash": "efc936353e7d30e72d7915db9a62c432cfbb09a3653464feac62cb7e6d4883a5", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
366
c
#pragma once #include <iostream> #include <string> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> class Variant_t { private: int flag; union { unsigned int _u; int _i; glm::vec3 _vf3; ...
28.79
97
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <string>\n\n#define GLFW_INCLUDE_NONE\n#include <GLFW/glfw3.h>\n#include <GL/glew.h>\n#include <glm/glm.hpp>\n#include <glm/gtc/matrix_transform.hpp>\n\nclass Variant_t {\nprivate:\n\n int flag;\n\n union {\n unsigned int _u;\n int ...
943
46
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 28.79, "nodes": 530, "errors": 0, "source_hash": "0f7b70d4e1c031832f99f31434cfe264612c342c405b178ae8795983d26ca7a9", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
367
c
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restr...
32.12
105
(translation_unit) "//----------------------------------------------------------------------------- \n// Copyright (c) 2013 GarageGames, LLC \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 \n// deal in t...
471
3
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.12, "nodes": 267, "errors": 0, "source_hash": "94f76ec99fbf11585df0f6fe9ebe68a98180385370a84450e177dfae79efa251", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
368
c
/* * Reed Solomon Encoder/Decoder * * Copyright <NAME> (<EMAIL>) 1991-2009 * * This software library is licensed under terms of the GNU GENERAL * PUBLIC LICENSE * * RSCODE is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
24.2
186
(translation_unit) "/* \n * Reed Solomon Encoder/Decoder \n *\n * Copyright <NAME> (<EMAIL>) 1991-2009\n *\n * This software library is licensed under terms of the GNU GENERAL\n * PUBLIC LICENSE\n *\n * RSCODE is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public Licen...
1,056
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 24.2, "nodes": 629, "errors": 0, "source_hash": "5507a1c33975d326c81a81ad06a6205dcf93b4480dd39bc319d21d0756fa8518", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
369
c
#import <Foundation/Foundation.h> /** * Some time-consuming operations, usually the network request. * The JobManager will do its best to make sure job executing successfully. * So, assume it had executed successfully before it really executes, * update the UI according to the success hypothesis. */ @interface R...
29.44
77
(translation_unit) "#import <Foundation/Foundation.h>\n\n/**\n * Some time-consuming operations, usually the network request.\n * The JobManager will do its best to make sure job executing successfully.\n * So, assume it had executed successfully before it really executes, \n * update the UI according to the success hy...
278
51
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.44, "nodes": 185, "errors": 0, "source_hash": "d607273478a6fb83793d9d4ab1b5ec82ae4cb940835035af0b7422dda13a4c6b", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
370
c
#pragma once #include <Windows.h> #include "PEAnalyser.h" #include "GALS.h" typedef FARPROC (WINAPI *GETPROCADDRESS)(HMODULE, LPCSTR); typedef HMODULE (WINAPI *LOADLIBRARY)(LPCSTR); enum { PEI_STR_KERNEL32, PEI_STR_VIRTUAL_ALLOC, PEI_STR_VIRTUAL_FREE, PEI_STR_VIRTUAL_PROTECT, }; typedef struct { unsigned int ...
21.14
35
(translation_unit) "#pragma once\n\n#include <Windows.h>\n#include "PEAnalyser.h"\n#include "GALS.h"\n\ntypedef FARPROC (WINAPI *GETPROCADDRESS)(HMODULE, LPCSTR);\ntypedef HMODULE (WINAPI *LOADLIBRARY)(LPCSTR);\n\nenum\n{\n PEI_STR_KERNEL32,\n PEI_STR_VIRTUAL_ALLOC,\n PEI_STR_VIRTUAL_FREE,\n PEI_STR_VIRTUAL_PROTECT,\n}...
229
3
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 21.14, "nodes": 155, "errors": 0, "source_hash": "941be639c6ef4b80cdaccd2e37dfc0c8352cc83d3f1bcabb4927555c93a6539d", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
371
c
/* * Mach Operating System * Copyright (c) 1993 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * soft...
30.7
47
(translation_unit) "/* \n * Mach Operating System\n * Copyright (c) 1993 Carnegie Mellon University\n * All Rights Reserved.\n * \n * Permission to use, copy, modify and distribute this software and its\n * documentation is hereby granted, provided that both the copyright\n * notice and this permission notice appear i...
95
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.7, "nodes": 68, "errors": 0, "source_hash": "3d86da1fc78a403d512db6a56a68f22780e25d482505d23d173d4b50eea26fb5", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
372
c
/******************************************************************************* * PROJECT: gLib * * AUTHORS: <NAME>, <NAME>, <NAME>, <NAME> * * DATE CREATED: 01/16/2019 * * Copyright (c) 2019 <NAME> (@Astropilot). All rights reserved. * * Licensed under the MIT License. See LICENSE file in the project root for full * ...
38.06
96
(translation_unit) "/*******************************************************************************\n* PROJECT: gLib\n*\n* AUTHORS: <NAME>, <NAME>, <NAME>, <NAME>\n*\n* DATE CREATED: 01/16/2019\n*\n* Copyright (c) 2019 <NAME> (@Astropilot). All rights reserved.\n*\n* Licensed under the MIT License. See LICENSE file in...
284
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 38.06, "nodes": 198, "errors": 0, "source_hash": "974b541b7529511bd8fa63159ac784854cac94b0b65593ae33863bc443aabb62", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
373
c
#include "pe12-2a.h" #include <stdio.h> static int g_mode; static float g_distance; static float g_fuel; static char* modes[2] = { "metric", "US" }; void set_mode(int mode) { if (0 != mode && 1 != mode) { printf("Invalie mode specified. Mode %d (%s) used.\n", g_mode, modes[g_mode]); return...
25.33
39
(translation_unit) "#include "pe12-2a.h"\n#include <stdio.h>\n\nstatic int g_mode;\nstatic float g_distance;\nstatic float g_fuel;\nstatic char* modes[2] = {\n "metric",\n "US"\n};\n\nvoid set_mode(int mode)\n{\n if (0 != mode && 1 != mode) {\n printf("Invalie mode specified. Mode %d (%s) used.\n", g_mo...
327
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 25.33, "nodes": 158, "errors": 0, "source_hash": "d1e182501bdf8b9602005d3d2102771909907b39f1c4296eee1ae77f1d05e406", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
374
c
/* CentipedeSegment.h - <NAME>, October 2017 */ #ifndef _CentipedeSegment #define _CentipedeSegment #include "Centipede.h" class CentipedeSegment : public Centipede { public: /* BIG FOUR */ CentipedeSegment(); CentipedeSegment(const CentipedeSegment &) = default; CentipedeSegment & operator =(const CentipedeSegm...
31.52
50
(translation_unit) "/* CentipedeSegment.h - <NAME>, October 2017 */\n\n#ifndef _CentipedeSegment\n#define _CentipedeSegment\n\n#include "Centipede.h"\n\nclass CentipedeSegment : public Centipede\n{\npublic:\n /* BIG FOUR */\n CentipedeSegment();\n CentipedeSegment(const CentipedeSegment &) = default;\n CentipedeSegment...
493
27
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.52, "nodes": 311, "errors": 0, "source_hash": "fdee9663f86e4ea12d511f0c5cd0c39ee69c1342184879036cf4f98cfa3efff0", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
375
c
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
28.58
71
(translation_unit) "/*\n * Copyright (c) 2015 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "...
422
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 28.58, "nodes": 217, "errors": 0, "source_hash": "77bd8d2f3150b0b9a0593d09abc2b11b44ee359ccc400eb71747a0768819e4dd", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
376
c
#ifndef __NVIF_CLB069_H__ #define __NVIF_CLB069_H__ struct nvif_clb069_v0 { __u8 version; __u8 pad01[3]; __u32 entries; __u32 get; __u32 put; }; #define NVB069_V0_NTFY_FAULT 0x00 #endif
20.82
11
(translation_unit) "#ifndef __NVIF_CLB069_H__\n#define __NVIF_CLB069_H__\nstruct nvif_clb069_v0 {\n __u8 version;\n __u8 pad01[3];\n __u32 entries;\n __u32 get;\n __u32 put;\n};\n\n#define NVB069_V0_NTFY_FAULT 0x00\n#endif\n" (preproc_ifdef) "#ifndef __NVIF_CLB069_H__\...
43
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.82, "nodes": 31, "errors": 0, "source_hash": "1e5f2b7160702996753c7ea13bb24b32721aee3e9288e7f901d2e1a256c2e973", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
377
c
/* nest98.h */ #include "nest99.h"
16.5
2
(translation_unit) "/* nest98.h */\n#include "nest99.h"\n" (comment) "/* nest98.h */" (preproc_include) "#include "nest99.h"\n" (#include) "#include" (string_literal) ""nest99.h"" (") """ (string_content) "nest99.h" (") """
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 16.5, "nodes": 3, "errors": 0, "source_hash": "ceea0aa70c588c37c5e11310a93228929b28716f891c5c06b8c095b363030a0d", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
378
c
#if defined(CGV_REFLECT_FORCE_STATIC) # define CGV_FORCE_STATIC_LIB #endif #ifdef CGV_REFLECT_EXPORTS # define CGV_EXPORTS #endif #include <cgv/config/lib_begin.h>
22.43
7
(translation_unit) "#if defined(CGV_REFLECT_FORCE_STATIC)\n# define CGV_FORCE_STATIC_LIB\n#endif\n#ifdef CGV_REFLECT_EXPORTS\n# define CGV_EXPORTS\n#endif\n\n#include <cgv/config/lib_begin.h>\n" (preproc_if) "#if defined(CGV_REFLECT_FORCE_STATIC)\n# define CGV_FORCE_STATIC_LIB\n#endif" (#if) "#if" (preproc_de...
23
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.43, "nodes": 20, "errors": 0, "source_hash": "449e3500e1043ebaf56421b05d7fd0642d5737a8bb42894bf280f09e645de5ad", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined(...
379
c
#define UTS_VERSION "#1 2010-09-09 12:44:17 EDT" #define LINUX_COMPILE_TIME "12:44:17" #define LINUX_COMPILE_BY "root" #define LINUX_COMPILE_HOST "tomato" #define LINUX_COMPILE_DOMAIN "localdomain" #define LINUX_COMPILER "gcc version 3.4.6"
39.17
6
(translation_unit) "#define UTS_VERSION "#1 2010-09-09 12:44:17 EDT"\n#define LINUX_COMPILE_TIME "12:44:17"\n#define LINUX_COMPILE_BY "root"\n#define LINUX_COMPILE_HOST "tomato"\n#define LINUX_COMPILE_DOMAIN "localdomain"\n#define LINUX_COMPILER "gcc version 3.4.6"\n" (preproc_def) "#define UTS_VERSION "#1 2010-09-09...
25
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 39.17, "nodes": 24, "errors": 0, "source_hash": "6f9ee18c30b3d6d67f5338c8ed0729aed106f8ac9ca0bc35e44d5c03529fbc55", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define UTS_...
380
c
#ifndef SVM_HANDLER_H #define SVM_HANDLER_H #include "svm_basic.h" // SVMHandler interface, all blocks will implement this class class SVMHandler { public: //virtual ~SVMHandler(); virtual void processRequest(SVMConfiguration&) = 0; virtual bool canHandle(SVMConfiguration&) = 0; }; #endif
25.64
11
(translation_unit) "#ifndef SVM_HANDLER_H\n#define SVM_HANDLER_H\n\n#include "svm_basic.h"\n\n// SVMHandler interface, all blocks will implement this class\nclass SVMHandler {\npublic:\n //virtual ~SVMHandler();\n virtual void processRequest(SVMConfiguration&) = 0;\n virtual bool canHandle(SVMConfiguration&) = 0;\n};\n...
63
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.64, "nodes": 37, "errors": 0, "source_hash": "5a0a4978260c318ef4bb56ebd78043ed17ea22479a3288c813ef5c621f44e58a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
381
c
/*@predicate who_is_taller{L}(int *x,integer j, integer last)= @ \forall integer i; j < i < last ==> x[j] > x[i]; @ */ /*@ predicate how_many{L}(int *x, integer counter, integer size,integer cnt) = @ (counter < size) ? @ (who_is_taller(x,counter,size))? how_many(x,counter+1,size,cnt-...
28.15
39
(translation_unit) "/*@predicate who_is_taller{L}(int *x,integer j, integer last)=\n @ \forall integer i; j < i < last ==> x[j] > x[i];\n @\n*/\n\n/*@ predicate how_many{L}(int *x, integer counter, integer size,integer cnt) =\n @ (counter < size) ? \n @ (who_is_taller(x,counter,size))? how_...
103
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.15, "nodes": 65, "errors": 0, "source_hash": "3827725cc936c2b1dd44458d571305d2c93ee2140620fdc8fbe8af07f0562ca9", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
382
c
#ifndef __OS_LINUX_H__ #define __OS_LINUX_H__ #include "download.h" void qdl_flush_fifo(int fd, int tx_flush, int rx_flush,int rx_tcp_flag); int openport(int ioflush); int closeport(); int WriteABuffer(int file, const unsigned char * lpBuf, int dwToWrite); int ReadABuffer(int file, unsigned char * lpBuf, int...
31.29
21
(translation_unit) "#ifndef __OS_LINUX_H__ \n#define __OS_LINUX_H__ \n#include "download.h" \n \nvoid qdl_flush_fifo(int fd, int tx_flush, int rx_flush,int rx_tcp_flag); \n \nint openport(int ioflush); \nint closeport(); \nint WriteABuffer(int file, const unsigned char * lpBuf, int dwToWrite); \nint ReadABuffer(int fil...
196
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.29, "nodes": 143, "errors": 0, "source_hash": "cdbaf259d3e38af825f3dfd8bef3d4fb987ecd65ab87cbc45ff7c487e760fe85", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
383
c
/* Copyright 2016. The Regents of the University of California. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2016 <NAME> <<EMAIL>> */ #include <stdlib.h> #include <complex.h> #include "num/flpmath.h" #include "num/mult...
24.76
58
(translation_unit) "/* Copyright 2016. The Regents of the University of California.\n * All rights reserved. Use of this source code is governed by\n * a BSD-style license which can be found in the LICENSE file.\n *\n * Authors:\n * 2016 <NAME> <<EMAIL>>\n */\n\n#include <stdlib.h>\n#include <complex.h>\n\n#include "nu...
588
7
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.76, "nodes": 320, "errors": 0, "source_hash": "f018cec3a02982145d1e73a04d283ed10bf5caf8cf8c51a472a852bfa3dd6a90", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
384
c
#include <R.h> #include <Rinternals.h> #include <Rdefines.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Generate C function finalizer which prints the string stored in the // protected field //~~~~~~~~~~~~~~~~~~~~~~...
32.09
35
(translation_unit) "#include <R.h>\n#include <Rinternals.h>\n#include <Rdefines.h>\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n\n\n//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n// Generate C function finalizer which prints the string stored in the\n// protected f...
197
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.09, "nodes": 109, "errors": 0, "source_hash": "05b77d5de827c60ff402a04337b1cd21c8874cb3a48efd138e2d4cbe58bb1bb0", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
385
c
/* * <NAME> * * Based on Y.A.Chong's work (http://myarduinomelodies.blogspot.com/2013/11/2-jingle-bell.html) */ int jingleBellTempo = 123; int jingleBellNotes[] = { N_G4, N_E5, N_D5, N_C5, N_G4, N_G4, N_E5, N_D5, N_C5, N_A4, N_A4, N_F5, N_E5, N_D5, N_B4, N_G5, N_G5, N_F5, N_D5, N_E5, N_G4, N_E5, N_D5...
34.24
34
(translation_unit) "/*\n * <NAME>\n * \n * Based on Y.A.Chong's work (http://myarduinomelodies.blogspot.com/2013/11/2-jingle-bell.html)\n */\n\nint jingleBellTempo = 123;\n\nint jingleBellNotes[] = {\n N_G4, N_E5, N_D5, N_C5, N_G4, N_G4, N_E5, N_D5,\n N_C5, N_A4, N_A4, N_F5, N_E5, N_D5, N_B4, N_G5,\n N_G5, N_F...
423
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.24, "nodes": 216, "errors": 0, "source_hash": "113d7de84d7060ac3ceac45b676d7a6e927d04620ef23a443e467af3a19c88c8", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int jing...
386
c
/* * Copyright (C) Texas Instruments - http://www.ti.com/ * * 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 a...
33.3
149
(translation_unit) "/*\n * Copyright (C) Texas Instruments - http://www.ti.com/\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...
854
34
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 33.3, "nodes": 579, "errors": 0, "source_hash": "c71f1ee850d0b111473d16febd5df73c592a26a8bb90b221fd41ef428f546da9", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
387
c
/* * drivers/base/sw_sync.c * * Copyright (C) 2012 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hop...
31.26
73
(translation_unit) "/*\n * drivers/base/sw_sync.c\n *\n * Copyright (C) 2012 Google, Inc.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those terms.\n *\n * This prog...
518
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 31.26, "nodes": 356, "errors": 0, "source_hash": "dc14e27f0f1a6714a4aefa5065e1aa5c2c7bc9a56fa7b6cb947b857257124148", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
388
c
#include <stdio.h> void swap(int &a, int &b) { int tmp; tmp = a; a = b; b = tmp; } int partition(int a[], int start, int end) { int i, j; int tmp, x; x = a[end]; //按x分割元素 i = start - 1; for (j = start; j < end; j++) { if (a[j] <= x) swap(a[++i], a[j]); } ...
16.58
45
(translation_unit) "#include <stdio.h>\n\nvoid swap(int &a, int &b)\n{\n int tmp;\n tmp = a;\n a = b;\n b = tmp;\n}\nint partition(int a[], int start, int end)\n{\n int i, j;\n int tmp, x;\n x = a[end]; //按x分割元素\n i = start - 1;\n for (j = start; j < end; j++)\n {\n if (a[j] <= x)\n...
391
2
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 16.58, "nodes": 207, "errors": 0, "source_hash": "c3634a1331e4bba87f9370a231d1951f27ec8e848f5f869d5685e45e0ea193a0", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
389
c
// // UICollectionView+PASExtras.h // ProatomicCore // // Created by <NAME> on 5/13/16. // Copyright © 2016 Property Atomic Strong SAC. All rights reserved. // @import UIKit; @interface UICollectionView (PASExtras) /** This method retrieves the indexPath from the cell which contains an specific UIView. @para...
26.39
18
(translation_unit) "//\n// UICollectionView+PASExtras.h\n// ProatomicCore\n//\n// Created by <NAME> on 5/13/16.\n// Copyright © 2016 Property Atomic Strong SAC. All rights reserved.\n//\n\n@import UIKit;\n\n@interface UICollectionView (PASExtras)\n\n/**\n This method retrieves the indexPath from the cell which cont...
64
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.39, "nodes": 34, "errors": 0, "source_hash": "2afa76133de392134d09bf09e2ad218c02f75b33925f31198f9f2d791becdb69", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
390
c
#include<stdio.h> void main() { int a[50],i,j,n; printf("\n\n Sorting An Array \n\n"); printf(" Enter Number Of Elements : "); scanf("%d",&n); printf("\n\n Creating The Array \n\n"); for(i = 0 ; i < n ; i++) { printf("\n Enter Value : "); scanf("%d",&a[i]); } printf("\...
19.46
39
(translation_unit) "#include<stdio.h> \n \nvoid main() \n{ \n int a[50],i,j,n; \n printf("\n\n Sorting An Array \n\n"); \n printf(" Enter Number Of Elements : "); \n scanf("%d",&n); \n printf("\n\n Creating The Array \n\n"); \n for(i = 0 ; i < n ; i++) \n { \n printf("\n Enter Value : "); \n scanf(...
366
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 19.46, "nodes": 203, "errors": 0, "source_hash": "1ff6e65a3f14e1b4a7619742ef72ab5d47a0aa01124701d0c2cc5614239acc0a", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
391
c
#ifndef SERVER_H #define SERVER_H #include <wayland-server.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_virtual_pointer_v1.h> #include <wlr/types/wlr_virtual_keyboard_v1.h> #include <wlr/xcursor.h> #include <wayland-server-core.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_relati...
33.33
82
(translation_unit) "#ifndef SERVER_H\n#define SERVER_H\n#include <wayland-server.h>\n#include <wlr/types/wlr_cursor.h>\n#include <wlr/types/wlr_virtual_pointer_v1.h>\n#include <wlr/types/wlr_virtual_keyboard_v1.h>\n#include <wlr/xcursor.h>\n#include <wayland-server-core.h>\n#include <wlr/types/wlr_xcursor_manager.h>\n#...
456
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.33, "nodes": 368, "errors": 0, "source_hash": "860a0f98e82694bc4863b6ee20269a28fb51d91251b6652202444cabf557bd01", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
392
c
/* * drivers/inputhub/sensor_feima.c * * sensors feima header file * * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified ...
26.21
68
(translation_unit) "/*\n * drivers/inputhub/sensor_feima.c\n *\n * sensors feima header file\n *\n * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copie...
263
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 26.21, "nodes": 187, "errors": 0, "source_hash": "d07e8cb9e06df23594d24c98452c0ffa3b1645266723ae368dfbf37052ddec62", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
393
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:46:41 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/PDFKit.framework/PDFKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #imp...
29.7
23
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:46:41 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/Frameworks/PDFKit.framework/PDFKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-...
85
7
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.7, "nodes": 61, "errors": 0, "source_hash": "1bc9ffd07b7ae678db5b994a67385728beea911f038ba571f204dbea9519812d", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <PD...
394
c
/////////////////////////////////////////////////////////////////////////////// /// /// Copyright (c) [!output PROJECT_YEAR] - [!output DDKWIZ_USERVARIABLE_COMPANY] /// /// Original filename: [!output PROJECT_FILENAME] /// Project : [!output PROJECT_NAME] /// Date of creation : [!output PROJECT_DATE] //...
27.21
141
(ERROR) "/////////////////////////////////////////////////////////////////////////////// \n/// \n/// Copyright (c) [!output PROJECT_YEAR] - [!output DDKWIZ_USERVARIABLE_COMPANY] \n/// \n/// Original filename: [!output PROJECT_FILENAME] \n/// Project : [!output PROJECT_NAME] \n/// Date of creation : [!output PR...
611
23
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 27.21, "nodes": 366, "errors": 0, "source_hash": "a9b0a3f6390a5cd312b7e198440f77ca4ad5de0cdb3ecbb707c0465b698069dd", "categorized_nodes": 280}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "////////////////////////...
395
c
// // ChatEmojView.h // TIMChat // // Created by AlexiChen on 16/3/21. // Copyright © 2016年 AlexiChen. All rights reserved. // #import "MyEmojView.h" @interface ChatEmojView : MyEmojView<ChatInputAbleView> { @protected __weak id<ChatInputAbleViewDelegate> _chatDelegate; @protected NSInteger _conten...
21.24
21
(translation_unit) "//\n// ChatEmojView.h\n// TIMChat\n//\n// Created by AlexiChen on 16/3/21.\n// Copyright © 2016年 AlexiChen. All rights reserved.\n//\n\n#import "MyEmojView.h"\n\n@interface ChatEmojView : MyEmojView<ChatInputAbleView>\n{\n@protected\n __weak id<ChatInputAbleViewDelegate> _chatDelegate;\n \...
86
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.24, "nodes": 59, "errors": 0, "source_hash": "5e5ebbcba49be2e010b3b0d48725c0a225a264ab27eb3a61ccb6fbf0a0688d68", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"My...
396
c
/* stack.c: Kwdikas tis vivliothikis stoivas */ #include "stack.h" /* ST_init(): arxikopoiei ti lista */ void ST_init(STACK *s) { //s->top=-1; (*s).top=-1; } /* ST_empty(): epistrefei TRUE/FALSE * analoga me to an i stoiva einai adeia */ int ST_empty(STACK s) { return s.top==-1; } /...
17.48
56
(translation_unit) "/* stack.c: Kwdikas tis vivliothikis stoivas */ \n#include "stack.h" \n \n \n \n/* ST_init(): arxikopoiei ti lista */ \nvoid ST_init(STACK *s) \n{ \n //s->top=-1; \n (*s).top=-1; \n} \n \n/* ST_empty(): epistrefei TRUE/FALSE \n * analoga me to an i stoiva einai adeia */ \nint ST_empty(STACK...
234
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 17.48, "nodes": 141, "errors": 0, "source_hash": "edeccfe2d7a1f1b095ff7b7569fa27a10959a05726c3a2fccdc133f02888ec58", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
397
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
35.78
313
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n* vim: set ts=8 sts=4 et sw=4 tw=99:\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mo...
2,264
71
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 35.78, "nodes": 1287, "errors": 0, "source_hash": "0613dd3956973a29a8bb5f00c57d0f18c4be27f83e6a1deda7fc2a920953388f", "categorized_nodes": 867}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
398
c
#include "sof_config.h"
23
1
(translation_unit) "#include "sof_config.h"\n" (preproc_include) "#include "sof_config.h"\n" (#include) "#include" (string_literal) ""sof_config.h"" (") """ (string_content) "sof_config.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 23.0, "nodes": 3, "errors": 0, "source_hash": "dbf04ceea2ff79ca012a7f3f3d46873b83745de7b78af1e1e913dfcd80d52ccb", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
399