text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
#ifndef __TestCpp__CustomImageView__ #define __TestCpp__CustomImageView__ #include "ui/CocosGUI.h" class CustomImageView : public cocos2d::ui::ImageView { public: CustomImageView(); ~CustomImageView(); static CustomImageView* create(); static cocos2d::Ref* createInstance(); void se...
code_c
code
166
null
/* Plugin-SDK (Grand Theft Auto San Andreas) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once enum eEmergencyPedVoices : unsigned int { VOICE_EMG_ARMY1, VOICE_EMG_ARMY2, VOICE_EMG_ARMY3, V...
code_c
code
310
null
<filename>media/audio/audio_debug_file_writer.h // 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 MEDIA_AUDIO_AUDIO_DEBUG_FILE_WRITER_H_ #define MEDIA_AUDIO_AUDIO_DEBUG_FILE_WRITER_H_ #include <s...
code_c
code
765
null
#include <stdlib.h> #include <string.h> #ifndef _WIN32 # include <sched.h> # include <sys/types.h> # include <unistd.h> # include <dirent.h> # include <time.h> # define IS_SLASH(c) ((c) == '/') #else # include <io.h> # define IS_SLASH(c) ((c) == '/' || (c) == '\\') #endif /* _WIN32 */ #define UVWASI__READDIR_NUM_ENTR...
code_c
code
19,611
null
/* Alloc.h -- Memory allocation functions 2009-02-07 : <NAME> : Public domain */ #ifndef __COMMON_ALLOC_H #define __COMMON_ALLOC_H #include "7zTypes.h" EXTERN_C_BEGIN void *MyAlloc(size_t size); void MyFree(void *address); void SetLargePageSize(); void *MidAlloc(size_t size); void MidFree(void *address); void *Bi...
code_c
code
127
null
#ifndef DATA_DART_H #define DATA_DART_H #include <map> #include <string> #include "Data/Weapon.h" namespace data { class Dart : public Weapon { public: virtual ~Dart(); static void init(); static const std::map<const std::string, const Dart*>& darts(); protected: Dart(const std::string& name, int cost, ...
code_c
code
275
null
<gh_stars>0 /* utils - utility library Copyright (c) 2021-2022 on-keyday (https://github.com/on-keyday) Released under the MIT license https://opensource.org/licenses/mit-license.php */ // endian - convert big endian and little endian #pragma once #if __has_include(<bit>) #define UTILS_USE_STD_ENDIAN...
code_c
code
1,205
null
<reponame>xu5343/ffmpegtoolkit_CentOS7 /* * GPAC - Multimedia Framework C SDK * * Authors: <NAME> * Copyright (c) Telecom ParisTech 2006-2012 * All rights reserved * * This file is part of GPAC / Symbian GUI player * * GPAC is free software; you can redistribute it and/or modify * it under the te...
code_c
code
780
null
<filename>slamware_ros_sdk_linux-x86_64-gcc5.4-2.8.2-rtm/slamware_ros_sdk_linux-x86_64-gcc5.4/src/slamware_sdk/include/rpos/features/sweep_motion_planner/feature.h /** * feature.h * The Sweep Motion Planner feature * * Created By <NAME> @ 2015-4-3 * Copyright (c) 2015 Shanghai Slamtec Co., Ltd. */ #pragma once...
code_c
code
741
null
<reponame>FirstStone/WKPShangJia<filename>Pods/Headers/Public/PYPhotoBrowser/PYPhotoCell.h // 代码地址: https://github.com/iphone5solo/PYPhotosView // 代码地址: http://code4app.com/thread-8612-1-1.html // Created by CoderKo1o. // Copyright © 2016年 iphone5solo. All rights reserved. // 用于图片浏览/预览时的cell #import <UIKit/UIKit....
code_c
code
286
null
<reponame>SPMoo66/cfru #ifndef GUARD_CONSTANTS_GAME_STAT_H #define GUARD_CONSTANTS_GAME_STAT_H //Flags start at 0x202672C #define GAME_STAT_SAVED_GAME 0 #define GAME_STAT_FIRST_HOF_PLAY_TIME 1 #define GAME_STAT_STARTED_TRENDS 2 //Unused #define GAME_STAT_PLANTED_BERRIES 3...
code_c
code
805
null
// Copyright 2018 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. #ifndef SRC_DEVICES_TESTING_FAKE_BTI_INCLUDE_LIB_FAKE_BTI_BTI_H_ #define SRC_DEVICES_TESTING_FAKE_BTI_INCLUDE_LIB_FAKE_BTI_BTI_H_ #include <limits.h> #inc...
code_c
code
376
null
<reponame>Bamuir3/CCF // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache 2.0 License. #pragma once #include "consensus/consensus_types.h" #include "consensus/pbft/pbft_new_views.h" #include "consensus/pbft/pbft_pre_prepares.h" #include "ds/ring_buffer_types.h" #include "kv/tx.h" ...
code_c
code
1,556
null
<filename>u-boot/common/instaboot.c #include <common.h> #include <amlogic/storage_if.h> #include <amlogic/instaboot.h> #include <partition_table.h> #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif struct instaboot_header { char reserved[PAGE_SIZE - 10 - sizeof(struct new_utsname) - sizeof(u32)]; struct new_utsname ...
code_c
code
424
null
#pragma once class security_item { uint16_t revision; uint16_t certificate_type; std::vector<uint8_t> certificate_data; public: security_item(); security_item(uint16_t revision, uint16_t certificate_type, std::vector<uint8_t>& certificate_data); security_item(const security_item& item); ...
code_c
code
420
null
#include "../hashTable/hashTable.h" typedef struct sl *skipList; skipList initializeSL(); int insertSL(skipList ,char *,char *,citizenRecord ); int searchSL(skipList ,char *); char *searchGetDateSL(skipList ,char *); void deleteSL(skipList ,char *); void destroySL(skipList ); void printSL(skipList ); int getRecords(...
code_c
code
103
null
#ifndef DISKOPS #define DISKOPS #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <math.h> #include "fstree.h" #include "bitmap.h" /* Initial size of the data ...
code_c
code
1,399
null
/* Copyright <SWGEmu> See file COPYING for copying conditions.*/ /* * Updated on: Thu Oct 13 08:16:00 PDT 2011 by lordkator - Fixes to make travel debugging easier and fixed dialog timing */ #ifndef BOARDSHUTTLECOMMAND_H_ #define BOARDSHUTTLECOMMAND_H_ #include "QueueCommand.h" #include "server/zone/objects/...
code_c
code
2,879
null
/** * @file skam437xx_pinmux.c * * @brief * This is the pin configuration for IDK EVM AM437x. * * ============================================================================= * Copyright (c) 2015, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary ...
code_c
code
1,465
null
<gh_stars>0 #pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <assert.h> #include <exception> // UnityEngine.iOS.LocalNotification struct LocalNotification_t3128840488; // System.String struct String_t; // System.Collections...
code_c
code
2,211
null
<gh_stars>1-10 // // UIImage+MMRotation.h // LooseLeaf // // Created by <NAME> on 3/11/17. // Copyright © 2017 Milestone Made, LLC. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (MMRotation) - (UIImage *)rotateClockwise:(BOOL)clockwise; @end
code_c
code
77
null
<gh_stars>1-10 /* SPDX-License-Identifier: MIT */ #ifndef __EXCEPTION_H__ #define __EXCEPTION_H__ enum exc_guard_t { GUARD_OFF, GUARD_SKIP, GUARD_MARK, GUARD_RETURN }; extern volatile enum exc_guard_t exc_guard; extern volatile int exc_count; void exception_initialize(void); void exception_shutdown(void); #endif
code_c
code
91
null
#ifndef CGUN_H #define CGUN_H //----------------------------------------------------------------------- // // Name: CGun.h // // Author: <NAME> 2002 // // Desc: Class to show how to create and manipulate a simple shape using // matrix transformations // //-------------------------------------------------------...
code_c
code
339
null
#pragma once #include <pebble.h> #include "preferences.h" typedef struct LayoutLayers { Layer *graph; Layer *sidebar; Layer *status_bar; Layer *time_area; Layer *bg_row; } LayoutLayers; TextLayer* add_text_layer(Layer *parent, GRect bounds, GFont font, GColor fg_color, GTextAlignment alignment); GColor ele...
code_c
code
161
null
/* Copyright 2010-2011, <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disc...
code_c
code
850
null
//===-- Trace.h -------------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
code_c
code
3,152
null
/* -Procedure dafbfs_c ( DAF, begin forward search ) -Abstract Begin a forward search for arrays in a DAF. -Disclaimer THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S. GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE ADM...
code_c
code
2,914
null
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
code_c
code
2,358
null
<reponame>naver/tamgu<filename>include/tamgulisp.h /* * Tamgu (탐구) * * Copyright 2019-present NAVER Corp. * under BSD 3-clause */ /* --- CONTENTS --- Project : Tamgu (탐구) Version : See tamgu.cxx for the version number filename : lisp.h Date : 2017/09/01 Purpose : Programmer : <NAME> (<EMAIL>) ...
code_c
code
4,921
null
<filename>athena/util/drag_handle.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATHENA_UTIL_DRAG_HANDLE_H_ #define ATHENA_UTIL_DRAG_HANDLE_H_ #include "athena/athena_export.h" namespace vi...
code_c
code
344
null
<gh_stars>10-100 // // Created by Mihir on 15-06-2021. // #include "../../global_functions/globalFunctionForSelectQuery.h" //using namespace std; using ourdb = nlohmann::json; #ifndef OURDB_DATABASE_SELECTFORCOLS_H #define OURDB_DATABASE_SELECTFORCOLS_H std::string SelectFuncForCols(std::string tablePath,std::vecto...
code_c
code
595
null
<reponame>KFAaron/KFAHotchpotch // // KFASegmentFactory.h // KFAHotchpotch // // Created by KFAaron on 2019/7/22. // Copyright © 2019 KFAaron. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface KFASegmentFactory : NSObject /** 获取偏移量 */ + (CGFloat)interpolationFrom:(CGFl...
code_c
code
400
null
<filename>Extensions/XEP-0199/XMPPAutoPing.h<gh_stars>0 #import <Foundation/Foundation.h> #import "XMPPModule.h" #import "XMPPPing.h" @class XMPPJID; /** * The XMPPAutoPing module sends pings on a designated interval to the target. * The target may simply be the server, or a specific resource. * * The module onl...
code_c
code
761
null
// // AVPBaseViewController.h // AliPlayerDemo // // Created by 汪宁 on 2019/1/28. // Copyright © 2019年 com.alibaba. All rights reserved. // #import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN @interface AVPBaseViewController : NSViewController @end NS_ASSUME_NONNULL_END
code_c
code
78
null
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_NG_NG_BOX_FRAGMENT_PAINTER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_NG_NG_BOX_FRAGMENT_PAINTER_H_ #...
code_c
code
1,774
null
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2004-2007 ARM Limited. * Copyright (C) 2008 <NAME> <<EMAIL>> * Copyright (C) 2015 - 2016 Xilinx, Inc, <NAME> * * As a special exception, if other files instantiate templates or use macros * or inline functions from this file, or you compile this file and link...
code_c
code
1,052
null
#ifndef NCORE_SYS_SOCKET_ASYNC_EVENT_ARGS_H_ #define NCORE_SYS_SOCKET_ASYNC_EVENT_ARGS_H_ #include <ncore/ncore.h> #include <ncore/utils/async_result_delegate.h> #include <ncore/utils/async_result_adapter.h> #include "async_context.h" #include "ip_endpoint.h" namespace ncore { class Socket; /*Socke...
code_c
code
600
null
<reponame>yideng2010/SimulateIDFA // // SimulateIDFA.h // NON PRODUCTION RELEASE VERSION 1.0 // // Created by JFChen on 16/9/7. // Copyright © 2016年 JFChen. All rights reserved. // // https://github.com/youmi/SimulateIDFA /* The MIT License (MIT) Copyright (c) 2015 Youmi Technology Permission is hereby granted, ...
code_c
code
425
null
<reponame>benjaminmao123/PCC_CS003A<gh_stars>0 #ifndef Z_OUTPUT_H #define Z_OUTPUT_H /* ***** ALL RESULTS ARE VERIFIED ****** //--------------------------------------------------------------------- // InsertAfter: //--------------------------------------------------------------------- : a : 100 : a : 200 : a : 300 : a ...
code_c
code
3,898
null
<reponame>knmcguire/gap_sdk<filename>tools/gap8-openocd/src/jtag/aice/aice_interface.c /*************************************************************************** * Copyright (C) 2013 by Andes Technology * * <NAME> <<EMAIL>> * * ...
code_c
code
3,900
null
<reponame>clebsonc/UriOnlineJudge #include<stdlib.h> #include<stdio.h> int main(){ int * a = NULL; if(a!=NULL) printf("Hello World"); return 0; }
code_c
code
47
null
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
code_c
code
7,137
null
#pragma once #include <OpenEXR/ImathMatrix.h> namespace possumwood { class ViewportState { public: ViewportState(); void perspective(float fovyInDegrees, float znear, float zfar); void lookAt(const Imath::V3f& eyePosition, const Imath::V3f& lookAt, const Imath::V3f& upVector = Imath::V3f(0, 1, 0))...
code_c
code
244
null
<gh_stars>0 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in th...
code_c
code
830
null
<gh_stars>0 /* * asm-common.h * * macro definitions common for all architectures * */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #define ASM_1_BEGIN { #define ASM_1_END } #define ASM_2_BEGIN #define ASM_2_END #define _UL(X) ((uint64_t)(X)) #define _MASK(N) ((uint64...
code_c
code
1,257
null
<gh_stars>1-10 // // IDNNavigationController.h // IDNFramework // // Created by photondragon on 28/12/15. // Copyright © 2015年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> /** * IDNNavigationController.topViewController只要实现UIGestureRecognizerDelegate协议的两个方法: * - (BOOL)gestureRecognizerShouldBegin:...
code_c
code
159
null
/* * Copyright 2018 The Imaging Source Europe GmbH * * 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 la...
code_c
code
748
null
// // AbstractData.h // MasterpassQRCoreSDKV2 // // Created by MasterCard on 13/9/17. // Copyright © 2017 MasterCard. All rights reserved. // #import <Foundation/Foundation.h> @protocol Tag; @class TagInfo; /** Abstract class `AbstractData` model is the root of Data hierarchy, containing the basic common functi...
code_c
code
1,307
null
/** ****************************************************************************** * @file stm32g4xx_ll_tim.h * @author MCD Application Team * @brief Header file of TIM LL module. ****************************************************************************** * @attention * * Copyright (c) 2019 STM...
code_c
code
87,964
null
#ifndef RETURNEXPRESSION_H #define RETURNEXPRESSION_H #include "Expression.h" #include <boost/serialization/access.hpp> #include <boost/serialization/nvp.hpp> class ReturnExpression : public Expression { private: friend class ::boost::serialization::access; template<class A> void serialize(A& ar, const unsigned in...
code_c
code
214
null
<gh_stars>1000+ // // GJAssetsPickerConstans.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-8. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import <AssetsLibrary/AssetsLibrary.h> #import "GJCFAssetsPickerStyle.h" #import "UIButton+...
code_c
code
495
null
<reponame>ayoubdahdouh/Command-lf<filename>src/display.h #ifndef DISPLAY_H #define DISPLAY_H #include <sys/stat.h> #include "types.h" void chooseColor(char *nm, mode_t *m, char **c); void displayName(char *nm, mode_t *m, char *c, char *r); void display(char *nm, mode_t *m, Bool nl); #endif
code_c
code
83
null
/* * The MIT License * * Copyright (c) 2016-2017 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * right...
code_c
code
1,829
null
<reponame>butibuti/CatchTheMoney #pragma once #include"ButiMath.h" #include<memory> namespace ButiEngine { class Transform :public IObject { public: inline Transform() { localMatrix = nullptr; rotation = Matrix4x4(); } inline Transform(const Vector3& arg_position, const Vector3& arg_rotate, const Vec...
code_c
code
4,988
null
/* * Copyright (C) 2021 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * 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 * * Unl...
code_c
code
463
null
<reponame>gitter-badger/mtp #import <Foundation/Foundation.h> @class MSDistributionGroup; /** * Details of an uploaded release. */ @interface MSReleaseDetails : NSObject /** * ID identifying this unique release. */ @property(nonatomic, copy) NSNumber *id; /** * The release's version * For iOS: CFBundleVersion...
code_c
code
284
null
#ifndef SCRIPTING_OPERATORS_SPECTRUM_ATOMS_H_ #define SCRIPTING_OPERATORS_SPECTRUM_ATOMS_H_ #include "../operators_common.h" namespace voronota { namespace scripting { namespace operators { class SpectrumAtoms : public OperatorBase<SpectrumAtoms> { public: struct Result : public OperatorResultBase<Result> { Su...
code_c
code
3,448
null
<gh_stars>1-10 // // DataTools.h // testDemo // // Created by lignpeng on 2018/7/30. // Copyright © 2018年 genpeng. All rights reserved. // /* 关于数据方面的操作 */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface DataTools : NSObject //创建随机字符串 + (NSString *)createFileName:(int)length; /* 筛选数组中的对象...
code_c
code
187
null
<reponame>ZhengjsGit/SymPIC #include "local_header.h" int c_GEO_YEE_CURL_L_init (c_pscmc_env * pe ,c_GEO_YEE_CURL_L_struct * kerstr ) ; void c_GEO_YEE_CURL_L_get_struct_len (size_t * len ) ; int c_GEO_YEE_CURL_L_get_xlen () ; int c_GEO_YEE_CURL_L_get_num_compute_units (c_GEO_YEE_CURL_L_struct * kerstr ) ; int ...
code_c
code
729
null
<filename>src/mame/includes/kyocera.h<gh_stars>10-100 // license:BSD-3-Clause // copyright-holders:<NAME> #ifndef MAME_INCLUDES_KYOCERA_H #define MAME_INCLUDES_KYOCERA_H #pragma once #include "cpu/i8085/i8085.h" #include "imagedev/cassette.h" #include "machine/buffer.h" #include "machine/i8155.h" #include "machine/i8...
code_c
code
2,098
null
<gh_stars>0 // See LICENSE for license details. #ifndef _RISCV_BITS_H #define _RISCV_BITS_H #define likely(x) __builtin_expect((x), 1) #define unlikely(x) __builtin_expect((x), 0) #define ROUNDUP(a, b) ((((a)-1) / (b) + 1) * (b)) #define ROUNDDOWN(a, b) ((a) / (b) * (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #d...
code_c
code
268
null
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed ...
code_c
code
550
null
<filename>core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/valret.h ///////////////////////////////////////////////// // Value-Retriever ClassTP(TValRet, PValRet)//{ private: PDmHd DmHd; UndefDefaultCopyAssign(TValRet); public: TValRet(const PDmHd& _DmHd): DmHd(_DmHd){} virtual ~TValRet(){} ...
code_c
code
556
null
<filename>bundle/calamares/src/modules/plasmalnf/ThemeInfo.h<gh_stars>0 /* === This file is part of Calamares - <https://calamares.io> === * * SPDX-FileCopyrightText: 2017 <NAME> <<EMAIL>> * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * */ #i...
code_c
code
632
null
<reponame>core-not-dumped/Baekjoon_Coding<filename>10828.c #include <stdio.h> #include <string.h> int main(void) { int N; scanf("%d", &N); char com[20]; int st[10000]; int sp = 0; int i; for(i=0;i<N;i++) { memset(com,0,sizeof(com)); scanf("%s", com); if(com[0] == 's') printf("%d\n", sp); else if(com[...
code_c
code
187
null
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
code_c
code
702
null
#define MULLE_OBJC_ALLOC_METHODID MULLE_OBJC_METHODID( 0xab1bb16b) // "alloc" #define MULLE_OBJC_AUTORELEASE_METHODID MULLE_OBJC_METHODID( 0x8c9fa1fc) // "autorelease" #define MULLE_OBJC_CLASS_METHODID MULLE_OBJC_METHODID( 0xb3e0bffa) // "class" #define MULLE_OBJC_COPY_METHODID MULL...
code_c
code
670
null
<filename>Q-municate/Models/TopicModel/TopicModel.h // // TopicModel.h // Reach-iOS // // Created by AlexFill on 02.02.16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "UserModel.h" @interface TopicModel : NSObject @property (strong, nonatomic) NSNumber *topicID; ...
code_c
code
207
null
#pragma once #include "reflection/meta_runtime.h" namespace sprint { struct SERIALIZED RectInt { int x = 0; int y = 0; int width = 0; int height = 0; }; inline bool Valid(const RectInt& rect) { return rect.width > 0 && rect.height > 0; } inline bool operator==(const RectInt& lhs, const RectInt& rhs)...
code_c
code
211
null
// // BlueShiftRequestOperationManager.h // BlueShift-iOS-SDK // // Copyright (c) Blueshift. All rights reserved. // #import "BlueShiftAppDelegate.h" #import <CoreData/CoreData.h> #import "HttpRequestOperationEntity.h" #import "BlueShiftHTTPMethod.h" #import "NSNumber+BlueShiftHelpers.h" #import "BlueShiftStatusCod...
code_c
code
378
null
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "countsortlib.h" void defineVet(int n){ int i; int *milhao; milhao = (int *)calloc(n, sizeof(int)); clock_t t; srand( (unsigned)time(NULL) ); for(i=0;i<n;i++){ milhao[i]=(rand()%1000); } t=clock(); countingSort(...
code_c
code
166
null
<reponame>ethanqtle/C_4_Everyone_Fund #include "complex.h" int main(void) { complex a, b, z, w; printf("%s", "---\n" "Complex arithemtic will be performed\n" "on a and b, two complex numbers.\n" "\n"); for ( ; ; ) { printf("Input a and b: "); if (get_from_user(&a, &b) ==...
code_c
code
179
null
<reponame>hon1nbo/BCTt #ifndef CRYPTOPP_OSRNG_H #define CRYPTOPP_OSRNG_H #include "config.h" #ifdef OS_RNG_AVAILABLE #include "randpool.h" #include "rng.h" #include "des.h" #include "fips140.h" NAMESPACE_BEGIN(CryptoPP) //! Exception class for Operating-System Random Number Generator. class CRYPTOPP_DLL OS_RNG_Err...
code_c
code
1,198
null
#ifndef __DELAY_H__ #define __DELAY_H__ #include <stdint.h> void delay(const uint32_t u32_count); #endif
code_c
code
30
null
<gh_stars>100-1000 // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include <frc/controller/ProfiledPIDController.h> #include <units/time.h> #include "fr...
code_c
code
908
null
<filename>drivers/fpga_near_mem_map/fpga_near_mem_map.h /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * FPGA Virtual to Physical Near-Memory Mapping Helper * * Copyright 2020 Intel Corporation, Inc. * * Authors: * <NAME> <<EMAIL> * * This driver may eventually provide the framework for man...
code_c
code
692
null
<filename>src/src.h // MIT License // // Copyright (c) 2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use...
code_c
code
595
null
/** * @file lib_kalman.h * @author 赵晨瑄 (<EMAIL>) * @brief 卡尔曼滤波 * @version 0.1 * @date 2020-05-27 * * @copyright Copyright (c) 2020 * */ #ifndef __LIB_KALMAN_H__ #define __LIB_KALMAN_H__ typedef struct __KalmanTypeDef { float x; float A; float H; float q; float r; float p; float g...
code_c
code
152
null
<filename>biod/biod_proxy/biometrics_manager_proxy_base.h<gh_stars>0 // Copyright 2020 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. #ifndef BIOD_BIOD_PROXY_BIOMETRICS_MANAGER_PROXY_BASE_H_ #define BIOD_BIOD_PROXY_B...
code_c
code
860
null
#include <stdio.h> #include <pthread.h> #include<unistd.h> void* threadFunction(void* args) { int i; for(i=1;i<=5;++i) { printf("I am new thread.\n"); sleep(1); } } int main() { pthread_t id; int res,i; res=pthread_create(&id,NULL,&threadFunction,NULL); if(res==0) { ...
code_c
code
159
null
<gh_stars>10-100 #ifndef _MMAPBOTTOMSEGMENT_H #define _MMAPBOTTOMSEGMENT_H #include "halBottomSegment.h" #include "halGenome.h" #include "mmapBottomSegmentData.h" #include "mmapGenome.h" #include <cassert> namespace hal { class MMapBottomSegment : public BottomSegment { public: MMapBottomSegment(MMap...
code_c
code
1,430
null
<filename>Util/hpgmg/finite-volume/source/operators.old/chebyshev.c<gh_stars>10-100 //------------------------------------------------------------------------------------------------------------------------------ // <NAME> // <EMAIL> // Lawrence Berkeley National Lab //--------------------------------------------------...
code_c
code
1,497
null
/* * Copyright 2008, The Android Open Source 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 app...
code_c
code
1,005
null
// // ContactsViewController.h // ObjCVoiceCallingApp // // Created by Siva on 12/04/17. // Copyright © 2017 Plivo. All rights reserved. // #import <UIKit/UIKit.h> @interface ContactsViewController : UIViewController - (void)makeCallWithSiriName:(NSString*)name; @end
code_c
code
78
null
<reponame>st4ll1/dust3d // Copyright (c) 2017 GeometryFactory // // This file is part of CGAL (www.cgal.org). // 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, or (at your option) any later v...
code_c
code
1,008
null
// Aligned array allocation // // For performance reasons, it is useful for certain arrays to be aligned to cache // lines even if they don't need to be for correctness. The most important example // of this is Vector<super_t,2>, the core data type in the endgame solver. This // type takes up 64 bytes, exactly the ca...
code_c
code
336
null
<reponame>NASA-AMMOS/VICAR<filename>vos/p2/prog/vgrcdcopy/engrhdr.h /* I kept the order of all the packed bit-fields so that VAX formats */ /* are retained. I had to reverse these fields for the UNIX platforms */ /* */ /* --> This is the VAX VER...
code_c
code
1,448
null
/******************************************************************************* ** DISR.c, implements the Double Input Symmetrical Relevance criterion ** from ** ** "On the Use of Variable Complementarity for Feature Selection in Cancer Classification" ** <NAME> and <NAME>, (2006) ** ** Initial Version - 13/06/2008 *...
code_c
code
1,907
null
#pragma once #include "../global/vars.h" void inject_wisp(bool replace); void InitialiseWillOWisp(short item_number); void WillOWispControl(short item_number); void InitialiseMazeMonster(short item_number); void MazeMonsterControl(short item_number);
code_c
code
72
null
<filename>modules/juce_audio_devices/native/juce_android_HighPerformanceAudioHelpers.h /* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to ...
code_c
code
1,648
null
// TR1 hashtable.h header -*- C++ -*- // Copyright (C) 2007-2021 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Found...
code_c
code
11,998
null
<reponame>ricrogz/zmq_examples // mdwrkapi class - Majordomo Protocol Worker API // Implements the MDP/Worker spec at http://rfc.zeromq.org/spec:7. #include "mdwrkapi.h" // Reliability parameters #define HEARTBEAT_LIVENESS 3 // 3-5 is reasonable // .split worker class structure // This is the structure ...
code_c
code
2,162
null
// license:BSD-3-Clause // copyright-holders:<NAME> /********************************************************************** COM8116 Dual Baud Rate Generator (Programmable Divider) emulation COM5016 is a mostly-compatible clone of this chip, with +12V on pin 9 rather than NC. *****************************...
code_c
code
1,226
null
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as...
code_c
code
3,334
null
<reponame>ebermudezcds/iOS-Density-Map<filename>GLDensityMap/GLDensityMap.h // // GLDensityMap.h // GLDensityMap // // Created by <NAME> on 3/19/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for GLDensityMap. FOUNDATION_EXPORT double GLDensityMapVersion...
code_c
code
143
null
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
code_c
code
824
null
#include "u8x8.h" /* Fontname: -FreeType-PxPlus TandyNew TV-Medium-R-Normal--8-80-72-72-P-70-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 192/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplustandynewtv_f[1796] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_f") = " \377\1\1\0\0\0...
code_c
code
1,180
null
<filename>fv_cache/mempool.h // AUTORIGHTS // ------------------------------------------------------- // Copyright (C) 2011-2012 <NAME> // // This file is part of the voc-releaseX code // (http://people.cs.uchicago.edu/~rbg/latent/) // and is available under the terms of an MIT-like license // provided in COPYING. Ple...
code_c
code
933
null
<gh_stars>10-100 #pragma once #include "Rush.h" #include "GfxCommon.h" #include "GfxPrimitiveBatch.h" #include "UtilArray.h" namespace Rush { class DataStream; // Class for working with AngelCode BMFont files. // More details here: http://www.angelcode.com/products/bmfont/ // Current simple implementation is only s...
code_c
code
729
null
// // JZPersonViewController.h // JZProject // // Created by zjz on 2019/11/5. // Copyright © 2019 zjz. All rights reserved. // #import "JZBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface JZPersonViewController : JZBaseViewController @end NS_ASSUME_NONNULL_END
code_c
code
79
null