text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<filename>src/platform/lang.h
#ifndef PLTF_LANG_H
#define PLTF_LANG_H
/**
* Macros to handle things the same way under C and C++.
*/
#define PLTF_C 1
#define PLTF_CPP 2
#ifdef __cplusplus
#define PLTF_LANG PLTF_CPP
#else
#define PLTF_LANG PLTF_C
#endif
#if PLTF_LANG == PLTF_C
#define NULL_PTR NULL
#de... | code_c | code | 190 | null |
//
// RealBackgroundTask.h
// Mi
//
// Created by hy on 15/7/11.
// Copyright (c) 2015年 MiTech. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef BOOL (^ShouldRunBGTaskCallback)(NSTimeInterval);
@interface SWBackgroundTask : NSObject
//设置后台运行任务,供后台定时执行的target和selector,目前未使用
-(void)sw_setBackgrou... | code_c | code | 173 | null |
<gh_stars>0
//
// TweetCell.h
// twitter
//
// Created by <NAME> on 6/28/21.
// Copyright © 2021 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
NS_ASSUME_NONNULL_BEGIN
@protocol TweetCellDelegate;
@interface TweetCell : UITableViewCell
@property (weak, nonatomic) Tweet *tweet;
@prope... | code_c | code | 294 | null |
#include <string.h>
#include "dev_sign_api.h"
#include "wrappers.h"
#define EXAMPLE_PRODUCT_KEY "<KEY>"
#define EXAMPLE_PRODUCT_SECRET "<KEY>"
#define EXAMPLE_DEVICE_KEY "<KEY>"
#define EXAMPLE_DEVICE_SECRET "<KEY>"
/* Implenment this HAL or using "printf" of your own system if you want to print something ... | code_c | code | 634 | null |
<filename>shared/win/escapi-master/escapi_dll/choosedeviceparam.h
#pragma once
struct ChooseDeviceParam
{
IMFActivate **mDevices; // Array of IMFActivate pointers.
UINT32 mCount; // Number of elements in the array.
UINT32 mSelection; // Selected device, by array index.
~ChooseDevicePara... | code_c | code | 132 | null |
/*
*
* Copyright 2015 Rockchip Electronics Co. LTD
*
* 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... | code_c | code | 2,640 | null |
<filename>boards/arm/s32k1xx/s32k148evb/src/s32k1xx_clockconfig.c
/****************************************************************************
* boards/arm/s32k1xx/s32k148evb/src/s32k1xx_clockconfig.c
*
* Copyright (C) 2019 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in... | code_c | code | 3,042 | null |
// 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 DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_
#include <stdint.h>
#include <map>
#include <mem... | code_c | code | 1,716 | null |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
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 o... | code_c | code | 753 | null |
/*
* volume_id - reads filesystem label and uuid
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... | code_c | code | 536 | null |
<filename>include/Nero/editor/AdvancedCamera.h
////////////////////////////////////////////////////////////
// Nero Game Engine
// Copyright (c) 2016-2020 <NAME>
////////////////////////////////////////////////////////////
#ifndef ADVANCEDCAMERA_H
#define ADVANCEDCAMERA_H
///////////////////////////HEADERS/////////////... | code_c | code | 534 | null |
<reponame>WellingtonDias/libDARK<gh_stars>0
Container *Container_create(UnsignedSize SIZE,Boolean FILL)
{
Container *container;
if (SIZE == 0) exception_globalThrowReturn("invalid SIZE");
if ((container = calloc(1,sizeof(Container))) == NULL) exception_globalThrowReturn("MEMORY: malloc");
if (FILL)
{
if ((contai... | code_c | code | 1,582 | null |
<reponame>dikdom/z88dk<filename>libsrc/sprites/software/sp1/spectrum/examples/ex5c.c
/////////////////////////////////////////////////////////////
// EXAMPLE PROGRAM #5c
// 04.2006 aralbrec
//
// Ex5b showed one way background tiles could appear to be
// in the foreground by using the idea of validating the
// relevan... | code_c | code | 2,529 | null |
<filename>engine/include/graphics/IndexBuffer.h
/*
* Copyright (c) 2017 <NAME>
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#ifndef ROS_INDEX_BUFFER_H
#define ROS_INDEX_BUFFER_H
#include <core/Common.h>
#include <core/Environ... | code_c | code | 523 | null |
#pragma once
#include <boost/core/noncopyable.hpp>
#include <Foundation/Memory/StaticGenerationBuffer.h>
#include <Foundation/Memory/StaticIndexQueue.h>
#include <Foundation/InterfaceMap.h>
#include "Configuration.h"
#include "Entity.h"
#include "EventDispatcher.h"
namespace MoonGlare::Component {
class EntityMan... | code_c | code | 509 | null |
// Copyright © 2019 650 Industries. All rights reserved.
#import <ABI40_0_0React/ABI40_0_0RCTBridge.h>
#import <ABI40_0_0EXUpdates/ABI40_0_0EXUpdatesConfig.h>
NS_ASSUME_NONNULL_BEGIN
@interface ABI40_0_0EXUpdatesUtils : NSObject
+ (void)runBlockOnMainThread:(void (^)(void))block;
+ (NSString *)sha256WithData:(NSD... | code_c | code | 206 | null |
/* Copyright (c) <2003-2013> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
*... | code_c | code | 1,107 | null |
<reponame>awawa-dev/hyperion.ng
#ifndef QTHTTPHEADER_H
#define QTHTTPHEADER_H
class QByteArray;
class QtHttpHeader
{
public:
static const QByteArray& Server;
static const QByteArray& Date;
static const QByteArray& Host;
static const QByteArray& Accept;
static const QByteArray& ContentType;
static const QByteArr... | code_c | code | 416 | null |
/******************************************************************************
* Copyright (c) 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/************************************************************************... | code_c | code | 2,538 | null |
<filename>aws-cpp-sdk-ecs/include/aws/ecs/model/ContainerOverride.h<gh_stars>1-10
/*
* Copyright 2010-2017 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 Lice... | code_c | code | 5,718 | null |
/******************************************************************************
* PROJECT: PDS Utilities *
* MODULE: mcrd.c *
* PURPOSE: Utility program to read multiple tags in the PDS's shared memory *... | code_c | code | 5,664 | null |
<reponame>iMonkeyBro/CQAVKit
//
// CQPlayEAGLLayer.h
// CQAVKit
//
// Created by 刘超群 on 2022/2/23.
//
#import <QuartzCore/QuartzCore.h>
#import <CoreVideo/CVPixelBuffer.h>
NS_ASSUME_NONNULL_BEGIN
@interface CQPlayEAGLLayer : CAEAGLLayer
- (instancetype)initWithFrame:(CGRect)frame;
/// 重新设置帧缓存区与渲染缓存区
- (void)res... | code_c | code | 126 | null |
<filename>JekyllNewPost/JekyllNewPost/JekyllNewPost.h<gh_stars>0
//
// JekyllNewPost.h
// JekyllNewPost
//
// Created by <NAME> on 10/13/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JekyllNewPost : NSObject
@end
| code_c | code | 78 | null |
#pragma once
#include <map>
#include <vector>
#include "motis/hash_map.h"
#include "motis/core/schedule/schedule.h"
namespace motis::loader {
struct Station; // NOLINT
struct Schedule; // NOLINT
mcd::hash_map<Station const*, station_node*> build_stations(
schedule&, std::vector<Schedule const*> const&,
... | code_c | code | 124 | null |
#ifndef _RTL8367B_ASICDRV_PORTISOLATION_H_
#define _RTL8367B_ASICDRV_PORTISOLATION_H_
#include <rtl8367b_asicdrv.h>
extern ret_t rtl8367b_setAsicPortIsolationPermittedPortmask(rtk_uint32 port, rtk_uint32 permitPortmask);
extern ret_t rtl8367b_getAsicPortIsolationPermittedPortmask(rtk_uint32 port, rtk_uint32 *pPermitP... | code_c | code | 155 | null |
/* Signal handler definitions for GDB, the GNU Debugger.
Copyright (C) 1986, 1989 Free Software Foundation, Inc.
This file is part of GDB.
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 v... | code_c | code | 335 | null |
#pragma once
#include "Neat/Math/Matrix.h"
#include "Neat/Math/Vector.h"
#include "Neat/Math/Quaternion.h"
#include "Neat/Math/EulerAngles.h"
#include "Neat/Math/Constants.h"
#include "Neat/Math/Common.h"
#include "Neat/Math/Transform.h"
#include "Neat/Math/Projection.h"
#include "Neat/Math/Interpolation.h"
#include "... | code_c | code | 109 | null |
<gh_stars>0
/*
* Copyright (c) 2020 6WIND S.A.
* SPDX-License-Identifier: BSD-3-Clause
*/
typedef enum sr_error_e {
SR_ERR_OK,
SR_ERR_INVAL_ARG,
SR_ERR_LY,
SR_ERR_SYS,
SR_ERR_NOMEM,
SR_ERR_NOT_FOUND,
SR_ERR_EXISTS,
SR_ERR_INTERNAL,
SR_ERR_UNSUPPORTED,
SR_ERR_VALIDATION_FAILED... | code_c | code | 2,031 | null |
<filename>libs/gap_lib/g722_encoder_decoder/include/g722_encoder.h
/*
* g722.h - The ITU G.722 codec.
*
* Written by Steve Underwood <<EMAIL>>
*
* Copyright (C) 2005 <NAME>
*
* Despite my general liking of the GPL, I place my own contributions
* to this code in the public domain for the benefit of all mankin... | code_c | code | 292 | null |
<reponame>hjCostaBR/hjcostabr_eletrical-circuit<filename>electric-circuit/class/components/Switch.h<gh_stars>0
class Switch : public Segment {
private:
bool openned;
public:
bool isOpenned(void);
bool open(void);
bool close(void);
} | code_c | code | 78 | null |
/*
* Copyright (c) 2017-2020, AT&T Intellectual Property. All rights reserved.
* Copyright (c) 2016-2017 by Brocade Communications Systems, Inc.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#ifndef NPF_CONFIG_H
#define NPF_CONFIG_H
#include <rte_branch_prediction.h>
#include <stdbool.h>... | code_c | code | 1,795 | null |
#include "polygon_edge_traverser.h"
#include "../line_traverser/line_traverser.h"
#ifndef min
#define min(a, b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
| code_c | code | 60 | null |
#ifndef PCAPFS_VIRTUAL_FILES_FTP_H
#define PCAPFS_VIRTUAL_FILES_FTP_H
#include "../commontypes.h"
#include "virtualfile.h"
#include "../file.h"
#include "ftp/ftp_port_bridge.h"
namespace pcapfs {
class FtpFile : public VirtualFile {
public:
static FilePtr create() { return std::make_shared<FtpFile>(... | code_c | code | 437 | null |
/******************************************************************************
Copyright (C) 2013 by <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2... | code_c | code | 1,122 | null |
<gh_stars>0
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited
// Copyright (c) 2014-2018 <NAME>, The appleseedhq Organization
//
// Pe... | code_c | code | 1,582 | null |
//
// Chgusr.C
//
// Copyright (C) Citrix, 1996 All Rights Reserved.
//
// History:
// scottn 11/19/96 - First pass
//
// scottn 12/5/96 - Add storage of chgusr option into registry.
//
// scottn 12/13/96 - Create the UNINSTALL key if necessary (upon
// first install of an uninstallable)
//
// sc... | code_c | code | 2,080 | null |
<reponame>DICE-UNC/iRODS-FUSE-Mod
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* definitions for rodsLog routines */
#include "rodsError.h"
#define LOG_SQL 11
/* This is for logging SQL statements. Thes... | code_c | code | 643 | null |
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is ... | code_c | code | 3,832 | null |
<filename>app/bt_gateway/src/cli/cli_definitions.c
#include "cli_definitions.h"
SHELL_STATIC_SUBCMD_SET_CREATE(sub_misc,
SHELL_CMD(version, NULL, "Prints the adapter version", cmd_misc_version),
SHELL_CMD(ping, NULL, "Ping-pong", cmd_misc_ping),
SHELL_CMD(blinky, NULL, "blinky", cmd_misc_blinky),
SHELL_SUBCMD_SET_... | code_c | code | 205 | null |
<gh_stars>0
/*
Credits:
https://www.sfu.ca/~ssurjano/other.html
*/
#ifndef _RND_H
#define _RND_H
void rndSeed(unsigned long seed);
double rnd(void);
int rnd0(int N);
int rndInt(int a, int b);
double rndUniform(double a, double b);
double rndZ(void);
double rndNormal(double mu, double std);
#endif
| code_c | code | 86 | null |
//
// CCAnimationHelper.h
// SpriteBatches
//
// Created by <NAME> on 06.08.10.
// Copyright 2010 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "cocos2d.h"
@interface CCAnimation (Helper)
+(CCAnimation*) animationWithFile:(NSString*)name frameCount:(int)frameCount delay:(float)delay;
... | code_c | code | 126 | null |
// Copyright 2020-2022 The Defold Foundation
// Copyright 2014-2020 King
// Copyright 2009-2014 <NAME>, <NAME>
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https... | code_c | code | 480 | null |
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2018 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
... | code_c | code | 555 | null |
#include <string.h>
#include <endian.h>
#include "target.h"
#include "libpdbg.h"
static pdbg_progress_tick_t progress_tick;
static bool pdbg_short_context = false;
struct pdbg_target *get_parent(struct pdbg_target *target, bool system)
{
struct pdbg_target *parent;
if (!target)
return NULL;
/*
* To find a p... | code_c | code | 2,440 | null |
<filename>source/m3_exec_defs.h
//
// m3_exec_defs.h
//
// Created by <NAME> on 5/1/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#ifndef m3_exec_defs_h
#define m3_exec_defs_h
#include "m3_core.h"
d_m3BeginExternC
#if d_m3HasFloat
# define d_m3OpSig pc_t _pc, m3stack_t _sp, M3MemoryHe... | code_c | code | 399 | null |
#ifndef OPL_APU_H
#define OPL_APU_H
#include "blargg_common.h"
#include "Blip_Buffer.h"
#include <stdio.h>
class Opl_Apu {
public:
Opl_Apu();
~Opl_Apu();
enum type_t { type_opll = 0x10, type_msxmusic = 0x11, type_smsfmunit = 0x12,
type_vrc7 = 0x13, type_opl = 0x20, type_msxaudio = 0x21, type_opl2 = 0x22 };
... | code_c | code | 408 | null |
//
// Copyright 2011-2014 NimbusKit
// Copyright 2012 <NAME> (vertical layouts)
//
// 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
//
// U... | code_c | code | 3,242 | null |
//
// NACLAsymmetricPublicKey.h
// libsodium-objc
//
// Created by <NAME> on 6/13/14.
// Copyright (c) 2014 TabbedOut. All rights reserved.
//
#import <SodiumObjc/NACLKey.h>
@interface NACLAsymmetricPublicKey : NACLKey
@end
| code_c | code | 66 | null |
<gh_stars>0
#ifndef EXTRACTCLIPSDIALOG_H
#define EXTRACTCLIPSDIALOG_H
#include <QDialog>
namespace Ui {
class ExtractClipsDialog;
}
class ExtractClipsDialog : public QDialog
{
Q_OBJECT
public:
explicit ExtractClipsDialog(QWidget *parent = 0);
~ExtractClipsDialog();
QVariant param(QString name);
virtual void ac... | code_c | code | 124 | null |
<filename>components/BottomSheet/src/MDCBottomSheetTransitionController.h<gh_stars>10-100
/*
Copyright 2017-present the Material Components for iOS authors. 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.
You may ... | code_c | code | 493 | null |
<reponame>BodilessSleeper/6502
#include "unity.h"
#include "cpu.h"
char TXS_Implied = 0x9A;
struct BUS bus;
struct CPU cpu;
void setUp(void) {
bus = initializeBus();
writeBus(0xFFFC, 0x00, &bus);
writeBus(0xFFFD, 0x06, &bus);
resetCpu(&cpu, &bus);
}
void tearDown(void) {
}
void should_change_stack_pointer_... | code_c | code | 298 | null |
<reponame>rosecodym/space-boundary-tool
// Copyright (c) 2000
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.... | code_c | code | 547 | null |
// SPDX-License-Identifier: GPL-2.0-only
/*
* drivers/irq/irq-nvic.c
*
* Copyright (C) 2008 ARM Limited, All Rights Reserved.
* Copyright (C) 2013 Pengutronix
*
* Support for the Nested Vectored Interrupt Controller found on the
* ARMv7-M CPUs (Cortex-M3/M4)
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#incl... | code_c | code | 1,056 | null |
#pragma once
#include <SDL.h>
//thanks to Lazy Foo productions for making this
namespace Empaerior
{
//The application time based timer
class Timer
{
public:
//Initializes variables
Timer();
//The various clock actions
void start();
void stop();
void pause();
void unpause();
//Gets the timer's... | code_c | code | 188 | null |
#include "kal.h"
#include <sys/time.h>
#include <pthread.h>
struct kal_event
{
pthread_mutex_t mutex;
pthread_cond_t cond;
bool signaled;
bool auto_reset;
};
kal_err_t kal_event_create(kal_event_t **pevt, bool auto_reset)
{
kal_event_t *event;
KAL_MALLOC(event, kal_event_t *, sizeof(kal_event... | code_c | code | 604 | null |
/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your option)
any later version.
... | code_c | code | 1,606 | null |
<gh_stars>1-10
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011 The Chromium OS Authors. 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 as
* published by the Free Software Foundation; versi... | code_c | code | 6,884 | null |
//
// ZHAlert.h
//
// Created by 李志华 on 2019/7/2.
//
#import <UIKit/UIKit.h>
@interface ZHAlertView : NSObject
#pragma mark - Alert
/**
弹框:标题+内容+两个按钮
*/
+ (void)showAlertWithTitle:(NSString *)title
message:(NSString *)message
confirmTitle:(NSString *)confirmTitle
c... | code_c | code | 1,042 | null |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_TinderSwipeCardsSwiftVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_TinderSwipeCardsSwiftVersionString[];
| code_c | code | 49 | null |
<filename>bwlib/owamp.c
/*
* ex: set tabstop=4 ai expandtab softtabstop=4 shiftwidth=4:
* -*- mode: c-basic-indent: 4; tab-width: 4; indent-tabs-mode: nil -*-
* $Id: owamp.c 599 2013-08-02 17:27:12Z aaron $
*/
/*
* File: owamp.c
*
* Author: <NAME>
* Internet2
*
* D... | code_c | code | 3,792 | null |
#pragma once
#include <string>
#include <set>
namespace BWAPI
{
class UnitType;
/** Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError. */
class Error
{
public:
Error();
Error(int id);
Error(const Error& other);
Error& operator=(const Error... | code_c | code | 1,605 | null |
#ifndef PATTERN_H /* <-- guards (@fixme Are they really necessary?) */
#define PATTERN_H
struct Pattern;
void Pattern_(struct Pattern **const);
struct Pattern *Pattern(const char *const);
const char *PatternMatch(const struct Pattern *const, const char *const);
int PatternOut(const struct Pattern *const, FILE *const)... | code_c | code | 99 | null |
<gh_stars>0
// binary_search_tree.c - implementation of a binary search tree with integers
#include <stdio.h>
#include <stdlib.h>
#include "binary_search_tree.h"
//---------------------------------------------------------------------
/* Creating a new node that holds a passed integer value.
*
* @param element ... | code_c | code | 1,070 | null |
<reponame>kevin-moy/Jumping_Bird<filename>Support/cocos2d/ParticleSystem.h<gh_stars>1-10
/* cocos2d for iPhone
*
* http://code.google.com/p/cocos2d-iphone
*
* Copyright (C) 2008,2009 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the 'cocos2d for iPhone' l... | code_c | code | 2,025 | null |
<filename>LibTDE/AudioDataItem.h<gh_stars>1-10
#pragma once
#include <Windows.h>
namespace TimeDelayEstimation {
struct AudioDataItem
{
INT16 value;
UINT64 timestamp;
DWORD index;
AudioDataItem() : value(0), timestamp(0), index(0) {}
AudioDataItem(INT16 Value, UINT64 Timestamp, DWORD Inde... | code_c | code | 111 | null |
#ifndef KDTREE_H_INCLUDED
#define KDTREE_H_INCLUDED
#define __OPENCL_HOST__
#include "Utilities.h"
#include "BBox.h"
#include <vector>
#include <iostream>
#undef __OPENCL_HOST__
using namespace std;
extern TriangleMesh* meshes;
extern int num_meshes;
extern Triangle* triangles;
exter... | code_c | code | 804 | null |
<gh_stars>0
#include "screen.h"
#include "common.h"
unsigned long i;
unsigned char vbuf[0xFA0*2-1];
unsigned long vbuf_addr;
unsigned char charattr=7;
unsigned long cx,cy;
char *tmpstr;
void init_screen(void);
void setcharattr(unsigned char data);
void refresh(void);
void putchar(unsigned char c,un... | code_c | code | 1,018 | null |
<reponame>luciolas/MapReduceCpp<filename>MapReduce/MapReduce/JobPackage.h<gh_stars>1-10
#pragma once
#include <vector>
#include <string>
#include <atomic>
#include <vector>
struct JobPackage
{
enum class Status : size_t
{
IDLE = 0,
WORKING,
DONE,
};
enum class Phase : size_t
{
... | code_c | code | 310 | null |
/******************************************************************************
* include/asm-x86/hap.h
*
* hardware-assisted paging
* Copyright (c) 2007 Advanced Micro Devices (<NAME>)
*
* Parts of this code are Copyright (c) 2006 by XenSource Inc.
* Parts of this code are Copyright (c) 2006 by <NAME>
* Parts ... | code_c | code | 756 | null |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* 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 cod... | code_c | code | 1,493 | null |
#pragma once
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
//#include "cstruct2.c"
#define RIM_MAGIC_LEN 7
typedef enum {
RIMSTAT_OK,
RIMSTAT_FILENOTFOUND,
RIMSTAT_NOT_A_RIM,
RIMSTAT_EARLY_EOF,
RIMSTAT_NULL_FILE,
RIMSTAT_NULL_... | code_c | code | 3,111 | null |
/*
** $Id: llex.h,v 1.72 2011/11/30 12:43:51 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
#ifndef llex_h
#define llex_h
//#include "lobject.h"
#include "lzio.h"
#include "lutil.h"
#include <vector>
#include <algorithm>
#define FIRST_RESERVED 257
/*
* WARNING: if you change the order of thi... | code_c | code | 1,818 | null |
<filename>scg3/src/Leaf.h<gh_stars>1-10
/**
* \file Leaf.h
* \brief Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).
*
* \author <NAME>\n
* <EMAIL>
*/
/*
* Copyright 2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
*... | code_c | code | 385 | null |
//
// ATLBaseCollectionViewCell.h
// Pods
//
// Created by <NAME> on 12/22/15.
//
//
#import <UIKit/UIKit.h>
#import "ATLMessageBubbleView.h"
#import "ATLAvatarView.h"
#import "ATLMessagePresenting.h"
#import <LayerKit/LayerKit.h>
typedef NS_ENUM(NSInteger, ATLCellType) {
ATLOutgoingCellType,
ATLIncomingC... | code_c | code | 556 | null |
<gh_stars>0
/*
* Copyright (c) 2016 CartoDB. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://cartodb.com/terms/
*/
#ifndef _CARTO_LAYER_H_
#define _CARTO_LAYER_H_
#include "core/ScreenPos.h"
#include "core/MapRange.h"
#include "renderers/compone... | code_c | code | 2,131 | null |
//
// PanelViewController.h
// EyeControl
//
// Created by Celleus on 2017/08/21.
// Copyright © 2017年 celleus. All rights reserved.
//
#import "CustomViewController.h"
@interface PanelViewController : CustomViewController
- (void)memeRealTimeModeDataReceived:(MEMERealTimeData *)data;
- (void)firstPanel;
- (voi... | code_c | code | 116 | null |
#include "vector_sse_common.h"
__m128i add_f32( const __m128i left, const __m128i right )
{
return _mm_castps_si128( _mm_add_ps( _mm_castsi128_ps( left ), _mm_castsi128_ps( right ) ) );
}
__m128i add_f64( const __m128i left, const __m128i right )
{
return _mm_cvtpd_epi32( _mm_add_pd( _mm_castsi128_pd( left ), _... | code_c | code | 284 | null |
<reponame>dataviral/incubator-singa<filename>src/model/layer/opencl_convolution.h
/**
* 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... | code_c | code | 756 | null |
<filename>libvips-8.11/libvips/create/mask_butterworth_band.c
/* creates an butterworth_band filter.
*
* 02/01/14
* - from butterworth_band.c
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License ... | code_c | code | 1,673 | null |
<filename>ijkplayer-x86_64/src/main/jni/ijkmedia/ijksdl/android/ijksdl_aout_android_audiotrack.c
/*****************************************************************************
* ijksdl_aout_android_audiotrack.c
*****************************************************************************
*
* Copyright (c) 2013 Bili... | code_c | code | 2,909 | null |
<reponame>Schnarek/UPupilLabsVR
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Core.h"
#include "GameFramework/Actor.h"
#include "Kismet/GameplayStatics.h"
#include "Engine.h"
#include "FPupilMsgWorker.h"
#include "MyTestPupilActor.genera... | code_c | code | 282 | null |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017-2018 Zuse Institute Berlin
//
// 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... | code_c | code | 474 | null |
//
// Created by fuomag9 on 29/12/2019.
//
#include <corecrt_wstdio.h>
#include "generalUtil.h"
#ifndef ESAME_FILE_UTILS_H
#define ESAME_FILE_UTILS_H
int count_file_lines(FILE *fp);
int get_file_size(FILE *fp);
char *file_to_array(FILE *fp);
char *get_file_line(FILE *fp, int line);
int get_line_size(FILE *fp, in... | code_c | code | 167 | null |
<reponame>cans10/Roteiro8<filename>Conta/ContaEspecial1.h
#ifndef CONTAESPECIAL1_H_INCLUDED
#define CONTAESPECIAL1_H_INCLUDED
#include <iostream>
#include "Conta.h"
#include "IConta.h"
using namespace std;
class ContaEspecial1:public Conta{
public:
ContaEspecial1(string n, int num, double salario, double saldo... | code_c | code | 111 | null |
<filename>linux-socfpga/arch/arm/kvm/hyp/tlb.c
/*
* Original code:
* Copyright (C) 2012 - Virtual Open Systems and Columbia University
* Author: <NAME> <<EMAIL>>
*
* Mostly rewritten in C by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | code_c | code | 591 | null |
<filename>EDWButtonImageTitleChangeDemo/EDWButtonImageTitleChange/UIButton+EDWImageAndTitleChange.h
//
// UIButton+EDWImageAndTitleChange.h
// EDWButtonImageTitleChangeDemo
//
// Created by mac on 2018/9/13.
// Copyright © 2018年 mac. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM (NSInteger,EDWBu... | code_c | code | 166 | null |
// Chewman Vulkan game
// Copyright (c) 2018-2020, <NAME>
// Licensed under the MIT License
#pragma once
#include <unordered_map>
#include <string>
namespace Chewman
{
class LocaleManager
{
public:
explicit LocaleManager(std::string language);
const std::string& getLocalizedString(const std::string& key) cons... | code_c | code | 145 | null |
<gh_stars>100-1000
//
// PlayFileViewController.h
// EZAudioPlayFileExample
//
// Created by <NAME> on 12/16/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZLSinusWaveView.h"
// Import EZAudio header
#import "EZAudio.h"
/**
Here's the default audio file included with ... | code_c | code | 546 | null |
//
// QBRAverageAnswer.h
// Quickblox
//
// Created by <NAME> on 05.04.12.
// Copyright (c) 2012 QuickBlox. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface QBRAverageAnswer : EntityAnswer {
@protected
QBRAverage *average;
}
@property (nonatomic, readonly) QBRAverage *average;
@end
| code_c | code | 89 | null |
<reponame>scottkwarren/config-db<gh_stars>1-10
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* $Id$
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
/* Set the style to c++ since this code will only be compiled with the
Windows C/C++ compiler that accep... | code_c | code | 966 | null |
<filename>MdeModulePkg/Include/Library/CapsuleLib.h
/** @file
This library class defines a set of interfaces for how to process capsule image updates.
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms a... | code_c | code | 482 | null |
#ifndef DRAW_H
#define DRAW_H
#define MESH_HEADER_SIZE 3
#define myftoi4(x) (((uint64_t)(x)) << 4)
#include <math3d.h>
struct render_state {
float offset_x;
float offset_y;
char clear_col[3];
MATRIX world_to_screen;
MATRIX v;
MATRIX p;
VECTOR camera_pos;
VECTOR camera_tgt;
VECTOR fwd;
VECTOR up;... | code_c | code | 227 | null |
/*
* Copyright (c) 2005-2017 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... | code_c | code | 968 | null |
<reponame>KismetSuS/SunderingShadows
//minor prescience
//~Circe~ 7/20/05
#include <spell.h>
#include <magic.h>
inherit SPELL;
object targ;
int bonus;
void create() {
::create();
set_spell_name("minor prescience");
set_spell_level(([ "psion" : 1 ]));
set_spell_sphere("divination");
set_syntax("cas... | code_c | code | 649 | null |
<reponame>tholdem/MatrixMultiplication
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* sum.c
*
* Code generation for function 'sum'
*
*/
/* Include files ... | code_c | code | 338 | null |
#pragma once
#include "graphics\window.h"
#include "entity.h"
#include "physics\physicsScene.h"
#include "graphics\layer\layer.h"
#include "graphics/camera.h"
#include "graphics\light.h"
namespace ducky { namespace core {
class Scene
{
public:
Scene();
virtual ~Scene();
virtual void Init() {}
virtual voi... | code_c | code | 523 | null |
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char *name;
int size;
void (*(*_vtable)[])();
} metadata;
typedef struct {
metadata *clazz;
} object;
object *alloc(metadata *clazz) {
object *p = malloc(clazz->size);
p->clazz = clazz;
return p;
}
int main(int argc, char *argv[])
... | code_c | code | 108 | null |
<reponame>rajohns08/corecrypto
/* Copyright (c) (2018-2020) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license ri... | code_c | code | 894 | null |
#ifndef NVM_PERF_MODEL_H
#define NVM_PERF_MODEL_H
#include "dram_perf_model.h"
class NvmPerfModel : public DramPerfModel
{
public:
static NvmPerfModel *createNvmPerfModel(core_id_t core_id, UInt32 cache_block_size);
static SubsecondTime getReadLatency();
static SubsecondTime getWriteLatency();
static ... | code_c | code | 151 | null |
<reponame>MDob/Audio-Spectrum-Analyzer<filename>audio-spectrum-analyzer/src/COMM/comm_usart.c<gh_stars>1-10
/*************************************************************************
* File Name: usart_cfg.c
* Author: <NAME>
* Date Created: 2015-10-24
*
* Brief:
* Contains configuration fu... | code_c | code | 3,221 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.