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 | //
// DCRejectionFilter.h
//
//
// Created by linyehui on 2014-04-10.
// Copyright (c) 2014年 linyehui. All rights reserved.
//
#ifndef __DC_REJECTION_FILTER_H__
#define __DC_REJECTION_FILTER_H__
class DCRejectionFilter
{
public:
DCRejectionFilter(float poleDist = DCRejectionFilter::kDefaultPoleDist);
void Inpla... | 22.36 | 22 | (translation_unit) "//\n// DCRejectionFilter.h\n//\n//\n// Created by linyehui on 2014-04-10.\n// Copyright (c) 2014年 linyehui. All rights reserved.\n//\n\n#ifndef __DC_REJECTION_FILTER_H__\n#define __DC_REJECTION_FILTER_H__\n\nclass DCRejectionFilter\n{\npublic:\n DCRejectionFilter(float poleDist = DCRejectionFilte... | 91 | 1 | {"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.36, "nodes": 55, "errors": 0, "source_hash": "724e1b1ad0c164bd415dc19cad32a24cda4a7c740102135e4f02114d2cd2e4eb", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef __... | 7,000 |
c | // Copyright <NAME> & <NAME> 2010-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SNOWHOUSE_STRINGIZERS_H
#define SNOWHOUSE_STRINGIZERS_H
#include "stringize.h"
nam... | 24.04 | 124 | (translation_unit) "// Copyright <NAME> & <NAME> 2010-2012.
\n// Distributed under the Boost Software License, Version 1.0.
\n// (See accompanying file LICENSE_1_0.txt or copy at
\n// http://www.boost.org/LICENSE_1_0.txt)
\n
\n#ifndef SNOWHOUSE_STRINGIZERS_H
\n#define SNOWHOUSE_STRINGIZERS_H
\n
\n#... | 770 | 44 | {"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 24.04, "nodes": 473, "errors": 0, "source_hash": "9234ca64437c22ea3efa88c66b5dbda328f6f3db432a8e3e8e1d11cb934b7c3e", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 7,001 |
c | #pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
class FSystemsModule : public IModuleInterface
{
public:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
| 22.78 | 9 | (translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n\n#include "Modules/ModuleManager.h"\n\nclass FSystemsModule : public IModuleInterface\n{\npublic:\n virtual void StartupModule() override;\n\n virtual void ShutdownModule() override;\n};\n"
(preproc_call) "#pragma once\n"
(preproc_directive) "#pragma"... | 55 | 5 | {"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.78, "nodes": 30, "errors": 0, "source_hash": "8c9a21d778ffa70121c59b9697f45e97f3b7f7f0aceacea5e4c6b635cf6ea8fc", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on... | 7,002 |
c | /*
* utils.h
*
* Created on: 15. 3. 2017
* Author: mazlik
*/
#include "utils.h"
#include <string.h>
#include <ctype.h>
void strtrim(char *str) {
char *start, *end;
/* Find first non-whitespace */
for (start = str; *start; start++)
{
if (!isspace((unsigned char)st... | 22.63 | 62 | (translation_unit) "/*
\n * utils.h
\n *
\n * Created on: 15. 3. 2017
\n * Author: mazlik
\n */
\n
\n#include "utils.h"
\n
\n#include <string.h>
\n#include <ctype.h>
\n
\nvoid strtrim(char *str) {
\n char *start, *end;
\n
\n /* Find first non-whitespace */
\n for (start = str; *start; start++)
\n {
\n... | 357 | 0 | {"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 22.63, "nodes": 220, "errors": 0, "source_hash": "88d87f46d7c7e8263a4cd7af6e0f9849aba35009056d44ffea2630b0d28c91ab", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,003 |
c | /* *
* IAP interface for LPC4357
*
*
* allow write data to interal flash
*/
#include <LPC122x.h>
#include "crc32.h"
#include "boot_op.h"
#include "flash.h"
/*
* prepare for write
*
*
* prepare for write operation
*/
static int iap_prepare_for_write(unsigned long start, unsigned long end)
{
struct iap_... | 19.54 | 327 | (translation_unit) "/* *\n * IAP interface for LPC4357\n *\n *\n * allow write data to interal flash\n */\n\n#include <LPC122x.h>\n#include "crc32.h"\n#include "boot_op.h"\n#include "flash.h"\n\n\n/*\n * prepare for write\n *\n *\n * prepare for write operation\n */\n \nstatic int iap_prepare_for_write(unsigned long ... | 1,675 | 1 | {"language": "c", "success": true, "metadata": {"lines": 327, "avg_line_length": 19.54, "nodes": 1059, "errors": 0, "source_hash": "588d79e01400d20a3bb29312481d98035752b17b803edf3ecae4859bba6c9b04", "categorized_nodes": 774}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i... | 7,004 |
c | //
// MBRNotificationListResponse.h
// MBRWalletNetworking
//
// Created by sean on 2018/6/6.
// Copyright © 2018 sean. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MBRNotification.h"
@interface MBRNotificationListResponse : NSObject
@property (nonatomic, assign) NSInteger total;
@property ... | 27.92 | 13 | (translation_unit) "//\n// MBRNotificationListResponse.h\n// MBRWalletNetworking\n//\n// Created by sean on 2018/6/6.\n// Copyright © 2018 sean. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MBRNotification.h"\n@interface MBRNotificationListResponse : NSObject\n\n@property (nonatomic, assi... | 59 | 10 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.92, "nodes": 40, "errors": 0, "source_hash": "1045f44abf5f2d6d96fa1e053e0546ac589a6464c53bf09ab249970ef8ce1aee", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F... | 7,005 |
c | //
// BinzDropdownSubCell.h
// XiaoTuanTuanHD
//
// Created by 张彬 on 2018/8/12.
// Copyright © 2018年 bin.z. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BinzDropdownMenu.h"
@interface BinzDropdownSubCell : UITableViewCell
+ (instancetype)dropdownSubCellWithTableView:(UITableView *) tableView;
@end
| 25.25 | 12 | (translation_unit) "//\n// BinzDropdownSubCell.h\n// XiaoTuanTuanHD\n//\n// Created by 张彬 on 2018/8/12.\n// Copyright © 2018年 bin.z. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BinzDropdownMenu.h"\n\n@interface BinzDropdownSubCell : UITableViewCell\n\n+ (instancetype)dropdownSubCellWithTableView:(... | 43 | 5 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.25, "nodes": 25, "errors": 0, "source_hash": "c77dfb72a935450b938b45b3ca0d62f4806d0ee83ada9649e679a55bbb5c94df", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U... | 7,006 |
c | /* Test of sentence handling.
Copyright (C) 2015-2016 Free Software Foundation, Inc.
Written by <NAME> <<EMAIL>>, 2015.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3... | 30.72 | 61 | (translation_unit) "/* Test of sentence handling.\n Copyright (C) 2015-2016 Free Software Foundation, Inc.\n Written by <NAME> <<EMAIL>>, 2015.\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Fo... | 363 | 0 | {"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.72, "nodes": 236, "errors": 0, "source_hash": "4839fd5d400fccd83f3047075709e9f1b583a42edbea1cec5df0398e4c2cb31e", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef... | 7,007 |
c | /* Copyright The kNet Project.
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 ... | 28.37 | 46 | (translation_unit) "/* Copyright The kNet Project.
\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 ... | 115 | 6 | {"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.37, "nodes": 68, "errors": 0, "source_hash": "cfede1f395c9c28dde185e27d059317335f278c38e57f18dc38fded60147f368", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 7,008 |
c | #pragma once
#include "base/basictypes.h"
// Warning: decodes/encodes JIS, not Unicode.
// Use a table to map.
struct ShiftJIS {
static const uint32_t INVALID = (uint32_t) -1;
ShiftJIS(const char *c) : c_(c), index_(0) {}
uint32_t next() {
uint32_t j = (uint8_t)c_[index_++];
int row;
bool emojiAdjust = fa... | 20.88 | 119 | (translation_unit) "#pragma once\n\n#include "base/basictypes.h"\n\n// Warning: decodes/encodes JIS, not Unicode.\n// Use a table to map.\nstruct ShiftJIS {\n static const uint32_t INVALID = (uint32_t) -1;\n\n ShiftJIS(const char *c) : c_(c), index_(0) {}\n\n uint32_t next() {\n uint32_t j = (uint8_t)c_[index_++];\n\n... | 881 | 19 | {"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 20.88, "nodes": 523, "errors": 0, "source_hash": "a8e160d6e8585358f07edadbaa2e87b7abf79cc6068a44fc7abfb812d538cdda", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm... | 7,009 |
c | #include <stdio.h>
main()
{
int c, n, i;
int cur;
n = 8;
cur = 0;
while ((c = getchar()) != EOF) {
if (c == '\t') {
for (i = n - cur; i > 0; --i)
putchar(' ');
cur = 0;
} else {
putchar(c);
cur++;
if (cur > n)
cur = 0;
}
}
}
| 12 | 20 | (translation_unit) "#include <stdio.h>\n\nmain()\n{\n int c, n, i;\n int cur;\n\n n = 8;\n\n cur = 0;\n\n while ((c = getchar()) != EOF) {\n if (c == '\t') {\n for (i = n - cur; i > 0; --i)\n putchar(' ');\n\n cur = 0;\n } else {\n putchar(c);\n cur++;\n if (cur > n)\n cur = 0;\n }\n }\n}\n"
(prepr... | 145 | 0 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 12.0, "nodes": 87, "errors": 0, "source_hash": "35a17b2e158716ff14698739a2647fbf0095fea6833e4b86edd048bfd931a631", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ... | 7,010 |
c | #ifndef __CATHEDRALEDITOR_H__
#define __CATHEDRALEDITOR_H__
#include <WaveSabreVstLib.h>
using namespace WaveSabreVstLib;
class CathedralEditor : public VstEditor
{
public:
CathedralEditor(AudioEffect *audioEffect);
virtual ~CathedralEditor();
virtual void Open();
};
#endif
| 17.56 | 16 | (translation_unit) "#ifndef __CATHEDRALEDITOR_H__
\n#define __CATHEDRALEDITOR_H__
\n
\n#include <WaveSabreVstLib.h>
\nusing namespace WaveSabreVstLib;
\n
\nclass CathedralEditor : public VstEditor
\n{
\npublic:
\n CathedralEditor(AudioEffect *audioEffect);
\n virtual ~CathedralEditor();
\n
\n virtual void Open();
\n};
... | 63 | 4 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.56, "nodes": 41, "errors": 0, "source_hash": "36c67ea60061c77654bef5aefbc2e538bc2dcc9ac2d1a7457bbb356389feda84", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,011 |
c | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
@interface TSUTraceableResourceTokenGroup : NSObject <TSUTraceableResourceToken> {
<TSUTraceableResourceToken> * _token1;
<TSUTraceableResourceToken> * _token2;
}
@property (nonatomic, readonly) ... | 35.19 | 27 | (translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport\n */\n\n@interface TSUTraceableResourceTokenGroup : NSObject <TSUTraceableResourceToken> {\n <TSUTraceableResourceToken> * _token1;\n <TSUTraceableResourceToken> * _token2;\n}\n\n@pr... | 306 | 29 | {"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.19, "nodes": 199, "errors": 0, "source_hash": "3c84852f2aaffb13d54c37ff1f375adbd5faf39c515dcc948db1fa16e205624b", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ... | 7,012 |
c | /*scope.c
* this code was written to demonstrate how variables are scoped in the c
* programming language. In writing this code, I referenced the Second
* edition of The C Programming Language by <NAME> and
* <NAME>. specifically, I referenced the section in the
* first chapter that discusses variable scoping.
... | 22.7 | 23 | (translation_unit) "/*scope.c\n * this code was written to demonstrate how variables are scoped in the c\n * programming language. In writing this code, I referenced the Second \n * edition of The C Programming Language by <NAME> and\n * <NAME>. specifically, I referenced the section in the\n * first chapter that discu... | 77 | 0 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.7, "nodes": 46, "errors": 0, "source_hash": "9ea88d5628f315f54cd603849802843dfca26c48d05644bc6b284aea10bb1947", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# inclu... | 7,013 |
c | ///////////////////////////////////////////////////////////////////////////////
// Name: wx/os2/checklst.h
// Purpose: wxCheckListBox class - a listbox with checkable items
// Note: this is an optional class.
// Author: <NAME>
// Modified by:
// Created: 10/13/99
// Copyright: (c) <NA... | 35.64 | 74 | (translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// Name: wx/os2/checklst.h\n// Purpose: wxCheckListBox class - a listbox with checkable items\n// Note: this is an optional class.\n// Author: <NAME>\n// Modified by:\n// Created: 10/13/... | 388 | 25 | {"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 35.64, "nodes": 227, "errors": 0, "source_hash": "9d18fd64976968ca4e7af04646df052140b2a43b47527520cc217d92a85dc5ec", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,014 |
c | //
// NO10.c
// NO10
//
// Created by wanyakun on 2020/12/1.
//
#include "NO10.h"
#include "uthash.h"
#include <stdlib.h>
typedef struct {
char* key;
bool val;
UT_hash_handle hh;
} HashMap;
HashMap *memo = NULL;
// 暴力递归 i标示s的索引,j表示p的索引
bool dp(char * s, char * p, int i, int j) {
// 备忘录查找
char*... | 22.89 | 46 | (translation_unit) "//\n// NO10.c\n// NO10\n//\n// Created by wanyakun on 2020/12/1.\n//\n\n#include "NO10.h"\n#include "uthash.h"\n#include <stdlib.h>\n\ntypedef struct {\n char* key;\n bool val;\n UT_hash_handle hh;\n} HashMap;\nHashMap *memo = NULL;\n// 暴力递归 i标示s的索引,j表示p的索引\nbool dp(char * s, char * p, i... | 447 | 0 | {"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 22.89, "nodes": 275, "errors": 0, "source_hash": "818949ac9dd623511728a54f38862f5927775158bacc2a08bc4562616ab5b453", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,015 |
c | /* typechk.c - type checker */
#define AST_NODE_ID
#ifndef AST_NAMES
#define AST_NAMES
#endif
#include "ast.h"
void check_types(NODE *ast)
{
//DATATYPE type;
switch (ast->nodetype)
{
case NT_PRIM:
// TODO
break;
case NT_IDENT:
// TODO
break;
case NT_INT:
// TODO
break;
case NT_DOUBLE:
// TODO
... | 12.49 | 37 | (translation_unit) "/* typechk.c - type checker */\n\n#define AST_NODE_ID\n#ifndef AST_NAMES\n#define AST_NAMES\n#endif\n\n#include "ast.h"\n\nvoid check_types(NODE *ast)\n{\n //DATATYPE type;\n switch (ast->nodetype)\n {\n case NT_PRIM:\n // TODO\n break;\n case NT_IDENT:\n // TODO\n break;\n case NT_INT:\n // TO... | 109 | 0 | {"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 12.49, "nodes": 68, "errors": 0, "source_hash": "1686d1fa057cb05e4a17a4a05107d4f96688a24203c89c20f5587c037d360717", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define AS... | 7,016 |
c | #include <string.h>
#include "trace.h"
static __thread struct trace trace;
void trace_R(const char *name, value_t value)
{
int i = trace.num_events;
trace.events[i].type = EV_R;
strncpy(trace.events[i].u.r.name, name, 32);
trace.events[i].u.r.name[31] = 0;
trace.events[i].u.r.value = value;
trace.num_events++;
... | 26.47 | 183 | (translation_unit) "#include <string.h>\n#include "trace.h"\n\nstatic __thread struct trace trace;\n\nvoid trace_R(const char *name, value_t value)\n{\n int i = trace.num_events;\n trace.events[i].type = EV_R;\n strncpy(trace.events[i].u.r.name, name, 32);\n trace.events[i].u.r.name[31] = 0;\n trace.events[i].u.r.value... | 1,961 | 0 | {"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 26.47, "nodes": 1232, "errors": 0, "source_hash": "7862b1d920c36bab676ed15b473bd6bec52bc65192560f4ec97675d17bfaafcc", "categorized_nodes": 1018}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#... | 7,017 |
c | //
// NSObject+StringTypeCate.h
// LuShang
//
// Created by BigKrist on 16/10/11.
// Copyright © 2016年 CMCCIOT. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSObject (StringTypeCate)
- (BOOL)isValidNonNilStringType;
@end
| 21.64 | 11 | (translation_unit) "//\n// NSObject+StringTypeCate.h\n// LuShang\n//\n// Created by BigKrist on 16/10/11.\n// Copyright © 2016年 CMCCIOT. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSObject (StringTypeCate)\n- (BOOL)isValidNonNilStringType;\n@end\n"
(comment) "//"
(comment) "// ... | 35 | 4 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.64, "nodes": 19, "errors": 0, "source_hash": "8304c6a183ff431160a61cd1c98647b29e800f1d925d9734ff7dd32623ebf434", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 7,018 |
c | #include <ansi.h>
inherit QUARRY;
void create()
{
set_name(NOR + CYN "黑熊" NOR, ({ "hei xiong", "hei", "xiong" }));
set("long", CYN "这是一只身材巨大,凶猛异常的黑熊。\n" NOR);
set("age", 8);
set("str", 50);
set("dex", 20);
set("con", 50);
set("max_qi", 6000);
set("max_jing", 6000);
... | 30.04 | 28 | (translation_unit) "#include <ansi.h>\ninherit QUARRY;\n\nvoid create()\n{\n set_name(NOR + CYN "黑熊" NOR, ({ "hei xiong", "hei", "xiong" }));\n set("long", CYN "这是一只身材巨大,凶猛异常的黑熊。\n" NOR);\n\n set("age", 8);\n set("str", 50);\n set("dex", 20);\n set("con", 50);\n set("max_qi", 6000);... | 360 | 0 | {"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 30.04, "nodes": 141, "errors": 0, "source_hash": "c90a941c6c6700413746ab647c84aa2ccbd3e00bc409e9749c388be7328ea933", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,019 |
c | // Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_PICKLE_BUFFER_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_PICKLE_BUFFER_H_
#include <stddef.h>
#include "base/macros.h"... | 39.4 | 40 | (translation_unit) "// Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_PICKLE_BUFFER_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_PICKLE_BUFFER_H_\n\n#include <stddef.h... | 237 | 8 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 39.4, "nodes": 134, "errors": 0, "source_hash": "163c399f2e90601b3aaf3ee5b4e9a34d16c2dc95c36aac5700a72aaa384373da", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,020 |
c | #define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdlib.h>
#include <string.h>
#include <listobject.c>
static PyObject *
timsort(PyObject *self, PyObject *args)
{
PyObject * arr;
Py_ssize_t minrun;
if (!PyArg_ParseTuple(args, "nO", &minrun, &arr))
return NULL;
PyList_Custom_Sort(arr, minr... | 27.06 | 33 | (translation_unit) "#define PY_SSIZE_T_CLEAN\n#include <Python.h>\n#include <stdlib.h>\n#include <string.h>\n#include <listobject.c>\n\nstatic PyObject *\ntimsort(PyObject *self, PyObject *args)\n{\n PyObject * arr;\n Py_ssize_t minrun;\n if (!PyArg_ParseTuple(args, "nO", &minrun, &arr))\n return NULL;\... | 198 | 0 | {"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.06, "nodes": 113, "errors": 0, "source_hash": "4e742e82d188b6cf25a3b63e4a0f32ae3798c5454791b34aa756fc07a33430d2", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define P... | 7,021 |
c |
// (C) Copyright <NAME> 2011-2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(QOR_VMD_DETAIL_SEQUENCE_TYPE_H)
#define QOR_VMD_DETAIL_SEQUENCE_TYPE_H
#inclu... | 57.78 | 153 | (translation_unit) "// (C) Copyright <NAME> 2011-2015\n// Use, modification and distribution are subject to the Boost Software License,\n// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt).\n\n#if !defined(QOR_VMD_DETAIL_SEQUENCE_TYPE_H)\n#define QOR_VMD_DETAI... | 298 | 0 | {"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 57.78, "nodes": 168, "errors": 0, "source_hash": "9845ac1a33eb46d5582b7656461e7c7caa6634e595b4b34f279c0c9e806ca66f", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def... | 7,022 |
c | /* GStreamer H265 encoder plugin
* Copyright (C) 2019 <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 Software Foundation; either
* version 2 of the License, or (at your option) any ... | 28.6 | 115 | (translation_unit) "/* GStreamer H265 encoder plugin\n * Copyright (C) 2019 <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 as published by the Free Software Foundation; either\n * version 2 of the License... | 392 | 3 | {"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 28.6, "nodes": 279, "errors": 0, "source_hash": "f96392d90aef96597e2430f5d9baa5fe84fcb49fb81269468653deed425f812e", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,023 |
c | /********************************************************************************/
/* */
/* Project : P A P Y R U S Toolkit */
/* File : PapyEnumModules3.h */
/* Function : co... | 22.03 | 212 | (translation_unit) "/********************************************************************************/\n/* */\n/* Project : P A P Y R U S Toolkit */\n/* File : PapyEnumModules3.h ... | 594 | 0 | {"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 22.03, "nodes": 381, "errors": 0, "source_hash": "e78c84c9edeb16d5e565a2b787287ff966d8c64b334c8fa1e101c3bbb03438c9", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 7,024 |
c | //dufang.c 四川唐門—毒房
#include <ansi.h>
#include <room.h>
inherit ROOM;
int do_putin(object me, object obj);
void create()
{
set("short", "煉毒房");
set("long",
"這裏是唐門的煉毒房。屋中沒有什麼擺設,只是靠牆擺着三個木架,\n"
"架子上擺滿了藥瓶藥罐,屋子正中用上好的青石壘成了一個灶台一個怕有\n"
"千斤重的紫銅藥爐重重的壓在上面,讓人奇怪的是兩丈見方的屋子裏竟沒\n"
"有一個窗户。\n"
);
... | 34.09 | 117 | (translation_unit) "//dufang.c 四川唐門—毒房\n\n#include <ansi.h>\n#include <room.h>\n\ninherit ROOM;\n\nint do_putin(object me, object obj);\n\nvoid create()\n{\n set("short", "煉毒房");\n set("long",\n"這裏是唐門的煉毒房。屋中沒有什麼擺設,只是靠牆擺着三個木架,\n"\n"架子上擺滿了藥瓶藥罐,屋子正中用上好的青石壘成了一個灶台一個怕有\n"\n"千斤重的紫銅藥爐重重的壓在上面,讓人奇怪的是... | 1,169 | 6 | {"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 34.09, "nodes": 569, "errors": 0, "source_hash": "1105f6889ab6355ad8455c6d952690e2a749555e122f08910b453f6cea1076f2", "categorized_nodes": 412}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": ".h>... | 7,025 |
c | #include "catchWish.h"
//用于定位起始截取点
int search(void *fp, char *s)
{
int i = 0;
int j = 0;
int k = 1;
char c = '%';
for(i = 0; *(s+i) != '\0'; i++);
j = i;
while(fread(&c, 1, 1, fp))
{
// if(c == *s || c == *s-32) //不区分大小写
if(c == *s)
{
while(i-- != 1)
{
fread(&c, 1, 1, fp);
// if(c == *(s+(... | 15.14 | 42 | (translation_unit) "#include "catchWish.h"\n\n//用于定位起始截取点\nint search(void *fp, char *s)\n{\n int i = 0;\n int j = 0;\n int k = 1;\n char c = '%';\n for(i = 0; *(s+i) != '\0'; i++);\n j = i;\n\n while(fread(&c, 1, 1, fp))\n {\n// if(c == *s || c == *s-32) //不区分大小写\n if(c == *s)\n {\n while(i-- != 1)\n {\n f... | 235 | 0 | {"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 15.14, "nodes": 127, "errors": 0, "source_hash": "37abb958906f253961b059d7fe8c430aca1c8f08387b71b971b02bde9f1ee7a3", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 7,026 |
c | /***************************************************************************
sid6581.h
MAME/MESS interface for SID6581 and SID8580 chips
***************************************************************************/
#pragma once
#ifndef __SID6581_H__
#define __SID6581_H__
#include "devlegcy.h"
... | 18.73 | 37 | (translation_unit) "/***************************************************************************
\n
\n sid6581.h
\n
\n MAME/MESS interface for SID6581 and SID8580 chips
\n
\n***************************************************************************/
\n
\n#pragma once
\n
\n#ifndef __SID6581_H__
\n#define __SID658... | 105 | 0 | {"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.73, "nodes": 66, "errors": 0, "source_hash": "f3174a0ce0c349a3dfcde86b00b4786f2ab82e1c3046a7a7842c0b5014a3c9f3", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 7,027 |
c | //
// SparkAction.h
// ActivatePowerMode
//
// Created by Jobs on 15/12/2.
// Copyright © 2015年 Jobs. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SparkAction : NSObject
@property (nonatomic, assign, getter=isEnableAction) BOOL enableAction;
+ (instancetype)sharedAction;
- (void)sparkAtP... | 29.54 | 13 | (translation_unit) "//\n// SparkAction.h\n// ActivatePowerMode\n//\n// Created by Jobs on 15/12/2.\n// Copyright © 2015年 Jobs. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SparkAction : NSObject\n\n@property (nonatomic, assign, getter=isEnableAction) BOOL enableAction;\n\n+ (instancet... | 83 | 9 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.54, "nodes": 50, "errors": 0, "source_hash": "92eab1a9cec3ee0d0090e4002cb4fa5823981185184184fc3e0f33a141b4d363", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 7,028 |
c | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/Pasteboard.framework/Pasteboard
*/
@interface PBObjectToObjectCoercion : NSObject {
NSMutableDictionary * _blockByClass;
NSMutableOrderedSet * _classOrder;
Class _theClass;
}
@property (nonatomic, retain) NSMutableDictionary *blo... | 35.17 | 24 | (translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/Pasteboard.framework/Pasteboard\n */\n\n@interface PBObjectToObjectCoercion : NSObject {\n NSMutableDictionary * _blockByClass;\n NSMutableOrderedSet * _classOrder;\n Class _theClass;\n}\n\n@property (nonatomic, re... | 270 | 21 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.17, "nodes": 162, "errors": 0, "source_hash": "979fb0dc22b16d1dbab152560ad7f3fbcd87b21bc7118624d0a69d79f4ba6613", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ... | 7,029 |
c | #ifndef _CLOCK_PRIVATE_H
#define _CLOCK_PRIVATE_H
/**
* clk_get - lookup and obtain a reference to a clock producer.
* @dev: device for clock "consumer"
* @id: clock comsumer ID
*
* Returns a struct clk corresponding to the clock producer, or
* valid IS_ERR() condition containing errno. The implementation
* us... | 30.42 | 98 | (translation_unit) "#ifndef _CLOCK_PRIVATE_H\n#define _CLOCK_PRIVATE_H\n\n/**\n * clk_get - lookup and obtain a reference to a clock producer.\n * @dev: device for clock "consumer"\n * @id: clock comsumer ID\n *\n * Returns a struct clk corresponding to the clock producer, or\n * valid IS_ERR() condition containing err... | 229 | 0 | {"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 30.42, "nodes": 176, "errors": 0, "source_hash": "fe9efd8543ec1988d2df6239c930220e895a2bff68f85884e157926b4592c790", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,030 |
c | //
// MBPopup.h
// MBPopup
//
#import <Cocoa/Cocoa.h>
//! Project version number for MBPopup.
FOUNDATION_EXPORT double MBPopupVersionNumber;
//! Project version string for MBPopup.
FOUNDATION_EXPORT const unsigned char MBPopupVersionString[];
// In this header, you should import all the public headers of your fra... | 36.8 | 10 | (translation_unit) "//\n// MBPopup.h\n// MBPopup\n//\n\n#import <Cocoa/Cocoa.h>\n\n//! Project version number for MBPopup.\nFOUNDATION_EXPORT double MBPopupVersionNumber;\n\n//! Project version string for MBPopup.\nFOUNDATION_EXPORT const unsigned char MBPopupVersionString[];\n\n// In this header, you should import a... | 30 | 1 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.8, "nodes": 15, "errors": 0, "source_hash": "c69e9d24339f9b27919e06e852e64c32ead1cea643b57e88d07dfb878e12432b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <C... | 7,031 |
c | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** ... | 36.98 | 124 | (translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).\n** Contact: http://www.qt-project.org/legal\n**\n** This file is part of the QtDeclarative module of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:LGPL21$\n** ... | 749 | 42 | {"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 36.98, "nodes": 457, "errors": 0, "source_hash": "3fa7c8d95b13a6842275ad9374c7c59323e6a5316d842046826d931d88885378", "categorized_nodes": 327}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 7,032 |
c | /*
K.N.King "C Programming. A Modern Approach."
Programming project 6 p.121
Write a program that prompts the user to enter a number n,
then prints all even squares between 1 and n. For example,
if the user enters 100, the program should print the following:
4
16
36
64
100
*/
#include <stdlib.h>
#include <stdio.h>
... | 23.35 | 40 | (translation_unit) "/*\nK.N.King "C Programming. A Modern Approach."\nProgramming project 6 p.121\n\nWrite a program that prompts the user to enter a number n,\nthen prints all even squares between 1 and n. For example,\nif the user enters 100, the program should print the following:\n\n4\n16\n36\n64\n100\n\n*/\n\n#inc... | 235 | 0 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.35, "nodes": 145, "errors": 0, "source_hash": "162ae1224615d7940071bc9054e5ee4431de809138a502e9bb0b4ecc256f0c82", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 7,033 |
c | #ifndef SENZIPAPP_H
#define SENZIPAPP_H
#define BASE_ID 127
#define SINK_NODE_ID 0
#define NUM_MEASUREMENTS 3
#define SAMPLE_PERIOD 2000
enum {
AM_BASE_MSG = 37,
};
enum {
START = 1,
};
typedef nx_struct base_msg {
nx_int16_t data[NUM_MEASUREMENTS];
nx_uint8_t type;
nx_uint8_t src;
nx_uint8_t parent;
... | 16.68 | 22 | (translation_unit) "#ifndef SENZIPAPP_H\n#define SENZIPAPP_H\n\n#define BASE_ID 127\n#define SINK_NODE_ID 0\n#define NUM_MEASUREMENTS 3\n#define SAMPLE_PERIOD 2000\n\nenum {\n AM_BASE_MSG = 37,\n};\n\nenum {\n START = 1,\n};\n\ntypedef nx_struct base_msg {\n nx_int16_t data[NUM_MEASUREMENTS];\n nx_uint8_t type;\n ... | 89 | 0 | {"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 16.68, "nodes": 65, "errors": 0, "source_hash": "7dde4636f1abef6d2599a76298ea6a7462be23093d43439697bb94e724582f2d", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,034 |
c | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/window/window.hpp>
#import <Cocoa/Cocoa.h>
namespace mango
{
struct WindowHandle
{
// window state
id window;
bool looping;
u32 key... | 26.04 | 25 | (translation_unit) "/*\n MANGO Multimedia Development Platform\n Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved.\n*/\n#include <mango/window/window.hpp>\n\n#import <Cocoa/Cocoa.h>\n\nnamespace mango\n{\n struct WindowHandle\n {\n // window state\n id window;\n ... | 108 | 10 | {"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.04, "nodes": 64, "errors": 0, "source_hash": "38f0e5c0e81114ffb117b810be15a215fbb34865eef192a3ee75006245c83b9e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 7,035 |
c | //
// FlashQuizKit.h
// FlashQuizKit
//
// Created by <NAME> on 3/6/17.
// Copyright © 2017 SmallSharpTools. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for FlashQuizKit.
FOUNDATION_EXPORT double FlashQuizKitVersionNumber;
//! Project version string for FlashQuizKit.
FOUN... | 38.27 | 15 | (translation_unit) "//\n// FlashQuizKit.h\n// FlashQuizKit\n//\n// Created by <NAME> on 3/6/17.\n// Copyright © 2017 SmallSharpTools. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for FlashQuizKit.\nFOUNDATION_EXPORT double FlashQuizKitVersionNumber;\n\n//! Project vers... | 39 | 1 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.27, "nodes": 19, "errors": 0, "source_hash": "567cb1bd1e743080e52d9f6bd8e190f3b4b40fe873ac4e277effd12a31f6459c", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F... | 7,036 |
c | #include <stdio.h>
int main () {
int inum=1, jnum=7, i;
for (i=1; ; i++) {
if (inum == 9 && jnum == 13)
break;
if (i % 4 == 0) {
i = 1;
inum += 2;
jnum += 4;
}
if ((i % 4 != 0) && i != 1) jnum--;
printf("I=%d J=%d\n", inum, jnum);
}
return 0;
}
| 16.19 | 16 | (translation_unit) "#include <stdio.h>\n\nint main () {\n int inum=1, jnum=7, i;\n\n for (i=1; ; i++) {\n if (inum == 9 && jnum == 13)\n break;\n if (i % 4 == 0) {\n i = 1;\n inum += 2;\n jnum += 4;\n }\n if ((i % 4 != 0) && i != 1) jnum--;\n printf("I=%d J=%d\n", inum, jnum);\n }\n\n return 0;\n}\n"
... | 141 | 0 | {"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.19, "nodes": 90, "errors": 0, "source_hash": "9ec6149196c4d0657d9c66b688d283ba1321973bf45dae3fed12ee6eeea67c1d", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 7,037 |
c | /*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include "PluginProcessor.h"
#include... | 40.23 | 56 | (translation_unit) "/*\n ==============================================================================\n\n This file contains the basic framework code for a JUCE plugin editor.\n\n ==============================================================================\n*/\n\n#pragma once\n\n#include <JuceHeader.h>\n#inclu... | 436 | 31 | {"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 40.23, "nodes": 265, "errors": 0, "source_hash": "3d530243a65a1f5d2fc39df5a7d3c5e98c6f9e9439e1ad30f86203a8eeaa2cf2", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 7,038 |
c | #include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include <stdlib.h>
//C调用C,通过lua的api
/**
编译执行:
gcc -c mylualib.c ; gcc -O2 -bundle -undefined dynamic_lookup -o mylualib.so mylualib.o
gcc myluause.c -llua -o luause
./luause
如果lua_pushstring(L, "mylualib");改成lua_pushstring(L, "mylualib2");则报错:
requi... | 31.84 | 44 | (translation_unit) "#include "lua.h"\n#include "lauxlib.h"\n#include "lualib.h"\n#include <stdlib.h>\n\n//C调用C,通过lua的api\n\n/**\n 编译执行:\n gcc -c mylualib.c ; gcc -O2 -bundle -undefined dynamic_lookup -o mylualib.so mylualib.o\n gcc myluause.c -llua -o luause\n ./luause\n\n 如果lua_pushstring(L, "mylualib");改成lua_pushst... | 284 | 0 | {"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.84, "nodes": 140, "errors": 0, "source_hash": "6b418eed69ca634025dd9f3375f343788e814b0c8e7461cae622fcebfa3e05d6", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,039 |
c | /**
* picolibrary
*
* Copyright 2020-2021, <NAME> <<EMAIL>> and the picolibrary
* contributors
*
* 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/LI... | 34.62 | 157 | (translation_unit) "/**\n * picolibrary\n *\n * Copyright 2020-2021, <NAME> <<EMAIL>> and the picolibrary\n * contributors\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this\n * file except in compliance with the License. You may obtain a copy of the License at\n *\n * http... | 415 | 28 | {"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 34.62, "nodes": 240, "errors": 0, "source_hash": "0698a270a1d50b525184f757b8790d34ff6a51747c278a0ad8fedc5da05cf10a", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PICOL... | 7,040 |
c | #ifndef DataFormats_GEMDigi_ME0DigiPreRecoCollection_h
#define DataFormats_GEMDigi_ME0DigiPreRecoCollection_h
/** \class ME0DigiPreRecoCollection
*
* \author <NAME>
*/
#include "DataFormats/MuonDetId/interface/ME0DetId.h"
#include "DataFormats/GEMDigi/interface/ME0DigiPreReco.h"
#include "DataFormats/MuonData/i... | 40.42 | 12 | (translation_unit) "#ifndef DataFormats_GEMDigi_ME0DigiPreRecoCollection_h\n#define DataFormats_GEMDigi_ME0DigiPreRecoCollection_h\n\n/** \class ME0DigiPreRecoCollection\n * \n * \author <NAME>\n */\n\n#include "DataFormats/MuonDetId/interface/ME0DetId.h"\n#include "DataFormats/GEMDigi/interface/ME0DigiPreReco.h"\n#i... | 51 | 4 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.42, "nodes": 36, "errors": 0, "source_hash": "c8497afcf9a0bcccda471b962cac38d7b24ea115d582a58f907789f2efb2955a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,041 |
c | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:41:57 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/SafariShared.framework/SafariShared
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ... | 41.76 | 17 | (translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:41:57 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/SafariShared.framework/SafariShared\n* classdump-dyld is licensed under GPLv... | 89 | 12 | {"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 41.76, "nodes": 56, "errors": 0, "source_hash": "ffea4ea4932c99d01512d2e2497a61bbb52a6535d13235decfbe32d03fdabb9b", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <l... | 7,042 |
c | #pragma once
#include "CoordSmartSpan.h"
#include "AtomSmartSpan.h"
#include "ResidueSmartSpan.h"
#include "MoleculeSmartSpan.h" | 24.8 | 5 | (translation_unit) "#pragma once\n\n#include "CoordSmartSpan.h"\n#include "AtomSmartSpan.h"\n#include "ResidueSmartSpan.h"\n#include "MoleculeSmartSpan.h""
(preproc_call) "#pragma once\n"
(preproc_directive) "#pragma"
(preproc_arg) "once"
(preproc_include) "#include "CoordSmartSpan.h"\n"
(#include) "#in... | 28 | 0 | {"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 24.8, "nodes": 15, "errors": 0, "source_hash": "20e1121efbb8e97d7c2bb555187001e57c38d545960311fa4e91d1f98f31ee6c", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc... | 7,043 |
c | /*
Author: <NAME> a.k.a. Gauss
<NAME>
Contacts: [<EMAIL>, <EMAIL>]
See for more information LICENSE.md.
*/
#pragma once
#include "TypeDef.h"
#include <string>
#include <vector>
// получение ip-адреса
class DllExport TResolverSelf_IP_v4
{
struct TDescHost
{
std::string s;
unsigned int i... | 18.09 | 34 | (translation_unit) "/*
\nAuthor: <NAME> a.k.a. Gauss
\n<NAME>
\nContacts: [<EMAIL>, <EMAIL>]
\nSee for more information LICENSE.md.
\n*/
\n
\n#pragma once
\n
\n#include "TypeDef.h"
\n#include <string>
\n#include <vector>
\n
\n// получение ip-адреса
\nclass DllExport TResolverSelf_IP_v4
\n{
\n struct TDescHost
\n {
\n... | 157 | 8 | {"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 18.09, "nodes": 105, "errors": 0, "source_hash": "d9dce245263eeb2b4bdea93abd4c439235053279deca14532cf7cb29e251693c", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 7,044 |
c |
#include "mod_security3.h"
#include "msc_config.h"
#include "msc_filters.h"
const command_rec module_directives[] =
{
AP_INIT_TAKE1(
"modsecurity",
msc_config_modsec_state,
NULL,
RSRC_CONF | ACCESS_CONF,
"The argument must be either 'On' or 'Off'"
),
AP_INIT_TAKE1... | 26.08 | 176 | (translation_unit) "#include "mod_security3.h"\n#include "msc_config.h"\n#include "msc_filters.h"\n\n\nconst command_rec module_directives[] =\n{\n AP_INIT_TAKE1(\n "modsecurity",\n msc_config_modsec_state,\n NULL,\n RSRC_CONF | ACCESS_CONF,\n "The argument must be either 'On' or '... | 1,201 | 0 | {"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 26.08, "nodes": 709, "errors": 0, "source_hash": "3273e95c08f68cca31a606df1afe7522f63d7487d091fea68d5a7f6322e3992e", "categorized_nodes": 464}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 7,045 |
c | //////////////////////////////////////////////////////////////////////
//
// IMaterial.h - Defines an interface to a material.
//
// Author: <NAME>
// Date of Birth: November 28, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
///////////////////////////////////... | 27.35 | 43 | (translation_unit) "//////////////////////////////////////////////////////////////////////\n//\n// IMaterial.h - Defines an interface to a material.\n//\n// Author: <NAME>\n// Date of Birth: November 28, 2002\n// Tabs: 4\n// Comments:\n//\n// License Information: Please see the attached LICENSE.TXT file\n//\n////... | 163 | 5 | {"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 27.35, "nodes": 81, "errors": 0, "source_hash": "296c1472a28c27ce13002645f131af57090ffc4a3a35c2111709800499b837f4", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,046 |
c | --- src/test/tests.c.orig 2021-06-13 13:29:31.205145000 +0200
+++ src/test/tests.c 2021-06-13 13:29:53.619958000 +0200
@@ -6,7 +6,7 @@
#include "env-util.h"
#include "tests.h"
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#define program_invocation_short_name getprogname()
#endif
| 30.3 | 10 | (translation_unit) "--- src/test/tests.c.orig 2021-06-13 13:29:31.205145000 +0200\n+++ src/test/tests.c 2021-06-13 13:29:53.619958000 +0200\n@@ -6,7 +6,7 @@\n #include "env-util.h"\n #include "tests.h"\n \n-#ifdef __FreeBSD__\n+#if defined(__FreeBSD__) || defined(__DragonFly__)\n #define program_invocation_short_name g... | 118 | 10 | {"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.3, "nodes": 98, "errors": 0, "source_hash": "3cf50c525c286879db784712892fba16c497b80f38d3e6ecc65292eb73a2dfd5", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "--- src/test/test... | 7,047 |
c | #pragma once
#include "../state.h"
template <typename _Object>
class CStateMonsterFindEnemyLook : public CState<_Object> {
typedef CState<_Object> inherited;
typedef CState<_Object>* state_ptr;
bool look_right_side;
u8 current_stage;
Fvector target_point;
Fvector current_dir;
Fvector sta... | 33.77 | 22 | (translation_unit) "#pragma once\n\n#include "../state.h"\n\ntemplate <typename _Object>\nclass CStateMonsterFindEnemyLook : public CState<_Object> {\n typedef CState<_Object> inherited;\n typedef CState<_Object>* state_ptr;\n\n bool look_right_side;\n u8 current_stage;\n Fvector target_point;\n\n Fve... | 199 | 12 | {"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.77, "nodes": 136, "errors": 0, "source_hash": "bb1b91231c9aeabf79b919439d56805d02cf6b3c26628ef86282b006468d1c62", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 7,048 |
c | #pragma once
#include <HalEngine.h>
#include "DevelopParam.h"
#include "HPGauge.h"
#include "DesignData.h"
class GameSceneVisualParam : public DevelopParam
{
public:
static GameSceneVisualParam& GetInstance()
{
static GameSceneVisualParam self;
return self;
}
protected:
GameSceneVisualParam();
Game... | 25 | 40 | (translation_unit) "#pragma once\n\n#include <HalEngine.h>\n#include "DevelopParam.h"\n#include "HPGauge.h"\n#include "DesignData.h"\n\nclass GameSceneVisualParam : public DevelopParam\n{\npublic:\n static GameSceneVisualParam& GetInstance()\n {\n static GameSceneVisualParam self;\n return self;\n }\n\nprotect... | 258 | 16 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 25.0, "nodes": 149, "errors": 0, "source_hash": "fea678d4633bfcac4167036a932f5f573eab96f87f04c86a713bc9b6ece2e560", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ... | 7,049 |
c | /*
* Copyright 2012 <NAME>
*
* This file is part of the UW CSE 333 course project sequence
* (333proj).
*
* 333proj is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | 34.68 | 57 | (translation_unit) "/*\n * Copyright 2012 <NAME>\n *\n * This file is part of the UW CSE 333 course project sequence\n * (333proj).\n *\n * 333proj is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, eith... | 169 | 5 | {"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.68, "nodes": 95, "errors": 0, "source_hash": "80df190660e776bbb937df36aec45360dffa9ae09a5125a229623b0ec6527d72", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,050 |
c | #ifndef _RISK_H_
#define _RISK_H_
#include <stdint.h>
#include "algo/rvar.h"
/* Functions for estimating the risk of a plan.
*
* The "risk" depends on the:
* - Traffic prediction model
* - Data plane model
* - Risk "models"
*
* Risk is a function that accepts a plan state, measures some property of
*... | 25.26 | 80 | (translation_unit) "#ifndef _RISK_H_\n#define _RISK_H_\n\n#include <stdint.h>\n#include "algo/rvar.h"\n\n/* Functions for estimating the risk of a plan.\n *\n * The "risk" depends on the:\n * - Traffic prediction model\n * - Data plane model\n * - Risk "models"\n *\n * Risk is a function that accepts a plan st... | 381 | 0 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 25.26, "nodes": 270, "errors": 0, "source_hash": "57811fb25db6880625bb87c9d9e954c1790c5dff9a0c007c26f6365a26880814", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,051 |
c | //
// BNBaseModel.h
// 03-BDNMProject
//
// Created by vera on 16/7/19.
// Copyright © 2016年 deli. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BNBaseModel : NSObject
+ (id)baseModelWithDictiaoary:(NSDictionary *)dictionary;
@end
| 22.45 | 11 | (translation_unit) "//\n// BNBaseModel.h\n// 03-BDNMProject\n//\n// Created by vera on 16/7/19.\n// Copyright © 2016年 deli. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BNBaseModel : NSObject\n\n+ (id)baseModelWithDictiaoary:(NSDictionary *)dictionary;\n\n@end\n"
(comment) "//"
(c... | 40 | 5 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.45, "nodes": 22, "errors": 0, "source_hash": "695898534c740e401f4ae4737a403ad4bab504c46455308057f2f0fea9bbca84", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou... | 7,052 |
c | //---------------------------------------------------------------------------------------
// Smile Programming Language Interpreter
// Copyright 2004-2019 <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 obta... | 37.66 | 85 | (translation_unit) "//---------------------------------------------------------------------------------------\n// Smile Programming Language Interpreter\n// Copyright 2004-2019 <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 ... | 618 | 5 | {"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 37.66, "nodes": 378, "errors": 0, "source_hash": "b3b1ac5b4dbac81a19b531cc82a0642f92f01976233a2c925ccbfd5574672db2", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,053 |
c | //
// TFNavigatorKit.h
// TFNavigator
//
// Created by Melvin on 2018/8/15.
// Copyright © 2018 TimeFace. All rights reserved.
//
#ifndef TFNavigatorKit_h
#define TFNavigatorKit_h
#if __has_include(<TFNavigator/TFNavigator.h>)
#import <TFNavigator/TFNavigator.h>
#import <TFNavigator/TFRouter.h>
#import <TFNavig... | 21.96 | 23 | (translation_unit) "//\n// TFNavigatorKit.h\n// TFNavigator\n//\n// Created by Melvin on 2018/8/15.\n// Copyright © 2018 TimeFace. All rights reserved.\n//\n\n#ifndef TFNavigatorKit_h\n#define TFNavigatorKit_h\n\n\n#if __has_include(<TFNavigator/TFNavigator.h>)\n\n#import <TFNavigator/TFNavigator.h>\n#import <TFNav... | 60 | 3 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.96, "nodes": 37, "errors": 0, "source_hash": "702c04faa5d8ebfeb4a463ea5e543e9fd6f78e5e27696387d0ce41a0f3ddaba8", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef T... | 7,054 |
c | // Copyright (c) <NAME>. See LICENSE file for license terms.
#pragma once
namespace circa {
Symbol string_to_symbol(const char* str);
void set_symbol_from_string(Value* val, Value* str);
void set_symbol_from_string(Value* val, const char* str);
void symbol_to_string(Value* symbol, Value* str);
const char* symbol_as... | 39 | 14 | (translation_unit) "// Copyright (c) <NAME>. See LICENSE file for license terms.\n\n#pragma once\n\nnamespace circa {\n\nSymbol string_to_symbol(const char* str);\nvoid set_symbol_from_string(Value* val, Value* str);\nvoid set_symbol_from_string(Value* val, const char* str);\n\nvoid symbol_to_string(Value* symbol, Valu... | 164 | 0 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.0, "nodes": 116, "errors": 0, "source_hash": "559e548125499bd1e16f762a5abeceff1c9c1d9d27ea19de468ae90ff899aca5", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 7,055 |
c | #include "lualib.h"
#include "lua.h"
#include "lauxlib.h"
#include "md5.h"
static int
linput(lua_State *L){
MD5_CTX *ctx = lua_touserdata(L,1);
int type = lua_type(L,2);
if(type == LUA_TSTRING){
size_t n = 0;
const char *s = lua_tolstring(L,2,&n);
MD5Update(ctx,(unsigned char*)s,n);
}
else if(type == LUA_T... | 17.56 | 97 | (translation_unit) "#include "lualib.h"\n#include "lua.h"\n#include "lauxlib.h"\n#include "md5.h"\n\n\nstatic int\nlinput(lua_State *L){\n MD5_CTX *ctx = lua_touserdata(L,1);\n int type = lua_type(L,2);\n if(type == LUA_TSTRING){\n size_t n = 0;\n const char *s = lua_tolstring(L,2,&n);\n MD5Update(ctx,(unsigned char... | 873 | 0 | {"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 17.56, "nodes": 491, "errors": 0, "source_hash": "c58a302ef0ce661474c34a3402939672c336a377f11e179e8572e4dc76e7317b", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,056 |
c | //
// Created by <NAME>.
// Grupo de Optimizacion Combinatoria (GOC).
// Departamento de Computacion - Universidad de Buenos Aires.
//
#ifndef GOC_LOG_BLB_EXECUTION_LOG_H
#define GOC_LOG_BLB_EXECUTION_LOG_H
#include <iostream>
#include <string>
#include "goc/base/maybe.h"
#include "goc/lib/json.hpp"
#include "goc/lo... | 37.05 | 39 | (translation_unit) "//\n// Created by <NAME>.\n// Grupo de Optimizacion Combinatoria (GOC).\n// Departamento de Computacion - Universidad de Buenos Aires.\n//\n\n#ifndef GOC_LOG_BLB_EXECUTION_LOG_H\n#define GOC_LOG_BLB_EXECUTION_LOG_H\n\n#include <iostream>\n#include <string>\n\n#include "goc/base/maybe.h"\n#include "g... | 220 | 10 | {"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 37.05, "nodes": 125, "errors": 0, "source_hash": "135d364cac201f6797574d0f8fbabfa621add83d3b9951f606e03dd8257159a0", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef GOC_LOG... | 7,057 |
c | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <assert.h>
#if defined(__x86_64__)
#include <cpuid.h>
#endif
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#inclu... | 30.7 | 40 | (translation_unit) "// Copyright 2016 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#include <assert.h>\n#if defined(__x86_64__)\n#include <cpuid.h>\n#endif\n#include <errno.h>\n#include <pthread.h>\n#include <stdio... | 232 | 0 | {"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.7, "nodes": 134, "errors": 0, "source_hash": "6a383b10b724ad6be7ed896bdec11ef24b3e3214aec463b5c61926187989ee7e", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 7,058 |
c | #ifndef GAME_ABSTRACTBULLETMODEL_H
#define GAME_ABSTRACTBULLETMODEL_H
///////////////////////////////////////////////////////////////////////////////
// Macro used to test if MDX should-be active for bullet-model purposes.
#define BULLETMODEL_MDXACTIVE ( \
( cvars::bg_bulletmode.ivalue > AbstractBulletModel::_TYP... | 38.49 | 61 | (translation_unit) "#ifndef GAME_ABSTRACTBULLETMODEL_H\n#define GAME_ABSTRACTBULLETMODEL_H\n\n///////////////////////////////////////////////////////////////////////////////\n\n// Macro used to test if MDX should-be active for bullet-model purposes.\n#define BULLETMODEL_MDXACTIVE ( \\n ( cvars::bg_bulletmode.ivalue ... | 391 | 17 | {"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 38.49, "nodes": 226, "errors": 0, "source_hash": "fe0ead10f5ff1dcc8611ff0473658f81dd4bd445e315d3c36ad5e16e4a178d1f", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,059 |
c | #pragma once
class IAGEventReceiver {
public:
virtual void onEvent(int id, void* pData) = 0;
};
| 20.6 | 5 | (translation_unit) "#pragma once\n\nclass IAGEventReceiver {\n public:\n virtual void onEvent(int id, void* pData) = 0;\n};\n"
(preproc_call) "#pragma once\n"
(preproc_directive) "#pragma"
(preproc_arg) "once"
(function_definition) "class IAGEventReceiver {\n public:\n virtual void onEve... | 37 | 1 | {"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.6, "nodes": 24, "errors": 0, "source_hash": "b802617404a3d2986e1444f2a218892752ceb9aba7c75aa28988b059aeff04ae", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc... | 7,060 |
c | /* Verify that 387 fptan instruction is generated. Also check that
inherent load of 1.0 is used in further calculations. */
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -mfpmath=387 -mfancy-math-387" } */
/* { dg-final { scan-assembler "fptan" } } */
/* { dg-final { scan-assembler-not "fld1" } } */
ex... | 34.55 | 11 | (translation_unit) "/* Verify that 387 fptan instruction is generated. Also check that\n inherent load of 1.0 is used in further calculations. */\n\n/* { dg-do compile } */\n/* { dg-options "-O2 -ffast-math -mfpmath=387 -mfancy-math-387" } */\n/* { dg-final { scan-assembler "fptan" } } */\n/* { dg-final { scan-assem... | 43 | 0 | {"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 34.55, "nodes": 25, "errors": 0, "source_hash": "2660c932c2578af4984adcbb4246522f8b2ef8c2c03852a268eb866b02e3b80f", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern dou... | 7,061 |
c | #pragma once
#include "ToyUtility/Prerequisites/PreDefine.h"
namespace ToyXWindow
{
#define GL_VERSION 0x1f02
#define GL_NONE 0
#define GL_COLOR_BUFFER_BIT 0x00004000
#define GL_EXTENSIONS 0x1f03
#define GL_NUM_EXTENSIONS 0x821d
#define GL_CONTEXT_FLAGS 0x821e
#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000... | 31.96 | 25 | (translation_unit) "#pragma once\n\n#include "ToyUtility/Prerequisites/PreDefine.h"\n\n\nnamespace ToyXWindow\n{\n\n\n#define GL_VERSION 0x1f02\n#define GL_NONE 0\n#define GL_COLOR_BUFFER_BIT 0x00004000\n#define GL_EXTENSIONS 0x1f03\n#define GL_NUM_EXTENSIONS 0x821d\n#define GL_CONTEXT_FLAGS 0x821e\n#define GL_CONTEXT_... | 85 | 0 | {"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.96, "nodes": 77, "errors": 0, "source_hash": "86b3cd9530874ec53d82f856d1e94fdcd0fdbf429de02c98f3b396ebfa663acd", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 7,062 |
c | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:31 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by... | 39.83 | 24 | (translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:40:31 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote\n* classdump-dyld is licensed under GPLv3,... | 187 | 14 | {"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 39.83, "nodes": 106, "errors": 0, "source_hash": "e68a3f601d8455c8c6309494488766e3f1bf7d20b0b29f7068fccb4f1f60661d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <... | 7,063 |
c | inherit DREAM_NPC;
#include <ansi.h>
int is_snake(){return 1;}
void create()
{
set_name(NOR + YEL "金蛇" NOR, ({ "jin she", "jin", "she" }));
set("long", YEL "這是一條几寸長的小蛇,通體金黃。\n" NOR);
set("age", 15);
set("str", 30);
set("dex", 50);
set("con", 30);
set("m... | 35.27 | 113 | (translation_unit) "inherit DREAM_NPC;\n#include <ansi.h>\n\nint is_snake(){return 1;}\n\nvoid create()\n{\n set_name(NOR + YEL "金蛇" NOR, ({ "jin she", "jin", "she" }));\n set("long", YEL "這是一條几寸長的小蛇,通體金黃。\n" NOR);\n\n set("age", 15);\n set("str", 30);\n set("dex", 50);\n set("... | 1,184 | 7 | {"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 35.27, "nodes": 532, "errors": 0, "source_hash": "c6cb40615565bee40984903ba3c9c536ccca84f26f45d11380f2a99278aa2434", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit... | 7,064 |
c |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
#include <GL/glut.h>
extern GLubyte *read_alpha_texture(char *name, int *width, int *height);
... | 54.43 | 7 | (translation_unit) "/* Copyright (c) <NAME>, 1997. */\n\n/* This program is freely distributable without licensing fees \n and is provided without guarantee or warrantee expressed or \n implied. This program is -not- in the public domain. */\n\n#include <GL/glut.h>\n\nextern GLubyte *read_alpha_texture(char *name,... | 64 | 0 | {"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 54.43, "nodes": 51, "errors": 0, "source_hash": "c20f5ecbc22a14766df16fc8a966c84ca7d20e019ddd1839a96e3796edc440dc", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ... | 7,065 |
c | //-----------------------------------------------------------------
// ExactStep IAISS
// V0.5
// github.com/ultraembedded/exactstep
// Copyright 2014-2019
// License: BSD 3-Clause
//---------------------------------... | 35.29 | 56 | (translation_unit) "//-----------------------------------------------------------------\n// ExactStep IAISS\n// V0.5\n// github.com/ultraembedded/exactstep\n// Copyright 2014-2019\n// License: BSD 3-Clause\n//-------... | 404 | 10 | {"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.29, "nodes": 243, "errors": 0, "source_hash": "cfd51be6b27f8070770337311eb43a7350427b489c265810528cc08f0bf98fc5", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,066 |
c | #define NX_SERVICE_ASSUME_NON_DOMAIN
#include "service_guard.h"
#include "services/bpc.h"
#include "runtime/hosversion.h"
static Service g_bpcSrv;
NX_GENERATE_SERVICE_GUARD(bpc);
Result _bpcInitialize(void) {
return smGetService(&g_bpcSrv, hosversionAtLeast(2,0,0) ? "bpc" : "bpc:c");
}
void _bpcCleanup(void) {
... | 27 | 30 | (translation_unit) "#define NX_SERVICE_ASSUME_NON_DOMAIN\n#include "service_guard.h"\n#include "services/bpc.h"\n#include "runtime/hosversion.h"\n\nstatic Service g_bpcSrv;\n\nNX_GENERATE_SERVICE_GUARD(bpc);\n\nResult _bpcInitialize(void) {\n return smGetService(&g_bpcSrv, hosversionAtLeast(2,0,0) ? "bpc" : "bpc:c")... | 271 | 0 | {"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.0, "nodes": 158, "errors": 0, "source_hash": "9d91ef94bf1c1b50a90d2fbe5e1c81e72d835ab43b68e8497ad11e8645af5d28", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define N... | 7,067 |
c | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "PMLNoiseStrategy.h"
@class NSString;
@interface PMLConstantNoiseStrategy : NSObject <PMLNoiseStrategy>
{
int maxIterations;
float _constantNoise;
... | 33.55 | 31 | (translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "PMLNoiseStrategy.h"\n\n@class NSString;\n\n@interface PMLConstantNoiseStrategy : NSObject <PMLNoiseStrategy>\n{\n int maxIter... | 300 | 32 | {"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.55, "nodes": 186, "errors": 0, "source_hash": "a037953c2b347b6ef46a468045ce076252a8765df4a137a4e37d83a7ff55ff9e", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import... | 7,068 |
c | {
for (int c0 = 2; c0 < n - 1; c0 += 4) {
s1(c0);
s0(c0 + 2);
}
if (n >= 4 * floord(n, 4) + 2 && n >= 0)
s1(-(n % 4) + n + 2);
}
| 17.38 | 8 | (translation_unit) "{\n for (int c0 = 2; c0 < n - 1; c0 += 4) {\n s1(c0);\n s0(c0 + 2);\n }\n if (n >= 4 * floord(n, 4) + 2 && n >= 0)\n s1(-(n % 4) + n + 2);\n}\n"
(compound_statement) "{\n for (int c0 = 2; c0 < n - 1; c0 += 4) {\n s1(c0);\n s0(c0 + 2);\n }\n if (n >= 4 * floord(n, 4) + 2 && n >... | 99 | 0 | {"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.38, "nodes": 67, "errors": 0, "source_hash": "030d01f2a7306707164411c9e975e74880ec3015febc2e6755a34f87a48ccaa9", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "for_statement", "text": "for (int ... | 7,069 |
c | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 33.33 | 244 | (translation_unit) "/*****************************************************************************\n * Licensed to Qualys, Inc. (QUALYS) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * QUALYS licenses... | 1,390 | 0 | {"language": "c", "success": true, "metadata": {"lines": 244, "avg_line_length": 33.33, "nodes": 812, "errors": 0, "source_hash": "f979f0a6f78be302e9041f685da1208b50fbe174e48d42cc0771bd278ec5bb7a", "categorized_nodes": 566}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 7,070 |
c | /*
** EPITECH PROJECT, 2020
** CPE_dante_2019
** File description:
** generator
*/
#ifndef GENERATOR_H_
#define GENERATOR_H_
/* ___ INCLUDES ___ */
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
/* ___ STRUCTURES ___ */
struct coord
{
int x;
int y;
int i;
int random;
int totox;
i... | 22.49 | 39 | (translation_unit) "/*\n** EPITECH PROJECT, 2020\n** CPE_dante_2019\n** File description:\n** generator\n*/\n\n#ifndef GENERATOR_H_\n#define GENERATOR_H_\n\n/* ___ INCLUDES ___ */\n\n#include <unistd.h>\n#include <stdlib.h>\n#include <time.h>\n\n/* ___ STRUCTURES ___ */\n\nstruct coord\n{\n int x;\n int y;\n i... | 328 | 0 | {"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 22.49, "nodes": 250, "errors": 0, "source_hash": "17f2556e78315cf19cf88d90bfa34496bfe7acd63eb991bf1f2abcba694851f8", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,071 |
c | void Move(int n, char a, char b, char c){
if(n==1)
{
printf("%c -> %c\n", a, c);
}
else
{
Move(n - 1, a, c, b);
Move(1, a, b, c);
Move(n - 1, b, a, c);
}
} | 14.17 | 12 | (translation_unit) "void Move(int n, char a, char b, char c){\n if(n==1)\n {\n printf("%c -> %c\n", a, c);\n }\n else\n {\n Move(n - 1, a, c, b);\n Move(1, a, b, c);\n Move(n - 1, b, a, c);\n }\n}"
(function_definition) "void Move(int n, char a, char b, char c){\n if(n==1)\n {\n printf("%c -> %c\n... | 107 | 0 | {"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 14.17, "nodes": 58, "errors": 0, "source_hash": "9f75ace7c305609faf9a20102c6047bd064c575e0cc20d7955ff3acbc4642f1c", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo... | 7,072 |
c | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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... | 39.11 | 44 | (translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* vim: set ts=8 sts=2 et sw=2 tw=80: */\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 ht... | 288 | 6 | {"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 39.11, "nodes": 187, "errors": 0, "source_hash": "549114b73ff377e4672717190beef56048112a257606c378909cdc0ecb37cdde", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,073 |
c | #ifndef __CAR_CONTROL_FRAME_H__
#define __CAR_CONTROL_FRAME_H__
typedef struct{
uint8_t head;
uint8_t frame_len;
uint8_t frame_code;
uint8_t *frame_data;
uint8_t frame_crc;
}uart_frame_t;
typedef struct{
uint8_t car_xDir;
uint8_t car_yDir;
uint16_t car_xSpeed;
ui... | 23.64 | 33 | (translation_unit) "#ifndef __CAR_CONTROL_FRAME_H__
\n#define __CAR_CONTROL_FRAME_H__
\n
\ntypedef struct{
\n uint8_t head;
\n uint8_t frame_len;
\n uint8_t frame_code;
\n uint8_t *frame_data;
\n uint8_t frame_crc;
\n
\n}uart_frame_t;
\n
\ntypedef struct{
\n uint8_t car_xDir;
\n uint8_t car_yDir;... | 159 | 0 | {"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 23.64, "nodes": 117, "errors": 0, "source_hash": "bbf88c721502be88b6851afeb4e9801cdce269ba107b405db5188727aa6f38a8", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 7,074 |
c | #include "../../../test_common.h"
#include <utmp.h>
void runSuccess() {
struct utmpx u;
updwtmpx(anystring(), &u);
}
void runFailure() {
struct utmpx u;
updwtmpx(NULL, &u);
}
void runFailure1() {
updwtmpx(anystring(), NULL);
}
int f;
void testValues() {
f = 2;
int result;
struct... | 17 | 23 | (translation_unit) "#include "../../../test_common.h"\n#include <utmp.h>\n\nvoid runSuccess() {\n struct utmpx u;\n updwtmpx(anystring(), &u);\n}\n\nvoid runFailure() {\n struct utmpx u;\n updwtmpx(NULL, &u);\n}\n\nvoid runFailure1() {\n updwtmpx(anystring(), NULL);\n}\n\nint f;\nvoid testValues() {\n ... | 144 | 0 | {"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.0, "nodes": 82, "errors": 0, "source_hash": "aae7873ab1903d0a57b1bb1c34e49150ac9745b99b1014a341b0513de70f3f64", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ... | 7,075 |
c | /*
* This file is part of baghchal an implementation of the Bagh-Chal
* board game.
*
* Copyright 2012 <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,... | 33.78 | 113 | (translation_unit) "/*\n * This file is part of baghchal an implementation of the Bagh-Chal\n * board game.\n *\n * Copyright 2012 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the "Software"), to deal in the Soft... | 594 | 0 | {"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 33.78, "nodes": 348, "errors": 0, "source_hash": "daee23c994ac2dd6c122c4fc7d9dbaf53e3f553f787908c95a937a3b597a5881", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd... | 7,076 |
c | #pragma once
#include <istream>
#include "movie.h"
namespace Retro {
class MovieFM2 final : public Movie {
public:
MovieFM2(std::unique_ptr<std::istream>);
static std::unique_ptr<Movie> load(const std::string& path);
virtual bool step() override;
private:
std::unique_ptr<std::istream> m_stream;
};
}
| 22.46 | 13 | (translation_unit) "#pragma once\n\n#include <istream>\n\n#include "movie.h"\n\nnamespace Retro {\n\nclass MovieFM2 final : public Movie {\npublic:\n MovieFM2(std::unique_ptr<std::istream>);\n\n static std::unique_ptr<Movie> load(const std::string& path);\n\n virtual bool step() override;\n\nprivate:\n std::unique_ptr<... | 116 | 8 | {"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.46, "nodes": 66, "errors": 0, "source_hash": "ae1b5d60afbbd89f9750bae5ba743d6d0750e3ac65f00021d4c4b7c8bcd4e345", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o... | 7,077 |
c | /* Copyright 2019 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.
*
* MAX6958/MAX6959 7-Segment LED Display Driver
*/
#include "common.h"
#include "console.h"
#include "display_7seg.h"
#include "hooks.h"
#include "... | 27.68 | 111 | (translation_unit) "/* Copyright 2019 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 * MAX6958/MAX6959 7-Segment LED Display Driver\n */\n\n#include "common.h"\n#include "console.h"\n#include "display_7seg.h"\... | 617 | 1 | {"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 27.68, "nodes": 347, "errors": 0, "source_hash": "8046b906ddc30ab4b944e449f291972537dca94848fcaabd3dd2ea7fc354ea59", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in... | 7,078 |
c | /*
* telekom / sysrepo-plugin-system
*
* This program is made available under the terms of the
* BSD 3-Clause license which is available at
* https://opensource.org/licenses/BSD-3-Clause
*
* SPDX-FileCopyrightText: 2021 Deutsche Telekom AG
* SPDX-FileContributor: Sartura Ltd.
*
* SPDX-License-Identifier: BSD-... | 30.07 | 68 | (translation_unit) "/*\n * telekom / sysrepo-plugin-system\n *\n * This program is made available under the terms of the\n * BSD 3-Clause license which is available at\n * https://opensource.org/licenses/BSD-3-Clause\n *\n * SPDX-FileCopyrightText: 2021 Deutsche Telekom AG\n * SPDX-FileContributor: Sartura Ltd.\n *\n *... | 425 | 0 | {"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 30.07, "nodes": 314, "errors": 0, "source_hash": "2838ba629eda06a56644bde1a04fb17e60bf5e8e8b7c14631bf64188677c4315", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,079 |
c | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <jsi/jsi.h>
#include <string>
#include "Blob.h"
namespace torchlive {
namespace media {
facebook::jsi::... | 26.7 | 20 | (translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <jsi/jsi.h>\n#include <string>\n\n#include "Blob.h"\n\nnamespace torchlive {\... | 112 | 9 | {"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.7, "nodes": 64, "errors": 0, "source_hash": "a1efd74f2d425fe0025a9d45eb4ad8105a216200eaaddc5e889cd6ff2c31c7a2", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on... | 7,080 |
c | ///////////////////////////////////////////////////////////////////////////////
// This file is part of the chustd library
// Copyright (C) ChuTeam
// For conditions of distribution and use, see copyright notice in chustd.h
///////////////////////////////////////////////////////////////////////////////
#ifndef CHUSTD_... | 21 | 76 | (translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// This file is part of the chustd library\n// Copyright (C) ChuTeam\n// For conditions of distribution and use, see copyright notice in chustd.h\n////////////////////////////////////////////////////////////////////////... | 428 | 12 | {"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 21.0, "nodes": 239, "errors": 0, "source_hash": "ae0d02940a01c811cbdf0a4a4e47c9dd600b6b439bb97f8e89447da3ba983a8e", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 7,081 |
c | #import <Foundation/Foundation.h>
NSURL *RELDocumentsDirectory(void);
NSURL *RELPathForDocument(NSString *name, NSString *type);
BOOL isBlankString(NSString *s); | 39.5 | 4 | (translation_unit) "#import <Foundation/Foundation.h>\n\nNSURL *RELDocumentsDirectory(void);\nNSURL *RELPathForDocument(NSString *name, NSString *type);\n\nBOOL isBlankString(NSString *s);"
(preproc_call) "#import <Foundation/Foundation.h>\n"
(preproc_directive) "#import"
(preproc_arg) "<Foundation/Foundation... | 50 | 0 | {"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.5, "nodes": 39, "errors": 0, "source_hash": "540e9f0d02013537b678a075102163f8224f7e7a65442eba24ed87dd29832513", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo... | 7,082 |
c | #ifndef STATEMACHINE_H
#define STATEMACHINE_H
#include <Arduino.h>
enum states {
__INCOMING_SERIAL,
__IDLE,
__PLAY,
__ERROR,
__UNDEFINED
};
extern states state;
static String stateStrings[] = {
"INCOMING SERIAL",
"IDLE",
"PLAY",
"ERROR",
"UNDEFINED"
};
#endif
| 13.74 | 19 | (translation_unit) "#ifndef STATEMACHINE_H\n#define STATEMACHINE_H\n\n#include <Arduino.h>\n\nenum states {\n __INCOMING_SERIAL,\n __IDLE,\n __PLAY,\n __ERROR,\n __UNDEFINED\n};\nextern states state;\n\nstatic String stateStrings[] = {\n "INCOMING SERIAL",\n "IDLE",\n "PLAY",\n "ERROR",\n "UNDEFINED"\n};\n\n#... | 76 | 0 | {"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 13.74, "nodes": 41, "errors": 0, "source_hash": "22194c4e614bbc846534b294f5b9e288e959308eb8979147b4ebbe4a60e80ebe", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,083 |
c | #ifndef CWALLTELE_H
#define CWALLTELE_H
#include <game/server/entity.h>
class CTeleDisp : public CEntity
{
public:
CTeleDisp(CGameWorld *pGameWorld, vec2 Pos);
virtual void Snap(int SnappingClient);
private:
int m_StartTick;
};
class CWallTele : public CEntity
{
public:
CWallTele(CGameWorld *pGameWo... | 19.76 | 25 | (translation_unit) "#ifndef CWALLTELE_H\n#define CWALLTELE_H\n\n#include <game/server/entity.h>\n\nclass CTeleDisp : public CEntity\n{\npublic:\n CTeleDisp(CGameWorld *pGameWorld, vec2 Pos);\n virtual void Snap(int SnappingClient);\n\nprivate:\n int m_StartTick;\n};\n\nclass CWallTele : public CEntity\n{\npubl... | 138 | 7 | {"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.76, "nodes": 86, "errors": 0, "source_hash": "e13883c8a22396d363d27bf3acdc1ec6536e9c9bcf1b7835ab851c5deda0b5b1", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ... | 7,084 |
c | #import <React/RCTBridgeModule.h>
@import AirshipKit;
@interface AirshipPreferenceCenterModule : NSObject <RCTBridgeModule, UAPreferenceCenterOpenDelegate>
@end
| 39.25 | 4 | (translation_unit) "#import <React/RCTBridgeModule.h>\n\n@import AirshipKit;\n\n@interface AirshipPreferenceCenterModule : NSObject <RCTBridgeModule, UAPreferenceCenterOpenDelegate>\n\n@end\n"
(preproc_call) "#import <React/RCTBridgeModule.h>\n"
(preproc_directive) "#import"
(preproc_arg) "<React/RCTBridgeMod... | 24 | 6 | {"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.25, "nodes": 18, "errors": 0, "source_hash": "f1903b73aee3ed9d2c928290285b49a95e3a876faa6dfd8da15cf6223a064968", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Re... | 7,085 |
c | /*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... | 36.82 | 45 | (translation_unit) "/*===================================================================\n\nBlueBerry Platform\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without\neven the implied warranty ... | 340 | 21 | {"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.82, "nodes": 182, "errors": 0, "source_hash": "ecc9898fd7850c958af97c7491af7a7b8dd6cbc4e6d45bad03de1815d8540191", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,086 |
c | /*
Autor: <NAME>
fecha: Tue Apr 19 12:38:44 CST 2022
compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
compilar: gcc -o ejemplopuntero.out ejemplopuntero.c
Librerias: stdio
resumen:
*/
//librerias
#include <stdio.h>
void main () {
// Declarar una variable y un lugar
int n = 70... | 29.39 | 31 | (translation_unit) "/*\nAutor: <NAME>\nfecha: Tue Apr 19 12:38:44 CST 2022\ncompilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0\ncompilar: gcc -o ejemplopuntero.out ejemplopuntero.c\nLibrerias: stdio\nresumen: \n*/\n\n//librerias\n#include <stdio.h>\n\nvoid main () {\n // Declarar una va... | 166 | 0 | {"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.39, "nodes": 82, "errors": 0, "source_hash": "10623ad2c9c2292dcd8dc386ee1f0da85cd3847f50124f990d51d6218e9ad5a5", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu... | 7,087 |
c | #include <string.h>
size_t id321_strnlen(const char *s, size_t maxlen)
{
char *pos = memchr(s, '\0', maxlen);
return pos ? (pos - s) : maxlen;
}
| 24.5 | 6 | (translation_unit) "#include <string.h>\n\nsize_t id321_strnlen(const char *s, size_t maxlen)\n{\n char *pos = memchr(s, '\0', maxlen);\n return pos ? (pos - s) : maxlen;\n}\n"
(preproc_include) "#include <string.h>\n"
(#include) "#include"
(system_lib_string) "<string.h>"
(function_definition) "size_... | 61 | 0 | {"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.5, "nodes": 42, "errors": 0, "source_hash": "e4cc57c4f686bb8ce6bdff75b8b3b0ced2906f715ef5fb36536658dbf3a9efb1", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include... | 7,088 |
c | #include "que.h"
QUEUE newQ() {
QUEUE q = (QUEUE) malloc(sizeof(struct queue));
q -> count = 0;
q -> head = NULL;
q -> tail = NULL;
return q;
}
int isEmpty(QUEUE q) {
if( q -> count > 0 ) return 0;
else return 1;
}
QUEUE delQ(QUEUE q) {
if(q -> count == 1) {
NODE* temp = q -> head;
q -> head = NULL;
q ... | 16.3 | 80 | (translation_unit) "#include "que.h"\n\nQUEUE newQ() {\n QUEUE q = (QUEUE) malloc(sizeof(struct queue));\n q -> count = 0;\n q -> head = NULL;\n q -> tail = NULL;\n return q;\n}\n\nint isEmpty(QUEUE q) {\n if( q -> count > 0 ) return 0;\n else return 1;\n}\n\nQUEUE delQ(QUEUE q) {\n if(q -> count == 1) {\n NODE* temp ... | 476 | 0 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 16.3, "nodes": 289, "errors": 0, "source_hash": "7b33b804c87a3223eb4fae9bca52b77b8e887867eb330608105b192161d75999", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl... | 7,089 |
c | /* -*- mode: c; c-file-style:"stroustrup"; -*- */
/*
* Copyright (c) 2018 Mastercard
*
* 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
... | 42.47 | 78 | (translation_unit) "/* -*- mode: c; c-file-style:"stroustrup"; -*- */\n\n/*\n * Copyright (c) 2018 Mastercard\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.apac... | 210 | 0 | {"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 42.47, "nodes": 150, "errors": 0, "source_hash": "143d41db98380652d677bd8feb25ed938bf1ca913d232fcb6baaaf6981e6f80d", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 7,090 |
c | /*
* Copyright (c) International Business Machines Corp., 2002
* ported from SPIE, section2/iosuite/dup1.c, by <NAME>
* Copyright (c) 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 as published by
... | 26.56 | 94 | (translation_unit) "/*\n * Copyright (c) International Business Machines Corp., 2002\n * ported from SPIE, section2/iosuite/dup1.c, by <NAME>\n * Copyright (c) 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... | 635 | 0 | {"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 26.56, "nodes": 376, "errors": 0, "source_hash": "825ffb916820fdd1ca702a505ed83b3c555aed489b55c4c11b765e48282610bd", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc... | 7,091 |
c | // -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2010 <NAME>.
#import <Foundation/Foundation.h>
@interface NSArray (CDExtensions)
- (NSArray *)reversedArray;
- (NSArray *)arrayByMappingSelector:(S... | 33.43 | 14 | (translation_unit) "// -*- mode: ObjC -*-\n\n// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.\n// Copyright (C) 1997-1998, 2000-2001, 2004-2010 <NAME>.\n\n#import <Foundation/Foundation.h>\n\n@interface NSArray (CDExtensions)\n\n- (NSArray *)reversedArray;\n- (NSArr... | 97 | 13 | {"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.43, "nodes": 63, "errors": 0, "source_hash": "55ba8898b9711f820a7fd56c21f96e5e9f6ed02a15c96c886a85d0796ec7a644", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <... | 7,092 |
c | //
// DetermineVideoPlayableOperation.h
// Free Music Library
//
// Created by <NAME> on 2/21/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Song.h"
#import "ReachabilitySingleton.h"
#import "MusicPlaybackController.h"
@interface DetermineVideoPlayableOperatio... | 32.07 | 15 | (translation_unit) "//\n// DetermineVideoPlayableOperation.h\n// Free Music Library\n//\n// Created by <NAME> on 2/21/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Song.h"\n#import "ReachabilitySingleton.h"\n#import "MusicPlaybackController.h"\n\n@interfa... | 58 | 5 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.07, "nodes": 34, "errors": 0, "source_hash": "d09bb0d5a3fb6de003b8000860fb8dca3ba882d868c91bd9bd383f27c677e85f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <... | 7,093 |
c | /** @file Prerequisites.h
@author <NAME>
Declaration of the types of the Athena-Core module
*/
#ifndef _ATHENA_CORE_PREREQUISITES_H_
#define _ATHENA_CORE_PREREQUISITES_H_
#include <Athena-Math/Prerequisites.h>
#include <Athena-Core/Config.h>
#include <Athena-Core/Utils/Singleton.h>
#include <string>
#inclu... | 33.95 | 84 | (translation_unit) "/** @file Prerequisites.h\n @author <NAME>\n\n Declaration of the types of the Athena-Core module\n*/\n\n#ifndef _ATHENA_CORE_PREREQUISITES_H_\n#define _ATHENA_CORE_PREREQUISITES_H_\n\n#include <Athena-Math/Prerequisites.h>\n#include <Athena-Core/Config.h>\n#include <Athena-Core/Utils/Single... | 211 | 1 | {"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 33.95, "nodes": 129, "errors": 0, "source_hash": "ecafd1b8977bdad1628d4cae06a27f7391512a02746a83700fa0e4c8e87daa38", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde... | 7,094 |
c | /**
* @file huffman.h
*
* Interface for {@link huffman.c}.
*
* @date 2018-12-22
* @author <NAME>
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __HUFFMAN_H_
/**Include guard.*/
#define __HUFFMAN_H_
// Includes
#include <stdint.h>
////////////////////////////////////////////////////////////////
///
/// @de... | 24.37 | 156 | (translation_unit) "/**\n * @file huffman.h\n *\n * Interface for {@link huffman.c}.\n *\n * @date 2018-12-22\n * @author <NAME>\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#ifndef __HUFFMAN_H_\n/**Include guard.*/\n#define __HUFFMAN_H_\n\n// Includes\n#include <stdint.h>\n\n////////////////////////////////////... | 283 | 0 | {"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 24.37, "nodes": 185, "errors": 0, "source_hash": "530797b2cd1e10d1659b8742db004346e343b1b155d717db2c7693d040819cf9", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde... | 7,095 |
c | //
// DPImageFilter.h
// Design_Patterns_Demoes
//
// Created by 周飞 on 2019/7/6.
// Copyright © 2019年 zhf. All rights reserved.
//
#import "DPImageComponent.h"
NS_ASSUME_NONNULL_BEGIN
@interface DPImageFilter : DPImageComponent
+ (instancetype)imageFilter:(DPImageComponent *)component;
//每个装饰器特添加的动作
- (void)add... | 22.53 | 15 | (translation_unit) "//\n// DPImageFilter.h\n// Design_Patterns_Demoes\n//\n// Created by 周飞 on 2019/7/6.\n// Copyright © 2019年 zhf. All rights reserved.\n//\n\n#import "DPImageComponent.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DPImageFilter : DPImageComponent\n+ (instancetype)imageFilter:(DPImageComponent *)comp... | 58 | 5 | {"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.53, "nodes": 35, "errors": 0, "source_hash": "ee93786909390ef480c41a53b5a0426216678f23aebab548fd0db6dc42d09586", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"DPImag... | 7,096 |
c | #ifndef VERTEX_H_
#define VERTEX_H_
#include <vector>
#include <vulkan/vulkan_core.h>
#include "types.h"
namespace ZeroVulkan {
class ZVertexLayout
{
public:
inline void addLocation(uint32_t location, ZType type);
inline void createBinding();
std::vector<VkVertexInputAttributeDesc... | 31.6 | 62 | (translation_unit) "#ifndef VERTEX_H_\n#define VERTEX_H_\n\n#include <vector>\n#include <vulkan/vulkan_core.h>\n#include "types.h"\n\nnamespace ZeroVulkan {\n class ZVertexLayout\n {\n public:\n inline void addLocation(uint32_t location, ZType type);\n inline void createBinding();\n\n std:... | 445 | 9 | {"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.6, "nodes": 270, "errors": 0, "source_hash": "61249d00d4f91de809913054fc8deb079e1c44aaafdcaa477b3c8048386fa01b", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 7,097 |
c | #ifndef HAL_CONFIG_TYPES_H
#define HAL_CONFIG_TYPES_H
#include "em_gpio.h"
#define HAL_CLK_HFCLK_SOURCE_HFRCO 1
#define HAL_CLK_HFCLK_SOURCE_HFXO 2
#define HAL_CLK_HFCLK_SOURCE_FSRCO 3
#define HAL_CLK_LFCLK_SOURCE_DISABLED 0
#define HAL_CLK_LFCLK_SOURCE_LFRCO 1
#define HAL_CLK_LFCLK_SOURCE_LFX... | 41.22 | 60 | (translation_unit) "#ifndef HAL_CONFIG_TYPES_H\n#define HAL_CONFIG_TYPES_H\n\n#include "em_gpio.h"\n\n#define HAL_CLK_HFCLK_SOURCE_HFRCO 1\n#define HAL_CLK_HFCLK_SOURCE_HFXO 2\n#define HAL_CLK_HFCLK_SOURCE_FSRCO 3\n\n#define HAL_CLK_LFCLK_SOURCE_DISABLED 0\n#define HAL_CLK_LFCLK_SOURCE_LFRCO 1\n#... | 239 | 0 | {"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 41.22, "nodes": 234, "errors": 0, "source_hash": "cb74e4a789be9e30fd418f49b6ebf9207874481831fc76e2fc55dfe8de15c250", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef... | 7,098 |
c | /*
* Copyright (c) 2020, <NAME>. <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
struct [[gnu::packed]] PtraceRegisters {
#if ARCH(I386)
u32 eax;
u32 ecx;
u32 edx;
u32 ebx;
u32 esp;
u32 ebp;
u32 esi;
u32 edi;
u32 eip;
u32 eflags;
#... | 13.09 | 80 | (translation_unit) "/*\n * Copyright (c) 2020, <NAME>. <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/Types.h>\n\nstruct [[gnu::packed]] PtraceRegisters {\n#if ARCH(I386)\n u32 eax;\n u32 ecx;\n u32 edx;\n u32 ebx;\n u32 esp;\n u32 ebp;\n u32 esi;\n ... | 315 | 2 | {"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 13.09, "nodes": 223, "errors": 0, "source_hash": "4f0649bf364b915061f0dd9ebf145b93f1fb9db3b4341cf46612a3553f51be36", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma... | 7,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.