text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#pragma once
#include <stdint.h>
struct ExperienceReplay_t {
float **buffer;
float **netResponse;
int32_t bufferSize;
int32_t capacity;
int32_t *bufferElementSize;
int32_t *valuesSizes;
};
typedef struct ExperienceReplay_t *ExperienceReplay;
ExperienceReplay er_Init();
void er_Destroy(Experie... | code_c | code | 182 | null |
<reponame>ls-cwi/JRF
//
// Globals.h
// JRF
//
// Created by <NAME> on 15-4-13.
//
//
#ifndef __JRF__Globals__
#define __JRF__Globals__
#include <limits>
#include <cstdlib>
#include <lemon/time_measure.h>
extern int time_limit;
extern lemon::Timer clk;
extern int verbosity;
extern int no_threads;
extern double ... | code_c | code | 104 | null |
<reponame>npocmaka/Windows-Server-2003<gh_stars>10-100
/*++
*
* WOW v1.0
*
* Copyright (c) 1991, Microsoft Corporation
*
* WRES32.C
* WOW32 16-bit resource support
*
* History:
* Created 11-Mar-1991 by <NAME> (jeffpar)
--*/
#include "precomp.h"
#pragma hdrstop
MODNAME(wres32.c);
H... | code_c | code | 798 | null |
<reponame>OpenCMISS-Dependencies/cube<gh_stars>0
/****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 ... | code_c | code | 1,302 | null |
//==============================================================
//This provides implementation for the commands relevant for the
//CarelessWSPR project.
#ifndef __CARELESSWSPR_COMMANDS_H
#define __CARELESSWSPR_COMMANDS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "command_processor.h"
extern co... | code_c | code | 183 | null |
#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;
var uLocal_13 = 0;
float fLocal_14 ... | code_c | code | 140,563 | null |
<reponame>EwoutH/pik
// Copyright 2019 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#ifndef PIK_AR_CONTROL_FIELD_H_
#define PIK_AR_CONTROL_FIELD_H_
#include "pik/ac_strategy.h"
... | code_c | code | 197 | null |
/*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2016 */
/*-----------------------------------------------------------------------*/
/* If a working storage control module is available, it should be */
/* attached to t... | code_c | code | 1,533 | null |
/*
* 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 "license" f... | code_c | code | 918 | null |
/* classes: h_files */
#ifndef SCM_RANDOM_H
#define SCM_RANDOM_H
/* Copyright (C) 1999,2000,2001, 2006, 2008, 2010 Free Software Foundation, Inc.
*
* 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 Softwa... | code_c | code | 1,047 | null |
<gh_stars>1-10
#include <liblinux/linux.h>
extern inline linux_error_t linux_listen(linux_fd_t fd, int backlog);
| code_c | code | 32 | null |
<reponame>morten-krogh/linnea
#ifndef LINNEA_STDLIB_H
#define LINNEA_STDLIB_H
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <pt... | code_c | code | 96 | null |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYIN... | code_c | code | 837 | null |
/**
* @file pharma_test.c
* @author <NAME> (<EMAIL>)
* @brief
* @version 0.1
* @date 2021-09-06
*
* @copyright Copyright (c) 2021
*
*/
#include "unity.h"
#include "pharma_operations.h"
#define PROJECT_NAME "pharma"
/* Prototypes for all the test functions */
void test_add_medicine(void);
void test_delete_... | code_c | code | 644 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHierarchicalBoxDataIterator.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed ... | code_c | code | 416 | null |
/* Copyright 2016 The Chromium OS 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 CRAS_OBSERVER_H
#define CRAS_OBSERVER_H
#include "cras_observer_ops.h"
struct cras_observer_client;
/* Add an observer.
* Args:
* o... | code_c | code | 982 | null |
<filename>molecular/util/AtomicCounter.h<gh_stars>0
/* AtomicCounter.h
MIT License
Copyright (c) 2019 <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 witho... | code_c | code | 767 | null |
<gh_stars>0
#pragma once
#include "Building.h"
#include "MineralBuilding.generated.h"
UCLASS()
/**
* @brief Set values affected by mineral building
*
*/
class PGTPROJECT_API UMineralBuilding : public UBuilding {
GENERATED_BODY()
public:
int32 MineralProductionValue = 5;
int EnergyUpkeep = 20;
int MoneyUpkeep =... | code_c | code | 223 | null |
<gh_stars>1-10
/**
******************************************************************************
* @file bl602_sflash_ext.c
* @version V1.0
* @date
* @brief This file is the standard driver c file
******************************************************************************
* @attention
*
* <h2... | code_c | code | 4,858 | null |
// Copyright 2020 <NAME>
// Licensed under BSD-3-Clause
// Refer to the license.txt file included in the root of the project
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <common/constants.h>
#include <common/list.h>
#include <common/logger.h>
#include <common/map.h>
#include <common/stack.h>
#i... | code_c | code | 8,347 | null |
<gh_stars>100-1000
/*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by <NAME> and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Fo... | code_c | code | 770 | null |
<reponame>robertDT/dt-snap
/*++
Module Name:
WindowsFileMapper.h
Abstract:
Header for support code for file mapping on Windows
Authors:
<NAME>, November, 2012
Environment:
User mode service.
Revision History:
--*/
#pragma once
#ifdef _MSC_VER
class WindowsFileMapper {
public:
Windo... | code_c | code | 140 | null |
<gh_stars>0
/*-------------------------------------------------------------------------
* nodeTupleSplit.c
* Implementation of nodeTupleSplit.
*
* Portions Copyright (c) 2019-Present Pivotal Software, Inc.
*
* IDENTIFICATION
* src/backend/executor/nodeTupleSplit.c
*
*-------------------------------------... | code_c | code | 1,722 | null |
<filename>ConfProfile/jni/strongswan/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c<gh_stars>1-10
/*
* Copyright (C) 2009 <NAME>
* Copyright (C) 2008 <NAME>
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Ge... | code_c | code | 3,748 | null |
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif
#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/object.h"
#include "kernel/memory.h"
#i... | code_c | code | 4,966 | null |
#include "rtv1.h"
#define CL_SILENCE_DEPRECATION 100
int print_error(t_gpu *gpu)
{
size_t len;
char *buffer;
if (gpu->err != CL_SUCCESS)
{
buffer = ft_strnew(99999);
clGetProgramBuildInfo(gpu->program, gpu->device_id, CL_PROGRAM_BUILD_LOG, 100000, buffer, &len);
printf("%s\n", buffer);
ft_strdel(&buff... | code_c | code | 1,962 | null |
<reponame>edamato/go-graphviz
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**
* \brief remove overlaps between a set of rectangles.
*
* Authors:
* <NAME> <<EMAIL>>
*
* Copyright (C) 2005 Authors
*
* This version is released under the CPL (Common Public License) with
* the Graphviz distribution.
... | code_c | code | 244 | null |
/*-
* Copyright (c) 2015 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | code_c | code | 498 | null |
/*
* net/tipc/name_distr.c: TIPC name distribution code
*
* Copyright (c) 2000-2006, Ericsson AB
* Copyright (c) 2005, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | code_c | code | 2,665 | null |
<reponame>alexoj/SkyrimSoulsRE
#pragma once
#include "REL/Relocation.h"
namespace Offsets
{
namespace ConsoleCommands
{
static constexpr REL::ID CenterOnCell_Hook(static_cast<std::uint64_t>(22873)); // + 0x5B
static constexpr REL::ID CenterOnWorld_Hook(static_cast<std::uint64_t>(22876)); // + 0x104
st... | code_c | code | 2,190 | null |
<reponame>kaabimg/EvLibrary<gh_stars>1-10
#ifndef EVAPPLICATIONSETTINGS_H
#define EVAPPLICATIONSETTINGS_H
#include "EvObject.h"
#include <QMap>
#include <QSettings>
class EvSettings;
class EvApparenceSettings;
class EvApplicationSettings : public EvObject
{
Q_OBJECT
Q_PROPERTY(EvApparenceSettings* apparenceSe... | code_c | code | 263 | null |
/**
@file UDPServer.h
@brief UDP Server Message Handler
(c)2006 Palestar Inc
@author <NAME>yle @date 10/8/2006 11:28:57 PM
*/
#ifndef UDPSERVER_H
#define UDPSERVER_H
#include "Debug/SafeThread.h"
#include "Standard/Types.h"
#include "Standard/Mutex.h"
#include "File/FileFIFO.h"
#include "File/Stream.h"
#include... | code_c | code | 1,914 | null |
<gh_stars>10-100
//===-- crash_handler.h -----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------... | code_c | code | 1,211 | null |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | code_c | code | 2,970 | null |
<gh_stars>1-10
/*
* Copyright © 2008 <NAME>
* Copyright © 2011 <NAME> <<EMAIL>>
* Copyright © 2015 Advanced Micro Devices, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to dea... | code_c | code | 1,294 | null |
/*
* Copyright 2010-2016 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 "license" file... | code_c | code | 9,258 | null |
#pragma once
#include <QtCore/QVariant>
namespace crrc
{
namespace dao
{
struct RoleDAO
{
QVariantList retrieveAll() const;
QVariant retrieve( const uint32_t id ) const;
QVariant retrieveByRole( const QString& role ) const;
};
}
}
| code_c | code | 76 | null |
<reponame>PurpEth/solved-hacking-problem<filename>GoogleCTF/2020 Quals/threading/prob/threading/signals.h
#ifndef EXPERIMENTAL_USERS_IPUDNEY_USERLAND_THREADS_KERNEL_H_
#define EXPERIMENTAL_USERS_IPUDNEY_USERLAND_THREADS_KERNEL_H_
#include <pthread.h>
#include <vector>
// Halt the currently-running thread.
void halt()... | code_c | code | 394 | null |
<reponame>zer0infinity/CuteForCoast
/*
* Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/applicati... | code_c | code | 1,053 | null |
/*******************************************************************************
################################################################################
# Copyright (c) [2017-2019] [Radisys] #
# ... | code_c | code | 7,016 | null |
#ifndef __PhotonTest__NetworkState__
#define __PhotonTest__NetworkState__
enum NetworkState
{
STATE_INITIALIZED = 0,
STATE_CONNECTING,
STATE_CONNECTED,
STATE_JOINING,
STATE_JOINED,
STATE_LEAVING,
STATE_LEFT,
STATE_DISCONNECTING,
STATE_DISCONNECTED
};
#endif /* defined(__PhotonTes... | code_c | code | 97 | null |
<reponame>jacadcaps/webkitty
/*
* Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | code_c | code | 827 | null |
<filename>content/browser/service_worker/service_worker_process_manager.h
// 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 CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROCESS_MANAGER_H_
#define... | code_c | code | 2,392 | null |
#pragma once
#include "MeshSync/MeshSync.h"
#define MaxNameBuffer 128
using namespace mu;
inline float4 to_float4(const MQColor& v)
{
return { v.r, v.g, v.b, 1.0f };
}
inline float3 to_float3(const MQPoint& v)
{
return (const float3&)v;
}
inline float4x4 to_float4x4(const MQMatrix& v)
{
return (const fl... | code_c | code | 216 | null |
/* Copyright (C) 2009-2011 The Trustees of Indiana University. */
/* */
/* Use, modification and distribution is subject to the Boost Software */
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
/* http:... | code_c | code | 666 | null |
#pragma once
#include "resource.h"
#include <stdlib.h>
#include <time.h>
#include <windowsx.h>
#include "GuiLib.h"
/* Package information */
typedef struct tagPACKAGE
{
RECT rEnd; // End point
RECT rCurr; // Current point
RECT rBegin; // Begin point
LONG total;
int id; // Identify number
COLORREF color;... | code_c | code | 1,030 | null |
<gh_stars>0
/********************************************************************************************/
/********************************************************************************************/
#include <assert.h>
#include <string.h>
#include "sys_types.h"
#include "sys_define.h"
#include "mtos_misc.h"
#includ... | code_c | code | 5,001 | null |
// Copyright by Potato Engine contributors. See accompanying License.txt for copyright details.
#pragma once
#include "ui/action.h"
#include "potato/spud/box.h"
#include "potato/spud/delegate.h"
#include "potato/spud/string.h"
#include "potato/spud/vector.h"
#include "potato/spud/zstring_view.h"
#include <imgui.h>
... | code_c | code | 986 | null |
<gh_stars>100-1000
//
// DTCoreTextFunctions.h
// DTCoreText
//
// Created by <NAME> on 21.12.12.
// Copyright (c) 2012 <EMAIL>. All rights reserved.
//
#import "DTCompatibility.h"
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
/**
Creates a CTFont from a UIFont
@param font The `UIFont`
@returns The matching C... | code_c | code | 496 | null |
<filename>src/tools/cppgen/include/xbe_cppname.h
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");... | code_c | code | 1,028 | null |
/**************************************************************************/
/* */
/* Copyright (c) 1996-2016 by Express Logic Inc. */
/* */
/* This... | code_c | code | 11,420 | null |
/*++
Copyright (c) Microsoft Corporation
Module Name:
vseeport.h
Abstract:
for porting code from vsee
Author:
<NAME> (JayKrell) August 2001
Revision History:
--*/
#include "fusionbuffer.h"
#include "lhport.h"
#define VsVerifyThrow(a,b) (a)
#define VsVerify(a,b) ... | code_c | code | 334 | null |
<reponame>VivekMaran27/How-to-install-SimpleScalar-on-Ubuntu
/* bfd back-end for mips support
Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc.
Written by <NAME> of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute i... | code_c | code | 550 | null |
<gh_stars>0
/*
* Copyright (c) 2012 <NAME>. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#pragma once
#ifndef _LIBALMATH_ALMATH_TYPES_ALROTATION_H_
#define _LIBALMATH_ALMATH_TYPES_ALROTATION_H_
#include <vector>
namespace AL {
na... | code_c | code | 4,512 | null |
#ifndef _Z80_MVS_H_
#define _Z80_MVS_H_
extern const u8 z80_mvs[0x0A5B];
#endif // _Z80_MVS_H_
| code_c | code | 29 | null |
<gh_stars>1000+
/* MD5 message digest */
#ifndef _MD5_H
#define _MD5_H
#include "HsFFI.h"
typedef HsWord32 word32;
typedef HsWord8 byte;
struct MD5Context {
word32 buf[4];
word32 bytes[2];
word32 in[16];
};
void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context,... | code_c | code | 139 | null |
<reponame>simple555a/opc-daae-server-sdk-dll<gh_stars>1-10
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0500 */
/* at Mon Jan 17 19:13:42 2011
*/
/* Compiler settings for .\OpcCmd.idl:
Oicf, W1, Zp8, env=Win64 (32b run)
protocol... | code_c | code | 7,214 | null |
#pragma once
#ifndef COMMANDPROC_H_H_H
#define COMMANDPROC_H_H_H
#include <windows.h>
#include "LittleBearMainServer.h"
class CommandRecver {
public:
static int __stdcall CommandRecver::CommandRecverProc(LPNETWORKPROCPARAM lpParam);
static int __stdcall CommandRecverProcess(LPNETWORKPROCPARAM lpParam,char * lpdata)... | code_c | code | 131 | null |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/
#include <linux/module.h>
#include <linux/string.h>
void *memcpy(void *to, const void *from, size_t n)
{
void *xto = to;
size_t temp, temp... | code_c | code | 490 | null |
<filename>src/random.h
#pragma once
#include "QRS0.h"
#include <stdbool.h>
#include <stdint.h>
#define RNGSTATE(STR, SEED) ((uint64_t)(STR[0]) << 56
#define RNGSTATE_STRLEN 14
//#define RANDOMIZER_INIT_ERROR -1
#define PENTO_READ_RAND_MAX 0x7fff
#define PENTO_RAND_NOTETS 0x01
#define PENTO_RAND_NIGHTMARE 0x02
#define... | code_c | code | 1,798 | null |
@import WMF.EventLoggingFunnel;
typedef NS_ENUM(NSUInteger, WMFHamburgerMenuItemType) {
WMFHamburgerMenuItemTypeLogin,
WMFHamburgerMenuItemTypeToday,
WMFHamburgerMenuItemTypeRandom,
WMFHamburgerMenuItemTypeNearby,
WMFHamburgerMenuItemTypeRecent,
WMFHamburgerMenuItemTypeSavedPages,
WMFHambur... | code_c | code | 157 | null |
/*
* regfree - free an RE
*
* Copyright (c) 1998, 1999 <NAME>. All rights reserved.
*
* Development of this software was funded, in part, by Cray Research Inc.,
* UUNET Communications Services Inc., Sun Microsystems Inc., and Scriptics
* Corporation, none of whom are responsible for the results. The author
* ... | code_c | code | 621 | null |
<filename>inc/char_traits.h
// char_traits.h
// Created by lulimin on 2019/2/14.
#ifndef __CHAR_TRAITS_H
#define __CHAR_TRAITS_H
#include "common.h"
#include "utility.h"
#include <string.h>
// TCharTraits
template<typename TYPE>
struct TCharTraits
{
};
template<>
struct TCharTraits<char>
{
// ... | code_c | code | 471 | null |
<reponame>cmbi/mrs
// Copyright <NAME>, Radboud University 2012.
// 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)
#pragma once
/*
M6Tokenizer is a class that can split a string of characters in... | code_c | code | 839 | null |
<reponame>XingXie/Data-Stream-Management-System<gh_stars>0
#ifndef _WIN_SYN_
#define _WIN_SYN_
/**
* @file win_syn.h
* @date May 30, 2004
* @brief A window synopsis interface.
*/
#ifndef _TUPLE_
#include "execution/internals/tuple.h"
#endif
#ifndef _TYPES_
#include "common/types.h... | code_c | code | 395 | null |
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permissio... | code_c | code | 1,608 | null |
/**********************************************************************
*<
FILE: point4.h
DESCRIPTION: Class definitions for Point4
CREATED BY: <NAME>
HISTORY:
*> Copyright (c) 1994, All Rights Reserved.
**********************************************************************/
#pragma once
#include... | code_c | code | 3,062 | null |
<reponame>AnisimoffNikita/course_project_cg
#ifndef RENDERER_H
#define RENDERER_H
#include "transformation.h"
#include "camera.h"
#include "light.h"
#include "mesh.h"
#include <QImage>
class Renderer
{
public:
Renderer() = default;
Renderer(float scale, int32 width, int32 height);
virtual void setCamera... | code_c | code | 191 | null |
/*
Authors: <NAME>, <NAME>
Copyright:
Copyright (c) 2020 Microsoft Research
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 | 581 | null |
#pragma once
#include <Core/CoreDLL.h>
#include <Foundation/Communication/Event.h>
#include <Foundation/Strings/HashedString.h>
#include <Foundation/Types/Variant.h>
class ezStreamReader;
class ezStreamWriter;
/// \brief Flags for entries in ezBlackboard.
struct EZ_CORE_DLL ezBlackboardEntryFlags
{
using StorageTy... | code_c | code | 1,600 | null |
<filename>NetworkControl/NetworkControl.h<gh_stars>0
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | code_c | code | 5,833 | null |
<filename>CS/CSC369/A3/traceprogs/simpleloop.c
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#define RECORD_SIZE 128
struct krec {
double d[RECORD_SIZE];
};
void heap_loop(int iters) {
int i;
struct krec *ptr = malloc(iters *sizeof(struct krec));
for(i = 0; i < iters; i++) {
ptr[i].d[0] = (doubl... | code_c | code | 278 | null |
<reponame>emesz761/JniHelpers
/*
* Copyright (c) 2014 Spotify AB
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to ... | code_c | code | 1,192 | null |
<filename>include/processor.h
#ifndef PROCESSOR_H
#define PROCESSOR_H
#include <string>
#include <vector>
class Processor {
public:
float Utilization();
private:
std::vector<std::string> cpu_{};
float idle_{0.0};
float nonidle_{0.0};
};
#endif
| code_c | code | 73 | null |
<gh_stars>10-100
#define GLI_INCLUDE_EXT_TEXTURE_ARRAY
enum Main {
//GL_TEXTURE_1D_ARRAY_EXT = 0x8C18,
//GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19,
//GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A,
//GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B,
//GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C... | code_c | code | 187 | null |
<reponame>phraust1612/PDL
#ifndef _KEYINTER_H
#define _KEYINTER_H
#include <process.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
typedef void (*pfCallback)();
class CKeyinter
{
public:
pfCallback m_cb;
int keysave;
bool bStop;
CKeyinter();
~CKeyinter();
void Start();
void Stop();
};
#endif
| code_c | code | 90 | null |
<filename>edk2/MdeModulePkg/Include/Ppi/UsbController.h
/** @file
Define APIs to retrieve USB Host Controller Info such as controller type and
I/O Port Base Address.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made ava... | code_c | code | 888 | null |
/*
* Copyright 2009-2010 Pengutronix
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#ifndef __LINUX_MFD_MC13XXX_H
#define __LINUX_MFD_MC13XXX_H
#includ... | code_c | code | 1,729 | null |
#include "mst_object.h"
#include "mst_sema.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#ifdef __APPLE__
#include <dispatch/dispatch.h>
struct mst_sema_s {
struct mst_object_s _obj;
dispatch_semaphore_t s;
int initial;
int val;
};
#else
#include <semaphore.h>
struct mst_sema_s {
... | code_c | code | 385 | null |
<reponame>SosnovGennadiy2006/barleyBreak
#ifndef CUSTOMEBUTTON_H
#define CUSTOMEBUTTON_H
#include <QObject>
#include <QWidget>
#include <QCursor>
#include <QFont>
#include <QPushButton>
class CustomeButton : public QPushButton
{
Q_OBJECT
public:
explicit CustomeButton(QWidget *parent = nullptr);
... | code_c | code | 111 | null |
<reponame>gale320/staff
/*
* Copyright 2010 <NAME>
*
* 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 app... | code_c | code | 574 | null |
/* Copyright (c) 2007-2018 ImapTest authors, see the included COPYING file */
#include "lib.h"
#include "hash.h"
#include "istream.h"
#include "imap-date.h"
#include "imap-util.h"
#include "imap-arg.h"
#include "message-id.h"
#include "message-size.h"
#include "message-header-parser.h"
#include "settings.h"
#include ... | code_c | code | 7,501 | null |
<reponame>PhuocNgo1898/expo<gh_stars>1-10
// Copyright 2015-present 650 Industries. All rights reserved.
#import <React/RCTRootView.h>
@interface RCTRootView (DevMenuRootView)
- (void)javaScriptDidLoad:(NSNotification *)notification;
@end
| code_c | code | 69 | null |
<reponame>311labs/SRL<filename>cpp/include/srl/types.h
/*********************************************************************************
* Copyright (C) 1999,2006 by <NAME> All Rights Reserved.
*********************************************************************************
* This library is free software; ... | code_c | code | 1,771 | null |
<filename>tools/font/build/single_font_files/u8g2_font_lubR12_te.c
/*
Fontname: -B&H-LucidaBright-Medium-R-Normal--17-120-100-100-P-96-ISO10646-1
Copyright: Copyright Bigelow & Holmes 1986, 1985.
Glyphs: 446/756
BBX Build Mode: 0
*/
const uint8_t u8g2_font_lubR12_te[10029] U8G2_FONT_SECTION("u8g2_font_lubR12_te... | code_c | code | 7,659 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkAvatar.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY ... | code_c | code | 872 | null |
<gh_stars>0
#pragma once
#include "s2/util/compressed_maps/ds2i/global_parameters.hpp"
#include "s2/util/compressed_maps/ds2i/compact_elias_fano.hpp"
template <typename key_type, typename value_type>
class ef_map {
public:
using value_container_type = std::vector<value_type>;
using size_type = std::size_t;
... | code_c | code | 1,260 | null |
<filename>src/emu/x86syscall.c
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h> /* For SYS_xxx definitions */
#include <unistd.h>
#include <time.h>
#include <sys/mman.h>
#include <sys/select.h>
#includ... | code_c | code | 3,081 | null |
<filename>CA/Independent_Work.3/what_task_doing.h
#pragma once inline
void sum();
void diff();
void power();
void compare();
| code_c | code | 36 | null |
<reponame>diptu/Teaching<filename>CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab Final/heaptype(6).h
#ifndef HEAPTYPE_H_INCLUDED
#define HEAPTYPE_H_INCLUDED
template<class ItemType>
struct HeapType
{
void ReheapDown (int root,int bottom);
void ReheapUp(int root, int... | code_c | code | 116 | null |
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*/
#include <asm/uaccess.h>
#include <linux/device.h>
... | code_c | code | 320 | null |
#include <stdio.h>
#include <math.h>
/**
* Main function
* finds consecutive sum of integers 0 -> 999 with a step of 5 +
* integers 0 -> 999 with a step of 3
**/
int main() {
int sum = 0;
for (int i = 0; i < 1000; i ++) if (i%3 == 0 || i%5==0) sum += i;
printf("%d",sum);
return 0;
}
| code_c | code | 84 | null |
<filename>src/php-src/functions/dba.c
/*
+----------------------------------------------------------------------+
| PHP HTML Embedded Scripting Language Version 3.0 |
+----------------------------------------------------------------------+
| Copyright (c) 2000 PHP Development Team (See C... | code_c | code | 3,299 | null |
<reponame>1AmNegan/electron
// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_BROWSER_RELAUNCHER_H_
#define ATOM_BROWSER_RELAUNCHER_H_
// relauncher implements main browser application relaunches across platforms.
// Whe... | code_c | code | 1,642 | null |
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <liburing.h>
#include "http.h"
#include "logger.h"
#include "uring.h"
#include "memory_pool.h"
/* the length of the struct e... | code_c | code | 1,080 | null |
#ifndef _X86_64_PAGE_H
#define _X86_64_PAGE_H
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#ifdef __ASSEMBLY__
#define PAGE_SIZE (0x1 << PAGE_SHIFT)
#else
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#endif
#define PAGE_MASK (~(PAGE_SIZE-1))
#define PHYSICAL_PAGE_MASK (~(PAGE_SIZE-1) & __PHYSICAL_MASK)
#... | code_c | code | 1,276 | null |
/**
* \file lwiplib.h
*
* \brief lwip abstraction layer related declarations
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions ar... | code_c | code | 3,107 | null |
/*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2019)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* <NAME> <<EMAIL>>
*
*/
#pragma once
#include "core/co... | code_c | code | 388 | null |
/*
* Copyright (C) 2021 Huawei Device Co., 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 o... | code_c | code | 1,714 | null |
#include <stdio.h>
//ler as 3 notas de 4 alunos
int main()
{
int i, j;
float notas[4][3]; //coluna 0, 1 e 2 = av1, av2 e av3
float media, soma=0;
float av1, av2, av3;
for(i=0; i<=3; i++)
{
for(j=0; j<=2; j++)
{
//Entre com a av1 do aluno 1:
printf("\... | code_c | code | 554 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.