text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<gh_stars>1-10 /* * Cache management * * Copyright 2017 HAProxy Technologies * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (...
code_c
code
13,757
null
/* Unix SMB/CIFS mplementation. DSDB schema header Copyright (C) <NAME> <<EMAIL>> 2006-2007 Copyright (C) <NAME> <<EMAIL>> 2006-2008 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 Foun...
code_c
code
3,716
null
<filename>rh_engine_lib/Engine/VulkanImpl/VulkanPipeline.h #pragma once #include "Engine/Common/IPipeline.h" #include <common.h> namespace rh::engine { struct VulkanPipelineCreateInfo : RasterPipelineCreateParams { // Dependencies... vk::Device mDevice; }; class VulkanPipeline : public IPipeline { publ...
code_c
code
179
null
/* <NAME> 10685702 <NAME> 10748409 */ #ifndef STACK_H #define STACK_H #include "../util.h" typedef struct stack_ stack; // Creates a stack and returns it's pointer stack *stack_create(); // Appends a new point to the top of the stack void stack_push(stack *s, point p); // Removes the point from the t...
code_c
code
262
null
/* Test program for tsearch et al. Copyright (C) 1997, 2000-2001, 2007-2012 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 Fre...
code_c
code
2,525
null
<filename>standalone/pruntime/rizin/librz/search/regexp.c // SPDX-FileCopyrightText: 2008-2020 pancake <<EMAIL>> // SPDX-FileCopyrightText: 2008-2020 LemonBoy <<EMAIL>> // SPDX-License-Identifier: LGPL-3.0-only #include "rz_search.h" #include <rz_regex.h> RZ_API int rz_search_regexp_update(RzSearch *s, ut64 from, con...
code_c
code
350
null
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_cef_callback_CefAuthCallback_N */ #ifndef _Included_org_cef_callback_CefAuthCallback_N #define _Included_org_cef_callback_CefAuthCallback_N #ifdef __cplusplus extern "C" { #endif /* * Class: org_cef_callback_CefAuthCall...
code_c
code
259
null
<gh_stars>0 /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Co...
code_c
code
3,416
null
#ifndef __ROCKEVICT_H #define __ROCKEVICT_H #define ROCK_KEY_UPPER_PERCENTAGE 98 #define EVICT_ROCK_ENOUGH_MEM 1 #define EVICT_ROCK_NOT_READY 2 #define EVICT_ROCK_FREE 3 #define EVICT_ROCK_TIMEOUT 4 // API from server.c int dictExpandAllowed(size_t moreMem, double usedRatio); // API un...
code_c
code
346
null
<gh_stars>1-10 // // Created by silas on 3/25/21. // #include "IPacketSource.h" #include <QThread> #include <QIODevice> #ifndef LIBAVQT_DEMUXER_H #define LIBAVQT_DEMUXER_H namespace AVQt { class DemuxerPrivate; class Demuxer : public QThread, public IPacketSource { Q_OBJECT Q_INTERFACES(AVQt::I...
code_c
code
950
null
<reponame>TigerBSD/FreeBSD-Custom-ThinkPad /* * pretty printing of status information */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include "ntp_stdlib.h" #include "ntp_fp.h" #include "ntp.h" #include "lib_strbuf.h" #include "ntp_refclock.h" #include "ntp_control.h" #include "ntp_string.h" #i...
code_c
code
3,118
null
<reponame>ihler/gmlib #ifndef __MEX_pbp_H #define __MEX_pbp_H #define USE_LOG #include <assert.h> #include <stdexcept> #include <stdlib.h> #include <stdint.h> #include <cstdarg> #include <cstring> #include <cmath> #include <fstream> #include <iostream> #include "factorgraph.h" #include "alg.h" #include "indexedHeap...
code_c
code
6,909
null
/**************************************************************************** MIT License Copyright (c) 2020 ZhouZishun 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
634
null
#ifndef AST_OPTIMIZER_INCLUDE_AST_OPT_AST_BinaryExpression_H_ #define AST_OPTIMIZER_INCLUDE_AST_OPT_AST_BinaryExpression_H_ #include <string> #include <vector> #include "ast_opt/ast/AbstractExpression.h" #include "ast_opt/utilities/Operator.h" /// A BinaryExpression has two Operands (left and right) and an Operator ...
code_c
code
1,752
null
/* Minetest Copyright (C) 2013 celeron55, <NAME> <<EMAIL>> 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; either version 2.1 of the License, or (at your option) any later version. This progr...
code_c
code
1,255
null
<reponame>d-krupke/bipartite_vertex_cover // // Created by <NAME>, http://krupke.cc on 10/7/17. // #ifndef BIPARTITE_VERTEX_COVER_VERTEXCOVERSOLVER_H #define BIPARTITE_VERTEX_COVER_VERTEXCOVERSOLVER_H #include <boost/graph/graph_traits.hpp> #include <boost/graph/adjacency_list.hpp> #include "../Partition.h" #include ...
code_c
code
799
null
<reponame>ErnestasJa/TheEngine2<filename>include/resource_management/mesh/IQMLoader.h #ifndef IQMLOADER_H #define IQMLOADER_H namespace render { class AnimatedMesh; } namespace io { class IFileSystem; class Path; } // namespace io namespace res { class IQMLoader { public: IQMLoader(io::IFileSystem* fileSystem); ...
code_c
code
135
null
// Copyright 2018 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 IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_MANUAL_FILL_PASSWORD_MEDIATOR_H_ #define IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_MANUAL_FILL_PASSWOR...
code_c
code
926
null
<filename>scitbx/fftpack/complex_to_complex_2d.h #ifndef SCITBX_FFTPACK_COMPLEX_TO_COMPLEX_2D_H #define SCITBX_FFTPACK_COMPLEX_TO_COMPLEX_2D_H #include <scitbx/fftpack/complex_to_complex.h> #include <scitbx/error.h> #include <omptbx/omp_or_stubs.h> //#define SCITBX_FFTPACK_COMPLEX_TO_COMPLEX_2D_NO_PRAGMA_OMP namespa...
code_c
code
1,618
null
<gh_stars>1-10 /* Binary Image Base * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #ifndef PokemonAutomation_Kernels_BinaryImageBase_H #define PokemonAutomation_Kernels_BinaryImageBase_H #include <limits.h> #include <string> #include "Kernels/Kernels_Alignment.h" #include "Common...
code_c
code
1,235
null
<filename>palacios/src/palacios/mmu/vmm_shdw_pg_tlb_32pae.h /* * This file is part of the Palacios Virtual Machine Monitor developed * by the V3VEE Project with funding from the United States National * Science Foundation and the Department of Energy. * * The V3VEE Project is a joint project between Northweste...
code_c
code
381
null
<filename>src/LCD_BarGraph.c #include "LCD_BarGraph.h" static uint8_t vertical_bar[7][8] = { {0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f}, {0x00,0x00,0x00,0x00,0x00,0x00,0x1f}, {0x00,0x00,0x00,0x00,0x00,0x1f,0x1f}, {0x00,0x00,0x00,0x00,0x1f,0x1f,0x1f}, {0x00,0x00,0x00,0x1f,0x1f,0x1f,0x1f}, {0x00,0x00,0...
code_c
code
1,700
null
<filename>ortc/IORTC.h /* Copyright (c) 2014, Hookflash Inc. / Hookflash Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright noti...
code_c
code
748
null
/** * Copyright (C) 2013-2015 * * @author <EMAIL> * @date 2013-11-19 * * @file P_1_2_Manufacturer.h * * @remark * */ #include "P_1_2_Manufacturer.h" Property * P_1_2_Manufacturer(void) { Property *thiz = NULL; do { thiz = Property_NewInstance(2, "homekit-spec", "manufacturer", 0x000...
code_c
code
146
null
<gh_stars>0 /* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not...
code_c
code
1,488
null
<filename>uncertCalc.c /* Program that calculates uncertainty. Reference pg 97. Written by: <NAME> Current Build Date: 18JUL2016 */ #include <stdio.h> #include <math.h> //Function Prototypes void printTitle (); int printInitDirections (); void printDirections2 (double* num1, double* num2); void getUncert2 (double num1...
code_c
code
1,062
null
// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // #include <nanoPAL_BlockStorage.h> #include <Target_BlockStorage_CC32xxFlashDriver.h> // map here the Block Storage Interface to the CC32xx driver IBlockStorageDevice CC32xxFlash_BlockStorageIn...
code_c
code
176
null
<gh_stars>10-100 #pragma once #include <bits/stdc++.h> using namespace std; // Disjoint Sparse Table supporting associative range queries on a static array // Indices are 0-indexed and ranges are inclusive // Template Arguments: // T: the type of each element // Op: a struct with the operation (can also be of type...
code_c
code
562
null
<gh_stars>1-10 /***************************************************************************** * * * Copyright (c) 2016-2018 <NAME> <<EMAIL>> * * * * ...
code_c
code
738
null
<reponame>dbremner/framewave /* Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved. This software is subject to the Apache v2.0 License. */ #ifndef __STATIMINMAX_H__ #define __STATIMINMAX_H__ #include "fex.h" namespace OPT_LEVEL { template<typename TS1,CH cs1> struct StatIMinGen:...
code_c
code
11,059
null
<reponame>TonyBrewer/OpenHT<filename>src/htc/ProcessCalls.h /* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT toolset located at: * * https://github.com/TonyBrewer/OpenHT * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete ...
code_c
code
156
null
<reponame>Yumore/RxMVP<filename>medias/src/main/cpp/Common/AVFormatter.h // // Created by CainHuang on 2019/8/17. // #ifndef AVFORMATTER_H #define AVFORMATTER_H #include <libyuv.h> #include <string> extern "C" { #include <libavutil/pixfmt.h> #include <libavutil/samplefmt.h> }; #include "YuvData.h" #include "AVMedia...
code_c
code
1,495
null
<filename>bitloom_hal/src/i2c/i2c.c /* * Implementation of the I2C module for the Bluepill. * * Copyright (c) 2021. BlueZephyr * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * */ #include "hal/i2c.h" #include <stm32f1xx.h> /* * Local...
code_c
code
1,565
null
<filename>src/sst/elements/ember/mpi/motifs/embercmtcr.h // Copyright 2009-2018 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2018, NTESS // All rights reserved. // // Portions are copyright of other developers: //...
code_c
code
1,523
null
/* Copyright (C) 1996-2001 Id Software, Inc. Copyright (C) 2002-2009 <NAME> and others Copyright (C) 2011-2016 OldTimes Software This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 ...
code_c
code
8,047
null
<filename>src/xr_3da/xrGame/script_action_planner_action_wrapper.h //////////////////////////////////////////////////////////////////////////// // Module : script_action_planner_action_wrapper.h // Created : 29.03.2004 // Modified : 29.03.2004 // Author : <NAME> // Description : Script action planner action ...
code_c
code
459
null
<filename>include/base/cef_scoped_refptr.h<gh_stars>0 // Copyright (c) 2017 <NAME>. Portions copyright (c) 2011 // Google 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: // // * Redist...
code_c
code
3,700
null
#pragma once #include <Box2D\Box2D.h> #include <SDL.h> //Level constants const int LEVEL_WIDTH = 3622; const int LEVEL_HEIGHT = 3877; //Window and Surface Pointers extern SDL_Window* window; extern SDL_Surface* screenSurface; extern SDL_Renderer* renderer; //Box2D object constants extern b2World* worldptr;
code_c
code
88
null
<reponame>msizanoen1/libglibutil /* * Copyright (C) 2017-2021 Jolla Ltd. * Copyright (C) 2017-2021 <NAME> <<EMAIL>> * * You may use this file under the terms of BSD license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
code_c
code
2,001
null
/* parse.c */ #include "zcc.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> /* =---- Parser ----= */ /* Assumption: all tokens before lex_token are parsed. lex_token is the next to be parsed. */ int _prs_depth = -1; //#define PRT_LEAVING #define PRS_FUNC_BG _prs_depth++...
code_c
code
7,992
null
#include <stdio.h> #include <syscall.h> int result=0; //result 3628800 int cal_n(int i) { if(i==1) return i; else return i*cal_n(i-1); } int main() { result=cal_n(10); // output sys_write_int(result); sys_write_chr('\n'); return 0; }
code_c
code
79
null
<reponame>khardy/racket /* This file is a hodge-podge of various aspects of application and continuations. It includes primitives like `call/cc' and `procedure-arity', which have no better home, as well as parts of closure compilation and wrappers for evaluation to handle stack overflow and continuation-ju...
code_c
code
91,392
null
// // Created by 曹顺 on 2019/2/19. // #ifndef HYPERMIND_VALUE_H #define HYPERMIND_VALUE_H #include "object.h" namespace hypermind { class VM; enum class ValueType { Undefined, Null, True, False, Integer, Float, Object }; //Tagged union struc...
code_c
code
841
null
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache....
code_c
code
1,759
null
<gh_stars>0 #ifndef PRINTER_H #define PRINTER_H #include <stdarg.h> #include <stdio.h> #include "types.h" static inline void MPI_print(grid_t *g, const char *fmt, ...) { if (g->myrow == 0 && g->mycol == 0) { va_list args; va_start(args, fmt); vfprintf(stdout, fmt, args); va_end(args); } ...
code_c
code
94
null
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
code_c
code
1,311
null
/*------------------------------------------------------------------------------ VIGNETTE ------------------------------------------------------------------------------*/ float4 VignettePass( float4 colorInput, float2 tex ) { float4 vignette = colorInput; float2 tc = tex - VignetteCenter; float v = length(tc)...
code_c
code
114
null
//////////////////////////////////////////////////////////////////////////////// // OboeBackend/OboeLoopingSoundPlayingContext.h (Leggiero/Modules - Sound) // // Looping Playing Context in Oboe Backend //////////////////////////////////////////////////////////////////////////////// #ifndef __LM_SOUND__OBOE_BACKEND__L...
code_c
code
326
null
/* * Copyright (C) 2004, 2005, 2006, 2007, 2008 <NAME> * <<EMAIL>> * Copyright (C) 2004, 2005, 2006 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * ve...
code_c
code
1,066
null
#pragma once #include <EditorFramework/EditorFrameworkDLL.h> #include <GuiFoundation/Action/BaseActions.h> struct ezToolsProjectEvent; class ezAssetPluginActions { public: static void RegisterActions(); static void UnregisterActions(); static void MapActions(const char* szMapping); static ezActionDescripto...
code_c
code
197
null
// // AndyUiModel.h // MyCF // // Created by 李扬 on 15/12/16. // Copyright © 2015年 andyli. All rights reserved. // #import <Foundation/Foundation.h> @interface AndyUiModel : NSObject @end
code_c
code
55
null
<gh_stars>10-100 /* nymph_server.h - header file for the NymphRPC Server class. Revision 0 Notes: - This class declares the server class to be used by Nymph servers. History: 2017/06/24, <NAME> : Initial version. (c) Nyanko.ws */ #pragma once #ifndef NYMPH_SERVER_H #define NYMPH_SERVER_H #include ...
code_c
code
169
null
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "clusterinformation.h" #include <vespa/storage/bucketdb/bucketdatabase.h> #include <vespa/storage/common/storagelink.h> #include <vespa/storageapi/message/bucket.h> #include <ves...
code_c
code
2,745
null
<gh_stars>1-10 //============================================================================================================= /** * @file rtinvop.h * @author <NAME> <<EMAIL>>; * <NAME> <<EMAIL>> * @since 0.1.0 * @date July, 2012 * * @section LICENSE * * Copyright (C) 2012, <NAME>, <NAM...
code_c
code
2,425
null
// // CartViewController.h // StripeStore // // Created by <NAME> on 2013-07-08. // #import <UIKit/UIKit.h> #import "Order.h" @interface CartViewController : UITableViewController<NSFetchedResultsControllerDelegate> @property (nonatomic, strong) NSManagedObjectContext *managedObjectContext; @property (nonatomic, ...
code_c
code
104
null
/* * File: util.h * Author: DoI */ #include <stdio.h> #include <stdlib.h> #define RED "\x1B[31m" #define GRN "\x1B[32m" #define YEL "\x1B[33m" #define BLU "\x1B[34m" #define MAG "\x1B[35m" #define CYN "\x1B[36m" #define WHT "\x1B[37m" #define RESET "\x1B[0m" #define fatal(x...) \ do { \ ...
code_c
code
198
null
<gh_stars>1-10 // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // SchedulerProxy.h // // RM proxy for a scheduler instance // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
code_c
code
7,626
null
/*************************************************************************************************/ /*! * \file smp_defs.h * * \brief Security manager constants and definitions from the Bluetooth specification. * * $Date: 2016-12-28 16:12:14 -0600 (Wed, 28 Dec 2016) $ * $Revision: 10805 $ ...
code_c
code
2,147
null
/** @file Implements checked math functions which handle errors by terminating the program with an error message. */ #include "safe-math.h" #include "error-handling.h" /** Adds two sizes and terminates the program on overflows. @param a The first summand. @param b The second summand. @return The sum of a...
code_c
code
311
null
<gh_stars>100-1000 /* * Copyright (c) 2009-2012, Newcastle University, UK. * 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...
code_c
code
1,223
null
/* * Copyright (c) Huawei Technologies Co., Ltd. 2012-2019. All rights reserved. * Description: This file contains api definition for memory manager driver. * Author: huawei * Create: 2020-03-09 */ #include <linux/slab.h> #include <linux/vmalloc.h> #include "devmm_common.h" u64 devmm_get_pagecount_by_si...
code_c
code
1,068
null
<filename>tests/regression/22-partitioned_arrays/15-var_eq.c // PARAM: --set solver td3 --enable ana.int.interval --enable ana.base.partition-arrays.enabled --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','var_eq']" --set ana.base.privatization none int global; int main(void) { ...
code_c
code
184
null
<filename>dependencies/include/cgal/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Edge_profile_impl.h<gh_stars>1-10 // Copyright (c) 2006 GeometryFactory (France). All rights reserved. // // This file is part of CGAL (www.cgal.org). // You can redistribute it and/or modify it under the terms of the GNU // Ge...
code_c
code
2,330
null
<gh_stars>0 /** * @file gw_cfg_blob.c * @author TheSomeMan * @date 2021-09-29 * @copyright Ruuvi Innovations Ltd, license BSD-3-Clause. */ #include "gw_cfg_blob.h" #include "gw_cfg_default.h" #include "gw_cfg.h" #include <stdio.h> #include <string.h> void gw_cfg_blob_convert(gw_cfg_t *const p_cfg_dst, const ruuv...
code_c
code
1,933
null
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)init_disp.c 8.2 (Berkeley) 02/16/94"; #endif /* not lint */ /* * Initialization code for the display package, * as well as the signal handli...
code_c
code
780
null
/** * Sphere: the JavaScript game platform * Copyright (c) 2015-2022, <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 abov...
code_c
code
19,632
null
#pragma once class Entity; class Component { private: Entity* m_Entity; int m_UpdateOrder; public: Component(Entity* entity, int updateOrder = 0); virtual ~Component(); virtual void OnUpdate(float dt) {} virtual void OnWorldTransform() {} inline const int& GetUpdateOrder() const { return m_UpdateOrder; ...
code_c
code
108
null
<reponame>NoMaY-tmp/ex2<gh_stars>10-100 /* * Amazon FreeRTOS * Copyright (C) 2018 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 Soft...
code_c
code
918
null
// 387. First Unique Character in a String // Runtime: 40 ms, faster than 79.67% of C++ online submissions for First Unique Character in a String. // Memory Usage: 12.9 MB, less than 68.75% of C++ online submissions for First Unique Character in a String. class Solution { public: int firstUniqChar(string s) { ...
code_c
code
288
null
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
code_c
code
707
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2010, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
code_c
code
1,799
null
<filename>ravicomp/src/membuf.c /****************************************************************************** * Copyright (C) 2020-2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the ...
code_c
code
1,154
null
/* * This file Copyright (C) 2007-2014 Mnemosyne LLC * * It may be used under the GNU GPL versions 2 or 3 * or any future license endorsed by Mnemosyne LLC. * * $Id$ */ #ifndef GTR_TORRENT_CELL_RENDERER_H #define GTR_TORRENT_CELL_RENDERER_H #include <gtk/gtk.h> #define TORRENT_CELL_RENDERER_TYPE (torrent_cell...
code_c
code
289
null
<reponame>edorig/xrn /* Frame.h */ #ifndef FRAME_H #define FRAME_H Widget CreateMainFrame _ARGUMENTS((Widget shell)); void DestroyMainFrame _ARGUMENTS((void)); void GetMainFrameSize _ARGUMENTS((Widget Shell, char *geometry)); void XrnAddInput _ARGUMENTS((XtAppContext app_context, int source)); void XrnAddCloseCa...
code_c
code
108
null
<filename>code/em/treba/gsl-1.0/multiroots/test_funcs.c /* multiroots/test_funcs.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME> * * 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;...
code_c
code
4,524
null
<filename>src/hmc_bank_conflict.c<gh_stars>1-10 /* * _HMC_BANK_CONFLICT_C_ * * HYBRID MEMORY CUBE SIMULATION LIBRARY * * HMC BANK CONFLICT MODEL * * COPYRIGHT (c) 2018 TEXAS TECH UNIVERSITY * SEE LICENSE FOR DETAILS * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "hmc_sim.h" /* ---...
code_c
code
740
null
<reponame>wi-re/tbtSVD #include <cmath> #include <cuda.h> #include <cuda_runtime.h> #include <algorithm> #include <utility> #include <tuple> #include <intrin.h> #ifndef NO_CUDA_SUPPORT #include <cuda.h> #include <cuda_runtime.h> #else #define __host__ #define __device__ #define __forceinline__ #endif namespace SVD { ...
code_c
code
4,400
null
/** ****************************************************************************** * @file LSM6DSOX_ComponentAccelerometer.h * @author <NAME> * @brief Implementation of Component::AccelerometerBase for LSM6DSOX Accelerometer ****************************************************************************** */ /* Pre...
code_c
code
857
null
<filename>Utilities/slav/FileSignatureWorker.h /* * SEGS - Super Entity Game Server * http://www.segs.io/ * Copyright (c) 2006 - 2018 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ #ifndef FILESIGNATUREWORKER_H #define FILESIGNATU...
code_c
code
275
null
#include <stdio.h> #include <string.h> #include <strings.h> #include <stdint.h> #define BLOCK_LEN (2048) uint8_t block[BLOCK_LEN]; int chunk_num[BLOCK_LEN]; void mark_chunk(const int start, const int len, const int bn) { int n; for (n=0; n<len; n++) { chunk_num[start+n]=bn; } } int mark_chunk_if_empty(const ...
code_c
code
605
null
<filename>tests/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE129_rand_84.h /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE129_rand_84.h Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE129.label.xml Template File: ...
code_c
code
511
null
<gh_stars>1-10 #include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #define MEMSIZE 0x8000 static void vm(uint16_t*); static void load_program(uint16_t *mem, const char *name); static void console_setreg(uint16_t *mem, char *args) { char c; uint16_t val; in...
code_c
code
2,378
null
<filename>release/src-rt/linux/linux-2.6/drivers/scsi/sd.c /* * sd.c Copyright (C) 1992 <NAME> * Copyright (C) 1993, 1994, 1995, 1999 <NAME> * * Linux scsi disk driver * Initial versions: <NAME> * Subsequent revisions: Eric Youngdale * Modification history: * ...
code_c
code
15,095
null
<gh_stars>1-10 // Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Serialization/BufferArchive.h" #include "Serialization/MemoryReader.h" struct NoParamMsg { NoParamMsg() { } NoParamMsg(FArchive& Ar) { } TArray<uint8> AsData() { FBufferArchive MemA...
code_c
code
703
null
<reponame>mtrobregado/Sensor-Node-Sub-1-Ghz<gh_stars>0 /****************************************************************************** @file provisioning_gatt_profile.h @brief This file contains the GATT provisioning profile definitions and prototypes prototypes. Group: WCS, BTS Target Device: cc13x2_26...
code_c
code
2,600
null
#include <stdio.h> #include <stdlib.h> #include <string.h> /* strcmp */ #include "fs_util.h" #include "ext2.h" #include "../globals.h" #include "../sd/SdReader.h" #define MAX_OFFSET 512 extern super_block sb; void print_usage(void) { fprintf(stderr, "usage: ext2reader image [[-l] path]\n"); fprintf(stderr, "\...
code_c
code
2,026
null
/* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ // // Mandatory includes (if any one of these headers aren't included in native code headers or sources, // no functions can be properly declared) // Do not add any additional includes here unless they are needed for providing the most basic...
code_c
code
178
null
/* * @XMHF_LICENSE_HEADER_START@ * * eXtensible, Modular Hypervisor Framework (XMHF) * Copyright (c) 2009-2012 Carnegie Mellon University * Copyright (c) 2010-2012 VDG Inc. * All Rights Reserved. * * Developed by: XMHF Team * Carnegie Mellon University / CyLab * VDG Inc. * ...
code_c
code
1,025
null
#ifndef AUTOPTR_H_INCLUDED #define AUTOPTR_H_INCLUDED #include <windows.h> template<typename T> class AutoPtr { public: AutoPtr(void) : _ptr(0), _refCount(0) { } explicit AutoPtr(T *ptr) : _ptr(ptr) { _refCount = new long(1); ...
code_c
code
583
null
<gh_stars>1000+ // Copyright (C) 2009 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_HESSIAN_PYRAMId_Hh_ #define DLIB_HESSIAN_PYRAMId_Hh_ #include "hessian_pyramid_abstract.h" #include "../algs.h" #include "../image_transforms/integral_image.h" #include "../ar...
code_c
code
5,394
null
<filename>free_stack.c #include "monty.h" /** * free_stack - frees the stack * @stack: pointer to the top of the stack * @line_number: line number * * Return: void */ void free_stack(stack_t **stack, unsigned int line_number) { stack_t *temp; while (*stack) { temp = (*stack)->next; free(*stack); *stack...
code_c
code
200
null
/* Copyright (c) 2013-2015, 2018, 2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distri...
code_c
code
2,940
null
/* srp-gw.c * * Copyright (c) 2018-2019 Apple Computer, Inc. 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 *...
code_c
code
19,280
null
/*============================================================================ Copyright 2015 by: Commonwealth Scientific and Industrial Research Organisation (CSIRO) This file is licensed by CSIRO under the copy of the CSIRO Open Source Software License Agreement (variation of the BSD / MIT Licens...
code_c
code
4,736
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...
code_c
code
538
null
<gh_stars>1-10 // based on http://fabiensanglard.net/shadowmapping/index.php, modified by me #version 100 precision highp float; #define SHADOWMAP_LOOKUPS 2.0 uniform sampler2D textureUnit; uniform float texturePixelWidth; uniform float texturePixelHeight; uniform vec3 lightDirection; varying vec3 vsPosition; var...
code_c
code
347
null
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/swf/SWF_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace SWF { namespace Model { enum class ScheduleLambdaFunctionFailedCause { ...
code_c
code
251
null
<reponame>SenthilKumarGS/TizenRT /****************************************************************** * * Copyright 2015 Intel Corporation All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
code_c
code
1,718
null
<filename>tests/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_84.h /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_84.h Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml T...
code_c
code
443
null
// Copyright 2018 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 IOS_CHROME_BROWSER_UI_POPUP_MENU_PUBLIC_CELLS_POPUP_MENU_ITEM_H_ #define IOS_CHROME_BROWSER_UI_POPUP_MENU_PUBLIC_CELLS_POPUP_MENU_ITEM_H_ #import...
code_c
code
646
null