max_stars_repo_path stringlengths 3 173 | max_stars_repo_name stringlengths 5 75 | max_stars_count float64 0 191k | id stringlengths 5 7 | text stringlengths 19 518k | lang stringclasses 1
value |
|---|---|---|---|---|---|
gcc7/gcc_root/lib/gcc/x86_64-pc-linux-gnu/7.3.0/plugin/include/insn-codes.h | reedtlr/mediaInfo-python-lambda | 2 | 5765306 | /* Generated automatically by the program `gencodes'
from the machine description file `md'. */
#ifndef GCC_INSN_CODES_H
#define GCC_INSN_CODES_H
enum insn_code {
CODE_FOR_nothing = 0,
CODE_FOR_x86_fnstsw_1 = 47,
CODE_FOR_x86_sahf_1 = 48,
CODE_FOR_insvhi_1 = 108,
CODE_FOR_insvsi_1 = 109,
CODE_FOR_insv... | c |
assignment-6/my-solution/test/demo/expat-demo/namespace.c | helloShen/programming-paradigms | 0 | 7076302 | /*****************************************************************
* namespace.c
*
* Copyright 1999, <NAME>
* All rights reserved.
*
* This program is free software; you can distribute it and/or modify
* it under the same terms as Perl.
*
*================================================================
*
*... | c |
cookbook/05-Plugin/PluginReposity/SignPlugin/SignPlugin.h | Jie-Fang/trt-samples-for-hackathon-cn | 0 | 5564868 | /*
* Copyright (c) 2021, 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/LICENSE-2.0
*
* Unless requir... | c |
HttpServer/ServiceThread.h | wangweijun120/HttpServer | 1 | 7333541 | #pragma once
#ifndef SERVICE_THREAD_H
#define SERVICE_THREAD_H
#include "Thread.h"
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include "HttpRequest.h"
#include "HttpResponse.h"
#include "DefaultHttpProcessor.h"
#include "util.h"
#include "Server.h"
class ServiceThread : public Thread
{
public:
... | c |
matlab/src/cpp/arrow/matlab/mex/mex_functions.h | davisusanibar/arrow | 1 | 7825226 | // 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, Version 2.0 (the
// "License"); you may... | c |
dds.c | brianpopow/detex | 136 | 1951178 | /*
Copyright (c) 2015 <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 permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN... | c |
Plug-ins/Kerberos/CommonKClient/mac_kclient/des/enc_writ.c | mulberry-mail/mulberry4-client | 12 | 7985895 | /* crypto/des/enc_writ.c */
/* Copyright (C) 1995-1997 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
... | c |
src/secp256k1/include/secp256k1_recovery.h | yinchengtsinghua/RippleCPPChinese | 5 | 199750 | //此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 <EMAIL>
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
#ifndef _SECP256K1_RECOVERY_
# define _SECP256K1_RECOVERY_
# include "secp256k1.h"
# ifdef __cplusplus
extern "C" {
# endif
/*不透明的数据结构,包含已解析的... | c |
Code/HeapSort.h | TuanNguyen1999/Sorting-Algorithms | 0 | 2070224 | #pragma once
#include "BaseSorting.h"
class HeapSort :
public BaseSorting
{
public:
HeapSort(size_t n = 0) : BaseSorting(n) {}
HeapSort(const vector<int> &vec) : BaseSorting(vec) {}
HeapSort(const int* arr, size_t n) : BaseSorting(arr, n) {}
HeapSort(const string& file_name) : BaseSorting(file_name) {}
Heap... | c |
include/algorithms/mf_sgd/mf_sgd_batch.h | francktcheng/Harp-DAAL-Local | 2 | 6247539 | /* file: mf_sgd_batch.h */
/*******************************************************************************
* Copyright 2014-2016 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 Licens... | c |
PrivateFrameworks/ContactsAutocomplete.framework/CNAutocompleteCalendarServerResult.h | shaojiankui/iOS10-Runtime-Headers | 36 | 1421746 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ContactsAutocomplete.framework/ContactsAutocomplete
*/
@interface CNAutocompleteCalendarServerResult : CNAutocompleteResult
+ (unsigned long long)category;
@end | c |
examples/omp/benchmarks/bots/templates/template.c | tianyi93/hpxMP_mirror | 22 | 2152259 | /***********************************************************************
* template.c -- description
**********************************************************************/
#include "../../common/common.h"
#include "../../common/extern.h"
#include "../../common/main.h"
/***********************************************... | c |
dir600b_v2.03/kernels/rt305x/drivers/net/ehea/ehea_ethtool.c | ghsecuritylab/DIR600B2 | 1 | 7504461 | /*
* linux/drivers/net/ehea/ehea_ethtool.c
*
* eHEA ethernet device driver for IBM eServer System p
*
* (C) Copyright IBM Corp. 2006
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or modify
* it u... | c |
src/h/Framework/Managers/Graphics Manager/Toolkit/DirectX 12/CommandAllocator.h | MeepSplize/Uniquis-Framework | 0 | 239353 | #pragma once
#include <WRL.h>
#include "Flags.h"
#include "Device.h"
namespace Uniquis::DirectX12
{
class CommandAllocator
{
private:
Microsoft::WRL::ComPtr<ID3D12CommandAllocator> pCommandAllocator;
public:
CommandAllocator(const Device& device, const CommandAllocatorFlags& flags);
public:
~Command... | c |
src/graphics/display/drivers/intel-i915/dp-display.h | allansrc/fuchsia | 2 | 521280 | // Copyright 2017 The Fuchsia 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 SRC_GRAPHICS_DISPLAY_DRIVERS_INTEL_I915_DP_DISPLAY_H_
#define SRC_GRAPHICS_DISPLAY_DRIVERS_INTEL_I915_DP_DISPLAY_H_
#include <fuchsia/hardware/i2c... | c |
SomeUIKit/Classes/ViewController/WQSubTransitionViewController.h | wang68543/SomeUIKit | 0 | 2693862 | //
// WQSubTransitionViewController.h
// SomeUIKit
//
// Created by WangQiang on 2017/3/6.
// Copyright © 2017年 WangQiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WQSubTransitionViewController : UIViewController
@end | c |
core/Component/GuideViewController.h | ArminZhang/Core_IOS | 0 | 5490111 | //
// GuideViewController.h
// 初次使用时的新手指引界面组件
//
// Created by apple on 16/1/5.
// Copyright © 2016年 armin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GuideViewController : UIViewController
{
BOOL _animating;
UIScrollView *_pageScroll;
}
@property (nonatomic, assign) BOOL animating;
... | c |
src/cps/cps_receiver/cps_receiver.h | vaibhavkhanduja/CPS | 3 | 1223788 | /**
* 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, Version 2.0 (the
* "License"); you... | c |
Example/Pods/Target Support Files/Pods-EBUITools_Tests/Pods-EBUITools_Tests-umbrella.h | ezequielbrrt/EBUITools | 0 | 6147551 | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_EBUITools_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_EBUITools_TestsVersio... | c |
src/images/fighters/enemyOne/EnemyOne_42.h | filmote/Karateka_Pokitto | 1 | 3655738 | // Automatically generated file, do not edit.
#pragma once
const uint8_t EnemyOne_42[] = {
12, 8,
0xee,0xe6,0x6e,0xee,0xee,0xee,
0xee,0x66,0x66,0xee,0xee,0xee,
0xe6,0x66,0x66,0x6e,0xee,0xee,
0x66,0x66,0x66,0x6e,0xee,0xee,
0xee,0xcc,0x66,0x6e,0xee,0xee,
0xe6,0x66,0x66,0x6e,0xee,0xee,
0x66,0x66,0x66,0x6e,0xee,0xee,
0x6... | c |
test/features/mutex_test/mutex_recursive.c | nbeaver/mx-trunk | 0 | 7115790 | #include <stdio.h>
#include <stdlib.h>
#include "mx_osdef.h"
#include "mx_util.h"
#include "mx_mutex.h"
int
main( int argc, char *argv[] )
{
MX_MUTEX *mutex;
int i;
long status;
mx_status_type mx_status;
fprintf(stderr, "Recursive mutex test started.\n");
fprintf(stderr, "Creating the mutex.\n");
mx_status ... | c |
android/nv_drv/nvidia-uvm/uvm8_range_tree.c | yakuizhao/intel-vaapi-driver | 0 | 2167170 | /*******************************************************************************
Copyright (c) 2015-2019 NVIDIA Corporation
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 ... | c |
base/core/include/motis/core/common/date_time_util.h | julianharbarth/motis | 0 | 5152885 | #pragma once
#include <ctime>
#include <string>
namespace boost::gregorian {
class date;
} // namespace boost::gregorian
namespace motis {
std::time_t to_unix_time(int year, int month, int day);
int hhmm_to_min(int hhmm);
std::string format_unixtime(time_t t);
std::time_t to_unix_time(boost::gregorian::date const&... | c |
runtime/Log.h | 0xxd0/SxCocoa | 3 | 7071252 | //
// Log.h
//
// Created by <NAME> on 2016/12/1.
// Copyright (c) 2021 <NAME>. All rights reserved.
//
_Pragma("once")
#ifdef __OBJC__
#define NSLog(format, ...) \
do { \
fprintf(stderr, "<%s : %d> %s\n", \
[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String]... | c |
c/allergies/src/allergies.c | rootbeersoup/exercism | 0 | 380738 | #include "allergies.h"
bool is_allergic_to(allergen_t allergen, unsigned int score) {
return !!(score & (1 << allergen));
}
allergen_list_t get_allergens(unsigned int score) {
allergen_list_t list = {0, {0}};
for (int i = 0; i < ALLERGEN_COUNT; i++) {
if (is_allergic_to(i, score)) {
l... | c |
include/plotter.h | VedantParanjape/pid-plotter-component | 4 | 4252317 | #ifndef PLOTTER_H
#define PLOTTER_H
#include "json_handler.h"
#include "udp_handler.h"
#include "tcp_handler.h"
#include "transport.h"
void plotter();
#endif | c |
Carinfo.c | 9yon6yon-6yon/100DaysChallenge | 0 | 4660925 | #include <stdio.h>
struct car
{
int car_id;
char brand_name[15];
int model;
};
void print(struct car info[], int n)
{
int i;
FILE *otp = fopen("caroutput.txt", "a");
for (i = 0; i < n; i++)
{
fprintf(otp, "\nID : %d \n Name : %s \n Model : %d ", info[i].car_id, info[i].brand_name, i... | c |
libs/airmapd/include/airmap/outcome.h | uavosky/uavosky-qgroundcontrol | 12 | 2914774 | #ifndef AIRMAP_OUTCOME_H_
#define AIRMAP_OUTCOME_H_
#include <type_traits>
namespace airmap {
/// Outcome models a return value from a function XOR an error object
/// describing the error condition if no value can be returned.
template <typename Value, typename Error>
class Outcome {
public:
/// @cond
static_a... | c |
src/trusted/validator_arm/ncvalidate.h | eseidel/native_client_patches | 4 | 2217935 | /*
* Copyright 2009 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
* Copyright 2009, Google Inc.
*/
#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_NCVALIDATE_H
#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_AR... | c |
EasyBimehLanding/Models/ElectronicEquipmentInsurance.h | kmelodi/EasyBimehLanding_IOS | 0 | 2315930 | //
// EasyBimehLanding
//
// This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
//
#ifndef APIMATIC_ELECTRONICEQUIPMENTINSURANCE
#define APIMATIC_ELECTRONICEQUIPMENTINSURANCE
#import <Foundation/Foundation.h>
#import "JSONModel.h"
#import "APIHelper.h"
#import "Franchisee.h"
#import "De... | c |
test/3d/mpi/test_planes.h | cedar-framework/cedar | 9 | 6516872 | #ifndef CEDAR_TEST_3D_MPI_PLANES_H
#define CEDAR_TEST_3D_MPI_PLANES_H
#include <gtest/gtest.h>
#include <cedar/3d/gallery.h>
#include <cedar/3d/mpi/gallery.h>
#include <cedar/3d/util/topo.h>
#include <cedar/3d/types.h>
#include <cedar/3d/mpi/types.h>
#include <cedar/3d/kernel_manager.h>
#include <cedar/3d/mpi/kernel_m... | c |
Sources/Elastos/Packages/Apps/Dialer/inc/elastos/droid/dialer/calllog/CallLogQuery.h | jingcao80/Elastos | 7 | 2012454 | //=========================================================================
// 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 the License.
// You may obtain a copy of the License at
//
// ... | c |
Pods/TunnelKit/TunnelKit/Sources/Protocols/OpenVPN/PacketMacros.h | sundaleek/VPNCore | 0 | 7442133 | //
// PacketMacros.h
// TunnelKit
//
// Created by <NAME> on 7/11/18.
// Copyright (c) 2020 <NAME>. All rights reserved.
//
// https://github.com/passepartoutvpn
//
// This file is part of TunnelKit.
//
// TunnelKit is free software: you can redistribute it and/or modify
// it under the terms of the GNU General... | c |
gdb/rust-lang.h | greyblue9/binutils-gdb | 1 | 5150023 | /* Rust language support definitions for GDB, the GNU debugger.
Copyright (C) 2016-2021 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software F... | c |
System/Library/Frameworks/TVServices.framework/TVSMediaRemoteManager.h | lechium/tvOS10Headers | 4 | 6345472 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:05:54 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/TVServices.framework/TVServices
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*/... | c |
SSTableView/SSTableView/objc/SSColorButtonCell.h | scrumsnail/SSTableView | 2 | 2652089 | //
// SSColorButtonCell.h
// SSTableView
//
// Created by allthings_LuYD on 2016/12/29.
// Copyright © 2016年 scrum_snail. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SSCommonTableViewCell.h"
typedef NS_ENUM(NSInteger, ColorButtonCellStyle){
ColorButtonCellStyleRed,
ColorButtonCellStyleBlue,
};... | c |
VirtualBox-5.0.0/src/VBox/Additions/WINNT/SharedFolders/driver/vbsfhlp.h | egraba/vbox_openbsd | 1 | 7460830 | /* $Id: vbsfhlp.h $ */
/** @file
*
* VirtualBox Windows Guest Shared Folders
*
* File System Driver helpers
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistr... | c |
connectors/mysql/include/sqlpp20/mysql/direct_execution_result.h | rbock/sqlpp20 | 10 | 1486227 | #pragma once
/*
Copyright (c) 2017 - 2020, <NAME>
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
list of conditions an... | c |
third_party/mplayer/loader/win32.h | Narflex/sagetv | 292 | 2316440 | /*
* Modified for use with MPlayer, detailed changelog at
* http://svn.mplayerhq.hu/mplayer/trunk/
* $Id: win32.h,v 1.3 2007-04-10 19:33:29 Narflex Exp $
*/
#ifndef loader_win32_h
#define loader_win32_h
#include <time.h>
#include "wine/windef.h"
#include "wine/winbase.h"
#include "com.h"
#ifdef AVIFILE
#ifdef _... | c |
system_checks/check_pwrite_O_APPEND.c | chkn/logdb | 4 | 3107073 | /*
Tests that `pwrite` doesn't suffer from https://bugzilla.kernel.org/show_bug.cgi?id=43178
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
int
main(int argc, char *argv[])
{
int fd = open("test.dat", O_RDWR | O_CR... | c |
Source/dldelete.h | powervr-graphics/PowerVR-Series1 | 215 | 5347002 | /******************************************************************************
* Name : dldelete.h
* Title : Display List, "delete" routine
* Author : <NAME>
* Created : 1/06/1995
*
* Copyright : 1995-2022 Imagination Technologies (c)
* License : MIT
*
* Description : various SGL Routines for deleting a node... | c |
lib/cppunit/include/cppunit/TestCaller.h | d8euAI8sMs/qa-1-all | 0 | 1887158 | #ifndef CPPUNIT_TESTCALLER_H // -*- C++ -*-
#define CPPUNIT_TESTCALLER_H
#include <cppunit/Exception.h>
#include <cppunit/TestCase.h>
#include <cppunit/extensions/TestFixtureFactory.h>
#if CPPUNIT_USE_TYPEINFO_NAME
# include <cppunit/extensions/TypeInfoHelper.h>
#endif
CPPUNIT_NS_BEGIN
#if 0
/*! \brief Marker... | c |
example/lion.c | mark4th/uCurses | 4 | 4690675 | // -----------------------------------------------------------------------
#include <inttypes.h>
#include "../h/uCurses.h"
#include "demo.h"
screen_t *scr;
window_t *win;
// -----------------------------------------------------------------------
// this image is 100 dots wide and 120 dots high. the glyphs above ar... | c |
lib/fractoid/include/differential.h | tjira/fractoid | 0 | 1568152 | #pragma once
#include "algorithm.h"
class Fractoid::Algorithm::Complex::Differential : public Fractoid::Backend::Algorithm {
template<class C>
friend class Fractoid::Backend::Painter;
public:
explicit Differential(double angle = 45, double factor = 1.5);
private:
double angle, factor;
complex nor... | c |
SYSTEM/CM_PID.h | four-wei-worm/- | 1 | 2340356 | #ifndef __CM_PID_H
#define __CM_PID_H
#include <main.h>
void CM_PID(void);
#endif | c |
ixd/bkp_data_computing/poly_circle.h | IXDdev/IXD_engine | 0 | 464323 | #include <glut.h>
#include <math.h>
const int n = 40;
const GLfloat R = 0.5f;
const GLfloat Pi = 3.1415926536f;
void myDisplay(void)
{
int i;
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
for(i=0; i<n; ++i)
glVertex2f(R*cos(i*2*Pi/n), R*sin(i*2*Pi/n));
glEnd();
glFlush();
}
int ma... | c |
common/source/common/net/message/nodes/GenericDebugMsg.h | TomatoYoung/beegfs | 0 | 1787417 | #ifndef GENERICDEBUGMSG_H_
#define GENERICDEBUGMSG_H_
#include <common/net/message/SimpleStringMsg.h>
#include <common/Common.h>
/**
* This message is generic in the way that it simply takes a space-separated command string as input
* and the response is also just a string (which will just be printed to the consol... | c |
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c | fergy/aplit_linux-5 | 3 | 2775950 | /*
* int340x_thermal_zone.c
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the h... | c |
MingLiMoShi/MingLiMoShi/CommandLightOn.h | dengchaojie/sheJiMoShi | 1 | 4266829 | //
// CommandLightOn.h
// MingLiMoShi
//
// Created by hrt03 on 2019/8/26.
// Copyright © 2019 dengchaojie. All rights reserved.
//
#import "Command.h"
NS_ASSUME_NONNULL_BEGIN
@interface CommandLightOn : Command
@end
NS_ASSUME_NONNULL_END | c |
System/Library/PrivateFrameworks/MPUFoundation.framework/MPUDataSourceConfiguration.h | lechium/tvOS124Headers | 4 | 3122448 | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:46:56 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/MPUFoundation.framework/MPUFoundation
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ... | c |
gnuradio-3.7.13.4/gr-blocks/include/gnuradio/blocks/nlog10_ff.h | v1259397/cosmic-gnuradio | 1 | 4303501 | /* -*- c++ -*- */
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option... | c |
lib/include/internal/command_line_parser.h | jandom/hawktracer | 116 | 8332064 | #ifndef HAWKTRACER_INTERNAL_COMMAND_LINE_PARSER_H
#define HAWKTRACER_INTERNAL_COMMAND_LINE_PARSER_H
#include <hawktracer/macros.h>
#include <hawktracer/base_types.h>
HT_DECLS_BEGIN
void ht_command_line_parse_args(int argc, char** argv);
HT_DECLS_END
#endif /* HAWKTRACER_INTERNAL_COMMAND_LINE_PARSER_H */ | c |
External/geohash.c | alfwatt/FourCorners | 1 | 4731456 | /* This is a public domain geohash implementation written by <NAME>. */
#include <math.h>
#include <float.h>
#include <string.h>
#include "geohash.h"
/* BASE 32 encode table */
static char base32en[] = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'j', 'k', 'm', 'n', 'p', ... | c |
service/resource-container/include/RCSResourceContainer.h | jonghenhan/iotivity | 301 | 5049350 | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | c |
include/options/appl_options_handle.h | fboucher9/appl | 0 | 8157476 | /* See LICENSE for license details */
/*
Module: appl_options_handle.h
Description:
Command-line options.
*/
/* Reverse include guard */
enum guard_appl_options_handle_h
{
inc_appl_options_handle_h =
/* Header file dependencies */
inc_appl_status_h
};
#include <misc/appl_extern_c_begin.h>... | c |
C/Tester.h | mskec/WaveletTree | 0 | 2594979 | // Basic unit test functions for Wavelet tree building and querying.
// Created by dsisejkovic on 10.01.16..
//
#ifndef C_TESTER_H
#define C_TESTER_H
#include "Basic.h"
#include "WaveletTree.h"
void testBitVector();
void testTreeBuilding();
void testRanking();
void testAccessing();
void testSelecting();
void te... | c |
headers/glib-2.0/gio/gdbusobject.h | mwichmann/lsb-buildenv | 0 | 5489990 | #if (__LSB_VERSION__ >= 50 )
#ifndef _GLIB_2_0_GIO_GDBUSOBJECT_H_
#define _GLIB_2_0_GIO_GDBUSOBJECT_H_
#include <glib-2.0/glib.h>
#include <glib-2.0/glib-object.h>
#include <glib-2.0/gio/giotypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#define G_TYPE_DBUS_OBJECT (g_dbus_object_get_type())
#define G_DBUS_OBJECT(o)... | c |
Tests/GhsMulti/GhsMultiSrcGroups/sub/testOBJ.c | eWert-Online/esy-cmake | 107 | 2166494 | #include "testOBJ.h"
int funcOBJsub(void)
{
return func2a() + func3a() + func4a() + func5a() + func6a() + func7a();
} | c |
towr/include/towr/variables/euler_converter.h | eeoozz/towr | 592 | 707347 | /******************************************************************************
Copyright (c) 2018, <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain t... | c |
src/drivers/io.c | davidjxu21/pongOS | 0 | 1187970 | #include "io.h"
/*
* Read a byte from the specified port
*/
u_8t io_byte_read(u_16t port) {
u_8t result;
__asm__ volatile("in %%dx, %%al" : "=a"(result) : "d"(port));
return result;
}
/*
* Write a byte to the specified port
*/
void io_byte_write(u_16t port, u_8t data) {
__asm__ volatile("out %%al,... | c |
core_blas-qwrapper/qwrapper_dsyr2k.c | zhuangsc/Plasma-ompss1 | 0 | 5243057 | /**
*
* @file qwrapper_dsyr2k.c
*
* PLASMA core_blas quark wrapper
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author <NAME>
* @author <NAME>
* @author <NAME>
* @date 2010-11-15
* @generated d Tue Jan 7... | c |
src/tinyhtm/htm.h | Caltech-IPAC/libtinyhtm | 1 | 3024909 | // $Id: htm.h,v 20130613.99132738 2013/06/13 20:27:38 modell ipac $
/** \file
\brief Minimalistic functions and types for HTM indexing.
This software is based on work by <NAME>, <NAME>,
<NAME> at The Johns Hopkins University, and <NAME>,
Microsoft Research. See the following links for more infor... | c |
gf2p127-inl.h | srijs/hwsl2-core | 5 | 2594628 | #pragma once
#include <stdio.h>
#include <stdint.h>
#include <immintrin.h>
#include <smmintrin.h>
#include <wmmintrin.h>
typedef __m128i gf2p127_t;
#ifdef __AVX2__
typedef __m256i gf2p127x2_t;
#endif
static const inline
_Bool gf2p127_valid(const gf2p127_t a) {
return (_mm_extract_epi64(a, 1) & (UINT64_C(1) << 63))... | c |
iree/vm/shims_emitc.h | axmat/iree | 0 | 5699930 | // Copyright 2021 The IREE Authors
//
// Licensed 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
#ifndef IREE_VM_SHIMS_EMITC_H_
#define IREE_VM_SHIMS_EMITC_H_
#include "iree/base/attributes.h"
... | c |
HaiDeHui/HaiDeHui/Common/PhotoBrowser/HDPhotoBrowserContentView.h | andyysea/HDH | 0 | 3220648 | //
// HDPhotoBrowserContentView.h
// HaiDeHui
//
// Created by junde on 2017/6/6.
// Copyright © 2017年 junde. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HDPhotoBrowserContentView : UIView
/** 滚动视图 */
@property (nonatomic, weak) UIScrollView *scrollView;
/** 加载的需要缩放的图片 */
@property (nonatomic, wea... | c |
usr/libexec/PineBoard/PBBulletinService.h | lechium/tvOS145Headers | 5 | 4639818 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
#import "PBBulletinManagerObserver-Protocol.h"
#import "PBRemoteBulletinViewControllerDelegate-Protocol.h"
#import "PBSBulleti... | c |
drivers/tapdisk-metrics.h | GaryKirkpatrick/blktap | 30 | 5627174 | /*
* Copyright (c) 2016, Citrix Systems, Inc.
*
* 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 ... | c |
Example/Pods/Headers/Public/CLKitHelp/NSString+Formatter.h | TmacCL0523/test | 0 | 5620830 | /***
当前的文件名
NSString+Formatter.h
不带后缀的文件名
NSString+Formatter
┏┓ ┏┓+ +
┏┛┻━━━━━━━┛┻┓ + +
┃ ┃
┃ ━ ┃ ++ + + +
█████━█████ ┃+
┃ ┃ +
┃ ┻ ┃
┃ ┃ + +
┗━━┓ ┏━┛
... | c |
tests/test-xml.c | stevedonovan/llib | 28 | 2831364 | #include <stdio.h>
#include <llib/json.h>
#include <llib/xml.h>
const char *file = "test.xml";
int main(int argc, char**argv)
{
if (argv[1])
file = argv[1];
PValue v = xml_parse_file(file,true);
if (value_is_error(v)) {
fprintf(stderr,"error reading xml: %s\n",(char*)v);
return 1;... | c |
AppDelegate+DSAppDelegate.h | SincereD/DSCommon | 1 | 8184555 | //
// AppDelegate+DSAppDelegate.h
// DSCommon
//
// Created by Sincere on 16/8/25.
// Copyright © 2016年 QiujunTech. All rights reserved.
//
#import "AppDelegate.h"
@interface AppDelegate (DSAppDelegate)
@end | c |
src/xf-session.c | vanlink/xf-traffic-generator | 0 | 7201997 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <getopt.h>
#include <rte_common.h>
#include <rte_launch.h>
#include <rte_memory.h>
#include <rte_cycles.h>
#include <rte_eal.h>
#include <rte_lcore.h>
#include <rte_ethdev.h>
#include <rte_ring.h>
#include <rte_bitmap.h>
#include <... | c |
srcs/block/sl_block_check_same_dim.c | JonathanDUFOUR/so_long | 0 | 8100219 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sl_block_check_same_dim.c :+: :+: :+: ... | c |
include/CGLFace3D.h | colinw7/CGL | 0 | 7858967 | #ifndef CGL_FACE_3D_H
#define CGL_FACE_3D_H
#include <CGeomFace3D.h>
class CGLFace3D : public CGeomFace3D {
private:
CImagePtr stipple_;
public:
CGLFace3D() { }
void setStipple(const CImagePtr &stipple) {
stipple_ = stipple;
}
const CImagePtr &getStipple() const {
return stipple_;
}
};
#endi... | c |
content/public/common/speech_recognition_error_list.h | nagineni/chromium-crosswalk | 4 | 2450606 | // 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.
// This file intentionally does not have header guards, it's included
// inside a macro to generate enum values.
#ifndef DEFINE_SPEECH_RECOGNITION_ERROR
... | c |
z2/part1/jm/random/775638605.c | kozakusek/ipp-2020-testy | 1 | 4928488 | #include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "gamma.h"
#include <stdbool.h>
#include <string.h>
int main() {
/*
scenario: test_random_actions
uuid: 775638605
*/
/*
random actions, total chaos
*/
gamma_t* board = gamma_new(7, 5, 4, 1);
assert( board != NULL );
assert( gamm... | c |
thirdparty/ccan/ccan/aga/test/compile_ok.c | liftchampion/nativejson-benchmark | 0 | 452347 | #include "config.h"
#include <ccan/aga/aga.h>
#include <ccan/aga/aga.c>
typedef struct edge edge_t;
#ifndef EDGE1
#define EDGE1 edge_t
#endif
#ifndef EDGE2
#define EDGE2 edge_t
#endif
#ifndef EDGE3
#define EDGE3 edge_t
#endif
#ifndef EDGE4
#define EDGE4 edge_t
#endif
int main(void)
{
struct aga_graph g;
EDGE1 ... | c |
WBBlades/Tools/WBBladesCMD.h | zengql512/WBBlades | 1 | 3854726 | //
// WBBladesCMD.h
// WBBlades
//
// Created by 邓竹立 on 2019/12/25.
// Copyright © 2019 邓竹立. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Input file path, strip the symbol table.
*/
void stripFile(NSString *filePath);
/**
* Input file path, copy th... | c |
micwooftest/Libraries/libil2cpp/include/mono-runtime/il2cpp-mapping.h | woofie/woof-mic-recognition | 0 | 5947527 | #pragma once
#include "il2cpp-metadata.h"
struct MonoMethodInfo
{
int64_t hash;
int32_t invoker_index;
int32_t method_pointer_index;
};
struct MonoRGCTXDefinition
{
Il2CppRGCTXDataType type;
AssemblyIndex assemblyIndex;
int32_t token;
int32_t generic_parameter_index;
};
struct RuntimeGene... | c |
musl-1.1.18/src/unistd/sync.c | h7ga40/azure_iot_hub | 0 | 7129440 | #include <unistd.h>
#include "syscall.h"
void sync(void)
{
__syscall(SYS_sync);
} | c |
SNModuleKit/ModulePublic/Vender/PublicVenderHeader.h | snlo/SNModuleKit | 2 | 5435736 | //
// PublicVenderHeader.h
// SNMediatorKit
//
// Created by snlo on 2018/5/1.
// Copyright © 2018年 snlo. All rights reserved.
//
#ifndef PublicVenderHeader_h
#define PublicVenderHeader_h
#endif /* PublicVenderHeader_h */ | c |
packages/util/open-jtalk/soft/open_jtalk-1.11/njd_set_digit/njd_set_digit.c | tignear/bot | 16 | 4327419 | /* ----------------------------------------------------------------- */
/* The Japanese TTS System "Open JTalk" */
/* developed by HTS Working Group */
/* http://open-jtalk.sourceforge.net/ */
/* -----------------------------... | c |
src/lib/support/state/@hold/EclipseStateMachine.h | eirTony/EIRC2 | 0 | 6913903 | #ifndef ECLIPSESTATEMACHINE_H
#define ECLIPSESTATEMACHINE_H
#include "StateLib.h"
#include "AbstraceStateMachine.h"
#include <base/BasicId.h>
#include <base/BasicName.h>
//#include "MachineBuilder.h"
#include "StateMachineConfiguration.h"
#define ECLIPSE_MACHINESTATES(NPF) /* name, parent, flags */ \
NPF(Extant... | c |
src/type_num.c | chkoreff/Fexl | 32 | 3941367 | #include <stdint.h>
#include <str.h>
#include <value.h>
#include <basic.h>
#include <convert.h>
#include <format.h>
#include <memory.h>
#include <type_num.h>
#include <type_str.h>
static void num_free(double *p)
{
free_memory(p,sizeof(double));
}
value type_num(value f)
{
return type_atom(f);
}
value Qnum(dou... | c |
include/alieninvadersretro/MainWindowHeader.h | MatthewAlgo/AlienInvadersRetroBuild | 2 | 4946895 | #pragma once
#ifndef MAIN_WINDOW_HEADER_H
# define MAIN_WINDOW_HEADER_H
# pragma region INCLUDES
# include <SFML/Audio.hpp>
# include <SFML/Graphics.hpp>
# include <SFML/System.hpp>
# include <SFML/Window.hpp>
# include <functional>
# include <iostream>
# include <string>
# include <thread>
# include "Virt... | c |
components/viz/common/resources/release_callback.h | zealoussnow/chromium | 14,668 | 3944538 | // 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 COMPONENTS_VIZ_COMMON_RESOURCES_RELEASE_CALLBACK_H_
#define COMPONENTS_VIZ_COMMON_RESOURCES_RELEASE_CALLBACK_H_
#include "base/callback.h"
names... | c |
System/Library/PrivateFrameworks/Silex.framework/SXComponentController.h | lechium/iOS1351Headers | 2 | 8293435 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:16:45 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/Silex.f... | c |
Engine/Include/ComponentSlot.h | AdamSzentesiGrip/MiniECS | 0 | 940933 | #pragma once
namespace Mini
{
struct ComponentSlot
{
public:
bool IsOccupied;
int ComponentIndex;
};
} | c |
shell.h | tartunian/TivaNetworkTester | 0 | 3476210 | /*
* shell.h
*
* Created on: Nov 28, 2021
* Author: tartunian
*/
#ifndef SHELL_H_
#define SHELL_H_
#include <stdint.h>
typedef uint8_t (*command_func_t)(uint8_t, char**);
typedef struct command_t {
char* command_str;
command_func_t func;
char* command_desc;
} command_t;
extern command_t comm... | c |
Raven.CppClient/AdvancedSessionOperations.h | maximburyak/ravendb-cpp-client | 0 | 4304233 | #pragma once
#include "DocumentSessionImpl.h"
#include "DocumentsChanges.h"
#include "EagerSessionOperations.h"
namespace ravendb::client::documents::session
{
class AdvancedSessionOperations
{
public:
friend class DocumentSession;
private:
std::shared_ptr<DocumentSessionImpl> _session_impl;
explicit Advan... | c |
v2.1/src/Common/getpass.c | oldbitpusher/npasswd | 0 | 2699802 | /*
* Copyright 1998, The University of Texas at Austin ("U. T. Austin").
* All rights reserved.
*
* By using this software the USER indicates that he or she has read,
* understood and will comply with the following:
*
* U. T. Austin hereby grants USER permission to use, copy, modify, and
* distribute this softw... | c |
src/UIImageView.h | mulle-kybernetik-tv/MulleUIKit | 2 | 4171727 | //
// Copyright (c) 2020 Nat!, <NAME>
//
#ifdef __has_include
# if __has_include( "UIView.h")
# import "UIView.h"
# endif
#endif
#import "import.h"
@class UIImage;
@interface UIImageView : UIView
- (instancetype) initWithImage:(UIImage *) image;
@end | c |
System/Library/PrivateFrameworks/WorkflowUI.framework/WFGlyphPickerTabBar.h | zhangkn/iOS14Header | 1 | 1389874 | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 12:27:04 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/WorkflowUI.framework/WorkflowUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <... | c |
include/il2cpp/System/Threading/ThreadAbortException.h | martmists-gh/BDSP | 1 | 3327438 | #pragma once
#include "il2cpp.h"
void System_Threading_ThreadAbortException___ctor (System_Threading_ThreadAbortException_o* __this, const MethodInfo* method_info);
void System_Threading_ThreadAbortException___ctor (System_Threading_ThreadAbortException_o* __this, System_Runtime_Serialization_SerializationInfo_o* inf... | c |
src/backend/prioritize.h | Jelinek-J/INSPiRE | 2 | 7120232 | #pragma once
#include "features.h"
#include <map>
namespace inspire {
namespace backend {
class Prioritizer {
public:
virtual void prioritize(std::string input, std::string output) = 0;
};
class LinearPrioritizer : public Prioritizer {
private:
double relative;
double abso... | c |
sys/lpc11xx/gps/test/test.c | JJPowelly/u8glib | 1,209 | 6544422 | #include "pq.h"
#include <stdio.h>
#include <assert.h>
pq_t pq_obj;
void test_float(pq_t *pq)
{
gps_float_t f;
pq_Init(pq);
pq_AddStr(pq, "$123.456$");
pq_ResetParser(pq);
pq_GetNext(pq);
pq_GetFloat(pq, &f);
printf("%lf\n", (double)f);
}
void test_str(pq_t *pq)
{
pq_Init(pq);
pq_AddStr(pq, "$ABC$... | c |
Telegram-2.8/Telegraph/legacy/TL/TL/TLRPCphone_confirmCall.h | DZamataev/TelegramAppKit | 3 | 6129726 | #import <Foundation/Foundation.h>
#import "TLObject.h"
#import "TLMetaRpc.h"
@class TLInputPhoneCall;
@class TLPhoneConnection;
@interface TLRPCphone_confirmCall : TLMetaRpc
@property (nonatomic, retain) TLInputPhoneCall *n_id;
@property (nonatomic, retain) NSData *a_or_b;
- (Class)responseClass;
- (int)impliedRe... | c |
libs/signature/src/param_list.c | liutong-cnu/rocketmq-client-cpp | 314 | 1273607 | /*
* 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, Version 2.0
* (the "License"); you may ... | c |
c++Project/lib/Qt/5.8/gcc_64/include/Qt3DQuick/qt3dquickversion.h | mattlas/Computer-Vision | 1 | 4211462 | /* This file was generated by syncqt. */
#ifndef QT_QT3DQUICK_VERSION_H
#define QT_QT3DQUICK_VERSION_H
#define QT3DQUICK_VERSION_STR "5.8.0"
#define QT3DQUICK_VERSION 0x050800
#endif // QT_QT3DQUICK_VERSION_H | c |
src/cc/eval.h | sg777/chips | 5 | 5407664 | #ifndef CC_EVAL_H
#define CC_EVAL_H
#include <cryptoconditions.h>
#include "chain.h"
#include "streams.h"
#include "version.h"
#include "consensus/validation.h"
#include "primitives/transaction.h"
/*
* Eval codes
*
* Add to below macro to generate new code.
*
* If at some point a new interpretation model is in... | c |
rc4.h | sbourdeauducq/rt2571w | 4 | 3538675 | /*
Ralink RT2501 driver for Violet embedded platforms
(c) 2006 <NAME>
*/
#ifndef _RC4_H
#define _RC4_H_
struct rc4_context {
unsigned int x;
unsigned int y;
unsigned char state[256];
};
void rc4_init(struct rc4_context *rc4, const unsigned char *key, unsigned int length);
unsigned char rc4_byte(struct rc4_conte... | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.