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 | //
// MKMID.h
// MingKeMing
//
// Created by <NAME> on 2018/9/24.
// Copyright © 2018 DIM Group. All rights reserved.
//
#import "MKMAddress.h"
NS_ASSUME_NONNULL_BEGIN
/**
* ID for entity (Account/Group)
*
* data format: "name@address[/terminal]"
*
* fileds:
* name - entity name, th... | 28.08 | 52 | (translation_unit) "//\n// MKMID.h\n// MingKeMing\n//\n// Created by <NAME> on 2018/9/24.\n// Copyright © 2018 DIM Group. All rights reserved.\n//\n\n#import "MKMAddress.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * ID for entity (Account/Group)\n *\n * data format: "name@address[/terminal]"\n *\n * fileds:\n... | 248 | 23 | {"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.08, "nodes": 152, "errors": 0, "source_hash": "9779c50522734a3147c6555cf8a088caf1e82cdf2bad20bd526f9e26d65251e5", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \... | 6,200 |
c | //
// MMFaceFeatureCX.h
// Pods
//
// Created by <NAME> on 06/03/2018.
//
@import MomoCV;
NS_ASSUME_NONNULL_BEGIN
struct CXSkinColorThreshold {
simd_float3 lowColor;
simd_float3 highColor;
simd_float3 defaultColor;
};
typedef struct CXSkinColorThreshold CXSkinColorThreshold;
@interface MMFaceFeature ... | 25.79 | 19 | (translation_unit) "//\n// MMFaceFeatureCX.h\n// Pods\n//\n// Created by <NAME> on 06/03/2018.\n//\n\n@import MomoCV;\n\nNS_ASSUME_NONNULL_BEGIN\n\nstruct CXSkinColorThreshold {\n simd_float3 lowColor;\n simd_float3 highColor;\n simd_float3 defaultColor;\n};\ntypedef struct CXSkinColorThreshold CXSkinColorT... | 93 | 15 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.79, "nodes": 64, "errors": 0, "source_hash": "6dbecac2bbb7b0e53c0d9dc6839eef0097630c817ddcd5ed823047ff74875a57", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu... | 6,201 |
c | /* Copyright 2018 <NAME>
*
* 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 agreed to in ... | 23.4 | 50 | (translation_unit) "/* Copyright 2018 <NAME>\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 required by app... | 211 | 7 | {"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 23.4, "nodes": 127, "errors": 0, "source_hash": "9a2001c663b071781c1f6e42eacbb8b412ce2e47fbf84d51e34f0637996009d6", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 6,202 |
c | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef URL_URL_TEST_UTILS_H_
#define URL_URL_TEST_UTILS_H_
// Convenience functions for string conversions.
// These are mostly intended for use in unit... | 38.84 | 43 | (translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef URL_URL_TEST_UTILS_H_\n#define URL_URL_TEST_UTILS_H_\n\n// Convenience functions for string conversions.\n// These are mos... | 400 | 16 | {"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 38.84, "nodes": 229, "errors": 0, "source_hash": "350723727115b346dc11f0970ea3157acdb461b8c1c3de280f0579ba9422d2cc", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,203 |
c |
#pragma once
#include "../../../../asd.Core.Base.h"
#include "../../../../asd.ReferenceObject.h"
namespace asd
{
/**
@brief アニメーションに関するインスタンスを生成するためのクラス
*/
class AnimationSystem
{
friend class Accessor;
protected:
AnimationSystem(){}
virtual ~AnimationSystem(){}
virtual AnimationClip* CreateAnimati... | 21.34 | 50 | (translation_unit) "ragma once\n\n#include "../../../../asd.Core.Base.h"\n#include "../../../../asd.ReferenceObject.h"\n\nnamespace asd\n{\n /**\n @brief アニメーションに関するインスタンスを生成するためのクラス\n */\n class AnimationSystem\n {\n friend class Accessor;\n\n protected:\n AnimationSystem(){}\n virtual ~AnimationSystem(){}\n\n vi... | 245 | 8 | {"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 21.34, "nodes": 150, "errors": 0, "source_hash": "6e10e7fa50b0ef3795d3210e51844bb5854da9cff37d23186b4b219989668ea7", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o... | 6,204 |
c | /*
* Preprocessor directive within if statement.
*/
int
main(void)
{
if (sc->sc_base.me_evp == NULL
#if NWSDISPLAY > 0
&& sc->sc_displaydv == NULL
#endif
)
return;
}
| 12.92 | 13 | (translation_unit) "/*\n * Preprocessor directive within if statement.\n */\n\nint\nmain(void)\n{\n if (sc->sc_base.me_evp == NULL\n#if NWSDISPLAY > 0\n && sc->sc_displaydv == NULL\n#endif\n )\n return;\n}\n"
(comment) "/*\n * Preprocessor directive within if statement.\n */"
(function_definition) "int\nma... | 51 | 2 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 12.92, "nodes": 36, "errors": 0, "source_hash": "5b32271a8af2b3ce07d842a811cbbe074b276505b50f984b8592215f898b5adb", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in... | 6,205 |
c | #include <stdio.h>
int main()
{
int a[4];
scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]);
int i, j, somaA = 0, somaB = 0, soma, clean;
for (i = 0; i < 4; i ++)
{
for (j = 0; j < 4; j ++)
{
if (i != j)
{
soma = a[i] + a[j];
if (somaA == 0 || soma < somaA)
... | 18.03 | 39 | (translation_unit) "#include <stdio.h>
\n
\nint main()
\n{
\n int a[4];
\n scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]);
\n int i, j, somaA = 0, somaB = 0, soma, clean;
\n for (i = 0; i < 4; i ++)
\n {
\n for (j = 0; j < 4; j ++)
\n {
\n if (i != j)
\n {
\n soma = a[i] + a[j];
\n ... | 328 | 0 | {"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.03, "nodes": 198, "errors": 0, "source_hash": "b46c6d9404d9807f9fdb33889c8d3e23f8d3e0047bacf5bf6cac32b621b3db7b", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,206 |
c | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/medialive/MediaLive_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaLive
{
namespace Model
{
enum class ReservationVideoQuality... | 25.11 | 28 | (translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/medialive/MediaLive_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSString.h>\n\nnamespace Aws\n{\nnamespace MediaLive\n{\nnamespace Model\n{\n en... | 99 | 4 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.11, "nodes": 59, "errors": 0, "source_hash": "4f6469d39afd2eea84847676e3936964eba05bf266cfb943c8df67d69a1a6762", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc... | 6,207 |
c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../tree.h"
#include "../slist.h"
#include "../typeinfo.h"
extern SList* type_info_list;
TypeInfo* tmp_type_info;
typedef struct{
int val;
TypeInfo* type_info;
}Tmp;
void* tmp_init(void* typeinfo){
Tmp* tmp = malloc(sizeof(Tmp));
tmp->type_info=... | 26.23 | 65 | (translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "../tree.h"\n#include "../slist.h"\n#include "../typeinfo.h"\n\nextern SList* type_info_list;\nTypeInfo* tmp_type_info;\ntypedef struct{\n int val;\n TypeInfo* type_info;\n}Tmp;\n\nvoid* tmp_init(void* typeinfo){\n Tmp* tmp = m... | 820 | 0 | {"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 26.23, "nodes": 509, "errors": 0, "source_hash": "0b413463c84cfc0b70461bf15de65c3749c1031266f0afadbfca7db5b3a6493a", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,208 |
c | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Memory mapping */
#define CONFIG_FLASH_SIZE_BYTES 0x00080000 /* 512 kB */
#define CONFIG_FLASH_BANK_SIZE 0x800 /* 2 kB */
#define CONFIG_F... | 38.76 | 29 | (translation_unit) "/* Copyright 2021 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n/* Memory mapping */\n#define CONFIG_FLASH_SIZE_BYTES 0x00080000 /* 512 kB */\n#define CONFIG_FLASH_BANK_SIZE 0x800 ... | 73 | 0 | {"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 38.76, "nodes": 59, "errors": 0, "source_hash": "c739616f63db21144edcfbfacb34d7f8ef153ed3a2689652b519743d08935ab8", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CO... | 6,209 |
c | //
// STAPickerField.h
// STATextField
//
// Created by <NAME> on 1/12/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "STATextField.h"
#import "STAPickerView.h"
@interface STAPickerField : STATextField
@property (nonatomic, strong) STAPickerView *pickerView;
@property (nonatomic, strong) NSArr... | 25.31 | 13 | (translation_unit) "//\n// STAPickerField.h\n// STATextField\n//\n// Created by <NAME> on 1/12/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import "STATextField.h"\n#import "STAPickerView.h"\n\n@interface STAPickerField : STATextField\n\n@property (nonatomic, strong) STAPickerView *pickerView;\n@... | 57 | 10 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.31, "nodes": 39, "errors": 0, "source_hash": "58b7b287f66f54ab5342daa9e5f15ab8974eadac1dc4ab5d16d90313c6e4158f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \... | 6,210 |
c |
#pragma once
#include "tree.h"
/* 计算树的带权路径长度(WPL) */
int calc_wpl(Node *tree); | 18.75 | 4 | (translation_unit) "#pragma once\n\n#include "tree.h"\n\n/* 计算树的带权路径长度(WPL) */\nint calc_wpl(Node *tree);"
(preproc_call) "#pragma once\n"
(preproc_directive) "#pragma"
(preproc_arg) "once"
(preproc_include) "#include "tree.h"\n"
(#include) "#include"
(string_literal) ""tree.h""
(") """
... | 24 | 0 | {"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.75, "nodes": 14, "errors": 0, "source_hash": "da7d65a4fc6a6b245e29fe0ed797e7915245d42f09e3ac21208fb7a981e1e65b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc... | 6,211 |
c | //
// NSData+TIPAdditions.h
// TwitterImagePipeline
//
// Created on 9/9/16.
// Copyright © 2016 Twitter. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSData (TIPAdditions)
- (NSData *)tip_safeSubdataNoCopyWithRange:(NSRange)range;
- (NSString *)tip_hexStringValue;... | 23.64 | 14 | (translation_unit) "//\n// NSData+TIPAdditions.h\n// TwitterImagePipeline\n//\n// Created on 9/9/16.\n// Copyright © 2016 Twitter. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSData (TIPAdditions)\n- (NSData *)tip_safeSubdataNoCopyWithRange:(NSRange)range;\... | 59 | 5 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.64, "nodes": 31, "errors": 0, "source_hash": "f6c63ddc8a3801bd2bf545239053e347381ec2efa8359af3b30ead82b8eae1ad", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F... | 6,212 |
c | /*
* =====================================================================================
*
* Filename: assert.c
*
* Description:
*
* Version: 1.0
* Created: 2020年09月16日 06时36分13秒
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organizatio... | 18.84 | 25 | (translation_unit) "/*\n * =====================================================================================\n *\n * Filename: assert.c\n *\n * Description: \n *\n * Version: 1.0\n * Created: 2020年09月16日 06时36分13秒\n * Revision: none\n * Compiler: gcc\n *\n * Author: ... | 37 | 0 | {"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.84, "nodes": 22, "errors": 0, "source_hash": "e2aeb72acd3f8c11fbe0e898b1371878264ae26af968204fcd50815b35b1c614", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "sert.h... | 6,213 |
c | /**
* @file cvsu_config.h
* @author <NAME> <<EMAIL>>
* @brief Configuration flags for cvsu.
*
* Copyright (c) 2011-2013, <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:
* * Redi... | 36.98 | 109 | (translation_unit) "/**\n * @file cvsu_config.h\n * @author <NAME> <<EMAIL>>\n * @brief Configuration flags for cvsu.\n *\n * Copyright (c) 2011-2013, <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 co... | 125 | 0 | {"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 36.98, "nodes": 103, "errors": 0, "source_hash": "116c4abcd43604a3212b72d33335c743da2e2331aa2d222223d3fb3c31edb966", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,214 |
c | const pin=3;
void setup()
{
pinMode(pin,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);//connected to the enB/enA for controlling speed.....even for serial control same circuit.
}
void loop()
{
digitalWrite(pin,HIGH);//clockwise
digitalWrite(4,LOW);
analogWrite(5,225);//THE SPECIFIED RPM....
}
| 22.62 | 13 | (translation_unit) "const pin=3;\n\nvoid setup() \n{\n\npinMode(pin,OUTPUT);\npinMode(4,OUTPUT);\npinMode(5,OUTPUT);//connected to the enB/enA for controlling speed.....even for serial control same circuit.\n\n}\n\nvoid loop() \n{\n digitalWrite(pin,HIGH);//clockwise\n digitalWrite(4,LOW);\n analogWrite(5,225);//... | 93 | 0 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.62, "nodes": 46, "errors": 0, "source_hash": "90db2d572fdb34af18dbf96285cd798613d7a9c35de1e6ee6d1dc96e5aaa1472", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "const pin=... | 6,215 |
c | #include<stdio.h>
#include<string.h>
int main()
{
char c,s[20];
int i,n,st=0,n1=0,n2=0;
fgets(s,20,stdin);
n=strlen(s)-1;
for(i=0;i<n;i++)
{
if(s[i]<'0'||s[i]>'9')
{
if(s[i]!='+'&&s[i]!='-'&&s[i]!='!'&&s[i]!='%'&&s[i]!='/'&&s[i]!='*'&&s[i]!=' ')
... | 22.71 | 80 | (translation_unit) "#include<stdio.h>\n#include<string.h>\nint main()\n{\n char c,s[20];\n int i,n,st=0,n1=0,n2=0;\n\n fgets(s,20,stdin);\n n=strlen(s)-1;\n\n for(i=0;i<n;i++)\n {\n if(s[i]<'0'||s[i]>'9')\n {\n\n if(s[i]!='+'&&s[i]!='-'&&s[i]!='!'&&s[i]!='%'&&s[i]!='/'&&s[i... | 811 | 0 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 22.71, "nodes": 552, "errors": 0, "source_hash": "2a66782a105202b41bacfcea693631afa5ec100d778e8f13942c6cc08dc1402d", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,216 |
c | //
// MXViewController.h
// MXDeviceAuthManage
//
// Created by xxx on 06/07/2021.
// Copyright (c) 2021 xxx. All rights reserved.
//
@import UIKit;
@interface MXViewController : UIViewController
@end
| 19.5 | 10 | (translation_unit) "//\n// MXViewController.h\n// MXDeviceAuthManage\n//\n// Created by xxx on 06/07/2021.\n// Copyright (c) 2021 xxx. All rights reserved.\n//\n\n@import UIKit;\n\n@interface MXViewController : UIViewController\n\n@end\n"
(comment) "//"
(comment) "// MXViewController.h"
(comment) "// MXDevi... | 22 | 5 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 10, "errors": 0, "source_hash": "651e509db486f1b4eae83d54ecdd47215eb5658aa1b0f92846475e88894a5e2b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null... | 6,217 |
c | //
// UIFont+Extras.h
// UBallLive
//
// Created by Jobs on 2020/11/4.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIFont (Extras)
+(void)getAvailableFont;
@end
NS_ASSUME_NONNULL_END
| 16 | 12 | (translation_unit) "//\n// UIFont+Extras.h\n// UBallLive\n//\n// Created by Jobs on 2020/11/4.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIFont (Extras)\n\n+(void)getAvailableFont;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
(comment) "//"
(comment) "// UIFont+Extras.h"
(comment) "// UB... | 37 | 5 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.0, "nodes": 22, "errors": 0, "source_hash": "41bfd521db0a59de29c3d405c16f359ac0de2481bf718d2f4ff682ed6459c9f1", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U... | 6,218 |
c | // Copyright 2017 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_FEATURE_ENGAGEMENT_INTERNAL_TIME_PROVIDER_H_
#define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_TIME_PROVIDER_H_
#include <stdint.h>
#inc... | 39.87 | 23 | (translation_unit) "// Copyright 2017 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_FEATURE_ENGAGEMENT_INTERNAL_TIME_PROVIDER_H_\n#define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_TIME_PROVIDER_H_\n... | 135 | 10 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 39.87, "nodes": 74, "errors": 0, "source_hash": "9c5751f3b05b2879678634d8f9f713ea36fd531213b8d42a46250c6a9d38e8a6", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,219 |
c | #pragma once
class Expression {
protected:
double val;
Expression(const double newVal = 0);
public:
virtual const double value() const = 0;
virtual void print() const = 0;
}; | 16.36 | 11 | (translation_unit) "#pragma once
\n
\nclass Expression {
\nprotected:
\n double val;
\n Expression(const double newVal = 0);
\n
\npublic:
\n virtual const double value() const = 0;
\n virtual void print() const = 0;
\n};"
(preproc_call) "#pragma once
\n"
(preproc_directive) "#pragma"
(preproc_arg) "once
"
(... | 69 | 4 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.36, "nodes": 38, "errors": 0, "source_hash": "76438b013766b95de2fe142878fdda421325e6fa2710593e3fc8188716bfa230", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,220 |
c | /*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#ifndef __ARAD_KBP_RECOVER_INCLUDED__
#define __ARAD_KBP_RECOVER_INCLUDED__
int arad_kbp_recover_rx_enable (int... | 41.45 | 20 | (translation_unit) "/* \n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n*/\n\n#ifndef __ARAD_KBP_RECOVER_INCLUDED__\n\n#define __ARAD_KBP_RECOVER_INCLUDED__\n\n\n\nint... | 145 | 0 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 41.45, "nodes": 106, "errors": 0, "source_hash": "0cb4e458749ccff11550b42463ffaaa937332af5635dcd83bec96255a1d7c1da", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 6,221 |
c | //
// ViewController.h
// GridProgress
//
// Created by kura on 2017/01/09.
// Copyright © 2017年 kura. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 19.5 | 10 | (translation_unit) "//\n// ViewController.h\n// GridProgress\n//\n// Created by kura on 2017/01/09.\n// Copyright © 2017年 kura. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@end\n\n"
(comment) "//"
(comment) "// ViewController.h"
(comment) "// GridPr... | 22 | 4 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 12, "errors": 0, "source_hash": "ffb823bcd1b7d032ea1b9b12b8dec17d6d21908b57b38064f8322720712dba4b", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit... | 6,222 |
c | //
// NSString+YSYLocalIP.h
// AdditionsDemo
//
// Created by 吕成翘 on 17/2/7.
// Copyright © 2017年 Weitac. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (YSYLocalIP)
/**
获取本机ip
@return 本机ip
*/
+ (NSString *)ysy_getLocalIPAddress;
/**
获取本机ip
@param preferIPv4 是否是ipv4
@re... | 15.21 | 24 | (translation_unit) "//\n// NSString+YSYLocalIP.h\n// AdditionsDemo\n//\n// Created by 吕成翘 on 17/2/7.\n// Copyright © 2017年 Weitac. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface NSString (YSYLocalIP)\n\n/**\n 获取本机ip\n \n @return 本机ip\n */\n+ (NSString *)ysy_getLocalIPAddress;\n\n/**\n... | 57 | 5 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 15.21, "nodes": 32, "errors": 0, "source_hash": "ceab7a22e3738721adb2f0bf00d39956e83b953e1c946a0e75abbd98f3e63ba3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio... | 6,223 |
c | #define STM32F4
#define RAND_MAX 0x7fffffff
| 21.5 | 2 | (translation_unit) "#define STM32F4\n#define RAND_MAX 0x7fffffff\n"
(preproc_def) "#define STM32F4\n"
(#define) "#define"
(identifier) "STM32F4"
(preproc_def) "#define RAND_MAX 0x7fffffff\n"
(#define) "#define"
(identifier) "RAND_MAX"
(preproc_arg) "0x7fffffff" | 8 | 0 | {"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 21.5, "nodes": 7, "errors": 0, "source_hash": "c2b7e04a098cf71707d501d59d06265b637ff5c8284b7f2b351af13a5fb478a4", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define STM32F... | 6,224 |
c | // 4 - O cardápio de uma lanchonete é o seguinte:
// | Especificação | Código | Preço |
// | Cachorro quente | 100 | R$ 1,20 |
// | Bauru simples | 101 | R$ 1,30 |
// | Bauru com ovo | 102 | R$ 1,50 |
// | Hambúrguer | 103 | R$ 1,20 |
// | Cheeseburguer | 104 | R$ 1,30 |
// | Refrigerante... | 32.41 | 56 | (translation_unit) "// 4 - O cardápio de uma lanchonete é o seguinte:\n// | Especificação | Código | Preço |\n// | Cachorro quente | 100 | R$ 1,20 |\n// | Bauru simples | 101 | R$ 1,30 |\n// | Bauru com ovo | 102 | R$ 1,50 |\n// | Hambúrguer | 103 | R$ 1,20 |\n// | Cheeseburguer | 104 | R... | 337 | 0 | {"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 32.41, "nodes": 164, "errors": 0, "source_hash": "2f05afb7416a90ccec480c598c087fb407ed6864c8e2ff9643f1cef8a471739b", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " <st... | 6,225 |
c | //
// TestModuleTool.h
// SDKExample
//
// Created by clownfish on 2021/11/3.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TestModuleTool : NSObject
- (void)callTools;
@end
NS_ASSUME_NONNULL_END
| 17.75 | 12 | (translation_unit) "//\n// TestModuleTool.h\n// SDKExample\n//\n// Created by clownfish on 2021/11/3.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TestModuleTool : NSObject\n\n- (void)callTools;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
(comment) "//"
(comment) "// TestModuleTool.... | 36 | 4 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.75, "nodes": 21, "errors": 0, "source_hash": "f9601b3bdb23f0d6f8cd6971bc2dee6c37b5f32c8e5b3759238224042538da18", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <... | 6,226 |
c | /*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef lint
static char sccsid[] = "@(#)set.c 5.1 (Berkeley) 04/26/85";
#endif not lint
/*
* Routines to set line type.
*/... | 18.79 | 24 | (translation_unit) "/*\n * Copyright (c) 1980 Regents of the University of California.\n * All rights reserved. The Berkeley software License Agreement\n * specifies the terms and conditions for redistribution.\n */\n\n#ifndef lint\nstatic char sccsid[] = "@(#)set.c 5.1 (Berkeley) 04/26/85";\n#endif not lint\n\n/*\n *... | 96 | 0 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 18.79, "nodes": 52, "errors": 0, "source_hash": "921d9b5ea9ae10a72650d4d72589132f3c36e85ce889bb0b4ae6a4581cf0db8d", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,227 |
c | #ifndef TEST_TYPE_INDEX_H_
#define TEST_TYPE_INDEX_H_
#include <cstddef>
namespace test
{
namespace type
{
template<typename T, std::size_t I>
struct Index
{
typedef T Type;
static constexpr std::size_t Value = I;
};
} //!type
} //!test
#endif //!TEST_TYPE_INDEX_H_
| 16.12 | 16 | (translation_unit) "#ifndef TEST_TYPE_INDEX_H_\n#define TEST_TYPE_INDEX_H_\n\n#include <cstddef>\n\nnamespace test\n{\nnamespace type\n{\n\ntemplate<typename T, std::size_t I>\nstruct Index\n{\n typedef T Type;\n static constexpr std::size_t Value = I;\n};\n\n} //!type\n\n} //!test\n\n#endif //!TEST_TYPE_INDEX_H_... | 69 | 5 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.12, "nodes": 46, "errors": 0, "source_hash": "7badc561d7216fdf69c1955a5456889d30417b74f80757a3f47253a88cae3ddd", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,228 |
c | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "chtml.h"
void main_test(int argc, char *argv[])
{
chtml_t *chtml = NULL;
char *out;
chtml = chtml_create();
if (chtml == 0) {
printf("chtml_create failed\n");
return ;
}
out = chtml_print(chtml);
if (out... | 33.17 | 58 | (translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#include "chtml.h"\n\nvoid main_test(int argc, char *argv[])\n{\n chtml_t *chtml = NULL;\n char *out;\n\n chtml = chtml_create();\n if (chtml == 0) {\n printf("chtml_create failed\n");\n return ;\n }\n\n ... | 632 | 0 | {"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.17, "nodes": 325, "errors": 0, "source_hash": "c52df7378ca77b102da0d6cf8aaa1f8ebce93a9b0bc2e3292e2fe98425737b76", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,229 |
c | #ifndef CQJEvent_H
#define CQJEvent_H
#include <CQJObject.h>
#include <QKeyEvent>
class CQJEventType : public CJObjType {
public:
static CJObjTypeP instance(CJavaScript *js);
explicit CQJEventType(CJavaScript *js);
bool hasConstructor() const { return true; }
CJValueP construct(CJavaScript *js, const Valu... | 34.87 | 30 | (translation_unit) "#ifndef CQJEvent_H\n#define CQJEvent_H\n\n#include <CQJObject.h>\n#include <QKeyEvent>\n\nclass CQJEventType : public CJObjType {\n public:\n static CJObjTypeP instance(CJavaScript *js);\n\n explicit CQJEventType(CJavaScript *js);\n\n bool hasConstructor() const { return true; }\n\n CJValueP con... | 356 | 19 | {"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.87, "nodes": 202, "errors": 0, "source_hash": "d53e1c004e032c76a0a1fb591080dd6c2df2505c7d07120ca6eb97ebf49d91c1", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,230 |
c | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <UIKit/UIView.h>
@class UILabel;
@protocol BEEPhoto;
@interface BEECaptionView : UIView
{
id <BEEPhoto> _photo;
UILabel *_l... | 24 | 21 | (translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <UIKit/UIView.h>\n\n@class UILabel;\n@protocol BEEPhoto;\n\n@interface BEECaptionView : UIView\n{\n id <... | 150 | 15 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.0, "nodes": 92, "errors": 0, "source_hash": "aa83903a6227af58ea61b9df4ea27d92094834bdb2126c4a4579545f9ba1814a", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U... | 6,231 |
c | #pragma once
#include <platform/isound.h>
class android_app;
class android_sound final : public isound
{
public:
android_sound(android_app* app);
~android_sound() override;
void play_music(const std::string& music) override;
void stop_music() override;
void play_sound(const std::string& sound) ... | 24.79 | 14 | (translation_unit) "#pragma once\n\n#include <platform/isound.h>\n\nclass android_app;\n\nclass android_sound final : public isound\n{\npublic:\n android_sound(android_app* app);\n ~android_sound() override;\n\n void play_music(const std::string& music) override;\n void stop_music() override;\n\n void pl... | 110 | 6 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.79, "nodes": 64, "errors": 0, "source_hash": "5a98e6473b22d92b40beb781339c3e5a90ea9dfa2cc33b3e8801a4e7f162dad4", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,232 |
c | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 29.63 | 86 | (translation_unit) "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS ... | 607 | 16 | {"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.63, "nodes": 340, "errors": 0, "source_hash": "386c5811c99165cb710d67052d33a45fb24b169fbfdea229230d2805a38899e7", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,233 |
c | // DONE BY VERA
#include <unistd.h> // Librerías
// Función para escribir texto en consola
void ft_putchar(char c)
{
write(1, &c, 1);
}
// Función para escribir una P cuando sea nulo (0) o positivo, N para números negativos
void ft_is_negative(int n)
{
if (n >= 0)
{
ft_putchar('P');
}
else
{
ft_putchar('... | 15.19 | 26 | (translation_unit) "// DONE BY VERA\n\n#include <unistd.h> // Librerías\n\n// Función para escribir texto en consola\n\nvoid ft_putchar(char c)\n{\n write(1, &c, 1);\n}\n\n// Función para escribir una P cuando sea nulo (0) o positivo, N para números negativos\n\nvoid ft_is_negative(int n)\n{\n if (n >= 0)\n {\n ft_put... | 124 | 0 | {"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 15.19, "nodes": 55, "errors": 0, "source_hash": "6f83abca8a8e7dfcb7cb9318ba2f0fb4263469eab42f596fba66dd090d2e8e83", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 6,234 |
c | //
// UIButton+TitleView.h
// Weibo
//
// Created by jacy on 10/10/15.
// Copyright © 2015 jacy. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (TitleView)
/// 定义button
///
/// @param target 点击的目标
/// @param action 点击后执行的方法
/// @param title 控件显示的文字
/// @param image 控件显示的图片
/// @p... | 25.35 | 20 | (translation_unit) "//\n// UIButton+TitleView.h\n// Weibo\n//\n// Created by jacy on 10/10/15.\n// Copyright © 2015 jacy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (TitleView)\n\n/// 定义button\n///\n/// @param target 点击的目标\n/// @param action 点击后执行的方法\n/// @param title 控件显示的文字... | 90 | 6 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.35, "nodes": 44, "errors": 0, "source_hash": "316278e91f1dfc403662a5269f8f3aa81e8a21cafdda14ee4d8e9baa72fcd9f3", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U... | 6,235 |
c | #pragma once
#include <time.h>
namespace cube
{
class Timer
{
private:
time_t m_Time;
double m_Interval;
public:
Timer() {}
Timer(double interval, time_t start = 0) : m_Time(start), m_Interval(interval) {}
~Timer() {}
bool IsTriggered(time_t time, bool reset = true)
{
double seconds = difftime(ti... | 15.32 | 28 | (translation_unit) "#pragma once\n#include <time.h>\n\nnamespace cube\n{\n class Timer\n {\n private:\n time_t m_Time;\n double m_Interval;\n public:\n Timer() {}\n Timer(double interval, time_t start = 0) : m_Time(start), m_Interval(interval) {}\n ~Timer() {}\n\n bool IsTriggered(time_t time, bool reset = true)\... | 159 | 7 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 15.32, "nodes": 92, "errors": 0, "source_hash": "9d6c252ca86de3cace814ef64444179b5f13a8fccf0be3a1cdbdf7e9a45af99c", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,236 |
c | /*
* dumpchars.c
*
* Created on: Feb 19, 2012
* Author: chr
*/
#include <stdio.h>
#include <ctype.h>
int main() {
int i;
printf("Printing punctuation characters\n");
for (i=0;i<256;i++) {
if (ispunct(i)) {
printf("%d --> %c\n", i, i);
}
}
printf("Now printi... | 24.17 | 29 | (translation_unit) "/*\n * dumpchars.c\n *\n * Created on: Feb 19, 2012\n * Author: chr\n */\n\n#include <stdio.h>\n#include <ctype.h>\n\nint main() {\n int i;\n printf("Printing punctuation characters\n");\n for (i=0;i<256;i++) {\n if (ispunct(i)) {\n printf("%d --> %c\n", i, i);\n ... | 238 | 0 | {"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.17, "nodes": 130, "errors": 0, "source_hash": "d8d250c13cf7fca98f24694358a40edcc831d0f6e7936a0d93f5d0f7e16021d4", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 6,237 |
c | #include <stdio.h>
int prime(int n) {
int i;
for(i = 2; i * i <= n; ++i) {
if(n % i == 0) {
return 0;
}
}
return 1;
}
int first_larger_prime(int n) {
++n;
while(!prime(n)) {
++n;
}
return n;
}
int main() {
int n;
scanf("%d", &n);
int lar... | 17.04 | 24 | (translation_unit) "#include <stdio.h>\n\nint prime(int n) {\n int i;\n for(i = 2; i * i <= n; ++i) {\n if(n % i == 0) {\n return 0;\n }\n }\n return 1;\n}\n\nint first_larger_prime(int n) {\n ++n;\n while(!prime(n)) {\n ++n;\n }\n return n;\n}\n\nint main() {\n ... | 176 | 0 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 17.04, "nodes": 102, "errors": 0, "source_hash": "6ec43c9a399c3c9b537c5df4d2d41c2e96c9e380011e5935fb2444b4e8349896", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 6,238 |
c | #ifndef _LEARNIT_STRINGSTORE_H_
#define _LEARNIT_STRINGSTORE_H_
// This file is here because we anticipate our memory needs will grow to the
// point that storing the strings all in memory is infeasible.
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#includ... | 30.09 | 45 | (translation_unit) "#ifndef _LEARNIT_STRINGSTORE_H_
\n#define _LEARNIT_STRINGSTORE_H_
\n// This file is here because we anticipate our memory needs will grow to the
\n// point that storing the strings all in memory is infeasible.
\n#include <string>
\n#include <vector>
\n#include <boost/shared_ptr.hpp>
\n#include <boos... | 316 | 14 | {"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.09, "nodes": 188, "errors": 0, "source_hash": "03c971578363603aa51f84b62cfdee7c423b66cc2b11f60143c8196f5ff6e744", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,239 |
c | /**
* Copyright (c) 2012 Nokia Corporation.
*/
#ifndef APPLICATIONACTIVATIONLISTENER_H
#define APPLICATIONACTIVATIONLISTENER_H
#include <QDeclarativeItem>
class ApplicationActivationListener : public QDeclarativeItem
{
Q_OBJECT
public:
explicit ApplicationActivationListener(QDeclarativeItem *parent = 0);
... | 27 | 21 | (translation_unit) "/**\n * Copyright (c) 2012 Nokia Corporation.\n */\n\n#ifndef APPLICATIONACTIVATIONLISTENER_H\n#define APPLICATIONACTIVATIONLISTENER_H\n\n#include <QDeclarativeItem>\n\nclass ApplicationActivationListener : public QDeclarativeItem\n{\n Q_OBJECT\npublic:\n explicit ApplicationActivationListener... | 93 | 4 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.0, "nodes": 57, "errors": 0, "source_hash": "12d4e524cbb465578d43675621b4d3bffc4702de18564158f766b881feeb0698", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A... | 6,240 |
c | /*
* Copyright (C) 2013-2015
*
* @author <EMAIL>
* @date 2013-11-19
*
* @file UpnpArgumentDirection.h
*
* @remark
*
*/
#ifndef __UPNP_ARGUMENT_DIRECTION_H__
#define __UPNP_ARGUMENT_DIRECTION_H__
#include "tiny_base.h"
#include "upnp_api.h"
TINY_BEGIN_DECLS
typedef enum _UpnpArgumentDirection
{
ARG_UNKNOWN ... | 20.75 | 28 | (translation_unit) "/*\n* Copyright (C) 2013-2015\n*\n* @author <EMAIL>\n* @date 2013-11-19\n*\n* @file UpnpArgumentDirection.h\n*\n* @remark\n*\n*/\n\n#ifndef __UPNP_ARGUMENT_DIRECTION_H__\n#define __UPNP_ARGUMENT_DIRECTION_H__\n\n#include "tiny_base.h"\n#include "upnp_api.h"\n\nTINY_BEGIN_DECLS\n\n\ntypedef enum ... | 86 | 2 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.75, "nodes": 59, "errors": 0, "source_hash": "d5166bc6d8915ce3836217505bdeeb0f14160bc139c311a9382ca5b6fae3f65d", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,241 |
c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); ... | 31.97 | 99 | (translation_unit) "/*
\n * Licensed to the Apache Software Foundation (ASF) under one
\n * or more contributor license agreements. See the NOTICE file
\n * distributed with this work for additional information
\n * regarding copyright ownership. The ASF licenses this file
\n * to you under the Apache License, Version ... | 458 | 0 | {"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 31.97, "nodes": 380, "errors": 0, "source_hash": "ab200c685e2934b2d1f19fcf72bf88178eaf6b3ddd29c4fd928724e7ee5892a8", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern i... | 6,242 |
c | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in s... | 34.93 | 106 | (translation_unit) "// ==========================================================================\n// SeqAn - The Library for Sequence Analysis\n// ==========================================================================\n// Copyright (c) 2006-2018, <NAME>, FU Berlin\n// All rights reserved.\n//\n// R... | 694 | 25 | {"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 34.93, "nodes": 408, "errors": 0, "source_hash": "97412fdb756172a42e10eb108637bbed73bd66aa4b6b06f5853f8106edc0551e", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 6,243 |
c | /* ************************************************************************** */
/* */
/* ::::::::: ::::::::: */
/* pf_print_conv_x.c :+: :+: ... | 34.01 | 84 | (translation_unit) "/* ************************************************************************** */\n/* */\n/* ::::::::: ::::::::: */\n/* pf_print_conv_x.c ... | 879 | 0 | {"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 34.01, "nodes": 549, "errors": 0, "source_hash": "141d7b46bcf41694ecd07d6703ae28818465a3ffd0910bebcbf2cf9830fbe3e1", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,244 |
c | /*
* Copyright (c) 2019, <NAME>.
* 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.
*/
#ifndef FATAL_INCLUDE_fatal_type_string_h
#define FATAL_INCLUDE_fatal_type_string_h
#include <fatal/portability.h>
#... | 29.19 | 21 | (translation_unit) "/*\n * Copyright (c) 2019, <NAME>.\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.\n */\n\n#ifndef FATAL_INCLUDE_fatal_type_string_h\n#define FATAL_INCLUDE_fatal_type_string_h\n\n#i... | 89 | 6 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.19, "nodes": 53, "errors": 0, "source_hash": "c1c81a10a11275143209a16c5ad8c5adf63a5772c7ecb51772e727c9b679abb8", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,245 |
c | /* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2021 - <NAME>
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the... | 34.44 | 71 | (translation_unit) "/* RetroArch - A frontend for libretro.\n * Copyright (C) 2010-2014 - <NAME>\n * Copyright (C) 2011-2021 - <NAME>\n *\n * RetroArch is free software: you can redistribute it and/or modify it under the terms\n * of the GNU General Public License as published by the Free Software Found-\n * atio... | 307 | 0 | {"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.44, "nodes": 217, "errors": 0, "source_hash": "08360a20bb891705db9624fd7a0de2d823869609c75fcc4a6385c1338f81659c", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,246 |
c | #ifndef CONV_H
#define CONV_H
#ifndef _WIN32
#define __cdecl __attribute__((cdecl))
#define __stdcall __attribute__((stdcall))
#define __fastcall __attribute__((fastcall))
#define __thiscall __attribute__((thiscall))
#define _cdecl __attribute__((cdecl))
#define _stdcall __attribute__((stdcall))
#define _fastcall __... | 30.46 | 13 | (translation_unit) "#ifndef CONV_H\n#define CONV_H\n\n#ifndef _WIN32\n\n#define __cdecl __attribute__((cdecl))\n#define __stdcall __attribute__((stdcall))\n#define __fastcall __attribute__((fastcall))\n#define __thiscall __attribute__((thiscall))\n\n#define _cdecl __attribute__((cdecl))\n#define _stdcall __attribute__(... | 45 | 0 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.46, "nodes": 43, "errors": 0, "source_hash": "ba3673dd9b282917d844fb8d4a0b2e94af76e7653b86af3c6aa04abde7f80262", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,247 |
c | /*
* snapshot.h
*
* Created on: Aug 10, 2017
* Author: ramiz
*/
#ifndef SNAPSHOT_H_
#define SNAPSHOT_H_
#include <string>
using namespace std;
/**
* A passive object to save a snapshot of state of vehicle
* at any given time
*/
struct Snapshot {
int lane;
double s;
double d;
double v;
double ... | 16.91 | 33 | (translation_unit) "/*\n * snapshot.h\n *\n * Created on: Aug 10, 2017\n * Author: ramiz\n */\n\n#ifndef SNAPSHOT_H_\n#define SNAPSHOT_H_\n\n#include <string>\nusing namespace std;\n\n/**\n * A passive object to save a snapshot of state of vehicle\n * at any given time\n */\nstruct Snapshot {\n int lane;\n doub... | 153 | 14 | {"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.91, "nodes": 99, "errors": 0, "source_hash": "4f18b4a304a2838f9f06947116f52bfb35c21b1ffd507b07447090c458dd6c10", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,248 |
c | // SDLSyncPData.h
//
#import "SDLRPCRequest.h"
NS_ASSUME_NONNULL_BEGIN
@interface SDLSyncPData : SDLRPCRequest
@end
NS_ASSUME_NONNULL_END
| 16.5 | 8 | (translation_unit) "// SDLSyncPData.h\n//\n\n\n#import "SDLRPCRequest.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SDLSyncPData : SDLRPCRequest\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
(comment) "// SDLSyncPData.h"
(comment) "//"
(preproc_call) "#import "SDLRPCRequest.h"\n"
(preproc_directive) "#import"
(prep... | 22 | 4 | {"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.5, "nodes": 15, "errors": 0, "source_hash": "362404d870f85a3e0be9252b57389d673d62ee629ab6407439f4d1c8c8428da8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"SD... | 6,249 |
c | // Copyright 2014 <NAME>
//
// 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 agreed to in writi... | 32.58 | 40 | (translation_unit) "// Copyright 2014 <NAME>\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 required by applicab... | 317 | 27 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.58, "nodes": 179, "errors": 0, "source_hash": "8e2da8e5db2334c91da54c69d3a6acd02d0fef83bebd8ee33ab1b6cd63806745", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,250 |
c | #pragma once
#if ZEN_ENGINETOOL
namespace zeAss
{
class GfxMesh : public AssetTyped<zenConst::keAssType_Mesh>
{
zenClassDeclare(GfxMesh, Asset)
public:
virtual const zenAss::PropertyDefArray& GetProperties()const;
};
} //namespace zeAss
#endif
| 19.92 | 12 | (translation_unit) "#pragma once\n\n#if ZEN_ENGINETOOL\n\nnamespace zeAss\n{\n class GfxMesh : public AssetTyped<zenConst::keAssType_Mesh>\n {\n zenClassDeclare(GfxMesh, Asset)\n public:\n virtual const zenAss::PropertyDefArray& GetProperties()const;\n };\n} //namespace zeAss\n\n#endif\n"
(preproc_call) "#pragma onc... | 67 | 4 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.92, "nodes": 34, "errors": 0, "source_hash": "a9bd869a4c6464f561f79d71442b841b040ac81dc871dceb1b0fcffc7f3d8f74", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,251 |
c | #pragma once
#include "PlayerObject.h"
#include <vector>
#include <memory>
class ObjectManager {
public:
ObjectManager();
~ObjectManager();
void UpdateObjects();
void RenderObjects();
private:
std::vector<std::unique_ptr<GameObject>> gameObjects;
}; | 18.62 | 13 | (translation_unit) "#pragma once\n#include "PlayerObject.h"\n#include <vector>\n#include <memory>\n\nclass ObjectManager {\npublic:\n ObjectManager();\n ~ObjectManager();\n\n void UpdateObjects();\n void RenderObjects();\nprivate:\n std::vector<std::unique_ptr<GameObject>> gameObjects;\n};"
(preproc_call) "#pragma on... | 82 | 1 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.62, "nodes": 48, "errors": 0, "source_hash": "38c9e989bcda7265481713815e2f95cb263d0d437c1df2392d76bc9d684403c5", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,252 |
c | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Sound/SoundNode.h"
#include "SoundNodeLocalPlayer.generated.h"
/**
* Choose different branch for sounds attached to locally controlled player
*
* Originates from ShooterGame project by Epic Games.
*/
UCLASS(hidecategories = Object, e... | 40.14 | 21 | (translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "Sound/SoundNode.h"\n#include "SoundNodeLocalPlayer.generated.h"\n\n/**\n* Choose different branch for sounds attached to locally controlled player\n*\n* Originates from ShooterGame project by Epic Games.\n*/\nU... | 151 | 9 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 40.14, "nodes": 94, "errors": 0, "source_hash": "17cb10b0178f2dd8d5f6bc9c894e4e67eb748cfe440ecf13f65ec0f760cc08c0", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,253 |
c | //
// DQWordShowLayout.h
// LoveWords
//
// Created by youdingquan on 16/4/21.
// Copyright © 2016年 youdingquan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DQWordShowLayout : UICollectionViewLayout
@property(nonatomic,assign)NSInteger currentState;
@end
| 23.91 | 11 | (translation_unit) "//\n// DQWordShowLayout.h\n// LoveWords\n//\n// Created by youdingquan on 16/4/21.\n// Copyright © 2016年 youdingquan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DQWordShowLayout : UICollectionViewLayout\n@property(nonatomic,assign)NSInteger currentState;\n@end\n"
(commen... | 34 | 6 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.91, "nodes": 21, "errors": 0, "source_hash": "3c1f5f1945e634e5b2e5dc2462d5d459748e817c0779264e6029c4e6c880a19b", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK... | 6,254 |
c | /**
* Copyright 2017-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, including without limitation the rights
* to use, copy, modify, merge, publish, d... | 33.87 | 60 | (translation_unit) "/**\n * Copyright 2017-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 Software without restriction, including without limitation the rights\n * to use, copy,... | 283 | 20 | {"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.87, "nodes": 156, "errors": 0, "source_hash": "a49a630677f0216dddead067612700354b3e36f69db0e8c8b8d1ef3cab8fa644", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 6,255 |
c | /**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
/**********************************************************************/
/*
ipface.h
Interfa... | 25.27 | 124 | (translation_unit) "/**********************************************************************/
\n/** Microsoft Windows/NT **/
\n/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
\n/**********************************************************************/
\n
\... | 392 | 6 | {"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 25.27, "nodes": 245, "errors": 0, "source_hash": "d5c3d8ccbac68a713a1868e7b50b627d520a5b9b49895f6943ed99be7c3696f9", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _MSTA... | 6,256 |
c | #ifndef F_CPU
#define F_CPU 16000000UL
#endif
#ifndef __AVR_ATmega328P__
#define __AVR_ATmega328P__
#endif
#ifndef BAUD
#define BAUD 9600
#endif
#include "logger.h"
#include <avr/io.h>
#include <util/setbaud.h>
uint8_t loglibIsInitialized = 0;
void init()
{
/*
UBRR(USART Baud Rate Register)
Sets upp... | 29.25 | 56 | (translation_unit) "#ifndef F_CPU\n#define F_CPU 16000000UL\n#endif\n\n#ifndef __AVR_ATmega328P__\n#define __AVR_ATmega328P__\n#endif\n\n#ifndef BAUD\n#define BAUD 9600\n#endif\n\n#include "logger.h"\n#include <avr/io.h>\n#include <util/setbaud.h>\n\nuint8_t loglibIsInitialized = 0;\n\nvoid init()\n{\n /* \n UBR... | 195 | 0 | {"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.25, "nodes": 125, "errors": 0, "source_hash": "6af762e3e0ef574d1406bc7fa733b348f9cc78b193e7f62efbbe17aaba83fd28", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 6,257 |
c | #pragma once
//For use by Leaf Applications
//-------Core---------------------------------
#include "Leaf/Core/Application.h"
#include "Leaf/Core/Logger.h"
#include "Leaf/Core/Inputs.h"
#include "Leaf/Core/KeyCodes.h"
//--------------------------------------------
//-------Renderer-----------------------------
#inc... | 32.79 | 24 | (translation_unit) "#pragma once\n\n//For use by Leaf Applications\n\n//-------Core---------------------------------\n#include "Leaf/Core/Application.h"\n#include "Leaf/Core/Logger.h"\n#include "Leaf/Core/Inputs.h"\n#include "Leaf/Core/KeyCodes.h"\n//--------------------------------------------\n\n\n//-------Renderer--... | 79 | 0 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.79, "nodes": 36, "errors": 0, "source_hash": "457c71e6d21d1e5945259cb3555bafd8793b23425cca99dbc0b986e1ac098712", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,258 |
c | /*
* findtext.c
* Copyright (C) 1998-2004 <NAME>; Released under GNU GPL
*
* Description:
* Find the blocks that contain the text of MS Word files
*/
#include <stdio.h>
#include <stdlib.h>
#include "antiword.h"
/*
* bAddTextBlocks - Add the blocks to the text block list
*
* Returns TRUE when successful, FAL... | 26.03 | 270 | (translation_unit) "/*\n * findtext.c\n * Copyright (C) 1998-2004 <NAME>; Released under GNU GPL\n *\n * Description:\n * Find the blocks that contain the text of MS Word files\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "antiword.h"\n\n\n/*\n * bAddTextBlocks - Add the blocks to the text block list\n *\n... | 2,102 | 0 | {"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 26.03, "nodes": 1286, "errors": 0, "source_hash": "c6392abceb3de470106f64b30d93903bbc72993137a801152ca82e2c5f92bb29", "categorized_nodes": 929}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i... | 6,259 |
c | // vmv_x_s: rd = vs2[rs1]
require_vector(true);
require(insn.v_vm() == 1);
uint64_t xmask = UINT64_MAX >> (64 - P.get_max_xlen());
reg_t rs1 = RS1;
reg_t sew = P.VU.vsew;
reg_t rs2_num = insn.rs2();
if (!(rs1 >= 0 && rs1 < (P.VU.get_vlen() / sew))) {
WRITE_RD(0);
} else {
switch(sew) {
case e8:
WRITE_RD(P.VU... | 22.97 | 29 | (translation_unit) "// vmv_x_s: rd = vs2[rs1]\nrequire_vector(true);\nrequire(insn.v_vm() == 1);\nuint64_t xmask = UINT64_MAX >> (64 - P.get_max_xlen());\nreg_t rs1 = RS1;\nreg_t sew = P.VU.vsew;\nreg_t rs2_num = insn.rs2();\n\nif (!(rs1 >= 0 && rs1 < (P.VU.get_vlen() / sew))) {\n WRITE_RD(0);\n} else {\n switch(sew)... | 337 | 0 | {"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.97, "nodes": 218, "errors": 0, "source_hash": "f113cab7cf2635c411a9f46534baa74c28022ece622c52777e35aaa30474a505", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "requ... | 6,260 |
c | // Assignment operators
// Assignment operators applied to assign the result of an expression to a variable.
// C has a collection of shorthand assignment operators.
/*
Operator Description
-------- ------------
= Assign
+= Increments then assign
-= Decrements then assign
*= Multi... | 32 | 47 | (translation_unit) "// Assignment operators\n\n// Assignment operators applied to assign the result of an expression to a variable. \n// C has a collection of shorthand assignment operators.\n\n/*\n\nOperator Description\n-------- ------------\n= Assign\n+= Increments then assign\n-= Decremen... | 257 | 0 | {"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.0, "nodes": 131, "errors": 0, "source_hash": "442cc31843917952db7f1c29d74f64ba6043f7d261b0b05d7502764d1cf1804a", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 6,261 |
c | /*
* GStreamer
*
* unit test for (audio) parser
*
* Copyright (C) 2008 Nokia Corporation. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Softw... | 37.21 | 80 | (translation_unit) "/*\n * GStreamer\n *\n * unit test for (audio) parser\n *\n * Copyright (C) 2008 Nokia Corporation. All rights reserved.\n *\n * Contact: <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License... | 413 | 0 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 37.21, "nodes": 301, "errors": 0, "source_hash": "31f94feea47658c78bc02fc32aff27070deb6da75d225d5b5469d25150e32468", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,262 |
c | //
// ViewController.h
// ElegantCamera
//
// Created by Aka on 2019/10/31.
// Copyright © 2019 Aka. All rights reserved.
//
#import "ECBaseViewController.h"
#import <TZImagePickerController/TZImagePickerController.h>
@interface ECMainViewController : ECBaseViewController
@end
@interface ECMainViewController (... | 26.51 | 37 | (translation_unit) "//\n// ViewController.h\n// ElegantCamera\n//\n// Created by Aka on 2019/10/31.\n// Copyright © 2019 Aka. All rights reserved.\n//\n\n#import "ECBaseViewController.h"\n#import <TZImagePickerController/TZImagePickerController.h>\n\n\n@interface ECMainViewController : ECBaseViewController\n\n@end\... | 202 | 39 | {"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.51, "nodes": 142, "errors": 0, "source_hash": "bb08a00ba971933ce680ad53c96650fbd4ef677bbb78dd90c8dcecfd48d04cb9", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \... | 6,263 |
c | /*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 <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; version 2 of
* the License.
*
* This program i... | 35.54 | 39 | (translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2017 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; version 2 of\n * the L... | 99 | 0 | {"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.54, "nodes": 79, "errors": 0, "source_hash": "523f940a87c8c616d9410f479c4d1be22a9c1bed83fbda3d8a054a97b1b95d6b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,264 |
c | #include "bonfire.h"
#include "console.h"
#include "uart.h"
__attribute__((weak)) trapframe_t* riscv_trap_handler(trapframe_t *ptf);
trapframe_t* riscv_trap_handler(trapframe_t *ptf)
{
printk("\nTrap cause: %lx\n",ptf->cause);
dump_tf(ptf);
char c=uart_readchar();
if (c=='r' || c=='R')
ptf->... | 25.88 | 16 | (translation_unit) "#include "bonfire.h"\n#include "console.h"\n#include "uart.h"\n\n__attribute__((weak)) trapframe_t* riscv_trap_handler(trapframe_t *ptf);\n\ntrapframe_t* riscv_trap_handler(trapframe_t *ptf)\n{\n \n printk("\nTrap cause: %lx\n",ptf->cause);\n dump_tf(ptf);\n char c=uart_readchar();\n if ... | 163 | 0 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.88, "nodes": 104, "errors": 0, "source_hash": "dfef7157f147170f9ea7a6ac47af7220968379a706bf33e306398293e8a9f1e0", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 6,265 |
c | /*
* Copyright © 2021 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | 38.05 | 173 | (translation_unit) "/*\n * Copyright © 2021 Intel Corporation\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use... | 1,271 | 0 | {"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 38.05, "nodes": 792, "errors": 0, "source_hash": "605e5a762a87f3c076becadce41f44582bcf072619475b4f733d9a7c829b8508", "categorized_nodes": 559}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc... | 6,266 |
c | //
// Drawable.h
// Sakura GL Toy
//
// Created by <NAME> on 2014-06-14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#ifndef DRAWABLE
#define DRAWABLE
#include "kazmath.h"
#include <GL/glew.h>
#ifndef __EMSCRIPTEN__
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#else
#define GLFW_INCLUD... | 21.68 | 47 | (translation_unit) "//\n// Drawable.h\n// Sakura GL Toy\n//\n// Created by <NAME> on 2014-06-14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#ifndef DRAWABLE\n#define DRAWABLE\n\n#include "kazmath.h"\n\n#include <GL/glew.h>\n\n#ifndef __EMSCRIPTEN__\n #define GLFW_INCLUDE_GLU\n #include <GLFW/g... | 230 | 6 | {"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 21.68, "nodes": 156, "errors": 0, "source_hash": "7876a5a9b5bf6fadb2a32276af695c4d32ee729687bad5373fc12c424eb38742", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,267 |
c | #ifndef _AES_H_
#define _AES_H_
#include "TaskMngr.h"
void setSeed(u32 seed);
u32 RandomSimple();
u32 RandomMultiply();
u16 CRC16(BaseSize_t size, byte_ptr msg);
#ifdef NEED_BASE64
BaseSize_t base64Encode(BaseSize_t len, byte_ptr input, string_t output);
BaseSize_t base64Decode(const string_t input, byte... | 28.18 | 67 | (translation_unit) "#ifndef _AES_H_
\n#define _AES_H_
\n
\n#include "TaskMngr.h"
\n
\nvoid setSeed(u32 seed);
\nu32 RandomSimple();
\nu32 RandomMultiply();
\nu16 CRC16(BaseSize_t size, byte_ptr msg);
\n
\n#ifdef NEED_BASE64
\nBaseSize_t base64Encode(BaseSize_t len, byte_ptr input, string_t output);
\nBaseSize_t base64D... | 378 | 0 | {"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 28.18, "nodes": 264, "errors": 0, "source_hash": "bdf5f7d0241ed121aaba9bc0ec6e9f57a8074ba68b1866b77adb3af4310c3520", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,268 |
c | #include "include/args_parser.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
static char* fifoname;
int parse_args(int argc, char* const argv[], args_data_t* const data) {
if (argc != 4 && argc != 6) {
return PARSE_ERROR;
}
bool fifo_set = false;
bool time_set = false;
bo... | 31.77 | 40 | (translation_unit) "#include "include/args_parser.h"\n\n#include <stdbool.h>\n#include <stdlib.h>\n#include <string.h>\n\nstatic char* fifoname;\n\nint parse_args(int argc, char* const argv[], args_data_t* const data) {\n if (argc != 4 && argc != 6) {\n return PARSE_ERROR;\n }\n bool fifo_set = false;\n... | 427 | 0 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 31.77, "nodes": 265, "errors": 0, "source_hash": "aafe0dfaf7192031c4b3aa8dd0bfa344ed650c20db5ad885ef210d7aeccf5d68", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,269 |
c | //
// MediaPlayer.h
// MediaPlayer
//
// Copyright 2008-2011 Apple, Inc. All rights reserved.
//
#import <MediaPlayer/MediaPlayerDefines.h>
#import <MediaPlayer/MPMediaItem.h>
#import <MediaPlayer/MPMediaItemCollection.h>
#import <MediaPlayer/MPMediaLibrary.h>
#import <MediaPlayer/MPMediaPickerController.h>
#import... | 34.3 | 20 | (translation_unit) "//\n// MediaPlayer.h\n// MediaPlayer\n//\n// Copyright 2008-2011 Apple, Inc. All rights reserved.\n//\n\n#import <MediaPlayer/MediaPlayerDefines.h>\n#import <MediaPlayer/MPMediaItem.h>\n#import <MediaPlayer/MPMediaItemCollection.h>\n#import <MediaPlayer/MPMediaLibrary.h>\n#import <MediaPlayer/MPM... | 49 | 0 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 34.3, "nodes": 42, "errors": 0, "source_hash": "71f3350ec2060aac15c8b041c3d93c6250445a8b4eabb625f59af07d6d37862a", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <M... | 6,270 |
c | /*
* Copyright 2018-2019 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include <sys/param.h>
#include "graphcontext.h"
#include "serializers/graphcontext_type.h"
#include "../util/arr.h"
#include "../util/rmalloc.h"
#include "../redismodule.h"
... | 39.6 | 259 | (translation_unit) "/*\n* Copyright 2018-2019 Redis Labs Ltd. and Contributors\n*\n* This file is available under the Redis Labs Source Available License Agreement\n*/\n\n#include <sys/param.h>\n#include "graphcontext.h"\n#include "serializers/graphcontext_type.h"\n#include "../util/arr.h"\n#include "../util/rmalloc.h"... | 2,579 | 3 | {"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 39.6, "nodes": 1599, "errors": 0, "source_hash": "cc3834659516d411239a599722637460373e6f5e8e02f9f76b746a7fdafff4e1", "categorized_nodes": 1107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i... | 6,271 |
c | #pragma once
#include "glsl_parser.h"
int count_varying_locations_used(GLSLRepresentation r);
int count_varyings_by_precision(GLSLRepresentation r, Keyword p);
std::string convert_to_tf(const std::string& s);
| 40.8 | 5 | (translation_unit) "#pragma once\n\n#include "glsl_parser.h"\n\nint count_varying_locations_used(GLSLRepresentation r);\nint count_varyings_by_precision(GLSLRepresentation r, Keyword p);\nstd::string convert_to_tf(const std::string& s);\n"
(preproc_call) "#pragma once\n"
(preproc_directive) "#pragma"
(preproc... | 57 | 2 | {"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 40.8, "nodes": 34, "errors": 0, "source_hash": "4bd7879f29200adfc2aadb4b34e286476f2b283aeb94999285816aaec06ffa1c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc... | 6,272 |
c | // Copyright (C) 2009-2013 <NAME> <<EMAIL>>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License Version 2 as
// published by the Free Software Foundation. You may not use, modify or
// distribute this program under any other version of the ... | 34.14 | 155 | (translation_unit) "// Copyright (C) 2009-2013 <NAME> <<EMAIL>>\n//\n// This program is free software; you can redistribute it and/or modify\n// it under the terms of the GNU General Public License Version 2 as\n// published by the Free Software Foundation. You may not use, modify or\n// distribute this program under ... | 1,879 | 0 | {"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 34.14, "nodes": 1253, "errors": 0, "source_hash": "dab3ecd6d16073a378de1429423022aad39842514b2b86247ed5968171d9d124", "categorized_nodes": 899}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i... | 6,273 |
c | /*
* Copyright 2017 <NAME>.
*
* 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 agreed to in w... | 27.04 | 113 | (translation_unit) "/*\n * Copyright 2017 <NAME>.\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 required by app... | 251 | 0 | {"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 27.04, "nodes": 173, "errors": 0, "source_hash": "7a4a2618f0776b6d9731bce7cacb17ecf773f25ea9c4162c6c9160d943c0a021", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 6,274 |
c | /*
* include/tdigest.c
*
* Copyright (c) 2016, <NAME> <<EMAIL> at fast<EMAIL>>
*/
#ifndef TDIGEST_H
#define TDIGEST_H
#define DEFAULT_COMPRESSION 400
struct Centroid {
long long weight;
double mean;
};
struct Point {
double value;
long long weight;
struct Point *next;
};
struct TDigest {
... | 25.11 | 37 | (translation_unit) "/*\n * include/tdigest.c\n *\n * Copyright (c) 2016, <NAME> <<EMAIL> at fast<EMAIL>>\n */\n\n#ifndef TDIGEST_H\n#define TDIGEST_H\n\n#define DEFAULT_COMPRESSION 400\n\nstruct Centroid {\n long long weight;\n double mean;\n};\n\nstruct Point {\n double value;\n long long weight;\n stru... | 260 | 0 | {"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 25.11, "nodes": 204, "errors": 0, "source_hash": "debcd5b8c93b3b8e5b24225619e32152cfff6ce038a14dddff7df7941134c04a", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,275 |
c | /*
* =====================================================================================
*
* Filename: template.c
*
* Description:
*
* Version: 1.0
* Created: 02/28/2019 09:03:59 AM
* Revision: none
* Compiler: gcc template.c -o template.out [-lm]
* Usage:... | 23.14 | 28 | (translation_unit) "/*\n * =====================================================================================\n *\n * Filename: template.c\n *\n * Description: \n *\n * Version: 1.0\n * Created: 02/28/2019 09:03:59 AM\n * Revision: none\n * Compiler: gcc template.c -o templat... | 38 | 0 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.14, "nodes": 22, "errors": 0, "source_hash": "33f78e588eba96cb86c3b0e4fb560bd20593114b57f3214da2db2166a7eb7a80", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 6,276 |
c | #ifndef ARK_RENDERER_BASE_FORWARDING_H_
#define ARK_RENDERER_BASE_FORWARDING_H_
#include "core/forwarding.h"
namespace ark {
class Animation;
class AnimationInput;
class Atlas;
class Attribute;
class Buffer;
class Characters;
class ComputeContext;
class DrawingBuffer;
class DrawingContext;
class Emitter;
class Frame... | 19.51 | 53 | (translation_unit) "#ifndef ARK_RENDERER_BASE_FORWARDING_H_\n#define ARK_RENDERER_BASE_FORWARDING_H_\n\n#include "core/forwarding.h"\n\nnamespace ark {\n\nclass Animation;\nclass AnimationInput;\nclass Atlas;\nclass Attribute;\nclass Buffer;\nclass Characters;\nclass ComputeContext;\nclass DrawingBuffer;\nclass Drawing... | 210 | 1 | {"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 19.51, "nodes": 111, "errors": 0, "source_hash": "2608f9df1d00ab545558043b280c12f512f509df6806dd7dfcc085ba355cb835", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,277 |
c | #pragma once
#include "modules/ModuleInput.h"
namespace Hachiko
{
struct InputEventPayload
{
InputEventPayload(SDL_Scancode key, KeyState state) :
key(key), state(state) {}
[[nodiscard]] KeyState GetState() const
{
return state;
}
[[nodiscard]]... | 23.1 | 21 | (translation_unit) "#pragma once\n#include "modules/ModuleInput.h"\n\nnamespace Hachiko\n{\n struct InputEventPayload\n {\n\n InputEventPayload(SDL_Scancode key, KeyState state) :\n key(key), state(state) {}\n\n [[nodiscard]] KeyState GetState() const\n {\n return state;... | 114 | 5 | {"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.1, "nodes": 68, "errors": 0, "source_hash": "b23283be84c2aa9f9d1f49d0f271e90ff799f0130a6f6001acb70ef675636ca0", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on... | 6,278 |
c | #ifndef UTILS_UTILS_H
#define UTILS_UTILS_H
class Utils {
public:
void sayHello() const;
};
#endif // define UTILS_UTILS_H
| 17.14 | 7 | (translation_unit) "#ifndef UTILS_UTILS_H\n#define UTILS_UTILS_H\n\nclass Utils {\npublic:\n void sayHello() const;\n};\n\n#endif // define UTILS_UTILS_H\n"
(preproc_ifdef) "#ifndef UTILS_UTILS_H\n#define UTILS_UTILS_H\n\nclass Utils {\npublic:\n void sayHello() const;\n};\n\n#endif"
(#ifndef) "#ifndef"
... | 30 | 1 | {"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.14, "nodes": 15, "errors": 0, "source_hash": "81ce8f10e33b370da17d8357f62d8044dcb81c5ad6e42cd5b66078e662031db2", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef UT... | 6,279 |
c | #include <stdio.h>
void wczytaj(int n,int tab[n][n]);
int maxim(int n,int tab[n][n]);
int main()
{
int n,i,j;
do
{
printf("Liczba n musi spelniac warunek: n<=10\n");
printf("Podaj n: ");
scanf("%i",&n);
}while(n>10);
int tab[n][n];
wczytaj(n,tab);
for(i=0;i<n;i++)
... | 17.06 | 54 | (translation_unit) "#include <stdio.h>\n\nvoid wczytaj(int n,int tab[n][n]);\nint maxim(int n,int tab[n][n]);\nint main()\n{\n int n,i,j;\n do\n {\n printf("Liczba n musi spelniac warunek: n<=10\n");\n printf("Podaj n: ");\n scanf("%i",&n);\n }while(n>10);\n\n int tab[n][n];\n wcz... | 478 | 0 | {"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 17.06, "nodes": 267, "errors": 0, "source_hash": "7c655b428cab61afa7813023791e0aa9c6cb90540e3087d6581ca2f2b73ba3cb", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,280 |
c | #ifndef CHART_SPECLAYOUT_H
#define CHART_SPECLAYOUT_H
#include "chart/generator/diagram.h"
namespace Vizzu
{
namespace Diag
{
class SpecLayout
{
public:
SpecLayout(Diagram &diagram) : diagram(diagram) {}
bool addIfNeeded();
private:
Diagram &diagram;
};
}
}
#endif
| 13.89 | 18 | (translation_unit) "#ifndef CHART_SPECLAYOUT_H\n#define CHART_SPECLAYOUT_H\n\n#include "chart/generator/diagram.h"\n\nnamespace Vizzu\n{\nnamespace Diag\n{\n\nclass SpecLayout\n{\npublic:\n SpecLayout(Diagram &diagram) : diagram(diagram) {}\n bool addIfNeeded();\nprivate:\n Diagram &diagram;\n};\n\n}\n}\n\n#endif\n"
... | 74 | 1 | {"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 13.89, "nodes": 39, "errors": 0, "source_hash": "563097b5d06e7c6242c677778c2ac54e0d27e71f6b13f7c8dd09d236d5ec0f44", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,281 |
c | //
// @author <EMAIL>
//
#ifndef __BDS_H_HELPERS__
#define __BDS_H_HELPERS__
#include <op_boilerplate.h>
#include <NDArray.h>
namespace nd4j {
namespace ops {
namespace helpers {
template <typename T>
int bdsFunctor(NDArray<T>* x_shape, NDArray<T>* y_shape, NDArray<T>* output);
}
}
}
#endif
| 17.81 | 16 | (translation_unit) "//\n// @author <EMAIL>\n//\n#ifndef __BDS_H_HELPERS__\n#define __BDS_H_HELPERS__\n#include <op_boilerplate.h>\n#include <NDArray.h>\n\nnamespace nd4j {\nnamespace ops {\nnamespace helpers {\n\n template <typename T>\n int bdsFunctor(NDArray<T>* x_shape, NDArray<T>* y_shape, NDArray<T>* output... | 81 | 2 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.81, "nodes": 62, "errors": 0, "source_hash": "51fa2056767e63c500d49f74357f2b88e67abf7d57c47f65cb1c0f8b73934d21", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,282 |
c | #ifndef INTERLACED_ANS_ERRORS_OPENCL_H
#define INTERLACED_ANS_ERRORS_OPENCL_H
namespace OpenCLErrors {
class InvalidOperationException : public std::exception {
public:
std::string msg;
InvalidOperationException(const std::string &msg) {
this->msg = "interlaced_ans.opencl: Invalid ... | 30.53 | 15 | (translation_unit) "#ifndef INTERLACED_ANS_ERRORS_OPENCL_H\n#define INTERLACED_ANS_ERRORS_OPENCL_H\n\nnamespace OpenCLErrors {\n class InvalidOperationException : public std::exception {\n public:\n std::string msg;\n\n InvalidOperationException(const std::string &msg) {\n this->msg = "in... | 108 | 4 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.53, "nodes": 59, "errors": 0, "source_hash": "1cd221120bf6befb7c5ac926af227a2a5548c0c7f93584376222e652c3f4e72a", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,283 |
c | // TRENTO: Reduced Thickness Event-by-event Nuclear Topology
// Copyright 2015 <NAME>, <NAME>
// TRENTO3D: Three-dimensional extension of TRENTO by <NAME>
// MIT License
#ifndef NUCLEON_H
#define NUCLEON_H
#include <boost/math/constants/constants.hpp>
#include "fast_exp.h"
#include "fwd_decl.h"
#include "random.h"
... | 33.87 | 183 | (translation_unit) "// TRENTO: Reduced Thickness Event-by-event Nuclear Topology\n// Copyright 2015 <NAME>, <NAME>\n// TRENTO3D: Three-dimensional extension of TRENTO by <NAME>\n// MIT License\n\n#ifndef NUCLEON_H\n#define NUCLEON_H\n\n#include <boost/math/constants/constants.hpp>\n\n#include "fast_exp.h"\n#include "fw... | 1,061 | 54 | {"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 33.87, "nodes": 595, "errors": 0, "source_hash": "86b85b88b5fc808be252e89ab81da93a45f0048f66c0878dbfbbbc18da253c5f", "categorized_nodes": 381}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef NUCLE... | 6,284 |
c | #ifndef FSDICT_TRANSTABLE_CELL_H
#define FSDICT_TRANSTABLE_CELL_H FSDICT_TRANSTABLE_CELL_H
namespace fsdict {
/**
* Represents one unit of the sparse table implementation in TransTable
* \author <NAME> <<EMAIL>>
* \date Jan 2007
*/
template< TransTableType tttype, typename InternalCharTyp... | 25.81 | 16 | (translation_unit) "#ifndef FSDICT_TRANSTABLE_CELL_H\n#define FSDICT_TRANSTABLE_CELL_H FSDICT_TRANSTABLE_CELL_H\n\n\nnamespace fsdict {\n /**\n * Represents one unit of the sparse table implementation in TransTable\n * \author <NAME> <<EMAIL>>\n * \date Jan 2007\n */\n\n template< TransTableType t... | 51 | 4 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.81, "nodes": 35, "errors": 0, "source_hash": "fa0f910690ee44565f27e5a6259c9afcdfa1d20e9f14111d8b5d2b7428cc8e09", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,285 |
c | //
// YUVFrameCopier.h
// video_player
//
// Created by apple on 16/9/1.
// Copyright © 2016年 xiaokai.zhan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BaseEffectFilter.h"
#import "BLFileQueue.hpp"
@interface YUVFrameCopier : BaseEffectFilter
- (void) renderWithTexId:(BLVideoPacket*) video... | 24.31 | 13 | (translation_unit) "//\n// YUVFrameCopier.h\n// video_player\n//\n// Created by apple on 16/9/1.\n// Copyright © 2016年 xiaokai.zhan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "BaseEffectFilter.h"\n#import "BLFileQueue.hpp"\n\n@interface YUVFrameCopier : BaseEffectFilter\n\n- (void) rend... | 46 | 7 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.31, "nodes": 30, "errors": 0, "source_hash": "482c9b1970ba1e8a2686f8d2bfb5b037e69fe3251f248cddff602050d2b07b2b", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 6,286 |
c | // Copyright 2016 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 InterpolationTypesMap_h
#define InterpolationTypesMap_h
#include "wtf/Vector.h"
#include <memory>
namespace blink {
class InterpolationType;
cl... | 33.42 | 19 | (translation_unit) "// Copyright 2016 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 InterpolationTypesMap_h\n#define InterpolationTypesMap_h\n\n#include "wtf/Vector.h"\n#include <memory>\n\nnamespace blink ... | 116 | 7 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.42, "nodes": 63, "errors": 0, "source_hash": "40306d4fcdfe8573b01da9265c2af7adfdf76235ca43f2e993355b1f6a4f1cab", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,287 |
c | /*
* Author: Crownstone Team
* Copyright: Crownstone (https://crownstone.rocks)
* Date: Okt 18, 2019
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
*/
#pragma once
#include <algorithm>
namespace CsMath{
/**
* returns lhs+rhs, clamping return values that would roll over
* to the min/max v... | 28.41 | 160 | (translation_unit) "/*\n * Author: Crownstone Team\n * Copyright: Crownstone (https://crownstone.rocks)\n * Date: Okt 18, 2019\n * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)\n */\n#pragma once\n\n#include <algorithm>\n\nnamespace CsMath{\n\n/**\n * returns lhs+rhs, clamping return values that wo... | 1,016 | 57 | {"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 28.41, "nodes": 649, "errors": 0, "source_hash": "74fa67974436fbb401782a1dbe5e1d030b851e8bbab1ca5e7b1d8b67bc00f8c6", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm... | 6,288 |
c | //
// Created by serg on 04/06/14.
// Copyright (c) 2015 redetection. All rights reserved.
//
#ifndef _RD_TOSHL_KIT_
#define _RD_TOSHL_KIT_
#import "RTKClient.h"
#import "RTKExpense.h"
#import "RTKUser.h"
#endif /* _RD_TOSHL_KIT_ */
| 22.3 | 10 | (translation_unit) "//\n// Created by serg on 04/06/14.\n// Copyright (c) 2015 redetection. All rights reserved.\n//\n\n#ifndef _RD_TOSHL_KIT_\n#define _RD_TOSHL_KIT_\n\n#import "RTKClient.h"\n#import "RTKExpense.h"\n#import "RTKUser.h"\n\n#endif /* _RD_TOSHL_KIT_ */\n"
(comment) "//"
(comment) "// Created by serg ... | 22 | 0 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.3, "nodes": 16, "errors": 0, "source_hash": "5f50ddb6a2081e5293a9ecd4821cd285c7b05cdd98750e1aef0cfd6390f9d50a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _R... | 6,289 |
c | //-*- Mode: C++ -*-
// $Id: $
#ifndef ALIHLTJETREADER_H
#define ALIHLTJETREADER_H
/* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/**... | 34.7 | 226 | (translation_unit) "//-*- Mode: C++ -*-\n\n// $Id: $\n\n#ifndef ALIHLTJETREADER_H\n#define ALIHLTJETREADER_H\n\n/* This file is property of and copyright by the ALICE HLT Project * \n * ALICE Experiment at CERN, All rights reserved. *\n * See cxx source for full Copyright notice ... | 606 | 8 | {"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 34.7, "nodes": 332, "errors": 0, "source_hash": "909dd42443050e88a29884ad292ad55fd44c46f16ff617b377c18689513de26e", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 6,290 |
c | #ifndef _E_MAIN_MENU_BAR_H_
#define _E_MAIN_MENU_BAR_H_
#include "Editor.h"
class E_MainMenuBar : public Editor
{
public:
E_MainMenuBar(const char* name, bool isActive = true);
~E_MainMenuBar();
bool Draw(ImGuiIO& io)override;
bool CleanUp()override;
bool GetAboutWindowState()const;
bool GetSaveWindowState()c... | 21.97 | 32 | (translation_unit) "#ifndef _E_MAIN_MENU_BAR_H_\n#define _E_MAIN_MENU_BAR_H_\n\n#include "Editor.h"\n\nclass E_MainMenuBar : public Editor\n{\npublic:\n E_MainMenuBar(const char* name, bool isActive = true);\n ~E_MainMenuBar();\n\n bool Draw(ImGuiIO& io)override;\n bool CleanUp()override;\n\n bool GetAboutWindowState()... | 218 | 10 | {"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.97, "nodes": 138, "errors": 0, "source_hash": "698e759bf0e9c2b27ee2ebcfdbd7b98c3d66361a9a7adcaee1f343254194459b", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 6,291 |
c | #pragma once
#include <cstdint>
#include <ostream>
#include <vector>
#include <string>
namespace Common {
class IInputStream;
class IOutputStream;
void read(IInputStream& in, void* data, size_t size);
void read(IInputStream& in, int8_t& value);
void read(IInputStream& in, int16_t& value);
void read(IInputStream& in... | 32.68 | 75 | (translation_unit) "#pragma once\n\n#include <cstdint>\n#include <ostream>\n#include <vector>\n#include <string>\n\nnamespace Common {\n\nclass IInputStream;\nclass IOutputStream;\n\nvoid read(IInputStream& in, void* data, size_t size);\nvoid read(IInputStream& in, int8_t& value);\nvoid read(IInputStream& in, int16_t& ... | 963 | 63 | {"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 32.68, "nodes": 585, "errors": 0, "source_hash": "f40287f08ee2a1e0e713cae0540bb609edb1274f84e83a045b4becd2e9aa5083", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 6,292 |
c |
#pragma once
//////////////////////////////////////////////////////////////////////
//! Includes
//////////////////////////////////////////////////////////////////////
namespace engine
{
class APPLICATION_WINDOWS
{
public:
APPLICATION_WINDOWS();
protected:
void process_os_messages();
};
}
| 20.36 | 14 | (translation_unit) "#pragma once\n\n//////////////////////////////////////////////////////////////////////\n//! Includes\n//////////////////////////////////////////////////////////////////////\n\nnamespace engine\n{\n class APPLICATION_WINDOWS\n {\n public:\n APPLICATION_WINDOWS();\n\n protected:\n void process_os_me... | 42 | 0 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 18, "errors": 0, "source_hash": "1d1d31db5f7490b3a7271b8900e3e4ffa0235c09d491e01c5e0b4324d095b06b", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,293 |
c | //
// MHHTTPService+Live.h
// WeChat
//
// Created by senba on 2017/10/19.
// Copyright © 2017年 CoderMikeHe. All rights reserved.
// 获取直播相关的接口
#import "MHHTTPService.h"
#import "MHLiveRoom.h"
@interface MHHTTPService (Live)
/// https://live.9158.com/Room/GetHotLive_v2?cache=3&lat=22.54192103514200&lon=113.96939... | 36.7 | 23 | (ERROR) "//\n// MHHTTPService+Live.h\n// WeChat\n//\n// Created by senba on 2017/10/19.\n// Copyright © 2017年 CoderMikeHe. All rights reserved.\n// 获取直播相关的接口\n\n#import "MHHTTPService.h"\n#import "MHLiveRoom.h"\n\n@interface MHHTTPService (Live)\n\n/// https://live.9158.com/Room/GetHotLive_v2?cache=3&lat=22.541921... | 83 | 8 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.7, "nodes": 50, "errors": 0, "source_hash": "409d011cf01e48f538fd782dde98f137aa371401a5475c15a2381b0589b5f0ee", "categorized_nodes": 29}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// MHHTTPService+Live.h... | 6,294 |
c | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the Apache Licens... | 34.9 | 188 | (translation_unit) "/*\n * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The OpenAirInterface Software Alliance licenses this file to You und... | 829 | 0 | {"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 34.9, "nodes": 522, "errors": 0, "source_hash": "2186f9eff45d2cf80f9921eed2c9bb1f335a02a2a7555b6173b8d861fe9ffd27", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 6,295 |
c | //
// Created by <NAME> on 2019-03-11.
//
#ifndef SAXION_Y2Q2_RENDERING_RENDERSETTINGS_H
#define SAXION_Y2Q2_RENDERING_RENDERSETTINGS_H
#include <memory>
#include "config.hpp"
#include "glm.hpp"
#include "Texture.hpp"
namespace en {
struct RenderSettings {
glm::vec3 ambientColor = {0, 0, 0};
st... | 24.94 | 17 | (translation_unit) "//\n// Created by <NAME> on 2019-03-11.\n//\n\n#ifndef SAXION_Y2Q2_RENDERING_RENDERSETTINGS_H\n#define SAXION_Y2Q2_RENDERING_RENDERSETTINGS_H\n\n#include <memory>\n#include "config.hpp"\n#include "glm.hpp"\n#include "Texture.hpp"\n\nnamespace en {\n\n struct RenderSettings {\n\n glm::vec3 ... | 81 | 4 | {"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.94, "nodes": 48, "errors": 0, "source_hash": "47c7a111ecd56394402881c59ac9afe787dd7806b62b15014ec974a95b36e93f", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,296 |
c | // Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef D2_LOG_H
#define D2_LOG_H
#include <... | 32.89 | 19 | (translation_unit) "// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")\n//\n// This Source Code Form is subject to the terms of the Mozilla Public\n// License, v. 2.0. If a copy of the MPL was not distributed with this\n// file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\n#ifndef D2_LOG_H\n#... | 77 | 3 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.89, "nodes": 46, "errors": 0, "source_hash": "d96faf16a7a7da3c193c96283c4665e0d6e67901ef2d1e796af1a404afb8561e", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,297 |
c | /*
* Copyright (c) 2020-2021, SkillerRaptor <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <cuchar>
namespace std
{
using streamoff = long long;
using streamsize = ptrdiff_t;
template <typename State>
class fpos
{
public:
// TODO: Implement fpos
};
using streampos = fpos<mbstate_... | 20.35 | 23 | (translation_unit) "/*\n * Copyright (c) 2020-2021, SkillerRaptor <<EMAIL>>\n *\n * SPDX-License-Identifier: MIT\n */\n\n#pragma once\n\n#include <cuchar>\n\nnamespace std\n{\n using streamoff = long long;\n using streamsize = ptrdiff_t;\n\n template <typename State>\n class fpos\n {\n public:\n // TODO: Implement fpo... | 113 | 9 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.35, "nodes": 89, "errors": 0, "source_hash": "69fbb629a3aade9c1ba0a26d51ef275b7a1510d0767d553f80f7de03a7b4feff", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 6,298 |
c | #ifndef WBACTIONROSACOMPLETEOBJECTIVE_H
#define WBACTIONROSACOMPLETEOBJECTIVE_H
#include "wbaction.h"
#include "hashedstring.h"
class WBActionRosaCompleteObjective : public WBAction
{
public:
WBActionRosaCompleteObjective();
virtual ~WBActionRosaCompleteObjective();
DEFINE_WBACTION_FACTORY( RosaCompleteObjective ... | 36.22 | 18 | (translation_unit) "#ifndef WBACTIONROSACOMPLETEOBJECTIVE_H\n#define WBACTIONROSACOMPLETEOBJECTIVE_H\n\n#include "wbaction.h"\n#include "hashedstring.h"\n\nclass WBActionRosaCompleteObjective : public WBAction\n{\npublic:\n WBActionRosaCompleteObjective();\n virtual ~WBActionRosaCompleteObjective();\n\n DEFINE_WBACTION... | 105 | 5 | {"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.22, "nodes": 59, "errors": 0, "source_hash": "adc673c529caeb57586eb743ce3a730b5fe7728c5452a7e0d8f8e7087f78b770", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 6,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.