text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>AnthonyM/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------------... | code_c | code | 431 | null |
/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Abstract:
This file contains Windows Kernel Mode implementations of the
QUIC Platform Interfaces.
Environment:
Windows kernel mode
--*/
#pragma once
#ifndef CXPLAT_PLATFORM_TYPE
#error "Must be included from quic_platf... | code_c | code | 7,762 | null |
<filename>AnalyticSDWebImage/SDWebImage/SDWebImageDefine.h
/*
* This file is part of the SDWebImage package.
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "SDWebImageCompat.h"
typedef void(^SDWebIm... | code_c | code | 3,979 | null |
/*!
* \file
* \brief Brushless3 Click example
*
* # Description
* This click has three-phase sensorless motor driver and
* with an external power supply it drives a brushless DC motor.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initialization driver enable's - I2C, ... | code_c | code | 909 | null |
<reponame>Zadagu/lilv
/*
Copyright 2007-2020 <NAME> <http://drobilla.net>
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.
THIS SOFTWARE IS PROVIDE... | code_c | code | 713 | null |
#ifndef HEADER_HNS_ADDR_H
#define HEADER_HNS_ADDR_H
#include <stdlib.h>
/* INET6_ADDRSTRLEN = 65 */
/* 65 + 5 + 1 + 2 = 73 - long enough for [ipv6]:port */
/* 73 + 53 + 1 = 127 - long enough for pubkey@[ipv6]:port */
#define HNS_MAX_HOST 127
void
hns_addr_init(struct hns_addr *addr);
int
hns_addr_from_string(
st... | code_c | code | 169 | null |
<filename>third_party/cypress/release/BT/libraries/drivers/bluetooth/BTE/Components/stack/include/btm_api.h
/*****************************************************************************
**
** Name: btm_api.h
**
** Description: This file contains the Bluetooth Manager (BTM) API function
** ... | code_c | code | 66,337 | null |
<gh_stars>1-10
/* zmodem.h */
#ifndef ZMODEM_H
#define ZMODEM_H
#define ZMODEM_BUFFER_SIZE 1024
#define ZMODEM_TIMEOUT 10 /* seconds */
void *zmodem_init(lfs_t *lfs, lfs_file_t *lfs_file);
void zmodem_reinit(void);
void zrx_byte(uint8_t byte);
void zmodem_timeout(void);
int zmodem_progress(void);
int zmodem_debug(vo... | code_c | code | 122 | null |
#pragma once
namespace RE
{
class IPostAnimationChannelUpdateFunctor
{
public:
inline static constexpr auto RTTI = RTTI_IPostAnimationChannelUpdateFunctor;
virtual ~IPostAnimationChannelUpdateFunctor(); // 00
// add
virtual void Unk_01(void); // 01
};
STATIC_ASSERT(sizeof(IPostAnimationChannelUpdateFu... | code_c | code | 96 | null |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... | code_c | code | 6,701 | null |
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
* Copyright (c) 2022, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGfx/Point.h>
namespace Web::SVG {
enum class PathInstructionType {
Move,
ClosePath,
Line,
Horizon... | code_c | code | 701 | null |
<reponame>televandalist/rcheevos<gh_stars>0
#include "rc_api_editor.h"
#include "rc_api_common.h"
#include "../rcheevos/rc_compat.h"
#include "../rhash/md5.h"
#include <stdlib.h>
#include <string.h>
/* --- Fetch Code Notes --- */
int rc_api_init_fetch_code_notes_request(rc_api_request_t* request, const rc_api_fetch... | code_c | code | 3,430 | null |
#ifndef icm_20948_registers_h
#define icm_20948_registers_h
// User Bank 0 Register Addresses
#define ICM_20948_REG_ADDR_WHO_AM_I 0x00
#define ICM_20948_REG_ADDR_USER_CTRL 0x03
#define ICM_20948_REG_ADDR_LP_CONFIG 0x05
#define ICM_20948_REG_ADDR_PWR_MGMT_1 0x... | code_c | code | 6,185 | null |
/************************************************************************************\
xml.h - HP SANE backend support for xml parsing
(c) 2008 Copyright HP Development Company, LP
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... | code_c | code | 543 | null |
#include <stdlib.h>
void main () {
int *p = (int *) malloc (sizeof (int));
int i;
for (i = 10; i < 100; i++)
p[i] = 0;
char *jp = (char *)p;
jp[42] = 0;
}
| code_c | code | 53 | null |
/* P7_HMMFILE: an HMM save file or database, open for reading.
*/
#ifndef p7HMMFILE_INCLUDED
#define p7HMMFILE_INCLUDED
#include "p7_config.h"
#include <stdio.h>
#ifdef HMMER_THREADS
#include <pthread.h>
#endif
#include "easel.h"
#include "esl_alphabet.h"
#include "esl_fileparser.h"
#include "esl_ssi.h"
#include... | code_c | code | 1,009 | null |
<filename>decompiled_scripts/am_doors.c
#region Local Var
var uLocal_0 = 0;
var uLocal_1 = 0;
int iLocal_2 = 0;
int iLocal_3 = 0;
int iLocal_4 = 0;
int iLocal_5 = 0;
int iLocal_6 = 0;
int iLocal_7 = 0;
int iLocal_8 = 0;
int iLocal_9 = 0;
int iLocal_10 = 0;
int iLocal_11 = 0;
var uLocal_12 = 0;... | code_c | code | 31,107 | null |
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... | code_c | code | 2,121 | null |
<gh_stars>0
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 <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 ... | code_c | code | 2,293 | null |
/* FINDXT- FIND EXIT FROM ROOM */
/*COPYRIGHT 1980, INFOCOM COMPUTERS AND COMMUNICATIONS, CAMBRIDGE MA. 02142*/
/* ALL RIGHTS RESERVED, COMMERCIAL USAGE STRICTLY PROHIBITED */
/* WRITTEN BY <NAME> */
#include <stdio.h>
#include "funcs.h"
#include "vars.h"
logical findxt_(dir, rm)
integer dir;
integer rm;
{
/* S... | code_c | code | 1,149 | null |
#ifndef ATPDEF_H
#define ATPDEF_H
#include "atpcore_global.h"
class ATPCORE_EXPORT AtpDef {
public:
enum mainWindowLoadingStatus {
allLoadedOk,
noDataBaseLoaded,
noCompanyLoaded,
noClientLoaded
};
};
#endif // ATPDEF_H
| code_c | code | 68 | null |
<reponame>vcc1235/Alete
//
// TableViewDataSource.h
// AFNetworking
//
// Created by alete on 2019/7/25.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TableViewDataSource <KeyType , ValueType>: NSObject
+(instancetype)initWithTableView:(UITableView *)tableview isGroup:(BOOL)group ;
-(v... | code_c | code | 196 | null |
// Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_
#define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_
#include <jni.h>
#include <memory>
#include <... | code_c | code | 1,497 | null |
<reponame>judajake/kwiver
/*ckwg +29
* Copyright 2016 by Kitware, 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:
*
* * Redistributions of source code must retain the above copyright ... | code_c | code | 1,003 | null |
<gh_stars>0
#ifndef SIMPLE_INDIRECT_BRANCH_TARGET_BUFFER_H
#define SIMPLE_INDIRECT_BRANCH_TARGET_BUFFER_H
#include <boost/scoped_array.hpp>
#include "simulator.h"
#include "branch_predictor.h"
class IndirectBranchTargetBuffer : BranchPredictor
{
public:
IndirectBranchTargetBuffer(UInt32 entries, UI... | code_c | code | 415 | null |
<filename>AnimatedDemo/AnimatedDemo/Model/Game.h<gh_stars>1-10
//
// Game.h
// AnimatedDemo
//
// Created by tigerAndBull on 2018/9/15.
// Copyright © 2018年 tigerAndBulll. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Game:NSObject
@property (nonatomic,strong) NSString *gameId;
@property ... | code_c | code | 194 | null |
<filename>Karakuri Library/Karakuri/chipmunk/cpHashSet.c
/* Copyright (c) 2007 <NAME>
*
* 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 ... | code_c | code | 1,474 | null |
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 <NAME>
* Copyright (C) 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*************************... | code_c | code | 766 | null |
<reponame>ielomariala/Hex-Game
/* integration/qng.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 <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; either version 3 of the ... | code_c | code | 1,988 | null |
/* $OpenBSD: db_memrw.c,v 1.1 2000/07/05 14:26:34 hugh Exp $ */
/* $NetBSD: db_memrw.c,v 1.6 1999/04/12 20:38:19 pk Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* document... | code_c | code | 767 | null |
/******************************************************************************
Factory: factory template
Copyright (C) 2012-2015 <NAME> <<EMAIL>>
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 Fre... | code_c | code | 2,369 | null |
<filename>cpp/src/io/orc/timezone.h
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | code_c | code | 365 | null |
<reponame>raptoravis/DiligentCore
/* Copyright 2019 Diligent Graphics LLC
*
* 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
*... | code_c | code | 2,741 | null |
<reponame>gaurangkumar/crosswalk
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_SYSAPPS_COMMON_EVENT_TARGET_H_
#define XWALK_SYSAPPS_COMMON_EVENT_TARGET_H_
#include <map>
#include <stri... | code_c | code | 567 | null |
//
// 2019-10-24, jjuiddong
// Visual Programming Editor View
//
#pragma once
class cEditorView : public framework::cDockWindow
{
public:
cEditorView(const string &name);
virtual ~cEditorView();
bool Init(graphic::cRenderer &renderer);
virtual void OnUpdate(const float deltaSeconds) override;
virtual void OnRen... | code_c | code | 143 | null |
<filename>include/table.h
#ifndef TABLE_H
#define TABLE_H
#include <fmt/core.h>
#include <map>
#include <set>
#include <stack>
#include <type.h>
#include <utility>
#include <vector>
using namespace std;
#define THETA 0
#define END 1
class V {
public:
V(char n) : type(Type::N) { this->value.n = n; }
V(Token t) : ... | code_c | code | 612 | null |
<reponame>akamah/php-yrmcds<filename>libyrmcds/lz4/examples/HCStreaming_ringBuffer.c
// LZ4 HC streaming API example : ring buffer
// Based on previous work from <NAME>
/**************************************
* Compiler Options
**************************************/
#ifdef _MSC_VER /* Visual Studio */
# define... | code_c | code | 1,728 | null |
<filename>pkg2zip_zrif.c
#include "pkg2zip_zrif.h"
#include "pkg2zip_utils.h"
#include "pkg2zip_sys.h"
#include "miniz_tdef.h"
#include "puff.h"
#include <assert.h>
#include <string.h>
#define ADLER32_MOD 65521
#define ZLIB_DEFLATE_METHOD 8
#define ZLIB_DICTIONARY_ID_ZRIF 0x627d1d5d
static const uint8_t zrif_dict[]... | code_c | code | 2,104 | null |
/*
* Copyright (C) 2011, 2012, 2013 Citrix Systems
* Copyright (C) 2014 <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 abo... | code_c | code | 8,070 | null |
#include "crypto_core_invsntrup1277.h"
#include "params.h"
#include <immintrin.h>
#define int8 int8_t
#define int16 int16_t
#define int32 int32_t
#define uint16 uint16_t
#define uint32 uint32_t
#define uint64 uint64_t
/* ----- masks */
/* return -1 if x!=0; else return 0 */
static int int16_nonzero_mask(int16 x) {... | code_c | code | 1,700 | null |
/***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
*
* Asynchronous I/O: streams API, used for formatted... | code_c | code | 18,233 | null |
// SPDX-License-Identifier: GPL-2.0-or-later
/* AFS Volume Location Service client
*
* Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
*/
#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/sched.h>
#include "afs_fs.h"
#include "internal.h"
/*
* Deliver reply data t... | code_c | code | 4,698 | null |
/******************************************************************************
Copyright 2013 Royal Caliber LLC. (http://www.royal-caliber.com)
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
... | code_c | code | 1,911 | null |
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/tchar.h>
#include <winpr/environment.h>
int TestEnvironmentMergeEnvironmentStrings(int argc, char* argv[])
{
#ifndef _WIN32
TCHAR* p;
size_t length;
LPTCH lpszEnvironmentBlock;
LPTCH lpsz2Merge = "SHELL=123\0test=1\0test1=2\0DISPLAY=:77\0\0";
LPTCH lpszMe... | code_c | code | 222 | null |
/*
* Microsoft Video-1 Decoder
* Copyright (c) 2003 The FFmpeg Project
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | code_c | code | 3,367 | null |
<reponame>becominginsane/ledger-zcash
/*******************************************************************************
* (c) 2021 Zondax GmbH
*
* 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... | code_c | code | 3,977 | null |
<reponame>jameschip/Zettelkasten<filename>zettelkasten.h
#ifndef ZETTELKASTEN_H
#define ZETTELKASTEN_H
#include <ncurses.h>
enum nav_states {
SCREEN_EXIT,
SCREEN_DISPLAY,
SCREEN_LIST,
SCREEN_ADD,
SCREEN_CLEAR_FILTER,
SCREEN_FILTER_INPUT,
SCREEN_CREATE_LINK,
SCREEN_LINK_CONTEXT,
SCR... | code_c | code | 276 | null |
#ifndef _ROS_sound_play_SoundRequestGoal_h
#define _ROS_sound_play_SoundRequestGoal_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "sound_play/SoundRequest.h"
namespace sound_play
{
class SoundRequestGoal : public ros::Msg
{
public:
sound_play::SoundRequest ... | code_c | code | 259 | null |
//<NAME>
////jccyb4
////12388312
////lab6
////lab code:
////10/15/14
#include"list.h"
node* create_list(char*file);
int main(int argc, char*argv[])
{
if(argc>2||argc<=1)
{
printf("Invalid number of arguments");
return 0;
}
node *head = NULL;
head=create_list(argv[1]);
print_list(head);
free_list(head);
}
... | code_c | code | 144 | null |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | code_c | code | 667 | null |
<reponame>hlzz/dotfiles
/****************************************************************************
* VCGLib o o *
* Visual and Computer Graphics Library o o *
* ... | code_c | code | 4,235 | null |
<filename>JGVideoImageDemo/Pods/Headers/Public/JGVideoImage/JGImageConverter.h
//
// JGImageConverter.h
// JGVideoImage
//
// Created by mtgao on 2019/1/17.
//
#import <Foundation/Foundation.h>
#import <CoreImage/CoreImage.h>
NS_ASSUME_NONNULL_BEGIN
@interface JGImageConverter : NSObject
+ (UIImage *)imageFromPix... | code_c | code | 110 | null |
<gh_stars>1-10
/* Copyright 1990-2006, Jsoftware Inc. All rights reserved. */
/* Licensed use only. Any other use is in violation of copyright. */
/* */
/* Verbs: Grade -- monad /:@/:"r on dense arguments ... | code_c | code | 1,335 | null |
<filename>app/archive/commsdsl2old/src/ListField.h
//
// Copyright 2018 - 2021 (C). <NAME>. 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.apach... | code_c | code | 1,230 | null |
/* Copyright 2016 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 | 924 | null |
/**
* @file Utils.h
* @brief Utils class for iphito
* @author <NAME>
* @version 0.1.0
* @date 2018-10-16
*/
#ifndef UTILS_H
#define UTILS_H
#include <stdexcept>
#include <string>
#include <vector>
namespace iphito::utils {
class Utils {
public:
Utils() = delete;
~Utils() = delete;
static const uns... | code_c | code | 257 | null |
<reponame>jjhoo/otp<gh_stars>1000+
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2020. 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.... | code_c | code | 16,471 | null |
#pragma once
#include "syntax.h"
#include "textbuffer.h"
#include "textline.h"
#include <vector>
enum SyntaxHighlighterType {
//! Implements no methods
PGSyntaxHighlighterNone,
//! Basic syntax highlighter, only provides "IncrementalParseLine" method
PGSyntaxHighlighterIncremental,
};
struct PGParseError {
lng... | code_c | code | 468 | null |
<filename>content/renderer/media/capture_video_decoder.h
// Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
#define CONTENT_RENDERER_MEDIA_CAPTUR... | code_c | code | 1,141 | null |
<reponame>rubedos/l4t_R32.5.1_viper<gh_stars>10-100
/*
* max77693.c - Regulator driver for the Maxim 77693 and 77843
*
* Copyright (C) 2013-2015 Samsung Electronics
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gene... | code_c | code | 2,685 | null |
<reponame>ejohnso49/tinyusb
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME>, 2019 <NAME> for Adafruit Industries
* Copyright (c) 2019 <NAME> (tinyusb.org)
* Additions Copyright (c) 2020, Espressif Systems (Shanghai) Co. Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... | code_c | code | 8,171 | null |
/*
Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version... | code_c | code | 2,907 | null |
//******************************************************************
//
// Copyright 2017 Intel OpenSource Technology Center All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep... | code_c | code | 5,263 | null |
<filename>opencl/oclkernels.h
// 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 writing, soft... | code_c | code | 9,816 | null |
<filename>src/lib/kadm5/srv/adb_free.c
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
* $Header$
*
* $Log$
* Revision 1.3 2000/06/01 02:02:03 tritan
* Check for existance of <memory.h>.
* (from <NAME> <<EMAIL>>)
*
* Revision 1.2 1996/10/18 19:45:49 bjaspan
* * svr_misc_free.c,... | code_c | code | 638 | null |
//
// UIButton+RG.h
// RG_Viwe
//
// Created by koogfook on 17/5/13.
// Copyright © 2017年 zhubaoshang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (RG)
/**
* 默认的背景图片
*
*/
-(UIButton* (^)(NSString *imageName))rg_NormalBackImageName;
/**
* 选择的背景图片
*
*/
-(UIButton* (^)(NSString *imag... | code_c | code | 398 | null |
/*
* Copyright 2006, <NAME>, IBM Corporation.
* Copyright 2006-2007, <NAME>, IBM Corporation.
*
* 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; version 2 of the
* License.
*
*/
#includ... | code_c | code | 1,511 | null |
<reponame>trlafleur/RHF0M062-RHF0M0E5-LoRaWan-Examples-TTN
/*
*
*
*
*/
#ifndef Sensor_Moisture_h
#define Sensor_Moisture_h
#include "config.h"
void Sensor_init (void);
bool Sensor_send (unsigned char *data, uint32_t time);
void Sensor_sleep (void);
void Sensor_wakeup (void)... | code_c | code | 114 | null |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSigmoidImageFilter.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.tx... | code_c | code | 1,611 | null |
<reponame>Logicalis/eugenio-devices
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "pnp_mqtt_message.h"
#include <iot_sample_common.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <azure/core/az_result.h>
#include <azure/core/az_span.h>
... | code_c | code | 417 | null |
/*
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-APACHE for a copy of the license.
*/
#ifndef TIMESCALEDB_FUNC_CACHE_H
#define TIMESCALEDB_FUNC_CACHE_H
#include <postgres.h>
#include <nodes/primnodes.h>
#include <nod... | code_c | code | 273 | null |
static int
CVE_2012_1594_VULN_dissect_rsn_ie(proto_tree * tree, tvbuff_t * tvb, int offset, guint32 tag_len)
{
proto_item *rsn_gcs_item, *rsn_pcs_item, *rsn_akms_item, *rsn_cap_item, *rsn_pmkid_item, *rsn_gmcs_item;
proto_item *rsn_sub_pcs_item, *rsn_sub_akms_item;
proto_tree *rsn_gcs_tree, *rsn_pcs_tree, *rsn_ak... | code_c | code | 1,616 | null |
<reponame>abhishekgahlot/hiphop-php<gh_stars>1-10
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, ... | code_c | code | 729 | null |
<filename>onnxruntime/core/session/inference_session.h<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <string>
#include <unordered_map>
#include "core/common/common.h"
#include "core/common/logging/logging.h"
#include "core/common/p... | code_c | code | 8,774 | null |
<filename>src/kernel/bvh/bvh_shadow_all.h<gh_stars>0
/*
* Adapted from code Copyright 2009-2010 NVIDIA Corporation,
* and code copyright 2009-2012 Intel Corporation
*
* Modifications Copyright 2011-2013, Blender Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... | code_c | code | 3,666 | null |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "naomi/video.h"
#include "naomi/system.h"
#include "naomi/dimmcomms.h"
#include "naomi/eeprom.h"
#include "naomi/maple.h"
#include "naomi/console.h"
#include "naomi/interrupt.h"
#include "naomi/thread.h"
#include... | code_c | code | 9,823 | null |
<filename>libpdbg/sbefifo.c
/* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | code_c | code | 6,150 | null |
<reponame>OpenMPDK/SMDK<gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-only
/*
*
* Copyright IBM Corp. 2007
* Copyright 2011 Freescale Semiconductor, Inc.
*
* Authors: <NAME> <<EMAIL>>
*/
#include <linux/jiffies.h>
#include <linux/hrtimer.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux... | code_c | code | 2,627 | null |
//main loop of Ksana Minimal Virtual Machine
//release under GPL 3.0
//yap 2007.12.20
#include "vm.h"
#include "lesson.h"
int mytextout (KsanaVm *vm, char *toprint)
{
printf("%s",toprint);
}
void main()
{
char cmd [1024]; // buffer to hold input command
KsanaVm *vm; // the instance o... | code_c | code | 266 | null |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <errno.h>
#include <fcntl.h>
#ifndef FALLOC_FL_COLLAPSE_RANGE
#define FALLOC_FL_COLLAPSE_RANGE 0x08
... | code_c | code | 1,076 | null |
/* @(#)e_jn.c 1.4 95/01/18 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided th... | code_c | code | 2,083 | null |
<filename>util/amisc/aslod.c
/*
* Simple tool to produce a memory dump for an absolute
* ack.out file. Suitable for noddy operating systems
* like DOS, CP/M, Arthur, etc. Also useful for RAM
* images (but *not* ROM images, note) and, more
* importantly, general test purposes.
*
* Mostly pinched from the ARM cv ... | code_c | code | 2,093 | null |
<reponame>dark-w/sokoban<gh_stars>0
/*
** $Id: lfunc.h $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
#ifndef lfunc_h
#define lfunc_h
#include "lobject.h"
#define sizeCclosure(n) \
(cast_int(offsetof(CClosu... | code_c | code | 522 | null |
<gh_stars>0
/* ------------------------------------------------------------ */
/*
HTTrack Website Copier, Offline Browser for Windows and Unix
Copyright (C) 1998-2015 <NAME> and other contributors
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 | 5,709 | null |
#ifndef _EFX_TKECHAPPYTEST_H
#define _EFX_TKECHAPPYTEST_H
/*
__vt__Q23efx13TKechappyTest:
.4byte 0
.4byte 0
.4byte "create__Q23efx29TSyncGroup3<Q23efx9TChaseMtx>FPQ23efx3Arg"
.4byte "forceKill__Q23efx29TSyncGroup3<Q23efx9TChaseMtx>Fv"
.4byte "fade__Q23efx29TSyncGroup3<Q23efx9TChaseMtx>Fv"
.... | code_c | code | 355 | null |
/*
* @Author: Frumig
* @Date: 2020-02-11 21:10:23
* @LastEditTime: 2020-03-17 22:23:44
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \NixieDevice-master\App\inc\display.h
*/
#ifndef DISPLAY_H
#define DISPLAY_H
#include <public.h>
typedef enum Nixie_n
{
Nixie_0 = 0,... | code_c | code | 161 | null |
//
// CGXPagingListContainerView.h
// CGXPagingView
//
// Created by CGX on 2018/8/27.
// Copyright © 2018年 CGX. All rights reserved.
//
#import <UIKit/UIKit.h>
@class CGXPagerListMainTableView;
@class CGXPagerListContainerView;
@class CGXPagerListContainerCollectionView;
@protocol CGXPagerListContainerCollectio... | code_c | code | 545 | null |
<gh_stars>1000+
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "NUIWindow.h"
#include <d3d11.h>
#include <mutex>
class NUIWindowManager
{
priv... | code_c | code | 343 | null |
//
// YZPBaseModel.h
// TheProject
//
// Created by 袁志浦 on 16/5/28.
// Copyright © 2017年 北京惠发科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MJExtension/MJExtension.h>
@interface YZPBaseModel : NSObject
@end
| code_c | code | 69 | null |
#ifndef _USERS_SHUHEI_DESKTOP_H2O_2_0_2_MRUBY_HOST_MRBGEMS_MRUBY_FILE_STAT_EXTCONF_H
#define _USERS_SHUHEI_DESKTOP_H2O_2_0_2_MRUBY_HOST_MRBGEMS_MRUBY_FILE_STAT_EXTCONF_H
#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
#define HAVE_ST_ST_BIRTHTIMESPEC 1
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
#define HAVE_ST_ST_BLKSIZE 1
#def... | code_c | code | 124 | null |
<gh_stars>10-100
// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file BiDir_Adapter.h
*
* BiDir_Adapter.h,v 1.3 2001/04/04 13:41:30 bala Exp
*
* @author <NAME> <<EMAIL>>
*/
//=============================... | code_c | code | 428 | null |
//
// Created by <NAME> aka Gelldur on 14.03.16.
//
#pragma once
#include <vector>
#include <string>
#include <sstream>
#include <Poco/URI.h>
class UrlBuilder
{
public:
UrlBuilder();
UrlBuilder(const std::string& url);
UrlBuilder& appendUrl(const std::string& string);
UrlBuilder& appendUrl(const long long val... | code_c | code | 371 | null |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | code_c | code | 4,021 | null |
<gh_stars>0
#pragma once
#include "CoreMinimal.h"
#include "StatusEffectItem.h"
#include "RandRange.h"
#include "TemperatureStatusEffectItem.generated.h"
UCLASS(Blueprintable, EditInlineNew)
class UTemperatureStatusEffectItem : public UStatusEffectItem {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintR... | code_c | code | 134 | null |
<filename>lsp_shiloh/common/init/include/SysInit.h
/*
*
* ============================================================================
* Copyright (c) 2006-2011 Marvell International, Ltd. All Rights Reserved.
*
* Marvell Confidential
* ===================================================... | code_c | code | 18,715 | null |
#ifndef ALIANACHARGEDPARTICLES_H
#define ALIANACHARGEDPARTICLES_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//_________________________________________________________________________
/// \class AliAnaChargedParticles
/// \ingroup Cal... | code_c | code | 3,626 | null |
<filename>src/nc_message.c
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, 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
*
*... | code_c | code | 6,503 | null |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* bitmap.h: Copyright (C) <NAME> (<EMAIL>) 2003
*
* additions: Copyright (C) 2003-2004, <NAME>, SteelEye Technology, Inc.
*/
#ifndef BITMAP_H
#define BITMAP_H 1
#define BITMAP_MAJOR_LO 3
/* version 4 insists the bitmap is in little-endian order
* with version 3, it is hos... | code_c | code | 2,920 | null |
//
// Copyright (c) 2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef __POLUA_CALL__
#define __POLUA_CALL__
#include <string>
#include "Core.h"
extern "C"
{
#include "lua.h"... | code_c | code | 458 | null |
// Copyright 2018 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 CHROME_BROWSER_ANDROID_COMPONENT_UPDATER_BACKGROUND_TASK_UPDATE_SCHEDULER_H_
#define CHROME_BROWSER_ANDROID_COMPONENT_UPDATER_BACKGROUND_TASK_UPDA... | code_c | code | 508 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.