text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
//-----------------------------------------------------------------------------
//
// ImageLib Sources
// Copyright (C) 2000-2002 by <NAME>
// Last modified: 05/25/2001 <--Y2K Compliant! =]
//
// Filename: src-IL/src/il_internal.c
//
// Description: Internal stuff for DevIL
//
//------------------------------... | code_c | code | 2,024 | null |
<gh_stars>0
#pragma once
/*
Casual Game Engine (dnyCasualGameEngine) developed by <NAME>
(C) 2021 - 2022 by <NAME>
Contact: dbrendel1988<at>gmail<dot>com
GitHub: https://github.com/danielbrendel/
Released under the MIT license
*/
#include "shared.h"
#include "renderer.h"
#include "sound.h"
#include "window.h"... | code_c | code | 446 | null |
<reponame>screwylightbulb/europa<filename>Descending Europa/Temp/StagingArea/Data/il2cppOutput/Mono_Security_Mono_Security_ASN1Convert1533901092MethodDeclarations.h<gh_stars>0
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include... | code_c | code | 532 | null |
/* table.h: Interface for a dictionary
*
* $Id$
* Copyright (c) 2001-2020 Ravenbrook Limited. See end of file for license.
*
* A table is a hashed mapping from keys to values.
*/
#ifndef table_h
#define table_h
#include "mpmtypes.h"
#include <stddef.h>
typedef struct TableStruct *Table;
typedef Word TableKe... | code_c | code | 1,006 | null |
/* ----------------------------------------------------------------------
*
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with... | code_c | code | 14,384 | null |
#ifndef __StEEmcTimingMaker_h__
#define __StEEmcTimingMaker_h__
#include "StMaker.h"
#include <map>
#include "TString.h"
#include "StEEmcUtil/EEfeeRaw/EEdims.h"
#include <vector>
class TH1F;
class TTree;
class StEEmcTimingMaker : public StMaker
{
public:
StEEmcTimingMaker(const Char_t *name="timing");
~StEEmc... | code_c | code | 624 | null |
#include "mnemon.h"
#include <stdio.h>
int main(int argc, char *argv[]) {
puts(mnemon_lookup_32(0xBAADF00D));
}
| code_c | code | 33 | null |
<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#define BOARD_SIZE_SQRT 3
#define BOARD_SIZE BOARD_SIZE_SQRT * BOARD_SIZE_SQRT
int check_column(const int *board);
int check_row(const int *board);
int check_diagonal(const int *board);
void initBoard(int *board)
{
for (int i = 0; i < BOARD_SIZE; i++)
... | code_c | code | 824 | null |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2000-2011
* <NAME>, DENX Software Engineering, <EMAIL>.
*/
/*
* IDE support
*/
#include <common.h>
#include <blk.h>
#include <config.h>
#include <watchdog.h>
#include <command.h>
#include <image.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <i... | code_c | code | 390 | null |
// <NAME>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int main(int argc, char const *argv[]) {
//open the file and save it under var txt (for read in binary format)
FILE *txt = fopen(argv[1], "rb");
//with 1000 characters, the string will most likely never run out of space
char b... | code_c | code | 241 | null |
<reponame>nap56/Licence3
/*
* alt_sys_init.c - HAL initialization source
*
* Machine generated for CPU 'CPU' in SOPC Builder design 'nios_system'
* SOPC Builder design path: C:/altera/12.1sp1/University_Program/NiosII_Computer_Systems/DE2/DE2_Media_Computer/verilog/nios_system.sopcinfo
*
* Generated: Fri Mar 20 0... | code_c | code | 1,603 | null |
<filename>qmk_firmware/keyboards/0xcb/1337/gfxfont.c<gh_stars>0
/*
Copyright 2021 0xCB - <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 2 of the License, or
(at your option) an... | code_c | code | 3,160 | null |
/*
* Copyright (c) 2008-2016 Allwinner Technology Co. Ltd.
* All rights reserved.
*
* File : CdxVirCache.h
* Description :
* History :
*
*/
#ifndef CDX__VIRCACHE_H_
#define CDX__VIRCACHE_H_
#include "CdxMovParser.h"
#define MOV_VIR_CACHE_SIZE (1024 * 13)
typedef struct VirCacheContext
{
CdxStreamT ... | code_c | code | 257 | null |
<reponame>irov/Mengine<filename>src/Kernel/BaseAnimation.h<gh_stars>10-100
#pragma once
#include "Interface/AnimationInterface.h"
#include "Kernel/UpdateContext.h"
#include "Config/UniqueId.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
class BaseAnimation
... | code_c | code | 1,912 | null |
/**
* @file ascii.c
* @brief Print ascii table
*/
#include "syscall.h"
int main()
{
int i;
for (i = 32; i <= 126; i++) {
PrintNum(i);
PrintChar(' ');
PrintChar((char)i);
PrintChar('\n');
}
Halt();
} | code_c | code | 61 | null |
#include <AP_Math/AP_Math.h>
#define COMPASS_CAL_NUM_SPHERE_PARAMS 4
#define COMPASS_CAL_NUM_ELLIPSOID_PARAMS 9
#define COMPASS_CAL_NUM_SAMPLES 300
//RMS tolerance
#define COMPASS_CAL_DEFAULT_TOLERANCE 5.0f
enum compass_cal_status_t {
COMPASS_CAL_NOT_STARTED=0,
COMPASS_CAL_WAITING_TO_START=1,
COMPASS_CAL... | code_c | code | 890 | null |
#if 0
// definition for the opengl bones
#ifndef _PHYSICAL_SKELETON_BONE_H_
#define _PHYSICAL_SKELETON_BONE_H_
#include "core/containers/arstring.h"
#include "core-ext/transform/Transform.h"
#include <vector>
class skeletonBone_t
{
public:
explicit skeletonBone_t ( skeletonBone_t* parent )
: ragdollStrength(0)
{... | code_c | code | 783 | null |
<reponame>martmists-gh/BDSP
#pragma once
#include "il2cpp.h"
void Dpr_Battle_Logic_Section_TurnCheck_Field___ctor (Dpr_Battle_Logic_Section_TurnCheck_Field_o* __this, Dpr_Battle_Logic_Section_CommonParam_o** commonParam, const MethodInfo* method_info);
void Dpr_Battle_Logic_Section_TurnCheck_Field__Execute (Dpr_Battl... | code_c | code | 242 | null |
// This file was generated based on '/usr/local/share/uno/Packages/Fuse.Android/0.24.6/Controls/$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Fuse.Android.Controls.Shape-1.h>
#include <Fuse.Controls.Circle.h>
#include <Fuse.IDataContext.h>
#include <Fuse.Scripting.INa... | code_c | code | 228 | null |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | code_c | code | 400 | null |
<gh_stars>1-10
#pragma once
#include "glm/vec2.hpp"
#include "Color.h"
struct Particle
{
// Members
int64 born;
int image;
glm::vec2 pos;
glm::vec2 vel;
Color color;
float alpha;
glm::vec2 meta;
// Constructor
Particle(glm::vec2 position, glm::vec2 velocity, Color color, glm::vec2 meta) :
born(ch::ToMilli... | code_c | code | 362 | null |
// 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 CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_
#define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_
#... | code_c | code | 1,160 | null |
#include <stdio.h>
int main()
{
int i,j,N,cout1 = 1,cout2 = 2, cout3=3;
scanf("%d", &N);
for (i = 0; i < N; i++)
{
printf("%d %d %d PUM\n",cout1,cout2, cout3);
cout1 =cout3+2;
cout2 = cout3+3;
cout3 = cout3+4;
}
return 0;
}
| code_c | code | 84 | null |
/*
*
* ZDKAlertController.h
* ZendeskSDK
*
* Created by Zendesk on 09/11/2015.
*
* Copyright © 2015 Zendesk. All rights reserved.
*
* By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms
* of Service https://www.zendesk.com/company/terms and Application Developer and API Licens... | code_c | code | 990 | null |
<reponame>amdfansheng/alogrithm
#ifndef BINARY_HEAP_H
#define BINARY_HEAP_H
#include "dsexceptions.h"
#include <vector>
using namespace std;
// BinaryHeap class
//
// CONSTRUCTION: with an optional capacity (that defaults to 100)
//
// ******************PUBLIC OPERATIONS*********************
// void insert( x ) ... | code_c | code | 1,166 | null |
<reponame>gugemichael/nimo
/*
* =====================================================================================
*
* Filename: resourepool.c
*
* Description: resource pool implements
*
* Version: 1.0
* Created: 08/06/2012 05:07:22 PM
* Revision: none
* Compiler: g... | code_c | code | 542 | null |
<gh_stars>1-10
#pragma once
#include "net/costs.h"
#include "net/net.h"
namespace NeuralNet {
// sizes of layers, first is input, last is output
// beware of memory leaks
void create_network(Network& net, const std::vector<size_t>& sizes, bool post_process = false);
// laod from json
// beware of memory leaks
void lo... | code_c | code | 330 | null |
//
// Tigers.h
// RegisteredLoggingTest
//
// CococaLumberjack Demos
//
#import <Foundation/Foundation.h>
@interface Tigers : NSObject
+ (void)logStuff;
@end
| code_c | code | 47 | null |
//
// ContactDetailsViewController.h
// Contacts
//
// Created by <NAME> on 11/9/15.
// Copyright (c) 2015 alexmx. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Contact.h"
@interface ContactDetailsViewController : UIViewController
@property (nonatomic, strong) Contact *contact;
@end
| code_c | code | 86 | null |
/**
* @file sndcsec.h
* @brief Interface of the critical section for sound
*/
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#if defined(SOUND_CRITICAL)
#if defined(NP2_SDL2)
extern SDL_mutex* g_sndcsec;
#define SNDCSEC_INIT g_sndcsec = SDL_CreateMutex()
#define SNDCSEC_TERM SDL_Destroy... | code_c | code | 494 | null |
<filename>S2-CLASS-7-FILES/10 - Archive.c<gh_stars>0
// Um arquivo texto possui uma matriz de valores inteiroes dentro dele.
// Os dois primeiros números são as dimensões da matriz (linhas e colunas), enquanto
// o restante dos números são os valores de cada elemento da matriz. Escreva uma funçõa
// que receba o nome d... | code_c | code | 565 | null |
<reponame>npocmaka/Windows-Server-2003
/* cmdconf.c - handles pre-processing of config.sys\autoexec.bat
*
* Modification History:
*
* 21-Nov-1992 Jonle , Created
*/
#include "cmd.h"
#include <cmdsvc.h>
#include <demexp.h>
#include <softpc.h>
#include <mvdm.h>
#include <ctype.h>
#include <oemuni.h>... | code_c | code | 8,773 | null |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... | code_c | code | 648 | null |
<filename>U-SPRING/solver_heur.h<gh_stars>1-10
#ifndef SOLVER_HEUR_H_
#define SOLVER_HEUR_H_
struct State;
namespace SolverHeur
{
void solve(State *s);
}
#endif /* SOLVER_HEUR_H_ */
| code_c | code | 54 | null |
<reponame>bingchunjin/1806_SDK
/*
* Copyright (c) 2007 <NAME>
* friendly supported by NI.
*
* 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
*... | code_c | code | 6,386 | null |
<reponame>phoerious/lexbor<filename>source/lexbor/selectors/selectors.c
/*
* Copyright (C) 2021 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#include "lexbor/selectors/selectors.h"
#include <math.h>
static lxb_selectors_entry_t *
lxb_selectors_find_by_selector(lxb_selectors_t *selectors, lxb_dom_node_t *root,
... | code_c | code | 13,661 | null |
<reponame>SebastienFCT/daily-coding-problem
//
// Problem_350.h
// Problem 350
//
// Created by <NAME> on 2020-05-09.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Problem_350.
FOUNDATION_EXPORT double Problem_350VersionNumber;
//! Project ve... | code_c | code | 158 | null |
<filename>components/ethernet/include/eth_phy/phy_reg.h
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apac... | code_c | code | 591 | null |
/**
* @author <NAME> <<EMAIL>>
*
* Copyright (C) 2018 Ascending Edge, LLC - All Rights Reserved
*/
#include <ae/opt.h>
#include <ae/try.h>
#include <ae/misc.h>
#include <stdio.h>
#include <stdlib.h>
static const char *s_PARAM_BRACES[][2] = {
{"", ""},
{"[", "]"},
{"<", ">"},
};
bool ae_opt... | code_c | code | 4,736 | null |
<gh_stars>1000+
/*
* Copyright (C) 2011 Google 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
* notice, this... | code_c | code | 1,032 | null |
/**
* @file shape.h
* Declaration of the Shape class.
*/
#pragma once
#include "drawable.h"
#include "vector2.h"
/**
* An abstract base class that represents a Shape which has an area,
* perimeter, color, and can contain Vector2s. Shapes are also drawable, so
* they are expected to know how to draw themselves ... | code_c | code | 562 | null |
<filename>si/sitest.c
/*
=================================================================================================
(c) Copyright 1995-2011 By <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are... | code_c | code | 2,116 | null |
//Octothorpe (12/21/09)
//<NAME>
//Original by Thundercracker
#include <std.h>
inherit WEAPONLESS;
create(){
::create();
set_name("<NAME>");
set_id(({"warlock","hooded","apparition","hooded apparition"}));
set_short("%^BOLD%^%^BLACK%^h%^RESET%^oo%^BOLD%^%^BLACK%^d%^RESET%^e"+
"%^BOLD%^%^BLACK%^d %^R... | code_c | code | 671 | null |
#include <elf.h>
#include "Elf_Manipulation.h"
#include "Harklerror.h" // HARKLE_ERROR
#include <inttypes.h> // uint format specifiers
#include "Map_Memory.h"
#include <stdbool.h> // bool, true, false
#include <stdio.h> ... | code_c | code | 6,600 | null |
/****************************************************************************************************************************
defines.h
For boards with WiFiNINA module/shield.
Based on and modified from WiFiNINA library https://www.arduino.cc/en/Reference/WiFiNINA
to support nRF52, SAMD21/SAMD51, STM32F/L/H/... | code_c | code | 3,369 | null |
<reponame>SenthilKumarGS/TizenRT
/****************************************************************************
*
* Copyright 2017 Samsung Electronics 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 ma... | code_c | code | 370 | null |
//
// Problem_215.h
// Problem 215
//
// Created by <NAME> on 2019-12-26.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Problem_215.
FOUNDATION_EXPORT double Problem_215VersionNumber;
//! Project version string for Problem_215.
FOUNDATION_EXP... | code_c | code | 146 | null |
<filename>d/player_stores/clerks/po_se_shadow.c
#include <std.h>
#define POFF "/d/player_stores/poffices/"
inherit "/std/vendor_pstore";
// inherit "/realms/styx/vendor_pstore";
void make_me();
#define MAX_ITEMS 50
object imp;
void create() {
::create();
make_me();
set_hd(18,2);
set("aggressive", 0);
... | code_c | code | 2,446 | null |
<reponame>djthorpe/postgresql-kit
//
// UnitTestContent.h
// CHCSVParser
//
// Created by <NAME> on 5/5/13.
//
//
#define EMPTY @""
#define COMMA @","
#define SEMICOLON @";"
#define DOUBLEQUOTE @"\""
#define NEWLINE @"\n"
#define SPACE @" "
#define BACKSLASH @"\\"
#define OCTOTHORPE @"#"
#define EQUAL @"="
#define... | code_c | code | 178 | null |
//
// Copyright (c) 2016, Scientific Toolworks, Inc.
//
// This software is licensed under the MIT License. The LICENSE.md file
// describes the conditions under which this software may be distributed.
//
// Author: <NAME>
//
#ifndef ADVANCEDSEARCHWIDGET_H
#define ADVANCEDSEARCHWIDGET_H
#include <QComboBox>
... | code_c | code | 308 | null |
<reponame>Surya-98/Snapcuit<gh_stars>0
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
Modified: September 2003 <NAME>
**********/
#ifndef CAP
#define CAP
#include "ngspice/ifsim.h"
#include "ngspice/complex.h"
#include "ngspice/gendefs.h"
#include "ngspi... | code_c | code | 1,888 | null |
<reponame>dsheets/ocaml-unix-fcntl<gh_stars>1-10
int unix_fcntl_o_direct();
int unix_fcntl_o_rsync();
int unix_fcntl_o_noatime();
int unix_fcntl_o_path();
int unix_fcntl_o_dsync();
int unix_fcntl_o_shlock();
int unix_fcntl_o_exlock();
int unix_fcntl_o_evtonly();
int unix_fcntl_o_symlink();
int unix_fcntl_o_search();
in... | code_c | code | 114 | null |
<reponame>aps337/unum-sdk<gh_stars>10-100
#include <stdint.h>
#include <stdlib.h>
#include <tls.h>
#if USE_TLS && HAVE___THREAD
struct tls_obj
{
const char *name;
uintptr_t addr;
size_t size;
size_t align;
};
extern struct tls_obj tls_registry[];
#define TLS_REGISTER(x) \
static void __attribute__((constr... | code_c | code | 171 | null |
/*
******************************************************************************
*
* COPYRIGHT(c) 2020, China Mobile IOT
*
* 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 co... | code_c | code | 3,705 | null |
/* Author: <NAME> <<EMAIL>>. License: WTFPL, see file LICENSE */
#include <cbaos.h>
#include <drivers/ds2482_1w.h>
#include <drivers/1w.h>
#include <drivers/i2c.h>
#include <errno.h>
#define PTR_STATUS 0xf0
#define PTR_READ_DATA 0xe1
#define PTR_CONFIG 0xc3
#define CMD_DEV_RESET 0xf0
#define CMD_SET_REA... | code_c | code | 1,266 | null |
/** @file
The implementation for EFI_ISA_IO_PROTOCOL.
Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the lice... | code_c | code | 16,304 | null |
/*
Copyright (c) 2013 Insollo Entertainment, LLC. All rights reserved.
Copyright 2017 <NAME> <<EMAIL>>
Copyright 2016 <NAME>" Mathieu <<EMAIL>>
Copyright 2018 Staysail Systems, Inc. <<EMAIL>>
Copyright 2018 Capitar IT Group BV <<EMAIL>>
Permission is hereby granted, free of charge, to any perso... | code_c | code | 1,037 | null |
MANUAL mapi_dissect_element_EcDoRpc_request
MANUAL mapi_dissect_element_EcDoRpc_request_
MANUAL mapi_dissect_element_EcDoRpc_request__
#
# EcDoRpc request (mapi_request)
#
NOEMIT request
ETT_FIELD ett_mapi_mapi_request
#MANUAL mapi_dissect_struct_request
HF_FIELD hf_mapi_mapi_request_mapi_req "Mapi Req" "mapi.mapi_req... | code_c | code | 2,938 | null |
#pragma once
#include "ofMain.h"
#include "ofxDome.h"
class testApp : public ofBaseApp {
ofxDome::ofxDome dome;
ofImage image;
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void mouseReleased(int x, int y, int button);
};
| code_c | code | 76 | null |
#ifndef ZEROD_TOKEN_BUCKET_H
#define ZEROD_TOKEN_BUCKET_H
#include <stdbool.h>
#include <pthread.h>
#include "atomic.h"
#include "util_time.h"
#define TOKEN_BUCKET_ATOMIC
typedef struct
{
#ifndef TOKEN_BUCKET_ATOMIC
pthread_spinlock_t lock;
uint64_t capacity;
uint64_t tokens;
zclock_t last_update;
#e... | code_c | code | 665 | null |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CDXLScalarWindowFrameEdge.h
//
// @doc:
// Class for representing a DXL scalar window frame edge
//
// @owner:
//
//
// @test:
//
//-----------------------------... | code_c | code | 822 | null |
#pragma once
class CMyCombo : public CContainerUI, INotifyUI
{
public:
CMyCombo();
~CMyCombo();
LPCTSTR GetClass() const;
LPVOID GetInterface(LPCTSTR pstrName);
void Init();
void Notify(TNotifyUI& msg);
private:
CLabelUI *m_pLable;
CComboUI *m_pCombo;
CContainerUI *m_pRoot;
};
| code_c | code | 90 | null |
#ifndef GUILDCLASS_H
#define GUILDCLASS_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef unsigned char GUILDMARK[32];
#define MAX_USER_GUILD 80
#define MAX_GUILD_NOTICE_LEN 60
#define MAX_WC_GUILD_NOTICE_LEN (MAX_GUILD_NOTICE_LEN/2)
#define MIN_GUILD_COUNT_FOR_CS 20
#define GUILD_MASTER 0x80
... | code_c | code | 2,037 | null |
/*
comedi/drivers/pcmad.c
Hardware driver for Winsystems PCM-A/D12 and PCM-A/D16
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 2000,2001 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Li... | code_c | code | 1,116 | null |
// Copyright 2021 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 REMOTING_HOST_REMOTE_OPEN_URL_REMOTE_OPEN_URL_CLIENT_DELEGATE_LINUX_H_
#define REMOTING_HOST_REMOTE_OPEN_URL_REMOTE_OPEN_URL_CLIENT_DELEGATE_LINUX... | code_c | code | 291 | null |
<reponame>hlandsmann/cctrl<filename>libraries/memman/include/memman/memman.h
#pragma once
namespace memman {
int initMemory();
}
| code_c | code | 37 | null |
#ifndef LABELMETACONVERTER_H
#define LABELMETACONVERTER_H
// OpenIGTLinkIO includes
#include "igtlioBaseConverter.h"
#include "igtlioConverterExport.h"
// OpenIGTLink includes
#include <igtlLabelMetaMessage.h>
class OPENIGTLINKIO_CONVERTER_EXPORT igtlioLabelMetaConverter : public igtlioBaseConverter
{
public:
/**
... | code_c | code | 470 | null |
// -----------------------------------------------------------------------------
// Copyright (c) 2020, PyInstaller Development Team.
//
// Distributed under the terms of the GNU General Public License (version 2
// or later) with exception for distributing the bootloader.
//
// The full license is in the file COPYING.... | code_c | code | 1,814 | null |
<reponame>stephengroat/Mattermost-iOS
//
// KGDateFormatter.h
// Mattermost
//
// Created by <NAME> on 11.07.16.
// Copyright © 2016 Kilograpp. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface KGDateFormatter : NSObject
+ (NSDateFormatter *)sharedChatHeaderDateFormatter;
@end
| code_c | code | 86 | null |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2011-2021 The Freicoin Developers
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of version 3 of the GNU Affero General Public License as published
// by the Free Software Foundation.
//
// This pro... | code_c | code | 423 | null |
<filename>src/cpugp2x.h
/*
Copyright 2005-2011 - <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
... | code_c | code | 696 | null |
<filename>SuspensionEntrance/OC/SEFloatingArea.h
// SEFloatingArea.h
// SuspensionEntrance
//
// Created by XMFraker on 2019/8/9
// Copyright © XMFraker All rights reserved. (https://github.com/ws00801526)
// @class SEFloatingArea
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT const CGF... | code_c | code | 258 | null |
<gh_stars>0
#pragma once
#include "mavlink_include.h"
#include "plugins/tune/tune.h"
#include "plugin_impl_base.h"
#include "system.h"
namespace mavsdk {
class TuneImpl : public PluginImplBase {
public:
explicit TuneImpl(System& system);
explicit TuneImpl(std::shared_ptr<System> system);
~TuneImpl();
... | code_c | code | 320 | null |
/* No representations are made concerning either the merchantability of
this software or the suitability of this software for any particular
purpose. It is provided "as is" without express or implied warranty
of any kind.
License to... | code_c | code | 306 | null |
/* file: pivoted_qr.h */
/*******************************************************************************
* Copyright 2014 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 License at
*
... | code_c | code | 584 | null |
//
// TestCommentViewController.h
// XJInputView
//
// Created by 江鑫 on 2018/8/24.
// Copyright © 2018年 XJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TestCommentViewController : UIViewController
@end
| code_c | code | 64 | null |
<reponame>ah-/kafka_arrow
#include <string>
#include <sstream>
extern "C" {
#include <libserdes/serdes.h>
#include <libserdes/serdes-avro.h>
}
#include <librdkafka/rdkafka.h>
#include <avro.h>
#include "arrow/api.h"
#include "arrow/table_builder.h"
#include "avro_arrow_adapter.h"
// TODO: option to ignore serializa... | code_c | code | 749 | null |
#include "names.h"
BEGIN_DUKE_NS
enum
{
LABEL_HASPARM2= 1,
LABEL_ISSTRING= 2
};
struct LABELS
{
const char *name;
int lId;
int flags;
int maxParm2;
};
LABELS sectorlabels[]=
{
{ "wallptr", SECTOR_WALLPTR, 0, 0 },
{ "wallnum", SECTOR_WALLNUM, 0, 0 },
{ "ceilingz", SECTOR_CEILINGZ, 0, 0 },
{ "floorz", S... | code_c | code | 3,768 | null |
<gh_stars>0
// Copyright (c) 2018, 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
//
// Unle... | code_c | code | 2,299 | null |
<filename>src/gamma.h
/* gamma.h ******************************************************-*-c++-*-
** **
** G A M M A **
** *... | code_c | code | 1,749 | null |
#ifndef NX_FOUNDATION_NXBOUNDS3
#define NX_FOUNDATION_NXBOUNDS3
/*----------------------------------------------------------------------------*\
|
| Public Interface to NVIDIA PhysX Technology
|
| www.nvidia.com
|
\*----------------------------------------------------------------------------*/
/** \addto... | code_c | code | 2,423 | null |
<gh_stars>1-10
/***************************************************************************
*
*N Module COORGEOM.C
*
*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*
* Purpose:
*P
* Coordinate Geometry Module
*
* Contains functions for performing general purpose coordinat... | code_c | code | 7,060 | null |
<reponame>dmageeLANL/libquo
/*
* Copyright © 2009-2019 Inria. All rights reserved.
* Copyright © 2009-2012 <NAME>
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#ifndef UTILS_HWLOC_PS_H
#define UTILS_HWLOC_PS_H
#include "private/autogen/config.h"
#incl... | code_c | code | 393 | null |
<reponame>pscedu/slash2-next
/* $Id$ */
/*
* %ISC_START_LICENSE%
* ---------------------------------------------------------------------
* Copyright 2007-2018, Pittsburgh Supercomputing Center
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or witho... | code_c | code | 497 | null |
/*
* Copyright (c) 2015 <NAME> (<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 limitation the rights
* to use, copy, modify, merge, pu... | code_c | code | 7,057 | null |
<gh_stars>0
/**
***************************************************************************
******************************************************************************
* @attention
*
* COPYRIGHT(c) 2017 STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modificatio... | code_c | code | 3,949 | null |
//
// Created by majiancheng on 2018/12/17.
// Copyright (c) 2018 majiancheng. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LDSDKConfig.h"
@interface ShareItem : NSObject
@property(nonatomic, strong) NSString *name;
@property(nonatomic, assign) LDSDKShareType type;
@end | code_c | code | 84 | null |
#if !defined(AFX_RESULTSORGSET_H__FE95CBC1_1323_11D4_982D_00400548A44F__INCLUDED_)
#define AFX_RESULTSORGSET_H__FE95CBC1_1323_11D4_982D_00400548A44F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ResultsOrgSet.h : header file
//
///////////////////////////////////////////////////////////////... | code_c | code | 980 | null |
<reponame>kasiriveni/c-examples<gh_stars>1-10
// a program to print inverted full pyramid
#include<stdio.h>
int main()
{
int rows, i, j, space;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=rows; i>=1; --i)
{
for(space=0; space < rows-i; ++space)
printf(" ");
... | code_c | code | 137 | null |
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_IMAGE_SNAPSHOT_H_
#define RUNTIME_VM_IMAGE_SNAPSHOT_H_
#include <memory>
#include <... | code_c | code | 6,711 | 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 CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_... | code_c | code | 377 | null |
#ifndef MOJA_FLINT_TEST_NOTIFICATIONTESTS_H_
#define MOJA_FLINT_TEST_NOTIFICATIONTESTS_H_
#include <moja/flint/aggregatorstockstep.h>
#include <moja/flint/debugnotificationmodule.h>
#include <moja/flint/localdomaincontrollerbase.h>
#include <moja/flint/sequencermodulebase.h>
#include <moja/flint/spinuplandunitc... | code_c | code | 2,974 | null |
<gh_stars>100-1000
//
// XRImage.h
// XRWaterfallLayoutDemo
//
// Created by ibos on 16/3/29.
// Copyright © 2016年 XR. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface XRImage : NSObject
@property (nonatomic, strong) NSURL *imageURL;
@property (nonatomic, assign) CGFloat... | code_c | code | 126 | null |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MP... | code_c | code | 1,252 | null |
#pragma once
#include <Math/VECTOR.h>
#include <Utils/MESHIO.h>
namespace py = pybind11;
namespace JGSL {
template <class T, int dim>
T Get_F_coeff(MESH_NODE<T, dim>& X, VECTOR<int, dim + 1> elemVInd)
{
if constexpr (dim == 3) {
const VECTOR<T, dim>& X0 = std::get<0>(X.Get_Unchecked_Const(elemVInd(0)));
... | code_c | code | 1,657 | null |
/**********************************************************************
Audacity: A Digital Audio Editor
RecordingPrefs.h
<NAME>
<NAME>
**********************************************************************/
#ifndef __AUDACITY_RECORDING_PREFS__
#define __AUDACITY_RECORDING_PREFS__
#include <wx/defs.h>
#i... | code_c | code | 262 | null |
<reponame>eenurkka/incubator-nuttx<gh_stars>1000+
/****************************************************************************
* tools/mkversion.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for addition... | code_c | code | 910 | null |
<filename>Example/JSSkeletonExample/Normal/View/ITNewsDetailSkeletonView.h
//
// ITNewsDetailSkeletonView.h
// ITHomeClient
//
// Created by ruanmei on 2020/8/18.
// Copyright © 2020 ruanmei. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ITNewsDetailSkeletonView : UIView
@pr... | code_c | code | 170 | null |
/*
* Copyright 1996-2021 Cyberbotics Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | code_c | code | 3,086 | null |
#ifndef H_TABIPB_TREE_STRUCT_H
#define H_TABIPB_TREE_STRUCT_H
#include <array>
#include <cstddef>
#include "timer.h"
#include "params.h"
#include "particles.h"
class InteractionList;
struct Timers_Tree;
class Tree
{
private:
class Particles& particles_;
const struct Params& params_;
struct Timers_Tree& ... | code_c | code | 579 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.