language stringclasses 1
value | code stringlengths 6 12.3k | avg_line_length float64 2.79 91 | line_count float64 1 367 | lang_specific_parse stringlengths 60 1.08M | ast_node_count int64 2 6.81k | num_errors int64 0 499 | universal_schema stringlengths 799 825k | __index_level_0__ int64 0 81.2k |
|---|---|---|---|---|---|---|---|---|
c | #ifndef UNITTEST_CURRENTTESTRESULTS_H
#define UNITTEST_CURRENTTESTRESULTS_H
namespace UnitTest {
class TestResults;
class TestDetails;
namespace CurrentTest
{
TestResults*& Results();
const TestDetails*& Details();
}
}
#endif
| 18 | 12 | (translation_unit) "#ifndef UNITTEST_CURRENTTESTRESULTS_H\n#define UNITTEST_CURRENTTESTRESULTS_H\n\nnamespace UnitTest {\n\nclass TestResults;\nclass TestDetails;\n\nnamespace CurrentTest\n{\n TestResults*& Results();\n const TestDetails*& Details();\n}\n\n}\n\n#endif\n"
(preproc_ifdef) "#ifndef UNITTEST_CURRENTTESTR... | 54 | 1 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.0, "nodes": 31, "errors": 0, "source_hash": "7ee5b8a750b89c4589f0c3eb6fcbbd3208bb7ebac98921fbcd41953a471496a8", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U... | 2,100 |
c | /*
LcdNoI2CMenu.h - Main include file for the LcdNOI2CMenu Library
MIT License
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction,... | 26.68 | 222 | (translation_unit) "/*
\n LcdNoI2CMenu.h - Main include file for the LcdNOI2CMenu Library
\n
\n MIT License
\n
\n Copyright (c) 2020 <NAME>
\n
\n Permission is hereby granted, free of charge, to any person obtaining a copy
\n of this software and associated documentation files (the "Software"), to deal
\n in the ... | 449 | 1 | {"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 26.68, "nodes": 276, "errors": 0, "source_hash": "bdf1b2ca2c9e169a9eb51c500692d05900906f23386da4017669257c76a2b6da", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 2,101 |
c | /**
* 遍历复杂度为O(n), 二分复杂度为O(logn)
* 问题模型:查找元素,复杂度O(logn) -- 二分
* 思路:
* 1. 因为nums[-1] = nums[n] = -∞,那么爬坡往高找,必然可以找到峰值;
* 2. 通过判断是否爬坡,不断缩小搜索区间,是一个典型的二分查找
* 3. 判断是否向右爬坡(向左爬坡也可以):nums[mid] < nums[mid + 1]
*/
int findPeakElement(int* nums, int numsSize){
int l = 0, r = numsSize - 1;
while (l < r) {
int... | 24.15 | 20 | (translation_unit) "/**\n * 遍历复杂度为O(n), 二分复杂度为O(logn)\n * 问题模型:查找元素,复杂度O(logn) -- 二分\n * 思路:\n * 1. 因为nums[-1] = nums[n] = -∞,那么爬坡往高找,必然可以找到峰值;\n * 2. 通过判断是否爬坡,不断缩小搜索区间,是一个典型的二分查找\n * 3. 判断是否向右爬坡(向左爬坡也可以):nums[mid] < nums[mid + 1]\n */\n\nint findPeakElement(int* nums, int numsSize){\n int l = 0, r = numsSize - 1;\n... | 115 | 0 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.15, "nodes": 74, "errors": 0, "source_hash": "eeaae139a1d5ddc76e6b4c95733302c85cd38e896dc1d3a3d56e37ad47690117", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "\u... | 2,102 |
c | //
// NSDate+DTJsonString.h
// MobileFoundation
//
// Created by WenBi on 13-4-12.
// Copyright (c) 2013年 Alipay. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* \code NSDate 类的扩展,用于在 JSON 对象序列化中将 \code NSDate 生成相应的字符串,
* 或者反序列化中将 JSON 串中的 long 型(64位)表示的毫秒数转换为 \code NSDate 对象。
*/
@interface NSD... | 22.75 | 28 | (translation_unit) "//\n// NSDate+DTJsonString.h\n// MobileFoundation\n//\n// Created by WenBi on 13-4-12.\n// Copyright (c) 2013年 Alipay. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n * \code NSDate 类的扩展,用于在 JSON 对象序列化中将 \code NSDate 生成相应的字符串,\n * 或者反序列化中将 JSON 串中的 long 型(64位)表示的毫秒数转换为 \co... | 63 | 6 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.75, "nodes": 37, "errors": 0, "source_hash": "37e814cfd1688465e6840091da9cbeeee02827269f4193ea3437f5dc8dd90512", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo... | 2,103 |
c | /*
* Do a longjmp call, calling the fatal error handler if no
* catchpoint exists.
*/
#include "duk_internal.h"
void duk_err_longjmp(duk_hthread *thr) {
DUK_ASSERT(thr != NULL);
if (!thr->heap->lj.jmpbuf_ptr) {
/*
* If we don't have a jmpbuf_ptr, there is little we can do
* except panic. The caller... | 28.47 | 19 | (translation_unit) "/*\n * Do a longjmp call, calling the fatal error handler if no\n * catchpoint exists.\n */\n\n#include "duk_internal.h"\n\nvoid duk_err_longjmp(duk_hthread *thr) {\n DUK_ASSERT(thr != NULL);\n\n if (!thr->heap->lj.jmpbuf_ptr) {\n /*\n * If we don't have a jmpbuf_ptr, there is little we can do... | 114 | 0 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.47, "nodes": 62, "errors": 0, "source_hash": "203412e0518a0d60e6842c6b27d047410b24eebb23f8a55f248c3553649aab6a", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 2,104 |
c | #ifndef ONEWIRE_H_
#define ONEWIRE_H_
#include <stdint.h>
// Port and pins definition:
#define OWPORTDIR P2DIR
#define OWPORTOUT P2OUT
#define OWPORTIN P2IN
#define OWPORTREN P2REN
#define OWPORTPIN BIT3
#define OW_LO { OWPORTDIR |= OWPORTPIN; OWPORTREN &= ~OWPORTPIN; OWPORTOUT &= ~OWPORTPIN; }
#define OW_H... | 28.95 | 41 | (translation_unit) "#ifndef ONEWIRE_H_
\n#define ONEWIRE_H_
\n#include <stdint.h>
\n
\n// Port and pins definition:
\n#define OWPORTDIR P2DIR
\n#define OWPORTOUT P2OUT
\n#define OWPORTIN P2IN
\n#define OWPORTREN P2REN
\n#define OWPORTPIN BIT3
\n#define OW_LO { OWPORTDIR |= OWPORTPIN; OWPORTREN &= ~OWPORTPIN; OWPORTOUT ... | 171 | 0 | {"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.95, "nodes": 139, "errors": 0, "source_hash": "b611b36891c9bb0e263642d817a98d55501c57924bcfe27d3eaee21f348943fa", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 2,105 |
c | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... | 23.88 | 226 | (translation_unit) "/* Editor Settings: expandtabs and use 4 spaces for indentation\n * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *\n */\n\n/*\n * Copyright © BeyondTrust Software 2004 - 2019\n * All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not u... | 1,044 | 0 | {"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 23.88, "nodes": 640, "errors": 0, "source_hash": "196a18e48891a41d63c1b9df6fb909760de970a2b00f8f98c2bcc34df4d468c0", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc... | 2,106 |
c | //
// JXBAdPageView.h
// XBAdPageView
//
// Created by <NAME> mail:<EMAIL> on 15/5/13.
// Github ---- https://github.com/JxbSir
// Copyright (c) 2015年 Peter. All rights reserved.
//
#import <UIKit/UIKit.h>
@class JXBAdPageView;
typedef void (^JXBAdPageCallback)(NSInteger clickIndex);
@protocol JXBAdPageViewDel... | 27.97 | 35 | (translation_unit) "//\n// JXBAdPageView.h\n// XBAdPageView\n//\n// Created by <NAME> mail:<EMAIL> on 15/5/13.\n// Github ---- https://github.com/JxbSir\n// Copyright (c) 2015年 Peter. All rights reserved.\n//\n\n\n#import <UIKit/UIKit.h>\n\n@class JXBAdPageView;\ntypedef void (^JXBAdPageCallback)(NSInteger clickIn... | 189 | 34 | {"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.97, "nodes": 129, "errors": 0, "source_hash": "a4e7900977e570a24996eaddc011247dc01cac9afe9b018610da56c228c61acd", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U... | 2,107 |
c | #pragma once
#include "particlemesh.h"
// External Includes
#include <renderablemesh.h>
#include <rendercomponent.h>
#include <transformcomponent.h>
#include <componentptr.h>
#include <uniforminstance.h>
#include <materialinstance.h>
namespace nap
{
class PointSpriteVolumeInstance;
class PointSpriteVolume : public... | 36.17 | 72 | (translation_unit) "#pragma once\n#include "particlemesh.h"\n\n// External Includes\n#include <renderablemesh.h>\n#include <rendercomponent.h>\n#include <transformcomponent.h>\n#include <componentptr.h>\n#include <uniforminstance.h>\n#include <materialinstance.h>\n\nnamespace nap\n{\n class PointSpriteVolumeInstance;\n... | 543 | 29 | {"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 36.17, "nodes": 387, "errors": 0, "source_hash": "207946510ec55cc736ee61e0670957cfd2ea4fe427aa4abe0ed39166dc9617c7", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 2,108 |
c | /*
* TurnAngle.h
*
* Created on: Jan 20, 2018
* Author: jonah
*/
#ifndef SRC_AUTON_TURNANGLE_H_
#define SRC_AUTON_TURNANGLE_H_
//includes
//Team302 includes
#include <subsys/IChassis.h>
#include <subsys/IChassis.h>
#include <auton/IPrimitive.h>
#include <auton/LiftElevator.h>
class TurnAn... | 21.84 | 57 | (translation_unit) "/*
\n * TurnAngle.h
\n *
\n * Created on: Jan 20, 2018
\n * Author: jonah
\n */
\n
\n#ifndef SRC_AUTON_TURNANGLE_H_
\n#define SRC_AUTON_TURNANGLE_H_
\n
\n//includes
\n//Team302 includes
\n#include <subsys/IChassis.h>
\n#include <subsys/IChassis.h>
\n#include <auton/IPrimitive.h>
\n#include <au... | 230 | 4 | {"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 21.84, "nodes": 153, "errors": 0, "source_hash": "874d0bfcbf968c1373dfbd903274565cb59763c9d256959857c2642abcc769b1", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 2,109 |
c | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "NSSecureCoding.h"
@class NSArray, NSMutableArray, NSString;
@interface XCSynthesizedEventRecord : NSObject <NSSecureCoding>
{
NSMutableArray *_eventPa... | 32.46 | 28 | (translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSSecureCoding.h"\n\n@class NSArray, NSMutableArray, NSString;\n\n@interface XCSynthesizedEventRecord : NSObject <NSSecureCoding... | 252 | 24 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.46, "nodes": 162, "errors": 0, "source_hash": "71fd00973f53720f30063bd0da3074a0594e7feca1422bccfa6005573e2066b2", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ... | 2,110 |
c | #pragma once
/*!
* @file LinkedWord.h
* A word (4 bytes), possibly with some linking info.
*/
#include <cstdint>
#include <string>
#include <cstring>
#include "common/common_types.h"
#include "common/util/assert.h"
namespace decompiler {
class LinkedWord {
public:
enum Kind : u8 {
PLAIN_DATA, // just plai... | 25.5 | 132 | (translation_unit) "#pragma once\n\n/*!\n * @file LinkedWord.h\n * A word (4 bytes), possibly with some linking info.\n */\n\n#include <cstdint>\n#include <string>\n#include <cstring>\n#include "common/common_types.h"\n#include "common/util/assert.h"\n\nnamespace decompiler {\nclass LinkedWord {\n public:\n enum Kind ... | 1,042 | 13 | {"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 25.5, "nodes": 578, "errors": 0, "source_hash": "779b0e29dbd3c7214340bbfaa62ed23cc3658eb1e5e4a48c500d30ed745ab695", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 2,111 |
c | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* src/lib/krb5/asn.1/asn1_get.c
*
* Copyright 1994 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Govern... | 33.94 | 109 | (translation_unit) "/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * src/lib/krb5/asn.1/asn1_get.c\n *\n * Copyright 1994 by the Massachusetts Institute of Technology.\n * All Rights Reserved.\n *\n * Export of this software from the United States of America may\n * require a specific license f... | 707 | 0 | {"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 33.94, "nodes": 442, "errors": 0, "source_hash": "a47c88195865816b899abfd975f43d0305ed4a47a7b48b83578af6e9029757b0", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 2,112 |
c | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2011 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* re... | 31.77 | 172 | (translation_unit) "/* This file is part of the Pangolin Project.\n * http://github.com/stevenlovegrove/Pangolin\n *\n * Copyright (c) 2011 <NAME>\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... | 956 | 49 | {"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 31.77, "nodes": 622, "errors": 0, "source_hash": "eca43ccaeeb47a6e664270e744c22a6401650af5757bce28c2eeb3e3bad27d8e", "categorized_nodes": 382}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PANGO... | 2,113 |
c | /*
* Copyright (c) 2001-2007, <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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions... | 35.67 | 85 | (translation_unit) "/*\n * Copyright (c) 2001-2007, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,... | 232 | 0 | {"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 35.67, "nodes": 78, "errors": 0, "source_hash": "9e613503a13124c0c8ce16386a8a78f15cc8cd41c93b9eff45a777fe757419ee", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 2,114 |
c | // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 33.64 | 84 | (translation_unit) "// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.\n//\n// Licensed under the BSD 3-Clause License (the "License"); you may not use this\n// file except in compliance with the License. You may obtain a copy of the\n// License at\n//\n// https://opensource.org/licenses/BSD... | 532 | 35 | {"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 33.64, "nodes": 296, "errors": 0, "source_hash": "89042ce0956e7d1e5f5905228efc204f0991e211de92b1dc3601189eb1dd7e87", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,115 |
c | //
// XGNavigationController.h
// AI_XG
//
// Created by 小马哥 on 2017/9/18.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface XGNavigationController : UINavigationController
@end
| 21 | 10 | (translation_unit) "//\n// XGNavigationController.h\n// AI_XG\n//\n// Created by 小马哥 on 2017/9/18.\n// Copyright © 2017年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XGNavigationController : UINavigationController\n\n@end\n"
(comment) "//"
(comment) "// XGNavigationController.h"
... | 19 | 3 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "4ca6b3cf0720b37c4d7af60e4f634cad1677249b400c50897530a1d02e2e8de1", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit... | 2,116 |
c | #pragma once
#include <QObject>
#include "SimulationModel.h"
#include "SimulationView.h"
class SimulationViewController : public QObject
{
Q_OBJECT
private:
std::vector<SimulationModel::drawEntity> currentFrame;
SimulationModel::Simulation* model;
SimulationView* view;
bool resizeMode = true;
public:
void fitMo... | 28.88 | 24 | (translation_unit) "#pragma once\n\n#include <QObject>\n#include "SimulationModel.h"\n#include "SimulationView.h"\n\nclass SimulationViewController : public QObject\n{\n Q_OBJECT\nprivate:\n std::vector<SimulationModel::drawEntity> currentFrame;\n SimulationModel::Simulation* model;\n SimulationView* view;\n bool resiz... | 192 | 7 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.88, "nodes": 123, "errors": 0, "source_hash": "342f1905bcaf93ac7abe47dbe7bafd90290f8aab13c0b0e1a0e467dc1e541481", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 2,117 |
c | #ifndef __GCONTROLLER_H__
#define __GCONTROLLER_H__
#include "FairyGUIMacros.h"
#include "cocos2d.h"
#include "event/UIEventDispatcher.h"
NS_FGUI_BEGIN
class GComponent;
class ControllerAction;
class ByteBuffer;
class GController : public UIEventDispatcher
{
public:
GController();
virtual ~GController();
... | 34.65 | 46 | (translation_unit) "#ifndef __GCONTROLLER_H__\n#define __GCONTROLLER_H__\n\n#include "FairyGUIMacros.h"\n#include "cocos2d.h"\n#include "event/UIEventDispatcher.h"\n\nNS_FGUI_BEGIN\n\nclass GComponent;\nclass ControllerAction;\nclass ByteBuffer;\n\nclass GController : public UIEventDispatcher\n{\npublic:\n GControll... | 475 | 27 | {"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 34.65, "nodes": 263, "errors": 0, "source_hash": "f5c2871a72f74cfbd21ff5eb9c5f42b61a1368eb2354feb78762af4919f1e815", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,118 |
c | #include "../../../test_common.h"
#include <math.h>
#include <float.h>
#include <errno.h>
void runSuccess() {
erfcf(0.0f);
erfcf(1.0f);
erfcf(-1.0f);
erfcf(56.5f);
erfcf(anyfloat());
}
void runFailure() {
}
int f;
void testValues() {
f = 2;
float result;
erfcf(anyfloat());
... | 14.75 | 24 | (translation_unit) "#include "../../../test_common.h"\n#include <math.h>\n#include <float.h>\n#include <errno.h>\n\nvoid runSuccess() {\n erfcf(0.0f);\n erfcf(1.0f);\n erfcf(-1.0f);\n erfcf(56.5f);\n erfcf(anyfloat());\n}\n\nvoid runFailure() {\n \n}\n\nint f;\nvoid testValues() {\n f = 2;\n flo... | 118 | 0 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 14.75, "nodes": 65, "errors": 0, "source_hash": "3283b9f15babf77c25f3896c516f43b59d3c14de0e4026260373b6102013a936", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 2,119 |
c | struct
{
double a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t;
} foo, bar;
foobar ()
{
foo = bar;
xxx (&foo, &bar);
}
main ()
{
bar.g = 1.0;
foo.g = 2.0;
foobar ();
printf ("%lf\n", foo.g);
}
| 12.69 | 16 | (translation_unit) "struct\n{\n double a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t;\n} foo, bar;\n\nfoobar ()\n{\n foo = bar;\n xxx (&foo, &bar);\n}\n\nmain ()\n{\n bar.g = 1.0;\n foo.g = 2.0;\n foobar ();\n printf ("%lf\n", foo.g);\n}\n"
(declaration) "struct\n{\n double a, b, c, d, e, f, g, h... | 135 | 0 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.69, "nodes": 67, "errors": 0, "source_hash": "efc5328efaddb301e4110e416738b9f4096bf22338811af84cb51211485a9591", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct\n{\... | 2,120 |
c | $NetBSD: patch-qvrec.c,v 1.1 2012/11/01 19:50:59 joerg Exp $
--- qvrec.c.orig 2012-10-30 22:18:26.000000000 +0000
+++ qvrec.c
@@ -617,12 +617,12 @@ main(argc, argv)
if(QVremain(1) < 0){
fprintf(stderr, "picture full.\n");
errflg ++;
- return;
+ return 1;
}
if(QVremain(0) < 0){
fprintf(stderr, ... | 22.03 | 33 | (translation_unit) "$NetBSD: patch-qvrec.c,v 1.1 2012/11/01 19:50:59 joerg Exp $\n\n--- qvrec.c.orig 2012-10-30 22:18:26.000000000 +0000\n+++ qvrec.c\n@@ -617,12 +617,12 @@ main(argc, argv)\n if(QVremain(1) < 0){\n fprintf(stderr, "picture full.\n");\n errflg ++;\n- return;\n+ return 1;\n }\n if(QVremai... | 331 | 16 | {"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.03, "nodes": 195, "errors": 0, "source_hash": "81a7f009d9b790b6c0d85df5b75407650170894cb8d3026c0f4fab8e4445425f", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$N... | 2,121 |
c | #pragma once
#include "sop/Node.h"
namespace sop
{
namespace node
{
class Null : public Node
{
public:
Null()
{
m_imports = {
{{ NodeVarType::Any, "in" }}
};
m_exports = {
{{ NodeVarType::Any, "out" }},
};
}
virtual void Execute(const ur::Devic... | 15.87 | 23 | (translation_unit) "#pragma once\n\n#include "sop/Node.h"\n\nnamespace sop\n{\nnamespace node\n{\n\nclass Null : public Node\n{\npublic:\n Null()\n {\n m_imports = {\n {{ NodeVarType::Any, "in" }}\n };\n m_exports = {\n {{ NodeVarType::Any, "out" }},\n };\n }\n... | 138 | 11 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.87, "nodes": 57, "errors": 0, "source_hash": "610b661f5a8d681449dc04f0ff0f604f5c2c0de4c81a068547f307f7ddb8c72c", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 2,122 |
c | /**
* @file protocol_client_sm.h
*
* @copyright
* Please read the Exosite Copyright: @ref copyright
*
* @if Authors
* @authors
* - <NAME> (<EMAIL>)
* - <NAME> (<EMAIL>)
* @endif
*
* @brief This is the interface to the protocol client state machine
*
* @defgroup protocol_client_sm Protocol Client State... | 34.34 | 123 | (translation_unit) "/**\n * @file protocol_client_sm.h\n *\n * @copyright\n * Please read the Exosite Copyright: @ref copyright\n *\n * @if Authors\n * @authors\n * - <NAME> (<EMAIL>)\n * - <NAME> (<EMAIL>)\n * @endif\n *\n * @brief This is the interface to the protocol client state machine\n *\n * @defgroup protoc... | 310 | 0 | {"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 34.34, "nodes": 228, "errors": 0, "source_hash": "4fa810f1901040dd102f7ffa6d649e82482fa305802ae0e6d7bd5f2fe0d14bab", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 2,123 |
c | /* fdjac1.f -- translated by f2c (version 20020621).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include <f2c.h>
/* Table of constant values */
static integer c__1 = 1;
/* Subroutine */ int fdjac1_(S_fp fcn, integer *n, doublereal *x, doublereal *
fvec, doublerea... | 33.92 | 170 | (translation_unit) "/* fdjac1.f -- translated by f2c (version 20020621).\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/* Table of constant values */\n\nstatic integer c__1 = 1;\n\n/* Subroutine */ int fdjac1_(S_fp fcn, integer *n, doublereal *x... | 1,007 | 0 | {"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 33.92, "nodes": 611, "errors": 0, "source_hash": "42bac878b33cc36e8fe6f4966ed4f6b2358c73457eb8788b83d8b6073170e5c6", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 2,124 |
c | //
// MarklightStyleApplier.h
// MarklightObjC
//
// Created by vvveiii on 2018/6/26.
// Copyright © 2018年 vvveiii. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
@protocol MarklightStyleApplier <NSObject>
- (void)addAttribute:(NSAttributedStringKey)name value:(id... | 39.13 | 15 | (translation_unit) "//\n// MarklightStyleApplier.h\n// MarklightObjC\n//\n// Created by vvveiii on 2018/6/26.\n// Copyright © 2018年 vvveiii. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreGraphics/CoreGraphics.h>\n\n@protocol MarklightStyleApplier <NSObject>\n\n- (void)addAttribute:(NSA... | 142 | 12 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 39.13, "nodes": 86, "errors": 0, "source_hash": "fc173283d5dbd702bc91a71ecb4a3448223b39bea36493290c17b01c3dba81a4", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 2,125 |
c | /**
* @file
* @brief Defines the return codes for the CryptoSoC functions
* @copyright Copyright (c) 2018 Silex Insight. All Rights reserved
*/
#ifndef SX_ERRORS_H
#define SX_ERRORS_H
#include <stdbool.h>
// TODO Push all of this in a enumeration
/** @brief Operation (whatever the kind of operation) terminated... | 30.47 | 58 | (translation_unit) "/**\n * @file\n * @brief Defines the return codes for the CryptoSoC functions\n * @copyright Copyright (c) 2018 Silex Insight. All Rights reserved\n */\n\n\n#ifndef SX_ERRORS_H\n#define SX_ERRORS_H\n\n#include <stdbool.h>\n\n// TODO Push all of this in a enumeration\n\n/** @brief Operation (whatever... | 58 | 0 | {"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 30.47, "nodes": 46, "errors": 0, "source_hash": "a13f9f7cc2ae74ff4c3f792ed3e7d6c51efe775a66ae79cf4110f554c8345f88", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,126 |
c | /*
* Name: mdelete.c
*
* Purpose: Delete scan function.
*
* Author: <NAME>
*
*--------------------------------------------------------------------------
*
* Copyright 1999, 2001, 2003, 2005-2006, 2018 Illinois Institute of Technology
*
* See the file "LICENSE" for information on usage and redistribution
... | 24.75 | 80 | (translation_unit) "/*\n * Name: mdelete.c\n *\n * Purpose: Delete scan function.\n *\n * Author: <NAME>\n *\n *--------------------------------------------------------------------------\n *\n * Copyright 1999, 2001, 2003, 2005-2006, 2018 Illinois Institute of Technology\n *\n * See the file "LICENSE" for informati... | 506 | 0 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 24.75, "nodes": 260, "errors": 0, "source_hash": "2e8620a0eda23bacbace35ab9ae0f8ab9e7463580b73527a0b318d34ee56a9a1", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,127 |
c | //
// SRWebSocket+DDLoganNetwork.h
// Unity-iPhone
//
// Created by DDLi on 2019/8/7.
//
#import "SRWebSocket.h"
NS_ASSUME_NONNULL_BEGIN
@interface SRWebSocket (DDLoganNetwork)
@end
NS_ASSUME_NONNULL_END
| 17.82 | 11 | (translation_unit) "//\n// SRWebSocket+DDLoganNetwork.h\n// Unity-iPhone\n//\n// Created by DDLi on 2019/8/7.\n//\n\n#import "SRWebSocket.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SRWebSocket (DDLoganNetwork)\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
(comment) "//"
(comment) "// SRWebSocket+DDLoganNetwork.h"
(com... | 25 | 5 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.82, "nodes": 15, "errors": 0, "source_hash": "c77fb8aca9ed5acc2415ed7aa58adf8302020b348d8160bf311116db7b8fc4e4", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"... | 2,128 |
c | /*
Edit filename and filetype related choices
Copyright (C) 2006 <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, cop... | 33.54 | 80 | (translation_unit) "/*\n Edit filename and filetype related choices\n\n\n Copyright (C) 2006 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n"Software"), to deal in the Software without restriction, including\nwithout limi... | 360 | 16 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 33.54, "nodes": 208, "errors": 0, "source_hash": "e1d6e0debd469a64bed7708da823255c0766300eee7bc61cb333f4552334ee5f", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,129 |
c | #include <stdio.h>
int main(int argc, char *argv[]) {
printf("foo %f %f %f %f\n", 1.23, 12312.1, 3.1, 13.1);
return 0;
}
| 24 | 5 | (translation_unit) "#include <stdio.h>\n\nint main(int argc, char *argv[]) {\n printf("foo %f %f %f %f\n", 1.23, 12312.1, 3.1, 13.1);\n return 0;\n}\n"
(preproc_include) "#include <stdio.h>\n"
(#include) "#include"
(system_lib_string) "<stdio.h>"
(function_definition) "int main(int argc, char *argv[]) {\n... | 50 | 0 | {"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 24.0, "nodes": 28, "errors": 0, "source_hash": "6a6759ebc4ea3ebd4b97397643e61a642d987f0d1ea4a3d75825e6f56a679046", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include... | 2,130 |
c | #include<stdio.h>
#define n 10
void main()
{
int a[n][n]={0};
int i,j;
for(i=0;i<n;i++)
{
a[i][0]=1;
a[i][i]=1;
}
for(i=2;i<n;i++)
{
for(j=1;j<=i-1;j++)
{
a[i][j]=a[i-1][j-1]+a[i-1][j];
}
}
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("%4d",a[i][j]);
}
printf("\n");
}
printf("\n... | 10.64 | 28 | (translation_unit) "#include<stdio.h>\n#define n 10\nvoid main()\n{\n int a[n][n]={0};\n int i,j;\n for(i=0;i<n;i++)\n {\n a[i][0]=1;\n a[i][i]=1;\n }\n for(i=2;i<n;i++)\n {\n for(j=1;j<=i-1;j++)\n { \n a[i][j]=a[i-1][j-1]+a[i-1][j]; \n }\n }\n for(i=0;i<n;i++)\n {\n for(j=0;j<=i;j++)\n {\n printf("%4d",a[... | 258 | 0 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 10.64, "nodes": 153, "errors": 0, "source_hash": "5a8d75f56fddf4cbb324d009b9089d27ab82027e1a591368230ddc2687d275b9", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,131 |
c | #ifndef ALGINE_INDEXBUFFER_H
#define ALGINE_INDEXBUFFER_H
#include <algine/core/buffers/Buffer.h>
#include <algine/templates.h>
namespace algine {
class IndexBuffer: public Buffer {
public:
IndexBuffer();
};
}
#endif //ALGINE_INDEXBUFFER_H
| 21.18 | 11 | (translation_unit) "#ifndef ALGINE_INDEXBUFFER_H\n#define ALGINE_INDEXBUFFER_H\n\n#include <algine/core/buffers/Buffer.h>\n#include <algine/templates.h>\n\nnamespace algine {\nclass IndexBuffer: public Buffer {\npublic:\n IndexBuffer();\n};\n}\n\n#endif //ALGINE_INDEXBUFFER_H\n"
(preproc_ifdef) "#ifndef ALGINE_IND... | 43 | 1 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.18, "nodes": 24, "errors": 0, "source_hash": "cd2553b2b2ac98aaf1113565b71983a4de891ec57fcd683e0a7e061c21219d25", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,132 |
c | #ifndef FT_EE_UA_READ_OP_H_
#define FT_EE_UA_READ_OP_H_
#include <napi.h>
#include <ftd2xx.h>
#include "ft_base_op.h"
class FtEeUaReadOp : public FtBaseOp
{
public:
static Napi::Object Init(Napi::Env env, Napi::Object exports);
static Napi::Object InvokeSync(const Napi::CallbackInfo &info);
static Napi::P... | 36.22 | 23 | (translation_unit) "#ifndef FT_EE_UA_READ_OP_H_\n#define FT_EE_UA_READ_OP_H_\n\n#include <napi.h>\n#include <ftd2xx.h>\n#include "ft_base_op.h"\n\nclass FtEeUaReadOp : public FtBaseOp\n{\npublic:\n static Napi::Object Init(Napi::Env env, Napi::Object exports);\n static Napi::Object InvokeSync(const Napi::Callback... | 249 | 16 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.22, "nodes": 153, "errors": 0, "source_hash": "c076387be67060f7a05841972873e50d6d17d07d600f530ce42fc49d590d417d", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,133 |
c | #include <stdio.h>
int main() {
int n;
printf("enter no of stars\n");
scanf("%d",&n);
int i ,j;
for(i=0;i<n;i++)
{
if(i==0||i==n-1)
{
for(j=0;j<n;j++)
printf("* ");
}
else
{
for(j=0;j<=n;j++)
{
... | 18.37 | 30 | (translation_unit) "#include <stdio.h>\n\nint main() {\n int n;\n printf("enter no of stars\n");\n scanf("%d",&n);\n int i ,j;\n for(i=0;i<n;i++)\n {\n if(i==0||i==n-1)\n {\n for(j=0;j<n;j++)\n printf("* ");\n }\n else\n {\n for(j=0;j<=... | 227 | 0 | {"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 18.37, "nodes": 124, "errors": 0, "source_hash": "1731897912e8bf39a4a5f1bb52759a88408fa4f9a334d04037756bc1e03232f3", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 2,134 |
c | //
// Created by daquexian on 05/12/19.
//
#ifndef DNNLIBRARY_ONNXREADER_H
#define DNNLIBRARY_ONNXREADER_H
#include <memory>
#include <string>
#include <common/daq_generated.h>
#include <dnnlibrary/DaqReader.h>
#include <dnnlibrary/ModelBuilder.h>
#include <flatbuffers/flatbuffers.h>
#include <onnx/onnx_pb.h>
names... | 29.64 | 22 | (translation_unit) "//\n// Created by daquexian on 05/12/19.\n//\n\n#ifndef DNNLIBRARY_ONNXREADER_H\n#define DNNLIBRARY_ONNXREADER_H\n\n#include <memory>\n#include <string>\n\n#include <common/daq_generated.h>\n#include <dnnlibrary/DaqReader.h>\n#include <dnnlibrary/ModelBuilder.h>\n#include <flatbuffers/flatbuffers.h>... | 126 | 5 | {"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.64, "nodes": 76, "errors": 0, "source_hash": "34e0f5cc8a4a20b312be62aab80e0db989e6442bd69aa7213fa07a4225cdbb82", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,135 |
c | //
// ZYDownloadFileManager.h
// ZYDownloader
//
// Created by zy on 15/12/23.
// Copyright © 2015年 zybug. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZYDownloadFileManager : NSObject
+ (ZYDownloadFileManager *)fileManager;
#pragma mark - 保存文件
- (void)zy_saveLocalPath:(NSString *)local... | 24.07 | 14 | (translation_unit) "//\n// ZYDownloadFileManager.h\n// ZYDownloader\n//\n// Created by zy on 15/12/23.\n// Copyright © 2015年 zybug. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ZYDownloadFileManager : NSObject\n\n+ (ZYDownloadFileManager *)fileManager;\n\n#pragma mark - 保存文件\n\n- (voi... | 63 | 8 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.07, "nodes": 41, "errors": 0, "source_hash": "8f3e0ef0bdc50311e32e95c68f1fbda44373a7fab447650992f503812f39d44b", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 2,136 |
c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
void error_handling(char *message);
int main(int argc, char *argv[])
{
int i;
struct hostent *host;
struct sockaddr_in addr;
if(argc!=2){
printf("usage : %s <IP?\n", argv[0]);
exi... | 22.48 | 46 | (translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n\nvoid error_handling(char *message);\n\nint main(int argc, char *argv[])\n{\n int i;\n struct hostent *host;\n struct sockaddr_in addr;\n if(argc!=2){\n printf(... | 419 | 0 | {"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 22.48, "nodes": 242, "errors": 0, "source_hash": "202c693da88369f7da62cea4c9925884cb4ca92a5394100e61145b7718f0e01a", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,137 |
c | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
*/
@interface NSControlStripTouchBar : NSTouchBar
- (void)_persistWithItemIdentifiers:(id)arg1 toDomain:(id)arg2;
- (void)_resetCustomization;
@end
| 35 | 7 | (translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit\n */\n\n@interface NSControlStripTouchBar : NSTouchBar\n\n- (void)_persistWithItemIdentifiers:(id)arg1 toDomain:(id)arg2;\n- (void)_resetCustomization;\n\n@end\n"
(comment) "/* Generated by Runt... | 48 | 5 | {"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 35.0, "nodes": 28, "errors": 0, "source_hash": "314d9c376e806d785098294ef124d9c97583cf985f76705438f1e7d6b234f0fc", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface NSContr... | 2,138 |
c | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | 36.08 | 174 | (translation_unit) "//*********************************************************\n//\n// Copyright (c) Microsoft. All rights reserved.\n// This code is licensed under the MIT License (MIT).\n// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF\n// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY\n// IMPLIED WARRANTIES... | 993 | 20 | {"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 36.08, "nodes": 659, "errors": 0, "source_hash": "8bbd67597cbe0a8294fa9ce7d8970e8aed12e30f51c0f5621ccee1cd211a3bcb", "categorized_nodes": 448}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm... | 2,139 |
c | #ifndef Data_h
#define Data_h
#include <ArduinoJson.h>
class Data
{
public:
Data();
void printconfig();
void save_config(JsonObject& root);
void mountbulbdata();
String get_config();
private:
};
#endif
| 14.13 | 15 | (translation_unit) "#ifndef Data_h\n#define Data_h\n\n#include <ArduinoJson.h>\n\n\nclass Data\n{\n public:\n Data();\n void printconfig();\n void save_config(JsonObject& root);\n void mountbulbdata();\n String get_config();\n private:\n};\n\n#endif\n\n"
(preproc_ifdef) "#ifndef Data_h\n#define Data_... | 71 | 1 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 14.13, "nodes": 40, "errors": 0, "source_hash": "7cdd5ed2753499884d0675d5d7ad1ac872ea017354e5182ef4a7a973e581155b", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,140 |
c | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class QQAIOTinyVideoCellPlayView;
@protocol TinyVideoCellPlayViewDelegate <NSObject>
- (_Bool)tinyVideoCellPlayViewShouldPlay:(QQAIOTinyVideoCellPlayView *)arg1;
... | 41.12 | 16 | (translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class QQAIOTinyVideoCellPlayView;\n\n@protocol TinyVideoCellPlayViewDelegate <NSObject>\n- (_Bool)tinyVideoCellPlayViewShouldPlay:(QQAIO... | 128 | 15 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 41.12, "nodes": 78, "errors": 0, "source_hash": "3f4760d26ddf22d2d824b3e8ddaf55ac13546c1bb29ae50f8d3aa15947a6c73a", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \... | 2,141 |
c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__int64_t_calloc_84.h
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-84.tmpl.h
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: calloc Allocate data using calloc()
* GoodSource: Allocate data on the ... | 22.06 | 63 | (translation_unit) "/* TEMPLATE GENERATED TESTCASE FILE
\nFilename: CWE401_Memory_Leak__int64_t_calloc_84.h
\nLabel Definition File: CWE401_Memory_Leak.c.label.xml
\nTemplate File: sources-sinks-84.tmpl.h
\n*/
\n/*
\n * @description
\n * CWE: 401 Memory Leak
\n * BadSource: calloc Allocate data using calloc()
\n * Good... | 148 | 0 | {"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 22.06, "nodes": 80, "errors": 0, "source_hash": "149d8ff806179a6cdfc43c6ec15cf49b9a2658755f87db1b6f43d6d152da7a5e", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 2,142 |
c | /*
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program... | 33.72 | 88 | (translation_unit) "/*\n * Copyright (c) 2016 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of the License, or\n * (at your option) any later ve... | 588 | 0 | {"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 33.72, "nodes": 421, "errors": 0, "source_hash": "4d139807f940ffdcfdae649907c67816f10da05eb875c7c6db9e083ef5e37fb8", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,143 |
c | /**
* @file
* @copyright defined in owchart/LICENSE
*/
#ifndef __BANDEDGRID_H__
#define __BANDEDGRID_H__
#pragma once
#include "..\\..\\stdafx.h"
#include "GridEnums.h"
#include "BandedGridColumn.h"
#include "GridBand.h"
#include "Grid.h"
namespace OwLib
{
class BandedGridColumn;
class GridBand;
class Bande... | 22.17 | 41 | (translation_unit) "/**\n* @file\n* @copyright defined in owchart/LICENSE\n*/\n\n#ifndef __BANDEDGRID_H__\n#define __BANDEDGRID_H__\n#pragma once\n\n#include "..\\..\\stdafx.h"\n#include "GridEnums.h"\n#include "BandedGridColumn.h"\n#include "GridBand.h"\n#include "Grid.h"\n\nnamespace OwLib\n{\n class BandedGridCol... | 273 | 12 | {"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 22.17, "nodes": 180, "errors": 0, "source_hash": "dbbf886c234933ff6d847628d79cbf6cafd75b20f6866e03ea62b38e24310179", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,144 |
c | #ifndef dplyr_dplyr_main_H
#define dplyr_dplyr_main_H
#include <Rcpp.h>
#include <dplyr/workarounds.h>
#include <dplyr/workarounds/static_assert.h>
#include <dplyr/workarounds/xlen.h>
#include <solaris/solaris.h>
#include <dplyr/config.h>
#include <plogr.h>
using namespace Rcpp;
#endif // #ifndef dplyr_dplyr_main_H... | 27.82 | 11 | (translation_unit) "#ifndef dplyr_dplyr_main_H\n#define dplyr_dplyr_main_H\n\n#include <Rcpp.h>\n#include <dplyr/workarounds.h>\n#include <dplyr/workarounds/static_assert.h>\n#include <dplyr/workarounds/xlen.h>\n#include <solaris/solaris.h>\n#include <dplyr/config.h>\n\n#include <plogr.h>\n\nusing namespace Rcpp;\n\n#e... | 36 | 1 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.82, "nodes": 33, "errors": 0, "source_hash": "11b844250e38397be537d369953df8cc5c70caa19c5c0baaeaa24d6833a3bbe5", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,145 |
c | /*
BEGIN_TEST_DATA
f: main
ret: int
args: int
input: 12
output: 12
error: "Line 18: Can't use non-constant or non-wrapped index"
filename: "non-wrapped span access"
END_TEST_DATA
*/
span<int, 5> d;
int main(int input)
{
d[3] = 5;
d[input] = 2;
}
| 14.59 | 17 | (translation_unit) "/*\nBEGIN_TEST_DATA\n f: main\n ret: int\n args: int\n input: 12\n output: 12\n error: "Line 18: Can't use non-constant or non-wrapped index"\n filename: "non-wrapped span access"\nEND_TEST_DATA\n*/\n\nspan<int, 5> d;\n\nint main(int input)\n{\n d[3] = 5;\n d[input] = 2;\n}\n\n"
(comment... | 49 | 1 | {"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.59, "nodes": 31, "errors": 0, "source_hash": "1477368013f47154d935d3dcee12ea63d3f345f837b8ecb2bd1b3c978921551a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "update_expression", "text": "span... | 2,146 |
c | #ifndef __SMTP_H
#define __SMTP_H
#include <stdint.h>
#include <rtconfig.h>
//域名类型
#define ADDRESS_TYPE_DOMAIN 0
//IP地址类型
#define ADDRESS_TYPE_IP 1
//smtp服务初始化
void smtp_client_init(void);
//设置smtp服务器地址和端口
int smtp_set_server_addr(const char *server_addr, uint8_t addr_type, const char *port);
//设置smtp服务器的用户名密码
int sm... | 24.97 | 29 | (translation_unit) "#ifndef __SMTP_H\n#define __SMTP_H\n#include <stdint.h>\n#include <rtconfig.h>\n\n//域名类型\n#define ADDRESS_TYPE_DOMAIN 0\n//IP地址类型\n#define ADDRESS_TYPE_IP 1\n\n//smtp服务初始化\nvoid smtp_client_init(void);\n//设置smtp服务器地址和端口\nint smtp_set_server_addr(const char *server_addr, uint8_t addr_type, const char... | 182 | 0 | {"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.97, "nodes": 133, "errors": 0, "source_hash": "2ed1c1e31ff18dbda7790f27051010851ebc5b255ff8a5b6442af5498eb79036", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 2,147 |
c | #ifndef AD_FILE_H
#define AD_FILE_H
#include "position.h"
/*
* A chunk is a square of text.
* This is how we manage everything here.
* They are used to load text from a file,
* to extract a chunk from another...
*/
typedef struct chunk chunk;
struct chunk {
char **chunk;
int lines;
int cols;
int null;
}... | 28.68 | 31 | (translation_unit) "#ifndef AD_FILE_H\n#define AD_FILE_H\n\n#include "position.h"\n\n/*\n * A chunk is a square of text.\n * This is how we manage everything here.\n * They are used to load text from a file,\n * to extract a chunk from another...\n */\n\ntypedef struct chunk chunk;\nstruct chunk {\n char **chunk;\n i... | 279 | 0 | {"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.68, "nodes": 211, "errors": 0, "source_hash": "fde4c9344e2aad8dfaa8eeaa10c786b08c1400540407eba40569c5635838ed55", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,148 |
c | #include <stdio.h>
int getMonthDay(int month) {
int day=0;
switch (month) {
case 2:day=25;break;
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
day = 31;
break;
case 4:
case 6:
case 9:
case 11:
day = 30;
break;
defau... | 17.38 | 45 | (translation_unit) "#include <stdio.h>\n\nint getMonthDay(int month) {\n int day=0;\n switch (month) {\n case 2:day=25;break;\n case 1:\n case 3:\n case 5:\n case 7:\n case 8:\n case 10:\n case 12:\n day = 31;\n break;\n case 4:\n case 6:\n case 9:\n case 11:\n ... | 319 | 0 | {"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 17.38, "nodes": 198, "errors": 0, "source_hash": "57bf553e808d00b9afdb26e7f847d48ab767eabe25eae0df5cb38ce8f27a7bd1", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,149 |
c | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import "AceObject-Protocol.h"
@protocol SAAceSerializable <AceObject>
@end
| 29.25 | 8 | (translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "AceObject-Protocol.h"\n\n@protocol SAAceSerializable <AceObject>\n@end\n\n"
(comment) "//"
(comment) "// Gener... | 18 | 3 | {"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.25, "nodes": 11, "errors": 0, "source_hash": "3bac72e5bbea28420636f06b387a7b898d47e19cf1228c4e399fe5bc8e1fd37a", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"A... | 2,150 |
c | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_
#define COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_
#include <stdint.h>
#include "components/r... | 48.57 | 14 | (translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_\n#define COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_\n\n#include <stdint... | 50 | 0 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 48.57, "nodes": 30, "errors": 0, "source_hash": "392fcd3e8eef011b0fe3ded50d47861c4174348a1ab42212ac15f2dd5b8f3655", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,151 |
c | #ifndef vcl_borland55_complex_h_
#define vcl_borland55_complex_h_
// This header's vcl_abs must be consistent with vcl_cmath.h's version.
// Standard version mostly works.
#include "../iso/vcl_complex.h"
// Replace abs from standard version.
#undef vcl_abs
#define vcl_abs vcl_abs
inline long double vcl_abs(const vc... | 41.92 | 13 | (translation_unit) "#ifndef vcl_borland55_complex_h_\n#define vcl_borland55_complex_h_\n\n// This header's vcl_abs must be consistent with vcl_cmath.h's version.\n\n// Standard version mostly works.\n#include "../iso/vcl_complex.h"\n\n// Replace abs from standard version.\n#undef vcl_abs\n#define vcl_abs vcl_abs\n\ninl... | 141 | 7 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.92, "nodes": 85, "errors": 0, "source_hash": "d2f56670cc3b41ff8cdbe11a53117957eb8e7ee10646230f70f10a71c9e56c61", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,152 |
c | //
// NavigationViewController.h
// Zoncon Ecommerce Morningmist
//
// Created by Hrushikesh on 15/04/16.
// Copyright © 2016 MeGo Technologies. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NavigationViewController : UINavigationController <UITabBarControllerDelegate, UITabBarDelegate, UIAlertViewD... | 34.69 | 13 | (translation_unit) "//\n// NavigationViewController.h\n// Zoncon Ecommerce Morningmist\n//\n// Created by Hrushikesh on 15/04/16.\n// Copyright © 2016 MeGo Technologies. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NavigationViewController : UINavigationController <UITabBarControllerDelegate, ... | 77 | 10 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.69, "nodes": 49, "errors": 0, "source_hash": "ac8b145e9c95a5bf05fe5b2169805e12b996446d46764af9da9f5cba5b98ec3d", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U... | 2,153 |
c | //
// EXTTuple.h
// extobjc
//
// Created by <NAME> on 18.06.12.
// Copyright (C) 2012 <NAME>.
// Released under the MIT license.
//
#import "metamacros.h"
/**
* Returns an \c EXTTupleN structure holding the given objects, where \c N is
* the number of arguments given.
*
* Tuples cannot contain primitives, b... | 36.91 | 56 | (translation_unit) "//\n// EXTTuple.h\n// extobjc\n//\n// Created by <NAME> on 18.06.12.\n// Copyright (C) 2012 <NAME>.\n// Released under the MIT license.\n//\n\n#import "metamacros.h"\n\n/**\n * Returns an \c EXTTupleN structure holding the given objects, where \c N is\n * the number of arguments given.\n *\n * ... | 131 | 1 | {"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 36.91, "nodes": 71, "errors": 0, "source_hash": "deae70f00ebea0dcb27b3810eb64ccaa50598d1581eeb31c0464770a995baf06", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \... | 2,154 |
c | //
// YFCycleViewFlowLayout.h
// YFCycleView
//
// Created by tsaievan on 25/11/2018.
// Copyright © 2018 tsaievan. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface YFCycleViewFlowLayout : UICollectionViewFlowLayout
@end
NS_ASSUME_NONNULL_END
| 22.42 | 12 | (translation_unit) "//\n// YFCycleViewFlowLayout.h\n// YFCycleView\n//\n// Created by tsaievan on 25/11/2018.\n// Copyright © 2018 tsaievan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YFCycleViewFlowLayout : UICollectionViewFlowLayout\n\n@end\n\nNS_ASSUME_NONNULL_EN... | 27 | 4 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.42, "nodes": 14, "errors": 0, "source_hash": "49d2ff1e7f2a595b8df58b5c384e3647a80ac8187055ef2373518b1204218108", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI... | 2,155 |
c |
#ifndef __WORDLIST_H__
#define __WORDLIST_H__
// This file is autogenerated by running `ruby tools/generator.rb`
extern const unsigned char data[];
extern const unsigned short wordlen[2][16];
extern const unsigned int wordpos[2][16];
extern const unsigned char doubleAbsorbOffset[];
extern const unsigned char double... | 35.17 | 12 | (translation_unit) "#ifndef __WORDLIST_H__\n#define __WORDLIST_H__\n\n// This file is autogenerated by running `ruby tools/generator.rb`\n\nextern const unsigned char data[];\nextern const unsigned short wordlen[2][16];\nextern const unsigned int wordpos[2][16];\n\nextern const unsigned char doubleAbsorbOffset[];\nexte... | 115 | 0 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.17, "nodes": 75, "errors": 0, "source_hash": "e81dbabe28c4f071d1de3d2d7bd441979966f81fd8f9640637ee58f05446af04", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,156 |
c | //
// JDBIMView.h
// Pods
//
// Created by lidaojian on 16/5/11.
//
//
#import <UIKit/UIKit.h>
@interface JDBIMView : UIView
@end
| 12.3 | 10 | (translation_unit) "//\n// JDBIMView.h\n// Pods\n//\n// Created by lidaojian on 16/5/11.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface JDBIMView : UIView\n\n@end\n"
(comment) "//"
(comment) "// JDBIMView.h"
(comment) "// Pods"
(comment) "//"
(comment) "// Created by lidaojian on 16/5/11."
(comment)... | 19 | 3 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.3, "nodes": 9, "errors": 0, "source_hash": "36cf85a4acd46ba22da4461d97adcba84f4b46f5dd13631e302623a06469eb42", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK... | 2,157 |
c | #pragma once
#include <ozo/detail/do_nothing.h>
#include <ozo/impl/async_request.h>
#include <ozo/time_traits.h>
namespace ozo {
namespace impl {
template <typename P, typename Q, typename Handler>
inline void async_execute(P&& provider, Q&& query, const time_traits::duration& timeout, Handler&& handler) {
stati... | 34.33 | 21 | (translation_unit) "#pragma once\n\n#include <ozo/detail/do_nothing.h>\n#include <ozo/impl/async_request.h>\n#include <ozo/time_traits.h>\n\nnamespace ozo {\nnamespace impl {\n\ntemplate <typename P, typename Q, typename Handler>\ninline void async_execute(P&& provider, Q&& query, const time_traits::duration& timeout, ... | 195 | 14 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.33, "nodes": 126, "errors": 0, "source_hash": "65a4d22dc0591967a5ffecfcf2139763157c328dc65cf2f544832be49d025389", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 2,158 |
c | #ifndef SCENE_7_TRIGGERS_H
#define SCENE_7_TRIGGERS_H
// Scene: Mine
// Triggers
#include "gbs_types.h"
extern const void __bank_scene_8_triggers;
extern const struct trigger_t scene_8_triggers[];
#endif
| 24.5 | 8 | (translation_unit) "#ifndef SCENE_7_TRIGGERS_H\n#define SCENE_7_TRIGGERS_H\n\n// Scene: Mine\n// Triggers\n\n#include "gbs_types.h"\n\nextern const void __bank_scene_8_triggers;\nextern const struct trigger_t scene_8_triggers[];\n\n#endif\n"
(preproc_ifdef) "#ifndef SCENE_7_TRIGGERS_H\n#define SCENE_7_TRIGGERS_H\n\n/... | 37 | 0 | {"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.5, "nodes": 23, "errors": 0, "source_hash": "65bc9b2ace421652604352043aaca0605e27a3b06f4944095fafd6872d76720a", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SC... | 2,159 |
c | #include "runtime_ice.c"
int32 A = 888;
int32 B = 5;
int32 C = 4;
void bootentry()
{
int32 x = B * C;
int32 y = A;
int32 z = B;
_leds(A);
_leds(B);
_leds(x);
_leds(0xff);
_leds(x);
_leds(0xff);
_leds(z * 4);
_leds(0xff);
f... | 17.81 | 26 | (translation_unit) "#include "runtime_ice.c"\n\nint32 A = 888;\nint32 B = 5;\nint32 C = 4;\n\nvoid bootentry()\n{\n int32 x = B * C;\n int32 y = A;\n int32 z = B;\n _leds(A);\n _leds(B);\n _leds(x);\n _leds(0xff);\n _leds(x);\n _leds(0xff);\n _leds(z... | 192 | 0 | {"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.81, "nodes": 120, "errors": 0, "source_hash": "4de3530aa11471e9de99c5967d437f391c6544e49ac9e6d2bdf1b4e82d02f812", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 2,160 |
c | inherit "obj/monster";
reset(arg) {
string chat_str;
::reset(arg);
if(arg) { return; }
set_level(8 + random(2));
set_name("tellu");
set_alias("dog");
set_animal(1);
set_short("Tellu the dog");
set_long("Tellu is very small and cute. It is white coloured and quite rumpled. The dog\n"+
"is h... | 31.19 | 21 | (translation_unit) "inherit "obj/monster";\n\nreset(arg) {\n string chat_str;\n ::reset(arg);\n if(arg) { return; }\n set_level(8 + random(2));\n set_name("tellu");\n set_alias("dog");\n set_animal(1);\n set_short("Tellu the dog");\n set_long("Tellu is very small and cute. It is white coloured and quite rumple... | 207 | 1 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.19, "nodes": 98, "errors": 0, "source_hash": "957cfd7aa1c1629e231975ea76caee6892e3a6cbe22c662686b63728539e8f60", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in... | 2,161 |
c |
void say_hello();
| 17 | 1 | (translation_unit) "void say_hello();\n\n"
(declaration) "void say_hello();"
(primitive_type) "void"
(function_declarator) "say_hello()"
(identifier) "say_hello"
(parameter_list) "()"
(() "("
()) ")"
(;) ";" | 9 | 0 | {"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 17.0, "nodes": 5, "errors": 0, "source_hash": "7e3798678544192d2e7c9f5ecdfcb88d745a32c85eeb144118d91bbdf738aefc", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void say_hello... | 2,162 |
c | #pragma once
#include <QObject>
#include <QString>
#include <QSet>
#include "Subject.h"
#include "Timeslot.h"
class Teacher : public QObject
{
Q_OBJECT
public:
Teacher(QString const &name, Subject const* const subject, QSet<Timeslot> const &availableTimeslots);
QString getName() const;
Subject c... | 23.11 | 28 | (translation_unit) "#pragma once
\n
\n#include <QObject>
\n#include <QString>
\n#include <QSet>
\n#include "Subject.h"
\n#include "Timeslot.h"
\n
\nclass Teacher : public QObject
\n{
\n Q_OBJECT
\n public:
\n Teacher(QString const &name, Subject const* const subject, QSet<Timeslot> const &availableTimeslots);
\n QStr... | 194 | 12 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.11, "nodes": 116, "errors": 0, "source_hash": "2040997afaca2a4d477cd00e014afc2b96bebc39a3a779579bbc48059faefe1b", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 2,163 |
c | #ifndef JSMN_WT_H
#define JSMN_WT_H
#include <stdbool.h>
#include <stdint.h>
// clang-format off
#if defined _WIN32
# include <assert.h>
# include <stdarg.h>
# include <stdbool.h>
# include <stdint.h>
# include <stdio.h>
# include <string.h>
# define __jsmn_malloc_fn malloc
# define __jsmn_free_fn free
# def... | 25.5 | 131 | (translation_unit) "#ifndef JSMN_WT_H\n#define JSMN_WT_H\n\n#include <stdbool.h>\n#include <stdint.h>\n\n// clang-format off\n#if defined _WIN32\n# include <assert.h>\n# include <stdarg.h>\n# include <stdbool.h>\n# include <stdint.h>\n# include <stdio.h>\n# include <string.h>\n# define __jsmn_malloc_fn malloc\n#... | 581 | 7 | {"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 25.5, "nodes": 452, "errors": 0, "source_hash": "eabdee4962cf8cd3aa90037c7418e2ded0b9411890e423e6e14e0c44cc69204c", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,164 |
c | //
// TestClassD.h
// InjectTests
//
// Created by Stanley on 2019/9/10.
// Copyright © 2019 AIRInject contributers. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TestProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@interface TestClassD : NSObject<protocolD>
@property (nonatomic, strong) id<protocolE> ... | 24.29 | 14 | (translation_unit) "//\n// TestClassD.h\n// InjectTests\n//\n// Created by Stanley on 2019/9/10.\n// Copyright © 2019 AIRInject contributers. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "TestProtocol.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TestClassD : NSObject<protocolD>\n\n@property... | 54 | 6 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.29, "nodes": 36, "errors": 0, "source_hash": "f47cac2676c7e95020ebe71f0e7d81547f707ad7d0ace29ea7c4c088c9f27312", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F... | 2,165 |
c | /* -*- C++ -*- */
/*===--------------------------- complex.h --------------------------------===*/
/* */
/* The LLVM Compiler Infrastructure */
/* ... | 23.9 | 60 | (translation_unit) "/* -*- C++ -*- */\n/*===--------------------------- complex.h --------------------------------===*/\n/* */\n/* The LLVM Compiler Infrastructure */\n/* ... | 58 | 0 | {"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 23.9, "nodes": 45, "errors": 0, "source_hash": "335850bd0e6b7de60ceb3a1520da63fc02dbef4db76c6bd2302e6ca882f305cb", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _... | 2,166 |
c | //
// AXShowViewController.h
// AXAlertTransitioningObserver_Example
//
// Created by 小星星吃KFC on 2021/2/27.
// Copyright © 2021 axinger. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface AXShowViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
| 23.25 | 12 | (translation_unit) "//\n// AXShowViewController.h\n// AXAlertTransitioningObserver_Example\n//\n// Created by 小星星吃KFC on 2021/2/27.\n// Copyright © 2021 axinger. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AXShowViewController : UIViewController\n\n@end\n\nNS_ASSUME_... | 27 | 4 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.25, "nodes": 16, "errors": 0, "source_hash": "8aab830971389b1fc53a7634d812608926282c39dd7276dab8afd5c224e101df", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKi... | 2,167 |
c | #pragma once
#if defined(__linux__)
# define _linux_
#elif defined(_WIN64)
# define _win64_
# define _win32_
#elif defined(__WIN32__) || defined(_WIN32)
# define _win32_
#elif defined(__APPLE__)
# define _darwin_
# define _unix_
#endif
#if defined(_win32_) || defined(_win64_)
# define _win_
#endif
#if ... | 20.18 | 55 | (translation_unit) "#pragma once\n\n#if defined(__linux__)\n# define _linux_\n#elif defined(_WIN64)\n# define _win64_\n# define _win32_\n#elif defined(__WIN32__) || defined(_WIN32)\n# define _win32_\n#elif defined(__APPLE__)\n# define _darwin_\n# define _unix_\n#endif\n\n#if defined(_win32_) || defined(_win... | 225 | 2 | {"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 20.18, "nodes": 198, "errors": 0, "source_hash": "5f0471844dbadde898247c83f77e66a82033c73bd356c61b6e5b7192e0f9f4f3", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 2,168 |
c | //
// FLVParserUtil.c
// FLVParser
//
// Created by SihangHuang on 2019/9/25.
// Copyright © 2019 SihangHuang. All rights reserved.
//
#include "FLVParserUtil.h"
#include <stdlib.h>
#include <strings.h>
void flip(void *i, int size);
void flips(void *i, int size, int startIndex);
int computeEndian() {
static ... | 25.53 | 126 | (translation_unit) "//\n// FLVParserUtil.c\n// FLVParser\n//\n// Created by SihangHuang on 2019/9/25.\n// Copyright © 2019 SihangHuang. All rights reserved.\n//\n\n#include "FLVParserUtil.h"\n#include <stdlib.h>\n#include <strings.h>\n\nvoid flip(void *i, int size);\nvoid flips(void *i, int size, int startIndex);\n... | 991 | 1 | {"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 25.53, "nodes": 590, "errors": 0, "source_hash": "4821dbf80e8eacb60aab738bfc9908b1c65bbef64d3635437dfedb4ea73979f5", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc... | 2,169 |
c | /*
* Copyright (C) 2016, 2017, 2018 "IoT.bzh"
* Author <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 32.91 | 44 | (translation_unit) "/*\n * Copyright (C) 2016, 2017, 2018 "IoT.bzh"\n * Author <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/license... | 61 | 0 | {"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.91, "nodes": 41, "errors": 0, "source_hash": "d9c7986e71653daff76629b173819dbd6174e1ec97a5a250e55e2b34f49f731a", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 2,170 |
c | #ifndef _AJ_CONNECT_H
#define _AJ_CONNECT_H
/**
* @file aj_connect.h
* @defgroup aj_connect Bus Connection Management
* @{
*/
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributor... | 32.37 | 163 | (translation_unit) "#ifndef _AJ_CONNECT_H\n#define _AJ_CONNECT_H\n\n/**\n * @file aj_connect.h\n * @defgroup aj_connect Bus Connection Management\n * @{\n */\n/******************************************************************************\n * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source\n * ... | 300 | 5 | {"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 32.37, "nodes": 214, "errors": 0, "source_hash": "3909b5bc4cca2123b23c5ab47a9f6ca8d875607fb91d1318df733560afe3ab95", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 2,171 |
c | #pragma once
#include "global.h"
#include "GameObjectComponents/GameObjectComponent.h"
#include "GUI/BitmapText.h"
#include "GUI/TooltipWindow.h"
// A game object component that holds a tooltip in a window
class TooltipWindowComponent final : public GameObjectComponent {
public:
TooltipWindowComponent(const std::str... | 36.59 | 32 | (translation_unit) "#pragma once\n\n#include "global.h"\n#include "GameObjectComponents/GameObjectComponent.h"\n#include "GUI/BitmapText.h"\n#include "GUI/TooltipWindow.h"\n\n// A game object component that holds a tooltip in a window\nclass TooltipWindowComponent final : public GameObjectComponent {\npublic:\n Tooltip... | 333 | 20 | {"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.59, "nodes": 194, "errors": 0, "source_hash": "320abfa3390911fca0babd0afbe57fdb60bebd256f31eb856e89ef79f79d4493", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 2,172 |
c | #import "AnyInstanceArgument.h"
namespace Cedar { namespace Doubles {
class AnyInstanceOfClassArgument : public AnyInstanceArgument {
private:
AnyInstanceOfClassArgument & operator=(const AnyInstanceOfClassArgument &);
public:
explicit AnyInstanceOfClassArgument(const Class);
virt... | 34.11 | 19 | (translation_unit) "#import "AnyInstanceArgument.h"\n\nnamespace Cedar { namespace Doubles {\n\n class AnyInstanceOfClassArgument : public AnyInstanceArgument {\n private:\n AnyInstanceOfClassArgument & operator=(const AnyInstanceOfClassArgument &);\n\n public:\n explicit AnyInstanceOfClassArgume... | 152 | 10 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.11, "nodes": 83, "errors": 0, "source_hash": "f4ddedd2f802ce3cc64b227f909886114428e5a31bf7fde5f6fe47ddd69eac02", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \... | 2,173 |
c | //
// DownLoadedDataManager.h
// PDFReader
//
// Created by litianqi on 16/12/12.
// Copyright © 2016年 TQ. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TQDownLoadedTempDataManager : NSObject
+ (void)setResumeDataToLocal:(NSData *)resumeData withPercent:(float)percentDownload withTaskDescri... | 36.57 | 14 | (translation_unit) "//\n// DownLoadedDataManager.h\n// PDFReader\n//\n// Created by litianqi on 16/12/12.\n// Copyright © 2016年 TQ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TQDownLoadedTempDataManager : NSObject\n+ (void)setResumeDataToLocal:(NSData *)resumeData withPercent:(float... | 116 | 14 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.57, "nodes": 75, "errors": 0, "source_hash": "8ce4c973f2ad208c94373968167799d258b8e315c76243dd479735f68a947d3d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 2,174 |
c | #ifndef __NIM_CTRL_SVC_H_
#define __NIM_CTRL_SVC_H_
typedef enum
{
/*!
DVBS
*/
SYS_DVBS = 0,
/*!
DVBC
*/
SYS_DVBC,
/*!
DVBT
*/
SYS_DVBT
} sys_signal_t;
/*!
nim ctrl disepc info
*/
typedef struct
{
/*!
the montor is fixed
*/
BOOL is_fixed;
/*!
If not zero mean... | 13.99 | 73 | (translation_unit) "#ifndef __NIM_CTRL_SVC_H_\n#define __NIM_CTRL_SVC_H_\n\ntypedef enum\n{\n /*!\n DVBS\n */\n SYS_DVBS = 0,\n /*!\n DVBC\n */\n SYS_DVBC,\n /*!\n DVBT\n */\n SYS_DVBT\n} sys_signal_t;\n\n/*!\n nim ctrl disepc info\n */\ntypedef struct\n{\n /*! \n the montor is fixed\n ... | 101 | 0 | {"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 13.99, "nodes": 62, "errors": 0, "source_hash": "befdd2b054161baecf421ecf29c1d49604ac9ee388fdd0e33c57c9683c377b84", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,175 |
c | #ifndef COMMANDSCHEDULER_RTMEM_H
#define COMMANDSCHEDULER_RTMEM_H
#include "../../src/CommandScheduler.h"
namespace MCsim
{
class CommandScheduler_RTMem: public CommandScheduler
{
private:
public:
CommandScheduler_RTMem(vector<CommandQueue*>& commandQueues, const map<unsigned int, bool>& requestorTable):
Co... | 26.4 | 70 | (translation_unit) "#ifndef COMMANDSCHEDULER_RTMEM_H\n#define COMMANDSCHEDULER_RTMEM_H\n\n#include "../../src/CommandScheduler.h"\n\nnamespace MCsim\n{\n class CommandScheduler_RTMem: public CommandScheduler\n {\n private:\n\n public:\n CommandScheduler_RTMem(vector<CommandQueue*>& commandQueues, const map<unsigned in... | 559 | 5 | {"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 26.4, "nodes": 323, "errors": 0, "source_hash": "7b6aba74a2c6e60f1351d366ade74a02096b4519c741189cebb9932cb9090cd1", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 2,176 |
c | /* $NetBSD: t_rpc.c,v 1.3 2013/02/28 15:56:53 christos Exp $ */
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_rpc.c,v 1.3 2013/02/28 15:56:53 christos Exp $");
#include <sys/types.h>
#include <sys/socket.h>
#include <rpc/rpc.h>
#include <stdlib.h>
#include <err.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h... | 23.78 | 134 | (translation_unit) "/* $NetBSD: t_rpc.c,v 1.3 2013/02/28 15:56:53 christos Exp $ */\n\n#include <sys/cdefs.h>\n__RCSID("$NetBSD: t_rpc.c,v 1.3 2013/02/28 15:56:53 christos Exp $");\n\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <rpc/rpc.h>\n#include <stdlib.h>\n#include <err.h>\n#include <netdb.h>\n#inclu... | 1,012 | 2 | {"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 23.78, "nodes": 582, "errors": 0, "source_hash": "61902d7bc030fdb24d318d2ebc81a3391151f1b86b182bb39fa338c88f0205a3", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 2,177 |
c | /* vi: set sw=4 ts=4: */
/*
* Mini rm implementation for busybox
*
* Copyright (C) 2001 <NAME> <<EMAIL>>
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/rm.html */
/* Mar 16, 2003 <... | 24.28 | 47 | (translation_unit) "/* vi: set sw=4 ts=4: */\n/*\n * Mini rm implementation for busybox\n *\n * Copyright (C) 2001 <NAME> <<EMAIL>>\n *\n * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.\n */\n\n/* BB_AUDIT SUSv3 compliant */\n/* http://www.opengroup.org/onlinepubs/007904975/utilities/rm.h... | 294 | 2 | {"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 24.28, "nodes": 170, "errors": 0, "source_hash": "7cf4278969b3de45dfae5a80d7f583b43d38a96c28c0dd4d35cb72fdfb7c1bab", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,178 |
c | #ifndef STATE_H_
#define STATE_H_
enum State
{
None,
ReadyToReceive,
Received
};
#endif /* STATE_H_ */ | 11.78 | 9 | (translation_unit) "#ifndef STATE_H_\n#define STATE_H_\n\nenum State\n{\n None,\n ReadyToReceive,\n Received\n};\n\n#endif /* STATE_H_ */"
(preproc_ifdef) "#ifndef STATE_H_\n#define STATE_H_\n\nenum State\n{\n None,\n ReadyToReceive,\n Received\n};\n\n#endif"
(#ifndef) "#ifndef"
(identifier)... | 24 | 0 | {"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 11.78, "nodes": 17, "errors": 0, "source_hash": "fa0996f853fa54517a6df7ae23f95fb472b1248a25c1c4c79ba778825faa8983", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S... | 2,179 |
c | #ifndef HYSTERESIS_H
#define HYSTERESIS_H
#include <stdbool.h>
void hysteresis_init();
/*
* Define the target temperature.
* @param[in] target_temperature
*/
void hysteresis_set_target(double target_temperature);
/*
* Define the low and high threshold. Low hystersis threshold is
* target_temperature - low_thre... | 24.17 | 29 | (translation_unit) "#ifndef HYSTERESIS_H\n#define HYSTERESIS_H\n\n#include <stdbool.h>\n\nvoid hysteresis_init();\n\n/*\n * Define the target temperature.\n * @param[in] target_temperature\n */\nvoid hysteresis_set_target(double target_temperature);\n\n/*\n * Define the low and high threshold. Low hystersis threshold i... | 74 | 0 | {"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.17, "nodes": 52, "errors": 0, "source_hash": "28aae87c25da1a00ae8b9489ef59549d1dcaf39c09d3920c8a818f7053febea2", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,180 |
c | /*
* See the dyninst/COPYRIGHT file for copyright information.
*
* We provide the Paradyn Tools (below described as "Paradyn")
* on an AS IS basis, and do not warrant its validity or performance.
* We reserve the right to update, modify, or discontinue this
* software at any time. We shall have no obligation to... | 32.63 | 161 | (translation_unit) "/*\n * See the dyninst/COPYRIGHT file for copyright information.\n * \n * We provide the Paradyn Tools (below described as "Paradyn")\n * on an AS IS basis, and do not warrant its validity or performance.\n * We reserve the right to update, modify, or discontinue this\n * software at any time. We s... | 1,007 | 52 | {"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 32.63, "nodes": 608, "errors": 0, "source_hash": "04e4986c46a2f7971299a4c0f708ebb28de97851965644d7e07ac42d62cb6457", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if !defined(... | 2,181 |
c | //
// ElementViewController.h
// TestZall
//
// Created by guo on 2019/5/6.
// Copyright © 2019-2020 Zall Data Co., Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface CustomButton : UIButton
@end
@interface ElementViewController : UIViewController
@property (nonatomic, str... | 33.65 | 23 | (translation_unit) "//\n// ElementViewController.h\n// TestZall\n//\n// Created by guo on 2019/5/6.\n// Copyright © 2019-2020 Zall Data Co., Ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CustomButton : UIButton\n\n@end\n\n@interface ElementViewController : UIViewC... | 200 | 25 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.65, "nodes": 134, "errors": 0, "source_hash": "328996ac75083260923fdbb94bff387b99fb455050450ccf2883731e8a70a2a5", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <... | 2,182 |
c | #pragma once
#include "../explosionflameemitter.h"
#include "../../particleemitter.h"
#include "../../spherevec2generator.h"
#include "../../../../graphics/gl/texture2darray.h"
#include <memory>
namespace TankGame
{
class DirectionalFlameEmitter : public ExplosionFlameEmitter
{
public:
explicit DirectionalFlame... | 29.8 | 30 | (translation_unit) "#pragma once\n\n#include "../explosionflameemitter.h"\n#include "../../particleemitter.h"\n#include "../../spherevec2generator.h"\n#include "../../../../graphics/gl/texture2darray.h"\n\n#include <memory>\n\nnamespace TankGame\n{\n class DirectionalFlameEmitter : public ExplosionFlameEmitter\n {\n pu... | 177 | 8 | {"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.8, "nodes": 105, "errors": 0, "source_hash": "34f2b281653994a4677c39bc14a34558c24a2f96add9280809c609ba1a3d2ed1", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 2,183 |
c | #include<stdio.h>
void main(){
int a = 4;
char b = 's';
float c = 4.34;
printf("%d\n", a);
printf("%c\n", b);
printf("%f", c);
int num;
printf("Enter no: ");
scanf("%d", &num);
printf("Your no: %d", num);
} | 18 | 13 | (translation_unit) "#include<stdio.h>\n\nvoid main(){\n int a = 4;\n char b = 's';\n float c = 4.34;\n printf("%d\n", a);\n printf("%c\n", b);\n printf("%f", c);\n int num;\n printf("Enter no: ");\n scanf("%d", &num);\n printf("Your no: %d", num);\n}"
(preproc_include) "#include<stdio.h>... | 122 | 0 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.0, "nodes": 64, "errors": 0, "source_hash": "c2fa9f652cb410bf6287e307116dc2207fcf7fa38ed87ee30c091a0b3daa859c", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ... | 2,184 |
c | /*
* Copyright 2017 Cisco Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 39.93 | 59 | (translation_unit) "/*\n * Copyright 2017 Cisco Systems, Inc.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless requ... | 594 | 0 | {"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 39.93, "nodes": 444, "errors": 0, "source_hash": "ad572e0377c8fcfa7fb31a8150e84a2d41fd7912934f3d459621e3d1e7f64dbb", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,185 |
c | #pragma once
#include "StringsPool.h"
#include "TextureAsset.h"
#include "Node.h"
#define LOADSCREEN_DEFAULT_TEXTURE "/data/Textures/Hud/LoadScreens/default_loadscreen.bmp"
class LoadScreenInfo
{
public:
TextureAsset *m_TextureResource;
String m_TexturePath;
bool m_Enable... | 36.83 | 23 | (translation_unit) "#pragma once\n#include "StringsPool.h"\n#include "TextureAsset.h"\n#include "Node.h"\n\n#define LOADSCREEN_DEFAULT_TEXTURE "/data/Textures/Hud/LoadScreens/default_loadscreen.bmp"\n\nclass LoadScreenInfo\n{\npublic:\n TextureAsset *m_TextureResource;\n String m_TexturePath;\n... | 159 | 1 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.83, "nodes": 98, "errors": 0, "source_hash": "65051ae9d4bb30daced83e321e78c1d18517a4e0264420ecb8e3445ad842e4b8", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 2,186 |
c | /*++
Copyright (c) Didi Research America. All rights reserved.
Module Name:
trace.h
Author:
<NAME>, 08-Feb-2017
Revision History:
--*/
#ifndef __TRACE_DRIVER_H__
#define __TRACE_DRIVER_H__
//
// Driver name and version
//
#define DRIVER_NAME "Kemon"
enum driver_version
{... | 12.61 | 90 | (translation_unit) "/*++
\n
\nCopyright (c) Didi Research America. All rights reserved.
\n
\nModule Name:
\n
\n trace.h
\n
\nAuthor:
\n
\n <NAME>, 08-Feb-2017
\n
\nRevision History:
\n
\n--*/
\n
\n
\n#ifndef __TRACE_DRIVER_H__
\n#define __TRACE_DRIVER_H__
\n
\n
\n//
\n// Driver name and version
\n//
\n
\n#define ... | 143 | 0 | {"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 12.61, "nodes": 99, "errors": 0, "source_hash": "f0832341fd6e4250599cc694ba616d3e0d2d2146447ff8555d52e1824492eb9d", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,187 |
c | #include <stdio.h>
#include <netdb.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/in.h>
#define FILE_SIZE 500
#define BUFFER_SIZE 1024
int deletefile(int sock_desc, char input[]);
int listfile(... | 24.81 | 350 | (translation_unit) "#include <stdio.h>\n#include <netdb.h>\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <sys/types.h>\n#include <string.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <netinet/in.h>\n \n#define FILE_SIZE 500 \n#define BUFFER_SIZE 1024\n\nint deletefile(int sock_... | 2,934 | 0 | {"language": "c", "success": true, "metadata": {"lines": 350, "avg_line_length": 24.81, "nodes": 1582, "errors": 0, "source_hash": "19754bf92458fd8ba787d9af4e15ac9a1066b9d0b952a9ea569096058fa7a6c6", "categorized_nodes": 1040}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#... | 2,188 |
c | /*
* File Layout for: GL.GL_MASK on 21-May-01
*
* General Ledger Mask
*/
#pragma member_alignment save
#pragma nomember_alignment
struct gl_mask_cdd
{
/* Element = ACCOUNT
Description = General Ledger Account Number */
char acct_mask[18];
/* Element =
Description = Description */
char descr[40];
/* Elemen... | 20.42 | 26 | (translation_unit) "/*\n * File Layout for: GL.GL_MASK on 21-May-01\n *\n * General Ledger Mask\n */\n\n#pragma member_alignment save\n#pragma nomember_alignment\n\nstruct gl_mask_cdd\n{\n/* Element = ACCOUNT\n Description = General Ledger Account Number */\n char acct_mask[18];\n/* Element =\n Description = Descri... | 63 | 0 | {"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.42, "nodes": 37, "errors": 0, "source_hash": "6fca2a396f2524c0858a92a913167e1a83c525c7f36ad880a1f9f4c0271d9e5e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma m... | 2,189 |
c | #ifndef _TASK_X86_H
#define _TASK_X86_H
#include "task.h"
#include "regs.h"
#include "string.hh"
typedef struct
{
unsigned short link;
unsigned short r_link;
unsigned long esp0;
unsigned short ss0;
unsigned short r_ss0;
unsigned long esp1;
unsigned short ss1;
unsigned short r_ss1;
... | 24.41 | 82 | (translation_unit) "#ifndef _TASK_X86_H\n#define _TASK_X86_H\n\n#include "task.h"\n#include "regs.h"\n#include "string.hh"\n\ntypedef struct\n{\n unsigned short link;\n unsigned short r_link;\n unsigned long esp0;\n unsigned short ss0;\n unsigned short r_ss0;\n unsigned long esp1;\n unsigned short ... | 566 | 4 | {"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 24.41, "nodes": 401, "errors": 0, "source_hash": "3aedfbd77526f67e64b17560dd111fcbbf3175bea0c1d117f1e60aaa950061fe", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,190 |
c | /*
* catweaselmkiii-win32-drv.c - Windows specific cw3 driver.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... | 23.93 | 109 | (translation_unit) "/*\n * catweaselmkiii-win32-drv.c - Windows specific cw3 driver.\n *\n * Written by\n * <NAME> <<EMAIL>>\n *\n * This file is part of VICE, the Versatile Commodore Emulator.\n * See README for copyright notice.\n *\n * This program is free software; you can redistribute it and/or modify\n * it un... | 400 | 0 | {"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 23.93, "nodes": 209, "errors": 0, "source_hash": "f75eb91cd38b403a268fe7ad5f65d5ed7ef1f12496579dbcd6dc0fbcaf26f760", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 2,191 |
c | //
// DemoHeader.h
// HistogramDemo
//
// Created by 侯万 on 2019/1/2.
// Copyright © 2019 小侯爷. All rights reserved.
//
#ifndef DemoHeader_h
#define DemoHeader_h
#import "HistogramModel.h"
/// 屏幕 宽度、高度
#define Screen_Width ([UIScreen mainScreen].bounds.size.width)
#define Screen_Height ([UIScreen mainScreen].bou... | 30.61 | 23 | (translation_unit) "//\n// DemoHeader.h\n// HistogramDemo\n//\n// Created by 侯万 on 2019/1/2.\n// Copyright © 2019 小侯爷. All rights reserved.\n//\n\n#ifndef DemoHeader_h\n#define DemoHeader_h\n\n\n#import "HistogramModel.h"\n\n\n/// 屏幕 宽度、高度\n#define Screen_Width ([UIScreen mainScreen].bounds.size.width)\n#define Scr... | 49 | 0 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.61, "nodes": 33, "errors": 0, "source_hash": "f58d336b29e4a72d8259a5e6eaa1a0257ab01fb309dedd37a6e2d3e7066ed473", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "oHeader_... | 2,192 |
c | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FUCHSIA_ENGINE_COMMON_CAST_STREAMING_H_
#define FUCHSIA_ENGINE_COMMON_CAST_STREAMING_H_
class GURL;
// Returns true if Cast Streaming is enabled... | 47.73 | 11 | (translation_unit) "// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef FUCHSIA_ENGINE_COMMON_CAST_STREAMING_H_\n#define FUCHSIA_ENGINE_COMMON_CAST_STREAMING_H_\n\nclass GURL;\n\n// Returns true... | 41 | 1 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 47.73, "nodes": 22, "errors": 0, "source_hash": "f03e3179e40d7678ef22582c46297cf4bb5a870635d113a27dcbc8a95b8ed362", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 2,193 |
c | /* nplnpt.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 NPLNPT ( Nearest point on line to point ) */
/* Subroutine */ int nplnpt_(doublereal *linpt, doublereal *lindir,
doublereal *point, doubl... | 41.63 | 155 | (translation_unit) "/* nplnpt.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 NPLNPT ( Nearest point on line to point ) */\n/* Subroutine */ int nplnpt_(doublereal *linpt, doublereal *lindir... | 520 | 0 | {"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 41.63, "nodes": 252, "errors": 0, "source_hash": "103e9259da361002f14dc5e1bd1953ed641138212fb64349ee73249ca9f0f38e", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 2,194 |
c | #ifndef _LINUX_XGIFB
#define _LINUX_XGIFB
#include <linux/ioctl.h>
#include <linux/types.h>
#include "vb_struct.h"
#include "vgatypes.h"
enum xgifb_display_type {
XGIFB_DISP_NONE = 0,
XGIFB_DISP_CRT,
XGIFB_DISP_LCD,
XGIFB_DISP_TV,
};
#define HASVB_NONE 0x00
#define HASVB_301 0x01
#define HASVB_LVDS 0... | 21.49 | 94 | (translation_unit) "#ifndef _LINUX_XGIFB\n#define _LINUX_XGIFB\n#include <linux/ioctl.h>\n#include <linux/types.h>\n\n#include "vb_struct.h"\n#include "vgatypes.h"\n\nenum xgifb_display_type {\n XGIFB_DISP_NONE = 0,\n XGIFB_DISP_CRT,\n XGIFB_DISP_LCD,\n XGIFB_DISP_TV,\n};\n\n#define HASVB_NONE 0x00\n#define HASVB_3... | 438 | 2 | {"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 21.49, "nodes": 338, "errors": 0, "source_hash": "17957d04543bf9784d74e7eaeda5cd47a761b71c39dd8a444c58f36b57718415", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,195 |
c | /*
* This file is part of ALVAR, A Library for Virtual and Augmented Reality.
*
* Copyright 2007-2012 VTT Technical Research Centre of Finland
*
* Contact: VTT Augmented Reality Team <<EMAIL>>
* <http://www.vtt.fi/multimedia/alvar.html>
*
* ALVAR is free software; you can redistribute it and/or modify ... | 35.31 | 55 | (translation_unit) "/*\n * This file is part of ALVAR, A Library for Virtual and Augmented Reality.\n *\n * Copyright 2007-2012 VTT Technical Research Centre of Finland\n *\n * Contact: VTT Augmented Reality Team <<EMAIL>>\n * <http://www.vtt.fi/multimedia/alvar.html>\n *\n * ALVAR is free software; you can re... | 275 | 14 | {"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.31, "nodes": 163, "errors": 0, "source_hash": "ddc09dce1bd7069087db97d9bdb8d792f221e2d872116081b33c6b42ae9a3d2d", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 2,196 |
c | //
// FYFBasePlugin.h
// FYFWebComponent
//
// Created by 范云飞 on 2021/8/23.
//
#import <Foundation/Foundation.h>
#import "FYFJSInvokeNativeDelegate.h"
NS_ASSUME_NONNULL_BEGIN
@interface FYFBasePlugin : NSObject <FYFJSInvokeNativeDelegate>
/// 是否需要缓存插件, 默认为YES
@property (nonatomic, assign, readonly) BOOL isCache... | 25.25 | 20 | (translation_unit) "//\n// FYFBasePlugin.h\n// FYFWebComponent\n//\n// Created by 范云飞 on 2021/8/23.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "FYFJSInvokeNativeDelegate.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FYFBasePlugin : NSObject <FYFJSInvokeNativeDelegate>\n\n/// 是否需要缓存插件, 默认为YES\n@property (nonat... | 101 | 12 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.25, "nodes": 64, "errors": 0, "source_hash": "3670be4abf5bb8aaaa8e859202fe57d45de97b74a7ebc32fb263a1d3296b6c1a", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda... | 2,197 |
c | #include <stdbool.h>
#include <stdlib.h>
#include <kogata/syscall.h>
#include <kogata/debug.h>
#include <kogata/printf.h>
#include <kogata/mutex.h>
void sys_panic(const char* msg, const char* file, int line) {
dbg_printf("PANIC in user process\n %s\n at %s:%d\n", msg, file, line);
*((uint32_t*)NULL) = 1; //provo... | 25.27 | 33 | (translation_unit) "#include <stdbool.h>\n#include <stdlib.h>\n\n#include <kogata/syscall.h>\n#include <kogata/debug.h>\n#include <kogata/printf.h>\n#include <kogata/mutex.h>\n\nvoid sys_panic(const char* msg, const char* file, int line) {\n dbg_printf("PANIC in user process\n %s\n at %s:%d\n", msg, file, line);\n *(... | 308 | 0 | {"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.27, "nodes": 173, "errors": 0, "source_hash": "791f96f18754af79a6ec15704780261b27097de6575d875abde725c531cd5aab", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 2,198 |
c | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pr... | 34.71 | 51 | (translation_unit) "/*\n * Copyright (c) 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the s... | 146 | 7 | {"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.71, "nodes": 90, "errors": 0, "source_hash": "2154f541cb1d7a57efec25dd09314d2e9e3aea4b7662c0b677fa477e74606e80", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 2,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.