text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
/*-
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
/* Some systems don't configure 64-bit MIN/MAX by default. */
#ifndef ULLONG_MAX
#define ULLONG_MAX 0xffffffffffffffffULL
#endif
#ifndef LLONG_MAX
#define LLONG_MAX 0x7fffffffffffffffL... | code_c | code | 178 | null |
#pragma once
#include <vulkan/vulkan.h>
#include "VulkanWrapper/Info.h"
#include "VulkanWrapper/ArrayProxy.h"
#include "VulkanWrapper/enums.h"
#include "VulkanWrapper/Utilities.h"
#include "VulkanWrapper/structs.h"
namespace vk {
class Device;
class MemoryAllocateInfo : public InfoMixin<MemoryAllocateInfo, Vk... | code_c | code | 438 | null |
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
*
* 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 ... | code_c | code | 4,219 | null |
#pragma once
#include <srrg_types/defs.h>
#include <srrg_messages/sensor_message_sorter.h>
#include <ros/ros.h>
#include <sensor_msgs/JointState.h>
namespace srrg_core_ros {
class JointStateMessageListener {
//ds ctor/dtor (MUST NOT THROW)
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
JointStateMessage... | code_c | code | 274 | null |
#ifndef __pre_nw__
#define __pre_nw__
#include <stdint.h>
#ifndef __GNUC__
#pragma precompile_target "precomp.mch"
#endif
#define NETWARE
#define N_PLAT_NLM
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work fo... | code_c | code | 515 | null |
<filename>arch/risc-v/src/esp32c3/esp32c3_dma.c
/****************************************************************************
* arch/risc-v/src/esp32c3/esp32c3_dma.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this... | code_c | code | 4,047 | null |
//
// UIView+Extension.h
// MJRefreshExample
//
// Created by <NAME> on 14-5-28.
// Copyright (c) 2014年 itcast. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Extension)
@property (assign, nonatomic) CGFloat x;
@property (assign, nonatomic) CGFloat maxX;
@property (assign, nonatomic) CGFloat y... | code_c | code | 184 | null |
<filename>libft/src/libft_base/ft_strtrim.c
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_strtrim.c ... | code_c | code | 510 | null |
<gh_stars>0
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifi... | code_c | code | 2,442 | null |
<reponame>YCjia/kudu
// 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
/... | code_c | code | 5,949 | null |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... | code_c | code | 1,919 | null |
<gh_stars>10-100
#pragma once
#include <hash_map>
#include "Lidar\LidarCommon.h"
class CFixedPatchSet
{
public:
class CFixedPatchSet_hash_compare
{ // traits class for hash containers
public:
enum
{ // parameters for hash table
bucket_size = 4, // 0 < bucket_size
min_buckets = 8}; // min_buckets = 2 ^^ N... | code_c | code | 505 | null |
/*
* Copyright 2018, Espressif Systems (Shanghai) Pte Ltd.
* All rights regarding this code and its modifications reserved.
*
* This code contains confidential information of Espressif Systems
* (Shanghai) Pte Ltd. No licenses or other rights express or implied,
* by estoppel or otherwise are granted herein... | code_c | code | 513 | null |
<filename>mono/utils/mono-semaphore.c
/*
* mono-semaphore.c: mono-semaphore functions
*
* Author:
* <NAME> <<EMAIL>>
*
* (C) 2010 Novell, Inc.
*/
#include <config.h>
#include <errno.h>
#include "utils/mono-semaphore.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>... | code_c | code | 1,015 | null |
<reponame>Sixze/ALS-Refactored<gh_stars>10-100
#pragma once
#define GET_TYPE_STRING(TypeName) \
((void)sizeof(UE4Asserts_Private::GetMemberNameCheckedJunk((TypeName*)0)), TEXT(#TypeName))
| code_c | code | 54 | null |
<reponame>bopopescu/webrtc-streaming-node
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial... | code_c | code | 3,730 | null |
<reponame>Sandeep-Sarma/ngic-rtc
/*
* Copyright (c) 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | code_c | code | 1,903 | null |
//
// SDShortVideoController.h
// GSD_WeiXin(wechat)
//
// Created by aier on 16/2/11.
// Copyright © 2016年 GSD. All rights reserved.
//
/*
*********************************************************************************
*
* GSD_WeiXin
*
* QQ交流群: 362419100(2群) 459274049(1群已满)
* Email : <EMAIL>
* GitHub: ... | code_c | code | 274 | null |
<gh_stars>1-10
// File: IOHIDDevice_.c
// Abstract: convieance functions for IOHIDDeviceGetProperty
// Version: 5.0
//
// Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
// Inc. ("Apple") in consideration of your agreement to the following
// terms, and your use, installation, modification... | code_c | code | 5,570 | null |
<filename>BCC102/include/windows/sdk/TraceLoggingActivity.h
#pragma option push -b -a8 -pc -A- -w-pun /*P_O_Push*/
/* ++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
TraceLoggingActivity.h
Abstract:
TraceLogging activity logging helper classes and macros for C++ for
utilizing... | code_c | code | 8,086 | null |
<gh_stars>10-100
#include "os_common.h"
#include "asm.h"
#include "asmif.h"
#include "common.h"
#include "parser.h"
#include "parser_global.h"
#include "lexer.h"
#include "param.h"
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <search.h>
#include <string.h>
#include <strings.h>
#include <stdbool... | code_c | code | 1,962 | null |
<reponame>h-ssiqueira/Sort_Algorithms
// Default libraries
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// Directory libraries (created)
#include "Esoteric_Fun_Miscellaneous/Esoteric_Fun_Miscellaneous.h"
#include "Exchange/Exchange.h"
#include "Hyb... | code_c | code | 10,352 | null |
/*
* Copyright (c) 2015, Intel Corporation
* 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... | code_c | code | 1,089 | null |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#pragma once
#include "vw/common/future_compat.h"
#include "vw/common/string_view.h"
#include "vw/core/array_paramet... | code_c | code | 3,504 | null |
<reponame>sprowell/he4
/**
* @file
* Public API implementation for the He4 library.
*
* @code{text}
* |_| _ |_|
* | |(/_ |
* @endcode
*
* Copyright (c) 2015 by <NAME>, all rights reserved. Licensed under
* the BSD 2-Clause license. See the file license that is part of this
* distribution. This file may n... | code_c | code | 362 | null |
#include <stdio.h>
int main(){
int i;
scanf("%d", &i);
if( 90 <= i && i <= 100) printf("A\n");
else if( 80 <= i && i <= 89) printf("B\n");
else if( 70 <= i && i <= 79) printf("C\n");
else if( 60 <= i && i <= 69) printf("D\n");
else printf("F\n");
return 0;
} | code_c | code | 84 | null |
<gh_stars>1000+
#include "unpack.h"
#include "hevent.h"
#include "herr.h"
#include "hlog.h"
#include "hmath.h"
int hio_unpack(hio_t* io, void* buf, int readbytes) {
unpack_setting_t* setting = io->unpack_setting;
switch(setting->mode) {
case UNPACK_BY_FIXED_LENGTH:
return hio_unpack_by_fixed_length... | code_c | code | 1,731 | null |
<reponame>kazz12211/NuttX<filename>configs/olimex-lpc1766stk/include/board.h
/************************************************************************************
* configs/olimex-lpc1766stk/include/board.h
* include/arch/board/board.h
*
* Copyright (C) 2010-2012 <NAME>. All rights reserved.
* Author: <NAME> <... | code_c | code | 3,901 | null |
//----------------------------------------------------------------------------//
/*
* Copyright (c) 2009 Sony Pictures Imageworks 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:
*... | code_c | code | 1,649 | null |
<filename>SPOJ/Life, the University, and Everything.c
#include <stdio.h>
int main(void) {
int n;
while(scanf("%d", &n)>0 && n!=42)
{
printf("%d\n", n);
}
return 0;
}
| code_c | code | 50 | null |
/* ------------------------------------------------ *
* The MIT License (MIT)
* Copyright (c) 2020 <EMAIL>
* ------------------------------------------------ */
#ifndef UTIL_IMGUI_H_
#define UTIL_IMGUI_H_
#include "trt_dbface.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _imgui_data_t
{
dbface_conf... | code_c | code | 178 | null |
//
// IB_Border.h
// tms-ios
//
// Created by wangww on 2020/3/16.
// Copyright © 2020 wangziting. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
IB_DESIGNABLE // 动态刷新
@interface IB_Border : UIView
// 注意: 加上IBInspectable就可以可视化显示相关的属性
/** 可视化设置边框宽度 */
@property (nonatom... | code_c | code | 164 | null |
#pragma once
#include "Graphic/GraphicsContext.h"
struct GLFWwindow;
namespace Nibble {
class OpenGLContext : public GraphicsContext {
public:
OpenGLContext(GLFWwindow* window);
virtual void Init() override;
virtual void SwapBuffers() override;
private:
GLFWwindow* m_Window;
};
}
| code_c | code | 89 | 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 ma... | code_c | code | 1,458 | null |
<filename>Silicon/ElkhartlakePkg/Include/Library/PsdLib.h
/** @file
Copyright (c) 2018 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi/UefiBaseType.h>
#ifndef _ACPI_PSD_TABLE_UPDATE_H_
#define _ACPI_PSD_TABLE_UPDATE_H_
#define EFI_ACPI_PSD_SI... | code_c | code | 672 | null |
<gh_stars>1-10
/****************************************************************************
* arch/arm/src/stm32/stm32_rtc.h
*
* Copyright (C) 2011 <NAME>. All rights reserved.
* Copyright (C) 2011-2013, 2015-2016 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>> (Original for the F1)
* <NA... | code_c | code | 2,010 | null |
/*
** EPITECH PROJECT, 2019
** my.h
** File description:
** all prototypes.
*/
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
int flag_searcher(char *flags, char c);
void my_printf(char *str, ...);
int my_getnbr(char const *str);
void my_put_nbr(int nb);
void my_putchar(char c);
void my_putstr(char const ... | code_c | code | 470 | null |
<reponame>geaviation/shiny
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 2001-12 The R Core Team.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation... | code_c | code | 1,406 | null |
<reponame>hyu-scslab/vWeaver_ermia<gh_stars>0
#pragma once
#include <numa.h>
#include <condition_variable>
#include <fstream>
#include <functional>
#include <mutex>
#include <thread>
#include <sys/stat.h>
#include "../util.h"
#include "sm-defs.h"
#include "xid.h"
namespace ermia {
namespace thread {
struct CPUCor... | code_c | code | 1,634 | null |
<gh_stars>1000+
/*!
* @file DHT.h
*
* This is a library for DHT series of low cost temperature/humidity sensors.
*
* You must have Adafruit Unified Sensor Library library installed to use this
* class.
*
* Adafruit invests time and resources providing this open source code,
* please support Adafruit andop... | code_c | code | 903 | null |
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | code_c | code | 1,441 | null |
<filename>include/widgets/view/graphicsscene.h
#ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H
#include <QGraphicsScene>
#include <QObject>
#include <QPen>
#include "widgets/view/structures.h"
class GraphicsScene : public QGraphicsScene
{
Q_OBJECT
public:
GraphicsScene();
public:
void onPaintWhiteBoard(qrea... | code_c | code | 389 | null |
<filename>DK/DKFramework/DKRenderer.h
//
// File: DKRenderer.h
// Author: <NAME> (<EMAIL>)
//
// Copyright (c) 2004-2015 <NAME>. All rights reserved.
//
#pragma once
#include "../DKInclude.h"
#include "../DKFoundation.h"
#include "DKRenderTarget.h"
#include "DKPrimitiveIndex.h"
#include "DKVector2.h"
#include "DKVe... | code_c | code | 4,227 | null |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* OPCODE - Optimized Collision Detection
* Copyright (C) 2001 <NAME>
* Homepage: http://www.codercorner.com/Opcode... | code_c | code | 592 | null |
/*
* vsidmem.c -- C64 memory handling for the VSID emulator.
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* groepaz <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistr... | code_c | code | 7,484 | null |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016, Intel Corporation
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to de... | code_c | code | 843 | null |
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
*
* Copyright (c) 1995 <NAME>. All rights reserved.
*
* This file includes significant work done at Cornell University by
* <NAME>. That work included by permission.
*
* Redistribution and use in source and bin... | code_c | code | 1,971 | null |
/*
* FreeRTOS BLE HAL V4.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 deal in
* the Software without restriction, ... | code_c | code | 9,415 | null |
/*
Authors: <NAME>, <NAME>
Copyright:
Copyright (c) 2022 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 | 860 | null |
/*
* ======================================================================
* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
* Licensed under the MIT License.
* See LICENSE.md in the project root for license information.
* =====================================================================... | code_c | code | 316 | null |
<filename>src/FEI_mv/fei-hypre/HYPRE_LinSysCore.h
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2... | code_c | code | 8,962 | null |
<gh_stars>10-100
// 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 REMOTING_HOST_WIN_ELEVATED_NATIVE_MESSAGING_HOST_H_
#define REMOTING_HOST_WIN_ELEVATED_NATIVE_MESSAGING_HOST_H_
#include <cstdin... | code_c | code | 912 | null |
<reponame>LaudateCorpus1/google-cloud-cpp<gh_stars>0
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//... | code_c | code | 3,858 | null |
//
// ec_montgomery.c Montgomery Implementation
//
// Copyright (c) Microsoft Corporation. Licensed under the MIT license.
//
#include "precomp.h"
VOID
SYMCRYPT_CALL
SymCryptMontgomeryFillScratchSpaces(_In_ PSYMCRYPT_ECURVE pCurve)
{
UINT32 nDigits = SymCryptDigitsFromBits( pCurve->FModBitsize );
... | code_c | code | 4,822 | null |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | code_c | code | 1,239 | null |
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | code_c | code | 9,330 | null |
/*
* RVOSimulator.h
* RVO2 Library
*
* Copyright 2008 University of North Carolina at Chapel Hill
*
* 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/licen... | code_c | code | 8,353 | null |
<gh_stars>0
#ifndef MYKNN_ALGO_H
#define MYKNN_ALGO_H
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include<math.h>
#include <stdio.h>
#include <stdlib.h>
#include "knn.h"
#include "distances.h"
#include "map"
#include"algorithm"
using namespace std;
... | code_c | code | 250 | null |
/**************************************************************************
* Copyright (c) 2002-2009, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistrib... | code_c | code | 1,000 | null |
#ifndef SHADERPROGRAM_H
#define SHADERPROGRAM_H
namespace engine
{
class ShaderProgram
{
public:
ShaderProgram(const char* vsname, const char* fsname);
~ShaderProgram();
};
}
#endif // !SHADERPROGRAM_H
| code_c | code | 62 | null |
//////////////////////////////////////////////////////////////////
// (c) Copyright 2008- by <NAME>
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// National Center for Supercomputing Applications &
// Materials Computation Cen... | code_c | code | 874 | null |
#pragma once
#include <karm-base/enum.h>
#include <karm-base/std.h>
namespace Karm::Sys {
enum MmapFlags : uint64_t {
READ = (1 << 0),
WRITE = (1 << 1),
EXEC = (1 << 2),
DMA = (1 << 3),
STACK = (1 << 4),
LOWER = (1 << 5),
UPPER = (1 << 6),
};
FlagsEnum$(MmapFlags);
struct MmapOptions {
... | code_c | code | 126 | null |
<reponame>tomatosoupcan/shiromino<gh_stars>10-100
#ifndef _file_io_h
#define _file_io_h
#include <SDL2/SDL.h>
#include "core.h"
#include <string>
#include <vector>
#define OPTION_INVALID -255
#define MINIMUM_REPLAY_SIZE (long)(REPLAY_HEADER_SIZE + sizeof(struct keyflags))
#define REPLAY_HEADER_SIZE (6*sizeof(int) +... | code_c | code | 235 | null |
/* Exercise 1 - Calculations
Write a C program to input marks of two subjects. Calculate and print the average of the two marks. */
#include <stdio.h>
int main() {
int marks1, marks2, total;
float avg;
printf("\nEnter mark 1 : ");
scanf("%d", &marks1);
printf("Enter mark 2 : ");
scanf("%d", &marks2);
total = m... | code_c | code | 115 | null |
<reponame>copslock/broadcom_cpri
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* Show CLI commands
*
* Also contains:
* Check CLI command
* Clear CLI comm... | code_c | code | 18,226 | null |
/* Coldfire C Header File
* Copyright Freescale Semiconductor Inc
* All rights reserved.
*
* 2008/04/17 Revision: 0.2
*
* (c) Copyright UNIS, spol. s r.o. 1997-2008
* UNIS, spol. s r.o.
* Jundrovska 33
* 624 00 Brno
* Czech Republic
* http : www.processorexpert.com
* mail : <EMAIL>
*... | code_c | code | 2,045 | null |
#pragma once
#include "pch.h"
#include <string>
#include <array>
#include <iostream>
#include "CommonDefinitions.h"
#include <WinSock2.h>
#include <winerror.h>
#include <ws2tcpip.h>
#include <vector>
#pragma comment (lib, "Ws2_32.lib")
#pragma comment (lib, "Mswsock.lib")
#pragma comment (lib, "AdvApi32.lib")
class ... | code_c | code | 476 | null |
#ifndef TUPLE_H_INCLUDED
#define TUPLE_H_INCLUDED
#include "curry.h"
#include "container.h"
#include "bool.h"
namespace pftl{
//----------------------
//----------------------
//----------------------
struct Vector_t : public Container_t{};
template<auto...>
struct Vector{};
template<class... | code_c | code | 1,051 | null |
#pragma once
#include <json.hpp>
#include "ecs.h"
struct World;
EntityID parseEntity(const nlohmann::json& json, World* world);
| code_c | code | 37 | null |
#ifndef DNSTP_MyModel
#define DNSTP_MyModel
#include "DNest4/code/DNest4.h"
#include "BackgroundPoints.h"
#include <ostream>
namespace DNSTP
{
class MyModel
{
public:
// How many objective functions are there in this problem?
static constexpr size_t num_objective_functions = 2;
private:
... | code_c | code | 337 | null |
//
// TutorialView.h
// FitoutFace
//
// Created by <NAME> on 6/17/14.
// Copyright (c) 2014 binpit. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TutorialView : UIView
- (void)onDoneTouched:(id)sender;
@end
| code_c | code | 65 | null |
<filename>3rd/xulrunner-sdk/include/nsIEventSource.h
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/rel-m-rel-xr-osx64-bld/build/content/base/public/nsIEventSource.idl
*/
#ifndef __gen_nsIEventSource_h__
#define __gen_nsIEventSource_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/... | code_c | code | 2,330 | null |
<filename>IR-Controller/net/api.c
/*
* api.c
*
* Created: 3/20/2019 11:18:24 AM
* Author: Ruben
*/
#include "api.h"
int process_request(Request *req)
{
if (req->msg_type == Get_Encoding)
{
return 0;
}
if (req->msg_type == Perform_Command)
{
return 0;
}
return -1;
} | code_c | code | 80 | null |
/*
* Part of libstrvar.
*
* License: MIT, see LICENSE
* Authors: <NAME> <<EMAIL>, duge at IRCnet>
*/
#ifndef _STRCALC_H
#define _STRCALC_H
/******************************************************************************/
/* INCLUDES */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
... | code_c | code | 245 | null |
/*
* Copyright 2012-2018, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef BLIST_TYPE_HANDLER_H
#define BLIST_TYPE_HANDLER_H
#include "TypeHandler.h"
class BListTypeHandler : public TypeHandler {
public:
virtual ~BListTypeHandler();
virtual const char* Name() const;
virtual ... | code_c | code | 142 | null |
/*
* Copyright (C) 2016, STMicroelectronics - All Rights Reserved
* Author(s): <NAME>, <<EMAIL>> for STMicroelectronics.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _GPIO_H_
#define _GPIO_H_
enum stm32_gpio_port {
STM32_GPIO_PORT_A = 0,
STM32_GPIO_PORT_B,
STM32_GPIO_PORT_C,
STM32_GPIO_PORT_D,
STM32_GPI... | code_c | code | 627 | null |
/*
* Copyright 2015-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 "... | code_c | code | 2,287 | null |
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+-----... | code_c | code | 1,780 | null |
<gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <limits>
namespace ABI42_0_0facebook {
namespace ABI42_0_0React {
/*
* Type used to repre... | code_c | code | 462 | null |
<reponame>jpgrayson/sway
#ifndef _SWAY_CONTAINER_H
#define _SWAY_CONTAINER_H
#include <stdint.h>
#include <sys/types.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h>
#include "list.h"
#include "sway/tree/node.h"
struct sway_view;
struct sway_seat;
enum sway_container_layout {
L_NONE,
L_HORIZ,
L... | code_c | code | 2,914 | null |
<gh_stars>1-10
/*====================================================================
* Project: Board Support Package (BSP)
* Developed using:
* Function: Standard definitions for Sharp LH7A404 (ARM922T)
*
* Copyright HighTec EDV-Systeme GmbH 1982-2006
*=================================================================... | code_c | code | 17,229 | null |
<reponame>npocmaka/Windows-Server-2003
//**************************************************************************
// WOW fax support:
// supports delrina winfax only
// - nandurir created
//*********************************************************************... | code_c | code | 3,365 | null |
/*
* pythonmod.c: unbound module C wrapper
*
* Copyright (c) 2009, <NAME> (vasicek AT fit.vutbr.cz)
* <NAME> (xvavru00 AT stud.fit.vutbr.cz)
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... | code_c | code | 3,100 | null |
<reponame>pethipet/eb-guide-examples
#ifndef GTF_INCLUDED_LOCAL_DATAPOOL_IDENTIFIERS_H
#define GTF_INCLUDED_LOCAL_DATAPOOL_IDENTIFIERS_H
#include <gtf/types/TypesC99.h>
#endif //GTF_INCLUDED_LOCAL_DATAPOOL_IDENTIFIERS_H
| code_c | code | 63 | null |
<reponame>li5ch/tencentcloud-sdk-cpp<gh_stars>10-100
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | code_c | code | 1,528 | null |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "Specta.h"
#import "SpectaDSL.h"
#import "SpectaTypes.h"
#import "SpectaUtility.h"
#import "SPTCallSite.h"
#import "S... | code_c | code | 205 | null |
<reponame>abhaikollara/tensorflow
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unle... | code_c | code | 886 | null |
<reponame>awesome-archive/hashcat<gh_stars>1-10
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#include "common.h"
#include "benchmark.h"
const unsigned int DEFAULT_BENCHMARK_ALGORITHMS_CNT = 149;
const unsigned int DEFAULT_BENCHMARK_ALGORITHMS_BUF[] =
{
900,
0,
5100,
100,
1400,
10800... | code_c | code | 424 | null |
<gh_stars>1-10
/* client.c: NFS client sharing and management code
*
* Copyright (C) 2006 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 Sof... | code_c | code | 12,993 | null |
<filename>src/http/ngx_http_script.h
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_HTTP_SCRIPT_H_INCLUDED_
#define _NGX_HTTP_SCRIPT_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
u_char *ip;
u_char ... | code_c | code | 2,230 | null |
/**
* Copyright 2016 Confluent 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 ... | code_c | code | 8,726 | null |
<filename>star_tracker/src/ASF/sam0/utils/cmsis/samd21/include/instance/dmac.h<gh_stars>10-100
/**
* \file
*
* \brief Instance description for DMAC
*
* Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these te... | code_c | code | 1,975 | null |
/*
Copyright (c) 2011, Ascending Technologies GmbH
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 list of con... | code_c | code | 2,090 | null |
/***********************************************************************
MODULE : CMNDLG.C
FUNCTIONS :
COMMENTS :
************************************************************************/
#include "windows.h"
#include "mfdcod32.h"
/********************************************************... | code_c | code | 2,519 | null |
#pragma once
#include "python_export.h"
#include "log.h"
#include <boost/python.hpp>
namespace bp = boost::python;
namespace Gadgetron
{
/// Initialize Python and NumPy. Called by each PythonFunction constructor
EXPORTPYTHON void initialize_python(void);
/// Initialize NumPy
EXPORTPYTHON void initialize_numpy(void);... | code_c | code | 1,541 | null |
<filename>common/i2c_trace.c
/* Copyright 2019 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.
*/
#include "common.h"
#include "console.h"
#include "i2c.h"
#include "stddef.h"
#include "stdbool.h"
#include "util.h"
... | code_c | code | 1,414 | null |
<reponame>WhyWolfie/source2007
#ifndef _MSMARTREFRESHIMPL_H
#define _MSMARTREFRESHIMPL_H
//#pragma once
#include "MSmartRefresh.h"
class MMatchObject;
class MMatchChannel;
class MMatchClan;
//// MRefreshCategoryChannel ////
class MRefreshCategoryChannelImpl : public MRefreshCategory {
protected:
MMatchChannel* m_... | code_c | code | 490 | null |
//
// DataDicConstant.h
// WarmHomeGZ
//
// Created by tangyunchuan on 2018/11/19.
//
extern NSString *const BaseApi; // api服务器
//***************************首页相关************************//
//***************************我的相关************************//
//***************************消息提醒相关*****... | code_c | code | 840 | null |
// youji.c 遊驥
#include <ansi.h>
inherit NPC;
void create()
{
set_name("遊驥", ({ "<NAME>", "you", "ji" }) );
set("gender", "男性");
set("nickname",HIW"遊氏雙雄"NOR);
set("title","聚賢莊大莊主");
set("age", 40);
set("long","他就是聚賢莊的大莊主遊驥。\n");
set("combat_exp", 300000);
... | code_c | code | 420 | null |
<gh_stars>0
/*
* This contains encryption functions for per-file encryption.
*
* Copyright (C) 2015, Google, Inc.
* Copyright (C) 2015, Motorola Mobility
*
* Written by <NAME>, 2014.
*
* Filename encryption additions
* <NAME>, 2014
* Encryption policy handling additions
* <NAME>, 2014
* Add fscrypt_pullback... | code_c | code | 3,990 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.