text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>MrIkso/sdk-tools<gh_stars>1-10 /* * Copyright (C) 2016 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...
code_c
code
6,507
null
#pragma once #include <GL/glew.h> namespace kt84 { struct DisplayList { unsigned int list; bool is_valid; DisplayList() : list() , is_valid() {} void invalidate() { is_valid = false; } template <typename TRenderFunc> void render(TRenderFunc renderFunc)...
code_c
code
177
null
// MESSAGE POSITION_CONTROL_OFFSET_SET PACKING #define MAVLINK_MSG_ID_POSITION_CONTROL_OFFSET_SET 154 typedef struct __mavlink_position_control_offset_set_t { uint8_t target_system; ///< System ID uint8_t target_component; ///< Component ID float x; ///< x position offset float y; ///< y position offset float z...
code_c
code
2,484
null
<gh_stars>10-100 /****************************************************************************** * Code generated with sympy 0.7.6 * * * * See http://www.sympy.org/ for more information....
code_c
code
238
null
<filename>drivers/staging/vboxvideo/vbox_ttm.c // SPDX-License-Identifier: MIT /* * Copyright (C) 2013-2017 Oracle Corporation * This file is based on ast_ttm.c * Copyright 2012 Red Hat Inc. * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/pci.h> #include <drm/drm_file.h> #include <drm/t...
code_c
code
2,493
null
/* -*- C++ -*- */ //============================================================================= /** * @file Event_Persistence_Strategy.h * * $Id: Event_Persistence_Strategy.h 14 2007-02-01 15:49:12Z mitza $ * * A factory class that creates a Routing_Slip_Persistence_Manager. * * @author <NAME> <<EMAIL>...
code_c
code
374
null
<reponame>ckamtsikis/cmssw #ifndef Geometry_TrackerGeometryBuilder_StripTopologyBuilder_H #define Geometry_TrackerGeometryBuilder_StripTopologyBuilder_H #include <string> class StripTopology; class Bounds; /** * Called by GeomTopologyBuilder, chooses the right topology for Strips. */ class StripTopologyBuilder { ...
code_c
code
165
null
<reponame>hosseinsotudeh/ogs /** * \copyright * Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #pragma once #includ...
code_c
code
3,911
null
/*! * Copyright (c) 2017-present, SeetaTech, Co.,Ltd. * * Licensed under the BSD 2-Clause License. * You should have received a copy of the BSD 2-Clause License * along with the software. If not, See, * * <https://opensource.org/licenses/BSD-2-Clause> * * ---------------------------------------------------...
code_c
code
421
null
<gh_stars>100-1000 /* Copyright 2013-2014. The Regents of the University of California. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2013-2014 <NAME> <<EMAIL>> */ #include <complex.h> #include <assert.h> #include "nu...
code_c
code
1,796
null
<gh_stars>1-10 /**************************************************************************************************************************** AsyncWebHandlerImpl_STM32.h - Dead simple AsyncWebServer for STM32 LAN8720 or built-in LAN8742A Ethernet For STM32 with LAN8720 (STM32F4/F7) or built-in LAN8742A Ethernet (...
code_c
code
1,586
null
/* * Copyright (c) 2020-2022 <NAME> <EMAIL> * zlib License, see LICENSE file. */ #ifndef BF_SMALL_SPRITE_FONT_H #define BF_SMALL_SPRITE_FONT_H #include "bn_sprite_font.h" #include "bn_sprite_items_small_font.h" namespace bf { constexpr bn::string_view small_sprite_font_utf8_characters[] = { "Á", "É", ...
code_c
code
813
null
/*========================================================================= Program: Visualization Toolkit Module: vtkFunctor.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY...
code_c
code
955
null
#ifndef AWS_COMMON_CPUID_H #define AWS_COMMON_CPUID_H /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/common/common.h> enum aws_cpu_feature_name { AWS_CPU_FEATURE_CLMUL, AWS_CPU_FEATURE_SSE_4_1, AWS_CPU_FEATURE_SSE_4_2, ...
code_c
code
179
null
<gh_stars>10-100 #import <Foundation/Foundation.h> @interface NSControlAuxiliary : NSObject { NSInteger _tag; id _target; SEL _action; } - (id) target; - (SEL) action; - (NSInteger) tag; - (void) setTag: (NSInteger) tag; - (void) setAction: (SEL) action; - (void) setTarget: (id) target; @end
code_c
code
88
null
/*** *heap.h - Defines which apply to the QBI Heap Manager * * Copyright <C> 1986, 1987, 1988 Microsoft Corporation * *******************************************************************************/ /* NOTE: When making changes to this file, be sure to make equivalent */ /* changes to file HEAP.INC ...
code_c
code
2,001
null
<gh_stars>1-10 /*========================================================================= Program: ParaView Module: vtkAMRConnectivity.h This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright...
code_c
code
1,186
null
#ifndef _XHCI_MTK_H #define _XHCI_MTK_H #include <linux/usb.h> #include "mtk-phy.h" #define _SSUSB_U3_MAC_BASE(mac_base) (mac_base + (unsigned long)0x2400) #define SSUSB_U3_MAC_BASE _SSUSB_U3_MAC_BASE(mtk_xhci->base_regs) #define _SSUSB_U3_SYS_BASE(mac_base) (mac_base + (unsigned long)0x2600) #define SSUSB_U3_SYS...
code_c
code
1,803
null
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <endian.h> #include <string.h> #include <time.h> #include <getopt.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> #include <fcntl.h> #include <linux/i2c-dev.h> #include "../avr/registers.h...
code_c
code
3,630
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 BASE_PREFS_PREF_REGISTRY_H_ #define BASE_PREFS_PREF_REGISTRY_H_ #include "base/memory/ref_counted.h" #include "base/prefs/base_prefs_export.h...
code_c
code
504
null
<reponame>insphereapplication/rhodes #include "symbian.h" #include <sys/signal.h> #include <fcntl.h> #include <pthreadtypes.h> #include <errno.h> #include <stdio.h> char **environ = 0; typedef void (*sighandler_t)(int); sighandler_t signal(int signum, sighandler_t handler) { return (sighandler_t)0; } int sigfills...
code_c
code
358
null
/* * * Glue Code for optimized 586 assembler version of AES * * Copyright (c) 2002, Dr <NAME> <>, Worcester, UK. * All rights reserved. * * LICENSE TERMS * * The free distribution and use of this software in both source and binary * form is allowed (with or without changes) provided that: * * 1. distrib...
code_c
code
3,781
null
#pragma once #ifndef AUTOMATIC_PRECOMPILATION #include <tuple> #include <vector> #include <map> #endif namespace fipster { namespace _type_traits { using namespace std; #if defined(_MSC_VER) && _MSC_VER == 1600 #define MANUAL_TUPLE_ARGUMENT_EXPANSION #endif #ifdef MANUAL_TUPLE_ARGUMENT_EXPANSION #define TTN2 std::...
code_c
code
1,293
null
<reponame>Swyter/wse #pragma once #include "WSEDictionary.h" #include "WSEObjectManager.h" #include "WSEOperationContext.h" class WSEDictionaryOperationsContext : public WSEOperationContext { public: WSEDictionaryOperationsContext(); WSEDictionary *GetDictionary(int id); protected: virtual void OnLoa...
code_c
code
112
null
/** * \copyright * MIT License * * Copyright (c) 2020 Infineon Technologies AG * * 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 ...
code_c
code
2,781
null
<gh_stars>100-1000 #include "util10.h" #include <string.h> #include <stdlib.h> #ifndef HAS_UINT32TO10STR void Uint32To10Str( char * sto, uint32_t indata ) { uint32_t place = 1000000000; uint8_t pl = 0; uint8_t ct = 0; while( place ) { while( indata >= place ) { ct++; indata -= place; } if( pl || ct...
code_c
code
367
null
/*! \file TraceGenerator.h \author <NAME> <<EMAIL>> \brief declares a TraceGenerator class to be the base class for application-dependent trace generators */ #ifndef TRACE_TRACEGENERATOR_H_INCLUDED #define TRACE_TRACEGENERATOR_H_INCLUDED // C++ includes #include <string> #include <vector> // forward declare Tr...
code_c
code
528
null
#ifndef HALIDE_SKIP_STAGES #define HALIDE_SKIP_STAGES #include <string> #include <vector> #include "Expr.h" /** \file * Defines a pass that dynamically avoids realizing unnecessary stages. */ namespace Halide { namespace Internal { /** Avoid computing certain stages if we can infer a runtime condition * to chec...
code_c
code
195
null
#ifndef PQCLEAN_SNTRUP1013_CLEAN_CRYPTO_CORE_INVSNTRUP1013_H #define PQCLEAN_SNTRUP1013_CLEAN_CRYPTO_CORE_INVSNTRUP1013_H #include <stdint.h> #define PQCLEAN_SNTRUP1013_CLEAN_crypto_core_invsntrup1013_OUTPUTBYTES 2027 #define PQCLEAN_SNTRUP1013_CLEAN_crypto_core_invsntrup1013_INPUTBYTES 1013 #define PQCLEAN_SNTRUP1013...
code_c
code
158
null
<filename>src/Visitors/Input/GOSJSONInputVisitor.h // // Created by <NAME> on 20/04/2020. // #ifndef CSP2SAT_GOSJSONINPUTVISITOR_H #define CSP2SAT_GOSJSONINPUTVISITOR_H #include <JSONBaseVisitor.h> #include "Param.h" #include "../../Errors/GOSInputExceptionsRepository.h" using namespace GOS; using namespace std; c...
code_c
code
1,092
null
<reponame>Anlon-Burke/vespa<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/eval/eval/tensor_function.h> namespace vespalib::eval { /** * Tensor function optimizer for converting join expressions on the * form 'jo...
code_c
code
166
null
<gh_stars>1-10 #include <gtk/gtk.h> #include "daklakwl.h" #include "libappindicator/app-indicator.h" struct indicator_state { struct daklakwl_state *state; int sock_fd; }; AppIndicator *gtr_icon_new(struct indicator_state *); void run_tray(struct daklakwl_state *);
code_c
code
77
null
<filename>inc/bluetooth/utils/ble_payload.h /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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...
code_c
code
1,237
null
/* Copyright 2019 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 Unless required by applicable ...
code_c
code
1,101
null
/*-------------------------------------------------------------------- This source distribution is placed in the public domain by its author, <NAME>. You may use it for any purpose, free of charge, without having to notify anyone. I disclaim any responsibility for any errors. Optionally, please be nice and tell me if ...
code_c
code
2,485
null
#include "jyuv.h" #define BIT_COUNT 24 void set_bmp_header(struct bmp_header_t *header, u32 width, u32 height) { header->magic = 0x4d42; header->image_size = width * height * BIT_COUNT/8; header->file_size = header->image_size + 54; header->RESERVED1 = 0; header->offset = 54; header->head_n...
code_c
code
419
null
<reponame>nishanthsri007/Miniproject_256555<gh_stars>0 #include "unity.h" #include <gpa.h> /* Modify these two lines according to the project */ #include <gpa.h> #define PROJECT_NAME "GPA/CGPA calculator and gradepoint predictor" /* Prototypes for all the test functions */ void semester(); void grade_predictor(); ...
code_c
code
336
null
<reponame>robgrzel/OpenCV_Examples //============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or F...
code_c
code
2,488
null
<gh_stars>1-10 /* * 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 "Lice...
code_c
code
765
null
<filename>includes/GenICam/AcquisitionControl.h #ifndef __DAHUA_GENICAM_ACQUISITIONCONTROL_H__ #define __DAHUA_GENICAM_ACQUISITIONCONTROL_H__ #include "Defs.h" #include "GenICam/ParameterNode.h" GENICAM_NAMESPACE_BEGIN class IAcquisitionControl; typedef Memory::TSharedPtr<IAcquisitionControl> IAcquisition...
code_c
code
1,481
null
/**************************************************************************** * drivers/power/greedy_governor.c * * 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 o...
code_c
code
1,486
null
<reponame>arturbani/run-coutinho-run void verificarLiberarMovimento(int *theEnd,int* MovimentarOn, int MenuOn); void verificaColisao(quadrado *a, quadrado* Jogador,int* ColisaoOn); void puloBackup(float *pulo, float*oldpulo); void resetPulo(float *pulo, float*oldpulo, int * PularOn); void pular(quadrado *Jogador, ...
code_c
code
218
null
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* Copyright (c) 2020 Facebook */ #include "vmlinux.h" #include <bpf/bpf_endian.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> #include <bpf/bpf_core_read.h> #include "parse.h" char LICENSE[] SEC("license") = "Dual BSD/GPL"; struct { __uint(type, BPF_...
code_c
code
1,506
null
<gh_stars>1-10 // // DPCMetadata.h // DapiConnect // // Created by <NAME> on 8/20/20. // Copyright © 2020 Dapi. All rights reserved. // #import "DPCAPI.h" NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(DapiMetadata) @interface DPCMetadata : DPCAPI - (nullable instancetype)initWithUserID:(NSString *)userID clientUserID:(...
code_c
code
193
null
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
code_c
code
1,530
null
<reponame>windystrife/UnrealEngine_NVIDIAGameWork<gh_stars>1-10 // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "BehaviorTree/Blackboard/BlackboardKeyType.h" #include "BlackboardKeyType_Object.generated.h" class UBlackboardC...
code_c
code
476
null
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> (github.com/kanflo) * * 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 rig...
code_c
code
1,314
null
/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #ifndef tomvizViewMenuManager_h #define tomvizViewMenuManager_h #include <pqViewMenuManager.h> #include <QPointer> #include <QScopedPointer> class QDialog; class QAction; clas...
code_c
code
418
null
// this test case checks wether struct copies are handled struct s { int x; }; int main() { struct s a; struct s b; a.x = 4; b.x = 8; a = b; if (a.x != b.x) { ERROR: goto ERROR; } }
code_c
code
54
null
#pragma once //////////////////////////////////////////////////////////////////////////////// //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 conditions are met: // * Redistributions ...
code_c
code
2,479
null
<reponame>hefen1/chromium<gh_stars>0 // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_SEARCH_OPERATION_H_ #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYST...
code_c
code
828
null
<reponame>BarcinoLechiguino/NULL_Engine<filename>NULL Engine/Source/M_Renderer3D.h #ifndef __M_RENDERER_3D_H__ #define __M_RENDERER_3D_H__ #include <vector> #include "MathGeoTransform.h" #include "MathGeoLib/include/Geometry/LineSegment.h" #include "MathGeoLib/include/Geometry/Triangle.h" #include "Icons.h" #includ...
code_c
code
2,880
null
<gh_stars>1-10 #ifndef IGVCSEARCHPROBLEM_H #define IGVCSEARCHPROBLEM_H #include "searchlocation.h" #include "searchmove.h" #include "GraphSearch.hpp" #include <vector> #include <pcl/kdtree/kdtree_flann.h> #include <functional> #include <math.h> class IGVCSearchProblem : public SearchProblem<SearchLocation, SearchMove...
code_c
code
588
null
<filename>shop/model/ExpressModel.h // // __ // /\ \ _ // ____ ____ ___\ \ \_/ \ _____ ___ ___ // / _ \ / __ \ / __ \ \ < __ /\__ \ / __ \ / __ \ // /\ \_\ \/\ __//\ __/\ \ \\ \ /\_\ \/_/ / /\ \_\ \/\ \_\ \ // \ \____ \ \____\...
code_c
code
217
null
// WndList.h : header file // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with t...
code_c
code
743
null
<gh_stars>10-100 #ifndef __UNITYIMAGEGRABBER__ #define __UNITYIMAGEGRABBER__ #include "IVideoGrabber.h" #include "IMutex.h" namespace mray { namespace video { class UnityImageGrabber:public video::IVideoGrabber { protected: OS::IMutex* m_mutex; ImageInfo m_backBuffer; ImageInfo m_imageInfo; bool m_hasNewFrame...
code_c
code
271
null
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistribution...
code_c
code
1,542
null
#include "param.h" #include "types.h" #include "stat.h" #include "user.h" #include "fs.h" #include "fcntl.h" #include "syscall.h" #include "traps.h" #include "memlayout.h" int main(int argc, char* argv[]){ if(argc>1){ printf(1,"please dont give this guy arguments, he can't debate\n"); } else{ ...
code_c
code
99
null
/* * (C) 2006 by <NAME> <<EMAIL>> * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ #include <stdlib.h> #include <string.h> /* for memset */ #include <errno.h> #include <assert.h> #include "internal.h" /** * nfct_connt...
code_c
code
5,023
null
<gh_stars>1-10 require_rvc; if(xpr64) CRDS = sreg_t(CRDS) >> CIMM5U; else CRDS = sext32(int32_t(CRDS) >> CIMM5U);
code_c
code
33
null
/* * Copyright 2012 The Android Open Source Project * Copyright (c) 2013, The Linux Foundation. All rights reserved. * Not a Contribution. * * 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 ...
code_c
code
10,554
null
<gh_stars>0 /* Copyright [2017] IBM 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 Unless required by applicable law or agreed to ...
code_c
code
15,488
null
<filename>xsm/tokenize.h #ifndef _XSM_TOKENIZE_H #define _XSM_TOKENIZE_H /* Include lexer header. */ #include "lexer.h" int tokenize_init (); int tokenize_next_token (YYSTYPE *token_info); int tokenize_peek (YYSTYPE *token_info); int tokenize_skip_token(); int tokenize_close (); void tokenize_reset (); void to...
code_c
code
117
null
<reponame>timwuu/Harmony<gh_stars>0 /******************************************************************************* SST25VF080B SPI Flash Driver Dynamic implemention. Company: Microchip Technology Inc. File Name: drv_sst25vf080b.c Summary: Source code for the SPI flash driver dynamic implementat...
code_c
code
22,144
null
/******************************************************************************** ** Form generated from reading UI file 'adminmenue.ui' ** ** Created by: Qt User Interface Compiler version 5.12.8 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ***************************************...
code_c
code
522
null
/******************************************************************************* * Copyright (C) 2005-2017 Alfresco Software Limited. * * This file is part of the Alfresco Mobile iOS App. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
code_c
code
482
null
/******************************************************************************* * This file houses the main functions for the iSCSI CHAP support * * (c) Copyright 2007-2013 Datera, Inc. * * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of...
code_c
code
3,308
null
<gh_stars>1-10 /************************************************************************/ /* */ /* video_demo.c -- ZYBO Video demonstration */ /* */ /************************************************************************/ /* Author: <NAME> */ /* Copyright 2015, Digil...
code_c
code
5,923
null
<filename>src/aux.c #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> #include "def.h" bool hadWon(struct block g[WIDTH][LENGTH]){ bool won = true; for(int y = 0; y < LENGTH; y++) { for(int x = 0; x < WIDTH; x++) //for evey block if t...
code_c
code
2,398
null
<filename>src/TNL/Algorithms/ParallelFor.h // Copyright (c) 2004-2022 <NAME> et al. // // This file is part of TNL - Template Numerical Library (https://tnl-project.org/) // // SPDX-License-Identifier: MIT #pragma once #include <TNL/Devices/Sequential.h> #include <TNL/Devices/Host.h> #include <TNL/Devices/Cuda.h> #in...
code_c
code
6,280
null
#pragma once #if defined(WIN32) || defined(_WIN32) || defined(_WIN64) #pragma warning (push) #pragma warning (disable : 4250) #endif #include "ctre/phoenix/motorcontrol/can/BaseMotorController.h" #include "ctre/phoenix/motorcontrol/IMotorControllerEnhanced.h" #include "ctre/phoenix/CustomParamConfiguration.h" /* forw...
code_c
code
6,228
null
/************************************************************ * Student Name: TreeBots * * Exercise Name: Ex6 * * File description: Declaration of Behavior nodes * ***********************************************************/ #ifndef R...
code_c
code
191
null
<gh_stars>1-10 #ifndef L_SET_H #define L_SET_H #include <string.h> #include <stdlib.h> #include "object.h" typedef struct l_set_t { L_OBJECT_HEAD int64_t len; struct l_object_t ** items; } l_set_t; #endif
code_c
code
62
null
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
code_c
code
8,022
null
<gh_stars>0 /** * Copyright (C) 2018 Bosch Sensortec GmbH * * SPDX-License-Identifier: BSD-3-Clause * * @file mutex_port.h * @brief This file contains communication interface supporting data structures * */ #ifndef COMM_INTF_MUTEX_PORT_H_ #define COMM_INTF_MUTEX_PORT_H_ #ifdef PLATFORM_WINDOWS #include <win...
code_c
code
557
null
<reponame>Hairein/gba-winter-jam-2021 #ifndef MKS_VECTORHELPER_H #define MKS_VECTORHELPER_H #include "bn_fixed.h" #include "bn_fixed_point.h" namespace mks { class VectorHelper { public: VectorHelper(); ~VectorHelper(); bn::fixed_point get_rotated_unit_vector_x(int angle); ...
code_c
code
290
null
<filename>lib/lf/mesh/utils/utils.h /** * @file * @brief Master include file for the module lf::mesh::utils * @author <NAME> * @date 2018-07-01 01:36:25 * @copyright MIT License */ #ifndef __ecc2ab2ad7184f42a672a2b9d490f541 #define __ecc2ab2ad7184f42a672a2b9d490f541 /** * @brief Contains helper functions and...
code_c
code
230
null
/* Spark Core HTU21D Temperature / Humidity Sensor Library By: <NAME> Licence: GPL v3 */ // Make library cross-compatiable // with Arduino, GNU C++ for tests, and Spark. //#if defined(ARDUINO) && ARDUINO >= 100 //#include "Arduino.h" //#elif defined(SPARK) //#include "application.h" //#endif // TEMPORARY UNTIL the st...
code_c
code
381
null
<filename>src/config.c // -*- mode: c; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*- // vim: ts=8 sw=8 ft=c noet /* * Copyright (c) 2015 Pagoda Box Inc * * This Source Code Form is subject to the terms of the Mozilla Public License, v. * 2.0. If a copy of the MPL was not distributed with this file, You ca...
code_c
code
2,909
null
/* Write a program to read the temperature in Fahrenheit and display the message as follow: Nice day temp > 60 and temp < 80 Cold day temp <= 60 Hot Day temp >= 80 */ #include <stdio.h> int main(void) { int temp; printf("Enter the value of temperature in Fahrenheit: "); scanf("...
code_c
code
137
null
<reponame>simophin/game-matcher-qt<filename>src/LastSelectedCourts.h // // Created by <NAME> on 2/08/20. // #ifndef GAMEMATCHER_LASTSELECTEDCOURTS_H #define GAMEMATCHER_LASTSELECTEDCOURTS_H #include "models.h" #include <QSet> #include <QJsonObject> #include <QJsonArray> #include <QJsonDocument> #include <optional> ...
code_c
code
410
null
<reponame>13662049573/TFY_ProgressHUD // // TFY_ArrowheadMenu.h // TFY_ProgressHUD // // Created by 田风有 on 2020/9/22. // Copyright © 2020 恋机科技. All rights reserved. // #import "TFY_BaseMenuController.h" NS_ASSUME_NONNULL_BEGIN @interface TFY_ArrowheadMenu : TFY_BaseMenuController #pragma mark- 自定义风格 /** 自定义UI风...
code_c
code
472
null
<reponame>Ed-Yang/eoam #include "oam_defs.h" #include "xutl_net.h" #ifndef __EOAM_TIMER_H #define __EOAM_TIMER_H #ifdef __cplusplus extern "C" { #endif BOOLEAN eoam_fsm_timer_handler(xtimer_s *xtimer, void *param); #ifdef __cplusplus } #endif #endif /* __EOAM_TIMER_H */
code_c
code
79
null
<filename>soc/arm/qemu_cortex_a53/mmu_regions.c /* * Copyright 2019 Broadcom * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * SPDX-License-Identifier: Apache-2.0 */ #include <soc.h> #include <arch/arm/aarch64/arm_mmu.h> #define SZ_1K 1024 static const struct arm_mmu_region mmu_regions[]...
code_c
code
299
null
/* * Copyright © 2017 - <NAME> * * This file is part of initv * * This file is licensed under the MIT license. * See the file LICENSE. */ #ifndef _INIT_MODULE_MAC_H_ #define _INIT_MODULE_MAC_H_ #endif /* _INIT_MODULE_MAC_H_ */
code_c
code
68
null
#ifndef SECTION1TAB_H #define SECTION1TAB_H #include "flagchecklist.h" #include "tab.h" #include "trophychecklist.h" #include <QWidget> namespace Ui { class Section1Tab; } class Section1Tab : public Tab { Q_OBJECT public: explicit Section1Tab(SaveManager* mgr, QWidget* parent = 0, int sectionId = -1); ~...
code_c
code
149
null
<reponame>byronpc/zstd-erlang /* * Copyright (c) 2016-2020, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this sourc...
code_c
code
665
null
<filename>spam.c #include <Python.h> #include <unistd.h> typedef struct { PyObject_HEAD long int m; long int i; } spam_MyIter; PyObject* spam_MyIter_iter(PyObject *self) { Py_INCREF(self); return self; } PyObject* spam_MyIter_iternext(PyObject *self) { spam_MyIter *p = (spam_MyIter *)self; if (p->i < p...
code_c
code
956
null
/** * \file WdbePrcfilePlhrpl.h * Wdbe operation processor - replace placeholders in template file and write into output file (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifndef WDBEPRCFILEPLHRPL_H #de...
code_c
code
158
null
/******************************************************************************* * This file contains iSCSI extentions for RDMA (iSER) Verbs * * (c) Copyright 2013 Datera, Inc. * * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
code_c
code
26,946
null
/* * $Id: recv.c,v 1.14 2011/02/06 03:41:38 reubenhwk Exp $ * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This software is Copyright 1996,1997 by the above mentioned author(s), * All Rights Reserved. * * The license which is distributed with this software in the file COPYRIGHT * ...
code_c
code
892
null
<reponame>gff02521/ofxPDFium<filename>src/ofxPDFium.h #pragma once #include "ofMain.h" #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <list> #include <string> #include <vector> #include <utility> #include "fpdf_annot.h" #include "fpdf_attachment.h" #include "fpdf_catalog.h" #...
code_c
code
697
null
#pragma once #include "il2cpp.h" int32_t GimmickWork__GetGearRotate (int32_t areaId, const MethodInfo* method_info); void GimmickWork__SetGearRotate (int32_t areaId, int32_t deg, const MethodInfo* method_info); int32_t GimmickWork__AreaIdToGearAreaIndex (int32_t areaId, const MethodInfo* method_info); int32_t Gimmick...
code_c
code
143
null
#ifndef AWS_S3_H #define AWS_S3_H /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/common/common.h> #include <aws/io/logging.h> #include <aws/s3/exports.h> #define AWS_C_S3_PACKAGE_ID 14 enum aws_s3_errors { AWS_ERROR_S3_MISSING_...
code_c
code
765
null
<filename>applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Motion/FACE_CONTROL_PARAMETERS.h //##################################################################### // Copyright 2004-2007, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying ...
code_c
code
1,034
null
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // #if !defined (KRATOS_RVE_PERIODICITY_U...
code_c
code
1,918
null
/****************************************************************************** * * Module Name: aehandlers - Various handlers for acpiexec * *****************************************************************************/ /* * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and ...
code_c
code
12,778
null
<filename>datasets/linux-4.11-rc3/drivers/infiniband/hw/i40iw/i40iw_osdep.h /******************************************************************************* * * Copyright (c) 2015-2016 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose...
code_c
code
2,525
null
<filename>src/httpclient.c<gh_stars>0 /* * Copyright (c) 2014-2019 DeNA Co., Ltd., <NAME>, Fastly, Frederik * Deweerdt, <NAME>, <NAME>, <NAME>, * <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associate...
code_c
code
5,351
null
int barFunc1(int a); int redeclaredInMultipleModulesFunc1(int a); @interface BarForwardDeclaredClass - (void) barInstanceFunc0; @end enum BarForwardDeclaredEnum { BarForwardDeclaredEnumValue = 42 }; #define BAR_MACRO_1 0 typedef struct { int count; } SomeItemSet; typedef SomeItemSet SomeEnvironment;
code_c
code
88
null