text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
//
// NetStatus-Bridging-Header.h
// NetStatus
//
// Created by Infraestructura on 7/26/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import "Reachability.h"
| code_c | code | 49 | null |
#ifndef _ROS_gazebo_msgs_ODEJointProperties_h
#define _ROS_gazebo_msgs_ODEJointProperties_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
namespace gazebo_msgs
{
class ODEJointProperties : public ros::Msg
{
public:
uint32_t damping_length;
typedef float _damping... | code_c | code | 4,083 | null |
/*
* This file is part of libmodulemd
* Copyright (C) 2018 Red Hat, Inc.
*
* Fedora-License-Identifier: MIT
* SPDX-2.0-License-Identifier: MIT
* SPDX-3.0-License-Identifier: MIT
*
* This program is free software.
* For more information on the license, see COPYING.
* For more information on free software, see ... | code_c | code | 5,252 | null |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_COMPONENTS_QUICK_ANSWERS_TEST_TEST_HELPERS_H_
#define CHROMEOS_COMPONENTS_QUICK_ANSWERS_TEST_TEST_HELPERS_H_
#include "chromeos/componen... | code_c | code | 720 | null |
<gh_stars>10-100
#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/Test.h>
#include <UrchinCommon.h>
class AABBoxTest : public CppUnit::TestFixture {
public:
static CppUnit::Test* suite();
void rayRightToBox();
void rayRightTopToBox();
void rayInsideBox();
... | code_c | code | 139 | null |
<filename>Handle.h
/*
* Copyright 2010-2014 Fabric Software Inc. All rights reserved.
*/
#ifndef __handle_h__
#define __handle_h__
template <class T>
struct Handle
{
private:
T * m_data;
bool m_owned;
Fabric::EDK::AtomicUInt32 m_refCount;
public:
Handle(T * data, bool owned = false)
{
Fabric::EDK::A... | code_c | code | 224 | null |
<reponame>jmcmillan1/smack-portfolio
#include "smack.h"
#include <assert.h>
// @expect error
extern char __VERIFIER_nondet_char(void);
extern int __VERIFIER_nondet_int(void);
extern long __VERIFIER_nondet_long(void);
extern void *__VERIFIER_nondet_pointer(void);
void errorFn(void);
void IofCompleteRequest(int Irp, in... | code_c | code | 17,612 | null |
<gh_stars>0
#ifndef _STTBX_H_
#define _STTBX_H_
/* C++ support */
/* ----------- */
#ifdef __cplusplus
extern "C" {
#endif
#define STTBX_Print(x) printf x
#define STPTI_InvalidPid() 0xe000
#define STPTI_NullPid() 0x1FFF
/* C++ support */
/* ----------- */
#ifdef __cplusplus
}
#endif
#endif
| code_c | code | 89 | null |
<gh_stars>1-10
#import <React/RCTBridgeModule.h>
@interface RTKVideoEditor : NSObject <RCTBridgeModule>
@end
| code_c | code | 31 | null |
<gh_stars>1-10
/*
* Copyright (c) 2013, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
*/
#ifndef DRIVERKI... | code_c | code | 338 | null |
/*
* mt8173-rt5650.c -- MT8173 machine driver with RT5650 codecs
*
* Copyright (c) 2016 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Fr... | code_c | code | 2,206 | null |
<gh_stars>1-10
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// pgconfig.h - backend configuration classes
//
/////////////////////... | code_c | code | 1,150 | null |
#import <Foundation/Foundation.h>
@class PMKPromise;
@class Model;
@class IcstDocumentModel;
/** The date the document was created */
extern NSString *const kAttrIcstDocumentCreated;
/** unique id */
extern NSString *const kAttrIcstDocumentId;
/** The type of document */
extern NSString *const kAttrIcstDocume... | code_c | code | 1,038 | null |
<gh_stars>1-10
static const AVInputFormat * const demuxer_list[] = {
&ff_aa_demuxer,
&ff_aac_demuxer,
&ff_aax_demuxer,
&ff_ac3_demuxer,
&ff_ace_demuxer,
&ff_acm_demuxer,
&ff_act_demuxer,
&ff_adf_demuxer,
&ff_adp_demuxer,
&ff_ads_demuxer,
&ff_adx_demuxer,
&ff_aea_demuxer,
... | code_c | code | 2,211 | null |
<filename>External/Quickblox.framework/Headers/QBChatDialog.h
//
// QBChatDialog.h
// Quickblox
//
// Created by QuickBlox team on 23/04/2014.
// Copyright (c) 2016 QuickBlox. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Quickblox/QBNullability.h>
#import <Quickblox/QBGeneric.h>
#import "Chat... | code_c | code | 2,057 | null |
#include <il2c_private.h>
#include "../Platform/debugbreak.h"
///////////////////////////////////////////////////////
// Another special runtime helper functions
#if defined(IL2C_USE_LINE_INFORMATION)
void il2c_break__(const char* pFile, int line)
#else
void il2c_break__(void)
#endif
{
debug_break();
}
////////... | code_c | code | 1,834 | null |
<filename>src/apps/M2DemoMachine/M2DemoMachine.h
/**
* \file M2DemoMachine.h
* \author <NAME>
* /brief The <code>M2DemoMachine</code> class represents an example implementation of an M2 state machine.
* \version 0.1
* \date 2020-12-09
*
* \copyright Copyright (c) 2020
*
*/
#ifndef M2_SM_H
#define M2_SM_H
#inc... | code_c | code | 488 | null |
#pragma once
#include "RE/HandleManager.h"
namespace RE
{
template <class T, class Manager = HandleManager>
class BSPointerHandleManagerInterface
{
public:
using value_type = T;
};
}
| code_c | code | 55 | null |
<reponame>dangustafsson/DGSimpleSettings
//
// ViewController.h
// SettingsSampleApp
//
// Created by <NAME> on 22/09/2015.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (nonatomic, weak) IBOutlet UILabel *dateLabel;
@property (... | code_c | code | 123 | null |
/*
* Copied to fcgi_config.h when building on WinNT without cygwin,
* i.e. configure is not run. See fcgi_config.h.in for details.
*/
#define HAVE_FPOS 1
#define HAVE_LIMITS_H 1
#define HAVE_STREAMBUF_CHAR_TYPE 1
#define HAVE_STRERROR 1
#undef HAVE_ARPA_INET_H
#undef HAVE_DLFCN_H
#undef HAVE_FILENO_PROTO
#undef... | code_c | code | 542 | null |
/* $OpenBSD: dump.c,v 1.75 2016/02/23 02:39:54 krw Exp $ */
/*
* dump.c - dumping partition maps
*
* Written by <NAME>
*/
/*
* Copyright 1996,1997,1998 by Apple Computer, Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any ... | code_c | code | 2,991 | null |
#include "zfdevice.h"
#include <string.h>
#define ZF_MAX_BACKENDS 8
#define ZF_MAX_DEVICES 32
struct zfbackend {
char name[16];
struct zfops *ops;
};
struct zfdevice {
char name[16];
struct zfdevops *ops;
void *data;
};
static int __dev_initialized = 0;
static struct zfbackend __backends[ZF_MAX... | code_c | code | 740 | null |
#ifndef _PRODBGAPI_H_
#define _PRODBGAPI_H_
#include "pd_common.h"
#include "pd_readwrite.h"
#ifdef _cplusplus
extern "C" {
#endif
#define PD_BACKEND_API_VERSION "ProDBG Backend 1"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
typedef enum P... | code_c | code | 833 | null |
#ifndef __MAIN_H__
#define __MAIN_H__
#include "system.h"
#include "bsp/board.h"
#endif /* ifndef MAIN_H */
| code_c | code | 31 | null |
#ifndef _LIGHTTPD_SETTINGS_H_
#define _LIGHTTPD_SETTINGS_H_
#include "first.h"
#define FILE_CACHE_MAX 16
/**
* max size of a buffer which will just be reset
* to ->used = 0 instead of really freeing the buffer
*
* 64kB (no real reason, just a guess)
*/
#define BUFFER_MAX_REUSE_SIZE (4 * 1024)
/* both shou... | code_c | code | 177 | null |
/** @file
Register names for PCH P2SB device
Conventions:
- Register definition format:
Prefix_[GenerationName]_[ComponentName]_SubsystemName_RegisterSpace_RegisterName
- Prefix:
Definitions beginning with "R_" are registers
Definitions beginning with "B_" are bits within registers
Definitions... | code_c | code | 1,484 | null |
<gh_stars>0
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
/**
* Common convenitions for naming:... | code_c | code | 7,442 | null |
/********************************************************
* *
* Implementation of DUKPT PIN Block Encryption *
* based on ANSI_X9.24-1-2009 *
* *
* Receiver (server) Side ... | code_c | code | 2,526 | null |
<gh_stars>0
#ifndef _INSTANCEPOOL_H
#define _INSTANCEPOOL_H
#include <iostream> /* printf */
#include <string>
#include <vector>
#include <sstream> /* stringstream */
#include <stdlib.h> /* cin, cout */
#include "instance.h"
using namespace std;
class InstancePool {
private:
vector<Instance> messagecollec... | code_c | code | 259 | null |
//------------------------------------------------------------------------------
// GB_qsort_3: sort a 3-by-n list of integers, using A[0:2][] as the key
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-Licens... | code_c | code | 560 | null |
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// System.Uri
struct Uri_t19570940;
// System.Net.IWebProxy
struct IWebProxy_t3916853445;
// System.String
struct String_t;
// System.Object
struct Il2CppObject;
// System.String[]
st... | code_c | code | 1,940 | null |
<filename>linker_script/map_strategy.h
/* Copyright (c) 2019 SiFive Inc. */
/* SPDX-License-Identifier: Apache-2.0 */
#ifndef __MAP_STRATEGY__H
#define __MAP_STRATEGY__H
#include <list>
#include <string>
#include <fdt.h++>
#include <memory.h>
#include <linker_script.h>
using std::list;
using std::string;
typedef ... | code_c | code | 278 | null |
<filename>TestProject/PagedScrollViewController.h<gh_stars>0
//
// PagedScrollViewController.h
// ScrollViews
//
// Created by <NAME> on 01/03/2012.
// Copyright (c) 2012 Swipe Stack Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PagedScrollViewController : UIViewController <UIScrollViewDelegate>... | code_c | code | 126 | null |
<gh_stars>1-10
#pragma once
#include "il2cpp.h"
void Dpr_Demo_Demo_Trade___ctor (Dpr_Demo_Demo_Trade_o* __this, const MethodInfo* method_info);
void Dpr_Demo_Demo_Trade__Destroy (Dpr_Demo_Demo_Trade_o* __this, const MethodInfo* method_info);
void Dpr_Demo_Demo_Trade__SetParam (Dpr_Demo_Demo_Trade_o* __this, int32_t m... | code_c | code | 406 | null |
<filename>source/core/slang-http.h
#ifndef SLANG_CORE_HTTP_H
#define SLANG_CORE_HTTP_H
#include "../../slang.h"
#include "slang-string.h"
#include "slang-list.h"
#include "slang-memory-arena.h"
#include "slang-stream.h"
#include "../../slang-com-helper.h"
#include "../../slang-com-ptr.h"
namespace Slang {
/// Al... | code_c | code | 1,735 | null |
<filename>detail/os/reactor/epoll/events/epoll_timer.h
/**
* MIT License
* Copyright (c) 2020 <NAME>
**/
#pragma once
#include "baba/semantics.h"
#include "os/common/event_registrar.h"
#include "os/reactor/epoll/epoll_completion_strand.h"
#include "os/reactor/epoll/epoll_reactor_event.h"
namespace baba... | code_c | code | 404 | null |
<filename>include/TaskQueueBase.h
#ifndef _TPOOL_TASK_QUEUE_BASE_H_
#define _TPOOL_TASK_QUEUE_BASE_H_
#include "TaskBase.h"
#include <boost/shared_ptr.hpp>
#include <cstdlib> // for size_t
namespace tpool {
class TaskQueueBase {
public:
typedef boost::shared_ptr<TaskQueueBase> Ptr;
virtual ~TaskQueue... | code_c | code | 134 | null |
<reponame>playbar/TeamTalk
//
// DDContactsCell.h
// IOSDuoduo
//
// Created by <NAME> on 2014-08-22.
// Copyright (c) 2014 dujia. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MTTGroupEntity.h"
#import "MTTAvatarImageView.h"
@interface DDContactsCell : UITableViewCell
@property(strong)MTTAv... | code_c | code | 142 | null |
// #include "ctl.h"
// Property: G( FG(ret==OK) \/ added<=0 )
#include <stdio.h>
#define AF_INET 1
#define AF_INET6 2
#define AF_UNIX 3
#define IS_AF_UNIX(a) nondet()
#define IS_AF_UNIX(a) nondet()
#define HAVE_IPV6 1
#define HAVE_UNIX_SOCKETS 1
#define PG_SOMAXCONN 10
#define SOCK_STREAM 1
#define STA... | code_c | code | 2,929 | null |
#ifndef LOADING_UTIL_H
#define LOADING_UTIL_H
// defined in m_accel.h
typedef struct accel_settings accel_settings_t;
typedef struct mouse_dev {
libusb_context *usb_ctx;
libusb_device_handle *usb_handle;
bool usb_detached;
bool usb_claimed;
uint16_t vendor_id;
uint16_t product_id;
uint16_t endpoint_in;
... | code_c | code | 197 | null |
<reponame>zek3vil/JotUI
//
// ViewController.h
// jotuiexample
//
// Created by <NAME> on 12/8/12.
// Copyright (c) 2012 Milestone Made. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <JotUI/JotUI.h>
#import "Pen.h"
#import "Marker.h"
#import "Eraser.h"
#import "Highlighter.h"
@interface ViewController ... | code_c | code | 380 | null |
<reponame>yakuizhao/intel-vaapi-driver
/*
* thread.h, thread class
*
* Copyright (c) 2009-2010 Wind River Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | code_c | code | 383 | null |
// RUN: %check --prefix=int %s -Wenum-mismatch-int
// RUN: %check --prefix=range %s -Wenum-out-of-range
// RUN: %check %s
enum A
{
X
};
f(enum A);
main()
{
f(0); // CHECK-int: warning: implicit conversion from 'int' to 'enum A'
f(X); // CHECK: !/warn/
f(1); // CHECK-range: warning: value 1 is out of range for 'e... | code_c | code | 94 | null |
#ifndef __JANUS_VECTOR_HANDLER__
#define __JANUS_VECTOR_HANDLER__
#include "janus_api.h"
typedef enum _hardware
{
NOT_RECOGNISED_CPU,
SSE_SUPPORT,
AVX_SUPPORT,
AVX2_SUPPORT
} GHardware;
#ifdef __cplusplus
extern "C" {
#endif
GHardware
janus_detect_hardware();
void
vector_extend_handler(JANUS_CONTEXT);
void
ve... | code_c | code | 243 | null |
<filename>src/elements.h
// Copyright 2011 the V8 project authors. 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
// ... | code_c | code | 1,479 | null |
#ifndef ZCASH_GTEST_JSON_TEST_VECTORS_H
#define ZCASH_GTEST_JSON_TEST_VECTORS_H
#include <gtest/gtest.h>
#include "utilstrencodings.h"
#include "version.h"
#include "serialize.h"
#include "streams.h"
#include <univalue.h>
UniValue
read_json(const std::string& jsondata);
// #define PRINT_JSON 1
template<typename T... | code_c | code | 368 | null |
<gh_stars>0
/*****************************************************************************
* Copyright(c) 2017 FCI Inc. All Rights Reserved
*
* File name : fci_oal.c
*
* Description : API source of ISDB-T baseband module
*
* This program is free software; you can redistribute it and/or modify
* it under the ter... | code_c | code | 437 | null |
<reponame>zecke/pharo-vm-1
#ifndef __SKYEYE_PORTABLE_BEOS_STDINT_H_
#define __SKYEYE_PORTABLE_BEOS_STDINT_H_
#include <inttypes.h>
#include <limits.h>
#ifndef INT32_MAX
#define INT32_MAX INT_MAX
#endif /* INT32_MAX */
#endif /* __SKYEYE_PORTABLE_BEOS_STDINT_H_*/
| code_c | code | 76 | null |
<filename>source/mac/GDBHelpers.c<gh_stars>1-10
#include "GDBHelpers.h"
bool isGDBActive() {
return false;
int junk;
int mib[4];
struct kinfo_proc info;
size_t size;
//unitialize the flags so that, if sysctl fails for some bizarre
//reason, we get a predictable result.
info.kp_proc.p_flag = 0;
//initialize m... | code_c | code | 215 | null |
//
// VideoViewController.h
// TTNews
//
// Created by 瑞文戴尔 on 16/4/2.
// Copyright © 2016年 瑞文戴尔. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface VideoViewController : UITableViewController
@end
| code_c | code | 60 | null |
<gh_stars>0
// Porres 2017
// Based on cyclone's allpass
#include <math.h>
#include <stdlib.h>
#include "m_pd.h"
#define allpass_rev_STACK 48000 // stack buf size, 1 sec at 48k
#define allpass_rev_MAXD 4294967294 // max delay = 2**32 - 2
static t_class *allpass_rev_class;
typedef struct _allpass_rev
{
t_object ... | code_c | code | 2,453 | null |
<gh_stars>1-10
/*-
* Copyright (c) 2014-2017 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __wt_page_modify_alloc --
* Allocate a page's modification structure.
*/
int
__wt_page_modify_... | code_c | code | 3,035 | null |
<reponame>matheusvxf/cse-167-project-3
#pragma once
#include "Light.h"
class DiffuseLight :
public Light
{
public:
DiffuseLight();
~DiffuseLight();
};
| code_c | code | 47 | null |
/* TA-LIB Copyright (c) 1999-2007, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this li... | code_c | code | 7,610 | null |
//
// Created by daniel on 10/16/2018.
//
#pragma once
#include <vector>
#include "usb_endpoint.h"
namespace librealsense
{
namespace usb_host
{
class usb_interface
{
usb_interface_descriptor _desc;
std::vector<usb_endpoint> _endpoints;
public:
usb... | code_c | code | 262 | null |
<reponame>chasedig/RabbitEngine<filename>RabbitEngine/include/RBT/components/PointLightComponent.h
#pragma once
#include <RBT/components/LightComponent.h>
namespace RBT
{
struct PointLightComponent : LightComponent
{
PointLightComponent(Color color, float power)
{
this->color = color;
this->power = power;
... | code_c | code | 93 | null |
<reponame>icetorch2001/xray-oxygen
////////////////////////////////////////////////////////////////////////////
// Module : steering_behaviour.h
// Created : 25.04.2008
// Modified : 25.04.2008
// Author : Lain
// Description : steering behaviour classes
///////////////////////////////////////////////////////////... | code_c | code | 2,318 | null |
/* Automatically generated header (sfdc 1.4)! Do not edit! */
#ifndef _INLINE_TIMER_H
#define _INLINE_TIMER_H
#ifndef _SFDC_VARARG_DEFINED
#define _SFDC_VARARG_DEFINED
#ifdef __HAVE_IPTR_ATTR__
typedef APTR _sfdc_vararg __attribute__((iptr));
#else
typedef ULONG _sfdc_vararg;
#endif /* __HAVE_IPTR_ATTR__ */
#endif /*... | code_c | code | 350 | null |
/**********************************************************************
* Copyright (c) 2014 BFFT Gesellschaft fuer Fahrzeugtechnik mbH.
* All rights reserved.
**********************************************************************
* $Author:: exthanl#$ $Date:: 2014-09-04 11:39:27#$ $Rev:: 25772 $
**************... | code_c | code | 183 | null |
#pragma once
#include "skse64/GameRTTI.h" // RTTI_MessageBoxData
#include "RE/BSString.h" // BSString
#include "RE/BSTArray.h" // BSTArray
#include "RE/BSTSmartPointer.h" // BSTSmartPointer
#include "RE/IUIMessageData.h" // IUIMessageData
namespace RE
{
class IMessageBoxCallback;
class MessageBoxData : pub... | code_c | code | 244 | null |
<gh_stars>0
/**
* @file bblas_sprint.c
*
* @brief BBLAS printing routines for float routines.
*
* BBLAS is a software package provided by Univ. of Manchester,
* Univ. of Tennessee.
*
* @version 1.0.0
* @author Samuel <NAME>
* @author Pedro <NAME>
* @author <NAME>
* @date 2016-02-20
*
*/
#ifndef... | code_c | code | 3,624 | null |
#ifndef CondFormats_DataRecord_ESIntercalibConstantsRcd_H
#define CondFormats_DataRecord_ESIntercalibConstantsRcd_H
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
class ESIntercalibConstantsRcd : public edm::eventsetup::EventSetupRecordImplementation<ESIntercalibConstantsRcd> {};
#endif
| code_c | code | 89 | null |
<reponame>zakee94/algorithms<gh_stars>1-10
// Count the number of inversion in an array using merge sort
// worst case -> O(nlogn), we find it completely similar to merge sort
#include <stdio.h>
#include <stdlib.h>
typedef long long unsigned int integer;
integer merge(integer left[], integer l, integer right[], integ... | code_c | code | 406 | null |
/*---------------------------------------------------------------------------------------------
* Copyright © 2016-present Earth Computing Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for license information.
*----------------------------------------------... | code_c | code | 10,596 | null |
//
// EpiInfoImageField.h
// EpiInfo
//
// Created by <NAME> on 1/17/18.
//
#import "EpiInfoControlProtocol.h"
#import <UIKit/UIKit.h>
@interface EpiInfoImageField : UIButton <UIImagePickerControllerDelegate, UINavigationControllerDelegate, EpiInfoControlProtocol>
{
UIImagePickerController *uiipc;
NSString... | code_c | code | 122 | null |
<gh_stars>1-10
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | code_c | code | 441 | null |
<gh_stars>0
#ifndef __XPL_RETURNNODE_H__
#define __XPL_RETURNNODE_H__
#include <cdk/ast/basic_node.h>
namespace xpl {
/**
* Class for describing return nodes.
*/
class return_node: public cdk::basic_node {
public:
inline return_node(int lineno) :
cdk::basic_node(lineno){}
void accept(basi... | code_c | code | 120 | null |
/*
* Copyright (c) 2022 Renwei
*
* This is a free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include "3rdparty_macro.h"
#if defined(COROUTINE_3RDPARTY)
#include "dave_base.h"
#include "dave_coroutine.h"
int co_create( void **co, void *rou... | code_c | code | 246 | null |
<reponame>anotherSimpleCoder/asr-v2
#include <png.h>
#include "asrScreen.h"
using namespace std;
class asrPNG{
private:
FILE* fp;
string title;
string filename; //title+".png"
png_structp png_ptr;
png_infop info_ptr;
asrScreen* screen;
int width; //will be extracted from asrScreen
int height; //will be extr... | code_c | code | 136 | null |
// {BEGIN_LICENSE}
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// {END_LICENSE}
#pragma once
#include <AzCore/Component/Component.h>
#include... | code_c | code | 1,242 | null |
<filename>include/hwloc/deprecated.h
/*
* Copyright © 2009 CNRS
* Copyright © 2009-2017 Inria. All rights reserved.
* Copyright © 2009-2012 <NAME>
* Copyright © 2009-2010 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
/**
* This file contains the inline code of functions dec... | code_c | code | 2,606 | null |
<gh_stars>1-10
/*
* Copyright 2021 IBM Corporation
*
* 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 applicabl... | code_c | code | 736 | null |
<reponame>yakuizhao/intel-vaapi-driver
/*
* Copyright (C) 2012 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/L... | code_c | code | 304 | null |
/*
Copyright (c) 2012-2015, <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 followin... | code_c | code | 2,882 | null |
/*
* Copyright (c) 2012-2017 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | code_c | code | 368 | null |
<filename>firmware/uvc_controller/mbed-os/features/nanostack/mbed-mesh-api/mbed-mesh-api/ThreadInterface.h
/*
* Copyright (c) 2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in complia... | code_c | code | 651 | null |
// Copyright (c) 2006-2013, <NAME>, www.sabelnikov.net
// 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... | code_c | code | 971 | null |
/*
* halm/generic/can.h
* Copyright (C) 2016 xent
* Project is distributed under the terms of the MIT License
*/
#ifndef HALM_GENERIC_CAN_H_
#define HALM_GENERIC_CAN_H_
/*----------------------------------------------------------------------------*/
#include <xcore/interface.h>
#include <stdint.h>
/*--------------... | code_c | code | 520 | null |
<filename>iActiveRecord/Classes/NSDecimalNumber+sqlRepresentation.h<gh_stars>10-100
//
// NSDecimalNumber+sqlRepresentation.h
// iActiveRecord
//
// Created by <NAME> on 18.01.12.
// Copyright (c) 2012 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDecimalNumber (sqlRepresentation... | code_c | code | 116 | null |
#pragma once
// MESSAGE FLEXIFUNCTION_DIRECTORY PACKING
#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY 155
typedef struct __mavlink_flexifunction_directory_t {
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t directory_type; /*< 0=inputs, 1=outputs*/
uint8_t start_in... | code_c | code | 4,660 | null |
<reponame>SDJoky/DailyProject
//
// TestObj.h
// DailyProject
//
// Created by Joky_Lee on 2020/2/12.
// Copyright © 2020 Joky_Lee. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TestObj : NSObject
@property (nonatomic, copy) NSString *name;
//自定义kvo
- (void)sd_addOb... | code_c | code | 136 | null |
<reponame>copslock/broadcom_cpri
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/** \file lif_table_mngr.c
*
* Lif table allocations and HW writes.
*/
#ifdef... | code_c | code | 19,716 | null |
#pragma once
#include "Entity.h"
class Ball : public Entity {
private:
float radius;
int xSpeed;
int ySpeed;
public:
Ball(int newX, int newY,
int xSpeed, int ySpeed,
float radius);
void setRadius(float radius);
float getRadius();
void update();
void callCollide(Entity collidingEntity) override;
int get... | code_c | code | 116 | null |
///////////////////////////////////////////////////////////////////////////////
// Name: wx/tipwin.h
// Purpose: wxTipWindow is a window like the one typically used for
// showing the tooltips
// Author: <NAME>
// Modified by:
// Created: 10.09.00
// Copyright: (c) 2000 <NAME> <<EMAIL... | code_c | code | 778 | null |
//
// KRProjectController.h
// KRHome
//
// Created by LX on 2017/12/26.
// Copyright © 2017年 Ace. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KRProjectController : UITableViewController
@end
| code_c | code | 61 | null |
#ifndef _WORD_INCLUDE
#define _WORD_INCLUDE
#include <vector>
#include "Sprite.h"
#include "ShaderManager.h"
class Word {
public:
explicit Word(const string &word, ShaderManager *shaderManager);
~Word();
void render();
void setPosition(glm::vec2 position);
private:
glm::vec2 position;
v... | code_c | code | 122 | null |
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope... | code_c | code | 1,514 | null |
<gh_stars>0
#include <stdio.h>
int main()
{
int number = 0;
printf("Digite um valor inteiro de 0 a 9: \n");
scanf("%d", &number);
switch (number)
{
case 0:
printf("Foi digitado o numero Zero(%d)! \n", number);
break;
case 1:
printf(... | code_c | code | 376 | null |
<reponame>HANSAFUNC/JK_WXFORUM
//
// UIView+Frame.h
//
// Created by jackey_gjt on 16/8/3.
// Copyright © 2016年 郭健滔. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Frame)
@property (nonatomic ,assign) CGFloat jk_x;
@property (nonatomic ,assign) CGFloat jk_y;
@property (nonatomic ,assign) CGFl... | code_c | code | 139 | null |
#include <simde/wasm/simd128.h>
v128_t
u8x16_avgr(v128_t a, v128_t b) {
return wasm_u8x16_avgr(a, b);
}
| code_c | code | 30 | null |
/*
* SCExpandCollapseCell.h
* Sensible TableView
* Version: 5.4.0
*
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY UNITED STATES
* INTELLECTUAL PROPERTY LAW AND INTERNATIONAL TREATIES. UNAUTHORIZED REPRODUCTION OR
* DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. YOU SHAL... | code_c | code | 935 | null |
// Copyright (c) the JPEG XL Project 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 LIB_JXL_MODULAR_TRANSFORM_SQUEEZE_H_
#define LIB_JXL_MODULAR_TRANSFORM_SQUEEZE_H_
// Haar-like transform: halves the resolution in one d... | code_c | code | 1,022 | null |
#include <plasma.h>
#include <no_os.h>
#include <kernel/device.h>
#include <dev/counter.h>
#include <dev/irc.h>
#include <dev/gpio.h>
#include <dev/display.h>
#include <kernel/devicemap.h>
#include <kernel/interrupt.h>
extern char __bss_start, __bss_size;
extern char __sbss_start, __sbss_size;
extern char __rom_data... | code_c | code | 326 | null |
<filename>include/linux/msm_audio_acdb.h<gh_stars>0
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make ... | code_c | code | 1,396 | null |
<reponame>Teaonly/yacamera
#ifndef _PEER_H_
#define _PEER_H_
#include <string>
#include <vector>
#include "webrtc/base/thread.h"
#include "webrtc/base/messagequeue.h"
namespace rtc{
class AsyncSocket;
};
typedef std::vector<std::string> MsgBody;
class Peer {
public:
Peer() {};
virtual ~Peer(){};
... | code_c | code | 572 | null |
<filename>src/Test/TestUtils.h<gh_stars>0
/*
* Tests for Synet Framework (http://github.com/ermig1979/Synet).
*
* Copyright (c) 2018-2018 <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 t... | code_c | code | 1,602 | null |
#pragma once
#include "util/variant.h"
struct NoneType {};
static constexpr NoneType none = NoneType();
template <typename Value>
class Option {
static_assert(!std::is_reference<Value>::value,
"Option doesn't support references");
Variant<NoneType, Value> variant_;
public:
Option() = defaul... | code_c | code | 700 | null |
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <avr/pgmspace.h>
#define SABOTEN 1
#define NUM_DIGITAL_PINS 31
#define NUM_ANALOG_INPUTS 8
#define analogInputToDigitalPin(p) ((p < NUM_ANALOG_INPUTS) ? (p) + 24 : -1)
#define digitalPinHasPWM(p) ((p) == 7 || (p) == 8 || (p) == 9 |... | code_c | code | 2,043 | null |
/******************************************************************************
*
* Copyright (C) 2001-2012 Broadcom Corporation
*
* 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:
*
... | code_c | code | 661 | null |
/*
Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 1999-Oct-05 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, both of these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.cdrom.com... | code_c | code | 1,305 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.