text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -D__ARM_FEATURE_SVE -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -D__ARM_FEATURE_SVE -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target... | code_c | code | 8,297 | null |
<filename>ConfProfile/jni/strongswan/src/libcharon/sa/ikev1/tasks/aggressive_mode.h<gh_stars>1-10
/*
* Copyright (C) 2012 <NAME>
* Copyright (C) 2012 revosec AG
*
* 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
* Fre... | code_c | code | 415 | null |
/*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView lice... | code_c | code | 899 | null |
/*
* Copyright (c) 2011 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | code_c | code | 522 | null |
<reponame>BepInEx/dotnet-runtime<gh_stars>1-10
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
// CLRConfigValues.h
//
//
// Unified method of accessi... | code_c | code | 21,426 | null |
<reponame>hiroog/CCTFLibrary
// 2019/09/01 <NAME>
// vim:ts=4 sw=4 noet:
#ifndef CCTFSYSTEM_H_
#define CCTFSYSTEM_H_
#include <stdarg.h>
#include <stddef.h>
namespace cctf {
//-----------------------------------------------------------------------------
//------------------------------------------------------------... | code_c | code | 553 | null |
// esp32_cam sensor_t clashes with adafruit sensor, so need to namespace
// this library if also using sensor.
#include "JPEGDEC.h"
#include "esp_camera.h"
#include <driver/rtc_io.h>
// AI_THINKER ESP-32 cam pinout
#define PWDN_GPIO_NUM 32
#define RESET_GPIO_NUM -1
#define XCLK_GPIO_NUM 0
#define SIOD_GPI... | code_c | code | 6,096 | null |
<gh_stars>0
#pragma once
struct Viewport
{
explicit Viewport(float x = 0.0f, float y = 0.0f, float width = 0.0f, float height = 0.0f, float minDepth = 0.0f, float maxDepth = 1.0f)
: X(x)
, Y(y)
, Width(width)
, Height(height)
, MinDepth(minDepth)
, MaxDepth(maxDepth)
{}
float X;
float Y;
float Width;... | code_c | code | 106 | null |
/*------------------------------------------------------------------------------
-- --
-- This software is confidential and proprietary and may be used --
-- only as expressly authorized by a licensing agreement from ... | code_c | code | 817 | null |
#ifndef RUBY_DL_H
#define RUBY_DL_H
#include <ruby.h>
#if !defined(FUNC_CDECL)
# define FUNC_CDECL(x) x
#endif
#if defined(HAVE_DLFCN_H)
# include <dlfcn.h>
# /* some stranger systems may not define all of these */
#ifndef RTLD_LAZY
#define RTLD_LAZY 0
#endif
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif
#ifndef... | code_c | code | 2,251 | null |
#ifndef MOVE_H
#define MOVE_H
#include <set>
#include "model/Location.h"
class Move {
private:
Location start_;
Location end_;
public:
Move(Location start, Location end);
Location start() const;
Location end() const;
};
bool operator==(const Move lhs, const Move rhs);
bool operator<(const Mov... | code_c | code | 110 | null |
#ifndef ARCH_UTILS_H
#define ARCH_UTILS_H
namespace ArchUtils
{
/// Returns the full path of the preferred config file to load.
std::string findConfigFile( const std::string &name );
};
#endif // ARCH_UTILS_H
| code_c | code | 61 | null |
<reponame>ricortiz/OpenTissue
#ifndef OPENTISSUE_CORE_MATH_BIG_SYMMETRIC_GAUSS_SEIDEL_H
#define OPENTISSUE_CORE_MATH_BIG_SYMMETRIC_GAUSS_SEIDEL_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University of Copenh... | code_c | code | 1,191 | null |
//
// btls-error.c
// MonoBtls
//
// Created by <NAME> on 6/19/16.
// Copyright © 2016 Xamarin. All rights reserved.
//
#include "btls-error.h"
#include "btls-util.h"
#include <assert.h>
MONO_API int
mono_btls_error_peek_error (void)
{
return ERR_peek_error ();
}
MONO_API int
mono_btls_error_get_error (void)
{
... | code_c | code | 326 | null |
//===- DRFScopedNoAlias.h - DRF-based scoped-noalias metadata ---*- 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 | 278 | null |
<reponame>roMummy/imagemagick_lib_ios
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authori... | code_c | code | 851 | null |
<gh_stars>0
/*
* 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 req... | code_c | code | 536 | null |
#pragma once
#include <condition_variable>
#include <cstring>
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include "common.h"
#include "qt_helper.h"
namespace SCAMP {
class Tile {
private:
// Per worker input vectors
std::unique_ptr<double, std::function<void(double *)>> _T_A_dev, _... | code_c | code | 1,288 | null |
/*
* cbm2ui.c - Implementation of the CBM-II specific part of the UI.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... | code_c | code | 1,381 | null |
<reponame>kbiva/stm32f103_libs
/*
* enc28j60.c
*
* Author: <NAME>
*
* Adapted from:
* http://we.easyelectronics.ru/electro-and-pc/podklyuchenie-mikrokontrollera-k-lokalnoy-seti.html
*/
#include "stm32f10x_conf.h"
#include "enc28j60.h"
#include "delay.h"
static GPIO_TypeDef* GPIO_CS;
static uint16_t GPIO_Pi... | code_c | code | 2,023 | null |
#include <stdio.h>
char buf[10];
int used[10],n;
void dfs(int x){
if(x==n){
for(int i=0;i<n;i++){
printf("%5d",buf[i]);
}
putchar('\n');
return ;
}
for(int i=1;i<=n;i++) if(!used[i]){
used[i]=1;
buf[x]=i;
dfs(x+1);
used[i]=0;
}
}
int main(){
scanf("%d",&n);
dfs(0);
return 0;
}
| code_c | code | 87 | null |
#ifndef PLOTWIDGET_H
#define PLOTWIDGET_H
#include <QWidget>
class MyTableModel;
class QTimer;
class PlotWidget : public QWidget
{
Q_OBJECT
public:
explicit PlotWidget(MyTableModel *table, QWidget *parent = 0);
~PlotWidget();
public slots:
void setAngle(int angle);
protected:
void paintEvent(QP... | code_c | code | 139 | null |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Tor<NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
o... | code_c | code | 1,432 | null |
<gh_stars>10-100
#include <std.h>
#include "../../gantioch.h"
inherit ROOMS"foothills.c";
void create()
{
::create();
set_long(::query_long()+
" %^RESET%^%^ORANGE%^In the earth here is a large hole in the foothills, with large marks in the"+
" earth around it, as if a lot of traffic has been going in and ... | code_c | code | 324 | null |
<reponame>Masterchief-07/DataStructure-C
#include "hashtable.h"
int hashage(const char* charactere){
int i=0;
while(*charactere != '\0'){
//printf("%c", *charactere);
i+=(int)*charactere;
charactere++;
}
return i%100;
}
| code_c | code | 74 | null |
<reponame>haraki/FolderModelTest
#ifndef WIN32_H
#define WIN32_H
#include <QtGlobal>
#ifdef Q_OS_WIN
#include <QFileInfo>
#include <QString>
namespace Farman
{
namespace Win32
{
extern bool isSystemFile(const QFileInfo& fileInfo);
extern qint64 getFileSizeOnDisk(const QString& filePath);
extern QString getCompile... | code_c | code | 130 | null |
//
// ITMan.h
// Fanxing
//
// Created by Zhuge_Mac on 16/12/6.
// Copyright © 2016年 Magic. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Language.h"
@interface ITMan<__contravariant ObjectType> : NSObject
@property (nonatomic,strong) ObjectType language;
@end
| code_c | code | 82 | null |
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/g++.dg/vect/simd-clone-2.h
struct S
{
int s;
#pragma omp declare simd notinbranch
int f0 (int x);
#pragma omp declare simd notinbranch uniform(this)
int f1 (int x);
#pragma omp declare simd notinbranch linear(this:sizeof(this)/sizeof(thi... | code_c | code | 131 | null |
/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | code_c | code | 663 | null |
<filename>src/c/storage-classes/extern_main.c
/*
* Created by gt on 10/19/21 - 10:40 AM.
* Copyright (c) 2021 GTXC. All rights reserved.
*/
#include <stdio.h>
int main_to_foo = 15;
extern int foo_to_main;
extern void foo();
//extern void foo2();
int main() {
++main_to_foo;
printf("foo_to_main: %i\n", ++fo... | code_c | code | 102 | null |
<filename>target/device/libio/arduino/x86/libraries/TimerOne/TimerOne.h<gh_stars>1-10
/*
* Interrupt and PWM utilities for 16 bit Timer1 on ATmega168/328
* Original code by <NAME> for http://labs.ideo.com August 2008
* Modified March 2009 by <NAME> and <NAME> for ATmega328 support
* Modified June 2009 by <NAME>... | code_c | code | 853 | null |
<reponame>drtrigon/sketchbook<gh_stars>1-10
/*
MicroView Arduino Library
Copyright (C) 2014 GeekAmmo
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 3 of the Licens... | code_c | code | 2,913 | null |
<gh_stars>100-1000
/*
* Tamgu (탐구)
*
* Copyright 2019-present NAVER Corp.
* under BSD 3-clause
*/
/* --- CONTENTS ---
Project : Tamgu (탐구)
Version : See tamgu.cxx for the version number
filename : tamgutransducer.h
Date : 2017/09/01
Purpose :
Programmer : <NAME> (<EMAIL>)
Re... | code_c | code | 2,090 | null |
<reponame>Tomitomi1021/packetAnalyzer<gh_stars>0
struct ICMP_echo{
WORD id;
WORD seq;
BYTE* data;
};
struct ICMP_data{
BYTE type;
BYTE code;
WORD checksum;
union{
BYTE* data;
struct ICMP_echo echo;
};
};
int ICMP_parse(BYTE* data,int size,struct ICMP_data* res);
char* ICMP_messageName(int type);
| code_c | code | 89 | null |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserved. *... | code_c | code | 991 | null |
<filename>src/meta.h
#ifndef __META_H__
#define __META_H__
int FTI_GetChecksums(FTIT_configuration* FTI_Conf, FTIT_execution* FTI_Exec,
FTIT_topology* FTI_Topo, FTIT_checkpoint* FTI_Ckpt,
char* checksum, char* ptnerChecksum, char* rsChecksum);
int FTI_WriteRSedChecksum(FTIT_configuration* FTI_Conf, FTI... | code_c | code | 570 | null |
<reponame>ribosaki/nVenn
#ifndef GRAPHICS_H_INCLUDED
#define GRAPHICS_H_INCLUDED
#include <gl/gl.h>
#include <gl/glu.h>
#include "bmpfont.h"
//#include <windows.h>
class glGraphics{
public:
vector<point> glCircle(float x, float y, float r)
{
borderLine dummy;
point temp;
dummy.initPoint(&temp)... | code_c | code | 1,864 | null |
/* See LICENSE for license details */
#ifndef cv_thread_pred_h_
#define cv_thread_pred_h_
/* Predefine */
typedef union cv_thread cv_thread;
/* Predefine */
typedef struct cv_thread_desc cv_thread_desc;
/* Predefine */
typedef union cv_thread_ptr cv_thread_ptr;
/* Predefine */
typedef union cv_thread_desc_ptr cv_t... | code_c | code | 107 | null |
<reponame>DrItanium/electron
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.24 07/01/05 */
/* ... | code_c | code | 1,287 | null |
#include "ezport.h"
#ifdef ostype_winnt
#include <process.h>
#include "jr/syscalls.h"
jr_int jr_getpid ()
{
return _getpid ();
}
#else
#include <unistd.h>
#include "jr/syscalls.h"
jr_int jr_getpid ()
{
return getpid ();
}
#endif
| code_c | code | 69 | null |
#ifndef RX_CORE_HINTS_UNREACHABLE_H
#define RX_CORE_HINTS_UNREACHABLE_H
#include "rx/core/config.h" // RX_COMPILER_{GCC,CLANG,MSVC}
// # Unreachable
//
// Hint to indicate that some scope is tautologically unreachable. This hint
// is usually used to suppress warnings in contexts that the compiler cannot
// deduce.
#i... | code_c | code | 251 | null |
// Copyright 2018 The Goma 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 DEVTOOLS_GOMA_CLIENT_TIME_UTIL_H_
#define DEVTOOLS_GOMA_CLIENT_TIME_UTIL_H_
#include <string>
#include "absl/time/time.h"
namespace devtools_goma {... | code_c | code | 551 | null |
/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
*
* Copyright 1992-2021 Silicon Laboratories Inc. www.silabs.com
*
* ... | code_c | code | 4,822 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/backup/Backup_EXPORTS.h>
#include <aws/backup/BackupRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/backup/model/BackupJobState.h>
#include <aws/co... | code_c | code | 6,852 | null |
<reponame>gregoryc/democracy
/*
Shiltiumcomp -- the first Shiltolang compiler
Copyright (C) 2010 <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 3 of the License, or
... | code_c | code | 2,087 | null |
/*
* mjs copyright
*/
/*
* MD primitives supporting placement of module data
*
* XXX should check load address/size against memory top.
*/
#include <stand.h>
#include "libi386.h"
#include "btxv86.h"
#define READIN_BUF (16 * 1024)
int
i386_copyin(void *src, vm_offset_t dest, size_t len)
{
if (dest + len >=... | code_c | code | 296 | null |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <memory>
#include <utility>
#include "logdevice/common/configur... | code_c | code | 968 | null |
<reponame>Ddnirvana/test-CI
#ifndef _PLATFORM_H
#define _PLATFORM_H
#include "spmp.h"
#include "enclave_mm.h"
#include "ipi_handler.h"
#include "platform_thread.h"
int platform_init();
#endif /* _PLATFORM_H */
| code_c | code | 60 | null |
#include "fildesh_compat_random.h"
#include "bittable.h"
#include "urandom.h"
/** If our uint32 type is more than 32 bits, then this mask
* should be applied to ensure overflowing sums are truncated.
* But uint32_t should be 32 bits, so it isn't used.
**/
#define MASK32(x) (UINT32_MAX & (x))
#define MASK16(x) (U... | code_c | code | 1,207 | null |
<gh_stars>0
/**
* @file sakura_thread.h
*
* @author <NAME> <<EMAIL>>
*
* @copyright Apache License Version 2.0
*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | code_c | code | 828 | null |
<filename>habitat-sim/src/esp/gfx/RenderCamera.h
// 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 "magnum.h"
#include "esp/core/esp.h"
#include "esp/scene/SceneNode.h... | code_c | code | 419 | null |
// Copyright 2015 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 THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_SVG_FILTER_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_SVG_FILTER_PAINTER_H_
#include <memory>... | code_c | code | 518 | null |
/*
* FFDefs.h
* FunctionFlip
*
* Created by <NAME> on 9/3/08.
// Copyright (c) 2008-2010, <NAME>, http://kevingessner.com
//
// 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 Softwa... | code_c | code | 1,015 | null |
#include <std.h>
#include <daemons.h>
#include "area_stuff.h"
inherit CROOM;
void create()
{
::create();
set_property("light",2);
set_property("indoors",0);
set_property("no teleport", 1);
set_property("scry proof", 1);
set_climate("arctic");
set_name("Inside an ebon chamber");
set_short("%^B... | code_c | code | 185 | null |
/*
*
*
* 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.
*/
/*************
* INCLUDES *
*/
#include <shared/bsl.h>
#include <bcm/error.h>
#include <bcm/debug.h>
#inc... | code_c | code | 3,523 | null |
<reponame>hopv/rust-horn
#include "seahorn/seahorn.h"
#include <stdlib.h>
extern int nd();
struct Cons {
int head;
struct Cons *tail;
};
typedef struct Cons *List;
void append(List *pxs, List ys) {
if (*pxs != NULL)
append(&((*pxs)->tail), ys);
else
*pxs = ys;
}
int sum(List xs) {
if (xs == NULL)
... | code_c | code | 191 | null |
<filename>UltraDV/Headers/TAudioLevelsView.h
//---------------------------------------------------------------------
//
// File: TAudioLevelsView.h
//
// Author: <NAME>
//
// Date: 05.29.98
//
// Desc: Display audio levels
//
//
// Copyright ©1998 mediapede Software
//
//---------------------------------------------... | code_c | code | 380 | null |
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | code_c | code | 1,026 | null |
<gh_stars>0
//
// MozzatTextF.h
// MozzatTextF
//
// Created by taotingxing on 2018/12/19.
// Copyright © 2018 陶庭兴. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MozzatTextF : UITextField
@end
NS_ASSUME_NONNULL_END
| code_c | code | 74 | null |
// Group C
// <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
#pragma once
#include "Menu.h"
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <sstream>
#include <time.h>
using namespace std;
using namespace sf;
const int M = 20; // Y-Axis
const int Z = 10; // X-Axis
int field[M... | code_c | code | 1,900 | null |
//
// SchoolListHelper.h
// TLChat
//
// Created by 戴王炯 on 4/26/16.
// Copyright © 2016 李伯坤. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SchoolListHelper : NSObject
@property (nonatomic, strong) NSMutableArray *SchoolListData;
@end
| code_c | code | 75 | null |
<reponame>tangyibin/goblin-core
/*===-- llvm-c/IRReader.h - IR Reader C Interface -----------------*- C -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... | code_c | code | 470 | 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 BaseRenderingContext2D_h
#define BaseRenderingContext2D_h
#include "bindings/modules/v8/HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrIm... | code_c | code | 3,716 | null |
<reponame>elsys/c-programming-hw
#include <stdio.h>
#define max_chars 1000
int main()
{
char t[max_chars];
char albet[27]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','\0'};
int i, j=0, k, found;
fgets(t, max_chars, stdin);
for(k=0; albet[k]!='\0'; k++)... | code_c | code | 157 | null |
<reponame>FarouDev/Projects-for-beginner-with-Cpp
#pragma option push -b -a8 -pc -A- -w-pun /*P_O_Push*/
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.00.0611 */
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high ... | code_c | code | 3,871 | null |
<gh_stars>1-10
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "K2Node.h"
#include "K2Node_SetVariableOnPersistentFrame.generated.h"
/*
* FOR INTERNAL USAGE ONLY!
*/
UCLASS(MinimalAPI)
class UK2Node_SetVariableOnPersist... | code_c | code | 206 | null |
/*
* AsyncFileWriteChecker.h
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ... | code_c | code | 1,718 | null |
<reponame>SmartPolarBear/clox<filename>helper/include/helper/console.h
// Copyright (c) 2021 SmartPolarBear
//
// 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, includin... | code_c | code | 584 | null |
<reponame>tqhuy2018/CSPR-ObjectiveC-SDK
#ifndef Transform_WriteTransfer_h
#define Transform_WriteTransfer_h
#import "Transfer.h"
/**Class built for storing Transform_WriteTransfer information. This class store Transform enum of type WriteTransfer. The Transform enum is based on this address:
https://docs.rs/casper-ty... | code_c | code | 224 | null |
<reponame>alonsoJASL/lassy<filename>lassy++/include/LaShellAtlas.h
/*
* Author:
* Dr. <NAME>
* Department of Biomedical Engineering, King's College London
* Email: <EMAIL> 'dot' <EMAIL>
* Copyright (c) 2017
*/
/*
* The LaShellAtlas can create an atlas from a list of target shells, preferably w... | code_c | code | 385 | null |
<reponame>rlourette/TI_SDK_u-boot-2019.01
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2014 Freescale Semiconductor, Inc.
*
* This file handles the board muxing between the RGMII/SGMII PHYs on
* Freescale LS1021AQDS board. The RGMII PHYs are the three on-board 1Gb
* ports. The SGMII PHYs are provided by the... | code_c | code | 1,202 | null |
<filename>weex_core/Source/include/JavaScriptCore/heap/RegisterState.h
/**
* 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
... | code_c | code | 1,299 | null |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkEncodedImageFormat_DEFINED
#define SkEncodedImageFormat_DEFINED
#include <stdint.h>
/**
* Enum describing format of encoded data.
*/
enum class SkEncodedImageFo... | code_c | code | 155 | null |
#pragma once
#include "../global.h"
/**
* \file overworld_data.h
* \brief A file to be included only by "src/overworld.c". Contains data relevant
* to initializing trainer battles and walking scripts.
*/
#define SCRCMD_TRAINERBATTLE 0x5C
#define sOrdinaryBattleParams (struct TrainerBattleParameter*) 0x83C690... | code_c | code | 741 | null |
<filename>Libraries/BulletAnimatSim/BlPrismaticLimit.h
#pragma once
namespace BulletAnimatSim
{
namespace Environment
{
namespace Joints
{
class BULLET_PORT BlPrismaticLimit : public AnimatSim::Environment::ConstraintLimit, public OsgAnimatSim::Environment::Joints::OsgPrismaticLimit
{
protected:
v... | code_c | code | 183 | null |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTS_H__
#define SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTS_H__
#include <memory>
#include "base/check.h"
#include "... | code_c | code | 1,751 | null |
/*
Copyright (c) 2018-2019, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the ... | code_c | code | 1,039 | null |
#pragma bank 2
#include <gb/gb.h>
#include "config.h"
#include "gamevars.h"
#include "sram_alloc.h"
#include "txtwind.h"
uint16_t txtwind_lines;
void txtwind_init(void) BANKED {
txtwind_lines = 0;
}
void txtwind_append(uint16_t line_ptr, uint8_t line_bank) BANKED {
if (txtwind_lines > MAX_TEXT_WINDOW_LINES) {
r... | code_c | code | 227 | null |
//
// TangramLayoutProtocol.h
// Tmall4iPhone
//
// Created by jiajun on 8/13/15.
// Copyright (c) 2015 alibaba. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TangramItemModelProtocol.h"
#import "TangramBus.h"
typedef NS_ENUM(NSInteger,TangramLayoutLoadType)
{
TangramLayoutLoadTypeNone = 0... | code_c | code | 648 | null |
<gh_stars>0
/**********************************************************************
Audacity: A Digital Audio Editor
Repeat.h
<NAME>
**********************************************************************/
#ifndef __AUDACITY_EFFECT_REPEAT__
#define __AUDACITY_EFFECT_REPEAT__
#include "Effect.h"
class wxText... | code_c | code | 430 | null |
#pragma once
#include <logging/LogLevel.h>
#include <logging/Logger.h>
#include <string.h>
namespace Greet {
/*
Singleton class for logging
*/
class Log
{
private:
// Logger for the logging system
Logger m_logger;
// Singleton Log
static Log m_log;
public:
privat... | code_c | code | 713 | null |
<gh_stars>0
#include <no_macros.h>
/* Component types */
typedef struct {
double x, y;
} Position, Velocity;
/* Implement a simple move system */
void Move(ecs_iter_t *it) {
/* Get the two columns from the system signature */
Position *p = ecs_column_w_size(it, sizeof(Position), 1);
Velocity *v = ecs_... | code_c | code | 684 | null |
//
// Copyright (c) 2019 The Aquarium 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.
//
// FishModelDawn.h: Defnes fish model of Dawn
#ifndef FISHMODELDAWN_H
#define FISHMODELDAWN_H
#include "dawn/webgpu_cpp.h"
#include ".... | code_c | code | 595 | null |
<reponame>chromium/chromium
// Copyright 2015 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 THIRD_PARTY_BLINK_RENDERER_CORE_INPUT_INPUT_DEVICE_CAPABILITIES_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_INPUT_INPUT... | code_c | code | 696 | null |
<reponame>linlinyin1991/ELKitSDK
#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 "NSDate+ELExtension.h"
#import "NSString+ELExtension.h"
#import "UIColor+ELExtension... | code_c | code | 206 | null |
// -*- c++ -*-
#pragma once
#include <string>
#include <faiss/FaissHookFvec.h>
#include <faiss/impl/ScalarQuantizer.h>
#include <faiss/MetricType.h>
namespace faiss {
typedef SQDistanceComputer* (*sq_get_distance_computer_func_ptr)(MetricType, QuantizerType, size_t, const std::vector<float>&);
typedef Quantizer* (... | code_c | code | 223 | null |
<filename>projects/ip_test/testbench/testcase/include/platform.h
#ifndef PLATFORM_H
#define PLATFORM_H
#define DEVICE_NAME "test platform - no device in particular"
#define TEST_REG_BASE 0xFFFFFFF0
#define RCN_RAM0_BASE 0xFFFE0000
#define RCN_UART0_BASE 0xFFFFFFB8
#define RCN_RAM1_BASE 0xFF0E... | code_c | code | 158 | null |
/*
* $FreeBSD: soc2013/dpl/head/usr.sbin/keyserv/keyserv.h 173455 2007-11-07 10:53:41Z kevlo $
*/
extern void setmodulus(char *modx);
extern keystatus pk_setkey( uid_t, keybuf );
extern keystatus pk_encrypt( uid_t, char *, netobj *, des_block * );
extern keystatus pk_decrypt( uid_t, char *, netobj *, des_block * );
... | code_c | code | 198 | null |
<reponame>celskeggs/sel4-misc
#include <bedrock/bedrock.h>
#include <elfloader/ctxexec.h>
#include <elfloader/elfcontext.h>
#include <ipc/ipc.h>
uint32_t exec_init(seL4_CPtr cspace, uint32_t ipc_address, uint8_t priority, uint32_t entry_vector) {
ERRX_START;
struct ipc_out_proc_init out;
if (!ipc_proc_init... | code_c | code | 351 | null |
/* Copyright (c) Microsoft Corporation. All rights reserved. */
#include "sll.h"
typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *Flink;
struct _LIST_ENTRY *Blink;
} LIST_ENTRY, *PLIST_ENTRY;
PLIST_ENTRY create(int length) {
/* int i; */
PLIST_ENTRY head, tmp;
head = NULL;
/* for(i = 0; i < length; i... | code_c | code | 235 | null |
<reponame>romioshoula/I42---Computer-Graphics-using-OpenGL
#pragma once
#include<string>
#include <SFML/Graphics.hpp>
#include <glew\glew.h>
#include <glm\glm.hpp>
#include <glm\gtx\transform.hpp>
#include <SFML/OpenGL.hpp>
#include <iostream>
#include <memory>
class GameWindow
{
protected:
sf::Window window;
sf::Cl... | code_c | code | 212 | null |
<filename>kubernetes/unit-test/test_v1_mutating_webhook.c
#ifndef v1_mutating_webhook_TEST
#define v1_mutating_webhook_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1_mutating_webhook_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h... | code_c | code | 678 | null |
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "../../Utility/StringUtils.h"
#include <functional>
#include <memory>
namespace BufferUploads { class IAsyncDataSource; }
namespace RenderCore { namesp... | code_c | code | 229 | null |
<gh_stars>0
// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000077.h,v $
// $Revision: 1.3 $
// $Name: $
// $Author: gauges $
// $Date: 2009/07/01 15:50:02 $
// End CVS Header
// Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual
// Properties, Inc.,... | code_c | code | 539 | null |
#ifndef PIPELINE
#define PIPELINE
#include <cstdint>
#include <unordered_map>
#include <amath.h>
#include "resource.h"
class RenderSystem;
class CommandBuffer;
class Scene;
class Camera;
class Mesh;
class MaterialInstance;
class Texture;
class RenderTarget;
class PostProcessor;
class PostProcessVolume;
class At... | code_c | code | 668 | null |
/*******************************************************************************
Intel 10 Gigabit PCI Express Linux driver
Copyright (c) 1999 - 2014 Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
ve... | code_c | code | 1,592 | null |
<reponame>mattbox/etterna<gh_stars>100-1000
#pragma once
#include "../../PatternModHelpers.h"
struct CJMod
{
const CalcPatternMod _pmod = CJ;
// const vector<CalcPatternMod> _dbg = { CJS, CJJ };
const std::string name = "CJMod";
#pragma region params
float min_mod = 0.6F;
float max_mod = 1.1F;
float mod_base =... | code_c | code | 990 | null |
<reponame>worktycho/MCServer
#pragma once
#include "BlockHandler.h"
class cBlockFluidHandler :
public cBlockHandler
{
typedef cBlockHandler super;
public:
cBlockFluidHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
{
}
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_Blo... | code_c | code | 948 | null |
struct a {
int b
};
struct {
struct a d;
struct e *ab
} * o;
struct e {
int f
};
g, h, i, j, k, l, m, a, b, c, d, n, e, p;
q() {
int f = e;
switch (p) {
case 1:
r(&d, k | l, b);
break;
case 4:
r(&d, h | i, b);
}
if (f)
o = 0;
r(a);
o->d.b = o->ab->f;
switch (f) {
case 8:
... | code_c | code | 119 | null |
#define SIMDE_TEST_ARM_NEON_INSN mul
#include "test-neon.h"
#include "../../../simde/arm/neon/mul.h"
static int
test_simde_vmul_f32 (SIMDE_MUNIT_TEST_ARGS) {
struct {
simde_float32 a[2];
simde_float32 b[2];
simde_float32 r[2];
} test_vec[] = {
{ { SIMDE_FLOAT32_C( -984.85), SIMDE_FLOAT32_C( 239... | code_c | code | 17,873 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.