text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>mewbak/cc-1
/*
** 2004 May 26
**
** The 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.
**
***... | code_c | code | 16,362 | null |
<gh_stars>10-100
/* $NetBSD: stdarg.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
#include <mips/stdarg.h>
| code_c | code | 30 | null |
<filename>src/qt/src/gui/painting/qprintengine.h
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENS... | code_c | code | 1,111 | null |
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <thread.h>
#include <cursor.h>
#include <mouse.h>
#include <keyboard.h>
#include <frame.h>
#include <fcall.h>
#include <plumb.h>
#include <complete.h>
#include "dat.h"
#include "fns.h"
Image *tagcols[NCOL];
Image *textcols[NCOL];
static Rune Ldot[] = { '.', 0... | code_c | code | 9,368 | null |
<filename>iOS/FirstUseViewController.h
//
// FirstUseViewController.h
// InternetMap
//
// Created by <NAME> on 2013-02-12.
// Copyright (c) 2013 Peer1. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FirstUseViewController : UIViewController
- (IBAction)explore:(id)sender;
@end
| code_c | code | 85 | null |
/**
*
* Sudoku Solution Validator
* Autor: <NAME>
* Copyright 2020 - <NAME>
* Note: The program annotations are in Spanish Language
*/
/*Libraries*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int sudoku[9][9] = {
{6, 2, 4, 5, 3, 9, 1, 8, 7},
{5, 1, 9, 7, 2, ... | code_c | code | 2,098 | null |
/* Copyright 2012 The Regents of the University of California */
/* See COPYING for information about copying and redistribution.
*/
/**
* \file disk_bench.c
* Use nl calipers to measure local disk performance.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nl_calipers.h... | code_c | code | 1,577 | null |
<filename>Pica/Category/Request/PCCommentChildRequest.h<gh_stars>100-1000
//
// PCCommentChildRequest.h
// Pica
//
// Created by Fancy on 2021/6/4.
// Copyright © 2021 fancy. All rights reserved.
//
#import "PCRequest.h"
#import "PCComment.h"
NS_ASSUME_NONNULL_BEGIN
@interface PCCommentChildRequest : PCRequest
... | code_c | code | 158 | null |
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
//
// Copyright 2003-2020 by <NAME>. This program is free software; you can
// redistribute it and/or modify it under the terms of either the GNU
// Lesser General Public License Version 3 or the Pe... | code_c | code | 29,827 | null |
/**************************************************************************************
Copyright (c) Hilscher GmbH. All Rights Reserved.
**************************************************************************************
Filename:
$Workfile: cifxlinux.h $
Last Modification:
$Author: sebastiand ... | code_c | code | 3,220 | null |
// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLLineEnding.h,v $
// $Revision: 1.4 $
// $Name: $
// $Author: shoops $
// $Date: 2011/09/30 16:35:21 $
// End CVS Header
// Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University... | code_c | code | 816 | null |
//===- StringTable.h --------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | code_c | code | 460 | null |
<reponame>davepallot/OSKAR
/*
* Copyright (c) 2014-2018, The University of Oxford
* 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 co... | code_c | code | 3,942 | null |
// Copyright 2016 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 MediaMetadataSanitizer_h
#define MediaMetadataSanitizer_h
#include "public/platform/modules/mediasession/media_session.mojom-blink.h"
namespace ... | code_c | code | 201 | null |
<filename>alluis.h
/*
* Copyright (c) 2016 <NAME> (<EMAIL>)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; with... | code_c | code | 495 | null |
<reponame>rubedos/l4t_R32.5.1_viper<gh_stars>10-100
/*
* Copyright (C) 2008 STMicroelectronics
* Copyright (C) 2010 <NAME>
* Copyright (C) 2010 <NAME> for ST-Ericsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* pu... | code_c | code | 2,199 | null |
#ifndef API_H
#define API_H
#define CRYPTO_ALGNAME "LightSaber"
#define CRYPTO_SECRETKEYBYTES 1568
#define CRYPTO_PUBLICKEYBYTES (2*320+32)
#define CRYPTO_BYTES 32
#define CRYPTO_CIPHERTEXTBYTES 736
int crypto_kem_keypair(unsigned char *pk, unsigned char *sk);
int crypto_kem_enc(unsigned char *ct, unsigned char *ss, ... | code_c | code | 130 | null |
<reponame>lephuocdai/RainbowChat
//
// QBChatRoomOccupant.h
// Сhat
//
// Created by Igor on 07.05.13.
// Copyright (c) 2013 QuickBlox. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface QBChatRoomOccupant : NSObject
{
NSString *nickname;
NSDictionary *parameters;
}
+ (QBChatRoomOccupant *... | code_c | code | 169 | null |
/*++
Copyright (c) 1999 Microsoft Corporation
Abstract:
@doc
@module vss_demo.cpp | header of VSS demo
@end
Author:
<NAME> [aoltean] 09/17/1999
TBD:
Add comments.
Revision History:
Name Date Comments
aoltean 09/17/1999 Created
--*/
#i... | code_c | code | 352 | null |
#pragma once
#include <stdint.h>
#include <stdbool.h>
void io_setup(void);
void io_resize(int size);
void io_lock(void);
void io_unlock(void);
void io_shutdown(void);
void io_delay(int ms);
uint32_t io_get(int x, int y);
void io_put(int x, int y, uint32_t pixel);
void io_clear(void);
int io_up_key(void);
in... | code_c | code | 178 | null |
/*
Copyright 2019 Triad National Security, LLC. All rights reserved.
This file is part of the MSTK project. Please see the license file at
the root of this repository or at
https://github.com/MeshToolkit/MSTK/blob/master/LICENSE
*/
#define _H_MRegion_Private
#include <stdlib.h>
#include "MRegion.h"
#include "MRegio... | code_c | code | 2,750 | null |
<gh_stars>10-100
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef _POWERPC_RTAS_H
#define _POWERPC_RTAS_H
#ifdef __KERNEL__
#include <linux/spinlock.h>
#include <asm/page.h>
#include <linux/time.h>
#include <linux/cpumask.h>
/*
* Definitions for talking to the RTAS on CHRP machines.
*
* Copyright (C) 2001 <... | code_c | code | 4,357 | null |
<reponame>19-2-SKKU-OSS/2019-2-OSS-L3
//GCD_BruteForce
int get_gcd(int a,int b)
{
int max_div = 1; //가장 큰 공약수를 저장할 변수
int range = min(a, b);//두 수 중 작은 값 까지만 조사
for(int i=range; i>=1; i--)
{ //i부터 공약수를 찾는다.
if( a % i == 0 && b % i == 0)
{ // 두 수 모두의 약수일 경우
max_div = i; ... | code_c | code | 163 | null |
#ifndef LIBUTIL_SPINLOCK_WINDOWS_H
#define LIBUTIL_SPINLOCK_WINDOWS_H
#include <windows.h>
namespace libutil {
/** \brief Windown implementation of the spinlock
\ingroup libutil_threads
**/
class spinlock_windows {
public:
typedef CRITICAL_SECTION mutex_id_type;
public:
static void create(mutex_id_ty... | code_c | code | 200 | null |
//
// UIView+Extensions.h
// LensRocket
//
// Created by <NAME> on 9/25/13.
// Copyright (c) 2014 Microsoft Corporation. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Extensions)
-(UIView *)findFirstResponder;
-(void)forceResignFirstResponder;
@end
| code_c | code | 79 | null |
<gh_stars>1-10
/*
* AWS IoT Common V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. 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 in
* the Software without ... | code_c | code | 3,486 | null |
<gh_stars>0
/*
* Copyright (c) 2012-2013 Samsung 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 ... | code_c | code | 2,916 | null |
/*
* Copyright 2000-2007 <NAME> <<EMAIL>>
* Copyright 2007-2012 <NAME> and <NAME>
*
* 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
* notice... | code_c | code | 719 | null |
<reponame>ShermanShao/rt-thread
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2011-09-15 Bernard first version
* 2019-07-28 zdzn add smp support
* 2021-12-21 GuEe-GUI set tpidr... | code_c | code | 728 | null |
<gh_stars>10-100
/*
* Copyright (c) 2002, Karlsruhe University
*
* 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
* notice, this list of condi... | code_c | code | 3,271 | null |
//
// YMModel.h
// YMModel <https://github.com/ibireme/YMModel>
//
// Created by ibireme on 15/5/10.
// Copyright (c) 2015 ibireme.
//
// This source code is licensed under the MIT-style license found in the
// LICENSE file in the root directory of this source tree.
//
#import <Foundation/Foundation.h>
#if __ha... | code_c | code | 170 | null |
/*******************************************************************************
* Copyright (c) 2019 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
*******************************************************************************/
/**************************************************************... | code_c | code | 1,103 | null |
<filename>hardware/aw/audio/libcodec_audio/codec.c
#define LOG_TAG "codec_audio"
#define LOG_NDEBUG 0
#include <stdlib.h>
#include <string.h>
#include <utils/Log.h>
#include <cutils/properties.h>
#include "codec_devices.h"
#include "hal_codec.h"
#include "record.h"
static struct mixer_ctls mixer_ctls;
extern stru... | code_c | code | 853 | null |
// Copyright 2019 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 NET_SPDY_PLATFORM_IMPL_SPDY_MACROS_IMPL_H_
#define NET_SPDY_PLATFORM_IMPL_SPDY_MACROS_IMPL_H_
#include "base/compiler_specific.h"
#define SPDY_M... | code_c | code | 130 | null |
<filename>Validation/Performance/bin/LU.c
#include <math.h>
#include "LU.h"
double LU_num_flops(int N) {
/* rougly 2/3*N^3 */
double Nd = (double)N;
return (2.0 * Nd * Nd * Nd / 3.0);
}
void LU_copy_matrix(int M, int N, double **lu, double **A) {
int i;
int j;
for (i = 0; i < M; i++)
for (j = 0; j ... | code_c | code | 532 | null |
#ifndef __SCENE_H__
#define __SCENE_H__
/**
* @author <NAME>. Github: MauriceGit
*/
#include <GL/glu.h>
#include <stdio.h>
#include <stdarg.h>
#include "types.h"
int initScene (void);
void toggleWireframeMode (void);
#endif
| code_c | code | 65 | null |
//
// ACOBaseCardElement
// ACOBaseCardElement.h
//
// Copyright © 2018 Microsoft. All rights reserved.
//
#import "ACOEnums.h"
#import "ACOParseContext.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class ACOFeatureRegistration;
@interface ACOBaseCardElement : NSObject
- (NSData *)additionalPrope... | code_c | code | 163 | null |
<reponame>octa-connect/Octa-stack
/* * OSS-7 - An opensource implementation of the DASH7 Alliance Protocol for ultra
* lowpower wireless sensor communication
*
* Copyright 2015 University of Antwerp
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | code_c | code | 6,663 | null |
<gh_stars>0
/*
* drivers/net/wireless/bcmdhd/dhd_custom_net_diag_tegra.h
*
* NVIDIA Tegra Network Diagnostics for BCMDHD driver
*
* Copyright (C) 2016 NVIDIA Corporation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free So... | code_c | code | 428 | null |
/*
* M7MParser.h
* iDigitalSApp
*
* Created by svp on 05/09/12.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#ifndef _M7MPARSER_H_
#define _M7MPARSER_H_
#include <string>
#include "ASN1/UUCByteArray.h"
using namespace std;
class M7MParser {
public:
M7MParser();
int Load(const ... | code_c | code | 144 | null |
<reponame>dennyac/onnxruntime<filename>onnxruntime/core/providers/rocm/rocm_execution_provider_info.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <limits>
#include "core/framework/arena_extend_strategy.h"
#include "core/framework/ortdevice.h"
... | code_c | code | 281 | null |
//
// Created by lifujun on 2019/9/24.
//
#ifndef SOURCE_CACHEMANAGER_H
#define SOURCE_CACHEMANAGER_H
#include <cacheModule/cache/CacheConfig.h>
#include <cacheModule/CacheModule.h>
class ICacheDataSource {
public :
virtual ~ICacheDataSource() = default;
virtual int64_t getStreamSize() = 0;
virtual i... | code_c | code | 449 | null |
<reponame>FuhrerG/Algoritmos<gh_stars>0
#include <stdbool.h>
#include <stdio.h>
#include "test.h"
#include "algoritmos.h"
#include "utils.h"
/******FUNCIONES DE TESTEO*******/
// Testea que los algoritmos realicen la ordenacion correctamente
bool test(void (*ordenar)(int v[],int n),void (*inicializar)
(int v[... | code_c | code | 473 | null |
#define thisprog "xe-progdep"
#define TITLE_STRING thisprog" v 5: 26.January.2018 [JRH]"
#define MAXLINELEN 1000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
<TAGS>programming</TAGS>
v 5: 26.January.2018 [JRH]
- tweak to linecomment function
v 5: 21.May.2016 [JRH]
- switch to new l... | code_c | code | 1,926 | null |
<reponame>liuhaozzu/linux
/*
* acpi_container.c - ACPI Generic Container Driver
* ($Revision: )
*
* Copyright (C) 2004 <NAME> (<EMAIL>)
* Copyright (C) 2004 <NAME> (<EMAIL>)
* Copyright (C) 2004 <NAME> (<EMAIL>)
* Copyright (C) 2004 Intel Corp.
* Copyright (C) 2004 FUJITSU LIMITED
*
* ~~~~~~~~~~~~~~~~~~~~~~~... | code_c | code | 2,004 | null |
//
// AliMapViewBusSearchController.h
// AliMapKit
//
// Created by 夏远全 on 16/12/12.
// Copyright © 2016年 广州市东德网络科技有限公司. All rights reserved.
// 公交查询(公交站点、公交线路)
#import <UIKit/UIKit.h>
@interface AliMapViewBusSearchController : UITableViewController
@end
| code_c | code | 75 | null |
<reponame>zhiweita/desert
//
// Copyright (c) 2017 Regents of the SIGNET lab, University of Padova.
// 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... | code_c | code | 21,407 | null |
<gh_stars>100-1000
#include "nvme_helper.h"
#include <spdk/bdev_module.h>
#include <spdk/lib/bdev/bdev_internal.h>
#include <spdk/nvme_spec.h>
#include <spdk/thread.h>
uint32_t *
nvme_cmd_cdw10_get(struct spdk_nvme_cmd *cmd) {
return &cmd->cdw10;
}
uint32_t *
nvme_cmd_cdw11_get(struct spdk_nvme_cmd *cmd) {
... | code_c | code | 516 | null |
<filename>lib/views/livreur/interface_livreur.h
//Interface du menu livreur.
void menu_livreur();
//////// Fonction pour se connecter
void menu_connexion_livreur();
//Interface de création de compte client.
void menu_creer_compte_livreur();
////////////////////
//// Interface compte livreur
void interface_compte_li... | code_c | code | 206 | null |
<filename>c/09/9_3.c
#include <stdio.h>
int divide(int a, int b, int *result);
int main(int argc, char *argv[]) {
int a = 15;
int b = 4;
int c;
if (divide(a, b, &c)) {
printf("%d / %d = %d\n", a, b, c);
}
return 0;
}
int divide(int a, int b, int *result) {
int ret = 1;
if (b == 0) {
ret = 0... | code_c | code | 106 | null |
#pragma once
class IFrameTask
{
public:
virtual ~IFrameTask()
{
}
virtual void RunFrame() = 0;
virtual bool IsFinished() = 0;
};
| code_c | code | 42 | null |
<gh_stars>0
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object3080106164.h"
// System.String
struct String_t;
// System.Object[]
struct ObjectU5BU5D_t2843939325;
// System.Type[]
stru... | code_c | code | 2,229 | null |
/******************************************************************************
*
* Module Name: excreate - Named object creation
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2013, Intel Corp.
* All rights reserved.
*
* Redistribution and use in sou... | code_c | code | 4,446 | null |
<filename>Plugins/Displays/MusicVideo/GrowlMusicVideoPrefs.h
//
// GrowlMusicVideoPrefs.h
// Display Plugins
//
// Created by <NAME> on 14/09/04.
// Copyright 2004 <NAME>. All rights reserved.
//
#import <GrowlPlugins/GrowlPluginPreferencePane.h>
#define GrowlMusicVideoPrefDomain @"com.Growl.MusicVideo"
#defin... | code_c | code | 870 | null |
<reponame>mathstuf/ParaView
/*=========================================================================
Program: ParaView
Module: vtkSMIntVectorProperty.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software i... | code_c | code | 1,876 | null |
<reponame>marcindev/balancing_robot
//*****************************************************************************
//
// nfc_dep.c - used to send packets of P2P
//
// Copyright (c) 2014 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying... | code_c | code | 4,984 | null |
/******************************************************************************
** COPYRIGHT NOTICE
** (c) 2009 The Johns Hopkins University Applied Physics Laboratory
** All rights reserved.
*********************************************************************... | code_c | code | 3,084 | null |
<gh_stars>1-10
#ifndef _ASM_X86_VGTOD_H
#define _ASM_X86_VGTOD_H
#include <linux/compiler.h>
#include <linux/clocksource.h>
#ifdef BUILD_VDSO32_64
typedef u64 gtod_long_t;
#else
typedef unsigned long gtod_long_t;
#endif
/*
* vsyscall_gtod_data will be accessed by 32 and 64 bit code at the same time
* so be carefull... | code_c | code | 414 | null |
/*
* FreeRTOS Kernel V10.4.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 in
* the Software without restriction, ... | code_c | code | 1,080 | null |
/*****************************************************************************/
/* */
/* Telize 2.0.0 */
/* Copyright (c) 2013-2018, <NAME> */
/* https:... | code_c | code | 1,659 | null |
<reponame>OpenNuvoton/M251BSP<gh_stars>1-10
/**************************************************************************//**
* @file main.c
* @version V0.10
* @brief Transmit and receive data from PC terminal through RS232 interface.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2019 Nuvoton Tec... | code_c | code | 2,899 | null |
/**********************************************************************
Audacity: A Digital Audio Editor
AudacityApp.h
<NAME>
This is the main source file for Audacity which handles
initialization and termination by subclassing wxApp.
**********************************************************************... | code_c | code | 2,070 | null |
<filename>src/runtime_src/core/edge/drm/zocl/zocl_xclbin.c
/* SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 */
/*
* MPSoC based OpenCL accelerators Compute Units.
*
* Copyright (C) 2019-2020 Xilinx, Inc. All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
*
* This file is dual-licensed; you may select eith... | code_c | code | 6,275 | null |
#ifndef _ZAMEK_IO_H
#define _ZAMEK_IO_H
#include "zamek-globals.h"
class ZamekIo {
public:
void centerButtonInterrupt();
void leftButtonPressed();
void rightButtonPressed();
void upButtonPressed();
void downButtonPressed();
void centerButtonPressed();
int handleButtonChecker();
};
#endi... | code_c | code | 97 | null |
<reponame>Mowgli1985/core<gh_stars>1-10
#ifndef TX_CHAINPARAMS_H
#define TX_CHAINPARAMS_H
#include <utility>
#include <cstdint>
#include <vector>
#include <openssl/ossl_typ.h>
#include <openssl/ec.h>
#define VERSION "0.3.0"
#define CURRENCY_SWITZERLAND 1
#define CURRENCY_GERMANY 2
#define CURRENCY_AUSTRIA 3
#define... | code_c | code | 2,056 | null |
#define pr_fmt(fmt) "simplefs: " fmt
#include <linux/buffer_head.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include "simplefs.h"
/*
* Iterate over the files contained in dir and commit them in ctx.
* This function is called by the VFS while ctx->pos changes.
* Return 0 on succes... | code_c | code | 488 | null |
<reponame>SensorsIot/Farm-Data-Relay-System
#ifdef DEBUG
#define DBG(a) (Serial.println(a))
#else
#define DBG(a)
#endif
typedef struct __attribute__((packed)) DataReading {
float d;
uint16_t id;
uint8_t t;
} DataReading;
const uint8_t espnow_size = 250 / sizeof(DataReading);
const uint8_t lora_si... | code_c | code | 3,918 | null |
<filename>UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.c<gh_stars>1-10
/** @file
PiSmmCommunication PEI Driver.
Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <PiDxe.h>
#include <PiSmm.h>
#include <Library/Pei... | code_c | code | 4,016 | null |
/*
dmalib.c
Copyright (C) 2012 Adapteva, Inc.
Contributed 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 3 of the License, or
(at your option) any l... | code_c | code | 826 | null |
<reponame>jpoliv/lldpd<gh_stars>100-1000
/* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2008 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permissi... | code_c | code | 3,567 | null |
<reponame>kammerdienerb/flang
/*
* Copyright (c) 2019, NVIDIA CORPORATION. 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/... | code_c | code | 1,499 | null |
/*-----------------------------------------------------------------------*
* filename - wfopen.c
*
* function(s)
* _wfopen - opens a stream
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Time Library - Version 10.0
*
* Copyright (c) 1996, 2000... | code_c | code | 129 | null |
<reponame>bm16ton/portenta-tinyusb
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_QTMR_H_
#define _FSL_QTMR_H_
#include "fsl_common.h"
/*!
* @addtogroup qtmr
* @{
*/
/**************************... | code_c | code | 3,962 | null |
/**CFile****************************************************************
FileName [abcRewrite.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Technology-independent resynthesis of the AIG based on DAG aware rewriting.]
Autho... | code_c | code | 3,634 | null |
#include <sys/stat.h>
#include <termios.h>
#include <errno.h>
#include <stdint.h>
#include "widget_list.h"
int write_to_device(uint8_t *buf, int len);
void serial_functions_init();
void open_device();
void close_device();
void serial_main_init();
int serial_main_loop();
void send_line();
void device_changed();
v... | code_c | code | 105 | null |
<reponame>pfqwsqqq/lyrics-extend-source-for-lyrics3
#ifndef __LYRIC_CONTAINER_BASE_H
#define __LYRIC_CONTAINER_BASE_H
enum LYRIC_SOURCE_TYPE
{
ST_TAG,
//! internal use only
ST_ASSOC,
ST_FILE,
ST_INTERNET,
ST_UNKNOWN
};
enum LYRIC_RESULT_QUALITY
{
Q_UNKNOWN, Q_BAD, Q_MEDIUM, Q_GOOD, Q_EXCELLENT
};
class ... | code_c | code | 788 | null |
//-----------------------------------------------------------------------------
// NVIDIA(R) GVDB VOXELS
// Copyright 2017 NVIDIA Corporation
// SPDX-License-Identifier: Apache-2.0
//
// Version 1.0: <NAME>, 5/1/2017
//-----------------------------------------------------------------------------
#ifndef DEF_STRING_HE... | code_c | code | 611 | null |
#ifndef _CBTEK_COMMON_MATH_MOTION3F_H
#define _CBTEK_COMMON_MATH_MOTION3F_H
#include "Vector3.hpp"
namespace cbtek {
namespace common {
namespace math {
class Motion3f : public Vector3f
{
public:
Motion3f(const float & x=0, const float & y=0, const float & z=0);
void setVelocity(const Vector3f & velocity);... | code_c | code | 158 | null |
<filename>src/xrt/ipc/client/ipc_client_device.c<gh_stars>1-10
// Copyright 2020, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief IPC Client device.
* @author <NAME> <<EMAIL>>
* @ingroup ipc_client
*/
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <... | code_c | code | 1,742 | null |
<gh_stars>10-100
//---------------------------------------------------------------------------//
// //
// PDFR TextBox header file //
// ... | code_c | code | 1,957 | null |
<filename>Sources/Elastos/LibCore/inc/libcore/io/ForwardingOs.h
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with t... | code_c | code | 4,884 | null |
<reponame>yxlao/webrtc-cpp-sample
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_PAYMENT_REQUEST_EVENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_... | code_c | code | 1,295 | null |
<gh_stars>0
/**
* Predmet: IFJ / IAL
* Projekt: Implementace interpretu imperativniho jazyka
* Variant: b/1/I
* Subor: garbage_collector.c
* Datum: 10.10.2011
* Autori: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <... | code_c | code | 898 | null |
// 本文件被 all_room_info_hj.h
// 及 1_room_info_special.h
// 共同調用。
// naihe 0:33 03-10-21
void reset()
{
::reset();
set("no_clean_up", 1);
}
int block_cmds()
{
write("幻境裏不允許使用這個指令。關於 hj 裏使用的一些基本指令,請輸入 help hj2003 查詢。\n");
return 1;
}
int do_look(string arg)
{
string *orention;
if( !arg )
... | code_c | code | 806 | null |
///
/// \class L1TwinMuxParams
///
/// Description: Placeholder for BMTF parameters
///
///
/// \author: <NAME>
/// mod : g karathanasis
#ifndef L1TTwinMuxParams_h
#define L1TTwinMuxParams_h
#include <memory>
#include <iostream>
#include <vector>
#include "CondFormats/Serialization/interface/Serializable.h"
class L... | code_c | code | 759 | null |
/* Copyright (c) 2010 - 2020, 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 notice, this
* l... | code_c | code | 7,069 | null |
<filename>homing.c
#include "hardware.h"
#include "control_isr.h"
#include "homing.h"
#include "stepper.h"
#include "parameters.h"
#include "config.h"
#include <util.h>
#define MICROS_PER_MINUTE 60000000L
#define PULSE_LENGTH 2 // General pulse length / propagation delay for all stepper signals
#define MICROS_PER_TIC... | code_c | code | 994 | null |
/* Auto generated file: with makeref.py . Docs go in docs/reST/ref/ . */
#define DOC_PYGAMEMIXER "pygame module for loading and playing sounds"
#define DOC_PYGAMEMIXERINIT "init(frequency=44100, size=-16, channels=2, buffer=512, devicename=None, allowedchanges=AUDIO_ALLOW_FREQUENCY_CHANGE | AUDIO_ALLOW_CHANNELS_CHANGE... | code_c | code | 2,295 | null |
/*
* Extensible Authentication Protocol (EAP) definitions
*
* See
* RFC 2284: PPP Extensible Authentication Protocol (EAP)
*
* Broadcom Proprietary and Confidential. Copyright 2016 Broadcom
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of th... | code_c | code | 716 | null |
<reponame>spangey/plan9port
#define setcursor dsetcursor
Memimage *attachscreen(char*, char*);
void setmouse(Point);
void setcursor(Cursor*);
void setlabel(char*);
char* getsnarf(void);
void putsnarf(char*);
void topwin(void);
void mousetrack(int, int, int, uint);
void keystroke(int);
void kicklabel(char*);
void ser... | code_c | code | 117 | null |
#pragma once
#include <cmath>
#include "../tile.h"
#include "../grid.h"
#include "../../em-fields/tile.h"
#include "../amr/mesh.h"
#include "../amr/numerics.h"
#include "../amr/refiner.h"
#include "../amr/operators.h"
#include "../../tools/signum.h"
#include "../../tools/cppitertools/zip.hpp"
using iter::zip;
using... | code_c | code | 5,120 | null |
//
// PPCounter.h
// PPCounter
//
// Created by AndyPang on 16/10/23.
// Copyright © 2016年 AndyPang. All rights reserved.
//
#ifndef PPCounter_h
#define PPCounter_h
#import "PPCounterEngine.h"
#import "UILabel+PPCounter.h"
#import "UIButton+PPCounter.h"
#endif /* PPCounter_h */
| code_c | code | 82 | null |
<filename>Engine/source/UISystem/CKLBUIProgressBar.h<gh_stars>1-10
/*
Copyright 2013 KLab 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/LI... | code_c | code | 1,851 | null |
<reponame>krattai/AEBL
/*
* jabberd - Jabber Open Source Server
* Copyright (c) 2002 <NAME>, <NAME>,
* <NAME>, <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 Software Foundation; ... | code_c | code | 1,515 | null |
<reponame>kkhomyakov3d/filament
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... | code_c | code | 958 | null |
//**************************************************************************
// Median filter (c version)
//--------------------------------------------------------------------------
void median( int n, int input[], int results[] )
{
int A, B, C, i;
// Zero the ends
results[0] = 0;
results[n-1] = 0;
// D... | code_c | code | 208 | null |
<filename>src/hg/utils/hubToMetaRa/hubToMetaRa.c
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "axt.h"
#include "common.h"
#include "bigWig.h"
#include "bigBed.h"
#include "dystring.h"
#include "errCatch.h"
#include ... | code_c | code | 1,319 | null |
<filename>src/privsep-sun.c
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Privilege Separation for dhcpcd, Solaris driver
* Copyright (c) 2006-2020 <NAME> <<EMAIL>>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... | code_c | code | 924 | null |
<reponame>thomaskrause/annis4
/* This file is part of the Vc library. {{{
Copyright © 2009-2015 <NAME> <<EMAIL>>
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 cop... | code_c | code | 10,592 | null |
//
// iStarAppDelegate.h
// iStar
//
// Created by <NAME> on 05/05/09.
// Copyright Folera.Com 2009. All rights reserved.
//
#import "GameMgr.h"
#import "GfxMgr.h"
#import "PlayerMgr.h"
#import "StarsMgr.h"
#import "ThingMgr.h"
@interface iStarAppDelegate : NSObject <UIApplicationDelegate>{
UIWindow *window;
}
@... | code_c | code | 109 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.