text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#ifndef ParticleFlowCandidate_PFCandidatePhotonExtra_h
#define ParticleFlowCandidate_PFCandidatePhotonExtra_h
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
#include "DataFormats/EgammaCandidates/interface/ConversionFwd.h"
#include <iosfwd>
namespa... | code_c | code | 862 | null |
<reponame>microxoft/isc105_3-2018-2019
#include <stdio.h>
#include <stdlib.h>
void capturarTamano(int*);
void capturarValores(int*, int*);
void mostrarValores(int*, int*);
void OrdenarInsercion(int*, int*);
int main()
{
int tam;
int *valores;
capturarTamano(&tam);
valores = (int*)calloc(t... | code_c | code | 416 | null |
<reponame>jamesjcai/scGEAtoolbox<gh_stars>10-100
/*
* Copyright 1996-2006 <NAME>.
*/
/*
* Copyright (c) 1998-2006 <NAME>
* See README file for details.
*
*
* Headers for the tube library.
*/
#ifndef I_TUBE_H
#define I_TUBE_H
/*
* public functions needed by routines calling the tube library.
*/
extern ... | code_c | code | 281 | null |
#pragma once
#include "Common.h"
#include <due_can.h>
#include "Can_Protocol.h"
using namespace elcano;
//origin is set to the UWB map
//#define ORIGIN_LAT 47.758949
//#define ORIGIN_LONG -122.190746
//origin set to center of UWB soccer field
#define ORIGIN_LAT 47.760850
#define ORIGIN_LONG -122.190044
... | code_c | code | 146 | null |
// menggukid.c
// Last Modified by winder on May. 25 2001
inherit NPC;
void create()
{
set_name("蒙古小孩",({"kid"}));
set("age",9);
set("combat_exp",200);
set_skill("dodge",10);
set_skill("unarmed",3);
set("chat_chance",7);
set("chat_msg",({
(:random... | code_c | code | 126 | null |
<filename>source/gameengine/Ketsji/BL_Material.h
/** \file BL_Material.h
* \ingroup ketsji
*/
#ifndef __BL_MATERIAL_H__
#define __BL_MATERIAL_H__
#include "STR_String.h"
#include "MT_Point2.h"
#ifdef WITH_CXX_GUARDEDALLOC
#include "MEM_guardedalloc.h"
#endif
// --
struct MTex;
struct Material;
struct Image;
str... | code_c | code | 1,021 | null |
<filename>tp/libs/lzma/tuklib/config.h
#pragma once
#if defined(__APPLE__)
#include "config_darwin.h"
#endif
#if defined(__linux__)
#include "config_linux.h"
#endif
#undef ASSUME_RAM
#define ASSUME_RAM 16
| code_c | code | 59 | null |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2015/6 <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 Softwar... | code_c | code | 671 | null |
#ifndef __RMUTIL_STRINGS_H__
#define __RMUTIL_STRINGS_H__
#include "../redismodule.h"
/*
* Create a new RedisModuleString object from a printf-style format and arguments.
* Note that RedisModuleString objects CANNOT be used as formatting arguments.
*/
// DEPRECATED since it was added to the RedisModule API. Replaced ... | code_c | code | 460 | null |
// Copyright 2016 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 CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_
#define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_
#include "cc/trees/layer_tree_host_client.h"
namespace cc ... | code_c | code | 417 | null |
extern zend_class_entry *phalcon_storage_adapterfactory_ce;
ZEPHIR_INIT_CLASS(Phalcon_Storage_AdapterFactory);
PHP_METHOD(Phalcon_Storage_AdapterFactory, __construct);
PHP_METHOD(Phalcon_Storage_AdapterFactory, newInstance);
PHP_METHOD(Phalcon_Storage_AdapterFactory, getAdapters);
ZEND_BEGIN_ARG_INFO_EX(arginfo_pha... | code_c | code | 503 | null |
<reponame>Kvistpipa/nw.js<gh_stars>1-10
// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 restrictio... | code_c | code | 1,204 | null |
<gh_stars>1-10
#pragma once
#include "command.h"
namespace goliath::commands {
class BasicCommand : public Command {
public:
BasicCommand(const size_t &id, const std::vector<size_t> &requiredHandles);
void run(handles::HandleMap &handles, const proto::CommandMessage &message) override;
pr... | code_c | code | 200 | null |
//------------------------------------------------------------------------------
// Copyright (c) Qualcomm Atheros, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to
// the limitations in the disclaimer below) provided that the fol... | code_c | code | 5,835 | null |
<reponame>ksoderbl/thinmatrix-opengl-3d-game-tutorial-cpp-sdl2
#ifndef SHADERPROGRAM_H
#define SHADERPROGRAM_H
#include "Headers.h"
#include "Camera.h"
#include "Maths.h"
class ShaderProgram
{
public:
ShaderProgram(string vertexFile, string fragmentFile);
void start();
void stop();
void cleanUp();
void bindAttr... | code_c | code | 321 | null |
//
// JTSAnimatedGIFUtility.h
// JTSImageVC
//
// Created by <NAME> on 3/29/14.
// Copyright (c) 2014 Nice Boy, LLC. All rights reserved.
//
@import UIKit;
@interface JTSAnimatedGIFUtility : NSObject
+ (BOOL)imageURLIsAGIF:(NSString *)imageURL;
/*
UIImage *animation = [UIImage animatedImageWithAnimatedGIFData:... | code_c | code | 524 | null |
/* --------------------------------------------------------------------------
* Name: container.h
* Purpose: Interface to container compliant data structures
* ----------------------------------------------------------------------- */
/* The individual data structure libraries I've implemented don't expose
* ex... | code_c | code | 947 | null |
<reponame>codajs/edge-diagnostics-adaptor<filename>DebuggerCore/PDMThreadCallback.h
//
// Copyright (C) Microsoft. All rights reserved.
//
#pragma once
using namespace ATL;
class PDMThreadCallback :
public CComObjectRootEx<CComSingleThreadModel>,
public IDebugThreadCall
{
public:
BEGIN_COM_MAP(PDMThreadC... | code_c | code | 670 | null |
//
// WeatherGeneralInfoView.h
// SRClimate
//
// Created by 郭伟林 on 16/5/6.
// Copyright © 2016年 SR. All rights reserved.
//
#import <UIKit/UIKit.h>
@class NowWeatherData, CityWeatherData;
#define kWeatherGeneralItemWH SCREEN_ADJUST(49)
@interface WeatherGeneralInfoView : UIView
@property (nonatomic, weak) UIL... | code_c | code | 217 | null |
<reponame>junmin-zhu/chromium-rivertrail
// Copyright 2011 Google Inc. All Rights Reserved.
//
// This code is licensed under the same terms as WebM:
// Software License Agreement: http://www.webmproject.org/license/software/
// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
// ---------... | code_c | code | 6,045 | null |
/**
* The Forgotten Server - a free and open-source MMORPG server emulator
* Copyright (C) 2019 <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 Foundation; either version 2 of the ... | code_c | code | 485 | null |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | code_c | code | 351 | null |
<gh_stars>0
/*
* Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*
* This file is inspired by Stephane's Caron original implementation as part of
* lipm_walking_controller <https://github.com/stephane-caron/lipm_walking_controller>
*/
#pragma once
#include <mc_rtc/logging.h>
#include <Eigen/Core>
#include <map... | code_c | code | 1,372 | null |
/**
* cmd_ddr_training_v2.c
*
* Copyright (c) 2009-2014, HiSilicon Technologies Co., Ltd.
* All rights reserved.
*
* DDR training command define.
*/
#include <common.h>
#include <command.h>
#include <ddr_interface.h>
#define DDR_TRAINING_ENV "ddrtr"
#define DDR_TRAINING_ENV_UN "unddrtr"
#de... | code_c | code | 2,759 | null |
<reponame>stanislaw/NSStringFromAnyObject
#import <Foundation/Foundation.h>
static inline NSString *__NSStringFromObjCObject(const char *type, const void *object) {
switch (type[0]) {
case '@': {
__unsafe_unretained id _object = *(__unsafe_unretained id *)object;
if ([_object isK... | code_c | code | 241 | null |
<reponame>ouankou/rose<gh_stars>100-1000
#ifndef FALLTHROUGH
# if __GNUC__ < 6
# define FALLTHROUGH ((void) 0)
# else
# define FALLTHROUGH __attribute__ ((__fallthrough__))
# endif
#endif
// Note that EDG will ignore the __fallthrough__ attribute
// (and it has not useful semantic meaning either).
int u8_uctomb_au... | code_c | code | 144 | null |
#ifndef elf32_h
#define elf32_h
#ifndef ELF_CLASS
#define ELF_CLASS ELFCLASS32
#endif
#include "elfxx.h"
#endif /* elf32_h */
| code_c | code | 38 | null |
<gh_stars>0
/* Copyright (c) 2001 <NAME>.
* Copyright (c) 2001-2004, <NAME>.
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file relay.h
* \brief Header file for relay.c.
**/
#ifndef TOR_RELAY_H
#define TOR_RELAY_... | code_c | code | 1,159 | null |
#include <stdio.h>
#include <unistd.h>
int value = 88;
int main() {
puts("prog4 running");
printf("PARENT: pid=%d\n", getpid());
puts("PARENT: FORKING");
pid_t pid = fork();
if (pid == 0) {
printf("CHILD : pid=%d (WITH PARENT: %d)\n", getpid(), getppid());
value += 1000;
} else {
printf("... | code_c | code | 158 | null |
<gh_stars>0
#pragma once
class Util
{
public:
static const float EPSILON;
public:
Util();
~Util();
static float trim(float value);
static float clamp(float v, float lo, float hi);
};
| code_c | code | 55 | null |
<filename>Tests/RXSimpleCardDescriptor_test.h
//
// RXSimpleCardDescriptor_test.h
// rivenx
//
// Created by <NAME> on 13/06/08.
// Copyright 2005-2012 MacStorm. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import "Engine/RXCardDescriptor.h"
@interface RXSimpleCardDescriptor_test : SenTestCas... | code_c | code | 106 | null |
<filename>base/include/vulkan_texture_manager.h
#ifndef VKS_VULKANTEXTUREMANAGER
#define VKS_VULKANTEXTUREMANAGER
#include <vulkan/vulkan.h>
#include <map>
#include <vulkan_texture.h>
#include <EASTL/unique_ptr.h>
#include <EASTL/vector.h>
#include <EASTL/hash_map.h>
#include <EASTL/string.h>
namespace vks {
class V... | code_c | code | 772 | null |
#include <stdio.h>
#include <stdlib.h>
// definir um node
typedef struct node
{
int value;
struct node* next;
} node;
// cria lista através de nós, ou seja, fazer com que crie uma lista, com a cabeça apontando para nulo
node *linked_list_node ()
{
return NULL;
}
// criando um no
node* create_node (int item)
{
... | code_c | code | 847 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* Shared application/kernel submission and completion ring pairs, for
* supporting fast/efficient IO.
*
* A note on the read/write ordering memory barriers that are matched between
* the application and kernel side.
*
* After the application reads the CQ ring tail, it must ... | code_c | code | 28,100 | null |
<filename>fxjs/xfa/cjx_template.h
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef FXJS_XFA_CJX_TEMPLATE_H_
#define FXJ... | code_c | code | 319 | null |
<reponame>noorbeast/blender<filename>source/blender/editors/interface/interface_template_search_operator.c
/*
* 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 Licens... | code_c | code | 1,276 | null |
#include <stdalign.h>
int main(void) {
int b = 4;
alignas(alignof(int **)) char array[100];
_Static_assert(
4 * sizeof(int **) <= sizeof array,
"This test requires that 4 * sizeof(int **) <= sizeof array");
int **p = (int **) array + 3;
*p = &b;
p = 0;
int *q = *(... | code_c | code | 112 | null |
<gh_stars>0
//
// OwnerRootVC.h
// SmallBizInvoices
//
// Created by <NAME> on 11/11/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OwnerRootVC : UIViewController
@end
| code_c | code | 62 | null |
#ifndef FORMVIOWINDOW_H
#define FORMVIOWINDOW_H
#include "workspace.h"
#include <QWidget>
#include <QDateTime>
#include <QCloseEvent>
#include <QFileInfo>
#include <QStatusBar>
#include <QLabel>
#include <QTimer>
#include <QThread>
class OPENVIO;
#include "openvio.h"
class FormCvWindow;
#include "formcvwindow.h"
... | code_c | code | 378 | null |
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
/*
SIG_DFL 默认的信号处理程序。
当执行程序时,同样是死循环,此时按下Ctrl+c进程停止,因为我们对2号信号采取默认动作处理,系统默认2号信号终止进程。
* */
int main()
{
signal(SIGINT, SIG_DFL);
while(1)
{
printf("开始休眠一秒钟...\n");
sleep(1);
}
return 0;
}
| code_c | code | 80 | null |
<filename>src/lib/access/storage/TableLoad.h
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved.
#ifndef SRC_LIB_ACCESS_TABLELOAD_H_
#define SRC_LIB_ACCESS_TABLELOAD_H_
#include "access/system/PlanOperation.h"
namespace hyrise {
namespace access {
class LoadTests_simpl... | code_c | code | 414 | null |
<filename>src/util/show_help.h
/*
* 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 and The University
* ... | code_c | code | 1,976 | null |
#ifndef RecoEgamma_EgammaTools_MVAVariableHelper_H
#define RecoEgamma_EgammaTools_MVAVariableHelper_H
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "FWCore/Framework/interface/Event.h"
#include <unordered_map>
#include <vector>
#include <string>
... | code_c | code | 276 | null |
/*
* Copyright (c) 2018-2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | code_c | code | 855 | null |
<filename>modules/Render/Render/src/Resources/Renderbuffer.c
/*
* Copyright 2017-2021 <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/LICE... | code_c | code | 1,218 | null |
/*
Copyright (c) 2019 Sogou, 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 required by applicable law or agreed to in writi... | code_c | code | 1,510 | null |
<reponame>agxmaster/polarphp
//===--- PropertyWrappers.h - Property Wrapper ASTs -----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//... | code_c | code | 2,036 | null |
#include "ticker.h"
#ifndef _WIN32
# include <stddef.h>
# include <time.h>
void ticker_init(struct ticker *tkr, int interval)
{
gettimeofday(&tkr->last_tick, NULL);
tkr->interval = (long)interval * 1000L;
}
void tick(struct ticker *tkr)
{
struct timeval now;
gettimeofday(&now, NULL);
long elapsed = (long)now.t... | code_c | code | 563 | null |
// bslstl_algorithmworkaround.h -*-C++-*-
#ifndef INCLUDED_BSLSTL_ALGORITHMWORKAROUND
#define INCLUDED_BSLSTL_ALGORITHMWORKAROUND
#ifndef INCLUDED_BSLS_IDENT
#include <bsls_ident.h>
#endif
BSLS_IDENT("$Id: $")
//@PURPOSE: Provide a namespace for work arounds for the standard algo... | code_c | code | 978 | null |
<filename>Pods/Headers/Public/PPHelpMe/UIColor+HelpMe.h
//
// UIColor+HelpMe.h
// PPHelpMe
//
// Created by <NAME> on 12/06/13.
//
//
#import <UIKit/UIKit.h>
@interface UIColor (HelpMe)
+ (UIColor*)colorWithHexa:(NSUInteger)hexa alpha:(CGFloat) alpha;
+ (UIColor*)colorWithHexa:(NSUInteger)hexa;
@end
| code_c | code | 87 | null |
#import <Foundation/Foundation.h>
@interface BTCCalculator : NSObject
+ (CGFloat)pointsPerInch;
+ (void)setPointsPerInch:(CGFloat)newPointsPerInch;
+ (CGFloat)bayesianTouchDistanceWithTouchPoint:(CGPoint)touchPoint
targetCenter:(CGPoint)targetCenter
ta... | code_c | code | 103 | null |
<reponame>liunina/TFoundation
//
// TLoggerFileFormatter.h
// TFoundation
//
// Created by <NAME> on 2020/3/30.
//
#import <Foundation/Foundation.h>
#import <CocoaLumberjack/CocoaLumberjack.h>
NS_ASSUME_NONNULL_BEGIN
@protocol TLoggerFieldsDelegate
- (NSDictionary *)loggerFieldsToIncludeInEveryLogStatement;
@end
... | code_c | code | 160 | null |
<filename>platform/esp8266/newlib-xtensa/newlib/libc/stdio/fseeko.c
/*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all ... | code_c | code | 2,890 | null |
<reponame>fishkingsin/FaceOffPhotobooth<gh_stars>0
/*
* FaceMapper.h
*
* Copyright (c) 2012, <NAME>, http://www.fishkingsin.com
* 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 | 3,094 | null |
/* R E A D I N T . C
* BRL-CAD
*
* Copyright (c) 1990-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... | code_c | code | 610 | null |
<filename>vendor/angle/include/platform/Platform.h
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Platform.h: Simple forwarding header to PlatformMethods.h.
// Ideally we can remove this f... | code_c | code | 115 | null |
<filename>FreeBSD/sys/arm/rockchip/rk30xx_gpio.c
/*-
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2012 <NAME> <<EMAIL>>
* Copyright (c) 2012 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | code_c | code | 4,392 | null |
//==============================================================================
//
// File: MatrixMath.h
//
// Purpose: Mathematical library for computer graphics
//
// Stolen heavily from GraphicsGems.h
// Version 1.0 - <NAME>
// from "Graphics Gems", Academic Press, 1990
//
//=============================... | code_c | code | 21,889 | null |
/*
** Licensed under the GNU Lesser General Public License v3 or later
*/
#pragma once
#define MYSQL_SERVER 1
#include "my_global.h" /* ulonglong */
#include "mytile-buffer.h"
#include <field.h>
#include <mysqld_error.h> /* ER_UNKNOWN_ERROR */
#include <tiledb/tiledb>
/** Table options */
struct ha_table_option_stru... | code_c | code | 2,784 | null |
/**
******************************************************************************
* @file stm8s_itc.c
* @brief This file contains all the functions for the ITC peripheral.
* @author STMicroelectronics - MCD Application Team
* @version V1.1.1
* @date 06/05/2009
*************************************... | code_c | code | 2,630 | null |
<reponame>usenixatc2021/SoftRefresh_Scheduling<gh_stars>1-10
/*
* linux/arch/m32r/mm/fault.c
*
* Copyright (c) 2001, 2002 <NAME>, and <NAME>
* Copyright (c) 2004 <NAME>, <NAME>
*
* Some code taken from i386 version.
* Copyright (C) 1995 <NAME>
*/
#include <linux/signal.h>
#include <linux/sched.h>
#in... | code_c | code | 4,194 | null |
#include "wm_hal.h"
extern DMA_HandleTypeDef hdma_spi_tx;
extern DMA_HandleTypeDef hdma_spi_rx;
extern void Error_Handler(void);
void HAL_MspInit(void)
{
}
void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi)
{
__HAL_RCC_SPI_CLK_ENABLE();
__HAL_AFIO_REMAP_SPI_CS(GPIOB, GPIO_PIN_4);
__HAL_AFIO_REMAP_SPI_CLK(GP... | code_c | code | 486 | null |
<filename>source/engine/util/util.h
#pragma once
#include <engine/geometry/BBox.h>
#include <vector>
#include <string>
class Mesh;
namespace util
{
/**
* Usage: offset(&SomeStructOrClass::someMember)
*/
template <class TClass, class TMember>
const void* offset(const TMember TClass::* member)
... | code_c | code | 209 | null |
#include "GLKLib.h"
#include <QEvent>
#include <QMouseEvent>
#include <QPoint>
#include <math.h>
#ifndef _GLKCAMERATOOL
#define _GLKCAMERATOOL
typedef enum camera_type {ORBIT,PAN,ZOOM,ORBITPAN,ZOOMWINDOW};
class GLKCameraTool : public GLKMouseTool
{
public:
GLKCameraTool(GLKLib *cView, camera_type ct)
{
... | code_c | code | 2,397 | null |
//
// UIViewController+XX3DFallAndRise.h
// XX3DRiseAndFall
//
// Created by inxx on 17/1/12.
// Copyright © 2017年 GoGoGold E-Commerce Co.Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, TransformType) {
TransformTypeM32 = 0,
TransformTypeM34,
};
@interface UIViewControlle... | code_c | code | 260 | null |
<filename>Development/Source/Engine/Framework/Graphics/Swapchain.h
#pragma once
#include "Engine/Framework/Graphics/DX12/SwapchainDX12.h"
#include "Engine/Framework/Graphics/GraphicsTypes.h"
namespace hd
{
class Allocator;
namespace sys
{
class SystemWindow;
}
namespace gfx
{
... | code_c | code | 262 | null |
<filename>CalcularVelocidadeMedia/main.c
#include <stdio.h> //Biblioteca de entrada e saida
int main(){
float distancia, tempo, vm; //Variaveis
printf("--------------------------");
printf("\nCALCULADORA VELOCIDADE MEDIA");
printf("\n--------------------------");
printf("\nInsira a distancia(km):");
scanf("%... | code_c | code | 138 | null |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <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 | 696 | null |
<reponame>Ingener74/Rocket
/******************************************************************************
* Spine Runtimes Software License
* Version 2.3
*
* Copyright (c) 2013-2015, Esoteric Software
* All rights reserved.
*
* You are granted a perpetual, non-exclusive, non-sublicensable and
* non-transfera... | code_c | code | 935 | null |
<gh_stars>0
#ifndef DALI_INTEGRATION_NATIVE_IMAGE_INTERFACE_EXTENSION_H
#define DALI_INTEGRATION_NATIVE_IMAGE_INTERFACE_EXTENSION_H
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | code_c | code | 559 | null |
<reponame>shenki/skiboot-debian
/* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | code_c | code | 2,769 | null |
// -*-c++-*-
/* $Id: rsa.h 1117 2005-11-01 16:20:39Z max $ */
/*
*
* Copyright (C) 2005 <NAME> (<EMAIL>)
* Copyright (C) 1998 <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 Found... | code_c | code | 1,160 | null |
<gh_stars>1-10
// ----------------------------------------------------------------------------
// Copyright 2017-2018 ARM Ltd.
//
// 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 the License.
// You may ob... | code_c | code | 949 | null |
/* gdb-io.c: FR403 GDB stub I/O
*
* Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
* Written by <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 Foundation; either version
*... | code_c | code | 1,420 | null |
// Copyright (c) 2016 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 NET_THIRD_PARTY_QUIC_TEST_TOOLS_MOCK_QUIC_SESSION_VISITOR_H_
#define NET_THIRD_PARTY_QUIC_TEST_TOOLS_MOCK_QUIC_SESSION_VISITOR_H_
#include "b... | code_c | code | 592 | null |
<filename>src/autopas/containers/verletListsCellBased/verletListsCells/traversals/VLCTraversalInterface.h
/**
* @file VLCTraversalInterface.h
* @author nguyen
* @date 16.09.18
*/
#pragma once
#include <array>
#include <utility>
#include <vector>
#include "autopas/containers/verletListsCellBased/verletListsCells/... | code_c | code | 1,537 | null |
//
// AGRestRequestCache.h
// AGRestStack
//
// Created by <NAME> on 27/10/2015.
// Copyright © 2015 The Social Superstore Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AGRestEventuallyQueue.h"
NS_ASSUME_NONNULL_BEGIN
@protocol AGRestRequestRunning;
extern unsigned long long const AGR... | code_c | code | 322 | null |
<reponame>BabyMelvin/Linux-Api
/*
* =====================================================================================
*
* Filename: server.c
*
* Description: udp 服务端
*
* Version: 1.0
* Created: 03/07/2018 10:41:43 AM
* Revision: none
* Compiler: gcc
*
* A... | code_c | code | 521 | null |
<filename>tests/logic.c
// Test the logic operators. We only test the basic correctness of the
// operators here, assuming that if the logic works in one case, it will
// work in all (if the C compiler doesn't implement it correctly, we're in
// trouble anyway!).
//
// (c) <NAME> 1994-2022
//
// The package is distribu... | code_c | code | 359 | null |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... | code_c | code | 2,398 | null |
<reponame>v1259397/cosmic-gnuradio<gh_stars>1-10
/* -*- c++ -*- */
/*
* Copyright 2009,2012,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... | code_c | code | 709 | null |
//
// XDVideoManager.h
// 摄像
//
// Created by 谢兴达 on 2017/3/23.
// Copyright © 2017年 谢兴达. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface XDVideoManager : NSObject
+ (XDVideoManager *)defaultManager;
/**
视频资源管理
@param tArray 视频地址数组
@param storePath 存储路径
@param s... | code_c | code | 201 | null |
/* Generic x86 gmp-mparam.h -- Compiler/machine parameter header file.
Copyright 1991, 1993, 1994, 2000-2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Pub... | code_c | code | 386 | null |
<reponame>Eithwa/kym2019
#ifndef _ENV_H_
#define _ENV_H_
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Geometry>
#include <vector>
using namespace Eigen;
const long PLAYERS_PER_SIDE = 3;
#define GameState_Halt 0
#define GameState_Play 1
#define GameState_FreeKick 2
#define GameState_Pe... | code_c | code | 1,643 | null |
<filename>compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c
// Regression test for https://crbug.com/502974, where ASan was unable to read
// the binary name because of sandbox restrictions.
// This test uses seccomp-BPF to restrict the readlink() system call and makes
// sure ASan is still able to
// RU... | code_c | code | 472 | null |
/*
* PyMD4C
* Python bindings for MD4C
*
* generic_parser.c - md4c._md4c.GenericParser class
* Wraps MD4C's SAX-like parser
*
* Copyright (c) 2020-2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software")... | code_c | code | 7,982 | null |
<gh_stars>0
/**
* This file is part of the "libterminal" project
* Copyright (c) 2019-2020 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, softw... | code_c | code | 543 | null |
//
// MEFunnyButton.h
// MEPedometer
//
// Created by 刘峰 on 2020/1/2.
// Copyright © 2020 Liufeng. All rights reserved.
// 让人误点的button按钮
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MEFunnyButton : UIButton
@end
NS_ASSUME_NONNULL_END
| code_c | code | 73 | null |
<reponame>hervewenjie/mysql<gh_stars>10-100
/* Copyright (c) 2010, 2012, Oracle and/or its affiliates. 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 as published by
the Free Software Foundation; version 2 of the Lice... | code_c | code | 732 | null |
<reponame>Elon777/DEMO
//
// ViewController.h
// DEMO
//
// Created by Elon on 16/7/22.
// Copyright © 2016年 XMG. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| code_c | code | 63 | null |
/* CoreAnimation - CATransformLayer.h
Copyright (c) 2006-2008 Apple Inc.
All rights reserved. */
#import <QuartzCore/CALayer.h>
/* "Transform" layers are used to create true 3D layer hierarchies.
*
* Unlike normal layers, transform layers do not project (i.e. flatten)
* their sublayers into the plane at Z=0... | code_c | code | 336 | null |
<filename>src/system/esp_mem_lwmem.c
/**
* \file esp_mem_lwmem.c
* \brief Dynamic memory manager implemented with LwMEM
*/
/*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files... | code_c | code | 589 | null |
<filename>third_party/mesa/MesaLib/src/mesa/main/imports.c
/**
* \file imports.c
* Standard C library function wrappers.
*
* Imports are services which the device driver or window system or
* operating system provides to the core renderer. The core renderer (Mesa)
* will call these functions in order to do memo... | code_c | code | 7,278 | null |
<reponame>AxlLind/compiler-construction
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define GC_HEAP_SIZE (1 << 20)
#define WORD_BITS (8 * sizeof(u32))
#define FREE_MAP_SIZE (GC_HEAP_SIZE / sizeof(u32))
#define GC_HDR_SIZE sizeof(struct gc_header)
#define GC_CANARY 0x4e542be6 // just ... | code_c | code | 1,187 | null |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | code_c | code | 545 | null |
/*
* PROGRAM: UTILITIES shared functions prototypes.
* MODULE: util_proto.h
* DESCRIPTION: Prototype header file for util.cpp
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance ... | code_c | code | 408 | null |
<gh_stars>0
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "llist.h"
#ifdef __cplusplus
extern "C" {
#endif
static inline uint32_t hash_func(const char *inp_key, uint32_t in_len);
static void llist_std_if(llist_pt inp_self);
struct _llist_entry;
typedef struct _llist_entry llist_en... | code_c | code | 2,810 | null |
<filename>vendor/iproute2-4.2.0/misc/lnstat.c
/* lnstat - Unified linux network statistics
*
* Copyright (C) 2004 by <NAME> <<EMAIL>>
*
* Development of this code was funded by Astaro AG, http://www.astaro.com/
*
* Based on original concept and ideas from predecessor rtstat.c:
*
* Copyright 2001 by <NAME> <<EMA... | code_c | code | 2,514 | null |
<filename>hackathon/hanchuan/sscope/FlyCapture2/gtk64/include/gtk-2.0/gtk/gtkstock.h
/* GTK - The GIMP Toolkit
* Copyright (C) 2000 Red Hat, 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 Softwar... | code_c | code | 2,286 | null |
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/shared/sigio.c,v 1.20 2005/10/14 15:17:07 tsi Exp $ */
/* sigio.c -- Support for SIGIO handler installation and removal
* Created: Thu Jun 3 15:39:18 1999 by <EMAIL>
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* P... | code_c | code | 2,696 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.