text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<filename>src/extern/inventor/lib/database/include/Inventor/nodes/SoCube.h
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* 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 S... | code_c | code | 1,484 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lightsail/Lightsail_EXPORTS.h>
#include <aws/lightsail/LightsailRequest.h>
#include <aws/lightsail/model/ContactMethodVerificationProtocol.h>
#include <utility>
namespace A... | code_c | code | 795 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* signals.c :+: :+: :+: ... | code_c | code | 395 | null |
/**
* picolibrary
*
* Copyright 2020-2021, <NAME> <<EMAIL>> and the picolibrary
* contributors
*
* 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,048 | null |
<filename>src/oneShot/unmasked/unmasked.c<gh_stars>100-1000
/* List files that aren't repeat masked. */
#include "common.h"
#include "portable.h"
static char *seqDirs[] =
{
"/projects/compbio/experiments/hg/gs.1/fin/fa",
"/projects/compbio/experiments/hg/gs.1/unfin/fa",
"/projects/compbio/experiments/... | code_c | code | 692 | null |
<gh_stars>1-10
/****************************************************************************
* Ralink Tech Inc.
* Taiwan, R.O.C.
*
* (c) Copyright 2013, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublished work and the
* use of a copyright notice does not imply otherwise. This ... | code_c | code | 8,888 | null |
<filename>src/cascadia/TerminalApp/LegacyProfileGeneratorNamespaces.h<gh_stars>10-100
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Abstract:
- This header simply contains all the namespaces of the "legacy" dynamic profile
generators. These generators were built-in to the code before... | code_c | code | 277 | null |
<filename>mogupro/game/include/Utility/MessageBox.h
#pragma once
#include <string>
#include <functional>
namespace Utility
{
void MessageBoxYesNo( std::string const& message, std::function<void( )> const& calledYes, std::function<void( )> const& calledNo );
void MessageBoxOk( std::string const& message, std::func... | code_c | code | 187 | null |
<gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Driver for generic Bluetooth SCO link
* Copyright 2011 <NAME> <<EMAIL>>
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/soc.h>
static const struct snd_soc_dapm_widget bt_sco_widgets[] = {
SN... | code_c | code | 821 | null |
<filename>bazaar/Rss/Rss.h
//**********************************************************************************************
//* Rss Class
//* ---------
//* RSS 2.0 Web content syndication format encapsulation for U++
//* For more information on RSS format,
//* See:
//* http://www.rss-specifications.com/
//* ... | code_c | code | 3,170 | null |
// Copyright 2017 Google 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 applicable law or agreed to in ... | code_c | code | 2,194 | null |
// For License please refer to LICENSE file in the root of YALField project
#import "YALBaseViewController.h"
@interface YALPaymentViewController : YALBaseViewController
@end
| code_c | code | 50 | null |
// Copyright 2017 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 SERVICES_METRICS_PUBLIC_CPP_METRICS_UTILS_H_
#define SERVICES_METRICS_PUBLIC_CPP_METRICS_UTILS_H_
#include <stdint.h>
#include "services/metrics... | code_c | code | 420 | null |
// C++ informative line for the emacs editor: -*- C++ -*-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. ... | code_c | code | 1,207 | null |
<filename>API/Foundation/JSBNSOperationQueue.h
#import <Foundation/NSObject.h>
@import Foundation;
@import JavaScriptCore;
@protocol JSBNSObject;
@protocol JSBNSOperationQueue <JSExport, JSBNSObject>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ (id)currentQueue;
+ (i... | code_c | code | 244 | null |
#ifndef CALTYPES_H
#define CALTYPES_H
/*--------------------------------------------------------------------------
**
** Copyright 2021 <NAME>
**
** Name: caltypes.h
**
** Description:
** This file defines constants, types, and macros.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** ... | code_c | code | 2,880 | null |
//
// CocoaPodsXCConfigIssueFramework.h
// CocoaPodsXCConfigIssueFramework
//
// Created by <NAME> on 06/08/2021.
//
#import <Foundation/Foundation.h>
//! Project version number for CocoaPodsXCConfigIssueFramework.
FOUNDATION_EXPORT double CocoaPodsXCConfigIssueFrameworkVersionNumber;
//! Project version string f... | code_c | code | 172 | null |
<reponame>esc0rtd3w/PSL1GHT
#pragma once
#include <psl1ght/types.h>
#include <psl1ght/lv2/filesystem.h>
EXTERN_BEGIN
typedef struct sysFsAio {
s32 fd;
u64 offset;
u32 addr_buffer;
u64 size;
u64 userdata;
} sysFsAio;
s32 sysFsOpen(const char* path, s32 oflags, Lv2FsFile* fd, const void* arg, u64 argsize);... | code_c | code | 389 | null |
/*
* Copyright 2006-2016 zorba.io
*
* 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 agreed to... | code_c | code | 501 | null |
<filename>Source/Samples/Shared/entities.h
#pragma once
#include <string>
struct person
{
std::string name;
std::uint16_t age;
std::string telephone_number;
};
| code_c | code | 47 | null |
<reponame>wkk5194/cnmMaze<gh_stars>0
#pragma once
// BMP file type supporting
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include <GL/glut.h>
#define BITMAP_ID 0x4D42
using namespace std;
class Video
{
public:
unsigned int textureVideo[10];
int displayFPS = 0;
unsigned char *loadBit... | code_c | code | 145 | null |
/**
****************************************************************************************
*
* @file user_profiles_config.h
*
* @brief Configuration file for the profiles used in the application.
*
* Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer
* program includes Confidentia... | code_c | code | 439 | null |
/*
+----------------------------------------------------------------------+
| Yar - Light, concurrent RPC framework |
+----------------------------------------------------------------------+
| Copyright (c) 2012-2013 The PHP Group |
+--------------... | code_c | code | 1,145 | null |
/*
* Wired Ethernet driver interface for QCA MACsec driver
* Copyright (c) 2005-2009, <NAME> <<EMAIL>>
* Copyright (c) 2004, <NAME> <<EMAIL>>
* Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "in... | code_c | code | 6,266 | null |
<reponame>aaarsene/o3de<filename>Gems/ExpressionEvaluation/Code/Source/ExpressionEngine/ExpressionVariable.h
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT... | code_c | code | 521 | null |
<gh_stars>1-10
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/drs/Drs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/drs/model/ReplicationConfigurationDataPlaneRouting.h>
#include <aws/drs/mode... | code_c | code | 7,816 | null |
<gh_stars>1-10
#pragma once
#include "..\..\RuntimeAlias.h"
#include "..\Interfaces\OSFile.h"
#include "..\Memory\PrivateHeap.h"
#include "MDRecords.h"
#include "IImportSession.h"
#include <type_traits>
#define IF_FAIL_RET(EXPR) if (!(EXPR)) return false
using namespace RTI;
namespace RTME
{
enum class ImportOption
... | code_c | code | 1,269 | null |
<reponame>Revivify/openldap<gh_stars>1-10
/* rdnval.c - RDN value overlay */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2017 The OpenLDAP Foundation.
* Portions Copyright 2008 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and bin... | code_c | code | 4,494 | null |
<filename>src/contrib/fuse-dfs/src/fuse_impls_truncate.c
/**
* 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 unde... | code_c | code | 626 | null |
<reponame>jblondin/arrow<gh_stars>1-10
// 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, ... | code_c | code | 2,206 | null |
/* $OpenBSD: sfbreg.h,v 1.4 2003/10/18 20:14:42 jmc Exp $ */
/* $NetBSD: sfbreg.h,v 1.1 1996/05/01 21:15:46 cgd Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: <NAME>
*
* Permission to use, copy, modify and distribute this software and
* its documentation is hereb... | code_c | code | 1,190 | null |
<gh_stars>1-10
/*
* LCMath.c
* LabTools Common
*
* Description: Useful utilities (mostly math)
*
* Prefix: math
*
* Created by jig
* 3/16/02: JD added sort and median
*/
#include <stdlib.h>
#include <stdio.h>
#include "LCMath.h"
#include "LCSafeAlloc.h"
/* PUBLIC ROUTINE: math
*
*/
int math_atan(int x... | code_c | code | 709 | null |
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>100-1000
/*
* lcd44780.h
* Simple "driver" for a memory-mapped 44780-style LCD display.
*
* Copyright 2001 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License... | code_c | code | 147 | null |
<reponame>insidious-src/noaa-data-engine
/*
* Copyright 2018 <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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | code_c | code | 1,170 | null |
/*
** Zabbix
** Copyright (C) 2001-2019 Zabbix SIA
**
** 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 pro... | code_c | code | 705 | null |
/* Conditional Random Fields for Object Localization
* Master thesis source code
*
* Authors:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*
* Department of Computer Science
* University of Copenhagen
* Denmark
*
* Date: 27-08-2012
*/
#ifndef _GRADIENT_DESCENT_H_
#define _GRADIENT_DESCENT_H_
#include "Objective... | code_c | code | 317 | null |
/** @file
Include file to suport EDD 3.0.
This file is coded to T13 D1386 Revision 3
Availible on http://www.t13.org/#Project drafts
Currently at ftp://fission.dt.wdc.com/pub/standards/x3t13/project/d1386r3.pdf
Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD... | code_c | code | 1,434 | null |
<filename>PYPrivacyKitDemo/Pods/Headers/Public/PYAuthorizedKit/PYHealthAuthorized.h
//
// PYHealthAuthorized.h
// PYAuthorizedKit
//
// Created by administrator on 2018/5/8.
//
#import <Foundation/Foundation.h>
#import <HealthKit/HealthKit.h>
@interface PYHealthAuthorized : NSObject
+ (BOOL)authorized;
+ (BOOL)is... | code_c | code | 136 | null |
<reponame>DraconPern/libmatoya
// Copyright (c) <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT License was not distributed with this file,
// You can obtain one at https://spdx.org/licenses/MIT.html.
#include "matoya.h"
#include <stdio.h>
#include <std... | code_c | code | 793 | null |
/*
* Copyright (c) 2017-2021, Alibaba Group Holding Limited
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | code_c | code | 1,082 | null |
#include <linux/bpf.h>
#include <linux/types.h>
#include <bpf/bpf_helpers.h>
#define SEC(NAME) __attribute__((section(NAME), used))
struct bpf_map_def SEC("maps") sock_map =
{
.type = BPF_MAP_TYPE_SOCKMAP,
.key_size = sizeof(int),
.value_size = sizeof(int),
.max_entries = 2,
};
struct bpf_map_def SE... | code_c | code | 247 | null |
<reponame>msm8960dt/android_device_motorola_msm8960dt-common
#include "unicode/utext.h"
#include "unicode/utypes.h"
U_STABLE UText * U_EXPORT2
utext_openUChars_53(UText *ut, const UChar *s, int64_t length, UErrorCode *status)
{
return utext_openUChars(ut, s, length, status);
}
U_STABLE UText * U_EXPORT2
utext_clo... | code_c | code | 162 | null |
<gh_stars>1-10
// Copyright 2019-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief C interface to math library.
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*
* @see xrt_vec3
* @see xrt_quat
* @see xrt_pose
* @see xrt_space_relation
* @ingroup aux_math
*/
#pragma once
... | code_c | code | 3,354 | null |
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
#pragma warning (disable : 4100)
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "teamspeak/public_errors.h"
#include "teamspeak/public_definitions.h"
#include "ts3_functions.h"
#include "plugin.h"
static struct... | code_c | code | 2,686 | null |
#ifndef XMP_LOADER_H
#define XMP_LOADER_H
#include "common.h"
#include "effects.h"
#include "format.h"
#include "hio.h"
/* Sample flags */
#define SAMPLE_FLAG_DIFF 0x0001 /* Differential */
#define SAMPLE_FLAG_UNS 0x0002 /* Unsigned */
#define SAMPLE_FLAG_8BDIFF 0x0004
#define SAMPLE_FLAG_7BIT 0x0008
#define SAMPLE_... | code_c | code | 769 | null |
#ifndef _INDEX_SEARCH_H
#define _INDEX_SEARCH_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define CHECKSTATUS(res) do {if (res != SUCCESS) return res;} while (0)
#define rtol 1.e-5
#define atol 1.e-8
#ifdef DOUBLE_COORD_VARIABLES
typedef double type_coord;
#else
... | code_c | code | 4,999 | null |
<reponame>TuongPV2/zephyr
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file Header where utility code can be found for GPIO drivers
*/
#ifndef __GPIO_UTILS_H__
#define __GPIO_UTILS_H__
/**
* @brief Generic function to insert or remove a callback from a callback... | code_c | code | 443 | null |
/*=============================================================================
# Filename: VNode.h
# Author: <NAME>
# Mail: <EMAIL>
# Last Modified: 2016-04-11 14:05
# Description: written by liyouhuan
=============================================================================*/
#ifndef _VSTREE_VNODE_H
#d... | code_c | code | 1,238 | null |
/***************************************************************************//**
* Copyright (c) 2015 by Silicon Laboratories Inc. All rights reserved.
*
* http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt
**********************************************************************... | code_c | code | 27,708 | null |
// naclite.h - written and placed in the public domain by <NAME>
// based on public domain NaCl source code written by
// <NAME>, <NAME>, <NAME>,
// <NAME>, <NAME> and <NAME>.
// Further adapted for use in the Fost libraries.
/// \file naclite.h
/// \brief Crypto++ interface to Twee... | code_c | code | 6,388 | null |
/* -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40; -*- */
/* 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
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef SHARED_SURFACE_ANGLE_H_
... | code_c | code | 1,231 | null |
#define ICONV_INTERNAL
#include "iconv.h"
static const iconv_ccs_convtable_7bit to_ucs = { {
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007,
0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F,
0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017,
0x0018, 0x0019, 0x001A,... | code_c | code | 2,239 | null |
<filename>zan-extension/include/swMemory/memoryPool.h
/*
+----------------------------------------------------------------------+
| Zan |
+----------------------------------------------------------------------+
| Copyright (c) 2016-2017 Zan Group ... | code_c | code | 1,384 | null |
//----------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//----------------------------------------------------------------
#import "MSBPageElement.h"
@interface MSBPageTextBlock : MSBPageElement
@property (nonatomic, assign) MSBPageTextBl... | code_c | code | 230 | null |
// Output Device to Window
// Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved.
#pragma once
#include "FontMgrII.h"
#include "Horiz.h"
#include "ManipT.h"
#include "TextPosition.h"
#include "VertMgmt.h"
#include "Wrap.h"
class Device;
typedef ManipT< Device> DspManip;
typedef ManipInt... | code_c | code | 2,386 | null |
/**
Entity scripting interface
*/
#pragma once
#include "../mud.h"
void RegisterEntityMethods(const char* obj);
void InitializeEntity();
| code_c | code | 39 | null |
<filename>powerwatch/firmware/particle/plugwatch_C/firmware/src/NrfWit.h<gh_stars>0
#pragma once
#include <Particle.h>
#include "Subsystem.h"
class NrfWit: public Subsystem {
typedef Subsystem super;
String result;
public:
void reset();
void setup();
LoopStatus loop();
String getResult();
};
| code_c | code | 88 | null |
/* Copyright 2020 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 a... | code_c | code | 546 | null |
#ifndef __KF_SCHEDULE_INTERFACE_H__
#define __KF_SCHEDULE_INTERFACE_H__
#include "KFrame.h"
namespace KFrame
{
// 计划任务管理, 负责某个时间段内功能的开启和关闭
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////... | code_c | code | 737 | null |
/**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import "ABI27_0_0RNSVGPainter.h"
#import "ABI27_0_0RNSVGContainer.h"
#import "ABI27_0_0... | code_c | code | 404 | null |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 <EMAIL>
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
此文件是Rippled的一部分:https... | code_c | code | 604 | null |
<filename>osquery/tables/networking/linux/inet_diag.h<gh_stars>0
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be fo... | code_c | code | 843 | null |
<filename>C++/Vinicius Ramon/triangulo.c<gh_stars>0
#include <stdio.h>
main()
{
float A,B,C,AB,AC,BC;
while(1)
{
printf("digite o valor do ponto A: ");
scanf("%f",&A);
printf("digite o valor do ponto B: ");
scanf("%f",&B);
print... | code_c | code | 240 | null |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* Flash engine File: dev_flashop_engine.c
*
* Author: <NAME> (<EMAIL>)
*
*********************************************************************
*
* Cop... | code_c | code | 6,701 | null |
#include<stdio.h>
int main(){
/*Variable declaraton*/
int num1, num2, sum;
/*Appointing value*/
num1 = 20;
num2 = 30;
/*Adding values*/
sum = num1 + num2;
/*Printing the answer*/
printf("The sum of %d and %d is : %d", num1, num2, sum);
return 0;
}
| code_c | code | 89 | null |
<reponame>SMILEY4/SoftwareRenderer
#include "uniforms.h"
#include <stdio.h>
void ubCreateBuffer(uniformbuffer_t *buffer, unsigned int ubMaxElements, unsigned int maxPointers) {
buffer->maxSize = ubMaxElements;
buffer->uniforms = calloc((size_t)ubMaxElements, sizeof(uniform_t));
for(int i=0; i<ubMaxElement... | code_c | code | 576 | null |
<reponame>Cwc-Lib/LMP3D<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#ifdef GC
#include "LMP3D/LMP3D.h"
void LMP3D_Texture_Format_Convert(LMP3D_Texture *texture)
{
switch (texture->format)
{
case LMP3D_FORMAT_LUM:
break;
case LMP3D_FORMAT_LUMA:
break;
case LMP3D_FORMAT_RGB888:
break;
case ... | code_c | code | 440 | null |
<gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* wm831x-auxadc.c -- AUXADC for Wolfson WM831x PMICs
*
* Copyright 2009-2011 Wolfson Microelectronics PLC.
*
* Author: <NAME> <<EMAIL>>
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/mfd/core.h>
#i... | code_c | code | 1,878 | null |
<reponame>CarysT/medusa
//*****************************************************************************/
// Copyright (c) 1997,1998 Discreet Logic, Inc.
//
// These coded instructions, statements, and computer programs contain
// unpublished proprietary information written by Discreet Logic and
// are protected by Fede... | code_c | code | 9,447 | null |
<filename>linux-4.14.90-dev/linux-4.14.90/sound/pci/hda/thinkpad_helper.c
// SPDX-License-Identifier: GPL-2.0
/* Helper functions for Thinkpad LED control;
* to be included from codec driver
*/
#if IS_ENABLED(CONFIG_THINKPAD_ACPI)
#include <linux/acpi.h>
#include <linux/thinkpad_acpi.h>
static int (*led_set_func)(... | code_c | code | 725 | null |
// This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
// http://dead-code.org/redir.php?target=wme
#if !defined(AFX_ADWAYPOINTGROUP_H__66C7E17D_BEFB_4DB1_BBBF_14286A90646E__INCLUDED_)
#define AFX_ADWAYPOINTGROUP_H__66C7E17D_BEFB_4DB1_BBBF_14286A... | code_c | code | 338 | null |
// usand struct dentro de struct
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct tp_endereco
{
char rua[40];
int numero;
char bairro[40];
char cidade[40];
char estado[3];
int cep;
};
struct tp_data_nascimento
{
int dia;
int mes;
int ano;
};
struct cadastro_clien... | code_c | code | 808 | null |
<filename>Sources/Engine/Input/InputMouse.h
/*=============================================================================
InputMouse.h
Project: Sonata Engine
Author: <NAME>
=============================================================================*/
#ifndef _SE_INPUTMOUSE_H_
#define _SE_INPUTMOUSE_H_
#include "C... | code_c | code | 790 | null |
<reponame>enjiushi/VulkanLearn
#pragma once
#include "SharedBuffer.h"
class SharedIndexBuffer : public SharedBuffer
{
protected:
bool Init(const std::shared_ptr<Device>& pDevice,
const std::shared_ptr<SharedIndexBuffer>& pSelf,
uint32_t numBytes,
VkIndexType type);
public:
static std::shared_ptr<SharedIndex... | code_c | code | 188 | null |
<reponame>get-net/tarantool
#ifndef INCLUDES_TARANTOOL_BOX_VY_REGULATOR_H
#define INCLUDES_TARANTOOL_BOX_VY_REGULATOR_H
/*
* Copyright 2010-2018, Tarantool AUTHORS, please see AUTHORS file.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the followi... | code_c | code | 1,594 | null |
//
// SENAC BCC PI 2
// Projeto Betelgeuse
#include <stddef.h>
#include <stdio.h>
#include "splashScene.h"
#include "mainMenuScene.h"
static int senacLogo, senacTitle;
static int bccLogo, bccTitle;
static int betelgeuseLogo;
static void splashOnEnter(Game *game, int frame) {
senacLogo = loadImageAsset("splash_sen... | code_c | code | 671 | null |
#define CF_ENUM(_type, _name) enum _name : _type _name; \
enum __attribute__((enum_extensibility(open))) _name : _type
#define CF_OPTIONS(_type, _name) enum _name : _type _name; \
enum __attribute__((enum_extensibility(open), flag_enum)) _name : _type
typedef CF_ENUM(int, CFEnumWithAttr) {
CFEnumWithAttrFirst = ... | code_c | code | 172 | null |
/**
* spaint: VoxelMarkerFactory.h
* Copyright (c) Torr Vision Group, University of Oxford, 2016. All rights reserved.
*/
#ifndef H_SPAINT_VOXELMARKERFACTORY
#define H_SPAINT_VOXELMARKERFACTORY
#include <ORUtils/DeviceType.h>
#include "interface/VoxelMarker.h"
namespace spaint {
/**
* \brief This struct can be... | code_c | code | 207 | null |
//===-- include/flang/Evaluate/shape.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 | 2,557 | null |
<filename>src/utils/sock.h
#ifndef _BPF_SK_LOOKUP_MANAGER_UTILS_SOCK_H_
#define _BPF_SK_LOOKUP_MANAGER_UTILS_SOCK_H_
#include <unistd.h>
#include <sys/types.h>
int sock_pid_fd_from_inode(ino_t inode, pid_t *pid, int *fd);
#endif
| code_c | code | 66 | null |
#pragma once
#ifndef _OGREWRAPPER_H_
#define _OGREWRAPPER_H_
#include <memory>
/// \brief This class contains a function to initialise Ogre3d in one go.
class OgreWrapper
{
private:
Ogre::Root *root;
Ogre::RenderWindow *window;
private:
// These functions will prevent the user and the class to create... | code_c | code | 197 | null |
#ifndef __RcppSundialsDataType_h__
#define __RcppSundialsDataType_h__
#define ARMA_DONT_USE_CXX11
#include <Rcpp.h>
#include <vector>
#include <RcppArmadillo.h>
#include <array>
typedef std::array<std::vector<double>, 2> ode_in_Cpp_stl(const double& t, const std::vector<double>& states,
const std::vector... | code_c | code | 1,133 | null |
<filename>src/AudioStream.h
/* Teensyduino Core Library
* http://www.pjrc.com/teensy/
* Copyright (c) 2017 PJRC.COM, LLC.
*
* 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 restr... | code_c | code | 2,070 | null |
<reponame>ichi-rika/miniml
#ifndef _AST_H_
#define _AST_H_
#include <stdbool.h>
#include <stddef.h>
typedef struct ast Ast;
typedef enum ast_type {
e_unit, e_int, e_float, e_bool,
e_string, e_var,
e_block, e_seq,
e_funcall,
e_let, e_if,
e_tuple, e_list
} AstType;
struct ast {
AstType ty... | code_c | code | 645 | null |
<filename>cores/arduino/ard_sup/Arduino.h
/*
Copyright (c) 2019 SparkFun Electronics
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, including without limitation the rights
to... | code_c | code | 728 | null |
#include "ALF_dso_loader.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
# include <windows.h>
#else
# include <dlfcn.h> // DSO library
#endif
ALF_DSO_handl ALF_DSO_load_file(const char *file){
ALF_DSO_handl handler = NULL;
#ifdef _WIN32
handler = (ALF_DSO_handl)LoadLibrary(file);
... | code_c | code | 510 | null |
<reponame>King0987654/windows2000
/* ---File: memutil.c -----------------------------------------------------
*
* Description:
* Contains Control Panel memory allocation routines.
*
* This document contains confidential/proprietary information.
* Copyright (c) 1990-1994 Microsoft Corporation, All ... | code_c | code | 1,776 | null |
#ifndef _FUNCTIONS_
#define _FUNCTIONS_
#include "definitions.h"
#include "internal.h"
#include "nonce_generator.h"
void init_context(void);
void free_context(void);
context_t *get_context(void);
void phrase_to_seed(const char *phrase, uint8_t *out_seed32);
void seed_to_kdf(const uint8_t *seed, size_t n, uint8_t ... | code_c | code | 565 | null |
<gh_stars>10-100
#include "call_data.h"
#include "callname.h"
#include "condition.h"
#include "cons.h"
#include "control_object.h"
#include "control_operator.h"
#include "eval_execute.h"
#include "execute_object.h"
#include "function.h"
#include "hold.h"
#include "pointer.h"
#include "prompt_for.h"
#include "restart.h"... | code_c | code | 4,315 | null |
#ifndef __EVALUATOR_H__
#define __EVALUATOR_H__
#include <readline/readline.h>
#include <readline/history.h>
#include <iostream>
#include <cctype>
#include <set>
#include <cstdlib>
#include <uuid/uuid.h>
#include <sstream>
#include <exception>
#include <stdexcept>
#include <cstdio>
#include "../catalog/catalog.h"
#in... | code_c | code | 365 | null |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
/*
char * intToRoman(int num) {
//char result[20] = {'\0'};
char *result = (char *)malloc(20 * sizeof(char));
for (int i = 0; i < 20; i++) {
result[i] = '\0';
}
if (num >= 1000) {
int a = num/... | code_c | code | 806 | null |
#ifndef LIBFILE_SYSTEM_H
#define LIBFILE_SYSTEM_H
#include "lib/file_system.h"
#include "lib/directory.h"
#include "lib/file.h"
#include "lib/link.h"
#include "lib/fs_element.h"
#include "lib/counting_visitor.h"
#include "lib/size_counting_visitor.h"
#include "lib/file_search_visitor.h"
#include "lib/shell.h"
#include... | code_c | code | 130 | null |
#include "ecos.h"
#include "minunit.h"
/* Solves log(ax)-x for a = 0.3*/
idxint logax_x_n = 2;
idxint logax_x_m = 3;
idxint logax_x_p = 0;
idxint logax_x_l = 0;
idxint logax_x_ncones = 0;
idxint logax_x_nexc = 1;
pfloat logax_x_c[2] = {-1.0, 1.0};
idxint logax_x_Gjc[3] = {0,1,2};
idxint logax_x_Gir[2] = {0, 1};
pflo... | code_c | code | 384 | null |
<gh_stars>1-10
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "aiconfig.h"
#include "aiagent_service.h"
#ifdef CONFIG_UCLOUD_AI_ENGINE_ENABLE
#include "engine/ucloud_ai_engine.h"
#endif
#define TAG "AIAGENT... | code_c | code | 743 | null |
<reponame>Leo121/SAMD21-XPRO
/* ---------------------------------------------------------------------------- */
/* Atmel Microcontroller Software Support */
/* SAM Software Package License */
/* ---------------------------------------... | code_c | code | 3,663 | null |
//
// VerletSphereShape.h
// libraries/shared/src
//
// Created by <NAME> on 2014.06.16
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_VerletSphereShape_h
#defin... | code_c | code | 448 | null |
/* --- 100 characters -----------------------------------------------------------------------------
Created by: Laurie 2019/03/19
Sudoku puzzle solver.
Compile: gcc solver.c -o bin/solver -lm -m64 -O3
Usage: bin/solver
*/
#include <stdbool.h>
#include <stdio.h>
bool contains(unsigned char val, unsigned char list[9... | code_c | code | 1,592 | null |
<gh_stars>0
//
// NavigationStyleViewController.h
// YanAPP
//
// Created by Apple on 2018/5/17.
// Copyright © 2018年 Yanzheng. All rights reserved.
//
#import "BaseViewController.h"
@interface NavigationStyleViewController : BaseViewController
@end
| code_c | code | 73 | null |
<filename>src/libgeodecomp/io/test/unit/visitwritertest.h
#include <libgeodecomp/config.h>
#include <libgeodecomp/io/visitwriter.h>
using namespace LibGeoDecomp;
namespace LibGeoDecomp {
class VisItWriterTest : public CxxTest::TestSuite
{
public:
/**
* fixme:
* - basic rectilinear 2D grid test
* - basic rectilin... | code_c | code | 149 | null |
<reponame>opentable/objective-c
//
// PNBackgroundAppDelegate.h
// pubnub
//
// Created by <NAME> on 9/24/13.
// Copyright (c) 2013 PubNub Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
@interface PNBackgroundAppDelegate : UIResponder <UIApplicationDelegate, ... | code_c | code | 206 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.