text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<filename>include/idmlib/maxent/mmapfile.h
/*
* vi:ts=4:tw=78:shiftwidth=4:expandtab
* vim600:fdm=marker
*
* mmapfile.h - A platform independent mmap wrapper
*
* Copyright (C) 2004 by <NAME> <<EMAIL>>
* Begin : 29-May-2004
* Last Change : 22-May-2005.
*
* USEAGE:
* if mmap support is identified on... | code_c | code | 1,078 | null |
#pragma once
#include <queue>
#include "Memory/StaticGenerationBuffer.h"
#include "Memory/BitampAllocator.h"
#include "Handle.h"
#include "HandleTable.h"
#include "InterfaceMap.h"
namespace MoonGlare {
template<typename TimerData, uint32_t TimerLimit_v>
class TimerDispatcher {
public:
static constexpr uint32_t... | code_c | code | 1,149 | null |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#ifndef GRAPH_PLANNER_MATCH_LABELINDEXSEEK_H_
#define GRAPH_PLANNER_MATCH_LABELINDEXSEEK_H_
#include "graph/planner/mat... | code_c | code | 461 | null |
/*
* Copyright (C) 2017 GreenWaves Technologies
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
*/
// Custom template file
#include <stdint.h>
#include <stdio.h>
#include "AutoTilerLib.h"
#include "CNN_Generator... | code_c | code | 552 | null |
<reponame>brucardoso2/ion-dtn<filename>ici/include/psm.h
/*
psm.h: definitions supporting personal space
management. See the psm man page for details.
Author: <NAME>, JPL
Modification History:
Date Who What
11-26-02 SCB Added "trace" functions.
Copyright (c) 2001, California Institute of Techno... | code_c | code | 2,502 | null |
<gh_stars>0
#ifndef EMBER_PRINT_H
#define EMBER_PRINT_H 1
#include <stdbool.h>
#include <stdint.h>
/**
* @brief Prints a log message
* @param category - Currently ignored as zcl categories do not map to chip categories. Defaults to kLogCategory_Progress
* @param format - Format string to print
* */
void emberAfPr... | code_c | code | 309 | null |
<gh_stars>0
#ifndef CLASSROOM_H
#define CLASSROOM_H
#include <QString>
#include <QVector>
#include <QTextStream>
#include "common.h"
#include "wordex.h"
#include "speaker.h"
#include "statistics.h"
#include "dbmanager.h"
class ClassRoom : public QObject
{
Q_OBJECT
public:
explicit ClassRoom(QString &username... | code_c | code | 387 | null |
<reponame>stateos/common
/******************************************************************************
* @file system_stm32l1xx.c
* @author <NAME>
* @date 18.01.2019
* @brief This file provides set of configuration functions for STM32L1 uC.
***************************************************************... | code_c | code | 852 | null |
#ifndef PLAYER_H
#define PLAYER_H
#include "global.h"
#include "GameObject.h"
class Player : public GameObject {
public:
Player(const std::string &name);
virtual ~Player();
virtual void update();
void up();
void down();
void left();
void right();
... | code_c | code | 101 | null |
<gh_stars>1-10
/*=========================================================================
Program: ParaView
Module: vtkCPDataDescription.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed W... | code_c | code | 785 | null |
/* Pascal language support definitions for GDB, the GNU debugger.
Copyright (C) 2000, 2005-2012 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 So... | code_c | code | 769 | null |
/*
* llc_s_st.c - Defines SAP component state machine transitions.
*
* The followed transitions are SAP component state machine transitions
* which are described in 802.2 LLC protocol standard document.
*
* Copyright (c) 1997 by Procom Technology, Inc.
* 2001-2003 by <NAME> <<EMAIL>>
*
* This program can be ... | code_c | code | 1,669 | null |
/*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
*
* librsync -- library for network deltas
* $Id: protocol.h,v 1.10 2001/03/05 14:08:36 mbp Exp $
*
* Copyright (C) 1999, 2000, 2001 by <NAME> <<EMAIL>>
* Copyright (C) 1999 by <NAME>
*
* This program is free software; you can redistribute it and/or
* mo... | code_c | code | 526 | null |
//
// Created by edidada on 18-11-29.
//
#ifndef LEVELDB_MYDBIMPL_H
#define LEVELDB_MYDBIMPL_H
#endif //LEVELDB_MYDBIMPL_H
| code_c | code | 35 | null |
<gh_stars>1-10
//------------------------------------------------------------------------------
// GB_AxB_Gustavson_meta: C=A*B and C<M>=A*B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2019, All Rights Reserved.
// http://suitesparse.com ... | code_c | code | 391 | null |
<reponame>novomatic-tech/activemq-cpp
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... | code_c | code | 783 | null |
<filename>src/clib/u8g2_font_crox4h_tn.c
#include "u8g2.h"
/*
Fontname: -Cronyx-Helvetica-Medium-R-Normal--14-140-75-75-P-77-RAWIN-R
Copyright: Copyright (C) 1990, 1991 EWT Consulting, Portions Copyright (C) 1994 Cronyx Ltd.
Glyphs: 18/224
BBX Build Mode: 0
*/
const uint8_t u8g2_font_crox4h_tn[318] U8G2_FONT_SE... | code_c | code | 360 | null |
/*-------------------------------------------------------------------------
*
* locator.h
* Externally declared locator functions
*
*
* Portions Copyright (c) 2010-2012 Postgres-XC Development Group
*
* src/include/pgxc/locator.h
*
*-------------------------------------------------------------------------
*... | code_c | code | 2,762 | null |
/*
Copyright (c) 2005-2020 Intel 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 applicable la... | code_c | code | 1,166 | null |
/*===- InstrProfiling.c - Support library for PGO instrumentation ---------===*\
|*
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|* See https://llvm.org/LICENSE.txt for license information.
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|*
\*===---------------------------... | code_c | code | 630 | null |
//
// QutesPageTableViewController.h
// FlowerFire
//
// Created by 王涛 on 2020/4/29.
// Copyright © 2020 Celery. All rights reserved.
// 行情哪列表视图
#import "BaseTableViewController.h"
#import <JXCategoryView/JXCategoryView.h>
#import "QuotesTransactionPairModel.h"
NS_ASSUME_NONNULL_BEGIN
/**
排序回调
@param sortType... | code_c | code | 214 | null |
/*
* Copyright (c) 2017 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | code_c | code | 459 | null |
/*
* 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 distributed in the hope that it will be use... | code_c | code | 3,594 | null |
<gh_stars>1-10
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2008 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "hydra_signal.h"
#include "hydra_err.h"
HYD_status HYD_signal_set(int signum, void (*handler) (int))
{
HYD_status status = HYD_... | code_c | code | 524 | null |
<reponame>dmsovetov/foo
/**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 <NAME>
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... | code_c | code | 1,647 | null |
<filename>encoding.c
#include "encoding.h"
#include "manchester.h"
#include "fourbsixb.h"
// Passthrough encoder
static void passthrough_init_encoder(EncoderState *state) {
state->passthrough.count = 0;
}
static void passthrough_add_raw_byte(EncoderState *state, uint8_t raw) __reentrant {
state->passt... | code_c | code | 797 | null |
/*
** Based upon hash.c from sqlite which author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
#ifndef __SJHASH_H__
... | code_c | code | 1,014 | null |
<filename>example/demo3d_private.h
#ifndef DEMO3D_PRIVATE_H
#define DEMO3D_PRIVATE_H
#define VER_STRING "0.7"
#define VER_MAJOR 0
#define VER_MINOR 7
#define VER_RELEASE 0
#define VER_BUILD 1740
#define COMPANY_NAME ""
#define FILE_VERSION ""
#define FILE_DESCRIPTION "Free Graphics Library"
#define INTERNAL_NAME ""
#d... | code_c | code | 137 | null |
<reponame>google-ar/chromium
// Copyright 2013 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 LIBRARIES_NACL_IO_FIFO_PACKET_H_
#define LIBRARIES_NACL_IO_FIFO_PACKET_H_
#include <stdint.h>
#include <string.h>
#... | code_c | code | 467 | null |
<filename>drivers/staging/rtl8192u/r819xU_cmdpkt.c
// SPDX-License-Identifier: GPL-2.0
/******************************************************************************
*
* (c) Copyright 2008, RealTEK Technologies Inc. All Rights Reserved.
*
* Module: r819xusb_cmdpkt.c
* (RTL8190 TX/RX command packet handler Sour... | code_c | code | 4,372 | null |
<reponame>motorbreth/HacktoberFest
#include<stdio.h>
void main() {
int i,j,a[10],n,val;
printf("Enter the how mny nos......\n");
scanf("%d",&n);
printf("Enter the element .......\n");
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++) {
for(j=0;j<n-1-i;j++) {
if(a[j]>a[j+1]) {
val = a[j];
a[j... | code_c | code | 132 | null |
<reponame>san99tiago/WEB_IOT_EIA<gh_stars>1-10
//HEADER PARA CONFIGURACION DE BITS DE EJERCICIO (Adjuntar en headers)
// PIC16F887 Configuration Bit Settings
// 'C' source line config statements
// CONFIG1
#pragma config FOSC = INTRC_NOCLKOUT// Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA6/OSC2/... | code_c | code | 470 | null |
<gh_stars>0
#pragma once
#ifndef MFD_CLOEXEC
#define MFD_CLOEXEC 0x0001U
#define MFD_ALLOW_SEALING 0x0002U
#define MFD_HUGETLB 0x0004U
#endif
// FIXME: Keep all this here until glibc supports it.
#ifndef SYS_memfd_create
#ifdef __x86_64__
#define SYS_memfd_create 319
#endif
#ifdef __i386__
#define ... | code_c | code | 131 | null |
<gh_stars>0
/*
* VKFence.h
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2018 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef LLGL_VK_FENCE_H
#define LLGL_VK_FENCE_H
#include <LLGL/Fence.h>
#include "../Vulkan.h"
#include "../VKPtr.h"
namespace LLGL
{
class VKFence fina... | code_c | code | 229 | null |
<reponame>windystrife/UnrealEngine_NVIDIAGameWork
/* event.c
** strophe XMPP client library -- event loop and management
**
** Copyright (C) 2005-2009 Collecta, Inc.
**
** This software is provided AS-IS with no warranty, either express
** or implied.
**
** This program is dual licensed under the MIT and GPLv3 licen... | code_c | code | 3,578 | null |
<reponame>progdisistema/SharedEditor
/*
* Copyright 2013 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 requ... | code_c | code | 889 | null |
////////////////////////////////////////////////////////////////////////////
// Module : restricted_object.h
// Created : 18.08.2004
// Modified : 23.08.2004
// Author : <NAME>
// Description : Restricted object
////////////////////////////////////////////////////////////////////////////
#pragma once
... | code_c | code | 909 | null |
/*----------------------------------------------------------
// Decoder Ring for PacketRxStatelessReset
// [S][RX][-] SR %s
// QuicTraceLogVerbose(
PacketRxStatelessReset,
"[S][RX][-] SR %s",
QuicCidBufToStr(PacketResetToken, QUIC_STATELESS_RESE... | code_c | code | 21,552 | null |
<gh_stars>100-1000
/*
* linux/drivers/ide/ide-geometry.c
*/
#include <linux/config.h>
#include <linux/ide.h>
#include <linux/mc146818rtc.h>
#include <asm/io.h>
/*
* We query CMOS about hard disks : it could be that we have a SCSI/ESDI/etc
* controller that is BIOS compatible with ST-506, and thus showing up in our... | code_c | code | 1,980 | null |
<reponame>z251257144/MBALib
//
// NSStringHelper.h
// MBALib
//
// Created by zmsoul on 2014-5-6.
// Copyright (c) 2014年 MBALib. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
... | code_c | code | 556 | null |
/*
This file was generated automatically with /nfs/data-012/marques/software/source/libxc/svn/scripts/maple2c.pl.
Do not edit this file directly as it can be overwritten!!
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
... | code_c | code | 3,274 | null |
/* Copyright 2021 The TensorFlow 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 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 | 1,967 | null |
<gh_stars>0
//
// KeyBoradInputViewViewController.h
// SomeKnowledge
//
// Created by HuangJin on 2018/6/13.
// Copyright © 2018年 HuangJin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseViewController.h"
@interface KeyBoradInputViewViewController : BaseViewController
@end
| code_c | code | 84 | null |
// 1011.0.0
#pragma once
const uint32_t hud_text_vert[] = {
0x07230203,0x00010000,0x0008000a,0x0000002d,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x000b000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000d... | code_c | code | 1,082 | null |
/*
File: Battery.h
Author: <NAME>
Date: 2021.05.31 (but assembled from much older ideas)
This is a collection of definitions for managing batteries in firmware.
*/
#include <inttypes.h>
#include <stdint.h>
#ifndef __BATTERIES_INCLUDED_H__
#define __BATTERIES_INCLUDED_H__
/*
* Battery chemistries...
* Different... | code_c | code | 1,017 | null |
#ifndef _CLI_H_
#define _CLI_H_
#include <stdio.h>
#include <unistd.h>
/**
* \file cli.h
* \brief Outils pour une Command Line Interface très basique.
*/
/**
* \brief Afficher un prompt.
* \param[in] input Fichier d'entrée.
* \param[in] output Fichier de sortie.
*
* Afficher un prompt lorsque le programme e... | code_c | code | 741 | null |
/*
* Copyright (C) 2006 <NAME> IBM Corporation
*
* Hypervisor Call Instrumentation
*
* 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... | code_c | code | 1,147 | null |
#ifndef _PAPI_PERFMON_H
#define _PAPI_PERFMON_H
/*
* File: perfmon.h
* CVS: $Id$
* Author: <NAME>
* <EMAIL>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <ti... | code_c | code | 779 | null |
<reponame>J-Westin/tudat<filename>Tudat/Astrodynamics/Aerodynamics/aerodynamicCoefficientInterface.h
/* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are... | code_c | code | 6,153 | null |
<reponame>Zoltan45/Mame-mkp119
#ifndef SN76496_H
#define SN76496_H
WRITE8_HANDLER( SN76496_0_w );
WRITE8_HANDLER( SN76496_1_w );
WRITE8_HANDLER( SN76496_2_w );
WRITE8_HANDLER( SN76496_3_w );
WRITE8_HANDLER( SN76496_4_w );
#endif
| code_c | code | 66 | null |
<reponame>StanLepunK/Fillit<filename>valid/3_check_stock_clean_and_format/libft/ft_memmove.c
/* ************************************************************************** */
/* */
/* ::: ... | code_c | code | 411 | null |
<reponame>joeyzhu00/FusionAD
#pragma once
// Copyright 2013, <NAME>, Carnegie Mellon University
// Further contributions copyright (c) 2016, Southwest Research Institute
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the fol... | code_c | code | 2,206 | null |
<gh_stars>10-100
/////////////////////////////////////////////////////
// Sirnic's Game Engine © <NAME> //
/////////////////////////////////////////////////////
#ifndef SGENGINE_KEYEVENT_H
#define SGENGINE_KEYEVENT_H
#include <iostream>
class KeyEvent{
public:
KeyEvent();
KeyEvent(int c);
... | code_c | code | 530 | null |
// Copyright (c) 2001-2016, Altera Corporation.
// All rights reserved.
//
// This software is available to you under a choice of one of two
// licenses. You may choose to be licensed under the terms of the GNU
// General Public License (GPL) Version 2, available from the file
// COPYING in the main directory of thi... | code_c | code | 4,444 | null |
<reponame>jackwiy/MLN
//
// MLNBlock.h
// MLNCore
//
// Created by MoMo on 2019/7/23.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class MLNLuaCore;
@class MLNLuaTable;
/**
关联Lua Function的对象, 具体参数和返回值的转换规则,参阅MLNConvertor等
@note ⚠️该类的实例化和方法调用都只能在主队列执行
*/
@interface MLNBlock : NSObject
/**
... | code_c | code | 732 | null |
/***************************************************************************
copyright : (C) by 2002-2004 <NAME>
email : <EMAIL>
$Id: libconfig.h,v 1.10 2009-02-16 18:08:59 tat Exp $
***************************************************************************/
#ifndef HAVE_MIMETIC... | code_c | code | 487 | null |
<filename>aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CloudFrontOriginAccessIdentitySummary.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 | 2,291 | null |
<reponame>moannuo/nm-otool
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strtol.c ... | code_c | code | 411 | null |
//
// Created by <NAME> on 02.03.2021.
//
#ifndef SNAKEGAME_FOOD_H
#define SNAKEGAME_FOOD_H
class Food {
};
#endif //SNAKEGAME_FOOD_H
| code_c | code | 40 | null |
//
// CVTodaysNewsData.h
// CapitalValDemo
//
// Created by leon on 10-8-11.
// Copyright 2010 SmilingMobile. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CVTodaysNewsServiceResponse.h"
@protocol TodaysNewsDataDelegate
- (void)getDataFinished:(NSMutableArray *)array;
@end
@interface CVTo... | code_c | code | 223 | null |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
/** C system calls that differ between platforms. **/
#if defined(__linux__)
#define _PYPY_MU_LINUX_PREFIX(fn) __pypy_mu_linux_ ## fn
int _PYPY_MU_LINUX_PREFIX(stat64)(const char* path, st... | code_c | code | 496 | null |
<filename>libfreerdp-core/crypto.h
/**
* FreeRDP: A Remote Desktop Protocol Client
* Cryptographic Abstraction Layer
*
* Copyright 2011 <NAME> <<EMAIL>>
*
* 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 ... | code_c | code | 1,467 | null |
<reponame>dairoku/libibc
// =============================================================================
// gl_view.h
//
// MIT License
//
// Copyright (c) 2019 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "So... | code_c | code | 2,638 | null |
<reponame>AlisterGreg/CascLib
/*****************************************************************************/
/* CascLib.h Copyright (c) <NAME> 2014 */
/*---------------------------------------------------------------------------*/
/* CascLib library v 1.00 ... | code_c | code | 5,625 | null |
<reponame>google-ar/chromium<gh_stars>100-1000
/*
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* v... | code_c | code | 925 | null |
<reponame>darkoppressor/template-version<gh_stars>0
/* Copyright (c) 2012 Cheese and Bacon Games, LLC */
/* This file is licensed under the MIT License. */
/* See the file docs/LICENSE.txt for the full license text. */
#ifndef version_h
#define version_h
namespace Version{
//Build date
static const char YEAR[]="201... | code_c | code | 152 | null |
<reponame>GunshipPenguin/kiteshield
#ifndef __KITESHIELD_TYPES_H
#define __KITESHIELD_TYPES_H
/* Gets us NULL and size_t
* (use of a system header is ok here as this a a freestanding header) */
#include <stddef.h>
typedef signed long long ssize_t;
typedef unsigned long long off_t;
typedef int pid_t;
#endif /* __KIT... | code_c | code | 97 | null |
<gh_stars>1-10
#ifndef _WECollFace_h
#define _WECollFace_h
#include "../../math/WETriangle.h"
#include "../../math/WEMatrix.h"
namespace WE {
typedef Matrix4x3Base CollFaceTransform;
struct CollFace : IndexedTriangleEx1 {
};
struct CollVertex : public Point {
};
inline void collTransfor... | code_c | code | 167 | null |
<filename>boot_stm32F100x/rnd_gen.c
#include "stdint.h"
//!!! ONLY FOR DEMONSTRATION DONT USE IN REAL PROJECT !!!
#error ONLY FOR DEMONSTRATION DONT USE IN REAL PROJECT
#define rnd_mul 1234567890123
#define rnd_add 2345678901235
int64_t rnd_seed;
void rnd_init()
{
rnd_seed = 1234567890123456;
}
uint8_t rnd_... | code_c | code | 172 | null |
<gh_stars>1-10
// Program to produce a file with the expected output
// for all possible inputs to a signed 4-bit divider pursuant to
// RISC-V ISA Manual: Section 7.2 - Division Operations
#include <stdio.h>
#include <math.h>
#define WIDTH 4
#define ITERS 1 << (WIDTH * 2)
// #define ITERS 10000
// Function to compute... | code_c | code | 480 | null |
<filename>common.h
/*
nsjail - common structures
-----------------------------------------
Copyright 2014 Google Inc. 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 obtain a copy of the Li... | code_c | code | 1,192 | null |
<gh_stars>1-10
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2010 <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 (a... | code_c | code | 16,330 | null |
<gh_stars>1-10
#pragma once
#include "UnitTestPCH.h"
#include <assimp/IOSystem.hpp>
using namespace std;
using namespace Assimp;
static const string Sep = "/";
class TestIOSystem : public IOSystem {
public:
TestIOSystem() : IOSystem() {}
virtual ~TestIOSystem() {}
virtual bool Exists( const char* ) cons... | code_c | code | 171 | null |
#pragma once
#include "app/AppData.h"
#include <string>
class MainApplication
{
public:
MainApplication(uint32_t windowWidth, uint32_t windowHeight, std::string const & appName);
MainApplication(MainApplication const &) = delete;
MainApplication & operator=(MainApplication const &) = delete;
~MainApplication();
... | code_c | code | 120 | null |
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/pr48213.c
/* PR target/48213 */
/* { dg-do compile } */
/* { dg-options "-g -O2" } */
/* { dg-options "-g -O2 -fpic" { target fpic } } */
struct S { int (*s) (void); };
int bar (void);
void
foo (struct S *x)
{
if (x->s != bar)
bar ();
}
| code_c | code | 85 | null |
/* Implementation of Flood Fill Algorithm
*
* @author <NAME>
*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
// user defined func to fill the polygon are
void floodfill4(int x, int y, int fillcolor, int oldcolor)
{
/* getpixel() is a predefined func in graphics.h,
it returns the colo... | code_c | code | 350 | null |
/*
* Copyright (c) 2013-2016 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exc... | code_c | code | 83,702 | null |
<gh_stars>10-100
/*
* Copyright 1997 <NAME>
* Copyright 2002 <NAME>
* Copyright 2007 <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, ... | code_c | code | 1,613 | null |
#ifndef _COMMAND_H_
#define _COMMAND_H_
/**
* Typedefs
**/
typedef struct player player_t;
typedef struct game game_t;
typedef void (*command_func_t)(player_t* player, game_t* game, char* input);
/**
* Structs
**/
typedef struct cmd_func {
char* function;
command_func_t func;
} cmd_func_t;
typedef struct comm... | code_c | code | 181 | null |
<filename>src/core/geometry/qgsgeometrymakevalid.h
/***************************************************************************
qgsgeometrymakevalid.h
--------------------------------------
Date : January 2017
Copyright : (C) 2017 by <NAME>
Email : wonder dot sk at gm... | code_c | code | 378 | null |
<filename>swish-e-2.4.7/src/ramdisk.h
/*
$Id: ramdisk.h 1946 2007-10-22 14:56:35Z karpet $
This file is part of Swish-e.
Swish-e 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 | 411 | null |
//
// XHMessageBubbleView.h
// MessageDisplayExample
//
// Created by HUAJIE-1 on 14-4-24.
// Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved.
//
#import <UIKit/UIKit.h>
// Views
#import "XHMessageTextView.h"
#impo... | code_c | code | 705 | null |
/**
* @file win32filesource.h
* @brief Interfaces for file handling.
* @author <NAME>
* @note Copyright (c) 2010 <NAME> - http://untidy.net/
*
* Programmer's Notepad 2 : The license file (license.[txt|html]) describes
* the conditions under which this source may be modified / distributed.
*/
#ifndef WIN32FILES... | code_c | code | 192 | null |
<filename>examples/12_module/08_arrays_dyn_1/bank_account.h
#ifndef BANK_ACCOUNT_H
#define BANK_ACCOUNT_H
class BankAccount
{
public:
BankAccount() = default;
BankAccount(int b) : balance(b) {}
int get_balance()const;
private:
int balance{ 0 };
};
#endif | code_c | code | 74 | null |
//
// LTJ_ModuleModel.h
// TFY_CodeBuilder
//
// Created by 田风有 on 2020/08/21.
// Copyright © 2020 TFY_CodeBuilder. All rights reserved.
//
#import <Foundation/Foundation.h>
@class LTJ_LinksModel;
@interface LTJ_ModuleModel : NSObject
/**
* links: links
*/
@property (nonatomic, strong) NSArray <LTJ_LinksMod... | code_c | code | 759 | null |
/*
* (C) Copyright 2008, 2009 <NAME>,
* DENX Software Engineering, <EMAIL>.
* (C) Copyright 2009 <NAME>,
* DENX Software Engineering, <EMAIL>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under ... | code_c | code | 3,441 | null |
<filename>ios/common/BackgroundGeolocation/MAURSQLiteHelper.h
//
// MAURSQLiteHelper.h
// BackgroundGeolocation
//
// Created by <NAME> on 23/06/16.
// Copyright © 2016 aescalanteo. All rights reserved.
//
#ifndef MAURSQLiteHelper_h
#define MAURSQLiteHelper_h
#import <Foundation/Foundation.h>
#define COMMA_SEP "... | code_c | code | 346 | null |
<reponame>tidepool-org/healthkit-uploader<gh_stars>0
/*
* Copyright (c) 2019, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at open... | code_c | code | 320 | null |
#pragma once
#include "model_generated.h"
#include <string>
#include <vector>
namespace NCatboostStandalone {
enum class EPredictionType {
//! Just raw sum of leaf values of model trees
RawValue,
//! Apply sigmoid to raw sum of leaf values to evaluate probability
Probability,
... | code_c | code | 533 | null |
<filename>tests/ostreamnamespace/foo.h
/**
* @file foo.h
* @author <NAME>
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#ifndef FOO_H
#define FOO_H
#include "tao/x11/anytypecode/any.h"
#include "testS.h"
/// Implement the Test::Hello interface
class Foo final
: public virtual CORBA::servant_traits... | code_c | code | 252 | null |
//
// LEOUploadViewController.h
// ConnectDisk
//
// Created by <NAME> on 12-10-25.
// Copyright (c) 2012年 SAE. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LEOEditToolBar.h"
#import "LEOUploadView.h"
#import "ELCImagePickerController.h"
#import "LEOCameraPickerController.h"
#import "MBProgressHUD.h"
... | code_c | code | 216 | null |
/*********************************************************************************************************************************
LeakyBucket.h - Sinric Pro Library for boards
Based on and modified from SinricPro libarary (https://github.com/sinricpro/)
to support other boards such as SAMD21, SAMD51, Adafruit's... | code_c | code | 1,062 | null |
//
// Created by gen on 7/21/2020.
//
#ifndef ANDROID_SCRIPTCONTEXT_H
#define ANDROID_SCRIPTCONTEXT_H
#include <core/Ref.h>
#include <core/script/Script.h>
namespace gs {
CLASS_BEGIN_N(ScriptContext, gc::Object)
long timer = 0;
gc::Script *script = nullptr;
public:
void initialize(c... | code_c | code | 188 | null |
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2008-2013 by <NAME>
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies and th... | code_c | code | 2,160 | null |
<gh_stars>1-10
#ifndef _ONISTAGEPROCESSOR_H_
#define _ONISTAGEPROCESSOR_H_
#include "stage.h"
#include "stageRegistry.h"
class OniStageProcessor : public Stage::Processor {
public:
// Note that we're intentionally avoiding the boost stage registry
// macro stuff. This stage processor is a fallback for stages tha... | code_c | code | 248 | null |
/* table.c - bookkeeping functions for allocated memory */
/* Copyright (C) 2001-2003 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | code_c | code | 1,754 | null |
#ifndef PFTOOLSEXCEPTION_H_
#define PFTOOLSEXCEPTION_H_
#include <exception>
#include <string>
namespace pftools {
/**
\class PFToolsException
\brief General purpose exception class for use by classes in the pftools namespace
\author <NAME>
\date April 2008
*/
class PFToolsException : public std::exception {
... | code_c | code | 158 | null |
<gh_stars>1000+
/**************************************************************************//**
* @file nu_trng.h
* @version V1.10
* @brief TRNG driver header file
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.
****************************... | code_c | code | 772 | null |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright... | code_c | code | 8,240 | null |
/*
* $Id: libnet_write.c,v 1.13 2004/02/20 18:53:50 mike Exp $
*
* libnet
* libnet_write.c - writes a prebuilt packet to the network
*
* Copyright (c) 1998 - 2004 <NAME> <<EMAIL>>
* All rights reserved.
* win32 specific code
* Copyright (c) 2002 - 2003 <NAME> <<EMAIL>>
*
* Redistribution and use in s... | code_c | code | 3,449 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.