text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#ifndef MPEG3IO_H
#define MPEG3IO_H
#include <stdio.h>
#include "mpeg3css.h"
#include "mpeg3private.inc"
/* Filesystem structure */
typedef struct
{
FILE *fd;
mpeg3_css_t *css; /* Encryption object */
char path[MPEG3_STRLEN];
/* Hypothetical position of file pointer */
long current_byte;
long total_by... | code_c | code | 526 | null |
#pragma once
#include "BaseContainerMenu.h"
class Container;
// Size : 32
class InventoryMenu : public BaseContainerMenu
{
public:
Container *container; // 28
public:
InventoryMenu(Container *);
virtual ~InventoryMenu();
virtual ItemInstance* getItems();
void setSlot(int, ItemInstance const&);
ItemInstance* g... | code_c | code | 96 | null |
#define _CRT_SECURE_NO_WARNINGS
#define MAX_NUM 5
#include <stdio.h>
int main()
{
int i;
int int_array[MAX_NUM];
for (i = 0; i < MAX_NUM; i++) {
scanf("%d", &int_array[i]);
}
printf("-----순차출력-----\n");
for (i = 0; i < MAX_NUM; i++) {
printf("[%d]번째 배열의 값 : %d\n", i+1,... | code_c | code | 207 | null |
<reponame>jarlela/netcdf-c
/*
Copyright 2007, UCAR/Unidata
See COPYRIGHT file for copying and redistribution conditions.
This program benchmarks the write and read of some radar files with
different chunking and compression parameters set.
This program only works on classic model netCDF files. That is,
gr... | code_c | code | 9,680 | null |
<filename>GBxASM/Private/Process.h
#ifndef GBXASM_PROCESS_H
#define GBXASM_PROCESS_H
#include "Context.h"
void ProcessData(GBxASM * ctx, char * args);
bool ProcessArgument(GBxASM * ctx, char * arg, ArgumentType type, long baseAddress);
bool ProcessInstruction(GBxASM * ctx, char * name, char * args);
bool ProcessFi... | code_c | code | 110 | null |
/* include ------------------------------------------------------------------ */
#include "eos_led.h"
#include "eventos.h"
#include "event_def.h"
#include <stdio.h>
#if (EOS_USE_SM_MODE != 0)
/* data structure ----------------------------------------------------------- */
typedef struct eos_led_tag {
eos_... | code_c | code | 597 | null |
<reponame>NY-Z/MaShangTong-Personal<gh_stars>0
//
// MAGroundOverlayView.h
// MapKit_static
//
// Created by <NAME> on 11/13/13.
// Copyright (c) 2013 songjian. All rights reserved.
//
#import "MAOverlayView.h"
#import "MAGroundOverlay.h"
/*!
@brief 此类是将MAGroundOverlay中的覆盖图片显示在地图上的view;
*/
@interface MAGroundOv... | code_c | code | 189 | null |
<gh_stars>1-10
/*
* File: execve/crts/libc/stdlib.c
*
* Descrição:
* Stdlib. Parte da lib C do kernel.
*
* Versão 1.0, 2015.
*/
#include <kernel.h>
static int randseed = 1234;
//Alimenta a função rand.
//void srand(unsigned int seed)
//{};
/* rand:
* Gera um número inteiro randômico. */
int rand... | code_c | code | 552 | null |
/* hw10_24 */
#include <stdio.h>
#include <stdlib.h>
#define ROW 4
#define COL 3
void search(int a[][COL],int b[]);
int main(void)
{
int a[ROW][COL]={{26,5,7},{10,3,47},{6,76,8},{40,4,32}};
int i,j,b[2];
printf("The elements in 2-dimensional array:\n");
for(i=0;i<ROW;i++)
{
for(j=0;j<COL;j++)
printf("%02d ",a... | code_c | code | 252 | null |
<gh_stars>1-10
/*
* Test the ANSI terminal
*
* 15/4/2000 <NAME>
*
* Compile with zcc +zxansi ansitest.c
*/
#include "stdio.h"
main()
{
int x;
/*
A stupid CSI escape code test
(normally no use uses CSI)
*/
printf ("If you can read this, CSI is not working.\n");
printf ("%c2J",155);
printf... | code_c | code | 304 | null |
<reponame>zhoukk/pms5003st
/*
* libhttp.h -- http library.
*
* Copyright (c) zhoukk <<EMAIL>>
*
* 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 l... | code_c | code | 7,848 | null |
<filename>PolyvVodSDKDemo/PolyvVodSDKDemo/Classes/Upload/DataBase/PLVUploadCompleteData.h
//
// PLVUploadCompleteData.h
// PolyvVodSDKDemo
//
// Created by MissYasiky on 2019/4/22.
// Copyright © 2019 POLYV. All rights reserved.
//
#import <Foundation/Foundation.h>
@class PLVUploadUncompleteData, PLVUploadModel;
... | code_c | code | 208 | null |
<gh_stars>1-10
// 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 UI_AURA_TEST_WINDOW_TEST_API_H_
#define UI_AURA_TEST_WINDOW_TEST_API_H_
#include "ui/aura/window.h"
namespace aura {
namespace te... | code_c | code | 225 | null |
/*
* Copyright © 2013 Red Hat, Inc.
*
* 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 use, copy, modify, merge, publish... | code_c | code | 7,415 | null |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | code_c | code | 1,537 | null |
#pragma once
#include <string>
#include <vector>
#include <cstdint>
namespace kernel{ namespace font{
/**
* @brief Extracts Unicode values sequese from glyph name
*/
void toUnicode(uint16_t glyphId, std::string const &glyphName, std::vector<uint32_t> &unicode);
}}
| code_c | code | 83 | null |
<reponame>zhch/como
/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 langua... | code_c | code | 977 | null |
#include "Mtx.h"
#include "LdpcDecoder.h"
namespace osuCrypto
{
enum class BPAlgo
{
LogBP = 0,
AltLogBP = 1,
MinSum = 2
};
enum class ListDecoder
{
Chase = 0 ,
OSD = 1
};
//extern std::vector<u8> minCW;
void LdpcDecode_impulse(const oc::... | code_c | code | 158 | null |
#ifndef RecoTracker_MkFitCore_src_MkBase_h
#define RecoTracker_MkFitCore_src_MkBase_h
#include "Matrix.h"
#include "PropagationMPlex.h"
namespace mkfit {
//==============================================================================
// MkBase
//===============================================================... | code_c | code | 1,021 | null |
// $Id: DllORB.h 77891 2007-04-03 18:30:33Z elliott_c $
#ifndef DLLORB_H
#define DLLORB_H
#include "ace/Service_Object.h"
#include "tao/ORB.h"
#include "tao/PortableServer/PortableServer.h"
#include "bug_2677_regression_export.h"
class bug_2677_regression_Export DllORB: public ACE_Service_Object
{
public:
DllORB (v... | code_c | code | 212 | 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 MEDIA_FILTERS_DECODER_STREAM_H_
#define MEDIA_FILTERS_DECODER_STREAM_H_
#include <list>
#include <memory>
#include <vector>
#include "base/callb... | code_c | code | 3,542 | null |
<reponame>tpesce/OCMockito
// OCMockito by <NAME>, http://qualitycoding.org/about/
// Copyright 2016 <NAME>. See LICENSE.txt
#import <Foundation/Foundation.h>
#import "MKTNonObjectArgumentMatching.h"
@class MKTInvocationContainer;
NS_ASSUME_NONNULL_BEGIN
/*!
* @abstract Methods to invoke on <code>given(methodCa... | code_c | code | 1,553 | null |
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | code_c | code | 13,668 | null |
<reponame>Rudranil-Sarkar/PAW-OS
#include "font_renderer.h"
#include "font.h"
u32 cursorX = 0;
u32 cursorY = 0;
void setCursor(u16 x, u16 y) {
cursorX = x;
cursorY = y;
}
int strlen(char* str)
{
int res = 0;
for (int i = 0; str[i] != '\0'; i++)
res++;
return res;
}
void print_char(const char chr, u8 c... | code_c | code | 590 | null |
/* $RoughId: md5init.c,v 1.2 2001/07/13 19:49:10 knu Exp $ */
/* $Id: md5init.c 25189 2009-10-02 12:04:37Z akr $ */
#include "digest.h"
#if defined(HAVE_OPENSSL_MD5_H)
#include "md5ossl.h"
#else
#include "md5.h"
#endif
static const rb_digest_metadata_t md5 = {
RUBY_DIGEST_API_VERSION,
MD5_DIGEST_LENGTH,
M... | code_c | code | 287 | null |
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "DFAXUIElementBridging-Header.h"
FOUNDATION_EXPORT double DFAXUIElementVersionNumber;
FOUNDATION_EXPORT const unsign... | code_c | code | 102 | null |
<gh_stars>0
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Ten... | code_c | code | 4,072 | null |
//
// SystemShareController.h
// Share
//
// Created by 高建飞 on 2018/5/29.
// Copyright © 2018年 wsl. All rights reserved.
//
#import <UIKit/UIKit.h>
#define AppGroupName @"group.pansoft.OpenPlanetGJF"
#define SystemShareKey @"shareKey"
#define AppKey @"OpenPlanet://"
@interface SystemShareController ... | code_c | code | 98 | null |
<reponame>ziyik/TizenRT-1<filename>os/net/bluetooth/bt_queue.c<gh_stars>100-1000
/****************************************************************************
* wireless/bluetooth/bt_queue.c
* Inter-thread buffer queue management
*
* Copyright (C) 2018 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*... | code_c | code | 1,889 | null |
/*PROG0108.c : Significado dos caracteres especiais
*AUTOR: <NAME>
*DATA: 14/10/2020
*/
#include <stdio.h>
void main()
{
printf("Programa qu apresenta os Caracteres Especiais\n\n");
printf("\\n\t-\t<ENTER>\n"); /* Saída: \n - <ENTER> */
printf("\\\\\t-\t\\\n"); /* Saída: \\ - \ */
printf("\\... | code_c | code | 124 | null |
/**
* @file cma_main.h
* @brief
* @author xxx
* @version 1.0
* @date 2020-08-11
*
* @copyright Copyright (c) Huawei Technologies Co., Ltd. 2011-2020. All rights reserved.
*
*/
#ifndef CMA_MAIN_H
#define CMA_MAIN_H
#include "common/config/cm_config.h"
#include "alarm/alarm.h"
#include "cm/elog.h"
#include ... | code_c | code | 2,212 | null |
#include "stdlib.h"
#include "stdio.h"
#include "/home/lillian/work/install_fpdebug/valgrind-3.7.0/fpdebug/fpdebug.h"
#include <gsl/gsl_sf.h>
int main(int argc, const char * argv[]) {
unsigned long int hexdouble;
double a;
sscanf(argv[1], "%lX", &hexdouble);
a = *(double*)(&hexdouble);
double result = gsl_sf_Si(a);
//p... | code_c | code | 113 | null |
#pragma once
#include "envoy/registry/registry.h"
#include "envoy/server/transport_socket_config.h"
namespace Envoy {
namespace Extensions {
namespace TransportSockets {
namespace RawBuffer {
/**
* Config registration for the raw buffer transport socket factory.
* @see TransportSocketConfigFactory.
*/
class RawBu... | code_c | code | 448 | null |
// Created by <NAME> 05/04/14.
// Modified by <NAME> on 30/01/15.
//UIKIT_EXTERN NSString * const kCommonSpinnerKeyTintColor; //default nil
//UIKIT_EXTERN NSString * const kCommonSpinnerKeySize; //default {40, 40}
//UIKIT_EXTERN NSString * const kCommonSpinnerKeyLineWidth; //default 1.5
typedef void(^Com... | code_c | code | 796 | null |
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (sinc_resampler.c).
* ---------------------------------------------------------------------------------------
*
* P... | code_c | code | 10,268 | null |
// SPDX-License-Identifier: GPL-2.0+
/*
* Driver for NEC VR4100 series General-purpose I/O Unit.
*
* Copyright (C) 2002 MontaVista Software Inc.
* Author: <NAME> <<EMAIL>>
* Copyright (C) 2003-2009 <NAME> <<EMAIL>>
*/
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/gpio/driver.h>
#include <linu... | code_c | code | 3,417 | null |
/**
* CANopen SYNC object protocol.
*
* @file CO_SYNC.h
* @ingroup CO_SYNC
* @author <NAME>
* @copyright 2004 - 2013 <NAME>
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <https://github.com/CANopenNode/CANopenNode>.
* For more information on CANope... | code_c | code | 2,376 | null |
/**************************************************************************//**
* @file main.c
* @version V1.00
* @brief Demonstrate the RTC spare_register read/write function and displays test result to the
* UART console
*
*
* @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
... | code_c | code | 1,130 | null |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee a... | code_c | code | 5,979 | null |
#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
#import "CTMediator+DYDemoLogin.h"
#import "DYDemoLogin.h"
#import "Target_DYDemoLogin.h"
#import "DYDemoLoginHeader.h"
#impo... | code_c | code | 160 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* auxiliary.c :+: :+: :+: ... | code_c | code | 833 | null |
<gh_stars>1-10
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>
*/
#ifndef IOBUFFER_H__
#define IOBUFFER_H__
#include <shogun/lib/config.h>
#include <shogun/lib/v_array.h>
#include <shogun/lib/common.h>
#include <sho... | code_c | code | 1,066 | null |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | code_c | code | 4,059 | null |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | code_c | code | 1,158 | null |
/*
** EPITECH PROJECT, 2021
** B-MUL-200-LYN-2-1-myrpg-david.gozlan
** File description:
** init_select_player_2
*/
#include "rpg.h"
void create_button_face(head_t *head, select_player_t *menu)
{
create_button(head, ALEX_BUTTON, &menu->button);
menu->alex_button = get_last_button(menu->button);
sfSprite_s... | code_c | code | 678 | null |
<gh_stars>0
/*
* MIT License
*
* Copyright (c) 2017-2018 Ingenia-CAT S.L.
*
* 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... | code_c | code | 5,526 | null |
<gh_stars>10-100
// stretchy_buffer.h - v1.03 - public domain - nothings.org/stb
// a vector<>-like dynamic array for C
//
// version history:
// 1.03 - compile as C++ maybe
// 1.02 - tweaks to syntax for no good reason
// 1.01 - added a "common uses" documentation section
// 1.0 - fixed bug in... | code_c | code | 3,275 | null |
//
// THConstants.h
// THOpenSDK
//
// Created by ThinkHome on 2019/12/5.
// Copyright © 2019 ThinkHome. All rights reserved.
// 所有错误码的地方
#import <Foundation/Foundation.h>
typedef NS_ENUM(int,THErrorCode){
TH_URL_SUCCESS = 10000, //操作成功
/**
* 账号
*/
TH_ACCOUNT_NU... | code_c | code | 2,016 | null |
<gh_stars>1-10
#ifndef MY_CPP_LIB_TEMPLATE_LIB_H
#define MY_CPP_LIB_TEMPLATE_LIB_H
namespace MyCppLibTemplate
{
int Add(int a, int b) noexcept;
} // namespace MyCppLibTemplate
#endif
| code_c | code | 54 | null |
<filename>src/avt/VisWindow/Interactors/Navigate2D.h
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
// ****************************************... | code_c | code | 599 | null |
<gh_stars>100-1000
// boost/uuid/sha1.hpp header file ----------------------------------------------//
// Copyright 2007 <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)
// Revision History
// 29 May 2... | code_c | code | 1,410 | null |
<gh_stars>1-10
#include "btree_gist.h"
#include "btree_utils_num.h"
#include "utils/date.h"
typedef struct
{
DateADT lower;
DateADT upper;
} dateKEY;
/*
** date ops
*/
PG_FUNCTION_INFO_V1(gbt_date_compress);
PG_FUNCTION_INFO_V1(gbt_date_union);
PG_FUNCTION_INFO_V1(gbt_date_picksplit);
PG_FUNCTION_INFO_V1(gbt_date... | code_c | code | 1,341 | null |
<filename>common/WhirlyGlobeLib/include/GlobeAnimateViewMomentum.h
/* AnimateViewMomentum.h
* WhirlyGlobeApp
*
* Created by <NAME> on 5/23/11.
* Copyright 2011-2021 mousebird consulting
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | code_c | code | 582 | null |
<reponame>georged-youi/folly
/*
* Copyright 2014-present Facebook, 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 re... | code_c | code | 1,925 | null |
/****************************************************************************
FileName [ util.h ]
PackageName [ util ]
Synopsis [ Declare utility function interfaces ]
Author [ Chung-Yang (<NAME> ]
Copyright [ Copyleft(c) 2007-present LaDs(III), GIEE, NTU, Taiwan ]
**************************... | code_c | code | 451 | null |
<filename>src/superlabor.h
/*
Dwarf Therapist
Copyright (c) 2010 <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 the rights
to use, copy, m... | code_c | code | 541 | null |
<filename>Modules/Wrappers/ApplicationEngine/include/otbWrapperOutputProcessXMLParameter.h
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... | code_c | code | 911 | null |
<reponame>ArrogantWombatics/openbsd-src
// Stack implementation -*- C++ -*-
// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as ... | code_c | code | 2,635 | null |
/* <NAME> and <NAME>
* 1/13/12
* University of Washington
*/
#include <stdlib.h>
#include <time.h>
#include "hash.h"
#include "ht_macros.h"
#define HT_EXPECTED_SIZE 1000000 //arbitrary...
/* Set HT_EXPECTED_SIZE to 10 to test bucket chaining: "oops" will hash
* to same value (5) as "yek3".
*/
typedef str... | code_c | code | 3,676 | null |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Generic driver for the OLPC Embedded Controller.
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (C) 2011-2012 One Laptop per Child Foundation.
*/
#include <linux/completion.h>
#include <linux/debugfs.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <li... | code_c | code | 2,262 | null |
<gh_stars>0
#pragma once
#include "basic/camera.h"
#include "basic/light.h"
#include "basic/material.h"
#include "basic/model.h"
#include <vrk/fence.h>
#include <vrk/semaphore.h>
#include <map>
class Engine;
class Scene : public std::enable_shared_from_this<Scene> {
public:
struct SceneShaderStructure {
align... | code_c | code | 506 | null |
<gh_stars>0
/*---------------------------------------------------------------------------*/
/**
* @file define.h
* @brief namespace & error code defined
* @attention
*/
/*---------------------------------------------------------------------------*/
#ifndef __ENGINE_DEFINE_H__
#define __ENGINE_DEFINE_H... | code_c | code | 308 | null |
#include "watchdog.h"
void prv_expiry_callback(SoftTimerId timer_id, void *context) {
WatchdogStorage *storage = (WatchdogStorage *)context;
storage->callback(storage->callback_context);
}
void watchdog_start(WatchdogStorage *storage, WatchdogTimeout timeout_ms,
WatchdogExpiryCallback callback... | code_c | code | 242 | null |
<reponame>rsn8887/mame2003-plus-libretro
#ifndef YMF262INTF_H
#define YMF262INTF_H
#define MAX_262 2
#ifndef YAC512_VOL
/* YMF262interface->mixing_levelXX macro */
#define YAC512_VOL(LVol,LPan,RVol,RPan) (MIXER(LVol,LPan)|(MIXER(RVol,RPan) << 16))
#endif
/* note: YMF262 outputs 4 (four) separate channels... | code_c | code | 376 | null |
#include "tinyspline.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
/********************************************************
* *
* System dependent configuration *
* *
****... | code_c | code | 7,418 | null |
<gh_stars>0
//
// LQLoopViewProtocol.h
// LQLoopView
//
// Created by 刘启强 on 2022/3/5.
//
@protocol LQLoopContentProtocol <NSObject>
@property (nonatomic, copy) NSString *reuseId;
@end
@protocol LQLoopContentCellProtocol <NSObject>
+ (NSString *) reuseIdentifier ;
- (void) fillWithData:(id<LQLoopContentProtoco... | code_c | code | 230 | null |
<reponame>flukso/lua-mosquitto
/*
lua-mosquitto.c - Lua bindings to libmosquitto
Copyright (c) 2014 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documen... | code_c | code | 9,576 | null |
#include "violin.h"
var head(var xs)
{
if (len(xs) == 0) {
perror("head on empty list");
return NULL;
} else {
return get(xs, $I(0));
}
}
var last(var xs)
{
if (len(xs) == 0) {
perror("last on empty list");
return NULL;
} else {
return get(xs, $I(le... | code_c | code | 224 | null |
/*
* ADC.c
*
* Created on: Jul 27, 2018
* Author: brianvuong
*/
#include <gpio.h>
#include <xdc/std.h>
#include <ti/drivers/GPIO.h>
#include "ADC.h"
#include <string.h>
/*
* Defines
*/
/*
* Global Variables
*/
ADC_s ADC;
/*
* Private Functions
*/
static void sample50HzSignals(void)
{
// Samp... | code_c | code | 889 | null |
<reponame>andyyangdong/vester<gh_stars>100-1000
//
// VSTypographySettings.h
// Vesper
//
// Created by <NAME> on 9/1/13.
// Copyright (c) 2013 Q Branch LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString *VSTypographySettingsDidChangeNotification;
@class VSTheme;
@interface VSTypog... | code_c | code | 318 | null |
/*
* 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 this list
* of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce t... | code_c | code | 17,558 | null |
<gh_stars>10-100
/* Tests that Valgrind coredump support works correctly by producing
a core dump analyzable by mdb. */
#include <stdio.h>
#include <sys/types.h>
__attribute__((noinline))
static void inner(void)
{
uint16_t cs, ds, ss, es, fs, gs;
/* Print segment registers as they cannot be set to arbitrar... | code_c | code | 405 | null |
// semantic_test/var_decl_init_pos.c
/*
* 2 - VARIABLE/CONST DECLARATION & INITIALIZATION (POSITIVE TEST)
*/
// 2.1 - value reassignment to non-const var is allowed,
// const can be declare if name wasn't taken yet.
// 2.2 - array decl with index greater than 0 can be perform successfully.
// 2.3 - assignment... | code_c | code | 430 | null |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 <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 the
* rights to use, copy,... | code_c | code | 572 | null |
// Copyright 2019 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
#include "iree/modules/hal/module.h"
#include <inttypes.h>
#include <stdbool.h>
#include <stddef... | code_c | code | 18,323 | null |
#pragma once
#include <CoreMinimal.h>
#include <Components/ActorComponent.h>
#include "RI/Topic.h"
#include "ROSIntegrationGameInstance.h"
#include "std_msgs/StdMsgsString.h"
#include "LookAtScanComponent.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class ROSINTEGRATION_API ULookAt... | code_c | code | 964 | null |
<gh_stars>1-10
/*
* Generic thunking code to convert data between host and target CPU
*
* Copyright (c) 2003 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ve... | code_c | code | 2,660 | null |
// Copyright (c) 2003-2008 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the GNU
// General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at y... | code_c | code | 1,476 | null |
#include <assert.h>
#include <stdio.h>
#include "simple_logger.h"
#include "gf3d_model.h"
#include "gf3d_commands.h"
#include "gf3d_vgraphics.h"
#include "gf3d_obj_load.h"
typedef struct
{
Model * model_list;
Uint32 max_models;
Uint32 chain_length; /**... | code_c | code | 2,273 | null |
<reponame>AlexRogalskiy/DevArtifacts<filename>master/csspp-all_1.0.16.0~xenial/csspp/csspp/include/csspp/unicode_range.h
#ifndef CSSPP_UNICODE_RANGE_H
#define CSSPP_UNICODE_RANGE_H
// CSS Preprocessor
// Copyright (C) 2015-2017 Made to Order Software Corp.
//
// This program is free software; you can redistribute it a... | code_c | code | 496 | null |
#ifndef _platform_h
#define _platform_h
#include <sys/types.h>
int xsendfile(int out_fd, int in_fd, off_t *offset, size_t count);
#endif
| code_c | code | 40 | null |
/*
* OpenBOR - http://www.LavaLit.com
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in OpenBOR root for details.
*
* Copyright (c) 2004 - 2011 OpenBOR Team
*/
#include "Instruction.h"
#include <stdlib.h>
#include <string.h>
void Instructi... | code_c | code | 1,854 | null |
//
// BOCeShare.h
// BoceGlobal
//
// Created by boce on 2019/10/10.
// Copyright © 2019 boce. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BOCeApplicationManager.h"
#import "WXApi.h"
#import "WeiboSDK.h"
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterface.h>
#impor... | code_c | code | 222 | null |
//
// Created by jon on 12/05/19.
//
#ifndef EVOWORLD_SNAKE_H
#define EVOWORLD_SNAKE_H
#include <vector>
#include "Math.h"
#include "Plant.h"
#include "Circle.h"
#include "Meat.h"
#include "Brain.h"
#include "SFML/Graphics.hpp"
class Snake {
public:
// First element is head
Snake(std::vector<Vec2> initSegmen... | code_c | code | 649 | null |
/*
* <console.c>
*
* Simple text console
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2013 <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 Foundat... | code_c | code | 376 | null |
<filename>es-core/src/InputConfig.h
#ifndef _INPUTCONFIG_H_
#define _INPUTCONFIG_H_
#include <map>
#include <vector>
#include <string>
#include <SDL.h>
#include <sstream>
#include "pugixml/src/pugixml.hpp"
#define DEVICE_KEYBOARD -1
enum InputType
{
TYPE_AXIS,
TYPE_BUTTON,
TYPE_HAT,
TYPE_KEY,
TYPE_COUNT
};
str... | code_c | code | 720 | null |
#ifndef TREE_CHECK
#error "This file should only be included by treecheck.c"
#endif
// TODO: big comment explaining what's going on
ROOT(program, module);
RULE(program,
IS_SCOPE // path -> PACKAGE
HAS_DATA // program_t
ZERO_OR_MORE(package),
TK_PROGRAM);
RULE(package,
IS_SCOPE // name -> entity
HAS_D... | code_c | code | 2,986 | null |
<gh_stars>0
/* Copyright © 2005-2019 <NAME> <<EMAIL>>
* SPDX-License-Identifier: MIT
*/
#include <stddef.h>
#include <curses.h>
#include "ui.h"
int dochttx_colors[8][8];
static void color_setup(void)
{
start_color();
short u = 1;
for (short i = 0; i < 8; i++)
for (short j = 0; j < 8; j++, u++) {
... | code_c | code | 196 | null |
<filename>MMShared/MMShared/UIKit/UIViewController+MMS.h<gh_stars>0
//
// UIViewController+MMS.h
// WiFiFoFum-Passwords
//
// Created by <NAME> on 29/09/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MMShared/MMSDefines.h>
#import <CoreData/CoreData.h>
NS_ASSUME_NONNULL... | code_c | code | 543 | null |
<reponame>tonybeltramelli/BlackOutGobelins
//
// TBConnectableElement.h
// BlackOutGobelins
//
// Created by <NAME> on 31/05/13.
//
//
#import <Foundation/Foundation.h>
@protocol TBConnectableElement <NSObject>
-(void) connectionOnRange:(BOOL)isOnRange;
-(CGPoint) getPosition;
-(CGSize) getSize;
@end
| code_c | code | 88 | null |
<reponame>ahoka/replay
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <assert.h>
#include "replay.h"
#include "curses.h"
#include "plugin.h"
#include "playback.h"
#include "in_mp3.h"
#include "out_ao.h"
int main(int, char**);
void usage(void);
void version(void);
void display... | code_c | code | 618 | null |
<gh_stars>0
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... | code_c | code | 468 | 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_
#define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_
#in... | code_c | code | 601 | null |
<filename>components/soc/esp32c3/include/soc/soc_caps.h
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
// The long term plan is to have a single soc_caps.h for each peripheral.
// During the refactoring and multichip support development process... | code_c | code | 4,242 | null |
<gh_stars>1000+
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CDistributionSpecSingleton.h
//
// @doc:
// Description of a singleton distribution;
// Can be used as required or derived property;
//--------------... | code_c | code | 980 | null |
<filename>chromium/ui/web_dialogs/web_dialog_web_contents_delegate.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 UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
#define UI_WEB_DIALOGS... | code_c | code | 932 | null |
<reponame>hendradarwin/ITK
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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... | code_c | code | 1,249 | null |
<reponame>Techdisc/Microchip
/*******************************************************************************
Main Source File
Company:
Microchip Technology Inc.
File Name:
main.c
Summary:
This file contains the "main" function for a project.
Description:
This file contains the "main" func... | code_c | code | 5,758 | null |
<filename>drivers/power/pm_checkstate.c
/****************************************************************************
* drivers/power/pm_checkstate.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additi... | code_c | code | 904 | null |
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. */
/* See cxx source for full Copyright notice */
/* $Id$ */
#ifndef AliAnalysisTaskDiHadCorrelHighPt_H
#define AliAnalysisTaskDiHadCorrelHighPt_H
#include "AliAnalysisTaskSE.h"
#include "AliEventPoolManager.h"
#include "AliEventCuts.h"
class ... | code_c | code | 9,258 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.