text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<gh_stars>1-10
/*
** EPITECH PROJECT, 2017
** str_utils.h
** File description:
** str utils
*/
#ifndef STR_UTILS_H_
#define STR_UTILS_H_
void my_putstr(const char *str);
int my_strlen(const char *str);
int my_strcmp(const char *dest, const char *str);
int my_strsize(const char *str);
char *my_strcat(char *dest, char ... | code_c | code | 213 | null |
<reponame>runtest007/dpdk_surcata_4.1.1
/* Copyright (C) 2007-2010 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope th... | code_c | code | 1,108 | null |
#include <math.h>
#include <stdlib.h>
#include <GLUT/glut.h> //sunellipsemoon.cpp
void DrawIt(void)
{
float d2r;
// Angle of revolution around Sun
static float theta = 0.0, thetar, phi = 0.0, phir = 0.0;
d2r = 3.14159265 / 180.0;
thetar = theta * d2r;
phir = phi * d2r;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_... | code_c | code | 734 | null |
<filename>nimbro_topic_transport/src/receiver/depacketizer.h
// De-fragments packets into complete messages
// Author: <NAME> <<EMAIL>>
#ifndef TT_DEPACKETIZER_H
#define TT_DEPACKETIZER_H
#include <vector>
#include <list>
#include <cstdint>
#include <functional>
#include <mutex>
#include "../udp_packet.h"
#include "... | code_c | code | 306 | null |
<filename>Pong/Game/Private/GameObjects/Components/Renderers/Shapes/Shape.h
//Copyright (C) 2020, <NAME>. All rights reserved.
#pragma once
#include "Engine/Public/EngineInterface.h"
#include "Game/Private/GameObjects/Components/Transforms/Transform.h"
#include "Game/Private/DataStructures/Vector2.h"
#include "Game/Pr... | code_c | code | 220 | null |
<gh_stars>0
#import <UIKit/UIKit.h>
@interface InformationalViewState : NSObject
@property (nonatomic, copy, nonnull) NSString *xOutOfYMessage;
@property (nonatomic, copy, nonnull) NSString *bodyString;
@property (nonatomic, strong, nonnull) UIView *contents;
@property (nonatomic, copy, nullable) void (^onStart)(UIVi... | code_c | code | 248 | null |
#pragma once
#include <Core/Models/TransactionInput.h>
#include <Core/Models/TransactionOutput.h>
#include <Common/Util/FunctionalUtil.h>
#include <set>
class TransactionUtil
{
public:
static void PerformCutThrough(std::vector<TransactionInput>& inputs, std::vector<TransactionOutput>& outputs)
{
std::set<Commitme... | code_c | code | 319 | null |
#ifndef POLY_H
#define POLY_H
#include <stdint.h>
#include "params.h"
typedef struct{
uint16_t coeffs[KYBER_N];
} poly;
void poly_compress(unsigned char *r, const poly *a);
void poly_decompress(poly *r, const unsigned char *a);
void poly_tobytes(unsigned char *r, const poly *a);
void poly_frombytes(poly *r, const... | code_c | code | 207 | null |
/*
** cmdprint.c - mruby debugger print command functions
**
*/
#include <string.h>
#include "mrdb.h"
#include "mruby/value.h"
#include "mruby/class.h"
#include "mruby/compile.h"
#include "mruby/error.h"
#include "mruby/numeric.h"
#include "mruby/string.h"
#include "apiprint.h"
dbgcmd_state
dbgcmd_print(mrb_state *mr... | code_c | code | 343 | null |
<filename>FEBioMix/FEBiphasicSolidDomain.h<gh_stars>0
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is her... | code_c | code | 1,709 | null |
///:
/*****************************************************************************
** **
** .======. **
** | INRI | **... | code_c | code | 1,763 | null |
#pragma once
#include "Window.h"
#include "../Utils/PathNode.h"
#include <vector>
using namespace std;
class WindowProject : public Window
{
public:
WindowProject();
~WindowProject() override;
void Init() override;
void Update() override;
void CleanUp() override;
private:
void DoFilter();
void CreateBrea... | code_c | code | 186 | null |
<reponame>sunisland/CCUIRep<filename>Example/FZM_CMUI/FZM_CMUIAppDelegate.h
//
// FZM_CMUIAppDelegate.h
// FZM_CMUI
//
// Created by <EMAIL> on 11/26/2018.
// Copyright (c) 2018 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface FZM_CMUIAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong,... | code_c | code | 101 | null |
#include<stdio.h>
#include<math.h>
int main(){
float a, b, c, d, x1, x2;
scanf("%f%f%f", &a, &b, &c);
d = (b * b) - 4 * a * c;
if(d < 0){
printf("NAO EXISTE RAIZ REAL");
} else if(d == 0){
x1 = ((-b) / (2 * a));
printf("%.3f\n", x1);
} else if(d > 0){
x1 = ((-b + sqrt(d)) / (2 * a));
x2 = ((-b - sqrt(d... | code_c | code | 127 | null |
<reponame>GaryOderNichts/SDL
/**
* \file mischelper.c
*
* Source file with miscellaneous helper functions.
*/
#include <SDL_test.h>
void
SDLVisualTest_HashString(char* str, char hash[33])
{
SDLTest_Md5Context md5c;
int i;
if(!str)
{
SDLTest_LogError("str argument cannot be NULL");
... | code_c | code | 183 | null |
// Copyright (c) 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 BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_TAG_BITMAP_H_
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_TAG_BITMAP_H_
#include "base/... | code_c | code | 1,706 | null |
<gh_stars>1-10
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author <NAME>
@author <NAME>
@author <NAME>
[zcds]gemm_fermi.cu defines the CPU driver.
... | code_c | code | 1,366 | null |
<gh_stars>1-10
/*
* platformdata.h
*
* Created on: 16 Apr 2020
* Author: jief
*/
#ifndef PLATFORM_PLATFORMDATA_H_
#define PLATFORM_PLATFORMDATA_H_
#include "../cpp_foundation/XString.h"
//#include "../Platform/Settings.h"
class SETTINGS_DATA;
class REFIT_CONFIG;
//https://webdevdesigner.com/q/is-there-a... | code_c | code | 12,971 | null |
<gh_stars>0
/*! \file test__array_swap.h
*
*/
#ifndef BLASxON__TESTCASES__LEVELZ__TEST_ARRAY_SWAP_H
#define BLASxON__TESTCASES__LEVELZ__TEST_ARRAY_SWAP_H
#ifdef __cplusplus
extern "C" {
#endif
int test__array_swap(
char * buf
);
#ifdef __cplusplus
}
#endif
#endif // BLASxON__... | code_c | code | 102 | null |
#ifndef TST_TESTMULTITABLEDATABASE_H
#define TST_TESTMULTITABLEDATABASE_H
#include <QtTest>
class TestMultitableDatabase : public QObject
{
Q_OBJECT
public:
explicit TestMultitableDatabase(){}
~TestMultitableDatabase(){}
private:
void removeDb();
private slots:
void initTestCase();
void tes... | code_c | code | 135 | null |
<filename>bnc/crypbnc.c
// This is free and unencumbered software released into the public domain.
// For more information, see LICENSE
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "cryp.h"
#include "tbh.h"
struct benchpar {
size_t t... | code_c | code | 232 | null |
<filename>src/chrono_parallel/math/real2.h
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2016 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
//... | code_c | code | 807 | null |
#ifndef CED_H
#define CED_H
#include <CRegExp.h>
#include <CIPoint2D.h>
#include <sys/types.h>
class CEd;
class CEditFile;
class CEdPointCondition {
public:
CEdPointCondition() { }
virtual ~CEdPointCondition() { }
virtual bool execute(CEd *) { return true; }
};
class CEdLineCondition : public CEdPointCondi... | code_c | code | 1,078 | null |
//
// YRRef.h
// YRNetworkingDemo
//
// Created by <NAME> on 2/7/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#ifndef __YRRef__
#define __YRRef__
#ifndef __YRNETWORKING_INDIRECT__
#error "Please #include <YRNetworking/YRNetworking.h> instead of this file directly."
#include "YRBase.h"
#endif
#define c... | code_c | code | 232 | null |
<gh_stars>1-10
/*****************************************************************************
* Module : DCM *
* File Name : Dcm_Cfg.h *
* Description : Header file of call back function ... | code_c | code | 425 | null |
/*
EspFirewall.h
copyright by lutzion.de
*/
#ifndef EspFirewall_h
#define EspFirewall_h
#include <Arduino.h>
#include <ESP8266WiFi.h>
enum LogLvl
{
debug,
block,
warn,
none
};
class EspFirewall
{
private:
uint32_t _ip, _mask ;
LogLvl _logLvl ;
public:
EspFirewall();
LogLvl getLogLev... | code_c | code | 126 | null |
<reponame>Joke-Shi/erishttp<filename>include/core/eris.proctitle.h
#ifndef __ERIS_PROCTITLE_H__
#define __ERIS_PROCTITLE_H__
/****************************************************************************//*
** @CopyRight (C) 石正贤(Shizhengxian)
**
** @Brief :
** : Modify processor title.
**
****************... | code_c | code | 352 | null |
/*****************************************************************************
** Copyright (C) 2015 Intel Corporation **
** **
** Licensed under the Apache License, Version 2.0 (the "License"); **
** y... | code_c | code | 873 | null |
#ifndef XG_GENERATOR_CAPTURE_H
#define XG_GENERATOR_CAPTURE_H
#include <stdint.h>
#include "cjson/cJSON.h"
extern int g_is_capturing;
extern int init_capture(cJSON *json_root);
extern int capture_do_capture(int seq, const char *packet_bytes, int pktlen);
extern void capture_close_all(void);
#endif
| code_c | code | 86 | null |
<reponame>zchajax/WiEngine<gh_stars>10-100
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_wiyun_engine_nodes_Scheduler */
#ifndef _Included_com_wiyun_engine_nodes_Scheduler
#define _Included_com_wiyun_engine_nodes_Scheduler
#ifdef __cplusplus
extern "C" {
#endif
/*
* Cl... | code_c | code | 466 | null |
#include "player.h"
#include "easings.h"
#include "raymath.h"
#include "state.h"
#include <stdio.h> // DEBUG
extern float frametime;
extern player __player;
extern Color colors[5];
extern Sound hurt;
// static Vector2 Vector2ReduceValue(Vector2 v, float value)
// {
// if (v.x > value)
// v.x -= value;
// else if... | code_c | code | 823 | null |
<filename>diff.h
#pragma once
#include <inttypes.h>
// Spans track dirty rectangular areas on screen
struct Span
{
uint16_t x, endX, y, endY, lastScanEndX;
uint32_t size; // Specifies a box of width [x, endX[ * [y, endY[, where scanline endY-1 can be partial, and ends in lastScanEndX.
Span *next; // Ma... | code_c | code | 616 | null |
#include<stdio.h>
#define MAX 20
int main()
{
char str[20];
char ch;
int i=0;
do
{
ch=getchar();
str[i++]=ch;
}while(ch!='\n');
str[i]='\0';
int len=i;
int j;
int flag=1;
for(j=0;j<len-1;j++)
{
if(str[j]==str[len-j-2])
{
printf("%c,%c",str[j],str[len-2-j]);
continue;
}
... | code_c | code | 138 | null |
<filename>libbrillo/brillo/message_loops/base_message_loop.h
// Copyright 2015 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 LIBBRILLO_BRILLO_MESSAGE_LOOPS_BASE_MESSAGE_LOOP_H_
#define LIBBRILLO_BRILLO_MESSA... | code_c | code | 1,433 | null |
<reponame>isaacmorneau/8005-asn3<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <getopt.h>
#include "tcp_port_server.h"
#include "udp_port_server.h"
#include "wrappers/wrapper.h"
#define SOCKOPTS "tu... | code_c | code | 783 | null |
//
// MD4Engine.h
//
// $Id: //poco/1.4/Foundation/include/Poco/MD4Engine.h#1 $
//
// Library: Foundation
// Package: Crypt
// Module: MD4Engine
//
// Definition of class MD4Engine.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is here... | code_c | code | 1,109 | null |
<reponame>NoCodeNoLife-404/fw-AC63_BT_SDK
#include "update.h"
#include "update_loader_download.h"
#include "asm/crc16.h"
#include "asm/wdt.h"
#include "os/os_api.h"
#include "app_config.h"
#include "cpu.h"
#include "syscfg_id.h"
#include "vm.h"
#include "btcontroller_modules.h"
#include "system/includes.h"
#include "ua... | code_c | code | 5,456 | null |
<reponame>HoangTuan0611/Game
#pragma once
#include <unordered_map>
#include <d3dx10.h>
#include "Textures.h"
using namespace std;
#include <d3d10.h>
#include <d3dx10.h>
//
// Warpper class to simplify texture manipulation. See also CGame::LoadTexture
//
class CTexture
{
protected:
ID3D10Texture2D* _tex;
ID3D10Sha... | code_c | code | 364 | null |
<gh_stars>1000+
//
// WPRegister.h
// WeexPluginDemo
//
// Created by 齐山 on 17/3/7.
// Copyright © 2017年 taobao. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WPRegister : NSObject
+(void )registerPlugins;
@end
| code_c | code | 69 | null |
<reponame>rahulyesantharao/batch-dynamic-kdtree
#ifndef BHLKDTREE_H
#define BHLKDTREE_H
#include "parlay/parallel.h"
#include "parlay/sequence.h"
#include "../shared/kdnode.h"
#include "../shared/kdtree.h"
#include "../shared/utils.h"
#include "../shared/macro.h"
inline bool buildInParallel(size_t num_points) { ret... | code_c | code | 2,540 | null |
<reponame>alex-free/sm64ex-creator
// 0x0700A7F0 - 0x0700A808
static const Lights1 sl_seg7_lights_0700A7F0 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0700A808 - 0x0700A848
static const Vtx sl_seg7_vertex_0700A808[] = {
{{{ -101, 0, 102}, 0, { 734, 734}, {0x... | code_c | code | 600 | null |
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "eeibase.h"
namespace SSVM {
namespace Host {
class EEICall : public EEI<EEICall> {
public:
EEICall(EVMEnvironment &HostEnv) : EEI(HostEnv, 700) {}
Expect<uint32_t> body(Runtime::Instance::MemoryInstance *MemInst,
uint64_t Gas,... | code_c | code | 2,692 | null |
/******************************************************************************
Curse of War -- Real Time Strategy Game for Linux.
Copyright (C) 2013 <NAME>.
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 Sof... | code_c | code | 1,690 | null |
/* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Description: LiteOS Trace Implementation
* Author: Hu<NAME>
* Create: 2019-08-31
* Redistribution and use in source and binary forms, with or without ... | code_c | code | 3,466 | null |
<reponame>Arraxx/OpenMS<gh_stars>100-1000
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tue... | code_c | code | 1,765 | null |
#pragma once
namespace myth
{
namespace containers
{
/*class Leaf
{
public:
Leaf(int x, int y, int z, int width):
x(x),y(y),z(z),width(width){}
int x, y, z;
int width;
};
class Node : public Leaf
{
Node(int x, int y, int z, int width):
Leaf(x,y,z,width){}
private:
Leaf child... | code_c | code | 134 | null |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Personality.h"
/**
*
*/
class BEHAVIOUR_API SN : public Personality
{
public:
SN();
void EstablishPersonality(bool);
virtual ~SN();
void adjustDistribution(double distributionMean_... | code_c | code | 101 | null |
<filename>sound/firewire/dice/dice-extension.c
// SPDX-License-Identifier: GPL-2.0
/*
* dice-extension.c - a part of driver for DICE based devices
*
* Copyright (c) 2018 <NAME>
*/
#include "dice.h"
/* For TCD2210/2220, TCAT defines extension of application protocol. */
#define DICE_EXT_APP_SPACE 0xffffe0200000u... | code_c | code | 1,356 | null |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* RDP Server Peer
*
* Copyright 2011 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | code_c | code | 1,598 | null |
<reponame>chrisss404/tor
/* Copyright (c) 2001 <NAME>.
* Copyright (c) 2001-2004, <NAME>.
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file cell_st.h
* @brief Fixed-size cell structure.
**/
#ifndef CELL_ST_H
#de... | code_c | code | 202 | null |
// -----------------------------------------------------------------------
// RTToolbox - DKFZ radiotherapy quantitative evaluation library
//
// Copyright (c) German Cancer Research Center (DKFZ),
// Software development for Integrated Diagnostics and Therapy (SIDT).
// ALL RIGHTS RESERVED.
// See rttbCopyright.... | code_c | code | 716 | null |
#ifndef __QUEUE_H__
#define __QUEUE_H__
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
/* Queue structure which holds all necessary data */
typedef struct {
// TODO - Include your data structure here
} queue_t;
/* creates a new queue with a given size */
queue_t* create_queue(int capacity);
/* delet... | code_c | code | 305 | null |
/*++
Copyright (c) 1989-2000 Microsoft Corporation
Module Name:
FatData.c
Abstract:
This module declares the global data used by the Fat file system.
--*/
#include "FatProcs.h"
//
// The Bug check file id for this module
//
#define BugCheckFileId (FAT_BUG_CHECK_FATDATA)
//
// The ... | code_c | code | 10,531 | null |
<filename>sources/drivers/watchdog/moxart_wdt.c
/*
* MOXA ART SoCs watchdog driver.
*
* Copyright (C) 2013 <NAME>
*
* <NAME> <<EMAIL>>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express o... | code_c | code | 1,401 | null |
<gh_stars>10-100
#include "geminc.h"
#include "gemprm.h"
static int dith_pat=0;
void set_dither(int *idither)
{
dith_pat = *idither;
}
void dither(char *sys, int np, float x[], float y[], int isub)
{
int i;
float xstart=99999,xend=-99999,ystart=99999,yend=-99999;
float x1,y1,icnt,jcnt;
int alti;
int imark=15,ihw=2,... | code_c | code | 449 | null |
<reponame>import-repo/wine
/*
* Default Handler Tests
*
* Copyright 2008 <NAME>
*
* 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 (at your ... | code_c | code | 949 | null |
<gh_stars>0
struct rrqQueueStruct{
struct sockaddr_in addr[50];
int len[50];
int index;
} rrqQueue;
void tftpSendFile(int sd, struct sockaddr_in cl_addr, int clAddrLen, FILE* fPointer, char* mode);
| code_c | code | 58 | null |
/*
This file is written by Lepidum Co., Ltd.
Copyright (c) 2005-2006 by Lepidum Co., Ltd.
*/
#include <stdio.h>
| code_c | code | 34 | null |
<reponame>zhiming-shen/Xen-Blanket-NG<gh_stars>1-10
/*
* kernel/workqueue.c - generic async execution with shared worker pool
*
* Copyright (C) 2002 <NAME>
*
* Derived from the taskqueue/keventd code by:
* <NAME> <<EMAIL>>
* <NAME>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Made to use allo... | code_c | code | 30,776 | null |
<filename>examples/Standard/Roguelike/Components/Container.h
#pragma once
#include <Totem/Component.h>
#include <Totem/Property.h>
#include <Totem/PropertyList.h>
#include "../Entity.h"
#include <memory>
#include <vector>
#include <libtcod.hpp>
class Container;
typedef std::shared_ptr<Container> Contai... | code_c | code | 248 | null |
/** Leia a altura e o raio de um cilindro circular e imprima o volume do cilindro. O volume de
um cilindro circular é calculado por meio da seguinte fórmula: V = 𝜋 ∗ 𝑟𝑎𝑖𝑜
2
∗ 𝑎𝑙𝑡𝑢𝑟𝑎, onde
𝜋 = 3,141592 .
**/
#include <stdio.h>
int main () {
}
| code_c | code | 70 | null |
#ifndef ENEMYSTATSMODEL_H
#define ENEMYSTATSMODEL_H
#include <QAbstractTableModel>
#include <memory>
#include "hero.h"
class EnemyStatsModel : public QAbstractTableModel
{
Q_OBJECT
private:
std::shared_ptr<Enemy> _enemy;
bool _hints;
public:
EnemyStatsModel(QObject *parent = nullptr, std::shared_ptr<E... | code_c | code | 316 | null |
/** \file GenericReconPartialFourierHandlingGadget.h
\brief This is the class gadget for both 2DT and 3DT cartesian partial fourier handling, working on the IsmrmrdImageArray.
This class is a part of general cartesian recon chain.
The sampled kspace region is found from image meta in fi... | code_c | code | 749 | null |
<gh_stars>1-10
//
// Created by cain on 2018/12/28.
//
#ifndef AUDIODEVICE_H
#define AUDIODEVICE_H
#include <player/PlayerState.h>
// 音频PCM填充回调
typedef void (*AudioPCMCallback)(void *userdata, uint8_t *stream, int len);
typedef struct AudioDeviceSpec {
int freq; // 采样率
AVSampleFormat forma... | code_c | code | 284 | null |
<filename>src/twoD/equations/heat.h
/**
The equation specific functions.
*/
/**
The equations specific global variables and function prototypes.
*/
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include <device_functions.h>
#include <mpi.h>
#include <iostream>
#include <fstream>
#inc... | code_c | code | 1,267 | null |
<filename>src/policy/LocationAccessPolicy.h
#pragma once
#include <Poco/SharedPtr.h>
#include "server/Session.h"
#include "model/Gateway.h"
#include "model/Location.h"
#include "model/User.h"
namespace BeeeOn {
class PolicyContext;
class LocationAccessPolicy {
public:
typedef Poco::SharedPtr<LocationAccessPolicy>... | code_c | code | 199 | null |
<reponame>nistefan/cmssw
#include <boost/python.hpp>
#define PPCAT_NX(A, B) A ## B
#define PPCAT(A, B) PPCAT_NX(A, B)
#define STRINGIZE_NX(A) #A
#define STRINGIZE(A) STRINGIZE_NX(A)
#define PAYLOAD_INSPECTOR_MODULE( PAYLOAD_TYPENAME )\
BOOST_PYTHON_MODULE( plugin ## PAYLOAD_TYPENAME ## _PayloadInspector )
#define... | code_c | code | 242 | null |
/*!
@header ID3Tags.h
@author <NAME>
@copyright 2020+
@version 1.0.0
@brief This header contains code for reading ID3v2 Tags.
*/
#include "TagIO.h"
#pragma once
#ifndef OVIA_TagIO_ID3Tags_H
#define OVIA_TagIO_ID3Tags_H
#if (PlatformIO_Language == P... | code_c | code | 1,762 | null |
<reponame>abhi18av/Corroded
enum {
// ------- Stack -------
// Opcode Operands before after
/* 00 */ CALL, // index, argc [rcv, arg...] [returned]
/* 01 */ PUSH_NUMBER, // index [] [number]
/* 02 */ PUSH_STRING, ... | code_c | code | 278 | null |
/*
* Copyright (c) 2004, 2005 by
* <NAME>, Ulm/Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#ifndef _STDINT_H
#define _STDINT_H
#include <machine/_default_types.h>
#ifdef __cplusplus
extern "C" {
... | code_c | code | 3,818 | null |
//
// AUUVFLLayout.h
// AUULayout
//
// Created by JyHu on 2017/3/31.
// Copyright © 2017年 JyHu. All rights reserved.
//
#import <UIKit/UIKit.h>
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// Useage Documentation 使用说明
// https:... | code_c | code | 1,610 | null |
<reponame>zegoim/go-class
//
// ZegoQualityFactory.h
// go_class
//
// Created by Vic on 2021/6/12.
// Copyright © 2021 zego. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <ZegoQualitySDK/ZegoQualityViewControllerProtocol.h>
NS_ASSUME_NONNULL_BEGIN
@interface ZegoQualityFactory : NSObject
/// 获取用于展示评分... | code_c | code | 151 | null |
#ifndef C0P_PARAM_POST_OBJECTS_SURFER__US_8O0__SURFTIMEPREFACTOR_3O25_PY_CHOICE_H
#define C0P_PARAM_POST_OBJECTS_SURFER__US_8O0__SURFTIMEPREFACTOR_3O25_PY_CHOICE_H
#pragma once
// choose your post processing
#include "core/post/objects/object/post/group/all/core.h"
#include "param/post/objects/surfer__us_8o0__surftime... | code_c | code | 177 | null |
<reponame>PUCSP-LIC-Projects/domino-game<filename>src/dominoModel.h
#ifndef DOMINOMODEL_H_INCLUDED
#define DOMINOMODEL_H_INCLUDED
#include <stdbool.h>
/*
lados = valores dos lados da peca de domino
contador = conta qual a posi��o que a proxima pe�a contada deve estar
jogadaTabuleiro = controla se a peca d... | code_c | code | 678 | null |
// Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef CDSLIB_OS_THREAD_H
#define CDSLIB_OS_THREAD_H
#include <thread>
#include <cds/details/defs.h>
#if CDS_OS_TYPE == CDS_OS_WIN32 |... | code_c | code | 237 | null |
#import <Cocoa/Cocoa.h>
FOUNDATION_EXPORT double ForecastIOVersionNumber;
FOUNDATION_EXPORT const unsigned char ForecastIOVersionString[];
| code_c | code | 40 | null |
<filename>LCD_Driver_MC9S08LL8/Sources/typedefs.h
/*Copyright (c) 2015, Sensirion AG
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 noti... | code_c | code | 679 | null |
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
**************************************... | code_c | code | 981 | null |
<reponame>apohl79/AudioTK<filename>ATK/EQ/helpers.h<gh_stars>1-10
/**
* \file helpers.h
*/
#ifndef ATK_EQ_HELPERS_H
#define ATK_EQ_HELPERS_H
#include <cmath>
#include <vector>
#include <boost/math/tools/polynomial.hpp>
/// Namespace to build filters based on their zpk description
namespace
{
/// Transform the W... | code_c | code | 1,499 | null |
/**
* メイン ループ
*
* @author <NAME> (NWK)
*/
#include "../../src-common/common.h"
#include "deexo3.h"
// ゲーム本体(GAME_ORG~) を GAME_TMP 以降に転送します.
static void moveGame()
{
__asm
// サイズ
ld HL, (#ADDR_GAME_ORG + 3)// ADDR_GAME_ORG は Makefile で定義
ld DE, #-5
add HL, DE
ld BC, HL
// 転送元
ld HL,... | code_c | code | 240 | null |
<filename>benchmarks/src/cuda/dragon_li/hydrazine/hydrazine/interface/Casts.h
/*!
\file Casts.h
\date Monday October 19, 2009
\author <NAME> <<EMAIL>>
\brief The header file for a set of non-standard casts
*/
#ifndef CASTS_H_INCLUDED
#define CASTS_H_INCLUDED
#include <hydrazine/interface/debug.h>
namespace hydra... | code_c | code | 213 | null |
/*
* Copyright 2014, General Dynamics C4 Systems
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#include <util.h>
#include <arch/linker.h>
/* code that is only used during kernel bootstrapping */
#define BOOT_CODE SECTION(".boot.text")
/* read-only data only used during kernel bootstrapping */
#defin... | code_c | code | 272 | null |
<gh_stars>0
#ifndef _THERMALCAMERA_H_
#define _THERMALCAMERA_H_
// Includes:
#include "bit_manipulation.h"
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include <stdio.h>
#include "USB.h"
#include <LUFA/Drivers/Peripheral/TWI.h>
#endif
| code_c | code | 90 | null |
<filename>lib/Common/TemplateParameter.h
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//----------------... | code_c | code | 410 | null |
<reponame>SamuelMarks/kissat
#ifndef _import_h_INLCUDED
#define _import_h_INLCUDED
struct kissat;
unsigned kissat_import_literal (struct kissat *solver, int lit);
#endif
| code_c | code | 49 | null |
//
// HEDrawerController.h
// HEDrawer
//
// Created by Hackice on 15/8/30.
// Copyright (c) 2015年 Hackice. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HEDrawerController : UIViewController
@property (weak, nonatomic) UIView *mainView;/**< 主界面 */
@property (weak, nonatomic) UIView *leftView;/**< ... | code_c | code | 112 | null |
//
// Copyright (c) 2014 Wind River Systems, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "sm_service_group_engine.h"
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/eventfd.h>
#include "sm_limits.h"
#include "sm_types.h"
#include "sm_debug... | code_c | code | 2,824 | null |
#ifndef DPAUCS_PACKET_H
#define DPAUCS_PACKET_H
#include <stdint.h>
#include <stdbool.h>
#include <DPA/utils/helper_macros.h>
#include <DPA/UCS/protocol/address.h>
#define PACKET_SIZE 1518
#define PACKET_SIZE_WITH_CHECKSUM PACKET_SIZE + 4
#define PACKET_MAX_PAYLOAD 1500
#define IEEE_802_1Q_TPID_CONST 0x8100
typedef ... | code_c | code | 718 | null |
<filename>jetsetter.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hiredis.h>
int main(int argc, char **argv) {
char *line = NULL;
char *pch = NULL;
size_t len = 0;
ssize_t read;
char fullkeyname[255];
unsigned int j, isunix = 0;
redisContext *c;
redisReply *re... | code_c | code | 646 | null |
//
// CMCCIOTShowAdvertisementView.h
// AdvertisementScroll
//
// Created by <NAME> on 15/9/7.
// Copyright (c) 2015年 cmcc. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol LoopImageScrollViewDelegate <NSObject>
-(void)loopCurrentIndex:(NSInteger)index;
@end
@interface CMCCIOTShowAdvertisementView : UI... | code_c | code | 130 | null |
#include "axe/btrie.h"
#include "axe/avl.h"
#include "axe/list.h"
#include "axe/oper.h"
#include "axut.h"
#include <assert.h>
#include <setjmp.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct check_table_st
{
int index;
struct {
char *key;
int value;
} table[32];
};
static ax_btrie_r make... | code_c | code | 3,435 | null |
#ifndef AC_BRMESH_H
#define AC_BRMESH_H 1
//
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software in either electronic or hard... | code_c | code | 417 | null |
/*
* This file is part of <NAME>per password cracker.
*
* Some Jumbo-specific tweaks go here. This file must not introduce further
* dependenices within the Jumbo tree. Use misc.[ho] for such things (the
* latter depends on memory.o, logger.o and so on).
*
* This file is Copyright (c) 2013-2014 magnum, Lukasz an... | code_c | code | 2,334 | null |
int main() {
int x,y,z;
if (x < 0 ) {
while (y + z == 3) {
int z;
z = z + 1;
for (int i = 0; i < 5; i++) {
z = z + 3;
}
}
}
}
| code_c | code | 49 | null |
#include "globals.h"
#include "symtab.h"
#include "analyze.h"
/* counter for variable memory locations */
static int location = 0;
static int i=0;
static int pos = 1;
static int indeflag = 0;
//static void traverse(TreeNode * ,void (* preProc) (TreeNode *,int), void (* postProc) (TreeNode *,int) )
/* Procedure trav... | code_c | code | 1,305 | null |
<reponame>binliuk/cascade-cpp
#ifndef KEY_H
#define KEY_H
#include <memory>
#include <string>
namespace Cascade {
class Key
{
public:
Key(int nr_bits);
Key(const Key& key);
~Key();
std::string to_string() const;
int get_nr_bits() const;
int get_bit(int bit_nr) const;
void set_bit(int bit... | code_c | code | 199 | null |
<gh_stars>0
/*
* Copyright 2018-present MongoDB, 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 applicab... | code_c | code | 6,279 | null |
/*
*
* Copyright 2018 gRPC authors.
*
* 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 agree... | code_c | code | 660 | null |
<filename>aws-cpp-sdk-codestar-notifications/include/aws/codestar-notifications/model/TargetSummary.h
/*
* 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.
... | code_c | code | 1,652 | null |
<gh_stars>0
#ifndef INCLUDED_m_info_h
#define INCLUDED_m_info_h
#include "config.h"
typedef struct Information
{
const char *name; /* name of item */
const char *strvalue; /* value of item if it's a boolean */
int intvalue; /* value of item if it's an integer */
const char *desc; /* short description of item */
... | code_c | code | 1,028 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.